comp-hub 0.27.19 → 0.28.1

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.
Files changed (125) hide show
  1. package/README.md +71 -86
  2. package/bin/cli.js +42 -76
  3. package/bin/lib/commands.js +147 -0
  4. package/bin/lib/constants.js +22 -0
  5. package/bin/lib/http.js +62 -0
  6. package/bin/lib/startup.js +183 -0
  7. package/bin/lib/utils.js +80 -0
  8. package/dist/index.js +16 -16
  9. package/dist/master.js +403 -0
  10. package/dist/website/container/assets/{index-CdaB9oWd.js → index-BTW7AmWY.js} +9 -9
  11. package/dist/website/container/assets/index-DqV5-Zk-.css +1 -0
  12. package/dist/website/container/index.html +31 -34
  13. package/dist/website/container/js/vue2-sfc-loader.js +1 -1
  14. package/dist/website/container/js/vue3-sfc-loader.js +1 -1
  15. package/dist/website/item/assets/index-DNn8L2ik.css +1 -0
  16. package/dist/website/item/assets/index-eJgZiYQR.js +40 -0
  17. package/dist/website/item/index.html +28 -30
  18. package/dist/website/main/assets/{AuthCodeSendBtn.vue_vue_type_script_setup_true_lang-CfufrKbA.js → AuthCodeSendBtn.vue_vue_type_script_setup_true_lang-C2LcEFL4.js} +1 -1
  19. package/dist/website/main/assets/{BaseDialog.vue_vue_type_script_setup_true_lang-B6WkXWm7.js → BaseDialog.vue_vue_type_script_setup_true_lang-CgV6_zzd.js} +1 -1
  20. package/dist/website/main/assets/BaseSegmented.vue_vue_type_script_setup_true_lang-CW16Y3Jx.js +1 -0
  21. package/dist/website/main/assets/{CanvasAnimation.vue_vue_type_script_setup_true_lang-BwtYEYU5.js → CanvasAnimation.vue_vue_type_script_setup_true_lang-BVY2XxV8.js} +1 -1
  22. package/dist/website/main/assets/{EmptyStatusContainer.vue_vue_type_script_setup_true_lang-DIgE9MGd.js → EmptyStatusContainer.vue_vue_type_script_setup_true_lang-CofI0Rvq.js} +1 -1
  23. package/dist/website/main/assets/{LoadingWrapper.vue_vue_type_script_setup_true_lang-5GxduB08.js → LoadingWrapper.vue_vue_type_script_setup_true_lang-bBtkKtmz.js} +1 -1
  24. package/dist/website/main/assets/{PanelBackground.vue_vue_type_script_setup_true_lang-CM6wkI5V.js → PanelBackground.vue_vue_type_script_setup_true_lang-DBIlZFl0.js} +1 -1
  25. package/dist/website/main/assets/{cloud-upload-CyIQfnxU.js → cloud-upload-BRjLuSi4.js} +1 -1
  26. package/dist/website/main/assets/{core-DE5-zGKf.js → core-B1GcTOER.js} +1 -1
  27. package/dist/website/main/assets/{el-table-column-BiqynxkD.js → el-table-column-8qfe8CVK.js} +1 -1
  28. package/dist/website/main/assets/{home-rounded-Dq-TBvLG.js → home-rounded-8qNxvN2I.js} +1 -1
  29. package/dist/website/main/assets/{index-CMvx8gm3.js → index-0Y9kW7YJ.js} +1 -1
  30. package/dist/website/main/assets/index-2LGHX46G.js +1 -0
  31. package/dist/website/main/assets/index-B2xvPCaB.js +1 -0
  32. package/dist/website/main/assets/{index-CGgS1tZ0.js → index-B3dAdOL_.js} +1 -1
  33. package/dist/website/main/assets/{index-Cf69_nzt.js → index-B5qe6yln.js} +15 -15
  34. package/dist/website/main/assets/index-BANn4H7f.css +1 -0
  35. package/dist/website/main/assets/{index-DvyE3TrH.js → index-ByKMTPW3.js} +2 -2
  36. package/dist/website/main/assets/index-CDnNjG3p.css +1 -0
  37. package/dist/website/main/assets/index-CEQStqDa.js +1 -0
  38. package/dist/website/main/assets/index-CP6sOfKF.css +1 -0
  39. package/dist/website/main/assets/index-Cf5sOeOs.js +1 -0
  40. package/dist/website/main/assets/index-CmSN0r9I.css +1 -0
  41. package/dist/website/main/assets/index-Cn8OtDDR.js +1 -0
  42. package/dist/website/main/assets/{index-BQWeT5qu.js → index-CoWWi7z-.js} +2 -2
  43. package/dist/website/main/assets/index-Cqi9_pkc.js +1 -0
  44. package/dist/website/main/assets/{index-vnzmxexj.js → index-CrzWpCC3.js} +1 -1
  45. package/dist/website/main/assets/index-CtzG8xUz.js +1 -0
  46. package/dist/website/main/assets/index-DANPdG90.js +1 -0
  47. package/dist/website/main/assets/index-DI0kvKsV.js +1 -0
  48. package/dist/website/main/assets/index-DJ4AvgpT.css +1 -0
  49. package/dist/website/main/assets/index-DSED2-Jv.js +1 -0
  50. package/dist/website/main/assets/index-DUr8uU-d.js +1 -0
  51. package/dist/website/main/assets/index-DW-M9dmc.js +1 -0
  52. package/dist/website/main/assets/{index-BGLjC3BV.js → index-D_jNsofk.js} +1 -1
  53. package/dist/website/main/assets/index-DffjEud2.js +1 -0
  54. package/dist/website/main/assets/{index-ctwb4cB7.js → index-DkTzdi1V.js} +1 -1
  55. package/dist/website/main/assets/index-DoTR7Juh.css +1 -0
  56. package/dist/website/main/assets/index-DxG4_1zN.js +1 -0
  57. package/dist/website/main/assets/{index-CTLlcQoM.js → index-DyEkv8OS.js} +1 -1
  58. package/dist/website/main/assets/{index-CCFHORqg.js → index-RlxCYKYM.js} +1 -1
  59. package/dist/website/main/assets/index-ZwJcoRf3.js +2 -0
  60. package/dist/website/main/assets/index-bJb3z37F.js +1 -0
  61. package/dist/website/main/assets/{index-gOTpUrNM.js → index-dC2trX5C.js} +1 -1
  62. package/dist/website/main/assets/{index-Cu1YAWdz.js → index-dhG9Kj5W.js} +1 -1
  63. package/dist/website/main/assets/{index-q4Z3Q7p4.js → index-feqY_hvF.js} +1 -1
  64. package/dist/website/main/assets/{index-cFhtMyBi.js → index-op0bdgFk.js} +2 -2
  65. package/dist/website/main/assets/index-xqKWYiCC.js +1 -0
  66. package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-BDhf8t5D.js → index.vue_vue_type_script_setup_true_lang-B_VrULUy.js} +1 -1
  67. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-D3xHCy9f.js +2 -0
  68. package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-B4echric.js → index.vue_vue_type_script_setup_true_lang-DCQMqfel.js} +1 -1
  69. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-DM_Wm4GD.js +1 -0
  70. package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-qhJpeu7a.js → index.vue_vue_type_script_setup_true_lang-DX9EV5b8.js} +1 -1
  71. package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-aO0L9Tak.js → index.vue_vue_type_script_setup_true_lang-RJnk970E.js} +1 -1
  72. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-rk3Yu4M8.js +1 -0
  73. package/dist/website/main/assets/{index.vue_vue_type_style_index_0_lang-C3U7f9Ma.js → index.vue_vue_type_style_index_0_lang-BQWxY2F1.js} +5 -5
  74. package/dist/website/main/assets/{index.vue_vue_type_style_index_0_lang-C4fELX8m.js → index.vue_vue_type_style_index_0_lang-DQhqVyhA.js} +1 -1
  75. package/dist/website/main/assets/{index.vue_vue_type_style_index_0_lang-D_eT-tA_.js → index.vue_vue_type_style_index_0_lang-xD-wMtaK.js} +1 -1
  76. package/dist/website/main/assets/{kid-star-CFLIpXDC.js → kid-star-Cr1NlTdT.js} +1 -1
  77. package/dist/website/main/assets/{md5-BZr8xhBN.js → md5-DzJRYP5-.js} +1 -1
  78. package/dist/website/main/assets/{settings-B3XnnICj.js → settings-BFJXTJ9K.js} +1 -1
  79. package/dist/website/main/assets/{supervised-user-circle-CEgKC7n7.js → supervised-user-circle-Bnx5icEm.js} +1 -1
  80. package/dist/website/main/assets/{sync-saved-locally-rounded-CmlRPNS9.js → sync-saved-locally-rounded-DtyOT0dw.js} +1 -1
  81. package/dist/website/main/assets/{terminal-DykiTSV6.js → terminal-D72IJB2N.js} +1 -1
  82. package/dist/website/main/assets/{useCacheOssStore-CU4a8b24.js → useCacheOssStore-DApHt9lQ.js} +1 -1
  83. package/dist/website/main/assets/{useCompEditStore-Du_-rNtX.css → useCompEditStore-B9HAj9va.css} +1 -1
  84. package/dist/website/main/assets/{useCompEditStore-B7KaUbOi.js → useCompEditStore-KBTFiinR.js} +94 -94
  85. package/dist/website/main/assets/{useCompMetaLocalStore-pb1Ikkq3.js → useCompMetaLocalStore-eE-CBcE9.js} +1 -1
  86. package/dist/website/main/assets/{useKeyword-D1qu8Tz-.js → useKeyword-CoagiMo1.js} +1 -1
  87. package/dist/website/main/assets/useMessage-CYVXvlqq.js +1 -0
  88. package/dist/website/main/assets/{useTeamHeaders-DELMIzHt.js → useTeamHeaders-Cc060CP0.js} +1 -1
  89. package/dist/website/main/assets/useVscodeOpen-Dx3IRL0P.js +1 -0
  90. package/dist/website/main/assets/{vendor-core-B-Si3WEf.js → vendor-core-CzvSW5ae.js} +3 -3
  91. package/dist/website/main/assets/{vendor-ui-D6wVBlls.js → vendor-ui-DXwyveTF.js} +12 -12
  92. package/dist/website/main/index.html +92 -92
  93. package/package.json +5 -3
  94. package/dist/website/container/assets/index-BnbvpvZL.css +0 -1
  95. package/dist/website/item/assets/index-B0s1uwsa.js +0 -39
  96. package/dist/website/item/assets/index-BIcNxYiU.css +0 -1
  97. package/dist/website/main/assets/BaseSegmented.vue_vue_type_script_setup_true_lang-D5yw_wF0.js +0 -1
  98. package/dist/website/main/assets/index-B6f_06zP.js +0 -1
  99. package/dist/website/main/assets/index-BIGvC1SM.js +0 -1
  100. package/dist/website/main/assets/index-BfPdLll-.js +0 -1
  101. package/dist/website/main/assets/index-BkUBwon5.css +0 -1
  102. package/dist/website/main/assets/index-C9t3Yhe9.js +0 -1
  103. package/dist/website/main/assets/index-CFH_ugiT.js +0 -1
  104. package/dist/website/main/assets/index-CWW1M_cy.js +0 -1
  105. package/dist/website/main/assets/index-CuHNNhtE.js +0 -1
  106. package/dist/website/main/assets/index-D6Fz5rH9.css +0 -1
  107. package/dist/website/main/assets/index-D7eOWAPr.js +0 -1
  108. package/dist/website/main/assets/index-D8WDrGkh.js +0 -1
  109. package/dist/website/main/assets/index-DBM1x91X.js +0 -1
  110. package/dist/website/main/assets/index-DC94GyXj.js +0 -1
  111. package/dist/website/main/assets/index-Dl-mwEbG.js +0 -1
  112. package/dist/website/main/assets/index-DmO0JQ56.css +0 -1
  113. package/dist/website/main/assets/index-DrUAgWBX.js +0 -1
  114. package/dist/website/main/assets/index-Oo11MKfd.js +0 -1
  115. package/dist/website/main/assets/index-YUZjR2Eq.js +0 -2
  116. package/dist/website/main/assets/index-tEU6GnSH.js +0 -1
  117. package/dist/website/main/assets/index-tWc_GbBW.css +0 -1
  118. package/dist/website/main/assets/index-uu5oSUvx.js +0 -1
  119. package/dist/website/main/assets/index-wgeiSlf-.css +0 -1
  120. package/dist/website/main/assets/index-y8GEzH-z.css +0 -1
  121. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-COryHg9c.js +0 -1
  122. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-D_7jZ1zo.js +0 -2
  123. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-Dtuk2wrA.js +0 -1
  124. package/dist/website/main/assets/useMessage-D7WAp245.js +0 -1
  125. package/dist/website/main/assets/useVscodeOpen-DIYbcP1e.js +0 -1
@@ -1,36 +1,34 @@
1
- <!DOCTYPE html>
1
+ <!doctype html>
2
2
  <html lang="" name="item">
