MCPcopy
hub / github.com/helloxz/onenav / h

Function h

templates/universal/assets/index.js:5–5  ·  view source on GitHub ↗
(p,g)

Source from the content-addressed store, hash-verified

3 * (c) 2022 Eduardo San Martin Morote
4 * @license MIT
5 */let Xc;const Do=e=>Xc=e,eu=Symbol();function Ls(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Tr;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Tr||(Tr={}));function bh(){const e=ec(!0),t=e.run(()=>ee({}));let n=[],r=[];const o=Gn({install(s){Do(o),o._a=s,s.provide(eu,o),s.config.globalProperties.$pinia=o,r.forEach(i=>n.push(i)),r=[]},use(s){return!this._a&&!yh?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const tu=()=>{};function ja(e,t,n,r=tu){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&ct()&&Fo(o),o}function zn(e,...t){e.slice().forEach(n=>{n(...t)})}function Fs(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];Ls(o)&&Ls(r)&&e.hasOwnProperty(n)&&!De(r)&&!vn(r)?e[n]=Fs(o,r):e[n]=r}return e}const _h=Symbol();function wh(e){return!Ls(e)||!e.hasOwnProperty(_h)}const{assign:fn}=Object;function Eh(e){return!!(De(e)&&e.effect)}function xh(e,t,n,r){const{state:o,actions:s,getters:i}=t,a=n.state.value[e];let l;function c(){a||(n.state.value[e]=o?o():{});const u=vc(n.state.value[e]);return fn(u,s,Object.keys(i||{}).reduce((f,d)=>(f[d]=Gn(L(()=>{Do(n);const h=n._s.get(e);return i[d].call(h,h)})),f),{}))}return l=nu(e,c,t,n,r,!0),l.$reset=function(){const f=o?o():{};this.$patch(d=>{fn(d,f)})},l}function nu(e,t,n={},r,o,s){let i;const a=fn({actions:{}},n),l={deep:!0};let c,u,f=Gn([]),d=Gn([]),h;const p=r.state.value[e];!s&&!p&&(r.state.value[e]={}),ee({});let g;function w(A){let R;c=u=!1,typeof A=="function"?(A(r.state.value[e]),R={type:Tr.patchFunction,storeId:e,events:h}):(Fs(r.state.value[e],A),R={type:Tr.patchObject,payload:A,storeId:e,events:h});const V=g=Symbol();yt().then(()=>{g===V&&(c=!0)}),u=!0,zn(f,R,r.state.value[e])}const y=tu;function x(){i.stop(),f=[],d=[],r._s.delete(e)}function T(A,R){return function(){Do(r);const V=Array.from(arguments),I=[],F=[];function S(G){I.push(G)}function B(G){F.push(G)}zn(d,{args:V,name:A,store:j,after:S,onError:B});let U;try{U=R.apply(this&&this.$id===e?this:j,V)}catch(G){throw zn(F,G),G}return U instanceof Promise?U.then(G=>(zn(I,G),G)).catch(G=>(zn(F,G),Promise.reject(G))):(zn(I,U),U)}}const E={_p:r,$id:e,$onAction:ja.bind(null,d),$patch:w,$reset:y,$subscribe(A,R={}){const V=ja(f,A,R.detached,()=>I()),I=i.run(()=>ye(()=>r.state.value[e],F=>{(R.flush==="sync"?u:c)&&A({storeId:e,type:Tr.direct,events:h},F)},fn({},l,R)));return V},$dispose:x},j=Kt(E);r._s.set(e,j);const H=r._e.run(()=>(i=ec(),i.run(()=>t())));for(const A in H){const R=H[A];if(De(R)&&!Eh(R)||vn(R))s||(p&&wh(R)&&(De(R)?R.value=p[A]:Fs(R,p[A])),r.state.value[e][A]=R);else if(typeof R=="function"){const V=T(A,R);H[A]=V,a.actions[A]=R}}return fn(j,H),fn(Te(j),H),Object.defineProperty(j,"$state",{get:()=>r.state.value[e],set:A=>{w(R=>{fn(R,A)})}}),r._p.forEach(A=>{fn(j,i.run(()=>A({store:j,app:r._a,pinia:r,options:a})))}),p&&s&&n.hydrate&&n.hydrate(j.$state,p),c=!0,u=!0,j}function ru(e,t,n){let r,o;const s=typeof t=="function";typeof e=="string"?(r=e,o=s?n:t):(o=e,r=e.id);function i(a,l){const c=ct();return a=a||c&&Se(eu),a&&Do(a),a=Xc,a._s.has(r)||(s?nu(r,t,o,a):xh(r,o,a)),a._s.get(r)}return i.$id=r,i}function ou(e,t){return function(){return e.apply(t,arguments)}}const{toString:su}=Object.prototype,{getPrototypeOf:xi}=Object,Ci=(e=>t=>{const n=su.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),tn=e=>(e=e.toLowerCase(),t=>Ci(t)===e),zo=e=>t=>typeof t===e,{isArray:Kr}=Array,js=zo("undefined");function Ch(e){return e!==null&&!js(e)&&e.constructor!==null&&!js(e.constructor)&&dr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const iu=tn("ArrayBuffer");function Sh(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&iu(e.buffer),t}const Oh=zo("string"),dr=zo("function"),au=zo("number"),lu=e=>e!==null&&typeof e=="object",Th=e=>e===!0||e===!1,ho=e=>{if(Ci(e)!=="object")return!1;const t=xi(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},kh=tn("Date"),Ph=tn("File"),Rh=tn("Blob"),Ah=tn("FileList"),$h=e=>lu(e)&&dr(e.pipe),Mh=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||su.call(e)===t||dr(e.toString)&&e.toString()===t)},Ih=tn("URLSearchParams"),Nh=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Uo(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Kr(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let a;for(r=0;r<i;r++)a=s[r],t.call(null,e[a],a,e)}}function Hs(){const e={},t=(n,r)=>{ho(e[r])&&ho(n)?e[r]=Hs(e[r],n):ho(n)?e[r]=Hs({},n):Kr(n)?e[r]=n.slice():e[r]=n};for(let n=0,r=arguments.length;n<r;n++)arguments[n]&&Uo(arguments[n],t);return e}const Bh=(e,t,n,{allOwnKeys:r}={})=>(Uo(t,(o,s)=>{n&&dr(o)?e[s]=ou(o,n):e[s]=o},{allOwnKeys:r}),e),Lh=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Fh=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},jh=(e,t,n,r)=>{let o,s,i;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!r||r(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&xi(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Hh=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Dh=e=>{if(!e)return null;if(Kr(e))return e;let t=e.length;if(!au(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},zh=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&xi(Uint8Array)),Uh=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},Kh=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Vh=tn("HTMLFormElement"),Wh=e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Ha=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),qh=tn("RegExp"),cu=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Uo(n,(o,s)=>{t(o,s,e)!==!1&&(r[s]=o)}),Object.defineProperties(e,r)},Jh=e=>{cu(e,(t,n)=>{const r=e[n];if(!!dr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not read-only method '"+n+"'")})}})},Qh=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return Kr(e)?r(e):r(String(e).split(t)),n},Zh=()=>{},Yh=(e,t)=>(e=+e,Number.isFinite(e)?e:t),$={isArray:Kr,isArrayBuffer:iu,isBuffer:Ch,isFormData:Mh,isArrayBufferView:Sh,isString:Oh,isNumber:au,isBoolean:Th,isObject:lu,isPlainObject:ho,isUndefined:js,isDate:kh,isFile:Ph,isBlob:Rh,isRegExp:qh,isFunction:dr,isStream:$h,isURLSearchParams:Ih,isTypedArray:zh,isFileList:Ah,forEach:Uo,merge:Hs,extend:Bh,trim:Nh,stripBOM:Lh,inherits:Fh,toFlatObject:jh,kindOf:Ci,kindOfTest:tn,endsWith:Hh,toArray:Dh,forEachEntry:Uh,matchAll:Kh,isHTMLForm:Vh,hasOwnProperty:Ha,hasOwnProp:Ha,reduceDescriptors:cu,freezeMethods:Jh,toObjectSet:Qh,toCamelCase:Wh,noop:Zh,toFiniteNumber:Yh};function Oe(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}$.inherits(Oe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const uu=Oe.prototype,fu={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{fu[e]={value:e}});Object.defineProperties(Oe,fu);Object.defineProperty(uu,"isAxiosError",{value:!0});Oe.from=(e,t,n,r,o,s)=>{const i=Object.create(uu);return $.toFlatObject(e,i,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),Oe.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};var Gh=typeof self=="object"?self.FormData:window.FormData;function Ds(e){return $.isPlainObject(e)||$.isArray(e)}function du(e){return $.endsWith(e,"[]")?e.slice(0,-2):e}function Da(e,t,n){return e?e.concat(t).map(function(o,s){return o=du(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function Xh(e){return $.isArray(e)&&!e.some(Ds)}const em=$.toFlatObject($,{},null,function(t){return/^is[A-Z]/.test(t)});function tm(e){return e&&$.isFunction(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator]}function Ko(e,t,n){if(!$.isObject(e))throw new TypeError("target must be an object");t=t||new(Gh||FormData),n=$.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,w){return!$.isUndefined(w[g])});const r=n.metaTokens,o=n.visitor||u,s=n.dots,i=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&tm(t);if(!$.isFunction(o))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if($.isDate(p))return p.toISOString();if(!l&&$.isBlob(p))throw new Oe("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(p)||$.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,g,w){let y=p;if(p&&!w&&typeof p=="object"){if($.endsWith(g,"{}"))g=r?g:g.slice(0,-2),p=JSON.stringify(p);else if($.isArray(p)&&Xh(p)||$.isFileList(p)||$.endsWith(g,"[]")&&(y=$.toArray(p)))return g=du(g),y.forEach(function(T,E){!($.isUndefined(T)||T===null)&&t.append(i===!0?Da([g],E,s):i===null?g:g+"[]",c(T))}),!1}return Ds(p)?!0:(t.append(Da(w,g,s),c(p)),!1)}const f=[],d=Object.assign(em,{defaultVisitor:u,convertValue:c,isVisitable:Ds});function h(p,g){if(!$.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(p),$.forEach(p,function(y,x){(!($.isUndefined(y)||y===null)&&o.call(t,y,$.isString(x)?x.trim():x,g,d))===!0&&h(y,g?g.concat(x):[x])}),f.pop()}}if(!$.isObject(e))throw new TypeError("data must be an object");return h(e),t}function za(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Si(e,t){this._pairs=[],e&&Ko(e,this,t)}const pu=Si.prototype;pu.append=function(t,n){this._pairs.push([t,n])};pu.toString=function(t){const n=t?function(r){return t.call(this,r,za)}:za;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function nm(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function hu(e,t,n){if(!t)return e;const r=n&&n.encode||nm,o=n&&n.serialize;let s;if(o?s=o(t,n):s=$.isURLSearchParams(t)?t.toString():new Si(t,n).toString(r),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Ua{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){$.forEach(this.handlers,function(r){r!==null&&t(r)})}}const mu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},rm=typeof URLSearchParams<"u"?URLSearchParams:Si,om=FormData,sm=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Zt={isBrowser:!0,classes:{URLSearchParams:rm,FormData:om,Blob},isStandardBrowserEnv:sm,protocols:["http","https","file","blob","url","data"]};function im(e,t){return Ko(e,new Zt.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return Zt.isNode&&$.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function am(e){return $.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function lm(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}function gu(e){function t(n,r,o,s){let i=n[s++];const a=Number.isFinite(+i),l=s>=n.length;return i=!i&&$.isArray(o)?o.length:i,l?($.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!a):((!o[i]||!$.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],s)&&$.isArray(o[i])&&(o[i]=lm(o[i])),!a)}if($.isFormData(e)&&$.isFunction(e.entries)){const n={};return $.forEachEntry(e,(r,o)=>{t(am(r),o,n,0)}),n}return null}function cm(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Oe("Request failed with status code "+n.status,[Oe.ERR_BAD_REQUEST,Oe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const um=Zt.isStandardBrowserEnv?function(){return{write:function(n,r,o,s,i,a){const l=[];l.push(n+"="+encodeURIComponent(r)),$.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),$.isString(s)&&l.push("path="+s),$.isString(i)&&l.push("domain="+i),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function fm(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function dm(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function vu(e,t){return e&&!fm(t)?dm(e,t):t}const pm=Zt.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(s){let i=s;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){const a=$.isString(i)?o(i):i;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function Vr(e,t,n){Oe.call(this,e==null?"canceled":e,Oe.ERR_CANCELED,t,n),this.name="CanceledError"}$.inherits(Vr,Oe,{__CANCEL__:!0});function hm(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const mm=$.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),gm=e=>{const t={};let n,r,o;return e&&e.split(`
6`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&mm[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ka=Symbol("internals"),yu=Symbol("defaults");function wr(e){return e&&String(e).trim().toLowerCase()}function mo(e){return e===!1||e==null?e:$.isArray(e)?e.map(mo):String(e)}function vm(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}function Va(e,t,n,r){if($.isFunction(r))return r.call(this,t,n);if(!!$.isString(t)){if($.isString(r))return t.indexOf(r)!==-1;if($.isRegExp(r))return r.test(t)}}function ym(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function bm(e,t){const n=$.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,i){return this[r].call(this,t,o,s,i)},configurable:!0})})}function vr(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}function _t(e,t){e&&this.set(e),this[yu]=t||null}Object.assign(_t.prototype,{set:function(e,t,n){const r=this;function o(s,i,a){const l=wr(i);if(!l)throw new Error("header name must be a non-empty string");const c=vr(r,l);c&&a!==!0&&(r[c]===!1||a===!1)||(r[c||i]=mo(s))}return $.isPlainObject(e)?$.forEach(e,(s,i)=>{o(s,i,t)}):o(t,e,n),this},get:function(e,t){if(e=wr(e),!e)return;const n=vr(this,e);if(n){const r=this[n];if(!t)return r;if(t===!0)return vm(r);if($.isFunction(t))return t.call(this,r,n);if($.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}},has:function(e,t){if(e=wr(e),e){const n=vr(this,e);return!!(n&&(!t||Va(this,this[n],n,t)))}return!1},delete:function(e,t){const n=this;let r=!1;function o(s){if(s=wr(s),s){const i=vr(n,s);i&&(!t||Va(n,n[i],i,t))&&(delete n[i],r=!0)}}return $.isArray(e)?e.forEach(o):o(e),r},clear:function(){return Object.keys(this).forEach(this.delete.bind(this))},normalize:function(e){const t=this,n={};return $.forEach(this,(r,o)=>{const s=vr(n,o);if(s){t[s]=mo(r),delete t[o];return}const i=e?ym(o):String(o).trim();i!==o&&delete t[o],t[i]=mo(r),n[i]=!0}),this},toJSON:function(e){const t=Object.create(null);return $.forEach(Object.assign({},this[yu]||null,this),(n,r)=>{n==null||n===!1||(t[r]=e&&$.isArray(n)?n.join(", "):n)}),t}});Object.assign(_t,{from:function(e){return $.isString(e)?new this(gm(e)):e instanceof this?e:new this(e)},accessor:function(e){const n=(this[Ka]=this[Ka]={accessors:{}}).accessors,r=this.prototype;function o(s){const i=wr(s);n[i]||(bm(r,s),n[i]=!0)}return $.isArray(e)?e.forEach(o):o(e),this}});_t.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]);$.freezeMethods(_t.prototype);$.freezeMethods(_t);function _m(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[s];i||(i=c),n[o]=l,r[o]=c;let f=s,d=0;for(;f!==o;)d+=n[f++],f=f%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),c-i<t)return;const h=u&&c-u;return h?Math.round(d*1e3/h):void 0}}function Wa(e,t){let n=0;const r=_m(50,250);return o=>{const s=o.loaded,i=o.lengthComputable?o.total:void 0,a=s-n,l=r(a),c=s<=i;n=s;const u={loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:l||void 0,estimated:l&&i&&c?(i-s)/l:void 0};u[t?"download":"upload"]=!0,e(u)}}function qa(e){return new Promise(function(n,r){let o=e.data;const s=_t.from(e.headers).normalize(),i=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}$.isFormData(o)&&Zt.isStandardBrowserEnv&&s.setContentType(!1);let c=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(h+":"+p))}const u=vu(e.baseURL,e.url);c.open(e.method.toUpperCase(),hu(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function f(){if(!c)return;const h=_t.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),g={data:!i||i==="text"||i==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:h,config:e,request:c};cm(function(y){n(y),l()},function(y){r(y),l()},g),c=null}if("onloadend"in c?c.onloadend=f:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(f)},c.onabort=function(){!c||(r(new Oe("Request aborted",Oe.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new Oe("Network Error",Oe.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let p=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const g=e.transitional||mu;e.timeoutErrorMessage&&(p=e.timeoutErrorMessage),r(new Oe(p,g.clarifyTimeoutError?Oe.ETIMEDOUT:Oe.ECONNABORTED,e,c)),c=null},Zt.isStandardBrowserEnv){const h=(e.withCredentials||pm(u))&&e.xsrfCookieName&&um.read(e.xsrfCookieName);h&&s.set(e.xsrfHeaderName,h)}o===void 0&&s.setContentType(null),"setRequestHeader"in c&&$.forEach(s.toJSON(),function(p,g){c.setRequestHeader(g,p)}),$.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),i&&i!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",Wa(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",Wa(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=h=>{!c||(r(!h||h.type?new Vr(null,e,c):h),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const d=hm(u);if(d&&Zt.protocols.indexOf(d)===-1){r(new Oe("Unsupported protocol "+d+":",Oe.ERR_BAD_REQUEST,e));return}c.send(o||null)})}const Ja={http:qa,xhr:qa},Qa={getAdapter:e=>{if($.isString(e)){const t=Ja[e];if(!e)throw Error($.hasOwnProp(e)?`Adapter '${e}' is not available in the build`:`Can not resolve adapter '${e}'`);return t}if(!$.isFunction(e))throw new TypeError("adapter is not a function");return e},adapters:Ja},wm={"Content-Type":"application/x-www-form-urlencoded"};function Em(){let e;return typeof XMLHttpRequest<"u"?e=Qa.getAdapter("xhr"):typeof process<"u"&&$.kindOf(process)==="process"&&(e=Qa.getAdapter("http")),e}function xm(e,t,n){if($.isString(e))try{return(t||JSON.parse)(e),$.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const pr={transitional:mu,adapter:Em(),transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=$.isObject(t);if(s&&$.isHTMLForm(t)&&(t=new FormData(t)),$.isFormData(t))return o&&o?JSON.stringify(gu(t)):t;if($.isArrayBuffer(t)||$.isBuffer(t)||$.isStream(t)||$.isFile(t)||$.isBlob(t))return t;if($.isArrayBufferView(t))return t.buffer;if($.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return im(t,this.formSerializer).toString();if((a=$.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ko(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),xm(t)):t}],transformResponse:[function(t){const n=this.transitional||pr.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&$.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(i)throw a.name==="SyntaxError"?Oe.from(a,Oe.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Zt.classes.FormData,Blob:Zt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};$.forEach(["delete","get","head"],function(t){pr.headers[t]={}});$.forEach(["post","put","patch"],function(t){pr.headers[t]=$.merge(wm)});function cs(e,t){const n=this||pr,r=t||n,o=_t.from(r.headers);let s=r.data;return $.forEach(e,function(a){s=a.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function bu(e){return!!(e&&e.__CANCEL__)}function us(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Vr}function Za(e){return us(e),e.headers=_t.from(e.headers),e.data=cs.call(e,e.transformRequest),(e.adapter||pr.adapter)(e).then(function(r){return us(e),r.data=cs.call(e,e.transformResponse,r),r.headers=_t.from(r.headers),r},function(r){return bu(r)||(us(e),r&&r.response&&(r.response.data=cs.call(e,e.transformResponse,r.response),r.response.headers=_t.from(r.response.headers))),Promise.reject(r)})}function Fr(e,t){t=t||{};const n={};function r(c,u){return $.isPlainObject(c)&&$.isPlainObject(u)?$.merge(c,u):$.isPlainObject(u)?$.merge({},u):$.isArray(u)?u.slice():u}function o(c){if($.isUndefined(t[c])){if(!$.isUndefined(e[c]))return r(void 0,e[c])}else return r(e[c],t[c])}function s(c){if(!$.isUndefined(t[c]))return r(void 0,t[c])}function i(c){if($.isUndefined(t[c])){if(!$.isUndefined(e[c]))return r(void 0,e[c])}else return r(void 0,t[c])}function a(c){if(c in t)return r(e[c],t[c]);if(c in e)return r(void 0,e[c])}const l={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a};return $.forEach(Object.keys(e).concat(Object.keys(t)),function(u){const f=l[u]||o,d=f(u);$.isUndefined(d)&&f!==a||(n[u]=d)}),n}const _u="1.1.3",Oi={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Oi[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ya={};Oi.transitional=function(t,n,r){function o(s,i){return"[Axios v"+_u+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,a)=>{if(t===!1)throw new Oe(o(i," has been removed"+(n?" in "+n:"")),Oe.ERR_DEPRECATED);return n&&!Ya[i]&&(Ya[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,i,a):!0}};function Cm(e,t,n){if(typeof e!="object")throw new Oe("options must be an object",Oe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const a=e[s],l=a===void 0||i(a,s,e);if(l!==!0)throw new Oe("option "+s+" must be "+l,Oe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Oe("Unknown option "+s,Oe.ERR_BAD_OPTION)}}const zs={assertOptions:Cm,validators:Oi},sn=zs.validators;class Bn{constructor(t){this.defaults=t,this.interceptors={request:new Ua,response:new Ua}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Fr(this.defaults,n);const{transitional:r,paramsSerializer:o}=n;r!==void 0&&zs.assertOptions(r,{silentJSONParsing:sn.transitional(sn.boolean),forcedJSONParsing:sn.transitional(sn.boolean),clarifyTimeoutError:sn.transitional(sn.boolean)},!1),o!==void 0&&zs.assertOptions(o,{encode:sn.function,serialize:sn.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();const s=n.headers&&$.merge(n.headers.common,n.headers[n.method]);s&&$.forEach(["delete","get","head","post","put","patch","common"],function(p){delete n.headers[p]}),n.headers=new _t(n.headers,s);const i=[];let a=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(a=a&&p.synchronous,i.unshift(p.fulfilled,p.rejected))});const l=[];this.interceptors.response.forEach(function(p){l.push(p.fulfilled,p.rejected)});let c,u=0,f;if(!a){const h=[Za.bind(this),void 0];for(h.unshift.apply(h,i),h.push.apply(h,l),f=h.length,c=Promise.resolve(n);u<f;)c=c.then(h[u++],h[u++]);return c}f=i.length;let d=n;for(u=0;u<f;){const h=i[u++],p=i[u++];try{d=h(d)}catch(g){p.call(this,g);break}}try{c=Za.call(this,d)}catch(h){return Promise.reject(h)}for(u=0,f=l.length;u<f;)c=c.then(l[u++],l[u++]);return c}getUri(t){t=Fr(this.defaults,t);const n=vu(t.baseURL,t.url);return hu(n,t.params,t.paramsSerializer)}}$.forEach(["delete","get","head","options"],function(t){Bn.prototype[t]=function(n,r){return this.request(Fr(r||{},{method:t,url:n,data:(r||{}).data}))}});$.forEach(["post","put","patch"],function(t){function n(r){return function(s,i,a){return this.request(Fr(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}Bn.prototype[t]=n(),Bn.prototype[t+"Form"]=n(!0)});class Ti{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(a=>{r.subscribe(a),s=a}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},t(function(s,i,a){r.reason||(r.reason=new Vr(s,i,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Ti(function(o){t=o}),cancel:t}}}function Sm(e){return function(n){return e.apply(null,n)}}function Om(e){return $.isObject(e)&&e.isAxiosError===!0}function wu(e){const t=new Bn(e),n=ou(Bn.prototype.request,t);return $.extend(n,Bn.prototype,t,{allOwnKeys:!0}),$.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return wu(Fr(e,o))},n}const Ge=wu(pr);Ge.Axios=Bn;Ge.CanceledError=Vr;Ge.CancelToken=Ti;Ge.isCancel=bu;Ge.VERSION=_u;Ge.toFormData=Ko;Ge.AxiosError=Oe;Ge.Cancel=Ge.CanceledError;Ge.all=function(t){return Promise.all(t)};Ge.spread=Sm;Ge.isAxiosError=Om;Ge.formToJSON=e=>gu($.isHTMLForm(e)?new FormData(e):e);const Vo="",Eu=ru("site",{state:()=>({site:{}}),getters:{},actions:{async site_info(){let e=Vo+"/index.php?c=api&method=site_info";sessionStorage.site_info===void 0?this.site=await Ge.get(e).then(function(t){return sessionStorage.site_info=JSON.stringify(t.data.data),t.data.data}).catch(function(t){console.log(t)}):this.site=JSON.parse(sessionStorage.site_info)}}});const Tm={class:"footer"},km=["innerHTML"],Pm={__name:"Footer",setup(e){const t=Eu(),n=ee("");return t.$subscribe((r,o)=>{(o.site.custom_footer==""||o.site.custom_footer===void 0)&&(n.value='\xA9 2022 Powered by <a target="_blank" href="https://www.onenav.top/" title="\u7B80\u7EA6\u5BFC\u822A/\u4E66\u7B7E\u7BA1\u7406\u5668" rel="nofollow">OneNav</a>')}),(r,o)=>(M(),Q("div",Tm,[oe("p",{innerHTML:n.value},null,8,km)]))}};/*!
7 * vue-router v4.1.6
8 * (c) 2022 Eduardo San Martin Morote

Callers 11

AFunction · 0.70
processFunction · 0.70
KoFunction · 0.70
requestMethod · 0.70
setupFunction · 0.70
LgFunction · 0.70
TFunction · 0.70
EFunction · 0.70
jFunction · 0.70
qiFunction · 0.70
RFunction · 0.70

Calls 8

SuFunction · 0.85
r_Function · 0.85
concatMethod · 0.80
TFunction · 0.70
vFunction · 0.70
cnFunction · 0.70
forEachMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected