mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-05 22:07:10 -04:00
6 lines
20 KiB
JavaScript
6 lines
20 KiB
JavaScript
![]() |
import{a4 as Ze,q as F,c as T,e as Be,i as H,d as qe,h as He,n as Je,p as ie,r as et,A as tt}from"./chunk-449c23a2.js";/*!
|
||
|
* vue-router v4.1.6
|
||
|
* (c) 2022 Eduardo San Martin Morote
|
||
|
* @license MIT
|
||
|
*/const G=typeof window<"u";function nt(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const k=Object.assign;function ae(e,t){const n={};for(const r in t){const c=t[r];n[r]=N(c)?c.map(e):e(c)}return n}const W=()=>{},N=Array.isArray,rt=/\/$/,st=e=>e.replace(rt,"");function le(e,t,n="/"){let r,c={},u="",m="";const d=t.indexOf("#");let a=t.indexOf("?");return d<a&&d>=0&&(a=-1),a>-1&&(r=t.slice(0,a),u=t.slice(a+1,d>-1?d:t.length),c=e(u)),d>-1&&(r=r||t.slice(0,d),m=t.slice(d,t.length)),r=at(r??t,n),{fullPath:r+(u&&"?")+u+m,path:r,query:c,hash:m}}function ot(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function ct(e,t,n){const r=t.matched.length-1,c=n.matched.length-1;return r>-1&&r===c&&K(t.matched[r],n.matched[c])&&ze(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function K(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ze(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!it(e[n],t[n]))return!1;return!0}function it(e,t){return N(e)?Se(e,t):N(t)?Se(t,e):e===t}function Se(e,t){return N(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function at(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let c=n.length-1,u,m;for(u=0;u<r.length;u++)if(m=r[u],m!==".")if(m==="..")c>1&&c--;else break;return n.slice(0,c).join("/")+"/"+r.slice(u-(u===r.length?1:0)).join("/")}var Y;(function(e){e.pop="pop",e.push="push"})(Y||(Y={}));var Z;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Z||(Z={}));const ue="";function lt(e){if(!e)if(G){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),st(e)}const ut=/^[^#]+#/;function ft(e,t){return e.replace(ut,"#")+t}function ht(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const dt=()=>({left:window.pageXOffset,top:window.pageYOffset});function pt(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),c=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!c)return;t=ht(c,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 ke(e,t){return(history.state?history.state.position-t:-1)+e}const he=new Map;function mt(e,t){he.set(e,t)}function gt(e){const t=he.get(e);return he.delete(e),t}function nn(e=""){let t=[],n=[ue],r=0;e=lt(e);function c(d){r++,r===n.length||n.splice(r),n.push(d)}function u(d,a,{direction:l,delta:o}){const i={direction:l,delta:o,type:Y.pop};for(const h of t)h(d,a,i)}const m={location:ue,state:{},base:e,createHref:ft.bind(null,e),replace(d){n.splice(r--,1),c(d)},push(d,a){c(d)},listen(d){return t.push(d),()=>{const a=t.indexOf(d);a>-1&&t.splice(a,1)}},destroy(){t=[],n=[ue],r=0},go(d,a=!0){const l=this.location,o=d<0?Z.back:Z.forward;r=Math.max(0,Math.min(r+d,n.length-1)),a&&u(this.location,l,{direction:o,delta:d})}};return Object.defineProperty(m,"location",{enumerable:!0,get:()=>n[r]}),m}function yt(e){return typeof e=="string"||e&&typeof e=="object"}function Ge(e){return typeof e=="string"||typeof e=="symbol"}const j={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Ke=Symbol("");var Ce;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Ce||(Ce={}));function L(e,t){return k(new Error,{type:e,[Ke]:!0},t)}function I(e,t){return e instanceof Error&&Ke in e&&(t==null||!!(e.type&t))}const Ae="[^/]+?",Rt={sensitive:!1,strict:!1,start:!0,end:!0},vt=/[.+*?^${}()[\]/\\]/g;function Et(e,t){const n=k({},Rt,t),r=[];let c=n.start?"^":"";const u=[];for(const l of e){const o=l.length?[]:[90];n.strict&&!l.length&&(c+="/");for(let i=0;i<l.length;i++){const h=l[i];let y=40+(n.sensitive?.25:0);if(h.type===0)i||(c+="/"),c+=h.val
|