comp-hub 0.28.6 → 0.28.7

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 (66) hide show
  1. package/dist/index.js +2 -2
  2. package/dist/website/container/assets/index-B6KfxMpe.css +1 -0
  3. package/dist/website/container/assets/{index-C4rP9NOf.js → index-DlqRVovH.js} +7 -7
  4. package/dist/website/container/index.html +2 -2
  5. package/dist/website/item/assets/{index-xGYf6R_n.css → index-BIgTOfbh.css} +1 -1
  6. package/dist/website/item/assets/{index-YY_elpPJ.js → index-DOKUHdnc.js} +15 -15
  7. package/dist/website/item/index.html +2 -2
  8. package/dist/website/main/assets/{CanvasAnimation.vue_vue_type_script_setup_true_lang-CllQrgJy.js → CanvasAnimation.vue_vue_type_script_setup_true_lang-CDdsQZ0-.js} +1 -1
  9. package/dist/website/main/assets/{index-Du5qihI4.js → index-0jUB6F-4.js} +1 -1
  10. package/dist/website/main/assets/{index-B9ln289Q.js → index-5EYT6f8p.js} +1 -1
  11. package/dist/website/main/assets/{index-CJBbqPIC.js → index-B-JCIDk_.js} +1 -1
  12. package/dist/website/main/assets/index-B329MLgw.js +2 -0
  13. package/dist/website/main/assets/index-B6QLWqnu.js +1 -0
  14. package/dist/website/main/assets/{index-Dgyjv57X.js → index-B8k-Kh_A.js} +1 -1
  15. package/dist/website/main/assets/{index-5NbrFL1v.js → index-B9hCLAJk.js} +1 -1
  16. package/dist/website/main/assets/{index-OQIUhz5k.js → index-BFKzKjpl.js} +1 -1
  17. package/dist/website/main/assets/{index-B5P6DgaP.js → index-BRZurz58.js} +1 -1
  18. package/dist/website/main/assets/{index-DNzk9GC4.js → index-BrArZ42r.js} +1 -1
  19. package/dist/website/main/assets/{index-5AGG9ot8.js → index-BwgMUal7.js} +1 -1
  20. package/dist/website/main/assets/index-CAsY0Xb9.js +1 -0
  21. package/dist/website/main/assets/index-CWJKxZCd.js +1 -0
  22. package/dist/website/main/assets/{index-C5FOjHtG.js → index-CY6_9tAe.js} +1 -1
  23. package/dist/website/main/assets/{index-CBkRhssK.js → index-CadXipX3.js} +2 -2
  24. package/dist/website/main/assets/index-CbfSiY9U.js +1 -0
  25. package/dist/website/main/assets/{index-ClGXZTwx.js → index-CdzjeO0x.js} +1 -1
  26. package/dist/website/main/assets/index-CiSJMy_Y.js +1 -0
  27. package/dist/website/main/assets/{index-CRPDDq-V.js → index-D88CvPWT.js} +3 -3
  28. package/dist/website/main/assets/index-DEGdQmAx.js +1 -0
  29. package/dist/website/main/assets/index-DOd1x8nw.js +1 -0
  30. package/dist/website/main/assets/index-DPdwbYvx.js +1 -0
  31. package/dist/website/main/assets/{index-DdlcdFg6.js → index-DquKS0_n.js} +1 -1
  32. package/dist/website/main/assets/{index-DnoK5_sf.js → index-DrbX7elo.js} +1 -1
  33. package/dist/website/main/assets/{index-C9Y3CNRO.js → index-EDA2t2OE.js} +1 -1
  34. package/dist/website/main/assets/{index-CeYUbWQf.js → index-HkZs-IVV.js} +1 -1
  35. package/dist/website/main/assets/{index-pnMxQIk7.js → index-IVEhJl2W.js} +1 -1
  36. package/dist/website/main/assets/{index-Bix1nJzT.js → index-U6TRHk8E.js} +1 -1
  37. package/dist/website/main/assets/{index-D8JLLNls.js → index-ZoaJ6v2i.js} +1 -1
  38. package/dist/website/main/assets/{index-D206deyl.js → index-pjvH5dVi.js} +1 -1
  39. package/dist/website/main/assets/{index-BboFkG3x.css → index-qOVjc392.css} +1 -1
  40. package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-CsP7DU8L.js → index.vue_vue_type_script_setup_true_lang-BAM6bQ14.js} +1 -1
  41. package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-Cl-Fl4oU.js → index.vue_vue_type_script_setup_true_lang-BWF3Tgxf.js} +1 -1
  42. package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-piiSvWkd.js → index.vue_vue_type_script_setup_true_lang-BXNbK11E.js} +1 -1
  43. package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-BcUGs_WV.js → index.vue_vue_type_script_setup_true_lang-CmmAEEXC.js} +2 -2
  44. package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-C2f6_gwm.js → index.vue_vue_type_script_setup_true_lang-D9A1RF52.js} +1 -1
  45. package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-BOye9Q0l.js → index.vue_vue_type_script_setup_true_lang-DTC1Qz-g.js} +1 -1
  46. package/dist/website/main/assets/{index.vue_vue_type_style_index_0_lang-HhqETZCz.js → index.vue_vue_type_style_index_0_lang-8e70e_fM.js} +1 -1
  47. package/dist/website/main/assets/{index.vue_vue_type_style_index_0_lang-_EGM5AW2.js → index.vue_vue_type_style_index_0_lang-BZ1LzI3x.js} +1 -1
  48. package/dist/website/main/assets/{index.vue_vue_type_style_index_0_lang-lii4Mw4k.js → index.vue_vue_type_style_index_0_lang-BipgSalp.js} +1 -1
  49. package/dist/website/main/assets/useCompEditStore-D7YXYpD3.css +1 -0
  50. package/dist/website/main/assets/{useCompEditStore-De0RvlRq.js → useCompEditStore-DhXxYAqN.js} +1 -1
  51. package/dist/website/main/assets/{useKeyword-DPx3R5YX.js → useKeyword-CjhhChz4.js} +1 -1
  52. package/dist/website/main/assets/{useMessage-8Gi-vx-A.js → useMessage-Cbhfk7Nk.js} +1 -1
  53. package/dist/website/main/assets/{useVscodeOpen--nBM6CZ-.js → useVscodeOpen-BBdyQ3W2.js} +1 -1
  54. package/dist/website/main/index.html +2 -2
  55. package/package.json +1 -1
  56. package/dist/website/container/assets/index-DyP-WX-l.css +0 -1
  57. package/dist/website/main/assets/index-30_1ggVR.js +0 -1
  58. package/dist/website/main/assets/index-B94DbVvF.js +0 -1
  59. package/dist/website/main/assets/index-Bt7T-LaE.js +0 -1
  60. package/dist/website/main/assets/index-CS5py2lv.js +0 -1
  61. package/dist/website/main/assets/index-CYEfOQSg.js +0 -2
  62. package/dist/website/main/assets/index-DMKeTfl9.js +0 -1
  63. package/dist/website/main/assets/index-DkvChnew.js +0 -1
  64. package/dist/website/main/assets/index-OKDkiqud.js +0 -1
  65. package/dist/website/main/assets/index-zrOq4KJF.js +0 -1
  66. package/dist/website/main/assets/useCompEditStore-CTeLLTZM.css +0 -1
@@ -20,8 +20,8 @@
20
20
  console.error("解析 URL 参数失败", error);
21
21
  }
22
22
  </script>
23
- <script type="module" crossorigin src="/item/assets/index-YY_elpPJ.js"></script>
24
- <link rel="stylesheet" crossorigin href="/item/assets/index-xGYf6R_n.css">
23
+ <script type="module" crossorigin src="/item/assets/index-DOKUHdnc.js"></script>
24
+ <link rel="stylesheet" crossorigin href="/item/assets/index-BIgTOfbh.css">
25
25
  </head>
26
26
 
27
27
  <body>
