File: /www/server/panel/BTPanel/static/js/index-legacy378.js
!function(){function t(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var r,n,o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",i=o.toStringTag||"@@toStringTag";function a(t,o,c,i){var a=o&&o.prototype instanceof f?o:f,s=Object.create(a.prototype);return e(s,"_invoke",function(t,e,o){var c,i,a,f=0,s=o||[],l=!1,p={p:0,n:0,v:r,a:v,f:v.bind(r,4),d:function(t,e){return c=t,i=0,a=r,p.n=e,u}};function v(t,e){for(i=t,a=e,n=0;!l&&f&&!o&&n<s.length;n++){var o,c=s[n],v=p.p,d=c[2];t>3?(o=d===e)&&(a=c[(i=c[4])?5:(i=3,3)],c[4]=c[5]=r):c[0]<=v&&((o=t<2&&v<c[1])?(i=0,p.v=e,p.n=c[1]):v<d&&(o=t<3||c[0]>e||e>d)&&(c[4]=t,c[5]=e,p.n=d,i=0))}if(o||t>1)return u;throw l=!0,e}return function(o,s,d){if(f>1)throw TypeError("Generator is already running");for(l&&1===s&&v(s,d),i=s,a=d;(n=i<2?r:a)||!l;){c||(i?i<3?(i>1&&(p.n=-1),v(i,a)):p.n=a:p.v=a);try{if(f=2,c){if(i||(o="next"),n=c[o]){if(!(n=n.call(c,a)))throw TypeError("iterator result is not an object");if(!n.done)return n;a=n.value,i<2&&(i=0)}else 1===i&&(n=c.return)&&n.call(c),i<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),i=1);c=r}else if((n=(l=p.n<0)?a:t.call(e,p))!==u)break}catch(n){c=r,i=1,a=n}finally{f=1}}return{value:n,done:l}}}(t,c,i),!0),s}var u={};function f(){}function s(){}function l(){}n=Object.getPrototypeOf;var p=[][c]?n(n([][c]())):(e(n={},c,function(){return this}),n),v=l.prototype=f.prototype=Object.create(p);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,e(t,i,"GeneratorFunction")),t.prototype=Object.create(v),t}return s.prototype=l,e(v,"constructor",l),e(l,"constructor",s),s.displayName="GeneratorFunction",e(l,i,"GeneratorFunction"),e(v),e(v,i,"Generator"),e(v,c,function(){return this}),e(v,"toString",function(){return"[object Generator]"}),(t=function(){return{w:a,m:d}})()}function e(t,r,n,o){var c=Object.defineProperty;try{c({},"",{})}catch(t){c=0}e=function(t,r,n,o){function i(r,n){e(t,r,function(t){return this._invoke(r,n,t)})}r?c?c(t,r,{value:n,enumerable:!o,configurable:!o,writable:!o}):t[r]=n:(i("next",0),i("throw",1),i("return",2))},e(t,r,n,o)}function r(t,e,r,n,o,c,i){try{var a=t[c](i),u=a.value}catch(t){return void r(t)}a.done?e(u):Promise.resolve(u).then(n,o)}function n(t){return function(){var e=this,n=arguments;return new Promise(function(o,c){var i=t.apply(e,n);function a(t){r(i,o,c,a,u,"next",t)}function u(t){r(i,o,c,a,u,"throw",t)}a(void 0)})}}System.register(["./utils-lib-legacy.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./index-legacy74.js?v=1777008528"],function(e,r){"use strict";var o,c,i,a,u,f,s,l,p,v,d;return{setters:[function(t){o=t.k,c=t.fl,i=t.dp,a=t._},function(t){u=t.r,f=t.H,s=t.c,l=t.j,p=t.C,v=t.p},function(t){d=t.c}],execute:function(){var b=u("errorCode"),y=(e("f",u(!1)),e("d",u(!1))),g=e("a",u()),m=e("c",f({status:!1,time:"1",unit:"d",cache_suffix:"css,js,jpg,jpeg,gif,png,webp,woff,eot,ttf,svg,ico,css.map,js.map"})),h=(e("t",[{label:"分钟",value:"m"},{label:"小时",value:"h"},{label:"天",value:"d"}]),e("e",[{content:"缓存是一种用于加速网站性能和提高用户体验的技术"},{content:"开启后资源会被缓存,如果影响网站访问请关闭"},{content:"缓存键由主机名、URI 和请求参数组成"},{content:"默认忽略的响应头有:Set-Cookie|Cache-Control|expires|X-Accel-Expires"},{content:"默认缓存的静态资源有:css|js|jpg|jpeg|gif|png|webp|woff|eot|ttf|svg|ico|css.map|js.map"}]),e("b",{time:[{required:!0,message:"请输入正确的缓存时间",trigger:"blur",validator:function(t,e,r){e?isNaN(Number(e))?r(new Error("请输入数字")):Number(e)<1?r(new Error("请输入正确数字")):r():r(new Error("目标URL不能为空"))}}]}),e("s",function(t){h()}),e("o",n(t().m(function e(){var r,n,i,a;return t().w(function(t){for(;;)switch(t.n){case 0:return r=d(),n=r.httpRowData,i={load_id:n.value.load_id,proxy_cache_status:m.status?1:0,cache_time:"".concat(m.time).concat(m.unit),cache_suffix:m.cache_suffix.replace(/,/g,",")},t.n=1,g.value.validate();case 1:return t.n=2,o({loading:y,request:c(i),message:!0});case 2:return a=t.v,t.a(2,a.status)}},e)})))),j=s({__name:"index",setup:function(t){var e=i({type:"left-bg-card",value:b,options:[{label:"错误状态码",name:"errorCode",lazy:!0,render:function(){return a(function(){return r.import("./error-code-legacy.js?v=1777008528")},void 0,r.meta.url)}},{label:"缓存",name:"cache",lazy:!0,render:function(){return a(function(){return r.import("./cache-legacy.js?v=1777008528")},void 0,r.meta.url)}}]}).BtTabs;return function(t,r){return l(),p(v(e))}}}),_=Object.freeze(Object.defineProperty({__proto__:null,default:j},Symbol.toStringTag,{value:"Module"}));e("i",_)}}})}();