3
-
4
- <head>
5
- <meta charset="UTF-8">
6
- <link rel="icon" href="/item/favicon.ico">
7
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
8
- <style>
9
- html.dark {
10
- color-scheme: dark;
11
- }
12
- </style>
13
- <script>
14
- try {
15
- const urlParams = new URLSearchParams(window.location.search)
16
- const isDark = urlParams.get('isDark') === 'true'
17
- if (isDark) {
18
- document.documentElement.classList.add('dark')
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" href="/item/favicon.ico" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <style>
8
+ html.dark {
9
+ color-scheme: dark;
10
+ }
11
+ </style>
12
+ <script>
13
+ try {
14
+ const urlParams = new URLSearchParams(window.location.search);
15
+ const isDark = urlParams.get("isDark") === "true";
16
+ if (isDark) {
17
+ document.documentElement.classList.add("dark");
18
+ }
19
+ } catch (error) {
20
+ console.error("解析 URL 参数失败", error);
19
21
  }
20
- } catch (error) {
21
- console.error('解析 URL 参数失败', error)
22
- }
23
- </script>
24
- <script type="module" crossorigin src="/item/assets/index-B0s1uwsa.js"></script>
25
- <link rel="stylesheet" crossorigin href="/item/assets/index-BIcNxYiU.css">
26
- </head>
22
+ </script>
23
+ <script type="module" crossorigin src="/item/assets/index-eJgZiYQR.js"></script>
24
+ <link rel="stylesheet" crossorigin href="/item/assets/index-DNn8L2ik.css">
25
+ </head>
27
26
 
28
- <body>
29
- <div id="app"></div>
27
+ <body>
28
+ <div id="app"></div>
30
29
 
31
-
32
- <!-- 勿要删除,全局配置替换字符串 -->
33
- <!--GLOBAL_CONFIG-->
34
- </body>
35
30
 
31
+ <!-- 勿要删除,全局配置替换字符串 -->
32
+ <!--GLOBAL_CONFIG-->
33
+ </body>
36
34
  </html>
@@ -1 +1 @@
1
- import{e as x}from"./vendor-ui-D6wVBlls.js";import{v as w,aA as y,a4 as C,ab as _,j as b,aO as u,r as h,ax as d,q as B,ap as g,af as k,g as I}from"./vendor-core-B-Si3WEf.js";import{_ as S}from"./LoadingWrapper.vue_vue_type_script_setup_true_lang-5GxduB08.js";const j=w({__name:"AuthCodeSendBtn",props:{type:{default:"primary"},disabled:{type:Boolean,default:!1},text:{default:""},countdownText:{default:""},duration:{default:60}},emits:["send","finish"],setup(n,{expose:r,emit:i}){const{t:c}=y(),a=n,l=i,e=k(0);let t=null;const f=I(()=>e.value>0?c(a.countdownText,{n:e.value.toString()}):a.text),s=()=>{e.value=a.duration,t=window.setInterval(()=>{e.value--,e.value<=0&&(clearInterval(t),t=null,l("finish"))},1e3)},p=async o=>{a.disabled||e.value>0||(o.start(),l("send",{end:o.end,startCountdown:s}))};return C(()=>{t&&(clearInterval(t),t=null)}),r({startCountdown:s,getCountdown:()=>e.value}),(o,T)=>(_(),b(d(S),null,{default:u(({instance:m,loading:v})=>[h(d(x),{type:n.type??"default",loading:v,disabled:n.disabled||e.value>0,class:"whitespace-nowrap",onClick:A=>p(m)},{default:u(()=>[B(g(f.value),1)]),_:1},8,["type","loading","disabled","onClick"])]),_:1}))}});export{j as _};
1
+ import{e as x}from"./vendor-ui-DXwyveTF.js";import{v as w,aA as y,a4 as C,ab as _,j as b,aO as u,r as h,ax as d,q as B,ap as g,af as k,g as I}from"./vendor-core-CzvSW5ae.js";import{_ as S}from"./LoadingWrapper.vue_vue_type_script_setup_true_lang-bBtkKtmz.js";const j=w({__name:"AuthCodeSendBtn",props:{type:{default:"primary"},disabled:{type:Boolean,default:!1},text:{default:""},countdownText:{default:""},duration:{default:60}},emits:["send","finish"],setup(n,{expose:r,emit:i}){const{t:c}=y(),a=n,l=i,e=k(0);let t=null;const f=I(()=>e.value>0?c(a.countdownText,{n:e.value.toString()}):a.text),s=()=>{e.value=a.duration,t=window.setInterval(()=>{e.value--,e.value<=0&&(clearInterval(t),t=null,l("finish"))},1e3)},p=async o=>{a.disabled||e.value>0||(o.start(),l("send",{end:o.end,startCountdown:s}))};return C(()=>{t&&(clearInterval(t),t=null)}),r({startCountdown:s,getCountdown:()=>e.value}),(o,T)=>(_(),b(d(S),null,{default:u(({instance:m,loading:v})=>[h(d(x),{type:n.type??"default",loading:v,disabled:n.disabled||e.value>0,class:"whitespace-nowrap",onClick:A=>p(m)},{default:u(()=>[B(g(f.value),1)]),_:1},8,["type","loading","disabled","onClick"])]),_:1}))}});export{j as _};
@@ -1 +1 @@
1
- import{az as n,q as c}from"./vendor-ui-D6wVBlls.js";import{v as p,ab as m,j as u,al as l,B as f,ax as d,g,y as i}from"./vendor-core-B-Si3WEf.js";const y=p({__name:"BaseDialog",setup(_){const a=i(),t=n(),o={modal:!0,appendToBody:!0,draggable:!0},s=g(()=>({...o,...t}));function r(e){a&&(a.exposed=e||{},a.exposeProxy=e||{})}return(e,x)=>(m(),u(l(f(d(c),{...s.value,ref:r},e.$slots))))}});export{y as _};
1
+ import{aC as n,q as c}from"./vendor-ui-DXwyveTF.js";import{v as p,ab as m,j as u,al as l,B as f,ax as d,g,y as i}from"./vendor-core-CzvSW5ae.js";const y=p({__name:"BaseDialog",setup(_){const a=i(),t=n(),o={modal:!0,appendToBody:!0,draggable:!0},s=g(()=>({...o,...t}));function r(e){a&&(a.exposed=e||{},a.exposeProxy=e||{})}return(e,x)=>(m(),u(l(f(d(c),{...s.value,ref:r},e.$slots))))}});export{y as _};
@@ -0,0 +1 @@
1
+ import{V as d}from"./vendor-ui-DXwyveTF.js";import{v as p,aB as i,ay as c,aE as f,ab as V,j as _,p as g,ah as v,aO as S,ai as B,_ as k,A as x,X as A,ax as t,g as P}from"./vendor-core-CzvSW5ae.js";const j=p({inheritAttrs:!1,__name:"BaseSegmented",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(o){const s=i(o,"modelValue"),r=c(),l=f(),n=P(()=>Object.keys(l));return(m,a)=>(V(),_(t(d),A({modelValue:s.value,"onUpdate:modelValue":a[0]||(a[0]=e=>s.value=e)},t(r)),g({_:2},[v(n.value,e=>({name:e,fn:S(u=>[B(m.$slots,e,k(x(u)))])}))]),1040,["modelValue"]))}});export{j as _};
@@ -1 +1 @@
1
- import{O as w}from"./index-Cf69_nzt.js";import{ae as S,aC as m,ax as n}from"./vendor-ui-D6wVBlls.js";import{v as y,aF as g,a7 as M,a9 as b,ab as T,l as D,i as _,af as R}from"./vendor-core-B-Si3WEf.js";const P={class:"w-full h-full"},A={ref:"canvas",class:"w-full h-full bg-[#333436]"},B=y({__name:"CanvasAnimation",setup(C){const d=g("canvas"),o=R(!1);let h=null;class x{rangeR;r;rSpeed;cvs;ctx;x;y;xSpeed;ySpeed;lastMoveTime;fillStyle;maxTimeDiff=100;constructor({cvs:t,ctx:i}){this.rangeR=[3,7],this.r=n(this.rangeR[0],this.rangeR[1]),this.rSpeed=n(-1,1),this.cvs=t,this.ctx=i,this.x=n(0+this.r,this.cvs.width-this.r),this.y=n(0+this.r,this.cvs.height-this.r),this.xSpeed=n(-10,10),this.ySpeed=n(-10,10),this.lastMoveTime=null,this.fillStyle=w.randomColor()}setLastMoveTime(t){this.lastMoveTime=t}draw(){if(this.lastMoveTime){const s=Date.now()-this.lastMoveTime,e=Math.min(s,this.maxTimeDiff)/1e3;let a=this.x+e*this.xSpeed,c=this.y+e*this.ySpeed,l=this.r+e*this.rSpeed;l<=this.rangeR[0]?(l=this.rangeR[0],this.rSpeed=Math.abs(this.rSpeed)):l>=this.rangeR[1]&&(l=this.rangeR[1],this.rSpeed=-Math.abs(this.rSpeed)),a-this.r<0?(a=this.r,this.xSpeed=Math.abs(this.xSpeed)):a+this.r>this.cvs.width&&(a=this.cvs.width-this.r,this.xSpeed=-Math.abs(this.xSpeed)),c-this.r<0?(c=this.r,this.ySpeed=Math.abs(this.ySpeed)):c+this.r>this.cvs.height&&(c=this.cvs.height-this.r,this.ySpeed=-Math.abs(this.ySpeed)),this.x=a,this.y=c,this.r=l}const t=Math.max(0,this.r);this.ctx.beginPath(),this.ctx.arc(this.x,this.y,t,0,2*Math.PI),this.ctx.fillStyle=this.fillStyle,this.ctx.fill(),this.lastMoveTime=Date.now()}}class u{points;maxDis;cvs;ctx;constructor({pointNumber:t=30,maxDis:i=100,cvs:s,ctx:e}){this.points=Array(t).fill(0).map(()=>new x({cvs:s,ctx:e})),this.maxDis=i,this.cvs=s,this.ctx=e}resetPointsTime(){const t=Date.now();this.points.forEach(i=>{i.setLastMoveTime(t)})}draw(){if(o.value){if(document.hidden){setTimeout(()=>this.draw(),100);return}requestAnimationFrame(()=>this.draw()),this.ctx.clearRect(0,0,this.cvs.width,this.cvs.height);for(const[t,i]of this.points.entries()){i.draw();for(const s of this.points.slice(t+1)){const e=Math.sqrt((i.x-s.x)**2+(i.y-s.y)**2);isNaN(e)||e>this.maxDis||(this.ctx.beginPath(),this.ctx.moveTo(i.x,i.y),this.ctx.lineTo(s.x,s.y),this.ctx.strokeStyle=`rgba(200,200,200,${Math.max(0,Math.min(1,1-e/this.maxDis))})`,this.ctx.stroke(),this.ctx.closePath())}}}}}function p(){if(!d.value)return;console.log("渲染动画"),o.value=!0;const r=window.innerWidth,t=110*window.innerWidth/r,i=80*window.innerWidth/r,s=d.value,e=s.getContext("2d");if(!e)return;const a=window.devicePixelRatio||1;s.width=window.innerWidth*a,s.height=window.innerHeight*a,h&&(h=null),h=new u({pointNumber:Math.floor(t),maxDis:Math.floor(i),cvs:s,ctx:e}),h.draw()}const f=S(p,200);function v(){document.hidden?o.value=!1:d.value&&h&&(o.value=!0,h.resetPointsTime(),h.draw())}return m(window,"resize",f),m(document,"visibilitychange",v),M(()=>{f()}),b(()=>{o.value=!1,h=null}),(r,t)=>(T(),D("div",P,[_("canvas",A,null,512)]))}});export{B as _};
1
+ import{M as w}from"./index-B5qe6yln.js";import{ag as S,aF as m,aA as n}from"./vendor-ui-DXwyveTF.js";import{v as g,aF as y,a7 as M,a9 as b,ab as T,l as D,i as _,af as R}from"./vendor-core-CzvSW5ae.js";const A={class:"w-full h-full"},P={ref:"canvas",class:"w-full h-full bg-[#333436]"},B=g({__name:"CanvasAnimation",setup(C){const d=y("canvas"),o=R(!1);let h=null;class x{rangeR;r;rSpeed;cvs;ctx;x;y;xSpeed;ySpeed;lastMoveTime;fillStyle;maxTimeDiff=100;constructor({cvs:t,ctx:i}){this.rangeR=[3,7],this.r=n(this.rangeR[0],this.rangeR[1]),this.rSpeed=n(-1,1),this.cvs=t,this.ctx=i,this.x=n(0+this.r,this.cvs.width-this.r),this.y=n(0+this.r,this.cvs.height-this.r),this.xSpeed=n(-10,10),this.ySpeed=n(-10,10),this.lastMoveTime=null,this.fillStyle=w.randomColor()}setLastMoveTime(t){this.lastMoveTime=t}draw(){if(this.lastMoveTime){const s=Date.now()-this.lastMoveTime,e=Math.min(s,this.maxTimeDiff)/1e3;let a=this.x+e*this.xSpeed,c=this.y+e*this.ySpeed,l=this.r+e*this.rSpeed;l<=this.rangeR[0]?(l=this.rangeR[0],this.rSpeed=Math.abs(this.rSpeed)):l>=this.rangeR[1]&&(l=this.rangeR[1],this.rSpeed=-Math.abs(this.rSpeed)),a-this.r<0?(a=this.r,this.xSpeed=Math.abs(this.xSpeed)):a+this.r>this.cvs.width&&(a=this.cvs.width-this.r,this.xSpeed=-Math.abs(this.xSpeed)),c-this.r<0?(c=this.r,this.ySpeed=Math.abs(this.ySpeed)):c+this.r>this.cvs.height&&(c=this.cvs.height-this.r,this.ySpeed=-Math.abs(this.ySpeed)),this.x=a,this.y=c,this.r=l}const t=Math.max(0,this.r);this.ctx.beginPath(),this.ctx.arc(this.x,this.y,t,0,2*Math.PI),this.ctx.fillStyle=this.fillStyle,this.ctx.fill(),this.lastMoveTime=Date.now()}}class u{points;maxDis;cvs;ctx;constructor({pointNumber:t=30,maxDis:i=100,cvs:s,ctx:e}){this.points=Array(t).fill(0).map(()=>new x({cvs:s,ctx:e})),this.maxDis=i,this.cvs=s,this.ctx=e}resetPointsTime(){const t=Date.now();this.points.forEach(i=>{i.setLastMoveTime(t)})}draw(){if(o.value){if(document.hidden){setTimeout(()=>this.draw(),100);return}requestAnimationFrame(()=>this.draw()),this.ctx.clearRect(0,0,this.cvs.width,this.cvs.height);for(const[t,i]of this.points.entries()){i.draw();for(const s of this.points.slice(t+1)){const e=Math.sqrt((i.x-s.x)**2+(i.y-s.y)**2);isNaN(e)||e>this.maxDis||(this.ctx.beginPath(),this.ctx.moveTo(i.x,i.y),this.ctx.lineTo(s.x,s.y),this.ctx.strokeStyle=`rgba(200,200,200,${Math.max(0,Math.min(1,1-e/this.maxDis))})`,this.ctx.stroke(),this.ctx.closePath())}}}}}function p(){if(!d.value)return;console.log("渲染动画"),o.value=!0;const r=window.innerWidth,t=110*window.innerWidth/r,i=80*window.innerWidth/r,s=d.value,e=s.getContext("2d");if(!e)return;const a=window.devicePixelRatio||1;s.width=window.innerWidth*a,s.height=window.innerHeight*a,h&&(h=null),h=new u({pointNumber:Math.floor(t),maxDis:Math.floor(i),cvs:s,ctx:e}),h.draw()}const f=S(p,200);function v(){document.hidden?o.value=!1:d.value&&h&&(o.value=!0,h.resetPointsTime(),h.draw())}return m(window,"resize",f),m(document,"visibilitychange",v),M(()=>{f()}),b(()=>{o.value=!1,h=null}),(r,t)=>(T(),D("div",A,[_("canvas",P,null,512)]))}});export{B as _};
@@ -1 +1 @@
1
- import{w as r}from"./vendor-ui-D6wVBlls.js";import{v as i,aA as p,ab as n,l as c,ai as s,j as m,ax as u,k as y,g as d}from"./vendor-core-B-Si3WEf.js";const B=i({__name:"EmptyStatusContainer",props:{isEmpty:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},emptyDescription:{type:String,default:""}},setup(e){const a=e,{t:o}=p(),l=d(()=>a.emptyDescription||o("common.empty"));return(t,f)=>(n(),c("div",null,[e.isEmpty?s(t.$slots,"empty-content",{key:0},()=>[e.loading?y("",!0):(n(),m(u(r),{key:0,class:"flex justify-center items-center",description:l.value},null,8,["description"]))]):s(t.$slots,"default",{key:1})]))}});export{B as _};
1
+ import{w as r}from"./vendor-ui-DXwyveTF.js";import{v as i,aA as p,ab as n,l as c,ai as s,j as m,ax as u,k as y,g as d}from"./vendor-core-CzvSW5ae.js";const B=i({__name:"EmptyStatusContainer",props:{isEmpty:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},emptyDescription:{type:String,default:""}},setup(e){const a=e,{t:o}=p(),l=d(()=>a.emptyDescription||o("common.empty"));return(t,f)=>(n(),c("div",null,[e.isEmpty?s(t.$slots,"empty-content",{key:0},()=>[e.loading?y("",!0):(n(),m(u(r),{key:0,class:"flex justify-center items-center",description:l.value},null,8,["description"]))]):s(t.$slots,"default",{key:1})]))}});export{B as _};
@@ -1 +1 @@
1
- import{v as o,ai as r,af as s}from"./vendor-core-B-Si3WEf.js";const u=o({__name:"LoadingWrapper",setup(f){const e=s(!1);function a(){e.value=!0}function n(){e.value=!1}return(t,i)=>r(t.$slots,"default",{instance:{start:a,end:n},loading:e.value})}});export{u as _};
1
+ import{v as o,ai as r,af as s}from"./vendor-core-CzvSW5ae.js";const u=o({__name:"LoadingWrapper",setup(f){const e=s(!1);function a(){e.value=!0}function n(){e.value=!1}return(t,i)=>r(t.$slots,"default",{instance:{start:a,end:n},loading:e.value})}});export{u as _};
@@ -1 +1 @@
1
- import{v as s,af as n,aN as l,ab as c,l as p,_ as u,A as f,ai as d}from"./vendor-core-B-Si3WEf.js";const m=s({__name:"PanelBackground",props:{bg:{type:String,default:""}},setup(t){const o=t,e=n(o.bg),r=a=>{e.value=a??""};return l(()=>{e.value=o.bg}),(a,i)=>(c(),p("div",u(f(a.$attrs)),[d(a.$slots,"default",{bg:e.value,updateColor:r})],16))}});export{m as _};
1
+ import{v as s,af as n,aN as l,ab as c,l as p,_ as u,A as f,ai as d}from"./vendor-core-CzvSW5ae.js";const m=s({__name:"PanelBackground",props:{bg:{type:String,default:""}},setup(t){const o=t,e=n(o.bg),r=a=>{e.value=a??""};return l(()=>{e.value=o.bg}),(a,i)=>(c(),p("div",u(f(a.$attrs)),[d(a.$slots,"default",{bg:e.value,updateColor:r})],16))}});export{m as _};
@@ -1 +1 @@
1
- import{I as o}from"./index-CMvx8gm3.js";import{ab as a,j as c,ax as h}from"./vendor-core-B-Si3WEf.js";const i='<path class="n-b8vgsez"/>',d={__name:"cloud-upload",props:["width","height"],setup(t){const e={width:24,height:24};return(n,s)=>(a(),c(h(o),{width:t.width,height:t.height,viewBox:e,content:i,fallback:"material-symbols:cloud-upload"},null,8,["width","height"]))}};export{d as default};
1
+ import{I as o}from"./index-0Y9kW7YJ.js";import{ab as a,j as c,ax as h}from"./vendor-core-CzvSW5ae.js";const i='<path class="n-b8vgsez"/>',d={__name:"cloud-upload",props:["width","height"],setup(t){const e={width:24,height:24};return(n,s)=>(a(),c(h(o),{width:t.width,height:t.height,viewBox:e,content:i,fallback:"material-symbols:cloud-upload"},null,8,["width","height"]))}};export{d as default};
@@ -1,3 +1,3 @@
1
- import{aj as Kt}from"./vendor-ui-D6wVBlls.js";var re,ve;function Ft(){if(ve)return re;ve=1;function ce(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const i=e[t],u=typeof i;(u==="object"||u==="function")&&!Object.isFrozen(i)&&ce(i)}),e}class oe{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function ae(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function T(e,...t){const i=Object.create(null);for(const u in e)i[u]=e[u];return t.forEach(function(u){for(const b in u)i[b]=u[b]}),i}const Ce="</span>",le=e=>!!e.scope,Le=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const i=e.split(".");return[`${t}${i.shift()}`,...i.map((u,b)=>`${u}${"_".repeat(b+1)}`)].join(" ")}return`${t}${e}`};class He{constructor(t,i){this.buffer="",this.classPrefix=i.classPrefix,t.walk(this)}addText(t){this.buffer+=ae(t)}openNode(t){if(!le(t))return;const i=Le(t.scope,{prefix:this.classPrefix});this.span(i)}closeNode(t){le(t)&&(this.buffer+=Ce)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const ue=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class Z{constructor(){this.rootNode=ue(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const i=ue({scope:t});this.add(i),this.stack.push(i)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,i){return typeof i=="string"?t.addText(i):i.children&&(t.openNode(i),i.children.forEach(u=>this._walk(t,u)),t.closeNode(i)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(i=>typeof i=="string")?t.children=[t.children.join("")]:t.children.forEach(i=>{Z._collapse(i)}))}}class je extends Z{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,i){const u=t.root;i&&(u.scope=`language:${i}`),this.add(u)}toHTML(){return new He(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function j(e){return e?typeof e=="string"?e:e.source:null}function fe(e){return D("(?=",e,")")}function Pe(e){return D("(?:",e,")*")}function Ue(e){return D("(?:",e,")?")}function D(...e){return e.map(i=>j(i)).join("")}function $e(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function J(...e){return"("+($e(e).capture?"":"?:")+e.map(u=>j(u)).join("|")+")"}function ge(e){return new RegExp(e.toString()+"|").exec("").length-1}function Ge(e,t){const i=e&&e.exec(t);return i&&i.index===0}const We=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function q(e,{joinWith:t}){let i=0;return e.map(u=>{i+=1;const b=i;let _=j(u),c="";for(;_.length>0;){const r=We.exec(_);if(!r){c+=_;break}c+=_.substring(0,r.index),_=_.substring(r.index+r[0].length),r[0][0]==="\\"&&r[1]?c+="\\"+String(Number(r[1])+b):(c+=r[0],r[0]==="("&&i++)}return c}).map(u=>`(${u})`).join(t)}const Ke=/\b\B/,he="[a-zA-Z]\\w*",V="[a-zA-Z_]\\w*",pe="\\b\\d+(\\.\\d+)?",de="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Ee="\\b(0b[01]+)",Fe="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ze=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=D(t,/.*\b/,e.binary,/\b.*/)),T({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(i,u)=>{i.index!==0&&u.ignoreMatch()}},e)},P={begin:"\\\\[\\s\\S]",relevance:0},Xe={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[P]},Ye={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[P]},Ze={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},$=function(e,t,i={}){const u=T({scope:"comment",begin:e,end:t,contains:[]},i);u.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const b=J("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return u.contains.push({begin:D(/[ ]+/,"(",b,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),u},Je=$("//","$"),qe=$("/\\*","\\*/"),Ve=$("#","$"),Qe={scope:"number",begin:pe,relevance:0},me={scope:"number",begin:de,relevance:0},et={scope:"number",begin:Ee,relevance:0},tt={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[P,{begin:/\[/,end:/\]/,relevance:0,contains:[P]}]},nt={scope:"title",begin:he,relevance:0},it={scope:"title",begin:V,relevance:0},st={begin:"\\.\\s*"+V,relevance:0};var G=Object.freeze({__proto__:null,APOS_STRING_MODE:Xe,BACKSLASH_ESCAPE:P,BINARY_NUMBER_MODE:et,BINARY_NUMBER_RE:Ee,COMMENT:$,C_BLOCK_COMMENT_MODE:qe,C_LINE_COMMENT_MODE:Je,C_NUMBER_MODE:me,C_NUMBER_RE:de,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(t,i)=>{i.data._beginMatch=t[1]},"on:end":(t,i)=>{i.data._beginMatch!==t[1]&&i.ignoreMatch()}})},HASH_COMMENT_MODE:Ve,IDENT_RE:he,MATCH_NOTHING_RE:Ke,METHOD_GUARD:st,NUMBER_MODE:Qe,NUMBER_RE:pe,PHRASAL_WORDS_MODE:Ze,QUOTE_STRING_MODE:Ye,REGEXP_MODE:tt,RE_STARTERS_RE:Fe,SHEBANG:ze,TITLE_MODE:nt,UNDERSCORE_IDENT_RE:V,UNDERSCORE_TITLE_MODE:it});function rt(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function ct(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function ot(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=rt,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function at(e,t){Array.isArray(e.illegal)&&(e.illegal=J(...e.illegal))}function lt(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function ut(e,t){e.relevance===void 0&&(e.relevance=1)}const ft=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const i=Object.assign({},e);Object.keys(e).forEach(u=>{delete e[u]}),e.keywords=i.keywords,e.begin=D(i.beforeMatch,fe(i.begin)),e.starts={relevance:0,contains:[Object.assign(i,{endsParent:!0})]},e.relevance=0,delete i.beforeMatch},gt=["of","and","for","in","not","or","if","then","parent","list","value"],ht="keyword";function be(e,t,i=ht){const u=Object.create(null);return typeof e=="string"?b(i,e.split(" ")):Array.isArray(e)?b(i,e):Object.keys(e).forEach(function(_){Object.assign(u,be(e[_],t,_))}),u;function b(_,c){t&&(c=c.map(r=>r.toLowerCase())),c.forEach(function(r){const l=r.split("|");u[l[0]]=[_,pt(l[0],l[1])]})}}function pt(e,t){return t?Number(t):dt(e)?0:1}function dt(e){return gt.includes(e.toLowerCase())}const _e={},v=e=>{console.error(e)},Me=(e,...t)=>{console.log(`WARN: ${e}`,...t)},L=(e,t)=>{_e[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),_e[`${e}/${t}`]=!0)},W=new Error;function xe(e,t,{key:i}){let u=0;const b=e[i],_={},c={};for(let r=1;r<=t.length;r++)c[r+u]=b[r],_[r+u]=!0,u+=ge(t[r-1]);e[i]=c,e[i]._emit=_,e[i]._multi=!0}function Et(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw v("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),W;if(typeof e.beginScope!="object"||e.beginScope===null)throw v("beginScope must be object"),W;xe(e,e.begin,{key:"beginScope"}),e.begin=q(e.begin,{joinWith:""})}}function bt(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw v("skip, excludeEnd, returnEnd not compatible with endScope: {}"),W;if(typeof e.endScope!="object"||e.endScope===null)throw v("endScope must be object"),W;xe(e,e.end,{key:"endScope"}),e.end=q(e.end,{joinWith:""})}}function _t(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function Mt(e){_t(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),Et(e),bt(e)}function xt(e){function t(c,r){return new RegExp(j(c),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(r?"g":""))}class i{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(r,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,r]),this.matchAt+=ge(r)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const r=this.regexes.map(l=>l[1]);this.matcherRe=t(q(r,{joinWith:"|"}),!0),this.lastIndex=0}exec(r){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(r);if(!l)return null;const w=l.findIndex((U,m)=>m>0&&U!==void 0),M=this.matchIndexes[w];return l.splice(0,w),Object.assign(l,M)}}class u{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(r){if(this.multiRegexes[r])return this.multiRegexes[r];const l=new i;return this.rules.slice(r).forEach(([w,M])=>l.addRule(w,M)),l.compile(),this.multiRegexes[r]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(r,l){this.rules.push([r,l]),l.type==="begin"&&this.count++}exec(r){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let w=l.exec(r);if(this.resumingScanAtSamePosition()&&!(w&&w.index===this.lastIndex)){const M=this.getMatcher(0);M.lastIndex=this.lastIndex+1,w=M.exec(r)}return w&&(this.regexIndex+=w.position+1,this.regexIndex===this.count&&this.considerAll()),w}}function b(c){const r=new u;return c.contains.forEach(l=>r.addRule(l.begin,{rule:l,type:"begin"})),c.terminatorEnd&&r.addRule(c.terminatorEnd,{type:"end"}),c.illegal&&r.addRule(c.illegal,{type:"illegal"}),r}function _(c,r){const l=c;if(c.isCompiled)return l;[ct,lt,Mt,ft].forEach(M=>M(c,r)),e.compilerExtensions.forEach(M=>M(c,r)),c.__beforeBegin=null,[ot,at,ut].forEach(M=>M(c,r)),c.isCompiled=!0;let w=null;return typeof c.keywords=="object"&&c.keywords.$pattern&&(c.keywords=Object.assign({},c.keywords),w=c.keywords.$pattern,delete c.keywords.$pattern),w=w||/\w+/,c.keywords&&(c.keywords=be(c.keywords,e.case_insensitive)),l.keywordPatternRe=t(w,!0),r&&(c.begin||(c.begin=/\B|\b/),l.beginRe=t(l.begin),!c.end&&!c.endsWithParent&&(c.end=/\B|\b/),c.end&&(l.endRe=t(l.end)),l.terminatorEnd=j(l.end)||"",c.endsWithParent&&r.terminatorEnd&&(l.terminatorEnd+=(c.end?"|":"")+r.terminatorEnd)),c.illegal&&(l.illegalRe=t(c.illegal)),c.contains||(c.contains=[]),c.contains=[].concat(...c.contains.map(function(M){return wt(M==="self"?c:M)})),c.contains.forEach(function(M){_(M,l)}),c.starts&&_(c.starts,r),l.matcher=b(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=T(e.classNameAliases||{}),_(e)}function we(e){return e?e.endsWithParent||we(e.starts):!1}function wt(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return T(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:we(e)?T(e,{starts:e.starts?T(e.starts):null}):Object.isFrozen(e)?T(e):e}var Ot="11.11.1";class Rt extends Error{constructor(t,i){super(t),this.name="HTMLInjectionError",this.html=i}}const Q=ae,Oe=T,Re=Symbol("nomatch"),yt=7,ye=function(e){const t=Object.create(null),i=Object.create(null),u=[];let b=!0;const _="Could not find the language '{}', did you forget to load/include a language module?",c={disableAutodetect:!0,name:"Plain text",contains:[]};let r={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:je};function l(n){return r.noHighlightRe.test(n)}function w(n){let a=n.className+" ";a+=n.parentNode?n.parentNode.className:"";const h=r.languageDetectRe.exec(a);if(h){const d=I(h[1]);return d||(Me(_.replace("{}",h[1])),Me("Falling back to no-highlight mode for this block.",n)),d?h[1]:"no-highlight"}return a.split(/\s+/).find(d=>l(d)||I(d))}function M(n,a,h){let d="",x="";typeof a=="object"?(d=n,h=a.ignoreIllegals,x=a.language):(L("10.7.0","highlight(lang, code, ...args) has been deprecated."),L("10.7.0",`Please use highlight(code, options) instead.
1
+ import{am as Kt}from"./vendor-ui-DXwyveTF.js";var re,ve;function Ft(){if(ve)return re;ve=1;function ce(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const i=e[t],u=typeof i;(u==="object"||u==="function")&&!Object.isFrozen(i)&&ce(i)}),e}class oe{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function ae(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function T(e,...t){const i=Object.create(null);for(const u in e)i[u]=e[u];return t.forEach(function(u){for(const b in u)i[b]=u[b]}),i}const Ce="</span>",le=e=>!!e.scope,Le=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const i=e.split(".");return[`${t}${i.shift()}`,...i.map((u,b)=>`${u}${"_".repeat(b+1)}`)].join(" ")}return`${t}${e}`};class He{constructor(t,i){this.buffer="",this.classPrefix=i.classPrefix,t.walk(this)}addText(t){this.buffer+=ae(t)}openNode(t){if(!le(t))return;const i=Le(t.scope,{prefix:this.classPrefix});this.span(i)}closeNode(t){le(t)&&(this.buffer+=Ce)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const ue=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class Z{constructor(){this.rootNode=ue(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const i=ue({scope:t});this.add(i),this.stack.push(i)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,i){return typeof i=="string"?t.addText(i):i.children&&(t.openNode(i),i.children.forEach(u=>this._walk(t,u)),t.closeNode(i)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(i=>typeof i=="string")?t.children=[t.children.join("")]:t.children.forEach(i=>{Z._collapse(i)}))}}class je extends Z{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,i){const u=t.root;i&&(u.scope=`language:${i}`),this.add(u)}toHTML(){return new He(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function j(e){return e?typeof e=="string"?e:e.source:null}function fe(e){return D("(?=",e,")")}function Pe(e){return D("(?:",e,")*")}function Ue(e){return D("(?:",e,")?")}function D(...e){return e.map(i=>j(i)).join("")}function $e(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function J(...e){return"("+($e(e).capture?"":"?:")+e.map(u=>j(u)).join("|")+")"}function ge(e){return new RegExp(e.toString()+"|").exec("").length-1}function Ge(e,t){const i=e&&e.exec(t);return i&&i.index===0}const We=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function q(e,{joinWith:t}){let i=0;return e.map(u=>{i+=1;const b=i;let _=j(u),c="";for(;_.length>0;){const r=We.exec(_);if(!r){c+=_;break}c+=_.substring(0,r.index),_=_.substring(r.index+r[0].length),r[0][0]==="\\"&&r[1]?c+="\\"+String(Number(r[1])+b):(c+=r[0],r[0]==="("&&i++)}return c}).map(u=>`(${u})`).join(t)}const Ke=/\b\B/,he="[a-zA-Z]\\w*",V="[a-zA-Z_]\\w*",pe="\\b\\d+(\\.\\d+)?",de="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Ee="\\b(0b[01]+)",Fe="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ze=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=D(t,/.*\b/,e.binary,/\b.*/)),T({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(i,u)=>{i.index!==0&&u.ignoreMatch()}},e)},P={begin:"\\\\[\\s\\S]",relevance:0},Xe={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[P]},Ye={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[P]},Ze={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},$=function(e,t,i={}){const u=T({scope:"comment",begin:e,end:t,contains:[]},i);u.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const b=J("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return u.contains.push({begin:D(/[ ]+/,"(",b,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),u},Je=$("//","$"),qe=$("/\\*","\\*/"),Ve=$("#","$"),Qe={scope:"number",begin:pe,relevance:0},me={scope:"number",begin:de,relevance:0},et={scope:"number",begin:Ee,relevance:0},tt={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[P,{begin:/\[/,end:/\]/,relevance:0,contains:[P]}]},nt={scope:"title",begin:he,relevance:0},it={scope:"title",begin:V,relevance:0},st={begin:"\\.\\s*"+V,relevance:0};var G=Object.freeze({__proto__:null,APOS_STRING_MODE:Xe,BACKSLASH_ESCAPE:P,BINARY_NUMBER_MODE:et,BINARY_NUMBER_RE:Ee,COMMENT:$,C_BLOCK_COMMENT_MODE:qe,C_LINE_COMMENT_MODE:Je,C_NUMBER_MODE:me,C_NUMBER_RE:de,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(t,i)=>{i.data._beginMatch=t[1]},"on:end":(t,i)=>{i.data._beginMatch!==t[1]&&i.ignoreMatch()}})},HASH_COMMENT_MODE:Ve,IDENT_RE:he,MATCH_NOTHING_RE:Ke,METHOD_GUARD:st,NUMBER_MODE:Qe,NUMBER_RE:pe,PHRASAL_WORDS_MODE:Ze,QUOTE_STRING_MODE:Ye,REGEXP_MODE:tt,RE_STARTERS_RE:Fe,SHEBANG:ze,TITLE_MODE:nt,UNDERSCORE_IDENT_RE:V,UNDERSCORE_TITLE_MODE:it});function rt(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function ct(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function ot(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=rt,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function at(e,t){Array.isArray(e.illegal)&&(e.illegal=J(...e.illegal))}function lt(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function ut(e,t){e.relevance===void 0&&(e.relevance=1)}const ft=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const i=Object.assign({},e);Object.keys(e).forEach(u=>{delete e[u]}),e.keywords=i.keywords,e.begin=D(i.beforeMatch,fe(i.begin)),e.starts={relevance:0,contains:[Object.assign(i,{endsParent:!0})]},e.relevance=0,delete i.beforeMatch},gt=["of","and","for","in","not","or","if","then","parent","list","value"],ht="keyword";function be(e,t,i=ht){const u=Object.create(null);return typeof e=="string"?b(i,e.split(" ")):Array.isArray(e)?b(i,e):Object.keys(e).forEach(function(_){Object.assign(u,be(e[_],t,_))}),u;function b(_,c){t&&(c=c.map(r=>r.toLowerCase())),c.forEach(function(r){const l=r.split("|");u[l[0]]=[_,pt(l[0],l[1])]})}}function pt(e,t){return t?Number(t):dt(e)?0:1}function dt(e){return gt.includes(e.toLowerCase())}const _e={},v=e=>{console.error(e)},Me=(e,...t)=>{console.log(`WARN: ${e}`,...t)},L=(e,t)=>{_e[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),_e[`${e}/${t}`]=!0)},W=new Error;function xe(e,t,{key:i}){let u=0;const b=e[i],_={},c={};for(let r=1;r<=t.length;r++)c[r+u]=b[r],_[r+u]=!0,u+=ge(t[r-1]);e[i]=c,e[i]._emit=_,e[i]._multi=!0}function Et(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw v("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),W;if(typeof e.beginScope!="object"||e.beginScope===null)throw v("beginScope must be object"),W;xe(e,e.begin,{key:"beginScope"}),e.begin=q(e.begin,{joinWith:""})}}function bt(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw v("skip, excludeEnd, returnEnd not compatible with endScope: {}"),W;if(typeof e.endScope!="object"||e.endScope===null)throw v("endScope must be object"),W;xe(e,e.end,{key:"endScope"}),e.end=q(e.end,{joinWith:""})}}function _t(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function Mt(e){_t(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),Et(e),bt(e)}function xt(e){function t(c,r){return new RegExp(j(c),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(r?"g":""))}class i{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(r,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,r]),this.matchAt+=ge(r)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const r=this.regexes.map(l=>l[1]);this.matcherRe=t(q(r,{joinWith:"|"}),!0),this.lastIndex=0}exec(r){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(r);if(!l)return null;const w=l.findIndex((U,m)=>m>0&&U!==void 0),M=this.matchIndexes[w];return l.splice(0,w),Object.assign(l,M)}}class u{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(r){if(this.multiRegexes[r])return this.multiRegexes[r];const l=new i;return this.rules.slice(r).forEach(([w,M])=>l.addRule(w,M)),l.compile(),this.multiRegexes[r]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(r,l){this.rules.push([r,l]),l.type==="begin"&&this.count++}exec(r){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let w=l.exec(r);if(this.resumingScanAtSamePosition()&&!(w&&w.index===this.lastIndex)){const M=this.getMatcher(0);M.lastIndex=this.lastIndex+1,w=M.exec(r)}return w&&(this.regexIndex+=w.position+1,this.regexIndex===this.count&&this.considerAll()),w}}function b(c){const r=new u;return c.contains.forEach(l=>r.addRule(l.begin,{rule:l,type:"begin"})),c.terminatorEnd&&r.addRule(c.terminatorEnd,{type:"end"}),c.illegal&&r.addRule(c.illegal,{type:"illegal"}),r}function _(c,r){const l=c;if(c.isCompiled)return l;[ct,lt,Mt,ft].forEach(M=>M(c,r)),e.compilerExtensions.forEach(M=>M(c,r)),c.__beforeBegin=null,[ot,at,ut].forEach(M=>M(c,r)),c.isCompiled=!0;let w=null;return typeof c.keywords=="object"&&c.keywords.$pattern&&(c.keywords=Object.assign({},c.keywords),w=c.keywords.$pattern,delete c.keywords.$pattern),w=w||/\w+/,c.keywords&&(c.keywords=be(c.keywords,e.case_insensitive)),l.keywordPatternRe=t(w,!0),r&&(c.begin||(c.begin=/\B|\b/),l.beginRe=t(l.begin),!c.end&&!c.endsWithParent&&(c.end=/\B|\b/),c.end&&(l.endRe=t(l.end)),l.terminatorEnd=j(l.end)||"",c.endsWithParent&&r.terminatorEnd&&(l.terminatorEnd+=(c.end?"|":"")+r.terminatorEnd)),c.illegal&&(l.illegalRe=t(c.illegal)),c.contains||(c.contains=[]),c.contains=[].concat(...c.contains.map(function(M){return wt(M==="self"?c:M)})),c.contains.forEach(function(M){_(M,l)}),c.starts&&_(c.starts,r),l.matcher=b(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=T(e.classNameAliases||{}),_(e)}function we(e){return e?e.endsWithParent||we(e.starts):!1}function wt(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return T(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:we(e)?T(e,{starts:e.starts?T(e.starts):null}):Object.isFrozen(e)?T(e):e}var Ot="11.11.1";class Rt extends Error{constructor(t,i){super(t),this.name="HTMLInjectionError",this.html=i}}const Q=ae,Oe=T,Re=Symbol("nomatch"),yt=7,ye=function(e){const t=Object.create(null),i=Object.create(null),u=[];let b=!0;const _="Could not find the language '{}', did you forget to load/include a language module?",c={disableAutodetect:!0,name:"Plain text",contains:[]};let r={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:je};function l(n){return r.noHighlightRe.test(n)}function w(n){let a=n.className+" ";a+=n.parentNode?n.parentNode.className:"";const h=r.languageDetectRe.exec(a);if(h){const d=I(h[1]);return d||(Me(_.replace("{}",h[1])),Me("Falling back to no-highlight mode for this block.",n)),d?h[1]:"no-highlight"}return a.split(/\s+/).find(d=>l(d)||I(d))}function M(n,a,h){let d="",x="";typeof a=="object"?(d=n,h=a.ignoreIllegals,x=a.language):(L("10.7.0","highlight(lang, code, ...args) has been deprecated."),L("10.7.0",`Please use highlight(code, options) instead.
2
2
  https://github.com/highlightjs/highlight.js/issues/2277`),x=n,d=a),h===void 0&&(h=!0);const S={code:d,language:x};F("before:highlight",S);const B=S.result?S.result:U(S.language,S.code,h);return B.code=S.code,F("after:highlight",B),B}function U(n,a,h,d){const x=Object.create(null);function S(s,o){return s.keywords[o]}function B(){if(!f.keywords){O.addText(E);return}let s=0;f.keywordPatternRe.lastIndex=0;let o=f.keywordPatternRe.exec(E),g="";for(;o;){g+=E.substring(s,o.index);const p=A.case_insensitive?o[0].toLowerCase():o[0],R=S(f,p);if(R){const[k,Gt]=R;if(O.addText(g),g="",x[p]=(x[p]||0)+1,x[p]<=yt&&(Y+=Gt),k.startsWith("_"))g+=o[0];else{const Wt=A.classNameAliases[k]||k;N(o[0],Wt)}}else g+=o[0];s=f.keywordPatternRe.lastIndex,o=f.keywordPatternRe.exec(E)}g+=E.substring(s),O.addText(g)}function z(){if(E==="")return;let s=null;if(typeof f.subLanguage=="string"){if(!t[f.subLanguage]){O.addText(E);return}s=U(f.subLanguage,E,!0,De[f.subLanguage]),De[f.subLanguage]=s._top}else s=ee(E,f.subLanguage.length?f.subLanguage:null);f.relevance>0&&(Y+=s.relevance),O.__addSublanguage(s._emitter,s.language)}function y(){f.subLanguage!=null?z():B(),E=""}function N(s,o){s!==""&&(O.startScope(o),O.addText(s),O.endScope())}function ke(s,o){let g=1;const p=o.length-1;for(;g<=p;){if(!s._emit[g]){g++;continue}const R=A.classNameAliases[s[g]]||s[g],k=o[g];R?N(k,R):(E=k,B(),E=""),g++}}function Te(s,o){return s.scope&&typeof s.scope=="string"&&O.openNode(A.classNameAliases[s.scope]||s.scope),s.beginScope&&(s.beginScope._wrap?(N(E,A.classNameAliases[s.beginScope._wrap]||s.beginScope._wrap),E=""):s.beginScope._multi&&(ke(s.beginScope,o),E="")),f=Object.create(s,{parent:{value:f}}),f}function Ie(s,o,g){let p=Ge(s.endRe,g);if(p){if(s["on:end"]){const R=new oe(s);s["on:end"](o,R),R.isMatchIgnored&&(p=!1)}if(p){for(;s.endsParent&&s.parent;)s=s.parent;return s}}if(s.endsWithParent)return Ie(s.parent,o,g)}function Ht(s){return f.matcher.regexIndex===0?(E+=s[0],1):(se=!0,0)}function jt(s){const o=s[0],g=s.rule,p=new oe(g),R=[g.__beforeBegin,g["on:begin"]];for(const k of R)if(k&&(k(s,p),p.isMatchIgnored))return Ht(o);return g.skip?E+=o:(g.excludeBegin&&(E+=o),y(),!g.returnBegin&&!g.excludeBegin&&(E=o)),Te(g,s),g.returnBegin?0:o.length}function Pt(s){const o=s[0],g=a.substring(s.index),p=Ie(f,s,g);if(!p)return Re;const R=f;f.endScope&&f.endScope._wrap?(y(),N(o,f.endScope._wrap)):f.endScope&&f.endScope._multi?(y(),ke(f.endScope,s)):R.skip?E+=o:(R.returnEnd||R.excludeEnd||(E+=o),y(),R.excludeEnd&&(E=o));do f.scope&&O.closeNode(),!f.skip&&!f.subLanguage&&(Y+=f.relevance),f=f.parent;while(f!==p.parent);return p.starts&&Te(p.starts,s),R.returnEnd?0:o.length}function Ut(){const s=[];for(let o=f;o!==A;o=o.parent)o.scope&&s.unshift(o.scope);s.forEach(o=>O.openNode(o))}let X={};function Be(s,o){const g=o&&o[0];if(E+=s,g==null)return y(),0;if(X.type==="begin"&&o.type==="end"&&X.index===o.index&&g===""){if(E+=a.slice(o.index,o.index+1),!b){const p=new Error(`0 width match regex (${n})`);throw p.languageName=n,p.badRule=X.rule,p}return 1}if(X=o,o.type==="begin")return jt(o);if(o.type==="illegal"&&!h){const p=new Error('Illegal lexeme "'+g+'" for mode "'+(f.scope||"<unnamed>")+'"');throw p.mode=f,p}else if(o.type==="end"){const p=Pt(o);if(p!==Re)return p}if(o.type==="illegal"&&g==="")return E+=`
3
3
  `,1;if(ie>1e5&&ie>o.index*3)throw new Error("potential infinite loop, way more iterations than matches");return E+=g,g.length}const A=I(n);if(!A)throw v(_.replace("{}",n)),new Error('Unknown language: "'+n+'"');const $t=xt(A);let ne="",f=d||$t;const De={},O=new r.__emitter(r);Ut();let E="",Y=0,C=0,ie=0,se=!1;try{if(A.__emitTokens)A.__emitTokens(a,O);else{for(f.matcher.considerAll();;){ie++,se?se=!1:f.matcher.considerAll(),f.matcher.lastIndex=C;const s=f.matcher.exec(a);if(!s)break;const o=a.substring(C,s.index),g=Be(o,s);C=s.index+g}Be(a.substring(C))}return O.finalize(),ne=O.toHTML(),{language:n,value:ne,relevance:Y,illegal:!1,_emitter:O,_top:f}}catch(s){if(s.message&&s.message.includes("Illegal"))return{language:n,value:Q(a),illegal:!0,relevance:0,_illegalBy:{message:s.message,index:C,context:a.slice(C-100,C+100),mode:s.mode,resultSoFar:ne},_emitter:O};if(b)return{language:n,value:Q(a),illegal:!1,relevance:0,errorRaised:s,_emitter:O,_top:f};throw s}}function m(n){const a={value:Q(n),illegal:!1,relevance:0,_top:c,_emitter:new r.__emitter(r)};return a._emitter.addText(n),a}function ee(n,a){a=a||r.languages||Object.keys(t);const h=m(n),d=a.filter(I).filter(Ae).map(y=>U(y,n,!1));d.unshift(h);const x=d.sort((y,N)=>{if(y.relevance!==N.relevance)return N.relevance-y.relevance;if(y.language&&N.language){if(I(y.language).supersetOf===N.language)return 1;if(I(N.language).supersetOf===y.language)return-1}return 0}),[S,B]=x,z=S;return z.secondBest=B,z}function St(n,a,h){const d=a&&i[a]||h;n.classList.add("hljs"),n.classList.add(`language-${d}`)}function te(n){let a=null;const h=w(n);if(l(h))return;if(F("before:highlightElement",{el:n,language:h}),n.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",n);return}if(n.children.length>0&&(r.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(n)),r.throwUnescapedHTML))throw new Rt("One of your code blocks includes unescaped HTML.",n.innerHTML);a=n;const d=a.textContent,x=h?M(d,{language:h,ignoreIllegals:!0}):ee(d);n.innerHTML=x.value,n.dataset.highlighted="yes",St(n,h,x.language),n.result={language:x.language,re:x.relevance,relevance:x.relevance},x.secondBest&&(n.secondBest={language:x.secondBest.language,relevance:x.secondBest.relevance}),F("after:highlightElement",{el:n,result:x,text:d})}function Nt(n){r=Oe(r,n)}const At=()=>{K(),L("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function kt(){K(),L("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Se=!1;function K(){function n(){K()}if(document.readyState==="loading"){Se||window.addEventListener("DOMContentLoaded",n,!1),Se=!0;return}document.querySelectorAll(r.cssSelector).forEach(te)}function Tt(n,a){let h=null;try{h=a(e)}catch(d){if(v("Language definition for '{}' could not be registered.".replace("{}",n)),b)v(d);else throw d;h=c}h.name||(h.name=n),t[n]=h,h.rawDefinition=a.bind(null,e),h.aliases&&Ne(h.aliases,{languageName:n})}function It(n){delete t[n];for(const a of Object.keys(i))i[a]===n&&delete i[a]}function Bt(){return Object.keys(t)}function I(n){return n=(n||"").toLowerCase(),t[n]||t[i[n]]}function Ne(n,{languageName:a}){typeof n=="string"&&(n=[n]),n.forEach(h=>{i[h.toLowerCase()]=a})}function Ae(n){const a=I(n);return a&&!a.disableAutodetect}function Dt(n){n["before:highlightBlock"]&&!n["before:highlightElement"]&&(n["before:highlightElement"]=a=>{n["before:highlightBlock"](Object.assign({block:a.el},a))}),n["after:highlightBlock"]&&!n["after:highlightElement"]&&(n["after:highlightElement"]=a=>{n["after:highlightBlock"](Object.assign({block:a.el},a))})}function vt(n){Dt(n),u.push(n)}function Ct(n){const a=u.indexOf(n);a!==-1&&u.splice(a,1)}function F(n,a){const h=n;u.forEach(function(d){d[h]&&d[h](a)})}function Lt(n){return L("10.7.0","highlightBlock will be removed entirely in v12.0"),L("10.7.0","Please use highlightElement now."),te(n)}Object.assign(e,{highlight:M,highlightAuto:ee,highlightAll:K,highlightElement:te,highlightBlock:Lt,configure:Nt,initHighlighting:At,initHighlightingOnLoad:kt,registerLanguage:Tt,unregisterLanguage:It,listLanguages:Bt,getLanguage:I,registerAliases:Ne,autoDetection:Ae,inherit:Oe,addPlugin:vt,removePlugin:Ct}),e.debugMode=function(){b=!1},e.safeMode=function(){b=!0},e.versionString=Ot,e.regex={concat:D,lookahead:fe,either:J,optional:Ue,anyNumberOfTimes:Pe};for(const n in G)typeof G[n]=="object"&&ce(G[n]);return Object.assign(e,G),e},H=ye({});return H.newInstance=()=>ye({}),re=H,H.HighlightJS=H,H.default=H,re}var zt=Ft();const Zt=Kt(zt);export{Zt as H};
@@ -1 +1 @@
1
- import{D as n,J as i}from"./vendor-ui-D6wVBlls.js";import{v as p,aA as l,ab as d,l as m,ai as f,r as u,ax as a,aO as x,q as y,ap as o,i as w}from"./vendor-core-B-Si3WEf.js";const h=async e=>{if(!navigator.clipboard)throw new Error("剪贴板API不可用");try{await navigator.clipboard.writeText(e)}catch(t){throw console.error("复制失败:",t),new Error("无法复制文本")}},_={class:"flex items-center gap-[10px]"},E=p({__name:"CopyText",props:{text:{type:String,default:""}},setup(e){const{t}=l(),r=e;async function s(){await h(r.text),i.success(t("common.copySuccess"))}return(c,g)=>(d(),m("div",_,[f(c.$slots,"default",{},()=>[w("span",null,o(e.text),1)]),u(a(n),{type:"primary",href:"javascript:void(0)",onClick:s},{default:x(()=>[y(o(a(t)("common.copy")),1)]),_:1})]))}});export{E as _};
1
+ import{D as n,J as i}from"./vendor-ui-DXwyveTF.js";import{v as p,aA as l,ab as d,l as m,ai as f,i as u,ap as a,r as x,ax as o,aO as y,q as w}from"./vendor-core-CzvSW5ae.js";const h=async e=>{if(!navigator.clipboard)throw new Error("剪贴板API不可用");try{await navigator.clipboard.writeText(e)}catch(t){throw console.error("复制失败:",t),new Error("无法复制文本")}},_={class:"flex items-center gap-[10px]"},E=p({__name:"CopyText",props:{text:{type:String,default:""}},setup(e){const{t}=l(),r=e;async function s(){await h(r.text),i.success(t("common.copySuccess"))}return(c,g)=>(d(),m("div",_,[f(c.$slots,"default",{},()=>[u("span",null,a(e.text),1)]),x(o(n),{type:"primary",href:"javascript:void(0)",onClick:s},{default:y(()=>[w(a(o(t)("common.copy")),1)]),_:1})]))}});export{E as _};
@@ -1 +1 @@
1
- import{I as o}from"./index-CMvx8gm3.js";import{ab as h,j as a,ax as n}from"./vendor-core-B-Si3WEf.js";const i='<path class="ox_sfhbjq"/>',l={__name:"home-rounded",props:["width","height"],setup(t){const e={width:24,height:24};return(c,s)=>(h(),a(n(o),{width:t.width,height:t.height,viewBox:e,content:i,fallback:"material-symbols:home-rounded"},null,8,["width","height"]))}};export{l as default};
1
+ import{I as o}from"./index-0Y9kW7YJ.js";import{ab as h,j as a,ax as n}from"./vendor-core-CzvSW5ae.js";const i='<path class="ox_sfhbjq"/>',l={__name:"home-rounded",props:["width","height"],setup(t){const e={width:24,height:24};return(c,s)=>(h(),a(n(o),{width:t.width,height:t.height,viewBox:e,content:i,fallback:"material-symbols:home-rounded"},null,8,["width","height"]))}};export{l as default};
@@ -1 +1 @@
1
- import{v as V,aM as B,a9 as G,B as H,g as S,ao as _}from"./vendor-core-B-Si3WEf.js";const q=/\sid="(\S+)"/g,P=new Map;function K(t){t=t.replace(/[0-9]+$/,"")||"a";const s=P.get(t)||0;return P.set(t,s+1),s?`${t}${s}`:t}function Q(t){const s=[];let n;for(;n=q.exec(t);)s.push(n[1]);if(!s.length)return t;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return s.forEach(e=>{const r=K(e),i=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+r+o+"$3")}),t=t.replace(new RegExp(o,"g"),""),t}const U=Object.freeze({left:0,top:0,width:16,height:16}),I=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),k=Object.freeze({...U,...I}),W=Object.freeze({...k,body:"",hidden:!1}),J=/(-?[0-9.]*[0-9]+[0-9.]*)/g,X=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function x(t,s,n){if(s===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*s*n)/n;if(typeof t!="string")return t;const o=t.split(J);if(o===null||!o.length)return t;const e=[];let r=o.shift(),i=X.test(r);for(;;){if(i){const c=parseFloat(r);isNaN(c)?e.push(r):e.push(Math.ceil(c*s*n)/n)}else e.push(r);if(r=o.shift(),r===void 0)return e.join("");i=!i}}const Y=Object.freeze({width:null,height:null}),Z=Object.freeze({...Y,...I});function tt(t,s="defs"){let n="";const o=t.indexOf("<"+s);for(;o>=0;){const e=t.indexOf(">",o),r=t.indexOf("</"+s);if(e===-1||r===-1)break;const i=t.indexOf(">",r);if(i===-1)break;n+=t.slice(e+1,r).trim(),t=t.slice(0,o).trim()+t.slice(i+1)}return{defs:n,content:t}}function et(t,s){return t?"<defs>"+t+"</defs>"+s:s}function nt(t,s,n){const o=tt(t);return et(o.defs,s+o.content+n)}const ot=t=>t==="unset"||t==="undefined"||t==="none";function st(t,s){const n={...k,...t},o={...Z,...s},e={left:n.left,top:n.top,width:n.width,height:n.height};let r=n.body;[n,o].forEach(d=>{const h=[],R=d.hFlip,C=d.vFlip;let m=d.rotate;R?C?m+=2:(h.push("translate("+(e.width+e.left).toString()+" "+(0-e.top).toString()+")"),h.push("scale(-1 1)"),e.top=e.left=0):C&&(h.push("translate("+(0-e.left).toString()+" "+(e.height+e.top).toString()+")"),h.push("scale(1 -1)"),e.top=e.left=0);let w;switch(m<0&&(m-=Math.floor(m/4)*4),m=m%4,m){case 1:w=e.height/2+e.top,h.unshift("rotate(90 "+w.toString()+" "+w.toString()+")");break;case 2:h.unshift("rotate(180 "+(e.width/2+e.left).toString()+" "+(e.height/2+e.top).toString()+")");break;case 3:w=e.width/2+e.left,h.unshift("rotate(-90 "+w.toString()+" "+w.toString()+")");break}m%2===1&&(e.left!==e.top&&(w=e.left,e.left=e.top,e.top=w),e.width!==e.height&&(w=e.width,e.width=e.height,e.height=w)),h.length&&(r=nt(r,'<g transform="'+h.join(" ")+'">',"</g>"))});const i=o.width,c=o.height,a=e.width,f=e.height;let l,u;i===null?(u=c===null?"1em":c==="auto"?f:c,l=x(u,a/f)):(l=i==="auto"?a:i,u=c===null?x(l,f/a):c==="auto"?f:c);const p={},g=(d,h)=>{ot(h)||(p[d]=h.toString())};g("width",l),g("height",u);const b=[e.left,e.top,a,f];return p.viewBox=b.join(" "),{attributes:p,viewBox:b,body:r}}function T(t){return Q(typeof t=="string"?t:st(t).body)}function rt(t){return`${t.left??0} ${t.top??0} ${t.width} ${t.height}`}function it(t,s,n){const o=typeof n=="object"?rt(n):void 0,e=typeof n=="number"?n:n.width/n.height;return t&&s?{width:t,height:s,viewBox:o}:s?{width:x(s,e),height:s,viewBox:o}:t?{width:t,height:x(t,1/e),viewBox:o}:{viewBox:o}}const y=Object.create(null),ct=Object.create(null);function lt(t,s){y[t]=s}function at(t,s){return t?y[t]:ct[s]||y[""]}const v=new Set;let j=!1;function F(t){try{const s=t();s instanceof Promise&&s.catch(n=>{console.error(n)})}catch(s){console.error(s)}}function M(t,s=!1){if(s){F(t);return}v.add(t),j||(j=!0,setTimeout(()=>{j=!1;const n=Array.from(v);v.clear(),n.forEach(F)}))}function ut(){const t=new Set;let s=!1;const n=Object.create(null),o=new Set,e=new Set,r=[];function i(c,a){if(e.delete(c),a){if(n[c]===a)return;n[c]=a,o.delete(c)}else{if(o.has(c))return;delete n[c],o.add(c)}t.add(c),s||(s=!0,setTimeout(()=>{s=!1,r.forEach(f=>{for(const l of f.names)if(l==="*"||t.has(l)){M(f.callback);return}}),t.clear()}))}return{icons:n,missing:o,pending:e,subscribers:r,update:i}}const E=Object.create(null);function $(t,s){const n=E[t]||(E[t]=Object.create(null));return n[s]||(n[s]=ut())}function ft(t,s){const n={};!t.hFlip!=!s.hFlip&&(n.hFlip=!0),!t.vFlip!=!s.vFlip&&(n.vFlip=!0);const o=((t.rotate||0)+(s.rotate||0))%4;return o&&(n.rotate=o),n}function A(t,s){const n=ft(t,s);for(const o in W)o in I?o in t&&!(o in n)&&(n[o]=I[o]):o in s?n[o]=s[o]:o in t&&(n[o]=t[o]);return n}function ht(t,s){const n=t.icons,o=t.aliases||Object.create(null),e=Object.create(null);function r(i){if(n[i])return e[i]=[];if(!(i in e)){e[i]=null;const c=o[i]&&o[i].parent,a=c&&r(c);a&&(e[i]=[c].concat(a))}return e[i]}return Object.keys(n).concat(Object.keys(o)).forEach(r),e}function dt(t,s,n){const o=t.icons,e=t.aliases||Object.create(null);let r={};function i(c){r=A(o[c]||e[c],r)}return i(s),n.forEach(i),A(t,r)}function pt(t,s){const n=[];if(typeof t!="object"||typeof t.icons!="object")return n;t.not_found instanceof Array&&t.not_found.forEach(e=>{s(e,null),n.push(e)});const o=ht(t);for(const e in o){const r=o[e];r&&(s(e,dt(t,e,r)),n.push(e))}return n}function gt(t,s=""){const n=new Set,o=$(s,t.prefix);return pt(t,(e,r)=>{o.update(e,r),n.add(e)}),n}const N=/^[a-z0-9]+(-[a-z0-9]+)*$/,z=(t,s,n,o="")=>{const e=t.split(":");if(t.slice(0,1)==="@"){if(e.length<2||e.length>3)return null;o=e.shift().slice(1)}if(e.length>3||!e.length)return null;if(e.length>1){const c=e.pop(),a=e.pop();return{provider:e.length>0?e[0]:o,prefix:a,name:c}}const i=e[0].split("-");return i.length>1?{provider:o,prefix:i.shift(),name:i.join("-")}:null},L=new Map,bt=750;let wt=fetch;function mt(t,s,n,o){const e=t.join(","),r=L.get(e)||0,i=t.length;o=o||new AbortController,n=n||{},n.signal=o.signal;const c=[];for(let a=0;a<i;a++){const f=a,l=(r+f)%i,u=`${t[l]}${s}`,p=async()=>{for(let d=0;d<f;d++)if(await new Promise(h=>setTimeout(h,bt)),o.signal.aborted)throw new Error("Fetch aborted");const g=await wt(u,n);if(!g.ok)throw new Error(`HTTP error! status: ${g.status}`);const b=await g.json();return L.set(e,l),o.abort(),b};c.push(p())}return Promise.any(c)}function St(t,s,n=!0){const o=Array.isArray(t)?t:[t],e=n&&(typeof window>"u"||!window.document);return{maxCount:32,maxLength:480,validateNames:!0,hosts:o,loadIcons:async(r,i)=>e||!N.test(i)?{prefix:i,icons:Object.create(null),not_found:r}:await mt(o,`/${i}.json?icons=${r.join(",")}`,s)}}function It(t,s){for(const n in s){const o=s[n],e=t[n]||(t[n]=Object.create(null));for(const r in o){const i=o[r];e[r]?.length?e[r]=Array.from(new Set([...i,...e[r]])):e[r]=i.slice(0)}}}function xt(t,s){const n=Object.create(null);for(const o of t){const e=typeof o=="string"?z(o):o;if(e){const r=n[e.provider]||(n[e.provider]=Object.create(null)),i=r[e.prefix]||(r[e.prefix]=[]);i.includes(e.name)||i.push(e.name)}}return n}function vt(t,s){const{maxCount:n,maxLength:o}=s;t.sort((c,a)=>c.localeCompare(a));const e=[];let r=[],i=0;for(const c of t){const a=c.length+1;i&&(o&&i+a>o||n&&r.length>=n)&&(e.push(r),r=[],i=0),i+=a,r.push(c)}return r.length>0&&e.push(r),e}let O=Object.create(null);function jt(){const t=O;O=Object.create(null);for(const s in t){const n=t[s];for(const o in n){const e=n[o];if(e.length){const r=$(s,o),i=at(s,o),c=i?.allowReload??!1,a=i?.validateNames??!0,f=[];if(e.forEach(l=>{if(!r.pending.has(l)&&!((r.icons[l]||r.missing.has(l))&&!c)){if(!i||a&&!N.test(l)){r.update(l,null);return}f.push(l),r.pending.add(l)}}),i&&f.length){const l=[];if("loadIcon"in i)for(const u of f)l.push(new Promise(p=>{i.loadIcon(u,s,o).then(g=>{r.update(u,g),p()}).catch(()=>{r.update(u,null),p()})}));else{const u=vt(f,i);for(const p of u){const g=b=>{const d=b?gt(b,s):new Set;for(const h of p)d.has(h)||r.update(h,null)};l.push(new Promise(b=>{i.loadIcons(p,o,s).then(d=>{g(d),b()}).catch(()=>{g(),b()})}))}}Promise.all(l).catch(console.error)}}}}}function yt(t,s=!1){const n=Array.isArray(t)?xt(t):t;It(O,n),M(jt,s)}function D(t,s){const n=t.subscribers.findIndex(o=>o.key===s);n!==-1&&t.subscribers.splice(n,1)}function Ot(t,s,n,o){o&&D(t,o),o=o||Symbol();const e={key:o,names:new Set(s),callback:n};return t.subscribers.push(e),o}function Dt(t,s){const n=Symbol();let o=!1,e=!1,r=null,i=null,c;const a=()=>{if(!i||!r){c!==null&&(c=null,e&&s(null));return}const l=r.name,u=i.icons[l]||(i.missing.has(l)?null:void 0);u===void 0&&!i.pending.has(l)&&yt({[r.provider]:{[r.prefix]:[l]}}),c!==u&&(c=u,e&&s(c))},f=l=>{if(o)return;i&&D(i,n);const u=typeof l=="string"?z(l):{...l};if(u&&"body"in u){r=null,c=u,i=null;return}r=u,r?(i=$(r.provider,r.prefix),Ot(i,[r.name],a),a()):(i=null,a())};return f(t),e=!0,{unsubscribe:()=>{o=!0,i&&D(i,n)},change:f,data:c}}function $t(){try{return window.CSS.supports('d: path("M0 0")')}catch{return!0}}const Ct=$t();lt("",St(["https://api.iconify.design","https://api.simplesvg.com","https://api.unisvg.com"]));const Tt=V(t=>{const s=S(()=>T(t.content||"")),n=S(()=>Ct&&t.content?"":t.fallback||""),o=_(null),e=Dt(n.value,c=>{o.value=c});o.value=e.data,B(n,e.change),G(e.unsubscribe);const r=S(()=>{const c=o.value;return c?T(c):""}),i=S(()=>it(t.width,t.height,t.viewBox));return()=>H("svg",{xmlns:"http://www.w3.org/2000/svg",...i.value,innerHTML:r.value||s.value})},{props:["width","height","viewBox","content","fallback"]});export{Tt as I};
1
+ import{v as V,aM as B,a9 as G,B as H,g as S,ao as _}from"./vendor-core-CzvSW5ae.js";const q=/\sid="(\S+)"/g,P=new Map;function K(t){t=t.replace(/[0-9]+$/,"")||"a";const s=P.get(t)||0;return P.set(t,s+1),s?`${t}${s}`:t}function Q(t){const s=[];let n;for(;n=q.exec(t);)s.push(n[1]);if(!s.length)return t;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return s.forEach(e=>{const r=K(e),i=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+r+o+"$3")}),t=t.replace(new RegExp(o,"g"),""),t}const U=Object.freeze({left:0,top:0,width:16,height:16}),I=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),k=Object.freeze({...U,...I}),W=Object.freeze({...k,body:"",hidden:!1}),J=/(-?[0-9.]*[0-9]+[0-9.]*)/g,X=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function x(t,s,n){if(s===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*s*n)/n;if(typeof t!="string")return t;const o=t.split(J);if(o===null||!o.length)return t;const e=[];let r=o.shift(),i=X.test(r);for(;;){if(i){const c=parseFloat(r);isNaN(c)?e.push(r):e.push(Math.ceil(c*s*n)/n)}else e.push(r);if(r=o.shift(),r===void 0)return e.join("");i=!i}}const Y=Object.freeze({width:null,height:null}),Z=Object.freeze({...Y,...I});function tt(t,s="defs"){let n="";const o=t.indexOf("<"+s);for(;o>=0;){const e=t.indexOf(">",o),r=t.indexOf("</"+s);if(e===-1||r===-1)break;const i=t.indexOf(">",r);if(i===-1)break;n+=t.slice(e+1,r).trim(),t=t.slice(0,o).trim()+t.slice(i+1)}return{defs:n,content:t}}function et(t,s){return t?"<defs>"+t+"</defs>"+s:s}function nt(t,s,n){const o=tt(t);return et(o.defs,s+o.content+n)}const ot=t=>t==="unset"||t==="undefined"||t==="none";function st(t,s){const n={...k,...t},o={...Z,...s},e={left:n.left,top:n.top,width:n.width,height:n.height};let r=n.body;[n,o].forEach(d=>{const h=[],R=d.hFlip,C=d.vFlip;let m=d.rotate;R?C?m+=2:(h.push("translate("+(e.width+e.left).toString()+" "+(0-e.top).toString()+")"),h.push("scale(-1 1)"),e.top=e.left=0):C&&(h.push("translate("+(0-e.left).toString()+" "+(e.height+e.top).toString()+")"),h.push("scale(1 -1)"),e.top=e.left=0);let w;switch(m<0&&(m-=Math.floor(m/4)*4),m=m%4,m){case 1:w=e.height/2+e.top,h.unshift("rotate(90 "+w.toString()+" "+w.toString()+")");break;case 2:h.unshift("rotate(180 "+(e.width/2+e.left).toString()+" "+(e.height/2+e.top).toString()+")");break;case 3:w=e.width/2+e.left,h.unshift("rotate(-90 "+w.toString()+" "+w.toString()+")");break}m%2===1&&(e.left!==e.top&&(w=e.left,e.left=e.top,e.top=w),e.width!==e.height&&(w=e.width,e.width=e.height,e.height=w)),h.length&&(r=nt(r,'<g transform="'+h.join(" ")+'">',"</g>"))});const i=o.width,c=o.height,a=e.width,f=e.height;let l,u;i===null?(u=c===null?"1em":c==="auto"?f:c,l=x(u,a/f)):(l=i==="auto"?a:i,u=c===null?x(l,f/a):c==="auto"?f:c);const p={},g=(d,h)=>{ot(h)||(p[d]=h.toString())};g("width",l),g("height",u);const b=[e.left,e.top,a,f];return p.viewBox=b.join(" "),{attributes:p,viewBox:b,body:r}}function T(t){return Q(typeof t=="string"?t:st(t).body)}function rt(t){return`${t.left??0} ${t.top??0} ${t.width} ${t.height}`}function it(t,s,n){const o=typeof n=="object"?rt(n):void 0,e=typeof n=="number"?n:n.width/n.height;return t&&s?{width:t,height:s,viewBox:o}:s?{width:x(s,e),height:s,viewBox:o}:t?{width:t,height:x(t,1/e),viewBox:o}:{viewBox:o}}const y=Object.create(null),ct=Object.create(null);function lt(t,s){y[t]=s}function at(t,s){return t?y[t]:ct[s]||y[""]}const v=new Set;let j=!1;function F(t){try{const s=t();s instanceof Promise&&s.catch(n=>{console.error(n)})}catch(s){console.error(s)}}function M(t,s=!1){if(s){F(t);return}v.add(t),j||(j=!0,setTimeout(()=>{j=!1;const n=Array.from(v);v.clear(),n.forEach(F)}))}function ut(){const t=new Set;let s=!1;const n=Object.create(null),o=new Set,e=new Set,r=[];function i(c,a){if(e.delete(c),a){if(n[c]===a)return;n[c]=a,o.delete(c)}else{if(o.has(c))return;delete n[c],o.add(c)}t.add(c),s||(s=!0,setTimeout(()=>{s=!1,r.forEach(f=>{for(const l of f.names)if(l==="*"||t.has(l)){M(f.callback);return}}),t.clear()}))}return{icons:n,missing:o,pending:e,subscribers:r,update:i}}const E=Object.create(null);function $(t,s){const n=E[t]||(E[t]=Object.create(null));return n[s]||(n[s]=ut())}function ft(t,s){const n={};!t.hFlip!=!s.hFlip&&(n.hFlip=!0),!t.vFlip!=!s.vFlip&&(n.vFlip=!0);const o=((t.rotate||0)+(s.rotate||0))%4;return o&&(n.rotate=o),n}function A(t,s){const n=ft(t,s);for(const o in W)o in I?o in t&&!(o in n)&&(n[o]=I[o]):o in s?n[o]=s[o]:o in t&&(n[o]=t[o]);return n}function ht(t,s){const n=t.icons,o=t.aliases||Object.create(null),e=Object.create(null);function r(i){if(n[i])return e[i]=[];if(!(i in e)){e[i]=null;const c=o[i]&&o[i].parent,a=c&&r(c);a&&(e[i]=[c].concat(a))}return e[i]}return Object.keys(n).concat(Object.keys(o)).forEach(r),e}function dt(t,s,n){const o=t.icons,e=t.aliases||Object.create(null);let r={};function i(c){r=A(o[c]||e[c],r)}return i(s),n.forEach(i),A(t,r)}function pt(t,s){const n=[];if(typeof t!="object"||typeof t.icons!="object")return n;t.not_found instanceof Array&&t.not_found.forEach(e=>{s(e,null),n.push(e)});const o=ht(t);for(const e in o){const r=o[e];r&&(s(e,dt(t,e,r)),n.push(e))}return n}function gt(t,s=""){const n=new Set,o=$(s,t.prefix);return pt(t,(e,r)=>{o.update(e,r),n.add(e)}),n}const N=/^[a-z0-9]+(-[a-z0-9]+)*$/,z=(t,s,n,o="")=>{const e=t.split(":");if(t.slice(0,1)==="@"){if(e.length<2||e.length>3)return null;o=e.shift().slice(1)}if(e.length>3||!e.length)return null;if(e.length>1){const c=e.pop(),a=e.pop();return{provider:e.length>0?e[0]:o,prefix:a,name:c}}const i=e[0].split("-");return i.length>1?{provider:o,prefix:i.shift(),name:i.join("-")}:null},L=new Map,bt=750;let wt=fetch;function mt(t,s,n,o){const e=t.join(","),r=L.get(e)||0,i=t.length;o=o||new AbortController,n=n||{},n.signal=o.signal;const c=[];for(let a=0;a<i;a++){const f=a,l=(r+f)%i,u=`${t[l]}${s}`,p=async()=>{for(let d=0;d<f;d++)if(await new Promise(h=>setTimeout(h,bt)),o.signal.aborted)throw new Error("Fetch aborted");const g=await wt(u,n);if(!g.ok)throw new Error(`HTTP error! status: ${g.status}`);const b=await g.json();return L.set(e,l),o.abort(),b};c.push(p())}return Promise.any(c)}function St(t,s,n=!0){const o=Array.isArray(t)?t:[t],e=n&&(typeof window>"u"||!window.document);return{maxCount:32,maxLength:480,validateNames:!0,hosts:o,loadIcons:async(r,i)=>e||!N.test(i)?{prefix:i,icons:Object.create(null),not_found:r}:await mt(o,`/${i}.json?icons=${r.join(",")}`,s)}}function It(t,s){for(const n in s){const o=s[n],e=t[n]||(t[n]=Object.create(null));for(const r in o){const i=o[r];e[r]?.length?e[r]=Array.from(new Set([...i,...e[r]])):e[r]=i.slice(0)}}}function xt(t,s){const n=Object.create(null);for(const o of t){const e=typeof o=="string"?z(o):o;if(e){const r=n[e.provider]||(n[e.provider]=Object.create(null)),i=r[e.prefix]||(r[e.prefix]=[]);i.includes(e.name)||i.push(e.name)}}return n}function vt(t,s){const{maxCount:n,maxLength:o}=s;t.sort((c,a)=>c.localeCompare(a));const e=[];let r=[],i=0;for(const c of t){const a=c.length+1;i&&(o&&i+a>o||n&&r.length>=n)&&(e.push(r),r=[],i=0),i+=a,r.push(c)}return r.length>0&&e.push(r),e}let O=Object.create(null);function jt(){const t=O;O=Object.create(null);for(const s in t){const n=t[s];for(const o in n){const e=n[o];if(e.length){const r=$(s,o),i=at(s,o),c=i?.allowReload??!1,a=i?.validateNames??!0,f=[];if(e.forEach(l=>{if(!r.pending.has(l)&&!((r.icons[l]||r.missing.has(l))&&!c)){if(!i||a&&!N.test(l)){r.update(l,null);return}f.push(l),r.pending.add(l)}}),i&&f.length){const l=[];if("loadIcon"in i)for(const u of f)l.push(new Promise(p=>{i.loadIcon(u,s,o).then(g=>{r.update(u,g),p()}).catch(()=>{r.update(u,null),p()})}));else{const u=vt(f,i);for(const p of u){const g=b=>{const d=b?gt(b,s):new Set;for(const h of p)d.has(h)||r.update(h,null)};l.push(new Promise(b=>{i.loadIcons(p,o,s).then(d=>{g(d),b()}).catch(()=>{g(),b()})}))}}Promise.all(l).catch(console.error)}}}}}function yt(t,s=!1){const n=Array.isArray(t)?xt(t):t;It(O,n),M(jt,s)}function D(t,s){const n=t.subscribers.findIndex(o=>o.key===s);n!==-1&&t.subscribers.splice(n,1)}function Ot(t,s,n,o){o&&D(t,o),o=o||Symbol();const e={key:o,names:new Set(s),callback:n};return t.subscribers.push(e),o}function Dt(t,s){const n=Symbol();let o=!1,e=!1,r=null,i=null,c;const a=()=>{if(!i||!r){c!==null&&(c=null,e&&s(null));return}const l=r.name,u=i.icons[l]||(i.missing.has(l)?null:void 0);u===void 0&&!i.pending.has(l)&&yt({[r.provider]:{[r.prefix]:[l]}}),c!==u&&(c=u,e&&s(c))},f=l=>{if(o)return;i&&D(i,n);const u=typeof l=="string"?z(l):{...l};if(u&&"body"in u){r=null,c=u,i=null;return}r=u,r?(i=$(r.provider,r.prefix),Ot(i,[r.name],a),a()):(i=null,a())};return f(t),e=!0,{unsubscribe:()=>{o=!0,i&&D(i,n)},change:f,data:c}}function $t(){try{return window.CSS.supports('d: path("M0 0")')}catch{return!0}}const Ct=$t();lt("",St(["https://api.iconify.design","https://api.simplesvg.com","https://api.unisvg.com"]));const Tt=V(t=>{const s=S(()=>T(t.content||"")),n=S(()=>Ct&&t.content?"":t.fallback||""),o=_(null),e=Dt(n.value,c=>{o.value=c});o.value=e.data,B(n,e.change),G(e.unsubscribe);const r=S(()=>{const c=o.value;return c?T(c):""}),i=S(()=>it(t.width,t.height,t.viewBox));return()=>H("svg",{xmlns:"http://www.w3.org/2000/svg",...i.value,innerHTML:r.value||s.value})},{props:["width","height","viewBox","content","fallback"]});export{Tt as I};
@@ -0,0 +1 @@
1
+ import{aJ as U,b as x,g as B,F as M,K}from"./vendor-ui-DXwyveTF.js";import{E as n,B as $,s as m}from"./index-B5qe6yln.js";import{v as N,y as F,aA as G,aC as V,aD as Y,ac as f,aF as C,a9 as H,aP as z,ax as p,ab as Q,l as J,r as _,aO as W,af as j,g as c,ao as T}from"./vendor-core-CzvSW5ae.js";import{c as X,b as Z,a as q}from"./index.vue_vue_type_script_setup_true_lang-D3xHCy9f.js";import{c as ee}from"./useCompEditStore-KBTFiinR.js";import{_ as oe}from"./index.vue_vue_type_style_index_0_lang-DQhqVyhA.js";import{u as te}from"./useTeamHeaders-Cc060CP0.js";import{u as ae}from"./useKeyword-CoagiMo1.js";import"./index-CEQStqDa.js";import"./useCompMetaLocalStore-eE-CBcE9.js";/* empty css */import"./useVscodeOpen-Dx3IRL0P.js";import"./BaseDialog.vue_vue_type_script_setup_true_lang-CgV6_zzd.js";import"./useCacheOssStore-DApHt9lQ.js";import"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-CofI0Rvq.js";import"./useMessage-CYVXvlqq.js";/* empty css */import"./v4-EwEgHOG0.js";import"./index.vue_vue_type_style_index_0_lang-BQWxY2F1.js";import"./core-B1GcTOER.js";import"./PanelBackground.vue_vue_type_script_setup_true_lang-DBIlZFl0.js";import"./BaseSegmented.vue_vue_type_script_setup_true_lang-CW16Y3Jx.js";import"./LoadingWrapper.vue_vue_type_script_setup_true_lang-bBtkKtmz.js";const re={class:"size-full overflow-hidden"},Re=N({__name:"index",setup(ne){const v=F()?.uid,{t:a}=G(),g=V(),y=Y(),{headers:l,teamId:h}=te(),r=X(`${g.path}_${n.SCOPE_ID_TEAM_COMP_LIST}`)();f(n.PROVIDE_KEY_COMP_LIST_STORE,r);const w=new Map;f(n.PROVIDE_KEY_CALLBACKS,w);const I=ee(g.path,n.DIALOG_TYPE_EDIT)();f(n.PROVIDE_KEY_COMP_EDIT_STORE,I);const E=Z(h)(),S=C("compUpdateDialog"),L=C("compIframeContainer"),u=j({data:[],search:{column:[{prop:"keyword",component:T(x),label:c(()=>a("common.keyword")),value:"",autoQuery:!1,attributes:{placeholder:c(()=>a("comp.keywordPlaceholder")),fetchSuggestions:O,triggerOnFocus:!1,style:"width: 400px",fitInputWidth:!0}},{prop:"group",component:T(B),label:c(()=>a("team.group")),value:"",attributes:{options:c(()=>E.menuGroup),clearable:!0,props:{value:"id",checkStrictly:!0}}}]},pagination:{total:0,attributes:{pageSizes:[10,20,30]}},autoLoading:!1,fetchData:R}),b=c(()=>u.value?.search?.column[0]?.value??"");ae(b,L);function O(e,o){if(e.length<=1)return o([]);m.v1Keyword.keywordcontrollerQuerykeywordscomp({keyword:e,type:"compTeam"},{headers:l}).then(t=>{const{keywords:s=[]}=t.data||{};o(s)})}async function R(e){r.setLoading(!0);const{group:o=[]}=e||{};delete e.group;const t=o?.[o.length-1];if(t){let i=E.getSelectedGroupLeafNodes(t);i=i.length===0?[t]:i,e.leafNodeIds=i}const s=await m.v1Team.teamcontrollerTeamcomps({...e,scene:"library"},{headers:l}),{rows:d,total:A}=s.data??{};r.renderList(d??[]),u.value.pagination.total=A??0,r.setLoading(!1)}function D(e){y.push({path:`/previewTeam/${h}/${e}`})}async function P(e){const o=M.service({fullscreen:!0});try{const t=e,s=await m.v1Team.teamcontrollerCheckcompupdatepermission({compId:t},{headers:l}),{result:d}=s.data||{};if(d==="cannot_update"){K.confirm(a("message.noUpdatePermission"),a("common.info"),{confirmButtonText:a("common.confirm"),cancelButtonText:a("common.cancel"),type:"warning"}).finally(()=>{});return}S.value?.open(t)}finally{o.close()}}function k(e){m.v1Comp.compcontrollerCompdetail({compId:e}).then(o=>{r.updateCompListItemById(e,o.data)})}return H(()=>{r.$reset()}),(e,o)=>{const t=U;return z((Q(),J("div",re,[_(p($),{tableConfig:u.value},{table:W(()=>[_(q,{ref:"compIframeContainer",iuid:p(v),compType:p(n).IFRAME_ROUTES.CONTAINER.TEAM_ALL,onPreview:D,onUpdate:P},null,8,["iuid","compType"])]),_:1},8,["tableConfig"]),_(oe,{ref:"compUpdateDialog",onUpdateSuccess:k},null,512)])),[[t,p(r).loading]])}}});export{Re as default};
@@ -0,0 +1 @@
1
+ import{f as $,l as O,D as R,e as T,U as B}from"./vendor-ui-DXwyveTF.js";import{E as m,z as N,g as z,q as w}from"./index-B5qe6yln.js";import{v as b,aA as k,ab as L,l as F,r as e,aO as a,i as t,ax as l,ap as f,q as x,ac as j,aC as U,aD as q,a7 as K,aj as W,j as G,af as H,g as A}from"./vendor-core-CzvSW5ae.js";import{c as X}from"./useCompMetaLocalStore-eE-CBcE9.js";import{B as Y,_ as J}from"./index.vue_vue_type_script_setup_true_lang-DCQMqfel.js";/* empty css *//* empty css */import{_ as Q}from"./index.vue_vue_type_script_setup_true_lang-DM_Wm4GD.js";import{u as Z}from"./useVscodeOpen-Dx3IRL0P.js";import{_ as ee}from"./PanelBackground.vue_vue_type_script_setup_true_lang-DBIlZFl0.js";import{_ as oe}from"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-CofI0Rvq.js";import"./index.vue_vue_type_style_index_0_lang-BQWxY2F1.js";import"./core-B1GcTOER.js";import"./useTeamHeaders-Cc060CP0.js";import"./index.vue_vue_type_script_setup_true_lang-D3xHCy9f.js";import"./index-CEQStqDa.js";import"./BaseDialog.vue_vue_type_script_setup_true_lang-CgV6_zzd.js";import"./useCacheOssStore-DApHt9lQ.js";import"./useMessage-CYVXvlqq.js";const te={class:"size-full overflow-hidden flex flex-col"},ae={class:"size-full"},se={class:"flex items-center"},ne={class:"flex-1"},le={class:"text-xs ml-auto"},ce=b({__name:"index",props:{version:{},compAttrs:{}},setup(s){const{openCompPathInVscode:v}=Z(),h=s,{t:p}=k();function C(){v(h.compAttrs.fullPath,`./${m.COMP_CONFIG_FILENAME}`)}return(P,c)=>{const r=$,i=O,o=R;return L(),F("div",te,[e(l(ee),{class:"size-full flex-1 shrink-0 flex flex-col gap-1",bg:s.compAttrs?.bgColor},{default:a(({bg:u,updateColor:d})=>[e(r,{"body-class":"!p-0 !overflow-visible",class:"flex-1 relative z-10"},{default:a(()=>[t("div",ae,[e(Q,{compAttrs:s.compAttrs,version:s.version,compType:l(m).IFRAME_ROUTES.ITEM.PREVIEW_LOCAL},null,8,["compAttrs","version","compType"])])]),_:1}),t("div",se,[t("div",ne,[t("span",null,f(s.compAttrs?.version),1)]),t("span",le,[t("span",null,f(l(p)("comp.bgPanel"))+":",1),e(i,{teleported:!0,modelValue:u,clearable:"",onChange:d,onActiveChange:d},null,8,["modelValue","onChange","onActiveChange"])])])]),_:1},8,["bg"]),t("div",null,[x(f(l(p)("comp.compLocation"))+": ",1),e(o,{href:"javascript:void(0)",type:"primary",underline:"always",onClick:C},{default:a(()=>[x(f(s.compAttrs.fullPath),1)]),_:1})])])}}}),re={class:"h-[50vh]"},Le=b({__name:"index",setup(s){const{t:v}=k(),h=new Map;j(m.PROVIDE_KEY_CALLBACKS,h);const p=U(),C=q(),P=N(),{compId:c}=p.params,r=X(c)(),i=H(!1),o=A(()=>r.detail),u=A(()=>Object.keys(o.value??{}).length>0),d=A(()=>{const n=z.getPreviewUrl(o.value.path,[`\\${m.COMP_README_FILENAME}`]);return`${m.COMP_PREVIEW_PREFIX_LOCAL}/${n}`});async function D(){if(!c)return;i.value=!0;const n=await w.v1Comp.compcontrollerLocalcompdetailbypathhash({fullPathHash:c}),y=await w.v1Comp.compcontrollerDep({compPath:n.data.path}),{thirdParty:_=[]}=y.data,E=_.map(S=>S.name),g=await w.v1Module.modulecontrollerPrebuild({deps:E}),{entryNameToFile:V={}}=g.data;r.setDetail(n.data),r.setDep(_),r.setDepToFile(V),i.value=!1}function I(){P.addPayLoad(`/previewLocal/${c}`,{name:`${o.value?.name??""}`})}function M(){const{href:n}=C.resolve({name:"previewLocalBlank",params:{compId:c}});window.open(n,"_blank")}return K(async()=>{u.value||await D(),I()}),(n,y)=>{const _=W("Icon"),E=T,g=B;return L(),G(g,{"wrap-class":"preview-container",class:"size-full p-[10px]"},{default:a(()=>[e(l(oe),{isEmpty:!u.value,loading:i.value},{default:a(()=>[t("div",re,[e(l(Y),{title:o.value?.name,actions:["maximize"]},{beforeActions:a(()=>[e(E,{type:"primary",circle:"",title:l(v)("common.newPage"),onClick:M},{default:a(()=>[e(_,{icon:"material-symbols:screen-share-rounded"})]),_:1},8,["title"])]),default:a(()=>[e(ce,{compAttrs:o.value,version:o.value.version},null,8,["compAttrs","version"])]),_:1},8,["title"])]),e(J,{mdSrc:d.value,scrollContainer:".preview-container",stickyTopDistance:0,showSimilarComp:!1},null,8,["mdSrc"])]),_:1},8,["isEmpty","loading"])]),_:1})}}});export{Le as default};
@@ -1 +1 @@
1
- import{a2 as O,e as R,W as H,L as P,K as F,J as k,b as q}from"./vendor-ui-D6wVBlls.js";import{B as z,v as d}from"./index-Cf69_nzt.js";import"./el-table-column-BiqynxkD.js";import{v as K,aA as L,aD as Q,a7 as W,ab as _,l as C,r as s,aO as l,_ as T,A,q as w,ap as g,ax as p,F as j,ah as J,j as G,i as X,af as x,g as t,ao as Z}from"./vendor-core-B-Si3WEf.js";import{b as ee}from"./index.vue_vue_type_script_setup_true_lang-D_7jZ1zo.js";import{h as B}from"./moment-B-YVwB4U.js";import{u as ae}from"./useTeamHeaders-DELMIzHt.js";import{_ as te}from"./LoadingWrapper.vue_vue_type_script_setup_true_lang-5GxduB08.js";import"./index-D8WDrGkh.js";import"./useCompMetaLocalStore-pb1Ikkq3.js";/* empty css */import"./useVscodeOpen-DIYbcP1e.js";import"./BaseDialog.vue_vue_type_script_setup_true_lang-B6WkXWm7.js";import"./useCacheOssStore-CU4a8b24.js";import"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-DIgE9MGd.js";import"./useMessage-D7WAp245.js";const oe={class:"size-full"},ne={class:"text-gray-300"},Ce=K({__name:"index",setup(le){const{t:a}=L(),D=Q(),{headers:i,teamId:v}=ae(),f=ee(v)(),b=x([]),u=x({data:[],column:[{prop:"name",label:t(()=>a("comp.name")),align:"center"},{prop:"authorId.nickname",label:t(()=>a("common.author")),align:"center",formatter:e=>e.teamUserNickname||e.authorId?.nickname||"--"},{prop:"version",label:t(()=>a("comp.version")),align:"center"},{prop:"desc",label:t(()=>a("comp.desc")),align:"center",showOverflowTooltip:{popperClass:"table-text-tooltip"}},{prop:"createdAt",label:t(()=>a("team.createTime")),align:"center",formatter:e=>e.createdAt?B(e.createdAt).format("YYYY-MM-DD"):"--"},{prop:"updatedAt",label:t(()=>a("team.updateTime")),align:"center",formatter:e=>e.updatedAt?B(e.updatedAt).format("YYYY-MM-DD"):"--"},{slot:"canUpdateUsers",prop:"canUpdateUsers",label:t(()=>a("team.updateAuth")),align:"center"},{slot:"operation",prop:"operation",label:t(()=>a("common.operation")),align:"center"}],search:{column:[{prop:"keyword",component:Z(q),label:t(()=>a("common.keyword")),value:"",autoQuery:!1,attributes:{placeholder:t(()=>a("comp.keywordPlaceholder")),fetchSuggestions:I,triggerOnFocus:!1,style:"width: 400px",fitInputWidth:!0}}]},pagination:{total:0},fixedHeight:!1,fetchData:M}),E=t(()=>b.value.map(e=>({value:e._id,label:e.teamUserNickname||e.nickname||e.account})));function I(e,o){if(e.length<=1)return o([]);d.v1Keyword.keywordcontrollerQuerykeywordscomp({keyword:e,type:"compTeam"},{headers:i}).then(c=>{const{keywords:r=[]}=c.data||{};o(r)})}async function M(e){const o=await d.v1Team.teamcontrollerTeamcomps({...e,scene:"management"},{headers:i}),{rows:c,total:r}=o.data||{};u.value.data=c||[],u.value.pagination.total=r||0}async function Y(e,o){o.start();try{if(await F.confirm(a("team.deleteCompConfirm",{name:e.name}),a("common.info"),{confirmButtonText:a("common.confirm"),cancelButtonText:a("common.cancel"),type:"warning"}).catch(()=>{})!=="confirm")return;await d.v1Team.teamcontrollerRemovecompfromteam({compIds:[e._id]},{headers:i}).then(()=>{k.success(a("message.success.delete")),u.value.data=u.value.data.filter(r=>r._id!==e._id),f.setTeamDetail({...f.teamDetail,compCount:f.teamDetail.compCount-1})})}finally{o.end()}}function V(e){D.push({path:`/previewTeam/${v}/${e._id}`})}function S(){d.v1Team.teamcontrollerAllmember({headers:i}).then(e=>{b.value=e.data?.rows||[]})}function $(e){const o={compId:e._id,canUpdateUserIds:e.canUpdateUsers||[]};d.v1Team.teamcontrollerUpdatecompcanupdateusers(o,{headers:i}).then(()=>{k.success(a("message.success.update"))})}return W(()=>{S()}),(e,o)=>{const c=P,r=H,y=O,U=R;return _(),C("div",oe,[s(p(z),{tableConfig:u.value,border:""},{canUpdateUsers:l(({col:h})=>[s(y,T(A(h)),{default:l(({row:m})=>[s(r,{modelValue:m.canUpdateUsers,"onUpdate:modelValue":n=>m.canUpdateUsers=n,multiple:"","collapse-tags":"","collapse-tags-tooltip":"",placeholder:p(a)("team.selectCanUpdateUser"),onChange:n=>$(m)},{header:l(()=>[X("span",ne,g(p(a)("team.authorAutoAuth")),1)]),default:l(()=>[(_(!0),C(j,null,J(E.value,n=>(_(),G(c,{key:n.value,label:n.label,value:n.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","placeholder","onChange"])]),_:1},16)]),operation:l(({col:h})=>[s(y,T(A(h)),{default:l(({row:m})=>[s(U,{type:"primary",onClick:n=>V(m)},{default:l(()=>[w(g(p(a)("common.preview")),1)]),_:1},8,["onClick"]),s(p(te),null,{default:l(({instance:n,loading:N})=>[s(U,{type:"danger",loading:N,onClick:re=>Y(m,n)},{default:l(()=>[w(g(p(a)("common.delete")),1)]),_:1},8,["loading","onClick"])]),_:2},1024)]),_:1},16)]),_:1},8,["tableConfig"])])}}});export{Ce as default};
1
+ import{a2 as O,e as R,W as H,L as P,b as F,K as q,J as k}from"./vendor-ui-DXwyveTF.js";import{B as z,s as d}from"./index-B5qe6yln.js";import"./el-table-column-8qfe8CVK.js";import{v as K,aA as L,aD as Q,a7 as W,ab as _,l as C,r as s,aO as l,_ as T,A,q as w,ap as g,ax as p,F as j,ah as J,j as G,i as X,af as x,g as t,ao as Z}from"./vendor-core-CzvSW5ae.js";import{b as ee}from"./index.vue_vue_type_script_setup_true_lang-D3xHCy9f.js";import{h as B}from"./moment-B-YVwB4U.js";import{u as ae}from"./useTeamHeaders-Cc060CP0.js";import{_ as te}from"./LoadingWrapper.vue_vue_type_script_setup_true_lang-bBtkKtmz.js";import"./index-CEQStqDa.js";import"./useCompMetaLocalStore-eE-CBcE9.js";/* empty css */import"./useVscodeOpen-Dx3IRL0P.js";import"./BaseDialog.vue_vue_type_script_setup_true_lang-CgV6_zzd.js";import"./useCacheOssStore-DApHt9lQ.js";import"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-CofI0Rvq.js";import"./useMessage-CYVXvlqq.js";const oe={class:"size-full"},ne={class:"text-gray-300"},Ce=K({__name:"index",setup(le){const{t:a}=L(),D=Q(),{headers:i,teamId:v}=ae(),f=ee(v)(),b=x([]),u=x({data:[],column:[{prop:"name",label:t(()=>a("comp.name")),align:"center"},{prop:"authorId.nickname",label:t(()=>a("common.author")),align:"center",formatter:e=>e.teamUserNickname||e.authorId?.nickname||"--"},{prop:"version",label:t(()=>a("comp.version")),align:"center"},{prop:"desc",label:t(()=>a("comp.desc")),align:"center",showOverflowTooltip:{popperClass:"table-text-tooltip"}},{prop:"createdAt",label:t(()=>a("team.createTime")),align:"center",formatter:e=>e.createdAt?B(e.createdAt).format("YYYY-MM-DD"):"--"},{prop:"updatedAt",label:t(()=>a("team.updateTime")),align:"center",formatter:e=>e.updatedAt?B(e.updatedAt).format("YYYY-MM-DD"):"--"},{slot:"canUpdateUsers",prop:"canUpdateUsers",label:t(()=>a("team.updateAuth")),align:"center"},{slot:"operation",prop:"operation",label:t(()=>a("common.operation")),align:"center"}],search:{column:[{prop:"keyword",component:Z(F),label:t(()=>a("common.keyword")),value:"",autoQuery:!1,attributes:{placeholder:t(()=>a("comp.keywordPlaceholder")),fetchSuggestions:I,triggerOnFocus:!1,style:"width: 400px",fitInputWidth:!0}}]},pagination:{total:0},fixedHeight:!1,fetchData:M}),E=t(()=>b.value.map(e=>({value:e._id,label:e.teamUserNickname||e.nickname||e.account})));function I(e,o){if(e.length<=1)return o([]);d.v1Keyword.keywordcontrollerQuerykeywordscomp({keyword:e,type:"compTeam"},{headers:i}).then(c=>{const{keywords:r=[]}=c.data||{};o(r)})}async function M(e){const o=await d.v1Team.teamcontrollerTeamcomps({...e,scene:"management"},{headers:i}),{rows:c,total:r}=o.data||{};u.value.data=c||[],u.value.pagination.total=r||0}async function Y(e,o){o.start();try{if(await q.confirm(a("team.deleteCompConfirm",{name:e.name}),a("common.info"),{confirmButtonText:a("common.confirm"),cancelButtonText:a("common.cancel"),type:"warning"}).catch(()=>{})!=="confirm")return;await d.v1Team.teamcontrollerRemovecompfromteam({compIds:[e._id]},{headers:i}).then(()=>{k.success(a("message.success.delete")),u.value.data=u.value.data.filter(r=>r._id!==e._id),f.setTeamDetail({...f.teamDetail,compCount:f.teamDetail.compCount-1})})}finally{o.end()}}function V(e){D.push({path:`/previewTeam/${v}/${e._id}`})}function S(){d.v1Team.teamcontrollerAllmember({headers:i}).then(e=>{b.value=e.data?.rows||[]})}function $(e){const o={compId:e._id,canUpdateUserIds:e.canUpdateUsers||[]};d.v1Team.teamcontrollerUpdatecompcanupdateusers(o,{headers:i}).then(()=>{k.success(a("message.success.update"))})}return W(()=>{S()}),(e,o)=>{const c=P,r=H,y=O,U=R;return _(),C("div",oe,[s(p(z),{tableConfig:u.value,border:""},{canUpdateUsers:l(({col:h})=>[s(y,T(A(h)),{default:l(({row:m})=>[s(r,{modelValue:m.canUpdateUsers,"onUpdate:modelValue":n=>m.canUpdateUsers=n,multiple:"","collapse-tags":"","collapse-tags-tooltip":"",placeholder:p(a)("team.selectCanUpdateUser"),onChange:n=>$(m)},{header:l(()=>[X("span",ne,g(p(a)("team.authorAutoAuth")),1)]),default:l(()=>[(_(!0),C(j,null,J(E.value,n=>(_(),G(c,{key:n.value,label:n.label,value:n.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","placeholder","onChange"])]),_:1},16)]),operation:l(({col:h})=>[s(y,T(A(h)),{default:l(({row:m})=>[s(U,{type:"primary",onClick:n=>V(m)},{default:l(()=>[w(g(p(a)("common.preview")),1)]),_:1},8,["onClick"]),s(p(te),null,{default:l(({instance:n,loading:N})=>[s(U,{type:"danger",loading:N,onClick:re=>Y(m,n)},{default:l(()=>[w(g(p(a)("common.delete")),1)]),_:1},8,["loading","onClick"])]),_:2},1024)]),_:1},16)]),_:1},8,["tableConfig"])])}}});export{Ce as default};