ars-tools/dist/assets/index-46b44c7e.js

14 lines
128 KiB
JavaScript
Raw Normal View History

2023-12-15 23:33:23 +08:00
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();function Jr(e,t){const n=Object.create(null),r=e.split(",");for(let s=0;s<r.length;s++)n[r[s]]=!0;return t?s=>!!n[s.toLowerCase()]:s=>!!n[s]}const ae={},Nt=[],He=()=>{},Jl=()=>!1,Gn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Xr=e=>e.startsWith("onUpdate:"),me=Object.assign,Qr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Xl=Object.prototype.hasOwnProperty,ee=(e,t)=>Xl.call(e,t),j=Array.isArray,nn=e=>Xn(e)==="[object Map]",Ql=e=>Xn(e)==="[object Set]",z=e=>typeof e=="function",de=e=>typeof e=="string",Jn=e=>typeof e=="symbol",ce=e=>e!==null&&typeof e=="object",mi=e=>(ce(e)||z(e))&&z(e.then)&&z(e.catch),ea=Object.prototype.toString,Xn=e=>ea.call(e),ta=e=>Xn(e).slice(8,-1),na=e=>Xn(e)==="[object Object]",es=e=>de(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Fn=Jr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Qn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ra=/-(\w)/g,Ge=Qn(e=>e.replace(ra,(t,n)=>n?n.toUpperCase():"")),sa=/\B([A-Z])/g,Yt=Qn(e=>e.replace(sa,"-$1").toLowerCase()),yn=Qn(e=>e.charAt(0).toUpperCase()+e.slice(1)),pr=Qn(e=>e?`on${yn(e)}`:""),Mt=(e,t)=>!Object.is(e,t),In=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Nn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Tr=e=>{const t=parseFloat(e);return isNaN(t)?e:t},oa=e=>{const t=de(e)?Number(e):NaN;return isNaN(t)?e:t};let Ds;const Rr=()=>Ds||(Ds=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ts(e){if(j(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=de(r)?ca(r):ts(r);if(s)for(const o in s)t[o]=s[o]}return t}else if(de(e)||ce(e))return e}const ia=/;(?![^(]*\))/g,la=/:([^]+)/,aa=/\/\*[^]*?\*\//g;function ca(e){const t={};return e.replace(aa,"").split(ia).forEach(n=>{if(n){const r=n.split(la);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ns(e){let t="";if(de(e))t=e;else if(j(e))for(let n=0;n<e.length;n++){const r=ns(e[n]);r&&(t+=r+" ")}else if(ce(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const ua="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",fa=Jr(ua);function gi(e){return!!e||e===""}let Ae;class vi{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ae,!t&&Ae&&(this.index=(Ae.scopes||(Ae.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ae;try{return Ae=this,t()}finally{Ae=n}}}on(){Ae=this}off(){Ae=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0,this._active=!1}}}function yi(e){return new vi(e)}function da(e,t=Ae){t&&t.active&&t.effects.push(e)}function ha(){return Ae}function pa(e){Ae&&Ae.cleanups.push(e)}const rs=e=>{const t=new Set(e);return t.w=0,t.n=0,t},bi=e=>(e.w&mt)>0,_i=e=>(e.n&mt)>0,ma=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=mt},ga=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){co
Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function gn(e){const{h:t,s:n,v:r,a:s}=e,o=l=>{const a=(l+t/60)%6;return r-r*n*Math.max(Math.min(a,4-a,1),0)},i=[o(5),o(3),o(1)].map(l=>Math.round(l*255));return{r:i[0],g:i[1],b:i[2],a:s}}function $o(e){return gn(Al(e))}function Al(e){const{h:t,s:n,l:r,a:s}=e,o=r+n*Math.min(r,1-r),i=o===0?0:2-2*r/o;return{h:t,s:i,v:o,a:s}}function Mn(e){const t=Math.round(e).toString(16);return("00".substr(0,2-t.length)+t).toUpperCase()}function rf(e){let{r:t,g:n,b:r,a:s}=e;return`#${[Mn(t),Mn(n),Mn(r),s!==void 0?Mn(Math.round(s*255)):""].join("")}`}function sf(e){e=of(e);let[t,n,r,s]=$u(e,2).map(o=>parseInt(o,16));return s=s===void 0?s:s/255,{r:t,g:n,b:r,a:s}}function of(e){return e.startsWith("#")&&(e=e.slice(1)),e=e.replace(/([^0-9a-f])/gi,"F"),(e.length===3||e.length===4)&&(e=e.split("").map(t=>t+t).join("")),e.length!==6&&(e=Ao(Ao(e,6),8,"F")),e}function lf(e,t){const n=Cl(Ps(e));return n[0]=n[0]+t*10,xl(El(n))}function af(e,t){const n=Cl(Ps(e));return n[0]=n[0]-t*10,xl(El(n))}function cf(e){const t=et(e);return Ps(t)[1]}function uf(e){const t=Math.abs(Do(et(0),et(e)));return Math.abs(Do(et(16777215),et(e)))>Math.min(t,50)?"#fff":"#000"}function vt(e,t){return n=>Object.keys(e).reduce((r,s)=>{const i=typeof e[s]=="object"&&e[s]!=null&&!Array.isArray(e[s])?e[s]:{type:e[s]};return n&&s in n?r[s]={...i,default:n[s]}:r[s]=i,t&&!r[s].source&&(r[s].source=t),r},{})}const Pl=vt({class:[String,Array],style:{type:[String,Array,Object],default:null}},"component"),Vt=Symbol.for("vuetify:defaults");function ff(e){return Oe(e)}function Ss(){const e=ye(Vt);if(!e)throw new Error("[Vuetify] Could not find defaults instance");return e}function fp(e,t){const n=Ss(),r=Oe(e),s=K(()=>{if(Ie(t==null?void 0:t.disabled))return n.value;const i=Ie(t==null?void 0:t.scoped),l=Ie(t==null?void 0:t.reset),a=Ie(t==null?void 0:t.root);if(r.value==null&&!(i||l||a))return n.value;let c=De(r.value,{prev:n.value});if(i)return c;if(l||a){const u=Number(l||1/0);for(let f=0;f<=u&&!(!c||!("prev"in c));f++)c=c.prev;return c&&typeof a=="string"&&a in c&&(c=De(De(c,{prev:c}),c[a])),c}return c.prev?De(c.prev,c):c});return pt(Vt,s),s}function df(e,t){var n,r;return typeof((n=e.props)==null?void 0:n[t])<"u"||typeof((r=e.props)==null?void 0:r[Ot(t)])<"u"}function hf(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ss();const r=yt("useDefaults");if(t=t??r.type.name??r.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const s=K(()=>{var a;return(a=n.value)==null?void 0:a[e._as??t]}),o=new Proxy(e,{get(a,c){var f,h,v,g;const u=Reflect.get(a,c);return c==="class"||c==="style"?[(f=s.value)==null?void 0:f[c],u].filter(_=>_!=null):typeof c=="string"&&!df(r.vnode,c)?((h=s.value)==null?void 0:h[c])??((g=(v=n.value)==null?void 0:v.global)==null?void 0:g[c])??u:u}}),i=nt();sr(()=>{if(s.value){const a=Object.entries(s.value).filter(c=>{let[u]=c;return u.startsWith(u[0].toUpperCase())});i.value=a.length?Object.fromEntries(a):void 0}else i.value=void 0});function l(){const a=mf(Vt,r);pt(Vt,K(()=>i.value?De((a==null?void 0:a.value)??{},i.value):a==null?void 0:a.value))}return{props:o,provideSubDefaults:l}}function bn(e){if(e._setup=e._setup??e.setup,!e.name)return e;if(e._setup){e.props=vt(e.props??{},e.name)();const t=Object.keys(e.props).filter(n=>n!=="class"&&n!=="style");e.filterProps=function(r){return Fu(r,t)},e.props._as=String,e.setup=function(r,s){const o=Ss();if(!o.value)return e._setup(r,s);const{props:i,provideSubDefaults:l}=hf(r,r._as??e.name,o),a=e._setup(i,s);return l(),a}}return e}function Ts(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(e?bn:vs)(t)}function yt(e,t){const n=Es();if(!n)throw new Error(`[Vuetify] ${e} ${t||"must be called from inside a setup function"}`);return n}function pf(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const t=yt(e).type;return Ot((t==null?void 0:t.aliasName)||(t==null?void
`,...n.map(r=>` ${r};
`),`}
`)}function qo(e){const t=e.dark?2:1,n=e.dark?1:2,r=[];for(const[s,o]of Object.entries(e.colors)){const i=et(o);r.push(`--v-theme-${s}: ${i.r},${i.g},${i.b}`),s.startsWith("on-")||r.push(`--v-theme-${s}-overlay-multiplier: ${cf(o)>.18?t:n}`)}for(const[s,o]of Object.entries(e.variables)){const i=typeof o=="string"&&o.startsWith("#")?et(o):void 0,l=i?`${i.r}, ${i.g}, ${i.b}`:void 0;r.push(`--v-${s}: ${l??o}`)}return r}function ld(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const n=Oe(),r=Oe();if(Re){const s=new ResizeObserver(o=>{e==null||e(o,s),o.length&&(t==="content"?r.value=o[0].contentRect:r.value=o[0].target.getBoundingClientRect())});ys(()=>{s.disconnect()}),je(n,(o,i)=>{i&&(s.unobserve(Eo(i)),r.value=void 0),o&&s.observe(Eo(o))},{flush:"post"})}return{resizeRef:n,contentRect:tr(r)}}const Yr=Symbol.for("vuetify:layout"),ad=Symbol.for("vuetify:layout-item"),Zo=1e3,cd=vt({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout");function ud(){const e=ye(Yr);if(!e)throw new Error("[Vuetify] Could not find injected layout");return{getLayoutItem:e.getLayoutItem,mainRect:e.mainRect,mainStyles:e.mainStyles}}const fd=(e,t,n,r)=>{let s={top:0,left:0,right:0,bottom:0};const o=[{id:"",layer:{...s}}];for(const i of e){const l=t.get(i),a=n.get(i),c=r.get(i);if(!l||!a||!c)continue;const u={...s,[l.value]:parseInt(s[l.value],10)+(c.value?parseInt(a.value,10):0)};o.push({id:i,layer:u}),s=u}return o};function dd(e){const t=ye(Yr,null),n=K(()=>t?t.rootZIndex.value-100:Zo),r=Oe([]),s=Se(new Map),o=Se(new Map),i=Se(new Map),l=Se(new Map),a=Se(new Map),{resizeRef:c,contentRect:u}=ld(),f=K(()=>{const H=new Map,Y=e.overlaps??[];for(const S of Y.filter(U=>U.includes(":"))){const[U,B]=S.split(":");if(!r.value.includes(U)||!r.value.includes(B))continue;const X=s.get(U),F=s.get(B),G=o.get(U),fe=o.get(B);!X||!F||!G||!fe||(H.set(B,{position:X.value,amount:parseInt(G.value,10)}),H.set(U,{position:F.value,amount:-parseInt(fe.value,10)}))}return H}),h=K(()=>{const H=[...new Set([...i.values()].map(S=>S.value))].sort((S,U)=>S-U),Y=[];for(const S of H){const U=r.value.filter(B=>{var X;return((X=i.get(B))==null?void 0:X.value)===S});Y.push(...U)}return fd(Y,s,o,l)}),v=K(()=>!Array.from(a.values()).some(H=>H.value)),g=K(()=>h.value[h.value.length-1].layer),_=K(()=>({"--v-layout-left":Tn(g.value.left),"--v-layout-right":Tn(g.value.right),"--v-layout-top":Tn(g.value.top),"--v-layout-bottom":Tn(g.value.bottom),...v.value?void 0:{transition:"none"}})),M=K(()=>h.value.slice(1).map((H,Y)=>{let{id:S}=H;const{layer:U}=h.value[Y],B=o.get(S),X=s.get(S);return{id:S,...U,size:Number(B.value),position:X.value}})),R=H=>M.value.find(Y=>Y.id===H),O=yt("createLayout"),V=nt(!1);lr(()=>{V.value=!0}),pt(Yr,{register:(H,Y)=>{let{id:S,order:U,position:B,layoutSize:X,elementSize:F,active:G,disableTransitions:fe,absolute:$e}=Y;i.set(S,U),s.set(S,B),o.set(S,X),l.set(S,G),fe&&a.set(S,fe);const te=$n(ad,O==null?void 0:O.vnode).indexOf(H);te>-1?r.value.splice(te,0,S):r.value.push(S);const Q=K(()=>M.value.findIndex(he=>he.id===S)),Ee=K(()=>n.value+h.value.length*2-Q.value*2),Ke=K(()=>{const he=B.value==="left"||B.value==="right",Ve=B.value==="right",st=B.value==="bottom",bt={[B.value]:0,zIndex:Ee.value,transform:`translate${he?"X":"Y"}(${(G.value?0:-110)*(Ve||st?-1:1)}%)`,position:$e.value||n.value!==Zo?"absolute":"fixed",...v.value?void 0:{transition:"none"}};if(!V.value)return bt;const ie=M.value[Q.value];if(!ie)throw new Error(`[Vuetify] Could not find layout item "${S}"`);const b=f.value.get(S);return b&&(ie[b.position]+=b.amount),{...bt,height:he?`calc(100% - ${ie.top}px - ${ie.bottom}px)`:F.value?`${F.value}px`:void 0,left:Ve?void 0:`${ie.left}px`,right:Ve?`${ie.right}px`:void 0,top:B.value!=="bottom"?`${ie.top}px`:void 0,bottom:B.value!=="top"?`${ie.bottom}px`:void 0,width:he?F.value?`${F.value}px`:void 0:`calc(100% - ${ie.left}px - ${ie.right}px)`}}),Me=K(()=>({zIndex:Ee.value-1}));return{layoutItemStyles:Ke,layoutItemScrimStyles:Me,zIndex:Ee}},unregister:H=>{i.delete(H),s.delete(H),o.delete(H),l.delete(H),a.delete(H),r.value=r.valu
* pinia v2.1.7
* (c) 2023 Eduardo San Martin Morote
* @license MIT
*/const gd=Symbol();var Go;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Go||(Go={}));function vd(){const e=yi(!0),t=e.run(()=>Oe({}));let n=[],r=[];const s=as({install(o){s._a=o,o.provide(gd,s),o.config.globalProperties.$pinia=s,r.forEach(i=>n.push(i)),r=[]},use(o){return!this._a&&!md?r.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const yd=vd(),bd="modulepreload",_d=function(e){return"/"+e},Jo={},Xo=function(t,n,r){if(!n||n.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=_d(o),o in Jo)return;Jo[o]=!0;const i=o.endsWith(".css"),l=i?'[rel="stylesheet"]':"";if(!!r)for(let u=s.length-1;u>=0;u--){const f=s[u];if(f.href===o&&(!i||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${l}`))return;const c=document.createElement("link");if(c.rel=i?"stylesheet":bd,i||(c.as="script",c.crossOrigin=""),c.href=o,document.head.appendChild(c),i)return new Promise((u,f)=>{c.addEventListener("load",u),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})};/*!
* vue-router v4.2.5
* (c) 2023 Eduardo San Martin Morote
* @license MIT
*/const Lt=typeof window<"u";function wd(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const re=Object.assign;function Ar(e,t){const n={};for(const r in t){const s=t[r];n[r]=Ue(s)?s.map(e):e(s)}return n}const ln=()=>{},Ue=Array.isArray,Cd=/\/$/,Ed=e=>e.replace(Cd,"");function Pr(e,t,n="/"){let r,s={},o="",i="";const l=t.indexOf("#");let a=t.indexOf("?");return l<a&&l>=0&&(a=-1),a>-1&&(r=t.slice(0,a),o=t.slice(a+1,l>-1?l:t.length),s=e(o)),l>-1&&(r=r||t.slice(0,l),i=t.slice(l,t.length)),r=Sd(r??t,n),{fullPath:r+(o&&"?")+o+i,path:r,query:s,hash:i}}function xd(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Qo(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Ad(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Wt(t.matched[r],n.matched[s])&&Bl(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Wt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Bl(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Pd(e[n],t[n]))return!1;return!0}function Pd(e,t){return Ue(e)?ei(e,t):Ue(t)?ei(t,e):e===t}function ei(e,t){return Ue(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Sd(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let o=n.length-1,i,l;for(i=0;i<r.length;i++)if(l=r[i],l!==".")if(l==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var vn;(function(e){e.pop="pop",e.push="push"})(vn||(vn={}));var an;(function(e){e.back="back",e.forward="forward",e.unknown=""})(an||(an={}));function Td(e){if(!e)if(Lt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Ed(e)}const Rd=/^[^#]+#/;function Od(e,t){return e.replace(Rd,"#")+t}function Md(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 hr=()=>({left:window.pageXOffset,top:window.pageYOffset});function Fd(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=Md(s,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 ti(e,t){return(history.state?history.state.position-t:-1)+e}const qr=new Map;function Id(e,t){qr.set(e,t)}function Dd(e){const t=qr.get(e);return qr.delete(e),t}let kd=()=>location.protocol+"//"+location.host;function Hl(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let l=s.includes(e.slice(o))?e.slice(o).length:1,a=s.slice(l);return a[0]!=="/"&&(a="/"+a),Qo(a,"")}return Qo(n,e)+r+s}function $d(e,t,n,r){let s=[],o=[],i=null;const l=({state:h})=>{const v=Hl(e,location),g=n.value,_=t.value;let M=0;if(h){if(n.value=v,t.value=h,i&&i===g){i=null;return}M=_?h.position-_.position:0}else r(v);s.forEach(R=>{R(n.value,g,{delta:M,type:vn.pop,direction:M?M>0?an.forward:an.back:an.unknown})})};function a(){i=n.value}function c(h){s.push(h);const v=()=>{const g=s.indexOf(h);g>-1&&s.splice(g,1)};return o.push(v),v}function u(){const{history:h}=window;h.state&&h.replaceState(re({},h.state,{scroll:hr()}),"")}function f(){for(const h of o)h();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:a,listen:c,destroy:f}}function ni(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?hr():null}}function Ld(e){const{history:t,location:n}=window,r={value:Hl(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replace