From a6aa913010bf422d240410bc6b71c05f01496dae Mon Sep 17 00:00:00 2001 From: Zephyruso Date: Thu, 21 Nov 2024 06:31:07 +0000 Subject: [PATCH] deploy: c60fa315585ed9bc7f0e2fa68080466c8029431b --- assets/{index-Ck8r6SXl.js => index-CAIxRkQ6.js} | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename assets/{index-Ck8r6SXl.js => index-CAIxRkQ6.js} (99%) diff --git a/assets/index-Ck8r6SXl.js b/assets/index-CAIxRkQ6.js similarity index 99% rename from assets/index-Ck8r6SXl.js rename to assets/index-CAIxRkQ6.js index ffa06391..fed3a6f1 100644 --- a/assets/index-Ck8r6SXl.js +++ b/assets/index-CAIxRkQ6.js @@ -45,7 +45,7 @@ function print() { __p += __j.call(arguments, '') } `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const s=new this(t);return r.forEach(o=>s.set(o)),s}static accessor(t){const s=(this[Qp]=this[Qp]={accessors:{}}).accessors,o=this.prototype;function l(u){const c=Ii(u);s[c]||($A(o,u),s[c]=!0)}return G.isArray(t)?t.forEach(l):l(t),this}}_n.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);G.reduceDescriptors(_n.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[r]=s}}});G.freezeMethods(_n);function Xu(e,t){const r=this||Eo,s=t||r,o=_n.from(s.headers);let l=s.data;return G.forEach(e,function(c){l=c.call(r,l,o.normalize(),t?t.status:void 0)}),o.normalize(),l}function V_(e){return!!(e&&e.__CANCEL__)}function di(e,t,r){Ue.call(this,e??"canceled",Ue.ERR_CANCELED,t,r),this.name="CanceledError"}G.inherits(di,Ue,{__CANCEL__:!0});function j_(e,t,r){const s=r.config.validateStatus;!r.status||!s||s(r.status)?e(r):t(new Ue("Request failed with status code "+r.status,[Ue.ERR_BAD_REQUEST,Ue.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function UA(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function BA(e,t){e=e||10;const r=new Array(e),s=new Array(e);let o=0,l=0,u;return t=t!==void 0?t:1e3,function(d){const h=Date.now(),p=s[l];u||(u=h),r[o]=d,s[o]=h;let m=l,y=0;for(;m!==o;)y+=r[m++],m=m%e;if(o=(o+1)%e,o===l&&(l=(l+1)%e),h-u{r=p,o=null,l&&(clearTimeout(l),l=null),e.apply(null,h)};return[(...h)=>{const p=Date.now(),m=p-r;m>=s?u(h,p):(o=h,l||(l=setTimeout(()=>{l=null,u(o)},s-m)))},()=>o&&u(o)]}const Yl=(e,t,r=3)=>{let s=0;const o=BA(50,250);return WA(l=>{const u=l.loaded,c=l.lengthComputable?l.total:void 0,d=u-s,h=o(d),p=u<=c;s=u;const m={loaded:u,total:c,progress:c?u/c:void 0,bytes:d,rate:h||void 0,estimated:h&&c&&p?(c-u)/h:void 0,event:l,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(m)},r)},eg=(e,t)=>{const r=e!=null;return[s=>t[0]({lengthComputable:r,total:e,loaded:s}),t[1]]},tg=e=>(...t)=>G.asap(()=>e(...t)),HA=mn.hasStandardBrowserEnv?function(){const t=mn.navigator&&/(msie|trident)/i.test(mn.navigator.userAgent),r=document.createElement("a");let s;function o(l){let u=l;return t&&(r.setAttribute("href",u),u=r.href),r.setAttribute("href",u),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return s=o(window.location.href),function(u){const c=G.isString(u)?o(u):u;return c.protocol===s.protocol&&c.host===s.host}}():function(){return function(){return!0}}(),VA=mn.hasStandardBrowserEnv?{write(e,t,r,s,o,l){const u=[e+"="+encodeURIComponent(t)];G.isNumber(r)&&u.push("expires="+new Date(r).toGMTString()),G.isString(s)&&u.push("path="+s),G.isString(o)&&u.push("domain="+o),l===!0&&u.push("secure"),document.cookie=u.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function jA(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function GA(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function G_(e,t){return e&&!jA(t)?GA(e,t):t}const ng=e=>e instanceof _n?{...e}:e;function Ss(e,t){t=t||{};const r={};function s(h,p,m){return G.isPlainObject(h)&&G.isPlainObject(p)?G.merge.call({caseless:m},h,p):G.isPlainObject(p)?G.merge({},p):G.isArray(p)?p.slice():p}function o(h,p,m){if(G.isUndefined(p)){if(!G.isUndefined(h))return s(void 0,h,m)}else return s(h,p,m)}function l(h,p){if(!G.isUndefined(p))return s(void 0,p)}function u(h,p){if(G.isUndefined(p)){if(!G.isUndefined(h))return s(void 0,h)}else return s(void 0,p)}function c(h,p,m){if(m in t)return s(h,p);if(m in e)return s(void 0,h)}const d={url:l,method:l,data:l,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:c,headers:(h,p)=>o(ng(h),ng(p),!0)};return G.forEach(Object.keys(Object.assign({},e,t)),function(p){const m=d[p]||o,y=m(e[p],t[p],p);G.isUndefined(y)&&m!==c||(r[p]=y)}),r}const K_=e=>{const t=Ss({},e);let{data:r,withXSRFToken:s,xsrfHeaderName:o,xsrfCookieName:l,headers:u,auth:c}=t;t.headers=u=_n.from(u),t.url=B_(G_(t.baseURL,t.url),e.params,e.paramsSerializer),c&&u.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let d;if(G.isFormData(r)){if(mn.hasStandardBrowserEnv||mn.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if((d=u.getContentType())!==!1){const[h,...p]=d?d.split(";").map(m=>m.trim()).filter(Boolean):[];u.setContentType([h||"multipart/form-data",...p].join("; "))}}if(mn.hasStandardBrowserEnv&&(s&&G.isFunction(s)&&(s=s(t)),s||s!==!1&&HA(t.url))){const h=o&&l&&VA.read(l);h&&u.set(o,h)}return t},KA=typeof XMLHttpRequest<"u",qA=KA&&function(e){return new Promise(function(r,s){const o=K_(e);let l=o.data;const u=_n.from(o.headers).normalize();let{responseType:c,onUploadProgress:d,onDownloadProgress:h}=o,p,m,y,w,I;function P(){w&&w(),I&&I(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let L=new XMLHttpRequest;L.open(o.method.toUpperCase(),o.url,!0),L.timeout=o.timeout;function E(){if(!L)return;const T=_n.from("getAllResponseHeaders"in L&&L.getAllResponseHeaders()),F={data:!c||c==="text"||c==="json"?L.responseText:L.response,status:L.status,statusText:L.statusText,headers:T,config:e,request:L};j_(function(U){r(U),P()},function(U){s(U),P()},F),L=null}"onloadend"in L?L.onloadend=E:L.onreadystatechange=function(){!L||L.readyState!==4||L.status===0&&!(L.responseURL&&L.responseURL.indexOf("file:")===0)||setTimeout(E)},L.onabort=function(){L&&(s(new Ue("Request aborted",Ue.ECONNABORTED,e,L)),L=null)},L.onerror=function(){s(new Ue("Network Error",Ue.ERR_NETWORK,e,L)),L=null},L.ontimeout=function(){let C=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const F=o.transitional||W_;o.timeoutErrorMessage&&(C=o.timeoutErrorMessage),s(new Ue(C,F.clarifyTimeoutError?Ue.ETIMEDOUT:Ue.ECONNABORTED,e,L)),L=null},l===void 0&&u.setContentType(null),"setRequestHeader"in L&&G.forEach(u.toJSON(),function(C,F){L.setRequestHeader(F,C)}),G.isUndefined(o.withCredentials)||(L.withCredentials=!!o.withCredentials),c&&c!=="json"&&(L.responseType=o.responseType),h&&([y,I]=Yl(h,!0),L.addEventListener("progress",y)),d&&L.upload&&([m,w]=Yl(d),L.upload.addEventListener("progress",m),L.upload.addEventListener("loadend",w)),(o.cancelToken||o.signal)&&(p=T=>{L&&(s(!T||T.type?new di(null,e,L):T),L.abort(),L=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const R=UA(o.url);if(R&&mn.protocols.indexOf(R)===-1){s(new Ue("Unsupported protocol "+R+":",Ue.ERR_BAD_REQUEST,e));return}L.send(l||null)})},YA=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let s=new AbortController,o;const l=function(h){if(!o){o=!0,c();const p=h instanceof Error?h:this.reason;s.abort(p instanceof Ue?p:new di(p instanceof Error?p.message:p))}};let u=t&&setTimeout(()=>{u=null,l(new Ue(`timeout ${t} of ms exceeded`,Ue.ETIMEDOUT))},t);const c=()=>{e&&(u&&clearTimeout(u),u=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(l):h.removeEventListener("abort",l)}),e=null)};e.forEach(h=>h.addEventListener("abort",l));const{signal:d}=s;return d.unsubscribe=()=>G.asap(c),d}},zA=function*(e,t){let r=e.byteLength;if(r{const o=JA(e,t);let l=0,u,c=d=>{u||(u=!0,s&&s(d))};return new ReadableStream({async pull(d){try{const{done:h,value:p}=await o.next();if(h){c(),d.close();return}let m=p.byteLength;if(r){let y=l+=m;r(y)}d.enqueue(new Uint8Array(p))}catch(h){throw c(h),h}},cancel(d){return c(d),o.return()}},{highWaterMark:2})},va=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",q_=va&&typeof ReadableStream=="function",ZA=va&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Y_=(e,...t)=>{try{return!!e(...t)}catch{return!1}},QA=q_&&Y_(()=>{let e=!1;const t=new Request(mn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),sg=64*1024,yc=q_&&Y_(()=>G.isReadableStream(new Response("").body)),zl={stream:yc&&(e=>e.body)};va&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!zl[t]&&(zl[t]=G.isFunction(e[t])?r=>r[t]():(r,s)=>{throw new Ue(`Response type '${t}' is not supported`,Ue.ERR_NOT_SUPPORT,s)})})})(new Response);const eO=async e=>{if(e==null)return 0;if(G.isBlob(e))return e.size;if(G.isSpecCompliantForm(e))return(await new Request(mn.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(G.isArrayBufferView(e)||G.isArrayBuffer(e))return e.byteLength;if(G.isURLSearchParams(e)&&(e=e+""),G.isString(e))return(await ZA(e)).byteLength},tO=async(e,t)=>{const r=G.toFiniteNumber(e.getContentLength());return r??eO(t)},nO=va&&(async e=>{let{url:t,method:r,data:s,signal:o,cancelToken:l,timeout:u,onDownloadProgress:c,onUploadProgress:d,responseType:h,headers:p,withCredentials:m="same-origin",fetchOptions:y}=K_(e);h=h?(h+"").toLowerCase():"text";let w=YA([o,l&&l.toAbortSignal()],u),I;const P=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let L;try{if(d&&QA&&r!=="get"&&r!=="head"&&(L=await tO(p,s))!==0){let F=new Request(t,{method:"POST",body:s,duplex:"half"}),W;if(G.isFormData(s)&&(W=F.headers.get("content-type"))&&p.setContentType(W),F.body){const[U,ue]=eg(L,Yl(tg(d)));s=rg(F.body,sg,U,ue)}}G.isString(m)||(m=m?"include":"omit");const E="credentials"in Request.prototype;I=new Request(t,{...y,signal:w,method:r.toUpperCase(),headers:p.normalize().toJSON(),body:s,duplex:"half",credentials:E?m:void 0});let R=await fetch(I);const T=yc&&(h==="stream"||h==="response");if(yc&&(c||T&&P)){const F={};["status","statusText","headers"].forEach(de=>{F[de]=R[de]});const W=G.toFiniteNumber(R.headers.get("content-length")),[U,ue]=c&&eg(W,Yl(tg(c),!0))||[];R=new Response(rg(R.body,sg,U,()=>{ue&&ue(),P&&P()}),F)}h=h||"text";let C=await zl[G.findKey(zl,h)||"text"](R,e);return!T&&P&&P(),await new Promise((F,W)=>{j_(F,W,{data:C,headers:_n.from(R.headers),status:R.status,statusText:R.statusText,config:e,request:I})})}catch(E){throw P&&P(),E&&E.name==="TypeError"&&/fetch/i.test(E.message)?Object.assign(new Ue("Network Error",Ue.ERR_NETWORK,e,I),{cause:E.cause||E}):Ue.from(E,E&&E.code,e,I)}}),wc={http:_A,xhr:qA,fetch:nO};G.forEach(wc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ig=e=>`- ${e}`,rO=e=>G.isFunction(e)||e===null||e===!1,z_={getAdapter:e=>{e=G.isArray(e)?e:[e];const{length:t}=e;let r,s;const o={};for(let l=0;l`adapter ${c} `+(d===!1?"is not supported by the environment":"is not available in the build"));let u=t?l.length>1?`since : `+l.map(ig).join(` `):" "+ig(l[0]):"as no adapter specified";throw new Ue("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return s},adapters:wc};function Zu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new di(null,e)}function og(e){return Zu(e),e.headers=_n.from(e.headers),e.data=Xu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),z_.getAdapter(e.adapter||Eo.adapter)(e).then(function(s){return Zu(e),s.data=Xu.call(e,e.transformResponse,s),s.headers=_n.from(s.headers),s},function(s){return V_(s)||(Zu(e),s&&s.response&&(s.response.data=Xu.call(e,e.transformResponse,s.response),s.response.headers=_n.from(s.response.headers))),Promise.reject(s)})}const J_="1.7.7",vf={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{vf[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const lg={};vf.transitional=function(t,r,s){function o(l,u){return"[Axios v"+J_+"] Transitional option '"+l+"'"+u+(s?". "+s:"")}return(l,u,c)=>{if(t===!1)throw new Ue(o(u," has been removed"+(r?" in "+r:"")),Ue.ERR_DEPRECATED);return r&&!lg[u]&&(lg[u]=!0,console.warn(o(u," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(l,u,c):!0}};function sO(e,t,r){if(typeof e!="object")throw new Ue("options must be an object",Ue.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let o=s.length;for(;o-- >0;){const l=s[o],u=t[l];if(u){const c=e[l],d=c===void 0||u(c,l,e);if(d!==!0)throw new Ue("option "+l+" must be "+d,Ue.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Ue("Unknown option "+l,Ue.ERR_BAD_OPTION)}}const xc={assertOptions:sO,validators:vf},Wr=xc.validators;class ys{constructor(t){this.defaults=t,this.interceptors={request:new Zp,response:new Zp}}async request(t,r){try{return await this._request(t,r)}catch(s){if(s instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const l=o.stack?o.stack.replace(/^.+\n/,""):"";try{s.stack?l&&!String(s.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(s.stack+=` -`+l):s.stack=l}catch{}}throw s}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ss(this.defaults,r);const{transitional:s,paramsSerializer:o,headers:l}=r;s!==void 0&&xc.assertOptions(s,{silentJSONParsing:Wr.transitional(Wr.boolean),forcedJSONParsing:Wr.transitional(Wr.boolean),clarifyTimeoutError:Wr.transitional(Wr.boolean)},!1),o!=null&&(G.isFunction(o)?r.paramsSerializer={serialize:o}:xc.assertOptions(o,{encode:Wr.function,serialize:Wr.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let u=l&&G.merge(l.common,l[r.method]);l&&G.forEach(["delete","get","head","post","put","patch","common"],I=>{delete l[I]}),r.headers=_n.concat(u,l);const c=[];let d=!0;this.interceptors.request.forEach(function(P){typeof P.runWhen=="function"&&P.runWhen(r)===!1||(d=d&&P.synchronous,c.unshift(P.fulfilled,P.rejected))});const h=[];this.interceptors.response.forEach(function(P){h.push(P.fulfilled,P.rejected)});let p,m=0,y;if(!d){const I=[og.bind(this),void 0];for(I.unshift.apply(I,c),I.push.apply(I,h),y=I.length,p=Promise.resolve(r);m{if(!s._listeners)return;let l=s._listeners.length;for(;l-- >0;)s._listeners[l](o);s._listeners=null}),this.promise.then=o=>{let l;const u=new Promise(c=>{s.subscribe(c),l=c}).then(o);return u.cancel=function(){s.unsubscribe(l)},u},t(function(l,u,c){s.reason||(s.reason=new di(l,u,c),r(s.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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=s=>{t.abort(s)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new bf(function(o){t=o}),cancel:t}}}function iO(e){return function(r){return e.apply(null,r)}}function oO(e){return G.isObject(e)&&e.isAxiosError===!0}const Ec={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ec).forEach(([e,t])=>{Ec[t]=e});function X_(e){const t=new ys(e),r=O_(ys.prototype.request,t);return G.extend(r,ys.prototype,t,{allOwnKeys:!0}),G.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return X_(Ss(e,o))},r}const at=X_(Eo);at.Axios=ys;at.CanceledError=di;at.CancelToken=bf;at.isCancel=V_;at.VERSION=J_;at.toFormData=_a;at.AxiosError=Ue;at.Cancel=at.CanceledError;at.all=function(t){return Promise.all(t)};at.spread=iO;at.isAxiosError=oO;at.mergeConfig=Ss;at.AxiosHeaders=_n;at.formToJSON=e=>H_(G.isHTMLForm(e)?new FormData(e):e);at.getAdapter=z_.getAdapter;at.HttpStatusCode=Ec;at.default=at;at.interceptors.request.use(e=>{var t,r,s,o;return e.baseURL=((t=gs.value)==null?void 0:t.protocol)+"://"+((r=gs.value)==null?void 0:r.host)+":"+((s=gs.value)==null?void 0:s.port),e.headers.Authorization="Bearer "+((o=gs.value)==null?void 0:o.password),e});const Sc=Je(),lO=()=>at.get("/version");qt(gs,async e=>{if(e){const{data:t}=await lO();Sc.value=t.version}},{immediate:!0});const aO=()=>at.get("/proxies"),uO=(e,t)=>at.put(`/proxies/${encodeURIComponent(e)}`,{name:t}),cO=(e,t,r)=>at.get(`/proxies/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:r}}),fO=(e,t,r)=>at.get(`/group/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:r}}),dO=()=>at.get("/rules"),yf=e=>at.delete(`/connections/${e}`),hO=()=>at.get("/configs"),pO=e=>at.patch("/configs",e),ag=()=>at.post("/cache/fakeip/flush"),Z_=(e,t)=>{const r=gs.value,s=new URL(`${(r==null?void 0:r.protocol)==="https"?"wss":"ws"}://${r==null?void 0:r.host}:${r==null?void 0:r.port}/${e}`);return s.searchParams.append("token",(r==null?void 0:r.password)||""),t&&Object.entries(t).forEach(([o,l])=>{s.searchParams.append(o,l)}),S2(s,{autoClose:!1,autoReconnect:!0})},gO=()=>Z_("connections"),mO=(e={})=>Z_("logs",e);var Zs=(e=>(e.EN_US="en-US",e.ZH_CN="zh-CN",e))(Zs||{});const Rl=Rn("config/theme","default"),Ki=Rn("config/language","en-US"),qi=Rn("config/speedtest-url","http://www.gstatic.com/generate_204"),Q_=Rn("config/speedtest-timeout",5e3),Ll=Rn("config/compact-connection-card",!1);Rn("config/host-label-map",{});const ug=Rn("config/collapse-group-map",{}),Cc=Je(),e0=async()=>{Cc.value=(await hO()).data},_O=async e=>{await pO(e),e0()},vO="data:image/svg+xml,%3csvg%20width='1027'%20height='1109'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xml:space='preserve'%20overflow='hidden'%3e%3cdefs%3e%3cfilter%20id='fx0'%20x='-10%25'%20y='-10%25'%20width='120%25'%20height='120%25'%20filterUnits='userSpaceOnUse'%20primitiveUnits='userSpaceOnUse'%3e%3cfeComponentTransfer%20color-interpolation-filters='sRGB'%3e%3cfeFuncR%20type='discrete'%20tableValues='0%200'%20/%3e%3cfeFuncG%20type='discrete'%20tableValues='0%200'%20/%3e%3cfeFuncB%20type='discrete'%20tableValues='0%200'%20/%3e%3cfeFuncA%20type='linear'%20slope='0.4'%20intercept='0'%20/%3e%3c/feComponentTransfer%3e%3cfeGaussianBlur%20stdDeviation='4.58333%204.58333'%20/%3e%3c/filter%3e%3cclipPath%20id='clip1'%3e%3crect%20x='692'%20y='855'%20width='1027'%20height='1109'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip2'%3e%3crect%20x='-2'%20y='-2'%20width='541'%20height='786'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip3'%3e%3crect%20x='0'%20y='0'%20width='535'%20height='782'%20/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23clip1)'%20transform='translate(-692%20-855)'%3e%3cpath%20d='M692%201191%20692%201575.69C692%201640.41%20731.499%201651.19%20731.499%201651.19L1148.03%201931.62C1212.66%201974.77%201194.71%201881.29%201194.71%201881.29L1194.71%201528.96%20692%201191Z'%20fill='%2337474F'%20fill-rule='evenodd'%20/%3e%3cg%20clip-path='url(%23clip2)'%20filter='url(%23fx0)'%20transform='translate(1184%201182)'%3e%3cg%20clip-path='url(%23clip3)'%3e%3cpath%20d='M520.482%2015.4819%20520.482%20400.176C520.482%20464.89%20480.983%20475.676%20480.983%20475.676%20480.983%20475.676%20129.086%20712.963%2064.4523%20756.106-0.181814%20799.25%2017.7721%20705.773%2017.7721%20705.773L17.7721%20353.437%20520.482%2015.4819Z'%20fill='%23455A64'%20fill-rule='evenodd'%20/%3e%3c/g%3e%3c/g%3e%3cpath%20d='M1698%201191%201698%201575.69C1698%201640.41%201658.5%201651.19%201658.5%201651.19%201658.5%201651.19%201306.6%201888.48%201241.97%201931.62%201177.34%201974.77%201195.29%201881.29%201195.29%201881.29L1195.29%201528.96%201698%201191Z'%20fill='%23455A64'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1241.71%20868.473C1212.96%20850.509%201169.85%20850.509%201144.7%20868.473L713.557%201163.07C684.814%201181.04%20684.814%201213.37%20713.557%201231.33L1144.7%201529.53C1173.44%201547.49%201216.56%201547.49%201241.71%201529.53L1676.44%201227.74C1705.19%201209.78%201705.19%201177.44%201676.44%201159.48L1241.71%20868.473Z'%20fill='%23546E7A'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1195%201949C1173.4%201949%201159%201935.19%201159%201917.92L1159%201531.08C1159%201513.82%201173.4%201500%201195%201500%201216.6%201500%201231%201513.82%201231%201531.08L1231%201914.46C1231%201935.19%201216.6%201949%201195%201949Z'%20fill='%23546E7A'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1553.92%201435.92C1553.92%201471.89%201557.5%201486.27%201518.03%201511.45L1428.32%201568.99C1388.85%201594.17%201374.5%201572.59%201374.5%201540.22L1374.5%201446.71C1374.5%201439.52%201374.5%201435.92%201363.73%201428.73%201270.43%201363.99%20911.591%201115.84%20847%201069.09L1012.07%20954C1058.72%20982.772%201399.61%201209.35%201539.56%201306.45%201546.74%201310.05%201550.33%201317.24%201550.33%201320.84L1550.33%201435.92Z'%20fill='%2399AAB5'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1543.41%201310.21C1399.82%201213.17%201058.79%20986.752%201015.72%20958L951.103%20997.534%20847%201069.41C911.615%201116.14%201270.59%201360.53%201363.92%201425.22%201371.1%201428.81%201371.1%201432.41%201371.1%201436L1547%201313.8C1547%201313.8%201547%201310.21%201543.41%201310.21Z'%20fill='%23CCD6DD'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1554.9%201435.48%201554.9%201324.19C1554.9%201317.01%201551.3%201313.42%201544.11%201309.83%201400.28%201212.89%201058.67%20986.721%201015.51%20958L940%201008.26C1062.26%201090.83%201389.49%201306.24%201475.79%201367.27%201486.58%201374.45%201486.58%201381.63%201486.58%201385.22L1486.58%201536%201522.54%201510.87C1558.5%201485.74%201554.9%201467.79%201554.9%201435.48Z'%20fill='%23CCD6DD'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1543.23%201309.95C1399.6%201212.98%201058.49%20986.731%201015.4%20958L940%201008.28C1062.08%201090.88%201388.83%201306.36%201475.01%201367.41%201475.01%201367.41%201478.6%201371%201478.6%201371L1554%201317.13C1546.82%201313.54%201546.82%201309.95%201543.23%201309.95Z'%20fill='%23E1E8ED'%20fill-rule='evenodd'%20/%3e%3c/g%3e%3c/svg%3e";/*! +`+l):s.stack=l}catch{}}throw s}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ss(this.defaults,r);const{transitional:s,paramsSerializer:o,headers:l}=r;s!==void 0&&xc.assertOptions(s,{silentJSONParsing:Wr.transitional(Wr.boolean),forcedJSONParsing:Wr.transitional(Wr.boolean),clarifyTimeoutError:Wr.transitional(Wr.boolean)},!1),o!=null&&(G.isFunction(o)?r.paramsSerializer={serialize:o}:xc.assertOptions(o,{encode:Wr.function,serialize:Wr.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let u=l&&G.merge(l.common,l[r.method]);l&&G.forEach(["delete","get","head","post","put","patch","common"],I=>{delete l[I]}),r.headers=_n.concat(u,l);const c=[];let d=!0;this.interceptors.request.forEach(function(P){typeof P.runWhen=="function"&&P.runWhen(r)===!1||(d=d&&P.synchronous,c.unshift(P.fulfilled,P.rejected))});const h=[];this.interceptors.response.forEach(function(P){h.push(P.fulfilled,P.rejected)});let p,m=0,y;if(!d){const I=[og.bind(this),void 0];for(I.unshift.apply(I,c),I.push.apply(I,h),y=I.length,p=Promise.resolve(r);m{if(!s._listeners)return;let l=s._listeners.length;for(;l-- >0;)s._listeners[l](o);s._listeners=null}),this.promise.then=o=>{let l;const u=new Promise(c=>{s.subscribe(c),l=c}).then(o);return u.cancel=function(){s.unsubscribe(l)},u},t(function(l,u,c){s.reason||(s.reason=new di(l,u,c),r(s.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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=s=>{t.abort(s)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new bf(function(o){t=o}),cancel:t}}}function iO(e){return function(r){return e.apply(null,r)}}function oO(e){return G.isObject(e)&&e.isAxiosError===!0}const Ec={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ec).forEach(([e,t])=>{Ec[t]=e});function X_(e){const t=new ys(e),r=O_(ys.prototype.request,t);return G.extend(r,ys.prototype,t,{allOwnKeys:!0}),G.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return X_(Ss(e,o))},r}const at=X_(Eo);at.Axios=ys;at.CanceledError=di;at.CancelToken=bf;at.isCancel=V_;at.VERSION=J_;at.toFormData=_a;at.AxiosError=Ue;at.Cancel=at.CanceledError;at.all=function(t){return Promise.all(t)};at.spread=iO;at.isAxiosError=oO;at.mergeConfig=Ss;at.AxiosHeaders=_n;at.formToJSON=e=>H_(G.isHTMLForm(e)?new FormData(e):e);at.getAdapter=z_.getAdapter;at.HttpStatusCode=Ec;at.default=at;at.interceptors.request.use(e=>{var t,r,s,o;return e.baseURL=((t=gs.value)==null?void 0:t.protocol)+"://"+((r=gs.value)==null?void 0:r.host)+":"+((s=gs.value)==null?void 0:s.port),e.headers.Authorization="Bearer "+((o=gs.value)==null?void 0:o.password),e});const Sc=Je(),lO=()=>at.get("/version");qt(gs,async e=>{if(e){const{data:t}=await lO();Sc.value=t.version}},{immediate:!0});const aO=()=>at.get("/proxies"),uO=(e,t)=>at.put(`/proxies/${encodeURIComponent(e)}`,{name:t}),cO=(e,t,r)=>at.get(`/proxies/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:r}}),fO=(e,t,r)=>at.get(`/group/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:r}}),dO=()=>at.get("/rules"),yf=e=>at.delete(`/connections/${e}`),hO=()=>at.get("/configs"),pO=e=>at.patch("/configs",e),ag=()=>at.post("/cache/fakeip/flush"),Z_=(e,t)=>{const r=gs.value,s=new URL(`${(r==null?void 0:r.protocol)==="https"?"wss":"ws"}://${r==null?void 0:r.host}:${r==null?void 0:r.port}/${e}`);return s.searchParams.append("token",(r==null?void 0:r.password)||""),t&&Object.entries(t).forEach(([o,l])=>{s.searchParams.append(o,l)}),S2(s,{autoClose:!1,autoReconnect:!0})},gO=()=>Z_("connections"),mO=(e={})=>Z_("logs",e);var Zs=(e=>(e.EN_US="en-US",e.ZH_CN="zh-CN",e))(Zs||{});const Rl=Rn("config/theme","default"),Ki=Rn("config/language","en-US"),qi=Rn("config/speedtest-url","http://www.gstatic.com/generate_204"),Q_=Rn("config/speedtest-timeout",5e3),Ll=Rn("config/compact-connection-card",!0);Rn("config/host-label-map",{});const ug=Rn("config/collapse-group-map",{}),Cc=Je(),e0=async()=>{Cc.value=(await hO()).data},_O=async e=>{await pO(e),e0()},vO="data:image/svg+xml,%3csvg%20width='1027'%20height='1109'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xml:space='preserve'%20overflow='hidden'%3e%3cdefs%3e%3cfilter%20id='fx0'%20x='-10%25'%20y='-10%25'%20width='120%25'%20height='120%25'%20filterUnits='userSpaceOnUse'%20primitiveUnits='userSpaceOnUse'%3e%3cfeComponentTransfer%20color-interpolation-filters='sRGB'%3e%3cfeFuncR%20type='discrete'%20tableValues='0%200'%20/%3e%3cfeFuncG%20type='discrete'%20tableValues='0%200'%20/%3e%3cfeFuncB%20type='discrete'%20tableValues='0%200'%20/%3e%3cfeFuncA%20type='linear'%20slope='0.4'%20intercept='0'%20/%3e%3c/feComponentTransfer%3e%3cfeGaussianBlur%20stdDeviation='4.58333%204.58333'%20/%3e%3c/filter%3e%3cclipPath%20id='clip1'%3e%3crect%20x='692'%20y='855'%20width='1027'%20height='1109'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip2'%3e%3crect%20x='-2'%20y='-2'%20width='541'%20height='786'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip3'%3e%3crect%20x='0'%20y='0'%20width='535'%20height='782'%20/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23clip1)'%20transform='translate(-692%20-855)'%3e%3cpath%20d='M692%201191%20692%201575.69C692%201640.41%20731.499%201651.19%20731.499%201651.19L1148.03%201931.62C1212.66%201974.77%201194.71%201881.29%201194.71%201881.29L1194.71%201528.96%20692%201191Z'%20fill='%2337474F'%20fill-rule='evenodd'%20/%3e%3cg%20clip-path='url(%23clip2)'%20filter='url(%23fx0)'%20transform='translate(1184%201182)'%3e%3cg%20clip-path='url(%23clip3)'%3e%3cpath%20d='M520.482%2015.4819%20520.482%20400.176C520.482%20464.89%20480.983%20475.676%20480.983%20475.676%20480.983%20475.676%20129.086%20712.963%2064.4523%20756.106-0.181814%20799.25%2017.7721%20705.773%2017.7721%20705.773L17.7721%20353.437%20520.482%2015.4819Z'%20fill='%23455A64'%20fill-rule='evenodd'%20/%3e%3c/g%3e%3c/g%3e%3cpath%20d='M1698%201191%201698%201575.69C1698%201640.41%201658.5%201651.19%201658.5%201651.19%201658.5%201651.19%201306.6%201888.48%201241.97%201931.62%201177.34%201974.77%201195.29%201881.29%201195.29%201881.29L1195.29%201528.96%201698%201191Z'%20fill='%23455A64'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1241.71%20868.473C1212.96%20850.509%201169.85%20850.509%201144.7%20868.473L713.557%201163.07C684.814%201181.04%20684.814%201213.37%20713.557%201231.33L1144.7%201529.53C1173.44%201547.49%201216.56%201547.49%201241.71%201529.53L1676.44%201227.74C1705.19%201209.78%201705.19%201177.44%201676.44%201159.48L1241.71%20868.473Z'%20fill='%23546E7A'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1195%201949C1173.4%201949%201159%201935.19%201159%201917.92L1159%201531.08C1159%201513.82%201173.4%201500%201195%201500%201216.6%201500%201231%201513.82%201231%201531.08L1231%201914.46C1231%201935.19%201216.6%201949%201195%201949Z'%20fill='%23546E7A'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1553.92%201435.92C1553.92%201471.89%201557.5%201486.27%201518.03%201511.45L1428.32%201568.99C1388.85%201594.17%201374.5%201572.59%201374.5%201540.22L1374.5%201446.71C1374.5%201439.52%201374.5%201435.92%201363.73%201428.73%201270.43%201363.99%20911.591%201115.84%20847%201069.09L1012.07%20954C1058.72%20982.772%201399.61%201209.35%201539.56%201306.45%201546.74%201310.05%201550.33%201317.24%201550.33%201320.84L1550.33%201435.92Z'%20fill='%2399AAB5'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1543.41%201310.21C1399.82%201213.17%201058.79%20986.752%201015.72%20958L951.103%20997.534%20847%201069.41C911.615%201116.14%201270.59%201360.53%201363.92%201425.22%201371.1%201428.81%201371.1%201432.41%201371.1%201436L1547%201313.8C1547%201313.8%201547%201310.21%201543.41%201310.21Z'%20fill='%23CCD6DD'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1554.9%201435.48%201554.9%201324.19C1554.9%201317.01%201551.3%201313.42%201544.11%201309.83%201400.28%201212.89%201058.67%20986.721%201015.51%20958L940%201008.26C1062.26%201090.83%201389.49%201306.24%201475.79%201367.27%201486.58%201374.45%201486.58%201381.63%201486.58%201385.22L1486.58%201536%201522.54%201510.87C1558.5%201485.74%201554.9%201467.79%201554.9%201435.48Z'%20fill='%23CCD6DD'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1543.23%201309.95C1399.6%201212.98%201058.49%20986.731%201015.4%20958L940%201008.28C1062.08%201090.88%201388.83%201306.36%201475.01%201367.41%201475.01%201367.41%201478.6%201371%201478.6%201371L1554%201317.13C1546.82%201313.54%201546.82%201309.95%201543.23%201309.95Z'%20fill='%23E1E8ED'%20fill-rule='evenodd'%20/%3e%3c/g%3e%3c/svg%3e";/*! * shared v10.0.4 * (c) 2024 kazuya kawaguchi * Released under the MIT License. diff --git a/index.html b/index.html index c73f475e..1b589eaf 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ sing-box dashboard - +