function __vite__mapDeps(indexes) {
  if (!__vite__mapDeps.viteFileDeps) {
    __vite__mapDeps.viteFileDeps = ["assets/pages-login-login.7IWiDyKF.js","assets/login-BjKRLI1c.css","assets/components-form-sub-ProcessSelect.B1ilFIQ9.js","assets/uni-segmented-control.KGtN7YAa.js","assets/uni-segmented-control-DX-yLMtZ.css","assets/noData.BO1MxwPV.js","assets/task.Dg1bij4e.js","assets/ProcessUtil.Cpq6blAo.js","assets/ProcessSelect-DQnuAIdu.css","assets/pages-workspace-workspace.TPmPQ3l6.js","assets/model.D9cviTiO.js","assets/workspace-DPSHu61g.css","assets/pages-submit-submit.CHNm5lNJ.js","assets/submit-BcfjMBss.css","assets/pages-contacts-contacts.C6MCoVlC.js","assets/contacts-mg1zWlYG.css","assets/pages-my-my.CqG49xXY.js","assets/my-DfWJqgK2.css","assets/pages-instance-instancePreview.B0MhCeu0.js","assets/FormRender.Bey5b978.js","assets/FormRender-tcDNokmx.css","assets/instancePreview-DLp-hwgL.css","assets/pages-submit-InitiateProcess.4zvTtrXr.js","assets/InitiateProcess-D3deqW0e.css","assets/pages-my-UserAgent.DgIxzM3O.js","assets/UserAgent-DMLF80ir.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 scriptRel="modulepreload",assetsURL=function(e){return"/"+e},seen={},__vitePreload=function(e,t,n){let a=Promise.resolve();if(t&&t.length>0){const e=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),o=(null==i?void 0:i.nonce)||(null==i?void 0:i.getAttribute("nonce"));a=Promise.all(t.map((t=>{if((t=assetsURL(t))in seen)return;seen[t]=!0;const a=t.endsWith(".css"),i=a?'[rel="stylesheet"]':"";if(!!n)for(let n=e.length-1;n>=0;n--){const i=e[n];if(i.href===t&&(!a||"stylesheet"===i.rel))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;const r=document.createElement("link");return r.rel=a?"stylesheet":scriptRel,a||(r.as="script",r.crossOrigin=""),r.href=t,o&&r.setAttribute("nonce",o),document.head.appendChild(r),a?new Promise(((e,n)=>{r.addEventListener("load",e),r.addEventListener("error",(()=>n(new Error(`Unable to preload CSS for ${t}`))))})):void 0})))}return a.then((()=>e())).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 makeMap(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}const EMPTY_OBJ={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,isOn=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),isModelListener=e=>e.startsWith("onUpdate:"),extend$1=Object.assign,remove=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},hasOwnProperty$2=Object.prototype.hasOwnProperty,hasOwn$1=(e,t)=>hasOwnProperty$2.call(e,t),isArray$1=Array.isArray,isMap=e=>"[object Map]"===toTypeString(e),isSet=e=>"[object Set]"===toTypeString(e),isDate=e=>"[object Date]"===toTypeString(e),isRegExp=e=>"[object RegExp]"===toTypeString(e),isFunction=e=>"function"==typeof e,isString=e=>"string"==typeof e,isSymbol=e=>"symbol"==typeof e,isObject$1=e=>null!==e&&"object"==typeof e,isPromise=e=>(isObject$1(e)||isFunction(e))&&isFunction(e.then)&&isFunction(e.catch),objectToString=Object.prototype.toString,toTypeString=e=>objectToString.call(e),toRawType=e=>toTypeString(e).slice(8,-1),isPlainObject=e=>"[object Object]"===toTypeString(e),isIntegerKey=e=>isString(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction((e=>e.replace(camelizeRE,((e,t)=>t?t.toUpperCase():"")))),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction((e=>e.replace(hyphenateRE,"-$1").toLowerCase())),capitalize=cacheStringFunction((e=>e.charAt(0).toUpperCase()+e.slice(1))),toHandlerKey=cacheStringFunction((e=>e?`on${capitalize(e)}`:"")),hasChanged=(e,t)=>!Object.is(e,t),invokeArrayFns$1=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},def=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},looseToNumber=e=>{const t=parseFloat(e);return isNaN(t)?e:t},toNumber=e=>{const t=isString(e)?Number(e):NaN;return isNaN(t)?e:t};let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function normalizeStyle$1(e){if(isArray$1(e)){const t={};for(let n=0;n<e.length;n++){const a=e[n],i=isString(a)?parseStringStyle(a):normalizeStyle$1(a);if(i)for(const e in i)t[e]=i[e]}return t}if(isString(e)||isObject$1(e))return e}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*[^]*?\*\//g;function parseStringStyle(e){const t={};return e.replace(styleCommentRE,"").split(listDelimiterRE).forEach((e=>{if(e){const n=e.split(propertyDelimiterRE);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function stringifyStyle(e){let t="";if(!e||isString(e))return t;for(const n in e){const a=e[n],i=n.startsWith("--")?n:hyphenate(n);(isString(a)||"number"==typeof a)&&(t+=`${i}:${a};`)}return t}function normalizeClass$1(e){let t="";if(isString(e))t=e;else if(isArray$1(e))for(let n=0;n<e.length;n++){const a=normalizeClass$1(e[n]);a&&(t+=a+" ")}else if(isObject$1(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",isSpecialBooleanAttr=makeMap(specialBooleanAttrs);function includeBooleanAttr(e){return!!e||""===e}function looseCompareArrays(e,t){if(e.length!==t.length)return!1;let n=!0;for(let a=0;n&&a<e.length;a++)n=looseEqual(e[a],t[a]);return n}function looseEqual(e,t){if(e===t)return!0;let n=isDate(e),a=isDate(t);if(n||a)return!(!n||!a)&&e.getTime()===t.getTime();if(n=isSymbol(e),a=isSymbol(t),n||a)return e===t;if(n=isArray$1(e),a=isArray$1(t),n||a)return!(!n||!a)&&looseCompareArrays(e,t);if(n=isObject$1(e),a=isObject$1(t),n||a){if(!n||!a)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const a=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(a&&!i||!a&&i||!looseEqual(e[n],t[n]))return!1}}return String(e)===String(t)}function looseIndexOf(e,t){return e.findIndex((e=>looseEqual(e,t)))}const toDisplayString=e=>isString(e)?e:null==e?"":isArray$1(e)||isObject$1(e)&&(e.toString===objectToString||!isFunction(e.toString))?JSON.stringify(e,replacer,2):String(e),replacer=(e,t)=>t&&t.__v_isRef?replacer(e,t.value):isMap(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],a)=>(e[stringifySymbol(t,a)+" =>"]=n,e)),{})}:isSet(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>stringifySymbol(e)))}:isSymbol(t)?stringifySymbol(t):!isObject$1(t)||isArray$1(t)||isPlainObject(t)?t:String(t),stringifySymbol=(e,t="")=>{var n;return isSymbol(e)?`Symbol(${null!=(n=e.description)?n:t})`:e},BUILT_IN_TAG_NAMES=["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"],BUILT_IN_TAGS=BUILT_IN_TAG_NAMES.map((e=>"uni-"+e)),UVUE_WEB_BUILT_IN_TAGS=["list-view","list-item","sticky-section","sticky-header","cloud-db-element"].map((e=>"uni-"+e)),UNI_UI_CONFLICT_TAGS=["list-item"].map((e=>"uni-"+e));function isBuiltInComponent(e){if(-1!==UNI_UI_CONFLICT_TAGS.indexOf(e))return!1;const t="uni-"+e.replace("v-uni-","");return-1!==BUILT_IN_TAGS.indexOf(t)||-1!==UVUE_WEB_BUILT_IN_TAGS.indexOf(t)}const LINEFEED="\n",NAVBAR_HEIGHT=44,ON_REACH_BOTTOM_DISTANCE=50,UNI_STORAGE_LOCALE="UNI_LOCALE",I18N_JSON_DELIMITERS=["%","%"],PRIMARY_COLOR="#007aff",SCHEME_RE=/^([a-z-]+:)?\/\//i,DATA_RE=/^data:.*,.*/,WEB_INVOKE_APPSERVICE="WEB_INVOKE_APPSERVICE",ON_SHOW="onShow",ON_HIDE="onHide",ON_LAUNCH="onLaunch",ON_ERROR="onError",ON_THEME_CHANGE="onThemeChange",ON_PAGE_NOT_FOUND="onPageNotFound",ON_UNHANDLE_REJECTION="onUnhandledRejection",ON_EXIT="onExit",ON_LOAD="onLoad",ON_READY="onReady",ON_UNLOAD="onUnload",ON_INIT="onInit",ON_SAVE_EXIT_STATE="onSaveExitState",ON_RESIZE="onResize",ON_BACK_PRESS="onBackPress",ON_PAGE_SCROLL="onPageScroll",ON_TAB_ITEM_TAP="onTabItemTap",ON_REACH_BOTTOM="onReachBottom",ON_PULL_DOWN_REFRESH="onPullDownRefresh",ON_SHARE_TIMELINE="onShareTimeline",ON_ADD_TO_FAVORITES="onAddToFavorites",ON_SHARE_APP_MESSAGE="onShareAppMessage",ON_NAVIGATION_BAR_BUTTON_TAP="onNavigationBarButtonTap",ON_NAVIGATION_BAR_CHANGE="onNavigationBarChange",ON_NAVIGATION_BAR_SEARCH_INPUT_CLICKED="onNavigationBarSearchInputClicked",ON_NAVIGATION_BAR_SEARCH_INPUT_CHANGED="onNavigationBarSearchInputChanged",ON_NAVIGATION_BAR_SEARCH_INPUT_CONFIRMED="onNavigationBarSearchInputConfirmed",ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED="onNavigationBarSearchInputFocusChanged",ON_APP_ENTER_FOREGROUND="onAppEnterForeground",ON_APP_ENTER_BACKGROUND="onAppEnterBackground",ON_WEB_INVOKE_APP_SERVICE="onWebInvokeAppService",ON_WXS_INVOKE_CALL_METHOD="onWxsInvokeCallMethod";function isComponentInternalInstance(e){return!!e.appContext}function resolveComponentInstance(e){return e&&(isComponentInternalInstance(e)?e.proxy:e)}function resolveOwnerVm(e){if(!e)return;let t=e.type.name;for(;t&&isBuiltInComponent(hyphenate(t));)t=(e=e.parent).type.name;return e.proxy}function isElement(e){return 1===e.nodeType}function resolveOwnerEl(e,t=!1){const{vnode:n}=e;if(isElement(n.el))return t?n.el?[n.el]:[]:n.el;const{subTree:a}=e;if(16&a.shapeFlag){const e=a.children.filter((e=>e.el&&isElement(e.el)));if(e.length>0)return t?e.map((e=>e.el)):e[0].el}return t?n.el?[n.el]:[]:n.el}function normalizeStyle(e){if(e instanceof Map){const t={};return e.forEach(((e,n)=>{t[n]=e})),normalizeStyle$1(t)}if(isString(e))return parseStringStyle(e);if(isArray$1(e)){const t={};for(let n=0;n<e.length;n++){const a=e[n],i=isString(a)?parseStringStyle(a):normalizeStyle(a);if(i)for(const e in i)t[e]=i[e]}return t}return normalizeStyle$1(e)}function normalizeClass(e){let t="";if(e instanceof Map)e.forEach(((e,n)=>{e&&(t+=n+" ")}));else if(isArray$1(e))for(let n=0;n<e.length;n++){const a=normalizeClass(e[n]);a&&(t+=a+" ")}else t=normalizeClass$1(e);return t.trim()}function getLen(e=""){return(""+e).replace(/[^\x00-\xff]/g,"**").length}function hasLeadingSlash(e){return 0===e.indexOf("/")}function addLeadingSlash(e){return hasLeadingSlash(e)?e:"/"+e}function removeLeadingSlash(e){return hasLeadingSlash(e)?e.slice(1):e}const invokeArrayFns=(e,t)=>{let n;for(let a=0;a<e.length;a++)n=e[a](t);return n};function updateElementStyle(e,t){for(const n in t)e.style[n]=t[n]}function once(e,t=null){let n;return(...a)=>(e&&(n=e.apply(t,a),e=null),n)}const _completeValue=e=>e>9?e:"0"+e;function formatDateTime({date:e=new Date,mode:t="date"}){return"time"===t?_completeValue(e.getHours())+":"+_completeValue(e.getMinutes()):e.getFullYear()+"-"+_completeValue(e.getMonth()+1)+"-"+_completeValue(e.getDate())}function callOptions(e,t){e=e||{},isString(t)&&(t={errMsg:t}),/:ok$/.test(t.errMsg)?isFunction(e.success)&&e.success(t):isFunction(e.fail)&&e.fail(t),isFunction(e.complete)&&e.complete(t)}function sortObject(e){let t={};return isPlainObject(e)&&Object.keys(e).sort().forEach((n=>{const a=n;t[a]=e[a]})),Object.keys(t)?t:e}function formatKey(e){return camelize(e.substring(5))}const initCustomDatasetOnce=once((()=>{const e=HTMLElement.prototype,t=e.setAttribute;e.setAttribute=function(e,n){if(e.startsWith("data-")&&this.tagName.startsWith("UNI-")){(this.__uniDataset||(this.__uniDataset={}))[formatKey(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[formatKey(e)],n.call(this,e)}}));function getCustomDataset(e){return extend$1({},e.dataset,e.__uniDataset)}const unitRE=new RegExp("\"[^\"]+\"|'[^']+'|url\\([^)]+\\)|(\\d*\\.?\\d+)[r|u]px","g");function toFixed(e,t){const n=Math.pow(10,t+1),a=Math.floor(e*n);return 10*Math.round(a/10)/n}const defaultRpx2Unit={unit:"rem",unitRatio:10/320,unitPrecision:5};function createRpx2Unit(e,t,n){return a=>a.replace(unitRE,((a,i)=>{if(!i)return a;if(1===t)return`${i}${e}`;const o=toFixed(parseFloat(i)*t,n);return 0===o?"0":`${o}${e}`}))}function passive(e){return{passive:e}}function normalizeTarget(e){const{id:t,offsetTop:n,offsetLeft:a}=e;return{id:t,dataset:getCustomDataset(e),offsetTop:n,offsetLeft:a}}function decode$1(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function decodedQuery(e={}){const t={};return Object.keys(e).forEach((n=>{try{t[n]=decode$1(e[n])}catch(e2){t[n]=e[n]}})),t}const PLUS_RE$1=/\+/g;function parseQuery$1(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let a=0;a<n.length;++a){const e=n[a].replace(PLUS_RE$1," ");let i=e.indexOf("="),o=decode$1(i<0?e:e.slice(0,i)),r=i<0?null:decode$1(e.slice(i+1));if(o in t){let e=t[o];isArray$1(e)||(e=t[o]=[e]),e.push(r)}else t[o]=r}return t}function parseUrl(e){const[t,n]=e.split("?",2);return{path:t,query:parseQuery$1(n||"")}}function debounce$1(e,t,{clearTimeout:n,setTimeout:a}){let i;const o=function(){n(i);const o=()=>e.apply(this,arguments);i=a(o,t)};return o.cancel=function(){n(i)},o}class EventChannel{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 a=0;a<n.length;)n[a].fn===t&&(n.splice(a,1),a--),a++;else delete this.listener[e]}_clearCache(e){for(let t=0;t<this.emitCache.length;t++){const n=this.emitCache[t],a=e?n.eventName===e?e:null:n.eventName;if(!a)continue;"number"!=typeof this.emit.apply(this,[a,...n.args])?(this.emitCache.splice(t,1),t--):this.emitCache.pop()}}_addListener(e,t,n){(this.listener[e]||(this.listener[e]=[])).push({fn:n,type:t})}}const PAGE_HOOKS=[ON_INIT,ON_LOAD,ON_SHOW,ON_HIDE,ON_UNLOAD,ON_BACK_PRESS,ON_PAGE_SCROLL,ON_TAB_ITEM_TAP,ON_REACH_BOTTOM,ON_PULL_DOWN_REFRESH,ON_SHARE_TIMELINE,ON_SHARE_APP_MESSAGE,ON_ADD_TO_FAVORITES,ON_SAVE_EXIT_STATE,ON_NAVIGATION_BAR_BUTTON_TAP,ON_NAVIGATION_BAR_SEARCH_INPUT_CLICKED,ON_NAVIGATION_BAR_SEARCH_INPUT_CHANGED,ON_NAVIGATION_BAR_SEARCH_INPUT_CONFIRMED,ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED];function isRootImmediateHook(e){return[ON_LOAD,ON_SHOW].indexOf(e)>-1}function isRootHook(e){return PAGE_HOOKS.indexOf(e)>-1}const UniLifecycleHooks=[ON_SHOW,ON_HIDE,ON_LAUNCH,ON_ERROR,ON_THEME_CHANGE,ON_PAGE_NOT_FOUND,ON_UNHANDLE_REJECTION,ON_EXIT,ON_INIT,ON_LOAD,ON_READY,ON_UNLOAD,ON_RESIZE,ON_BACK_PRESS,ON_PAGE_SCROLL,ON_TAB_ITEM_TAP,ON_REACH_BOTTOM,ON_PULL_DOWN_REFRESH,ON_SHARE_TIMELINE,ON_ADD_TO_FAVORITES,ON_SHARE_APP_MESSAGE,ON_SAVE_EXIT_STATE,ON_NAVIGATION_BAR_BUTTON_TAP,ON_NAVIGATION_BAR_SEARCH_INPUT_CLICKED,ON_NAVIGATION_BAR_SEARCH_INPUT_CHANGED,ON_NAVIGATION_BAR_SEARCH_INPUT_CONFIRMED,ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED];function isUniLifecycleHook(e,t,n=!0){return!(n&&!isFunction(t))&&(UniLifecycleHooks.indexOf(e)>-1||0===e.indexOf("on"))}const createVueAppHooks=[];function invokeCreateVueAppHook(e){createVueAppHooks.forEach((t=>t(e)))}const invokeCreateErrorHandler=once(((e,t)=>{if(isFunction(e._component.onError))return t(e)})),E$2=function(){};E$2.prototype={on:function(e,t,n){var a=this.e||(this.e={});return(a[e]||(a[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var a=this;function i(){a.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(),a=0,i=n.length;a<i;a++)n[a].fn.apply(n[a].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),a=n[e],i=[];if(a&&t){for(var o=a.length-1;o>=0;o--)if(a[o].fn===t||a[o].fn._===t){a.splice(o,1);break}i=a}return i.length?n[e]=i:delete n[e],this}};var E$1$1=E$2;const borderStyles={black:"rgba(0,0,0,0.4)",white:"rgba(255,255,255,0.4)"};function normalizeTabBarStyles(e){return e&&e in borderStyles?borderStyles[e]:e}function normalizeTitleColor(e){return"black"===e?"#000000":"#ffffff"}function normalizeStyles(e,t={},n="light"){const a=t[n],i={};return a?(Object.keys(e).forEach((o=>{let r=e[o];i[o]=(()=>{if(isPlainObject(r))return normalizeStyles(r,t,n);if(isArray$1(r))return r.map((e=>isPlainObject(e)?normalizeStyles(e,t,n):e));if(isString(r)&&r.startsWith("@")){const e=r.replace("@","");let t=a[e]||r;switch(o){case"titleColor":t=normalizeTitleColor(t);break;case"borderStyle":t=normalizeTabBarStyles(t)}return t}return r})()})),i):e}
/**
* @dcloudio/uni-h5-vue v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let activeEffectScope,activeEffect;class EffectScope{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=activeEffectScope,!e&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=activeEffectScope;try{return activeEffectScope=this,e()}finally{activeEffectScope=t}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}function effectScope(e){return new EffectScope(e)}function recordEffectScope(e,t=activeEffectScope){t&&t.active&&t.effects.push(e)}function getCurrentScope(){return activeEffectScope}class ReactiveEffect{constructor(e,t,n,a){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,recordEffectScope(this,a)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,pauseTracking();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(triggerComputed(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),resetTracking()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=shouldTrack,t=activeEffect;try{return shouldTrack=!0,activeEffect=this,this._runnings++,preCleanupEffect(this),this.fn()}finally{postCleanupEffect(this),this._runnings--,activeEffect=t,shouldTrack=e}}stop(){var e;this.active&&(preCleanupEffect(this),postCleanupEffect(this),null==(e=this.onStop)||e.call(this),this.active=!1)}}function triggerComputed(e){return e.value}function preCleanupEffect(e){e._trackId++,e._depsLength=0}function postCleanupEffect(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)cleanupDepEffect(e.deps[t],e);e.deps.length=e._depsLength}}function cleanupDepEffect(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}let shouldTrack=!0,pauseScheduleStack=0;const trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function resetTracking(){const e=trackStack.pop();shouldTrack=void 0===e||e}function pauseScheduling(){pauseScheduleStack++}function resetScheduling(){for(pauseScheduleStack--;!pauseScheduleStack&&queueEffectSchedulers.length;)queueEffectSchedulers.shift()()}function trackEffect(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&cleanupDepEffect(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const queueEffectSchedulers=[];function triggerEffects(e,t,n){pauseScheduling();for(const a of e.keys()){let n;a._dirtyLevel<t&&(null!=n?n:n=e.get(a)===a._trackId)&&(a._shouldSchedule||(a._shouldSchedule=0===a._dirtyLevel),a._dirtyLevel=t),a._shouldSchedule&&(null!=n?n:n=e.get(a)===a._trackId)&&(a.trigger(),a._runnings&&!a.allowRecurse||2===a._dirtyLevel||(a._shouldSchedule=!1,a.scheduler&&queueEffectSchedulers.push(a.scheduler)))}resetScheduling()}const createDep=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},targetMap=new WeakMap,ITERATE_KEY=Symbol(""),MAP_KEY_ITERATE_KEY=Symbol("");function track(e,t,n){if(shouldTrack&&activeEffect){let t=targetMap.get(e);t||targetMap.set(e,t=new Map);let a=t.get(n);a||t.set(n,a=createDep((()=>t.delete(n)))),trackEffect(activeEffect,a)}}function trigger(e,t,n,a,i,o){const r=targetMap.get(e);if(!r)return;let s=[];if("clear"===t)s=[...r.values()];else if("length"===n&&isArray$1(e)){const e=Number(a);r.forEach(((t,n)=>{("length"===n||!isSymbol(n)&&n>=e)&&s.push(t)}))}else switch(void 0!==n&&s.push(r.get(n)),t){case"add":isArray$1(e)?isIntegerKey(n)&&s.push(r.get("length")):(s.push(r.get(ITERATE_KEY)),isMap(e)&&s.push(r.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray$1(e)||(s.push(r.get(ITERATE_KEY)),isMap(e)&&s.push(r.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap(e)&&s.push(r.get(ITERATE_KEY))}pauseScheduling();for(const l of s)l&&triggerEffects(l,4);resetScheduling()}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(isSymbol)),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=toRaw(this);for(let t=0,i=this.length;t<i;t++)track(n,"get",t+"");const a=n[t](...e);return-1===a||!1===a?n[t](...e.map(toRaw)):a}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){pauseTracking(),pauseScheduling();const n=toRaw(this)[t].apply(this,e);return resetScheduling(),resetTracking(),n}})),e}function hasOwnProperty$1(e){const t=toRaw(this);return track(t,"has",e),t.hasOwnProperty(e)}class BaseReactiveHandler{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const a=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!a;if("__v_isReadonly"===t)return a;if("__v_isShallow"===t)return i;if("__v_raw"===t)return n===(a?i?shallowReadonlyMap:readonlyMap:i?shallowReactiveMap:reactiveMap).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=isArray$1(e);if(!a){if(o&&hasOwn$1(arrayInstrumentations,t))return Reflect.get(arrayInstrumentations,t,n);if("hasOwnProperty"===t)return hasOwnProperty$1}const r=Reflect.get(e,t,n);return(isSymbol(t)?builtInSymbols.has(t):isNonTrackableKeys(t))?r:(a||track(e,"get",t),i?r:isRef(r)?o&&isIntegerKey(t)?r:r.value:isObject$1(r)?a?readonly(r):reactive(r):r)}}class MutableReactiveHandler extends BaseReactiveHandler{constructor(e=!1){super(!1,e)}set(e,t,n,a){let i=e[t];if(!this._isShallow){const t=isReadonly(i);if(isShallow(n)||isReadonly(n)||(i=toRaw(i),n=toRaw(n)),!isArray$1(e)&&isRef(i)&&!isRef(n))return!t&&(i.value=n,!0)}const o=isArray$1(e)&&isIntegerKey(t)?Number(t)<e.length:hasOwn$1(e,t),r=Reflect.set(e,t,n,a);return e===toRaw(a)&&(o?hasChanged(n,i)&&trigger(e,"set",t,n):trigger(e,"add",t,n)),r}deleteProperty(e,t){const n=hasOwn$1(e,t);e[t];const a=Reflect.deleteProperty(e,t);return a&&n&&trigger(e,"delete",t,void 0),a}has(e,t){const n=Reflect.has(e,t);return isSymbol(t)&&builtInSymbols.has(t)||track(e,"has",t),n}ownKeys(e){return track(e,"iterate",isArray$1(e)?"length":ITERATE_KEY),Reflect.ownKeys(e)}}class ReadonlyReactiveHandler extends BaseReactiveHandler{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const mutableHandlers=new MutableReactiveHandler,readonlyHandlers=new ReadonlyReactiveHandler,shallowReactiveHandlers=new MutableReactiveHandler(!0),toShallow=e=>e,getProto=e=>Reflect.getPrototypeOf(e);function get(e,t,n=!1,a=!1){const i=toRaw(e=e.__v_raw),o=toRaw(t);n||(hasChanged(t,o)&&track(i,"get",t),track(i,"get",o));const{has:r}=getProto(i),s=a?toShallow:n?toReadonly:toReactive;return r.call(i,t)?s(e.get(t)):r.call(i,o)?s(e.get(o)):void(e!==i&&e.get(t))}function has(e,t=!1){const n=this.__v_raw,a=toRaw(n),i=toRaw(e);return t||(hasChanged(e,i)&&track(a,"has",e),track(a,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function size(e,t=!1){return e=e.__v_raw,!t&&track(toRaw(e),"iterate",ITERATE_KEY),Reflect.get(e,"size",e)}function add(e){e=toRaw(e);const t=toRaw(this);return getProto(t).has.call(t,e)||(t.add(e),trigger(t,"add",e,e)),this}function set$1(e,t){t=toRaw(t);const n=toRaw(this),{has:a,get:i}=getProto(n);let o=a.call(n,e);o||(e=toRaw(e),o=a.call(n,e));const r=i.call(n,e);return n.set(e,t),o?hasChanged(t,r)&&trigger(n,"set",e,t):trigger(n,"add",e,t),this}function deleteEntry(e){const t=toRaw(this),{has:n,get:a}=getProto(t);let i=n.call(t,e);i||(e=toRaw(e),i=n.call(t,e)),a&&a.call(t,e);const o=t.delete(e);return i&&trigger(t,"delete",e,void 0),o}function clear(){const e=toRaw(this),t=0!==e.size,n=e.clear();return t&&trigger(e,"clear",void 0,void 0),n}function createForEach(e,t){return function(n,a){const i=this,o=i.__v_raw,r=toRaw(o),s=t?toShallow:e?toReadonly:toReactive;return!e&&track(r,"iterate",ITERATE_KEY),o.forEach(((e,t)=>n.call(a,s(e),s(t),i)))}}function createIterableMethod(e,t,n){return function(...a){const i=this.__v_raw,o=toRaw(i),r=isMap(o),s="entries"===e||e===Symbol.iterator&&r,l="keys"===e&&r,c=i[e](...a),d=n?toShallow:t?toReadonly:toReactive;return!t&&track(o,"iterate",l?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:s?[d(e[0]),d(e[1])]:d(e),done:t}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function createInstrumentations(){const e={get(e){return get(this,e)},get size(){return size(this)},has:has,add:add,set:set$1,delete:deleteEntry,clear:clear,forEach:createForEach(!1,!1)},t={get(e){return get(this,e,!1,!0)},get size(){return size(this)},has:has,add:add,set:set$1,delete:deleteEntry,clear:clear,forEach:createForEach(!1,!0)},n={get(e){return get(this,e,!0)},get size(){return size(this,!0)},has(e){return has.call(this,e,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},a={get(e){return get(this,e,!0,!0)},get size(){return size(this,!0)},has(e){return has.call(this,e,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((i=>{e[i]=createIterableMethod(i,!1,!1),n[i]=createIterableMethod(i,!0,!1),t[i]=createIterableMethod(i,!1,!0),a[i]=createIterableMethod(i,!0,!0)})),[e,n,t,a]}const[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter(e,t){const n=t?e?shallowReadonlyInstrumentations:shallowInstrumentations:e?readonlyInstrumentations:mutableInstrumentations;return(t,a,i)=>"__v_isReactive"===a?!e:"__v_isReadonly"===a?e:"__v_raw"===a?t:Reflect.get(hasOwn$1(n,a)&&a in t?n:t,a,i)}const mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(e){return e.__v_skip||!Object.isExtensible(e)?0:targetTypeMap(toRawType(e))}function reactive(e){return isReadonly(e)?e:createReactiveObject(e,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(e){return createReactiveObject(e,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(e){return createReactiveObject(e,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function createReactiveObject(e,t,n,a,i){if(!isObject$1(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const r=getTargetType(e);if(0===r)return e;const s=new Proxy(e,2===r?a:n);return i.set(e,s),s}function isReactive(e){return isReadonly(e)?isReactive(e.__v_raw):!(!e||!e.__v_isReactive)}function isReadonly(e){return!(!e||!e.__v_isReadonly)}function isShallow(e){return!(!e||!e.__v_isShallow)}function isProxy(e){return isReactive(e)||isReadonly(e)}function toRaw(e){const t=e&&e.__v_raw;return t?toRaw(t):e}function markRaw(e){return Object.isExtensible(e)&&def(e,"__v_skip",!0),e}const toReactive=e=>isObject$1(e)?reactive(e):e,toReadonly=e=>isObject$1(e)?readonly(e):e;class ComputedRefImpl{constructor(e,t,n,a){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ReactiveEffect((()=>e(this._value)),(()=>triggerRefValue(this,2===this.effect._dirtyLevel?2:3))),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=n}get value(){const e=toRaw(this);return e._cacheable&&!e.effect.dirty||!hasChanged(e._value,e._value=e.effect.run())||triggerRefValue(e,4),trackRefValue(e),e.effect._dirtyLevel>=2&&triggerRefValue(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function computed$1(e,t,n=!1){let a,i;const o=isFunction(e);o?(a=e,i=NOOP):(a=e.get,i=e.set);return new ComputedRefImpl(a,i,o||!i,n)}function trackRefValue(e){var t;shouldTrack&&activeEffect&&(e=toRaw(e),trackEffect(activeEffect,null!=(t=e.dep)?t:e.dep=createDep((()=>e.dep=void 0),e instanceof ComputedRefImpl?e:void 0)))}function triggerRefValue(e,t=4,n){const a=(e=toRaw(e)).dep;a&&triggerEffects(a,t)}function isRef(e){return!(!e||!0!==e.__v_isRef)}function ref(e){return createRef(e,!1)}function shallowRef(e){return createRef(e,!0)}function createRef(e,t){return isRef(e)?e:new RefImpl(e,t)}class RefImpl{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:toRaw(e),this._value=t?e:toReactive(e)}get value(){return trackRefValue(this),this._value}set value(e){const t=this.__v_isShallow||isShallow(e)||isReadonly(e);e=t?e:toRaw(e),hasChanged(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:toReactive(e),triggerRefValue(this,4))}}function unref(e){return isRef(e)?e.value:e}const shallowUnwrapHandlers={get:(e,t,n)=>unref(Reflect.get(e,t,n)),set:(e,t,n,a)=>{const i=e[t];return isRef(i)&&!isRef(n)?(i.value=n,!0):Reflect.set(e,t,n,a)}};function proxyRefs(e){return isReactive(e)?e:new Proxy(e,shallowUnwrapHandlers)}const stack=[];function warn$1(e,...t){pauseTracking();const n=stack.length?stack[stack.length-1].component:null,a=n&&n.appContext.config.warnHandler,i=getComponentTrace();if(a)t.length&&(t[0]=String(t[0])),callWithErrorHandling(a,n,11,[e+t.map((e=>{var t,n;return null!=(n=null==(t=e.toString)?void 0:t.call(e))?n:JSON.stringify(e)})).join(""),n&&n.proxy,i.map((({vnode:e})=>`at <${formatComponentName(n,e.type)}>`)).join("\n"),i]);else{const n=[`[Vue warn]: ${e}`,...t];i.length&&n.push("\n",...formatTrace(i)),console.warn(...n)}resetTracking()}function getComponentTrace(){let e=stack[stack.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const a=e.component&&e.component.parent;e=a&&a.vnode}return t}function formatTrace(e){const t=[];return e.forEach(((e,n)=>{t.push(...0===n?[]:["\n"],...formatTraceEntry(e))})),t}function formatTraceEntry({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",a=!!e.component&&null==e.component.parent,i=` at <${formatComponentName(e.component,e.type,a)}`,o=">"+n;return e.props?[i,...formatProps(e.props),o]:[i+o]}function formatProps(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...formatProp(n,e[n]))})),n.length>3&&t.push(" ..."),t}function formatProp(e,t,n){return isString(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:isRef(t)?(t=formatProp(e,toRaw(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):isFunction(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=toRaw(t),n?t:[`${e}=`,t])}function callWithErrorHandling(e,t,n,a){try{return a?e(...a):e()}catch(i){handleError(i,t,n)}}function callWithAsyncErrorHandling(e,t,n,a){if(isFunction(e)){const i=callWithErrorHandling(e,t,n,a);return i&&isPromise(i)&&i.catch((e=>{handleError(e,t,n)})),i}const i=[];for(let o=0;o<e.length;o++)i.push(callWithAsyncErrorHandling(e[o],t,n,a));return i}function handleError(e,t,n,a=!0){const i=t?t.vnode:null;if(t){let a=t.parent;const i=t.proxy,o=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const t=a.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,i,o))return;a=a.parent}const r=t.appContext.config.errorHandler;if(r)return void callWithErrorHandling(r,null,10,[e,i,o])}logError(e,n,i,a)}function logError(e,t,n,a=!0){console.error(e)}let isFlushing=!1,isFlushPending=!1;const queue$1=[];let flushIndex=0;const pendingPostFlushCbs=[];let activePostFlushCbs=null,postFlushIndex=0;const resolvedPromise=Promise.resolve();let currentFlushPromise=null;function nextTick(e){const t=currentFlushPromise||resolvedPromise;return e?t.then(this?e.bind(this):e):t}function findInsertionIndex(e){let t=flushIndex+1,n=queue$1.length;for(;t<n;){const a=t+n>>>1,i=queue$1[a],o=getId(i);o<e||o===e&&i.pre?t=a+1:n=a}return t}function queueJob(e){queue$1.length&&queue$1.includes(e,isFlushing&&e.allowRecurse?flushIndex+1:flushIndex)||(null==e.id?queue$1.push(e):queue$1.splice(findInsertionIndex(e.id),0,e),queueFlush())}function queueFlush(){isFlushing||isFlushPending||(isFlushPending=!0,currentFlushPromise=resolvedPromise.then(flushJobs))}function invalidateJob(e){const t=queue$1.indexOf(e);t>flushIndex&&queue$1.splice(t,1)}function queuePostFlushCb(e){isArray$1(e)?pendingPostFlushCbs.push(...e):activePostFlushCbs&&activePostFlushCbs.includes(e,e.allowRecurse?postFlushIndex+1:postFlushIndex)||pendingPostFlushCbs.push(e),queueFlush()}function flushPreFlushCbs(e,t,n=(isFlushing?flushIndex+1:0)){for(;n<queue$1.length;n++){const t=queue$1[n];if(t&&t.pre){if(e&&t.id!==e.uid)continue;queue$1.splice(n,1),n--,t()}}}function flushPostFlushCbs(e){if(pendingPostFlushCbs.length){const e=[...new Set(pendingPostFlushCbs)].sort(((e,t)=>getId(e)-getId(t)));if(pendingPostFlushCbs.length=0,activePostFlushCbs)return void activePostFlushCbs.push(...e);for(activePostFlushCbs=e,postFlushIndex=0;postFlushIndex<activePostFlushCbs.length;postFlushIndex++)activePostFlushCbs[postFlushIndex]();activePostFlushCbs=null,postFlushIndex=0}}const getId=e=>null==e.id?1/0:e.id,comparator=(e,t)=>{const n=getId(e)-getId(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function flushJobs(e){isFlushPending=!1,isFlushing=!0,queue$1.sort(comparator);try{for(flushIndex=0;flushIndex<queue$1.length;flushIndex++){const e=queue$1[flushIndex];e&&!1!==e.active&&callWithErrorHandling(e,null,14)}}finally{flushIndex=0,queue$1.length=0,flushPostFlushCbs(),isFlushing=!1,currentFlushPromise=null,(queue$1.length||pendingPostFlushCbs.length)&&flushJobs()}}function emit$2(e,t,...n){if(e.isUnmounted)return;const a=e.vnode.props||EMPTY_OBJ;let i=n;const o=t.startsWith("update:"),r=o&&t.slice(7);if(r&&r in a){const e=`${"modelValue"===r?"model":r}Modifiers`,{number:t,trim:o}=a[e]||EMPTY_OBJ;o&&(i=n.map((e=>isString(e)?e.trim():e))),t&&(i=n.map(looseToNumber))}let s,l=a[s=toHandlerKey(t)]||a[s=toHandlerKey(camelize(t))];!l&&o&&(l=a[s=toHandlerKey(hyphenate(t))]),l&&callWithAsyncErrorHandling(l,e,6,normalizeWxsEventArgs(e,l,i));const c=a[s+"Once"];if(c){if(e.emitted){if(e.emitted[s])return}else e.emitted={};e.emitted[s]=!0,callWithAsyncErrorHandling(c,e,6,normalizeWxsEventArgs(e,c,i))}}function normalizeWxsEventArgs(e,t,n){if(1!==n.length)return n;if(isFunction(t)){if(t.length<2)return n}else if(!t.find((e=>e.length>=2)))return n;const a=n[0];if(a&&hasOwn$1(a,"type")&&hasOwn$1(a,"timeStamp")&&hasOwn$1(a,"target")&&hasOwn$1(a,"currentTarget")&&hasOwn$1(a,"detail")){const t=e.proxy,a=t.$gcd(t,!0);a&&n.push(a)}return n}function normalizeEmitsOptions(e,t,n=!1){const a=t.emitsCache,i=a.get(e);if(void 0!==i)return i;const o=e.emits;let r={},s=!1;if(!isFunction(e)){const a=e=>{const n=normalizeEmitsOptions(e,t,!0);n&&(s=!0,extend$1(r,n))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return o||s?(isArray$1(o)?o.forEach((e=>r[e]=null)):extend$1(r,o),isObject$1(e)&&a.set(e,r),r):(isObject$1(e)&&a.set(e,null),null)}function isEmitListener(e,t){return!(!e||!isOn(t))&&(t=t.slice(2).replace(/Once$/,""),hasOwn$1(e,t[0].toLowerCase()+t.slice(1))||hasOwn$1(e,hyphenate(t))||hasOwn$1(e,t))}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(e){const t=currentRenderingInstance;return currentRenderingInstance=e,currentScopeId=e&&e.type.__scopeId||null,t}function withCtx(e,t=currentRenderingInstance,n){if(!t)return e;if(e._n)return e;const a=(...n)=>{a._d&&setBlockTracking(-1);const i=setCurrentRenderingInstance(t);let o;try{o=e(...n)}finally{setCurrentRenderingInstance(i),a._d&&setBlockTracking(1)}return o};return a._n=!0,a._c=!0,a._d=!0,a}function markAttrsAccessed(){}function renderComponentRoot(e){const{type:t,vnode:n,proxy:a,withProxy:i,props:o,propsOptions:[r],slots:s,attrs:l,emit:c,render:d,renderCache:u,data:m,setupState:p,ctx:h,inheritAttrs:f}=e;let g,y;const v=setCurrentRenderingInstance(e);try{if(4&n.shapeFlag){const e=i||a,t=e;g=normalizeVNode(d.call(t,e,u,o,p,m,h)),y=l}else{const e=t;0,g=normalizeVNode(e.length>1?e(o,{attrs:l,slots:s,emit:c}):e(o,null)),y=t.props?l:getFunctionalFallthrough(l)}}catch(b){blockStack.length=0,handleError(b,e,1),g=createVNode(Comment)}let _=g;if(y&&!1!==f){const e=Object.keys(y),{shapeFlag:t}=_;e.length&&7&t&&(r&&e.some(isModelListener)&&(y=filterModelListeners(y,r)),_=cloneVNode(_,y))}return n.dirs&&(_=cloneVNode(_),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),g=_,setCurrentRenderingInstance(v),g}const getFunctionalFallthrough=e=>{let t;for(const n in e)("class"===n||"style"===n||isOn(n))&&((t||(t={}))[n]=e[n]);return t},filterModelListeners=(e,t)=>{const n={};for(const a in e)isModelListener(a)&&a.slice(9)in t||(n[a]=e[a]);return n};function shouldUpdateComponent(e,t,n){const{props:a,children:i,component:o}=e,{props:r,children:s,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!i&&!s||s&&s.$stable)||a!==r&&(a?!r||hasPropsChanged(a,r,c):!!r);if(1024&l)return!0;if(16&l)return a?hasPropsChanged(a,r,c):!!r;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(r[n]!==a[n]&&!isEmitListener(c,n))return!0}}return!1}function hasPropsChanged(e,t,n){const a=Object.keys(t);if(a.length!==Object.keys(e).length)return!0;for(let i=0;i<a.length;i++){const o=a[i];if(t[o]!==e[o]&&!isEmitListener(n,o))return!0}return!1}function updateHOCHostEl({vnode:e,parent:t},n){for(;t;){const a=t.subTree;if(a.suspense&&a.suspense.activeBranch===e&&(a.el=e.el),a!==e)break;(e=t.vnode).el=n,t=t.parent}}const COMPONENTS="components";function resolveComponent(e,t){return resolveAsset(COMPONENTS,e,!0,t)||e}const NULL_DYNAMIC_COMPONENT=Symbol.for("v-ndc");function resolveDynamicComponent(e){return isString(e)?resolveAsset(COMPONENTS,e,!1)||e:e||NULL_DYNAMIC_COMPONENT}function resolveAsset(e,t,n=!0,a=!1){const i=currentRenderingInstance||currentInstance;if(i){const n=i.type;if(e===COMPONENTS){const e=getComponentName(n,!1);if(e&&(e===t||e===camelize(t)||e===capitalize(camelize(t))))return n}const o=resolve(i[e]||n[e],t)||resolve(i.appContext[e],t);return!o&&a?n:o}}function resolve(e,t){return e&&(e[t]||e[camelize(t)]||e[capitalize(camelize(t))])}const isSuspense=e=>e.__isSuspense;function queueEffectWithSuspense(e,t){t&&t.pendingBranch?isArray$1(e)?t.effects.push(...e):t.effects.push(e):queuePostFlushCb(e)}const ssrContextKey=Symbol.for("v-scx"),useSSRContext=()=>inject(ssrContextKey);function watchEffect(e,t){return doWatch(e,null,t)}const INITIAL_WATCHER_VALUE={};function watch(e,t,n){return doWatch(e,t,n)}function doWatch(e,t,{immediate:n,deep:a,flush:i,once:o,onTrack:r,onTrigger:s}=EMPTY_OBJ){if(t&&o){const e=t;t=(...t)=>{e(...t),w()}}const l=currentInstance,c=e=>!0===a?e:traverse(e,!1===a?1:void 0);let d,u,m=!1,p=!1;if(isRef(e)?(d=()=>e.value,m=isShallow(e)):isReactive(e)?(d=()=>c(e),m=!0):isArray$1(e)?(p=!0,m=e.some((e=>isReactive(e)||isShallow(e))),d=()=>e.map((e=>isRef(e)?e.value:isReactive(e)?c(e):isFunction(e)?callWithErrorHandling(e,l,2):void 0))):d=isFunction(e)?t?()=>callWithErrorHandling(e,l,2):()=>(u&&u(),callWithAsyncErrorHandling(e,l,3,[f])):NOOP,t&&a){const e=d;d=()=>traverse(e())}let h,f=e=>{u=_.onStop=()=>{callWithErrorHandling(e,l,4),u=_.onStop=void 0}};if(isInSSRComponentSetup){if(f=NOOP,t?n&&callWithAsyncErrorHandling(t,l,3,[d(),p?[]:void 0,f]):d(),"sync"!==i)return NOOP;{const e=useSSRContext();h=e.__watcherHandles||(e.__watcherHandles=[])}}let g=p?new Array(e.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const y=()=>{if(_.active&&_.dirty)if(t){const e=_.run();(a||m||(p?e.some(((e,t)=>hasChanged(e,g[t]))):hasChanged(e,g)))&&(u&&u(),callWithAsyncErrorHandling(t,l,3,[e,g===INITIAL_WATCHER_VALUE?void 0:p&&g[0]===INITIAL_WATCHER_VALUE?[]:g,f]),g=e)}else _.run()};let v;y.allowRecurse=!!t,"sync"===i?v=y:"post"===i?v=()=>queuePostRenderEffect(y,l&&l.suspense):(y.pre=!0,l&&(y.id=l.uid),v=()=>queueJob(y));const _=new ReactiveEffect(d,NOOP,v),b=getCurrentScope(),w=()=>{_.stop(),b&&remove(b.effects,_)};return t?n?y():g=_.run():"post"===i?queuePostRenderEffect(_.run.bind(_),l&&l.suspense):_.run(),h&&h.push(w),w}function instanceWatch(e,t,n){const a=this.proxy,i=isString(e)?e.includes(".")?createPathGetter(a,e):()=>a[e]:e.bind(a,a);let o;isFunction(t)?o=t:(o=t.handler,n=t);const r=setCurrentInstance(this),s=doWatch(i,o.bind(a),n);return r(),s}function createPathGetter(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function traverse(e,t,n=0,a){if(!isObject$1(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if((a=a||new Set).has(e))return e;if(a.add(e),isRef(e))traverse(e.value,t,n,a);else if(isArray$1(e))for(let i=0;i<e.length;i++)traverse(e[i],t,n,a);else if(isSet(e)||isMap(e))e.forEach((e=>{traverse(e,t,n,a)}));else if(isPlainObject(e))for(const i in e)traverse(e[i],t,n,a);return e}function withDirectives(e,t){if(null===currentRenderingInstance)return e;const n=getExposeProxy(currentRenderingInstance)||currentRenderingInstance.proxy,a=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[e,o,r,s=EMPTY_OBJ]=t[i];e&&(isFunction(e)&&(e={mounted:e,updated:e}),e.deep&&traverse(o),a.push({dir:e,instance:n,value:o,oldValue:void 0,arg:r,modifiers:s}))}return e}function invokeDirectiveHook(e,t,n,a){const i=e.dirs,o=t&&t.dirs;for(let r=0;r<i.length;r++){const s=i[r];o&&(s.oldValue=o[r].value);let l=s.dir[a];l&&(pauseTracking(),callWithAsyncErrorHandling(l,n,8,[e.el,s,e,t]),resetTracking())}}const leaveCbKey=Symbol("_leaveCb"),enterCbKey$1=Symbol("_enterCb");function useTransitionState(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return onMounted((()=>{e.isMounted=!0})),onBeforeUnmount((()=>{e.isUnmounting=!0})),e}const TransitionHookValidator=[Function,Array],BaseTransitionPropsValidators={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},BaseTransitionImpl={name:"BaseTransition",props:BaseTransitionPropsValidators,setup(e,{slots:t}){const n=getCurrentInstance(),a=useTransitionState();return()=>{const i=t.default&&getTransitionRawChildren(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1)for(const e of i)if(e.type!==Comment){o=e;break}const r=toRaw(e),{mode:s}=r;if(a.isLeaving)return emptyPlaceholder(o);const l=getKeepAliveChild(o);if(!l)return emptyPlaceholder(o);const c=resolveTransitionHooks(l,r,a,n);setTransitionHooks(l,c);const d=n.subTree,u=d&&getKeepAliveChild(d);if(u&&u.type!==Comment&&!isSameVNodeType(l,u)){const e=resolveTransitionHooks(u,r,a,n);if(setTransitionHooks(u,e),"out-in"===s)return a.isLeaving=!0,e.afterLeave=()=>{a.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},emptyPlaceholder(o);"in-out"===s&&l.type!==Comment&&(e.delayLeave=(e,t,n)=>{getLeavingNodesForType(a,u)[String(u.key)]=u,e[leaveCbKey]=()=>{t(),e[leaveCbKey]=void 0,delete c.delayedLeave},c.delayedLeave=n})}return o}}},BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(e,t){const{leavingVNodes:n}=e;let a=n.get(t.type);return a||(a=Object.create(null),n.set(t.type,a)),a}function resolveTransitionHooks(e,t,n,a){const{appear:i,mode:o,persisted:r=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:u,onLeave:m,onAfterLeave:p,onLeaveCancelled:h,onBeforeAppear:f,onAppear:g,onAfterAppear:y,onAppearCancelled:v}=t,_=String(e.key),b=getLeavingNodesForType(n,e),w=(e,t)=>{e&&callWithAsyncErrorHandling(e,a,9,t)},S=(e,t)=>{const n=t[1];w(e,t),isArray$1(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},C={mode:o,persisted:r,beforeEnter(t){let a=s;if(!n.isMounted){if(!i)return;a=f||s}t[leaveCbKey]&&t[leaveCbKey](!0);const o=b[_];o&&isSameVNodeType(e,o)&&o.el[leaveCbKey]&&o.el[leaveCbKey](),w(a,[t])},enter(e){let t=l,a=c,o=d;if(!n.isMounted){if(!i)return;t=g||l,a=y||c,o=v||d}let r=!1;const s=e[enterCbKey$1]=t=>{r||(r=!0,w(t?o:a,[e]),C.delayedLeave&&C.delayedLeave(),e[enterCbKey$1]=void 0)};t?S(t,[e,s]):s()},leave(t,a){const i=String(e.key);if(t[enterCbKey$1]&&t[enterCbKey$1](!0),n.isUnmounting)return a();w(u,[t]);let o=!1;const r=t[leaveCbKey]=n=>{o||(o=!0,a(),w(n?h:p,[t]),t[leaveCbKey]=void 0,b[i]===e&&delete b[i])};b[i]=e,m?S(m,[t,r]):r()},clone:e=>resolveTransitionHooks(e,t,n,a)};return C}function emptyPlaceholder(e){if(isKeepAlive(e))return(e=cloneVNode(e)).children=null,e}function getKeepAliveChild(e){return isKeepAlive(e)?e.children?e.children[0]:void 0:e}function setTransitionHooks(e,t){6&e.shapeFlag&&e.component?setTransitionHooks(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 getTransitionRawChildren(e,t=!1,n){let a=[],i=0;for(let o=0;o<e.length;o++){let r=e[o];const s=null==n?r.key:String(n)+String(null!=r.key?r.key:o);r.type===Fragment?(128&r.patchFlag&&i++,a=a.concat(getTransitionRawChildren(r.children,t,s))):(t||r.type!==Comment)&&a.push(null!=s?cloneVNode(r,{key:s}):r)}if(i>1)for(let o=0;o<a.length;o++)a[o].patchFlag=-2;return a}
/*! #__NO_SIDE_EFFECTS__ */function defineComponent(e,t){return isFunction(e)?(()=>extend$1({name:e.name},t,{setup:e}))():e}const isAsyncWrapper=e=>!!e.type.__asyncLoader
/*! #__NO_SIDE_EFFECTS__ */;function defineAsyncComponent(e){isFunction(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:a,delay:i=200,timeout:o,suspensible:r=!0,onError:s}=e;let l,c=null,d=0;const u=()=>{let e;return c||(e=c=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),s)return new Promise(((t,n)=>{s(e,(()=>t((d++,c=null,u()))),(()=>n(e)),d+1)}));throw e})).then((t=>e!==c&&c?c:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),l=t,t))))};return defineComponent({name:"AsyncComponentWrapper",__asyncLoader:u,get __asyncResolved(){return l},setup(){const e=currentInstance;if(l)return()=>createInnerComp(l,e);const t=t=>{c=null,handleError(t,e,13,!a)};if(r&&e.suspense||isInSSRComponentSetup)return u().then((t=>()=>createInnerComp(t,e))).catch((e=>(t(e),()=>a?createVNode(a,{error:e}):null)));const s=ref(!1),d=ref(),m=ref(!!i);return i&&setTimeout((()=>{m.value=!1}),i),null!=o&&setTimeout((()=>{if(!s.value&&!d.value){const e=new Error(`Async component timed out after ${o}ms.`);t(e),d.value=e}}),o),u().then((()=>{s.value=!0,e.parent&&isKeepAlive(e.parent.vnode)&&(e.parent.effect.dirty=!0,queueJob(e.parent.update))})).catch((e=>{t(e),d.value=e})),()=>s.value&&l?createInnerComp(l,e):d.value&&a?createVNode(a,{error:d.value}):n&&!m.value?createVNode(n):void 0}})}function createInnerComp(e,t){const{ref:n,props:a,children:i,ce:o}=t.vnode,r=createVNode(e,a,i);return r.ref=n,r.ce=o,delete t.vnode.ce,r}const isKeepAlive=e=>e.type.__isKeepAlive;class Cache{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:a}=this,i=t.get(e);if(i)n.delete(e),n.add(e);else if(n.add(e),a&&n.size>a){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 KeepAliveImpl={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=getCurrentInstance(),a=n.ctx;if(!a.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const i=e.cache||new Cache(e.max);i.pruneCacheEntry=r;let o=null;function r(t){var a;!o||!isSameVNodeType(t,o)||"key"===e.matchBy&&t.key!==o.key?(resetShapeFlag(a=t),d(a,n,s,!0)):o&&resetShapeFlag(o)}const s=n.suspense,{renderer:{p:l,m:c,um:d,o:{createElement:u}}}=a,m=u("div");function p(t){i.forEach(((n,a)=>{const o=getMatchingName(n,e.matchBy);!o||t&&t(o)||(i.delete(a),r(n))}))}a.activate=(e,t,n,a,i)=>{const o=e.component;if(o.ba){const e=o.isDeactivated;o.isDeactivated=!1,invokeArrayFns$1(o.ba),o.isDeactivated=e}c(e,t,n,0,s),l(o.vnode,e,t,n,o,s,a,e.slotScopeIds,i),queuePostRenderEffect((()=>{o.isDeactivated=!1,o.a&&invokeArrayFns$1(o.a);const t=e.props&&e.props.onVnodeMounted;t&&invokeVNodeHook(t,o.parent,e)}),s)},a.deactivate=e=>{const t=e.component;t.bda&&invokeKeepAliveHooks(t.bda),c(e,m,null,1,s),queuePostRenderEffect((()=>{t.bda&&resetHookState(t.bda),t.da&&invokeArrayFns$1(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&invokeVNodeHook(n,t.parent,e),t.isDeactivated=!0}),s)},watch((()=>[e.include,e.exclude,e.matchBy]),(([e,t])=>{e&&p((t=>matches$1(e,t))),t&&p((e=>!matches$1(t,e)))}),{flush:"post",deep:!0});let h=null;const f=()=>{null!=h&&i.set(h,getInnerChild(n.subTree))};return onMounted(f),onUpdated(f),onBeforeUnmount((()=>{i.forEach(((t,a)=>{i.delete(a),r(t);const{subTree:o,suspense:s}=n,l=getInnerChild(o);if(t.type!==l.type||"key"===e.matchBy&&t.key!==l.key);else{l.component.bda&&invokeArrayFns$1(l.component.bda),resetShapeFlag(l);const e=l.component.da;e&&queuePostRenderEffect(e,s)}}))})),()=>{if(h=null,!t.default)return null;const n=t.default(),a=n[0];if(n.length>1)return o=null,n;if(!isVNode(a)||!(4&a.shapeFlag)&&!isSuspense(a.type))return o=null,a;let r=getInnerChild(a);const s=r.type,l=getMatchingName(r,e.matchBy),{include:c,exclude:d}=e;if(c&&(!l||!matches$1(c,l))||d&&l&&matches$1(d,l))return o=r,a;const u=null==r.key?s:r.key,m=i.get(u);return r.el&&(r=cloneVNode(r),isSuspense(a.type)&&(a.ssContent=r)),h=u,m&&(r.el=m.el,r.component=m.component,r.transition&&setTransitionHooks(r,r.transition),r.shapeFlag|=512),r.shapeFlag|=256,o=r,isSuspense(a.type)?a:r}}},KeepAlive=KeepAliveImpl;function matches$1(e,t){return isArray$1(e)?e.some((e=>matches$1(e,t))):isString(e)?e.split(",").includes(t):!!isRegExp(e)&&e.test(t)}function onBeforeActivate(e,t){registerKeepAliveHook(e,"ba",t)}function onActivated(e,t){registerKeepAliveHook(e,"a",t)}function onBeforeDeactivate(e,t){registerKeepAliveHook(e,"bda",t)}function onDeactivated(e,t){registerKeepAliveHook(e,"da",t)}function registerKeepAliveHook(e,t,n=currentInstance){const a=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(a.__called=!1,injectHook(t,a,n),n){let e=n.parent;for(;e&&e.parent;)isKeepAlive(e.parent.vnode)&&injectToKeepAliveRoot(a,t,n,e),e=e.parent}}function injectToKeepAliveRoot(e,t,n,a){const i=injectHook(t,e,a,!0);onUnmounted((()=>{remove(a[t],i)}),n)}function resetShapeFlag(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function getInnerChild(e){return isSuspense(e.type)?e.ssContent:e}function getMatchingName(e,t){if("name"===t){const t=e.type;return getComponentName(isAsyncWrapper(e)?t.__asyncResolved||{}:t)}return String(e.key)}function invokeKeepAliveHooks(e){for(let t=0;t<e.length;t++){const n=e[t];n.__called||(n(),n.__called=!0)}}function resetHookState(e){e.forEach((e=>e.__called=!1))}function injectHook(e,t,n=currentInstance,a=!1){if(n){if(isRootHook(e)&&n.$pageInstance){if(n.type.__reserved)return;if(n!==n.$pageInstance&&(n=n.$pageInstance,isRootImmediateHook(e))){const a=n.proxy;callWithAsyncErrorHandling(t.bind(a),n,e,ON_LOAD===e?[a.$page.options]:[])}}const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...a)=>{if(n.isUnmounted)return;pauseTracking();const i=setCurrentInstance(n),o=callWithAsyncErrorHandling(t,n,e,a);return i(),resetTracking(),o});return a?i.unshift(o):i.push(o),o}}const createHook$1=e=>(t,n=currentInstance)=>(!isInSSRComponentSetup||"sp"===e)&&injectHook(e,((...e)=>t(...e)),n),onBeforeMount=createHook$1("bm"),onMounted=createHook$1("m"),onBeforeUpdate=createHook$1("bu"),onUpdated=createHook$1("u"),onBeforeUnmount=createHook$1("bum"),onUnmounted=createHook$1("um"),onServerPrefetch=createHook$1("sp"),onRenderTriggered=createHook$1("rtg"),onRenderTracked=createHook$1("rtc");function onErrorCaptured(e,t=currentInstance){injectHook("ec",e,t)}function renderList(e,t,n,a){let i;const o=n&&n[a];if(isArray$1(e)||isString(e)){i=new Array(e.length);for(let n=0,a=e.length;n<a;n++)i[n]=t(e[n],n,void 0,o&&o[n])}else if("number"==typeof e){i=new Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,o&&o[n])}else if(isObject$1(e))if(e[Symbol.iterator])i=Array.from(e,((e,n)=>t(e,n,void 0,o&&o[n])));else{const n=Object.keys(e);i=new Array(n.length);for(let a=0,r=n.length;a<r;a++){const r=n[a];i[a]=t(e[r],r,a,o&&o[a])}}else i=[];return n&&(n[a]=i),i}function createSlots(e,t){for(let n=0;n<t.length;n++){const a=t[n];if(isArray$1(a))for(let t=0;t<a.length;t++)e[a[t].name]=a[t].fn;else a&&(e[a.name]=a.key?(...e)=>{const t=a.fn(...e);return t&&(t.key=a.key),t}:a.fn)}return e}function renderSlot(e,t,n={},a,i){if(currentRenderingInstance.isCE||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&&currentRenderingInstance.parent.isCE)return"default"!==t&&(n.name=t),createVNode("slot",n,a&&a());let o=e[t];o&&o._c&&(o._d=!1),openBlock();const r=o&&ensureValidVNode(o(n)),s=createBlock(Fragment,{key:n.key||r&&r.key||`_${t}`},r||(a?a():[]),r&&1===e._?64:-2);return!i&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),o&&o._c&&(o._d=!0),s}function ensureValidVNode(e){return e.some((e=>!isVNode(e)||e.type!==Comment&&!(e.type===Fragment&&!ensureValidVNode(e.children))))?e:null}const getPublicInstance=e=>{if(!e)return null;if(isStatefulComponent(e)){return getExposeProxy(e)||e.proxy}return getPublicInstance(e.parent)},createForceUpdate=e=>function(){e.effect.dirty=!0,queueJob(e.update)},publicPropertiesMap=extend$1(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=>getPublicInstance(e.parent),$root:e=>getPublicInstance(e.root),$emit:e=>e.emit,$options:e=>resolveMergedOptions(e),$forceUpdate:e=>e.f||(e.f=createForceUpdate(e)),$nextTick:e=>e.n||(e.n=nextTick.bind(e.proxy)),$watch:e=>instanceWatch.bind(e)}),hasSetupBinding=(e,t)=>e!==EMPTY_OBJ&&!e.__isScriptSetup&&hasOwn$1(e,t),PublicInstanceProxyHandlers={get({_:e},t){const{ctx:n,setupState:a,data:i,props:o,accessCache:r,type:s,appContext:l}=e;let c;if("$"!==t[0]){const s=r[t];if(void 0!==s)switch(s){case 1:return a[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(hasSetupBinding(a,t))return r[t]=1,a[t];if(i!==EMPTY_OBJ&&hasOwn$1(i,t))return r[t]=2,i[t];if((c=e.propsOptions[0])&&hasOwn$1(c,t))return r[t]=3,o[t];if(n!==EMPTY_OBJ&&hasOwn$1(n,t))return r[t]=4,n[t];shouldCacheAccess&&(r[t]=0)}}const d=publicPropertiesMap[t];let u,m;return d?("$attrs"===t&&track(e,"get",t),d(e)):(u=s.__cssModules)&&(u=u[t])?u:n!==EMPTY_OBJ&&hasOwn$1(n,t)?(r[t]=4,n[t]):(m=l.config.globalProperties,hasOwn$1(m,t)?m[t]:void 0)},set({_:e},t,n){const{data:a,setupState:i,ctx:o}=e;return hasSetupBinding(i,t)?(i[t]=n,!0):a!==EMPTY_OBJ&&hasOwn$1(a,t)?(a[t]=n,!0):!hasOwn$1(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(o[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:a,appContext:i,propsOptions:o}},r){let s;return!!n[r]||e!==EMPTY_OBJ&&hasOwn$1(e,r)||hasSetupBinding(t,r)||(s=o[0])&&hasOwn$1(s,r)||hasOwn$1(a,r)||hasOwn$1(publicPropertiesMap,r)||hasOwn$1(i.config.globalProperties,r)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:hasOwn$1(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function normalizePropsOrEmits(e){return isArray$1(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}let shouldCacheAccess=!0;function applyOptions$1(e){const t=resolveMergedOptions(e),n=e.proxy,a=e.ctx;shouldCacheAccess=!1,t.beforeCreate&&callHook$1(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:r,watch:s,provide:l,inject:c,created:d,beforeMount:u,mounted:m,beforeUpdate:p,updated:h,activated:f,deactivated:g,beforeDestroy:y,beforeUnmount:v,destroyed:_,unmounted:b,render:w,renderTracked:S,renderTriggered:C,errorCaptured:k,serverPrefetch:x,expose:T,inheritAttrs:A,components:E,directives:I,filters:P}=t;if(c&&resolveInjections(c,a,null),r)for(const M in r){const e=r[M];isFunction(e)&&(a[M]=e.bind(n))}if(i){const t=i.call(n,n);isObject$1(t)&&(e.data=reactive(t))}if(shouldCacheAccess=!0,o)for(const M in o){const e=o[M],t=isFunction(e)?e.bind(n,n):isFunction(e.get)?e.get.bind(n,n):NOOP,i=!isFunction(e)&&isFunction(e.set)?e.set.bind(n):NOOP,r=computed({get:t,set:i});Object.defineProperty(a,M,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e})}if(s)for(const M in s)createWatcher(s[M],a,n,M);if(l){const e=isFunction(l)?l.call(n):l;Reflect.ownKeys(e).forEach((t=>{provide(t,e[t])}))}function N(e,t){isArray$1(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(d&&callHook$1(d,e,"c"),N(onBeforeMount,u),N(onMounted,m),N(onBeforeUpdate,p),N(onUpdated,h),N(onActivated,f),N(onDeactivated,g),N(onErrorCaptured,k),N(onRenderTracked,S),N(onRenderTriggered,C),N(onBeforeUnmount,v),N(onUnmounted,b),N(onServerPrefetch,x),isArray$1(T))if(T.length){const t=e.exposed||(e.exposed={});T.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});w&&e.render===NOOP&&(e.render=w),null!=A&&(e.inheritAttrs=A),E&&(e.components=E),I&&(e.directives=I);const O=e.appContext.config.globalProperties.$applyOptions;O&&O(t,e,n)}function resolveInjections(e,t,n=NOOP){isArray$1(e)&&(e=normalizeInject(e));for(const a in e){const n=e[a];let i;i=isObject$1(n)?"default"in n?inject(n.from||a,n.default,!0):inject(n.from||a):inject(n),isRef(i)?Object.defineProperty(t,a,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[a]=i}}function callHook$1(e,t,n){callWithAsyncErrorHandling(isArray$1(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function createWatcher(e,t,n,a){const i=a.includes(".")?createPathGetter(n,a):()=>n[a];if(isString(e)){const n=t[e];isFunction(n)&&watch(i,n)}else if(isFunction(e))watch(i,e.bind(n));else if(isObject$1(e))if(isArray$1(e))e.forEach((e=>createWatcher(e,t,n,a)));else{const a=isFunction(e.handler)?e.handler.bind(n):t[e.handler];isFunction(a)&&watch(i,a,e)}}function resolveMergedOptions(e){const t=e.type,{mixins:n,extends:a}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,s=o.get(t);let l;return s?l=s:i.length||n||a?(l={},i.length&&i.forEach((e=>mergeOptions$1(l,e,r,!0))),mergeOptions$1(l,t,r)):l=t,isObject$1(t)&&o.set(t,l),l}function mergeOptions$1(e,t,n,a=!1){const{mixins:i,extends:o}=t;o&&mergeOptions$1(e,o,n,!0),i&&i.forEach((t=>mergeOptions$1(e,t,n,!0)));for(const r in t)if(a&&"expose"===r);else{const a=internalOptionMergeStrats[r]||n&&n[r];e[r]=a?a(e[r],t[r]):t[r]}return e}const internalOptionMergeStrats={data:mergeDataFn,props:mergeEmitsOrPropsOptions,emits:mergeEmitsOrPropsOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray$1,created:mergeAsArray$1,beforeMount:mergeAsArray$1,mounted:mergeAsArray$1,beforeUpdate:mergeAsArray$1,updated:mergeAsArray$1,beforeDestroy:mergeAsArray$1,beforeUnmount:mergeAsArray$1,destroyed:mergeAsArray$1,unmounted:mergeAsArray$1,activated:mergeAsArray$1,deactivated:mergeAsArray$1,errorCaptured:mergeAsArray$1,serverPrefetch:mergeAsArray$1,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(e,t){return t?e?function(){return extend$1(isFunction(e)?e.call(this,this):e,isFunction(t)?t.call(this,this):t)}:t:e}function mergeInject(e,t){return mergeObjectOptions(normalizeInject(e),normalizeInject(t))}function normalizeInject(e){if(isArray$1(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function mergeAsArray$1(e,t){return e?[...new Set([].concat(e,t))]:t}function mergeObjectOptions(e,t){return e?extend$1(Object.create(null),e,t):t}function mergeEmitsOrPropsOptions(e,t){return e?isArray$1(e)&&isArray$1(t)?[...new Set([...e,...t])]:extend$1(Object.create(null),normalizePropsOrEmits(e),normalizePropsOrEmits(null!=t?t:{})):t}function mergeWatchOptions(e,t){if(!e)return t;if(!t)return e;const n=extend$1(Object.create(null),e);for(const a in t)n[a]=mergeAsArray$1(e[a],t[a]);return n}function createAppContext(){return{app:null,config:{isNativeTag:NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let uid$1=0;function createAppAPI(e,t){return function(n,a=null){isFunction(n)||(n=extend$1({},n)),null==a||isObject$1(a)||(a=null);const i=createAppContext(),o=new WeakSet;let r=!1;const s=i.app={_uid:uid$1++,_component:n,_props:a,_container:null,_context:i,_instance:null,version:version,get config(){return i.config},set config(e){},use:(e,...t)=>(o.has(e)||(e&&isFunction(e.install)?(o.add(e),e.install(s,...t)):isFunction(e)&&(o.add(e),e(s,...t))),s),mixin:e=>(i.mixins.includes(e)||i.mixins.push(e),s),component:(e,t)=>t?(i.components[e]=t,s):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,s):i.directives[e],mount(o,l,c){if(!r){const d=createVNode(n,a);return d.appContext=i,!0===c?c="svg":!1===c&&(c=void 0),l&&t?t(d,o):e(d,o,c),r=!0,s._container=o,o.__vue_app__=s,s._instance=d.component,getExposeProxy(d.component)||d.component.proxy}},unmount(){r&&(e(null,s._container),delete s._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,s),runWithContext(e){const t=currentApp;currentApp=s;try{return e()}finally{currentApp=t}}};return s}}let currentApp=null;function provide(e,t){if(currentInstance){let n=currentInstance.provides;const a=currentInstance.parent&&currentInstance.parent.provides;a===n&&(n=currentInstance.provides=Object.create(a)),n[e]=t,"app"===currentInstance.type.mpType&&currentInstance.appContext.app.provide(e,t)}else;}function inject(e,t,n=!1){const a=currentInstance||currentRenderingInstance;if(a||currentApp){const i=a?null==a.parent?a.vnode.appContext&&a.vnode.appContext.provides:a.parent.provides:currentApp._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&isFunction(t)?t.call(a&&a.proxy):t}}function initProps(e,t,n,a=!1){const i={},o={};def(o,InternalObjectKey,1),e.propsDefaults=Object.create(null),setFullProps(e,t,i,o);for(const r in e.propsOptions[0])r in i||(i[r]=void 0);n?e.props=a?i:shallowReactive(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function updateProps(e,t,n,a){const{props:i,attrs:o,vnode:{patchFlag:r}}=e,s=toRaw(i),[l]=e.propsOptions;let c=!1;if(!(a||r>0)||16&r){let a;setFullProps(e,t,i,o)&&(c=!0);for(const o in s)t&&(hasOwn$1(t,o)||(a=hyphenate(o))!==o&&hasOwn$1(t,a))||(l?!n||void 0===n[o]&&void 0===n[a]||(i[o]=resolvePropValue(l,s,o,void 0,e,!0)):delete i[o]);if(o!==s)for(const e in o)t&&hasOwn$1(t,e)||(delete o[e],c=!0)}else if(8&r){const n=e.vnode.dynamicProps;for(let a=0;a<n.length;a++){let r=n[a];if(isEmitListener(e.emitsOptions,r))continue;const d=t[r];if(l)if(hasOwn$1(o,r))d!==o[r]&&(o[r]=d,c=!0);else{const t=camelize(r);i[t]=resolvePropValue(l,s,t,d,e,!1)}else d!==o[r]&&(o[r]=d,c=!0)}}c&&trigger(e,"set","$attrs")}function setFullProps(e,t,n,a){const[i,o]=e.propsOptions;let r,s=!1;if(t)for(let l in t){if(isReservedProp(l))continue;const c=t[l];let d;i&&hasOwn$1(i,d=camelize(l))?o&&o.includes(d)?(r||(r={}))[d]=c:n[d]=c:isEmitListener(e.emitsOptions,l)||l in a&&c===a[l]||(a[l]=c,s=!0)}if(o){const t=toRaw(n),a=r||EMPTY_OBJ;for(let r=0;r<o.length;r++){const s=o[r];n[s]=resolvePropValue(i,t,s,a[s],e,!hasOwn$1(a,s))}}return s}function resolvePropValue(e,t,n,a,i,o){const r=e[n];if(null!=r){const e=hasOwn$1(r,"default");if(e&&void 0===a){const e=r.default;if(r.type!==Function&&!r.skipFactory&&isFunction(e)){const{propsDefaults:o}=i;if(n in o)a=o[n];else{const r=setCurrentInstance(i);a=o[n]=e.call(null,t),r()}}else a=e}r[0]&&(o&&!e?a=!1:!r[1]||""!==a&&a!==hyphenate(n)||(a=!0))}return a}function normalizePropsOptions(e,t,n=!1){const a=t.propsCache,i=a.get(e);if(i)return i;const o=e.props,r={},s=[];let l=!1;if(!isFunction(e)){const a=e=>{l=!0;const[n,a]=normalizePropsOptions(e,t,!0);extend$1(r,n),a&&s.push(...a)};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!o&&!l)return isObject$1(e)&&a.set(e,EMPTY_ARR),EMPTY_ARR;if(isArray$1(o))for(let d=0;d<o.length;d++){const e=camelize(o[d]);validatePropName(e)&&(r[e]=EMPTY_OBJ)}else if(o)for(const d in o){const e=camelize(d);if(validatePropName(e)){const t=o[d],n=r[e]=isArray$1(t)||isFunction(t)?{type:t}:extend$1({},t);if(n){const t=getTypeIndex(Boolean,n.type),a=getTypeIndex(String,n.type);n[0]=t>-1,n[1]=a<0||t<a,(t>-1||hasOwn$1(n,"default"))&&s.push(e)}}}const c=[r,s];return isObject$1(e)&&a.set(e,c),c}function validatePropName(e){return"$"!==e[0]&&!isReservedProp(e)}function getType(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 isSameType(e,t){return getType(e)===getType(t)}function getTypeIndex(e,t){return isArray$1(t)?t.findIndex((t=>isSameType(t,e))):isFunction(t)&&isSameType(t,e)?0:-1}const isInternalKey=e=>"_"===e[0]||"$stable"===e,normalizeSlotValue=e=>isArray$1(e)?e.map(normalizeVNode):[normalizeVNode(e)],normalizeSlot$1=(e,t,n)=>{if(t._n)return t;const a=withCtx(((...e)=>normalizeSlotValue(t(...e))),n);return a._c=!1,a},normalizeObjectSlots=(e,t,n)=>{const a=e._ctx;for(const i in e){if(isInternalKey(i))continue;const n=e[i];if(isFunction(n))t[i]=normalizeSlot$1(i,n,a);else if(null!=n){const e=normalizeSlotValue(n);t[i]=()=>e}}},normalizeVNodeSlots=(e,t)=>{const n=normalizeSlotValue(t);e.slots.default=()=>n},initSlots=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=toRaw(t),def(t,"_",n)):normalizeObjectSlots(t,e.slots={})}else e.slots={},t&&normalizeVNodeSlots(e,t);def(e.slots,InternalObjectKey,1)},updateSlots=(e,t,n)=>{const{vnode:a,slots:i}=e;let o=!0,r=EMPTY_OBJ;if(32&a.shapeFlag){const e=t._;e?n&&1===e?o=!1:(extend$1(i,t),n||1!==e||delete i._):(o=!t.$stable,normalizeObjectSlots(t,i)),r=t}else t&&(normalizeVNodeSlots(e,t),r={default:1});if(o)for(const s in i)isInternalKey(s)||null!=r[s]||delete i[s]};function setRef(e,t,n,a,i=!1){if(isArray$1(e))return void e.forEach(((e,o)=>setRef(e,t&&(isArray$1(t)?t[o]:t),n,a,i)));if(isAsyncWrapper(a)&&!i)return;const o=4&a.shapeFlag?getExposeProxy(a.component)||a.component.proxy:a.el,r=i?null:o,{i:s,r:l}=e,c=t&&t.r,d=s.refs===EMPTY_OBJ?s.refs={}:s.refs,u=s.setupState;if(null!=c&&c!==l&&(isString(c)?(d[c]=null,hasOwn$1(u,c)&&(u[c]=null)):isRef(c)&&(c.value=null)),isFunction(l))callWithErrorHandling(l,s,12,[r,d]);else{const t=isString(l),a=isRef(l);if(t||a){const s=()=>{if(e.f){const n=t?hasOwn$1(u,l)?u[l]:d[l]:l.value;i?isArray$1(n)&&remove(n,o):isArray$1(n)?n.includes(o)||n.push(o):t?(d[l]=[o],hasOwn$1(u,l)&&(u[l]=d[l])):(l.value=[o],e.k&&(d[e.k]=l.value))}else t?(d[l]=r,hasOwn$1(u,l)&&(u[l]=r)):a&&(l.value=r,e.k&&(d[e.k]=r))};r?(s.id=-1,queuePostRenderEffect(s,n)):s()}}}const queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(e){return baseCreateRenderer(e)}function baseCreateRenderer(e,t){getGlobalThis().__VUE__=!0;const{insert:n,remove:a,patchProp:i,forcePatchProp:o,createElement:r,createText:s,createComment:l,setText:c,setElementText:d,parentNode:u,nextSibling:m,setScopeId:p=NOOP,insertStaticContent:h}=e,f=(e,t,n,a=null,i=null,o=null,r,s=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!isSameVNodeType(e,t)&&(a=z(e),V(e,i,o,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:d,shapeFlag:u}=t;switch(c){case Text:g(e,t,n,a);break;case Comment:y(e,t,n,a);break;case Static:null==e&&v(t,n,a,r);break;case Fragment:T(e,t,n,a,i,o,r,s,l);break;default:1&u?_(e,t,n,a,i,o,r,s,l):6&u?A(e,t,n,a,i,o,r,s,l):(64&u||128&u)&&c.process(e,t,n,a,i,o,r,s,l,j)}null!=d&&i&&setRef(d,e&&e.ref,o,t||e,!t)},g=(e,t,a,i)=>{if(null==e)n(t.el=s(t.children),a,i);else{const n=t.el=e.el;t.children!==e.children&&c(n,t.children)}},y=(e,t,a,i)=>{null==e?n(t.el=l(t.children||""),a,i):t.el=e.el},v=(e,t,n,a)=>{[e.el,e.anchor]=h(e.children,t,n,a,e.el,e.anchor)},_=(e,t,n,a,i,o,r,s,l)=>{"svg"===t.type?r="svg":"math"===t.type&&(r="mathml"),null==e?b(t,n,a,i,o,r,s,l):C(e,t,i,o,r,s,l)},b=(e,t,a,o,s,l,c,u)=>{let m,p;const{props:h,shapeFlag:f,transition:g,dirs:y}=e;if(m=e.el=r(e.type,l,h&&h.is,h),8&f?d(m,e.children):16&f&&S(e.children,m,null,o,s,resolveChildrenNamespace(e,l),c,u),y&&invokeDirectiveHook(e,null,o,"created"),w(m,e,e.scopeId,c,o),h){for(const t in h)"value"===t||isReservedProp(t)||i(m,t,null,h[t],l,e.children,o,s,F);"value"in h&&i(m,"value",null,h.value,l),(p=h.onVnodeBeforeMount)&&invokeVNodeHook(p,o,e)}Object.defineProperty(m,"__vueParentComponent",{value:o,enumerable:!1}),y&&invokeDirectiveHook(e,null,o,"beforeMount");const v=needTransition(s,g);v&&g.beforeEnter(m),n(m,t,a),((p=h&&h.onVnodeMounted)||v||y)&&queuePostRenderEffect((()=>{p&&invokeVNodeHook(p,o,e),v&&g.enter(m),y&&invokeDirectiveHook(e,null,o,"mounted")}),s)},w=(e,t,n,a,i)=>{if(n&&p(e,n),a)for(let o=0;o<a.length;o++)p(e,a[o]);if(i){if(t===i.subTree){const t=i.vnode;w(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},S=(e,t,n,a,i,o,r,s,l=0)=>{for(let c=l;c<e.length;c++){const l=e[c]=s?cloneIfMounted(e[c]):normalizeVNode(e[c]);f(null,l,t,n,a,i,o,r,s)}},C=(e,t,n,a,r,s,l)=>{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:m,dirs:p}=t;u|=16&e.patchFlag;const h=e.props||EMPTY_OBJ,f=t.props||EMPTY_OBJ;let g;if(n&&toggleRecurse(n,!1),(g=f.onVnodeBeforeUpdate)&&invokeVNodeHook(g,n,t,e),p&&invokeDirectiveHook(t,e,n,"beforeUpdate"),n&&toggleRecurse(n,!0),m?k(e.dynamicChildren,m,c,n,a,resolveChildrenNamespace(t,r),s):l||O(e,t,c,null,n,a,resolveChildrenNamespace(t,r),s,!1),u>0){if(16&u)x(c,t,h,f,n,a,r);else if(2&u&&h.class!==f.class&&i(c,"class",null,f.class,r),4&u&&i(c,"style",h.style,f.style,r),8&u){const s=t.dynamicProps;for(let t=0;t<s.length;t++){const l=s[t],d=h[l],u=f[l];(u!==d||"value"===l||o&&o(c,l))&&i(c,l,d,u,r,e.children,n,a,F)}}1&u&&e.children!==t.children&&d(c,t.children)}else l||null!=m||x(c,t,h,f,n,a,r);((g=f.onVnodeUpdated)||p)&&queuePostRenderEffect((()=>{g&&invokeVNodeHook(g,n,t,e),p&&invokeDirectiveHook(t,e,n,"updated")}),a)},k=(e,t,n,a,i,o,r)=>{for(let s=0;s<t.length;s++){const l=e[s],c=t[s],d=l.el&&(l.type===Fragment||!isSameVNodeType(l,c)||70&l.shapeFlag)?u(l.el):n;f(l,c,d,null,a,i,o,r,!0)}},x=(e,t,n,a,r,s,l)=>{if(n!==a){if(n!==EMPTY_OBJ)for(const o in n)isReservedProp(o)||o in a||i(e,o,n[o],null,l,t.children,r,s,F);for(const c in a){if(isReservedProp(c))continue;const d=a[c],u=n[c];(d!==u&&"value"!==c||o&&o(e,c))&&i(e,c,u,d,l,t.children,r,s,F)}"value"in a&&i(e,"value",n.value,a.value,l)}},T=(e,t,a,i,o,r,l,c,d)=>{const u=t.el=e?e.el:s(""),m=t.anchor=e?e.anchor:s("");let{patchFlag:p,dynamicChildren:h,slotScopeIds:f}=t;f&&(c=c?c.concat(f):f),null==e?(n(u,a,i),n(m,a,i),S(t.children||[],a,m,o,r,l,c,d)):p>0&&64&p&&h&&e.dynamicChildren?(k(e.dynamicChildren,h,a,o,r,l,c),(null!=t.key||o&&t===o.subTree)&&traverseStaticChildren(e,t,!0)):O(e,t,a,m,o,r,l,c,d)},A=(e,t,n,a,i,o,r,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?i.ctx.activate(t,n,a,r,l):E(t,n,a,i,o,r,l):I(e,t,l)},E=(e,t,n,a,i,o,r)=>{const s=e.component=createComponentInstance(e,a,i);if(isKeepAlive(e)&&(s.ctx.renderer=j),setupComponent$1(s),s.asyncDep){if(i&&i.registerDep(s,P),!e.el){const e=s.subTree=createVNode(Comment);y(null,e,t,n)}}else P(s,e,t,n,i,o,r)},I=(e,t,n)=>{const a=t.component=e.component;if(shouldUpdateComponent(e,t,n)){if(a.asyncDep&&!a.asyncResolved)return void N(a,t,n);a.next=t,invalidateJob(a.update),a.effect.dirty=!0,a.update()}else t.el=e.el,a.vnode=t},P=(e,t,n,a,i,o,r)=>{const s=()=>{if(e.isMounted){let{next:t,bu:n,u:a,parent:l,vnode:c}=e;{const n=locateNonHydratedAsyncRoot(e);if(n)return t&&(t.el=c.el,N(e,t,r)),void n.asyncDep.then((()=>{e.isUnmounted||s()}))}let d,m=t;toggleRecurse(e,!1),t?(t.el=c.el,N(e,t,r)):t=c,n&&invokeArrayFns$1(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&invokeVNodeHook(d,l,t,c),toggleRecurse(e,!0);const p=renderComponentRoot(e),h=e.subTree;e.subTree=p,f(h,p,u(h.el),z(h),e,i,o),t.el=p.el,null===m&&updateHOCHostEl(e,p.el),a&&queuePostRenderEffect(a,i),(d=t.props&&t.props.onVnodeUpdated)&&queuePostRenderEffect((()=>invokeVNodeHook(d,l,t,c)),i)}else{let r;const{el:s,props:l}=t,{bm:c,m:d,parent:u}=e,m=isAsyncWrapper(t);if(toggleRecurse(e,!1),c&&invokeArrayFns$1(c),!m&&(r=l&&l.onVnodeBeforeMount)&&invokeVNodeHook(r,u,t),toggleRecurse(e,!0),s&&q){const n=()=>{e.subTree=renderComponentRoot(e),q(s,e.subTree,e,i,null)};m?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const r=e.subTree=renderComponentRoot(e);f(null,r,n,a,e,i,o),t.el=r.el}if(d&&queuePostRenderEffect(d,i),!m&&(r=l&&l.onVnodeMounted)){const e=t;queuePostRenderEffect((()=>invokeVNodeHook(r,u,e)),i)}(256&t.shapeFlag||u&&isAsyncWrapper(u.vnode)&&256&u.vnode.shapeFlag)&&(e.ba&&invokeKeepAliveHooks(e.ba),e.a&&queuePostRenderEffect(e.a,i)),e.isMounted=!0,t=n=a=null}},l=e.effect=new ReactiveEffect(s,NOOP,(()=>queueJob(c)),e.scope),c=e.update=()=>{l.dirty&&l.run()};c.id=e.uid,toggleRecurse(e,!0),c()},N=(e,t,n)=>{t.component=e;const a=e.vnode.props;e.vnode=t,e.next=null,updateProps(e,t.props,a,n),updateSlots(e,t.children,n),pauseTracking(),flushPreFlushCbs(e),resetTracking()},O=(e,t,n,a,i,o,r,s,l=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,m=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p)return void $(c,m,n,a,i,o,r,s,l);if(256&p)return void M(c,m,n,a,i,o,r,s,l)}8&h?(16&u&&F(c,i,o),m!==c&&d(n,m)):16&u?16&h?$(c,m,n,a,i,o,r,s,l):F(c,i,o,!0):(8&u&&d(n,""),16&h&&S(m,n,a,i,o,r,s,l))},M=(e,t,n,a,i,o,r,s,l)=>{t=t||EMPTY_ARR;const c=(e=e||EMPTY_ARR).length,d=t.length,u=Math.min(c,d);let m;for(m=0;m<u;m++){const a=t[m]=l?cloneIfMounted(t[m]):normalizeVNode(t[m]);f(e[m],a,n,null,i,o,r,s,l)}c>d?F(e,i,o,!0,!1,u):S(t,n,a,i,o,r,s,l,u)},$=(e,t,n,a,i,o,r,s,l)=>{let c=0;const d=t.length;let u=e.length-1,m=d-1;for(;c<=u&&c<=m;){const a=e[c],d=t[c]=l?cloneIfMounted(t[c]):normalizeVNode(t[c]);if(!isSameVNodeType(a,d))break;f(a,d,n,null,i,o,r,s,l),c++}for(;c<=u&&c<=m;){const a=e[u],c=t[m]=l?cloneIfMounted(t[m]):normalizeVNode(t[m]);if(!isSameVNodeType(a,c))break;f(a,c,n,null,i,o,r,s,l),u--,m--}if(c>u){if(c<=m){const e=m+1,u=e<d?t[e].el:a;for(;c<=m;)f(null,t[c]=l?cloneIfMounted(t[c]):normalizeVNode(t[c]),n,u,i,o,r,s,l),c++}}else if(c>m)for(;c<=u;)V(e[c],i,o,!0),c++;else{const p=c,h=c,g=new Map;for(c=h;c<=m;c++){const e=t[c]=l?cloneIfMounted(t[c]):normalizeVNode(t[c]);null!=e.key&&g.set(e.key,c)}let y,v=0;const _=m-h+1;let b=!1,w=0;const S=new Array(_);for(c=0;c<_;c++)S[c]=0;for(c=p;c<=u;c++){const a=e[c];if(v>=_){V(a,i,o,!0);continue}let d;if(null!=a.key)d=g.get(a.key);else for(y=h;y<=m;y++)if(0===S[y-h]&&isSameVNodeType(a,t[y])){d=y;break}void 0===d?V(a,i,o,!0):(S[d-h]=c+1,d>=w?w=d:b=!0,f(a,t[d],n,null,i,o,r,s,l),v++)}const C=b?getSequence(S):EMPTY_ARR;for(y=C.length-1,c=_-1;c>=0;c--){const e=h+c,u=t[e],m=e+1<d?t[e+1].el:a;0===S[c]?f(null,u,n,m,i,o,r,s,l):b&&(y<0||c!==C[y]?R(u,n,m,2):y--)}}},R=(e,t,a,i,o=null)=>{const{el:r,type:s,transition:l,children:c,shapeFlag:d}=e;if(6&d)return void R(e.component.subTree,t,a,i);if(128&d)return void e.suspense.move(t,a,i);if(64&d)return void s.move(e,t,a,j);if(s===Fragment){n(r,t,a);for(let e=0;e<c.length;e++)R(c[e],t,a,i);return void n(e.anchor,t,a)}if(s===Static)return void(({el:e,anchor:t},a,i)=>{let o;for(;e&&e!==t;)o=m(e),n(e,a,i),e=o;n(t,a,i)})(e,t,a);if(2!==i&&1&d&&l)if(0===i)l.beforeEnter(r),n(r,t,a),queuePostRenderEffect((()=>l.enter(r)),o);else{const{leave:e,delayLeave:i,afterLeave:o}=l,s=()=>n(r,t,a),c=()=>{e(r,(()=>{s(),o&&o()}))};i?i(r,s,c):c()}else n(r,t,a)},V=(e,t,n,a=!1,i=!1)=>{const{type:o,props:r,ref:s,children:l,dynamicChildren:c,shapeFlag:d,patchFlag:u,dirs:m}=e;if(null!=s&&setRef(s,null,n,e,!0),256&d)return void t.ctx.deactivate(e);const p=1&d&&m,h=!isAsyncWrapper(e);let f;if(h&&(f=r&&r.onVnodeBeforeUnmount)&&invokeVNodeHook(f,t,e),6&d)L(e.component,n,a);else{if(128&d)return void e.suspense.unmount(n,a);p&&invokeDirectiveHook(e,null,t,"beforeUnmount"),64&d?e.type.remove(e,t,n,i,j,a):c&&(o!==Fragment||u>0&&64&u)?F(c,t,n,!1,!0):(o===Fragment&&384&u||!i&&16&d)&&F(l,t,n),a&&D(e)}(h&&(f=r&&r.onVnodeUnmounted)||p)&&queuePostRenderEffect((()=>{f&&invokeVNodeHook(f,t,e),p&&invokeDirectiveHook(e,null,t,"unmounted")}),n)},D=e=>{const{type:t,el:n,anchor:i,transition:o}=e;if(t===Fragment)return void B(n,i);if(t===Static)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=m(e),a(e),e=n;a(t)})(e);const r=()=>{a(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:a}=o,i=()=>t(n,r);a?a(e.el,r,i):i()}else r()},B=(e,t)=>{let n;for(;e!==t;)n=m(e),a(e),e=n;a(t)},L=(e,t,n)=>{const{bum:a,scope:i,update:o,subTree:r,um:s}=e;a&&invokeArrayFns$1(a),i.stop(),o&&(o.active=!1,V(r,e,t,n)),s&&queuePostRenderEffect(s,t),queuePostRenderEffect((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},F=(e,t,n,a=!1,i=!1,o=0)=>{for(let r=o;r<e.length;r++)V(e[r],t,n,a,i)},z=e=>6&e.shapeFlag?z(e.component.subTree):128&e.shapeFlag?e.suspense.next():m(e.anchor||e.el);let H=!1;const U=(e,t,n)=>{null==e?t._vnode&&V(t._vnode,null,null,!0):f(t._vnode||null,e,t,null,null,null,n),H||(H=!0,flushPreFlushCbs(),flushPostFlushCbs(),H=!1),t._vnode=e},j={p:f,um:V,m:R,r:D,mt:E,mc:S,pc:O,pbc:k,n:z,o:e};let W,q;return t&&([W,q]=t(j)),{render:U,hydrate:W,createApp:createAppAPI(U,W)}}function resolveChildrenNamespace({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 toggleRecurse({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function needTransition(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function traverseStaticChildren(e,t,n=!1){const a=e.children,i=t.children;if(isArray$1(a)&&isArray$1(i))for(let o=0;o<a.length;o++){const e=a[o];let t=i[o];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=i[o]=cloneIfMounted(i[o]),t.el=e.el),n||traverseStaticChildren(e,t)),t.type===Text&&(t.el=e.el)}}function getSequence(e){const t=e.slice(),n=[0];let a,i,o,r,s;const l=e.length;for(a=0;a<l;a++){const l=e[a];if(0!==l){if(i=n[n.length-1],e[i]<l){t[a]=i,n.push(a);continue}for(o=0,r=n.length-1;o<r;)s=o+r>>1,e[n[s]]<l?o=s+1:r=s;l<e[n[o]]&&(o>0&&(t[a]=n[o-1]),n[o]=a)}}for(o=n.length,r=n[o-1];o-- >0;)n[o]=r,r=t[r];return n}function locateNonHydratedAsyncRoot(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:locateNonHydratedAsyncRoot(t)}const isTeleport=e=>e.__isTeleport,Fragment=Symbol.for("v-fgt"),Text=Symbol.for("v-txt"),Comment=Symbol.for("v-cmt"),Static=Symbol.for("v-stc"),blockStack=[];let currentBlock=null;function openBlock(e=!1){blockStack.push(currentBlock=e?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}let isBlockTreeEnabled=1;function setBlockTracking(e){isBlockTreeEnabled+=e}function setupBlock(e){return e.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&&currentBlock&&currentBlock.push(e),e}function createElementBlock(e,t,n,a,i,o){return setupBlock(createBaseVNode(e,t,n,a,i,o,!0))}function createBlock(e,t,n,a,i){return setupBlock(createVNode(e,t,n,a,i,!0))}function isVNode(e){return!!e&&!0===e.__v_isVNode}function isSameVNodeType(e,t){return e.type===t.type&&e.key===t.key}const InternalObjectKey="__vInternal",normalizeKey=({key:e})=>null!=e?e:null,normalizeRef=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?isString(e)||isRef(e)||isFunction(e)?{i:currentRenderingInstance,r:e,k:t,f:!!n}:e:null);function createBaseVNode(e,t=null,n=null,a=0,i=null,o=(e===Fragment?0:1),r=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&normalizeKey(t),ref:t&&normalizeRef(t),scopeId:currentScopeId,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:o,patchFlag:a,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return s?(normalizeChildren(l,n),128&o&&e.normalize(l)):n&&(l.shapeFlag|=isString(n)?8:16),isBlockTreeEnabled>0&&!r&&currentBlock&&(l.patchFlag>0||6&o)&&32!==l.patchFlag&&currentBlock.push(l),l}const createVNode=_createVNode;function _createVNode(e,t=null,n=null,a=0,i=null,o=!1){if(e&&e!==NULL_DYNAMIC_COMPONENT||(e=Comment),isVNode(e)){const a=cloneVNode(e,t,!0);return n&&normalizeChildren(a,n),isBlockTreeEnabled>0&&!o&&currentBlock&&(6&a.shapeFlag?currentBlock[currentBlock.indexOf(e)]=a:currentBlock.push(a)),a.patchFlag|=-2,a}if(isClassComponent(e)&&(e=e.__vccOpts),t){t=guardReactiveProps(t);let{class:e,style:n}=t;e&&!isString(e)&&(t.class=normalizeClass(e)),isObject$1(n)&&(isProxy(n)&&!isArray$1(n)&&(n=extend$1({},n)),t.style=normalizeStyle(n))}return createBaseVNode(e,t,n,a,i,isString(e)?1:isSuspense(e)?128:isTeleport(e)?64:isObject$1(e)?4:isFunction(e)?2:0,o,!0)}function guardReactiveProps(e){return e?isProxy(e)||InternalObjectKey in e?extend$1({},e):e:null}function cloneVNode(e,t,n=!1){const{props:a,ref:i,patchFlag:o,children:r}=e,s=t?mergeProps(a||{},t):a;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&normalizeKey(s),ref:t&&t.ref?n&&i?isArray$1(i)?i.concat(normalizeRef(t)):[i,normalizeRef(t)]:normalizeRef(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Fragment?-1===o?16:16|o:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&cloneVNode(e.ssContent),ssFallback:e.ssFallback&&cloneVNode(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function createTextVNode(e=" ",t=0){return createVNode(Text,null,e,t)}function createCommentVNode(e="",t=!1){return t?(openBlock(),createBlock(Comment,null,e)):createVNode(Comment,null,e)}function normalizeVNode(e){return null==e||"boolean"==typeof e?createVNode(Comment):isArray$1(e)?createVNode(Fragment,null,e.slice()):"object"==typeof e?cloneIfMounted(e):createVNode(Text,null,String(e))}function cloneIfMounted(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:cloneVNode(e)}function normalizeChildren(e,t){let n=0;const{shapeFlag:a}=e;if(null==t)t=null;else if(isArray$1(t))n=16;else if("object"==typeof t){if(65&a){const n=t.default;return void(n&&(n._c&&(n._d=!1),normalizeChildren(e,n()),n._c&&(n._d=!0)))}{n=32;const a=t._;a||InternalObjectKey in t?3===a&&currentRenderingInstance&&(1===currentRenderingInstance.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=currentRenderingInstance}}else isFunction(t)?(t={default:t,_ctx:currentRenderingInstance},n=32):(t=String(t),64&a?(n=16,t=[createTextVNode(t)]):n=8);e.children=t,e.shapeFlag|=n}function mergeProps(...e){const t={};for(let n=0;n<e.length;n++){const a=e[n];for(const e in a)if("class"===e)t.class!==a.class&&(t.class=normalizeClass([t.class,a.class]));else if("style"===e)t.style=normalizeStyle([t.style,a.style]);else if(isOn(e)){const n=t[e],i=a[e];!i||n===i||isArray$1(n)&&n.includes(i)||(t[e]=n?[].concat(n,i):i)}else""!==e&&(t[e]=a[e])}return t}function invokeVNodeHook(e,t,n,a=null){callWithAsyncErrorHandling(e,t,7,[n,a])}const emptyAppContext=createAppContext();let uid=0;function createComponentInstance(e,t,n){const a=e.type,i=(t?t.appContext:e.appContext)||emptyAppContext,o={uid:uid++,vnode:e,type:a,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new EffectScope(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:normalizePropsOptions(a,i),emitsOptions:normalizeEmitsOptions(a,i),emit:null,emitted:null,propsDefaults:EMPTY_OBJ,inheritAttrs:a.inheritAttrs,ctx:EMPTY_OBJ,data:EMPTY_OBJ,props:EMPTY_OBJ,attrs:EMPTY_OBJ,slots:EMPTY_OBJ,refs:EMPTY_OBJ,setupState:EMPTY_OBJ,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,bda:null,da:null,ba:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=emit$2.bind(null,o),o.$pageInstance=t&&t.$pageInstance,e.ce&&e.ce(o),o}let currentInstance=null;const getCurrentInstance=()=>currentInstance||currentRenderingInstance;let internalSetCurrentInstance,setInSSRSetupState;{const e=getGlobalThis(),t=(t,n)=>{let a;return(a=e[t])||(a=e[t]=[]),a.push(n),e=>{a.length>1?a.forEach((t=>t(e))):a[0](e)}};internalSetCurrentInstance=t("__VUE_INSTANCE_SETTERS__",(e=>currentInstance=e)),setInSSRSetupState=t("__VUE_SSR_SETTERS__",(e=>isInSSRComponentSetup=e))}const setCurrentInstance=e=>{const t=currentInstance;return internalSetCurrentInstance(e),e.scope.on(),()=>{e.scope.off(),internalSetCurrentInstance(t)}},unsetCurrentInstance=()=>{currentInstance&&currentInstance.scope.off(),internalSetCurrentInstance(null)};function isStatefulComponent(e){return 4&e.vnode.shapeFlag}let isInSSRComponentSetup=!1,compile$1;function setupComponent$1(e,t=!1){t&&setInSSRSetupState(t);const{props:n,children:a}=e.vnode,i=isStatefulComponent(e);initProps(e,n,i,t),initSlots(e,a);const o=i?setupStatefulComponent(e,t):void 0;return t&&setInSSRSetupState(!1),o}function setupStatefulComponent(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=markRaw(new Proxy(e.ctx,PublicInstanceProxyHandlers));const{setup:a}=n;if(a){const n=e.setupContext=a.length>1?createSetupContext(e):null,i=setCurrentInstance(e);pauseTracking();const o=callWithErrorHandling(a,e,0,[e.props,n]);if(resetTracking(),i(),isPromise(o)){if(o.then(unsetCurrentInstance,unsetCurrentInstance),t)return o.then((n=>{handleSetupResult(e,n,t)})).catch((t=>{handleError(t,e,0)}));e.asyncDep=o}else handleSetupResult(e,o,t)}else finishComponentSetup(e,t)}function handleSetupResult(e,t,n){isFunction(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:isObject$1(t)&&(e.setupState=proxyRefs(t)),finishComponentSetup(e,n)}function finishComponentSetup(e,t,n){const a=e.type;if(!e.render){if(!t&&compile$1&&!a.render){const t=a.template||resolveMergedOptions(e).template;if(t){const{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:o,compilerOptions:r}=a,s=extend$1(extend$1({isCustomElement:n,delimiters:o},i),r);a.render=compile$1(t,s)}}e.render=a.render||NOOP}{const t=setCurrentInstance(e);pauseTracking();try{applyOptions$1(e)}finally{resetTracking(),t()}}}function getAttrsProxy(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get:(t,n)=>(track(e,"get","$attrs"),t[n])}))}function createSetupContext(e){const t=t=>{e.exposed=t||{}};return{get attrs(){return getAttrsProxy(e)},slots:e.slots,emit:e.emit,expose:t}}function getExposeProxy(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(proxyRefs(markRaw(e.exposed)),{get:(t,n)=>n in t?t[n]:n in publicPropertiesMap?publicPropertiesMap[n](e):void 0,has:(e,t)=>t in e||t in publicPropertiesMap}))}const classifyRE=/(?:^|[-_])(\w)/g,classify=e=>e.replace(classifyRE,(e=>e.toUpperCase())).replace(/[-_]/g,"");function getComponentName(e,t=!0){return isFunction(e)?e.displayName||e.name:e.name||t&&e.__name}function formatComponentName(e,t,n=!1){let a=getComponentName(t);if(!a&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(a=e[1])}if(!a&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};a=n(e.components||e.parent.type.components)||n(e.appContext.components)}return a?classify(a):n?"App":"Anonymous"}function isClassComponent(e){return isFunction(e)&&"__vccOpts"in e}const computed=(e,t)=>computed$1(e,t,isInSSRComponentSetup);function h$2(e,t,n){const a=arguments.length;return 2===a?isObject$1(t)&&!isArray$1(t)?isVNode(t)?createVNode(e,null,[t]):createVNode(e,t):createVNode(e,null,t):(a>3?n=Array.prototype.slice.call(arguments,2):3===a&&isVNode(n)&&(n=[n]),createVNode(e,t,n))}const version="3.4.21",svgNS="http://www.w3.org/2000/svg",mathmlNS="http://www.w3.org/1998/Math/MathML",doc="undefined"!=typeof document?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,a)=>{const i="svg"===t?doc.createElementNS(svgNS,e):"mathml"===t?doc.createElementNS(mathmlNS,e):n?doc.createElement(e,{is:n}):doc.createElement(e);return"select"===e&&a&&null!=a.multiple&&i.setAttribute("multiple",a.multiple),i},createText:e=>doc.createTextNode(e),createComment:e=>doc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>doc.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,a,i,o){const r=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==o&&(i=i.nextSibling););else{templateContainer.innerHTML="svg"===a?`<svg>${e}</svg>`:"mathml"===a?`<math>${e}</math>`:e;const i=templateContainer.content;if("svg"===a||"mathml"===a){const e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},TRANSITION="transition",ANIMATION="animation",vtcKey=Symbol("_vtc"),Transition=(e,{slots:t})=>h$2(BaseTransition,resolveTransitionProps(e),t);Transition.displayName="Transition";const DOMTransitionPropsValidators={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};Transition.props=extend$1({},BaseTransitionPropsValidators,DOMTransitionPropsValidators);const callHook=(e,t=[])=>{isArray$1(e)?e.forEach((e=>e(...t))):e&&e(...t)},hasExplicitCallback=e=>!!e&&(isArray$1(e)?e.some((e=>e.length>1)):e.length>1);function resolveTransitionProps(e){const t={};for(const E in e)E in DOMTransitionPropsValidators||(t[E]=e[E]);if(!1===e.css)return t;const{name:n="v",type:a,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:c=r,appearToClass:d=s,leaveFromClass:u=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,h=normalizeDuration(i),f=h&&h[0],g=h&&h[1],{onBeforeEnter:y,onEnter:v,onEnterCancelled:_,onLeave:b,onLeaveCancelled:w,onBeforeAppear:S=y,onAppear:C=v,onAppearCancelled:k=_}=t,x=(e,t,n)=>{removeTransitionClass(e,t?d:s),removeTransitionClass(e,t?c:r),n&&n()},T=(e,t)=>{e._isLeaving=!1,removeTransitionClass(e,u),removeTransitionClass(e,p),removeTransitionClass(e,m),t&&t()},A=e=>(t,n)=>{const i=e?C:v,r=()=>x(t,e,n);callHook(i,[t,r]),nextFrame((()=>{removeTransitionClass(t,e?l:o),addTransitionClass(t,e?d:s),hasExplicitCallback(i)||whenTransitionEnds(t,a,f,r)}))};return extend$1(t,{onBeforeEnter(e){callHook(y,[e]),addTransitionClass(e,o),addTransitionClass(e,r)},onBeforeAppear(e){callHook(S,[e]),addTransitionClass(e,l),addTransitionClass(e,c)},onEnter:A(!1),onAppear:A(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>T(e,t);addTransitionClass(e,u),forceReflow(),addTransitionClass(e,m),nextFrame((()=>{e._isLeaving&&(removeTransitionClass(e,u),addTransitionClass(e,p),hasExplicitCallback(b)||whenTransitionEnds(e,a,g,n))})),callHook(b,[e,n])},onEnterCancelled(e){x(e,!1),callHook(_,[e])},onAppearCancelled(e){x(e,!0),callHook(k,[e])},onLeaveCancelled(e){T(e),callHook(w,[e])}})}function normalizeDuration(e){if(null==e)return null;if(isObject$1(e))return[NumberOf(e.enter),NumberOf(e.leave)];{const t=NumberOf(e);return[t,t]}}function NumberOf(e){return toNumber(e)}function addTransitionClass(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[vtcKey]||(e[vtcKey]=new Set)).add(t)}function removeTransitionClass(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[vtcKey];n&&(n.delete(t),n.size||(e[vtcKey]=void 0))}function nextFrame(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let endId=0;function whenTransitionEnds(e,t,n,a){const i=e._endId=++endId,o=()=>{i===e._endId&&a()};if(n)return setTimeout(o,n);const{type:r,timeout:s,propCount:l}=getTransitionInfo(e,t);if(!r)return a();const c=r+"end";let d=0;const u=()=>{e.removeEventListener(c,m),o()},m=t=>{t.target===e&&++d>=l&&u()};setTimeout((()=>{d<l&&u()}),s+1),e.addEventListener(c,m)}function getTransitionInfo(e,t){const n=window.getComputedStyle(e),a=e=>(n[e]||"").split(", "),i=a(`${TRANSITION}Delay`),o=a(`${TRANSITION}Duration`),r=getTimeout(i,o),s=a(`${ANIMATION}Delay`),l=a(`${ANIMATION}Duration`),c=getTimeout(s,l);let d=null,u=0,m=0;t===TRANSITION?r>0&&(d=TRANSITION,u=r,m=o.length):t===ANIMATION?c>0&&(d=ANIMATION,u=c,m=l.length):(u=Math.max(r,c),d=u>0?r>c?TRANSITION:ANIMATION:null,m=d?d===TRANSITION?o.length:l.length:0);return{type:d,timeout:u,propCount:m,hasTransform:d===TRANSITION&&/\b(transform|all)(,|$)/.test(a(`${TRANSITION}Property`).toString())}}function getTimeout(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map(((t,n)=>toMs(t)+toMs(e[n]))))}function toMs(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function forceReflow(){return document.body.offsetHeight}function patchClass(e,t,n){const{__wxsAddClass:a,__wxsRemoveClass:i}=e;i&&i.length&&(t=(t||"").split(/\s+/).filter((e=>-1===i.indexOf(e))).join(" "),i.length=0),a&&a.length&&(t=(t||"")+" "+a.join(" "));const o=e[vtcKey];o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const vShowOriginalDisplay=Symbol("_vod"),vShowHidden=Symbol("_vsh"),vShow={beforeMount(e,{value:t},{transition:n}){e[vShowOriginalDisplay]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):setDisplay(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:a}){!t!=!n&&(a?t?(a.beforeEnter(e),setDisplay(e,!0),a.enter(e)):a.leave(e,(()=>{setDisplay(e,!1)})):setDisplay(e,t))},beforeUnmount(e,{value:t}){setDisplay(e,t)}};function setDisplay(e,t){e.style.display=t?e[vShowOriginalDisplay]:"none",e[vShowHidden]=!t}const CSS_VAR_TEXT=Symbol(""),displayRE=/(^|;)\s*display\s*:/;function patchStyle(e,t,n){const a=e.style,i=isString(n);let o=!1;if(n&&!i){if(t)if(isString(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&setStyle(a,t,"")}else for(const e in t)null==n[e]&&setStyle(a,e,"");for(const e in n)"display"===e&&(o=!0),setStyle(a,e,n[e])}else if(i){if(t!==n){const e=a[CSS_VAR_TEXT];e&&(n+=";"+e),a.cssText=n,o=displayRE.test(n)}}else t&&e.removeAttribute("style");vShowOriginalDisplay in e&&(e[vShowOriginalDisplay]=o?a.display:"",e[vShowHidden]&&(a.display="none"));const{__wxsStyle:r}=e;if(r)for(const s in r)setStyle(a,s,r[s])}const importantRE=/\s*!important$/;function setStyle(e,t,n){if(isArray$1(n))n.forEach((n=>setStyle(e,t,n)));else if(null==n&&(n=""),n=normalizeRpx(n),t.startsWith("--"))e.setProperty(t,n);else{const a=autoPrefix(e,t);importantRE.test(n)?e.setProperty(hyphenate(a),n.replace(importantRE,""),"important"):e[a]=n}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(e,t){const n=prefixCache[t];if(n)return n;let a=camelize(t);if("filter"!==a&&a in e)return prefixCache[t]=a;a=capitalize(a);for(let i=0;i<prefixes.length;i++){const n=prefixes[i]+a;if(n in e)return prefixCache[t]=n}return t}const{unit:unit,unitRatio:unitRatio,unitPrecision:unitPrecision}=defaultRpx2Unit,rpx2Unit=createRpx2Unit(unit,unitRatio,unitPrecision),normalizeRpx=e=>isString(e)?rpx2Unit(e):e,xlinkNS="http://www.w3.org/1999/xlink";function patchAttr(e,t,n,a,i){if(a&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(xlinkNS,t.slice(6,t.length)):e.setAttributeNS(xlinkNS,t,n);else{const a=isSpecialBooleanAttr(t);null==n||a&&!includeBooleanAttr(n)?e.removeAttribute(t):e.setAttribute(t,a?"":n)}}function patchDOMProp(e,t,n,a,i,o,r){if("innerHTML"===t||"textContent"===t)return a&&r(a,i,o),void(e[t]=null==n?"":n);const s=e.tagName;if("value"===t&&"PROGRESS"!==s&&!s.includes("-")){const a=null==n?"":n;return("OPTION"===s?e.getAttribute("value")||"":e.value)===a&&"_value"in e||(e.value=a),null==n&&e.removeAttribute(t),void(e._value=n)}let l=!1;if(""===n||null==n){const a=typeof e[t];"boolean"===a?n=includeBooleanAttr(n):null==n&&"string"===a?(n="",l=!0):"number"===a&&(n=0,l=!0)}try{e[t]=n}catch(e2){}l&&e.removeAttribute(t)}function addEventListener(e,t,n,a){e.addEventListener(t,n,a)}function removeEventListener(e,t,n,a){e.removeEventListener(t,n,a)}const veiKey=Symbol("_vei");function patchEvent(e,t,n,a,i=null){const o=e[veiKey]||(e[veiKey]={}),r=o[t];if(a&&r)r.value=a;else{const[n,s]=parseName(t);if(a){addEventListener(e,n,o[t]=createInvoker(a,i),s)}else r&&(removeEventListener(e,n,r,s),o[t]=void 0)}}const optionsModifierRE=/(?:Once|Passive|Capture)$/;function parseName(e){let t;if(optionsModifierRE.test(e)){let n;for(t={};n=e.match(optionsModifierRE);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):hyphenate(e.slice(2)),t]}let cachedNow=0;const p$3=Promise.resolve(),getNow=()=>cachedNow||(p$3.then((()=>cachedNow=0)),cachedNow=Date.now());function createInvoker(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();const a=t&&t.proxy,i=a&&a.$nne,{value:o}=n;if(i&&isArray$1(o)){const n=patchStopImmediatePropagation(e,o);for(let a=0;a<n.length;a++){const o=n[a];callWithAsyncErrorHandling(o,t,5,o.__wwe?[e]:i(e))}}else callWithAsyncErrorHandling(patchStopImmediatePropagation(e,n.value),t,5,i&&!o.__wwe?i(e,o,t):[e])};return n.value=e,n.attached=getNow(),n}function patchStopImmediatePropagation(e,t){if(isArray$1(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}function patchWxs(e,t,n,a=null){if(!n||!a)return;const i=t.replace("change:",""),{attrs:o}=a,r=o[i],s=(e.__wxsProps||(e.__wxsProps={}))[i];if(s===r)return;e.__wxsProps[i]=r;const l=a.proxy;nextTick((()=>{n(r,s,l.$gcd(l,!0),l.$gcd(l,!1))}))}const isNativeOn=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,forcePatchProp=(e,t)=>0===t.indexOf("change:")||("class"===t&&e.__wxsClassChanged?(e.__wxsClassChanged=!1,!0):!("style"!==t||!e.__wxsStyleChanged)&&(e.__wxsStyleChanged=!1,!0)),patchProp=(e,t,n,a,i,o,r,s,l)=>{if(0===t.indexOf("change:"))return patchWxs(e,t,a,r);const c="svg"===i;"class"===t?patchClass(e,a,c):"style"===t?patchStyle(e,n,a):isOn(t)?isModelListener(t)||patchEvent(e,t,n,a,r):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):shouldSetAsProp(e,t,a,c))?patchDOMProp(e,t,a,o,r,s,l):("true-value"===t?e._trueValue=a:"false-value"===t&&(e._falseValue=a),patchAttr(e,t,a,c))};function shouldSetAsProp(e,t,n,a){if(a)return"innerHTML"===t||"textContent"===t||!!(t in e&&isNativeOn(t)&&isFunction(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}return(!isNativeOn(t)||!isString(n))&&t in e}const getModelAssigner=e=>{const t=e.props["onUpdate:modelValue"]||!1;return isArray$1(t)?e=>invokeArrayFns$1(t,e):t};function onCompositionStart(e){e.target.composing=!0}function onCompositionEnd(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const assignKey=Symbol("_assign"),vModelText={created(e,{modifiers:{lazy:t,trim:n,number:a}},i){e[assignKey]=getModelAssigner(i);const o=a||i.props&&"number"===i.props.type;addEventListener(e,t?"change":"input",(t=>{if(t.target.composing)return;let a=e.value;n&&(a=a.trim()),o&&(a=looseToNumber(a)),e[assignKey](a)})),n&&addEventListener(e,"change",(()=>{e.value=e.value.trim()})),t||(addEventListener(e,"compositionstart",onCompositionStart),addEventListener(e,"compositionend",onCompositionEnd),addEventListener(e,"change",onCompositionEnd))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:a,number:i}},o){if(e[assignKey]=getModelAssigner(o),e.composing)return;const r=null==t?"":t;if((i||"number"===e.type?looseToNumber(e.value):e.value)!==r){if(document.activeElement===e&&"range"!==e.type){if(n)return;if(a&&e.value.trim()===r)return}e.value=r}}},vModelCheckbox={deep:!0,created(e,t,n){e[assignKey]=getModelAssigner(n),addEventListener(e,"change",(()=>{const t=e._modelValue,n=getValue$1(e),a=e.checked,i=e[assignKey];if(isArray$1(t)){const e=looseIndexOf(t,n),o=-1!==e;if(a&&!o)i(t.concat(n));else if(!a&&o){const n=[...t];n.splice(e,1),i(n)}}else if(isSet(t)){const e=new Set(t);a?e.add(n):e.delete(n),i(e)}else i(getCheckboxValue(e,a))}))},mounted:setChecked,beforeUpdate(e,t,n){e[assignKey]=getModelAssigner(n),setChecked(e,t,n)}};function setChecked(e,{value:t,oldValue:n},a){e._modelValue=t,isArray$1(t)?e.checked=looseIndexOf(t,a.props.value)>-1:isSet(t)?e.checked=t.has(a.props.value):t!==n&&(e.checked=looseEqual(t,getCheckboxValue(e,!0)))}const vModelRadio={created(e,{value:t},n){e.checked=looseEqual(t,n.props.value),e[assignKey]=getModelAssigner(n),addEventListener(e,"change",(()=>{e[assignKey](getValue$1(e))}))},beforeUpdate(e,{value:t,oldValue:n},a){e[assignKey]=getModelAssigner(a),t!==n&&(e.checked=looseEqual(t,a.props.value))}},vModelSelect={deep:!0,created(e,{value:t,modifiers:{number:n}},a){const i=isSet(t);addEventListener(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?looseToNumber(getValue$1(e)):getValue$1(e)));e[assignKey](e.multiple?i?new Set(t):t:t[0]),e._assigning=!0,nextTick((()=>{e._assigning=!1}))})),e[assignKey]=getModelAssigner(a)},mounted(e,{value:t,modifiers:{number:n}}){setSelected(e,t,n)},beforeUpdate(e,t,n){e[assignKey]=getModelAssigner(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||setSelected(e,t,n)}};function setSelected(e,t,n){const a=e.multiple,i=isArray$1(t);if(!a||i||isSet(t)){for(let o=0,r=e.options.length;o<r;o++){const r=e.options[o],s=getValue$1(r);if(a)if(i){const e=typeof s;r.selected="string"===e||"number"===e?t.includes(n?looseToNumber(s):s):looseIndexOf(t,s)>-1}else r.selected=t.has(s);else if(looseEqual(getValue$1(r),t))return void(e.selectedIndex!==o&&(e.selectedIndex=o))}a||-1===e.selectedIndex||(e.selectedIndex=-1)}}function getValue$1(e){return"_value"in e?e._value:e.value}function getCheckboxValue(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const vModelDynamic={created(e,t,n){callModelHook(e,t,n,null,"created")},mounted(e,t,n){callModelHook(e,t,n,null,"mounted")},beforeUpdate(e,t,n,a){callModelHook(e,t,n,a,"beforeUpdate")},updated(e,t,n,a){callModelHook(e,t,n,a,"updated")}};function resolveDynamicModel(e,t){switch(e){case"SELECT":return vModelSelect;case"TEXTAREA":return vModelText;default:switch(t){case"checkbox":return vModelCheckbox;case"radio":return vModelRadio;default:return vModelText}}}function callModelHook(e,t,n,a,i){const o=resolveDynamicModel(e.tagName,n.props&&n.props.type)[i];o&&o(e,t,n,a)}const systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={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)=>systemModifiers.some((n=>e[`${n}Key`]&&!t.includes(n)))},withModifiers=(e,t)=>{const n=e._withMods||(e._withMods={}),a=t.join(".");return n[a]||(n[a]=(n,...a)=>{for(let e=0;e<t.length;e++){const a=modifierGuards[t[e]];if(a&&a(n,t))return}return e(n,...a)})},rendererOptions=extend$1({patchProp:patchProp,forcePatchProp:forcePatchProp},nodeOps);let renderer;function ensureRenderer(){return renderer||(renderer=createRenderer(rendererOptions))}const createApp$1=(...e)=>{const t=ensureRenderer().createApp(...e),{mount:n}=t;return t.mount=e=>{const a=normalizeContainer(e);if(!a)return;const i=t._component;isFunction(i)||i.render||i.template||(i.template=a.innerHTML),a.innerHTML="";const o=n(a,!1,resolveRootNamespace(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),o},t};function resolveRootNamespace(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function normalizeContainer(e){if(isString(e)){return document.querySelector(e)}return e}const isObject=e=>null!==e&&"object"==typeof e,defaultDelimiters=["{","}"];class BaseFormatter{constructor(){this._caches=Object.create(null)}interpolate(e,t,n=defaultDelimiters){if(!t)return[e];let a=this._caches[e];return a||(a=parse(e,n),this._caches[e]=a),compile(a,t)}}const RE_TOKEN_LIST_VALUE=/^(?:\d)+/,RE_TOKEN_NAMED_VALUE=/^(?:\w)+/;function parse(e,[t,n]){const a=[];let i=0,o="";for(;i<e.length;){let r=e[i++];if(r===t){o&&a.push({type:"text",value:o}),o="";let t="";for(r=e[i++];void 0!==r&&r!==n;)t+=r,r=e[i++];const s=r===n,l=RE_TOKEN_LIST_VALUE.test(t)?"list":s&&RE_TOKEN_NAMED_VALUE.test(t)?"named":"unknown";a.push({value:t,type:l})}else o+=r}return o&&a.push({type:"text",value:o}),a}function compile(e,t){const n=[];let a=0;const i=Array.isArray(t)?"list":isObject(t)?"named":"unknown";if("unknown"===i)return n;for(;a<e.length;){const o=e[a];switch(o.type){case"text":n.push(o.value);break;case"list":n.push(t[parseInt(o.value,10)]);break;case"named":"named"===i&&n.push(t[o.value])}a++}return n}const LOCALE_ZH_HANS="zh-Hans",LOCALE_ZH_HANT="zh-Hant",LOCALE_EN="en",LOCALE_FR="fr",LOCALE_ES="es",hasOwnProperty=Object.prototype.hasOwnProperty,hasOwn=(e,t)=>hasOwnProperty.call(e,t),defaultFormatter=new BaseFormatter;function include(e,t){return!!t.find((t=>-1!==e.indexOf(t)))}function startsWith(e,t){return t.find((t=>0===e.indexOf(t)))}function normalizeLocale(e,t){if(!e)return;if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if("chinese"===(e=e.toLowerCase()))return LOCALE_ZH_HANS;if(0===e.indexOf("zh"))return e.indexOf("-hans")>-1?LOCALE_ZH_HANS:e.indexOf("-hant")>-1||include(e,["-tw","-hk","-mo","-cht"])?LOCALE_ZH_HANT:LOCALE_ZH_HANS;let n=[LOCALE_EN,LOCALE_FR,LOCALE_ES];t&&Object.keys(t).length>0&&(n=Object.keys(t));const a=startsWith(e,n);return a||void 0}class I18n{constructor({locale:e,fallbackLocale:t,messages:n,watcher:a,formater:i}){this.locale=LOCALE_EN,this.fallbackLocale=LOCALE_EN,this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=i||defaultFormatter,this.messages=n||{},this.setLocale(e||LOCALE_EN),a&&this.watchLocale(a)}setLocale(e){const t=this.locale;this.locale=normalizeLocale(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 a=this.messages[e];a?n?Object.assign(a,t):Object.keys(t).forEach((e=>{hasOwn(a,e)||(a[e]=t[e])})):this.messages[e]=t}f(e,t,n){return this.formater.interpolate(e,t,n).join("")}t(e,t,n){let a=this.message;return"string"==typeof t?(t=normalizeLocale(t,this.messages))&&(a=this.messages[t]):n=t,hasOwn(a,e)?this.formater.interpolate(a[e],n).join(""):(console.warn(`Cannot translate the value of keypath ${e}. Use the value of keypath as default.`),e)}}function watchAppLocale(e,t){e.$watchLocale?e.$watchLocale((e=>{t.setLocale(e)})):e.$watch((()=>e.$locale),(e=>{t.setLocale(e)}))}function getDefaultLocale(){return"undefined"!=typeof uni&&getLocale?getLocale():"undefined"!=typeof global&&global.getLocale?global.getLocale():LOCALE_EN}function initVueI18n(e,t={},n,a){"string"!=typeof e&&([e,t]=[t,e]),"string"!=typeof e&&(e=getDefaultLocale()),"string"!=typeof n&&(n="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||LOCALE_EN);const i=new I18n({locale:e,fallbackLocale:n,messages:t,watcher:a});let o=(e,t)=>{if("function"!=typeof getApp$1)o=function(e,t){return i.t(e,t)};else{let e=!1;o=function(t,n){const a=getApp$1().$vm;return a&&(a.$locale,e||(e=!0,watchAppLocale(a,i))),i.t(t,n)}}return o(e,t)};return{i18n:i,f:(e,t,n)=>i.f(e,t,n),t:(e,t)=>o(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 isI18nStr(e,t){return e.indexOf(t[0])>-1}
/*!
  * vue-router v4.3.0
  * (c) 2024 Eduardo San Martin Morote
  * @license MIT
  */const isBrowser="undefined"!=typeof document;function isESModule(e){return e.__esModule||"Module"===e[Symbol.toStringTag]}const assign=Object.assign;function applyToParams(e,t){const n={};for(const a in t){const i=t[a];n[a]=isArray(i)?i.map(e):e(i)}return n}const noop=()=>{},isArray=Array.isArray,HASH_RE=/#/g,AMPERSAND_RE=/&/g,SLASH_RE=/\//g,EQUAL_RE=/=/g,IM_RE=/\?/g,PLUS_RE=/\+/g,ENC_BRACKET_OPEN_RE=/%5B/g,ENC_BRACKET_CLOSE_RE=/%5D/g,ENC_CARET_RE=/%5E/g,ENC_BACKTICK_RE=/%60/g,ENC_CURLY_OPEN_RE=/%7B/g,ENC_PIPE_RE=/%7C/g,ENC_CURLY_CLOSE_RE=/%7D/g,ENC_SPACE_RE=/%20/g;function commonEncode(e){return encodeURI(""+e).replace(ENC_PIPE_RE,"|").replace(ENC_BRACKET_OPEN_RE,"[").replace(ENC_BRACKET_CLOSE_RE,"]")}function encodeHash(e){return commonEncode(e).replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryValue(e){return commonEncode(e).replace(PLUS_RE,"%2B").replace(ENC_SPACE_RE,"+").replace(HASH_RE,"%23").replace(AMPERSAND_RE,"%26").replace(ENC_BACKTICK_RE,"`").replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryKey(e){return encodeQueryValue(e).replace(EQUAL_RE,"%3D")}function encodePath(e){return commonEncode(e).replace(HASH_RE,"%23").replace(IM_RE,"%3F")}function encodeParam(e){return null==e?"":encodePath(e).replace(SLASH_RE,"%2F")}function decode(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}const TRAILING_SLASH_RE=/\/$/,removeTrailingSlash=e=>e.replace(TRAILING_SLASH_RE,"");function parseURL(e,t,n="/"){let a,i={},o="",r="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(a=t.slice(0,l),o=t.slice(l+1,s>-1?s:t.length),i=e(o)),s>-1&&(a=a||t.slice(0,s),r=t.slice(s,t.length)),a=resolveRelativePath(null!=a?a:t,n),{fullPath:a+(o&&"?")+o+r,path:a,query:i,hash:decode(r)}}function stringifyURL(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function stripBase(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function isSameRouteLocation(e,t,n){const a=t.matched.length-1,i=n.matched.length-1;return a>-1&&a===i&&isSameRouteRecord(t.matched[a],n.matched[i])&&isSameRouteLocationParams(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function isSameRouteRecord(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function isSameRouteLocationParams(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!isSameRouteLocationParamsValue(e[n],t[n]))return!1;return!0}function isSameRouteLocationParamsValue(e,t){return isArray(e)?isEquivalentArray(e,t):isArray(t)?isEquivalentArray(t,e):e===t}function isEquivalentArray(e,t){return isArray(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}function resolveRelativePath(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),a=e.split("/"),i=a[a.length-1];".."!==i&&"."!==i||a.push("");let o,r,s=n.length-1;for(o=0;o<a.length;o++)if(r=a[o],"."!==r){if(".."!==r)break;s>1&&s--}return n.slice(0,s).join("/")+"/"+a.slice(o).join("/")}var NavigationType,NavigationType2,NavigationDirection,NavigationDirection2;function normalizeBase(e){if(!e)if(isBrowser){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),removeTrailingSlash(e)}NavigationType2=NavigationType||(NavigationType={}),NavigationType2.pop="pop",NavigationType2.push="push",NavigationDirection2=NavigationDirection||(NavigationDirection={}),NavigationDirection2.back="back",NavigationDirection2.forward="forward",NavigationDirection2.unknown="";const BEFORE_HASH_RE=/^[^#]+#/;function createHref(e,t){return e.replace(BEFORE_HASH_RE,"#")+t}function getElementPosition(e,t){const n=document.documentElement.getBoundingClientRect(),a=e.getBoundingClientRect();return{behavior:t.behavior,left:a.left-n.left-(t.left||0),top:a.top-n.top-(t.top||0)}}const computeScrollPosition=()=>({left:window.scrollX,top:window.scrollY});function scrollToPosition(e){let t;if("el"in e){const n=e.el,a="string"==typeof n&&n.startsWith("#"),i="string"==typeof n?a?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=getElementPosition(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 getScrollKey(e,t){return(history.state?history.state.position-t:-1)+e}const scrollPositions=new Map;function saveScrollPosition(e,t){scrollPositions.set(e,t)}function getSavedScrollPosition(e){const t=scrollPositions.get(e);return scrollPositions.delete(e),t}let createBaseLocation=()=>location.protocol+"//"+location.host;function createCurrentLocation(e,t){const{pathname:n,search:a,hash:i}=t,o=e.indexOf("#");if(o>-1){let t=i.includes(e.slice(o))?e.slice(o).length:1,n=i.slice(t);return"/"!==n[0]&&(n="/"+n),stripBase(n,"")}return stripBase(n,e)+a+i}function useHistoryListeners(e,t,n,a){let i=[],o=[],r=null;const s=({state:o})=>{const s=createCurrentLocation(e,location),l=n.value,c=t.value;let d=0;if(o){if(n.value=s,t.value=o,r&&r===l)return void(r=null);d=c?o.position-c.position:0}else a(s);i.forEach((e=>{e(n.value,l,{delta:d,type:NavigationType.pop,direction:d?d>0?NavigationDirection.forward:NavigationDirection.back:NavigationDirection.unknown})}))};function l(){const{history:e}=window;e.state&&e.replaceState(assign({},e.state,{scroll:computeScrollPosition()}),"")}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",l,{passive:!0}),{pauseListeners:function(){r=n.value},listen:function(e){i.push(e);const t=()=>{const t=i.indexOf(e);t>-1&&i.splice(t,1)};return o.push(t),t},destroy:function(){for(const e of o)e();o=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",l)}}}function buildState(e,t,n,a=!1,i=!1){return{back:e,current:t,forward:n,replaced:a,position:window.history.length,scroll:i?computeScrollPosition():null}}function useHistoryStateNavigation(e){const{history:t,location:n}=window,a={value:createCurrentLocation(e,n)},i={value:t.state};function o(a,o,r){const s=e.indexOf("#"),l=s>-1?(n.host&&document.querySelector("base")?e:e.slice(s))+a:createBaseLocation()+e+a;try{t[r?"replaceState":"pushState"](o,"",l),i.value=o}catch(c){console.error(c),n[r?"replace":"assign"](l)}}return i.value||o(a.value,{back:null,current:a.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:a,state:i,push:function(e,n){const r=assign({},i.value,t.state,{forward:e,scroll:computeScrollPosition()});o(r.current,r,!0),o(e,assign({},buildState(a.value,e,null),{position:r.position+1},n),!1),a.value=e},replace:function(e,n){o(e,assign({},t.state,buildState(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),a.value=e}}}function createWebHistory(e){const t=useHistoryStateNavigation(e=normalizeBase(e)),n=useHistoryListeners(e,t.state,t.location,t.replace);const a=assign({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:createHref.bind(null,e)},t,n);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function isRouteLocation(e){return"string"==typeof e||e&&"object"==typeof e}function isRouteName(e){return"string"==typeof e||"symbol"==typeof e}const START_LOCATION_NORMALIZED={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},NavigationFailureSymbol=Symbol("");var NavigationFailureType,NavigationFailureType2;function createRouterError(e,t){return assign(new Error,{type:e,[NavigationFailureSymbol]:!0},t)}function isNavigationFailure(e,t){return e instanceof Error&&NavigationFailureSymbol in e&&(null==t||!!(e.type&t))}NavigationFailureType2=NavigationFailureType||(NavigationFailureType={}),NavigationFailureType2[NavigationFailureType2.aborted=4]="aborted",NavigationFailureType2[NavigationFailureType2.cancelled=8]="cancelled",NavigationFailureType2[NavigationFailureType2.duplicated=16]="duplicated";const BASE_PARAM_PATTERN="[^/]+?",BASE_PATH_PARSER_OPTIONS={sensitive:!1,strict:!1,start:!0,end:!0},REGEX_CHARS_RE=/[.+*?^${}()[\]/\\]/g;function tokensToParser(e,t){const n=assign({},BASE_PATH_PARSER_OPTIONS,t),a=[];let i=n.start?"^":"";const o=[];for(const l of e){const e=l.length?[]:[90];n.strict&&!l.length&&(i+="/");for(let t=0;t<l.length;t++){const a=l[t];let r=40+(n.sensitive?.25:0);if(0===a.type)t||(i+="/"),i+=a.value.replace(REGEX_CHARS_RE,"\\$&"),r+=40;else if(1===a.type){const{value:e,repeatable:n,optional:c,regexp:d}=a;o.push({name:e,repeatable:n,optional:c});const u=d||BASE_PARAM_PATTERN;if(u!==BASE_PARAM_PATTERN){r+=10;try{new RegExp(`(${u})`)}catch(s){throw new Error(`Invalid custom RegExp for param "${e}" (${u}): `+s.message)}}let m=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;t||(m=c&&l.length<2?`(?:/${m})`:"/"+m),c&&(m+="?"),i+=m,r+=20,c&&(r+=-8),n&&(r+=-20),".*"===u&&(r+=-50)}e.push(r)}a.push(e)}if(n.strict&&n.end){const e=a.length-1;a[e][a[e].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&(i+="(?:/|$)");const r=new RegExp(i,n.sensitive?"":"i");return{re:r,score:a,keys:o,parse:function(e){const t=e.match(r),n={};if(!t)return null;for(let a=1;a<t.length;a++){const e=t[a]||"",i=o[a-1];n[i.name]=e&&i.repeatable?e.split("/"):e}return n},stringify:function(t){let n="",a=!1;for(const i of e){a&&n.endsWith("/")||(n+="/"),a=!1;for(const e of i)if(0===e.type)n+=e.value;else if(1===e.type){const{value:o,repeatable:r,optional:s}=e,l=o in t?t[o]:"";if(isArray(l)&&!r)throw new Error(`Provided param "${o}" is an array but it is not repeatable (* or + modifiers)`);const c=isArray(l)?l.join("/"):l;if(!c){if(!s)throw new Error(`Missing required param "${o}"`);i.length<2&&(n.endsWith("/")?n=n.slice(0,-1):a=!0)}n+=c}}return n||"/"}}}function compareScoreArray(e,t){let n=0;for(;n<e.length&&n<t.length;){const a=t[n]-e[n];if(a)return a;n++}return e.length<t.length?1===e.length&&80===e[0]?-1:1:e.length>t.length?1===t.length&&80===t[0]?1:-1:0}function comparePathParserScore(e,t){let n=0;const a=e.score,i=t.score;for(;n<a.length&&n<i.length;){const e=compareScoreArray(a[n],i[n]);if(e)return e;n++}if(1===Math.abs(i.length-a.length)){if(isLastScoreNegative(a))return 1;if(isLastScoreNegative(i))return-1}return i.length-a.length}function isLastScoreNegative(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const ROOT_TOKEN={type:0,value:""},VALID_PARAM_RE=/[a-zA-Z0-9_]/;function tokenizePath(e){if(!e)return[[]];if("/"===e)return[[ROOT_TOKEN]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${n})/"${c}": ${e}`)}let n=0,a=n;const i=[];let o;function r(){o&&i.push(o),o=[]}let s,l=0,c="",d="";function u(){c&&(0===n?o.push({type:0,value:c}):1===n||2===n||3===n?(o.length>1&&("*"===s||"+"===s)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:d,repeatable:"*"===s||"+"===s,optional:"*"===s||"?"===s})):t("Invalid state to consume buffer"),c="")}function m(){c+=s}for(;l<e.length;)if(s=e[l++],"\\"!==s||2===n)switch(n){case 0:"/"===s?(c&&u(),r()):":"===s?(u(),n=1):m();break;case 4:m(),n=a;break;case 1:"("===s?n=2:VALID_PARAM_RE.test(s)?m():(u(),n=0,"*"!==s&&"?"!==s&&"+"!==s&&l--);break;case 2:")"===s?"\\"==d[d.length-1]?d=d.slice(0,-1)+s:n=3:d+=s;break;case 3:u(),n=0,"*"!==s&&"?"!==s&&"+"!==s&&l--,d="";break;default:t("Unknown state")}else a=n,n=4;return 2===n&&t(`Unfinished custom RegExp for param "${c}"`),u(),r(),i}function createRouteRecordMatcher(e,t,n){const a=tokensToParser(tokenizePath(e.path),n),i=assign(a,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function createRouterMatcher(e,t){const n=[],a=new Map;function i(e,n,a){const s=!a,l=normalizeRouteRecord(e);l.aliasOf=a&&a.record;const c=mergeOptions(t,e),d=[l];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)d.push(assign({},l,{components:a?a.record.components:l.components,path:e,aliasOf:a?a.record:l}))}let u,m;for(const t of d){const{path:d}=t;if(n&&"/"!==d[0]){const e=n.record.path,a="/"===e[e.length-1]?"":"/";t.path=n.record.path+(d&&a+d)}if(u=createRouteRecordMatcher(t,n,c),a?a.alias.push(u):(m=m||u,m!==u&&m.alias.push(u),s&&e.name&&!isAliasRecord(u)&&o(e.name)),l.children){const e=l.children;for(let t=0;t<e.length;t++)i(e[t],u,a&&a.children[t])}a=a||u,(u.record.components&&Object.keys(u.record.components).length||u.record.name||u.record.redirect)&&r(u)}return m?()=>{o(m)}:noop}function o(e){if(isRouteName(e)){const t=a.get(e);t&&(a.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&a.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function r(e){let t=0;for(;t<n.length&&comparePathParserScore(e,n[t])>=0&&(e.record.path!==n[t].record.path||!isRecordChildOf(e,n[t]));)t++;n.splice(t,0,e),e.record.name&&!isAliasRecord(e)&&a.set(e.record.name,e)}return t=mergeOptions({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>i(e))),{addRoute:i,resolve:function(e,t){let i,o,r,s={};if("name"in e&&e.name){if(i=a.get(e.name),!i)throw createRouterError(1,{location:e});r=i.record.name,s=assign(paramsFromLocation(t.params,i.keys.filter((e=>!e.optional)).concat(i.parent?i.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&paramsFromLocation(e.params,i.keys.map((e=>e.name)))),o=i.stringify(s)}else if(null!=e.path)o=e.path,i=n.find((e=>e.re.test(o))),i&&(s=i.parse(o),r=i.record.name);else{if(i=t.name?a.get(t.name):n.find((e=>e.re.test(t.path))),!i)throw createRouterError(1,{location:e,currentLocation:t});r=i.record.name,s=assign({},t.params,e.params),o=i.stringify(s)}const l=[];let c=i;for(;c;)l.unshift(c.record),c=c.parent;return{name:r,path:o,params:s,matched:l,meta:mergeMetaFields(l)}},removeRoute:o,getRoutes:function(){return n},getRecordMatcher:function(e){return a.get(e)}}}function paramsFromLocation(e,t){const n={};for(const a of t)a in e&&(n[a]=e[a]);return n}function normalizeRouteRecord(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:normalizeRecordProps(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function normalizeRecordProps(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const a in e.components)t[a]="object"==typeof n?n[a]:n;return t}function isAliasRecord(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function mergeMetaFields(e){return e.reduce(((e,t)=>assign(e,t.meta)),{})}function mergeOptions(e,t){const n={};for(const a in e)n[a]=a in t?t[a]:e[a];return n}function isRecordChildOf(e,t){return t.children.some((t=>t===e||isRecordChildOf(e,t)))}function parseQuery(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let a=0;a<n.length;++a){const e=n[a].replace(PLUS_RE," "),i=e.indexOf("="),o=decode(i<0?e:e.slice(0,i)),r=i<0?null:decode(e.slice(i+1));if(o in t){let e=t[o];isArray(e)||(e=t[o]=[e]),e.push(r)}else t[o]=r}return t}function stringifyQuery$1(e){let t="";for(let n in e){const a=e[n];if(n=encodeQueryKey(n),null==a){void 0!==a&&(t+=(t.length?"&":"")+n);continue}(isArray(a)?a.map((e=>e&&encodeQueryValue(e))):[a&&encodeQueryValue(a)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function normalizeQuery(e){const t={};for(const n in e){const a=e[n];void 0!==a&&(t[n]=isArray(a)?a.map((e=>null==e?null:""+e)):null==a?a:""+a)}return t}const matchedRouteKey=Symbol(""),viewDepthKey=Symbol(""),routerKey=Symbol(""),routeLocationKey=Symbol(""),routerViewLocationKey=Symbol("");function useCallbacks(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function guardToPromiseFn(e,t,n,a,i,o=(e=>e())){const r=a&&(a.enterCallbacks[i]=a.enterCallbacks[i]||[]);return()=>new Promise(((s,l)=>{const c=e=>{!1===e?l(createRouterError(4,{from:n,to:t})):e instanceof Error?l(e):isRouteLocation(e)?l(createRouterError(2,{from:t,to:e})):(r&&a.enterCallbacks[i]===r&&"function"==typeof e&&r.push(e),s())},d=o((()=>e.call(a&&a.instances[i],t,n,c)));let u=Promise.resolve(d);e.length<3&&(u=u.then(c)),u.catch((e=>l(e)))}))}function extractComponentsGuards(e,t,n,a,i=(e=>e())){const o=[];for(const r of e)for(const e in r.components){let s=r.components[e];if("beforeRouteEnter"===t||r.instances[e])if(isRouteComponent(s)){const l=(s.__vccOpts||s)[t];l&&o.push(guardToPromiseFn(l,n,a,r,e,i))}else{let l=s();o.push((()=>l.then((o=>{if(!o)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${r.path}"`));const s=isESModule(o)?o.default:o;r.components[e]=s;const l=(s.__vccOpts||s)[t];return l&&guardToPromiseFn(l,n,a,r,e,i)()}))))}}return o}function isRouteComponent(e){return"object"==typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}function useLink(e){const t=inject(routerKey),n=inject(routeLocationKey),a=computed((()=>t.resolve(unref(e.to)))),i=computed((()=>{const{matched:e}=a.value,{length:t}=e,i=e[t-1],o=n.matched;if(!i||!o.length)return-1;const r=o.findIndex(isSameRouteRecord.bind(null,i));if(r>-1)return r;const s=getOriginalPath(e[t-2]);return t>1&&getOriginalPath(i)===s&&o[o.length-1].path!==s?o.findIndex(isSameRouteRecord.bind(null,e[t-2])):r})),o=computed((()=>i.value>-1&&includesParams(n.params,a.value.params))),r=computed((()=>i.value>-1&&i.value===n.matched.length-1&&isSameRouteLocationParams(n.params,a.value.params)));return{route:a,href:computed((()=>a.value.href)),isActive:o,isExactActive:r,navigate:function(n={}){return guardEvent(n)?t[unref(e.replace)?"replace":"push"](unref(e.to)).catch(noop):Promise.resolve()}}}const RouterLinkImpl=defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:useLink,setup(e,{slots:t}){const n=reactive(useLink(e)),{options:a}=inject(routerKey),i=computed((()=>({[getLinkClass(e.activeClass,a.linkActiveClass,"router-link-active")]:n.isActive,[getLinkClass(e.exactActiveClass,a.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const a=t.default&&t.default(n);return e.custom?a:h$2("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},a)}}}),RouterLink=RouterLinkImpl;function guardEvent(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function includesParams(e,t){for(const n in t){const a=t[n],i=e[n];if("string"==typeof a){if(a!==i)return!1}else if(!isArray(i)||i.length!==a.length||a.some(((e,t)=>e!==i[t])))return!1}return!0}function getOriginalPath(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const getLinkClass=(e,t,n)=>null!=e?e:null!=t?t:n,RouterViewImpl=defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const a=inject(routerViewLocationKey),i=computed((()=>e.route||a.value)),o=inject(viewDepthKey,0),r=computed((()=>{let e=unref(o);const{matched:t}=i.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),s=computed((()=>i.value.matched[r.value]));provide(viewDepthKey,computed((()=>r.value+1))),provide(matchedRouteKey,s),provide(routerViewLocationKey,i);const l=ref();return watch((()=>[l.value,s.value,e.name]),(([e,t,n],[a,i,o])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===a&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),!e||!t||i&&isSameRouteRecord(t,i)&&a||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const a=i.value,o=e.name,r=s.value,c=r&&r.components[o];if(!c)return normalizeSlot(n.default,{Component:c,route:a});const d=r.props[o],u=d?!0===d?a.params:"function"==typeof d?d(a):d:null,m=h$2(c,assign({},u,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(r.instances[o]=null)},ref:l}));return normalizeSlot(n.default,{Component:m,route:a})||m}}});function normalizeSlot(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const RouterView=RouterViewImpl;function createRouter(e){const t=createRouterMatcher(e.routes,e),n=e.parseQuery||parseQuery,a=e.stringifyQuery||stringifyQuery$1,i=e.history,o=useCallbacks(),r=useCallbacks(),s=useCallbacks(),l=shallowRef(START_LOCATION_NORMALIZED);let c=START_LOCATION_NORMALIZED;isBrowser&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=applyToParams.bind(null,(e=>""+e)),u=applyToParams.bind(null,encodeParam),m=applyToParams.bind(null,decode);function p(e,o){if(o=assign({},o||l.value),"string"==typeof e){const a=parseURL(n,e,o.path),r=t.resolve({path:a.path},o),s=i.createHref(a.fullPath);return assign(a,r,{params:m(r.params),hash:decode(a.hash),redirectedFrom:void 0,href:s})}let r;if(null!=e.path)r=assign({},e,{path:parseURL(n,e.path,o.path).path});else{const t=assign({},e.params);for(const e in t)null==t[e]&&delete t[e];r=assign({},e,{params:u(t)}),o.params=u(o.params)}const s=t.resolve(r,o),c=e.hash||"";s.params=d(m(s.params));const p=stringifyURL(a,assign({},e,{hash:encodeHash(c),path:s.path})),h=i.createHref(p);return assign({fullPath:p,hash:c,query:a===stringifyQuery$1?normalizeQuery(e.query):e.query||{}},s,{redirectedFrom:void 0,href:h})}function h(e){return"string"==typeof e?parseURL(n,e,l.value.path):assign({},e)}function f(e,t){if(c!==e)return createRouterError(8,{from:t,to:e})}function g(e){return v(e)}function y(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let a="function"==typeof n?n(e):n;return"string"==typeof a&&(a=a.includes("?")||a.includes("#")?a=h(a):{path:a},a.params={}),assign({query:e.query,hash:e.hash,params:null!=a.path?{}:e.params},a)}}function v(e,t){const n=c=p(e),i=l.value,o=e.state,r=e.force,s=!0===e.replace,d=y(n);if(d)return v(assign(h(d),{state:"object"==typeof d?assign({},o,d.state):o,force:r,replace:s}),t||n);const u=n;let m;return u.redirectedFrom=t,!r&&isSameRouteLocation(a,i,n)&&(m=createRouterError(16,{to:u,from:i}),P(i,i,!0,!1)),(m?Promise.resolve(m):w(u,i)).catch((e=>isNavigationFailure(e)?isNavigationFailure(e,2)?e:I(e):E(e,u,i))).then((e=>{if(e){if(isNavigationFailure(e,2))return v(assign({replace:s},h(e.to),{state:"object"==typeof e.to?assign({},o,e.to.state):o,force:r}),t||u)}else e=C(u,i,!0,s,o);return S(u,i,e),e}))}function _(e,t){const n=f(e,t);return n?Promise.reject(n):Promise.resolve()}function b(e){const t=M.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function w(e,t){let n;const[a,i,s]=extractChangingRecords(e,t);n=extractComponentsGuards(a.reverse(),"beforeRouteLeave",e,t);for(const o of a)o.leaveGuards.forEach((a=>{n.push(guardToPromiseFn(a,e,t))}));const l=_.bind(null,e,t);return n.push(l),R(n).then((()=>{n=[];for(const a of o.list())n.push(guardToPromiseFn(a,e,t));return n.push(l),R(n)})).then((()=>{n=extractComponentsGuards(i,"beforeRouteUpdate",e,t);for(const a of i)a.updateGuards.forEach((a=>{n.push(guardToPromiseFn(a,e,t))}));return n.push(l),R(n)})).then((()=>{n=[];for(const a of s)if(a.beforeEnter)if(isArray(a.beforeEnter))for(const i of a.beforeEnter)n.push(guardToPromiseFn(i,e,t));else n.push(guardToPromiseFn(a.beforeEnter,e,t));return n.push(l),R(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=extractComponentsGuards(s,"beforeRouteEnter",e,t,b),n.push(l),R(n)))).then((()=>{n=[];for(const a of r.list())n.push(guardToPromiseFn(a,e,t));return n.push(l),R(n)})).catch((e=>isNavigationFailure(e,8)?e:Promise.reject(e)))}function S(e,t,n){s.list().forEach((a=>b((()=>a(e,t,n)))))}function C(e,t,n,a,o){const r=f(e,t);if(r)return r;const s=t===START_LOCATION_NORMALIZED,c=isBrowser?history.state:{};n&&(a||s?i.replace(e.fullPath,assign({scroll:s&&c&&c.scroll},o)):i.push(e.fullPath,o)),l.value=e,P(e,t,n,s),I()}let k;let x,T=useCallbacks(),A=useCallbacks();function E(e,t,n){I(e);const a=A.list();return a.length?a.forEach((a=>a(e,t,n))):console.error(e),Promise.reject(e)}function I(e){return x||(x=!e,k||(k=i.listen(((e,t,n)=>{if(!$.listening)return;const a=p(e),o=y(a);if(o)return void v(assign(o,{replace:!0}),a).catch(noop);c=a;const r=l.value;isBrowser&&saveScrollPosition(getScrollKey(r.fullPath,n.delta),computeScrollPosition()),w(a,r).catch((e=>isNavigationFailure(e,12)?e:isNavigationFailure(e,2)?(v(e.to,a).then((e=>{isNavigationFailure(e,20)&&!n.delta&&n.type===NavigationType.pop&&i.go(-1,!1)})).catch(noop),Promise.reject()):(n.delta&&i.go(-n.delta,!1),E(e,a,r)))).then((e=>{(e=e||C(a,r,!1))&&(n.delta&&!isNavigationFailure(e,8)?i.go(-n.delta,!1):n.type===NavigationType.pop&&isNavigationFailure(e,20)&&i.go(-1,!1)),S(a,r,e)})).catch(noop)}))),T.list().forEach((([t,n])=>e?n(e):t())),T.reset()),e}function P(t,n,a,i){const{scrollBehavior:o}=e;if(!isBrowser||!o)return Promise.resolve();const r=!a&&getSavedScrollPosition(getScrollKey(t.fullPath,0))||(i||!a)&&history.state&&history.state.scroll||null;return nextTick().then((()=>o(t,n,r))).then((e=>e&&scrollToPosition(e))).catch((e=>E(e,t,n)))}const N=e=>i.go(e);let O;const M=new Set,$={currentRoute:l,listening:!0,addRoute:function(e,n){let a,i;return isRouteName(e)?(a=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,a)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:p,options:e,push:g,replace:function(e){return g(assign(h(e),{replace:!0}))},go:N,back:()=>N(-1),forward:()=>N(1),beforeEach:o.add,beforeResolve:r.add,afterEach:s.add,onError:A.add,isReady:function(){return x&&l.value!==START_LOCATION_NORMALIZED?Promise.resolve():new Promise(((e,t)=>{T.add([e,t])}))},install(e){e.component("RouterLink",RouterLink),e.component("RouterView",RouterView),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>unref(l)}),isBrowser&&!O&&l.value===START_LOCATION_NORMALIZED&&(O=!0,g(i.location).catch((e=>{})));const t={};for(const a in START_LOCATION_NORMALIZED)Object.defineProperty(t,a,{get:()=>l.value[a],enumerable:!0});e.provide(routerKey,this),e.provide(routeLocationKey,shallowReactive(t)),e.provide(routerViewLocationKey,l);const n=e.unmount;M.add(e),e.unmount=function(){M.delete(e),M.size<1&&(c=START_LOCATION_NORMALIZED,k&&k(),k=null,l.value=START_LOCATION_NORMALIZED,O=!1,x=!1),n()}}};function R(e){return e.reduce(((e,t)=>e.then((()=>b(t)))),Promise.resolve())}return $}function extractChangingRecords(e,t){const n=[],a=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let r=0;r<o;r++){const o=t.matched[r];o&&(e.matched.find((e=>isSameRouteRecord(e,o)))?a.push(o):n.push(o));const s=e.matched[r];s&&(t.matched.find((e=>isSameRouteRecord(e,s)))||i.push(s))}return[n,a,i]}function useRouter(){return inject(routerKey)}function useRoute(){return inject(routeLocationKey)}const isEnableLocale=once((()=>"undefined"!=typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length));let i18n;function getLocaleMessage(){const e=getLocale(),t=__uniConfig.locales;return t[e]||t[__uniConfig.fallbackLocale]||t.en||{}}function formatI18n(e){return isI18nStr(e,I18N_JSON_DELIMITERS)?useI18n().f(e,getLocaleMessage(),I18N_JSON_DELIMITERS):e}function resolveJsonObj(e,t){if(1===t.length){if(e){const n=e=>isString(e)&&isI18nStr(e,I18N_JSON_DELIMITERS),a=t[0];let i=[];if(isArray$1(e)&&(i=e.filter((e=>n(e[a])))).length)return i;const o=e[t[0]];if(n(o))return e}return}const n=t.shift();return resolveJsonObj(e&&e[n],t)}function defineI18nProperty(e,t){const n=resolveJsonObj(e,t);if(!n)return!1;const a=t[t.length-1];if(isArray$1(n))n.forEach((e=>defineI18nProperty(e,[a])));else{let e=n[a];Object.defineProperty(n,a,{get:()=>formatI18n(e),set(t){e=t}})}return!0}function useI18n(){if(!i18n){let e;if(e=navigator.cookieEnabled&&window.localStorage&&localStorage[UNI_STORAGE_LOCALE]||__uniConfig.locale||navigator.language,i18n=initVueI18n(e),isEnableLocale()){const t=Object.keys(__uniConfig.locales||{});t.length&&t.forEach((e=>i18n.add(e,__uniConfig.locales[e]))),i18n.setLocale(e)}}return i18n}function normalizeMessages(e,t,n){return t.reduce(((t,a,i)=>(t[e+a]=n[i],t)),{})}const initI18nAsyncMsgsOnce=once((()=>{const e="uni.async.",t=["error"];useI18n().add(LOCALE_EN,normalizeMessages(e,t,["The connection timed out, click the screen to try again."]),!1),useI18n().add(LOCALE_ES,normalizeMessages(e,t,["Se agotó el tiempo de conexión, haga clic en la pantalla para volver a intentarlo."]),!1),useI18n().add(LOCALE_FR,normalizeMessages(e,t,["La connexion a expiré, cliquez sur l'écran pour réessayer."]),!1),useI18n().add(LOCALE_ZH_HANS,normalizeMessages(e,t,["连接服务器超时，点击屏幕重试"]),!1),useI18n().add(LOCALE_ZH_HANT,normalizeMessages(e,t,["連接服務器超時，點擊屏幕重試"]),!1)})),initI18nShowActionSheetMsgsOnce=once((()=>{const e="uni.showActionSheet.",t=["cancel"];useI18n().add(LOCALE_EN,normalizeMessages(e,t,["Cancel"]),!1),useI18n().add(LOCALE_ES,normalizeMessages(e,t,["Cancelar"]),!1),useI18n().add(LOCALE_FR,normalizeMessages(e,t,["Annuler"]),!1),useI18n().add(LOCALE_ZH_HANS,normalizeMessages(e,t,["取消"]),!1),useI18n().add(LOCALE_ZH_HANT,normalizeMessages(e,t,["取消"]),!1)})),initI18nShowToastMsgsOnce=once((()=>{const e="uni.showToast.",t=["unpaired"];useI18n().add(LOCALE_EN,normalizeMessages(e,t,["Please note showToast must be paired with hideToast"]),!1),useI18n().add(LOCALE_ES,normalizeMessages(e,t,["Tenga en cuenta que showToast debe estar emparejado con hideToast"]),!1),useI18n().add(LOCALE_FR,normalizeMessages(e,t,["Veuillez noter que showToast doit être associé à hideToast"]),!1),useI18n().add(LOCALE_ZH_HANS,normalizeMessages(e,t,["请注意 showToast 与 hideToast 必须配对使用"]),!1),useI18n().add(LOCALE_ZH_HANT,normalizeMessages(e,t,["請注意 showToast 與 hideToast 必須配對使用"]),!1)})),initI18nShowLoadingMsgsOnce=once((()=>{const e="uni.showLoading.",t=["unpaired"];useI18n().add(LOCALE_EN,normalizeMessages(e,t,["Please note showLoading must be paired with hideLoading"]),!1),useI18n().add(LOCALE_ES,normalizeMessages(e,t,["Tenga en cuenta que showLoading debe estar emparejado con hideLoading"]),!1),useI18n().add(LOCALE_FR,normalizeMessages(e,t,["Veuillez noter que showLoading doit être associé à hideLoading"]),!1),useI18n().add(LOCALE_ZH_HANS,normalizeMessages(e,t,["请注意 showLoading 与 hideLoading 必须配对使用"]),!1),useI18n().add(LOCALE_ZH_HANT,normalizeMessages(e,t,["請注意 showLoading 與 hideLoading 必須配對使用"]),!1)})),initI18nShowModalMsgsOnce=once((()=>{const e="uni.showModal.",t=["cancel","confirm"];useI18n().add(LOCALE_EN,normalizeMessages(e,t,["Cancel","OK"]),!1),useI18n().add(LOCALE_ES,normalizeMessages(e,t,["Cancelar","OK"]),!1),useI18n().add(LOCALE_FR,normalizeMessages(e,t,["Annuler","OK"]),!1),useI18n().add(LOCALE_ZH_HANS,normalizeMessages(e,t,["取消","确定"]),!1),useI18n().add(LOCALE_ZH_HANT,normalizeMessages(e,t,["取消","確定"]),!1)})),initI18nChooseFileMsgsOnce=once((()=>{const e="uni.chooseFile.",t=["notUserActivation"];useI18n().add(LOCALE_EN,normalizeMessages(e,t,["File chooser dialog can only be shown with a user activation"]),!1),useI18n().add(LOCALE_ES,normalizeMessages(e,t,["El cuadro de diálogo del selector de archivos solo se puede mostrar con la activación del usuario"]),!1),useI18n().add(LOCALE_FR,normalizeMessages(e,t,["La boîte de dialogue du sélecteur de fichier ne peut être affichée qu'avec une activation par l'utilisateur"]),!1),useI18n().add(LOCALE_ZH_HANS,normalizeMessages(e,t,["文件选择器对话框只能在由用户激活时显示"]),!1),useI18n().add(LOCALE_ZH_HANT,normalizeMessages(e,t,["文件選擇器對話框只能在由用戶激活時顯示"]),!1)})),initI18nPickerMsgsOnce=once((()=>{const e="uni.picker.",t=["done","cancel"];useI18n().add(LOCALE_EN,normalizeMessages(e,t,["Done","Cancel"]),!1),useI18n().add(LOCALE_ES,normalizeMessages(e,t,["OK","Cancelar"]),!1),useI18n().add(LOCALE_FR,normalizeMessages(e,t,["OK","Annuler"]),!1),useI18n().add(LOCALE_ZH_HANS,normalizeMessages(e,t,["完成","取消"]),!1),useI18n().add(LOCALE_ZH_HANT,normalizeMessages(e,t,["完成","取消"]),!1)})),initI18nVideoMsgsOnce=once((()=>{const e="uni.video.",t=["danmu","volume"];useI18n().add(LOCALE_EN,normalizeMessages(e,t,["Danmu","Volume"]),!1),useI18n().add(LOCALE_ES,normalizeMessages(e,t,["Danmu","Volumen"]),!1),useI18n().add(LOCALE_FR,normalizeMessages(e,t,["Danmu","Le Volume"]),!1),useI18n().add(LOCALE_ZH_HANS,normalizeMessages(e,t,["弹幕","音量"]),!1),useI18n().add(LOCALE_ZH_HANT,normalizeMessages(e,t,["彈幕","音量"]),!1)})),initI18nChooseLocationMsgsOnce=once((()=>{const e="uni.chooseLocation.",t=["search","cancel"];useI18n().add(LOCALE_EN,normalizeMessages(e,t,["Find Place","Cancel"]),!1),useI18n().add(LOCALE_ES,normalizeMessages(e,t,["Encontrar","Cancelar"]),!1),useI18n().add(LOCALE_FR,normalizeMessages(e,t,["Trouve","Annuler"]),!1),useI18n().add(LOCALE_ZH_HANS,normalizeMessages(e,t,["搜索地点","取消"]),!1),useI18n().add(LOCALE_ZH_HANT,normalizeMessages(e,t,["搜索地點","取消"]),!1)}));function initTabBarI18n(e){return isEnableLocale()&&e.list&&e.list.forEach((e=>{defineI18nProperty(e,["text"])})),e}function initBridge(e){const t=new E$1$1;return{on:(e,n)=>t.on(e,n),once:(e,n)=>t.once(e,n),off:(e,n)=>t.off(e,n),emit:(e,...n)=>t.emit(e,...n),subscribe(n,a,i=!1){t[i?"once":"on"](`${e}.${n}`,a)},unsubscribe(n,a){t.off(`${e}.${n}`,a)},subscribeHandler(n,a,i){t.emit(`${e}.${n}`,a,i)}}}const INVOKE_VIEW_API="invokeViewApi",INVOKE_SERVICE_API="invokeServiceApi";let invokeServiceMethodId=1;const invokeServiceMethod=(e,t,n)=>{const{subscribe:a,publishHandler:i}=UniViewJSBridge$1,o=n?invokeServiceMethodId++:0;n&&a(INVOKE_SERVICE_API+"."+o,n,!0),i(INVOKE_SERVICE_API,{id:o,name:e,args:t})},viewMethods=Object.create(null);function normalizeViewMethodName(e,t){return e+"."+t}function subscribeViewMethod(e,t){UniViewJSBridge$1.subscribe(normalizeViewMethodName(e,INVOKE_VIEW_API),t?t(onInvokeViewMethod):onInvokeViewMethod)}function unsubscribeViewMethod(e){UniViewJSBridge$1.unsubscribe(normalizeViewMethodName(e,INVOKE_VIEW_API)),Object.keys(viewMethods).forEach((t=>{0===t.indexOf(e+".")&&delete viewMethods[t]}))}function registerViewMethod(e,t,n){t=normalizeViewMethodName(e,t),viewMethods[t]||(viewMethods[t]=n)}function unregisterViewMethod(e,t){t=normalizeViewMethodName(e,t),delete viewMethods[t]}function onInvokeViewMethod({id:e,name:t,args:n},a){t=normalizeViewMethodName(a,t);const i=t=>{e&&UniViewJSBridge$1.publishHandler(INVOKE_VIEW_API+"."+e,t)},o=viewMethods[t];o?o(n,i):i({})}const ViewJSBridge=extend$1(initBridge("service"),{invokeServiceMethod:invokeServiceMethod}),LONGPRESS_TIMEOUT=350,LONGPRESS_THRESHOLD=10,passiveOptions$2=passive(!0);let longPressTimer;function clearLongPressTimer(){longPressTimer&&(clearTimeout(longPressTimer),longPressTimer=null)}let startPageX=0,startPageY=0;function touchstart(e){if(clearLongPressTimer(),1!==e.touches.length)return;const{pageX:t,pageY:n}=e.touches[0];startPageX=t,startPageY=n,longPressTimer=setTimeout((function(){const t=new CustomEvent("longpress",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});t.touches=e.touches,t.changedTouches=e.changedTouches,e.target.dispatchEvent(t)}),LONGPRESS_TIMEOUT)}function touchmove(e){if(!longPressTimer)return;if(1!==e.touches.length)return clearLongPressTimer();const{pageX:t,pageY:n}=e.touches[0];return Math.abs(t-startPageX)>LONGPRESS_THRESHOLD||Math.abs(n-startPageY)>LONGPRESS_THRESHOLD?clearLongPressTimer():void 0}function initLongPress(){window.addEventListener("touchstart",touchstart,passiveOptions$2),window.addEventListener("touchmove",touchmove,passiveOptions$2),window.addEventListener("touchend",clearLongPressTimer,passiveOptions$2),window.addEventListener("touchcancel",clearLongPressTimer,passiveOptions$2)}function checkValue$1(e,t){const n=Number(e);return isNaN(n)?t:n}function getWindowWidth$1(){const e=/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation,t=e&&90===Math.abs(window.orientation);var n=e?Math[t?"max":"min"](screen.width,screen.height):screen.width;return Math.min(window.innerWidth,document.documentElement.clientWidth,n)||n}function useRem(){const e=__uniConfig.globalStyle||{},t=checkValue$1(e.rpxCalcMaxDeviceWidth,960),n=checkValue$1(e.rpxCalcBaseDeviceWidth,375);function a(){let e=getWindowWidth$1();e=e<=t?e:n,document.documentElement.style.fontSize=e/23.4375+"px"}a(),document.addEventListener("DOMContentLoaded",a),window.addEventListener("load",a),window.addEventListener("resize",a)}function initView(){useRem(),initCustomDatasetOnce(),initLongPress()}function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var attrs=["top","left","right","bottom"],inited$1,elementComputedStyle={},support;function getSupport(){return support="CSS"in window&&"function"==typeof CSS.supports?CSS.supports("top: env(safe-area-inset-top)")?"env":CSS.supports("top: constant(safe-area-inset-top)")?"constant":"":""}function init(){if(support="string"==typeof support?support:getSupport()){var e=[],t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t={passive:!0}}});window.addEventListener("test",null,n)}catch(e2){}var a=document.createElement("div");i(a,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),attrs.forEach((function(e){!function(e,n){var a=document.createElement("div"),r=document.createElement("div"),s=document.createElement("div"),l=document.createElement("div"),c={position:"absolute",width:"100px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:support+"(safe-area-inset-"+n+")"};i(a,c),i(r,c),i(s,{transition:"0s",animation:"none",width:"400px",height:"400px"}),i(l,{transition:"0s",animation:"none",width:"250%",height:"250%"}),a.appendChild(s),r.appendChild(l),e.appendChild(a),e.appendChild(r),o((function(){a.scrollTop=r.scrollTop=1e4;var e=a.scrollTop,i=r.scrollTop;function o(){this.scrollTop!==(this===a?e:i)&&(a.scrollTop=r.scrollTop=1e4,e=a.scrollTop,i=r.scrollTop,attrChange(n))}a.addEventListener("scroll",o,t),r.addEventListener("scroll",o,t)}));var d=getComputedStyle(a);Object.defineProperty(elementComputedStyle,n,{configurable:!0,get:function(){return parseFloat(d.paddingBottom)}})}(a,e)})),document.body.appendChild(a),o(),inited$1=!0}else attrs.forEach((function(e){elementComputedStyle[e]=0}));function i(e,t){var n=e.style;Object.keys(t).forEach((function(e){var a=t[e];n[e]=a}))}function o(t){t?e.push(t):e.forEach((function(e){e()}))}}function getAttr(e){return inited$1||init(),elementComputedStyle[e]}var changeAttrs=[];function attrChange(e){changeAttrs.length||setTimeout((function(){var e={};changeAttrs.forEach((function(t){e[t]=elementComputedStyle[t]})),changeAttrs.length=0,callbacks.forEach((function(t){t(e)}))}),0),changeAttrs.push(e)}var callbacks=[];function onChange(e){getSupport()&&(inited$1||init(),"function"==typeof e&&callbacks.push(e))}function offChange(e){var t=callbacks.indexOf(e);t>=0&&callbacks.splice(t,1)}var safeAreaInsets={get support(){return 0!=("string"==typeof support?support:getSupport()).length},get top(){return getAttr("top")},get left(){return getAttr("left")},get right(){return getAttr("right")},get bottom(){return getAttr("bottom")},onChange:onChange,offChange:offChange},out=safeAreaInsets;const safeAreaInsets$1=getDefaultExportFromCjs(out),onEventPrevent=withModifiers((()=>{}),["prevent"]),onEventStop=withModifiers((e=>{}),["stop"]);function getWindowOffsetCssVar(e,t){return parseInt((e.getPropertyValue(t).match(/\d+/)||["0"])[0])}function getWindowTop(){const e=getWindowOffsetCssVar(document.documentElement.style,"--window-top");return e?e+safeAreaInsets$1.top:0}function getWindowOffset(){const e=document.documentElement.style,t=getWindowTop(),n=getWindowOffsetCssVar(e,"--window-bottom"),a=getWindowOffsetCssVar(e,"--window-left"),i=getWindowOffsetCssVar(e,"--window-right"),o=getWindowOffsetCssVar(e,"--top-window-height");return{top:t,bottom:n?n+safeAreaInsets$1.bottom:0,left:a?a+safeAreaInsets$1.left:0,right:i?i+safeAreaInsets$1.right:0,topWindowHeight:o||0}}function updateCssVar(e){const t=document.documentElement.style;Object.keys(e).forEach((n=>{t.setProperty(n,e[n])}))}function updatePageCssVar(e){return updateCssVar(e)}function PolySymbol(e){return Symbol(e)}function hasRpx(e){return-1!==(e+="").indexOf("rpx")||-1!==e.indexOf("upx")}function rpx2px(e,t=!1){if(t)return rpx2pxWithReplace(e);if(isString(e)){const t=parseInt(e)||0;return hasRpx(e)?upx2px(t):t}return e}function rpx2pxWithReplace(e){return hasRpx(e)?e.replace(/(\d+(\.\d+)?)[ru]px/g,((e,t)=>upx2px(parseFloat(t))+"px")):e}const ICON_PATH_SUCCESS_NO_CIRCLE="M1.952 18.080q-0.32-0.352-0.416-0.88t0.128-0.976l0.16-0.352q0.224-0.416 0.64-0.528t0.8 0.176l6.496 4.704q0.384 0.288 0.912 0.272t0.88-0.336l17.312-14.272q0.352-0.288 0.848-0.256t0.848 0.352l-0.416-0.416q0.32 0.352 0.32 0.816t-0.32 0.816l-18.656 18.912q-0.32 0.352-0.8 0.352t-0.8-0.32l-7.936-8.064z",ICON_PATH_WARN="M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM15.136 8.672h1.728q0.128 0 0.224 0.096t0.096 0.256l-0.384 10.24q0 0.064-0.048 0.112t-0.112 0.048h-1.248q-0.096 0-0.144-0.048t-0.048-0.112l-0.384-10.24q0-0.16 0.096-0.256t0.224-0.096zM16 23.328q-0.48 0-0.832-0.352t-0.352-0.848 0.352-0.848 0.832-0.352 0.832 0.352 0.352 0.848-0.352 0.848-0.832 0.352z",ICON_PATH_BACK="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",ICON_PATH_CLOSE="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",ICON_PATH_CONFIRM="M31.562 4.9966666659375q0.435 0.399 0.435 0.87 0.036 0.58-0.399 0.98l-18.61 19.917q-0.145 0.145-0.327 0.217-0.073 0.037-0.145 0.11-0.254 0.035-0.472 0.035-0.29 0-0.544-0.036l-0.145-0.072q-0.109-0.073-0.217-0.182l-0.11-0.072L0.363 16.2786666659375q-0.327-0.399-0.363-0.907 0-0.544 0.363-1.016 0.435-0.326 0.961-0.362 0.527-0.036 0.962 0.362l9.722 9.542L29.712 5.0326666659375q0.399-0.363 0.943-0.363 0.544-0.036 0.907 0.327z";function createSvgIconVNode(e,t="#000",n=27){return createVNode("svg",{width:n,height:n,viewBox:"0 0 32 32"},[createVNode("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function useCurrentPageId(){{const{$pageInstance:e}=getCurrentInstance();return e&&e.proxy.$page.id}}function getPageIdByVm(e){const t=resolveComponentInstance(e);if(t.$page)return t.$page.id;if(t.$){const{$pageInstance:e}=t.$;return e&&e.proxy.$page.id}}function getCurrentPage(){const e=getCurrentPages$1(),t=e.length;if(t)return e[t-1]}function getCurrentPageMeta(){const e=getCurrentPage();if(e)return e.$page.meta}function getCurrentPageId(){const e=getCurrentPageMeta();return e?e.id:-1}function getCurrentPageVm(){const e=getCurrentPage();if(e)return e.$vm}const PAGE_META_KEYS=["navigationBar","pullToRefresh"];function initGlobalStyle(){return JSON.parse(JSON.stringify(__uniConfig.globalStyle||{}))}function initRouteMeta(e,t){const n=initGlobalStyle(),a=extend$1({id:t},n,e);PAGE_META_KEYS.forEach((t=>{a[t]=extend$1({},n[t],e[t])}));const{navigationBar:i}=a;return i.titleText&&i.titleImage&&(i.titleText=""),a}function normalizePullToRefreshRpx(e){return e.offset&&(e.offset=rpx2px(e.offset)),e.height&&(e.height=rpx2px(e.height)),e.range&&(e.range=rpx2px(e.range)),e}function initPageInternalInstance(e,t,n,a,i,o){const{id:r,route:s}=a,l=normalizeStyles(a.navigationBar,__uniConfig.themeConfig,o).titleColor;return{id:r,path:addLeadingSlash(s),route:s,fullPath:t,options:n,meta:a,openType:e,eventChannel:i,statusBarStyle:"#ffffff"===l?"light":"dark"}}function invokeHook(e,t,n){if(isString(e))n=t,t=e,e=getCurrentPageVm();else if("number"==typeof e){const t=getCurrentPages$1().find((t=>t.$page.id===e));e=t?t.$vm:getCurrentPageVm()}if(!e)return;const a=e.$[t];return a&&invokeArrayFns(a,n)}function disableScrollListener(e){e.preventDefault()}let testReachBottomTimer,lastScrollHeight=0;function createScrollListener({onPageScroll:e,onReachBottom:t,onReachBottomDistance:n}){let a=!1,i=!1,o=!0;const r=()=>{function r(){if((()=>{const{scrollHeight:e}=document.documentElement,t=window.innerHeight,a=window.scrollY,o=a>0&&e>t&&a+t+n>=e,r=Math.abs(e-lastScrollHeight)>n;return!o||i&&!r?(!o&&i&&(i=!1),!1):(lastScrollHeight=e,i=!0,!0)})())return t&&t(),o=!1,setTimeout((function(){o=!0}),350),!0}e&&e(window.pageYOffset),t&&o&&(r()||(testReachBottomTimer=setTimeout(r,300))),a=!1};return function(){clearTimeout(testReachBottomTimer),a||requestAnimationFrame(r),a=!0}}function normalizeRoute(e){if(0===e.indexOf("/"))return e;let t="";const n=getCurrentPages$1();return n.length&&(t=n[n.length-1].$page.route),getRealRoute(t,e)}function getRealRoute(e,t){if(0===t.indexOf("/"))return t;if(0===t.indexOf("./"))return getRealRoute(e,t.slice(2));const n=t.split("/"),a=n.length;let i=0;for(;i<a&&".."===n[i];i++);n.splice(0,i),t=n.join("/");const o=e.length>0?e.split("/"):[];return o.splice(o.length-i-1,i+1),addLeadingSlash(o.concat(n).join("/"))}function getRouteOptions(e,t=!1){return t?__uniRoutes.find((t=>t.path===e||t.alias===e)):__uniRoutes.find((t=>t.path===e))}function normalizeTabBarRoute(e,t,n){const a=getRouteOptions(addLeadingSlash(t));if(a){const{meta:e}=a;delete e.tabBarIndex,e.isQuit=e.isTabBar=!1}const i=getRouteOptions(addLeadingSlash(n));if(i){const{meta:t}=i;t.tabBarIndex=e,t.isQuit=t.isTabBar=!0;const a=__uniConfig.tabBar;a&&a.list&&a.list[e]&&(a.list[e].pagePath=removeLeadingSlash(n))}}class ComponentDescriptor{constructor(e){this.$bindClass=!1,this.$bindStyle=!1,this.$vm=e,this.$el=resolveOwnerEl(e.$),this.$el.getAttribute&&(this.$bindClass=!!this.$el.getAttribute("class"),this.$bindStyle=!!this.$el.getAttribute("style"))}selectComponent(e){if(!this.$el||!e)return;const t=getWxsVm(this.$el.querySelector(e));return t?createComponentDescriptor(t,!1):void 0}selectAllComponents(e){if(!this.$el||!e)return[];const t=[],n=this.$el.querySelectorAll(e);for(let a=0;a<n.length;a++){const e=getWxsVm(n[a]);e&&t.push(createComponentDescriptor(e,!1))}return t}forceUpdate(e){"class"===e?this.$bindClass?(this.$el.__wxsClassChanged=!0,this.$vm.$forceUpdate()):this.updateWxsClass():"style"===e&&(this.$bindStyle?(this.$el.__wxsStyleChanged=!0,this.$vm.$forceUpdate()):this.updateWxsStyle())}updateWxsClass(){const{__wxsAddClass:e}=this.$el;e.length&&(this.$el.className=e.join(" "))}updateWxsStyle(){const{__wxsStyle:e}=this.$el;e&&this.$el.setAttribute("style",stringifyStyle(e))}setStyle(e){return this.$el&&e?(isString(e)&&(e=parseStringStyle(e)),isPlainObject(e)&&(this.$el.__wxsStyle=e,this.forceUpdate("style")),this):this}addClass(e){if(!this.$el||!e)return this;const t=this.$el.__wxsAddClass||(this.$el.__wxsAddClass=[]);return-1===t.indexOf(e)&&(t.push(e),this.forceUpdate("class")),this}removeClass(e){if(!this.$el||!e)return this;const{__wxsAddClass:t}=this.$el;if(t){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const n=this.$el.__wxsRemoveClass||(this.$el.__wxsRemoveClass=[]);return-1===n.indexOf(e)&&(n.push(e),this.forceUpdate("class")),this}hasClass(e){return this.$el&&this.$el.classList.contains(e)}getDataset(){return this.$el&&this.$el.dataset}callMethod(e,t={}){const n=this.$vm[e];isFunction(n)?n(JSON.parse(JSON.stringify(t))):this.$vm.ownerId&&UniViewJSBridge$1.publishHandler(ON_WXS_INVOKE_CALL_METHOD,{nodeId:this.$el.__id,ownerId:this.$vm.ownerId,method:e,args:t})}requestAnimationFrame(e){return window.requestAnimationFrame(e)}getState(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}triggerEvent(e,t={}){return this.$vm.$emit(e,t),this}getComputedStyle(e){if(this.$el){const t=window.getComputedStyle(this.$el);return e&&e.length?e.reduce(((e,n)=>(e[n]=t[n],e)),{}):t}return{}}setTimeout(e,t){return window.setTimeout(e,t)}clearTimeout(e){return window.clearTimeout(e)}getBoundingClientRect(){return this.$el.getBoundingClientRect()}}function createComponentDescriptor(e,t=!0){if(t&&e&&(e=resolveOwnerVm(e.$)),e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new ComponentDescriptor(e)),e.$el.__wxsComponentDescriptor}function getComponentDescriptor(e,t){return createComponentDescriptor(e,t)}function resolveOwnerComponentPublicInstance(e,t,n=!0){if(!t)return!1;if(n&&e.length<2)return!1;const a=resolveOwnerVm(t);if(!a)return!1;const i=a.$.type;return!(!i.$wxs&&!i.$renderjs)&&a}function wrapperH5WxsEvent(e,t,n,a=!0){if(t){e.__instance||(e.__instance=!0,Object.defineProperty(e,"instance",{get:()=>getComponentDescriptor(n.proxy,!1)}));const i=resolveOwnerComponentPublicInstance(t,n,a);if(i)return[e,getComponentDescriptor(i,!1)]}}function getWxsVm(e){if(e)return e.__vueParentComponent&&e.__vueParentComponent.proxy}const isKeyboardEvent=e=>!e.type.indexOf("key")&&e instanceof KeyboardEvent,isClickEvent=e=>"click"===e.type,isMouseEvent=e=>0===e.type.indexOf("mouse")||["contextmenu"].includes(e.type),isTouchEvent=e=>"undefined"!=typeof TouchEvent&&e instanceof TouchEvent||0===e.type.indexOf("touch")||["longpress"].indexOf(e.type)>=0;function $nne(e,t,n){const{currentTarget:a}=e;if(!(e instanceof Event&&a instanceof HTMLElement))return[e];const i=0!==a.tagName.indexOf("UNI-");if(i)return wrapperH5WxsEvent(e,t,n,!1)||[e];const o=createNativeEvent(e,i);if(isClickEvent(e))normalizeClickEvent(o,e);else if(isMouseEvent(e))normalizeMouseEvent(o,e);else if(isTouchEvent(e)){const t=getWindowTop();o.touches=normalizeTouchEvent(e.touches,t),o.changedTouches=normalizeTouchEvent(e.changedTouches,t)}else if(isKeyboardEvent(e)){["key","code"].forEach((t=>{Object.defineProperty(o,t,{get:()=>e[t]})}))}return wrapperH5WxsEvent(o,t,n)||[o]}function findUniTarget(e){for(;e&&0!==e.tagName.indexOf("UNI-");)e=e.parentElement;return e}function createNativeEvent(e,t=!1){const{type:n,timeStamp:a,target:i,currentTarget:o}=e;let r,s;r=normalizeTarget(t?i:findUniTarget(i)),s=normalizeTarget(o);const l={type:n,timeStamp:a,target:r,detail:{},currentTarget:s};return e._stopped&&(l._stopped=!0),e.type.startsWith("touch")&&(l.touches=e.touches,l.changedTouches=e.changedTouches),wrapperEvent(l,e),l}function wrapperEvent(e,t){extend$1(e,{preventDefault:()=>t.preventDefault(),stopPropagation:()=>t.stopPropagation()})}function normalizeClickEvent(e,t){const{x:n,y:a}=t,i=getWindowTop();e.detail={x:n,y:a-i},e.touches=e.changedTouches=[createTouchEvent(t,i)]}function normalizeMouseEvent(e,t){const n=getWindowTop();e.pageX=t.pageX,e.pageY=t.pageY-n,e.clientX=t.clientX,e.clientY=t.clientY-n,e.touches=e.changedTouches=[createTouchEvent(t,n)]}function createTouchEvent(e,t){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY-t,pageX:e.pageX,pageY:e.pageY-t}}function normalizeTouchEvent(e,t){const n=[];for(let a=0;a<e.length;a++){const{identifier:i,pageX:o,pageY:r,clientX:s,clientY:l,force:c}=e[a];n.push({identifier:i,pageX:o,pageY:r-t,clientX:s,clientY:l-t,force:c||0})}return n}const instance=Object.defineProperty({__proto__:null,$nne:$nne,createNativeEvent:createNativeEvent},Symbol.toStringTag,{value:"Module"});function initAppConfig$1(e){const t=e.globalProperties;extend$1(t,instance),t.$gcd=getComponentDescriptor}function initViewPlugin(e){initAppConfig$1(e._context.config)}const invokeOnCallback=(e,t)=>UniServiceJSBridge$1.emit("api."+e,t);let invokeViewMethodId=1;function publishViewMethodName(e){return(e||getCurrentPageId())+"."+INVOKE_VIEW_API}const invokeViewMethod=(e,t,n,a)=>{const{subscribe:i,publishHandler:o}=UniServiceJSBridge$1,r=a?invokeViewMethodId++:0;a&&i(INVOKE_VIEW_API+"."+r,a,!0),o(publishViewMethodName(n),{id:r,name:e,args:t},n)},invokeViewMethodKeepAlive=(e,t,n,a)=>{const{subscribe:i,unsubscribe:o,publishHandler:r}=UniServiceJSBridge$1,s=invokeViewMethodId++,l=INVOKE_VIEW_API+"."+s;return i(l,n),r(publishViewMethodName(a),{id:s,name:e,args:t},a),()=>{o(l)}},ServiceJSBridge=extend$1(initBridge("view"),{invokeOnCallback:invokeOnCallback,invokeViewMethod:invokeViewMethod,invokeViewMethodKeepAlive:invokeViewMethodKeepAlive});function initOn(){const{on:e}=UniServiceJSBridge$1;e(ON_RESIZE,onResize$1),e(ON_APP_ENTER_FOREGROUND,onAppEnterForeground),e(ON_APP_ENTER_BACKGROUND,onAppEnterBackground)}function onResize$1(e){invokeHook(getCurrentPage(),ON_RESIZE,e),UniServiceJSBridge$1.invokeOnCallback("onWindowResize",e)}function onAppEnterForeground(e){const t=getCurrentPage();invokeHook(getApp$1(),ON_SHOW,e),invokeHook(t,ON_SHOW)}function onAppEnterBackground(){invokeHook(getApp$1(),ON_HIDE),invokeHook(getCurrentPage(),ON_HIDE)}const SUBSCRIBE_LIFECYCLE_HOOKS=[ON_PAGE_SCROLL,ON_REACH_BOTTOM];function initSubscribe(){SUBSCRIBE_LIFECYCLE_HOOKS.forEach((e=>UniServiceJSBridge$1.subscribe(e,createPageEvent(e))))}function createPageEvent(e){return(t,n)=>{invokeHook(parseInt(n),e,t)}}function initService(){initOn(),initSubscribe()}function initAppVm(e){e.$vm=e,e.$mpType="app";const t=ref(useI18n().getLocale());Object.defineProperty(e,"$locale",{get:()=>t.value,set(e){t.value=e}})}function initPageVm(e,t){e.route=t.route,e.$vm=e,e.$page=t,e.$mpType="page",e.$fontFamilySet=new Set,t.meta.isTabBar&&(e.$.__isTabBar=!0,e.$.__isActive=!0)}function getOpenerEventChannel(){if(this.$route){const e=this.$route.meta;return e.eventChannel||(e.eventChannel=new EventChannel(this.$page.id)),e.eventChannel}}function initAppConfig(e){e.globalProperties.getOpenerEventChannel=getOpenerEventChannel}function initServicePlugin(e){initAppConfig(e._context.config)}function createLaunchOptions(){return{path:"",query:{},scene:1001,referrerInfo:{appId:"",extraData:{}}}}function defineGlobalData(e,t){const n=e.$options||{};n.globalData=extend$1(n.globalData||{},t),Object.defineProperty(e,"globalData",{get:()=>n.globalData,set(e){n.globalData=e}})}function converPx(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,((e,t)=>`${upx2px(parseFloat(t))}px`)):/^-?[\d\.]+$/.test(e)?`${e}px`:e||""}function converType(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`)).replace("webkit","-webkit")}function getStyle(e){const t=["matrix","matrix3d","scale","scale3d","rotate3d","skew","translate","translate3d"],n=["scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","translateX","translateY","translateZ"],a=["opacity","background-color"],i=["width","height","left","right","top","bottom"],o=e.animates,r=e.option,s=r.transition,l={},c=[];return o.forEach((e=>{let o=e.type,r=[...e.args];if(t.concat(n).includes(o))o.startsWith("rotate")||o.startsWith("skew")?r=r.map((e=>parseFloat(e)+"deg")):o.startsWith("translate")&&(r=r.map(converPx)),n.indexOf(o)>=0&&(r.length=1),c.push(`${o}(${r.join(",")})`);else if(a.concat(i).includes(r[0])){o=r[0];const e=r[1];l[o]=i.includes(o)?converPx(e):e}})),l.transform=l.webkitTransform=c.join(" "),l.transition=l.webkitTransition=Object.keys(l).map((e=>`${converType(e)} ${s.duration}ms ${s.timingFunction} ${s.delay}ms`)).join(","),l.transformOrigin=l.webkitTransformOrigin=r.transformOrigin,l}function startAnimation(e){const t=e.animation;if(!t||!t.actions||!t.actions.length)return;let n=0;const a=t.actions,i=t.actions.length;function o(){const t=a[n],r=t.option.transition,s=getStyle(t);Object.keys(s).forEach((t=>{e.$el.style[t]=s[t]})),n+=1,n<i&&setTimeout(o,r.duration+r.delay)}setTimeout((()=>{o()}),0)}const animation={props:["animation"],watch:{animation:{deep:!0,handler(){startAnimation(this)}}},mounted(){startAnimation(this)}},defineBuiltInComponent=e=>{e.__reserved=!0;const{props:t,mixins:n}=e;return t&&t.animation||(n||(e.mixins=[])).push(animation),defineSystemComponent(e)},defineSystemComponent=e=>(e.__reserved=!0,e.compatConfig={MODE:3},defineComponent(e));function withWebEvent(e){return e.__wwe=!0,e}function useCustomEvent(e,t){return(n,a,i)=>{e.value&&t(n,normalizeCustomEvent(n,a,e.value,i||{}))}}function useNativeEvent(e){return(t,n)=>{e(t,createNativeEvent(n))}}function normalizeCustomEvent(e,t,n,a){let i;return i=normalizeTarget(n),{type:a.type||e,timeStamp:t.timeStamp||0,target:i,currentTarget:i,detail:a}}const hoverProps={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function useHover(e){const t=ref(!1);let n,a,i=!1;function o(){requestAnimationFrame((()=>{clearTimeout(a),a=setTimeout((()=>{t.value=!1}),parseInt(e.hoverStayTime))}))}function r(a){a._hoverPropagationStopped||e.hoverClass&&"none"!==e.hoverClass&&!e.disabled&&(e.hoverStopPropagation&&(a._hoverPropagationStopped=!0),i=!0,n=setTimeout((()=>{t.value=!0,i||o()}),parseInt(e.hoverStartTime)))}function s(){i=!1,t.value&&o()}function l(){s(),window.removeEventListener("mouseup",l)}return{hovering:t,binding:{onTouchstartPassive:withWebEvent((function(e){e.touches.length>1||r(e)})),onMousedown:withWebEvent((function(e){i||(r(e),window.addEventListener("mouseup",l))})),onTouchend:withWebEvent((function(){s()})),onMouseup:withWebEvent((function(){i&&l()})),onTouchcancel:withWebEvent((function(){i=!1,t.value=!1,clearTimeout(n)}))}}}function useBooleanAttr(e,t){return isString(t)&&(t=[t]),t.reduce(((t,n)=>(e[n]&&(t[n]=!0),t)),Object.create(null))}const uniFormKey=PolySymbol("uf"),index$z=defineBuiltInComponent({name:"Form",emits:["submit","reset"],setup(e,{slots:t,emit:n}){const a=ref(null);return provideForm(useCustomEvent(a,n)),()=>createVNode("uni-form",{ref:a},[createVNode("span",null,[t.default&&t.default()])],512)}});function provideForm(e){const t=[];return provide(uniFormKey,{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,a]=t.submit();n&&(e[n]=a)}return e}),Object.create(null))})},reset(n){t.forEach((e=>e.reset&&e.reset())),e("reset",n)}}),t}const labelProps={for:{type:String,default:""}},uniLabelKey=PolySymbol("ul");function useProvideLabel(){const e=[];return provide(uniLabelKey,{addHandler(t){e.push(t)},removeHandler(t){e.splice(e.indexOf(t),1)}}),e}const index$y=defineBuiltInComponent({name:"Label",props:labelProps,setup(e,{slots:t}){const n=ref(null),a=useCurrentPageId(),i=useProvideLabel(),o=computed((()=>e.for||t.default&&t.default.length)),r=withWebEvent((t=>{const n=t.target;let o=/^uni-(checkbox|radio|switch)-/.test(n.className);o||(o=/^uni-(checkbox|radio|switch|button)$|^(svg|path)$/i.test(n.tagName)),o||(e.for?UniViewJSBridge$1.emit("uni-label-click-"+a+"-"+e.for,t,!0):i.length&&i[0](t,!0))}));return()=>createVNode("uni-label",{ref:n,class:{"uni-label-pointer":o},onClick:r},[t.default&&t.default()],10,["onClick"])}});function useListeners$1(e,t){_addListeners(e.id,t),watch((()=>e.id),((e,n)=>{_removeListeners(n,t,!0),_addListeners(e,t,!0)})),onUnmounted((()=>{_removeListeners(e.id,t)}))}function _addListeners(e,t,n){const a=useCurrentPageId();n&&!e||isPlainObject(t)&&Object.keys(t).forEach((i=>{n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&UniViewJSBridge$1.on(`uni-${i}-${a}-${e}`,t[i]):0===i.indexOf("uni-")?UniViewJSBridge$1.on(i,t[i]):e&&UniViewJSBridge$1.on(`uni-${i}-${a}-${e}`,t[i])}))}function _removeListeners(e,t,n){const a=useCurrentPageId();n&&!e||isPlainObject(t)&&Object.keys(t).forEach((i=>{n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&UniViewJSBridge$1.off(`uni-${i}-${a}-${e}`,t[i]):0===i.indexOf("uni-")?UniViewJSBridge$1.off(i,t[i]):e&&UniViewJSBridge$1.off(`uni-${i}-${a}-${e}`,t[i])}))}const buttonProps={id:{type:String,default:""},hoverClass:{type:String,default:"button-hover"},hoverStartTime:{type:[Number,String],default:20},hoverStayTime:{type:[Number,String],default:70},hoverStopPropagation:{type:Boolean,default:!1},disabled:{type:[Boolean,String],default:!1},formType:{type:String,default:""},openType:{type:String,default:""},loading:{type:[Boolean,String],default:!1},plain:{type:[Boolean,String],default:!1}},index$x=defineBuiltInComponent({name:"Button",props:buttonProps,setup(e,{slots:t}){const n=ref(null),a=inject(uniFormKey,!1),{hovering:i,binding:o}=useHover(e);useI18n();const r=withWebEvent(((t,i)=>{if(e.disabled)return t.stopImmediatePropagation();i&&n.value.click();const o=e.formType;if(o){if(!a)return;"submit"===o?a.submit(t):"reset"===o&&a.reset(t)}else;})),s=inject(uniLabelKey,!1);return s&&(s.addHandler(r),onBeforeUnmount((()=>{s.removeHandler(r)}))),useListeners$1(e,{"label-click":r}),()=>{const a=e.hoverClass,s=useBooleanAttr(e,"disabled"),l=useBooleanAttr(e,"loading"),c=useBooleanAttr(e,"plain"),d=a&&"none"!==a;return createVNode("uni-button",mergeProps({ref:n,onClick:r,id:e.id,class:d&&i.value?a:""},d&&o,s,l,c),[t.default&&t.default()],16,["onClick","id"])}}});function addBase(e){const{base:t}=__uniConfig.router;return 0===addLeadingSlash(e).indexOf(t)?addLeadingSlash(e):t+e}function getRealPath(e){const{base:t,assets:n}=__uniConfig.router;if("./"===t&&(0===e.indexOf("./static/")||n&&0===e.indexOf("./"+n+"/"))&&(e=e.slice(1)),0===e.indexOf("/")){if(0!==e.indexOf("//"))return addBase(e.slice(1));e="https:"+e}if(SCHEME_RE.test(e)||DATA_RE.test(e)||0===e.indexOf("blob:"))return e;const a=getCurrentPages$1();return a.length?addBase(getRealRoute(a[a.length-1].$page.route,e).slice(1)):e}const ua=navigator.userAgent,isAndroid=/android/i.test(ua),isIOS$1=/iphone|ipad|ipod/i.test(ua),isWindows=ua.match(/Windows NT ([\d|\d.\d]*)/i),isMac=/Macintosh|Mac/i.test(ua),isLinux=/Linux|X11/i.test(ua),isIPadOS=isMac&&navigator.maxTouchPoints>0;function getScreenFix(){return/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation}function isLandscape(e){return e&&90===Math.abs(window.orientation)}function getScreenWidth(e,t){return e?Math[t?"max":"min"](screen.width,screen.height):screen.width}function getScreenHeight(e,t){return e?Math[t?"min":"max"](screen.height,screen.width):screen.height}function getWindowWidth(e){return Math.min(window.innerWidth,document.documentElement.clientWidth,e)||e}function getBaseSystemInfo(){const e=getScreenFix(),t=getWindowWidth(getScreenWidth(e,isLandscape(e)));return{platform:isIOS$1?"ios":"other",pixelRatio:window.devicePixelRatio,windowWidth:t}}function operateVideoPlayer(e,t,n,a){UniServiceJSBridge$1.invokeViewMethod("video."+e,{videoId:e,type:n,data:a},t)}function operateMap(e,t,n,a,i){UniServiceJSBridge$1.invokeViewMethod("map."+e,{type:n,data:a},t,i)}function getRootInfo(e){const t={};if(e.id&&(t.id=""),e.dataset&&(t.dataset={}),e.rect&&(t.left=0,t.right=0,t.top=0,t.bottom=0),e.size&&(t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight),e.scrollOffset){const e=document.documentElement,n=document.body;t.scrollLeft=e.scrollLeft||n.scrollLeft||0,t.scrollTop=e.scrollTop||n.scrollTop||0,t.scrollHeight=e.scrollHeight||n.scrollHeight||0,t.scrollWidth=e.scrollWidth||n.scrollWidth||0}return t}function getNodeInfo(e,t){const n={},{top:a,topWindowHeight:i}=getWindowOffset();if(t.node){const t=e.tagName.split("-")[1];t&&(n.node=e.querySelector(t))}if(t.id&&(n.id=e.id),t.dataset&&(n.dataset=getCustomDataset(e)),t.rect||t.size){const o=e.getBoundingClientRect();t.rect&&(n.left=o.left,n.right=o.right,n.top=o.top-a-i,n.bottom=o.bottom-a-i),t.size&&(n.width=o.width,n.height=o.height)}if(isArray$1(t.properties)&&t.properties.forEach((e=>{e=e.replace(/-([a-z])/g,(function(e,t){return t.toUpperCase()}))})),t.scrollOffset)if("UNI-SCROLL-VIEW"===e.tagName){const t=e.children[0].children[0];n.scrollLeft=t.scrollLeft,n.scrollTop=t.scrollTop,n.scrollHeight=t.scrollHeight,n.scrollWidth=t.scrollWidth}else n.scrollLeft=0,n.scrollTop=0,n.scrollHeight=0,n.scrollWidth=0;if(isArray$1(t.computedStyle)){const a=getComputedStyle(e);t.computedStyle.forEach((e=>{n[e]=a[e]}))}return t.context&&(n.contextInfo=getContextInfo(e)),n}function findElm(e,t){return e?e.$el:t.$el}function matches(e,t){return(e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(e){const t=this.parentElement.querySelectorAll(e);let n=t.length;for(;--n>=0&&t.item(n)!==this;);return n>-1}).call(e,t)}function getNodesInfo(e,t,n,a,i){const o=findElm(t,e),r=o.parentElement;if(!r)return a?null:[];const{nodeType:s}=o,l=3===s||8===s;if(a){const e=l?r.querySelector(n):matches(o,n)?o:o.querySelector(n);return e?getNodeInfo(e,i):null}{let e=[];const t=(l?r:o).querySelectorAll(n);return t&&t.length&&[].forEach.call(t,(t=>{e.push(getNodeInfo(t,i))})),!l&&matches(o,n)&&e.unshift(getNodeInfo(o,i)),e}}function requestComponentInfo(e,t,n){const a=[];t.forEach((({component:t,selector:n,single:i,fields:o})=>{null===t?a.push(getRootInfo(o)):a.push(getNodesInfo(e,t,n,i,o))})),n(a)}const CHOOSE_SIZE_TYPES=["original","compressed"],CHOOSE_SOURCE_TYPES=["album","camera"],HTTP_METHODS=["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"];function elemInArray(e,t){return e&&-1!==t.indexOf(e)?e:t[0]}function elemsInArray(e,t){return!isArray$1(e)||0===e.length||e.find((e=>-1===t.indexOf(e)))?t:e}function tryCatch(e){return function(){try{return e.apply(e,arguments)}catch(e2){console.error(e2)}}}let invokeCallbackId=1;const invokeCallbacks={};function addInvokeCallback(e,t,n,a=!1){return invokeCallbacks[e]={name:t,keepAlive:a,callback:n},e}function invokeCallback(e,t,n){if("number"==typeof e){const a=invokeCallbacks[e];if(a)return a.keepAlive||delete invokeCallbacks[e],a.callback(t,n)}return t}function findInvokeCallbackByName(e){for(const t in invokeCallbacks)if(invokeCallbacks[t].name===e)return!0;return!1}function removeKeepAliveApiCallback(e,t){for(const n in invokeCallbacks){const a=invokeCallbacks[n];a.callback===t&&a.name===e&&delete invokeCallbacks[n]}}function offKeepAliveApiCallback(e){UniServiceJSBridge$1.off("api."+e)}function onKeepAliveApiCallback(e){UniServiceJSBridge$1.on("api."+e,(t=>{for(const n in invokeCallbacks){const a=invokeCallbacks[n];a.name===e&&a.callback(t)}}))}function createKeepAliveApiCallback(e,t){return addInvokeCallback(invokeCallbackId++,e,t,!0)}const API_SUCCESS="success",API_FAIL="fail",API_COMPLETE="complete";function getApiCallbacks(e){const t={};for(const n in e){const a=e[n];isFunction(a)&&(t[n]=tryCatch(a),delete e[n])}return t}function normalizeErrMsg$1(e,t){return e&&-1!==e.indexOf(":fail")?t+e.substring(e.indexOf(":fail")):t+":ok"}function createAsyncApiCallback(e,t={},{beforeAll:n,beforeSuccess:a}={}){isPlainObject(t)||(t={});const{success:i,fail:o,complete:r}=getApiCallbacks(t),s=isFunction(i),l=isFunction(o),c=isFunction(r),d=invokeCallbackId++;return addInvokeCallback(d,e,(d=>{(d=d||{}).errMsg=normalizeErrMsg$1(d.errMsg,e),isFunction(n)&&n(d),d.errMsg===e+":ok"?(isFunction(a)&&a(d,t),s&&i(d)):l&&o(d),c&&r(d)})),d}const HOOK_SUCCESS="success",HOOK_FAIL="fail",HOOK_COMPLETE="complete",globalInterceptors={},scopedInterceptors={};function wrapperHook(e,t){return function(n){return e(n,t)||n}}function queue(e,t,n){let a=!1;for(let i=0;i<e.length;i++){const o=e[i];if(a)a=Promise.resolve(wrapperHook(o,n));else{const e=o(t,n);if(isPromise(e)&&(a=Promise.resolve(e)),!1===e)return{then(){},catch(){}}}}return a||{then:e=>e(t),catch(){}}}function wrapperOptions(e,t={}){return[HOOK_SUCCESS,HOOK_FAIL,HOOK_COMPLETE].forEach((n=>{const a=e[n];if(!isArray$1(a))return;const i=t[n];t[n]=function(e){queue(a,e,t).then((e=>isFunction(i)&&i(e)||e))}})),t}function wrapperReturnValue(e,t){const n=[];isArray$1(globalInterceptors.returnValue)&&n.push(...globalInterceptors.returnValue);const a=scopedInterceptors[e];return a&&isArray$1(a.returnValue)&&n.push(...a.returnValue),n.forEach((e=>{t=e(t)||t})),t}function getApiInterceptorHooks(e){const t=Object.create(null);Object.keys(globalInterceptors).forEach((e=>{"returnValue"!==e&&(t[e]=globalInterceptors[e].slice())}));const n=scopedInterceptors[e];return n&&Object.keys(n).forEach((e=>{"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))})),t}function invokeApi(e,t,n,a){const i=getApiInterceptorHooks(e);if(i&&Object.keys(i).length){if(isArray$1(i.invoke)){return queue(i.invoke,n).then((n=>t(wrapperOptions(getApiInterceptorHooks(e),n),...a)))}return t(wrapperOptions(i,n),...a)}return t(n,...a)}function hasCallback(e){return!(!isPlainObject(e)||![API_SUCCESS,API_FAIL,API_COMPLETE].find((t=>isFunction(e[t]))))}function handlePromise(e){return e}function promisify(e,t){return(n={},...a)=>hasCallback(n)?wrapperReturnValue(e,invokeApi(e,t,n,a)):wrapperReturnValue(e,handlePromise(new Promise(((i,o)=>{invokeApi(e,t,extend$1(n,{success:i,fail:o}),a)}))))}function formatApiArgs(e,t){const n=e[0];if(!t||!isPlainObject(t.formatArgs)&&isPlainObject(n))return;const a=t.formatArgs,i=Object.keys(a);for(let o=0;o<i.length;o++){const t=i[o],r=a[t];if(isFunction(r)){const a=r(e[0][t],n);if(isString(a))return a}else hasOwn$1(n,t)||(n[t]=r)}}function invokeSuccess(e,t,n){return invokeCallback(e,extend$1(n||{},{errMsg:t+":ok"}))}function invokeFail(e,t,n,a={}){const i=t+":fail"+(n?" "+n:"");return delete a.errCode,invokeCallback(e,extend$1({errMsg:i},a))}function beforeInvokeApi(e,t,n,a){if(a&&a.beforeInvoke){const e=a.beforeInvoke(t);if(isString(e))return e}const i=formatApiArgs(t,a);if(i)return i}function checkCallback(e){if(!isFunction(e))throw new Error('Invalid args: type check failed for args "callback". Expected Function')}function wrapperOnApi(e,t,n){return a=>{checkCallback(a);const i=beforeInvokeApi(e,[a],void 0,n);if(i)throw new Error(i);const o=!findInvokeCallbackByName(e);createKeepAliveApiCallback(e,a),o&&(onKeepAliveApiCallback(e),t())}}function wrapperOffApi(e,t,n){return a=>{checkCallback(a);const i=beforeInvokeApi(e,[a],void 0,n);if(i)throw new Error(i);removeKeepAliveApiCallback(e=e.replace("off","on"),a);findInvokeCallbackByName(e)||(offKeepAliveApiCallback(e),t())}}function normalizeErrMsg(e){return!e||isString(e)?e:e.stack?(console.error(e.message+LINEFEED+e.stack),e.message):e}function wrapperTaskApi(e,t,n,a){return i=>{const o=createAsyncApiCallback(e,i,a),r=beforeInvokeApi(e,[i],n,a);return r?invokeFail(o,e,r):t(i,{resolve:t=>invokeSuccess(o,e,t),reject:(t,n)=>invokeFail(o,e,normalizeErrMsg(t),n)})}}function wrapperSyncApi(e,t,n,a){return(...i)=>{const o=beforeInvokeApi(e,i,n,a);if(o)throw new Error(o);return t.apply(null,i)}}function wrapperAsyncApi(e,t,n,a){return wrapperTaskApi(e,t,n,a)}function defineOnApi(e,t,n){return wrapperOnApi(e,t,n)}function defineOffApi(e,t,n){return wrapperOffApi(e,t,n)}function defineTaskApi(e,t,n,a){return promisify(e,wrapperTaskApi(e,t,void 0,a))}function defineSyncApi(e,t,n,a){return wrapperSyncApi(e,t,void 0,a)}function defineAsyncApi(e,t,n,a){return promisify(e,wrapperAsyncApi(e,t,void 0,a))}function createUnsupportedMsg(e){return`method 'uni.${e}' not supported`}function createUnsupportedAsyncApi(e){return(t,{reject:n})=>n(createUnsupportedMsg(e))}const API_UPX2PX="upx2px",EPS=1e-4,BASE_DEVICE_WIDTH=750;let isIOS=!1,deviceWidth=0,deviceDPR=0,maxWidth=960,baseWidth=375,includeWidth=750;function checkDeviceWidth(){const{platform:e,pixelRatio:t,windowWidth:n}=getBaseSystemInfo();deviceWidth=n,deviceDPR=t,isIOS="ios"===e}function checkValue(e,t){const n=Number(e);return isNaN(n)?t:n}function checkMaxWidth(){const e=__uniConfig.globalStyle||{};maxWidth=checkValue(e.rpxCalcMaxDeviceWidth,960),baseWidth=checkValue(e.rpxCalcBaseDeviceWidth,375),includeWidth=checkValue(e.rpxCalcBaseDeviceWidth,750)}const upx2px=defineSyncApi(API_UPX2PX,((e,t)=>{if(0===deviceWidth&&(checkDeviceWidth(),checkMaxWidth()),0===(e=Number(e)))return 0;let n=t||deviceWidth;n=e===includeWidth||n<=maxWidth?n:baseWidth;let a=e/BASE_DEVICE_WIDTH*n;return a<0&&(a=-a),a=Math.floor(a+EPS),0===a&&(a=1!==deviceDPR&&isIOS?.5:1),e<0?-a:a})),API_ADD_INTERCEPTOR="addInterceptor";function mergeInterceptorHook(e,t){Object.keys(t).forEach((n=>{isFunction(t[n])&&(e[n]=mergeHook(e[n],t[n]))}))}function mergeHook(e,t){const n=t?e?e.concat(t):isArray$1(t)?t:[t]:e;return n?dedupeHooks(n):n}function dedupeHooks(e){const t=[];for(let n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}const addInterceptor=defineSyncApi(API_ADD_INTERCEPTOR,((e,t)=>{isString(e)&&isPlainObject(t)?mergeInterceptorHook(scopedInterceptors[e]||(scopedInterceptors[e]={}),t):isPlainObject(e)&&mergeInterceptorHook(globalInterceptors,e)})),API_ON="$on",API_OFF="$off",API_EMIT="$emit",emitter=new E$1$1,$on=defineSyncApi(API_ON,((e,t)=>(emitter.on(e,t),()=>emitter.off(e,t)))),$off=defineSyncApi(API_OFF,((e,t)=>{e?(isArray$1(e)||(e=[e]),e.forEach((e=>emitter.off(e,t)))):emitter.e={}})),$emit=defineSyncApi(API_EMIT,((e,...t)=>{emitter.emit(e,...t)})),API_CREATE_CANVAS_CONTEXT="createCanvasContext",RATES=[.5,.8,1,1.25,1.5,2];class VideoContext{constructor(e,t){this.id=e,this.pageId=t}play(){operateVideoPlayer(this.id,this.pageId,"play")}pause(){operateVideoPlayer(this.id,this.pageId,"pause")}stop(){operateVideoPlayer(this.id,this.pageId,"stop")}seek(e){operateVideoPlayer(this.id,this.pageId,"seek",{position:e})}sendDanmu(e){operateVideoPlayer(this.id,this.pageId,"sendDanmu",e)}playbackRate(e){~RATES.indexOf(e)||(e=1),operateVideoPlayer(this.id,this.pageId,"playbackRate",{rate:e})}requestFullScreen(e={}){operateVideoPlayer(this.id,this.pageId,"requestFullScreen",e)}exitFullScreen(){operateVideoPlayer(this.id,this.pageId,"exitFullScreen")}showStatusBar(){operateVideoPlayer(this.id,this.pageId,"showStatusBar")}hideStatusBar(){operateVideoPlayer(this.id,this.pageId,"hideStatusBar")}}const operateMapCallback=(e,t)=>{const n=t.errMsg||"";new RegExp("\\:\\s*fail").test(n)?e.fail&&e.fail(t):e.success&&e.success(t),e.complete&&e.complete(t)},operateMapWrap=(e,t,n,a)=>{operateMap(e,t,n,a,(e=>{a&&operateMapCallback(a,e)}))};class MapContext{constructor(e,t){this.id=e,this.pageId=t}getCenterLocation(e){operateMapWrap(this.id,this.pageId,"getCenterLocation",e)}moveToLocation(e){operateMapWrap(this.id,this.pageId,"moveToLocation",e)}getScale(e){operateMapWrap(this.id,this.pageId,"getScale",e)}getRegion(e){operateMapWrap(this.id,this.pageId,"getRegion",e)}includePoints(e){operateMapWrap(this.id,this.pageId,"includePoints",e)}translateMarker(e){operateMapWrap(this.id,this.pageId,"translateMarker",e)}$getAppMap(){}addCustomLayer(e){operateMapWrap(this.id,this.pageId,"addCustomLayer",e)}removeCustomLayer(e){operateMapWrap(this.id,this.pageId,"removeCustomLayer",e)}addGroundOverlay(e){operateMapWrap(this.id,this.pageId,"addGroundOverlay",e)}removeGroundOverlay(e){operateMapWrap(this.id,this.pageId,"removeGroundOverlay",e)}updateGroundOverlay(e){operateMapWrap(this.id,this.pageId,"updateGroundOverlay",e)}initMarkerCluster(e){operateMapWrap(this.id,this.pageId,"initMarkerCluster",e)}addMarkers(e){operateMapWrap(this.id,this.pageId,"addMarkers",e)}removeMarkers(e){operateMapWrap(this.id,this.pageId,"removeMarkers",e)}moveAlong(e){operateMapWrap(this.id,this.pageId,"moveAlong",e)}setLocMarkerIcon(e){operateMapWrap(this.id,this.pageId,"setLocMarkerIcon",e)}openMapApp(e){operateMapWrap(this.id,this.pageId,"openMapApp",e)}on(e,t){operateMapWrap(this.id,this.pageId,"on",{name:e,callback:t})}}function getInt(e,t){return function(n,a){n?a[e]=Math.round(n):void 0!==t&&(a[e]=t)}}const formatWidth=getInt("width"),formatHeight=getInt("height"),API_CANVAS_GET_IMAGE_DATA="canvasGetImageData",CanvasGetImageDataOptions={formatArgs:{x:getInt("x"),y:getInt("y"),width:formatWidth,height:formatHeight}},CanvasGetImageDataProtocol={canvasId:{type:String,required:!0},x:{type:Number,required:!0},y:{type:Number,required:!0},width:{type:Number,required:!0},height:{type:Number,required:!0}},API_CANVAS_PUT_IMAGE_DATA="canvasPutImageData",CanvasPutImageDataOptions=CanvasGetImageDataOptions,CanvasPutImageDataProtocol=extend$1({data:{type:Uint8ClampedArray,required:!0}},CanvasGetImageDataProtocol,{height:{type:Number}}),fileTypes$1={PNG:"png",JPG:"jpg",JPEG:"jpg"},API_CANVAS_TO_TEMP_FILE_PATH="canvasToTempFilePath",CanvasToTempFilePathOptions={formatArgs:{x:getInt("x",0),y:getInt("y",0),width:formatWidth,height:formatHeight,destWidth:getInt("destWidth"),destHeight:getInt("destHeight"),fileType(e,t){e=(e||"").toUpperCase();let n=fileTypes$1[e];n||(n=fileTypes$1.PNG),t.fileType=n},quality(e,t){t.quality=e&&e>0&&e<1?e:1}}},CanvasToTempFilePathProtocol={x:Number,y:Number,width:Number,height:Number,destWidth:Number,destHeight:Number,canvasId:{type:String,required:!0},fileType:String,quality:Number};function operateCanvas(e,t,n,a,i){UniServiceJSBridge$1.invokeViewMethod(`canvas.${e}`,{type:n,data:a},t,(e=>{i&&i(e)}))}var methods1=["scale","rotate","translate","setTransform","transform"],methods2=["drawImage","fillText","fill","stroke","fillRect","strokeRect","clearRect","strokeText"],methods3=["setFillStyle","setTextAlign","setStrokeStyle","setGlobalAlpha","setShadow","setFontSize","setLineCap","setLineJoin","setLineWidth","setMiterLimit","setTextBaseline","setLineDash"];function measureText(e,t){const n=document.createElement("canvas").getContext("2d");return n.font=t,n.measureText(e).width||0}const predefinedColor={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32",transparent:"#00000000"};function checkColor(e){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),a=t[1].slice(2,3);return e=parseInt(e+e,16),n=parseInt(n+n,16),a=parseInt(a+a,16),[e,n,a,255]}if(null!=(t=/^rgb\((.+)\)$/.exec(e)))return t[1].split(",").map((function(e){return Math.min(255,parseInt(e.trim()))})).concat(255);if(null!=(t=/^rgba\((.+)\)$/.exec(e)))return t[1].split(",").map((function(e,t){return 3===t?Math.floor(255*parseFloat(e.trim())):Math.min(255,parseInt(e.trim()))}));var n=e.toLowerCase();if(hasOwn$1(predefinedColor,n)){t=/^#([0-9|A-F|a-f]{6,8})$/.exec(predefinedColor[n]);const e=parseInt(t[1].slice(0,2),16),a=parseInt(t[1].slice(2,4),16),i=parseInt(t[1].slice(4,6),16);let o=parseInt(t[1].slice(6,8),16);return o=o>=0?o:255,[e,a,i,o]}return console.error("unsupported color:"+e),[0,0,0,255]}class CanvasGradient{constructor(e,t){this.type=e,this.data=t,this.colorStop=[]}addColorStop(e,t){this.colorStop.push([e,checkColor(t)])}}class Pattern{constructor(e,t){this.type="pattern",this.data=e,this.colorStop=t}}class TextMetrics{constructor(e){this.width=e}}class CanvasContext{constructor(e,t){this.id=e,this.pageId=t,this.actions=[],this.path=[],this.subpath=[],this.drawingState=[],this.state={lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}draw(e=!1,t){var n=[...this.actions];this.actions=[],this.path=[],operateCanvas(this.id,this.pageId,"actionsChanged",{actions:n,reserve:e},t)}createLinearGradient(e,t,n,a){return new CanvasGradient("linear",[e,t,n,a])}createCircularGradient(e,t,n){return new CanvasGradient("radial",[e,t,n])}createPattern(e,t){if(void 0===t)console.error("Failed to execute 'createPattern' on 'CanvasContext': 2 arguments required, but only 1 present.");else{if(!(["repeat","repeat-x","repeat-y","no-repeat"].indexOf(t)<0))return new Pattern(e,t);console.error("Failed to execute 'createPattern' on 'CanvasContext': The provided type ('"+t+"') is not one of 'repeat', 'no-repeat', 'repeat-x', or 'repeat-y'.")}}measureText(e){let t=0;return t=measureText(e,this.state.font),new TextMetrics(t)}save(){this.actions.push({method:"save",data:[]}),this.drawingState.push(this.state)}restore(){this.actions.push({method:"restore",data:[]}),this.state=this.drawingState.pop()||{lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}beginPath(){this.path=[],this.subpath=[],this.path.push({method:"beginPath",data:[]})}moveTo(e,t){this.path.push({method:"moveTo",data:[e,t]}),this.subpath=[[e,t]]}lineTo(e,t){0===this.path.length&&0===this.subpath.length?this.path.push({method:"moveTo",data:[e,t]}):this.path.push({method:"lineTo",data:[e,t]}),this.subpath.push([e,t])}quadraticCurveTo(e,t,n,a){this.path.push({method:"quadraticCurveTo",data:[e,t,n,a]}),this.subpath.push([n,a])}bezierCurveTo(e,t,n,a,i,o){this.path.push({method:"bezierCurveTo",data:[e,t,n,a,i,o]}),this.subpath.push([i,o])}arc(e,t,n,a,i,o=!1){this.path.push({method:"arc",data:[e,t,n,a,i,o]}),this.subpath.push([e,t])}rect(e,t,n,a){this.path.push({method:"rect",data:[e,t,n,a]}),this.subpath=[[e,t]]}arcTo(e,t,n,a,i){this.path.push({method:"arcTo",data:[e,t,n,a,i]}),this.subpath.push([n,a])}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 a=n[1].trim().split(/\s/),i=parseFloat(n[3]),o=n[7],r=[];a.forEach((function(e,n){["italic","oblique","normal"].indexOf(e)>-1?(r.push({method:"setFontStyle",data:[e]}),t.state.fontStyle=e):["bold","normal"].indexOf(e)>-1?(r.push({method:"setFontWeight",data:[e]}),t.state.fontWeight=e):0===n?(r.push({method:"setFontStyle",data:["normal"]}),t.state.fontStyle="normal"):1===n&&s()})),1===a.length&&s(),a=r.map((function(e){return e.data[0]})).join(" "),this.state.fontSize=i,this.state.fontFamily=o,this.actions.push({method:"setFont",data:[`${a} ${i}px ${o}`]})}else console.warn("Failed to set 'font' on 'CanvasContext': invalid format.");function s(){r.push({method:"setFontWeight",data:["normal"]}),t.state.fontWeight="normal"}}get font(){return this.state.font}set fillStyle(e){this.setFillStyle(e)}set strokeStyle(e){this.setStrokeStyle(e)}set globalAlpha(e){e=Math.floor(255*parseFloat(e)),this.actions.push({method:"setGlobalAlpha",data:[e]})}set textAlign(e){this.actions.push({method:"setTextAlign",data:[e]})}set lineCap(e){this.actions.push({method:"setLineCap",data:[e]})}set lineJoin(e){this.actions.push({method:"setLineJoin",data:[e]})}set lineWidth(e){this.actions.push({method:"setLineWidth",data:[e]})}set miterLimit(e){this.actions.push({method:"setMiterLimit",data:[e]})}set textBaseline(e){this.actions.push({method:"setTextBaseline",data:[e]})}}const initCanvasContextProperty=once((()=>{[...methods1,...methods2].forEach((function(e){CanvasContext.prototype[e]=function(e){switch(e){case"fill":case"stroke":return function(){this.actions.push({method:e+"Path",data:[...this.path]})};case"fillRect":return function(e,t,n,a){this.actions.push({method:"fillPath",data:[{method:"rect",data:[e,t,n,a]}]})};case"strokeRect":return function(e,t,n,a){this.actions.push({method:"strokePath",data:[{method:"rect",data:[e,t,n,a]}]})};case"fillText":case"strokeText":return function(t,n,a,i){var o=[t.toString(),n,a];"number"==typeof i&&o.push(i),this.actions.push({method:e,data:o})};case"drawImage":return function(t,n,a,i,o,r,s,l,c){var d;function u(e){return"number"==typeof e}void 0===c&&(r=n,s=a,l=i,c=o,n=void 0,a=void 0,i=void 0,o=void 0),d=u(n)&&u(a)&&u(i)&&u(o)?[t,r,s,l,c,n,a,i,o]:u(l)&&u(c)?[t,r,s,l,c]:[t,r,s],this.actions.push({method:e,data:d})};default:return function(...t){this.actions.push({method:e,data:t})}}}(e)})),methods3.forEach((function(e){CanvasContext.prototype[e]=function(e){switch(e){case"setFillStyle":case"setStrokeStyle":return function(t){"object"!=typeof t?this.actions.push({method:e,data:["normal",checkColor(t)]}):this.actions.push({method:e,data:[t.type,t.data,t.colorStop]})};case"setGlobalAlpha":return function(t){t=Math.floor(255*parseFloat(t)),this.actions.push({method:e,data:[t]})};case"setShadow":return function(t,n,a,i){i=checkColor(i),this.actions.push({method:e,data:[t,n,a,i]}),this.state.shadowBlur=a,this.state.shadowColor=i,this.state.shadowOffsetX=t,this.state.shadowOffsetY=n};case"setLineDash":return function(t,n){t=t||[0,0],n=n||0,this.actions.push({method:e,data:[t,n]}),this.state.lineDash=t};case"setFontSize":return function(t){this.state.font=this.state.font.replace(/\d+\.?\d*px/,t+"px"),this.state.fontSize=t,this.actions.push({method:e,data:[t]})};default:return function(...t){this.actions.push({method:e,data:t})}}}(e)}))})),createCanvasContext=defineSyncApi(API_CREATE_CANVAS_CONTEXT,((e,t)=>{if(initCanvasContextProperty(),t)return new CanvasContext(e,getPageIdByVm(t));const n=getPageIdByVm(getCurrentPageVm());if(n)return new CanvasContext(e,n);UniServiceJSBridge$1.emit(ON_ERROR,"createCanvasContext:fail")})),canvasGetImageData=defineAsyncApi(API_CANVAS_GET_IMAGE_DATA,(({canvasId:e,x:t,y:n,width:a,height:i},{resolve:o,reject:r})=>{const s=getPageIdByVm(getCurrentPageVm());s?operateCanvas(e,s,"getImageData",{x:t,y:n,width:a,height:i},(function(e){if(e.errMsg&&-1!==e.errMsg.indexOf("fail"))return void r("",e);let t=e.data;t&&t.length&&(e.data=new Uint8ClampedArray(t)),delete e.compressed,o(e)})):r()}),CanvasGetImageDataProtocol,CanvasGetImageDataOptions),canvasPutImageData=defineAsyncApi(API_CANVAS_PUT_IMAGE_DATA,(({canvasId:e,data:t,x:n,y:a,width:i,height:o},{resolve:r,reject:s})=>{var l=getPageIdByVm(getCurrentPageVm());if(!l)return void s();t=Array.prototype.slice.call(t),operateCanvas(e,l,"putImageData",{data:t,x:n,y:a,width:i,height:o,compressed:void 0},(e=>{e.errMsg&&-1!==e.errMsg.indexOf("fail")?s():r(e)}))}),CanvasPutImageDataProtocol,CanvasPutImageDataOptions),canvasToTempFilePath=defineAsyncApi(API_CANVAS_TO_TEMP_FILE_PATH,(({x:e=0,y:t=0,width:n,height:a,destWidth:i,destHeight:o,canvasId:r,fileType:s,quality:l},{resolve:c,reject:d})=>{var u=getPageIdByVm(getCurrentPageVm());if(!u)return void d();operateCanvas(r,u,"toTempFilePath",{x:e,y:t,width:n,height:a,destWidth:i,destHeight:o,fileType:s,quality:l,dirname:`${TEMP_PATH}/canvas`},(e=>{e.errMsg&&-1!==e.errMsg.indexOf("fail")?d("",e):c(e)}))}),CanvasToTempFilePathProtocol,CanvasToTempFilePathOptions);let index$w=0,optionsCache={};function operateEditor(e,t,n,a){const i={options:a},o=a&&("success"in a||"fail"in a||"complete"in a);if(o){const e=String(index$w++);i.callbackId=e,optionsCache[e]=a}UniServiceJSBridge$1.invokeViewMethod(`editor.${e}`,{type:n,data:i},t,(({callbackId:e,data:t})=>{o&&(callOptions(optionsCache[e],t),delete optionsCache[e])}))}class EditorContext{constructor(e,t){this.id=e,this.pageId=t}format(e,t){this._exec("format",{name:e,value:t})}insertDivider(){this._exec("insertDivider")}insertImage(e){this._exec("insertImage",e)}insertText(e){this._exec("insertText",e)}setContents(e){this._exec("setContents",e)}getContents(e){this._exec("getContents",e)}clear(e){this._exec("clear",e)}removeFormat(e){this._exec("removeFormat",e)}undo(e){this._exec("undo",e)}redo(e){this._exec("redo",e)}blur(e){this._exec("blur",e)}getSelectionText(e){this._exec("getSelectionText",e)}scrollIntoView(e){this._exec("scrollIntoView",e)}_exec(e,t){operateEditor(this.id,this.pageId,e,t)}}const ContextClasss={canvas:CanvasContext,map:MapContext,video:VideoContext,editor:EditorContext};function convertContext(e){if(e&&e.contextInfo){const{id:t,type:n,page:a}=e.contextInfo,i=ContextClasss[n];e.context=new i(t,a),delete e.contextInfo}}class NodesRef{constructor(e,t,n,a){this._selectorQuery=e,this._component=t,this._selector=n,this._single=a}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 SelectorQuery{constructor(e){this._component=void 0,this._page=e,this._queue=[],this._queueCb=[]}exec(e){return requestComponentInfo(this._page,this._queue,(t=>{const n=this._queueCb;t.forEach(((e,t)=>{isArray$1(e)?e.forEach(convertContext):convertContext(e);const a=n[t];isFunction(a)&&a.call(this,e)})),isFunction(e)&&e.call(this,t)})),this._nodesRef}in(e){return this._component=resolveComponentInstance(e),this}select(e){return this._nodesRef=new NodesRef(this,this._component,e,!0)}selectAll(e){return this._nodesRef=new NodesRef(this,this._component,e,!1)}selectViewport(){return this._nodesRef=new NodesRef(this,null,"",!0)}_push(e,t,n,a,i){this._queue.push({component:t,selector:e,single:n,fields:a}),this._queueCb.push(i)}}const createSelectorQuery=defineSyncApi("createSelectorQuery",(e=>((e=resolveComponentInstance(e))&&!getPageIdByVm(e)&&(e=null),new SelectorQuery(e||getCurrentPageVm())))),API_CREATE_ANIMATION="createAnimation",CreateAnimationOptions={formatArgs:{}},CreateAnimationProtocol={duration:Number,timingFunction:String,delay:Number,transformOrigin:String},defaultOption={duration:400,timingFunction:"linear",delay:0,transformOrigin:"50% 50% 0"};let MPAnimation$1=class{constructor(e){this.actions=[],this.currentTransform={},this.currentStepAnimates=[],this.option=extend$1({},defaultOption,e)}_getOption(e){const t={transition:extend$1({},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 initAnimationProperty=once((()=>{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=>{MPAnimation$1.prototype[n]=function(...a){return e.concat(t).includes(n)?this._pushAnimates("style",[this._converType(n),t.includes(n)?this._getValue(a[0]):a[0]]):this._pushAnimates(n,a),this}}))})),createAnimation$1=defineSyncApi(API_CREATE_ANIMATION,(e=>(initAnimationProperty(),new MPAnimation$1(e))),CreateAnimationProtocol,CreateAnimationOptions),API_GET_LOCALE="getLocale",getLocale=defineSyncApi(API_GET_LOCALE,(()=>{const e=getApp$1();return e&&e.$vm?e.$vm.$locale:useI18n().getLocale()})),appHooks={[ON_UNHANDLE_REJECTION]:[],[ON_PAGE_NOT_FOUND]:[],[ON_ERROR]:[],[ON_SHOW]:[],[ON_HIDE]:[]};function injectAppHooks(e){Object.keys(appHooks).forEach((t=>{appHooks[t].forEach((n=>{injectHook(t,n,e)}))}))}const API_GET_LAUNCH_OPTIONS_SYNC="getLaunchOptionsSync",getLaunchOptionsSync=defineSyncApi(API_GET_LAUNCH_OPTIONS_SYNC,(()=>getLaunchOptions()));let cid,cidErrMsg,enabled;const getPushCidCallbacks=[];function invokeGetPushCidCallbacks(e,t){getPushCidCallbacks.forEach((n=>{n(e,t)})),getPushCidCallbacks.length=0}const API_GET_PUSH_CLIENT_ID="getPushClientId",getPushClientId=defineAsyncApi(API_GET_PUSH_CLIENT_ID,((e,{resolve:t,reject:n})=>{Promise.resolve().then((()=>{void 0===enabled&&(enabled=!1,cid="",cidErrMsg="uniPush is not enabled"),getPushCidCallbacks.push(((e,a)=>{e?t({cid:e}):n(a)})),void 0!==cid&&invokeGetPushCidCallbacks(cid,cidErrMsg)}))})),onPushMessage=e=>{},offPushMessage=e=>{},API_MAKE_PHONE_CALL="makePhoneCall",API_ON_COMPASS="onCompass",API_OFF_COMPASS="offCompass",API_START_COMPASS="startCompass",API_STOP_COMPASS="stopCompass",API_GET_STORAGE_SYNC="getStorageSync",API_SET_STORAGE_SYNC="setStorageSync",API_REMOVE_STORAGE="removeStorage",API_HIDE_KEYBOARD="hideKeyboard",API_CHOOSE_LOCATION="chooseLocation",API_GET_LOCATION="getLocation",coordTypes$1=["wgs84","gcj02"],GetLocationOptions={formatArgs:{type(e,t){e=(e||"").toLowerCase(),-1===coordTypes$1.indexOf(e)?t.type=coordTypes$1[0]:t.type=e},altitude(e,t){t.altitude=e||!1}}},GetLocationProtocol={type:String,altitude:Boolean},API_OPEN_LOCATION="openLocation",checkProps=(e,t)=>{if(void 0===t)return`${e} should not be empty.`;if("number"!=typeof t){let e=typeof t;return e=e[0].toUpperCase()+e.substring(1),`Expected Number, got ${e} with value ${JSON.stringify(t)}.`}},OpenLocationOptions={formatArgs:{latitude(e,t){const n=checkProps("latitude",e);if(n)return n;t.latitude=e},longitude(e,t){const n=checkProps("longitude",e);if(n)return n;t.longitude=e},scale(e,t){e=Math.floor(e),t.scale=e>=5&&e<=18?e:18}}},OpenLocationProtocol={latitude:Number,longitude:Number,scale:Number,name:String,address:String},API_CHOOSE_IMAGE="chooseImage",ChooseImageOptions={formatArgs:{count(e,t){(!e||e<=0)&&(t.count=9)},sizeType(e,t){t.sizeType=elemsInArray(e,CHOOSE_SIZE_TYPES)},sourceType(e,t){t.sourceType=elemsInArray(e,CHOOSE_SOURCE_TYPES)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=["*"])}}},ChooseImageProtocol={count:Number,sizeType:[Array,String],sourceType:Array,extension:Array},API_CHOOSE_VIDEO="chooseVideo",ChooseVideoOptions={formatArgs:{sourceType(e,t){t.sourceType=elemsInArray(e,CHOOSE_SOURCE_TYPES)},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=["*"])}}},ChooseVideoProtocol={sourceType:Array,compressed:Boolean,maxDuration:Number,camera:String,extension:Array},API_CHOOSE_FILE="chooseFile",CHOOSE_MEDIA_TYPE=["all","image","video"],ChooseFileOptions={formatArgs:{count(e,t){(!e||e<=0)&&(t.count=100)},sourceType(e,t){t.sourceType=elemsInArray(e,CHOOSE_SOURCE_TYPES)},type(e,t){t.type=elemInArray(e,CHOOSE_MEDIA_TYPE)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=[""])}}},ChooseFileProtocol={count:Number,sourceType:Array,type:String,extension:Array},API_GET_IMAGE_INFO="getImageInfo",GetImageInfoOptions={formatArgs:{src(e,t){t.src=getRealPath(e)}}},GetImageInfoProtocol={src:{type:String,required:!0}},API_PREVIEW_IMAGE="previewImage",PreviewImageOptions={formatArgs:{urls(e,t){t.urls=e.map((e=>isString(e)&&e?getRealPath(e):""))},current(e,t){"number"==typeof e?t.current=e>0&&e<t.urls.length?e:0:isString(e)&&e&&(t.current=getRealPath(e))}}},PreviewImageProtocol={urls:{type:Array,required:!0},current:{type:[Number,String]}},API_REQUEST="request",dataType={JSON:"json"},RESPONSE_TYPE=["text","arraybuffer"],DEFAULT_RESPONSE_TYPE="text",encode=encodeURIComponent;function stringifyQuery(e,t){let n=e.split("#");const a=n[1]||"";n=n[0].split("?");let i=n[1]||"";e=n[0];const o=i.split("&").filter((e=>e)),r={};o.forEach((e=>{const t=e.split("=");r[t[0]]=t[1]}));for(const s in t)if(hasOwn$1(t,s)){let e=t[s];null==e?e="":isPlainObject(e)&&(e=JSON.stringify(e)),r[encode(s)]=encode(e)}return i=Object.keys(r).map((e=>`${e}=${r[e]}`)).join("&"),e+(i?"?"+i:"")+(a?"#"+a:"")}const RequestProtocol={method:String,data:[Object,String,Array,ArrayBuffer],url:{type:String,required:!0},header:Object,dataType:String,responseType:String,withCredentials:Boolean},RequestOptions={formatArgs:{method(e,t){t.method=elemInArray((e||"").toUpperCase(),HTTP_METHODS)},data(e,t){t.data=e||""},url(e,t){t.method===HTTP_METHODS[0]&&isPlainObject(t.data)&&Object.keys(t.data).length&&(t.url=stringifyQuery(e,t.data))},header(e,t){const n=t.header=e||{};t.method!==HTTP_METHODS[0]&&(Object.keys(n).find((e=>"content-type"===e.toLowerCase()))||(n["Content-Type"]="application/json"))},dataType(e,t){t.dataType=(e||dataType.JSON).toLowerCase()},responseType(e,t){t.responseType=(e||"").toLowerCase(),-1===RESPONSE_TYPE.indexOf(t.responseType)&&(t.responseType=DEFAULT_RESPONSE_TYPE)}}},API_UPLOAD_FILE="uploadFile",UploadFileOptions={formatArgs:{filePath(e,t){e&&(t.filePath=getRealPath(e))},header(e,t){t.header=e||{}},formData(e,t){t.formData=e||{}}}},UploadFileProtocol={url:{type:String,required:!0},files:Array,filePath:String,name:String,header:Object,formData:Object,timeout:Number};function encodeQueryString(e){if(!isString(e))return e;const t=e.indexOf("?");if(-1===t)return e;const n=e.slice(t+1).trim().replace(/^(\?|#|&)/,"");if(!n)return e;e=e.slice(0,t);const a=[];return n.split("&").forEach((e=>{const t=e.replace(/\+/g," ").split("="),n=t.shift(),i=t.length>0?t.join("="):"";a.push(n+"="+encodeURIComponent(i))})),a.length?e+"?"+a.join("&"):e}const ANIMATION_IN$1=["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"],ANIMATION_OUT$1=["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"],BaseRouteProtocol={url:{type:String,required:!0}},API_NAVIGATE_TO="navigateTo",API_REDIRECT_TO="redirectTo",API_RE_LAUNCH="reLaunch",API_SWITCH_TAB="switchTab",API_NAVIGATE_BACK="navigateBack",API_PRELOAD_PAGE="preloadPage",API_UN_PRELOAD_PAGE="unPreloadPage",NavigateToProtocol=extend$1({},BaseRouteProtocol,createAnimationProtocol(ANIMATION_IN$1)),NavigateBackProtocol=extend$1({delta:{type:Number}},createAnimationProtocol(ANIMATION_OUT$1)),RedirectToProtocol=BaseRouteProtocol,ReLaunchProtocol=BaseRouteProtocol,SwitchTabProtocol=BaseRouteProtocol,NavigateToOptions=createRouteOptions(API_NAVIGATE_TO),RedirectToOptions=createRouteOptions(API_REDIRECT_TO),ReLaunchOptions=createRouteOptions(API_RE_LAUNCH),SwitchTabOptions=createRouteOptions(API_SWITCH_TAB),NavigateBackOptions={formatArgs:{delta(e,t){e=parseInt(e+"")||1,t.delta=Math.min(getCurrentPages$1().length-1,e)}}};function createAnimationProtocol(e){return{animationType:{type:String,validator(t){if(t&&-1===e.indexOf(t))return"`"+t+"` is not supported for `animationType` (supported values are: `"+e.join("`|`")+"`)"}},animationDuration:{type:Number}}}let navigatorLock;function beforeRoute(){navigatorLock=""}function createRouteOptions(e){return{formatArgs:{url:createNormalizeUrl(e)},beforeAll:beforeRoute}}function createNormalizeUrl(e){return function(t,n){if(!t)return'Missing required args: "url"';const a=(t=normalizeRoute(t)).split("?")[0],i=getRouteOptions(a,!0);if(!i)return"page `"+t+"` is not found";if(e===API_NAVIGATE_TO||e===API_REDIRECT_TO){if(i.meta.isTabBar)return`can not ${e} a tabbar page`}else if(e===API_SWITCH_TAB&&!i.meta.isTabBar)return"can not switch to no-tabBar page";if(e!==API_SWITCH_TAB&&e!==API_PRELOAD_PAGE||!i.meta.isTabBar||"appLaunch"===n.openType||(t=a),i.meta.isEntry&&(t=t.replace(i.alias,"/")),n.url=encodeQueryString(t),e!==API_UN_PRELOAD_PAGE)if(e!==API_PRELOAD_PAGE){if(navigatorLock===t&&"appLaunch"!==n.openType)return`${navigatorLock} locked`;__uniConfig.ready&&(navigatorLock=t)}else if(i.meta.isTabBar){const e=getCurrentPages$1(),t=i.path.slice(1);if(e.find((e=>e.route===t)))return"tabBar page `"+t+"` already exists"}}}const API_HIDE_LOADING="hideLoading",API_SHOW_ACTION_SHEET="showActionSheet",ShowActionSheetProtocol={itemList:{type:Array,required:!0},title:String,itemColor:String,popover:Object},ShowActionSheetOptions={formatArgs:{itemColor:"#000"}},API_SHOW_LOADING="showLoading",ShowLoadingProtocol={title:String,mask:Boolean},ShowLoadingOptions={formatArgs:{title:"",mask:!1}},API_SHOW_MODAL="showModal",ShowModalProtocol={title:String,content:String,showCancel:Boolean,cancelText:String,cancelColor:String,confirmText:String,confirmColor:String},ShowModalOptions={beforeInvoke(){initI18nShowModalMsgsOnce()},formatArgs:{title:"",content:"",placeholderText:"",showCancel:!0,editable:!1,cancelText(e,t){if(!hasOwn$1(t,"cancelText")){const{t:e}=useI18n();t.cancelText=e("uni.showModal.cancel")}},cancelColor:"#000",confirmText(e,t){if(!hasOwn$1(t,"confirmText")){const{t:e}=useI18n();t.confirmText=e("uni.showModal.confirm")}},confirmColor:PRIMARY_COLOR}},API_SHOW_TOAST="showToast",SHOW_TOAST_ICON=["success","loading","none","error"],ShowToastProtocol={title:String,icon:String,image:String,duration:Number,mask:Boolean},ShowToastOptions={formatArgs:{title:"",icon(e,t){t.icon=elemInArray(e,SHOW_TOAST_ICON)},image(e,t){t.image=e?getRealPath(e):""},duration:1500,mask:!1}},API_START_PULL_DOWN_REFRESH="startPullDownRefresh",API_STOP_PULL_DOWN_REFRESH="stopPullDownRefresh",IndexOptions={beforeInvoke(){const e=getCurrentPageMeta();if(e&&!e.isTabBar)return"not TabBar page"},formatArgs:{index(e){if(!__uniConfig.tabBar.list[e])return"tabbar item not found"}}},API_SET_TAB_BAR_ITEM="setTabBarItem";IndexOptions.beforeInvoke,IndexOptions.formatArgs;const API_SET_TAB_BAR_STYLE="setTabBarStyle",GRADIENT_RE=/^(linear|radial)-gradient\(.+?\);?$/;IndexOptions.beforeInvoke;const API_HIDE_TAB_BAR="hideTabBar",API_SHOW_TAB_BAR="showTabBar",API_HIDE_TAB_BAR_RED_DOT="hideTabBarRedDot",API_SHOW_TAB_BAR_RED_DOT="showTabBarRedDot",API_REMOVE_TAB_BAR_BADGE="removeTabBarBadge",API_SET_TAB_BAR_BADGE="setTabBarBadge";function saveImage(e,t,n){n(null,e)}IndexOptions.beforeInvoke,IndexOptions.formatArgs;const TEMP_PATH="",files={};function urlToFile(e,t){const n=files[e];return n?Promise.resolve(n):/^data:[a-z-]+\/[a-z-]+;base64,/.test(e)?Promise.resolve(base64ToFile(e)):t?Promise.reject(new Error("not find")):new Promise(((t,n)=>{const a=new XMLHttpRequest;a.open("GET",e,!0),a.responseType="blob",a.onload=function(){t(this.response)},a.onerror=n,a.send()}))}function base64ToFile(e){const t=e.split(","),n=t[0].match(/:(.*?);/),a=n?n[1]:"",i=atob(t[1]);let o=i.length;const r=new Uint8Array(o);for(;o--;)r[o]=i.charCodeAt(o);return blobToFile(r,a)}function getExtname(e){const t=e.split("/")[1];return t?`.${t}`:""}function blobToFile(e,t){let n;if(e instanceof File)n=e;else{t=t||e.type||"";const i=`${Date.now()}${getExtname(t)}`;try{n=new File([e],i,{type:t})}catch(a){n=e=e instanceof Blob?e:new Blob([e],{type:t}),n.name=n.name||i}}return n}function fileToUrl(e){for(const n in files)if(hasOwn$1(files,n)){if(files[n]===e)return n}var t=(window.URL||window.webkitURL).createObjectURL(e);return files[t]=e,t}function getSameOriginUrl(e){const t=document.createElement("a");return t.href=e,t.origin===location.origin?Promise.resolve(e):urlToFile(e).then(fileToUrl)}function revokeObjectURL(e){(window.URL||window.webkitURL).revokeObjectURL(e),delete files[e]}const launchOptions=createLaunchOptions(),enterOptions=createLaunchOptions();function getEnterOptions(){return extend$1({},enterOptions)}function getLaunchOptions(){return extend$1({},launchOptions)}function initLaunchOptions({path:e,query:t}){return extend$1(launchOptions,{path:e,query:t}),extend$1(enterOptions,launchOptions),extend$1({},launchOptions)}const ResizeSensor=defineBuiltInComponent({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,{emit:t}){const n=ref(null),a=useResizeSensorReset(n),i=useResizeSensorUpdate(n,t,a);return useResizeSensorLifecycle(n,e,i,a),()=>createVNode("uni-resize-sensor",{ref:n,onAnimationstartOnce:i},[createVNode("div",{onScroll:i},[createVNode("div",null,null)],40,["onScroll"]),createVNode("div",{onScroll:i},[createVNode("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});function useResizeSensorUpdate(e,t,n){const a=reactive({width:-1,height:-1});return watch((()=>extend$1({},a)),(e=>t("resize",e))),()=>{const t=e.value;a.width=t.offsetWidth,a.height=t.offsetHeight,n()}}function useResizeSensorReset(e){return()=>{const{firstElementChild:t,lastElementChild:n}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,n.scrollLeft=1e5,n.scrollTop=1e5}}function useResizeSensorLifecycle(e,t,n,a){onActivated(a),onMounted((()=>{t.initial&&nextTick(n);const i=e.value;i.offsetParent!==i.parentElement&&(i.parentElement.style.position="relative"),"AnimationEvent"in window||a()}))}const pixelRatio=function(){if(navigator.userAgent.includes("jsdom"))return 1;const e=document.createElement("canvas");e.height=e.width=0;const t=e.getContext("2d"),n=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/n}();function wrapper(e,t=!0){const n=t?pixelRatio:1;e.width=e.offsetWidth*n,e.height=e.offsetHeight*n,e.getContext("2d").__hidpi__=t}let isHidpi=!1;function initHidpi(){if(isHidpi)return;isHidpi=!0;const e={fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all",transform:[4,5],setTransform:[4,5]},t=CanvasRenderingContext2D.prototype;t.drawImageByCanvas=function(e){return function(t,n,a,i,o,r,s,l,c,d){if(!this.__hidpi__)return e.apply(this,arguments);n*=pixelRatio,a*=pixelRatio,i*=pixelRatio,o*=pixelRatio,r*=pixelRatio,s*=pixelRatio,l=d?l*pixelRatio:l,c=d?c*pixelRatio:c,e.call(this,t,n,a,i,o,r,s,l,c)}}(t.drawImage),1!==pixelRatio&&(!function(e,t){for(const n in e)hasOwn$1(e,n)&&t(e[n],n)}(e,(function(e,n){t[n]=function(t){return function(){if(!this.__hidpi__)return t.apply(this,arguments);let n=Array.prototype.slice.call(arguments);if("all"===e)n=n.map((function(e){return e*pixelRatio}));else if(Array.isArray(e))for(let t=0;t<e.length;t++)n[e[t]]*=pixelRatio;return t.apply(this,n)}}(t[n])})),t.stroke=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);this.lineWidth*=pixelRatio,e.apply(this,arguments),this.lineWidth/=pixelRatio}}(t.stroke),t.fillText=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);const t=Array.prototype.slice.call(arguments);t[1]*=pixelRatio,t[2]*=pixelRatio,t[3]&&"number"==typeof t[3]&&(t[3]*=pixelRatio);var n=this.font;this.font=n.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,(function(e,t,n){return t*pixelRatio+n})),e.apply(this,t),this.font=n}}(t.fillText),t.strokeText=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);var t=Array.prototype.slice.call(arguments);t[1]*=pixelRatio,t[2]*=pixelRatio,t[3]&&"number"==typeof t[3]&&(t[3]*=pixelRatio);var n=this.font;this.font=n.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,(function(e,t,n){return t*pixelRatio+n})),e.apply(this,t),this.font=n}}(t.strokeText),t.drawImage=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);this.scale(pixelRatio,pixelRatio),e.apply(this,arguments),this.scale(1/pixelRatio,1/pixelRatio)}}(t.drawImage))}const initHidpiOnce=once((()=>initHidpi()));function $getRealPath(e){return e?getRealPath(e):e}function resolveColor(e){return(e=e.slice(0))[3]=e[3]/255,"rgba("+e.join(",")+")"}function processTouches(e,t){Array.from(t).forEach((t=>{t.x=t.clientX-e.left,t.y=t.clientY-e.top}))}let tempCanvas;function getTempCanvas(e=0,t=0){return tempCanvas||(tempCanvas=document.createElement("canvas")),tempCanvas.width=e,tempCanvas.height=t,tempCanvas}const props$x={canvasId:{type:String,default:""},disableScroll:{type:[Boolean,String],default:!1},hidpi:{type:Boolean,default:!0}},index$v=defineBuiltInComponent({inheritAttrs:!1,name:"Canvas",compatConfig:{MODE:3},props:props$x,computed:{id(){return this.canvasId}},setup(e,{emit:t,slots:n}){initHidpiOnce();const a=ref(null),i=ref(null),o=ref(null),r=ref(!1),s=useNativeEvent(t),{$attrs:l,$excludeAttrs:c,$listeners:d}=useAttrs({excludeListeners:!0}),{_listeners:u}=useListeners(e,d,s),{_handleSubscribe:m,_resize:p}=useMethods(e,i,r);return useSubscribe(m,useContextInfo(e.canvasId),!0),onMounted((()=>{p()})),()=>{const{canvasId:t,disableScroll:r}=e;return createVNode("uni-canvas",mergeProps({ref:a,"canvas-id":t,"disable-scroll":r},l.value,c.value,u.value),[createVNode("canvas",{ref:i,class:"uni-canvas-canvas",width:"300",height:"150"},null,512),createVNode("div",{style:"position: absolute;top: 0;left: 0;width: 100%;height: 100%;overflow: hidden;"},[n.default&&n.default()]),createVNode(ResizeSensor,{ref:o,onResize:p},null,8,["onResize"])],16,["canvas-id","disable-scroll"])}}});function useListeners(e,t,n){return{_listeners:computed((()=>{let a=t.value,i=extend$1({},(()=>{let e={};for(const t in a)if(hasOwn$1(a,t)){const n=a[t];e[t]=n}return e})());return["onTouchstart","onTouchmove","onTouchend"].forEach((t=>{let a=[];i[t]&&a.push(withWebEvent((e=>{const a=e.currentTarget.getBoundingClientRect();processTouches(a,e.touches),processTouches(a,e.changedTouches),n(t.replace("on","").toLocaleLowerCase(),e)}))),e.disableScroll&&"onTouchmove"===t&&a.push(onEventPrevent),i[t]=a})),i}))}}function useMethods(e,t,n){let a=[],i={};const o=computed((()=>e.hidpi?pixelRatio:1));function r({actions:e,reserve:o},r){if(!e)return;if(n.value)return void a.push([e,o]);let l=t.value,c=l.getContext("2d");o||(c.fillStyle="#000000",c.strokeStyle="#000000",c.shadowColor="#000000",c.shadowBlur=0,c.shadowOffsetX=0,c.shadowOffsetY=0,c.setTransform(1,0,0,1,0,0),c.clearRect(0,0,l.width,l.height)),function(e){e.forEach((function(e){let t=e.method,n=e.data,a="";function o(){const e=i[a]=new Image;e.onload=function(){e.ready=!0},getSameOriginUrl(a).then((t=>{e.src=t})).catch((()=>{e.src=a}))}"drawImage"===t?(a=n[0],a=$getRealPath(a),n[0]=a):"setFillStyle"===t&&"pattern"===n[0]&&(a=n[1],a=$getRealPath(a),n[1]=a),a&&!i[a]&&o()}))}(e);for(let t=0;t<e.length;t++){const n=e[t];let a=n.method;const o=n.data,l=o[0];if(/^set/.test(a)&&"setTransform"!==a){const n=a[3].toLowerCase()+a.slice(4);let i;if("fillStyle"===n||"strokeStyle"===n){if("normal"===l)i=resolveColor(o[1]);else if("linear"===l){const e=c.createLinearGradient(...o[1]);o[2].forEach((function(t){const n=t[0],a=resolveColor(t[1]);e.addColorStop(n,a)})),i=e}else if("radial"===l){let e=o[1];const t=e[0],n=e[1],a=e[2],r=c.createRadialGradient(t,n,0,t,n,a);o[2].forEach((function(e){const t=e[0],n=resolveColor(e[1]);r.addColorStop(t,n)})),i=r}else if("pattern"===l){if(!s(o[1],e.slice(t+1),r,(function(e){e&&(c[n]=c.createPattern(e,o[2]))})))break;continue}c[n]=i}else if("globalAlpha"===n)c[n]=Number(l)/255;else if("shadow"===n){let e=["shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor"];o.forEach((function(t,n){c[e[n]]="shadowColor"===e[n]?resolveColor(t):t}))}else if("fontSize"===n){const e=c.__font__||c.font;c.__font__=c.font=e.replace(/\d+\.?\d*px/,l+"px")}else"lineDash"===n?(c.setLineDash(l),c.lineDashOffset=o[1]||0):"textBaseline"===n?("normal"===l&&(o[0]="alphabetic"),c[n]=l):"font"===n?c.__font__=c.font=l:c[n]=l}else if("fillPath"===a||"strokePath"===a)a=a.replace(/Path/,""),c.beginPath(),o.forEach((function(e){c[e.method].apply(c,e.data)})),c[a]();else if("fillText"===a)c.fillText.apply(c,o);else if("drawImage"===a){if("break"===function(){let n=[...o],a=n[0],l=n.slice(1);if(i=i||{},!s(a,e.slice(t+1),r,(function(e){e&&c.drawImage.apply(c,[e].concat([...l.slice(4,8)],[...l.slice(0,4)]))})))return"break"}())break}else"clip"===a?(o.forEach((function(e){c[e.method].apply(c,e.data)})),c.clip()):c[a].apply(c,o)}n.value||r({errMsg:"drawCanvas:ok"})}function s(e,t,o,s){let l=i[e];return l.ready?(s(l),!0):(a.unshift([t,!0]),n.value=!0,l.onload=function(){l.ready=!0,s(l),n.value=!1;let e=a.slice(0);a=[];for(let t=e.shift();t;)r({actions:t[0],reserve:t[1]},o),t=e.shift()},!1)}function l({x:e=0,y:n=0,width:a,height:i,destWidth:r,destHeight:s,hidpi:l=!0,dataType:c,quality:d=1,type:u="png"},m){const p=t.value;let h;const f=p.offsetWidth-e;a=a?Math.min(a,f):f;const g=p.offsetHeight-n;i=i?Math.min(i,g):g,l?(r=a,s=i):r||s?r?s||(s=Math.round(i/a*r)):r=Math.round(a/i*s):(r=Math.round(a*o.value),s=Math.round(i*o.value));const y=getTempCanvas(r,s),v=y.getContext("2d");let _;"jpeg"!==u&&"jpg"!==u||(u="jpeg",v.fillStyle="#fff",v.fillRect(0,0,r,s)),v.__hidpi__=!0,v.drawImageByCanvas(p,e,n,a,i,0,0,r,s,!1);try{let e;if("base64"===c)h=y.toDataURL(`image/${u}`,d);else{const e=v.getImageData(0,0,r,s);h=Array.prototype.slice.call(e.data)}_={data:h,compressed:e,width:r,height:s}}catch(b){_={errMsg:`canvasGetImageData:fail ${b}`}}if(y.height=y.width=0,v.__hidpi__=!1,!m)return _;m(_)}const c={actionsChanged:r,getImageData:l,putImageData:function({data:e,x:n,y:a,width:i,height:o,compressed:r},s){try{0,o||(o=Math.round(e.length/4/i));const r=getTempCanvas(i,o);r.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(e),i,o),0,0),t.value.getContext("2d").drawImage(r,n,a,i,o),r.height=r.width=0}catch(l){return void s({errMsg:"canvasPutImageData:fail"})}s({errMsg:"canvasPutImageData:ok"})},toTempFilePath:function({x:e=0,y:t=0,width:n,height:a,destWidth:i,destHeight:o,fileType:r,quality:s,dirname:c},d){const u=l({x:e,y:t,width:n,height:a,destWidth:i,destHeight:o,hidpi:!1,dataType:"base64",type:r,quality:s});u.data&&u.data.length?saveImage(u.data,c,((e,t)=>{let n="toTempFilePath:"+(e?"fail":"ok");e&&(n+=` ${e.message}`),d({errMsg:n,tempFilePath:t})})):d({errMsg:u.errMsg.replace("canvasPutImageData","toTempFilePath")})}};return extend$1(c,{_resize:function(n){let a=t.value;if(!n||a.width!==Math.floor(n.width*o.value)||a.height!==Math.floor(n.height*o.value))if(a.width>0&&a.height>0){let t=a.getContext("2d"),n=t.getImageData(0,0,a.width,a.height);wrapper(a,e.hidpi),t.putImageData(n,0,0)}else wrapper(a,e.hidpi)},_handleSubscribe:function(e,t,n){let a=c[e];0!==e.indexOf("_")&&isFunction(a)&&a(t,n)}})}const uniCheckGroupKey=PolySymbol("ucg"),props$w={name:{type:String,default:""}},index$u=defineBuiltInComponent({name:"CheckboxGroup",props:props$w,emits:["change"],setup(e,{emit:t,slots:n}){const a=ref(null);return useProvideCheckGroup(e,useCustomEvent(a,t)),()=>createVNode("uni-checkbox-group",{ref:a},[n.default&&n.default()],512)}});function useProvideCheckGroup(e,t){const n=[],a=()=>n.reduce(((e,t)=>(t.value.checkboxChecked&&e.push(t.value.value),e)),new Array);provide(uniCheckGroupKey,{addField(e){n.push(e)},removeField(e){n.splice(n.indexOf(e),1)},checkboxChange(e){t("change",e,{value:a()})}});const i=inject(uniFormKey,!1);return i&&i.addField({submit:()=>{let t=["",null];return""!==e.name&&(t[0]=e.name,t[1]=a()),t}}),a}const props$v={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:""}},index$t=defineBuiltInComponent({name:"Checkbox",props:props$v,setup(e,{slots:t}){const n=ref(null),a=ref(e.checked),i=computed((()=>"true"===a.value||!0===a.value)),o=ref(e.value);const r=computed((()=>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)));watch([()=>e.checked,()=>e.value],(([e,t])=>{a.value=e,o.value=t}));const{uniCheckGroup:s,uniLabel:l}=useCheckboxInject(a,o,(()=>{a.value=!1})),c=t=>{e.disabled||(a.value=!a.value,s&&s.checkboxChange(t),t.stopPropagation())};return l&&(l.addHandler(c),onBeforeUnmount((()=>{l.removeHandler(c)}))),useListeners$1(e,{"label-click":c}),()=>{const i=useBooleanAttr(e,"disabled");let o;return o=a.value,createVNode("uni-checkbox",mergeProps(i,{id:e.id,onClick:c,ref:n}),[createVNode("div",{class:"uni-checkbox-wrapper",style:{"--HOVER-BD-COLOR":e.activeBorderColor}},[createVNode("div",{class:["uni-checkbox-input",{"uni-checkbox-input-disabled":e.disabled}],style:r.value},[o?createSvgIconVNode(ICON_PATH_SUCCESS_NO_CIRCLE,e.disabled?"#ADADAD":e.iconColor||e.color,22):""],6),t.default&&t.default()],4)],16,["id","onClick"])}}});function useCheckboxInject(e,t,n){const a=computed((()=>({checkboxChecked:Boolean(e.value),value:t.value}))),i={reset:n},o=inject(uniCheckGroupKey,!1);o&&o.addField(a);const r=inject(uniFormKey,!1);r&&r.addField(i);const s=inject(uniLabelKey,!1);return onBeforeUnmount((()=>{o&&o.removeField(a),r&&r.removeField(i)})),{uniCheckGroup:o,uniForm:r,uniLabel:s}}let resetTimer;function iosHideKeyboard(){}const props$u={cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}},emit$1=["keyboardheightchange"];function useKeyboard$1(e,t,n){function a(e){const t=computed((()=>0===String(navigator.vendor).indexOf("Apple")));e.addEventListener("focus",(()=>{clearTimeout(resetTimer),document.addEventListener("click",iosHideKeyboard,!1)}));e.addEventListener("blur",(()=>{t.value&&e.blur(),document.removeEventListener("click",iosHideKeyboard,!1),t.value&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)}))}watch((()=>t.value),(e=>e&&a(e)))}const props$s={src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!1}},FIX_MODES={widthFix:["offsetWidth","height",(e,t)=>e/t],heightFix:["offsetHeight","width",(e,t)=>e*t]},IMAGE_MODES={aspectFit:["center center","contain"],aspectFill:["center center","cover"],widthFix:[,"100% 100%"],heightFix:[,"100% 100%"],top:["center top"],bottom:["center bottom"],center:["center center"],left:["left center"],right:["right center"],"top left":["left top"],"top right":["right top"],"bottom left":["left bottom"],"bottom right":["right bottom"]},index$q=defineBuiltInComponent({name:"Image",props:props$s,setup(e,{emit:t}){const n=ref(null),a=useImageState(n,e),i=useCustomEvent(n,t),{fixSize:o}=useImageSize(n,e,a);return useImageLoader(a,e,n,o,i),()=>createVNode("uni-image",{ref:n},[createVNode("div",{style:a.modeStyle},null,4),FIX_MODES[e.mode]?createVNode(ResizeSensor,{onResize:o},null,8,["onResize"]):createVNode("span",null,null)],512)}});function useImageState(e,t){const n=ref(""),a=computed((()=>{let e="auto",a="";const i=IMAGE_MODES[t.mode];return i?(i[0]&&(a=i[0]),i[1]&&(e=i[1])):(a="0% 0%",e="100% 100%"),`background-image:${n.value?'url("'+n.value+'")':"none"};background-position:${a};background-size:${e};`})),i=reactive({rootEl:e,src:computed((()=>t.src?getRealPath(t.src):"")),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:a,imgSrc:n});return onMounted((()=>{const t=e.value.style;i.origWidth=Number(t.width)||0,i.origHeight=Number(t.height)||0})),i}function useImageLoader(e,t,n,a,i){let o,r;const s=(t=0,n=0,a="")=>{e.origWidth=t,e.origHeight=n,e.imgSrc=a},l=l=>{if(!l)return c(),void s();o=o||new Image,o.onload=e=>{const{width:d,height:u}=o;s(d,u,l),a(),o.draggable=t.draggable,r&&r.remove(),r=o,n.value.appendChild(o),c(),i("load",e,{width:d,height:u})},o.onerror=t=>{s(),c(),i("error",t,{errMsg:`GET ${e.src} 404 (Not Found)`})},o.src=l},c=()=>{o&&(o.onload=null,o.onerror=null,o=null)};watch((()=>e.src),(e=>l(e))),watch((()=>e.imgSrc),(e=>{!e&&r&&(r.remove(),r=null)})),onMounted((()=>l(e.src))),onBeforeUnmount((()=>c()))}const isChrome="Google Inc."===navigator.vendor;function fixNumber(e){return isChrome&&e>10&&(e=2*Math.round(e/2)),e}function useImageSize(e,t,n){const a=()=>{const{mode:a}=t,i=FIX_MODES[a];if(!i)return;const{origWidth:o,origHeight:r}=n,s=o&&r?o/r:0;if(!s)return;const l=e.value,c=l[i[0]];c&&(l.style[i[1]]=fixNumber(i[2](c,s))+"px")},i=()=>{const{style:t}=e.value,{origStyle:{width:a,height:i}}=n;t.width=a,t.height=i};return watch((()=>t.mode),((e,t)=>{FIX_MODES[t]&&i(),FIX_MODES[e]&&a()})),{fixSize:a,resetSize:i}}function throttle(e,t){let n,a,i=0;const o=function(...o){const r=Date.now();clearTimeout(n),a=()=>{a=null,i=r,e.apply(this,o)},r-i<t?n=setTimeout(a,t-(r-i)):a()};return o.cancel=function(){clearTimeout(n),a=null},o.flush=function(){clearTimeout(n),a&&a()},o}const passiveOptions$1=passive(!0),states=[];let userInteract=0,inited;const setUserAction=e=>states.forEach((t=>t.userAction=e));function addInteractListener(e={userAction:!1}){if(!inited){["touchstart","touchmove","touchend","mousedown","mouseup"].forEach((e=>{document.addEventListener(e,(function(){!userInteract&&setUserAction(!0),userInteract++,setTimeout((()=>{!--userInteract&&setUserAction(!1)}),0)}),passiveOptions$1)})),inited=!0}states.push(e)}function removeInteractListener(e){const t=states.indexOf(e);t>=0&&states.splice(t,1)}const getInteractStatus=()=>!!userInteract;function useUserAction(){const e=reactive({userAction:!1});return onMounted((()=>{addInteractListener(e)})),onBeforeUnmount((()=>{removeInteractListener(e)})),{state:e}}function useScopedAttrs(){const e=reactive({attrs:{}});return onMounted((()=>{let t=getCurrentInstance();for(;t;){const n=t.type.__scopeId;n&&(e.attrs[n]=""),t=t.proxy&&"page"===t.proxy.$mpType?null:t.parent}})),{state:e}}function useFormField(e,t){const n=inject(uniFormKey,!1);if(!n)return;const a=getCurrentInstance(),i={submit(){const n=a.proxy;return[n[e],isString(t)?n[t]:t.value]},reset(){isString(t)?a.proxy[t]="":t.value=""}};n.addField(i),onBeforeUnmount((()=>{n.removeField(i)}))}function getSelectedTextRange(e,t){const n=document.activeElement;if(!n)return t({});const a={};["input","textarea"].includes(n.tagName.toLowerCase())&&(a.start=n.selectionStart,a.end=n.selectionEnd),t(a)}const UniViewJSBridgeSubscribe=function(){registerViewMethod(getCurrentPageId(),"getSelectedTextRange",getSelectedTextRange)};function getValueString(e,t,n){"number"===t&&isNaN(Number(e))&&(e="");const a=null===e?"":String(e);return null==n?a:a.slice(0,n)}const INPUT_MODES=["none","text","decimal","numeric","tel","search","email","url"],props$r=extend$1({},{name:{type:String,default:""},modelValue:{type:[String,Number],default:""},value:{type:[String,Number],default:""},disabled:{type:[Boolean,String],default:!1},autoFocus:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:""},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},confirmHold:{type:Boolean,default:!1},ignoreCompositionEvent:{type:Boolean,default:!0},step:{type:String,default:"0.000000000000000001"},inputmode:{type:String,default:void 0,validator:e=>!!~INPUT_MODES.indexOf(e)},cursorColor:{type:String,default:""}},props$u),emit=["input","focus","blur","update:value","update:modelValue","update:focus","compositionstart","compositionupdate","compositionend",...emit$1];function useBase(e,t,n){const a=ref(null),i=useCustomEvent(t,n),o=computed((()=>{const t=Number(e.selectionStart);return isNaN(t)?-1:t})),r=computed((()=>{const t=Number(e.selectionEnd);return isNaN(t)?-1:t})),s=computed((()=>{const t=Number(e.cursor);return isNaN(t)?-1:t})),l=computed((()=>{var t=Number(e.maxlength);return isNaN(t)?140:t})),c=getValueString(e.modelValue,e.type)||getValueString(e.value,e.type),d=reactive({value:c,valueOrigin:c,maxlength:l,focus:e.focus,composing:!1,selectionStart:o,selectionEnd:r,cursor:s});return watch((()=>d.focus),(e=>n("update:focus",e))),watch((()=>d.maxlength),(e=>d.value=d.value.slice(0,e)),{immediate:!1}),{fieldRef:a,state:d,trigger:i}}function useValueSync(e,t,n,a){const i=debounce$1((n=>{t.value=getValueString(n,e.type)}),100,{setTimeout:setTimeout,clearTimeout:clearTimeout});watch((()=>e.modelValue),i),watch((()=>e.value),i);const o=throttle(((e,t)=>{i.cancel(),n("update:modelValue",t.value),n("update:value",t.value),a("input",e,t)}),100);return onBeforeMount((()=>{i.cancel(),o.cancel()})),{trigger:a,triggerInput:(e,t,n)=>{i.cancel(),o(e,t),n&&o.flush()}}}function useAutoFocus(e,t){useUserAction();const n=computed((()=>e.autoFocus||e.focus));function a(){if(!n.value)return;const e=t.value;e?e.focus():setTimeout(a,100)}watch((()=>e.focus),(e=>{e?a():function(){const e=t.value;e&&e.blur()}()})),onMounted((()=>{n.value&&nextTick(a)}))}function useEvent(e,t,n,a,i,o){function r(){const n=e.value;n&&t.focus&&t.selectionStart>-1&&t.selectionEnd>-1&&"number"!==n.type&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd)}function s(){const n=e.value;n&&t.focus&&t.selectionStart<0&&t.selectionEnd<0&&t.cursor>-1&&"number"!==n.type&&(n.selectionEnd=n.selectionStart=t.cursor)}function l(e){return"number"===e.type?null:e.selectionEnd}watch([()=>t.selectionStart,()=>t.selectionEnd],r),watch((()=>t.cursor),s),watch((()=>e.value),(function(){const c=e.value;if(!c)return;const d=function(e,a){e.stopPropagation(),isFunction(o)&&!1===o(e,t)||(t.value=c.value,t.composing&&n.ignoreCompositionEvent||i(e,{value:c.value,cursor:l(c)},a))};function u(e){n.ignoreCompositionEvent||a(e.type,e,{value:e.data})}c.addEventListener("change",(e=>e.stopPropagation())),c.addEventListener("focus",(function(e){t.focus=!0,a("focus",e,{value:t.value}),r(),s()})),c.addEventListener("blur",(function(e){t.composing&&(t.composing=!1,d(e,!0)),t.focus=!1,a("blur",e,{value:t.value,cursor:l(e.target)})})),c.addEventListener("input",d),c.addEventListener("compositionstart",(e=>{e.stopPropagation(),t.composing=!0,u(e)})),c.addEventListener("compositionend",(e=>{e.stopPropagation(),t.composing&&(t.composing=!1,d(e)),u(e)})),c.addEventListener("compositionupdate",u)}))}function useField(e,t,n,a){UniViewJSBridgeSubscribe();const{fieldRef:i,state:o,trigger:r}=useBase(e,t,n),{triggerInput:s}=useValueSync(e,o,n,r);useAutoFocus(e,i),useKeyboard$1(e,i);const{state:l}=useScopedAttrs();useFormField("name",o),useEvent(i,o,e,r,s,a);return{fieldRef:i,state:o,scopedAttrsState:l,fixDisabledColor:0===String(navigator.vendor).indexOf("Apple")&&CSS.supports("image-orientation:from-image"),trigger:r}}const props$q=extend$1({},props$r,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}}),Input=defineBuiltInComponent({name:"Input",props:props$q,emits:["confirm",...emit],setup(e,{emit:t,expose:n}){const a=["text","number","idcard","digit","password","tel"],i=["off","one-time-code"],o=computed((()=>{let t="";switch(e.type){case"text":"search"===e.confirmType&&(t="search");break;case"idcard":t="text";break;case"digit":t="number";break;default:t=~a.includes(e.type)?e.type:"text"}return e.password?"password":t})),r=computed((()=>{const t=i.indexOf(e.textContentType),n=i.indexOf(hyphenate(e.textContentType));return i[-1!==t?t:-1!==n?n:0]}));let s,l=ref("");const c=ref(null),{fieldRef:d,state:u,scopedAttrsState:m,fixDisabledColor:p,trigger:h}=useField(e,c,t,((e,t)=>{const n=e.target;if("number"===o.value){if(s&&(n.removeEventListener("blur",s),s=null),n.validity&&!n.validity.valid){if((!l.value||!n.value)&&"-"===e.data||"-"===l.value[0]&&"deleteContentBackward"===e.inputType)return l.value="-",t.value="",s=()=>{l.value=n.value=""},n.addEventListener("blur",s),!1;if(l.value)if(-1!==l.value.indexOf(".")){if("."!==e.data&&"deleteContentBackward"===e.inputType){const e=l.value.indexOf(".");return l.value=n.value=t.value=l.value.slice(0,e),!0}}else if("."===e.data)return l.value+=".",s=()=>{l.value=n.value=l.value.slice(0,-1)},n.addEventListener("blur",s),!1;return l.value=t.value=n.value="-"===l.value?"":l.value,!1}l.value=n.value;const a=t.maxlength;if(a>0&&n.value.length>a)return n.value=n.value.slice(0,a),t.value=n.value,!1}}));watch((()=>u.value),(t=>{"number"!==e.type||"-"===l.value&&""===t||(l.value=t)}));const f=["number","digit"],g=computed((()=>f.includes(e.type)?e.step:""));function y(t){if("Enter"!==t.key)return;const n=t.target;t.stopPropagation(),h("confirm",t,{value:n.value}),!e.confirmHold&&n.blur()}return n({$triggerInput:e=>{t("update:modelValue",e.value),t("update:value",e.value),u.value=e.value}}),()=>{let t=e.disabled&&p?createVNode("input",{key:"disabled-input",ref:d,value:u.value,tabindex:"-1",readonly:!!e.disabled,type:o.value,maxlength:u.maxlength,step:g.value,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},onFocus:e=>e.target.blur()},null,44,["value","readonly","type","maxlength","step","onFocus"]):withDirectives(createVNode("input",{key:"input",ref:d,"onUpdate:modelValue":e=>u.value=e,disabled:!!e.disabled,type:o.value,maxlength:u.maxlength,step:g.value,enterkeyhint:e.confirmType,pattern:"number"===e.type?"[0-9]*":void 0,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},autocomplete:r.value,onKeyup:y,inputmode:e.inputmode},null,44,["onUpdate:modelValue","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup","inputmode"]),[[vModelDynamic,u.value]]);return createVNode("uni-input",{ref:c},[createVNode("div",{class:"uni-input-wrapper"},[withDirectives(createVNode("div",mergeProps(m.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[vShow,!(u.value.length||"-"===l.value)]]),"search"===e.confirmType?createVNode("form",{action:"",onSubmit:e=>e.preventDefault(),class:"uni-input-form"},[t],40,["onSubmit"]):t])],512)}}});function entries(e){return Object.keys(e).map((t=>[t,e[t]]))}const DEFAULT_EXCLUDE_KEYS=["class","style"],LISTENER_PREFIX=/^on[A-Z]+/,useAttrs=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n=[]}=e,a=getCurrentInstance(),i=shallowRef({}),o=shallowRef({}),r=shallowRef({}),s=n.concat(DEFAULT_EXCLUDE_KEYS);return a.attrs=reactive(a.attrs),watchEffect((()=>{const e=entries(a.attrs).reduce(((e,[n,a])=>(s.includes(n)?e.exclude[n]=a:LISTENER_PREFIX.test(n)?(t||(e.attrs[n]=a),e.listeners[n]=a):e.attrs[n]=a,e)),{exclude:{},attrs:{},listeners:{}});i.value=e.attrs,o.value=e.listeners,r.value=e.exclude})),{$attrs:i,$listeners:o,$excludeAttrs:r}};function flatVNode(e){const t=[];return isArray$1(e)&&e.forEach((e=>{isVNode(e)?e.type===Fragment?t.push(...flatVNode(e.children)):t.push(e):isArray$1(e)&&t.push(...flatVNode(e))})),t}const movableAreaProps={scaleArea:{type:Boolean,default:!1}},MovableArea=defineBuiltInComponent({inheritAttrs:!1,name:"MovableArea",props:movableAreaProps,setup(e,{slots:t}){const n=ref(null),a=ref(!1);let{setContexts:i,events:o}=useMovableAreaState(e,n);const{$listeners:r,$attrs:s,$excludeAttrs:l}=useAttrs(),c=r.value;["onTouchstart","onTouchmove","onTouchend"].forEach((e=>{let t=c[e],n=o[`_${e}`];c[e]=t?[].concat(t,n):n})),onMounted((()=>{o._resize(),a.value=!0}));let d=[];const u=[];function m(){const e=[];for(let t=0;t<d.length;t++){let n=d[t];n=n.el;const a=u.find((e=>n===e.rootRef.value));a&&e.push(markRaw(a))}i(e)}return provide("_isMounted",a),provide("movableAreaRootRef",n),provide("addMovableViewContext",(e=>{u.push(e),m()})),provide("removeMovableViewContext",(e=>{const t=u.indexOf(e);t>=0&&(u.splice(t,1),m())})),()=>{const e=t.default&&t.default();return d=flatVNode(e),createVNode("uni-movable-area",mergeProps({ref:n},s.value,l.value,c),[createVNode(ResizeSensor,{onResize:o._resize},null,8,["onResize"]),d],16)}}});function calc(e){return Math.sqrt(e.x*e.x+e.y*e.y)}function useMovableAreaState(e,t){const n=ref(0),a=ref(0),i=reactive({x:null,y:null}),o=ref(null);let r=null,s=[];function l(e,n=s){let a=t.value;return function e(t){for(let a=0;a<n.length;a++){const e=n[a];if(t===e.rootRef.value)return e}return t===a||t===document.body||t===document?null:e(t.parentNode)}(e)}const c=withWebEvent((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(o.value=calc(t),i.x=t.x,i.y=t.y,!e.scaleArea){let e=l(n[0].target),t=l(n[1].target);r=e&&e===t?e:null}}})),d=withWebEvent((t=>{let n=t.touches;if(n&&n.length>1){t.preventDefault();let l={x:n[1].pageX-n[0].pageX,y:n[1].pageY-n[0].pageY};if(null!==i.x&&o.value&&o.value>0){let t=calc(l)/o.value;(a=t)&&1!==a&&(e.scaleArea?s.forEach((function(e){e._setScale(a)})):r&&r._setScale(a))}i.x=l.x,i.y=l.y}var a})),u=withWebEvent((t=>{let n=t.touches;n&&n.length||t.changedTouches&&(i.x=0,i.y=0,o.value=null,e.scaleArea?s.forEach((function(e){e._endScale()})):r&&r._endScale())}));return provide("movableAreaWidth",n),provide("movableAreaHeight",a),{setContexts(e){s=e},events:{_onTouchstart:c,_onTouchmove:d,_onTouchend:u,_resize:function(){!function(){let e=window.getComputedStyle(t.value),i=t.value.getBoundingClientRect();n.value=i.width-["Left","Right"].reduce((function(t,n){const a="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[a])}),0),a.value=i.height-["Top","Bottom"].reduce((function(t,n){const a="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[a])}),0)}(),s.forEach((function(e,t){e.setParent()}))}}}}const addListenerToElement=function(e,t,n,a){e.addEventListener(t,(e=>{isFunction(n)&&!1===n(e)&&((void 0===e.cancelable||e.cancelable)&&e.preventDefault(),e.stopPropagation())}),{passive:!1})};let __mouseMoveEventListener,__mouseUpEventListener;function useTouchtrack(e,t,n){onBeforeUnmount((()=>{document.removeEventListener("mousemove",__mouseMoveEventListener),document.removeEventListener("mouseup",__mouseUpEventListener)}));let a=0,i=0,o=0,r=0;const s=function(e,n,s,l){if(!1===t({cancelable:e.cancelable,target:e.target,currentTarget:e.currentTarget,preventDefault:e.preventDefault.bind(e),stopPropagation:e.stopPropagation.bind(e),touches:e.touches,changedTouches:e.changedTouches,detail:{state:n,x:s,y:l,dx:s-a,dy:l-i,ddx:s-o,ddy:l-r,timeStamp:e.timeStamp}}))return!1};let l,c,d=null;addListenerToElement(e,"touchstart",(function(e){if(l=!0,1===e.touches.length&&!d)return d=e,a=o=e.touches[0].pageX,i=r=e.touches[0].pageY,s(e,"start",a,i)})),addListenerToElement(e,"mousedown",(function(e){if(c=!0,!l&&!d)return d=e,a=o=e.pageX,i=r=e.pageY,s(e,"start",a,i)})),addListenerToElement(e,"touchmove",(function(e){if(1===e.touches.length&&d){const t=s(e,"move",e.touches[0].pageX,e.touches[0].pageY);return o=e.touches[0].pageX,r=e.touches[0].pageY,t}}));const u=__mouseMoveEventListener=function(e){if(!l&&c&&d){const t=s(e,"move",e.pageX,e.pageY);return o=e.pageX,r=e.pageY,t}};document.addEventListener("mousemove",u),addListenerToElement(e,"touchend",(function(e){if(0===e.touches.length&&d)return l=!1,d=null,s(e,"end",e.changedTouches[0].pageX,e.changedTouches[0].pageY)}));const m=__mouseUpEventListener=function(e){if(c=!1,!l&&d)return d=null,s(e,"end",e.pageX,e.pageY)};document.addEventListener("mouseup",m),addListenerToElement(e,"touchcancel",(function(e){if(d){l=!1;const t=d;return d=null,s(e,n?"cancel":"end",t.touches[0].pageX,t.touches[0].pageY)}}))}function e$2(e,t,n){return e>t-n&&e<t+n}function t$6(e,t){return e$2(e,0,t)}function Decline(){}function Friction$1(e,t){this._m=e,this._f=1e3*t,this._startTime=0,this._v=0}function Spring$1(e,t,n){this._m=e,this._k=t,this._c=n,this._solution=null,this._endPosition=0,this._startTime=0}function STD(e,t,n){this._springX=new Spring$1(e,t,n),this._springY=new Spring$1(e,t,n),this._springScale=new Spring$1(e,t,n),this._startTime=0}Decline.prototype.x=function(e){return Math.sqrt(e)},Friction$1.prototype.setV=function(e,t){const n=Math.pow(Math.pow(e,2)+Math.pow(t,2),.5);this._x_v=e,this._y_v=t,this._x_a=-this._f*this._x_v/n,this._y_a=-this._f*this._y_v/n,this._t=Math.abs(e/this._x_a)||Math.abs(t/this._y_a),this._lastDt=null,this._startTime=(new Date).getTime()},Friction$1.prototype.setS=function(e,t){this._x_s=e,this._y_s=t},Friction$1.prototype.s=function(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),e>this._t&&(e=this._t,this._lastDt=e);let t=this._x_v*e+.5*this._x_a*Math.pow(e,2)+this._x_s,n=this._y_v*e+.5*this._y_a*Math.pow(e,2)+this._y_s;return(this._x_a>0&&t<this._endPositionX||this._x_a<0&&t>this._endPositionX)&&(t=this._endPositionX),(this._y_a>0&&n<this._endPositionY||this._y_a<0&&n>this._endPositionY)&&(n=this._endPositionY),{x:t,y:n}},Friction$1.prototype.ds=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),e>this._t&&(e=this._t),{dx:this._x_v+this._x_a*e,dy:this._y_v+this._y_a*e}},Friction$1.prototype.delta=function(){return{x:-1.5*Math.pow(this._x_v,2)/this._x_a||0,y:-1.5*Math.pow(this._y_v,2)/this._y_a||0}},Friction$1.prototype.dt=function(){return-this._x_v/this._x_a},Friction$1.prototype.done=function(){const e=e$2(this.s().x,this._endPositionX)||e$2(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,e},Friction$1.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},Friction$1.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t},Spring$1.prototype._solve=function(e,t){const n=this._c,a=this._m,i=this._k,o=n*n-4*a*i;if(0===o){const i=-n/(2*a),o=e,r=t/(i*e);return{x:function(e){return(o+r*e)*Math.pow(Math.E,i*e)},dx:function(e){const t=Math.pow(Math.E,i*e);return i*(o+r*e)*t+r*t}}}if(o>0){const i=(-n-Math.sqrt(o))/(2*a),r=(-n+Math.sqrt(o))/(2*a),s=(t-i*e)/(r-i),l=e-s;return{x:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,i*e)),n||(n=this._powER2T=Math.pow(Math.E,r*e)),l*t+s*n},dx:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,i*e)),n||(n=this._powER2T=Math.pow(Math.E,r*e)),l*i*t+s*r*n}}}const r=Math.sqrt(4*a*i-n*n)/(2*a),s=-n/2*a,l=e,c=(t-s*e)/r;return{x:function(e){return Math.pow(Math.E,s*e)*(l*Math.cos(r*e)+c*Math.sin(r*e))},dx:function(e){const t=Math.pow(Math.E,s*e),n=Math.cos(r*e),a=Math.sin(r*e);return t*(c*r*n-l*r*a)+s*t*(c*a+l*n)}}},Spring$1.prototype.x=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},Spring$1.prototype.dx=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},Spring$1.prototype.setEnd=function(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!t$6(t,.1)){t=t||0;let a=this._endPosition;this._solution&&(t$6(t,.1)&&(t=this._solution.dx((n-this._startTime)/1e3)),a=this._solution.x((n-this._startTime)/1e3),t$6(t,.1)&&(t=0),t$6(a,.1)&&(a=0),a+=this._endPosition),this._solution&&t$6(a-e,.1)&&t$6(t,.1)||(this._endPosition=e,this._solution=this._solve(a-this._endPosition,t),this._startTime=n)}},Spring$1.prototype.snap=function(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},Spring$1.prototype.done=function(e){return e||(e=(new Date).getTime()),e$2(this.x(),this._endPosition,.1)&&t$6(this.dx(),.1)},Spring$1.prototype.reconfigure=function(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},Spring$1.prototype.springConstant=function(){return this._k},Spring$1.prototype.damping=function(){return this._c},Spring$1.prototype.configuration=function(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]},STD.prototype.setEnd=function(e,t,n,a){const i=(new Date).getTime();this._springX.setEnd(e,a,i),this._springY.setEnd(t,a,i),this._springScale.setEnd(n,a,i),this._startTime=i},STD.prototype.x=function(){const e=((new Date).getTime()-this._startTime)/1e3;return{x:this._springX.x(e),y:this._springY.x(e),scale:this._springScale.x(e)}},STD.prototype.done=function(){const e=(new Date).getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},STD.prototype.reconfigure=function(e,t,n){this._springX.reconfigure(e,t,n),this._springY.reconfigure(e,t,n),this._springScale.reconfigure(e,t,n)};const movableViewProps={direction:{type:String,default:"none"},inertia:{type:[Boolean,String],default:!1},outOfBounds:{type:[Boolean,String],default:!1},x:{type:[Number,String],default:0},y:{type:[Number,String],default:0},damping:{type:[Number,String],default:20},friction:{type:[Number,String],default:2},disabled:{type:[Boolean,String],default:!1},scale:{type:[Boolean,String],default:!1},scaleMin:{type:[Number,String],default:.5},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}};function v$2(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}const MovableView=defineBuiltInComponent({name:"MovableView",props:movableViewProps,emits:["change","scale"],setup(e,{slots:t,emit:n}){const a=ref(null),i=useCustomEvent(a,n),{setParent:o}=useMovableViewState(e,i,a);return()=>createVNode("uni-movable-view",{ref:a},[createVNode(ResizeSensor,{onResize:o},null,8,["onResize"]),t.default&&t.default()],512)}});let requesting=!1;function _requestAnimationFrame(e){requesting||(requesting=!0,requestAnimationFrame((function(){e(),requesting=!1})))}function p$2(e,t){if(e===t)return 0;let n=e.offsetLeft;return e.offsetParent?n+=p$2(e.offsetParent,t):0}function f$2(e,t){if(e===t)return 0;let n=e.offsetTop;return e.offsetParent?n+=f$2(e.offsetParent,t):0}function g$2(e,t,n){let a={id:0,cancelled:!1};return function e(t,n,a,i){if(!t||!t.cancelled){a(n);let o=n.done();o||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,a,i))),o&&i&&i(n)}}(a,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,a),model:e}}function _getPx(e){return/\d+[ur]px$/i.test(e)?upx2px(parseFloat(e)):Number(e)||0}function useMovableViewLayout(e,t,n){const a=inject("movableAreaWidth",ref(0)),i=inject("movableAreaHeight",ref(0)),o=inject("movableAreaRootRef"),r={x:0,y:0},s={x:0,y:0},l=ref(0),c=ref(0),d=ref(0),u=ref(0),m=ref(0),p=ref(0);return{_updateBoundary:function(){let e=0-r.x+s.x,t=a.value-l.value-r.x-s.x;d.value=Math.min(e,t),m.value=Math.max(e,t);let n=0-r.y+s.y,o=i.value-c.value-r.y-s.y;u.value=Math.min(n,o),p.value=Math.max(n,o)},_updateOffset:function(){r.x=p$2(e.value,o.value),r.y=f$2(e.value,o.value)},_updateWH:function(a){a=a||t.value,a=n(a);let i=e.value.getBoundingClientRect();c.value=i.height/t.value,l.value=i.width/t.value;let o=c.value*a,r=l.value*a;s.x=(r-l.value)/2,s.y=(o-c.value)/2},_scaleOffset:s,minX:d,minY:u,maxX:m,maxY:p}}function useMovableViewTransform(e,t,n,a,i,o,r,s,l,c,d,u,m,p){const h=computed((()=>{let e=Number(t.damping);return isNaN(e)?20:e})),f=computed((()=>"all"===t.direction||"horizontal"===t.direction)),g=computed((()=>"all"===t.direction||"vertical"===t.direction)),y=ref(_getPx(t.x)),v=ref(_getPx(t.y));watch((()=>t.x),(e=>{y.value=_getPx(e)})),watch((()=>t.y),(e=>{v.value=_getPx(e)})),watch(y,(e=>{!function(e){if(f.value){if(e+n.x===l.value)return l;d&&d.cancel(),S(e+n.x,v.value+n.y,a.value)}}(e)})),watch(v,(e=>{!function(e){if(g.value){if(e+n.y===c.value)return c;d&&d.cancel(),S(y.value+n.x,e+n.y,a.value)}}(e)}));const _=new STD(1,9*Math.pow(h.value,2)/40,h.value);function b(e,t){let n=!1;return e>i.value?(e=i.value,n=!0):e<r.value&&(e=r.value,n=!0),t>o.value?(t=o.value,n=!0):t<s.value&&(t=s.value,n=!0),{x:e,y:t,outOfBounds:n}}function w(){u&&u.cancel(),d&&d.cancel()}function S(e,n,i,o,r,s){w(),f.value||(e=l.value),g.value||(n=c.value),t.scale||(i=a.value);let u=b(e,n);e=u.x,n=u.y,t.animation?(_._springX._solution=null,_._springY._solution=null,_._springScale._solution=null,_._springX._endPosition=l.value,_._springY._endPosition=c.value,_._springScale._endPosition=a.value,_.setEnd(e,n,i,1),d=g$2(_,(function(){let e=_.x();C(e.x,e.y,e.scale,o,r,s)}),(function(){d.cancel()}))):C(e,n,i,o,r,s)}function C(i,o,r,s="",d,u){null!==i&&"NaN"!==i.toString()&&"number"==typeof i||(i=l.value||0),null!==o&&"NaN"!==o.toString()&&"number"==typeof o||(o=c.value||0),i=Number(i.toFixed(1)),o=Number(o.toFixed(1)),r=Number(r.toFixed(1)),l.value===i&&c.value===o||d||p("change",{},{x:v$2(i,n.x),y:v$2(o,n.y),source:s}),t.scale||(r=a.value),r=+(r=m(r)).toFixed(3),u&&r!==a.value&&p("scale",{},{x:i,y:o,scale:r});let h="translateX("+i+"px) translateY("+o+"px) translateZ(0px) scale("+r+")";e.value&&(e.value.style.transform=h,e.value.style.webkitTransform=h,l.value=i,c.value=o,a.value=r)}return{FAandSFACancel:w,_getLimitXY:b,_animationTo:S,_setTransform:C,_revise:function(e){let t=b(l.value,c.value),n=t.x,i=t.y,o=t.outOfBounds;return o&&S(n,i,a.value,e),o},dampingNumber:h,xMove:f,yMove:g,xSync:y,ySync:v,_STD:_}}function useMovableViewInit(e,t,n,a,i,o,r,s,l,c){const d=computed((()=>{let t=Number(e.scaleMin);return isNaN(t)?.5:t})),u=computed((()=>{let t=Number(e.scaleMax);return isNaN(t)?10:t})),m=ref(Number(e.scaleValue)||1);watch(m,(t=>{!function(t){if(!e.scale)return!1;O(t=$(t),!0),M(t)}(t)})),watch(d,(()=>{R()})),watch(u,(()=>{R()})),watch((()=>e.scaleValue),(e=>{m.value=Number(e)||0}));const{_updateBoundary:p,_updateOffset:h,_updateWH:f,_scaleOffset:g,minX:y,minY:v,maxX:_,maxY:b}=useMovableViewLayout(t,a,$),{FAandSFACancel:w,_getLimitXY:S,_animationTo:C,_setTransform:k,_revise:x,dampingNumber:T,xMove:A,yMove:E,xSync:I,ySync:P,_STD:N}=useMovableViewTransform(t,e,g,a,_,b,y,v,r,s,l,c,$,n);function O(t,n){if(e.scale){t=$(t),f(t),p();const e=S(r.value,s.value),a=e.x,i=e.y;n?C(a,i,t,"",!0,!0):_requestAnimationFrame((function(){k(a,i,t,"",!0,!0)}))}}function M(e){i.value=e}function $(e){return e=Math.max(.5,d.value,e),e=Math.min(10,u.value,e)}function R(){if(!e.scale)return!1;O(a.value,!0),M(a.value)}return{_updateOldScale:M,_endScale:function(){o.value=!1,M(a.value)},_setScale:function(e){e&&(e=i.value*e,o.value=!0,O(e))},scaleValueSync:m,_updateBoundary:p,_updateOffset:h,_updateWH:f,_scaleOffset:g,minX:y,minY:v,maxX:_,maxY:b,FAandSFACancel:w,_getLimitXY:S,_animationTo:C,_setTransform:k,_revise:x,dampingNumber:T,xMove:A,yMove:E,xSync:I,ySync:P,_STD:N}}function useMovableViewState(e,t,n){const a=inject("_isMounted",ref(!1)),i=inject("addMovableViewContext",(()=>{})),o=inject("removeMovableViewContext",(()=>{}));let r,s,l=ref(1),c=ref(1),d=ref(!1),u=ref(0),m=ref(0),p=null,h=!1,f=null,g=null;const y=new Decline,v=new Decline,_={historyX:[0,0],historyY:[0,0],historyT:[0,0]},b=computed((()=>{let t=Number(e.friction);return isNaN(t)||t<=0?2:t})),w=new Friction$1(1,b.value);watch((()=>e.disabled),(()=>{j()}));const{_updateOldScale:S,_endScale:C,_setScale:k,scaleValueSync:x,_updateBoundary:T,_updateOffset:A,_updateWH:E,_scaleOffset:I,minX:P,minY:N,maxX:O,maxY:M,FAandSFACancel:$,_getLimitXY:R,_setTransform:V,_revise:D,dampingNumber:B,xMove:L,yMove:F,xSync:z,ySync:H,_STD:U}=useMovableViewInit(e,n,t,l,c,d,u,m,null,p);function j(){d.value||e.disabled||($(),_.historyX=[0,0],_.historyY=[0,0],_.historyT=[0,0],L.value&&(r=u.value),F.value&&(s=m.value),n.value.style.willChange="transform",f=null,g=null,h=!0)}function W(){if(!a.value)return;$();let t=e.scale?x.value:1;A(),E(t),T();let n=R(z.value+I.x,H.value+I.y),i=n.x,o=n.y;V(i,o,t,"",!0),S(t)}return onMounted((()=>{useTouchtrack(n.value,(t=>{switch(t.detail.state){case"start":j();break;case"move":!function(t){if(!d.value&&!e.disabled&&h){let n=u.value,a=m.value;if(null===g&&(g=Math.abs(t.detail.dx/t.detail.dy)>1?"htouchmove":"vtouchmove"),L.value&&(n=t.detail.dx+r,_.historyX.shift(),_.historyX.push(n),F.value||null!==f||(f=Math.abs(t.detail.dx/t.detail.dy)<1)),F.value&&(a=t.detail.dy+s,_.historyY.shift(),_.historyY.push(a),L.value||null!==f||(f=Math.abs(t.detail.dy/t.detail.dx)<1)),_.historyT.shift(),_.historyT.push(t.detail.timeStamp),!f){t.preventDefault();let i="touch";n<P.value?e.outOfBounds?(i="touch-out-of-bounds",n=P.value-y.x(P.value-n)):n=P.value:n>O.value&&(e.outOfBounds?(i="touch-out-of-bounds",n=O.value+y.x(n-O.value)):n=O.value),a<N.value?e.outOfBounds?(i="touch-out-of-bounds",a=N.value-v.x(N.value-a)):a=N.value:a>M.value&&(e.outOfBounds?(i="touch-out-of-bounds",a=M.value+v.x(a-M.value)):a=M.value),_requestAnimationFrame((function(){V(n,a,l.value,i)}))}}}(t);break;case"end":!function(){if(!d.value&&!e.disabled&&h&&(n.value.style.willChange="auto",h=!1,!f&&!D("out-of-bounds")&&e.inertia)){const e=1e3*(_.historyX[1]-_.historyX[0])/(_.historyT[1]-_.historyT[0]),t=1e3*(_.historyY[1]-_.historyY[0])/(_.historyT[1]-_.historyT[0]),n=u.value,a=m.value;w.setV(e,t),w.setS(n,a);const i=w.delta().x,o=w.delta().y;let r=i+n,s=o+a;r<P.value?(r=P.value,s=a+(P.value-n)*o/i):r>O.value&&(r=O.value,s=a+(O.value-n)*o/i),s<N.value?(s=N.value,r=n+(N.value-a)*i/o):s>M.value&&(s=M.value,r=n+(M.value-a)*i/o),w.setEnd(r,s),p=g$2(w,(function(){let e=w.s(),t=e.x,n=e.y;V(t,n,l.value,"friction")}),(function(){p.cancel()}))}e.outOfBounds||e.inertia||$()}()}})),W(),w.reconfigure(1,b.value),U.reconfigure(1,9*Math.pow(B.value,2)/40,B.value),n.value.style.transformOrigin="center";const t={rootRef:n,setParent:W,_endScale:C,_setScale:k};i(t),onUnmounted((()=>{o(t)}))})),onUnmounted((()=>{$()})),{setParent:W}}const OPEN_TYPES=["navigate","redirect","switchTab","reLaunch","navigateBack"],ANIMATION_IN=["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"],ANIMATION_OUT=["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"],navigatorProps={hoverClass:{type:String,default:"navigator-hover"},url:{type:String,default:""},openType:{type:String,default:"navigate",validator:e=>Boolean(~OPEN_TYPES.indexOf(e))},delta:{type:Number,default:1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:600},exists:{type:String,default:""},hoverStopPropagation:{type:Boolean,default:!1},animationType:{type:String,default:"",validator:e=>!e||ANIMATION_IN.concat(ANIMATION_OUT).includes(e)},animationDuration:{type:[String,Number],default:300}};function createNavigatorOnClick(e){return()=>{if("navigateBack"!==e.openType&&!e.url)return void console.error("<navigator/> should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab");const t=parseInt(e.animationDuration);switch(e.openType){case"navigate":navigateTo({url:e.url,animationType:e.animationType||"pop-in",animationDuration:t});break;case"redirect":redirectTo({url:e.url,exists:e.exists});break;case"switchTab":switchTab({url:e.url});break;case"reLaunch":reLaunch({url:e.url});break;case"navigateBack":navigateBack({delta:e.delta,animationType:e.animationType||"pop-out",animationDuration:t})}}}extend$1({},navigatorProps,{renderLink:{type:Boolean,default:!0}});const pickerViewProps={value:{type:Array,default:()=>[],validator:function(e){return isArray$1(e)&&e.filter((e=>"number"==typeof e)).length===e.length}},indicatorStyle:{type:String,default:""},indicatorClass:{type:String,default:""},maskStyle:{type:String,default:""},maskClass:{type:String,default:""}};function useState$4(e){const t=reactive([...e.value]),n=reactive({value:t,height:34});return watch((()=>e.value),((e,t)=>{n.value.length=e.length,e.forEach(((e,t)=>{e!==n.value[t]&&n.value.splice(t,1,e)}))})),n}const PickerView=defineBuiltInComponent({name:"PickerView",props:pickerViewProps,emits:["change","pickstart","pickend","update:value"],setup(e,{slots:t,emit:n}){const a=ref(null),i=ref(null),o=useCustomEvent(a,n),r=useState$4(e),s=ref(null);onMounted((()=>{const e=s.value;e&&(r.height=e.$el.offsetHeight)}));let l=ref([]),c=ref([]);function d(e){let t=c.value;t=t.filter((e=>e.type!==Comment));let n=t.indexOf(e);return-1!==n?n:l.value.indexOf(e)}return provide("getPickerViewColumn",(function(e){return computed({get(){const t=d(e.vnode);return r.value[t]||0},set(t){const a=d(e.vnode);if(a<0)return;if(r.value[a]!==t){r.value[a]=t;const e=r.value.map((e=>e));n("update:value",e),o("change",{},{value:e})}}})})),provide("pickerViewProps",e),provide("pickerViewState",r),()=>{const e=t.default&&t.default();{const t=flatVNode(e);l.value=t,nextTick((()=>{c.value=t}))}return createVNode("uni-picker-view",{ref:a},[createVNode(ResizeSensor,{ref:s,onResize:({height:e})=>r.height=e},null,8,["onResize"]),createVNode("div",{ref:i,class:"uni-picker-view-wrapper"},[e],512)],512)}}});class Friction{constructor(e){this._drag=e,this._dragLog=Math.log(e),this._x=0,this._v=0,this._startTime=0}set(e,t){this._x=e,this._v=t,this._startTime=(new Date).getTime()}setVelocityByEnd(e){this._v=(e-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)}x(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3);const t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e);return this._dt=e,this._x+this._v*t/this._dragLog-this._v/this._dragLog}dx(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3);const t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e);return this._dt=e,this._v*t}done(){return Math.abs(this.dx())<3}reconfigure(e){const t=this.x(),n=this.dx();this._drag=e,this._dragLog=Math.log(e),this.set(t,n)}configuration(){const e=this;return[{label:"Friction",read:function(){return e._drag},write:function(t){e.reconfigure(t)},min:.001,max:.1,step:.001}]}}function o$2(e,t,n){return e>t-n&&e<t+n}function a$2(e,t){return o$2(e,0,t)}class Spring{constructor(e,t,n){this._m=e,this._k=t,this._c=n,this._solution=null,this._endPosition=0,this._startTime=0}_solve(e,t){const n=this._c,a=this._m,i=this._k,o=n*n-4*a*i;if(0===o){const i=-n/(2*a),o=e,r=t/(i*e);return{x:function(e){return(o+r*e)*Math.pow(Math.E,i*e)},dx:function(e){const t=Math.pow(Math.E,i*e);return i*(o+r*e)*t+r*t}}}if(o>0){const i=(-n-Math.sqrt(o))/(2*a),r=(-n+Math.sqrt(o))/(2*a),s=(t-i*e)/(r-i),l=e-s;return{x:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,i*e)),n||(n=this._powER2T=Math.pow(Math.E,r*e)),l*t+s*n},dx:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,i*e)),n||(n=this._powER2T=Math.pow(Math.E,r*e)),l*i*t+s*r*n}}}const r=Math.sqrt(4*a*i-n*n)/(2*a),s=-n/2*a,l=e,c=(t-s*e)/r;return{x:function(e){return Math.pow(Math.E,s*e)*(l*Math.cos(r*e)+c*Math.sin(r*e))},dx:function(e){const t=Math.pow(Math.E,s*e),n=Math.cos(r*e),a=Math.sin(r*e);return t*(c*r*n-l*r*a)+s*t*(c*a+l*n)}}}x(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0}dx(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0}setEnd(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!a$2(t,.4)){t=t||0;let a=this._endPosition;this._solution&&(a$2(t,.4)&&(t=this._solution.dx((n-this._startTime)/1e3)),a=this._solution.x((n-this._startTime)/1e3),a$2(t,.4)&&(t=0),a$2(a,.4)&&(a=0),a+=this._endPosition),this._solution&&a$2(a-e,.4)&&a$2(t,.4)||(this._endPosition=e,this._solution=this._solve(a-this._endPosition,t),this._startTime=n)}}snap(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}}done(e){return e||(e=(new Date).getTime()),o$2(this.x(),this._endPosition,.4)&&a$2(this.dx(),.4)}reconfigure(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())}springConstant(){return this._k}damping(){return this._c}configuration(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]}}class Scroll{constructor(e,t,n){this._extent=e,this._friction=t||new Friction(.01),this._spring=n||new Spring(1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}snap(e,t){this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(t)}set(e,t){this._friction.set(e,t),e>0&&t>=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(0)):e<-this._extent&&t<=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(-this._extent)):this._springing=!1,this._startTime=(new Date).getTime()}x(e){if(!this._startTime)return 0;if(e||(e=((new Date).getTime()-this._startTime)/1e3),this._springing)return this._spring.x()+this._springOffset;let t=this._friction.x(e),n=this.dx(e);return(t>0&&n>=0||t<-this._extent&&n<=0)&&(this._springing=!0,this._spring.setEnd(0,n),t<-this._extent?this._springOffset=-this._extent:this._springOffset=0,t=this._spring.x()+this._springOffset),t}dx(e){let t;return t=this._lastTime===e?this._lastDx:this._springing?this._spring.dx(e):this._friction.dx(e),this._lastTime=e,this._lastDx=t,t}done(){return this._springing?this._spring.done():this._friction.done()}setVelocityByEnd(e){this._friction.setVelocityByEnd(e)}configuration(){const e=this._friction.configuration();return e.push.apply(e,this._spring.configuration()),e}}function createAnimation$2(e,t,n){const a={id:0,cancelled:!1};return function e(t,n,a,i){if(!t||!t.cancelled){a(n);const o=n.done();o||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,a,i))),o&&i&&i(n)}}(a,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,a),model:e}}class Scroller{constructor(e,t){t=t||{},this._element=e,this._options=t,this._enableSnap=t.enableSnap||!1,this._itemSize=t.itemSize||0,this._enableX=t.enableX||!1,this._enableY=t.enableY||!1,this._shouldDispatchScrollEvent=!!t.onScroll,this._enableX?(this._extent=(t.scrollWidth||this._element.offsetWidth)-this._element.parentElement.offsetWidth,this._scrollWidth=t.scrollWidth):(this._extent=(t.scrollHeight||this._element.offsetHeight)-this._element.parentElement.offsetHeight,this._scrollHeight=t.scrollHeight),this._position=0,this._scroll=new Scroll(this._extent,t.friction,t.spring),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition()}onTouchStart(){this._startPosition=this._position,this._lastChangePos=this._startPosition,this._startPosition>0?this._startPosition/=.5:this._startPosition<-this._extent&&(this._startPosition=(this._startPosition+this._extent)/.5-this._extent),this._animation&&(this._animation.cancel(),this._scrolling=!1),this.updatePosition()}onTouchMove(e,t){let n=this._startPosition;this._enableX?n+=e:this._enableY&&(n+=t),n>0?n*=.5:n<-this._extent&&(n=.5*(n+this._extent)-this._extent),this._position=n,this.updatePosition(),this.dispatchScroll()}onTouchEnd(e,t,n){if(this._enableSnap&&this._position>-this._extent&&this._position<0){if(this._enableY&&(Math.abs(t)<this._itemSize&&Math.abs(n.y)<300||Math.abs(n.y)<150))return void this.snap();if(this._enableX&&(Math.abs(e)<this._itemSize&&Math.abs(n.x)<300||Math.abs(n.x)<150))return void this.snap()}let a;if(this._enableX?this._scroll.set(this._position,n.x):this._enableY&&this._scroll.set(this._position,n.y),this._enableSnap){const e=this._scroll._friction.x(100),t=e%this._itemSize;a=Math.abs(t)>this._itemSize/2?e-(this._itemSize-Math.abs(t)):e-t,a<=0&&a>=-this._extent&&this._scroll.setVelocityByEnd(a)}this._lastTime=Date.now(),this._lastDelay=0,this._scrolling=!0,this._lastChangePos=this._position,this._lastIdx=Math.floor(Math.abs(this._position/this._itemSize)),this._animation=createAnimation$2(this._scroll,(()=>{const e=Date.now(),t=(e-this._scroll._startTime)/1e3,n=this._scroll.x(t);this._position=n,this.updatePosition();const a=this._scroll.dx(t);this._shouldDispatchScrollEvent&&e-this._lastTime>this._lastDelay&&(this.dispatchScroll(),this._lastDelay=Math.abs(2e3/a),this._lastTime=e)}),(()=>{this._enableSnap&&(a<=0&&a>=-this._extent&&(this._position=a,this.updatePosition()),isFunction(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._shouldDispatchScrollEvent&&this.dispatchScroll(),this._scrolling=!1}))}onTransitionEnd(){this._element.style.webkitTransition="",this._element.style.transition="",this._element.removeEventListener("transitionend",this._onTransitionEnd),this._snapping&&(this._snapping=!1),this.dispatchScroll()}snap(){const e=this._itemSize,t=this._position%e,n=Math.abs(t)>this._itemSize/2?this._position-(e-Math.abs(t)):this._position-t;this._position!==n&&(this._snapping=!0,this.scrollTo(-n),isFunction(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize)))}scrollTo(e,t){this._animation&&(this._animation.cancel(),this._scrolling=!1),"number"==typeof e&&(this._position=-e),this._position<-this._extent?this._position=-this._extent:this._position>0&&(this._position=0);const n="transform "+(t||.2)+"s ease-out";this._element.style.webkitTransition="-webkit-"+n,this._element.style.transition=n,this.updatePosition(),this._element.addEventListener("transitionend",this._onTransitionEnd)}dispatchScroll(){if(isFunction(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 a=0;const i=this._position;this._enableX?(a=this._element.childNodes.length?(t||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=t):(a=this._element.childNodes.length?(t||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=t),"number"==typeof e&&(this._position=-e),this._position<-a?this._position=-a:this._position>0&&(this._position=0),this._itemSize=n||this._itemSize,this.updatePosition(),i!==this._position&&(this.dispatchScroll(),isFunction(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=a,this._scroll._extent=a}updatePosition(){let e="";this._enableX?e="translateX("+this._position+"px) translateZ(0)":this._enableY&&(e="translateY("+this._position+"px) translateZ(0)"),this._element.style.webkitTransform=e,this._element.style.transform=e}isScrolling(){return this._scrolling||this._snapping}}function useScroller(e,t){const n={trackingID:-1,maxDy:0,maxDx:0},a=new Scroller(e,t);function i(e){const t=e,a=e;return"move"===t.detail.state||"end"===t.detail.state?{x:t.detail.dx,y:t.detail.dy}:{x:a.screenX-n.x,y:a.screenY-n.y}}return{scroller:a,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=a,a.onTouchStart&&a.onTouchStart(),("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault()},handleTouchMove:function(e){const t=e,a=e;if(-1!==n.trackingID){("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault();const o=i(e);if(o){for(n.maxDy=Math.max(n.maxDy,Math.abs(o.y)),n.maxDx=Math.max(n.maxDx,Math.abs(o.x)),n.historyX.push(o.x),n.historyY.push(o.y),n.historyTime.push(t.detail.timeStamp||a.timeStamp);n.historyTime.length>10;)n.historyTime.shift(),n.historyX.shift(),n.historyY.shift();n.listener&&n.listener.onTouchMove&&n.listener.onTouchMove(o.x,o.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 a={x:0,y:0};if(n.historyTime.length>2)for(let t=n.historyTime.length-1,i=n.historyTime[t],o=n.historyX[t],r=n.historyY[t];t>0;){t--;const e=i-n.historyTime[t];if(e>30&&e<50){a.x=(o-n.historyX[t])/(e/1e3),a.y=(r-n.historyY[t])/(e/1e3);break}}n.historyTime=[],n.historyX=[],n.historyY=[],e&&e.onTouchEnd&&e.onTouchEnd(t.x,t.y,a)}}}}}let scopedIndex=0;function useScopedClass(e){const t="uni-picker-view-content-"+scopedIndex++;return watch((()=>e.value),(function(){const n=document.createElement("style");n.innerText=`.uni-picker-view-content.${t}>*{height: ${e.value}px;overflow: hidden;}`,document.head.appendChild(n)})),t}function useCustomClick(e){let t=0,n=0;e.addEventListener("touchstart",(e=>{const a=e.changedTouches[0];t=a.clientX,n=a.clientY})),e.addEventListener("touchend",(e=>{const a=e.changedTouches[0];if(Math.abs(a.clientX-t)<20&&Math.abs(a.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]=a[e]})),e.target.dispatchEvent(n)}}))}const PickerViewColumn=defineBuiltInComponent({name:"PickerViewColumn",setup(e,{slots:t,emit:n}){const a=ref(null),i=ref(null),o=inject("getPickerViewColumn"),r=getCurrentInstance(),s=o?o(r):ref(0),l=inject("pickerViewProps"),c=inject("pickerViewState"),d=ref(34),u=ref(null);onMounted((()=>{const e=u.value;d.value=e.$el.offsetHeight}));const m=computed((()=>(c.height-d.value)/2)),{state:p}=useScopedAttrs(),h=useScopedClass(d);let f;const g=reactive({current:s.value,length:0});let y;function v(){f&&!y&&(y=!0,nextTick((()=>{y=!1;let e=Math.min(g.current,g.length-1);e=Math.max(e,0),f.update(e*d.value,void 0,d.value)})))}watch((()=>s.value),(e=>{e!==g.current&&(g.current=e,v())})),watch((()=>g.current),(e=>s.value=e)),watch([()=>d.value,()=>g.length,()=>c.height],v);let _=0;function b(e){const t=_+e.deltaY;if(Math.abs(t)>10){_=0;let e=Math.min(g.current+(t<0?-1:1),g.length-1);g.current=e=Math.max(e,0),f.scrollTo(e*d.value)}else _=t;e.preventDefault()}function w({clientY:e}){const t=a.value;if(!f.isScrolling()){const n=e-t.getBoundingClientRect().top-c.height/2,a=d.value/2;if(!(Math.abs(n)<=a)){const e=Math.ceil((Math.abs(n)-a)/d.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*d.value)}}}return onMounted((()=>{const e=a.value,t=i.value,{scroller:n,handleTouchStart:o,handleTouchMove:r,handleTouchEnd:s}=useScroller(t,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:d.value,friction:new Friction(1e-4),spring:new Spring(2,90,20),onSnap:e=>{isNaN(e)||e===g.current||(g.current=e)}});f=n,useTouchtrack(e,(e=>{switch(e.detail.state){case"start":o(e);break;case"move":r(e),e.stopPropagation();break;case"end":case"cancel":s(e)}}),!0),useCustomClick(e),v()})),()=>{const e=t.default&&t.default();g.length=flatVNode(e).length;const n=`${m.value}px 0`;return createVNode("uni-picker-view-column",{ref:a},[createVNode("div",{onWheel:b,onClick:w,class:"uni-picker-view-group"},[createVNode("div",mergeProps(p.attrs,{class:["uni-picker-view-mask",l.maskClass],style:`background-size: 100% ${m.value}px;${l.maskStyle}`}),null,16),createVNode("div",mergeProps(p.attrs,{class:["uni-picker-view-indicator",l.indicatorClass],style:l.indicatorStyle}),[createVNode(ResizeSensor,{ref:u,onResize:({height:e})=>d.value=e},null,8,["onResize"])],16),createVNode("div",{ref:i,class:["uni-picker-view-content",h],style:{padding:n}},[e],6)],40,["onWheel","onClick"])],512)}}}),uniRadioGroupKey=PolySymbol("ucg"),props$p={name:{type:String,default:""}},index$n=defineBuiltInComponent({name:"RadioGroup",props:props$p,setup(e,{emit:t,slots:n}){const a=ref(null);return useProvideRadioGroup(e,useCustomEvent(a,t)),()=>createVNode("uni-radio-group",{ref:a},[n.default&&n.default()],512)}});function useProvideRadioGroup(e,t){const n=[];onMounted((()=>{s(n.length-1)}));const a=()=>{var e;return null==(e=n.find((e=>e.value.radioChecked)))?void 0:e.value.value};provide(uniRadioGroupKey,{addField(e){n.push(e)},removeField(e){n.splice(n.indexOf(e),1)},radioChange(e,i){s(n.indexOf(i),!0),t("change",e,{value:a()})}});const i=inject(uniFormKey,!1),o={submit:()=>{let t=["",null];return""!==e.name&&(t[0]=e.name,t[1]=a()),t}};function r(e,t){e.value={radioChecked:t,value:e.value.value}}function s(e,t){n.forEach(((a,i)=>{i!==e&&(t?r(n[i],!1):n.forEach(((e,t)=>{i>=t||n[t].value.radioChecked&&r(n[i],!1)})))}))}return i&&(i.addField(o),onBeforeUnmount((()=>{i.removeField(o)}))),n}const props$o={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"}},index$m=defineBuiltInComponent({name:"Radio",props:props$o,setup(e,{slots:t}){const n=ref(null),a=ref(e.checked),i=ref(e.value);const o=computed((()=>function(t){if(e.disabled)return{backgroundColor:"#E1E1E1",borderColor:"#D1D1D1"};const n={};return a.value?(n.backgroundColor=e.activeBackgroundColor||e.color,n.borderColor=e.activeBorderColor||n.backgroundColor):(e.borderColor&&(n.borderColor=e.borderColor),e.backgroundColor&&(n.backgroundColor=e.backgroundColor)),n}(a.value)));watch([()=>e.checked,()=>e.value],(([e,t])=>{a.value=e,i.value=t}));const{uniCheckGroup:r,uniLabel:s,field:l}=useRadioInject(a,i,(()=>{a.value=!1})),c=t=>{e.disabled||a.value||(a.value=!0,r&&r.radioChange(t,l),t.stopPropagation())};return s&&(s.addHandler(c),onBeforeUnmount((()=>{s.removeHandler(c)}))),useListeners$1(e,{"label-click":c}),()=>{const i=useBooleanAttr(e,"disabled");let r;return r=a.value,createVNode("uni-radio",mergeProps(i,{id:e.id,onClick:c,ref:n}),[createVNode("div",{class:"uni-radio-wrapper",style:{"--HOVER-BD-COLOR":a.value?o.value.borderColor:e.activeBorderColor}},[createVNode("div",{class:["uni-radio-input",{"uni-radio-input-disabled":e.disabled}],style:o.value},[r?createSvgIconVNode(ICON_PATH_SUCCESS_NO_CIRCLE,e.disabled?"#ADADAD":e.iconColor,18):""],6),t.default&&t.default()],4)],16,["id","onClick"])}}});function useRadioInject(e,t,n){const a=computed({get:()=>({radioChecked:Boolean(e.value),value:t.value}),set:({radioChecked:t})=>{e.value=t}}),i={reset:n},o=inject(uniRadioGroupKey,!1);o&&o.addField(a);const r=inject(uniFormKey,!1);r&&r.addField(i);const s=inject(uniLabelKey,!1);return onBeforeUnmount((()=>{o&&o.removeField(a),r&&r.removeField(i)})),{uniCheckGroup:o,uniForm:r,uniLabel:s,field:a}}const Refresher=defineBuiltInComponent({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=ref(null),a=computed((()=>{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=computed((()=>{const t=e.refresherHeight/e.refresherThreshold;return 360*(t>1?1:t)}));return()=>{const{refreshState:o,refresherDefaultStyle:r,refresherThreshold:s}=e;return createVNode("div",{ref:n,style:a.value,class:"uni-scroll-view-refresher"},["none"!==r?createVNode("div",{class:"uni-scroll-view-refresh"},[createVNode("div",{class:"uni-scroll-view-refresh-inner"},["pulling"==o?createVNode("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"},[createVNode("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},null),createVNode("path",{d:"M0 0h24v24H0z",fill:"none"},null)],4):null,"refreshing"==o?createVNode("svg",{key:"refresh__spinner",class:"uni-scroll-view-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},[createVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:"color: #2bd009","stroke-width":"3"},null)]):null])]):null,"none"===r?createVNode("div",{class:"uni-scroll-view-refresher-container",style:{height:`${s}px`}},[t.default&&t.default()]):null],4)}}}),passiveOptions=passive(!0),props$m={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}},ScrollView=defineBuiltInComponent({name:"ScrollView",compatConfig:{MODE:3},props:props$m,emits:["scroll","scrolltoupper","scrolltolower","refresherrefresh","refresherrestore","refresherpulling","refresherabort","update:refresherTriggered"],setup(e,{emit:t,slots:n,expose:a}){const i=ref(null),o=ref(null),r=ref(null),s=ref(null),l=useCustomEvent(i,t),{state:c,scrollTopNumber:d,scrollLeftNumber:u}=useScrollViewState(e),{realScrollX:m,realScrollY:p}=useScrollViewLoader(e,c,d,u,l,i,o,s,t),h=computed((()=>{let e="";return m.value?e+="overflow-x:auto;":e+="overflow-x:hidden;",p.value?e+="overflow-y:auto;":e+="overflow-y:hidden;",e})),f=computed((()=>{let t="uni-scroll-view";return!1===e.showScrollbar&&(t+=" uni-scroll-view-scrollbar-hidden"),t}));return a({$getMain:()=>o.value}),()=>{const{refresherEnabled:t,refresherBackground:a,refresherDefaultStyle:l,refresherThreshold:d}=e,{refresherHeight:u,refreshState:m}=c;return createVNode("uni-scroll-view",{ref:i},[createVNode("div",{ref:r,class:"uni-scroll-view"},[createVNode("div",{ref:o,style:h.value,class:f.value},[t?createVNode(Refresher,{refreshState:m,refresherHeight:u,refresherThreshold:d,refresherDefaultStyle:l,refresherBackground:a},{default:()=>["none"==l?n.refresher&&n.refresher():null]},8,["refreshState","refresherHeight","refresherThreshold","refresherDefaultStyle","refresherBackground"]):null,createVNode("div",{ref:s,class:"uni-scroll-view-content"},[n.default&&n.default()],512)],6)],512)],512)}}});function useScrollViewState(e){const t=computed((()=>Number(e.scrollTop)||0)),n=computed((()=>Number(e.scrollLeft)||0));return{state:reactive({lastScrollTop:t.value,lastScrollLeft:n.value,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshState:""}),scrollTopNumber:t,scrollLeftNumber:n}}function useScrollViewLoader(e,t,n,a,i,o,r,s,l){let c=!1,d=0,u=!1,m=()=>{};const p=computed((()=>e.scrollX)),h=computed((()=>e.scrollY)),f=computed((()=>{let t=Number(e.upperThreshold);return isNaN(t)?50:t})),g=computed((()=>{let t=Number(e.lowerThreshold);return isNaN(t)?50:t}));function y(e,t){const n=r.value;let a=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?a=n.scrollLeft-e:"y"===t&&(a=n.scrollTop-e),0===a)return;let o=s.value;o.style.transition="transform .3s ease-out",o.style.webkitTransition="-webkit-transform .3s ease-out","x"===t?i="translateX("+a+"px) translateZ(0)":"y"===t&&(i="translateY("+a+"px) translateZ(0)"),o.removeEventListener("transitionend",m),o.removeEventListener("webkitTransitionEnd",m),m=()=>function(e,t){s.value.style.transition="",s.value.style.webkitTransition="",s.value.style.transform="",s.value.style.webkitTransform="";let n=r.value;"x"===t?(n.style.overflowX=p.value?"auto":"hidden",n.scrollLeft=e):"y"===t&&(n.style.overflowY=h.value?"auto":"hidden",n.scrollTop=e);s.value.removeEventListener("transitionend",m),s.value.removeEventListener("webkitTransitionEnd",m)}(e,t),o.addEventListener("transitionend",m),o.addEventListener("webkitTransitionEnd",m),"x"===t?n.style.overflowX="hidden":"y"===t&&(n.style.overflowY="hidden"),o.style.transform=i,o.style.webkitTransform=i}function v(t){h.value&&(e.scrollWithAnimation?y(t,"y"):r.value.scrollTop=t)}function _(t){p.value&&(e.scrollWithAnimation?y(t,"x"):r.value.scrollLeft=t)}function b(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=o.value.querySelector("#"+t);if(n){let t=r.value.getBoundingClientRect(),a=n.getBoundingClientRect();if(p.value){let n=a.left-t.left,i=r.value.scrollLeft+n;e.scrollWithAnimation?y(i,"x"):r.value.scrollLeft=i}if(h.value){let n=a.top-t.top,i=r.value.scrollTop+n;e.scrollWithAnimation?y(i,"y"):r.value.scrollTop=i}}}}function w(n){if(e.refresherEnabled){switch(n){case"refreshing":t.refresherHeight=e.refresherThreshold,c||(c=!0,i("refresherrefresh",{},{dy:C.y-S.y}),l("update:refresherTriggered",!0));break;case"restore":case"refresherabort":c=!1,t.refresherHeight=d=0,"restore"===n&&(u=!1,i("refresherrestore",{},{dy:C.y-S.y})),"refresherabort"===n&&u&&(u=!1,i("refresherabort",{},{dy:C.y-S.y}))}t.refreshState=n}}let S={x:0,y:0},C={x:0,y:e.refresherThreshold};return onMounted((()=>{nextTick((()=>{v(n.value),_(a.value)})),b(e.scrollIntoView);let o=function(e){e.preventDefault(),e.stopPropagation(),function(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}),h.value&&(n.scrollTop<=f.value&&t.lastScrollTop-n.scrollTop>0&&e.timeStamp-t.lastScrollToUpperTime>200&&(i("scrolltoupper",e,{direction:"top"}),t.lastScrollToUpperTime=e.timeStamp),n.scrollTop+n.offsetHeight+g.value>=n.scrollHeight&&t.lastScrollTop-n.scrollTop<0&&e.timeStamp-t.lastScrollToLowerTime>200&&(i("scrolltolower",e,{direction:"bottom"}),t.lastScrollToLowerTime=e.timeStamp)),p.value&&(n.scrollLeft<=f.value&&t.lastScrollLeft-n.scrollLeft>0&&e.timeStamp-t.lastScrollToUpperTime>200&&(i("scrolltoupper",e,{direction:"left"}),t.lastScrollToUpperTime=e.timeStamp),n.scrollLeft+n.offsetWidth+g.value>=n.scrollWidth&&t.lastScrollLeft-n.scrollLeft<0&&e.timeStamp-t.lastScrollToLowerTime>200&&(i("scrolltolower",e,{direction:"right"}),t.lastScrollToLowerTime=e.timeStamp)),t.lastScrollTop=n.scrollTop,t.lastScrollLeft=n.scrollLeft}(e)},s=null,l=function(n){if(null===S)return;let a=n.touches[0].pageX,o=n.touches[0].pageY,l=r.value;if(Math.abs(a-S.x)>Math.abs(o-S.y))if(p.value){if(0===l.scrollLeft&&a>S.x)return void(s=!1);if(l.scrollWidth===l.offsetWidth+l.scrollLeft&&a<S.x)return void(s=!1);s=!0}else s=!1;else if(h.value)if(0===l.scrollTop&&o>S.y)s=!1,e.refresherEnabled&&!1!==n.cancelable&&n.preventDefault();else{if(l.scrollHeight===l.offsetHeight+l.scrollTop&&o<S.y)return void(s=!1);s=!0}else s=!1;if(s&&n.stopPropagation(),0===l.scrollTop&&1===n.touches.length&&w("pulling"),e.refresherEnabled&&"pulling"===t.refreshState){const a=o-S.y;0===d&&(d=o),c?(t.refresherHeight=a+e.refresherThreshold,u=!1):(t.refresherHeight=o-d,t.refresherHeight>0&&(u=!0,i("refresherpulling",n,{deltaY:a,dy:a})))}},m=function(e){1===e.touches.length&&(S={x:e.touches[0].pageX,y:e.touches[0].pageY})},y=function(n){C={x:n.changedTouches[0].pageX,y:n.changedTouches[0].pageY},t.refresherHeight>=e.refresherThreshold?w("refreshing"):w("refresherabort"),S={x:0,y:0},C={x:0,y:e.refresherThreshold}};r.value.addEventListener("touchstart",m,passiveOptions),r.value.addEventListener("touchmove",l,passive(!1)),r.value.addEventListener("scroll",o,passive(!1)),r.value.addEventListener("touchend",y,passiveOptions),onBeforeUnmount((()=>{r.value.removeEventListener("touchstart",m),r.value.removeEventListener("touchmove",l),r.value.removeEventListener("scroll",o),r.value.removeEventListener("touchend",y)}))})),onActivated((()=>{h.value&&(r.value.scrollTop=t.lastScrollTop),p.value&&(r.value.scrollLeft=t.lastScrollLeft)})),watch(n,(e=>{v(e)})),watch(a,(e=>{_(e)})),watch((()=>e.scrollIntoView),(e=>{b(e)})),watch((()=>e.refresherTriggered),(e=>{!0===e?w("refreshing"):!1===e&&w("restore")})),{realScrollX:p,realScrollY:h}}const props$k={indicatorDots:{type:[Boolean,String],default:!1},vertical:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},circular:{type:[Boolean,String],default:!1},interval:{type:[Number,String],default:5e3},duration:{type:[Number,String],default:500},current:{type:[Number,String],default:0},indicatorColor:{type:String,default:""},indicatorActiveColor:{type:String,default:""},previousMargin:{type:String,default:""},nextMargin:{type:String,default:""},currentItemId:{type:String,default:""},skipHiddenItemLayout:{type:[Boolean,String],default:!1},displayMultipleItems:{type:[Number,String],default:1},disableTouch:{type:[Boolean,String],default:!1},navigation:{type:[Boolean,String],default:!1},navigationColor:{type:String,default:"#fff"},navigationActiveColor:{type:String,default:"rgba(53, 53, 53, 0.6)"}};function useState$3(e){return reactive({interval:computed((()=>{const t=Number(e.interval);return isNaN(t)?5e3:t})),duration:computed((()=>{const t=Number(e.duration);return isNaN(t)?500:t})),displayMultipleItems:computed((()=>{const t=Math.round(e.displayMultipleItems);return isNaN(t)?1:t})),current:Math.round(e.current)||0,currentItemId:e.currentItemId,userTracking:!1})}function useLayout(e,t,n,a,i,o){function r(){c&&(clearTimeout(c),c=null)}let s,l,c=null,d=!0,u=0,m=1,p=null,h=!1,f=0,g="";const y=computed((()=>n.value.length>t.displayMultipleItems)),v=computed((()=>e.circular&&y.value));function _(i){Math.floor(2*u)===Math.floor(2*i)&&Math.ceil(2*u)===Math.ceil(2*i)||v.value&&function(a){if(!d)for(let i=n.value,o=i.length,r=a+t.displayMultipleItems,s=0;s<o;s++){const t=i[s],n=Math.floor(a/o)*o+s,l=n+o,c=n-o,d=Math.max(a-(n+1),n-r,0),u=Math.max(a-(l+1),l-r,0),m=Math.max(a-(c+1),c-r,0),p=Math.min(d,u,m),h=[n,l,c][[d,u,m].indexOf(p)];t.updatePosition(h,e.vertical)}}(i);const r="translate("+(e.vertical?"0":100*-i*m+"%")+", "+(e.vertical?100*-i*m+"%":"0")+") translateZ(0)",l=a.value;if(l&&(l.style.webkitTransform=r,l.style.transform=r),u=i,!s){if(i%1==0)return;s=i}i-=Math.floor(s);const c=n.value;i<=-(c.length-1)?i+=c.length:i>=c.length&&(i-=c.length),i=s%1>.5||s<0?i-1:i,o("transition",{},{dx:e.vertical?0:i*l.offsetWidth,dy:e.vertical?i*l.offsetHeight:0})}function b(e){const a=n.value.length;if(!a)return-1;const i=(Math.round(e)%a+a)%a;if(v.value){if(a<=t.displayMultipleItems)return 0}else if(i>a-t.displayMultipleItems)return a-t.displayMultipleItems;return i}function w(){p=null}function S(){if(!p)return void(h=!1);const e=p,a=e.toPos,i=e.acc,r=e.endTime,c=e.source,d=r-Date.now();if(d<=0){_(a),p=null,h=!1,s=null;const e=n.value[t.current];if(e){const n=e.getItemId();o("animationfinish",{},{current:t.current,currentItemId:n,source:c})}return}_(a+i*d*d/2),l=requestAnimationFrame(S)}function C(e,a,i){w();const o=t.duration,r=n.value.length;let s=u;if(v.value)if(i<0){for(;s<e;)s+=r;for(;s-r>e;)s-=r}else if(i>0){for(;s>e;)s-=r;for(;s+r<e;)s+=r;s+r-e<e-s&&(s+=r)}else{for(;s+r<e;)s+=r;for(;s-r>e;)s-=r;s+r-e<e-s&&(s+=r)}else"click"===a&&(e=e+t.displayMultipleItems-1<r?e:0);p={toPos:e,acc:2*(s-e)/(o*o),endTime:Date.now()+o,source:a},h||(h=!0,l=requestAnimationFrame(S))}function k(){r();const e=n.value,a=function(){c=null,g="autoplay",v.value?t.current=b(t.current+1):t.current=t.current+t.displayMultipleItems<e.length?t.current+1:0,C(t.current,"autoplay",v.value?1:0),c=setTimeout(a,t.interval)};d||e.length<=t.displayMultipleItems||(c=setTimeout(a,t.interval))}function x(e){e?k():r()}return watch([()=>e.current,()=>e.currentItemId,()=>[...n.value]],(()=>{let a=-1;if(e.currentItemId)for(let t=0,i=n.value;t<i.length;t++){if(i[t].getItemId()===e.currentItemId){a=t;break}}a<0&&(a=Math.round(e.current)||0),a=a<0?0:a,t.current!==a&&(g="",t.current=a)})),watch([()=>e.vertical,()=>v.value,()=>t.displayMultipleItems,()=>[...n.value]],(function(){r(),p&&(_(p.toPos),p=null);const i=n.value;for(let t=0;t<i.length;t++)i[t].updatePosition(t,e.vertical);m=1;const o=a.value;if(1===t.displayMultipleItems&&i.length){const e=i[0].getBoundingClientRect(),t=o.getBoundingClientRect();m=e.width/t.width,m>0&&m<1||(m=1)}const s=u;u=-2;const l=t.current;l>=0?(d=!1,t.userTracking?(_(s+l-f),f=l):(_(l),e.autoplay&&k())):(d=!0,_(-t.displayMultipleItems-1))})),watch((()=>t.interval),(()=>{c&&(r(),k())})),watch((()=>t.current),((e,a)=>{!function(e,a){const i=g;g="";const r=n.value;if(!i){const t=r.length;C(e,"",v.value&&a+(t-e)%t>t/2?1:0)}const s=r[e];if(s){const e=t.currentItemId=s.getItemId();o("change",{},{current:t.current,currentItemId:e,source:i})}}(e,a),i("update:current",e)})),watch((()=>t.currentItemId),(e=>{i("update:currentItemId",e)})),watch((()=>e.autoplay&&!t.userTracking),x),x(e.autoplay&&!t.userTracking),onMounted((()=>{let i=!1,o=0,s=0;function l(e){t.userTracking=!1;const n=o/Math.abs(o);let a=0;!e&&Math.abs(o)>.2&&(a=.5*n);const i=b(u+a);e?_(f):(g="touch",t.current=i,C(i,"touch",0!==a?a:0===i&&v.value&&u>=1?1:0))}useTouchtrack(a.value,(c=>{if(!e.disableTouch&&!d){if("start"===c.detail.state)return t.userTracking=!0,i=!1,r(),f=u,o=0,s=Date.now(),void w();if("end"===c.detail.state)return l(!1);if("cancel"===c.detail.state)return l(!0);if(t.userTracking){if(!i){i=!0;const n=Math.abs(c.detail.dx),a=Math.abs(c.detail.dy);if((n>=a&&e.vertical||n<=a&&!e.vertical)&&(t.userTracking=!1),!t.userTracking)return void(e.autoplay&&k())}return function(i){const r=s;s=Date.now();const l=n.value.length-t.displayMultipleItems;function c(e){return.5-.25/(e+.5)}function d(e,t){let n=f+e;o=.6*o+.4*t,v.value||(n<0||n>l)&&(n<0?n=-c(-n):n>l&&(n=l+c(n-l)),o=0),_(n)}const u=s-r||1,m=a.value;e.vertical?d(-i.dy/m.offsetHeight,-i.ddy/u):d(-i.dx/m.offsetWidth,-i.ddx/u)}(c.detail),!1}}}))})),onUnmounted((()=>{r(),cancelAnimationFrame(l)})),{onSwiperDotClick:function(e){C(t.current=e,g="click",v.value?1:0)},circularEnabled:v,swiperEnabled:y}}const Swiper=defineBuiltInComponent({name:"Swiper",props:props$k,emits:["change","transition","animationfinish","update:current","update:currentItemId"],setup(e,{slots:t,emit:n}){const a=ref(null),i=useCustomEvent(a,n),o=ref(null),r=ref(null),s=useState$3(e),l=computed((()=>{let t={};return(e.nextMargin||e.previousMargin)&&(t=e.vertical?{left:0,right:0,top:rpx2px(e.previousMargin,!0),bottom:rpx2px(e.nextMargin,!0)}:{top:0,bottom:0,left:rpx2px(e.previousMargin,!0),right:rpx2px(e.nextMargin,!0)}),t})),c=computed((()=>{const t=Math.abs(100/s.displayMultipleItems)+"%";return{width:e.vertical?"100%":t,height:e.vertical?t:"100%"}}));let d=[];const u=[],m=ref([]);function p(){const e=[];for(let t=0;t<d.length;t++){let n=d[t];n instanceof Element||(n=n.el);const a=u.find((e=>n===e.rootRef.value));a&&e.push(markRaw(a))}m.value=e}provide("addSwiperContext",(function(e){u.push(e),p()}));provide("removeSwiperContext",(function(e){const t=u.indexOf(e);t>=0&&(u.splice(t,1),p())}));const{onSwiperDotClick:h,circularEnabled:f,swiperEnabled:g}=useLayout(e,s,m,r,n,i);let y=()=>null;return y=useSwiperNavigation(a,e,s,h,m,f,g),()=>{const n=t.default&&t.default();return d=flatVNode(n),createVNode("uni-swiper",{ref:a},[createVNode("div",{ref:o,class:"uni-swiper-wrapper"},[createVNode("div",{class:"uni-swiper-slides",style:l.value},[createVNode("div",{ref:r,class:"uni-swiper-slide-frame",style:c.value},[n],4)],4),e.indicatorDots&&createVNode("div",{class:["uni-swiper-dots",e.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},[m.value.map(((t,n,a)=>createVNode("div",{onClick:()=>h(n),class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":n<s.current+s.displayMultipleItems&&n>=s.current||n<s.current+s.displayMultipleItems-a.length},style:{background:n===s.current?e.indicatorActiveColor:e.indicatorColor}},null,14,["onClick"])))],2),y()],512)],512)}}}),useSwiperNavigation=(e,t,n,a,i,o,r)=>{let s=!1,l=!1,c=!1,d=ref(!1);function u(e,n){const a=e.currentTarget;a&&(a.style.backgroundColor="over"===n?t.navigationActiveColor:"")}watchEffect((()=>{s="auto"===t.navigation,d.value=!0!==t.navigation||s,v()})),watchEffect((()=>{const e=i.value.length,t=!o.value;l=0===n.current&&t,c=n.current===e-1&&t||t&&n.current+n.displayMultipleItems>=e,r.value||(l=!0,c=!0,s&&(d.value=!0))}));const m={onMouseover:e=>u(e,"over"),onMouseout:e=>u(e,"out")};function p(e,t,r){if(e.stopPropagation(),r)return;const s=i.value.length;let l=n.current;switch(t){case"prev":l--,l<0&&o.value&&(l=s-1);break;case"next":l++,l>=s&&o.value&&(l=0)}a(l)}const h=()=>createSvgIconVNode(ICON_PATH_BACK,t.navigationColor,26);let f;const g=n=>{clearTimeout(f);const{clientX:a,clientY:i}=n,{left:o,right:r,top:s,bottom:l,width:c,height:u}=e.value.getBoundingClientRect();let m=!1;if(m=t.vertical?!(i-s<u/3||l-i<u/3):!(a-o<c/3||r-a<c/3),m)return f=setTimeout((()=>{d.value=m}),300);d.value=m},y=()=>{d.value=!0};function v(){e.value&&(e.value.removeEventListener("mousemove",g),e.value.removeEventListener("mouseleave",y),s&&(e.value.addEventListener("mousemove",g),e.value.addEventListener("mouseleave",y)))}return onMounted(v),function(){const e={"uni-swiper-navigation-hide":d.value,"uni-swiper-navigation-vertical":t.vertical};return t.navigation?createVNode(Fragment,null,[createVNode("div",mergeProps({class:["uni-swiper-navigation uni-swiper-navigation-prev",extend$1({"uni-swiper-navigation-disabled":l},e)],onClick:e=>p(e,"prev",l)},m),[h()],16,["onClick"]),createVNode("div",mergeProps({class:["uni-swiper-navigation uni-swiper-navigation-next",extend$1({"uni-swiper-navigation-disabled":c},e)],onClick:e=>p(e,"next",c)},m),[h()],16,["onClick"])]):null}},props$j={itemId:{type:String,default:""}},SwiperItem=defineBuiltInComponent({name:"SwiperItem",props:props$j,setup(e,{slots:t}){const n=ref(null),a={rootRef:n,getItemId:()=>e.itemId,getBoundingClientRect:()=>n.value.getBoundingClientRect(),updatePosition(e,t){const a=t?"0":100*e+"%",i=t?100*e+"%":"0",o=n.value,r=`translate(${a},${i}) translateZ(0)`;o&&(o.style.webkitTransform=r,o.style.transform=r)}};return onMounted((()=>{const e=inject("addSwiperContext");e&&e(a)})),onUnmounted((()=>{const e=inject("removeSwiperContext");e&&e(a)})),()=>createVNode("uni-swiper-item",{ref:n,style:{position:"absolute",width:"100%",height:"100%"}},[t.default&&t.default()],512)}}),props$i={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:""}},index$j=defineBuiltInComponent({name:"Switch",props:props$i,emits:["change"],setup(e,{emit:t}){const n=ref(null),a=ref(e.checked),i=useSwitchInject(e,a),o=useCustomEvent(n,t);watch((()=>e.checked),(e=>{a.value=e}));const r=t=>{e.disabled||(a.value=!a.value,o("change",t,{value:a.value}))};return i&&(i.addHandler(r),onBeforeUnmount((()=>{i.removeHandler(r)}))),useListeners$1(e,{"label-click":r}),()=>{const{color:t,type:i}=e,o=useBooleanAttr(e,"disabled"),s={};let l;return t&&a.value&&(s.backgroundColor=t,s.borderColor=t),l=a.value,createVNode("uni-switch",mergeProps({id:e.id,ref:n},o,{onClick:r}),[createVNode("div",{class:"uni-switch-wrapper"},[withDirectives(createVNode("div",{class:["uni-switch-input",[a.value?"uni-switch-input-checked":""]],style:s},null,6),[[vShow,"switch"===i]]),withDirectives(createVNode("div",{class:"uni-checkbox-input"},[l?createSvgIconVNode(ICON_PATH_SUCCESS_NO_CIRCLE,e.color,22):""],512),[[vShow,"checkbox"===i]])])],16,["id","onClick"])}}});function useSwitchInject(e,t){const n=inject(uniFormKey,!1),a=inject(uniLabelKey,!1),i={submit:()=>{const n=["",null];return e.name&&(n[0]=e.name,n[1]=t.value),n},reset:()=>{t.value=!1}};return n&&(n.addField(i),onUnmounted((()=>{n.removeField(i)}))),a}const SPACE_UNICODE={ensp:" ",emsp:" ",nbsp:" "};function normalizeText(e,{space:t,decode:n}){let a="",i=!1;for(let o of e)t&&SPACE_UNICODE[t]&&" "===o&&(o=SPACE_UNICODE[t]),i?(a+="n"===o?LINEFEED:"\\"===o?"\\":"\\"+o,i=!1):"\\"===o?i=!0:a+=o;return n?a.replace(/&nbsp;/g,SPACE_UNICODE.nbsp).replace(/&ensp;/g,SPACE_UNICODE.ensp).replace(/&emsp;/g,SPACE_UNICODE.emsp).replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&apos;/g,"'"):a}function parseText(e,t){return normalizeText(e,t).split(LINEFEED)}const index$i=defineBuiltInComponent({name:"Text",props:{selectable:{type:[Boolean,String],default:!1},space:{type:String,default:""},decode:{type:[Boolean,String],default:!1}},setup(e,{slots:t}){const n=ref(null);return()=>{const a=[];return t.default&&t.default().forEach((t=>{if(8&t.shapeFlag&&t.type!==Comment){const n=parseText(t.children,{space:e.space,decode:e.decode}),i=n.length-1;n.forEach(((e,t)=>{(0!==t||e)&&a.push(createTextVNode(e)),t!==i&&a.push(createVNode("br"))}))}else a.push(t)})),createVNode("uni-text",{ref:n,selectable:!!e.selectable||null},[createVNode("span",null,a)],8,["selectable"])}}}),props$h=extend$1({},props$r,{placeholderClass:{type:String,default:"input-placeholder"},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:"return",validator:e=>ConfirmTypes.concat("return").includes(e)}});let fixMargin=!1;const ConfirmTypes=["done","go","next","search","send"];function setFixMargin(){const e="(prefers-color-scheme: dark)";fixMargin=0===String(navigator.platform).indexOf("iP")&&0===String(navigator.vendor).indexOf("Apple")&&window.matchMedia(e).media!==e}const index$h=defineBuiltInComponent({name:"Textarea",props:props$h,emits:["confirm","linechange",...emit],setup(e,{emit:t,expose:n}){const a=ref(null),i=ref(null),{fieldRef:o,state:r,scopedAttrsState:s,fixDisabledColor:l,trigger:c}=useField(e,a,t),d=computed((()=>r.value.split(LINEFEED))),u=computed((()=>ConfirmTypes.includes(e.confirmType))),m=ref(0),p=ref(null);function h({height:e}){m.value=e}function f(e){"Enter"===e.key&&u.value&&e.preventDefault()}function g(t){if("Enter"===t.key&&u.value){!function(e){c("confirm",e,{value:r.value})}(t);const n=t.target;!e.confirmHold&&n.blur()}}return watch((()=>m.value),(t=>{const n=a.value,o=p.value,r=i.value;let s=parseFloat(getComputedStyle(n).lineHeight);isNaN(s)&&(s=o.offsetHeight);var l=Math.round(t/s);c("linechange",{},{height:t,heightRpx:750/window.innerWidth*t,lineCount:l}),e.autoHeight&&(n.style.height="auto",r.style.height=t+"px")})),setFixMargin(),n({$triggerInput:e=>{t("update:modelValue",e.value),t("update:value",e.value),r.value=e.value}}),()=>{let t=e.disabled&&l?createVNode("textarea",{key:"disabled-textarea",ref:o,value:r.value,tabindex:"-1",readonly:!!e.disabled,maxlength:r.maxlength,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":fixMargin},style:{overflowY:e.autoHeight?"hidden":"auto",...e.cursorColor&&{caretColor:e.cursorColor}},onFocus:e=>e.target.blur()},null,46,["value","readonly","maxlength","onFocus"]):createVNode("textarea",{key:"textarea",ref:o,value:r.value,disabled:!!e.disabled,maxlength:r.maxlength,enterkeyhint:e.confirmType,inputmode:e.inputmode,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":fixMargin},style:{overflowY:e.autoHeight?"hidden":"auto",...e.cursorColor&&{caretColor:e.cursorColor}},onKeydown:f,onKeyup:g},null,46,["value","disabled","maxlength","enterkeyhint","inputmode","onKeydown","onKeyup"]);return createVNode("uni-textarea",{ref:a},[createVNode("div",{ref:i,class:"uni-textarea-wrapper"},[withDirectives(createVNode("div",mergeProps(s.attrs,{style:e.placeholderStyle,class:["uni-textarea-placeholder",e.placeholderClass]}),[e.placeholder],16),[[vShow,!r.value.length]]),createVNode("div",{ref:p,class:"uni-textarea-line"},[" "],512),createVNode("div",{class:"uni-textarea-compute"},[d.value.map((e=>createVNode("div",null,[e.trim()?e:"."]))),createVNode(ResizeSensor,{initial:!0,onResize:h},null,8,["initial","onResize"])]),"search"===e.confirmType?createVNode("form",{action:"",onSubmit:()=>!1,class:"uni-input-form"},[t],40,["onSubmit"]):t],512)],512)}}}),index$g=defineBuiltInComponent({name:"View",props:extend$1({},hoverProps),setup(e,{slots:t}){const n=ref(null),{hovering:a,binding:i}=useHover(e);return()=>{const o=e.hoverClass;return o&&"none"!==o?createVNode("uni-view",mergeProps({class:a.value?o:"",ref:n},i),[t.default&&t.default()],16):createVNode("uni-view",{ref:n},[t.default&&t.default()],512)}}});function normalizeEvent(e,t){if(t||(t=e.id),t)return e.$options.name.toLowerCase()+"."+t}function addSubscribe(e,t,n){e&&registerViewMethod(n||getCurrentPageId(),e,(({type:e,data:n},a)=>{t(e,n,a)}))}function removeSubscribe(e,t){e&&unregisterViewMethod(t||getCurrentPageId(),e)}function useSubscribe(e,t,n,a){const i=getCurrentInstance().proxy;onMounted((()=>{addSubscribe(t||normalizeEvent(i),e,a),!n&&t||watch((()=>i.id),((t,n)=>{addSubscribe(normalizeEvent(i,t),e,a),removeSubscribe(n&&normalizeEvent(i,n))}))})),onBeforeUnmount((()=>{removeSubscribe(t||normalizeEvent(i),a)}))}let index$f=0;function useContextInfo(e){const t=useCurrentPageId(),n=getCurrentInstance().proxy,a=n.$options.name.toLowerCase(),i=e||n.id||"context"+index$f++;return onMounted((()=>{n.$el.__uniContextInfo={id:i,type:a,page:t}})),`${a}.${i}`}function getContextInfo(e){return e.__uniContextInfo}function injectLifecycleHook(e,t,n,a){isFunction(t)&&injectHook(e,t.bind(n),a)}function initHooks(e,t,n){var a;const i=e.mpType||n.$mpType;if(i&&"component"!==i&&(Object.keys(e).forEach((a=>{if(isUniLifecycleHook(a,e[a],!1)){const i=e[a];isArray$1(i)?i.forEach((e=>injectLifecycleHook(a,e,n,t))):injectLifecycleHook(a,i,n,t)}})),"page"===i)){t.__isVisible=!0;try{const e=t.attrs.__pageQuery;0,invokeHook(n,ON_LOAD,e),delete t.attrs.__pageQuery,"preloadPage"!==(null==(a=n.$page)?void 0:a.openType)&&invokeHook(n,ON_SHOW)}catch(e2){console.error(e2.message+LINEFEED+e2.stack)}}}function applyOptions(e,t,n){initHooks(e,t,n)}function set(e,t,n){return e[t]=n}function $callMethod(e,...t){const n=this[e];return n?n(...t):(console.error(`method ${e} not found`),null)}function createErrorHandler(e){return function(t,n,a){if(!n)throw t;const i=e._instance;if(!i||!i.proxy)throw t;invokeHook(i.proxy,ON_ERROR,t)}}function mergeAsArray(e,t){return e?[...new Set([].concat(e,t))]:t}function initOptionMergeStrategies(e){UniLifecycleHooks.forEach((t=>{e[t]=mergeAsArray}))}function initApp$1(e){const t=e._context.config;t.errorHandler=invokeCreateErrorHandler(e,createErrorHandler),initOptionMergeStrategies(t.optionMergeStrategies);const n=t.globalProperties;n.$set=set,n.$applyOptions=applyOptions,n.$callMethod=$callMethod,invokeCreateVueAppHook(e)}const pageMetaKey=PolySymbol("upm");function usePageMeta(){return inject(pageMetaKey)}function providePageMeta(e){const t=initPageMeta(e);return provide(pageMetaKey,t),t}function usePageRoute(){return useRoute()}function initPageMeta(e){return reactive(normalizePageMeta(JSON.parse(JSON.stringify(initRouteMeta(useRoute().meta,e)))))}function normalizePageMeta(e){{const{enablePullDownRefresh:t,navigationBar:n}=e;if(t){const t=normalizePullToRefreshRpx(extend$1({support:!0,color:"#2BD009",style:"circle",height:70,range:150,offset:0},e.pullToRefresh)),{type:a,style:i}=n;"custom"!==i&&"transparent"!==a&&(t.offset+=NAVBAR_HEIGHT+safeAreaInsets$1.top),e.pullToRefresh=t}}{const{navigationBar:t}=e,{titleSize:n,titleColor:a,backgroundColor:i}=t;t.titleText=t.titleText||"",t.type=t.type||"default",t.titleSize=n||"16px",t.titleColor=a||"#000000",t.backgroundColor=i||"#F8F8F8"}if(history.state){const t=history.state.__type__;"redirectTo"!==t&&"reLaunch"!==t||0!==getCurrentPages$1().length||(e.isEntry=!0,e.isQuit=!0)}return e}function getStateId(){return history.state&&history.state.__id__||1}let tabBar;function useTabBar(){return tabBar||(tabBar=__uniConfig.tabBar&&reactive(initTabBarI18n(__uniConfig.tabBar))),tabBar}const supports=window.CSS&&window.CSS.supports;function cssSupports(e){return supports&&(supports(e)||supports.apply(window.CSS,e.split(":")))}const cssEnv=cssSupports("top:env(a)"),cssConstant=cssSupports("top:constant(a)"),envMethod=(()=>cssEnv?"env":cssConstant?"constant":"")();function updateCurPageCssVar(e){let t=0;"custom"!==e.navigationBar.style&&["default","float"].indexOf(e.navigationBar.type)>-1&&(t=NAVBAR_HEIGHT),updatePageCssVar({"--window-top":normalizeWindowTop(t),"--window-bottom":normalizeWindowBottom(0)})}function normalizeWindowTop(e){return envMethod?`calc(${e}px + ${envMethod}(safe-area-inset-top))`:`${e}px`}function normalizeWindowBottom(e){return envMethod?`calc(${e}px + ${envMethod}(safe-area-inset-bottom))`:`${e}px`}const SEP="$$",currentPagesMap=new Map;function pruneCurrentPages(){currentPagesMap.forEach(((e,t)=>{e.$.isUnmounted&&currentPagesMap.delete(t)}))}function getCurrentPagesMap(){return currentPagesMap}function getCurrentPages$1(){const e=[],t=currentPagesMap.values();for(const n of t)n.$.__isTabBar?n.$.__isActive&&e.push(n):e.push(n);return e}function removeRouteCache(e){const t=pageCacheMap.get(e);t&&(pageCacheMap.delete(e),routeCache.pruneCacheEntry(t))}function removePage(e,t=!0){const n=currentPagesMap.get(e);n.$.__isUnload=!0,invokeHook(n,ON_UNLOAD),currentPagesMap.delete(e),t&&removeRouteCache(e)}let id=getStateId();function createPageState(e,t){return{__id__:t||++id,__type__:e}}function initPublicPage(e){const t=usePageMeta();let n=e.fullPath;return e.meta.isEntry&&-1===n.indexOf(e.meta.route)&&(n="/"+e.meta.route+n.replace("/","")),initPageInternalInstance("navigateTo",n,{},t)}function initPage(e){const t=initPublicPage(e.$route);initPageVm(e,t),currentPagesMap.set(normalizeRouteKey(t.path,t.id),e)}function normalizeRouteKey(e,t){return e+SEP+t}function useKeepAliveRoute(){const e=useRoute();return{routeKey:computed((()=>normalizeRouteKey("/"+e.meta.route,getStateId()))),isTabBar:computed((()=>e.meta.isTabBar)),routeCache:routeCache}}const pageCacheMap=new Map,routeCache={get:e=>pageCacheMap.get(e),set(e,t){pruneRouteCache(e),pageCacheMap.set(e,t)},delete(e){pageCacheMap.get(e)&&pageCacheMap.delete(e)},forEach(e){pageCacheMap.forEach(e)}};function pruneRouteCache(e){const t=parseInt(e.split(SEP)[1]);t&&routeCache.forEach(((e,n)=>{const a=parseInt(n.split(SEP)[1]);a&&a>t&&(routeCache.delete(n),routeCache.pruneCacheEntry(e),nextTick((()=>pruneCurrentPages())))}))}function updateCurPageAttrs(e){{const t="nvue-dir-"+__uniConfig.nvue["flex-direction"];e.isNVue?(document.body.setAttribute("nvue",""),document.body.setAttribute(t,"")):(document.body.removeAttribute("nvue"),document.body.removeAttribute(t))}}function onPageShow(e,t){updateBodyScopeId(e),updateCurPageCssVar(t),updateCurPageAttrs(t),initPageScrollListener(e,t)}function onPageReady(e){const t=getScopeId(e);t&&updateCurPageBodyScopeId(t)}function updateCurPageBodyScopeId(e){const t=document.querySelector("uni-page-body");t&&t.setAttribute(e,"")}function getScopeId(e){return e.type.__scopeId}let curScopeId,curScrollListener;function updateBodyScopeId(e){const t=getScopeId(e),{body:n}=document;curScopeId&&n.removeAttribute(curScopeId),t&&n.setAttribute(t,""),curScopeId=t}function initPageScrollListener(e,t){if(document.removeEventListener("touchmove",disableScrollListener),curScrollListener&&document.removeEventListener("scroll",curScrollListener),t.disableScroll)return document.addEventListener("touchmove",disableScrollListener);const{onPageScroll:n,onReachBottom:a}=e,i="transparent"===t.navigationBar.type;if(!n&&!a&&!i)return;const o={},r=e.proxy.$page.id;(n||i)&&(o.onPageScroll=createOnPageScroll(r,n,i)),a&&(o.onReachBottomDistance=t.onReachBottomDistance||ON_REACH_BOTTOM_DISTANCE,o.onReachBottom=()=>UniViewJSBridge$1.publishHandler(ON_REACH_BOTTOM,{},r)),curScrollListener=createScrollListener(o),requestAnimationFrame((()=>document.addEventListener("scroll",curScrollListener)))}function createOnPageScroll(e,t,n){return a=>{t&&UniViewJSBridge$1.publishHandler(ON_PAGE_SCROLL,{scrollTop:a},e),n&&UniViewJSBridge$1.emit(e+"."+ON_PAGE_SCROLL,{scrollTop:a})}}function initRouter(e){const t=createRouter(createRouterOptions());e.router=t,e.use(t)}const scrollBehavior=(e,t,n)=>{if(n)return n};function createRouterOptions(){return{history:initHistory(),strict:!!__uniConfig.router.strict,routes:__uniRoutes,scrollBehavior:scrollBehavior}}function removeCurrentPages(e=1){const t=getCurrentPages$1(),n=t.length-1,a=n-e;for(let i=n;i>a;i--){const e=t[i].$page;removePage(normalizeRouteKey(e.path,e.id),!1)}}function initHistory(){let{routerBase:e}=__uniConfig.router;"/"===e&&(e="");const t=createWebHistory(e);return t.listen(((e,t,n)=>{"back"===n.direction&&removeCurrentPages(Math.abs(n.delta))})),t}const index$e={install(e){initApp$1(e),initViewPlugin(e),initServicePlugin(e),e.config.warnHandler||(e.config.warnHandler=warnHandler),initRouter(e)}};function warnHandler(e,t,n){if(t){if("PageMetaHead"===t.$.type.name)return;const e=t.$.parent;if(e&&"PageMeta"===e.type.name)return}const a=[`[Vue warn]: ${e}`];n.length&&a.push("\n",n),console.warn(...a)}const clazz={class:"uni-async-loading"},loadingVNode=createVNode("i",{class:"uni-loading"},null,-1),AsyncLoadingComponent=defineSystemComponent({name:"AsyncLoading",render:()=>(openBlock(),createBlock("div",clazz,[loadingVNode]))});function reload(){window.location.reload()}const AsyncErrorComponent=defineSystemComponent({name:"AsyncError",setup(){initI18nAsyncMsgsOnce();const{t:e}=useI18n();return()=>createVNode("div",{class:"uni-async-error",onClick:reload},[e("uni.async.error")],8,["onClick"])}});let appVm;function getApp$1(){return appVm}function initApp(e){appVm=e,Object.defineProperty(appVm.$.ctx,"$children",{get:()=>getCurrentPages$1().map((e=>e.$vm))});const t=appVm.$.appContext.app;t.component(AsyncLoadingComponent.name)||t.component(AsyncLoadingComponent.name,AsyncLoadingComponent),t.component(AsyncErrorComponent.name)||t.component(AsyncErrorComponent.name,AsyncErrorComponent),initAppVm(appVm),defineGlobalData(appVm),initService(),initView()}function wrapperComponentSetup(e,{clone:t,init:n,setup:a,before:i}){t&&(e=extend$1({},e)),i&&i(e);const o=e.setup;return e.setup=(e,t)=>{const i=getCurrentInstance();n(i.proxy);const r=a(i);if(o)return o(r||e,t)},e}function setupComponent(e,t){return e&&(e.__esModule||"Module"===e[Symbol.toStringTag])?wrapperComponentSetup(e.default,t):wrapperComponentSetup(e,t)}function setupPage(e){return setupComponent(e,{clone:!0,init:initPage,setup(e){e.$pageInstance=e;const t=usePageRoute(),n=decodedQuery(t.query);e.attrs.__pageQuery=n,e.proxy.$page.options=n,e.proxy.options=n;const a=usePageMeta();return onBeforeMount((()=>{onPageShow(e,a)})),onMounted((()=>{onPageReady(e);const{onReady:n}=e;n&&invokeArrayFns$1(n),invokeOnTabItemTap(t)})),onBeforeActivate((()=>{if(!e.__isVisible){onPageShow(e,a),e.__isVisible=!0;const{onShow:n}=e;n&&invokeArrayFns$1(n),nextTick((()=>{invokeOnTabItemTap(t)}))}})),onBeforeDeactivate((()=>{if(e.__isVisible&&!e.__isUnload){e.__isVisible=!1;const{onHide:t}=e;t&&invokeArrayFns$1(t)}})),subscribeViewMethod(a.id),onBeforeUnmount((()=>{unsubscribeViewMethod(a.id)})),n}})}function setupApp(e){return setupComponent(e,{init:initApp,setup(e){const t=usePageRoute(),n=()=>{injectAppHooks(e);const{onLaunch:n,onShow:a,onPageNotFound:i,onError:o}=e,r=initLaunchOptions({path:t.path.slice(1)||__uniRoutes[0].meta.route,query:decodedQuery(t.query)});if(n&&invokeArrayFns$1(n,r),a&&invokeArrayFns$1(a,r),!t.matched.length){const e={notFound:!0,openType:"appLaunch",path:t.path,query:{},scene:1001};i&&invokeArrayFns$1(i,e)}o&&(e.appContext.config.errorHandler=e=>{invokeArrayFns$1(o,e)})};return useRouter().isReady().then(n),onMounted((()=>{window.addEventListener("resize",debounce$1(onResize,50,{setTimeout:setTimeout,clearTimeout:clearTimeout})),window.addEventListener("message",onMessage),document.addEventListener("visibilitychange",onVisibilityChange),onThemeChange$2()})),t.query},before(e){e.mpType="app";const{setup:t}=e,n=()=>(openBlock(),createBlock(LayoutComponent));e.setup=(e,a)=>{const i=t&&t(e,a);return isFunction(i)?n:i},e.render=n}})}function onResize(){const{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:a}=getSystemInfoSync(),i=90===Math.abs(Number(window.orientation))?"landscape":"portrait";UniServiceJSBridge$1.emit(ON_RESIZE,{deviceOrientation:i,size:{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:a}})}function onMessage(e){isPlainObject(e.data)&&e.data.type===WEB_INVOKE_APPSERVICE&&UniServiceJSBridge$1.emit(ON_WEB_INVOKE_APP_SERVICE,e.data.data,e.data.pageId)}function onVisibilityChange(){const{emit:e}=UniServiceJSBridge$1;"visible"===document.visibilityState?e(ON_APP_ENTER_FOREGROUND,getEnterOptions()):e(ON_APP_ENTER_BACKGROUND)}function onThemeChange$2(){let e=null;try{e=window.matchMedia("(prefers-color-scheme: dark)")}catch(t){}if(e){let t=e=>{UniServiceJSBridge$1.emit(ON_THEME_CHANGE,{theme:e.matches?"dark":"light"})};e.addEventListener?e.addEventListener("change",t):e.addListener(t)}}function invokeOnTabItemTap(e){const{tabBarText:t,tabBarIndex:n,route:a}=e.meta;t&&invokeHook("onTabItemTap",{index:n,text:t,pagePath:a})}function formatTime(e){e=e>0&&e<1/0?e:0;const t=Math.floor(e/3600),n=Math.floor(e%3600/60),a=Math.floor(e%3600%60),i=(t<10?"0":"")+t;let o=(n<10?"0":"")+n+":"+((a<10?"0":"")+a);return"00"!==i&&(o=i+":"+o),o}function useGesture(e,t,n){const a=reactive({gestureType:"none",volumeOld:0,volumeNew:0,currentTimeOld:0,currentTimeNew:0}),i={x:0,y:0};return{state:a,onTouchstart:function(e){const t=e.targetTouches[0];i.x=t.pageX,i.y=t.pageY,a.gestureType="none",a.volumeOld=0,a.currentTimeOld=a.currentTimeNew=0},onTouchmove:function(o){function r(){o.stopPropagation(),o.preventDefault()}n.fullscreen&&r();const s=a.gestureType;if("stop"===s)return;const l=o.targetTouches[0],c=l.pageX,d=l.pageY,u=i,m=t.value;if("progress"===s?function(e){const n=t.value.duration;let i=e/600*n+a.currentTimeOld;i<0?i=0:i>n&&(i=n);a.currentTimeNew=i}(c-u.x):"volume"===s&&function(e){const n=t.value,i=a.volumeOld;let o;"number"==typeof i&&(o=i-e/200,o<0?o=0:o>1&&(o=1),n.volume=o,a.volumeNew=o)}(d-u.y),"none"===s)if(Math.abs(c-u.x)>Math.abs(d-u.y)){if(!e.enableProgressGesture)return void(a.gestureType="stop");a.gestureType="progress",a.currentTimeOld=a.currentTimeNew=m.currentTime,n.fullscreen||r()}else{if(!e.pageGesture)return void(a.gestureType="stop");a.gestureType="volume",a.volumeOld=m.volume,n.fullscreen||r()}},onTouchend:function(e){const n=t.value;"none"!==a.gestureType&&"stop"!==a.gestureType&&(e.stopPropagation(),e.preventDefault()),"progress"===a.gestureType&&a.currentTimeOld!==a.currentTimeNew&&(n.currentTime=a.currentTimeNew),a.gestureType="none"}}}function useFullscreen(e,t,n,a,i){const o=reactive({fullscreen:!1}),r=/^Apple/.test(navigator.vendor);function s(t){o.fullscreen=t,e("fullscreenchange",{},{fullScreen:t,direction:"vertical"})}function l(e){const o=i.value,l=t.value,c=n.value;let d;e?!document.fullscreenEnabled&&!document.webkitFullscreenEnabled||r&&!a.userAction?c.webkitEnterFullScreen?c.webkitEnterFullScreen():(d=!0,l.remove(),l.classList.add("uni-video-type-fullscreen"),document.body.appendChild(l)):l[document.fullscreenEnabled?"requestFullscreen":"webkitRequestFullscreen"]():document.fullscreenEnabled||document.webkitFullscreenEnabled?document.fullscreenElement?document.exitFullscreen():document.webkitFullscreenElement&&document.webkitExitFullscreen():c.webkitExitFullScreen?c.webkitExitFullScreen():(d=!0,l.remove(),l.classList.remove("uni-video-type-fullscreen"),o.appendChild(l)),d&&s(e)}function c(){l(!1)}return onBeforeUnmount(c),{state:o,onFullscreenChange:function(e,t){t&&document.fullscreenEnabled||s(!(!document.fullscreenElement&&!document.webkitFullscreenElement))},emitFullscreenChange:s,toggleFullscreen:l,requestFullScreen:function(){l(!0)},exitFullScreen:c}}function useVideo(e,t,n){const a=ref(null),i=computed((()=>getRealPath(e.src))),o=computed((()=>"true"===e.muted||!0===e.muted)),r=reactive({start:!1,src:i,playing:!1,currentTime:0,duration:0,progress:0,buffered:0,muted:o});function s(e){const t=e.target,n=t.buffered;n.length&&(r.buffered=n.end(n.length-1)/t.duration*100)}function l(){a.value.pause()}function c(e){const t=a.value;"number"!=typeof(e=Number(e))||isNaN(e)||(t.currentTime=e)}return watch((()=>i.value),(()=>{r.playing=!1,r.currentTime=0})),watch((()=>r.buffered),(e=>{n("progress",{},{buffered:e})})),watch((()=>o.value),(e=>{a.value.muted=e})),{videoRef:a,state:r,play:function(){const e=a.value;r.start=!0,e.play()},pause:l,stop:function(){c(0),l()},seek:c,playbackRate:function(e){a.value.playbackRate=e},toggle:function(){const e=a.value;r.playing?e.pause():e.play()},onDurationChange:function({target:e}){r.duration=e.duration},onLoadedMetadata:function(t){const a=Number(e.initialTime)||0,i=t.target;a>0&&(i.currentTime=a),n("loadedmetadata",t,{width:i.videoWidth,height:i.videoHeight,duration:i.duration}),s(t)},onProgress:s,onWaiting:function(e){n("waiting",e,{})},onVideoError:function(e){r.playing=!1,n("error",e,{})},onPlay:function(e){r.start=!0,r.playing=!0,n("play",e,{})},onPause:function(e){r.playing=!1,n("pause",e,{})},onEnded:function(e){r.playing=!1,n("ended",e,{})},onTimeUpdate:function(e){const t=e.target,a=r.currentTime=t.currentTime;n("timeupdate",e,{currentTime:a,duration:t.duration})}}}function useControls(e,t,n){const a=ref(null),i=ref(null),o=computed((()=>e.showCenterPlayBtn&&!t.start)),r=ref(!0),s=computed((()=>!o.value&&e.controls&&r.value)),l=reactive({touching:!1,controlsTouching:!1,centerPlayBtnShow:o,controlsShow:s,controlsVisible:r});let c;function d(){c=setTimeout((()=>{l.controlsVisible=!1}),3e3)}function u(){c&&(clearTimeout(c),c=null)}return onBeforeUnmount((()=>{c&&clearTimeout(c)})),watch((()=>l.controlsShow&&t.playing&&!l.controlsTouching),(e=>{e?d():u()})),watch([()=>t.currentTime,()=>{e.duration}],(function(){l.touching||(t.progress=t.currentTime/t.duration*100)})),onMounted((()=>{const e=passive(!1);let o,r,s,c=!0;const d=i.value;function u(e){const n=e.targetTouches[0],i=n.pageX,l=n.pageY;if(c&&Math.abs(i-o)<Math.abs(l-r))return void m(e);c=!1;const d=a.value.offsetWidth;let u=s+(i-o)/d*100;u<0?u=0:u>100&&(u=100),t.progress=u,e.preventDefault(),e.stopPropagation()}function m(a){l.controlsTouching=!1,l.touching&&(d.removeEventListener("touchmove",u,e),c||(a.preventDefault(),a.stopPropagation(),n(t.duration*t.progress/100)),l.touching=!1)}d.addEventListener("touchstart",(n=>{l.controlsTouching=!0;const a=n.targetTouches[0];o=a.pageX,r=a.pageY,s=t.progress,c=!0,l.touching=!0,d.addEventListener("touchmove",u,e)})),d.addEventListener("touchend",m),d.addEventListener("touchcancel",m)})),{state:l,progressRef:a,ballRef:i,clickProgress:function(e){const i=a.value;let o=e.target,r=e.offsetX;for(;o&&o!==i;)r+=o.offsetLeft,o=o.parentNode;const s=i.offsetWidth;let l=0;r>=0&&r<=s&&(l=r/s,n(t.duration*l))},toggleControls:function(){l.controlsVisible=!l.controlsVisible},autoHideStart:d,autoHideEnd:u}}function useDanmu(e,t){const n=ref(null),a=reactive({enable:Boolean(e.enableDanmu)});let i={time:0,index:-1};const o=isArray$1(e.danmuList)?JSON.parse(JSON.stringify(e.danmuList)):[];function r(e){const t=document.createElement("p");t.className="uni-video-danmu-item",t.innerText=e.text;let a=`bottom: ${100*Math.random()}%;color: ${e.color};`;t.setAttribute("style",a);n.value.appendChild(t),setTimeout((function(){a+="left: 0;-webkit-transform: translateX(-100%);transform: translateX(-100%);",t.setAttribute("style",a),setTimeout((function(){t.remove()}),4e3)}),17)}return o.sort((function(e,t){return(e.time||0)-(t.time||0)})),{state:a,danmuRef:n,updateDanmu:function(e){const n=e.target.currentTime,s=i,l={time:n,index:s.index};if(n>s.time)for(let i=s.index+1;i<o.length;i++){const e=o[i];if(!(n>=(e.time||0)))break;l.index=i,t.playing&&a.enable&&r(e)}else if(n<s.time)for(let t=s.index-1;t>-1;t--){if(!(n<=(o[t].time||0)))break;l.index=t-1}i=l},toggleDanmu:function(){a.enable=!a.enable},sendDanmu:function(e){o.splice(i.index+1,0,{text:String(e.text),color:e.color,time:t.currentTime||0})}}}function useContext(e,t,n,a,i,o,r,s){const l={play:e,stop:n,pause:t,seek:a,sendDanmu:i,playbackRate:o,requestFullScreen:r,exitFullScreen:s};useSubscribe(((e,t)=>{let n;switch(e){case"seek":n=t.position;break;case"sendDanmu":n=t;break;case"playbackRate":n=t.rate}e in l&&l[e](n)}),useContextInfo(),!0)}const props$g={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}},index$d=defineBuiltInComponent({name:"Video",props:props$g,emits:["fullscreenchange","progress","loadedmetadata","waiting","error","play","pause","ended","timeupdate"],setup(e,{emit:t,attrs:n,slots:a}){const i=ref(null),o=ref(null),r=useCustomEvent(i,t),{state:s}=useUserAction(),{$attrs:l}=useAttrs({excludeListeners:!0}),{t:c}=useI18n();initI18nVideoMsgsOnce();const{videoRef:d,state:u,play:m,pause:p,stop:h,seek:f,playbackRate:g,toggle:y,onDurationChange:v,onLoadedMetadata:_,onProgress:b,onWaiting:w,onVideoError:S,onPlay:C,onPause:k,onEnded:x,onTimeUpdate:T}=useVideo(e,n,r),{state:A,danmuRef:E,updateDanmu:I,toggleDanmu:P,sendDanmu:N}=useDanmu(e,u),{state:O,onFullscreenChange:M,emitFullscreenChange:$,toggleFullscreen:R,requestFullScreen:V,exitFullScreen:D}=useFullscreen(r,o,d,s,i),{state:B,onTouchstart:L,onTouchend:F,onTouchmove:z}=useGesture(e,d,O),{state:H,progressRef:U,ballRef:j,clickProgress:W,toggleControls:q}=useControls(e,u,f);return useContext(m,p,h,f,N,g,V,D),()=>createVNode("uni-video",{ref:i,id:e.id,onClick:q},[createVNode("div",{ref:o,class:"uni-video-container",onTouchstart:L,onTouchend:F,onTouchmove:z,onFullscreenchange:withModifiers(M,["stop"]),onWebkitfullscreenchange:withModifiers((e=>M(e,!0)),["stop"])},[createVNode("video",mergeProps({ref:d,style:{"object-fit":e.objectFit},muted:!!e.muted,loop:!!e.loop,src:u.src,poster:e.poster,autoplay:!!e.autoplay},l.value,{class:"uni-video-video","webkit-playsinline":!0,playsinline:!0,onDurationchange:v,onLoadedmetadata:_,onProgress:b,onWaiting:w,onError:S,onPlay:C,onPause:k,onEnded:x,onTimeupdate:e=>{T(e),I(e)},onWebkitbeginfullscreen:()=>$(!0),onX5videoenterfullscreen:()=>$(!0),onWebkitendfullscreen:()=>$(!1),onX5videoexitfullscreen:()=>$(!1)}),null,16,["muted","loop","src","poster","autoplay","webkit-playsinline","playsinline","onDurationchange","onLoadedmetadata","onProgress","onWaiting","onError","onPlay","onPause","onEnded","onTimeupdate","onWebkitbeginfullscreen","onX5videoenterfullscreen","onWebkitendfullscreen","onX5videoexitfullscreen"]),withDirectives(createVNode("div",{class:"uni-video-bar uni-video-bar-full",onClick:withModifiers((()=>{}),["stop"])},[createVNode("div",{class:"uni-video-controls"},[withDirectives(createVNode("div",{class:{"uni-video-control-button":!0,"uni-video-control-button-play":!u.playing,"uni-video-control-button-pause":u.playing},onClick:withModifiers(y,["stop"])},null,10,["onClick"]),[[vShow,e.showPlayBtn]]),withDirectives(createVNode("div",{class:"uni-video-current-time"},[formatTime(u.currentTime)],512),[[vShow,e.showProgress]]),withDirectives(createVNode("div",{ref:U,class:"uni-video-progress-container",onClick:withModifiers(W,["stop"])},[createVNode("div",{class:"uni-video-progress"},[createVNode("div",{style:{width:u.buffered+"%"},class:"uni-video-progress-buffered"},null,4),createVNode("div",{ref:j,style:{left:u.progress+"%"},class:"uni-video-ball"},[createVNode("div",{class:"uni-video-inner"},null)],4)])],8,["onClick"]),[[vShow,e.showProgress]]),withDirectives(createVNode("div",{class:"uni-video-duration"},[formatTime(Number(e.duration)||u.duration)],512),[[vShow,e.showProgress]])]),withDirectives(createVNode("div",{class:{"uni-video-danmu-button":!0,"uni-video-danmu-button-active":A.enable},onClick:withModifiers(P,["stop"])},[c("uni.video.danmu")],10,["onClick"]),[[vShow,e.danmuBtn]]),withDirectives(createVNode("div",{class:{"uni-video-fullscreen":!0,"uni-video-type-fullscreen":O.fullscreen},onClick:withModifiers((()=>R(!O.fullscreen)),["stop"])},null,10,["onClick"]),[[vShow,e.showFullscreenBtn]])],8,["onClick"]),[[vShow,H.controlsShow]]),withDirectives(createVNode("div",{ref:E,style:"z-index: 0;",class:"uni-video-danmu"},null,512),[[vShow,u.start&&A.enable]]),H.centerPlayBtnShow&&createVNode("div",{class:"uni-video-cover",onClick:withModifiers((()=>{}),["stop"])},[createVNode("div",{class:"uni-video-cover-play-button",onClick:withModifiers(m,["stop"])},null,8,["onClick"]),createVNode("p",{class:"uni-video-cover-duration"},[formatTime(Number(e.duration)||u.duration)])],8,["onClick"]),createVNode("div",{class:{"uni-video-toast":!0,"uni-video-toast-volume":"volume"===B.gestureType}},[createVNode("div",{class:"uni-video-toast-title"},[c("uni.video.volume")]),createVNode("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"},[createVNode("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)]),createVNode("div",{class:"uni-video-toast-value"},[createVNode("div",{style:{width:100*B.volumeNew+"%"},class:"uni-video-toast-value-content"},[createVNode("div",{class:"uni-video-toast-volume-grids"},[renderList(10,(()=>createVNode("div",{class:"uni-video-toast-volume-grids-item"},null)))])],4)])],2),createVNode("div",{class:{"uni-video-toast":!0,"uni-video-toast-progress":"progress"===B.gestureType}},[createVNode("div",{class:"uni-video-toast-title"},[formatTime(B.currentTimeNew)," / ",formatTime(u.duration)])],2),createVNode("div",{class:"uni-video-slots"},[a.default&&a.default()])],40,["onTouchstart","onTouchend","onTouchmove","onFullscreenchange","onWebkitfullscreenchange"])],8,["id","onClick"])}}),onWebInvokeAppService=({name:e,arg:t})=>{"postMessage"===e||uni[e](t)},Invoke=once((()=>UniServiceJSBridge$1.on(ON_WEB_INVOKE_APP_SERVICE,onWebInvokeAppService))),props$f={src:{type:String,default:""},fullscreen:{type:Boolean,default:!0}},index$c=defineBuiltInComponent({inheritAttrs:!1,name:"WebView",props:props$f,setup(e){Invoke();const t=ref(null),n=ref(null),{$attrs:a,$excludeAttrs:i,$listeners:o}=useAttrs({excludeListeners:!0});let r;return(()=>{const i=document.createElement("iframe");watchEffect((()=>{for(const e in a.value)if(hasOwn$1(a.value,e)){const t=a.value[e];i[e]=t}})),watchEffect((()=>{i.src=getRealPath(e.src)})),n.value=i,r=useWebViewSize(t,n,e.fullscreen),e.fullscreen&&document.body.appendChild(i)})(),onMounted((()=>{var a;r(),!e.fullscreen&&(null==(a=t.value)||a.appendChild(n.value))})),onActivated((()=>{e.fullscreen&&(n.value.style.display="block")})),onDeactivated((()=>{e.fullscreen&&(n.value.style.display="none")})),onBeforeUnmount((()=>{e.fullscreen&&document.body.removeChild(n.value)})),()=>createVNode(Fragment,null,[createVNode("uni-web-view",mergeProps({class:e.fullscreen?"uni-webview--fullscreen":""},o.value,i.value,{ref:t}),[createVNode(ResizeSensor,{onResize:r},null,8,["onResize"])],16)])}});function useWebViewSize(e,t,n){return()=>{var a,i;if(n){const{top:n,left:a,width:i,height:o}=e.value.getBoundingClientRect();updateElementStyle(t.value,{position:"absolute",display:"block",border:"0",top:n+"px",left:a+"px",width:i+"px",height:o+"px"})}else updateElementStyle(t.value,{width:(null==(a=e.value)?void 0:a.style.width)||"300px",height:(null==(i=e.value)?void 0:i.style.height)||"150px"})}}let index$b=0,maps;function getJSONP(e,t,n,a){var i,o=document.createElement("script"),r=t.callback||"callback",s="__uni_jsonp_callback_"+index$b++,l=t.timeout||3e4;function c(){clearTimeout(i),delete window[s],o.remove()}window[s]=e=>{isFunction(n)&&n(e),c()},o.onerror=()=>{isFunction(a)&&a(),c()},i=setTimeout((function(){isFunction(a)&&a(),c()}),l),o.src=e+(e.indexOf("?")>=0?"&":"?")+r+"="+s,document.body.appendChild(o)}function createCallout(e){function t(){const e=this.div;this.getPanes().floatPane.appendChild(e)}function n(){const e=this.div.parentNode;e&&e.removeChild(this.div)}function a(){const t=this.option;this.Text=new e.Text({text:t.content,anchor:"bottom-center",offset:new e.Pixel(0,t.offsetY-16),style:{padding:(t.padding||8)+"px","line-height":(t.fontSize||14)+"px","border-radius":(t.borderRadius||0)+"px","border-color":`${t.bgColor||"#fff"} transparent transparent`,"background-color":t.bgColor||"#fff","box-shadow":"0 2px 6px 0 rgba(114, 124, 245, .5)","text-align":"center","font-size":(t.fontSize||14)+"px",color:t.color||"#000"},position:t.position});(e.event||e.Event).addListener(this.Text,"click",(()=>{this.callback()})),this.Text.setMap(t.map)}function i(){}function o(){this.Text&&this.option.map.remove(this.Text)}function r(){this.Text&&this.option.map.remove(this.Text)}class s{constructor(e={},s){this.createAMapText=a,this.removeAMapText=o,this.createBMapText=i,this.removeBMapText=r,this.onAdd=t,this.construct=t,this.onRemove=n,this.destroy=n,this.option=e||{};const l=this.visible=this.alwaysVisible="ALWAYS"===e.display;if(getIsAMap())this.callback=s,this.visible&&this.createAMapText();else if(getIsBMap())this.visible&&this.createBMapText();else{const t=e.map;this.position=e.position,this.index=1;const n=this.div=document.createElement("div"),a=n.style;a.position="absolute",a.whiteSpace="nowrap",a.transform="translateX(-50%) translateY(-100%)",a.zIndex="1",a.boxShadow=e.boxShadow||"none",a.display=l?"block":"none";const i=this.triangle=document.createElement("div");i.setAttribute("style","position: absolute;white-space: nowrap;border-width: 4px;border-style: solid;border-color: #fff transparent transparent;border-image: initial;font-size: 12px;padding: 0px;background-color: transparent;width: 0px;height: 0px;transform: translate(-50%, 100%);left: 50%;bottom: 0;"),this.setStyle(e),n.appendChild(i),t&&this.setMap(t)}}set onclick(e){this.div.onclick=e}get onclick(){return this.div.onclick}setOption(e){this.option=e,"ALWAYS"===e.display?this.alwaysVisible=this.visible=!0:this.alwaysVisible=!1,getIsAMap()?this.visible&&this.createAMapText():getIsBMap()?this.visible&&this.createBMapText():(this.setPosition(e.position),this.setStyle(e))}setStyle(e){const t=this.div,n=t.style;t.innerText=e.content||"",n.lineHeight=(e.fontSize||14)+"px",n.fontSize=(e.fontSize||14)+"px",n.padding=(e.padding||8)+"px",n.color=e.color||"#000",n.borderRadius=(e.borderRadius||0)+"px",n.backgroundColor=e.bgColor||"#fff",n.marginTop="-"+((e.top||0)+5)+"px",this.triangle.style.borderColor=`${e.bgColor||"#fff"} transparent transparent`}setPosition(e){this.position=e,this.draw()}draw(){const e=this.getProjection();if(!this.position||!this.div||!e)return;const t=e.fromLatLngToDivPixel(this.position),n=this.div.style;n.left=t.x+"px",n.top=t.y+"px"}changed(){this.div.style.display=this.visible?"block":"none"}}if(!getIsAMap()&&!getIsBMap()){const t=new(e.OverlayView||e.Overlay);s.prototype.setMap=t.setMap,s.prototype.getMap=t.getMap,s.prototype.getPanes=t.getPanes,s.prototype.getProjection=t.getProjection,s.prototype.map_changed=t.map_changed,s.prototype.set=t.set,s.prototype.get=t.get,s.prototype.setOptions=t.setValues,s.prototype.bindTo=t.bindTo,s.prototype.bindsTo=t.bindsTo,s.prototype.notify=t.notify,s.prototype.setValues=t.setValues,s.prototype.unbind=t.unbind,s.prototype.unbindAll=t.unbindAll,s.prototype.addListener=t.addListener}return s}const callbacksMap={},GOOGLE_MAP_CALLBACKNAME="__map_callback__";function loadMaps(e,t){const n=getMapInfo();if(!n.key)return void console.error("Map key not configured.");const a=callbacksMap[n.type]=callbacksMap[n.type]||[];if(maps)t(maps);else if(window[n.type]&&window[n.type].maps)maps=getIsAMap()||getIsBMap()?window[n.type]:window[n.type].maps,maps.Callout=maps.Callout||createCallout(maps),t(maps);else if(a.length)a.push(t);else{a.push(t);const i=window,o=GOOGLE_MAP_CALLBACKNAME+n.type;i[o]=function(){delete i[o],maps=getIsAMap()||getIsBMap()?window[n.type]:window[n.type].maps,maps.Callout=createCallout(maps),a.forEach((e=>e(maps))),a.length=0},getIsAMap()&&handleAMapSecurityPolicy(n);const r=document.createElement("script");let s=getScriptBaseUrl(n.type);n.type===MapType.QQ&&e.push("geometry"),e.length&&(s+=`libraries=${e.join("%2C")}&`),n.type===MapType.BMAP?r.src=`${s}ak=${n.key}&callback=${o}`:r.src=`${s}key=${n.key}&callback=${o}`,r.onerror=function(){console.error("Map load failed.")},document.body.appendChild(r)}}const getScriptBaseUrl=e=>({qq:"https://map.qq.com/api/js?v=2.exp&",google:"https://maps.googleapis.com/maps/api/js?",AMap:"https://webapi.amap.com/maps?v=2.0&",BMapGL:"https://api.map.baidu.com/api?type=webgl&v=1.0&"}[e]);function handleAMapSecurityPolicy(e){window._AMapSecurityConfig={securityJsCode:e.securityJsCode||"",serviceHost:e.serviceHost||""}}const ICON_PATH_LOCTAION="M13.3334375 16 q0.033125 1.1334375 0.783125 1.8834375 q0.75 0.75 1.8834375 0.75 q1.1334375 0 1.8834375 -0.75 q0.75 -0.75 0.75 -1.8834375 q0 -1.1334375 -0.75 -1.8834375 q-0.75 -0.75 -1.8834375 -0.75 q-1.1334375 0 -1.8834375 0.75 q-0.75 0.75 -0.783125 1.8834375 ZM30.9334375 14.9334375 l-1.1334375 0 q-0.5 -5.2 -4.0165625 -8.716875 q-3.516875 -3.5165625 -8.716875 -4.0165625 l0 -1.1334375 q0 -0.4665625 -0.3 -0.7665625 q-0.3 -0.3 -0.7665625 -0.3 q-0.4665625 0 -0.7665625 0.3 q-0.3 0.3 -0.3 0.7665625 l0 1.1334375 q-5.2 0.5 -8.716875 4.0165625 q-3.5165625 3.516875 -4.0165625 8.716875 l-1.1334375 0 q-0.4665625 0 -0.7665625 0.3 q-0.3 0.3 -0.3 0.7665625 q0 0.4665625 0.3 0.7665625 q0.3 0.3 0.7665625 0.3 l1.1334375 0 q0.5 5.2 4.0165625 8.716875 q3.516875 3.5165625 8.716875 4.0165625 l0 1.1334375 q0 0.4665625 0.3 0.7665625 q0.3 0.3 0.7665625 0.3 q0.4665625 0 0.7665625 -0.3 q0.3 -0.3 0.3 -0.7665625 l0 -1.1334375 q5.2 -0.5 8.716875 -4.0165625 q3.5165625 -3.516875 4.0165625 -8.716875 l1.1334375 0 q0.4665625 0 0.7665625 -0.3 q0.3 -0.3 0.3 -0.7665625 q0 -0.4665625 -0.3 -0.7665625 q-0.3 -0.3 -0.7665625 -0.3 ZM17.0665625 27.6665625 l0 -2.0665625 q0 -0.4665625 -0.3 -0.7665625 q-0.3 -0.3 -0.7665625 -0.3 q-0.4665625 0 -0.7665625 0.3 q-0.3 0.3 -0.3 0.7665625 l0 2.0665625 q-4.3 -0.4665625 -7.216875 -3.383125 q-2.916875 -2.916875 -3.3834375 -7.216875 l2.0665625 0 q0.4665625 0 0.7665625 -0.3 q0.3 -0.3 0.3 -0.7665625 q0 -0.4665625 -0.3 -0.7665625 q-0.3 -0.3 -0.7665625 -0.3 l-2.0665625 0 q0.4665625 -4.3 3.3834375 -7.216875 q2.9165625 -2.916875 7.216875 -3.3834375 l0 2.0665625 q0 0.4665625 0.3 0.7665625 q0.3 0.3 0.7665625 0.3 q0.4665625 0 0.7665625 -0.3 q0.3 -0.3 0.3 -0.7665625 l0 -2.0665625 q4.3 0.4665625 7.216875 3.3834375 q2.9165625 2.9165625 3.383125 7.216875 l-2.0665625 0 q-0.4665625 0 -0.7665625 0.3 q-0.3 0.3 -0.3 0.7665625 q0 0.4665625 0.3 0.7665625 q0.3 0.3 0.7665625 0.3 l2.0665625 0 q-0.4665625 4.3 -3.383125 7.216875 q-2.916875 2.9165625 -7.216875 3.383125 Z",ICON_PATH_ORIGIN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIQAAACECAMAAABmmnOVAAAC01BMVEUAAAAAef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef96quGStdqStdpbnujMzMzCyM7Gyc7Ky83MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMwAef8GfP0yjfNWnOp0qOKKsdyYt9mju9aZt9mMstx1qeJYnekyjvIIfP0qivVmouaWttnMzMyat9lppOUujPQKffxhoOfNzc3Y2Njh4eHp6enu7u7y8vL19fXv7+/i4uLZ2dnOzs6auNgOf/sKff15quHR0dHx8fH9/f3////j4+N6quFdn+iywdPb29vw8PD+/v7c3NyywtLa2tr29vbS0tLd3d38/Pzf39/o6Ojc7f+q0v+HwP9rsf9dqv9Hnv9Vpv/q6urj8P+Vx/9Am/8Pgf8Iff/z8/OAvP95uf/n5+c5l//V6f+52v+y1//7+/vt7e0rkP/09PTQ0NDq9P8Whf+cy//W1tbe3t7A3v/m5ubs7OxOov/r6+vk5OQiaPjKAAAAknRSTlMACBZ9oB71/jiqywJBZATT6hBukRXv+zDCAVrkDIf4JbQsTb7eVeJLbwfa8Rh4G/OlPS/6/kxQ9/xdmZudoJxNVhng7B6wtWdzAtQOipcF1329wS44doK/BAkyP1pvgZOsrbnGXArAg34G2IsD1eMRe7bi7k5YnqFT9V0csyPedQyYD3p/Fje+hDpskq/MwpRBC6yKp2MAAAQdSURBVHja7Zn1exMxGIAPHbrhDsPdneHuNtzd3d3dIbjLh93o2o4i7TpgG1Jk0g0mMNwd/gTa5rq129reHnK5e/bk/TFNk/dJ7r5894XjGAwGg8GgTZasCpDIll1+hxw5vXLJLpEboTx5ZXbIhyzkl9fB28cqUaCgrBKFkI3CcjoUKYolihWXUSI7EihRUjaHXF52CVRKLoe8eZIdUOkyMknkRw6UlcehYAFHiXK+skgURk6Ul8OhQjFnCVRRBolKqRxQ5SzUHaqgNGSj7VCmalqJnDkoS5RF6ZCbroNvufQkUD6qEuXTdUA+3hQdqiEXVKfnUKOmK4latalJ1EEuoZZ6162HJ9x/4OChw0eOHj12/MTJU6dxG7XUu751tjNnz4ET5y9ctLZTSr0beKFLl89bpuUDrqgC1RqNWqsKuqqzNFw7e51S6u3tc+OmZUJ9kCHY6ECwOkRvab51iUrqXej2HYDQsHBjWgx3Ae7dppB6N2wEcF9jdMGDUIDGTaR2aNoM9FqjG7QmaN5CWgc/gIePjG559BigpZQOrYB/4jBfRGRUtDkmJjY6KjLCofkpD62lc2gDfMpWPIuLdwyV8XEpHgaddBZ+wBuSFcwJqSN2ovmZ/dfnOvCTxqGtwzq8SEjv4EhISn48eWgnhUP7DvDSvgzxrs6vV6+FLiro2EkCic4QKkzwJsH1KYreCp0eQhfyDl1B/w4P/xa5JVJ4U03QjbRD9x7wXlgH5IE3wmMBHXoSlugFAcI6f/AkkSi8q6HQm6xDn77wEQ8djTwSj3tqAMguRTe4ikeOQyJ4YV+KfkQl+oNW5GbY4gWOWgbwJ+kwAD6Fi90MK2ZsrIeBBCUGwRXbqJ+/iJMQliIEBhOU6AJhtlG/IpHE2bqrYQg5h6HA4yQiRqwEfkGCdTCMmMRw+IbPDCQaHCsCYAQxiZHw3TbmD/ESOHgHwShiEqPhp/gggYkSztIxxCRawy/bmEniJaJtfwiEscQkxkFgRqJESqQwwHhiEuMBp3Vm8RK/cZoHEzKXhCK2QxEPpiJe0YlKCFaKCNv/cYBNUsBRPlkJSc0U+dM7E9H0ThGJbgZT/iR7yj+VqMS06Qr4+OFm2JdCxIa8lugzkJs5K6MfxAaYPUcBpYG5khZJEkUUSb7DPCnKRfPBXj6M8FwuegoLpCgXcQszVjhbJFUJUee2hBhLoYTIcYtB57KY+opSMdVqwatSlZVj05aV//CwJLMX2DluaUcwhXm4ali2XOoLjxUrPV26zFtF4f5p0Gp310+z13BUWNvbehEXona6iAtX/zVZmtfN4WixfsNky4S6gCCVVq3RPLdfSfpv3MRRZfPoLc6Xs/5bt3EyMGzE9h07/Xft2t15z6i9+zgGg8FgMBgMBoPBYDAYDAYj8/APG67Rie8pUDsAAAAASUVORK5CYII=",ICON_PATH_TARGET="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAACcCAMAAAC3Fl5oAAAB3VBMVEVMaXH/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/EhL/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/Dw//AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/GRn/NTX/Dw//Fhb/AAD/AAD/AAD/GRn/GRn/Y2P/AAD/AAD/ExP/Ghr/AAD/AAD/MzP/GRn/AAD/Hh7/AAD/RUX/AAD/AAD/AAD/AAD/AAD/AAD/Dg7/AAD/HR3/Dw//FRX/SUn/AAD/////kJD/DQ3/Zmb/+/v/wMD/mJj/6en/vb3/1NT//Pz/ODj/+fn/3Nz/nJz/j4//9/f/7e3/9vb/7Oz/2Nj/x8f/Ozv/+Pj/3d3/nZ3/2dn//f3/6Oj/2tr/v7//09P/vr7/mZn/l5cdSvP3AAAAe3RSTlMAAhLiZgTb/vztB/JMRhlp6lQW86g8mQ4KFPs3UCH5U8huwlesWtTYGI7RsdVeJGfTW5rxnutLsvXWF8vQNdo6qQbuz7D4hgVIx2xtw8GC1TtZaIw0i84P98tU0/fsj7PKaAgiZZxeVfo8Z52eg1P0nESrENnjXVPUgw/uuSmDAAADsUlEQVR42u3aZ3cTRxgF4GtbYleSLdnGcsENG2ODjbExEHrvhAQCIb1Bem+QdkeuuFMNBBJIfmuOckzZI8/srHYmH3Lm+QNXK632LTvQ03Tu/IWeU/tTGTKT2n+q58L5c00wpXJd47DHEt5w47pKxLbhdLdPKb/7dBYxVLxw1GcI/2h1BcpzKNFHLX2JQ4gumaiitqpEEhEdOMJI9h5AFC3feYzI+7IF2tpSLEOqDXpObPRYFm/jCWho/4Ble7MdoT7fzhhq9yHEz28wltU1UPrJZ0wd66HwicfYvEFIfePTAP8tSLTupBHvtGJFH9bSkNrNWEHzERrT34xSH9Ogr1CijkbVAUH1KRqVqkdQAw07iIAaGlcTqI+/0LjeJJ5J0IIEnkpXMdzs4sTtW9dnZq7fuj2xOMtwVWk88RHDjBYejYvnjD8qjOpfQsUqhvj7oSjxcJIhVj3pyKqpNjYvVjQ/RrXq5YABKi3MCYm5BSrtWO5v11DlmlC4RpU1WRS9SJU7QukOVbpQ9JLu549+Dd0AUOlTbkGEuk85vxLAK5QbuytC3R2j3HoAjZSbFxrmKTcCoJdSk0LLJKV6gSaPMqNTQsvUKGW8JrxKqUWhaZFSeWyh1LTQNE2pHF6mzOy40DQ+S5mLimJcENoKlOnBWsr8KbRNUGYt5LXgd6HtD3lNQIoyN4S2G5RJIUOZm0LbTcqsBqVmhLYZSlkPsP4VWf+Rrd+m1v9o9h8Vv5p42C1R5qL1x7WRglOgVN52yfwNOBu76P+lLPoYidu23KPciIHGa07ZeIW1jvcNtI7q5vexCPGYCmf+m/Y9a3sAwQ5bI9T7ukPgPcn9GToEao+xk1OixJT+GIsvNAbx6eAgPq0xiF+KtkpYKhRXCQ8eFFcJhSWGu3rZ8jJkCM8kz9K4TUnrC6mAgzTsB9tLwQ2W15qfosQ2GrQNpZr7aczbzVjBZsvLcaC1g0bsbIVEnU8DOr6H1KDH2LwtUBi0/JII6Dxm9zUXkH+XMWzfh1Dte1i2Pe3QkC77Zel7aehpO8wyHG6Dtt0NjKxhN6I4uSli/TqJiJJDUQ4NDCURXTrXRy1XcumyD24M+AzhD1RXIIZsl/LoyZmurJHDM7s8lvB2FQ/PmPJ6PseAXP5HGMYAAC7ABbgAF+ACXIALcAEuwAW4ABfgAlyAC3ABLsAFuID/d8Cx4NEt8/byOf0wLnis8zjMq9/Kp7bWw4JOj8u8TlhRl+G/Mp2wpOX48GffvvZ1CyL4B53LAS6zb08EAAAAAElFTkSuQmCC";var MapType=(e=>(e.QQ="qq",e.GOOGLE="google",e.AMAP="AMap",e.BMAP="BMapGL",e.UNKNOWN="",e))(MapType||{});function getMapInfo(){return __uniConfig.bMapKey?{type:"BMapGL",key:__uniConfig.bMapKey}:__uniConfig.qqMapKey?{type:"qq",key:__uniConfig.qqMapKey}:__uniConfig.googleMapKey?{type:"google",key:__uniConfig.googleMapKey}:__uniConfig.aMapKey?{type:"AMap",key:__uniConfig.aMapKey,securityJsCode:__uniConfig.aMapSecurityJsCode,serviceHost:__uniConfig.aMapServiceHost}:{type:"",key:""}}let IS_AMAP=!1,hasGetIsAMap=!1;const getIsAMap=()=>hasGetIsAMap?IS_AMAP:(hasGetIsAMap=!0,IS_AMAP="AMap"===getMapInfo().type),getIsBMap=()=>"BMapGL"===getMapInfo().type;function translateCoordinateSystem(e,t,n){const a=getMapInfo();return e&&"WGS84"===e.toUpperCase()||["google"].includes(a.type)||n?Promise.resolve(t):"qq"===a.type?new Promise((e=>{getJSONP(`https://apis.map.qq.com/jsapi?qt=translate&type=1&points=${t.longitude},${t.latitude}&key=${a.key}&output=jsonp&pf=jsapi&ref=jsapi`,{callback:"cb"},(n=>{if("detail"in n&&"points"in n.detail&&n.detail.points.length){const{lng:a,lat:i}=n.detail.points[0];e({longitude:a,latitude:i,altitude:t.altitude,accuracy:t.accuracy,altitudeAccuracy:t.altitudeAccuracy,heading:t.heading,speed:t.speed})}else e(t)}),(()=>e(t)))})):"AMap"===a.type?new Promise((e=>{loadMaps([],(()=>{window.AMap.convertFrom([t.longitude,t.latitude],"gps",((n,a)=>{if("ok"===a.info&&a.locations.length){const{lat:n,lng:i}=a.locations[0];e({longitude:i,latitude:n,altitude:t.altitude,accuracy:t.accuracy,altitudeAccuracy:t.altitudeAccuracy,heading:t.heading,speed:t.speed})}else e(t)}))}))})):Promise.reject(new Error("translate coordinate system faild"))}const props$e={id:{type:[Number,String],default:""},latitude:{type:[Number,String],require:!0},longitude:{type:[Number,String],require:!0},title:{type:String,default:""},iconPath:{type:String,require:!0},rotate:{type:[Number,String],default:0},alpha:{type:[Number,String],default:1},width:{type:[Number,String],default:""},height:{type:[Number,String],default:""},callout:{type:Object,default:null},label:{type:Object,default:null},anchor:{type:Object,default:null},clusterId:{type:[Number,String],default:""},customCallout:{type:Object,default:null},ariaLabel:{type:String,default:""}};function useMarkerLabelStyle(e){const t="uni-map-marker-label-"+e,n=document.createElement("style");return n.id=t,document.head.appendChild(n),onUnmounted((()=>{n.remove()})),function(e){const a=Object.assign({},e,{position:"absolute",top:"70px",borderStyle:"solid"}),i=document.createElement("div");return Object.keys(a).forEach((e=>{i.style[e]=a[e]||""})),n.innerText=`.${t}{${i.getAttribute("style")}}`,t}}const MapMarker=defineSystemComponent({name:"MapMarker",props:props$e,setup(e){const t=String(isNaN(Number(e.id))?"":e.id),n=inject("onMapReady"),a=useMarkerLabelStyle(t);let i;function o(e){getIsAMap()?e.removeAMapText():e.setMap(null)}if(n(((n,r,s)=>{function l(e){const l=e.title;let c;c=getIsAMap()?new r.LngLat(e.longitude,e.latitude):getIsBMap()?new r.Point(e.longitude,e.latitude):new r.LatLng(e.latitude,e.longitude);const d=new Image;let u=0;d.onload=()=>{const m=e.anchor||{};let p,h,f,g,y="number"==typeof m.x?m.x:.5,v="number"==typeof m.y?m.y:1;e.iconPath&&(e.width||e.height)?(h=e.width||d.width/d.height*e.height,f=e.height||d.height/d.width*e.width):(h=d.width/2,f=d.height/2),u=f,g=f-(f-v*f),p="MarkerImage"in r?new r.MarkerImage(d.src,null,null,new r.Point(y*h,v*f),new r.Size(h,f)):"Icon"in r?new r.Icon({image:d.src,size:new r.Size(h,f),imageSize:new r.Size(h,f),imageOffset:new r.Pixel(y*h,v*f)}):{url:d.src,anchor:new r.Point(y,v),size:new r.Size(h,f)},getIsBMap()?(i=new r.Marker(new r.Point(c.lng,c.lat)),n.addOverlay(i)):(i.setPosition(c),i.setIcon(p)),"setRotation"in i&&i.setRotation(e.rotate||0);const _=e.label||{};let b;if("label"in i&&(i.label.setMap(null),delete i.label),_.content){const e={borderColor:_.borderColor,borderWidth:(Number(_.borderWidth)||0)+"px",padding:(Number(_.padding)||0)+"px",borderRadius:(Number(_.borderRadius)||0)+"px",backgroundColor:_.bgColor,color:_.color,fontSize:(_.fontSize||14)+"px",lineHeight:(_.fontSize||14)+"px",marginLeft:(Number(_.anchorX||_.x)||0)+"px",marginTop:(Number(_.anchorY||_.y)||0)+"px"};if("Label"in r)b=new r.Label({position:c,map:n,clickable:!1,content:_.content,style:e}),i.label=b;else if("setLabel"in i)if(getIsAMap()){const t=`<div style="\n                  margin-left:${e.marginLeft};\n                  margin-top:${e.marginTop};\n                  padding:${e.padding};\n                  background-color:${e.backgroundColor};\n                  border-radius:${e.borderRadius};\n                  line-height:${e.lineHeight};\n                  color:${e.color};\n                  font-size:${e.fontSize};\n\n                  ">\n                  ${_.content}\n                <div>`;i.setLabel({content:t,direction:"bottom-right"})}else{const t=a(e);i.setLabel({text:_.content,color:e.color,fontSize:e.fontSize,className:t})}}const w=e.callout||{};let S,C=i.callout;if(w.content||l){getIsAMap()&&w.content&&(w.content=w.content.replaceAll("\n","<br/>"));const a="0px 0px 3px 1px rgba(0,0,0,0.5)";let o=-u/2;if((e.width||e.height)&&(o+=14-u/2),S=w.content?{position:c,map:n,top:g,offsetY:o,content:w.content,color:w.color,fontSize:w.fontSize,borderRadius:w.borderRadius,bgColor:w.bgColor,padding:w.padding,boxShadow:w.boxShadow||a,display:w.display}:{position:c,map:n,top:g,offsetY:o,content:l,boxShadow:a},C)C.setOption(S);else if(getIsAMap()){const e=e=>{""!==e&&s("callouttap",{},{markerId:Number(e)})};C=i.callout=new r.Callout(S,e)}else C=i.callout=new r.Callout(S),C.div.onclick=function(e){""!==t&&s("callouttap",e,{markerId:Number(t)}),e.stopPropagation(),e.preventDefault()},getMapInfo().type===MapType.GOOGLE&&(C.div.ontouchstart=function(e){e.stopPropagation()},C.div.onpointerdown=function(e){e.stopPropagation()})}else C&&(o(C),delete i.callout)},e.iconPath?d.src=getRealPath(e.iconPath):console.error("Marker.iconPath is required.")}!function(e){getIsBMap()||(i=new r.Marker({map:n,flat:!0,autoRotation:!1})),l(e);const a=r.event||r.Event;getIsBMap()||a.addListener(i,"click",(()=>{const n=i.callout;if(n&&!n.alwaysVisible)if(getIsAMap())n.visible=!n.visible,n.visible?i.callout.createAMapText():i.callout.removeAMapText();else if(n.set("visible",!n.visible),n.visible){const e=n.div,t=e.parentNode;t.removeChild(e),t.appendChild(e)}t&&s("markertap",{},{markerId:Number(t),latitude:e.latitude,longitude:e.longitude})}))}(e),watch(e,l)})),t){const e=inject("addMapChidlContext"),a=inject("removeMapChidlContext"),o={id:t,translate(e){n(((t,n,a)=>{const o=e.destination,r=e.duration,s=!!e.autoRotate;let l=Number(e.rotate)||0,c=0;"getRotation"in i&&(c=i.getRotation());const d=i.getPosition(),u=new n.LatLng(o.latitude,o.longitude),m=n.geometry.spherical.computeDistanceBetween(d,u)/1e3/(("number"==typeof r?r:1e3)/36e5),p=n.event||n.Event,h=p.addListener(i,"moving",(e=>{const t=e.latLng,n=i.label;n&&n.setPosition(t);const a=i.callout;a&&a.setPosition(t)})),f=p.addListener(i,"moveend",(()=>{f.remove(),h.remove(),i.lastPosition=d,i.setPosition(u);const t=i.label;t&&t.setPosition(u);const n=i.callout;n&&n.setPosition(u);const a=e.animationEnd;isFunction(a)&&a()}));let g=0;s&&(i.lastPosition&&(g=n.geometry.spherical.computeHeading(i.lastPosition,d)),l=n.geometry.spherical.computeHeading(d,u)-g),"setRotation"in i&&i.setRotation(c+l),"moveTo"in i?i.moveTo(u,m):(i.setPosition(u),p.trigger(i,"moveend",{}))}))}};e(o),onUnmounted((()=>a(o)))}return onUnmounted((function(){i&&(i.label&&"setMap"in i.label&&i.label.setMap(null),i.callout&&o(i.callout),i.setMap(null))})),()=>null}});function hexToRgba(e){if(!e)return{r:0,g:0,b:0,a:0};let t=e.slice(1);const n=t.length;if(![3,4,6,8].includes(n))return{r:0,g:0,b:0,a:0};3!==n&&4!==n||(t=t.replace(/(\w{1})/g,"$1$1"));let[a,i,o,r]=t.match(/(\w{2})/g);const s=parseInt(a,16),l=parseInt(i,16),c=parseInt(o,16);return r?{r:s,g:l,b:c,a:(`0x100${r}`-65536)/255}:{r:s,g:l,b:c,a:1}}const props$d={points:{type:Array,require:!0},color:{type:String,default:"#000000"},width:{type:[Number,String],default:""},dottedLine:{type:[Boolean,String],default:!1},arrowLine:{type:[Boolean,String],default:!1},arrowIconPath:{type:String,default:""},borderColor:{type:String,default:"#000000"},borderWidth:{type:[Number,String],default:""},colorList:{type:Array,default:()=>[]},level:{type:String,default:""}},MapPolyline=defineSystemComponent({name:"MapPolyline",props:props$d,setup(e){let t,n;function a(){t&&t.setMap(null),n&&n.setMap(null)}return inject("onMapReady")(((i,o)=>{function r(e){const a=[];e.points.forEach((e=>{let t;t=getIsAMap()?[e.longitude,e.latitude]:getIsBMap()?new o.Point(e.longitude,e.latitude):new o.LatLng(e.latitude,e.longitude),a.push(t)}));const r=Number(e.width)||1,{r:s,g:l,b:c,a:d}=hexToRgba(e.color),{r:u,g:m,b:p,a:h}=hexToRgba(e.borderColor),f={map:i,clickable:!1,path:a,strokeWeight:r,strokeColor:e.color||void 0,strokeDashStyle:e.dottedLine?"dash":"solid"},g=Number(e.borderWidth)||0,y={map:i,clickable:!1,path:a,strokeWeight:r+2*g,strokeColor:e.borderColor||void 0,strokeDashStyle:e.dottedLine?"dash":"solid"};"Color"in o?(f.strokeColor=new o.Color(s,l,c,d),y.strokeColor=new o.Color(u,m,p,h)):(f.strokeColor=`rgb(${s}, ${l}, ${c})`,f.strokeOpacity=d,y.strokeColor=`rgb(${u}, ${m}, ${p})`,y.strokeOpacity=h),g&&(n=new o.Polyline(y)),getIsBMap()?(t=new o.Polyline(f.path,f),i.addOverlay(t)):t=new o.Polyline(f)}r(e),watch(e,(function(e){a(),r(e)}))})),onUnmounted(a),()=>null}}),props$c={latitude:{type:[Number,String],require:!0},longitude:{type:[Number,String],require:!0},color:{type:String,default:"#000000"},fillColor:{type:String,default:"#00000000"},radius:{type:[Number,String],require:!0},strokeWidth:{type:[Number,String],default:""},level:{type:String,default:""}},MapCircle=defineSystemComponent({name:"MapCircle",props:props$c,setup(e){let t;function n(){t&&t.setMap(null)}return inject("onMapReady")(((a,i)=>{function o(e){const n=getIsAMap()||getIsBMap()?[e.longitude,e.latitude]:new i.LatLng(e.latitude,e.longitude),o={map:a,center:n,clickable:!1,radius:e.radius,strokeWeight:Number(e.strokeWidth)||1,strokeDashStyle:"solid"};if(getIsBMap())o.strokeColor=e.color,o.fillColor=e.fillColor||"#000",o.fillOpacity=1;else{const{r:t,g:n,b:a,a:r}=hexToRgba(e.fillColor),{r:s,g:l,b:c,a:d}=hexToRgba(e.color);"Color"in i?(o.fillColor=new i.Color(t,n,a,r),o.strokeColor=new i.Color(s,l,c,d)):(o.fillColor=`rgb(${t}, ${n}, ${a})`,o.fillOpacity=r,o.strokeColor=`rgb(${s}, ${l}, ${c})`,o.strokeOpacity=d)}if(getIsBMap()){let e=new i.Point(o.center[0],o.center[1]);t=new i.Circle(e,o.radius,o),a.addOverlay(t)}else t=new i.Circle(o),getIsAMap()&&a.add(t)}o(e),watch(e,(function(e){n(),o(e)}))})),onUnmounted(n),()=>null}}),props$b={id:{type:[Number,String],default:""},position:{type:Object,required:!0},iconPath:{type:String,required:!0},clickable:{type:[Boolean,String],default:""},trigger:{type:Function,required:!0}},MapControl=defineSystemComponent({name:"MapControl",props:props$b,setup(e){const t=computed((()=>getRealPath(e.iconPath))),n=computed((()=>{let t=`top:${e.position.top||0}px;left:${e.position.left||0}px;`;return e.position.width&&(t+=`width:${e.position.width}px;`),e.position.height&&(t+=`height:${e.position.height}px;`),t})),a=t=>{e.clickable&&e.trigger("controltap",t,{controlId:e.id})};return()=>createVNode("div",{class:"uni-map-control"},[createVNode("img",{src:t.value,style:n.value,class:"uni-map-control-icon",onClick:a},null,12,["src","onClick"])])}}),makePhoneCall=defineAsyncApi(API_MAKE_PHONE_CALL,(({phoneNumber:e},{resolve:t})=>(window.location.href=`tel:${e}`,t()))),UUID_KEY="__DC_STAT_UUID",storage=navigator.cookieEnabled&&(window.localStorage||window.sessionStorage)||{};let deviceId;function deviceId$1(){if(deviceId=deviceId||storage[UUID_KEY],!deviceId){deviceId=Date.now()+""+Math.floor(1e7*Math.random());try{storage[UUID_KEY]=deviceId}catch(e){}}return deviceId}function IEVersion(){const e=navigator.userAgent,t=e.indexOf("compatible")>-1&&e.indexOf("MSIE")>-1,n=e.indexOf("Edge")>-1&&!t,a=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:a?11:-1}function getTheme(){if(!0!==__uniConfig.darkmode)return isString(__uniConfig.darkmode)?__uniConfig.darkmode:"light";try{return window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}catch(e){return"light"}}function getBrowserInfo(){let e,t="0",n="",a="phone";const i=navigator.language;if(isIOS$1){e="iOS";const a=ua.match(/OS\s([\w_]+)\slike/);a&&(t=a[1].replace(/_/g,"."));const i=ua.match(/\(([a-zA-Z]+);/);i&&(n=i[1])}else if(isAndroid){e="Android";const a=ua.match(/Android[\s/]([\w\.]+)[;\s]/);a&&(t=a[1]);const i=ua.match(/\((.+?)\)/),o=i?i[1].split(";"):ua.split(" "),r=[/\bAndroid\b/i,/\bLinux\b/i,/\bU\b/i,/^\s?[a-z][a-z]$/i,/^\s?[a-z][a-z]-[a-z][a-z]$/i,/\bwv\b/i,/\/[\d\.,]+$/,/^\s?[\d\.,]+$/,/\bBrowser\b/i,/\bMobile\b/i];for(let e=0;e<o.length;e++){const t=o[e];if(t.indexOf("Build")>0){n=t.split("Build")[0].trim();break}let a;for(let e=0;e<r.length;e++)if(r[e].test(t)){a=!0;break}if(!a){n=t.trim();break}}}else if(isIPadOS)n="iPad",e="iOS",a="pad",t=isFunction(window.BigInt)?"14.0":"13.0";else if(isWindows||isMac||isLinux){n="PC",e="PC",a="pc",t="0";let i=ua.match(/\((.+?)\)/)[1];if(isWindows){switch(e="Windows",isWindows[1]){case"5.1":t="XP";break;case"6.0":t="Vista";break;case"6.1":t="7";break;case"6.2":t="8";break;case"6.3":t="8.1";break;case"10.0":t="10"}const n=i&&i.match(/[Win|WOW]([\d]+)/);n&&(t+=` x${n[1]}`)}else if(isMac){e="macOS";const n=i&&i.match(/Mac OS X (.+)/)||"";t&&(t=n[1].replace(/_/g,"."),-1!==t.indexOf(";")&&(t=t.split(";")[0]))}else if(isLinux){e="Linux";const n=i&&i.match(/Linux (.*)/)||"";n&&(t=n[1],-1!==t.indexOf(";")&&(t=t.split(";")[0]))}}else e="Other",t="0",a="unknown";const o=`${e} ${t}`,r=e.toLocaleLowerCase();let s="",l=String(IEVersion());if("-1"!==l)s="IE";else{const e=["Version","Firefox","Chrome","Edge{0,1}"],t=["Safari","Firefox","Chrome","Edge"];for(let n=0;n<e.length;n++){const a=e[n],i=new RegExp(`(${a})/(\\S*)\\b`);i.test(ua)&&(s=t[n],l=ua.match(i)[2])}}let c="portrait";const d=void 0===window.screen.orientation?window.orientation:window.screen.orientation.angle;return c=90===Math.abs(d)?"landscape":"portrait",{deviceBrand:void 0,brand:void 0,deviceModel:n,deviceOrientation:c,model:n,system:o,platform:r,browserName:s.toLocaleLowerCase(),browserVersion:l,language:i,deviceType:a,ua:ua,osname:e,osversion:t,theme:getTheme()}}const getWindowInfo=defineSyncApi("getWindowInfo",(()=>{const e=window.devicePixelRatio,t=getScreenFix(),n=isLandscape(t),a=getScreenWidth(t,n),i=getScreenHeight(t,n),o=getWindowWidth(a);let r=window.innerHeight;const s=safeAreaInsets$1.top,l={left:safeAreaInsets$1.left,right:o-safeAreaInsets$1.right,top:safeAreaInsets$1.top,bottom:r-safeAreaInsets$1.bottom,width:o-safeAreaInsets$1.left-safeAreaInsets$1.right,height:r-safeAreaInsets$1.top-safeAreaInsets$1.bottom},{top:c,bottom:d}=getWindowOffset();return r-=c,r-=d,{windowTop:c,windowBottom:d,windowWidth:o,windowHeight:r,pixelRatio:e,screenWidth:a,screenHeight:i,statusBarHeight:s,safeArea:l,safeAreaInsets:{top:safeAreaInsets$1.top,right:safeAreaInsets$1.right,bottom:safeAreaInsets$1.bottom,left:safeAreaInsets$1.left},screenTop:i-r}}));let browserInfo,_initBrowserInfo=!0;function initBrowserInfo(){_initBrowserInfo&&(browserInfo=getBrowserInfo())}const getDeviceInfo=defineSyncApi("getDeviceInfo",(()=>{initBrowserInfo();const{deviceBrand:e,deviceModel:t,brand:n,model:a,platform:i,system:o,deviceOrientation:r,deviceType:s}=browserInfo;return{brand:n,deviceBrand:e,deviceModel:t,devicePixelRatio:window.devicePixelRatio,deviceId:deviceId$1(),deviceOrientation:r,deviceType:s,model:a,platform:i,system:o}})),getAppBaseInfo=defineSyncApi("getAppBaseInfo",(()=>{initBrowserInfo();const{theme:e,language:t,browserName:n,browserVersion:a}=browserInfo;return{appId:__uniConfig.appId,appName:__uniConfig.appName,appVersion:__uniConfig.appVersion,appVersionCode:__uniConfig.appVersionCode,appLanguage:getLocale?getLocale():t,enableDebug:!1,hostSDKVersion:void 0,hostPackageName:void 0,hostFontSizeSetting:void 0,hostName:n,hostVersion:a,hostTheme:e,hostLanguage:t,language:t,SDKVersion:"",theme:e,version:""}})),getSystemInfoSync=defineSyncApi("getSystemInfoSync",(()=>{_initBrowserInfo=!0,initBrowserInfo(),_initBrowserInfo=!1;const e=getWindowInfo(),t=getDeviceInfo(),n=getAppBaseInfo();_initBrowserInfo=!0;const{ua:a,browserName:i,browserVersion:o,osname:r,osversion:s}=browserInfo,l=extend$1(e,t,n,{ua:a,browserName:i,browserVersion:o,uniPlatform:"web",uniCompileVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion,fontSizeSetting:void 0,osName:r.toLocaleLowerCase(),osVersion:s,osLanguage:void 0,osTheme:void 0});return delete l.screenTop,delete l.enableDebug,__uniConfig.darkmode||delete l.theme,sortObject(l)})),getSystemInfo=defineAsyncApi("getSystemInfo",((e,{resolve:t})=>t(getSystemInfoSync())));let listener=null;const onCompassChange=defineOnApi(API_ON_COMPASS,(()=>{startCompass()})),offCompassChange=defineOffApi(API_OFF_COMPASS,(()=>{stopCompass()})),startCompass=defineAsyncApi(API_START_COMPASS,((e,{resolve:t,reject:n})=>{if(window.DeviceOrientationEvent){if(!listener){if(DeviceOrientationEvent.requestPermission)return void DeviceOrientationEvent.requestPermission().then((e=>{"granted"===e?(a(),t()):n(`${e}`)})).catch((e=>{n(`${e}`)}));a()}t()}else n();function a(){listener=function(e){const t=360-(null!==e.alpha?e.alpha:360);UniServiceJSBridge$1.invokeOnCallback(API_ON_COMPASS,{direction:t})},window.addEventListener("deviceorientation",listener,!1)}})),stopCompass=defineAsyncApi(API_STOP_COMPASS,((e,{resolve:t})=>{listener&&(window.removeEventListener("deviceorientation",listener,!1),listener=null),t()}));function parseValue(e){const t=["object","string","number","boolean","undefined"];try{const n=isString(e)?JSON.parse(e):e,a=n.type;if(t.indexOf(a)>=0){const e=Object.keys(n);if(2===e.length&&"data"in n){if(typeof n.data===a)return n.data;if("object"===a&&/^\d{4}-\d{2}-\d{2}T\d{2}\:\d{2}\:\d{2}\.\d{3}Z$/.test(n.data))return new Date(n.data)}else if(1===e.length)return""}}catch(n){}}const setStorageSync=defineSyncApi(API_SET_STORAGE_SYNC,((e,t)=>{const n=typeof t,a="string"===n?t:JSON.stringify({type:n,data:t});localStorage.setItem(e,a)}));function getStorageOrigin(e){const t=localStorage&&localStorage.getItem(e);if(!isString(t))throw new Error("data not found");let n=t;try{const e=parseValue(JSON.parse(t));void 0!==e&&(n=e)}catch(a){}return n}const getStorageSync=defineSyncApi(API_GET_STORAGE_SYNC,(e=>{try{return getStorageOrigin(e)}catch(t){return""}})),removeStorageSync=defineSyncApi(API_REMOVE_STORAGE,(e=>{localStorage&&localStorage.removeItem(e)})),clearStorageSync=defineSyncApi("clearStorageSync",(()=>{localStorage&&localStorage.clear()})),clearStorage=defineAsyncApi("clearStorage",((e,{resolve:t})=>{clearStorageSync(),t()})),hideKeyboard=defineAsyncApi(API_HIDE_KEYBOARD,((e,{resolve:t,reject:n})=>{const a=document.activeElement;!a||"TEXTAREA"!==a.tagName&&"INPUT"!==a.tagName||(a.blur(),t())}));function getServiceAddress(){return window.location.protocol+"//"+window.location.host}const getImageInfo=defineAsyncApi(API_GET_IMAGE_INFO,(({src:e},{resolve:t,reject:n})=>{const a=new Image;a.onload=function(){t({width:a.naturalWidth,height:a.naturalHeight,path:0===e.indexOf("/")?getServiceAddress()+e:e})},a.onerror=function(){n()},a.src=e}),GetImageInfoProtocol,GetImageInfoOptions),MIMEType={image:{jpg:"jpeg",jpe:"jpeg",pbm:"x-portable-bitmap",pgm:"x-portable-graymap",pnm:"x-portable-anymap",ppm:"x-portable-pixmap",psd:"vnd.adobe.photoshop",pic:"x-pict",rgb:"x-rgb",svg:"svg+xml",svgz:"svg+xml",tif:"tiff",xif:"vnd.xiff",wbmp:"vnd.wap.wbmp",wdp:"vnd.ms-photo",xbm:"x-xbitmap",ico:"x-icon"},video:{"3g2":"3gpp2","3gp":"3gpp",avi:"x-msvideo",f4v:"x-f4v",flv:"x-flv",jpgm:"jpm",jpgv:"jpeg",m1v:"mpeg",m2v:"mpeg",mpe:"mpeg",mpg:"mpeg",mpg4:"mpeg",m4v:"x-m4v",mkv:"x-matroska",mov:"quicktime",qt:"quicktime",movie:"x-sgi-movie",mp4v:"mp4",ogv:"ogg",smv:"x-smv",wm:"x-ms-wm",wmv:"x-ms-wmv",wmx:"x-ms-wmx",wvx:"x-ms-wvx"}},ALL="all";function isWXEnv(){const e=window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i);return!(!e||"micromessenger"!==e[0])}function _createInput({count:e,sourceType:t,type:n,extension:a}){const i=document.createElement("input");return i.type="file",updateElementStyle(i,{position:"absolute",visibility:"hidden",zIndex:"-999",width:"0",height:"0",top:"0",left:"0"}),i.accept=a.map((e=>{if(n!==ALL){const t=e.replace(".","");return`${n}/${MIMEType[n][t]||t}`}return isWXEnv()?".":0===e.indexOf(".")?e:`.${e}`})).join(","),e&&e>1&&(i.multiple=!0),n!==ALL&&t instanceof Array&&1===t.length&&"camera"===t[0]&&i.setAttribute("capture","camera"),i}addInteractListener();let fileInput=null;const chooseFile=defineAsyncApi(API_CHOOSE_FILE,(({count:e,sourceType:t,type:n,extension:a},{resolve:i,reject:o})=>{initI18nChooseFileMsgsOnce();const{t:r}=useI18n();fileInput&&(document.body.removeChild(fileInput),fileInput=null),fileInput=_createInput({count:e,sourceType:t,type:n,extension:a}),document.body.appendChild(fileInput),fileInput.addEventListener("change",(function(t){const n=t.target,a=[];if(n&&n.files){const t=n.files.length;for(let i=0;i<t;i++){const t=n.files[i];let o;Object.defineProperty(t,"path",{get:()=>(o=o||fileToUrl(t),o)}),i<e&&a.push(t)}}i({get tempFilePaths(){return a.map((({path:e})=>e))},tempFiles:a})})),fileInput.click(),getInteractStatus()||console.warn(r("uni.chooseFile.notUserActivation"))}),ChooseFileProtocol,ChooseFileOptions);let imageInput=null;const chooseImage=defineAsyncApi(API_CHOOSE_IMAGE,(({count:e,sourceType:t,extension:n},{resolve:a,reject:i})=>{initI18nChooseFileMsgsOnce();const{t:o}=useI18n();imageInput&&(document.body.removeChild(imageInput),imageInput=null),imageInput=_createInput({count:e,sourceType:t,extension:n,type:"image"}),document.body.appendChild(imageInput),imageInput.addEventListener("change",(function(t){const n=t.target,i=[];if(n&&n.files){const t=n.files.length;for(let a=0;a<t;a++){const t=n.files[a];let o;Object.defineProperty(t,"path",{get:()=>(o=o||fileToUrl(t),o)}),a<e&&i.push(t)}}a({get tempFilePaths(){return i.map((({path:e})=>e))},tempFiles:i})})),imageInput.click(),getInteractStatus()||console.warn(o("uni.chooseFile.notUserActivation"))}),ChooseImageProtocol,ChooseImageOptions),KEY_MAPS={esc:["Esc","Escape"],enter:["Enter"]},KEYS=Object.keys(KEY_MAPS);function useKeyboard(){const e=ref(""),t=ref(!1),n=n=>{if(t.value)return;const a=KEYS.find((e=>-1!==KEY_MAPS[e].indexOf(n.key)));a&&(e.value=a),nextTick((()=>e.value=""))};return onMounted((()=>{document.addEventListener("keyup",n)})),onBeforeUnmount((()=>{document.removeEventListener("keyup",n)})),{key:e,disable:t}}const VNODE_MASK=createVNode("div",{class:"uni-mask"},null,-1);function createRootApp(e,t,n){return t.onClose=(...e)=>(t.visible=!1,n.apply(null,e)),createApp$1(defineComponent({setup:()=>()=>(openBlock(),createBlock(e,t,null,16))}))}function ensureRoot(e){let t=document.getElementById(e);return t||(t=document.createElement("div"),t.id=e,document.body.append(t)),t}function usePopup(e,{onEsc:t,onEnter:n}){const a=ref(e.visible),{key:i,disable:o}=useKeyboard();return watch((()=>e.visible),(e=>a.value=e)),watch((()=>a.value),(e=>o.value=!e)),watchEffect((()=>{const{value:e}=i;"esc"===e?t&&t():"enter"===e&&n&&n()})),a}let index$a=0,overflow="";function preventScroll(e){let t=index$a;index$a+=e?1:-1,index$a=Math.max(0,index$a),index$a>0?0===t&&(overflow=document.body.style.overflow,document.body.style.overflow="hidden"):(document.body.style.overflow=overflow,overflow="")}function usePreventScroll(){onMounted((()=>preventScroll(!0))),onUnmounted((()=>preventScroll(!1)))}const props$a={src:{type:String,default:""}},ImageView=defineSystemComponent({name:"ImageView",props:props$a,setup(e){const t=reactive({direction:"none"});let n=1,a=0,i=0,o=0,r=0;function s({detail:e}){n=e.scale}function l(e){const t=e.target.getBoundingClientRect();a=t.width,i=t.height}function c(e){const t=e.target.getBoundingClientRect();o=t.width,r=t.height,u(e)}function d(e){const s=n*a>o,l=n*i>r;t.direction=s&&l?"all":s?"horizontal":l?"vertical":"none",u(e)}function u(e){"all"!==t.direction&&"horizontal"!==t.direction||e.stopPropagation()}return()=>{const n={position:"absolute",left:"0",top:"0",width:"100%",height:"100%"};return createVNode(MovableArea,{style:n,onTouchstart:withWebEvent(c),onTouchmove:withWebEvent(u),onTouchend:withWebEvent(d)},{default:()=>[createVNode(MovableView,{style:n,direction:t.direction,inertia:!0,scale:!0,"scale-min":"1","scale-max":"4",onScale:s},{default:()=>[createVNode("img",{src:e.src,style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",maxHeight:"100%",maxWidth:"100%"},onLoad:l},null,40,["src","onLoad"])]},8,["style","direction","inertia","scale","onScale"])]},8,["style","onTouchstart","onTouchmove","onTouchend"])}}});function _isSlot$2(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!isVNode(e)}const props$9={urls:{type:Array,default:()=>[]},current:{type:[Number,String],default:0}};function getIndex(e){let t="number"==typeof e.current?e.current:e.urls.indexOf(e.current);return t=t<0?0:t,t}const ImagePreview=defineSystemComponent({name:"ImagePreview",props:props$9,emits:["close"],setup(e,{emit:t}){usePreventScroll();const n=ref(null),a=ref(getIndex(e));let i;function o(){i||nextTick((()=>{t("close")}))}function r(e){a.value=e.detail.current}watch((()=>e.current),(()=>a.value=getIndex(e))),onMounted((()=>{const e=n.value;let t=0,a=0;e.addEventListener("mousedown",(e=>{i=!1,t=e.clientX,a=e.clientY})),e.addEventListener("mouseup",(e=>{(Math.abs(e.clientX-t)>20||Math.abs(e.clientY-a)>20)&&(i=!0)}))}));const s={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 createVNode("div",{ref:n,style:{display:"block",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",zIndex:999,background:"rgba(0,0,0,0.8)"},onClick:o},[createVNode(Swiper,{navigation:"auto",current:a.value,onChange:r,"indicator-dots":!1,autoplay:!1,style:{position:"absolute",left:"0",top:"0",width:"100%",height:"100%"}},_isSlot$2(t=e.urls.map((e=>createVNode(SwiperItem,null,{default:()=>[createVNode(ImageView,{src:e},null,8,["src"])]}))))?t:{default:()=>[t],_:1},8,["current","onChange"]),createVNode("div",{style:s},[createSvgIconVNode(ICON_PATH_CLOSE,"#ffffff",26)],4)],8,["onClick"])}}});let state$2=null,imagePreviewInstance;const closePreviewImageView=()=>{state$2=null,nextTick((()=>{null==imagePreviewInstance||imagePreviewInstance.unmount(),imagePreviewInstance=null}))},previewImage=defineAsyncApi(API_PREVIEW_IMAGE,((e,{resolve:t})=>{state$2?extend$1(state$2,e):(state$2=reactive(e),nextTick((()=>{imagePreviewInstance=createRootApp(ImagePreview,state$2,closePreviewImageView),imagePreviewInstance.mount(ensureRoot("u-a-p"))}))),t()}),PreviewImageProtocol,PreviewImageOptions);let videoInput=null;const chooseVideo=defineAsyncApi(API_CHOOSE_VIDEO,(({sourceType:e,extension:t},{resolve:n,reject:a})=>{initI18nChooseFileMsgsOnce();const{t:i}=useI18n();videoInput&&(document.body.removeChild(videoInput),videoInput=null),videoInput=_createInput({sourceType:e,extension:t,type:"video"}),document.body.appendChild(videoInput),videoInput.addEventListener("change",(function(e){const t=e.target.files[0];let a="";const i={tempFilePath:a,tempFile:t,size:t.size,duration:0,width:0,height:0,name:t.name};Object.defineProperty(i,"tempFilePath",{get(){return a=a||fileToUrl(this.tempFile),a}});const o=document.createElement("video");if(void 0!==o.onloadedmetadata){const e=fileToUrl(t);o.onloadedmetadata=function(){revokeObjectURL(e),n(extend$1(i,{duration:o.duration||0,width:o.videoWidth||0,height:o.videoHeight||0}))},setTimeout((()=>{o.onloadedmetadata=null,revokeObjectURL(e),n(i)}),300),o.src=e}else n(i)})),videoInput.click(),getInteractStatus()||console.warn(i("uni.chooseFile.notUserActivation"))}),ChooseVideoProtocol,ChooseVideoOptions),request$1=defineTaskApi(API_REQUEST,(({url:e,data:t,header:n={},method:a,dataType:i,responseType:o,withCredentials:r,timeout:s=__uniConfig.networkTimeout.request},{resolve:l,reject:c})=>{let d=null;const u=normalizeContentType(n);if("GET"!==a)if(isString(t)||t instanceof ArrayBuffer)d=t;else if("json"===u)try{d=JSON.stringify(t)}catch(f){d=t.toString()}else if("urlencoded"===u){const e=[];for(const n in t)hasOwn$1(t,n)&&e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));d=e.join("&")}else d=t.toString();const m=new XMLHttpRequest,p=new RequestTask(m);m.open(a,e);for(const g in n)hasOwn$1(n,g)&&m.setRequestHeader(g,n[g]);const h=setTimeout((function(){m.onload=m.onabort=m.onerror=null,p.abort(),c("timeout",{errCode:5})}),s);return m.responseType=o,m.onload=function(){clearTimeout(h);const e=m.status;let t="text"===o?m.responseText:m.response;if("text"===o&&"json"===i)try{t=JSON.parse(t)}catch(f){}l({data:t,statusCode:e,header:parseHeaders(m.getAllResponseHeaders()),cookies:[]})},m.onabort=function(){clearTimeout(h),c("abort",{errCode:600003})},m.onerror=function(){clearTimeout(h),c(void 0,{errCode:5})},m.withCredentials=r,m.send(d),p}),RequestProtocol,RequestOptions);function normalizeContentType(e){const t=Object.keys(e).find((e=>"content-type"===e.toLowerCase()));if(!t)return;const n=e[t];return 0===n.indexOf("application/json")?"json":0===n.indexOf("application/x-www-form-urlencoded")?"urlencoded":"string"}class RequestTask{constructor(e){this._xhr=e}abort(){this._xhr&&(this._xhr.abort(),delete this._xhr)}onHeadersReceived(e){throw new Error("Method not implemented.")}offHeadersReceived(e){throw new Error("Method not implemented.")}}function parseHeaders(e){const t={};return e.split(LINEFEED).forEach((e=>{const n=e.match(/(\S+\s*):\s*(.*)/);n&&3===n.length&&(t[n[1]]=n[2])})),t}class UploadTask{constructor(e){this._callbacks=[],this._xhr=e}onProgressUpdate(e){isFunction(e)&&this._callbacks.push(e)}offProgressUpdate(e){const t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}abort(){this._isAbort=!0,this._xhr&&(this._xhr.abort(),delete this._xhr)}onHeadersReceived(e){throw new Error("Method not implemented.")}offHeadersReceived(e){throw new Error("Method not implemented.")}}const uploadFile=defineTaskApi(API_UPLOAD_FILE,(({url:e,file:t,filePath:n,name:a,files:i,header:o={},formData:r={},timeout:s=__uniConfig.networkTimeout.uploadFile},{resolve:l,reject:c})=>{var d=new UploadTask;return isArray$1(i)&&i.length||(i=[{name:a,file:t,uri:n}]),Promise.all(i.map((({file:e,uri:t})=>e instanceof Blob?Promise.resolve(blobToFile(e)):urlToFile(t)))).then((function(t){var n,a=new XMLHttpRequest,u=new FormData;Object.keys(r).forEach((e=>{u.append(e,r[e])})),Object.values(i).forEach((({name:e},n)=>{const a=t[n];u.append(e||"file",a,a.name||`file-${Date.now()}`)})),a.open("POST",e),Object.keys(o).forEach((e=>{a.setRequestHeader(e,o[e])})),a.upload.onprogress=function(e){d._callbacks.forEach((t=>{var n=e.loaded,a=e.total;t({progress:Math.round(n/a*100),totalBytesSent:n,totalBytesExpectedToSend:a})}))},a.onerror=function(){clearTimeout(n),c("",{errCode:602001})},a.onabort=function(){clearTimeout(n),c("abort",{errCode:600003})},a.onload=function(){clearTimeout(n);const e=a.status;l({statusCode:e,data:a.responseText||a.response})},d._isAbort?c("abort",{errCode:600003}):(n=setTimeout((function(){a.upload.onprogress=a.onload=a.onabort=a.onerror=null,d.abort(),c("timeout",{errCode:5})}),s),a.send(u),d._xhr=a)})).catch((()=>{setTimeout((()=>{c("file error")}),0)})),d}),UploadFileProtocol,UploadFileOptions),getLocation=defineAsyncApi(API_GET_LOCATION,(({type:e,altitude:t,highAccuracyExpireTime:n,isHighAccuracy:a},{resolve:i,reject:o})=>{const r=getMapInfo();new Promise(((e,i)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition((t=>e({coords:t.coords})),i,{enableHighAccuracy:a||t,timeout:n||1e5}):i(new Error("device nonsupport geolocation"))})).catch((e=>new Promise(((t,n)=>{r.type===MapType.QQ?getJSONP(`https://apis.map.qq.com/ws/location/v1/ip?output=jsonp&key=${r.key}`,{callback:"callback"},(e=>{if("result"in e&&e.result.location){const n=e.result.location;t({coords:{latitude:n.lat,longitude:n.lng},skip:!0})}else n(new Error(e.message||JSON.stringify(e)))}),(()=>n(new Error("network error")))):r.type===MapType.GOOGLE?request$1({method:"POST",url:`https://www.googleapis.com/geolocation/v1/geolocate?key=${r.key}`,success(e){const a=e.data;"location"in a?t({coords:{latitude:a.location.lat,longitude:a.location.lng,accuracy:a.accuracy},skip:!0}):n(new Error(a.error&&a.error.message||JSON.stringify(e)))},fail(){n(new Error("network error"))}}):r.type===MapType.AMAP?loadMaps([],(()=>{window.AMap.plugin("AMap.Geolocation",(()=>{new window.AMap.Geolocation({enableHighAccuracy:!0,timeout:1e4}).getCurrentPosition(((e,a)=>{"complete"===e?t({coords:{latitude:a.position.lat,longitude:a.position.lng,accuracy:a.accuracy},skip:!0}):n(new Error(a.message))}))}))})):n(e)})))).then((({coords:t,skip:n})=>{translateCoordinateSystem(e,t,n).then((e=>{i({latitude:e.latitude,longitude:e.longitude,accuracy:e.accuracy,speed:e.altitude||0,altitude:e.altitude||0,verticalAccuracy:e.altitudeAccuracy||0,horizontalAccuracy:e.accuracy||0})})).catch((e=>{o(e.message)}))})).catch((e=>{o(e.message||JSON.stringify(e))}))}),GetLocationProtocol,GetLocationOptions),ICON_PATH_NAV="M28 17c-6.49396875 0-12.13721875 2.57040625-15 6.34840625V5.4105l6.29859375 6.29859375c0.387875 0.387875 1.02259375 0.387875 1.4105 0 0.387875-0.387875 0.387875-1.02259375 0-1.4105L12.77853125 2.36803125a0.9978125 0.9978125 0 0 0-0.0694375-0.077125c-0.1944375-0.1944375-0.45090625-0.291375-0.70721875-0.290875l-0.00184375-0.0000625-0.00184375 0.0000625c-0.2563125-0.0005-0.51278125 0.09640625-0.70721875 0.290875a0.9978125 0.9978125 0 0 0-0.0694375 0.077125l-7.930625 7.9305625c-0.387875 0.387875-0.387875 1.02259375 0 1.4105 0.387875 0.387875 1.02259375 0.387875 1.4105 0L11 5.4105V29c0 0.55 0.45 1 1 1s1-0.45 1-1c0-5.52284375 6.71571875-10 15-10 0.55228125 0 1-0.44771875 1-1 0-0.55228125-0.44771875-1-1-1z",props$8={latitude:{type:Number},longitude:{type:Number},scale:{type:Number,default:18},name:{type:String,default:""},address:{type:String,default:""}};function useState$2(e){const t=reactive({center:{latitude:0,longitude:0},marker:{id:1,latitude:0,longitude:0,iconPath:ICON_PATH_TARGET,width:32,height:52},location:{id:2,latitude:0,longitude:0,iconPath:ICON_PATH_ORIGIN,width:44,height:44}});function n(){e.latitude&&e.longitude&&(t.center.latitude=e.latitude,t.center.longitude=e.longitude,t.marker.latitude=e.latitude,t.marker.longitude=e.longitude)}return watch([()=>e.latitude,()=>e.longitude],n),n(),t}const LocationView=defineSystemComponent({name:"LocationView",props:props$8,emits:["close"],setup(e,{emit:t}){const n=useState$2(e);function a(e){const t=e.detail.centerLocation;t&&(n.center.latitude=t.latitude,n.center.longitude=t.longitude)}function i(){const t=getMapInfo();let a="";if(t.type===MapType.GOOGLE){a=`https://www.google.com/maps/dir/?api=1${n.location.latitude?`&origin=${n.location.latitude}%2C${n.location.longitude}`:""}&destination=${e.latitude}%2C${e.longitude}`}else if(t.type===MapType.QQ){a=`https://apis.map.qq.com/uri/v1/routeplan?type=drive${n.location.latitude?`&fromcoord=${n.location.latitude}%2C${n.location.longitude}&from=${encodeURIComponent("我的位置")}`:""}&tocoord=${e.latitude}%2C${e.longitude}&to=${encodeURIComponent(e.name||"目的地")}&ref=${t.key}`}else if(t.type===MapType.AMAP){a=`https://uri.amap.com/navigation?${n.location.latitude?`from=${n.location.longitude},${n.location.latitude},${encodeURIComponent("我的位置")}&`:""}to=${e.longitude},${e.latitude},${encodeURIComponent(e.name||"目的地")}`}window.open(a)}function o(){t("close")}function r({latitude:e,longitude:t}){n.center.latitude=e,n.center.longitude=t}return usePreventScroll(),getLocation({type:"gcj02",success:({latitude:e,longitude:t})=>{n.location.latitude=e,n.location.longitude=t}}),()=>createVNode("div",{class:"uni-system-open-location"},[createVNode(Map$1,{latitude:n.center.latitude,longitude:n.center.longitude,class:"map",markers:[n.marker,n.location],onRegionchange:a},{default:()=>[createVNode("div",{class:"map-move",onClick:()=>r(n.location)},[createSvgIconVNode(ICON_PATH_LOCTAION,"#000000",24)],8,["onClick"])]},8,["latitude","longitude","markers","onRegionchange"]),createVNode("div",{class:"info"},[createVNode("div",{class:"name",onClick:()=>r(n.marker)},[e.name],8,["onClick"]),createVNode("div",{class:"address",onClick:()=>r(n.marker)},[e.address],8,["onClick"]),createVNode("div",{class:"nav",onClick:i},[createSvgIconVNode(ICON_PATH_NAV,"#ffffff",26)],8,["onClick"])]),createVNode("div",{class:"nav-btn-back",onClick:o},[createSvgIconVNode(ICON_PATH_BACK,"#ffffff",26)],8,["onClick"])])}});let state$1=null;const openLocation=defineAsyncApi(API_OPEN_LOCATION,((e,{resolve:t})=>{state$1?extend$1(state$1,e):(state$1=reactive(e),nextTick((()=>{const e=createRootApp(LocationView,state$1,(()=>{state$1=null,nextTick((()=>{e.unmount()}))}));e.mount(ensureRoot("u-a-o"))}))),t()}),OpenLocationProtocol,OpenLocationOptions);function _isSlot$1(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!isVNode(e)}const props$7={latitude:{type:Number},longitude:{type:Number}};function distance(e){return e>100?`${e>1e3?(e/1e3).toFixed(1)+"k":e.toFixed(0)}m | `:e>0?"<100m | ":""}function useState$1(e){const t=reactive({latitude:0,longitude:0,keyword:"",searching:!1});function n(){e.latitude&&e.longitude&&(t.latitude=e.latitude,t.longitude=e.longitude)}return watch([()=>e.latitude,()=>e.longitude],n),n(),t}function useList(e){const t=__uniConfig.qqMapKey,n=reactive([]),a=ref(-1),i=computed((()=>n[a.value])),o=reactive({loading:!0,pageSize:20,pageIndex:1,hasNextPage:!0,nextPage:null,selectedIndex:a,selected:i}),r=ref(""),s=computed((()=>r.value?`region(${r.value},1,${e.latitude},${e.longitude})`:`nearby(${e.latitude},${e.longitude},5000)`));function l(e){e.forEach((e=>{n.push({name:e.title||e.name,address:e.address,distance:e._distance||e.distance,latitude:e.location.lat,longitude:e.location.lng})}))}function c(){o.loading=!0;const a=getMapInfo();if(a.type===MapType.GOOGLE){if(o.pageIndex>1&&o.nextPage)return void o.nextPage();new google.maps.places.PlacesService(document.createElement("div"))[e.searching?"textSearch":"nearbySearch"]({location:{lat:e.latitude,lng:e.longitude},query:e.keyword,radius:5e3},((e,t,a)=>{o.loading=!1,e&&e.length&&e.forEach((e=>{n.push({name:e.name||"",address:e.vicinity||e.formatted_address||"",distance:0,latitude:e.geometry.location.lat(),longitude:e.geometry.location.lng()})})),a&&(a.hasNextPage?o.nextPage=()=>{a.nextPage()}:o.hasNextPage=!1)}))}else if(a.type===MapType.QQ){getJSONP(e.searching?`https://apis.map.qq.com/ws/place/v1/search?output=jsonp&key=${t}&boundary=${s.value}&keyword=${e.keyword}&page_size=${o.pageSize}&page_index=${o.pageIndex}`:`https://apis.map.qq.com/ws/geocoder/v1/?output=jsonp&key=${t}&location=${e.latitude},${e.longitude}&get_poi=1&poi_options=page_size=${o.pageSize};page_index=${o.pageIndex}`,{callback:"callback"},(t=>{if(o.loading=!1,e.searching&&"data"in t&&t.data.length)l(t.data);else if("result"in t){const e=t.result;r.value=e.ad_info?e.ad_info.adcode:"",e.pois&&l(e.pois)}n.length===o.pageSize*o.pageIndex&&(o.hasNextPage=!1)}),(()=>{o.loading=!1}))}else a.type===MapType.AMAP&&window.AMap.plugin("AMap.PlaceSearch",(function(){const t=new window.AMap.PlaceSearch({city:"全国",pageSize:10,pageIndex:o.pageIndex}),n=e.searching?e.keyword:"",a=e.searching?5e4:5e3;t.searchNearBy(n,[e.longitude,e.latitude],a,(function(e,t){"error"===e?console.error(t):"no_data"===e?o.hasNextPage=!1:l(t.poiList.pois)})),o.loading=!1}))}return{listState:o,list:n,loadMore:function(){!o.loading&&o.hasNextPage&&(o.pageIndex++,c())},reset:function(){o.selectedIndex=-1,o.pageIndex=1,o.hasNextPage=!0,o.nextPage=null,n.splice(0,n.length)},getList:c}}const LoctaionPicker=defineSystemComponent({name:"LoctaionPicker",props:props$7,emits:["close"],setup(e,{emit:t}){usePreventScroll(),initI18nChooseLocationMsgsOnce();const{t:n}=useI18n(),a=useState$1(e),{list:i,listState:o,loadMore:r,reset:s,getList:l}=useList(a),c=debounce$1((()=>{s(),a.keyword&&l()}),1e3,{setTimeout:setTimeout,clearTimeout:clearTimeout});function d(e){a.keyword=e.detail.value,c()}function u(){t("close",extend$1({},o.selected))}function m(){t("close")}function p(e){const t=e.detail.centerLocation;t&&f(t)}function h(){getLocation({type:"gcj02",success:f,fail:()=>{}})}function f({latitude:e,longitude:t}){a.latitude=e,a.longitude=t,a.searching||(s(),l())}return watch((()=>a.searching),(e=>{s(),e||l()})),a.latitude&&a.longitude||h(),()=>{const e=i.map(((e,t)=>createVNode("div",{key:t,class:{"list-item":!0,selected:o.selectedIndex===t},onClick:()=>{o.selectedIndex=t,a.latitude=e.latitude,a.longitude=e.longitude}},[createSvgIconVNode(ICON_PATH_CONFIRM,"#007aff",24),createVNode("div",{class:"list-item-title"},[e.name]),createVNode("div",{class:"list-item-detail"},[distance(e.distance),e.address])],10,["onClick"])));return o.loading&&e.unshift(createVNode("div",{class:"list-loading"},[createVNode("i",{class:"uni-loading"},null)])),createVNode("div",{class:"uni-system-choose-location"},[createVNode(Map$1,{latitude:a.latitude,longitude:a.longitude,class:"map","show-location":!0,libraries:["places"],onUpdated:l,onRegionchange:p},{default:()=>[createVNode("div",{class:"map-location",style:`background-image: url("${ICON_PATH_TARGET}")`},null),createVNode("div",{class:"map-move",onClick:h},[createSvgIconVNode(ICON_PATH_LOCTAION,"#000000",24)],8,["onClick"])],_:1},8,["latitude","longitude","show-location","onUpdated","onRegionchange"]),createVNode("div",{class:"nav"},[createVNode("div",{class:"nav-btn back",onClick:m},[createSvgIconVNode(ICON_PATH_CLOSE,"#ffffff",26)],8,["onClick"]),createVNode("div",{class:{"nav-btn":!0,confirm:!0,disable:!o.selected},onClick:u},[createSvgIconVNode(ICON_PATH_CONFIRM,"#ffffff",26)],10,["onClick"])]),createVNode("div",{class:"menu"},[createVNode("div",{class:"search"},[createVNode(Input,{value:a.keyword,class:"search-input",placeholder:n("uni.chooseLocation.search"),onFocus:()=>a.searching=!0,onInput:d},null,8,["value","placeholder","onFocus","onInput"]),a.searching&&createVNode("div",{class:"search-btn",onClick:()=>{a.searching=!1,a.keyword=""}},[n("uni.chooseLocation.cancel")],8,["onClick"])]),createVNode(ScrollView,{"scroll-y":!0,class:"list",onScrolltolower:r},_isSlot$1(e)?e:{default:()=>[e],_:2},8,["scroll-y","onScrolltolower"])])])}}});let state=null;const chooseLocation=defineAsyncApi(API_CHOOSE_LOCATION,((e,{resolve:t,reject:n})=>{state?n("cancel"):(state=reactive(e),nextTick((()=>{const e=createRootApp(LoctaionPicker,state,(a=>{state=null,nextTick((()=>{e.unmount()})),a?t(a):n("cancel")}));e.mount(ensureRoot("u-a-c"))})))})),navigateBack=defineAsyncApi(API_NAVIGATE_BACK,((e,{resolve:t,reject:n})=>{let a=!0;return!0===invokeHook(ON_BACK_PRESS,{from:e.from||"navigateBack"})&&(a=!1),a?(getApp$1().$router.go(-e.delta),t()):n(ON_BACK_PRESS)}),NavigateBackProtocol,NavigateBackOptions);function navigate({type:e,url:t,tabBarText:n,events:a,isAutomatedTesting:i},o){const r=getApp$1().$router,{path:s,query:l}=parseUrl(t);return new Promise(((t,c)=>{const d=createPageState(e,o);r["navigateTo"===e?"push":"replace"]({path:s,query:l,state:d,force:!0}).then((o=>{if(isNavigationFailure(o))return c(o.message);if("switchTab"===e&&(r.currentRoute.value.meta.tabBarText=n),"navigateTo"===e){const e=r.currentRoute.value.meta;return e.eventChannel?a&&(Object.keys(a).forEach((t=>{e.eventChannel._addListener(t,"on",a[t])})),e.eventChannel._clearCache()):e.eventChannel=new EventChannel(d.__id__,a),t(i?{__id__:d.__id__}:{eventChannel:e.eventChannel})}return i?t({__id__:d.__id__}):t()}))}))}const navigateTo=defineAsyncApi(API_NAVIGATE_TO,(({url:e,events:t,isAutomatedTesting:n},{resolve:a,reject:i})=>navigate({type:API_NAVIGATE_TO,url:e,events:t,isAutomatedTesting:n}).then(a).catch(i)),NavigateToProtocol,NavigateToOptions);function removeLastPage(){const e=getCurrentPage();if(!e)return;const t=e.$page;removePage(normalizeRouteKey(t.path,t.id))}const redirectTo=defineAsyncApi(API_REDIRECT_TO,(({url:e,isAutomatedTesting:t},{resolve:n,reject:a})=>(removeLastPage(),navigate({type:API_REDIRECT_TO,url:e,isAutomatedTesting:t}).then(n).catch(a))),RedirectToProtocol,RedirectToOptions);function removeAllPages(){const e=getCurrentPagesMap().keys();for(const t of e)removePage(t)}const reLaunch=defineAsyncApi(API_RE_LAUNCH,(({url:e,isAutomatedTesting:t},{resolve:n,reject:a})=>(removeAllPages(),navigate({type:API_RE_LAUNCH,url:e,isAutomatedTesting:t}).then(n).catch(a))),ReLaunchProtocol,ReLaunchOptions);function removeNonTabBarPages(){const e=getCurrentPageVm();if(!e)return;const t=getCurrentPagesMap(),n=t.keys();for(const a of n){const e=t.get(a);e.$.__isTabBar?e.$.__isActive=!1:removePage(a)}e.$.__isTabBar&&(e.$.__isVisible=!1,invokeHook(e,ON_HIDE))}function isSamePage(e,t){return e===t.fullPath||"/"===e&&t.meta.isEntry}function getTabBarPageId(e){const t=getCurrentPagesMap().values();for(const n of t){const t=n.$page;if(isSamePage(e,t))return n.$.__isActive=!0,t.id}}const switchTab=defineAsyncApi(API_SWITCH_TAB,(({url:e,tabBarText:t,isAutomatedTesting:n},{resolve:a,reject:i})=>(removeNonTabBarPages(),navigate({type:API_SWITCH_TAB,url:e,tabBarText:t,isAutomatedTesting:n},getTabBarPageId(e)).then(a).catch(i))),SwitchTabProtocol,SwitchTabOptions);function onThemeChange(e){__uniConfig.darkmode&&UniServiceJSBridge$1.on(ON_THEME_CHANGE,e)}function offThemeChange(e){UniServiceJSBridge$1.off(ON_THEME_CHANGE,e)}function parseTheme(e){let t={};return __uniConfig.darkmode&&(t=normalizeStyles(e,__uniConfig.themeConfig,getTheme())),__uniConfig.darkmode?t:e}function useTheme(e,t){const n=isReactive(e),a=n?reactive(parseTheme(e)):parseTheme(e);return __uniConfig.darkmode&&n&&watch(e,(e=>{const t=parseTheme(e);for(const n in t)a[n]=t[n]})),t&&onThemeChange(t),a}const ModalTheme={light:{cancelColor:"#000000"},dark:{cancelColor:"rgb(170, 170, 170)"}},setCancelColor=(e,t)=>t.value=ModalTheme[e].cancelColor,props$6={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:""}},modal=defineComponent({props:props$6,setup(e,{emit:t}){const n=ref(""),a=()=>r.value=!1,i=()=>(a(),t("close","cancel")),o=()=>(a(),t("close","confirm",n.value)),r=usePopup(e,{onEsc:i,onEnter:()=>{!e.editable&&o()}}),s=useOnThemeChange$1(e);return()=>{const{title:t,content:a,showCancel:l,confirmText:c,confirmColor:d,editable:u,placeholderText:m}=e;return n.value=a,createVNode(Transition,{name:"uni-fade"},{default:()=>[withDirectives(createVNode("uni-modal",{onTouchmove:onEventPrevent},[VNODE_MASK,createVNode("div",{class:"uni-modal"},[t?createVNode("div",{class:"uni-modal__hd"},[createVNode("strong",{class:"uni-modal__title",textContent:t||""},null,8,["textContent"])]):null,u?createVNode("textarea",{class:"uni-modal__textarea",rows:"1",placeholder:m,value:a,onInput:e=>n.value=e.target.value},null,40,["placeholder","value","onInput"]):createVNode("div",{class:"uni-modal__bd",onTouchmovePassive:onEventStop,textContent:a},null,40,["onTouchmovePassive","textContent"]),createVNode("div",{class:"uni-modal__ft"},[l&&createVNode("div",{style:{color:s.value},class:"uni-modal__btn uni-modal__btn_default",onClick:i},[e.cancelText],12,["onClick"]),createVNode("div",{style:{color:d},class:"uni-modal__btn uni-modal__btn_primary",onClick:o},[c],12,["onClick"])])])],40,["onTouchmove"]),[[vShow,r.value]])]})}}});function useOnThemeChange$1(e){const t=ref(e.cancelColor),n=({theme:e})=>{setCancelColor(e,t)};return watchEffect((()=>{e.visible?(t.value=e.cancelColor,"#000"===e.cancelColor&&("dark"===getTheme()&&n({theme:"dark"}),onThemeChange(n))):offThemeChange(n)})),t}let showModalState;const onHidePopupOnce$1=once((()=>{UniServiceJSBridge$1.on("onHidePopup",(()=>showModalState.visible=!1))}));let currentShowModalResolve;function onModalClose(e,t){const n="confirm"===e,a={confirm:n,cancel:"cancel"===e};n&&showModalState.editable&&(a.content=t),currentShowModalResolve&&currentShowModalResolve(a)}const showModal=defineAsyncApi(API_SHOW_MODAL,((e,{resolve:t})=>{onHidePopupOnce$1(),currentShowModalResolve=t,showModalState?(extend$1(showModalState,e),showModalState.visible=!0):(showModalState=reactive(e),nextTick((()=>(createRootApp(modal,showModalState,onModalClose).mount(ensureRoot("u-a-m")),nextTick((()=>showModalState.visible=!0))))))}),ShowModalProtocol,ShowModalOptions),props$5={title:{type:String,default:""},icon:{default:"success",validator:e=>-1!==SHOW_TOAST_ICON.indexOf(e)},image:{type:String,default:""},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean}},ToastIconClassName="uni-toast__icon",ICONCOLOR={light:"#fff",dark:"rgba(255,255,255,0.9)"},getIconColor=e=>ICONCOLOR[e],Toast=defineComponent({name:"Toast",props:props$5,setup(e){initI18nShowToastMsgsOnce(),initI18nShowLoadingMsgsOnce();const{Icon:t}=useToastIcon(e),n=usePopup(e,{});return()=>{const{mask:a,duration:i,title:o,image:r}=e;return createVNode(Transition,{name:"uni-fade"},{default:()=>[withDirectives(createVNode("uni-toast",{"data-duration":i},[a?createVNode("div",{class:"uni-mask",style:"background: transparent;",onTouchmove:onEventPrevent},null,40,["onTouchmove"]):"",r||t.value?createVNode("div",{class:"uni-toast"},[r?createVNode("img",{src:r,class:ToastIconClassName},null,10,["src"]):t.value,createVNode("p",{class:"uni-toast__content"},[o])]):createVNode("div",{class:"uni-sample-toast"},[createVNode("p",{class:"uni-simple-toast__text"},[o])])],8,["data-duration"]),[[vShow,n.value]])]})}}});function useToastIcon(e){const t=ref(getIconColor(getTheme())),n=({theme:e})=>t.value=getIconColor(e);watchEffect((()=>{e.visible?onThemeChange(n):offThemeChange(n)}));return{Icon:computed((()=>{switch(e.icon){case"success":return createVNode(createSvgIconVNode(ICON_PATH_SUCCESS_NO_CIRCLE,t.value,38),{class:ToastIconClassName});case"error":return createVNode(createSvgIconVNode(ICON_PATH_WARN,t.value,38),{class:ToastIconClassName});case"loading":return createVNode("i",{class:[ToastIconClassName,"uni-loading"]},null,2);default:return null}}))}}let showToastState,showType="",timeoutId;const scope=effectScope();function watchVisible(){scope.run((()=>{watch([()=>showToastState.visible,()=>showToastState.duration],(([e,t])=>{if(e){if(timeoutId&&clearTimeout(timeoutId),"onShowLoading"===showType)return;timeoutId=setTimeout((()=>{hidePopup("onHideToast")}),t)}else timeoutId&&clearTimeout(timeoutId)}))}))}function createToast(e){showToastState?extend$1(showToastState,e):(showToastState=reactive(extend$1(e,{visible:!1})),nextTick((()=>{watchVisible(),UniServiceJSBridge$1.on("onHidePopup",(()=>hidePopup("onHidePopup"))),createRootApp(Toast,showToastState,(()=>{})).mount(ensureRoot("u-a-t"))}))),setTimeout((()=>{showToastState.visible=!0}),10)}const showToast=defineAsyncApi(API_SHOW_TOAST,((e,{resolve:t,reject:n})=>{createToast(e),showType="onShowToast",t()}),ShowToastProtocol,ShowToastOptions),showLoadingDefaultState={icon:"loading",duration:1e8,image:""},showLoading=defineAsyncApi(API_SHOW_LOADING,((e,{resolve:t,reject:n})=>{extend$1(e,showLoadingDefaultState),createToast(e),showType="onShowLoading",t()}),ShowLoadingProtocol,ShowLoadingOptions),hideLoading=defineAsyncApi(API_HIDE_LOADING,((e,{resolve:t,reject:n})=>{hidePopup("onHideLoading"),t()}));function hidePopup(e){const{t:t}=useI18n();if(!showType)return;let n="";if("onHideToast"===e&&"onShowToast"!==showType?n=t("uni.showToast.unpaired"):"onHideLoading"===e&&"onShowLoading"!==showType&&(n=t("uni.showLoading.unpaired")),n)return console.warn(n);showType="",setTimeout((()=>{showToastState.visible=!1}),10)}function usePopupStyle(e){const t=ref(0),n=ref(0),a=computed((()=>t.value>=500&&n.value>=500)),i=computed((()=>{const t={content:{transform:"",left:"",top:"",bottom:""},triangle:{left:"",top:"",bottom:"","border-width":"","border-color":""}},i=t.content,o=t.triangle,r=e.popover;function s(e){return Number(e)||0}if(a.value&&r){extend$1(o,{position:"absolute",width:"0",height:"0","margin-left":"-6px","border-style":"solid"});const e=s(r.left),t=s(r.width),a=s(r.top),l=s(r.height),c=e+t/2;i.transform="none !important";const d=Math.max(0,c-150);i.left=`${d}px`;let u=Math.max(12,c-d);u=Math.min(288,u),o.left=`${u}px`;const m=n.value/2;a+l-m>m-a?(i.top="auto",i.bottom=n.value-a+6+"px",o.bottom="-6px",o["border-width"]="6px 6px 0 6px",o["border-color"]="#fcfcfd transparent transparent transparent"):(i.top=`${a+l+6}px`,o.top="-6px",o["border-width"]="0 6px 6px 6px",o["border-color"]="transparent transparent #fcfcfd transparent")}return t}));return onMounted((()=>{const e=()=>{const{windowWidth:e,windowHeight:a,windowTop:i}=getSystemInfoSync();t.value=e,n.value=a+(i||0)};window.addEventListener("resize",e),e(),onUnmounted((()=>{window.removeEventListener("resize",e)}))})),{isDesktop:a,popupStyle:i}}const ACTION_SHEET_THEME={light:{listItemColor:"#000000",cancelItemColor:"#000000"},dark:{listItemColor:"rgba(255, 255, 255, 0.8)",cancelItemColor:"rgba(255, 255, 255)"}};function setActionSheetTheme(e,t){["listItemColor","cancelItemColor"].forEach((n=>{t[n]=ACTION_SHEET_THEME[e][n]}))}const props$4={title:{type:String,default:""},itemList:{type:Array,default:()=>[]},itemColor:{type:String,default:"#000000"},popover:{type:Object,default:null},visible:{type:Boolean,default:!1}},actionSheet=defineComponent({name:"ActionSheet",props:props$4,emits:["close"],setup(e,{emit:t}){initI18nShowActionSheetMsgsOnce();const n=ref(260),a=ref(0),i=ref(0),o=ref(0),r=ref(0),s=ref(null),l=ref(null),{t:c}=useI18n(),{_close:d}=useActionSheetLoader(e,t),{popupStyle:u}=usePopupStyle(e);let m;function p(e){const t=o.value+e.deltaY;Math.abs(t)>10?(r.value+=t/3,r.value=r.value>=a.value?a.value:r.value<=0?0:r.value,m.scrollTo(r.value)):o.value=t,e.preventDefault()}onMounted((()=>{const{scroller:e,handleTouchStart:t,handleTouchMove:n,handleTouchEnd:a}=useScroller(s.value,{enableY:!0,friction:new Friction(1e-4),spring:new Spring(2,90,20),onScroll:e=>{r.value=e.target.scrollTop}});m=e,useTouchtrack(s.value,(i=>{if(e)switch(i.detail.state){case"start":t(i);break;case"move":n(i);break;case"end":case"cancel":a(i)}}),!0)})),watch((()=>e.visible),(()=>{nextTick((()=>{e.title&&(i.value=document.querySelector(".uni-actionsheet__title").offsetHeight),m.update(),s.value&&(a.value=s.value.clientHeight-n.value),document.querySelectorAll(".uni-actionsheet__cell").forEach((e=>{initClick(e)}))}))}));const h=useOnThemeChange(e);return()=>createVNode("uni-actionsheet",{onTouchmove:onEventPrevent},[createVNode(Transition,{name:"uni-fade"},{default:()=>[withDirectives(createVNode("div",{class:"uni-mask uni-actionsheet__mask",onClick:()=>d(-1)},null,8,["onClick"]),[[vShow,e.visible]])]}),createVNode("div",{class:["uni-actionsheet",{"uni-actionsheet_toggle":e.visible}],style:u.value.content},[createVNode("div",{ref:l,class:"uni-actionsheet__menu",onWheel:p},[e.title?createVNode(Fragment,null,[createVNode("div",{class:"uni-actionsheet__cell",style:{height:`${i.value}px`}},null),createVNode("div",{class:"uni-actionsheet__title"},[e.title])]):"",createVNode("div",{style:{maxHeight:`${n.value}px`,overflow:"hidden"}},[createVNode("div",{ref:s},[e.itemList.map(((e,t)=>createVNode("div",{key:t,style:{color:h.listItemColor},class:"uni-actionsheet__cell",onClick:()=>d(t)},[e],12,["onClick"])))],512)])],40,["onWheel"]),createVNode("div",{class:"uni-actionsheet__action"},[createVNode("div",{style:{color:h.cancelItemColor},class:"uni-actionsheet__cell",onClick:()=>d(-1)},[c("uni.showActionSheet.cancel")],12,["onClick"])]),createVNode("div",{style:u.value.triangle},null,4)],6)],40,["onTouchmove"])}});function useActionSheetLoader(e,t){function n(e){t("close",e)}const{key:a,disable:i}=useKeyboard();return watch((()=>e.visible),(e=>i.value=!e)),watchEffect((()=>{const{value:e}=a;"esc"===e&&n&&n(-1)})),{_close:n}}function initClick(e){let t=0,n=0;e.addEventListener("touchstart",(e=>{const a=e.changedTouches[0];t=a.clientX,n=a.clientY})),e.addEventListener("touchend",(e=>{const a=e.changedTouches[0];if(Math.abs(a.clientX-t)<20&&Math.abs(a.clientY-n)<20){const t=e.target,n=e.currentTarget,i=new CustomEvent("click",{bubbles:!0,cancelable:!0,target:t,currentTarget:n});["screenX","screenY","clientX","clientY","pageX","pageY"].forEach((e=>{i[e]=a[e]})),e.target.dispatchEvent(i)}}))}function useOnThemeChange(e){const t=reactive({listItemColor:"#000",cancelItemColor:"#000"}),n=({theme:e})=>{setActionSheetTheme(e,t)};return watchEffect((()=>{e.visible?(t.listItemColor=t.cancelItemColor=e.itemColor,"#000"===e.itemColor&&(n({theme:getTheme()}),onThemeChange(n))):offThemeChange(n)})),t}let resolveAction,rejectAction,showActionSheetState;const onHidePopupOnce=once((()=>{UniServiceJSBridge$1.on("onHidePopup",(()=>showActionSheetState.visible=!1))}));function onActionSheetClose(e){-1===e?rejectAction&&rejectAction("cancel"):resolveAction&&resolveAction({tapIndex:e})}const showActionSheet=defineAsyncApi(API_SHOW_ACTION_SHEET,((e,{resolve:t,reject:n})=>{onHidePopupOnce(),resolveAction=t,rejectAction=n,showActionSheetState?(extend$1(showActionSheetState,e),showActionSheetState.visible=!0):(showActionSheetState=reactive(e),nextTick((()=>(createRootApp(actionSheet,showActionSheetState,onActionSheetClose).mount(ensureRoot("u-s-a-s")),nextTick((()=>showActionSheetState.visible=!0))))))}),ShowActionSheetProtocol,ShowActionSheetOptions);function updateDocumentTitle(e){document.title=e,UniServiceJSBridge$1.emit(ON_NAVIGATION_BAR_CHANGE,{titleText:e})}function useDocumentTitle(e){function t(){updateDocumentTitle(e.navigationBar.titleText)}watchEffect(t),onActivated(t)}const stopPullDownRefresh=defineAsyncApi(API_STOP_PULL_DOWN_REFRESH,((e,{resolve:t})=>{UniServiceJSBridge$1.invokeViewMethod(API_STOP_PULL_DOWN_REFRESH,{},getCurrentPageId()),t()})),setTabBarItemProps=["text","iconPath","iconfont","selectedIconPath","visible"],setTabBarStyleProps=["color","selectedColor","backgroundColor","borderStyle","midButton"],setTabBarBadgeProps=["badge","redDot"];function setProperties(e,t,n){t.forEach((function(t){hasOwn$1(n,t)&&(e[t]=n[t])}))}function setTabBar(e,t,n){const a=useTabBar();switch(e){case API_SHOW_TAB_BAR:a.shown=!0;break;case API_HIDE_TAB_BAR:a.shown=!1;break;case API_SET_TAB_BAR_ITEM:const{index:e}=t,n=a.list[e],i=n.pagePath;setProperties(n,setTabBarItemProps,t);const{pagePath:o}=t;if(o){const t=addLeadingSlash(o);t!==i&&normalizeTabBarRoute(e,i,t)}break;case API_SET_TAB_BAR_STYLE:setProperties(a,setTabBarStyleProps,t);break;case API_SHOW_TAB_BAR_RED_DOT:setProperties(a.list[t.index],setTabBarBadgeProps,{badge:"",redDot:!0});break;case API_SET_TAB_BAR_BADGE:setProperties(a.list[t.index],setTabBarBadgeProps,{badge:t.text,redDot:!0});break;case API_HIDE_TAB_BAR_RED_DOT:case API_REMOVE_TAB_BAR_BADGE:setProperties(a.list[t.index],setTabBarBadgeProps,{badge:"",redDot:!1})}n()}const hideTabBar=defineAsyncApi(API_HIDE_TAB_BAR,((e,{resolve:t})=>{setTabBar(API_HIDE_TAB_BAR,e||{},t)})),DEFAULT_CSS_VAR_VALUE="0px",LayoutComponent=defineSystemComponent({name:"Layout",setup(e,{emit:t}){const n=ref(null);initCssVar();const a=useKeepAliveRoute(),{layoutState:i,windowState:o}=useState();useMaxWidth(i,n);const r=useAppClass(!1);return()=>{const e=createLayoutTsx(a);return createVNode("uni-app",{ref:n,class:r.value},[e,!1],2)}}});function useAppClass(e){const t=ref(!1);return computed((()=>({"uni-app--showtabbar":e&&e.value,"uni-app--maxwidth":t.value})))}function initCssVar(){updateCssVar({"--status-bar-height":DEFAULT_CSS_VAR_VALUE,"--top-window-height":DEFAULT_CSS_VAR_VALUE,"--window-left":DEFAULT_CSS_VAR_VALUE,"--window-right":DEFAULT_CSS_VAR_VALUE,"--window-margin":DEFAULT_CSS_VAR_VALUE,"--tab-bar-height":DEFAULT_CSS_VAR_VALUE})}function useMaxWidth(e,t){const n=usePageRoute();function a(){const a=document.body.clientWidth,i=getCurrentPages$1();let o={};if(i.length>0){o=i[i.length-1].$page.meta}else{const e=getRouteOptions(n.path,!0);e&&(o=e.meta)}const r=parseInt(String((hasOwn$1(o,"maxWidth")?o.maxWidth:__uniConfig.globalStyle.maxWidth)||Number.MAX_SAFE_INTEGER));let s=!1;s=a>r,s&&r?(e.marginWidth=(a-r)/2,nextTick((()=>{const e=t.value;e&&e.setAttribute("style","max-width:"+r+"px;margin:0 auto;")}))):(e.marginWidth=0,nextTick((()=>{const e=t.value;e&&e.removeAttribute("style")})))}watch([()=>n.path],a),onMounted((()=>{a(),window.addEventListener("resize",a)}))}function useState(){usePageRoute();{const e=reactive({marginWidth:0,leftWindowWidth:0,rightWindowWidth:0});return watch((()=>e.marginWidth),(e=>updateCssVar({"--window-margin":e+"px"}))),watch((()=>e.leftWindowWidth+e.marginWidth),(e=>{updateCssVar({"--window-left":e+"px"})})),watch((()=>e.rightWindowWidth+e.marginWidth),(e=>{updateCssVar({"--window-right":e+"px"})})),{layoutState:e,windowState:computed((()=>({})))}}}function createLayoutTsx(e,t,n,a,i,o){return createRouterViewVNode(e)}function createRouterViewVNode({routeKey:e,isTabBar:t,routeCache:n}){return createVNode(RouterView,null,{default:withCtx((({Component:a})=>[(openBlock(),createBlock(KeepAlive,{matchBy:"key",cache:n},[(openBlock(),createBlock(resolveDynamicComponent(a),{type:t.value?"tabBar":"",key:e.value}))],1032,["cache"]))])),_:1})}const API_SCAN_CODE="scanCode",scanCode=defineAsyncApi(API_SCAN_CODE,createUnsupportedAsyncApi(API_SCAN_CODE)),CONTEXT_ID="MAP_LOCATION",MapLocation=defineSystemComponent({name:"MapLocation",setup(){const e=reactive({latitude:0,longitude:0,rotate:0});{let t=function(t){e.rotate=t.direction},n=function(){getLocation({type:"gcj02",success:t=>{e.latitude=t.latitude,e.longitude=t.longitude},complete:()=>{o=setTimeout(n,3e4)}})},a=function(){o&&clearTimeout(o),offCompassChange(t)};const i=inject("onMapReady");let o;onCompassChange(t),i(n),onUnmounted(a);const r=inject("addMapChidlContext"),s=inject("removeMapChidlContext"),l={id:CONTEXT_ID,state:e};r(l),onUnmounted((()=>s(l)))}return()=>e.latitude?createVNode(MapMarker,mergeProps({anchor:{x:.5,y:.5},width:"44",height:"44",iconPath:ICON_PATH_ORIGIN},e),null,16,["iconPath"]):null}}),props$3={dashArray:{type:Array,default:()=>[0,0]},points:{type:Array,required:!0},strokeWidth:{type:Number,default:1},strokeColor:{type:String,default:"#000000"},fillColor:{type:String,default:"#00000000"},zIndex:{type:Number,default:0}},MapPolygon=defineSystemComponent({name:"MapPolygon",props:props$3,setup(e){let t;return inject("onMapReady")(((n,a,i)=>{function o(){const{points:i,strokeWidth:o,strokeColor:r,dashArray:s,fillColor:l,zIndex:c}=e,d=i.map((e=>{const{latitude:t,longitude:n}=e;return getIsAMap()?[n,t]:getIsBMap()?new a.Point(n,t):new a.LatLng(t,n)})),{r:u,g:m,b:p,a:h}=hexToRgba(l),{r:f,g:g,b:y,a:v}=hexToRgba(r),_={clickable:!0,cursor:"crosshair",editable:!1,map:n,fillColor:"",path:d,strokeColor:"",strokeDashStyle:s.some((e=>e>0))?"dash":"solid",strokeWeight:o,visible:!0,zIndex:c};a.Color?(_.fillColor=new a.Color(u,m,p,h),_.strokeColor=new a.Color(f,g,y,v)):(_.fillColor=`rgb(${u}, ${m}, ${p})`,_.fillOpacity=h,_.strokeColor=`rgb(${f}, ${g}, ${y})`,_.strokeOpacity=v),t?t.setOptions(_):getIsBMap()?(t=new a.Polygon(_.path,_),n.addOverlay(t)):t=new a.Polygon(_)}o(),watch(e,o)})),onUnmounted((()=>{t.setMap(null)})),()=>null}}),props$2={id:{type:String,default:""},latitude:{type:[String,Number],default:0},longitude:{type:[String,Number],default:0},scale:{type:[String,Number],default:16},markers:{type:Array,default:()=>[]},includePoints:{type:Array,default:()=>[]},polyline:{type:Array,default:()=>[]},circles:{type:Array,default:()=>[]},controls:{type:Array,default:()=>[]},showLocation:{type:[Boolean,String],default:!1},libraries:{type:Array,default:()=>[]},polygons:{type:Array,default:()=>[]}};function getPoints(e){const t=[];return isArray$1(e)&&e.forEach((e=>{e&&e.latitude&&e.longitude&&t.push({latitude:e.latitude,longitude:e.longitude})})),t}function getAMapPosition(e,t,n){return new e.LngLat(n,t)}function getBMapPosition(e,t,n){return new e.Point(n,t)}function getGoogleOrQQMapPosition(e,t,n){return new e.LatLng(t,n)}function getMapPosition(e,t,n){return getIsBMap()?getBMapPosition(e,t,n):getIsAMap()?getAMapPosition(e,t,n):getGoogleOrQQMapPosition(e,t,n)}function getLat(e){return"getLat"in e?e.getLat():getIsBMap()?e.lat:e.lat()}function getLng(e){return"getLng"in e?e.getLng():getIsBMap()?e.lng:e.lng()}function useMap(e,t,n){const a=useCustomEvent(t,n),i=ref(null);let o,r;const s=reactive({latitude:Number(e.latitude),longitude:Number(e.longitude),includePoints:getPoints(e.includePoints)}),l=[];let c,d;function u(e){c?e(r,o,a):l.push(e)}const m=[];function p(e){d?e():l.push(e)}const h={};function f(){const e=r.getCenter();return{scale:r.getZoom(),centerLocation:{latitude:getLat(e),longitude:getLng(e)}}}function g(){if(getIsAMap()){const e=[];s.includePoints.forEach((t=>{e.push([t.longitude,t.latitude])}));const t=new o.Bounds(...e);r.setBounds(t)}else if(getIsBMap());else{const e=new o.LatLngBounds;s.includePoints.forEach((({latitude:t,longitude:n})=>{const a=new o.LatLng(t,n);e.extend(a)})),r.fitBounds(e)}}function y(){const t=i.value,l=getMapPosition(o,s.latitude,s.longitude),c=o.event||o.Event,u=new o.Map(t,{center:l,zoom:Number(e.scale),disableDoubleClickZoom:!0,mapTypeControl:!1,zoomControl:!1,scaleControl:!1,panControl:!1,fullscreenControl:!1,streetViewControl:!1,keyboardShortcuts:!1,minZoom:5,maxZoom:18,draggable:!0});if(getIsBMap()&&(u.centerAndZoom(l,Number(e.scale)),u.enableScrollWheelZoom(),u._printLog&&u._printLog("uniapp")),watch((()=>e.scale),(e=>{u.setZoom(Number(e)||16)})),p((()=>{s.includePoints.length&&(g(),function(){const e=getMapPosition(o,s.latitude,s.longitude);r.setCenter(e)}())})),getIsBMap())u.addEventListener("click",(()=>{a("tap",{},{}),a("click",{},{})})),u.addEventListener("dragstart",(()=>{a("regionchange",{},{type:"begin",causedBy:"gesture"})})),u.addEventListener("dragend",(()=>{a("regionchange",{},extend$1({type:"end",causedBy:"drag"},f()))}));else{const e=c.addListener(u,"bounds_changed",(()=>{e.remove(),d=!0,m.forEach((e=>e())),m.length=0}));c.addListener(u,"click",(()=>{a("tap",{},{}),a("click",{},{})})),c.addListener(u,"dragstart",(()=>{a("regionchange",{},{type:"begin",causedBy:"gesture"})})),c.addListener(u,"dragend",(()=>{a("regionchange",{},extend$1({type:"end",causedBy:"drag"},f()))}));const t=()=>{n("update:scale",u.getZoom()),a("regionchange",{},extend$1({type:"end",causedBy:"scale"},f()))};c.addListener(u,"zoom_changed",t),c.addListener(u,"zoomend",t),c.addListener(u,"center_changed",(()=>{const e=u.getCenter(),t=getLat(e),a=getLng(e);n("update:latitude",t),n("update:longitude",a)}))}return u}watch([()=>e.latitude,()=>e.longitude],(([e,t])=>{const n=Number(e),a=Number(t);if((n!==s.latitude||a!==s.longitude)&&(s.latitude=n,s.longitude=a,r)){const e=getMapPosition(o,s.latitude,s.longitude);r.setCenter(e)}})),watch((()=>e.includePoints),(e=>{s.includePoints=getPoints(e),d&&g()}),{deep:!0});try{useSubscribe(((e,t={})=>{switch(e){case"getCenterLocation":u((()=>{const n=r.getCenter();callOptions(t,{latitude:getLat(n),longitude:getLng(n),errMsg:`${e}:ok`})}));break;case"moveToLocation":{let n=Number(t.latitude),a=Number(t.longitude);if(!n||!a){const e=h[CONTEXT_ID];e&&(n=e.state.latitude,a=e.state.longitude)}if(n&&a){if(s.latitude=n,s.longitude=a,r){const e=getMapPosition(o,n,a);r.setCenter(e)}u((()=>{callOptions(t,`${e}:ok`)}))}else callOptions(t,`${e}:fail`)}break;case"translateMarker":u((()=>{const n=h[t.markerId];if(n){try{n.translate(t)}catch(a){callOptions(t,`${e}:fail ${a.message}`)}callOptions(t,`${e}:ok`)}else callOptions(t,`${e}:fail not found`)}));break;case"includePoints":s.includePoints=getPoints(t.includePoints),(d||getIsAMap())&&g(),p((()=>{callOptions(t,`${e}:ok`)}));break;case"getRegion":p((()=>{const n=r.getBounds(),a=n.getSouthWest(),i=n.getNorthEast();callOptions(t,{southwest:{latitude:getLat(a),longitude:getLng(a)},northeast:{latitude:getLat(i),longitude:getLng(i)},errMsg:`${e}:ok`})}));break;case"getScale":u((()=>{callOptions(t,{scale:r.getZoom(),errMsg:`${e}:ok`})}))}}),useContextInfo(),!0)}catch(v){}return onMounted((()=>{loadMaps(e.libraries,(e=>{o=e,r=y(),c=!0,l.forEach((e=>e(r,o,a))),l.length=0,a("updated",{},{})}))})),provide("onMapReady",u),provide("addMapChidlContext",(function(e){h[e.id]=e})),provide("removeMapChidlContext",(function(e){delete h[e.id]})),{state:s,mapRef:i,trigger:a}}const Map$1=defineBuiltInComponent({name:"Map",props:props$2,emits:["markertap","labeltap","callouttap","controltap","regionchange","tap","click","updated","update:scale","update:latitude","update:longitude"],setup(e,{emit:t,slots:n}){const a=ref(null),{mapRef:i,trigger:o}=useMap(e,a,t);return()=>createVNode("uni-map",{ref:a,id:e.id},[createVNode("div",{ref:i,style:"width: 100%; height: 100%; position: relative; overflow: hidden"},null,512),e.markers.map((e=>createVNode(MapMarker,mergeProps({key:e.id},e),null,16))),e.polyline.map((e=>createVNode(MapPolyline,e,null,16))),e.circles.map((e=>createVNode(MapCircle,e,null,16))),e.controls.map((e=>createVNode(MapControl,mergeProps(e,{trigger:o}),null,16,["trigger"]))),e.showLocation&&createVNode(MapLocation,null,null),e.polygons.map((e=>createVNode(MapPolygon,e,null,16))),createVNode("div",{style:"position: absolute;top: 0;width: 100%;height: 100%;overflow: hidden;pointer-events: none;"},[n.default&&n.default()])],8,["id"])}});function _isSlot(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!isVNode(e)}function getDefaultStartValue(e){if(e.mode===mode.TIME)return"00:00";if(e.mode===mode.DATE){const t=(new Date).getFullYear()-150;switch(e.fields){case fields.YEAR:return t.toString();case fields.MONTH:return t+"-01";default:return t+"-01-01"}}return""}function getDefaultEndValue(e){if(e.mode===mode.TIME)return"23:59";if(e.mode===mode.DATE){const t=(new Date).getFullYear()+150;switch(e.fields){case fields.YEAR:return t.toString();case fields.MONTH:return t+"-12";default:return t+"-12-31"}}return""}function getDateValueArray(e,t,n,a){const i=e.mode===mode.DATE?"-":":",o=e.mode===mode.DATE?t.dateArray:t.timeArray;let r;if(e.mode===mode.TIME)r=2;else switch(e.fields){case fields.YEAR:r=1;break;case fields.MONTH:r=2;break;default:r=3}const s=String(n).split(i);let l=[];for(let c=0;c<r;c++){const e=s[c];l.push(o[c].indexOf(e))}return l.indexOf(-1)>=0&&(l=a?getDateValueArray(e,t,a):l.map((()=>0))),l}const mode={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date"},fields={YEAR:"year",MONTH:"month",DAY:"day"},selectorType={PICKER:"picker",SELECT:"select"},props$1={name:{type:String,default:""},range:{type:Array,default:()=>[]},rangeKey:{type:String,default:""},value:{type:[Number,String,Array],default:0},mode:{type:String,default:mode.SELECTOR,validator:e=>Object.values(mode).includes(e)},fields:{type:String,default:""},start:{type:String,default:e=>getDefaultStartValue(e)},end:{type:String,default:e=>getDefaultEndValue(e)},disabled:{type:[Boolean,String],default:!1},selectorType:{type:String,default:""}},index$7=defineBuiltInComponent({name:"Picker",compatConfig:{MODE:3},props:props$1,emits:["change","cancel","columnchange"],setup(e,{emit:t,slots:n}){initI18nPickerMsgsOnce();const{t:a}=useI18n(),i=ref(null),o=ref(null),r=ref(null),s=ref(null),l=ref(!1),{state:c,rangeArray:d}=usePickerState(e),u=useCustomEvent(i,t),{system:m,selectorTypeComputed:p,_show:h,_l10nColumn:f,_l10nItem:g,_input:y,_fixInputPosition:v,_pickerViewChange:_,_cancel:b,_change:w,_resetFormData:S,_getFormData:C,_createTime:k,_createDate:x,_setValueSync:T}=usePickerMethods(e,c,u,i,o,r,s);usePickerWatch(c,b,w),usePickerForm(S,C),k(),x(),T();const A=usePopupStyle(c);return watchEffect((()=>{c.isDesktop=A.isDesktop.value,c.popupStyle=A.popupStyle.value})),onBeforeUnmount((()=>{o.value&&o.value.remove()})),onMounted((()=>{l.value=!0})),()=>{let t;const{visible:u,contentVisible:S,valueArray:C,popupStyle:k,valueSync:x}=c,{rangeKey:T,mode:A,start:E,end:I}=e,P=useBooleanAttr(e,"disabled");return createVNode("uni-picker",mergeProps({ref:i},P,{onClick:withWebEvent(h)}),[l.value?createVNode("div",{ref:o,class:["uni-picker-container",`uni-${A}-${p.value}`],onWheel:onEventPrevent,onTouchmove:onEventPrevent},[createVNode(Transition,{name:"uni-fade"},{default:()=>[withDirectives(createVNode("div",{class:"uni-mask uni-picker-mask",onClick:withWebEvent(b),onMousemove:v},null,40,["onClick","onMousemove"]),[[vShow,u]])]}),m.value?null:createVNode("div",{class:[{"uni-picker-toggle":u},"uni-picker-custom"],style:k.content},[createVNode("div",{class:"uni-picker-header",onClick:onEventStop},[createVNode("div",{class:"uni-picker-action uni-picker-action-cancel",onClick:withWebEvent(b)},[a("uni.picker.cancel")],8,["onClick"]),createVNode("div",{class:"uni-picker-action uni-picker-action-confirm",onClick:w},[a("uni.picker.done")],8,["onClick"])],8,["onClick"]),S?createVNode(PickerView,{value:f(C),class:"uni-picker-content",onChange:_},_isSlot(t=renderList(f(d.value),((e,t)=>{let n;return createVNode(PickerViewColumn,{key:t},_isSlot(n=renderList(e,((e,n)=>createVNode("div",{key:n,class:"uni-picker-item"},["object"==typeof e?e[T]||"":g(e,t)]))))?n:{default:()=>[n],_:1})})))?t:{default:()=>[t],_:1},8,["value","onChange"]):null,createVNode("div",{ref:r,class:"uni-picker-select",onWheel:onEventStop,onTouchmove:onEventStop},[renderList(d.value[0],((e,t)=>createVNode("div",{key:t,class:["uni-picker-item",{selected:C[0]===t}],onClick:()=>{C[0]=t,w()}},["object"==typeof e?e[T]||"":e],10,["onClick"])))],40,["onWheel","onTouchmove"]),createVNode("div",{style:k.triangle},null,4)],6)],40,["onWheel","onTouchmove"]):null,createVNode("div",null,[n.default&&n.default()]),m.value?createVNode("div",{class:"uni-picker-system",onMousemove:withWebEvent(v)},[createVNode("input",{class:["uni-picker-system_input",m.value],ref:s,value:x,type:A,tabindex:"-1",min:E,max:I,onChange:e=>{y(e),onEventStop(e)}},null,42,["value","type","min","max","onChange"])],40,["onMousemove"]):null],16,["onClick"])}}});function usePickerState(e){const t=reactive({valueSync:void 0,visible:!1,contentVisible:!1,popover:null,valueChangeSource:"",timeArray:[],dateArray:[],valueArray:[],oldValueArray:[],isDesktop:!1,popupStyle:{content:{},triangle:{}}}),n=computed((()=>{let n=e.range;switch(e.mode){case mode.SELECTOR:return[n];case mode.MULTISELECTOR:return n;case mode.TIME:return t.timeArray;case mode.DATE:{const n=t.dateArray;switch(e.fields){case fields.YEAR:return[n[0]];case fields.MONTH:return[n[0],n[1]];default:return[n[0],n[1],n[2]]}}}return[]}));return{state:t,rangeArray:n}}const getiPadFlag=()=>0===String(navigator.vendor).indexOf("Apple")&&navigator.maxTouchPoints>0;function useIsiPad(){const e=ref(!1);return e.value=getiPadFlag(),e}const getSystem=()=>{if(/win|mac/i.test(navigator.platform)){if("Google Inc."===navigator.vendor)return"chrome";if(/Firefox/.test(navigator.userAgent))return"firefox"}return""};function useSystem(){const e=ref("");return e.value=getSystem(),e}let __contentVisibleDelay;function usePickerMethods(e,t,n,a,i,o,r){const s=useIsiPad(),l=useSystem(),c=computed((()=>{const t=e.selectorType;return Object.values(selectorType).includes(t)?t:s.value?selectorType.PICKER:selectorType.SELECT})),d=computed((()=>e.mode===mode.DATE&&!Object.values(fields).includes(e.fields)&&t.isDesktop?l.value:"")),u=computed((()=>getDateValueArray(e,t,e.start,getDefaultStartValue(e)))),m=computed((()=>getDateValueArray(e,t,e.end,getDefaultEndValue(e))));function p(e){return 60*e[0]+e[1]}function h(e){return 31*e[0]*12+31*(e[1]||0)+(e[2]||0)}function f(e,t){for(let n=0;n<e.length&&n<t.length;n++)e[n]=t[n]}function g(){let n=e.value;switch(e.mode){case mode.MULTISELECTOR:{isArray$1(n)||(n=t.valueArray),isArray$1(t.valueSync)||(t.valueSync=[]);const a=t.valueSync.length=Math.max(n.length,e.range.length);for(let i=0;i<a;i++){const a=Number(n[i]),o=Number(t.valueSync[i]),r=isNaN(a)?isNaN(o)?0:o:a,s=e.range[i]?e.range[i].length-1:0;t.valueSync.splice(i,1,r<0||r>s?0:r)}}break;case mode.TIME:case mode.DATE:t.valueSync=String(n);break;default:{const e=Number(n);t.valueSync=e<0?0:e;break}}}function y(){v(),t.valueChangeSource="click";const a=function(){let n=t.valueArray;switch(e.mode){case mode.SELECTOR:return n[0];case mode.MULTISELECTOR:return n.map((e=>e));case mode.TIME:return t.valueArray.map(((e,n)=>t.timeArray[n][e])).join(":");case mode.DATE:return t.valueArray.map(((e,n)=>t.dateArray[n][e])).join("-")}}();t.valueSync=isArray$1(a)?a.map((e=>e)):a,n("change",{},{value:a})}function v(){t.visible=!1,setTimeout((()=>{let e=i.value;e.remove(),a.value.prepend(e),e.style.display="none"}),260)}function _(t,n){const{getLocale:a}=useI18n();if(e.mode===mode.DATE){const i=a();if(!i.startsWith("zh"))switch(e.fields){case fields.YEAR:return t;case fields.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}return watch((()=>t.visible),(n=>{n?(clearTimeout(__contentVisibleDelay),t.contentVisible=n,e.mode===mode.SELECTOR&&c.value===selectorType.SELECT&&(o.value.scrollTop=34*t.valueArray[0])):__contentVisibleDelay=setTimeout((()=>{t.contentVisible=n}),300)})),watch([()=>e.mode,()=>e.value,()=>e.range],g,{deep:!0}),watch((()=>t.valueSync),(function(){let n,a=t.valueSync;switch(e.mode){case mode.MULTISELECTOR:n=[...a];break;case mode.TIME:n=getDateValueArray(e,t,a,formatDateTime({mode:mode.TIME}));break;case mode.DATE:n=getDateValueArray(e,t,a,formatDateTime({mode:mode.DATE}));break;default:n=[a]}t.oldValueArray=[...n],t.valueArray=[...n]}),{deep:!0}),watch((()=>t.valueArray),(a=>{if(e.mode===mode.TIME||e.mode===mode.DATE){const n=e.mode===mode.TIME?p:h,a=t.valueArray,i=u.value,o=m.value;if(e.mode===mode.DATE){const e=t.dateArray,n=e[2].length,i=Number(e[2][a[2]])||1,o=new Date(`${e[0][a[0]]}/${e[1][a[1]]}/${i}`).getDate();o<i&&(a[2]-=o+n-i)}n(a)<n(i)?f(a,i):n(a)>n(o)&&f(a,o)}a.forEach(((a,i)=>{a!==t.oldValueArray[i]&&(t.oldValueArray[i]=a,e.mode===mode.MULTISELECTOR&&n("columnchange",{},{column:i,value:a}))}))})),{selectorTypeComputed:c,system:d,_show:function(n){if(e.disabled)return;t.valueChangeSource="";let a=i.value,o=n.currentTarget;a.remove(),(document.querySelector("uni-app")||document.body).appendChild(a),a.style.display="block";const r=o.getBoundingClientRect();t.popover={top:r.top,left:r.left,width:r.width,height:r.height},setTimeout((()=>{t.visible=!0}),20)},_cancel:function(e){if("firefox"===d.value&&e){const{top:n,left:a,width:i,height:o}=t.popover,{pageX:r,pageY:s}=e;if(r>a&&r<a+i&&s>n&&s<n+o)return}v(),n("cancel",{},{})},_change:y,_l10nColumn:_,_l10nItem:function(t,n){const{getLocale:a}=useI18n();if(e.mode===mode.DATE){const i=a();if(i.startsWith("zh")){return t+["年","月","日"][n]}if(e.fields!==fields.YEAR&&n===(e.fields===fields.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},_input:function(e){const n=e.target;t.valueSync=n.value,nextTick((()=>{y()}))},_resetFormData:function(){switch(e.mode){case mode.SELECTOR:t.valueSync=0;break;case mode.MULTISELECTOR:t.valueSync=e.value.map((e=>0));break;case mode.DATE:case mode.TIME:t.valueSync=""}},_getFormData:function(){return{value:t.valueSync,key:e.name}},_createTime:function(){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)},_createDate:function(){let n=[];const a=function(){let t=(new Date).getFullYear(),n=t-150,a=t+150;if(e.start){const t=new Date(e.start).getFullYear();!isNaN(t)&&t<n&&(n=t)}if(e.end){const t=new Date(e.end).getFullYear();!isNaN(t)&&t>a&&(a=t)}return{start:n,end:a}}();for(let e=a.start,t=a.end;e<=t;e++)n.push(String(e));let i=[];for(let e=1;e<=12;e++)i.push((e<10?"0":"")+e);let o=[];for(let e=1;e<=31;e++)o.push((e<10?"0":"")+e);t.dateArray.push(n,i,o)},_setValueSync:g,_fixInputPosition:function(e){if("chrome"===d.value){const t=a.value.getBoundingClientRect(),n=32;r.value.style.left=e.clientX-t.left-1.5*n+"px",r.value.style.top=e.clientY-t.top-.5*n+"px"}},_pickerViewChange:function(e){t.valueArray=_(e.detail.value,!0)}}}function usePickerWatch(e,t,n){const{key:a,disable:i}=useKeyboard();watchEffect((()=>{i.value=!e.visible})),watch(a,(e=>{"esc"===e?t():"enter"===e&&n()}))}function usePickerForm(e,t){const n=inject(uniFormKey,!1);if(n){const a={reset:e,submit:()=>{const e=["",null],{key:n,value:a}=t();return""!==n&&(e[0]=n,e[1]=a),e}};n.addField(a),onBeforeUnmount((()=>{n.removeField(a)}))}}const UniViewJSBridge$1=extend$1(ViewJSBridge,{publishHandler(e,t,n){UniServiceJSBridge$1.subscribeHandler(e,t,n)}}),UniServiceJSBridge$1=extend$1(ServiceJSBridge,{publishHandler(e,t,n){UniViewJSBridge$1.subscribeHandler(e,t,n)}}),PageHead=defineSystemComponent({name:"PageHead",setup(){const e=ref(null),t=usePageMeta(),n=useTheme(t.navigationBar,(()=>{const e=parseTheme(t.navigationBar);n.backgroundColor=e.backgroundColor,n.titleColor=e.titleColor})),{clazz:a,style:i}=usePageHead(n);return()=>{const o=createBackButtonTsx(n,t.isQuit),r=n.type||"default",s="transparent"!==r&&"float"!==r&&createVNode("div",{class:{"uni-placeholder":!0,"uni-placeholder-titlePenetrate":n.titlePenetrate}},null,2);return createVNode("uni-page-head",{"uni-page-head-type":r},[createVNode("div",{ref:e,class:a.value,style:i.value},[createVNode("div",{class:"uni-page-head-hd"},[o]),createPageHeadBdTsx(n),createVNode("div",{class:"uni-page-head-ft"},[])],6),s],8,["uni-page-head-type"])}}});function createBackButtonTsx(e,t){if(!t)return createVNode("div",{class:"uni-page-head-btn",onClick:onPageHeadBackButton},[createSvgIconVNode(ICON_PATH_BACK,"transparent"===e.type?"#fff":e.titleColor,26)],8,["onClick"])}function createPageHeadBdTsx(e,t){return createPageHeadTitleTextTsx(e)}function createPageHeadTitleTextTsx({type:e,loading:t,titleSize:n,titleText:a,titleImage:i}){return createVNode("div",{class:"uni-page-head-bd"},[createVNode("div",{style:{fontSize:n,opacity:"transparent"===e?0:1},class:"uni-page-head__title"},[t?createVNode("i",{class:"uni-loading"},null):i?createVNode("img",{src:i,class:"uni-page-head__title_image"},null,8,["src"]):a],4)])}function onPageHeadBackButton(){1===getCurrentPages$1().length?reLaunch({url:"/"}):navigateBack({from:"backbutton",success(){}})}function usePageHead(e){return{clazz:computed((()=>{const{type:t,titlePenetrate:n,shadowColorType:a}=e,i={"uni-page-head":!0,"uni-page-head-transparent":"transparent"===t,"uni-page-head-titlePenetrate":"YES"===n,"uni-page-head-shadow":!!a};return a&&(i[`uni-page-head-shadow-${a}`]=!0),i})),style:computed((()=>({backgroundColor:e.backgroundColor,color:e.titleColor,transitionDuration:e.duration,transitionTimingFunction:e.timingFunc})))}}const _sfc_main$Z={name:"PageRefresh",setup(){const{pullToRefresh:e}=usePageMeta();return{offset:e.offset,color:e.color}}},_export_sfc$1=(e,t)=>{const n=e.__vccOpts||e;for(const[a,i]of t)n[a]=i;return n},_hoisted_1={class:"uni-page-refresh-inner"},_hoisted_2=["fill"],_hoisted_3=createBaseVNode("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),_hoisted_4=createBaseVNode("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1),_hoisted_5=[_hoisted_3,_hoisted_4],_hoisted_6={class:"uni-page-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},_hoisted_7=["stroke"];function _sfc_render$v(e,t,n,a,i,o){return openBlock(),createElementBlock("uni-page-refresh",null,[createBaseVNode("div",{style:normalizeStyle({"margin-top":a.offset+"px"}),class:"uni-page-refresh"},[createBaseVNode("div",_hoisted_1,[(openBlock(),createElementBlock("svg",{fill:a.color,class:"uni-page-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},_hoisted_5,8,_hoisted_2)),(openBlock(),createElementBlock("svg",_hoisted_6,[createBaseVNode("circle",{stroke:a.color,class:"uni-page-refresh__path",cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"},null,8,_hoisted_7)]))])],4)])}const PageRefresh=_export_sfc$1(_sfc_main$Z,[["render",_sfc_render$v]]);function processDeltaY(e,t,n){const a=Array.prototype.slice.call(e.changedTouches).filter((e=>e.identifier===t))[0];return!!a&&(e.deltaY=a.pageY-n,!0)}const PULLING="pulling",REACHED="reached",ABORTING="aborting",REFRESHING="refreshing",RESTORING="restoring";function usePageRefresh(e){const t=usePageMeta(),{id:n,pullToRefresh:a}=t,{range:i,height:o}=a;let r,s,l,c,d,u,m,p;useSubscribe((()=>{t.enablePullDownRefresh&&(p||(p=REFRESHING,y(),setTimeout((()=>{S()}),50)))}),API_START_PULL_DOWN_REFRESH,!1,n),useSubscribe((()=>{t.enablePullDownRefresh&&p===REFRESHING&&(v(),p=RESTORING,y(),function(e){if(!s)return;l.transition="-webkit-transform 0.3s",l.transform+=" scale(0.01)";const t=function(){n&&clearTimeout(n),s.removeEventListener("webkitTransitionEnd",t),l.transition="",l.transform="translate3d(-50%, 0, 0)",e()};s.addEventListener("webkitTransitionEnd",t);const n=setTimeout(t,350)}((()=>{v(),p=h=f=null})))}),API_STOP_PULL_DOWN_REFRESH,!1,n),onMounted((()=>{r=e.value.$el,s=r.querySelector(".uni-page-refresh"),l=s.style,c=s.querySelector(".uni-page-refresh-inner").style}));let h=null,f=null;function g(e){p&&r&&r.classList[e]("uni-page-refresh--"+p)}function y(){g("add")}function v(){g("remove")}const _=withWebEvent((e=>{if(!t.enablePullDownRefresh)return;const n=e.changedTouches[0];d=n.identifier,u=n.pageY,m=!([ABORTING,REFRESHING,RESTORING].indexOf(p)>=0)})),b=withWebEvent((e=>{if(!t.enablePullDownRefresh)return;if(!m)return;if(!processDeltaY(e,d,u))return;let{deltaY:n}=e;if(0!==(document.documentElement.scrollTop||document.body.scrollTop))return void(d=null);if(n<0&&!p)return;e.preventDefault(),null===h&&(f=n,p=PULLING,y()),n-=f,n<0&&(n=0),h=n;(n>=i&&p!==REACHED||n<i&&p!==PULLING)&&(v(),p=p===REACHED?PULLING:REACHED,y()),function(e){if(!s)return;let t=e/i;t>1?t=1:t*=t*t;const n=Math.round(e/(i/o))||0;c.transform="rotate("+360*t+"deg)",l.clip="rect("+(45-n)+"px,45px,45px,-5px)",l.transform="translate3d(-50%, "+n+"px, 0)"}(n)})),w=withWebEvent((e=>{t.enablePullDownRefresh&&processDeltaY(e,d,u)&&null!==p&&(p===PULLING?(v(),p=ABORTING,y(),function(e){if(!s)return;if(l.transform){l.transition="-webkit-transform 0.3s",l.transform="translate3d(-50%, 0, 0)";const t=function(){n&&clearTimeout(n),s.removeEventListener("webkitTransitionEnd",t),l.transition="",e()};s.addEventListener("webkitTransitionEnd",t);const n=setTimeout(t,350)}else e()}((()=>{v(),p=h=f=null}))):p===REACHED&&(v(),p=REFRESHING,y(),S()))}));function S(){s&&(l.transition="-webkit-transform 0.2s",l.transform="translate3d(-50%, "+o+"px, 0)",invokeHook(n,ON_PULL_DOWN_REFRESH))}return{onTouchstartPassive:_,onTouchmove:b,onTouchend:w,onTouchcancel:w}}const PageBody=defineSystemComponent({name:"PageBody",setup(e,t){const n=usePageMeta(),a=ref(null),i=n.enablePullDownRefresh?usePageRefresh(a):null,o=ref(null);return watch((()=>n.enablePullDownRefresh),(()=>{o.value=n.enablePullDownRefresh?i:null}),{immediate:!0}),()=>{const e=createPageRefreshTsx(a,n);return createVNode(Fragment,null,[e,createVNode("uni-page-wrapper",o.value,[createVNode("uni-page-body",null,[renderSlot(t.slots,"default")])],16)])}}});function createPageRefreshTsx(e,t){return t.enablePullDownRefresh?createVNode(PageRefresh,{ref:e},null,512):null}const index$1=defineSystemComponent({name:"Page",setup(e,t){const n=providePageMeta(getStateId()),a=n.navigationBar,i={};return useDocumentTitle(n),()=>createVNode("uni-page",{"data-page":n.route,style:i},"custom"!==a.style?[createVNode(PageHead),createPageBodyVNode(t)]:[createPageBodyVNode(t)])}});function createPageBodyVNode(e){return openBlock(),createBlock(PageBody,{key:0},{default:withCtx((()=>[renderSlot(e.slots,"page")])),_:3})}const appId="__UNI__7F7F2CC",appName="wflow-pro工作流",appVersion="1.0.0",appVersionCode="100",debug=!1,nvue={"flex-direction":"column"},networkTimeout={request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},router={mode:"history",base:"/",assets:"assets",routerBase:"/"},async={loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0},qqMapKey="SFABZ-WANWW-FISRY-3IGTF-HV7RE-YSFTI",bMapKey=void 0,googleMapKey=void 0,aMapKey=void 0,aMapSecurityJsCode=void 0,aMapServiceHost=void 0,sdkConfigs={maps:{qqmap:{key:"SFABZ-WANWW-FISRY-3IGTF-HV7RE-YSFTI"}}},locale="",fallbackLocale="",darkmode=!1,themeConfig={};window.uni={},window.wx={},window.rpx2px=upx2px;const locales=Object.assign({}),extend=Object.assign;window.__uniConfig=extend({easycom:{custom:{"^u--(.*)":"@/uni_modules/uview-plus/components/u-$1/u-$1.vue","^up-(.*)":"@/uni_modules/uview-plus/components/u-$1/u-$1.vue","^u-([^-].*)":"@/uni_modules/uview-plus/components/u-$1/u-$1.vue"}},globalStyle:{animationType:"slide-in-right",titleView:!1,statusbar:{immersed:!1},navigationBar:{backgroundColor:"#4478F7",type:"default",titleColor:"#ffffff"},isNVue:!1},uniIdRouter:{},compilerVersion:"4.14"},{appId:appId,appName:appName,appVersion:appVersion,appVersionCode:appVersionCode,async:async,debug:debug,networkTimeout:networkTimeout,sdkConfigs:sdkConfigs,qqMapKey:qqMapKey,bMapKey:bMapKey,googleMapKey:googleMapKey,aMapKey:aMapKey,aMapSecurityJsCode:aMapSecurityJsCode,aMapServiceHost:aMapServiceHost,nvue:nvue,locale:locale,fallbackLocale:fallbackLocale,locales:Object.keys(locales).reduce(((e,t)=>{const n=t.replace(/\.\/locale\/(uni-app.)?(.*).json/,"$2");return extend(e[n]||(e[n]={}),locales[t].default),e}),{}),router:router,darkmode:darkmode,themeConfig:themeConfig}),window.__uniLayout=window.__uniLayout||{};const AsyncComponentOptions={delay:async.delay,timeout:async.timeout,suspensible:async.suspensible};async.loading&&(AsyncComponentOptions.loadingComponent={name:"SystemAsyncLoading",render:()=>createVNode(resolveComponent(async.loading))}),async.error&&(AsyncComponentOptions.errorComponent={name:"SystemAsyncError",render:()=>createVNode(resolveComponent(async.error))});const PagesLoginLoginLoader=()=>__vitePreload((()=>import("./pages-login-login.7IWiDyKF.js")),__vite__mapDeps([0,1])).then((e=>setupPage(e.default||e))),PagesLoginLogin=defineAsyncComponent(extend({loader:PagesLoginLoginLoader},AsyncComponentOptions)),ComponentsFormSubProcessSelectLoader=()=>__vitePreload((()=>import("./components-form-sub-ProcessSelect.B1ilFIQ9.js")),__vite__mapDeps([2,3,4,5,6,7,8])).then((e=>setupPage(e.default||e))),ComponentsFormSubProcessSelect=defineAsyncComponent(extend({loader:ComponentsFormSubProcessSelectLoader},AsyncComponentOptions)),PagesWorkspaceWorkspaceLoader=()=>__vitePreload((()=>import("./pages-workspace-workspace.TPmPQ3l6.js")),__vite__mapDeps([9,3,4,5,6,10,7,11])).then((e=>setupPage(e.default||e))),PagesWorkspaceWorkspace=defineAsyncComponent(extend({loader:PagesWorkspaceWorkspaceLoader},AsyncComponentOptions)),PagesSubmitSubmitLoader=()=>__vitePreload((()=>import("./pages-submit-submit.CHNm5lNJ.js")),__vite__mapDeps([12,10,13])).then((e=>setupPage(e.default||e))),PagesSubmitSubmit=defineAsyncComponent(extend({loader:PagesSubmitSubmitLoader},AsyncComponentOptions)),PagesContactsContactsLoader=()=>__vitePreload((()=>import("./pages-contacts-contacts.C6MCoVlC.js")),__vite__mapDeps([14,15])).then((e=>setupPage(e.default||e))),PagesContactsContacts=defineAsyncComponent(extend({loader:PagesContactsContactsLoader},AsyncComponentOptions)),PagesMyMyLoader=()=>__vitePreload((()=>import("./pages-my-my.CqG49xXY.js")),__vite__mapDeps([16,17])).then((e=>setupPage(e.default||e))),PagesMyMy=defineAsyncComponent(extend({loader:PagesMyMyLoader},AsyncComponentOptions)),PagesInstanceInstancePreviewLoader=()=>__vitePreload((()=>import("./pages-instance-instancePreview.B0MhCeu0.js")),__vite__mapDeps([18,6,19,20,7,21])).then((e=>setupPage(e.default||e))),PagesInstanceInstancePreview=defineAsyncComponent(extend({loader:PagesInstanceInstancePreviewLoader},AsyncComponentOptions)),PagesSubmitInitiateProcessLoader=()=>__vitePreload((()=>import("./pages-submit-InitiateProcess.4zvTtrXr.js")),__vite__mapDeps([22,3,4,19,20,7,10,23])).then((e=>setupPage(e.default||e))),PagesSubmitInitiateProcess=defineAsyncComponent(extend({loader:PagesSubmitInitiateProcessLoader},AsyncComponentOptions)),PagesMyUserAgentLoader=()=>__vitePreload((()=>import("./pages-my-UserAgent.DgIxzM3O.js")),__vite__mapDeps([24,25])).then((e=>setupPage(e.default||e))),PagesMyUserAgent=defineAsyncComponent(extend({loader:PagesMyUserAgentLoader},AsyncComponentOptions));function renderPage(e,t){return openBlock(),createBlock(index$1,null,{page:withCtx((()=>[createVNode(e,extend({},t,{ref:"page"}),null,512)])),_:1})}window.__uniRoutes=[{path:"/",alias:"/pages/login/login",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesLoginLogin,t)}},loader:PagesLoginLoginLoader,meta:{isQuit:!0,isEntry:!0,backgroundColor:"#623FDC",titleView:!1,navigationBar:{titleText:"",style:"custom",type:"default"},isNVue:!1}},{path:"/components/form/sub/ProcessSelect",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(ComponentsFormSubProcessSelect,t)}},loader:ComponentsFormSubProcessSelectLoader,meta:{enablePullDownRefresh:!0,backgroundColor:"#623FDC",navigationBar:{titleText:"选择流程",type:"default"},isNVue:!1}},{path:"/pages/workspace/workspace",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesWorkspaceWorkspace,t)}},loader:PagesWorkspaceWorkspaceLoader,meta:{enablePullDownRefresh:!0,backgroundColor:"#623FDC",navigationBarHidden:!1,navigationBar:{titleText:"工作区",type:"default"},isNVue:!1}},{path:"/pages/submit/submit",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesSubmitSubmit,t)}},loader:PagesSubmitSubmitLoader,meta:{enablePullDownRefresh:!0,backgroundColor:"#623FDC",navigationBar:{titleText:"发起流程",type:"default"},isNVue:!1}},{path:"/pages/contacts/contacts",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesContactsContacts,t)}},loader:PagesContactsContactsLoader,meta:{enablePullDownRefresh:!0,backgroundColor:"#623FDC",navigationBar:{titleText:"通讯录",type:"default"},isNVue:!1}},{path:"/pages/my/my",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesMyMy,t)}},loader:PagesMyMyLoader,meta:{backgroundColor:"#623FDC",titleView:!1,navigationBar:{titleText:"我的",type:"default"},isNVue:!1}},{path:"/pages/instance/instancePreview",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesInstanceInstancePreview,t)}},loader:PagesInstanceInstancePreviewLoader,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"流程详情",type:"default"},isNVue:!1}},{path:"/pages/submit/InitiateProcess",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesSubmitInitiateProcess,t)}},loader:PagesSubmitInitiateProcessLoader,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"提交审批",type:"default"},isNVue:!1}},{path:"/pages/my/UserAgent",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesMyUserAgent,t)}},loader:PagesMyUserAgentLoader,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"用户代理人设置",type:"default"},isNVue:!1}}].map((e=>(e.meta.route=(e.alias||e.path).slice(1),e)));const _sfc_main$Y={onLaunch:function(){console.log("App Launch"),showLoading({title:"加载中..."}),window.msgFromUniapp=function(e){console.log(e.token),e.token&&(setStorageSync("wflow-token",e.token),setStorageSync("loginUser",JSON.stringify(e.loginUser)),setStorageSync("projectSn",e.loginUser.sn),e.page?reLaunch({url:e.page}):reLaunch({url:"/pages/submit/submit"})),hideLoading()}},onShow:function(){console.log("App Show")},onHide:function(){console.log("App Hide")}};setupApp(_sfc_main$Y);const fontData=[{font_class:"arrow-down",unicode:""},{font_class:"arrow-left",unicode:""},{font_class:"arrow-right",unicode:""},{font_class:"arrow-up",unicode:""},{font_class:"auth",unicode:""},{font_class:"auth-filled",unicode:""},{font_class:"back",unicode:""},{font_class:"bars",unicode:""},{font_class:"calendar",unicode:""},{font_class:"calendar-filled",unicode:""},{font_class:"camera",unicode:""},{font_class:"camera-filled",unicode:""},{font_class:"cart",unicode:""},{font_class:"cart-filled",unicode:""},{font_class:"chat",unicode:""},{font_class:"chat-filled",unicode:""},{font_class:"chatboxes",unicode:""},{font_class:"chatboxes-filled",unicode:""},{font_class:"chatbubble",unicode:""},{font_class:"chatbubble-filled",unicode:""},{font_class:"checkbox",unicode:""},{font_class:"checkbox-filled",unicode:""},{font_class:"checkmarkempty",unicode:""},{font_class:"circle",unicode:""},{font_class:"circle-filled",unicode:""},{font_class:"clear",unicode:""},{font_class:"close",unicode:""},{font_class:"closeempty",unicode:""},{font_class:"cloud-download",unicode:""},{font_class:"cloud-download-filled",unicode:""},{font_class:"cloud-upload",unicode:""},{font_class:"cloud-upload-filled",unicode:""},{font_class:"color",unicode:""},{font_class:"color-filled",unicode:""},{font_class:"compose",unicode:""},{font_class:"contact",unicode:""},{font_class:"contact-filled",unicode:""},{font_class:"down",unicode:""},{font_class:"bottom",unicode:""},{font_class:"download",unicode:""},{font_class:"download-filled",unicode:""},{font_class:"email",unicode:""},{font_class:"email-filled",unicode:""},{font_class:"eye",unicode:""},{font_class:"eye-filled",unicode:""},{font_class:"eye-slash",unicode:""},{font_class:"eye-slash-filled",unicode:""},{font_class:"fire",unicode:""},{font_class:"fire-filled",unicode:""},{font_class:"flag",unicode:""},{font_class:"flag-filled",unicode:""},{font_class:"folder-add",unicode:""},{font_class:"folder-add-filled",unicode:""},{font_class:"font",unicode:""},{font_class:"forward",unicode:""},{font_class:"gear",unicode:""},{font_class:"gear-filled",unicode:""},{font_class:"gift",unicode:""},{font_class:"gift-filled",unicode:""},{font_class:"hand-down",unicode:""},{font_class:"hand-down-filled",unicode:""},{font_class:"hand-up",unicode:""},{font_class:"hand-up-filled",unicode:""},{font_class:"headphones",unicode:""},{font_class:"heart",unicode:""},{font_class:"heart-filled",unicode:""},{font_class:"help",unicode:""},{font_class:"help-filled",unicode:""},{font_class:"home",unicode:""},{font_class:"home-filled",unicode:""},{font_class:"image",unicode:""},{font_class:"image-filled",unicode:""},{font_class:"images",unicode:""},{font_class:"images-filled",unicode:""},{font_class:"info",unicode:""},{font_class:"info-filled",unicode:""},{font_class:"left",unicode:""},{font_class:"link",unicode:""},{font_class:"list",unicode:""},{font_class:"location",unicode:""},{font_class:"location-filled",unicode:""},{font_class:"locked",unicode:""},{font_class:"locked-filled",unicode:""},{font_class:"loop",unicode:""},{font_class:"mail-open",unicode:""},{font_class:"mail-open-filled",unicode:""},{font_class:"map",unicode:""},{font_class:"map-filled",unicode:""},{font_class:"map-pin",unicode:""},{font_class:"map-pin-ellipse",unicode:""},{font_class:"medal",unicode:""},{font_class:"medal-filled",unicode:""},{font_class:"mic",unicode:""},{font_class:"mic-filled",unicode:""},{font_class:"micoff",unicode:""},{font_class:"micoff-filled",unicode:""},{font_class:"minus",unicode:""},{font_class:"minus-filled",unicode:""},{font_class:"more",unicode:""},{font_class:"more-filled",unicode:""},{font_class:"navigate",unicode:""},{font_class:"navigate-filled",unicode:""},{font_class:"notification",unicode:""},{font_class:"notification-filled",unicode:""},{font_class:"paperclip",unicode:""},{font_class:"paperplane",unicode:""},{font_class:"paperplane-filled",unicode:""},{font_class:"person",unicode:""},{font_class:"person-filled",unicode:""},{font_class:"personadd",unicode:""},{font_class:"personadd-filled",unicode:""},{font_class:"personadd-filled-copy",unicode:""},{font_class:"phone",unicode:""},{font_class:"phone-filled",unicode:""},{font_class:"plus",unicode:""},{font_class:"plus-filled",unicode:""},{font_class:"plusempty",unicode:""},{font_class:"pulldown",unicode:""},{font_class:"pyq",unicode:""},{font_class:"qq",unicode:""},{font_class:"redo",unicode:""},{font_class:"redo-filled",unicode:""},{font_class:"refresh",unicode:""},{font_class:"refresh-filled",unicode:""},{font_class:"refreshempty",unicode:""},{font_class:"reload",unicode:""},{font_class:"right",unicode:""},{font_class:"scan",unicode:""},{font_class:"search",unicode:""},{font_class:"settings",unicode:""},{font_class:"settings-filled",unicode:""},{font_class:"shop",unicode:""},{font_class:"shop-filled",unicode:""},{font_class:"smallcircle",unicode:""},{font_class:"smallcircle-filled",unicode:""},{font_class:"sound",unicode:""},{font_class:"sound-filled",unicode:""},{font_class:"spinner-cycle",unicode:""},{font_class:"staff",unicode:""},{font_class:"staff-filled",unicode:""},{font_class:"star",unicode:""},{font_class:"star-filled",unicode:""},{font_class:"starhalf",unicode:""},{font_class:"trash",unicode:""},{font_class:"trash-filled",unicode:""},{font_class:"tune",unicode:""},{font_class:"tune-filled",unicode:""},{font_class:"undo",unicode:""},{font_class:"undo-filled",unicode:""},{font_class:"up",unicode:""},{font_class:"top",unicode:""},{font_class:"upload",unicode:""},{font_class:"upload-filled",unicode:""},{font_class:"videocam",unicode:""},{font_class:"videocam-filled",unicode:""},{font_class:"vip",unicode:""},{font_class:"vip-filled",unicode:""},{font_class:"wallet",unicode:""},{font_class:"wallet-filled",unicode:""},{font_class:"weibo",unicode:""},{font_class:"weixin",unicode:""}],_export_sfc=(e,t)=>{const n=e.__vccOpts||e;for(const[a,i]of t)n[a]=i;return n},getVal$1=e=>"number"==typeof e||/^[0-9]*$/g.test(e)?e+"px":e,_sfc_main$X={name:"UniIcons",emits:["click"],props:{type:{type:String,default:""},color:{type:String,default:"#333333"},size:{type:[Number,String],default:16},customPrefix:{type:String,default:""},fontFamily:{type:String,default:""}},data:()=>({icons:fontData}),computed:{unicode(){let e=this.icons.find((e=>e.font_class===this.type));return e?e.unicode:""},iconSize(){return getVal$1(this.size)},styleObj(){return""!==this.fontFamily?`color: ${this.color}; font-size: ${this.iconSize}; font-family: ${this.fontFamily};`:`color: ${this.color}; font-size: ${this.iconSize};`}},methods:{_onClick(){this.$emit("click")}}};function _sfc_render$u(e,t,n,a,i,o){const r=index$i;return openBlock(),createBlock(r,{style:normalizeStyle(o.styleObj),class:normalizeClass(["uni-icons",["uniui-"+n.type,n.customPrefix,n.customPrefix?n.type:""]]),onClick:o._onClick},{default:withCtx((()=>[renderSlot(e.$slots,"default",{},void 0,!0)])),_:3},8,["style","class","onClick"])}const __easycom_3$3=_export_sfc(_sfc_main$X,[["render",_sfc_render$u],["__scopeId","data-v-1320ff52"]]);function resolveEasycom(e,t){return"string"==typeof e?t:e}const createHook=e=>(t,n=getCurrentInstance())=>{!isInSSRComponentSetup&&injectHook(e,t,n)},onShow=createHook(ON_SHOW),onLoad=createHook(ON_LOAD),onUnload=createHook(ON_UNLOAD),onBackPress=createHook(ON_BACK_PRESS),onPullDownRefresh=createHook(ON_PULL_DOWN_REFRESH);function obj2strClass(e){let t="";for(let n in e){e[n]&&(t+=`${n} `)}return t}function obj2strStyle(e){let t="";for(let n in e){t+=`${n}:${e[n]};`}return t}const _sfc_main$W={name:"uni-easyinput",emits:["click","iconClick","update:modelValue","input","focus","blur","confirm","clear","eyes","change","keyboardheightchange"],model:{prop:"modelValue",event:"update:modelValue"},options:{virtualHost:!0},inject:{form:{from:"uniForm",default:null},formItem:{from:"uniFormItem",default:null}},props:{name:String,value:[Number,String],modelValue:[Number,String],type:{type:String,default:"text"},clearable:{type:Boolean,default:!0},autoHeight:{type:Boolean,default:!1},placeholder:{type:String,default:" "},placeholderStyle:String,focus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},clearSize:{type:[Number,String],default:24},inputBorder:{type:Boolean,default:!0},prefixIcon:{type:String,default:""},suffixIcon:{type:String,default:""},trim:{type:[Boolean,String],default:!1},cursorSpacing:{type:Number,default:0},passwordIcon:{type:Boolean,default:!0},primaryColor:{type:String,default:"#2979ff"},styles:{type:Object,default:()=>({color:"#333",backgroundColor:"#fff",disableColor:"#F7F6F6",borderColor:"#e5e5e5"})},errorMessage:{type:[String,Boolean],default:""}},data:()=>({focused:!1,val:"",showMsg:"",border:!1,isFirstBorder:!1,showClearIcon:!1,showPassword:!1,focusShow:!1,localMsg:"",isEnter:!1}),computed:{isVal(){const e=this.val;return!(!e&&0!==e)},msg(){return this.localMsg||this.errorMessage},inputMaxlength(){return Number(this.maxlength)},boxStyle(){return`color:${this.inputBorder&&this.msg?"#e43d33":this.styles.color};`},inputContentClass(){return obj2strClass({"is-input-border":this.inputBorder,"is-input-error-border":this.inputBorder&&this.msg,"is-textarea":"textarea"===this.type,"is-disabled":this.disabled,"is-focused":this.focusShow})},inputContentStyle(){const e=this.focusShow?this.primaryColor:this.styles.borderColor;return obj2strStyle({"border-color":(this.inputBorder&&this.msg?"#dd524d":e)||"#e5e5e5","background-color":this.disabled?this.styles.disableColor:this.styles.backgroundColor})},inputStyle(){return obj2strStyle({"padding-right":"password"===this.type||this.clearable||this.prefixIcon?"":"10px","padding-left":this.prefixIcon?"":"10px"})}},watch:{value(e){this.val=e},modelValue(e){this.val=e},focus(e){this.$nextTick((()=>{this.focused=this.focus,this.focusShow=this.focus}))}},created(){this.init(),this.form&&this.formItem&&this.$watch("formItem.errMsg",(e=>{this.localMsg=e}))},mounted(){this.$nextTick((()=>{this.focused=this.focus,this.focusShow=this.focus}))},methods:{init(){this.value||0===this.value?this.val=this.value:this.modelValue||0===this.modelValue||""===this.modelValue?this.val=this.modelValue:this.val=null},onClickIcon(e){this.$emit("iconClick",e)},onEyes(){this.showPassword=!this.showPassword,this.$emit("eyes",this.showPassword)},onInput(e){let t=e.detail.value;this.trim&&("boolean"==typeof this.trim&&this.trim&&(t=this.trimStr(t)),"string"==typeof this.trim&&(t=this.trimStr(t,this.trim))),this.errMsg&&(this.errMsg=""),this.val=t,this.$emit("input",t),this.$emit("update:modelValue",t)},onFocus(){this.$nextTick((()=>{this.focused=!0})),this.$emit("focus",null)},_Focus(e){this.focusShow=!0,this.$emit("focus",e)},onBlur(){this.focused=!1,this.$emit("focus",null)},_Blur(e){if(e.detail.value,this.focusShow=!1,this.$emit("blur",e),!1===this.isEnter&&this.$emit("change",this.val),this.val=this.modelValue,this.form&&this.formItem){const{validateTrigger:e}=this.form;"blur"===e&&this.formItem.onFieldChange()}},onConfirm(e){this.$emit("confirm",this.val),this.isEnter=!0,this.$emit("change",this.val),this.$nextTick((()=>{this.isEnter=!1}))},onClear(e){this.val="",this.$emit("input",""),this.$emit("update:modelValue",""),this.$emit("clear")},onkeyboardheightchange(e){this.$emit("keyboardheightchange",e)},trimStr:(e,t="both")=>"both"===t?e.trim():"left"===t?e.trimLeft():"right"===t?e.trimRight():"start"===t?e.trimStart():"end"===t?e.trimEnd():"all"===t?e.replace(/\s+/g,""):e}};function _sfc_render$t(e,t,n,a,i,o){const r=resolveEasycom(resolveDynamicComponent("uni-icons"),__easycom_3$3),s=index$h,l=Input,c=index$g;return openBlock(),createBlock(c,{class:normalizeClass(["uni-easyinput",{"uni-easyinput-error":o.msg}]),style:normalizeStyle(o.boxStyle)},{default:withCtx((()=>[createVNode(c,{class:normalizeClass(["uni-easyinput__content",o.inputContentClass]),style:normalizeStyle(o.inputContentStyle)},{default:withCtx((()=>[n.prefixIcon?(openBlock(),createBlock(r,{key:0,class:"content-clear-icon",type:n.prefixIcon,color:"#c0c4cc",onClick:t[0]||(t[0]=e=>o.onClickIcon("prefix")),size:"22"},null,8,["type"])):createCommentVNode("",!0),"textarea"===n.type?(openBlock(),createBlock(s,{key:1,class:normalizeClass(["uni-easyinput__content-textarea",{"input-padding":n.inputBorder}]),name:n.name,value:i.val,placeholder:n.placeholder,placeholderStyle:n.placeholderStyle,disabled:n.disabled,"placeholder-class":"uni-easyinput__placeholder-class",maxlength:o.inputMaxlength,focus:i.focused,autoHeight:n.autoHeight,"cursor-spacing":n.cursorSpacing,onInput:o.onInput,onBlur:o._Blur,onFocus:o._Focus,onConfirm:o.onConfirm,onKeyboardheightchange:o.onkeyboardheightchange},null,8,["class","name","value","placeholder","placeholderStyle","disabled","maxlength","focus","autoHeight","cursor-spacing","onInput","onBlur","onFocus","onConfirm","onKeyboardheightchange"])):(openBlock(),createBlock(l,{key:2,type:"password"===n.type?"text":n.type,class:"uni-easyinput__content-input",style:normalizeStyle(o.inputStyle),name:n.name,value:i.val,password:!i.showPassword&&"password"===n.type,placeholder:n.placeholder,placeholderStyle:n.placeholderStyle,"placeholder-class":"uni-easyinput__placeholder-class",disabled:n.disabled,maxlength:o.inputMaxlength,focus:i.focused,confirmType:n.confirmType,"cursor-spacing":n.cursorSpacing,onFocus:o._Focus,onBlur:o._Blur,onInput:o.onInput,onConfirm:o.onConfirm,onKeyboardheightchange:o.onkeyboardheightchange},null,8,["type","style","name","value","password","placeholder","placeholderStyle","disabled","maxlength","focus","confirmType","cursor-spacing","onFocus","onBlur","onInput","onConfirm","onKeyboardheightchange"])),"password"===n.type&&n.passwordIcon?(openBlock(),createElementBlock(Fragment,{key:3},[o.isVal?(openBlock(),createBlock(r,{key:0,class:normalizeClass(["content-clear-icon",{"is-textarea-icon":"textarea"===n.type}]),type:i.showPassword?"eye-slash-filled":"eye-filled",size:22,color:i.focusShow?n.primaryColor:"#c0c4cc",onClick:o.onEyes},null,8,["class","type","color","onClick"])):createCommentVNode("",!0)],64)):n.suffixIcon?(openBlock(),createElementBlock(Fragment,{key:4},[n.suffixIcon?(openBlock(),createBlock(r,{key:0,class:"content-clear-icon",type:n.suffixIcon,color:"#c0c4cc",onClick:t[1]||(t[1]=e=>o.onClickIcon("suffix")),size:"22"},null,8,["type"])):createCommentVNode("",!0)],64)):(openBlock(),createElementBlock(Fragment,{key:5},[n.clearable&&o.isVal&&!n.disabled&&"textarea"!==n.type?(openBlock(),createBlock(r,{key:0,class:normalizeClass(["content-clear-icon",{"is-textarea-icon":"textarea"===n.type}]),type:"clear",size:n.clearSize,color:o.msg?"#dd524d":i.focusShow?n.primaryColor:"#c0c4cc",onClick:o.onClear},null,8,["class","size","color","onClick"])):createCommentVNode("",!0)],64)),renderSlot(e.$slots,"right",{},void 0,!0)])),_:3},8,["class","style"])])),_:3},8,["class","style"])}const __easycom_8=_export_sfc(_sfc_main$W,[["render",_sfc_render$t],["__scopeId","data-v-d9756714"]]),_sfc_main$V={__name:"TextInput",props:{formProps:{type:Object,default:()=>({})},modelValue:String,readonly:Boolean},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=computed({get:()=>n.modelValue,set(e){i("update:modelValue",e)}}),i=t;function o(){scanCode({success:e=>{console.log(e.result),a.value=e.result},fail:e=>{console.log(e),showToast({icon:"none",title:"扫码异常"})}})}return(t,n)=>{const i=resolveEasycom(resolveDynamicComponent("uni-easyinput"),__easycom_8),r=index$i;return e.readonly?(openBlock(),createBlock(r,{key:1,class:"w-form-input-rv"},{default:withCtx((()=>[createTextVNode(toDisplayString(a.value),1)])),_:1})):(openBlock(),createBlock(i,{key:0,inputBorder:!1,class:"w-form-input",modelValue:a.value,"onUpdate:modelValue":n[0]||(n[0]=e=>a.value=e),prefixIcon:e.formProps.enableScan?"scan":null,onIconClick:o,placeholder:e.formProps.placeholder||"请输入内容"},null,8,["modelValue","prefixIcon","placeholder"]))}}},BASE_URL="http://192.168.34.155:19111";function request(e={},t=!0){return new Promise(((n,a)=>{t&&showLoading({title:"加载中..."}),request$1({url:BASE_URL+(e.url.startsWith("/")?e.url:"/"+e.url),method:(e.method||"GET").toLocaleUpperCase(),timeout:e.timeout||2e4,withCredentials:!0,header:{Authorization:"Bearer "+getStorageSync("wflow-token"),TenantId:JSON.parse(getStorageSync("loginUser")).sn,...e.header},dataType:"json",data:e.data,success:e=>{200===e.statusCode?n(e):401===e.statusCode||(500===e.statusCode?(console.log(e),showToast({icon:"none",title:"系统异常："+e.data})):a({statusCode:e.statusCode,msg:e.data}))},fail:e=>{console.log(e),showToast({title:"网络异常，请检查网络",duration:2e3,icon:"none"})},complete:()=>hideLoading()})}))}function getRes(e){return/^(http:|https:).*/gi.test(e)?e:BASE_URL+"/image/"+e}function debounce(e,t=800){var n=null;let a=e;return function(...e){clearTimeout(n),n=setTimeout((()=>{a.apply(this,e)}),t)}}function $deepCopy(e){return JSON.parse(JSON.stringify(e))}function $nEmpty(e){return e&&""!==(e||"")}function parseNumber(e,t){return"string"==typeof e?t>0?parseFloat(parseFloat(e).toFixed(t)):parseInt(e):e}const fileTypes={pdf:["pdf"],img:["bmp","jpg","png","tif","gif","svg","psd","webp","apng"],video:["mp4","avi","mpeg","mkv","mov","rmvb","flv","3gp","wav"],word:["doc","docx"],excel:["xls","xlsx"],ppt:["ppt","pptx"],txt:["txt"],zip:["zip","rar","7z","iso"]},fileTypeMap=new Map;for(const Vt of Object.keys(fileTypes))fileTypes[Vt].forEach((e=>fileTypeMap.set(e,Vt)));function getFileImgByType(e){const t=fileTypeMap.get(e.split(".").pop());return`/static/image/filetype/${""===(t||"")?"file":t}.png`}function saveFileTemp(e){}function removeFileTemp(e){}function openLocalFile(e,t){window.open(t),console.log(getStorageSync("wflow-token"),999)}function getFormValText(e){switch(e.type){case"DeptPicker":case"GroupPicker":case"UserPicker":case"FileUpload":case"ImageUpload":return(e.value||[]).map((e=>e.name)).join("、");case"TimeRangePicker":case"DateTimeRange":case"SelectPlus":case"MultipleSelect":return(e.value||[]).join("、");case"ProcessIndex":return(e.value||[]).map((e=>e.startUser.name+"-"+e.name)).join("、");default:return e.value}}function showItem(e,t){return!("R"===e.perm&&isEm(t))||"H"===e.perm}function isEm(e){return!$nEmpty(e)||e instanceof String&&""===e.trim()||Array.isArray(e)&&0===e.length}function isVideoLink(e){const t=e.split(".").pop().toLowerCase();return["mp4","webm","ogg","mov","avi","flv","wmv"].includes(t)}function isImageLink(e){return/\.(jpg|jpeg|png|gif|webp)$/i.test(e)}const _sfc_main$U={__name:"AmountInput",props:{formProps:{type:Object,default:()=>({})},modelValue:Number|String,readonly:Boolean},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=computed({get:()=>parseNumber(n.modelValue,n.formProps.precision),set(e){i("update:modelValue",parseNumber(e,n.formProps.precision))}}),i=t,o=computed((()=>function(e){const t=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],n=["","拾","佰","仟"],a=["","万","亿","兆"],i=["角","分","毫","厘"],o="整",r="元";let s,l,c,d=1e15,u="";if(""===e)return"";if((e=parseFloat(e))>=d)return"";if(0===e)return u=t[0]+r+o,u;-1===(e=e.toString()).indexOf(".")?(s=e,l=""):(c=e.split("."),s=c[0],l=c[1].substr(0,4));if(parseInt(s,10)>0){var m=0,p=s.length;for(let e=0;e<p;e++){let i=s.substr(e,1),o=p-e-1,r=o/4,l=o%4;"0"==i?m++:(m>0&&(u+=t[0]),m=0,u+=t[parseInt(i)]+n[l]),0==l&&m<4&&(u+=a[r])}u+=r}if(""!==l){let e=l.length;for(let n=0;n<e;n++){let e=l.substr(n,1);"0"!==e&&(u+=t[Number(e)]+i[n])}}""===u?u+=t[0]+r+o:""===l&&(u+=o);return u}(n.modelValue)));return(t,n)=>{const i=resolveEasycom(resolveDynamicComponent("uni-easyinput"),__easycom_8),r=index$i,s=index$g;return openBlock(),createBlock(s,null,{default:withCtx((()=>[e.readonly?(openBlock(),createBlock(r,{key:1,class:"w-form-input-rv"},{default:withCtx((()=>[createTextVNode(toDisplayString(a.value),1)])),_:1})):(openBlock(),createBlock(i,{key:0,inputBorder:!1,class:"w-form-input",type:"digit",modelValue:a.value,"onUpdate:modelValue":n[0]||(n[0]=e=>a.value=e),placeholder:e.formProps.placeholder||"请输入金额"},null,8,["modelValue","placeholder"])),e.formProps.showChinese?(openBlock(),createBlock(s,{key:2,style:{"font-size":"24rpx",color:"#a2a2a2"}},{default:withCtx((()=>[createTextVNode(toDisplayString(""!==o.value?`大写：${o.value}`:""),1)])),_:1})):createCommentVNode("",!0)])),_:1})}}},_sfc_main$T={__name:"TextareaInput",props:{formProps:{type:Object,default:()=>({})},modelValue:String,readonly:Boolean},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=computed({get:()=>n.modelValue,set(e){i("update:modelValue",e)}}),i=t;return(t,i)=>{const o=resolveEasycom(resolveDynamicComponent("uni-easyinput"),__easycom_8),r=index$i;return e.readonly?(openBlock(),createBlock(r,{key:1,class:"w-form-input-rv"},{default:withCtx((()=>[createTextVNode(toDisplayString(a.value),1)])),_:1})):(openBlock(),createBlock(o,{key:0,inputBorder:!1,class:"w-form-input",type:"textarea",modelValue:a.value,"onUpdate:modelValue":i[0]||(i[0]=e=>a.value=e),placeholder:n.formProps.placeholder||"请输入内容"},null,8,["modelValue","placeholder"]))}}},easycom={custom:{"^u--(.*)":"@/uni_modules/uview-plus/components/u-$1/u-$1.vue","^up-(.*)":"@/uni_modules/uview-plus/components/u-$1/u-$1.vue","^u-([^-].*)":"@/uni_modules/uview-plus/components/u-$1/u-$1.vue"}},pages=[{path:"pages/login/login",style:{navigationBarTitleText:"",navigationStyle:"custom",backgroundColor:"#623FDC","app-plus":{titleView:!1}}},{path:"components/form/sub/ProcessSelect",style:{enablePullDownRefresh:!0,navigationBarTitleText:"选择流程",backgroundColor:"#623FDC"}},{path:"pages/workspace/workspace",style:{enablePullDownRefresh:!0,navigationBarTitleText:"工作区",backgroundColor:"#623FDC",navigationBarHidden:!1}},{path:"pages/submit/submit",style:{enablePullDownRefresh:!0,navigationBarTitleText:"发起流程",backgroundColor:"#623FDC"}},{path:"pages/contacts/contacts",style:{enablePullDownRefresh:!0,navigationBarTitleText:"通讯录",backgroundColor:"#623FDC"}},{path:"pages/my/my",style:{navigationBarTitleText:"我的",backgroundColor:"#623FDC","app-plus":{titleView:!1}}},{path:"pages/instance/instancePreview",style:{navigationBarTitleText:"流程详情",enablePullDownRefresh:!1}},{path:"pages/submit/InitiateProcess",style:{navigationBarTitleText:"提交审批",enablePullDownRefresh:!1}},{path:"pages/my/UserAgent",style:{navigationBarTitleText:"用户代理人设置",enablePullDownRefresh:!1}}],globalStyle={navigationBarTextStyle:"white",navigationBarBackgroundColor:"#4478F7","app-plus":{titleView:!1,statusbar:{immersed:!1}},animationType:"slide-in-right"},uniIdRouter={},e$1={easycom:easycom,pages:pages,globalStyle:globalStyle,uniIdRouter:uniIdRouter};var define_process_env_UNI_SECURE_NETWORK_CONFIG_default=[];function t$5(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n$1(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var s$1=n$1((function(e,t){var n;e.exports=(n=n||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),a={},i=a.lib={},o=i.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},r=i.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,n=e.words,a=this.sigBytes,i=e.sigBytes;if(this.clamp(),a%4)for(var o=0;o<i;o++){var r=n[o>>>2]>>>24-o%4*8&255;t[a+o>>>2]|=r<<24-(a+o)%4*8}else for(o=0;o<i;o+=4)t[a+o>>>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,a=[],i=function(t){var n=987654321,a=4294967295;return function(){var i=((n=36969*(65535&n)+(n>>16)&a)<<16)+(t=18e3*(65535&t)+(t>>16)&a)&a;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},o=0;o<t;o+=4){var s=i(4294967296*(n||e.random()));n=987654071*s(),a.push(4294967296*s()|0)}return new r.init(a,t)}}),s=a.enc={},l=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,a=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;a.push((o>>>4).toString(16)),a.push((15&o).toString(16))}return a.join("")},parse:function(e){for(var t=e.length,n=[],a=0;a<t;a+=2)n[a>>>3]|=parseInt(e.substr(a,2),16)<<24-a%8*4;return new r.init(n,t/2)}},c=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,a=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;a.push(String.fromCharCode(o))}return a.join("")},parse:function(e){for(var t=e.length,n=[],a=0;a<t;a++)n[a>>>2]|=(255&e.charCodeAt(a))<<24-a%4*8;return new r.init(n,t)}},d=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},u=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new r.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,a=n.words,i=n.sigBytes,o=this.blockSize,s=i/(4*o),l=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*o,c=e.min(4*l,i);if(l){for(var d=0;d<l;d+=o)this._doProcessBlock(a,d);var u=a.splice(0,l);n.sigBytes-=c}return new r.init(u,c)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});i.Hasher=u.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){u.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new m.HMAC.init(e,n).finalize(t)}}});var m=a.algo={};return a}(Math),n)})),r$1=s$1,i$1=(n$1((function(e,t){var n;e.exports=(n=r$1,function(e){var t=n,a=t.lib,i=a.WordArray,o=a.Hasher,r=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var l=r.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var a=t+n,i=e[a];e[a]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,r=e[t+0],l=e[t+1],p=e[t+2],h=e[t+3],f=e[t+4],g=e[t+5],y=e[t+6],v=e[t+7],_=e[t+8],b=e[t+9],w=e[t+10],S=e[t+11],C=e[t+12],k=e[t+13],x=e[t+14],T=e[t+15],A=o[0],E=o[1],I=o[2],P=o[3];A=c(A,E,I,P,r,7,s[0]),P=c(P,A,E,I,l,12,s[1]),I=c(I,P,A,E,p,17,s[2]),E=c(E,I,P,A,h,22,s[3]),A=c(A,E,I,P,f,7,s[4]),P=c(P,A,E,I,g,12,s[5]),I=c(I,P,A,E,y,17,s[6]),E=c(E,I,P,A,v,22,s[7]),A=c(A,E,I,P,_,7,s[8]),P=c(P,A,E,I,b,12,s[9]),I=c(I,P,A,E,w,17,s[10]),E=c(E,I,P,A,S,22,s[11]),A=c(A,E,I,P,C,7,s[12]),P=c(P,A,E,I,k,12,s[13]),I=c(I,P,A,E,x,17,s[14]),A=d(A,E=c(E,I,P,A,T,22,s[15]),I,P,l,5,s[16]),P=d(P,A,E,I,y,9,s[17]),I=d(I,P,A,E,S,14,s[18]),E=d(E,I,P,A,r,20,s[19]),A=d(A,E,I,P,g,5,s[20]),P=d(P,A,E,I,w,9,s[21]),I=d(I,P,A,E,T,14,s[22]),E=d(E,I,P,A,f,20,s[23]),A=d(A,E,I,P,b,5,s[24]),P=d(P,A,E,I,x,9,s[25]),I=d(I,P,A,E,h,14,s[26]),E=d(E,I,P,A,_,20,s[27]),A=d(A,E,I,P,k,5,s[28]),P=d(P,A,E,I,p,9,s[29]),I=d(I,P,A,E,v,14,s[30]),A=u(A,E=d(E,I,P,A,C,20,s[31]),I,P,g,4,s[32]),P=u(P,A,E,I,_,11,s[33]),I=u(I,P,A,E,S,16,s[34]),E=u(E,I,P,A,x,23,s[35]),A=u(A,E,I,P,l,4,s[36]),P=u(P,A,E,I,f,11,s[37]),I=u(I,P,A,E,v,16,s[38]),E=u(E,I,P,A,w,23,s[39]),A=u(A,E,I,P,k,4,s[40]),P=u(P,A,E,I,r,11,s[41]),I=u(I,P,A,E,h,16,s[42]),E=u(E,I,P,A,y,23,s[43]),A=u(A,E,I,P,b,4,s[44]),P=u(P,A,E,I,C,11,s[45]),I=u(I,P,A,E,T,16,s[46]),A=m(A,E=u(E,I,P,A,p,23,s[47]),I,P,r,6,s[48]),P=m(P,A,E,I,v,10,s[49]),I=m(I,P,A,E,x,15,s[50]),E=m(E,I,P,A,g,21,s[51]),A=m(A,E,I,P,C,6,s[52]),P=m(P,A,E,I,h,10,s[53]),I=m(I,P,A,E,w,15,s[54]),E=m(E,I,P,A,l,21,s[55]),A=m(A,E,I,P,_,6,s[56]),P=m(P,A,E,I,T,10,s[57]),I=m(I,P,A,E,y,15,s[58]),E=m(E,I,P,A,k,21,s[59]),A=m(A,E,I,P,f,6,s[60]),P=m(P,A,E,I,S,10,s[61]),I=m(I,P,A,E,p,15,s[62]),E=m(E,I,P,A,b,21,s[63]),o[0]=o[0]+A|0,o[1]=o[1]+E|0,o[2]=o[2]+I|0,o[3]=o[3]+P|0},_doFinalize:function(){var t=this._data,n=t.words,a=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var o=e.floor(a/4294967296),r=a;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var d=l[c];l[c]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,a,i,o,r){var s=e+(t&n|~t&a)+i+r;return(s<<o|s>>>32-o)+t}function d(e,t,n,a,i,o,r){var s=e+(t&a|n&~a)+i+r;return(s<<o|s>>>32-o)+t}function u(e,t,n,a,i,o,r){var s=e+(t^n^a)+i+r;return(s<<o|s>>>32-o)+t}function m(e,t,n,a,i,o,r){var s=e+(n^(t|~a))+i+r;return(s<<o|s>>>32-o)+t}t.MD5=o._createHelper(l),t.HmacMD5=o._createHmacHelper(l)}(Math),n.MD5)})),n$1((function(e,t){var n,a,i;e.exports=(a=(n=r$1).lib.Base,i=n.enc.Utf8,void(n.algo.HMAC=a.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=i.parse(t));var n=e.blockSize,a=4*n;t.sigBytes>a&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),r=this._iKey=t.clone(),s=o.words,l=r.words,c=0;c<n;c++)s[c]^=1549556828,l[c]^=909522486;o.sigBytes=r.sigBytes=a,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))})),n$1((function(e,t){e.exports=r$1.HmacMD5}))),o$1=n$1((function(e,t){e.exports=r$1.enc.Utf8})),a$1=n$1((function(e,t){var n,a,i;e.exports=(i=(a=n=r$1).lib.WordArray,a.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,a=this._map;e.clamp();for(var i=[],o=0;o<n;o+=3)for(var r=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<n;s++)i.push(a.charAt(r>>>6*(3-s)&63));var l=a.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(e){var t=e.length,n=this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var o=0;o<n.length;o++)a[n.charCodeAt(o)]=o}var r=n.charAt(64);if(r){var s=e.indexOf(r);-1!==s&&(t=s)}return function(e,t,n){for(var a=[],o=0,r=0;r<t;r++)if(r%4){var s=n[e.charCodeAt(r-1)]<<r%4*2,l=n[e.charCodeAt(r)]>>>6-r%4*2;a[o>>>2]|=(s|l)<<24-o%4*8,o++}return i.create(a,o)}(e,t,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)}));const c$1="FUNCTION",u$1="OBJECT",h$1="CLIENT_DB",l$1="pending",d$1="fulfilled",p$1="rejected";function f$1(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function g$1(e){return"object"===f$1(e)}function m$1(e){return"function"==typeof e}function y$1(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}const _$1="REJECTED",w$1="NOT_PENDING";let v$1=class{constructor({createPromise:e,retryRule:t=_$1}={}){this.createPromise=e,this.status=null,this.promise=null,this.retryRule=t}get needRetry(){if(!this.status)return!0;switch(this.retryRule){case _$1:return this.status===p$1;case w$1:return this.status!==l$1}}exec(){return this.needRetry?(this.status=l$1,this.promise=this.createPromise().then((e=>(this.status=d$1,Promise.resolve(e))),(e=>(this.status=p$1,Promise.reject(e)))),this.promise):this.promise}};function I(e){return e&&"string"==typeof e?JSON.parse(e):e}const S$1=!1,A=I(define_process_env_UNI_SECURE_NETWORK_CONFIG_default),P$1="web";I("");const C=I("[]")||[];let O$1="";try{O$1="__UNI__7F7F2CC"}catch(e2){}let E$1={};function L$1(e,t={}){var n,a;return n=E$1,a=e,Object.prototype.hasOwnProperty.call(n,a)||(E$1[e]=t),E$1[e]}const R=["invoke","success","fail","complete"],U=L$1("_globalUniCloudInterceptor");function N(e,t){U[e]||(U[e]={}),g$1(t)&&Object.keys(t).forEach((n=>{R.indexOf(n)>-1&&function(e,t,n){let a=U[e][t];a||(a=U[e][t]=[]),-1===a.indexOf(n)&&m$1(n)&&a.push(n)}(e,n,t[n])}))}function D$1(e,t){U[e]||(U[e]={}),g$1(t)?Object.keys(t).forEach((n=>{R.indexOf(n)>-1&&function(e,t,n){const a=U[e][t];if(!a)return;const i=a.indexOf(n);i>-1&&a.splice(i,1)}(e,n,t[n])})):delete U[e]}function M$1(e,t){return e&&0!==e.length?e.reduce(((e,n)=>e.then((()=>n(t)))),Promise.resolve()):Promise.resolve()}function q(e,t){return U[e]&&U[e][t]||[]}function F(e){N("callObject",e)}const K=L$1("_globalUniCloudListener"),j="response",$="needLogin",B="refreshToken",W$1="clientdb",H="cloudfunction",z="cloudobject";function J(e){return K[e]||(K[e]=[]),K[e]}function G(e,t){const n=J(e);n.includes(t)||n.push(t)}function V(e,t){const n=J(e),a=n.indexOf(t);-1!==a&&n.splice(a,1)}function Y(e,t){const n=J(e);for(let a=0;a<n.length;a++)(0,n[a])(t)}let Q,X=!1;function Z(){return Q||(Q=new Promise((e=>{X&&e(),function t(){if("function"==typeof getCurrentPages$1){const t=getCurrentPages$1();t&&t[0]&&(X=!0,e())}X||setTimeout((()=>{t()}),30)}()})),Q)}function ee(e){const t={};for(const n in e){const a=e[n];m$1(a)&&(t[n]=y$1(a))}return t}class te extends Error{constructor(e){super(e.message),this.errMsg=e.message||e.errMsg||"unknown system error",this.code=this.errCode=e.code||e.errCode||"SYSTEM_ERROR",this.errSubject=this.subject=e.subject||e.errSubject,this.cause=e.cause,this.requestId=e.requestId}toJson(e=0){if(!(e>=10))return e++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(e):this.cause}}}var ne={request:e=>request$1(e),uploadFile:e=>uploadFile(e),setStorageSync:(e,t)=>setStorageSync(e,t),getStorageSync:e=>getStorageSync(e),removeStorageSync:e=>removeStorageSync(e),clearStorageSync:()=>clearStorageSync()};function se(e){return e&&se(e.__v_raw)||e}function re(){return{token:ne.getStorageSync("uni_id_token")||ne.getStorageSync("uniIdToken"),tokenExpired:ne.getStorageSync("uni_id_token_expired")}}function ie({token:e,tokenExpired:t}={}){e&&ne.setStorageSync("uni_id_token",e),t&&ne.setStorageSync("uni_id_token_expired",t)}let oe,ae;function ce(){return oe||(oe=getSystemInfoSync()),oe}function ue(){let e,t;try{if(getLaunchOptionsSync){if(getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;const{scene:n,channel:a}=getLaunchOptionsSync();e=a,t=n}}catch(n){}return{channel:e,scene:t}}function he(){const e=getLocale&&getLocale()||"en";if(ae)return{...ae,locale:e,LOCALE:e};const t=ce(),{deviceId:n,osName:a,uniPlatform:i,appId:o}=t,r=["pixelRatio","brand","model","system","language","version","platform","host","SDKVersion","swanNativeVersion","app","AppPlatform","fontSizeSetting"];for(let s=0;s<r.length;s++)delete t[r[s]];return ae={PLATFORM:i,OS:a,APPID:o,DEVICEID:n,...ue(),...t},{...ae,locale:e,LOCALE:e}}var le={sign:function(e,t){let n="";return Object.keys(e).sort().forEach((function(t){e[t]&&(n=n+"&"+t+"="+e[t])})),n=n.slice(1),i$1(n,t).toString()},wrappedRequest:function(e,t){return new Promise(((n,a)=>{t(Object.assign(e,{complete(e){e||(e={});const t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400){const n=e.data&&e.data.error&&e.data.error.code||"SYS_ERR",i=e.data&&e.data.error&&e.data.error.message||e.errMsg||"request:fail";return a(new te({code:n,message:i,requestId:t}))}const i=e.data;if(i.error)return a(new te({code:i.error.code,message:i.error.message,requestId:t}));i.result=i.data,i.requestId=t,delete i.data,n(i)}}))}))},toBase64:function(e){return a$1.stringify(o$1.parse(e))}},de=class{constructor(e){["spaceId","clientSecret"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)})),this.config=Object.assign({},{endpoint:0===e.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},e),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=ne,this._getAccessTokenPromiseHub=new v$1({createPromise:()=>this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((e=>{if(!e.result||!e.result.accessToken)throw new te({code:"AUTH_FAILED",message:"获取accessToken失败"});this.setAccessToken(e.result.accessToken)})),retryRule:w$1})}get hasAccessToken(){return!!this.accessToken}setAccessToken(e){this.accessToken=e}requestWrapped(e){return le.wrappedRequest(e,this.adapter.request)}requestAuth(e){return this.requestWrapped(e)}request(e,t){return Promise.resolve().then((()=>this.hasAccessToken?t?this.requestWrapped(e):this.requestWrapped(e).catch((t=>new Promise(((e,n)=>{!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?n(t):e()})).then((()=>this.getAccessToken())).then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)})))):this.getAccessToken().then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)}))))}rebuildRequest(e){const t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=le.sign(t.data,this.config.clientSecret),t}setupRequest(e,t){const n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),a={"Content-Type":"application/json"};return"auth"!==t&&(n.token=this.accessToken,a["x-basement-token"]=this.accessToken),a["x-serverless-sign"]=le.sign(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:a}}getAccessToken(){return this._getAccessTokenPromiseHub.exec()}async authorize(){await this.getAccessToken()}callFunction(e){const t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(this.setupRequest(t))}getOSSUploadOptionsFromPath(e){const t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}uploadFileToOSS({url:e,formData:t,name:n,filePath:a,fileType:i,onUploadProgress:o}){return new Promise(((r,s)=>{const l=this.adapter.uploadFile({url:e,formData:t,name:n,filePath:a,fileType:i,header:{"X-OSS-server-side-encrpytion":"AES256"},success(e){e&&e.statusCode<400?r(e):s(new te({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){s(new te({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof o&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((e=>{o({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}reportOSSUpload(e){const t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}async uploadFile({filePath:e,cloudPath:t,fileType:n="image",cloudPathAsRealPath:a=!1,onUploadProgress:i,config:o}){if("string"!==f$1(t))throw new te({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new te({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new te({code:"INVALID_PARAM",message:"cloudPath不合法"});const r=o&&o.envType||this.config.envType;if(a&&("/"!==t[0]&&(t="/"+t),t.indexOf("\\")>-1))throw new te({code:"INVALID_PARAM",message:"使用cloudPath作为路径时，cloudPath不可包含“\\”"});const s=(await this.getOSSUploadOptionsFromPath({env:r,filename:a?t.split("/").pop():t,fileId:a?t:void 0})).result,l="https://"+s.cdnDomain+"/"+s.ossPath,{securityToken:c,accessKeyId:d,signature:u,host:m,ossPath:p,id:h,policy:f,ossCallbackUrl:g}=s,y={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:d,Signature:u,host:m,id:h,key:p,policy:f,success_action_status:200};if(c&&(y["x-oss-security-token"]=c),g){const e=JSON.stringify({callbackUrl:g,callbackBody:JSON.stringify({fileId:h,spaceId:this.config.spaceId}),callbackBodyType:"application/json"});y.callback=le.toBase64(e)}const v={url:"https://"+s.host,formData:y,fileName:"file",name:"file",filePath:e,fileType:n};if(await this.uploadFileToOSS(Object.assign({},v,{onUploadProgress:i})),g)return{success:!0,filePath:e,fileID:l};if((await this.reportOSSUpload({id:h})).success)return{success:!0,filePath:e,fileID:l};throw new te({code:"UPLOAD_FAILED",message:"文件上传失败"})}getTempFileURL({fileList:e}={}){return new Promise(((t,n)=>{Array.isArray(e)&&0!==e.length||n(new te({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),t({fileList:e.map((e=>({fileID:e,tempFileURL:e})))})}))}async getFileInfo({fileList:e}={}){if(!Array.isArray(e)||0===e.length)throw new te({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const t={method:"serverless.file.resource.info",params:JSON.stringify({id:e.map((e=>e.split("?")[0])).join(",")})};return{fileList:(await this.request(this.setupRequest(t))).result}}},pe={init(e){const t=new de(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}};const fe="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";var ge,e2;e2=ge||(ge={}),e2.local="local",e2.none="none",e2.session="session";var me=function(){},ye=n$1((function(e,t){var n;e.exports=(n=r$1,function(e){var t=n,a=t.lib,i=a.WordArray,o=a.Hasher,r=t.algo,s=[],l=[];!function(){function t(t){for(var n=e.sqrt(t),a=2;a<=n;a++)if(!(t%a))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var a=2,i=0;i<64;)t(a)&&(i<8&&(s[i]=n(e.pow(a,.5))),l[i]=n(e.pow(a,1/3)),i++),a++}();var c=[],d=r.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,a=n[0],i=n[1],o=n[2],r=n[3],s=n[4],d=n[5],u=n[6],m=n[7],p=0;p<64;p++){if(p<16)c[p]=0|e[t+p];else{var h=c[p-15],f=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,g=c[p-2],y=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[p]=f+c[p-7]+y+c[p-16]}var v=a&i^a&o^i&o,_=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22),b=m+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&d^~s&u)+l[p]+c[p];m=u,u=d,d=s,s=r+b|0,r=o,o=i,i=a,a=b+(_+v)|0}n[0]=n[0]+a|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+r|0,n[4]=n[4]+s|0,n[5]=n[5]+d|0,n[6]=n[6]+u|0,n[7]=n[7]+m|0},_doFinalize:function(){var t=this._data,n=t.words,a=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(a/4294967296),n[15+(i+64>>>9<<4)]=a,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(d),t.HmacSHA256=o._createHmacHelper(d)}(Math),n.SHA256)})),_e=ye,we=n$1((function(e,t){e.exports=r$1.HmacSHA256}));const ve=()=>{let e;if(!Promise){e=()=>{},e.promise={};const t=()=>{throw new te({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}const t=new Promise(((t,n)=>{e=(e,a)=>e?n(e):t(a)}));return e.promise=t,e};function Ie(e){return void 0===e}function Se(e){return"[object Null]"===Object.prototype.toString.call(e)}var be;function ke(e){const t=(n=e,"[object Array]"===Object.prototype.toString.call(n)?e:[e]);var n;for(const a of t){const{isMatch:e,genAdapter:t,runtime:n}=a;if(e())return{adapter:t(),runtime:n}}}!function(e){e.WEB="web",e.WX_MP="wx_mp"}(be||(be={}));const Ae={adapter:null,runtime:void 0},Pe=["anonymousUuidKey"];class Te extends me{constructor(){super(),Ae.adapter.root.tcbObject||(Ae.adapter.root.tcbObject={})}setItem(e,t){Ae.adapter.root.tcbObject[e]=t}getItem(e){return Ae.adapter.root.tcbObject[e]}removeItem(e){delete Ae.adapter.root.tcbObject[e]}clear(){delete Ae.adapter.root.tcbObject}}function Ce(e,t){switch(e){case"local":return t.localStorage||new Te;case"none":return new Te;default:return t.sessionStorage||new Te}}class xe{constructor(e){if(!this._storage){this._persistence=Ae.adapter.primaryStorage||e.persistence,this._storage=Ce(this._persistence,Ae.adapter);const t=`access_token_${e.env}`,n=`access_token_expire_${e.env}`,a=`refresh_token_${e.env}`,i=`anonymous_uuid_${e.env}`,o=`login_type_${e.env}`,r=`user_info_${e.env}`;this.keys={accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:a,anonymousUuidKey:i,loginTypeKey:o,userInfoKey:r}}}updatePersistence(e){if(e===this._persistence)return;const t="local"===this._persistence;this._persistence=e;const n=Ce(e,Ae.adapter);for(const a in this.keys){const e=this.keys[a];if(t&&Pe.includes(a))continue;const i=this._storage.getItem(e);Ie(i)||Se(i)||(n.setItem(e,i),this._storage.removeItem(e))}this._storage=n}setStore(e,t,n){if(!this._storage)return;const a={version:n||"localCachev1",content:t},i=JSON.stringify(a);try{this._storage.setItem(e,i)}catch(o){throw o}}getStore(e,t){try{if(!this._storage)return}catch(a){return""}t=t||"localCachev1";const n=this._storage.getItem(e);return n&&n.indexOf(t)>=0?JSON.parse(n).content:""}removeStore(e){this._storage.removeItem(e)}}const Oe={},Ee={};function Le(e){return Oe[e]}class Re{constructor(e,t){this.data=t||null,this.name=e}}class Ue extends Re{constructor(e,t){super("error",{error:e,data:t}),this.error=e}}const Ne=new class{constructor(){this._listeners={}}on(e,t){return n=e,a=t,(i=this._listeners)[n]=i[n]||[],i[n].push(a),this;var n,a,i}off(e,t){return function(e,t,n){if(n&&n[e]){const a=n[e].indexOf(t);-1!==a&&n[e].splice(a,1)}}(e,t,this._listeners),this}fire(e,t){if(e instanceof Ue)return console.error(e.error),this;const n="string"==typeof e?new Re(e,t||{}):e,a=n.name;if(this._listens(a)){n.target=this;const e=this._listeners[a]?[...this._listeners[a]]:[];for(const t of e)t.call(this,n)}return this}_listens(e){return this._listeners[e]&&this._listeners[e].length>0}};function De(e,t){Ne.on(e,t)}function Me(e,t={}){Ne.fire(e,t)}function qe(e,t){Ne.off(e,t)}const Fe="loginStateChanged",Ke="loginStateExpire",je="loginTypeChanged",$e="anonymousConverted",Be="refreshAccessToken";var We;!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL"}(We||(We={}));const He=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],ze={"X-SDK-Version":"1.3.5"};function Je(e,t,n){const a=e[t];e[t]=function(t){const i={},o={};n.forEach((n=>{const{data:a,headers:r}=n.call(e,t);Object.assign(i,a),Object.assign(o,r)}));const r=t.data;return r&&(()=>{var e;if(e=r,"[object FormData]"!==Object.prototype.toString.call(e))t.data={...r,...i};else for(const t in i)r.append(t,i[t])})(),t.headers={...t.headers||{},...o},a.call(e,t)}}function Ge(){const e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:{...ze,"x-seqid":e}}}class Ve{constructor(e={}){var t;this.config=e,this._reqClass=new Ae.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:`请求在${this.config.timeout/1e3}s内未完成，已中断`,restrictedMethods:["post"]}),this._cache=Le(this.config.env),this._localCache=(t=this.config.env,Ee[t]),Je(this._reqClass,"post",[Ge]),Je(this._reqClass,"upload",[Ge]),Je(this._reqClass,"download",[Ge])}async post(e){return await this._reqClass.post(e)}async upload(e){return await this._reqClass.upload(e)}async download(e){return await this._reqClass.download(e)}async refreshAccessToken(){let e,t;this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken());try{e=await this._refreshAccessTokenPromise}catch(n){t=n}if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,t)throw t;return e}async _refreshAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:n,loginTypeKey:a,anonymousUuidKey:i}=this._cache.keys;this._cache.removeStore(e),this._cache.removeStore(t);let o=this._cache.getStore(n);if(!o)throw new te({message:"未登录CloudBase"});const r={refresh_token:o},s=await this.request("auth.fetchAccessTokenWithRefreshToken",r);if(s.data.code){const{code:e}=s.data;if("SIGN_PARAM_INVALID"===e||"REFRESH_TOKEN_EXPIRED"===e||"INVALID_REFRESH_TOKEN"===e){if(this._cache.getStore(a)===We.ANONYMOUS&&"INVALID_REFRESH_TOKEN"===e){const e=this._cache.getStore(i),t=this._cache.getStore(n),a=await this.send("auth.signInAnonymously",{anonymous_uuid:e,refresh_token:t});return this.setRefreshToken(a.refresh_token),this._refreshAccessToken()}Me(Ke),this._cache.removeStore(n)}throw new te({code:s.data.code,message:`刷新access token失败：${s.data.code}`})}if(s.data.access_token)return Me(Be),this._cache.setStore(e,s.data.access_token),this._cache.setStore(t,s.data.access_token_expire+Date.now()),{accessToken:s.data.access_token,accessTokenExpire:s.data.access_token_expire};s.data.refresh_token&&(this._cache.removeStore(n),this._cache.setStore(n,s.data.refresh_token),this._refreshAccessToken())}async getAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:n}=this._cache.keys;if(!this._cache.getStore(n))throw new te({message:"refresh token不存在，登录状态异常"});let a=this._cache.getStore(e),i=this._cache.getStore(t),o=!0;return this._shouldRefreshAccessTokenHook&&!(await this._shouldRefreshAccessTokenHook(a,i))&&(o=!1),(!a||!i||i<Date.now())&&o?this.refreshAccessToken():{accessToken:a,accessTokenExpire:i}}async request(e,t,n){const a=`x-tcb-trace_${this.config.env}`;let i="application/x-www-form-urlencoded";const o={action:e,env:this.config.env,dataVersion:"2019-08-16",...t};if(-1===He.indexOf(e)){const{refreshTokenKey:e}=this._cache.keys;this._cache.getStore(e)&&(o.access_token=(await this.getAccessToken()).accessToken)}let r;if("storage.uploadFile"===e){r=new FormData;for(let e in r)r.hasOwnProperty(e)&&void 0!==r[e]&&r.append(e,o[e]);i="multipart/form-data"}else{i="application/json",r={};for(let e in o)void 0!==o[e]&&(r[e]=o[e])}let s={headers:{"content-type":i}};n&&n.onUploadProgress&&(s.onUploadProgress=n.onUploadProgress);const l=this._localCache.getStore(a);l&&(s.headers["X-TCB-Trace"]=l);const{parse:c,inQuery:d,search:u}=t;let m={env:this.config.env};c&&(m.parse=!0),d&&(m={...d,...m});let p=function(e,t,n={}){const a=/\?/.test(t);let i="";for(let o in n)""===i?!a&&(t+="?"):i+="&",i+=`${o}=${encodeURIComponent(n[o])}`;return/^http(s)?\:\/\//.test(t+=i)?t:`${e}${t}`}(fe,"//tcb-api.tencentcloudapi.com/web",m);u&&(p+=u);const h=await this.post({url:p,data:r,...s}),f=h.header&&h.header["x-tcb-trace"];if(f&&this._localCache.setStore(a,f),200!==Number(h.status)&&200!==Number(h.statusCode)||!h.data)throw new te({code:"NETWORK_ERROR",message:"network request error"});return h}async send(e,t={}){const n=await this.request(e,t,{onUploadProgress:t.onUploadProgress});if("ACCESS_TOKEN_EXPIRED"===n.data.code&&-1===He.indexOf(e)){await this.refreshAccessToken();const n=await this.request(e,t,{onUploadProgress:t.onUploadProgress});if(n.data.code)throw new te({code:n.data.code,message:n.data.message});return n.data}if(n.data.code)throw new te({code:n.data.code,message:n.data.message});return n.data}setRefreshToken(e){const{accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:a}=this._cache.keys;this._cache.removeStore(t),this._cache.removeStore(n),this._cache.setStore(a,e)}}const Ye={};function Qe(e){return Ye[e]}class Xe{constructor(e){this.config=e,this._cache=Le(e.env),this._request=Qe(e.env)}setRefreshToken(e){const{accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:a}=this._cache.keys;this._cache.removeStore(t),this._cache.removeStore(n),this._cache.setStore(a,e)}setAccessToken(e,t){const{accessTokenKey:n,accessTokenExpireKey:a}=this._cache.keys;this._cache.setStore(n,e),this._cache.setStore(a,t)}async refreshUserInfo(){const{data:e}=await this._request.send("auth.getUserInfo",{});return this.setLocalUserInfo(e),e}setLocalUserInfo(e){const{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e)}}class Ze{constructor(e){if(!e)throw new te({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=e,this._cache=Le(this._envId),this._request=Qe(this._envId),this.setUserInfo()}linkWithTicket(e){if("string"!=typeof e)throw new te({code:"PARAM_ERROR",message:"ticket must be string"});return this._request.send("auth.linkWithTicket",{ticket:e})}linkWithRedirect(e){e.signInWithRedirect()}updatePassword(e,t){return this._request.send("auth.updatePassword",{oldPassword:t,newPassword:e})}updateEmail(e){return this._request.send("auth.updateEmail",{newEmail:e})}updateUsername(e){if("string"!=typeof e)throw new te({code:"PARAM_ERROR",message:"username must be a string"});return this._request.send("auth.updateUsername",{username:e})}async getLinkedUidList(){const{data:e}=await this._request.send("auth.getLinkedUidList",{});let t=!1;const{users:n}=e;return n.forEach((e=>{e.wxOpenId&&e.wxPublicId&&(t=!0)})),{users:n,hasPrimaryUid:t}}setPrimaryUid(e){return this._request.send("auth.setPrimaryUid",{uid:e})}unlink(e){return this._request.send("auth.unlink",{platform:e})}async update(e){const{nickName:t,gender:n,avatarUrl:a,province:i,country:o,city:r}=e,{data:s}=await this._request.send("auth.updateUserInfo",{nickName:t,gender:n,avatarUrl:a,province:i,country:o,city:r});this.setLocalUserInfo(s)}async refresh(){const{data:e}=await this._request.send("auth.getUserInfo",{});return this.setLocalUserInfo(e),e}setUserInfo(){const{userInfoKey:e}=this._cache.keys,t=this._cache.getStore(e);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((e=>{this[e]=t[e]})),this.location={country:t.country,province:t.province,city:t.city}}setLocalUserInfo(e){const{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e),this.setUserInfo()}}class et{constructor(e){if(!e)throw new te({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=Le(e);const{refreshTokenKey:t,accessTokenKey:n,accessTokenExpireKey:a}=this._cache.keys,i=this._cache.getStore(t),o=this._cache.getStore(n),r=this._cache.getStore(a);this.credential={refreshToken:i,accessToken:o,accessTokenExpire:r},this.user=new Ze(e)}get isAnonymousAuth(){return this.loginType===We.ANONYMOUS}get isCustomAuth(){return this.loginType===We.CUSTOM}get isWeixinAuth(){return this.loginType===We.WECHAT||this.loginType===We.WECHAT_OPEN||this.loginType===We.WECHAT_PUBLIC}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}class tt extends Xe{async signIn(){this._cache.updatePersistence("local");const{anonymousUuidKey:e,refreshTokenKey:t}=this._cache.keys,n=this._cache.getStore(e)||void 0,a=this._cache.getStore(t)||void 0,i=await this._request.send("auth.signInAnonymously",{anonymous_uuid:n,refresh_token:a});if(i.uuid&&i.refresh_token){this._setAnonymousUUID(i.uuid),this.setRefreshToken(i.refresh_token),await this._request.refreshAccessToken(),Me(Fe),Me(je,{env:this.config.env,loginType:We.ANONYMOUS,persistence:"local"});const e=new et(this.config.env);return await e.user.refresh(),e}throw new te({message:"匿名登录失败"})}async linkAndRetrieveDataWithTicket(e){const{anonymousUuidKey:t,refreshTokenKey:n}=this._cache.keys,a=this._cache.getStore(t),i=this._cache.getStore(n),o=await this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:a,refresh_token:i,ticket:e});if(o.refresh_token)return this._clearAnonymousUUID(),this.setRefreshToken(o.refresh_token),await this._request.refreshAccessToken(),Me($e,{env:this.config.env}),Me(je,{loginType:We.CUSTOM,persistence:"local"}),{credential:{refreshToken:o.refresh_token}};throw new te({message:"匿名转化失败"})}_setAnonymousUUID(e){const{anonymousUuidKey:t,loginTypeKey:n}=this._cache.keys;this._cache.removeStore(t),this._cache.setStore(t,e),this._cache.setStore(n,We.ANONYMOUS)}_clearAnonymousUUID(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}class nt extends Xe{async signIn(e){if("string"!=typeof e)throw new te({code:"PARAM_ERROR",message:"ticket must be a string"});const{refreshTokenKey:t}=this._cache.keys,n=await this._request.send("auth.signInWithTicket",{ticket:e,refresh_token:this._cache.getStore(t)||""});if(n.refresh_token)return this.setRefreshToken(n.refresh_token),await this._request.refreshAccessToken(),Me(Fe),Me(je,{env:this.config.env,loginType:We.CUSTOM,persistence:this.config.persistence}),await this.refreshUserInfo(),new et(this.config.env);throw new te({message:"自定义登录失败"})}}class st extends Xe{async signIn(e,t){if("string"!=typeof e)throw new te({code:"PARAM_ERROR",message:"email must be a string"});const{refreshTokenKey:n}=this._cache.keys,a=await this._request.send("auth.signIn",{loginType:"EMAIL",email:e,password:t,refresh_token:this._cache.getStore(n)||""}),{refresh_token:i,access_token:o,access_token_expire:r}=a;if(i)return this.setRefreshToken(i),o&&r?this.setAccessToken(o,r):await this._request.refreshAccessToken(),await this.refreshUserInfo(),Me(Fe),Me(je,{env:this.config.env,loginType:We.EMAIL,persistence:this.config.persistence}),new et(this.config.env);throw a.code?new te({code:a.code,message:`邮箱登录失败: ${a.message}`}):new te({message:"邮箱登录失败"})}async activate(e){return this._request.send("auth.activateEndUserMail",{token:e})}async resetPasswordWithToken(e,t){return this._request.send("auth.resetPasswordWithToken",{token:e,newPassword:t})}}class rt extends Xe{async signIn(e,t){if("string"!=typeof e)throw new te({code:"PARAM_ERROR",message:"username must be a string"});"string"!=typeof t&&(t="",console.warn("password is empty"));const{refreshTokenKey:n}=this._cache.keys,a=await this._request.send("auth.signIn",{loginType:We.USERNAME,username:e,password:t,refresh_token:this._cache.getStore(n)||""}),{refresh_token:i,access_token_expire:o,access_token:r}=a;if(i)return this.setRefreshToken(i),r&&o?this.setAccessToken(r,o):await this._request.refreshAccessToken(),await this.refreshUserInfo(),Me(Fe),Me(je,{env:this.config.env,loginType:We.USERNAME,persistence:this.config.persistence}),new et(this.config.env);throw a.code?new te({code:a.code,message:`用户名密码登录失败: ${a.message}`}):new te({message:"用户名密码登录失败"})}}class it{constructor(e){this.config=e,this._cache=Le(e.env),this._request=Qe(e.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),De(je,this._onLoginTypeChanged)}get currentUser(){const e=this.hasLoginState();return e&&e.user||null}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}anonymousAuthProvider(){return new tt(this.config)}customAuthProvider(){return new nt(this.config)}emailAuthProvider(){return new st(this.config)}usernameAuthProvider(){return new rt(this.config)}async signInAnonymously(){return new tt(this.config).signIn()}async signInWithEmailAndPassword(e,t){return new st(this.config).signIn(e,t)}signInWithUsernameAndPassword(e,t){return new rt(this.config).signIn(e,t)}async linkAndRetrieveDataWithTicket(e){return this._anonymousAuthProvider||(this._anonymousAuthProvider=new tt(this.config)),De($e,this._onAnonymousConverted),await this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e)}async signOut(){if(this.loginType===We.ANONYMOUS)throw new te({message:"匿名用户不支持登出操作"});const{refreshTokenKey:e,accessTokenKey:t,accessTokenExpireKey:n}=this._cache.keys,a=this._cache.getStore(e);if(!a)return;const i=await this._request.send("auth.logout",{refresh_token:a});return this._cache.removeStore(e),this._cache.removeStore(t),this._cache.removeStore(n),Me(Fe),Me(je,{env:this.config.env,loginType:We.NULL,persistence:this.config.persistence}),i}async signUpWithEmailAndPassword(e,t){return this._request.send("auth.signUpWithEmailAndPassword",{email:e,password:t})}async sendPasswordResetEmail(e){return this._request.send("auth.sendPasswordResetEmail",{email:e})}onLoginStateChanged(e){De(Fe,(()=>{const t=this.hasLoginState();e.call(this,t)}));const t=this.hasLoginState();e.call(this,t)}onLoginStateExpired(e){De(Ke,e.bind(this))}onAccessTokenRefreshed(e){De(Be,e.bind(this))}onAnonymousConverted(e){De($e,e.bind(this))}onLoginTypeChanged(e){De(je,(()=>{const t=this.hasLoginState();e.call(this,t)}))}async getAccessToken(){return{accessToken:(await this._request.getAccessToken()).accessToken,env:this.config.env}}hasLoginState(){const{refreshTokenKey:e}=this._cache.keys;return this._cache.getStore(e)?new et(this.config.env):null}async isUsernameRegistered(e){if("string"!=typeof e)throw new te({code:"PARAM_ERROR",message:"username must be a string"});const{data:t}=await this._request.send("auth.isUsernameRegistered",{username:e});return t&&t.isRegistered}getLoginState(){return Promise.resolve(this.hasLoginState())}async signInWithTicket(e){return new nt(this.config).signIn(e)}shouldRefreshAccessToken(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}getUserInfo(){return this._request.send("auth.getUserInfo",{}).then((e=>e.code?e:{...e.data,requestId:e.seqId}))}getAuthHeader(){const{refreshTokenKey:e,accessTokenKey:t}=this._cache.keys,n=this._cache.getStore(e);return{"x-cloudbase-credentials":this._cache.getStore(t)+"/@@/"+n}}_onAnonymousConverted(e){const{env:t}=e.data;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}_onLoginTypeChanged(e){const{loginType:t,persistence:n,env:a}=e.data;a===this.config.env&&(this._cache.updatePersistence(n),this._cache.setStore(this._cache.keys.loginTypeKey,t))}}const ot=function(e,t){t=t||ve();const n=Qe(this.config.env),{cloudPath:a,filePath:i,onUploadProgress:o,fileType:r="image"}=e;return n.send("storage.getUploadMetadata",{path:a}).then((e=>{const{data:{url:s,authorization:l,token:c,fileId:d,cosFileId:u},requestId:m}=e,p={key:a,signature:l,"x-cos-meta-fileid":u,success_action_status:"201","x-cos-security-token":c};n.upload({url:s,data:p,file:i,name:a,fileType:r,onUploadProgress:o}).then((e=>{201===e.statusCode?t(null,{fileID:d,requestId:m}):t(new te({code:"STORAGE_REQUEST_FAIL",message:`STORAGE_REQUEST_FAIL: ${e.data}`}))})).catch((e=>{t(e)}))})).catch((e=>{t(e)})),t.promise},at=function(e,t){t=t||ve();const n=Qe(this.config.env),{cloudPath:a}=e;return n.send("storage.getUploadMetadata",{path:a}).then((e=>{t(null,e)})).catch((e=>{t(e)})),t.promise},ct=function({fileList:e},t){if(t=t||ve(),!e||!Array.isArray(e))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};for(let a of e)if(!a||"string"!=typeof a)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"};const n={fileid_list:e};return Qe(this.config.env).send("storage.batchDeleteFile",n).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},ut=function({fileList:e},t){t=t||ve(),e&&Array.isArray(e)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});let n=[];for(let i of e)"object"==typeof i?(i.hasOwnProperty("fileID")&&i.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),n.push({fileid:i.fileID,max_age:i.maxAge})):"string"==typeof i?n.push({fileid:i}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"});const a={file_list:n};return Qe(this.config.env).send("storage.batchGetDownloadUrl",a).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},ht=async function({fileID:e},t){const n=(await ut.call(this,{fileList:[{fileID:e,maxAge:600}]})).fileList[0];if("SUCCESS"!==n.code)return t?t(n):new Promise((e=>{e(n)}));const a=Qe(this.config.env);let i=n.download_url;if(i=encodeURI(i),!t)return a.download({url:i});t(await a.download({url:i}))},lt=function({name:e,data:t,query:n,parse:a,search:i},o){const r=o||ve();let s;try{s=t?JSON.stringify(t):""}catch(c){return Promise.reject(c)}if(!e)return Promise.reject(new te({code:"PARAM_ERROR",message:"函数名不能为空"}));const l={inQuery:n,parse:a,search:i,function_name:e,request_data:s};return Qe(this.config.env).send("functions.invokeFunction",l).then((e=>{if(e.code)r(null,e);else{let n=e.data.response_data;if(a)r(null,{result:n,requestId:e.requestId});else try{n=JSON.parse(e.data.response_data),r(null,{result:n,requestId:e.requestId})}catch(t){r(new te({message:"response data must be json"}))}}return r.promise})).catch((e=>{r(e)})),r.promise},dt={timeout:15e3,persistence:"session"},pt={};class ft{constructor(e){this.config=e||this.config,this.authObj=void 0}init(e){switch(Ae.adapter||(this.requestClient=new Ae.adapter.reqClass({timeout:e.timeout||5e3,timeoutMsg:`请求在${(e.timeout||5e3)/1e3}s内未完成，已中断`})),this.config={...dt,...e},!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟]，已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms]，已重置为下限数值"),this.config.timeout=100}return new ft(this.config)}auth({persistence:e}={}){if(this.authObj)return this.authObj;const t=e||Ae.adapter.primaryStorage||dt.persistence;var n;return t!==this.config.persistence&&(this.config.persistence=t),function(e){const{env:t}=e;Oe[t]=new xe(e),Ee[t]=new xe({...e,persistence:"local"})}(this.config),n=this.config,Ye[n.env]=new Ve(n),this.authObj=new it(this.config),this.authObj}on(e,t){return De.apply(this,[e,t])}off(e,t){return qe.apply(this,[e,t])}callFunction(e,t){return lt.apply(this,[e,t])}deleteFile(e,t){return ct.apply(this,[e,t])}getTempFileURL(e,t){return ut.apply(this,[e,t])}downloadFile(e,t){return ht.apply(this,[e,t])}uploadFile(e,t){return ot.apply(this,[e,t])}getUploadMetadata(e,t){return at.apply(this,[e,t])}registerExtension(e){pt[e.name]=e}async invokeExtension(e,t){const n=pt[e];if(!n)throw new te({message:`扩展${e} 必须先注册`});return await n.invoke(t,this)}useAdapters(e){const{adapter:t,runtime:n}=ke(e)||{};t&&(Ae.adapter=t),n&&(Ae.runtime=n)}}var gt=new ft;function mt(e,t,n){void 0===n&&(n={});var a=/\?/.test(t),i="";for(var o in n)""===i?!a&&(t+="?"):i+="&",i+=o+"="+encodeURIComponent(n[o]);return/^http(s)?:\/\//.test(t+=i)?t:""+e+t}class yt{post(e){const{url:t,data:n,headers:a}=e;return new Promise(((e,i)=>{ne.request({url:mt("https:",t),data:n,method:"POST",header:a,success(t){e(t)},fail(e){i(e)}})}))}upload(e){return new Promise(((t,n)=>{const{url:a,file:i,data:o,headers:r,fileType:s}=e,l=ne.uploadFile({url:mt("https:",a),name:"file",formData:Object.assign({},o),filePath:i,fileType:s,header:r,success(e){const n={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&o.success_action_status&&(n.statusCode=parseInt(o.success_action_status,10)),t(n)},fail(e){n(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((t=>{e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}const _t={setItem(e,t){ne.setStorageSync(e,t)},getItem:e=>ne.getStorageSync(e),removeItem(e){ne.removeStorageSync(e)},clear(){ne.clearStorageSync()}};var wt={genAdapter:function(){return{root:{},reqClass:yt,localStorage:_t,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};gt.useAdapters(wt);const vt=gt,It=vt.init;vt.init=function(e){e.env=e.spaceId;const t=It.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;const n=t.auth;return t.auth=function(e){const t=n.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((e=>{var n;t[e]=(n=t[e],function(e){e=e||{};const{success:t,fail:a,complete:i}=ee(e);if(!(t||a||i))return n.call(this,e);n.call(this,e).then((e=>{t&&t(e),i&&i(e)}),(e=>{a&&a(e),i&&i(e)}))}).bind(t)})),t},t.customAuth=t.auth,t};var St=vt,bt=class extends de{getAccessToken(){return new Promise(((e,t)=>{const n="Anonymous_Access_token";this.setAccessToken(n),e(n)}))}setupRequest(e,t){const n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),a={"Content-Type":"application/json"};"auth"!==t&&(n.token=this.accessToken,a["x-basement-token"]=this.accessToken),a["x-serverless-sign"]=le.sign(n,this.config.clientSecret);const i=he();a["x-client-info"]=encodeURIComponent(JSON.stringify(i));const{token:o}=re();return a["x-client-token"]=o,{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:JSON.parse(JSON.stringify(a))}}uploadFileToOSS({url:e,formData:t,name:n,filePath:a,fileType:i,onUploadProgress:o}){return new Promise(((r,s)=>{const l=this.adapter.uploadFile({url:e,formData:t,name:n,filePath:a,fileType:i,success(e){e&&e.statusCode<400?r(e):s(new te({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){s(new te({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof o&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((e=>{o({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}uploadFile({filePath:e,cloudPath:t,fileType:n="image",onUploadProgress:a}){if(!t)throw new te({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});let i;return this.getOSSUploadOptionsFromPath({cloudPath:t}).then((t=>{const{url:o,formData:r,name:s}=t.result;i=t.result.fileUrl;const l={url:o,formData:r,name:s,filePath:e,fileType:n};return this.uploadFileToOSS(Object.assign({},l,{onUploadProgress:a}))})).then((()=>this.reportOSSUpload({cloudPath:t}))).then((t=>new Promise(((n,a)=>{t.success?n({success:!0,filePath:e,fileID:i}):a(new te({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))))}deleteFile({fileList:e}){const t={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:e})};return this.request(this.setupRequest(t)).then((e=>{if(e.success)return e.result;throw new te({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}getTempFileURL({fileList:e,maxAge:t}={}){if(!Array.isArray(e)||0===e.length)throw new te({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const n={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:e,maxAge:t})};return this.request(this.setupRequest(n)).then((e=>{if(e.success)return{fileList:e.result.fileList.map((e=>({fileID:e.fileID,tempFileURL:e.tempFileURL})))};throw new te({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}},kt={init(e){const t=new bt(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},At=n$1((function(e,t){e.exports=r$1.enc.Hex}));function Pt(e="",t={}){const{data:n,functionName:a,method:i,headers:o,signHeaderKeys:r=[],config:s}=t,l=Date.now(),c="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),d=Object.assign({},o,{"x-from-app-id":s.spaceAppId,"x-from-env-id":s.spaceId,"x-to-env-id":s.spaceId,"x-from-instance-id":l,"x-from-function-name":a,"x-client-timestamp":l,"x-alipay-source":"client","x-request-id":c,"x-alipay-callid":c,"x-trace-id":c}),u=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(r),[m="",p=""]=e.split("?")||[],h=function(e){const t=e.signedHeaders.join(";"),n=e.signedHeaders.map((t=>`${t.toLowerCase()}:${e.headers[t]}\n`)).join(""),a=_e(e.body).toString(At),i=`${e.method.toUpperCase()}\n${e.path}\n${e.query}\n${n}\n${t}\n${a}\n`,o=_e(i).toString(At),r=`HMAC-SHA256\n${e.timestamp}\n${o}\n`,s=we(r,e.secretKey).toString(At);return`HMAC-SHA256 Credential=${e.secretId}, SignedHeaders=${t}, Signature=${s}`}({path:m,query:p,method:i,headers:d,timestamp:l,body:JSON.stringify(n),secretId:s.accessKey,secretKey:s.secretKey,signedHeaders:u.sort()});return{url:`${s.endpoint}${e}`,headers:Object.assign({},d,{Authorization:h})}}function Tt({url:e,data:t,method:n="POST",headers:a={}}){return new Promise(((i,o)=>{ne.request({url:e,method:n,data:t,header:a,dataType:"json",complete:(e={})=>{const t=a["x-trace-id"]||"";if(!e.statusCode||e.statusCode>=400){const{message:n,errMsg:a,trace_id:i}=e.data||{};return o(new te({code:"SYS_ERR",message:n||a||"request:fail",requestId:i||t}))}i({status:e.statusCode,data:e.data,headers:e.header,requestId:t})}})}))}function Ct(e,t){const{path:n,data:a,method:i="GET"}=e,{url:o,headers:r}=Pt(n,{functionName:"",data:a,method:i,headers:{"x-alipay-cloud-mode":"oss","x-data-api-type":"oss","x-expire-timestamp":Date.now()+6e4},signHeaderKeys:["x-data-api-type","x-expire-timestamp"],config:t});return Tt({url:o,data:a,method:i,headers:r}).then((e=>{const t=e.data||{};if(!t.success)throw new te({code:e.errCode,message:e.errMsg,requestId:e.requestId});return t.data||{}})).catch((e=>{throw new te({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}function xt(e=""){const t=e.trim().replace(/^cloud:\/\//,""),n=t.indexOf("/");if(n<=0)throw new te({code:"INVALID_PARAM",message:"fileID不合法"});const a=t.substring(0,n),i=t.substring(n+1);return a!==this.config.spaceId&&console.warn("file ".concat(e," does not belong to env ").concat(this.config.spaceId)),i}function Ot(e=""){return"cloud://".concat(this.config.spaceId,"/").concat(e.replace(/^\/+/,""))}var Et=class{constructor(e){if(["spaceId","spaceAppId","accessKey","secretKey"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)})),e.endpoint){if("string"!=typeof e.endpoint)throw new Error("endpoint must be string");if(!/^https:\/\//.test(e.endpoint))throw new Error("endpoint must start with https://");e.endpoint=e.endpoint.replace(/\/$/,"")}this.config=Object.assign({},e,{endpoint:e.endpoint||`https://${e.spaceId}.api-hz.cloudbasefunction.cn`})}callFunction(e){return function(e,t){const{name:n,data:a}=e,i="POST",{url:o,headers:r}=Pt("/functions/invokeFunction",{functionName:n,data:a,method:i,headers:{"x-to-function-name":n},signHeaderKeys:["x-to-function-name"],config:t});return Tt({url:o,data:a,method:i,headers:r}).then((e=>({errCode:0,success:!0,requestId:e.requestId,result:e.data}))).catch((e=>{throw new te({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}(e,this.config)}uploadFileToOSS({url:e,filePath:t,fileType:n,formData:a,onUploadProgress:i}){return new Promise(((o,r)=>{const s=ne.uploadFile({url:e,filePath:t,fileType:n,formData:a,name:"file",success(e){e&&e.statusCode<400?o(e):r(new te({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){r(new te({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof i&&s&&"function"==typeof s.onProgressUpdate&&s.onProgressUpdate((e=>{i({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}async uploadFile({filePath:e,cloudPath:t="",fileType:n="image",onUploadProgress:a}){if("string"!==f$1(t))throw new te({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new te({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new te({code:"INVALID_PARAM",message:"cloudPath不合法"});const i=await Ct({path:"/".concat(t.replace(/^\//,""),"?post_url")},this.config),{file_id:o,upload_url:r,form_data:s}=i,l=s&&s.reduce(((e,t)=>(e[t.key]=t.value,e)),{});return this.uploadFileToOSS({url:r,filePath:e,fileType:n,formData:l,onUploadProgress:a}).then((()=>({fileID:o})))}async getTempFileURL({fileList:e}){return new Promise(((t,n)=>{(!e||e.length<0)&&n(new te({errCode:"INVALID_PARAM",errMsg:"fileList不能为空数组"})),e.length>50&&n(new te({errCode:"INVALID_PARAM",errMsg:"fileList数组长度不能超过50"}));const a=[];for(const i of e){"string"!==f$1(i)&&n(new te({errCode:"INVALID_PARAM",errMsg:"fileList的元素必须是非空的字符串"}));const e=xt.call(this,i);a.push({file_id:e,expire:600})}Ct({path:"/?download_url",data:{file_list:a},method:"POST"},this.config).then((e=>{const{file_list:n=[]}=e;t({fileList:n.map((e=>({fileID:Ot.call(this,e.file_id),tempFileURL:e.download_url})))})})).catch((e=>n(e)))}))}},Lt={init:e=>{e.provider="alipay";const t=new Et(e);return t.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},t}};function Rt({data:e}){let t;t=he();const n=JSON.parse(JSON.stringify(e||{}));if(Object.assign(n,{clientInfo:t}),!n.uniIdToken){const{token:e}=re();e&&(n.uniIdToken=e)}return n}const Nt=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:"，云函数[{functionName}]在云端不存在，请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}];var Dt=/[\\^$.*+?()[\]{}|]/g,Mt=RegExp(Dt.source);function qt(e,t,n){return e.replace(new RegExp((a=t)&&Mt.test(a)?a.replace(Dt,"\\$&"):a,"g"),n);var a}const Kt="request",jt="response",$t="both",An={code:2e4,message:"System error"},Pn={code:20101,message:"Invalid client"};function xn(e){const{errSubject:t,subject:n,errCode:a,errMsg:i,code:o,message:r,cause:s}=e||{};return new te({subject:t||n||"uni-secure-network",code:a||o||An.code,message:i||r,cause:s})}let En;function Dn({secretType:e}={}){return e===Kt||e===jt||e===$t}function Mn({name:e,data:t={}}={}){return"app"===P$1}function qn({provider:e,spaceId:t,functionName:n}={}){const{appId:a,uniPlatform:i,osName:o}=ce();let r=i;"app"===i&&(r=o);const s=function({provider:e,spaceId:t}={}){const n=A;if(!n)return{};e=function(e){return"tencent"===e?"tcb":e}(e);const a=n.find((n=>n.provider===e&&n.spaceId===t));return a&&a.config}({provider:e,spaceId:t});if(!s||!s.accessControl||!s.accessControl.enable)return!1;const l=s.accessControl.function||{},c=Object.keys(l);if(0===c.length)return!0;const d=function(e,t){let n,a,i;for(let o=0;o<e.length;o++){const r=e[o];r!==t?"*"!==r?r.split(",").map((e=>e.trim())).indexOf(t)>-1&&(a=r):i=r:n=r}return n||a||i}(c,n);if(!d)return!1;if((l[d]||[]).find(((e={})=>e.appId===a&&(e.platform||"").toLowerCase()===r.toLowerCase())))return!0;throw console.error(`此应用[appId: ${a}, platform: ${r}]不在云端配置的允许访问的应用列表内，参考：https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client`),xn(Pn)}function Fn({functionName:e,result:t,logPvd:n}){}function Kn(e){const t=e.callFunction,n=function(n){const a=n.name;n.data=Rt.call(e,{data:n.data});const i={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay"}[this.config.provider],o=Dn(n),r=Mn(n),s=o||r;return t.call(this,n).then((e=>(e.errCode=0,!s&&Fn.call(this,{functionName:a,result:e,logPvd:i}),Promise.resolve(e))),(e=>(!s&&Fn.call(this,{functionName:a,result:e,logPvd:i}),e&&e.message&&(e.message=function({message:e="",extraInfo:t={},formatter:n=[]}={}){for(let a=0;a<n.length;a++){const{rule:i,content:o,mode:r}=n[a],s=e.match(i);if(!s)continue;let l=o;for(let e=1;e<s.length;e++)l=qt(l,`{$${e}}`,s[e]);for(const e in t)l=qt(l,`{${e}}`,t[e]);return"replace"===r?l:e+l}return e}({message:`[${n.name}]: ${e.message}`,formatter:Nt,extraInfo:{functionName:a}})),Promise.reject(e))))};e.callFunction=function(t){const{provider:a,spaceId:i}=e.config,o=t.name;let r,s;return t.data=t.data||{},r=n,r=r.bind(e),Mn(t)||(s=Dn(t)?new En({secretType:t.secretType,uniCloudIns:e}).wrapEncryptDataCallFunction(n.bind(e))(t):qn({provider:a,spaceId:i,functionName:o})?new En({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(n.bind(e))(t):r(t)),Object.defineProperty(s,"result",{get:()=>(console.warn("当前返回结果为Promise类型，不可直接访问其result属性，详情请参考：https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{})}),s.then((e=>("undefined"!=typeof UTSJSONObject&&(e.result=new UTSJSONObject(e.result)),e)))}}En=class{constructor(){throw xn({message:`Platform ${P$1} is not supported by secure network`})}};const jn=Symbol("CLIENT_DB_INTERNAL");function $n(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=jn,e.inspect=null,e.__v_raw=void 0,new Proxy(e,{get(e,n,a){if("_uniClient"===n)return null;if("symbol"==typeof n)return e[n];if(n in e||"string"!=typeof n){const t=e[n];return"function"==typeof t?t.bind(e):t}return t.get(e,n,a)}})}function Bn(e){return{on:(t,n)=>{e[t]=e[t]||[],e[t].indexOf(n)>-1||e[t].push(n)},off:(t,n)=>{e[t]=e[t]||[];const a=e[t].indexOf(n);-1!==a&&e[t].splice(a,1)}}}const Wn=["db.Geo","db.command","command.aggregate"];function Hn(e,t){return Wn.indexOf(`${e}.${t}`)>-1}function zn(e){switch(f$1(e=se(e))){case"array":return e.map((e=>zn(e)));case"object":return e._internalType===jn||Object.keys(e).forEach((t=>{e[t]=zn(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function Jn(e){return e&&e.content&&e.content.$method}class Gn{constructor(e,t,n){this.content=e,this.prevStage=t||null,this.udb=null,this._database=n}toJSON(){let e=this;const t=[e.content];for(;e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map((e=>({$method:e.$method,$param:zn(e.$param)})))}}toString(){return JSON.stringify(this.toJSON())}getAction(){const e=this.toJSON().$db.find((e=>"action"===e.$method));return e&&e.$param&&e.$param[0]}getCommand(){return{$db:this.toJSON().$db.filter((e=>"action"!==e.$method))}}get isAggregate(){let e=this;for(;e;){const t=Jn(e),n=Jn(e.prevStage);if("aggregate"===t&&"collection"===n||"pipeline"===t)return!0;e=e.prevStage}return!1}get isCommand(){let e=this;for(;e;){if("command"===Jn(e))return!0;e=e.prevStage}return!1}get isAggregateCommand(){let e=this;for(;e;){const t=Jn(e),n=Jn(e.prevStage);if("aggregate"===t&&"command"===n)return!0;e=e.prevStage}return!1}getNextStageFn(e){const t=this;return function(){return Vn({$method:e,$param:zn(Array.from(arguments))},t,t._database)}}get count(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}get remove(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}get(){return this._send("get",Array.from(arguments))}get add(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}update(){return this._send("update",Array.from(arguments))}end(){return this._send("end",Array.from(arguments))}get set(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQL禁止使用set方法")}}_send(e,t){const n=this.getAction(),a=this.getCommand();return a.$db.push({$method:e,$param:zn(t)}),this._database._callCloudFunction({action:n,command:a})}}function Vn(e,t,n){return $n(new Gn(e,t,n),{get(e,t){let a="db";return e&&e.content&&(a=e.content.$method),Hn(a,t)?Vn({$method:t},e,n):function(){return Vn({$method:t,$param:zn(Array.from(arguments))},e,n)}}})}function Yn({path:e,method:t}){return class{constructor(){this.param=Array.from(arguments)}toJSON(){return{$newDb:[...e.map((e=>({$method:e}))),{$method:t,$param:this.param}]}}toString(){return JSON.stringify(this.toJSON())}}}function Qn(e,t={}){return $n(new e(t),{get:(e,t)=>Hn("db",t)?Vn({$method:t},null,e):function(){return Vn({$method:t,$param:zn(Array.from(arguments))},null,e)}})}class Xn extends class{constructor({uniClient:e={},isJQL:t=!1}={}){this._uniClient=e,this._authCallBacks={},this._dbCallBacks={},e._isDefault&&(this._dbCallBacks=L$1("_globalUniCloudDatabaseCallback")),t||(this.auth=Bn(this._authCallBacks)),this._isJQL=t,Object.assign(this,Bn(this._dbCallBacks)),this.env=$n({},{get:(e,t)=>({$env:t})}),this.Geo=$n({},{get:(e,t)=>Yn({path:["Geo"],method:t})}),this.serverDate=Yn({path:[],method:"serverDate"}),this.RegExp=Yn({path:[],method:"RegExp"})}getCloudEnv(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}_callback(e,t){const n=this._dbCallBacks;n[e]&&n[e].forEach((e=>{e(...t)}))}_callbackAuth(e,t){const n=this._authCallBacks;n[e]&&n[e].forEach((e=>{e(...t)}))}multiSend(){const e=Array.from(arguments),t=e.map((e=>{const t=e.getAction(),n=e.getCommand();if("getTemp"!==n.$db[n.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:n}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}{_parseResult(e){return this._isJQL?e.result:e}_callCloudFunction({action:e,command:t,multiCommand:n,queryList:a}){function i(e,t){if(n&&a)for(let n=0;n<a.length;n++){const i=a[n];i.udb&&"function"==typeof i.udb.setResult&&(t?i.udb.setResult(t):i.udb.setResult(e.result.dataList[n]))}}const o=this,r=this._isJQL?"databaseForJQL":"database";function s(e){return o._callback("error",[e]),M$1(q(r,"fail"),e).then((()=>M$1(q(r,"complete"),e))).then((()=>(i(null,e),Y(j,{type:W$1,content:e}),Promise.reject(e))))}const l=M$1(q(r,"invoke")),c=this._uniClient;return l.then((()=>c.callFunction({name:"DCloud-clientDB",type:h$1,data:{action:e,command:t,multiCommand:n}}))).then((e=>{const{code:t,message:n,token:a,tokenExpired:l,systemInfo:c=[]}=e.result;if(c)for(let i=0;i<c.length;i++){const{level:e,message:t,detail:n}=c[i],a=console[e]||console.log;let o="[System Info]"+t;n&&(o=`${o}\n详细信息：${n}`),a(o)}if(t)return s(new te({code:t,message:n,requestId:e.requestId}));e.result.errCode=e.result.errCode||e.result.code,e.result.errMsg=e.result.errMsg||e.result.message,a&&l&&(ie({token:a,tokenExpired:l}),this._callbackAuth("refreshToken",[{token:a,tokenExpired:l}]),this._callback("refreshToken",[{token:a,tokenExpired:l}]),Y(B,{token:a,tokenExpired:l}));const d=[{prop:"affectedDocs",tips:"affectedDocs不再推荐使用，请使用inserted/deleted/updated/data.length替代"},{prop:"code",tips:"code不再推荐使用，请使用errCode替代"},{prop:"message",tips:"message不再推荐使用，请使用errMsg替代"}];for(let i=0;i<d.length;i++){const{prop:t,tips:n}=d[i];if(t in e.result){const a=e.result[t];Object.defineProperty(e.result,t,{get:()=>(console.warn(n),a)})}}return u=e,M$1(q(r,"success"),u).then((()=>M$1(q(r,"complete"),u))).then((()=>{i(u,null);const e=o._parseResult(u);return Y(j,{type:W$1,content:e}),Promise.resolve(e)}));var u}),(e=>(/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDB未初始化，请在web控制台保存一次schema以开启clientDB"),s(new te({code:e.code||"SYSTEM_ERROR",message:e.message,requestId:e.requestId})))))}}const Zn="token无效，跳转登录页面",es="token过期，跳转登录页面",ts={TOKEN_INVALID_TOKEN_EXPIRED:es,TOKEN_INVALID_INVALID_CLIENTID:Zn,TOKEN_INVALID:Zn,TOKEN_INVALID_WRONG_TOKEN:Zn,TOKEN_INVALID_ANONYMOUS_USER:Zn},ns={"uni-id-token-expired":es,"uni-id-check-token-failed":Zn,"uni-id-token-not-exist":Zn,"uni-id-check-device-feature-failed":Zn};function ss(e,t){let n="";return n=e?`${e}/${t}`:t,n.replace(/^\//,"")}function rs(e=[],t=""){const n=[],a=[];return e.forEach((e=>{!0===e.needLogin?n.push(ss(t,e.path)):!1===e.needLogin&&a.push(ss(t,e.path))})),{needLoginPage:n,notNeedLoginPage:a}}function is(e){return e.split("?")[0].replace(/^\//,"")}function os(){return function(e){let t=e&&e.$page&&e.$page.fullPath||"";return t?("/"!==t.charAt(0)&&(t="/"+t),t):t}(function(){const e=getCurrentPages$1();return e[e.length-1]}())}function as(){return is(os())}function cs(e="",t={}){if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;const n=t.list,a=is(e);return n.some((e=>e.pagePath===a))}const us=!!e$1.uniIdRouter,{loginPage:hs,routerNeedLogin:ls,resToLogin:ds,needLoginPage:ps,notNeedLoginPage:fs,loginPageInTabBar:gs}=function({pages:e=[],subPackages:t=[],uniIdRouter:n={},tabBar:a={}}=e$1){const{loginPage:i,needLogin:o=[],resToLogin:r=!0}=n,{needLoginPage:s,notNeedLoginPage:l}=rs(e),{needLoginPage:c,notNeedLoginPage:d}=function(e=[]){const t=[],n=[];return e.forEach((e=>{const{root:a,pages:i=[]}=e,{needLoginPage:o,notNeedLoginPage:r}=rs(i,a);t.push(...o),n.push(...r)})),{needLoginPage:t,notNeedLoginPage:n}}(t);return{loginPage:i,routerNeedLogin:o,resToLogin:r,needLoginPage:[...s,...c],notNeedLoginPage:[...l,...d],loginPageInTabBar:cs(i,a)}}();if(ps.indexOf(hs)>-1)throw new Error(`Login page [${hs}] should not be "needLogin", please check your pages.json`);function ms(e){const t=as();if("/"===e.charAt(0))return e;const[n,a]=e.split("?"),i=n.replace(/^\//,"").split("/"),o=t.split("/");o.pop();for(let r=0;r<i.length;r++){const e=i[r];".."===e?o.pop():"."!==e&&o.push(e)}return""===o[0]&&o.shift(),"/"+o.join("/")+(a?"?"+a:"")}function ys(e){const t=is(ms(e));return!(fs.indexOf(t)>-1)&&(ps.indexOf(t)>-1||ls.some((t=>{return n=e,new RegExp(t).test(n);var n})))}function _s({redirect:e}){const t=is(e),n=is(hs);return as()!==n&&t!==n}function ws({api:e,redirect:t}={}){if(!t||!_s({redirect:t}))return;const n=(i=t,"/"!==(a=hs).charAt(0)&&(a="/"+a),i?a.indexOf("?")>-1?a+`&uniIdRedirectUrl=${encodeURIComponent(i)}`:a+`?uniIdRedirectUrl=${encodeURIComponent(i)}`:a);var a,i;gs?"navigateTo"!==e&&"redirectTo"!==e||(e="switchTab"):"switchTab"===e&&(e="navigateTo");const o={navigateTo:navigateTo,redirectTo:redirectTo,switchTab:switchTab,reLaunch:reLaunch};setTimeout((()=>{o[e]({url:n})}),0)}function vs({url:e}={}){const t={abortLoginPageJump:!1,autoToLoginPage:!1},n=function(){const{token:e,tokenExpired:t}=re();let n;if(e){if(t<Date.now()){const e="uni-id-token-expired";n={errCode:e,errMsg:ns[e]}}}else{const e="uni-id-check-token-failed";n={errCode:e,errMsg:ns[e]}}return n}();if(ys(e)&&n){if(n.uniIdRedirectUrl=e,J($).length>0)return setTimeout((()=>{Y($,n)}),0),t.abortLoginPageJump=!0,t;t.autoToLoginPage=!0}return t}function Is(){!function(){const e=os(),{abortLoginPageJump:t,autoToLoginPage:n}=vs({url:e});t||n&&ws({api:"redirectTo",redirect:e})}();const e=["navigateTo","redirectTo","reLaunch","switchTab"];for(let t=0;t<e.length;t++){const n=e[t];addInterceptor(n,{invoke(e){const{abortLoginPageJump:t,autoToLoginPage:a}=vs({url:e.url});return t?e:a?(ws({api:n,redirect:ms(e.url)}),!1):e}})}}function Ss(){this.onResponse((e=>{const{type:t,content:n}=e;let a=!1;switch(t){case"cloudobject":a=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in ns}(n);break;case"clientdb":a=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in ts}(n)}a&&function(e={}){const t=J($);Z().then((()=>{const n=os();if(n&&_s({redirect:n}))return t.length>0?Y($,Object.assign({uniIdRedirectUrl:n},e)):void(hs&&ws({api:"navigateTo",redirect:n}))}))}(n)}))}function bs(e){var t;(t=e).onResponse=function(e){G(j,e)},t.offResponse=function(e){V(j,e)},function(e){e.onNeedLogin=function(e){G($,e)},e.offNeedLogin=function(e){V($,e)},us&&(L$1("_globalUniCloudStatus").needLoginInit||(L$1("_globalUniCloudStatus").needLoginInit=!0,Z().then((()=>{Is.call(e)})),ds&&Ss.call(e)))}(e),function(e){e.onRefreshToken=function(e){G(B,e)},e.offRefreshToken=function(e){V(B,e)}}(e)}let ks;const As="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Ps=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function Ts(){const e=re().token||"",t=e.split(".");if(!e||3!==t.length)return{uid:null,role:[],permission:[],tokenExpired:0};let n;try{n=JSON.parse((a=t[1],decodeURIComponent(ks(a).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(i){throw new Error("获取当前用户信息出错，详细错误信息为："+i.message)}var a;return n.tokenExpired=1e3*n.exp,delete n.exp,delete n.iat,n}ks="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Ps.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,a,i="",o=0;o<e.length;)t=As.indexOf(e.charAt(o++))<<18|As.indexOf(e.charAt(o++))<<12|(n=As.indexOf(e.charAt(o++)))<<6|(a=As.indexOf(e.charAt(o++))),i+=64===n?String.fromCharCode(t>>16&255):64===a?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return i}:atob;var Cs=n$1((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n="chooseAndUploadFile:ok",a="chooseAndUploadFile:fail";function i(e,t){return e.tempFiles.forEach(((e,n)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((e=>e.path))),e}function o(e,t,{onChooseFile:a,onUploadProgress:i}){return t.then((e=>{if(a){const t=a(e);if(void 0!==t)return Promise.resolve(t).then((t=>void 0===t?e:t))}return e})).then((t=>!1===t?{errMsg:n,tempFilePaths:[],tempFiles:[]}:function(e,t,a=5,i){(t=Object.assign({},t)).errMsg=n;const o=t.tempFiles,r=o.length;let s=0;return new Promise((n=>{for(;s<a;)l();function l(){const a=s++;if(a>=r)return void(!o.find((e=>!e.url&&!e.errMsg))&&n(t));const c=o[a];e.uploadFile({provider:c.provider,filePath:c.path,cloudPath:c.cloudPath,fileType:c.fileType,cloudPathAsRealPath:c.cloudPathAsRealPath,onUploadProgress(e){e.index=a,e.tempFile=c,e.tempFilePath=c.path,i&&i(e)}}).then((e=>{c.url=e.fileID,a<r&&l()})).catch((e=>{c.errMsg=e.errMsg||e.message,a<r&&l()}))}}))}(e,t,5,i)))}t.initChooseAndUploadFile=function(e){return function(t={type:"all"}){return"image"===t.type?o(e,function(e){const{count:t,sizeType:n,sourceType:o=["album","camera"],extension:r}=e;return new Promise(((e,s)=>{chooseImage({count:t,sizeType:n,sourceType:o,extension:r,success(t){e(i(t,"image"))},fail(e){s({errMsg:e.errMsg.replace("chooseImage:fail",a)})}})}))}(t),t):"video"===t.type?o(e,function(e){const{camera:t,compressed:n,maxDuration:o,sourceType:r=["album","camera"],extension:s}=e;return new Promise(((e,l)=>{chooseVideo({camera:t,compressed:n,maxDuration:o,sourceType:r,extension:s,success(t){const{tempFilePath:n,duration:a,size:o,height:r,width:s}=t;e(i({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:o,type:t.tempFile&&t.tempFile.type||"",width:s,height:r,duration:a,fileType:"video",cloudPath:""}]},"video"))},fail(e){l({errMsg:e.errMsg.replace("chooseVideo:fail",a)})}})}))}(t),t):o(e,function(e){const{count:t,extension:n}=e;return new Promise(((e,o)=>{let r=chooseFile;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(r=wx.chooseMessageFile),"function"!=typeof r)return o({errMsg:a+" 请指定 type 类型，该平台仅支持选择 image 或 video。"});r({type:"all",count:t,extension:n,success(t){e(i(t))},fail(e){o({errMsg:e.errMsg.replace("chooseFile:fail",a)})}})}))}(t),t)}}})),xs=t$5(Cs);const Os="manual";function Es(e){return{props:{localdata:{type:Array,default:()=>[]},options:{type:[Object,Array],default:()=>({})},spaceInfo:{type:Object,default:()=>({})},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:()=>({mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{},mixinDatacomError:null}),created(){this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((()=>{var e=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((t=>{e.push(this[t])})),e}),((e,t)=>{if(this.loadtime===Os)return;let n=!1;const a=[];for(let i=2;i<e.length;i++)e[i]!==t[i]&&(a.push(e[i]),n=!0);e[0]!==t[0]&&(this.mixinDatacomPage.current=this.pageCurrent),this.mixinDatacomPage.size=this.pageSize,this.onMixinDatacomPropsChange(n,a)}))},methods:{onMixinDatacomPropsChange(e,t){},mixinDatacomEasyGet({getone:e=!1,success:t,fail:n}={}){this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomError=null,this.mixinDatacomGet().then((n=>{this.mixinDatacomLoading=!1;const{data:a,count:i}=n.result;this.getcount&&(this.mixinDatacomPage.count=i),this.mixinDatacomHasMore=a.length<this.pageSize;const o=e?a.length?a[0]:void 0:a;this.mixinDatacomResData=o,t&&t(o)})).catch((e=>{this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=e,this.mixinDatacomError=e,n&&n(e)})))},mixinDatacomGet(t={}){let n;t=t||{},n="undefined"!=typeof __uniX&&__uniX?e.databaseForJQL(this.spaceInfo):e.database(this.spaceInfo);const a=t.action||this.action;a&&(n=n.action(a));const i=t.collection||this.collection;n=Array.isArray(i)?n.collection(...i):n.collection(i);const o=t.where||this.where;o&&Object.keys(o).length&&(n=n.where(o));const r=t.field||this.field;r&&(n=n.field(r));const s=t.foreignKey||this.foreignKey;s&&(n=n.foreignKey(s));const l=t.groupby||this.groupby;l&&(n=n.groupBy(l));const c=t.groupField||this.groupField;c&&(n=n.groupField(c)),!0===(void 0!==t.distinct?t.distinct:this.distinct)&&(n=n.distinct());const d=t.orderby||this.orderby;d&&(n=n.orderBy(d));const u=void 0!==t.pageCurrent?t.pageCurrent:this.mixinDatacomPage.current,m=void 0!==t.pageSize?t.pageSize:this.mixinDatacomPage.size,p=void 0!==t.getcount?t.getcount:this.getcount,h=void 0!==t.gettree?t.gettree:this.gettree,f=void 0!==t.gettreepath?t.gettreepath:this.gettreepath,g={getCount:p},y={limitLevel:void 0!==t.limitlevel?t.limitlevel:this.limitlevel,startWith:void 0!==t.startwith?t.startwith:this.startwith};return h&&(g.getTree=y),f&&(g.getTreePath=y),n=n.skip(m*(u-1)).limit(m).get(g),n}}}}function Ls(e){return function(t,n={}){n=function(e,t={}){return e.customUI=t.customUI||e.customUI,e.parseSystemError=t.parseSystemError||e.parseSystemError,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==typeof t.secretMethods&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},n);const{customUI:a,loadingOptions:i,errorOptions:o,parseSystemError:r}=n,s=!a;return new Proxy({},{get(a,l){switch(l){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function({fn:e,interceptorName:t,getCallbackArgs:n}={}){return async function(...a){const i=n?n({params:a}):{};let o,r;try{return await M$1(q(t,"invoke"),{...i}),o=await e(...a),await M$1(q(t,"success"),{...i,result:o}),o}catch(s){throw r=s,await M$1(q(t,"fail"),{...i,error:r}),r}finally{await M$1(q(t,"complete"),r?{...i,error:r}:{...i,result:o})}}}({fn:async function a(...c){let d;s&&showLoading({title:i.title,mask:i.mask});const u={name:t,type:u$1,data:{method:l,params:c}};"object"==typeof n.secretMethods&&function(e,t){const n=t.data.method,a=e.secretMethods||{},i=a[n]||a["*"];i&&(t.secretType=i)}(n,u);let m=!1;try{d=await e.callFunction(u)}catch(y){m=!0,d={result:new te(y)}}const{errSubject:p,errCode:h,errMsg:f,newToken:g}=d.result||{};if(s&&hideLoading(),g&&g.token&&g.tokenExpired&&(ie(g),Y(B,{...g})),h){let e=f;if(m&&r&&(e=(await r({objectName:t,methodName:l,params:c,errSubject:p,errCode:h,errMsg:f})).errMsg||f),s)if("toast"===o.type)showToast({title:e,icon:"none"});else{if("modal"!==o.type)throw new Error(`Invalid errorOptions.type: ${o.type}`);{const{confirm:t}=await async function({title:e,content:t,showCancel:n,cancelText:a,confirmText:i}={}){return new Promise(((o,r)=>{showModal({title:e,content:t,showCancel:n,cancelText:a,confirmText:i,success(e){o(e)},fail(){o({confirm:!1,cancel:!0})}})}))}({title:"提示",content:e,showCancel:o.retry,cancelText:"取消",confirmText:o.retry?"重试":"确定"});if(o.retry&&t)return a(...c)}}const n=new te({subject:p,code:h,message:f,requestId:d.requestId});throw n.detail=d.result,Y(j,{type:z,content:n}),n}return Y(j,{type:z,content:d.result}),d.result},interceptorName:"callObject",getCallbackArgs:function({params:e}={}){return{objectName:t,methodName:l,params:e}}})}})}}function Rs(e){return L$1("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",e.config.spaceId))}async function Us({openid:e,callLoginByWeixin:t=!1}={}){throw Rs(this),new Error(`[SecureNetwork] API \`initSecureNetworkByWeixin\` is not supported on platform \`${P$1}\``)}async function Ns(e){const t=Rs(this);return t.initPromise||(t.initPromise=Us.call(this,e).then((e=>e)).catch((e=>{throw delete t.initPromise,e}))),t.initPromise}function Ds(e){return function({openid:t,callLoginByWeixin:n=!1}={}){return Ns.call(e,{openid:t,callLoginByWeixin:n})}}function Ms(e){const t={getSystemInfo:getSystemInfo,getPushClientId:getPushClientId};return function(n){return new Promise(((a,i)=>{t[e]({...n,success(e){a(e)},fail(e){i(e)}})}))}}class qs extends class{constructor(){this._callback={}}addListener(e,t){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(t)}on(e,t){return this.addListener(e,t)}removeListener(e,t){if(!t)throw new Error('The "listener" argument must be of type function. Received undefined');const n=this._callback[e];if(!n)return;const a=function(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]===t)return n;return-1}(n,t);n.splice(a,1)}off(e,t){return this.removeListener(e,t)}removeAllListener(e){delete this._callback[e]}emit(e,...t){const n=this._callback[e];if(n)for(let a=0;a<n.length;a++)n[a](...t)}}{constructor(){super(),this._uniPushMessageCallback=this._receivePushMessage.bind(this),this._currentMessageId=-1,this._payloadQueue=[]}init(){return Promise.all([Ms("getSystemInfo")(),Ms("getPushClientId")()]).then((([{appId:e}={},{cid:t}={}]=[])=>{if(!e)throw new Error("Invalid appId, please check the manifest.json file");if(!t)throw new Error("Invalid push client id");this._appId=e,this._pushClientId=t,this._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),this.emit("open"),this._initMessageListener()}),(e=>{throw this.emit("error",e),this.close(),e}))}async open(){return this.init()}_isUniCloudSSE(e){if("receive"!==e.type)return!1;const t=e&&e.data&&e.data.payload;return!(!t||"UNI_CLOUD_SSE"!==t.channel||t.seqId!==this._seqId)}_receivePushMessage(e){if(!this._isUniCloudSSE(e))return;const t=e&&e.data&&e.data.payload,{action:n,messageId:a,message:i}=t;this._payloadQueue.push({action:n,messageId:a,message:i}),this._consumMessage()}_consumMessage(){for(;;){const e=this._payloadQueue.find((e=>e.messageId===this._currentMessageId+1));if(!e)break;this._currentMessageId++,this._parseMessagePayload(e)}}_parseMessagePayload(e){const{action:t,messageId:n,message:a}=e;"end"===t?this._end({messageId:n,message:a}):"message"===t&&this._appendMessage({messageId:n,message:a})}_appendMessage({messageId:e,message:t}={}){this.emit("message",t)}_end({messageId:e,message:t}={}){this.emit("end",t),this.close()}_initMessageListener(){onPushMessage(this._uniPushMessageCallback)}_destroy(){offPushMessage(this._uniPushMessageCallback)}toJSON(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}close(){this._destroy(),this.emit("close")}}function js(e){e._initPromiseHub||(e._initPromiseHub=new v$1({createPromise:function(){let t=Promise.resolve();t=new Promise((e=>{setTimeout((()=>{e()}),1)}));const n=e.auth();return t.then((()=>n.getLoginState())).then((e=>e?Promise.resolve():n.signInAnonymously()))}}))}const $s={tcb:St,tencent:St,aliyun:pe,private:kt,alipay:Lt};let Bs=new class{init(e){let t={};const n=$s[e.provider];if(!n)throw new Error("未提供正确的provider参数");var a;return t=n.init(e),js(t),Kn(t),function(e){const t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),(a=t).database=function(e){if(e&&Object.keys(e).length>0)return a.init(e).database();if(this._database)return this._database;const t=Qn(Xn,{uniClient:a});return this._database=t,t},a.databaseForJQL=function(e){if(e&&Object.keys(e).length>0)return a.init(e).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;const t=Qn(Xn,{uniClient:a,isJQL:!0});return this._databaseForJQL=t,t},function(e){e.getCurrentUserInfo=Ts,e.chooseAndUploadFile=xs.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return Es(e)}}),e.SSEChannel=qs,e.initSecureNetworkByWeixin=Ds(e),e.importObject=Ls(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((e=>{if(!t[e])return;const n=t[e];t[e]=function(){return n.apply(t,Array.from(arguments))},t[e]=function(e,t){return function(n){let a=!1;if("callFunction"===t){const e=n&&n.type||c$1;a=e!==c$1}const i="callFunction"===t&&!a,o=this._initPromiseHub.exec();n=n||{};const{success:r,fail:s,complete:l}=ee(n),c=o.then((()=>a?Promise.resolve():M$1(q(t,"invoke"),n))).then((()=>e.call(this,n))).then((e=>a?Promise.resolve(e):M$1(q(t,"success"),e).then((()=>M$1(q(t,"complete"),e))).then((()=>(i&&Y(j,{type:H,content:e}),Promise.resolve(e))))),(e=>a?Promise.reject(e):M$1(q(t,"fail"),e).then((()=>M$1(q(t,"complete"),e))).then((()=>(Y(j,{type:H,content:e}),Promise.reject(e))))));if(!(r||s||l))return c;c.then((e=>{r&&r(e),l&&l(e),i&&Y(j,{type:H,content:e})}),(e=>{s&&s(e),l&&l(e),i&&Y(j,{type:H,content:e})}))}}(t[e],e).bind(t)})),t.init=this.init,t}};(()=>{const e=C;let t={};if(e&&1===e.length)t=e[0],Bs=Bs.init(t),Bs._isDefault=!0;else{const t=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"];let n;n=e&&e.length>0?"应用有多个服务空间，请通过uniCloud.init方法指定要使用的服务空间":"应用未关联服务空间，请在uniCloud目录右键关联服务空间",t.forEach((e=>{Bs[e]=function(){return console.error(n),Promise.reject(new te({code:"SYS_ERR",message:n}))}}))}Object.assign(Bs,{get mixinDatacom(){return Es(Bs)}}),bs(Bs),Bs.addInterceptor=N,Bs.removeInterceptor=D$1,Bs.interceptObject=F})();var Ws=Bs;const en$2={"uni-load-more.contentdown":"Pull up to show more","uni-load-more.contentrefresh":"loading...","uni-load-more.contentnomore":"No more data"},zhHans$2={"uni-load-more.contentdown":"上拉显示更多","uni-load-more.contentrefresh":"正在加载...","uni-load-more.contentnomore":"没有更多数据了"},zhHant$2={"uni-load-more.contentdown":"上拉顯示更多","uni-load-more.contentrefresh":"正在加載...","uni-load-more.contentnomore":"沒有更多數據了"},messages$1={en:en$2,"zh-Hans":zhHans$2,"zh-Hant":zhHant$2};let platform;setTimeout((()=>{platform=getSystemInfoSync().platform}),16);const{t:t$4}=initVueI18n(messages$1),_sfc_main$S={name:"UniLoadMore",emits:["clickLoadMore"],props:{status:{type:String,default:"more"},showIcon:{type:Boolean,default:!0},iconType:{type:String,default:"auto"},iconSize:{type:Number,default:24},color:{type:String,default:"#777777"},contentText:{type:Object,default:()=>({contentdown:"",contentrefresh:"",contentnomore:""})},showText:{type:Boolean,default:!0}},data:()=>({webviewHide:!1,platform:platform,imgBase64:"data:image/png;base64, "}),computed:{iconSnowWidth(){return 2*(Math.floor(this.iconSize/24)||1)},contentdownText(){return this.contentText.contentdown||t$4("uni-load-more.contentdown")},contentrefreshText(){return this.contentText.contentrefresh||t$4("uni-load-more.contentrefresh")},contentnomoreText(){return this.contentText.contentnomore||t$4("uni-load-more.contentnomore")}},mounted(){},methods:{onClick(){this.$emit("clickLoadMore",{detail:{status:this.status}})}}};function _sfc_render$s(e,t,n,a,i,o){const r=index$q,s=index$g,l=index$i;return openBlock(),createBlock(s,{class:"uni-load-more",onClick:o.onClick},{default:withCtx((()=>[!i.webviewHide&&("circle"===n.iconType||"auto"===n.iconType&&"android"===i.platform)&&"loading"===n.status&&n.showIcon?(openBlock(),createElementBlock("svg",{key:0,width:"24",height:"24",viewBox:"25 25 50 50",style:normalizeStyle({width:n.iconSize+"px",height:n.iconSize+"px"}),class:"uni-load-more__img uni-load-more__img--android-H5"},[createBaseVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:normalizeStyle({color:n.color}),"stroke-width":3},null,4)],4)):!i.webviewHide&&"loading"===n.status&&n.showIcon?(openBlock(),createBlock(s,{key:1,style:normalizeStyle({width:n.iconSize+"px",height:n.iconSize+"px"}),class:"uni-load-more__img uni-load-more__img--ios-H5"},{default:withCtx((()=>[createVNode(r,{src:i.imgBase64,mode:"widthFix"},null,8,["src"])])),_:1},8,["style"])):createCommentVNode("",!0),n.showText?(openBlock(),createBlock(l,{key:2,class:"uni-load-more__text",style:normalizeStyle({color:n.color})},{default:withCtx((()=>[createTextVNode(toDisplayString("more"===n.status?o.contentdownText:"loading"===n.status?o.contentrefreshText:o.contentnomoreText),1)])),_:1},8,["style"])):createCommentVNode("",!0)])),_:1},8,["onClick"])}const __easycom_4$3=_export_sfc(_sfc_main$S,[["render",_sfc_render$s],["__scopeId","data-v-13bb0eea"]]),_sfc_main$R={name:"uniDataChecklist",mixins:[Ws.mixinDatacom||{}],emits:["input","update:modelValue","change"],props:{mode:{type:String,default:"default"},multiple:{type:Boolean,default:!1},value:{type:[Array,String,Number],default:()=>""},modelValue:{type:[Array,String,Number],default:()=>""},localdata:{type:Array,default:()=>[]},min:{type:[Number,String],default:""},max:{type:[Number,String],default:""},wrap:{type:Boolean,default:!1},icon:{type:String,default:"left"},selectedColor:{type:String,default:""},selectedTextColor:{type:String,default:""},emptyText:{type:String,default:"暂无数据"},disabled:{type:Boolean,default:!1},map:{type:Object,default:()=>({text:"text",value:"value"})}},watch:{localdata:{handler(e){this.range=e,this.dataList=this.getDataList(this.getSelectedValue(e))},deep:!0},mixinDatacomResData(e){this.range=e,this.dataList=this.getDataList(this.getSelectedValue(e))},value(e){this.dataList=this.getDataList(e)},modelValue(e){this.dataList=this.getDataList(e)}},data:()=>({dataList:[],range:[],contentText:{contentdown:"查看更多",contentrefresh:"加载中",contentnomore:"没有更多"},isLocal:!0,styles:{selectedColor:"#2979ff",selectedTextColor:"#666"},isTop:0}),computed:{dataValue(){return""===this.value?this.modelValue:(this.modelValue,this.value)}},created(){this.localdata&&0!==this.localdata.length?(this.isLocal=!0,this.range=this.localdata,this.dataList=this.getDataList(this.getSelectedValue(this.range))):this.collection&&(this.isLocal=!1,this.loadData())},methods:{loadData(){this.mixinDatacomGet().then((e=>{this.mixinDatacomResData=e.result.data,0===this.mixinDatacomResData.length?(this.isLocal=!1,this.mixinDatacomErrorMessage=this.emptyText):this.isLocal=!0})).catch((e=>{this.mixinDatacomErrorMessage=e.message}))},getForm(e="uniForms"){let t=this.$parent,n=t.$options.name;for(;n!==e;){if(t=t.$parent,!t)return!1;n=t.$options.name}return t},chagne(e){const t=e.detail.value;let n={value:[],data:[]};if(this.multiple)this.range.forEach((e=>{t.includes(e[this.map.value]+"")&&(n.value.push(e[this.map.value]),n.data.push(e))}));else{const e=this.range.find((e=>e[this.map.value]+""===t));e&&(n={value:e[this.map.value],data:e})}this.$emit("input",n.value),this.$emit("update:modelValue",n.value),this.$emit("change",{detail:n}),this.multiple?this.dataList=this.getDataList(n.value,!0):this.dataList=this.getDataList(n.value)},getDataList(e){let t=JSON.parse(JSON.stringify(this.range)),n=[];return this.multiple&&(Array.isArray(e)||(e=[])),t.forEach(((t,a)=>{if(t.disabled=t.disable||t.disabled||!1,this.multiple)if(e.length>0){let n=e.find((e=>e===t[this.map.value]));t.selected=void 0!==n}else t.selected=!1;else t.selected=e===t[this.map.value];n.push(t)})),this.setRange(n)},setRange(e){let t=e.filter((e=>e.selected)),n=Number(this.min)||0,a=Number(this.max)||"";return e.forEach(((i,o)=>{if(this.multiple){if(t.length<=n){void 0!==t.find((e=>e[this.map.value]===i[this.map.value]))&&(i.disabled=!0)}if(t.length>=a&&""!==a){void 0===t.find((e=>e[this.map.value]===i[this.map.value]))&&(i.disabled=!0)}}this.setStyles(i,o),e[o]=i})),e},setStyles(e,t){e.styleBackgroud=this.setStyleBackgroud(e),e.styleIcon=this.setStyleIcon(e),e.styleIconText=this.setStyleIconText(e),e.styleRightIcon=this.setStyleRightIcon(e)},getSelectedValue(e){if(!this.multiple)return this.dataValue;let t=[];return e.forEach((e=>{e.selected&&t.push(e[this.map.value])})),this.dataValue.length>0?this.dataValue:t},setStyleBackgroud(e){let t={},n=this.selectedColor?this.selectedColor:"#2979ff";this.selectedColor&&("list"!==this.mode&&(t["border-color"]=e.selected?n:"#DCDFE6"),"tag"===this.mode&&(t["background-color"]=e.selected?n:"#f5f5f5"));let a="";for(let i in t)a+=`${i}:${t[i]};`;return a},setStyleIcon(e){let t={},n="";if(this.selectedColor){let n=this.selectedColor?this.selectedColor:"#2979ff";t["background-color"]=e.selected?n:"#fff",t["border-color"]=e.selected?n:"#DCDFE6",!e.selected&&e.disabled&&(t["background-color"]="#F2F6FC",t["border-color"]=e.selected?n:"#DCDFE6")}for(let a in t)n+=`${a}:${t[a]};`;return n},setStyleIconText(e){let t={},n="";if(this.selectedColor){let n=this.selectedColor?this.selectedColor:"#2979ff";"tag"===this.mode?t.color=e.selected?this.selectedTextColor?this.selectedTextColor:"#fff":"#666":t.color=e.selected?this.selectedTextColor?this.selectedTextColor:n:"#666",!e.selected&&e.disabled&&(t.color="#999")}for(let a in t)n+=`${a}:${t[a]};`;return n},setStyleRightIcon(e){let t={},n="";"list"===this.mode&&(t["border-color"]=e.selected?this.styles.selectedColor:"#DCDFE6");for(let a in t)n+=`${a}:${t[a]};`;return n}}};function _sfc_render$r(e,t,n,a,i,o){const r=resolveEasycom(resolveDynamicComponent("uni-load-more"),__easycom_4$3),s=index$i,l=index$g,c=index$t,d=index$y,u=index$u,m=index$m,p=index$n;return openBlock(),createBlock(l,{class:"uni-data-checklist",style:normalizeStyle({"margin-top":i.isTop+"px"})},{default:withCtx((()=>[i.isLocal?(openBlock(),createElementBlock(Fragment,{key:1},[n.multiple?(openBlock(),createBlock(u,{key:0,class:normalizeClass(["checklist-group",{"is-list":"list"===n.mode||n.wrap}]),onChange:o.chagne},{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(i.dataList,((e,t)=>(openBlock(),createBlock(d,{class:normalizeClass(["checklist-box",["is--"+n.mode,e.selected?"is-checked":"",n.disabled||e.disabled?"is-disable":"",0!==t&&"list"===n.mode?"is-list-border":""]]),style:normalizeStyle(e.styleBackgroud),key:t},{default:withCtx((()=>[createVNode(c,{class:"hidden",hidden:"",disabled:n.disabled||!!e.disabled,value:e[n.map.value]+"",checked:e.selected},null,8,["disabled","value","checked"]),"tag"!==n.mode&&"list"!==n.mode||"list"===n.mode&&"left"===n.icon?(openBlock(),createBlock(l,{key:0,class:"checkbox__inner",style:normalizeStyle(e.styleIcon)},{default:withCtx((()=>[createVNode(l,{class:"checkbox__inner-icon"})])),_:2},1032,["style"])):createCommentVNode("",!0),createVNode(l,{class:normalizeClass(["checklist-content",{"list-content":"list"===n.mode&&"left"===n.icon}])},{default:withCtx((()=>[createVNode(s,{class:"checklist-text",style:normalizeStyle(e.styleIconText)},{default:withCtx((()=>[createTextVNode(toDisplayString(e[n.map.text]),1)])),_:2},1032,["style"]),"list"===n.mode&&"right"===n.icon?(openBlock(),createBlock(l,{key:0,class:"checkobx__list",style:normalizeStyle(e.styleBackgroud)},null,8,["style"])):createCommentVNode("",!0)])),_:2},1032,["class"])])),_:2},1032,["class","style"])))),128))])),_:1},8,["class","onChange"])):(openBlock(),createBlock(p,{key:1,class:normalizeClass(["checklist-group",{"is-list":"list"===n.mode,"is-wrap":n.wrap}]),onChange:o.chagne},{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(i.dataList,((e,t)=>(openBlock(),createBlock(d,{class:normalizeClass(["checklist-box",["is--"+n.mode,e.selected?"is-checked":"",n.disabled||e.disabled?"is-disable":"",0!==t&&"list"===n.mode?"is-list-border":""]]),style:normalizeStyle(e.styleBackgroud),key:t},{default:withCtx((()=>[createVNode(m,{class:"hidden",hidden:"",disabled:n.disabled||e.disabled,value:e[n.map.value]+"",checked:e.selected},null,8,["disabled","value","checked"]),"tag"!==n.mode&&"list"!==n.mode||"list"===n.mode&&"left"===n.icon?(openBlock(),createBlock(l,{key:0,class:"radio__inner",style:normalizeStyle(e.styleBackgroud)},{default:withCtx((()=>[createVNode(l,{class:"radio__inner-icon",style:normalizeStyle(e.styleIcon)},null,8,["style"])])),_:2},1032,["style"])):createCommentVNode("",!0),createVNode(l,{class:normalizeClass(["checklist-content",{"list-content":"list"===n.mode&&"left"===n.icon}])},{default:withCtx((()=>[createVNode(s,{class:"checklist-text",style:normalizeStyle(e.styleIconText)},{default:withCtx((()=>[createTextVNode(toDisplayString(e[n.map.text]),1)])),_:2},1032,["style"]),"list"===n.mode&&"right"===n.icon?(openBlock(),createBlock(l,{key:0,style:normalizeStyle(e.styleRightIcon),class:"checkobx__list"},null,8,["style"])):createCommentVNode("",!0)])),_:2},1032,["class"])])),_:2},1032,["class","style"])))),128))])),_:1},8,["class","onChange"]))],64)):(openBlock(),createBlock(l,{key:0,class:"uni-data-loading"},{default:withCtx((()=>[e.mixinDatacomErrorMessage?(openBlock(),createBlock(s,{key:1},{default:withCtx((()=>[createTextVNode(toDisplayString(e.mixinDatacomErrorMessage),1)])),_:1})):(openBlock(),createBlock(r,{key:0,status:"loading",iconType:"snow",iconSize:18,"content-text":i.contentText},null,8,["content-text"]))])),_:1}))])),_:1},8,["style"])}const __easycom_1$2=_export_sfc(_sfc_main$R,[["render",_sfc_render$r],["__scopeId","data-v-61fae022"]]),_sfc_main$Q={__name:"ClickInput",props:{preIcon:{type:String,default:null},split:{type:String,default:"、"},index:String,value:Number|String|Object|Array|Function,valueFunc:Function,placeholder:String,disabled:Boolean},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=computed((()=>"string"==typeof n.value?""!==n.value:Array.isArray(n.value)?n.value.length>0:n.value||!1)),i=computed((()=>Array.isArray(n.value)?n.index?n.value.map((e=>e[n.index])).join(n.split):n.value.join(n.split):"object"==typeof n.value?n.index?n.value[n.index]:JSON.stringify(n.value):"function"==typeof n.value?n.value():""==(n.value||"")?n.placeholder:n.value));return(t,o)=>{const r=resolveEasycom(resolveDynamicComponent("uni-icons"),__easycom_3$3),s=index$i,l=index$g;return openBlock(),createBlock(l,{class:"w-click-input","hover-class":"w-click-hover","hover-stay-time":"200",onClick:o[0]||(o[0]=e=>t.$emit("click"))},{default:withCtx((()=>[n.preIcon&&!e.disabled?(openBlock(),createBlock(r,{key:0,type:n.preIcon,size:22,color:"#C3C6CD",style:{"margin-right":"5px"}},null,8,["type"])):createCommentVNode("",!0),a.value?renderSlot(t.$slots,"default",{key:1},(()=>[createVNode(s,{class:"w-click-input-value"},{default:withCtx((()=>[createTextVNode(toDisplayString(i.value),1)])),_:1})]),!0):(openBlock(),createBlock(s,{key:2,style:{color:"#999"},class:"w-click-input-value"},{default:withCtx((()=>[createTextVNode(toDisplayString(n.placeholder),1)])),_:1})),n.readonly?createCommentVNode("",!0):withDirectives((openBlock(),createBlock(r,{key:3,type:"right",size:20,color:"#999"},null,512)),[[vShow,!e.disabled]])])),_:3})}}},ClickInput=_export_sfc(_sfc_main$Q,[["__scopeId","data-v-7bb6d275"]]),_sfc_main$P={__name:"SelectInput",props:{formProps:{type:Object,default:()=>({})},modelValue:String,readonly:Boolean},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=computed((()=>n.formProps.options.map((e=>({text:e,value:e}))))),i=ref(0),o=computed({get:()=>n.modelValue,set(e){r("update:modelValue",e)}}),r=t;function s(e){i.value=e.detail.value,o.value=n.formProps.options[i.value]}return(t,n)=>{const r=index$i,l=resolveEasycom(resolveDynamicComponent("uni-data-checkbox"),__easycom_1$2),c=index$7;return e.readonly?(openBlock(),createBlock(r,{key:0,class:"w-form-input-rv"},{default:withCtx((()=>[createTextVNode(toDisplayString(o.value),1)])),_:1})):e.formProps.expanding?(openBlock(),createBlock(l,{key:1,modelValue:o.value,"onUpdate:modelValue":n[0]||(n[0]=e=>o.value=e),disabled:e.readonly,localdata:a.value},null,8,["modelValue","disabled","localdata"])):(openBlock(),createBlock(c,{key:2,onChange:s,mode:"selector",value:i.value,range:e.formProps.options,disabled:e.readonly},{default:withCtx((()=>[createVNode(ClickInput,{value:e.modelValue?e.formProps.options[i.value]:null,disabled:e.readonly,placeholder:e.formProps.placeholder||"请选择"},null,8,["value","disabled","placeholder"])])),_:1},8,["value","range","disabled"]))}}};class LsjFile{constructor(e){this.dom=null,this.files=new Map,this.debug=e.debug||!1,this.id=e.id,this.width=e.width,this.height=e.height,this.option=e.option,this.instantly=e.instantly,this.prohibited=e.prohibited,this.onchange=e.onchange,this.onprogress=e.onprogress,this.uploadHandle=this._uploadHandle}create(e){if(!this.dom){let e=document.createElement("input");return e.type="file",e.value="",e.style.height=this.height,e.style.width=this.width,e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.right=0,e.style.bottom=0,e.style.opacity=0,e.style.zIndex=999,e.accept=this.prohibited.accept,this.prohibited.multiple&&(e.multiple="multiple"),e.onchange=e=>{for(let t of e.target.files){if(this.files.size>=this.prohibited.count){this.toast(`只允许上传${this.prohibited.count}个文件`),this.dom.value="";break}this.addFile(t)}this._uploadAfter(),this.dom.value=""},this.dom=e,this.dom}}setData(){let[e,t=""]=arguments;"object"==typeof e?Object.assign(this.option,e):this._setValue(this.option,e,t),this.debug&&console.log(JSON.stringify(this.option))}async upload(e=""){if(!this.option.url)throw Error("未设置上传地址");if(e&&this.files.has(e))await this.uploadHandle(this.files.get(e));else for(let t of this.files.values())"waiting"!==t.type&&"fail"!==t.type||await this.uploadHandle(t)}addFile(e,t){let n=e.name;if(this.debug&&console.log("文件名称",n,"大小",e.size),e){let t="",a=n.substring(n.lastIndexOf(".")+1).toLowerCase(),i=this.prohibited.formats.toLowerCase();return t=URL.createObjectURL(e),i&&!i.includes(a)?(this.toast(`不支持上传${a.toUpperCase()}格式文件`),!1):e.size>1048576*Math.abs(this.prohibited.size)?(this.toast(`附件大小请勿超过${this.prohibited.size}M`),!1):(this.files.set(e.name,{file:e,path:t,name:e.name,size:e.size,progress:0,type:"waiting"}),!0)}}clear(e=""){return e?this.files.delete(e):this.files.clear(),this.onchange(this.files)}toast(e){showToast({title:e,icon:"none"})}chooseMessageFile(e,t){wx.chooseMessageFile({count:t,type:e,success:({tempFiles:e})=>{for(let t of e)this.addFile(t);this._uploadAfter()},fail:()=>{this.toast("打开失败")}})}_copyObject(e){return void 0!==e?JSON.parse(JSON.stringify(e)):e}_setValue(e,t,n){let a;a="object"==typeof n?this._copyObject(n):n;let i=new RegExp("([\\w$]+)|\\[(:\\d)\\]","g");const o=t.match(i);for(let r=0;r<o.length-1;r++){let t=o[r];"object"!=typeof e[t]&&(e[t]={}),e=e[t]}e[o[o.length-1]]=a,this.debug&&console.log("参数更新后",JSON.stringify(this.option))}_uploadAfter(){this.onchange(this.files),setTimeout((()=>{this.instantly&&this.upload()}),1e3)}_overrideUrlLoading(){this.dom.overrideUrlLoading({mode:"reject"},(e=>{let{retype:t,item:n,files:a,end:i}=this._getRequest(e.url),o=this;switch(t){case"updateOption":this.dom.evalJS(`vm.setData('${JSON.stringify(o.option)}')`);break;case"change":try{o.files=new Map([...o.files,...JSON.parse(unescape(a))])}catch(r){return console.error("出错了，请检查代码")}o.onchange(o.files);break;case"progress":try{n=JSON.parse(unescape(n))}catch(r){return console.error("出错了，请检查代码")}o._changeFilesItem(n,i)}}))}_getRequest(e){let t=new Object,n=e.indexOf("?");if(-1!=n){let a=e.substring(n+1).split("&");for(let e=0;e<a.length;e++)t[a[e].split("=")[0]]=unescape(a[e].split("=")[1])}return t}_changeFilesItem(e,t=!1){this.debug&&console.log("onprogress",JSON.stringify(e)),this.onprogress(e,t),this.files.set(e.name,e)}_uploadHandle(e){return e.type="loading",delete e.responseText,new Promise(((t,n)=>{this.debug&&console.log("option",JSON.stringify(this.option));let{url:a,name:i,method:o="POST",header:r,formData:s}=this.option,l=new FormData;for(let e in s)l.append(e,s[e]);l.append(i,e.file);let c=new XMLHttpRequest;c.open(o,a,!0);for(let e in r)c.setRequestHeader(e,r[e]);c.upload.addEventListener("progress",(t=>{if(t.lengthComputable){let n=Math.ceil(100*t.loaded/t.total);n<=100&&(e.progress=n,this._changeFilesItem(e))}}),!1),c.ontimeout=()=>(console.error("请求超时"),e.type="fail",this._changeFilesItem(e,!0),t(!1)),c.onreadystatechange=n=>{if(4==c.readyState)return 200==c.status?(this.debug&&console.log("上传完成："+c.responseText),e.responseText=c.responseText,e.type="success",this._changeFilesItem(e,!0),t(!0)):(0==c.status&&console.error("status = 0 :请检查请求头Content-Type与服务端是否匹配，服务端已正确开启跨域，并且nginx未拦截阻止请求"),console.error("--ERROR--：status = "+c.status),e.type="fail",this._changeFilesItem(e,!0),t(!1))},c.send(l)}))}_uploadHandleWX(e){return e.type="loading",delete e.responseText,new Promise(((t,n)=>{this.debug&&console.log("option",JSON.stringify(this.option));let a={filePath:e.file.path,...this.option};a.fail=({errMsg:n=""})=>(console.error("--ERROR--："+n),e.type="fail",this._changeFilesItem(e,!0),t(!1)),a.success=n=>200==n.statusCode?(this.debug&&console.log("上传完成,微信端返回不一定是字符串，根据接口返回格式判断是否需要JSON.parse："+n.data),e.responseText=n.data,e.type="success",this._changeFilesItem(e,!0),t(!0)):(e.type="fail",this._changeFilesItem(e,!0),t(!1)),uploadFile(a).onProgressUpdate((({progress:t=0})=>{t<=100&&(e.progress=t,this._changeFilesItem(e))}))}))}}const _sfc_main$O={name:"Lsj-upload",props:{debug:{type:Boolean,default:!1},instantly:{type:Boolean,default:!1},option:{type:Object,default:()=>{}},size:{type:Number,default:10},count:{type:Number,default:9},multiple:{type:Boolean,default:!0},formats:{type:String,default:""},accept:{type:String,default:""},wxFileType:{type:String,default:"all"},childId:{type:String,default:"lsjUpload"},width:{type:String,default:"100%"},height:{type:String,default:"80rpx"},top:{type:[String,Number],default:""},left:{type:[String,Number],default:""},bottom:{type:[String,Number],default:""},right:{type:[String,Number],default:""},position:{type:String,default:"static"}},data:()=>({}),watch:{option(e){}},updated(){},computed:{getStyles(){let e={width:this.width,height:this.height};return"absolute"==this.position&&(e.top=this.top,e.bottom=this.bottom,e.left=this.left,e.right=this.right,e.position="fixed"),e}},mounted(){this._size=0;let e=this.childId+(new Date).getTime();this.lsjFile=new LsjFile({id:e,debug:this.debug,width:this.width,height:this.height,option:this.option,instantly:this.instantly,prohibited:{size:this.size,formats:this.formats,accept:this.accept,count:this.count,multiple:this.multiple},onchange:this.onchange,onprogress:this.onprogress}),this.create(),$on("lsjShow",this.show)},beforeDestroy(){$off("lsjShow")},methods:{setFiles(e){var t;if(e instanceof Map)for(let[n,a]of e)a.progress=100,a.type="success",this.lsjFile.files.set(n,a);else Array.isArray(e)&&e.forEach((e=>{e.name&&(e.progress=100,e.type="success",this.lsjFile.files.set(e.name,e))}));this.onchange((null==(t=this.lsjFile)?void 0:t.files)||[])},setData(){this.lsjFile&&this.lsjFile.setData(...arguments)},getDomStyles(e){createSelectorQuery().in(this).select(".lsj-file").fields({size:!0,rect:!0},(({height:t,width:n,top:a,left:i,right:o,bottom:r})=>{createSelectorQuery().selectViewport().scrollOffset((({scrollTop:o})=>e({top:parseInt(a)+parseInt(o)+"px",left:parseInt(i)+"px",width:parseInt(n)+"px",height:parseInt(t)+"px"}))).exec()})).exec()},show(){this._size&&this._size>=this.count||(this.isShow=!0,this.lsjFile.dom.style.display="inline")},hide(){this.isShow=!1,this.lsjFile.dom.style.display="none"},upload(e){this.lsjFile&&this.lsjFile.upload(e)},onchange(e){return this.$emit("change",e),this._size=e.size,e.size>=this.count?this.hide():this.show()},onprogress(e,t=!1){this.$emit("progress",e),t&&setTimeout((()=>{this.$emit("uploadEnd",e)}),0)},clear(e){this.lsjFile.clear(e)},create(){let e=this.lsjFile.create("/uni_modules/lsj-upload/hybrid/html/uploadFile.html");this.$refs.lsj.$el.appendChild(e),this.show()},onClick(){this._size>=this.count&&this.toast(`只允许上传${this.count}个文件`)},toast(e){showToast({title:e,icon:"none"})}}};function _sfc_render$q(e,t,n,a,i,o){const r=index$g;return openBlock(),createBlock(r,{class:"lsj-file",style:normalizeStyle([o.getStyles])},{default:withCtx((()=>[createVNode(r,{ref:"lsj",class:"hFile",style:normalizeStyle([o.getStyles]),onClick:o.onClick},{default:withCtx((()=>[renderSlot(e.$slots,"default",{},(()=>[createVNode(r,{class:"defview",style:normalizeStyle([o.getStyles])},{default:withCtx((()=>[createTextVNode("附件上传")])),_:1},8,["style"])]),!0)])),_:3},8,["style","onClick"])])),_:3},8,["style"])}const __easycom_3$2=_export_sfc(_sfc_main$O,[["render",_sfc_render$q],["__scopeId","data-v-a288e6b8"]]),_sfc_main$N={name:"UniTag",emits:["click"],props:{type:{type:String,default:"default"},size:{type:String,default:"normal"},text:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},inverted:{type:[Boolean,String],default:!1},circle:{type:[Boolean,String],default:!1},mark:{type:[Boolean,String],default:!1},customStyle:{type:String,default:""}},computed:{classes(){const{type:e,disabled:t,inverted:n,circle:a,mark:i,size:o,isTrue:r}=this;return["uni-tag--"+e,"uni-tag--"+o,r(t)?"uni-tag--disabled":"",r(n)?"uni-tag--"+e+"--inverted":"",r(a)?"uni-tag--circle":"",r(i)?"uni-tag--mark":"",r(n)?"uni-tag--inverted uni-tag-text--"+e:"","small"===o?"uni-tag-text--small":""].join(" ")}},methods:{isTrue:e=>!0===e||"true"===e,onClick(){this.isTrue(this.disabled)||this.$emit("click")}}};function _sfc_render$p(e,t,n,a,i,o){const r=index$i;return n.text?(openBlock(),createBlock(r,{key:0,class:normalizeClass(["uni-tag",o.classes]),style:normalizeStyle(n.customStyle),onClick:o.onClick},{default:withCtx((()=>[createTextVNode(toDisplayString(n.text),1)])),_:1},8,["class","style","onClick"])):createCommentVNode("",!0)}const __easycom_1$1=_export_sfc(_sfc_main$N,[["render",_sfc_render$p],["__scopeId","data-v-6751c3c1"]]);function delFile(e,t=!1){return request({url:`/wflow/res/${e}`,data:{isSign:t}})}const _sfc_main$M={__name:"FileUpload",props:{formProps:{type:Object,default:()=>({})},modelValue:{type:Object,default:()=>[]},readonly:Boolean},emits:["update:modelValue"],setup(e,{expose:t,emit:n}){const a=n;t({show:function(e=!0){e?l.value.show():l.value.hide()}});const i=e,o={url:BASE_URL+"/image",header:{Authorization:"Bearer "+getStorageSync("wflow-token")},name:"file",formData:{isImg:"false"}},r=ref(!1),s=computed({get:()=>i.modelValue||[],set(e){a("update:modelValue",e)}});nextTick((()=>{!r.value&&l.value&&l.value.show()})),onMounted((()=>{c.value=s.value.map((e=>({name:e.name,progress:100,size:e.size,url:e.url,type:"success"}))),i.readonly||l.value.setFiles(c.value)})),onUnload((()=>{$off("hideFp"),$off("showFp")})),$on("hideFp",(()=>{l.value&&(r.value=!0,l.value.hide())})),$on("showFp",(()=>{try{r.value=!1,setTimeout((()=>{l.value&&l.value.show()}),800)}catch(e2){}}));const l=ref(),c=ref([]),d=ref();function u(e){e instanceof Map&&(c.value=[],d.value.clear(),e.forEach((e=>{const t={name:e.name,progress:e.progress,size:e.size,type:e.type};c.value.push(t),d.value.set(e.name,t)})),l.value.upload())}function m(e){d.value.get(e.name).progress=e.progress}function p(e){const t=d.value.get(e.name);if(t)if(t.type=e.type,t.progress=e.progress,"success"===e.type){showToast({icon:"none",title:"上传成功"}),Array.isArray(s.value)||(s.value=[]);const t=JSON.parse(e.responseText);saveFileTemp({id:t.id,name:t.name,path:e.path,size:h(e.size)}),s.value.push(t),a("update:modelValue",s)}else removeFileTemp(e.name)}function h(e){return e>1048576?(e/1048576).toFixed(1)+"MB":e>1024?(e/1024).toFixed(1)+"KB":e+"B"}return d.value=new Map,(t,n)=>{const i=resolveEasycom(resolveDynamicComponent("uni-icons"),__easycom_3$3),r=index$i,f=index$g,g=resolveEasycom(resolveDynamicComponent("lsj-upload"),__easycom_3$2),y=index$q,v=resolveEasycom(resolveDynamicComponent("uni-tag"),__easycom_1$1);return openBlock(),createBlock(f,null,{default:withCtx((()=>[e.readonly?createCommentVNode("",!0):(openBlock(),createBlock(g,{key:0,ref_key:"fileUpload",ref:l,childId:"upload1",width:"100%",height:"100%",option:o,formats:"",debug:!1,instantly:!1,count:e.formProps.maxNumber,size:e.formProps.maxSize,multiple:e.formProps.multiple,onChange:u,onUploadEnd:p,onProgress:m},{default:withCtx((()=>[renderSlot(t.$slots,"default",{},(()=>[createVNode(f,{class:"w-upload-btn"},{default:withCtx((()=>[createVNode(i,{type:"cloud-upload",size:40,color:"#b3b3b3"}),createVNode(r,null,{default:withCtx((()=>[createTextVNode(toDisplayString(e.formProps.placeholder||"请选择附件")+" | 单个附件不得超过"+toDisplayString(e.formProps.maxSize)+"MB",1)])),_:1})])),_:1})]),!0)])),_:3},8,["count","size","multiple"])),(openBlock(),createBlock(f,{class:"w-file-list",key:c.value.length},{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(c.value,((t,n)=>(openBlock(),createBlock(f,{class:"w-file",key:`file_${n}_${t.type}`,onClick:e=>function(e){const t=s.value[e];openLocalFile(t.name,`${o.url}/${t.id}?name=${t.name}`)}(n)},{default:withCtx((()=>[createVNode(y,{src:unref(getFileImgByType)(t.name),mode:"aspectFit"},null,8,["src"]),createVNode(r,{class:"w-file-name"},{default:withCtx((()=>[createTextVNode(toDisplayString(t.name),1)])),_:2},1024),createVNode(v,{text:h(t.size),size:"mini",inverted:""},null,8,["text"]),t.progress<100?(openBlock(),createBlock(r,{key:0,style:{"margin-right":"10px"}},{default:withCtx((()=>[createTextVNode(toDisplayString(t.progress)+"%",1)])),_:2},1024)):e.readonly?createCommentVNode("",!0):(openBlock(),createBlock(f,{key:1,onClick:withModifiers((e=>function(e,t){console.log(e,t),showModal({title:"提示",content:"您确认要删除该文件吗，删除后需要重新上传，确认删除？",success:function(n){n.confirm&&(console.log(s,s.value[e]),delFile(s.value[e].id).then((()=>{s.value.splice(e,1),a("update:modelValue",s),d.value.delete(t.name),c.value.splice(e,1),l.value.clear(t.name)})).catch((e=>{showToast({icon:"none",title:e.msg||"删除文件失败"})})))}})}(n,t)),["stop"])},{default:withCtx((()=>[createVNode(i,{type:"trash",size:"20",color:"#ce8d8e"})])),_:2},1032,["onClick"]))])),_:2},1032,["onClick"])))),128))])),_:1}))])),_:3})}}},FileUpload=_export_sfc(_sfc_main$M,[["__scopeId","data-v-e9092102"]]),_sfc_main$L={name:"lUpload",props:{width:{type:[Number,String],default:220},height:{type:[Number,String],default:220},uploadType:{type:String,default:"all"},disableAdd:{type:Boolean,default:!1},disable:{type:Boolean,default:!1},limit:{type:Number,default:9},sizeType:{type:Array,default:()=>["original","compressed"]},sourceType:{type:Array,default:()=>["album","camera"]},imageFormat:{type:Array,default:()=>["jpg","jpeg","png","gif","webp"]},images:{type:Array,default:()=>[]},videos:{type:Array,default:()=>[]},serverUrl:{type:String,default:""},fileKeyName:{type:String,default:"file"},header:{type:Object,default:()=>({})},formData:{type:Object,default:()=>({})},maxSize:{type:Number,default:()=>0}},data(){return{imageList:[...this.images],videoList:[...this.videos],fileList:[...this.videos,...this.images],marginRight:0,lineNum:0,videoContext:null}},computed:{isShowAdd(){let e=!0;return(this.disableAdd||this.limit&&this.imageList.length+this.videoList>=this.limit)&&(e=!1),e}},mounted(){this.initBoxData()},methods:{change(){this.fileList=[...this.videoList,...this.imageList],this.$emit("complete",{imageArr:[...this.imageList],videoArr:[...this.videoList]})},initBoxData(){const e=createSelectorQuery().in(this);e.select(".upload-box").fields({rect:!0,size:!0},(e=>{let t=Math.floor(this.width/2);this.lineNum=Math.floor(e.width/t),this.marginRight=(e.width-this.lineNum*t)/(this.lineNum-1)})),e.exec()},toast(e){e&&showToast({title:e,icon:"none"})},chooseFile(){"img"==this.uploadType?this.chooseImage():"video"==this.uploadType?this.chooseVideo():showActionSheet({itemList:["图片","视频"],success:e=>{e.tapIndex+1==1?this.chooseImage():this.chooseVideo()},fail:function(e){console.log(e.errMsg)}})},chooseVideo(){chooseVideo({sizeType:this.sizeType,camera:"back",success:e=>{this.videoList.push(e.tempFilePath),this.serverUrl?this.uploadImage(null,e.tempFilePath,"video").then((()=>{this.change()})).catch((()=>{this.change()})):this.change()}})},chooseImage(){chooseImage({count:this.limit-this.imageList.length-this.videoList.length,sizeType:this.sizeType,sourceType:this.sourceType,success:e=>{console.log(e);let t=[];for(let a=0;a<e.tempFiles.length;a++){if(this.imageList.length+this.videoList.length>=this.limit){this.toast(`最多可上传${this.limit}张图片`);break}if(this.maxSize>0&&e.tempFiles[a].size/1024/1024>this.maxSize){this.toast(`单张图片最大${this.maxSize}MB`);break}let n=e.tempFiles[a].path;if(this.imageFormat.length>0){let t="";if(t=e.tempFiles[a].type.split("/")[1],-1==this.imageFormat.indexOf(t)){let e=`只能上传 ${this.imageFormat.join(",")} 格式图片！`;this.toast(e);continue}}t.push(n)}let n=this.imageList.length-t.length;for(let a=0;a<t.length;a++){let e=n+a;this.serverUrl?this.uploadImage(e,t[a],"image").then((()=>{this.change()})).catch((()=>{this.change()})):this.change()}}})},uploadImage(e,t,n){return new Promise(((e,n)=>{uploadFile({url:this.serverUrl+"/wflow/res",name:this.fileKeyName,header:this.header,formData:this.formData,filePath:t,success:t=>{if(200==t.statusCode){let n=JSON.parse(t.data.replace(/\ufeff/g,"")||"{}");this.imageList.push(n),e(n)}else n(t.msg)},fail:function(e){n(e)}})}))},delVideo(e){showModal({title:"提示",content:"确认删除该视频吗？",success:t=>{t.confirm&&(this.videoList.splice(e,1),this.$emit("remove",{index:e,type:"video"}),this.change())}})},delImage(e){showModal({title:"提示",content:"确认删除该图片吗？",success:t=>{t.confirm&&(this.imageList.splice(e,1),this.$emit("remove",{index:e,type:"image"}),this.change())}})},previewImage(e){this.imageList.length&&previewImage({current:this.serverUrl+"/image/"+this.imageList[e].id,loop:!1,urls:this.imageList.map((e=>this.serverUrl+"/image/"+e.id))})}}};function _sfc_render$o(e,t,n,a,i,o){const r=index$q,s=index$g;return openBlock(),createBlock(s,{class:"l-upload"},{default:withCtx((()=>[createVNode(s,{class:"upload-box"},{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(i.fileList,((e,t)=>(openBlock(),createBlock(s,{class:"image-item",style:normalizeStyle({width:n.width+"rpx",height:n.height+"rpx","--margin-right":i.marginRight+"px",marginRight:(t+1)%i.lineNum==0?0:i.marginRight+"px"}),key:t},{default:withCtx((()=>[createVNode(s,null,{default:withCtx((()=>[createVNode(r,{src:`${n.serverUrl}/image/${e.id}`,class:"img",style:normalizeStyle({width:n.width+"rpx",height:n.height+"rpx"}),onClick:withModifiers((e=>o.previewImage(t)),["stop"]),mode:"aspectFill"},null,8,["src","style","onClick"]),n.disable?createCommentVNode("",!0):(openBlock(),createBlock(s,{key:0,class:"img-del",onClick:withModifiers((e=>o.delImage(t)),["stop"])},null,8,["onClick"]))])),_:2},1024)])),_:2},1032,["style"])))),128)),o.isShowAdd?(openBlock(),createBlock(s,{key:0,class:"upload-add",style:normalizeStyle({width:n.width+"rpx",height:n.height+"rpx"}),onClick:o.chooseFile},{default:withCtx((()=>[createVNode(s,{class:"upload-icon icon-tianjia"})])),_:1},8,["style","onClick"])):createCommentVNode("",!0)])),_:1})])),_:1})}const __easycom_0$6=_export_sfc(_sfc_main$L,[["render",_sfc_render$o],["__scopeId","data-v-96c18505"]]),_sfc_main$K={__name:"ImageUpload",props:{formProps:{type:Object,default:()=>({})},modelValue:Array,readonly:Boolean},emits:["update:modelValue"],setup(e,{emit:t}){const n=ref({Authorization:"Bearer "+getStorageSync("wflow-token")}),a=e,i=computed({get:()=>a.modelValue,set(e){r("update:modelValue",e)}}),o=computed((()=>a.formProps.maxSize>0?`| 每张图不超过${a.formProps.maxSize}MB`:"")),r=t,s=ref();function l(e){i.value=e.imageArr,(i.value||[]).length<e.imageArr.length?showToast({icon:"none",title:"上传图片成功"}):showToast({icon:"none",title:"移除图片成功"})}function c(e){a.readonly||i.value.splice(e,1)}return(t,r)=>{const d=resolveEasycom(resolveDynamicComponent("l-upload"),__easycom_0$6),u=index$g;return openBlock(),createBlock(u,null,{default:withCtx((()=>[createVNode(d,{ref_key:"imgUpload",ref:s,uploadType:"img",serverUrl:unref(BASE_URL),formData:{isImg:"true"},width:110,height:110,images:i.value||[],header:n.value,"max-size":a.formProps.maxSize,disableAdd:e.readonly,limit:a.formProps.maxNumber,onComplete:l,onRemove:c,disable:e.readonly},null,8,["serverUrl","images","header","max-size","disableAdd","limit","disable"]),e.readonly?createCommentVNode("",!0):(openBlock(),createBlock(u,{key:0,style:{color:"#999999","font-size":"26rpx"}},{default:withCtx((()=>[createTextVNode(toDisplayString(a.formProps.placeholder||"请上传图片")+" "+toDisplayString(o.value),1)])),_:1}))])),_:1})}}};class MPAnimation{constructor(e,t){this.options=e,this.animation=createAnimation$1({...e}),this.currentStepAnimates={},this.next=0,this.$=t}_nvuePushAnimates(e,t){let n=this.currentStepAnimates[this.next],a={};if(a=n||{styles:{},config:{}},animateTypes1.includes(e)){a.styles.transform||(a.styles.transform="");let n="";"rotate"===e&&(n="deg"),a.styles.transform+=`${e}(${t+n}) `}else a.styles[e]=`${t}`;this.currentStepAnimates[this.next]=a}_animateRun(e={},t={}){let n=this.$.$refs.ani.ref;if(n)return new Promise(((a,i)=>{nvueAnimation.transition(n,{styles:e,...t},(e=>{a()}))}))}_nvueNextAnimate(e,t=0,n){let a=e[t];if(a){let{styles:i,config:o}=a;this._animateRun(i,o).then((()=>{t+=1,this._nvueNextAnimate(e,t,n)}))}else this.currentStepAnimates={},"function"==typeof n&&n(),this.isEnd=!0}step(e={}){return this.animation.step(e),this}run(e){this.$.animationData=this.animation.export(),this.$.timer=setTimeout((()=>{"function"==typeof e&&e()}),this.$.durationTime)}}const animateTypes1=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"],animateTypes2=["opacity","backgroundColor"],animateTypes3=["width","height","left","right","top","bottom"];function createAnimation(e,t){if(t)return clearTimeout(t.timer),new MPAnimation(e,t)}animateTypes1.concat(animateTypes2,animateTypes3).forEach((e=>{MPAnimation.prototype[e]=function(...t){return this.animation[e](...t),this}}));const _sfc_main$J={name:"uniTransition",emits:["click","change"],props:{show:{type:Boolean,default:!1},modeClass:{type:[Array,String],default:()=>"fade"},duration:{type:Number,default:300},styles:{type:Object,default:()=>({})},customClass:{type:String,default:""},onceRender:{type:Boolean,default:!1}},data:()=>({isShow:!1,transform:"",opacity:1,animationData:{},durationTime:300,config:{}}),watch:{show:{handler(e){e?this.open():this.isShow&&this.close()},immediate:!0}},computed:{stylesObject(){let e={...this.styles,"transition-duration":this.duration/1e3+"s"},t="";for(let n in e){t+=this.toLine(n)+":"+e[n]+";"}return t},transformStyles(){return"transform:"+this.transform+";opacity:"+this.opacity+";"+this.stylesObject}},created(){this.config={duration:this.duration,timingFunction:"ease",transformOrigin:"50% 50%",delay:0},this.durationTime=this.duration},methods:{init(e={}){e.duration&&(this.durationTime=e.duration),this.animation=createAnimation(Object.assign(this.config,e),this)},onClick(){this.$emit("click",{detail:this.isShow})},step(e,t={}){if(this.animation){for(let t in e)try{"object"==typeof e[t]?this.animation[t](...e[t]):this.animation[t](e[t])}catch(e2){console.error(`方法 ${t} 不存在`)}return this.animation.step(t),this}},run(e){this.animation&&this.animation.run(e)},open(){clearTimeout(this.timer),this.transform="",this.isShow=!0;let{opacity:e,transform:t}=this.styleInit(!1);void 0!==e&&(this.opacity=e),this.transform=t,this.$nextTick((()=>{this.timer=setTimeout((()=>{this.animation=createAnimation(this.config,this),this.tranfromInit(!1).step(),this.animation.run(),this.$emit("change",{detail:this.isShow})}),20)}))},close(e){this.animation&&this.tranfromInit(!0).step().run((()=>{this.isShow=!1,this.animationData=null,this.animation=null;let{opacity:e,transform:t}=this.styleInit(!1);this.opacity=e||1,this.transform=t,this.$emit("change",{detail:this.isShow})}))},styleInit(e){let t={transform:""},n=(e,n)=>{"fade"===n?t.opacity=this.animationType(e)[n]:t.transform+=this.animationType(e)[n]+" "};return"string"==typeof this.modeClass?n(e,this.modeClass):this.modeClass.forEach((t=>{n(e,t)})),t},tranfromInit(e){let t=(e,t)=>{let n=null;"fade"===t?n=e?0:1:(n=e?"-100%":"0","zoom-in"===t&&(n=e?.8:1),"zoom-out"===t&&(n=e?1.2:1),"slide-right"===t&&(n=e?"100%":"0"),"slide-bottom"===t&&(n=e?"100%":"0")),this.animation[this.animationMode()[t]](n)};return"string"==typeof this.modeClass?t(e,this.modeClass):this.modeClass.forEach((n=>{t(e,n)})),this.animation},animationType:e=>({fade:e?1:0,"slide-top":`translateY(${e?"0":"-100%"})`,"slide-right":`translateX(${e?"0":"100%"})`,"slide-bottom":`translateY(${e?"0":"100%"})`,"slide-left":`translateX(${e?"0":"-100%"})`,"zoom-in":`scaleX(${e?1:.8}) scaleY(${e?1:.8})`,"zoom-out":`scaleX(${e?1:1.2}) scaleY(${e?1:1.2})`}),animationMode:()=>({fade:"opacity","slide-top":"translateY","slide-right":"translateX","slide-bottom":"translateY","slide-left":"translateX","zoom-in":"scale","zoom-out":"scale"}),toLine:e=>e.replace(/([A-Z])/g,"-$1").toLowerCase()}};function _sfc_render$n(e,t,n,a,i,o){const r=index$g;return withDirectives((openBlock(),createBlock(r,{ref:"ani",animation:i.animationData,class:normalizeClass(n.customClass),style:normalizeStyle(o.transformStyles),onClick:o.onClick},{default:withCtx((()=>[renderSlot(e.$slots,"default")])),_:3},8,["animation","class","style","onClick"])),[[vShow,i.isShow]])}const __easycom_0$5=_export_sfc(_sfc_main$J,[["render",_sfc_render$n]]),keypress={name:"Keypress",props:{disable:{type:Boolean,default:!1}},mounted(){const e={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]};document.addEventListener("keyup",(t=>{if(this.disable)return;const n=Object.keys(e).find((n=>{const a=t.key,i=e[n];return i===a||Array.isArray(i)&&i.includes(a)}));n&&setTimeout((()=>{this.$emit(n,{})}),0)}))},render:()=>{}},_sfc_main$I={name:"uniPopup",components:{keypress:keypress},emits:["change","maskClick"],props:{animation:{type:Boolean,default:!0},type:{type:String,default:"center"},isMaskClick:{type:Boolean,default:null},maskClick:{type:Boolean,default:null},backgroundColor:{type:String,default:"none"},safeArea:{type:Boolean,default:!0},maskBackgroundColor:{type:String,default:"rgba(0, 0, 0, 0.4)"}},watch:{type:{handler:function(e){this.config[e]&&this[this.config[e]](!0)},immediate:!0},isDesktop:{handler:function(e){this.config[e]&&this[this.config[this.type]](!0)},immediate:!0},maskClick:{handler:function(e){this.mkclick=e},immediate:!0},isMaskClick:{handler:function(e){this.mkclick=e},immediate:!0},showPopup(e){document.getElementsByTagName("body")[0].style.overflow=e?"hidden":"visible"}},data:()=>({duration:300,ani:[],showPopup:!1,showTrans:!1,popupWidth:0,popupHeight:0,config:{top:"top",bottom:"bottom",center:"center",left:"left",right:"right",message:"top",dialog:"center",share:"bottom"},maskClass:{position:"fixed",bottom:0,top:0,left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.4)"},transClass:{position:"fixed",left:0,right:0},maskShow:!0,mkclick:!0,popupstyle:"top"}),computed:{isDesktop(){return this.popupWidth>=500&&this.popupHeight>=500},bg(){return""===this.backgroundColor||"none"===this.backgroundColor?"transparent":this.backgroundColor}},mounted(){(()=>{const{windowWidth:e,windowHeight:t,windowTop:n,safeArea:a,screenHeight:i,safeAreaInsets:o}=getSystemInfoSync();this.popupWidth=e,this.popupHeight=t+(n||0),a&&this.safeArea?this.safeAreaInsets=o.bottom:this.safeAreaInsets=0})()},unmounted(){this.setH5Visible()},created(){null===this.isMaskClick&&null===this.maskClick?this.mkclick=!0:this.mkclick=null!==this.isMaskClick?this.isMaskClick:this.maskClick,this.animation?this.duration=300:this.duration=0,this.messageChild=null,this.clearPropagation=!1,this.maskClass.backgroundColor=this.maskBackgroundColor},methods:{setH5Visible(){document.getElementsByTagName("body")[0].style.overflow="visible"},closeMask(){this.maskShow=!1},disableMask(){this.mkclick=!1},clear(e){e.stopPropagation(),this.clearPropagation=!0},open(e){if($emit("hideFp"),this.showPopup)return;e&&-1!==["top","center","bottom","left","right","message","dialog","share"].indexOf(e)||(e=this.type),this.config[e]?(this[this.config[e]](),this.$emit("change",{show:!0,type:e})):console.error("缺少类型：",e)},close(e){$emit("showFp"),this.showTrans=!1,this.$emit("change",{show:!1,type:this.type}),clearTimeout(this.timer),this.timer=setTimeout((()=>{this.showPopup=!1}),300)},touchstart(){this.clearPropagation=!1},onTap(){this.clearPropagation?this.clearPropagation=!1:(this.$emit("maskClick"),this.mkclick&&this.close())},top(e){this.popupstyle=this.isDesktop?"fixforpc-top":"top",this.ani=["slide-top"],this.transClass={position:"fixed",left:0,right:0,backgroundColor:this.bg},e||(this.showPopup=!0,this.showTrans=!0,this.$nextTick((()=>{this.messageChild&&"message"===this.type&&this.messageChild.timerClose()})))},bottom(e){this.popupstyle="bottom",this.ani=["slide-bottom"],this.transClass={position:"fixed",left:0,right:0,bottom:0,paddingBottom:this.safeAreaInsets+"px",backgroundColor:this.bg},e||(this.showPopup=!0,this.showTrans=!0)},center(e){this.popupstyle="center",this.ani=["zoom-out","fade"],this.transClass={position:"fixed",display:"flex",flexDirection:"column",bottom:0,left:0,right:0,top:0,justifyContent:"center",alignItems:"center"},e||(this.showPopup=!0,this.showTrans=!0)},left(e){this.popupstyle="left",this.ani=["slide-left"],this.transClass={position:"fixed",left:0,bottom:0,top:0,backgroundColor:this.bg,display:"flex",flexDirection:"column"},e||(this.showPopup=!0,this.showTrans=!0)},right(e){this.popupstyle="right",this.ani=["slide-right"],this.transClass={position:"fixed",bottom:0,right:0,top:0,backgroundColor:this.bg,display:"flex",flexDirection:"column"},e||(this.showPopup=!0,this.showTrans=!0)}}};function _sfc_render$m(e,t,n,a,i,o){const r=resolveEasycom(resolveDynamicComponent("uni-transition"),__easycom_0$5),s=index$g,l=resolveComponent("keypress");return i.showPopup?(openBlock(),createBlock(s,{key:0,class:normalizeClass(["uni-popup",[i.popupstyle,o.isDesktop?"fixforpc-z-index":""]])},{default:withCtx((()=>[createVNode(s,{onTouchstart:o.touchstart},{default:withCtx((()=>[i.maskShow?(openBlock(),createBlock(r,{key:"1",name:"mask","mode-class":"fade",styles:i.maskClass,duration:i.duration,show:i.showTrans,onClick:o.onTap},null,8,["styles","duration","show","onClick"])):createCommentVNode("",!0),createVNode(r,{key:"2","mode-class":i.ani,name:"content",styles:i.transClass,duration:i.duration,show:i.showTrans,onClick:o.onTap},{default:withCtx((()=>[createVNode(s,{class:normalizeClass(["uni-popup__wrapper",[i.popupstyle]]),style:normalizeStyle({backgroundColor:o.bg}),onClick:o.clear},{default:withCtx((()=>[renderSlot(e.$slots,"default",{},void 0,!0)])),_:3},8,["style","class","onClick"])])),_:3},8,["mode-class","styles","duration","show","onClick"])])),_:3},8,["onTouchstart"]),i.maskShow?(openBlock(),createBlock(l,{key:0,onEsc:o.onTap},null,8,["onEsc"])):createCommentVNode("",!0)])),_:3},8,["class"])):createCommentVNode("",!0)}const __easycom_7=_export_sfc(_sfc_main$I,[["render",_sfc_render$m],["__scopeId","data-v-dae2b01a"]]),_sfc_main$H={__name:"MultiplePicker",props:{title:String,options:{type:Array,default:()=>[]},index:{type:String,default:"text"},modelValue:Array},emits:["update:modelValue"],setup(e,{emit:t}){const n=ref(),a=e,i=ref([]);ref(null);const o=t;function r(){i.value=a.modelValue||[],n.value.open("bottom")}function s(){o("update:modelValue",i.value),n.value.close()}function l(e){i.value=e.detail.value}return(t,o)=>{const c=index$i,d=index$g,u=index$t,m=index$y,p=index$u,h=ScrollView,f=resolveEasycom(resolveDynamicComponent("uni-popup"),__easycom_7);return openBlock(),createBlock(d,null,{default:withCtx((()=>[createVNode(f,{ref_key:"mtPicker",ref:n},{default:withCtx((()=>[createVNode(d,{class:"w-picker-m"},{default:withCtx((()=>[createVNode(d,null,{default:withCtx((()=>[createVNode(c,{onClick:o[0]||(o[0]=e=>n.value.close())},{default:withCtx((()=>[createTextVNode("取消")])),_:1}),createVNode(c,null,{default:withCtx((()=>[createTextVNode(toDisplayString(e.title||"请选择"),1)])),_:1}),createVNode(c,{onClick:s},{default:withCtx((()=>[createTextVNode("确定")])),_:1})])),_:1}),createVNode(h,{"scroll-y":"",class:"w-picker-content"},{default:withCtx((()=>[createVNode(p,{class:"w-picker-options",onChange:l},{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(a.options,((t,n)=>(openBlock(),createBlock(m,{key:n},{default:withCtx((()=>{return[createVNode(u,{value:t.value,checked:(n=t.value,i.value.indexOf(n)>-1),color:"#4478F7",style:{transform:"scale(0.7)",flex:"1"}},null,8,["value","checked"]),createVNode(c,null,{default:withCtx((()=>[createTextVNode(toDisplayString(t[e.index]),1)])),_:2},1024)];var n})),_:2},1024)))),128))])),_:1})])),_:1})])),_:1})])),_:1},512),renderSlot(t.$slots,"default",{show:r},void 0,!0)])),_:3})}}},MultiplePicker=_export_sfc(_sfc_main$H,[["__scopeId","data-v-cf0fe105"]]),_sfc_main$G={__name:"MultipleSelect",props:{formProps:{type:Object,default:()=>({})},modelValue:Array,readonly:Boolean},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=computed((()=>n.formProps.options.map((e=>({text:e,value:e})))));ref(0);const i=computed({get:()=>n.modelValue,set(e){o("update:modelValue",e)}}),o=t;return(t,o)=>{const r=index$i,s=resolveEasycom(resolveDynamicComponent("uni-data-checkbox"),__easycom_1$2);return e.readonly?(openBlock(),createBlock(r,{key:0,class:"w-form-input-rv"},{default:withCtx((()=>[createTextVNode(toDisplayString((i.value||[]).join("、")),1)])),_:1})):e.formProps.expanding?(openBlock(),createBlock(s,{key:1,multiple:"",modelValue:i.value,"onUpdate:modelValue":o[0]||(o[0]=e=>i.value=e),localdata:a.value},null,8,["modelValue","localdata"])):(openBlock(),createBlock(MultiplePicker,{key:2,modelValue:i.value,"onUpdate:modelValue":o[1]||(o[1]=e=>i.value=e),options:a.value},{default:withCtx((({show:e})=>[createVNode(ClickInput,{value:n.modelValue,placeholder:n.formProps.placeholder||"请选择",onClick:e},null,8,["value","placeholder","onClick"])])),_:1},8,["modelValue","options"]))}}},_sfc_main$F={__name:"NumberInput",props:{formProps:{type:Object,default:()=>({})},modelValue:Number|String,readonly:Boolean},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=computed({get:()=>parseNumber(n.modelValue,n.formProps.precision),set(e){i("update:modelValue",parseNumber(e,n.formProps.precision))}}),i=t;return(t,n)=>{const i=resolveEasycom(resolveDynamicComponent("uni-easyinput"),__easycom_8),o=index$i;return e.readonly?(openBlock(),createBlock(o,{key:1,class:"w-form-input-rv"},{default:withCtx((()=>[createTextVNode(toDisplayString(a.value),1)])),_:1})):(openBlock(),createBlock(i,{key:0,inputBorder:!1,class:"w-form-input",type:"digit",modelValue:a.value,"onUpdate:modelValue":n[0]||(n[0]=e=>a.value=e),placeholder:e.formProps.placeholder||"请输入数值"},null,8,["modelValue","placeholder"]))}}},_sfc_main$E={__name:"TimePicker",props:{formProps:{type:Object,default:()=>({})},modelValue:String,readonly:Boolean},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=computed({get:()=>n.modelValue,set(e){i("update:modelValue",e)}}),i=t;function o(e){a.value=e.detail.value}return(t,i)=>{const r=index$7,s=index$i;return e.readonly?(openBlock(),createBlock(s,{key:1,class:"w-form-input-rv"},{default:withCtx((()=>[createTextVNode(toDisplayString(a.value),1)])),_:1})):(openBlock(),createBlock(r,{key:0,mode:"time",value:a.value,onChange:o},{default:withCtx((()=>[createVNode(ClickInput,{value:a.value,placeholder:n.formProps.placeholder||"请选择时间","pre-icon":"calendar"},null,8,["value","placeholder"])])),_:1},8,["value"]))}}},_sfc_main$D={name:"TimeRangePicker",props:{startTime:{type:String,default:"00:00",validator:e=>/(((2[0-3])|([0-1][0-9])):[0-5][0-9])|24:00/.test(e)},startDefaultTime:{type:String,default(){return this.startTime},validator:e=>/(((2[0-3])|([0-1][0-9])):[0-5][0-9])|24:00/.test(e)},endTime:{type:String,default:"23:59",validator:e=>/(((2[0-3])|([0-1][0-9])):[0-5][0-9])|24:00/.test(e)},endDefaultTime:{type:String,default(){return this.endTime},validator:e=>/(((2[0-3])|([0-1][0-9])):[0-5][0-9])|24:00/.test(e)}},data:()=>({startDefaultTimeArr:[0,0],endDefaultTimeArr:[0,0]}),methods:{startTimeChange(e){this.startDefaultTimeArr=e.detail.value,this.compareTwoTimeRange(e.detail.value,this.endDefaultTimeArr)&&(this.endDefaultTimeArr=e.detail.value)},endTimeChange(e){this.endDefaultTimeArr=e.detail.value,this.compareTwoTimeRange(this.startDefaultTimeArr,e.detail.value)&&(this.startDefaultTimeArr=e.detail.value)},open(){this.$refs.popup.open()},closePopup(e=""){if(this.compareTwoTimeRange(this.startDefaultTimeArr,this.endDefaultTimeArr))return showToast({title:"开始时间不能大于结束时间",icon:"none"}),!1;let t=this.createTimeRange.hours[this.startDefaultTimeArr[0]]+":"+this.createTimeRange.startMinutes[this.startDefaultTimeArr[1]],n=this.createTimeRange.hours[this.endDefaultTimeArr[0]]+":"+this.createTimeRange.endMinutes[this.endDefaultTimeArr[1]];this.$emit("timeRange",[t,n]),this.$refs.popup.close()},compareTwoTimeRange:(e=[],t=[])=>e[0]>t[0]||e[0]==t[0]&&e[1]>t[1]},beforeCreate(){let e=[],t=[];for(let n=0;n<=24;n++)e.push(n<10?"0"+n:n+"");for(let n=0;n<60;n++)t.push(n<10?"0"+n:n+"");this.timeRange={hour:e,minute:t}},created(){},computed:{createTimeRange(){let{startTime:e,startDefaultTime:t,endTime:n,endDefaultTime:a}=this.timeRangeDateChange,i=e.split(":"),o=n.split(":"),r=this.timeRange.hour.slice(this.timeRange.hour.findIndex((e=>e==i[0])),this.timeRange.hour.findIndex((e=>e==o[0]))+1),s=null;s=i[0]==o[0]?this.timeRange.minute.slice(this.timeRange.minute.findIndex((e=>e==i[1])),this.timeRange.minute.findIndex((e=>e==o[1]))+1):0==this.startDefaultTimeArr[0]?this.timeRange.minute.slice(this.timeRange.minute.findIndex((e=>e==i[1]))):this.startDefaultTimeArr[0]==r.length-1?this.timeRange.minute.slice(0,this.timeRange.minute.findIndex((e=>e==o[1]))+1):this.timeRange.minute;let l=null;return l=i[0]==o[0]?this.timeRange.minute.slice(this.timeRange.minute.findIndex((e=>e==i[1])),this.timeRange.minute.findIndex((e=>e==o[1]))+1):0==this.endDefaultTimeArr[0]?this.timeRange.minute.slice(this.timeRange.minute.findIndex((e=>e==i[1]))):this.endDefaultTimeArr[0]==r.length-1?this.timeRange.minute.slice(0,this.timeRange.minute.findIndex((e=>e==o[1]))+1):this.timeRange.minute,{hours:r,startMinutes:s,endMinutes:l}},timeRangeDateChange(){let{startTime:e,startDefaultTime:t,endTime:n,endDefaultTime:a}=this;return e=e<n?e:n,t=t>=e&&t<=n?t:e,a=a>=e&&a<=n&&a>=t?a:t,{startTime:e,startDefaultTime:t,endTime:n,endDefaultTime:a}}},watch:{timeRangeDateChange:{handler(e,t){let{startTime:n,startDefaultTime:a,endTime:i,endDefaultTime:o}=e,r=n.split(":"),s=i.split(":"),l=a.split(":"),c=o.split(":"),d=this.timeRange.hour.slice(this.timeRange.hour.findIndex((e=>e==r[0])),this.timeRange.hour.findIndex((e=>e==s[0]))+1);this.$set(this.startDefaultTimeArr,0,d.includes(l[0])?d.findIndex((e=>e==l[0])):0),this.$set(this.endDefaultTimeArr,0,d.includes(c[0])?d.findIndex((e=>e==c[0])):this.startDefaultTimeArr[0]);let u=null,m=null;r[0]==s[0]?u=m=this.timeRange.minute.slice(this.timeRange.minute.findIndex((e=>e==r[1])),this.timeRange.minute.findIndex((e=>e==s[1]))+1):(u=a.split(":")[0]==r[0]?this.timeRange.minute.slice(this.timeRange.minute.findIndex((e=>e==r[1]))):a.split(":")[0]==s[0]?this.timeRange.minute.slice(0,this.timeRange.minute.findIndex((e=>e==s[1]))+1):this.timeRange.minute,m=o.split(":")[0]==r[0]?this.timeRange.minute.slice(this.timeRange.minute.findIndex((e=>e==r[1]))):o.split(":")[0]==s[0]?this.timeRange.minute.slice(0,this.timeRange.minute.findIndex((e=>e==s[1]))+1):this.timeRange.minute),this.$set(this.startDefaultTimeArr,1,u.includes(l[1])?u.findIndex((e=>e==l[1])):0),this.$set(this.endDefaultTimeArr,1,m.includes(c[1])?m.findIndex((e=>e==c[1])):this.startDefaultTimeArr[1])},deep:!0,immediate:!0}}};function _sfc_render$l(e,t,n,a,i,o){const r=index$i,s=index$g,l=PickerViewColumn,c=PickerView,d=resolveEasycom(resolveDynamicComponent("uni-popup"),__easycom_7);return openBlock(),createBlock(d,{ref:"popup",type:"bottom"},{default:withCtx((()=>[createVNode(s,{class:"tpf-time-range-section"},{default:withCtx((()=>[createVNode(s,{class:"tpf-time-range-title-section flex flex-align-center flex-pack-justify"},{default:withCtx((()=>[createVNode(r,{class:"tpf-time-range-title-txt tpf-time-range-cancel",onClick:t[0]||(t[0]=e=>o.closePopup("cancel"))},{default:withCtx((()=>[createTextVNode("取消")])),_:1}),createVNode(r,{class:"tpf-time-range-title-txt tpf-time-range-title"},{default:withCtx((()=>[createTextVNode("时间范围选择")])),_:1}),createVNode(r,{class:"tpf-time-range-title-txt tpf-time-range-sure",onClick:t[1]||(t[1]=e=>o.closePopup("sure"))},{default:withCtx((()=>[createTextVNode("确定")])),_:1})])),_:1}),createVNode(s,{class:"tpf-time-range-main flex flex-l flex-align-center flex-pack-justify"},{default:withCtx((()=>[createVNode(s,{class:"tpf-time-range-item flex flex-v flex-align-center"},{default:withCtx((()=>[createVNode(r,{class:"tpf-start-time"},{default:withCtx((()=>[createTextVNode("开始时间")])),_:1}),createVNode(c,{class:"flex-1 tpf-picker-view",value:i.startDefaultTimeArr,"indicator-style":"height: 50px;",onChange:o.startTimeChange},{default:withCtx((()=>[createVNode(l,null,{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(o.createTimeRange.hours,((e,t)=>(openBlock(),createBlock(s,{class:"tpf-time-range-picker-item flex flex-align-center flex-pack-center",key:t},{default:withCtx((()=>[createTextVNode(toDisplayString(e),1)])),_:2},1024)))),128))])),_:1}),createVNode(l,null,{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(o.createTimeRange.startMinutes,((e,t)=>(openBlock(),createBlock(s,{class:"tpf-time-range-picker-item flex flex-align-center flex-pack-center",key:t},{default:withCtx((()=>[createTextVNode(toDisplayString(e),1)])),_:2},1024)))),128))])),_:1})])),_:1},8,["value","onChange"])])),_:1}),createVNode(r,{class:"tpf-time-divide"},{default:withCtx((()=>[createTextVNode(" - ")])),_:1}),createVNode(s,{class:"tpf-time-range-item flex flex-v flex-align-center"},{default:withCtx((()=>[createVNode(r,{class:"tpf-start-time"},{default:withCtx((()=>[createTextVNode("结束时间")])),_:1}),createVNode(c,{class:"flex-1 tpf-picker-view",value:i.endDefaultTimeArr,"indicator-style":"height: 50px;",onChange:o.endTimeChange},{default:withCtx((()=>[createVNode(l,null,{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(o.createTimeRange.hours,((e,t)=>(openBlock(),createBlock(s,{class:"tpf-time-range-picker-item flex flex-align-center flex-pack-center",key:t},{default:withCtx((()=>[createTextVNode(toDisplayString(e),1)])),_:2},1024)))),128))])),_:1}),createVNode(l,null,{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(o.createTimeRange.endMinutes,((e,t)=>(openBlock(),createBlock(s,{class:"tpf-time-range-picker-item flex flex-align-center flex-pack-center",key:t},{default:withCtx((()=>[createTextVNode(toDisplayString(e),1)])),_:2},1024)))),128))])),_:1})])),_:1},8,["value","onChange"])])),_:1})])),_:1})])),_:1})])),_:1},512)}const TimeRangePicker$1=_export_sfc(_sfc_main$D,[["render",_sfc_render$l],["__scopeId","data-v-02e27eff"]]),_sfc_main$C={__name:"TimeRangePicker",props:{formProps:{type:Object,default:()=>({})},modelValue:{type:Array,default:()=>[]},readonly:Boolean},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=computed({get:()=>n.modelValue,set(e){i("update:modelValue",e)}}),i=t,o=ref();function r(){n.readonly||o.value.open()}function s(e){a.value=e}return(t,n)=>{const i=index$g,l=index$i;return e.readonly?a.value.length>0?(openBlock(),createBlock(l,{key:1,class:"w-form-input-rv"},{default:withCtx((()=>[createTextVNode(toDisplayString(a.value[0])+" ~ "+toDisplayString(a.value[1]),1)])),_:1})):createCommentVNode("",!0):(openBlock(),createBlock(i,{key:0,class:"w-form-timePicker","hover-class":"w-click-hover"},{default:withCtx((()=>[createVNode(TimeRangePicker$1,{class:"w-form-input",ref_key:"timePickers",ref:o,startDefaultTime:"00:00",endDefaultTime:"23:59",onTimeRange:s},null,512),createVNode(ClickInput,{style:{width:"100%"},split:" ~ ",value:a.value,disabled:e.readonly,onClick:r,placeholder:"请选择时间范围","pre-icon":"calendar"},null,8,["value","disabled"])])),_:1}))}}},TimeRangePicker=_export_sfc(_sfc_main$C,[["__scopeId","data-v-f9cf6112"]]);let Calendar$1=class{constructor({selected:e,startDate:t,endDate:n,range:a}={}){this.date=this.getDateObj(new Date),this.selected=e||[],this.startDate=t,this.endDate=n,this.range=a,this.cleanMultipleStatus(),this.weeks={},this.lastHover=!1}setDate(e){const t=this.getDateObj(e);this.getWeeks(t.fullDate)}cleanMultipleStatus(){this.multipleStatus={before:"",after:"",data:[]}}setStartDate(e){this.startDate=e}setEndDate(e){this.endDate=e}getPreMonthObj(e){e=fixIosDateFormat(e);const t=(e=new Date(e)).getMonth();e.setMonth(t-1);const n=e.getMonth();return 0!==t&&n-t==0&&e.setMonth(n-1),this.getDateObj(e)}getNextMonthObj(e){e=fixIosDateFormat(e);const t=(e=new Date(e)).getMonth();e.setMonth(t+1);const n=e.getMonth();return n-t>1&&e.setMonth(n-1),this.getDateObj(e)}getDateObj(e){return e=fixIosDateFormat(e),{fullDate:getDate(e=new Date(e)),year:e.getFullYear(),month:addZero(e.getMonth()+1),date:addZero(e.getDate()),day:e.getDay()}}getPreMonthDays(e,t){const n=[];for(let a=e-1;a>=0;a--){const e=t.month-1;n.push({date:new Date(t.year,e,-a).getDate(),month:e,disable:!0})}return n}getCurrentMonthDays(e,t){const n=[],a=this.date.fullDate;for(let i=1;i<=e;i++){const e=`${t.year}-${t.month}-${addZero(i)}`,o=a===e,r=this.selected&&this.selected.find((t=>{if(this.dateEqual(e,t.date))return t}));this.startDate&&dateCompare(this.startDate,e),this.endDate&&dateCompare(e,this.endDate);let s=this.multipleStatus.data,l=-1;this.range&&s&&(l=s.findIndex((t=>this.dateEqual(t,e))));const c=-1!==l;n.push({fullDate:e,year:t.year,date:i,multiple:!!this.range&&c,beforeMultiple:this.isLogicBefore(e,this.multipleStatus.before,this.multipleStatus.after),afterMultiple:this.isLogicAfter(e,this.multipleStatus.before,this.multipleStatus.after),month:t.month,disable:this.startDate&&!dateCompare(this.startDate,e)||this.endDate&&!dateCompare(e,this.endDate),isToday:o,userChecked:!1,extraInfo:r})}return n}_getNextMonthDays(e,t){const n=[],a=t.month+1;for(let i=1;i<=e;i++)n.push({date:i,month:a,disable:!0});return n}getInfo(e){return e||(e=new Date),this.calendar.find((t=>t.fullDate===this.getDateObj(e).fullDate))}dateEqual(e,t){return e=new Date(fixIosDateFormat(e)),t=new Date(fixIosDateFormat(t)),e.valueOf()===t.valueOf()}isLogicBefore(e,t,n){let a=t;return t&&n&&(a=dateCompare(t,n)?t:n),this.dateEqual(a,e)}isLogicAfter(e,t,n){let a=n;return t&&n&&(a=dateCompare(t,n)?n:t),this.dateEqual(a,e)}geDateAll(e,t){var n=[],a=e.split("-"),i=t.split("-"),o=new Date;o.setFullYear(a[0],a[1]-1,a[2]);var r=new Date;r.setFullYear(i[0],i[1]-1,i[2]);for(var s=o.getTime()-864e5,l=r.getTime()-864e5,c=s;c<=l;)c+=864e5,n.push(this.getDateObj(new Date(parseInt(c))).fullDate);return n}setMultiple(e){if(!this.range)return;let{before:t,after:n}=this.multipleStatus;if(t&&n){if(!this.lastHover)return void(this.lastHover=!0);this.multipleStatus.before=e,this.multipleStatus.after="",this.multipleStatus.data=[],this.multipleStatus.fulldate="",this.lastHover=!1}else t?(this.multipleStatus.after=e,dateCompare(this.multipleStatus.before,this.multipleStatus.after)?this.multipleStatus.data=this.geDateAll(this.multipleStatus.before,this.multipleStatus.after):this.multipleStatus.data=this.geDateAll(this.multipleStatus.after,this.multipleStatus.before),this.lastHover=!0):(this.multipleStatus.before=e,this.multipleStatus.after=void 0,this.lastHover=!1);this.getWeeks(e)}setHoverMultiple(e){if(!this.range||this.lastHover)return;const{before:t}=this.multipleStatus;t?(this.multipleStatus.after=e,dateCompare(this.multipleStatus.before,this.multipleStatus.after)?this.multipleStatus.data=this.geDateAll(this.multipleStatus.before,this.multipleStatus.after):this.multipleStatus.data=this.geDateAll(this.multipleStatus.after,this.multipleStatus.before)):this.multipleStatus.before=e,this.getWeeks(e)}setDefaultMultiple(e,t){this.multipleStatus.before=e,this.multipleStatus.after=t,e&&t&&(dateCompare(e,t)?(this.multipleStatus.data=this.geDateAll(e,t),this.getWeeks(t)):(this.multipleStatus.data=this.geDateAll(t,e),this.getWeeks(e)))}getWeeks(e){const{year:t,month:n}=this.getDateObj(e),a=new Date(t,n-1,1).getDay(),i=this.getPreMonthDays(a,this.getDateObj(e)),o=new Date(t,n,0).getDate(),r=42-a-o,s=[...i,...this.getCurrentMonthDays(o,this.getDateObj(e)),...this._getNextMonthDays(r,this.getDateObj(e))],l=new Array(6);for(let c=0;c<s.length;c++){const e=Math.floor(c/7);l[e]||(l[e]=new Array(7)),l[e][c%7]=s[c]}this.calendar=s,this.weeks=l}};function getDateTime(e,t){return`${getDate(e)} ${getTime(e,t)}`}function getDate(e){e=fixIosDateFormat(e);const t=(e=new Date(e)).getFullYear(),n=e.getMonth()+1,a=e.getDate();return`${t}-${addZero(n)}-${addZero(a)}`}function getTime(e,t){e=fixIosDateFormat(e);const n=(e=new Date(e)).getHours(),a=e.getMinutes(),i=e.getSeconds();return t?`${addZero(n)}:${addZero(a)}`:`${addZero(n)}:${addZero(a)}:${addZero(i)}`}function addZero(e){return e<10&&(e=`0${e}`),e}function getDefaultSecond(e){return e?"00:00":"00:00:00"}function dateCompare(e,t){return(e=new Date(fixIosDateFormat(e)))<=(t=new Date(fixIosDateFormat(t)))}function checkDate(e){return e.match(/((19|20)\d{2})(-|\/)\d{1,2}(-|\/)\d{1,2}/g)}const dateTimeReg=/^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])( [0-5]?[0-9]:[0-5]?[0-9]:[0-5]?[0-9])?$/;function fixIosDateFormat(e){return"string"==typeof e&&dateTimeReg.test(e)&&(e=e.replace(/-/g,"/")),e}const _sfc_main$B={props:{weeks:{type:Object,default:()=>({})},calendar:{type:Object,default:()=>({})},selected:{type:Array,default:()=>[]},checkHover:{type:Boolean,default:!1}},methods:{choiceDate(e){this.$emit("change",e)},handleMousemove(e){this.$emit("handleMouse",e)}}};function _sfc_render$k(e,t,n,a,i,o){const r=index$i,s=index$g;return openBlock(),createBlock(s,{class:normalizeClass(["uni-calendar-item__weeks-box",{"uni-calendar-item--disable":n.weeks.disable,"uni-calendar-item--before-checked-x":n.weeks.beforeMultiple,"uni-calendar-item--multiple":n.weeks.multiple,"uni-calendar-item--after-checked-x":n.weeks.afterMultiple}]),onClick:t[0]||(t[0]=e=>o.choiceDate(n.weeks)),onMouseenter:t[1]||(t[1]=e=>o.handleMousemove(n.weeks))},{default:withCtx((()=>[createVNode(s,{class:normalizeClass(["uni-calendar-item__weeks-box-item",{"uni-calendar-item--checked":n.calendar.fullDate===n.weeks.fullDate&&(n.calendar.userChecked||!n.checkHover),"uni-calendar-item--checked-range-text":n.checkHover,"uni-calendar-item--before-checked":n.weeks.beforeMultiple,"uni-calendar-item--multiple":n.weeks.multiple,"uni-calendar-item--after-checked":n.weeks.afterMultiple,"uni-calendar-item--disable":n.weeks.disable}])},{default:withCtx((()=>[n.selected&&n.weeks.extraInfo?(openBlock(),createBlock(r,{key:0,class:"uni-calendar-item__weeks-box-circle"})):createCommentVNode("",!0),createVNode(r,{class:"uni-calendar-item__weeks-box-text uni-calendar-item__weeks-box-text-disable uni-calendar-item--checked-text"},{default:withCtx((()=>[createTextVNode(toDisplayString(n.weeks.date),1)])),_:1})])),_:1},8,["class"]),createVNode(s,{class:normalizeClass({"uni-calendar-item--today":n.weeks.isToday})},null,8,["class"])])),_:1},8,["class"])}const calendarItem=_export_sfc(_sfc_main$B,[["render",_sfc_render$k],["__scopeId","data-v-3ef5ec27"]]),en$1={"uni-datetime-picker.selectDate":"select date","uni-datetime-picker.selectTime":"select time","uni-datetime-picker.selectDateTime":"select date and time","uni-datetime-picker.startDate":"start date","uni-datetime-picker.endDate":"end date","uni-datetime-picker.startTime":"start time","uni-datetime-picker.endTime":"end time","uni-datetime-picker.ok":"ok","uni-datetime-picker.clear":"clear","uni-datetime-picker.cancel":"cancel","uni-datetime-picker.year":"-","uni-datetime-picker.month":"","uni-calender.MON":"MON","uni-calender.TUE":"TUE","uni-calender.WED":"WED","uni-calender.THU":"THU","uni-calender.FRI":"FRI","uni-calender.SAT":"SAT","uni-calender.SUN":"SUN","uni-calender.confirm":"confirm"},zhHans$1={"uni-datetime-picker.selectDate":"选择日期","uni-datetime-picker.selectTime":"选择时间","uni-datetime-picker.selectDateTime":"选择日期时间","uni-datetime-picker.startDate":"开始日期","uni-datetime-picker.endDate":"结束日期","uni-datetime-picker.startTime":"开始时间","uni-datetime-picker.endTime":"结束时间","uni-datetime-picker.ok":"确定","uni-datetime-picker.clear":"清除","uni-datetime-picker.cancel":"取消","uni-datetime-picker.year":"年","uni-datetime-picker.month":"月","uni-calender.SUN":"日","uni-calender.MON":"一","uni-calender.TUE":"二","uni-calender.WED":"三","uni-calender.THU":"四","uni-calender.FRI":"五","uni-calender.SAT":"六","uni-calender.confirm":"确认"},zhHant$1={"uni-datetime-picker.selectDate":"選擇日期","uni-datetime-picker.selectTime":"選擇時間","uni-datetime-picker.selectDateTime":"選擇日期時間","uni-datetime-picker.startDate":"開始日期","uni-datetime-picker.endDate":"結束日期","uni-datetime-picker.startTime":"開始时间","uni-datetime-picker.endTime":"結束时间","uni-datetime-picker.ok":"確定","uni-datetime-picker.clear":"清除","uni-datetime-picker.cancel":"取消","uni-datetime-picker.year":"年","uni-datetime-picker.month":"月","uni-calender.SUN":"日","uni-calender.MON":"一","uni-calender.TUE":"二","uni-calender.WED":"三","uni-calender.THU":"四","uni-calender.FRI":"五","uni-calender.SAT":"六","uni-calender.confirm":"確認"},i18nMessages={en:en$1,"zh-Hans":zhHans$1,"zh-Hant":zhHant$1},{t:t$3}=initVueI18n(i18nMessages),_sfc_main$A={name:"UniDatetimePicker",data:()=>({indicatorStyle:"height: 50px;",visible:!1,fixNvueBug:{},dateShow:!0,timeShow:!0,title:"日期和时间",time:"",year:1920,month:0,day:0,hour:0,minute:0,second:0,startYear:1920,startMonth:1,startDay:1,startHour:0,startMinute:0,startSecond:0,endYear:2120,endMonth:12,endDay:31,endHour:23,endMinute:59,endSecond:59}),props:{type:{type:String,default:"datetime"},value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:""},start:{type:[Number,String],default:""},end:{type:[Number,String],default:""},returnType:{type:String,default:"string"},disabled:{type:[Boolean,String],default:!1},border:{type:[Boolean,String],default:!0},hideSecond:{type:[Boolean,String],default:!1}},watch:{modelValue:{handler(e){e?(this.parseValue(fixIosDateFormat(e)),this.initTime(!1)):(this.time="",this.parseValue(Date.now()))},immediate:!0},type:{handler(e){"date"===e?(this.dateShow=!0,this.timeShow=!1,this.title="日期"):"time"===e?(this.dateShow=!1,this.timeShow=!0,this.title="时间"):(this.dateShow=!0,this.timeShow=!0,this.title="日期和时间")},immediate:!0},start:{handler(e){this.parseDatetimeRange(fixIosDateFormat(e),"start")},immediate:!0},end:{handler(e){this.parseDatetimeRange(fixIosDateFormat(e),"end")},immediate:!0},months(e){this.checkValue("month",this.month,e)},days(e){this.checkValue("day",this.day,e)},hours(e){this.checkValue("hour",this.hour,e)},minutes(e){this.checkValue("minute",this.minute,e)},seconds(e){this.checkValue("second",this.second,e)}},computed:{years(){return this.getCurrentRange("year")},months(){return this.getCurrentRange("month")},days(){return this.getCurrentRange("day")},hours(){return this.getCurrentRange("hour")},minutes(){return this.getCurrentRange("minute")},seconds(){return this.getCurrentRange("second")},ymd(){return[this.year-this.minYear,this.month-this.minMonth,this.day-this.minDay]},hms(){return[this.hour-this.minHour,this.minute-this.minMinute,this.second-this.minSecond]},currentDateIsStart(){return this.year===this.startYear&&this.month===this.startMonth&&this.day===this.startDay},currentDateIsEnd(){return this.year===this.endYear&&this.month===this.endMonth&&this.day===this.endDay},minYear(){return this.startYear},maxYear(){return this.endYear},minMonth(){return this.year===this.startYear?this.startMonth:1},maxMonth(){return this.year===this.endYear?this.endMonth:12},minDay(){return this.year===this.startYear&&this.month===this.startMonth?this.startDay:1},maxDay(){return this.year===this.endYear&&this.month===this.endMonth?this.endDay:this.daysInMonth(this.year,this.month)},minHour(){return"datetime"===this.type?this.currentDateIsStart?this.startHour:0:"time"===this.type?this.startHour:void 0},maxHour(){return"datetime"===this.type?this.currentDateIsEnd?this.endHour:23:"time"===this.type?this.endHour:void 0},minMinute(){return"datetime"===this.type?this.currentDateIsStart&&this.hour===this.startHour?this.startMinute:0:"time"===this.type?this.hour===this.startHour?this.startMinute:0:void 0},maxMinute(){return"datetime"===this.type?this.currentDateIsEnd&&this.hour===this.endHour?this.endMinute:59:"time"===this.type?this.hour===this.endHour?this.endMinute:59:void 0},minSecond(){return"datetime"===this.type?this.currentDateIsStart&&this.hour===this.startHour&&this.minute===this.startMinute?this.startSecond:0:"time"===this.type?this.hour===this.startHour&&this.minute===this.startMinute?this.startSecond:0:void 0},maxSecond(){return"datetime"===this.type?this.currentDateIsEnd&&this.hour===this.endHour&&this.minute===this.endMinute?this.endSecond:59:"time"===this.type?this.hour===this.endHour&&this.minute===this.endMinute?this.endSecond:59:void 0},selectTimeText:()=>t$3("uni-datetime-picker.selectTime"),okText:()=>t$3("uni-datetime-picker.ok"),clearText:()=>t$3("uni-datetime-picker.clear"),cancelText:()=>t$3("uni-datetime-picker.cancel")},mounted(){},methods:{lessThanTen:e=>e<10?"0"+e:e,parseTimeType(e){if(e){let t=e.split(":");this.hour=Number(t[0]),this.minute=Number(t[1]),this.second=Number(t[2])}},initPickerValue(e){let t=null;e?t=this.compareValueWithStartAndEnd(e,this.start,this.end):(t=Date.now(),t=this.compareValueWithStartAndEnd(t,this.start,this.end)),this.parseValue(t)},compareValueWithStartAndEnd(e,t,n){let a=null;return e=this.superTimeStamp(e),t=this.superTimeStamp(t),n=this.superTimeStamp(n),a=t&&n?e<t?new Date(t):e>n?new Date(n):new Date(e):t&&!n?t<=e?new Date(e):new Date(t):!t&&n?e<=n?new Date(e):new Date(n):new Date(e),a},superTimeStamp(e){let t="";if("time"===this.type&&e&&"string"==typeof e){const e=new Date;t=e.getFullYear()+"/"+(e.getMonth()+1)+"/"+e.getDate()+" "}return Number(e)&&(e=parseInt(e),t=0),this.createTimeStamp(t+e)},parseValue(e){if(e){if("time"===this.type&&"string"==typeof e)this.parseTimeType(e);else{let t=null;t=new Date(e),"time"!==this.type&&(this.year=t.getFullYear(),this.month=t.getMonth()+1,this.day=t.getDate()),"date"!==this.type&&(this.hour=t.getHours(),this.minute=t.getMinutes(),this.second=t.getSeconds())}this.hideSecond&&(this.second=0)}},parseDatetimeRange(e,t){if(!e)return"start"===t&&(this.startYear=1920,this.startMonth=1,this.startDay=1,this.startHour=0,this.startMinute=0,this.startSecond=0),void("end"===t&&(this.endYear=2120,this.endMonth=12,this.endDay=31,this.endHour=23,this.endMinute=59,this.endSecond=59));if("time"===this.type){const n=e.split(":");this[t+"Hour"]=Number(n[0]),this[t+"Minute"]=Number(n[1]),this[t+"Second"]=Number(n[2])}else{if(!e)return void("start"===t?this.startYear=this.year-60:this.endYear=this.year+60);Number(e)&&(e=parseInt(e));const n=/[0-9]:[0-9]/;"datetime"!==this.type||"end"!==t||"string"!=typeof e||n.test(e)||(e+=" 23:59:59");const a=new Date(e);this[t+"Year"]=a.getFullYear(),this[t+"Month"]=a.getMonth()+1,this[t+"Day"]=a.getDate(),"datetime"===this.type&&(this[t+"Hour"]=a.getHours(),this[t+"Minute"]=a.getMinutes(),this[t+"Second"]=a.getSeconds())}},getCurrentRange(e){const t=[];for(let n=this["min"+this.capitalize(e)];n<=this["max"+this.capitalize(e)];n++)t.push(n);return t},capitalize:e=>e.charAt(0).toUpperCase()+e.slice(1),checkValue(e,t,n){-1===n.indexOf(t)&&(this[e]=n[0])},daysInMonth:(e,t)=>new Date(e,t,0).getDate(),fixIosDateFormat:e=>("string"==typeof e&&(e=e.replace(/-/g,"/")),e),createTimeStamp(e){if(e)return"number"==typeof e?e:(e=e.replace(/-/g,"/"),"date"===this.type&&(e+=" 00:00:00"),Date.parse(e))},createDomSting(){const e=this.year+"-"+this.lessThanTen(this.month)+"-"+this.lessThanTen(this.day);let t=this.lessThanTen(this.hour)+":"+this.lessThanTen(this.minute);return this.hideSecond||(t=t+":"+this.lessThanTen(this.second)),"date"===this.type?e:"time"===this.type?t:e+" "+t},initTime(e=!0){this.time=this.createDomSting(),e&&("timestamp"===this.returnType&&"time"!==this.type?(this.$emit("change",this.createTimeStamp(this.time)),this.$emit("input",this.createTimeStamp(this.time)),this.$emit("update:modelValue",this.createTimeStamp(this.time))):(this.$emit("change",this.time),this.$emit("input",this.time),this.$emit("update:modelValue",this.time)))},bindDateChange(e){const t=e.detail.value;this.year=this.years[t[0]],this.month=this.months[t[1]],this.day=this.days[t[2]]},bindTimeChange(e){const t=e.detail.value;this.hour=this.hours[t[0]],this.minute=this.minutes[t[1]],this.second=this.seconds[t[2]]},initTimePicker(){if(this.disabled)return;const e=fixIosDateFormat(this.time);this.initPickerValue(e),this.visible=!this.visible},tiggerTimePicker(e){this.visible=!this.visible},clearTime(){this.time="",this.$emit("change",this.time),this.$emit("input",this.time),this.$emit("update:modelValue",this.time),this.tiggerTimePicker()},setTime(){this.initTime(),this.tiggerTimePicker()}}};function _sfc_render$j(e,t,n,a,i,o){const r=index$i,s=index$g,l=PickerViewColumn,c=PickerView;return openBlock(),createBlock(s,{class:"uni-datetime-picker"},{default:withCtx((()=>[createVNode(s,{onClick:o.initTimePicker},{default:withCtx((()=>[renderSlot(e.$slots,"default",{},(()=>[createVNode(s,{class:normalizeClass(["uni-datetime-picker-timebox-pointer",{"uni-datetime-picker-disabled":n.disabled,"uni-datetime-picker-timebox":n.border}])},{default:withCtx((()=>[createVNode(r,{class:"uni-datetime-picker-text"},{default:withCtx((()=>[createTextVNode(toDisplayString(i.time),1)])),_:1}),i.time?createCommentVNode("",!0):(openBlock(),createBlock(s,{key:0,class:"uni-datetime-picker-time"},{default:withCtx((()=>[createVNode(r,{class:"uni-datetime-picker-text"},{default:withCtx((()=>[createTextVNode(toDisplayString(o.selectTimeText),1)])),_:1})])),_:1}))])),_:1},8,["class"])]),!0)])),_:3},8,["onClick"]),i.visible?(openBlock(),createBlock(s,{key:0,id:"mask",class:"uni-datetime-picker-mask",onClick:o.tiggerTimePicker},null,8,["onClick"])):createCommentVNode("",!0),i.visible?(openBlock(),createBlock(s,{key:1,class:normalizeClass(["uni-datetime-picker-popup",[i.dateShow&&i.timeShow?"":"fix-nvue-height"]]),style:normalizeStyle(i.fixNvueBug)},{default:withCtx((()=>[createVNode(s,{class:"uni-title"},{default:withCtx((()=>[createVNode(r,{class:"uni-datetime-picker-text"},{default:withCtx((()=>[createTextVNode(toDisplayString(o.selectTimeText),1)])),_:1})])),_:1}),i.dateShow?(openBlock(),createBlock(s,{key:0,class:"uni-datetime-picker__container-box"},{default:withCtx((()=>[createVNode(c,{class:"uni-datetime-picker-view","indicator-style":i.indicatorStyle,value:o.ymd,onChange:o.bindDateChange},{default:withCtx((()=>[createVNode(l,null,{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(o.years,((e,t)=>(openBlock(),createBlock(s,{class:"uni-datetime-picker-item",key:t},{default:withCtx((()=>[createVNode(r,{class:"uni-datetime-picker-item"},{default:withCtx((()=>[createTextVNode(toDisplayString(o.lessThanTen(e)),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1}),createVNode(l,null,{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(o.months,((e,t)=>(openBlock(),createBlock(s,{class:"uni-datetime-picker-item",key:t},{default:withCtx((()=>[createVNode(r,{class:"uni-datetime-picker-item"},{default:withCtx((()=>[createTextVNode(toDisplayString(o.lessThanTen(e)),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1}),createVNode(l,null,{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(o.days,((e,t)=>(openBlock(),createBlock(s,{class:"uni-datetime-picker-item",key:t},{default:withCtx((()=>[createVNode(r,{class:"uni-datetime-picker-item"},{default:withCtx((()=>[createTextVNode(toDisplayString(o.lessThanTen(e)),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1},8,["indicator-style","value","onChange"]),createVNode(r,{class:"uni-datetime-picker-sign sign-left"},{default:withCtx((()=>[createTextVNode("-")])),_:1}),createVNode(r,{class:"uni-datetime-picker-sign sign-right"},{default:withCtx((()=>[createTextVNode("-")])),_:1})])),_:1})):createCommentVNode("",!0),i.timeShow?(openBlock(),createBlock(s,{key:1,class:"uni-datetime-picker__container-box"},{default:withCtx((()=>[createVNode(c,{class:normalizeClass(["uni-datetime-picker-view",[n.hideSecond?"time-hide-second":""]]),"indicator-style":i.indicatorStyle,value:o.hms,onChange:o.bindTimeChange},{default:withCtx((()=>[createVNode(l,null,{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(o.hours,((e,t)=>(openBlock(),createBlock(s,{class:"uni-datetime-picker-item",key:t},{default:withCtx((()=>[createVNode(r,{class:"uni-datetime-picker-item"},{default:withCtx((()=>[createTextVNode(toDisplayString(o.lessThanTen(e)),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1}),createVNode(l,null,{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(o.minutes,((e,t)=>(openBlock(),createBlock(s,{class:"uni-datetime-picker-item",key:t},{default:withCtx((()=>[createVNode(r,{class:"uni-datetime-picker-item"},{default:withCtx((()=>[createTextVNode(toDisplayString(o.lessThanTen(e)),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1}),n.hideSecond?createCommentVNode("",!0):(openBlock(),createBlock(l,{key:0},{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(o.seconds,((e,t)=>(openBlock(),createBlock(s,{class:"uni-datetime-picker-item",key:t},{default:withCtx((()=>[createVNode(r,{class:"uni-datetime-picker-item"},{default:withCtx((()=>[createTextVNode(toDisplayString(o.lessThanTen(e)),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1}))])),_:1},8,["class","indicator-style","value","onChange"]),createVNode(r,{class:normalizeClass(["uni-datetime-picker-sign",[n.hideSecond?"sign-center":"sign-left"]])},{default:withCtx((()=>[createTextVNode(":")])),_:1},8,["class"]),n.hideSecond?createCommentVNode("",!0):(openBlock(),createBlock(r,{key:0,class:"uni-datetime-picker-sign sign-right"},{default:withCtx((()=>[createTextVNode(":")])),_:1}))])),_:1})):createCommentVNode("",!0),createVNode(s,{class:"uni-datetime-picker-btn"},{default:withCtx((()=>[createVNode(s,{onClick:o.clearTime},{default:withCtx((()=>[createVNode(r,{class:"uni-datetime-picker-btn-text"},{default:withCtx((()=>[createTextVNode(toDisplayString(o.clearText),1)])),_:1})])),_:1},8,["onClick"]),createVNode(s,{class:"uni-datetime-picker-btn-group"},{default:withCtx((()=>[createVNode(s,{class:"uni-datetime-picker-cancel",onClick:o.tiggerTimePicker},{default:withCtx((()=>[createVNode(r,{class:"uni-datetime-picker-btn-text"},{default:withCtx((()=>[createTextVNode(toDisplayString(o.cancelText),1)])),_:1})])),_:1},8,["onClick"]),createVNode(s,{onClick:o.setTime},{default:withCtx((()=>[createVNode(r,{class:"uni-datetime-picker-btn-text"},{default:withCtx((()=>[createTextVNode(toDisplayString(o.okText),1)])),_:1})])),_:1},8,["onClick"])])),_:1})])),_:1})])),_:1},8,["class","style"])):createCommentVNode("",!0)])),_:3})}const TimePicker=_export_sfc(_sfc_main$A,[["render",_sfc_render$j],["__scopeId","data-v-e70a92d5"]]),{t:t$2}=initVueI18n(i18nMessages),_sfc_main$z={components:{calendarItem:calendarItem,timePicker:TimePicker},props:{date:{type:String,default:""},defTime:{type:[String,Object],default:""},selectableTimes:{type:[Object],default:()=>({})},selected:{type:Array,default:()=>[]},startDate:{type:String,default:""},endDate:{type:String,default:""},startPlaceholder:{type:String,default:""},endPlaceholder:{type:String,default:""},range:{type:Boolean,default:!1},hasTime:{type:Boolean,default:!1},insert:{type:Boolean,default:!0},showMonth:{type:Boolean,default:!0},clearDate:{type:Boolean,default:!0},checkHover:{type:Boolean,default:!0},hideSecond:{type:[Boolean],default:!1},pleStatus:{type:Object,default:()=>({before:"",after:"",data:[],fulldate:""})},defaultValue:{type:[String,Object,Array],default:""}},data:()=>({show:!1,weeks:[],calendar:{},nowDate:{},aniMaskShow:!1,firstEnter:!0,time:"",timeRange:{startTime:"",endTime:""},tempSingleDate:"",tempRange:{before:"",after:""}}),watch:{date:{immediate:!0,handler(e){this.range||(this.tempSingleDate=e,setTimeout((()=>{this.init(e)}),100))}},defTime:{immediate:!0,handler(e){this.range?(this.timeRange.startTime=e.start,this.timeRange.endTime=e.end):this.time=e}},startDate(e){this.cale&&(this.cale.setStartDate(e),this.cale.setDate(this.nowDate.fullDate),this.weeks=this.cale.weeks)},endDate(e){this.cale&&(this.cale.setEndDate(e),this.cale.setDate(this.nowDate.fullDate),this.weeks=this.cale.weeks)},selected(e){this.cale&&(this.cale.setSelectInfo(this.nowDate.fullDate,e),this.weeks=this.cale.weeks)},pleStatus:{immediate:!0,handler(e){const{before:t,after:n,fulldate:a,which:i}=e;this.tempRange.before=t,this.tempRange.after=n,setTimeout((()=>{if(a)if(this.cale.setHoverMultiple(a),t&&n){if(this.cale.lastHover=!0,this.rangeWithinMonth(n,t))return;this.setDate(t)}else this.cale.setMultiple(a),this.setDate(this.nowDate.fullDate),this.calendar.fullDate="",this.cale.lastHover=!1;else{if(!this.cale)return;this.cale.setDefaultMultiple(t,n),"left"===i&&t?(this.setDate(t),this.weeks=this.cale.weeks):n&&(this.setDate(n),this.weeks=this.cale.weeks),this.cale.lastHover=!0}}),16)}}},computed:{timepickerStartTime(){return(this.range?this.tempRange.before:this.calendar.fullDate)===this.startDate?this.selectableTimes.start:""},timepickerEndTime(){return(this.range?this.tempRange.after:this.calendar.fullDate)===this.endDate?this.selectableTimes.end:""},selectDateText:()=>t$2("uni-datetime-picker.selectDate"),startDateText(){return this.startPlaceholder||t$2("uni-datetime-picker.startDate")},endDateText(){return this.endPlaceholder||t$2("uni-datetime-picker.endDate")},okText:()=>t$2("uni-datetime-picker.ok"),yearText:()=>t$2("uni-datetime-picker.year"),monthText:()=>t$2("uni-datetime-picker.month"),MONText:()=>t$2("uni-calender.MON"),TUEText:()=>t$2("uni-calender.TUE"),WEDText:()=>t$2("uni-calender.WED"),THUText:()=>t$2("uni-calender.THU"),FRIText:()=>t$2("uni-calender.FRI"),SATText:()=>t$2("uni-calender.SAT"),SUNText:()=>t$2("uni-calender.SUN"),confirmText:()=>t$2("uni-calender.confirm")},created(){this.cale=new Calendar$1({selected:this.selected,startDate:this.startDate,endDate:this.endDate,range:this.range}),this.init(this.date)},methods:{leaveCale(){this.firstEnter=!0},handleMouse(e){if(e.disable)return;if(this.cale.lastHover)return;let{before:t,after:n}=this.cale.multipleStatus;t&&(this.calendar=e,this.cale.setHoverMultiple(this.calendar.fullDate),this.weeks=this.cale.weeks,this.firstEnter&&(this.$emit("firstEnterCale",this.cale.multipleStatus),this.firstEnter=!1))},rangeWithinMonth(e,t){const[n,a]=e.split("-"),[i,o]=t.split("-");return n===i&&a===o},maskClick(){this.close(),this.$emit("maskClose")},clearCalender(){this.range?(this.timeRange.startTime="",this.timeRange.endTime="",this.tempRange.before="",this.tempRange.after="",this.cale.multipleStatus.before="",this.cale.multipleStatus.after="",this.cale.multipleStatus.data=[],this.cale.lastHover=!1):(this.time="",this.tempSingleDate=""),this.calendar.fullDate="",this.setDate(new Date)},bindDateChange(e){const t=e.detail.value+"-1";this.setDate(t)},init(e){if(this.cale&&(this.cale.setDate(e||new Date),this.weeks=this.cale.weeks,this.nowDate=this.cale.getInfo(e),this.calendar={...this.nowDate},!e&&(this.calendar.fullDate="",this.defaultValue&&!this.range))){const e=new Date(this.defaultValue),t=getDate(e),n=e.getFullYear(),a=e.getMonth()+1,i=e.getDate(),o=e.getDay();this.calendar={fullDate:t,year:n,month:a,date:i,day:o},this.tempSingleDate=t,this.time=getTime(e,this.hideSecond)}},open(){this.clearDate&&!this.insert&&(this.cale.cleanMultipleStatus(),this.init(this.date)),this.show=!0,this.$nextTick((()=>{setTimeout((()=>{this.aniMaskShow=!0}),50)}))},close(){this.aniMaskShow=!1,this.$nextTick((()=>{setTimeout((()=>{this.show=!1,this.$emit("close")}),300)}))},confirm(){this.setEmit("confirm"),this.close()},change(){this.insert&&this.setEmit("change")},monthSwitch(){let{year:e,month:t}=this.nowDate;this.$emit("monthSwitch",{year:e,month:Number(t)})},setEmit(e){this.range||(this.calendar.fullDate||(this.calendar=this.cale.getInfo(new Date),this.tempSingleDate=this.calendar.fullDate),this.hasTime&&!this.time&&(this.time=getTime(new Date,this.hideSecond)));let{year:t,month:n,date:a,fullDate:i,extraInfo:o}=this.calendar;this.$emit(e,{range:this.cale.multipleStatus,year:t,month:n,date:a,time:this.time,timeRange:this.timeRange,fulldate:i,extraInfo:o||{}})},choiceDate(e){if(e.disable)return;this.calendar=e,this.calendar.userChecked=!0,this.cale.setMultiple(this.calendar.fullDate,!0),this.weeks=this.cale.weeks,this.tempSingleDate=this.calendar.fullDate;const t=new Date(this.cale.multipleStatus.before).getTime(),n=new Date(this.cale.multipleStatus.after).getTime();t>n&&n?(this.tempRange.before=this.cale.multipleStatus.after,this.tempRange.after=this.cale.multipleStatus.before):(this.tempRange.before=this.cale.multipleStatus.before,this.tempRange.after=this.cale.multipleStatus.after),this.change()},changeMonth(e){let t;"pre"===e?t=this.cale.getPreMonthObj(this.nowDate.fullDate).fullDate:"next"===e&&(t=this.cale.getNextMonthObj(this.nowDate.fullDate).fullDate),this.setDate(t),this.monthSwitch()},setDate(e){this.cale.setDate(e),this.weeks=this.cale.weeks,this.nowDate=this.cale.getInfo(e)}}};function _sfc_render$i(e,t,n,a,i,o){const r=index$g,s=index$i,l=index$7,c=resolveComponent("calendar-item"),d=resolveComponent("time-picker"),u=resolveEasycom(resolveDynamicComponent("uni-icons"),__easycom_3$3);return openBlock(),createBlock(r,{class:"uni-calendar",onMouseleave:o.leaveCale},{default:withCtx((()=>[!n.insert&&i.show?(openBlock(),createBlock(r,{key:0,class:normalizeClass(["uni-calendar__mask",{"uni-calendar--mask-show":i.aniMaskShow}]),onClick:o.maskClick},null,8,["class","onClick"])):createCommentVNode("",!0),n.insert||i.show?(openBlock(),createBlock(r,{key:1,class:normalizeClass(["uni-calendar__content",{"uni-calendar--fixed":!n.insert,"uni-calendar--ani-show":i.aniMaskShow,"uni-calendar__content-mobile":i.aniMaskShow}])},{default:withCtx((()=>[createVNode(r,{class:normalizeClass(["uni-calendar__header",{"uni-calendar__header-mobile":!n.insert}])},{default:withCtx((()=>[createVNode(r,{class:"uni-calendar__header-btn-box",onClick:t[0]||(t[0]=withModifiers((e=>o.changeMonth("pre")),["stop"]))},{default:withCtx((()=>[createVNode(r,{class:"uni-calendar__header-btn uni-calendar--left"})])),_:1}),createVNode(l,{mode:"date",value:n.date,fields:"month",onChange:o.bindDateChange},{default:withCtx((()=>[createVNode(s,{class:"uni-calendar__header-text"},{default:withCtx((()=>[createTextVNode(toDisplayString((i.nowDate.year||"")+o.yearText+(i.nowDate.month||"")+o.monthText),1)])),_:1})])),_:1},8,["value","onChange"]),createVNode(r,{class:"uni-calendar__header-btn-box",onClick:t[1]||(t[1]=withModifiers((e=>o.changeMonth("next")),["stop"]))},{default:withCtx((()=>[createVNode(r,{class:"uni-calendar__header-btn uni-calendar--right"})])),_:1}),n.insert?createCommentVNode("",!0):(openBlock(),createBlock(r,{key:0,class:"dialog-close",onClick:o.close},{default:withCtx((()=>[createVNode(r,{class:"dialog-close-plus","data-id":"close"}),createVNode(r,{class:"dialog-close-plus dialog-close-rotate","data-id":"close"})])),_:1},8,["onClick"]))])),_:1},8,["class"]),createVNode(r,{class:"uni-calendar__box"},{default:withCtx((()=>[n.showMonth?(openBlock(),createBlock(r,{key:0,class:"uni-calendar__box-bg"},{default:withCtx((()=>[createVNode(s,{class:"uni-calendar__box-bg-text"},{default:withCtx((()=>[createTextVNode(toDisplayString(i.nowDate.month),1)])),_:1})])),_:1})):createCommentVNode("",!0),createVNode(r,{class:"uni-calendar__weeks",style:{"padding-bottom":"7px"}},{default:withCtx((()=>[createVNode(r,{class:"uni-calendar__weeks-day"},{default:withCtx((()=>[createVNode(s,{class:"uni-calendar__weeks-day-text"},{default:withCtx((()=>[createTextVNode(toDisplayString(o.SUNText),1)])),_:1})])),_:1}),createVNode(r,{class:"uni-calendar__weeks-day"},{default:withCtx((()=>[createVNode(s,{class:"uni-calendar__weeks-day-text"},{default:withCtx((()=>[createTextVNode(toDisplayString(o.MONText),1)])),_:1})])),_:1}),createVNode(r,{class:"uni-calendar__weeks-day"},{default:withCtx((()=>[createVNode(s,{class:"uni-calendar__weeks-day-text"},{default:withCtx((()=>[createTextVNode(toDisplayString(o.TUEText),1)])),_:1})])),_:1}),createVNode(r,{class:"uni-calendar__weeks-day"},{default:withCtx((()=>[createVNode(s,{class:"uni-calendar__weeks-day-text"},{default:withCtx((()=>[createTextVNode(toDisplayString(o.WEDText),1)])),_:1})])),_:1}),createVNode(r,{class:"uni-calendar__weeks-day"},{default:withCtx((()=>[createVNode(s,{class:"uni-calendar__weeks-day-text"},{default:withCtx((()=>[createTextVNode(toDisplayString(o.THUText),1)])),_:1})])),_:1}),createVNode(r,{class:"uni-calendar__weeks-day"},{default:withCtx((()=>[createVNode(s,{class:"uni-calendar__weeks-day-text"},{default:withCtx((()=>[createTextVNode(toDisplayString(o.FRIText),1)])),_:1})])),_:1}),createVNode(r,{class:"uni-calendar__weeks-day"},{default:withCtx((()=>[createVNode(s,{class:"uni-calendar__weeks-day-text"},{default:withCtx((()=>[createTextVNode(toDisplayString(o.SATText),1)])),_:1})])),_:1})])),_:1}),(openBlock(!0),createElementBlock(Fragment,null,renderList(i.weeks,((e,t)=>(openBlock(),createBlock(r,{class:"uni-calendar__weeks",key:t},{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e,((e,t)=>(openBlock(),createBlock(r,{class:"uni-calendar__weeks-item",key:t},{default:withCtx((()=>[createVNode(c,{class:"uni-calendar-item--hook",weeks:e,calendar:i.calendar,selected:n.selected,checkHover:n.range,onChange:o.choiceDate,onHandleMouse:o.handleMouse},null,8,["weeks","calendar","selected","checkHover","onChange","onHandleMouse"])])),_:2},1024)))),128))])),_:2},1024)))),128))])),_:1}),n.insert||n.range||!n.hasTime?createCommentVNode("",!0):(openBlock(),createBlock(r,{key:0,class:"uni-date-changed uni-calendar--fixed-top",style:{padding:"0 80px"}},{default:withCtx((()=>[createVNode(r,{class:"uni-date-changed--time-date"},{default:withCtx((()=>[createTextVNode(toDisplayString(i.tempSingleDate?i.tempSingleDate:o.selectDateText),1)])),_:1}),createVNode(d,{type:"time",start:o.timepickerStartTime,end:o.timepickerEndTime,modelValue:i.time,"onUpdate:modelValue":t[2]||(t[2]=e=>i.time=e),disabled:!i.tempSingleDate,border:!1,"hide-second":n.hideSecond,class:"time-picker-style"},null,8,["start","end","modelValue","disabled","hide-second"])])),_:1})),!n.insert&&n.range&&n.hasTime?(openBlock(),createBlock(r,{key:1,class:"uni-date-changed uni-calendar--fixed-top"},{default:withCtx((()=>[createVNode(r,{class:"uni-date-changed--time-start"},{default:withCtx((()=>[createVNode(r,{class:"uni-date-changed--time-date"},{default:withCtx((()=>[createTextVNode(toDisplayString(i.tempRange.before?i.tempRange.before:o.startDateText),1)])),_:1}),createVNode(d,{type:"time",start:o.timepickerStartTime,modelValue:i.timeRange.startTime,"onUpdate:modelValue":t[3]||(t[3]=e=>i.timeRange.startTime=e),border:!1,"hide-second":n.hideSecond,disabled:!i.tempRange.before,class:"time-picker-style"},null,8,["start","modelValue","hide-second","disabled"])])),_:1}),createVNode(r,{style:{"line-height":"50px"}},{default:withCtx((()=>[createVNode(u,{type:"arrowthinright",color:"#999"})])),_:1}),createVNode(r,{class:"uni-date-changed--time-end"},{default:withCtx((()=>[createVNode(r,{class:"uni-date-changed--time-date"},{default:withCtx((()=>[createTextVNode(toDisplayString(i.tempRange.after?i.tempRange.after:o.endDateText),1)])),_:1}),createVNode(d,{type:"time",end:o.timepickerEndTime,modelValue:i.timeRange.endTime,"onUpdate:modelValue":t[4]||(t[4]=e=>i.timeRange.endTime=e),border:!1,"hide-second":n.hideSecond,disabled:!i.tempRange.after,class:"time-picker-style"},null,8,["end","modelValue","hide-second","disabled"])])),_:1})])),_:1})):createCommentVNode("",!0),n.insert?createCommentVNode("",!0):(openBlock(),createBlock(r,{key:2,class:"uni-date-changed uni-date-btn--ok"},{default:withCtx((()=>[createVNode(r,{class:"uni-datetime-picker--btn",onClick:o.confirm},{default:withCtx((()=>[createTextVNode(toDisplayString(o.confirmText),1)])),_:1},8,["onClick"])])),_:1}))])),_:1},8,["class"])):createCommentVNode("",!0)])),_:1},8,["onMouseleave"])}const Calendar=_export_sfc(_sfc_main$z,[["render",_sfc_render$i],["__scopeId","data-v-2be715f4"]]),_sfc_main$y={name:"UniDatetimePicker",options:{virtualHost:!0},components:{Calendar:Calendar,TimePicker:TimePicker},data:()=>({isRange:!1,hasTime:!1,displayValue:"",inputDate:"",calendarDate:"",pickerTime:"",calendarRange:{startDate:"",startTime:"",endDate:"",endTime:""},displayRangeValue:{startDate:"",endDate:""},tempRange:{startDate:"",startTime:"",endDate:"",endTime:""},startMultipleStatus:{before:"",after:"",data:[],fulldate:""},endMultipleStatus:{before:"",after:"",data:[],fulldate:""},pickerVisible:!1,pickerPositionStyle:null,isEmitValue:!1,isPhone:!1,isFirstShow:!0,i18nT:()=>{}}),props:{type:{type:String,default:"datetime"},value:{type:[String,Number,Array,Date],default:""},modelValue:{type:[String,Number,Array,Date],default:""},start:{type:[Number,String],default:""},end:{type:[Number,String],default:""},returnType:{type:String,default:"string"},placeholder:{type:String,default:""},startPlaceholder:{type:String,default:""},endPlaceholder:{type:String,default:""},rangeSeparator:{type:String,default:"-"},border:{type:[Boolean],default:!0},disabled:{type:[Boolean],default:!1},clearIcon:{type:[Boolean],default:!0},hideSecond:{type:[Boolean],default:!1},defaultValue:{type:[String,Object,Array],default:""}},watch:{type:{immediate:!0,handler(e){this.hasTime=-1!==e.indexOf("time"),this.isRange=-1!==e.indexOf("range")}},modelValue:{immediate:!0,handler(e){this.isEmitValue?this.isEmitValue=!1:this.initPicker(e)}},start:{immediate:!0,handler(e){e&&(this.calendarRange.startDate=getDate(e),this.hasTime&&(this.calendarRange.startTime=getTime(e)))}},end:{immediate:!0,handler(e){e&&(this.calendarRange.endDate=getDate(e),this.hasTime&&(this.calendarRange.endTime=getTime(e,this.hideSecond)))}}},computed:{timepickerStartTime(){return(this.isRange?this.tempRange.startDate:this.inputDate)===this.calendarRange.startDate?this.calendarRange.startTime:""},timepickerEndTime(){return(this.isRange?this.tempRange.endDate:this.inputDate)===this.calendarRange.endDate?this.calendarRange.endTime:""},mobileCalendarTime(){const e={start:this.tempRange.startTime,end:this.tempRange.endTime};return this.isRange?e:this.pickerTime},mobSelectableTime(){return{start:this.calendarRange.startTime,end:this.calendarRange.endTime}},datePopupWidth(){return this.isRange?653:301},singlePlaceholderText(){return this.placeholder||("date"===this.type?this.selectDateText:this.selectDateTimeText)},startPlaceholderText(){return this.startPlaceholder||this.startDateText},endPlaceholderText(){return this.endPlaceholder||this.endDateText},selectDateText(){return this.i18nT("uni-datetime-picker.selectDate")},selectDateTimeText(){return this.i18nT("uni-datetime-picker.selectDateTime")},selectTimeText(){return this.i18nT("uni-datetime-picker.selectTime")},startDateText(){return this.startPlaceholder||this.i18nT("uni-datetime-picker.startDate")},startTimeText(){return this.i18nT("uni-datetime-picker.startTime")},endDateText(){return this.endPlaceholder||this.i18nT("uni-datetime-picker.endDate")},endTimeText(){return this.i18nT("uni-datetime-picker.endTime")},okText(){return this.i18nT("uni-datetime-picker.ok")},clearText(){return this.i18nT("uni-datetime-picker.clear")},showClearIcon(){return this.clearIcon&&!this.disabled&&(this.displayValue||this.displayRangeValue.startDate&&this.displayRangeValue.endDate)}},created(){this.initI18nT(),this.platform()},methods:{initI18nT(){const e=initVueI18n(i18nMessages);this.i18nT=e.t},initPicker(e){if(!e&&!this.defaultValue||Array.isArray(e)&&!e.length)this.$nextTick((()=>{this.clear(!1)}));else if(Array.isArray(e)||this.isRange){const[t,n]=e;if(!t&&!n)return;const a=getDate(t),i=getTime(t,this.hideSecond),o=getDate(n),r=getTime(n,this.hideSecond),s=a,l=o;this.displayRangeValue.startDate=this.tempRange.startDate=s,this.displayRangeValue.endDate=this.tempRange.endDate=l,this.hasTime&&(this.displayRangeValue.startDate=`${a} ${i}`,this.displayRangeValue.endDate=`${o} ${r}`,this.tempRange.startTime=i,this.tempRange.endTime=r);const c={before:a,after:o};this.startMultipleStatus=Object.assign({},this.startMultipleStatus,c,{which:"right"}),this.endMultipleStatus=Object.assign({},this.endMultipleStatus,c,{which:"left"})}else e?(this.displayValue=this.inputDate=this.calendarDate=getDate(e),this.hasTime&&(this.pickerTime=getTime(e,this.hideSecond),this.displayValue=`${this.displayValue} ${this.pickerTime}`)):this.defaultValue&&(this.inputDate=this.calendarDate=getDate(this.defaultValue),this.hasTime&&(this.pickerTime=getTime(this.defaultValue,this.hideSecond)))},updateLeftCale(e){const t=this.$refs.left;t.cale.setHoverMultiple(e.after),t.setDate(this.$refs.left.nowDate.fullDate)},updateRightCale(e){const t=this.$refs.right;t.cale.setHoverMultiple(e.after),t.setDate(this.$refs.right.nowDate.fullDate)},platform(){if("undefined"!=typeof navigator)return void(this.isPhone=-1!==navigator.userAgent.toLowerCase().indexOf("mobile"));const{windowWidth:e}=getSystemInfoSync();this.isPhone=e<=500,this.windowWidth=e},show(){if(this.$emit("show"),this.disabled)return;if(this.platform(),this.isPhone)return void setTimeout((()=>{this.$refs.mobile.open()}),0);this.pickerPositionStyle={top:"10px"};createSelectorQuery().in(this).select(".uni-date-editor").boundingClientRect((e=>{this.windowWidth-e.left<this.datePopupWidth&&(this.pickerPositionStyle.right=0)})).exec(),setTimeout((()=>{if(this.pickerVisible=!this.pickerVisible,!this.isPhone&&this.isRange&&this.isFirstShow){this.isFirstShow=!1;const{startDate:e,endDate:t}=this.calendarRange;e&&t?this.diffDate(e,t)<30&&this.$refs.right.changeMonth("pre"):(this.$refs.right.changeMonth("next"),this.isPhone&&(this.$refs.right.cale.lastHover=!1))}}),50)},close(){setTimeout((()=>{this.pickerVisible=!1,this.$emit("maskClick",this.value),this.$refs.mobile&&this.$refs.mobile.close()}),20)},setEmit(e){"timestamp"!==this.returnType&&"date"!==this.returnType||(Array.isArray(e)?(this.hasTime||(e[0]=e[0]+" 00:00:00",e[1]=e[1]+" 00:00:00"),e[0]=this.createTimestamp(e[0]),e[1]=this.createTimestamp(e[1]),"date"===this.returnType&&(e[0]=new Date(e[0]),e[1]=new Date(e[1]))):(this.hasTime||(e+=" 00:00:00"),e=this.createTimestamp(e),"date"===this.returnType&&(e=new Date(e)))),this.$emit("update:modelValue",e),this.$emit("input",e),this.$emit("change",e),this.isEmitValue=!0},createTimestamp:e=>(e=fixIosDateFormat(e),Date.parse(new Date(e))),singleChange(e){this.calendarDate=this.inputDate=e.fulldate,this.hasTime||this.confirmSingleChange()},confirmSingleChange(){if(!checkDate(this.inputDate)){const e=new Date;this.calendarDate=this.inputDate=getDate(e),this.pickerTime=getTime(e,this.hideSecond)}let e,t,n=!1;if(this.start){let a=this.start;"number"==typeof this.start&&(a=getDateTime(this.start,this.hideSecond)),[e,t]=a.split(" "),this.start&&!dateCompare(e,this.inputDate)&&(n=!0,this.inputDate=e)}let a,i,o=!1;if(this.end){let e=this.end;"number"==typeof this.end&&(e=getDateTime(this.end,this.hideSecond)),[a,i]=e.split(" "),this.end&&!dateCompare(this.inputDate,a)&&(o=!0,this.inputDate=a)}this.hasTime?(n&&(this.pickerTime=t||getDefaultSecond(this.hideSecond)),o&&(this.pickerTime=i||getDefaultSecond(this.hideSecond)),this.pickerTime||(this.pickerTime=getTime(Date.now(),this.hideSecond)),this.displayValue=`${this.inputDate} ${this.pickerTime}`):this.displayValue=this.inputDate,this.setEmit(this.displayValue),this.pickerVisible=!1},leftChange(e){const{before:t,after:n}=e.range;this.rangeChange(t,n);const a={before:e.range.before,after:e.range.after,data:e.range.data,fulldate:e.fulldate};this.startMultipleStatus=Object.assign({},this.startMultipleStatus,a)},rightChange(e){const{before:t,after:n}=e.range;this.rangeChange(t,n);const a={before:e.range.before,after:e.range.after,data:e.range.data,fulldate:e.fulldate};this.endMultipleStatus=Object.assign({},this.endMultipleStatus,a)},mobileChange(e){if(this.isRange){const{before:t,after:n}=e.range;if(!t)return;if(this.handleStartAndEnd(t,n,!0),this.hasTime){const{startTime:t,endTime:n}=e.timeRange;this.tempRange.startTime=t,this.tempRange.endTime=n}this.confirmRangeChange()}else this.hasTime?this.displayValue=e.fulldate+" "+e.time:this.displayValue=e.fulldate,this.setEmit(this.displayValue);this.$refs.mobile.close()},rangeChange(e,t){e&&t&&(this.handleStartAndEnd(e,t,!0),this.hasTime||this.confirmRangeChange())},confirmRangeChange(){if(!this.tempRange.startDate||!this.tempRange.endDate)return void(this.pickerVisible=!1);let e,t;checkDate(this.tempRange.startDate)||(this.tempRange.startDate=getDate(Date.now())),checkDate(this.tempRange.endDate)||(this.tempRange.endDate=getDate(Date.now()));let n,a,i=!1,o=!1;if(this.start){let e=this.start;"number"==typeof this.start&&(e=getDateTime(this.start,this.hideSecond)),[n,a]=e.split(" "),this.start&&!dateCompare(this.start,this.tempRange.startDate)&&(i=!0,this.tempRange.startDate=n),this.start&&!dateCompare(this.start,this.tempRange.endDate)&&(o=!0,this.tempRange.endDate=n)}let r,s,l=!1,c=!1;if(this.end){let e=this.end;"number"==typeof this.end&&(e=getDateTime(this.end,this.hideSecond)),[r,s]=e.split(" "),this.end&&!dateCompare(this.tempRange.startDate,this.end)&&(l=!0,this.tempRange.startDate=r),this.end&&!dateCompare(this.tempRange.endDate,this.end)&&(c=!0,this.tempRange.endDate=r)}this.hasTime?(i?this.tempRange.startTime=a||getDefaultSecond(this.hideSecond):l&&(this.tempRange.startTime=s||getDefaultSecond(this.hideSecond)),this.tempRange.startTime||(this.tempRange.startTime=getTime(Date.now(),this.hideSecond)),o?this.tempRange.endTime=a||getDefaultSecond(this.hideSecond):c&&(this.tempRange.endTime=s||getDefaultSecond(this.hideSecond)),this.tempRange.endTime||(this.tempRange.endTime=getTime(Date.now(),this.hideSecond)),e=this.displayRangeValue.startDate=`${this.tempRange.startDate} ${this.tempRange.startTime}`,t=this.displayRangeValue.endDate=`${this.tempRange.endDate} ${this.tempRange.endTime}`):(e=this.displayRangeValue.startDate=this.tempRange.startDate,t=this.displayRangeValue.endDate=this.tempRange.endDate),dateCompare(e,t)||([e,t]=[t,e]),this.displayRangeValue.startDate=e,this.displayRangeValue.endDate=t;const d=[e,t];this.setEmit(d),this.pickerVisible=!1},handleStartAndEnd(e,t,n=!1){if(!e)return;t||(t=e);const a=n?"tempRange":"range",i=dateCompare(e,t);this[a].startDate=i?e:t,this[a].endDate=i?t:e},dateCompare:(e,t)=>(e=new Date(e.replace("-","/").replace("-","/")))<=(t=new Date(t.replace("-","/").replace("-","/"))),diffDate(e,t){e=new Date(e.replace("-","/").replace("-","/"));const n=((t=new Date(t.replace("-","/").replace("-","/")))-e)/864e5;return Math.abs(n)},clear(e=!0){this.isRange?(this.displayRangeValue.startDate="",this.displayRangeValue.endDate="",this.tempRange.startDate="",this.tempRange.startTime="",this.tempRange.endDate="",this.tempRange.endTime="",this.isPhone?this.$refs.mobile&&this.$refs.mobile.clearCalender():(this.$refs.left&&this.$refs.left.clearCalender(),this.$refs.right&&this.$refs.right.clearCalender(),this.$refs.right&&this.$refs.right.changeMonth("next")),e&&(this.$emit("change",[]),this.$emit("input",[]),this.$emit("update:modelValue",[]))):(this.displayValue="",this.inputDate="",this.pickerTime="",this.isPhone?this.$refs.mobile&&this.$refs.mobile.clearCalender():this.$refs.pcSingle&&this.$refs.pcSingle.clearCalender(),e&&(this.$emit("change",""),this.$emit("input",""),this.$emit("update:modelValue","")))}}};function _sfc_render$h(e,t,n,a,i,o){const r=resolveEasycom(resolveDynamicComponent("uni-icons"),__easycom_3$3),s=index$g,l=Input,c=resolveComponent("time-picker"),d=resolveComponent("Calendar"),u=index$i;return openBlock(),createBlock(s,{class:"uni-date"},{default:withCtx((()=>[createVNode(s,{class:"uni-date-editor",onClick:o.show},{default:withCtx((()=>[renderSlot(e.$slots,"default",{},(()=>[createVNode(s,{class:normalizeClass(["uni-date-editor--x",{"uni-date-editor--x__disabled":n.disabled,"uni-date-x--border":n.border}])},{default:withCtx((()=>[i.isRange?(openBlock(),createBlock(s,{key:1,class:"uni-date-x uni-date-range"},{default:withCtx((()=>[createVNode(r,{class:"icon-calendar",type:"calendar",color:"#c0c4cc",size:"22"}),createVNode(s,{class:"uni-date__x-input text-center"},{default:withCtx((()=>[createTextVNode(toDisplayString(i.displayRangeValue.startDate||o.startPlaceholderText),1)])),_:1}),createVNode(s,{class:"range-separator"},{default:withCtx((()=>[createTextVNode(toDisplayString(n.rangeSeparator),1)])),_:1}),createVNode(s,{class:"uni-date__x-input text-center"},{default:withCtx((()=>[createTextVNode(toDisplayString(i.displayRangeValue.endDate||o.endPlaceholderText),1)])),_:1})])),_:1})):(openBlock(),createBlock(s,{key:0,class:"uni-date-x uni-date-single"},{default:withCtx((()=>[createVNode(r,{class:"icon-calendar",type:"calendar",color:"#c0c4cc",size:"22"}),createVNode(s,{class:"uni-date__x-input"},{default:withCtx((()=>[createTextVNode(toDisplayString(i.displayValue||o.singlePlaceholderText),1)])),_:1})])),_:1})),o.showClearIcon?(openBlock(),createBlock(s,{key:2,class:"uni-date__icon-clear",onClick:withModifiers(o.clear,["stop"])},{default:withCtx((()=>[createVNode(r,{type:"clear",color:"#c0c4cc",size:"22"})])),_:1},8,["onClick"])):createCommentVNode("",!0)])),_:1},8,["class"])]),!0)])),_:3},8,["onClick"]),withDirectives(createVNode(s,{class:"uni-date-mask--pc",onClick:o.close},null,8,["onClick"]),[[vShow,i.pickerVisible]]),i.isPhone?createCommentVNode("",!0):withDirectives((openBlock(),createBlock(s,{key:0,ref:"datePicker",class:"uni-date-picker__container"},{default:withCtx((()=>[i.isRange?(openBlock(),createBlock(s,{key:1,class:"uni-date-range--x",style:normalizeStyle(i.pickerPositionStyle)},{default:withCtx((()=>[createVNode(s,{class:"uni-popper__arrow"}),i.hasTime?(openBlock(),createBlock(s,{key:0,class:"popup-x-header uni-date-changed"},{default:withCtx((()=>[createVNode(s,{class:"popup-x-header--datetime"},{default:withCtx((()=>[createVNode(l,{class:"uni-date__input uni-date-range__input",type:"text",modelValue:i.tempRange.startDate,"onUpdate:modelValue":t[3]||(t[3]=e=>i.tempRange.startDate=e),placeholder:o.startDateText},null,8,["modelValue","placeholder"]),createVNode(c,{type:"time",modelValue:i.tempRange.startTime,"onUpdate:modelValue":t[5]||(t[5]=e=>i.tempRange.startTime=e),start:o.timepickerStartTime,border:!1,disabled:!i.tempRange.startDate,hideSecond:n.hideSecond},{default:withCtx((()=>[createVNode(l,{class:"uni-date__input uni-date-range__input",type:"text",modelValue:i.tempRange.startTime,"onUpdate:modelValue":t[4]||(t[4]=e=>i.tempRange.startTime=e),placeholder:o.startTimeText,disabled:!i.tempRange.startDate},null,8,["modelValue","placeholder","disabled"])])),_:1},8,["modelValue","start","disabled","hideSecond"])])),_:1}),createVNode(r,{type:"arrowthinright",color:"#999",style:{"line-height":"40px"}}),createVNode(s,{class:"popup-x-header--datetime"},{default:withCtx((()=>[createVNode(l,{class:"uni-date__input uni-date-range__input",type:"text",modelValue:i.tempRange.endDate,"onUpdate:modelValue":t[6]||(t[6]=e=>i.tempRange.endDate=e),placeholder:o.endDateText},null,8,["modelValue","placeholder"]),createVNode(c,{type:"time",modelValue:i.tempRange.endTime,"onUpdate:modelValue":t[8]||(t[8]=e=>i.tempRange.endTime=e),end:o.timepickerEndTime,border:!1,disabled:!i.tempRange.endDate,hideSecond:n.hideSecond},{default:withCtx((()=>[createVNode(l,{class:"uni-date__input uni-date-range__input",type:"text",modelValue:i.tempRange.endTime,"onUpdate:modelValue":t[7]||(t[7]=e=>i.tempRange.endTime=e),placeholder:o.endTimeText,disabled:!i.tempRange.endDate},null,8,["modelValue","placeholder","disabled"])])),_:1},8,["modelValue","end","disabled","hideSecond"])])),_:1})])),_:1})):createCommentVNode("",!0),createVNode(s,{class:"popup-x-body"},{default:withCtx((()=>[createVNode(d,{ref:"left",showMonth:!1,"start-date":i.calendarRange.startDate,"end-date":i.calendarRange.endDate,range:!0,pleStatus:i.endMultipleStatus,onChange:o.leftChange,onFirstEnterCale:o.updateRightCale,style:{padding:"0 8px"}},null,8,["start-date","end-date","pleStatus","onChange","onFirstEnterCale"]),createVNode(d,{ref:"right",showMonth:!1,"start-date":i.calendarRange.startDate,"end-date":i.calendarRange.endDate,range:!0,onChange:o.rightChange,pleStatus:i.startMultipleStatus,onFirstEnterCale:o.updateLeftCale,style:{padding:"0 8px","border-left":"1px solid #F1F1F1"}},null,8,["start-date","end-date","onChange","pleStatus","onFirstEnterCale"])])),_:1}),i.hasTime?(openBlock(),createBlock(s,{key:1,class:"popup-x-footer"},{default:withCtx((()=>[createVNode(u,{onClick:o.clear},{default:withCtx((()=>[createTextVNode(toDisplayString(o.clearText),1)])),_:1},8,["onClick"]),createVNode(u,{class:"confirm-text",onClick:o.confirmRangeChange},{default:withCtx((()=>[createTextVNode(toDisplayString(o.okText),1)])),_:1},8,["onClick"])])),_:1})):createCommentVNode("",!0)])),_:1},8,["style"])):(openBlock(),createBlock(s,{key:0,class:"uni-date-single--x",style:normalizeStyle(i.pickerPositionStyle)},{default:withCtx((()=>[createVNode(s,{class:"uni-popper__arrow"}),i.hasTime?(openBlock(),createBlock(s,{key:0,class:"uni-date-changed popup-x-header"},{default:withCtx((()=>[createVNode(l,{class:"uni-date__input text-center",type:"text",modelValue:i.inputDate,"onUpdate:modelValue":t[0]||(t[0]=e=>i.inputDate=e),placeholder:o.selectDateText},null,8,["modelValue","placeholder"]),createVNode(c,{type:"time",modelValue:i.pickerTime,"onUpdate:modelValue":t[2]||(t[2]=e=>i.pickerTime=e),border:!1,disabled:!i.inputDate,start:o.timepickerStartTime,end:o.timepickerEndTime,hideSecond:n.hideSecond,style:{width:"100%"}},{default:withCtx((()=>[createVNode(l,{class:"uni-date__input text-center",type:"text",modelValue:i.pickerTime,"onUpdate:modelValue":t[1]||(t[1]=e=>i.pickerTime=e),placeholder:o.selectTimeText,disabled:!i.inputDate},null,8,["modelValue","placeholder","disabled"])])),_:1},8,["modelValue","disabled","start","end","hideSecond"])])),_:1})):createCommentVNode("",!0),createVNode(d,{ref:"pcSingle",showMonth:!1,"start-date":i.calendarRange.startDate,"end-date":i.calendarRange.endDate,date:i.calendarDate,onChange:o.singleChange,"default-value":n.defaultValue,style:{padding:"0 8px"}},null,8,["start-date","end-date","date","onChange","default-value"]),i.hasTime?(openBlock(),createBlock(s,{key:1,class:"popup-x-footer"},{default:withCtx((()=>[createVNode(u,{class:"confirm-text",onClick:o.confirmSingleChange},{default:withCtx((()=>[createTextVNode(toDisplayString(o.okText),1)])),_:1},8,["onClick"])])),_:1})):createCommentVNode("",!0)])),_:1},8,["style"]))])),_:1},512)),[[vShow,i.pickerVisible]]),i.isPhone?(openBlock(),createBlock(d,{key:1,ref:"mobile",clearDate:!1,date:i.calendarDate,defTime:o.mobileCalendarTime,"start-date":i.calendarRange.startDate,"end-date":i.calendarRange.endDate,selectableTimes:o.mobSelectableTime,startPlaceholder:n.startPlaceholder,endPlaceholder:n.endPlaceholder,"default-value":n.defaultValue,pleStatus:i.endMultipleStatus,showMonth:!1,range:i.isRange,hasTime:i.hasTime,insert:!1,hideSecond:n.hideSecond,onConfirm:o.mobileChange,onMaskClose:o.close},null,8,["date","defTime","start-date","end-date","selectableTimes","startPlaceholder","endPlaceholder","default-value","pleStatus","range","hasTime","hideSecond","onConfirm","onMaskClose"])):createCommentVNode("",!0)])),_:3})}const __easycom_0$4=_export_sfc(_sfc_main$y,[["render",_sfc_render$h],["__scopeId","data-v-2b46a83c"]]),_sfc_main$x={__name:"DateTime",props:{formProps:{type:Object,default:()=>({})},modelValue:String,readonly:Boolean},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=computed({get:()=>n.modelValue,set(e){"yyyy-mm-dd hh:mm"===n.formProps.format&&(e=e.substring(0,16)+":00"),s("update:modelValue",e)}}),i=computed((()=>(n.formProps.format||"").toLocaleLowerCase())),o=computed((()=>{const e=[],t=[];for(let n=1970;n<2500;n++)e.push(`${n}`);for(let n=1;n<13;n++)t.push(`${n>9?"":"0"}${n}`);return[e,t]})),r=computed((()=>{if(""===(n.modelValue||"")){const e=new Date;return"yyyy-mm"===n.formProps.format?[o.value[0].indexOf(`${e.getFullYear()}`),o.value[1].indexOf(`${e.getMonth()}`)]:[o.value[0].indexOf(`${e.getFullYear()}`)]}if("yyyy-mm"===n.formProps.format){let e=n.modelValue.split("-");return[o.value[0].indexOf(e[0]),o.value[1].indexOf(e[1])]}return[o.value[0].indexOf(n.modelValue)]})),s=t;function l(e){const t=e.detail.value;Array.isArray(t)?a.value=`${o.value[0][t[0]]}-${o.value[1][t[1]]}`:a.value=`${o.value[0][t]}`}return(t,s)=>{const c=resolveEasycom(resolveDynamicComponent("uni-datetime-picker"),__easycom_0$4),d=resolveEasycom(resolveDynamicComponent("uni-icons"),__easycom_3$3),u=index$7,m=index$g,p=index$i;return e.readonly?(openBlock(),createBlock(p,{key:1,class:"w-form-input-rv"},{default:withCtx((()=>[createTextVNode(toDisplayString(a.value),1)])),_:1})):(openBlock(),createBlock(m,{key:0,class:"w-form-timePicker","hover-class":"w-click-hover"},{default:withCtx((()=>[i.value.length>9?(openBlock(),createElementBlock(Fragment,{key:0},["yyyy-mm-dd hh:mm"===i.value?(openBlock(),createBlock(c,{key:0,class:"w-form-input",border:!1,type:"datetime","clear-icon":!1,modelValue:a.value,"onUpdate:modelValue":s[0]||(s[0]=e=>a.value=e)},null,8,["modelValue"])):(openBlock(),createBlock(c,{key:1,class:"w-form-input",border:!1,type:"date","clear-icon":!1,modelValue:a.value,"onUpdate:modelValue":s[1]||(s[1]=e=>a.value=e)},null,8,["modelValue"])),createVNode(d,{type:"right",size:20,color:"#999999"})],64)):"yyyy-mm"===n.formProps.format?(openBlock(),createBlock(u,{key:1,style:{width:"100%"},mode:"multiSelector",value:r.value,onChange:l,range:o.value},{default:withCtx((()=>[createVNode(ClickInput,{value:a.value,placeholder:n.formProps.placeholder||"请选择年月","pre-icon":"calendar"},null,8,["value","placeholder"])])),_:1},8,["value","range"])):"yyyy"===n.formProps.format?(openBlock(),createBlock(u,{key:2,style:{width:"100%"},mode:"selector",value:r.value,onChange:l,range:o.value[0]},{default:withCtx((()=>[createVNode(ClickInput,{value:a.value,placeholder:n.formProps.placeholder||"请选择年份","pre-icon":"calendar"},null,8,["value","placeholder"])])),_:1},8,["value","range"])):createCommentVNode("",!0)])),_:1}))}}},DateTime=_export_sfc(_sfc_main$x,[["__scopeId","data-v-1c8ce961"]]),_sfc_main$w={__name:"DateTimeRange",props:{formProps:{type:Object,default:()=>({})},modelValue:{type:Array,default:()=>[]},readonly:Boolean},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=computed({get:()=>n.modelValue,set(e){i("update:modelValue",e)}}),i=t;return(t,n)=>{const i=resolveEasycom(resolveDynamicComponent("uni-datetime-picker"),__easycom_0$4),o=resolveEasycom(resolveDynamicComponent("uni-icons"),__easycom_3$3),r=index$g,s=index$i;return e.readonly?(openBlock(),createBlock(s,{key:1,class:"w-form-input-rv"},{default:withCtx((()=>[createTextVNode(toDisplayString(a.value[0])+" ~ "+toDisplayString(a.value[1]),1)])),_:1})):(openBlock(),createBlock(r,{key:0,class:"w-form-timePicker","hover-class":"w-click-hover"},{default:withCtx((()=>[createVNode(i,{class:"w-form-input",border:!1,type:"datetimerange","clear-icon":!1,modelValue:a.value,"onUpdate:modelValue":n[0]||(n[0]=e=>a.value=e)},null,8,["modelValue"]),createVNode(o,{type:"right",size:20,color:"#999999"})])),_:1}))}}},DateTimeRange=_export_sfc(_sfc_main$w,[["__scopeId","data-v-48f6c927"]]),_sfc_main$v={name:"UniStatusBar",data:()=>({statusBarHeight:getSystemInfoSync().statusBarHeight+"px"})};function _sfc_render$g(e,t,n,a,i,o){const r=index$g;return openBlock(),createBlock(r,{style:normalizeStyle({height:i.statusBarHeight}),class:"uni-status-bar"},{default:withCtx((()=>[renderSlot(e.$slots,"default",{},void 0,!0)])),_:3},8,["style"])}const statusBar=_export_sfc(_sfc_main$v,[["render",_sfc_render$g],["__scopeId","data-v-f73a050b"]]),getVal=e=>"number"==typeof e?e+"px":e,_sfc_main$u={name:"UniNavBar",components:{statusBar:statusBar},emits:["clickLeft","clickRight","clickTitle"],props:{dark:{type:Boolean,default:!1},title:{type:String,default:""},leftText:{type:String,default:""},rightText:{type:String,default:""},leftIcon:{type:String,default:""},rightIcon:{type:String,default:""},fixed:{type:[Boolean,String],default:!1},color:{type:String,default:""},backgroundColor:{type:String,default:""},statusBar:{type:[Boolean,String],default:!1},shadow:{type:[Boolean,String],default:!1},border:{type:[Boolean,String],default:!0},height:{type:[Number,String],default:44},leftWidth:{type:[Number,String],default:60},rightWidth:{type:[Number,String],default:60},stat:{type:[Boolean,String],default:""}},computed:{themeBgColor(){return this.dark?this.backgroundColor?this.backgroundColor:this.dark?"#333":"#FFF":this.backgroundColor||"#FFF"},themeColor(){return this.dark?this.color?this.color:this.dark?"#fff":"#333":this.color||"#333"},navbarHeight(){return getVal(this.height)},leftIconWidth(){return getVal(this.leftWidth)},rightIconWidth(){return getVal(this.rightWidth)}},mounted(){uni.report&&this.stat&&""!==this.title&&uni.report("title",this.title)},methods:{onClickLeft(){this.$emit("clickLeft")},onClickRight(){this.$emit("clickRight")},onClickTitle(){this.$emit("clickTitle")}}};function _sfc_render$f(e,t,n,a,i,o){const r=resolveComponent("status-bar"),s=resolveEasycom(resolveDynamicComponent("uni-icons"),__easycom_3$3),l=index$g,c=index$i;return openBlock(),createBlock(l,{class:normalizeClass(["uni-navbar",{"uni-dark":n.dark,"uni-nvue-fixed":n.fixed}])},{default:withCtx((()=>[createVNode(l,{class:normalizeClass(["uni-navbar__content",{"uni-navbar--fixed":n.fixed,"uni-navbar--shadow":n.shadow,"uni-navbar--border":n.border}]),style:normalizeStyle({"background-color":o.themeBgColor,"border-bottom-color":o.themeColor})},{default:withCtx((()=>[n.statusBar?(openBlock(),createBlock(r,{key:0})):createCommentVNode("",!0),createVNode(l,{style:normalizeStyle({color:o.themeColor,backgroundColor:o.themeBgColor,height:o.navbarHeight}),class:"uni-navbar__header"},{default:withCtx((()=>[createVNode(l,{onClick:o.onClickLeft,class:"uni-navbar__header-btns uni-navbar__header-btns-left",style:normalizeStyle({width:o.leftIconWidth})},{default:withCtx((()=>[renderSlot(e.$slots,"left",{},(()=>[n.leftIcon.length>0?(openBlock(),createBlock(l,{key:0,class:"uni-navbar__content_view"},{default:withCtx((()=>[createVNode(s,{color:o.themeColor,type:n.leftIcon,size:"20"},null,8,["color","type"])])),_:1})):createCommentVNode("",!0),n.leftText.length?(openBlock(),createBlock(l,{key:1,class:normalizeClass([{"uni-navbar-btn-icon-left":!n.leftIcon.length>0},"uni-navbar-btn-text"])},{default:withCtx((()=>[createVNode(c,{style:normalizeStyle({color:o.themeColor,fontSize:"12px"})},{default:withCtx((()=>[createTextVNode(toDisplayString(n.leftText),1)])),_:1},8,["style"])])),_:1},8,["class"])):createCommentVNode("",!0)]),!0)])),_:3},8,["onClick","style"]),createVNode(l,{class:"uni-navbar__header-container",onClick:o.onClickTitle},{default:withCtx((()=>[renderSlot(e.$slots,"default",{},(()=>[n.title.length>0?(openBlock(),createBlock(l,{key:0,class:"uni-navbar__header-container-inner"},{default:withCtx((()=>[createVNode(c,{class:"uni-nav-bar-text uni-ellipsis-1",style:normalizeStyle({color:o.themeColor})},{default:withCtx((()=>[createTextVNode(toDisplayString(n.title),1)])),_:1},8,["style"])])),_:1})):createCommentVNode("",!0)]),!0)])),_:3},8,["onClick"]),createVNode(l,{onClick:o.onClickRight,class:"uni-navbar__header-btns uni-navbar__header-btns-right",style:normalizeStyle({width:o.rightIconWidth})},{default:withCtx((()=>[renderSlot(e.$slots,"right",{},(()=>[n.rightIcon.length?(openBlock(),createBlock(l,{key:0},{default:withCtx((()=>[createVNode(s,{color:o.themeColor,type:n.rightIcon,size:"22"},null,8,["color","type"])])),_:1})):createCommentVNode("",!0),n.rightText.length&&!n.rightIcon.length?(openBlock(),createBlock(l,{key:1,class:"uni-navbar-btn-text"},{default:withCtx((()=>[createVNode(c,{class:"uni-nav-bar-right-text",style:normalizeStyle({color:o.themeColor})},{default:withCtx((()=>[createTextVNode(toDisplayString(n.rightText),1)])),_:1},8,["style"])])),_:1})):createCommentVNode("",!0)]),!0)])),_:3},8,["onClick","style"])])),_:3},8,["style"])])),_:3},8,["class","style"]),n.fixed?(openBlock(),createBlock(l,{key:0,class:"uni-navbar__placeholder"},{default:withCtx((()=>[n.statusBar?(openBlock(),createBlock(r,{key:0})):createCommentVNode("",!0),createVNode(l,{class:"uni-navbar__placeholder-view",style:normalizeStyle({height:o.navbarHeight})},null,8,["style"])])),_:1})):createCommentVNode("",!0)])),_:3},8,["class"])}const __easycom_0$3=_export_sfc(_sfc_main$u,[["render",_sfc_render$f],["__scopeId","data-v-cb44228b"]]),en={"uni-search-bar.cancel":"cancel","uni-search-bar.placeholder":"Search enter content"},zhHans={"uni-search-bar.cancel":"取消","uni-search-bar.placeholder":"请输入搜索内容"},zhHant={"uni-search-bar.cancel":"取消","uni-search-bar.placeholder":"請輸入搜索內容"},messages={en:en,"zh-Hans":zhHans,"zh-Hant":zhHant},{t:t$1}=initVueI18n(messages),_sfc_main$t={name:"UniSearchBar",emits:["input","update:modelValue","clear","cancel","confirm","blur","focus"],props:{placeholder:{type:String,default:""},radius:{type:[Number,String],default:5},clearButton:{type:String,default:"auto"},cancelButton:{type:String,default:"auto"},cancelText:{type:String,default:""},bgColor:{type:String,default:"#F8F8F8"},maxlength:{type:[Number,String],default:100},value:{type:[Number,String],default:""},modelValue:{type:[Number,String],default:""},focus:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},data:()=>({show:!1,showSync:!1,searchVal:""}),computed:{cancelTextI18n(){return this.cancelText||t$1("uni-search-bar.cancel")},placeholderText(){return this.placeholder||t$1("uni-search-bar.placeholder")}},watch:{modelValue:{immediate:!0,handler(e){this.searchVal=e,e&&(this.show=!0)}},focus:{immediate:!0,handler(e){if(e){if(this.readonly)return;this.show=!0,this.$nextTick((()=>{this.showSync=!0}))}}},searchVal(e,t){this.$emit("input",e),this.$emit("update:modelValue",e)}},methods:{searchClick(){this.readonly||this.show||(this.show=!0,this.$nextTick((()=>{this.showSync=!0})))},clear(){this.$emit("clear",{value:this.searchVal}),this.searchVal=""},cancel(){this.readonly||(this.$emit("cancel",{value:this.searchVal}),this.searchVal="",this.show=!1,this.showSync=!1,hideKeyboard())},confirm(){hideKeyboard(),this.$emit("confirm",{value:this.searchVal})},blur(){hideKeyboard(),this.$emit("blur",{value:this.searchVal})},emitFocus(e){this.$emit("focus",e.detail)}}};function _sfc_render$e(e,t,n,a,i,o){const r=resolveEasycom(resolveDynamicComponent("uni-icons"),__easycom_3$3),s=index$g,l=Input,c=index$i;return openBlock(),createBlock(s,{class:"uni-searchbar"},{default:withCtx((()=>[createVNode(s,{style:normalizeStyle({borderRadius:n.radius+"px",backgroundColor:n.bgColor}),class:"uni-searchbar__box",onClick:o.searchClick},{default:withCtx((()=>[createVNode(s,{class:"uni-searchbar__box-icon-search"},{default:withCtx((()=>[renderSlot(e.$slots,"searchIcon",{},(()=>[createVNode(r,{color:"#c0c4cc",size:"18",type:"search"})]),!0)])),_:3}),i.show||i.searchVal?(openBlock(),createBlock(l,{key:0,focus:i.showSync,disabled:n.readonly,placeholder:o.placeholderText,maxlength:n.maxlength,class:"uni-searchbar__box-search-input","confirm-type":"search",type:"text",modelValue:i.searchVal,"onUpdate:modelValue":t[0]||(t[0]=e=>i.searchVal=e),onConfirm:o.confirm,onBlur:o.blur,onFocus:o.emitFocus},null,8,["focus","disabled","placeholder","maxlength","modelValue","onConfirm","onBlur","onFocus"])):(openBlock(),createBlock(c,{key:1,class:"uni-searchbar__text-placeholder"},{default:withCtx((()=>[createTextVNode(toDisplayString(n.placeholder),1)])),_:1})),i.show&&("always"===n.clearButton||"auto"===n.clearButton&&""!==i.searchVal)&&!n.readonly?(openBlock(),createBlock(s,{key:2,class:"uni-searchbar__box-icon-clear",onClick:o.clear},{default:withCtx((()=>[renderSlot(e.$slots,"clearIcon",{},(()=>[createVNode(r,{color:"#c0c4cc",size:"20",type:"clear"})]),!0)])),_:3},8,["onClick"])):createCommentVNode("",!0)])),_:3},8,["style","onClick"]),"always"===n.cancelButton||i.show&&"auto"===n.cancelButton?(openBlock(),createBlock(c,{key:0,onClick:o.cancel,class:"uni-searchbar__cancel"},{default:withCtx((()=>[createTextVNode(toDisplayString(o.cancelTextI18n),1)])),_:1},8,["onClick"])):createCommentVNode("",!0)])),_:3})}const __easycom_0$2=_export_sfc(_sfc_main$t,[["render",_sfc_render$e],["__scopeId","data-v-087868e6"]]),_sfc_main$s={data:()=>({currentPage:""}),options:{virtualHost:!0},props:{to:{type:String,default:""},replace:{type:Boolean,default:!1}},inject:{uniBreadcrumb:{from:"uniBreadcrumb",default:null}},created(){const e=getCurrentPages$1(),t=e[e.length-1];t&&(this.currentPage=`/${t.route}`)},computed:{separator(){return this.uniBreadcrumb.separator},separatorClass(){return this.uniBreadcrumb.separatorClass}},methods:{navTo(){const{to:e}=this;e&&this.currentPage!==e&&(this.replace?redirectTo({url:e}):navigateTo({url:e}))}}};function _sfc_render$d(e,t,n,a,i,o){const r=index$g,s=index$i;return openBlock(),createBlock(r,{class:"uni-breadcrumb-item"},{default:withCtx((()=>[createVNode(r,{class:normalizeClass({"uni-breadcrumb-item--slot":!0,"uni-breadcrumb-item--slot-link":n.to&&i.currentPage!==n.to}),onClick:o.navTo},{default:withCtx((()=>[renderSlot(e.$slots,"default",{},void 0,!0)])),_:3},8,["class","onClick"]),o.separatorClass?(openBlock(),createElementBlock("i",{key:0,class:normalizeClass(["uni-breadcrumb-item--separator",o.separatorClass])},null,2)):(openBlock(),createBlock(s,{key:1,class:"uni-breadcrumb-item--separator"},{default:withCtx((()=>[createTextVNode(toDisplayString(o.separator),1)])),_:1}))])),_:3})}const __easycom_2$1=_export_sfc(_sfc_main$s,[["render",_sfc_render$d],["__scopeId","data-v-cdf21a5f"]]),_sfc_main$r={options:{virtualHost:!0},props:{separator:{type:String,default:"/"},separatorClass:{type:String,default:""}},provide(){return{uniBreadcrumb:this}}};function _sfc_render$c(e,t,n,a,i,o){const r=index$g;return openBlock(),createBlock(r,{class:"uni-breadcrumb"},{default:withCtx((()=>[renderSlot(e.$slots,"default",{},void 0,!0)])),_:3})}const __easycom_3$1=_export_sfc(_sfc_main$r,[["render",_sfc_render$c],["__scopeId","data-v-cb9222f6"]]),_sfc_main$q={name:"UniBadge",emits:["click"],props:{type:{type:String,default:"error"},inverted:{type:Boolean,default:!1},isDot:{type:Boolean,default:!1},maxNum:{type:Number,default:99},absolute:{type:String,default:""},offset:{type:Array,default:()=>[0,0]},text:{type:[String,Number],default:""},size:{type:String,default:"small"},customStyle:{type:Object,default:()=>({})}},data:()=>({}),computed:{width(){return 8*String(this.text).length+12},classNames(){const{inverted:e,type:t,size:n,absolute:a}=this;return[e?"uni-badge--"+t+"-inverted":"","uni-badge--"+t,"uni-badge--"+n,a?"uni-badge--absolute":""].join(" ")},positionStyle(){if(!this.absolute)return{};let e=this.width/2,t=10;this.isDot&&(e=5,t=5);const n=`${-e+this.offset[0]}px`,a=`${-t+this.offset[1]}px`,i={rightTop:{right:n,top:a},rightBottom:{right:n,bottom:a},leftBottom:{left:n,bottom:a},leftTop:{left:n,top:a}},o=i[this.absolute];return o||i.rightTop},dotStyle(){return this.isDot?{width:"10px",minWidth:"0",height:"10px",padding:"0",borderRadius:"10px"}:{}},displayValue(){const{isDot:e,text:t,maxNum:n}=this;return e?"":Number(t)>n?`${n}+`:t}},methods:{onClick(){this.$emit("click")}}};function _sfc_render$b(e,t,n,a,i,o){const r=index$i,s=index$g;return openBlock(),createBlock(s,{class:"uni-badge--x"},{default:withCtx((()=>[renderSlot(e.$slots,"default",{},void 0,!0),n.text?(openBlock(),createBlock(r,{key:0,class:normalizeClass([o.classNames,"uni-badge"]),style:normalizeStyle([o.positionStyle,n.customStyle,o.dotStyle]),onClick:t[0]||(t[0]=e=>o.onClick())},{default:withCtx((()=>[createTextVNode(toDisplayString(o.displayValue),1)])),_:1},8,["class","style"])):createCommentVNode("",!0)])),_:3})}const __easycom_4$2=_export_sfc(_sfc_main$q,[["render",_sfc_render$b],["__scopeId","data-v-871ec77f"]]),_sfc_main$p={name:"UniListItem",emits:["click","switchChange"],props:{direction:{type:String,default:"row"},title:{type:String,default:""},note:{type:String,default:""},ellipsis:{type:[Number,String],default:0},disabled:{type:[Boolean,String],default:!1},clickable:{type:Boolean,default:!1},showArrow:{type:[Boolean,String],default:!1},link:{type:[Boolean,String],default:!1},to:{type:String,default:""},showBadge:{type:[Boolean,String],default:!1},showSwitch:{type:[Boolean,String],default:!1},switchChecked:{type:[Boolean,String],default:!1},badgeText:{type:String,default:""},badgeType:{type:String,default:"success"},badgeStyle:{type:Object,default:()=>({})},rightText:{type:String,default:""},thumb:{type:String,default:""},thumbSize:{type:String,default:"base"},showExtraIcon:{type:[Boolean,String],default:!1},extraIcon:{type:Object,default:()=>({type:"",color:"#000000",size:20,customPrefix:""})},border:{type:Boolean,default:!0},customStyle:{type:Object,default:()=>({padding:"",backgroundColor:"#FFFFFF"})},keepScrollPosition:{type:Boolean,default:!1}},watch:{"customStyle.padding":{handler(e){"number"==typeof e&&(e+="");let t=e.split(" ");if(1===t.length){const e=t[0];this.padding={top:e,right:e,bottom:e,left:e}}else if(2===t.length){const[e,n]=t;this.padding={top:e,right:n,bottom:e,left:n}}else if(4===t.length){const[e,n,a,i]=t;this.padding={top:e,right:n,bottom:a,left:i}}},immediate:!0}},data:()=>({isFirstChild:!1,padding:{top:"",right:"",bottom:"",left:""}}),mounted(){this.list=this.getForm(),this.list&&(this.list.firstChildAppend||(this.list.firstChildAppend=!0,this.isFirstChild=!0))},methods:{getForm(e="uniList"){let t=this.$parent,n=t.$options.name;for(;n!==e;){if(t=t.$parent,!t)return!1;n=t.$options.name}return t},onClick(){""===this.to?(this.clickable||this.link)&&this.$emit("click",{data:{}}):this.openPage()},onSwitchChange(e){this.$emit("switchChange",e.detail)},openPage(){-1!==["navigateTo","redirectTo","reLaunch","switchTab"].indexOf(this.link)?this.pageApi(this.link):this.pageApi("navigateTo")},pageApi(e){let t={url:this.to,success:e=>{this.$emit("click",{data:e})},fail:e=>{this.$emit("click",{data:e})}};switch(e){case"navigateTo":default:navigateTo(t);break;case"redirectTo":redirectTo(t);break;case"reLaunch":reLaunch(t);break;case"switchTab":switchTab(t)}}}};function _sfc_render$a(e,t,n,a,i,o){const r=index$g,s=index$q,l=resolveEasycom(resolveDynamicComponent("uni-icons"),__easycom_3$3),c=index$i,d=resolveEasycom(resolveDynamicComponent("uni-badge"),__easycom_4$2),u=index$j;return openBlock(),createBlock(r,{class:normalizeClass([{"uni-list-item--disabled":n.disabled},"uni-list-item"]),style:normalizeStyle({"background-color":n.customStyle.backgroundColor}),"hover-class":!n.clickable&&!n.link||n.disabled||n.showSwitch?"":"uni-list-item--hover",onClick:o.onClick},{default:withCtx((()=>[i.isFirstChild?createCommentVNode("",!0):(openBlock(),createBlock(r,{key:0,class:normalizeClass(["border--left",{"uni-list--border":n.border}])},null,8,["class"])),createVNode(r,{class:normalizeClass(["uni-list-item__container",{"container--right":n.showArrow||n.link,"flex--direction":"column"===n.direction}]),style:normalizeStyle({paddingTop:i.padding.top,paddingLeft:i.padding.left,paddingRight:i.padding.right,paddingBottom:i.padding.bottom})},{default:withCtx((()=>[renderSlot(e.$slots,"header",{},(()=>[createVNode(r,{class:"uni-list-item__header"},{default:withCtx((()=>[n.thumb?(openBlock(),createBlock(r,{key:0,class:"uni-list-item__icon"},{default:withCtx((()=>[createVNode(s,{src:n.thumb,class:normalizeClass(["uni-list-item__icon-img",["uni-list--"+n.thumbSize]])},null,8,["src","class"])])),_:1})):n.showExtraIcon?(openBlock(),createBlock(r,{key:1,class:"uni-list-item__icon"},{default:withCtx((()=>[createVNode(l,{customPrefix:n.extraIcon.customPrefix,color:n.extraIcon.color,size:n.extraIcon.size,type:n.extraIcon.type},null,8,["customPrefix","color","size","type"])])),_:1})):createCommentVNode("",!0)])),_:1})]),!0),renderSlot(e.$slots,"body",{},(()=>[createVNode(r,{class:normalizeClass(["uni-list-item__content",{"uni-list-item__content--center":n.thumb||n.showExtraIcon||n.showBadge||n.showSwitch}])},{default:withCtx((()=>[n.title?(openBlock(),createBlock(c,{key:0,class:normalizeClass(["uni-list-item__content-title",[0!==n.ellipsis&&n.ellipsis<=2?"uni-ellipsis-"+n.ellipsis:""]])},{default:withCtx((()=>[createTextVNode(toDisplayString(n.title),1)])),_:1},8,["class"])):createCommentVNode("",!0),n.note?(openBlock(),createBlock(c,{key:1,class:"uni-list-item__content-note"},{default:withCtx((()=>[createTextVNode(toDisplayString(n.note),1)])),_:1})):createCommentVNode("",!0)])),_:1},8,["class"])]),!0),renderSlot(e.$slots,"footer",{},(()=>[n.rightText||n.showBadge||n.showSwitch?(openBlock(),createBlock(r,{key:0,class:normalizeClass(["uni-list-item__extra",{"flex--justify":"column"===n.direction}])},{default:withCtx((()=>[n.rightText?(openBlock(),createBlock(c,{key:0,class:"uni-list-item__extra-text"},{default:withCtx((()=>[createTextVNode(toDisplayString(n.rightText),1)])),_:1})):createCommentVNode("",!0),n.showBadge?(openBlock(),createBlock(d,{key:1,type:n.badgeType,text:n.badgeText,"custom-style":n.badgeStyle},null,8,["type","text","custom-style"])):createCommentVNode("",!0),n.showSwitch?(openBlock(),createBlock(u,{key:2,disabled:n.disabled,checked:n.switchChecked,onChange:o.onSwitchChange},null,8,["disabled","checked","onChange"])):createCommentVNode("",!0)])),_:1},8,["class"])):createCommentVNode("",!0)]),!0)])),_:3},8,["class","style"]),n.showArrow||n.link?(openBlock(),createBlock(l,{key:1,size:16,class:"uni-icon-wrapper",color:"#bbb",type:"arrowright"})):createCommentVNode("",!0)])),_:3},8,["class","style","hover-class","onClick"])}const __easycom_3=_export_sfc(_sfc_main$p,[["render",_sfc_render$a],["__scopeId","data-v-ae887389"]]),_sfc_main$o={name:"uniList","mp-weixin":{options:{multipleSlots:!1}},props:{stackFromEnd:{type:Boolean,default:!1},enableBackToTop:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},border:{type:Boolean,default:!0},renderReverse:{type:Boolean,default:!1}},created(){this.firstChildAppend=!1},methods:{loadMore(e){this.$emit("scrolltolower")},scroll(e){this.$emit("scroll",e)}}};function _sfc_render$9(e,t,n,a,i,o){const r=index$g;return openBlock(),createBlock(r,{class:"uni-list uni-border-top-bottom"},{default:withCtx((()=>[n.border?(openBlock(),createBlock(r,{key:0,class:"uni-list--border-top"})):createCommentVNode("",!0),renderSlot(e.$slots,"default",{},void 0,!0),n.border?(openBlock(),createBlock(r,{key:1,class:"uni-list--border-bottom"})):createCommentVNode("",!0)])),_:3})}const __easycom_4$1=_export_sfc(_sfc_main$o,[["render",_sfc_render$9],["__scopeId","data-v-1f7cd97b"]]),_imports_0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAoJJREFUaEPtWUFrE1EQnnnrRVuKmOTQW08i1kOv9WI8eRFUpMWbbgr1P2wsVmr2Pyg00WuL6KGXnmp7aKFQUFDBS+mpBZNIqVUpJG/kBbemSXY7b9+2deHtKZBvZr5vZt5783YRUv5gyvmDFXDWFUykAq7//bYAeUsCXOMIEgCfJIjFindpgYOPwhgLmPBrd4ngbRwiiHBv1su+i2Mb2BgLKJTqqwA0CgBbIOk1i4zAhwAwBIBr5WLmOssmBJSAgBq1fEt6Vp7KTXPIFGaq0yDwqcKWi1kjDkbGikChZAUYJdHI2FbArgEwHyXsIrbbKOfkicCk/iR2/fpVJPocJw+EOFzxMl/i2CY2CylHj2aqecfB+13TKOHFQ3JIu8FvNY02m/Tm1VTuvQl5ZWt8kEURiLND6QqyAmwFdHumA89uITXDk4M3dOIhQV7hCUF7sVa87E1OLC0BwSWE49gEowSfmADlHJu0HJugEARSdidOCCKkvKraiQvgZkdXpOvXlqyAsKwFF3Gd8p5ZBdxSdRIBRwnVq4+/T8hYgAS7IOnjOXHhxcti3w6H9GTp52BD/noMCJdJ4KBJjK7F1P7Kg0Pmnz7+zhH0uo7/YDvuXH9HBLj+jxzSwTcFHr5yfmOg39k/LsjennS+bv4eaTSoHwnHZ59k5qNsJp7XxwhpLqkYRwSoqVIIXFLOH9zJHMf98P+V9f0P2zsHI5yXW+0VTiKGFaDKYCvAaNawJNkWsi3EaJ+oJNkW+q9aKPUnscpm+1HPbM8WjBDmK152nGPj+rU5JBjjYNsxvWL0vFL2nEZDogXTKPf7WOCmNVJ0TqMxYrDvxLrZOi28FXBamQ6Lk/oK/AEhbpZPuPETegAAAABJRU5ErkJggg==",_imports_1="/assets/noUser-BfXkGn96.png",_sfc_main$n={__name:"Avatar",props:{type:{type:String,default:"user"},name:{type:String,default:"未知"},size:{type:Number,default:40},src:{type:String,default:void 0},bgc:{type:String,default:"#1989fa"},square:{type:Boolean,default:!1},showY:{type:Boolean,default:!1},showName:{type:Boolean,default:!0},closeable:{type:Boolean,default:!1},status:{type:String}},emits:["close"],setup(e,{emit:t}){const n=e,a=t,i=computed((()=>n.size/16)),o=computed((()=>{switch(n.type){case"user":return n.src;case"dept":return"/static/image/dept.png";default:return null}})),r=computed((()=>{switch(n.status){case"error":return{icon:"clear",color:"#ce4345"};case"pending":return{icon:"smallcircle",color:"#E79467"};case"success":return{icon:"checkbox-filled",color:"#5FB685"};case"cc":return{icon:"paperplane-filled",color:"#4C87F3"};case"comment":return{icon:"chat-filled",color:"#4478F7"};case"transfer":return{icon:"redo-filled",color:"#ce4345"};case"cancel":return{icon:"close",color:"#CDCDCD"};case"recall":return{icon:"undo-filled",color:"#ce4345"};case"leader":return{icon:"person-filled",color:"#E79467"};case"waiting":return{icon:"spinner-cycle",color:"#626D80"};default:return{}}}));return(t,n)=>{const s=index$q,l=index$g,c=resolveEasycom(resolveDynamicComponent("uni-icons"),__easycom_3$3);return openBlock(),createBlock(l,{class:normalizeClass({"w-avatar":!0,"show-y":e.showY})},{default:withCtx((()=>[createVNode(l,{class:"w-avatar-it",style:normalizeStyle({height:32*i.value+"rpx"})},{default:withCtx((()=>[e.src||"user"!==e.type?(openBlock(),createBlock(s,{key:0,class:"w-avatar-img",src:o.value,mode:"aspectFit",style:normalizeStyle({width:32*i.value+"rpx",height:32*i.value+"rpx"})},null,8,["src","style"])):(openBlock(),createBlock(l,{key:1,class:"w-avatar-t",style:normalizeStyle({width:32*i.value+"rpx",height:32*i.value+"rpx",fontSize:e.size/42*32+"rpx"})},{default:withCtx((()=>{return[createTextVNode(toDisplayString((t=e.name,t.length>2?t.slice(-2):t)),1)];var t})),_:1},8,["style"])),e.closeable?(openBlock(),createBlock(c,{key:2,class:"w-avatar-close",type:"clear",size:e.size-15,onClick:n[0]||(n[0]=e=>a("close"))},null,8,["size"])):createCommentVNode("",!0),(openBlock(),createBlock(c,{class:"w-avatar-status",key:e.status,type:r.value.icon,color:r.value.color,size:e.size-22},null,8,["type","color","size"]))])),_:1},8,["style"]),withDirectives(createVNode(l,{class:"w-avatar-name over-tip",style:normalizeStyle({width:32*(i.value+.6)+"rpx",fontSize:e.size/42*32+"rpx"})},{default:withCtx((()=>[createTextVNode(toDisplayString(e.name),1)])),_:1},8,["style"]),[[vShow,e.showName]])])),_:1},8,["class"])}}},Avatar=_export_sfc(_sfc_main$n,[["__scopeId","data-v-fedb02af"]]);function login(e){return request({url:`/sys/auth/login/ignore/${e}`})}function getOrgTree(e){return request({url:"/oa/org/tree",data:e})}function getUserByName(e){return request({url:"/oa/org/tree/user/search",data:e,header:{Tenantid:JSON.parse(getStorageSync("loginUser")).sn}})}function getDeptByName(e){return request({url:"/oa/org/tree/dept/search",data:e,header:{Tenantid:JSON.parse(getStorageSync("loginUser")).sn}})}function getEnterpriseByName(e){return request({url:"/oa/org/tree/enterprise/search",data:e,header:{Tenantid:JSON.parse(getStorageSync("loginUser")).sn}})}function getUserDepts(e){return request({url:`/oa/org/user/${e}/dept`})}function getUserAgent(){return request({url:"/oa/org/user/agent"})}function setUserAgent(e){return request({url:"/oa/org/user/agent",method:"PUT",data:e})}function cancelUserAgent(){return request({url:"/oa/org/user/agent",method:"DELETE"})}function getUserDetail(e){return request({url:`/oa/org/user/${e}/detail`,method:"GET"})}const _sfc_main$m={__name:"OrgPicker",props:{title:{default:"请选择",type:String},type:{default:"org",type:String},multiple:{default:!1,type:Boolean},selected:{default:()=>[],type:Array},position:{type:String,default:"right"},showNav:Boolean},emits:["ok"],setup(e,{expose:t,emit:n}){const a=e,i=ref(),o=ref(),r=getSystemInfoSync().windowHeight;ref(!1);const s=ref(!1),l=ref(null);l.value=new Map;const c=ref(0),d=ref(""),u=ref([]),m=ref([]),p=ref([{name:"组织",id:0}]),h=computed((()=>getSystemInfoSync().windowHeight-168-(a.showNav?44:0))),f=computed((()=>{const e=[];return l.value.forEach((t=>e.push({id:t.id,name:t.name,avatar:t.avatar,type:t.type}))),e}));computed((()=>l.value.size)),ref(!1);const g=computed((()=>""!==d.value.trim()?u.value:m.value)),y=n;function v(e){console.log(e),("dept"===e.type||"enterprise"===e.type)&&(c.value=e.id,p.value.push({name:e.name,id:e.id}),_())}function _(){const e=JSON.parse(getStorageSync("loginUser"));getOrgTree({deptId:c.value+"P"+e.sn,type:a.type}).then((e=>{m.value=e.data,m.value.forEach((e=>{e.id,e.type,e.selected=l.value.has(e.id+e.type)}))})).catch((e=>{}))}function b(){l.value.clear(),i.value.close()}function w(){0===f.value.length?showToast({icon:"none",title:"无选中项😥"}):(y("ok",f.value),b())}function S(e){if(console.log(e,"org"),"dept"===e.type&&"user"===a.type)return void v(e);const t=e.id+e.type;l.value.has(t)?(e.selected=!1,l.value.delete(t)):(a.multiple||(l.value.forEach((e=>e.selected=!1)),g.value.forEach((e=>e.selected=!1)),e.selected=!0,l.value.clear()),l.value.set(t,e),console.log(l.value,"selectedMap.value",a))}function C(){0===l.value.size?showToast({icon:"none",title:"没有选中的项"}):o.value.open()}return onBackPress((()=>function(){if(p.value.length>1)return p.value.length--,c.value=p.value[p.value.length-1].id,_(),!0;if(i.value.close instanceof Function)return i.value.close(),!1}())),onMounted((()=>{"dept"==a.type&&(p.value=[{name:"部门",id:0}])})),watch(d,(()=>{""!==d.value.trim()&&function(){u.value.length=0,console.log(a.type,"type");let e=null,t="";switch(a.type){case"user":t="userName",e=getUserByName;break;case"enterprise":t="enterpriseName",e=getEnterpriseByName;break;case"dept":t="deptName",e=getDeptByName}e({[t]:d.value.trim()}).then((e=>{u.value=e.data.map((e=>(e.selected=l.value.has(e.id+e.type),e)))})).catch((e=>{}))}()})),t({show:function(e=0){c.value=e,p.value[0].id=e,_(),i.value.open(a.position),(a.selected||[]).forEach((e=>{const t=Object.assign({},e);t.selected=!0,l.value.set(e.id+e.type,t)})),s.value=!0},close:b}),(t,n)=>{const u=resolveEasycom(resolveDynamicComponent("uni-nav-bar"),__easycom_0$3),y=resolveEasycom(resolveDynamicComponent("uni-search-bar"),__easycom_0$2),k=index$g,x=resolveEasycom(resolveDynamicComponent("uni-breadcrumb-item"),__easycom_2$1),T=resolveEasycom(resolveDynamicComponent("uni-breadcrumb"),__easycom_3$1),A=ScrollView,E=index$m,I=index$q,P=index$i,N=resolveEasycom(resolveDynamicComponent("uni-tag"),__easycom_1$1),O=resolveEasycom(resolveDynamicComponent("uni-icons"),__easycom_3$3),M=resolveEasycom(resolveDynamicComponent("uni-list-item"),__easycom_3),$=resolveEasycom(resolveDynamicComponent("uni-list"),__easycom_4$1),R=index$y,V=index$x,D=resolveEasycom(resolveDynamicComponent("uni-popup"),__easycom_7);return openBlock(),createElementBlock(Fragment,null,[createVNode(D,{ref_key:"orgPickerPopup",ref:i,class:"uni-popup",style:{"touch-action":"none"},catchtouchmove:!0,onClose:n[1]||(n[1]=e=>s.value.value=!1)},{default:withCtx((()=>[e.showNav?(openBlock(),createBlock(u,{key:0,statusBar:"",title:e.title,color:"#fff",backgroundColor:"#4C87F3"},null,8,["title"])):createCommentVNode("",!0),createVNode(k,{class:"w-orgPicker-popup",style:normalizeStyle({height:unref(r)+"px"})},{default:withCtx((()=>[createVNode(k,{style:{padding:"0 0 16rpx 0","background-color":"white"}},{default:withCtx((()=>[createVNode(k,{class:"search"},{default:withCtx((()=>[createVNode(y,{modelValue:d.value,"onUpdate:modelValue":n[0]||(n[0]=e=>d.value=e),bgColor:"#EEEEEE",radius:"5",placeholder:"搜索",clearButton:"auto",cancelButton:"none"},null,8,["modelValue"])])),_:1}),createVNode(k,{style:{padding:"6rpx 16rpx"}},{default:withCtx((()=>[createVNode(A,{"scroll-x":""},{default:withCtx((()=>[createVNode(T,{separator:">"},{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(p.value,((e,t)=>(openBlock(),createBlock(x,{key:t,onClick:n=>{return a=e.id,i=t,c.value=a,p.value.length=i+1,void _();var a,i}},{default:withCtx((()=>[createVNode(k,{style:normalizeStyle({color:t+1===p.value.length?"#989996":"#1E90FD","font-size":"32rpx"})},{default:withCtx((()=>[createTextVNode(toDisplayString(e.name),1)])),_:2},1032,["style"])])),_:2},1032,["onClick"])))),128))])),_:1})])),_:1})])),_:1})])),_:1}),m.value.length>0?(openBlock(),createBlock(A,{key:0,class:"w-org-list","scroll-y":"",style:normalizeStyle({height:h.value+"px"})},{default:withCtx((()=>[createVNode($,null,{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(g.value,((e,t)=>(openBlock(),createBlock(M,{clickable:"",class:"w-org-item",key:`${e.type}_${e.id}`,showArrow:"user"===a.type&&"user"!==e.type,onClick:t=>S(e)},createSlots({header:withCtx((()=>[createVNode(k,{style:{display:"flex","align-items":"center"}},{default:withCtx((()=>["user"!==a.type||"dept"!==e.type?(openBlock(),createBlock(E,{key:0,value:e.id,checked:e.selected,onClick:withModifiers((t=>S(e)),["stop"]),style:{transform:"scale(0.9)"}},null,8,["value","checked","onClick"])):createCommentVNode("",!0),createVNode(k,{class:"w-org-avatar"},{default:withCtx((()=>["user"===e.type?(openBlock(),createBlock(Avatar,{key:0,name:e.name,src:e.avatar,showName:!1},null,8,["name","src"])):(openBlock(),createBlock(I,{key:1,class:"w-dept-img","lazy-load":"",mode:"aspectFit",src:_imports_0}))])),_:2},1024)])),_:2},1024)])),body:withCtx((()=>[createVNode(k,{style:{flex:"1",display:"flex","align-items":"center"}},{default:withCtx((()=>[createVNode(P,{style:{display:"flex","align-items":"center","font-size":"32rpx"}},{default:withCtx((()=>[createTextVNode(toDisplayString(e.name),1)])),_:2},1024),e.isLeader?(openBlock(),createBlock(k,{key:0,style:{display:"flex","align-items":"center","margin-left":"16rpx"}},{default:withCtx((()=>[createVNode(N,{style:{"font-weight":"400"},type:"warning",size:"mini",text:"部门负责人",inverted:""})])),_:1})):createCommentVNode("",!0)])),_:2},1024)])),_:2},["user"!==a.type&&"user"!==e.type?{name:"footer",fn:withCtx((()=>[createVNode(k,{onClick:withModifiers((t=>v(e)),["stop"]),class:normalizeClass({"w-org-next":!0,"w-org-dis":!1})},{default:withCtx((()=>[createVNode(k,null,{default:withCtx((()=>[createTextVNode("下级")])),_:1}),createVNode(O,{type:"redo",size:20,color:"#4478F7"})])),_:2},1032,["onClick"])])),key:"0"}:void 0]),1032,["showArrow","onClick"])))),128))])),_:1})])),_:1},8,["style"])):(openBlock(),createBlock(k,{key:1,style:normalizeStyle({width:"100%",height:h.value+"px"})},{default:withCtx((()=>[createVNode(I,{mode:"aspectFit",style:{width:"100%"},src:_imports_1})])),_:1},8,["style"])),createVNode(k,{class:"w-orgPicker-options"},{default:withCtx((()=>[withDirectives(createVNode(R,null,{default:withCtx((()=>[createVNode(E,{checked:!1,style:{transform:"scale(0.8)"}}),createTextVNode(" 全选 ")])),_:1},512),[[vShow,a.multiple]]),createVNode(k,{onClick:C},{default:withCtx((()=>[createVNode(P,null,{default:withCtx((()=>[createTextVNode("已选 ["+toDisplayString(l.value.size)+"] 项 ",1)])),_:1}),createVNode(O,{type:"down",color:"#4478F7"})])),_:1}),createVNode(k,null,{default:withCtx((()=>[createVNode(V,{class:"w-button",style:{"margin-right":"10px"},type:"default",size:"mini",onClick:b},{default:withCtx((()=>[createTextVNode("取消")])),_:1}),createVNode(V,{class:"w-button",type:"primary",size:"mini",onClick:w},{default:withCtx((()=>[createTextVNode("确认")])),_:1})])),_:1})])),_:1})])),_:1},8,["style"])])),_:1},512),createVNode(D,{ref_key:"orgPickerSelectedPopup",ref:o,type:"bottom"},{default:withCtx((()=>[createVNode(k,{class:"w-orgPicker-selected"},{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(f.value,(e=>(openBlock(),createBlock(k,{class:"w-selected",key:`${e.type}_${e.id}`},{default:withCtx((()=>[createVNode(k,null,{default:withCtx((()=>["user"===e.type?(openBlock(),createBlock(Avatar,{key:0,type:e.type,closeable:e.enableEdit,src:e.avatar,size:25,name:e.name,showName:!1},null,8,["type","closeable","src","name"])):createCommentVNode("",!0)])),_:2},1024),createVNode(k,null,{default:withCtx((()=>[createTextVNode(toDisplayString(e.name),1)])),_:2},1024),createVNode(V,{size:"mini",onClick:t=>function(e){const t=e.id+e.type;l.value.get(t).selected=!1,l.value.delete(t),0===l.value.size&&o.value.close()}(e)},{default:withCtx((()=>[createTextVNode("移除")])),_:2},1032,["onClick"])])),_:2},1024)))),128))])),_:1})])),_:1},512)],64)}}},OrgPicker=_export_sfc(_sfc_main$m,[["__scopeId","data-v-d23ebe13"]]),_sfc_main$l={__name:"UserPicker",props:{formProps:{type:Object,default:()=>({})},modelValue:Object,readonly:Boolean,position:{type:String,default:"right"}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=computed({get:()=>n.modelValue,set(e){i("update:modelValue",e)}}),i=t,o=ref();function r(){n.readonly||o.value.show()}function s(e){a.value=e}return(t,i)=>{const l=index$i,c=index$g;return e.readonly?(openBlock(),createBlock(c,{key:1},{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(a.value||[],(e=>(openBlock(),createBlock(c,{style:{flex:"1",display:"flex","align-items":"center"},key:e.id},{default:withCtx((()=>[createVNode(Avatar,{name:e.name,src:e.avatar,size:25,showName:!1},null,8,["name","src"]),createVNode(l,{style:{"margin-left":"5px"}},{default:withCtx((()=>[createTextVNode(toDisplayString(e.name),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1})):(openBlock(),createBlock(c,{key:0},{default:withCtx((()=>[createVNode(ClickInput,{value:a.value,index:"name",onClick:r,disabled:e.readonly,placeholder:n.formProps.placeholder||"请选择人员","pre-icon":"personadd"},{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(a.value||[],(e=>(openBlock(),createBlock(c,{style:{flex:"1",display:"flex","align-items":"center"},key:e.id},{default:withCtx((()=>[createVNode(Avatar,{name:e.name,src:e.avatar,size:25,showName:!1},null,8,["name","src"]),createVNode(l,{style:{"margin-left":"5px"}},{default:withCtx((()=>[createTextVNode(toDisplayString(e.name),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1},8,["value","disabled","placeholder"]),createVNode(OrgPicker,{ref_key:"orgPicker",ref:o,position:e.position,multiple:n.formProps.multiple,type:"user",selected:a.value,onOk:s},null,8,["position","multiple","selected"])])),_:1}))}}},_sfc_main$k={__name:"DeptPicker",props:{formProps:{type:Object,default:()=>({})},modelValue:Object,readonly:Boolean},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=computed({get:()=>n.modelValue,set(e){i("update:modelValue",e)}}),i=t,o=ref();function r(){n.readonly||o.value.show()}function s(e){a.value=e}return(t,i)=>{const l=index$g;return openBlock(),createBlock(l,null,{default:withCtx((()=>[createVNode(ClickInput,{value:a.value,disabled:e.readonly,index:"name",onClick:r,placeholder:"请选择部门","pre-icon":"home"},null,8,["value","disabled"]),createVNode(OrgPicker,{ref_key:"orgPicker",ref:o,multiple:n.formProps.multiple,selected:a.value,type:"dept",onOk:s},null,8,["multiple","selected"])])),_:1})}}},_sfc_main$j={__name:"GroupPicker",props:{formProps:{type:Object,default:()=>({})},modelValue:Object,readonly:Boolean},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=computed({get:()=>n.modelValue,set(e){i("update:modelValue",e)}}),i=t,o=ref();function r(){console.log("点击了"),n.readonly||o.value.show()}function s(e){a.value=e}return(t,i)=>{const l=index$g;return openBlock(),createBlock(l,null,{default:withCtx((()=>[createVNode(ClickInput,{value:a.value,disabled:e.readonly,index:"name",onClick:r,placeholder:"请选择组织","pre-icon":"home"},null,8,["value","disabled"]),createVNode(OrgPicker,{ref_key:"orgPicker",ref:o,multiple:n.formProps.multiple,selected:a.value,type:"enterprise",onOk:s},null,8,["multiple","selected"])])),_:1})}}},_sfc_main$i={name:"UniRate",props:{isFill:{type:[Boolean,String],default:!0},color:{type:String,default:"#ececec"},activeColor:{type:String,default:"#ffca3e"},disabledColor:{type:String,default:"#c0c0c0"},size:{type:[Number,String],default:24},value:{type:[Number,String],default:0},modelValue:{type:[Number,String],default:0},max:{type:[Number,String],default:5},margin:{type:[Number,String],default:0},disabled:{type:[Boolean,String],default:!1},readonly:{type:[Boolean,String],default:!1},allowHalf:{type:[Boolean,String],default:!1},touchable:{type:[Boolean,String],default:!0}},data:()=>({valueSync:"",userMouseFristMove:!0,userRated:!1,userLastRate:1}),watch:{value(e){this.valueSync=Number(e)},modelValue(e){this.valueSync=Number(e)}},computed:{stars(){const e=this.valueSync?this.valueSync:0,t=[],n=Math.floor(e),a=Math.ceil(e);for(let i=0;i<this.max;i++)n>i?t.push({activeWitch:"100%"}):a-1===i?t.push({activeWitch:100*(e-n)+"%"}):t.push({activeWitch:"0"});return t},marginNumber(){return Number(this.margin)}},created(){this.valueSync=Number(this.value||this.modelValue),this._rateBoxLeft=0,this._oldValue=null},mounted(){setTimeout((()=>{this._getSize()}),100),this.PC=this.IsPC()},methods:{touchstart(e){if(this.IsPC())return;if(this.readonly||this.disabled)return;const{clientX:t,screenX:n}=e.changedTouches[0];this._getRateCount(t||n)},touchmove(e){if(this.IsPC())return;if(this.readonly||this.disabled||!this.touchable)return;const{clientX:t,screenX:n}=e.changedTouches[0];this._getRateCount(t||n)},mousedown(e){if(!this.IsPC())return;if(this.readonly||this.disabled)return;const{clientX:t}=e;this.userLastRate=this.valueSync,this._getRateCount(t),this.userRated=!0},mousemove(e){if(!this.IsPC())return;if(this.userRated)return;if(this.userMouseFristMove&&(console.log("---mousemove----",this.valueSync),this.userLastRate=this.valueSync,this.userMouseFristMove=!1),this.readonly||this.disabled||!this.touchable)return;const{clientX:t}=e;this._getRateCount(t)},mouseleave(e){this.IsPC()&&(this.readonly||this.disabled||!this.touchable||(this.userRated?this.userRated=!1:this.valueSync=this.userLastRate))},IsPC(){var e=navigator.userAgent,t=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],n=!0;for(let a=0;a<t.length-1;a++)if(e.indexOf(t[a])>0){n=!1;break}return n},_getRateCount(e){this._getSize();const t=Number(this.size);if(isNaN(t))return new Error("size 属性只能设置为数字");const n=e-this._rateBoxLeft;let a=parseInt(n/(t+this.marginNumber));a=a<0?0:a,a=a>this.max?this.max:a;const i=parseInt(n-(t+this.marginNumber)*a);let o=0;(this._oldValue!==a||this.PC)&&(this._oldValue=a,o=this.allowHalf?i>t/2?a+1:a+.5:a+1,o=Math.max(.5,Math.min(o,this.max)),this.valueSync=o,this._onChange())},_onChange(){this.$emit("input",this.valueSync),this.$emit("update:modelValue",this.valueSync),this.$emit("change",{value:this.valueSync})},_getSize(){createSelectorQuery().in(this).select(".uni-rate").boundingClientRect().exec((e=>{e&&(this._rateBoxLeft=e[0].left)}))}}};function _sfc_render$8(e,t,n,a,i,o){const r=resolveEasycom(resolveDynamicComponent("uni-icons"),__easycom_3$3),s=index$g;return openBlock(),createBlock(s,null,{default:withCtx((()=>[createVNode(s,{ref:"uni-rate",class:"uni-rate"},{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(o.stars,((e,t)=>(openBlock(),createBlock(s,{class:normalizeClass(["uni-rate__icon",{"uni-cursor-not-allowed":n.disabled}]),style:normalizeStyle({"margin-right":o.marginNumber+"px"}),key:t,onTouchstart:withModifiers(o.touchstart,["stop"]),onTouchmove:withModifiers(o.touchmove,["stop"]),onMousedown:withModifiers(o.mousedown,["stop"]),onMousemove:withModifiers(o.mousemove,["stop"]),onMouseleave:o.mouseleave},{default:withCtx((()=>[createVNode(r,{color:n.color,size:n.size,type:n.isFill?"star-filled":"star"},null,8,["color","size","type"]),createVNode(s,{style:normalizeStyle({width:e.activeWitch}),class:"uni-rate__icon-on"},{default:withCtx((()=>[createVNode(r,{color:n.disabled?n.disabledColor:n.activeColor,size:n.size,type:"star-filled"},null,8,["color","size"])])),_:2},1032,["style"])])),_:2},1032,["class","style","onTouchstart","onTouchmove","onMousedown","onMousemove","onMouseleave"])))),128))])),_:1},512)])),_:1})}const __easycom_0$1=_export_sfc(_sfc_main$i,[["render",_sfc_render$8],["__scopeId","data-v-06ce50f7"]]),_sfc_main$h={__name:"Score",props:{formProps:{type:Object,default:()=>({})},modelValue:{type:Number,default:0},readonly:Boolean},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=computed({get:()=>n.modelValue,set(e){i("update:modelValue",e)}}),i=t;return(t,i)=>{const o=resolveEasycom(resolveDynamicComponent("uni-rate"),__easycom_0$1),r=index$i,s=index$g;return openBlock(),createBlock(s,{style:{display:"flex","align-items":"center"}},{default:withCtx((()=>[createVNode(o,{disabled:e.readonly,max:n.formProps.max||5,"allow-half":n.formProps.enableHalf,activeColor:n.formProps.color,readonly:n.readonly,modelValue:a.value,"onUpdate:modelValue":i[0]||(i[0]=e=>a.value=e)},null,8,["disabled","max","allow-half","activeColor","readonly","modelValue"]),n.formProps.showScore?(openBlock(),createBlock(r,{key:0,style:{"margin-left":"5px"}},{default:withCtx((()=>[createTextVNode(toDisplayString(a.value),1)])),_:1})):createCommentVNode("",!0)])),_:1})}}},_sfc_main$g={__name:"Description",props:{formProps:{type:Object,default:()=>({})},modelValue:String,readonly:Boolean},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;computed({get:()=>n.modelValue,set(e){a("update:modelValue",e)}});const a=t;return(t,n)=>{const a=index$i;return openBlock(),createBlock(a,{style:{"font-size":"29rpx"}},{default:withCtx((()=>[createTextVNode(toDisplayString(e.formProps.placeholder),1)])),_:1})}}},_sfc_main$f={name:"uniFormsItem",options:{virtualHost:!0},provide(){return{uniFormItem:this}},inject:{form:{from:"uniForm",default:null}},props:{rules:{type:Array,default:()=>null},name:{type:[String,Array],default:""},required:{type:Boolean,default:!1},label:{type:String,default:""},labelWidth:{type:[String,Number],default:""},labelAlign:{type:String,default:""},errorMessage:{type:[String,Boolean],default:""},leftIcon:String,iconColor:{type:String,default:"#606266"}},data:()=>({errMsg:"",userRules:null,localLabelAlign:"left",localLabelWidth:"70px",localLabelPos:"left",border:!1,isFirstBorder:!1}),computed:{msg(){return this.errorMessage||this.errMsg}},watch:{"form.formRules"(e){this.init()},"form.labelWidth"(e){this.localLabelWidth=this._labelWidthUnit(e)},"form.labelPosition"(e){this.localLabelPos=this._labelPosition()},"form.labelAlign"(e){}},created(){this.init(!0),this.name&&this.form&&this.$watch((()=>this.form._getDataValue(this.name,this.form.localData)),((e,t)=>{if(!this.form._isEqual(e,t)){const t=this.itemSetValue(e);this.onFieldChange(t,!1)}}),{immediate:!1})},unmounted(){this.__isUnmounted=!0,this.unInit()},methods:{setRules(e=null){this.userRules=e,this.init(!1)},setValue(){},async onFieldChange(e,t=!0){const{formData:n,localData:a,errShowType:i,validateCheck:o,validateTrigger:r,_isRequiredField:s,_realName:l}=this.form,c=l(this.name);e||(e=this.form.formData[c]);const d=this.itemRules.rules&&this.itemRules.rules.length;if(!this.validator||!d||0===d)return;const u=s(this.itemRules.rules||[]);let m=null;return"bind"===r||t?(m=await this.validator.validateUpdate({[c]:e},n),u||void 0!==e&&""!==e||(m=null),m&&m.errorMessage?("undertext"===i&&(this.errMsg=m?m.errorMessage:""),"toast"===i&&showToast({title:m.errorMessage||"校验错误",icon:"none"}),"modal"===i&&showModal({title:"提示",content:m.errorMessage||"校验错误"})):this.errMsg="",o(m||null)):this.errMsg="",m||null},init(e=!1){const{validator:t,formRules:n,childrens:a,formData:i,localData:o,_realName:r,labelWidth:s,_getDataValue:l,_setDataValue:c}=this.form||{};if(this.localLabelAlign=this._justifyContent(),this.localLabelWidth=this._labelWidthUnit(s),this.localLabelPos=this._labelPosition(),this.form&&e&&a.push(this),!t||!n)return;this.form.isFirstBorder||(this.form.isFirstBorder=!0,this.isFirstBorder=!0),this.group&&(this.group.isFirstBorder||(this.group.isFirstBorder=!0,this.isFirstBorder=!0)),this.border=this.form.border;const d=r(this.name),u=this.userRules||this.rules;"object"==typeof n&&u&&(n[d]={rules:u},t.updateSchema(n));const m=n[d]||{};this.itemRules=m,this.validator=t,this.itemSetValue(l(this.name,o))},unInit(){if(this.form){const{childrens:e,formData:t,_realName:n}=this.form;e.forEach(((e,a)=>{e===this&&(this.form.childrens.splice(a,1),delete t[n(e.name)])}))}},itemSetValue(e){const t=this.form._realName(this.name),n=this.itemRules.rules||[],a=this.form._getValue(t,e,n);return this.form._setDataValue(t,this.form.formData,a),a},clearValidate(){this.errMsg=""},_isRequired(){return this.required},_justifyContent(){if(this.form){const{labelAlign:e}=this.form;let t=this.labelAlign?this.labelAlign:e;if("left"===t)return"flex-start";if("center"===t)return"center";if("right"===t)return"flex-end"}return"flex-start"},_labelWidthUnit(e){return this.num2px(this.labelWidth?this.labelWidth:e||(this.label?70:"auto"))},_labelPosition(){return this.form&&this.form.labelPosition||"left"},isTrigger:(e,t,n)=>"submit"!==e&&e?"bind":void 0===e?"bind"!==t?t?"submit":""===n?"bind":"submit":"bind":"submit",num2px:e=>"number"==typeof e?`${e}px`:e}};function _sfc_render$7(e,t,n,a,i,o){const r=index$i,s=index$g;return openBlock(),createBlock(s,{class:normalizeClass(["uni-forms-item",["is-direction-"+i.localLabelPos,i.border?"uni-forms-item--border":"",i.border&&i.isFirstBorder?"is-first-border":""]])},{default:withCtx((()=>[renderSlot(e.$slots,"label",{},(()=>[createVNode(s,{class:normalizeClass(["uni-forms-item__label",{"no-label":!n.label&&!n.required}]),style:normalizeStyle({width:i.localLabelWidth,justifyContent:i.localLabelAlign})},{default:withCtx((()=>[n.required?(openBlock(),createBlock(r,{key:0,class:"is-required"},{default:withCtx((()=>[createTextVNode("*")])),_:1})):createCommentVNode("",!0),createVNode(r,null,{default:withCtx((()=>[createTextVNode(toDisplayString(n.label),1)])),_:1})])),_:1},8,["class","style"])]),!0),createVNode(s,{class:"uni-forms-item__content"},{default:withCtx((()=>[renderSlot(e.$slots,"default",{},void 0,!0),createVNode(s,{class:normalizeClass(["uni-forms-item__error",{"msg--active":o.msg}])},{default:withCtx((()=>[createVNode(r,null,{default:withCtx((()=>[createTextVNode(toDisplayString(o.msg),1)])),_:1})])),_:1},8,["class"])])),_:3})])),_:3},8,["class"])}const __easycom_1=_export_sfc(_sfc_main$f,[["render",_sfc_render$7],["__scopeId","data-v-5900f7e8"]]);var pattern={email:/^\S+?@\S+?\.\S+?$/,idcard:/^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i")};const FORMAT_MAPPING={int:"integer",bool:"boolean",double:"number",long:"number",password:"string"};function formatMessage(e,t=""){["label"].forEach((t=>{void 0===e[t]&&(e[t]="")}));let n=t;for(let a in e){let t=new RegExp("{"+a+"}");n=n.replace(t,e[a])}return n}function isEmptyValue(e,t){return null==e||("string"==typeof e&&!e||(!(!Array.isArray(e)||e.length)||"object"===t&&!Object.keys(e).length))}const types={integer:e=>types.number(e)&&parseInt(e,10)===e,string:e=>"string"==typeof e,number:e=>!isNaN(e)&&"number"==typeof e,boolean:function(e){return"boolean"==typeof e},float:function(e){return types.number(e)&&!types.integer(e)},array:e=>Array.isArray(e),object:e=>"object"==typeof e&&!types.array(e),date:e=>e instanceof Date,timestamp(e){return!(!this.integer(e)||Math.abs(e).toString().length>16)},file:e=>"string"==typeof e.url,email:e=>"string"==typeof e&&!!e.match(pattern.email)&&e.length<255,url:e=>"string"==typeof e&&!!e.match(pattern.url),pattern(e,t){try{return new RegExp(e).test(t)}catch(e2){return!1}},method:e=>"function"==typeof e,idcard:e=>"string"==typeof e&&!!e.match(pattern.idcard),"url-https"(e){return this.url(e)&&e.startsWith("https://")},"url-scheme":e=>e.startsWith("://"),"url-web":e=>!1};class RuleValidator{constructor(e){this._message=e}async validateRule(e,t,n,a,i){var o=null;let r=t.rules;if(r.findIndex((e=>e.required))<0){if(null==n)return o;if("string"==typeof n&&!n.length)return o}var s=this._message;if(void 0===r)return s.default;for(var l=0;l<r.length;l++){let c=r[l],d=this._getValidateType(c);if(Object.assign(c,{label:t.label||`["${e}"]`}),RuleValidatorHelper[d]&&null!=(o=RuleValidatorHelper[d](c,n,s)))break;if(c.validateExpr){let e=Date.now();if(!1===c.validateExpr(n,i,e)){o=this._getMessage(c,c.errorMessage||this._message.default);break}}if(c.validateFunction&&null!==(o=await this.validateFunction(c,n,a,i,d)))break}return null!==o&&(o=s.TAG+o),o}async validateFunction(e,t,n,a,i){let o=null;try{let r=null;const s=await e.validateFunction(e,t,a||n,(e=>{r=e}));(r||"string"==typeof s&&s||!1===s)&&(o=this._getMessage(e,r||s,i))}catch(e2){o=this._getMessage(e,e2.message,i)}return o}_getMessage(e,t,n){return formatMessage(e,t||e.errorMessage||this._message[n]||t.default)}_getValidateType(e){var t="";return e.required?t="required":e.format?t="format":e.arrayType?t="arrayTypeFormat":e.range?t="range":void 0!==e.maximum||void 0!==e.minimum?t="rangeNumber":void 0!==e.maxLength||void 0!==e.minLength?t="rangeLength":e.pattern?t="pattern":e.validateFunction&&(t="validateFunction"),t}}const RuleValidatorHelper={required:(e,t,n)=>e.required&&isEmptyValue(t,e.format||typeof t)?formatMessage(e,e.errorMessage||n.required):null,range(e,t,n){const{range:a,errorMessage:i}=e;let o=new Array(a.length);for(let s=0;s<a.length;s++){const e=a[s];types.object(e)&&void 0!==e.value?o[s]=e.value:o[s]=e}let r=!1;return Array.isArray(t)?r=new Set(t.concat(o)).size===o.length:o.indexOf(t)>-1&&(r=!0),r?null:formatMessage(e,i||n.enum)},rangeNumber(e,t,n){if(!types.number(t))return formatMessage(e,e.errorMessage||n.pattern.mismatch);let{minimum:a,maximum:i,exclusiveMinimum:o,exclusiveMaximum:r}=e,s=o?t<=a:t<a,l=r?t>=i:t>i;return void 0!==a&&s?formatMessage(e,e.errorMessage||n.number[o?"exclusiveMinimum":"minimum"]):void 0!==i&&l?formatMessage(e,e.errorMessage||n.number[r?"exclusiveMaximum":"maximum"]):void 0!==a&&void 0!==i&&(s||l)?formatMessage(e,e.errorMessage||n.number.range):null},rangeLength(e,t,n){if(!types.string(t)&&!types.array(t))return formatMessage(e,e.errorMessage||n.pattern.mismatch);let a=e.minLength,i=e.maxLength,o=t.length;return void 0!==a&&o<a?formatMessage(e,e.errorMessage||n.length.minLength):void 0!==i&&o>i?formatMessage(e,e.errorMessage||n.length.maxLength):void 0!==a&&void 0!==i&&(o<a||o>i)?formatMessage(e,e.errorMessage||n.length.range):null},pattern:(e,t,n)=>types.pattern(e.pattern,t)?null:formatMessage(e,e.errorMessage||n.pattern.mismatch),format(e,t,n){var a=Object.keys(types),i=FORMAT_MAPPING[e.format]?FORMAT_MAPPING[e.format]:e.format||e.arrayType;return a.indexOf(i)>-1&&!types[i](t)?formatMessage(e,e.errorMessage||n.typeError):null},arrayTypeFormat(e,t,n){if(!Array.isArray(t))return formatMessage(e,e.errorMessage||n.typeError);for(let a=0;a<t.length;a++){const i=t[a];let o=this.format(e,i,n);if(null!==o)return o}return null}};class SchemaValidator extends RuleValidator{constructor(e,t){super(SchemaValidator.message),this._schema=e,this._options=t||null}updateSchema(e){this._schema=e}async validate(e,t){let n=this._checkFieldInSchema(e);return n||(n=await this.invokeValidate(e,!1,t)),n.length?n[0]:null}async validateAll(e,t){let n=this._checkFieldInSchema(e);return n||(n=await this.invokeValidate(e,!0,t)),n}async validateUpdate(e,t){let n=this._checkFieldInSchema(e);return n||(n=await this.invokeValidateUpdate(e,!1,t)),n.length?n[0]:null}async invokeValidate(e,t,n){let a=[],i=this._schema;for(let o in i){let r=i[o],s=await this.validateRule(o,r,e[o],e,n);if(null!=s&&(a.push({key:o,errorMessage:s}),!t))break}return a}async invokeValidateUpdate(e,t,n){let a=[];for(let i in e){let o=await this.validateRule(i,this._schema[i],e[i],e,n);if(null!=o&&(a.push({key:i,errorMessage:o}),!t))break}return a}_checkFieldInSchema(e){var t=Object.keys(e),n=Object.keys(this._schema);if(new Set(t.concat(n)).size===n.length)return"";var a=t.filter((e=>n.indexOf(e)<0));return[{key:"invalid",errorMessage:formatMessage({field:JSON.stringify(a)},SchemaValidator.message.TAG+SchemaValidator.message.defaultInvalid)}]}}function Message(){return{TAG:"",default:"验证错误",defaultInvalid:"提交的字段{field}在数据库中并不存在",validateFunction:"验证无效",required:"{label}必填",enum:"{label}超出范围",timestamp:"{label}格式无效",whitespace:"{label}不能为空",typeError:"{label}类型无效",date:{format:"{label}日期{value}格式无效",parse:"{label}日期无法解析,{value}无效",invalid:"{label}日期{value}无效"},length:{minLength:"{label}长度不能少于{minLength}",maxLength:"{label}长度不能超过{maxLength}",range:"{label}必须介于{minLength}和{maxLength}之间"},number:{minimum:"{label}不能小于{minimum}",maximum:"{label}不能大于{maximum}",exclusiveMinimum:"{label}不能小于等于{minimum}",exclusiveMaximum:"{label}不能大于等于{maximum}",range:"{label}必须介于{minimum}and{maximum}之间"},pattern:{mismatch:"{label}格式不匹配"}}}SchemaValidator.message=new Message;const deepCopy=e=>JSON.parse(JSON.stringify(e)),typeFilter=e=>"int"===e||"double"===e||"number"===e||"timestamp"===e,getValue=(e,t,n)=>{const a=n.find((e=>e.format&&typeFilter(e.format))),i=n.find((e=>e.format&&"boolean"===e.format||"bool"===e.format));return a&&(t=t||0===t?isNumber(Number(t))?Number(t):t:null),i&&(t=!!isBoolean(t)&&t),t},setDataValue=(e,t,n)=>(t[e]=n,n||""),getDataValue=(e,t)=>objGet(t,e),realName=(e,t={})=>{const n=_basePath(e);if("object"==typeof n&&Array.isArray(n)&&n.length>1){return n.reduce(((e,t)=>e+`#${t}`),"_formdata_")}return n[0]||e},isRealName=e=>/^_formdata_#*/.test(e),rawData=(e={},t)=>{let n=JSON.parse(JSON.stringify(e)),a={};for(let i in n){let e=name2arr(i);objSet(a,e,n[i])}return a},name2arr=e=>{let t=e.replace("_formdata_#","");return t=t.split("#").map((e=>isNumber(e)?Number(e):e)),t},objSet=(e,t,n)=>("object"!=typeof e||_basePath(t).reduce(((e,t,a,i)=>a===i.length-1?(e[t]=n,null):(t in e||(e[t]=/^[0-9]{1,}$/.test(i[a+1])?[]:{}),e[t])),e),e);function _basePath(e){return Array.isArray(e)?e:e.replace(/\[/g,".").replace(/\]/g,"").split(".")}const objGet=(e,t,n="undefined")=>{let a=_basePath(t).reduce(((e,t)=>(e||{})[t]),e);return a&&void 0===a?n:a},isNumber=e=>!isNaN(Number(e)),isBoolean=e=>"boolean"==typeof e,isRequiredField=e=>{let t=!1;for(let n=0;n<e.length;n++){if(e[n].required){t=!0;break}}return t},isEqual=(e,t)=>{if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return e===t;var n=toString.call(e);if(n!==toString.call(t))return!1;switch(n){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t}if("[object Object]"==n){var a=Object.getOwnPropertyNames(e),i=Object.getOwnPropertyNames(t);if(a.length!=i.length)return!1;for(var o=0;o<a.length;o++){var r=a[o];if(e[r]!==t[r])return!1}return!0}return"[object Array]"==n?e.toString()==t.toString():void 0},_sfc_main$e={name:"uniForms",emits:["validate","submit"],options:{virtualHost:!0},props:{value:{type:Object,default:()=>null},modelValue:{type:Object,default:()=>null},model:{type:Object,default:()=>null},rules:{type:Object,default:()=>({})},errShowType:{type:String,default:"undertext"},validateTrigger:{type:String,default:"submit"},labelPosition:{type:String,default:"left"},labelWidth:{type:[String,Number],default:""},labelAlign:{type:String,default:"left"},border:{type:Boolean,default:!1}},provide(){return{uniForm:this}},data:()=>({formData:{},formRules:{}}),computed:{localData(){const e=this.model||this.modelValue||this.value;return e?deepCopy(e):{}}},watch:{rules:{handler:function(e,t){this.setRules(e)},deep:!0,immediate:!0}},created(){getApp$1().$vm.$.appContext.config.globalProperties.binddata||(getApp$1().$vm.$.appContext.config.globalProperties.binddata=function(e,t,n){if(n)this.$refs[n].setValue(e,t);else{let n;for(let e in this.$refs){const t=this.$refs[e];if(t&&t.$options&&"uniForms"===t.$options.name){n=t;break}}if(!n)return console.error("当前 uni-froms 组件缺少 ref 属性");n.setValue(e,t)}}),this.childrens=[],this.inputChildrens=[],this.setRules(this.rules)},methods:{setRules(e){this.formRules=Object.assign({},this.formRules,e),this.validator=new SchemaValidator(e)},setValue(e,t){let n=this.childrens.find((t=>t.name===e));return n?(this.formData[e]=getValue(e,t,this.formRules[e]&&this.formRules[e].rules||[]),n.onFieldChange(this.formData[e])):null},validate(e,t){return this.checkAll(this.formData,e,t)},validateField(e=[],t){e=[].concat(e);let n={};return this.childrens.forEach((t=>{const a=realName(t.name);-1!==e.indexOf(a)&&(n=Object.assign({},n,{[a]:this.formData[a]}))})),this.checkAll(n,[],t)},clearValidate(e=[]){e=[].concat(e),this.childrens.forEach((t=>{if(0===e.length)t.errMsg="";else{const n=realName(t.name);-1!==e.indexOf(n)&&(t.errMsg="")}}))},submit(e,t,n){for(let a in this.dataValue){this.childrens.find((e=>e.name===a))&&void 0===this.formData[a]&&(this.formData[a]=this._getValue(a,this.dataValue[a]))}return n||console.warn("submit 方法即将废弃，请使用validate方法代替！"),this.checkAll(this.formData,e,t,"submit")},async checkAll(e,t,n,a){if(!this.validator)return;let i,o=[];for(let c in e){const e=this.childrens.find((e=>realName(e.name)===c));e&&o.push(e)}n||"function"!=typeof t||(n=t),!n&&"function"!=typeof n&&Promise&&(i=new Promise(((e,t)=>{n=function(n,a){n?t(n):e(a)}})));let r=[],s=JSON.parse(JSON.stringify(e));for(let c in o){const e=o[c];let t=realName(e.name);const n=await e.onFieldChange(s[t]);if(n&&(r.push(n),"toast"===this.errShowType||"modal"===this.errShowType))break}Array.isArray(r)&&0===r.length&&(r=null),Array.isArray(t)&&t.forEach((e=>{let t=realName(e),n=getDataValue(e,this.localData);void 0!==n&&(s[t]=n)})),"submit"===a?this.$emit("submit",{detail:{value:s,errors:r}}):this.$emit("validate",r);let l={};return l=rawData(s,this.name),n&&"function"==typeof n&&n(r,l),i&&n?i:null},validateCheck(e){this.$emit("validate",e)},_getValue:getValue,_isRequiredField:isRequiredField,_setDataValue:setDataValue,_getDataValue:getDataValue,_realName:realName,_isRealName:isRealName,_isEqual:isEqual}};function _sfc_render$6(e,t,n,a,i,o){const r=index$z,s=index$g;return openBlock(),createBlock(s,{class:"uni-forms"},{default:withCtx((()=>[createVNode(r,null,{default:withCtx((()=>[renderSlot(e.$slots,"default",{},void 0,!0)])),_:3})])),_:3})}const __easycom_2=_export_sfc(_sfc_main$e,[["render",_sfc_render$6],["__scopeId","data-v-69e871ef"]]),_sfc_main$d={name:"uniCollapseItem",props:{title:{type:String,default:""},name:{type:[Number,String],default:""},disabled:{type:Boolean,default:!1},showAnimation:{type:Boolean,default:!0},open:{type:Boolean,default:!1},thumb:{type:String,default:""},titleBorder:{type:String,default:"auto"},border:{type:Boolean,default:!0},showArrow:{type:Boolean,default:!0}},data:()=>({isOpen:!1,isheight:null,height:0,elId:`Uni_${Math.ceil(1e6*Math.random()).toString(36)}`,nameSync:0}),watch:{open(e){this.isOpen=e,this.onClick(e,"init")}},updated(e){this.$nextTick((()=>{this.init(!0)}))},created(){this.collapse=this.getCollapse(),this.oldHeight=0,this.onClick(this.open,"init")},unmounted(){this.__isUnmounted=!0,this.uninstall()},mounted(){this.collapse&&(""!==this.name?this.nameSync=this.name:this.nameSync=this.collapse.childrens.length+"",-1===this.collapse.names.indexOf(this.nameSync)?this.collapse.names.push(this.nameSync):console.warn(`name 值 ${this.nameSync} 重复`),-1===this.collapse.childrens.indexOf(this)&&this.collapse.childrens.push(this),this.init())},methods:{init(e){this.getCollapseHeight(e)},uninstall(){this.collapse&&(this.collapse.childrens.forEach(((e,t)=>{e===this&&this.collapse.childrens.splice(t,1)})),this.collapse.names.forEach(((e,t)=>{e===this.nameSync&&this.collapse.names.splice(t,1)})))},onClick(e,t){this.disabled||(this.isOpen=e,this.isOpen&&this.collapse&&this.collapse.setAccordion(this),"init"!==t&&this.collapse.onChange(e,this))},getCollapseHeight(e,t=0){createSelectorQuery().in(this).select(`#${this.elId}`).fields({size:!0},(n=>{if(!(t>=10)){if(!n)return t++,void this.getCollapseHeight(!1,t);this.height=n.height,this.isheight=!0,e||this.onClick(this.isOpen,"init")}})).exec()},getNvueHwight(e){dom.getComponentRect(this.$refs["collapse--hook"],(t=>{if(t&&t.result&&t.size){if(this.height=t.size.height,this.isheight=!0,e)return;this.onClick(this.open,"init")}}))},getCollapse(e="uniCollapse"){let t=this.$parent,n=t.$options.name;for(;n!==e;){if(t=t.$parent,!t)return!1;n=t.$options.name}return t}}};function _sfc_render$5(e,t,n,a,i,o){const r=index$q,s=index$i,l=index$g,c=resolveEasycom(resolveDynamicComponent("uni-icons"),__easycom_3$3);return openBlock(),createBlock(l,{class:"uni-collapse-item"},{default:withCtx((()=>[createVNode(l,{onClick:t[0]||(t[0]=e=>o.onClick(!i.isOpen)),class:normalizeClass(["uni-collapse-item__title",{"is-open":i.isOpen&&"auto"===n.titleBorder,"uni-collapse-item-border":"none"!==n.titleBorder}])},{default:withCtx((()=>[createVNode(l,{class:"uni-collapse-item__title-wrap"},{default:withCtx((()=>[renderSlot(e.$slots,"title",{},(()=>[createVNode(l,{class:normalizeClass(["uni-collapse-item__title-box",{"is-disabled":n.disabled}])},{default:withCtx((()=>[n.thumb?(openBlock(),createBlock(r,{key:0,src:n.thumb,class:"uni-collapse-item__title-img"},null,8,["src"])):createCommentVNode("",!0),createVNode(s,{class:"uni-collapse-item__title-text"},{default:withCtx((()=>[createTextVNode(toDisplayString(n.title),1)])),_:1})])),_:1},8,["class"])]),!0)])),_:3}),n.showArrow?(openBlock(),createBlock(l,{key:0,class:normalizeClass([{"uni-collapse-item__title-arrow-active":i.isOpen,"uni-collapse-item--animation":!0===n.showAnimation},"uni-collapse-item__title-arrow"])},{default:withCtx((()=>[createVNode(c,{color:n.disabled?"#ddd":"#bbb",size:"14",type:"bottom"},null,8,["color"])])),_:1},8,["class"])):createCommentVNode("",!0)])),_:3},8,["class"]),createVNode(l,{class:normalizeClass(["uni-collapse-item__wrap",{"is--transition":n.showAnimation}]),style:normalizeStyle({height:(i.isOpen?i.height:0)+"px"})},{default:withCtx((()=>[createVNode(l,{id:i.elId,ref:"collapse--hook",class:normalizeClass(["uni-collapse-item__wrap-content",{open:i.isheight,"uni-collapse-item--border":n.border&&i.isOpen}])},{default:withCtx((()=>[renderSlot(e.$slots,"default",{},void 0,!0)])),_:3},8,["id","class"])])),_:3},8,["class","style"])])),_:3})}const __easycom_5=_export_sfc(_sfc_main$d,[["render",_sfc_render$5],["__scopeId","data-v-74f2d81a"]]),_sfc_main$c={name:"uniCollapse",emits:["change","activeItem","input","update:modelValue"],props:{value:{type:[String,Array],default:""},modelValue:{type:[String,Array],default:""},accordion:{type:[Boolean,String],default:!1}},data:()=>({}),computed:{dataValue(){let e="string"==typeof this.value&&""===this.value||Array.isArray(this.value)&&0===this.value.length;"string"==typeof this.modelValue&&""===this.modelValue||Array.isArray(this.modelValue)&&this.modelValue.length;return e?this.modelValue:this.value}},watch:{dataValue(e){this.setOpen(e)}},created(){this.childrens=[],this.names=[]},mounted(){this.$nextTick((()=>{this.setOpen(this.dataValue)}))},methods:{setOpen(e){let t="string"==typeof e,n=Array.isArray(e);this.childrens.forEach(((a,i)=>{if(t&&e===a.nameSync){if(!this.accordion)return void console.warn("accordion 属性为 false ,v-model 类型应该为 array");a.isOpen=!0}n&&e.forEach((e=>{if(e===a.nameSync){if(this.accordion)return void console.warn("accordion 属性为 true ,v-model 类型应该为 string");a.isOpen=!0}}))})),this.emit(e)},setAccordion(e){this.accordion&&this.childrens.forEach(((t,n)=>{e!==t&&(t.isOpen=!1)}))},resize(){this.childrens.forEach(((e,t)=>{e.getCollapseHeight()}))},onChange(e,t){let n=[];this.accordion?n=e?t.nameSync:"":this.childrens.forEach(((e,t)=>{e.isOpen&&n.push(e.nameSync)})),this.$emit("change",n),this.emit(n)},emit(e){this.$emit("input",e),this.$emit("update:modelValue",e)}}};function _sfc_render$4(e,t,n,a,i,o){const r=index$g;return openBlock(),createBlock(r,{class:"uni-collapse"},{default:withCtx((()=>[renderSlot(e.$slots,"default",{},void 0,!0)])),_:3})}const __easycom_6=_export_sfc(_sfc_main$c,[["render",_sfc_render$4],["__scopeId","data-v-3a7c7163"]]),_sfc_main$b={name:"TableList",props:{modelValue:{type:Array,default:()=>[]},formData:{type:Object,default:()=>({})},formProps:{type:Object,default:()=>({})},readonly:Boolean},computed:{_value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},rules(){const e={};return this.formProps.columns.forEach((t=>{e[t.id]={rules:[{required:t.props.required,errorMessage:"请填写"+t.title}]}})),e}},data:()=>({opened:[],errRow:new Set}),methods:{validate(e){const t=[];this._value.forEach(((e,n)=>{t.push(new Promise((e=>{this.$refs["wflowTableForm_"+(this._value.length-1)][0].validate().then((t=>{this.errRow.delete(n),e(!0)})).catch((t=>{this.opened.indexOf(n)<0&&this.opened.push(n),this.errRow.add(n),e(!1)}))})))})),t.length>0&&Promise.all(t).then((t=>{const n=t.every((e=>!0===e));e(n)}))},addRow(){this._value.length>0?(this.$refs["wflowTableForm_"+(this._value.length-1)],this.validate((e=>{e?this.doAddRow():showToast({icon:"none",title:"请完成之前的数据"})}))):this.doAddRow()},delTbRow(e){showModal({title:"提示",content:"确定要删除当前表格行数据吗？",success:t=>{t.confirm&&(this._value.splice(e,1),this._value=this._value,setTimeout((()=>$emit("showFp")),500))}})},doAddRow(){if((this.formProps.maxSize||0)>0&&this.formProps.columns.length>=this.formProps.maxSize)return void showToast({icon:"none",title:"已达到限制行数"});const e={};this.formProps.columns.forEach((t=>e[t.id]=null)),this._value.push(e),this._value=this._value,this.$forceUpdate(),setTimeout((()=>$emit("showFp")),500)}},watch:{opened:{deep:!0,handler(){setTimeout((()=>$emit("showFp")),500)}}},emits:["update:modelValue"]};function _sfc_render$3(e,t,n,a,i,o){const r=index$i,s=resolveEasycom(resolveDynamicComponent("uni-icons"),__easycom_3$3),l=index$g,c=resolveComponent("w-form-item"),d=resolveEasycom(resolveDynamicComponent("uni-forms-item"),__easycom_1),u=resolveEasycom(resolveDynamicComponent("uni-forms"),__easycom_2),m=resolveEasycom(resolveDynamicComponent("uni-collapse-item"),__easycom_5),p=resolveEasycom(resolveDynamicComponent("uni-collapse"),__easycom_6);return openBlock(),createBlock(l,{class:"w-table",key:o._value.length},{default:withCtx((()=>[createVNode(p,{ref:"collapse",modelValue:i.opened,"onUpdate:modelValue":t[0]||(t[0]=e=>i.opened=e)},{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(o._value,((e,t)=>(openBlock(),createBlock(m,{"show-animation":!0,class:"w-table-row",key:`row_${t}`},{title:withCtx((()=>[createVNode(l,{class:"w-table-row-tt"},{default:withCtx((()=>[createVNode(l,{style:{display:"flex",flex:"1","align-items":"center"}},{default:withCtx((()=>[createVNode(r,{style:{padding:"8px 15px"}},{default:withCtx((()=>[createTextVNode("第 "+toDisplayString(t+1)+" 项",1)])),_:2},1024),i.errRow.has(t)?(openBlock(),createBlock(s,{key:0,type:"info",size:20,color:"#CE5266"})):createCommentVNode("",!0)])),_:2},1024),n.readonly?createCommentVNode("",!0):(openBlock(),createBlock(l,{key:0,onClick:withModifiers((e=>o.delTbRow(t)),["stop"]),style:{color:"#999999"}},{default:withCtx((()=>[createTextVNode("删除")])),_:2},1032,["onClick"]))])),_:2},1024)])),default:withCtx((()=>[createVNode(u,{ref_for:!0,ref:`wflowTableForm_${t}`,rules:o.rules,modelValue:o._value[t],"label-position":"top","label-width":"200"},{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(n.formProps.columns,(e=>(openBlock(),createBlock(d,{class:"w-form-item",name:e.id,key:e.id,required:e.props.required},{label:withCtx((()=>[createVNode(l,{style:{display:"flex","align-items":"center",padding:"13rpx 0"}},{default:withCtx((()=>[e.props.required?(openBlock(),createBlock(r,{key:0,style:{color:"#CE5266"}},{default:withCtx((()=>[createTextVNode("* ")])),_:1})):createCommentVNode("",!0),createVNode(r,{style:{"font-size":"32rpx"}},{default:withCtx((()=>[createTextVNode(toDisplayString(e.title),1)])),_:2},1024)])),_:2},1024)])),default:withCtx((()=>[createVNode(c,{type:e.name,modelValue:o._value[t][e.id],"onUpdate:modelValue":n=>o._value[t][e.id]=n,"form-props":e.props,readonly:"E"!==e.perm,formData:n.formData,index:t+1},null,8,["type","modelValue","onUpdate:modelValue","form-props","readonly","formData","index"])])),_:2},1032,["name","required"])))),128))])),_:2},1032,["rules","modelValue"])])),_:2},1024)))),128))])),_:1},8,["modelValue"]),n.readonly?createCommentVNode("",!0):(openBlock(),createBlock(l,{key:0,class:"w-table-add",onClick:o.addRow},{default:withCtx((()=>[createTextVNode("+ 添加明细")])),_:1},8,["onClick"]))])),_:1})}const TableList=_export_sfc(_sfc_main$b,[["render",_sfc_render$3],["__scopeId","data-v-4cf186f4"]]),_sfc_main$a={__name:"SelectPlus",props:{formProps:{type:Object,default:()=>({})},modelValue:{type:Array,default:()=>[]},readonly:Boolean},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=computed({get:()=>n.modelValue||[],set(e){r("update:modelValue",e)}}),i=computed((()=>l.value.filter((e=>(n.modelValue||[]).indexOf(e.value)>-1)).map((e=>e.name)))),o=computed({get:()=>n.formProps.multiple?a.value:a.value[0],set(e){n.formProps.multiple?r("update:modelValue",e):r("update:modelValue",[e])}}),r=t,s=ref(!1),l=ref([]);let c=null,d=null;const u={text:"name",value:"value"},m=ref(0);function p(){try{n.formProps.fixed?l.value=n.formProps.options:function(e){const t=n.formProps.http||{};if(t.url&&t.method){const n={url:t.url,method:t.method,headers:{"content-type":"JSON"===t.contentType?"application/json":"application/x-www-form-urlencoded",...f(t.headers||[])},params:{},data:"JSON"===t.contentType?JSON.parse(t.data||"{}"):f(t.params||[])};!function(e,t){if(t){c||(c=new Function("ctx",`${t}\n preHandler(ctx)`));try{c(e)}catch(e2){console.log(e2)}}}(n,t.preHandler),"JSON"!==t.contentType&&(n.data={...n.data,...n.params}),s.value=!0,console.log(JSON.stringify({...n,timeout:2e4,header:n.headers,withCredentials:!0,dataType:"json"})),request$1({...n,timeout:2e4,header:n.headers,withCredentials:!0,dataType:"json",success:n=>{s.value=!1,console.log("获取到数据: ",JSON.stringify(n));const a=function(e,t){if(t)return y(e,t);if(t.isJs)return y(e,t.js);{const n=function(e,t){const n=t.split(".");let a=e;for(const i of n){if(!a.hasOwnProperty(i))return;a=a[i]}return a}(e,g(t.rule.source,"data")),a=g(t.rule.name,"name"),i=g(t.rule.value,"value");return(n||[]).map((e=>({name:e[a],value:e[i]})))}}(n,t.aftHandler);e.push(...a||[])},fail:e=>{s.value=!1,showToast({icon:"none",title:"请求http数据源发生异常:"+JSON.stringify(e)})}})}}(l.value)}catch(e2){console.log(e2)}}function h(e){m.value=e.detail.value,o.value=l.value[m.value].value}function f(e,t=!1){const n={};return Array.isArray(e)&&e.forEach((e=>{$nEmpty(e.name)&&(n[e.name]=e.value)})),n}function g(e,t){return $nEmpty(e)?e:t}function y(e,t){if(t){d||(d=new Function("rsp",`${t}\n return aftHandler(rsp)`));try{return d(e)||[]}catch(e2){console.log(e2)}}return[]}return onMounted((()=>{p()})),(t,n)=>{const a=index$g,r=resolveEasycom(resolveDynamicComponent("uni-data-checkbox"),__easycom_1$2),s=index$7;return openBlock(),createBlock(a,null,{default:withCtx((()=>[e.readonly?(openBlock(),createElementBlock(Fragment,{key:1},[e.formProps.multiple?(openBlock(),createBlock(ClickInput,{key:0,disabled:"",value:e.modelValue.length>0?l.value:null,index:"name"},null,8,["value"])):(openBlock(),createBlock(ClickInput,{key:1,disabled:"",value:i.value},null,8,["value"]))],64)):(openBlock(),createElementBlock(Fragment,{key:0},[e.formProps.expanding&&0===l.value.length?(openBlock(),createBlock(a,{key:0,style:{color:"#E79467"}},{default:withCtx((()=>[createTextVNode("无选项😢，请检查设置")])),_:1})):e.formProps.multiple?(openBlock(),createElementBlock(Fragment,{key:1},[e.formProps.expanding?(openBlock(),createBlock(r,{key:0,map:u,multiple:"",modelValue:o.value,"onUpdate:modelValue":n[0]||(n[0]=e=>o.value=e),localdata:l.value},null,8,["modelValue","localdata"])):(openBlock(),createBlock(MultiplePicker,{key:1,index:"name",modelValue:o.value,"onUpdate:modelValue":n[1]||(n[1]=e=>o.value=e),options:l.value},{default:withCtx((({show:t})=>[createVNode(ClickInput,{value:i.value,placeholder:e.formProps.placeholder||"请选择",onClick:t},null,8,["value","placeholder","onClick"])])),_:1},8,["modelValue","options"]))],64)):(openBlock(),createElementBlock(Fragment,{key:2},[e.formProps.expanding?(openBlock(),createBlock(r,{key:0,map:u,modelValue:o.value,"onUpdate:modelValue":n[2]||(n[2]=e=>o.value=e),localdata:l.value},null,8,["modelValue","localdata"])):(openBlock(),createBlock(s,{key:1,onChange:h,mode:"selector",value:m.value,"range-key":"name",range:l.value},{default:withCtx((()=>[createVNode(ClickInput,{value:e.modelValue.length>0?l.value[m.value]:null,index:"name",placeholder:e.formProps.placeholder||"请选择"},null,8,["value","placeholder"])])),_:1},8,["value","range"]))],64))],64))])),_:1})}}},_sfc_main$9={__name:"Location",props:{formProps:{type:Object,default:()=>({})},readonly:Boolean,modelValue:Object},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=computed({get:()=>n.modelValue,set(e){o("update:modelValue",e)}}),i=computed((()=>a.value instanceof String?a.value:a.value?`${a.value.name} (${a.value.address})`:null)),o=t;function r(){if(n.readonly){if(!a.value||a.value instanceof String)return;openLocation({type:"wgs84",latitude:a.value.lat,longitude:a.value.lng,fail:function(e){showToast({icon:"none",title:"打开地图异常"})}})}else chooseLocation({type:"wgs84",success:function(e){console.log("选择位置",e),a.value={name:e.name,address:e.address,lat:e.latitude,lng:e.longitude}}})}return(t,n)=>(openBlock(),createBlock(ClickInput,{preIcon:"location",disabled:e.readonly,placeholder:e.formProps.placeholder||"请选择位置",onClick:r,value:i.value},null,8,["disabled","placeholder","value"]))}};var AreaJson=[{name:"北京",city:[{name:"北京市",area:[{name:"东城区",id:"110101"},{name:"西城区",id:"110102"},{name:"朝阳区",id:"110105"},{name:"丰台区",id:"110106"},{name:"石景山区",id:"110107"},{name:"海淀区",id:"110108"},{name:"门头沟区",id:"110109"},{name:"房山区",id:"110111"},{name:"通州区",id:"110112"},{name:"顺义区",id:"110113"},{name:"昌平区",id:"110114"},{name:"大兴区",id:"110115"},{name:"怀柔区",id:"110116"},{name:"平谷区",id:"110117"},{name:"密云县",id:"110228"},{name:"延庆县",id:"110229"}]}]},{name:"天津",city:[{name:"天津市",area:[{name:"和平区",id:"120101"},{name:"河东区",id:"120102"},{name:"河西区",id:"120103"},{name:"南开区",id:"120104"},{name:"河北区",id:"120105"},{name:"红桥区",id:"120106"},{name:"东丽区",id:"120110"},{name:"西青区",id:"120111"},{name:"津南区",id:"120112"},{name:"北辰区",id:"120113"},{name:"武清区",id:"120114"},{name:"宝坻区",id:"120115"},{name:"滨海新区",id:"120116"},{name:"宁河县",id:"120221"},{name:"静海县",id:"120223"},{name:"蓟县",id:"120225"}]}]},{name:"河北省",city:[{name:"石家庄市",area:[{name:"长安区",id:"130102"},{name:"桥西区",id:"130104"},{name:"新华区",id:"130105"},{name:"井陉矿区",id:"130107"},{name:"裕华区",id:"130108"},{name:"藁城区",id:"130109"},{name:"鹿泉区",id:"130110"},{name:"栾城区",id:"130111"},{name:"井陉县",id:"130121"},{name:"正定县",id:"130123"},{name:"行唐县",id:"130125"},{name:"灵寿县",id:"130126"},{name:"高邑县",id:"130127"},{name:"深泽县",id:"130128"},{name:"赞皇县",id:"130129"},{name:"无极县",id:"130130"},{name:"平山县",id:"130131"},{name:"元氏县",id:"130132"},{name:"赵县",id:"130133"},{name:"辛集市",id:"130181"},{name:"晋州市",id:"130183"},{name:"新乐市",id:"130184"}]},{name:"唐山市",area:[{name:"路南区",id:"130202"},{name:"路北区",id:"130203"},{name:"古冶区",id:"130204"},{name:"开平区",id:"130205"},{name:"丰南区",id:"130207"},{name:"丰润区",id:"130208"},{name:"曹妃甸区",id:"130209"},{name:"滦县",id:"130223"},{name:"滦南县",id:"130224"},{name:"乐亭县",id:"130225"},{name:"迁西县",id:"130227"},{name:"玉田县",id:"130229"},{name:"遵化市",id:"130281"},{name:"迁安市",id:"130283"}]},{name:"秦皇岛市",area:[{name:"海港区",id:"130302"},{name:"山海关区",id:"130303"},{name:"北戴河区",id:"130304"},{name:"青龙满族自治县",id:"130321"},{name:"昌黎县",id:"130322"},{name:"抚宁县",id:"130323"},{name:"卢龙县",id:"130324"}]},{name:"邯郸市",area:[{name:"邯山区",id:"130402"},{name:"丛台区",id:"130403"},{name:"复兴区",id:"130404"},{name:"峰峰矿区",id:"130406"},{name:"邯郸县",id:"130421"},{name:"临漳县",id:"130423"},{name:"成安县",id:"130424"},{name:"大名县",id:"130425"},{name:"涉县",id:"130426"},{name:"磁县",id:"130427"},{name:"肥乡县",id:"130428"},{name:"永年县",id:"130429"},{name:"邱县",id:"130430"},{name:"鸡泽县",id:"130431"},{name:"广平县",id:"130432"},{name:"馆陶县",id:"130433"},{name:"魏县",id:"130434"},{name:"曲周县",id:"130435"},{name:"武安市",id:"130481"}]},{name:"邢台市",area:[{name:"桥东区",id:"130502"},{name:"桥西区",id:"130503"},{name:"邢台县",id:"130521"},{name:"临城县",id:"130522"},{name:"内丘县",id:"130523"},{name:"柏乡县",id:"130524"},{name:"隆尧县",id:"130525"},{name:"任县",id:"130526"},{name:"南和县",id:"130527"},{name:"宁晋县",id:"130528"},{name:"巨鹿县",id:"130529"},{name:"新河县",id:"130530"},{name:"广宗县",id:"130531"},{name:"平乡县",id:"130532"},{name:"威县",id:"130533"},{name:"清河县",id:"130534"},{name:"临西县",id:"130535"},{name:"南宫市",id:"130581"},{name:"沙河市",id:"130582"}]},{name:"保定市",area:[{name:"新市区",id:"130602"},{name:"北市区",id:"130603"},{name:"南市区",id:"130604"},{name:"满城县",id:"130621"},{name:"清苑县",id:"130622"},{name:"涞水县",id:"130623"},{name:"阜平县",id:"130624"},{name:"徐水县",id:"130625"},{name:"定兴县",id:"130626"},{name:"唐县",id:"130627"},{name:"高阳县",id:"130628"},{name:"容城县",id:"130629"},{name:"涞源县",id:"130630"},{name:"望都县",id:"130631"},{name:"安新县",id:"130632"},{name:"易县",id:"130633"},{name:"曲阳县",id:"130634"},{name:"蠡县",id:"130635"},{name:"顺平县",id:"130636"},{name:"博野县",id:"130637"},{name:"雄县",id:"130638"},{name:"涿州市",id:"130681"},{name:"定州市",id:"130682"},{name:"安国市",id:"130683"},{name:"高碑店市",id:"130684"}]},{name:"张家口市",area:[{name:"桥东区",id:"130702"},{name:"桥西区",id:"130703"},{name:"宣化区",id:"130705"},{name:"下花园区",id:"130706"},{name:"宣化县",id:"130721"},{name:"张北县",id:"130722"},{name:"康保县",id:"130723"},{name:"沽源县",id:"130724"},{name:"尚义县",id:"130725"},{name:"蔚县",id:"130726"},{name:"阳原县",id:"130727"},{name:"怀安县",id:"130728"},{name:"万全县",id:"130729"},{name:"怀来县",id:"130730"},{name:"涿鹿县",id:"130731"},{name:"赤城县",id:"130732"},{name:"崇礼县",id:"130733"}]},{name:"承德市",area:[{name:"双桥区",id:"130802"},{name:"双滦区",id:"130803"},{name:"鹰手营子矿区",id:"130804"},{name:"承德县",id:"130821"},{name:"兴隆县",id:"130822"},{name:"平泉县",id:"130823"},{name:"滦平县",id:"130824"},{name:"隆化县",id:"130825"},{name:"丰宁满族自治县",id:"130826"},{name:"宽城满族自治县",id:"130827"},{name:"围场满族蒙古族自治县",id:"130828"}]},{name:"沧州市",area:[{name:"新华区",id:"130902"},{name:"运河区",id:"130903"},{name:"沧县",id:"130921"},{name:"青县",id:"130922"},{name:"东光县",id:"130923"},{name:"海兴县",id:"130924"},{name:"盐山县",id:"130925"},{name:"肃宁县",id:"130926"},{name:"南皮县",id:"130927"},{name:"吴桥县",id:"130928"},{name:"献县",id:"130929"},{name:"孟村回族自治县",id:"130930"},{name:"泊头市",id:"130981"},{name:"任丘市",id:"130982"},{name:"黄骅市",id:"130983"},{name:"河间市",id:"130984"}]},{name:"廊坊市",area:[{name:"安次区",id:"131002"},{name:"广阳区",id:"131003"},{name:"固安县",id:"131022"},{name:"永清县",id:"131023"},{name:"香河县",id:"131024"},{name:"大城县",id:"131025"},{name:"文安县",id:"131026"},{name:"大厂回族自治县",id:"131028"},{name:"霸州市",id:"131081"},{name:"三河市",id:"131082"}]},{name:"衡水市",area:[{name:"桃城区",id:"131102"},{name:"枣强县",id:"131121"},{name:"武邑县",id:"131122"},{name:"武强县",id:"131123"},{name:"饶阳县",id:"131124"},{name:"安平县",id:"131125"},{name:"故城县",id:"131126"},{name:"景县",id:"131127"},{name:"阜城县",id:"131128"},{name:"冀州市",id:"131181"},{name:"深州市",id:"131182"}]}]},{name:"山西省",city:[{name:"太原市",area:[{name:"小店区",id:"140105"},{name:"迎泽区",id:"140106"},{name:"杏花岭区",id:"140107"},{name:"尖草坪区",id:"140108"},{name:"万柏林区",id:"140109"},{name:"晋源区",id:"140110"},{name:"清徐县",id:"140121"},{name:"阳曲县",id:"140122"},{name:"娄烦县",id:"140123"},{name:"古交市",id:"140181"}]},{name:"大同市",area:[{name:"城区",id:"140202"},{name:"矿区",id:"140203"},{name:"南郊区",id:"140211"},{name:"新荣区",id:"140212"},{name:"阳高县",id:"140221"},{name:"天镇县",id:"140222"},{name:"广灵县",id:"140223"},{name:"灵丘县",id:"140224"},{name:"浑源县",id:"140225"},{name:"左云县",id:"140226"},{name:"大同县",id:"140227"}]},{name:"阳泉市",area:[{name:"城区",id:"140302"},{name:"矿区",id:"140303"},{name:"郊区",id:"140311"},{name:"平定县",id:"140321"},{name:"盂县",id:"140322"}]},{name:"长治市",area:[{name:"城区",id:"140402"},{name:"郊区",id:"140411"},{name:"长治县",id:"140421"},{name:"襄垣县",id:"140423"},{name:"屯留县",id:"140424"},{name:"平顺县",id:"140425"},{name:"黎城县",id:"140426"},{name:"壶关县",id:"140427"},{name:"长子县",id:"140428"},{name:"武乡县",id:"140429"},{name:"沁县",id:"140430"},{name:"沁源县",id:"140431"},{name:"潞城市",id:"140481"}]},{name:"晋城市",area:[{name:"城区",id:"140502"},{name:"沁水县",id:"140521"},{name:"阳城县",id:"140522"},{name:"陵川县",id:"140524"},{name:"泽州县",id:"140525"},{name:"高平市",id:"140581"}]},{name:"朔州市",area:[{name:"朔城区",id:"140602"},{name:"平鲁区",id:"140603"},{name:"山阴县",id:"140621"},{name:"应县",id:"140622"},{name:"右玉县",id:"140623"},{name:"怀仁县",id:"140624"}]},{name:"晋中市",area:[{name:"榆次区",id:"140702"},{name:"榆社县",id:"140721"},{name:"左权县",id:"140722"},{name:"和顺县",id:"140723"},{name:"昔阳县",id:"140724"},{name:"寿阳县",id:"140725"},{name:"太谷县",id:"140726"},{name:"祁县",id:"140727"},{name:"平遥县",id:"140728"},{name:"灵石县",id:"140729"},{name:"介休市",id:"140781"}]},{name:"运城市",area:[{name:"盐湖区",id:"140802"},{name:"临猗县",id:"140821"},{name:"万荣县",id:"140822"},{name:"闻喜县",id:"140823"},{name:"稷山县",id:"140824"},{name:"新绛县",id:"140825"},{name:"绛县",id:"140826"},{name:"垣曲县",id:"140827"},{name:"夏县",id:"140828"},{name:"平陆县",id:"140829"},{name:"芮城县",id:"140830"},{name:"永济市",id:"140881"},{name:"河津市",id:"140882"}]},{name:"忻州市",area:[{name:"忻府区",id:"140902"},{name:"定襄县",id:"140921"},{name:"五台县",id:"140922"},{name:"代县",id:"140923"},{name:"繁峙县",id:"140924"},{name:"宁武县",id:"140925"},{name:"静乐县",id:"140926"},{name:"神池县",id:"140927"},{name:"五寨县",id:"140928"},{name:"岢岚县",id:"140929"},{name:"河曲县",id:"140930"},{name:"保德县",id:"140931"},{name:"偏关县",id:"140932"},{name:"原平市",id:"140981"}]},{name:"临汾市",area:[{name:"尧都区",id:"141002"},{name:"曲沃县",id:"141021"},{name:"翼城县",id:"141022"},{name:"襄汾县",id:"141023"},{name:"洪洞县",id:"141024"},{name:"古县",id:"141025"},{name:"安泽县",id:"141026"},{name:"浮山县",id:"141027"},{name:"吉县",id:"141028"},{name:"乡宁县",id:"141029"},{name:"大宁县",id:"141030"},{name:"隰县",id:"141031"},{name:"永和县",id:"141032"},{name:"蒲县",id:"141033"},{name:"汾西县",id:"141034"},{name:"侯马市",id:"141081"},{name:"霍州市",id:"141082"}]},{name:"吕梁市",area:[{name:"离石区",id:"141102"},{name:"文水县",id:"141121"},{name:"交城县",id:"141122"},{name:"兴县",id:"141123"},{name:"临县",id:"141124"},{name:"柳林县",id:"141125"},{name:"石楼县",id:"141126"},{name:"岚县",id:"141127"},{name:"方山县",id:"141128"},{name:"中阳县",id:"141129"},{name:"交口县",id:"141130"},{name:"孝义市",id:"141181"},{name:"汾阳市",id:"141182"}]}]},{name:"内蒙古自治区",city:[{name:"呼和浩特市",area:[{name:"新城区",id:"150102"},{name:"回民区",id:"150103"},{name:"玉泉区",id:"150104"},{name:"赛罕区",id:"150105"},{name:"土默特左旗",id:"150121"},{name:"托克托县",id:"150122"},{name:"和林格尔县",id:"150123"},{name:"清水河县",id:"150124"},{name:"武川县",id:"150125"}]},{name:"包头市",area:[{name:"东河区",id:"150202"},{name:"昆都仑区",id:"150203"},{name:"青山区",id:"150204"},{name:"石拐区",id:"150205"},{name:"白云鄂博矿区",id:"150206"},{name:"九原区",id:"150207"},{name:"土默特右旗",id:"150221"},{name:"固阳县",id:"150222"},{name:"达尔罕茂明安联合旗",id:"150223"}]},{name:"乌海市",area:[{name:"海勃湾区",id:"150302"},{name:"海南区",id:"150303"},{name:"乌达区",id:"150304"}]},{name:"赤峰市",area:[{name:"红山区",id:"150402"},{name:"元宝山区",id:"150403"},{name:"松山区",id:"150404"},{name:"阿鲁科尔沁旗",id:"150421"},{name:"巴林左旗",id:"150422"},{name:"巴林右旗",id:"150423"},{name:"林西县",id:"150424"},{name:"克什克腾旗",id:"150425"},{name:"翁牛特旗",id:"150426"},{name:"喀喇沁旗",id:"150428"},{name:"宁城县",id:"150429"},{name:"敖汉旗",id:"150430"}]},{name:"通辽市",area:[{name:"科尔沁区",id:"150502"},{name:"科尔沁左翼中旗",id:"150521"},{name:"科尔沁左翼后旗",id:"150522"},{name:"开鲁县",id:"150523"},{name:"库伦旗",id:"150524"},{name:"奈曼旗",id:"150525"},{name:"扎鲁特旗",id:"150526"},{name:"霍林郭勒市",id:"150581"}]},{name:"鄂尔多斯市",area:[{name:"东胜区",id:"150602"},{name:"达拉特旗",id:"150621"},{name:"准格尔旗",id:"150622"},{name:"鄂托克前旗",id:"150623"},{name:"鄂托克旗",id:"150624"},{name:"杭锦旗",id:"150625"},{name:"乌审旗",id:"150626"},{name:"伊金霍洛旗",id:"150627"}]},{name:"呼伦贝尔市",area:[{name:"海拉尔区",id:"150702"},{name:"扎赉诺尔区",id:"150703"},{name:"阿荣旗",id:"150721"},{name:"莫力达瓦达斡尔族自治旗",id:"150722"},{name:"鄂伦春自治旗",id:"150723"},{name:"鄂温克族自治旗",id:"150724"},{name:"陈巴尔虎旗",id:"150725"},{name:"新巴尔虎左旗",id:"150726"},{name:"新巴尔虎右旗",id:"150727"},{name:"满洲里市",id:"150781"},{name:"牙克石市",id:"150782"},{name:"扎兰屯市",id:"150783"},{name:"额尔古纳市",id:"150784"},{name:"根河市",id:"150785"}]},{name:"巴彦淖尔市",area:[{name:"临河区",id:"150802"},{name:"五原县",id:"150821"},{name:"磴口县",id:"150822"},{name:"乌拉特前旗",id:"150823"},{name:"乌拉特中旗",id:"150824"},{name:"乌拉特后旗",id:"150825"},{name:"杭锦后旗",id:"150826"}]},{name:"乌兰察布市",area:[{name:"集宁区",id:"150902"},{name:"卓资县",id:"150921"},{name:"化德县",id:"150922"},{name:"商都县",id:"150923"},{name:"兴和县",id:"150924"},{name:"凉城县",id:"150925"},{name:"察哈尔右翼前旗",id:"150926"},{name:"察哈尔右翼中旗",id:"150927"},{name:"察哈尔右翼后旗",id:"150928"},{name:"四子王旗",id:"150929"},{name:"丰镇市",id:"150981"}]},{name:"兴安盟",area:[{name:"乌兰浩特市",id:"152201"},{name:"阿尔山市",id:"152202"},{name:"科尔沁右翼前旗",id:"152221"},{name:"科尔沁右翼中旗",id:"152222"},{name:"扎赉特旗",id:"152223"},{name:"突泉县",id:"152224"}]},{name:"锡林郭勒盟",area:[{name:"二连浩特市",id:"152501"},{name:"锡林浩特市",id:"152502"},{name:"阿巴嘎旗",id:"152522"},{name:"苏尼特左旗",id:"152523"},{name:"苏尼特右旗",id:"152524"},{name:"东乌珠穆沁旗",id:"152525"},{name:"西乌珠穆沁旗",id:"152526"},{name:"太仆寺旗",id:"152527"},{name:"镶黄旗",id:"152528"},{name:"正镶白旗",id:"152529"},{name:"正蓝旗",id:"152530"},{name:"多伦县",id:"152531"}]},{name:"阿拉善盟",area:[{name:"阿拉善左旗",id:"152921"},{name:"阿拉善右旗",id:"152922"},{name:"额济纳旗",id:"152923"}]}]},{name:"辽宁省",city:[{name:"沈阳市",area:[{name:"和平区",id:"210102"},{name:"沈河区",id:"210103"},{name:"大东区",id:"210104"},{name:"皇姑区",id:"210105"},{name:"铁西区",id:"210106"},{name:"苏家屯区",id:"210111"},{name:"浑南区",id:"210112"},{name:"沈北新区",id:"210113"},{name:"于洪区",id:"210114"},{name:"辽中县",id:"210122"},{name:"康平县",id:"210123"},{name:"法库县",id:"210124"},{name:"新民市",id:"210181"}]},{name:"大连市",area:[{name:"中山区",id:"210202"},{name:"西岗区",id:"210203"},{name:"沙河口区",id:"210204"},{name:"甘井子区",id:"210211"},{name:"旅顺口区",id:"210212"},{name:"金州区",id:"210213"},{name:"长海县",id:"210224"},{name:"瓦房店市",id:"210281"},{name:"普兰店市",id:"210282"},{name:"庄河市",id:"210283"}]},{name:"鞍山市",area:[{name:"铁东区",id:"210302"},{name:"铁西区",id:"210303"},{name:"立山区",id:"210304"},{name:"千山区",id:"210311"},{name:"台安县",id:"210321"},{name:"岫岩满族自治县",id:"210323"},{name:"海城市",id:"210381"}]},{name:"抚顺市",area:[{name:"新抚区",id:"210402"},{name:"东洲区",id:"210403"},{name:"望花区",id:"210404"},{name:"顺城区",id:"210411"},{name:"抚顺县",id:"210421"},{name:"新宾满族自治县",id:"210422"},{name:"清原满族自治县",id:"210423"}]},{name:"本溪市",area:[{name:"平山区",id:"210502"},{name:"溪湖区",id:"210503"},{name:"明山区",id:"210504"},{name:"南芬区",id:"210505"},{name:"本溪满族自治县",id:"210521"},{name:"桓仁满族自治县",id:"210522"}]},{name:"丹东市",area:[{name:"元宝区",id:"210602"},{name:"振兴区",id:"210603"},{name:"振安区",id:"210604"},{name:"宽甸满族自治县",id:"210624"},{name:"东港市",id:"210681"},{name:"凤城市",id:"210682"}]},{name:"锦州市",area:[{name:"古塔区",id:"210702"},{name:"凌河区",id:"210703"},{name:"太和区",id:"210711"},{name:"黑山县",id:"210726"},{name:"义县",id:"210727"},{name:"凌海市",id:"210781"},{name:"北镇市",id:"210782"}]},{name:"营口市",area:[{name:"站前区",id:"210802"},{name:"西市区",id:"210803"},{name:"鲅鱼圈区",id:"210804"},{name:"老边区",id:"210811"},{name:"盖州市",id:"210881"},{name:"大石桥市",id:"210882"}]},{name:"阜新市",area:[{name:"海州区",id:"210902"},{name:"新邱区",id:"210903"},{name:"太平区",id:"210904"},{name:"清河门区",id:"210905"},{name:"细河区",id:"210911"},{name:"阜新蒙古族自治县",id:"210921"},{name:"彰武县",id:"210922"}]},{name:"辽阳市",area:[{name:"白塔区",id:"211002"},{name:"文圣区",id:"211003"},{name:"宏伟区",id:"211004"},{name:"弓长岭区",id:"211005"},{name:"太子河区",id:"211011"},{name:"辽阳县",id:"211021"},{name:"灯塔市",id:"211081"}]},{name:"盘锦市",area:[{name:"双台子区",id:"211102"},{name:"兴隆台区",id:"211103"},{name:"大洼县",id:"211121"},{name:"盘山县",id:"211122"}]},{name:"铁岭市",area:[{name:"银州区",id:"211202"},{name:"清河区",id:"211204"},{name:"铁岭县",id:"211221"},{name:"西丰县",id:"211223"},{name:"昌图县",id:"211224"},{name:"调兵山市",id:"211281"},{name:"开原市",id:"211282"}]},{name:"朝阳市",area:[{name:"双塔区",id:"211302"},{name:"龙城区",id:"211303"},{name:"朝阳县",id:"211321"},{name:"建平县",id:"211322"},{name:"喀喇沁左翼蒙古族自治县",id:"211324"},{name:"北票市",id:"211381"},{name:"凌源市",id:"211382"}]},{name:"葫芦岛市",area:[{name:"连山区",id:"211402"},{name:"龙港区",id:"211403"},{name:"南票区",id:"211404"},{name:"绥中县",id:"211421"},{name:"建昌县",id:"211422"},{name:"兴城市",id:"211481"}]},{name:"金普新区",area:[{name:"金州新区",id:"211501"},{name:"普湾新区",id:"211502"},{name:"保税区",id:"211503"}]}]},{name:"吉林省",city:[{name:"长春市",area:[{name:"南关区",id:"220102"},{name:"宽城区",id:"220103"},{name:"朝阳区",id:"220104"},{name:"二道区",id:"220105"},{name:"绿园区",id:"220106"},{name:"双阳区",id:"220112"},{name:"九台区",id:"220113"},{name:"农安县",id:"220122"},{name:"榆树市",id:"220182"},{name:"德惠市",id:"220183"}]},{name:"吉林市",area:[{name:"昌邑区",id:"220202"},{name:"龙潭区",id:"220203"},{name:"船营区",id:"220204"},{name:"丰满区",id:"220211"},{name:"永吉县",id:"220221"},{name:"蛟河市",id:"220281"},{name:"桦甸市",id:"220282"},{name:"舒兰市",id:"220283"},{name:"磐石市",id:"220284"}]},{name:"四平市",area:[{name:"铁西区",id:"220302"},{name:"铁东区",id:"220303"},{name:"梨树县",id:"220322"},{name:"伊通满族自治县",id:"220323"},{name:"公主岭市",id:"220381"},{name:"双辽市",id:"220382"}]},{name:"辽源市",area:[{name:"龙山区",id:"220402"},{name:"西安区",id:"220403"},{name:"东丰县",id:"220421"},{name:"东辽县",id:"220422"}]},{name:"通化市",area:[{name:"东昌区",id:"220502"},{name:"二道江区",id:"220503"},{name:"通化县",id:"220521"},{name:"辉南县",id:"220523"},{name:"柳河县",id:"220524"},{name:"梅河口市",id:"220581"},{name:"集安市",id:"220582"}]},{name:"白山市",area:[{name:"浑江区",id:"220602"},{name:"江源区",id:"220605"},{name:"抚松县",id:"220621"},{name:"靖宇县",id:"220622"},{name:"长白朝鲜族自治县",id:"220623"},{name:"临江市",id:"220681"}]},{name:"松原市",area:[{name:"宁江区",id:"220702"},{name:"前郭尔罗斯蒙古族自治县",id:"220721"},{name:"长岭县",id:"220722"},{name:"乾安县",id:"220723"},{name:"扶余市",id:"220781"}]},{name:"白城市",area:[{name:"洮北区",id:"220802"},{name:"镇赉县",id:"220821"},{name:"通榆县",id:"220822"},{name:"洮南市",id:"220881"},{name:"大安市",id:"220882"}]},{name:"延边朝鲜族自治州",area:[{name:"延吉市",id:"222401"},{name:"图们市",id:"222402"},{name:"敦化市",id:"222403"},{name:"珲春市",id:"222404"},{name:"龙井市",id:"222405"},{name:"和龙市",id:"222406"},{name:"汪清县",id:"222424"},{name:"安图县",id:"222426"}]}]},{name:"黑龙江省",city:[{name:"哈尔滨市",area:[{name:"道里区",id:"230102"},{name:"南岗区",id:"230103"},{name:"道外区",id:"230104"},{name:"平房区",id:"230108"},{name:"松北区",id:"230109"},{name:"香坊区",id:"230110"},{name:"呼兰区",id:"230111"},{name:"阿城区",id:"230112"},{name:"双城区",id:"230113"},{name:"依兰县",id:"230123"},{name:"方正县",id:"230124"},{name:"宾县",id:"230125"},{name:"巴彦县",id:"230126"},{name:"木兰县",id:"230127"},{name:"通河县",id:"230128"},{name:"延寿县",id:"230129"},{name:"尚志市",id:"230183"},{name:"五常市",id:"230184"}]},{name:"齐齐哈尔市",area:[{name:"龙沙区",id:"230202"},{name:"建华区",id:"230203"},{name:"铁锋区",id:"230204"},{name:"昂昂溪区",id:"230205"},{name:"富拉尔基区",id:"230206"},{name:"碾子山区",id:"230207"},{name:"梅里斯达斡尔族区",id:"230208"},{name:"龙江县",id:"230221"},{name:"依安县",id:"230223"},{name:"泰来县",id:"230224"},{name:"甘南县",id:"230225"},{name:"富裕县",id:"230227"},{name:"克山县",id:"230229"},{name:"克东县",id:"230230"},{name:"拜泉县",id:"230231"},{name:"讷河市",id:"230281"}]},{name:"鸡西市",area:[{name:"鸡冠区",id:"230302"},{name:"恒山区",id:"230303"},{name:"滴道区",id:"230304"},{name:"梨树区",id:"230305"},{name:"城子河区",id:"230306"},{name:"麻山区",id:"230307"},{name:"鸡东县",id:"230321"},{name:"虎林市",id:"230381"},{name:"密山市",id:"230382"}]},{name:"鹤岗市",area:[{name:"向阳区",id:"230402"},{name:"工农区",id:"230403"},{name:"南山区",id:"230404"},{name:"兴安区",id:"230405"},{name:"东山区",id:"230406"},{name:"兴山区",id:"230407"},{name:"萝北县",id:"230421"},{name:"绥滨县",id:"230422"}]},{name:"双鸭山市",area:[{name:"尖山区",id:"230502"},{name:"岭东区",id:"230503"},{name:"四方台区",id:"230505"},{name:"宝山区",id:"230506"},{name:"集贤县",id:"230521"},{name:"友谊县",id:"230522"},{name:"宝清县",id:"230523"},{name:"饶河县",id:"230524"}]},{name:"大庆市",area:[{name:"萨尔图区",id:"230602"},{name:"龙凤区",id:"230603"},{name:"让胡路区",id:"230604"},{name:"红岗区",id:"230605"},{name:"大同区",id:"230606"},{name:"肇州县",id:"230621"},{name:"肇源县",id:"230622"},{name:"林甸县",id:"230623"},{name:"杜尔伯特蒙古族自治县",id:"230624"}]},{name:"伊春市",area:[{name:"伊春区",id:"230702"},{name:"南岔区",id:"230703"},{name:"友好区",id:"230704"},{name:"西林区",id:"230705"},{name:"翠峦区",id:"230706"},{name:"新青区",id:"230707"},{name:"美溪区",id:"230708"},{name:"金山屯区",id:"230709"},{name:"五营区",id:"230710"},{name:"乌马河区",id:"230711"},{name:"汤旺河区",id:"230712"},{name:"带岭区",id:"230713"},{name:"乌伊岭区",id:"230714"},{name:"红星区",id:"230715"},{name:"上甘岭区",id:"230716"},{name:"嘉荫县",id:"230722"},{name:"铁力市",id:"230781"}]},{name:"佳木斯市",area:[{name:"向阳区",id:"230803"},{name:"前进区",id:"230804"},{name:"东风区",id:"230805"},{name:"郊区",id:"230811"},{name:"桦南县",id:"230822"},{name:"桦川县",id:"230826"},{name:"汤原县",id:"230828"},{name:"抚远县",id:"230833"},{name:"同江市",id:"230881"},{name:"富锦市",id:"230882"}]},{name:"七台河市",area:[{name:"新兴区",id:"230902"},{name:"桃山区",id:"230903"},{name:"茄子河区",id:"230904"},{name:"勃利县",id:"230921"}]},{name:"牡丹江市",area:[{name:"东安区",id:"231002"},{name:"阳明区",id:"231003"},{name:"爱民区",id:"231004"},{name:"西安区",id:"231005"},{name:"东宁县",id:"231024"},{name:"林口县",id:"231025"},{name:"绥芬河市",id:"231081"},{name:"海林市",id:"231083"},{name:"宁安市",id:"231084"},{name:"穆棱市",id:"231085"}]},{name:"黑河市",area:[{name:"爱辉区",id:"231102"},{name:"嫩江县",id:"231121"},{name:"逊克县",id:"231123"},{name:"孙吴县",id:"231124"},{name:"北安市",id:"231181"},{name:"五大连池市",id:"231182"}]},{name:"绥化市",area:[{name:"北林区",id:"231202"},{name:"望奎县",id:"231221"},{name:"兰西县",id:"231222"},{name:"青冈县",id:"231223"},{name:"庆安县",id:"231224"},{name:"明水县",id:"231225"},{name:"绥棱县",id:"231226"},{name:"安达市",id:"231281"},{name:"肇东市",id:"231282"},{name:"海伦市",id:"231283"}]},{name:"大兴安岭地区",area:[{name:"加格达奇区",id:"232701"},{name:"新林区",id:"232702"},{name:"松岭区",id:"232703"},{name:"呼中区",id:"232704"},{name:"呼玛县",id:"232721"},{name:"塔河县",id:"232722"},{name:"漠河县",id:"232723"}]}]},{name:"上海",city:[{name:"上海市",area:[{name:"黄浦区",id:"310101"},{name:"徐汇区",id:"310104"},{name:"长宁区",id:"310105"},{name:"静安区",id:"310106"},{name:"普陀区",id:"310107"},{name:"闸北区",id:"310108"},{name:"虹口区",id:"310109"},{name:"杨浦区",id:"310110"},{name:"闵行区",id:"310112"},{name:"宝山区",id:"310113"},{name:"嘉定区",id:"310114"},{name:"浦东新区",id:"310115"},{name:"金山区",id:"310116"},{name:"松江区",id:"310117"},{name:"青浦区",id:"310118"},{name:"奉贤区",id:"310120"},{name:"崇明县",id:"310230"}]}]},{name:"江苏省",city:[{name:"南京市",area:[{name:"玄武区",id:"320102"},{name:"秦淮区",id:"320104"},{name:"建邺区",id:"320105"},{name:"鼓楼区",id:"320106"},{name:"浦口区",id:"320111"},{name:"栖霞区",id:"320113"},{name:"雨花台区",id:"320114"},{name:"江宁区",id:"320115"},{name:"六合区",id:"320116"},{name:"溧水区",id:"320117"},{name:"高淳区",id:"320118"}]},{name:"无锡市",area:[{name:"崇安区",id:"320202"},{name:"南长区",id:"320203"},{name:"北塘区",id:"320204"},{name:"锡山区",id:"320205"},{name:"惠山区",id:"320206"},{name:"滨湖区",id:"320211"},{name:"江阴市",id:"320281"},{name:"宜兴市",id:"320282"}]},{name:"徐州市",area:[{name:"鼓楼区",id:"320302"},{name:"云龙区",id:"320303"},{name:"贾汪区",id:"320305"},{name:"泉山区",id:"320311"},{name:"铜山区",id:"320312"},{name:"丰县",id:"320321"},{name:"沛县",id:"320322"},{name:"睢宁县",id:"320324"},{name:"新沂市",id:"320381"},{name:"邳州市",id:"320382"}]},{name:"常州市",area:[{name:"天宁区",id:"320402"},{name:"钟楼区",id:"320404"},{name:"戚墅堰区",id:"320405"},{name:"新北区",id:"320411"},{name:"武进区",id:"320412"},{name:"溧阳市",id:"320481"},{name:"金坛市",id:"320482"}]},{name:"苏州市",area:[{name:"虎丘区",id:"320505"},{name:"吴中区",id:"320506"},{name:"相城区",id:"320507"},{name:"姑苏区",id:"320508"},{name:"吴江区",id:"320509"},{name:"常熟市",id:"320581"},{name:"张家港市",id:"320582"},{name:"昆山市",id:"320583"},{name:"太仓市",id:"320585"}]},{name:"南通市",area:[{name:"崇川区",id:"320602"},{name:"港闸区",id:"320611"},{name:"通州区",id:"320612"},{name:"海安县",id:"320621"},{name:"如东县",id:"320623"},{name:"启东市",id:"320681"},{name:"如皋市",id:"320682"},{name:"海门市",id:"320684"}]},{name:"连云港市",area:[{name:"连云区",id:"320703"},{name:"海州区",id:"320706"},{name:"赣榆区",id:"320707"},{name:"东海县",id:"320722"},{name:"灌云县",id:"320723"},{name:"灌南县",id:"320724"}]},{name:"淮安市",area:[{name:"清河区",id:"320802"},{name:"淮安区",id:"320803"},{name:"淮阴区",id:"320804"},{name:"清浦区",id:"320811"},{name:"涟水县",id:"320826"},{name:"洪泽县",id:"320829"},{name:"盱眙县",id:"320830"},{name:"金湖县",id:"320831"}]},{name:"盐城市",area:[{name:"亭湖区",id:"320902"},{name:"盐都区",id:"320903"},{name:"响水县",id:"320921"},{name:"滨海县",id:"320922"},{name:"阜宁县",id:"320923"},{name:"射阳县",id:"320924"},{name:"建湖县",id:"320925"},{name:"东台市",id:"320981"},{name:"大丰市",id:"320982"}]},{name:"扬州市",area:[{name:"广陵区",id:"321002"},{name:"邗江区",id:"321003"},{name:"江都区",id:"321012"},{name:"宝应县",id:"321023"},{name:"仪征市",id:"321081"},{name:"高邮市",id:"321084"}]},{name:"镇江市",area:[{name:"京口区",id:"321102"},{name:"润州区",id:"321111"},{name:"丹徒区",id:"321112"},{name:"丹阳市",id:"321181"},{name:"扬中市",id:"321182"},{name:"句容市",id:"321183"}]},{name:"泰州市",area:[{name:"海陵区",id:"321202"},{name:"高港区",id:"321203"},{name:"姜堰区",id:"321204"},{name:"兴化市",id:"321281"},{name:"靖江市",id:"321282"},{name:"泰兴市",id:"321283"}]},{name:"宿迁市",area:[{name:"宿城区",id:"321302"},{name:"宿豫区",id:"321311"},{name:"沭阳县",id:"321322"},{name:"泗阳县",id:"321323"},{name:"泗洪县",id:"321324"}]}]},{name:"浙江省",city:[{name:"杭州市",area:[{name:"上城区",id:"330102"},{name:"下城区",id:"330103"},{name:"江干区",id:"330104"},{name:"拱墅区",id:"330105"},{name:"西湖区",id:"330106"},{name:"滨江区",id:"330108"},{name:"萧山区",id:"330109"},{name:"余杭区",id:"330110"},{name:"桐庐县",id:"330122"},{name:"淳安县",id:"330127"},{name:"建德市",id:"330182"},{name:"富阳区",id:"330183"},{name:"临安市",id:"330185"}]},{name:"宁波市",area:[{name:"海曙区",id:"330203"},{name:"江东区",id:"330204"},{name:"江北区",id:"330205"},{name:"北仑区",id:"330206"},{name:"镇海区",id:"330211"},{name:"鄞州区",id:"330212"},{name:"象山县",id:"330225"},{name:"宁海县",id:"330226"},{name:"余姚市",id:"330281"},{name:"慈溪市",id:"330282"},{name:"奉化市",id:"330283"}]},{name:"温州市",area:[{name:"鹿城区",id:"330302"},{name:"龙湾区",id:"330303"},{name:"瓯海区",id:"330304"},{name:"洞头县",id:"330322"},{name:"永嘉县",id:"330324"},{name:"平阳县",id:"330326"},{name:"苍南县",id:"330327"},{name:"文成县",id:"330328"},{name:"泰顺县",id:"330329"},{name:"瑞安市",id:"330381"},{name:"乐清市",id:"330382"}]},{name:"嘉兴市",area:[{name:"南湖区",id:"330402"},{name:"秀洲区",id:"330411"},{name:"嘉善县",id:"330421"},{name:"海盐县",id:"330424"},{name:"海宁市",id:"330481"},{name:"平湖市",id:"330482"},{name:"桐乡市",id:"330483"}]},{name:"湖州市",area:[{name:"吴兴区",id:"330502"},{name:"南浔区",id:"330503"},{name:"德清县",id:"330521"},{name:"长兴县",id:"330522"},{name:"安吉县",id:"330523"}]},{name:"绍兴市",area:[{name:"越城区",id:"330602"},{name:"柯桥区",id:"330603"},{name:"上虞区",id:"330604"},{name:"新昌县",id:"330624"},{name:"诸暨市",id:"330681"},{name:"嵊州市",id:"330683"}]},{name:"金华市",area:[{name:"婺城区",id:"330702"},{name:"金东区",id:"330703"},{name:"武义县",id:"330723"},{name:"浦江县",id:"330726"},{name:"磐安县",id:"330727"},{name:"兰溪市",id:"330781"},{name:"义乌市",id:"330782"},{name:"东阳市",id:"330783"},{name:"永康市",id:"330784"}]},{name:"衢州市",area:[{name:"柯城区",id:"330802"},{name:"衢江区",id:"330803"},{name:"常山县",id:"330822"},{name:"开化县",id:"330824"},{name:"龙游县",id:"330825"},{name:"江山市",id:"330881"}]},{name:"舟山市",area:[{name:"定海区",id:"330902"},{name:"普陀区",id:"330903"},{name:"岱山县",id:"330921"},{name:"嵊泗县",id:"330922"}]},{name:"台州市",area:[{name:"椒江区",id:"331002"},{name:"黄岩区",id:"331003"},{name:"路桥区",id:"331004"},{name:"玉环县",id:"331021"},{name:"三门县",id:"331022"},{name:"天台县",id:"331023"},{name:"仙居县",id:"331024"},{name:"温岭市",id:"331081"},{name:"临海市",id:"331082"}]},{name:"丽水市",area:[{name:"莲都区",id:"331102"},{name:"青田县",id:"331121"},{name:"缙云县",id:"331122"},{name:"遂昌县",id:"331123"},{name:"松阳县",id:"331124"},{name:"云和县",id:"331125"},{name:"庆元县",id:"331126"},{name:"景宁畲族自治县",id:"331127"},{name:"龙泉市",id:"331181"}]},{name:"舟山群岛新区",area:[{name:"金塘岛",id:"331201"},{name:"六横岛",id:"331202"},{name:"衢山岛",id:"331203"},{name:"舟山本岛西北部",id:"331204"},{name:"岱山岛西南部",id:"331205"},{name:"泗礁岛",id:"331206"},{name:"朱家尖岛",id:"331207"},{name:"洋山岛",id:"331208"},{name:"长涂岛",id:"331209"},{name:"虾峙岛",id:"331210"}]}]},{name:"安徽省",city:[{name:"合肥市",area:[{name:"瑶海区",id:"340102"},{name:"庐阳区",id:"340103"},{name:"蜀山区",id:"340104"},{name:"包河区",id:"340111"},{name:"长丰县",id:"340121"},{name:"肥东县",id:"340122"},{name:"肥西县",id:"340123"},{name:"庐江县",id:"340124"},{name:"高薪区",id:"340171"},{name:"经开区",id:"340172"},{name:"新站区",id:"340173"},{name:"巢湖市",id:"340181"}]},{name:"芜湖市",area:[{name:"镜湖区",id:"340202"},{name:"弋江区",id:"340203"},{name:"鸠江区",id:"340207"},{name:"三山区",id:"340208"},{name:"芜湖县",id:"340221"},{name:"繁昌县",id:"340222"},{name:"南陵县",id:"340223"},{name:"无为县",id:"340225"}]},{name:"蚌埠市",area:[{name:"龙子湖区",id:"340302"},{name:"蚌山区",id:"340303"},{name:"禹会区",id:"340304"},{name:"淮上区",id:"340311"},{name:"怀远县",id:"340321"},{name:"五河县",id:"340322"},{name:"固镇县",id:"340323"}]},{name:"淮南市",area:[{name:"大通区",id:"340402"},{name:"田家庵区",id:"340403"},{name:"谢家集区",id:"340404"},{name:"八公山区",id:"340405"},{name:"潘集区",id:"340406"},{name:"凤台县",id:"340421"}]},{name:"马鞍山市",area:[{name:"花山区",id:"340503"},{name:"雨山区",id:"340504"},{name:"博望区",id:"340506"},{name:"当涂县",id:"340521"},{name:"含山县",id:"340522"},{name:"和县",id:"340523"}]},{name:"淮北市",area:[{name:"杜集区",id:"340602"},{name:"相山区",id:"340603"},{name:"烈山区",id:"340604"},{name:"濉溪县",id:"340621"}]},{name:"铜陵市",area:[{name:"铜官山区",id:"340702"},{name:"狮子山区",id:"340703"},{name:"郊区",id:"340711"},{name:"铜陵县",id:"340721"}]},{name:"安庆市",area:[{name:"迎江区",id:"340802"},{name:"大观区",id:"340803"},{name:"宜秀区",id:"340811"},{name:"怀宁县",id:"340822"},{name:"枞阳县",id:"340823"},{name:"潜山县",id:"340824"},{name:"太湖县",id:"340825"},{name:"宿松县",id:"340826"},{name:"望江县",id:"340827"},{name:"岳西县",id:"340828"},{name:"桐城市",id:"340881"}]},{name:"黄山市",area:[{name:"屯溪区",id:"341002"},{name:"黄山区",id:"341003"},{name:"徽州区",id:"341004"},{name:"歙县",id:"341021"},{name:"休宁县",id:"341022"},{name:"黟县",id:"341023"},{name:"祁门县",id:"341024"}]},{name:"滁州市",area:[{name:"琅琊区",id:"341102"},{name:"南谯区",id:"341103"},{name:"来安县",id:"341122"},{name:"全椒县",id:"341124"},{name:"定远县",id:"341125"},{name:"凤阳县",id:"341126"},{name:"天长市",id:"341181"},{name:"明光市",id:"341182"}]},{name:"阜阳市",area:[{name:"颍州区",id:"341202"},{name:"颍东区",id:"341203"},{name:"颍泉区",id:"341204"},{name:"临泉县",id:"341221"},{name:"太和县",id:"341222"},{name:"阜南县",id:"341225"},{name:"颍上县",id:"341226"},{name:"界首市",id:"341282"}]},{name:"宿州市",area:[{name:"埇桥区",id:"341302"},{name:"砀山县",id:"341321"},{name:"萧县",id:"341322"},{name:"灵璧县",id:"341323"},{name:"泗县",id:"341324"}]},{name:"六安市",area:[{name:"金安区",id:"341502"},{name:"裕安区",id:"341503"},{name:"寿县",id:"341521"},{name:"霍邱县",id:"341522"},{name:"舒城县",id:"341523"},{name:"金寨县",id:"341524"},{name:"霍山县",id:"341525"}]},{name:"亳州市",area:[{name:"谯城区",id:"341602"},{name:"涡阳县",id:"341621"},{name:"蒙城县",id:"341622"},{name:"利辛县",id:"341623"}]},{name:"池州市",area:[{name:"贵池区",id:"341702"},{name:"东至县",id:"341721"},{name:"石台县",id:"341722"},{name:"青阳县",id:"341723"}]},{name:"宣城市",area:[{name:"宣州区",id:"341802"},{name:"郎溪县",id:"341821"},{name:"广德县",id:"341822"},{name:"泾县",id:"341823"},{name:"绩溪县",id:"341824"},{name:"旌德县",id:"341825"},{name:"宁国市",id:"341881"}]}]},{name:"福建省",city:[{name:"福州市",area:[{name:"鼓楼区",id:"350102"},{name:"台江区",id:"350103"},{name:"仓山区",id:"350104"},{name:"马尾区",id:"350105"},{name:"晋安区",id:"350111"},{name:"闽侯县",id:"350121"},{name:"连江县",id:"350122"},{name:"罗源县",id:"350123"},{name:"闽清县",id:"350124"},{name:"永泰县",id:"350125"},{name:"平潭县",id:"350128"},{name:"福清市",id:"350181"},{name:"长乐市",id:"350182"}]},{name:"厦门市",area:[{name:"思明区",id:"350203"},{name:"海沧区",id:"350205"},{name:"湖里区",id:"350206"},{name:"集美区",id:"350211"},{name:"同安区",id:"350212"},{name:"翔安区",id:"350213"}]},{name:"莆田市",area:[{name:"城厢区",id:"350302"},{name:"涵江区",id:"350303"},{name:"荔城区",id:"350304"},{name:"秀屿区",id:"350305"},{name:"仙游县",id:"350322"}]},{name:"三明市",area:[{name:"梅列区",id:"350402"},{name:"三元区",id:"350403"},{name:"明溪县",id:"350421"},{name:"清流县",id:"350423"},{name:"宁化县",id:"350424"},{name:"大田县",id:"350425"},{name:"尤溪县",id:"350426"},{name:"沙县",id:"350427"},{name:"将乐县",id:"350428"},{name:"泰宁县",id:"350429"},{name:"建宁县",id:"350430"},{name:"永安市",id:"350481"}]},{name:"泉州市",area:[{name:"鲤城区",id:"350502"},{name:"丰泽区",id:"350503"},{name:"洛江区",id:"350504"},{name:"泉港区",id:"350505"},{name:"惠安县",id:"350521"},{name:"安溪县",id:"350524"},{name:"永春县",id:"350525"},{name:"德化县",id:"350526"},{name:"金门县",id:"350527"},{name:"石狮市",id:"350581"},{name:"晋江市",id:"350582"},{name:"南安市",id:"350583"}]},{name:"漳州市",area:[{name:"芗城区",id:"350602"},{name:"龙文区",id:"350603"},{name:"云霄县",id:"350622"},{name:"漳浦县",id:"350623"},{name:"诏安县",id:"350624"},{name:"长泰县",id:"350625"},{name:"东山县",id:"350626"},{name:"南靖县",id:"350627"},{name:"平和县",id:"350628"},{name:"华安县",id:"350629"},{name:"龙海市",id:"350681"}]},{name:"南平市",area:[{name:"延平区",id:"350702"},{name:"建阳区",id:"350703"},{name:"顺昌县",id:"350721"},{name:"浦城县",id:"350722"},{name:"光泽县",id:"350723"},{name:"松溪县",id:"350724"},{name:"政和县",id:"350725"},{name:"邵武市",id:"350781"},{name:"武夷山市",id:"350782"},{name:"建瓯市",id:"350783"}]},{name:"龙岩市",area:[{name:"新罗区",id:"350802"},{name:"长汀县",id:"350821"},{name:"永定区",id:"350822"},{name:"上杭县",id:"350823"},{name:"武平县",id:"350824"},{name:"连城县",id:"350825"},{name:"漳平市",id:"350881"}]},{name:"宁德市",area:[{name:"蕉城区",id:"350902"},{name:"霞浦县",id:"350921"},{name:"古田县",id:"350922"},{name:"屏南县",id:"350923"},{name:"寿宁县",id:"350924"},{name:"周宁县",id:"350925"},{name:"柘荣县",id:"350926"},{name:"福安市",id:"350981"},{name:"福鼎市",id:"350982"}]}]},{name:"江西省",city:[{name:"南昌市",area:[{name:"东湖区",id:"360102"},{name:"西湖区",id:"360103"},{name:"青云谱区",id:"360104"},{name:"湾里区",id:"360105"},{name:"青山湖区",id:"360111"},{name:"南昌县",id:"360121"},{name:"新建县",id:"360122"},{name:"安义县",id:"360123"},{name:"进贤县",id:"360124"}]},{name:"景德镇市",area:[{name:"昌江区",id:"360202"},{name:"珠山区",id:"360203"},{name:"浮梁县",id:"360222"},{name:"乐平市",id:"360281"}]},{name:"萍乡市",area:[{name:"安源区",id:"360302"},{name:"湘东区",id:"360313"},{name:"莲花县",id:"360321"},{name:"上栗县",id:"360322"},{name:"芦溪县",id:"360323"}]},{name:"九江市",area:[{name:"庐山区",id:"360402"},{name:"浔阳区",id:"360403"},{name:"九江县",id:"360421"},{name:"武宁县",id:"360423"},{name:"修水县",id:"360424"},{name:"永修县",id:"360425"},{name:"德安县",id:"360426"},{name:"星子县",id:"360427"},{name:"都昌县",id:"360428"},{name:"湖口县",id:"360429"},{name:"彭泽县",id:"360430"},{name:"瑞昌市",id:"360481"},{name:"共青城市",id:"360482"}]},{name:"新余市",area:[{name:"渝水区",id:"360502"},{name:"分宜县",id:"360521"}]},{name:"鹰潭市",area:[{name:"月湖区",id:"360602"},{name:"余江县",id:"360622"},{name:"贵溪市",id:"360681"}]},{name:"赣州市",area:[{name:"章贡区",id:"360702"},{name:"南康区",id:"360703"},{name:"赣县",id:"360721"},{name:"信丰县",id:"360722"},{name:"大余县",id:"360723"},{name:"上犹县",id:"360724"},{name:"崇义县",id:"360725"},{name:"安远县",id:"360726"},{name:"龙南县",id:"360727"},{name:"定南县",id:"360728"},{name:"全南县",id:"360729"},{name:"宁都县",id:"360730"},{name:"于都县",id:"360731"},{name:"兴国县",id:"360732"},{name:"会昌县",id:"360733"},{name:"寻乌县",id:"360734"},{name:"石城县",id:"360735"},{name:"瑞金市",id:"360781"}]},{name:"吉安市",area:[{name:"吉州区",id:"360802"},{name:"青原区",id:"360803"},{name:"吉安县",id:"360821"},{name:"吉水县",id:"360822"},{name:"峡江县",id:"360823"},{name:"新干县",id:"360824"},{name:"永丰县",id:"360825"},{name:"泰和县",id:"360826"},{name:"遂川县",id:"360827"},{name:"万安县",id:"360828"},{name:"安福县",id:"360829"},{name:"永新县",id:"360830"},{name:"井冈山市",id:"360881"}]},{name:"宜春市",area:[{name:"袁州区",id:"360902"},{name:"奉新县",id:"360921"},{name:"万载县",id:"360922"},{name:"上高县",id:"360923"},{name:"宜丰县",id:"360924"},{name:"靖安县",id:"360925"},{name:"铜鼓县",id:"360926"},{name:"丰城市",id:"360981"},{name:"樟树市",id:"360982"},{name:"高安市",id:"360983"}]},{name:"抚州市",area:[{name:"临川区",id:"361002"},{name:"南城县",id:"361021"},{name:"黎川县",id:"361022"},{name:"南丰县",id:"361023"},{name:"崇仁县",id:"361024"},{name:"乐安县",id:"361025"},{name:"宜黄县",id:"361026"},{name:"金溪县",id:"361027"},{name:"资溪县",id:"361028"},{name:"东乡县",id:"361029"},{name:"广昌县",id:"361030"}]},{name:"上饶市",area:[{name:"信州区",id:"361102"},{name:"上饶县",id:"361121"},{name:"广丰县",id:"361122"},{name:"玉山县",id:"361123"},{name:"铅山县",id:"361124"},{name:"横峰县",id:"361125"},{name:"弋阳县",id:"361126"},{name:"余干县",id:"361127"},{name:"鄱阳县",id:"361128"},{name:"万年县",id:"361129"},{name:"婺源县",id:"361130"},{name:"德兴市",id:"361181"}]}]},{name:"山东省",city:[{name:"济南市",area:[{name:"历下区",id:"370102"},{name:"市中区",id:"370103"},{name:"槐荫区",id:"370104"},{name:"天桥区",id:"370105"},{name:"历城区",id:"370112"},{name:"长清区",id:"370113"},{name:"平阴县",id:"370124"},{name:"济阳县",id:"370125"},{name:"商河县",id:"370126"},{name:"章丘市",id:"370181"}]},{name:"青岛市",area:[{name:"市南区",id:"370202"},{name:"市北区",id:"370203"},{name:"黄岛区",id:"370211"},{name:"崂山区",id:"370212"},{name:"李沧区",id:"370213"},{name:"城阳区",id:"370214"},{name:"胶州市",id:"370281"},{name:"即墨市",id:"370282"},{name:"平度市",id:"370283"},{name:"莱西市",id:"370285"},{name:"西海岸新区",id:"370286"}]},{name:"淄博市",area:[{name:"淄川区",id:"370302"},{name:"张店区",id:"370303"},{name:"博山区",id:"370304"},{name:"临淄区",id:"370305"},{name:"周村区",id:"370306"},{name:"桓台县",id:"370321"},{name:"高青县",id:"370322"},{name:"沂源县",id:"370323"}]},{name:"枣庄市",area:[{name:"市中区",id:"370402"},{name:"薛城区",id:"370403"},{name:"峄城区",id:"370404"},{name:"台儿庄区",id:"370405"},{name:"山亭区",id:"370406"},{name:"滕州市",id:"370481"}]},{name:"东营市",area:[{name:"东营区",id:"370502"},{name:"河口区",id:"370503"},{name:"垦利县",id:"370521"},{name:"利津县",id:"370522"},{name:"广饶县",id:"370523"}]},{name:"烟台市",area:[{name:"芝罘区",id:"370602"},{name:"福山区",id:"370611"},{name:"牟平区",id:"370612"},{name:"莱山区",id:"370613"},{name:"长岛县",id:"370634"},{name:"龙口市",id:"370681"},{name:"莱阳市",id:"370682"},{name:"莱州市",id:"370683"},{name:"蓬莱市",id:"370684"},{name:"招远市",id:"370685"},{name:"栖霞市",id:"370686"},{name:"海阳市",id:"370687"}]},{name:"潍坊市",area:[{name:"潍城区",id:"370702"},{name:"寒亭区",id:"370703"},{name:"坊子区",id:"370704"},{name:"奎文区",id:"370705"},{name:"临朐县",id:"370724"},{name:"昌乐县",id:"370725"},{name:"青州市",id:"370781"},{name:"诸城市",id:"370782"},{name:"寿光市",id:"370783"},{name:"安丘市",id:"370784"},{name:"高密市",id:"370785"},{name:"昌邑市",id:"370786"}]},{name:"济宁市",area:[{name:"任城区",id:"370811"},{name:"兖州区",id:"370812"},{name:"微山县",id:"370826"},{name:"鱼台县",id:"370827"},{name:"金乡县",id:"370828"},{name:"嘉祥县",id:"370829"},{name:"汶上县",id:"370830"},{name:"泗水县",id:"370831"},{name:"梁山县",id:"370832"},{name:"曲阜市",id:"370881"},{name:"邹城市",id:"370883"}]},{name:"泰安市",area:[{name:"泰山区",id:"370902"},{name:"岱岳区",id:"370911"},{name:"宁阳县",id:"370921"},{name:"东平县",id:"370923"},{name:"新泰市",id:"370982"},{name:"肥城市",id:"370983"}]},{name:"威海市",area:[{name:"环翠区",id:"371002"},{name:"文登区",id:"371003"},{name:"荣成市",id:"371082"},{name:"乳山市",id:"371083"}]},{name:"日照市",area:[{name:"东港区",id:"371102"},{name:"岚山区",id:"371103"},{name:"五莲县",id:"371121"},{name:"莒县",id:"371122"}]},{name:"莱芜市",area:[{name:"莱城区",id:"371202"},{name:"钢城区",id:"371203"}]},{name:"临沂市",area:[{name:"兰山区",id:"371302"},{name:"罗庄区",id:"371311"},{name:"河东区",id:"371312"},{name:"沂南县",id:"371321"},{name:"郯城县",id:"371322"},{name:"沂水县",id:"371323"},{name:"兰陵县",id:"371324"},{name:"费县",id:"371325"},{name:"平邑县",id:"371326"},{name:"莒南县",id:"371327"},{name:"蒙阴县",id:"371328"},{name:"临沭县",id:"371329"}]},{name:"德州市",area:[{name:"德城区",id:"371402"},{name:"陵城区",id:"371403"},{name:"宁津县",id:"371422"},{name:"庆云县",id:"371423"},{name:"临邑县",id:"371424"},{name:"齐河县",id:"371425"},{name:"平原县",id:"371426"},{name:"夏津县",id:"371427"},{name:"武城县",id:"371428"},{name:"乐陵市",id:"371481"},{name:"禹城市",id:"371482"}]},{name:"聊城市",area:[{name:"东昌府区",id:"371502"},{name:"阳谷县",id:"371521"},{name:"莘县",id:"371522"},{name:"茌平县",id:"371523"},{name:"东阿县",id:"371524"},{name:"冠县",id:"371525"},{name:"高唐县",id:"371526"},{name:"临清市",id:"371581"}]},{name:"滨州市",area:[{name:"滨城区",id:"371602"},{name:"沾化区",id:"371603"},{name:"惠民县",id:"371621"},{name:"阳信县",id:"371622"},{name:"无棣县",id:"371623"},{name:"博兴县",id:"371625"},{name:"邹平县",id:"371626"},{name:"北海新区",id:"371627"}]},{name:"菏泽市",area:[{name:"牡丹区",id:"371702"},{name:"曹县",id:"371721"},{name:"单县",id:"371722"},{name:"成武县",id:"371723"},{name:"巨野县",id:"371724"},{name:"郓城县",id:"371725"},{name:"鄄城县",id:"371726"},{name:"定陶县",id:"371727"},{name:"东明县",id:"371728"}]}]},{name:"河南省",city:[{name:"郑州市",area:[{name:"中原区",id:"410102"},{name:"二七区",id:"410103"},{name:"管城回族区",id:"410104"},{name:"金水区",id:"410105"},{name:"上街区",id:"410106"},{name:"惠济区",id:"410108"},{name:"中牟县",id:"410122"},{name:"巩义市",id:"410181"},{name:"荥阳市",id:"410182"},{name:"新密市",id:"410183"},{name:"新郑市",id:"410184"},{name:"登封市",id:"410185"}]},{name:"开封市",area:[{name:"龙亭区",id:"410202"},{name:"顺河回族区",id:"410203"},{name:"鼓楼区",id:"410204"},{name:"禹王台区",id:"410205"},{name:"祥符区",id:"410212"},{name:"杞县",id:"410221"},{name:"通许县",id:"410222"},{name:"尉氏县",id:"410223"},{name:"兰考县",id:"410225"}]},{name:"洛阳市",area:[{name:"老城区",id:"410302"},{name:"西工区",id:"410303"},{name:"瀍河回族区",id:"410304"},{name:"涧西区",id:"410305"},{name:"吉利区",id:"410306"},{name:"洛龙区",id:"410311"},{name:"孟津县",id:"410322"},{name:"新安县",id:"410323"},{name:"栾川县",id:"410324"},{name:"嵩县",id:"410325"},{name:"汝阳县",id:"410326"},{name:"宜阳县",id:"410327"},{name:"洛宁县",id:"410328"},{name:"伊川县",id:"410329"},{name:"偃师市",id:"410381"}]},{name:"平顶山市",area:[{name:"新华区",id:"410402"},{name:"卫东区",id:"410403"},{name:"石龙区",id:"410404"},{name:"湛河区",id:"410411"},{name:"宝丰县",id:"410421"},{name:"叶县",id:"410422"},{name:"鲁山县",id:"410423"},{name:"郏县",id:"410425"},{name:"舞钢市",id:"410481"},{name:"汝州市",id:"410482"}]},{name:"安阳市",area:[{name:"文峰区",id:"410502"},{name:"北关区",id:"410503"},{name:"殷都区",id:"410505"},{name:"龙安区",id:"410506"},{name:"安阳县",id:"410522"},{name:"汤阴县",id:"410523"},{name:"滑县",id:"410526"},{name:"内黄县",id:"410527"},{name:"林州市",id:"410581"}]},{name:"鹤壁市",area:[{name:"鹤山区",id:"410602"},{name:"山城区",id:"410603"},{name:"淇滨区",id:"410611"},{name:"浚县",id:"410621"},{name:"淇县",id:"410622"}]},{name:"新乡市",area:[{name:"红旗区",id:"410702"},{name:"卫滨区",id:"410703"},{name:"凤泉区",id:"410704"},{name:"牧野区",id:"410711"},{name:"新乡县",id:"410721"},{name:"获嘉县",id:"410724"},{name:"原阳县",id:"410725"},{name:"延津县",id:"410726"},{name:"封丘县",id:"410727"},{name:"长垣县",id:"410728"},{name:"卫辉市",id:"410781"},{name:"辉县市",id:"410782"}]},{name:"焦作市",area:[{name:"解放区",id:"410802"},{name:"中站区",id:"410803"},{name:"马村区",id:"410804"},{name:"山阳区",id:"410811"},{name:"修武县",id:"410821"},{name:"博爱县",id:"410822"},{name:"武陟县",id:"410823"},{name:"温县",id:"410825"},{name:"沁阳市",id:"410882"},{name:"孟州市",id:"410883"}]},{name:"濮阳市",area:[{name:"华龙区",id:"410902"},{name:"清丰县",id:"410922"},{name:"南乐县",id:"410923"},{name:"范县",id:"410926"},{name:"台前县",id:"410927"},{name:"濮阳县",id:"410928"}]},{name:"许昌市",area:[{name:"魏都区",id:"411002"},{name:"许昌县",id:"411023"},{name:"鄢陵县",id:"411024"},{name:"襄城县",id:"411025"},{name:"禹州市",id:"411081"},{name:"长葛市",id:"411082"}]},{name:"漯河市",area:[{name:"源汇区",id:"411102"},{name:"郾城区",id:"411103"},{name:"召陵区",id:"411104"},{name:"舞阳县",id:"411121"},{name:"临颍县",id:"411122"}]},{name:"三门峡市",area:[{name:"湖滨区",id:"411202"},{name:"渑池县",id:"411221"},{name:"陕县",id:"411222"},{name:"卢氏县",id:"411224"},{name:"义马市",id:"411281"},{name:"灵宝市",id:"411282"}]},{name:"南阳市",area:[{name:"宛城区",id:"411302"},{name:"卧龙区",id:"411303"},{name:"南召县",id:"411321"},{name:"方城县",id:"411322"},{name:"西峡县",id:"411323"},{name:"镇平县",id:"411324"},{name:"内乡县",id:"411325"},{name:"淅川县",id:"411326"},{name:"社旗县",id:"411327"},{name:"唐河县",id:"411328"},{name:"新野县",id:"411329"},{name:"桐柏县",id:"411330"},{name:"邓州市",id:"411381"}]},{name:"商丘市",area:[{name:"梁园区",id:"411402"},{name:"睢阳区",id:"411403"},{name:"民权县",id:"411421"},{name:"睢县",id:"411422"},{name:"宁陵县",id:"411423"},{name:"柘城县",id:"411424"},{name:"虞城县",id:"411425"},{name:"夏邑县",id:"411426"},{name:"永城市",id:"411481"}]},{name:"信阳市",area:[{name:"浉河区",id:"411502"},{name:"平桥区",id:"411503"},{name:"罗山县",id:"411521"},{name:"光山县",id:"411522"},{name:"新县",id:"411523"},{name:"商城县",id:"411524"},{name:"固始县",id:"411525"},{name:"潢川县",id:"411526"},{name:"淮滨县",id:"411527"},{name:"息县",id:"411528"}]},{name:"周口市",area:[{name:"川汇区",id:"411602"},{name:"扶沟县",id:"411621"},{name:"西华县",id:"411622"},{name:"商水县",id:"411623"},{name:"沈丘县",id:"411624"},{name:"郸城县",id:"411625"},{name:"淮阳县",id:"411626"},{name:"太康县",id:"411627"},{name:"鹿邑县",id:"411628"},{name:"项城市",id:"411681"}]},{name:"驻马店市",area:[{name:"驿城区",id:"411702"},{name:"西平县",id:"411721"},{name:"上蔡县",id:"411722"},{name:"平舆县",id:"411723"},{name:"正阳县",id:"411724"},{name:"确山县",id:"411725"},{name:"泌阳县",id:"411726"},{name:"汝南县",id:"411727"},{name:"遂平县",id:"411728"},{name:"新蔡县",id:"411729"}]},{name:"直辖县级",area:[{name:"济源市",id:"419001"}]}]},{name:"湖北省",city:[{name:"武汉市",area:[{name:"江岸区",id:"420102"},{name:"江汉区",id:"420103"},{name:"硚口区",id:"420104"},{name:"汉阳区",id:"420105"},{name:"武昌区",id:"420106"},{name:"青山区",id:"420107"},{name:"洪山区",id:"420111"},{name:"东西湖区",id:"420112"},{name:"汉南区",id:"420113"},{name:"蔡甸区",id:"420114"},{name:"江夏区",id:"420115"},{name:"黄陂区",id:"420116"},{name:"新洲区",id:"420117"}]},{name:"黄石市",area:[{name:"黄石港区",id:"420202"},{name:"西塞山区",id:"420203"},{name:"下陆区",id:"420204"},{name:"铁山区",id:"420205"},{name:"阳新县",id:"420222"},{name:"大冶市",id:"420281"}]},{name:"十堰市",area:[{name:"茅箭区",id:"420302"},{name:"张湾区",id:"420303"},{name:"郧阳区",id:"420304"},{name:"郧西县",id:"420322"},{name:"竹山县",id:"420323"},{name:"竹溪县",id:"420324"},{name:"房县",id:"420325"},{name:"丹江口市",id:"420381"}]},{name:"宜昌市",area:[{name:"西陵区",id:"420502"},{name:"伍家岗区",id:"420503"},{name:"点军区",id:"420504"},{name:"猇亭区",id:"420505"},{name:"夷陵区",id:"420506"},{name:"远安县",id:"420525"},{name:"兴山县",id:"420526"},{name:"秭归县",id:"420527"},{name:"长阳土家族自治县",id:"420528"},{name:"五峰土家族自治县",id:"420529"},{name:"宜都市",id:"420581"},{name:"当阳市",id:"420582"},{name:"枝江市",id:"420583"}]},{name:"襄阳市",area:[{name:"襄城区",id:"420602"},{name:"樊城区",id:"420606"},{name:"襄州区",id:"420607"},{name:"南漳县",id:"420624"},{name:"谷城县",id:"420625"},{name:"保康县",id:"420626"},{name:"老河口市",id:"420682"},{name:"枣阳市",id:"420683"},{name:"宜城市",id:"420684"}]},{name:"鄂州市",area:[{name:"梁子湖区",id:"420702"},{name:"华容区",id:"420703"},{name:"鄂城区",id:"420704"}]},{name:"荆门市",area:[{name:"东宝区",id:"420802"},{name:"掇刀区",id:"420804"},{name:"京山县",id:"420821"},{name:"沙洋县",id:"420822"},{name:"钟祥市",id:"420881"}]},{name:"孝感市",area:[{name:"孝南区",id:"420902"},{name:"孝昌县",id:"420921"},{name:"大悟县",id:"420922"},{name:"云梦县",id:"420923"},{name:"应城市",id:"420981"},{name:"安陆市",id:"420982"},{name:"汉川市",id:"420984"}]},{name:"荆州市",area:[{name:"沙市区",id:"421002"},{name:"荆州区",id:"421003"},{name:"公安县",id:"421022"},{name:"监利县",id:"421023"},{name:"江陵县",id:"421024"},{name:"石首市",id:"421081"},{name:"洪湖市",id:"421083"},{name:"松滋市",id:"421087"}]},{name:"黄冈市",area:[{name:"黄州区",id:"421102"},{name:"团风县",id:"421121"},{name:"红安县",id:"421122"},{name:"罗田县",id:"421123"},{name:"英山县",id:"421124"},{name:"浠水县",id:"421125"},{name:"蕲春县",id:"421126"},{name:"黄梅县",id:"421127"},{name:"麻城市",id:"421181"},{name:"武穴市",id:"421182"}]},{name:"咸宁市",area:[{name:"咸安区",id:"421202"},{name:"嘉鱼县",id:"421221"},{name:"通城县",id:"421222"},{name:"崇阳县",id:"421223"},{name:"通山县",id:"421224"},{name:"赤壁市",id:"421281"}]},{name:"随州市",area:[{name:"曾都区",id:"421303"},{name:"随县",id:"421321"},{name:"广水市",id:"421381"}]},{name:"恩施土家族苗族自治州",area:[{name:"恩施市",id:"422801"},{name:"利川市",id:"422802"},{name:"建始县",id:"422822"},{name:"巴东县",id:"422823"},{name:"宣恩县",id:"422825"},{name:"咸丰县",id:"422826"},{name:"来凤县",id:"422827"},{name:"鹤峰县",id:"422828"}]},{name:"直辖县级",area:[{name:"仙桃市",id:"429004"},{name:"潜江市",id:"429005"},{name:"天门市",id:"429006"},{name:"神农架林区",id:"429021"}]}]},{name:"湖南省",city:[{name:"长沙市",area:[{name:"芙蓉区",id:"430102"},{name:"天心区",id:"430103"},{name:"岳麓区",id:"430104"},{name:"开福区",id:"430105"},{name:"雨花区",id:"430111"},{name:"望城区",id:"430112"},{name:"长沙县",id:"430121"},{name:"宁乡县",id:"430124"},{name:"浏阳市",id:"430181"}]},{name:"株洲市",area:[{name:"荷塘区",id:"430202"},{name:"芦淞区",id:"430203"},{name:"石峰区",id:"430204"},{name:"天元区",id:"430211"},{name:"株洲县",id:"430221"},{name:"攸县",id:"430223"},{name:"茶陵县",id:"430224"},{name:"炎陵县",id:"430225"},{name:"醴陵市",id:"430281"}]},{name:"湘潭市",area:[{name:"雨湖区",id:"430302"},{name:"岳塘区",id:"430304"},{name:"湘潭县",id:"430321"},{name:"湘乡市",id:"430381"},{name:"韶山市",id:"430382"}]},{name:"衡阳市",area:[{name:"珠晖区",id:"430405"},{name:"雁峰区",id:"430406"},{name:"石鼓区",id:"430407"},{name:"蒸湘区",id:"430408"},{name:"南岳区",id:"430412"},{name:"衡阳县",id:"430421"},{name:"衡南县",id:"430422"},{name:"衡山县",id:"430423"},{name:"衡东县",id:"430424"},{name:"祁东县",id:"430426"},{name:"耒阳市",id:"430481"},{name:"常宁市",id:"430482"}]},{name:"邵阳市",area:[{name:"双清区",id:"430502"},{name:"大祥区",id:"430503"},{name:"北塔区",id:"430511"},{name:"邵东县",id:"430521"},{name:"新邵县",id:"430522"},{name:"邵阳县",id:"430523"},{name:"隆回县",id:"430524"},{name:"洞口县",id:"430525"},{name:"绥宁县",id:"430527"},{name:"新宁县",id:"430528"},{name:"城步苗族自治县",id:"430529"},{name:"武冈市",id:"430581"}]},{name:"岳阳市",area:[{name:"岳阳楼区",id:"430602"},{name:"云溪区",id:"430603"},{name:"君山区",id:"430611"},{name:"岳阳县",id:"430621"},{name:"华容县",id:"430623"},{name:"湘阴县",id:"430624"},{name:"平江县",id:"430626"},{name:"汨罗市",id:"430681"},{name:"临湘市",id:"430682"}]},{name:"常德市",area:[{name:"武陵区",id:"430702"},{name:"鼎城区",id:"430703"},{name:"安乡县",id:"430721"},{name:"汉寿县",id:"430722"},{name:"澧县",id:"430723"},{name:"临澧县",id:"430724"},{name:"桃源县",id:"430725"},{name:"石门县",id:"430726"},{name:"津市市",id:"430781"}]},{name:"张家界市",area:[{name:"永定区",id:"430802"},{name:"武陵源区",id:"430811"},{name:"慈利县",id:"430821"},{name:"桑植县",id:"430822"}]},{name:"益阳市",area:[{name:"资阳区",id:"430902"},{name:"赫山区",id:"430903"},{name:"南县",id:"430921"},{name:"桃江县",id:"430922"},{name:"安化县",id:"430923"},{name:"沅江市",id:"430981"}]},{name:"郴州市",area:[{name:"北湖区",id:"431002"},{name:"苏仙区",id:"431003"},{name:"桂阳县",id:"431021"},{name:"宜章县",id:"431022"},{name:"永兴县",id:"431023"},{name:"嘉禾县",id:"431024"},{name:"临武县",id:"431025"},{name:"汝城县",id:"431026"},{name:"桂东县",id:"431027"},{name:"安仁县",id:"431028"},{name:"资兴市",id:"431081"}]},{name:"永州市",area:[{name:"零陵区",id:"431102"},{name:"冷水滩区",id:"431103"},{name:"祁阳县",id:"431121"},{name:"东安县",id:"431122"},{name:"双牌县",id:"431123"},{name:"道县",id:"431124"},{name:"江永县",id:"431125"},{name:"宁远县",id:"431126"},{name:"蓝山县",id:"431127"},{name:"新田县",id:"431128"},{name:"江华瑶族自治县",id:"431129"}]},{name:"怀化市",area:[{name:"鹤城区",id:"431202"},{name:"中方县",id:"431221"},{name:"沅陵县",id:"431222"},{name:"辰溪县",id:"431223"},{name:"溆浦县",id:"431224"},{name:"会同县",id:"431225"},{name:"麻阳苗族自治县",id:"431226"},{name:"新晃侗族自治县",id:"431227"},{name:"芷江侗族自治县",id:"431228"},{name:"靖州苗族侗族自治县",id:"431229"},{name:"通道侗族自治县",id:"431230"},{name:"洪江市",id:"431281"}]},{name:"娄底市",area:[{name:"娄星区",id:"431302"},{name:"双峰县",id:"431321"},{name:"新化县",id:"431322"},{name:"冷水江市",id:"431381"},{name:"涟源市",id:"431382"}]},{name:"湘西土家族苗族自治州",area:[{name:"吉首市",id:"433101"},{name:"泸溪县",id:"433122"},{name:"凤凰县",id:"433123"},{name:"花垣县",id:"433124"},{name:"保靖县",id:"433125"},{name:"古丈县",id:"433126"},{name:"永顺县",id:"433127"},{name:"龙山县",id:"433130"}]}]},{name:"广东省",city:[{name:"广州市",area:[{name:"荔湾区",id:"440103"},{name:"越秀区",id:"440104"},{name:"海珠区",id:"440105"},{name:"天河区",id:"440106"},{name:"白云区",id:"440111"},{name:"黄埔区",id:"440112"},{name:"番禺区",id:"440113"},{name:"花都区",id:"440114"},{name:"南沙区",id:"440115"},{name:"从化区",id:"440117"},{name:"增城区",id:"440118"}]},{name:"韶关市",area:[{name:"武江区",id:"440203"},{name:"浈江区",id:"440204"},{name:"曲江区",id:"440205"},{name:"始兴县",id:"440222"},{name:"仁化县",id:"440224"},{name:"翁源县",id:"440229"},{name:"乳源瑶族自治县",id:"440232"},{name:"新丰县",id:"440233"},{name:"乐昌市",id:"440281"},{name:"南雄市",id:"440282"}]},{name:"深圳市",area:[{name:"罗湖区",id:"440303"},{name:"福田区",id:"440304"},{name:"南山区",id:"440305"},{name:"宝安区",id:"440306"},{name:"龙岗区",id:"440307"},{name:"盐田区",id:"440308"},{name:"光明新区",id:"440309"},{name:"坪山新区",id:"440310"},{name:"大鹏新区",id:"440311"},{name:"龙华新区",id:"440312"}]},{name:"珠海市",area:[{name:"香洲区",id:"440402"},{name:"斗门区",id:"440403"},{name:"金湾区",id:"440404"}]},{name:"汕头市",area:[{name:"龙湖区",id:"440507"},{name:"金平区",id:"440511"},{name:"濠江区",id:"440512"},{name:"潮阳区",id:"440513"},{name:"潮南区",id:"440514"},{name:"澄海区",id:"440515"},{name:"南澳县",id:"440523"}]},{name:"佛山市",area:[{name:"禅城区",id:"440604"},{name:"南海区",id:"440605"},{name:"顺德区",id:"440606"},{name:"三水区",id:"440607"},{name:"高明区",id:"440608"}]},{name:"江门市",area:[{name:"蓬江区",id:"440703"},{name:"江海区",id:"440704"},{name:"新会区",id:"440705"},{name:"台山市",id:"440781"},{name:"开平市",id:"440783"},{name:"鹤山市",id:"440784"},{name:"恩平市",id:"440785"}]},{name:"湛江市",area:[{name:"赤坎区",id:"440802"},{name:"霞山区",id:"440803"},{name:"坡头区",id:"440804"},{name:"麻章区",id:"440811"},{name:"遂溪县",id:"440823"},{name:"徐闻县",id:"440825"},{name:"廉江市",id:"440881"},{name:"雷州市",id:"440882"},{name:"吴川市",id:"440883"}]},{name:"茂名市",area:[{name:"茂南区",id:"440902"},{name:"电白区",id:"440904"},{name:"高州市",id:"440981"},{name:"化州市",id:"440982"},{name:"信宜市",id:"440983"}]},{name:"肇庆市",area:[{name:"端州区",id:"441202"},{name:"鼎湖区",id:"441203"},{name:"广宁县",id:"441223"},{name:"怀集县",id:"441224"},{name:"封开县",id:"441225"},{name:"德庆县",id:"441226"},{name:"高要市",id:"441283"},{name:"四会市",id:"441284"}]},{name:"惠州市",area:[{name:"惠城区",id:"441302"},{name:"惠阳区",id:"441303"},{name:"博罗县",id:"441322"},{name:"惠东县",id:"441323"},{name:"龙门县",id:"441324"}]},{name:"梅州市",area:[{name:"梅江区",id:"441402"},{name:"梅县区",id:"441403"},{name:"大埔县",id:"441422"},{name:"丰顺县",id:"441423"},{name:"五华县",id:"441424"},{name:"平远县",id:"441426"},{name:"蕉岭县",id:"441427"},{name:"兴宁市",id:"441481"}]},{name:"汕尾市",area:[{name:"城区",id:"441502"},{name:"海丰县",id:"441521"},{name:"陆河县",id:"441523"},{name:"陆丰市",id:"441581"}]},{name:"河源市",area:[{name:"源城区",id:"441602"},{name:"紫金县",id:"441621"},{name:"龙川县",id:"441622"},{name:"连平县",id:"441623"},{name:"和平县",id:"441624"},{name:"东源县",id:"441625"}]},{name:"阳江市",area:[{name:"江城区",id:"441702"},{name:"阳东区",id:"441704"},{name:"阳西县",id:"441721"},{name:"阳春市",id:"441781"}]},{name:"清远市",area:[{name:"清城区",id:"441802"},{name:"清新区",id:"441803"},{name:"佛冈县",id:"441821"},{name:"阳山县",id:"441823"},{name:"连山壮族瑶族自治县",id:"441825"},{name:"连南瑶族自治县",id:"441826"},{name:"英德市",id:"441881"},{name:"连州市",id:"441882"}]},{name:"东莞市",area:[{name:"莞城区",id:"441901"},{name:"南城区",id:"441902"},{name:"万江区",id:"441904"},{name:"石碣镇",id:"441905"},{name:"石龙镇",id:"441906"},{name:"茶山镇",id:"441907"},{name:"石排镇",id:"441908"},{name:"企石镇",id:"441909"},{name:"横沥镇",id:"441910"},{name:"桥头镇",id:"441911"},{name:"谢岗镇",id:"441912"},{name:"东坑镇",id:"441913"},{name:"常平镇",id:"441914"},{name:"寮步镇",id:"441915"},{name:"大朗镇",id:"441916"},{name:"麻涌镇",id:"441917"},{name:"中堂镇",id:"441918"},{name:"高埗镇",id:"441919"},{name:"樟木头镇",id:"441920"},{name:"大岭山镇",id:"441921"},{name:"望牛墩镇",id:"441922"},{name:"黄江镇",id:"441923"},{name:"洪梅镇",id:"441924"},{name:"清溪镇",id:"441925"},{name:"沙田镇",id:"441926"},{name:"道滘镇",id:"441927"},{name:"塘厦镇",id:"441928"},{name:"虎门镇",id:"441929"},{name:"厚街镇",id:"441930"},{name:"凤岗镇",id:"441931"},{name:"长安镇",id:"441932"}]},{name:"中山市",area:[{name:"石岐区",id:"442001"},{name:"南区",id:"442004"},{name:"五桂山区",id:"442005"},{name:"火炬开发区",id:"442006"},{name:"黄圃镇",id:"442007"},{name:"南头镇",id:"442008"},{name:"东凤镇",id:"442009"},{name:"阜沙镇",id:"442010"},{name:"小榄镇",id:"442011"},{name:"东升镇",id:"442012"},{name:"古镇镇",id:"442013"},{name:"横栏镇",id:"442014"},{name:"三角镇",id:"442015"},{name:"民众镇",id:"442016"},{name:"南朗镇",id:"442017"},{name:"港口镇",id:"442018"},{name:"大涌镇",id:"442019"},{name:"沙溪镇",id:"442020"},{name:"三乡镇",id:"442021"},{name:"板芙镇",id:"442022"},{name:"神湾镇",id:"442023"},{name:"坦洲镇",id:"442024"}]},{name:"潮州市",area:[{name:"湘桥区",id:"445102"},{name:"潮安区",id:"445103"},{name:"饶平县",id:"445122"}]},{name:"揭阳市",area:[{name:"榕城区",id:"445202"},{name:"揭东区",id:"445203"},{name:"揭西县",id:"445222"},{name:"惠来县",id:"445224"},{name:"普宁市",id:"445281"}]},{name:"云浮市",area:[{name:"云城区",id:"445302"},{name:"云安区",id:"445303"},{name:"新兴县",id:"445321"},{name:"郁南县",id:"445322"},{name:"罗定市",id:"445381"}]}]},{name:"广西壮族自治区",city:[{name:"南宁市",area:[{name:"兴宁区",id:"450102"},{name:"青秀区",id:"450103"},{name:"江南区",id:"450105"},{name:"西乡塘区",id:"450107"},{name:"良庆区",id:"450108"},{name:"邕宁区",id:"450109"},{name:"武鸣县",id:"450122"},{name:"隆安县",id:"450123"},{name:"马山县",id:"450124"},{name:"上林县",id:"450125"},{name:"宾阳县",id:"450126"},{name:"横县",id:"450127"},{name:"埌东新区",id:"450128"}]},{name:"柳州市",area:[{name:"城中区",id:"450202"},{name:"鱼峰区",id:"450203"},{name:"柳南区",id:"450204"},{name:"柳北区",id:"450205"},{name:"柳江县",id:"450221"},{name:"柳城县",id:"450222"},{name:"鹿寨县",id:"450223"},{name:"融安县",id:"450224"},{name:"融水苗族自治县",id:"450225"},{name:"三江侗族自治县",id:"450226"},{name:"柳东新区",id:"450227"}]},{name:"桂林市",area:[{name:"秀峰区",id:"450302"},{name:"叠彩区",id:"450303"},{name:"象山区",id:"450304"},{name:"七星区",id:"450305"},{name:"雁山区",id:"450311"},{name:"临桂区",id:"450312"},{name:"阳朔县",id:"450321"},{name:"灵川县",id:"450323"},{name:"全州县",id:"450324"},{name:"兴安县",id:"450325"},{name:"永福县",id:"450326"},{name:"灌阳县",id:"450327"},{name:"龙胜各族自治县",id:"450328"},{name:"资源县",id:"450329"},{name:"平乐县",id:"450330"},{name:"荔浦县",id:"450331"},{name:"恭城瑶族自治县",id:"450332"}]},{name:"梧州市",area:[{name:"万秀区",id:"450403"},{name:"长洲区",id:"450405"},{name:"龙圩区",id:"450406"},{name:"苍梧县",id:"450421"},{name:"藤县",id:"450422"},{name:"蒙山县",id:"450423"},{name:"岑溪市",id:"450481"}]},{name:"北海市",area:[{name:"海城区",id:"450502"},{name:"银海区",id:"450503"},{name:"铁山港区",id:"450512"},{name:"合浦县",id:"450521"}]},{name:"防城港市",area:[{name:"港口区",id:"450602"},{name:"防城区",id:"450603"},{name:"上思县",id:"450621"},{name:"东兴市",id:"450681"}]},{name:"钦州市",area:[{name:"钦南区",id:"450702"},{name:"钦北区",id:"450703"},{name:"灵山县",id:"450721"},{name:"浦北县",id:"450722"}]},{name:"贵港市",area:[{name:"港北区",id:"450802"},{name:"港南区",id:"450803"},{name:"覃塘区",id:"450804"},{name:"平南县",id:"450821"},{name:"桂平市",id:"450881"}]},{name:"玉林市",area:[{name:"玉州区",id:"450902"},{name:"福绵区",id:"450903"},{name:"玉东新区",id:"450904"},{name:"容县",id:"450921"},{name:"陆川县",id:"450922"},{name:"博白县",id:"450923"},{name:"兴业县",id:"450924"},{name:"北流市",id:"450981"}]},{name:"百色市",area:[{name:"右江区",id:"451002"},{name:"田阳县",id:"451021"},{name:"田东县",id:"451022"},{name:"平果县",id:"451023"},{name:"德保县",id:"451024"},{name:"靖西县",id:"451025"},{name:"那坡县",id:"451026"},{name:"凌云县",id:"451027"},{name:"乐业县",id:"451028"},{name:"田林县",id:"451029"},{name:"西林县",id:"451030"},{name:"隆林各族自治县",id:"451031"}]},{name:"贺州市",area:[{name:"八步区",id:"451102"},{name:"昭平县",id:"451121"},{name:"钟山县",id:"451122"},{name:"富川瑶族自治县",id:"451123"},{name:"平桂管理区",id:"451124"}]},{name:"河池市",area:[{name:"金城江区",id:"451202"},{name:"南丹县",id:"451221"},{name:"天峨县",id:"451222"},{name:"凤山县",id:"451223"},{name:"东兰县",id:"451224"},{name:"罗城仫佬族自治县",id:"451225"},{name:"环江毛南族自治县",id:"451226"},{name:"巴马瑶族自治县",id:"451227"},{name:"都安瑶族自治县",id:"451228"},{name:"大化瑶族自治县",id:"451229"},{name:"宜州市",id:"451281"}]},{name:"来宾市",area:[{name:"兴宾区",id:"451302"},{name:"忻城县",id:"451321"},{name:"象州县",id:"451322"},{name:"武宣县",id:"451323"},{name:"金秀瑶族自治县",id:"451324"},{name:"合山市",id:"451381"}]},{name:"崇左市",area:[{name:"江州区",id:"451402"},{name:"扶绥县",id:"451421"},{name:"宁明县",id:"451422"},{name:"龙州县",id:"451423"},{name:"大新县",id:"451424"},{name:"天等县",id:"451425"},{name:"凭祥市",id:"451481"}]}]},{name:"海南省",city:[{name:"海口市",area:[{name:"秀英区",id:"460105"},{name:"龙华区",id:"460106"},{name:"琼山区",id:"460107"},{name:"美兰区",id:"460108"}]},{name:"三亚市",area:[{name:"海棠区",id:"460202"},{name:"吉阳区",id:"460203"},{name:"天涯区",id:"460204"},{name:"崖州区",id:"460205"}]},{name:"三沙市",area:[{name:"西沙群岛",id:"460321"},{name:"南沙群岛",id:"460322"},{name:"中沙群岛",id:"460323"}]},{name:"直辖县级",area:[{name:"五指山市",id:"469001"},{name:"琼海市",id:"469002"},{name:"儋州市",id:"469003"},{name:"文昌市",id:"469005"},{name:"万宁市",id:"469006"},{name:"东方市",id:"469007"},{name:"定安县",id:"469021"},{name:"屯昌县",id:"469022"},{name:"澄迈县",id:"469023"},{name:"临高县",id:"469024"},{name:"白沙黎族自治县",id:"469025"},{name:"昌江黎族自治县",id:"469026"},{name:"乐东黎族自治县",id:"469027"},{name:"陵水黎族自治县",id:"469028"},{name:"保亭黎族苗族自治县",id:"469029"},{name:"琼中黎族苗族自治县",id:"469030"}]}]},{name:"重庆",city:[{name:"重庆市",area:[{name:"万州区",id:"500101"},{name:"涪陵区",id:"500102"},{name:"渝中区",id:"500103"},{name:"大渡口区",id:"500104"},{name:"江北区",id:"500105"},{name:"沙坪坝区",id:"500106"},{name:"九龙坡区",id:"500107"},{name:"南岸区",id:"500108"},{name:"北碚区",id:"500109"},{name:"綦江区",id:"500110"},{name:"大足区",id:"500111"},{name:"渝北区",id:"500112"},{name:"巴南区",id:"500113"},{name:"黔江区",id:"500114"},{name:"长寿区",id:"500115"},{name:"江津区",id:"500116"},{name:"合川区",id:"500117"},{name:"永川区",id:"500118"},{name:"南川区",id:"500119"},{name:"璧山区",id:"500120"},{name:"铜梁区",id:"500151"},{name:"潼南县",id:"500223"},{name:"荣昌县",id:"500226"},{name:"梁平县",id:"500228"},{name:"城口县",id:"500229"},{name:"丰都县",id:"500230"},{name:"垫江县",id:"500231"},{name:"武隆县",id:"500232"},{name:"忠县",id:"500233"},{name:"开县",id:"500234"},{name:"云阳县",id:"500235"},{name:"奉节县",id:"500236"},{name:"巫山县",id:"500237"},{name:"巫溪县",id:"500238"},{name:"石柱土家族自治县",id:"500240"},{name:"秀山土家族苗族自治县",id:"500241"},{name:"酉阳土家族苗族自治县",id:"500242"},{name:"彭水苗族土家族自治县",id:"500243"}]},{name:"两江新区",area:[{name:"北部新区",id:"500301"},{name:"保税港区",id:"500302"},{name:"工业园区",id:"500303"}]}]},{name:"四川省",city:[{name:"成都市",area:[{name:"锦江区",id:"510104"},{name:"青羊区",id:"510105"},{name:"金牛区",id:"510106"},{name:"武侯区",id:"510107"},{name:"成华区",id:"510108"},{name:"龙泉驿区",id:"510112"},{name:"青白江区",id:"510113"},{name:"新都区",id:"510114"},{name:"温江区",id:"510115"},{name:"金堂县",id:"510121"},{name:"双流县",id:"510122"},{name:"郫县",id:"510124"},{name:"大邑县",id:"510129"},{name:"蒲江县",id:"510131"},{name:"新津县",id:"510132"},{name:"都江堰市",id:"510181"},{name:"彭州市",id:"510182"},{name:"邛崃市",id:"510183"},{name:"崇州市",id:"510184"}]},{name:"自贡市",area:[{name:"自流井区",id:"510302"},{name:"贡井区",id:"510303"},{name:"大安区",id:"510304"},{name:"沿滩区",id:"510311"},{name:"荣县",id:"510321"},{name:"富顺县",id:"510322"}]},{name:"攀枝花市",area:[{name:"东区",id:"510402"},{name:"西区",id:"510403"},{name:"仁和区",id:"510411"},{name:"米易县",id:"510421"},{name:"盐边县",id:"510422"}]},{name:"泸州市",area:[{name:"江阳区",id:"510502"},{name:"纳溪区",id:"510503"},{name:"龙马潭区",id:"510504"},{name:"泸县",id:"510521"},{name:"合江县",id:"510522"},{name:"叙永县",id:"510524"},{name:"古蔺县",id:"510525"}]},{name:"德阳市",area:[{name:"旌阳区",id:"510603"},{name:"中江县",id:"510623"},{name:"罗江县",id:"510626"},{name:"广汉市",id:"510681"},{name:"什邡市",id:"510682"},{name:"绵竹市",id:"510683"}]},{name:"绵阳市",area:[{name:"涪城区",id:"510703"},{name:"游仙区",id:"510704"},{name:"三台县",id:"510722"},{name:"盐亭县",id:"510723"},{name:"安县",id:"510724"},{name:"梓潼县",id:"510725"},{name:"北川羌族自治县",id:"510726"},{name:"平武县",id:"510727"},{name:"江油市",id:"510781"}]},{name:"广元市",area:[{name:"利州区",id:"510802"},{name:"昭化区",id:"510811"},{name:"朝天区",id:"510812"},{name:"旺苍县",id:"510821"},{name:"青川县",id:"510822"},{name:"剑阁县",id:"510823"},{name:"苍溪县",id:"510824"}]},{name:"遂宁市",area:[{name:"船山区",id:"510903"},{name:"安居区",id:"510904"},{name:"蓬溪县",id:"510921"},{name:"射洪县",id:"510922"},{name:"大英县",id:"510923"}]},{name:"内江市",area:[{name:"市中区",id:"511002"},{name:"东兴区",id:"511011"},{name:"威远县",id:"511024"},{name:"资中县",id:"511025"},{name:"隆昌县",id:"511028"}]},{name:"乐山市",area:[{name:"市中区",id:"511102"},{name:"沙湾区",id:"511111"},{name:"五通桥区",id:"511112"},{name:"金口河区",id:"511113"},{name:"犍为县",id:"511123"},{name:"井研县",id:"511124"},{name:"夹江县",id:"511126"},{name:"沐川县",id:"511129"},{name:"峨边彝族自治县",id:"511132"},{name:"马边彝族自治县",id:"511133"},{name:"峨眉山市",id:"511181"}]},{name:"南充市",area:[{name:"顺庆区",id:"511302"},{name:"高坪区",id:"511303"},{name:"嘉陵区",id:"511304"},{name:"南部县",id:"511321"},{name:"营山县",id:"511322"},{name:"蓬安县",id:"511323"},{name:"仪陇县",id:"511324"},{name:"西充县",id:"511325"},{name:"阆中市",id:"511381"}]},{name:"眉山市",area:[{name:"东坡区",id:"511402"},{name:"彭山区",id:"511403"},{name:"仁寿县",id:"511421"},{name:"洪雅县",id:"511423"},{name:"丹棱县",id:"511424"},{name:"青神县",id:"511425"}]},{name:"宜宾市",area:[{name:"翠屏区",id:"511502"},{name:"南溪区",id:"511503"},{name:"宜宾县",id:"511521"},{name:"江安县",id:"511523"},{name:"长宁县",id:"511524"},{name:"高县",id:"511525"},{name:"珙县",id:"511526"},{name:"筠连县",id:"511527"},{name:"兴文县",id:"511528"},{name:"屏山县",id:"511529"}]},{name:"广安市",area:[{name:"广安区",id:"511602"},{name:"前锋区",id:"511603"},{name:"岳池县",id:"511621"},{name:"武胜县",id:"511622"},{name:"邻水县",id:"511623"},{name:"华蓥市",id:"511681"}]},{name:"达州市",area:[{name:"通川区",id:"511702"},{name:"达川区",id:"511703"},{name:"宣汉县",id:"511722"},{name:"开江县",id:"511723"},{name:"大竹县",id:"511724"},{name:"渠县",id:"511725"},{name:"万源市",id:"511781"}]},{name:"雅安市",area:[{name:"雨城区",id:"511802"},{name:"名山区",id:"511803"},{name:"荥经县",id:"511822"},{name:"汉源县",id:"511823"},{name:"石棉县",id:"511824"},{name:"天全县",id:"511825"},{name:"芦山县",id:"511826"},{name:"宝兴县",id:"511827"}]},{name:"巴中市",area:[{name:"巴州区",id:"511902"},{name:"恩阳区",id:"511903"},{name:"通江县",id:"511921"},{name:"南江县",id:"511922"},{name:"平昌县",id:"511923"}]},{name:"资阳市",area:[{name:"雁江区",id:"512002"},{name:"安岳县",id:"512021"},{name:"乐至县",id:"512022"},{name:"简阳市",id:"512081"}]},{name:"阿坝藏族羌族自治州",area:[{name:"汶川县",id:"513221"},{name:"理县",id:"513222"},{name:"茂县",id:"513223"},{name:"松潘县",id:"513224"},{name:"九寨沟县",id:"513225"},{name:"金川县",id:"513226"},{name:"小金县",id:"513227"},{name:"黑水县",id:"513228"},{name:"马尔康县",id:"513229"},{name:"壤塘县",id:"513230"},{name:"阿坝县",id:"513231"},{name:"若尔盖县",id:"513232"},{name:"红原县",id:"513233"}]},{name:"甘孜藏族自治州",area:[{name:"康定县",id:"513321"},{name:"泸定县",id:"513322"},{name:"丹巴县",id:"513323"},{name:"九龙县",id:"513324"},{name:"雅江县",id:"513325"},{name:"道孚县",id:"513326"},{name:"炉霍县",id:"513327"},{name:"甘孜县",id:"513328"},{name:"新龙县",id:"513329"},{name:"德格县",id:"513330"},{name:"白玉县",id:"513331"},{name:"石渠县",id:"513332"},{name:"色达县",id:"513333"},{name:"理塘县",id:"513334"},{name:"巴塘县",id:"513335"},{name:"乡城县",id:"513336"},{name:"稻城县",id:"513337"},{name:"得荣县",id:"513338"}]},{name:"凉山彝族自治州",area:[{name:"西昌市",id:"513401"},{name:"木里藏族自治县",id:"513422"},{name:"盐源县",id:"513423"},{name:"德昌县",id:"513424"},{name:"会理县",id:"513425"},{name:"会东县",id:"513426"},{name:"宁南县",id:"513427"},{name:"普格县",id:"513428"},{name:"布拖县",id:"513429"},{name:"金阳县",id:"513430"},{name:"昭觉县",id:"513431"},{name:"喜德县",id:"513432"},{name:"冕宁县",id:"513433"},{name:"越西县",id:"513434"},{name:"甘洛县",id:"513435"},{name:"美姑县",id:"513436"},{name:"雷波县",id:"513437"}]}]},{name:"贵州省",city:[{name:"贵阳市",area:[{name:"南明区",id:"520102"},{name:"云岩区",id:"520103"},{name:"花溪区",id:"520111"},{name:"乌当区",id:"520112"},{name:"白云区",id:"520113"},{name:"观山湖区",id:"520115"},{name:"开阳县",id:"520121"},{name:"息烽县",id:"520122"},{name:"修文县",id:"520123"},{name:"清镇市",id:"520181"}]},{name:"六盘水市",area:[{name:"钟山区",id:"520201"},{name:"六枝特区",id:"520203"},{name:"水城县",id:"520221"},{name:"盘县",id:"520222"}]},{name:"遵义市",area:[{name:"红花岗区",id:"520302"},{name:"汇川区",id:"520303"},{name:"遵义县",id:"520321"},{name:"桐梓县",id:"520322"},{name:"绥阳县",id:"520323"},{name:"正安县",id:"520324"},{name:"道真仡佬族苗族自治县",id:"520325"},{name:"务川仡佬族苗族自治县",id:"520326"},{name:"凤冈县",id:"520327"},{name:"湄潭县",id:"520328"},{name:"余庆县",id:"520329"},{name:"习水县",id:"520330"},{name:"赤水市",id:"520381"},{name:"仁怀市",id:"520382"}]},{name:"安顺市",area:[{name:"西秀区",id:"520402"},{name:"平坝区",id:"520421"},{name:"普定县",id:"520422"},{name:"镇宁布依族苗族自治县",id:"520423"},{name:"关岭布依族苗族自治县",id:"520424"},{name:"紫云苗族布依族自治县",id:"520425"}]},{name:"毕节市",area:[{name:"七星关区",id:"520502"},{name:"大方县",id:"520521"},{name:"黔西县",id:"520522"},{name:"金沙县",id:"520523"},{name:"织金县",id:"520524"},{name:"纳雍县",id:"520525"},{name:"威宁彝族回族苗族自治县",id:"520526"},{name:"赫章县",id:"520527"}]},{name:"铜仁市",area:[{name:"碧江区",id:"520602"},{name:"万山区",id:"520603"},{name:"江口县",id:"520621"},{name:"玉屏侗族自治县",id:"520622"},{name:"石阡县",id:"520623"},{name:"思南县",id:"520624"},{name:"印江土家族苗族自治县",id:"520625"},{name:"德江县",id:"520626"},{name:"沿河土家族自治县",id:"520627"},{name:"松桃苗族自治县",id:"520628"}]},{name:"黔西南布依族苗族自治州",area:[{name:"兴义市 ",id:"522301"},{name:"兴仁县",id:"522322"},{name:"普安县",id:"522323"},{name:"晴隆县",id:"522324"},{name:"贞丰县",id:"522325"},{name:"望谟县",id:"522326"},{name:"册亨县",id:"522327"},{name:"安龙县",id:"522328"}]},{name:"黔东南苗族侗族自治州",area:[{name:"凯里市",id:"522601"},{name:"黄平县",id:"522622"},{name:"施秉县",id:"522623"},{name:"三穗县",id:"522624"},{name:"镇远县",id:"522625"},{name:"岑巩县",id:"522626"},{name:"天柱县",id:"522627"},{name:"锦屏县",id:"522628"},{name:"剑河县",id:"522629"},{name:"台江县",id:"522630"},{name:"黎平县",id:"522631"},{name:"榕江县",id:"522632"},{name:"从江县",id:"522633"},{name:"雷山县",id:"522634"},{name:"麻江县",id:"522635"},{name:"丹寨县",id:"522636"}]},{name:"黔南布依族苗族自治州",area:[{name:"都匀市",id:"522701"},{name:"福泉市",id:"522702"},{name:"荔波县",id:"522722"},{name:"贵定县",id:"522723"},{name:"瓮安县",id:"522725"},{name:"独山县",id:"522726"},{name:"平塘县",id:"522727"},{name:"罗甸县",id:"522728"},{name:"长顺县",id:"522729"},{name:"龙里县",id:"522730"},{name:"惠水县",id:"522731"},{name:"三都水族自治县",id:"522732"}]}]},{name:"云南省",city:[{name:"昆明市",area:[{name:"五华区",id:"530102"},{name:"盘龙区",id:"530103"},{name:"官渡区",id:"530111"},{name:"西山区",id:"530112"},{name:"东川区",id:"530113"},{name:"呈贡区",id:"530114"},{name:"晋宁县",id:"530122"},{name:"富民县",id:"530124"},{name:"宜良县",id:"530125"},{name:"石林彝族自治县",id:"530126"},{name:"嵩明县",id:"530127"},{name:"禄劝彝族苗族自治县",id:"530128"},{name:"寻甸回族彝族自治县 ",id:"530129"},{name:"安宁市",id:"530181"}]},{name:"曲靖市",area:[{name:"麒麟区",id:"530302"},{name:"马龙县",id:"530321"},{name:"陆良县",id:"530322"},{name:"师宗县",id:"530323"},{name:"罗平县",id:"530324"},{name:"富源县",id:"530325"},{name:"会泽县",id:"530326"},{name:"沾益县",id:"530328"},{name:"宣威市",id:"530381"}]},{name:"玉溪市",area:[{name:"红塔区",id:"530402"},{name:"江川县",id:"530421"},{name:"澄江县",id:"530422"},{name:"通海县",id:"530423"},{name:"华宁县",id:"530424"},{name:"易门县",id:"530425"},{name:"峨山彝族自治县",id:"530426"},{name:"新平彝族傣族自治县",id:"530427"},{name:"元江哈尼族彝族傣族自治县",id:"530428"}]},{name:"保山市",area:[{name:"隆阳区",id:"530502"},{name:"施甸县",id:"530521"},{name:"腾冲县",id:"530522"},{name:"龙陵县",id:"530523"},{name:"昌宁县",id:"530524"}]},{name:"昭通市",area:[{name:"昭阳区",id:"530602"},{name:"鲁甸县",id:"530621"},{name:"巧家县",id:"530622"},{name:"盐津县",id:"530623"},{name:"大关县",id:"530624"},{name:"永善县",id:"530625"},{name:"绥江县",id:"530626"},{name:"镇雄县",id:"530627"},{name:"彝良县",id:"530628"},{name:"威信县",id:"530629"},{name:"水富县",id:"530630"}]},{name:"丽江市",area:[{name:"古城区",id:"530702"},{name:"玉龙纳西族自治县",id:"530721"},{name:"永胜县",id:"530722"},{name:"华坪县",id:"530723"},{name:"宁蒗彝族自治县",id:"530724"}]},{name:"普洱市",area:[{name:"思茅区",id:"530802"},{name:"宁洱哈尼族彝族自治县",id:"530821"},{name:"墨江哈尼族自治县",id:"530822"},{name:"景东彝族自治县",id:"530823"},{name:"景谷傣族彝族自治县",id:"530824"},{name:"镇沅彝族哈尼族拉祜族自治县",id:"530825"},{name:"江城哈尼族彝族自治县",id:"530826"},{name:"孟连傣族拉祜族佤族自治县",id:"530827"},{name:"澜沧拉祜族自治县",id:"530828"},{name:"西盟佤族自治县",id:"530829"}]},{name:"临沧市",area:[{name:"临翔区",id:"530902"},{name:"凤庆县",id:"530921"},{name:"云县",id:"530922"},{name:"永德县",id:"530923"},{name:"镇康县",id:"530924"},{name:"双江拉祜族佤族布朗族傣族自治县",id:"530925"},{name:"耿马傣族佤族自治县",id:"530926"},{name:"沧源佤族自治县",id:"530927"}]},{name:"楚雄彝族自治州",area:[{name:"楚雄市",id:"532301"},{name:"双柏县",id:"532322"},{name:"牟定县",id:"532323"},{name:"南华县",id:"532324"},{name:"姚安县",id:"532325"},{name:"大姚县",id:"532326"},{name:"永仁县",id:"532327"},{name:"元谋县",id:"532328"},{name:"武定县",id:"532329"},{name:"禄丰县",id:"532331"}]},{name:"红河哈尼族彝族自治州",area:[{name:"个旧市",id:"532501"},{name:"开远市",id:"532502"},{name:"蒙自市",id:"532503"},{name:"弥勒市",id:"532504"},{name:"屏边苗族自治县",id:"532523"},{name:"建水县",id:"532524"},{name:"石屏县",id:"532525"},{name:"泸西县",id:"532527"},{name:"元阳县",id:"532528"},{name:"红河县",id:"532529"},{name:"金平苗族瑶族傣族自治县",id:"532530"},{name:"绿春县",id:"532531"},{name:"河口瑶族自治县",id:"532532"}]},{name:"文山壮族苗族自治州",area:[{name:"文山市",id:"532601"},{name:"砚山县",id:"532622"},{name:"西畴县",id:"532623"},{name:"麻栗坡县",id:"532624"},{name:"马关县",id:"532625"},{name:"丘北县",id:"532626"},{name:"广南县",id:"532627"},{name:"富宁县",id:"532628"}]},{name:"西双版纳傣族自治州",area:[{name:"景洪市",id:"532801"},{name:"勐海县",id:"532822"},{name:"勐腊县",id:"532823"}]},{name:"大理白族自治州",area:[{name:"大理市",id:"532901"},{name:"漾濞彝族自治县",id:"532922"},{name:"祥云县",id:"532923"},{name:"宾川县",id:"532924"},{name:"弥渡县",id:"532925"},{name:"南涧彝族自治县",id:"532926"},{name:"巍山彝族回族自治县",id:"532927"},{name:"永平县",id:"532928"},{name:"云龙县",id:"532929"},{name:"洱源县",id:"532930"},{name:"剑川县",id:"532931"},{name:"鹤庆县",id:"532932"}]},{name:"德宏傣族景颇族自治州",area:[{name:"瑞丽市",id:"533102"},{name:"芒市",id:"533103"},{name:"梁河县",id:"533122"},{name:"盈江县",id:"533123"},{name:"陇川县",id:"533124"}]},{name:"怒江傈僳族自治州",area:[{name:"泸水县",id:"533321"},{name:"福贡县",id:"533323"},{name:"贡山独龙族怒族自治县",id:"533324"},{name:"兰坪白族普米族自治县",id:"533325"}]},{name:"迪庆藏族自治州",area:[{name:"香格里拉市",id:"533421"},{name:"德钦县",id:"533422"},{name:"维西傈僳族自治县",id:"533423"}]}]},{name:"西藏自治区",city:[{name:"拉萨市",area:[{name:"城关区",id:"540102"},{name:"林周县",id:"540121"},{name:"当雄县",id:"540122"},{name:"尼木县",id:"540123"},{name:"曲水县",id:"540124"},{name:"堆龙德庆县",id:"540125"},{name:"达孜县",id:"540126"},{name:"墨竹工卡县",id:"540127"}]},{name:"日喀则市",area:[{name:"桑珠孜区",id:"540202"},{name:"南木林县",id:"540221"},{name:"江孜县",id:"540222"},{name:"定日县",id:"540223"},{name:"萨迦县",id:"540224"},{name:"拉孜县",id:"540225"},{name:"昂仁县",id:"540226"},{name:"谢通门县",id:"540227"},{name:"白朗县",id:"540228"},{name:"仁布县",id:"540229"},{name:"康马县",id:"540230"},{name:"定结县",id:"540231"},{name:"仲巴县",id:"540232"},{name:"亚东县",id:"540233"},{name:"吉隆县",id:"540234"},{name:"聂拉木县",id:"540235"},{name:"萨嘎县",id:"540236"},{name:"岗巴县",id:"540237"}]},{name:"昌都市",area:[{name:"卡若区",id:"540302"},{name:"江达县",id:"540321"},{name:"贡觉县",id:"540322"},{name:"类乌齐县",id:"540323"},{name:"丁青县",id:"540324"},{name:"察雅县",id:"540325"},{name:"八宿县",id:"540326"},{name:"左贡县",id:"540327"},{name:"芒康县",id:"540328"},{name:"洛隆县",id:"540329"},{name:"边坝县",id:"540330"}]},{name:"山南地区",area:[{name:"乃东县",id:"542221"},{name:"扎囊县",id:"542222"},{name:"贡嘎县",id:"542223"},{name:"桑日县",id:"542224"},{name:"琼结县",id:"542225"},{name:"曲松县",id:"542226"},{name:"措美县",id:"542227"},{name:"洛扎县",id:"542228"},{name:"加查县",id:"542229"},{name:"隆子县",id:"542231"},{name:"错那县",id:"542232"},{name:"浪卡子县",id:"542233"}]},{name:"那曲地区",area:[{name:"那曲县",id:"542421"},{name:"嘉黎县",id:"542422"},{name:"比如县",id:"542423"},{name:"聂荣县",id:"542424"},{name:"安多县",id:"542425"},{name:"申扎县",id:"542426"},{name:"索县",id:"542427"},{name:"班戈县",id:"542428"},{name:"巴青县",id:"542429"},{name:"尼玛县",id:"542430"},{name:"双湖县",id:"542431"}]},{name:"阿里地区",area:[{name:"普兰县",id:"542521"},{name:"札达县",id:"542522"},{name:"噶尔县",id:"542523"},{name:"日土县",id:"542524"},{name:"革吉县",id:"542525"},{name:"改则县",id:"542526"},{name:"措勤县",id:"542527"}]},{name:"林芝地区",area:[{name:"林芝县",id:"542621"},{name:"工布江达县",id:"542622"},{name:"米林县",id:"542623"},{name:"墨脱县",id:"542624"},{name:"波密县",id:"542625"},{name:"察隅县",id:"542626"},{name:"朗县",id:"542627"}]}]},{name:"陕西省",city:[{name:"西安市",area:[{name:"新城区",id:"610102"},{name:"碑林区",id:"610103"},{name:"莲湖区",id:"610104"},{name:"灞桥区",id:"610111"},{name:"未央区",id:"610112"},{name:"雁塔区",id:"610113"},{name:"阎良区",id:"610114"},{name:"临潼区",id:"610115"},{name:"长安区",id:"610116"},{name:"蓝田县",id:"610122"},{name:"周至县",id:"610124"},{name:"户县",id:"610125"},{name:"高陵区",id:"610126"}]},{name:"铜川市",area:[{name:"王益区",id:"610202"},{name:"印台区",id:"610203"},{name:"耀州区",id:"610204"},{name:"宜君县",id:"610222"}]},{name:"宝鸡市",area:[{name:"渭滨区",id:"610302"},{name:"金台区",id:"610303"},{name:"陈仓区",id:"610304"},{name:"凤翔县",id:"610322"},{name:"岐山县",id:"610323"},{name:"扶风县",id:"610324"},{name:"眉县",id:"610326"},{name:"陇县",id:"610327"},{name:"千阳县",id:"610328"},{name:"麟游县",id:"610329"},{name:"凤县",id:"610330"},{name:"太白县",id:"610331"}]},{name:"咸阳市",area:[{name:"秦都区",id:"610402"},{name:"杨陵区",id:"610403"},{name:"渭城区",id:"610404"},{name:"三原县",id:"610422"},{name:"泾阳县",id:"610423"},{name:"乾县",id:"610424"},{name:"礼泉县",id:"610425"},{name:"永寿县",id:"610426"},{name:"彬县",id:"610427"},{name:"长武县",id:"610428"},{name:"旬邑县",id:"610429"},{name:"淳化县",id:"610430"},{name:"武功县",id:"610431"},{name:"兴平市",id:"610481"}]},{name:"渭南市",area:[{name:"临渭区",id:"610502"},{name:"华县",id:"610521"},{name:"潼关县",id:"610522"},{name:"大荔县",id:"610523"},{name:"合阳县",id:"610524"},{name:"澄城县",id:"610525"},{name:"蒲城县",id:"610526"},{name:"白水县",id:"610527"},{name:"富平县",id:"610528"},{name:"韩城市",id:"610581"},{name:"华阴市",id:"610582"}]},{name:"延安市",area:[{name:"宝塔区",id:"610602"},{name:"延长县",id:"610621"},{name:"延川县",id:"610622"},{name:"子长县",id:"610623"},{name:"安塞县",id:"610624"},{name:"志丹县",id:"610625"},{name:"吴起县",id:"610626"},{name:"甘泉县",id:"610627"},{name:"富县",id:"610628"},{name:"洛川县",id:"610629"},{name:"宜川县",id:"610630"},{name:"黄龙县",id:"610631"},{name:"黄陵县",id:"610632"}]},{name:"汉中市",area:[{name:"汉台区",id:"610702"},{name:"南郑县",id:"610721"},{name:"城固县",id:"610722"},{name:"洋县",id:"610723"},{name:"西乡县",id:"610724"},{name:"勉县",id:"610725"},{name:"宁强县",id:"610726"},{name:"略阳县",id:"610727"},{name:"镇巴县",id:"610728"},{name:"留坝县",id:"610729"},{name:"佛坪县",id:"610730"}]},{name:"榆林市",area:[{name:"榆阳区",id:"610802"},{name:"神木县",id:"610821"},{name:"府谷县",id:"610822"},{name:"横山县",id:"610823"},{name:"靖边县",id:"610824"},{name:"定边县",id:"610825"},{name:"绥德县",id:"610826"},{name:"米脂县",id:"610827"},{name:"佳县",id:"610828"},{name:"吴堡县",id:"610829"},{name:"清涧县",id:"610830"},{name:"子洲县",id:"610831"}]},{name:"安康市",area:[{name:"汉滨区",id:"610902"},{name:"汉阴县",id:"610921"},{name:"石泉县",id:"610922"},{name:"宁陕县",id:"610923"},{name:"紫阳县",id:"610924"},{name:"岚皋县",id:"610925"},{name:"平利县",id:"610926"},{name:"镇坪县",id:"610927"},{name:"旬阳县",id:"610928"},{name:"白河县",id:"610929"}]},{name:"商洛市",area:[{name:"商州区",id:"611002"},{name:"洛南县",id:"611021"},{name:"丹凤县",id:"611022"},{name:"商南县",id:"611023"},{name:"山阳县",id:"611024"},{name:"镇安县",id:"611025"},{name:"柞水县",id:"611026"}]},{name:"西咸新区",area:[{name:"空港新城",id:"611101"},{name:"沣东新城",id:"611102"},{name:"秦汉新城",id:"611103"},{name:"沣西新城",id:"611104"},{name:"泾河新城",id:"611105"}]}]},{name:"甘肃省",city:[{name:"兰州市",area:[{name:"城关区",id:"620102"},{name:"七里河区",id:"620103"},{name:"西固区",id:"620104"},{name:"安宁区",id:"620105"},{name:"红古区",id:"620111"},{name:"永登县",id:"620121"},{name:"皋兰县",id:"620122"},{name:"榆中县",id:"620123"}]},{name:"嘉峪关市",area:[{name:"雄关区",id:"620201"},{name:"长城区",id:"620202"},{name:"镜铁区",id:"620203"}]},{name:"金昌市",area:[{name:"金川区",id:"620302"},{name:"永昌县",id:"620321"}]},{name:"白银市",area:[{name:"白银区",id:"620402"},{name:"平川区",id:"620403"},{name:"靖远县",id:"620421"},{name:"会宁县",id:"620422"},{name:"景泰县",id:"620423"}]},{name:"天水市",area:[{name:"秦州区",id:"620502"},{name:"麦积区",id:"620503"},{name:"清水县",id:"620521"},{name:"秦安县",id:"620522"},{name:"甘谷县",id:"620523"},{name:"武山县",id:"620524"},{name:"张家川回族自治县",id:"620525"}]},{name:"武威市",area:[{name:"凉州区",id:"620602"},{name:"民勤县",id:"620621"},{name:"古浪县",id:"620622"},{name:"天祝藏族自治县",id:"620623"}]},{name:"张掖市",area:[{name:"甘州区",id:"620702"},{name:"肃南裕固族自治县",id:"620721"},{name:"民乐县",id:"620722"},{name:"临泽县",id:"620723"},{name:"高台县",id:"620724"},{name:"山丹县",id:"620725"}]},{name:"平凉市",area:[{name:"崆峒区",id:"620802"},{name:"泾川县",id:"620821"},{name:"灵台县",id:"620822"},{name:"崇信县",id:"620823"},{name:"华亭县",id:"620824"},{name:"庄浪县",id:"620825"},{name:"静宁县",id:"620826"}]},{name:"酒泉市",area:[{name:"肃州区",id:"620902"},{name:"金塔县",id:"620921"},{name:"瓜州县",id:"620922"},{name:"肃北蒙古族自治县",id:"620923"},{name:"阿克塞哈萨克族自治县",id:"620924"},{name:"玉门市",id:"620981"},{name:"敦煌市",id:"620982"}]},{name:"庆阳市",area:[{name:"西峰区",id:"621002"},{name:"庆城县",id:"621021"},{name:"环县",id:"621022"},{name:"华池县",id:"621023"},{name:"合水县",id:"621024"},{name:"正宁县",id:"621025"},{name:"宁县",id:"621026"},{name:"镇原县",id:"621027"}]},{name:"定西市",area:[{name:"安定区",id:"621102"},{name:"通渭县",id:"621121"},{name:"陇西县",id:"621122"},{name:"渭源县",id:"621123"},{name:"临洮县",id:"621124"},{name:"漳县",id:"621125"},{name:"岷县",id:"621126"}]},{name:"陇南市",area:[{name:"武都区",id:"621202"},{name:"成县",id:"621221"},{name:"文县",id:"621222"},{name:"宕昌县",id:"621223"},{name:"康县",id:"621224"},{name:"西和县",id:"621225"},{name:"礼县",id:"621226"},{name:"徽县",id:"621227"},{name:"两当县",id:"621228"}]},{name:"临夏回族自治州",area:[{name:"临夏市",id:"622901"},{name:"临夏县",id:"622921"},{name:"康乐县",id:"622922"},{name:"永靖县",id:"622923"},{name:"广河县",id:"622924"},{name:"和政县",id:"622925"},{name:"东乡族自治县",id:"622926"},{name:"积石山保安族东乡族撒拉族自治县",id:"622927"}]},{name:"甘南藏族自治州",area:[{name:"合作市",id:"623001"},{name:"临潭县",id:"623021"},{name:"卓尼县",id:"623022"},{name:"舟曲县",id:"623023"},{name:"迭部县",id:"623024"},{name:"玛曲县",id:"623025"},{name:"碌曲县",id:"623026"},{name:"夏河县",id:"623027"}]}]},{name:"青海省",city:[{name:"西宁市",area:[{name:"城东区",id:"630102"},{name:"城中区",id:"630103"},{name:"城西区",id:"630104"},{name:"城北区",id:"630105"},{name:"大通回族土族自治县",id:"630121"},{name:"湟中县",id:"630122"},{name:"湟源县",id:"630123"}]},{name:"海东市",area:[{name:"乐都区",id:"630202"},{name:"平安县",id:"630221"},{name:"民和回族土族自治县",id:"630222"},{name:"互助土族自治县",id:"630223"},{name:"化隆回族自治县",id:"630224"},{name:"循化撒拉族自治县",id:"630225"}]},{name:"海北藏族自治州",area:[{name:"门源回族自治县",id:"632221"},{name:"祁连县",id:"632222"},{name:"海晏县",id:"632223"},{name:"刚察县",id:"632224"}]},{name:"黄南藏族自治州",area:[{name:"同仁县",id:"632321"},{name:"尖扎县",id:"632322"},{name:"泽库县",id:"632323"},{name:"河南蒙古族自治县",id:"632324"}]},{name:"海南藏族自治州",area:[{name:"共和县",id:"632521"},{name:"同德县",id:"632522"},{name:"贵德县",id:"632523"},{name:"兴海县",id:"632524"},{name:"贵南县",id:"632525"}]},{name:"果洛藏族自治州",area:[{name:"玛沁县",id:"632621"},{name:"班玛县",id:"632622"},{name:"甘德县",id:"632623"},{name:"达日县",id:"632624"},{name:"久治县",id:"632625"},{name:"玛多县",id:"632626"}]},{name:"玉树藏族自治州",area:[{name:"玉树市",id:"632701"},{name:"杂多县",id:"632722"},{name:"称多县",id:"632723"},{name:"治多县",id:"632724"},{name:"囊谦县",id:"632725"},{name:"曲麻莱县",id:"632726"}]},{name:"海西蒙古族藏族自治州",area:[{name:"格尔木市",id:"632801"},{name:"德令哈市",id:"632802"},{name:"乌兰县",id:"632821"},{name:"都兰县",id:"632822"},{name:"天峻县",id:"632823"}]}]},{name:"宁夏回族自治区",city:[{name:"银川市",area:[{name:"兴庆区",id:"640104"},{name:"西夏区",id:"640105"},{name:"金凤区",id:"640106"},{name:"永宁县",id:"640121"},{name:"贺兰县",id:"640122"},{name:"灵武市",id:"640181"}]},{name:"石嘴山市",area:[{name:"大武口区",id:"640202"},{name:"惠农区",id:"640205"},{name:"平罗县",id:"640221"}]},{name:"吴忠市",area:[{name:"利通区",id:"640302"},{name:"红寺堡区",id:"640303"},{name:"盐池县",id:"640323"},{name:"同心县",id:"640324"},{name:"青铜峡市",id:"640381"}]},{name:"固原市",area:[{name:"原州区",id:"640402"},{name:"西吉县",id:"640422"},{name:"隆德县",id:"640423"},{name:"泾源县",id:"640424"},{name:"彭阳县",id:"640425"}]},{name:"中卫市",area:[{name:"沙坡头区",id:"640502"},{name:"中宁县",id:"640521"},{name:"海原县",id:"640522"}]}]},{name:"新疆维吾尔自治区",city:[{name:"乌鲁木齐市",area:[{name:"天山区",id:"650102"},{name:"沙依巴克区",id:"650103"},{name:"新市区",id:"650104"},{name:"水磨沟区",id:"650105"},{name:"头屯河区",id:"650106"},{name:"达坂城区",id:"650107"},{name:"米东区",id:"650109"},{name:"乌鲁木齐县",id:"650121"}]},{name:"克拉玛依市",area:[{name:"独山子区",id:"650202"},{name:"克拉玛依区",id:"650203"},{name:"白碱滩区",id:"650204"},{name:"乌尔禾区",id:"650205"}]},{name:"吐鲁番地区",area:[{name:"吐鲁番市",id:"652101"},{name:"鄯善县",id:"652122"},{name:"托克逊县",id:"652123"}]},{name:"哈密地区",area:[{name:"哈密市",id:"652201"},{name:"巴里坤哈萨克自治县",id:"652222"},{name:"伊吾县",id:"652223"}]},{name:"昌吉回族自治州",area:[{name:"昌吉市",id:"652301"},{name:"阜康市",id:"652302"},{name:"呼图壁县",id:"652323"},{name:"玛纳斯县",id:"652324"},{name:"奇台县",id:"652325"},{name:"吉木萨尔县",id:"652327"},{name:"木垒哈萨克自治县",id:"652328"}]},{name:"博尔塔拉蒙古自治州",area:[{name:"博乐市",id:"652701"},{name:"阿拉山口市",id:"652702"},{name:"精河县",id:"652722"},{name:"温泉县",id:"652723"}]},{name:"巴音郭楞蒙古自治州",area:[{name:"库尔勒市",id:"652801"},{name:"轮台县",id:"652822"},{name:"尉犁县",id:"652823"},{name:"若羌县",id:"652824"},{name:"且末县",id:"652825"},{name:"焉耆回族自治县",id:"652826"},{name:"和静县",id:"652827"},{name:"和硕县",id:"652828"},{name:"博湖县",id:"652829"}]},{name:"阿克苏地区",area:[{name:"阿克苏市",id:"652901"},{name:"温宿县",id:"652922"},{name:"库车县",id:"652923"},{name:"沙雅县",id:"652924"},{name:"新和县",id:"652925"},{name:"拜城县",id:"652926"},{name:"乌什县",id:"652927"},{name:"阿瓦提县",id:"652928"},{name:"柯坪县",id:"652929"}]},{name:"克孜勒苏柯尔克孜自治州",area:[{name:"阿图什市",id:"653001"},{name:"阿克陶县",id:"653022"},{name:"阿合奇县",id:"653023"},{name:"乌恰县",id:"653024"}]},{name:"喀什地区",area:[{name:"喀什市",id:"653101"},{name:"疏附县",id:"653121"},{name:"疏勒县",id:"653122"},{name:"英吉沙县",id:"653123"},{name:"泽普县",id:"653124"},{name:"莎车县",id:"653125"},{name:"叶城县",id:"653126"},{name:"麦盖提县",id:"653127"},{name:"岳普湖县",id:"653128"},{name:"伽师县",id:"653129"},{name:"巴楚县",id:"653130"},{name:"塔什库尔干塔吉克自治县",id:"653131"}]},{name:"和田地区",area:[{name:"和田市",id:"653201"},{name:"和田县",id:"653221"},{name:"墨玉县",id:"653222"},{name:"皮山县",id:"653223"},{name:"洛浦县",id:"653224"},{name:"策勒县",id:"653225"},{name:"于田县",id:"653226"},{name:"民丰县",id:"653227"}]},{name:"伊犁哈萨克自治州",area:[{name:"伊宁市",id:"654002"},{name:"奎屯市",id:"654003"},{name:"霍尔果斯市",id:"654004"},{name:"伊宁县",id:"654021"},{name:"察布查尔锡伯自治县",id:"654022"},{name:"霍城县",id:"654023"},{name:"巩留县",id:"654024"},{name:"新源县",id:"654025"},{name:"昭苏县",id:"654026"},{name:"特克斯县",id:"654027"},{name:"尼勒克县",id:"654028"}]},{name:"塔城地区",area:[{name:"塔城市",id:"654201"},{name:"乌苏市",id:"654202"},{name:"额敏县",id:"654221"},{name:"沙湾县",id:"654223"},{name:"托里县",id:"654224"},{name:"裕民县",id:"654225"},{name:"和布克赛尔蒙古自治县",id:"654226"}]},{name:"阿勒泰地区",area:[{name:"阿勒泰市",id:"654301"},{name:"布尔津县",id:"654321"},{name:"富蕴县",id:"654322"},{name:"福海县",id:"654323"},{name:"哈巴河县",id:"654324"},{name:"青河县",id:"654325"},{name:"吉木乃县",id:"654326"}]},{name:"直辖县级",area:[{name:"石河子市",id:"659001"},{name:"阿拉尔市",id:"659002"},{name:"图木舒克市",id:"659003"},{name:"五家渠市",id:"659004"},{name:"北屯市",id:"659005"},{name:"铁门关市",id:"659006"},{name:"双河市",id:"659007"}]}]},{name:"台湾",city:[{name:"台北市",area:[{name:"松山区",id:"710101"},{name:"信义区",id:"710102"},{name:"大安区",id:"710103"},{name:"中山区",id:"710104"},{name:"中正区",id:"710105"},{name:"大同区",id:"710106"},{name:"万华区",id:"710107"},{name:"文山区",id:"710108"},{name:"南港区",id:"710109"},{name:"内湖区",id:"710110"},{name:"士林区",id:"710111"},{name:"北投区",id:"710112"}]},{name:"高雄市",area:[{name:"盐埕区",id:"710201"},{name:"鼓山区",id:"710202"},{name:"左营区",id:"710203"},{name:"楠梓区",id:"710204"},{name:"三民区",id:"710205"},{name:"新兴区",id:"710206"},{name:"前金区",id:"710207"},{name:"苓雅区",id:"710208"},{name:"前镇区",id:"710209"},{name:"旗津区",id:"710210"},{name:"小港区",id:"710211"},{name:"凤山区",id:"710212"},{name:"林园区",id:"710213"},{name:"大寮区",id:"710214"},{name:"大树区",id:"710215"},{name:"大社区",id:"710216"},{name:"仁武区",id:"710217"},{name:"鸟松区",id:"710218"},{name:"冈山区",id:"710219"},{name:"桥头区",id:"710220"},{name:"燕巢区",id:"710221"},{name:"田寮区",id:"710222"},{name:"阿莲区",id:"710223"},{name:"路竹区",id:"710224"},{name:"湖内区",id:"710225"},{name:"茄萣区",id:"710226"},{name:"永安区",id:"710227"},{name:"弥陀区",id:"710228"},{name:"梓官区",id:"710229"},{name:"旗山区",id:"710230"},{name:"美浓区",id:"710231"},{name:"六龟区",id:"710232"},{name:"甲仙区",id:"710233"},{name:"杉林区",id:"710234"},{name:"内门区",id:"710235"},{name:"茂林区",id:"710236"},{name:"桃源区",id:"710237"},{name:"那玛夏区",id:"710238"}]},{name:"基隆市",area:[{name:"中正区",id:"710301"},{name:"七堵区",id:"710302"},{name:"暖暖区",id:"710303"},{name:"仁爱区",id:"710304"},{name:"中山区",id:"710305"},{name:"安乐区",id:"710306"},{name:"信义区",id:"710307"}]},{name:"台中市",area:[{name:"中区",id:"710401"},{name:"东区",id:"710402"},{name:"南区",id:"710403"},{name:"西区",id:"710404"},{name:"北区",id:"710405"},{name:"西屯区",id:"710406"},{name:"南屯区",id:"710407"},{name:"北屯区",id:"710408"},{name:"丰原区",id:"710409"},{name:"东势区",id:"710410"},{name:"大甲区",id:"710411"},{name:"清水区",id:"710412"},{name:"沙鹿区",id:"710413"},{name:"梧栖区",id:"710414"},{name:"后里区",id:"710415"},{name:"神冈区",id:"710416"},{name:"潭子区",id:"710417"},{name:"大雅区",id:"710418"},{name:"新社区",id:"710419"},{name:"石冈区",id:"710420"},{name:"外埔区",id:"710421"},{name:"大安区",id:"710422"},{name:"乌日区",id:"710423"},{name:"大肚区",id:"710424"},{name:"龙井区",id:"710425"},{name:"雾峰区",id:"710426"},{name:"太平区",id:"710427"},{name:"大里区",id:"710428"},{name:"和平区",id:"710429"}]},{name:"台南市",area:[{name:"东区",id:"710501"},{name:"南区",id:"710502"},{name:"北区",id:"710504"},{name:"安南区",id:"710506"},{name:"安平区",id:"710507"},{name:"中西区",id:"710508"},{name:"新营区",id:"710509"},{name:"盐水区",id:"710510"},{name:"白河区",id:"710511"},{name:"柳营区",id:"710512"},{name:"后壁区",id:"710513"},{name:"东山区",id:"710514"},{name:"麻豆区",id:"710515"},{name:"下营区",id:"710516"},{name:"六甲区",id:"710517"},{name:"官田区",id:"710518"},{name:"大内区",id:"710519"},{name:"佳里区",id:"710520"},{name:"学甲区",id:"710521"},{name:"西港区",id:"710522"},{name:"七股区",id:"710523"},{name:"将军区",id:"710524"},{name:"北门区",id:"710525"},{name:"新化区",id:"710526"},{name:"善化区",id:"710527"},{name:"新市区",id:"710528"},{name:"安定区",id:"710529"},{name:"山上区",id:"710530"},{name:"玉井区",id:"710531"},{name:"楠西区",id:"710532"},{name:"南化区",id:"710533"},{name:"左镇区",id:"710534"},{name:"仁德区",id:"710535"},{name:"归仁区",id:"710536"},{name:"关庙区",id:"710537"},{name:"龙崎区",id:"710538"},{name:"永康区",id:"710539"}]},{name:"新竹市",area:[{name:"东区",id:"710601"},{name:"北区",id:"710602"},{name:"香山区",id:"710603"}]},{name:"嘉义市",area:[{name:"东区",id:"710701"},{name:"西区",id:"710702"}]},{name:"新北市",area:[{name:"板桥区",id:"710801"},{name:"三重区",id:"710802"},{name:"中和区",id:"710803"},{name:"永和区",id:"710804"},{name:"新庄区",id:"710805"},{name:"新店区",id:"710806"},{name:"树林区",id:"710807"},{name:"莺歌区",id:"710808"},{name:"三峡区",id:"710809"},{name:"淡水区",id:"710810"},{name:"汐止区",id:"710811"},{name:"瑞芳区",id:"710812"},{name:"土城区",id:"710813"},{name:"芦洲区",id:"710814"},{name:"五股区",id:"710815"},{name:"泰山区",id:"710816"},{name:"林口区",id:"710817"},{name:"深坑区",id:"710818"},{name:"石碇区",id:"710819"},{name:"坪林区",id:"710820"},{name:"三芝区",id:"710821"},{name:"石门区",id:"710822"},{name:"八里区",id:"710823"},{name:"平溪区",id:"710824"},{name:"双溪区",id:"710825"},{name:"贡寮区",id:"710826"},{name:"金山区",id:"710827"},{name:"万里区",id:"710828"},{name:"乌来区",id:"710829"}]},{name:"宜兰县",area:[{name:"宜兰市",id:"712201"},{name:"罗东镇",id:"712221"},{name:"苏澳镇",id:"712222"},{name:"头城镇",id:"712223"},{name:"礁溪乡",id:"712224"},{name:"壮围乡",id:"712225"},{name:"员山乡",id:"712226"},{name:"冬山乡",id:"712227"},{name:"五结乡",id:"712228"},{name:"三星乡",id:"712229"},{name:"大同乡",id:"712230"},{name:"南澳乡",id:"712231"}]},{name:"桃园县",area:[{name:"桃园市",id:"712301"},{name:"中坜市",id:"712302"},{name:"平镇市",id:"712303"},{name:"八德市",id:"712304"},{name:"杨梅市",id:"712305"},{name:"芦竹市",id:"712306"},{name:"大溪镇",id:"712321"},{name:"大园乡",id:"712324"},{name:"龟山乡",id:"712325"},{name:"龙潭乡",id:"712327"},{name:"新屋乡",id:"712329"},{name:"观音乡",id:"712330"},{name:"复兴乡",id:"712331"}]},{name:"新竹县",area:[{name:"竹北市",id:"712401"},{name:"竹东镇",id:"712421"},{name:"新埔镇",id:"712422"},{name:"关西镇",id:"712423"},{name:"湖口乡",id:"712424"},{name:"新丰乡",id:"712425"},{name:"芎林乡",id:"712426"},{name:"横山乡",id:"712427"},{name:"北埔乡",id:"712428"},{name:"宝山乡",id:"712429"},{name:"峨眉乡",id:"712430"},{name:"尖石乡",id:"712431"},{name:"五峰乡",id:"712432"}]},{name:"苗栗县",area:[{name:"苗栗市",id:"712501"},{name:"苑里镇",id:"712521"},{name:"通霄镇",id:"712522"},{name:"竹南镇",id:"712523"},{name:"头份镇",id:"712524"},{name:"后龙镇",id:"712525"},{name:"卓兰镇",id:"712526"},{name:"大湖乡",id:"712527"},{name:"公馆乡",id:"712528"},{name:"铜锣乡",id:"712529"},{name:"南庄乡",id:"712530"},{name:"头屋乡",id:"712531"},{name:"三义乡",id:"712532"},{name:"西湖乡",id:"712533"},{name:"造桥乡",id:"712534"},{name:"三湾乡",id:"712535"},{name:"狮潭乡",id:"712536"},{name:"泰安乡",id:"712537"}]},{name:"彰化县",area:[{name:"彰化市",id:"712701"},{name:"鹿港镇",id:"712721"},{name:"和美镇",id:"712722"},{name:"线西乡",id:"712723"},{name:"伸港乡",id:"712724"},{name:"福兴乡",id:"712725"},{name:"秀水乡",id:"712726"},{name:"花坛乡",id:"712727"},{name:"芬园乡",id:"712728"},{name:"员林镇",id:"712729"},{name:"溪湖镇",id:"712730"},{name:"田中镇",id:"712731"},{name:"大村乡",id:"712732"},{name:"埔盐乡",id:"712733"},{name:"埔心乡",id:"712734"},{name:"永靖乡",id:"712735"},{name:"社头乡",id:"712736"},{name:"二水乡",id:"712737"},{name:"北斗镇",id:"712738"},{name:"二林镇",id:"712739"},{name:"田尾乡",id:"712740"},{name:"埤头乡",id:"712741"},{name:"芳苑乡",id:"712742"},{name:"大城乡",id:"712743"},{name:"竹塘乡",id:"712744"},{name:"溪州乡",id:"712745"}]},{name:"南投县",area:[{name:"南投市",id:"712801"},{name:"埔里镇",id:"712821"},{name:"草屯镇",id:"712822"},{name:"竹山镇",id:"712823"},{name:"集集镇",id:"712824"},{name:"名间乡",id:"712825"},{name:"鹿谷乡",id:"712826"},{name:"中寮乡",id:"712827"},{name:"鱼池乡",id:"712828"},{name:"国姓乡",id:"712829"},{name:"水里乡",id:"712830"},{name:"信义乡",id:"712831"},{name:"仁爱乡",id:"712832"}]},{name:"云林县",area:[{name:"斗六市",id:"712901"},{name:"斗南镇",id:"712921"},{name:"虎尾镇",id:"712922"},{name:"西螺镇",id:"712923"},{name:"土库镇",id:"712924"},{name:"北港镇",id:"712925"},{name:"古坑乡",id:"712926"},{name:"大埤乡",id:"712927"},{name:"莿桐乡",id:"712928"},{name:"林内乡",id:"712929"},{name:"二仑乡",id:"712930"},{name:"仑背乡",id:"712931"},{name:"麦寮乡",id:"712932"},{name:"东势乡",id:"712933"},{name:"褒忠乡",id:"712934"},{name:"台西乡",id:"712935"},{name:"元长乡",id:"712936"},{name:"四湖乡",id:"712937"},{name:"口湖乡",id:"712938"},{name:"水林乡",id:"712939"}]},{name:"嘉义县",area:[{name:"太保市",id:"713001"},{name:"朴子市",id:"713002"},{name:"布袋镇",id:"713023"},{name:"大林镇",id:"713024"},{name:"民雄乡",id:"713025"},{name:"溪口乡",id:"713026"},{name:"新港乡",id:"713027"},{name:"六脚乡",id:"713028"},{name:"东石乡",id:"713029"},{name:"义竹乡",id:"713030"},{name:"鹿草乡",id:"713031"},{name:"水上乡",id:"713032"},{name:"中埔乡",id:"713033"},{name:"竹崎乡",id:"713034"},{name:"梅山乡",id:"713035"},{name:"番路乡",id:"713036"},{name:"大埔乡",id:"713037"},{name:"阿里山乡",id:"713038"}]},{name:"屏东县",area:[{name:"屏东市",id:"713301"},{name:"潮州镇",id:"713321"},{name:"东港镇",id:"713322"},{name:"恒春镇",id:"713323"},{name:"万丹乡",id:"713324"},{name:"长治乡",id:"713325"},{name:"麟洛乡",id:"713326"},{name:"九如乡",id:"713327"},{name:"里港乡",id:"713328"},{name:"盐埔乡",id:"713329"},{name:"高树乡",id:"713330"},{name:"万峦乡",id:"713331"},{name:"内埔乡",id:"713332"},{name:"竹田乡",id:"713333"},{name:"新埤乡",id:"713334"},{name:"枋寮乡",id:"713335"},{name:"新园乡",id:"713336"},{name:"崁顶乡",id:"713337"},{name:"林边乡",id:"713338"},{name:"南州乡",id:"713339"},{name:"佳冬乡",id:"713340"},{name:"琉球乡",id:"713341"},{name:"车城乡",id:"713342"},{name:"满州乡",id:"713343"},{name:"枋山乡",id:"713344"},{name:"三地门乡",id:"713345"},{name:"雾台乡",id:"713346"},{name:"玛家乡",id:"713347"},{name:"泰武乡",id:"713348"},{name:"来义乡",id:"713349"},{name:"春日乡",id:"713350"},{name:"狮子乡",id:"713351"},{name:"牡丹乡",id:"713352"}]},{name:"台东县",area:[{name:"台东市",id:"713401"},{name:"成功镇",id:"713421"},{name:"关山镇",id:"713422"},{name:"卑南乡",id:"713423"},{name:"鹿野乡",id:"713424"},{name:"池上乡",id:"713425"},{name:"东河乡",id:"713426"},{name:"长滨乡",id:"713427"},{name:"太麻里乡",id:"713428"},{name:"大武乡",id:"713429"},{name:"绿岛乡",id:"713430"},{name:"海端乡",id:"713431"},{name:"延平乡",id:"713432"},{name:"金峰乡",id:"713433"},{name:"达仁乡",id:"713434"},{name:"兰屿乡",id:"713435"}]},{name:"花莲县",area:[{name:"花莲市",id:"713501"},{name:"凤林镇",id:"713521"},{name:"玉里镇",id:"713522"},{name:"新城乡",id:"713523"},{name:"吉安乡",id:"713524"},{name:"寿丰乡",id:"713525"},{name:"光复乡",id:"713526"},{name:"丰滨乡",id:"713527"},{name:"瑞穗乡",id:"713528"},{name:"富里乡",id:"713529"},{name:"秀林乡",id:"713530"},{name:"万荣乡",id:"713531"},{name:"卓溪乡",id:"713532"}]},{name:"澎湖县",area:[{name:"马公市",id:"713601"},{name:"湖西乡",id:"713621"},{name:"白沙乡",id:"713622"},{name:"西屿乡",id:"713623"},{name:"望安乡",id:"713624"},{name:"七美乡",id:"713625"}]},{name:"金门县",area:[{name:"金城镇",id:"713701"},{name:"金湖镇",id:"713702"},{name:"金沙镇",id:"713703"},{name:"金宁乡",id:"713704"},{name:"烈屿乡",id:"713705"},{name:"乌丘乡",id:"713706"}]},{name:"连江县",area:[{name:"南竿乡",id:"713801"},{name:"北竿乡",id:"713802"},{name:"莒光乡",id:"713803"},{name:"东引乡",id:"713804"}]}]},{name:"香港特别行政区",city:[{name:"香港岛",area:[{name:"中西区",id:"810101"},{name:"湾仔区",id:"810102"},{name:"东区",id:"810103"},{name:"南区",id:"810104"}]},{name:"九龙",area:[{name:"油尖旺区",id:"810201"},{name:"深水埗区",id:"810202"},{name:"九龙城区",id:"810203"},{name:"黄大仙区",id:"810204"},{name:"观塘区",id:"810205"}]},{name:"新界",area:[{name:"荃湾区",id:"810301"},{name:"屯门区",id:"810302"},{name:"元朗区",id:"810303"},{name:"北区",id:"810304"},{name:"大埔区",id:"810305"},{name:"西贡区",id:"810306"},{name:"沙田区",id:"810307"},{name:"葵青区",id:"810308"},{name:"离岛区",id:"810309"}]}]},{name:"澳门特别行政区",city:[{name:"澳门半岛",area:[{name:"花地玛堂区",id:"820101"},{name:"圣安多尼堂区",id:"820102"},{name:"大堂区",id:"820103"},{name:"望德堂区",id:"820104"},{name:"风顺堂区",id:"820105"}]},{name:"氹仔岛",area:[{name:"嘉模堂区",id:"820201"}]},{name:"路环岛",area:[{name:"圣方济各堂区",id:"820301"}]}]}];function getProvinces(){for(var e=[],t=0;t<AreaJson.length;t++)e.push(AreaJson[t].name);return e}function getMyCity(e){for(var t=[],n=0;n<AreaJson[e].city.length;n++)t.push(AreaJson[e].city[n].name);return t}function getAreas(e,t){for(var n=[],a=0;a<AreaJson[e].city[t].area.length;a++)n.push(AreaJson[e].city[t].area[a].name);return n}function getAreasCode(e,t,n){return 0}let index=[0,0,0],provinces=getProvinces();getMyCity(index[0]),getMyCity(index[0],index[1]);const _sfc_main$8={mixins:[{methods:{setData:function(e,t){let n=this;Object.keys(e).forEach((function(t){let a,i,o=e[t],r=(t=t.replace(/\]/g,"").replace(/\[/g,".")).lastIndexOf(".");var s,l,c;-1!=r?(i=t.slice(r+1),s=n,l=t.slice(0,r),c=i,(l=l.split(".")).forEach((e=>{if(null===s[e]||void 0===s[e]){let t=/^[0-9]+$/;s[e]=t.test(c)?[]:{},s=s[e]}else s=s[e]})),a=s):(i=t,a=n),a.$data&&void 0===a.$data[i]?(Object.defineProperty(a,i,{get:()=>a.$data[i],set(e){a.$data[i]=e,n.$forceUpdate()},enumerable:!0,configurable:!0}),Reflect.set(a,i,o)):Reflect.set(a,i,o)})),"function"==typeof t&&this.$nextTick(t)}}}],data:()=>({provinces:getProvinces(),citys:getMyCity(index[0]),areas:getAreas(index[0],index[1]),value:[0,0,0]}),components:{},props:{province:{type:String,default:""},city:{type:String,default:""},area:{type:String,default:""},show:{type:Boolean,default:!1},maskShow:{type:Boolean,default:!0}},watch:{province(){this.init()},city(){this.init()},area(){this.init()}},mounted(){let e=this.provinces.indexOf(this.province);this.citys=getMyCity(e);let t=this.citys.indexOf(this.city);this.areas=getAreas(e,t);let n=this.areas.indexOf(this.area);this.value=[e,t,n]},methods:{init(){let e=this.provinces.indexOf(this.province);this.citys=getMyCity(e);let t=this.citys.indexOf(this.city);this.areas=getAreas(e,t);let n=this.areas.indexOf(this.area);this.value=[e,t,n]},handleNYZAreaChange:function(e){var t=this,n=e.detail.value;if(index[0]!=n[0]){index=[n[0],0,0];let e=getMyCity(index[0]),a=getAreas(index[0],0);t.setData({citys:e,areas:a,value:[index[0],0,0]});let i=getAreasCode(index[0],index[1],index[2]);t.$emit("changeClick",provinces[index[0]],e[index[1]],a[index[2]],i)}else if(index[1]!=n[1]){index=[n[0],n[1],0];let e=getMyCity(index[0]),a=getAreas(index[0],n[1]);t.setData({citys:e,areas:a,value:[index[0],index[1],0]});let i=getAreasCode(index[0],index[1],index[2]);t.$emit("changeClick",provinces[index[0]],e[index[1]],a[index[2]],i)}else if(index[2]!=n[2]){index=[n[0],n[1],n[2]];let e=getMyCity(index[0]),a=getAreas(index[0],n[1]);t.setData({citys:e,areas:a,value:[index[0],index[1],index[2]]});let i=getAreasCode(index[0],index[1],index[2]);t.$emit("changeClick",provinces[index[0]],e[index[1]],a[index[2]],i)}},handleNYZAreaSelect:function(e){var t=e;this.$emit("sureSelectArea",{detail:t},{}),index=[0,0,0]},handleNYZAreaCancle:function(e){this.$emit("hideShow",{detail:!1}),index=[0,0,0]}}};function _sfc_render$2(e,t,n,a,i,o){const r=index$g,s=index$i,l=PickerViewColumn,c=PickerView;return openBlock(),createBlock(r,null,{default:withCtx((()=>[withDirectives(createVNode(r,{class:"cc_area_mask"},null,512),[[vShow,1==n.show]]),createVNode(r,{class:normalizeClass("cc_area_view "+(n.show?"show":"hide"))},{default:withCtx((()=>[createVNode(r,{class:"cc_area_view_btns"},{default:withCtx((()=>[createVNode(s,{class:"cc_area_view_btn_cancle",onClick:o.handleNYZAreaCancle},{default:withCtx((()=>[createTextVNode("取消")])),_:1},8,["onClick"]),createVNode(s,{class:"cc_area_view_btn_sure",onClick:o.handleNYZAreaSelect,"data-province":n.province,"data-city":n.city,"data-area":n.area},{default:withCtx((()=>[createTextVNode("确定")])),_:1},8,["onClick","data-province","data-city","data-area"])])),_:1}),createVNode(c,{class:"cc_area_pick_view","indicator-style":"height: 35px;",onChange:o.handleNYZAreaChange,value:i.value},{default:withCtx((()=>[createVNode(l,null,{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(i.provinces,((e,t)=>(openBlock(),createBlock(r,{key:t,class:"cc_area_colum_view"},{default:withCtx((()=>[createTextVNode(toDisplayString(e),1)])),_:2},1024)))),128))])),_:1}),createVNode(l,null,{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(i.citys,((e,t)=>(openBlock(),createBlock(r,{key:t,class:"cc_area_colum_view"},{default:withCtx((()=>[createTextVNode(toDisplayString(e),1)])),_:2},1024)))),128))])),_:1}),createVNode(l,null,{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(i.areas,((e,t)=>(openBlock(),createBlock(r,{key:t,class:"cc_area_colum_view"},{default:withCtx((()=>[createTextVNode(toDisplayString(e),1)])),_:2},1024)))),128))])),_:1})])),_:1},8,["onChange","value"])])),_:1},8,["class"])])),_:1})}const __easycom_0=_export_sfc(_sfc_main$8,[["render",_sfc_render$2],["__scopeId","data-v-119ca5c4"]]),_sfc_main$7={__name:"Provinces",props:{formProps:{type:Object,default:()=>({})},modelValue:String,readonly:Boolean},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=reactive({province:"江西省",city:"南昌市",area:"南昌县"}),i=computed({get(){if(""===(n.modelValue||"").trim())return null;{const e=n.modelValue.split("-");return a.province=e[0],a.city=e[1],a.area=e[2],e}},set(e){o("update:modelValue",e)}}),o=t,r=ref(!1);function s(){n.readonly||(r.value=!0)}function l(e){const t=e.detail.target.dataset;i.value=`${t.province}-${t.city}-${t.area}`,r.value=!1}function c(e,t,n){a.province=e,a.city=t,a.area=n}return(t,i)=>{const o=resolveEasycom(resolveDynamicComponent("cc-selectDity"),__easycom_0),d=index$g;return openBlock(),createBlock(d,null,{default:withCtx((()=>[createVNode(ClickInput,{preIcon:"map-pin-ellipse",disabled:e.readonly,placeholder:e.formProps.placeholder||"请选择省市区",onClick:s,value:n.modelValue},null,8,["disabled","placeholder","value"]),createVNode(o,{province:a.province,city:a.city,area:a.area,show:r.value,onSureSelectArea:l,onHideShow:i[0]||(i[0]=e=>r.value=!1),onChangeClick:c},null,8,["province","city","area","show"])])),_:1})}}};function canIUseCanvas2d(){return!1}const wrapEvent=e=>{if(e)return e.preventDefault||(e.preventDefault=function(){}),e},requestAnimationFrame$1=e=>{setTimeout(e,30)};function sleep(e){return new Promise((t=>setTimeout(t,e)))}function getRect(e,t={}){const n="boundingClientRect",{context:a,type:i=n}=t;return new Promise(((t,o)=>{const r=createSelectorQuery().in(a).select(e),s=e=>{e?t(e):o()};i==n?r[i](s).exec():r[i]({node:!0,size:!0,rect:!0},s).exec()}))}function isTransparent(e){if("transparent"===e)return!0;if(e.startsWith("rgba")){const t=/\d+(\.\d+)?/g,n=e.match(t);if(null!==n){if(0===parseFloat(n[3]))return!0}}return!1}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function e(e){for(var n=1;arguments.length>n;n++){var a=null!=arguments[n]?arguments[n]:{};n%2?t(Object(a),!0).forEach((function(t){r(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):t(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;t.length>n;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=h(e);if(t){var i=h(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return c(this,n)}}var v=function(e){var t=i(e);return null!==e&&"object"===t||"function"===t},f={}.toString,d=function(e,t){return f.call(e)==="[object "+t+"]"},p=function(e){return d(e,"String")},y=function(e){return d(e,"Number")},g=function(e){return d(e,"Function")},m=function(){function e(){n(this,e),this.__events=void 0,this.__events={}}return a(e,[{key:"on",value:function(e,t){if(e&&t){var n=this.__events[e]||[];n.push(t),this.__events[e]=n}}},{key:"emit",value:function(e,t){var n=this;if(v(e)&&(e=(t=e)&&t.type),e){var a=this.__events[e];a&&a.length&&a.forEach((function(e){e.call(n,t)}))}}},{key:"off",value:function(e,t){var n=this.__events,a=n[e];if(a&&a.length)if(t)for(var i=0,o=a.length;o>i;i++)a[i]===t&&(a.splice(i,1),i--);else delete n[e]}},{key:"getEvents",value:function(){return this.__events}}]),e}(),x=function(e){s(i,m);var t=l(i);function i(e,a){var o;return n(this,i),(o=t.call(this)).context=void 0,o.canvas=void 0,o.attrs=void 0,o.isCanvasElement=void 0,o.context=e,o.canvas=a.canvas||e.canvas||{width:a.width||0,height:a.height||0},o.attrs=a||{},o.isCanvasElement=!0,o}return a(i,[{key:"width",get:function(){return this.canvas.width},set:function(e){this.canvas.width=e}},{key:"height",get:function(){return this.canvas.height},set:function(e){this.canvas.height=e}},{key:"getContext",value:function(){return this.context}},{key:"getBoundingClientRect",value:function(){var e=this.attrs||{},t=e.top,n=e.right,a=e.width,i=e.height,o=e.left,r=e.bottom;return{top:void 0===t?0:t,width:void 0===a?0:a,right:void 0===n?0:n,height:void 0===i?0:i,bottom:void 0===r?0:r,left:void 0===o?0:o}}},{key:"setAttribute",value:function(e,t){this.attrs[e]=t}},{key:"addEventListener",value:function(e,t){this.on(e,t)}},{key:"removeEventListener",value:function(e,t){this.off(e,t)}},{key:"dispatchEvent",value:function(e,t){this.emit(e,t)}}]),i}(),w=function(e,t){return e?function(e){if(!e)return!1;if(1!==e.nodeType||!e.nodeName||"canvas"!==e.nodeName.toLowerCase())return!1;var t=!1;try{e.addEventListener("eventTest",(function(){t=!0})),e.dispatchEvent(new Event("eventTest"))}catch(n){t=!1}return t}(e.canvas)?e.canvas:new x(e,t):null};function b(e,t){try{return e.currentStyle?e.currentStyle[t]:document.defaultView&&document.defaultView.getComputedStyle(e,null).getPropertyValue(t)}catch(n){return{width:300,height:150}[t]}}function k(e,t){var n=t.get("el");if(!n)return e;var a=n.getBoundingClientRect(),i=a.top,o=void 0===i?0:i,r=a.left,s=void 0===r?0:r,l=parseFloat(b(n,"padding-left"))||0,c=parseFloat(b(n,"padding-top"))||0;return{x:e.x-s-l,y:e.y-o-c}}function _(e,t){var n=t.get("landscape");if(!n)return e;if(g(n))return n(e,t);var a=t.get("height");return{x:e.y,y:a-e.x}}var E=function(e,t){var n=e.touches;if(!n||!n.length)return[_(k({x:e.clientX,y:e.clientY},t),t)];n.length||(n=e.changedTouches||[]);for(var a=[],i=0,o=n.length;o>i;i++){var r,s=n[i],l=s.x,c=s.y,d=s.clientX,u=s.clientY;r=y(l)||y(c)?{x:l,y:c}:k({x:d,y:u},t),a.push(_(r,t))}return a},L=function(e,t){var n=t.x-e.x,a=t.y-e.y;return Math.abs(n)>Math.abs(a)?n>0?"right":"left":a>0?"down":"up"},M=function(e,t){var n=Math.abs(t.x-e.x),a=Math.abs(t.y-e.y);return Math.sqrt(n*n+a*a)},P=function(){function e(t){var a=this,i=t.canvas,o=t.el;n(this,e),this.processEvent=void 0,this.canvas=void 0,this.startTime=0,this.endTime=0,this.startPoints=null,this.startDistance=0,this.center=null,this.pressTimeout=void 0,this.eventType=null,this.direction=null,this.lastMoveTime=0,this.prevMovePoints=null,this.prevMoveTime=0,this.lastMovePoints=null,this.pinch=!1,this._click=function(e){var t=E(e,a.canvas);e.points=t,a.emitEvent("click",e)},this._start=function(e){var t,n,i=E(e,a.canvas);i&&(e.points=i,a.emitEvent("touchstart",e),a.reset(),a.startTime=Date.now(),a.startPoints=i,i.length>1?(a.startDistance=M(i[0],i[1]),a.center={x:(t=i[0]).x+((n=i[1]).x-t.x)/2,y:t.y+(n.y-t.y)/2}):a.pressTimeout=setTimeout((function(){var t="press",n="none";e.direction=n,a.emitStart(t,e),a.emitEvent(t,e),a.eventType=t,a.direction=n}),250))},this._move=function(e){var t=E(e,a.canvas);if(t){e.points=t,a.emitEvent("touchmove",e);var n=a.startPoints;if(n)if(t.length>1){var i=a.startDistance,o=M(t[0],t[1]);e.zoom=o/i,e.center=a.center,a.emitStart("pinch",e),a.emitEvent("pinch",e)}else{var r=t[0].x-n[0].x,s=t[0].y-n[0].y,l=a.direction||L(n[0],t[0]);a.direction=l;var c=a.getEventType(t);e.direction=l,e.deltaX=r,e.deltaY=s,a.emitStart(c,e),a.emitEvent(c,e);var d=a.lastMoveTime,u=Date.now();u-d>0&&(a.prevMoveTime=d,a.prevMovePoints=a.lastMovePoints,a.lastMoveTime=u,a.lastMovePoints=t)}}},this._end=function(e){var t=E(e,a.canvas);e.points=t,a.emitEnd(e),a.emitEvent("touchend",e);var n=a.lastMoveTime;if(100>Date.now()-n){var i=n-(a.prevMoveTime||a.startTime);if(i>0){var o=a.prevMovePoints||a.startPoints,r=a.lastMovePoints;if(!o||!r)return;var s=M(o[0],r[0])/i;s>.3&&(e.velocity=s,e.direction=L(o[0],r[0]),a.emitEvent("swipe",e))}}a.reset();var l=e.touches;l&&l.length>0&&a._start(e)},this._cancel=function(e){a.emitEvent("touchcancel",e),a.reset()},this.canvas=i,this.delegateEvent(o),this.processEvent={}}return a(e,[{key:"delegateEvent",value:function(e){e.addEventListener("click",this._click),e.addEventListener("touchstart",this._start),e.addEventListener("touchmove",this._move),e.addEventListener("touchend",this._end),e.addEventListener("touchcancel",this._cancel)}},{key:"emitEvent",value:function(e,t){this.canvas.emit(e,t)}},{key:"getEventType",value:function(e){var t,n=this.eventType,a=this.startTime,i=this.startPoints;if(n)return n;var o=this.canvas.__events.pan;if(o&&o.length){var r=Date.now();if(!i)return;t=r-a>250&&10>M(i[0],e[0])?"press":"pan"}else t="press";return this.eventType=t,t}},{key:"enable",value:function(e){this.processEvent[e]=!0}},{key:"isProcess",value:function(e){return this.processEvent[e]}},{key:"emitStart",value:function(e,t){this.isProcess(e)||(this.enable(e),this.emitEvent("".concat(e,"start"),t))}},{key:"emitEnd",value:function(e){}},{key:"clearPressTimeout",value:function(){this.pressTimeout&&(clearTimeout(this.pressTimeout),this.pressTimeout=null)}},{key:"reset",value:function(){this.clearPressTimeout(),this.startTime=0,this.startPoints=null,this.startDistance=0,this.direction=null,this.eventType=null,this.pinch=!1,this.prevMoveTime=0,this.prevMovePoints=null,this.lastMoveTime=0,this.lastMovePoints=null}}]),e}(),T=function(e){s(o,m);var t=l(o);function o(e){var a;return n(this,o),(a=t.call(this))._attrs={},a._isWindow=void 0,a._attrs=Object.assign({},e),a._isWindow="undefined"!=typeof window,a._initPixelRatio(),a._initCanvas(),["createImage","toDataURL","requestAnimationFrame"].forEach((function(t){a._initAttrs(t,e.canvas||a.get("el"))})),a}return a(o,[{key:"get",value:function(e){return this._attrs[e]}},{key:"set",value:function(e,t){this._attrs[e]=t}},{key:"_initAttrs",value:function(e,t){var n=this;this.get(e)||this.set(e,(function(){return t[e]?t[e].apply(t,arguments):n._isWindow?window[e]?(a=window)[e].apply(a,arguments):"createImage"==e?new Image:null:void 0;var a}))}},{key:"_initCanvas",value:function(){var e,t,n=this.get("el"),a=this.get("context");if(!n&&!a)throw Error("请指定 id、el 或 context!");e=n?p(n)?(t=n)?document.getElementById(t):null:n:w(a,this._attrs),a&&e&&!e.getContext&&(e.getContext=function(){return a});var i,o,r=this.get("width")||("auto"===(o=b(i=e,"width"))&&(o=i.offsetWidth),parseFloat(o))||e.width,s=this.get("height")||function(e){var t=b(e,"height");return"auto"===t&&(t=e.offsetHeight),parseFloat(t)}(e)||e.height;this.set("canvas",this),this.set("el",e),this.set("context",a||e.getContext("2d")),this.changeSize(r,s);var l=new P({canvas:this,el:e,parent:this.get("parent")});this.set("eventController",l)}},{key:"_initPixelRatio",value:function(){this.get("pixelRatio")||this.set("pixelRatio",window&&window.devicePixelRatio||1)}},{key:"changeSize",value:function(e,t){var n,a=this.get("pixelRatio"),o=this.get("el");o.style&&(o.style.width=e+"px",o.style.height=t+"px"),(n=o)&&"object"===i(n)&&(1===n.nodeType&&n.nodeName||n.isCanvasElement)&&(o.width=e*a,o.height=t*a,1!==a&&this.get("context").scale(a,a)),this.set("width",e),this.set("height",t)}},{key:"destroy",value:function(){if(!this.get("destroyed")){var e=this.get("el");e.width=0,e.height=0,this.clear(),this._attrs={},this.set("destroyed",!0)}}},{key:"clear",value:function(){}},{key:"isDestroyed",value:function(){return this.get("destroyed")}}]),o}(),S={penColor:"black",backgroundColor:"",openSmooth:!0,penSize:2,minLineWidth:2,maxLineWidth:6,minSpeed:1.5,maxWidthDiffRate:20,maxHistoryLength:20},D=null,O=function(){function t(e){var a=this;n(this,t),this.canAddHistory=!0,this.points=[],this.historyList=[],this.undoneList=[],this.canvas=void 0,this._isEmpty=!0,this.active=!1,this.getLineWidth=function(e){var t=a.get("options"),n=t.minSpeed,i=t.minLineWidth,o=a.getMaxLineWidth();return Math.min(Math.max(o-(o-i)*e/Math.max(Math.min(n,10),1),i),o)},this.drawTrapezoid=function(e,t,n,i){var o=a.get("context");o.beginPath(),o.moveTo(Number(e.x.toFixed(1)),Number(e.y.toFixed(1))),o.lineTo(Number(t.x.toFixed(1)),Number(t.y.toFixed(1))),o.lineTo(Number(n.x.toFixed(1)),Number(n.y.toFixed(1))),o.lineTo(Number(i.x.toFixed(1)),Number(i.y.toFixed(1))),o.fillStyle=a.get("options").penColor,o.fill(),o.draw&&o.draw(!0)},this.drawNoSmoothLine=function(e,t){t.lastX=e.x+.5*(t.x-e.x),t.lastY=e.y+.5*(t.y-e.y),"number"==typeof e.lastX&&a.drawCurveLine(e.lastX,e.lastY,e.x,e.y,t.lastX,t.lastY,a.getMaxLineWidth())},this.drawCurveLine=function(e,t,n,i,o,r,s){s=Number(s.toFixed(1));var l=a.get("context");l.lineWidth=s,l.beginPath(),l.moveTo(Number(e.toFixed(1)),Number(t.toFixed(1))),l.quadraticCurveTo(Number(n.toFixed(1)),Number(i.toFixed(1)),Number(o.toFixed(1)),Number(r.toFixed(1))),l.stroke(),l.draw&&l.draw(!0)},this.getRadianData=function(e,t,n,a){var i=n-e,o=a-t;if(0===i)return{val:0,pos:-1};if(0===o)return{val:0,pos:1};var r=Math.abs(Math.atan(o/i));return n>e&&t>a||e>n&&a>t?{val:r,pos:1}:{val:r,pos:-1}},this.getRadianPoints=function(e,t,n,a){if(0===e.val)return 1===e.pos?[{x:t,y:n+a},{x:t,y:n-a}]:[{y:n,x:t+a},{y:n,x:t-a}];var i=Math.sin(e.val)*a,o=Math.cos(e.val)*a;return 1===e.pos?[{x:t+i,y:n+o},{x:t-i,y:n-o}]:[{x:t+i,y:n-o},{x:t-i,y:n+o}]},this.drawSmoothLine=function(e,t){var n=t.x-e.x,i=t.y-e.y;if(Math.abs(n)+Math.abs(i)>2?(t.lastX1=e.x+.3*n,t.lastY1=e.y+.3*i,t.lastX2=e.x+.7*n,t.lastY2=e.y+.7*i):(t.lastX1=t.lastX2=e.x+.5*n,t.lastY1=t.lastY2=e.y+.5*i),t.perLineWidth=(e.lineWidth+t.lineWidth)/2,"number"==typeof e.lastX1){if(a.drawCurveLine(e.lastX2,e.lastY2,e.x,e.y,t.lastX1,t.lastY1,t.perLineWidth),e.isFirstPoint)return;if(e.lastX1===e.lastX2&&e.lastY1===e.lastY2)return;var o=a.getRadianData(e.lastX1,e.lastY1,e.lastX2,e.lastY2),r=a.getRadianPoints(o,e.lastX1,e.lastY1,e.perLineWidth/2),s=a.getRadianPoints(o,e.lastX2,e.lastY2,t.perLineWidth/2);a.drawTrapezoid(r[0],s[0],s[1],r[1])}else t.isFirstPoint=!0},this.addHistory=function(){var e=a.get("options").maxHistoryLength;if(e&&a.canAddHistory)if(a.canAddHistory=!1,a.get("createImage")){var t=null;t=a.get("createImage")();var n=a.get("toDataURL")&&a.get("toDataURL")();p(n)?t.src=n:n.then((function(e){t.src=e})),t.onload=function(){var n=D;D=t,a.historyList.push(n),a.historyList=a.historyList.slice(-e)}}else a.historyList.length++},this.drawByImage=function(e){var t=a.get("context"),n=a.get("width"),i=a.get("height");t.clearRect(0,0,n,i);try{e&&t.drawImage(e,0,0,n,i),t.draw&&t.draw(!0)}catch(o){a.historyList.length=0}},this.isEmpty=function(){return a.get("options").maxHistoryLength>0?0===a.historyList.length:a._isEmpty},this.clear=function(){if(!a.get("options").disabled){var e=a.get("context");e.clearRect(0,0,a.get("width"),a.get("height")),e.draw&&e.draw(),a._isEmpty=!0,D=null,a.historyList.length=0}},this.undo=function(){if(!a.get("options").disabled&&(0===a.get("options").maxHistoryLength&&a.clear(),a.get("createImage")&&a.historyList.length)){var e=a.historyList.pop();a.drawByImage(e),a.undoneList.push(D),D=e,a.historyList.length||a.undoneList.length||a.clear()}},this.redo=function(){if(a.undoneList.length&&!a.get("options").disabled){var e=a.undoneList.pop();a.historyList.push(D),a.drawByImage(e),D=e,a._isEmpty=!1}},this.canvas=e,this.canvas.set("pen",S),this.init()}return a(t,[{key:"getOption",value:function(){}},{key:"setOption",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e({},t),a=n.maxLineWidth;if(a&&t.penSize&&a==S.maxLineWidth){var i=Math.max(a,t.penSize);n.maxLineWidth=i}this.canvas.set("pen",Object.assign({},S,n))}},{key:"get",value:function(e){return this.canvas.get("options"==e?"pen":e)}},{key:"init",value:function(){var e=this;this.get("context").lineCap="round",this.canvas.on("touchstart",(function(t){return e.onDrawStart(t)})),this.canvas.on("touchmove",(function(t){return e.onDrawMove(t)})),this.canvas.on("touchend",(function(t){return e.onDrawEnd(t)}))}},{key:"drawBackground",value:function(){var e=this.get("context"),t=this.get("width"),n=this.get("height"),a=this.get("options"),i=a.backgroundColor,o=a.backgroundImage;i&&(e.fillStyle=i,e.fillRect(0,0,t,n),e.draw&&e.draw(!0)),o&&this.drawByImage(o)}},{key:"getImageData",value:function(e){if(e){var t=this.get("width"),n=this.get("height"),a=this.get("el"),i="CANVAS"===a.nodeName,o=i?t:a.width,r=i?n:a.height;if(i){var s=document.createElement("canvas");s.width=t,s.height=n;var l=s.getContext("2d");l.drawImage(a,0,0,t,n);var c=l.getImageData(0,0,t,n).data;return e(c)}var d,u=this.get("context").getImageData(0,0,o,r);return v(d=u)&&g(d.then)&&g(d.catch)?(u.then((function(t){return e(t.data)})),null):e(u.data)}}},{key:"getMaskedImageData",value:function(e){if(e)return this.getImageData((function(t){for(var n=0;t.length>n;n+=4)0===t[n+3]?(t[n]=0,t[n+1]=0,t[n+2]=0):(t[n]=255,t[n+1]=255,t[n+2]=255);return e(t)}))}},{key:"getContentBoundingBox",value:function(e){var t=this.get("pixelRatio"),n=this.get("width"),a=this.get("height"),i=this.get("el"),o="CANVAS"===i.nodeName,r=o?n:i.width,s=o?a:i.height;return t=o?1:t,this.getImageData((function(n){for(var a=Math.floor(r),i=a,o=Math.floor(s),l=0,c=0,d=0;n.length>d;d+=4)if(n[d+3]>0){var u=d/4%a,m=Math.floor(d/4/a);i=Math.min(i,u),o=Math.min(o,m),l=Math.max(l,u),c=Math.max(c,m)}var p={width:(l-i+1)/t,height:(c-o+1)/t,startX:i/t,startY:o/t};return e&&e(p),p}))}},{key:"remove",value:function(){var e=this;this.canvas.off("touchstart",(function(t){return e.onDrawStart(t)})),this.canvas.off("touchmove",(function(t){return e.onDrawMove(t)})),this.canvas.off("touchend",(function(t){return e.onDrawEnd(t)}))}},{key:"disableScroll",value:function(e){e.preventDefault&&this.get("options").disableScroll&&e.preventDefault()}},{key:"onDrawStart",value:function(e){if(!this.get("options").disabled){this.disableScroll(e),this.undoneList.length=0;var t=e.points;if(this.active){this.canAddHistory=!0,this.get("context").strokeStyle=this.get("options").penColor;var n=t[0];this.initPoint(n.x,n.y)}}}},{key:"onDrawMove",value:function(e){if(!this.get("options").disabled&&(this.disableScroll(e),this.active)){var t=e.points[0];this.initPoint(t.x,t.y),this.onDraw()}}},{key:"onDrawEnd",value:function(e){this.active&&!this.get("options").disabled&&(this.addHistory(),this.canAddHistory=!0,this.points=[])}},{key:"onDraw",value:function(){var e=this,t=this.get("context");if(this.points.length>=2){t.lineWidth=this.get("options").penSize||2;var n=this.points.slice(-1)[0],a=this.points.slice(-2,-1)[0];e._isEmpty=!1,e.get("options").openSmooth?e.drawSmoothLine(a,n):e.drawNoSmoothLine(a,n)}}},{key:"getMaxLineWidth",value:function(){var e=this.get("options");return Math.min(e.penSize,e.maxLineWidth)}},{key:"initPoint",value:function(e,t){var n={x:e,y:t,t:Date.now()},a=this.points.slice(-1)[0];if(!a||a.t!==n.t&&(a.x!==e||a.y!==t)){if(this.get("options").openSmooth&&a){var i=this.points.slice(-2,-1)[0];if(n.distance=Math.sqrt(Math.pow(n.x-a.x,2)+Math.pow(n.y-a.y,2)),n.speed=n.distance/(n.t-a.t||.1),n.lineWidth=this.getLineWidth(n.speed),i&&i.lineWidth&&a.lineWidth){var o=(n.lineWidth-a.lineWidth)/a.lineWidth,r=this.get("options").maxWidthDiffRate/100;r=r>1?1:.01>r?.01:r,Math.abs(o)>r&&(n.lineWidth=a.lineWidth*(1+(o>0?r:-r)))}}this.points.push(n),this.points=this.points.slice(-3)}}}]),t}(),W=function(){function e(t){n(this,e),this.canvas=void 0,this._ee=void 0,this.pen=void 0;var a=new T(t);a.set("parent",this),this.canvas=a,this._ee=new m,this.pen=new O(a),this.init()}return a(e,[{key:"init",value:function(){this.pen.active=!0}},{key:"destroy",value:function(){this.canvas.destroy()}},{key:"clear",value:function(){this.pen.clear()}},{key:"undo",value:function(){this.pen.undo()}},{key:"redo",value:function(){this.pen.redo()}},{key:"save",value:function(){}},{key:"getContentBoundingBox",value:function(e){return this.pen.getContentBoundingBox(e)}},{key:"getMaskedImageData",value:function(e){return this.pen.getMaskedImageData(e)}},{key:"isEmpty",value:function(){return this.pen.isEmpty()}},{key:"on",value:function(e,t){this._ee.on(e,t)}},{key:"emit",value:function(e,t){this._ee.emit(e,t)}},{key:"off",value:function(e,t){this._ee.off(e,t)}}]),e}();const uniContext=(e,t)=>{let n=createCanvasContext(e,t);return n.uniDrawImage||(n.uniDrawImage=n.drawImage,n.drawImage=(e,...t)=>{n.uniDrawImage(e.src,...t)}),n.getImageData||(n.getImageData=(n,a,i,o)=>new Promise(((r,s)=>{canvasGetImageData({canvasId:e,x:n,y:a,width:i,height:o,success(e){r(e)},fail(e){s(e)}},t)}))),n};let Image$1=class{constructor(){this.currentSrc=null,this.naturalHeight=0,this.naturalWidth=0,this.width=0,this.height=0,this.tagName="IMG"}set src(e){this.currentSrc=e,getImageInfo({src:e,success:e=>{this.naturalWidth=this.width=e.width,this.naturalHeight=this.height=e.height,this.onload()},fail:()=>{this.onerror()}})}get src(){return this.currentSrc}};const createImage=()=>new Image$1,toDataURL=(e,t,n={})=>new Promise(((a,i)=>{let{canvas:o,width:r,height:s,destWidth:l=0,destHeight:c=0,x:d=0,y:u=0,useCanvas2d:m}=n;const{pixelRatio:p}=getSystemInfoSync(),h={...n,canvasId:e,id:e,canvas:o,success:e=>{a(e.tempFilePath)},fail:e=>{i(e)}};if(o&&o.toDataURL){let e=!0;if(getSystemInfoSync().platform,(d||u)&&e){const e=uni.createOffscreenCanvas({type:"2d"}),t=e.getContext("2d"),n=Math.floor(r*p),i=Math.floor(s*p);e.width=n,e.height=i;const l=o.createImage();l.onload=()=>{t.drawImage(l,Math.floor(d*p),Math.floor(u*p),n,i,0,0,n,i);const o=e.toDataURL();a(o),h.success&&h.success({tempFilePath:o})},l.src=o.toDataURL()}else{const e=o.toDataURL();a(e),h.success&&h.success({tempFilePath:e})}}else o&&o.toTempFilePath?o.toTempFilePath(h):canvasToTempFilePath(h,t)})),props={styles:String,disableScroll:{type:Boolean,default:!0},type:{type:String,default:"2d"},penColor:{type:String,default:"black"},penSize:{type:Number,default:2},backgroundColor:String,backgroundImage:String,openSmooth:Boolean,minLineWidth:{type:Number,default:2},maxLineWidth:{type:Number,default:6},minSpeed:{type:Number,default:1.5},maxWidthDiffRate:{type:Number,default:20},maxHistoryLength:{type:Number,default:20},beforeDelay:{type:Number,default:0},landscape:{type:Boolean},boundingBox:{type:Boolean},disabled:{type:Boolean}},_sfc_main$6={props:props,data:()=>({canvasWidth:null,canvasHeight:null,offscreenWidth:null,offscreenHeight:null,useCanvas2d:!0,show:!0,offscreenStyles:"",showMask:!1,isPC:!1}),computed:{canvasId(){return`lime-signature${this._.uid}`},offscreenId(){return this.canvasId+"offscreen"},offscreenSize(){const{offscreenWidth:e,offscreenHeight:t}=this;return this.landscape?[t,e]:[e,t]},canvasStyle(){const{canvasWidth:e,canvasHeight:t,backgroundColor:n}=this;return{width:e&&e+"px",height:t&&t+"px",background:n}},param(){const{penColor:e,penSize:t,backgroundColor:n,backgroundImage:a,landscape:i,boundingBox:o,openSmooth:r,minLineWidth:s,maxLineWidth:l,minSpeed:c,maxWidthDiffRate:d,maxHistoryLength:u,disableScroll:m,disabled:p}=this;return JSON.parse(JSON.stringify({penColor:e,penSize:t,backgroundColor:n,backgroundImage:a,landscape:i,boundingBox:o,openSmooth:r,minLineWidth:s,maxLineWidth:l,minSpeed:c,maxWidthDiffRate:d,maxHistoryLength:u,disableScroll:m,disabled:p}))}},created(){const{platform:e}=getSystemInfoSync();this.isPC=/windows|mac/.test(e),this.useCanvas2d="2d"==this.type&&canIUseCanvas2d()&&!this.isPC},async mounted(){this.beforeDelay&&await sleep(this.beforeDelay);const e=await this.getContext();this.signature=new W(e),this.canvasEl=this.signature.canvas.get("el"),this.offscreenWidth=this.canvasWidth=this.signature.canvas.get("width"),this.offscreenHeight=this.canvasHeight=this.signature.canvas.get("height"),this.stopWatch=this.$watch("param",(e=>{this.signature.pen.setOption(e)}),{immediate:!0})},beforeUnmount(){this.stopWatch&&this.stopWatch(),this.signature.destroy(),this.signature=null,this.show=!1},methods:{redo(){this.signature&&this.signature.redo()},restore(){this.redo()},undo(){this.signature&&this.signature.undo()},clear(){this.signature&&this.signature.clear()},isEmpty(){return this.signature.isEmpty()},canvasToMaskPath(e={}){const t=this.isEmpty();let n=this.signature.canvas.get("width"),a=this.signature.canvas.get("height"),{pixelRatio:i}=getSystemInfoSync();this.useCanvas2d&&(this.offscreenWidth=n*i,this.offscreenHeight=a*i);const o=createCanvasContext("offscreen",this);this.signature.pen.getMaskedImageData((i=>{canvasPutImageData({canvasId:"offscreen",x:0,y:0,width:Math.floor(this.offscreenWidth),height:Math.floor(this.offscreenHeight),data:i,fail(t){var n;n=t,e.fail&&e.fail(n)},success:i=>{toDataURL("offscreen",this,e).then((i=>{const r=Math.max(this.offscreenWidth,this.offscreenHeight);var s;o.restore(),o.clearRect(0,0,r,r),this.offscreenWidth=n,this.offscreenHeight=a,s={tempFilePath:i,isEmpty:t},e.success&&e.success(s)}))}},this)}))},canvasToTempFilePath(e={}){const t=this.isEmpty(),n=this.useCanvas2d,a=t=>e.success&&e.success(t),i=t=>e.fail&&e.fail(t),{canvas:o}=this.signature.canvas.get("el"),{backgroundColor:r,landscape:s,boundingBox:l}=this;let c=this.signature.canvas.get("width"),d=this.signature.canvas.get("height"),u=0,m=0;const p="devtools"==getSystemInfoSync().platform;const h=i=>{const[l,u]=(()=>{if(n&&!!uni.createOffscreenCanvas&&!p){const e=uni.createOffscreenCanvas({type:"2d"});e.width=1*this.offscreenSize[0],e.height=1*this.offscreenSize[1];return[e.getContext("2d"),e]}return[createCanvasContext("offscreen",this)]})();if(l.save(),l.setTransform(1,0,0,1,0,0),s&&(l.translate(0,1*c),l.rotate(-Math.PI/2)),r&&!isTransparent(r)&&(l.fillStyle=r,l.fillRect(0,0,c,d)),u){const e=o.createImage();e.src=i,e.onload=()=>{l.drawImage(e,0,0,1*c,1*d);const n=u.toDataURL();a({tempFilePath:n,isEmpty:t})}}else l.drawImage(i,0,0,1*c,1*d),l.draw(!1,(()=>{toDataURL("offscreen",this,e).then((e=>{const n=Math.max(c,d);l.restore(),l.clearRect(0,0,n,n),a({tempFilePath:e,isEmpty:t})}))}))},f=async()=>{this.offscreenWidth==c&&this.offscreenHeight==d||(this.offscreenWidth=c,this.offscreenHeight=d,await sleep(100));const e={x:u,y:m,width:c,height:d,canvas:o,useCanvas2d:n};toDataURL(this.canvasId,this,e).then(h).catch(i)};l&&!this.isPC?this.signature.getContentBoundingBox((async e=>{this.offscreenWidth=c=e.width,this.offscreenHeight=d=e.height,u=e.startX,m=e.startY,f()})):f()},getContext(){return getRect(`#${this.canvasId}`,{context:this,type:this.useCanvas2d?"fields":"boundingClientRect"}).then((e=>{if(e){let t,{width:n,height:a,node:i,left:o,top:r,right:s}=e,{pixelRatio:l}=getSystemInfoSync();return i?(t=i.getContext("2d"),i.width=n*l,i.height=a*l):(l=1,t=uniContext(this.canvasId,this),i={getContext:e=>"2d"==e?t:null,createImage:createImage,toDataURL:()=>toDataURL(this.canvasId,this),requestAnimationFrame:requestAnimationFrame$1}),t.clearRect(0,0,n,a),{left:o,top:r,right:s,width:n,height:a,context:t,canvas:i,pixelRatio:l}}}))},getTouch(e){return this.isPC&&this.canvasRect&&(e.touches=e.touches.map((e=>({...e,x:e.clientX-this.canvasRect.left,y:e.clientY-this.canvasRect.top})))),e},touchStart(e){this.canvasEl&&(this.isStart=!0,this.isPC?getRect(`#${this.canvasId}`,{context:this}).then((t=>{this.canvasRect=t,this.canvasEl.dispatchEvent("touchstart",wrapEvent(this.getTouch(e)))})):this.canvasEl.dispatchEvent("touchstart",wrapEvent(e)))},touchMove(e){!this.canvasEl||!this.isStart&&this.canvasEl||this.canvasEl.dispatchEvent("touchmove",wrapEvent(this.getTouch(e)))},touchEnd(e){this.canvasEl&&(this.isStart=!1,this.canvasEl.dispatchEvent("touchend",wrapEvent(e)))}}};function _sfc_render$1(e,t,n,a,i,o){const r=index$v,s=index$g;return i.show?(openBlock(),createBlock(s,{key:0,class:"lime-signature",style:normalizeStyle([o.canvasStyle,e.styles]),ref:"limeSignature"},{default:withCtx((()=>[i.useCanvas2d?(openBlock(),createBlock(r,{key:0,class:"lime-signature__canvas",id:o.canvasId,type:"2d",disableScroll:e.disableScroll,onTouchstart:o.touchStart,onTouchmove:o.touchMove,onTouchend:o.touchEnd},null,8,["id","disableScroll","onTouchstart","onTouchmove","onTouchend"])):(openBlock(),createBlock(r,{key:1,disableScroll:e.disableScroll,class:"lime-signature__canvas","canvas-id":o.canvasId,id:o.canvasId,width:i.canvasWidth,height:i.canvasHeight,onTouchstart:o.touchStart,onTouchmove:o.touchMove,onTouchend:o.touchEnd,onMousedown:o.touchStart,onMousemove:o.touchMove,onMouseup:o.touchEnd},null,8,["disableScroll","canvas-id","id","width","height","onTouchstart","onTouchmove","onTouchend","onMousedown","onMousemove","onMouseup"])),createVNode(r,{class:"offscreen","canvas-id":"offscreen",id:"offscreen",style:normalizeStyle("width:"+o.offscreenSize[0]+"px;height:"+o.offscreenSize[1]+"px"),width:o.offscreenSize[0],height:o.offscreenSize[1]},null,8,["style","width","height"]),i.showMask?(openBlock(),createBlock(s,{key:2,class:"mask",onTouchstart:o.touchStart,onTouchmove:withModifiers(o.touchMove,["stop","prevent"]),onTouchend:o.touchEnd},null,8,["onTouchstart","onTouchmove","onTouchend"])):createCommentVNode("",!0)])),_:1},8,["style"])):createCommentVNode("",!0)}const __easycom_4=_export_sfc(_sfc_main$6,[["render",_sfc_render$1],["__scopeId","data-v-6b1b9a2c"]]),_sfc_main$5={__name:"SignPanel",props:{formProps:{type:Object,default:()=>({})},modelValue:String,readonly:Boolean,position:{type:String,default:"right"}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=getSystemInfoSync().windowHeight,i=computed({get:()=>n.modelValue,set(e){o("update:modelValue",e)}}),o=t,r=ref(),s=ref(),l=ref(!0),c=ref(!1);function d(){r.value.open(n.position),c.value=!0}function u(e){s.value.canvasToTempFilePath({quality:.2,success:e=>{if(e.isEmpty)showToast({icon:"none",title:"您没有签字哦"});else if(console.log("签字图片路径",e.tempFilePath),e.tempFilePath.startsWith("data:image/")){m(function(e,t){if("string"!=typeof e)return;var n=e.split(","),a=n[0].match(/:(.*?);/);a=a&&a.length>1?a[1]:"image/png";var i=a.split("/")[1],o=atob(n[1]),r=o.length,s=new Uint8Array(r);for(;r--;)s[r]=o.charCodeAt(r);return new File([s],`${t}.`+i,{type:a})}(e.tempFilePath,`${(new Date).getTime()}.png`))}else m(null,e.tempFilePath)}})}function m(e,t){uploadFile({url:`${BASE_URL}/wflow/res`,filePath:t,file:e,name:"file",formData:{isImg:"true",isSign:"true"},success:e=>{if(200===e.statusCode){const t=JSON.parse(e.data);i.value=`${BASE_URL}/wflow/res/${t.id}?isSign=true`,r.value.close()}else showToast({icon:"none",title:"签名失败:"+e.data})},fail:e=>{console.log(e),showToast({icon:"none",title:"签名上传异常"})}})}return(t,o)=>{const m=index$q,p=index$i,h=index$g,f=resolveEasycom(resolveDynamicComponent("uni-icons"),__easycom_3$3),g=resolveEasycom(resolveDynamicComponent("l-signature"),__easycom_4),y=resolveEasycom(resolveDynamicComponent("uni-popup"),__easycom_7);return openBlock(),createBlock(h,null,{default:withCtx((()=>[e.readonly?(openBlock(),createBlock(h,{key:0,class:"w-form-input-rv"},{default:withCtx((()=>[""!==(i.value||"")?(openBlock(),createBlock(m,{key:0,src:i.value,mode:"aspectFit",style:{width:"250rpx",height:"150rpx"}},null,8,["src"])):(openBlock(),createBlock(p,{key:1,style:{color:"#8b8b8b"}},{default:withCtx((()=>[createTextVNode("未签字")])),_:1}))])),_:1})):(n.modelValue||"").length<10?(openBlock(),createBlock(h,{key:1,onClick:d,class:"w-sign-init"},{default:withCtx((()=>[createVNode(f,{type:"compose",color:"#B3B3B3",size:"20"}),createVNode(p,null,{default:withCtx((()=>[createTextVNode(toDisplayString(e.formProps.placeholder?e.formProps.placeholder:"点击签名"),1)])),_:1})])),_:1})):(openBlock(),createBlock(h,{key:2},{default:withCtx((()=>[createVNode(m,{src:i.value,mode:"aspectFit",style:{width:"250rpx",height:"150rpx"},onClick:d},null,8,["src"]),createVNode(p,null,{default:withCtx((()=>[createTextVNode("点击签名重签")])),_:1})])),_:1})),e.readonly?createCommentVNode("",!0):(openBlock(),createBlock(y,{key:3,ref_key:"signatureRef",ref:r},{default:withCtx((()=>[createVNode(h,{class:"w-sign",style:normalizeStyle({height:unref(a)+"px"})},{default:withCtx((()=>[createVNode(h,null,{default:withCtx((()=>[createVNode(p,{class:"w-sign-tip"},{default:withCtx((()=>[createTextVNode("请签字")])),_:1}),c.value?(openBlock(),createBlock(g,{key:0,ref_key:"SignPanel",ref:s,class:"w-sign-panel",disableScroll:"",landscape:!0,beforeDelay:300,maxLineWidth:10,penSize:e.formProps.thickness+3,penColor:e.formProps.color,openSmooth:!0},null,8,["penSize","penColor"])):createCommentVNode("",!0)])),_:1}),createVNode(h,{class:normalizeClass({"w-sign-opration":!0,"w-landscape":l.value})},{default:withCtx((()=>[createVNode(h,{onClick:o[0]||(o[0]=e=>s.value.clear()),"hover-class":"w-sop"},{default:withCtx((()=>[createVNode(f,{type:"trash",color:"#E79467",size:30}),createVNode(p,{style:{color:"#E79467"}},{default:withCtx((()=>[createTextVNode("清空")])),_:1})])),_:1}),createVNode(h,{onClick:o[1]||(o[1]=e=>s.value.undo()),"hover-class":"w-sop"},{default:withCtx((()=>[createVNode(f,{type:"undo",color:"#5B6AF7",size:30}),createVNode(p,null,{default:withCtx((()=>[createTextVNode("撤销")])),_:1})])),_:1}),createVNode(h,{onClick:o[2]||(o[2]=e=>s.value.redo()),"hover-class":"w-sop"},{default:withCtx((()=>[createVNode(f,{type:"redo",color:"#5B6AF7",size:30}),createVNode(p,null,{default:withCtx((()=>[createTextVNode("恢复")])),_:1})])),_:1}),createVNode(h,{onClick:u,"hover-class":"w-sop"},{default:withCtx((()=>[createVNode(f,{type:"checkmarkempty",color:"#5B6AF7",size:30}),createVNode(p,null,{default:withCtx((()=>[createTextVNode("保存")])),_:1})])),_:1}),createVNode(h,{onClick:o[3]||(o[3]=e=>r.value.close()),"hover-class":"w-sop"},{default:withCtx((()=>[createVNode(f,{type:"closeempty",color:"#8b8b8b",size:30}),createVNode(p,{style:{color:"#8b8b8b"}},{default:withCtx((()=>[createTextVNode("关闭")])),_:1})])),_:1})])),_:1},8,["class"])])),_:1},8,["style"])])),_:1},512))])),_:1})}}},SignPanel=_export_sfc(_sfc_main$5,[["__scopeId","data-v-f628ed28"]]),_sfc_main$4={__name:"ProcessIndex",props:{formProps:{type:Object,default:()=>({})},modelValue:{type:Array,default:()=>[]},readonly:Boolean},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=computed({get:()=>n.modelValue,set(e){i("update:modelValue",e)}}),i=t;function o(){navigateTo({url:"/components/form/sub/ProcessSelect"})}return $on("selectProcess",(e=>{a.value.findIndex((t=>t.id===e.id))>=0?showToast({icon:"none",title:"不要重复添加哦"}):nextTick((()=>a.value=[...a.value,e]))})),onUnload((()=>$off("selectProcess"))),watch(a,(e=>{i("update:modelValue",e)})),(t,n)=>{const i=index$i,r=resolveEasycom(resolveDynamicComponent("uni-icons"),__easycom_3$3),s=index$g;return openBlock(),createBlock(s,null,{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(a.value,((t,n)=>(openBlock(),createBlock(s,{class:"w-process-item",key:t.id,onClick:e=>function(e){navigateTo({url:`/pages/instance/instancePreview?instanceId=${e.id}`})}(t)},{default:withCtx((()=>[createVNode(Avatar,{size:30,src:t.startUser.avatar,name:t.startUser.name},null,8,["src","name"]),createVNode(i,{class:"over-tip",style:{"font-size":"29rpx"}},{default:withCtx((()=>[createTextVNode(toDisplayString(t.createTime.substring(0,16))+" 提交的 - "+toDisplayString(t.name),1)])),_:2},1024),createVNode(s,{onClick:withModifiers((e=>function(e){a.value.splice(e,1)}(n)),["stop"])},{default:withCtx((()=>[e.readonly?createCommentVNode("",!0):(openBlock(),createBlock(r,{key:0,type:"closeempty",size:"20"}))])),_:2},1032,["onClick"])])),_:2},1032,["onClick"])))),128)),e.readonly?createCommentVNode("",!0):(openBlock(),createBlock(s,{key:0,class:"w-prcindex-add",onClick:o},{default:withCtx((()=>[createTextVNode("+ "+toDisplayString(e.formProps.placeholder||"添加关联流程"),1)])),_:1}))])),_:1})}}},ProcessIndex=_export_sfc(_sfc_main$4,[["__scopeId","data-v-1767fc11"]]),_sfc_main$3={__name:"CalcFormula",props:{formProps:{type:Object,default:()=>({})},formData:{type:Object,default:()=>({})},index:Number,modelValue:Number,readonly:Boolean},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=computed({get:()=>n.modelValue,set(e){r("update:modelValue",e)}}),i=ref(null),o=computed((()=>{let e="";return i.value=null,n.formProps.explain.forEach((t=>{const n=String(t.symbol||t);/[0-9.]$/.test(n)?e+=n:e+=n+" "})),e})),r=t;return watch((()=>n.formData),(()=>{!function(){try{if(!(i.value instanceof Function))if(n.formProps.isPlus){const e=n.formProps.jsCode.replace(/\[\?\]/g,(e=>"[$_index]"));i.value=new Function("formData",`let $_index = ${n.index>0?n.index-1:0}; ${e} return execute(formData)`)}else i.value=new Function("formData",`return ${o.value}`);let e=i.value(n.formData);a.value=n.formProps.precision>0?Number.isNaN(e)?NaN:parseFloat(e.toFixed(this.precision)):parseInt(e)}catch(e2){a.value=NaN}}()}),{deep:!0}),(t,n)=>{const i=index$i,o=index$g;return openBlock(),createBlock(o,null,{default:withCtx((()=>[createVNode(i,null,{default:withCtx((()=>[createTextVNode(toDisplayString(e.formProps.placeholder||"计算结果："),1)])),_:1}),createVNode(i,null,{default:withCtx((()=>[createTextVNode(toDisplayString(a.value),1)])),_:1})])),_:1})}}},_sfc_main$2={__name:"OuterForm",props:{formProps:{type:Object,default:()=>({})},modelValue:{type:Object,default:()=>({})},readonly:Boolean},emits:["update:modelValue"],setup(__props,{emit:__emit}){const props=__props,_value=computed({get:()=>props.modelValue,set(e){emits("update:modelValue",e)}});computed((()=>{try{return eval(`return ${props.formProps.formProps||{}}`)||{}}catch(e2){return{}}})),computed((()=>""===(props.formProps.path||"").trim()?"view":""));const origin=computed((()=>resolveOrigin(props.formProps.path)));computed((()=>props.formProps.isCodeForm?props.formProps.path:`${props.formProps.path}${urlHasParam(props.formProps.path)?"?":"&"}perm=${props.formProps.readonly?"R":"E"}`));const emits=__emit;ref();const timer=ref(null),validCall=ref(null);function onMessage(e){if(e.source!==e.target)switch(e.data.type){case"WFLOW_FORM_VALID":timer.value&&clearTimeout(timer.value),_value=e.data.formData,validCall.value&&(console.log("iframe表单校验结果",e.data.valid||!1),validCall.value(e.data.valid||!1),validCall.value=null);break;case"WFLOW_FORM_DATA_CHANGE":_value=e.data.formData;break;case"WFLOW_GET_FORM_DATA":loadIframeFormData()}}function loadIframeFormData(){const e=document.getElementById("urlForm_"+props.formProps);e&&e.contentWindow.postMessage({type:"WFLOW_SET_FORM_DATA",formData:_value},origin)}function urlHasParam(e){try{const t=new URL(e).searchParams;return t&&!1===t.keys().next().done}catch(e2){return!0}}function resolveOrigin(e){const t=e.match(/^(https?:\/\/)?([^:\/\s]+)(:\d+)?/);if(t){const e=t[1]||"http://",n=t[2],a=t[3]||"";return a&&!/:\d+/.test(a)?`${e}${n}${a}`:`${e}${n}`}return null}return ref(!1),onMounted((()=>{props.formProps.isCodeForm||window.addEventListener("message",onMessage,!1)})),onBeforeUnmount((()=>{props.formProps.isCodeForm||window.removeEventListener("message",onMessage)})),(e,t)=>{const n=index$i;return openBlock(),createBlock(n,{style:{color:"#F6D589"}},{default:withCtx((()=>[createTextVNode("努力开发中。。。")])),_:1})}}},_sfc_main$1={__name:"WebIframe",props:{formProps:{type:Object,default:()=>({})},modelValue:String,readonly:Boolean},setup(e){const t=e,n=ref(!0),a=ref({progress:{color:"#FF3333"},width:"100%",height:t.formProps.height+"px",position:"absolute"});return $on("wv:scorll",(()=>{})),$on("hideFp",(()=>{n.value=!1})),$on("showFp",(()=>{n.value=!0})),onUnload((()=>{$off("wv:scorll"),$off("showFp"),$off("hideFp")})),onMounted((()=>{})),onMounted((()=>{const e=document.getElementsByTagName("iframe");for(let t of e)t.setAttribute("frameborder",0)})),(t,i)=>{const o=index$c,r=index$g;return openBlock(),createBlock(r,{class:"iframe",style:normalizeStyle({height:e.formProps.height+"px",width:"100%"})},{default:withCtx((()=>[n.value?(openBlock(),createBlock(o,{key:0,"webview-styles":a.value,fullscreen:!1,src:e.formProps.url,style:normalizeStyle({height:e.formProps.height+"px",width:"100%"}),class:"w-iframe",scrolling:"auto",frameborder:"0"},null,8,["webview-styles","src","style"])):createCommentVNode("",!0)])),_:1},8,["style"])}}},_sfc_main={name:"WFormItem",components:{TextInput:_sfc_main$V,AmountInput:_sfc_main$U,TextareaInput:_sfc_main$T,SelectInput:_sfc_main$P,FileUpload:FileUpload,ImageUpload:_sfc_main$K,MultipleSelect:_sfc_main$G,NumberInput:_sfc_main$F,TimePicker:_sfc_main$E,TimeRangePicker:TimeRangePicker,DateTime:DateTime,DateTimeRange:DateTimeRange,UserPicker:_sfc_main$l,DeptPicker:_sfc_main$k,GroupPicker:_sfc_main$j,Score:_sfc_main$h,Description:_sfc_main$g,TableList:TableList,SelectPlus:_sfc_main$a,Location:_sfc_main$9,Provinces:_sfc_main$7,SignPanel:SignPanel,ProcessIndex:ProcessIndex,CalcFormula:_sfc_main$3,OuterForm:_sfc_main$2,WebIframe:_sfc_main$1},props:{type:String,index:{type:Number,default:0},formData:{type:Object,default:()=>({})},modelValue:Object|Array|String|Number,formProps:{type:Object,default:()=>({})},readonly:Boolean},computed:{_value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},emits:["update:modelValue"]};function _sfc_render(e,t,n,a,i,o){const r=resolveComponent("TextInput"),s=resolveComponent("AmountInput"),l=resolveComponent("TextareaInput"),c=resolveComponent("SelectInput"),d=resolveComponent("FileUpload"),u=resolveComponent("ImageUpload"),m=resolveComponent("MultipleSelect"),p=resolveComponent("NumberInput"),h=resolveComponent("TimePicker"),f=resolveComponent("TimeRangePicker"),g=resolveComponent("DateTime"),y=resolveComponent("DateTimeRange"),v=resolveComponent("UserPicker"),_=resolveComponent("DeptPicker"),b=resolveComponent("GroupPicker"),w=resolveComponent("Score"),S=resolveComponent("Description"),C=resolveComponent("TableList"),k=resolveComponent("SelectPlus"),x=resolveComponent("Location"),T=resolveComponent("Provinces"),A=resolveComponent("SignPanel"),E=resolveComponent("ProcessIndex"),I=resolveComponent("CalcFormula"),P=resolveComponent("OuterForm"),N=resolveComponent("WebIframe");return"TextInput"===n.type?(openBlock(),createBlock(r,{key:0,modelValue:o._value,"onUpdate:modelValue":t[0]||(t[0]=e=>o._value=e),"form-props":n.formProps,readonly:n.readonly,formData:n.formData},null,8,["modelValue","form-props","readonly","formData"])):"AmountInput"===n.type?(openBlock(),createBlock(s,{key:1,modelValue:o._value,"onUpdate:modelValue":t[1]||(t[1]=e=>o._value=e),"form-props":n.formProps,readonly:n.readonly,formData:n.formData},null,8,["modelValue","form-props","readonly","formData"])):"TextareaInput"===n.type?(openBlock(),createBlock(l,{key:2,modelValue:o._value,"onUpdate:modelValue":t[2]||(t[2]=e=>o._value=e),"form-props":n.formProps,readonly:n.readonly,formData:n.formData},null,8,["modelValue","form-props","readonly","formData"])):"SelectInput"===n.type?(openBlock(),createBlock(c,{key:3,modelValue:o._value,"onUpdate:modelValue":t[3]||(t[3]=e=>o._value=e),"form-props":n.formProps,readonly:n.readonly,formData:n.formData},null,8,["modelValue","form-props","readonly","formData"])):"FileUpload"===n.type?(openBlock(),createBlock(d,{key:4,modelValue:o._value,"onUpdate:modelValue":t[4]||(t[4]=e=>o._value=e),"form-props":n.formProps,readonly:n.readonly,formData:n.formData},null,8,["modelValue","form-props","readonly","formData"])):"ImageUpload"===n.type?(openBlock(),createBlock(u,{key:5,modelValue:o._value,"onUpdate:modelValue":t[5]||(t[5]=e=>o._value=e),"form-props":n.formProps,readonly:n.readonly,formData:n.formData},null,8,["modelValue","form-props","readonly","formData"])):"MultipleSelect"===n.type?(openBlock(),createBlock(m,{key:6,modelValue:o._value,"onUpdate:modelValue":t[6]||(t[6]=e=>o._value=e),"form-props":n.formProps,readonly:n.readonly,formData:n.formData},null,8,["modelValue","form-props","readonly","formData"])):"NumberInput"===n.type?(openBlock(),createBlock(p,{key:7,modelValue:o._value,"onUpdate:modelValue":t[7]||(t[7]=e=>o._value=e),"form-props":n.formProps,readonly:n.readonly,formData:n.formData},null,8,["modelValue","form-props","readonly","formData"])):"TimePicker"===n.type?(openBlock(),createBlock(h,{key:8,modelValue:o._value,"onUpdate:modelValue":t[8]||(t[8]=e=>o._value=e),"form-props":n.formProps,readonly:n.readonly,formData:n.formData,index:n.index},null,8,["modelValue","form-props","readonly","formData","index"])):"TimeRangePicker"===n.type?(openBlock(),createBlock(f,{key:9,modelValue:o._value,"onUpdate:modelValue":t[9]||(t[9]=e=>o._value=e),"form-props":n.formProps,readonly:n.readonly,formData:n.formData,index:n.index},null,8,["modelValue","form-props","readonly","formData","index"])):"DateTime"===n.type?(openBlock(),createBlock(g,{key:10,modelValue:o._value,"onUpdate:modelValue":t[10]||(t[10]=e=>o._value=e),"form-props":n.formProps,readonly:n.readonly,formData:n.formData},null,8,["modelValue","form-props","readonly","formData"])):"DateTimeRange"===n.type?(openBlock(),createBlock(y,{key:11,modelValue:o._value,"onUpdate:modelValue":t[11]||(t[11]=e=>o._value=e),"form-props":n.formProps,readonly:n.readonly,formData:n.formData},null,8,["modelValue","form-props","readonly","formData"])):"UserPicker"===n.type?(openBlock(),createBlock(v,{key:12,modelValue:o._value,"onUpdate:modelValue":t[12]||(t[12]=e=>o._value=e),"form-props":n.formProps,readonly:n.readonly,formData:n.formData},null,8,["modelValue","form-props","readonly","formData"])):"DeptPicker"===n.type?(openBlock(),createBlock(_,{key:13,modelValue:o._value,"onUpdate:modelValue":t[13]||(t[13]=e=>o._value=e),"form-props":n.formProps,readonly:n.readonly,formData:n.formData},null,8,["modelValue","form-props","readonly","formData"])):"GroupPicker"===n.type?(openBlock(),createBlock(b,{key:14,modelValue:o._value,"onUpdate:modelValue":t[14]||(t[14]=e=>o._value=e),"form-props":n.formProps,readonly:n.readonly,formData:n.formData},null,8,["modelValue","form-props","readonly","formData"])):"Score"===n.type?(openBlock(),createBlock(w,{key:15,modelValue:o._value,"onUpdate:modelValue":t[15]||(t[15]=e=>o._value=e),"form-props":n.formProps,readonly:n.readonly,formData:n.formData},null,8,["modelValue","form-props","readonly","formData"])):"Description"===n.type?(openBlock(),createBlock(S,{key:16,modelValue:o._value,"onUpdate:modelValue":t[16]||(t[16]=e=>o._value=e),"form-props":n.formProps,readonly:n.readonly,formData:n.formData},null,8,["modelValue","form-props","readonly","formData"])):"TableList"===n.type?(openBlock(),createBlock(C,{key:17,modelValue:o._value,"onUpdate:modelValue":t[17]||(t[17]=e=>o._value=e),"form-props":n.formProps,readonly:n.readonly,formData:n.formData},null,8,["modelValue","form-props","readonly","formData"])):"SelectPlus"===n.type?(openBlock(),createBlock(k,{key:18,modelValue:o._value,"onUpdate:modelValue":t[18]||(t[18]=e=>o._value=e),"form-props":n.formProps,readonly:n.readonly,formData:n.formData},null,8,["modelValue","form-props","readonly","formData"])):"Location"===n.type?(openBlock(),createBlock(x,{key:19,modelValue:o._value,"onUpdate:modelValue":t[19]||(t[19]=e=>o._value=e),"form-props":n.formProps,readonly:n.readonly,formData:n.formData},null,8,["modelValue","form-props","readonly","formData"])):"Provinces"===n.type?(openBlock(),createBlock(T,{key:20,modelValue:o._value,"onUpdate:modelValue":t[20]||(t[20]=e=>o._value=e),"form-props":n.formProps,readonly:n.readonly,formData:n.formData},null,8,["modelValue","form-props","readonly","formData"])):"SignPanel"===n.type?(openBlock(),createBlock(A,{key:21,modelValue:o._value,"onUpdate:modelValue":t[21]||(t[21]=e=>o._value=e),"form-props":n.formProps,readonly:n.readonly,formData:n.formData},null,8,["modelValue","form-props","readonly","formData"])):"ProcessIndex"===n.type?(openBlock(),createBlock(E,{key:22,modelValue:o._value,"onUpdate:modelValue":t[22]||(t[22]=e=>o._value=e),"form-props":n.formProps,readonly:n.readonly,formData:n.formData},null,8,["modelValue","form-props","readonly","formData"])):"CalcFormula"===n.type?(openBlock(),createBlock(I,{key:23,modelValue:o._value,"onUpdate:modelValue":t[23]||(t[23]=e=>o._value=e),"form-props":n.formProps,readonly:n.readonly,formData:n.formData,index:n.index},null,8,["modelValue","form-props","readonly","formData","index"])):"OuterForm"===n.type?(openBlock(),createBlock(P,{key:24,modelValue:o._value,"onUpdate:modelValue":t[24]||(t[24]=e=>o._value=e),"form-props":n.formProps,readonly:n.readonly,formData:n.formData},null,8,["modelValue","form-props","readonly","formData"])):"WebIframe"===n.type?(openBlock(),createBlock(N,{key:25,modelValue:o._value,"onUpdate:modelValue":t[25]||(t[25]=e=>o._value=e),"form-props":n.formProps,readonly:n.readonly,formData:n.formData},null,8,["modelValue","form-props","readonly","formData"])):createCommentVNode("",!0)}const WFormItem=_export_sfc(_sfc_main,[["render",_sfc_render]]);function createApp(){const e=createApp$1(_sfc_main$Y);return e.component("WFormItem",WFormItem),{app:e}}createApp().app.use(index$e).mount("#app");export{$emit as $,__easycom_4$3 as A,normalizeStyle as B,createElementBlock as C,renderList as D,getSystemInfoSync as E,Fragment as F,nextTick as G,toDisplayString as H,Input as I,unref as J,getFormValText as K,Avatar as L,withModifiers as M,navigateBack as N,OrgPicker as O,navigateTo as P,hideTabBar as Q,$on as R,ScrollView as S,onUnload as T,$off as U,getStorageSync as V,Swiper as W,SwiperItem as X,defineComponent as Y,normalizeClass as Z,_export_sfc as _,openBlock as a,__easycom_0$2 as a0,__easycom_5 as a1,__easycom_6 as a2,__easycom_3 as a3,__easycom_4$1 as a4,__easycom_7 as a5,getUserDetail as a6,makePhoneCall as a7,onBackPress as a8,getOrgTree as a9,getCurrentInstance as aA,debounce as aB,$deepCopy as aC,getUserDepts as aD,WFormItem as aE,showItem as aF,resolveComponent as aG,__easycom_1 as aH,__easycom_2 as aI,getUserAgent as aJ,__easycom_0$4 as aK,showModal as aL,cancelUserAgent as aM,setUserAgent as aN,watch as aa,__easycom_2$1 as ab,__easycom_3$1 as ac,_imports_1 as ad,_imports_0 as ae,getUserByName as af,onShow as ag,clearStorage as ah,withDirectives as ai,vShow as aj,getRes as ak,previewImage as al,isImageLink as am,isVideoLink as an,index$d as ao,ClickInput as ap,index$7 as aq,reactive as ar,__easycom_8 as as,_sfc_main$l as at,FileUpload as au,_sfc_main$K as av,SignPanel as aw,$nEmpty as ax,request as ay,onBeforeMount as az,createCommentVNode as b,createBlock as c,createVNode as d,createTextVNode as e,index$i as f,index$t as g,index$y as h,index$g as i,index$x as j,index$q as k,login as l,setStorageSync as m,reLaunch as n,onMounted as o,computed as p,onLoad as q,ref as r,showToast as s,onPullDownRefresh as t,resolveEasycom as u,resolveDynamicComponent as v,withCtx as w,stopPullDownRefresh as x,__easycom_1$1 as y,__easycom_3$3 as z};
