filecat 6.9.2 → 6.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/dist/{1636.30468729d36c207a8ef4.js → 1636.072967845ab14f895639.js} +1 -1
- package/build/dist/{2055.cb159742ee5a05e75046.js → 2055.62d0426a3fc1c31b0bab.js} +1 -1
- package/build/dist/{2286.cbd71319c6939820a1b9.js → 2286.7b47b50c225130b2a17e.js} +2 -2
- package/build/dist/2542.6894d0214af41b826e1d.js +1 -0
- package/build/dist/2851.6d0f7f44b07703b3b9d7.js +1 -0
- package/build/dist/397.35e2e66390b0f2e972d7.js +2 -0
- package/build/dist/{4273.b5a75d7edaf3213e5bbf.js → 4273.41a9feaab67d7ad3f8b5.js} +1 -1
- package/build/dist/{5838.1d57a1ebe1d439a635b2.js → 5838.5d636e34b45888ec83a4.js} +1 -1
- package/build/dist/{5937.088e5a04adbf7f7f643e.js → 5937.523bd926b56c396be084.js} +1 -1
- package/build/dist/6084.cb0ad62ae4786aa13a54.js +1 -0
- package/build/dist/6413.c7a7182be7e2f9e321e1.js +1 -0
- package/build/dist/{6723.faaa06f224af3b03127a.js → 6723.543183e8747e2b0ace9c.js} +2 -2
- package/build/dist/{7795.62b518fc1550f5ab95c9.js → 7795.3a83ff937851fbdbb757.js} +2 -2
- package/build/dist/8194.6a91fdc006d0b5369b74.js +1 -0
- package/build/dist/8302.b421118ad87aa89119bf.js +1 -0
- package/build/dist/9782.ecacd943d1a29c6bf31e.js +1 -0
- package/build/dist/index.html +1 -1
- package/build/dist/main.6d4d28884666f264065f.js +1 -0
- package/build/dist/{npm.axios.5550ce6331dd7babbcfe.js → npm.axios.a286c4fe3f8d4ec9796a.js} +1 -1
- package/build/dist/npm.d3-selection.d25be3c43262bec3e0e9.js +1 -0
- package/build/dist/npm.d3-shape.eb306454bfc543d4fbcf.js +1 -0
- package/build/dist/npm.es-toolkit.34c9948c83cd1954dd90.js +1 -0
- package/build/dist/{npm.excalidraw.1b06762da5042714467a.js → npm.excalidraw.94526d6a7108a360de25.js} +1 -1
- package/build/dist/{npm.floating-ui.c75a64cadcbaaebc0082.js → npm.floating-ui.6eecae6896df6b20e910.js} +1 -1
- package/build/dist/npm.github-markdown-css.82ca3e981b64da3ae836.js +1 -0
- package/build/dist/{npm.highlight.js.630038518d374f6e2cc8.js → npm.highlight.js.e197da73449d85791b07.js} +1 -1
- package/build/dist/npm.i18next.ea872f8dfd91b2154015.js +1 -0
- package/build/dist/npm.image-blob-reduce.25b5b3d0361f80b89938.js +2 -0
- package/build/dist/{npm.khroma.7ab89b0e2068439dcb74.js → npm.khroma.82cbf6838f023564870b.js} +1 -1
- package/build/dist/{npm.lodash-es.caed1cb74816cb0ed085.js → npm.lodash-es.9c09e9abc4ae8587b600.js} +1 -1
- package/build/dist/npm.markdown-it.d69ce2e9e8ffa466eba6.js +1 -0
- package/build/dist/npm.mermaid.e0b59d2463c32a0e43db.js +1 -0
- package/build/dist/npm.mpd-parser.cf420d46dbb8a8921ab1.js +1 -0
- package/build/dist/{npm.noty.9c23b429c58905300317.js → npm.noty.2eab57f475fb39eb37db.js} +2 -2
- package/build/dist/{npm.react-router.6294ae9e93aa01cece06.js → npm.react-router.2b16d221233fc84c4261.js} +2 -2
- package/build/dist/{npm.video.js.a61b7ba57d10b9b3e56d.js → npm.video.js.2d49851da555765dc3e4.js} +2 -2
- package/build/dist/{npm.videojs.230d2e05e6e419773044.js → npm.videojs.06bcec493b9d59598ea8.js} +1 -1
- package/build/dist/{npm.xterm.757ab099dce39da3f542.js → npm.xterm.657bae3fcfdbec409d2b.js} +1 -1
- package/build/main.js +1 -1
- package/build/plugin/core.type.d.ts +22 -0
- package/build/threads.work.filecat.js +1 -1
- package/package.json +3 -2
- package/build/dist/2542.0e99091dcaba3d4146f7.js +0 -1
- package/build/dist/2851.1a65e336550d234e96ee.js +0 -1
- package/build/dist/397.19bbedd5e9d5ed0c6790.js +0 -2
- package/build/dist/6084.6c144a4d692d003cfca0.js +0 -1
- package/build/dist/7274.2b2a3e2ea2541db2c202.js +0 -1
- package/build/dist/8302.345d05a7a3fa23d2b15d.js +0 -1
- package/build/dist/9782.8808d86e7e0a6928ad5d.js +0 -1
- package/build/dist/main.a0b8da302660e45014c9.js +0 -1
- package/build/dist/npm.d3-selection.d95fb47c647ef6e93798.js +0 -1
- package/build/dist/npm.d3-shape.a087932c2fb242e67aa2.js +0 -1
- package/build/dist/npm.es-toolkit.6e2def85c642c1ae121c.js +0 -1
- package/build/dist/npm.github-markdown-css.a3ce76a1172b0aa3ee39.js +0 -1
- package/build/dist/npm.i18next.4d343d06af92faf9acfd.js +0 -1
- package/build/dist/npm.image-blob-reduce.973825a3b7c5a1605a78.js +0 -2
- package/build/dist/npm.markdown-it.81994f1b0a64619b892a.js +0 -1
- package/build/dist/npm.mermaid.92be56e14ee41c57413e.js +0 -1
- package/build/dist/npm.mpd-parser.8d49860cde5e4ba98bce.js +0 -1
- /package/build/dist/{2286.cbd71319c6939820a1b9.js.LICENSE.txt → 2286.7b47b50c225130b2a17e.js.LICENSE.txt} +0 -0
- /package/build/dist/{397.19bbedd5e9d5ed0c6790.js.LICENSE.txt → 397.35e2e66390b0f2e972d7.js.LICENSE.txt} +0 -0
- /package/build/dist/{6723.faaa06f224af3b03127a.js.LICENSE.txt → 6723.543183e8747e2b0ace9c.js.LICENSE.txt} +0 -0
- /package/build/dist/{7795.62b518fc1550f5ab95c9.js.LICENSE.txt → 7795.3a83ff937851fbdbb757.js.LICENSE.txt} +0 -0
- /package/build/dist/{npm.image-blob-reduce.973825a3b7c5a1605a78.js.LICENSE.txt → npm.image-blob-reduce.25b5b3d0361f80b89938.js.LICENSE.txt} +0 -0
- /package/build/dist/{npm.noty.9c23b429c58905300317.js.LICENSE.txt → npm.noty.2eab57f475fb39eb37db.js.LICENSE.txt} +0 -0
- /package/build/dist/{npm.react-router.6294ae9e93aa01cece06.js.LICENSE.txt → npm.react-router.2b16d221233fc84c4261.js.LICENSE.txt} +0 -0
- /package/build/dist/{npm.video.js.a61b7ba57d10b9b3e56d.js.LICENSE.txt → npm.video.js.2d49851da555765dc3e4.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[1636],{88062(e,n,s){s
|
|
1
|
+
"use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[1636],{88062(e,n,s){s(96540),s(47022);var o=s(74848);function t(e){return(0,o.jsx)("div",{className:"black-tip",onClick:()=>{e.click&&e.click(e)},onContextMenu:n=>{n.stopPropagation(),n.nativeEvent.stopImmediatePropagation(),e.onContextMenu&&e.onContextMenu(n,e)},children:e.name})}const i=e=>(0,o.jsxs)("li",{children:[e.click?(0,o.jsx)(t,{...e.node,name:e.render?e.render(e.node):e.node.name,click:e.click,onContextMenu:e.onContextMenu}):(0,o.jsx)("div",{children:e.render?e.render(e.node):e.node.name}),e.node.children&&e.node.children.length>0&&(0,o.jsx)("ul",{children:e.node.children.map((n,s)=>(0,o.jsx)(i,{node:n,click:e.click,onContextMenu:e.onContextMenu,render:e.render},s))})]}),c=e=>(0,o.jsx)("div",{className:"card-tree-view",children:(0,o.jsx)("ul",{children:e.list&&e.list.map((n,s)=>(0,o.jsx)(i,{node:n,click:e.click,onContextMenu:e.onContextMenu,render:e.render},s))})});s.d(n,["A",0,c])},81636(e,n,s){s.r(n),s.d(n,{default:()=>w});var o=s(59270),t=s(96540),i=s(34843),c=s(26417),r=s(92275),l=s(14944),d=s(70447),a=s(85997),u=s(57952),x=s(75725),f=s(47071),h=s(34289),m=s(88062),j=s(97856),v=(s(62042),s(15629),s(74848));const k=t.lazy(()=>Promise.all([s.e(7986),s.e(3233)]).then(s.bind(s,85614)));let p,_;function w(e){const{t:n}=(0,o.Bd)(),[s,w]=(0,i.fp)(c.AG.workflow_realtime_show),[g,C]=(0,t.useState)([]),[y,M]=(0,t.useState)([]),[b,q]=(0,t.useState)(!1),[S,F]=(0,t.useState)(void 0),[A,N]=(0,t.useState)([]),$=e=>{for(const n of e){if(null==n.code&&n?.extra_data?.running_type===f.rl.running)n.name=(0,v.jsxs)("div",{children:[(0,v.jsx)(d.fq,{running:!0}),n.name]});else if(0===n.code)n.name=(0,v.jsxs)("div",{children:[(0,v.jsx)(d.fq,{success:!0}),n.name]});else{if(!(n.code<1)){delete n.children;continue}n.name=(0,v.jsxs)("div",{children:[(0,v.jsx)(d.fq,{success:!1}),n.name]})}n.children&&$(n.children)}};(0,t.useEffect)(()=>(q(!1),p=void 0,_=void 0,(async()=>{const e=new f.v3;e.filename_path=`${(0,h.GG)("file",(0,h.vX)())}${s.filename}`,l.ws.addMsg(r.HK.workflow_realtime_one_rsq,e=>{if(e.context.list&&e.context.list.length>0){const n=e.context.list;$(n),N(n)}e.context.new_log&&B(e.context.new_log)}),l.ws.sendData(r.HK.workflow_realtime_one_req,e)})(),async()=>{l.ws.removeMsg(r.HK.workflow_realtime_one_rsq),_&&(_.dispose(),_=null)}),[]);const B=async e=>{_||await new Promise(e=>{p=e,q(!0),(async()=>{const e=new j.Terminal({fontFamily:"Monaco, Menlo, Consolas, 'Courier New', monospace",theme:{background:"#FFFFFF",foreground:"#000000",cursor:"#000000",selectionBackground:"#a6d2ff"},cursorBlink:!0,cursorStyle:"bar",scrollback:1e3,scrollSensitivity:1,tabStopWidth:4,convertEol:!0});_=e,F(e)})()}),e&&_.write(e)};return(0,v.jsxs)("div",{children:[(0,v.jsxs)(u.A,{children:[S&&(0,v.jsx)(a.rA,{icon:"print",title:"打印日志",onClick:()=>{q(!b)}}),(0,v.jsx)(a.rA,{icon:"close",title:n("关闭"),onClick:()=>{w({open:!1})}})]}),(0,v.jsx)(x.jW,{isFull:!0,more:!0,children:(0,v.jsx)(x.NN,{children:(0,v.jsx)(m.A,{list:A,click:e=>{}})})}),(0,v.jsx)("div",{style:{display:b?"":"none"},children:(0,v.jsx)(k,{show:!0,terminal:S,init:()=>{p&&(p(1),p=void 0)}})})]})}},15629(e,n,s){s.d(n,{W:()=>r});s(96540);var o=s(70447),t=s(47071),i=s(59270),c=s(74848);function r({item:e}){const{t:n}=(0,i.Bd)();let s,r;return null!=e.code?s=0===e.code:e.extra_data?.running_type===t.rl.running&&(r=!0),(0,c.jsxs)("div",{children:[(0,c.jsx)(o.fq,{success:s,running:r}),n(s?"成功":"失败")]})}const l=(e,n,s)=>{if(n)for(const s of n??[]){let n;const t=[];s["use-yml"]?(l(t,void 0,s.use_job_children_list),n=`${s["use-yml"]} ;${s.duration??-1}`):s.runs?n=JSON.stringify(s.runs):s.run?n=s.run:s["run-js"]?n=s["run-js"]:s.sleep&&(n=`sleep ${s.sleep}`),n=(0,c.jsxs)("div",{children:[(0,c.jsx)(o.fq,{success:void 0===s.code?void 0:0===s.code})," ",n+" ;"+(s.duration??"")]}),e.push({name:n,children:t,extra_data:{code:s.code,context:s.message}})}else if(s)for(const n of s??[]){const s=(0,c.jsxs)("div",{children:[(0,c.jsx)(o.fq,{success:void 0===n.code?void 0:0===n.code}),"$",n.name]});e.push({name:s,extra_data:{code:n.code,is_job:!0,job_data:n}})}};s.d(n,["Y",0,l])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[2055],{69428(u){var e=!0,t=!1,n=!1;function o(u,e,t){var n=u.attrIndex(e),o=[e,t];n<0?u.attrPush(o):u.attrs[n]=o}function s(u,e){for(var t=u[e].level-1,n=e-1;n>=0;n--)if(u[n].level===t)return n;return-1}function r(u,e){return"inline"===u[e].type&&function(u){return"paragraph_open"===u.type}(u[e-1])&&function(u){return"list_item_open"===u.type}(u[e-2])&&function(u){return 0===u.content.indexOf("[ ] ")||0===u.content.indexOf("[x] ")||0===u.content.indexOf("[X] ")}(u[e])}function i(u,o){if(u.children.unshift(function(u,t){var n=new t("html_inline","",0),o=e?' disabled="" ':"";0===u.content.indexOf("[ ] ")?n.content='<input class="task-list-item-checkbox"'+o+'type="checkbox">':0!==u.content.indexOf("[x] ")&&0!==u.content.indexOf("[X] ")||(n.content='<input class="task-list-item-checkbox" checked=""'+o+'type="checkbox">');return n}(u,o)),u.children[1].content=u.children[1].content.slice(3),u.content=u.content.slice(3),t)if(n){u.children.pop();var s="task-item-"+Math.ceil(1e7*Math.random()-1e3);u.children[0].content=u.children[0].content.slice(0,-1)+' id="'+s+'">',u.children.push(function(u,e,t){var n=new t("html_inline","",0);return n.content='<label class="task-list-item-label" for="'+e+'">'+u+"</label>",n.attrs=[{for:e}],n}(u.content,s,o))}else u.children.unshift(function(u){var e=new u("html_inline","",0);return e.content="<label>",e}(o)),u.children.push(function(u){var e=new u("html_inline","",0);return e.content="</label>",e}(o))}u.exports=function(u,c){c&&(e=!c.enabled,t=!!c.label,n=!!c.labelAfter),u.core.ruler.after("inline","github-task-lists",function(u){for(var t=u.tokens,n=2;n<t.length;n++)r(t,n)&&(i(t[n],u.Token),o(t[n-2],"class","task-list-item"+(e?"":" enabled")),o(t[s(t,n-2)],"class","contains-task-list"))})}},27444(u,e,t){"use strict";t.d(e,{Ay:()=>A});const n=2147483647,o=36,s=/^xn--/,r=/[^\0-\x7F]/,i=/[\x2E\u3002\uFF0E\uFF61]/g,c={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},l=Math.floor,D=String.fromCharCode;function a(u){throw new RangeError(c[u])}function F(u,e){const t=u.split("@");let n="";t.length>1&&(n=t[0]+"@",u=t[1]);const o=function(u,e){const t=[];let n=u.length;for(;n--;)t[n]=e(u[n]);return t}((u=u.replace(i,".")).split("."),e).join(".");return n+o}function f(u){const e=[];let t=0;const n=u.length;for(;t<n;){const o=u.charCodeAt(t++);if(o>=55296&&o<=56319&&t<n){const n=u.charCodeAt(t++);56320==(64512&n)?e.push(((1023&o)<<10)+(1023&n)+65536):(e.push(o),t--)}else e.push(o)}return e}const h=function(u){return u>=48&&u<58?u-48+26:u>=65&&u<91?u-65:u>=97&&u<123?u-97:o},p=function(u,e){return u+22+75*(u<26)-((0!=e)<<5)},C=function(u,e,t){let n=0;for(u=t?l(u/700):u>>1,u+=l(u/e);u>455;n+=o)u=l(u/35);return l(n+36*u/(u+38))},E=function(u){const e=[],t=u.length;let s=0,r=128,i=72,c=u.lastIndexOf("-");c<0&&(c=0);for(let t=0;t<c;++t)u.charCodeAt(t)>=128&&a("not-basic"),e.push(u.charCodeAt(t));for(let D=c>0?c+1:0;D<t;){const c=s;for(let e=1,r=o;;r+=o){D>=t&&a("invalid-input");const c=h(u.charCodeAt(D++));c>=o&&a("invalid-input"),c>l((n-s)/e)&&a("overflow"),s+=c*e;const F=r<=i?1:r>=i+26?26:r-i;if(c<F)break;const f=o-F;e>l(n/f)&&a("overflow"),e*=f}const F=e.length+1;i=C(s-c,F,0==c),l(s/F)>n-r&&a("overflow"),r+=l(s/F),s%=F,e.splice(s++,0,r)}return String.fromCodePoint(...e)},d=function(u){const e=[],t=(u=f(u)).length;let s=128,r=0,i=72;for(const t of u)t<128&&e.push(D(t));const c=e.length;let F=c;for(c&&e.push("-");F<t;){let t=n;for(const e of u)e>=s&&e<t&&(t=e);const f=F+1;t-s>l((n-r)/f)&&a("overflow"),r+=(t-s)*f,s=t;for(const t of u)if(t<s&&++r>n&&a("overflow"),t===s){let u=r;for(let t=o;;t+=o){const n=t<=i?1:t>=i+26?26:t-i;if(u<n)break;const s=u-n,r=o-n;e.push(D(p(n+s%r,0))),u=l(s/r)}e.push(D(p(u,0))),i=C(r,f,F===c),r=0,++F}++r,++s}return e.join("")},A={version:"2.3.1",ucs2:{decode:f,encode:u=>String.fromCodePoint(...u)},decode:E,encode:d,toASCII:function(u){return F(u,function(u){return r.test(u)?"xn--"+d(u):u})},toUnicode:function(u){return F(u,function(u){return s.test(u)?E(u.slice(4).toLowerCase()):u})}}},53995(u,e,t){"use strict";t.d(e,{A:()=>i});const n={grinning:"😀",smiley:"😃",smile:"😄",grin:"😁",laughing:"😆",satisfied:"😆",sweat_smile:"😅",joy:"😂",wink:"😉",blush:"😊",innocent:"😇",heart_eyes:"😍",kissing_heart:"😘",kissing:"😗",kissing_closed_eyes:"😚",kissing_smiling_eyes:"😙",yum:"😋",stuck_out_tongue:"😛",stuck_out_tongue_winking_eye:"😜",stuck_out_tongue_closed_eyes:"😝",neutral_face:"😐",expressionless:"😑",no_mouth:"😶",smirk:"😏",unamused:"😒",relieved:"😌",pensive:"😔",sleepy:"😪",sleeping:"😴",mask:"😷",dizzy_face:"😵",sunglasses:"😎",confused:"😕",worried:"😟",open_mouth:"😮",hushed:"😯",astonished:"😲",flushed:"😳",frowning:"😦",anguished:"😧",fearful:"😨",cold_sweat:"😰",disappointed_relieved:"😥",cry:"😢",sob:"😭",scream:"😱",confounded:"😖",persevere:"😣",disappointed:"😞",sweat:"😓",weary:"😩",tired_face:"😫",rage:"😡",pout:"😡",angry:"😠",smiling_imp:"😈",smiley_cat:"😺",smile_cat:"😸",joy_cat:"😹",heart_eyes_cat:"😻",smirk_cat:"😼",kissing_cat:"😽",scream_cat:"🙀",crying_cat_face:"😿",pouting_cat:"😾",heart:"❤️",hand:"✋",raised_hand:"✋",v:"✌️",point_up:"☝️",fist_raised:"✊",fist:"✊",monkey_face:"🐵",cat:"🐱",cow:"🐮",mouse:"🐭",coffee:"☕",hotsprings:"♨️",anchor:"⚓",airplane:"✈️",hourglass:"⌛",watch:"⌚",sunny:"☀️",star:"⭐",cloud:"☁️",umbrella:"☔",zap:"⚡",snowflake:"❄️",sparkles:"✨",black_joker:"🃏",mahjong:"🀄",phone:"☎️",telephone:"☎️",envelope:"✉️",pencil2:"✏️",black_nib:"✒️",scissors:"✂️",wheelchair:"♿",warning:"⚠️",aries:"♈",taurus:"♉",gemini:"♊",cancer:"♋",leo:"♌",virgo:"♍",libra:"♎",scorpius:"♏",sagittarius:"♐",capricorn:"♑",aquarius:"♒",pisces:"♓",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",heavy_minus_sign:"➖",heavy_division_sign:"➗",bangbang:"‼️",interrobang:"⁉️",question:"❓",grey_question:"❔",grey_exclamation:"❕",exclamation:"❗",heavy_exclamation_mark:"❗",wavy_dash:"〰️",recycle:"♻️",white_check_mark:"✅",ballot_box_with_check:"☑️",heavy_check_mark:"✔️",x:"❌",negative_squared_cross_mark:"❎",curly_loop:"➰",loop:"➿",part_alternation_mark:"〽️",eight_spoked_asterisk:"✳️",eight_pointed_black_star:"✴️",sparkle:"❇️",copyright:"©️",registered:"®️",tm:"™️",information_source:"ℹ️",m:"Ⓜ️",black_circle:"⚫",white_circle:"⚪",black_large_square:"⬛",white_large_square:"⬜",black_medium_square:"◼️",white_medium_square:"◻️",black_medium_small_square:"◾",white_medium_small_square:"◽",black_small_square:"▪️",white_small_square:"▫️"},o={angry:[">:(",">:-("],blush:[':")',':-")'],broken_heart:["</3","<\\3"],confused:[":/",":-/"],cry:[":'(",":'-(",":,(",":,-("],frowning:[":(",":-("],heart:["<3"],imp:["]:(","]:-("],innocent:["o:)","O:)","o:-)","O:-)","0:)","0:-)"],joy:[":')",":'-)",":,)",":,-)",":'D",":'-D",":,D",":,-D"],kissing:[":*",":-*"],laughing:["x-)","X-)"],neutral_face:[":|",":-|"],open_mouth:[":o",":-o",":O",":-O"],rage:[":@",":-@"],smile:[":D",":-D"],smiley:[":)",":-)"],smiling_imp:["]:)","]:-)"],sob:[":,'(",":,'-(",";(",";-("],stuck_out_tongue:[":P",":-P"],sunglasses:["8-)","B-)"],sweat:[",:(",",:-("],sweat_smile:[",:)",",:-)"],unamused:[":s",":-S",":z",":-Z",":$",":-$"],wink:[";)",";-)"]};function s(u,e){return u[e].content}function r(u,e){const t=function(u){let e=u.defs;u.enabled.length&&(e=Object.keys(e).reduce((t,n)=>(u.enabled.indexOf(n)>=0&&(t[n]=e[n]),t),{}));const t=Object.keys(u.shortcuts).reduce((t,n)=>e[n]?Array.isArray(u.shortcuts[n])?(u.shortcuts[n].forEach(u=>{t[u]=n}),t):(t[u.shortcuts[n]]=n,t):t,{}),n=Object.keys(e);let o;o=0===n.length?"^$":n.map(u=>`:${u}:`).concat(Object.keys(t)).sort().reverse().map(u=>u.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")).join("|");const s=RegExp(o),r=RegExp(o,"g");return{defs:e,shortcuts:t,scanRE:s,replaceRE:r}}(u.utils.assign({},{defs:{},shortcuts:{},enabled:[]},e||{}));u.renderer.rules.emoji=s,u.core.ruler.after("linkify","emoji",function(u,e,t,n,o){const s=u.utils.arrayReplaceAt,r=u.utils.lib.ucmicro,i=u.utils.has,c=new RegExp([r.Z.source,r.P.source,r.Cc.source].join("|"));function l(u,n,s){let r=0;const l=[];if(u.replace(o,function(n,o,D){let a;if(i(t,n)){if(a=t[n],o>0&&!c.test(D[o-1]))return;if(o+n.length<D.length&&!c.test(D[o+n.length]))return}else a=n.slice(1,-1);if(o>r){const e=new s("text","",0);e.content=u.slice(r,o),l.push(e)}const F=new s("emoji","",0);F.markup=a,F.content=e[a],l.push(F),r=o+n.length}),r<u.length){const e=new s("text","",0);e.content=u.slice(r),l.push(e)}return l}return function(u){let e;const t=u.tokens;let o=0;for(let r=0,i=t.length;r<i;r++){if("inline"!==t[r].type)continue;let i=t[r].children;for(let c=i.length-1;c>=0;c--)e=i[c],"link_open"!==e.type&&"link_close"!==e.type||"auto"===e.info&&(o-=e.nesting),"text"===e.type&&0===o&&n.test(e.content)&&(t[r].children=i=s(i,c,l(e.content,e.level,u.Token)))}}}(u,t.defs,t.shortcuts,t.scanRE,t.replaceRE))}function i(u,e){const t={defs:n,shortcuts:o,enabled:[]},s=u.utils.assign({},t,e||{});r(u,s)}},8263(u,e,t){"use strict";function n(u,e,t,n){const o=Number(u[e].meta.id+1).toString();let s="";return"string"==typeof n.docId&&(s=`-${n.docId}-`),s+o}function o(u,e){let t=Number(u[e].meta.id+1).toString();return u[e].meta.subId>0&&(t+=`:${u[e].meta.subId}`),`[${t}]`}function s(u,e,t,n,o){const s=o.rules.footnote_anchor_name(u,e,t,n,o),r=o.rules.footnote_caption(u,e,t,n,o);let i=s;return u[e].meta.subId>0&&(i+=`:${u[e].meta.subId}`),`<sup class="footnote-ref"><a href="#fn${s}" id="fnref${i}">${r}</a></sup>`}function r(u,e,t){return(t.xhtmlOut?'<hr class="footnotes-sep" />\n':'<hr class="footnotes-sep">\n')+'<section class="footnotes">\n<ol class="footnotes-list">\n'}function i(){return"</ol>\n</section>\n"}function c(u,e,t,n,o){let s=o.rules.footnote_anchor_name(u,e,t,n,o);return u[e].meta.subId>0&&(s+=`:${u[e].meta.subId}`),`<li id="fn${s}" class="footnote-item">`}function l(){return"</li>\n"}function D(u,e,t,n,o){let s=o.rules.footnote_anchor_name(u,e,t,n,o);return u[e].meta.subId>0&&(s+=`:${u[e].meta.subId}`),` <a href="#fnref${s}" class="footnote-backref">↩︎</a>`}function a(u){const e=u.helpers.parseLinkLabel,t=u.utils.isSpace;u.renderer.rules.footnote_ref=s,u.renderer.rules.footnote_block_open=r,u.renderer.rules.footnote_block_close=i,u.renderer.rules.footnote_open=c,u.renderer.rules.footnote_close=l,u.renderer.rules.footnote_anchor=D,u.renderer.rules.footnote_caption=o,u.renderer.rules.footnote_anchor_name=n,u.block.ruler.before("reference","footnote_def",function(u,e,n,o){const s=u.bMarks[e]+u.tShift[e],r=u.eMarks[e];if(s+4>r)return!1;if(91!==u.src.charCodeAt(s))return!1;if(94!==u.src.charCodeAt(s+1))return!1;let i;for(i=s+2;i<r;i++){if(32===u.src.charCodeAt(i))return!1;if(93===u.src.charCodeAt(i))break}if(i===s+2)return!1;if(i+1>=r||58!==u.src.charCodeAt(++i))return!1;if(o)return!0;i++,u.env.footnotes||(u.env.footnotes={}),u.env.footnotes.refs||(u.env.footnotes.refs={});const c=u.src.slice(s+2,i-2);u.env.footnotes.refs[`:${c}`]=-1;const l=new u.Token("footnote_reference_open","",1);l.meta={label:c},l.level=u.level++,u.tokens.push(l);const D=u.bMarks[e],a=u.tShift[e],F=u.sCount[e],f=u.parentType,h=i,p=u.sCount[e]+i-(u.bMarks[e]+u.tShift[e]);let C=p;for(;i<r;){const e=u.src.charCodeAt(i);if(!t(e))break;9===e?C+=4-C%4:C++,i++}u.tShift[e]=i-h,u.sCount[e]=C-p,u.bMarks[e]=h,u.blkIndent+=4,u.parentType="footnote",u.sCount[e]<u.blkIndent&&(u.sCount[e]+=u.blkIndent),u.md.block.tokenize(u,e,n,!0),u.parentType=f,u.blkIndent-=4,u.tShift[e]=a,u.sCount[e]=F,u.bMarks[e]=D;const E=new u.Token("footnote_reference_close","",-1);return E.level=--u.level,u.tokens.push(E),!0},{alt:["paragraph","reference"]}),u.inline.ruler.after("image","footnote_inline",function(u,t){const n=u.posMax,o=u.pos;if(o+2>=n)return!1;if(94!==u.src.charCodeAt(o))return!1;if(91!==u.src.charCodeAt(o+1))return!1;const s=o+2,r=e(u,o+1);if(r<0)return!1;if(!t){u.env.footnotes||(u.env.footnotes={}),u.env.footnotes.list||(u.env.footnotes.list=[]);const e=u.env.footnotes.list.length,t=[];u.md.inline.parse(u.src.slice(s,r),u.md,u.env,t);u.push("footnote_ref","",0).meta={id:e},u.env.footnotes.list[e]={content:u.src.slice(s,r),tokens:t}}return u.pos=r+1,u.posMax=n,!0}),u.inline.ruler.after("footnote_inline","footnote_ref",function(u,e){const t=u.posMax,n=u.pos;if(n+3>t)return!1;if(!u.env.footnotes||!u.env.footnotes.refs)return!1;if(91!==u.src.charCodeAt(n))return!1;if(94!==u.src.charCodeAt(n+1))return!1;let o;for(o=n+2;o<t;o++){if(32===u.src.charCodeAt(o))return!1;if(10===u.src.charCodeAt(o))return!1;if(93===u.src.charCodeAt(o))break}if(o===n+2)return!1;if(o>=t)return!1;o++;const s=u.src.slice(n+2,o-1);if(void 0===u.env.footnotes.refs[`:${s}`])return!1;if(!e){let e;u.env.footnotes.list||(u.env.footnotes.list=[]),u.env.footnotes.refs[`:${s}`]<0?(e=u.env.footnotes.list.length,u.env.footnotes.list[e]={label:s,count:0},u.env.footnotes.refs[`:${s}`]=e):e=u.env.footnotes.refs[`:${s}`];const t=u.env.footnotes.list[e].count;u.env.footnotes.list[e].count++;u.push("footnote_ref","",0).meta={id:e,subId:t,label:s}}return u.pos=o,u.posMax=t,!0}),u.core.ruler.after("inline","footnote_tail",function(u){let e,t,n,o=!1;const s={};if(!u.env.footnotes)return;if(u.tokens=u.tokens.filter(function(u){return"footnote_reference_open"===u.type?(o=!0,t=[],n=u.meta.label,!1):"footnote_reference_close"===u.type?(o=!1,s[":"+n]=t,!1):(o&&t.push(u),!o)}),!u.env.footnotes.list)return;const r=u.env.footnotes.list;u.tokens.push(new u.Token("footnote_block_open","",1));for(let t=0,n=r.length;t<n;t++){const n=new u.Token("footnote_open","",1);if(n.meta={id:t,label:r[t].label},u.tokens.push(n),r[t].tokens){e=[];const n=new u.Token("paragraph_open","p",1);n.block=!0,e.push(n);const o=new u.Token("inline","",0);o.children=r[t].tokens,o.content=r[t].content,e.push(o);const s=new u.Token("paragraph_close","p",-1);s.block=!0,e.push(s)}else r[t].label&&(e=s[`:${r[t].label}`]);let o;e&&(u.tokens=u.tokens.concat(e)),o="paragraph_close"===u.tokens[u.tokens.length-1].type?u.tokens.pop():null;const i=r[t].count>0?r[t].count:1;for(let e=0;e<i;e++){const n=new u.Token("footnote_anchor","",0);n.meta={id:t,subId:e,label:r[t].label},u.tokens.push(n)}o&&u.tokens.push(o),u.tokens.push(new u.Token("footnote_close","",-1))}u.tokens.push(new u.Token("footnote_block_close","",-1))})}t.d(e,{A:()=>a})},18569(u,e,t){"use strict";t.d(e,{A:()=>s});const n=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function o(u,e){const t=u.posMax,o=u.pos;if(126!==u.src.charCodeAt(o))return!1;if(e)return!1;if(o+2>=t)return!1;u.pos=o+1;let s=!1;for(;u.pos<t;){if(126===u.src.charCodeAt(u.pos)){s=!0;break}u.md.inline.skipToken(u)}if(!s||o+1===u.pos)return u.pos=o,!1;const r=u.src.slice(o+1,u.pos);if(r.match(/(^|[^\\])(\\\\)*\s/))return u.pos=o,!1;u.posMax=u.pos,u.pos=o+1;u.push("sub_open","sub",1).markup="~";u.push("text","",0).content=r.replace(n,"$1");return u.push("sub_close","sub",-1).markup="~",u.pos=u.posMax+1,u.posMax=t,!0}function s(u){u.inline.ruler.after("emphasis","sub",o)}},77979(u,e,t){"use strict";t.d(e,{A:()=>s});const n=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function o(u,e){const t=u.posMax,o=u.pos;if(94!==u.src.charCodeAt(o))return!1;if(e)return!1;if(o+2>=t)return!1;u.pos=o+1;let s=!1;for(;u.pos<t;){if(94===u.src.charCodeAt(u.pos)){s=!0;break}u.md.inline.skipToken(u)}if(!s||o+1===u.pos)return u.pos=o,!1;const r=u.src.slice(o+1,u.pos);if(r.match(/(^|[^\\])(\\\\)*\s/))return u.pos=o,!1;u.posMax=u.pos,u.pos=o+1;u.push("sup_open","sup",1).markup="^";u.push("text","",0).content=r.replace(n,"$1");return u.push("sup_close","sup",-1).markup="^",u.pos=u.posMax+1,u.posMax=t,!0}function s(u){u.inline.ruler.after("emphasis","sup",o)}},45342(u,e,t){"use strict";t.r(e),t.d(e,{decode:()=>s,encode:()=>c,format:()=>l,parse:()=>k});const n={};function o(u,e){"string"!=typeof e&&(e=o.defaultChars);const t=function(u){let e=n[u];if(e)return e;e=n[u]=[];for(let u=0;u<128;u++){const t=String.fromCharCode(u);e.push(t)}for(let t=0;t<u.length;t++){const n=u.charCodeAt(t);e[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2)}return e}(e);return u.replace(/(%[a-f0-9]{2})+/gi,function(u){let e="";for(let n=0,o=u.length;n<o;n+=3){const s=parseInt(u.slice(n+1,n+3),16);if(s<128)e+=t[s];else{if(192==(224&s)&&n+3<o){const t=parseInt(u.slice(n+4,n+6),16);if(128==(192&t)){const u=s<<6&1984|63&t;e+=u<128?"��":String.fromCharCode(u),n+=3;continue}}if(224==(240&s)&&n+6<o){const t=parseInt(u.slice(n+4,n+6),16),o=parseInt(u.slice(n+7,n+9),16);if(128==(192&t)&&128==(192&o)){const u=s<<12&61440|t<<6&4032|63&o;e+=u<2048||u>=55296&&u<=57343?"���":String.fromCharCode(u),n+=6;continue}}if(240==(248&s)&&n+9<o){const t=parseInt(u.slice(n+4,n+6),16),o=parseInt(u.slice(n+7,n+9),16),r=parseInt(u.slice(n+10,n+12),16);if(128==(192&t)&&128==(192&o)&&128==(192&r)){let u=s<<18&1835008|t<<12&258048|o<<6&4032|63&r;u<65536||u>1114111?e+="����":(u-=65536,e+=String.fromCharCode(55296+(u>>10),56320+(1023&u))),n+=9;continue}}e+="�"}}return e})}o.defaultChars=";/?:@&=+$,#",o.componentChars="";const s=o,r={};function i(u,e,t){"string"!=typeof e&&(t=e,e=i.defaultChars),void 0===t&&(t=!0);const n=function(u){let e=r[u];if(e)return e;e=r[u]=[];for(let u=0;u<128;u++){const t=String.fromCharCode(u);/^[0-9a-z]$/i.test(t)?e.push(t):e.push("%"+("0"+u.toString(16).toUpperCase()).slice(-2))}for(let t=0;t<u.length;t++)e[u.charCodeAt(t)]=u[t];return e}(e);let o="";for(let e=0,s=u.length;e<s;e++){const r=u.charCodeAt(e);if(t&&37===r&&e+2<s&&/^[0-9a-f]{2}$/i.test(u.slice(e+1,e+3)))o+=u.slice(e,e+3),e+=2;else if(r<128)o+=n[r];else if(r>=55296&&r<=57343){if(r>=55296&&r<=56319&&e+1<s){const t=u.charCodeAt(e+1);if(t>=56320&&t<=57343){o+=encodeURIComponent(u[e]+u[e+1]),e++;continue}}o+="%EF%BF%BD"}else o+=encodeURIComponent(u[e])}return o}i.defaultChars=";/?:@&=+$,-_.!~*'()#",i.componentChars="-_.!~*'()";const c=i;function l(u){let e="";return e+=u.protocol||"",e+=u.slashes?"//":"",e+=u.auth?u.auth+"@":"",u.hostname&&-1!==u.hostname.indexOf(":")?e+="["+u.hostname+"]":e+=u.hostname||"",e+=u.port?":"+u.port:"",e+=u.pathname||"",e+=u.search||"",e+=u.hash||"",e}function D(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const a=/^([a-z0-9.+-]+:)/i,F=/:[0-9]*$/,f=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,h=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),p=["'"].concat(h),C=["%","/","?",";","#"].concat(p),E=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,A=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,_={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};D.prototype.parse=function(u,e){let t,n,o,s=u;if(s=s.trim(),!e&&1===u.split("#").length){const u=f.exec(s);if(u)return this.pathname=u[1],u[2]&&(this.search=u[2]),this}let r=a.exec(s);if(r&&(r=r[0],t=r.toLowerCase(),this.protocol=r,s=s.substr(r.length)),(e||r||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o="//"===s.substr(0,2),!o||r&&_[r]||(s=s.substr(2),this.slashes=!0)),!_[r]&&(o||r&&!m[r])){let u,e,t=-1;for(let u=0;u<E.length;u++)n=s.indexOf(E[u]),-1!==n&&(-1===t||n<t)&&(t=n);e=-1===t?s.lastIndexOf("@"):s.lastIndexOf("@",t),-1!==e&&(u=s.slice(0,e),s=s.slice(e+1),this.auth=u),t=-1;for(let u=0;u<C.length;u++)n=s.indexOf(C[u]),-1!==n&&(-1===t||n<t)&&(t=n);-1===t&&(t=s.length),":"===s[t-1]&&t--;const o=s.slice(0,t);s=s.slice(t),this.parseHost(o),this.hostname=this.hostname||"";const r="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!r){const u=this.hostname.split(/\./);for(let e=0,t=u.length;e<t;e++){const t=u[e];if(t&&!t.match(d)){let n="";for(let u=0,e=t.length;u<e;u++)t.charCodeAt(u)>127?n+="x":n+=t[u];if(!n.match(d)){const n=u.slice(0,e),o=u.slice(e+1),r=t.match(A);r&&(n.push(r[1]),o.unshift(r[2])),o.length&&(s=o.join(".")+s),this.hostname=n.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),r&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const i=s.indexOf("#");-1!==i&&(this.hash=s.substr(i),s=s.slice(0,i));const c=s.indexOf("?");return-1!==c&&(this.search=s.substr(c),s=s.slice(0,c)),s&&(this.pathname=s),m[t]&&this.hostname&&!this.pathname&&(this.pathname=""),this},D.prototype.parseHost=function(u){let e=F.exec(u);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),u=u.substr(0,u.length-e.length)),u&&(this.hostname=u)};const k=function(u,e){if(u&&u instanceof D)return u;const t=new D;return t.parse(u,e),t}},36800(u,e,t){"use strict";t.d(e,{A:()=>n});const n=/[\0-\x1F\x7F-\x9F]/},97246(u,e,t){"use strict";t.d(e,{A:()=>n});const n=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},2889(u,e,t){"use strict";t.d(e,{A:()=>n});const n=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/},37120(u,e,t){"use strict";t.d(e,{A:()=>n});const n=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},40304(u,e,t){"use strict";t.r(e),t.d(e,{Any:()=>n.A,Cc:()=>o.A,Cf:()=>s,P:()=>r.A,S:()=>i.A,Z:()=>c.A});var n=t(60891),o=t(36800);const s=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/;var r=t(97246),i=t(2889),c=t(37120)},60891(u,e,t){"use strict";t.d(e,{A:()=>n});const n=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/}}]);
|
|
1
|
+
(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[2055],{69428(u){var e=!0,t=!1,n=!1;function o(u,e,t){var n=u.attrIndex(e),o=[e,t];n<0?u.attrPush(o):u.attrs[n]=o}function s(u,e){for(var t=u[e].level-1,n=e-1;n>=0;n--)if(u[n].level===t)return n;return-1}function r(u,e){return"inline"===u[e].type&&function(u){return"paragraph_open"===u.type}(u[e-1])&&function(u){return"list_item_open"===u.type}(u[e-2])&&function(u){return 0===u.content.indexOf("[ ] ")||0===u.content.indexOf("[x] ")||0===u.content.indexOf("[X] ")}(u[e])}function i(u,o){if(u.children.unshift(function(u,t){var n=new t("html_inline","",0),o=e?' disabled="" ':"";0===u.content.indexOf("[ ] ")?n.content='<input class="task-list-item-checkbox"'+o+'type="checkbox">':0!==u.content.indexOf("[x] ")&&0!==u.content.indexOf("[X] ")||(n.content='<input class="task-list-item-checkbox" checked=""'+o+'type="checkbox">');return n}(u,o)),u.children[1].content=u.children[1].content.slice(3),u.content=u.content.slice(3),t)if(n){u.children.pop();var s="task-item-"+Math.ceil(1e7*Math.random()-1e3);u.children[0].content=u.children[0].content.slice(0,-1)+' id="'+s+'">',u.children.push(function(u,e,t){var n=new t("html_inline","",0);return n.content='<label class="task-list-item-label" for="'+e+'">'+u+"</label>",n.attrs=[{for:e}],n}(u.content,s,o))}else u.children.unshift(function(u){var e=new u("html_inline","",0);return e.content="<label>",e}(o)),u.children.push(function(u){var e=new u("html_inline","",0);return e.content="</label>",e}(o))}u.exports=function(u,c){c&&(e=!c.enabled,t=!!c.label,n=!!c.labelAfter),u.core.ruler.after("inline","github-task-lists",function(u){for(var t=u.tokens,n=2;n<t.length;n++)r(t,n)&&(i(t[n],u.Token),o(t[n-2],"class","task-list-item"+(e?"":" enabled")),o(t[s(t,n-2)],"class","contains-task-list"))})}},27444(u,e,t){"use strict";const n=2147483647,o=36,s=/^xn--/,r=/[^\0-\x7F]/,i=/[\x2E\u3002\uFF0E\uFF61]/g,c={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},l=Math.floor,D=String.fromCharCode;function a(u){throw new RangeError(c[u])}function F(u,e){const t=u.split("@");let n="";t.length>1&&(n=t[0]+"@",u=t[1]);const o=function(u,e){const t=[];let n=u.length;for(;n--;)t[n]=e(u[n]);return t}((u=u.replace(i,".")).split("."),e).join(".");return n+o}function f(u){const e=[];let t=0;const n=u.length;for(;t<n;){const o=u.charCodeAt(t++);if(o>=55296&&o<=56319&&t<n){const n=u.charCodeAt(t++);56320==(64512&n)?e.push(((1023&o)<<10)+(1023&n)+65536):(e.push(o),t--)}else e.push(o)}return e}const h=function(u){return u>=48&&u<58?u-48+26:u>=65&&u<91?u-65:u>=97&&u<123?u-97:o},p=function(u,e){return u+22+75*(u<26)-((0!=e)<<5)},C=function(u,e,t){let n=0;for(u=t?l(u/700):u>>1,u+=l(u/e);u>455;n+=o)u=l(u/35);return l(n+36*u/(u+38))},E=function(u){const e=[],t=u.length;let s=0,r=128,i=72,c=u.lastIndexOf("-");c<0&&(c=0);for(let t=0;t<c;++t)u.charCodeAt(t)>=128&&a("not-basic"),e.push(u.charCodeAt(t));for(let D=c>0?c+1:0;D<t;){const c=s;for(let e=1,r=o;;r+=o){D>=t&&a("invalid-input");const c=h(u.charCodeAt(D++));c>=o&&a("invalid-input"),c>l((n-s)/e)&&a("overflow"),s+=c*e;const F=r<=i?1:r>=i+26?26:r-i;if(c<F)break;const f=o-F;e>l(n/f)&&a("overflow"),e*=f}const F=e.length+1;i=C(s-c,F,0==c),l(s/F)>n-r&&a("overflow"),r+=l(s/F),s%=F,e.splice(s++,0,r)}return String.fromCodePoint(...e)},d=function(u){const e=[],t=(u=f(u)).length;let s=128,r=0,i=72;for(const t of u)t<128&&e.push(D(t));const c=e.length;let F=c;for(c&&e.push("-");F<t;){let t=n;for(const e of u)e>=s&&e<t&&(t=e);const f=F+1;t-s>l((n-r)/f)&&a("overflow"),r+=(t-s)*f,s=t;for(const t of u)if(t<s&&++r>n&&a("overflow"),t===s){let u=r;for(let t=o;;t+=o){const n=t<=i?1:t>=i+26?26:t-i;if(u<n)break;const s=u-n,r=o-n;e.push(D(p(n+s%r,0))),u=l(s/r)}e.push(D(p(u,0))),i=C(r,f,F===c),r=0,++F}++r,++s}return e.join("")},A={version:"2.3.1",ucs2:{decode:f,encode:u=>String.fromCodePoint(...u)},decode:E,encode:d,toASCII:function(u){return F(u,function(u){return r.test(u)?"xn--"+d(u):u})},toUnicode:function(u){return F(u,function(u){return s.test(u)?E(u.slice(4).toLowerCase()):u})}};t.d(e,["Ay",0,A])},53995(u,e,t){"use strict";t.d(e,{A:()=>i});const n={grinning:"😀",smiley:"😃",smile:"😄",grin:"😁",laughing:"😆",satisfied:"😆",sweat_smile:"😅",joy:"😂",wink:"😉",blush:"😊",innocent:"😇",heart_eyes:"😍",kissing_heart:"😘",kissing:"😗",kissing_closed_eyes:"😚",kissing_smiling_eyes:"😙",yum:"😋",stuck_out_tongue:"😛",stuck_out_tongue_winking_eye:"😜",stuck_out_tongue_closed_eyes:"😝",neutral_face:"😐",expressionless:"😑",no_mouth:"😶",smirk:"😏",unamused:"😒",relieved:"😌",pensive:"😔",sleepy:"😪",sleeping:"😴",mask:"😷",dizzy_face:"😵",sunglasses:"😎",confused:"😕",worried:"😟",open_mouth:"😮",hushed:"😯",astonished:"😲",flushed:"😳",frowning:"😦",anguished:"😧",fearful:"😨",cold_sweat:"😰",disappointed_relieved:"😥",cry:"😢",sob:"😭",scream:"😱",confounded:"😖",persevere:"😣",disappointed:"😞",sweat:"😓",weary:"😩",tired_face:"😫",rage:"😡",pout:"😡",angry:"😠",smiling_imp:"😈",smiley_cat:"😺",smile_cat:"😸",joy_cat:"😹",heart_eyes_cat:"😻",smirk_cat:"😼",kissing_cat:"😽",scream_cat:"🙀",crying_cat_face:"😿",pouting_cat:"😾",heart:"❤️",hand:"✋",raised_hand:"✋",v:"✌️",point_up:"☝️",fist_raised:"✊",fist:"✊",monkey_face:"🐵",cat:"🐱",cow:"🐮",mouse:"🐭",coffee:"☕",hotsprings:"♨️",anchor:"⚓",airplane:"✈️",hourglass:"⌛",watch:"⌚",sunny:"☀️",star:"⭐",cloud:"☁️",umbrella:"☔",zap:"⚡",snowflake:"❄️",sparkles:"✨",black_joker:"🃏",mahjong:"🀄",phone:"☎️",telephone:"☎️",envelope:"✉️",pencil2:"✏️",black_nib:"✒️",scissors:"✂️",wheelchair:"♿",warning:"⚠️",aries:"♈",taurus:"♉",gemini:"♊",cancer:"♋",leo:"♌",virgo:"♍",libra:"♎",scorpius:"♏",sagittarius:"♐",capricorn:"♑",aquarius:"♒",pisces:"♓",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",heavy_minus_sign:"➖",heavy_division_sign:"➗",bangbang:"‼️",interrobang:"⁉️",question:"❓",grey_question:"❔",grey_exclamation:"❕",exclamation:"❗",heavy_exclamation_mark:"❗",wavy_dash:"〰️",recycle:"♻️",white_check_mark:"✅",ballot_box_with_check:"☑️",heavy_check_mark:"✔️",x:"❌",negative_squared_cross_mark:"❎",curly_loop:"➰",loop:"➿",part_alternation_mark:"〽️",eight_spoked_asterisk:"✳️",eight_pointed_black_star:"✴️",sparkle:"❇️",copyright:"©️",registered:"®️",tm:"™️",information_source:"ℹ️",m:"Ⓜ️",black_circle:"⚫",white_circle:"⚪",black_large_square:"⬛",white_large_square:"⬜",black_medium_square:"◼️",white_medium_square:"◻️",black_medium_small_square:"◾",white_medium_small_square:"◽",black_small_square:"▪️",white_small_square:"▫️"},o={angry:[">:(",">:-("],blush:[':")',':-")'],broken_heart:["</3","<\\3"],confused:[":/",":-/"],cry:[":'(",":'-(",":,(",":,-("],frowning:[":(",":-("],heart:["<3"],imp:["]:(","]:-("],innocent:["o:)","O:)","o:-)","O:-)","0:)","0:-)"],joy:[":')",":'-)",":,)",":,-)",":'D",":'-D",":,D",":,-D"],kissing:[":*",":-*"],laughing:["x-)","X-)"],neutral_face:[":|",":-|"],open_mouth:[":o",":-o",":O",":-O"],rage:[":@",":-@"],smile:[":D",":-D"],smiley:[":)",":-)"],smiling_imp:["]:)","]:-)"],sob:[":,'(",":,'-(",";(",";-("],stuck_out_tongue:[":P",":-P"],sunglasses:["8-)","B-)"],sweat:[",:(",",:-("],sweat_smile:[",:)",",:-)"],unamused:[":s",":-S",":z",":-Z",":$",":-$"],wink:[";)",";-)"]};function s(u,e){return u[e].content}function r(u,e){const t=function(u){let e=u.defs;u.enabled.length&&(e=Object.keys(e).reduce((t,n)=>(u.enabled.indexOf(n)>=0&&(t[n]=e[n]),t),{}));const t=Object.keys(u.shortcuts).reduce((t,n)=>e[n]?Array.isArray(u.shortcuts[n])?(u.shortcuts[n].forEach(u=>{t[u]=n}),t):(t[u.shortcuts[n]]=n,t):t,{}),n=Object.keys(e);let o;o=0===n.length?"^$":n.map(u=>`:${u}:`).concat(Object.keys(t)).sort().reverse().map(u=>u.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")).join("|");const s=RegExp(o),r=RegExp(o,"g");return{defs:e,shortcuts:t,scanRE:s,replaceRE:r}}(u.utils.assign({},{defs:{},shortcuts:{},enabled:[]},e||{}));u.renderer.rules.emoji=s,u.core.ruler.after("linkify","emoji",function(u,e,t,n,o){const s=u.utils.arrayReplaceAt,r=u.utils.lib.ucmicro,i=u.utils.has,c=new RegExp([r.Z.source,r.P.source,r.Cc.source].join("|"));function l(u,n,s){let r=0;const l=[];if(u.replace(o,function(n,o,D){let a;if(i(t,n)){if(a=t[n],o>0&&!c.test(D[o-1]))return;if(o+n.length<D.length&&!c.test(D[o+n.length]))return}else a=n.slice(1,-1);if(o>r){const e=new s("text","",0);e.content=u.slice(r,o),l.push(e)}const F=new s("emoji","",0);F.markup=a,F.content=e[a],l.push(F),r=o+n.length}),r<u.length){const e=new s("text","",0);e.content=u.slice(r),l.push(e)}return l}return function(u){let e;const t=u.tokens;let o=0;for(let r=0,i=t.length;r<i;r++){if("inline"!==t[r].type)continue;let i=t[r].children;for(let c=i.length-1;c>=0;c--)e=i[c],"link_open"!==e.type&&"link_close"!==e.type||"auto"===e.info&&(o-=e.nesting),"text"===e.type&&0===o&&n.test(e.content)&&(t[r].children=i=s(i,c,l(e.content,e.level,u.Token)))}}}(u,t.defs,t.shortcuts,t.scanRE,t.replaceRE))}function i(u,e){const t={defs:n,shortcuts:o,enabled:[]},s=u.utils.assign({},t,e||{});r(u,s)}},8263(u,e,t){"use strict";function n(u,e,t,n){const o=Number(u[e].meta.id+1).toString();let s="";return"string"==typeof n.docId&&(s=`-${n.docId}-`),s+o}function o(u,e){let t=Number(u[e].meta.id+1).toString();return u[e].meta.subId>0&&(t+=`:${u[e].meta.subId}`),`[${t}]`}function s(u,e,t,n,o){const s=o.rules.footnote_anchor_name(u,e,t,n,o),r=o.rules.footnote_caption(u,e,t,n,o);let i=s;return u[e].meta.subId>0&&(i+=`:${u[e].meta.subId}`),`<sup class="footnote-ref"><a href="#fn${s}" id="fnref${i}">${r}</a></sup>`}function r(u,e,t){return(t.xhtmlOut?'<hr class="footnotes-sep" />\n':'<hr class="footnotes-sep">\n')+'<section class="footnotes">\n<ol class="footnotes-list">\n'}function i(){return"</ol>\n</section>\n"}function c(u,e,t,n,o){let s=o.rules.footnote_anchor_name(u,e,t,n,o);return u[e].meta.subId>0&&(s+=`:${u[e].meta.subId}`),`<li id="fn${s}" class="footnote-item">`}function l(){return"</li>\n"}function D(u,e,t,n,o){let s=o.rules.footnote_anchor_name(u,e,t,n,o);return u[e].meta.subId>0&&(s+=`:${u[e].meta.subId}`),` <a href="#fnref${s}" class="footnote-backref">↩︎</a>`}function a(u){const e=u.helpers.parseLinkLabel,t=u.utils.isSpace;u.renderer.rules.footnote_ref=s,u.renderer.rules.footnote_block_open=r,u.renderer.rules.footnote_block_close=i,u.renderer.rules.footnote_open=c,u.renderer.rules.footnote_close=l,u.renderer.rules.footnote_anchor=D,u.renderer.rules.footnote_caption=o,u.renderer.rules.footnote_anchor_name=n,u.block.ruler.before("reference","footnote_def",function(u,e,n,o){const s=u.bMarks[e]+u.tShift[e],r=u.eMarks[e];if(s+4>r)return!1;if(91!==u.src.charCodeAt(s))return!1;if(94!==u.src.charCodeAt(s+1))return!1;let i;for(i=s+2;i<r;i++){if(32===u.src.charCodeAt(i))return!1;if(93===u.src.charCodeAt(i))break}if(i===s+2)return!1;if(i+1>=r||58!==u.src.charCodeAt(++i))return!1;if(o)return!0;i++,u.env.footnotes||(u.env.footnotes={}),u.env.footnotes.refs||(u.env.footnotes.refs={});const c=u.src.slice(s+2,i-2);u.env.footnotes.refs[`:${c}`]=-1;const l=new u.Token("footnote_reference_open","",1);l.meta={label:c},l.level=u.level++,u.tokens.push(l);const D=u.bMarks[e],a=u.tShift[e],F=u.sCount[e],f=u.parentType,h=i,p=u.sCount[e]+i-(u.bMarks[e]+u.tShift[e]);let C=p;for(;i<r;){const e=u.src.charCodeAt(i);if(!t(e))break;9===e?C+=4-C%4:C++,i++}u.tShift[e]=i-h,u.sCount[e]=C-p,u.bMarks[e]=h,u.blkIndent+=4,u.parentType="footnote",u.sCount[e]<u.blkIndent&&(u.sCount[e]+=u.blkIndent),u.md.block.tokenize(u,e,n,!0),u.parentType=f,u.blkIndent-=4,u.tShift[e]=a,u.sCount[e]=F,u.bMarks[e]=D;const E=new u.Token("footnote_reference_close","",-1);return E.level=--u.level,u.tokens.push(E),!0},{alt:["paragraph","reference"]}),u.inline.ruler.after("image","footnote_inline",function(u,t){const n=u.posMax,o=u.pos;if(o+2>=n)return!1;if(94!==u.src.charCodeAt(o))return!1;if(91!==u.src.charCodeAt(o+1))return!1;const s=o+2,r=e(u,o+1);if(r<0)return!1;if(!t){u.env.footnotes||(u.env.footnotes={}),u.env.footnotes.list||(u.env.footnotes.list=[]);const e=u.env.footnotes.list.length,t=[];u.md.inline.parse(u.src.slice(s,r),u.md,u.env,t);u.push("footnote_ref","",0).meta={id:e},u.env.footnotes.list[e]={content:u.src.slice(s,r),tokens:t}}return u.pos=r+1,u.posMax=n,!0}),u.inline.ruler.after("footnote_inline","footnote_ref",function(u,e){const t=u.posMax,n=u.pos;if(n+3>t)return!1;if(!u.env.footnotes||!u.env.footnotes.refs)return!1;if(91!==u.src.charCodeAt(n))return!1;if(94!==u.src.charCodeAt(n+1))return!1;let o;for(o=n+2;o<t;o++){if(32===u.src.charCodeAt(o))return!1;if(10===u.src.charCodeAt(o))return!1;if(93===u.src.charCodeAt(o))break}if(o===n+2)return!1;if(o>=t)return!1;o++;const s=u.src.slice(n+2,o-1);if(void 0===u.env.footnotes.refs[`:${s}`])return!1;if(!e){let e;u.env.footnotes.list||(u.env.footnotes.list=[]),u.env.footnotes.refs[`:${s}`]<0?(e=u.env.footnotes.list.length,u.env.footnotes.list[e]={label:s,count:0},u.env.footnotes.refs[`:${s}`]=e):e=u.env.footnotes.refs[`:${s}`];const t=u.env.footnotes.list[e].count;u.env.footnotes.list[e].count++;u.push("footnote_ref","",0).meta={id:e,subId:t,label:s}}return u.pos=o,u.posMax=t,!0}),u.core.ruler.after("inline","footnote_tail",function(u){let e,t,n,o=!1;const s={};if(!u.env.footnotes)return;if(u.tokens=u.tokens.filter(function(u){return"footnote_reference_open"===u.type?(o=!0,t=[],n=u.meta.label,!1):"footnote_reference_close"===u.type?(o=!1,s[":"+n]=t,!1):(o&&t.push(u),!o)}),!u.env.footnotes.list)return;const r=u.env.footnotes.list;u.tokens.push(new u.Token("footnote_block_open","",1));for(let t=0,n=r.length;t<n;t++){const n=new u.Token("footnote_open","",1);if(n.meta={id:t,label:r[t].label},u.tokens.push(n),r[t].tokens){e=[];const n=new u.Token("paragraph_open","p",1);n.block=!0,e.push(n);const o=new u.Token("inline","",0);o.children=r[t].tokens,o.content=r[t].content,e.push(o);const s=new u.Token("paragraph_close","p",-1);s.block=!0,e.push(s)}else r[t].label&&(e=s[`:${r[t].label}`]);let o;e&&(u.tokens=u.tokens.concat(e)),o="paragraph_close"===u.tokens[u.tokens.length-1].type?u.tokens.pop():null;const i=r[t].count>0?r[t].count:1;for(let e=0;e<i;e++){const n=new u.Token("footnote_anchor","",0);n.meta={id:t,subId:e,label:r[t].label},u.tokens.push(n)}o&&u.tokens.push(o),u.tokens.push(new u.Token("footnote_close","",-1))}u.tokens.push(new u.Token("footnote_block_close","",-1))})}t.d(e,{A:()=>a})},18569(u,e,t){"use strict";t.d(e,{A:()=>s});const n=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function o(u,e){const t=u.posMax,o=u.pos;if(126!==u.src.charCodeAt(o))return!1;if(e)return!1;if(o+2>=t)return!1;u.pos=o+1;let s=!1;for(;u.pos<t;){if(126===u.src.charCodeAt(u.pos)){s=!0;break}u.md.inline.skipToken(u)}if(!s||o+1===u.pos)return u.pos=o,!1;const r=u.src.slice(o+1,u.pos);if(r.match(/(^|[^\\])(\\\\)*\s/))return u.pos=o,!1;u.posMax=u.pos,u.pos=o+1;u.push("sub_open","sub",1).markup="~";u.push("text","",0).content=r.replace(n,"$1");return u.push("sub_close","sub",-1).markup="~",u.pos=u.posMax+1,u.posMax=t,!0}function s(u){u.inline.ruler.after("emphasis","sub",o)}},77979(u,e,t){"use strict";t.d(e,{A:()=>s});const n=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function o(u,e){const t=u.posMax,o=u.pos;if(94!==u.src.charCodeAt(o))return!1;if(e)return!1;if(o+2>=t)return!1;u.pos=o+1;let s=!1;for(;u.pos<t;){if(94===u.src.charCodeAt(u.pos)){s=!0;break}u.md.inline.skipToken(u)}if(!s||o+1===u.pos)return u.pos=o,!1;const r=u.src.slice(o+1,u.pos);if(r.match(/(^|[^\\])(\\\\)*\s/))return u.pos=o,!1;u.posMax=u.pos,u.pos=o+1;u.push("sup_open","sup",1).markup="^";u.push("text","",0).content=r.replace(n,"$1");return u.push("sup_close","sup",-1).markup="^",u.pos=u.posMax+1,u.posMax=t,!0}function s(u){u.inline.ruler.after("emphasis","sup",o)}},45342(u,e,t){"use strict";t.r(e),t.d(e,{D4:()=>s,lF:()=>c,GP:()=>l,qg:()=>g});const n={};function o(u,e){"string"!=typeof e&&(e=o.defaultChars);const t=function(u){let e=n[u];if(e)return e;e=n[u]=[];for(let u=0;u<128;u++){const t=String.fromCharCode(u);e.push(t)}for(let t=0;t<u.length;t++){const n=u.charCodeAt(t);e[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2)}return e}(e);return u.replace(/(%[a-f0-9]{2})+/gi,function(u){let e="";for(let n=0,o=u.length;n<o;n+=3){const s=parseInt(u.slice(n+1,n+3),16);if(s<128)e+=t[s];else{if(192==(224&s)&&n+3<o){const t=parseInt(u.slice(n+4,n+6),16);if(128==(192&t)){const u=s<<6&1984|63&t;e+=u<128?"��":String.fromCharCode(u),n+=3;continue}}if(224==(240&s)&&n+6<o){const t=parseInt(u.slice(n+4,n+6),16),o=parseInt(u.slice(n+7,n+9),16);if(128==(192&t)&&128==(192&o)){const u=s<<12&61440|t<<6&4032|63&o;e+=u<2048||u>=55296&&u<=57343?"���":String.fromCharCode(u),n+=6;continue}}if(240==(248&s)&&n+9<o){const t=parseInt(u.slice(n+4,n+6),16),o=parseInt(u.slice(n+7,n+9),16),r=parseInt(u.slice(n+10,n+12),16);if(128==(192&t)&&128==(192&o)&&128==(192&r)){let u=s<<18&1835008|t<<12&258048|o<<6&4032|63&r;u<65536||u>1114111?e+="����":(u-=65536,e+=String.fromCharCode(55296+(u>>10),56320+(1023&u))),n+=9;continue}}e+="�"}}return e})}o.defaultChars=";/?:@&=+$,#",o.componentChars="";const s=o,r={};function i(u,e,t){"string"!=typeof e&&(t=e,e=i.defaultChars),void 0===t&&(t=!0);const n=function(u){let e=r[u];if(e)return e;e=r[u]=[];for(let u=0;u<128;u++){const t=String.fromCharCode(u);/^[0-9a-z]$/i.test(t)?e.push(t):e.push("%"+("0"+u.toString(16).toUpperCase()).slice(-2))}for(let t=0;t<u.length;t++)e[u.charCodeAt(t)]=u[t];return e}(e);let o="";for(let e=0,s=u.length;e<s;e++){const r=u.charCodeAt(e);if(t&&37===r&&e+2<s&&/^[0-9a-f]{2}$/i.test(u.slice(e+1,e+3)))o+=u.slice(e,e+3),e+=2;else if(r<128)o+=n[r];else if(r>=55296&&r<=57343){if(r>=55296&&r<=56319&&e+1<s){const t=u.charCodeAt(e+1);if(t>=56320&&t<=57343){o+=encodeURIComponent(u[e]+u[e+1]),e++;continue}}o+="%EF%BF%BD"}else o+=encodeURIComponent(u[e])}return o}i.defaultChars=";/?:@&=+$,-_.!~*'()#",i.componentChars="-_.!~*'()";const c=i;function l(u){let e="";return e+=u.protocol||"",e+=u.slashes?"//":"",e+=u.auth?u.auth+"@":"",u.hostname&&-1!==u.hostname.indexOf(":")?e+="["+u.hostname+"]":e+=u.hostname||"",e+=u.port?":"+u.port:"",e+=u.pathname||"",e+=u.search||"",e+=u.hash||"",e}function D(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const a=/^([a-z0-9.+-]+:)/i,F=/:[0-9]*$/,f=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,h=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),p=["'"].concat(h),C=["%","/","?",";","#"].concat(p),E=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,A=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,_={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};D.prototype.parse=function(u,e){let t,n,o,s=u;if(s=s.trim(),!e&&1===u.split("#").length){const u=f.exec(s);if(u)return this.pathname=u[1],u[2]&&(this.search=u[2]),this}let r=a.exec(s);if(r&&(r=r[0],t=r.toLowerCase(),this.protocol=r,s=s.substr(r.length)),(e||r||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o="//"===s.substr(0,2),!o||r&&_[r]||(s=s.substr(2),this.slashes=!0)),!_[r]&&(o||r&&!m[r])){let u,e,t=-1;for(let u=0;u<E.length;u++)n=s.indexOf(E[u]),-1!==n&&(-1===t||n<t)&&(t=n);e=-1===t?s.lastIndexOf("@"):s.lastIndexOf("@",t),-1!==e&&(u=s.slice(0,e),s=s.slice(e+1),this.auth=u),t=-1;for(let u=0;u<C.length;u++)n=s.indexOf(C[u]),-1!==n&&(-1===t||n<t)&&(t=n);-1===t&&(t=s.length),":"===s[t-1]&&t--;const o=s.slice(0,t);s=s.slice(t),this.parseHost(o),this.hostname=this.hostname||"";const r="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!r){const u=this.hostname.split(/\./);for(let e=0,t=u.length;e<t;e++){const t=u[e];if(t&&!t.match(d)){let n="";for(let u=0,e=t.length;u<e;u++)t.charCodeAt(u)>127?n+="x":n+=t[u];if(!n.match(d)){const n=u.slice(0,e),o=u.slice(e+1),r=t.match(A);r&&(n.push(r[1]),o.unshift(r[2])),o.length&&(s=o.join(".")+s),this.hostname=n.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),r&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const i=s.indexOf("#");-1!==i&&(this.hash=s.substr(i),s=s.slice(0,i));const c=s.indexOf("?");return-1!==c&&(this.search=s.substr(c),s=s.slice(0,c)),s&&(this.pathname=s),m[t]&&this.hostname&&!this.pathname&&(this.pathname=""),this},D.prototype.parseHost=function(u){let e=F.exec(u);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),u=u.substr(0,u.length-e.length)),u&&(this.hostname=u)};const g=function(u,e){if(u&&u instanceof D)return u;const t=new D;return t.parse(u,e),t}},36800(u,e,t){"use strict";t.d(e,["A",0,/[\0-\x1F\x7F-\x9F]/])},97246(u,e,t){"use strict";t.d(e,["A",0,/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/])},2889(u,e,t){"use strict";t.d(e,["A",0,/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/])},37120(u,e,t){"use strict";t.d(e,["A",0,/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/])},40304(u,e,t){"use strict";t.r(e),t.d(e,{F:()=>n.A,Cc:()=>o.A,Cf:()=>s,P:()=>r.A,S:()=>i.A,Z:()=>c.A});var n=t(60891),o=t(36800);const s=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/;var r=t(97246),i=t(2889),c=t(37120)},60891(u,e,t){"use strict";t.d(e,["A",0,/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/])}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 2286.
|
|
2
|
-
"use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[2286],{75007(e,t,s){s.d(t,{h:()=>r});s(96540);var n=s(85997),c=s(74848);function r(e){return(0,c.jsxs)("h2",{className:"message",children:[(0,c.jsx)(n.In,{icon:"sentiment_dissatisfied"}),(0,c.jsx)("span",{children:e.context})]})}},22081(e,t,s){s.d(t,{A:()=>i});var n=s(96540),c=s(86004),r=s(74848);const i=({percentage:e})=>{const t=(0,n.useRef)(null),[s,i]=(0,n.useState)(null);return(0,n.useEffect)(()=>{const s=t.current.getContext("2d"),n=new c.Ay(s,{type:"doughnut",data:{labels:["use","left"],datasets:[{data:[e,100-e],backgroundColor:["#007bff","#f0f0f0"],borderWidth:0}]},options:{plugins:{legend:{display:!1},tooltip:{enabled:!1}},elements:{arc:{borderWidth:0}}}});return i(n),()=>{n.destroy()}},[]),(0,n.useEffect)(()=>{s&&(s.data.datasets[0].data=[e,100-e],s.update())},[e]),(0,r.jsx)("div",{style:{width:"8rem",overflow:"hidden"},children:(0,r.jsx)("canvas",{ref:t})})}},77481(e,t,s){s.d(t,{S:()=>i,X:()=>r});var n=s(96540),c=s(74848);function r(e){const[t,s]=n.useState([]);return(0,n.useEffect)(()=>{e.children?s(Array.isArray(e.children)?e.children:[e.children]):s(e.rows)},[e.rows,e.children]),(0,c.jsxs)("table",{children:[(0,c.jsx)("thead",{children:(0,c.jsx)("tr",{children:e.headers?.map((e,t)=>(0,c.jsx)("th",{children:e},t))})}),(0,c.jsx)("tbody",{children:t.map((t,s)=>(0,c.jsx)("tr",{onContextMenu:()=>{e.handleContextMenu&&e.handleContextMenu(t)},children:t.map((s,n)=>(0,c.jsx)("td",{style:{width:e.width??"auto"},className:n===t.length-1?"small":"",children:s},n))},s))})]})}function i(e){return(0,c.jsx)("div",{style:{display:e.isFlex?"flex":"block"},children:e.columns.map((e,t)=>(0,c.jsx)("div",{children:e},t))})}},88062(e,t,s){s.d(t,{A:()=>i});s(96540),s(47022);var n=s(74848);function c(e){return(0,n.jsx)("div",{className:"black-tip",onClick:()=>{e.click&&e.click(e)},onContextMenu:t=>{t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),e.onContextMenu&&e.onContextMenu(t,e)},children:e.name})}const r=e=>(0,n.jsxs)("li",{children:[e.click?(0,n.jsx)(c,{...e.node,name:e.render?e.render(e.node):e.node.name,click:e.click,onContextMenu:e.onContextMenu}):(0,n.jsx)("div",{children:e.render?e.render(e.node):e.node.name}),e.node.children&&e.node.children.length>0&&(0,n.jsx)("ul",{children:e.node.children.map((t,s)=>(0,n.jsx)(r,{node:t,click:e.click,onContextMenu:e.onContextMenu,render:e.render},s))})]}),i=e=>(0,n.jsx)("div",{className:"card-tree-view",children:(0,n.jsx)("ul",{children:e.list&&e.list.map((t,s)=>(0,n.jsx)(r,{node:t,click:e.click,onContextMenu:e.onContextMenu,render:e.render},s))})})},57180(e,t,s){s.r(t),s.d(t,{default:()=>J});var n=s(96540),c=s(75725),r=s(70447),i=s(22081),o=s(92275),a=s(14944),l=s(14284),d=s(57952),h=s(85997),f=s(77481),u=s(53459),x=s(59270),p=s(34843),m=s(26417),j=s(74777),g=s(62042),_=s(63033),b=s(74848);function w(e){const{t}=(0,x.Bd)(),[s,i]=(0,p.fp)(m.AG.disk),[o,a]=(0,n.useState)({}),[j,g]=(0,n.useState)([]),_=[t("名字"),t("当前值"),t("历史最低"),t("临界值")];return(0,n.useEffect)(()=>{(async()=>{const s=await l.Yu.post("sys/disk/info",{name:e.name});if(s.code===u.m.Success){const e=[];for(const n of s.data.ata_smart_attributes??[]){let s;n[1]>=n[2]?s="var(--icon-green)":n[1]<=n[3]&&(s="var(--icon-red)"),n[0]=(0,b.jsx)("span",{style:{color:s},children:t(n[0])}),e.push(n)}g(s.data.ata_smart_attributes),a(s.data)}})()},[]),(0,b.jsxs)("div",{children:[(0,b.jsx)(d.A,{children:(0,b.jsx)(h.rA,{icon:"close",title:t("关闭"),onClick:()=>{i({})}})}),(0,b.jsx)(c.jW,{isFull:!0,more:!0,children:(0,b.jsx)(c.NN,{children:(0,b.jsxs)(c.fI,{children:[(0,b.jsxs)(c.VP,{widthPer:30,children:[(0,b.jsx)(c.xh,{children:(0,b.jsxs)(r.Zp,{title:t("基本信息"),children:[(0,b.jsx)(c.Yh,{left:t("名字"),right:e.name}),(0,b.jsx)(c.Yh,{left:t("厂商名称"),right:e.typeName}),(0,b.jsx)(c.Yh,{left:t("类型"),right:e.type}),(0,b.jsx)(c.Yh,{left:t("容量"),right:e.total})]})}),(0,b.jsx)(c.xh,{children:(0,b.jsxs)(r.Zp,{title:t("物理信息"),children:[(0,b.jsx)(c.Yh,{left:t("是否健康"),right:!0===o.smart_status?"是":"否"}),(0,b.jsx)(c.Yh,{left:t("设备型号"),right:o.model_name}),(0,b.jsx)(c.Yh,{left:t("序列号"),right:o.serial_number}),(0,b.jsx)(c.Yh,{left:t("固件版本"),right:o.firmware_version}),(0,b.jsx)(c.Yh,{left:t("转速(每分钟)"),right:o.rotation_rate}),(0,b.jsx)(c.Yh,{left:t("通电时长(小时)"),right:o.power_on_time_hours}),(0,b.jsx)(c.Yh,{left:t("通电次数"),right:o.power_cycle_count}),(0,b.jsx)(c.Yh,{left:t("温度(°C)"),right:o.temperature}),(0,b.jsx)(c.Yh,{left:t("通信协议"),right:o.device_protocol})]})})]}),(0,b.jsx)(c.VP,{widthPer:50,children:(0,b.jsxs)(c.xh,{children:[j?.length?(0,b.jsx)(r.uF,{title:t("ATA/SATA详细信息"),children:(0,b.jsx)(f.X,{headers:_,rows:j,width:"10rem"})}):(0,b.jsx)(b.Fragment,{}),o.nvme_smart?(0,b.jsxs)(r.Zp,{title:t("NVME详细信息"),children:[(0,b.jsx)(c.Yh,{left:t("NVMe 可用备用块(%)"),right:o.nvme_smart.available_spare}),(0,b.jsx)(c.Yh,{left:t("NVMe 已使用寿命(%)"),right:o.nvme_smart.percentage_used}),(0,b.jsx)(c.Yh,{left:t("NVMe 读取量"),right:o.nvme_smart.data_units_read}),(0,b.jsx)(c.Yh,{left:t("NVMe 写入量"),right:o.nvme_smart.data_units_written}),(0,b.jsx)(c.Yh,{left:t("NVMe 通电次数"),right:o.nvme_smart.power_cycles}),(0,b.jsx)(c.Yh,{left:t("NVMe 通电时长(小时)"),right:o.nvme_smart.power_on_hours}),(0,b.jsx)(c.Yh,{left:t("NVMe 非正常关机"),right:o.nvme_smart.unsafe_shutdowns}),(0,b.jsx)(c.Yh,{left:t("NVMe 媒体错误"),right:o.nvme_smart.media_errors}),(0,b.jsx)(c.Yh,{left:t("NVMe 错误日志数"),right:o.nvme_smart.num_err_log_entries})]}):(0,b.jsx)(b.Fragment,{})]})})]})})})]})}let y=function(e){return e[e.mount=0]="mount",e}({});var k=s(88062),v=s(78247),S=s(23430);const Y=e=>(0,b.jsxs)("div",{style:{border:"2px solid black",padding:"10px",width:"300px",height:"300px",position:"relative"},children:[e.name,e.lvms.map((e,t)=>(0,b.jsx)("div",{style:{margin:"5px",height:"40px",display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid "},children:e.name},t))]});function A(){return(0,b.jsx)("div",{style:{position:"relative",height:"300px",margin:"10px",width:"30px",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,b.jsx)("div",{style:{width:0,height:0,borderTop:"10px solid transparent",borderBottom:"10px solid transparent",borderLeft:"10px solid black"}})})}function C(){const{t:e}=(0,x.Bd)(),[t,s]=(0,p.fp)(m.AG.disk),[i,o]=(0,n.useState)({}),[a,j]=(0,n.useState)([]),[_,w]=(0,n.useState)([]),[C,F]=(0,p.fp)(m.AG.showPrompt),{check_user_auth:P}=(0,v.MH)(),[M,V]=(0,n.useState)([]),{click_file:$}=(0,v.kZ)(),[E,I]=(0,p.fp)(m.AG.prompt_card),K=[e("挂载点"),"uuid",e("类型"),e("文件系统类型"),e("文件系统容量"),e("卷容量"),e("设备路径"),e("分区表类型")],N=async()=>{const e=await l.Yu.get("disk/blk");return e.code===u.m.Success&&j(e.data),e.code};(0,n.useEffect)(()=>{(async()=>{N()})()},[]);const X=[(0,b.jsx)(h.rA,{icon:"info",title:e("提示"),onClick:async()=>{I({open:!0,title:"信息",context_div:(0,b.jsx)("div",{children:(0,b.jsxs)("ul",{children:[(0,b.jsxs)("li",{children:["通用格式:","<文件系统> <挂载点> <类型> <挂载选项> <dump> <fsck> "]}),(0,b.jsxs)("li",{children:["文件系统,有多种格式",(0,b.jsxs)("ul",{children:[(0,b.jsx)("li",{children:"1(usb口默认名称)./dev/sda1"}),(0,b.jsx)("li",{children:"2(唯一Id).UUID=123e4567-e89b-12d3-a456-426614174000"}),(0,b.jsx)("li",{children:"3.LABEL=DATA"})]})]}),(0,b.jsx)("li",{children:"挂载点,就是文件路径,例如 /mnt/data ,这个目录要提前创建,且为空"}),(0,b.jsx)("li",{children:"类型,就是文件系统类型,对于系统不支持的类型,例如ntfs需要额外前提安装ntfs-3g"}),(0,b.jsxs)("li",{children:['挂载选项的值只能是以下这些,可以用 "," 同时使用多个选项',(0,b.jsxs)("ul",{children:[(0,b.jsx)("li",{children:"defaults:使用默认挂载选项"}),(0,b.jsx)("li",{children:"noatime:不更新访问时间,提高性能"}),(0,b.jsx)("li",{children:"auto:系统启动时自动挂载"}),(0,b.jsx)("li",{children:"rw:以读写方式挂载"}),(0,b.jsx)("li",{children:"nofail:防止启动阻塞,挂载失败系统继续执行"}),(0,b.jsx)("li",{children:"...等"})]})]}),(0,b.jsx)("li",{children:"dump 0是需要备份 1是不需要备份"}),(0,b.jsx)("li",{children:"Fsck 整数值0是不检查,文件系统检查顺序越小越先检查"}),(0,b.jsx)("li",{children:"提示:只有含有文件系统的逻辑卷,或者分区才可以进行挂载。"})]})})})}}),(0,b.jsx)(h.rA,{icon:"update",title:e("更新挂载"),onClick:async()=>{(await l.Yu.post("cmd/exe",{type:y.mount})).code===u.m.Success&&(0,g.SK)("挂载文件已生效")}},1)],H=async()=>(await l.Yu.get("get_fstab")).data,Z=async e=>{await l.Yu.post("save_fstab",{content:e})};return(0,b.jsxs)("div",{children:[(0,b.jsx)(d.A,{children:(0,b.jsx)(h.rA,{icon:"close",title:e("关闭"),onClick:()=>{s({})}})}),(0,b.jsx)(c.jW,{isFull:!0,more:!0,children:(0,b.jsx)(c.NN,{children:(0,b.jsxs)(c.fI,{children:[(0,b.jsx)(c.VP,{widthPer:40,children:(0,b.jsxs)(r.Zp,{title:e("物理块(硬盘)设备、逻辑卷、物理卷"),titleCom:(0,b.jsxs)("div",{children:[P(S.oV.sys_disk_mount)&&(0,b.jsx)(h.rA,{icon:"file_open",title:e("打开挂载文件"),onClick:async()=>{$({name:"fstab(谨慎修改,内容错误会导致系统无法启动)",model:"text",get_file_fun:H,save_file_fun:Z,menu_list:X})}}),(0,b.jsx)(h.rA,{icon:"update",title:e("刷新"),onClick:async()=>{await N()===u.m.Success&&(0,g.SK)("刷新成功")}})]}),children:[(0,b.jsx)(f.X,{headers:K,rows:_,width:"10rem"}),(0,b.jsx)(k.A,{list:a,render:e=>{let t=e.name;return e.label&&(t+=`(${e.label})`),e.mountpoint?(0,b.jsxs)("span",{children:[t,(0,b.jsx)("span",{style:{color:"green"},children:"(已挂载)"})]}):t},onContextMenu:(e,t)=>{e.preventDefault()},click:t=>{let s="";if(t.mountpoint)for(let e=0;e<t.mountpoints.length;e++)s+=t.mountpoints[e]+";";w([[(0,b.jsx)(r.xP,{children:s}),(0,b.jsx)(r.xP,{children:t.uuid}),e(t.type),e(t.fstype),t.fssize,t.size,(0,b.jsx)(r.xP,{children:t.path}),t.pttype]])}})]})}),(0,b.jsx)(c.VP,{widthPer:60,children:M.map((t,s)=>{const n=[];for(const e of t.pv_list)n.push({name:`${e.name}---(${e.size})---(${e.free_size})`});const i=[];for(const e of t.lv_list)i.push({name:`${e.name}---(${e.size})`});return(0,b.jsx)(r.Zp,{children:(0,b.jsxs)(c.n5,{children:[(0,b.jsx)(Y,{name:e("物理卷"),lvms:n}),(0,b.jsx)(A,{}),(0,b.jsx)(Y,{name:`${e("逻辑卷")}---(${t.name})---size(${t.size})`,lvms:[]}),(0,b.jsx)(A,{}),(0,b.jsx)(Y,{name:e("逻辑卷"),lvms:i})]})},s)})})]})})})]})}var F=s(88815);let P=!0;function M(e){const{t}=(0,x.Bd)(),s=[t("名字"),t("厂商名称"),t("类型"),t("容量")],_=[t("名字"),t("物理硬盘"),t("文件系统类型"),t("挂载位置"),t("总容量"),t("剩余容量")],[y,k]=(0,p.fp)(m.AG.user_base_info),[v,Y]=(0,n.useState)(0),[A,M]=(0,n.useState)(0),[V,$]=(0,n.useState)(0),[E,I]=(0,n.useState)(0),[K,N]=(0,n.useState)(0),[X,H]=(0,n.useState)({}),[Z,T]=(0,n.useState)(!1),[G,O]=(0,n.useState)(!1),[W,B]=(0,n.useState)(!1),[U,L]=(0,n.useState)(P),[R,q]=(0,n.useState)(null),[z,D]=(0,n.useState)([]),[Q,J]=(0,n.useState)([]),[ee,te]=(0,p.fp)(m.AG.user_base_info),[se,ne]=(0,p.fp)(m.AG.disk),ce=async()=>{if(!P)return;const e=new o.hf(o.HK.sys_get);await a.ws.send(e),a.ws.addMsg(o.HK.sys_getting,e=>{I(e.context?.cpu_currentLoad);const t=e.context?.memLeft,s=e.context?.memTotal;M(t),$(s),Y((s-t)/s*100),q(e.context?.node_memory_usage),N(e.context?.node_cpu_usage)})};return(0,n.useEffect)(()=>((async()=>{await ce()})(),()=>{a.ws.sendData(o.HK.sys_cancel,{})}),[]),(0,b.jsxs)("div",{children:[(0,b.jsxs)(d.A,{children:[y.sys===S.XM.linux&&(0,b.jsx)(h.rA,{icon:"sd_card",title:"硬盘挂载",onClick:()=>{ne({type:"mount"})}}),(0,b.jsx)(h.Z$,{defaultStatus:!1,text:t("基本信息"),clickFun:e=>{T(e),e&&(async()=>{const e=await l.Yu.get("base");if(e.code===u.m.Success){const t=e.data;H(t)}})()}}),(0,b.jsx)(h.Z$,{defaultStatus:!1,text:t("物理硬盘"),clickFun:e=>{O(e),e&&(async()=>{const e=await l.Yu.get("disk");if(e.code===u.m.Success){const s=e.data,n=[];let c=!0;ee.sysSoftWare&&ee.sysSoftWare[j.jk.smartmontools]&&ee.sysSoftWare[j.jk.smartmontools].installed||(c=!1);for(const e of s??[])n.push([(0,b.jsx)(r.xP,{context:e.name}),e.typeName,e.type,e.total,(0,b.jsx)(h.rA,{icon:"health_and_safety",title:t("查看健康信息"),onClick:()=>{c?ne({type:"check",data:e}):(0,g.zN)("没有安装smartmontools")}})]);D(n)}})()}}),(0,b.jsx)(h.Z$,{defaultStatus:!1,text:t("文件硬盘"),clickFun:e=>{B(e),e&&(async()=>{const e=await l.Yu.get("filedisk");if(e.code===u.m.Success){const t=e.data,s=[];for(const e of t??[])s.push([(0,b.jsx)(r.xP,{context:e.name}),(0,b.jsx)(r.xP,{context:e.device_name}),e.fsType,(0,b.jsx)(r.xP,{context:e.mount}),e.total,e.available]);J(s)}})()}}),(0,b.jsx)(h.Z$,{defaultStatus:U,text:t("实时信息"),clickFun:e=>{L(e),P=e,ce()}})]}),(0,b.jsxs)(c.xh,{children:[U&&(0,b.jsxs)(c.fI,{children:[(0,b.jsx)(c.VP,{widthPer:33,children:(0,b.jsx)(r.Zp,{title:"Sys "+t("内存"),children:(0,b.jsxs)(c.fI,{children:[(0,b.jsx)(c.VP,{children:(0,b.jsx)(i.A,{percentage:v})}),(0,b.jsx)(c.VP,{children:(0,b.jsxs)(c.fI,{children:[(0,b.jsx)(c.VP,{widthPer:100,children:(0,b.jsx)("div",{children:(0,b.jsx)(c.Yh,{left:t("总容量"),center:`${V}G`})})}),(0,b.jsx)(c.VP,{widthPer:100,children:(0,b.jsx)(c.Yh,{left:t("剩余"),center:`${A}G`})})]})})]})})}),(0,b.jsx)(c.VP,{widthPer:33,children:(0,b.jsx)(r.Zp,{title:"Sys cpu",children:(0,b.jsxs)(c.fI,{children:[(0,b.jsx)(c.VP,{children:(0,b.jsx)(i.A,{percentage:E})}),(0,b.jsx)(c.VP,{children:(0,b.jsx)(c.fI,{children:(0,b.jsx)(c.Yh,{left:t("使用率"),center:E})})})]})})}),(0,b.jsx)(c.VP,{widthPer:33,children:(0,b.jsx)(r.Zp,{title:"FileCat",children:(0,b.jsxs)(c.fI,{children:[(0,b.jsxs)(c.VP,{children:[(0,b.jsx)(c.qV,{content:t("内存")}),(0,b.jsx)(c.qV,{content:"total: "+(0,F.v7)(R?.rss)}),(0,b.jsx)(c.qV,{content:"object: "+(0,F.v7)(R?.heapTotal)}),(0,b.jsx)(c.qV,{content:"obj-use: "+(0,F.v7)(R?.heapUsed)}),(0,b.jsx)(c.qV,{content:"external: "+(0,F.v7)(R?.external)}),(0,b.jsx)(c.qV,{content:"buffer: "+(0,F.v7)(R?.arrayBuffers)})]}),(0,b.jsx)(c.VP,{children:(0,b.jsx)(c.qV,{content:"cpu growth rate: "+K})})]})})})]}),(0,b.jsxs)(c.fI,{children:[Z&&(0,b.jsx)(c.VP,{children:(0,b.jsxs)(r.Zp,{title:t("基本信息"),children:[(0,b.jsx)(c.Yh,{left:t("总内存"),right:X.mem_total}),(0,b.jsx)(c.Yh,{left:`cpu ${t("制造商")}`,right:X.cpu_manufacturer}),(0,b.jsx)(c.Yh,{left:`cpu ${t("品牌")}`,right:X.cpu_brand}),(0,b.jsx)(c.Yh,{left:`cpu ${t("逻辑核心")}`,right:X.cpu_core_num}),(0,b.jsx)(c.Yh,{left:`cpu ${t("物理核心")}`,right:X.cpu_phy_core_num}),(0,b.jsx)(c.Yh,{left:`cpu ${t("最大")}hz`,right:X.cpu_speed_hz}),(0,b.jsx)(c.Yh,{left:`${t("当前系统")}:pid;ppid`,right:X.pid_ppid}),(0,b.jsx)(c.Yh,{left:t("运行用户"),right:X.user})]})}),G&&(0,b.jsx)(c.VP,{children:(0,b.jsx)(r.uF,{title:t("物理硬盘"),children:(0,b.jsx)(f.X,{headers:s,rows:z,width:"10rem"})})}),W&&(0,b.jsx)(c.VP,{children:(0,b.jsx)(r.uF,{title:t("文件硬盘"),children:(0,b.jsx)(f.X,{headers:_,rows:Q,width:"10rem"})})})]})]}),se&&"check"===se.type&&(0,b.jsx)(w,{...se.data}),se&&"mount"===se.type&&(0,b.jsx)(C,{})]})}var V=s(75007),$=s(97856),E=s(64405);const I=n.lazy(()=>Promise.all([s.e(7986),s.e(8023),s.e(5614)]).then(s.bind(s,85614)));function K(e){const[t,s]=(0,n.useState)(null),[c,r]=(0,p.fp)(m.AG.dockerShellShow),[i,l]=(0,p.fp)(m.AG.user_base_info),d=i.user_data.theme?.includes("dark")?"#FFFFFF":"#000000",h=()=>{(async()=>{t&&(t.writeln("[38;2;29;153;243mclose![0m "),t.dispose(),s(null))})()};(0,n.useEffect)(()=>{c.show?(async()=>{const e=new $.Terminal({fontFamily:"Monaco, Menlo, Consolas, 'Courier New', monospace",theme:{background:"#FFFFFF",foreground:d,cursor:d,selectionBackground:"#a6d2ff"},cursorBlink:!0,cursorStyle:"bar",scrollback:1e3,scrollSensitivity:1,tabStopWidth:4,convertEol:!0});let t;a.ws.subscribeUnconnect(h);const n=t=>{e.write(t)};t=s=>{e.clear(),e.write(s),t=n},a.ws.addMsg("logs"===c.type?o.HK.docker_shell_logs_getting:o.HK.docker_shell_exec_getting,e=>{"error"===e.context&&h(),t(e.context)}),"exec"===c.type&&e.onData(async e=>{const t=new o.hf(o.HK.docker_shell_exec);t.context=e,await a.ws.send(t)}),s(e)})():h()},[c]),(0,n.useEffect)(()=>()=>{h()},[]);return(0,b.jsx)(I,{show:c.show,terminal:t,init:(e,s)=>{t.writeln("[38;2;29;153;243mconnect...[0m ");const n=new E.n;let r;n.rows=e,n.cols=s,n.dockerId=c.dockerId,r="logs"===c.type?new o.hf(o.HK.docker_shell_logs):new o.hf(o.HK.docker_shell_exec_open),r.context=n,a.ws.send(r)}})}var N=s(27690);let X="",H=[],Z=!1;function T(e){const{t}=(0,x.Bd)(),[s,i]=(0,n.useState)({}),[j,w]=(0,n.useState)([]),[y,k]=(0,n.useState)([]),{check_user_auth:Y}=(0,v.MH)(),[A,C]=(0,p.fp)(m.AG.dockerShellShow),[F,P]=(0,p.fp)(m.AG.showPrompt),[M,$]=(0,p.fp)(m.AG.confirm),[E,I]=(0,n.useState)(X),[T,G]=(0,n.useState)(["id",t("名字"),t("镜像"),t("命令"),t("状态"),t("内存"),"cpu%",t("选择")]),[O,W]=(0,n.useState)([]),[B,U]=(0,n.useState)(void 0),[L,R]=(0,n.useState)(!1),q=["id",t("name"),t("create时间"),t("大小"),(0,b.jsxs)("span",{children:["选中",(0,b.jsx)(h.rA,{icon:"check_box",title:"全选",onClick:()=>{Z=!Z;const e={};for(let t=0;t<y.length&&Z;t++)e[y[t][0].props.context]=1;i(e)}})]})],z=async()=>{w([]),W([]);const e=new o.hf(o.HK.docker_get);await a.ws.send(e),a.ws.addMsg(o.HK.docker_getting,e=>{const t=[];if(X){for(const s of e.context)for(const e of s)if(`${e}`.includes(X)){t.push(s);break}}else t.push(...e.context);w(t.map(e=>{const t=e.map(e=>(0,b.jsx)(r.xP,{context:e}));return t.push((0,b.jsx)(h.rA,{icon:"place",title:"选中",onClick:()=>{W(t)}})),t}))})};(0,n.useEffect)(()=>(I(X),z(),()=>{(async()=>{C({show:!1,type:"",dockerId:""})})()}),[]),(0,n.useEffect)(()=>{X=E},[E]);const D=()=>{const e=new o.hf("logs"===A.type?o.HK.docker_shell_logs_cancel:o.HK.docker_shell_exec_cancel);e.context="",a.ws.send(e)},Q=e=>{const t=new o.hf(o.HK.docker_switch);t.context={type:e,dockerId:O[0].props.context},W([]),a.ws.send(t)},J=async()=>{const e=await l.Yu.get("docker/images");if(e.code===u.m.Success){const t=e.data??[],s=[];for(let e=0;e<t.length;e++){const n=t[e],c=[(0,b.jsx)(r.xP,{context:n[0]}),(0,b.jsx)(r.xP,{context:n[1]}),n[2],n[3],""];s.push(c)}H=s,k(s)}};return(0,b.jsxs)("div",{children:[(0,b.jsxs)(d.A,{left_children:(0,b.jsx)(h.Z$,{defaultStatus:!1,text:t("docker镜像"),clickFun:e=>{R(e),e?(J(),W([])):(z(),k([]),i({}))}}),children:[Object.keys(s).length>0&&(0,b.jsx)(h.rA,{icon:"delete",title:t("删除镜像"),onClick:async()=>{$({open:!0,title:t("确定删除选中的镜像吗"),handle:async()=>{const e=Object.keys(s),t=await l.Yu.post("docker/check/delete",{ids:e});if(t.code===u.m.Success)if(0===t.data.length){(await l.Yu.post("docker/delete",{ids:e})).code===u.m.Success&&((0,g.SK)("删除完成"),J(),$({open:!1,handle:null}))}else(0,g.N9)(`有镜像正在运行${JSON.stringify(t.data)}`)}})}}),O.length>0&&(0,b.jsx)("div",{children:O[1].props.context}),O.length>0&&(0,b.jsxs)("div",{children:[Y(S.oV.docker_container_update)&&(0,b.jsx)(h.rA,{icon:"delete",title:t("删除容器"),onClick:()=>{P({show:!0,overlay:!0,type:N.PromptEnum.DockerDel,data:{dockerId:O[0].props.context,name:O[1].props.context}})}}),(0,b.jsx)(h.rA,{icon:"print",title:t("打印日志"),onClick:()=>{A.show?(C({show:!1,type:"",dockerId:""}),D()):C({show:!0,dockerId:O[0].props.context,type:"logs"})}}),Y(S.oV.docker_container_update)&&(0,b.jsx)(h.rA,{icon:"personal_video",title:t("执行命令"),onClick:()=>{A.show?(C({show:!1,type:"",dockerId:""}),D()):C({show:!0,dockerId:O[0].props.context,type:"exec"})}}),Y(S.oV.docker_container_update)&&O[4].props.context.includes("Up")&&(0,b.jsx)(h.rA,{icon:"stop",title:t("停止"),onClick:()=>Q("stop")}),Y(S.oV.docker_container_update)&&!O[4].props.context.includes("Up")&&(0,b.jsx)(h.rA,{icon:"play_arrow",title:t("开启"),onClick:()=>{Q("start")}})]}),(0!==j.length||E)&&!L&&(0,b.jsx)(h.rA,{icon:"refresh",title:t("列表更新"),onClick:async()=>{const e=new o.hf(o.HK.docker_get);await a.ws.send(e)}})]}),(0,b.jsxs)(c.xh,{children:[L&&(0,b.jsx)(c.fI,{children:(0,b.jsx)(c.VP,{widthPer:80,children:(0,b.jsx)(r.uF,{title:`${t("镜像")} (${y.length})`,titleCom:(0,b.jsx)(_.Sm,{placeholder:t("过滤镜像"),value:B,handleInputChange:e=>{U(e)},handlerEnter:()=>{const e=[];if(B){for(const t of y)(t[0].props.context.includes(B)||t[1].props.context.includes(B))&&e.push(t);k(e)}else k(H)}}),children:(0,b.jsx)(f.X,{headers:q,rows:y.map((e,n)=>(e[4]=(0,b.jsx)(_.GL,{context:t(""),selected:s[e[0].props.context],onchange:()=>{(e=>{const t={};Object.assign(t,s),t[e]?delete t[e]:t[e]=1,i(t)})(e[0].props.context)}}),e)),width:"10rem"})})})}),0===j.length&&!E&&!L&&(0,b.jsx)(V.h,{context:t("检测不到docker,主机可能没有安装docker or 容器为空")}),(0!==j.length||E)&&!L&&(0,b.jsx)(c.fI,{children:(0,b.jsx)(c.VP,{widthPer:80,children:(0,b.jsx)(r.uF,{title:`${t("容器")} (${j.length})`,titleCom:(0,b.jsx)(_.Sm,{placeholder:t("过滤"),value:E,handleInputChange:e=>{I(e)}}),children:(0,b.jsx)(f.X,{headers:T,rows:j,width:"10rem"})})})})]}),(0,b.jsx)(K,{})]})}var G=s(64694);let O="",W=!1,B=!1;function U(e){const{t}=(0,x.Bd)(),[s,i]=(0,n.useState)([]),[l,u]=(0,n.useState)([]),[p,m]=(0,n.useState)(0),[j,g]=(0,n.useState)(""),[w,y]=(0,n.useState)(["pid",t("名字"),t("创建用户"),(0,b.jsxs)("span",{children:[t("内存"),(0,b.jsx)(h.rA,{icon:"sort",title:t("升序"),onClick:()=>{W=!W}})]}),(0,b.jsxs)("span",{children:["cpu%",(0,b.jsx)(h.rA,{icon:"sort",title:t("升序"),onClick:()=>{B=!B}})]}),t("选择")]),{check_user_auth:k}=(0,v.MH)();(0,n.useEffect)(()=>{g(O),(async()=>{i([]),m(0),u([]);const e=new o.hf(o.HK.process_get);await a.ws.send(e),a.ws.addMsg(o.HK.process_getting,e=>{const s=[];if(O){for(const t of e.context)for(const e of t)if(`${e}`.includes(O)){s.push(t);break}}else s.push(...e.context);W&&(0,G.di)(s,e=>e[3],!1),B&&(0,G.di)(s,e=>e[4],!1);const n=s.map(e=>{const s=e.map((e,t)=>(0,b.jsx)(r.xP,{context:3===t?(0,F.v7)(e):e}));return s.push((0,b.jsx)(h.rA,{icon:"place",title:t("选中"),onClick:()=>{u(s)}})),s});m(s.length),i(n)})})()},[]),(0,n.useEffect)(()=>{O=j},[j]);return(0,b.jsxs)("div",{children:[(0,b.jsxs)(d.A,{children:[l.length>0&&(0,b.jsx)("div",{children:l[1].props.context}),l.length>0&&k(S.oV.sys_process_close)&&(0,b.jsx)("div",{children:(0,b.jsx)(h.rA,{icon:"stop",title:t("停止"),onClick:()=>{const e=new o.hf(o.HK.process_close);e.context={pid:l[0].props.context},u([]),a.ws.send(e)}})})]}),(0,b.jsx)(c.xh,{children:0!==s.length||O?(0,b.jsx)(c.fI,{children:(0,b.jsx)(c.VP,{widthPer:80,children:(0,b.jsx)(r.uF,{title:`${t("进程")} (${p})`,titleCom:(0,b.jsx)(_.Sm,{placeholder:t("过滤"),value:j,handleInputChange:e=>{g(e)}}),children:(0,b.jsx)(f.X,{headers:w,rows:s,width:"10rem"})})})}):(0,b.jsx)(V.h,{context:t("加载中请等待...")})})]})}const L=n.lazy(()=>Promise.all([s.e(7986),s.e(8023),s.e(5614)]).then(s.bind(s,85614)));function R(e){const[t,s]=(0,n.useState)(null),[c,r]=(0,p.fp)(m.AG.systemd_shell_show),[i,l]=(0,p.fp)(m.AG.user_base_info),d=i.user_data.theme?.includes("dark")?"#FFFFFF":"#000000",h=()=>{(async()=>{t&&(t.writeln("[38;2;29;153;243mclose![0m "),t.dispose(),s(null))})()};(0,n.useEffect)(()=>{if(!c.show)return void h();(async()=>{const e=new $.Terminal({fontFamily:"Monaco, Menlo, Consolas, 'Courier New', monospace",theme:{background:"#FFFFFF",foreground:d,cursor:d,selectionBackground:"#a6d2ff"},cursorBlink:!0,cursorStyle:"bar",scrollback:1e3,scrollSensitivity:1,tabStopWidth:4,convertEol:!0});a.ws.subscribeUnconnect(h),a.ws.addMsg(o.HK.systemd_logs_getting,t=>{"error"===t.context&&h(),e.write(t.context)}),s(e)})();const e=e=>{};return document.addEventListener("cancel_systemd_logs",e),()=>{document.removeEventListener("cancel_systemd_logs",e)}},[c]),(0,n.useEffect)(()=>()=>{h()},[]);return(0,b.jsx)(L,{show:c.show,terminal:t,init:(e,s)=>{t.writeln("[38;2;29;153;243mconnect...[0m ");const n={unit_name:c.unit_name},r=new o.hf(o.HK.systemd_logs_get);r.context=n,a.ws.send(r)}})}let q,z="";function D(e){const{t}=(0,x.Bd)(),{check_user_auth:s}=(0,v.MH)(),[i,j]=(0,p.fp)(m.AG.systemd_shell_show),[w,y]=(0,p.fp)(m.AG.confirm),[k,Y]=(0,n.useState)(["pid","name","process",t("创建用户"),t("内存"),t("cpu%"),t("active状态"),t("选择")]),[A,C]=(0,n.useState)(["单元名字","加载状态",t("active(sub)状态"),t("描述"),t("选择")]),[P,M]=(0,n.useState)([]),[$,E]=(0,n.useState)([]),[I,K]=(0,n.useState)([]),[N,X]=(0,n.useState)(!1),[H,Z]=(0,n.useState)([]),[T,G]=(0,n.useState)(""),[O,W]=(0,n.useState)(""),[B,U]=(0,n.useState)(new Set),[L,D]=(0,p.fp)(m.AG.editorSetting);(0,n.useEffect)(()=>{W(z),(async()=>{M([]),K([]);const e=new o.hf(o.HK.systemd_inside_get);await a.ws.send(e),a.ws.addMsg(o.HK.systemd_inside_getting,e=>{const t=[];if(z){for(const s of e.context)for(const e of s)if(`${e}`.includes(z)){t.push(s);break}}else t.push(...e.context);M(t.map(e=>{const t=e.map((e,t)=>(0,b.jsx)(r.xP,{context:4===t?(0,F.v7)(e):e}));return t.push((0,b.jsx)(h.rA,{icon:"place",title:"选中",onClick:()=>{K(t)}})),t}))})})()},[]),(0,n.useEffect)(()=>{z=O},[O]);const Q=e=>{if(i.show){j({show:!1,unit_name:""});const e=new CustomEvent("cancel_systemd_logs",{detail:{}});document.dispatchEvent(e)}else j({show:!0,unit_name:e})};return(0,b.jsxs)("div",{children:[(0,b.jsxs)(d.A,{left_children:(0,b.jsx)(h.Z$,{defaultStatus:!1,text:t("系统systemd单元"),clickFun:e=>{X(e),e?((async()=>{E([]),Z([]);const e=await l.Yu.get("systemd/inside/all");if(e.code!==u.m.Success)return;U(new Set(e.data));const t=await l.Yu.get("systemd/allget");if(t.code===u.m.Success){const e=t.data,s=[];for(const t of e??[]){const e=[(0,b.jsx)(r.xP,{context:t.unit}),t.load,`${t.active}(${t.sub})`,(0,b.jsx)(r.xP,{context:t.description})];s.push([...e,(0,b.jsx)(h.rA,{icon:"place",title:"添加",onClick:()=>{Z([...e])}})])}q=s,E(s)}})(),K([])):Z([])}}),children:[I.length>0&&(0,b.jsx)("div",{children:I[1].props.context}),H.length>0&&(0,b.jsx)("div",{children:H[0].props.context}),I.length>0&&(0,b.jsxs)("div",{children:[s(S.oV.systemd_update)&&(0,b.jsx)(h.rA,{icon:"delete",title:"从实时监控删除",onClick:()=>{(async e=>{y({open:!0,handle:async()=>{(await l.Yu.post("systemd/delete",{unit_name:e})).code===u.m.Success&&((0,g.SK)("删除成功"),y({open:!1,handle:null}))}})})(I[1].props.context)}}),(0,b.jsx)(h.rA,{icon:"print",title:"打印日志",onClick:()=>{Q(I[1].props.context)}})]}),H.length>0&&(0,b.jsxs)("div",{children:[s(S.oV.systemd_update)&&(0,b.jsx)(h.rA,{icon:"delete",title:"删除系统上的sytemd",onClick:()=>{(async e=>{y({open:!0,handle:async()=>{(await l.Yu.post("systemd/sys/delete",{unit_name:e})).code===u.m.Success&&((0,g.SK)("删除成功"),y({open:!1,handle:null}))}})})(H[0].props.context)}}),(0,b.jsx)(h.rA,{icon:"print",title:"打印日志",onClick:()=>{Q(H[0].props.context)}}),s(S.oV.systemd_update)&&(0,b.jsx)(h.rA,{icon:"text_fields",title:"sytemd文件内容",onClick:()=>{(async t=>{const s=await l.Yu.post("systemd/get/context",{unit_name:t});s.code===u.m.Success&&(D({model:"text",open:!0,fileName:e.name,save:async e=>{const t={context:e};"/"===s.data.path[0]&&(s.data.path=s.data.path.slice(1)),(await l.$M.post(`save/${s.data.path}`,t)).code===u.m.Success&&(v.xK.set_value_temp(""),D({open:!1,model:"",fileName:"",save:null}))}}),v.xK.set_value_temp(s.data.context))})(H[0].props.context)}}),s(S.oV.systemd_update)&&!B.has(H[0].props.context)&&(0,b.jsx)(h.rA,{icon:"plus_one",title:"添加到管理",onClick:()=>(async e=>{const t=await l.Yu.post("systemd/add",{unit_name:e});t.code===u.m.Success&&(U(new Set(t.data)),(0,g.SK)("添加成功"))})(H[0].props.context)})]})]}),(0,b.jsxs)(c.xh,{children:[N&&(0,b.jsx)(c.fI,{children:(0,b.jsx)(c.VP,{widthPer:80,children:(0,b.jsx)(r.uF,{title:`systemd系统单元(${$.length})`,titleCom:(0,b.jsx)(_.Sm,{placeholder:"过滤单元",value:T,handleInputChange:e=>{G(e)},handlerEnter:()=>{const e=[];if(T){for(const t of q)(t[0].props.context.includes(T)||t[3].props.context.includes(T))&&e.push(t);E(e)}else E(q)}}),children:(0,b.jsx)(f.X,{headers:A,rows:$,width:"10rem"})})})}),0===P.length&&!N&&(0,b.jsx)(V.h,{context:"没有管理的单元 or 加载中请等待..."}),0!==P.length&&!N&&(0,b.jsx)(c.fI,{children:(0,b.jsx)(c.VP,{widthPer:80,children:(0,b.jsx)(r.uF,{title:`filecat监控单元(${P.length})`,titleCom:(0,b.jsx)(_.Sm,{placeholder:"过滤单元",value:O,handleInputChange:e=>{W(e)}}),children:(0,b.jsx)(f.X,{headers:k,rows:P,width:"10rem"})})})})]}),(0,b.jsx)(R,{})]})}var Q=s(87361);function J(e){const{t}=(0,x.Bd)(),[s,n]=(0,p.fp)(m.AG.user_base_info),r=[{index:1,name:t("系统性能"),rto:"sys/",component:(0,b.jsx)(M,{})},{index:2,name:t("系统进程"),rto:"process/",component:(0,b.jsx)(U,{})},{index:3,name:t("docker容器"),rto:"docker/",component:(0,b.jsx)(T,{})}];return s.sys===S.XM.linux&&r.push({index:4,name:t("systemd"),rto:"systemd/",component:(0,b.jsx)(D,{})}),(0,b.jsx)(c.W1,{optionList:r,father_route:Q.o.info})}},46447(e,t,s){function n(e){return e+.5|0}s.d(t,{Q1:()=>I});const c=(e,t,s)=>Math.max(Math.min(e,s),t);function r(e){return c(n(2.55*e),0,255)}function i(e){return c(n(255*e),0,255)}function o(e){return c(n(e/2.55)/100,0,1)}function a(e){return c(n(100*e),0,100)}const l={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},d=[..."0123456789ABCDEF"],h=e=>d[15&e],f=e=>d[(240&e)>>4]+d[15&e],u=e=>(240&e)>>4==(15&e);function x(e){var t=(e=>u(e.r)&&u(e.g)&&u(e.b)&&u(e.a))(e)?h:f;return e?"#"+t(e.r)+t(e.g)+t(e.b)+((e,t)=>e<255?t(e):"")(e.a,t):void 0}const p=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function m(e,t,s){const n=t*Math.min(s,1-s),c=(t,c=(t+e/30)%12)=>s-n*Math.max(Math.min(c-3,9-c,1),-1);return[c(0),c(8),c(4)]}function j(e,t,s){const n=(n,c=(n+e/60)%6)=>s-s*t*Math.max(Math.min(c,4-c,1),0);return[n(5),n(3),n(1)]}function g(e,t,s){const n=m(e,1,.5);let c;for(t+s>1&&(c=1/(t+s),t*=c,s*=c),c=0;c<3;c++)n[c]*=1-t-s,n[c]+=t;return n}function _(e){const t=e.r/255,s=e.g/255,n=e.b/255,c=Math.max(t,s,n),r=Math.min(t,s,n),i=(c+r)/2;let o,a,l;return c!==r&&(l=c-r,a=i>.5?l/(2-c-r):l/(c+r),o=function(e,t,s,n,c){return e===c?(t-s)/n+(t<s?6:0):t===c?(s-e)/n+2:(e-t)/n+4}(t,s,n,l,c),o=60*o+.5),[0|o,a||0,i]}function b(e,t,s,n){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,s,n)).map(i)}function w(e,t,s){return b(m,e,t,s)}function y(e){return(e%360+360)%360}function k(e){const t=p.exec(e);let s,n=255;if(!t)return;t[5]!==s&&(n=t[6]?r(+t[5]):i(+t[5]));const c=y(+t[2]),o=+t[3]/100,a=+t[4]/100;return s="hwb"===t[1]?function(e,t,s){return b(g,e,t,s)}(c,o,a):"hsv"===t[1]?function(e,t,s){return b(j,e,t,s)}(c,o,a):w(c,o,a),{r:s[0],g:s[1],b:s[2],a:n}}const v={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},S={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let Y;function A(e){Y||(Y=function(){const e={},t=Object.keys(S),s=Object.keys(v);let n,c,r,i,o;for(n=0;n<t.length;n++){for(i=o=t[n],c=0;c<s.length;c++)r=s[c],o=o.replace(r,v[r]);r=parseInt(S[i],16),e[o]=[r>>16&255,r>>8&255,255&r]}return e}(),Y.transparent=[0,0,0,0]);const t=Y[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}const C=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const F=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,P=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function M(e,t,s){if(e){let n=_(e);n[t]=Math.max(0,Math.min(n[t]+n[t]*s,0===t?360:1)),n=w(n),e.r=n[0],e.g=n[1],e.b=n[2]}}function V(e,t){return e?Object.assign(t||{},e):e}function $(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=i(e[3]))):(t=V(e,{r:0,g:0,b:0,a:1})).a=i(t.a),t}function E(e){return"r"===e.charAt(0)?function(e){const t=C.exec(e);let s,n,i,o=255;if(t){if(t[7]!==s){const e=+t[7];o=t[8]?r(e):c(255*e,0,255)}return s=+t[1],n=+t[3],i=+t[5],s=255&(t[2]?r(s):c(s,0,255)),n=255&(t[4]?r(n):c(n,0,255)),i=255&(t[6]?r(i):c(i,0,255)),{r:s,g:n,b:i,a:o}}}(e):k(e)}class I{constructor(e){if(e instanceof I)return e;const t=typeof e;let s;var n,c,r;"object"===t?s=$(e):"string"===t&&(r=(n=e).length,"#"===n[0]&&(4===r||5===r?c={r:255&17*l[n[1]],g:255&17*l[n[2]],b:255&17*l[n[3]],a:5===r?17*l[n[4]]:255}:7!==r&&9!==r||(c={r:l[n[1]]<<4|l[n[2]],g:l[n[3]]<<4|l[n[4]],b:l[n[5]]<<4|l[n[6]],a:9===r?l[n[7]]<<4|l[n[8]]:255})),s=c||A(e)||E(e)),this._rgb=s,this._valid=!!s}get valid(){return this._valid}get rgb(){var e=V(this._rgb);return e&&(e.a=o(e.a)),e}set rgb(e){this._rgb=$(e)}rgbString(){return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${o(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0;var e}hexString(){return this._valid?x(this._rgb):void 0}hslString(){return this._valid?function(e){if(!e)return;const t=_(e),s=t[0],n=a(t[1]),c=a(t[2]);return e.a<255?`hsla(${s}, ${n}%, ${c}%, ${o(e.a)})`:`hsl(${s}, ${n}%, ${c}%)`}(this._rgb):void 0}mix(e,t){if(e){const s=this.rgb,n=e.rgb;let c;const r=t===c?.5:t,i=2*r-1,o=s.a-n.a,a=((i*o===-1?i:(i+o)/(1+i*o))+1)/2;c=1-a,s.r=255&a*s.r+c*n.r+.5,s.g=255&a*s.g+c*n.g+.5,s.b=255&a*s.b+c*n.b+.5,s.a=r*s.a+(1-r)*n.a,this.rgb=s}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,s){const n=P(o(e.r)),c=P(o(e.g)),r=P(o(e.b));return{r:i(F(n+s*(P(o(t.r))-n))),g:i(F(c+s*(P(o(t.g))-c))),b:i(F(r+s*(P(o(t.b))-r))),a:e.a+s*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new I(this.rgb)}alpha(e){return this._rgb.a=i(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=n(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return M(this._rgb,2,e),this}darken(e){return M(this._rgb,2,-e),this}saturate(e){return M(this._rgb,1,e),this}desaturate(e){return M(this._rgb,1,-e),this}rotate(e){return function(e,t){var s=_(e);s[0]=y(s[0]+t),s=w(s),e.r=s[0],e.g=s[1],e.b=s[2]}(this._rgb,e),this}}}}]);
|
|
1
|
+
/*! For license information please see 2286.7b47b50c225130b2a17e.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[2286],{75007(e,t,s){s.d(t,{h:()=>r});s(96540);var n=s(85997),c=s(74848);function r(e){return(0,c.jsxs)("h2",{className:"message",children:[(0,c.jsx)(n.In,{icon:"sentiment_dissatisfied"}),(0,c.jsx)("span",{children:e.context})]})}},22081(e,t,s){var n=s(96540),c=s(86004),r=s(74848);const i=({percentage:e})=>{const t=(0,n.useRef)(null),[s,i]=(0,n.useState)(null);return(0,n.useEffect)(()=>{const s=t.current.getContext("2d"),n=new c.Ay(s,{type:"doughnut",data:{labels:["use","left"],datasets:[{data:[e,100-e],backgroundColor:["#007bff","#f0f0f0"],borderWidth:0}]},options:{plugins:{legend:{display:!1},tooltip:{enabled:!1}},elements:{arc:{borderWidth:0}}}});return i(n),()=>{n.destroy()}},[]),(0,n.useEffect)(()=>{s&&(s.data.datasets[0].data=[e,100-e],s.update())},[e]),(0,r.jsx)("div",{style:{width:"8rem",overflow:"hidden"},children:(0,r.jsx)("canvas",{ref:t})})};s.d(t,["A",0,i])},77481(e,t,s){s.d(t,{S:()=>i,X:()=>r});var n=s(96540),c=s(74848);function r(e){const[t,s]=n.useState([]);return(0,n.useEffect)(()=>{e.children?s(Array.isArray(e.children)?e.children:[e.children]):s(e.rows)},[e.rows,e.children]),(0,c.jsxs)("table",{children:[(0,c.jsx)("thead",{children:(0,c.jsx)("tr",{children:e.headers?.map((e,t)=>(0,c.jsx)("th",{children:e},t))})}),(0,c.jsx)("tbody",{children:t.map((t,s)=>(0,c.jsx)("tr",{onContextMenu:()=>{e.handleContextMenu&&e.handleContextMenu(t)},children:t.map((s,n)=>(0,c.jsx)("td",{style:{width:e.width??"auto"},className:n===t.length-1?"small":"",children:s},n))},s))})]})}function i(e){return(0,c.jsx)("div",{style:{display:e.isFlex?"flex":"block"},children:e.columns.map((e,t)=>(0,c.jsx)("div",{children:e},t))})}},88062(e,t,s){s(96540),s(47022);var n=s(74848);function c(e){return(0,n.jsx)("div",{className:"black-tip",onClick:()=>{e.click&&e.click(e)},onContextMenu:t=>{t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),e.onContextMenu&&e.onContextMenu(t,e)},children:e.name})}const r=e=>(0,n.jsxs)("li",{children:[e.click?(0,n.jsx)(c,{...e.node,name:e.render?e.render(e.node):e.node.name,click:e.click,onContextMenu:e.onContextMenu}):(0,n.jsx)("div",{children:e.render?e.render(e.node):e.node.name}),e.node.children&&e.node.children.length>0&&(0,n.jsx)("ul",{children:e.node.children.map((t,s)=>(0,n.jsx)(r,{node:t,click:e.click,onContextMenu:e.onContextMenu,render:e.render},s))})]}),i=e=>(0,n.jsx)("div",{className:"card-tree-view",children:(0,n.jsx)("ul",{children:e.list&&e.list.map((t,s)=>(0,n.jsx)(r,{node:t,click:e.click,onContextMenu:e.onContextMenu,render:e.render},s))})});s.d(t,["A",0,i])},57180(e,t,s){s.r(t),s.d(t,{default:()=>J});var n=s(96540),c=s(75725),r=s(70447),i=s(22081),o=s(92275),a=s(14944),l=s(14284),d=s(57952),h=s(85997),f=s(77481),u=s(53459),x=s(59270),p=s(34843),m=s(26417),j=s(74777),g=s(62042),_=s(63033),b=s(74848);function w(e){const{t}=(0,x.Bd)(),[s,i]=(0,p.fp)(m.AG.disk),[o,a]=(0,n.useState)({}),[j,g]=(0,n.useState)([]),_=[t("名字"),t("当前值"),t("历史最低"),t("临界值")];return(0,n.useEffect)(()=>{(async()=>{const s=await l.Yu.post("sys/disk/info",{name:e.name});if(s.code===u.m.Success){const e=[];for(const n of s.data.ata_smart_attributes??[]){let s;n[1]>=n[2]?s="var(--icon-green)":n[1]<=n[3]&&(s="var(--icon-red)"),n[0]=(0,b.jsx)("span",{style:{color:s},children:t(n[0])}),e.push(n)}g(s.data.ata_smart_attributes),a(s.data)}})()},[]),(0,b.jsxs)("div",{children:[(0,b.jsx)(d.A,{children:(0,b.jsx)(h.rA,{icon:"close",title:t("关闭"),onClick:()=>{i({})}})}),(0,b.jsx)(c.jW,{isFull:!0,more:!0,children:(0,b.jsx)(c.NN,{children:(0,b.jsxs)(c.fI,{children:[(0,b.jsxs)(c.VP,{widthPer:30,children:[(0,b.jsx)(c.xh,{children:(0,b.jsxs)(r.Zp,{title:t("基本信息"),children:[(0,b.jsx)(c.Yh,{left:t("名字"),right:e.name}),(0,b.jsx)(c.Yh,{left:t("厂商名称"),right:e.typeName}),(0,b.jsx)(c.Yh,{left:t("类型"),right:e.type}),(0,b.jsx)(c.Yh,{left:t("容量"),right:e.total})]})}),(0,b.jsx)(c.xh,{children:(0,b.jsxs)(r.Zp,{title:t("物理信息"),children:[(0,b.jsx)(c.Yh,{left:t("是否健康"),right:!0===o.smart_status?"是":"否"}),(0,b.jsx)(c.Yh,{left:t("设备型号"),right:o.model_name}),(0,b.jsx)(c.Yh,{left:t("序列号"),right:o.serial_number}),(0,b.jsx)(c.Yh,{left:t("固件版本"),right:o.firmware_version}),(0,b.jsx)(c.Yh,{left:t("转速(每分钟)"),right:o.rotation_rate}),(0,b.jsx)(c.Yh,{left:t("通电时长(小时)"),right:o.power_on_time_hours}),(0,b.jsx)(c.Yh,{left:t("通电次数"),right:o.power_cycle_count}),(0,b.jsx)(c.Yh,{left:t("温度(°C)"),right:o.temperature}),(0,b.jsx)(c.Yh,{left:t("通信协议"),right:o.device_protocol})]})})]}),(0,b.jsx)(c.VP,{widthPer:50,children:(0,b.jsxs)(c.xh,{children:[j?.length?(0,b.jsx)(r.uF,{title:t("ATA/SATA详细信息"),children:(0,b.jsx)(f.X,{headers:_,rows:j,width:"10rem"})}):(0,b.jsx)(b.Fragment,{}),o.nvme_smart?(0,b.jsxs)(r.Zp,{title:t("NVME详细信息"),children:[(0,b.jsx)(c.Yh,{left:t("NVMe 可用备用块(%)"),right:o.nvme_smart.available_spare}),(0,b.jsx)(c.Yh,{left:t("NVMe 已使用寿命(%)"),right:o.nvme_smart.percentage_used}),(0,b.jsx)(c.Yh,{left:t("NVMe 读取量"),right:o.nvme_smart.data_units_read}),(0,b.jsx)(c.Yh,{left:t("NVMe 写入量"),right:o.nvme_smart.data_units_written}),(0,b.jsx)(c.Yh,{left:t("NVMe 通电次数"),right:o.nvme_smart.power_cycles}),(0,b.jsx)(c.Yh,{left:t("NVMe 通电时长(小时)"),right:o.nvme_smart.power_on_hours}),(0,b.jsx)(c.Yh,{left:t("NVMe 非正常关机"),right:o.nvme_smart.unsafe_shutdowns}),(0,b.jsx)(c.Yh,{left:t("NVMe 媒体错误"),right:o.nvme_smart.media_errors}),(0,b.jsx)(c.Yh,{left:t("NVMe 错误日志数"),right:o.nvme_smart.num_err_log_entries})]}):(0,b.jsx)(b.Fragment,{})]})})]})})})]})}let y=function(e){return e[e.mount=0]="mount",e}({});var k=s(88062),v=s(78247),S=s(23430);const Y=e=>(0,b.jsxs)("div",{style:{border:"2px solid black",padding:"10px",width:"300px",height:"300px",position:"relative"},children:[e.name,e.lvms.map((e,t)=>(0,b.jsx)("div",{style:{margin:"5px",height:"40px",display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid "},children:e.name},t))]});function A(){return(0,b.jsx)("div",{style:{position:"relative",height:"300px",margin:"10px",width:"30px",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,b.jsx)("div",{style:{width:0,height:0,borderTop:"10px solid transparent",borderBottom:"10px solid transparent",borderLeft:"10px solid black"}})})}function C(){const{t:e}=(0,x.Bd)(),[t,s]=(0,p.fp)(m.AG.disk),[i,o]=(0,n.useState)({}),[a,j]=(0,n.useState)([]),[_,w]=(0,n.useState)([]),[C,F]=(0,p.fp)(m.AG.showPrompt),{check_user_auth:P}=(0,v.MH)(),[M,V]=(0,n.useState)([]),{click_file:$}=(0,v.kZ)(),[E,I]=(0,p.fp)(m.AG.prompt_card),K=[e("挂载点"),"uuid",e("类型"),e("文件系统类型"),e("文件系统容量"),e("卷容量"),e("设备路径"),e("分区表类型")],N=async()=>{const e=await l.Yu.get("disk/blk");return e.code===u.m.Success&&j(e.data),e.code};(0,n.useEffect)(()=>{(async()=>{N()})()},[]);const X=[(0,b.jsx)(h.rA,{icon:"info",title:e("提示"),onClick:async()=>{I({open:!0,title:"信息",context_div:(0,b.jsx)("div",{children:(0,b.jsxs)("ul",{children:[(0,b.jsxs)("li",{children:["通用格式:","<文件系统> <挂载点> <类型> <挂载选项> <dump> <fsck> "]}),(0,b.jsxs)("li",{children:["文件系统,有多种格式",(0,b.jsxs)("ul",{children:[(0,b.jsx)("li",{children:"1(usb口默认名称)./dev/sda1"}),(0,b.jsx)("li",{children:"2(唯一Id).UUID=123e4567-e89b-12d3-a456-426614174000"}),(0,b.jsx)("li",{children:"3.LABEL=DATA"})]})]}),(0,b.jsx)("li",{children:"挂载点,就是文件路径,例如 /mnt/data ,这个目录要提前创建,且为空"}),(0,b.jsx)("li",{children:"类型,就是文件系统类型,对于系统不支持的类型,例如ntfs需要额外前提安装ntfs-3g"}),(0,b.jsxs)("li",{children:['挂载选项的值只能是以下这些,可以用 "," 同时使用多个选项',(0,b.jsxs)("ul",{children:[(0,b.jsx)("li",{children:"defaults:使用默认挂载选项"}),(0,b.jsx)("li",{children:"noatime:不更新访问时间,提高性能"}),(0,b.jsx)("li",{children:"auto:系统启动时自动挂载"}),(0,b.jsx)("li",{children:"rw:以读写方式挂载"}),(0,b.jsx)("li",{children:"nofail:防止启动阻塞,挂载失败系统继续执行"}),(0,b.jsx)("li",{children:"...等"})]})]}),(0,b.jsx)("li",{children:"dump 0是需要备份 1是不需要备份"}),(0,b.jsx)("li",{children:"Fsck 整数值0是不检查,文件系统检查顺序越小越先检查"}),(0,b.jsx)("li",{children:"提示:只有含有文件系统的逻辑卷,或者分区才可以进行挂载。"})]})})})}}),(0,b.jsx)(h.rA,{icon:"update",title:e("更新挂载"),onClick:async()=>{(await l.Yu.post("cmd/exe",{type:y.mount})).code===u.m.Success&&(0,g.SK)("挂载文件已生效")}},1)],H=async()=>(await l.Yu.get("get_fstab")).data,Z=async e=>{await l.Yu.post("save_fstab",{content:e})};return(0,b.jsxs)("div",{children:[(0,b.jsx)(d.A,{children:(0,b.jsx)(h.rA,{icon:"close",title:e("关闭"),onClick:()=>{s({})}})}),(0,b.jsx)(c.jW,{isFull:!0,more:!0,children:(0,b.jsx)(c.NN,{children:(0,b.jsxs)(c.fI,{children:[(0,b.jsx)(c.VP,{widthPer:40,children:(0,b.jsxs)(r.Zp,{title:e("物理块(硬盘)设备、逻辑卷、物理卷"),titleCom:(0,b.jsxs)("div",{children:[P(S.oV.sys_disk_mount)&&(0,b.jsx)(h.rA,{icon:"file_open",title:e("打开挂载文件"),onClick:async()=>{$({name:"fstab(谨慎修改,内容错误会导致系统无法启动)",model:"text",get_file_fun:H,save_file_fun:Z,menu_list:X})}}),(0,b.jsx)(h.rA,{icon:"update",title:e("刷新"),onClick:async()=>{await N()===u.m.Success&&(0,g.SK)("刷新成功")}})]}),children:[(0,b.jsx)(f.X,{headers:K,rows:_,width:"10rem"}),(0,b.jsx)(k.A,{list:a,render:e=>{let t=e.name;return e.label&&(t+=`(${e.label})`),e.mountpoint?(0,b.jsxs)("span",{children:[t,(0,b.jsx)("span",{style:{color:"green"},children:"(已挂载)"})]}):t},onContextMenu:(e,t)=>{e.preventDefault()},click:t=>{let s="";if(t.mountpoint)for(let e=0;e<t.mountpoints.length;e++)s+=t.mountpoints[e]+";";w([[(0,b.jsx)(r.xP,{children:s}),(0,b.jsx)(r.xP,{children:t.uuid}),e(t.type),e(t.fstype),t.fssize,t.size,(0,b.jsx)(r.xP,{children:t.path}),t.pttype]])}})]})}),(0,b.jsx)(c.VP,{widthPer:60,children:M.map((t,s)=>{const n=[];for(const e of t.pv_list)n.push({name:`${e.name}---(${e.size})---(${e.free_size})`});const i=[];for(const e of t.lv_list)i.push({name:`${e.name}---(${e.size})`});return(0,b.jsx)(r.Zp,{children:(0,b.jsxs)(c.n5,{children:[(0,b.jsx)(Y,{name:e("物理卷"),lvms:n}),(0,b.jsx)(A,{}),(0,b.jsx)(Y,{name:`${e("逻辑卷")}---(${t.name})---size(${t.size})`,lvms:[]}),(0,b.jsx)(A,{}),(0,b.jsx)(Y,{name:e("逻辑卷"),lvms:i})]})},s)})})]})})})]})}var F=s(88815);let P=!0;function M(e){const{t}=(0,x.Bd)(),s=[t("名字"),t("厂商名称"),t("类型"),t("容量")],_=[t("名字"),t("物理硬盘"),t("文件系统类型"),t("挂载位置"),t("总容量"),t("剩余容量")],[y,k]=(0,p.fp)(m.AG.user_base_info),[v,Y]=(0,n.useState)(0),[A,M]=(0,n.useState)(0),[V,$]=(0,n.useState)(0),[E,I]=(0,n.useState)(0),[K,N]=(0,n.useState)(0),[X,H]=(0,n.useState)({}),[Z,T]=(0,n.useState)(!1),[G,O]=(0,n.useState)(!1),[W,B]=(0,n.useState)(!1),[U,L]=(0,n.useState)(P),[R,q]=(0,n.useState)(null),[z,D]=(0,n.useState)([]),[Q,J]=(0,n.useState)([]),[ee,te]=(0,p.fp)(m.AG.user_base_info),[se,ne]=(0,p.fp)(m.AG.disk),ce=async()=>{if(!P)return;const e=new o.hf(o.HK.sys_get);await a.ws.send(e),a.ws.addMsg(o.HK.sys_getting,e=>{I(e.context?.cpu_currentLoad);const t=e.context?.memLeft,s=e.context?.memTotal;M(t),$(s),Y((s-t)/s*100),q(e.context?.node_memory_usage),N(e.context?.node_cpu_usage)})};return(0,n.useEffect)(()=>((async()=>{await ce()})(),()=>{a.ws.sendData(o.HK.sys_cancel,{})}),[]),(0,b.jsxs)("div",{children:[(0,b.jsxs)(d.A,{children:[y.sys===S.XM.linux&&(0,b.jsx)(h.rA,{icon:"sd_card",title:"硬盘挂载",onClick:()=>{ne({type:"mount"})}}),(0,b.jsx)(h.Z$,{defaultStatus:!1,text:t("基本信息"),clickFun:e=>{T(e),e&&(async()=>{const e=await l.Yu.get("base");if(e.code===u.m.Success){const t=e.data;H(t)}})()}}),(0,b.jsx)(h.Z$,{defaultStatus:!1,text:t("物理硬盘"),clickFun:e=>{O(e),e&&(async()=>{const e=await l.Yu.get("disk");if(e.code===u.m.Success){const s=e.data,n=[];let c=!0;ee.sysSoftWare&&ee.sysSoftWare[j.jk.smartmontools]&&ee.sysSoftWare[j.jk.smartmontools].installed||(c=!1);for(const e of s??[])n.push([(0,b.jsx)(r.xP,{context:e.name}),e.typeName,e.type,e.total,(0,b.jsx)(h.rA,{icon:"health_and_safety",title:t("查看健康信息"),onClick:()=>{c?ne({type:"check",data:e}):(0,g.zN)("没有安装smartmontools")}})]);D(n)}})()}}),(0,b.jsx)(h.Z$,{defaultStatus:!1,text:t("文件硬盘"),clickFun:e=>{B(e),e&&(async()=>{const e=await l.Yu.get("filedisk");if(e.code===u.m.Success){const t=e.data,s=[];for(const e of t??[])s.push([(0,b.jsx)(r.xP,{context:e.name}),(0,b.jsx)(r.xP,{context:e.device_name}),e.fsType,(0,b.jsx)(r.xP,{context:e.mount}),e.total,e.available]);J(s)}})()}}),(0,b.jsx)(h.Z$,{defaultStatus:U,text:t("实时信息"),clickFun:e=>{L(e),P=e,ce()}})]}),(0,b.jsxs)(c.xh,{children:[U&&(0,b.jsxs)(c.fI,{children:[(0,b.jsx)(c.VP,{widthPer:33,children:(0,b.jsx)(r.Zp,{title:"Sys "+t("内存"),children:(0,b.jsxs)(c.fI,{children:[(0,b.jsx)(c.VP,{children:(0,b.jsx)(i.A,{percentage:v})}),(0,b.jsx)(c.VP,{children:(0,b.jsxs)(c.fI,{children:[(0,b.jsx)(c.VP,{widthPer:100,children:(0,b.jsx)("div",{children:(0,b.jsx)(c.Yh,{left:t("总容量"),center:`${V}G`})})}),(0,b.jsx)(c.VP,{widthPer:100,children:(0,b.jsx)(c.Yh,{left:t("剩余"),center:`${A}G`})})]})})]})})}),(0,b.jsx)(c.VP,{widthPer:33,children:(0,b.jsx)(r.Zp,{title:"Sys cpu",children:(0,b.jsxs)(c.fI,{children:[(0,b.jsx)(c.VP,{children:(0,b.jsx)(i.A,{percentage:E})}),(0,b.jsx)(c.VP,{children:(0,b.jsx)(c.fI,{children:(0,b.jsx)(c.Yh,{left:t("使用率"),center:E})})})]})})}),(0,b.jsx)(c.VP,{widthPer:33,children:(0,b.jsx)(r.Zp,{title:"FileCat",children:(0,b.jsxs)(c.fI,{children:[(0,b.jsxs)(c.VP,{children:[(0,b.jsx)(c.qV,{content:t("内存")}),(0,b.jsx)(c.qV,{content:"total: "+(0,F.v7)(R?.rss)}),(0,b.jsx)(c.qV,{content:"object: "+(0,F.v7)(R?.heapTotal)}),(0,b.jsx)(c.qV,{content:"obj-use: "+(0,F.v7)(R?.heapUsed)}),(0,b.jsx)(c.qV,{content:"external: "+(0,F.v7)(R?.external)}),(0,b.jsx)(c.qV,{content:"buffer: "+(0,F.v7)(R?.arrayBuffers)})]}),(0,b.jsx)(c.VP,{children:(0,b.jsx)(c.qV,{content:"cpu growth rate: "+K})})]})})})]}),(0,b.jsxs)(c.fI,{children:[Z&&(0,b.jsx)(c.VP,{children:(0,b.jsxs)(r.Zp,{title:t("基本信息"),children:[(0,b.jsx)(c.Yh,{left:t("总内存"),right:X.mem_total}),(0,b.jsx)(c.Yh,{left:`cpu ${t("制造商")}`,right:X.cpu_manufacturer}),(0,b.jsx)(c.Yh,{left:`cpu ${t("品牌")}`,right:X.cpu_brand}),(0,b.jsx)(c.Yh,{left:`cpu ${t("逻辑核心")}`,right:X.cpu_core_num}),(0,b.jsx)(c.Yh,{left:`cpu ${t("物理核心")}`,right:X.cpu_phy_core_num}),(0,b.jsx)(c.Yh,{left:`cpu ${t("最大")}hz`,right:X.cpu_speed_hz}),(0,b.jsx)(c.Yh,{left:`${t("当前系统")}:pid;ppid`,right:X.pid_ppid}),(0,b.jsx)(c.Yh,{left:t("运行用户"),right:X.user})]})}),G&&(0,b.jsx)(c.VP,{children:(0,b.jsx)(r.uF,{title:t("物理硬盘"),children:(0,b.jsx)(f.X,{headers:s,rows:z,width:"10rem"})})}),W&&(0,b.jsx)(c.VP,{children:(0,b.jsx)(r.uF,{title:t("文件硬盘"),children:(0,b.jsx)(f.X,{headers:_,rows:Q,width:"10rem"})})})]})]}),se&&"check"===se.type&&(0,b.jsx)(w,{...se.data}),se&&"mount"===se.type&&(0,b.jsx)(C,{})]})}var V=s(75007),$=s(97856),E=s(64405);const I=n.lazy(()=>Promise.all([s.e(7986),s.e(8023),s.e(5614)]).then(s.bind(s,85614)));function K(e){const[t,s]=(0,n.useState)(null),[c,r]=(0,p.fp)(m.AG.dockerShellShow),[i,l]=(0,p.fp)(m.AG.user_base_info),d=i.user_data.theme?.includes("dark")?"#FFFFFF":"#000000",h=()=>{(async()=>{t&&(t.writeln("[38;2;29;153;243mclose![0m "),t.dispose(),s(null))})()};(0,n.useEffect)(()=>{c.show?(async()=>{const e=new $.Terminal({fontFamily:"Monaco, Menlo, Consolas, 'Courier New', monospace",theme:{background:"#FFFFFF",foreground:d,cursor:d,selectionBackground:"#a6d2ff"},cursorBlink:!0,cursorStyle:"bar",scrollback:1e3,scrollSensitivity:1,tabStopWidth:4,convertEol:!0});let t;a.ws.subscribeUnconnect(h);const n=t=>{e.write(t)};t=s=>{e.clear(),e.write(s),t=n},a.ws.addMsg("logs"===c.type?o.HK.docker_shell_logs_getting:o.HK.docker_shell_exec_getting,e=>{"error"===e.context&&h(),t(e.context)}),"exec"===c.type&&e.onData(async e=>{const t=new o.hf(o.HK.docker_shell_exec);t.context=e,await a.ws.send(t)}),s(e)})():h()},[c]),(0,n.useEffect)(()=>()=>{h()},[]);return(0,b.jsx)(I,{show:c.show,terminal:t,init:(e,s)=>{t.writeln("[38;2;29;153;243mconnect...[0m ");const n=new E.n;let r;n.rows=e,n.cols=s,n.dockerId=c.dockerId,r="logs"===c.type?new o.hf(o.HK.docker_shell_logs):new o.hf(o.HK.docker_shell_exec_open),r.context=n,a.ws.send(r)}})}var N=s(27690);let X="",H=[],Z=!1;function T(e){const{t}=(0,x.Bd)(),[s,i]=(0,n.useState)({}),[j,w]=(0,n.useState)([]),[y,k]=(0,n.useState)([]),{check_user_auth:Y}=(0,v.MH)(),[A,C]=(0,p.fp)(m.AG.dockerShellShow),[F,P]=(0,p.fp)(m.AG.showPrompt),[M,$]=(0,p.fp)(m.AG.confirm),[E,I]=(0,n.useState)(X),[T,G]=(0,n.useState)(["id",t("名字"),t("镜像"),t("命令"),t("状态"),t("内存"),"cpu%",t("选择")]),[O,W]=(0,n.useState)([]),[B,U]=(0,n.useState)(void 0),[L,R]=(0,n.useState)(!1),q=["id",t("name"),t("create时间"),t("大小"),(0,b.jsxs)("span",{children:["选中",(0,b.jsx)(h.rA,{icon:"check_box",title:"全选",onClick:()=>{Z=!Z;const e={};for(let t=0;t<y.length&&Z;t++)e[y[t][0].props.context]=1;i(e)}})]})],z=async()=>{w([]),W([]);const e=new o.hf(o.HK.docker_get);await a.ws.send(e),a.ws.addMsg(o.HK.docker_getting,e=>{const t=[];if(X){for(const s of e.context)for(const e of s)if(`${e}`.includes(X)){t.push(s);break}}else t.push(...e.context);w(t.map(e=>{const t=e.map(e=>(0,b.jsx)(r.xP,{context:e}));return t.push((0,b.jsx)(h.rA,{icon:"place",title:"选中",onClick:()=>{W(t)}})),t}))})};(0,n.useEffect)(()=>(I(X),z(),()=>{(async()=>{C({show:!1,type:"",dockerId:""})})()}),[]),(0,n.useEffect)(()=>{X=E},[E]);const D=()=>{const e=new o.hf("logs"===A.type?o.HK.docker_shell_logs_cancel:o.HK.docker_shell_exec_cancel);e.context="",a.ws.send(e)},Q=e=>{const t=new o.hf(o.HK.docker_switch);t.context={type:e,dockerId:O[0].props.context},W([]),a.ws.send(t)},J=async()=>{const e=await l.Yu.get("docker/images");if(e.code===u.m.Success){const t=e.data??[],s=[];for(let e=0;e<t.length;e++){const n=t[e],c=[(0,b.jsx)(r.xP,{context:n[0]}),(0,b.jsx)(r.xP,{context:n[1]}),n[2],n[3],""];s.push(c)}H=s,k(s)}};return(0,b.jsxs)("div",{children:[(0,b.jsxs)(d.A,{left_children:(0,b.jsx)(h.Z$,{defaultStatus:!1,text:t("docker镜像"),clickFun:e=>{R(e),e?(J(),W([])):(z(),k([]),i({}))}}),children:[Object.keys(s).length>0&&(0,b.jsx)(h.rA,{icon:"delete",title:t("删除镜像"),onClick:async()=>{$({open:!0,title:t("确定删除选中的镜像吗"),handle:async()=>{const e=Object.keys(s),t=await l.Yu.post("docker/check/delete",{ids:e});if(t.code===u.m.Success)if(0===t.data.length){(await l.Yu.post("docker/delete",{ids:e})).code===u.m.Success&&((0,g.SK)("删除完成"),J(),$({open:!1,handle:null}))}else(0,g.N9)(`有镜像正在运行${JSON.stringify(t.data)}`)}})}}),O.length>0&&(0,b.jsx)("div",{children:O[1].props.context}),O.length>0&&(0,b.jsxs)("div",{children:[Y(S.oV.docker_container_update)&&(0,b.jsx)(h.rA,{icon:"delete",title:t("删除容器"),onClick:()=>{P({show:!0,overlay:!0,type:N.PromptEnum.DockerDel,data:{dockerId:O[0].props.context,name:O[1].props.context}})}}),(0,b.jsx)(h.rA,{icon:"print",title:t("打印日志"),onClick:()=>{A.show?(C({show:!1,type:"",dockerId:""}),D()):C({show:!0,dockerId:O[0].props.context,type:"logs"})}}),Y(S.oV.docker_container_update)&&(0,b.jsx)(h.rA,{icon:"personal_video",title:t("执行命令"),onClick:()=>{A.show?(C({show:!1,type:"",dockerId:""}),D()):C({show:!0,dockerId:O[0].props.context,type:"exec"})}}),Y(S.oV.docker_container_update)&&O[4].props.context.includes("Up")&&(0,b.jsx)(h.rA,{icon:"stop",title:t("停止"),onClick:()=>Q("stop")}),Y(S.oV.docker_container_update)&&!O[4].props.context.includes("Up")&&(0,b.jsx)(h.rA,{icon:"play_arrow",title:t("开启"),onClick:()=>{Q("start")}})]}),(0!==j.length||E)&&!L&&(0,b.jsx)(h.rA,{icon:"refresh",title:t("列表更新"),onClick:async()=>{const e=new o.hf(o.HK.docker_get);await a.ws.send(e)}})]}),(0,b.jsxs)(c.xh,{children:[L&&(0,b.jsx)(c.fI,{children:(0,b.jsx)(c.VP,{widthPer:80,children:(0,b.jsx)(r.uF,{title:`${t("镜像")} (${y.length})`,titleCom:(0,b.jsx)(_.Sm,{placeholder:t("过滤镜像"),value:B,handleInputChange:e=>{U(e)},handlerEnter:()=>{const e=[];if(B){for(const t of y)(t[0].props.context.includes(B)||t[1].props.context.includes(B))&&e.push(t);k(e)}else k(H)}}),children:(0,b.jsx)(f.X,{headers:q,rows:y.map((e,n)=>(e[4]=(0,b.jsx)(_.GL,{context:t(""),selected:s[e[0].props.context],onchange:()=>{(e=>{const t={};Object.assign(t,s),t[e]?delete t[e]:t[e]=1,i(t)})(e[0].props.context)}}),e)),width:"10rem"})})})}),0===j.length&&!E&&!L&&(0,b.jsx)(V.h,{context:t("检测不到docker,主机可能没有安装docker or 容器为空")}),(0!==j.length||E)&&!L&&(0,b.jsx)(c.fI,{children:(0,b.jsx)(c.VP,{widthPer:80,children:(0,b.jsx)(r.uF,{title:`${t("容器")} (${j.length})`,titleCom:(0,b.jsx)(_.Sm,{placeholder:t("过滤"),value:E,handleInputChange:e=>{I(e)}}),children:(0,b.jsx)(f.X,{headers:T,rows:j,width:"10rem"})})})})]}),(0,b.jsx)(K,{})]})}var G=s(64694);let O="",W=!1,B=!1;function U(e){const{t}=(0,x.Bd)(),[s,i]=(0,n.useState)([]),[l,u]=(0,n.useState)([]),[p,m]=(0,n.useState)(0),[j,g]=(0,n.useState)(""),[w,y]=(0,n.useState)(["pid",t("名字"),t("创建用户"),(0,b.jsxs)("span",{children:[t("内存"),(0,b.jsx)(h.rA,{icon:"sort",title:t("升序"),onClick:()=>{W=!W}})]}),(0,b.jsxs)("span",{children:["cpu%",(0,b.jsx)(h.rA,{icon:"sort",title:t("升序"),onClick:()=>{B=!B}})]}),t("选择")]),{check_user_auth:k}=(0,v.MH)();(0,n.useEffect)(()=>{g(O),(async()=>{i([]),m(0),u([]);const e=new o.hf(o.HK.process_get);await a.ws.send(e),a.ws.addMsg(o.HK.process_getting,e=>{const s=[];if(O){for(const t of e.context)for(const e of t)if(`${e}`.includes(O)){s.push(t);break}}else s.push(...e.context);W&&(0,G.di)(s,e=>e[3],!1),B&&(0,G.di)(s,e=>e[4],!1);const n=s.map(e=>{const s=e.map((e,t)=>(0,b.jsx)(r.xP,{context:3===t?(0,F.v7)(e):e}));return s.push((0,b.jsx)(h.rA,{icon:"place",title:t("选中"),onClick:()=>{u(s)}})),s});m(s.length),i(n)})})()},[]),(0,n.useEffect)(()=>{O=j},[j]);return(0,b.jsxs)("div",{children:[(0,b.jsxs)(d.A,{children:[l.length>0&&(0,b.jsx)("div",{children:l[1].props.context}),l.length>0&&k(S.oV.sys_process_close)&&(0,b.jsx)("div",{children:(0,b.jsx)(h.rA,{icon:"stop",title:t("停止"),onClick:()=>{const e=new o.hf(o.HK.process_close);e.context={pid:l[0].props.context},u([]),a.ws.send(e)}})})]}),(0,b.jsx)(c.xh,{children:0!==s.length||O?(0,b.jsx)(c.fI,{children:(0,b.jsx)(c.VP,{widthPer:80,children:(0,b.jsx)(r.uF,{title:`${t("进程")} (${p})`,titleCom:(0,b.jsx)(_.Sm,{placeholder:t("过滤"),value:j,handleInputChange:e=>{g(e)}}),children:(0,b.jsx)(f.X,{headers:w,rows:s,width:"10rem"})})})}):(0,b.jsx)(V.h,{context:t("加载中请等待...")})})]})}const L=n.lazy(()=>Promise.all([s.e(7986),s.e(8023),s.e(5614)]).then(s.bind(s,85614)));function R(e){const[t,s]=(0,n.useState)(null),[c,r]=(0,p.fp)(m.AG.systemd_shell_show),[i,l]=(0,p.fp)(m.AG.user_base_info),d=i.user_data.theme?.includes("dark")?"#FFFFFF":"#000000",h=()=>{(async()=>{t&&(t.writeln("[38;2;29;153;243mclose![0m "),t.dispose(),s(null))})()};(0,n.useEffect)(()=>{if(!c.show)return void h();(async()=>{const e=new $.Terminal({fontFamily:"Monaco, Menlo, Consolas, 'Courier New', monospace",theme:{background:"#FFFFFF",foreground:d,cursor:d,selectionBackground:"#a6d2ff"},cursorBlink:!0,cursorStyle:"bar",scrollback:1e3,scrollSensitivity:1,tabStopWidth:4,convertEol:!0});a.ws.subscribeUnconnect(h),a.ws.addMsg(o.HK.systemd_logs_getting,t=>{"error"===t.context&&h(),e.write(t.context)}),s(e)})();const e=e=>{};return document.addEventListener("cancel_systemd_logs",e),()=>{document.removeEventListener("cancel_systemd_logs",e)}},[c]),(0,n.useEffect)(()=>()=>{h()},[]);return(0,b.jsx)(L,{show:c.show,terminal:t,init:(e,s)=>{t.writeln("[38;2;29;153;243mconnect...[0m ");const n={unit_name:c.unit_name},r=new o.hf(o.HK.systemd_logs_get);r.context=n,a.ws.send(r)}})}let q,z="";function D(e){const{t}=(0,x.Bd)(),{check_user_auth:s}=(0,v.MH)(),[i,j]=(0,p.fp)(m.AG.systemd_shell_show),[w,y]=(0,p.fp)(m.AG.confirm),[k,Y]=(0,n.useState)(["pid","name","process",t("创建用户"),t("内存"),t("cpu%"),t("active状态"),t("选择")]),[A,C]=(0,n.useState)(["单元名字","加载状态",t("active(sub)状态"),t("描述"),t("选择")]),[P,M]=(0,n.useState)([]),[$,E]=(0,n.useState)([]),[I,K]=(0,n.useState)([]),[N,X]=(0,n.useState)(!1),[H,Z]=(0,n.useState)([]),[T,G]=(0,n.useState)(""),[O,W]=(0,n.useState)(""),[B,U]=(0,n.useState)(new Set),[L,D]=(0,p.fp)(m.AG.editorSetting);(0,n.useEffect)(()=>{W(z),(async()=>{M([]),K([]);const e=new o.hf(o.HK.systemd_inside_get);await a.ws.send(e),a.ws.addMsg(o.HK.systemd_inside_getting,e=>{const t=[];if(z){for(const s of e.context)for(const e of s)if(`${e}`.includes(z)){t.push(s);break}}else t.push(...e.context);M(t.map(e=>{const t=e.map((e,t)=>(0,b.jsx)(r.xP,{context:4===t?(0,F.v7)(e):e}));return t.push((0,b.jsx)(h.rA,{icon:"place",title:"选中",onClick:()=>{K(t)}})),t}))})})()},[]),(0,n.useEffect)(()=>{z=O},[O]);const Q=e=>{if(i.show){j({show:!1,unit_name:""});const e=new CustomEvent("cancel_systemd_logs",{detail:{}});document.dispatchEvent(e)}else j({show:!0,unit_name:e})};return(0,b.jsxs)("div",{children:[(0,b.jsxs)(d.A,{left_children:(0,b.jsx)(h.Z$,{defaultStatus:!1,text:t("系统systemd单元"),clickFun:e=>{X(e),e?((async()=>{E([]),Z([]);const e=await l.Yu.get("systemd/inside/all");if(e.code!==u.m.Success)return;U(new Set(e.data));const t=await l.Yu.get("systemd/allget");if(t.code===u.m.Success){const e=t.data,s=[];for(const t of e??[]){const e=[(0,b.jsx)(r.xP,{context:t.unit}),t.load,`${t.active}(${t.sub})`,(0,b.jsx)(r.xP,{context:t.description})];s.push([...e,(0,b.jsx)(h.rA,{icon:"place",title:"添加",onClick:()=>{Z([...e])}})])}q=s,E(s)}})(),K([])):Z([])}}),children:[I.length>0&&(0,b.jsx)("div",{children:I[1].props.context}),H.length>0&&(0,b.jsx)("div",{children:H[0].props.context}),I.length>0&&(0,b.jsxs)("div",{children:[s(S.oV.systemd_update)&&(0,b.jsx)(h.rA,{icon:"delete",title:"从实时监控删除",onClick:()=>{(async e=>{y({open:!0,handle:async()=>{(await l.Yu.post("systemd/delete",{unit_name:e})).code===u.m.Success&&((0,g.SK)("删除成功"),y({open:!1,handle:null}))}})})(I[1].props.context)}}),(0,b.jsx)(h.rA,{icon:"print",title:"打印日志",onClick:()=>{Q(I[1].props.context)}})]}),H.length>0&&(0,b.jsxs)("div",{children:[s(S.oV.systemd_update)&&(0,b.jsx)(h.rA,{icon:"delete",title:"删除系统上的sytemd",onClick:()=>{(async e=>{y({open:!0,handle:async()=>{(await l.Yu.post("systemd/sys/delete",{unit_name:e})).code===u.m.Success&&((0,g.SK)("删除成功"),y({open:!1,handle:null}))}})})(H[0].props.context)}}),(0,b.jsx)(h.rA,{icon:"print",title:"打印日志",onClick:()=>{Q(H[0].props.context)}}),s(S.oV.systemd_update)&&(0,b.jsx)(h.rA,{icon:"text_fields",title:"sytemd文件内容",onClick:()=>{(async t=>{const s=await l.Yu.post("systemd/get/context",{unit_name:t});s.code===u.m.Success&&(D({model:"text",open:!0,fileName:e.name,save:async e=>{const t={context:e};"/"===s.data.path[0]&&(s.data.path=s.data.path.slice(1)),(await l.$M.post(`save/${s.data.path}`,t)).code===u.m.Success&&(v.xK.set_value_temp(""),D({open:!1,model:"",fileName:"",save:null}))}}),v.xK.set_value_temp(s.data.context))})(H[0].props.context)}}),s(S.oV.systemd_update)&&!B.has(H[0].props.context)&&(0,b.jsx)(h.rA,{icon:"plus_one",title:"添加到管理",onClick:()=>(async e=>{const t=await l.Yu.post("systemd/add",{unit_name:e});t.code===u.m.Success&&(U(new Set(t.data)),(0,g.SK)("添加成功"))})(H[0].props.context)})]})]}),(0,b.jsxs)(c.xh,{children:[N&&(0,b.jsx)(c.fI,{children:(0,b.jsx)(c.VP,{widthPer:80,children:(0,b.jsx)(r.uF,{title:`systemd系统单元(${$.length})`,titleCom:(0,b.jsx)(_.Sm,{placeholder:"过滤单元",value:T,handleInputChange:e=>{G(e)},handlerEnter:()=>{const e=[];if(T){for(const t of q)(t[0].props.context.includes(T)||t[3].props.context.includes(T))&&e.push(t);E(e)}else E(q)}}),children:(0,b.jsx)(f.X,{headers:A,rows:$,width:"10rem"})})})}),0===P.length&&!N&&(0,b.jsx)(V.h,{context:"没有管理的单元 or 加载中请等待..."}),0!==P.length&&!N&&(0,b.jsx)(c.fI,{children:(0,b.jsx)(c.VP,{widthPer:80,children:(0,b.jsx)(r.uF,{title:`filecat监控单元(${P.length})`,titleCom:(0,b.jsx)(_.Sm,{placeholder:"过滤单元",value:O,handleInputChange:e=>{W(e)}}),children:(0,b.jsx)(f.X,{headers:k,rows:P,width:"10rem"})})})})]}),(0,b.jsx)(R,{})]})}var Q=s(87361);function J(e){const{t}=(0,x.Bd)(),[s,n]=(0,p.fp)(m.AG.user_base_info),r=[{index:1,name:t("系统性能"),rto:"sys/",component:(0,b.jsx)(M,{})},{index:2,name:t("系统进程"),rto:"process/",component:(0,b.jsx)(U,{})},{index:3,name:t("docker容器"),rto:"docker/",component:(0,b.jsx)(T,{})}];return s.sys===S.XM.linux&&r.push({index:4,name:t("systemd"),rto:"systemd/",component:(0,b.jsx)(D,{})}),(0,b.jsx)(c.W1,{optionList:r,father_route:Q.o.info})}},46447(e,t,s){function n(e){return e+.5|0}s.d(t,{Q1:()=>I});const c=(e,t,s)=>Math.max(Math.min(e,s),t);function r(e){return c(n(2.55*e),0,255)}function i(e){return c(n(255*e),0,255)}function o(e){return c(n(e/2.55)/100,0,1)}function a(e){return c(n(100*e),0,100)}const l={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},d=[..."0123456789ABCDEF"],h=e=>d[15&e],f=e=>d[(240&e)>>4]+d[15&e],u=e=>(240&e)>>4==(15&e);function x(e){var t=(e=>u(e.r)&&u(e.g)&&u(e.b)&&u(e.a))(e)?h:f;return e?"#"+t(e.r)+t(e.g)+t(e.b)+((e,t)=>e<255?t(e):"")(e.a,t):void 0}const p=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function m(e,t,s){const n=t*Math.min(s,1-s),c=(t,c=(t+e/30)%12)=>s-n*Math.max(Math.min(c-3,9-c,1),-1);return[c(0),c(8),c(4)]}function j(e,t,s){const n=(n,c=(n+e/60)%6)=>s-s*t*Math.max(Math.min(c,4-c,1),0);return[n(5),n(3),n(1)]}function g(e,t,s){const n=m(e,1,.5);let c;for(t+s>1&&(c=1/(t+s),t*=c,s*=c),c=0;c<3;c++)n[c]*=1-t-s,n[c]+=t;return n}function _(e){const t=e.r/255,s=e.g/255,n=e.b/255,c=Math.max(t,s,n),r=Math.min(t,s,n),i=(c+r)/2;let o,a,l;return c!==r&&(l=c-r,a=i>.5?l/(2-c-r):l/(c+r),o=function(e,t,s,n,c){return e===c?(t-s)/n+(t<s?6:0):t===c?(s-e)/n+2:(e-t)/n+4}(t,s,n,l,c),o=60*o+.5),[0|o,a||0,i]}function b(e,t,s,n){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,s,n)).map(i)}function w(e,t,s){return b(m,e,t,s)}function y(e){return(e%360+360)%360}function k(e){const t=p.exec(e);let s,n=255;if(!t)return;t[5]!==s&&(n=t[6]?r(+t[5]):i(+t[5]));const c=y(+t[2]),o=+t[3]/100,a=+t[4]/100;return s="hwb"===t[1]?function(e,t,s){return b(g,e,t,s)}(c,o,a):"hsv"===t[1]?function(e,t,s){return b(j,e,t,s)}(c,o,a):w(c,o,a),{r:s[0],g:s[1],b:s[2],a:n}}const v={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},S={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let Y;function A(e){Y||(Y=function(){const e={},t=Object.keys(S),s=Object.keys(v);let n,c,r,i,o;for(n=0;n<t.length;n++){for(i=o=t[n],c=0;c<s.length;c++)r=s[c],o=o.replace(r,v[r]);r=parseInt(S[i],16),e[o]=[r>>16&255,r>>8&255,255&r]}return e}(),Y.transparent=[0,0,0,0]);const t=Y[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}const C=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const F=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,P=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function M(e,t,s){if(e){let n=_(e);n[t]=Math.max(0,Math.min(n[t]+n[t]*s,0===t?360:1)),n=w(n),e.r=n[0],e.g=n[1],e.b=n[2]}}function V(e,t){return e?Object.assign(t||{},e):e}function $(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=i(e[3]))):(t=V(e,{r:0,g:0,b:0,a:1})).a=i(t.a),t}function E(e){return"r"===e.charAt(0)?function(e){const t=C.exec(e);let s,n,i,o=255;if(t){if(t[7]!==s){const e=+t[7];o=t[8]?r(e):c(255*e,0,255)}return s=+t[1],n=+t[3],i=+t[5],s=255&(t[2]?r(s):c(s,0,255)),n=255&(t[4]?r(n):c(n,0,255)),i=255&(t[6]?r(i):c(i,0,255)),{r:s,g:n,b:i,a:o}}}(e):k(e)}class I{constructor(e){if(e instanceof I)return e;const t=typeof e;let s;var n,c,r;"object"===t?s=$(e):"string"===t&&(r=(n=e).length,"#"===n[0]&&(4===r||5===r?c={r:255&17*l[n[1]],g:255&17*l[n[2]],b:255&17*l[n[3]],a:5===r?17*l[n[4]]:255}:7!==r&&9!==r||(c={r:l[n[1]]<<4|l[n[2]],g:l[n[3]]<<4|l[n[4]],b:l[n[5]]<<4|l[n[6]],a:9===r?l[n[7]]<<4|l[n[8]]:255})),s=c||A(e)||E(e)),this._rgb=s,this._valid=!!s}get valid(){return this._valid}get rgb(){var e=V(this._rgb);return e&&(e.a=o(e.a)),e}set rgb(e){this._rgb=$(e)}rgbString(){return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${o(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0;var e}hexString(){return this._valid?x(this._rgb):void 0}hslString(){return this._valid?function(e){if(!e)return;const t=_(e),s=t[0],n=a(t[1]),c=a(t[2]);return e.a<255?`hsla(${s}, ${n}%, ${c}%, ${o(e.a)})`:`hsl(${s}, ${n}%, ${c}%)`}(this._rgb):void 0}mix(e,t){if(e){const s=this.rgb,n=e.rgb;let c;const r=t===c?.5:t,i=2*r-1,o=s.a-n.a,a=((i*o===-1?i:(i+o)/(1+i*o))+1)/2;c=1-a,s.r=255&a*s.r+c*n.r+.5,s.g=255&a*s.g+c*n.g+.5,s.b=255&a*s.b+c*n.b+.5,s.a=r*s.a+(1-r)*n.a,this.rgb=s}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,s){const n=P(o(e.r)),c=P(o(e.g)),r=P(o(e.b));return{r:i(F(n+s*(P(o(t.r))-n))),g:i(F(c+s*(P(o(t.g))-c))),b:i(F(r+s*(P(o(t.b))-r))),a:e.a+s*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new I(this.rgb)}alpha(e){return this._rgb.a=i(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=n(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return M(this._rgb,2,e),this}darken(e){return M(this._rgb,2,-e),this}saturate(e){return M(this._rgb,1,e),this}desaturate(e){return M(this._rgb,1,-e),this}rotate(e){return function(e,t){var s=_(e);s[0]=y(s[0]+t),s=w(s),e.r=s[0],e.g=s[1],e.b=s[2]}(this._rgb,e),this}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[2542],{72542(e,t,n){n.r(t);var s=n(1728),c=n(96540),a=n(34843),l=n(63033),i=n(85997),o=n(52671),u=n(14284),d=(n(23430),n(26417)),r=n(75725),f=n(59270),h=n(7523),p=n(62042),_=n(21469),m=n(74848);_.m.init();const x=function(){const e=(0,o.Zp)(),[t,n]=(0,c.useState)(""),[x,w]=(0,c.useState)(""),{initUserInfo:k}=(0,c.useContext)(h.F),[g,j]=(0,a.fp)(d.AG.custom_fun_opt),{t:C}=(0,f.Bd)();async function I(){const n={username:t,password:x},s=await u.wm.post("login",n,!1);0===s.code?(localStorage.setItem("token",s.data),k(),j(""),e("/file")):(0,p.zN)(s.message)}return(0,c.useEffect)(()=>{localStorage.getItem("token")&&e("/file")},[]),(0,m.jsxs)(r.Y5,{children:[(0,m.jsx)("h1",{children:_.m.web_site_title??"FileCat"}),(0,m.jsxs)("div",{className:"self_win_center_content",children:[(0,m.jsx)(l.Sm,{placeholder:C("账号"),handleInputChange:e=>{n(e)}}),(0,m.jsx)(l.cA,{placeholder:C("密码"),handleInputChange:e=>{w(e)},handleEnterPress:I}),(0,m.jsx)(i.$n,{text:C("登录"),clickFun:I}),s.A.has("tcp_client_num_id")&&(0,m.jsx)(i.$n,{text:C("代理退出"),clickFun:()=>{s.A.delete("tcp_client_num_id"),window.location.reload()}})]})]})};n.d(t,["default",0,x])}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[2851],{75897(e,t,s){s.d(t,{L:()=>a});let n=function(e){return e.username="username",e.password="password",e.password_hash="password_hash",e.navindex_remote_ssh_key="navindex_remote_ssh_key",e.user_id_name_mapping="user_id_name_mapping",e.user_id_info_data_mapping="user_id_info_data_mapping",e.user_unique_id_num="user_unique_id_num",e.role_unique_id_num="role_unique_id_num",e.sys_all_roles="sys_all_roles",e.ddns_http_url_key="ddns_http_url_key",e.ddns_tx_key="tengxun_ddns_key",e.ddns_dnspod_key="ddns_dnspod",e.ddns_ali_key="ali_ddns_key",e.navindex_net_key_list="navindex_net_key_list",e.navindex_wol_key="navindex_wol_key",e.customer_router_key="customer_router_key",e.customer_workflow_router_key="customer_workflow_router_key",e.customer_api_router_key="customer_api_router_key",e.token_setting="token_setting",e.sys_software="sys_software",e.protection_directory="sys_protection_directory",e.dir_upload_max_num="dir_upload_max_num",e.self_auth_jscode="self_auth_jscode",e.navindex_video_key="navindex_video_tag_key",e.systemd_key="systemd_key",e.vir_server_data_key="vir_server_net_data_key",e.vir_client_data_key="vir_client_net_data_key",e.vir_data_client_hash_key="vir_data_client_hash_key",e.vir_data_server_hash_key="vir_data_server_hash_key",e.language="user_language",e.navindex_rdp_key="navindex_rdp_tag_key",e.navindex_key="navindex_key_list",e.http_tag_key="http_tag_key",e.self_shell_cmd_check_open_status="self_shell_cmd_check_open_status",e.self_shell_cmd_jscode="self_shell_cmd_jscode",e.extra_env_path_list_key="extra_env_path_list_key",e.cmd_use_pty_key="cmd_use_pty_key",e.recycle_bin_key="recycle_bin_key",e.recycle_bin_status="recycle_bin_status",e.guid_key="guid_key",e.tcp_proxy_key="tcp_proxy_key",e.sys_env_key="sys_env_key",e.http_server_key="http_server_key",e.proxy_server_code_prefix="proxy_server_code_prefix",e.ai_agent_model_setting="ai_agent_model_setting",e.ai_agent_mcp_setting="ai_agent_mcp_setting",e.ai_agent_docs_setting="ai_agent_docs_setting",e.ai_agent_chat_session_store="ai_agent_chat_session_store",e.share_file_list_key="share_file_list_key",e.share_file_list_key_download_statics="share_file_list_key_download_statics",e.tcp_proxy_server_base="tcp_proxy_server_base",e.tcp_proxy_server_client_list="tcp_proxy_server_client_list",e.tcp_proxy_client_fig="tcp_proxy_client_fig",e.tcp_proxy_client_all_fig="tcp_proxy_client_all_fig",e.tcp_proxy_sync_task_list="tcp_proxy_sync_task_list",e.workflow_setting_item_list="workflow_setting_item_list",e.server_bridge_config_list="server_bridge_config_list",e.ai_agent_status="ai_agent_status",e.ai_system_prompts="ai_system_prompts",e.filecat_plugin_list="filecat_plugin_list",e.https_setting="https_setting",e.ai_rebot_setting="ai_rebot_setting",e}({});const a=n.self_auth_jscode},8694(e,t,s){s.d(t,{$K:()=>o,RB:()=>c,l5:()=>l,qB:()=>n,vo:()=>r,vr:()=>i});class n{targetProxyUrl;proxyPort;sysProxyPort}let a=function(e){return e[e.tcp=0]="tcp",e[e.udp=1]="udp",e}({});class o{open=!1;port;key="";async_ips=[]}class r{client_num_id;client_name;open=!1;ip;mask;serverIp;serverPort;key="";model=a.udp}let c=function(e){return e[e.row=1]="row",e[e.json=2]="json",e[e.form=3]="form",e}({});class i{body_type;header_type;url;method;headers;data;form_data_list;local_download_path}class l{enabled;ip;port;bypass;useForLocal;type}},77481(e,t,s){s.d(t,{S:()=>r,X:()=>o});var n=s(96540),a=s(74848);function o(e){const[t,s]=n.useState([]);return(0,n.useEffect)(()=>{e.children?s(Array.isArray(e.children)?e.children:[e.children]):s(e.rows)},[e.rows,e.children]),(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsx)("tr",{children:e.headers?.map((e,t)=>(0,a.jsx)("th",{children:e},t))})}),(0,a.jsx)("tbody",{children:t.map((t,s)=>(0,a.jsx)("tr",{onContextMenu:()=>{e.handleContextMenu&&e.handleContextMenu(t)},children:t.map((s,n)=>(0,a.jsx)("td",{style:{width:e.width??"auto"},className:n===t.length-1?"small":"",children:s},n))},s))})]})}function r(e){return(0,a.jsx)("div",{style:{display:e.isFlex?"flex":"block"},children:e.columns.map((e,t)=>(0,a.jsx)("div",{children:e},t))})}},42851(e,t,s){s.r(t),s.d(t,{default:()=>K});var n=s(96540),a=s(75725),o=s(14284),r=s(62042),c=s(53459),i=s(70447),l=s(63033),d=s(85997),_=s(77481),p=s(8694),h=s(14944),u=s(92275),x=s(59270),y=s(57952),m=s(74848);function v(e){const{t}=(0,x.Bd)(),[s,v]=(0,n.useState)(void 0),[j,g]=(0,n.useState)(!1),[k,f]=(0,n.useState)(""),[S,w]=(0,n.useState)([t(`${t("名称")}`),t(`${t("虚拟")}ip`),`${t("物理")}信息`,t("在线状态"),t("选择")]),[C,b]=(0,n.useState)([]),[I,A]=(0,n.useState)({}),[U,P]=(0,n.useState)(!1);(0,n.useEffect)(()=>{(async()=>{const e=new u.hf(u.HK.vir_net_serverIno_get);h.ws.addMsg(u.HK.vir_net_serverIno_get,e=>{(e=>{for(const s of e){const e=s[s.length-1];s[s.length-1]=(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(i.fq,{ok:e}),t(e?"在线":"离线")]}),s[0]=(0,m.jsx)(i.xP,{context:s[0],tip_context:s[0]}),s[2]=(0,m.jsx)(i.xP,{context:s[2],tip_context:s[2]})}})(e.context),b(e.context)}),await h.ws.send(e)})();return(async()=>{const e=await o._U.get("vir/server/get");if(e.code!==c.m.Success)return;const t=e.data;v(t.port),f(t.key),g(t.open)})(),()=>{}},[]);return(0,m.jsxs)("div",{children:[(0,m.jsxs)(y.A,{children:[!!Object.keys(I).length&&I[0],!!Object.keys(I).length&&(0,m.jsx)(d.rA,{icon:"delete",title:"删除",onClick:async()=>{await o._U.post("vir/server/delete/client",{ips:Object.keys(I)}),A({})}})]}),(0,m.jsx)(a.fI,{children:(0,m.jsxs)(a.VP,{children:[(0,m.jsxs)(i.Zp,{title:"",rightBottomCom:(0,m.jsx)(d.C3,{text:t("保存"),clickFun:async()=>{const e=new p.$K;e.open=j,e.key=k,U&&(e.async_ips=Object.keys(I)),s&&(e.port=parseInt(s));(await o._U.post("vir/server/save",e)).code===c.m.Success?((0,r.SK)("保存成功"),P(!1)):(0,r.zN)("网络错误")}}),children:[(0,m.jsx)(l.Sm,{placeholder:"port",value:s,handleInputChange:e=>{v(e)}}),(0,m.jsx)(l.Sm,{type:"password",placeholder:"key ",value:k,handleInputChange:e=>{f(e)}}),(0,m.jsxs)("form",{children:[t("状态"),":",(0,m.jsx)(_.S,{isFlex:!0,columns:[(0,m.jsx)(l.U6,{value:1,context:t("开启"),selected:j,onchange:()=>{g(!j)}}),(0,m.jsx)(l.U6,{value:1,context:t("关闭"),selected:!j,onchange:()=>{g(!j)}})]})]}),!!Object.keys(I).length&&(0,m.jsx)(l.GL,{context:t("同步信息给选中服务器"),selected:U,onchange:()=>{P(!U)}})]}),(0,m.jsx)(i.Zp,{title:"",children:(0,m.jsx)(_.X,{headers:S,rows:C.map(e=>[...e,(0,m.jsx)(l.GL,{context:t(""),selected:I[e[1]],onchange:()=>{const t={...I};t[e[1]]?delete t[e[1]]:t[e[1]]=e,A(t)}})]),width:"10rem"})})]})})]})}function j(e){const{t}=(0,x.Bd)(),[s,y]=(0,n.useState)(""),[v,j]=(0,n.useState)(void 0),[g,k]=(0,n.useState)(""),[f,S]=(0,n.useState)(""),[w,C]=(0,n.useState)(void 0),[b,I]=(0,n.useState)(!1),[A,U]=(0,n.useState)(""),[P,F]=(0,n.useState)(!1);(0,n.useEffect)(()=>{(async()=>{const e=await o._U.get("vir/client/get");if(e.code!==c.m.Success)return;const t=e.data;if(C(t.serverPort),k(t.serverIp),y(t.ip),j(t.mask),U(t.key),I(t.open),S(t.client_name),t.open){const e=new u.hf(u.HK.vir_net_client_get),t=(await h.ws.send(e)).context.state;F(t),h.ws.addMsg(u.HK.vir_net_client_get,e=>{F(e.context.state)})}})()},[]);return(0,m.jsx)("div",{children:(0,m.jsx)(a.fI,{children:(0,m.jsxs)(a.VP,{children:[(0,m.jsxs)(i.Zp,{title:"",rightBottomCom:(0,m.jsx)(d.C3,{text:t("保存"),clickFun:async()=>{const e=new p.vo;e.ip=s,e.mask=parseInt(v),e.key=A,e.serverIp=g,e.serverPort=parseInt(w),e.open=b,e.client_name=f;(await o._U.post("vir/client/save",e)).code===c.m.Success?(0,r.SK)("保存成功"):(0,r.zN)("网络错误")}}),titleCom:(0,m.jsxs)("div",{children:[t("连接状态"),(0,m.jsx)(i.fq,{ok:P})]}),children:[(0,m.jsx)(l.Sm,{placeholder:"ip ",value:s,handleInputChange:e=>{y(e)}}),(0,m.jsx)(l.Sm,{placeholder:"mask",value:v,handleInputChange:e=>{j(e)}}),(0,m.jsx)(l.Sm,{placeholder:`${t("服务器")} ip`,value:g,handleInputChange:e=>{k(e)}}),(0,m.jsx)(l.Sm,{placeholder:`${t("服务器")} part`,value:w,handleInputChange:e=>{C(e)}}),(0,m.jsx)(l.Sm,{placeholder:"名称 ",value:f,handleInputChange:e=>{S(e)}}),(0,m.jsx)(l.Sm,{type:"password",placeholder:"key ",value:A,handleInputChange:e=>{U(e)}}),(0,m.jsxs)("form",{children:[t("状态"),(0,m.jsx)(_.S,{isFlex:!0,columns:[(0,m.jsx)(l.U6,{value:1,context:t("开启"),selected:b,onchange:()=>{I(!b)}}),(0,m.jsx)(l.U6,{value:1,context:t("关闭"),selected:!b,onchange:()=>{I(!b)}})]})]})]}),(0,m.jsxs)(i.Zp,{title:"",children:[(0,m.jsx)("div",{children:"ip: 虚拟ip, “10.0.0.0 - 10.255.255.255”和“172.16.0.0 - 172.31.255.255”和“192.168.0.0 - 192.168.255.255”这三个网段属于内网ip"}),(0,m.jsx)("div",{children:"mask: 一些常见的子网掩码网段/8:255.0.0.0;/16:255.255.0.0 ;/24:255.255.255.0"}),(0,m.jsx)("div",{children:"key:用于验证身份信息并加密的和服务器设置的一样"})]})]})})})}var g=s(34843),k=s(26417),f=s(23430),S=(s(75897),s(78247)),w=s(21499),C=s(24659);function b(e){const{t}=(0,x.Bd)(),[s,h]=(0,n.useState)(""),[u,y]=(0,n.useState)(""),[v,j]=(0,n.useState)(""),[b,I]=(0,n.useState)(!1),[A,U]=(0,n.useState)(!1),[P,F]=(0,n.useState)({port:0,open:!1,list:[]}),[K,H]=(0,g.fp)(k.AG.editorSetting),[$,B]=(0,g.fp)(k.AG.user_base_info),O=[t("端口"),t("目标地址"),t("目标端口"),t("开启"),t("备注"),t("删除")],[N,Z]=(0,n.useState)([]),z=[t("port"),t("ip"),t("type"),t("开启")],[E,V]=(0,n.useState)([]),M=[t("编辑"),t("开启"),t("备注"),t("删除")],L=(0,C.K)(),X=async()=>{const e=[o._U.post("vir/client/tcp_proxy/get"),o._U.post("http/proxy/server/get")];let t;$.sys===f.XM.mac?t=(async()=>{const e=await o._U.post("http/proxy/get/mac");if(e.code!==c.m.Success)return;const t=[],s=[];for(const n of e.data)"Wi-Fi"===n.name?t.push(n):s.push(n);V([...t,...s])})():$.sys===f.XM.win&&(t=(async()=>{const e=await o._U.post("http/proxy/get/win");if(e.code===c.m.Success){const t=e.data;h(t.ip),y(t.port),I(t.enabled),j(t.bypass),U(t.useForLocal)}})()),t&&e.push(t);const[s,n]=await Promise.all(e);s.code===c.m.Success&&Z(s.data),n.code===c.m.Success&&F(n.data)};(0,n.useEffect)(()=>{X()},[]);const G=async()=>{(await o._U.post("http/proxy/server/save",P)).code===c.m.Success&&(X(),(0,r.SK)("保存成功"))};return(0,m.jsx)("div",{children:(0,m.jsxs)(a.fI,{children:[$.sys===f.XM.win&&(0,m.jsx)(a.VP,{children:(0,m.jsxs)(i.Zp,{title:"Http Proxy",rightBottomCom:(0,m.jsx)(d.C3,{text:t("保存"),clickFun:async()=>{const e=new p.l5;e.port=parseInt(u),e.enabled=b,e.useForLocal=A,e.ip=s,e.bypass=v;(await o._U.post("http/proxy/set/win",e)).code===c.m.Success&&(X(),(0,r.SK)("保存成功"))}}),children:[(0,m.jsx)(l.Sm,{placeholder:"ip (default localhost) ",value:s,handleInputChange:e=>{h(e)}}),(0,m.jsx)(l.Sm,{placeholder:"port ",value:u,handleInputChange:e=>{y(e)}}),(0,m.jsx)(l.Sm,{placeholder:t("忽略ip"),value:v,handleInputChange:e=>{j(e)}}),(0,m.jsxs)("form",{children:[t("请勿将代理服务器用于本地(Intranet)地址"),(0,m.jsx)(_.S,{isFlex:!0,columns:[(0,m.jsx)(l.U6,{value:1,context:t("开启"),selected:A,onchange:()=>{U(!A)}}),(0,m.jsx)(l.U6,{value:1,context:t("关闭"),selected:!A,onchange:()=>{U(!A)}})]})]}),(0,m.jsxs)("form",{children:[t("状态"),(0,m.jsx)(_.S,{isFlex:!0,columns:[(0,m.jsx)(l.U6,{value:1,context:t("开启"),selected:b,onchange:()=>{I(!b)}}),(0,m.jsx)(l.U6,{value:1,context:t("关闭"),selected:!b,onchange:()=>{I(!b)}})]})]})]})}),$.sys===f.XM.mac&&(0,m.jsx)(a.VP,{children:E.map((e,s)=>(0,m.jsxs)(i.uF,{self_title:(0,m.jsxs)("span",{className:" div-row ",children:[(0,m.jsx)("h2",{children:e.name})," "]}),titleCom:(0,m.jsx)("div",{children:(0,m.jsx)(d.rA,{icon:"save",title:t("保存"),onClick:()=>{(async e=>{const t=E[e];(await o._U.post("http/proxy/set/mac",[t])).code===c.m.Success&&(X(),(0,r.SK)("保存成功"))})(s)}})}),children:[(0,m.jsx)(_.X,{headers:z,rows:e.proxies.map((e,t)=>{const n=[(0,m.jsx)(l.Sm,{value:e.port,handleInputChange:t=>{e.port=parseInt(t)},no_border:!0}),(0,m.jsx)(l.Sm,{value:e.ip,handleInputChange:t=>{e.ip=t},no_border:!0}),(0,m.jsx)("div",{children:1===e.type?"http":"https"}),(0,m.jsx)(l.l6,{value:e.enabled,onChange:e=>{((e,t,s)=>{const n=[...E];n[e].proxies[t].enabled=s,V(n)})(s,t,e)},options:L,no_border:!0})];return n}),width:"10rem"}),"ignore ips",(0,m.jsx)(l.Sm,{value:e.bypass,handleInputChange:e=>{E[s].bypass=e},no_border:!0})]},s))}),(0,m.jsxs)(a.VP,{children:[(0,m.jsx)(i.uF,{self_title:(0,m.jsxs)("span",{className:" div-row ",children:[(0,m.jsx)("h2",{children:t("Tcp Proxy")})," "]}),titleCom:(0,m.jsxs)("div",{children:[(0,m.jsx)(d.rA,{icon:"add",title:t("添加"),onClick:()=>{Z([...N,{note:"",open:!1,port:0,target_port:0,target_ip:""}])}}),(0,m.jsx)(d.rA,{icon:"save",title:t("保存"),onClick:async()=>{const e=[];for(let t=0;t<N.length;t++)N[t].index=t,e.push(N[t]);(await o._U.post("vir/client/tcp_proxy/save",e)).code===c.m.Success&&((0,r.SK)("保存成功"),X())}})]}),children:(0,m.jsx)(_.X,{headers:O,rows:N.map((e,s)=>{const n=[(0,m.jsx)(l.Sm,{value:e.port,handleInputChange:t=>{e.port=parseInt(t)},no_border:!0}),(0,m.jsx)(l.Sm,{value:e.target_ip,handleInputChange:t=>{e.target_ip=t},no_border:!0}),(0,m.jsx)(l.Sm,{value:e.target_port,handleInputChange:t=>{e.target_port=parseInt(t)},no_border:!0}),(0,m.jsx)(l.l6,{value:e.open,onChange:e=>{N[s].open=e,Z([...N])},options:L,no_border:!0}),(0,m.jsx)(l.Sm,{value:e.note,handleInputChange:t=>{e.note=t},no_border:!0}),(0,m.jsx)("div",{children:(0,m.jsx)(d.rA,{icon:"delete",title:t("删除"),onClick:()=>(e=>{N.splice(e,1),Z([...N])})(s)})})];return n}),width:"10rem"})}),(0,m.jsxs)(i.uF,{self_title:(0,m.jsxs)("span",{className:" div-row ",children:[(0,m.jsx)("h2",{children:t("Http Proxy Server")})," "]}),titleCom:(0,m.jsxs)("div",{children:[(0,m.jsx)(d.rA,{icon:"add",title:t("添加"),onClick:()=>{P.list.push({note:"",open:!1}),F({...P})}}),(0,m.jsx)(d.rA,{icon:"save",title:t("保存"),onClick:G})]}),children:[(0,m.jsx)(_.X,{headers:M,rows:P.list.map((e,s)=>[(0,m.jsx)("div",{children:(0,m.jsx)(d.rA,{icon:"edit",title:t("编辑"),onClick:()=>{(async e=>{P.list[e].random_key||(P.list[e].random_key=(0,w.hU)(),F({...P}),await G());const t=await o._U.post("http/proxy/server/code/get",{key:P.list[e].random_key});H({model:"ace/mode/javascript",open:!0,fileName:"",can_format:!0,save:async t=>{0===(await o._U.post("http/proxy/server/code/save",{context:t,key:P.list[e].random_key})).code&&(S.xK.set_value_temp(""),H({open:!1,model:"",fileName:"",save:null}))}}),S.xK.set_value_temp(t.data)})(s)}})}),(0,m.jsx)(l.l6,{value:e.open,onChange:e=>{P.list[s].open=e,F({...P})},options:L,no_border:!0}),(0,m.jsx)(l.Sm,{value:e.note,handleInputChange:t=>{e.note=t},no_border:!0}),(0,m.jsx)("div",{children:(0,m.jsx)(d.rA,{icon:"delete",title:t("删除"),onClick:()=>{P.list.splice(s,1),F({...P})}})})]),width:"10rem"}),(0,m.jsxs)("form",{children:[t("状态"),(0,m.jsx)(_.S,{isFlex:!0,columns:[(0,m.jsx)(l.U6,{value:1,context:t("开启"),selected:P.open,onchange:()=>{F({...P,open:!P.open})}}),(0,m.jsx)(l.U6,{value:1,context:t("关闭"),selected:!P.open,onchange:()=>{F({...P,open:!P.open})}})]})]}),"port",(0,m.jsx)(l.Sm,{value:P.port,handleInputChange:e=>{P.port=e?parseInt(e):"",F({...P})},no_border:!0})]})]})]})})}var I=s(87361),A=s(82726),U=s(27690);function P(e){const{t}=(0,x.Bd)(),[s,p]=(0,n.useState)([]),[h,u]=(0,n.useState)([]),[v,j]=(0,n.useState)(""),[f,S]=(0,n.useState)(""),[w,C]=(0,n.useState)(!1),[b,I]=(0,g.fp)(k.AG.showPrompt),[P,F]=(0,g.fp)(k.AG.confirm);(0,n.useEffect)(()=>{(async()=>{const e=await o.ez.get("ips/dnspod");if(e.code!==c.m.Success)return;const t=e.data,s=[],n=[];for(const e of t.ips)e.isIPv4?s.push(e):n.push(e);p(s),u(n),t.account&&(j(t.account.id),S(t.account.token)),C(t.isOpen)})()},[]);const K=async e=>{F({open:!0,handle:async()=>{0===(await o.ez.post("http/del",e)).code&&(0,r.SK)("删除成功,稍后请刷新"),F({open:!1,handle:null})},title:t("确定删除吗")})};return(0,m.jsxs)("div",{children:[(0,m.jsx)(y.A,{children:(0,m.jsx)(d.rA,{icon:"add",title:t("添加http获取ip"),onClick:()=>{I({show:!0,type:U.PromptEnum.DdnsAddHttp,overlay:!0,data:{}})}})}),(0,m.jsxs)(a.fI,{children:[(0,m.jsxs)(a.VP,{children:[(0,m.jsx)(i.Zp,{title:"ipv4",children:s.length>0&&s.map((e,s)=>(0,m.jsxs)("div",{children:[`${e.ifaceOrWww}(${e.ip})`,(0,m.jsx)(l.Sm,{right_placeholder:(0,m.jsx)("div",{children:e.source_type===A.tC.http_get&&(0,m.jsx)(d.rA,{icon:"delete",title:t("删除"),onClick:()=>{K(e)}})}),placeholder:"a.abc.com b.abc.com ...",value:e.ddnsHost,handleInputChange:t=>{e.ddnsHost=t}})]},s))}),(0,m.jsx)(i.Zp,{title:"ipv6",children:h.length>0&&h.map((e,s)=>(0,m.jsxs)("div",{children:[`${e.ifaceOrWww}(${e.ip})`,(0,m.jsx)(l.Sm,{right_placeholder:(0,m.jsx)("div",{children:e.source_type===A.tC.http_get&&(0,m.jsx)(d.rA,{icon:"delete",title:t("删除"),onClick:()=>{K(e)}})}),placeholder:"a.abc.com b.abc.com ...",value:e.ddnsHost,handleInputChange:t=>{e.ddnsHost=t}})]},s))})]}),(0,m.jsxs)(a.VP,{children:[(0,m.jsxs)(i.Zp,{title:t("账号设置"),rightBottomCom:(0,m.jsx)(d.C3,{text:t("保存"),clickFun:async()=>{if(w&&(!v||!f))return void(0,r.zN)("id和token都不能为空");const e=new A.yL,t=[];for(const e of[...s,...h])e.ddnsHost&&t.push(e);e.ips=t,e.account={id:v,token:f},e.isOpen=w,e.ddnsType=A.E2.dnspod;(await o.ez.post("save",e)).code===c.m.DdnsAuthFail?(0,r.zN)("鉴权失败"):(0,r.SK)("success")}}),children:[(0,m.jsx)(l.Sm,{placeholder:"ID",value:v,handleInputChange:e=>{j(e)}}),(0,m.jsx)(l.cA,{placeholder:"TOKEN",value:f,handleInputChange:e=>{S(e)}}),(0,m.jsx)(_.S,{isFlex:!0,columns:[(0,m.jsx)(l.U6,{value:1,context:t("开启"),selected:w,onchange:()=>{C(!w)}}),(0,m.jsx)(l.U6,{value:1,context:t("关闭"),selected:!w,onchange:()=>{C(!w)}})]})]}),(0,m.jsx)(i.Zp,{title:t("说明"),children:"域名如果不存在会自动创建,空子域名是@,ip6和ipv4可以互相切换。"})]})]})]})}function F(e){const{t}=(0,x.Bd)(),[s,p]=(0,n.useState)([]),[h,u]=(0,n.useState)([]),[v,j]=(0,n.useState)(""),[f,S]=(0,n.useState)(""),[w,C]=(0,n.useState)(!1),[b,I]=(0,g.fp)(k.AG.showPrompt),[P,F]=(0,g.fp)(k.AG.confirm);(0,n.useEffect)(()=>{(async()=>{const e=await o.ez.get("ips/tx");if(e.code!==c.m.Success)return;const t=e.data,s=[],n=[];for(const e of t.ips)e.isIPv4?s.push(e):n.push(e);p(s),u(n),t.account&&(j(t.account.secretid),S(t.account.secretkey)),C(t.isOpen)})()},[]);const K=async e=>{F({open:!0,handle:async()=>{0===(await o.ez.post("http/del",e)).code&&(0,r.SK)("删除成功,稍后请刷新"),F({open:!1,handle:null})},title:t("确定删除吗")})};return(0,m.jsxs)("div",{children:[(0,m.jsx)(y.A,{children:(0,m.jsx)(d.rA,{icon:"add",title:t("添加http获取ip"),onClick:()=>{I({show:!0,type:U.PromptEnum.DdnsAddHttp,overlay:!0,data:{}})}})}),(0,m.jsxs)(a.fI,{children:[(0,m.jsxs)(a.VP,{children:[(0,m.jsx)(i.Zp,{title:"ipv4",children:s.length>0&&s.map((e,s)=>(0,m.jsxs)("div",{children:[`${e.ifaceOrWww}(${e.ip})`,(0,m.jsx)(l.Sm,{right_placeholder:(0,m.jsx)("div",{children:e.source_type===A.tC.http_get&&(0,m.jsx)(d.rA,{icon:"delete",title:t("删除"),onClick:()=>{K(e)}})}),placeholder:"a.abc.com b.abc.com ...",value:e.ddnsHost,handleInputChange:t=>{e.ddnsHost=t}})]},s))}),(0,m.jsx)(i.Zp,{title:"ipv6",children:h.length>0&&h.map((e,s)=>(0,m.jsxs)("div",{children:[`${e.ifaceOrWww}(${e.ip})`,(0,m.jsx)(l.Sm,{right_placeholder:(0,m.jsx)("div",{children:e.source_type===A.tC.http_get&&(0,m.jsx)(d.rA,{icon:"delete",title:t("删除"),onClick:()=>{K(e)}})}),placeholder:"a.abc.com b.abc.com ...",value:e.ddnsHost,handleInputChange:t=>{e.ddnsHost=t}})]},s))})]}),(0,m.jsxs)(a.VP,{children:[(0,m.jsxs)(i.Zp,{title:t("账号设置"),rightBottomCom:(0,m.jsx)(d.C3,{text:t("保存"),clickFun:async()=>{if(w&&(!v||!f))return void(0,r.zN)("SecretId和SecretKey都不能为空");const e=new A.yL,t=[];for(const e of[...s,...h])e.ddnsHost&&t.push(e);e.ips=t,e.account={secretid:v,secretkey:f},e.isOpen=w,e.ddnsType=A.E2.tengxun;(await o.ez.post("save",e)).code===c.m.DdnsAuthFail?(0,r.zN)("鉴权失败"):(0,r.SK)("成功")}}),children:[(0,m.jsx)(l.Sm,{placeholder:"SecretId",value:v,handleInputChange:e=>{j(e)}}),(0,m.jsx)(l.cA,{placeholder:"SecretKey",value:f,handleInputChange:e=>{S(e)}}),(0,m.jsx)(_.S,{isFlex:!0,columns:[(0,m.jsx)(l.U6,{value:1,context:t("开启"),selected:w,onchange:()=>{C(!w)}}),(0,m.jsx)(l.U6,{value:1,context:t("关闭"),selected:!w,onchange:()=>{C(!w)}})]})]}),(0,m.jsx)(i.Zp,{title:t("说明"),children:"域名如果不存在会自动创建,空子域名是@,ip6和ipv4可以互相切换。"})]})]})]})}function K(){const{t:e}=(0,x.Bd)(),{check_user_auth:t}=(0,S.MH)(),s=[];return t(f.oV.vir_net)&&s.push({index:1,name:e("系统")+e("代理"),rto:"proxy_sys/",component:(0,m.jsx)(b,{})},{index:2,name:"Tun proxy "+e("客户端"),rto:"client/",component:(0,m.jsx)(j,{})},{index:3,name:"Tun proxy "+e("服务端"),rto:"server/",component:(0,m.jsx)(v,{})}),t(f.oV.ddns)&&s.push({index:4,name:`ddns-dnspod(${e("腾讯")})`,rto:"dnspod/",component:(0,m.jsx)(P,{})},{index:5,name:`ddns-${e("腾讯")}${e("云")}`,rto:"tengxun/",component:(0,m.jsx)(F,{})}),(0,m.jsx)(a.W1,{optionList:s,father_route:I.o.net})}},24659(e,t,s){var n=s(59270);s.d(t,["K",0,()=>{const{t:e}=(0,n.Bd)();return[{title:e("是"),value:!0,color:"#28a745"},{title:e("否"),value:!1,color:"#666666"}]}])}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 397.35e2e66390b0f2e972d7.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[397],{22081(e,t,n){var a=n(96540),r=n(86004),s=n(74848);const i=({percentage:e})=>{const t=(0,a.useRef)(null),[n,i]=(0,a.useState)(null);return(0,a.useEffect)(()=>{const n=t.current.getContext("2d"),a=new r.Ay(n,{type:"doughnut",data:{labels:["use","left"],datasets:[{data:[e,100-e],backgroundColor:["#007bff","#f0f0f0"],borderWidth:0}]},options:{plugins:{legend:{display:!1},tooltip:{enabled:!1}},elements:{arc:{borderWidth:0}}}});return i(a),()=>{a.destroy()}},[]),(0,a.useEffect)(()=>{n&&(n.data.datasets[0].data=[e,100-e],n.update())},[e]),(0,s.jsx)("div",{style:{width:"8rem",overflow:"hidden"},children:(0,s.jsx)("canvas",{ref:t})})};n.d(t,["A",0,i])},77481(e,t,n){n.d(t,{S:()=>i,X:()=>s});var a=n(96540),r=n(74848);function s(e){const[t,n]=a.useState([]);return(0,a.useEffect)(()=>{e.children?n(Array.isArray(e.children)?e.children:[e.children]):n(e.rows)},[e.rows,e.children]),(0,r.jsxs)("table",{children:[(0,r.jsx)("thead",{children:(0,r.jsx)("tr",{children:e.headers?.map((e,t)=>(0,r.jsx)("th",{children:e},t))})}),(0,r.jsx)("tbody",{children:t.map((t,n)=>(0,r.jsx)("tr",{onContextMenu:()=>{e.handleContextMenu&&e.handleContextMenu(t)},children:t.map((n,a)=>(0,r.jsx)("td",{style:{width:e.width??"auto"},className:a===t.length-1?"small":"",children:n},a))},n))})]})}function i(e){return(0,r.jsx)("div",{style:{display:e.isFlex?"flex":"block"},children:e.columns.map((e,t)=>(0,r.jsx)("div",{children:e},t))})}},88062(e,t,n){n(96540),n(47022);var a=n(74848);function r(e){return(0,a.jsx)("div",{className:"black-tip",onClick:()=>{e.click&&e.click(e)},onContextMenu:t=>{t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),e.onContextMenu&&e.onContextMenu(t,e)},children:e.name})}const s=e=>(0,a.jsxs)("li",{children:[e.click?(0,a.jsx)(r,{...e.node,name:e.render?e.render(e.node):e.node.name,click:e.click,onContextMenu:e.onContextMenu}):(0,a.jsx)("div",{children:e.render?e.render(e.node):e.node.name}),e.node.children&&e.node.children.length>0&&(0,a.jsx)("ul",{children:e.node.children.map((t,n)=>(0,a.jsx)(s,{node:t,click:e.click,onContextMenu:e.onContextMenu,render:e.render},n))})]}),i=e=>(0,a.jsx)("div",{className:"card-tree-view",children:(0,a.jsx)("ul",{children:e.list&&e.list.map((t,n)=>(0,a.jsx)(s,{node:t,click:e.click,onContextMenu:e.onContextMenu,render:e.render},n))})});n.d(t,["A",0,i])},63659(e,t,n){n.r(t),n.d(t,{default:()=>Y});var a=n(59270),r=n(96540),s=n(34843),i=n(26417),c=n(92275),d=n(14944),o=(n(14284),n(70447)),f=n(85997),l=n(62042),u=n(57952),h=n(75725),g=(n(22081),n(77481)),b=n(63033),x=n(47071),p=n(34289),m=n(88062),j=n(97856),v=n(88815),w=n(15629),y=n(74848);const _=r.lazy(()=>Promise.all([n.e(7986),n.e(3233)]).then(n.bind(n,85614)));let k,S,M=-1;function Y(e){const{t}=(0,a.Bd)(),[n,Y]=(0,s.fp)(i.AG.workflow_show),[C,F]=(0,r.useState)([]),[A,X]=(0,r.useState)([]),[$,E]=(0,r.useState)(!1),[N,O]=(0,r.useState)(void 0),[P,Z]=(0,r.useState)([]),[T,R]=(0,r.useState)(-1),[W,q]=(0,r.useState)(10),[V,H]=(0,r.useState)(0),[U,B]=(0,r.useState)(0),[K,G]=(0,r.useState)(""),[I,J]=(0,r.useState)(!1),L=[t("序号"),t("运行名称"),t("状态"),t("运行时长"),t("日期"),t("操作")],z=[t("名称"),t("状态"),t("cwd"),t("运行时长"),t("操作")],D=async e=>{const t=new x._;t.page_num=e??T,t.page_size=W,t.dir_path=`${(0,p.GG)("file",(0,p.vX)())}`;const n=await d.ws.sendData(c.HK.workflow_get,t);if(!n)return;const a=n.context;a&&(F(a.list.map(e=>{const t="string"==typeof e.meta?JSON.parse(e.meta):e.meta;return t.index=e.index,t})),H(a.total),B((0,v.gw)(a.total,W)))};(0,r.useEffect)(()=>(E(!1),k=void 0,S=void 0,M=-1,D(),async()=>{S&&(S.dispose(),S=null)}),[]);const Q=async e=>{const t=e.steps,n=[];(0,w.Y)(n,t??[]),Z(n)},ee=async e=>{S||await new Promise(e=>{k=e,E(!0),(async()=>{const e=new j.Terminal({fontFamily:"Monaco, Menlo, Consolas, 'Courier New', monospace",theme:{background:"#FFFFFF",foreground:"#000000",cursor:"#000000",selectionBackground:"#a6d2ff"},cursorBlink:!0,cursorStyle:"bar",scrollback:1e3,scrollSensitivity:1,tabStopWidth:4,convertEol:!0});S=e,O(e)})()}),e&&(S.reset(),S.write(e))};return(0,y.jsxs)("div",{children:[(0,y.jsxs)(u.A,{children:[N&&(0,y.jsx)(f.rA,{icon:"print",title:"打印日志",onClick:()=>{E(!$)}}),(0,y.jsx)(f.rA,{icon:"close",title:t("关闭"),onClick:()=>{Y(!1)}})]}),(0,y.jsx)(h.jW,{isFull:!0,more:!0,children:(0,y.jsx)(h.NN,{children:(0,y.jsx)(h.xh,{children:(0,y.jsxs)(h.fI,{children:[(0,y.jsx)(h.VP,{children:(0,y.jsx)(o.uF,{self_title:(0,y.jsx)("span",{className:" div-row ",children:(0,y.jsx)("h2",{children:t("历史记录")})}),titleCom:(0,y.jsx)("div",{className:" div-row ",children:(0,y.jsx)(b.Sm,{disabled:I,value:K,placeholder:"搜索运行名称(支持正则)",handleInputChange:e=>{G(K)},handlerEnter:e=>{(async e=>{const t=new x._;t.search_name=e,t.dir_path=`${(0,p.GG)("file",(0,p.vX)())}`,J(!0);const n=await d.ws.sendData(c.HK.workflow_search_by_run_name,t);if(!n)return;const a=n.context;F(a.list.map(e=>{const t="string"==typeof e.meta?JSON.parse(e.meta):e.meta;return t.index=e.index,t})),H(a.total),B((0,v.gw)(a.total,W)),R(0),J(!1)})(e)}})}),rightBottomCom:(0,y.jsxs)("span",{className:" div-row ",children:[(0,y.jsxs)("span",{children:[Math.abs(T),"/",U]}),(0,y.jsx)(b.Sm,{placeholder:`max page ${U}`,handleInputChange:e=>{M=parseInt(e)},handlerEnter:()=>{if(M<1||M>U)return void(0,l.zN)("illegal page num");const e=0-M;R(e),D(e)}}),(0,y.jsx)(f.rA,{icon:"navigate_before",onClick:()=>{const e=T+1;e>-1?(0,l.zN)("max page num"):(R(e),D(e))},title:"上一页"}),(0,y.jsx)(f.rA,{icon:"navigate_next",onClick:()=>{const e=T-1;Math.abs(e)>U?(0,l.zN)("min page num"):(R(e),D(e))},title:"下一页"})]}),children:(0,y.jsx)(g.X,{headers:L,rows:C.map((e,n)=>{let a;a=e.is_running?(0,y.jsxs)("div",{children:[(0,y.jsx)(o.fq,{}),t("正在运行")]}):(0,y.jsxs)("div",{children:[(0,y.jsx)(o.fq,{success:e.is_success}),e.is_success?t("成功"):t("失败")]});const r=[(0,y.jsx)("p",{children:e.index}),(0,y.jsx)("p",{style:{wordWrap:"break-word"},children:e["run-name"]}),a,(0,y.jsx)("span",{children:e.duration}),(0,y.jsx)("span",{children:e.timestamp}),(0,y.jsx)("div",{children:(0,y.jsx)(f.rA,{icon:"details",title:t("详情"),onClick:()=>{(async e=>{if(e.is_running)return;Z([]);const t=new x._;t.index=e.index,t.dir_path=`${(0,p.GG)("file",(0,p.vX)())}`;const n=(await d.ws.sendData(c.HK.workflow_get,t)).context,a="string"==typeof n.one_data.data?JSON.parse(n.one_data.data):n.one_data.data;X(a.all_jobs)})(e)}})})];return r}),width:"10rem"})})}),(0,y.jsxs)(h.VP,{children:[(0,y.jsx)(o.Zp,{title:t("Job"),children:(0,y.jsx)(g.X,{headers:z,rows:A.map((e,n)=>[(0,y.jsx)("p",{children:e.name}),(0,y.jsx)(w.W,{item:e}),(0,y.jsx)(o.xP,{children:String(e.cwd)}),(0,y.jsx)("span",{children:e.duration}),(0,y.jsxs)("div",{children:[(0,y.jsx)(f.rA,{icon:"details",title:t("详情"),onClick:()=>{Q(e)}}),!!e.message&&(0,y.jsx)(f.rA,{icon:"print",title:t("日志"),onClick:()=>{ee(e.message)}})]})]),width:"10rem"})}),(0,y.jsx)(o.Zp,{title:"Step",children:(0,y.jsx)(m.A,{list:P,click:e=>{(async e=>{if(e?.extra_data?.is_job)await Q(e.extra_data.job_data);else if(e?.extra_data?.context)ee(e.extra_data.context);else{if(!e?.extra_data.code)return;ee(e.extra_data.code??"")}})(e)}})})]})]})})})}),(0,y.jsx)("div",{style:{display:$?"":"none"},children:(0,y.jsx)(_,{show:!0,terminal:N,init:()=>{k&&(k(1),k=void 0)}})})]})}},15629(e,t,n){n.d(t,{W:()=>c});n(96540);var a=n(70447),r=n(47071),s=n(59270),i=n(74848);function c({item:e}){const{t}=(0,s.Bd)();let n,c;return null!=e.code?n=0===e.code:e.extra_data?.running_type===r.rl.running&&(c=!0),(0,i.jsxs)("div",{children:[(0,i.jsx)(a.fq,{success:n,running:c}),t(n?"成功":"失败")]})}const d=(e,t,n)=>{if(t)for(const n of t??[]){let t;const r=[];n["use-yml"]?(d(r,void 0,n.use_job_children_list),t=`${n["use-yml"]} ;${n.duration??-1}`):n.runs?t=JSON.stringify(n.runs):n.run?t=n.run:n["run-js"]?t=n["run-js"]:n.sleep&&(t=`sleep ${n.sleep}`),t=(0,i.jsxs)("div",{children:[(0,i.jsx)(a.fq,{success:void 0===n.code?void 0:0===n.code})," ",t+" ;"+(n.duration??"")]}),e.push({name:t,children:r,extra_data:{code:n.code,context:n.message}})}else if(n)for(const t of n??[]){const n=(0,i.jsxs)("div",{children:[(0,i.jsx)(a.fq,{success:void 0===t.code?void 0:0===t.code}),"$",t.name]});e.push({name:n,extra_data:{code:t.code,is_job:!0,job_data:t}})}};n.d(t,["Y",0,d])},46447(e,t,n){function a(e){return e+.5|0}n.d(t,{Q1:()=>O});const r=(e,t,n)=>Math.max(Math.min(e,n),t);function s(e){return r(a(2.55*e),0,255)}function i(e){return r(a(255*e),0,255)}function c(e){return r(a(e/2.55)/100,0,1)}function d(e){return r(a(100*e),0,100)}const o={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},f=[..."0123456789ABCDEF"],l=e=>f[15&e],u=e=>f[(240&e)>>4]+f[15&e],h=e=>(240&e)>>4==(15&e);function g(e){var t=(e=>h(e.r)&&h(e.g)&&h(e.b)&&h(e.a))(e)?l:u;return e?"#"+t(e.r)+t(e.g)+t(e.b)+((e,t)=>e<255?t(e):"")(e.a,t):void 0}const b=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function x(e,t,n){const a=t*Math.min(n,1-n),r=(t,r=(t+e/30)%12)=>n-a*Math.max(Math.min(r-3,9-r,1),-1);return[r(0),r(8),r(4)]}function p(e,t,n){const a=(a,r=(a+e/60)%6)=>n-n*t*Math.max(Math.min(r,4-r,1),0);return[a(5),a(3),a(1)]}function m(e,t,n){const a=x(e,1,.5);let r;for(t+n>1&&(r=1/(t+n),t*=r,n*=r),r=0;r<3;r++)a[r]*=1-t-n,a[r]+=t;return a}function j(e){const t=e.r/255,n=e.g/255,a=e.b/255,r=Math.max(t,n,a),s=Math.min(t,n,a),i=(r+s)/2;let c,d,o;return r!==s&&(o=r-s,d=i>.5?o/(2-r-s):o/(r+s),c=function(e,t,n,a,r){return e===r?(t-n)/a+(t<n?6:0):t===r?(n-e)/a+2:(e-t)/a+4}(t,n,a,o,r),c=60*c+.5),[0|c,d||0,i]}function v(e,t,n,a){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,a)).map(i)}function w(e,t,n){return v(x,e,t,n)}function y(e){return(e%360+360)%360}function _(e){const t=b.exec(e);let n,a=255;if(!t)return;t[5]!==n&&(a=t[6]?s(+t[5]):i(+t[5]));const r=y(+t[2]),c=+t[3]/100,d=+t[4]/100;return n="hwb"===t[1]?function(e,t,n){return v(m,e,t,n)}(r,c,d):"hsv"===t[1]?function(e,t,n){return v(p,e,t,n)}(r,c,d):w(r,c,d),{r:n[0],g:n[1],b:n[2],a}}const k={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},S={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let M;function Y(e){M||(M=function(){const e={},t=Object.keys(S),n=Object.keys(k);let a,r,s,i,c;for(a=0;a<t.length;a++){for(i=c=t[a],r=0;r<n.length;r++)s=n[r],c=c.replace(s,k[s]);s=parseInt(S[i],16),e[c]=[s>>16&255,s>>8&255,255&s]}return e}(),M.transparent=[0,0,0,0]);const t=M[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}const C=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const F=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,A=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function X(e,t,n){if(e){let a=j(e);a[t]=Math.max(0,Math.min(a[t]+a[t]*n,0===t?360:1)),a=w(a),e.r=a[0],e.g=a[1],e.b=a[2]}}function $(e,t){return e?Object.assign(t||{},e):e}function E(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=i(e[3]))):(t=$(e,{r:0,g:0,b:0,a:1})).a=i(t.a),t}function N(e){return"r"===e.charAt(0)?function(e){const t=C.exec(e);let n,a,i,c=255;if(t){if(t[7]!==n){const e=+t[7];c=t[8]?s(e):r(255*e,0,255)}return n=+t[1],a=+t[3],i=+t[5],n=255&(t[2]?s(n):r(n,0,255)),a=255&(t[4]?s(a):r(a,0,255)),i=255&(t[6]?s(i):r(i,0,255)),{r:n,g:a,b:i,a:c}}}(e):_(e)}class O{constructor(e){if(e instanceof O)return e;const t=typeof e;let n;var a,r,s;"object"===t?n=E(e):"string"===t&&(s=(a=e).length,"#"===a[0]&&(4===s||5===s?r={r:255&17*o[a[1]],g:255&17*o[a[2]],b:255&17*o[a[3]],a:5===s?17*o[a[4]]:255}:7!==s&&9!==s||(r={r:o[a[1]]<<4|o[a[2]],g:o[a[3]]<<4|o[a[4]],b:o[a[5]]<<4|o[a[6]],a:9===s?o[a[7]]<<4|o[a[8]]:255})),n=r||Y(e)||N(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=$(this._rgb);return e&&(e.a=c(e.a)),e}set rgb(e){this._rgb=E(e)}rgbString(){return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${c(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0;var e}hexString(){return this._valid?g(this._rgb):void 0}hslString(){return this._valid?function(e){if(!e)return;const t=j(e),n=t[0],a=d(t[1]),r=d(t[2]);return e.a<255?`hsla(${n}, ${a}%, ${r}%, ${c(e.a)})`:`hsl(${n}, ${a}%, ${r}%)`}(this._rgb):void 0}mix(e,t){if(e){const n=this.rgb,a=e.rgb;let r;const s=t===r?.5:t,i=2*s-1,c=n.a-a.a,d=((i*c===-1?i:(i+c)/(1+i*c))+1)/2;r=1-d,n.r=255&d*n.r+r*a.r+.5,n.g=255&d*n.g+r*a.g+.5,n.b=255&d*n.b+r*a.b+.5,n.a=s*n.a+(1-s)*a.a,this.rgb=n}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,n){const a=A(c(e.r)),r=A(c(e.g)),s=A(c(e.b));return{r:i(F(a+n*(A(c(t.r))-a))),g:i(F(r+n*(A(c(t.g))-r))),b:i(F(s+n*(A(c(t.b))-s))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new O(this.rgb)}alpha(e){return this._rgb.a=i(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=a(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return X(this._rgb,2,e),this}darken(e){return X(this._rgb,2,-e),this}saturate(e){return X(this._rgb,1,e),this}desaturate(e){return X(this._rgb,1,-e),this}rotate(e){return function(e,t){var n=j(e);n[0]=y(n[0]+t),n=w(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}}}}]);
|