@@ -1 +1 @@
1
- import{M as w}from"./index-CRPDDq-V.js";import{ag as S,aF as m,aA as n}from"./vendor-ui-CGT0cG1n.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-BKehvho7.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
+ import{M as w}from"./index-D88CvPWT.js";import{ag as S,aF as m,aA as n}from"./vendor-ui-CGT0cG1n.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-BKehvho7.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{R as Z,P as q,aH as G,ac as I,U as ee,y as te,e as ne,x as oe,K as se,J as ae,f as re}from"./vendor-ui-CGT0cG1n.js";import{m as x,k as le,z as ce,D as ie,r as $,i as de,f as ue,j as me}from"./index-CRPDDq-V.js";/* empty css */import{v as V,aA as T,aB as fe,ab as _,j as C,aO as v,r as p,ax as c,i as a,q as y,ap as f,aM as z,a7 as pe,aN as he,l as g,F as A,ah as P,Z as _e,af as E,g as B,w as ve,a0 as be,Q as xe,K as ge,al as we}from"./vendor-core-BKehvho7.js";import{_ as ye}from"./BaseSegmented.vue_vue_type_script_setup_true_lang-DU79Plk1.js";const De=V({__name:"RadioMatch",props:{modelValue:{default:""},modelModifiers:{}},emits:["update:modelValue"],setup(t){const{t:e}=T(),n=fe(t,"modelValue");function r(l){n.value=String(l??"")}return(l,o)=>{const s=q,d=Z;return _(),C(d,{"model-value":n.value,class:"flex flex-wrap gap-2",onChange:r},{default:v(()=>[p(s,{value:c(x).COMP_MATCH_TYPE_AUTO,class:"!flex !items-center !gap-1 !m-0 !h-auto"},{default:v(()=>[o[0]||(o[0]=a("span",{class:"inline-block w-2 h-2 rounded-full mr-1 bg-slate-400 shadow-[0_0_4px_rgba(148,163,184,0.5)]"},null,-1)),y(" "+f(c(e)("deps.match.auto")),1)]),_:1},8,["value"]),p(s,{value:c(x).COMP_MATCH_TYPE_ONLY_INSTALL,class:"!flex !items-center !gap-1 !m-0 !h-auto"},{default:v(()=>[o[1]||(o[1]=a("span",{class:"inline-block w-2 h-2 rounded-full mr-1 bg-emerald-500 shadow-[0_0_4px_rgba(16,185,129,0.5)]"},null,-1)),y(" "+f(c(e)("deps.match.onlyInstall")),1)]),_:1},8,["value"]),p(s,{value:c(x).COMP_MATCH_TYPE_MAJOR_VERSION,class:"!flex !items-center !gap-1 !m-0 !h-auto"},{default:v(()=>[o[2]||(o[2]=a("span",{class:"inline-block w-2 h-2 rounded-full mr-1 bg-sky-500 shadow-[0_0_4px_rgba(14,165,233,0.5)]"},null,-1)),y(" "+f(c(e)("deps.match.majorVersion")),1)]),_:1},8,["value"]),p(s,{value:c(x).COMP_MATCH_TYPE_MINOR_VERSION,class:"!flex !items-center !gap-1 !m-0 !h-auto"},{default:v(()=>[o[3]||(o[3]=a("span",{class:"inline-block w-2 h-2 rounded-full mr-1 bg-amber-500 shadow-[0_0_4px_rgba(245,158,11,0.5)]"},null,-1)),y(" "+f(c(e)("deps.match.minorVersion")),1)]),_:1},8,["value"]),p(s,{value:c(x).COMP_MATCH_TYPE_EXACT_VERSION,class:"!flex !items-center !gap-1 !m-0 !h-auto"},{default:v(()=>[o[4]||(o[4]=a("span",{class:"inline-block w-2 h-2 rounded-full mr-1 bg-red-500 shadow-[0_0_4px_rgba(239,68,68,0.5)]"},null,-1)),y(" "+f(c(e)("deps.match.exactVersion")),1)]),_:1},8,["value"])]),_:1},8,["model-value"])}}}),M=le(De,[["__scopeId","data-v-95fca0fc"]]),Ee={class:"flex flex-col gap-4 p-2"},Ce={class:"flex flex-wrap gap-x-4 gap-y-1 px-3 py-2 bg-[var(--el-fill-color-light)] border border-[var(--el-border-color-lighter)] rounded-lg text-xs text-[var(--el-text-color-regular)]"},Ie={class:"font-medium whitespace-nowrap"},Me={class:"text-[var(--el-text-color-secondary)] hidden sm:inline"},Be={class:"bg-[var(--el-bg-color)] border border-[var(--el-border-color-lighter)] rounded-lg overflow-hidden"},Ve={class:"flex items-center justify-between px-4 py-3 bg-[var(--el-fill-color-light)] border-b border-[var(--el-border-color-lighter)]"},Te={class:"text-[15px] font-semibold m-0 text-[var(--el-text-color-primary)]"},ke={class:"flex items-center gap-2"},Se={class:"text-xs text-[var(--el-text-color-secondary)] whitespace-nowrap"},Ae={class:"py-1"},Pe={class:"flex items-baseline gap-2.5 min-w-0 mr-3"},Ne={class:"text-[13px] font-medium text-[var(--el-text-color-primary)] font-mono truncate"},Le={class:"text-xs text-[var(--el-text-color-placeholder)] font-mono whitespace-nowrap shrink-0"},Oe={class:"bg-[var(--el-bg-color)] border border-[var(--el-border-color-lighter)] rounded-lg overflow-hidden"},Re={class:"flex items-center justify-between px-4 py-3 bg-[var(--el-fill-color-light)] border-b border-[var(--el-border-color-lighter)]"},je={class:"text-[15px] font-semibold m-0 text-[var(--el-text-color-primary)]"},Fe={class:"flex items-center gap-2"},Ue={class:"text-xs text-[var(--el-text-color-secondary)] whitespace-nowrap"},$e={class:"py-1"},ze={class:"flex items-baseline gap-2.5 min-w-0 mr-3"},He={class:"text-[13px] font-medium text-[var(--el-text-color-primary)] font-mono truncate"},Ke={class:"text-xs text-[var(--el-text-color-placeholder)] font-mono whitespace-nowrap shrink-0"},Ye=V({__name:"index",setup(t){const{t:e}=T(),n=ce(),r=G(ie,{dependencies:[],devDependencies:[]}),l=E([]),o=E([]),s=E(""),d=E(""),i=B(()=>[{key:"auto",dotClass:"bg-slate-400",label:e("deps.match.auto"),desc:e("deps.matchDesc.auto")},{key:"onlyInstall",dotClass:"bg-emerald-500",label:e("deps.match.onlyInstall"),desc:e("deps.matchDesc.onlyInstall")},{key:"majorVersion",dotClass:"bg-sky-500",label:e("deps.match.majorVersion"),desc:e("deps.matchDesc.majorVersion")},{key:"minorVersion",dotClass:"bg-amber-500",label:e("deps.match.minorVersion"),desc:e("deps.matchDesc.minorVersion")},{key:"exactVersion",dotClass:"bg-red-500",label:e("deps.match.exactVersion"),desc:e("deps.matchDesc.exactVersion")}]);return z(s,u=>{u&&l.value.forEach(h=>{h.match=u})}),z(d,u=>{u&&o.value.forEach(h=>{h.match=u})}),pe(async()=>{l.value=I(n.dependencies),o.value=I(n.devDependencies)}),he(()=>{l.value.length&&n.setDependencies(I(l.value)),o.value.length&&n.setDevDependencies(I(o.value)),r.value={dependencies:l.value.length?l.value:r.value.dependencies,devDependencies:o.value.length?o.value:r.value.devDependencies}}),(u,h)=>{const D=ee;return _(),C(D,{"wrap-class":"size-full"},{default:v(()=>[a("div",Ee,[a("div",Ce,[(_(!0),g(A,null,P(i.value,m=>(_(),g("div",{key:m.key,class:"flex items-center gap-1"},[a("span",{class:_e(["inline-block w-2 h-2 rounded-full shrink-0",m.dotClass])},null,2),a("span",Ie,f(m.label),1),a("span",Me,"— "+f(m.desc),1)]))),128))]),a("div",Be,[a("div",Ve,[a("h2",Te,f(c(e)("deps.dependencies")),1),a("div",ke,[a("span",Se,f(c(e)("deps.batchSetting")),1),p(c(M),{modelValue:s.value,"onUpdate:modelValue":h[0]||(h[0]=m=>s.value=m)},null,8,["modelValue"])])]),a("div",Ae,[(_(!0),g(A,null,P(l.value,m=>(_(),g("div",{key:m.name,class:"flex items-center justify-between px-4 py-2 border-t border-[var(--el-border-color-extra-light)] first:border-t-0 hover:bg-[var(--el-fill-color-light)] transition-colors duration-150"},[a("div",Pe,[a("span",Ne,f(m.name),1),a("span",Le,f(m.version),1)]),p(c(M),{modelValue:m.match,"onUpdate:modelValue":S=>m.match=S},null,8,["modelValue","onUpdate:modelValue"])]))),128))])]),a("div",Oe,[a("div",Re,[a("h2",je,f(c(e)("deps.devDependencies")),1),a("div",Fe,[a("span",Ue,f(c(e)("deps.batchSetting")),1),p(c(M),{modelValue:d.value,"onUpdate:modelValue":h[1]||(h[1]=m=>d.value=m)},null,8,["modelValue"])])]),a("div",$e,[(_(!0),g(A,null,P(o.value,m=>(_(),g("div",{key:m.name,class:"flex items-center justify-between px-4 py-2 border-t border-[var(--el-border-color-extra-light)] first:border-t-0 hover:bg-[var(--el-fill-color-light)] transition-colors duration-150"},[a("div",ze,[a("span",He,f(m.name),1),a("span",Ke,f(m.version),1)]),p(c(M),{modelValue:m.match,"onUpdate:modelValue":S=>m.match=S},null,8,["modelValue","onUpdate:modelValue"])]))),128))])])])]),_:1})}}}),O=(t,e)=>e.some(n=>t instanceof n);let H,K;function We(){return H||(H=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Xe(){return K||(K=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const R=new WeakMap,N=new WeakMap,k=new WeakMap;function Ge(t){const e=new Promise((n,r)=>{const l=()=>{t.removeEventListener("success",o),t.removeEventListener("error",s)},o=()=>{n(w(t.result)),l()},s=()=>{r(t.error),l()};t.addEventListener("success",o),t.addEventListener("error",s)});return k.set(e,t),e}function Je(t){if(R.has(t))return;const e=new Promise((n,r)=>{const l=()=>{t.removeEventListener("complete",o),t.removeEventListener("error",s),t.removeEventListener("abort",s)},o=()=>{n(),l()},s=()=>{r(t.error||new DOMException("AbortError","AbortError")),l()};t.addEventListener("complete",o),t.addEventListener("error",s),t.addEventListener("abort",s)});R.set(t,e)}let j={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return R.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return w(t[e])},set(t,e,n){return t[e]=n,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function J(t){j=t(j)}function Qe(t){return Xe().includes(t)?function(...e){return t.apply(F(this),e),w(this.request)}:function(...e){return w(t.apply(F(this),e))}}function Ze(t){return typeof t=="function"?Qe(t):(t instanceof IDBTransaction&&Je(t),O(t,We())?new Proxy(t,j):t)}function w(t){if(t instanceof IDBRequest)return Ge(t);if(N.has(t))return N.get(t);const e=Ze(t);return e!==t&&(N.set(t,e),k.set(e,t)),e}const F=t=>k.get(t);function qe(t,e,{blocked:n,upgrade:r,blocking:l,terminated:o}={}){const s=indexedDB.open(t,e),d=w(s);return r&&s.addEventListener("upgradeneeded",i=>{r(w(s.result),i.oldVersion,i.newVersion,w(s.transaction),i)}),n&&s.addEventListener("blocked",i=>n(i.oldVersion,i.newVersion,i)),d.then(i=>{o&&i.addEventListener("close",()=>o()),l&&i.addEventListener("versionchange",u=>l(u.oldVersion,u.newVersion,u))}).catch(()=>{}),d}const et=["get","getKey","getAll","getAllKeys","count"],tt=["put","add","delete","clear"],L=new Map;function Y(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(L.get(e))return L.get(e);const n=e.replace(/FromIndex$/,""),r=e!==n,l=tt.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(l||et.includes(n)))return;const o=async function(s,...d){const i=this.transaction(s,l?"readwrite":"readonly");let u=i.store;return r&&(u=u.index(d.shift())),(await Promise.all([u[n](...d),l&&i.done]))[0]};return L.set(e,o),o}J(t=>({...t,get:(e,n,r)=>Y(e,n)||t.get(e,n,r),has:(e,n)=>!!Y(e,n)||t.has(e,n)}));const nt=["continue","continuePrimaryKey","advance"],W={},U=new WeakMap,Q=new WeakMap,ot={get(t,e){if(!nt.includes(e))return t[e];let n=W[e];return n||(n=W[e]=function(...r){U.set(this,Q.get(this)[e](...r))}),n}};async function*st(...t){let e=this;if(e instanceof IDBCursor||(e=await e.openCursor(...t)),!e)return;e=e;const n=new Proxy(e,ot);for(Q.set(n,e),k.set(n,F(e));e;)yield n,e=await(U.get(n)||e.continue()),U.delete(n)}function X(t,e){return e===Symbol.asyncIterator&&O(t,[IDBIndex,IDBObjectStore,IDBCursor])||e==="iterate"&&O(t,[IDBIndex,IDBObjectStore])}J(t=>({...t,get(e,n,r){return X(e,n)?st:t.get(e,n,r)},has(e,n){return X(e,n)||t.has(e,n)}}));let b=null;const at=ve("indexedDB",{actions:{async open(t=1){return b||(b=await qe(x.INDEX_DB_NAME,t,{upgrade(e){e.objectStoreNames.contains(x.INDEX_DB_TABLE_NAME)||e.createObjectStore(x.INDEX_DB_TABLE_NAME,{keyPath:"hash",autoIncrement:!1}).createIndex("by-hash","hash")},blocked(){console.warn("IndexedDB 被其它标签页占用")}}),b)},async get(t,e){return(await this.open()).get(t,e)},async put(t,e){return(await this.open()).put(t,e)},async remove(t,e){return(await this.open()).delete(t,e)},close(){b?.close(),b=null},async deleteDatabase(){if(b){const t=b.name;this.close(),indexedDB.deleteDatabase(t)}}}}),rt={class:"flex items-center"},lt={class:"ml-2"},ct=V({__name:"index",setup(t){const{t:e}=T(),n=at(),r=E("");async function l(){try{if(!navigator.storage||!navigator.storage.estimate)throw new Error(e("message.error.storageNotSupported"));return await navigator.storage.estimate()}catch(d){return console.error("获取存储统计失败:",d.message),null}}function o(){se.confirm(e("common.clearCacheConfirm"),e("common.info"),{confirmButtonText:e("common.confirm"),cancelButtonText:e("common.cancel"),type:"warning",beforeClose:async(d,i,u)=>{d==="confirm"&&(i.confirmButtonLoading=!0,await $.v1Module.modulecontrollerClearprebuild(),await n.deleteDatabase(),i.confirmButtonLoading=!1,await s(),ae.success(e("common.cacheCleared")),window?.umami?.track(de.CLEAR_CACHE)),u()}}).catch(()=>{})}async function s(){const d=await l(),i=await $.v1Module.modulecontrollerPrebuildsize(),{size:u=0}=i.data??{},{usage:h=0}=d??{},D=(h+u)/(1024*1024);r.value=`${D.toFixed(2)} MB`}return be(async()=>{await s()}),(d,i)=>{const u=ne,h=te,D=oe;return _(),C(D,null,{default:v(()=>[p(h,{label:c(e)("common.cache")+":"},{default:v(()=>[a("div",rt,[p(u,{onClick:o},{default:v(()=>[y(f(c(e)("common.clearCache")),1)]),_:1}),a("span",lt,f(c(e)("common.cacheSize"))+":"+f(r.value),1)])]),_:1},8,["label"])]),_:1})}}}),it={class:"size-full overflow-hidden flex flex-col rounded-sm"},dt={class:"flex-1 overflow-auto overflow-x-hidden p-1"},_t=V({__name:"index",setup(t){const{t:e}=T(),n=G(ue,"previewRule"),r=[{label:B(()=>e("setting.previewRule")),value:"previewRule",component:Ye},{label:B(()=>e("setting.other")),value:"otherSetting",component:ct}],l=B(()=>r.find(s=>s.value===n.value)?.component||{render:()=>null});return(o,s)=>{const d=re;return _(),g("div",it,[p(d,{"body-class":"!p-0",class:"sticky top-0 w-full"},{default:v(()=>[p(c(ye),{modelValue:c(n),"onUpdate:modelValue":s[0]||(s[0]=i=>xe(n)?n.value=i:null),options:r},null,8,["modelValue"])]),_:1}),a("div",dt,[p(c(me),null,{default:v(()=>[(_(),C(ge,null,[(_(),C(we(l.value)))],1024))]),_:1})])])}}});export{_t as default};
1
+ import{R as Z,P as q,aH as G,ac as I,U as ee,y as te,e as ne,x as oe,K as se,J as ae,f as re}from"./vendor-ui-CGT0cG1n.js";import{m as x,k as le,z as ce,D as ie,r as $,i as de,f as ue,j as me}from"./index-D88CvPWT.js";/* empty css */import{v as V,aA as T,aB as fe,ab as _,j as C,aO as v,r as p,ax as c,i as a,q as y,ap as f,aM as z,a7 as pe,aN as he,l as g,F as A,ah as P,Z as _e,af as E,g as B,w as ve,a0 as be,Q as xe,K as ge,al as we}from"./vendor-core-BKehvho7.js";import{_ as ye}from"./BaseSegmented.vue_vue_type_script_setup_true_lang-DU79Plk1.js";const De=V({__name:"RadioMatch",props:{modelValue:{default:""},modelModifiers:{}},emits:["update:modelValue"],setup(t){const{t:e}=T(),n=fe(t,"modelValue");function r(l){n.value=String(l??"")}return(l,o)=>{const s=q,d=Z;return _(),C(d,{"model-value":n.value,class:"flex flex-wrap gap-2",onChange:r},{default:v(()=>[p(s,{value:c(x).COMP_MATCH_TYPE_AUTO,class:"!flex !items-center !gap-1 !m-0 !h-auto"},{default:v(()=>[o[0]||(o[0]=a("span",{class:"inline-block w-2 h-2 rounded-full mr-1 bg-slate-400 shadow-[0_0_4px_rgba(148,163,184,0.5)]"},null,-1)),y(" "+f(c(e)("deps.match.auto")),1)]),_:1},8,["value"]),p(s,{value:c(x).COMP_MATCH_TYPE_ONLY_INSTALL,class:"!flex !items-center !gap-1 !m-0 !h-auto"},{default:v(()=>[o[1]||(o[1]=a("span",{class:"inline-block w-2 h-2 rounded-full mr-1 bg-emerald-500 shadow-[0_0_4px_rgba(16,185,129,0.5)]"},null,-1)),y(" "+f(c(e)("deps.match.onlyInstall")),1)]),_:1},8,["value"]),p(s,{value:c(x).COMP_MATCH_TYPE_MAJOR_VERSION,class:"!flex !items-center !gap-1 !m-0 !h-auto"},{default:v(()=>[o[2]||(o[2]=a("span",{class:"inline-block w-2 h-2 rounded-full mr-1 bg-sky-500 shadow-[0_0_4px_rgba(14,165,233,0.5)]"},null,-1)),y(" "+f(c(e)("deps.match.majorVersion")),1)]),_:1},8,["value"]),p(s,{value:c(x).COMP_MATCH_TYPE_MINOR_VERSION,class:"!flex !items-center !gap-1 !m-0 !h-auto"},{default:v(()=>[o[3]||(o[3]=a("span",{class:"inline-block w-2 h-2 rounded-full mr-1 bg-amber-500 shadow-[0_0_4px_rgba(245,158,11,0.5)]"},null,-1)),y(" "+f(c(e)("deps.match.minorVersion")),1)]),_:1},8,["value"]),p(s,{value:c(x).COMP_MATCH_TYPE_EXACT_VERSION,class:"!flex !items-center !gap-1 !m-0 !h-auto"},{default:v(()=>[o[4]||(o[4]=a("span",{class:"inline-block w-2 h-2 rounded-full mr-1 bg-red-500 shadow-[0_0_4px_rgba(239,68,68,0.5)]"},null,-1)),y(" "+f(c(e)("deps.match.exactVersion")),1)]),_:1},8,["value"])]),_:1},8,["model-value"])}}}),M=le(De,[["__scopeId","data-v-95fca0fc"]]),Ee={class:"flex flex-col gap-4 p-2"},Ce={class:"flex flex-wrap gap-x-4 gap-y-1 px-3 py-2 bg-[var(--el-fill-color-light)] border border-[var(--el-border-color-lighter)] rounded-lg text-xs text-[var(--el-text-color-regular)]"},Ie={class:"font-medium whitespace-nowrap"},Me={class:"text-[var(--el-text-color-secondary)] hidden sm:inline"},Be={class:"bg-[var(--el-bg-color)] border border-[var(--el-border-color-lighter)] rounded-lg overflow-hidden"},Ve={class:"flex items-center justify-between px-4 py-3 bg-[var(--el-fill-color-light)] border-b border-[var(--el-border-color-lighter)]"},Te={class:"text-[15px] font-semibold m-0 text-[var(--el-text-color-primary)]"},ke={class:"flex items-center gap-2"},Se={class:"text-xs text-[var(--el-text-color-secondary)] whitespace-nowrap"},Ae={class:"py-1"},Pe={class:"flex items-baseline gap-2.5 min-w-0 mr-3"},Ne={class:"text-[13px] font-medium text-[var(--el-text-color-primary)] font-mono truncate"},Le={class:"text-xs text-[var(--el-text-color-placeholder)] font-mono whitespace-nowrap shrink-0"},Oe={class:"bg-[var(--el-bg-color)] border border-[var(--el-border-color-lighter)] rounded-lg overflow-hidden"},Re={class:"flex items-center justify-between px-4 py-3 bg-[var(--el-fill-color-light)] border-b border-[var(--el-border-color-lighter)]"},je={class:"text-[15px] font-semibold m-0 text-[var(--el-text-color-primary)]"},Fe={class:"flex items-center gap-2"},Ue={class:"text-xs text-[var(--el-text-color-secondary)] whitespace-nowrap"},$e={class:"py-1"},ze={class:"flex items-baseline gap-2.5 min-w-0 mr-3"},He={class:"text-[13px] font-medium text-[var(--el-text-color-primary)] font-mono truncate"},Ke={class:"text-xs text-[var(--el-text-color-placeholder)] font-mono whitespace-nowrap shrink-0"},Ye=V({__name:"index",setup(t){const{t:e}=T(),n=ce(),r=G(ie,{dependencies:[],devDependencies:[]}),l=E([]),o=E([]),s=E(""),d=E(""),i=B(()=>[{key:"auto",dotClass:"bg-slate-400",label:e("deps.match.auto"),desc:e("deps.matchDesc.auto")},{key:"onlyInstall",dotClass:"bg-emerald-500",label:e("deps.match.onlyInstall"),desc:e("deps.matchDesc.onlyInstall")},{key:"majorVersion",dotClass:"bg-sky-500",label:e("deps.match.majorVersion"),desc:e("deps.matchDesc.majorVersion")},{key:"minorVersion",dotClass:"bg-amber-500",label:e("deps.match.minorVersion"),desc:e("deps.matchDesc.minorVersion")},{key:"exactVersion",dotClass:"bg-red-500",label:e("deps.match.exactVersion"),desc:e("deps.matchDesc.exactVersion")}]);return z(s,u=>{u&&l.value.forEach(h=>{h.match=u})}),z(d,u=>{u&&o.value.forEach(h=>{h.match=u})}),pe(async()=>{l.value=I(n.dependencies),o.value=I(n.devDependencies)}),he(()=>{l.value.length&&n.setDependencies(I(l.value)),o.value.length&&n.setDevDependencies(I(o.value)),r.value={dependencies:l.value.length?l.value:r.value.dependencies,devDependencies:o.value.length?o.value:r.value.devDependencies}}),(u,h)=>{const D=ee;return _(),C(D,{"wrap-class":"size-full"},{default:v(()=>[a("div",Ee,[a("div",Ce,[(_(!0),g(A,null,P(i.value,m=>(_(),g("div",{key:m.key,class:"flex items-center gap-1"},[a("span",{class:_e(["inline-block w-2 h-2 rounded-full shrink-0",m.dotClass])},null,2),a("span",Ie,f(m.label),1),a("span",Me,"— "+f(m.desc),1)]))),128))]),a("div",Be,[a("div",Ve,[a("h2",Te,f(c(e)("deps.dependencies")),1),a("div",ke,[a("span",Se,f(c(e)("deps.batchSetting")),1),p(c(M),{modelValue:s.value,"onUpdate:modelValue":h[0]||(h[0]=m=>s.value=m)},null,8,["modelValue"])])]),a("div",Ae,[(_(!0),g(A,null,P(l.value,m=>(_(),g("div",{key:m.name,class:"flex items-center justify-between px-4 py-2 border-t border-[var(--el-border-color-extra-light)] first:border-t-0 hover:bg-[var(--el-fill-color-light)] transition-colors duration-150"},[a("div",Pe,[a("span",Ne,f(m.name),1),a("span",Le,f(m.version),1)]),p(c(M),{modelValue:m.match,"onUpdate:modelValue":S=>m.match=S},null,8,["modelValue","onUpdate:modelValue"])]))),128))])]),a("div",Oe,[a("div",Re,[a("h2",je,f(c(e)("deps.devDependencies")),1),a("div",Fe,[a("span",Ue,f(c(e)("deps.batchSetting")),1),p(c(M),{modelValue:d.value,"onUpdate:modelValue":h[1]||(h[1]=m=>d.value=m)},null,8,["modelValue"])])]),a("div",$e,[(_(!0),g(A,null,P(o.value,m=>(_(),g("div",{key:m.name,class:"flex items-center justify-between px-4 py-2 border-t border-[var(--el-border-color-extra-light)] first:border-t-0 hover:bg-[var(--el-fill-color-light)] transition-colors duration-150"},[a("div",ze,[a("span",He,f(m.name),1),a("span",Ke,f(m.version),1)]),p(c(M),{modelValue:m.match,"onUpdate:modelValue":S=>m.match=S},null,8,["modelValue","onUpdate:modelValue"])]))),128))])])])]),_:1})}}}),O=(t,e)=>e.some(n=>t instanceof n);let H,K;function We(){return H||(H=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Xe(){return K||(K=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const R=new WeakMap,N=new WeakMap,k=new WeakMap;function Ge(t){const e=new Promise((n,r)=>{const l=()=>{t.removeEventListener("success",o),t.removeEventListener("error",s)},o=()=>{n(w(t.result)),l()},s=()=>{r(t.error),l()};t.addEventListener("success",o),t.addEventListener("error",s)});return k.set(e,t),e}function Je(t){if(R.has(t))return;const e=new Promise((n,r)=>{const l=()=>{t.removeEventListener("complete",o),t.removeEventListener("error",s),t.removeEventListener("abort",s)},o=()=>{n(),l()},s=()=>{r(t.error||new DOMException("AbortError","AbortError")),l()};t.addEventListener("complete",o),t.addEventListener("error",s),t.addEventListener("abort",s)});R.set(t,e)}let j={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return R.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return w(t[e])},set(t,e,n){return t[e]=n,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function J(t){j=t(j)}function Qe(t){return Xe().includes(t)?function(...e){return t.apply(F(this),e),w(this.request)}:function(...e){return w(t.apply(F(this),e))}}function Ze(t){return typeof t=="function"?Qe(t):(t instanceof IDBTransaction&&Je(t),O(t,We())?new Proxy(t,j):t)}function w(t){if(t instanceof IDBRequest)return Ge(t);if(N.has(t))return N.get(t);const e=Ze(t);return e!==t&&(N.set(t,e),k.set(e,t)),e}const F=t=>k.get(t);function qe(t,e,{blocked:n,upgrade:r,blocking:l,terminated:o}={}){const s=indexedDB.open(t,e),d=w(s);return r&&s.addEventListener("upgradeneeded",i=>{r(w(s.result),i.oldVersion,i.newVersion,w(s.transaction),i)}),n&&s.addEventListener("blocked",i=>n(i.oldVersion,i.newVersion,i)),d.then(i=>{o&&i.addEventListener("close",()=>o()),l&&i.addEventListener("versionchange",u=>l(u.oldVersion,u.newVersion,u))}).catch(()=>{}),d}const et=["get","getKey","getAll","getAllKeys","count"],tt=["put","add","delete","clear"],L=new Map;function Y(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(L.get(e))return L.get(e);const n=e.replace(/FromIndex$/,""),r=e!==n,l=tt.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(l||et.includes(n)))return;const o=async function(s,...d){const i=this.transaction(s,l?"readwrite":"readonly");let u=i.store;return r&&(u=u.index(d.shift())),(await Promise.all([u[n](...d),l&&i.done]))[0]};return L.set(e,o),o}J(t=>({...t,get:(e,n,r)=>Y(e,n)||t.get(e,n,r),has:(e,n)=>!!Y(e,n)||t.has(e,n)}));const nt=["continue","continuePrimaryKey","advance"],W={},U=new WeakMap,Q=new WeakMap,ot={get(t,e){if(!nt.includes(e))return t[e];let n=W[e];return n||(n=W[e]=function(...r){U.set(this,Q.get(this)[e](...r))}),n}};async function*st(...t){let e=this;if(e instanceof IDBCursor||(e=await e.openCursor(...t)),!e)return;e=e;const n=new Proxy(e,ot);for(Q.set(n,e),k.set(n,F(e));e;)yield n,e=await(U.get(n)||e.continue()),U.delete(n)}function X(t,e){return e===Symbol.asyncIterator&&O(t,[IDBIndex,IDBObjectStore,IDBCursor])||e==="iterate"&&O(t,[IDBIndex,IDBObjectStore])}J(t=>({...t,get(e,n,r){return X(e,n)?st:t.get(e,n,r)},has(e,n){return X(e,n)||t.has(e,n)}}));let b=null;const at=ve("indexedDB",{actions:{async open(t=1){return b||(b=await qe(x.INDEX_DB_NAME,t,{upgrade(e){e.objectStoreNames.contains(x.INDEX_DB_TABLE_NAME)||e.createObjectStore(x.INDEX_DB_TABLE_NAME,{keyPath:"hash",autoIncrement:!1}).createIndex("by-hash","hash")},blocked(){console.warn("IndexedDB 被其它标签页占用")}}),b)},async get(t,e){return(await this.open()).get(t,e)},async put(t,e){return(await this.open()).put(t,e)},async remove(t,e){return(await this.open()).delete(t,e)},close(){b?.close(),b=null},async deleteDatabase(){if(b){const t=b.name;this.close(),indexedDB.deleteDatabase(t)}}}}),rt={class:"flex items-center"},lt={class:"ml-2"},ct=V({__name:"index",setup(t){const{t:e}=T(),n=at(),r=E("");async function l(){try{if(!navigator.storage||!navigator.storage.estimate)throw new Error(e("message.error.storageNotSupported"));return await navigator.storage.estimate()}catch(d){return console.error("获取存储统计失败:",d.message),null}}function o(){se.confirm(e("common.clearCacheConfirm"),e("common.info"),{confirmButtonText:e("common.confirm"),cancelButtonText:e("common.cancel"),type:"warning",beforeClose:async(d,i,u)=>{d==="confirm"&&(i.confirmButtonLoading=!0,await $.v1Module.modulecontrollerClearprebuild(),await n.deleteDatabase(),i.confirmButtonLoading=!1,await s(),ae.success(e("common.cacheCleared")),window?.umami?.track(de.CLEAR_CACHE)),u()}}).catch(()=>{})}async function s(){const d=await l(),i=await $.v1Module.modulecontrollerPrebuildsize(),{size:u=0}=i.data??{},{usage:h=0}=d??{},D=(h+u)/(1024*1024);r.value=`${D.toFixed(2)} MB`}return be(async()=>{await s()}),(d,i)=>{const u=ne,h=te,D=oe;return _(),C(D,null,{default:v(()=>[p(h,{label:c(e)("common.cache")+":"},{default:v(()=>[a("div",rt,[p(u,{onClick:o},{default:v(()=>[y(f(c(e)("common.clearCache")),1)]),_:1}),a("span",lt,f(c(e)("common.cacheSize"))+":"+f(r.value),1)])]),_:1},8,["label"])]),_:1})}}}),it={class:"size-full overflow-hidden flex flex-col rounded-sm"},dt={class:"flex-1 overflow-auto overflow-x-hidden p-1"},_t=V({__name:"index",setup(t){const{t:e}=T(),n=G(ue,"previewRule"),r=[{label:B(()=>e("setting.previewRule")),value:"previewRule",component:Ye},{label:B(()=>e("setting.other")),value:"otherSetting",component:ct}],l=B(()=>r.find(s=>s.value===n.value)?.component||{render:()=>null});return(o,s)=>{const d=re;return _(),g("div",it,[p(d,{"body-class":"!p-0",class:"sticky top-0 w-full"},{default:v(()=>[p(c(ye),{modelValue:c(n),"onUpdate:modelValue":s[0]||(s[0]=i=>xe(n)?n.value=i:null),options:r},null,8,["modelValue"])]),_:1}),a("div",dt,[p(c(me),null,{default:v(()=>[(_(),C(ge,null,[(_(),C(we(l.value)))],1024))]),_:1})])])}}});export{_t as default};
@@ -1 +1 @@
1
- import{a2 as R,e as $,W as H,L as F,b as q,K as z,J as C}from"./vendor-ui-CGT0cG1n.js";import{B as K,u,i as k}from"./index-CRPDDq-V.js";import"./el-table-column-CGzXlVpD.js";import{v as L,aA as Q,aD as W,a7 as j,ab as g,l as T,r as s,aO as r,_ as A,A as w,q as E,ap as v,ax as p,F as G,ah as J,j as X,i as Z,af as I,g as o,ao as ee}from"./vendor-core-BKehvho7.js";import{b as ae}from"./index.vue_vue_type_script_setup_true_lang-BcUGs_WV.js";import{h as M}from"./moment-B-YVwB4U.js";import{u as te}from"./useTeamHeaders-DxHN7-t0.js";import{_ as oe}from"./LoadingWrapper.vue_vue_type_script_setup_true_lang-kJcgjuK5.js";import"./index-5NbrFL1v.js";import"./useCompMetaLocalStore-BKTMp_k8.js";import"./useCacheOssStore-OAoLDVbw.js";import"./useVscodeOpen--nBM6CZ-.js";/* empty css */import"./BaseDialog.vue_vue_type_script_setup_true_lang-BROcUfEh.js";import"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-pswB5SUz.js";import"./useMessage-8Gi-vx-A.js";const ne={class:"size-full"},re={class:"text-gray-300"},Te=L({__name:"index",setup(le){const{t:a}=Q(),x=W(),{headers:i,teamId:f}=te(),_=ae(f)(),b=I([]),d=I({data:[],column:[{prop:"name",label:o(()=>a("comp.name")),align:"center"},{prop:"authorId.nickname",label:o(()=>a("common.author")),align:"center",formatter:e=>e.teamUserNickname||e.authorId?.nickname||"--"},{prop:"version",label:o(()=>a("comp.version")),align:"center"},{prop:"desc",label:o(()=>a("comp.desc")),align:"center",showOverflowTooltip:{popperClass:"table-text-tooltip"}},{prop:"createdAt",label:o(()=>a("team.createTime")),align:"center",formatter:e=>e.createdAt?M(e.createdAt).format("YYYY-MM-DD"):"--"},{prop:"updatedAt",label:o(()=>a("team.updateTime")),align:"center",formatter:e=>e.updatedAt?M(e.updatedAt).format("YYYY-MM-DD"):"--"},{slot:"canUpdateUsers",prop:"canUpdateUsers",label:o(()=>a("team.updateAuth")),align:"center"},{slot:"operation",prop:"operation",label:o(()=>a("common.operation")),align:"center"}],search:{column:[{prop:"keyword",component:ee(q),label:o(()=>a("common.keyword")),value:"",autoQuery:!1,attributes:{placeholder:o(()=>a("comp.keywordPlaceholder")),fetchSuggestions:D,triggerOnFocus:!1,style:"width: 400px",fitInputWidth:!0}}]},pagination:{total:0},fixedHeight:!1,fetchData:O}),B=o(()=>b.value.map(e=>({value:e._id,label:e.teamUserNickname||e.nickname||e.account})));function D(e,t){if(e.length<=1)return t([]);u.v1Keyword.keywordcontrollerQuerykeywordscomp({keyword:e,type:"compTeam"},{headers:i}).then(c=>{const{keywords:l=[]}=c.data||{};t(l)})}async function O(e){const t=await u.v1Team.teamcontrollerTeamcomps({...e,scene:"management"},{headers:i}),{rows:c,total:l}=t.data||{};d.value.data=c||[],d.value.pagination.total=l||0}async function N(e,t){t.start();try{if(await z.confirm(a("team.deleteCompConfirm",{name:e.name}),a("common.info"),{confirmButtonText:a("common.confirm"),cancelButtonText:a("common.cancel"),type:"warning"}).catch(()=>{})!=="confirm")return;await u.v1Team.teamcontrollerRemovecompfromteam({compIds:[e._id]},{headers:i}).then(()=>{C.success(a("message.success.delete")),d.value.data=d.value.data.filter(l=>l._id!==e._id),_.setTeamDetail({..._.teamDetail,compCount:_.teamDetail.compCount-1}),window?.umami?.track(k.TEAM_COMP_REMOVE,{teamId:f,compId:e._id,compName:e.name})})}finally{t.end()}}function S(e){x.push({path:`/previewTeam/${f}/${e._id}`})}function V(){u.v1Team.teamcontrollerAllmember({headers:i}).then(e=>{b.value=e.data?.rows||[]})}function Y(e){const t={compId:e._id,canUpdateUserIds:e.canUpdateUsers||[]};u.v1Team.teamcontrollerUpdatecompcanupdateusers(t,{headers:i}).then(()=>{C.success(a("message.success.update")),window?.umami?.track(k.TEAM_COMP_PERMISSION_CHANGE,{teamId:f,compId:e._id,userIds:t.canUpdateUserIds})})}return j(()=>{V()}),(e,t)=>{const c=F,l=H,U=R,y=$;return g(),T("div",ne,[s(p(K),{tableConfig:d.value,border:""},{canUpdateUsers:r(({col:h})=>[s(U,A(w(h)),{default:r(({row:m})=>[s(l,{modelValue:m.canUpdateUsers,"onUpdate:modelValue":n=>m.canUpdateUsers=n,multiple:"","collapse-tags":"","collapse-tags-tooltip":"",placeholder:p(a)("team.selectCanUpdateUser"),onChange:n=>Y(m)},{header:r(()=>[Z("span",re,v(p(a)("team.authorAutoAuth")),1)]),default:r(()=>[(g(!0),T(G,null,J(B.value,n=>(g(),X(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:r(({col:h})=>[s(U,A(w(h)),{default:r(({row:m})=>[s(y,{type:"primary",onClick:n=>S(m)},{default:r(()=>[E(v(p(a)("common.preview")),1)]),_:1},8,["onClick"]),s(p(oe),null,{default:r(({instance:n,loading:P})=>[s(y,{type:"danger",loading:P,onClick:se=>N(m,n)},{default:r(()=>[E(v(p(a)("common.delete")),1)]),_:1},8,["loading","onClick"])]),_:2},1024)]),_:1},16)]),_:1},8,["tableConfig"])])}}});export{Te as default};
1
+ import{a2 as R,e as $,W as H,L as F,b as q,K as z,J as C}from"./vendor-ui-CGT0cG1n.js";import{B as K,u,i as k}from"./index-D88CvPWT.js";import"./el-table-column-CGzXlVpD.js";import{v as L,aA as Q,aD as W,a7 as j,ab as g,l as T,r as s,aO as r,_ as A,A as w,q as E,ap as v,ax as p,F as G,ah as J,j as X,i as Z,af as I,g as o,ao as ee}from"./vendor-core-BKehvho7.js";import{b as ae}from"./index.vue_vue_type_script_setup_true_lang-CmmAEEXC.js";import{h as M}from"./moment-B-YVwB4U.js";import{u as te}from"./useTeamHeaders-DxHN7-t0.js";import{_ as oe}from"./LoadingWrapper.vue_vue_type_script_setup_true_lang-kJcgjuK5.js";import"./index-B9hCLAJk.js";import"./useCompMetaLocalStore-BKTMp_k8.js";import"./useCacheOssStore-OAoLDVbw.js";import"./useVscodeOpen-BBdyQ3W2.js";/* empty css */import"./BaseDialog.vue_vue_type_script_setup_true_lang-BROcUfEh.js";import"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-pswB5SUz.js";import"./useMessage-Cbhfk7Nk.js";const ne={class:"size-full"},re={class:"text-gray-300"},Te=L({__name:"index",setup(le){const{t:a}=Q(),x=W(),{headers:i,teamId:f}=te(),_=ae(f)(),b=I([]),d=I({data:[],column:[{prop:"name",label:o(()=>a("comp.name")),align:"center"},{prop:"authorId.nickname",label:o(()=>a("common.author")),align:"center",formatter:e=>e.teamUserNickname||e.authorId?.nickname||"--"},{prop:"version",label:o(()=>a("comp.version")),align:"center"},{prop:"desc",label:o(()=>a("comp.desc")),align:"center",showOverflowTooltip:{popperClass:"table-text-tooltip"}},{prop:"createdAt",label:o(()=>a("team.createTime")),align:"center",formatter:e=>e.createdAt?M(e.createdAt).format("YYYY-MM-DD"):"--"},{prop:"updatedAt",label:o(()=>a("team.updateTime")),align:"center",formatter:e=>e.updatedAt?M(e.updatedAt).format("YYYY-MM-DD"):"--"},{slot:"canUpdateUsers",prop:"canUpdateUsers",label:o(()=>a("team.updateAuth")),align:"center"},{slot:"operation",prop:"operation",label:o(()=>a("common.operation")),align:"center"}],search:{column:[{prop:"keyword",component:ee(q),label:o(()=>a("common.keyword")),value:"",autoQuery:!1,attributes:{placeholder:o(()=>a("comp.keywordPlaceholder")),fetchSuggestions:D,triggerOnFocus:!1,style:"width: 400px",fitInputWidth:!0}}]},pagination:{total:0},fixedHeight:!1,fetchData:O}),B=o(()=>b.value.map(e=>({value:e._id,label:e.teamUserNickname||e.nickname||e.account})));function D(e,t){if(e.length<=1)return t([]);u.v1Keyword.keywordcontrollerQuerykeywordscomp({keyword:e,type:"compTeam"},{headers:i}).then(c=>{const{keywords:l=[]}=c.data||{};t(l)})}async function O(e){const t=await u.v1Team.teamcontrollerTeamcomps({...e,scene:"management"},{headers:i}),{rows:c,total:l}=t.data||{};d.value.data=c||[],d.value.pagination.total=l||0}async function N(e,t){t.start();try{if(await z.confirm(a("team.deleteCompConfirm",{name:e.name}),a("common.info"),{confirmButtonText:a("common.confirm"),cancelButtonText:a("common.cancel"),type:"warning"}).catch(()=>{})!=="confirm")return;await u.v1Team.teamcontrollerRemovecompfromteam({compIds:[e._id]},{headers:i}).then(()=>{C.success(a("message.success.delete")),d.value.data=d.value.data.filter(l=>l._id!==e._id),_.setTeamDetail({..._.teamDetail,compCount:_.teamDetail.compCount-1}),window?.umami?.track(k.TEAM_COMP_REMOVE,{teamId:f,compId:e._id,compName:e.name})})}finally{t.end()}}function S(e){x.push({path:`/previewTeam/${f}/${e._id}`})}function V(){u.v1Team.teamcontrollerAllmember({headers:i}).then(e=>{b.value=e.data?.rows||[]})}function Y(e){const t={compId:e._id,canUpdateUserIds:e.canUpdateUsers||[]};u.v1Team.teamcontrollerUpdatecompcanupdateusers(t,{headers:i}).then(()=>{C.success(a("message.success.update")),window?.umami?.track(k.TEAM_COMP_PERMISSION_CHANGE,{teamId:f,compId:e._id,userIds:t.canUpdateUserIds})})}return j(()=>{V()}),(e,t)=>{const c=F,l=H,U=R,y=$;return g(),T("div",ne,[s(p(K),{tableConfig:d.value,border:""},{canUpdateUsers:r(({col:h})=>[s(U,A(w(h)),{default:r(({row:m})=>[s(l,{modelValue:m.canUpdateUsers,"onUpdate:modelValue":n=>m.canUpdateUsers=n,multiple:"","collapse-tags":"","collapse-tags-tooltip":"",placeholder:p(a)("team.selectCanUpdateUser"),onChange:n=>Y(m)},{header:r(()=>[Z("span",re,v(p(a)("team.authorAutoAuth")),1)]),default:r(()=>[(g(!0),T(G,null,J(B.value,n=>(g(),X(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:r(({col:h})=>[s(U,A(w(h)),{default:r(({row:m})=>[s(y,{type:"primary",onClick:n=>S(m)},{default:r(()=>[E(v(p(a)("common.preview")),1)]),_:1},8,["onClick"]),s(p(oe),null,{default:r(({instance:n,loading:P})=>[s(y,{type:"danger",loading:P,onClick:se=>N(m,n)},{default:r(()=>[E(v(p(a)("common.delete")),1)]),_:1},8,["loading","onClick"])]),_:2},1024)]),_:1},16)]),_:1},8,["tableConfig"])])}}});export{Te as default};
@@ -1 +1 @@
1
- import{a2 as $,e as B,a3 as H,A as S,J as j}from"./vendor-ui-CGT0cG1n.js";import{B as z,u as C,i as h}from"./index-CRPDDq-V.js";import"./el-table-column-CGzXlVpD.js";import{b as M}from"./index.vue_vue_type_script_setup_true_lang-BcUGs_WV.js";import{_ as R}from"./index.vue_vue_type_script_setup_true_lang-CsP7DU8L.js";import{u as w}from"./useTeamHeaders-DxHN7-t0.js";import{v as D,aA as J,ab as u,l as d,r as o,p as L,ax as s,aO as r,_ as T,A as E,q as _,ap as f,af as N,g as c,ao as V}from"./vendor-core-BKehvho7.js";import{_ as Y}from"./LoadingWrapper.vue_vue_type_script_setup_true_lang-kJcgjuK5.js";import"./index-5NbrFL1v.js";import"./useCompMetaLocalStore-BKTMp_k8.js";import"./useCacheOssStore-OAoLDVbw.js";import"./useVscodeOpen--nBM6CZ-.js";/* empty css */import"./BaseDialog.vue_vue_type_script_setup_true_lang-BROcUfEh.js";import"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-pswB5SUz.js";import"./useMessage-8Gi-vx-A.js";const q={class:"size-full"},O={key:0},Q={key:1},ca=D({__name:"index",setup(F){const{t:a}=J(),{headers:v,teamId:g}=w(),I=M(g)(),p=N({data:[],column:[{slot:"avatar",prop:"userId.avatar",label:c(()=>a("user.avatar")),align:"center"},{prop:"userId.account",label:c(()=>a("user.account")),align:"center"},{prop:"userId.nickname",label:c(()=>a("user.nickname")),align:"center",formatter(e){return e.userId.nickname||"--"}},{slot:"operation",prop:"operation",label:c(()=>a("common.operation")),align:"center"}],pagination:{total:0},search:{column:[{prop:"keyword",component:V(S),value:"",autoQuery:!1,attributes:{placeholder:c(()=>`${a("user.account")}/${a("user.nickname")}`)}}]},fixedHeight:!1,fetchData:A});async function A(e){const l=await C.v1Team.teamcontrollerApplylist({...e},{headers:v}),{rows:n,total:t}=l.data||{};p.value.data=n||[],p.value.pagination.total=t||0}function y(e,l,n){n.start(),C.v1Team.teamcontrollerHandleapply({applyId:e._id,isAgree:l},{headers:v}).then(()=>{p.value.data=p.value.data?.map(t=>(t._id===e._id&&(t.status=l?"approved":"rejected"),t)),j.success(a("message.success.operation")),window?.umami?.track(l?h.TEAM_APPLY_ACCEPT:h.TEAM_APPLY_REJECT,{teamId:g,applyId:e._id})}).finally(()=>{n.end()})}return(e,l)=>{const n=$,t=B,x=H;return u(),d("div",q,[o(s(z),{tableConfig:p.value,border:""},L({avatar:r(({col:m})=>[o(n,T(E(m)),{default:r(({row:i})=>[o(R,{src:i.userId.avatar,size:40},null,8,["src"])]),_:1},16)]),_:2},[s(I).isCreator?{name:"operation",fn:r(({col:m})=>[o(n,T(E(m)),{default:r(({row:i})=>[i.status==="pending"?(u(),d("div",O,[o(s(Y),null,{default:r(({instance:b,loading:k})=>[o(t,{type:"danger",loading:k,onClick:P=>y(i,!1,b)},{default:r(()=>[_(f(s(a)("team.reject")),1)]),_:1},8,["loading","onClick"]),o(t,{type:"primary",loading:k,onClick:P=>y(i,!0,b)},{default:r(()=>[_(f(s(a)("team.agree")),1)]),_:1},8,["loading","onClick"])]),_:2},1024)])):(u(),d("div",Q,[o(x,{type:"info"},{default:r(()=>[_(f(i.status==="approved"?s(a)("team.approved"):s(a)("team.rejected")),1)]),_:2},1024)]))]),_:1},16)]),key:"0"}:void 0]),1032,["tableConfig"])])}}});export{ca as default};
1
+ import{a2 as $,e as B,a3 as H,A as S,J as j}from"./vendor-ui-CGT0cG1n.js";import{B as z,u as C,i as h}from"./index-D88CvPWT.js";import"./el-table-column-CGzXlVpD.js";import{b as M}from"./index.vue_vue_type_script_setup_true_lang-CmmAEEXC.js";import{_ as R}from"./index.vue_vue_type_script_setup_true_lang-BAM6bQ14.js";import{u as w}from"./useTeamHeaders-DxHN7-t0.js";import{v as D,aA as J,ab as u,l as d,r as o,p as L,ax as s,aO as r,_ as T,A as E,q as _,ap as f,af as N,g as c,ao as V}from"./vendor-core-BKehvho7.js";import{_ as Y}from"./LoadingWrapper.vue_vue_type_script_setup_true_lang-kJcgjuK5.js";import"./index-B9hCLAJk.js";import"./useCompMetaLocalStore-BKTMp_k8.js";import"./useCacheOssStore-OAoLDVbw.js";import"./useVscodeOpen-BBdyQ3W2.js";/* empty css */import"./BaseDialog.vue_vue_type_script_setup_true_lang-BROcUfEh.js";import"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-pswB5SUz.js";import"./useMessage-Cbhfk7Nk.js";const q={class:"size-full"},O={key:0},Q={key:1},ca=D({__name:"index",setup(F){const{t:a}=J(),{headers:v,teamId:g}=w(),I=M(g)(),p=N({data:[],column:[{slot:"avatar",prop:"userId.avatar",label:c(()=>a("user.avatar")),align:"center"},{prop:"userId.account",label:c(()=>a("user.account")),align:"center"},{prop:"userId.nickname",label:c(()=>a("user.nickname")),align:"center",formatter(e){return e.userId.nickname||"--"}},{slot:"operation",prop:"operation",label:c(()=>a("common.operation")),align:"center"}],pagination:{total:0},search:{column:[{prop:"keyword",component:V(S),value:"",autoQuery:!1,attributes:{placeholder:c(()=>`${a("user.account")}/${a("user.nickname")}`)}}]},fixedHeight:!1,fetchData:A});async function A(e){const l=await C.v1Team.teamcontrollerApplylist({...e},{headers:v}),{rows:n,total:t}=l.data||{};p.value.data=n||[],p.value.pagination.total=t||0}function y(e,l,n){n.start(),C.v1Team.teamcontrollerHandleapply({applyId:e._id,isAgree:l},{headers:v}).then(()=>{p.value.data=p.value.data?.map(t=>(t._id===e._id&&(t.status=l?"approved":"rejected"),t)),j.success(a("message.success.operation")),window?.umami?.track(l?h.TEAM_APPLY_ACCEPT:h.TEAM_APPLY_REJECT,{teamId:g,applyId:e._id})}).finally(()=>{n.end()})}return(e,l)=>{const n=$,t=B,x=H;return u(),d("div",q,[o(s(z),{tableConfig:p.value,border:""},L({avatar:r(({col:m})=>[o(n,T(E(m)),{default:r(({row:i})=>[o(R,{src:i.userId.avatar,size:40},null,8,["src"])]),_:1},16)]),_:2},[s(I).isCreator?{name:"operation",fn:r(({col:m})=>[o(n,T(E(m)),{default:r(({row:i})=>[i.status==="pending"?(u(),d("div",O,[o(s(Y),null,{default:r(({instance:b,loading:k})=>[o(t,{type:"danger",loading:k,onClick:P=>y(i,!1,b)},{default:r(()=>[_(f(s(a)("team.reject")),1)]),_:1},8,["loading","onClick"]),o(t,{type:"primary",loading:k,onClick:P=>y(i,!0,b)},{default:r(()=>[_(f(s(a)("team.agree")),1)]),_:1},8,["loading","onClick"])]),_:2},1024)])):(u(),d("div",Q,[o(x,{type:"info"},{default:r(()=>[_(f(i.status==="approved"?s(a)("team.approved"):s(a)("team.rejected")),1)]),_:2},1024)]))]),_:1},16)]),key:"0"}:void 0]),1032,["tableConfig"])])}}});export{ca as default};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-CWJKxZCd.js","./vendor-ui-CGT0cG1n.js","./vendor-core-BKehvho7.js","./index-D88CvPWT.js","./index-qOVjc392.css","./index.vue_vue_type_script_setup_true_lang-CmmAEEXC.js","./index-B9hCLAJk.js","./useCompMetaLocalStore-BKTMp_k8.js","./useCacheOssStore-OAoLDVbw.js","./useVscodeOpen-BBdyQ3W2.js","./useTeamHeaders-DxHN7-t0.js","./BaseDialog.vue_vue_type_script_setup_true_lang-BROcUfEh.js","./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-pswB5SUz.js","./useMessage-Cbhfk7Nk.js","./el-link-CPQZ-olG.css","./useCompEditStore-DhXxYAqN.js","./v4-EwEgHOG0.js","./index.vue_vue_type_style_index_0_lang-BZ1LzI3x.js","./core-CcVTMiBP.js","./index-Dj51p5I8.css","./PanelBackground.vue_vue_type_script_setup_true_lang-BELCrrRh.js","./BaseSegmented.vue_vue_type_script_setup_true_lang-DU79Plk1.js","./LoadingWrapper.vue_vue_type_script_setup_true_lang-kJcgjuK5.js","./useCompEditStore-D7YXYpD3.css","./el-card-BAyktVMS.css","./index.vue_vue_type_style_index_0_lang-BipgSalp.js","./index-CdWXO9ks.css","./useKeyword-CjhhChz4.js","./index-U6TRHk8E.js","./index-Dd9Tvz1_.css","./index-5EYT6f8p.js","./el-table-column-CGzXlVpD.js","./el-table-column-B3ZEEuPD.css","./moment-B-YVwB4U.js","./index-CbfSiY9U.js","./index-pjvH5dVi.js","./index.vue_vue_type_script_setup_true_lang-BAM6bQ14.js","./index-DOlF0Z_P.css","./index-B-JCIDk_.js","./index-DquKS0_n.js","./AuthCodeSendBtn.vue_vue_type_script_setup_true_lang-CP9hjm3T.js"])))=>i.map(i=>d[i]);
2
+ import{k as ce,B as q,m as P,j as X,u as B,I as L,A as de,g as me,i as pe,_ as S}from"./index-D88CvPWT.js";import{X as ue,z as _e,a2 as fe,e as J,U as W,ac as ve,s as he,b as ge,W as ye,J as be,f as Z,c as Ce,a3 as we,aH as xe,d as Te,K as Ae}from"./vendor-ui-CGT0cG1n.js";import{_ as Ee}from"./el-table-column-CGzXlVpD.js";/* empty css */import{_ as ke}from"./index.vue_vue_type_script_setup_true_lang-BAM6bQ14.js";import{v as M,ab as g,l as N,i as r,ap as f,ai as G,g as i,ay as Ie,j as E,ax as e,X as ee,aO as s,aB as Le,r as a,al as H,aA as z,_ as De,A as $e,q as D,aC as te,ac as j,aF as ae,aM as oe,a9 as se,y as Me,Y as Se,K as ne,af as F,ao as Y,aD as Oe,a3 as Ve,a2 as Re,a7 as Pe,Q as Be,u as O}from"./vendor-core-BKehvho7.js";import{c as Ne,a as ze,b as K}from"./index.vue_vue_type_script_setup_true_lang-CmmAEEXC.js";import{_ as Ue}from"./LoadingWrapper.vue_vue_type_script_setup_true_lang-kJcgjuK5.js";import{u as Fe}from"./useKeyword-CjhhChz4.js";import{u as Ge,I as Q,e as He}from"./useMessage-Cbhfk7Nk.js";import{u as le}from"./useTeamHeaders-DxHN7-t0.js";import{I as ie}from"./index-BoIy-5_p.js";import{_ as Ke}from"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-pswB5SUz.js";import{_ as je}from"./BaseSegmented.vue_vue_type_script_setup_true_lang-DU79Plk1.js";import"./useCacheOssStore-OAoLDVbw.js";import"./index-B9hCLAJk.js";import"./useCompMetaLocalStore-BKTMp_k8.js";import"./useVscodeOpen-BBdyQ3W2.js";/* empty css */import"./BaseDialog.vue_vue_type_script_setup_true_lang-BROcUfEh.js";const Ye={class:"flex items-center justify-center gap-[6px] leading-[15px]"},Qe={class:"text-xs leading-3 align-middle"},qe={class:"inline-block align-middle shrink-0"},Xe=M({__name:"UserAvatar",props:{nickname:{type:String,default:""},teamUserNickname:{type:String,default:""}},setup(d){const t=d,o=i(()=>t.teamUserNickname||t.nickname||"--");return(c,C)=>(g(),N("div",Ye,[r("span",Qe,f(o.value),1),r("div",qe,[G(c.$slots,"avatar",{},void 0,!0)])]))}}),Je=ce(Xe,[["__scopeId","data-v-99cd7413"]]),We=M({__name:"SkeletonContainer",setup(d){const t=Ie();return(o,c)=>(g(),E(e(ue),ee({rows:3,animated:""},e(t)),{default:s(()=>[G(o.$slots,"default")]),template:s(()=>[G(o.$slots,"template")]),_:3},16))}}),Ze='<path class="cdj_y1r7t"/>',et={__name:"grid-view-rounded",props:["width","height"],setup(d){const t={width:24,height:24};return(o,c)=>(g(),E(e(ie),{width:d.width,height:d.height,viewBox:t,content:Ze,fallback:"material-symbols:grid-view-rounded"},null,8,["width","height"]))}},tt='<path class="u2_fvl-wz"/>',at={__name:"view-list",props:["width","height"],setup(d){const t={width:24,height:24};return(o,c)=>(g(),E(e(ie),{width:d.width,height:d.height,viewBox:t,content:tt,fallback:"material-symbols:view-list"},null,8,["width","height"]))}},ot=M({__name:"ViewToggle",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(d){const t=Le(d,"modelValue"),o=i(()=>t.value==="grid"?at:et);function c(){t.value=t.value==="grid"?"list":"grid"}return(C,l)=>(g(),N("div",{class:"flex items-center rounded-sm cursor-pointer",onClick:c},[a(e(_e),{style:{"font-size":"25px"}},{default:s(()=>[(g(),E(H(o.value)))]),_:1})]))}}),st={class:"size-full overflow-hidden"},nt=M({__name:"ViewCompList",props:{data:{type:Array,default:()=>[]},selectedRows:{type:Array,default:()=>[]}},emits:["add-one-comp"],setup(d,{emit:t}){const{t:o}=z(),c=d,C=t,l=i(()=>({data:c.data,column:[{prop:"name",label:o("comp.name"),align:"center"},{prop:"version",label:o("comp.version"),align:"center"},{prop:"isAdd",label:o("team.added"),align:"center",formatter:m=>m.isAdd?o("common.yes"):o("common.no")},{prop:"desc",label:o("common.description"),align:"center",showOverflowTooltip:{popperClass:"table-text-tooltip"}},{slot:"operation",prop:"operation",label:o("common.operation"),align:"center"}],isPagination:!1,autoLoading:!1})),w=(m,p)=>{p.start(),C("add-one-comp",m._id,()=>{p.end()})};return(m,p)=>{const I=J,x=fe;return g(),N("div",st,[a(e(q),{ref:"baseTable",tableConfig:l.value,border:"",stripe:""},{operation:s(({col:T})=>[a(x,De($e(T)),{default:s(({row:u})=>[r("div",null,[a(e(Ue),null,{default:s(({instance:n,loading:_})=>[a(I,{type:"primary",disabled:u.isAdd,loading:_,onClick:$=>w(u,n)},{default:s(()=>[D(f(u.isAdd?e(o)("team.added"):e(o)("common.add")),1)]),_:2},1032,["disabled","loading","onClick"])]),_:2},1024)])]),_:1},16)]),_:1},8,["tableConfig"])])}}}),lt={class:"size-full overflow-hidden"},it=M({__name:"ViewCompGrid",props:{data:{type:Array,default:()=>[]},keyword:{type:String,default:""}},emits:["add-one-comp"],setup(d,{emit:t}){const o=d,c=t,C=Me(),l=te(),{sendMessageToTargetIframe:w,messageListener:m}=He(),p=Ge(!1,window.__GLOBAL_CONFIG__.subPort),{addListener:I}=m(),x=Ne(`${l.path}_${P.SCOPE_ID_TEAM_ADD_MY_COMP}`)();j(P.PROVIDE_KEY_COMP_LIST_STORE,x);const T=new Map;j(P.PROVIDE_KEY_CALLBACKS,T);const u=ae("compIframeContainer");Fe(i(()=>o.keyword),u);const n=async()=>{x.renderList([]),await Se(),x.setLoading(!0);const _=ve(o.data);x.renderList(_??[])};return I(Q.ACTION_ADD_COMP_START_LOADING,_=>{c("add-one-comp",_,()=>{u.value?.sendMessageToTargetIframeByCompId($=>{$&&w($,Q.ACTION_ADD_COMP_FINISH_LOADING,"",p)})})}),oe(()=>o.data,()=>n(),{immediate:!0,deep:!0}),se(()=>{x.$reset()}),(_,$)=>{const y=W;return g(),N("div",lt,[a(y,{always:"",wrapClass:"pr-[10px]"},{default:s(()=>[a(ze,{ref:"compIframeContainer",iuid:e(C)?.uid,compType:e(P).IFRAME_ROUTES.CONTAINER.TEAM_ADD},null,8,["iuid","compType"])]),_:1})])}}}),rt={class:"size-full flex flex-col overflow-auto overflow-x-hidden"},ct={class:"flex gap-2 pb-2"},dt=M({__name:"index",setup(d,{expose:t}){const{t:o}=z(),{headers:c,teamId:C}=le(),l=K(C)(),w=F(!1),m=F(""),p=F({data:[],search:{column:[{prop:"keyword",component:Y(ge),label:i(()=>o("common.keyword")),value:"",autoQuery:!1,attributes:{placeholder:i(()=>o("comp.keywordPlaceholder")),fetchSuggestions:x,triggerOnFocus:!1,style:"width: 350px",fitInputWidth:!0}},{prop:"status",label:i(()=>o("common.status")),component:Y(ye),value:"NotAdded",attributes:{style:{width:"120px"},clearable:!0,options:[{label:i(()=>o("team.added")),value:"Added"},{label:i(()=>o("team.notAdded")),value:"NotAdded"}]}}]},pagination:{total:0,attributes:{pageSizes:[10,20,30]}},fetchData:T}),I=i(()=>p.value?.search?.column[0]?.value??"");function x(y,b){if(y.length<=1)return b([]);B.v1Keyword.keywordcontrollerQuerykeywordscomp({keyword:y,type:"compMy"},{headers:c}).then(k=>{const{keywords:A=[]}=k.data||{};b(A)})}async function T(y){const b=await B.v1Team.teamcontrollerAddtoteammycomps({...y},{headers:c}),{rows:k,total:A}=b.data||{};p.value.data=k||[],p.value.pagination.total=A||0}function u(){w.value=!0}function n(){w.value=!1}function _(){m.value=m.value??"list"}function $(y,b){B.v1Team.teamcontrollerCopycomp({compIds:[y]},{headers:c}).then(()=>{p.value.data?.forEach(A=>{y===A._id&&(A.isAdd=!0)});const k=l.teamDetail.compCount+1;l.setTeamDetail({...l.teamDetail,compCount:k}),be.success(o("team.addSuccess"))}).finally(b)}return t({open:u,close:n}),(y,b)=>{const k=he;return g(),E(k,{modelValue:w.value,"onUpdate:modelValue":b[1]||(b[1]=A=>w.value=A),title:e(o)("team.addComp"),resizable:"","with-header":!1,size:"50%","append-to-body":"",onOpened:_},{default:s(()=>[r("div",rt,[a(e(q),{tableConfig:p.value},{tableBefore:s(()=>[r("div",ct,[a(e(ot),{modelValue:m.value,"onUpdate:modelValue":b[0]||(b[0]=A=>m.value=A),class:"ml-auto"},null,8,["modelValue"])])]),table:s(()=>[a(e(X),null,{default:s(()=>[(g(),E(ne,null,[(g(),E(H(m.value==="grid"?it:nt),{data:p.value.data,keyword:I.value,onAddOneComp:$},null,40,["data","keyword"]))],1024))]),_:1})]),_:1},8,["tableConfig"])])]),_:1},8,["modelValue","title"])}}}),mt={class:"size-full overflow-hidden flex items-center gap-6"},pt={class:"flex-shrink-0"},ut={class:"flex flex-1 flex-col gap-3 overflow-hidden"},_t={class:"flex items-center gap-3"},ft={class:"text-xl font-bold"},vt={class:"flex items-center gap-1 rounded-full px-3 py-0.5 text-xs"},ht={class:"flex flex-wrap items-center gap-3"},gt={class:"!flex items-center gap-1"},yt={class:"!flex items-center gap-1"},bt={class:"!flex items-center gap-1"},Ct={class:"!flex items-center gap-1"},wt={class:"!flex items-center gap-1"},xt={class:"flex items-center gap-3 flex-shrink-0"},Tt=M({__name:"index",setup(d){const{t}=z(),o=te(),c=Oe(),{teamId:C}=o.params,l=K(C)(),w=ae("teamAddCompDrawer");function m(){w.value?.open()}function p(){c.push({name:"uploadTeam",params:{teamId:C}})}return(I,x)=>{const T=Ce,u=we,n=J,_=Z;return g(),E(_,{"body-class":"!p-0",class:"size-full rounded-sm p-4"},{default:s(()=>[a(e(We),{rows:4,loading:e(l).loading},{default:s(()=>[r("div",mt,[r("div",pt,[a(T,{size:64,class:"bg-indigo-100"},{default:s(()=>[a(e(L),{icon:"material-symbols:layers-rounded",class:"text-3xl"})]),_:1})]),r("div",ut,[r("div",_t,[r("h2",ft,f(e(l).teamName),1),r("span",vt,[a(e(L),{icon:"material-symbols:check-circle-rounded",class:"text-green-500"}),D(" "+f(e(l).description),1)])]),r("div",ht,[a(u,{round:"",type:"info","disable-transitions":""},{default:s(()=>[r("div",gt,[a(e(L),{icon:"material-symbols:person-rounded"}),D(" "+f(e(t)("team.creator"))+" ",1),a(e(Je),ee(e(l).creator,{teamUserNickname:e(l).creatorNickname}),{avatar:s(()=>[a(ke,{size:15,src:e(l).creator?.avatar},null,8,["src"])]),_:1},16,["teamUserNickname"])])]),_:1}),a(u,{round:"",type:"info","disable-transitions":""},{default:s(()=>[r("div",yt,[a(e(L),{icon:"material-symbols:tag-rounded"}),D(" "+f(e(t)("team.code"))+" ",1),a(e(Ee),{class:"text-xs",text:e(l).code},null,8,["text"])])]),_:1}),a(u,{round:"",type:"info","disable-transitions":""},{default:s(()=>[r("div",bt,[a(e(L),{icon:"material-symbols:group-rounded"}),D(" "+f(e(t)("team.member"))+" "+f(e(l).memberCount)+" "+f(e(t)("common.person")),1)])]),_:1}),a(u,{round:"",type:"info","disable-transitions":""},{default:s(()=>[r("div",Ct,[a(e(L),{icon:"material-symbols:widgets-rounded"}),D(" "+f(e(t)("team.compCount"))+" "+f(e(l).compCount)+" "+f(e(t)("common.unit")),1)])]),_:1}),a(u,{round:"",type:"info","disable-transitions":""},{default:s(()=>[r("div",wt,[a(e(L),{icon:"material-symbols:download-rounded"}),D(" "+f(e(t)("team.downloadCount"))+" "+f(e(l).totalDownloadCount),1)])]),_:1})]),r("div",xt,[a(n,{class:"!rounded-full !px-5 !py-2 !h-auto",onClick:m},{default:s(()=>[a(e(L),{icon:"material-symbols:format-list-bulleted-rounded",class:"mr-1"}),D(" "+f(e(t)("team.addFromMine")),1)]),_:1}),a(n,{type:"primary",class:"!rounded-full !px-5 !py-2 !h-auto",onClick:p},{default:s(()=>[a(e(L),{icon:"material-symbols:upload-rounded",class:"mr-1"}),D(" "+f(e(t)("comp.upload")),1)]),_:1})])])])]),_:1},8,["loading"]),a(dt,{ref:"teamAddCompDrawer"},null,512)]),_:1})}}}),At={class:"mt-2"},jt=M({__name:"index",setup(d){const{t}=z(),o=O(()=>S(()=>import("./index-CWJKxZCd.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27]),import.meta.url)),c=O(()=>S(()=>import("./index-U6TRHk8E.js"),__vite__mapDeps([28,1,2,3,4,5,6,7,8,9,10,11,12,13,14,16,27,29,24]),import.meta.url)),C=O(()=>S(()=>import("./index-5EYT6f8p.js"),__vite__mapDeps([30,1,2,3,4,31,32,5,6,7,8,9,10,11,12,13,14,33,22]),import.meta.url)),l=O(()=>S(()=>import("./index-CbfSiY9U.js"),__vite__mapDeps([34,1,2,3,4,10,5,6,7,8,9,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27]),import.meta.url)),w=O(()=>S(()=>import("./index-pjvH5dVi.js"),__vite__mapDeps([35,1,2,3,4,31,32,5,6,7,8,9,10,11,12,13,14,36,37]),import.meta.url)),m=O(()=>S(()=>import("./index-B-JCIDk_.js"),__vite__mapDeps([38,1,2,3,4,31,32,5,6,7,8,9,10,11,12,13,14,36,37,22]),import.meta.url)),p=O(()=>S(()=>import("./index-DquKS0_n.js"),__vite__mapDeps([39,1,2,3,4,5,6,7,8,9,10,11,12,13,14,40,22,24]),import.meta.url)),I=[{label:i(()=>t("team.compLib")),value:"TeamCompList",component:o,visible:()=>!0},{label:i(()=>t("team.groupConfig")),value:"TeamCompGroup",component:c,visible:()=>n.isCreator},{label:i(()=>t("team.compManage")),value:"TeamCompManage",component:C,visible:()=>n.isCreator},{label:i(()=>t("team.myCompList")),value:"TeamMyCompList",component:l,visible:()=>!0},{label:i(()=>t("team.member")),value:"TeamMemberList",component:w,visible:()=>!0},{label:i(()=>t("team.applyList")),value:"TeamApplyList",component:m,visible:()=>n.isCreator},{label:i(()=>t("common.setting")),value:"TeamSet",component:p,visible:()=>!0}],{headers:x,teamId:T}=le(),u=de(),n=K(T)(),_=xe(`${me}-${T}`,I[0]?.value),$=i(()=>Object.keys(n.teamDetail).length===0),y=i(()=>I.filter(v=>v.visible())),b=i(()=>y.value.find(h=>h.value===_.value)?.component||{render:()=>null}),k=async(v,h)=>{if(!n.canSaveCopy)return;const V=v.matched[v.matched.length-1],R=h.matched[h.matched.length-1];if(!(!V||!R)&&(!v.redirectedFrom||V.path===R.path)){const U={confirmButtonText:t("team.leave"),cancelButtonText:t("common.cancel"),type:"warning"};return await Ae.confirm(t("team.unsavedDataLeave"),t("common.info"),U).then(()=>!0).catch(()=>!1)}};function A(v,h){u.addPayLoad(`/team/${v}`,{name:h??""})}return Ve(k),Re(k),Pe(()=>{n.setLoading(!0),B.v1Team.teamcontrollerDetail({headers:x}).then(v=>{const{compIdInLeafNodeMap:h}=v.data;n.setTeamDetail(v.data),n.setSelectedRowsToLeafNodeMap(h||{}),A(T??"",n.teamDetail?.name??"")}).catch(()=>{n.$reset()}).finally(()=>{n.setLoading(!1)})}),oe(_,(v,h)=>{h&&v!==h&&window?.umami?.track(pe.TEAM_TAB_CHANGE,{teamId:T,from:h,to:v})}),se(()=>{n.$reset()}),(v,h)=>{const V=Z,R=Te,U=W;return g(),E(U,{"wrap-class":"team-container p-[10px] pt-0",class:"size-full overflow-x-hidden",always:""},{default:s(()=>[a(e(Ke),{isEmpty:$.value,loading:e(n).loading,emptyDescription:e(t)("team.noTeamInfo")},{default:s(()=>[a(Tt,{class:"mt-[10px]"}),a(V,{"body-class":"!p-0",class:"sticky top-0 w-full z-100 mt-1"},{default:s(()=>[a(e(je),{modelValue:e(_),"onUpdate:modelValue":h[0]||(h[0]=re=>Be(_)?_.value=re:null),options:y.value},null,8,["modelValue","options"])]),_:1}),r("div",At,[a(e(X),null,{default:s(()=>[(g(),E(ne,null,[(g(),E(H(b.value)))],1024))]),_:1})]),a(R,{right:100,bottom:100,target:".team-container"})]),_:1},8,["isEmpty","loading","emptyDescription"])]),_:1})}}});export{jt as default};
@@ -0,0 +1 @@
1
+ import{_ as e}from"./index.vue_vue_type_style_index_0_lang-8e70e_fM.js";import{v as o,ab as t,l as r,r as s}from"./vendor-core-BKehvho7.js";import"./vendor-xterm-DbWxaMay.js";import"./index-D88CvPWT.js";import"./vendor-ui-CGT0cG1n.js";const a={class:"size-full"},d=o({__name:"index",setup(n){return(_,c)=>(t(),r("div",a,[s(e)]))}});export{d as default};
@@ -1 +1 @@
1
- import{v as _,ab as v,l as C,r as c,ax as p,aC as x,ac as D,a7 as I,aO as R,k,af as P,g as O}from"./vendor-core-BKehvho7.js";import{c as V,p as z}from"./index-5NbrFL1v.js";import{m as E,z as F,u as N,r as f}from"./index-CRPDDq-V.js";import{_ as $}from"./index.vue_vue_type_script_setup_true_lang-piiSvWkd.js";import{_ as B}from"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-pswB5SUz.js";import"./vendor-ui-CGT0cG1n.js";import"./useMessage-8Gi-vx-A.js";const L={class:"size-full"},j=_({__name:"index",props:{version:{type:String,default:""},compAttrs:{type:Object,default:()=>({})}},setup(e){return(m,a)=>(v(),C("div",L,[c($,{compAttrs:e.compAttrs,version:e.version,bgColor:e.compAttrs?.bgColor,compType:p(E).IFRAME_ROUTES.ITEM.PREVIEW_REMOTE},null,8,["compAttrs","version","bgColor","compType"])]))}}),K={key:0,class:"size-full"},Q=_({__name:"index",setup(e){const m=x(),a=F(),A=new Map;D(E.PROVIDE_KEY_CALLBACKS,A);const{compId:t,version:r=""}=m.params,l=P(!1),o=V(t)(),d=O(()=>o.detail[r]);async function g(){if(await a.initSetting(),!t)throw new Error("compId is required");const n=await N.v1Comp.compcontrollerCompdetail({compId:t,version:r}),{objectId:u,version:s,files:y,dep:b}=n.data,w={objectId:u,version:s,files:y.map(i=>i.path)},S=await f.v1Comp.compcontrollerCompfilesosssignedurl(w),h=z(b,a.deps).map(i=>i.name),M=await f.v1Module.modulecontrollerPrebuild({deps:h}),{entryNameToFile:T={}}=M.data;o.setDetail(s,{...n.data,_id:t}),o.setDepEntryNameToFile(s,T),o.setVersionToFileAccessPath(s,S.data.signedUrls)}return I(async()=>{await g(),l.value=!0}),(n,u)=>l.value?(v(),C("div",K,[c(p(B),{isEmpty:!d.value,class:"size-full"},{default:R(()=>[c(j,{compAttrs:d.value,version:p(r)},null,8,["compAttrs","version"])]),_:1},8,["isEmpty"])])):k("",!0)}});export{Q as default};
1
+ import{v as _,ab as v,l as C,r as c,ax as p,aC as x,ac as D,a7 as I,aO as R,k,af as P,g as O}from"./vendor-core-BKehvho7.js";import{c as V,p as z}from"./index-B9hCLAJk.js";import{m as E,z as F,u as N,r as f}from"./index-D88CvPWT.js";import{_ as $}from"./index.vue_vue_type_script_setup_true_lang-BXNbK11E.js";import{_ as B}from"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-pswB5SUz.js";import"./vendor-ui-CGT0cG1n.js";import"./useMessage-Cbhfk7Nk.js";const L={class:"size-full"},j=_({__name:"index",props:{version:{type:String,default:""},compAttrs:{type:Object,default:()=>({})}},setup(e){return(m,a)=>(v(),C("div",L,[c($,{compAttrs:e.compAttrs,version:e.version,bgColor:e.compAttrs?.bgColor,compType:p(E).IFRAME_ROUTES.ITEM.PREVIEW_REMOTE},null,8,["compAttrs","version","bgColor","compType"])]))}}),K={key:0,class:"size-full"},Q=_({__name:"index",setup(e){const m=x(),a=F(),A=new Map;D(E.PROVIDE_KEY_CALLBACKS,A);const{compId:t,version:r=""}=m.params,l=P(!1),o=V(t)(),d=O(()=>o.detail[r]);async function g(){if(await a.initSetting(),!t)throw new Error("compId is required");const n=await N.v1Comp.compcontrollerCompdetail({compId:t,version:r}),{objectId:u,version:s,files:y,dep:b}=n.data,w={objectId:u,version:s,files:y.map(i=>i.path)},S=await f.v1Comp.compcontrollerCompfilesosssignedurl(w),h=z(b,a.deps).map(i=>i.name),M=await f.v1Module.modulecontrollerPrebuild({deps:h}),{entryNameToFile:T={}}=M.data;o.setDetail(s,{...n.data,_id:t}),o.setDepEntryNameToFile(s,T),o.setVersionToFileAccessPath(s,S.data.signedUrls)}return I(async()=>{await g(),l.value=!0}),(n,u)=>l.value?(v(),C("div",K,[c(p(B),{isEmpty:!d.value,class:"size-full"},{default:R(()=>[c(j,{compAttrs:d.value,version:p(r)},null,8,["compAttrs","version"])]),_:1},8,["isEmpty"])])):k("",!0)}});export{Q as default};
@@ -1 +1 @@
1
- import{w as _}from"./vendor-core-BKehvho7.js";import{o as p,m as a}from"./index-CRPDDq-V.js";const P=(o="")=>{if(!o)throw new Error("createCompMetaStore scopeId is required");return _(`compMeta_${o}`,{state:()=>({detail:{},depEntryNameToFile:{},versionToFileAccessPath:{},localCompInfo:[],latestVersion:""}),getters:{isLocalExist:e=>e.localCompInfo.length!==0,latestVersionToFileAccessPath:e=>e.versionToFileAccessPath[e.latestVersion]??[]},actions:{setLatestVersion(e){this.$patch(t=>{t.latestVersion=e})},setLocalCompInfo(e){this.$patch(t=>{t.localCompInfo=e})},setDetail(e,t){this.$patch(r=>{r.detail[e]={...r.detail[e],...t}})},setDepEntryNameToFile(e,t){this.$patch(r=>{r.depEntryNameToFile[e]=t})},setVersionToFileAccessPath(e,t){this.$patch(r=>{r.versionToFileAccessPath[e]=t})}}})};function u(o,e){return o.filter(t=>{const r=e.find(l=>l.name===t.name||l.name===t.parent?.name);if(!r)return!1;const{match:m}=r,{major:s,minor:n,patch:h}=p.parseVersion(t.version),{major:i,minor:c,patch:T}=p.parseVersion(r.version);switch(m){case a.COMP_MATCH_TYPE_AUTO:return!0;case a.COMP_MATCH_TYPE_ONLY_INSTALL:return!0;case a.COMP_MATCH_TYPE_MAJOR_VERSION:return s===i;case a.COMP_MATCH_TYPE_MINOR_VERSION:return s===i&&n===c;case a.COMP_MATCH_TYPE_EXACT_VERSION:return s===i&&n===c&&h===T}})}export{P as c,u as p};
1
+ import{w as _}from"./vendor-core-BKehvho7.js";import{o as p,m as a}from"./index-D88CvPWT.js";const P=(o="")=>{if(!o)throw new Error("createCompMetaStore scopeId is required");return _(`compMeta_${o}`,{state:()=>({detail:{},depEntryNameToFile:{},versionToFileAccessPath:{},localCompInfo:[],latestVersion:""}),getters:{isLocalExist:e=>e.localCompInfo.length!==0,latestVersionToFileAccessPath:e=>e.versionToFileAccessPath[e.latestVersion]??[]},actions:{setLatestVersion(e){this.$patch(t=>{t.latestVersion=e})},setLocalCompInfo(e){this.$patch(t=>{t.localCompInfo=e})},setDetail(e,t){this.$patch(r=>{r.detail[e]={...r.detail[e],...t}})},setDepEntryNameToFile(e,t){this.$patch(r=>{r.depEntryNameToFile[e]=t})},setVersionToFileAccessPath(e,t){this.$patch(r=>{r.versionToFileAccessPath[e]=t})}}})};function u(o,e){return o.filter(t=>{const r=e.find(l=>l.name===t.name||l.name===t.parent?.name);if(!r)return!1;const{match:m}=r,{major:s,minor:n,patch:h}=p.parseVersion(t.version),{major:i,minor:c,patch:T}=p.parseVersion(r.version);switch(m){case a.COMP_MATCH_TYPE_AUTO:return!0;case a.COMP_MATCH_TYPE_ONLY_INSTALL:return!0;case a.COMP_MATCH_TYPE_MAJOR_VERSION:return s===i;case a.COMP_MATCH_TYPE_MINOR_VERSION:return s===i&&n===c;case a.COMP_MATCH_TYPE_EXACT_VERSION:return s===i&&n===c&&h===T}})}export{P as c,u as p};
@@ -1 +1 @@
1
- import{a3 as i}from"./vendor-ui-CGT0cG1n.js";import{z as u,F as d,k as l}from"./index-CRPDDq-V.js";import{v as _,aA as g,aD as m,ab as f,j as S,aO as x,i as b,Z as h,ax as s,ap as t,g as k}from"./vendor-core-BKehvho7.js";const C=_({__name:"index",setup(U){const{t:a}=g(),o=u(),e=d(),r=m(),n=k(()=>e.isUpgrade?a("upgrade.hasUpdate"):a("upgrade.betaVersion"));function p(){r.push({name:"upgrade"})}return(V,v)=>{const c=i;return f(),S(c,{type:"primary",round:"",class:"cursor-pointer","disable-transitions":"",onClick:p},{default:x(()=>[b("span",{class:h({"is-upgrade":s(e).isUpgrade})},t(n.value)+" "+t(s(o).compHubVersion),3)]),_:1})}}}),D=l(C,[["__scopeId","data-v-cb2ac669"]]);export{D as S};
1
+ import{a3 as i}from"./vendor-ui-CGT0cG1n.js";import{z as u,F as d,k as l}from"./index-D88CvPWT.js";import{v as _,aA as g,aD as m,ab as f,j as S,aO as x,i as b,Z as h,ax as s,ap as t,g as k}from"./vendor-core-BKehvho7.js";const C=_({__name:"index",setup(U){const{t:a}=g(),o=u(),e=d(),r=m(),n=k(()=>e.isUpgrade?a("upgrade.hasUpdate"):a("upgrade.betaVersion"));function p(){r.push({name:"upgrade"})}return(V,v)=>{const c=i;return f(),S(c,{type:"primary",round:"",class:"cursor-pointer","disable-transitions":"",onClick:p},{default:x(()=>[b("span",{class:h({"is-upgrade":s(e).isUpgrade})},t(n.value)+" "+t(s(o).compHubVersion),3)]),_:1})}}}),D=l(C,[["__scopeId","data-v-cb2ac669"]]);export{D as S};
@@ -1,4 +1,4 @@
1
- import{e as De,A as Ye,J as P,a9 as ot,al as at,x as ut,y as ct,r as Ft,f as ft,a0 as dt}from"./vendor-ui-CGT0cG1n.js";import{y as ce,M as me,u as H,i as J,J as Le,n as Nt,k as St}from"./index-CRPDDq-V.js";/* empty css */import{v as te,ab as j,l as le,F as Et,ah as pt,i as W,$ as At,ap as $,j as X,aO as T,q as ae,k as ht,g as q,aA as ie,aj as oe,r as b,ax as k,af as U,aF as re,ay as Ct,aE as mt,al as Bt,B as Mt,y as gt,X as Dt,a7 as Lt}from"./vendor-core-BKehvho7.js";import{_ as Be}from"./AuthCodeSendBtn.vue_vue_type_script_setup_true_lang-CP9hjm3T.js";import{_ as Fe}from"./BaseDialog.vue_vue_type_script_setup_true_lang-BROcUfEh.js";import{m as ye}from"./md5-ohq5q_Pj.js";import{_ as Xe}from"./LoadingWrapper.vue_vue_type_script_setup_true_lang-kJcgjuK5.js";import{h as vt}from"./moment-B-YVwB4U.js";import{_ as Ot}from"./index.vue_vue_type_script_setup_true_lang-CsP7DU8L.js";import"./useCacheOssStore-OAoLDVbw.js";const kt=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],We=[[697,698,"ON"],[706,719,"ON"],[722,735,"ON"],[741,749,"ON"],[751,767,"ON"],[768,879,"NSM"],[884,885,"ON"],[894,894,"ON"],[900,901,"ON"],[903,903,"ON"],[1014,1014,"ON"],[1155,1161,"NSM"],[1418,1418,"ON"],[1421,1422,"ON"],[1423,1423,"ET"],[1424,1424,"R"],[1425,1469,"NSM"],[1470,1470,"R"],[1471,1471,"NSM"],[1472,1472,"R"],[1473,1474,"NSM"],[1475,1475,"R"],[1476,1477,"NSM"],[1478,1478,"R"],[1479,1479,"NSM"],[1480,1535,"R"],[1536,1541,"AN"],[1542,1543,"ON"],[1544,1544,"AL"],[1545,1546,"ET"],[1547,1547,"AL"],[1548,1548,"CS"],[1549,1549,"AL"],[1550,1551,"ON"],[1552,1562,"NSM"],[1563,1610,"AL"],[1611,1631,"NSM"],[1632,1641,"AN"],[1642,1642,"ET"],[1643,1644,"AN"],[1645,1647,"AL"],[1648,1648,"NSM"],[1649,1749,"AL"],[1750,1756,"NSM"],[1757,1757,"AN"],[1758,1758,"ON"],[1759,1764,"NSM"],[1765,1766,"AL"],[1767,1768,"NSM"],[1769,1769,"ON"],[1770,1773,"NSM"],[1774,1775,"AL"],[1776,1785,"EN"],[1786,1808,"AL"],[1809,1809,"NSM"],[1810,1839,"AL"],[1840,1866,"NSM"],[1867,1957,"AL"],[1958,1968,"NSM"],[1969,1983,"AL"],[1984,2026,"R"],[2027,2035,"NSM"],[2036,2037,"R"],[2038,2041,"ON"],[2042,2044,"R"],[2045,2045,"NSM"],[2046,2069,"R"],[2070,2073,"NSM"],[2074,2074,"R"],[2075,2083,"NSM"],[2084,2084,"R"],[2085,2087,"NSM"],[2088,2088,"R"],[2089,2093,"NSM"],[2094,2136,"R"],[2137,2139,"NSM"],[2140,2143,"R"],[2144,2191,"AL"],[2192,2193,"AN"],[2194,2198,"AL"],[2199,2207,"NSM"],[2208,2249,"AL"],[2250,2273,"NSM"],[2274,2274,"AN"],[2275,2306,"NSM"],[2362,2362,"NSM"],[2364,2364,"NSM"],[2369,2376,"NSM"],[2381,2381,"NSM"],[2385,2391,"NSM"],[2402,2403,"NSM"],[2433,2433,"NSM"],[2492,2492,"NSM"],[2497,2500,"NSM"],[2509,2509,"NSM"],[2530,2531,"NSM"],[2546,2547,"ET"],[2555,2555,"ET"],[2558,2558,"NSM"],[2561,2562,"NSM"],[2620,2620,"NSM"],[2625,2626,"NSM"],[2631,2632,"NSM"],[2635,2637,"NSM"],[2641,2641,"NSM"],[2672,2673,"NSM"],[2677,2677,"NSM"],[2689,2690,"NSM"],[2748,2748,"NSM"],[2753,2757,"NSM"],[2759,2760,"NSM"],[2765,2765,"NSM"],[2786,2787,"NSM"],[2801,2801,"ET"],[2810,2815,"NSM"],[2817,2817,"NSM"],[2876,2876,"NSM"],[2879,2879,"NSM"],[2881,2884,"NSM"],[2893,2893,"NSM"],[2901,2902,"NSM"],[2914,2915,"NSM"],[2946,2946,"NSM"],[3008,3008,"NSM"],[3021,3021,"NSM"],[3059,3064,"ON"],[3065,3065,"ET"],[3066,3066,"ON"],[3072,3072,"NSM"],[3076,3076,"NSM"],[3132,3132,"NSM"],[3134,3136,"NSM"],[3142,3144,"NSM"],[3146,3149,"NSM"],[3157,3158,"NSM"],[3170,3171,"NSM"],[3192,3198,"ON"],[3201,3201,"NSM"],[3260,3260,"NSM"],[3276,3277,"NSM"],[3298,3299,"NSM"],[3328,3329,"NSM"],[3387,3388,"NSM"],[3393,3396,"NSM"],[3405,3405,"NSM"],[3426,3427,"NSM"],[3457,3457,"NSM"],[3530,3530,"NSM"],[3538,3540,"NSM"],[3542,3542,"NSM"],[3633,3633,"NSM"],[3636,3642,"NSM"],[3647,3647,"ET"],[3655,3662,"NSM"],[3761,3761,"NSM"],[3764,3772,"NSM"],[3784,3790,"NSM"],[3864,3865,"NSM"],[3893,3893,"NSM"],[3895,3895,"NSM"],[3897,3897,"NSM"],[3898,3901,"ON"],[3953,3966,"NSM"],[3968,3972,"NSM"],[3974,3975,"NSM"],[3981,3991,"NSM"],[3993,4028,"NSM"],[4038,4038,"NSM"],[4141,4144,"NSM"],[4146,4151,"NSM"],[4153,4154,"NSM"],[4157,4158,"NSM"],[4184,4185,"NSM"],[4190,4192,"NSM"],[4209,4212,"NSM"],[4226,4226,"NSM"],[4229,4230,"NSM"],[4237,4237,"NSM"],[4253,4253,"NSM"],[4957,4959,"NSM"],[5008,5017,"ON"],[5120,5120,"ON"],[5760,5760,"WS"],[5787,5788,"ON"],[5906,5908,"NSM"],[5938,5939,"NSM"],[5970,5971,"NSM"],[6002,6003,"NSM"],[6068,6069,"NSM"],[6071,6077,"NSM"],[6086,6086,"NSM"],[6089,6099,"NSM"],[6107,6107,"ET"],[6109,6109,"NSM"],[6128,6137,"ON"],[6144,6154,"ON"],[6155,6157,"NSM"],[6158,6158,"BN"],[6159,6159,"NSM"],[6277,6278,"NSM"],[6313,6313,"NSM"],[6432,6434,"NSM"],[6439,6440,"NSM"],[6450,6450,"NSM"],[6457,6459,"NSM"],[6464,6464,"ON"],[6468,6469,"ON"],[6622,6655,"ON"],[6679,6680,"NSM"],[6683,6683,"NSM"],[6742,6742,"NSM"],[6744,6750,"NSM"],[6752,6752,"NSM"],[6754,6754,"NSM"],[6757,6764,"NSM"],[6771,6780,"NSM"],[6783,6783,"NSM"],[6832,6877,"NSM"],[6880,6891,"NSM"],[6912,6915,"NSM"],[6964,6964,"NSM"],[6966,6970,"NSM"],[6972,6972,"NSM"],[6978,6978,"NSM"],[7019,7027,"NSM"],[7040,7041,"NSM"],[7074,7077,"NSM"],[7080,7081,"NSM"],[7083,7085,"NSM"],[7142,7142,"NSM"],[7144,7145,"NSM"],[7149,7149,"NSM"],[7151,7153,"NSM"],[7212,7219,"NSM"],[7222,7223,"NSM"],[7376,7378,"NSM"],[7380,7392,"NSM"],[7394,7400,"NSM"],[7405,7405,"NSM"],[7412,7412,"NSM"],[7416,7417,"NSM"],[7616,7679,"NSM"],[8125,8125,"ON"],[8127,8129,"ON"],[8141,8143,"ON"],[8157,8159,"ON"],[8173,8175,"ON"],[8189,8190,"ON"],[8192,8202,"WS"],[8203,8205,"BN"],[8207,8207,"R"],[8208,8231,"ON"],[8232,8232,"WS"],[8233,8233,"B"],[8234,8238,"BN"],[8239,8239,"CS"],[8240,8244,"ET"],[8245,8259,"ON"],[8260,8260,"CS"],[8261,8286,"ON"],[8287,8287,"WS"],[8288,8303,"BN"],[8304,8304,"EN"],[8308,8313,"EN"],[8314,8315,"ES"],[8316,8318,"ON"],[8320,8329,"EN"],[8330,8331,"ES"],[8332,8334,"ON"],[8352,8399,"ET"],[8400,8432,"NSM"],[8448,8449,"ON"],[8451,8454,"ON"],[8456,8457,"ON"],[8468,8468,"ON"],[8470,8472,"ON"],[8478,8483,"ON"],[8485,8485,"ON"],[8487,8487,"ON"],[8489,8489,"ON"],[8494,8494,"ET"],[8506,8507,"ON"],[8512,8516,"ON"],[8522,8525,"ON"],[8528,8543,"ON"],[8585,8587,"ON"],[8592,8721,"ON"],[8722,8722,"ES"],[8723,8723,"ET"],[8724,9013,"ON"],[9083,9108,"ON"],[9110,9257,"ON"],[9280,9290,"ON"],[9312,9351,"ON"],[9352,9371,"EN"],[9450,9899,"ON"],[9901,10239,"ON"],[10496,11123,"ON"],[11126,11263,"ON"],[11493,11498,"ON"],[11503,11505,"NSM"],[11513,11519,"ON"],[11647,11647,"NSM"],[11744,11775,"NSM"],[11776,11869,"ON"],[11904,11929,"ON"],[11931,12019,"ON"],[12032,12245,"ON"],[12272,12287,"ON"],[12288,12288,"WS"],[12289,12292,"ON"],[12296,12320,"ON"],[12330,12333,"NSM"],[12336,12336,"ON"],[12342,12343,"ON"],[12349,12351,"ON"],[12441,12442,"NSM"],[12443,12444,"ON"],[12448,12448,"ON"],[12539,12539,"ON"],[12736,12773,"ON"],[12783,12783,"ON"],[12829,12830,"ON"],[12880,12895,"ON"],[12924,12926,"ON"],[12977,12991,"ON"],[13004,13007,"ON"],[13175,13178,"ON"],[13278,13279,"ON"],[13311,13311,"ON"],[19904,19967,"ON"],[42128,42182,"ON"],[42509,42511,"ON"],[42607,42610,"NSM"],[42611,42611,"ON"],[42612,42621,"NSM"],[42622,42623,"ON"],[42654,42655,"NSM"],[42736,42737,"NSM"],[42752,42785,"ON"],[42888,42888,"ON"],[43010,43010,"NSM"],[43014,43014,"NSM"],[43019,43019,"NSM"],[43045,43046,"NSM"],[43048,43051,"ON"],[43052,43052,"NSM"],[43064,43065,"ET"],[43124,43127,"ON"],[43204,43205,"NSM"],[43232,43249,"NSM"],[43263,43263,"NSM"],[43302,43309,"NSM"],[43335,43345,"NSM"],[43392,43394,"NSM"],[43443,43443,"NSM"],[43446,43449,"NSM"],[43452,43453,"NSM"],[43493,43493,"NSM"],[43561,43566,"NSM"],[43569,43570,"NSM"],[43573,43574,"NSM"],[43587,43587,"NSM"],[43596,43596,"NSM"],[43644,43644,"NSM"],[43696,43696,"NSM"],[43698,43700,"NSM"],[43703,43704,"NSM"],[43710,43711,"NSM"],[43713,43713,"NSM"],[43756,43757,"NSM"],[43766,43766,"NSM"],[43882,43883,"ON"],[44005,44005,"NSM"],[44008,44008,"NSM"],[44013,44013,"NSM"],[64285,64285,"R"],[64286,64286,"NSM"],[64287,64296,"R"],[64297,64297,"ES"],[64298,64335,"R"],[64336,64450,"AL"],[64451,64466,"ON"],[64467,64829,"AL"],[64830,64847,"ON"],[64848,64911,"AL"],[64912,64913,"ON"],[64914,64967,"AL"],[64968,64975,"ON"],[64976,65007,"BN"],[65008,65020,"AL"],[65021,65023,"ON"],[65024,65039,"NSM"],[65040,65049,"ON"],[65056,65071,"NSM"],[65072,65103,"ON"],[65104,65104,"CS"],[65105,65105,"ON"],[65106,65106,"CS"],[65108,65108,"ON"],[65109,65109,"CS"],[65110,65118,"ON"],[65119,65119,"ET"],[65120,65121,"ON"],[65122,65123,"ES"],[65124,65126,"ON"],[65128,65128,"ON"],[65129,65130,"ET"],[65131,65131,"ON"],[65136,65278,"AL"],[65279,65279,"BN"],[65281,65282,"ON"],[65283,65285,"ET"],[65286,65290,"ON"],[65291,65291,"ES"],[65292,65292,"CS"],[65293,65293,"ES"],[65294,65295,"CS"],[65296,65305,"EN"],[65306,65306,"CS"],[65307,65312,"ON"],[65339,65344,"ON"],[65371,65381,"ON"],[65504,65505,"ET"],[65506,65508,"ON"],[65509,65510,"ET"],[65512,65518,"ON"],[65520,65528,"BN"],[65529,65533,"ON"],[65534,65535,"BN"],[65793,65793,"ON"],[65856,65932,"ON"],[65936,65948,"ON"],[65952,65952,"ON"],[66045,66045,"NSM"],[66272,66272,"NSM"],[66273,66299,"EN"],[66422,66426,"NSM"],[67584,67870,"R"],[67871,67871,"ON"],[67872,68096,"R"],[68097,68099,"NSM"],[68100,68100,"R"],[68101,68102,"NSM"],[68103,68107,"R"],[68108,68111,"NSM"],[68112,68151,"R"],[68152,68154,"NSM"],[68155,68158,"R"],[68159,68159,"NSM"],[68160,68324,"R"],[68325,68326,"NSM"],[68327,68408,"R"],[68409,68415,"ON"],[68416,68863,"R"],[68864,68899,"AL"],[68900,68903,"NSM"],[68904,68911,"AL"],[68912,68921,"AN"],[68922,68927,"AL"],[68928,68937,"AN"],[68938,68968,"R"],[68969,68973,"NSM"],[68974,68974,"ON"],[68975,69215,"R"],[69216,69246,"AN"],[69247,69290,"R"],[69291,69292,"NSM"],[69293,69311,"R"],[69312,69327,"AL"],[69328,69336,"ON"],[69337,69369,"AL"],[69370,69375,"NSM"],[69376,69423,"R"],[69424,69445,"AL"],[69446,69456,"NSM"],[69457,69487,"AL"],[69488,69505,"R"],[69506,69509,"NSM"],[69510,69631,"R"],[69633,69633,"NSM"],[69688,69702,"NSM"],[69714,69733,"ON"],[69744,69744,"NSM"],[69747,69748,"NSM"],[69759,69761,"NSM"],[69811,69814,"NSM"],[69817,69818,"NSM"],[69826,69826,"NSM"],[69888,69890,"NSM"],[69927,69931,"NSM"],[69933,69940,"NSM"],[70003,70003,"NSM"],[70016,70017,"NSM"],[70070,70078,"NSM"],[70089,70092,"NSM"],[70095,70095,"NSM"],[70191,70193,"NSM"],[70196,70196,"NSM"],[70198,70199,"NSM"],[70206,70206,"NSM"],[70209,70209,"NSM"],[70367,70367,"NSM"],[70371,70378,"NSM"],[70400,70401,"NSM"],[70459,70460,"NSM"],[70464,70464,"NSM"],[70502,70508,"NSM"],[70512,70516,"NSM"],[70587,70592,"NSM"],[70606,70606,"NSM"],[70608,70608,"NSM"],[70610,70610,"NSM"],[70625,70626,"NSM"],[70712,70719,"NSM"],[70722,70724,"NSM"],[70726,70726,"NSM"],[70750,70750,"NSM"],[70835,70840,"NSM"],[70842,70842,"NSM"],[70847,70848,"NSM"],[70850,70851,"NSM"],[71090,71093,"NSM"],[71100,71101,"NSM"],[71103,71104,"NSM"],[71132,71133,"NSM"],[71219,71226,"NSM"],[71229,71229,"NSM"],[71231,71232,"NSM"],[71264,71276,"ON"],[71339,71339,"NSM"],[71341,71341,"NSM"],[71344,71349,"NSM"],[71351,71351,"NSM"],[71453,71453,"NSM"],[71455,71455,"NSM"],[71458,71461,"NSM"],[71463,71467,"NSM"],[71727,71735,"NSM"],[71737,71738,"NSM"],[71995,71996,"NSM"],[71998,71998,"NSM"],[72003,72003,"NSM"],[72148,72151,"NSM"],[72154,72155,"NSM"],[72160,72160,"NSM"],[72193,72198,"NSM"],[72201,72202,"NSM"],[72243,72248,"NSM"],[72251,72254,"NSM"],[72263,72263,"NSM"],[72273,72278,"NSM"],[72281,72283,"NSM"],[72330,72342,"NSM"],[72344,72345,"NSM"],[72544,72544,"NSM"],[72546,72548,"NSM"],[72550,72550,"NSM"],[72752,72758,"NSM"],[72760,72765,"NSM"],[72850,72871,"NSM"],[72874,72880,"NSM"],[72882,72883,"NSM"],[72885,72886,"NSM"],[73009,73014,"NSM"],[73018,73018,"NSM"],[73020,73021,"NSM"],[73023,73029,"NSM"],[73031,73031,"NSM"],[73104,73105,"NSM"],[73109,73109,"NSM"],[73111,73111,"NSM"],[73459,73460,"NSM"],[73472,73473,"NSM"],[73526,73530,"NSM"],[73536,73536,"NSM"],[73538,73538,"NSM"],[73562,73562,"NSM"],[73685,73692,"ON"],[73693,73696,"ET"],[73697,73713,"ON"],[78912,78912,"NSM"],[78919,78933,"NSM"],[90398,90409,"NSM"],[90413,90415,"NSM"],[92912,92916,"NSM"],[92976,92982,"NSM"],[94031,94031,"NSM"],[94095,94098,"NSM"],[94178,94178,"ON"],[94180,94180,"NSM"],[113821,113822,"NSM"],[113824,113827,"BN"],[117760,117973,"ON"],[118e3,118009,"EN"],[118010,118012,"ON"],[118016,118451,"ON"],[118458,118480,"ON"],[118496,118512,"ON"],[118528,118573,"NSM"],[118576,118598,"NSM"],[119143,119145,"NSM"],[119155,119162,"BN"],[119163,119170,"NSM"],[119173,119179,"NSM"],[119210,119213,"NSM"],[119273,119274,"ON"],[119296,119361,"ON"],[119362,119364,"NSM"],[119365,119365,"ON"],[119552,119638,"ON"],[120513,120513,"ON"],[120539,120539,"ON"],[120571,120571,"ON"],[120597,120597,"ON"],[120629,120629,"ON"],[120655,120655,"ON"],[120687,120687,"ON"],[120713,120713,"ON"],[120745,120745,"ON"],[120771,120771,"ON"],[120782,120831,"EN"],[121344,121398,"NSM"],[121403,121452,"NSM"],[121461,121461,"NSM"],[121476,121476,"NSM"],[121499,121503,"NSM"],[121505,121519,"NSM"],[122880,122886,"NSM"],[122888,122904,"NSM"],[122907,122913,"NSM"],[122915,122916,"NSM"],[122918,122922,"NSM"],[123023,123023,"NSM"],[123184,123190,"NSM"],[123566,123566,"NSM"],[123628,123631,"NSM"],[123647,123647,"ET"],[124140,124143,"NSM"],[124398,124399,"NSM"],[124643,124643,"NSM"],[124646,124646,"NSM"],[124654,124655,"NSM"],[124661,124661,"NSM"],[124928,125135,"R"],[125136,125142,"NSM"],[125143,125251,"R"],[125252,125258,"NSM"],[125259,126063,"R"],[126064,126143,"AL"],[126144,126207,"R"],[126208,126287,"AL"],[126288,126463,"R"],[126464,126703,"AL"],[126704,126705,"ON"],[126706,126719,"AL"],[126720,126975,"R"],[126976,127019,"ON"],[127024,127123,"ON"],[127136,127150,"ON"],[127153,127167,"ON"],[127169,127183,"ON"],[127185,127221,"ON"],[127232,127242,"EN"],[127243,127247,"ON"],[127279,127279,"ON"],[127338,127343,"ON"],[127405,127405,"ON"],[127584,127589,"ON"],[127744,128728,"ON"],[128732,128748,"ON"],[128752,128764,"ON"],[128768,128985,"ON"],[128992,129003,"ON"],[129008,129008,"ON"],[129024,129035,"ON"],[129040,129095,"ON"],[129104,129113,"ON"],[129120,129159,"ON"],[129168,129197,"ON"],[129200,129211,"ON"],[129216,129217,"ON"],[129232,129240,"ON"],[129280,129623,"ON"],[129632,129645,"ON"],[129648,129660,"ON"],[129664,129674,"ON"],[129678,129734,"ON"],[129736,129736,"ON"],[129741,129756,"ON"],[129759,129770,"ON"],[129775,129784,"ON"],[129792,129938,"ON"],[129940,130031,"ON"],[130032,130041,"EN"],[130042,130042,"ON"],[131070,131071,"BN"],[196606,196607,"BN"],[262142,262143,"BN"],[327678,327679,"BN"],[393214,393215,"BN"],[458750,458751,"BN"],[524286,524287,"BN"],[589822,589823,"BN"],[655358,655359,"BN"],[720894,720895,"BN"],[786430,786431,"BN"],[851966,851967,"BN"],[917502,917759,"BN"],[917760,917999,"NSM"],[918e3,921599,"BN"],[983038,983039,"BN"],[1048574,1048575,"BN"],[1114110,1114111,"BN"]];function wt(e){if(e<=255)return kt[e];let t=0,n=We.length-1;for(;t<=n;){const r=t+n>>1,x=We[r];if(e<x[0]){n=r-1;continue}if(e>x[1]){t=r+1;continue}return x[2]}return"L"}function bt(e){const t=e.length;if(t===0)return null;const n=new Array(t);let r=!1;for(let l=0;l<t;){const o=e.charCodeAt(l);let F=o,c=1;if(o>=55296&&o<=56319&&l+1<t){const m=e.charCodeAt(l+1);m>=56320&&m<=57343&&(F=(o-55296<<10)+(m-56320)+65536,c=2)}const E=wt(F);(E==="R"||E==="AL"||E==="AN")&&(r=!0);for(let m=0;m<c;m++)n[l+m]=E;l+=c}if(!r)return null;let x=0;for(let l=0;l<t;l++){const o=n[l];if(o==="L"){x=0;break}if(o==="R"||o==="AL"){x=1;break}}const s=new Int8Array(t);for(let l=0;l<t;l++)s[l]=x;const i=x&1?"R":"L",a=i;let u=a;for(let l=0;l<t;l++)n[l]==="NSM"?n[l]=u:u=n[l];u=a;for(let l=0;l<t;l++){const o=n[l];o==="EN"?n[l]=u==="AL"?"AN":"EN":(o==="R"||o==="L"||o==="AL")&&(u=o)}for(let l=0;l<t;l++)n[l]==="AL"&&(n[l]="R");for(let l=1;l<t-1;l++)n[l]==="ES"&&n[l-1]==="EN"&&n[l+1]==="EN"&&(n[l]="EN"),n[l]==="CS"&&(n[l-1]==="EN"||n[l-1]==="AN")&&n[l+1]===n[l-1]&&(n[l]=n[l-1]);for(let l=0;l<t;l++){if(n[l]!=="EN")continue;let o;for(o=l-1;o>=0&&n[o]==="ET";o--)n[o]="EN";for(o=l+1;o<t&&n[o]==="ET";o++)n[o]="EN"}for(let l=0;l<t;l++){const o=n[l];(o==="WS"||o==="ES"||o==="ET"||o==="CS")&&(n[l]="ON")}u=a;for(let l=0;l<t;l++){const o=n[l];o==="EN"?n[l]=u==="L"?"L":"EN":(o==="R"||o==="L")&&(u=o)}for(let l=0;l<t;l++){if(n[l]!=="ON")continue;let o=l+1;for(;o<t&&n[o]==="ON";)o++;const F=l>0?n[l-1]:a,c=o<t?n[o]:a,E=F!=="L"?"R":"L";if(E===(c!=="L"?"R":"L"))for(let S=l;S<o;S++)n[S]=E;l=o-1}for(let l=0;l<t;l++)n[l]==="ON"&&(n[l]=i);for(let l=0;l<t;l++){const o=n[l];(s[l]&1)===0?o==="R"?s[l]++:(o==="AN"||o==="EN")&&(s[l]+=2):(o==="L"||o==="AN"||o==="EN")&&s[l]++}return s}function _t(e,t){const n=bt(e);if(n===null)return null;const r=new Int8Array(t.length);for(let x=0;x<t.length;x++)r[x]=n[t[x]];return r}const yt=/[ \t\n\r\f]+/g,Wt=/[\t\n\r\f]| {2,}|^ | $/;function Rt(e){const t=e??"normal";return t==="pre-wrap"?{mode:t,preserveOrdinarySpaces:!0,preserveHardBreaks:!0}:{mode:t,preserveOrdinarySpaces:!1,preserveHardBreaks:!1}}function Tt(e){if(!Wt.test(e))return e;let t=e.replace(yt," ");return t.charCodeAt(0)===32&&(t=t.slice(1)),t.length>0&&t.charCodeAt(t.length-1)===32&&(t=t.slice(0,-1)),t}function Pt(e){return/[\r\f]/.test(e)?e.replace(/\r\n/g,`
1
+ import{e as De,A as Ye,J as P,a9 as ot,al as at,x as ut,y as ct,r as Ft,f as ft,a0 as dt}from"./vendor-ui-CGT0cG1n.js";import{y as ce,M as me,u as H,i as J,J as Le,n as Nt,k as St}from"./index-D88CvPWT.js";/* empty css */import{v as te,ab as j,l as le,F as Et,ah as pt,i as W,$ as At,ap as $,j as X,aO as T,q as ae,k as ht,g as q,aA as ie,aj as oe,r as b,ax as k,af as U,aF as re,ay as Ct,aE as mt,al as Bt,B as Mt,y as gt,X as Dt,a7 as Lt}from"./vendor-core-BKehvho7.js";import{_ as Be}from"./AuthCodeSendBtn.vue_vue_type_script_setup_true_lang-CP9hjm3T.js";import{_ as Fe}from"./BaseDialog.vue_vue_type_script_setup_true_lang-BROcUfEh.js";import{m as ye}from"./md5-ohq5q_Pj.js";import{_ as Xe}from"./LoadingWrapper.vue_vue_type_script_setup_true_lang-kJcgjuK5.js";import{h as vt}from"./moment-B-YVwB4U.js";import{_ as Ot}from"./index.vue_vue_type_script_setup_true_lang-BAM6bQ14.js";import"./useCacheOssStore-OAoLDVbw.js";const kt=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],We=[[697,698,"ON"],[706,719,"ON"],[722,735,"ON"],[741,749,"ON"],[751,767,"ON"],[768,879,"NSM"],[884,885,"ON"],[894,894,"ON"],[900,901,"ON"],[903,903,"ON"],[1014,1014,"ON"],[1155,1161,"NSM"],[1418,1418,"ON"],[1421,1422,"ON"],[1423,1423,"ET"],[1424,1424,"R"],[1425,1469,"NSM"],[1470,1470,"R"],[1471,1471,"NSM"],[1472,1472,"R"],[1473,1474,"NSM"],[1475,1475,"R"],[1476,1477,"NSM"],[1478,1478,"R"],[1479,1479,"NSM"],[1480,1535,"R"],[1536,1541,"AN"],[1542,1543,"ON"],[1544,1544,"AL"],[1545,1546,"ET"],[1547,1547,"AL"],[1548,1548,"CS"],[1549,1549,"AL"],[1550,1551,"ON"],[1552,1562,"NSM"],[1563,1610,"AL"],[1611,1631,"NSM"],[1632,1641,"AN"],[1642,1642,"ET"],[1643,1644,"AN"],[1645,1647,"AL"],[1648,1648,"NSM"],[1649,1749,"AL"],[1750,1756,"NSM"],[1757,1757,"AN"],[1758,1758,"ON"],[1759,1764,"NSM"],[1765,1766,"AL"],[1767,1768,"NSM"],[1769,1769,"ON"],[1770,1773,"NSM"],[1774,1775,"AL"],[1776,1785,"EN"],[1786,1808,"AL"],[1809,1809,"NSM"],[1810,1839,"AL"],[1840,1866,"NSM"],[1867,1957,"AL"],[1958,1968,"NSM"],[1969,1983,"AL"],[1984,2026,"R"],[2027,2035,"NSM"],[2036,2037,"R"],[2038,2041,"ON"],[2042,2044,"R"],[2045,2045,"NSM"],[2046,2069,"R"],[2070,2073,"NSM"],[2074,2074,"R"],[2075,2083,"NSM"],[2084,2084,"R"],[2085,2087,"NSM"],[2088,2088,"R"],[2089,2093,"NSM"],[2094,2136,"R"],[2137,2139,"NSM"],[2140,2143,"R"],[2144,2191,"AL"],[2192,2193,"AN"],[2194,2198,"AL"],[2199,2207,"NSM"],[2208,2249,"AL"],[2250,2273,"NSM"],[2274,2274,"AN"],[2275,2306,"NSM"],[2362,2362,"NSM"],[2364,2364,"NSM"],[2369,2376,"NSM"],[2381,2381,"NSM"],[2385,2391,"NSM"],[2402,2403,"NSM"],[2433,2433,"NSM"],[2492,2492,"NSM"],[2497,2500,"NSM"],[2509,2509,"NSM"],[2530,2531,"NSM"],[2546,2547,"ET"],[2555,2555,"ET"],[2558,2558,"NSM"],[2561,2562,"NSM"],[2620,2620,"NSM"],[2625,2626,"NSM"],[2631,2632,"NSM"],[2635,2637,"NSM"],[2641,2641,"NSM"],[2672,2673,"NSM"],[2677,2677,"NSM"],[2689,2690,"NSM"],[2748,2748,"NSM"],[2753,2757,"NSM"],[2759,2760,"NSM"],[2765,2765,"NSM"],[2786,2787,"NSM"],[2801,2801,"ET"],[2810,2815,"NSM"],[2817,2817,"NSM"],[2876,2876,"NSM"],[2879,2879,"NSM"],[2881,2884,"NSM"],[2893,2893,"NSM"],[2901,2902,"NSM"],[2914,2915,"NSM"],[2946,2946,"NSM"],[3008,3008,"NSM"],[3021,3021,"NSM"],[3059,3064,"ON"],[3065,3065,"ET"],[3066,3066,"ON"],[3072,3072,"NSM"],[3076,3076,"NSM"],[3132,3132,"NSM"],[3134,3136,"NSM"],[3142,3144,"NSM"],[3146,3149,"NSM"],[3157,3158,"NSM"],[3170,3171,"NSM"],[3192,3198,"ON"],[3201,3201,"NSM"],[3260,3260,"NSM"],[3276,3277,"NSM"],[3298,3299,"NSM"],[3328,3329,"NSM"],[3387,3388,"NSM"],[3393,3396,"NSM"],[3405,3405,"NSM"],[3426,3427,"NSM"],[3457,3457,"NSM"],[3530,3530,"NSM"],[3538,3540,"NSM"],[3542,3542,"NSM"],[3633,3633,"NSM"],[3636,3642,"NSM"],[3647,3647,"ET"],[3655,3662,"NSM"],[3761,3761,"NSM"],[3764,3772,"NSM"],[3784,3790,"NSM"],[3864,3865,"NSM"],[3893,3893,"NSM"],[3895,3895,"NSM"],[3897,3897,"NSM"],[3898,3901,"ON"],[3953,3966,"NSM"],[3968,3972,"NSM"],[3974,3975,"NSM"],[3981,3991,"NSM"],[3993,4028,"NSM"],[4038,4038,"NSM"],[4141,4144,"NSM"],[4146,4151,"NSM"],[4153,4154,"NSM"],[4157,4158,"NSM"],[4184,4185,"NSM"],[4190,4192,"NSM"],[4209,4212,"NSM"],[4226,4226,"NSM"],[4229,4230,"NSM"],[4237,4237,"NSM"],[4253,4253,"NSM"],[4957,4959,"NSM"],[5008,5017,"ON"],[5120,5120,"ON"],[5760,5760,"WS"],[5787,5788,"ON"],[5906,5908,"NSM"],[5938,5939,"NSM"],[5970,5971,"NSM"],[6002,6003,"NSM"],[6068,6069,"NSM"],[6071,6077,"NSM"],[6086,6086,"NSM"],[6089,6099,"NSM"],[6107,6107,"ET"],[6109,6109,"NSM"],[6128,6137,"ON"],[6144,6154,"ON"],[6155,6157,"NSM"],[6158,6158,"BN"],[6159,6159,"NSM"],[6277,6278,"NSM"],[6313,6313,"NSM"],[6432,6434,"NSM"],[6439,6440,"NSM"],[6450,6450,"NSM"],[6457,6459,"NSM"],[6464,6464,"ON"],[6468,6469,"ON"],[6622,6655,"ON"],[6679,6680,"NSM"],[6683,6683,"NSM"],[6742,6742,"NSM"],[6744,6750,"NSM"],[6752,6752,"NSM"],[6754,6754,"NSM"],[6757,6764,"NSM"],[6771,6780,"NSM"],[6783,6783,"NSM"],[6832,6877,"NSM"],[6880,6891,"NSM"],[6912,6915,"NSM"],[6964,6964,"NSM"],[6966,6970,"NSM"],[6972,6972,"NSM"],[6978,6978,"NSM"],[7019,7027,"NSM"],[7040,7041,"NSM"],[7074,7077,"NSM"],[7080,7081,"NSM"],[7083,7085,"NSM"],[7142,7142,"NSM"],[7144,7145,"NSM"],[7149,7149,"NSM"],[7151,7153,"NSM"],[7212,7219,"NSM"],[7222,7223,"NSM"],[7376,7378,"NSM"],[7380,7392,"NSM"],[7394,7400,"NSM"],[7405,7405,"NSM"],[7412,7412,"NSM"],[7416,7417,"NSM"],[7616,7679,"NSM"],[8125,8125,"ON"],[8127,8129,"ON"],[8141,8143,"ON"],[8157,8159,"ON"],[8173,8175,"ON"],[8189,8190,"ON"],[8192,8202,"WS"],[8203,8205,"BN"],[8207,8207,"R"],[8208,8231,"ON"],[8232,8232,"WS"],[8233,8233,"B"],[8234,8238,"BN"],[8239,8239,"CS"],[8240,8244,"ET"],[8245,8259,"ON"],[8260,8260,"CS"],[8261,8286,"ON"],[8287,8287,"WS"],[8288,8303,"BN"],[8304,8304,"EN"],[8308,8313,"EN"],[8314,8315,"ES"],[8316,8318,"ON"],[8320,8329,"EN"],[8330,8331,"ES"],[8332,8334,"ON"],[8352,8399,"ET"],[8400,8432,"NSM"],[8448,8449,"ON"],[8451,8454,"ON"],[8456,8457,"ON"],[8468,8468,"ON"],[8470,8472,"ON"],[8478,8483,"ON"],[8485,8485,"ON"],[8487,8487,"ON"],[8489,8489,"ON"],[8494,8494,"ET"],[8506,8507,"ON"],[8512,8516,"ON"],[8522,8525,"ON"],[8528,8543,"ON"],[8585,8587,"ON"],[8592,8721,"ON"],[8722,8722,"ES"],[8723,8723,"ET"],[8724,9013,"ON"],[9083,9108,"ON"],[9110,9257,"ON"],[9280,9290,"ON"],[9312,9351,"ON"],[9352,9371,"EN"],[9450,9899,"ON"],[9901,10239,"ON"],[10496,11123,"ON"],[11126,11263,"ON"],[11493,11498,"ON"],[11503,11505,"NSM"],[11513,11519,"ON"],[11647,11647,"NSM"],[11744,11775,"NSM"],[11776,11869,"ON"],[11904,11929,"ON"],[11931,12019,"ON"],[12032,12245,"ON"],[12272,12287,"ON"],[12288,12288,"WS"],[12289,12292,"ON"],[12296,12320,"ON"],[12330,12333,"NSM"],[12336,12336,"ON"],[12342,12343,"ON"],[12349,12351,"ON"],[12441,12442,"NSM"],[12443,12444,"ON"],[12448,12448,"ON"],[12539,12539,"ON"],[12736,12773,"ON"],[12783,12783,"ON"],[12829,12830,"ON"],[12880,12895,"ON"],[12924,12926,"ON"],[12977,12991,"ON"],[13004,13007,"ON"],[13175,13178,"ON"],[13278,13279,"ON"],[13311,13311,"ON"],[19904,19967,"ON"],[42128,42182,"ON"],[42509,42511,"ON"],[42607,42610,"NSM"],[42611,42611,"ON"],[42612,42621,"NSM"],[42622,42623,"ON"],[42654,42655,"NSM"],[42736,42737,"NSM"],[42752,42785,"ON"],[42888,42888,"ON"],[43010,43010,"NSM"],[43014,43014,"NSM"],[43019,43019,"NSM"],[43045,43046,"NSM"],[43048,43051,"ON"],[43052,43052,"NSM"],[43064,43065,"ET"],[43124,43127,"ON"],[43204,43205,"NSM"],[43232,43249,"NSM"],[43263,43263,"NSM"],[43302,43309,"NSM"],[43335,43345,"NSM"],[43392,43394,"NSM"],[43443,43443,"NSM"],[43446,43449,"NSM"],[43452,43453,"NSM"],[43493,43493,"NSM"],[43561,43566,"NSM"],[43569,43570,"NSM"],[43573,43574,"NSM"],[43587,43587,"NSM"],[43596,43596,"NSM"],[43644,43644,"NSM"],[43696,43696,"NSM"],[43698,43700,"NSM"],[43703,43704,"NSM"],[43710,43711,"NSM"],[43713,43713,"NSM"],[43756,43757,"NSM"],[43766,43766,"NSM"],[43882,43883,"ON"],[44005,44005,"NSM"],[44008,44008,"NSM"],[44013,44013,"NSM"],[64285,64285,"R"],[64286,64286,"NSM"],[64287,64296,"R"],[64297,64297,"ES"],[64298,64335,"R"],[64336,64450,"AL"],[64451,64466,"ON"],[64467,64829,"AL"],[64830,64847,"ON"],[64848,64911,"AL"],[64912,64913,"ON"],[64914,64967,"AL"],[64968,64975,"ON"],[64976,65007,"BN"],[65008,65020,"AL"],[65021,65023,"ON"],[65024,65039,"NSM"],[65040,65049,"ON"],[65056,65071,"NSM"],[65072,65103,"ON"],[65104,65104,"CS"],[65105,65105,"ON"],[65106,65106,"CS"],[65108,65108,"ON"],[65109,65109,"CS"],[65110,65118,"ON"],[65119,65119,"ET"],[65120,65121,"ON"],[65122,65123,"ES"],[65124,65126,"ON"],[65128,65128,"ON"],[65129,65130,"ET"],[65131,65131,"ON"],[65136,65278,"AL"],[65279,65279,"BN"],[65281,65282,"ON"],[65283,65285,"ET"],[65286,65290,"ON"],[65291,65291,"ES"],[65292,65292,"CS"],[65293,65293,"ES"],[65294,65295,"CS"],[65296,65305,"EN"],[65306,65306,"CS"],[65307,65312,"ON"],[65339,65344,"ON"],[65371,65381,"ON"],[65504,65505,"ET"],[65506,65508,"ON"],[65509,65510,"ET"],[65512,65518,"ON"],[65520,65528,"BN"],[65529,65533,"ON"],[65534,65535,"BN"],[65793,65793,"ON"],[65856,65932,"ON"],[65936,65948,"ON"],[65952,65952,"ON"],[66045,66045,"NSM"],[66272,66272,"NSM"],[66273,66299,"EN"],[66422,66426,"NSM"],[67584,67870,"R"],[67871,67871,"ON"],[67872,68096,"R"],[68097,68099,"NSM"],[68100,68100,"R"],[68101,68102,"NSM"],[68103,68107,"R"],[68108,68111,"NSM"],[68112,68151,"R"],[68152,68154,"NSM"],[68155,68158,"R"],[68159,68159,"NSM"],[68160,68324,"R"],[68325,68326,"NSM"],[68327,68408,"R"],[68409,68415,"ON"],[68416,68863,"R"],[68864,68899,"AL"],[68900,68903,"NSM"],[68904,68911,"AL"],[68912,68921,"AN"],[68922,68927,"AL"],[68928,68937,"AN"],[68938,68968,"R"],[68969,68973,"NSM"],[68974,68974,"ON"],[68975,69215,"R"],[69216,69246,"AN"],[69247,69290,"R"],[69291,69292,"NSM"],[69293,69311,"R"],[69312,69327,"AL"],[69328,69336,"ON"],[69337,69369,"AL"],[69370,69375,"NSM"],[69376,69423,"R"],[69424,69445,"AL"],[69446,69456,"NSM"],[69457,69487,"AL"],[69488,69505,"R"],[69506,69509,"NSM"],[69510,69631,"R"],[69633,69633,"NSM"],[69688,69702,"NSM"],[69714,69733,"ON"],[69744,69744,"NSM"],[69747,69748,"NSM"],[69759,69761,"NSM"],[69811,69814,"NSM"],[69817,69818,"NSM"],[69826,69826,"NSM"],[69888,69890,"NSM"],[69927,69931,"NSM"],[69933,69940,"NSM"],[70003,70003,"NSM"],[70016,70017,"NSM"],[70070,70078,"NSM"],[70089,70092,"NSM"],[70095,70095,"NSM"],[70191,70193,"NSM"],[70196,70196,"NSM"],[70198,70199,"NSM"],[70206,70206,"NSM"],[70209,70209,"NSM"],[70367,70367,"NSM"],[70371,70378,"NSM"],[70400,70401,"NSM"],[70459,70460,"NSM"],[70464,70464,"NSM"],[70502,70508,"NSM"],[70512,70516,"NSM"],[70587,70592,"NSM"],[70606,70606,"NSM"],[70608,70608,"NSM"],[70610,70610,"NSM"],[70625,70626,"NSM"],[70712,70719,"NSM"],[70722,70724,"NSM"],[70726,70726,"NSM"],[70750,70750,"NSM"],[70835,70840,"NSM"],[70842,70842,"NSM"],[70847,70848,"NSM"],[70850,70851,"NSM"],[71090,71093,"NSM"],[71100,71101,"NSM"],[71103,71104,"NSM"],[71132,71133,"NSM"],[71219,71226,"NSM"],[71229,71229,"NSM"],[71231,71232,"NSM"],[71264,71276,"ON"],[71339,71339,"NSM"],[71341,71341,"NSM"],[71344,71349,"NSM"],[71351,71351,"NSM"],[71453,71453,"NSM"],[71455,71455,"NSM"],[71458,71461,"NSM"],[71463,71467,"NSM"],[71727,71735,"NSM"],[71737,71738,"NSM"],[71995,71996,"NSM"],[71998,71998,"NSM"],[72003,72003,"NSM"],[72148,72151,"NSM"],[72154,72155,"NSM"],[72160,72160,"NSM"],[72193,72198,"NSM"],[72201,72202,"NSM"],[72243,72248,"NSM"],[72251,72254,"NSM"],[72263,72263,"NSM"],[72273,72278,"NSM"],[72281,72283,"NSM"],[72330,72342,"NSM"],[72344,72345,"NSM"],[72544,72544,"NSM"],[72546,72548,"NSM"],[72550,72550,"NSM"],[72752,72758,"NSM"],[72760,72765,"NSM"],[72850,72871,"NSM"],[72874,72880,"NSM"],[72882,72883,"NSM"],[72885,72886,"NSM"],[73009,73014,"NSM"],[73018,73018,"NSM"],[73020,73021,"NSM"],[73023,73029,"NSM"],[73031,73031,"NSM"],[73104,73105,"NSM"],[73109,73109,"NSM"],[73111,73111,"NSM"],[73459,73460,"NSM"],[73472,73473,"NSM"],[73526,73530,"NSM"],[73536,73536,"NSM"],[73538,73538,"NSM"],[73562,73562,"NSM"],[73685,73692,"ON"],[73693,73696,"ET"],[73697,73713,"ON"],[78912,78912,"NSM"],[78919,78933,"NSM"],[90398,90409,"NSM"],[90413,90415,"NSM"],[92912,92916,"NSM"],[92976,92982,"NSM"],[94031,94031,"NSM"],[94095,94098,"NSM"],[94178,94178,"ON"],[94180,94180,"NSM"],[113821,113822,"NSM"],[113824,113827,"BN"],[117760,117973,"ON"],[118e3,118009,"EN"],[118010,118012,"ON"],[118016,118451,"ON"],[118458,118480,"ON"],[118496,118512,"ON"],[118528,118573,"NSM"],[118576,118598,"NSM"],[119143,119145,"NSM"],[119155,119162,"BN"],[119163,119170,"NSM"],[119173,119179,"NSM"],[119210,119213,"NSM"],[119273,119274,"ON"],[119296,119361,"ON"],[119362,119364,"NSM"],[119365,119365,"ON"],[119552,119638,"ON"],[120513,120513,"ON"],[120539,120539,"ON"],[120571,120571,"ON"],[120597,120597,"ON"],[120629,120629,"ON"],[120655,120655,"ON"],[120687,120687,"ON"],[120713,120713,"ON"],[120745,120745,"ON"],[120771,120771,"ON"],[120782,120831,"EN"],[121344,121398,"NSM"],[121403,121452,"NSM"],[121461,121461,"NSM"],[121476,121476,"NSM"],[121499,121503,"NSM"],[121505,121519,"NSM"],[122880,122886,"NSM"],[122888,122904,"NSM"],[122907,122913,"NSM"],[122915,122916,"NSM"],[122918,122922,"NSM"],[123023,123023,"NSM"],[123184,123190,"NSM"],[123566,123566,"NSM"],[123628,123631,"NSM"],[123647,123647,"ET"],[124140,124143,"NSM"],[124398,124399,"NSM"],[124643,124643,"NSM"],[124646,124646,"NSM"],[124654,124655,"NSM"],[124661,124661,"NSM"],[124928,125135,"R"],[125136,125142,"NSM"],[125143,125251,"R"],[125252,125258,"NSM"],[125259,126063,"R"],[126064,126143,"AL"],[126144,126207,"R"],[126208,126287,"AL"],[126288,126463,"R"],[126464,126703,"AL"],[126704,126705,"ON"],[126706,126719,"AL"],[126720,126975,"R"],[126976,127019,"ON"],[127024,127123,"ON"],[127136,127150,"ON"],[127153,127167,"ON"],[127169,127183,"ON"],[127185,127221,"ON"],[127232,127242,"EN"],[127243,127247,"ON"],[127279,127279,"ON"],[127338,127343,"ON"],[127405,127405,"ON"],[127584,127589,"ON"],[127744,128728,"ON"],[128732,128748,"ON"],[128752,128764,"ON"],[128768,128985,"ON"],[128992,129003,"ON"],[129008,129008,"ON"],[129024,129035,"ON"],[129040,129095,"ON"],[129104,129113,"ON"],[129120,129159,"ON"],[129168,129197,"ON"],[129200,129211,"ON"],[129216,129217,"ON"],[129232,129240,"ON"],[129280,129623,"ON"],[129632,129645,"ON"],[129648,129660,"ON"],[129664,129674,"ON"],[129678,129734,"ON"],[129736,129736,"ON"],[129741,129756,"ON"],[129759,129770,"ON"],[129775,129784,"ON"],[129792,129938,"ON"],[129940,130031,"ON"],[130032,130041,"EN"],[130042,130042,"ON"],[131070,131071,"BN"],[196606,196607,"BN"],[262142,262143,"BN"],[327678,327679,"BN"],[393214,393215,"BN"],[458750,458751,"BN"],[524286,524287,"BN"],[589822,589823,"BN"],[655358,655359,"BN"],[720894,720895,"BN"],[786430,786431,"BN"],[851966,851967,"BN"],[917502,917759,"BN"],[917760,917999,"NSM"],[918e3,921599,"BN"],[983038,983039,"BN"],[1048574,1048575,"BN"],[1114110,1114111,"BN"]];function wt(e){if(e<=255)return kt[e];let t=0,n=We.length-1;for(;t<=n;){const r=t+n>>1,x=We[r];if(e<x[0]){n=r-1;continue}if(e>x[1]){t=r+1;continue}return x[2]}return"L"}function bt(e){const t=e.length;if(t===0)return null;const n=new Array(t);let r=!1;for(let l=0;l<t;){const o=e.charCodeAt(l);let F=o,c=1;if(o>=55296&&o<=56319&&l+1<t){const m=e.charCodeAt(l+1);m>=56320&&m<=57343&&(F=(o-55296<<10)+(m-56320)+65536,c=2)}const E=wt(F);(E==="R"||E==="AL"||E==="AN")&&(r=!0);for(let m=0;m<c;m++)n[l+m]=E;l+=c}if(!r)return null;let x=0;for(let l=0;l<t;l++){const o=n[l];if(o==="L"){x=0;break}if(o==="R"||o==="AL"){x=1;break}}const s=new Int8Array(t);for(let l=0;l<t;l++)s[l]=x;const i=x&1?"R":"L",a=i;let u=a;for(let l=0;l<t;l++)n[l]==="NSM"?n[l]=u:u=n[l];u=a;for(let l=0;l<t;l++){const o=n[l];o==="EN"?n[l]=u==="AL"?"AN":"EN":(o==="R"||o==="L"||o==="AL")&&(u=o)}for(let l=0;l<t;l++)n[l]==="AL"&&(n[l]="R");for(let l=1;l<t-1;l++)n[l]==="ES"&&n[l-1]==="EN"&&n[l+1]==="EN"&&(n[l]="EN"),n[l]==="CS"&&(n[l-1]==="EN"||n[l-1]==="AN")&&n[l+1]===n[l-1]&&(n[l]=n[l-1]);for(let l=0;l<t;l++){if(n[l]!=="EN")continue;let o;for(o=l-1;o>=0&&n[o]==="ET";o--)n[o]="EN";for(o=l+1;o<t&&n[o]==="ET";o++)n[o]="EN"}for(let l=0;l<t;l++){const o=n[l];(o==="WS"||o==="ES"||o==="ET"||o==="CS")&&(n[l]="ON")}u=a;for(let l=0;l<t;l++){const o=n[l];o==="EN"?n[l]=u==="L"?"L":"EN":(o==="R"||o==="L")&&(u=o)}for(let l=0;l<t;l++){if(n[l]!=="ON")continue;let o=l+1;for(;o<t&&n[o]==="ON";)o++;const F=l>0?n[l-1]:a,c=o<t?n[o]:a,E=F!=="L"?"R":"L";if(E===(c!=="L"?"R":"L"))for(let S=l;S<o;S++)n[S]=E;l=o-1}for(let l=0;l<t;l++)n[l]==="ON"&&(n[l]=i);for(let l=0;l<t;l++){const o=n[l];(s[l]&1)===0?o==="R"?s[l]++:(o==="AN"||o==="EN")&&(s[l]+=2):(o==="L"||o==="AN"||o==="EN")&&s[l]++}return s}function _t(e,t){const n=bt(e);if(n===null)return null;const r=new Int8Array(t.length);for(let x=0;x<t.length;x++)r[x]=n[t[x]];return r}const yt=/[ \t\n\r\f]+/g,Wt=/[\t\n\r\f]| {2,}|^ | $/;function Rt(e){const t=e??"normal";return t==="pre-wrap"?{mode:t,preserveOrdinarySpaces:!0,preserveHardBreaks:!0}:{mode:t,preserveOrdinarySpaces:!1,preserveHardBreaks:!1}}function Tt(e){if(!Wt.test(e))return e;let t=e.replace(yt," ");return t.charCodeAt(0)===32&&(t=t.slice(1)),t.length>0&&t.charCodeAt(t.length-1)===32&&(t=t.slice(0,-1)),t}function Pt(e){return/[\r\f]/.test(e)?e.replace(/\r\n/g,`
2
2
  `).replace(/[\r\f]/g,`
3
3
  `):e}let pe=null,Ut;function It(){return pe===null&&(pe=new Intl.Segmenter(Ut,{granularity:"word"})),pe}const zt=new RegExp("\\p{Script=Arabic}","u"),fe=new RegExp("\\p{M}","u"),Ze=new RegExp("\\p{Nd}","u");function Re(e){return zt.test(e)}function Te(e){return e>=19968&&e<=40959||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=173824&&e<=177983||e>=177984&&e<=178207||e>=178208&&e<=183983||e>=183984&&e<=191471||e>=191472&&e<=192093||e>=194560&&e<=195103||e>=196608&&e<=201551||e>=201552&&e<=205743||e>=205744&&e<=210041||e>=63744&&e<=64255||e>=12288&&e<=12351||e>=12352&&e<=12447||e>=12448&&e<=12543||e>=12592&&e<=12687||e>=44032&&e<=55215||e>=65280&&e<=65519}function Z(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(!(n<12288)){if(n>=55296&&n<=56319&&t+1<e.length){const r=e.charCodeAt(t+1);if(r>=56320&&r<=57343){const x=(n-55296<<10)+(r-56320)+65536;if(Te(x))return!0;t++;continue}}if(Te(n))return!0}}return!1}function $t(e){const t=Ne(e);return t!==null&&(ve.has(t)||ee.has(t))}const jt=new Set([" "," ","⁠","\uFEFF"]);function Gt(e){return Z(e)}function Vt(e){const t=Ne(e);return t!==null&&jt.has(t)}function Kt(e){return!$t(e)&&!Vt(e)}const ve=new Set([",",".","!",":",";","?","、","。","・",")","〕","〉","》","」","』","】","〗","〙","〛","ー","々","〻","ゝ","ゞ","ヽ","ヾ"]),de=new Set(['"',"(","[","{","“","‘","«","‹","(","〔","〈","《","「","『","【","〖","〘","〚"]),Oe=new Set(["'","’"]),ee=new Set([".",",","!","?",":",";","،","؛","؟","।","॥","၊","။","၌","၍","၏",")","]","}","%",'"',"”","’","»","›","…"]),Ht=new Set([":",".","،","؛"]),Jt=new Set(["၏"]),qt=new Set(["”","’","»","›","」","』","】","》","〉","〕",")"]);function Qt(e){if(ke(e))return!0;let t=!1;for(const n of e){if(ee.has(n)){t=!0;continue}if(!(t&&fe.test(n)))return!1}return t}function Yt(e){for(const t of e)if(!ve.has(t)&&!ee.has(t))return!1;return e.length>0}function Xt(e){if(ke(e))return!0;for(const t of e)if(!de.has(t)&&!Oe.has(t)&&!fe.test(t))return!1;return e.length>0}function ke(e){let t=!1;for(const n of e)if(!(n==="\\"||fe.test(n))){if(de.has(n)||ee.has(n)||Oe.has(n)){t=!0;continue}return!1}return t}function et(e,t){const n=t-1;if(n<=0)return Math.max(n,0);const r=e.charCodeAt(n);if(r<56320||r>57343)return n;const x=n-1;if(x<0)return n;const s=e.charCodeAt(x);return s>=55296&&s<=56319?x:n}function Ne(e){if(e.length===0)return null;const t=et(e,e.length);return e.slice(t)}function Zt(e){const t=Array.from(e);let n=t.length;for(;n>0;){const r=t[n-1];if(fe.test(r)){n--;continue}if(de.has(r)||Oe.has(r)){n--;continue}break}return n<=0||n===t.length?null:{head:t.slice(0,n).join(""),tail:t.slice(n).join("")}}function e0(e,t,n){return n==="text"&&!t&&e.length===1&&e!=="-"&&e!=="—"?e:null}function Pe(e,t,n,r){const x=t[r],s=e[r];if(x==null)return s;const i=n[r];if(s.length===i)return s;const a=x.repeat(i);return e[r]=a,a}function Ue(e,t){return e&&t!==null&&Ht.has(t)}function t0(e){const t=Ne(e);return t!==null&&Jt.has(t)}function n0(e){if(e.length<2||e[0]!==" ")return null;const t=e.slice(1);return new RegExp("^\\p{M}+$","u").test(t)?{space:" ",marks:t}:null}function Me(e){let t=e.length;for(;t>0;){const n=et(e,t),r=e.slice(n,t);if(qt.has(r))return!0;if(!ee.has(r))return!1;t=n}return!1}function s0(e,t){if(t.preserveOrdinarySpaces||t.preserveHardBreaks){if(e===" ")return"preserved-space";if(e===" ")return"tab";if(t.preserveHardBreaks&&e===`
4
4
  `)return"hard-break"}return e===" "?"space":e===" "||e===" "||e==="⁠"||e==="\uFEFF"?"glue":e==="​"?"zero-width-break":e==="­"?"soft-hyphen":"text"}const x0=/[\x20\t\n\xA0\xAD\u200B\u202F\u2060\uFEFF]/;function G(e){return e.length===1?e[0]:e.join("")}function r0(e,t){const n=[];for(let r=e.length-1;r>=0;r--)n.push(e[r]);return n.push(t),G(n)}function i0(e,t,n,r){if(!x0.test(e))return[{text:e,isWordLike:t,kind:"text",start:n}];const x=[];let s=null,i=[],a=n,u=!1,l=0;for(const o of e){const F=s0(o,r),c=F==="text"&&t;if(s!==null&&F===s&&c===u){i.push(o),l+=o.length;continue}s!==null&&x.push({text:G(i),isWordLike:u,kind:s,start:a}),s=F,i=[o],a=n+l,u=c,l+=o.length}return s!==null&&x.push({text:G(i),isWordLike:u,kind:s,start:a}),x}function ge(e){return e==="space"||e==="preserved-space"||e==="zero-width-break"||e==="hard-break"}const l0=/^[A-Za-z][A-Za-z0-9+.-]*:$/;function o0(e,t){const n=e.texts[t];return n.startsWith("www.")?!0:l0.test(n)&&t+1<e.len&&e.kinds[t+1]==="text"&&e.texts[t+1]==="//"}function a0(e){return e.includes("?")&&(e.includes("://")||e.startsWith("www."))}function u0(e){const t=e.texts.slice(),n=e.isWordLike.slice(),r=e.kinds.slice(),x=e.starts.slice();for(let i=0;i<e.len;i++){if(r[i]!=="text"||!o0(e,i))continue;const a=[t[i]];let u=i+1;for(;u<e.len&&!ge(r[u]);){a.push(t[u]),n[i]=!0;const l=t[u].includes("?");if(r[u]="text",t[u]="",u++,l)break}t[i]=G(a)}let s=0;for(let i=0;i<t.length;i++){const a=t[i];a.length!==0&&(s!==i&&(t[s]=a,n[s]=n[i],r[s]=r[i],x[s]=x[i]),s++)}return t.length=s,n.length=s,r.length=s,x.length=s,{len:s,texts:t,isWordLike:n,kinds:r,starts:x}}function c0(e){const t=[],n=[],r=[],x=[];for(let s=0;s<e.len;s++){const i=e.texts[s];if(t.push(i),n.push(e.isWordLike[s]),r.push(e.kinds[s]),x.push(e.starts[s]),!a0(i))continue;const a=s+1;if(a>=e.len||ge(e.kinds[a]))continue;const u=[],l=e.starts[a];let o=a;for(;o<e.len&&!ge(e.kinds[o]);)u.push(e.texts[o]),o++;u.length>0&&(t.push(G(u)),n.push(!0),r.push("text"),x.push(l),s=o-1)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}const F0=new Set([":","-","/","×",",",".","+","–","—"]),Ie=/^[A-Za-z0-9_]+[,:;]*$/,ze=/[,:;]+$/;function tt(e){for(const t of e)if(Ze.test(t))return!0;return!1}function ue(e){if(e.length===0)return!1;for(const t of e)if(!(Ze.test(t)||F0.has(t)))return!1;return!0}function f0(e){const t=[],n=[],r=[],x=[];for(let s=0;s<e.len;s++){const i=e.texts[s],a=e.kinds[s];if(a==="text"&&ue(i)&&tt(i)){const u=[i];let l=s+1;for(;l<e.len&&e.kinds[l]==="text"&&ue(e.texts[l]);)u.push(e.texts[l]),l++;t.push(G(u)),n.push(!0),r.push("text"),x.push(e.starts[s]),s=l-1;continue}t.push(i),n.push(e.isWordLike[s]),r.push(a),x.push(e.starts[s])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}function d0(e){const t=[],n=[],r=[],x=[];for(let s=0;s<e.len;s++){const i=e.texts[s],a=e.kinds[s],u=e.isWordLike[s];if(a==="text"&&u&&Ie.test(i)){const l=[i];let o=ze.test(i),F=s+1;for(;o&&F<e.len&&e.kinds[F]==="text"&&e.isWordLike[F]&&Ie.test(e.texts[F]);){const c=e.texts[F];l.push(c),o=ze.test(c),F++}t.push(G(l)),n.push(!0),r.push("text"),x.push(e.starts[s]),s=F-1;continue}t.push(i),n.push(u),r.push(a),x.push(e.starts[s])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}function N0(e){const t=[],n=[],r=[],x=[];for(let s=0;s<e.len;s++){const i=e.texts[s];if(e.kinds[s]==="text"&&i.includes("-")){const a=i.split("-");let u=a.length>1;for(let l=0;l<a.length;l++){const o=a[l];if(!u)break;(o.length===0||!tt(o)||!ue(o))&&(u=!1)}if(u){let l=0;for(let o=0;o<a.length;o++){const F=a[o],c=o<a.length-1?`${F}-`:F;t.push(c),n.push(!0),r.push("text"),x.push(e.starts[s]+l),l+=c.length}continue}}t.push(i),n.push(e.isWordLike[s]),r.push(e.kinds[s]),x.push(e.starts[s])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}function S0(e){const t=[],n=[],r=[],x=[];let s=0;for(;s<e.len;){const i=[e.texts[s]];let a=e.isWordLike[s],u=e.kinds[s],l=e.starts[s];if(u==="glue"){const o=[i[0]],F=l;for(s++;s<e.len&&e.kinds[s]==="glue";)o.push(e.texts[s]),s++;const c=G(o);if(s<e.len&&e.kinds[s]==="text")i[0]=c,i.push(e.texts[s]),a=e.isWordLike[s],u="text",l=F,s++;else{t.push(c),n.push(!1),r.push("glue"),x.push(F);continue}}else s++;if(u==="text")for(;s<e.len&&e.kinds[s]==="glue";){const o=[];for(;s<e.len&&e.kinds[s]==="glue";)o.push(e.texts[s]),s++;const F=G(o);if(s<e.len&&e.kinds[s]==="text"){i.push(F,e.texts[s]),a=a||e.isWordLike[s],s++;continue}i.push(F)}t.push(G(i)),n.push(a),r.push(u),x.push(l)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}function E0(e){const t=e.texts.slice(),n=e.isWordLike.slice(),r=e.kinds.slice(),x=e.starts.slice();for(let s=0;s<t.length-1;s++){if(r[s]!=="text"||r[s+1]!=="text"||!Z(t[s])||!Z(t[s+1]))continue;const i=Zt(t[s]);i!==null&&(t[s]=i.head,t[s+1]=i.tail+t[s+1],x[s+1]=x[s]+i.head.length)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}function $e(e,t,n){const r=It();let x=0;const s=[],i=[],a=[],u=[],l=[],o=[],F=[],c=[],E=[],m=[],S=[],d=[];for(const f of r.segment(e))for(const p of i0(f.segment,f.isWordLike??!1,f.index,n)){let M=function(){o[N]!==null&&(i[N]=[Pe(s,o,F,N)],o[N]=null),i[N].push(p.text),a[N]=a[N]||p.isWordLike,c[N]=c[N]||D,E[N]=E[N]||_,m[N]=R,S[N]=V,d[N]=Ue(E[N],y)};const g=p.kind==="text",C=e0(p.text,p.isWordLike,p.kind),D=Z(p.text),_=Re(p.text),y=Ne(p.text),R=Me(p.text),V=t0(p.text),N=x-1;t.carryCJKAfterClosingQuote&&g&&x>0&&u[N]==="text"&&D&&c[N]&&m[N]||g&&x>0&&u[N]==="text"&&Yt(p.text)&&c[N]||g&&x>0&&u[N]==="text"&&S[N]?M():g&&x>0&&u[N]==="text"&&p.isWordLike&&_&&d[N]?(M(),a[N]=!0):C!==null&&x>0&&u[N]==="text"&&o[N]===C?F[N]=(F[N]??1)+1:g&&!p.isWordLike&&x>0&&u[N]==="text"&&!c[N]&&(Qt(p.text)||p.text==="-"&&a[N])?M():(s[x]=p.text,i[x]=[p.text],a[x]=p.isWordLike,u[x]=p.kind,l[x]=p.start,o[x]=C,F[x]=C===null?0:1,c[x]=D,E[x]=_,m[x]=R,S[x]=V,d[x]=Ue(_,y),x++)}for(let f=0;f<x;f++){if(o[f]!==null){s[f]=Pe(s,o,F,f);continue}s[f]=G(i[f])}for(let f=1;f<x;f++)u[f]==="text"&&!a[f]&&ke(s[f])&&u[f-1]==="text"&&!c[f-1]&&(s[f-1]+=s[f],a[f-1]=a[f-1]||a[f],s[f]="");const A=Array.from({length:x},()=>null);let L=-1;for(let f=x-1;f>=0;f--){const p=s[f];if(p.length!==0){if(u[f]==="text"&&!a[f]&&Xt(p)&&L>=0&&u[L]==="text"){const g=A[L]??[];g.push(p),A[L]=g,l[L]=l[f],s[f]="";continue}L=f}}for(let f=0;f<x;f++){const p=A[f];p!=null&&(s[f]=r0(p,s[f]))}let h=0;for(let f=0;f<x;f++){const p=s[f];p.length!==0&&(h!==f&&(s[h]=p,a[h]=a[f],u[h]=u[f],l[h]=l[f]),h++)}s.length=h,a.length=h,u.length=h,l.length=h;const O=S0({len:h,texts:s,isWordLike:a,kinds:u,starts:l}),v=E0(d0(N0(f0(c0(u0(O))))));for(let f=0;f<v.len-1;f++){const p=n0(v.texts[f]);p!==null&&(v.kinds[f]!=="space"&&v.kinds[f]!=="preserved-space"||v.kinds[f+1]!=="text"||!Re(v.texts[f+1])||(v.texts[f]=p.space,v.isWordLike[f]=!1,v.kinds[f]=v.kinds[f]==="preserved-space"?"preserved-space":"space",v.texts[f+1]=p.marks+v.texts[f+1],v.starts[f+1]=v.starts[f]+p.space.length))}return v}function p0(e,t){if(e.len===0)return[];if(!t.preserveHardBreaks)return[{startSegmentIndex:0,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}];const n=[];let r=0;for(let x=0;x<e.len;x++)e.kinds[x]==="hard-break"&&(n.push({startSegmentIndex:r,endSegmentIndex:x,consumedEndSegmentIndex:x+1}),r=x+1);return r<e.len&&n.push({startSegmentIndex:r,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}),n}function A0(e){if(e.len<=1)return e;const t=[],n=[],r=[],x=[];let s=null,i=!1,a=0,u=!1,l=!1;function o(){s!==null&&(t.push(G(s)),n.push(i),r.push("text"),x.push(a),s=null)}for(let F=0;F<e.len;F++){const c=e.texts[F],E=e.kinds[F],m=e.isWordLike[F],S=e.starts[F];if(E==="text"){const d=Gt(c),A=Kt(c);if(s!==null&&u&&l){s.push(c),i=i||m,u=u||d,l=A;continue}o(),s=[c],i=m,a=S,u=d,l=A;continue}o(),t.push(c),n.push(m),r.push(E),x.push(S)}return o(),{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}function h0(e,t,n="normal",r="normal"){const x=Rt(n),s=x.mode==="pre-wrap"?Pt(e):Tt(e);if(s.length===0)return{normalized:s,chunks:[],len:0,texts:[],isWordLike:[],kinds:[],starts:[]};const i=r==="keep-all"?A0($e(s,t,x)):$e(s,t,x);return{normalized:s,chunks:p0(i,x),...i}}let se=null;const je=new Map;let xe=null;const C0=96,m0=new RegExp("\\p{Emoji_Presentation}","u"),B0=/[\p{Emoji_Presentation}\p{Extended_Pictographic}\p{Regional_Indicator}\uFE0F\u20E3]/u;let Ae=null;const Ge=new Map;function we(){if(se!==null)return se;if(typeof OffscreenCanvas<"u")return se=new OffscreenCanvas(1,1).getContext("2d"),se;if(typeof document<"u")return se=document.createElement("canvas").getContext("2d"),se;throw new Error("Text measurement requires OffscreenCanvas or a DOM canvas context.")}function M0(e){let t=je.get(e);return t||(t=new Map,je.set(e,t)),t}function Q(e,t){let n=t.get(e);return n===void 0&&(n={width:we().measureText(e).width,containsCJK:Z(e)},t.set(e,n)),n}function Se(){if(xe!==null)return xe;if(typeof navigator>"u")return xe={lineFitEpsilon:.005,carryCJKAfterClosingQuote:!1,preferPrefixWidthsForBreakableRuns:!1,preferEarlySoftHyphenBreak:!1},xe;const e=navigator.userAgent,n=navigator.vendor==="Apple Computer, Inc."&&e.includes("Safari/")&&!e.includes("Chrome/")&&!e.includes("Chromium/")&&!e.includes("CriOS/")&&!e.includes("FxiOS/")&&!e.includes("EdgiOS/"),r=e.includes("Chrome/")||e.includes("Chromium/")||e.includes("CriOS/")||e.includes("Edg/");return xe={lineFitEpsilon:n?1/64:.005,carryCJKAfterClosingQuote:r,preferPrefixWidthsForBreakableRuns:n,preferEarlySoftHyphenBreak:n},xe}function g0(e){const t=e.match(/(\d+(?:\.\d+)?)\s*px/);return t?parseFloat(t[1]):16}function nt(){return Ae===null&&(Ae=new Intl.Segmenter(void 0,{granularity:"grapheme"})),Ae}function D0(e){return m0.test(e)||e.includes("️")}function L0(e){return B0.test(e)}function v0(e,t){let n=Ge.get(e);if(n!==void 0)return n;const r=we();r.font=e;const x=r.measureText("😀").width;if(n=0,x>t+.5&&typeof document<"u"&&document.body!==null){const s=document.createElement("span");s.style.font=e,s.style.display="inline-block",s.style.visibility="hidden",s.style.position="absolute",s.textContent="😀",document.body.appendChild(s);const i=s.getBoundingClientRect().width;document.body.removeChild(s),x-i>.5&&(n=x-i)}return Ge.set(e,n),n}function O0(e){let t=0;const n=nt();for(const r of n.segment(e))D0(r.segment)&&t++;return t}function k0(e,t){return t.emojiCount===void 0&&(t.emojiCount=O0(e)),t.emojiCount}function Y(e,t,n){return n===0?t.width:t.width-k0(e,t)*n}function w0(e,t,n,r,x){if(t.breakableFitAdvances!==void 0&&t.breakableFitMode===x)return t.breakableFitAdvances;t.breakableFitMode=x;const s=nt(),i=[];for(const o of s.segment(e))i.push(o.segment);if(i.length<=1)return t.breakableFitAdvances=null,t.breakableFitAdvances;if(x==="sum-graphemes"){const o=[];for(const F of i){const c=Q(F,n);o.push(Y(F,c,r))}return t.breakableFitAdvances=o,t.breakableFitAdvances}if(x==="pair-context"||i.length>C0){const o=[];let F=null,c=0;for(const E of i){const m=Q(E,n),S=Y(E,m,r);if(F===null)o.push(S);else{const d=F+E,A=Q(d,n);o.push(Y(d,A,r)-c)}F=E,c=S}return t.breakableFitAdvances=o,t.breakableFitAdvances}const a=[];let u="",l=0;for(const o of i){u+=o;const F=Q(u,n),c=Y(u,F,r);a.push(c-l),l=c}return t.breakableFitAdvances=a,t.breakableFitAdvances}function b0(e,t){const n=we();n.font=e;const r=M0(e),x=g0(e),s=t?v0(e,x):0;return{cache:r,fontSize:x,emojiCorrection:s}}function _0(e){return e==="space"||e==="zero-width-break"||e==="soft-hyphen"}function st(e){return e==="space"||e==="preserved-space"||e==="tab"||e==="zero-width-break"||e==="soft-hyphen"}function xt(e,t,n=e.widths.length){for(;t<n;){const r=e.kinds[t];if(!_0(r))break;t++}return t}function y0(e,t){if(t<=0)return 0;const n=e%t;return Math.abs(n)<=1e-6?t:t-n}function W0(e,t,n){return e.letterSpacing!==0&&t&&e.spacingGraphemeCounts[n]>0?e.letterSpacing:0}function be(e,t){return t===0?0:e+t}function R0(e,t){return e.letterSpacing!==0&&e.spacingGraphemeCounts[t]>0?e.letterSpacing:0}function T0(e,t,n,r,x){const s=t==="tab"?x+R0(e,n):e.lineEndFitAdvances[n];return be(r,s)}function Ve(e,t,n,r){const x=t==="tab"?0:e.lineEndFitAdvances[n];return be(r,x)}function Ke(e,t,n,r,x){const s=t==="tab"?x:e.lineEndPaintAdvances[n];return be(r,s)}function P0(e,t,n){return e.letterSpacing!==0&&t?n+e.letterSpacing:n}function U0(e,t){return e.letterSpacing===0?t:t+e.letterSpacing}function I0(e,t,n,r,x,s){let i=0,a=t;for(;i<e.length;){const u=a+e[i]+s;if((i+1<e.length?u+x:u)>n+r)break;a=u,i++}return{fitCount:i,fittedWidth:a}}function z0(e,t,n){const{widths:r,kinds:x,breakableFitAdvances:s}=e;if(r.length===0)return 0;const a=Se().lineFitEpsilon,u=t+a;let l=0,o=0,F=!1,c=0,E=0,m=0,S=0,d=-1,A=0;function L(){d=-1,A=0}function h(C=m,D=S,_=o){l++,n?.(_,c,E,C,D),o=0,F=!1,L()}function O(C,D){F=!0,c=C,E=0,m=C+1,S=0,o=D}function v(C,D,_){F=!0,c=C,E=D,m=C,S=D+1,o=_}function f(C,D){if(!F){O(C,D);return}o+=D,m=C+1,S=0}function p(C,D){const _=s[C];for(let y=D;y<_.length;y++){const R=_[y];F?o+R>u?(h(),v(C,y,R)):(o+=R,m=C,S=y+1):v(C,y,R)}F&&m===C&&S===_.length&&(m=C+1,S=0)}let g=0;for(;g<r.length&&!(!F&&(g=xt(e,g),g>=r.length));){const C=r[g],D=x[g],_=st(D);if(!F){C>u&&s[g]!==null?p(g,0):O(g,C),_&&(d=g+1,A=o-C),g++;continue}if(o+C>u){if(_){f(g,C),h(g+1,0,o-C),g++;continue}if(d>=0){if(m>d||m===d&&S>0){h();continue}h(d,0,A);continue}if(C>u&&s[g]!==null){h(),p(g,0),g++;continue}h();continue}f(g,C),_&&(d=g+1,A=o-C),g++}return F&&h(),l}function $0(e,t,n){if(e.simpleLineWalkFastPath)return z0(e,t,n);const{widths:r,kinds:x,breakableFitAdvances:s,discretionaryHyphenWidth:i,chunks:a}=e;if(r.length===0||a.length===0)return 0;const u=Se(),l=u.lineFitEpsilon,o=t+l;let F=0,c=0,E=!1,m=0,S=0,d=0,A=0,L=-1,h=0,O=0,v=null;function f(){L=-1,h=0,O=0,v=null}function p(N=d,M=A,B=c){F++,n?.(B,m,S,N,M),c=0,E=!1,f()}function g(N,M){E=!0,m=N,S=0,d=N+1,A=0,c=M}function C(N,M,B){E=!0,m=N,S=M,d=N,A=M+1,c=B}function D(N,M){if(!E){g(N,M);return}c+=M,d=N+1,A=0}function _(N,M,B,w,I,z){if(!M)return;const K=Ve(e,N,B,I),ne=Ke(e,N,B,I,w);L=B+1,h=c-z+K,O=c-z+ne,v=N}function y(N,M){const B=s[N];for(let w=M;w<B.length;w++){const I=B[w];if(!E)C(N,w,I);else{const z=P0(e,!0,I),K=c+z;U0(e,K)>o?(p(),C(N,w,I)):(c=K,d=N,A=w+1)}}E&&d===N&&A===B.length&&(d=N+1,A=0)}function R(N){if(v!=="soft-hyphen")return!1;const M=s[N];if(M==null)return!1;const{fitCount:B,fittedWidth:w}=I0(M,c,t,l,i,e.letterSpacing);return B===0?!1:(c=w,d=N,A=B,f(),B===M.length?(d=N+1,A=0,!0):(p(N,B,w+i),y(N,B),!0))}function V(N){F++,n?.(0,N.startSegmentIndex,0,N.consumedEndSegmentIndex,0),f()}for(let N=0;N<a.length;N++){const M=a[N];if(M.startSegmentIndex===M.endSegmentIndex){V(M);continue}E=!1,c=0,m=M.startSegmentIndex,S=0,d=M.startSegmentIndex,A=0,f();let B=M.startSegmentIndex;for(;B<M.endSegmentIndex&&!(!E&&(B=xt(e,B,M.endSegmentIndex),B>=M.endSegmentIndex));){const w=x[B],I=st(w),z=W0(e,E,B),K=w==="tab"?y0(c+z,e.tabStopAdvance):r[B],ne=z+K,Ee=T0(e,w,B,z,K);if(w==="soft-hyphen"){E&&(d=B+1,A=0,L=B+1,h=c+i,O=c+i,v=w),B++;continue}if(!E){Ee>o&&s[B]!==null?y(B,0):g(B,K),_(w,I,B,K,z,ne),B++;continue}if(c+Ee>o){const it=c+Ve(e,w,B,z),lt=c+Ke(e,w,B,z,K);if(v==="soft-hyphen"&&u.preferEarlySoftHyphenBreak&&h<=o){p(L,0,O);continue}if(v==="soft-hyphen"&&R(B)){B++;continue}if(I&&it<=o){D(B,ne),p(B+1,0,lt),B++;continue}if(L>=0&&h<=o){if(d>L||d===L&&A>0){p();continue}const _e=L;p(_e,0,O),B=_e;continue}if(Ee>o&&s[B]!==null){p(),y(B,0),B++;continue}p();continue}D(B,ne),_(w,I,B,K,z,ne),B++}if(E){const w=L===M.consumedEndSegmentIndex?O:c;p(M.consumedEndSegmentIndex,0,w)}}return F}let he=null,He=new WeakMap;function j0(){return he===null&&(he=new Intl.Segmenter(void 0,{granularity:"grapheme"})),he}function Je(e,t,n){let r=n.get(e);if(r!==void 0)return r;r=[];const x=j0();for(const s of x.segment(t[e]))r.push(s.segment);return n.set(e,r),r}function G0(e,t,n,r){return r>0&&e[r-1]==="soft-hyphen"&&!(t===r&&n>0)}function qe(e,t,n,r){for(let x=n;x<r;x++)e+=t[x];return e}function V0(e){let t=He.get(e);return t!==void 0||(t=new Map,He.set(e,t)),t}function K0(e,t,n,r,x,s){let i="";const a=G0(e.kinds,n,r,x);for(let u=n;u<x;u++)if(!(e.kinds[u]==="soft-hyphen"||e.kinds[u]==="hard-break"))if(u===n&&r>0){const l=Je(u,e.segments,t);i=qe(i,l,r,l.length)}else i+=e.segments[u];if(s>0){a&&(i+="-");const u=Je(x,e.segments,t);i=qe(i,u,n===x?r:0,s)}else a&&(i+="-");return i}let Ce=null;function H0(){return Ce===null&&(Ce=new Intl.Segmenter(void 0,{granularity:"grapheme"})),Ce}function J0(e){return{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],letterSpacing:0,spacingGraphemeCounts:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[],segments:[]}}function q0(e,t){const n=[];let r=[],x=0,s=!1,i=!1,a=!1;function u(){r.length!==0&&(n.push({text:r.length===1?r[0]:r.join(""),start:x}),r=[],s=!1,i=!1,a=!1)}function l(F,c,E){r=[F],x=c,s=E,i=Me(F),a=de.has(F)}function o(F,c){r.push(F),s=s||c;const E=Me(F);F.length===1&&ee.has(F)?i=i||E:i=E,a=!1}for(const F of H0().segment(e)){const c=F.segment,E=Z(c);if(r.length===0){l(c,F.index,E);continue}if(a||ve.has(c)||ee.has(c)||t.carryCJKAfterClosingQuote&&E&&i){o(c,E);continue}if(!s&&!E){o(c,E);continue}u(),l(c,F.index,E)}return u(),n}function Q0(e,t,n){return e}function Y0(e,t,n,r,x){const s=Se(),{cache:i,emojiCorrection:a}=b0(t,L0(e.normalized)),u=Y("-",Q("-",i),a)+0,o=Y(" ",Q(" ",i),a)*8;if(e.len===0)return J0();const F=[],c=[],E=[],m=[];let S=e.chunks.length<=1&&!0;const d=n?[]:null,A=[],L=[],h=n?[]:null,O=Array.from({length:e.len});function v(C,D,_,y,R,V,N,M){R!=="text"&&R!=="space"&&R!=="zero-width-break"&&(S=!1),F.push(D),c.push(_),E.push(y),m.push(R),d?.push(V),A.push(N),h!==null&&h.push(C)}function f(C,D,_,y,R){const V=Q(C,i),N=Q0(Y(C,V,a)),M=D==="space"||D==="preserved-space"||D==="zero-width-break"?0:N,B=M===0?0:M+0,w=D==="space"||D==="zero-width-break"?0:N;if(R&&y&&C.length>1){let I="sum-graphemes";ue(C)?I="pair-context":s.preferPrefixWidthsForBreakableRuns&&(I="segment-prefixes");const z=w0(C,V,i,a,I);v(C,N,B,w,D,_,z);return}v(C,N,B,w,D,_,null)}for(let C=0;C<e.len;C++){O[C]=F.length;const D=e.texts[C],_=e.isWordLike[C],y=e.kinds[C],R=e.starts[C];if(y==="soft-hyphen"){v(D,0,u,u,y,R,null);continue}if(y==="hard-break"){v(D,0,0,0,y,R,null);continue}if(y==="tab"){v(D,0,0,0,y,R,null);continue}const V=Q(D,i);if(y==="text"&&V.containsCJK){const M=q0(D,s);for(let B=0;B<M.length;B++){const w=M[B];f(w.text,"text",R+w.start,_,!Z(w.text))}continue}f(D,y,R,_,!0)}const p=X0(e.chunks,O,F.length),g=d===null?null:_t(e.normalized,d);return h!==null?{widths:F,lineEndFitAdvances:c,lineEndPaintAdvances:E,kinds:m,simpleLineWalkFastPath:S,segLevels:g,breakableFitAdvances:A,letterSpacing:x,spacingGraphemeCounts:L,discretionaryHyphenWidth:u,tabStopAdvance:o,chunks:p,segments:h}:{widths:F,lineEndFitAdvances:c,lineEndPaintAdvances:E,kinds:m,simpleLineWalkFastPath:S,segLevels:g,breakableFitAdvances:A,letterSpacing:x,spacingGraphemeCounts:L,discretionaryHyphenWidth:u,tabStopAdvance:o,chunks:p}}function X0(e,t,n){const r=[];for(let x=0;x<e.length;x++){const s=e[x],i=s.startSegmentIndex<t.length?t[s.startSegmentIndex]:n,a=s.endSegmentIndex<t.length?t[s.endSegmentIndex]:n,u=s.consumedEndSegmentIndex<t.length?t[s.consumedEndSegmentIndex]:n;r.push({startSegmentIndex:i,endSegmentIndex:a,consumedEndSegmentIndex:u})}return r}function Z0(e,t,n,r){const x="normal",i=h0(e,Se(),r?.whiteSpace,x);return Y0(i,t,n,x,0)}function en(e,t,n){return Z0(e,t,!0,n)}function tn(e,t,n,r,x,s,i){return{text:K0(e,t,r,x,s,i),width:n,start:{segmentIndex:r,graphemeIndex:x},end:{segmentIndex:s,graphemeIndex:i}}}function nn(e,t,n){const r=[];if(e.widths.length===0)return{lineCount:0,height:0,lines:r};const x=V0(e),s=$0(e,t,(i,a,u,l,o)=>{r.push(tn(e,x,i,a,u,l,o))});return{lineCount:s,height:s*n,lines:r}}const sn={class:"flex-1 text-sm text-[var(--el-text-color-primary)] whitespace-nowrap"},xn="14px Inter",rn=te({__name:"InfoList",props:{infoList:{}},setup(e){const t=e,n=q(()=>{if(!t.infoList||t.infoList.length===0)return 80;let r=0;for(const x of t.infoList){const s=en(x.label,xn),{lines:i}=nn(s,1e3,20);i.length>0&&(r=Math.max(r,i[0].width))}return Math.ceil(r+16)});return(r,x)=>{const s=De;return j(),le("div",null,[(j(!0),le(Et,null,pt(e.infoList,i=>(j(),le("div",{key:i.key,class:"flex items-center py-3 border-b border-[var(--el-border-color-lighter)] last:border-b-0"},[W("span",{class:"text-sm text-[var(--el-text-color-secondary)] whitespace-nowrap",style:At({width:n.value+"px"})},$(i.label),5),W("span",sn,$(i.value||i.defaultValue),1),i.handlerText?(j(),X(s,{key:0,link:"",type:"primary",onClick:a=>i.onHandler?.()},{default:T(()=>[ae($(i.handlerText),1)]),_:2},1032,["onClick"])):ht("",!0)]))),128))])}}});function ln(e){const n=new DOMParser().parseFromString(e,"text/xml");return{code:n.querySelector("Code")?.textContent||"",message:n.querySelector("Message")?.textContent||"",maxSize:n.querySelector("MaxSizeAllowed")?.textContent||"",proposedSize:n.querySelector("ProposedSize")?.textContent||""}}const on={class:"p-2"},an={class:"flex gap-2 flex-1"},un={class:"flex gap-2 flex-1"},cn=te({__name:"EmailDialog",setup(e,{expose:t}){const{t:n}=ie(),r=ce(),x={OLD:"old",NEW:"new"},s=U(!1),i=U({}),a=U({}),u=U({onSubmit:()=>{o()},form:{labelWidth:"auto"},submitBtn:{loading:!1}}),l=q(()=>[{type:"input",field:"email",title:n("user.oldEmail"),value:r?.userInfo?.email,validate:[{required:!0,message:n("user.pleaseInputOldEmail"),trigger:"blur"},{validator:(S,d,A)=>{me.isEmail(d)?A():A(new Error(n("user.pleaseInputCorrectEmail")))},trigger:"blur"}],props:{disabled:!0}},{type:"slotAuthCodeOld",field:"authCode",title:n("user.oldAuthCode"),validate:[{required:!0,message:n("user.pleaseInputAuthCode"),trigger:"blur"}]},{type:"input",field:"newEmail",title:n("user.newEmail"),value:"",validate:[{required:!0,message:n("user.pleaseInputNewEmail"),trigger:"blur"},{validator:(S,d,A)=>{me.isEmail(d)?A():A(new Error(n("user.pleaseInputCorrectEmail")))},trigger:"blur"}],props:{placeholder:n("user.pleaseInputNewEmail")}},{type:"slotAuthCodeNew",field:"newAuthCode",title:n("user.newAuthCode"),validate:[{required:!0,message:n("user.pleaseInputNewAuthCode"),trigger:"blur"}]}]);async function o(){u.value.submitBtn.loading=!0,H.v1User.usercontrollerUpdateemail(a.value).then(()=>{P.success(n("user.emailModified")),window?.umami?.track(J.USER_UPDATE_EMAIL_SUCCESS),r.setEmail(a.value.newEmail),m()}).catch(S=>{window?.umami?.track(J.USER_UPDATE_EMAIL_FAILED,{error:String(S)})}).finally(()=>{u.value.submitBtn.loading=!1})}function F(S,{end:d,startCountdown:A}){S===x.OLD?i.value.validateField("email").then(async()=>{await H.v1Email.emailcontrollerSendcode({email:a.value.email}).then(()=>{P.success(n("message.success.sendAuthCode")),A()})}).finally(()=>{d()}):S===x.NEW&&i.value.validateField("newEmail").then(async()=>{await H.v1Email.emailcontrollerSendcode({email:a.value.newEmail}).then(()=>{P.success(n("user.newAuthCodeSent")),A()})}).finally(()=>{d()})}function c(S){return n(`formCreate.${S}`)}function E(){s.value=!0}function m(){s.value=!1}return t({open:E,close:m}),(S,d)=>{const A=Ye,L=oe("form-create");return j(),X(k(Fe),{modelValue:s.value,"onUpdate:modelValue":d[4]||(d[4]=h=>s.value=h),"show-close":!0,width:"500px"},{default:T(()=>[W("div",on,[b(L,{modelValue:a.value,"onUpdate:modelValue":d[2]||(d[2]=h=>a.value=h),api:i.value,"onUpdate:api":d[3]||(d[3]=h=>i.value=h),rule:l.value,option:u.value,t:c},{"type-slotAuthCodeOld":T(h=>[W("div",an,[b(A,{"model-value":String(h.model.value??""),class:"flex-1",placeholder:k(n)("user.pleaseInputAuthCode"),onInput:O=>h.model.callback(O)},null,8,["model-value","placeholder","onInput"]),b(k(Be),{text:k(n)("user.getAuthCode"),"countdown-text":"user.resendAfterSeconds",duration:60,onSend:d[0]||(d[0]=O=>F(x.OLD,O))},null,8,["text"])])]),"type-slotAuthCodeNew":T(h=>[W("div",un,[b(A,{"model-value":String(h.model.value??""),class:"flex-1",placeholder:k(n)("user.pleaseInputNewAuthCode"),onInput:O=>h.model.callback(O)},null,8,["model-value","placeholder","onInput"]),b(k(Be),{text:k(n)("user.getAuthCode"),"countdown-text":"user.resendAfterSeconds",duration:60,onSend:d[1]||(d[1]=O=>F(x.NEW,O))},null,8,["text"])])]),_:1},8,["modelValue","api","rule","option"])])]),_:1},8,["modelValue"])}}}),Fn={class:"p-2"},fn={class:"flex gap-2 flex-1"},dn=te({__name:"PasswordDialog",setup(e,{expose:t}){const{t:n}=ie(),r=ce(),x=re("baseForm"),s=U(!1),i=U({}),a=U({}),u=U({onSubmit:()=>{o()},form:{labelWidth:"auto"},submitBtn:{loading:!1}}),l=q(()=>[{type:"input",field:"newPassword",title:r.isPasswordSet?n("user.newPassword"):n("user.setPassword"),value:"",props:{placeholder:n("user.pleaseInputNewPassword"),type:"password",showPassword:!0,autocomplete:"new-password"},validate:[{required:!0,message:n("user.pleaseInputNewPassword"),trigger:"blur"}]},{type:"input",field:"confirmNewPassword",title:r.isPasswordSet?n("user.confirmNewPassword"):n("user.confirmPassword"),value:"",props:{placeholder:n("user.pleaseConfirmNewPassword"),type:"password",showPassword:!0,autocomplete:"new-password"},validate:[{required:!0,message:n("user.pleaseConfirmNewPassword"),trigger:"blur"}]},{type:"input",field:"email",title:n("user.email"),value:r?.userInfo?.email,props:{disabled:!0},validate:[{required:!0,message:n("user.pleaseInputEmail"),trigger:"blur"}]},{type:"slotAuthCode",field:"emailAuthCode",title:n("user.authCode"),value:""}]);async function o(){u.value.submitBtn.loading=!0;const S={newPassword:ye(a.value.newPassword),confirmNewPassword:ye(a.value.confirmNewPassword),email:a.value.email,emailAuthCode:a.value.emailAuthCode};H.v1User.usercontrollerChangepassword(S).then(()=>{P.success(n("user.passwordModified")),window?.umami?.track(J.USER_UPDATE_PASSWORD_SUCCESS),x.value?.resetFields(),r.setIsPasswordSet(!0),m()}).catch(d=>{window?.umami?.track(J.USER_UPDATE_PASSWORD_FAILED,{error:String(d)})}).finally(()=>{u.value.submitBtn.loading=!1})}function F({end:S,startCountdown:d}){i.value.validateField("email").then(async()=>{await H.v1Email.emailcontrollerSendcode({email:a.value.email}).then(()=>{P.success(n("message.success.sendAuthCode")),d()})}).finally(()=>{S()})}function c(S){return n(`formCreate.${S}`)}function E(){s.value=!0}function m(){s.value=!1}return t({open:E,close:m}),(S,d)=>{const A=Ye,L=oe("form-create");return j(),X(k(Fe),{modelValue:s.value,"onUpdate:modelValue":d[2]||(d[2]=h=>s.value=h),"show-close":!0,width:"500px"},{default:T(()=>[W("div",Fn,[b(L,{modelValue:a.value,"onUpdate:modelValue":d[0]||(d[0]=h=>a.value=h),api:i.value,"onUpdate:api":d[1]||(d[1]=h=>i.value=h),rule:l.value,option:u.value,t:c},{"type-slotAuthCode":T(h=>[W("div",fn,[b(A,{"model-value":String(h.model.value),class:"flex-1",placeholder:k(n)("user.pleaseInputAuthCode"),onInput:O=>h.model.callback(O)},null,8,["model-value","placeholder","onInput"]),b(k(Be),{text:k(n)("user.getAuthCode"),"countdown-text":"user.resendAfterSeconds",duration:60,onSend:F},null,8,["text"])])]),_:1},8,["modelValue","api","rule","option"])])]),_:1},8,["modelValue"])}}}),Nn={class:"p-2"},Sn=te({__name:"NicknameDialog",setup(e,{expose:t}){const{t:n}=ie(),r=ce(),x=Le(),s=U(!1),i=U({onSubmit:()=>{l()},form:{labelWidth:"auto"},submitBtn:{loading:!1}}),a=U({}),u=q(()=>[{type:"input",field:"nickname",title:n("user.nickname"),value:r.userInfo.nickname,props:{placeholder:n("user.pleaseInputNickname")},validate:[{required:!0,message:n("user.pleaseInputNickname"),trigger:"blur"},{min:3,max:10,message:n("team.charLength",{min:2,max:10}),trigger:"blur"}]}]);async function l(){if(i.value.submitBtn.loading=!0,a.value.nickname===r.userInfo.nickname){P.success(n("message.success.update")),i.value.submitBtn.loading=!1,c();return}H.v1User.usercontrollerChangenickname({nickname:a.value.nickname}).then(()=>{r.setNickname(a.value.nickname),x.updateNickname(a.value.nickname),P.success(n("message.success.update")),window?.umami?.track(J.USER_UPDATE_NICKNAME_SUCCESS),c()}).catch(E=>{window?.umami?.track(J.USER_UPDATE_NICKNAME_FAILED,{error:String(E)})}).finally(()=>{i.value.submitBtn.loading=!1})}function o(E){return n(`formCreate.${E}`)}function F(){s.value=!0}function c(){s.value=!1}return t({open:F,close:c}),(E,m)=>{const S=oe("form-create");return j(),X(k(Fe),{modelValue:s.value,"onUpdate:modelValue":m[1]||(m[1]=d=>s.value=d),width:"400px"},{default:T(()=>[W("div",Nn,[b(S,{modelValue:a.value,"onUpdate:modelValue":m[0]||(m[0]=d=>a.value=d),rule:u.value,option:i.value,t:o},null,8,["modelValue","rule","option"])])]),_:1},8,["modelValue"])}}}),En=te({__name:"index",props:{cover:{type:Boolean}},setup(e){const{t}=ie(),n=e,r=gt(),x=Ct(),s=mt(),i=(S,d)=>{c.value.fileList&&(c.value.fileList=d),S?.raw&&(o.value=URL.createObjectURL(S.raw))},a=S=>{P.error(S.message)},l={autoUpload:!1,cover:!1,onChange:i,onExceed:(S,d)=>{if(c.value.cover&&c?.value?.limit===1){F.value?.clearFiles();const A=S[0];A.uid=at(),F.value.handleStart(A);return}P.warning(t("message.fileExceed",{limit:c?.value?.limit,selected:S.length,total:S.length+d.length}))},beforeUpload:rt(),onError:a},o=U(null),F=U(),c=q(()=>({...l,...me.convertKeysToCamelCase(x),...n})),E=q(()=>({...s,default:s.default?S=>s.default({...S,fileUrl:o.value}):void 0}));function m(S){F.value=S,r&&(r.exposed=S||{},r.exposeProxy=S||{})}return(S,d)=>(j(),X(Bt(Mt(k(ot),{...c.value,ref:m},E.value))))}}),{i18n:pn}=Nt,Qe=e=>e.size/1024/1024>20?(P.error(pn.global.t("message.validate.fileMaxSize",{size:20})),!1):!0;function rt(e={}){const{mode:t="extend",custom:n}=e;return r=>t==="override"&&n?n(r):t==="extend"?Qe(r)?n?n(r):!0:!1:Qe(r)}function An(e,t){const n=t.name.slice(t.name.lastIndexOf(".")+1).toLowerCase(),r=e.dir+e.key+"."+n,x=new FormData;return x.append("success_action_status","200"),x.append("policy",e.policy),x.append("x-oss-signature",e.signature),x.append("x-oss-signature-version",e.x_oss_signature_version),x.append("x-oss-credential",e.x_oss_credential),x.append("x-oss-date",e.x_oss_date),x.append("key",r),x.append("x-oss-security-token",e.security_token),x.append("Cache-Control","public, max-age=31536000"),x.append("file",t),{host:e.host,filePath:r,formData:x}}async function hn(e,t){return fetch(e,{method:"POST",body:t})}const Cn=["src"],mn=te({__name:"AvatarDialog",setup(e,{expose:t}){const{t:n}=ie(),r=Le(),x=U([]),s=U(!1),i=re("avatarUpload"),a=U(),u=q(()=>({limit:1,cover:!0,onError:o,beforeUpload:l,showFileList:!1,httpRequest:m})),l=rt({custom(A){return A.type.startsWith("image/")?!0:(P.error(n("message.validate.imageFormat")),a.value?.(),!1)}});function o(A){a.value?.(),P.error(A.message)}async function F(A){if(A.start(),a.value=A.end,!x.value||x.value.length===0){P.warning(n("message.validate.pleaseSelectFile")),a.value();return}i.value?.submit()}function c(A){H.v1User.usercontrollerChangeavatar({avatar:A}).then(()=>{r.updateAvatar(A),d(),P.success(n("user.avatarModified")),window?.umami?.track(J.USER_UPDATE_AVATAR_SUCCESS)}).catch(L=>{window?.umami?.track(J.USER_UPDATE_AVATAR_FAILED,{error:String(L)})}).finally(()=>{a.value?.()})}function E(){i.value?.clearFiles()}async function m(A){const L=await H.v1Oss.osscontrollerCompossdir(),{imageDir:h}=L.data,O=await H.v1Oss.osscontrollerPutpolicy({type:h});if(O.code!==0||!O.data)return P.error(O.message);const{host:v,filePath:f,formData:p}=An(O.data,A.file),g=await hn(v,p);if(g.ok)c(f);else{const C=await g.text(),D=ln(C);P.error(D.message),a.value?.()}}function S(){s.value=!0}function d(){s.value=!1,E()}return t({open:S,close:d}),(A,L)=>{const h=oe("Icon"),O=ct,v=De,f=ut;return j(),X(k(Fe),{modelValue:s.value,"onUpdate:modelValue":L[1]||(L[1]=p=>s.value=p),width:"400px",onClose:E},{default:T(()=>[b(f,{"label-width":"auto"},{default:T(()=>[b(O,{label:k(n)("user.avatar")},{default:T(()=>[b(k(En),Dt({ref:"avatarUpload","file-list":x.value,"onUpdate:fileList":L[0]||(L[0]=p=>x.value=p),class:"size-[70px] border border-gray-300 rounded-sm flex justify-center items-center upload-container"},u.value),{default:T(({fileUrl:p})=>[p?(j(),le("img",{key:0,src:p,class:"size-full"},null,8,Cn)):(j(),X(h,{key:1,icon:"material-symbols:add-2-rounded","font-size":"2rem"}))]),_:1},16,["file-list"])]),_:1},8,["label"]),b(O,null,{default:T(()=>[b(k(Xe),null,{default:T(({instance:p,loading:g})=>[b(v,{type:"primary",loading:g,onClick:C=>F(p)},{default:T(()=>[ae($(k(n)("common.submit")),1)]),_:1},8,["loading","onClick"])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}}}),Bn=St(mn,[["__scopeId","data-v-6ea47d01"]]),Mn={class:"h-full p-[10px]"},gn={class:"grid grid-cols-[8fr_13fr] gap-[24px] max-w-[1400px] mx-auto my-0"},Dn={class:"text-center flex flex-col items-center gap-2 h-[120px]"},Ln={class:"flex flex-col gap-10"},vn={class:"flex items-center"},On={class:"size-[48px] flex items-center justify-center"},kn={class:"flex-1"},wn={class:"text-sm text-gray-500"},bn={class:"flex items-center"},_n={class:"size-[48px] flex items-center justify-center"},yn={class:"flex-1"},Wn={class:"text-sm text-gray-500"},Jn=te({__name:"index",setup(e){const{t}=ie(),n=ce(),r=Le(),x=q(()=>n.userInfo),s=re("emailDialog"),i=re("passwordDialog"),a=re("nicknameDialog"),u=re("avatarDialog"),l=F=>{if(!n.isPasswordSet){P.error(t("user.pleaseSetPasswordFirst"));return}F.start(),n.setAllowEmailLogin(!n.isAllowEmailLogin).then(()=>{P.success(n.isAllowEmailLogin?t("user.emailLoginEnabled"):t("user.emailLoginDisabled")),window?.umami?.track(J.USER_EMAIL_LOGIN_TOGGLE,{enabled:n.isAllowEmailLogin})}).finally(()=>{F.end()})},o=q(()=>[{key:"account",label:t("user.account"),value:x.value?.account},{key:"nickname",label:t("user.nickname"),value:x.value?.nickname,defaultValue:"--",editable:!0,handlerText:t("common.edit"),onHandler:()=>a.value?.open()},{key:"email",label:t("user.email"),value:x.value?.email,defaultValue:t("user.notBound"),editable:!0,handlerText:x.value?.email?t("user.change"):t("user.bind"),onHandler:()=>s.value?.open()},{key:"createTime",label:t("user.registerTime"),value:x.value?.createdAt?vt(x.value.createdAt).format("YYYY-MM-DD"):"--"}]);return Lt(async()=>{n.initUserInfo(),H.v1User.usercontrollerCheckpassword().then(F=>{n.setIsPasswordSet(F.data.isSetPassword)})}),(F,c)=>{const E=Ft,m=ft,S=oe("Icon"),d=De,A=dt;return j(),le("div",Mn,[W("div",gn,[b(m,{class:"col-start-1 row-span-2 row-start-1"},{header:T(()=>[W("span",null,$(k(t)("user.basicInfo")),1)]),default:T(()=>[W("div",Dn,[b(Ot,{size:80,shape:"square",src:k(r).avatar,text:k(r).avatarStr,class:"cursor-pointer",onClick:c[0]||(c[0]=L=>u.value?.open())},{default:T(()=>[ae($(x.value?.nickname?.charAt(0)||"U"),1)]),_:1},8,["src","text"]),W("h3",null,$(x.value?.account),1)]),b(E),b(k(rn),{"info-list":o.value},null,8,["info-list"])]),_:1}),b(m,{class:"col-start-2"},{header:T(()=>[W("span",null,$(k(t)("user.securitySettings")),1)]),default:T(()=>[W("div",Ln,[W("div",vn,[W("div",On,[b(S,{icon:"material-symbols:lock"})]),W("div",kn,[W("h4",null,$(k(t)("user.loginPassword")),1),W("p",wn,$(k(t)("user.passwordTip")),1)]),b(d,{type:"primary",onClick:c[1]||(c[1]=L=>i.value?.open())},{default:T(()=>[ae($(k(n)?.isPasswordSet?k(t)("user.changePassword"):k(t)("user.setPassword")),1)]),_:1})]),W("div",bn,[W("div",_n,[b(S,{icon:"material-symbols:mark-email-unread"})]),W("div",yn,[W("h4",null,$(k(t)("user.emailLogin")),1),W("p",Wn,$(k(t)("user.emailLoginTip")),1)]),b(k(Xe),null,{default:T(({instance:L,loading:h})=>[b(A,{loading:h,"model-value":k(n).isAllowEmailLogin,onChange:O=>l(L)},null,8,["loading","model-value","onChange"])]),_:1})])])]),_:1})]),b(cn,{ref:"emailDialog"},null,512),b(dn,{ref:"passwordDialog"},null,512),b(Sn,{ref:"nicknameDialog"},null,512),b(Bn,{ref:"avatarDialog"},null,512)])}}});export{Jn as default};
@@ -1 +1 @@
1
- import{f as $,l as O,D as R,e as T,U as B}from"./vendor-ui-CGT0cG1n.js";import{m,A as N,e as F,r as w}from"./index-CRPDDq-V.js";import{v as b,aA as k,ab as L,l as z,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 K,a7 as W,aj as q,j as G,af as H,g}from"./vendor-core-BKehvho7.js";import{c as X}from"./useCompMetaLocalStore-BKTMp_k8.js";import{B as Y,_ as J}from"./index.vue_vue_type_script_setup_true_lang-C2f6_gwm.js";/* empty css *//* empty css */import{_ as Q}from"./index.vue_vue_type_script_setup_true_lang-BOye9Q0l.js";import{u as Z}from"./useVscodeOpen--nBM6CZ-.js";import{_ as ee}from"./PanelBackground.vue_vue_type_script_setup_true_lang-BELCrrRh.js";import{_ as oe}from"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-pswB5SUz.js";import"./index.vue_vue_type_style_index_0_lang-_EGM5AW2.js";import"./core-CcVTMiBP.js";import"./useTeamHeaders-DxHN7-t0.js";import"./index.vue_vue_type_script_setup_true_lang-BcUGs_WV.js";import"./index-5NbrFL1v.js";import"./useCacheOssStore-OAoLDVbw.js";import"./BaseDialog.vue_vue_type_script_setup_true_lang-BROcUfEh.js";import"./useMessage-8Gi-vx-A.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(),z("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=K(),P=N(),{compId:c}=p.params,r=X(c)(),i=H(!1),o=g(()=>r.detail),u=g(()=>Object.keys(o.value??{}).length>0),d=g(()=>{const n=F.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,A=_.map(S=>S.name),E=await w.v1Module.modulecontrollerPrebuild({deps:A}),{entryNameToFile:V={}}=E.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 W(async()=>{u.value||await D(),I()}),(n,y)=>{const _=q("Icon"),A=T,E=B;return L(),G(E,{"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(A,{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
+ import{f as $,l as O,D as R,e as T,U as B}from"./vendor-ui-CGT0cG1n.js";import{m,A as N,e as F,r as w}from"./index-D88CvPWT.js";import{v as b,aA as k,ab as L,l as z,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 K,a7 as W,aj as q,j as G,af as H,g}from"./vendor-core-BKehvho7.js";import{c as X}from"./useCompMetaLocalStore-BKTMp_k8.js";import{B as Y,_ as J}from"./index.vue_vue_type_script_setup_true_lang-D9A1RF52.js";/* empty css *//* empty css */import{_ as Q}from"./index.vue_vue_type_script_setup_true_lang-DTC1Qz-g.js";import{u as Z}from"./useVscodeOpen-BBdyQ3W2.js";import{_ as ee}from"./PanelBackground.vue_vue_type_script_setup_true_lang-BELCrrRh.js";import{_ as oe}from"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-pswB5SUz.js";import"./index.vue_vue_type_style_index_0_lang-BZ1LzI3x.js";import"./core-CcVTMiBP.js";import"./useTeamHeaders-DxHN7-t0.js";import"./index.vue_vue_type_script_setup_true_lang-CmmAEEXC.js";import"./index-B9hCLAJk.js";import"./useCacheOssStore-OAoLDVbw.js";import"./BaseDialog.vue_vue_type_script_setup_true_lang-BROcUfEh.js";import"./useMessage-Cbhfk7Nk.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(),z("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=K(),P=N(),{compId:c}=p.params,r=X(c)(),i=H(!1),o=g(()=>r.detail),u=g(()=>Object.keys(o.value??{}).length>0),d=g(()=>{const n=F.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,A=_.map(S=>S.name),E=await w.v1Module.modulecontrollerPrebuild({deps:A}),{entryNameToFile:V={}}=E.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 W(async()=>{u.value||await D(),I()}),(n,y)=>{const _=q("Icon"),A=T,E=B;return L(),G(E,{"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(A,{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{U as a}from"./vendor-ui-CGT0cG1n.js";import"./index-CRPDDq-V.js";import{_ as s}from"./index.vue_vue_type_style_index_0_lang-_EGM5AW2.js";import{v as c,aC as n,ab as l,j as m,aO as u,r as i,g as p}from"./vendor-core-BKehvho7.js";import"./core-CcVTMiBP.js";const h=c({__name:"index",setup(_){const o=n(),t=p(()=>{const{markdownSrc:r}=o.query;return r||""});return(r,f)=>{const e=a;return l(),m(e,{"wrap-class":"md-container",class:"size-full w-[1300px] mx-auto"},{default:u(()=>[i(s,{src:t.value,"show-toc":!0,scrollContainer:".md-container"},null,8,["src"])]),_:1})}}});export{h as default};
1
+ import{U as a}from"./vendor-ui-CGT0cG1n.js";import"./index-D88CvPWT.js";import{_ as s}from"./index.vue_vue_type_style_index_0_lang-BZ1LzI3x.js";import{v as c,aC as n,ab as l,j as m,aO as u,r as i,g as p}from"./vendor-core-BKehvho7.js";import"./core-CcVTMiBP.js";const h=c({__name:"index",setup(_){const o=n(),t=p(()=>{const{markdownSrc:r}=o.query;return r||""});return(r,f)=>{const e=a;return l(),m(e,{"wrap-class":"md-container",class:"size-full w-[1300px] mx-auto"},{default:u(()=>[i(s,{src:t.value,"show-toc":!0,scrollContainer:".md-container"},null,8,["src"])]),_:1})}}});export{h as default};
@@ -0,0 +1 @@
1
+ import{aH as I,b as x,W as D,aJ as P,U}from"./vendor-ui-CGT0cG1n.js";import{z as F,m as p,T as G,i as m,u as d,B as N,t as f}from"./index-D88CvPWT.js";import{c as B,a as K}from"./index.vue_vue_type_script_setup_true_lang-CmmAEEXC.js";import{v as H,aA as M,y as $,aC as z,aD as J,ac as _,aF as V,af as Y,g as r,ao as g,Y as Q,a9 as W,aP as X,ax as l,ab as j,l as Z,r as u,aO as w}from"./vendor-core-BKehvho7.js";import{u as q}from"./useKeyword-CjhhChz4.js";import"./index-B9hCLAJk.js";import"./useCompMetaLocalStore-BKTMp_k8.js";import"./useCacheOssStore-OAoLDVbw.js";import"./useVscodeOpen-BBdyQ3W2.js";import"./useTeamHeaders-DxHN7-t0.js";/* empty css */import"./BaseDialog.vue_vue_type_script_setup_true_lang-BROcUfEh.js";import"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-pswB5SUz.js";import"./useMessage-Cbhfk7Nk.js";const ee={class:"size-full p-[10px] pr-0"},ge=H({__name:"index",setup(ae){const{t:n}=M(),h=$()?.uid,v=z(),T=J(),y=F(),a=B(v.path)();_(p.PROVIDE_KEY_COMP_LIST_STORE,a);const C=new Map;_(p.PROVIDE_KEY_CALLBACKS,C);const i=I(`${G}`,"XTTJ"),E=V("compIframeContainer"),S=r(()=>f.DEFAULT_TAG_GROUP.map(e=>({label:n(e.label),value:e.value}))),c=Y({data:[],search:{column:[{prop:"keyword",component:g(x),label:r(()=>n("common.keyword")),value:"",autoQuery:!1,attributes:{placeholder:r(()=>n("comp.keywordPlaceholder")),fetchSuggestions:R,triggerOnFocus:!1,style:"width: 400px",fitInputWidth:!0}},{prop:"tag",component:g(D),label:r(()=>n("common.filter")),value:i.value,attributes:{options:S,style:"width: 200px",onChange:e=>{i.value=e,window?.umami?.track(m.FILTER_TAG,{tag:e,page:"share"})}}}]},pagination:{total:0,attributes:{pageSizes:[10,20,30]}},autoLoading:!1,fetchData:L}),b=r(()=>c.value?.search?.column[0]?.value??"");q(b,E);function k(e){return e===f.DEFAULT_TAG_GROUP[0].value?JSON.stringify(y?.deps||[]):"[]"}function R(e,o){if(e.length<=1)return o([]);d.v1Keyword.keywordcontrollerQuerykeywordscomp({keyword:e,type:"compShare"}).then(s=>{const{keywords:t=[]}=s.data||{};o(t)})}async function L(e){a.renderList([]),await Q(),a.setLoading(!0),e.keyword&&window?.umami?.track(m.SEARCH_COMPONENT,{keyword:e.keyword,tag:i.value,page:"share"});const o={...e,deps:k(i.value)},s=await d.v1Comp.compcontrollerComps({...o}),{rows:t,total:O}=s.data??{};a.renderList(t??[]),c.value.pagination.total=O??0,c.value.data=t??[]}function A(e){T.push({path:`/preview/${e}`})}return W(()=>{a.$reset()}),(e,o)=>{const s=U,t=P;return X((j(),Z("div",ee,[u(l(N),{tableConfig:c.value},{table:w(()=>[u(s,{always:"",wrapClass:"pr-[10px]"},{default:w(()=>[u(K,{ref:"compIframeContainer",iuid:l(h),compType:l(p).IFRAME_ROUTES.CONTAINER.SHARE,onPreview:A},null,8,["iuid","compType"])]),_:1})]),_:1},8,["tableConfig"])])),[[t,l(a).loading]])}}});export{ge as default};
@@ -0,0 +1 @@
1
+ import{aJ as x,b as M,g as B,F as N,K}from"./vendor-ui-CGT0cG1n.js";import{m as n,B as $,u as m,i as T}from"./index-D88CvPWT.js";import{v as F,y as G,aA as Y,aC as H,aD as V,ac as _,aF as E,a9 as z,aP as Q,ax as p,ab as J,l as W,r as g,aO as j,af as X,g as i,ao as C,Y as Z}from"./vendor-core-BKehvho7.js";import{c as q,b as ee,a as oe}from"./index.vue_vue_type_script_setup_true_lang-CmmAEEXC.js";import{c as te}from"./useCompEditStore-DhXxYAqN.js";import{_ as ae}from"./index.vue_vue_type_style_index_0_lang-BipgSalp.js";import{u as re}from"./useTeamHeaders-DxHN7-t0.js";import{u as ne}from"./useKeyword-CjhhChz4.js";import"./index-B9hCLAJk.js";import"./useCompMetaLocalStore-BKTMp_k8.js";import"./useCacheOssStore-OAoLDVbw.js";import"./useVscodeOpen-BBdyQ3W2.js";/* empty css */import"./BaseDialog.vue_vue_type_script_setup_true_lang-BROcUfEh.js";import"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-pswB5SUz.js";import"./useMessage-Cbhfk7Nk.js";/* empty css */import"./v4-EwEgHOG0.js";import"./index.vue_vue_type_style_index_0_lang-BZ1LzI3x.js";import"./core-CcVTMiBP.js";import"./PanelBackground.vue_vue_type_script_setup_true_lang-BELCrrRh.js";import"./BaseSegmented.vue_vue_type_script_setup_true_lang-DU79Plk1.js";import"./LoadingWrapper.vue_vue_type_script_setup_true_lang-kJcgjuK5.js";const se={class:"size-full overflow-hidden"},Pe=F({__name:"index",setup(ie){const y=G()?.uid,{t:a}=Y(),h=H(),v=V(),{headers:l,teamId:d}=re(),r=q(`${h.path}_${n.SCOPE_ID_TEAM_COMP_LIST}`)();_(n.PROVIDE_KEY_COMP_LIST_STORE,r);const I=new Map;_(n.PROVIDE_KEY_CALLBACKS,I);const S=te(h.path,n.DIALOG_TYPE_EDIT)();_(n.PROVIDE_KEY_COMP_EDIT_STORE,S);const w=ee(d)(),k=E("compUpdateDialog"),L=E("compIframeContainer"),u=X({data:[],search:{column:[{prop:"keyword",component:C(M),label:i(()=>a("common.keyword")),value:"",autoQuery:!1,attributes:{placeholder:i(()=>a("comp.keywordPlaceholder")),fetchSuggestions:R,triggerOnFocus:!1,style:"width: 400px",fitInputWidth:!0}},{prop:"group",component:C(B),label:i(()=>a("team.group")),value:"",attributes:{options:i(()=>w.menuGroup),clearable:!0,props:{value:"id",checkStrictly:!0}}}]},pagination:{total:0,attributes:{pageSizes:[10,20,30]}},autoLoading:!1,fetchData:b}),O=i(()=>u.value?.search?.column[0]?.value??"");ne(O,L);function R(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 b(e){r.renderList([]),await Z(),r.setLoading(!0),e.keyword&&window?.umami?.track(T.SEARCH_COMPONENT,{keyword:e.keyword,page:"team"});const{group:o=[]}=e||{};delete e.group,o.length&&window?.umami?.track(T.TEAM_FILTER_GROUP,{teamId:d,group:o});const t=o?.[o.length-1];if(t){let c=w.getSelectedGroupLeafNodes(t);c=c.length===0?[t]:c,e.leafNodeIds=c}const s=await m.v1Team.teamcontrollerTeamcomps({...e,scene:"library"},{headers:l}),{rows:f,total:U}=s.data??{};r.renderList(f??[]),u.value.pagination.total=U??0}function P(e){v.push({path:`/previewTeam/${d}/${e}`})}async function D(e){const o=N.service({fullscreen:!0});try{const t=e,s=await m.v1Team.teamcontrollerCheckcompupdatepermission({compId:t},{headers:l}),{result:f}=s.data||{};if(f==="cannot_update"){K.confirm(a("message.noUpdatePermission"),a("common.info"),{confirmButtonText:a("common.confirm"),cancelButtonText:a("common.cancel"),type:"warning"}).finally(()=>{});return}k.value?.open(t)}finally{o.close()}}function A(e){m.v1Comp.compcontrollerCompdetail({compId:e}).then(o=>{r.updateCompListItemById(e,o.data)})}return z(()=>{r.$reset()}),(e,o)=>{const t=x;return Q((J(),W("div",se,[g(p($),{tableConfig:u.value},{table:j(()=>[g(oe,{ref:"compIframeContainer",iuid:p(y),compType:p(n).IFRAME_ROUTES.CONTAINER.TEAM_ALL,onPreview:P,onUpdate:D},null,8,["iuid","compType"])]),_:1},8,["tableConfig"]),g(ae,{ref:"compUpdateDialog",onUpdateSuccess:A},null,512)])),[[t,p(r).loading]])}}});export{Pe as default};
@@ -1 +1 @@
1
- import{v as u,ab as d,l as _,r as n,ax as f,aC as L,ac as M,a7 as g,aO as w,af as P,g as m}from"./vendor-core-BKehvho7.js";import{c as T}from"./useCompMetaLocalStore-BKTMp_k8.js";import{m as v,r}from"./index-CRPDDq-V.js";import{_ as b}from"./index.vue_vue_type_script_setup_true_lang-BOye9Q0l.js";import{_ as I}from"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-pswB5SUz.js";import"./vendor-ui-CGT0cG1n.js";import"./useVscodeOpen--nBM6CZ-.js";import"./useMessage-8Gi-vx-A.js";const O={class:"size-full"},R=u({__name:"index",props:{version:{},compAttrs:{}},setup(a){return(l,e)=>(d(),_("div",O,[n(b,{compAttrs:a.compAttrs,version:a.version,compType:f(v).IFRAME_ROUTES.ITEM.PREVIEW_LOCAL},null,8,["compAttrs","version","compType"])]))}}),k={class:"size-full"},j=u({__name:"index",setup(a){const l=L(),{compId:e}=l.params,t=T(e)(),h=new Map;M(v.PROVIDE_KEY_CALLBACKS,h);const o=P(!1),s=m(()=>t.detail),A=m(()=>Object.keys(s.value??{}).length>0);async function y(){if(!e)return;o.value=!0;const c=await r.v1Comp.compcontrollerLocalcompdetailbypathhash({fullPathHash:e}),i=await r.v1Comp.compcontrollerDep({compPath:c.data.path}),{thirdParty:p=[]}=i.data,C=p.map(x=>x.name),E=await r.v1Module.modulecontrollerPrebuild({deps:C}),{entryNameToFile:D={}}=E.data;t.setDetail(c.data),t.setDep(p),t.setDepToFile(D),o.value=!1}return g(async()=>{await y()}),(c,i)=>(d(),_("div",k,[n(f(I),{isEmpty:!A.value,loading:o.value,class:"size-full"},{default:w(()=>[n(R,{compAttrs:s.value,version:s.value.version},null,8,["compAttrs","version"])]),_:1},8,["isEmpty","loading"])]))}});export{j as default};
1
+ import{v as u,ab as d,l as _,r as n,ax as f,aC as L,ac as M,a7 as g,aO as w,af as P,g as m}from"./vendor-core-BKehvho7.js";import{c as T}from"./useCompMetaLocalStore-BKTMp_k8.js";import{m as v,r}from"./index-D88CvPWT.js";import{_ as b}from"./index.vue_vue_type_script_setup_true_lang-DTC1Qz-g.js";import{_ as I}from"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-pswB5SUz.js";import"./vendor-ui-CGT0cG1n.js";import"./useVscodeOpen-BBdyQ3W2.js";import"./useMessage-Cbhfk7Nk.js";const O={class:"size-full"},R=u({__name:"index",props:{version:{},compAttrs:{}},setup(a){return(l,e)=>(d(),_("div",O,[n(b,{compAttrs:a.compAttrs,version:a.version,compType:f(v).IFRAME_ROUTES.ITEM.PREVIEW_LOCAL},null,8,["compAttrs","version","compType"])]))}}),k={class:"size-full"},j=u({__name:"index",setup(a){const l=L(),{compId:e}=l.params,t=T(e)(),h=new Map;M(v.PROVIDE_KEY_CALLBACKS,h);const o=P(!1),s=m(()=>t.detail),A=m(()=>Object.keys(s.value??{}).length>0);async function y(){if(!e)return;o.value=!0;const c=await r.v1Comp.compcontrollerLocalcompdetailbypathhash({fullPathHash:e}),i=await r.v1Comp.compcontrollerDep({compPath:c.data.path}),{thirdParty:p=[]}=i.data,C=p.map(x=>x.name),E=await r.v1Module.modulecontrollerPrebuild({deps:C}),{entryNameToFile:D={}}=E.data;t.setDetail(c.data),t.setDep(p),t.setDepToFile(D),o.value=!1}return g(async()=>{await y()}),(c,i)=>(d(),_("div",k,[n(f(I),{isEmpty:!A.value,loading:o.value,class:"size-full"},{default:w(()=>[n(R,{compAttrs:s.value,version:s.value.version},null,8,["compAttrs","version"])]),_:1},8,["isEmpty","loading"])]))}});export{j as default};