diff --git a/www/static/js/index.js b/www/static/js/index.js index 2ab199fa85..bd9bf048dd 100644 --- a/www/static/js/index.js +++ b/www/static/js/index.js @@ -6087,7 +6087,7 @@ PERFORMANCE OF THIS SOFTWARE. * vue-router v4.0.12 * (c) 2021 Eduardo San Martin Morote * @license MIT - */const hasSymbol=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",PolySymbol=t=>hasSymbol?Symbol(t):"_vr_"+t,matchedRouteKey=PolySymbol("rvlm"),viewDepthKey=PolySymbol("rvd"),routerKey=PolySymbol("r"),routeLocationKey=PolySymbol("rl"),routerViewLocationKey=PolySymbol("rvl"),isBrowser=typeof window!="undefined";function isESModule(t){return t.__esModule||hasSymbol&&t[Symbol.toStringTag]==="Module"}const assign$1=Object.assign;function applyToParams(t,r){const n={};for(const o in r){const s=r[o];n[o]=Array.isArray(s)?s.map(t):t(s)}return n}const noop$1=()=>{},TRAILING_SLASH_RE=/\/$/,removeTrailingSlash=t=>t.replace(TRAILING_SLASH_RE,"");function parseURL(t,r,n="/"){let o,s={},l="",d="";const g=r.indexOf("?"),y=r.indexOf("#",g>-1?g:0);return g>-1&&(o=r.slice(0,g),l=r.slice(g+1,y>-1?y:r.length),s=t(l)),y>-1&&(o=o||r.slice(0,y),d=r.slice(y,r.length)),o=resolveRelativePath(o!=null?o:r,n),{fullPath:o+(l&&"?")+l+d,path:o,query:s,hash:d}}function stringifyURL(t,r){const n=r.query?t(r.query):"";return r.path+(n&&"?")+n+(r.hash||"")}function stripBase(t,r){return!r||!t.toLowerCase().startsWith(r.toLowerCase())?t:t.slice(r.length)||"/"}function isSameRouteLocation(t,r,n){const o=r.matched.length-1,s=n.matched.length-1;return o>-1&&o===s&&isSameRouteRecord(r.matched[o],n.matched[s])&&isSameRouteLocationParams(r.params,n.params)&&t(r.query)===t(n.query)&&r.hash===n.hash}function isSameRouteRecord(t,r){return(t.aliasOf||t)===(r.aliasOf||r)}function isSameRouteLocationParams(t,r){if(Object.keys(t).length!==Object.keys(r).length)return!1;for(const n in t)if(!isSameRouteLocationParamsValue(t[n],r[n]))return!1;return!0}function isSameRouteLocationParamsValue(t,r){return Array.isArray(t)?isEquivalentArray(t,r):Array.isArray(r)?isEquivalentArray(r,t):t===r}function isEquivalentArray(t,r){return Array.isArray(r)?t.length===r.length&&t.every((n,o)=>n===r[o]):t.length===1&&t[0]===r}function resolveRelativePath(t,r){if(t.startsWith("/"))return t;if(!t)return r;const n=r.split("/"),o=t.split("/");let s=n.length-1,l,d;for(l=0;l({left:window.pageXOffset,top:window.pageYOffset});function scrollToPosition(t){let r;if("el"in t){const n=t.el,o=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;r=getElementPosition(s,t)}else r=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(r):window.scrollTo(r.left!=null?r.left:window.pageXOffset,r.top!=null?r.top:window.pageYOffset)}function getScrollKey(t,r){return(history.state?history.state.position-r:-1)+t}const scrollPositions=new Map;function saveScrollPosition(t,r){scrollPositions.set(t,r)}function getSavedScrollPosition(t){const r=scrollPositions.get(t);return scrollPositions.delete(t),r}let createBaseLocation=()=>location.protocol+"//"+location.host;function createCurrentLocation(t,r){const{pathname:n,search:o,hash:s}=r,l=t.indexOf("#");if(l>-1){let g=s.includes(t.slice(l))?t.slice(l).length:1,y=s.slice(g);return y[0]!=="/"&&(y="/"+y),stripBase(y,"")}return stripBase(n,t)+o+s}function useHistoryListeners(t,r,n,o){let s=[],l=[],d=null;const g=({state:S})=>{const w=createCurrentLocation(t,location),_=n.value,$=r.value;let B=0;if(S){if(n.value=w,r.value=S,d&&d===_){d=null;return}B=$?S.position-$.position:0}else o(w);s.forEach(I=>{I(n.value,_,{delta:B,type:NavigationType.pop,direction:B?B>0?NavigationDirection.forward:NavigationDirection.back:NavigationDirection.unknown})})};function y(){d=n.value}function b(S){s.push(S);const w=()=>{const _=s.indexOf(S);_>-1&&s.splice(_,1)};return l.push(w),w}function C(){const{history:S}=window;!S.state||S.replaceState(assign$1({},S.state,{scroll:computeScrollPosition()}),"")}function x(){for(const S of l)S();l=[],window.removeEventListener("popstate",g),window.removeEventListener("beforeunload",C)}return window.addEventListener("popstate",g),window.addEventListener("beforeunload",C),{pauseListeners:y,listen:b,destroy:x}}function buildState(t,r,n,o=!1,s=!1){return{back:t,current:r,forward:n,replaced:o,position:window.history.length,scroll:s?computeScrollPosition():null}}function useHistoryStateNavigation(t){const{history:r,location:n}=window,o={value:createCurrentLocation(t,n)},s={value:r.state};s.value||l(o.value,{back:null,current:o.value,forward:null,position:r.length-1,replaced:!0,scroll:null},!0);function l(y,b,C){const x=t.indexOf("#"),S=x>-1?(n.host&&document.querySelector("base")?t:t.slice(x))+y:createBaseLocation()+t+y;try{r[C?"replaceState":"pushState"](b,"",S),s.value=b}catch(w){console.error(w),n[C?"replace":"assign"](S)}}function d(y,b){const C=assign$1({},r.state,buildState(s.value.back,y,s.value.forward,!0),b,{position:s.value.position});l(y,C,!0),o.value=y}function g(y,b){const C=assign$1({},s.value,r.state,{forward:y,scroll:computeScrollPosition()});l(C.current,C,!0);const x=assign$1({},buildState(o.value,y,null),{position:C.position+1},b);l(y,x,!1),o.value=y}return{location:o,state:s,push:g,replace:d}}function createWebHistory(t){t=normalizeBase(t);const r=useHistoryStateNavigation(t),n=useHistoryListeners(t,r.state,r.location,r.replace);function o(l,d=!0){d||n.pauseListeners(),history.go(l)}const s=assign$1({location:"",base:t,go:o,createHref:createHref.bind(null,t)},r,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>r.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>r.state.value}),s}function createWebHashHistory(t){return t=location.host?t||location.pathname+location.search:"",t.includes("#")||(t+="#"),createWebHistory(t)}function isRouteLocation(t){return typeof t=="string"||t&&typeof t=="object"}function isRouteName(t){return typeof t=="string"||typeof t=="symbol"}const START_LOCATION_NORMALIZED={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},NavigationFailureSymbol=PolySymbol("nf");var NavigationFailureType;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(NavigationFailureType||(NavigationFailureType={}));function createRouterError(t,r){return assign$1(new Error,{type:t,[NavigationFailureSymbol]:!0},r)}function isNavigationFailure(t,r){return t instanceof Error&&NavigationFailureSymbol in t&&(r==null||!!(t.type&r))}const BASE_PARAM_PATTERN="[^/]+?",BASE_PATH_PARSER_OPTIONS={sensitive:!1,strict:!1,start:!0,end:!0},REGEX_CHARS_RE=/[.+*?^${}()[\]/\\]/g;function tokensToParser(t,r){const n=assign$1({},BASE_PATH_PARSER_OPTIONS,r),o=[];let s=n.start?"^":"";const l=[];for(const b of t){const C=b.length?[]:[90];n.strict&&!b.length&&(s+="/");for(let x=0;xr.length?r.length===1&&r[0]===40+40?1:-1:0}function comparePathParserScore(t,r){let n=0;const o=t.score,s=r.score;for(;n1&&(y==="*"||y==="+")&&r(`A repeatable param (${b}) must be alone in its segment. eg: '/:ids+.`),l.push({type:1,value:b,regexp:C,repeatable:y==="*"||y==="+",optional:y==="*"||y==="?"})):r("Invalid state to consume buffer"),b="")}function S(){b+=y}for(;g{d(R)}:noop$1}function d(C){if(isRouteName(C)){const x=o.get(C);x&&(o.delete(C),n.splice(n.indexOf(x),1),x.children.forEach(d),x.alias.forEach(d))}else{const x=n.indexOf(C);x>-1&&(n.splice(x,1),C.record.name&&o.delete(C.record.name),C.children.forEach(d),C.alias.forEach(d))}}function g(){return n}function y(C){let x=0;for(;x=0;)x++;n.splice(x,0,C),C.record.name&&!isAliasRecord(C)&&o.set(C.record.name,C)}function b(C,x){let S,w={},_,$;if("name"in C&&C.name){if(S=o.get(C.name),!S)throw createRouterError(1,{location:C});$=S.record.name,w=assign$1(paramsFromLocation(x.params,S.keys.filter(R=>!R.optional).map(R=>R.name)),C.params),_=S.stringify(w)}else if("path"in C)_=C.path,S=n.find(R=>R.re.test(_)),S&&(w=S.parse(_),$=S.record.name);else{if(S=x.name?o.get(x.name):n.find(R=>R.re.test(x.path)),!S)throw createRouterError(1,{location:C,currentLocation:x});$=S.record.name,w=assign$1({},x.params,C.params),_=S.stringify(w)}const B=[];let I=S;for(;I;)B.unshift(I.record),I=I.parent;return{name:$,path:_,params:w,matched:B,meta:mergeMetaFields(B)}}return t.forEach(C=>l(C)),{addRoute:l,resolve:b,removeRoute:d,getRoutes:g,getRecordMatcher:s}}function paramsFromLocation(t,r){const n={};for(const o of r)o in t&&(n[o]=t[o]);return n}function normalizeRouteRecord(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:normalizeRecordProps(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||{}:{default:t.component}}}function normalizeRecordProps(t){const r={},n=t.props||!1;if("component"in t)r.default=n;else for(const o in t.components)r[o]=typeof n=="boolean"?n:n[o];return r}function isAliasRecord(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function mergeMetaFields(t){return t.reduce((r,n)=>assign$1(r,n.meta),{})}function mergeOptions(t,r){const n={};for(const o in t)n[o]=o in r?r[o]:t[o];return n}const 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(t){return encodeURI(""+t).replace(ENC_PIPE_RE,"|").replace(ENC_BRACKET_OPEN_RE,"[").replace(ENC_BRACKET_CLOSE_RE,"]")}function encodeHash(t){return commonEncode(t).replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryValue(t){return commonEncode(t).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(t){return encodeQueryValue(t).replace(EQUAL_RE,"%3D")}function encodePath(t){return commonEncode(t).replace(HASH_RE,"%23").replace(IM_RE,"%3F")}function encodeParam(t){return t==null?"":encodePath(t).replace(SLASH_RE,"%2F")}function decode$1(t){try{return decodeURIComponent(""+t)}catch(r){}return""+t}function parseQuery(t){const r={};if(t===""||t==="?")return r;const o=(t[0]==="?"?t.slice(1):t).split("&");for(let s=0;sl&&encodeQueryValue(l)):[o&&encodeQueryValue(o)]).forEach(l=>{l!==void 0&&(r+=(r.length?"&":"")+n,l!=null&&(r+="="+l))})}return r}function normalizeQuery(t){const r={};for(const n in t){const o=t[n];o!==void 0&&(r[n]=Array.isArray(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return r}function useCallbacks(){let t=[];function r(o){return t.push(o),()=>{const s=t.indexOf(o);s>-1&&t.splice(s,1)}}function n(){t=[]}return{add:r,list:()=>t,reset:n}}function guardToPromiseFn(t,r,n,o,s){const l=o&&(o.enterCallbacks[s]=o.enterCallbacks[s]||[]);return()=>new Promise((d,g)=>{const y=x=>{x===!1?g(createRouterError(4,{from:n,to:r})):x instanceof Error?g(x):isRouteLocation(x)?g(createRouterError(2,{from:r,to:x})):(l&&o.enterCallbacks[s]===l&&typeof x=="function"&&l.push(x),d())},b=t.call(o&&o.instances[s],r,n,y);let C=Promise.resolve(b);t.length<3&&(C=C.then(y)),C.catch(x=>g(x))})}function extractComponentsGuards(t,r,n,o){const s=[];for(const l of t)for(const d in l.components){let g=l.components[d];if(!(r!=="beforeRouteEnter"&&!l.instances[d]))if(isRouteComponent(g)){const b=(g.__vccOpts||g)[r];b&&s.push(guardToPromiseFn(b,n,o,l,d))}else{let y=g();s.push(()=>y.then(b=>{if(!b)return Promise.reject(new Error(`Couldn't resolve component "${d}" at "${l.path}"`));const C=isESModule(b)?b.default:b;l.components[d]=C;const S=(C.__vccOpts||C)[r];return S&&guardToPromiseFn(S,n,o,l,d)()}))}}return s}function isRouteComponent(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function useLink(t){const r=inject(routerKey),n=inject(routeLocationKey),o=computed(()=>r.resolve(unref(t.to))),s=computed(()=>{const{matched:y}=o.value,{length:b}=y,C=y[b-1],x=n.matched;if(!C||!x.length)return-1;const S=x.findIndex(isSameRouteRecord.bind(null,C));if(S>-1)return S;const w=getOriginalPath(y[b-2]);return b>1&&getOriginalPath(C)===w&&x[x.length-1].path!==w?x.findIndex(isSameRouteRecord.bind(null,y[b-2])):S}),l=computed(()=>s.value>-1&&includesParams(n.params,o.value.params)),d=computed(()=>s.value>-1&&s.value===n.matched.length-1&&isSameRouteLocationParams(n.params,o.value.params));function g(y={}){return guardEvent(y)?r[unref(t.replace)?"replace":"push"](unref(t.to)).catch(noop$1):Promise.resolve()}return{route:o,href:computed(()=>o.value.href),isActive:l,isExactActive:d,navigate:g}}const RouterLinkImpl=defineComponent({name:"RouterLink",props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink,setup(t,{slots:r}){const n=reactive(useLink(t)),{options:o}=inject(routerKey),s=computed(()=>({[getLinkClass(t.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[getLinkClass(t.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const l=r.default&&r.default(n);return t.custom?l:h("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},l)}}}),RouterLink=RouterLinkImpl;function guardEvent(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const r=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(r))return}return t.preventDefault&&t.preventDefault(),!0}}function includesParams(t,r){for(const n in r){const o=r[n],s=t[n];if(typeof o=="string"){if(o!==s)return!1}else if(!Array.isArray(s)||s.length!==o.length||o.some((l,d)=>l!==s[d]))return!1}return!0}function getOriginalPath(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const getLinkClass=(t,r,n)=>t!=null?t:r!=null?r:n,RouterViewImpl=defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},setup(t,{attrs:r,slots:n}){const o=inject(routerViewLocationKey),s=computed(()=>t.route||o.value),l=inject(viewDepthKey,0),d=computed(()=>s.value.matched[l]);provide(viewDepthKey,l+1),provide(matchedRouteKey,d),provide(routerViewLocationKey,s);const g=ref();return watch(()=>[g.value,d.value,t.name],([y,b,C],[x,S,w])=>{b&&(b.instances[C]=y,S&&S!==b&&y&&y===x&&(b.leaveGuards.size||(b.leaveGuards=S.leaveGuards),b.updateGuards.size||(b.updateGuards=S.updateGuards))),y&&b&&(!S||!isSameRouteRecord(b,S)||!x)&&(b.enterCallbacks[C]||[]).forEach(_=>_(y))},{flush:"post"}),()=>{const y=s.value,b=d.value,C=b&&b.components[t.name],x=t.name;if(!C)return normalizeSlot(n.default,{Component:C,route:y});const S=b.props[t.name],w=S?S===!0?y.params:typeof S=="function"?S(y):S:null,$=h(C,assign$1({},w,r,{onVnodeUnmounted:B=>{B.component.isUnmounted&&(b.instances[x]=null)},ref:g}));return normalizeSlot(n.default,{Component:$,route:y})||$}}});function normalizeSlot(t,r){if(!t)return null;const n=t(r);return n.length===1?n[0]:n}const RouterView=RouterViewImpl;function createRouter(t){const r=createRouterMatcher(t.routes,t),n=t.parseQuery||parseQuery,o=t.stringifyQuery||stringifyQuery,s=t.history,l=useCallbacks(),d=useCallbacks(),g=useCallbacks(),y=shallowRef(START_LOCATION_NORMALIZED);let b=START_LOCATION_NORMALIZED;isBrowser&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const C=applyToParams.bind(null,Ae=>""+Ae),x=applyToParams.bind(null,encodeParam),S=applyToParams.bind(null,decode$1);function w(Ae,xe){let ve,Se;return isRouteName(Ae)?(ve=r.getRecordMatcher(Ae),Se=xe):Se=Ae,r.addRoute(Se,ve)}function _(Ae){const xe=r.getRecordMatcher(Ae);xe&&r.removeRoute(xe)}function $(){return r.getRoutes().map(Ae=>Ae.record)}function B(Ae){return!!r.getRecordMatcher(Ae)}function I(Ae,xe){if(xe=assign$1({},xe||y.value),typeof Ae=="string"){const Ee=parseURL(n,Ae,xe.path),ee=r.resolve({path:Ee.path},xe),q=s.createHref(Ee.fullPath);return assign$1(Ee,ee,{params:S(ee.params),hash:decode$1(Ee.hash),redirectedFrom:void 0,href:q})}let ve;if("path"in Ae)ve=assign$1({},Ae,{path:parseURL(n,Ae.path,xe.path).path});else{const Ee=assign$1({},Ae.params);for(const ee in Ee)Ee[ee]==null&&delete Ee[ee];ve=assign$1({},Ae,{params:x(Ae.params)}),xe.params=x(xe.params)}const Se=r.resolve(ve,xe),Pe=Ae.hash||"";Se.params=C(S(Se.params));const we=stringifyURL(o,assign$1({},Ae,{hash:encodeHash(Pe),path:Se.path})),Ie=s.createHref(we);return assign$1({fullPath:we,hash:Pe,query:o===stringifyQuery?normalizeQuery(Ae.query):Ae.query||{}},Se,{redirectedFrom:void 0,href:Ie})}function R(Ae){return typeof Ae=="string"?parseURL(n,Ae,y.value.path):assign$1({},Ae)}function M(Ae,xe){if(b!==Ae)return createRouterError(8,{from:xe,to:Ae})}function P(Ae){return N(Ae)}function D(Ae){return P(assign$1(R(Ae),{replace:!0}))}function O(Ae){const xe=Ae.matched[Ae.matched.length-1];if(xe&&xe.redirect){const{redirect:ve}=xe;let Se=typeof ve=="function"?ve(Ae):ve;return typeof Se=="string"&&(Se=Se.includes("?")||Se.includes("#")?Se=R(Se):{path:Se},Se.params={}),assign$1({query:Ae.query,hash:Ae.hash,params:Ae.params},Se)}}function N(Ae,xe){const ve=b=I(Ae),Se=y.value,Pe=Ae.state,we=Ae.force,Ie=Ae.replace===!0,Ee=O(ve);if(Ee)return N(assign$1(R(Ee),{state:Pe,force:we,replace:Ie}),xe||ve);const ee=ve;ee.redirectedFrom=xe;let q;return!we&&isSameRouteLocation(o,Se,ve)&&(q=createRouterError(16,{to:ee,from:Se}),oe(Se,Se,!0,!1)),(q?Promise.resolve(q):Q(ee,Se)).catch(le=>isNavigationFailure(le)?le:re(le,ee,Se)).then(le=>{if(le){if(isNavigationFailure(le,2))return N(assign$1(R(le.to),{state:Pe,force:we,replace:Ie}),xe||ee)}else le=K(ee,Se,!0,Ie,Pe);return G(ee,Se,le),le})}function H(Ae,xe){const ve=M(Ae,xe);return ve?Promise.reject(ve):Promise.resolve()}function Q(Ae,xe){let ve;const[Se,Pe,we]=extractChangingRecords(Ae,xe);ve=extractComponentsGuards(Se.reverse(),"beforeRouteLeave",Ae,xe);for(const Ee of Se)Ee.leaveGuards.forEach(ee=>{ve.push(guardToPromiseFn(ee,Ae,xe))});const Ie=H.bind(null,Ae,xe);return ve.push(Ie),runGuardQueue(ve).then(()=>{ve=[];for(const Ee of l.list())ve.push(guardToPromiseFn(Ee,Ae,xe));return ve.push(Ie),runGuardQueue(ve)}).then(()=>{ve=extractComponentsGuards(Pe,"beforeRouteUpdate",Ae,xe);for(const Ee of Pe)Ee.updateGuards.forEach(ee=>{ve.push(guardToPromiseFn(ee,Ae,xe))});return ve.push(Ie),runGuardQueue(ve)}).then(()=>{ve=[];for(const Ee of Ae.matched)if(Ee.beforeEnter&&!xe.matched.includes(Ee))if(Array.isArray(Ee.beforeEnter))for(const ee of Ee.beforeEnter)ve.push(guardToPromiseFn(ee,Ae,xe));else ve.push(guardToPromiseFn(Ee.beforeEnter,Ae,xe));return ve.push(Ie),runGuardQueue(ve)}).then(()=>(Ae.matched.forEach(Ee=>Ee.enterCallbacks={}),ve=extractComponentsGuards(we,"beforeRouteEnter",Ae,xe),ve.push(Ie),runGuardQueue(ve))).then(()=>{ve=[];for(const Ee of d.list())ve.push(guardToPromiseFn(Ee,Ae,xe));return ve.push(Ie),runGuardQueue(ve)}).catch(Ee=>isNavigationFailure(Ee,8)?Ee:Promise.reject(Ee))}function G(Ae,xe,ve){for(const Se of g.list())Se(Ae,xe,ve)}function K(Ae,xe,ve,Se,Pe){const we=M(Ae,xe);if(we)return we;const Ie=xe===START_LOCATION_NORMALIZED,Ee=isBrowser?history.state:{};ve&&(Se||Ie?s.replace(Ae.fullPath,assign$1({scroll:Ie&&Ee&&Ee.scroll},Pe)):s.push(Ae.fullPath,Pe)),y.value=Ae,oe(Ae,xe,ve,Ie),ae()}let W;function j(){W=s.listen((Ae,xe,ve)=>{const Se=I(Ae),Pe=O(Se);if(Pe){N(assign$1(Pe,{replace:!0}),Se).catch(noop$1);return}b=Se;const we=y.value;isBrowser&&saveScrollPosition(getScrollKey(we.fullPath,ve.delta),computeScrollPosition()),Q(Se,we).catch(Ie=>isNavigationFailure(Ie,12)?Ie:isNavigationFailure(Ie,2)?(N(Ie.to,Se).then(Ee=>{isNavigationFailure(Ee,20)&&!ve.delta&&ve.type===NavigationType.pop&&s.go(-1,!1)}).catch(noop$1),Promise.reject()):(ve.delta&&s.go(-ve.delta,!1),re(Ie,Se,we))).then(Ie=>{Ie=Ie||K(Se,we,!1),Ie&&(ve.delta?s.go(-ve.delta,!1):ve.type===NavigationType.pop&&isNavigationFailure(Ie,20)&&s.go(-1,!1)),G(Se,we,Ie)}).catch(noop$1)})}let Y=useCallbacks(),J=useCallbacks(),X;function re(Ae,xe,ve){ae(Ae);const Se=J.list();return Se.length?Se.forEach(Pe=>Pe(Ae,xe,ve)):console.error(Ae),Promise.reject(Ae)}function te(){return X&&y.value!==START_LOCATION_NORMALIZED?Promise.resolve():new Promise((Ae,xe)=>{Y.add([Ae,xe])})}function ae(Ae){X||(X=!0,j(),Y.list().forEach(([xe,ve])=>Ae?ve(Ae):xe()),Y.reset())}function oe(Ae,xe,ve,Se){const{scrollBehavior:Pe}=t;if(!isBrowser||!Pe)return Promise.resolve();const we=!ve&&getSavedScrollPosition(getScrollKey(Ae.fullPath,0))||(Se||!ve)&&history.state&&history.state.scroll||null;return nextTick().then(()=>Pe(Ae,xe,we)).then(Ie=>Ie&&scrollToPosition(Ie)).catch(Ie=>re(Ie,Ae,xe))}const ie=Ae=>s.go(Ae);let ce;const fe=new Set;return{currentRoute:y,addRoute:w,removeRoute:_,hasRoute:B,getRoutes:$,resolve:I,options:t,push:P,replace:D,go:ie,back:()=>ie(-1),forward:()=>ie(1),beforeEach:l.add,beforeResolve:d.add,afterEach:g.add,onError:J.add,isReady:te,install(Ae){const xe=this;Ae.component("RouterLink",RouterLink),Ae.component("RouterView",RouterView),Ae.config.globalProperties.$router=xe,Object.defineProperty(Ae.config.globalProperties,"$route",{enumerable:!0,get:()=>unref(y)}),isBrowser&&!ce&&y.value===START_LOCATION_NORMALIZED&&(ce=!0,P(s.location).catch(Pe=>{}));const ve={};for(const Pe in START_LOCATION_NORMALIZED)ve[Pe]=computed(()=>y.value[Pe]);Ae.provide(routerKey,xe),Ae.provide(routeLocationKey,reactive(ve)),Ae.provide(routerViewLocationKey,y);const Se=Ae.unmount;fe.add(Ae),Ae.unmount=function(){fe.delete(Ae),fe.size<1&&(b=START_LOCATION_NORMALIZED,W&&W(),y.value=START_LOCATION_NORMALIZED,ce=!1,X=!1),Se()}}}}function runGuardQueue(t){return t.reduce((r,n)=>r.then(()=>n()),Promise.resolve())}function extractChangingRecords(t,r){const n=[],o=[],s=[],l=Math.max(r.matched.length,t.matched.length);for(let d=0;disSameRouteRecord(b,g))?o.push(g):n.push(g));const y=t.matched[d];y&&(r.matched.find(b=>isSameRouteRecord(b,y))||s.push(y))}return[n,o,s]}function useRouter(){return inject(routerKey)}function useRoute(){return inject(routeLocationKey)}var ChartEnum=(t=>(t.CHART_HOME="/chart/home/:id(.*)*",t.CHART_HOME_NAME="ChartHome",t))(ChartEnum||{}),PreviewEnum=(t=>(t.CHART_PREVIEW="/chart/preview/:id(.*)*",t.CHART_PREVIEW_NAME="ChartPreview",t))(PreviewEnum||{}),EditEnum=(t=>(t.CHART_EDIT="/chart/edit/:id(.*)*",t.CHART_EDIT_NAME="ChartEdit",t))(EditEnum||{}),PageEnum=(t=>(t.BASE_LOGIN="/login",t.BASE_LOGIN_NAME="Login",t.REDIRECT="/redirect",t.REDIRECT_NAME="Redirect",t.RELOAD="/reload",t.RELOAD_NAME="Reload",t.BASE_HOME="/project",t.BASE_HOME_NAME="Project",t.BASE_HOME_ITEMS="/project/items",t.BASE_HOME_ITEMS_NAME="Project-Items",t.BASE_HOME_TEMPLATE="/project/my-template",t.BASE_HOME_TEMPLATE_NAME="Project-My-Template",t.BASE_HOME_TEMPLATE_MARKET="/project/template-market",t.BASE_HOME_TEMPLATE_MARKET_NAME="Project-Template-Market",t.ERROR_PAGE_NAME_403="ErrorPage403",t.ERROR_PAGE_NAME_404="ErrorPage404",t.ERROR_PAGE_NAME_500="ErrorPage500",t))(PageEnum||{});const ErrorPageNameMap=new Map([[ResultEnum.NOT_FOUND,"ErrorPage404"],[ResultEnum.SERVER_FORBIDDEN,"ErrorPage403"],[ResultEnum.SERVER_ERROR,"ErrorPage500"]]),docPath="https://www.mtruning.club/",giteeSourceCodePath="https://gitee.com/dromara/go-view";var StorageEnum=(t=>(t.GO_SYSTEM_SETTING_STORE="GO_SYSTEM_SETTING",t.GO_ACCESS_TOKEN_STORE="GO_ACCESS_TOKEN",t.GO_LOGIN_INFO_STORE="GO_LOGIN_INFO",t.GO_LANG_STORE="GO_LANG",t.GO_DESIGN_STORE="GO_DESIGN",t.GO_CHART_LAYOUT_STORE="GO_CHART_LAYOUT",t.GO_CHART_STORAGE_LIST="GO_CHART_STORAGE_LIST",t))(StorageEnum||{});const setLocalStorage=(t,r)=>{try{window.localStorage.setItem(t,JSONStringify(r))}catch(n){return!1}},getLocalStorage=t=>{const r=window.localStorage.getItem(t);try{return r&&JSONParse(r)}catch(n){return r}},setSessionStorage=(t,r)=>{try{window.sessionStorage.setItem(t,JSONStringify(r))}catch(n){return!1}},getSessionStorage=t=>{const r=window.sessionStorage.getItem(t);try{return r&&JSONParse(r)}catch(n){return r}},scriptRel="modulepreload",seen={},base$1="/",__vitePreload=function t(r,n){return!n||n.length===0?r():Promise.all(n.map(o=>{if(o=`${base$1}${o}`,o in seen)return;seen[o]=!0;const s=o.endsWith(".css"),l=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${o}"]${l}`))return;const d=document.createElement("link");if(d.rel=s?"stylesheet":scriptRel,s||(d.as="script",d.crossOrigin=""),d.href=o,document.head.appendChild(d),s)return new Promise((g,y)=>{d.addEventListener("load",g),d.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>r())},ErrorPage404=()=>__vitePreload(()=>import("./404-5113b22e.js"),["static/js/404-5113b22e.js","static/css/404-0be90bca.css","static/js/404-c00f16ad.js"]),ErrorPage403=()=>__vitePreload(()=>import("./403-7116ee13.js"),["static/js/403-7116ee13.js","static/css/403-899212b4.css","static/js/403-24e394e4.js"]),ErrorPage500=()=>__vitePreload(()=>import("./500-8ecfa6d8.js"),["static/js/500-8ecfa6d8.js","static/css/500-db4beb47.css","static/js/500-dc262da5.js"]),Layout=()=>__vitePreload(()=>import("./index-684741e5.js"),[]);var index_vue_vue_type_style_index_0_scoped_true_lang$2="",_export_sfc$1=(t,r)=>{const n=t.__vccOpts||t;for(const[o,s]of r)n[o]=s;return n};const _hoisted_1$5={class:"go-reload"},_sfc_main$8=defineComponent({__name:"index",setup(t){return onMounted(()=>{router.go(-1)}),(r,n)=>(openBlock(),createElementBlock("div",_hoisted_1$5))}});var GoReload=_export_sfc$1(_sfc_main$8,[["__scopeId","data-v-2f9d5172"]]);const LoginRoute={path:"/login",name:"Login",component:()=>__vitePreload(()=>import("./index-46f7d99b.js"),["static/js/index-46f7d99b.js","static/css/index-1d4e0153.css","static/js/moke-20211219181327-c0abf229.js","static/js/table_scrollboard-e30c6082.js","static/js/icon-176a9265.js","static/js/index-98ba12b6.js","static/css/index-19141fc2.css"]),meta:{title:"\u767B\u5F55"}},HttpErrorPage=[{path:"/error/404",name:PageEnum.ERROR_PAGE_NAME_404,component:ErrorPage404,meta:{title:PageEnum.ERROR_PAGE_NAME_404}},{path:"/error/403",name:PageEnum.ERROR_PAGE_NAME_403,component:ErrorPage403,meta:{title:PageEnum.ERROR_PAGE_NAME_403}},{path:"/error/500",name:PageEnum.ERROR_PAGE_NAME_500,component:ErrorPage500,meta:{title:PageEnum.ERROR_PAGE_NAME_500}}];PageEnum.ERROR_PAGE_NAME_404;const ReloadRoute={path:PageEnum.RELOAD,name:PageEnum.RELOAD_NAME,component:GoReload,meta:{title:PageEnum.RELOAD_NAME}},RedirectRoute={path:PageEnum.REDIRECT,name:PageEnum.REDIRECT_NAME,component:Layout,meta:{title:PageEnum.REDIRECT_NAME},children:[{path:"/redirect/:path(.*)",name:PageEnum.REDIRECT_NAME,component:()=>__vitePreload(()=>import("./index-c8fbb000.js"),[]),meta:{title:PageEnum.REDIRECT_NAME,hideBreadcrumb:!0}}]},importPath$3={"PageEnum.BASE_HOME_NAME":()=>__vitePreload(()=>import("./index-fe20f456.js"),["static/js/index-fe20f456.js","static/css/index-d450a283.css","static/js/icon-176a9265.js","static/js/index-a84a02dd.js","static/js/index-98ba12b6.js","static/css/index-19141fc2.css"]),"PageEnum.BASE_HOME_ITEMS_NAME":()=>__vitePreload(()=>import("./index-60704926.js"),["static/js/index-60704926.js","static/css/index-fed8a015.css","static/js/moke-20211219181327-c0abf229.js","static/js/403-24e394e4.js","static/js/404-c00f16ad.js","static/js/500-dc262da5.js","static/js/table_scrollboard-e30c6082.js","static/js/icon-176a9265.js","static/js/index-3e72bbd0.js","static/css/index-1fb675e6.css","static/js/plugin-de332d88.js"]),"PageEnum.BASE_HOME_TEMPLATE_NAME":()=>__vitePreload(()=>import("./index-bdad2fd6.js"),["static/js/index-bdad2fd6.js","static/css/index-745cd4ba.css"]),"PageEnum.BASE_HOME_TEMPLATE_MARKET_NAME":()=>__vitePreload(()=>import("./index-4066e06e.js"),["static/js/index-4066e06e.js","static/css/index-86e08230.css"])},projectRoutes={path:PageEnum.BASE_HOME,name:PageEnum.BASE_HOME_NAME,component:importPath$3["PageEnum.BASE_HOME_NAME"],redirect:PageEnum.BASE_HOME_ITEMS,meta:{title:"\u9879\u76EE",isRoot:!0},children:[{path:PageEnum.BASE_HOME_ITEMS,name:PageEnum.BASE_HOME_ITEMS_NAME,component:importPath$3["PageEnum.BASE_HOME_ITEMS_NAME"],meta:{title:"\u6211\u7684\u9879\u76EE"}},{path:PageEnum.BASE_HOME_TEMPLATE,name:PageEnum.BASE_HOME_TEMPLATE_NAME,component:importPath$3["PageEnum.BASE_HOME_TEMPLATE_NAME"],meta:{title:"\u6211\u7684\u6A21\u677F"}},{path:PageEnum.BASE_HOME_TEMPLATE_MARKET,name:PageEnum.BASE_HOME_TEMPLATE_MARKET_NAME,component:importPath$3["PageEnum.BASE_HOME_TEMPLATE_MARKET_NAME"],meta:{title:"\u6A21\u677F\u5E02\u573A"}}]},importPath$2={"ChartEnum.CHART_HOME_NAME":()=>__vitePreload(()=>import("./index-ede51f07.js").then(function(t){return t.i}),["static/js/index-ede51f07.js","static/css/index-3cd64027.css","static/js/index-a84a02dd.js","static/js/index-98ba12b6.js","static/css/index-19141fc2.css","static/js/chartEditStore-057f9f3d.js","static/js/plugin-de332d88.js","static/js/icon-176a9265.js"])},chartRoutes$2={path:ChartEnum.CHART_HOME,name:ChartEnum.CHART_HOME_NAME,component:importPath$2["ChartEnum.CHART_HOME_NAME"],meta:{title:"\u5DE5\u4F5C\u7A7A\u95F4",isRoot:!0,noKeepAlive:!0}},importPath$1={"PreviewEnum.CHART_PREVIEW_NAME":()=>__vitePreload(()=>import("./wrapper-85550edc.js"),["static/js/wrapper-85550edc.js","static/css/wrapper-bafb7342.css","static/js/storage-ce939801.js","static/js/chartEditStore-057f9f3d.js","static/js/plugin-de332d88.js","static/js/icon-176a9265.js","static/js/index-1a15de04.js","static/css/index-3de0262b.css","static/js/table_scrollboard-e30c6082.js","static/js/SizeSetting.vue_vue_type_style_index_0_scoped_true_lang-858d30d6.js","static/css/SizeSetting.vue_vue_type_style_index_0_scoped_true_lang-030d6af2.css","static/js/useTargetData.hook-8389f60d.js"])},chartRoutes$1={path:PreviewEnum.CHART_PREVIEW,name:PreviewEnum.CHART_PREVIEW_NAME,component:importPath$1["PreviewEnum.CHART_PREVIEW_NAME"],meta:{title:"\u9884\u89C8",isRoot:!0}},importPath={[EditEnum.CHART_EDIT_NAME]:()=>__vitePreload(()=>import("./index-2a83af5e.js").then(function(t){return t.i}),["static/js/index-2a83af5e.js","static/css/index-c2e59b99.css","static/js/editorWorker-a0599278.js","static/js/storage-ce939801.js","static/js/icon-176a9265.js"])},chartRoutes={path:EditEnum.CHART_EDIT,name:EditEnum.CHART_EDIT_NAME,component:importPath[EditEnum.CHART_EDIT_NAME],meta:{title:"\u7F16\u8F91",isRoot:!0}};var modules={projectRoutes,chartRoutes:chartRoutes$2,previewRoutes:chartRoutes$1,editRoutes:chartRoutes};const RootRoute=[{path:"/",name:"Root",redirect:PageEnum.BASE_HOME,component:Layout,meta:{title:"Root"},children:[...HttpErrorPage,modules.projectRoutes,modules.chartRoutes,modules.previewRoutes,modules.editRoutes]}],constantRouter=[LoginRoute,...RootRoute,RedirectRoute,ReloadRoute],router=createRouter({history:createWebHashHistory(""),routes:constantRouter,strict:!0});function setupRouter(t){t.use(router)}const routerTurnByName=(t,r,n)=>{if(n){const o=fetchPathByName(t,"href");openNewWindow(o);return}if(r){router.replace({name:t});return}router.push({name:t})},fetchPathByName=(t,r)=>{try{const n=router.resolve({name:t});return r?n[r]:n}catch(n){window.$message.warning("\u67E5\u8BE2\u8DEF\u7531\u4FE1\u606F\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01")}},routerTurnByPath=(t,r,n,o)=>{let s="";if(r!=null&&r.length&&(s=`${t}/${r.join("/")}`),o)return openNewWindow(s);if(n){router.replace({path:s});return}router.push({path:s})},redirectErrorPage=t=>{if(!t)return!1;const r=ErrorPageNameMap.get(t);if(!r)return!1;routerTurnByName(r)},reloadRoutePage=()=>{routerTurnByName(PageEnum.RELOAD_NAME)},openNewWindow=t=>window.open(t,"_blank"),openDoc=()=>{openNewWindow(docPath)},openGiteeSourceCode=()=>{openNewWindow(giteeSourceCodePath)},isPreview=()=>document.location.hash.includes("preview"),fetchRouteParamsLocation=()=>{try{return document.location.hash.split("/").pop()||""}catch(t){return window.$message.warning("\u67E5\u8BE2\u8DEF\u7531\u4FE1\u606F\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01"),""}};var colorString$1={exports:{}},colorName={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},simpleSwizzle={exports:{}},isArrayish$1=function t(r){return!r||typeof r=="string"?!1:r instanceof Array||Array.isArray(r)||r.length>=0&&(r.splice instanceof Function||Object.getOwnPropertyDescriptor(r,r.length-1)&&r.constructor.name!=="String")},isArrayish=isArrayish$1,concat$1=Array.prototype.concat,slice$1=Array.prototype.slice,swizzle$1=simpleSwizzle.exports=function t(r){for(var n=[],o=0,s=r.length;o=4&&t[3]!==1&&(r=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+r+")"};cs.to.keyword=function(t){return reverseNames[t.slice(0,3)]};function clamp$1(t,r,n){return Math.min(Math.max(r,t),n)}function hexDouble(t){var r=Math.round(t).toString(16).toUpperCase();return r.length<2?"0"+r:r}const cssKeywords=colorName,reverseKeywords={};for(const t of Object.keys(cssKeywords))reverseKeywords[cssKeywords[t]]=t;const convert$2={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var conversions$2=convert$2;for(const t of Object.keys(convert$2)){if(!("channels"in convert$2[t]))throw new Error("missing channels property: "+t);if(!("labels"in convert$2[t]))throw new Error("missing channel labels property: "+t);if(convert$2[t].labels.length!==convert$2[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:r,labels:n}=convert$2[t];delete convert$2[t].channels,delete convert$2[t].labels,Object.defineProperty(convert$2[t],"channels",{value:r}),Object.defineProperty(convert$2[t],"labels",{value:n})}convert$2.rgb.hsl=function(t){const r=t[0]/255,n=t[1]/255,o=t[2]/255,s=Math.min(r,n,o),l=Math.max(r,n,o),d=l-s;let g,y;l===s?g=0:r===l?g=(n-o)/d:n===l?g=2+(o-r)/d:o===l&&(g=4+(r-n)/d),g=Math.min(g*60,360),g<0&&(g+=360);const b=(s+l)/2;return l===s?y=0:b<=.5?y=d/(l+s):y=d/(2-l-s),[g,y*100,b*100]};convert$2.rgb.hsv=function(t){let r,n,o,s,l;const d=t[0]/255,g=t[1]/255,y=t[2]/255,b=Math.max(d,g,y),C=b-Math.min(d,g,y),x=function(S){return(b-S)/6/C+1/2};return C===0?(s=0,l=0):(l=C/b,r=x(d),n=x(g),o=x(y),d===b?s=o-n:g===b?s=1/3+r-o:y===b&&(s=2/3+n-r),s<0?s+=1:s>1&&(s-=1)),[s*360,l*100,b*100]};convert$2.rgb.hwb=function(t){const r=t[0],n=t[1];let o=t[2];const s=convert$2.rgb.hsl(t)[0],l=1/255*Math.min(r,Math.min(n,o));return o=1-1/255*Math.max(r,Math.max(n,o)),[s,l*100,o*100]};convert$2.rgb.cmyk=function(t){const r=t[0]/255,n=t[1]/255,o=t[2]/255,s=Math.min(1-r,1-n,1-o),l=(1-r-s)/(1-s)||0,d=(1-n-s)/(1-s)||0,g=(1-o-s)/(1-s)||0;return[l*100,d*100,g*100,s*100]};function comparativeDistance(t,r){return Ct(t[0]-r[0],2)+Ct(t[1]-r[1],2)+Ct(t[2]-r[2],2)}convert$2.rgb.keyword=function(t){const r=reverseKeywords[t];if(r)return r;let n=1/0,o;for(const s of Object.keys(cssKeywords)){const l=cssKeywords[s],d=comparativeDistance(t,l);d.04045?Ct((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Ct((n+.055)/1.055,2.4):n/12.92,o=o>.04045?Ct((o+.055)/1.055,2.4):o/12.92;const s=r*.4124+n*.3576+o*.1805,l=r*.2126+n*.7152+o*.0722,d=r*.0193+n*.1192+o*.9505;return[s*100,l*100,d*100]};convert$2.rgb.lab=function(t){const r=convert$2.rgb.xyz(t);let n=r[0],o=r[1],s=r[2];n/=95.047,o/=100,s/=108.883,n=n>.008856?Ct(n,1/3):7.787*n+16/116,o=o>.008856?Ct(o,1/3):7.787*o+16/116,s=s>.008856?Ct(s,1/3):7.787*s+16/116;const l=116*o-16,d=500*(n-o),g=200*(o-s);return[l,d,g]};convert$2.hsl.rgb=function(t){const r=t[0]/360,n=t[1]/100,o=t[2]/100;let s,l,d;if(n===0)return d=o*255,[d,d,d];o<.5?s=o*(1+n):s=o+n-o*n;const g=2*o-s,y=[0,0,0];for(let b=0;b<3;b++)l=r+1/3*-(b-1),l<0&&l++,l>1&&l--,6*l<1?d=g+(s-g)*6*l:2*l<1?d=s:3*l<2?d=g+(s-g)*(2/3-l)*6:d=g,y[b]=d*255;return y};convert$2.hsl.hsv=function(t){const r=t[0];let n=t[1]/100,o=t[2]/100,s=n;const l=Math.max(o,.01);o*=2,n*=o<=1?o:2-o,s*=l<=1?l:2-l;const d=(o+n)/2,g=o===0?2*s/(l+s):2*n/(o+n);return[r,g*100,d*100]};convert$2.hsv.rgb=function(t){const r=t[0]/60,n=t[1]/100;let o=t[2]/100;const s=Math.floor(r)%6,l=r-Math.floor(r),d=255*o*(1-n),g=255*o*(1-n*l),y=255*o*(1-n*(1-l));switch(o*=255,s){case 0:return[o,y,d];case 1:return[g,o,d];case 2:return[d,o,y];case 3:return[d,g,o];case 4:return[y,d,o];case 5:return[o,d,g]}};convert$2.hsv.hsl=function(t){const r=t[0],n=t[1]/100,o=t[2]/100,s=Math.max(o,.01);let l,d;d=(2-n)*o;const g=(2-n)*s;return l=n*s,l/=g<=1?g:2-g,l=l||0,d/=2,[r,l*100,d*100]};convert$2.hwb.rgb=function(t){const r=t[0]/360;let n=t[1]/100,o=t[2]/100;const s=n+o;let l;s>1&&(n/=s,o/=s);const d=Math.floor(6*r),g=1-o;l=6*r-d,(d&1)!==0&&(l=1-l);const y=n+l*(g-n);let b,C,x;switch(d){default:case 6:case 0:b=g,C=y,x=n;break;case 1:b=y,C=g,x=n;break;case 2:b=n,C=g,x=y;break;case 3:b=n,C=y,x=g;break;case 4:b=y,C=n,x=g;break;case 5:b=g,C=n,x=y;break}return[b*255,C*255,x*255]};convert$2.cmyk.rgb=function(t){const r=t[0]/100,n=t[1]/100,o=t[2]/100,s=t[3]/100,l=1-Math.min(1,r*(1-s)+s),d=1-Math.min(1,n*(1-s)+s),g=1-Math.min(1,o*(1-s)+s);return[l*255,d*255,g*255]};convert$2.xyz.rgb=function(t){const r=t[0]/100,n=t[1]/100,o=t[2]/100;let s,l,d;return s=r*3.2406+n*-1.5372+o*-.4986,l=r*-.9689+n*1.8758+o*.0415,d=r*.0557+n*-.204+o*1.057,s=s>.0031308?1.055*Ct(s,1/2.4)-.055:s*12.92,l=l>.0031308?1.055*Ct(l,1/2.4)-.055:l*12.92,d=d>.0031308?1.055*Ct(d,1/2.4)-.055:d*12.92,s=Math.min(Math.max(0,s),1),l=Math.min(Math.max(0,l),1),d=Math.min(Math.max(0,d),1),[s*255,l*255,d*255]};convert$2.xyz.lab=function(t){let r=t[0],n=t[1],o=t[2];r/=95.047,n/=100,o/=108.883,r=r>.008856?Ct(r,1/3):7.787*r+16/116,n=n>.008856?Ct(n,1/3):7.787*n+16/116,o=o>.008856?Ct(o,1/3):7.787*o+16/116;const s=116*n-16,l=500*(r-n),d=200*(n-o);return[s,l,d]};convert$2.lab.xyz=function(t){const r=t[0],n=t[1],o=t[2];let s,l,d;l=(r+16)/116,s=n/500+l,d=l-o/200;const g=Ct(l,3),y=Ct(s,3),b=Ct(d,3);return l=g>.008856?g:(l-16/116)/7.787,s=y>.008856?y:(s-16/116)/7.787,d=b>.008856?b:(d-16/116)/7.787,s*=95.047,l*=100,d*=108.883,[s,l,d]};convert$2.lab.lch=function(t){const r=t[0],n=t[1],o=t[2];let s;s=Math.atan2(o,n)*360/2/Math.PI,s<0&&(s+=360);const d=Math.sqrt(n*n+o*o);return[r,d,s]};convert$2.lch.lab=function(t){const r=t[0],n=t[1],s=t[2]/360*2*Math.PI,l=n*Math.cos(s),d=n*Math.sin(s);return[r,l,d]};convert$2.rgb.ansi16=function(t,r=null){const[n,o,s]=t;let l=r===null?convert$2.rgb.hsv(t)[2]:r;if(l=Math.round(l/50),l===0)return 30;let d=30+(Math.round(s/255)<<2|Math.round(o/255)<<1|Math.round(n/255));return l===2&&(d+=60),d};convert$2.hsv.ansi16=function(t){return convert$2.rgb.ansi16(convert$2.hsv.rgb(t),t[2])};convert$2.rgb.ansi256=function(t){const r=t[0],n=t[1],o=t[2];return r===n&&n===o?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(o/255*5)};convert$2.ansi16.rgb=function(t){let r=t%10;if(r===0||r===7)return t>50&&(r+=3.5),r=r/10.5*255,[r,r,r];const n=(~~(t>50)+1)*.5,o=(r&1)*n*255,s=(r>>1&1)*n*255,l=(r>>2&1)*n*255;return[o,s,l]};convert$2.ansi256.rgb=function(t){if(t>=232){const l=(t-232)*10+8;return[l,l,l]}t-=16;let r;const n=Math.floor(t/36)/5*255,o=Math.floor((r=t%36)/6)/5*255,s=r%6/5*255;return[n,o,s]};convert$2.rgb.hex=function(t){const n=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};convert$2.hex.rgb=function(t){const r=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!r)return[0,0,0];let n=r[0];r[0].length===3&&(n=n.split("").map(g=>g+g).join(""));const o=parseInt(n,16),s=o>>16&255,l=o>>8&255,d=o&255;return[s,l,d]};convert$2.rgb.hcg=function(t){const r=t[0]/255,n=t[1]/255,o=t[2]/255,s=Math.max(Math.max(r,n),o),l=Math.min(Math.min(r,n),o),d=s-l;let g,y;return d<1?g=l/(1-d):g=0,d<=0?y=0:s===r?y=(n-o)/d%6:s===n?y=2+(o-r)/d:y=4+(r-n)/d,y/=6,y%=1,[y*360,d*100,g*100]};convert$2.hsl.hcg=function(t){const r=t[1]/100,n=t[2]/100,o=n<.5?2*r*n:2*r*(1-n);let s=0;return o<1&&(s=(n-.5*o)/(1-o)),[t[0],o*100,s*100]};convert$2.hsv.hcg=function(t){const r=t[1]/100,n=t[2]/100,o=r*n;let s=0;return o<1&&(s=(n-o)/(1-o)),[t[0],o*100,s*100]};convert$2.hcg.rgb=function(t){const r=t[0]/360,n=t[1]/100,o=t[2]/100;if(n===0)return[o*255,o*255,o*255];const s=[0,0,0],l=r%1*6,d=l%1,g=1-d;let y=0;switch(Math.floor(l)){case 0:s[0]=1,s[1]=d,s[2]=0;break;case 1:s[0]=g,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=d;break;case 3:s[0]=0,s[1]=g,s[2]=1;break;case 4:s[0]=d,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=g}return y=(1-n)*o,[(n*s[0]+y)*255,(n*s[1]+y)*255,(n*s[2]+y)*255]};convert$2.hcg.hsv=function(t){const r=t[1]/100,n=t[2]/100,o=r+n*(1-r);let s=0;return o>0&&(s=r/o),[t[0],s*100,o*100]};convert$2.hcg.hsl=function(t){const r=t[1]/100,o=t[2]/100*(1-r)+.5*r;let s=0;return o>0&&o<.5?s=r/(2*o):o>=.5&&o<1&&(s=r/(2*(1-o))),[t[0],s*100,o*100]};convert$2.hcg.hwb=function(t){const r=t[1]/100,n=t[2]/100,o=r+n*(1-r);return[t[0],(o-r)*100,(1-o)*100]};convert$2.hwb.hcg=function(t){const r=t[1]/100,n=t[2]/100,o=1-n,s=o-r;let l=0;return s<1&&(l=(o-s)/(1-s)),[t[0],s*100,l*100]};convert$2.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};convert$2.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};convert$2.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};convert$2.gray.hsl=function(t){return[0,0,t[0]]};convert$2.gray.hsv=convert$2.gray.hsl;convert$2.gray.hwb=function(t){return[0,100,t[0]]};convert$2.gray.cmyk=function(t){return[0,0,0,t[0]]};convert$2.gray.lab=function(t){return[t[0],0,0]};convert$2.gray.hex=function(t){const r=Math.round(t[0]/100*255)&255,o=((r<<16)+(r<<8)+r).toString(16).toUpperCase();return"000000".substring(o.length)+o};convert$2.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};const conversions$1=conversions$2;function buildGraph(){const t={},r=Object.keys(conversions$1);for(let n=r.length,o=0;o1&&(n=o),t(n))};return"conversion"in t&&(r.conversion=t.conversion),r}function wrapRounded(t){const r=function(...n){const o=n[0];if(o==null)return o;o.length>1&&(n=o);const s=t(n);if(typeof s=="object")for(let l=s.length,d=0;d{convert$1[t]={},Object.defineProperty(convert$1[t],"channels",{value:conversions[t].channels}),Object.defineProperty(convert$1[t],"labels",{value:conversions[t].labels});const r=route(t);Object.keys(r).forEach(o=>{const s=r[o];convert$1[t][o]=wrapRounded(s),convert$1[t][o].raw=wrapRaw(s)})});var colorConvert=convert$1;const colorString=colorString$1.exports,convert=colorConvert,skippedModels=["keyword","gray","hex"],hashedModelKeys={};for(const t of Object.keys(convert))hashedModelKeys[[...convert[t].labels].sort().join("")]=t;const limiters={};function Color(t,r){if(!(this instanceof Color))return new Color(t,r);if(r&&r in skippedModels&&(r=null),r&&!(r in convert))throw new Error("Unknown model: "+r);let n,o;if(t==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof Color)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if(typeof t=="string"){const s=colorString.get(t);if(s===null)throw new Error("Unable to parse color from string: "+t);this.model=s.model,o=convert[this.model].channels,this.color=s.value.slice(0,o),this.valpha=typeof s.value[o]=="number"?s.value[o]:1}else if(t.length>0){this.model=r||"rgb",o=convert[this.model].channels;const s=Array.prototype.slice.call(t,0,o);this.color=zeroArray(s,o),this.valpha=typeof t[o]=="number"?t[o]:1}else if(typeof t=="number")this.model="rgb",this.color=[t>>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;const s=Object.keys(t);"alpha"in t&&(s.splice(s.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);const l=s.sort().join("");if(!(l in hashedModelKeys))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=hashedModelKeys[l];const{labels:d}=convert[this.model],g=[];for(n=0;n(t%360+360)%360),saturationl:getset("hsl",1,maxfn(100)),lightness:getset("hsl",2,maxfn(100)),saturationv:getset("hsv",1,maxfn(100)),value:getset("hsv",2,maxfn(100)),chroma:getset("hcg",1,maxfn(100)),gray:getset("hcg",2,maxfn(100)),white:getset("hwb",1,maxfn(100)),wblack:getset("hwb",2,maxfn(100)),cyan:getset("cmyk",0,maxfn(100)),magenta:getset("cmyk",1,maxfn(100)),yellow:getset("cmyk",2,maxfn(100)),black:getset("cmyk",3,maxfn(100)),x:getset("xyz",0,maxfn(95.047)),y:getset("xyz",1,maxfn(100)),z:getset("xyz",2,maxfn(108.833)),l:getset("lab",0,maxfn(100)),a:getset("lab",1),b:getset("lab",2),keyword(t){return t!==void 0?new Color(t):convert[this.model].keyword(this.color)},hex(t){return t!==void 0?new Color(t):colorString.to.hex(this.rgb().round().color)},hexa(t){if(t!==void 0)return new Color(t);const r=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),colorString.to.hex(r)+n},rgbNumber(){const t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity(){const t=this.rgb().color,r=[];for(const[n,o]of t.entries()){const s=o/255;r[n]=s<=.04045?s/12.92:Ct((s+.055)/1.055,2.4)}return .2126*r[0]+.7152*r[1]+.0722*r[2]},contrast(t){const r=this.luminosity(),n=t.luminosity();return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)},level(t){const r=this.contrast(t);return r>=7?"AAA":r>=4.5?"AA":""},isDark(){const t=this.rgb().color;return(t[0]*2126+t[1]*7152+t[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const t=this.rgb();for(let r=0;r<3;r++)t.color[r]=255-t.color[r];return t},lighten(t){const r=this.hsl();return r.color[2]+=r.color[2]*t,r},darken(t){const r=this.hsl();return r.color[2]-=r.color[2]*t,r},saturate(t){const r=this.hsl();return r.color[1]+=r.color[1]*t,r},desaturate(t){const r=this.hsl();return r.color[1]-=r.color[1]*t,r},whiten(t){const r=this.hwb();return r.color[1]+=r.color[1]*t,r},blacken(t){const r=this.hwb();return r.color[2]+=r.color[2]*t,r},grayscale(){const t=this.rgb().color,r=t[0]*.3+t[1]*.59+t[2]*.11;return Color.rgb(r,r,r)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){const r=this.hsl();let n=r.color[0];return n=(n+t)%360,n=n<0?360+n:n,r.color[0]=n,r},mix(t,r){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);const n=t.rgb(),o=this.rgb(),s=r===void 0?.5:r,l=2*s-1,d=n.alpha()-o.alpha(),g=((l*d===-1?l:(l+d)/(1+l*d))+1)/2,y=1-g;return Color.rgb(g*n.red()+y*o.red(),g*n.green()+y*o.green(),g*n.blue()+y*o.blue(),n.alpha()*s+o.alpha()*(1-s))}};for(const t of Object.keys(convert)){if(skippedModels.includes(t))continue;const{channels:r}=convert[t];Color.prototype[t]=function(...n){return this.model===t?new Color(this):n.length>0?new Color(n,t):new Color([...assertArray(convert[this.model][t].raw(this.color)),this.valpha],t)},Color[t]=function(...n){let o=n[0];return typeof o=="number"&&(o=zeroArray(n,r)),new Color(o,t)}}function roundTo(t,r){return Number(t.toFixed(r))}function roundToPlace(t){return function(r){return roundTo(r,t)}}function getset(t,r,n){t=Array.isArray(t)?t:[t];for(const o of t)(limiters[o]||(limiters[o]=[]))[r]=n;return t=t[0],function(o){let s;return o!==void 0?(n&&(o=n(o)),s=this[t](),s.color[r]=o,s):(s=this[t]().color[r],n&&(s=n(s)),s)}}function maxfn(t){return function(r){return Math.max(0,Math.min(t,r))}}function assertArray(t){return Array.isArray(t)?t:[t]}function zeroArray(t,r){for(let n=0;nt.length?`animate__animated animate__${t[0]}`:"",getFilterStyle=t=>{if(!t||!t.filterShow)return{};const{opacity:r,saturate:n,contrast:o,hueRotate:s,brightness:l}=t;return{opacity:r,filter:`saturate(${n}) contrast(${o}) hue-rotate(${s}deg) brightness(${l})`}},getTransformStyle=t=>{const{rotateZ:r,rotateX:n,rotateY:o,skewX:s,skewY:l}=t;return{transform:`rotateZ(${r||0}deg) rotateX(${n||0}deg) rotateY(${o||0}deg) skewX(${s||0}deg) skewY(${l||0}deg)`}},getBlendModeStyle=t=>{if(!t||!t.filterShow)return{};const{blendMode:r}=t;return{"mix-blend-mode":r}};function alpha(t,r=1){return Color$1(t).alpha(r).toString()}function lighten(t,r){return Color$1(t).lighten(r).toString()}const setHtmlTheme=t=>{const r=window.document.documentElement;if(t){r.setAttribute("data-theme",t);return}const n=useDesignStore();r.setAttribute("data-theme",n.themeName)},naive=create$3({components:[NA,NP,NH1,NH2,NH3,NH4,NH5,NCode,NCountdown,NText,NTime,NEllipsis,NMessageProvider,NDialogProvider,NConfigProvider,NGradientText,NInput,NButton,NButtonGroup,NForm,NFormItem,NCheckboxGroup,NCheckbox,NIcon,NImage,NLayout,NLayoutHeader,NLayoutContent,NLayoutFooter,NLayoutSider,NMenu,NBreadcrumb,NBreadcrumbItem,NDropdown,NSpace,NTooltip,NAvatar,NTabs,NTab,NTabPane,NCard,NRow,NCol,NDrawer,NDrawerContent,NDivider,NSwitch,NBadge,NAlert,NElement,NTag,NNotificationProvider,NNumberAnimation,NProgress,NDatePicker,NGrid,NGridItem,NList,NListItem,NThing,NDataTable,NPopover,NPagination,NSlider,NSelect,NRadioGroup,NRadio,NSteps,NStep,NInputGroup,NInputGroupLabel,NResult,NDescriptions,NDescriptionsItem,NTable,NInputNumber,NLoadingBarProvider,NModal,NUpload,NUploadFileList,NUploadTrigger,NUploadDragger,NTree,NTreeSelect,NSpin,NTimeline,NTimelineItem,NTimePicker,NBackTop,NSkeleton,NStatistic,NCarousel,NScrollbar,NPopselect,NCollapse,NCollapseItem,NColorPicker,NWatermark,NEmpty,NCollapseTransition]});function setupNaive(t){t.use(naive)}/*! + */const hasSymbol=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",PolySymbol=t=>hasSymbol?Symbol(t):"_vr_"+t,matchedRouteKey=PolySymbol("rvlm"),viewDepthKey=PolySymbol("rvd"),routerKey=PolySymbol("r"),routeLocationKey=PolySymbol("rl"),routerViewLocationKey=PolySymbol("rvl"),isBrowser=typeof window!="undefined";function isESModule(t){return t.__esModule||hasSymbol&&t[Symbol.toStringTag]==="Module"}const assign$1=Object.assign;function applyToParams(t,r){const n={};for(const o in r){const s=r[o];n[o]=Array.isArray(s)?s.map(t):t(s)}return n}const noop$1=()=>{},TRAILING_SLASH_RE=/\/$/,removeTrailingSlash=t=>t.replace(TRAILING_SLASH_RE,"");function parseURL(t,r,n="/"){let o,s={},l="",d="";const g=r.indexOf("?"),y=r.indexOf("#",g>-1?g:0);return g>-1&&(o=r.slice(0,g),l=r.slice(g+1,y>-1?y:r.length),s=t(l)),y>-1&&(o=o||r.slice(0,y),d=r.slice(y,r.length)),o=resolveRelativePath(o!=null?o:r,n),{fullPath:o+(l&&"?")+l+d,path:o,query:s,hash:d}}function stringifyURL(t,r){const n=r.query?t(r.query):"";return r.path+(n&&"?")+n+(r.hash||"")}function stripBase(t,r){return!r||!t.toLowerCase().startsWith(r.toLowerCase())?t:t.slice(r.length)||"/"}function isSameRouteLocation(t,r,n){const o=r.matched.length-1,s=n.matched.length-1;return o>-1&&o===s&&isSameRouteRecord(r.matched[o],n.matched[s])&&isSameRouteLocationParams(r.params,n.params)&&t(r.query)===t(n.query)&&r.hash===n.hash}function isSameRouteRecord(t,r){return(t.aliasOf||t)===(r.aliasOf||r)}function isSameRouteLocationParams(t,r){if(Object.keys(t).length!==Object.keys(r).length)return!1;for(const n in t)if(!isSameRouteLocationParamsValue(t[n],r[n]))return!1;return!0}function isSameRouteLocationParamsValue(t,r){return Array.isArray(t)?isEquivalentArray(t,r):Array.isArray(r)?isEquivalentArray(r,t):t===r}function isEquivalentArray(t,r){return Array.isArray(r)?t.length===r.length&&t.every((n,o)=>n===r[o]):t.length===1&&t[0]===r}function resolveRelativePath(t,r){if(t.startsWith("/"))return t;if(!t)return r;const n=r.split("/"),o=t.split("/");let s=n.length-1,l,d;for(l=0;l({left:window.pageXOffset,top:window.pageYOffset});function scrollToPosition(t){let r;if("el"in t){const n=t.el,o=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;r=getElementPosition(s,t)}else r=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(r):window.scrollTo(r.left!=null?r.left:window.pageXOffset,r.top!=null?r.top:window.pageYOffset)}function getScrollKey(t,r){return(history.state?history.state.position-r:-1)+t}const scrollPositions=new Map;function saveScrollPosition(t,r){scrollPositions.set(t,r)}function getSavedScrollPosition(t){const r=scrollPositions.get(t);return scrollPositions.delete(t),r}let createBaseLocation=()=>location.protocol+"//"+location.host;function createCurrentLocation(t,r){const{pathname:n,search:o,hash:s}=r,l=t.indexOf("#");if(l>-1){let g=s.includes(t.slice(l))?t.slice(l).length:1,y=s.slice(g);return y[0]!=="/"&&(y="/"+y),stripBase(y,"")}return stripBase(n,t)+o+s}function useHistoryListeners(t,r,n,o){let s=[],l=[],d=null;const g=({state:S})=>{const w=createCurrentLocation(t,location),_=n.value,$=r.value;let B=0;if(S){if(n.value=w,r.value=S,d&&d===_){d=null;return}B=$?S.position-$.position:0}else o(w);s.forEach(I=>{I(n.value,_,{delta:B,type:NavigationType.pop,direction:B?B>0?NavigationDirection.forward:NavigationDirection.back:NavigationDirection.unknown})})};function y(){d=n.value}function b(S){s.push(S);const w=()=>{const _=s.indexOf(S);_>-1&&s.splice(_,1)};return l.push(w),w}function C(){const{history:S}=window;!S.state||S.replaceState(assign$1({},S.state,{scroll:computeScrollPosition()}),"")}function x(){for(const S of l)S();l=[],window.removeEventListener("popstate",g),window.removeEventListener("beforeunload",C)}return window.addEventListener("popstate",g),window.addEventListener("beforeunload",C),{pauseListeners:y,listen:b,destroy:x}}function buildState(t,r,n,o=!1,s=!1){return{back:t,current:r,forward:n,replaced:o,position:window.history.length,scroll:s?computeScrollPosition():null}}function useHistoryStateNavigation(t){const{history:r,location:n}=window,o={value:createCurrentLocation(t,n)},s={value:r.state};s.value||l(o.value,{back:null,current:o.value,forward:null,position:r.length-1,replaced:!0,scroll:null},!0);function l(y,b,C){const x=t.indexOf("#"),S=x>-1?(n.host&&document.querySelector("base")?t:t.slice(x))+y:createBaseLocation()+t+y;try{r[C?"replaceState":"pushState"](b,"",S),s.value=b}catch(w){console.error(w),n[C?"replace":"assign"](S)}}function d(y,b){const C=assign$1({},r.state,buildState(s.value.back,y,s.value.forward,!0),b,{position:s.value.position});l(y,C,!0),o.value=y}function g(y,b){const C=assign$1({},s.value,r.state,{forward:y,scroll:computeScrollPosition()});l(C.current,C,!0);const x=assign$1({},buildState(o.value,y,null),{position:C.position+1},b);l(y,x,!1),o.value=y}return{location:o,state:s,push:g,replace:d}}function createWebHistory(t){t=normalizeBase(t);const r=useHistoryStateNavigation(t),n=useHistoryListeners(t,r.state,r.location,r.replace);function o(l,d=!0){d||n.pauseListeners(),history.go(l)}const s=assign$1({location:"",base:t,go:o,createHref:createHref.bind(null,t)},r,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>r.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>r.state.value}),s}function createWebHashHistory(t){return t=location.host?t||location.pathname+location.search:"",t.includes("#")||(t+="#"),createWebHistory(t)}function isRouteLocation(t){return typeof t=="string"||t&&typeof t=="object"}function isRouteName(t){return typeof t=="string"||typeof t=="symbol"}const START_LOCATION_NORMALIZED={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},NavigationFailureSymbol=PolySymbol("nf");var NavigationFailureType;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(NavigationFailureType||(NavigationFailureType={}));function createRouterError(t,r){return assign$1(new Error,{type:t,[NavigationFailureSymbol]:!0},r)}function isNavigationFailure(t,r){return t instanceof Error&&NavigationFailureSymbol in t&&(r==null||!!(t.type&r))}const BASE_PARAM_PATTERN="[^/]+?",BASE_PATH_PARSER_OPTIONS={sensitive:!1,strict:!1,start:!0,end:!0},REGEX_CHARS_RE=/[.+*?^${}()[\]/\\]/g;function tokensToParser(t,r){const n=assign$1({},BASE_PATH_PARSER_OPTIONS,r),o=[];let s=n.start?"^":"";const l=[];for(const b of t){const C=b.length?[]:[90];n.strict&&!b.length&&(s+="/");for(let x=0;xr.length?r.length===1&&r[0]===40+40?1:-1:0}function comparePathParserScore(t,r){let n=0;const o=t.score,s=r.score;for(;n1&&(y==="*"||y==="+")&&r(`A repeatable param (${b}) must be alone in its segment. eg: '/:ids+.`),l.push({type:1,value:b,regexp:C,repeatable:y==="*"||y==="+",optional:y==="*"||y==="?"})):r("Invalid state to consume buffer"),b="")}function S(){b+=y}for(;g{d(R)}:noop$1}function d(C){if(isRouteName(C)){const x=o.get(C);x&&(o.delete(C),n.splice(n.indexOf(x),1),x.children.forEach(d),x.alias.forEach(d))}else{const x=n.indexOf(C);x>-1&&(n.splice(x,1),C.record.name&&o.delete(C.record.name),C.children.forEach(d),C.alias.forEach(d))}}function g(){return n}function y(C){let x=0;for(;x=0;)x++;n.splice(x,0,C),C.record.name&&!isAliasRecord(C)&&o.set(C.record.name,C)}function b(C,x){let S,w={},_,$;if("name"in C&&C.name){if(S=o.get(C.name),!S)throw createRouterError(1,{location:C});$=S.record.name,w=assign$1(paramsFromLocation(x.params,S.keys.filter(R=>!R.optional).map(R=>R.name)),C.params),_=S.stringify(w)}else if("path"in C)_=C.path,S=n.find(R=>R.re.test(_)),S&&(w=S.parse(_),$=S.record.name);else{if(S=x.name?o.get(x.name):n.find(R=>R.re.test(x.path)),!S)throw createRouterError(1,{location:C,currentLocation:x});$=S.record.name,w=assign$1({},x.params,C.params),_=S.stringify(w)}const B=[];let I=S;for(;I;)B.unshift(I.record),I=I.parent;return{name:$,path:_,params:w,matched:B,meta:mergeMetaFields(B)}}return t.forEach(C=>l(C)),{addRoute:l,resolve:b,removeRoute:d,getRoutes:g,getRecordMatcher:s}}function paramsFromLocation(t,r){const n={};for(const o of r)o in t&&(n[o]=t[o]);return n}function normalizeRouteRecord(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:normalizeRecordProps(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||{}:{default:t.component}}}function normalizeRecordProps(t){const r={},n=t.props||!1;if("component"in t)r.default=n;else for(const o in t.components)r[o]=typeof n=="boolean"?n:n[o];return r}function isAliasRecord(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function mergeMetaFields(t){return t.reduce((r,n)=>assign$1(r,n.meta),{})}function mergeOptions(t,r){const n={};for(const o in t)n[o]=o in r?r[o]:t[o];return n}const 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(t){return encodeURI(""+t).replace(ENC_PIPE_RE,"|").replace(ENC_BRACKET_OPEN_RE,"[").replace(ENC_BRACKET_CLOSE_RE,"]")}function encodeHash(t){return commonEncode(t).replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryValue(t){return commonEncode(t).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(t){return encodeQueryValue(t).replace(EQUAL_RE,"%3D")}function encodePath(t){return commonEncode(t).replace(HASH_RE,"%23").replace(IM_RE,"%3F")}function encodeParam(t){return t==null?"":encodePath(t).replace(SLASH_RE,"%2F")}function decode$1(t){try{return decodeURIComponent(""+t)}catch(r){}return""+t}function parseQuery(t){const r={};if(t===""||t==="?")return r;const o=(t[0]==="?"?t.slice(1):t).split("&");for(let s=0;sl&&encodeQueryValue(l)):[o&&encodeQueryValue(o)]).forEach(l=>{l!==void 0&&(r+=(r.length?"&":"")+n,l!=null&&(r+="="+l))})}return r}function normalizeQuery(t){const r={};for(const n in t){const o=t[n];o!==void 0&&(r[n]=Array.isArray(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return r}function useCallbacks(){let t=[];function r(o){return t.push(o),()=>{const s=t.indexOf(o);s>-1&&t.splice(s,1)}}function n(){t=[]}return{add:r,list:()=>t,reset:n}}function guardToPromiseFn(t,r,n,o,s){const l=o&&(o.enterCallbacks[s]=o.enterCallbacks[s]||[]);return()=>new Promise((d,g)=>{const y=x=>{x===!1?g(createRouterError(4,{from:n,to:r})):x instanceof Error?g(x):isRouteLocation(x)?g(createRouterError(2,{from:r,to:x})):(l&&o.enterCallbacks[s]===l&&typeof x=="function"&&l.push(x),d())},b=t.call(o&&o.instances[s],r,n,y);let C=Promise.resolve(b);t.length<3&&(C=C.then(y)),C.catch(x=>g(x))})}function extractComponentsGuards(t,r,n,o){const s=[];for(const l of t)for(const d in l.components){let g=l.components[d];if(!(r!=="beforeRouteEnter"&&!l.instances[d]))if(isRouteComponent(g)){const b=(g.__vccOpts||g)[r];b&&s.push(guardToPromiseFn(b,n,o,l,d))}else{let y=g();s.push(()=>y.then(b=>{if(!b)return Promise.reject(new Error(`Couldn't resolve component "${d}" at "${l.path}"`));const C=isESModule(b)?b.default:b;l.components[d]=C;const S=(C.__vccOpts||C)[r];return S&&guardToPromiseFn(S,n,o,l,d)()}))}}return s}function isRouteComponent(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function useLink(t){const r=inject(routerKey),n=inject(routeLocationKey),o=computed(()=>r.resolve(unref(t.to))),s=computed(()=>{const{matched:y}=o.value,{length:b}=y,C=y[b-1],x=n.matched;if(!C||!x.length)return-1;const S=x.findIndex(isSameRouteRecord.bind(null,C));if(S>-1)return S;const w=getOriginalPath(y[b-2]);return b>1&&getOriginalPath(C)===w&&x[x.length-1].path!==w?x.findIndex(isSameRouteRecord.bind(null,y[b-2])):S}),l=computed(()=>s.value>-1&&includesParams(n.params,o.value.params)),d=computed(()=>s.value>-1&&s.value===n.matched.length-1&&isSameRouteLocationParams(n.params,o.value.params));function g(y={}){return guardEvent(y)?r[unref(t.replace)?"replace":"push"](unref(t.to)).catch(noop$1):Promise.resolve()}return{route:o,href:computed(()=>o.value.href),isActive:l,isExactActive:d,navigate:g}}const RouterLinkImpl=defineComponent({name:"RouterLink",props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink,setup(t,{slots:r}){const n=reactive(useLink(t)),{options:o}=inject(routerKey),s=computed(()=>({[getLinkClass(t.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[getLinkClass(t.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const l=r.default&&r.default(n);return t.custom?l:h("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},l)}}}),RouterLink=RouterLinkImpl;function guardEvent(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const r=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(r))return}return t.preventDefault&&t.preventDefault(),!0}}function includesParams(t,r){for(const n in r){const o=r[n],s=t[n];if(typeof o=="string"){if(o!==s)return!1}else if(!Array.isArray(s)||s.length!==o.length||o.some((l,d)=>l!==s[d]))return!1}return!0}function getOriginalPath(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const getLinkClass=(t,r,n)=>t!=null?t:r!=null?r:n,RouterViewImpl=defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},setup(t,{attrs:r,slots:n}){const o=inject(routerViewLocationKey),s=computed(()=>t.route||o.value),l=inject(viewDepthKey,0),d=computed(()=>s.value.matched[l]);provide(viewDepthKey,l+1),provide(matchedRouteKey,d),provide(routerViewLocationKey,s);const g=ref();return watch(()=>[g.value,d.value,t.name],([y,b,C],[x,S,w])=>{b&&(b.instances[C]=y,S&&S!==b&&y&&y===x&&(b.leaveGuards.size||(b.leaveGuards=S.leaveGuards),b.updateGuards.size||(b.updateGuards=S.updateGuards))),y&&b&&(!S||!isSameRouteRecord(b,S)||!x)&&(b.enterCallbacks[C]||[]).forEach(_=>_(y))},{flush:"post"}),()=>{const y=s.value,b=d.value,C=b&&b.components[t.name],x=t.name;if(!C)return normalizeSlot(n.default,{Component:C,route:y});const S=b.props[t.name],w=S?S===!0?y.params:typeof S=="function"?S(y):S:null,$=h(C,assign$1({},w,r,{onVnodeUnmounted:B=>{B.component.isUnmounted&&(b.instances[x]=null)},ref:g}));return normalizeSlot(n.default,{Component:$,route:y})||$}}});function normalizeSlot(t,r){if(!t)return null;const n=t(r);return n.length===1?n[0]:n}const RouterView=RouterViewImpl;function createRouter(t){const r=createRouterMatcher(t.routes,t),n=t.parseQuery||parseQuery,o=t.stringifyQuery||stringifyQuery,s=t.history,l=useCallbacks(),d=useCallbacks(),g=useCallbacks(),y=shallowRef(START_LOCATION_NORMALIZED);let b=START_LOCATION_NORMALIZED;isBrowser&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const C=applyToParams.bind(null,Ae=>""+Ae),x=applyToParams.bind(null,encodeParam),S=applyToParams.bind(null,decode$1);function w(Ae,xe){let ve,Se;return isRouteName(Ae)?(ve=r.getRecordMatcher(Ae),Se=xe):Se=Ae,r.addRoute(Se,ve)}function _(Ae){const xe=r.getRecordMatcher(Ae);xe&&r.removeRoute(xe)}function $(){return r.getRoutes().map(Ae=>Ae.record)}function B(Ae){return!!r.getRecordMatcher(Ae)}function I(Ae,xe){if(xe=assign$1({},xe||y.value),typeof Ae=="string"){const Ee=parseURL(n,Ae,xe.path),ee=r.resolve({path:Ee.path},xe),q=s.createHref(Ee.fullPath);return assign$1(Ee,ee,{params:S(ee.params),hash:decode$1(Ee.hash),redirectedFrom:void 0,href:q})}let ve;if("path"in Ae)ve=assign$1({},Ae,{path:parseURL(n,Ae.path,xe.path).path});else{const Ee=assign$1({},Ae.params);for(const ee in Ee)Ee[ee]==null&&delete Ee[ee];ve=assign$1({},Ae,{params:x(Ae.params)}),xe.params=x(xe.params)}const Se=r.resolve(ve,xe),Pe=Ae.hash||"";Se.params=C(S(Se.params));const we=stringifyURL(o,assign$1({},Ae,{hash:encodeHash(Pe),path:Se.path})),Ie=s.createHref(we);return assign$1({fullPath:we,hash:Pe,query:o===stringifyQuery?normalizeQuery(Ae.query):Ae.query||{}},Se,{redirectedFrom:void 0,href:Ie})}function R(Ae){return typeof Ae=="string"?parseURL(n,Ae,y.value.path):assign$1({},Ae)}function M(Ae,xe){if(b!==Ae)return createRouterError(8,{from:xe,to:Ae})}function P(Ae){return N(Ae)}function D(Ae){return P(assign$1(R(Ae),{replace:!0}))}function O(Ae){const xe=Ae.matched[Ae.matched.length-1];if(xe&&xe.redirect){const{redirect:ve}=xe;let Se=typeof ve=="function"?ve(Ae):ve;return typeof Se=="string"&&(Se=Se.includes("?")||Se.includes("#")?Se=R(Se):{path:Se},Se.params={}),assign$1({query:Ae.query,hash:Ae.hash,params:Ae.params},Se)}}function N(Ae,xe){const ve=b=I(Ae),Se=y.value,Pe=Ae.state,we=Ae.force,Ie=Ae.replace===!0,Ee=O(ve);if(Ee)return N(assign$1(R(Ee),{state:Pe,force:we,replace:Ie}),xe||ve);const ee=ve;ee.redirectedFrom=xe;let q;return!we&&isSameRouteLocation(o,Se,ve)&&(q=createRouterError(16,{to:ee,from:Se}),oe(Se,Se,!0,!1)),(q?Promise.resolve(q):Q(ee,Se)).catch(le=>isNavigationFailure(le)?le:re(le,ee,Se)).then(le=>{if(le){if(isNavigationFailure(le,2))return N(assign$1(R(le.to),{state:Pe,force:we,replace:Ie}),xe||ee)}else le=K(ee,Se,!0,Ie,Pe);return G(ee,Se,le),le})}function H(Ae,xe){const ve=M(Ae,xe);return ve?Promise.reject(ve):Promise.resolve()}function Q(Ae,xe){let ve;const[Se,Pe,we]=extractChangingRecords(Ae,xe);ve=extractComponentsGuards(Se.reverse(),"beforeRouteLeave",Ae,xe);for(const Ee of Se)Ee.leaveGuards.forEach(ee=>{ve.push(guardToPromiseFn(ee,Ae,xe))});const Ie=H.bind(null,Ae,xe);return ve.push(Ie),runGuardQueue(ve).then(()=>{ve=[];for(const Ee of l.list())ve.push(guardToPromiseFn(Ee,Ae,xe));return ve.push(Ie),runGuardQueue(ve)}).then(()=>{ve=extractComponentsGuards(Pe,"beforeRouteUpdate",Ae,xe);for(const Ee of Pe)Ee.updateGuards.forEach(ee=>{ve.push(guardToPromiseFn(ee,Ae,xe))});return ve.push(Ie),runGuardQueue(ve)}).then(()=>{ve=[];for(const Ee of Ae.matched)if(Ee.beforeEnter&&!xe.matched.includes(Ee))if(Array.isArray(Ee.beforeEnter))for(const ee of Ee.beforeEnter)ve.push(guardToPromiseFn(ee,Ae,xe));else ve.push(guardToPromiseFn(Ee.beforeEnter,Ae,xe));return ve.push(Ie),runGuardQueue(ve)}).then(()=>(Ae.matched.forEach(Ee=>Ee.enterCallbacks={}),ve=extractComponentsGuards(we,"beforeRouteEnter",Ae,xe),ve.push(Ie),runGuardQueue(ve))).then(()=>{ve=[];for(const Ee of d.list())ve.push(guardToPromiseFn(Ee,Ae,xe));return ve.push(Ie),runGuardQueue(ve)}).catch(Ee=>isNavigationFailure(Ee,8)?Ee:Promise.reject(Ee))}function G(Ae,xe,ve){for(const Se of g.list())Se(Ae,xe,ve)}function K(Ae,xe,ve,Se,Pe){const we=M(Ae,xe);if(we)return we;const Ie=xe===START_LOCATION_NORMALIZED,Ee=isBrowser?history.state:{};ve&&(Se||Ie?s.replace(Ae.fullPath,assign$1({scroll:Ie&&Ee&&Ee.scroll},Pe)):s.push(Ae.fullPath,Pe)),y.value=Ae,oe(Ae,xe,ve,Ie),ae()}let W;function j(){W=s.listen((Ae,xe,ve)=>{const Se=I(Ae),Pe=O(Se);if(Pe){N(assign$1(Pe,{replace:!0}),Se).catch(noop$1);return}b=Se;const we=y.value;isBrowser&&saveScrollPosition(getScrollKey(we.fullPath,ve.delta),computeScrollPosition()),Q(Se,we).catch(Ie=>isNavigationFailure(Ie,12)?Ie:isNavigationFailure(Ie,2)?(N(Ie.to,Se).then(Ee=>{isNavigationFailure(Ee,20)&&!ve.delta&&ve.type===NavigationType.pop&&s.go(-1,!1)}).catch(noop$1),Promise.reject()):(ve.delta&&s.go(-ve.delta,!1),re(Ie,Se,we))).then(Ie=>{Ie=Ie||K(Se,we,!1),Ie&&(ve.delta?s.go(-ve.delta,!1):ve.type===NavigationType.pop&&isNavigationFailure(Ie,20)&&s.go(-1,!1)),G(Se,we,Ie)}).catch(noop$1)})}let Y=useCallbacks(),J=useCallbacks(),X;function re(Ae,xe,ve){ae(Ae);const Se=J.list();return Se.length?Se.forEach(Pe=>Pe(Ae,xe,ve)):console.error(Ae),Promise.reject(Ae)}function te(){return X&&y.value!==START_LOCATION_NORMALIZED?Promise.resolve():new Promise((Ae,xe)=>{Y.add([Ae,xe])})}function ae(Ae){X||(X=!0,j(),Y.list().forEach(([xe,ve])=>Ae?ve(Ae):xe()),Y.reset())}function oe(Ae,xe,ve,Se){const{scrollBehavior:Pe}=t;if(!isBrowser||!Pe)return Promise.resolve();const we=!ve&&getSavedScrollPosition(getScrollKey(Ae.fullPath,0))||(Se||!ve)&&history.state&&history.state.scroll||null;return nextTick().then(()=>Pe(Ae,xe,we)).then(Ie=>Ie&&scrollToPosition(Ie)).catch(Ie=>re(Ie,Ae,xe))}const ie=Ae=>s.go(Ae);let ce;const fe=new Set;return{currentRoute:y,addRoute:w,removeRoute:_,hasRoute:B,getRoutes:$,resolve:I,options:t,push:P,replace:D,go:ie,back:()=>ie(-1),forward:()=>ie(1),beforeEach:l.add,beforeResolve:d.add,afterEach:g.add,onError:J.add,isReady:te,install(Ae){const xe=this;Ae.component("RouterLink",RouterLink),Ae.component("RouterView",RouterView),Ae.config.globalProperties.$router=xe,Object.defineProperty(Ae.config.globalProperties,"$route",{enumerable:!0,get:()=>unref(y)}),isBrowser&&!ce&&y.value===START_LOCATION_NORMALIZED&&(ce=!0,P(s.location).catch(Pe=>{}));const ve={};for(const Pe in START_LOCATION_NORMALIZED)ve[Pe]=computed(()=>y.value[Pe]);Ae.provide(routerKey,xe),Ae.provide(routeLocationKey,reactive(ve)),Ae.provide(routerViewLocationKey,y);const Se=Ae.unmount;fe.add(Ae),Ae.unmount=function(){fe.delete(Ae),fe.size<1&&(b=START_LOCATION_NORMALIZED,W&&W(),y.value=START_LOCATION_NORMALIZED,ce=!1,X=!1),Se()}}}}function runGuardQueue(t){return t.reduce((r,n)=>r.then(()=>n()),Promise.resolve())}function extractChangingRecords(t,r){const n=[],o=[],s=[],l=Math.max(r.matched.length,t.matched.length);for(let d=0;disSameRouteRecord(b,g))?o.push(g):n.push(g));const y=t.matched[d];y&&(r.matched.find(b=>isSameRouteRecord(b,y))||s.push(y))}return[n,o,s]}function useRouter(){return inject(routerKey)}function useRoute(){return inject(routeLocationKey)}var ChartEnum=(t=>(t.CHART_HOME="/chart/home/:id(.*)*",t.CHART_HOME_NAME="ChartHome",t))(ChartEnum||{}),PreviewEnum=(t=>(t.CHART_PREVIEW="/chart/preview/:id(.*)*",t.CHART_PREVIEW_NAME="ChartPreview",t))(PreviewEnum||{}),EditEnum=(t=>(t.CHART_EDIT="/chart/edit/:id(.*)*",t.CHART_EDIT_NAME="ChartEdit",t))(EditEnum||{}),PageEnum=(t=>(t.BASE_LOGIN="/login",t.BASE_LOGIN_NAME="Login",t.REDIRECT="/redirect",t.REDIRECT_NAME="Redirect",t.RELOAD="/reload",t.RELOAD_NAME="Reload",t.BASE_HOME="/project",t.BASE_HOME_NAME="Project",t.BASE_HOME_ITEMS="/project/items",t.BASE_HOME_ITEMS_NAME="Project-Items",t.BASE_HOME_TEMPLATE="/project/my-template",t.BASE_HOME_TEMPLATE_NAME="Project-My-Template",t.BASE_HOME_TEMPLATE_MARKET="/project/template-market",t.BASE_HOME_TEMPLATE_MARKET_NAME="Project-Template-Market",t.ERROR_PAGE_NAME_403="ErrorPage403",t.ERROR_PAGE_NAME_404="ErrorPage404",t.ERROR_PAGE_NAME_500="ErrorPage500",t))(PageEnum||{});const ErrorPageNameMap=new Map([[ResultEnum.NOT_FOUND,"ErrorPage404"],[ResultEnum.SERVER_FORBIDDEN,"ErrorPage403"],[ResultEnum.SERVER_ERROR,"ErrorPage500"]]),docPath="https://www.mtruning.club/",giteeSourceCodePath="https://gitee.com/dromara/go-view";var StorageEnum=(t=>(t.GO_SYSTEM_SETTING_STORE="GO_SYSTEM_SETTING",t.GO_ACCESS_TOKEN_STORE="GO_ACCESS_TOKEN",t.GO_LOGIN_INFO_STORE="GO_LOGIN_INFO",t.GO_LANG_STORE="GO_LANG",t.GO_DESIGN_STORE="GO_DESIGN",t.GO_CHART_LAYOUT_STORE="GO_CHART_LAYOUT",t.GO_CHART_STORAGE_LIST="GO_CHART_STORAGE_LIST",t))(StorageEnum||{});const setLocalStorage=(t,r)=>{try{window.localStorage.setItem(t,JSONStringify(r))}catch(n){return!1}},getLocalStorage=t=>{const r=window.localStorage.getItem(t);try{return r&&JSONParse(r)}catch(n){return r}},setSessionStorage=(t,r)=>{try{window.sessionStorage.setItem(t,JSONStringify(r))}catch(n){return!1}},getSessionStorage=t=>{const r=window.sessionStorage.getItem(t);try{return r&&JSONParse(r)}catch(n){return r}},scriptRel="modulepreload",seen={},base$1="/",__vitePreload=function t(r,n){return!n||n.length===0?r():Promise.all(n.map(o=>{if(o=`${base$1}${o}`,o in seen)return;seen[o]=!0;const s=o.endsWith(".css"),l=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${o}"]${l}`))return;const d=document.createElement("link");if(d.rel=s?"stylesheet":scriptRel,s||(d.as="script",d.crossOrigin=""),d.href=o,document.head.appendChild(d),s)return new Promise((g,y)=>{d.addEventListener("load",g),d.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>r())},ErrorPage404=()=>__vitePreload(()=>import("./404-229ccc7d.js"),["static/js/404-229ccc7d.js","static/css/404-0be90bca.css","static/js/404-c00f16ad.js"]),ErrorPage403=()=>__vitePreload(()=>import("./403-36b26796.js"),["static/js/403-36b26796.js","static/css/403-899212b4.css","static/js/403-24e394e4.js"]),ErrorPage500=()=>__vitePreload(()=>import("./500-010fdb52.js"),["static/js/500-010fdb52.js","static/css/500-db4beb47.css","static/js/500-dc262da5.js"]),Layout=()=>__vitePreload(()=>import("./index-8abbc889.js"),[]);var index_vue_vue_type_style_index_0_scoped_true_lang$2="",_export_sfc$1=(t,r)=>{const n=t.__vccOpts||t;for(const[o,s]of r)n[o]=s;return n};const _hoisted_1$5={class:"go-reload"},_sfc_main$8=defineComponent({__name:"index",setup(t){return onMounted(()=>{router.go(-1)}),(r,n)=>(openBlock(),createElementBlock("div",_hoisted_1$5))}});var GoReload=_export_sfc$1(_sfc_main$8,[["__scopeId","data-v-2f9d5172"]]);const LoginRoute={path:"/login",name:"Login",component:()=>__vitePreload(()=>import("./index-b44a23f5.js"),["static/js/index-b44a23f5.js","static/css/index-1d4e0153.css","static/js/moke-20211219181327-c0abf229.js","static/js/table_scrollboard-e30c6082.js","static/js/icon-ad217b5d.js","static/js/index-78e7607e.js","static/css/index-19141fc2.css"]),meta:{title:"\u767B\u5F55"}},HttpErrorPage=[{path:"/error/404",name:PageEnum.ERROR_PAGE_NAME_404,component:ErrorPage404,meta:{title:PageEnum.ERROR_PAGE_NAME_404}},{path:"/error/403",name:PageEnum.ERROR_PAGE_NAME_403,component:ErrorPage403,meta:{title:PageEnum.ERROR_PAGE_NAME_403}},{path:"/error/500",name:PageEnum.ERROR_PAGE_NAME_500,component:ErrorPage500,meta:{title:PageEnum.ERROR_PAGE_NAME_500}}];PageEnum.ERROR_PAGE_NAME_404;const ReloadRoute={path:PageEnum.RELOAD,name:PageEnum.RELOAD_NAME,component:GoReload,meta:{title:PageEnum.RELOAD_NAME}},RedirectRoute={path:PageEnum.REDIRECT,name:PageEnum.REDIRECT_NAME,component:Layout,meta:{title:PageEnum.REDIRECT_NAME},children:[{path:"/redirect/:path(.*)",name:PageEnum.REDIRECT_NAME,component:()=>__vitePreload(()=>import("./index-3fa44b11.js"),[]),meta:{title:PageEnum.REDIRECT_NAME,hideBreadcrumb:!0}}]},importPath$3={"PageEnum.BASE_HOME_NAME":()=>__vitePreload(()=>import("./index-4955a6c6.js"),["static/js/index-4955a6c6.js","static/css/index-d450a283.css","static/js/icon-ad217b5d.js","static/js/index-792beaeb.js","static/js/index-78e7607e.js","static/css/index-19141fc2.css"]),"PageEnum.BASE_HOME_ITEMS_NAME":()=>__vitePreload(()=>import("./index-fd82d871.js"),["static/js/index-fd82d871.js","static/css/index-fed8a015.css","static/js/moke-20211219181327-c0abf229.js","static/js/403-24e394e4.js","static/js/404-c00f16ad.js","static/js/500-dc262da5.js","static/js/table_scrollboard-e30c6082.js","static/js/icon-ad217b5d.js","static/js/index-b0a599d6.js","static/css/index-1fb675e6.css","static/js/plugin-294c8194.js"]),"PageEnum.BASE_HOME_TEMPLATE_NAME":()=>__vitePreload(()=>import("./index-16b1e64a.js"),["static/js/index-16b1e64a.js","static/css/index-745cd4ba.css"]),"PageEnum.BASE_HOME_TEMPLATE_MARKET_NAME":()=>__vitePreload(()=>import("./index-bfcad0e4.js"),["static/js/index-bfcad0e4.js","static/css/index-86e08230.css"])},projectRoutes={path:PageEnum.BASE_HOME,name:PageEnum.BASE_HOME_NAME,component:importPath$3["PageEnum.BASE_HOME_NAME"],redirect:PageEnum.BASE_HOME_ITEMS,meta:{title:"\u9879\u76EE",isRoot:!0},children:[{path:PageEnum.BASE_HOME_ITEMS,name:PageEnum.BASE_HOME_ITEMS_NAME,component:importPath$3["PageEnum.BASE_HOME_ITEMS_NAME"],meta:{title:"\u6211\u7684\u9879\u76EE"}},{path:PageEnum.BASE_HOME_TEMPLATE,name:PageEnum.BASE_HOME_TEMPLATE_NAME,component:importPath$3["PageEnum.BASE_HOME_TEMPLATE_NAME"],meta:{title:"\u6211\u7684\u6A21\u677F"}},{path:PageEnum.BASE_HOME_TEMPLATE_MARKET,name:PageEnum.BASE_HOME_TEMPLATE_MARKET_NAME,component:importPath$3["PageEnum.BASE_HOME_TEMPLATE_MARKET_NAME"],meta:{title:"\u6A21\u677F\u5E02\u573A"}}]},importPath$2={"ChartEnum.CHART_HOME_NAME":()=>__vitePreload(()=>import("./index-f6fe8ee6.js").then(function(t){return t.i}),["static/js/index-f6fe8ee6.js","static/css/index-3cd64027.css","static/js/index-792beaeb.js","static/js/index-78e7607e.js","static/css/index-19141fc2.css","static/js/chartEditStore-f7afc85d.js","static/js/plugin-294c8194.js","static/js/icon-ad217b5d.js"])},chartRoutes$2={path:ChartEnum.CHART_HOME,name:ChartEnum.CHART_HOME_NAME,component:importPath$2["ChartEnum.CHART_HOME_NAME"],meta:{title:"\u5DE5\u4F5C\u7A7A\u95F4",isRoot:!0,noKeepAlive:!0}},importPath$1={"PreviewEnum.CHART_PREVIEW_NAME":()=>__vitePreload(()=>import("./wrapper-ac82a695.js"),["static/js/wrapper-ac82a695.js","static/css/wrapper-bafb7342.css","static/js/storage-dd1daeef.js","static/js/chartEditStore-f7afc85d.js","static/js/plugin-294c8194.js","static/js/icon-ad217b5d.js","static/js/index-39e221e4.js","static/css/index-7a38fb18.css","static/js/table_scrollboard-e30c6082.js","static/js/SizeSetting.vue_vue_type_style_index_0_scoped_true_lang-5d434763.js","static/css/SizeSetting.vue_vue_type_style_index_0_scoped_true_lang-030d6af2.css","static/js/useTargetData.hook-c06d92db.js"])},chartRoutes$1={path:PreviewEnum.CHART_PREVIEW,name:PreviewEnum.CHART_PREVIEW_NAME,component:importPath$1["PreviewEnum.CHART_PREVIEW_NAME"],meta:{title:"\u9884\u89C8",isRoot:!0}},importPath={[EditEnum.CHART_EDIT_NAME]:()=>__vitePreload(()=>import("./index-db58db98.js").then(function(t){return t.i}),["static/js/index-db58db98.js","static/css/index-c2e59b99.css","static/js/editorWorker-a0599278.js","static/js/storage-dd1daeef.js","static/js/icon-ad217b5d.js"])},chartRoutes={path:EditEnum.CHART_EDIT,name:EditEnum.CHART_EDIT_NAME,component:importPath[EditEnum.CHART_EDIT_NAME],meta:{title:"\u7F16\u8F91",isRoot:!0}};var modules={projectRoutes,chartRoutes:chartRoutes$2,previewRoutes:chartRoutes$1,editRoutes:chartRoutes};const RootRoute=[{path:"/",name:"Root",redirect:PageEnum.BASE_HOME,component:Layout,meta:{title:"Root"},children:[...HttpErrorPage,modules.projectRoutes,modules.chartRoutes,modules.previewRoutes,modules.editRoutes]}],constantRouter=[LoginRoute,...RootRoute,RedirectRoute,ReloadRoute],router=createRouter({history:createWebHashHistory(""),routes:constantRouter,strict:!0});function setupRouter(t){t.use(router)}const routerTurnByName=(t,r,n)=>{if(n){const o=fetchPathByName(t,"href");openNewWindow(o);return}if(r){router.replace({name:t});return}router.push({name:t})},fetchPathByName=(t,r)=>{try{const n=router.resolve({name:t});return r?n[r]:n}catch(n){window.$message.warning("\u67E5\u8BE2\u8DEF\u7531\u4FE1\u606F\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01")}},routerTurnByPath=(t,r,n,o)=>{let s="";if(r!=null&&r.length&&(s=`${t}/${r.join("/")}`),o)return openNewWindow(s);if(n){router.replace({path:s});return}router.push({path:s})},redirectErrorPage=t=>{if(!t)return!1;const r=ErrorPageNameMap.get(t);if(!r)return!1;routerTurnByName(r)},reloadRoutePage=()=>{routerTurnByName(PageEnum.RELOAD_NAME)},openNewWindow=t=>window.open(t,"_blank"),openDoc=()=>{openNewWindow(docPath)},openGiteeSourceCode=()=>{openNewWindow(giteeSourceCodePath)},isPreview=()=>document.location.hash.includes("preview"),fetchRouteParamsLocation=()=>{try{return document.location.hash.split("/").pop()||""}catch(t){return window.$message.warning("\u67E5\u8BE2\u8DEF\u7531\u4FE1\u606F\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01"),""}};var colorString$1={exports:{}},colorName={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},simpleSwizzle={exports:{}},isArrayish$1=function t(r){return!r||typeof r=="string"?!1:r instanceof Array||Array.isArray(r)||r.length>=0&&(r.splice instanceof Function||Object.getOwnPropertyDescriptor(r,r.length-1)&&r.constructor.name!=="String")},isArrayish=isArrayish$1,concat$1=Array.prototype.concat,slice$1=Array.prototype.slice,swizzle$1=simpleSwizzle.exports=function t(r){for(var n=[],o=0,s=r.length;o=4&&t[3]!==1&&(r=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+r+")"};cs.to.keyword=function(t){return reverseNames[t.slice(0,3)]};function clamp$1(t,r,n){return Math.min(Math.max(r,t),n)}function hexDouble(t){var r=Math.round(t).toString(16).toUpperCase();return r.length<2?"0"+r:r}const cssKeywords=colorName,reverseKeywords={};for(const t of Object.keys(cssKeywords))reverseKeywords[cssKeywords[t]]=t;const convert$2={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var conversions$2=convert$2;for(const t of Object.keys(convert$2)){if(!("channels"in convert$2[t]))throw new Error("missing channels property: "+t);if(!("labels"in convert$2[t]))throw new Error("missing channel labels property: "+t);if(convert$2[t].labels.length!==convert$2[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:r,labels:n}=convert$2[t];delete convert$2[t].channels,delete convert$2[t].labels,Object.defineProperty(convert$2[t],"channels",{value:r}),Object.defineProperty(convert$2[t],"labels",{value:n})}convert$2.rgb.hsl=function(t){const r=t[0]/255,n=t[1]/255,o=t[2]/255,s=Math.min(r,n,o),l=Math.max(r,n,o),d=l-s;let g,y;l===s?g=0:r===l?g=(n-o)/d:n===l?g=2+(o-r)/d:o===l&&(g=4+(r-n)/d),g=Math.min(g*60,360),g<0&&(g+=360);const b=(s+l)/2;return l===s?y=0:b<=.5?y=d/(l+s):y=d/(2-l-s),[g,y*100,b*100]};convert$2.rgb.hsv=function(t){let r,n,o,s,l;const d=t[0]/255,g=t[1]/255,y=t[2]/255,b=Math.max(d,g,y),C=b-Math.min(d,g,y),x=function(S){return(b-S)/6/C+1/2};return C===0?(s=0,l=0):(l=C/b,r=x(d),n=x(g),o=x(y),d===b?s=o-n:g===b?s=1/3+r-o:y===b&&(s=2/3+n-r),s<0?s+=1:s>1&&(s-=1)),[s*360,l*100,b*100]};convert$2.rgb.hwb=function(t){const r=t[0],n=t[1];let o=t[2];const s=convert$2.rgb.hsl(t)[0],l=1/255*Math.min(r,Math.min(n,o));return o=1-1/255*Math.max(r,Math.max(n,o)),[s,l*100,o*100]};convert$2.rgb.cmyk=function(t){const r=t[0]/255,n=t[1]/255,o=t[2]/255,s=Math.min(1-r,1-n,1-o),l=(1-r-s)/(1-s)||0,d=(1-n-s)/(1-s)||0,g=(1-o-s)/(1-s)||0;return[l*100,d*100,g*100,s*100]};function comparativeDistance(t,r){return Ct(t[0]-r[0],2)+Ct(t[1]-r[1],2)+Ct(t[2]-r[2],2)}convert$2.rgb.keyword=function(t){const r=reverseKeywords[t];if(r)return r;let n=1/0,o;for(const s of Object.keys(cssKeywords)){const l=cssKeywords[s],d=comparativeDistance(t,l);d.04045?Ct((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Ct((n+.055)/1.055,2.4):n/12.92,o=o>.04045?Ct((o+.055)/1.055,2.4):o/12.92;const s=r*.4124+n*.3576+o*.1805,l=r*.2126+n*.7152+o*.0722,d=r*.0193+n*.1192+o*.9505;return[s*100,l*100,d*100]};convert$2.rgb.lab=function(t){const r=convert$2.rgb.xyz(t);let n=r[0],o=r[1],s=r[2];n/=95.047,o/=100,s/=108.883,n=n>.008856?Ct(n,1/3):7.787*n+16/116,o=o>.008856?Ct(o,1/3):7.787*o+16/116,s=s>.008856?Ct(s,1/3):7.787*s+16/116;const l=116*o-16,d=500*(n-o),g=200*(o-s);return[l,d,g]};convert$2.hsl.rgb=function(t){const r=t[0]/360,n=t[1]/100,o=t[2]/100;let s,l,d;if(n===0)return d=o*255,[d,d,d];o<.5?s=o*(1+n):s=o+n-o*n;const g=2*o-s,y=[0,0,0];for(let b=0;b<3;b++)l=r+1/3*-(b-1),l<0&&l++,l>1&&l--,6*l<1?d=g+(s-g)*6*l:2*l<1?d=s:3*l<2?d=g+(s-g)*(2/3-l)*6:d=g,y[b]=d*255;return y};convert$2.hsl.hsv=function(t){const r=t[0];let n=t[1]/100,o=t[2]/100,s=n;const l=Math.max(o,.01);o*=2,n*=o<=1?o:2-o,s*=l<=1?l:2-l;const d=(o+n)/2,g=o===0?2*s/(l+s):2*n/(o+n);return[r,g*100,d*100]};convert$2.hsv.rgb=function(t){const r=t[0]/60,n=t[1]/100;let o=t[2]/100;const s=Math.floor(r)%6,l=r-Math.floor(r),d=255*o*(1-n),g=255*o*(1-n*l),y=255*o*(1-n*(1-l));switch(o*=255,s){case 0:return[o,y,d];case 1:return[g,o,d];case 2:return[d,o,y];case 3:return[d,g,o];case 4:return[y,d,o];case 5:return[o,d,g]}};convert$2.hsv.hsl=function(t){const r=t[0],n=t[1]/100,o=t[2]/100,s=Math.max(o,.01);let l,d;d=(2-n)*o;const g=(2-n)*s;return l=n*s,l/=g<=1?g:2-g,l=l||0,d/=2,[r,l*100,d*100]};convert$2.hwb.rgb=function(t){const r=t[0]/360;let n=t[1]/100,o=t[2]/100;const s=n+o;let l;s>1&&(n/=s,o/=s);const d=Math.floor(6*r),g=1-o;l=6*r-d,(d&1)!==0&&(l=1-l);const y=n+l*(g-n);let b,C,x;switch(d){default:case 6:case 0:b=g,C=y,x=n;break;case 1:b=y,C=g,x=n;break;case 2:b=n,C=g,x=y;break;case 3:b=n,C=y,x=g;break;case 4:b=y,C=n,x=g;break;case 5:b=g,C=n,x=y;break}return[b*255,C*255,x*255]};convert$2.cmyk.rgb=function(t){const r=t[0]/100,n=t[1]/100,o=t[2]/100,s=t[3]/100,l=1-Math.min(1,r*(1-s)+s),d=1-Math.min(1,n*(1-s)+s),g=1-Math.min(1,o*(1-s)+s);return[l*255,d*255,g*255]};convert$2.xyz.rgb=function(t){const r=t[0]/100,n=t[1]/100,o=t[2]/100;let s,l,d;return s=r*3.2406+n*-1.5372+o*-.4986,l=r*-.9689+n*1.8758+o*.0415,d=r*.0557+n*-.204+o*1.057,s=s>.0031308?1.055*Ct(s,1/2.4)-.055:s*12.92,l=l>.0031308?1.055*Ct(l,1/2.4)-.055:l*12.92,d=d>.0031308?1.055*Ct(d,1/2.4)-.055:d*12.92,s=Math.min(Math.max(0,s),1),l=Math.min(Math.max(0,l),1),d=Math.min(Math.max(0,d),1),[s*255,l*255,d*255]};convert$2.xyz.lab=function(t){let r=t[0],n=t[1],o=t[2];r/=95.047,n/=100,o/=108.883,r=r>.008856?Ct(r,1/3):7.787*r+16/116,n=n>.008856?Ct(n,1/3):7.787*n+16/116,o=o>.008856?Ct(o,1/3):7.787*o+16/116;const s=116*n-16,l=500*(r-n),d=200*(n-o);return[s,l,d]};convert$2.lab.xyz=function(t){const r=t[0],n=t[1],o=t[2];let s,l,d;l=(r+16)/116,s=n/500+l,d=l-o/200;const g=Ct(l,3),y=Ct(s,3),b=Ct(d,3);return l=g>.008856?g:(l-16/116)/7.787,s=y>.008856?y:(s-16/116)/7.787,d=b>.008856?b:(d-16/116)/7.787,s*=95.047,l*=100,d*=108.883,[s,l,d]};convert$2.lab.lch=function(t){const r=t[0],n=t[1],o=t[2];let s;s=Math.atan2(o,n)*360/2/Math.PI,s<0&&(s+=360);const d=Math.sqrt(n*n+o*o);return[r,d,s]};convert$2.lch.lab=function(t){const r=t[0],n=t[1],s=t[2]/360*2*Math.PI,l=n*Math.cos(s),d=n*Math.sin(s);return[r,l,d]};convert$2.rgb.ansi16=function(t,r=null){const[n,o,s]=t;let l=r===null?convert$2.rgb.hsv(t)[2]:r;if(l=Math.round(l/50),l===0)return 30;let d=30+(Math.round(s/255)<<2|Math.round(o/255)<<1|Math.round(n/255));return l===2&&(d+=60),d};convert$2.hsv.ansi16=function(t){return convert$2.rgb.ansi16(convert$2.hsv.rgb(t),t[2])};convert$2.rgb.ansi256=function(t){const r=t[0],n=t[1],o=t[2];return r===n&&n===o?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(o/255*5)};convert$2.ansi16.rgb=function(t){let r=t%10;if(r===0||r===7)return t>50&&(r+=3.5),r=r/10.5*255,[r,r,r];const n=(~~(t>50)+1)*.5,o=(r&1)*n*255,s=(r>>1&1)*n*255,l=(r>>2&1)*n*255;return[o,s,l]};convert$2.ansi256.rgb=function(t){if(t>=232){const l=(t-232)*10+8;return[l,l,l]}t-=16;let r;const n=Math.floor(t/36)/5*255,o=Math.floor((r=t%36)/6)/5*255,s=r%6/5*255;return[n,o,s]};convert$2.rgb.hex=function(t){const n=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};convert$2.hex.rgb=function(t){const r=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!r)return[0,0,0];let n=r[0];r[0].length===3&&(n=n.split("").map(g=>g+g).join(""));const o=parseInt(n,16),s=o>>16&255,l=o>>8&255,d=o&255;return[s,l,d]};convert$2.rgb.hcg=function(t){const r=t[0]/255,n=t[1]/255,o=t[2]/255,s=Math.max(Math.max(r,n),o),l=Math.min(Math.min(r,n),o),d=s-l;let g,y;return d<1?g=l/(1-d):g=0,d<=0?y=0:s===r?y=(n-o)/d%6:s===n?y=2+(o-r)/d:y=4+(r-n)/d,y/=6,y%=1,[y*360,d*100,g*100]};convert$2.hsl.hcg=function(t){const r=t[1]/100,n=t[2]/100,o=n<.5?2*r*n:2*r*(1-n);let s=0;return o<1&&(s=(n-.5*o)/(1-o)),[t[0],o*100,s*100]};convert$2.hsv.hcg=function(t){const r=t[1]/100,n=t[2]/100,o=r*n;let s=0;return o<1&&(s=(n-o)/(1-o)),[t[0],o*100,s*100]};convert$2.hcg.rgb=function(t){const r=t[0]/360,n=t[1]/100,o=t[2]/100;if(n===0)return[o*255,o*255,o*255];const s=[0,0,0],l=r%1*6,d=l%1,g=1-d;let y=0;switch(Math.floor(l)){case 0:s[0]=1,s[1]=d,s[2]=0;break;case 1:s[0]=g,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=d;break;case 3:s[0]=0,s[1]=g,s[2]=1;break;case 4:s[0]=d,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=g}return y=(1-n)*o,[(n*s[0]+y)*255,(n*s[1]+y)*255,(n*s[2]+y)*255]};convert$2.hcg.hsv=function(t){const r=t[1]/100,n=t[2]/100,o=r+n*(1-r);let s=0;return o>0&&(s=r/o),[t[0],s*100,o*100]};convert$2.hcg.hsl=function(t){const r=t[1]/100,o=t[2]/100*(1-r)+.5*r;let s=0;return o>0&&o<.5?s=r/(2*o):o>=.5&&o<1&&(s=r/(2*(1-o))),[t[0],s*100,o*100]};convert$2.hcg.hwb=function(t){const r=t[1]/100,n=t[2]/100,o=r+n*(1-r);return[t[0],(o-r)*100,(1-o)*100]};convert$2.hwb.hcg=function(t){const r=t[1]/100,n=t[2]/100,o=1-n,s=o-r;let l=0;return s<1&&(l=(o-s)/(1-s)),[t[0],s*100,l*100]};convert$2.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};convert$2.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};convert$2.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};convert$2.gray.hsl=function(t){return[0,0,t[0]]};convert$2.gray.hsv=convert$2.gray.hsl;convert$2.gray.hwb=function(t){return[0,100,t[0]]};convert$2.gray.cmyk=function(t){return[0,0,0,t[0]]};convert$2.gray.lab=function(t){return[t[0],0,0]};convert$2.gray.hex=function(t){const r=Math.round(t[0]/100*255)&255,o=((r<<16)+(r<<8)+r).toString(16).toUpperCase();return"000000".substring(o.length)+o};convert$2.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};const conversions$1=conversions$2;function buildGraph(){const t={},r=Object.keys(conversions$1);for(let n=r.length,o=0;o1&&(n=o),t(n))};return"conversion"in t&&(r.conversion=t.conversion),r}function wrapRounded(t){const r=function(...n){const o=n[0];if(o==null)return o;o.length>1&&(n=o);const s=t(n);if(typeof s=="object")for(let l=s.length,d=0;d{convert$1[t]={},Object.defineProperty(convert$1[t],"channels",{value:conversions[t].channels}),Object.defineProperty(convert$1[t],"labels",{value:conversions[t].labels});const r=route(t);Object.keys(r).forEach(o=>{const s=r[o];convert$1[t][o]=wrapRounded(s),convert$1[t][o].raw=wrapRaw(s)})});var colorConvert=convert$1;const colorString=colorString$1.exports,convert=colorConvert,skippedModels=["keyword","gray","hex"],hashedModelKeys={};for(const t of Object.keys(convert))hashedModelKeys[[...convert[t].labels].sort().join("")]=t;const limiters={};function Color(t,r){if(!(this instanceof Color))return new Color(t,r);if(r&&r in skippedModels&&(r=null),r&&!(r in convert))throw new Error("Unknown model: "+r);let n,o;if(t==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof Color)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if(typeof t=="string"){const s=colorString.get(t);if(s===null)throw new Error("Unable to parse color from string: "+t);this.model=s.model,o=convert[this.model].channels,this.color=s.value.slice(0,o),this.valpha=typeof s.value[o]=="number"?s.value[o]:1}else if(t.length>0){this.model=r||"rgb",o=convert[this.model].channels;const s=Array.prototype.slice.call(t,0,o);this.color=zeroArray(s,o),this.valpha=typeof t[o]=="number"?t[o]:1}else if(typeof t=="number")this.model="rgb",this.color=[t>>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;const s=Object.keys(t);"alpha"in t&&(s.splice(s.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);const l=s.sort().join("");if(!(l in hashedModelKeys))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=hashedModelKeys[l];const{labels:d}=convert[this.model],g=[];for(n=0;n(t%360+360)%360),saturationl:getset("hsl",1,maxfn(100)),lightness:getset("hsl",2,maxfn(100)),saturationv:getset("hsv",1,maxfn(100)),value:getset("hsv",2,maxfn(100)),chroma:getset("hcg",1,maxfn(100)),gray:getset("hcg",2,maxfn(100)),white:getset("hwb",1,maxfn(100)),wblack:getset("hwb",2,maxfn(100)),cyan:getset("cmyk",0,maxfn(100)),magenta:getset("cmyk",1,maxfn(100)),yellow:getset("cmyk",2,maxfn(100)),black:getset("cmyk",3,maxfn(100)),x:getset("xyz",0,maxfn(95.047)),y:getset("xyz",1,maxfn(100)),z:getset("xyz",2,maxfn(108.833)),l:getset("lab",0,maxfn(100)),a:getset("lab",1),b:getset("lab",2),keyword(t){return t!==void 0?new Color(t):convert[this.model].keyword(this.color)},hex(t){return t!==void 0?new Color(t):colorString.to.hex(this.rgb().round().color)},hexa(t){if(t!==void 0)return new Color(t);const r=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),colorString.to.hex(r)+n},rgbNumber(){const t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity(){const t=this.rgb().color,r=[];for(const[n,o]of t.entries()){const s=o/255;r[n]=s<=.04045?s/12.92:Ct((s+.055)/1.055,2.4)}return .2126*r[0]+.7152*r[1]+.0722*r[2]},contrast(t){const r=this.luminosity(),n=t.luminosity();return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)},level(t){const r=this.contrast(t);return r>=7?"AAA":r>=4.5?"AA":""},isDark(){const t=this.rgb().color;return(t[0]*2126+t[1]*7152+t[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const t=this.rgb();for(let r=0;r<3;r++)t.color[r]=255-t.color[r];return t},lighten(t){const r=this.hsl();return r.color[2]+=r.color[2]*t,r},darken(t){const r=this.hsl();return r.color[2]-=r.color[2]*t,r},saturate(t){const r=this.hsl();return r.color[1]+=r.color[1]*t,r},desaturate(t){const r=this.hsl();return r.color[1]-=r.color[1]*t,r},whiten(t){const r=this.hwb();return r.color[1]+=r.color[1]*t,r},blacken(t){const r=this.hwb();return r.color[2]+=r.color[2]*t,r},grayscale(){const t=this.rgb().color,r=t[0]*.3+t[1]*.59+t[2]*.11;return Color.rgb(r,r,r)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){const r=this.hsl();let n=r.color[0];return n=(n+t)%360,n=n<0?360+n:n,r.color[0]=n,r},mix(t,r){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);const n=t.rgb(),o=this.rgb(),s=r===void 0?.5:r,l=2*s-1,d=n.alpha()-o.alpha(),g=((l*d===-1?l:(l+d)/(1+l*d))+1)/2,y=1-g;return Color.rgb(g*n.red()+y*o.red(),g*n.green()+y*o.green(),g*n.blue()+y*o.blue(),n.alpha()*s+o.alpha()*(1-s))}};for(const t of Object.keys(convert)){if(skippedModels.includes(t))continue;const{channels:r}=convert[t];Color.prototype[t]=function(...n){return this.model===t?new Color(this):n.length>0?new Color(n,t):new Color([...assertArray(convert[this.model][t].raw(this.color)),this.valpha],t)},Color[t]=function(...n){let o=n[0];return typeof o=="number"&&(o=zeroArray(n,r)),new Color(o,t)}}function roundTo(t,r){return Number(t.toFixed(r))}function roundToPlace(t){return function(r){return roundTo(r,t)}}function getset(t,r,n){t=Array.isArray(t)?t:[t];for(const o of t)(limiters[o]||(limiters[o]=[]))[r]=n;return t=t[0],function(o){let s;return o!==void 0?(n&&(o=n(o)),s=this[t](),s.color[r]=o,s):(s=this[t]().color[r],n&&(s=n(s)),s)}}function maxfn(t){return function(r){return Math.max(0,Math.min(t,r))}}function assertArray(t){return Array.isArray(t)?t:[t]}function zeroArray(t,r){for(let n=0;nt.length?`animate__animated animate__${t[0]}`:"",getFilterStyle=t=>{if(!t||!t.filterShow)return{};const{opacity:r,saturate:n,contrast:o,hueRotate:s,brightness:l}=t;return{opacity:r,filter:`saturate(${n}) contrast(${o}) hue-rotate(${s}deg) brightness(${l})`}},getTransformStyle=t=>{const{rotateZ:r,rotateX:n,rotateY:o,skewX:s,skewY:l}=t;return{transform:`rotateZ(${r||0}deg) rotateX(${n||0}deg) rotateY(${o||0}deg) skewX(${s||0}deg) skewY(${l||0}deg)`}},getBlendModeStyle=t=>{if(!t||!t.filterShow)return{};const{blendMode:r}=t;return{"mix-blend-mode":r}};function alpha(t,r=1){return Color$1(t).alpha(r).toString()}function lighten(t,r){return Color$1(t).lighten(r).toString()}const setHtmlTheme=t=>{const r=window.document.documentElement;if(t){r.setAttribute("data-theme",t);return}const n=useDesignStore();r.setAttribute("data-theme",n.themeName)},naive=create$3({components:[NA,NP,NH1,NH2,NH3,NH4,NH5,NCode,NCountdown,NText,NTime,NEllipsis,NMessageProvider,NDialogProvider,NConfigProvider,NGradientText,NInput,NButton,NButtonGroup,NForm,NFormItem,NCheckboxGroup,NCheckbox,NIcon,NImage,NLayout,NLayoutHeader,NLayoutContent,NLayoutFooter,NLayoutSider,NMenu,NBreadcrumb,NBreadcrumbItem,NDropdown,NSpace,NTooltip,NAvatar,NTabs,NTab,NTabPane,NCard,NRow,NCol,NDrawer,NDrawerContent,NDivider,NSwitch,NBadge,NAlert,NElement,NTag,NNotificationProvider,NNumberAnimation,NProgress,NDatePicker,NGrid,NGridItem,NList,NListItem,NThing,NDataTable,NPopover,NPagination,NSlider,NSelect,NRadioGroup,NRadio,NSteps,NStep,NInputGroup,NInputGroupLabel,NResult,NDescriptions,NDescriptionsItem,NTable,NInputNumber,NLoadingBarProvider,NModal,NUpload,NUploadFileList,NUploadTrigger,NUploadDragger,NTree,NTreeSelect,NSpin,NTimeline,NTimelineItem,NTimePicker,NBackTop,NSkeleton,NStatistic,NCarousel,NScrollbar,NPopselect,NCollapse,NCollapseItem,NColorPicker,NWatermark,NEmpty,NCollapseTransition]});function setupNaive(t){t.use(naive)}/*! * Vue3-Lazyload.js v0.2.5-beta * A Vue3.x image lazyload plugin * (c) 2021 MuRong diff --git a/www/static/js/index.js.gz b/www/static/js/index.js.gz index c9d9323dee..8ad6d96f04 100644 Binary files a/www/static/js/index.js.gz and b/www/static/js/index.js.gz differ