2 lines
30 KiB
JavaScript
2 lines
30 KiB
JavaScript
|
|
import{d as e,r as t,g as a,a as l,s as n,b as r,u as s,c as o,e as i,f as c,o as u,h as d,i as p,w as f,T as h,j as m,k as v,l as g,K as b,_ as w,m as y,n as _,p as k,F as x,t as C,q as E,v as S,x as V,y as A,E as T,z as I,A as R,B as F,C as P,D as M,G as D,H as z,I as L,J as O,L as q,M as N,N as j,O as W,P as H,Q as U,R as $,S as B,U as X,V as G,W as Y,X as J,Y as Z,Z as K,$ as Q,a0 as ee,a1 as te,a2 as ae,a3 as le,a4 as ne}from"./index-230eb087.js";import{_ as re}from"./index.vue_vue_type_script_setup_true_lang-2da404fe.js";var se=(e=>(e[e.Mobile=0]="Mobile",e[e.Desktop=1]="Desktop",e))(se||{});const oe=e("app",(()=>{const e=t({opened:"closed"!==a(),withoutAnimation:!1}),r=l(1);return{device:r,sidebar:e,toggleSidebar:t=>{e.opened=!e.opened,e.withoutAnimation=t,e.opened?n("opened"):n("closed")},closeSidebar:t=>{e.opened=!1,e.withoutAnimation=t,n("closed")},toggleDevice:e=>{r.value=e}}})),ie=!0,ce=!0,ue=!0,de=!0,pe=!0,fe=!0,he=!0,me=!1,ve=!1,ge=e("settings",(()=>({fixedHeader:l(ue),showSettings:l(ie),showTagsView:l(ce),showSidebarLogo:l(de),showNotify:l(pe),showThemeSwitch:l(fe),showScreenfull:l(he),showGreyMode:l(me),showColorWeakness:l(ve)}))),be={class:"app-main"},we=w(r({__name:"AppMain",setup(e){const t=s(),a=o(),l=i((()=>t.path));return(e,t)=>{const n=c("router-view");return u(),d("section",be,[p(n,null,{default:f((({Component:e})=>[p(h,{name:"el-fade-in",mode:"out-in"},{default:f((()=>[(u(),m(b,{include:g(a).cachedViews},[(u(),m(v(e),{key:l.value}))],1032,["include"]))])),_:2},1024)])),_:1})])}}}),[["__scopeId","data-v-cf4de271"]]);function ye(e,t){void 0===t&&(t={});for(var a=function(e){for(var t=[],a=0;a<e.length;){var l=e[a];if("*"!==l&&"+"!==l&&"?"!==l)if("\\"!==l)if("{"!==l)if("}"!==l)if(":"!==l)if("("!==l)t.push({type:"CHAR",index:a,value:e[a++]});else{var n=1,r="";if("?"===e[o=a+1])throw new TypeError('Pattern cannot start with "?" at '.concat(o));for(;o<e.length;)if("\\"!==e[o]){if(")"===e[o]){if(0==--n){o++;break}}else if("("===e[o]&&(n++,"?"!==e[o+1]))throw new TypeError("Capturing groups are not allowed at ".concat(o));r+=e[o++]}else r+=e[o++]+e[o++];if(n)throw new TypeError("Unbalanced pattern at ".concat(a));if(!r)throw new TypeError("Missing pattern at ".concat(a));t.push({type:"PATTERN",index:a,value:r}),a=o}else{for(var s="",o=a+1;o<e.length;){var i=e.charCodeAt(o);if(!(i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122||95===i))break;s+=e[o++]}if(!s)throw new TypeError("Missing parameter name at ".concat(a));t.push({type:"NAME",index:a,value:s}),a=o}else t.push({type:"CLOSE",index:a,value:e[a++]});else t.push({type:"OPEN",index:a,value:e[a++]});else t.push({type:"ESCAPED_CHAR",index:a++,value:e[a++]});else t.push({type:"MODIFIER",index:a,value:e[a++]})}return t.push({type:"END",index:a,value:""}),t}(e),l=t.prefixes,n=void 0===l?"./":l,r="[^".concat(function(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}(t.delimiter||"/#?"),"]+?"),s=[],o=0,i=0,c="",u=function(e){if(i<a.length&&a[i].type===e)return a[i++].value},d=function(e){var t=u(e);if(void 0!==t)return t;var l=a[i],n=l.type,r=l.index;throw new TypeError("Unexpected ".concat(n," at ").concat(r,", expected ").concat(e))},p=function(){for(var e,t="";e=u("CHAR")||u("ESCAPED_CHAR");)t+=e;return t};i<a.length;){var f=u("CHAR"),h=u("NAME"),m=u("PATTERN");if(h||m){var v=f||"";-1===n.indexOf(v)&&(c+=v,v=""),c&&(s.push(c),c=""),s.push({name:h||o++,prefix:v,suffix:"",pattern:m||r,modifier:u("MODIFIER")||""})}else{var g=f||u("ESCAPED_CHAR");if(g)c+=g;else if(c&&(s.push(c),c=""),u("OPEN")){v=p();var b=u("NAME")||"",w=u("PATTERN")||"",y=p();d("CLOSE"),s.push({name:b||(w?o++:""),pattern:b&&!w?r:w,prefix:v,suffix:y,modifier:u("MODIFIER")||""})}else d("END")}}return s}function _e(e,t){return function(e,t){void 0===t&&(t={});var a=function(e){return e&&e.sensitive?"":"i"}(t),l=t.encode,n=void 0===l?function(e){return e}:l,r=t.validate,s=void 0===r||r,o=e.map((function(e){if("object"==typeof e)return new RegExp("^(?:".concat(e.pattern,")$"),a)}));return function(t){for(var a="",l=0;l<e.length;l++){var r=e[l];if("string"!=typeof r){var i=t?t[r.name]:void 0,c="
|