From f7a3ec71702f9cdf1ef880e4b509c2b7856ad677 Mon Sep 17 00:00:00 2001 From: antoniandre Date: Wed, 26 Oct 2022 20:24:34 +0200 Subject: [PATCH] Publish documentation on Github. --- ...ther-view.1fc0de21.js => example-another-view.db59b8c4.js} | 2 +- ...le-home-view.09a97b02.js => example-home-view.ddf6dc95.js} | 2 +- docs/assets/{index.09352df1.js => index.ea9cf117.js} | 4 ++-- ...d-test-view.63cc5b4e.js => isolated-test-view.3ba808b3.js} | 2 +- docs/index.html | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) rename docs/assets/{example-another-view.1fc0de21.js => example-another-view.db59b8c4.js} (77%) rename docs/assets/{example-home-view.09a97b02.js => example-home-view.ddf6dc95.js} (76%) rename docs/assets/{index.09352df1.js => index.ea9cf117.js} (95%) rename docs/assets/{isolated-test-view.63cc5b4e.js => isolated-test-view.3ba808b3.js} (91%) diff --git a/docs/assets/example-another-view.1fc0de21.js b/docs/assets/example-another-view.db59b8c4.js similarity index 77% rename from docs/assets/example-another-view.1fc0de21.js rename to docs/assets/example-another-view.db59b8c4.js index a899eaa..08b042d 100644 --- a/docs/assets/example-another-view.1fc0de21.js +++ b/docs/assets/example-another-view.db59b8c4.js @@ -1 +1 @@ -import{o as e,c as t,a as s,_ as c}from"./index.09352df1.js";const o={class:"blue-light5--bg w-flex align-center justify-center"},n=s("div",{class:"title1"},"This is another view",-1),a=[n];function i(_,l){return e(),t("div",o,a)}const r={},h=c(r,[["render",i]]);export{h as default}; +import{o as e,c as t,a as s,_ as c}from"./index.ea9cf117.js";const o={class:"blue-light5--bg w-flex align-center justify-center"},n=s("div",{class:"title1"},"This is another view",-1),a=[n];function i(_,l){return e(),t("div",o,a)}const r={},h=c(r,[["render",i]]);export{h as default}; diff --git a/docs/assets/example-home-view.09a97b02.js b/docs/assets/example-home-view.ddf6dc95.js similarity index 76% rename from docs/assets/example-home-view.09a97b02.js rename to docs/assets/example-home-view.ddf6dc95.js index fa92c4e..2fc2354 100644 --- a/docs/assets/example-home-view.09a97b02.js +++ b/docs/assets/example-home-view.ddf6dc95.js @@ -1 +1 @@ -import{o as e,c as t,a as s,_ as c}from"./index.09352df1.js";const o={class:"green-light5--bg w-flex align-center justify-center"},n=s("div",{class:"title1"},"This is home",-1),a=[n];function i(_,l){return e(),t("div",o,a)}const r={},f=c(r,[["render",i]]);export{f as default}; +import{o as e,c as t,a as s,_ as c}from"./index.ea9cf117.js";const o={class:"green-light5--bg w-flex align-center justify-center"},n=s("div",{class:"title1"},"This is home",-1),a=[n];function i(_,l){return e(),t("div",o,a)}const r={},f=c(r,[["render",i]]);export{f as default}; diff --git a/docs/assets/index.09352df1.js b/docs/assets/index.ea9cf117.js similarity index 95% rename from docs/assets/index.09352df1.js rename to docs/assets/index.ea9cf117.js index 4d04495..5f28af8 100644 --- a/docs/assets/index.09352df1.js +++ b/docs/assets/index.ea9cf117.js @@ -2,7 +2,7 @@ * vue-router v4.1.6 * (c) 2022 Eduardo San Martin Morote * @license MIT - */const Zt=typeof window<"u";function Mc(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const de=Object.assign;function Bn(e,t){const s={};for(const i in t){const l=t[i];s[i]=tt(l)?l.map(e):e(l)}return s}const $s=()=>{},tt=Array.isArray,Ac=/\/$/,Nc=e=>e.replace(Ac,"");function En(e,t,s="/"){let i,l={},n="",o="";const a=t.indexOf("#");let r=t.indexOf("?");return a=0&&(r=-1),r>-1&&(i=t.slice(0,r),n=t.slice(r+1,a>-1?a:t.length),l=e(n)),a>-1&&(i=i||t.slice(0,a),o=t.slice(a,t.length)),i=Hc(i!=null?i:t,s),{fullPath:i+(n&&"?")+n+o,path:i,query:l,hash:o}}function Oc(e,t){const s=t.query?e(t.query):"";return t.path+(s&&"?")+s+(t.hash||"")}function ml(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Fc(e,t,s){const i=t.matched.length-1,l=s.matched.length-1;return i>-1&&i===l&&us(t.matched[i],s.matched[l])&&Do(t.params,s.params)&&e(t.query)===e(s.query)&&t.hash===s.hash}function us(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Do(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e)if(!jc(e[s],t[s]))return!1;return!0}function jc(e,t){return tt(e)?gl(e,t):tt(t)?gl(t,e):e===t}function gl(e,t){return tt(t)?e.length===t.length&&e.every((s,i)=>s===t[i]):e.length===1&&e[0]===t}function Hc(e,t){if(e.startsWith("/"))return e;if(!e)return t;const s=t.split("/"),i=e.split("/");let l=s.length-1,n,o;for(n=0;n1&&l--;else break;return s.slice(0,l).join("/")+"/"+i.slice(n-(n===i.length?1:0)).join("/")}var Ms;(function(e){e.pop="pop",e.push="push"})(Ms||(Ms={}));var Cs;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Cs||(Cs={}));function Dc(e){if(!e)if(Zt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Nc(e)}const Wc=/^[^#]+#/;function Kc(e,t){return e.replace(Wc,"#")+t}function Uc(e,t){const s=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-s.left-(t.left||0),top:i.top-s.top-(t.top||0)}}const wn=()=>({left:window.pageXOffset,top:window.pageYOffset});function qc(e){let t;if("el"in e){const s=e.el,i=typeof s=="string"&&s.startsWith("#"),l=typeof s=="string"?i?document.getElementById(s.slice(1)):document.querySelector(s):s;if(!l)return;t=Uc(l,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function bl(e,t){return(history.state?history.state.position-t:-1)+e}const qn=new Map;function Yc(e,t){qn.set(e,t)}function Xc(e){const t=qn.get(e);return qn.delete(e),t}let Gc=()=>location.protocol+"//"+location.host;function Wo(e,t){const{pathname:s,search:i,hash:l}=t,n=e.indexOf("#");if(n>-1){let a=l.includes(e.slice(n))?e.slice(n).length:1,r=l.slice(a);return r[0]!=="/"&&(r="/"+r),ml(r,"")}return ml(s,e)+i+l}function Jc(e,t,s,i){let l=[],n=[],o=null;const a=({state:b})=>{const k=Wo(e,location),L=s.value,N=t.value;let q=0;if(b){if(s.value=k,t.value=b,o&&o===L){o=null;return}q=N?b.position-N.position:0}else i(k);l.forEach(x=>{x(s.value,L,{delta:q,type:Ms.pop,direction:q?q>0?Cs.forward:Cs.back:Cs.unknown})})};function r(){o=s.value}function c(b){l.push(b);const k=()=>{const L=l.indexOf(b);L>-1&&l.splice(L,1)};return n.push(k),k}function u(){const{history:b}=window;!b.state||b.replaceState(de({},b.state,{scroll:wn()}),"")}function p(){for(const b of n)b();n=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u),{pauseListeners:r,listen:c,destroy:p}}function yl(e,t,s,i=!1,l=!1){return{back:e,current:t,forward:s,replaced:i,position:window.history.length,scroll:l?wn():null}}function Zc(e){const{history:t,location:s}=window,i={value:Wo(e,s)},l={value:t.state};l.value||n(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function n(r,c,u){const p=e.indexOf("#"),b=p>-1?(s.host&&document.querySelector("base")?e:e.slice(p))+r:Gc()+e+r;try{t[u?"replaceState":"pushState"](c,"",b),l.value=c}catch(k){console.error(k),s[u?"replace":"assign"](b)}}function o(r,c){const u=de({},t.state,yl(l.value.back,r,l.value.forward,!0),c,{position:l.value.position});n(r,u,!0),i.value=r}function a(r,c){const u=de({},l.value,t.state,{forward:r,scroll:wn()});n(u.current,u,!0);const p=de({},yl(i.value,r,null),{position:u.position+1},c);n(r,p,!1),i.value=r}return{location:i,state:l,push:a,replace:o}}function Qc(e){e=Dc(e);const t=Zc(e),s=Jc(e,t.state,t.location,t.replace);function i(n,o=!0){o||s.pauseListeners(),history.go(n)}const l=de({location:"",base:e,go:i,createHref:Kc.bind(null,e)},t,s);return Object.defineProperty(l,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(l,"state",{enumerable:!0,get:()=>t.state.value}),l}function eu(e){return typeof e=="string"||e&&typeof e=="object"}function Ko(e){return typeof e=="string"||typeof e=="symbol"}const _t={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Uo=Symbol("");var wl;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(wl||(wl={}));function ds(e,t){return de(new Error,{type:e,[Uo]:!0},t)}function rt(e,t){return e instanceof Error&&Uo in e&&(t==null||!!(e.type&t))}const _l="[^/]+?",tu={sensitive:!1,strict:!1,start:!0,end:!0},su=/[.+*?^${}()[\]/\\]/g;function nu(e,t){const s=de({},tu,t),i=[];let l=s.start?"^":"";const n=[];for(const c of e){const u=c.length?[]:[90];s.strict&&!c.length&&(l+="/");for(let p=0;pt.length?t.length===1&&t[0]===40+40?1:-1:0}function lu(e,t){let s=0;const i=e.score,l=t.score;for(;s0&&t[t.length-1]<0}const ou={type:0,value:""},au=/[a-zA-Z0-9_]/;function ru(e){if(!e)return[[]];if(e==="/")return[[ou]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(k){throw new Error(`ERR (${s})/"${c}": ${k}`)}let s=0,i=s;const l=[];let n;function o(){n&&l.push(n),n=[]}let a=0,r,c="",u="";function p(){!c||(s===0?n.push({type:0,value:c}):s===1||s===2||s===3?(n.length>1&&(r==="*"||r==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),n.push({type:1,value:c,regexp:u,repeatable:r==="*"||r==="+",optional:r==="*"||r==="?"})):t("Invalid state to consume buffer"),c="")}function b(){c+=r}for(;a{o(T)}:$s}function o(u){if(Ko(u)){const p=i.get(u);p&&(i.delete(u),s.splice(s.indexOf(p),1),p.children.forEach(o),p.alias.forEach(o))}else{const p=s.indexOf(u);p>-1&&(s.splice(p,1),u.record.name&&i.delete(u.record.name),u.children.forEach(o),u.alias.forEach(o))}}function a(){return s}function r(u){let p=0;for(;p=0&&(u.record.path!==s[p].record.path||!qo(u,s[p]));)p++;s.splice(p,0,u),u.record.name&&!kl(u)&&i.set(u.record.name,u)}function c(u,p){let b,k={},L,N;if("name"in u&&u.name){if(b=i.get(u.name),!b)throw ds(1,{location:u});N=b.record.name,k=de(xl(p.params,b.keys.filter(T=>!T.optional).map(T=>T.name)),u.params&&xl(u.params,b.keys.map(T=>T.name))),L=b.stringify(k)}else if("path"in u)L=u.path,b=s.find(T=>T.re.test(L)),b&&(k=b.parse(L),N=b.record.name);else{if(b=p.name?i.get(p.name):s.find(T=>T.re.test(p.path)),!b)throw ds(1,{location:u,currentLocation:p});N=b.record.name,k=de({},p.params,u.params),L=b.stringify(k)}const q=[];let x=b;for(;x;)q.unshift(x.record),x=x.parent;return{name:N,path:L,params:k,matched:q,meta:pu(q)}}return e.forEach(u=>n(u)),{addRoute:n,resolve:c,removeRoute:o,getRoutes:a,getRecordMatcher:l}}function xl(e,t){const s={};for(const i of t)i in e&&(s[i]=e[i]);return s}function du(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:hu(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function hu(e){const t={},s=e.props||!1;if("component"in e)t.default=s;else for(const i in e.components)t[i]=typeof s=="boolean"?s:s[i];return t}function kl(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function pu(e){return e.reduce((t,s)=>de(t,s.meta),{})}function $l(e,t){const s={};for(const i in e)s[i]=i in t?t[i]:e[i];return s}function qo(e,t){return t.children.some(s=>s===e||qo(e,s))}const Yo=/#/g,fu=/&/g,mu=/\//g,gu=/=/g,bu=/\?/g,Xo=/\+/g,yu=/%5B/g,wu=/%5D/g,Go=/%5E/g,_u=/%60/g,Jo=/%7B/g,vu=/%7C/g,Zo=/%7D/g,xu=/%20/g;function $i(e){return encodeURI(""+e).replace(vu,"|").replace(yu,"[").replace(wu,"]")}function ku(e){return $i(e).replace(Jo,"{").replace(Zo,"}").replace(Go,"^")}function Yn(e){return $i(e).replace(Xo,"%2B").replace(xu,"+").replace(Yo,"%23").replace(fu,"%26").replace(_u,"`").replace(Jo,"{").replace(Zo,"}").replace(Go,"^")}function $u(e){return Yn(e).replace(gu,"%3D")}function Cu(e){return $i(e).replace(Yo,"%23").replace(bu,"%3F")}function Su(e){return e==null?"":Cu(e).replace(mu,"%2F")}function ln(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function zu(e){const t={};if(e===""||e==="?")return t;const i=(e[0]==="?"?e.slice(1):e).split("&");for(let l=0;ln&&Yn(n)):[i&&Yn(i)]).forEach(n=>{n!==void 0&&(t+=(t.length?"&":"")+s,n!=null&&(t+="="+n))})}return t}function Ru(e){const t={};for(const s in e){const i=e[s];i!==void 0&&(t[s]=tt(i)?i.map(l=>l==null?null:""+l):i==null?i:""+i)}return t}const Bu=Symbol(""),Sl=Symbol(""),Ci=Symbol(""),Qo=Symbol(""),Xn=Symbol("");function ws(){let e=[];function t(i){return e.push(i),()=>{const l=e.indexOf(i);l>-1&&e.splice(l,1)}}function s(){e=[]}return{add:t,list:()=>e,reset:s}}function $t(e,t,s,i,l){const n=i&&(i.enterCallbacks[l]=i.enterCallbacks[l]||[]);return()=>new Promise((o,a)=>{const r=p=>{p===!1?a(ds(4,{from:s,to:t})):p instanceof Error?a(p):eu(p)?a(ds(2,{from:t,to:p})):(n&&i.enterCallbacks[l]===n&&typeof p=="function"&&n.push(p),o())},c=e.call(i&&i.instances[l],t,s,r);let u=Promise.resolve(c);e.length<3&&(u=u.then(r)),u.catch(p=>a(p))})}function Tn(e,t,s,i){const l=[];for(const n of e)for(const o in n.components){let a=n.components[o];if(!(t!=="beforeRouteEnter"&&!n.instances[o]))if(Eu(a)){const c=(a.__vccOpts||a)[t];c&&l.push($t(c,s,i,n,o))}else{let r=a();l.push(()=>r.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${n.path}"`));const u=Mc(c)?c.default:c;n.components[o]=u;const b=(u.__vccOpts||u)[t];return b&&$t(b,s,i,n,o)()}))}}return l}function Eu(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function zl(e){const t=Rt(Ci),s=Rt(Qo),i=Ke(()=>t.resolve(ns(e.to))),l=Ke(()=>{const{matched:r}=i.value,{length:c}=r,u=r[c-1],p=s.matched;if(!u||!p.length)return-1;const b=p.findIndex(us.bind(null,u));if(b>-1)return b;const k=Rl(r[c-2]);return c>1&&Rl(u)===k&&p[p.length-1].path!==k?p.findIndex(us.bind(null,r[c-2])):b}),n=Ke(()=>l.value>-1&&Pu(s.params,i.value.params)),o=Ke(()=>l.value>-1&&l.value===s.matched.length-1&&Do(s.params,i.value.params));function a(r={}){return Iu(r)?t[ns(e.replace)?"replace":"push"](ns(e.to)).catch($s):Promise.resolve()}return{route:i,href:Ke(()=>i.value.href),isActive:n,isExactActive:o,navigate:a}}const Tu=bo({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:zl,setup(e,{slots:t}){const s=et(zl(e)),{options:i}=Rt(Ci),l=Ke(()=>({[Bl(e.activeClass,i.linkActiveClass,"router-link-active")]:s.isActive,[Bl(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:s.isExactActive}));return()=>{const n=t.default&&t.default(s);return e.custom?n:yn("a",{"aria-current":s.isExactActive?e.ariaCurrentValue:null,href:s.href,onClick:s.navigate,class:l.value},n)}}}),Vu=Tu;function Iu(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Pu(e,t){for(const s in t){const i=t[s],l=e[s];if(typeof i=="string"){if(i!==l)return!1}else if(!tt(l)||l.length!==i.length||i.some((n,o)=>n!==l[o]))return!1}return!0}function Rl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Bl=(e,t,s)=>e!=null?e:t!=null?t:s,Lu=bo({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:s}){const i=Rt(Xn),l=Ke(()=>e.route||i.value),n=Rt(Sl,0),o=Ke(()=>{let c=ns(n);const{matched:u}=l.value;let p;for(;(p=u[c])&&!p.components;)c++;return c}),a=Ke(()=>l.value.matched[o.value]);Ys(Sl,Ke(()=>o.value+1)),Ys(Bu,a),Ys(Xn,l);const r=Ka();return xs(()=>[r.value,a.value,e.name],([c,u,p],[b,k,L])=>{u&&(u.instances[p]=c,k&&k!==u&&c&&c===b&&(u.leaveGuards.size||(u.leaveGuards=k.leaveGuards),u.updateGuards.size||(u.updateGuards=k.updateGuards))),c&&u&&(!k||!us(u,k)||!b)&&(u.enterCallbacks[p]||[]).forEach(N=>N(c))},{flush:"post"}),()=>{const c=l.value,u=e.name,p=a.value,b=p&&p.components[u];if(!b)return El(s.default,{Component:b,route:c});const k=p.props[u],L=k?k===!0?c.params:typeof k=="function"?k(c):k:null,q=yn(b,de({},L,t,{onVnodeUnmounted:x=>{x.component.isUnmounted&&(p.instances[u]=null)},ref:r}));return El(s.default,{Component:q,route:c})||q}}});function El(e,t){if(!e)return null;const s=e(t);return s.length===1?s[0]:s}const Mu=Lu;function Au(e){const t=uu(e.routes,e),s=e.parseQuery||zu,i=e.stringifyQuery||Cl,l=e.history,n=ws(),o=ws(),a=ws(),r=Ua(_t);let c=_t;Zt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Bn.bind(null,z=>""+z),p=Bn.bind(null,Su),b=Bn.bind(null,ln);function k(z,D){let O,Y;return Ko(z)?(O=t.getRecordMatcher(z),Y=D):Y=z,t.addRoute(Y,O)}function L(z){const D=t.getRecordMatcher(z);D&&t.removeRoute(D)}function N(){return t.getRoutes().map(z=>z.record)}function q(z){return!!t.getRecordMatcher(z)}function x(z,D){if(D=de({},D||r.value),typeof z=="string"){const h=En(s,z,D.path),y=t.resolve({path:h.path},D),v=l.createHref(h.fullPath);return de(h,y,{params:b(y.params),hash:ln(h.hash),redirectedFrom:void 0,href:v})}let O;if("path"in z)O=de({},z,{path:En(s,z.path,D.path).path});else{const h=de({},z.params);for(const y in h)h[y]==null&&delete h[y];O=de({},z,{params:p(z.params)}),D.params=p(D.params)}const Y=t.resolve(O,D),ce=z.hash||"";Y.params=u(b(Y.params));const Re=Oc(i,de({},z,{hash:ku(ce),path:Y.path})),ie=l.createHref(Re);return de({fullPath:Re,hash:ce,query:i===Cl?Ru(z.query):z.query||{}},Y,{redirectedFrom:void 0,href:ie})}function T(z){return typeof z=="string"?En(s,z,r.value.path):de({},z)}function W(z,D){if(c!==z)return ds(8,{from:D,to:z})}function j(z){return ye(z)}function le(z){return j(de(T(z),{replace:!0}))}function he(z){const D=z.matched[z.matched.length-1];if(D&&D.redirect){const{redirect:O}=D;let Y=typeof O=="function"?O(z):O;return typeof Y=="string"&&(Y=Y.includes("?")||Y.includes("#")?Y=T(Y):{path:Y},Y.params={}),de({query:z.query,hash:z.hash,params:"path"in Y?{}:z.params},Y)}}function ye(z,D){const O=c=x(z),Y=r.value,ce=z.state,Re=z.force,ie=z.replace===!0,h=he(O);if(h)return ye(de(T(h),{state:typeof h=="object"?de({},ce,h.state):ce,force:Re,replace:ie}),D||O);const y=O;y.redirectedFrom=D;let v;return!Re&&Fc(i,Y,O)&&(v=ds(16,{to:y,from:Y}),It(Y,Y,!0,!1)),(v?Promise.resolve(v):pe(y,Y)).catch($=>rt($)?rt($,2)?$:Ye($):we($,y,Y)).then($=>{if($){if(rt($,2))return ye(de({replace:ie},T($.to),{state:typeof $.to=="object"?de({},ce,$.to.state):ce,force:Re}),D||y)}else $=Se(y,Y,!0,ie,ce);return re(y,Y,$),$})}function ee(z,D){const O=W(z,D);return O?Promise.reject(O):Promise.resolve()}function pe(z,D){let O;const[Y,ce,Re]=Nu(z,D);O=Tn(Y.reverse(),"beforeRouteLeave",z,D);for(const h of Y)h.leaveGuards.forEach(y=>{O.push($t(y,z,D))});const ie=ee.bind(null,z,D);return O.push(ie),Jt(O).then(()=>{O=[];for(const h of n.list())O.push($t(h,z,D));return O.push(ie),Jt(O)}).then(()=>{O=Tn(ce,"beforeRouteUpdate",z,D);for(const h of ce)h.updateGuards.forEach(y=>{O.push($t(y,z,D))});return O.push(ie),Jt(O)}).then(()=>{O=[];for(const h of z.matched)if(h.beforeEnter&&!D.matched.includes(h))if(tt(h.beforeEnter))for(const y of h.beforeEnter)O.push($t(y,z,D));else O.push($t(h.beforeEnter,z,D));return O.push(ie),Jt(O)}).then(()=>(z.matched.forEach(h=>h.enterCallbacks={}),O=Tn(Re,"beforeRouteEnter",z,D),O.push(ie),Jt(O))).then(()=>{O=[];for(const h of o.list())O.push($t(h,z,D));return O.push(ie),Jt(O)}).catch(h=>rt(h,8)?h:Promise.reject(h))}function re(z,D,O){for(const Y of a.list())Y(z,D,O)}function Se(z,D,O,Y,ce){const Re=W(z,D);if(Re)return Re;const ie=D===_t,h=Zt?history.state:{};O&&(Y||ie?l.replace(z.fullPath,de({scroll:ie&&h&&h.scroll},ce)):l.push(z.fullPath,ce)),r.value=z,It(z,D,O,ie),Ye()}let K;function xe(){K||(K=l.listen((z,D,O)=>{if(!Os.listening)return;const Y=x(z),ce=he(Y);if(ce){ye(de(ce,{replace:!0}),Y).catch($s);return}c=Y;const Re=r.value;Zt&&Yc(bl(Re.fullPath,O.delta),wn()),pe(Y,Re).catch(ie=>rt(ie,12)?ie:rt(ie,2)?(ye(ie.to,Y).then(h=>{rt(h,20)&&!O.delta&&O.type===Ms.pop&&l.go(-1,!1)}).catch($s),Promise.reject()):(O.delta&&l.go(-O.delta,!1),we(ie,Y,Re))).then(ie=>{ie=ie||Se(Y,Re,!1),ie&&(O.delta&&!rt(ie,8)?l.go(-O.delta,!1):O.type===Ms.pop&&rt(ie,20)&&l.go(-1,!1)),re(Y,Re,ie)}).catch($s)}))}let Pe=ws(),bt=ws(),ze;function we(z,D,O){Ye(z);const Y=bt.list();return Y.length?Y.forEach(ce=>ce(z,D,O)):console.error(z),Promise.reject(z)}function fe(){return ze&&r.value!==_t?Promise.resolve():new Promise((z,D)=>{Pe.add([z,D])})}function Ye(z){return ze||(ze=!z,xe(),Pe.list().forEach(([D,O])=>z?O(z):D()),Pe.reset()),z}function It(z,D,O,Y){const{scrollBehavior:ce}=e;if(!Zt||!ce)return Promise.resolve();const Re=!O&&Xc(bl(z.fullPath,0))||(Y||!O)&&history.state&&history.state.scroll||null;return io().then(()=>ce(z,D,Re)).then(ie=>ie&&qc(ie)).catch(ie=>we(ie,z,D))}const Xe=z=>l.go(z);let Fe;const Xt=new Set,Os={currentRoute:r,listening:!0,addRoute:k,removeRoute:L,hasRoute:q,getRoutes:N,resolve:x,options:e,push:j,replace:le,go:Xe,back:()=>Xe(-1),forward:()=>Xe(1),beforeEach:n.add,beforeResolve:o.add,afterEach:a.add,onError:bt.add,isReady:fe,install(z){const D=this;z.component("RouterLink",Vu),z.component("RouterView",Mu),z.config.globalProperties.$router=D,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>ns(r)}),Zt&&!Fe&&r.value===_t&&(Fe=!0,j(l.location).catch(ce=>{}));const O={};for(const ce in _t)O[ce]=Ke(()=>r.value[ce]);z.provide(Ci,D),z.provide(Qo,et(O)),z.provide(Xn,r);const Y=z.unmount;Xt.add(z),z.unmount=function(){Xt.delete(z),Xt.size<1&&(c=_t,K&&K(),K=null,r.value=_t,Fe=!1,ze=!1),Y()}}};return Os}function Jt(e){return e.reduce((t,s)=>t.then(()=>s()),Promise.resolve())}function Nu(e,t){const s=[],i=[],l=[],n=Math.max(t.matched.length,e.matched.length);for(let o=0;ous(c,a))?i.push(a):s.push(a));const r=e.matched[o];r&&(t.matched.find(c=>us(c,r))||l.push(r))}return[s,i,l]}const Ou={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let s=0;this.panes=this.panes.map((i,l)=>(i.size=l===t?i.max:i.min,l!==t&&(s+=i.min),i)),this.panes[t].size-=s,this.$emit("pane-maximize",this.panes[t]),this.$emit("resized",this.panes.map(i=>({min:i.min,max:i.max,size:i.size})))},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:s,clientY:i}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:s-t.left,y:i-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let s={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const i=0+(this.pushOtherPanes?0:s.prevPanesSize),l=100-(this.pushOtherPanes?0:s.nextPanesSize),n=Math.max(Math.min(this.getCurrentDragPercentage(e),l),i);let o=[t,t+1],a=this.panes[o[0]]||null,r=this.panes[o[1]]||null;const c=a.max<100&&n>=a.max+s.prevPanesSize,u=r.max<100&&n<=100-(r.max+this.sumNextPanesSize(t+1));if(c||u){c?(a.size=a.max,r.size=Math.max(100-a.max-s.prevPanesSize-s.nextPanesSize,0)):(a.size=Math.max(100-r.max-s.prevPanesSize-this.sumNextPanesSize(t+1),0),r.size=r.max);return}if(this.pushOtherPanes){const p=this.doPushOtherPanes(s,n);if(!p)return;({sums:s,panesToResize:o}=p),a=this.panes[o[0]]||null,r=this.panes[o[1]]||null}a!==null&&(a.size=Math.min(Math.max(n-s.prevPanesSize-s.prevReachedMinPanes,a.min),a.max)),r!==null&&(r.size=Math.min(Math.max(100-n-s.nextPanesSize-s.nextReachedMinPanes,r.min),r.max))},doPushOtherPanes(e,t){const s=this.touch.activeSplitter,i=[s,s+1];return t{n>i[0]&&n<=s&&(l.size=l.min,e.prevReachedMinPanes+=l.min)}),e.prevPanesSize=this.sumPrevPanesSize(i[0]),i[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((l,n)=>{n>0&&n<=s&&(l.size=l.min,e.prevReachedMinPanes+=l.min)}),this.panes[i[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[i[1]].min&&(i[1]=this.findNextExpandedPane(s).index,e.nextReachedMinPanes=0,i[1]>s+1&&this.panes.forEach((l,n)=>{n>s&&n{n=s+1&&(l.size=l.min,e.nextReachedMinPanes+=l.min)}),this.panes[i[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:i}},sumPrevPanesSize(e){return this.panes.reduce((t,s,i)=>t+(it+(i>e+1?s.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(s=>s.indexs.min)||{}},findNextExpandedPane(e){return this.panes.find(s=>s.index>e+1&&s.size>s.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(t=>{const s=t.classList.contains("splitpanes__pane"),i=t.classList.contains("splitpanes__splitter");if(!s&&!i){t.parentNode.removeChild(t),console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed.");return}})},addSplitter(e,t,s=!1){const i=e-1,l=document.createElement("div");l.classList.add("splitpanes__splitter"),s||(l.onmousedown=n=>this.onMouseDown(n,i),typeof window<"u"&&"ontouchstart"in window&&(l.ontouchstart=n=>this.onMouseDown(n,i)),l.onclick=n=>this.onSplitterClick(n,i+1)),this.dblClickSplitter&&(l.ondblclick=n=>this.onSplitterDblClick(n,i+1)),t.parentNode.insertBefore(l,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(s=>{s.className.includes("splitpanes__splitter")&&this.removeSplitter(s)});let t=0;e.forEach(s=>{s.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,s,!0):t&&this.addSplitter(t,s),t++)})},requestUpdate({target:e,...t}){const s=this.indexedPanes[e._.uid];Object.entries(t).forEach(([i,l])=>s[i]=l)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(l=>(l.className.includes("splitpanes__pane")&&t++,l===e.$el));const s=parseFloat(e.minSize),i=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(s)?0:s,max:isNaN(i)?100:i,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((l,n)=>l.index=n),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(l=>({min:l.min,max:l.max,size:l.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(i=>i.id===e._.uid),s=this.panes.splice(t,1)[0];this.panes.forEach((i,l)=>i.index=l),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...s,index:t}}),this.$emit("pane-remove",{removed:s,panes:this.panes.map(i=>({min:i.min,max:i.max,size:i.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0,s=[],i=[];this.panes.forEach(l=>{l.size=Math.max(Math.min(e,l.max),l.min),t-=l.size,l.size>=l.max&&s.push(l.id),l.size<=l.min&&i.push(l.id)}),t>.1&&this.readjustSizes(t,s,i)},initialPanesSizing(){100/this.panesCount;let e=100,t=[],s=[],i=0;this.panes.forEach(n=>{e-=n.size,n.size!==null&&i++,n.size>=n.max&&t.push(n.id),n.size<=n.min&&s.push(n.id)});let l=100;e>.1&&(this.panes.forEach(n=>{n.size===null&&(n.size=Math.max(Math.min(e/(this.panesCount-i),n.max),n.min)),l-=n.size}),l>.1&&this.readjustSizes(e,t,s))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let s=100/this.panesCount,i=0,l=[],n=[];e&&e.givenSize!==null&&(s=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(o=>{i-=o.size,o.size>=o.max&&l.push(o.id),o.size<=o.min&&n.push(o.id)}),!(Math.abs(i)<.1)&&(this.panes.forEach(o=>{e&&e.givenSize!==null&&e.id===o.id||(o.size=Math.max(Math.min(s,o.max),o.min)),i-=o.size,o.size>=o.max&&l.push(o.id),o.size<=o.min&&n.push(o.id)}),i>.1&&this.readjustSizes(i,l,n))},readjustSizes(e,t,s){let i;e>0?i=e/(this.panesCount-t.length):i=e/(this.panesCount-s.length),this.panes.forEach((l,n)=>{if(e>0&&!t.includes(l.id)){const o=Math.max(Math.min(l.size+i,l.max),l.min),a=o-l.size;e-=a,l.size=o}else if(!s.includes(l.id)){const o=Math.max(Math.min(l.size+i,l.max),l.min),a=o-l.size;e-=a,l.size=o}l.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[l.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((s,i)=>{s.ondblclick=e?l=>this.onSplitterDblClick(l,i):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return yn("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},_n=(e,t)=>{const s=e.__vccOpts||e;for(const[i,l]of t)s[i]=l;return s},Fu={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function ju(e,t,s,i,l,n){return f(),_("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=o=>n.onPaneClick(o,e._.uid)),style:ve(e.style)},[C(e.$slots,"default")],4)}const Hu=_n(Fu,[["render",ju]]);function Du(e,t,s,i,l,n){const o=Z("w-icon");return f(),A($e(s.tag),{class:R(`highlight highlight--${s.type}`)},{default:m(()=>[s.noIcon?S("",!0):(f(),A(o,{key:0},{default:m(()=>[g("material-icons "+V(n.icon),1)]),_:1})),C(e.$slots,"default")]),_:3},8,["class"])}const Wu={props:{tag:{type:String,default:"p"},type:{type:String,default:"info"},noIcon:{type:Boolean,default:!1}},computed:{icon(){switch(this.type){case"success":return"check";case"error":return"close";case"warning":return"priority_high";case"tips":return"wb_incandescent";case"info":default:return"priority_high"}}}},Ku=_n(Wu,[["render",Du]]),Uu=(e,t)=>{const s=e.__vccOpts||e;for(const[i,l]of t)s[i]=l;return s},ke={quote:/("(?:\\"|[^"])*")|('(?:\\'|[^'])*')/,comment:/(\/\/.*?(?:\n|$)|\/\*.*?\*\/)/,htmlTag:/(<([^>])*>)/,htmlentity:/(&[a-zA-Z0-9#]+;)/,punctuation:/(!==?|(?:[[\](){}.:;,+\-?=!]|<|>)+|&&|\|\|)/,number:/(-?(?:\.\d+|\d+(?:\.\d+)?))/,boolean:/\b(true|false)\b/},Vn={shell:{quote:ke.quote,comment:/(#.*?)(?:\n|$)/,keyword:/(?:^|\b)(npm|yarn|install|run)(?:\b|$)/,param:/( --(?:save|save-dev))(?:\s|$)/},xml:{doctype:/(<\!DOCTYPE.*?>)/,quote:ke.quote,comment:/(<!--.*?-->)/,htmlentity:ke.htmlentity,tag:/(<\/?)([a-zA-Z\-:]+)(.*?)(\/?>)/},html:{doctype:/(DOCTYPE)/,quote:ke.quote,comment:/(<!--.*?-->)/,htmlentity:ke.htmlentity,tag:/(<\/?)([a-z]\w*)(.*?)(\/?>)/},"html-vue":{doctype:/(DOCTYPE)/,quote:ke.quote,comment:/(<!--.*?-->)/,htmlentity:ke.htmlentity,tag:/(<\/?)([a-zA-Z][\w\d-]*)((?:.|\s)*?)(\/?>)/},pug:{text:/((?:^|\n)[ \t]*|^)\|([ \t]*)([^\n]+(?=\s*(?:\n|$)))/,text2:/([ \t]*)([.#\-\w\d]+(?:\([^)]*\))*)\.\n((?:\n+(?=\4[ \t]+)|(?=\4[ \t]+).+?(?:\n|$)*?)*)(?=\s*(?:\n|$))/,quote:ke.quote,comment:/(^|\n)([ \t]*|^)(\/\/-[ \t]*(?:[^\n]*?(?:\n\10[ \t]+[^\n]*)+|[^\n]+(?=\n|$)))/,tag:/([a-zA-Z][\w\d-]*|)([.#][a-zA-Z][-.\w\d]*|)\b(?:\((.*?)\))?(\.?)([ \t]*)([^\n]+)?(?=\n|$)/,punctuation:/(!==?|(?:[#[\]().,+\-?=!|]|<|>)+)/},css:{quote:ke.quote,comment:/(\/\*.*?\*\/)/,pseudo:/(:(?:hover|active|focus|visited|not|before|after|(?:first|last|nth)-child))/,"selector keyword vendor":/(@-(?:moz|o|webkit|ms)-(?=keyframes\s))/,"selector keyword":/((?:@(?:import|media|font-face|keyframes)|screen|print|and)(?=[\s({])|keyframes|\s(?:ul|ol|li|table|div|pre|p|a|img|br|hr|h[1-6]|em|strong|span|html|body|iframe|video|audio|input|button|form|label|fieldset|small|abbr|i|dd|dt)\b)(?=.*\{})/,variable:/(--[a-zA-Z0-9\-]+)/,selector:/((?:[.#-\w*+ >:,[\]="~\n]|>)+)(?=\s*\{)/,"attribute keyword vendor":/(-(?:moz|o|webkit|ms)-(?=transform|transition|user-select|tap-highlight-color|animation|background-size|box-shadow))/,"attribute keyword":/\b(content|float|display|position|top|left|right|bottom|(?:(?:max|min)-)?width|(?:(?:max|min|line)-)?height|font(?:-(?:family|style|size|weight|variant|stretch))?|vertical-align|color|opacity|visibility|z-index|pointer-events|user-select|transform(?:-(?:origin|style|delay|duration|property|timing-function))?|transition(?:-(?:delay|duration))?|animation(?:-(?:name|delay|duration|direction|fill-mode))?|backface-visibility|backdrop-filter|background(?:-(?:color|position|image|repeat|size|attachment|origin|clip|blend-mode))?|(?:padding|margin|border)(?:-(?:top|left|right|bottom))?|border(?:-(?:radius|color|width|style|spacing))|white-space|text-(?:align|transform|decoration|shadow|indent)|overflow(?:-(?:x|y))?|(?:letter|word)-spacing|word-break|box-(?:sizing|shadow)|stroke(?:-(?:width|opacity|dasharray|dashoffset|linecap|linejoin))?|fill|speak|outline|user-select|cursor|flex(?:-(?:direction|flow|grow|shrink|basis|wrap))?|(?:justify|align)-(?:content|self|items))(?=\s*:)/,"value keyword vendor":/(-(?:moz|o|webkit|ms)-(?=linear-gradient))/,"value keyword":/\b(inherit|initial|normal|none|unset|auto|inline(?:-(?:block|flex))?|block|flex|absolute|relative|static|fixed|sticky|hidden|visible|top|left|right|bottom|center|middle|baseline|solid|dotted|dashed|line-through|(?:over|under)line|wavy|double|(?:pre-|no)?wrap|pre|break-word|(?:upper|lower)case|capitalize|italic|bold|attr\(.*?\)|linear|ease(?:-in)?(?:-out)?|all|infinite|cubic-bezier|(?:translate|rotate)(?:[X-Z]|3d)?|skew[XY]?|scale|(?:no-)?repeat|repeat(?:-x|-y)|contain|cover|url|(?:repeating-)?(?:linear|radial)-gradient|inset|pointer|(?:flex-)?(?:start|end)|space-(?:between|evenly|around)|stretch|revert|row(?:-reverse)?|column(?:-reverse)?)(?=\s*[,;}(]|\s+[\da-z!])/,"value keyword important":/( ?!important)/,number:ke.number,color:/(transparent|#(?:[\da-fA-F]{6}|[\da-fA-F]{3})|rgba?\([\d., ]*\))/,htmlentity:/(&.*?;)/,punctuation:/([:,;{}@#()!]+|<|>)/,attribute:/([a-zA-Z-]+)(?=\s*:)/,unit:/(px|pt|cm|%|r?em|m?s|deg|vh|vw|vmin|vmax)(?=(?:\s*[;,{}})]|\s+[-\da-z#]))/},json:{quote:ke.quote,comment:ke.comment,number:ke.number,boolean:ke.boolean,punctuation:/([[\](){}:;,-]+)/},js:{quote:ke.quote,comment:ke.comment,number:/\b(\d+(?:\.\d+)?|null)\b/,boolean:ke.boolean,this:/\b(this)(?=\W)/,keyword:/\b(new|getElementsBy(?:Tag|Class|)Name|getElementById|querySelector|querySelectorAll|arguments|if|else|do|return|case|default|(?:f|F)unction|typeof|instanceof|undefined|document|window|while|for|forEach|switch|in|break|continue|delete|length|var|let|const|export|import|as|require|from|Class|constructor|Number|Boolean|String|Array|Object|RegExp|Integer|Date|Promise|async|await|(?:clear|set)(?:Timeout|Interval)|parse(?:Int|Float)|Math(?=\.)|isNaN)(?=\W)/,punctuation:/(!==?|(?:[[\]!(){}:;,+\-%*/?=]|<|>)+|\.+(?![a-zA-Z])|&&|\|\|)/,variable:/(\.?[a-zA-Z_][\w\d]*)/,htmlentity:/(&.*?;)/,"external-var":/(\$|jQuery|JSON)(?=\W|$)/},php:{quote:ke.quote,comment:ke.comment,special:/(<\?php|\?>|__(?:DIR|FILE|LINE)__)/,punctuation:ke.punctuation,number:ke.number,boolean:ke.boolean,variable:/(\$[\w\d_]+)/,keyword:/\b(define|echo|die|exit|print_r|var_dump|if|else|elseif|do|return|case|default|function|\$this|while|foreach|for|switch|in|break|continue|empty|isset|unset|parse_ini_file|session_(?:start|destroy|id)|header|json_(?:encode|decode)|error_log|(require|include)(:?_once)?|try|throw|new|Exception|catch|finally|preg_(?:match|replace)|list|strlen|substr|str_replace|array_(?:keys|values))(?=\W|$)/},sql:{quote:ke.quote,comment:/((?:\-\-|#)\s.*?(?:\n|$)|\/\*.*?\*\/)/,punctuation:ke.punctuation,number:/\b(\d+(?:\.\d+)?|null)\b/,boolean:ke.boolean,keyword:/\b(\*|CREATE|DATABASE|TABLE|GRANT|ALL|PRIVILEGES|IDENTIFIED|FLUSH|ALTER|MODIFY|DROP|TRUNCATE|CONSTRAINT|ADD|(?:(?:PRIMARY|FOREIGN|UNIQUE) )?KEY|REFERENCES|AUTO_INCREMENT|COMMENT|DEFAULT|UNSIGNED|CHARSET|COLLATE|CHARACTER|ENGINE|SQL_MODE|USE|IF|NOT|NULL|EXISTS|SELECT|UPDATE|DELETE|INSERT(?: INTO)?|VALUES|SET|FROM|WHERE|(?:ORDER|GROUP) BY|LIMIT|(?:(?:LEFT|RIGHT|INNER|OUTER) |)JOIN|AS|ON|COUNT|CASE|TO|WHEN|BETWEEN|AND|OR|IN|LIKE|CONCAT|CURRENT_TIMESTAMP)(?=\W|$)/,"var-type":/\b((?:var)?char|(?:tiny|small|medium|big)?int|decimal|float|double|real|bit|boolean|date(?:time)?|time(?:stamp)?|year|(?:tiny|medium|long)?(?:text|blob)|enum)\b/}},qu={xml:/(\s*)([a-zA-Z\d\-:]+)=("|')(.*?)\3/g,html:/(\s*)([a-zA-Z-]+)=("|')(.*?)\3/g,"html-vue":/(\s*)([@:#]?[a-zA-Z\d-]+)(?:(?:=("|')(.*?)\3)|)/g,pug:/(\s*|,)([@:#]?[a-zA-Z\d-]+)(?:(?:=("|')(.*?)\3)|)/g},Yu={shell:{quote:2},xml:{quote:2,tag:4},html:{quote:2,tag:4},"html-vue":{quote:2,tag:4},pug:{text:3,text2:3,quote:2,comment:3,tag:6},json:{quote:2},php:{quote:2},sql:{quote:2},css:{quote:2},js:{quote:2}},Gn=e=>e.map(t=>{if(!t.children||typeof t.children=="string")return t.children||"";if(Array.isArray(t.children))return Gn(t.children);if(t.children.default)return Gn(t.children.default())}).join(""),Xu={name:"sshpre",props:{language:{type:String,default:""},label:{type:[String,Boolean],default:!1},reactive:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},copyButton:{type:Boolean,default:!1}},data:()=>({knownLanguages:Object.keys(Vn),content:"",slotTexts:""}),methods:{htmlize(e){return e.replace(/&(lt|gt|amp);/g,(t,s)=>({lt:"<",gt:">",amp:"&"})[s])},unhtmlize(e){return e.replace(/[<>]/g,t=>({"<":"<",">":">"})[t])},isColorDark(e){let t,s,i,l,n,o;if(t=e.match(/rgba?\((.*),\s*(.*),\s*(.*?)(?:,\s*([^)]*))\)/))i=parseInt(t[1])<=100,l=parseInt(t[2])<=100,n=parseInt(t[3])<=100,o=parseFloat(t[4])<.3;else if(s=e.match(/#([\da-f]{3}(?:[\da-f]{3})?)/)){const a=s[1].length===3;i=parseInt(s[1][0])<=9,l=parseInt(s[1][a?1:2])<=9,n=parseInt(s[1][a?2:4])<=9}return(i&&l&&n||i&&l&&!n||!i&&l&&n)&&!o},createRegexPattern(){let e="";const t=[];for(const s in Vn[this.language]){const i=Yu[this.language][s]||1;for(let l=0;l`${l}${n}`+(a?'=':"")+(a?`${o||""}${a||""}${o||""}`:"");let s=(e[2]||"").replace(qu[this.language],t);if(this.language==="pug"){const i=(e[1]||"").replace(/#[a-z\d-]+/g,l=>`${l}`).replace(/\.[a-z\d-]+/g,l=>`${l}`);return s&&(s='('+s+')'),`${e[0]||""}${i}${s}`+(e[3]?'.':"")+(e[4]||"")+(e[5]?`${e[5]}`:"")}return`${e[0]}${e[1]}`+s+`${e[3]}`},syntaxHighlightContent(e){if(!this.knownLanguages.includes(this.language))return e;const[t,s]=this.createRegexPattern();return this.unhtmlize(e).replace(new RegExp(t,"gs"),(i,...l)=>{l=l.slice(0,l.length-2);let n;const o=this.language==="pug";let a=l.find((c,u)=>c&&(n=s[u])&&c);if(n==="quote")a=this.unhtmlize(a);else if(n==="comment")if(o){const[c,u,p]=l.slice(s.indexOf("comment"));a=`${c}${u}${this.unhtmlize(p)}`}else a=this.unhtmlize(a);else{if(n==="text"&&o)return`${l[0]}|${l[1]}${l[2]}`;if(n==="text2"&&o){const[,,,c,u,p]=l,b=this.syntaxHighlightContent(u);return`${c}${b}. + */const Zt=typeof window<"u";function Mc(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const de=Object.assign;function Bn(e,t){const s={};for(const i in t){const l=t[i];s[i]=tt(l)?l.map(e):e(l)}return s}const $s=()=>{},tt=Array.isArray,Ac=/\/$/,Nc=e=>e.replace(Ac,"");function En(e,t,s="/"){let i,l={},n="",o="";const a=t.indexOf("#");let r=t.indexOf("?");return a=0&&(r=-1),r>-1&&(i=t.slice(0,r),n=t.slice(r+1,a>-1?a:t.length),l=e(n)),a>-1&&(i=i||t.slice(0,a),o=t.slice(a,t.length)),i=Hc(i!=null?i:t,s),{fullPath:i+(n&&"?")+n+o,path:i,query:l,hash:o}}function Oc(e,t){const s=t.query?e(t.query):"";return t.path+(s&&"?")+s+(t.hash||"")}function ml(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Fc(e,t,s){const i=t.matched.length-1,l=s.matched.length-1;return i>-1&&i===l&&us(t.matched[i],s.matched[l])&&Do(t.params,s.params)&&e(t.query)===e(s.query)&&t.hash===s.hash}function us(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Do(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e)if(!jc(e[s],t[s]))return!1;return!0}function jc(e,t){return tt(e)?gl(e,t):tt(t)?gl(t,e):e===t}function gl(e,t){return tt(t)?e.length===t.length&&e.every((s,i)=>s===t[i]):e.length===1&&e[0]===t}function Hc(e,t){if(e.startsWith("/"))return e;if(!e)return t;const s=t.split("/"),i=e.split("/");let l=s.length-1,n,o;for(n=0;n1&&l--;else break;return s.slice(0,l).join("/")+"/"+i.slice(n-(n===i.length?1:0)).join("/")}var Ms;(function(e){e.pop="pop",e.push="push"})(Ms||(Ms={}));var Cs;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Cs||(Cs={}));function Dc(e){if(!e)if(Zt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Nc(e)}const Wc=/^[^#]+#/;function Kc(e,t){return e.replace(Wc,"#")+t}function Uc(e,t){const s=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-s.left-(t.left||0),top:i.top-s.top-(t.top||0)}}const wn=()=>({left:window.pageXOffset,top:window.pageYOffset});function qc(e){let t;if("el"in e){const s=e.el,i=typeof s=="string"&&s.startsWith("#"),l=typeof s=="string"?i?document.getElementById(s.slice(1)):document.querySelector(s):s;if(!l)return;t=Uc(l,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function bl(e,t){return(history.state?history.state.position-t:-1)+e}const qn=new Map;function Yc(e,t){qn.set(e,t)}function Xc(e){const t=qn.get(e);return qn.delete(e),t}let Gc=()=>location.protocol+"//"+location.host;function Wo(e,t){const{pathname:s,search:i,hash:l}=t,n=e.indexOf("#");if(n>-1){let a=l.includes(e.slice(n))?e.slice(n).length:1,r=l.slice(a);return r[0]!=="/"&&(r="/"+r),ml(r,"")}return ml(s,e)+i+l}function Jc(e,t,s,i){let l=[],n=[],o=null;const a=({state:b})=>{const k=Wo(e,location),L=s.value,N=t.value;let q=0;if(b){if(s.value=k,t.value=b,o&&o===L){o=null;return}q=N?b.position-N.position:0}else i(k);l.forEach(x=>{x(s.value,L,{delta:q,type:Ms.pop,direction:q?q>0?Cs.forward:Cs.back:Cs.unknown})})};function r(){o=s.value}function c(b){l.push(b);const k=()=>{const L=l.indexOf(b);L>-1&&l.splice(L,1)};return n.push(k),k}function u(){const{history:b}=window;!b.state||b.replaceState(de({},b.state,{scroll:wn()}),"")}function p(){for(const b of n)b();n=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u),{pauseListeners:r,listen:c,destroy:p}}function yl(e,t,s,i=!1,l=!1){return{back:e,current:t,forward:s,replaced:i,position:window.history.length,scroll:l?wn():null}}function Zc(e){const{history:t,location:s}=window,i={value:Wo(e,s)},l={value:t.state};l.value||n(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function n(r,c,u){const p=e.indexOf("#"),b=p>-1?(s.host&&document.querySelector("base")?e:e.slice(p))+r:Gc()+e+r;try{t[u?"replaceState":"pushState"](c,"",b),l.value=c}catch(k){console.error(k),s[u?"replace":"assign"](b)}}function o(r,c){const u=de({},t.state,yl(l.value.back,r,l.value.forward,!0),c,{position:l.value.position});n(r,u,!0),i.value=r}function a(r,c){const u=de({},l.value,t.state,{forward:r,scroll:wn()});n(u.current,u,!0);const p=de({},yl(i.value,r,null),{position:u.position+1},c);n(r,p,!1),i.value=r}return{location:i,state:l,push:a,replace:o}}function Qc(e){e=Dc(e);const t=Zc(e),s=Jc(e,t.state,t.location,t.replace);function i(n,o=!0){o||s.pauseListeners(),history.go(n)}const l=de({location:"",base:e,go:i,createHref:Kc.bind(null,e)},t,s);return Object.defineProperty(l,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(l,"state",{enumerable:!0,get:()=>t.state.value}),l}function eu(e){return typeof e=="string"||e&&typeof e=="object"}function Ko(e){return typeof e=="string"||typeof e=="symbol"}const _t={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Uo=Symbol("");var wl;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(wl||(wl={}));function ds(e,t){return de(new Error,{type:e,[Uo]:!0},t)}function rt(e,t){return e instanceof Error&&Uo in e&&(t==null||!!(e.type&t))}const _l="[^/]+?",tu={sensitive:!1,strict:!1,start:!0,end:!0},su=/[.+*?^${}()[\]/\\]/g;function nu(e,t){const s=de({},tu,t),i=[];let l=s.start?"^":"";const n=[];for(const c of e){const u=c.length?[]:[90];s.strict&&!c.length&&(l+="/");for(let p=0;pt.length?t.length===1&&t[0]===40+40?1:-1:0}function lu(e,t){let s=0;const i=e.score,l=t.score;for(;s0&&t[t.length-1]<0}const ou={type:0,value:""},au=/[a-zA-Z0-9_]/;function ru(e){if(!e)return[[]];if(e==="/")return[[ou]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(k){throw new Error(`ERR (${s})/"${c}": ${k}`)}let s=0,i=s;const l=[];let n;function o(){n&&l.push(n),n=[]}let a=0,r,c="",u="";function p(){!c||(s===0?n.push({type:0,value:c}):s===1||s===2||s===3?(n.length>1&&(r==="*"||r==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),n.push({type:1,value:c,regexp:u,repeatable:r==="*"||r==="+",optional:r==="*"||r==="?"})):t("Invalid state to consume buffer"),c="")}function b(){c+=r}for(;a{o(T)}:$s}function o(u){if(Ko(u)){const p=i.get(u);p&&(i.delete(u),s.splice(s.indexOf(p),1),p.children.forEach(o),p.alias.forEach(o))}else{const p=s.indexOf(u);p>-1&&(s.splice(p,1),u.record.name&&i.delete(u.record.name),u.children.forEach(o),u.alias.forEach(o))}}function a(){return s}function r(u){let p=0;for(;p=0&&(u.record.path!==s[p].record.path||!qo(u,s[p]));)p++;s.splice(p,0,u),u.record.name&&!kl(u)&&i.set(u.record.name,u)}function c(u,p){let b,k={},L,N;if("name"in u&&u.name){if(b=i.get(u.name),!b)throw ds(1,{location:u});N=b.record.name,k=de(xl(p.params,b.keys.filter(T=>!T.optional).map(T=>T.name)),u.params&&xl(u.params,b.keys.map(T=>T.name))),L=b.stringify(k)}else if("path"in u)L=u.path,b=s.find(T=>T.re.test(L)),b&&(k=b.parse(L),N=b.record.name);else{if(b=p.name?i.get(p.name):s.find(T=>T.re.test(p.path)),!b)throw ds(1,{location:u,currentLocation:p});N=b.record.name,k=de({},p.params,u.params),L=b.stringify(k)}const q=[];let x=b;for(;x;)q.unshift(x.record),x=x.parent;return{name:N,path:L,params:k,matched:q,meta:pu(q)}}return e.forEach(u=>n(u)),{addRoute:n,resolve:c,removeRoute:o,getRoutes:a,getRecordMatcher:l}}function xl(e,t){const s={};for(const i of t)i in e&&(s[i]=e[i]);return s}function du(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:hu(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function hu(e){const t={},s=e.props||!1;if("component"in e)t.default=s;else for(const i in e.components)t[i]=typeof s=="boolean"?s:s[i];return t}function kl(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function pu(e){return e.reduce((t,s)=>de(t,s.meta),{})}function $l(e,t){const s={};for(const i in e)s[i]=i in t?t[i]:e[i];return s}function qo(e,t){return t.children.some(s=>s===e||qo(e,s))}const Yo=/#/g,fu=/&/g,mu=/\//g,gu=/=/g,bu=/\?/g,Xo=/\+/g,yu=/%5B/g,wu=/%5D/g,Go=/%5E/g,_u=/%60/g,Jo=/%7B/g,vu=/%7C/g,Zo=/%7D/g,xu=/%20/g;function $i(e){return encodeURI(""+e).replace(vu,"|").replace(yu,"[").replace(wu,"]")}function ku(e){return $i(e).replace(Jo,"{").replace(Zo,"}").replace(Go,"^")}function Yn(e){return $i(e).replace(Xo,"%2B").replace(xu,"+").replace(Yo,"%23").replace(fu,"%26").replace(_u,"`").replace(Jo,"{").replace(Zo,"}").replace(Go,"^")}function $u(e){return Yn(e).replace(gu,"%3D")}function Cu(e){return $i(e).replace(Yo,"%23").replace(bu,"%3F")}function Su(e){return e==null?"":Cu(e).replace(mu,"%2F")}function ln(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function zu(e){const t={};if(e===""||e==="?")return t;const i=(e[0]==="?"?e.slice(1):e).split("&");for(let l=0;ln&&Yn(n)):[i&&Yn(i)]).forEach(n=>{n!==void 0&&(t+=(t.length?"&":"")+s,n!=null&&(t+="="+n))})}return t}function Ru(e){const t={};for(const s in e){const i=e[s];i!==void 0&&(t[s]=tt(i)?i.map(l=>l==null?null:""+l):i==null?i:""+i)}return t}const Bu=Symbol(""),Sl=Symbol(""),Ci=Symbol(""),Qo=Symbol(""),Xn=Symbol("");function ws(){let e=[];function t(i){return e.push(i),()=>{const l=e.indexOf(i);l>-1&&e.splice(l,1)}}function s(){e=[]}return{add:t,list:()=>e,reset:s}}function $t(e,t,s,i,l){const n=i&&(i.enterCallbacks[l]=i.enterCallbacks[l]||[]);return()=>new Promise((o,a)=>{const r=p=>{p===!1?a(ds(4,{from:s,to:t})):p instanceof Error?a(p):eu(p)?a(ds(2,{from:t,to:p})):(n&&i.enterCallbacks[l]===n&&typeof p=="function"&&n.push(p),o())},c=e.call(i&&i.instances[l],t,s,r);let u=Promise.resolve(c);e.length<3&&(u=u.then(r)),u.catch(p=>a(p))})}function Tn(e,t,s,i){const l=[];for(const n of e)for(const o in n.components){let a=n.components[o];if(!(t!=="beforeRouteEnter"&&!n.instances[o]))if(Eu(a)){const c=(a.__vccOpts||a)[t];c&&l.push($t(c,s,i,n,o))}else{let r=a();l.push(()=>r.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${n.path}"`));const u=Mc(c)?c.default:c;n.components[o]=u;const b=(u.__vccOpts||u)[t];return b&&$t(b,s,i,n,o)()}))}}return l}function Eu(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function zl(e){const t=Rt(Ci),s=Rt(Qo),i=Ke(()=>t.resolve(ns(e.to))),l=Ke(()=>{const{matched:r}=i.value,{length:c}=r,u=r[c-1],p=s.matched;if(!u||!p.length)return-1;const b=p.findIndex(us.bind(null,u));if(b>-1)return b;const k=Rl(r[c-2]);return c>1&&Rl(u)===k&&p[p.length-1].path!==k?p.findIndex(us.bind(null,r[c-2])):b}),n=Ke(()=>l.value>-1&&Pu(s.params,i.value.params)),o=Ke(()=>l.value>-1&&l.value===s.matched.length-1&&Do(s.params,i.value.params));function a(r={}){return Iu(r)?t[ns(e.replace)?"replace":"push"](ns(e.to)).catch($s):Promise.resolve()}return{route:i,href:Ke(()=>i.value.href),isActive:n,isExactActive:o,navigate:a}}const Tu=bo({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:zl,setup(e,{slots:t}){const s=et(zl(e)),{options:i}=Rt(Ci),l=Ke(()=>({[Bl(e.activeClass,i.linkActiveClass,"router-link-active")]:s.isActive,[Bl(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:s.isExactActive}));return()=>{const n=t.default&&t.default(s);return e.custom?n:yn("a",{"aria-current":s.isExactActive?e.ariaCurrentValue:null,href:s.href,onClick:s.navigate,class:l.value},n)}}}),Vu=Tu;function Iu(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Pu(e,t){for(const s in t){const i=t[s],l=e[s];if(typeof i=="string"){if(i!==l)return!1}else if(!tt(l)||l.length!==i.length||i.some((n,o)=>n!==l[o]))return!1}return!0}function Rl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Bl=(e,t,s)=>e!=null?e:t!=null?t:s,Lu=bo({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:s}){const i=Rt(Xn),l=Ke(()=>e.route||i.value),n=Rt(Sl,0),o=Ke(()=>{let c=ns(n);const{matched:u}=l.value;let p;for(;(p=u[c])&&!p.components;)c++;return c}),a=Ke(()=>l.value.matched[o.value]);Ys(Sl,Ke(()=>o.value+1)),Ys(Bu,a),Ys(Xn,l);const r=Ka();return xs(()=>[r.value,a.value,e.name],([c,u,p],[b,k,L])=>{u&&(u.instances[p]=c,k&&k!==u&&c&&c===b&&(u.leaveGuards.size||(u.leaveGuards=k.leaveGuards),u.updateGuards.size||(u.updateGuards=k.updateGuards))),c&&u&&(!k||!us(u,k)||!b)&&(u.enterCallbacks[p]||[]).forEach(N=>N(c))},{flush:"post"}),()=>{const c=l.value,u=e.name,p=a.value,b=p&&p.components[u];if(!b)return El(s.default,{Component:b,route:c});const k=p.props[u],L=k?k===!0?c.params:typeof k=="function"?k(c):k:null,q=yn(b,de({},L,t,{onVnodeUnmounted:x=>{x.component.isUnmounted&&(p.instances[u]=null)},ref:r}));return El(s.default,{Component:q,route:c})||q}}});function El(e,t){if(!e)return null;const s=e(t);return s.length===1?s[0]:s}const Mu=Lu;function Au(e){const t=uu(e.routes,e),s=e.parseQuery||zu,i=e.stringifyQuery||Cl,l=e.history,n=ws(),o=ws(),a=ws(),r=Ua(_t);let c=_t;Zt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Bn.bind(null,z=>""+z),p=Bn.bind(null,Su),b=Bn.bind(null,ln);function k(z,D){let O,Y;return Ko(z)?(O=t.getRecordMatcher(z),Y=D):Y=z,t.addRoute(Y,O)}function L(z){const D=t.getRecordMatcher(z);D&&t.removeRoute(D)}function N(){return t.getRoutes().map(z=>z.record)}function q(z){return!!t.getRecordMatcher(z)}function x(z,D){if(D=de({},D||r.value),typeof z=="string"){const h=En(s,z,D.path),y=t.resolve({path:h.path},D),v=l.createHref(h.fullPath);return de(h,y,{params:b(y.params),hash:ln(h.hash),redirectedFrom:void 0,href:v})}let O;if("path"in z)O=de({},z,{path:En(s,z.path,D.path).path});else{const h=de({},z.params);for(const y in h)h[y]==null&&delete h[y];O=de({},z,{params:p(z.params)}),D.params=p(D.params)}const Y=t.resolve(O,D),ce=z.hash||"";Y.params=u(b(Y.params));const Re=Oc(i,de({},z,{hash:ku(ce),path:Y.path})),ie=l.createHref(Re);return de({fullPath:Re,hash:ce,query:i===Cl?Ru(z.query):z.query||{}},Y,{redirectedFrom:void 0,href:ie})}function T(z){return typeof z=="string"?En(s,z,r.value.path):de({},z)}function W(z,D){if(c!==z)return ds(8,{from:D,to:z})}function j(z){return ye(z)}function le(z){return j(de(T(z),{replace:!0}))}function he(z){const D=z.matched[z.matched.length-1];if(D&&D.redirect){const{redirect:O}=D;let Y=typeof O=="function"?O(z):O;return typeof Y=="string"&&(Y=Y.includes("?")||Y.includes("#")?Y=T(Y):{path:Y},Y.params={}),de({query:z.query,hash:z.hash,params:"path"in Y?{}:z.params},Y)}}function ye(z,D){const O=c=x(z),Y=r.value,ce=z.state,Re=z.force,ie=z.replace===!0,h=he(O);if(h)return ye(de(T(h),{state:typeof h=="object"?de({},ce,h.state):ce,force:Re,replace:ie}),D||O);const y=O;y.redirectedFrom=D;let v;return!Re&&Fc(i,Y,O)&&(v=ds(16,{to:y,from:Y}),It(Y,Y,!0,!1)),(v?Promise.resolve(v):pe(y,Y)).catch($=>rt($)?rt($,2)?$:Ye($):we($,y,Y)).then($=>{if($){if(rt($,2))return ye(de({replace:ie},T($.to),{state:typeof $.to=="object"?de({},ce,$.to.state):ce,force:Re}),D||y)}else $=Se(y,Y,!0,ie,ce);return re(y,Y,$),$})}function ee(z,D){const O=W(z,D);return O?Promise.reject(O):Promise.resolve()}function pe(z,D){let O;const[Y,ce,Re]=Nu(z,D);O=Tn(Y.reverse(),"beforeRouteLeave",z,D);for(const h of Y)h.leaveGuards.forEach(y=>{O.push($t(y,z,D))});const ie=ee.bind(null,z,D);return O.push(ie),Jt(O).then(()=>{O=[];for(const h of n.list())O.push($t(h,z,D));return O.push(ie),Jt(O)}).then(()=>{O=Tn(ce,"beforeRouteUpdate",z,D);for(const h of ce)h.updateGuards.forEach(y=>{O.push($t(y,z,D))});return O.push(ie),Jt(O)}).then(()=>{O=[];for(const h of z.matched)if(h.beforeEnter&&!D.matched.includes(h))if(tt(h.beforeEnter))for(const y of h.beforeEnter)O.push($t(y,z,D));else O.push($t(h.beforeEnter,z,D));return O.push(ie),Jt(O)}).then(()=>(z.matched.forEach(h=>h.enterCallbacks={}),O=Tn(Re,"beforeRouteEnter",z,D),O.push(ie),Jt(O))).then(()=>{O=[];for(const h of o.list())O.push($t(h,z,D));return O.push(ie),Jt(O)}).catch(h=>rt(h,8)?h:Promise.reject(h))}function re(z,D,O){for(const Y of a.list())Y(z,D,O)}function Se(z,D,O,Y,ce){const Re=W(z,D);if(Re)return Re;const ie=D===_t,h=Zt?history.state:{};O&&(Y||ie?l.replace(z.fullPath,de({scroll:ie&&h&&h.scroll},ce)):l.push(z.fullPath,ce)),r.value=z,It(z,D,O,ie),Ye()}let K;function xe(){K||(K=l.listen((z,D,O)=>{if(!Os.listening)return;const Y=x(z),ce=he(Y);if(ce){ye(de(ce,{replace:!0}),Y).catch($s);return}c=Y;const Re=r.value;Zt&&Yc(bl(Re.fullPath,O.delta),wn()),pe(Y,Re).catch(ie=>rt(ie,12)?ie:rt(ie,2)?(ye(ie.to,Y).then(h=>{rt(h,20)&&!O.delta&&O.type===Ms.pop&&l.go(-1,!1)}).catch($s),Promise.reject()):(O.delta&&l.go(-O.delta,!1),we(ie,Y,Re))).then(ie=>{ie=ie||Se(Y,Re,!1),ie&&(O.delta&&!rt(ie,8)?l.go(-O.delta,!1):O.type===Ms.pop&&rt(ie,20)&&l.go(-1,!1)),re(Y,Re,ie)}).catch($s)}))}let Pe=ws(),bt=ws(),ze;function we(z,D,O){Ye(z);const Y=bt.list();return Y.length?Y.forEach(ce=>ce(z,D,O)):console.error(z),Promise.reject(z)}function fe(){return ze&&r.value!==_t?Promise.resolve():new Promise((z,D)=>{Pe.add([z,D])})}function Ye(z){return ze||(ze=!z,xe(),Pe.list().forEach(([D,O])=>z?O(z):D()),Pe.reset()),z}function It(z,D,O,Y){const{scrollBehavior:ce}=e;if(!Zt||!ce)return Promise.resolve();const Re=!O&&Xc(bl(z.fullPath,0))||(Y||!O)&&history.state&&history.state.scroll||null;return io().then(()=>ce(z,D,Re)).then(ie=>ie&&qc(ie)).catch(ie=>we(ie,z,D))}const Xe=z=>l.go(z);let Fe;const Xt=new Set,Os={currentRoute:r,listening:!0,addRoute:k,removeRoute:L,hasRoute:q,getRoutes:N,resolve:x,options:e,push:j,replace:le,go:Xe,back:()=>Xe(-1),forward:()=>Xe(1),beforeEach:n.add,beforeResolve:o.add,afterEach:a.add,onError:bt.add,isReady:fe,install(z){const D=this;z.component("RouterLink",Vu),z.component("RouterView",Mu),z.config.globalProperties.$router=D,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>ns(r)}),Zt&&!Fe&&r.value===_t&&(Fe=!0,j(l.location).catch(ce=>{}));const O={};for(const ce in _t)O[ce]=Ke(()=>r.value[ce]);z.provide(Ci,D),z.provide(Qo,et(O)),z.provide(Xn,r);const Y=z.unmount;Xt.add(z),z.unmount=function(){Xt.delete(z),Xt.size<1&&(c=_t,K&&K(),K=null,r.value=_t,Fe=!1,ze=!1),Y()}}};return Os}function Jt(e){return e.reduce((t,s)=>t.then(()=>s()),Promise.resolve())}function Nu(e,t){const s=[],i=[],l=[],n=Math.max(t.matched.length,e.matched.length);for(let o=0;ous(c,a))?i.push(a):s.push(a));const r=e.matched[o];r&&(t.matched.find(c=>us(c,r))||l.push(r))}return[s,i,l]}const Ou={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let s=0;this.panes=this.panes.map((i,l)=>(i.size=l===t?i.max:i.min,l!==t&&(s+=i.min),i)),this.panes[t].size-=s,this.$emit("pane-maximize",this.panes[t]),this.$emit("resized",this.panes.map(i=>({min:i.min,max:i.max,size:i.size})))},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:s,clientY:i}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:s-t.left,y:i-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let s={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const i=0+(this.pushOtherPanes?0:s.prevPanesSize),l=100-(this.pushOtherPanes?0:s.nextPanesSize),n=Math.max(Math.min(this.getCurrentDragPercentage(e),l),i);let o=[t,t+1],a=this.panes[o[0]]||null,r=this.panes[o[1]]||null;const c=a.max<100&&n>=a.max+s.prevPanesSize,u=r.max<100&&n<=100-(r.max+this.sumNextPanesSize(t+1));if(c||u){c?(a.size=a.max,r.size=Math.max(100-a.max-s.prevPanesSize-s.nextPanesSize,0)):(a.size=Math.max(100-r.max-s.prevPanesSize-this.sumNextPanesSize(t+1),0),r.size=r.max);return}if(this.pushOtherPanes){const p=this.doPushOtherPanes(s,n);if(!p)return;({sums:s,panesToResize:o}=p),a=this.panes[o[0]]||null,r=this.panes[o[1]]||null}a!==null&&(a.size=Math.min(Math.max(n-s.prevPanesSize-s.prevReachedMinPanes,a.min),a.max)),r!==null&&(r.size=Math.min(Math.max(100-n-s.nextPanesSize-s.nextReachedMinPanes,r.min),r.max))},doPushOtherPanes(e,t){const s=this.touch.activeSplitter,i=[s,s+1];return t{n>i[0]&&n<=s&&(l.size=l.min,e.prevReachedMinPanes+=l.min)}),e.prevPanesSize=this.sumPrevPanesSize(i[0]),i[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((l,n)=>{n>0&&n<=s&&(l.size=l.min,e.prevReachedMinPanes+=l.min)}),this.panes[i[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[i[1]].min&&(i[1]=this.findNextExpandedPane(s).index,e.nextReachedMinPanes=0,i[1]>s+1&&this.panes.forEach((l,n)=>{n>s&&n{n=s+1&&(l.size=l.min,e.nextReachedMinPanes+=l.min)}),this.panes[i[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:i}},sumPrevPanesSize(e){return this.panes.reduce((t,s,i)=>t+(it+(i>e+1?s.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(s=>s.indexs.min)||{}},findNextExpandedPane(e){return this.panes.find(s=>s.index>e+1&&s.size>s.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(t=>{const s=t.classList.contains("splitpanes__pane"),i=t.classList.contains("splitpanes__splitter");!s&&!i&&(t.parentNode.removeChild(t),console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed."))})},addSplitter(e,t,s=!1){const i=e-1,l=document.createElement("div");l.classList.add("splitpanes__splitter"),s||(l.onmousedown=n=>this.onMouseDown(n,i),typeof window<"u"&&"ontouchstart"in window&&(l.ontouchstart=n=>this.onMouseDown(n,i)),l.onclick=n=>this.onSplitterClick(n,i+1)),this.dblClickSplitter&&(l.ondblclick=n=>this.onSplitterDblClick(n,i+1)),t.parentNode.insertBefore(l,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(s=>{s.className.includes("splitpanes__splitter")&&this.removeSplitter(s)});let t=0;e.forEach(s=>{s.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,s,!0):t&&this.addSplitter(t,s),t++)})},requestUpdate({target:e,...t}){const s=this.indexedPanes[e._.uid];Object.entries(t).forEach(([i,l])=>s[i]=l)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(l=>(l.className.includes("splitpanes__pane")&&t++,l===e.$el));const s=parseFloat(e.minSize),i=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(s)?0:s,max:isNaN(i)?100:i,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((l,n)=>l.index=n),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(l=>({min:l.min,max:l.max,size:l.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(i=>i.id===e._.uid),s=this.panes.splice(t,1)[0];this.panes.forEach((i,l)=>i.index=l),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...s,index:t}}),this.$emit("pane-remove",{removed:s,panes:this.panes.map(i=>({min:i.min,max:i.max,size:i.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0;const s=[],i=[];this.panes.forEach(l=>{l.size=Math.max(Math.min(e,l.max),l.min),t-=l.size,l.size>=l.max&&s.push(l.id),l.size<=l.min&&i.push(l.id)}),t>.1&&this.readjustSizes(t,s,i)},initialPanesSizing(){let e=100;const t=[],s=[];let i=0;this.panes.forEach(n=>{e-=n.size,n.size!==null&&i++,n.size>=n.max&&t.push(n.id),n.size<=n.min&&s.push(n.id)});let l=100;e>.1&&(this.panes.forEach(n=>{n.size===null&&(n.size=Math.max(Math.min(e/(this.panesCount-i),n.max),n.min)),l-=n.size}),l>.1&&this.readjustSizes(e,t,s))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let s=100/this.panesCount,i=0;const l=[],n=[];e&&e.givenSize!==null&&(s=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(o=>{i-=o.size,o.size>=o.max&&l.push(o.id),o.size<=o.min&&n.push(o.id)}),!(Math.abs(i)<.1)&&(this.panes.forEach(o=>{e&&e.givenSize!==null&&e.id===o.id||(o.size=Math.max(Math.min(s,o.max),o.min)),i-=o.size,o.size>=o.max&&l.push(o.id),o.size<=o.min&&n.push(o.id)}),i>.1&&this.readjustSizes(i,l,n))},readjustSizes(e,t,s){let i;e>0?i=e/(this.panesCount-t.length):i=e/(this.panesCount-s.length),this.panes.forEach((l,n)=>{if(e>0&&!t.includes(l.id)){const o=Math.max(Math.min(l.size+i,l.max),l.min),a=o-l.size;e-=a,l.size=o}else if(!s.includes(l.id)){const o=Math.max(Math.min(l.size+i,l.max),l.min),a=o-l.size;e-=a,l.size=o}l.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[l.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((s,i)=>{s.ondblclick=e?l=>this.onSplitterDblClick(l,i):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return yn("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},_n=(e,t)=>{const s=e.__vccOpts||e;for(const[i,l]of t)s[i]=l;return s},Fu={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function ju(e,t,s,i,l,n){return f(),_("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=o=>n.onPaneClick(o,e._.uid)),style:ve(e.style)},[C(e.$slots,"default")],4)}const Hu=_n(Fu,[["render",ju]]);function Du(e,t,s,i,l,n){const o=Z("w-icon");return f(),A($e(s.tag),{class:R(`highlight highlight--${s.type}`)},{default:m(()=>[s.noIcon?S("",!0):(f(),A(o,{key:0},{default:m(()=>[g("material-icons "+V(n.icon),1)]),_:1})),C(e.$slots,"default")]),_:3},8,["class"])}const Wu={props:{tag:{type:String,default:"p"},type:{type:String,default:"info"},noIcon:{type:Boolean,default:!1}},computed:{icon(){switch(this.type){case"success":return"check";case"error":return"close";case"warning":return"priority_high";case"tips":return"wb_incandescent";case"info":default:return"priority_high"}}}},Ku=_n(Wu,[["render",Du]]),Uu=(e,t)=>{const s=e.__vccOpts||e;for(const[i,l]of t)s[i]=l;return s},ke={quote:/("(?:\\"|[^"])*")|('(?:\\'|[^'])*')/,comment:/(\/\/.*?(?:\n|$)|\/\*.*?\*\/)/,htmlTag:/(<([^>])*>)/,htmlentity:/(&[a-zA-Z0-9#]+;)/,punctuation:/(!==?|(?:[[\](){}.:;,+\-?=!]|<|>)+|&&|\|\|)/,number:/(-?(?:\.\d+|\d+(?:\.\d+)?))/,boolean:/\b(true|false)\b/},Vn={shell:{quote:ke.quote,comment:/(#.*?)(?:\n|$)/,keyword:/(?:^|\b)(npm|yarn|install|run)(?:\b|$)/,param:/( --(?:save|save-dev))(?:\s|$)/},xml:{doctype:/(<\!DOCTYPE.*?>)/,quote:ke.quote,comment:/(<!--.*?-->)/,htmlentity:ke.htmlentity,tag:/(<\/?)([a-zA-Z\-:]+)(.*?)(\/?>)/},html:{doctype:/(DOCTYPE)/,quote:ke.quote,comment:/(<!--.*?-->)/,htmlentity:ke.htmlentity,tag:/(<\/?)([a-z]\w*)(.*?)(\/?>)/},"html-vue":{doctype:/(DOCTYPE)/,quote:ke.quote,comment:/(<!--.*?-->)/,htmlentity:ke.htmlentity,tag:/(<\/?)([a-zA-Z][\w\d-]*)((?:.|\s)*?)(\/?>)/},pug:{text:/((?:^|\n)[ \t]*|^)\|([ \t]*)([^\n]+(?=\s*(?:\n|$)))/,text2:/([ \t]*)([.#\-\w\d]+(?:\([^)]*\))*)\.\n((?:\n+(?=\4[ \t]+)|(?=\4[ \t]+).+?(?:\n|$)*?)*)(?=\s*(?:\n|$))/,quote:ke.quote,comment:/(^|\n)([ \t]*|^)(\/\/-[ \t]*(?:[^\n]*?(?:\n\10[ \t]+[^\n]*)+|[^\n]+(?=\n|$)))/,tag:/([a-zA-Z][\w\d-]*|)([.#][a-zA-Z][-.\w\d]*|)\b(?:\((.*?)\))?(\.?)([ \t]*)([^\n]+)?(?=\n|$)/,punctuation:/(!==?|(?:[#[\]().,+\-?=!|]|<|>)+)/},css:{quote:ke.quote,comment:/(\/\*.*?\*\/)/,pseudo:/(:(?:hover|active|focus|visited|not|before|after|(?:first|last|nth)-child))/,"selector keyword vendor":/(@-(?:moz|o|webkit|ms)-(?=keyframes\s))/,"selector keyword":/((?:@(?:import|media|font-face|keyframes)|screen|print|and)(?=[\s({])|keyframes|\s(?:ul|ol|li|table|div|pre|p|a|img|br|hr|h[1-6]|em|strong|span|html|body|iframe|video|audio|input|button|form|label|fieldset|small|abbr|i|dd|dt)\b)(?=.*\{})/,variable:/(--[a-zA-Z0-9\-]+)/,selector:/((?:[.#-\w*+ >:,[\]="~\n]|>)+)(?=\s*\{)/,"attribute keyword vendor":/(-(?:moz|o|webkit|ms)-(?=transform|transition|user-select|tap-highlight-color|animation|background-size|box-shadow))/,"attribute keyword":/\b(content|float|display|position|top|left|right|bottom|(?:(?:max|min)-)?width|(?:(?:max|min|line)-)?height|font(?:-(?:family|style|size|weight|variant|stretch))?|vertical-align|color|opacity|visibility|z-index|pointer-events|user-select|transform(?:-(?:origin|style|delay|duration|property|timing-function))?|transition(?:-(?:delay|duration))?|animation(?:-(?:name|delay|duration|direction|fill-mode))?|backface-visibility|backdrop-filter|background(?:-(?:color|position|image|repeat|size|attachment|origin|clip|blend-mode))?|(?:padding|margin|border)(?:-(?:top|left|right|bottom))?|border(?:-(?:radius|color|width|style|spacing))|white-space|text-(?:align|transform|decoration|shadow|indent)|overflow(?:-(?:x|y))?|(?:letter|word)-spacing|word-break|box-(?:sizing|shadow)|stroke(?:-(?:width|opacity|dasharray|dashoffset|linecap|linejoin))?|fill|speak|outline|user-select|cursor|flex(?:-(?:direction|flow|grow|shrink|basis|wrap))?|(?:justify|align)-(?:content|self|items))(?=\s*:)/,"value keyword vendor":/(-(?:moz|o|webkit|ms)-(?=linear-gradient))/,"value keyword":/\b(inherit|initial|normal|none|unset|auto|inline(?:-(?:block|flex))?|block|flex|absolute|relative|static|fixed|sticky|hidden|visible|top|left|right|bottom|center|middle|baseline|solid|dotted|dashed|line-through|(?:over|under)line|wavy|double|(?:pre-|no)?wrap|pre|break-word|(?:upper|lower)case|capitalize|italic|bold|attr\(.*?\)|linear|ease(?:-in)?(?:-out)?|all|infinite|cubic-bezier|(?:translate|rotate)(?:[X-Z]|3d)?|skew[XY]?|scale|(?:no-)?repeat|repeat(?:-x|-y)|contain|cover|url|(?:repeating-)?(?:linear|radial)-gradient|inset|pointer|(?:flex-)?(?:start|end)|space-(?:between|evenly|around)|stretch|revert|row(?:-reverse)?|column(?:-reverse)?)(?=\s*[,;}(]|\s+[\da-z!])/,"value keyword important":/( ?!important)/,number:ke.number,color:/(transparent|#(?:[\da-fA-F]{6}|[\da-fA-F]{3})|rgba?\([\d., ]*\))/,htmlentity:/(&.*?;)/,punctuation:/([:,;{}@#()!]+|<|>)/,attribute:/([a-zA-Z-]+)(?=\s*:)/,unit:/(px|pt|cm|%|r?em|m?s|deg|vh|vw|vmin|vmax)(?=(?:\s*[;,{}})]|\s+[-\da-z#]))/},json:{quote:ke.quote,comment:ke.comment,number:ke.number,boolean:ke.boolean,punctuation:/([[\](){}:;,-]+)/},js:{quote:ke.quote,comment:ke.comment,number:/\b(\d+(?:\.\d+)?|null)\b/,boolean:ke.boolean,this:/\b(this)(?=\W)/,keyword:/\b(new|getElementsBy(?:Tag|Class|)Name|getElementById|querySelector|querySelectorAll|arguments|if|else|do|return|case|default|(?:f|F)unction|typeof|instanceof|undefined|document|window|while|for|forEach|switch|in|break|continue|delete|length|var|let|const|export|import|as|require|from|Class|constructor|Number|Boolean|String|Array|Object|RegExp|Integer|Date|Promise|async|await|(?:clear|set)(?:Timeout|Interval)|parse(?:Int|Float)|Math(?=\.)|isNaN)(?=\W)/,punctuation:/(!==?|(?:[[\]!(){}:;,+\-%*/?=]|<|>)+|\.+(?![a-zA-Z])|&&|\|\|)/,variable:/(\.?[a-zA-Z_][\w\d]*)/,htmlentity:/(&.*?;)/,"external-var":/(\$|jQuery|JSON)(?=\W|$)/},php:{quote:ke.quote,comment:ke.comment,special:/(<\?php|\?>|__(?:DIR|FILE|LINE)__)/,punctuation:ke.punctuation,number:ke.number,boolean:ke.boolean,variable:/(\$[\w\d_]+)/,keyword:/\b(define|echo|die|exit|print_r|var_dump|if|else|elseif|do|return|case|default|function|\$this|while|foreach|for|switch|in|break|continue|empty|isset|unset|parse_ini_file|session_(?:start|destroy|id)|header|json_(?:encode|decode)|error_log|(require|include)(:?_once)?|try|throw|new|Exception|catch|finally|preg_(?:match|replace)|list|strlen|substr|str_replace|array_(?:keys|values))(?=\W|$)/},sql:{quote:ke.quote,comment:/((?:\-\-|#)\s.*?(?:\n|$)|\/\*.*?\*\/)/,punctuation:ke.punctuation,number:/\b(\d+(?:\.\d+)?|null)\b/,boolean:ke.boolean,keyword:/\b(\*|CREATE|DATABASE|TABLE|GRANT|ALL|PRIVILEGES|IDENTIFIED|FLUSH|ALTER|MODIFY|DROP|TRUNCATE|CONSTRAINT|ADD|(?:(?:PRIMARY|FOREIGN|UNIQUE) )?KEY|REFERENCES|AUTO_INCREMENT|COMMENT|DEFAULT|UNSIGNED|CHARSET|COLLATE|CHARACTER|ENGINE|SQL_MODE|USE|IF|NOT|NULL|EXISTS|SELECT|UPDATE|DELETE|INSERT(?: INTO)?|VALUES|SET|FROM|WHERE|(?:ORDER|GROUP) BY|LIMIT|(?:(?:LEFT|RIGHT|INNER|OUTER) |)JOIN|AS|ON|COUNT|CASE|TO|WHEN|BETWEEN|AND|OR|IN|LIKE|CONCAT|CURRENT_TIMESTAMP)(?=\W|$)/,"var-type":/\b((?:var)?char|(?:tiny|small|medium|big)?int|decimal|float|double|real|bit|boolean|date(?:time)?|time(?:stamp)?|year|(?:tiny|medium|long)?(?:text|blob)|enum)\b/}},qu={xml:/(\s*)([a-zA-Z\d\-:]+)=("|')(.*?)\3/g,html:/(\s*)([a-zA-Z-]+)=("|')(.*?)\3/g,"html-vue":/(\s*)([@:#]?[a-zA-Z\d-]+)(?:(?:=("|')(.*?)\3)|)/g,pug:/(\s*|,)([@:#]?[a-zA-Z\d-]+)(?:(?:=("|')(.*?)\3)|)/g},Yu={shell:{quote:2},xml:{quote:2,tag:4},html:{quote:2,tag:4},"html-vue":{quote:2,tag:4},pug:{text:3,text2:3,quote:2,comment:3,tag:6},json:{quote:2},php:{quote:2},sql:{quote:2},css:{quote:2},js:{quote:2}},Gn=e=>e.map(t=>{if(!t.children||typeof t.children=="string")return t.children||"";if(Array.isArray(t.children))return Gn(t.children);if(t.children.default)return Gn(t.children.default())}).join(""),Xu={name:"sshpre",props:{language:{type:String,default:""},label:{type:[String,Boolean],default:!1},reactive:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},copyButton:{type:Boolean,default:!1}},data:()=>({knownLanguages:Object.keys(Vn),content:"",slotTexts:""}),methods:{htmlize(e){return e.replace(/&(lt|gt|amp);/g,(t,s)=>({lt:"<",gt:">",amp:"&"})[s])},unhtmlize(e){return e.replace(/[<>]/g,t=>({"<":"<",">":">"})[t])},isColorDark(e){let t,s,i,l,n,o;if(t=e.match(/rgba?\((.*),\s*(.*),\s*(.*?)(?:,\s*([^)]*))\)/))i=parseInt(t[1])<=100,l=parseInt(t[2])<=100,n=parseInt(t[3])<=100,o=parseFloat(t[4])<.3;else if(s=e.match(/#([\da-f]{3}(?:[\da-f]{3})?)/)){const a=s[1].length===3;i=parseInt(s[1][0])<=9,l=parseInt(s[1][a?1:2])<=9,n=parseInt(s[1][a?2:4])<=9}return(i&&l&&n||i&&l&&!n||!i&&l&&n)&&!o},createRegexPattern(){let e="";const t=[];for(const s in Vn[this.language]){const i=Yu[this.language][s]||1;for(let l=0;l`${l}${n}`+(a?'=':"")+(a?`${o||""}${a||""}${o||""}`:"");let s=(e[2]||"").replace(qu[this.language],t);if(this.language==="pug"){const i=(e[1]||"").replace(/#[a-z\d-]+/g,l=>`${l}`).replace(/\.[a-z\d-]+/g,l=>`${l}`);return s&&(s='('+s+')'),`${e[0]||""}${i}${s}`+(e[3]?'.':"")+(e[4]||"")+(e[5]?`${e[5]}`:"")}return`${e[0]}${e[1]}`+s+`${e[3]}`},syntaxHighlightContent(e){if(!this.knownLanguages.includes(this.language))return e;const[t,s]=this.createRegexPattern();return this.unhtmlize(e).replace(new RegExp(t,"gs"),(i,...l)=>{l=l.slice(0,l.length-2);let n;const o=this.language==="pug";let a=l.find((c,u)=>c&&(n=s[u])&&c);if(n==="quote")a=this.unhtmlize(a);else if(n==="comment")if(o){const[c,u,p]=l.slice(s.indexOf("comment"));a=`${c}${u}${this.unhtmlize(p)}`}else a=this.unhtmlize(a);else{if(n==="text"&&o)return`${l[0]}|${l[1]}${l[2]}`;if(n==="text2"&&o){const[,,,c,u,p]=l,b=this.syntaxHighlightContent(u);return`${c}${b}. ${p}`}else{if(n==="tag"&&["xml","html","html-vue","pug"].includes(this.language))return this.syntaxHighlightHtmlTag(l.slice(s.indexOf("tag")));if(n==="variable"&&a[0]==="."&&this.language==="js")return`.${a.substr(1)}`}}let r="";return n==="color"&&this.language==="css"&&(r=` style="background-color: ${a};color: #${this.isColorDark(a)?"fff":"000"}"`),n&&`${a}`||""})},checkSlots(){const e=this.$slots.default&&Gn(this.$slots.default())||"";this.slotTexts!==e&&(this.slotTexts=e,this.content=this.syntaxHighlightContent(this.slotTexts))},copyCode(e){e.target.insertAdjacentHTML("afterend",``);const t=document.getElementById("clipboard-textarea");t.select(),t.setSelectionRange(0,99999),document.execCommand("copy"),t.remove(),this.$emit("copied",this.$refs.code.innerText)}},mounted(){this.checkSlots()}},Gu=["data-type","data-label","reactive"],Ju=["innerHTML"];function Zu(e,t,s,i,l,n){return f(),_("div",{class:R(["ssh-pre",{"ssh-pre--dark":s.dark}]),"data-type":s.language,"data-label":s.label||null,reactive:s.reactive&&n.checkSlots()||null},[s.copyButton?(f(),_("button",{key:0,class:"ssh-pre__copy",onClick:t[0]||(t[0]=(...o)=>n.copyCode&&n.copyCode(...o))},[C(e.$slots,"copy-button",{},()=>[g("Copy")])])):S("",!0),g(),d("pre",{ref:"code",class:"ssh-pre__content",innerHTML:e.content},null,8,Ju)],10,Gu)}const Qu=Uu(Xu,[["render",Zu]]);const ed={class:"page-container"},td=Vt('

Splitpanes

A Vue.js reliable, simple and touch-ready panes splitter / resizer.

Features

',2),sd={class:"checklist"},nd=d("strong",null,"Supports Vue 2 & Vue 3",-1),id=d("h2",{class:"mt12 mb4 title2"},"Github project \xA0&\xA0 important notes",-1),ld={href:"https://github.com/antoniandre/splitpanes",target:"_blank"},od=d("a",{class:"orange",href:"https://blog.vuejs.org/posts/vue-3-as-the-new-default.html",target:"_blank",style:{"text-decoration":"underline"}},"Vue 3 is the new default",-1),ad=d("span",{class:"title2 ml1"},"\u{1F64C}",-1),rd=d("br",null,null,-1),cd=d("code",null,[g("npm i splitpanes@"),d("strong",null,"legacy")],-1),ud=d("a",{class:"pink mx2",href:"https://www.paypal.me/antoniandre1",target:"_blank",style:{"text-decoration":"underline"}},[d("strong",null,"Support the project")],-1),dd=d("a",{class:"pink ml2",href:"https://github.com/sponsors/antoniandre",target:"_blank",style:{"text-decoration":"underline"}},[d("strong",null,"Sponsor the author")],-1),hd=d("div",null,[g("Thank you so much to all the backers! "),d("span",{class:"title2 ml1"},"\u{1F64F}")],-1),pd={class:"mr4 blue-light1",viewBox:"0 0 725 477",style:{width:"50px",stroke:"#497ca2","stroke-width":"5px"}},fd=d("path",{fill:"#497ca2",d:"M449 0c-78 5-152 39-217 82-19 13-37 26-54 40-39 1-77 15-110 34-34 21-53 60-61 99-11 52-8 108 6 159 7 23 16 46 33 63 4-4 13-4 13-11-1-5-7-8-9-14-27-48-32-108-11-159 13-32 36-63 68-77 19-9 42-7 58 6 6 7 18 4 24-2 6-4 11-10 19-10-24 25-39 60-38 95 1 15 3 31 8 45 16 36 41 69 76 89 5 2 10 6 16 7 5-2 14-5 14-12-4-9-14-12-21-18-27-23-56-48-67-82-9-29-1-60 8-88 7-15 21-32 39-29 15 1 28 13 43 8 11-5 13-17 16-27 5-17 3-38-10-51-16-18-40-23-62-25l-11-2c23-19 53-26 81-31 21-3 43-5 64-2 18 3 28 21 42 31-33 47-57 102-56 159a170 170 0 0086 149c6-1 13-7 10-14-5-11-17-16-25-25-33-30-52-75-50-121 1-29 11-58 24-84 12-25 25-52 47-71 9-8 22-13 33-7 20 8 42 14 63 13-35 27-55 70-64 113-9 44-7 91 12 133 15 37 45 68 81 85 32 16 67 24 101 27 18 1 36 2 53-4 4-1 6-7 2-9-13-6-28-4-42-6-45-5-92-16-127-45-34-28-54-71-60-114-5-47 7-97 34-137 11-15 26-31 45-34 14-1 25 12 31 23 6 12 16 24 29 28 20-10 40-26 43-50 2-17-6-34-14-49-15-25-40-43-69-48-20-5-41-2-61-6-22-21-54-24-83-24zm6 21c22 0 48 5 62 25 4 7 8 16 8 24-1 10-10 22-21 19-9-7-18-14-30-16-14-4-31-1-43 8-6 6-17 8-24 2-9-6-17-15-28-17-27-7-54 1-81 6a364 364 0 01157-51zm117 29c33 0 66 25 72 58 3 12 3 28-8 35-3 2-6 4-8 1-8-12-12-27-23-37-3-7-12-8-19-9-13-2-26 0-39-4 7-7 6-17 4-25l-3-16 24-3zm-372 92l46 2c18 2 33 16 34 34 1 7 1 17-6 21-6 0-12-4-18-6-21-8-46-14-67-3-6 2-11 9-17 5-10-4-18-14-30-12-30 1-56 21-77 42-16 17-30 37-43 56 0-39 17-80 49-104 26-22 61-30 94-34l35-1z"},null,-1),md=[fd],gd=d("strong",null,[g("Check out my UI framework for Vue (2 & 3)!"),d("a",{class:"title2 ml4",href:"https://antoniandre.github.io/wave-ui",target:"_blank",style:{width:"50px",color:"#1471b8","text-decoration":"underline"}},[d("strong",null,"Wave UI")])],-1),bd={class:"title4 mt12 pt12 mb2"},yd={class:"ml1 d-inline-flex align-center",href:"https://codepen.io/antoniandre/pen/XybPKP",target:"_blank"},wd=d("span",null,[g("1"),d("br"),d("em",{class:"specs"},"I have a min width of 20%")],-1),_d=d("span",null,"2",-1),vd=d("span",null,"3",-1),xd=d("span",null,"4",-1),kd=d("span",null,"5",-1),$d=Vt('

Installation

You have two options: NPM or <script> tag.

Via NPM

',3),Cd=d("span",{class:"mx2"},"or",-1),Sd={class:"mt2"},zd=d("a",{class:"ml2",href:"https://codepen.io/antoniandre/pen/LYNKGWV",target:"_blank"},"Vue 3 example",-1),Rd=d("a",{class:"mx2",href:"https://codepen.io/antoniandre/pen/XybPKP",target:"_blank"},"Vue 2 example",-1),Bd=d("div",{class:"mt6"},"Then import the component and CSS:",-1),Ed=d("h3",{class:"mt12"},[g("Via "),d("span",{class:"code"}," +