ss-component-new 1.3.366 → 1.3.368

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 (101) hide show
  1. package/dist/{MTLLoader-WRN4eUv-.js → MTLLoader-BXo7uAz1.js} +1 -1
  2. package/dist/{MTLLoader-DeGVtVNV.cjs → MTLLoader-HQ9_HPVv.cjs} +1 -1
  3. package/dist/{OrbitControls-DoBQLB3l.js → OrbitControls-BDK5M2Wv.js} +1 -1
  4. package/dist/{OrbitControls-CDPEgixi.cjs → OrbitControls-IbVOWA4j.cjs} +1 -1
  5. package/dist/{URDFLoader-CQUi0qZq.js → URDFLoader-Bg_LFPw1.js} +2 -2
  6. package/dist/{URDFLoader-C0UZqx6e.cjs → URDFLoader-DEhmYKKG.cjs} +1 -1
  7. package/dist/{animationData-C9-G8Pk-.cjs → animationData-BNjx497g.cjs} +1 -1
  8. package/dist/{animationData-agvoKsLi.js → animationData-DbyIBbU3.js} +3 -3
  9. package/dist/{array-BVGvg9oV.cjs → array-RAki5hQ5.cjs} +1 -1
  10. package/dist/{array-Buzpmqxx.js → array-nKLeOF-y.js} +4 -4
  11. package/dist/{clone-CIfRb69s.js → clone-mFCVwr-G.js} +1 -1
  12. package/dist/{eleIcon-BSJV_1ZM.js → eleIcon-CiJIZabf.js} +1 -1
  13. package/dist/{iconfont-BLFoQPNm.cjs → iconfont-gSkE5QnX.cjs} +1 -1
  14. package/dist/{iconfont-BjSu8v7G.js → iconfont-oix54uJK.js} +2 -2
  15. package/dist/{index-BUac8G2O.cjs → index-0AwREool.cjs} +1 -1
  16. package/dist/{index-BVpOApsG.js → index-2cJiyA4I.js} +8 -8
  17. package/dist/{index-WvE1qvnd.cjs → index-B62rzx7R.cjs} +1 -1
  18. package/dist/{index-Drv6LFkE.js → index-B8tt5bqd.js} +2 -2
  19. package/dist/{index-CRWl9Rtz.cjs → index-BEgk9LDj.cjs} +1 -1
  20. package/dist/{index-De3ztqEp.cjs → index-BKl6FwQV.cjs} +1 -1
  21. package/dist/{index-Dkn9zOYg.cjs → index-BLJ-oqRd.cjs} +1 -1
  22. package/dist/{index-CvU3pAZt.cjs → index-BRXK1xrm.cjs} +1 -1
  23. package/dist/{index-CJ4Q3uIn.js → index-BRaaqaJs.js} +2 -2
  24. package/dist/{index-CQSc__8f.js → index-BTn0ktGp.js} +5 -5
  25. package/dist/{index-qLMS_ZyR.js → index-BXP2Ie3L.js} +4 -4
  26. package/dist/{index-9OmDHLTx.js → index-BXP5hSfA.js} +2 -2
  27. package/dist/{index-D5vJAH1x.js → index-B_WpE68k.js} +1 -1
  28. package/dist/{index-TL11JgVE.js → index-BaJXONy1.js} +4 -4
  29. package/dist/{index-B12f3i9a.js → index-Bf6oI_Vt.js} +4 -4
  30. package/dist/{index-CfKeXwiu.js → index-Bi-PYsF7.js} +2 -2
  31. package/dist/{index-Cot4bEbR.cjs → index-BrBW7tRO.cjs} +20 -20
  32. package/dist/{index-BWqvrlth.cjs → index-Bslyl2ID.cjs} +1 -1
  33. package/dist/{index-XIzcfEzL.cjs → index-Btg2_fkL.cjs} +1 -1
  34. package/dist/{index-BLlBVShw.js → index-Bz19ISL6.js} +6 -6
  35. package/dist/{index-oUjLRXiv.cjs → index-CGNYnvO0.cjs} +1 -1
  36. package/dist/{index-mxF0_lfh.js → index-CIGlEa5l.js} +1 -1
  37. package/dist/{index-14QhNETL.js → index-CMFL7zjT.js} +2 -2
  38. package/dist/{index-DzMEiYS6.js → index-CMK4Oemk.js} +2 -2
  39. package/dist/index-CN3lOl9L.js +10077 -0
  40. package/dist/{index-DplRG-oo.js → index-CTMMHmwj.js} +1 -1
  41. package/dist/{index-D8ML_f91.js → index-Cde7_752.js} +4271 -4287
  42. package/dist/{index-CIg6zEay.js → index-CmYd6_TA.js} +1 -1
  43. package/dist/{index-DZXpHjYg.js → index-CyWy0nyd.js} +10 -10
  44. package/dist/{index-BTapotRN.js → index-DCSqmK8s.js} +3 -3
  45. package/dist/index-DDpWNBFO.cjs +25 -0
  46. package/dist/{index-B2Z1OF_A.js → index-DIfJQHZp.js} +3 -3
  47. package/dist/{index-B8I4TCpA.cjs → index-DWPuMwu-.cjs} +1 -1
  48. package/dist/{index-Bf0HSsSz.cjs → index-DflscIO5.cjs} +1 -1
  49. package/dist/{index-HlbQT-hn.cjs → index-DgX0z-6T.cjs} +1 -1
  50. package/dist/{index-RfSz1KjM.js → index-Dj2OpT0q.js} +1 -1
  51. package/dist/{index-CWCHDC7v.js → index-Dk3oPwtn.js} +2 -2
  52. package/dist/{index-d3SRxiwl.js → index-DkTQi1Vq.js} +1 -1
  53. package/dist/{index-DiScwmD1.cjs → index-DkW6SNWc.cjs} +1 -1
  54. package/dist/{index-BkclMB47.js → index-DkYlSN6W.js} +2 -2
  55. package/dist/index-DlWlqQXP.cjs +2 -0
  56. package/dist/{index-DFjv1J5x.js → index-DsMPZC4m.js} +5 -5
  57. package/dist/{index-D8Eqcxyf.cjs → index-Ff9cJTW6.cjs} +1 -1
  58. package/dist/{index-DHvwfqpt.js → index-Fmivd5TB.js} +2 -2
  59. package/dist/{index-Bhz2-IqE.cjs → index-H6unuPpB.cjs} +1 -1
  60. package/dist/{index-DMVBf41x.js → index-JhEMFPZu.js} +8936 -8940
  61. package/dist/{index-Wb0MjFbo.js → index-QpJbzLNb.js} +96 -79
  62. package/dist/{index-BOmb1yOF.js → index-eLBcYZGA.js} +8 -8
  63. package/dist/{index-BYaor5QC.cjs → index-lusIr8v1.cjs} +13 -13
  64. package/dist/{index-efedHl6M.js → index-w433dSfa.js} +4 -4
  65. package/dist/{index-BCDA7SlU.js → index-ySgRpDhk.js} +6 -6
  66. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BXSlRY5h.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-8FBI7Z3I.js} +1848 -1843
  67. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DyCuFKb2.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-eirpGIM9.cjs} +61 -61
  68. package/dist/{isString-BLBZkTvd.js → isString-D42PBiNa.js} +1 -1
  69. package/dist/{main-BDbN4DoS.cjs → main-CbppiF13.cjs} +1 -1
  70. package/dist/{main-Dyi5uw2c.js → main-DjlxeqbY.js} +4 -4
  71. package/dist/{menuIndex-DP2PAk8P.js → menuIndex-DUFFnrEE.js} +1 -1
  72. package/dist/obj/model.mtl +42 -0
  73. package/dist/obj/model.obj +26110 -0
  74. package/dist/{request-B3-w_S8Z.js → request-CbksSN84.js} +67 -67
  75. package/dist/ss-component.cjs +1 -1
  76. package/dist/ss-component.css +2 -2
  77. package/dist/ss-component.js +12 -12
  78. package/dist/ss-component2.cjs +1 -1
  79. package/dist/ss-component2.js +13 -13
  80. package/dist/{threeModel-DRFFJvFX.cjs → threeModel-BfVKlerx.cjs} +1 -1
  81. package/dist/{threeModel-DEqLQS7r.js → threeModel-VmsDzpUI.js} +5 -5
  82. package/dist/{threePreview-fiZ4fBVp.cjs → threePreview-C4Dz9uRV.cjs} +1 -1
  83. package/dist/{threePreview-CQpuh2pD.js → threePreview-DR7DsGG1.js} +5 -5
  84. package/dist/{threeSceneView-DgNQEj93.js → threeSceneView-B1kux2Lo.js} +12 -12
  85. package/dist/{threeSceneView-Dx3DcgW-.cjs → threeSceneView-Zn2Tl6ZM.cjs} +1 -1
  86. package/dist/{threeSceneViewForCPMPIP-tZSXieg8.js → threeSceneViewForCPMPIP-BKJK3uF6.js} +9 -9
  87. package/dist/{threeSceneViewForCPMPIP-CCmSCkIN.cjs → threeSceneViewForCPMPIP-gge-iN67.cjs} +1 -1
  88. package/dist/{threeTrackPathView-DweDgiiM.js → threeTrackPathView-D2W0twne.js} +6 -6
  89. package/dist/{threeTrackPathView-6RyMYllT.cjs → threeTrackPathView-WAbp0BS6.cjs} +1 -1
  90. package/dist/{threeViewerHost-CDFwFnu2.js → threeViewerHost-D1uC5WJx.js} +3 -3
  91. package/dist/{threeViewerHost-NwCu86-z.cjs → threeViewerHost-DRfKnV3P.cjs} +1 -1
  92. package/dist/{urdfTree-CTYdhkAY.js → urdfTree-BaLdXoaH.js} +1 -1
  93. package/dist/{urdfTree-BwNXusFz.cjs → urdfTree-CKIM8z4M.cjs} +1 -1
  94. package/dist/{workpieceTreePanel-7llvdn1R.cjs → workpieceTreePanel-CHUvDngw.cjs} +1 -1
  95. package/dist/{workpieceTreePanel-DjvO5w7t.js → workpieceTreePanel-h8L0fbmd.js} +4 -4
  96. package/package.json +1 -1
  97. package/public/obj/model.mtl +42 -0
  98. package/public/obj/model.obj +26110 -0
  99. package/dist/index-Cj6n4Zpo.js +0 -9937
  100. package/dist/index-D1eUShIF.cjs +0 -25
  101. package/dist/index-UWrNcZe6.cjs +0 -2
@@ -0,0 +1,25 @@
1
+ "use strict";var Tu=Object.defineProperty;var Au=(a,l,r)=>l in a?Tu(a,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[l]=r;var Wr=(a,l,r)=>Au(a,typeof l!="symbol"?l+"":l,r);const e=require("vue"),qa=require("./request-BC2w2vGr.cjs"),A=require("./index-BEli6-9O.cjs"),ll=require("./index-lusIr8v1.cjs"),he=require("./index-BrBW7tRO.cjs"),Xl=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Nl=require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-eirpGIM9.cjs"),wr=require("./index-gnhHdovX.cjs"),So=require("./threeViewerHost-DRfKnV3P.cjs"),Ar=require("./index-CW4qJdP8.cjs"),es=require("./index-BLJ-oqRd.cjs"),Gs=require("./index-Ff9cJTW6.cjs");;/* empty css */const Eo=require("./isString-DNBlKLZH.cjs"),as=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),Ys=require("./index-BVaHwt5f.cjs"),zu=require("./index-Bslyl2ID.cjs"),zn=require("./MTLLoader-HQ9_HPVv.cjs"),Mu=require("./URDFLoader-DEhmYKKG.cjs");var Iu="[object Boolean]";function Js(a){return a===!0||a===!1||qa.isObjectLike(a)&&qa.baseGetTag(a)==Iu}function Ou(a){return a===void 0}const Lu=a=>a.match(/\((.*)\)/)[1],Ru={__name:"index",props:{isVisible:{type:Boolean,default:!1},title:{type:String,default:""},placement:{type:String,default:"bottom"},width:{type:Number,default:200},trigger:{type:String,default:"click"}},setup(a){const l=a,r=e.ref(null),n=e.ref(!1),t=e.ref(null);return e.watch(()=>l==null?void 0:l.isVisible,()=>{n.value=l==null?void 0:l.isVisible},{deep:!0,immediate:!0}),e.watch(()=>t.value,()=>{e.nextTick(()=>{var s,v;(v=(s=r.value)==null?void 0:s.updatePopper)==null||v.call(s)})},{deep:!0,immediate:!0}),(s,v)=>{const p=e.resolveComponent("el-popover");return e.openBlock(),e.createBlock(p,{visible:n.value,"onUpdate:visible":v[0]||(v[0]=f=>n.value=f),trigger:l.trigger,title:l==null?void 0:l.title,placement:l==null?void 0:l.placement,width:l==null?void 0:l.width,ref_key:"popOverRef",ref:r,"trigger-keys":"[]"},{reference:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(s.$slots,"reference",{ref_key:"referenceRef",ref:t})])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(s.$slots,"content")])]),_:3},8,["visible","trigger","title","placement","width"])}}},$u=e.defineComponent({__name:"index",props:{value:{type:[String,Number],default:""},columnContent:{type:Object,default:{}}},setup(a){const l=a,r=e.computed(()=>{var f,m,g,c,D;const n=l.value??"";let t=(f=l==null?void 0:l.columnContent)==null?void 0:f.filter;(t==null?void 0:t[0])==="("&&(t=t==null?void 0:t.slice(1,(t==null?void 0:t.length)-1)),t=t==null?void 0:t.split("||");let s=(g=(m=l==null?void 0:l.columnContent)==null?void 0:m.options)==null?void 0:g.findIndex(M=>(M==null?void 0:M.value)===n);s=t==null?void 0:t[s],s=he.analyzeSplitToContent(s,","),s=s==null?void 0:s.map(M=>((M==null?void 0:M[(M==null?void 0:M.length)-1])===","&&(M=M==null?void 0:M.slice(0,(M==null?void 0:M.length)-1)),M));let v=s==null?void 0:s.find(M=>M==null?void 0:M.includes("@TextBackRGBA"));v?v=he.rgbaToColor((c=v==null?void 0:v.split("="))==null?void 0:c[1]):v=void 0;let p=s==null?void 0:s.find(M=>M==null?void 0:M.includes("@TextRGBA"));return p?p=he.rgbaToColor((D=p==null?void 0:p.split("="))==null?void 0:D[1]):p=void 0,{backgroundColor:v,color:p}});return(n,t)=>a.value!==void 0&&a.value!==null?(e.openBlock(),e.createElementBlock("span",{key:0,class:"task-status-tag",style:e.normalizeStyle(r.value)},e.toDisplayString(a.value===0?"0":a.value),5)):e.createCommentVNode("",!0)}}),Vu=Xl._export_sfc($u,[["__scopeId","data-v-96eae9de"]]);function Fu(a,l,r,n={}){if(!a||!l||!r||r.length!==4)return;const t=a.getContext("2d");if(!t)return;const{color:s="rgba(255, 235, 59, 0.3)",strokeWidth:v=2,fillOpacity:p=.2}=n,f=a.getBoundingClientRect(),m=l.getBoundingClientRect(),g=l.naturalWidth,c=l.naturalHeight,D=m.width/g,M=m.height/c,S=Math.min(D,M),K=g*S,I=c*S,R=(f.width-K)/2,j=(f.height-I)/2,E=r.map(([k,b])=>{const w=R+k*K,$=j+b*I;return{x:w,y:$}});t.clearRect(0,0,a.width,a.height),t.beginPath(),t.moveTo(E[0].x,E[0].y);for(let k=1;k<E.length;k++)t.lineTo(E[k].x,E[k].y);t.closePath();const x=s.replace(/[\d.]+\)$/,`${p})`);t.fillStyle=x,t.fill(),t.strokeStyle=s.replace(/[\d.]+\)$/,"1)"),t.lineWidth=v,t.stroke()}function ki(a){if(!a)return;const l=a.getContext("2d");l&&l.clearRect(0,0,a.width,a.height)}function ls(a,l){if(!a||!l)return null;const r=a[l];return!r||!r.bboxNorm||!Array.isArray(r.bboxNorm)||r.bboxNorm.length!==4?null:{bboxNorm:r.bboxNorm,imageName:r.imageName||""}}const Pu={key:0,class:"ocr-img-preview-root"},ju={class:"ocr-img-preview-window"},Hu={key:0,class:"img-preview-body"},Uu={class:"img-preview-header"},qu={class:"img-header-left"},Wu={class:"img-name"},Ku={key:0,class:"img-header-right"},Gu={class:"img-index"},Yu={key:0,class:"img-thumb-list"},Ju=["onClick"],Xu={key:1,class:"thumb-placeholder"},Zu={class:"thumb-name"},Qu={class:"img-preview-container"},ed={key:0,class:"img-placeholder"},ad={key:2,class:"img-placeholder"},ld={key:0},rd={key:1},nd={key:1,class:"img-placeholder"},id=e.defineComponent({__name:"imgPreview",props:{visible:{type:Boolean,default:!1},images:{type:Array,default:()=>[]},defaultImageName:{type:String,default:""},fieldMeta:{type:Object,default:()=>({})},focusedFieldName:{type:String,default:""}},emits:["update:visible","close"],setup(a,{emit:l}){const r=a,n=l,t=e.computed({get:()=>r.visible,set:T=>n("update:visible",T)});let s=!1,v="",p=0,f=0,m=0,g=0,c=0,D=0,M=null;const S=T=>{var U,Se;const ue=(Se=(U=T==null?void 0:T.target)==null?void 0:U.closest)==null?void 0:Se.call(U,".ocr-img-preview-window");return ue||document.querySelector(".ocr-img-preview-window")},K=T=>{if(!T||T==="none")return{tx:0,ty:0};let ue=T.match(/matrix\(([^)]+)\)/);if(ue){const U=ue[1].split(",").map(Se=>Number(Se.trim()));return{tx:(U==null?void 0:U[4])||0,ty:(U==null?void 0:U[5])||0}}if(ue=T.match(/matrix3d\(([^)]+)\)/),ue){const U=ue[1].split(",").map(Se=>Number(Se.trim()));return{tx:(U==null?void 0:U[12])||0,ty:(U==null?void 0:U[13])||0}}return ue=T.match(/translate\(\s*([-\d.]+)px\s*,\s*([-\d.]+)px\s*\)/),ue?{tx:Number(ue[1])||0,ty:Number(ue[2])||0}:{tx:0,ty:0}},I=(T,ue,U)=>{T.style.transform=`translate(${ue}px, ${U}px)`},R=T=>{const ue=S(T);if(!ue)return;s=!0,M=ue,v="move",p=T.clientX,f=T.clientY;const U=window.getComputedStyle(ue),{tx:Se,ty:Le}=K(U.transform);c=Se,D=Le,document.addEventListener("mousemove",E),document.addEventListener("mouseup",x)},j=(T,ue)=>{const U=S(T);if(!U)return;s=!0,M=U,v=ue,p=T.clientX,f=T.clientY;const Se=U.getBoundingClientRect();m=Se.width,g=Se.height;const Le=window.getComputedStyle(U),{tx:Pe,ty:la}=K(Le.transform);c=Pe,D=la,document.addEventListener("mousemove",E),document.addEventListener("mouseup",x)},E=T=>{if(!s||!M)return;const ue=T.clientX-p,U=T.clientY-f,Se=360,Le=420;let Pe=m,la=g,Da=c,le=D;if(v==="move"){Da=c+ue,le=D+U,I(M,Da,le);return}if(v.includes("right")&&(Pe=Math.max(Se,m+ue)),v.includes("bottom")&&(la=Math.max(Le,g+U)),v.includes("left")){const ta=m-ue;ta<Se?(Pe=Se,Da=c+(m-Se)):(Pe=ta,Da=c+ue)}if(v.includes("top")){const ta=g-U;ta<Le?(la=Le,le=D+(g-Le)):(la=ta,le=D+U)}M.style.width=`${Pe}px`,M.style.height=`${la}px`,I(M,Da,le)},x=()=>{s=!1,v="",M=null,document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",x)},k=e.ref([]),b=e.ref(!1);e.watch(()=>r.images,async T=>{if(!Array.isArray(T)||T.length===0){k.value=[];return}b.value=!0;const ue=[];for(const U of T)if(U.url&&!U.url.startsWith("blob:")&&!U.url.startsWith("http"))try{const Se=await Nl.downloadFile(U.url),Le=URL.createObjectURL(Se);ue.push({...U,blobUrl:Le})}catch(Se){console.error(`Failed to load image for preview: ${U.url}`,Se),ue.push({...U,blobUrl:""})}else ue.push({...U,blobUrl:U.url});k.value=ue,b.value=!1},{deep:!0,immediate:!0});const w=e.ref(0),$=e.ref(null),F=e.ref(null),J=e.computed(()=>k.value[w.value]||null),se=()=>{if(!k.value.length){w.value=0;return}if(r.defaultImageName){const T=k.value.findIndex(ue=>(ue==null?void 0:ue.name)===r.defaultImageName);w.value=T>=0?T:0}else w.value=0},ge=T=>{if(!k.value.length)return;const ue=Math.max(0,Math.min(T,k.value.length-1));w.value=ue},Me=()=>ge(w.value-1),V=()=>ge(w.value+1),fe=T=>{if(!T)return;const ue=k.value.findIndex(U=>(U==null?void 0:U.name)===T);ue>=0&&(w.value=ue)},ae=()=>{if(!F.value)return;const T=F.value.parentElement;if(!T)return;const ue=T.getBoundingClientRect();F.value.width=ue.width,F.value.height=ue.height},de=()=>{var Se,Le;if(!F.value||!$.value||!r.focusedFieldName){F.value&&ki(F.value);return}const T=(Se=$.value.$el)==null?void 0:Se.querySelector("img");if(!T)return;if(!T.complete||T.naturalWidth===0){T.onload=()=>{e.nextTick(()=>{de()})};return}const ue=((Le=J.value)==null?void 0:Le.name)||"",U=ls(r.fieldMeta,r.focusedFieldName);if(!U){ki(F.value);return}if(U.imageName!==ue){ki(F.value);return}ae(),Fu(F.value,T,U.bboxNorm)},Ce=()=>{e.nextTick(()=>{ae(),de()})};e.watch(()=>r.focusedFieldName,()=>{if(!t.value)return;const T=ls(r.fieldMeta,r.focusedFieldName);T!=null&&T.imageName&&fe(T.imageName),e.nextTick(()=>{de()})}),e.watch(()=>{var T;return(T=J.value)==null?void 0:T.name},()=>{t.value&&e.nextTick(()=>{F.value&&ki(F.value),de()})}),e.watch(()=>r.visible,T=>{T?(se(),e.nextTick(()=>{ae(),de()})):F.value&&ki(F.value)}),e.watch(()=>r.defaultImageName,()=>{t.value&&se()});let Fe=null;e.onMounted(()=>{var T;typeof ResizeObserver<"u"&&(Fe=new ResizeObserver(()=>{ae(),e.nextTick(()=>{de()})}),(T=F.value)!=null&&T.parentElement&&Fe.observe(F.value.parentElement))}),e.onUnmounted(()=>{Fe&&(Fe.disconnect(),Fe=null),document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",x)});const ye=()=>{F.value&&ki(F.value),n("update:visible",!1),n("close")};return(T,ue)=>{var la,Da;const U=e.resolveComponent("el-button"),Se=e.resolveComponent("el-image"),Le=e.resolveComponent("Loading"),Pe=e.resolveComponent("el-icon");return t.value?(e.openBlock(),e.createElementBlock("div",Pu,[ue[12]||(ue[12]=e.createElementVNode("div",{class:"ocr-img-preview-backdrop"},null,-1)),e.createElementVNode("div",ju,[e.createElementVNode("div",{class:"ocr-img-preview-header",onMousedown:e.withModifiers(R,["stop"])},[ue[8]||(ue[8]=e.createElementVNode("span",{class:"ocr-img-preview-title"},"文件预览",-1)),e.createElementVNode("button",{type:"button",class:"ocr-img-preview-close",onClick:ye},"×")],32),e.createElementVNode("div",{class:"resizable-handle top",onMousedown:ue[0]||(ue[0]=e.withModifiers(le=>j(le,"top"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle right",onMousedown:ue[1]||(ue[1]=e.withModifiers(le=>j(le,"right"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle bottom",onMousedown:ue[2]||(ue[2]=e.withModifiers(le=>j(le,"bottom"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle left",onMousedown:ue[3]||(ue[3]=e.withModifiers(le=>j(le,"left"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle top-left",onMousedown:ue[4]||(ue[4]=e.withModifiers(le=>j(le,"top-left"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle top-right",onMousedown:ue[5]||(ue[5]=e.withModifiers(le=>j(le,"top-right"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle bottom-left",onMousedown:ue[6]||(ue[6]=e.withModifiers(le=>j(le,"bottom-left"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle bottom-right",onMousedown:ue[7]||(ue[7]=e.withModifiers(le=>j(le,"bottom-right"),["stop"]))},null,32),J.value?(e.openBlock(),e.createElementBlock("div",Hu,[e.createElementVNode("div",Uu,[e.createElementVNode("div",qu,[e.createElementVNode("span",Wu,e.toDisplayString(J.value.name?J.value.name+(J.value.url&&J.value.url.lastIndexOf(".")!==-1?J.value.url.substring(J.value.url.lastIndexOf(".")):""):""),1)]),k.value.length>1?(e.openBlock(),e.createElementBlock("div",Ku,[e.createVNode(U,{size:"small",disabled:w.value===0,onClick:Me},{default:e.withCtx(()=>ue[9]||(ue[9]=[e.createTextVNode("上一张")])),_:1,__:[9]},8,["disabled"]),e.createElementVNode("span",Gu,e.toDisplayString(w.value+1)+" / "+e.toDisplayString(k.value.length),1),e.createVNode(U,{size:"small",disabled:w.value===k.value.length-1,onClick:V},{default:e.withCtx(()=>ue[10]||(ue[10]=[e.createTextVNode("下一张")])),_:1,__:[10]},8,["disabled"])])):e.createCommentVNode("",!0)]),k.value.length>1?(e.openBlock(),e.createElementBlock("div",Yu,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(le,ta)=>(e.openBlock(),e.createElementBlock("div",{key:(le.name||"")+"-"+ta,class:e.normalizeClass(["img-thumb-item",{active:ta===w.value}]),onClick:te=>ge(ta)},[le!=null&&le.blobUrl?(e.openBlock(),e.createBlock(Se,{key:0,src:le.blobUrl,fit:"cover",class:"thumb-image","preview-src-list":[le.blobUrl],"initial-index":0},null,8,["src","preview-src-list"])):(e.openBlock(),e.createElementBlock("div",Xu,"加载失败")),e.createElementVNode("div",Zu,e.toDisplayString(le.name||"-"),1)],10,Ju))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",Qu,[b.value?(e.openBlock(),e.createElementBlock("div",ed,[e.createVNode(Pe,{class:"is-loading"},{default:e.withCtx(()=>[e.createVNode(Le)]),_:1}),ue[11]||(ue[11]=e.createElementVNode("span",null,"图片加载中...",-1))])):(la=J.value)!=null&&la.blobUrl?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(Se,{ref_key:"imageRef",ref:$,src:J.value.blobUrl,fit:"contain",class:"preview-image","preview-src-list":[J.value.blobUrl],onLoad:Ce},null,8,["src","preview-src-list"]),e.createElementVNode("canvas",{ref_key:"canvasRef",ref:F,class:"highlight-canvas"},null,512)],64)):(e.openBlock(),e.createElementBlock("div",ad,[(Da=J.value)!=null&&Da.url?(e.openBlock(),e.createElementBlock("span",ld,"图片加载失败")):(e.openBlock(),e.createElementBlock("span",rd,"暂无图片"))]))])])):(e.openBlock(),e.createElementBlock("div",nd,"暂无图片"))])])):e.createCommentVNode("",!0)}}}),od=Xl._export_sfc(id,[["__scopeId","data-v-48a4ecb1"]]),td={class:"cert-preview-body"},sd={key:0,class:"pdf-preview-container"},cd={class:"thumbs"},ud=["onClick"],dd={class:"thumb-img"},pd=["src"],fd={key:1,class:"thumb-loading"},hd={class:"thumb-title"},vd={class:"viewer"},md={key:0,class:"viewer-img-wrap"},yd=["src"],gd={key:1,class:"viewer-loading"},bd=e.defineComponent({__name:"CertificatePreview",props:{visible:{type:Boolean},versions:{}},emits:["update:visible"],setup(a,{emit:l}){const r=a,n=l,t=e.ref(""),s=e.ref(""),v=e.computed(()=>(r.versions||[]).find(S=>String(S.versionId)===String(t.value))),p=e.ref({}),f=e.ref(""),m=e.ref("证书附件.pdf"),g=()=>{try{Object.values(p.value||{}).forEach(S=>{S&&URL.revokeObjectURL(S)}),f.value&&URL.revokeObjectURL(f.value)}catch{}p.value={},f.value=""},c=async S=>{if(!S||S.fileType==="pdf")return;const K=Array.isArray(S.images)?S.images:[];for(const I of K){const R=I==null?void 0:I.url;if(!(!R||p.value[R]))try{const j=await A.platformDownloadFile({url:R}),E=URL.createObjectURL(j.data);p.value={...p.value,[R]:E}}catch{}}},D=async S=>{var I;if(!S||S.fileType!=="pdf"){f.value="";return}const K=S.sourceUrl||"";if(!K){f.value="";return}if(f.value){try{URL.revokeObjectURL(f.value)}catch{}f.value=""}try{console.log("[CertificatePreview] 下载PDF附件:",{url:K,versionId:S==null?void 0:S.versionId,certNo:S==null?void 0:S.certNo});const R=await A.platformDownloadFile({url:K});console.log("[CertificatePreview] PDF响应:",{url:K,status:R==null?void 0:R.status,size:(I=R==null?void 0:R.data)==null?void 0:I.size});const j=URL.createObjectURL(R.data);f.value=j;const E=S.certNo?String(S.certNo):"";m.value=E?`${E}.pdf`:"证书附件.pdf"}catch(R){console.error("[CertificatePreview] PDF加载失败:",{url:K,error:R}),f.value=""}};e.watch(()=>r.visible,async S=>{var I;if(!S){g();return}const K=(I=r.versions)==null?void 0:I[0];t.value=(K==null?void 0:K.versionId)||"",await c(K),await D(K)},{immediate:!0}),e.watch(()=>t.value,async()=>{var K,I;const S=v.value;if(!S){s.value="",f.value="";return}if(S.fileType==="pdf"){s.value="",await D(S);return}f.value="",s.value=((I=(K=S.images)==null?void 0:K[0])==null?void 0:I.url)||"",await c(S)},{immediate:!0});const M=()=>{n("update:visible",!1),g()};return e.onBeforeUnmount(()=>{g()}),(S,K)=>{const I=e.resolveComponent("el-empty"),R=e.resolveComponent("el-tab-pane"),j=e.resolveComponent("el-tabs"),E=e.resolveComponent("el-button"),x=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(x,{"model-value":S.visible,title:"证书附件预览",width:"1100px","close-on-click-modal":!1,onClose:M},{footer:e.withCtx(()=>[e.createVNode(E,{id:"themeBorderButton",onClick:M},{default:e.withCtx(()=>K[1]||(K[1]=[e.createTextVNode("关闭")])),_:1,__:[1]})]),default:e.withCtx(()=>[S.versions&&S.versions.length>0?(e.openBlock(),e.createBlock(j,{key:0,modelValue:t.value,"onUpdate:modelValue":K[0]||(K[0]=k=>t.value=k),type:"card",class:"cert-version-tabs"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.versions,k=>(e.openBlock(),e.createBlock(R,{key:k.versionId,name:k.versionId,label:k.label},{default:e.withCtx(()=>[e.createElementVNode("div",td,[k.fileType==="pdf"?(e.openBlock(),e.createElementBlock("div",sd,[f.value?(e.openBlock(),e.createBlock(ll.SsFilePreview,{key:1,fileName:m.value,blobUrl:f.value},null,8,["fileName","blobUrl"])):(e.openBlock(),e.createBlock(I,{key:0,description:"加载中"}))])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",cd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.images||[],b=>(e.openBlock(),e.createElementBlock("div",{key:b.url,class:e.normalizeClass(["thumb",{active:b.url===s.value}]),onClick:w=>s.value=b.url},[e.createElementVNode("div",dd,[p.value[b.url]?(e.openBlock(),e.createElementBlock("img",{key:0,src:p.value[b.url]},null,8,pd)):(e.openBlock(),e.createElementBlock("div",fd,"加载中"))]),e.createElementVNode("div",hd,e.toDisplayString(b.name),1)],10,ud))),128))]),e.createElementVNode("div",vd,[s.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[p.value[s.value]?(e.openBlock(),e.createElementBlock("div",md,[e.createElementVNode("img",{class:"viewer-img",src:p.value[s.value]},null,8,yd)])):(e.openBlock(),e.createElementBlock("div",gd,"加载中"))],64)):(e.openBlock(),e.createBlock(I,{key:0,description:"暂无图片"}))])],64))])]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue"])):(e.openBlock(),e.createBlock(I,{key:1,description:"暂无可预览的证书附件"}))]),_:1},8,["model-value"])}}}),kd=Xl._export_sfc(bd,[["__scopeId","data-v-220703c0"]]),xd={class:"ocr-candidate-wrap"},wd={class:"ocr-candidate-left"},_d={key:1},Sd={key:0},Ed={key:1},Cd={key:2},Dd={key:3},Bd={key:0,class:"ocr-candidate-right"},Nd={class:"ocr-candidate-actions"},Td={key:1},Ad={class:"dialog-footer"},zd={__name:"OCRCandidateDialog",props:{visible:{type:Boolean,default:!1},candidates:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},nameProp:{type:String,default:""},mfrProp:{type:String,default:""}},emits:["update:visible","submit","preview-file"],setup(a,{emit:l}){const r=(w=[])=>{const $=[],F=J=>{(J||[]).forEach(se=>{if(!se)return;const ge=se.children||se.childrens||se.columns;Array.isArray(ge)&&ge.length>0?F(ge):$.push(se)})};return F(w),$},n=a,t=l,s=e.computed(()=>{var w;return((w=D.value)==null?void 0:w.allowAdd)!==!1}),v=e.computed(()=>{var w;return((w=D.value)==null?void 0:w.allowReplace)!==!1}),p=w=>{if(!w)return[];if(Array.isArray(w))return w;if(typeof w=="string")try{const $=JSON.parse(w);return Array.isArray($)?$:[]}catch{return[]}return[]},f=w=>{t("preview-file",w)},m=e.ref([]),g=e.ref(0),c=e.ref("");e.watch(()=>n.candidates,w=>{var $,F;m.value=(w||[]).map(J=>({...J,...(J==null?void 0:J.ocrRow)||{},selectedTargetId:(J==null?void 0:J.selectedTargetId)||"",__decision:J==null?void 0:J.__decision})),g.value=0,c.value=((F=($=m.value)==null?void 0:$[0])==null?void 0:F.selectedTargetId)||""},{immediate:!0,deep:!0}),e.watch(()=>n.visible,w=>{var $,F;w&&(g.value=0,c.value=((F=($=m.value)==null?void 0:$[0])==null?void 0:F.selectedTargetId)||"")});const D=e.computed(()=>{var $;const w=Number(g.value||0);return(($=m.value||[])==null?void 0:$[w])||null}),M=e.computed(()=>(r(n.columns||[])||[]).filter(F=>F&&F.prop).filter(F=>F.type!=="operate"&&F.label!=="操作"&&F.prop!=="operate")),S=e.computed(()=>M.value.filter(w=>w.label!=="证书附件"&&w.prop!=="证书附件")),K=w=>{if(!w)return;const $=(m.value||[]).findIndex(F=>(F==null?void 0:F.idx)===(w==null?void 0:w.idx));$>-1&&(g.value=$,c.value=(w==null?void 0:w.selectedTargetId)||"")},I=w=>{if(!w){c.value="";return}c.value=String((w==null?void 0:w.id)??"")},R=(w,$="")=>{const F=Number(g.value||0),J=m.value||[],se=J[F];se&&(se.__decision=w,se.selectedTargetId=$,c.value=$,m.value=[...J])},j=()=>R("skip",""),E=()=>R("add",""),x=()=>{if(!c.value){qa.ElMessage.warning("请先选择要替换的目标记录");return}R("replace",c.value)},k=()=>{t("update:visible",!1)},b=()=>{const w=m.value||[];if(w.find(F=>(F==null?void 0:F.__decision)==="replace"&&!(F!=null&&F.selectedTargetId))){qa.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}t("submit",w),t("update:visible",!1)};return(w,$)=>{const F=e.resolveComponent("el-table-column"),J=e.resolveComponent("svg-icon"),se=e.resolveComponent("el-table"),ge=e.resolveComponent("el-button"),Me=e.resolveComponent("el-alert");return e.openBlock(),e.createBlock(wr.ssDialog,{title:"OCR候选匹配",visible:a.visible,"close-on-click-modal":!1,width:"90%",style:{maxWidth:"1200px"},onBeforeDestroy:k},{default:e.withCtx(()=>{var V,fe;return[e.createElementVNode("div",xd,[e.createElementVNode("div",wd,[$[0]||($[0]=e.createElementVNode("div",{class:"ocr-candidate-title"},"待处理OCR行(可跳过)",-1)),e.createVNode(se,{data:m.value,border:"",stripe:"","max-height":"300",style:{width:"100%"},"highlight-current-row":"",onCurrentChange:K},{default:e.withCtx(()=>[e.createVNode(F,{type:"index",label:"序号",width:"60"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,ae=>(e.openBlock(),e.createBlock(F,{key:ae.prop,label:ae.label,prop:ae.prop,"min-width":ae.minWidth||160},{default:e.withCtx(({row:de})=>[ae.label==="证书附件"||ae.prop==="证书附件"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[p(de==null?void 0:de[ae.prop]).length>0?(e.openBlock(),e.createBlock(J,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:e.withModifiers(Ce=>f({row:de,prop:ae.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(e.openBlock(),e.createElementBlock("span",_d,"-"))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString((de==null?void 0:de[ae.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128)),e.createVNode(F,{label:"候选数",width:"90",fixed:"right"},{default:e.withCtx(({row:ae})=>[e.createTextVNode(e.toDisplayString(((ae==null?void 0:ae.candidates)||[]).length),1)]),_:1}),e.createVNode(F,{label:"处理状态",width:"120",fixed:"right"},{default:e.withCtx(({row:ae})=>[(ae==null?void 0:ae.__decision)==="replace"?(e.openBlock(),e.createElementBlock("span",Sd,"替换")):(ae==null?void 0:ae.__decision)==="add"?(e.openBlock(),e.createElementBlock("span",Ed,"新增")):(ae==null?void 0:ae.__decision)==="skip"?(e.openBlock(),e.createElementBlock("span",Cd,"跳过")):(e.openBlock(),e.createElementBlock("span",Dd,"未处理"))]),_:1})]),_:1},8,["data"])]),m.value&&m.value.length>0?(e.openBlock(),e.createElementBlock("div",Bd,[$[4]||($[4]=e.createElementVNode("div",{class:"ocr-candidate-title"},"当前行候选记录(同编号)",-1)),e.createElementVNode("div",Nd,[e.createVNode(ge,{id:"themeBorderButton",onClick:j},{default:e.withCtx(()=>$[1]||($[1]=[e.createTextVNode("跳过本行")])),_:1,__:[1]}),e.createVNode(ge,{id:"themeBorderButton",onClick:E,disabled:!s.value},{default:e.withCtx(()=>$[2]||($[2]=[e.createTextVNode("新增本行")])),_:1,__:[2]},8,["disabled"]),e.createVNode(ge,{class:"ok-button",id:"themeButton",onClick:x,disabled:!v.value||!c.value},{default:e.withCtx(()=>$[3]||($[3]=[e.createTextVNode("替换选中记录")])),_:1,__:[3]},8,["disabled"])]),(((V=D.value)==null?void 0:V.candidates)||[]).length===0?(e.openBlock(),e.createBlock(Me,{key:0,title:"该编号暂无候选记录,可选择“新增本行”或“跳过本行”。",type:"info",closable:!1,"show-icon":"",style:{margin:"8px 0"}})):e.createCommentVNode("",!0),e.createVNode(se,{data:((fe=D.value)==null?void 0:fe.candidates)||[],border:"",stripe:"","max-height":"300",style:{width:"100%"},onCurrentChange:I,"highlight-current-row":""},{default:e.withCtx(()=>[e.createVNode(F,{type:"index",label:"序号",width:"60"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.value,ae=>(e.openBlock(),e.createBlock(F,{key:ae.prop,label:ae.label,prop:ae.prop,"min-width":ae.minWidth||160},{default:e.withCtx(({row:de})=>[ae.label==="证书附件"||ae.prop==="证书附件"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[p(de==null?void 0:de[ae.prop]).length>0?(e.openBlock(),e.createBlock(J,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:e.withModifiers(Ce=>f({row:de,prop:ae.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(e.openBlock(),e.createElementBlock("span",Td,"-"))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString((de==null?void 0:de[ae.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128))]),_:1},8,["data"])])):e.createCommentVNode("",!0)])]}),footer:e.withCtx(()=>[e.createElementVNode("div",Ad,[e.createVNode(ge,{id:"themeBorderButton",onClick:k},{default:e.withCtx(()=>$[5]||($[5]=[e.createTextVNode("取消")])),_:1,__:[5]}),e.createVNode(ge,{class:"ok-button",id:"themeButton",onClick:b},{default:e.withCtx(()=>$[6]||($[6]=[e.createTextVNode("提交已处理")])),_:1,__:[6]})])]),_:1},8,["visible"])}}},Md=Xl._export_sfc(zd,[["__scopeId","data-v-89e0489c"]]),Id={class:"ocr-preview-content"},Od={class:"ocr-preview-tip"},Ld={class:"ocr-preview-table"},Rd={style:{display:"flex","align-items":"center",gap:"8px"}},$d={class:"dialog-footer"},Vd={__name:"OCRResultPreviewDialog",props:{visible:{type:Boolean,default:!1},ocrPreviewData:{type:Array,default:()=>[]},ocrPreviewColumns:{type:Array,default:()=>[]},ocrSelectedFields:{type:Array,default:()=>[]}},emits:["update:visible","update:ocrPreviewData","update:ocrSelectedFields","confirm","fieldChange"],setup(a,{emit:l}){const r=a,n=l,t=e.ref([]),s=e.ref([]),v=e.ref([]);e.watch(()=>r.visible,M=>{M&&(t.value=JSON.parse(JSON.stringify(r.ocrPreviewData)),s.value=JSON.parse(JSON.stringify(r.ocrPreviewColumns)),v.value=[...r.ocrSelectedFields])});const p=(M,S)=>{const K=[...v.value];if(S)K.includes(M)||K.push(M);else{const I=K.indexOf(M);I>-1&&K.splice(I,1)}v.value=K,n("update:ocrSelectedFields",K)},f=(M,S,K)=>{n("fieldChange",{rowIndex:M,prop:S,value:K})},m=()=>{n("update:ocrPreviewData",t.value),n("confirm",t.value),n("update:visible",!1)},g=()=>{n("update:visible",!1)},c=M=>typeof M!="number"?"-":`${(M*100).toFixed(1)}%`,D=M=>typeof M!="number"?"#606266":M>=.9?"#67c23a":M>=.7?"#e6a23c":"#f56c6c";return(M,S)=>{const K=e.resolveComponent("el-alert"),I=e.resolveComponent("el-table-column"),R=e.resolveComponent("el-checkbox"),j=e.resolveComponent("el-input"),E=e.resolveComponent("el-table"),x=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(wr.ssDialog,{title:"OCR识别结果预览",visible:a.visible,onBeforeDestroy:g,width:"90%",style:{maxWidth:"1200px"}},{default:e.withCtx(()=>[e.createElementVNode("div",Id,[e.createElementVNode("div",Od,[e.createVNode(K,{title:"请核对识别结果。系统将按 编号+名称+制造厂 规则匹配并替换;未唯一命中但有编号的,将进入候选选择;无编号则直接新增。",type:"info",closable:!1,"show-icon":""})]),e.createElementVNode("div",Ld,[e.createVNode(E,{data:t.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(I,{type:"index",label:"序号",width:"60",fixed:""}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,k=>(e.openBlock(),e.createBlock(I,{key:k.prop,prop:k.prop,"min-width":k.minWidth||230,"class-name":k.isAccuracy?"accuracy-column":""},{header:e.withCtx(()=>[e.createElementVNode("div",Rd,[k.isAccuracy?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(R,{key:0,"model-value":v.value.includes(k.prop),onChange:b=>p(k.prop,b),onClick:S[0]||(S[0]=e.withModifiers(()=>{},["stop"]))},null,8,["model-value","onChange"])),e.createElementVNode("span",null,e.toDisplayString(k.label),1)])]),default:e.withCtx(({row:b,$index:w})=>[k.isAccuracy?(e.openBlock(),e.createElementBlock("span",{key:0,class:"accuracy-value",style:e.normalizeStyle({color:D(b[k.prop]),fontWeight:500})},e.toDisplayString(c(b[k.prop])),5)):(e.openBlock(),e.createBlock(j,{key:1,modelValue:b[k.prop],"onUpdate:modelValue":$=>b[k.prop]=$,size:"small",placeholder:"请输入"+k.label,onChange:$=>f(w,k.prop,$)},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"]))]),_:2},1032,["prop","min-width","class-name"]))),128))]),_:1},8,["data"])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",$d,[e.createVNode(x,{onClick:g,id:"themeBorderButton"},{default:e.withCtx(()=>S[1]||(S[1]=[e.createTextVNode("取消")])),_:1,__:[1]}),e.createVNode(x,{class:"ok-button",onClick:m,id:"themeButton"},{default:e.withCtx(()=>S[2]||(S[2]=[e.createTextVNode("确认")])),_:1,__:[2]})])]),_:1},8,["visible"])}}},Fd=Xl._export_sfc(Vd,[["__scopeId","data-v-df66eb1f"]]),Pi=a=>{var n;let l=a;(l==null?void 0:l[0])==="("&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1));let r=(n=he.analyzeSplitToContent(l,","))==null?void 0:n.map(t=>((t==null?void 0:t[(t==null?void 0:t.length)-1])===","&&(t=t==null?void 0:t.slice(0,(t==null?void 0:t.length)-1)),un(t)));return r=r==null?void 0:r.join(","),r};function Xs(a){return qa.axios.post("http://222.92.178.198:8000/api/v1/excel-chat",a)}function Pd(a){return qa.axios.get(a,{responseType:"blob"})}let Wl="$R",jd="http://222.92.178.198:55002/AIRobot",tt=["Form","BarChart","FormText","FormBlock"];const Zs=a=>{var r,n;let l=(n=he.analyzeSplitToContent(a,"@"))==null?void 0:n[((r=he.analyzeSplitToContent(a,"@"))==null?void 0:r.length)-1];return!!(tt!=null&&tt.some(t=>l==null?void 0:l.includes(t)))},Hd=async(a,l,r,n)=>{var s,v,p,f,m,g,c,D,M,S,K,I,R,j,E,x,k,b,w,$,F,J,se,ge,Me,V,fe,ae,de,Ce,Fe,ye,T,ue,U,Se,Le,Pe,la,Da,le,ta;let t=a;if(Zs(t==null?void 0:t[0])){let te=Jd(t),ca=(s=te==null?void 0:te.filter)==null?void 0:s.join(","),Ee=[];(v=te==null?void 0:te.hideContents)==null||v.forEach(Ue=>{if(Ue){const oa=Ue;oa&&Ee.push(`(HideGroup=Yes, prop=${oa})`)}});let oe=(p=te==null?void 0:te.formContents)==null?void 0:p.filter(Ue=>{var oa;return(oa=Ue==null?void 0:Ue.filters)==null?void 0:oa.includes("@ShowHide=Hide")});(oe==null?void 0:oe.length)>0&&(oe==null||oe.forEach(Ue=>{if(Ue){const oa=Ue==null?void 0:Ue.prop;oa&&Ee.push(`(Hide=Yes, prop=${oa})`)}}));let Te=(n==null?void 0:n.menuFilter)??[];return Array.isArray(Te)||(Te=Te?[Te]:[]),Te=[...Te,...Ee],{key:"Form",name:te==null?void 0:te.groupName,value:te==null?void 0:te.formContents,contents:Array.isArray((f=te==null?void 0:te.contents)==null?void 0:f[0])&&((g=(m=te==null?void 0:te.contents)==null?void 0:m[0])!=null&&g.every(Ue=>Array.isArray(Ue)))?[(D=(c=te==null?void 0:te.contents)==null?void 0:c[0])==null?void 0:D[r]]:[te==null?void 0:te.contents],filter:"("+ca+")",menuFilter:Te,groupFilter:te==null?void 0:te.groupFilters}}else if(((M=t==null?void 0:t[0])==null?void 0:M[0])!=="&"){let te=ac(t,n),ca="";(S=te==null?void 0:te.tableFilter)!=null&&S.includes(Wl)?te.tableFilter=(K=te==null?void 0:te.tableFilter)==null?void 0:K.replace(Wl,""):ca=(j=(R=(I=te==null?void 0:te.tableFilter)==null?void 0:I.replace("(",Wl))==null?void 0:R.split(Wl))==null?void 0:j[0];let Ee=[];te!=null&&te.tableFilter&&((E=he.analyzeSplitToContent(te==null?void 0:te.tableFilter,","))==null||E.forEach(Te=>{Te!=null&&Te.includes("@ShowHide=Hide")&&Ee.push("HideGroup=Yes")}));let oe=(n==null?void 0:n.menuFilter)??[];return Array.isArray(oe)||(oe=oe?[oe]:[]),oe=[...oe,...Ee],{key:"Table",name:te==null?void 0:te.groupName,tableColumns:te==null?void 0:te.tableColumns,assistColumn:te==null?void 0:te.columns,tableContents:l===1?te==null?void 0:te.tableContents:(k=(x=te==null?void 0:te.tableContents)==null?void 0:x[r])!=null&&k.every(Te=>Array.isArray(Te))?(b=te==null?void 0:te.tableContents)==null?void 0:b[r]:[(w=te==null?void 0:te.tableContents)==null?void 0:w[r]],filter:te==null?void 0:te.tableFilter,menuFilter:oe,quotePage:ca!==""?((J=(F=($=ca==null?void 0:ca.replace("*",Wl))==null?void 0:$.split(Wl))==null?void 0:F[0])==null?void 0:J.replaceAll(":","/"))??"":void 0,quoteGroup:ca!==""?((de=(ae=(fe=(V=(Me=(ge=(se=ca==null?void 0:ca.replace("*",Wl))==null?void 0:se.split(Wl))==null?void 0:ge[1])==null?void 0:Me.replace("{",Wl))==null?void 0:V.split(Wl))==null?void 0:fe[0])==null?void 0:ae.split(":"))==null?void 0:de.filter(Te=>Te!==""))??[]:[],relatedQuotes:te==null?void 0:te.relatedQuotes,fatherSyncContents:te==null?void 0:te.fatherSyncContents,sonSyncContents:te==null?void 0:te.sonSyncContents}}else{let te=[{label:"序号",prop:"sort"},{label:"函数名称",prop:"函数名称"},{label:"函数关联名",prop:"函数关联名"},{label:"函数参数",prop:"函数参数"},{label:"输出值",prop:"输出值"},{label:"导入文件",prop:"导入文件",formType:"Upload"}],ca=t==null?void 0:t[0];ca=ca==null?void 0:ca.slice(1,ca==null?void 0:ca.length),ca=he.analyzeSplitToContent(ca,":"),ca=ca==null?void 0:ca[(ca==null?void 0:ca.length)-1];let Ee=[];Ee.push("1");let oe=ca==null?void 0:ca.replace("(",Wl);oe=(Ce=oe==null?void 0:oe.split(Wl))==null?void 0:Ce[0],Ee.push(oe);let Te=ca==null?void 0:ca.replace("(",Wl);if(Te=(Fe=Te==null?void 0:Te.split(Wl))==null?void 0:Fe[1],Te=(T=(ye=Te==null?void 0:Te.replace(")",Wl))==null?void 0:ye.split(Wl))==null?void 0:T[0],(U=(ue=Te==null?void 0:Te.replace(",",Wl))==null?void 0:ue.split(Wl))==null||U.forEach(Ue=>{Ee.push(Ue)}),Ee.push(""),Ee.push(""),(Se=Ee==null?void 0:Ee[2])!=null&&Se.includes(".xlsx")||(Le=Ee==null?void 0:Ee[2])!=null&&Le.includes(".xls"))try{let Ue=jd+"/"+(Ee==null?void 0:Ee[2]),oa=await Pd(Ue),Ja=`生成js函数名称为${Ee==null?void 0:Ee[1]}的函数,规则为:`+(Ee==null?void 0:Ee[3])+"。根据上述描述获取对应的总结性详细可运行js函数,不需要任何注释。";if((oa==null?void 0:oa.status)===200){let L=oa==null?void 0:oa.data;const H=new FormData;H.append("file",L,Ee==null?void 0:Ee[2]),H.append("query",Ja);let Q=await Xs(H);Q=(Da=(la=(Pe=Q==null?void 0:Q.data)==null?void 0:Pe.data)==null?void 0:la.response)==null?void 0:Da.replace("generateResult",Ee==null?void 0:Ee[1]),Ee[Ee.length-2]=Q,Ee[Ee.length-1]=[{name:(ta=(le=Ee==null?void 0:Ee[2])==null?void 0:le.split("."))==null?void 0:ta[0],url:Ue}]}}catch{}return Ee=[Ee],{key:"Method",name:[],tableContents:Ee,tableColumns:te}}},Ud=(a,l)=>{var n,t,s,v,p,f,m,g,c,D,M,S,K,I,R,j,E,x,k,b,w,$,F,J,se,ge,Me,V,fe,ae,de,Ce,Fe,ye,T,ue,U,Se,Le,Pe,la,Da,le,ta,te,ca,Ee;let r=(t=(n=he.analyzeSplitToContent(a,"="))==null?void 0:n.filter(oe=>oe!=="="))==null?void 0:t.map(oe=>((oe==null?void 0:oe[(oe==null?void 0:oe.length)-1])==="="&&(oe=oe==null?void 0:oe.slice(0,(oe==null?void 0:oe.length)-1)),oe));if(Zs(r==null?void 0:r[1])){let oe=Yd(r),Te=(p=(v=(s=oe==null?void 0:oe.filter)==null?void 0:s.replace("@",Wl))==null?void 0:v.split(Wl))==null?void 0:p[0],Ue=(g=(m=(f=oe==null?void 0:oe.filter)==null?void 0:f.replace("(",Wl))==null?void 0:m.split(Wl))==null?void 0:g[1],oa=(M=(D=(c=oe==null?void 0:oe.filter)==null?void 0:c.replace("(",Wl))==null?void 0:D.split(Wl))==null?void 0:M[0];oa="@"+((S=oa==null?void 0:oa.split("@"))==null?void 0:S[1]),Ue=Ue==null?void 0:Ue.slice(0,(Ue==null?void 0:Ue.length)-1),Ue=(I=(K=he.analyzeSplitToContent(Ue,","))==null?void 0:K.map(L=>(L=oa+L,L)))==null?void 0:I.join("");let Ja=Te+"("+Ue+")";return{key:"Form",name:oe==null?void 0:oe.group,filter:Ja,formPage:((E=(j=(R=Te==null?void 0:Te.replace("*",Wl))==null?void 0:R.split(Wl))==null?void 0:j[0])==null?void 0:E.replaceAll(":","/"))??"",formGroup:((J=(F=($=(w=(b=(k=(x=Te==null?void 0:Te.replace("*",Wl))==null?void 0:x.split(Wl))==null?void 0:k[1])==null?void 0:b.replace("{",Wl))==null?void 0:w.split(Wl))==null?void 0:$[0])==null?void 0:F.split(":"))==null?void 0:J.filter(L=>L!==""))??[],value:[],menuFilter:l==null?void 0:l.menuFilter}}else{let oe=ac(r,l,r==null?void 0:r[1]),Te="";(se=oe==null?void 0:oe.tableFilter)!=null&&se.includes(Wl)?oe.tableFilter=(ge=oe==null?void 0:oe.tableFilter)==null?void 0:ge.replace(Wl,""):Te=(fe=(V=(Me=oe==null?void 0:oe.tableFilter)==null?void 0:Me.replace("(",Wl))==null?void 0:V.split(Wl))==null?void 0:fe[0];let Ue=(Ce=(de=(ae=oe==null?void 0:oe.tableFilter)==null?void 0:ae.replace("(",Wl))==null?void 0:de.split(Wl))==null?void 0:Ce[0];Ue=[{menus:(ye=(Fe=Ue==null?void 0:Ue.split("*"))==null?void 0:Fe[0])==null?void 0:ye.replaceAll(":","/"),groups:((ue=(T=Ue==null?void 0:Ue.split("*"))==null?void 0:T[1])==null?void 0:ue.split(":"))??[]}];let oa=(Le=(Se=(U=oe==null?void 0:oe.tableFilter)==null?void 0:U.replace("(",Wl))==null?void 0:Se.split(Wl))==null?void 0:Le[1];(oa==null?void 0:oa[(oa==null?void 0:oa.length)-1])===")"&&(oa=oa==null?void 0:oa.slice(0,(oa==null?void 0:oa.length)-1));let Ja=[];oe!=null&&oe.tableFilter&&((Pe=he.analyzeSplitToContent(oe==null?void 0:oe.tableFilter,","))==null||Pe.forEach(H=>{H!=null&&H.includes("@ShowHide=Hide")&&Ja.push("HideGroup=Yes")}));let L=(l==null?void 0:l.menuFilter)??[];return Array.isArray(L)||(L=L?[L]:[]),L=[...L,...Ja],{key:"Table",name:oe==null?void 0:oe.groupName,filter:oe==null?void 0:oe.tableFilter,tableColumns:oe==null?void 0:oe.tableColumns,quotePage:Te!==""?((le=(Da=(la=Te==null?void 0:Te.replace("*",Wl))==null?void 0:la.split(Wl))==null?void 0:Da[0])==null?void 0:le.replaceAll(":","/"))??"":void 0,quoteGroup:Te!==""?((Ee=(ca=(te=(ta=Te==null?void 0:Te.replace("*",Wl))==null?void 0:ta.split(Wl))==null?void 0:te[1])==null?void 0:ca.split(":"))==null?void 0:Ee.filter(H=>H!==""))??[]:[],menuFilter:L,relatedQuotes:Ue,fatherSyncContents:(oe==null?void 0:oe.fatherSyncContents)??[],sonSyncContents:(oe==null?void 0:oe.sonSyncContents)??[]}}},qd=async(a,l)=>{let r=[],n=l==null?void 0:l.length;return l=l==null?void 0:l.map(async(t,s)=>{let v=[];t=t==null?void 0:t.map(async p=>{var f,m;if(v.push(p),((f=he.analyzeSplitToContent(a,"="))==null?void 0:f.length)<=2){if(((m=he.analyzeSplitToContent(a,"="))==null?void 0:m.length)!==0){const g=await Hd(he.analyzeSplitToContent(a,"="),n,s,p);v.push(g)}}else v.push(Ud(a,p))}),await Promise.all(t),r.push(v)}),await Promise.all(l),r};let Vi="/",Wd="$",hn="$R";const Qs=a=>{var r,n,t;let l="";if((a==null?void 0:a.length)>1){let s=a==null?void 0:a.filter((v,p)=>p!==0);s=s==null?void 0:s.join(""),s=he.analyzerSplitToWord(s,")"),(s==null?void 0:s.length)!==1?(s==null?void 0:s[(s==null?void 0:s.length)-1])===")"?s=s==null?void 0:s.join(""):s=(r=s==null?void 0:s.filter((v,p)=>p!==(s==null?void 0:s.length)-1))==null?void 0:r.join(""):s=s==null?void 0:s[0],l="("+s,((t=a==null?void 0:a[0])==null?void 0:t[((n=a==null?void 0:a[0])==null?void 0:n.length)-2])==="@"&&(l="@"+l)}return{filter:l}},ec=(a,l=[])=>{let r=(a==null?void 0:a.map(s=>{var v,p;return(p=s==null?void 0:s.key)==null?void 0:p.slice(1,(v=s==null?void 0:s.key)==null?void 0:v.length)}))??[],n=[];r==null||r.forEach(s=>{var v,p,f,m,g,c,D,M,S,K,I,R,j,E,x,k,b,w,$,F,J,se,ge;if(s===""&&(s="算法库:通用算法"),s!=null&&s.includes(Wd)){let Me="",V=!0,fe=he.analyzerSplitToWord(s,"(");(fe==null?void 0:fe.length)>1&&(Me="("+((v=he.analyzerSplitToWord(fe==null?void 0:fe[1],")"))==null?void 0:v[0]),((f=fe==null?void 0:fe[0])==null?void 0:f[((p=fe==null?void 0:fe[0])==null?void 0:p.length)-2])==="@"&&(Me="@"+Me));let ae=s;ae=ae==null?void 0:ae.replace(Me,""),Me=un(Me),Me=(m=he.analyzeSplitToContent(Me,","))==null?void 0:m.map(ue=>((ue==null?void 0:ue[(ue==null?void 0:ue.length)-1])===","&&(ue=ue==null?void 0:ue.slice(0,(ue==null?void 0:ue.length)-1)),ue)),Me!=null&&Me.includes("@ShowHide=Hide")&&(V=!1);let de=(g=ae==null?void 0:ae.replace("$",hn))==null?void 0:g.split(hn),Ce=de==null?void 0:de[1],Fe=de==null?void 0:de[0];Fe!=null&&Fe.includes("[")&&(Fe=(D=(c=Fe==null?void 0:Fe.replace("[",hn))==null?void 0:c.split(hn))==null?void 0:D[0],Ce=Ce+":["+((K=(S=(M=de==null?void 0:de[0])==null?void 0:M.replace("[",hn))==null?void 0:S.split(hn))==null?void 0:K[1])),Fe=(R=(I=Fe==null?void 0:Fe.replaceAll(":","/"))==null?void 0:I.replaceAll("{",""))==null?void 0:R.replaceAll("}",""),(Fe==null?void 0:Fe[(Fe==null?void 0:Fe.length)-1])!=="/"&&(Fe=Fe+"/"),Ce=((j=Fe==null?void 0:Fe.split("/"))==null?void 0:j[0])+":"+Ce;let T="";if(!(Ce!=null&&Ce.includes("[")))T=Ce==null?void 0:Ce.replaceAll(":","/"),n==null||n.push({path:T,isShow:V,filter:Me,fatherPath:Fe});else{let ue=(x=(E=Ce==null?void 0:Ce.replace("[",hn))==null?void 0:E.split(hn))==null?void 0:x[1];ue=ue==null?void 0:ue.slice(0,(ue==null?void 0:ue.length)-1),ue=(k=he.analyzeSplitToContent(ue,","))==null?void 0:k.map(U=>((U==null?void 0:U[(U==null?void 0:U.length)-1])===","&&(U=U==null?void 0:U.slice(0,(U==null?void 0:U.length)-1)),U)),ue==null||ue.forEach(U=>{var Se,Le;T=((Le=(Se=Ce==null?void 0:Ce.replace("[",hn))==null?void 0:Se.split(hn))==null?void 0:Le[0])+U,T=T==null?void 0:T.replaceAll(":","/"),n==null||n.push({path:T,isShow:V,filter:Me,fatherPath:Fe})})}}else{let Me="",V=!0,fe=he.analyzerSplitToWord(s,"(");(fe==null?void 0:fe.length)>1&&(Me=(b=Qs(fe))==null?void 0:b.filter);let ae=s;if(ae=ae==null?void 0:ae.replace(Me,""),(Me==null?void 0:Me[0])==="("){Me=Me==null?void 0:Me.slice(1,(Me==null?void 0:Me.length)-1);let Ce=[];(w=he.analyzeSplitToContent(Me,","))==null||w.forEach(Fe=>{(Fe==null?void 0:Fe[(Fe==null?void 0:Fe.length)-1])===","&&(Fe=Fe==null?void 0:Fe.slice(0,(Fe==null?void 0:Fe.length)-1)),(Fe==null?void 0:Fe[0])==="("&&(Fe=Fe==null?void 0:Fe.slice(1,(Fe==null?void 0:Fe.length)-1)),(Fe==null?void 0:Fe[0])!=="@"&&(Fe="@"+Fe),Ce.push(un(Fe))}),Me=Ce==null?void 0:Ce.join(",")}else Me=un(Me);Me=($=he.analyzeSplitToContent(Me,","))==null?void 0:$.map(Ce=>((Ce==null?void 0:Ce[(Ce==null?void 0:Ce.length)-1])===","&&(Ce=Ce==null?void 0:Ce.slice(0,(Ce==null?void 0:Ce.length)-1)),Ce)),Me!=null&&Me.includes("@ShowHide=Hide")&&(V=!1),(ae==null?void 0:ae[(ae==null?void 0:ae.length)-1])==="}"&&(ae=ae+":"),ae=(F=ae==null?void 0:ae.replaceAll("{",""))==null?void 0:F.replaceAll("}","");let de="";if(ae!=null&&ae.includes("[")){let Ce=(J=ae==null?void 0:ae.replace("[",hn))==null?void 0:J.split(hn),Fe=Ce==null?void 0:Ce[1];Fe=Fe==null?void 0:Fe.slice(0,(Fe==null?void 0:Fe.length)-1),(ge=(se=he.analyzeSplitToContent(Fe,","))==null?void 0:se.map(ye=>((ye==null?void 0:ye[(ye==null?void 0:ye.length)-1])===","&&(ye=ye==null?void 0:ye.slice(0,(ye==null?void 0:ye.length)-1)),ye)))==null||ge.forEach(ye=>{de=(Ce==null?void 0:Ce[0])+ye,de=de==null?void 0:de.replaceAll(":","/"),n==null||n.push({path:de,isShow:V,filter:Me})})}else de=ae==null?void 0:ae.replaceAll(":","/"),n==null||n.push({path:de,isShow:V,filter:Me})}});let t=A.cloneDeep(n);return(l==null?void 0:l.length)>0&&(t=l),t=t==null?void 0:t.filter(s=>{var v,p,f,m;return!(s!=null&&s.fatherPath)&&((p=(v=s==null?void 0:s.path)==null?void 0:v.split(Vi))==null?void 0:p.length)>1&&((m=(f=s==null?void 0:s.path)==null?void 0:f.split(Vi))==null?void 0:m[1])===""}),t=t==null?void 0:t.map(s=>{var v;return s.path=(v=s.path)==null?void 0:v.replace(Vi,""),s.path}),(t==null?void 0:t.length)>0&&(n=n==null?void 0:n.map(s=>{var p,f,m,g,c,D,M;let v=t==null?void 0:t.find(S=>{var K;return(K=s==null?void 0:s.path)==null?void 0:K.includes(S)});return!(s!=null&&s.fatherPath)&&v&&!((p=s==null?void 0:s.path)!=null&&p.includes(Vi))&&!(t!=null&&t.find(S=>(s==null?void 0:s.path)===S))&&(s.path=v+Vi+((M=(m=(f=s==null?void 0:s.path)==null?void 0:f.split(v))==null?void 0:m[1])==null?void 0:M.slice(1,(D=(c=(g=s==null?void 0:s.path)==null?void 0:g.split(v))==null?void 0:c[1])==null?void 0:D.length))),s})),n},Kd=(a,l)=>ec([{key:a}],l),Gd=async(a,l)=>{const r=[],n=Kd(a==null?void 0:a.key,l);return n&&(n==null?void 0:n.length)>0&&(n==null||n.forEach(s=>{r.push([{key:"path",value:s==null?void 0:s.path,parentPath:(s==null?void 0:s.parentPath)??"",isShow:s==null?void 0:s.isShow,menuFilter:s==null?void 0:s.filter}])})),await qd(a==null?void 0:a.value,r)};let fl="$R",ji="[Any]";const Yd=a=>{var v,p;let l={},n=a==null?void 0:a[0];(n==null?void 0:n[0])==="*"&&(n=n==null?void 0:n.slice(1,n==null?void 0:n.length)),n=n==null?void 0:n.split(":"),l.group=n;let t=a==null?void 0:a[1],s;return t!=null&&t.includes("{")?s=(p=(v=t==null?void 0:t.replaceAll("{",""))==null?void 0:v.replaceAll("}",""))==null?void 0:p.replaceAll(ji,""):s=t==null?void 0:t.replaceAll(ji,""),(s==null?void 0:s[0])==="$"&&(s=s==null?void 0:s.slice(1,s==null?void 0:s.length)),l.filter=s,l},Jd=a=>{var D,M,S,K,I,R;let l=[],r=[],n=[],t=[],s=[],v=[],p="",f=a==null?void 0:a[0];(f==null?void 0:f[0])==="*"&&(f=f==null?void 0:f.slice(1,f==null?void 0:f.length));let m=he.analyzeSplitToContent(f,":");(D=m==null?void 0:m.filter(j=>(j==null?void 0:j[0])!=="{"&&(j==null?void 0:j[0])!=="["))==null||D.forEach(j=>{var x,k,b;(j==null?void 0:j[(j==null?void 0:j.length)-1])===":"&&(j=j==null?void 0:j.slice(0,(j==null?void 0:j.length)-1));let E=he.analyzerSplitToWord(j,"(");if((E==null?void 0:E.length)>1){p=(x=Qs(E))==null?void 0:x.filter;let w=j==null?void 0:j.replace(p,"");if(n.push(w),(p==null?void 0:p[0])==="("){p=p==null?void 0:p.slice(1,(p==null?void 0:p.length)-1);let $=[];(k=he.analyzeSplitToContent(p,","))==null||k.forEach(F=>{(F==null?void 0:F[(F==null?void 0:F.length)-1])===","&&(F=F==null?void 0:F.slice(0,(F==null?void 0:F.length)-1)),(F==null?void 0:F[0])==="("&&(F=F==null?void 0:F.slice(1,(F==null?void 0:F.length)-1)),(F==null?void 0:F[0])!=="@"&&(F="@"+F),$.push(un(F))}),p=$==null?void 0:$.join(",")}else p=un(p);p=(b=he.analyzeSplitToContent(p,","))==null?void 0:b.map($=>(($==null?void 0:$[($==null?void 0:$.length)-1])===","&&($=$==null?void 0:$.slice(0,($==null?void 0:$.length)-1)),$)),p!=null&&p.includes("@ShowHide=Hide")&&v.push(w),t=[...t,...p]}else n.push(E==null?void 0:E[0])});let g=(M=m==null?void 0:m.filter(j=>(j==null?void 0:j[0])==="{"))==null?void 0:M[0],c=(S=m==null?void 0:m.filter(j=>(j==null?void 0:j[0])==="["))==null?void 0:S[0];return l=Ci(c??""),l!=null&&l.every(j=>Array.isArray(j))&&(l=[l]),(g==null?void 0:g[(g==null?void 0:g.length)-1])===":"&&(g=g==null?void 0:g.slice(0,(g==null?void 0:g.length)-1)),s=(K=he.analyzeSplitToContent(g,"@"))==null?void 0:K[1],s="@"+s,g=g==null?void 0:g.replace(s,""),s=un(s),s=(I=he.analyzeSplitToContent(s,","))==null?void 0:I.map(j=>((j==null?void 0:j[(j==null?void 0:j.length)-1])===","&&(j=j==null?void 0:j.slice(0,(j==null?void 0:j.length)-1)),j)),(g==null?void 0:g[0])==="{"&&(g=g==null?void 0:g.slice(1,(g==null?void 0:g.length)-1)),g=(R=he.analyzeSplitToContent(g,","))==null?void 0:R.map(j=>((j==null?void 0:j[(j==null?void 0:j.length)-1])===","&&(j=j==null?void 0:j.slice(0,(j==null?void 0:j.length)-1)),j)),g==null||g.forEach((j,E)=>{var V,fe,ae,de,Ce,Fe,ye,T,ue,U,Se,Le,Pe,la,Da,le,ta,te,ca,Ee,oe,Te,Ue,oa,Ja,L,H,Q,me,ve,da;let x=[],k=[],b=!1,w,$=[],F=[],J=[],se="Input",ge=[],Me=[];if(j!=null&&j.includes("==")){w=(V=j==null?void 0:j.split("=="))==null?void 0:V[0];let ea=(fe=j==null?void 0:j.split("=="))==null?void 0:fe[1],ce="";((ae=he.analyzeSplitToContent(ea,"$"))==null?void 0:ae.length)>1&&((de=he.analyzeSplitToContent(ea,"$"))==null?void 0:de[0])!=="$"?(ce=(Ce=he.analyzeSplitToContent(ea,"$"))==null?void 0:Ce[0],ce=ce==null?void 0:ce.slice(0,(ce==null?void 0:ce.length)-1)):((Fe=he.analyzeSplitToContent(ea,"}"))==null?void 0:Fe.length)>1&&(ce=(ye=he.analyzeSplitToContent(ea,"}"))==null?void 0:ye[1]);let pa=ea==null?void 0:ea.replace(ce,"");(ce==null?void 0:ce[0])==="("&&(ce=ce==null?void 0:ce.slice(1,(ce==null?void 0:ce.length)-1)),(T=he.analyzeSplitToContent(ce,","))==null||T.forEach(We=>{var Ca;(We==null?void 0:We[0])!=="@"&&(We="@"+We),(We==null?void 0:We[(We==null?void 0:We.length)-1])===","&&(We=We==null?void 0:We.slice(0,(We==null?void 0:We.length)-1));let Ta=un(We);(Ca=he.analyzeSplitToContent(Ta,","))==null||Ca.forEach(Qe=>{(Qe==null?void 0:Qe[(Qe==null?void 0:Qe.length)-1])===","&&(Qe=Qe==null?void 0:Qe.slice(0,(Qe==null?void 0:Qe.length)-1)),x.push(Qe)})}),(pa==null?void 0:pa[0])==="$"&&(pa=pa==null?void 0:pa.slice(1,pa==null?void 0:pa.length));let Ne=(ue=pa==null?void 0:pa.replace("*",fl))==null?void 0:ue.split(fl);$=(U=Ne==null?void 0:Ne[0])==null?void 0:U.split(":"),F=(Le=(Se=he.analyzeSplitToContent(Ne==null?void 0:Ne[1],":"))==null?void 0:Se.filter((We,Ta)=>{var Ca,Qe;return Ta!==((Qe=(Ca=Ne==null?void 0:Ne[1])==null?void 0:Ca.split(":"))==null?void 0:Qe.length)-1}))==null?void 0:Le.map(We=>((We==null?void 0:We[(We==null?void 0:We.length)-1])===":"&&(We=We==null?void 0:We.slice(0,(We==null?void 0:We.length)-1)),We)),J=(la=(Pe=he.analyzeSplitToContent(Ne==null?void 0:Ne[1],":"))==null?void 0:Pe.filter((We,Ta)=>{var Ca,Qe;return Ta===((Qe=(Ca=Ne==null?void 0:Ne[1])==null?void 0:Ca.split(":"))==null?void 0:Qe.length)-1}))==null?void 0:la[0],J=(le=(Da=J==null?void 0:J.replaceAll("{",""))==null?void 0:Da.replaceAll("}",""))==null?void 0:le.split(":"),se="Select"}else if(((ta=he.analyzeSplitToContent(j,"="))==null?void 0:ta.length)>1)if(se="Select",w=(ca=(te=j==null?void 0:j.replace("=",fl))==null?void 0:te.split(fl))==null?void 0:ca[0],!(j!=null&&j.includes("If")))ge=(oe=(Ee=j==null?void 0:j.replace("=",fl))==null?void 0:Ee.split(fl))==null?void 0:oe[1],ge=ge==null?void 0:ge.split("||");else{let ea=(Ue=(Te=j==null?void 0:j.replace("=",fl))==null?void 0:Te.split(fl))==null?void 0:Ue[1];Me=(oa=he.analyzeSplitToContent(ea,")"))==null?void 0:oa.filter(ce=>!(ce!=null&&ce.includes("If"))),Me=Me==null?void 0:Me.map(ce=>((ce==null?void 0:ce[0])==="("&&(ce=ce==null?void 0:ce.slice(1,(ce==null?void 0:ce.length)-1)),ce=ce==null?void 0:ce.split("||"),ce)),k=(Ja=he.analyzeSplitToContent(ea,")"))==null?void 0:Ja.filter(ce=>ce==null?void 0:ce.includes("If")),k=k==null?void 0:k.map(ce=>((ce==null?void 0:ce[0])==="|"&&(ce=ce==null?void 0:ce.slice(2,ce==null?void 0:ce.length)),(ce==null?void 0:ce[0])==="("&&(ce=ce==null?void 0:ce.slice(1,(ce==null?void 0:ce.length)-1)),(ce==null?void 0:ce[0])!=="@"&&(ce="@"+ce),ce))}else if(((L=he.analyzeSplitToContent(j,"@"))==null?void 0:L.length)>1){w=(H=he.analyzeSplitToContent(j,"@"))==null?void 0:H[0],(w==null?void 0:w[(w==null?void 0:w.length)-1])==="@"&&(w=w==null?void 0:w.slice(0,(w==null?void 0:w.length)-1));let ea="@"+((Q=he.analyzeSplitToContent(j,"@"))==null?void 0:Q[1]);ea=un(ea),x=(me=he.analyzeSplitToContent(ea,","))==null?void 0:me.map(ce=>((ce==null?void 0:ce[(ce==null?void 0:ce.length)-1])===","&&(ce=ce==null?void 0:ce.slice(0,(ce==null?void 0:ce.length)-1)),ce)),x!=null&&x.find(ce=>ce==null?void 0:ce.includes("@Type"))&&(se=(da=(ve=x==null?void 0:x.find(ce=>ce==null?void 0:ce.includes("@Type")))==null?void 0:ve.split("="))==null?void 0:da[1])}else w=j;x!=null&&x.includes("@ShowHide=Hide")&&(b=!0),r.push({prop:w,label:w,value:"",menuPath:$,groups:F,columns:J,type:se,options:ge,allContents:Me,filters:x,width:g==null?void 0:g.length,isFormColHidden:b,filterContents:k})}),{groupName:n,groupFilters:t,formContents:r,contents:l,filter:s,hideContents:v}},Ci=a=>{var n,t;if(!a||typeof a!="string")return[];let l=[],r=a.slice(1,(a==null?void 0:a.length)-1);if((r==null?void 0:r[0])!=="[")(n=he.analyzeSplitToContent(r,","))==null||n.forEach(s=>{(s==null?void 0:s[(s==null?void 0:s.length)-1])===","&&(s=s.slice(0,(s==null?void 0:s.length)-1)),l.push(s??"")});else{let s=[];(t=he.analyzeSplitToContent(r,","))==null||t.forEach(v=>{(v==null?void 0:v[(v==null?void 0:v.length)-1])===","&&(v=v==null?void 0:v.slice(0,(v==null?void 0:v.length)-1)),s.push(Ci(v))}),l=s}return l},ft=(a,l)=>{var R,j,E,x,k,b,w,$,F,J,se,ge,Me,V,fe,ae,de,Ce,Fe,ye,T,ue,U,Se,Le,Pe,la,Da,le,ta,te,ca,Ee,oe,Te,Ue,oa,Ja,L,H,Q,me,ve,da,ea,ce,pa,Ne,We,Ta,Ca,Qe,Va;let r,n=[],t=[],s=[],v=[],p=[],f=[],m=[],g="Input",c,D="",M="",S="",K=[],I="";if(a!=null&&a.includes("==")||a!=null&&a.includes("=")||a!=null&&a.includes("@")||a!=null&&a.includes("||"))if(r=(R=a==null?void 0:a.split("=="))==null?void 0:R[0],c=(j=a==null?void 0:a.split("=="))==null?void 0:j[0],g="Select",a!=null&&a.includes("=")&&!(a!=null&&a.includes("=="))&&!((k=(x=(E=a==null?void 0:a.replace("=",fl))==null?void 0:E.split(fl))==null?void 0:x[1])!=null&&k.includes("If")))if(r=he.analyzeSplitToContent(a,"@"),r=r==null?void 0:r[0],(r==null?void 0:r[(r==null?void 0:r.length)-1])==="@"&&(r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1)),r=(w=(b=r==null?void 0:r.replace("=",fl))==null?void 0:b.split(fl))==null?void 0:w[0],r!=null&&r.includes("&")&&(r=(F=($=r==null?void 0:r.replace("&",fl))==null?void 0:$.split(fl))==null?void 0:F[0]),c=r,((J=he.analyzeSplitToContent(a,"@"))==null?void 0:J.length)>1&&!(a!=null&&a.includes("||"))){if(!(a!=null&&a.includes("&"))){let re=(se=he.analyzeSplitToContent(a,"@"))==null?void 0:se[1];if((re==null?void 0:re[0])!=="@"&&(re="@"+re),re=un(re),M=re,M!=null&&M.includes("@Type")){let X=he.analyzeSplitToContent(M,",");X=X==null?void 0:X.map(Z=>((Z==null?void 0:Z[(Z==null?void 0:Z.length)-1])===","&&(Z=Z==null?void 0:Z.slice(0,(Z==null?void 0:Z.length)-1)),Z)),X=(ge=X==null?void 0:X.filter(Z=>Z==null?void 0:Z.includes("@Type")))==null?void 0:ge[0],g=(Me=X==null?void 0:X.split("="))==null?void 0:Me[1]}}}else if(a!=null&&a.includes("||")){let re=[];n=(de=(ae=(fe=(V=a==null?void 0:a.replace("=",fl))==null?void 0:V.split(fl))==null?void 0:fe[1])==null?void 0:ae.split("||"))==null?void 0:de.map(X=>{var q,Be,Je,ra;let Z=X;if(Z!=null&&Z.includes("@")){let ba="@"+((Be=(q=Z==null?void 0:Z.replace("@",fl))==null?void 0:q.split(fl))==null?void 0:Be[1]);Z=(ra=(Je=Z==null?void 0:Z.replace("@",fl))==null?void 0:Je.split(fl))==null?void 0:ra[0],ba=Pi(ba),re.push(ba)}return{label:Z==null?void 0:Z.replaceAll("'",""),value:Z==null?void 0:Z.replaceAll("'","")}}),(re==null?void 0:re.length)>0&&(M="("+(re==null?void 0:re.join("||"))+")")}else g="Input",D=(ye=(Fe=(Ce=a==null?void 0:a.replace("=",fl))==null?void 0:Ce.split(fl))==null?void 0:Fe[1])==null?void 0:ye.replaceAll("'","");else if((U=(ue=(T=a==null?void 0:a.replace("=",fl))==null?void 0:T.split(fl))==null?void 0:ue[1])!=null&&U.includes("||")){r=(Se=a==null?void 0:a.split("="))==null?void 0:Se[0],c=(Le=a==null?void 0:a.split("="))==null?void 0:Le[0];let re=(la=(Pe=a==null?void 0:a.replace("=",fl))==null?void 0:Pe.split(fl))==null?void 0:la[1];re=he.analyzeSplitToContent(re,")");let X=re==null?void 0:re.filter(q=>!(q!=null&&q.includes("If")));X==null||X.forEach(q=>{(q==null?void 0:q[0])==="("&&(q=q==null?void 0:q.slice(1,(q==null?void 0:q.length)-1)),t==null||t.push(q==null?void 0:q.split("||"))});let Z=re==null?void 0:re.filter(q=>q==null?void 0:q.includes("If"));Z=Z==null?void 0:Z.map(q=>((q==null?void 0:q[0])==="|"&&(q==null?void 0:q[1])==="|"&&(q=q==null?void 0:q.slice(2,q==null?void 0:q.length)),(q==null?void 0:q[0])==="("&&(q=q==null?void 0:q.slice(1,(q==null?void 0:q.length)-1)),(q==null?void 0:q[0])!=="@"&&(q="@"+q),q)),s=Z}else{let re=a==null?void 0:a.split("=="),X=(Da=re==null?void 0:re.filter(Z=>(Z==null?void 0:Z.includes("$"))&&(Z==null?void 0:Z[0])!=="{"))==null?void 0:Da[0];if(X&&!(X!=null&&X.includes("&"))){let Z=(le=X==null?void 0:X.replace("*",fl))==null?void 0:le.split(fl),q=(Z==null?void 0:Z[0])===""?l==null?void 0:l.value:Z==null?void 0:Z[0];(q==null?void 0:q[0])==="("&&(q=(ta=he.analyzeSplitToContent(q,")"))==null?void 0:ta[1]),q=(ca=(te=q==null?void 0:q.replaceAll("{",""))==null?void 0:te.replaceAll("}",""))==null?void 0:ca.replaceAll(ji,""),(q==null?void 0:q[0])==="$"&&(q=(Ee=q==null?void 0:q.slice(1,q==null?void 0:q.length))==null?void 0:Ee.replaceAll(":","/")),v=q==null?void 0:q.split("/");let Be=(Te=(oe=Z==null?void 0:Z[1])==null?void 0:oe.replace("{",fl))==null?void 0:Te.split(fl),Je=Be==null?void 0:Be[0];(Je==null?void 0:Je[(Je==null?void 0:Je.length)-1])===":"&&(Je=Je==null?void 0:Je.slice(0,(Je==null?void 0:Je.length)-1)),p=Je==null?void 0:Je.split(":"),f=(L=(Ja=(oa=(Ue=Be==null?void 0:Be[1])==null?void 0:Ue.replace("}",fl))==null?void 0:oa.split(fl))==null?void 0:Ja[0])==null?void 0:L.split(":");let ra="";((H=he.analyzeSplitToContent(X,")"))==null?void 0:H.length)>1&&(ra=(Q=he.analyzeSplitToContent(X,")"))==null?void 0:Q[0]),ra&&ra!==""&&((ra==null?void 0:ra[0])!=="@"&&(ra="@"+ra),M=Pi(ra))}if(re!=null&&re.some(Z=>(Z==null?void 0:Z[0])==="&")){let Z=(me=re==null?void 0:re.filter(Je=>(Je==null?void 0:Je[0])==="&"))==null?void 0:me[0];(Z==null?void 0:Z[0])==="&"&&(Z=Z==null?void 0:Z.slice(1,Z==null?void 0:Z.length)),S=(da=(ve=Z==null?void 0:Z.replace("(",fl))==null?void 0:ve.split(fl))==null?void 0:da[0];let q=(ea=he.analyzeSplitToContent(Z,")"))==null?void 0:ea[0];q=(pa=(ce=q==null?void 0:q.replace("(",fl))==null?void 0:ce.split(fl))==null?void 0:pa[1],q=q==null?void 0:q.slice(0,(q==null?void 0:q.length)-1),(q==null?void 0:q[0])==="{"&&(q=q==null?void 0:q.slice(1,q==null?void 0:q.length)),(q==null?void 0:q[(q==null?void 0:q.length)-1])==="}"&&(q=q==null?void 0:q.slice(0,(q==null?void 0:q.length)-1)),K=q==null?void 0:q.split(",");let Be=(Ne=he.analyzeSplitToContent(Z,")"))==null?void 0:Ne[1];Be&&Be!==""&&(I=Pi(Be))}else if(!X&&((We=re==null?void 0:re.filter(Z=>(Z==null?void 0:Z[0])==="{"))==null?void 0:We.length)>0){let Z=re==null?void 0:re[(re==null?void 0:re.length)-1];Z=Z==null?void 0:Z.slice(1,(Z==null?void 0:Z.length)-1),Z=he.analyzeSplitToContent(Z,","),Z=Z==null?void 0:Z.map(q=>((q==null?void 0:q[(q==null?void 0:q.length)-1])===","&&(q=q==null?void 0:q.slice(0,(q==null?void 0:q.length)-1)),q)),Z=Z==null?void 0:Z.map(q=>{var Be,Je,ra,ba;if(q=q==null?void 0:q.replaceAll("$",""),q!=null&&q.includes("{")){let ga="";q=q==null?void 0:q.replaceAll("{","");let Aa=q==null?void 0:q.split("}");ga=((Je=(Be=Aa==null?void 0:Aa[0])==null?void 0:Be.split(":"))==null?void 0:Je[0])+":"+(Aa==null?void 0:Aa[1]),q=ga,q=q+":"}if(q!=null&&q.includes(ji)){let ga="",Aa=q==null?void 0:q.split(ji);ga=((ba=(ra=Aa==null?void 0:Aa[0])==null?void 0:ra.split(":"))==null?void 0:ba[0])+":"+(Aa==null?void 0:Aa[1]),q=ga,q=q+":"}return q=q==null?void 0:q.replaceAll(":","/"),q}),m=Z}else!((Ta=re==null?void 0:re[1])!=null&&Ta.includes("$"))&&((Ca=re==null?void 0:re[1])==null?void 0:Ca[0])!=="("&&f.push(re==null?void 0:re[1])}else r=(Qe=a==null?void 0:a.split("&"))==null?void 0:Qe[0],c=(Va=a==null?void 0:a.split("&"))==null?void 0:Va[0];return{label:r,prop:c,options:n,allContents:t,filterContents:s,menus:v,groups:p,words:f,align:"center",formType:g,filter:M,functionName:S,functionRelatedWords:K,calculatorFilter:I,relatedPages:m,value:D}},Co=(a,l)=>{var n,t,s,v,p,f,m,g,c,D,M,S,K,I,R,j,E,x,k,b,w,$,F,J,se,ge,Me,V,fe,ae;let r=[];if((a==null?void 0:a[0])==="{"&&(a==null?void 0:a[(a==null?void 0:a.length)-1])==="}"&&!((v=(s=(t=(n=a==null?void 0:a.slice(1,(a==null?void 0:a.length)-1))==null?void 0:n.replace(":",fl))==null?void 0:t.split(fl))==null?void 0:s[0])!=null&&v.includes(","))){let de=a==null?void 0:a.slice(1,(a==null?void 0:a.length)-1),Ce=(p=de==null?void 0:de.replace(":",fl))==null?void 0:p.split(fl);if(((f=he.analyzeSplitToContent(Ce==null?void 0:Ce[1],"="))==null?void 0:f.length)===1){let Fe=Ce==null?void 0:Ce[0],ye=[];(c=he.analyzeSplitToContent((g=Ce==null?void 0:Ce[1])==null?void 0:g.slice(1,((m=Ce==null?void 0:Ce[1])==null?void 0:m.length)-1),","))==null||c.forEach(T=>{var ue,U;((ue=he.analyzeSplitToContent(T,"="))==null?void 0:ue.length)>1?((T==null?void 0:T[(T==null?void 0:T.length)-1])===","&&(T=T==null?void 0:T.slice(0,(T==null?void 0:T.length)-1)),ye=[...ye,...Co(T,l)]):((T==null?void 0:T[(T==null?void 0:T.length)-1])===","&&(T=T==null?void 0:T.slice(0,(T==null?void 0:T.length)-1)),ye.push((U=Co(T,l))==null?void 0:U[0]))}),r==null||r.push({label:Fe,prop:Fe,children:ye,align:"center"})}else{let Fe=[];if(((D=he.analyzeSplitToContent(de,"="))==null?void 0:D.length)>=2){let T=(M=he.analyzeSplitToContent(de,"="))==null?void 0:M[1],ue=(S=he.analyzeSplitToContent(T,"/"))==null?void 0:S.map(U=>((U==null?void 0:U[(U==null?void 0:U.length)-1])==="/"&&(U=U==null?void 0:U.slice(0,(U==null?void 0:U.length)-1)),U));Fe=ue==null?void 0:ue.map(U=>(U=Ci(U),U))}let ye=(x=(E=(j=(R=(I=(K=de==null?void 0:de.replace("{",fl))==null?void 0:K.split(fl))==null?void 0:I[1])==null?void 0:R.replace("}",fl))==null?void 0:j.split(fl))==null?void 0:E[0])==null?void 0:x.split(",");ye==null||ye.forEach((T,ue)=>{(Fe==null?void 0:Fe.length)>0&&ue===0?r==null||r.push({label:T,prop:T,align:"center",formType:"Select",relatedContents:Fe==null?void 0:Fe.map(U=>{let Se={};return ye==null||ye.forEach((Le,Pe)=>{Se[Le]=U==null?void 0:U[Pe]}),Se}),options:Fe==null?void 0:Fe.map(U=>({label:U==null?void 0:U[0],value:U==null?void 0:U[0]})),mainKey:!0}):r==null||r.push({label:T,prop:T,align:"center"})})}}else if((a==null?void 0:a[0])==="{")if(((k=he.analyzeSplitToContent(a,"="))==null?void 0:k.length)===2&&((w=(b=he.analyzeSplitToContent(a,"="))==null?void 0:b[1])==null?void 0:w[0])==="["){let de=[];if((($=he.analyzeSplitToContent(a,"="))==null?void 0:$.length)>=2){let Fe=(F=he.analyzeSplitToContent(a,"="))==null?void 0:F[1],ye=(se=(J=he.analyzeSplitToContent(Fe,"|"))==null?void 0:J.filter(T=>T!=="|"))==null?void 0:se.map(T=>((T==null?void 0:T[(T==null?void 0:T.length)-1])==="|"&&(T=T==null?void 0:T.slice(0,(T==null?void 0:T.length)-1)),T));de=ye==null?void 0:ye.map(T=>(T=Ci(T),T))}let Ce=(Me=(ge=a==null?void 0:a.replace("}",fl))==null?void 0:ge.split(fl))==null?void 0:Me[0];Ce=(V=Ce==null?void 0:Ce.slice(1,Ce==null?void 0:Ce.length))==null?void 0:V.split(","),Ce==null||Ce.forEach((Fe,ye)=>{(de==null?void 0:de.length)>0&&ye===0?r==null||r.push({label:Fe,prop:Fe,align:"center",formType:"Select",relatedContents:de==null?void 0:de.map(T=>{let ue={};return Ce==null||Ce.forEach((U,Se)=>{ue[U]=T==null?void 0:T[Se]}),ue}),options:de==null?void 0:de.map(T=>({label:T==null?void 0:T[0],value:T==null?void 0:T[0]})),mainKey:!0}):r==null||r.push({label:Fe,prop:Fe,align:"center"})})}else(fe=he.analyzeSplitToContent(a,","))==null||fe.forEach(de=>{var Ce,Fe,ye,T,ue,U,Se,Le,Pe,la,Da,le,ta,te,ca,Ee,oe,Te,Ue,oa,Ja,L,H,Q,me,ve,da,ea,ce,pa,Ne,We,Ta,Ca,Qe,Va,re;if((de==null?void 0:de[(de==null?void 0:de.length)-1])===","&&(de=de==null?void 0:de.slice(0,(de==null?void 0:de.length)-1)),(de==null?void 0:de[0])==="{"){let X=he.analyzeSplitToContent(de,"="),Z=X==null?void 0:X[(X==null?void 0:X.length)-1],q=[],Be=[],Je=[],ra="",ba="",ga=[],Aa=[],_a=(Ce=Z==null?void 0:Z.replace("*",fl))==null?void 0:Ce.split(fl),Oe=(_a==null?void 0:_a[0])===""?l==null?void 0:l.value:_a==null?void 0:_a[0];Oe=he.analyzeSplitToContent(Oe,")");let Za="";if((Oe==null?void 0:Oe.length)>1&&((Fe=Oe==null?void 0:Oe[0])==null?void 0:Fe[0])!=="&"&&(Za=Oe==null?void 0:Oe[0],(Za==null?void 0:Za[0])!=="@"&&(Za="@"+Za),ba=Za??""),Oe=(ye=Oe==null?void 0:Oe.filter(kl=>(kl==null?void 0:kl[0])==="$"))==null?void 0:ye[0],((T=he.analyzeSplitToContent(Oe,"}"))==null?void 0:T.length)>1&&((U=(ue=he.analyzeSplitToContent(Oe,"}"))==null?void 0:ue[1])==null?void 0:U[0])==="("&&(Za=(Se=he.analyzeSplitToContent(Oe,"}"))==null?void 0:Se[1],(Za==null?void 0:Za[0])!=="@"&&(Za="@"+Za),ba!==""&&(ba=ba+","),ba=ba+Za),(Le=Oe==null?void 0:Oe.slice(1,(Oe==null?void 0:Oe.length)-1))!=null&&Le.includes("$")||(Oe=(Pe=he.analyzeSplitToContent(Oe,"}"))==null?void 0:Pe[0]),(Oe==null?void 0:Oe[0])==="$"&&(Oe=(la=Oe==null?void 0:Oe.replace("{",""))==null?void 0:la.replace("}",":"),Oe=(Da=Oe==null?void 0:Oe.slice(1,Oe==null?void 0:Oe.length))==null?void 0:Da.replaceAll(":","/")),Oe!=null&&Oe.includes("$")){let kl=(le=Oe==null?void 0:Oe.split("$"))==null?void 0:le[0];kl=(ta=kl==null?void 0:kl.split("/"))==null?void 0:ta[0],Oe=kl+"/"+((te=Oe==null?void 0:Oe.split("$"))==null?void 0:te[1])+"/"}q=(Oe==null?void 0:Oe.split("/"))??[];let Ha=(Ee=(ca=_a==null?void 0:_a[1])==null?void 0:ca.replace("{",fl))==null?void 0:Ee.split(fl);if((Ue=(Te=(oe=_a==null?void 0:_a[1])==null?void 0:oe.split("(@"))==null?void 0:Te[0])!=null&&Ue.includes("&&")||(L=(Ja=(oa=_a==null?void 0:_a[1])==null?void 0:oa.split("@"))==null?void 0:Ja[0])!=null&&L.includes("&&")){let kl=(H=_a==null?void 0:_a[1])!=null&&H.includes("(@")?(ve=(me=(Q=_a==null?void 0:_a[1])==null?void 0:Q.split("(@"))==null?void 0:me[0])==null?void 0:ve.split("&&"):(ce=(ea=(da=_a==null?void 0:_a[1])==null?void 0:da.split("@"))==null?void 0:ea[0])==null?void 0:ce.split("&&");ga=kl==null?void 0:kl.map(ja=>{var zl,Rl;return(ja==null?void 0:ja[0])==="*"&&(ja=ja==null?void 0:ja.slice(1,ja==null?void 0:ja.length)),ja=(Rl=(zl=ja==null?void 0:ja.replace("{",fl))==null?void 0:zl.split(fl))==null?void 0:Rl[0],(ja==null?void 0:ja[(ja==null?void 0:ja.length)-1])===":"&&(ja=ja==null?void 0:ja.slice(0,(ja==null?void 0:ja.length)-1)),ja=ja==null?void 0:ja.split(":"),ja});let Fl=[];kl==null||kl.forEach((ja,zl)=>{var Rl,Ma;(ja==null?void 0:ja[0])==="*"&&(ja=ja==null?void 0:ja.slice(1,ja==null?void 0:ja.length)),ja=(Ma=(Rl=ja==null?void 0:ja.replace("{",fl))==null?void 0:Rl.split(fl))==null?void 0:Ma[1],(ja==null?void 0:ja[(ja==null?void 0:ja.length)-1])==="}"&&(ja=ja==null?void 0:ja.slice(0,(ja==null?void 0:ja.length)-1)),ja=ja==null?void 0:ja.split(","),Fl.push(zl===0?(ja==null?void 0:ja.length)-1:ja==null?void 0:ja.length),Aa=[...Aa,...ja]}),Fl=(pa=he.prefixSum(Fl))==null?void 0:pa.map(ja=>ja==null?void 0:ja.total),ga=ga==null?void 0:ga.map((ja,zl)=>({number:Fl==null?void 0:Fl[zl],contents:ja}))}let xl=Ha==null?void 0:Ha[0];(xl==null?void 0:xl[(xl==null?void 0:xl.length)-1])===":"&&(xl=xl==null?void 0:xl.slice(0,(xl==null?void 0:xl.length)-1)),Be=(xl==null?void 0:xl.split(":"))??[],Je=((Ca=(Ta=(We=(Ne=Ha==null?void 0:Ha[1])==null?void 0:Ne.replace("}",fl))==null?void 0:We.split(fl))==null?void 0:Ta[0])==null?void 0:Ca.split(","))??[];let Yl=(Va=X==null?void 0:X[0])==null?void 0:Va.slice(1,((Qe=X==null?void 0:X[0])==null?void 0:Qe.length)-2);ba&&ba!==""&&(ra=Pi(ba)),(re=Yl==null?void 0:Yl.split(","))==null||re.forEach((kl,Fl)=>{var ja,zl,Rl,Ma,rl;((ja=he.analyzeSplitToContent(kl,"@"))==null?void 0:ja.length)>1&&(kl=(zl=he.analyzeSplitToContent(kl,"@"))==null?void 0:zl[0],(kl==null?void 0:kl[(kl==null?void 0:kl.length)-1])==="@"&&(kl=kl==null?void 0:kl.slice(0,(kl==null?void 0:kl.length)-1))),r.push({label:kl,prop:kl,align:"center",menus:q,groups:(ga==null?void 0:ga.length)===0?Be:(Rl=ga==null?void 0:ga.find(sl=>(sl==null?void 0:sl.number)>=Fl))==null?void 0:Rl.contents,words:(Aa==null?void 0:Aa.length)===0?(Ma=Je==null?void 0:Je[Fl])==null?void 0:Ma.split(":"):(rl=Aa==null?void 0:Aa[Fl])==null?void 0:rl.split(":"),formType:(q==null?void 0:q.length)>0?"Select":"Input",mainKey:Fl===0,filter:ra,isMainPath:(ga==null?void 0:ga.findIndex(sl=>(sl==null?void 0:sl.number)>=Fl))===0})})}else r.push({label:de,prop:de,align:"center"})});else{let de=(ae=he.analyzeSplitToContent(a,","))==null?void 0:ae.map(Ce=>((Ce==null?void 0:Ce[(Ce==null?void 0:Ce.length)-1])===","&&(Ce=Ce==null?void 0:Ce.slice(0,(Ce==null?void 0:Ce.length)-1)),Ce));de==null||de.forEach(Ce=>{r.push(ft(Ce,l))})}return r},Xd=(a,l)=>{var v,p,f,m,g;let r=a;if(!a)return;let n="";((v=he.analyzeSplitToContent(a,"}"))==null?void 0:v.length)>1&&(r=(p=he.analyzeSplitToContent(a,"}"))==null?void 0:p[0],n=(f=he.analyzeSplitToContent(a,"}"))==null?void 0:f[1]),(a==null?void 0:a[0])==="{"&&(a==null?void 0:a[(a==null?void 0:a.length)-1])==="}"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1));let t=[],s=[];return t.push({label:"排序",prop:"sort"}),t.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(m=he.analyzeSplitToContent(r,","))==null||m.forEach(c=>{var D;(c==null?void 0:c[(c==null?void 0:c.length)-1])===","&&(c=c==null?void 0:c.slice(0,(c==null?void 0:c.length)-1)),(c==null?void 0:c[0])==="{"?(D=Co(c,l))==null||D.forEach(M=>{t.push(M)}):t.push(ft(c,l))}),t!=null&&t.some(c=>{var D;return(D=c==null?void 0:c.prop)==null?void 0:D.includes("@")})&&(t=t==null?void 0:t.filter(c=>{var D;return!((D=c==null?void 0:c.prop)!=null&&D.includes("@"))})),n!==""&&((n==null?void 0:n[0])=="{"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),(g=he.analyzeSplitToContent(n,","))==null||g.forEach(c=>{var D;(c==null?void 0:c[(c==null?void 0:c.length)-1])===","&&(c=c==null?void 0:c.slice(0,(c==null?void 0:c.length)-1)),(c==null?void 0:c[0])==="{"?(D=Co(c,l))==null||D.forEach(M=>{s.push(M)}):s.push(ft(c,l))})),{columns:t,secondColumns:s}},un=a=>{var l,r,n,t,s;if(a!=null&&a.includes("@Filter")||a!=null&&a.includes("@Condition")||a!=null&&a.includes("@If"))return a;{let v=(r=(l=a==null?void 0:a.replace("(",fl))==null?void 0:l.split(fl))==null?void 0:r[1],p=(t=(n=a==null?void 0:a.replace("(",fl))==null?void 0:n.split(fl))==null?void 0:t[0];return v=v==null?void 0:v.slice(0,(v==null?void 0:v.length)-1),v=(s=he.analyzeSplitToContent(v,","))==null?void 0:s.map(f=>((f==null?void 0:f[(f==null?void 0:f.length)-1])===","&&(f=f==null?void 0:f.slice(0,(f==null?void 0:f.length)-1)),(f==null?void 0:f[0])==="("&&(f=f==null?void 0:f.slice(1,(f==null?void 0:f.length)-1)),p+f)),v=v==null?void 0:v.join(","),a!=null&&a.includes("@Quote")&&(v!=null&&v.includes("@QuoteType")||(v=v===""?v+"@QuoteType=Manual":v+",@QuoteType=Manual"),v!=null&&v.includes("@QuoteSonSync")||(v=v===""?v+"@QuoteSonSync=No":v+",@QuoteSonSync=No"),v!=null&&v.includes("@QuoteFatherSync")||(v=v===""?v+"@QuoteFatherSync=Yes":v+",@QuoteFatherSync=Yes")),v}},rs=a=>{let l=a==null?void 0:a.map(r=>{var n,t;return{menus:r==null?void 0:r.menus,content:((n=r==null?void 0:r.menus)==null?void 0:n.join("/"))+fl+((t=r==null?void 0:r.groups)==null?void 0:t.join("/"))}});return l=l==null?void 0:l.filter(r=>{var n;return(r==null?void 0:r.menus)&&((n=r==null?void 0:r.menus)==null?void 0:n.length)>0}),l=l==null?void 0:l.map(r=>r==null?void 0:r.content),l=[...new Set(l)],l=l==null?void 0:l.map(r=>{var n,t;return{menus:(n=r==null?void 0:r.split(fl))==null?void 0:n[0],groups:((t=r==null?void 0:r.split(fl))==null?void 0:t[1])??[]}}),l},ns=a=>{var r;let l=a;return(l==null?void 0:l[0])==="("&&(l==null?void 0:l[1])==="("&&(l=l.slice(1,(l==null?void 0:l.length)-1)),l=(r=he.analyzeSplitToContent(l,","))==null?void 0:r.map(n=>((n==null?void 0:n[(n==null?void 0:n.length)-1])===","&&(n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1)),(n==null?void 0:n[0])!=="@"&&(n="@"+n),n=un(n),n)),l==null?void 0:l.join(",")},ac=(a,l,r="")=>{var j,E,x,k,b,w,$,F,J,se,ge,Me,V,fe,ae,de,Ce,Fe,ye,T,ue,U,Se,Le,Pe,la,Da,le,ta,te,ca,Ee,oe,Te,Ue,oa,Ja,L,H,Q,me,ve,da,ea,ce,pa,Ne,We,Ta,Ca,Qe,Va,re;let n=[],t=[],s=[],v="",p="",f="",m=[],g=[],c=[],D="";if(((j=a==null?void 0:a[0])==null?void 0:j[0])!=="*"&&((E=a==null?void 0:a[0])==null?void 0:E[0])!=="$"&&!((x=a==null?void 0:a[0])!=null&&x.includes("$")))return;((k=a==null?void 0:a[0])==null?void 0:k[0])!=="*"&&((b=a==null?void 0:a[0])==null?void 0:b[0])!=="$"&&(v=(w=he.analyzeSplitToContent(a==null?void 0:a[0],")"))==null?void 0:w[0],(v==null?void 0:v[0])!=="@"&&(v="@"+v),v=Pi(v),f=($=he.analyzeSplitToContent(a==null?void 0:a[0],")"))==null?void 0:$[1],(f==null?void 0:f[0])==="$"&&(f=f==null?void 0:f.slice(1,f==null?void 0:f.length)),f=f==null?void 0:f.replaceAll(":","/"));let S=he.analyzeSplitToContent(a==null?void 0:a[0],":");if(n=(F=S==null?void 0:S.filter(X=>(X==null?void 0:X[0])!=="{"&&(X==null?void 0:X[0])!=="["))==null?void 0:F.join(""),p=(J=a==null?void 0:a[0])==null?void 0:J.replace(n,""),(n==null?void 0:n[0])==="("&&(n=""),D=(se=S==null?void 0:S.filter(X=>(X==null?void 0:X[0])!=="["))==null?void 0:se.join(""),D=(ge=a==null?void 0:a[0])==null?void 0:ge.replace(D,""),p=p==null?void 0:p.replace(D,""),(n==null?void 0:n[0])==="*"&&(n=n==null?void 0:n.slice(1,n==null?void 0:n.length)),(n==null?void 0:n[(n==null?void 0:n.length)-1])===":"&&(n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1)),((Me=he.analyzeSplitToContent(p,"@"))==null?void 0:Me.length)>1&&(v=(V=he.analyzeSplitToContent(p,"@"))==null?void 0:V[1],(v==null?void 0:v[(v==null?void 0:v.length)-1])===":"&&(v=v==null?void 0:v.slice(0,(v==null?void 0:v.length)-1)),v="@"+v,v=un(v),p=(fe=he.analyzeSplitToContent(p,"@"))==null?void 0:fe[0],p=p==null?void 0:p.slice(0,(p==null?void 0:p.length)-1)),((ae=he.analyzeSplitToContent(n,"@"))==null?void 0:ae.length)>1){v!==""&&(v=v+",");let X=(de=he.analyzeSplitToContent(n,"@"))==null?void 0:de[1];X="@"+X,X=un(X),v=v+X,n=(Ce=he.analyzeSplitToContent(n,"@"))==null?void 0:Ce[0]}if((n==null?void 0:n[(n==null?void 0:n.length)-1])==="@"&&(n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1)),n=n===""?[]:n==null?void 0:n.split(":"),(p==null?void 0:p[(p==null?void 0:p.length)-1])===":"&&(p=p==null?void 0:p.slice(0,(p==null?void 0:p.length)-1)),r!==""){let X=(Fe=he.analyzeSplitToContent(r,")"))==null?void 0:Fe[0],Z=(ye=he.analyzeSplitToContent(r,"@"))==null?void 0:ye[1];f=(ue=(T=he.analyzeSplitToContent(r,"@"))==null?void 0:T[0])==null?void 0:ue.replace(X,""),(f==null?void 0:f[(f==null?void 0:f.length)-1])==="@"&&(f=f==null?void 0:f.slice(0,(f==null?void 0:f.length)-1)),X=ns(X),Z=ns(Z);let q=X??"";if(q!==""&&(q=q+","),q=q+Z,(q==null?void 0:q[(q==null?void 0:q.length)-1])===","&&(q=q==null?void 0:q.slice(0,(q==null?void 0:q.length)-1)),q!==""&&v!==""&&(v=v+","),v=v+q,(f==null?void 0:f[0])==="$"&&(f=f==null?void 0:f.slice(1,f==null?void 0:f.length)),f=(U=he.analyzeSplitToContent(f,":"))==null?void 0:U.filter((Be,Je)=>{var ra;return!((Be==null?void 0:Be[0])==="{"&&Je===((ra=he.analyzeSplitToContent(f,":"))==null?void 0:ra.length)-1)}),f=f==null?void 0:f.join(""),(f==null?void 0:f[(f==null?void 0:f.length)-1])===":"&&(f=f==null?void 0:f.slice(0,(f==null?void 0:f.length)-1)),v!=null&&v.includes("@Sync")||(v=v===""?v+"@Sync=(Yes,Yes)":v+",@Sync=(Yes,Yes)"),f!=null&&f.includes("$")){let Be=(Le=(Se=f==null?void 0:f.replace("*",fl))==null?void 0:Se.split(fl))==null?void 0:Le[1],Je=(la=(Pe=f==null?void 0:f.replace("*",fl))==null?void 0:Pe.split(fl))==null?void 0:la[0];Je=Je==null?void 0:Je.split("$"),Je=((le=(Da=Je==null?void 0:Je[0])==null?void 0:Da.split(":"))==null?void 0:le[0])+":"+(Je==null?void 0:Je[1])+":",f=Je+"*"+Be}else f=(ta=f==null?void 0:f.replaceAll("{",""))==null?void 0:ta.replaceAll("}","")}v!==""&&v&&(v="("+v+")"),v=f+v,((te=he.analyzeSplitToContent(p,"}"))==null?void 0:te.length)>1&&(p=(ca=he.analyzeSplitToContent(p,"}"))==null?void 0:ca.filter(X=>(X==null?void 0:X[0])!=="@"),p=p==null?void 0:p.join(""));let K=Xd(p,l);s=p===""?[]:(K==null?void 0:K.columns)??[],c=he.getColumnChild(s);let I=he.getColumnChild(s);s!=null&&s.some(X=>{var Z;return Array.isArray(X==null?void 0:X.children)&&((Z=X==null?void 0:X.children)==null?void 0:Z.length)>0})&&(s=[s]),t=D?Ci(D):[],!(t!=null&&t.every(X=>Array.isArray(X)))&&(t==null?void 0:t.length)>0&&(t=[t]),(t==null?void 0:t.length)>0&&(Array.isArray(t==null?void 0:t[0])&&((Ee=t==null?void 0:t[0])!=null&&Ee.every(X=>Array.isArray(X)))?t=t==null?void 0:t.map((X,Z)=>(X=X.map((q,Be)=>(q.unshift("{}"),q.unshift((Be+1).toString()),q)),X)):t=t==null?void 0:t.map((X,Z)=>(X.unshift("{}"),X.unshift((Z+1).toString()),X))),K!=null&&K.secondColumns&&((oe=K==null?void 0:K.secondColumns)==null?void 0:oe.length)>0&&((t==null?void 0:t.length)>0?t=t==null?void 0:t.map((X,Z)=>{var q,Be;return Array.isArray(X==null?void 0:X[0])?X=X==null?void 0:X.map((Je,ra)=>{var ba,ga;return Je.unshift((ga=(ba=K==null?void 0:K.secondColumns)==null?void 0:ba[ra])==null?void 0:ga.prop),Je}):X.unshift((Be=(q=K==null?void 0:K.secondColumns)==null?void 0:q[Z])==null?void 0:Be.prop),X}):t=(Te=K==null?void 0:K.secondColumns)==null?void 0:Te.map((X,Z)=>(X=[X==null?void 0:X.label],X.push(Z),X)),s.unshift({label:"",prop:"disabled",sortable:!1})),c=c==null?void 0:c.map(X=>{var Z,q;return{menus:X==null?void 0:X.menus,content:((Z=X==null?void 0:X.menus)==null?void 0:Z.join("/"))+fl+((q=X==null?void 0:X.groups)==null?void 0:q.join("/"))}});let R=[];if(((oa=(Ue=v==null?void 0:v.replace("(",fl))==null?void 0:Ue.split(fl))==null?void 0:oa[0])!==""&&(R=(L=(Ja=v==null?void 0:v.replace("(",fl))==null?void 0:Ja.split(fl))==null?void 0:L[0],R=[R],R=R==null?void 0:R.map(X=>{var q,Be,Je;let Z=X==null?void 0:X.split("*");return{menus:(q=Z==null?void 0:Z[0])==null?void 0:q.split(":"),content:((Be=Z==null?void 0:Z[0])==null?void 0:Be.replaceAll(":","/"))+fl+((Je=Z==null?void 0:Z[1])==null?void 0:Je.replaceAll(":","/"))}}),c=[...c,...R]),c=c==null?void 0:c.filter(X=>{var Z;return(X==null?void 0:X.menus)&&((Z=X==null?void 0:X.menus)==null?void 0:Z.length)>0}),c=c==null?void 0:c.map(X=>X==null?void 0:X.content),c=[...new Set(c)],c=c==null?void 0:c.map(X=>{var Z,q;return{menus:(Z=X==null?void 0:X.split(fl))==null?void 0:Z[0],groups:((q=X==null?void 0:X.split(fl))==null?void 0:q[1])??[]}}),m=I==null?void 0:I.filter(X=>{var Z;return(X==null?void 0:X.filter)&&((Z=X==null?void 0:X.filter)==null?void 0:Z.includes("@Sync"))}),(m==null?void 0:m.length)>0&&(m=m==null?void 0:m.filter(X=>{var Z,q,Be,Je;return(Je=(Be=(q=(Z=he.analyzeSplitToContent(X==null?void 0:X.filter,","))==null?void 0:Z.find(ra=>ra==null?void 0:ra.includes("@Sync")))==null?void 0:q.split(","))==null?void 0:Be[0])==null?void 0:Je.includes("Yes")}),m=rs(m)),g=I==null?void 0:I.filter(X=>{var Z;return(X==null?void 0:X.filter)&&((Z=X==null?void 0:X.filter)==null?void 0:Z.includes("@Sync"))}),(g==null?void 0:g.length)>0&&(g=g==null?void 0:g.filter(X=>{var Z,q,Be,Je;return(Je=(Be=(q=(Z=he.analyzeSplitToContent(X==null?void 0:X.filter,","))==null?void 0:Z.find(ra=>ra==null?void 0:ra.includes("@Sync")))==null?void 0:q.split(","))==null?void 0:Be[1])==null?void 0:Je.includes("Yes")}),g=rs(g)),v!==""&&(v!=null&&v.includes("@Sync"))&&(v==null?void 0:v[0])!=="("){let X=(H=v==null?void 0:v.replace("(",fl))==null?void 0:H.split(fl),Z=X==null?void 0:X[1];if(Z=Z==null?void 0:Z.slice(0,(Z==null?void 0:Z.length)-1),Z=he.analyzeSplitToContent(Z,","),(ve=(me=(Q=Z==null?void 0:Z.find(q=>q==null?void 0:q.includes("@Sync")))==null?void 0:Q.split(","))==null?void 0:me[0])!=null&&ve.includes("Yes")){let q=X==null?void 0:X[0];q=[{menus:(ea=(da=q==null?void 0:q.split("*"))==null?void 0:da[0])==null?void 0:ea.replaceAll(":","/"),groups:((pa=(ce=q==null?void 0:q.split("*"))==null?void 0:ce[1])==null?void 0:pa.split(":"))??[]}],m=[...m,...q]}if((Ta=(We=(Ne=Z==null?void 0:Z.find(q=>q==null?void 0:q.includes("@Sync")))==null?void 0:Ne.split(","))==null?void 0:We[1])!=null&&Ta.includes("Yes")){let q=X==null?void 0:X[0];q=[{menus:(Qe=(Ca=q==null?void 0:q.split("*"))==null?void 0:Ca[0])==null?void 0:Qe.replaceAll(":","/"),groups:((re=(Va=q==null?void 0:q.split("*"))==null?void 0:Va[1])==null?void 0:re.split(":"))??[]}],g=[...g,...q]}}return{groupName:n,tableColumns:s,tableFilter:v,tableContents:t,columns:(K==null?void 0:K.secondColumns)??[],relatedQuotes:c,fatherSyncContents:m,sonSyncContents:g}},lc=(a,l)=>(a=a==null?void 0:a.map((r,n)=>{var t,s,v,p;if(Array.isArray(r))r=r==null?void 0:r.map(f=>{var m,g,c,D;return f!=null&&f.isMainPath||(((m=f==null?void 0:f.children)==null?void 0:m.length)>0?f.children=lc(f.children,l):((g=f==null?void 0:f.menus)==null?void 0:g.length)>0&&!((c=r==null?void 0:r[0])!=null&&c.isMainPath)&&(f.menus=(D=f.menus)==null?void 0:D.map((M,S)=>{var K,I;return((K=f.menus)==null?void 0:K.length)-1===S&&M===""&&(l==null?void 0:l.parentContent)+"/"!==((I=f.menus)==null?void 0:I.join("/"))&&(M=l==null?void 0:l.value),f}),f.bindMenus=f.menus)),f});else{if(n===0&&((t=r.menus)==null?void 0:t.length)>0&&(r.mainKey=!0),r!=null&&r.isMainPath)return r;((s=r.menus)==null?void 0:s.length)>0&&!((v=a==null?void 0:a[0])!=null&&v.isMainPath)&&(r.menus=(p=r.menus)==null?void 0:p.map((f,m)=>{var g,c;return((g=r.menus)==null?void 0:g.length)-1===m&&f===""&&(l==null?void 0:l.parentContent)+"/"!==((c=r.menus)==null?void 0:c.join("/"))&&(f=l==null?void 0:l.value),f}),r.bindMenus=r.menus)}return r}),a),Zd=(a,l)=>(a=a==null?void 0:a.map(r=>((r==null?void 0:r.key)==="header"&&(r.contents=lc(r.contents,l)),r)),a),ht=(a,l)=>{let r=a;return Array.isArray(r==null?void 0:r[0])?r=r==null?void 0:r.map(n=>(n=ht(n,l),n)):r=r==null?void 0:r.map(n=>{var t,s;return n!=null&&n.children&&((t=n==null?void 0:n.children)==null?void 0:t.length)>0?n.children=ht(n==null?void 0:n.children,l):n!=null&&n.words&&((s=n==null?void 0:n.words)==null?void 0:s.length)>0&&(l!=null&&l.find(v=>{var p,f,m,g;return((g=(p=n==null?void 0:n.prop)==null?void 0:p.split("."))==null?void 0:g[((m=(f=n==null?void 0:n.prop)==null?void 0:f.split("."))==null?void 0:m.length)-1])===v}))&&(n.mainKey=!0),n}),r};let yr="$R";const Qd=A.useUnit(A.pinia),{selectTitle:Jr}=A.storeToRefs(Qd),vn=[{key:"@MaxRow",value:"onNumSlice",order:1},{key:"@MaxColumn",value:"onMaxColumn",order:1},{key:"@EditRead",value:"onEditRead",order:1},{key:"@Type",value:"onRandomContents",order:2},{key:"@SubType",value:"onInterfaceTypeContents",order:2},{key:"@If",value:"onConditionContents",order:4},{key:"@QuoteFatherSync",value:"onFatherPaceContents",order:1},{key:"@QuoteSonSync",value:"onPaceContents",order:1},{key:"@MainPam",value:"onMainTagContents",order:3},{key:"@Button",value:"onButtonContents",order:1},{key:"@Related",value:"onRelated",order:1},{key:"@RowNum",value:"onRowNum",order:1},{key:"@FixRow",value:"onFixRow",order:1},{key:"@ReqItem",value:"onReqItem",order:1},{key:"@Condition",value:"onConditionContent",order:1},{key:"@Tab",value:"onTabs",order:1},{key:"@SinChoice",value:"onSinChoice",order:1},{key:"@TextSize",value:"onTextSize",order:1},{key:"@TextRGBA",value:"onTextRGBA",order:1},{key:"@Position",value:"onPosition",order:4},{key:"@Size",value:"onSize",order:4},{key:"@ShowType",value:"onShowType",order:1},{key:"@StepName",value:"onStepName",order:1},{key:"@Step",value:"onStep",order:1},{key:"@BackGround",value:"onBackGround",order:1}];var ri=(a=>(a[a.ORDINARY=1]="ORDINARY",a[a.BLOCK=2]="BLOCK",a[a.TEXT=3]="TEXT",a))(ri||{});const ep=a=>{if((a==null?void 0:a.filter)!==void 0&&(a==null?void 0:a.filter)!==null&&(a==null?void 0:a.filter)!==""){let l=a==null?void 0:a.contents;return l.push({key:"backGround",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},ap=a=>{const l=nc(a==null?void 0:a.filter);return l?ic(a==null?void 0:a.contents,{position:l}):a==null?void 0:a.contents},lp=a=>{const l=nc(a==null?void 0:a.filter);return l?ic(a==null?void 0:a.contents,{size:l}):a==null?void 0:a.contents},rp=a=>{if((a==null?void 0:a.filter)!==void 0&&(a==null?void 0:a.filter)!==null&&(a==null?void 0:a.filter)!==""){let l=a==null?void 0:a.contents;const r=Number(a==null?void 0:a.filter);return l.push({key:"textSize",contents:Number.isNaN(r)?a==null?void 0:a.filter:r}),l}return a==null?void 0:a.contents},np=a=>{if((a==null?void 0:a.filter)!==void 0&&(a==null?void 0:a.filter)!==null&&(a==null?void 0:a.filter)!==""){let l=a==null?void 0:a.contents;return l.push({key:"textRGBA",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},ip=a=>{var r;return(a==null?void 0:a.filter.toUpperCase())==="ALL"||(a==null?void 0:a.filter.toUpperCase())==="NONE"?a==null?void 0:a.contents:(r=a==null?void 0:a.contents)==null?void 0:r.map(n=>{var t;return(n==null?void 0:n.key)==="tableContents"&&(n.contents=(t=n.contents)==null?void 0:t.slice(0,parseInt(a==null?void 0:a.filter))),n})},op=async a=>{var l,r,n,t,s,v,p,f,m,g,c,D,M,S,K,I,R,j,E,x,k,b,w,$,F,J,se,ge,Me,V;if((a==null?void 0:a.filter)==="Random")return(l=a==null?void 0:a.contents)==null?void 0:l.map(ae=>((ae==null?void 0:ae.key)==="tableContents"&&(ae.contents=he.shuffle(ae.contents)),ae));if((a==null?void 0:a.filter)==="Auto"){let fe=(n=(r=a==null?void 0:a.contents)==null?void 0:r.find(Se=>(Se==null?void 0:Se.key)==="header"))==null?void 0:n.contents;Array.isArray(fe==null?void 0:fe[0])&&(fe=fe==null?void 0:fe[0]),fe=he.getColumnChild(fe);let ae=fe==null?void 0:fe.filter(Se=>(Se==null?void 0:Se.filter)&&(Se==null?void 0:Se.filter)!==""),de=new Map,Ce=[];ae==null||ae.forEach(Se=>{var Le,Pe;de.get((Le=Se==null?void 0:Se.menus)==null?void 0:Le.join("/"))||(de.set((Pe=Se==null?void 0:Se.menus)==null?void 0:Pe.join("/"),Se),Ce.push(Se))});let Fe=(s=(t=Jr==null?void 0:Jr.value)==null?void 0:t.find(Se=>(Se==null?void 0:Se.condition)==="child"))==null?void 0:s.value,ye=Ce==null?void 0:Ce.map(Se=>{var Le,Pe,la;return Se=(Le=Se==null?void 0:Se.menus)==null?void 0:Le.join("/"),(Se==null?void 0:Se[(Se==null?void 0:Se.length)-1])==="/"&&((la=(Pe=Jr==null?void 0:Jr.value)==null?void 0:Pe.find(Da=>(Da==null?void 0:Da.condition)==="child"))==null?void 0:la.parentContent)+"/"!==Se?Se=Se+Fe:(Se==null?void 0:Se[(Se==null?void 0:Se.length)-1])==="/"&&(Se=Se==null?void 0:Se.slice(0,(Se==null?void 0:Se.length)-1)),Se}),T=Ce==null?void 0:Ce.map(Se=>Se==null?void 0:Se.groups),ue=ye==null?void 0:ye.map(async Se=>{let Le=await Kr(Se,!1);return{path:Se,contents:Le}});ue=await Promise.all(ue);let U=ue==null?void 0:ue.map((Se,Le)=>{var la,Da,le,ta,te,ca,Ee;let Pe=(la=Se==null?void 0:Se.contents)==null?void 0:la.filter(oe=>{var Te,Ue;return(oe==null?void 0:oe.name)===((Ue=T==null?void 0:T[Le])==null?void 0:Ue[((Te=T==null?void 0:T[Le])==null?void 0:Te.length)-1])});return Pe=(ta=(le=(Da=Pe==null?void 0:Pe[0])==null?void 0:Da.compData)==null?void 0:le.find(oe=>(oe==null?void 0:oe.key)==="tableContents"))==null?void 0:ta.contents,(Se==null?void 0:Se.path)===((ca=(te=Jr==null?void 0:Jr.value)==null?void 0:te.find(oe=>(oe==null?void 0:oe.condition)==="child"))==null?void 0:ca.parentContent)&&(Pe=((Ee=Pe==null?void 0:Pe.map(oe=>{for(let Te in oe)if(oe[Te]===Fe)return oe}))==null?void 0:Ee.filter(oe=>oe))??[]),Pe??[]});if(U=U==null?void 0:U.map(Se=>(Se=Se==null?void 0:Se.map(Le=>{var la;let Pe={};for(let Da in Le)if(ae!=null&&ae.find(le=>{var ta,te;return((te=(ta=le==null?void 0:le.words)==null?void 0:ta[0])==null?void 0:te.replaceAll("'",""))===Da})){let le=(la=ae==null?void 0:ae.find(ta=>{var te,ca;return((ca=(te=ta==null?void 0:ta.words)==null?void 0:te[0])==null?void 0:ca.replaceAll("'",""))===Da}))==null?void 0:la.prop;Pe[le]=Le==null?void 0:Le[Da]}return Pe}),Se)),U=he.cartesianProduct(U),Array.isArray(U==null?void 0:U[0])&&(U=U==null?void 0:U[0]),(U==null?void 0:U.length)>0&&((c=(p=(v=ae==null?void 0:ae[0])==null?void 0:v.menus)==null?void 0:p.join("/"))==null?void 0:c[((g=(m=(f=ae==null?void 0:ae[0])==null?void 0:f.menus)==null?void 0:m.join("/"))==null?void 0:g.length)-1])==="/")return(D=a==null?void 0:a.contents)==null?void 0:D.map(Le=>{var Pe;return(Le==null?void 0:Le.key)==="tableContents"&&(U==null?void 0:U.length)>0&&(Le.contents=((Pe=Le.contents)==null?void 0:Pe.length)>0?Le.contents:U),Le})}if((a==null?void 0:a.filter)==="Manual"){let fe=[],ae=[],de=(S=(M=a==null?void 0:a.contents)==null?void 0:M.find(T=>(T==null?void 0:T.key)==="filter"))==null?void 0:S.contents;(de==null?void 0:de[(de==null?void 0:de.length)-1])===")"?de=(I=(K=de==null?void 0:de.replace("(",yr))==null?void 0:K.split(yr))==null?void 0:I[0]:de="",de!==""&&(fe=((j=(R=de==null?void 0:de.split("*"))==null?void 0:R[0])==null?void 0:j.split(":"))??[],ae=((w=(b=(k=(x=(E=de==null?void 0:de.split("*"))==null?void 0:E[1])==null?void 0:x.replace("{",yr))==null?void 0:k.split(yr))==null?void 0:b[0])==null?void 0:w.split(":"))??[]);let Ce=(F=($=a==null?void 0:a.contents)==null?void 0:$.find(T=>(T==null?void 0:T.key)==="filter"))==null?void 0:F.contents;Ce=(se=(J=Ce==null?void 0:Ce.replace("(",yr))==null?void 0:J.split(yr))==null?void 0:se[1],Ce=Ce==null?void 0:Ce.slice(0,(Ce==null?void 0:Ce.length)-1);let Fe=(ge=a==null?void 0:a.contents)==null?void 0:ge.map(T=>{var ue,U,Se,Le,Pe,la,Da,le,ta;return(T==null?void 0:T.key)==="header"&&((ue=T==null?void 0:T.contents)!=null&&ue.every(te=>(te==null?void 0:te.mainKey)!==!0)&&Array.isArray(T==null?void 0:T.contents)&&!Array.isArray((U=T==null?void 0:T.contents)==null?void 0:U[0])?T.contents=(Se=T==null?void 0:T.contents)==null?void 0:Se.map((te,ca)=>{var Ee,oe,Te;return te!=null&&te.isMainPath||(ca===0?(te.mainKey=!0,te.formType="Select",te.bindMenus=fe,te.groups=((Ee=te.groups)==null?void 0:Ee.length)===0?ae:te.groups,te.words=((oe=te.words)==null?void 0:oe.length)===0?[te==null?void 0:te.prop]:te.words,te.filter=Ce,(!(te!=null&&te.menus)||((Te=te==null?void 0:te.menus)==null?void 0:Te.length)===0)&&(te.menus=fe)):(te.mainKey=!1,te.bindMenus=fe)),te}):Array.isArray((Le=T==null?void 0:T.contents)==null?void 0:Le[0])&&((Da=(la=(Pe=T==null?void 0:T.contents)==null?void 0:Pe[0])==null?void 0:la.filter(()=>(fe==null?void 0:fe.length)>0))==null?void 0:Da.length)>0&&(T.contents[0]=(ta=(le=T==null?void 0:T.contents)==null?void 0:le[0])==null?void 0:ta.map((te,ca)=>{var Ee,oe,Te;return te!=null&&te.isMainPath||(ca===0?(te.mainKey=!0,te.formType="Select",te.bindMenus=fe,te.groups=((Ee=te.groups)==null?void 0:Ee.length)===0?ae:te.groups,te.words=((oe=te.words)==null?void 0:oe.length)===0?[te==null?void 0:te.prop]:te.words,te.filter=Ce,(!(te!=null&&te.menus)||Array.isArray(te==null?void 0:te.menus)&&((Te=te==null?void 0:te.menus)==null?void 0:Te.length)===0)&&(fe==null?void 0:fe.length)>0&&(te.menus=fe)):(te.mainKey=!1,te.bindMenus=fe)),te}))),T}),ye=(Me=Fe==null?void 0:Fe.find(T=>(T==null?void 0:T.key)==="header"))==null?void 0:Me.contents;if(Array.isArray(ye==null?void 0:ye[0])&&(ye=ye==null?void 0:ye[0]),ye=he.getColumnChild(ye),ye!=null&&ye.some(T=>{var ue,U;return((U=T==null?void 0:T.menus)==null?void 0:U[((ue=T==null?void 0:T.menus)==null?void 0:ue.length)-1])===""})){let T=(V=Jr==null?void 0:Jr.value)==null?void 0:V.find(ue=>(ue==null?void 0:ue.condition)==="child");Fe=Zd(Fe,T)}return Fe}return a==null?void 0:a.contents},tp=async a=>{if((a==null?void 0:a.filter)==="Ordin"){let l=a==null?void 0:a.contents;return l.push({key:"enableWrap",contents:1}),l}if((a==null?void 0:a.filter)==="Block"){let l=a==null?void 0:a.contents;return l.push({key:"enableWrap",contents:2}),l}if((a==null?void 0:a.filter)==="Text"){let l=a==null?void 0:a.contents;return l.push({key:"enableWrap",contents:3}),l}return a==null?void 0:a.contents},sp=a=>{var n,t,s,v,p,f,m,g,c,D,M,S;let l=a==null?void 0:a.filter;if(l!=null&&l.includes("*")&&(l="({"+((t=(n=l==null?void 0:l.replace(":",yr))==null?void 0:n.split(yr))==null?void 0:t[1])),l=(s=l==null?void 0:l.replaceAll("{",""))==null?void 0:s.replaceAll("}",""),(p=(v=l==null?void 0:l.split("="))==null?void 0:v[1])!=null&&p.includes("$")){(l==null?void 0:l[0])==="("&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1));let K=(f=l==null?void 0:l.split("="))==null?void 0:f[0],I=(m=l==null?void 0:l.split("="))==null?void 0:m[1];(g=I==null?void 0:I.slice(1,I==null?void 0:I.length))!=null&&g.includes("$")&&(I=(M=(D=(c=Jr==null?void 0:Jr.value)==null?void 0:c.filter(R=>(R==null?void 0:R.condition)==="child"))==null?void 0:D[0])==null?void 0:M.value),l=K+"="+I}if((l==null?void 0:l[0])!=="("&&(l="("+l+")"),l.slice(1,(l==null?void 0:l.length)-1)==="undefined")return a==null?void 0:a.contents;let r=he.calculatorAndToOr(l);if((r==null?void 0:r.length)>0){let K=[];return r==null||r.forEach(R=>{let j={};for(let E in R){let x=E;x!=null&&x.includes("[")||(j[x]=R[E])}K.push(j)}),(S=a==null?void 0:a.contents)==null?void 0:S.map(R=>{var E,x,k;let j=(x=(E=a==null?void 0:a.contents)==null?void 0:E.find(b=>(b==null?void 0:b.key)==="header"))==null?void 0:x.contents;if(j=(k=he.getEqualChild(j))==null?void 0:k.filter(b=>(b==null?void 0:b.label)!=="操作"),(R==null?void 0:R.key)==="tableContents"){let w=he.tableToForm(R==null?void 0:R.contents,j);K==null||K.forEach($=>{var F,J;for(let se in $)!((F=w==null?void 0:w[0])!=null&&F.find(ge=>{var Me;return(ge==null?void 0:ge.key)===se||((Me=ge==null?void 0:ge.key)==null?void 0:Me.includes(se))}))&&!(w!=null&&w.find(ge=>{var Me;return(ge==null?void 0:ge.key)===se||((Me=ge==null?void 0:ge.key)==null?void 0:Me.includes(se))}))||(((J=$[se])==null?void 0:J[0])!=="!"?w=w==null?void 0:w.filter(ge=>{var Me,V;return((Me=ge==null?void 0:ge.find(fe=>{var ae;return(fe==null?void 0:fe.key)===se||((ae=fe==null?void 0:fe.key)==null?void 0:ae.includes(se))}))==null?void 0:Me.value)===$[se]||Array.isArray($==null?void 0:$[se])&&((V=$==null?void 0:$[se])==null?void 0:V.find(fe=>{var ae;return((ae=ge==null?void 0:ge.find(de=>{var Ce;return(de==null?void 0:de.key)===se||((Ce=de==null?void 0:de.key)==null?void 0:Ce.includes(se))}))==null?void 0:ae.value)===fe}))}):w=w==null?void 0:w.filter(ge=>{var Me;return((Me=ge==null?void 0:ge.find(V=>{var fe;return(V==null?void 0:V.key)===se||((fe=V==null?void 0:V.key)==null?void 0:fe.includes(se))}))==null?void 0:Me.value)!==$[se]}))}),(w==null?void 0:w.length)===0?R.contents=[]:R.contents=w==null?void 0:w.map($=>{let F={};return $==null||$.forEach(J=>{F[J==null?void 0:J.key]=J==null?void 0:J.value}),F})}return R})}return a==null?void 0:a.contents},cp=a=>a==null?void 0:a.contents,up=a=>a==null?void 0:a.contents,dp=a=>{var l,r,n,t;if((a==null?void 0:a.filter)!==""&&(a!=null&&a.filter)){let s=(n=(r=a==null?void 0:a.filter)==null?void 0:r.slice(1,((l=a==null?void 0:a.filter)==null?void 0:l.length)-1))==null?void 0:n.split(",");return(t=a==null?void 0:a.contents)==null?void 0:t.map(p=>((p==null?void 0:p.key)==="header"&&(p.contents=ht(p.contents,s)),p))}return a==null?void 0:a.contents},pp=a=>{var r,n,t,s,v;let l=(a==null?void 0:a.filter)??"";if(l!==""){let p=(n=(r=l==null?void 0:l.replace("(",yr))==null?void 0:r.split(yr))==null?void 0:n[1];p=p==null?void 0:p.slice(0,(p==null?void 0:p.length)-1),(p==null?void 0:p[(p==null?void 0:p.length)-1])===")"&&(p=p==null?void 0:p.slice(1,(p==null?void 0:p.length)-1)),p=(t=he.analyzeSplitToContent(p,","))==null?void 0:t.map(c=>((c==null?void 0:c[(c==null?void 0:c.length)-1])===","&&(c=c==null?void 0:c.slice(0,(c==null?void 0:c.length)-1)),c));let f=p==null?void 0:p[0];(f==null?void 0:f[0])==="("&&(f=f==null?void 0:f.slice(1,(f==null?void 0:f.length)-1));let m=(p==null?void 0:p[1])??"Up",g=(s=a==null?void 0:a.contents)==null?void 0:s.map(c=>{var D,M;return m==="Up"?(c==null?void 0:c.key)==="extraButton"&&(c.contents=(D=f==null?void 0:f.split(","))==null?void 0:D.map(S=>({label:S,prop:S}))):m==="Line"&&(c==null?void 0:c.key)==="rowButton"&&(c.contents=(M=f==null?void 0:f.split(","))==null?void 0:M.map(S=>({label:S,prop:S}))),c});if(m==="Bottom"||m==="Down"){let c=(v=f==null?void 0:f.split(","))==null?void 0:v.map(D=>({label:D,prop:D}));g.push({key:"bottomButton",contents:c})}return g}return a==null?void 0:a.contents},fp=a=>a==null?void 0:a.contents,hp=a=>{var r;let l=(a==null?void 0:a.filter)??"";return(l==null?void 0:l[0])==="{"&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1)),l!==""?(r=a==null?void 0:a.contents)==null?void 0:r.map(t=>{var s;return(t==null?void 0:t.key)==="rowButton"&&(t.contents=(s=l==null?void 0:l.split(","))==null?void 0:s.map(v=>({label:v,prop:v}))),t}):a==null?void 0:a.contents},vp=a=>{var r;let l=(a==null?void 0:a.filter)??"";if((l==null?void 0:l[0])==="{"&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1)),l!==""){let n=a==null?void 0:a.contents,t=(r=l==null?void 0:l.split(","))==null?void 0:r.map(s=>({label:s,prop:s}));return n.push({key:"bottomButton",contents:t}),n}return a==null?void 0:a.contents},mp=a=>{var l;return(a==null?void 0:a.filter)==="Read"?(l=a==null?void 0:a.contents)==null?void 0:l.map(n=>{var t;return(n==null?void 0:n.key)==="formContent"&&(n.contents=(t=n.contents)==null?void 0:t.map(s=>(s.isNoClick=!0,s))),n}):a==null?void 0:a.contents},yp=a=>{var l;if(a!=null&&a.filter){const r=parseInt(a==null?void 0:a.filter);return!r||Number.isNaN(r)?a==null?void 0:a.contents:(l=a==null?void 0:a.contents)==null?void 0:l.map(t=>{var s;return(t==null?void 0:t.key)==="formContent"&&(t.contents=(s=t.contents)==null?void 0:s.map(v=>(v.width=r,v))),t})}return a==null?void 0:a.contents},gp=a=>{var l,r,n,t;if(((l=a==null?void 0:a.filter)==null?void 0:l[0])!=="["){const s=parseInt(a==null?void 0:a.filter);return!s||Number.isNaN(s)?a==null?void 0:a.contents:(r=a==null?void 0:a.contents)==null?void 0:r.map(p=>{var f;return(p==null?void 0:p.key)==="formContent"&&(p.contents=(f=p.contents)==null?void 0:f.map(m=>(m.width=s,m))),p})}if(((n=a==null?void 0:a.filter)==null?void 0:n[0])==="["){let s=Ci(a==null?void 0:a.filter),v=Array.isArray(s)?s.map(f=>parseInt(f)).filter(f=>!!f&&!Number.isNaN(f)):[];return v.length?(t=a==null?void 0:a.contents)==null?void 0:t.map(f=>{if((f==null?void 0:f.key)==="formContent"){const m=f.contents??[];f.contents=m.map((g,c)=>{const D=c+1;let M=0,S=0;for(let I=0;I<v.length;I++){if(S+=v[I],D<=S){M=I;break}I===v.length-1&&(M=v.length-1)}const K=v[M]||v[v.length-1]||1;return g.width=K,g})}return f}):a==null?void 0:a.contents}return a==null?void 0:a.contents},bp=a=>{var l;if((a==null?void 0:a.filter)!==""){let r=a==null?void 0:a.filter;return(r==null?void 0:r[0])==="("&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),r=r==null?void 0:r.split(","),(l=a==null?void 0:a.contents)==null?void 0:l.map(t=>{var s,v,p;return(t==null?void 0:t.key)==="header"&&(Array.isArray((s=t==null?void 0:t.contents)==null?void 0:s[0])?t.contents[0]=(p=t.contents[0])==null?void 0:p.map(f=>(r!=null&&r.find(m=>m===(f==null?void 0:f.prop))&&(f.fixed="left"),f)):t.contents=(v=t.contents)==null?void 0:v.map(f=>(r!=null&&r.find(m=>m===(f==null?void 0:f.prop))&&(f.fixed="left"),f))),t})}return a==null?void 0:a.contents},kp=a=>{var l;if((a==null?void 0:a.filter)!==""){let r=a==null?void 0:a.filter;(r==null?void 0:r[0])==="("&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),r=r==null?void 0:r.split(",");const n=s=>(r!=null&&r.find(v=>v===(s==null?void 0:s.prop))&&(s.required=!0),s!=null&&s.children&&Array.isArray(s.children)&&(s.children=s.children.map(v=>n(v))),s);return(l=a==null?void 0:a.contents)==null?void 0:l.map(s=>{var v,p,f;return(s==null?void 0:s.key)==="header"&&(Array.isArray((v=s==null?void 0:s.contents)==null?void 0:v[0])?s.contents[0]=(f=s.contents[0])==null?void 0:f.map(m=>n(m)):s.contents=(p=s.contents)==null?void 0:p.map(m=>n(m))),s})}return a==null?void 0:a.contents},xp=async a=>{var n,t,s,v,p,f,m,g,c,D,M,S,K,I,R,j,E;const l=A.useUnit(A.pinia),{chooseTitle:r}=A.storeToRefs(l);if((a==null?void 0:a.filter)==="true"){let x=await Kr(((t=(n=r==null?void 0:r.value)==null?void 0:n[0])==null?void 0:t.parentContent)??((v=(s=r==null?void 0:r.value)==null?void 0:s[0])==null?void 0:v.relatedContent),!1),k=(f=(p=r==null?void 0:r.value)==null?void 0:p[0])==null?void 0:f.value;(g=(m=x==null?void 0:x[0])==null?void 0:m.compData)!=null&&g.find(F=>(F==null?void 0:F.key)==="header")?x=(c=x==null?void 0:x[0])==null?void 0:c.compData:x=(M=(D=x==null?void 0:x.filter(F=>{var J;return(J=F==null?void 0:F.compData)==null?void 0:J.find(se=>(se==null?void 0:se.key)==="header")}))==null?void 0:D[0])==null?void 0:M.compData;let b=(S=x==null?void 0:x.find(F=>(F==null?void 0:F.key)==="header"))==null?void 0:S.contents;Array.isArray(b==null?void 0:b[0])&&(b=b==null?void 0:b[0]),b=((K=b==null?void 0:b.find(F=>F==null?void 0:F.isMainKey))==null?void 0:K.prop)??((I=b==null?void 0:b[0])==null?void 0:I.prop);let w=(j=(R=x==null?void 0:x.find(F=>(F==null?void 0:F.key)==="tableContents"))==null?void 0:R.contents)==null?void 0:j.find(F=>(F==null?void 0:F[b])===k);return(E=a==null?void 0:a.contents)==null?void 0:E.map(F=>{var J;return(F==null?void 0:F.key)==="formContent"&&(F.contents=(J=F.contents)==null?void 0:J.map(se=>(se.value=w==null?void 0:w[se==null?void 0:se.prop],se))),F})}return a==null?void 0:a.contents},wp=a=>{var l,r,n,t,s;if((l=a==null?void 0:a.extra)!=null&&l.row){let v=a==null?void 0:a.filter;if(v!=null&&v.includes("*")&&(v="({"+((n=(r=v==null?void 0:v.replace("{",yr))==null?void 0:r.split(yr))==null?void 0:n[1])),v=(t=v==null?void 0:v.replaceAll("{",""))==null?void 0:t.replaceAll("}",""),(v==null?void 0:v[0])!=="("&&(v="("+v+")"),v.slice(1,(v==null?void 0:v.length)-1)==="undefined")return a==null?void 0:a.contents;let p=he.calculatorAndToOr(v),f=p==null?void 0:p[0],m=(s=a==null?void 0:a.extra)==null?void 0:s.row,g=[];for(let c in f)(f==null?void 0:f[c])===(m==null?void 0:m[c])?g.push(!0):g.push(!1);return g!=null&&g.every(c=>c===!0)?a==null?void 0:a.contents:[]}else return a==null?void 0:a.contents},_p=a=>{if(a!=null&&a.filter){let l=a==null?void 0:a.contents;return l.push({key:"tab",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},Sp=a=>{if(a!=null&&a.filter){let l=a==null?void 0:a.contents;return l.push({key:"choice",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},Ep=a=>{if(a!=null&&a.filter){let l=a==null?void 0:a.contents;return l.push({key:"fixType",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},Cp=a=>{var l;if(a!=null&&a.filter){let r=a==null?void 0:a.contents,n=a==null?void 0:a.filter;return(n==null?void 0:n[0])==="("&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n=(l=he.analyzeSplitToContent(n,","))==null?void 0:l.map(t=>((t==null?void 0:t[(t==null?void 0:t.length)-1])===","&&(t=t==null?void 0:t.slice(0,(t==null?void 0:t.length)-1)),t)),r.push({key:"stepName",contents:n}),r}return a==null?void 0:a.contents},Dp=a=>{if(a!=null&&a.filter){let l=a==null?void 0:a.contents;return l.push({key:"step",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},rc={onNumSlice:ip,onRandomContents:op,onConditionContents:sp,onFatherPaceContents:cp,onPaceContents:up,onMainTagContents:dp,onButtonContents:pp,onPamButtonContents:fp,onRowButtonContents:hp,onRelated:xp,onRowNum:gp,onFixRow:bp,onReqItem:kp,onBottomButtonContents:vp,onConditionContent:wp,onTabs:_p,onSinChoice:Sp,onTextSize:rp,onTextRGBA:np,onPosition:ap,onSize:lp,onShowType:Ep,onStepName:Cp,onStep:Dp,onInterfaceTypeContents:tp,onBackGround:ep,onMaxColumn:yp,onEditRead:mp},Bp=async(a,l)=>{var s,v,p,f,m,g,c,D,M,S,K,I;let r="";if(((s=a==null?void 0:a.find(R=>(R==null?void 0:R.key)==="filter"))==null?void 0:s.contents)!==""&&(r=(v=a==null?void 0:a.find(R=>(R==null?void 0:R.key)==="filter"))==null?void 0:v.contents),r===""||!r)return a;(r==null?void 0:r[0])==="("?r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1):(r=(f=(p=r==null?void 0:r.replace("(",yr))==null?void 0:p.split(yr))==null?void 0:f[1],r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1));let n=(m=he.analyzeSplitToContent(r,","))==null?void 0:m.map(R=>((R==null?void 0:R[(R==null?void 0:R.length)-1])===","&&(R=R==null?void 0:R.slice(0,(R==null?void 0:R.length)-1)),R!=null&&R.includes("(")||(R=R==null?void 0:R.replaceAll(":","=")),R)),t=a;for(let R in n){let j,E="";j=(D=(c=(g=n==null?void 0:n[R])==null?void 0:g.replace("=",yr))==null?void 0:c.split(yr))==null?void 0:D[0],E=(K=(S=(M=n==null?void 0:n[R])==null?void 0:M.replace("=",yr))==null?void 0:S.split(yr))==null?void 0:K[1];let x=(I=vn==null?void 0:vn.find(k=>(k==null?void 0:k.key)===j))==null?void 0:I.value;if(x){const k=rc[x];t=await k({contents:t,filter:E})}}return t},Et=async(a,l)=>{var v,p,f,m,g,c,D,M,S,K,I,R,j,E,x,k,b,w,$,F;let r="";if(((v=a==null?void 0:a.find(J=>(J==null?void 0:J.key)==="filter"))==null?void 0:v.contents)!==""&&(r=(p=a==null?void 0:a.find(J=>(J==null?void 0:J.key)==="filter"))==null?void 0:p.contents),r===""||!r)return a;(r==null?void 0:r[0])===","&&(r=r==null?void 0:r.slice(1,r==null?void 0:r.length)),(r==null?void 0:r[0])==="("?r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1):(r==null?void 0:r[0])==="@"||(r=(m=(f=r==null?void 0:r.replace("(",yr))==null?void 0:f.split(yr))==null?void 0:m[1],r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1));let n=(g=he.analyzeSplitToContent(r,","))==null?void 0:g.map(J=>((J==null?void 0:J[(J==null?void 0:J.length)-1])===","&&(J=J==null?void 0:J.slice(0,(J==null?void 0:J.length)-1)),J!=null&&J.includes("(")||(J=J==null?void 0:J.replaceAll(":","=")),J)),t=a,s=new Map;n==null||n.forEach(J=>{var ge,Me,V;let se=(ge=J==null?void 0:J.split("="))==null?void 0:ge[0];if(se==="@MainPam"&&s.get(se)){let fe=s.get(se);fe=fe==null?void 0:fe.slice(0,(fe==null?void 0:fe.length)-1);let ae=(V=(Me=J==null?void 0:J.replace("{",yr))==null?void 0:Me.split(yr))==null?void 0:V[1];ae=fe+","+ae,s.set(se,ae)}else se==="@Button"&&s.get(se)?s.set(J,J):s.set(se,J)}),n=Array.from(s.values()),n=n==null?void 0:n.sort((J,se)=>{var ge,Me;return((ge=vn==null?void 0:vn.find(V=>se==null?void 0:se.includes(V==null?void 0:V.key)))==null?void 0:ge.order)-((Me=vn==null?void 0:vn.find(V=>J==null?void 0:J.includes(V==null?void 0:V.key)))==null?void 0:Me.order)});for(let J in n){let se,ge="";(c=n==null?void 0:n[J])!=null&&c.includes("(")&&((D=n==null?void 0:n[J])!=null&&D.includes("@If"))?(se=(K=(S=(M=n==null?void 0:n[J])==null?void 0:M.replace("(",yr))==null?void 0:S.split(yr))==null?void 0:K[0],ge="("+((j=(R=(I=n==null?void 0:n[J])==null?void 0:I.replace("(",yr))==null?void 0:R.split(yr))==null?void 0:j[1])):(se=(k=(x=(E=n==null?void 0:n[J])==null?void 0:E.replace("=",yr))==null?void 0:x.split(yr))==null?void 0:k[0],ge=($=(w=(b=n==null?void 0:n[J])==null?void 0:b.replace("=",yr))==null?void 0:w.split(yr))==null?void 0:$[1]);let Me=(F=vn==null?void 0:vn.find(V=>(V==null?void 0:V.key)===se))==null?void 0:F.value;if(Me){const V=rc[Me];t=await V({contents:t,filter:ge,extra:l})}}return t},nc=a=>{if(a==null)return null;const l=String(a).trim();if(!l.startsWith("(")||!l.endsWith(")"))return null;const r=l.slice(1,-1).split(",").map(n=>Number(n.trim()));return r.length<2||r.some(n=>Number.isNaN(n))?null:[r[0],r[1]]},ic=(a,l)=>{var K,I,R,j,E;const r=Array.isArray(a)?a:[],n=r.find(x=>(x==null?void 0:x.key)==="formContent"),t=Array.isArray(n==null?void 0:n.contents)?n.contents:[],s=((K=r.find(x=>(x==null?void 0:x.key)==="_gridLayoutMeta"))==null?void 0:K.contents)??{},v=(t==null?void 0:t[0])??{};let p=((I=l==null?void 0:l.position)==null?void 0:I[0])??(s==null?void 0:s._positionStartRow)??(v==null?void 0:v._positionStartRow),f=((R=l==null?void 0:l.position)==null?void 0:R[1])??(s==null?void 0:s._positionRowSpan)??(v==null?void 0:v._positionRowSpan);(!p||Number.isNaN(p)||p<1)&&(p=1),(!f||Number.isNaN(f)||f<1)&&(f=1);let m=((j=l==null?void 0:l.size)==null?void 0:j[0])??(s==null?void 0:s._sizeStart)??(v==null?void 0:v._sizeStart),g=((E=l==null?void 0:l.size)==null?void 0:E[1])??(s==null?void 0:s._sizeEnd)??(v==null?void 0:v._sizeEnd);(m===void 0||Number.isNaN(m))&&(m=0),(g===void 0||Number.isNaN(g))&&(g=1),m=Math.max(0,Math.min(1,m)),g=Math.max(0,Math.min(1,g)),g<=m&&(m=0,g=1);const c=g-m,D=Math.max(1,Math.round(1/c));let M=r.map(x=>{if((x==null?void 0:x.key)!=="formContent")return x;const k=Array.isArray(x==null?void 0:x.contents)?x.contents:[];return{...x,contents:k.map(b=>({...b,width:D,_positionStartRow:p,_positionRowSpan:f,_sizeStart:m,_sizeEnd:g}))}});const S={_positionStartRow:p,_positionRowSpan:f,_sizeStart:m,_sizeEnd:g};return M.some(x=>(x==null?void 0:x.key)==="_gridLayoutMeta")?M=M.map(x=>(x==null?void 0:x.key)==="_gridLayoutMeta"?{...x,contents:S}:x):M.push({key:"_gridLayoutMeta",contents:S}),M};let po="$R";const Np=A.useUnit(A.pinia),{selectTitle:Tp}=A.storeToRefs(Np);let Ap=[{label:"新增",prop:"新增"},{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],zp=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"},{label:"复制新增",prop:"复制新增"},{label:"删除",prop:"删除"}],Mp=[{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],Ip=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"}];const is=async(a,l,r=!0)=>{let n=[],t=a==null?void 0:a.map(async s=>{var c,D,M,S,K,I,R,j,E,x,k,b,w,$,F,J,se,ge,Me,V,fe,ae,de,Ce,Fe,ye,T,ue,U,Se,Le,Pe,la,Da,le,ta,te,ca,Ee,oe,Te,Ue,oa,Ja,L,H,Q,me,ve,da,ea,ce,pa,Ne,We,Ta,Ca,Qe,Va,re,X,Z,q,Be,Je,ra,ba,ga,Aa,_a,Oe,Za,Ha,xl,Yl,kl,Fl,ja,zl,Rl,Ma,rl,sl;let v=(S=(M=(D=(c=s==null?void 0:s.contents)==null?void 0:c.find(ma=>{var ka;return(ka=ma==null?void 0:ma.key)==null?void 0:ka.includes("struct")}))==null?void 0:D.value)==null?void 0:M[0])==null?void 0:S.类型,p=Object.values(s==null?void 0:s.name);p=p==null?void 0:p.reverse();let f=(K=s==null?void 0:s.contents)==null?void 0:K.map(ma=>ma==null?void 0:ma.key),m={comp:v,isShow:s==null?void 0:s.is_show,name:p==null?void 0:p[0],id:s==null?void 0:s.object_id,order_no:s==null?void 0:s.order_no,relatedTables:f,menuFilter:(I=s==null?void 0:s.filter)==null?void 0:I.menuFilter,status:s==null?void 0:s.status,fatherSyncContents:(R=s==null?void 0:s.filter)==null?void 0:R.fatherSyncs,relatedQuotes:(j=s==null?void 0:s.filter)==null?void 0:j.quotes,sonSyncContents:(E=s==null?void 0:s.filter)==null?void 0:E.sonSyncs,nameContents:(x=A.cloneDeep(p))==null?void 0:x.reverse()};for(let ma in p)parseInt(ma)>=1&&(m[`name${parseInt(ma)-1}`]=p[ma]);let g=Array.isArray((k=s==null?void 0:s.filter)==null?void 0:k.menuFilter)?(b=s==null?void 0:s.filter)==null?void 0:b.menuFilter:[];if(((w=g==null?void 0:g.filter(ma=>ma==null?void 0:ma.includes("@Filter")))==null?void 0:w.length)>0){let ma=g==null?void 0:g.filter(Ie=>Ie==null?void 0:Ie.includes("@Filter"));ma=ma==null?void 0:ma[0],ma=(F=($=ma==null?void 0:ma.replace("(",po))==null?void 0:$.split(po))==null?void 0:F[1],ma=ma==null?void 0:ma.slice(0,(ma==null?void 0:ma.length)-1),ma!=null&&ma.includes("*")&&(ma=(se=(J=ma==null?void 0:ma.replace("{",po))==null?void 0:J.split(po))==null?void 0:se[1],ma=ma==null?void 0:ma.replace("}","")),ma=he.calculatorAndToOr(ma);let ka=(l==null?void 0:l.originPath)??"";(ka==null?void 0:ka[(ka==null?void 0:ka.length)-1])==="/"&&(ka=ka==null?void 0:ka.slice(0,(ka==null?void 0:ka.length)-1));let La=await Kr(ka,!1),$a=(ge=La==null?void 0:La.filter(Ie=>(Ie==null?void 0:Ie.comp)==="Table"))==null?void 0:ge[0];$a=(V=(Me=$a==null?void 0:$a.compData)==null?void 0:Me.find(Ie=>(Ie==null?void 0:Ie.key)==="tableContents"))==null?void 0:V.contents;let we=(ae=(fe=Tp.value)==null?void 0:fe.find(Ie=>(Ie==null?void 0:Ie.condition)==="child"))==null?void 0:ae.value;$a=(de=$a==null?void 0:$a.map(Ie=>{for(let pe in Ie)if((Ie==null?void 0:Ie[pe])===we)return Ie}))==null?void 0:de.filter(Ie=>Ie),$a=$a==null?void 0:$a[0],ma=ma==null?void 0:ma[0];let ia=[];for(let Ie in ma){let pe="";qa.isObject($a)&&(pe=(Fe=(Ce=Object.keys($a))==null?void 0:Ce.filter(ha=>ha==null?void 0:ha.includes("."+Ie)))==null?void 0:Fe[0]),pe!==""&&($a!=null&&$a[pe])&&(ma==null?void 0:ma[Ie])===($a==null?void 0:$a[pe])||$a!=null&&$a[Ie]&&(ma==null?void 0:ma[Ie])===($a==null?void 0:$a[Ie])?ia.push(!0):ia.push(!1)}if(ia!=null&&ia.some(Ie=>Ie===!1)&&((T=l==null?void 0:l.originPath)==null?void 0:T[((ye=l==null?void 0:l.originPath)==null?void 0:ye.length)-1])!=="/")return}if(v==="Table"||v==="Method"){!r&&((ue=m==null?void 0:m.fatherSyncContents)==null?void 0:ue.length)>0;let ma=((U=s==null?void 0:s.contents)==null?void 0:U.find(Xe=>{var Ze;return(Ze=Xe==null?void 0:Xe.key)==null?void 0:Ze.includes("content")}))||[],ka=[];m.comp="Table",ma.value=(Se=ma==null?void 0:ma.value)==null?void 0:Se.sort((Xe,Ze)=>parseInt(Xe==null?void 0:Xe.id)-parseInt(Ze==null?void 0:Ze.id)),ma.value=(Le=ma==null?void 0:ma.value)==null?void 0:Le.map(Xe=>{let Ze={};for(let Ke in Xe)JSON.stringify(Xe==null?void 0:Xe[Ke])==="{}"?Ze[Ke]="":Ze[Ke]=Xe==null?void 0:Xe[Ke];return Ze}),ka.push({key:"tableContents",contents:ma==null?void 0:ma.value});let La=(ta=(le=(Da=(la=(Pe=s==null?void 0:s.contents)==null?void 0:Pe.find(Xe=>{var Ze;return(Ze=Xe==null?void 0:Xe.key)==null?void 0:Ze.includes("struct")}))==null?void 0:la.value)==null?void 0:Da[0])==null?void 0:le.结构)==null?void 0:ta.contents;Array.isArray(La==null?void 0:La[0])?La[0]=(te=La==null?void 0:La[0])==null?void 0:te.filter(Xe=>(Xe==null?void 0:Xe.prop)!=="sort"&&(Xe==null?void 0:Xe.prop)!=="relatedId"):La=La==null?void 0:La.filter(Xe=>(Xe==null?void 0:Xe.prop)!=="sort"&&(Xe==null?void 0:Xe.prop)!=="relatedId"),ka.push({key:"header",contents:La}),ka.push({key:"filter",contents:(Ue=(Te=(oe=(Ee=(ca=s==null?void 0:s.contents)==null?void 0:ca.find(Xe=>{var Ze;return(Ze=Xe==null?void 0:Xe.key)==null?void 0:Ze.includes("struct")}))==null?void 0:Ee.value)==null?void 0:oe[0])==null?void 0:Te.引用)==null?void 0:Ue.contents});let $a=Ap,we=A.cloneDeep(zp);v==="Method"&&we.push({label:"生成方法",prop:"生成方法"}),!Array.isArray(La==null?void 0:La[0])&&((oa=La==null?void 0:La[0])==null?void 0:oa.prop)==="disabled"&&($a=Mp,we=Ip);const ia=["推力","真空","压力","温度","流量"],Ie=m.name;Ie&&ia.includes(Ie)&&($a=[...$a],$a.push({label:"导出paraform",prop:"导出paraform",type:"methodButton"}));let pe=[];if(!Array.isArray(La==null?void 0:La[0])&&(La!=null&&La.some(Xe=>{var Ze;return(Xe==null?void 0:Xe.calculatorFilter)&&((Ze=Xe==null?void 0:Xe.calculatorFilter)==null?void 0:Ze.includes("Manual"))}))){let Xe=(Ja=La==null?void 0:La.map(Ze=>Ze==null?void 0:Ze.calculatorFilter))==null?void 0:Ja.filter(Ze=>Ze&&(Ze==null?void 0:Ze.includes("Manual")));Xe==null||Xe.forEach(Ze=>{var pl;let Ke=he.analyzeSplitToContent(Ze,",");if(Ke=Ke==null?void 0:Ke.map(Ve=>((Ve==null?void 0:Ve[(Ve==null?void 0:Ve.length)-1])===","&&(Ve=Ve==null?void 0:Ve.slice(0,(Ve==null?void 0:Ve.length)-1)),Ve)),Ke!=null&&Ke.find(Ve=>(Ve==null?void 0:Ve.includes("Extent"))&&(Ve==null?void 0:Ve.includes("Row")))&&(Ke!=null&&Ke.find(Ve=>(Ve==null?void 0:Ve.includes("Button"))&&(Ve==null?void 0:Ve.includes(","))))){let Ve=Ke==null?void 0:Ke.find(Fa=>Fa==null?void 0:Fa.includes("@FunctionButton"));Ve=(pl=Ve==null?void 0:Ve.split("="))==null?void 0:pl[1],Ve=Ve==null?void 0:Ve.slice(1,(Ve==null?void 0:Ve.length)-1),Ve=Ve==null?void 0:Ve.split(","),Ve=Ve==null?void 0:Ve[(Ve==null?void 0:Ve.length)-1],pe.push(Ve)}}),pe=[...new Set(pe)],pe=pe==null?void 0:pe.map(Ze=>({label:Ze,prop:Ze,type:"methodButton"}))}else if(Array.isArray(La==null?void 0:La[0])&&((L=he.getColumnChild(La==null?void 0:La[0]))!=null&&L.some(Xe=>{var Ze;return(Xe==null?void 0:Xe.calculatorFilter)&&((Ze=Xe==null?void 0:Xe.calculatorFilter)==null?void 0:Ze.includes("Manual"))}))){let Xe=(Q=(H=he.getColumnChild(La==null?void 0:La[0]))==null?void 0:H.map(Ze=>Ze==null?void 0:Ze.calculatorFilter))==null?void 0:Q.filter(Ze=>Ze&&(Ze==null?void 0:Ze.includes("Manual")));Xe==null||Xe.forEach(Ze=>{var pl;let Ke=he.analyzeSplitToContent(Ze,",");if(Ke=Ke==null?void 0:Ke.map(Ve=>((Ve==null?void 0:Ve[(Ve==null?void 0:Ve.length)-1])===","&&(Ve=Ve==null?void 0:Ve.slice(0,(Ve==null?void 0:Ve.length)-1)),Ve)),Ke!=null&&Ke.find(Ve=>(Ve==null?void 0:Ve.includes("Extent"))&&(Ve==null?void 0:Ve.includes("Row")))&&(Ke!=null&&Ke.find(Ve=>(Ve==null?void 0:Ve.includes("Button"))&&(Ve==null?void 0:Ve.includes(","))))){let Ve=Ke==null?void 0:Ke.find(Fa=>Fa==null?void 0:Fa.includes("@FunctionButton"));Ve=(pl=Ve==null?void 0:Ve.split("="))==null?void 0:pl[1],Ve=Ve==null?void 0:Ve.slice(1,(Ve==null?void 0:Ve.length)-1),Ve=Ve==null?void 0:Ve.split(","),Ve=Ve==null?void 0:Ve[(Ve==null?void 0:Ve.length)-1],pe.push(Ve)}}),pe=[...new Set(pe)],pe=pe==null?void 0:pe.map(Ze=>({label:Ze,prop:Ze,type:"methodButton"}))}ka.push({key:"extraButton",contents:$a}),ka.push({key:"rowButton",contents:[...we,...pe]}),m.compData=await Et(ka,l),(me=m.compData)!=null&&me.find(Xe=>(Xe==null?void 0:Xe.key)==="tab")&&(m.tab=(da=(ve=m.compData)==null?void 0:ve.find(Xe=>(Xe==null?void 0:Xe.key)==="tab"))==null?void 0:da.contents),(ea=m.compData)!=null&&ea.find(Xe=>(Xe==null?void 0:Xe.key)==="step")&&(m.step=(pa=(ce=m.compData)==null?void 0:ce.find(Xe=>(Xe==null?void 0:Xe.key)==="step"))==null?void 0:pa.contents),(Ne=m.compData)!=null&&Ne.find(Xe=>(Xe==null?void 0:Xe.key)==="choice")&&(m.choice=(Ta=(We=m.compData)==null?void 0:We.find(Xe=>(Xe==null?void 0:Xe.key)==="choice"))==null?void 0:Ta.contents);let ha="",va=(Ca=m==null?void 0:m.compData)==null?void 0:Ca.filter(Xe=>(Xe==null?void 0:Xe.key)==="fixType");(va==null?void 0:va.length)>0&&r&&(ha=(Qe=va==null?void 0:va[0])==null?void 0:Qe.contents,m.comp=ha)}else if(v==="Form"){let ma=[],ka=(X=(re=(Va=s==null?void 0:s.contents)==null?void 0:Va.find(Ie=>{var pe;return(pe=Ie==null?void 0:Ie.key)==null?void 0:pe.includes("content")}))==null?void 0:re.value)==null?void 0:X[0],La=[],$a=Array.isArray((Z=s==null?void 0:s.filter)==null?void 0:Z.menuFilter)?(q=s==null?void 0:s.filter)==null?void 0:q.menuFilter:[];$a==null||$a.forEach(Ie=>{if(Ie!=null&&Ie.includes("@Param(Hide=Yes, prop=")||Ie!=null&&Ie.includes("(Hide=Yes, prop=")){const pe=Ie==null?void 0:Ie.match(/prop=([^,)]+)/);pe!=null&&pe[1]&&La.push(pe==null?void 0:pe[1])}});let we=(ga=(ba=(ra=(Je=(Be=s==null?void 0:s.contents)==null?void 0:Be.find(Ie=>{var pe;return(pe=Ie==null?void 0:Ie.key)==null?void 0:pe.includes("struct")}))==null?void 0:Je.value)==null?void 0:ra[0])==null?void 0:ba.结构)==null?void 0:ga.contents,ia=(Aa=we==null?void 0:we.map(Ie=>(Ie.value=ka==null?void 0:ka[Ie==null?void 0:Ie.prop],Ie)))==null?void 0:Aa.filter(Ie=>(Ie==null?void 0:Ie.prop)!=="sort"&&(Ie==null?void 0:Ie.prop)!=="relatedId");ia=ia==null?void 0:ia.map(Ie=>(La!=null&&La.includes(Ie==null?void 0:Ie.prop)&&(Ie.isHideInForm=!0),Ie)),ma.push({key:"filter",contents:(xl=(Ha=(Za=(Oe=(_a=s==null?void 0:s.contents)==null?void 0:_a.find(Ie=>{var pe;return(pe=Ie==null?void 0:Ie.key)==null?void 0:pe.includes("struct")}))==null?void 0:Oe.value)==null?void 0:Za[0])==null?void 0:Ha.引用)==null?void 0:xl.contents}),ma.push({key:"formContent",contents:ia}),ma.push({key:"paramHideProps",contents:La}),m.compData=await Bp(ma),(Yl=m.compData)!=null&&Yl.find(Ie=>(Ie==null?void 0:Ie.key)==="tab")&&(m.tab=(Fl=(kl=m.compData)==null?void 0:kl.find(Ie=>(Ie==null?void 0:Ie.key)==="tab"))==null?void 0:Fl.contents),(ja=m.compData)!=null&&ja.find(Ie=>(Ie==null?void 0:Ie.key)==="step")&&(m.step=(Rl=(zl=m.compData)==null?void 0:zl.find(Ie=>(Ie==null?void 0:Ie.key)==="step"))==null?void 0:Rl.contents),(Ma=m.compData)!=null&&Ma.find(Ie=>(Ie==null?void 0:Ie.key)==="choice")&&(m.choice=(sl=(rl=m.compData)==null?void 0:rl.find(Ie=>(Ie==null?void 0:Ie.key)==="choice"))==null?void 0:sl.contents)}return m});return n=await Promise.all(t),n},Op=A.useLoginState(A.pinia),{loginUserInfo:xi}=A.storeToRefs(Op),vt=async(a,l,r="Manual",n=[])=>{var f;let t=a,s;Array.isArray(l==null?void 0:l[0])?s=he.getColumnChild(l==null?void 0:l[0]):s=l;let v=(f=s==null?void 0:s.filter(m=>{var g;return(m==null?void 0:m.calculatorFilter)&&((g=m==null?void 0:m.calculatorFilter)==null?void 0:g.includes(r))||(m==null?void 0:m.calculatorFilter)===""&&(m==null?void 0:m.functionName)}))==null?void 0:f.map(m=>({prop:m==null?void 0:m.prop,label:m==null?void 0:m.label,methods:m==null?void 0:m.calculatorFilter,functionName:m==null?void 0:m.functionName,functionRelatedWords:m==null?void 0:m.functionRelatedWords})),p=t==null?void 0:t.map(async m=>(m=await Pp(m,v,s,r,t,n),m));return p=await Promise.all(p),p},Lp=a=>{let l=a==null?void 0:a.contents,r=a==null?void 0:a.valueString,n=a==null?void 0:a.prop,t=a==null?void 0:a.headers,s;return Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=he.getValueToObjectValue(l,he.getColumnContents(t))),r==null||r.forEach(v=>{var p;if(l!=null&&l[v]){let f=l==null?void 0:l[v];s=s?f?Nl.isEqual(f.toString(),s.toString()):void 0:f}else{let f=(p=t==null?void 0:t.find(g=>(g==null?void 0:g.label)===v))==null?void 0:p.prop,m=(l==null?void 0:l[f])??0;s=s?m?Nl.isEqual(m.toString(),s.toString()):void 0:m}}),l[n]=s===void 0?void 0:s?1:0,l},br=a=>{const[l,r,n]=A.cloneDeep(a).split(":").map(Number);let t=+a;return!a||!(a!=null&&a.includes(":"))?t:(l??0)*3600+(r??0)*60+(n??0)},jn=a=>{const l=s=>s.toString().padStart(2,"0"),r=Math.floor(a/3600),n=Math.floor(a%3600/60),t=a%60;return`${l(r)}:${l(n)}:${parseInt(l(t))}`},Rp=a=>{let l=a==null?void 0:a.contents,r=a==null?void 0:a.valueString,n=a==null?void 0:a.prop,t=a==null?void 0:a.headers,s=a==null?void 0:a.typeString,v=a==null?void 0:a.allContents,p=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=he.getValueToObjectValue(l,he.getColumnContents(t))),r==null||r.forEach(f=>{var m,g,c,D,M,S,K,I,R;if(l!=null&&l[f]){if(s==="Row")if(!((g=((m=l==null?void 0:l[f])==null?void 0:m.toString())??"")!=null&&g.includes(":"))&&!((c=p==null?void 0:p.toString())!=null&&c.includes(":"))){let j=+(l==null?void 0:l[f]);p=p+j}else p=br(p.toString())+br((D=l==null?void 0:l[f])==null?void 0:D.toString()),p=jn(p)}else if(s==="Row"){let j=(M=t==null?void 0:t.find(E=>(E==null?void 0:E.label)===f))==null?void 0:M.prop;if(!((K=Number.isNaN(l==null?void 0:l[j])?"":(S=l==null?void 0:l[j])==null?void 0:S.toString())!=null&&K.includes(":"))&&!((I=p==null?void 0:p.toString())!=null&&I.includes(":"))){let E=+((l==null?void 0:l[j])??0);p=p+E}else p=br(p==null?void 0:p.toString())+br((R=(l==null?void 0:l[j])??0)==null?void 0:R.toString()),p=jn(p)}}),s==="Column"){let f=[];r==null||r.forEach(m=>{let g=v==null?void 0:v.map(c=>{var D;return(c==null?void 0:c[m])??(c==null?void 0:c[(D=t==null?void 0:t.find(M=>(M==null?void 0:M.label)===m))==null?void 0:D.prop])});f=[...f,...g]}),p=f.reduce((m,g)=>{let c=0;Number.isNaN(m)||(c=+m);let D=0;return Number.isNaN(g)||(D=+g),c+D},0)}return l[n]=p,l},$p=a=>{let l=a==null?void 0:a.contents,r=a==null?void 0:a.valueString,n=a==null?void 0:a.prop,t=a==null?void 0:a.headers,s=a==null?void 0:a.typeString,v=a==null?void 0:a.allContents,p=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=he.getValueToObjectValue(l,he.getColumnContents(t))),r==null||r.forEach(f=>{var m,g,c,D,M,S,K;if(l!=null&&l[f]){if(s==="Row")if(!((g=(m=l==null?void 0:l[f])==null?void 0:m.toString())!=null&&g.includes(":"))&&!((c=p==null?void 0:p.toString())!=null&&c.includes(":"))){let I=+(l==null?void 0:l[f]);p=p===0?p+I:p-I}else p=p===0?br(p.toString())+br(l==null?void 0:l[f].toString()):br(p.toString())-br(l==null?void 0:l[f].toString()),p=jn(p)}else if(s==="Row"){let I=(D=t==null?void 0:t.find(R=>(R==null?void 0:R.label)===f))==null?void 0:D.prop;if(!((S=Number.isNaN(l==null?void 0:l[I])?"":(M=l==null?void 0:l[I])==null?void 0:M.toString())!=null&&S.includes(":"))&&!((K=p==null?void 0:p.toString())!=null&&K.includes(":"))){let R=+((l==null?void 0:l[I])??0);p=p===0?p+R:p-R}else p=p===0?br(p.toString())+br(((l==null?void 0:l[I])??0).toString()):br(p.toString())-br(((l==null?void 0:l[I])??0).toString()),p=jn(p)}}),s==="Column"){let f=[];r==null||r.forEach(m=>{let g=v==null?void 0:v.map(c=>{var D;return(c==null?void 0:c[m])??(c==null?void 0:c[(D=t==null?void 0:t.find(M=>(M==null?void 0:M.label)===m))==null?void 0:D.prop])});f=[...f,...g]}),p=f.reduce((m,g)=>{let c=0;Number.isNaN(m)||(c=+m);let D=0;return Number.isNaN(g)||(D=+g),c-D},0)}return l[n]=p,l},Vp=a=>{let l=a==null?void 0:a.contents,r=a==null?void 0:a.valueString,n=a==null?void 0:a.prop,t=a==null?void 0:a.headers,s=a==null?void 0:a.typeString,v=a==null?void 0:a.allContents,p=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=he.getValueToObjectValue(l,he.getColumnContents(t))),r==null||r.forEach(f=>{var m,g,c,D,M,S,K;if(l!=null&&l[f]){if(s==="Row")if(!((g=(m=l==null?void 0:l[f])==null?void 0:m.toString())!=null&&g.includes(":"))&&!((c=p==null?void 0:p.toString())!=null&&c.includes(":"))){let I=+(l==null?void 0:l[f]);p=p===0?p+I:p*I}else p=p===0?br(p.toString())+br(l==null?void 0:l[f].toString()):br(p.toString())*br(l==null?void 0:l[f].toString()),p=jn(p)}else if(s==="Row"){let I=(D=t==null?void 0:t.find(R=>(R==null?void 0:R.label)===f))==null?void 0:D.prop;if(!(l!=null&&l[I]))p=void 0;else if(!((S=Number.isNaN(l==null?void 0:l[I])?"":(M=l==null?void 0:l[I])==null?void 0:M.toString())!=null&&S.includes(":"))&&!((K=p==null?void 0:p.toString())!=null&&K.includes(":"))){let R=+((l==null?void 0:l[I])??0);p=p===0?p+R:p*R}else p=p===0?br(p.toString())+br(((l==null?void 0:l[I])??0).toString()):br(p.toString())*br(((l==null?void 0:l[I])??0).toString()),p=jn(p)}}),s==="Column"){let f=[];r==null||r.forEach(m=>{let g=v==null?void 0:v.map(c=>{var D;return(c==null?void 0:c[m])??(c==null?void 0:c[(D=t==null?void 0:t.find(M=>(M==null?void 0:M.label)===m))==null?void 0:D.prop])});f=[...f,...g]}),p=f.reduce((m,g)=>{let c=0;Number.isNaN(m)||(c=+m);let D=0;return Number.isNaN(g)||(D=+g),c*D},0)}return l[n]=p,l},Fp=a=>{let l=a==null?void 0:a.contents,r=a==null?void 0:a.valueString,n=a==null?void 0:a.prop,t=a==null?void 0:a.headers,s=a==null?void 0:a.typeString,v=a==null?void 0:a.allContents,p=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=he.getValueToObjectValue(l,he.getColumnContents(t))),r==null||r.forEach(f=>{var m,g,c,D,M,S,K;if(l!=null&&l[f]){if(s==="Row")if(!((g=(m=l==null?void 0:l[f])==null?void 0:m.toString())!=null&&g.includes(":"))&&!((c=p==null?void 0:p.toString())!=null&&c.includes(":"))){let I=+(l==null?void 0:l[f]);p=p===0?p+I:p/I}else p=p===0?br(p.toString())+br(l==null?void 0:l[f].toString()):br(p.toString())/br(l==null?void 0:l[f].toString()),p=jn(p)}else if(s==="Row"){let I=(D=t==null?void 0:t.find(R=>(R==null?void 0:R.label)===f))==null?void 0:D.prop;if(!((S=Number.isNaN(l==null?void 0:l[I])?"":(M=l==null?void 0:l[I])==null?void 0:M.toString())!=null&&S.includes(":"))&&!((K=p==null?void 0:p.toString())!=null&&K.includes(":"))){let R=+((l==null?void 0:l[I])??0);p=p===0?p+R:p/R}else p=p===0?br(p.toString())+br(((l==null?void 0:l[I])??0).toString()):br(p.toString())/br(((l==null?void 0:l[I])??0).toString()),p=jn(p)}}),s==="Column"){let f=[];r==null||r.forEach(m=>{let g=v==null?void 0:v.map(c=>{var D;return(c==null?void 0:c[m])??(c==null?void 0:c[(D=t==null?void 0:t.find(M=>(M==null?void 0:M.label)===m))==null?void 0:D.prop])});f=[...f,...g]}),p=f.reduce((m,g)=>{let c=0;Number.isNaN(m)||(c=+m);let D=0;return Number.isNaN(g)||(D=+g),c/D},0)}return l[n]=p.toFixed(2),l},fo={Sum:Rp,Substract:$p,Multiple:Vp,Divide:Fp,Compare:Lp},Pp=async(a,l,r,n="Auto",t,s=[])=>{var g,c,D,M,S,K,I,R,j,E,x,k,b,w,$,F,J,se,ge,Me,V;let v=a,p=[],f=await A.getPageDataApi({platId:parseInt((g=xi==null?void 0:xi.value)==null?void 0:g.plat_id),pageName:"menu"});f=(M=(D=(c=f==null?void 0:f.data)==null?void 0:c.result)==null?void 0:D.filter(fe=>(fe==null?void 0:fe.property_name)===""))==null?void 0:M[0];let m=[];if(f!=null&&f.object_name){f=f==null?void 0:f.object_name;let fe=await A.getPageDataApi({platId:parseInt((S=xi==null?void 0:xi.value)==null?void 0:S.plat_id),pageName:f});fe=(E=(j=(R=(I=(K=fe==null?void 0:fe.data)==null?void 0:K.result)==null?void 0:I[0])==null?void 0:R.contents)==null?void 0:j.find(ae=>{var de;return(de=ae==null?void 0:ae.key)==null?void 0:de.includes("content")}))==null?void 0:E.value,p=(x=fe==null?void 0:fe.map(ae=>({functionName:ae==null?void 0:ae.函数名称,functionContent:ae==null?void 0:ae.输出值})))==null?void 0:x.filter(ae=>(ae==null?void 0:ae.functionContent)!==""),p==null||p.forEach(ae=>{m.push(ae.functionName),fo[ae.functionName]=new Function("return "+ae.functionContent)()})}if((l==null?void 0:l.length)===0)return v;for(let fe in l){let ae=(k=l==null?void 0:l[fe])==null?void 0:k.functionName;const de=fo==null?void 0:fo[ae];let Ce=(b=l==null?void 0:l[fe])==null?void 0:b.methods;if(Ce=he.analyzeSplitToContent(Ce,","),console.log(Ce),(w=Ce==null?void 0:Ce.find(Fe=>Fe==null?void 0:Fe.includes("@FunctionType")))!=null&&w.includes(n)||(Ce==null?void 0:Ce.length)===0){let Fe=((J=(F=($=Ce==null?void 0:Ce.find(ye=>ye==null?void 0:ye.includes("@FunctionExtent")))==null?void 0:$.replace(":","="))==null?void 0:F.split("="))==null?void 0:J[1])??[];if(await new Function("return ")(),(m==null?void 0:m.length)>0&&m.find(ye=>ye===ae)){let ye="";try{let ue=(se=l==null?void 0:l[fe])==null?void 0:se.functionRelatedWords,U=(s==null?void 0:s.length)>0?s==null?void 0:s.map(Le=>{var Pe;return Le==null?void 0:Le[(Pe=l==null?void 0:l[fe])==null?void 0:Pe.prop]}):["0"];U=U==null?void 0:U.map(Le=>Le==null?void 0:Le.slice((Le==null?void 0:Le.length)-5,Le==null?void 0:Le.length)),U=U==null?void 0:U.map(Le=>he.isNumber(parseInt(Le))&&parseInt(Le)?parseInt(Le):0);let Se=Math.max(...U);ue=ue==null?void 0:ue.map(Le=>{if(Le!=null&&Le.includes("'"))return Le==null?void 0:Le.replaceAll("'","");if(Le!=null&&Le.includes("@"))return Se+1;{let Pe=Object.keys(v);return Le=(v==null?void 0:v[Le])??(v==null?void 0:v[Pe==null?void 0:Pe.find(la=>la==null?void 0:la.includes("."+Le))]),Le}}),ye=de(...ue)}catch(ue){qa.ElMessage.warning("关联数据出现错误,"+ue.message)}let T=(ge=l==null?void 0:l[fe])==null?void 0:ge.prop;v[T]=ye}else v=de({contents:v,valueString:(Me=l==null?void 0:l[fe])==null?void 0:Me.functionRelatedWords,prop:(V=l==null?void 0:l[fe])==null?void 0:V.prop,headers:r,typeString:Fe,allContents:t})}}return v},jp=A.useLoginState(A.pinia),{loginUserInfo:Xr}=A.storeToRefs(jp),Hp=A.useMenuState(A.pinia),{activeMenuPath:os,currentMenuPath:ho}=A.storeToRefs(Hp),oc=A.useUnit(A.pinia);let ts="$R";const{selectTitle:Si}=A.storeToRefs(oc),tc=async(a,l)=>{var v,p,f,m,g,c,D,M,S,K,I,R,j;let r=os.value,n="",t=((v=Si==null?void 0:Si.value)==null?void 0:v.find(E=>(E==null?void 0:E.condition)==="child"&&!(E!=null&&E.relatedContent)))??void 0;(a==null?void 0:a.length)===0||(r=l?r:(p=a==null?void 0:a[0])==null?void 0:p.object_name,n=(f=a==null?void 0:a[0])==null?void 0:f.father_name);let s=[];if(n!==""){let E=n;(E==null?void 0:E[(E==null?void 0:E.length)-1])==="/"&&(E=E==null?void 0:E.slice(0,(E==null?void 0:E.length)-1));let x=await Kr(E,!1);x=(m=x==null?void 0:x[0])==null?void 0:m.compData;let k=(g=x==null?void 0:x.find(w=>(w==null?void 0:w.key)==="header"))==null?void 0:g.contents;k=((c=k==null?void 0:k.find(w=>w==null?void 0:w.isMainKey))==null?void 0:c.prop)??((D=k==null?void 0:k[0])==null?void 0:D.prop);let b=(S=(M=x==null?void 0:x.find(w=>(w==null?void 0:w.key)==="tableContents"))==null?void 0:M.contents)==null?void 0:S.map(w=>({label:w==null?void 0:w[k],value:w==null?void 0:w[k]}));s=(K=n==null?void 0:n.split("/"))==null?void 0:K.map(w=>(w===""?t?(t.isShow=!0,w=t):w={value:w,condition:"child",options:b,parentContent:(n==null?void 0:n[(n==null?void 0:n.length)-1])==="/"?n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1):n,isShow:!0}:w={condition:"parent",value:w.trim(),isShow:!0},w))}if(r!==""){let E=(I=r==null?void 0:r.split("/"))==null?void 0:I.map(x=>(x={condition:"normal",value:x.trim(),isShow:!0},x));((R=E==null?void 0:E[0])==null?void 0:R.value)===((j=s==null?void 0:s[0])==null?void 0:j.value)&&(E=E==null?void 0:E.filter((x,k)=>k!==0)),s=[...s??[],...E??[]]}n===""&&t&&((t==null?void 0:t.parentContent)!==os.value&&(t.isShow=!1),(t==null?void 0:t.value)!==""&&s.push(t)),oc.setSelectTitle(s)},Up=async a=>{var s,v,p,f,m,g,c,D,M;let l=await A.getPageDataApi({platId:parseInt((s=Xr==null?void 0:Xr.value)==null?void 0:s.plat_id),pageName:"menu"}),r=(v=l==null?void 0:l.data)==null?void 0:v.result,n=(g=(m=(f=(p=a==null?void 0:a.filter(S=>(S==null?void 0:S.comp)==="Table"))==null?void 0:p[0])==null?void 0:f.compData)==null?void 0:m.find(S=>(S==null?void 0:S.key)==="filter"))==null?void 0:g.contents;n=(M=(D=(c=n==null?void 0:n.replace("(",ts))==null?void 0:c.split(ts))==null?void 0:D[0])==null?void 0:M.replaceAll(":","/");let t=r==null?void 0:r.filter(S=>{var K;return(S==null?void 0:S.object_name)===ho.value+"/"||((K=ho.value)==null?void 0:K.includes(n))&&n+"/"===(S==null?void 0:S.object_name)});return(t==null?void 0:t.length)>0&&(a=a==null?void 0:a.map(S=>{var K;return(S==null?void 0:S.comp)==="Table"&&(S.compData=(K=S==null?void 0:S.compData)==null?void 0:K.map(I=>{var R,j,E;return(I==null?void 0:I.key)==="header"&&(Array.isArray((R=I.contents)==null?void 0:R[0])?I.contents[0]=(E=I.contents[0])==null?void 0:E.map((x,k)=>{var b;return k===0&&(x.isExistChild=!0,(b=ho.value)!=null&&b.includes(n)&&(x.fatherPath=n)),x}):I.contents=(j=I.contents)==null?void 0:j.map((x,k)=>{var b;return k===0&&(x.isExistChild=!0,(b=ho.value)!=null&&b.includes(n)&&(x.fatherPath=n)),x})),I})),S})),a},Kr=async(a,l,r={})=>{var v,p,f,m,g,c,D,M,S,K,I,R;let n=await A.getPageDataApi({platId:parseInt((v=Xr==null?void 0:Xr.value)==null?void 0:v.plat_id),pageName:a}),t=(p=n==null?void 0:n.data)==null?void 0:p.result;if((t==null?void 0:t.length)===0&&(r!=null&&r.originPath)&&(r==null?void 0:r.originPath)!==a){let j=await A.getPageDataApi({platId:parseInt((f=Xr==null?void 0:Xr.value)==null?void 0:f.plat_id),pageName:r==null?void 0:r.originPath});if(((g=(m=j==null?void 0:j.data)==null?void 0:m.result)==null?void 0:g.length)>0){let E=await is((c=j==null?void 0:j.data)==null?void 0:c.result,r,!1);E=E==null?void 0:E.map(async b=>{var F,J,se,ge,Me,V,fe,ae,de,Ce,Fe,ye,T,ue,U,Se,Le,Pe,la,Da,le,ta,te,ca,Ee,oe,Te,Ue,oa,Ja;let w=[],$=(F=Object.keys(b))==null?void 0:F.filter(L=>(L==null?void 0:L.includes("name"))&&L!=="nameContents");for(let L in b)$!=null&&$.find(H=>H===L)&&w.push(b==null?void 0:b[L]);if(w=w.reverse(),(b==null?void 0:b.comp)==="Table"){let L=(ge=(se=(J=b==null?void 0:b.compData)==null?void 0:J.find(Q=>(Q==null?void 0:Q.key)==="tableContents"))==null?void 0:se.contents)==null?void 0:ge.map(Q=>{let me={};for(let ve in Q)ve!=="id"&&ve!=="create_time"&&ve!=="update_time"&&ve!=="sort"&&ve!=="create_user_id"&&ve!=="update_user_id"&&ve!=="department_id"&&ve!=="relatedId"&&(me[ve]=Q==null?void 0:Q[ve]);return Q=Object.values(me),Q}),H=(V=(Me=b==null?void 0:b.compData)==null?void 0:Me.find(Q=>(Q==null?void 0:Q.key)==="header"))==null?void 0:V.contents;if(Array.isArray(H==null?void 0:H[0])?(H[0].push({label:"排序",prop:"sort"}),H[0].push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(fe=H[0])!=null&&fe.find(Q=>(Q==null?void 0:Q.prop)==="disabled")&&(H[0]=(ae=H[0])==null?void 0:ae.filter(Q=>(Q==null?void 0:Q.prop)!=="disabled"),H[0].unshift({label:"",prop:"disabled",sortable:!1}))):(H||(H=[]),H.push({label:"排序",prop:"sort"}),H.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),H!=null&&H.find(Q=>(Q==null?void 0:Q.prop)==="disabled")&&(H=H==null?void 0:H.filter(Q=>(Q==null?void 0:Q.prop)!=="disabled"),H.unshift({label:"",prop:"disabled",sortable:!1}))),H!=null&&H.some(Q=>{var me;return(Q==null?void 0:Q.calculatorFilter)&&((me=Q==null?void 0:Q.calculatorFilter)==null?void 0:me.includes("Auto"))})&&(L=await vt(L,H,"Auto"),L=L==null?void 0:L.map(Q=>Object.values(Q))),b!=null&&b.fatherSyncContents){Array.isArray((de=b==null?void 0:b.fatherSyncContents)==null?void 0:de[0])&&(b.fatherSyncContents=(Ce=b==null?void 0:b.fatherSyncContents)==null?void 0:Ce[0]);let Q=(Fe=Si.value)==null?void 0:Fe.find(me=>(me==null?void 0:me.condition)==="child");b.fatherSyncContents=(ye=b==null?void 0:b.fatherSyncContents)==null?void 0:ye.map(me=>{var ve,da,ea,ce,pa,Ne;return((da=me==null?void 0:me.menus)==null?void 0:da[((ve=me==null?void 0:me.menus)==null?void 0:ve.length)-1])==="/"&&(Q==null?void 0:Q.parentContent)+"/"!==(me==null?void 0:me.menus)?me.menus=(me==null?void 0:me.menus)+(Q==null?void 0:Q.value):((ce=me==null?void 0:me.menus)==null?void 0:ce[((ea=me==null?void 0:me.menus)==null?void 0:ea.length)-1])==="/"&&(Q==null?void 0:Q.parentContent)+"/"===(me==null?void 0:me.menus)&&(me.menus=(Ne=me.menus)==null?void 0:Ne.slice(0,((pa=me.menus)==null?void 0:pa.length)-1)),me})}if(b!=null&&b.sonSyncContents){Array.isArray((T=b==null?void 0:b.sonSyncContents)==null?void 0:T[0])&&(b.sonSyncContents=(ue=b==null?void 0:b.sonSyncContents)==null?void 0:ue[0]);let Q=(U=Si.value)==null?void 0:U.find(me=>(me==null?void 0:me.condition)==="child");b.sonSyncContents=(Se=b==null?void 0:b.sonSyncContents)==null?void 0:Se.map(me=>{var ve,da,ea,ce,pa,Ne;return((da=me==null?void 0:me.menus)==null?void 0:da[((ve=me==null?void 0:me.menus)==null?void 0:ve.length)-1])==="/"&&(Q==null?void 0:Q.parentContent)+"/"!==(me==null?void 0:me.menus)?me.menus=(me==null?void 0:me.menus)+(Q==null?void 0:Q.value):((ce=me==null?void 0:me.menus)==null?void 0:ce[((ea=me==null?void 0:me.menus)==null?void 0:ea.length)-1])==="/"&&(Q==null?void 0:Q.parentContent)+"/"===(me==null?void 0:me.menus)&&(me.menus=(Ne=me.menus)==null?void 0:Ne.slice(0,((pa=me.menus)==null?void 0:pa.length)-1)),me})}if(b!=null&&b.relatedQuotes){Array.isArray((Le=b==null?void 0:b.relatedQuotes)==null?void 0:Le[0])&&(b.relatedQuotes=(Pe=b==null?void 0:b.relatedQuotes)==null?void 0:Pe[0]);let Q=(la=Si.value)==null?void 0:la.find(me=>(me==null?void 0:me.condition)==="child");b.relatedQuotes=(Da=b==null?void 0:b.relatedQuotes)==null?void 0:Da.map(me=>{var ve,da,ea,ce,pa,Ne;return((da=me==null?void 0:me.menus)==null?void 0:da[((ve=me==null?void 0:me.menus)==null?void 0:ve.length)-1])==="/"&&(Q==null?void 0:Q.parentContent)+"/"!==(me==null?void 0:me.menus)?me.menus=(me==null?void 0:me.menus)+(Q==null?void 0:Q.value):((ce=me==null?void 0:me.menus)==null?void 0:ce[((ea=me==null?void 0:me.menus)==null?void 0:ea.length)-1])==="/"&&(Q==null?void 0:Q.parentContent)+"/"===(me==null?void 0:me.menus)&&(me.menus=(Ne=me.menus)==null?void 0:Ne.slice(0,((pa=me.menus)==null?void 0:pa.length)-1)),me})}b={filter:(ta=(le=b==null?void 0:b.compData)==null?void 0:le.find(Q=>(Q==null?void 0:Q.key)==="filter"))==null?void 0:ta.contents,key:b==null?void 0:b.comp,name:w,tableColumns:H,tableContents:L,menuFilter:b==null?void 0:b.menuFilter,fatherSyncContents:b==null?void 0:b.fatherSyncContents,relatedQuotes:b==null?void 0:b.relatedQuotes,sonSyncContents:b==null?void 0:b.sonSyncContents}}else{let L=(Ee=(ca=(te=b==null?void 0:b.compData)==null?void 0:te.find(Q=>(Q==null?void 0:Q.key)==="formContent"))==null?void 0:ca.contents)==null?void 0:Ee.map(Q=>(Q==null?void 0:Q.value)??"");L=[L];let H=(Ue=(Te=(oe=b==null?void 0:b.compData)==null?void 0:oe.find(Q=>(Q==null?void 0:Q.key)==="formContent"))==null?void 0:Te.contents)==null?void 0:Ue.map(Q=>(Q.value="",Q));b={contents:L,filter:(Ja=(oa=b==null?void 0:b.compData)==null?void 0:oa.find(Q=>(Q==null?void 0:Q.key)==="filter"))==null?void 0:Ja.contents,key:b==null?void 0:b.comp,name:w,value:H,fatherSyncContents:b==null?void 0:b.fatherSyncContents,relatedQuotes:b==null?void 0:b.relatedQuotes,sonSyncContents:b==null?void 0:b.sonSyncContents}}return b.isShow=!1,b}),E=await Promise.all(E);let x=[{key:"menuPath",contents:[{path:a,fatherPath:(S=(M=(D=j==null?void 0:j.data)==null?void 0:D.result)==null?void 0:M[0])==null?void 0:S.father_name,isShow:!1}]},{key:a,contents:E}];await A.createPlatFormDataApi({platId:parseInt((K=Xr==null?void 0:Xr.value)==null?void 0:K.plat_id),changeData:x});let k=await A.getPageDataApi({platId:parseInt((I=Xr==null?void 0:Xr.value)==null?void 0:I.plat_id),pageName:a});t=(R=k==null?void 0:k.data)==null?void 0:R.result}}l&&await tc(t,!!(r!=null&&r.originPath));let s=await is(t,r);return l&&(s=await Up(s)),s==null?void 0:s.filter(j=>j)},ss=async a=>{var n,t,s,v,p,f,m,g,c,D,M;let l=(n=a==null?void 0:a.menus)==null?void 0:n.join("/");a!=null&&a.endChildMenu&&(a==null?void 0:a.endChildMenu)!==""&&(l==null?void 0:l[(l==null?void 0:l.length)-1])==="/"&&(l=l+(a==null?void 0:a.endChildMenu)),(l==null?void 0:l[(l==null?void 0:l.length)-1])==="/"&&(l=l+((s=(t=a.value)==null?void 0:t.split(" "))==null?void 0:s[0]));let r=await Kr(l,!1);if(r=(v=r==null?void 0:r.filter(S=>{var K,I;return(S==null?void 0:S.name)===((I=a==null?void 0:a.groups)==null?void 0:I[((K=a==null?void 0:a.groups)==null?void 0:K.length)-1])}))==null?void 0:v[0],(f=(p=r==null?void 0:r.compData)==null?void 0:p.find(S=>(S==null?void 0:S.key)==="tableContents"))!=null&&f.contents){r=(g=(m=r==null?void 0:r.compData)==null?void 0:m.find(K=>(K==null?void 0:K.key)==="tableContents"))==null?void 0:g.contents;let S=((c=a==null?void 0:a.words)==null?void 0:c[0])??(a==null?void 0:a.prop);return r=r==null?void 0:r.filter(K=>{var I,R,j,E;return(K==null?void 0:K[a!=null&&a.endChildMenu?S:(I=a==null?void 0:a.words)==null?void 0:I[0]])===(a!=null&&a.relatedWords&&((R=a==null?void 0:a.relatedWords)==null?void 0:R.length)>0?(E=(j=a.value)==null?void 0:j.split(" "))==null?void 0:E[0]:a.value)}),r==null?void 0:r[0]}else{let S=(M=(D=r==null?void 0:r.compData)==null?void 0:D.find(I=>(I==null?void 0:I.key)==="formContent"))==null?void 0:M.contents,K={};return S==null||S.forEach(I=>{K[I.prop]=I.value}),K}},qp={key:0,class:"extra-button-content"},Wp={class:"table-operator-wrap"},Kp={key:0,class:"extra-button-filter"},Gp={key:1,class:"extra-header"},Yp=["onClick"],Jp={class:"table-op-text"},Xp={class:"table-op-text"},Zp={class:"drop-menu",style:{width:"120px"}},Qp=["onClick"],ef={key:0},af={key:1},lf=["onClick"],rf={class:"table-op-text"},nf={key:1,class:"extra-button-content tabs-button-wrapper"},of={class:"table-operator-wrap"},tf={class:"extra-button-filter"},sf={key:0,class:"extra-header"},cf={class:"table-op-action"},uf={class:"table-op-text"},df={class:"drop-menu",style:{width:"120px"}},pf={key:0},ff={key:1},hf=["onClick"],vf={class:"table-op-text"},mf={__name:"header",props:{pageLayout:{type:String,default:"vertical"},lockingPage:Boolean,level:{type:Number,default:1},compName:{type:String,default:"表格名称",required:!1},filterShow:{type:Boolean,default:!1},isDevMode:Boolean,selectNums:Number,dataNums:Number,filterValues:Array,buttons:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},menuFilter:{type:Array,default:()=>[]}},emits:["buttonClick","filter","getImportData"],setup(a,{emit:l}){const r=l,n=a,t=()=>{const $=(n==null?void 0:n.menuFilter)||[];return Array.isArray($)&&($==null?void 0:$.some(F=>{const J=typeof F=="string"?F:JSON.stringify(F);return J==null?void 0:J.includes("HideGroup=Yes")}))},s=e.ref(""),v=e.ref(!1),p=e.ref(!1),f=e.ref([]),m=e.ref([{label:"清空",background:"#999999"},{label:"确认"}]),g=[{label:"新增",icon:"new"},{label:"导入",icon:"import_101"},{label:"导出",icon:"export_101"},{label:"导出paraform",icon:"export_101"},{label:"OCR识别",icon:"OCR识别"},{label:"切换视图",icon:"cardViewport_101"}];function c($,F){return $.map(J=>{const se={...J};return F.forEach(ge=>{delete se[ge]}),se})}function D($){if(!$||$.t!=="n")return($==null?void 0:$.v)??"";const F=$.v;if($.z){const J=String($.z).toLowerCase(),se=["yyyy/mm/dd","yyyy-mm-dd","yyyy.mm.dd","yy/mm/dd","yy-mm-dd","yy.mm.dd","mm/dd/yy","mm-dd-yy","mm.dd.yy","dd/mm/yy","dd-mm-yy","dd.mm.yy","m/d/yy","m/d/yyyy","d/m/yy","d/m/yyyy","yyyy年","yy年","m月","d日","yyyy年m月d日","yy年m月d日","[$-f800]","[$-f400]"];for(const V of se)if(J.includes(V))return M(F);const ge=/[ymdhms]/.test(J),Me=/^[0#\.\,\s]+$/.test(J.replace(/[\\\/\-:]/g,""));if(ge&&!Me)return M(F)}if(F>=1&&F<=73050){if(F<5e3)return F;if(F>=5e3&&F<4e4){const J=Math.floor((F-25569)/365.25)+1970;return J>=1970&&J<=2e3&&$.z&&/[ymd]/.test(String($.z).toLowerCase())?M(F):F}if(F>=4e4)return M(F)}return F}function M($){if(typeof $!="number")return $;try{const F=new Date(($-25569)*86400*1e3);if(isNaN(F.getTime()))return $;const J=F.getFullYear(),se=String(F.getMonth()+1).padStart(2,"0"),ge=String(F.getDate()).padStart(2,"0");return`${J}-${se}-${ge}`}catch{return $}}const S=$=>{const F=$.raw;if(!F)return;const J=new FileReader;J.onload=se=>{try{const ge=new Uint8Array(se.target.result),Me=he.readSync(ge,{type:"array"}),V=Me.SheetNames[0],fe=Me.Sheets[V],de=he.utils.decode_range(fe["!ref"]).e.c+1,Ce=new Array(de).fill(""),Fe=[];for(const Se in fe){if(Se[0]==="!")continue;const{r:Le,c:Pe}=he.utils.decode_cell(Se),la=fe[Se];let Da=D(la);if((Da==null||Da==="")&&(Da=""),Le===0)Ce[Pe]=Da;else{if(!Fe[Le-1]){Fe[Le-1]={};for(let le=0;le<de;le++)Fe[Le-1][`col_${le}`]=""}Fe[Le-1][`col_${Pe}`]=Da}}for(let Se=0;Se<de;Se++)Ce[Se]===void 0&&(Ce[Se]="");const ye=[];for(let Se=0;Se<Ce.length;Se++)(!Ce[Se]||Ce[Se].toString().trim()==="")&&ye.push(Se);let T,ue;(ye==null?void 0:ye.length)>0?(qa.ElMessage.warning("存在键为空的列,已自动过滤,请检查补充"),T=Ce.filter((Se,Le)=>!ye.includes(Le)),ue=c(Fe,ye==null?void 0:ye.map(Se=>`col_${Se}`))):(T=Ce,ue=Fe);const U=Fe==null?void 0:Fe[0];if(!(U!=null&&U.hasOwnProperty("col_0")))return qa.ElMessage.error("导入的数据列不匹配,请检查是否错位");r("getImportData",T,ue)}catch(ge){throw qa.ElMessage.error(ge.message),new Error(ge.message)}},J.readAsArrayBuffer(F)},K=$=>{var J;const F=(J=f.value)==null?void 0:J.reduce((se,ge,Me)=>(Me===0?se[ge.label]=$:se[ge.label]=ge==null?void 0:ge.value,se),{});r("filter",F,$,!0)},I=($,F={})=>{r("buttonClick",$,"",F)},R=$=>{var F,J;f.value=(J=(F=he.getColumnChild(A.cloneDeep($)))==null?void 0:F.filter(se=>(se==null?void 0:se.label)!==""&&(se==null?void 0:se.label)!=="操作"))==null?void 0:J.map(se=>({label:(se==null?void 0:se.label)??"",value:"",name:(se==null?void 0:se.prop)??"",isFormColHidden:se==null?void 0:se.isTableColHidden,width:2,prop:(se==null?void 0:se.prop)??""}))},j=e.ref(!1),E=$=>{var F;if(($==null?void 0:$.buttonName)==="确认"&&(r("filter",$==null?void 0:$.content),j.value=($==null?void 0:$.content)&&Object.values($==null?void 0:$.content).length>0),($==null?void 0:$.buttonName)==="清空"){const J=A.cloneDeep($==null?void 0:$.content);for(const se in J)J[se]="";f.value=(F=f.value)==null?void 0:F.map(se=>({...se,value:""})),r("filter",J),j.value=!1}v.value=!1},x=()=>{v.value=!v.value,p.value=!0},k=()=>{var F,J;f.value=(F=f.value)==null?void 0:F.map(se=>({...se,value:""}));const $=(J=f.value)==null?void 0:J.reduce((se,ge)=>(se[ge.label]=ge.value,se),{});r("filter",$)},b=e.ref(null);let w;return w=$=>{var ge;if(!v.value)return;const F=(ge=b==null?void 0:b.value)==null?void 0:ge.$el,J=F==null?void 0:F.contains($.target);let se=!1;document.querySelectorAll(".el-popover, .el-popper").forEach(Me=>{Me.contains($.target)&&(se=!0)}),!J&&!se&&(v.value=!1)},e.onMounted(()=>{document.addEventListener("click",w),R(n.columns)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",w)}),e.watch(()=>n.columns,()=>{R(n.columns)},{deep:!0,immediate:!0}),($,F)=>{var fe,ae,de,Ce,Fe,ye,T,ue;const J=e.resolveComponent("el-icon"),se=e.resolveComponent("svg-icon"),ge=e.resolveComponent("el-input"),Me=e.resolveComponent("el-upload"),V=e.resolveComponent("el-button");return a.pageLayout==="vertical"?(e.openBlock(),e.createElementBlock("div",qp,[t()?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(a.compName?"table-name-wrap":""),style:e.normalizeStyle({background:(n==null?void 0:n.level)>1?"transparent":"var(--ssgroup-background)",paddingLeft:((n==null?void 0:n.level)-1)*12+"px",fontWeight:600-((n==null?void 0:n.level)-1)*100>=400?600-((n==null?void 0:n.level)-1)*100:400,fontSize:17-(n==null?void 0:n.level)>=14?17-(n==null?void 0:n.level)+"px":"14px"})},e.toDisplayString(a.compName),7)),e.createElementVNode("div",Wp,[n!=null&&n.filterShow?(e.openBlock(),e.createElementBlock("div",Kp,[e.createVNode(Ru,{trigger:"contextmenu",ref_key:"popOverRef",ref:b,title:"",width:800,placement:"bottom-start",isVisible:v.value,"onUpdate:isVisible":F[4]||(F[4]=U=>v.value=U)},{reference:e.withCtx(()=>{var U,Se,Le,Pe;return[e.createVNode(ge,{modelValue:s.value,"onUpdate:modelValue":F[0]||(F[0]=la=>s.value=la),style:{"min-width":"80px"},placeholder:j.value?(Le=(Se=(U=a.filterValues)==null?void 0:U.filter(la=>la))==null?void 0:Se.slice(0,3))==null?void 0:Le.join("/"):"搜索","prefix-icon":e.unref(qa.search_default),clearable:"",onInput:K,disabled:((Pe=f.value)==null?void 0:Pe.length)===0},{suffix:e.withCtx(()=>{var la,Da;return[!s.value&&((Da=(la=a.filterValues)==null?void 0:la.filter(le=>le))!=null&&Da.join("/"))?(e.openBlock(),e.createBlock(J,{key:0,style:{cursor:"pointer"},onClick:k},{default:e.withCtx(()=>[e.createVNode(e.unref(qa.circle_close_default))]),_:1})):e.createCommentVNode("",!0)]}),append:e.withCtx(()=>[e.createElementVNode("span",{title:"条件查询",onClick:e.withModifiers(x,["stop"])},[e.createVNode(se,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:e.withCtx(()=>[p.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"form-content-value",onKeydown:F[1]||(F[1]=e.withModifiers(()=>{},["stop"])),onKeyup:F[2]||(F[2]=e.withModifiers(()=>{},["stop"])),onKeypress:F[3]||(F[3]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:f.value,buttonValue:m.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:m.value,isStartJustify:!1,onOnButtonClick:E},null,8,["rowContents","buttonValue"]))],32)):e.createCommentVNode("",!0)]),_:1},8,["isVisible"])])):e.createCommentVNode("",!0),a.buttons&&((fe=a.buttons)==null?void 0:fe.length)>0?(e.openBlock(),e.createElementBlock("div",Gp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((ae=a.buttons)==null?void 0:ae.filter(U=>a.isDevMode||(U==null?void 0:U.label)!=="修改模板"),(U,Se)=>{var Le;return e.openBlock(),e.createElementBlock("div",{class:"extra-contents",key:Se},[(U==null?void 0:U.type)==="upload"?(e.openBlock(),e.createBlock(Me,{key:0,class:"upload-button-wrap","on-change":S,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1,disabled:!!a.lockingPage},{default:e.withCtx(()=>{var Pe;return[e.createElementVNode("div",{class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}]),onClick:la=>I(U==null?void 0:U.label)},[e.createVNode(se,{class:"table-op-icon",name:(Pe=g==null?void 0:g.find(la=>(la==null?void 0:la.label)===(U==null?void 0:U.label)))==null?void 0:Pe.icon},null,8,["name"]),e.createElementVNode("span",Jp,e.toDisplayString(U==null?void 0:U.label),1)],10,Yp)]}),_:2},1032,["disabled"])):e.createCommentVNode("",!0),(U==null?void 0:U.type)==="popover"?(e.openBlock(),e.createBlock(ll._sfc_main,{key:1},{dropTitle:e.withCtx(()=>{var Pe;return[e.createElementVNode("div",{class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}])},[e.createVNode(se,{class:"table-op-icon",name:(Pe=g==null?void 0:g.find(la=>(la==null?void 0:la.label)===(U==null?void 0:U.label)))==null?void 0:Pe.icon},null,8,["name"]),e.createElementVNode("span",Xp,e.toDisplayString(U==null?void 0:U.label),1)],2)]}),dropMenu:e.withCtx(()=>[e.createElementVNode("div",Zp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U==null?void 0:U.contents,Pe=>{var la,Da;return e.openBlock(),e.createElementBlock("div",{key:Pe==null?void 0:Pe.label,class:e.normalizeClass(["table-op-drop-item",{"is-disabled":!!a.lockingPage}]),onClick:le=>!a.lockingPage&&I(Pe==null?void 0:Pe.label)},[e.createTextVNode(e.toDisplayString(Pe==null?void 0:Pe.label),1),(la=Pe==null?void 0:Pe.label)!=null&&la.includes("选中")?(e.openBlock(),e.createElementBlock("span",ef,"("+e.toDisplayString(a.selectNums)+")",1)):e.createCommentVNode("",!0),(Da=Pe==null?void 0:Pe.label)!=null&&Da.includes("全部")?(e.openBlock(),e.createElementBlock("span",af,"("+e.toDisplayString(a.dataNums)+")",1)):e.createCommentVNode("",!0)],10,Qp)}),128))])]),_:2},1024)):e.createCommentVNode("",!0),!(U!=null&&U.type)||(U==null?void 0:U.type)==="methodButton"?(e.openBlock(),e.createElementBlock("div",{key:2,id:"themeButton",class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}]),onClick:Pe=>!a.lockingPage&&I(U==null?void 0:U.label,U)},[e.createVNode(se,{class:"table-op-icon",name:((Le=g==null?void 0:g.find(Pe=>(Pe==null?void 0:Pe.label)===(U==null?void 0:U.label)))==null?void 0:Le.icon)??"normal"},null,8,["name"]),e.createElementVNode("span",rf,e.toDisplayString(U==null?void 0:U.label),1)],10,lf)):e.createCommentVNode("",!0)])}),128))])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createElementBlock("div",nf,[e.createElementVNode("div",of,[e.createElementVNode("div",tf,[e.createVNode(ge,{modelValue:s.value,"onUpdate:modelValue":F[5]||(F[5]=U=>s.value=U),style:{"min-width":"80px"},placeholder:j.value?(Fe=(Ce=(de=a.filterValues)==null?void 0:de.filter(U=>U))==null?void 0:Ce.slice(0,3))==null?void 0:Fe.join("/"):"搜索","prefix-icon":e.unref(qa.search_default),clearable:"",onInput:K,disabled:((ye=f.value)==null?void 0:ye.length)===0},{suffix:e.withCtx(()=>{var U,Se;return[!s.value&&((Se=(U=a.filterValues)==null?void 0:U.filter(Le=>Le))!=null&&Se.join("/"))?(e.openBlock(),e.createBlock(J,{key:0,style:{cursor:"pointer"},onClick:k},{default:e.withCtx(()=>[e.createVNode(e.unref(qa.circle_close_default))]),_:1})):e.createCommentVNode("",!0)]}),append:e.withCtx(()=>[e.createElementVNode("span",{title:"条件查询",onClick:e.withModifiers(x,["stop"])},[e.createVNode(se,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]),a.buttons&&((T=a.buttons)==null?void 0:T.length)>0?(e.openBlock(),e.createElementBlock("div",sf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((ue=a.buttons)==null?void 0:ue.filter(U=>a.isDevMode||(U==null?void 0:U.label)!=="修改模板"),(U,Se)=>{var Le;return e.openBlock(),e.createElementBlock("div",{class:"extra-contents",key:Se},[(U==null?void 0:U.type)==="upload"?(e.openBlock(),e.createBlock(Me,{key:0,class:"upload-button-wrap","on-change":S,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1},{default:e.withCtx(()=>{var Pe;return[e.createElementVNode("div",cf,[e.createVNode(se,{class:"table-op-icon",name:(Pe=g==null?void 0:g.find(la=>(la==null?void 0:la.label)===(U==null?void 0:U.label)))==null?void 0:Pe.icon},null,8,["name"]),e.createElementVNode("span",uf,e.toDisplayString(U==null?void 0:U.label),1)])]}),_:2},1024)):e.createCommentVNode("",!0),(U==null?void 0:U.type)==="popover"?(e.openBlock(),e.createBlock(ll._sfc_main,{key:1},{dropTitle:e.withCtx(()=>[(U==null?void 0:U.type)==="popover"?(e.openBlock(),e.createBlock(V,{key:0,style:{background:"transparent",color:"#000000"}},{icon:e.withCtx(()=>{var Pe;return[e.createVNode(se,{class:"table-op-icon",name:(Pe=g==null?void 0:g.find(la=>(la==null?void 0:la.label)===(U==null?void 0:U.label)))==null?void 0:Pe.icon},null,8,["name"])]}),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(U==null?void 0:U.label),1)]),_:2},1024)):e.createCommentVNode("",!0)]),dropMenu:e.withCtx(()=>[e.createElementVNode("div",df,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U==null?void 0:U.contents,Pe=>(e.openBlock(),e.createBlock(V,{key:Pe==null?void 0:Pe.label,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:la=>I(Pe==null?void 0:Pe.label)},{default:e.withCtx(()=>{var la,Da;return[e.createTextVNode(e.toDisplayString(Pe==null?void 0:Pe.label),1),(la=Pe==null?void 0:Pe.label)!=null&&la.includes("选中")?(e.openBlock(),e.createElementBlock("span",pf,"("+e.toDisplayString(a.selectNums)+")",1)):e.createCommentVNode("",!0),(Da=Pe==null?void 0:Pe.label)!=null&&Da.includes("全部")?(e.openBlock(),e.createElementBlock("span",ff,"("+e.toDisplayString(a.dataNums)+")",1)):e.createCommentVNode("",!0)]}),_:2},1032,["onClick"]))),128))])]),_:2},1024)):e.createCommentVNode("",!0),!(U!=null&&U.type)||(U==null?void 0:U.type)==="methodButton"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}]),id:"themeButton",onClick:Pe=>!a.lockingPage&&I(U==null?void 0:U.label,U)},[e.createVNode(se,{class:"table-op-icon",name:(Le=g==null?void 0:g.find(Pe=>(Pe==null?void 0:Pe.label)===(U==null?void 0:U.label)))==null?void 0:Le.icon},null,8,["name"]),e.createElementVNode("span",vf,e.toDisplayString(U==null?void 0:U.label),1)],10,hf)):e.createCommentVNode("",!0)])}),128))])):e.createCommentVNode("",!0)])]))}}},yf=Xl._export_sfc(mf,[["__scopeId","data-v-44a17652"]]),gf={__name:"index",props:{columns:Array,tableData:Array},setup(a){return(l,r)=>{const n=e.resolveComponent("el-table-column"),t=e.resolveComponent("el-table");return e.openBlock(),e.createBlock(t,{data:a.tableData,style:{width:"100%"},stripe:"","max-height":"500"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.columns,s=>{var v;return e.openBlock(),e.createBlock(n,{key:s==null?void 0:s.prop,label:s==null?void 0:s.label,prop:s==null?void 0:s.prop,fixed:(s==null?void 0:s.prop)==="operate"?"right":s==null?void 0:s.fixed,align:(s==null?void 0:s.align)??"left","show-overflow-tooltip":(s==null?void 0:s.showOverflowTooltip)??!0,width:s==null?void 0:s.width,"min-width":(s==null?void 0:s.minWidth)||((s==null?void 0:s.prop)==="operate"?80:(((v=s==null?void 0:s.label)==null?void 0:v.length)*2||4)*27)},{default:e.withCtx(p=>[e.renderSlot(l.$slots,"content",{row:p.row,column:p.column,$index:p.$index,scope:p}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.children,(f,m)=>(e.openBlock(),e.createBlock(ll._sfc_main$2,{key:m,column:f,tableData:a.tableData},e.createSlots({_:2},[e.renderList(l.$slots,(g,c)=>({name:c,fn:e.withCtx(({row:D,slotData:M,item:S,column:K})=>[e.renderSlot(l.$slots,c,e.mergeProps({ref_for:!0},M??D,{item:S??f,slotData:M??D,row:D,column:K,columnProp:f}))])}))]),1032,["column","tableData"]))),128))]),_:2},1032,["label","prop","fixed","align","show-overflow-tooltip","width","min-width"])}),128))]),_:3},8,["data"])}}};class bf extends Nl.Loader{constructor(l){super(l),this.littleEndian=!0}load(l,r,n,t){const s=this,v=new Nl.FileLoader(s.manager);v.setPath(s.path),v.setResponseType("arraybuffer"),v.setRequestHeader(s.requestHeader),v.setWithCredentials(s.withCredentials),v.load(l,function(p){try{r(s.parse(p))}catch(f){t?t(f):console.error(f),s.manager.itemError(l)}},n,t)}_getDataView(l,r,n,t){switch(n){case"F":return t===8?l.getFloat64(r,this.littleEndian):l.getFloat32(r,this.littleEndian);case"I":return t===1?l.getInt8(r):t===2?l.getInt16(r,this.littleEndian):l.getInt32(r,this.littleEndian);case"U":return t===1?l.getUint8(r):t===2?l.getUint16(r,this.littleEndian):l.getUint32(r,this.littleEndian)}}parse(l){function r(M,S){const K=M.length,I=new Uint8Array(S);let R=0,j=0,E,x,k;do if(E=M[R++],E<32){if(E++,j+E>S)throw new Error("Output buffer is not large enough");if(R+E>K)throw new Error("Invalid compressed data");do I[j++]=M[R++];while(--E)}else{if(x=E>>5,k=j-((E&31)<<8)-1,R>=K)throw new Error("Invalid compressed data");if(x===7&&(x+=M[R++],R>=K))throw new Error("Invalid compressed data");if(k-=M[R++],j+x+2>S)throw new Error("Output buffer is not large enough");if(k<0)throw new Error("Invalid compressed data");if(k>=j)throw new Error("Invalid compressed data");do I[j++]=I[k++];while(--x+2)}while(R<K);return I}function n(M){const S={},K=new Uint8Array(M);let I="",R="",j=0,E=!1;const x=K.length;for(;j<x&&E===!1;){const $=String.fromCharCode(K[j++]);$===`
2
+ `||$==="\r"?(R.trim().toLowerCase().startsWith("data")&&(E=!0),R=""):R+=$,I+=$}const k=I.search(/[\r\n]DATA\s(\S*)\s/i),b=/[\r\n]DATA\s(\S*)\s/i.exec(I.slice(k-1));if(S.data=b[1],S.headerLen=b[0].length+k,S.str=I.slice(0,S.headerLen),S.str=S.str.replace(/#.*/gi,""),S.version=/^VERSION (.*)/im.exec(S.str),S.fields=/^FIELDS (.*)/im.exec(S.str),S.size=/^SIZE (.*)/im.exec(S.str),S.type=/^TYPE (.*)/im.exec(S.str),S.count=/^COUNT (.*)/im.exec(S.str),S.width=/^WIDTH (.*)/im.exec(S.str),S.height=/^HEIGHT (.*)/im.exec(S.str),S.viewpoint=/^VIEWPOINT (.*)/im.exec(S.str),S.points=/^POINTS (.*)/im.exec(S.str),S.version!==null&&(S.version=parseFloat(S.version[1])),S.fields=S.fields!==null?S.fields[1].split(" "):[],S.type!==null&&(S.type=S.type[1].split(" ")),S.width!==null&&(S.width=parseInt(S.width[1])),S.height!==null&&(S.height=parseInt(S.height[1])),S.viewpoint!==null&&(S.viewpoint=S.viewpoint[1]),S.points!==null&&(S.points=parseInt(S.points[1],10)),S.points===null&&(S.points=S.width*S.height),S.size!==null&&(S.size=S.size[1].split(" ").map(function($){return parseInt($,10)})),S.count!==null)S.count=S.count[1].split(" ").map(function($){return parseInt($,10)});else{S.count=[];for(let $=0,F=S.fields.length;$<F;$++)S.count.push(1)}S.offset={};let w=0;for(let $=0,F=S.fields.length;$<F;$++)S.data==="ascii"?S.offset[S.fields[$]]=$:(S.offset[S.fields[$]]=w,w+=S.size[$]*S.count[$]);return S.rowSize=w,S}const t=n(l),s=[],v=[],p=[],f=[],m=[],g=new Nl.Color;if(t.data==="ascii"){const M=t.offset,I=new TextDecoder().decode(l).slice(t.headerLen).split(`
3
+ `);for(let R=0,j=I.length;R<j;R++){if(I[R]==="")continue;const E=I[R].split(" ");if(M.x!==void 0&&(s.push(parseFloat(E[M.x])),s.push(parseFloat(E[M.y])),s.push(parseFloat(E[M.z]))),M.rgb!==void 0){const x=t.fields.findIndex(se=>se==="rgb"),k=t.type[x],b=parseFloat(E[M.rgb]);let w=b;if(k==="F"){const se=new Float32Array(1);se[0]=b,w=new Int32Array(se.buffer)[0]}const $=(w>>16&255)/255,F=(w>>8&255)/255,J=(w>>0&255)/255;g.setRGB($,F,J,Nl.SRGBColorSpace),p.push(g.r,g.g,g.b)}M.normal_x!==void 0&&(v.push(parseFloat(E[M.normal_x])),v.push(parseFloat(E[M.normal_y])),v.push(parseFloat(E[M.normal_z]))),M.intensity!==void 0&&f.push(parseFloat(E[M.intensity])),M.label!==void 0&&m.push(parseInt(E[M.label]))}}if(t.data==="binary_compressed"){const M=new Uint32Array(l.slice(t.headerLen,t.headerLen+8)),S=M[0],K=M[1],I=r(new Uint8Array(l,t.headerLen+8,S),K),R=new DataView(I.buffer),j=t.offset;for(let E=0;E<t.points;E++){if(j.x!==void 0){const x=t.fields.indexOf("x"),k=t.fields.indexOf("y"),b=t.fields.indexOf("z");s.push(this._getDataView(R,t.points*j.x+t.size[x]*E,t.type[x],t.size[x])),s.push(this._getDataView(R,t.points*j.y+t.size[k]*E,t.type[k],t.size[k])),s.push(this._getDataView(R,t.points*j.z+t.size[b]*E,t.type[b],t.size[b]))}if(j.rgb!==void 0){const x=t.fields.indexOf("rgb"),k=R.getUint8(t.points*j.rgb+t.size[x]*E+2)/255,b=R.getUint8(t.points*j.rgb+t.size[x]*E+1)/255,w=R.getUint8(t.points*j.rgb+t.size[x]*E+0)/255;g.setRGB(k,b,w,Nl.SRGBColorSpace),p.push(g.r,g.g,g.b)}if(j.normal_x!==void 0){const x=t.fields.indexOf("normal_x"),k=t.fields.indexOf("normal_y"),b=t.fields.indexOf("normal_z");v.push(this._getDataView(R,t.points*j.normal_x+t.size[x]*E,t.type[x],t.size[x])),v.push(this._getDataView(R,t.points*j.normal_y+t.size[k]*E,t.type[k],t.size[k])),v.push(this._getDataView(R,t.points*j.normal_z+t.size[b]*E,t.type[b],t.size[b]))}if(j.intensity!==void 0){const x=t.fields.indexOf("intensity");f.push(this._getDataView(R,t.points*j.intensity+t.size[x]*E,t.type[x],t.size[x]))}if(j.label!==void 0){const x=t.fields.indexOf("label");m.push(R.getInt32(t.points*j.label+t.size[x]*E,this.littleEndian))}}}if(t.data==="binary"){const M=new DataView(l,t.headerLen),S=t.offset;for(let K=0,I=0;K<t.points;K++,I+=t.rowSize){if(S.x!==void 0){const R=t.fields.indexOf("x"),j=t.fields.indexOf("y"),E=t.fields.indexOf("z");s.push(this._getDataView(M,I+S.x,t.type[R],t.size[R])),s.push(this._getDataView(M,I+S.y,t.type[j],t.size[j])),s.push(this._getDataView(M,I+S.z,t.type[E],t.size[E]))}if(S.rgb!==void 0){const R=M.getUint8(I+S.rgb+2)/255,j=M.getUint8(I+S.rgb+1)/255,E=M.getUint8(I+S.rgb+0)/255;g.setRGB(R,j,E,Nl.SRGBColorSpace),p.push(g.r,g.g,g.b)}if(S.normal_x!==void 0){const R=t.fields.indexOf("normal_x"),j=t.fields.indexOf("normal_y"),E=t.fields.indexOf("normal_z");v.push(this._getDataView(M,I+S.normal_x,t.type[R],t.size[R])),v.push(this._getDataView(M,I+S.normal_y,t.type[j],t.size[j])),v.push(this._getDataView(M,I+S.normal_z,t.type[E],t.size[E]))}if(S.intensity!==void 0){const R=t.fields.indexOf("intensity");f.push(this._getDataView(M,I+S.intensity,t.type[R],t.size[R]))}S.label!==void 0&&m.push(M.getInt32(I+S.label,this.littleEndian))}}const c=new Nl.BufferGeometry;s.length>0&&c.setAttribute("position",new Nl.Float32BufferAttribute(s,3)),v.length>0&&c.setAttribute("normal",new Nl.Float32BufferAttribute(v,3)),p.length>0&&c.setAttribute("color",new Nl.Float32BufferAttribute(p,3)),f.length>0&&c.setAttribute("intensity",new Nl.Float32BufferAttribute(f,1)),m.length>0&&c.setAttribute("label",new Nl.Int32BufferAttribute(m,1)),c.computeBoundingSphere();const D=new Nl.PointsMaterial({size:.005});return p.length>0&&(D.vertexColors=!0),new Nl.Points(c,D)}}const kf=A.useModelComp(A.pinia),{systemPath:cs}=A.storeToRefs(kf),vo=e.ref(),us=new WeakMap;function xf(a,l,r,n,t){const s=async D=>{try{const M=await A.platformDownloadFile({url:D});if(M.status!==200)throw new Error(`下载失败: ${M.status}`);return M.data}catch(M){throw console.error("addModelFromUrl失败:",M),M}},v=D=>new Promise((M,S)=>{const K=new FileReader;K.onload=I=>{try{const R=I.target.result,E=new zn.MTLLoader().parse(R);E.preload(),M(E)}catch(R){S(R)}},K.onerror=()=>{S(new Error("MTL文件读取失败"))},K.readAsText(D)}),p=async D=>{const M={materials:{},create:function(S){return this.materials[S]?this.materials[S]:(console.warn(`Material '${S}' not found, using default material`),new Nl.MeshPhongMaterial({color:8947848,side:Nl.DoubleSide}))},getAsArray:function(){const S=[];for(const K in this.materials)S.push(this.materials[K]);return S},preload:function(){for(const S in this.materials)this.materials[S].map&&(this.materials[S].map.needsUpdate=!0)}};for(const S of D){const K=await v(S);Object.assign(M.materials,K.materials)}return M.preload(),M},f=async(D,M=[])=>new Promise((S,K)=>{const I=new FileReader;I.onload=async R=>{try{const j=R.target.result;let E=null;M&&M.length>0&&(M.length===1?E=await v(M[0]):E=await p(M));const x=new zn.OBJLoader;E&&x.setMaterials(E);const k=x.parse(j);E||k.traverse(b=>{b.isMesh&&(b.material=new Nl.MeshPhongMaterial({color:8947848,side:Nl.DoubleSide}))}),S(k)}catch(j){K(j)}},I.onerror=()=>{K(new Error("OBJ文件读取失败"))},I.readAsText(D)}),m=async D=>{var M;try{r.value=!0;const{scene:S}=a();if(!S)throw new Error("Scene not initialized");t();const K=[];for(let I=0;I<D.length;I++){const R=D[I];n.value=`正在加载模型 ${I+1}/${D.length}...`;const j=await s(R.objUrl),E=((M=R.objUrl)==null?void 0:M.split("/").pop())||`model_${I}.obj`,x=new File([j],E,{type:j.type});let k=[];if(R.mtlUrls){const w=Array.isArray(R.mtlUrls)?R.mtlUrls:[R.mtlUrls];for(let $=0;$<w.length;$++){const F=w[$],J=await s(F),se=(F==null?void 0:F.split("/").pop())||`material_${I}_${$}.mtl`,ge=new File([J],se,{type:J.type});k.push(ge)}}const b=await f(x,k);S.add(b),l.value.push(b),K.push(b)}return r.value=!1,K}catch(S){throw console.error("加载模型失败:",S),r.value=!1,S}},g=async(D,M,S=[],K=[])=>{let I;const R=D.toLowerCase();switch(R){case".txt":case".cpt":case".obj":const j=await M.text();if(R===".txt"||R===".cpt"){const le=/^(?!.*\bf\b)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?$/gm,te=[...j.matchAll(le)].map(oe=>({x:parseFloat(oe[1]),y:parseFloat(oe[2]),z:parseFloat(oe[3])})),ca=new Nl.BufferGeometry,Ee=te.flatMap(oe=>[oe.x,oe.y,oe.z]);if(ca.setAttribute("position",new Nl.Float32BufferAttribute(Ee,3)),R===".txt"){const oe=new Nl.PointsMaterial({color:"#5B5C99",size:1,sizeAttenuation:!1});I=new Nl.Points(ca,oe)}else if(R===".cpt"){const oe=new Nl.LineBasicMaterial({color:"#5B5C99",linewidth:100});I=new Nl.Line(ca,oe)}}else if(R===".obj"){const le=new zn.OBJLoader;if(S&&S.length>0){const ta=new zn.MTLLoader;for(const te of S){const ca=await te.text(),Ee=ta.parse(ca);Ee.preload(),le.setMaterials(Ee);break}}I=le.parse(j),(!S||S.length===0)&&I.traverse(ta=>{ta.isMesh&&(ta.material=new Nl.MeshPhongMaterial({color:"#B3B3D4"})),ta instanceof Nl.Mesh&&(ta.material.side=Nl.DoubleSide)})}break;case".stl":const E=await M.arrayBuffer(),k=new zn.STLLoader().parse(E),b=new Nl.MeshPhongMaterial({color:"#B3B3D4",side:Nl.DoubleSide});I=new Nl.Mesh(k,b);break;case".nc":const w=["Mach_B_Axis_0.STL","Mach_C_Axis_0.STL","Mach_X_Axis_0.STL","Mach_Y_Axis_0.STL","Mach_Z_Axis_0.STL","Mach_Spindle_0.STL"],$={"Mach_Y_Axis_0.STL":"rgb(128,118,152)","Mach_B_Axis_0.STL":"rgb(204,143,89)","Mach_C_Axis_0.STL":"rgb(145,245,251)","Mach_X_Axis_0.STL":"rgb(125,158,192)","Mach_Z_Axis_0.STL":"rgb(248,228,118)","Mach_Spindle_0.STL":"rgb(145,145,145)"},F=new Nl.Group,J=w.map(le=>new Promise((ta,te)=>{new zn.STLLoader().load(cs.value===""?`/model/${le}`:`${cs.value}\\${le}`,Ee=>{const oe=new Nl.MeshPhongMaterial({color:$[le]||"#B3B3D4",side:Nl.DoubleSide}),Te=new Nl.Mesh(Ee,oe);ta(Te)},void 0,te)}));try{(await Promise.all(J)).forEach(ta=>F.add(ta)),I=F}catch(le){throw console.error("加载NC文件对应的STL文件失败:",le),new Error("无法加载.NC文件对应的STL文件")}break;case".pcd":const se=new bf,ge=new Nl.Group;try{const le=await qa.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/target.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),ta=new Blob([le.data],{type:"application/octet-stream;charset=UTF-8"}),te=await qa.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/final.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),ca=new Blob([te.data],{type:"application/octet-stream;charset=UTF-8"}),Ee=await new Promise((Te,Ue)=>{const oa=URL.createObjectURL(ta);se.load(oa,Ja=>{const L=new Float32Array(Ja.geometry.attributes.position.count*3);for(let H=0;H<Ja.geometry.attributes.position.count;H++)L[H*3]=1,L[H*3+1]=0,L[H*3+2]=0;Ja.geometry.setAttribute("color",new Nl.BufferAttribute(L,3)),Ja.material.vertexColors=!0,Ja.scale.set(.3,.3,.3),URL.revokeObjectURL(oa),Te(Ja)},void 0,Ue)}),oe=await new Promise((Te,Ue)=>{const oa=URL.createObjectURL(ca);se.load(oa,Ja=>{const L=new Float32Array(Ja.geometry.attributes.position.count*3);for(let H=0;H<Ja.geometry.attributes.position.count;H++)L[H*3]=0,L[H*3+1]=1,L[H*3+2]=0;Ja.geometry.setAttribute("color",new Nl.BufferAttribute(L,3)),Ja.material.vertexColors=!0,Ja.scale.set(.3,.3,.3),URL.revokeObjectURL(oa),Te(Ja)},void 0,Ue)});ge.add(Ee),ge.add(oe),I=ge}catch(le){throw console.error("PCD文件加载失败:",le),new Error("无法加载PCD文件")}break;case".urdf":const Me=URL.createObjectURL(M),V=new Mu.URDFLoader,fe="http://139.196.154.85:20026/chfs/shared/机器人/urdf/SmallBender_R-2000iC-165F/meshes",ae={maxConcurrentLoads:4,enableCache:!0,enableLOD:!0,simplifyGeometry:!0,shareMaterials:!0,enableInstancing:!0},de=new WeakMap,Ce=new WeakMap,Fe=new WeakMap,ye=async le=>{if(de.has(le))return console.log(`从缓存加载: ${le}`),de.get(le);try{const ta=await qa.axios.get(`${fe}/${le}`,{responseType:"blob",headers:{"Content-Type":"application/json"},timeout:6e5}),te=new Blob([ta.data],{type:"application/octet-stream;charset=UTF-8"});return ae.enableCache&&de.set(le,te),te}catch(ta){throw console.error(`加载文件失败: ${le}`,ta),new Error(`无法加载文件: ${le}`)}},T=(le="default")=>{if(Ce.has(le))return Ce.get(le);const ta=new Nl.MeshPhongMaterial({color:12303291,shininess:30,transparent:!1,alphaTest:.1,side:Nl.FrontSide});return Ce.set(le,ta),ta},ue=le=>{try{le.isBufferGeometry&&le.mergeVertices&&le.mergeVertices(),le.computeVertexNormals&&le.computeVertexNormals(),le.computeBoundingSphere&&le.computeBoundingSphere(),le.deleteAttribute&&le.deleteAttribute("uv2")}catch(ta){console.warn("几何体优化失败,使用原始几何体:",ta)}return le},U=async(le,ta,te)=>{const ca=`stl_${ta}`;if(Fe.has(ca)){const Ue=Fe.get(ca);return new Nl.Mesh(Ue,T())}const Ee=await le.arrayBuffer();let Te=new zn.STLLoader(te).parse(Ee);return Te=ue(Te),Fe.set(ca,Te),new Nl.Mesh(Te,T())},Se=async(le,ta,te)=>{const ca=`obj_${ta}`;if(de.has(ca))return de.get(ca).clone();const Ee=await le.text(),oe=new zn.OBJLoader(te),Te=ta.replace(".obj",".mtl");try{const Ja=await(await ye(Te)).text(),H=new zn.MTLLoader(te).parse(Ja);H.preload(),oe.setMaterials(H)}catch{console.warn(`MTL文件加载失败,使用默认材质: ${Te}`)}const Ue=oe.parse(Ee);return Ue.traverse(oa=>{oa.isMesh&&(oa.geometry=ue(oa.geometry),oa.castShadow=!0,oa.receiveShadow=!0,oa.renderOrder=1)}),de.set(ca,Ue),Ue},Le=(le,ta)=>{const te=new Nl.LOD;if(te.addLevel(le,0),le.geometry){const ca=le.geometry.clone(),Ee=new Nl.Mesh(ca,le.material);te.addLevel(Ee,50)}return te};let Pe=0,la=0;const Da=[];V.loadMeshCb=async(le,ta,te,ca,Ee)=>{const oe=le.split("/").pop(),Te=te||(()=>{});Pe++;const Ue=new Promise(async(oa,Ja)=>{try{const L=await ye(oe);if(!L||L.size===0)throw new Error(`文件为空: ${oe}`);const H=oe.split(".").pop().toLowerCase();let Q;switch(H){case"stl":Q=await U(L,oe,ta);break;case"obj":Q=await Se(L,oe,ta);break;default:throw new Error(`不支持的文件格式: ${H}`)}ae.enableLOD&&Q.isMesh&&(Q=Le(Q,oe)),Te(Q),la++,ca&&ca({loaded:la,total:Pe,progress:la/Pe}),oa(Q)}catch(L){console.error(`mesh文件加载失败: ${oe}`,L);const H=new Nl.Group;Te(H),oa(H);const Q=new Nl.BoxGeometry(.1,.1,.1),me=new Nl.MeshStandardMaterial({color:16711680,wireframe:!0});return new Nl.Mesh(Q,me)}});Da.push(Ue)};try{if(!Me){vo.value=void 0;break}if(I=await V.loadAsync(Me),console.log(`URDF文件加载完成,等待${Pe}个mesh文件加载...`),Da.length>0)try{await Promise.allSettled(Da),console.log(`所有mesh文件处理完成,成功加载: ${la}/${Pe}`)}catch(te){console.warn("部分mesh文件加载失败,但继续显示模型",te)}I.traverse(te=>{te.isMesh&&(te.castShadow=!0,te.receiveShadow=!0,te.renderOrder=1,te.material&&(te.material.needsUpdate=!0))}),console.time("计算包围盒");const le=new Nl.Box3;le.expandByObject(I);const ta=`urdf_${Date.now()}`;I.userData.boundingBox=le.clone(),I.userData.modelId=ta,us.set(ta,{box:le.clone(),center:le.getCenter(new Nl.Vector3),size:le.getSize(new Nl.Vector3),maxSize:Math.max(...le.getSize(new Nl.Vector3).toArray())}),vo.value=I,console.log("URDF模型加载完成并优化")}catch(le){console.error("URDF加载失败:",le),vo.value=void 0}finally{Me&&URL.revokeObjectURL(Me)}break;default:throw new Error(`不支持的文件格式: ${D}`)}return I};return{addModelsFromUrls:m,loadModelByDefaultPath:async D=>{console.log(D);try{r.value=!0,n.value="正在加载模型...";const{scene:M}=a();if(!M)throw new Error("Scene not initialized");t(),await new Promise(K=>setTimeout(K,100));const S=[];for(let K=0;K<D.length;K++){const I=D[K],R=await g(I.suffix,I.blob,I.mtlBlobs||[],I.meshFiles||[]);R&&(M.add(R),l.value.push(R),S.push(R))}return r.value=!1,n.value="",S}catch(M){throw console.error("加载模型失败:",M),r.value=!1,n.value="",M}},urdfModel:vo,modelBoundingBoxes:us}}window._iconfont_svg_string_4827314='<svg><symbol id="icon-chart-new" viewBox="0 0 1024 1024"><path d="M960 768V448h-64v320h-64v64H192v-64h-64V256h64v-64h256v-64H192V64H0v192h64v512H0v192h192v-64h640v64h192V768h-64zM64 128h64v64H64v-64z m0 768v-64h64v64H64z m896 0h-64v-64h64v64zM256 768V256h128v512H256z m192-320h128v320H448V448z m192 192h128v128H640V640zM512 288c0-17.664 14.336-32 32-32h160V96c0-17.664 14.336-32 32-32s32 14.336 32 32v160h160c17.664 0 32 14.336 32 32s-14.336 32-32 32H768v160c0 17.664-14.336 32-32 32s-32-14.336-32-32V320H544c-17.664 0-32-14.336-32-32z" ></path></symbol><symbol id="icon-ai13" viewBox="0 0 1024 1024"><path d="M863.719038 159.366637l-705.295378 0c-48.443315 0-88.129176 39.690978-88.129176 88.161922l0 528.943904c0 48.474015 39.685861 88.161922 88.129176 88.161922l705.295378 0c48.443315 0 88.134293-39.687908 88.134293-88.161922l0-528.943904C951.853331 199.056592 912.162354 159.366637 863.719038 159.366637M643.272277 776.472464l-484.84964 0 0-176.324868 484.84964 0L643.272277 776.472464zM643.272277 556.053332l-484.84964 0 0-176.296215 484.84964 0L643.272277 556.053332zM863.719038 776.472464 687.394171 776.472464l0-396.659065 176.324868 0L863.719038 776.472464z" ></path></symbol><symbol id="icon-qiehuanwenjianjia" viewBox="0 0 1024 1024"><path d="M409.6 102.4L512 204.8h307.2a102.4 102.4 0 0 1 102.144 94.72l0.256 7.68v512a102.4 102.4 0 0 1-94.72 102.144l-7.68 0.256H512v-76.8h281.6a51.2 51.2 0 0 0 50.842-45.21l0.358-5.99V332.8a51.2 51.2 0 0 0-45.21-50.842l-5.99-0.358H486.4L384 179.2H230.4a51.2 51.2 0 0 0-50.842 45.21l-0.358 5.99v179.2h-76.8V204.8a102.4 102.4 0 0 1 94.72-102.144l7.68-0.256h204.8z m217.6 588.8a38.4 38.4 0 1 1 0 76.8H358.4v99.584a25.6 25.6 0 0 1-41.83 19.814L132.3 736.614a25.6 25.6 0 0 1 16.231-45.414zM447.59 389.99l3.84 2.612L635.7 543.386a25.6 25.6 0 0 1-11.623 45.004l-4.608 0.41H140.8a38.4 38.4 0 0 1-5.222-76.442L140.8 512h268.8v-99.584a25.6 25.6 0 0 1 37.99-22.426z" ></path></symbol><symbol id="icon-baogao" viewBox="0 0 1104 1024"><path d="M265.401 1024a174.066 174.066 0 0 1-173.56-173.56V315.3a4.194 4.194 0 0 0-4.338-4.34H41.22A39.63 39.63 0 0 1 0 273.356V123.66C0 55.684 59.3 0 132.339 0h648.678a132.411 132.411 0 0 1 132.339 132.339v553.22a4.194 4.194 0 0 0 4.339 4.34h146.079a40.714 40.714 0 0 1 41.22 41.22v159.819a132.411 132.411 0 0 1-132.339 132.339l-707.254 0.723z m653.017-260.339A4.194 4.194 0 0 0 914.08 768v123.661a59.3 59.3 0 0 0 118.599 0V768a4.194 4.194 0 0 0-4.339-4.339z m-749.198-452.7a4.194 4.194 0 0 0-4.339 4.338v534.419a100.737 100.737 0 0 0 100.52 100.52h582.147a3.977 3.977 0 0 0 3.616-2.17 4.628 4.628 0 0 0 0-4.34 132.7 132.7 0 0 1-10.848-52.79V133.062a59.3 59.3 0 0 0-118.598 0v140.294a39.195 39.195 0 0 1-41.22 37.604zM132.34 73.762c-32.542 0-59.3 22.418-59.3 49.898v109.92a4.194 4.194 0 0 0 4.34 4.34h566.237a4.194 4.194 0 0 0 4.339-4.34V133.063a132.7 132.7 0 0 1 10.847-52.79c0.723-1.447 0-2.893 0-4.34a3.977 3.977 0 0 0-3.616-2.17z m169.22 692.068a36.881 36.881 0 0 1 0-73.763h402.08a36.881 36.881 0 0 1 0 73.763z m0-196.701a36.881 36.881 0 1 1 0-73.763h402.08a36.881 36.881 0 1 1 0 73.763z" ></path></symbol><symbol id="icon-xinghao" viewBox="0 0 1024 1024"><path d="M580.583 425.004c52.988-24.574 104.44-49.276 152.82-73.594 48.381-24.703 87.034-42.877 115.704-54.268 28.67-11.136 51.58-17.023 69.115-17.023a104.952 104.952 0 0 1 74.235 28.798 93.177 93.177 0 0 1 31.485 71.802c0 16.383-5.12 33.534-15.358 51.069-10.24 17.534-21.247 28.926-32.638 33.79-105.976 41.468-222.832 72.058-350.054 90.872 23.038 20.99 51.452 49.405 85.113 84.474 33.79 35.582 51.453 54.268 52.86 56.7 12.416 17.023 29.566 38.397 51.837 63.74 22.142 25.597 37.501 45.18 46.076 59.643a99.833 99.833 0 0 1 13.055 52.092 93.817 93.817 0 0 1-29.693 68.731 103.16 103.16 0 0 1-76.41 29.694c-31.23 0-66.172-24.318-105.337-72.443-39.037-48.124-89.465-135.158-151.029-260.46A12540.003 12540.003 0 0 1 386.677 862.22a387.3 387.3 0 0 1-61.563 81.53 96.889 96.889 0 0 1-67.835 27.774 101.625 101.625 0 0 1-76.026-31.358c-19.711-20.862-30.078-43.517-30.078-66.939 0-22.142 4.095-38.909 12.287-50.172 75.514-102.393 154.356-191.602 236.782-266.605a2401.103 2401.103 0 0 1-184.818-35.709 1163.818 1163.818 0 0 1-172.531-57.724c-9.984-5.12-19.583-16.382-29.054-33.917A104.696 104.696 0 0 1 0.018 380.72a93.433 93.433 0 0 1 31.358-71.675 102.648 102.648 0 0 1 72.186-28.926c19.839 0 44.285 5.887 73.979 17.79 29.438 11.904 67.067 29.054 112.632 51.453 45.564 22.526 97.656 47.74 155.892 75.514a1833.849 1833.849 0 0 1-26.494-177.267 1574.54 1574.54 0 0 1-10.367-137.078c0-30.205 9.599-56.06 28.798-78.074A95.481 95.481 0 0 1 512.62 0.076c29.822 0 54.012 10.75 73.339 32.51 19.454 21.886 29.054 50.683 29.054 86.649 0 9.855-1.664 29.182-4.48 58.491-2.56 29.182-7.04 64.252-12.16 105.465-5.375 41.34-11.39 88.697-17.79 141.813z" fill="#FF4444" ></path></symbol><symbol id="icon-mima" viewBox="0 0 1024 1024"><path d="M776.86 376.04c-22.05 0-40.16-16.24-43.91-37.98-18.08-104.98-109.79-185.1-219.84-185.1s-201.76 80.13-219.84 185.1c-3.74 21.73-21.85 37.98-43.91 37.98-27.05 0-48.82-24.04-44.44-50.73 24.3-148.16 153.25-261.58 308.19-261.58S796.99 177.15 821.3 325.31c4.38 26.69-17.39 50.73-44.44 50.73zM850.18 418.32H180.33c-37.98 0-68.76 30.79-68.76 68.76v403.71c0 37.98 30.79 68.76 68.76 68.76h665.36c37.97 0 68.75-30.77 68.77-68.74l0.19-408c0.02-35.61-28.85-64.49-64.47-64.49zM557.73 762.56c0 24.64-19.97 44.62-44.62 44.62-24.64 0-44.62-19.97-44.62-44.62v-89.23c0-24.64 19.97-44.62 44.62-44.62 24.64 0 44.62 19.98 44.62 44.62v89.23z" ></path></symbol><symbol id="icon-zhanghao" viewBox="0 0 1024 1024"><path d="M407.61 578.87c-174.46 0-304.73 113.04-304.73 277.2v17.69c0 85.81 139.6 85.81 316.37 85.81h187.73c169.75 0 316.37 0 316.37-85.81v-17.69c0-164.16-130.28-277.2-304.73-277.2H407.61zM503.71 535.67c138.19 0 250.63-105.81 250.63-235.94 0-130.06-112.44-235.86-250.63-235.86-138.11 0-250.56 105.81-250.56 235.86 0 130.13 112.45 235.94 250.56 235.94z" ></path></symbol><symbol id="icon-xiangqingye-37" viewBox="0 0 1024 1024"><path d="M368.64 34.133333H112.64C68.266667 34.133333 34.133333 68.266667 34.133333 112.64v256c0 23.893333 17.066667 40.96 40.96 40.96s40.96-17.066667 40.96-40.96V116.053333h252.586667c23.893333 0 40.96-17.066667 40.96-40.96S389.12 34.133333 368.64 34.133333zM911.36 34.133333h-256c-23.893333 0-40.96 17.066667-40.96 40.96s17.066667 40.96 40.96 40.96h252.586667v252.586667c0 23.893333 17.066667 40.96 40.96 40.96s40.96-17.066667 40.96-40.96V112.64C989.866667 68.266667 955.733333 34.133333 911.36 34.133333zM368.64 907.946667H116.053333v-252.586667c0-23.893333-17.066667-40.96-40.96-40.96S34.133333 634.88 34.133333 655.36v256C34.133333 955.733333 68.266667 989.866667 112.64 989.866667h256c23.893333 0 40.96-17.066667 40.96-40.96s-20.48-40.96-40.96-40.96zM948.906667 617.813333c-23.893333 0-40.96 17.066667-40.96 40.96v252.586667h-252.586667c-23.893333 0-40.96 17.066667-40.96 40.96s17.066667 40.96 40.96 40.96h256c40.96 0 78.506667-34.133333 78.506667-78.506667v-256c0-23.893333-17.066667-40.96-40.96-40.96z" fill="#3366CC" ></path><path d="M416.426667 488.106667L307.2 344.746667c-13.653333-17.066667-34.133333-20.48-51.2-6.826667-17.066667 13.653333-20.48 34.133333-6.826667 51.2L337.92 512l-95.573333 126.293333c-13.653333 17.066667-10.24 37.546667 6.826666 51.2 6.826667 3.413333 13.653333 6.826667 20.48 6.826667 10.24 0 23.893333-6.826667 30.72-13.653333l112.64-146.773334c10.24-17.066667 10.24-34.133333 3.413334-47.786666z" fill="#F4A914" ></path><path d="M597.333333 488.106667L488.106667 341.333333c-13.653333-17.066667-34.133333-20.48-51.2-6.826666-17.066667 13.653333-20.48 34.133333-6.826667 51.2l92.16 122.88-95.573333 126.293333c-13.653333 17.066667-10.24 37.546667 6.826666 51.2 6.826667 3.413333 13.653333 6.826667 20.48 6.826667 10.24 0 23.893333-6.826667 30.72-13.653334l112.64-146.773333c10.24-13.653333 10.24-30.72 0-44.373333z" fill="#F4A914" ></path><path d="M778.24 488.106667L669.013333 341.333333c-13.653333-17.066667-34.133333-20.48-51.2-6.826666-17.066667 13.653333-20.48 34.133333-6.826666 51.2l92.16 122.88-95.573334 126.293333c-6.826667 6.826667-6.826667 17.066667-6.826666 27.306667 0 10.24 6.826667 17.066667 13.653333 23.893333 6.826667 3.413333 13.653333 6.826667 23.893333 6.826667 10.24 0 23.893333-6.826667 30.72-13.653334l112.64-146.773333c6.826667-13.653333 6.826667-30.72-3.413333-44.373333z" fill="#F4A914" ></path></symbol><symbol id="icon-gongzhuangmoju" viewBox="0 0 1024 1024"><path d="M192 170.666667A106.965333 106.965333 0 0 0 85.333333 277.333333V426.666667h256l42.666667 85.333333h256l42.666667-85.333333h256V277.333333A106.965333 106.965333 0 0 0 832 170.666667z" fill="#3B709C" ></path><path d="M384 512l-42.666667-85.333333h341.333334l-42.666667 85.333333z m-298.666667-85.333333V256a85.333333 85.333333 0 0 1 85.333334-85.333333h682.666666a85.333333 85.333333 0 0 1 85.333334 85.333333v170.666667zM853.333333 853.333333H170.666667a85.333333 85.333333 0 0 1-85.333334-85.333333v-256h213.333334l42.666666 85.333333h341.333334l42.666666-85.333333h213.333334v256a85.333333 85.333333 0 0 1-85.333334 85.333333z" fill="#2C6798" ></path></symbol><symbol id="icon-jiagongguochengxinxi" viewBox="0 0 1024 1024"><path d="M345.216 664.192a315.84 315.84 0 0 1 93.12-224.64 315.84 315.84 0 0 1 100.992-68.16 315.392 315.392 0 0 1 123.648-24.96 315.392 315.392 0 0 1 158.72 42.368v-264a24.768 24.768 0 0 0-24.768-24.768H559.296a32.64 32.64 0 0 1 0.704 6.976v133.184c0 19.2-15.616 34.816-34.816 34.816H395.072a34.816 34.816 0 0 1-34.752-34.816v-133.12a32.64 32.64 0 0 1 0.64-6.976H123.456a24.768 24.768 0 0 0-24.768 24.832v676.544c0 13.76 11.072 24.832 24.768 24.832h266.24a316.224 316.224 0 0 1-44.416-162.112zM662.976 406.4a257.792 257.792 0 1 0 0 515.52 257.792 257.792 0 0 0 0-515.52z m112.256 293.376a104.704 104.704 0 0 1-107.328 25.216l-68.48 68.48a46.528 46.528 0 0 1-65.728-65.664l68.48-68.48a104.512 104.512 0 0 1 140.8-129.28l-67.072 67.072 10.88 42.88 43.328 11.328 67.072-67.136c16.64 38.336 9.216 84.416-21.952 115.584z m-220.16 51.456a20.928 20.928 0 1 0 41.856 0 20.928 20.928 0 0 0-41.856 0z" ></path></symbol><symbol id="icon-pingtaiguanli" viewBox="0 0 1024 1024"><path d="M1024 806.4V25.6c0-12.8-12.8-25.6-25.6-25.6H25.6C12.8 0 0 12.8 0 25.6v780.8h435.2v166.4H236.8v51.2h556.8v-51.2H588.8v-166.4H1024zM320 281.6c-12.8-12.8-19.2-25.6-32-32l44.8-76.8c44.8 25.6 96 12.8 121.6-32 12.8-12.8 12.8-32 12.8-44.8h89.6c0 51.2 38.4 83.2 89.6 83.2 12.8 0 32-6.4 44.8-12.8l44.8 76.8c-44.8 25.6-57.6 76.8-32 115.2 12.8 12.8 19.2 25.6 32 32l-44.8 76.8c-44.8-19.2-96-6.4-121.6 38.4-12.8 12.8-12.8 25.6-12.8 44.8H467.2c0-44.8-38.4-83.2-89.6-83.2-12.8 0-32 6.4-44.8 12.8l-44.8-83.2c38.4-25.6 51.2-76.8 32-115.2zM102.4 704v-51.2h825.6v51.2H102.4zM512 416c51.2 0 96-38.4 96-89.6S569.6 236.8 512 236.8c-51.2 0-96 38.4-96 89.6 0 51.2 44.8 89.6 96 89.6z" ></path></symbol><symbol id="icon-zhucaidanguanli" viewBox="0 0 1169 1024"><path d="M787.333831 588.946093a75.189984 75.189984 0 0 0-75.093984 75.092984 75.189984 75.189984 0 0 0 75.093984 75.093984 75.165984 75.165984 0 0 0 75.067984-75.093984 75.165984 75.165984 0 0 0-75.067984-75.092984m0 222.841953a147.919968 147.919968 0 0 1-147.748968-147.748969c0-81.455982 66.291986-147.747968 147.748968-147.747968 81.431983 0 147.747968 66.291986 147.747968 147.747968 0 81.480982-66.315986 147.748968-147.747968 147.748969m89.452981 102.106978c0.342 0.244 1.317 0.585 2.315999 0.585h0.122l71.484985-39.496992c-1.706-4.022999-9.605998-23.478995-9.605998-43.739991a113.858976 113.858976 0 0 1 107.739977-113.613975c0.853-4.729999 5.557999-31.524993 5.557998-51.639989s-4.704999-46.88399-5.558998-51.637989a113.858976 113.858976 0 0 1-107.738977-113.565976c0-20.357996 7.923998-39.813991 9.605998-43.81299l-70.313985-39.057992-0.293-0.025a5.339999 5.339999 0 0 0-2.706 0.732 196.753958 196.753958 0 0 1-26.014994 21.819995c-21.698995 15.238997-42.153991 22.967995-60.951987 22.967995-18.919996 0-39.594991-7.874998-61.390987-23.405995a194.705958 194.705958 0 0 1-26.160994-22.283995 5.777999 5.777999 0 0 0-2.729999-0.707h-0.245l-72.824985 40.032992c1.706 4.046999 9.580998 23.479995 9.580998 43.73999A113.858976 113.858976 0 0 1 528.895886 614.350088c-0.854 4.729999-5.509999 31.524993-5.509998 51.638989s4.655999 46.90899 5.533998 51.662989a113.858976 113.858976 0 0 1 107.763977 113.589975c0 20.334996-7.972998 39.863991-9.679998 43.788991l68.973985 38.545992h0.146c1.024 0 1.95-0.365 2.317-0.585a200.849957 200.849957 0 0 1 26.428994-23.161995c22.088995-16.188997 43.079991-24.429995 62.414987-24.429995 19.552996 0 40.715991 8.387998 62.950986 24.917995 14.920997 11.068998 25.258995 22.185995 26.550995 23.575995m22.673995 108.397976c-13.774997-0.025-27.135994-5.704999-35.765993-15.213996-11.775997-12.896997-49.005989-46.44599-79.530982-46.44599-30.280993 0-68.119985 33.767993-78.993984 45.54399-8.606998 9.386998-21.869995 14.969997-35.498992 14.969997-6.484999 0-12.604997-1.243-18.187996-3.706l-0.975-0.414-92.69698-51.833988-0.926-0.683a44.46999 44.46999 0 0 1-14.920996-53.735989c0.049-0.146 8.532998-19.699996 8.532998-37.594992a98.376979 98.376979 0 0 0-98.254979-98.254978h-3.900999c-15.505997 0-28.159994-13.799997-32.182993-35.108993-0.341-1.706-7.923998-42.178991-7.923999-74.044984 0-31.913993 7.557998-72.361984 7.899999-74.117984 4.119999-21.576995 16.992996-35.449992 32.816993-35.083993h3.266999a98.400979 98.400979 0 0 0 98.279979-98.303978c0-17.846996-8.484998-37.399992-8.558998-37.619992a44.34899 44.34899 0 0 1 15.067996-53.661989l0.95-0.658 97.840979-53.759988 1.024-0.415c5.485999-2.364999 11.507998-3.534999 17.895996-3.534999 13.604997 0 26.891994 5.436999 35.595992 14.628997 11.580998 12.116997 48.17699 43.641991 77.774984 43.64199 29.354994 0 65.755986-30.914993 77.287983-42.812991 8.654998-8.996998 21.844995-14.335997 35.302992-14.335997 6.509999 0 12.653997 1.219 18.285997 3.657l0.974999 0.414 94.47698 52.516988 0.95 0.658c16.895996 11.751997 23.332995 34.889993 14.945997 53.735989-0.049 0.146-8.532998 19.699996-8.532999 37.545992a98.400979 98.400979 0 0 0 98.254979 98.279978h3.291c15.774997-0.341 28.719994 13.506997 32.816993 35.107993 0.317 1.707 7.899998 42.203991 7.899998 74.069984 0 31.889993-7.582998 72.410984-7.948998 74.117984-4.046999 21.551995-16.992996 35.424992-32.767993 35.059993h-3.291a98.400979 98.400979 0 0 0-98.254979 98.278978c0 17.846996 8.483998 37.449992 8.556999 37.619992a44.42199 44.42199 0 0 1-15.017997 53.710989l-0.927 0.683-96.133979 53.100988-0.975 0.415a44.88499 44.88499 0 0 1-17.846996 3.583999z m222.061952-705.339848a48.76199 48.76199 0 1 1-97.523979 0V121.977194c0-13.457997-10.873998-24.453995-24.307995-24.453995h-877.859811c-13.262997 0-24.306995 10.970998-24.306995 24.453995v584.995874c0 13.457997 10.873998 24.453995 24.307995 24.453995h219.500953a48.76199 48.76199 0 1 1 0 97.523979H48.907989A48.76199 48.76199 0 0 1 0 780.190052V48.76221C0 21.822215 21.893995 0.00022 48.907989 0.00022h1023.706781a48.76199 48.76199 0 0 1 48.907989 48.76199v268.189942zM219.427953 975.23701c0-26.940994 21.991995-48.76199 48.981989-48.761989h194.607959a48.76199 48.76199 0 1 1 0 97.523979H268.433942a48.76199 48.76199 0 0 1-49.005989-48.76199z" ></path></symbol><symbol id="icon-caidanguanli" viewBox="0 0 1024 1024"><path d="M414.2 78H158.6c-41.5 0-75.3 33.8-75.3 75.3v255.5c0 41.5 33.8 75.3 75.3 75.3h255.5c41.5 0 75.3-33.8 75.3-75.3V153.3c0-41.5-33.7-75.3-75.2-75.3z m5.2 330.8c0 2.9-2.4 5.3-5.3 5.3H158.6c-2.9 0-5.3-2.4-5.3-5.3V153.3c0-2.9 2.4-5.3 5.3-5.3h255.5c2.9 0 5.3 2.4 5.3 5.3v255.5zM414.2 544.8H158.6c-41.5 0-75.3 33.8-75.3 75.3v255.5c0 41.5 33.8 75.3 75.3 75.3h255.5c41.5 0 75.3-33.8 75.3-75.3V620.1c0-41.5-33.7-75.3-75.2-75.3z m5.2 330.8c0 2.9-2.4 5.3-5.3 5.3H158.6c-2.9 0-5.3-2.4-5.3-5.3V620.1c0-2.9 2.4-5.3 5.3-5.3h255.5c2.9 0 5.3 2.4 5.3 5.3v255.5zM908.8 119.3H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 343.8H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 568.3H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 792.8H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35z" ></path></symbol><symbol id="icon-jueseguanli" viewBox="0 0 1024 1024"><path d="M874.9 577.3c-26.1-27.2-56.8-48.9-90.3-64.1 5.4-4.6 10.6-9.6 15.5-14.8 32.3-34.7 50.1-79.8 50.1-127.2 0-102.9-83.7-186.7-186.7-186.7-11 0-21.8 0.9-32.5 2.8-7.1-9.6-14.9-18.7-23.4-27.2-44.6-44.6-103.9-69.2-167-69.2s-122.4 24.6-167 69.2-69.2 103.9-69.2 167 24.6 122.4 69.2 167c10.8 10.8 22.4 20.4 34.8 28.7-4.9 1.8-9.7 3.8-14.5 5.8-44.9 19-85.2 46.2-119.9 80.8-34.6 34.6-61.8 75-80.8 119.9-19.7 46.5-29.6 95.9-29.6 146.8 0 17.7 1.2 35.5 3.7 52.9l69.3-9.7c-2-14.2-3-28.7-3-43.1 0-169.4 137.8-307.1 307.1-307.1s307.1 137.8 307.1 307.1c0 14.4-1 28.9-3 43.1l69.3 9.7c2.4-17.4 3.7-35.2 3.7-52.9 0-50.9-10-100.3-29.6-146.8-19-44.9-46.2-85.2-80.8-119.9-34.6-34.6-74.9-61.8-119.9-80.8-4.8-2-9.7-4-14.6-5.8 12.3-8.4 24-18 34.8-28.7 44.6-44.6 69.2-103.9 69.2-167 0-25-3.9-49.4-11.3-72.6 63.4 1.1 114.7 53 114.7 116.6 0 45.5-26.6 85.6-65.3 104.7-16.3 8.1-26.8 24.4-26.8 42.6v1c0 21.2 14.1 40 34.6 45.5 94.9 25.8 163.8 112.4 163.8 215 0 10.5-0.7 21-2.2 31.3l69.3 9.7c1.9-13.5 2.9-27.3 2.9-41-0.1-75.8-29.1-147.8-81.7-202.6z m-434.3-84c-91.6 0-166.2-74.6-166.2-166.2S349 160.9 440.6 160.9s166.2 74.6 166.2 166.2-74.5 166.2-166.2 166.2z" ></path></symbol><symbol id="icon-zhiweiguanli" viewBox="0 0 1024 1024"><path d="M878.4 243.5h-91.2v-41.2c0-58.6-47.7-106.2-106.2-106.2H354.2c-58.6 0-106.2 47.7-106.2 106.2v41.2h-91.2c-43.2 0-78.4 35.1-78.4 78.4V856c0 43.2 35.1 78.4 78.4 78.4h721.5c43.2 0 78.4-35.1 78.4-78.4V321.8c0-43.2-35.1-78.3-78.3-78.3zM318 202.3c0-20 16.2-36.2 36.2-36.2H681c20 0 36.2 16.3 36.2 36.2v41.2H318v-41.2zM156.8 313.5h721.5c4.6 0 8.4 3.7 8.4 8.4V554H692.4c-14.8-45.3-57.4-78.2-107.6-78.2H450.4c-50.2 0-92.9 32.9-107.6 78.2H148.5V321.8c0-4.6 3.7-8.3 8.3-8.3zM628 588.9c0 23.8-19.4 43.2-43.2 43.2H450.4c-23.8 0-43.2-19.4-43.2-43.2 0-23.8 19.4-43.2 43.2-43.2h134.3c23.9 0 43.3 19.4 43.3 43.2z m250.4 275.5H156.8c-4.6 0-8.4-3.7-8.4-8.4V623.9h194.3c14.8 45.3 57.4 78.2 107.6 78.2h134.3c50.2 0 92.9-32.9 107.6-78.2h194.3V856c0.2 4.6-3.5 8.4-8.1 8.4z" ></path></symbol><symbol id="icon-bumenguanli" viewBox="0 0 1024 1024"><path d="M322.5 62h384.6v70H322.5z" ></path><path d="M870.2 62h-59.3v70h59.3c7.2 0 13 5.8 13 13v733.9c0 7.2-5.8 13-13 13h-720c-7.2 0-13-5.8-13-13V145c0-7.2 5.8-13 13-13h68.6V62h-68.6c-45.8 0-83 37.2-83 83v733.9c0 45.8 37.2 83 83 83h720c45.8 0 83-37.2 83-83V145c0-45.8-37.3-83-83-83z" ></path><path d="M295 806.2c-0.5-5.7-0.7-11.6-0.7-17.3 0-119 96.8-215.8 215.8-215.8S726 669.8 726 788.8c0 5.8-0.2 11.6-0.7 17.3l69.8 5.6c0.6-7.6 0.9-15.3 0.9-22.9 0-76.4-29.7-148.1-83.7-202.1-29.7-29.8-64.9-52.1-103.3-66.2 45.6-31.5 75.5-84.1 75.5-143.5 0-96.1-78.2-174.4-174.4-174.4-96.1 0-174.4 78.2-174.4 174.4 0 59.5 29.9 112 75.5 143.5C373 534.6 337.8 557 308 586.7c-54 54-83.7 125.8-83.7 202.1 0 7.6 0.3 15.3 0.9 22.9l69.8-5.5z m215.2-533.6c57.5 0 104.4 46.8 104.4 104.4 0 57.5-46.8 104.4-104.4 104.4-57.5 0-104.4-46.8-104.4-104.4 0-57.6 46.8-104.4 104.4-104.4z" ></path></symbol><symbol id="icon-gerenzhongxin" viewBox="0 0 1024 1024"><path d="M930.4 337.3c-22.7-53.7-55.2-101.9-96.6-143.3-41.4-41.4-89.6-73.9-143.3-96.6C634.9 73.9 575.9 62 515.1 62c-60.8 0-119.9 11.9-175.5 35.4-53.7 22.7-101.9 55.2-143.3 96.6-41.4 41.4-73.9 89.6-96.6 143.3-23.5 55.6-35.4 114.6-35.4 175.5 0 50.5 8.3 100.1 24.7 147.4l66.1-22.9c-13.8-39.9-20.8-81.8-20.8-124.5 0-209.9 170.8-380.7 380.7-380.7 209.9 0 380.8 170.8 380.8 380.7 0 41.6-6.7 82.5-19.8 121.5l66.3 22.3c15.6-46.2 23.5-94.7 23.5-143.9 0-60.8-11.9-119.8-35.4-175.4z" ></path><path d="M656.9 422.2c0-76.9-62.6-139.5-139.5-139.5s-139.5 62.6-139.5 139.5 62.6 139.5 139.5 139.5 139.5-62.6 139.5-139.5z m-209 0c0-38.3 31.2-69.5 69.5-69.5s69.5 31.2 69.5 69.5-31.2 69.5-69.5 69.5-69.5-31.2-69.5-69.5zM713.8 627.8c-62-27.2-128.1-40.9-196.4-40.9-69 0-135.7 14-198.2 41.7-60.4 26.7-114.1 64.9-159.5 113.3l-20.3 21.7 18.1 23.6c41.2 53.6 94.8 98 155 128.3 63.2 31.8 131.3 48 202.6 48 71.9 0 140.6-16.4 204.2-48.8 60.7-30.9 114.5-76 155.6-130.4l17.9-23.7-20.5-21.6c-45.3-47.6-98.6-85-158.5-111.2zM515.1 893.5c-109 0-210.3-45.3-282.5-125.4 77.7-71.9 177.7-111.2 284.8-111.2 105.8 0 204.9 38.4 282.2 108.8-72.2 81.6-174.3 127.8-284.5 127.8z" ></path></symbol><symbol id="icon-yonghuguanli" viewBox="0 0 1024 1024"><path d="M751.4 553.2c-42.5-38.5-92.1-67.1-145.5-84.6 53.2-38.9 87.8-101.8 87.8-172.7C693.7 178 597.7 82 479.8 82c-57.1 0-110.8 22.2-151.2 62.6C288.2 185 266 238.7 266 295.8s22.2 110.8 62.6 151.2c7.8 7.8 16.2 15 25 21.4-10.5 3.5-20.9 7.3-31.2 11.7-48.2 20.4-91.4 49.5-128.5 86.7s-66.3 80.4-86.7 128.5c-21.1 49.9-31.8 102.9-31.8 157.4 0 24.8 2.3 49.7 6.8 73.9l68.8-12.7c-3.7-20-5.6-40.6-5.6-61.2 0-184.4 150-334.4 334.4-334.4 83.2 0 163 30.8 224.5 86.6l47.1-51.7zM479.8 152c79.3 0 143.9 64.5 143.9 143.9s-64.5 143.9-143.9 143.9S336 375.2 336 295.9 400.5 152 479.8 152zM726.3 665.3h213.8v70H726.3zM503 831.6h437.1v70H503z" ></path></symbol><symbol id="icon-app" viewBox="0 0 1024 1024"><path d="M363.485867 865.117867h305.5616c21.6576 0 39.2192-17.194667 39.2192-38.4s-17.5616-38.4-39.2192-38.4H363.485867c-21.6576 0-39.2192 17.194667-39.2192 38.4s17.5616 38.4 39.2192 38.4z" fill="#A6ADB4" ></path><path d="M945.288533 699.835733a40.448 40.448 0 0 0-43.195733 43.1872v147.037867a46.865067 46.865067 0 0 1-45.960533 48.708267H166.766933a46.882133 46.882133 0 0 1-45.038933-48.708267v-147.029333a40.439467 40.439467 0 1 0-80.887467 0v147.029333a125.883733 125.883733 0 0 0 125.9264 128.657067h693.0432c70.203733-1.006933 126.4384-58.461867 125.9264-128.657067v-147.029333a40.430933 40.430933 0 0 0-40.448-43.195734zM40.840533 127.735467v147.959466a39.517867 39.517867 0 0 0 79.044267 0V127.735467a45.943467 45.943467 0 0 1 46.882133-47.786667h693.0432a46.882133 46.882133 0 0 1 45.960534 47.786667v147.959466a39.509333 39.509333 0 0 0 39.517866 39.509334 40.448 40.448 0 0 0 40.448-39.509334V127.735467C986.248533 58.052267 930.423467 1.024 860.7232 0H166.775467A125.934933 125.934933 0 0 0 40.840533 127.744z m168.4992 427.972266H326.229333L357.316267 640H418.133333L295.150933 315.733333h-52.701866L119.466667 640h60.817066l29.056-84.292267zM269.124267 392.533333L307.2 503.466667h-76.8l38.724267-110.933334z m231.552 131.959467h32.631466a123.246933 123.246933 0 0 0 88.192-28.535467c23.389867-19.959467 36.394667-49.134933 35.413334-79.488 1.6384-28.245333-9.838933-55.722667-31.249067-74.743466a127.573333 127.573333 0 0 0-84.0192-25.813334H443.733333V640h56.942934V524.4928zM503.466667 366.933333h32.136533c42.180267 0 61.602133 17.493333 61.602133 53.162667 1.092267 16.0256-4.8128 31.701333-16.068266 42.666667a71.364267 71.364267 0 0 1-51.5584 14.677333H503.466667V366.933333z m286.293333-51.0976H691.2V640h57.3184V524.4672h32.853333c31.837867 1.928533 63.189333-8.311467 87.381334-28.544 23.543467-19.959467 36.625067-49.152 35.643733-79.505067 1.536-28.100267-9.710933-55.441067-30.754133-74.752a131.84 131.84 0 0 0-83.882667-25.8304z m39.4752 147.131734a73.813333 73.813333 0 0 1-49.527467 14.72H750.933333V366.933333h32.119467c42.1632 0 61.576533 17.527467 61.576533 53.2736 1.262933 15.957333-4.394667 31.650133-15.394133 42.752z" fill="#A6ADB4" ></path></symbol><symbol id="icon-yepian" viewBox="0 0 1024 1024"><path d="M807.936 99.328c-17.408 0-32.256 9.216-40.448 23.552h-348.16L284.672 355.84l35.84 35.84 126.976-219.648h321.536c8.192 12.8 22.528 20.992 38.912 20.992 25.6 0 46.592-20.992 46.592-46.592s-20.992-47.104-46.592-47.104z" ></path><path d="M301.056 50.688c-8.704 14.848-7.68 32.768 0 46.592L127.488 399.36l134.656 232.448 48.64-13.312L183.808 399.36l160.256-279.04c15.36-1.024 29.696-9.216 37.888-23.04 12.8-22.528 5.12-50.688-17.408-63.488s-50.688-5.632-63.488 16.896z" ></path><path d="M15.872 467.456c8.704 14.848 24.064 23.552 40.448 23.552L228.352 793.6l268.8 1.536 13.312-48.64-253.44-1.536-159.232-279.552c6.656-13.312 7.168-30.208-1.024-44.032-12.8-22.528-40.96-30.208-63.488-17.408-22.528 12.8-30.208 40.96-17.408 63.488z" ></path><path d="M216.064 924.672c17.408 0 32.256-9.216 40.448-23.552h348.16l134.144-232.448-35.84-35.84-126.976 219.648H254.976c-8.192-12.8-22.528-20.992-38.912-20.992-25.6 0-46.592 20.992-46.592 46.592s20.992 46.592 46.592 46.592z" ></path><path d="M722.944 973.312c8.704-14.848 7.68-32.768 0-46.592l173.568-302.08-134.656-232.448-48.64 13.312 127.488 219.136-160.256 279.04c-15.36 1.024-29.696 9.216-37.888 23.04-12.8 22.528-5.12 50.688 17.408 63.488 22.016 13.312 50.176 5.632 62.976-16.896z" ></path><path d="M1008.128 556.544c-8.704-14.848-24.064-23.552-40.448-23.552L795.648 230.4l-268.8-1.536-13.312 48.64 253.44 1.536 159.232 279.552c-6.656 13.312-7.168 30.208 1.024 44.032 12.8 22.528 40.96 30.208 63.488 17.408 22.528-12.8 30.208-40.96 17.408-63.488zM512 391.168C445.44 391.168 391.168 445.44 391.168 512S445.44 632.832 512 632.832s120.832-54.272 120.832-120.832S578.56 391.168 512 391.168z m0 196.096c-41.472 0-75.264-33.792-75.264-75.264s33.792-75.264 75.264-75.264 75.264 33.792 75.264 75.264-33.792 75.264-75.264 75.264z" ></path></symbol><symbol id="icon-left-circle-fill" viewBox="0 0 1024 1024"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m104 316.9c0 10.2-4.9 19.9-13.2 25.9L457.4 512l145.4 105.2c8.3 6 13.2 15.6 13.2 25.9V690c0 6.5-7.4 10.3-12.7 6.5l-246-178c-4.4-3.2-4.4-9.7 0-12.9l246-178c5.3-3.8 12.7-0.1 12.7 6.5v46.8z" ></path></symbol><symbol id="icon-right-circle-fill" viewBox="0 0 1024 1024"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m154.7 454.5l-246 178c-5.3 3.8-12.7 0-12.7-6.5v-46.9c0-10.2 4.9-19.9 13.2-25.9L566.6 512 421.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.8 0 13z" ></path></symbol><symbol id="icon-xitongguanli" viewBox="0 0 1026 1024"><path d="M400.896 67.072H140.8c-24.064 0-46.592 11.264-59.392 29.696-9.216 12.8-14.848 27.648-14.848 44.544v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24V141.312c0.512-40.96-33.28-74.24-73.728-74.24z m0 361.984v9.216-9.216z m335.872 83.456c18.432 0 35.328-7.168 48.128-20.48L939.008 337.92c12.8-12.8 20.48-29.696 20.48-48.128s-7.168-35.328-20.48-48.128l-154.112-155.648c-26.112-26.112-70.656-26.112-96.256 0l-154.112 154.112c-12.8 12.8-20.48 29.696-20.48 48.128 0 18.432 7.168 35.328 20.48 48.128l154.112 154.112c12.8 14.336 29.184 22.016 48.128 22.016z m0-369.152l146.432 146.432-146.432 146.432-144.896-146.432L736.768 143.36z m-335.872 406.016H140.8c-40.96 0-74.24 33.28-74.24 74.24v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24v-259.584c0.512-40.448-33.28-74.24-73.728-74.24z m0 352.768v18.432-18.432z m484.352-352.768h-259.584c-40.96 0-74.24 33.28-74.24 74.24v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24v-259.584c0-40.448-33.792-74.24-74.24-74.24z" ></path></symbol><symbol id="icon-gongjianku" viewBox="0 0 1024 1024"><path d="M798.72 320v446.976H223.232V320H63.488v532.48c0 41.472 33.792 75.264 75.264 75.264h745.472c41.472 0 75.264-33.792 75.264-75.264v-532.48H798.72z" ></path><path d="M608.256 494.592z m-10.24-4.608z" ></path><path d="M819.2 96.256H203.776c-41.472 0-75.264 33.792-75.264 75.264V286.72h128v448h510.464V286.72h128V171.008c-0.512-41.472-34.304-74.752-75.776-74.752z m-154.112 493.056l-12.8 12.8c-12.8 12.8-33.28 12.8-46.08 0L477.184 473.088c-33.792 11.776-72.704 4.608-99.328-22.528-27.136-27.136-34.304-66.048-22.528-99.84l38.4 38.4c12.8 12.8 33.28 12.8 46.08 0l12.8-12.8c12.8-12.8 12.8-33.28 0-46.08L414.208 291.84c33.792-11.776 72.704-4.096 99.84 22.528 27.136 27.136 34.304 66.048 22.528 99.84l128.512 128.512c12.288 13.312 12.288 33.792 0 46.592z" ></path></symbol><symbol id="icon-fangfaku" viewBox="0 0 1024 1024"><path d="M256 170.496v170.496h512V170.496h85.504c23.552 0 42.496 18.944 42.496 42.496V896c0 23.552-18.944 42.496-42.496 42.496H170.496c-23.552 0-42.496-18.944-42.496-42.496V212.992c0-23.552 18.944-42.496 42.496-42.496H256z m256 513.024H256v83.456h256v-83.456zM768 491.52H256v83.456h512V491.52zM341.504 85.504h341.504V256H341.504V85.504z" ></path></symbol><symbol id="icon-shebeiku" viewBox="0 0 1024 1024"><path d="M960 491.52v380.416c0 26.112-23.04 47.616-52.224 47.616H116.224c-29.184 0-52.224-21.504-52.224-47.616V491.52c0-26.112 23.04-47.616 52.224-47.616h791.552c28.672 0 52.224 21.504 52.224 47.616z m-149.504 156.16H213.504V783.36h596.992v-135.68z m149.504-500.736v186.88c0 23.04-20.992 42.496-46.592 42.496H110.592c-25.6 0-46.592-18.944-46.592-42.496V146.944c0-23.04 20.992-42.496 46.592-42.496h802.304c26.112 0 47.104 18.944 47.104 42.496z m-671.744 25.6c-41.472 0-74.752 30.208-74.752 68.096s33.792 68.096 74.752 68.096S363.008 278.528 363.008 240.64s-33.792-68.096-74.752-68.096z m224.256 0c-41.472 0-74.752 30.208-74.752 68.096s33.792 68.096 74.752 68.096 74.752-30.208 74.752-68.096-33.792-68.096-74.752-68.096z" ></path></symbol><symbol id="icon-wenjian" viewBox="0 0 1024 1024"><path d="M273.54647 325.996013h476.395357c19.444708-2.046811 36.842605 11.769166 39.40112 30.702171 2.046811 19.444708-11.769166 36.330903-31.213874 38.377714-2.558514 0.511703-5.117029 0.511703-7.675543 0H273.54647c-10.234057-0.511703-19.956411-4.605326-26.608548-11.257463-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737 0.511703-19.956411 17.397897-35.307497 37.866011-34.284091v1.023406z m0 209.286467h476.395357c19.444708-2.046811 36.842605 11.769166 39.40112 30.702171 2.046811 19.444708-11.769166 36.330903-31.213874 38.377714-2.558514 0.511703-5.117029 0.511703-7.675543 0H273.54647c-9.722354 0-19.444708-3.58192-26.608548-10.234057-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737 0.511703-19.444708 17.397897-35.307497 37.354308-34.284091z m0 185.748136h324.931312c19.444708 0 35.307497 15.862788 35.307497 34.795794 0 19.444708-15.862788 34.795794-35.307497 34.795794H273.54647c-9.722354-0.511703-19.444708-4.093623-26.608548-10.74576-6.652137-6.140434-10.74576-14.839383-10.74576-24.050034 0.511703-19.444708 17.397897-35.307497 37.354308-34.795794zM135.898402 0.041294h96.71184c17.397897-0.511703 33.772388 8.187246 43.494742 22.514926l53.217097 82.38416c4.605326 7.16384 12.792571 11.769166 20.979817 11.257462h322.884501c8.698949 0 16.886194-4.093623 21.49152-11.257462l53.217097-82.38416c9.722354-14.32768 26.096846-23.026628 43.494742-22.514926h97.223543c53.7288-1.535109 98.246948 39.912823 100.293759 93.12992v837.657572c-2.046811 52.705394-46.56496 94.153325-100.293759 93.12992h-752.203196c-53.7288 1.535109-98.758651-39.912823-100.293759-92.618217V93.171214C37.139751 39.954117 82.169603-1.493814 135.898402 0.041294z m82.895863 70.103291H135.898402c-6.652137 0-13.304274 2.558514-18.421303 6.652138-4.605326 4.093623-7.16384 10.234057-7.16384 16.374491v837.657572c0.511703 13.304274 11.769166 23.538331 25.07344 23.026629h752.203196c6.652137 0 13.304274-2.558514 18.421303-6.652138 4.605326-4.093623 7.16384-10.234057 7.16384-16.374491V93.171214c0.511703-6.140434-2.046811-12.280868-7.16384-16.374491-5.117029-4.605326-11.257463-6.652137-18.421303-6.652138h-82.895862l-46.053257 70.614994c-18.933006 28.65536-51.681988 45.541554-86.477783 45.029851H350.813601c-34.795794 0.511703-67.544777-16.374491-86.477782-45.029851l-45.541554-70.614994zM399.425372 0.041294h225.149256c19.956411-0.511703 36.842605 15.351086 37.866011 34.795795-0.511703 19.956411-17.397897 35.307497-37.866011 34.795794H399.425372c-10.234057-0.511703-19.956411-4.093623-27.120251-10.74576-6.652137-6.140434-10.74576-15.351086-10.234057-24.050034C362.582767 15.39238 378.957258-0.470408 399.425372 0.041294z" ></path></symbol><symbol id="icon-bianjimoban" viewBox="0 0 1025 1024"><path d="M127.110228 701.648461q0 26.438928 18.812314 45.251241t46.268123 18.812314l253.203575 0 0 128.12711-318.284012 0q-26.438928 0-49.82721-9.660377t-40.675273-26.947368-26.947368-40.675273-9.660377-50.844091l0-637.584906q0-26.438928 9.660377-49.82721t26.947368-40.675273 40.675273-27.455809 49.82721-10.168818l766.728898 0q26.438928 0 49.82721 10.168818t40.675273 27.455809 27.455809 40.675273 10.168818 49.82721l0 187.106256-128.12711 1.016882q-2.033764-25.422046-19.829196-43.217478t-44.234359-17.795432l-637.584906 0q-27.455809 0-46.268123 18.812314t-18.812314 45.251241l0 382.347567zM1016.881827 501.322741q6.101291 9.151936 7.626614 23.388282t-10.677259 28.472691q-11.1857 14.236346-18.303873 21.354518l-8.135055 8.135055-105.75571-95.586892q5.084409-6.101291 14.236346-14.744786t14.236346-13.727905q14.236346-14.236346 30.506455-12.711023t27.455809 6.609732q12.202582 5.084409 26.438928 18.812314t22.3714 29.998014zM613.179742 789.100298q3.050645-3.050645 14.236346-16.270109t27.96425-32.540218 37.116187-42.200596 40.675273-46.268123q48.810328-54.911619 108.806356-122.025819l107.789474 95.586892q-59.996028 68.131082-108.806356 123.042701-20.337637 23.388282-40.675273 46.268123t-37.116187 41.183714-27.455809 29.998014-12.711023 13.727905q-9.151936 12.202582-25.422046 20.337637-7.118173 5.084409-21.354518 11.1857t-29.998014 12.202582-29.489573 10.677259-20.846077 5.59285q-26.438928 5.084409-23.388282-22.3714 1.016882-7.118173 4.067527-21.862959t6.609732-30.506455 7.118173-28.981132 5.59285-18.303873q5.084409-13.219464 17.286991-28.472691z" ></path></symbol><symbol id="icon-shanchu1" viewBox="0 0 1024 1024"><path d="M78.768011 168.230165c0-30.999918 24.230644-56.076722 54.15419-56.076722L403.692131 112.153443 403.692131 56.076722c0-30.999918 24.230644-56.076722 54.15419-56.076722l108.306335 0c29.923546 0 54.155214 25.076803 54.155214 56.076722l0 56.077745 270.768906 0c29.923546 0 54.15419 25.076803 54.15419 56.076722l0 56.076722L78.768011 224.307909 78.768011 168.230165zM891.076776 336.461352l0 112.153443 0 519.30746c0 30.923181-24.231667 56.077745-54.153167 56.077745L187.076392 1024c-29.923546 0-54.15419-25.154564-54.15419-56.077745L132.922201 448.614796 132.922201 336.461352l0-56.077745 758.154574 0L891.076776 336.461352zM349.53794 448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523 0-54.153167 25.153541-54.153167 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.153167 56.077745 29.923546 0 54.15419-25.154564 54.15419-56.077745L349.53794 448.614796zM566.153679 448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523 0-54.153167 25.153541-54.153167 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.153167 56.077745 29.923546 0 54.15419-25.154564 54.15419-56.077745L566.153679 448.614796zM782.770441 448.614796c0-30.923181-24.231667-56.076722-54.155214-56.076722s-54.15419 25.153541-54.15419 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.15419 56.077745s54.155214-25.154564 54.155214-56.077745L782.770441 448.614796z" ></path></symbol><symbol id="icon-edit" viewBox="0 0 1024 1024"><path d="M923.9 335.8c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.8-35.2-174.3-35.2S392.2 74.1 337 97.5c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3C75.3 391 63.5 449.7 63.5 510.1c0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c35.9-15.2 69.3-34.8 99.8-58.5l-0.1-0.1c9.1-7.4 14.8-18.6 14.8-31.2 0-22.3-18-40.3-40.3-40.3-9.2 0-17.7 3.1-24.5 8.3l-0.2-0.3c-62 47.9-139.7 76.4-223.9 76.4-202.3 0-366.9-164.6-366.9-366.9s164.7-366.9 367-366.9 366.9 164.6 366.9 366.9c0 66.2-17.6 128.3-48.4 182l0.4 0.2c-4.4 6.5-7 14.2-7 22.6 0 22.3 18 40.3 40.3 40.3 16 0 29.8-9.3 36.3-22.8l0.2 0.1c8.9-15.5 16.8-31.5 23.8-48.1 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.7-119.1-35.1-174.3z" ></path><path d="M693.7 626.5H507.6l-57.1 66.1h243.2zM663.2 411.4c7.5-7.6 7.5-23.5 0-31.3l-45.4-46.8c-7.7-7.6-22.9-7.6-30.4 0l-45.7 46.8 76.1 78.1 45.4-46.8zM328.8 614.5v78.1h76.1l197.5-218.7-76-77.9z" ></path></symbol><symbol id="icon-new" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M695.7 469.2h-139v-139c0-23.6-19.3-43-43-43-23.6 0-43 19.3-43 43v139h-139c-23.6 0-43 19.3-43 43s19.3 43 43 43h139v139c0 23.7 19.3 43 43 43 23.6 0 43-19.3 43-43v-139h139c23.6 0 43-19.3 43-43s-19.4-43-43-43z" ></path></symbol><symbol id="icon-biaoqianye1" viewBox="0 0 1024 1024"><path d="M345.557333 128l110.677334 168.405333H938.666667V896H85.333333V128h260.224zM299.52 213.333333H170.666667v597.333334h682.666666V381.738667H410.197333L299.52 213.333333z" fill="#222222" ></path><path d="M597.333333 136.533333c0-4.693333 3.541333-8.533333 7.893334-8.533333h325.546666c4.352 0 7.893333 3.84 7.893334 8.533333v68.266667c0 4.693333-3.541333 8.533333-7.893334 8.533333h-325.546666C600.874667 213.333333 597.333333 209.493333 597.333333 204.8V136.533333z" fill="#222222" ></path></symbol><symbol id="icon-biaoqianye" viewBox="0 0 1024 1024"><path d="M376.6 494.8c5.1 4.8 7.9 11.7 7.6 18.7 0.4 7.1-2.5 14-7.6 18.7-5.3 4.7-12.3 7.2-19.3 6.9h-69.6v235.1c0.2 7.4-2.9 14.4-8.4 19.1-5.5 5.4-12.9 8.3-20.5 8.1-7.6 0.3-15.1-2.7-20.5-8.1-5.3-4.9-8.2-11.9-8.1-19.1v-235H161c-7.2 0.3-14.2-2.3-19.3-7.3-5.2-4.8-8-11.7-7.6-18.7-0.3-7 2.5-13.7 7.6-18.3 5.3-4.8 12.2-7.3 19.3-7h198.4c6.3 0 12.4 2.5 17.2 6.9z m215.7 70.1c5.2 5.1 8 12.2 7.7 19.6v189.9c0.3 7.2-2.5 14.2-7.7 19.1-4.8 5.3-11.7 8.3-18.9 8.1-7.1 0.1-13.9-2.7-18.9-7.7-4.8-5.2-7.6-12-7.6-19.1-18 19.5-42.9 30.8-69.2 31.4-19.7 0.3-38.9-5.3-55.5-15.9-17.2-10.7-31.2-26.1-40.3-44.4-19.3-40.4-19.3-87.6 0-128 8.9-18.4 22.9-33.8 40.3-44.4 16-10.5 34.8-16.1 53.9-15.9 26.3-0.1 51.8 9.8 71.2 27.7-0.2-7.3 2.6-14.4 7.7-19.6 10.6-10.2 27.2-10.2 37.8 0l-0.5-0.8z m-61.2 168.7c24.1-31.6 24.1-75.6 0-107.2-11.5-14.3-28.9-22.3-47.1-21.6-17.9-0.5-35.1 7.4-46.3 21.6-12.1 15-18.5 34-18.1 53.4-0.6 19.5 5.7 38.6 17.7 53.8 11.6 13.9 28.8 21.7 46.7 21.2 18.1 0.4 35.3-7.4 47.1-21.2zM835.4 573c17.1 10.7 31 25.9 40.3 44 9.9 19.8 14.9 41.8 14.5 64 0.4 22.3-4.6 44.4-14.5 64.4-9 18.3-23 33.7-40.3 44.4-16 10.6-34.8 16.1-53.9 15.9-13.9 0.2-27.7-2.9-40.3-9-11.6-5-22.1-12.2-31-21.2v2.8c0.2 7.2-2.5 14.2-7.5 19.4-5 5.1-11.9 8-19.1 7.9-7.1 0.3-14-2.5-18.9-7.7-5.2-5.1-8-12.2-7.6-19.6V497.2c-0.2-7.3 2.5-14.4 7.6-19.6 10.6-10.3 27.2-10.3 37.8 0 5.1 5.2 7.9 12.2 7.6 19.6v93.3c8-9.8 18-17.7 29.4-23.2 12.4-6.8 26.2-10.3 40.3-10.2 19.7-0.2 39 5.3 55.6 15.9z m-15.7 163c12.2-15.1 18.6-34.3 18.1-53.8 0.6-19.4-5.7-38.3-17.7-53.4-12-13.4-29-21.1-46.9-21.1s-34.9 7.7-46.9 21.1c-24.1 31.6-24.1 75.6 0 107.2 11.6 14.1 29 22.1 47.1 21.6 18.3-0.2 35.4-9.1 46.3-24v2.4zM708.1 253.5c-15.5 0-28-12.5-28-28V113.4c-0.1-8 0-15.9 0-23.8V77.9c0-15.5 12.5-28 28-28H886c17 0 32.9 6.6 45 18.6 11.3 11.3 17.8 26 18.6 41.8 0.1 0.7 0.1 1.4 0.1 2.1v113.2c0 15.5-12.5 28-28 28H708.1z m28-56h157.4v-84.1c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.4-2.2-5.4-2.2H736.1v91.7zM371.9 254.6c-15.5 0-28-12.5-28-28V78.9c0-15.4 12.5-27.9 27.9-28l213.4-1.1h0.1c17 0 32.9 6.6 45 18.6 12 12.1 18.6 28 18.6 45v113.2c0 15.5-12.5 28-28 28h-249z m28-56.1h193v-85.2c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.3-2.2-5.3-2.2l-185.5 0.9v91.9z" fill="#595959" ></path><path d="M72.4 974.2c-17.3 0-33.5-6.7-45.7-18.7-12.2-12.1-18.9-28.1-18.9-45.1V113.6c0-35.2 29-63.8 64.6-63.8h169c17.3 0 33.5 6.6 45.7 18.7 12.2 12 18.9 28.1 18.9 45.1V283c0 2 0.8 3.9 2.3 5.4 1.5 1.4 3.4 2.2 5.4 2.2h637.9c17.3 0 33.5 6.6 45.7 18.7 12.2 12 18.9 28 18.9 45.1v556c0 17.1-6.7 33.1-18.9 45.1s-28.4 18.7-45.7 18.7H72.4z m7.7-860.6c-4.3 0-7.7 3.4-7.7 7.6v788.7c0 2 0.8 4 2.3 5.4 1.4 1.4 3.4 2.2 5.4 2.2h871.5c2.1 0 4-0.8 5.4-2.2 1.5-1.4 2.3-3.3 2.3-5.4V350.6c0-2-0.8-3.9-2.2-5.3-1.5-1.5-3.4-2.3-5.4-2.3h-638c-17.3 0-33.5-6.7-45.7-18.7-12.2-12-18.9-28.1-18.9-45.1V121.1c0-2-0.8-3.9-2.3-5.4-1.4-1.4-3.4-2.2-5.4-2.2H80.1z" fill="#595959" ></path></symbol><symbol id="icon-buzhou" viewBox="0 0 1024 1024"><path d="M488.106667 792.462222h257.137777a28.444444 28.444444 0 0 0 28.444445-28.444444 28.444444 28.444444 0 0 0-28.444445-28.444445H488.106667a28.444444 28.444444 0 0 0-28.444445 28.444445 28.444444 28.444444 0 0 0 28.444445 28.444444zM242.346667 764.017778A80.782222 80.782222 0 1 0 341.333333 686.08v-96.142222a80.213333 80.213333 0 0 0 0-155.875556V337.92a80.782222 80.782222 0 1 0-39.822222 0v96.142222a80.213333 80.213333 0 0 0 0 155.875556v96.142222a80.782222 80.782222 0 0 0-59.164444 77.937778zM284.444444 259.982222a40.96 40.96 0 0 1 81.92 0 40.391111 40.391111 0 0 1-40.391111 40.96 40.391111 40.391111 0 0 1-41.528889-40.96zM284.444444 512a40.96 40.96 0 1 1 40.96 40.96A40.96 40.96 0 0 1 284.444444 512z m40.391112 211.057778a40.391111 40.391111 0 0 1 40.391111 40.96 40.96 40.96 0 0 1-81.92 0 40.391111 40.391111 0 0 1 39.253333-40.96zM488.106667 540.444444h257.137777a28.444444 28.444444 0 1 0 0-56.888888H488.106667a28.444444 28.444444 0 1 0 0 56.888888zM488.106667 288.426667h257.137777a28.444444 28.444444 0 0 0 28.444445-28.444445 28.444444 28.444444 0 0 0-28.444445-28.444444H488.106667a28.444444 28.444444 0 0 0-28.444445 28.444444 28.444444 28.444444 0 0 0 28.444445 28.444445z" fill="#151515" ></path><path d="M859.022222 79.644444H164.977778a22.755556 22.755556 0 0 0-22.755556 22.755556v819.2a22.755556 22.755556 0 0 0 22.755556 22.755556h694.044444a22.755556 22.755556 0 0 0 22.755556-22.755556V102.4a22.755556 22.755556 0 0 0-22.755556-22.755556z m-22.755555 819.2H187.733333V125.155556h648.533334z" fill="#151515" ></path></symbol><symbol id="icon-ok" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M715.6 371.6c-15.7-15.7-41.4-15.7-57 0l-196 196-95.9-95.9c-15.7-15.7-41.4-15.7-57 0-15.7 15.7-15.7 41.4 0 57l124.5 124.5c15.7 15.7 41.4 15.7 57 0l224.5-224.5c15.6-15.7 15.6-41.4-0.1-57.1z" ></path></symbol><symbol id="icon-cancel" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M697.9 329.1c-15.6-15.6-41-15.6-56.6 0L513 457.4 384.7 329.1c-15.6-15.6-41-15.6-56.6 0-15.6 15.6-15.6 41 0 56.6L456.4 514 328.1 642.3c-15.6 15.6-15.6 41 0 56.6 15.6 15.6 41 15.6 56.6 0L513 570.6l128.3 128.3c15.6 15.6 41 15.6 56.6 0 15.6-15.6 15.6-41 0-56.6L569.6 514l128.3-128.3c15.6-15.6 15.6-41.1 0-56.6z" ></path></symbol><symbol id="icon-savebaocun" viewBox="0 0 1024 1024"><path d="M778.7 97.2H247.3C165 97.2 98 164.3 98 246.7v532.2c0 82.4 67 149.4 149.3 149.4h531.5c82.3 0 149.3-67 149.3-149.4V246.7C928 164.3 861 97.2 778.7 97.2z m-452.2 79.9h373.1v83.7H331.9c-2.9 0-5.5-2.6-5.5-5.5v-78.2z m373 671.3h-373v-225h373.1v225z m148.7-69.6c0 38.1-30.8 69.2-68.8 69.5V612.9c0-38.3-31.1-69.4-69.3-69.4H316c-38.2 0-69.3 31.1-69.3 69.4v235.4c-38-0.3-68.8-31.4-68.8-69.5V246.7c0-38.1 30.8-69.2 68.8-69.5v78.2c0 47.1 38.3 85.4 85.3 85.4h378c38.2 0 69.3-31.1 69.3-69.4v-94.2c38 0.3 68.8 31.4 68.8 69.5v532.1z" ></path></symbol><symbol id="icon-shijianxian2" viewBox="0 0 1024 1024"><path d="M171.52 924.16v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z m0-322.56v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z m0-394.24v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z" ></path><path d="M350.72 350.72c0 79.36-64 143.36-143.36 143.36s-143.36-64-143.36-143.36 64-143.36 143.36-143.36 143.36 64 143.36 143.36z m-143.36-71.68c-39.424 0-71.68 32.256-71.68 71.68s32.256 71.68 71.68 71.68 71.68-32.256 71.68-71.68-32.256-71.68-71.68-71.68z m143.36 430.08c0 79.36-64 143.36-143.36 143.36s-143.36-64-143.36-143.36 64-143.36 143.36-143.36 143.36 64 143.36 143.36z m-143.36-71.68c-39.424 0-71.68 32.256-71.68 71.68s32.256 71.68 71.68 71.68 71.68-32.256 71.68-71.68-32.256-71.68-71.68-71.68z m716.8-286.72h-501.76c-19.968 0-35.84-15.872-35.84-35.84s15.872-35.84 35.84-35.84h501.76c19.968 0 35.84 15.872 35.84 35.84s-15.872 35.84-35.84 35.84z m-284.672 107.52H420.352c-18.432 0-33.792-15.36-33.792-33.792v-4.096c0-18.432 15.36-33.792 33.792-33.792h219.136c18.432 0 33.792 15.36 33.792 33.792v4.096c0 18.432-15.36 33.792-33.792 33.792z m284.672 250.88h-501.76c-19.968 0-35.84-15.872-35.84-35.84s15.872-35.84 35.84-35.84h501.76c19.968 0 35.84 15.872 35.84 35.84s-15.872 35.84-35.84 35.84z m-284.672 107.52H420.352c-18.432 0-33.792-15.36-33.792-33.792v-4.096c0-18.432 15.36-33.792 33.792-33.792h219.136c18.432 0 33.792 15.36 33.792 33.792v4.096c0 18.432-15.36 33.792-33.792 33.792z" ></path></symbol><symbol id="icon-buzhoutiao" viewBox="0 0 1024 1024"><path d="M0 0h1024v1024H0z" fill="#FFFFFF" fill-opacity="0" ></path><path d="M204 372c66.31 0 121.852 46.1 136.326 108h137.53c12.901-33.907 45.71-58 84.144-58 38.435 0 71.243 24.093 84.145 58h139.71c12.902-33.907 45.71-58 84.145-58 49.706 0 90 40.294 90 90s-40.294 90-90 90c-38.434 0-71.242-24.092-84.144-57.998H646.144C633.242 577.908 600.434 602 562 602c-38.434 0-71.242-24.092-84.144-57.998h-137.53C325.852 605.9 270.309 652 204 652c-77.32 0-140-62.68-140-140s62.68-140 140-140z m0 64c-41.974 0-76 34.026-76 76s34.026 76 76 76 76-34.026 76-76-34.026-76-76-76z m358 50c-14.36 0-26 11.64-26 26s11.64 26 26 26 26-11.64 26-26-11.64-26-26-26z m308 0c-14.36 0-26 11.64-26 26s11.64 26 26 26 26-11.64 26-26-11.64-26-26-26z" fill="#666666" ></path></symbol><symbol id="icon-m-qianming" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M573.44 646.656l-3.072 6.144c-8.192 12.288-14.336 25.088-19.456 38.912-6.656 18.944-3.072 36.352 16.896 43.008 34.816 11.264 72.704 9.216 106.496-4.608 9.216-3.072 11.264-4.096 34.304-12.8 16.384-6.656 33.792-12.8 51.2-17.408 1.024 0 2.048-0.512 3.072-1.024 10.24-2.048 6.656-5.632 16.896 1.024 3.584 3.072 8.704 4.096 13.312 3.072 4.608-1.024 5.632-3.072 8.192-7.68 5.632-8.192 3.584-19.456-4.608-25.088-18.944-12.8-22.528-10.24-41.472-6.144-1.536 0.512-3.072 0.512-4.096 1.024-18.944 5.12-37.376 11.264-55.808 18.432-22.016 8.704-24.064 9.728-32.768 12.288-24.576 10.24-52.224 12.8-78.336 6.144 4.608-11.264 10.24-22.016 16.896-32.256 1.536-2.048 2.56-4.096 3.584-6.144 8.704-13.824 15.36-29.184 18.432-45.056 4.096-19.456-7.68-38.4-27.136-42.496-0.512 0-1.536-0.512-2.048-0.512-27.648-6.656-59.392 3.072-148.992 37.888-81.92 32.256-117.76 41.984-129.024 35.84-4.096-2.56-8.704-3.072-13.312-1.536-9.728 2.56-15.36 12.8-12.8 22.016 1.024 4.608 4.096 8.192 8.192 10.752 23.04 8.704 48.64 7.68 71.168-2.048 29.696-9.216 59.392-19.456 88.064-32.256 77.824-30.72 111.104-40.448 126.976-36.352 3.072 1.024 3.072 0 2.56 3.072-2.56 12.288-7.168 23.552-13.312 33.792zM665.088 235.52c-19.456-17.92-49.664-17.408-68.608 1.024L312.32 519.68c-2.048 2.048-3.584 4.608-4.608 7.68l-22.528 80.896c-2.56 9.728 3.072 19.456 12.8 21.504 3.584 1.024 7.68 0.512 11.264-0.512l71.168-29.696c5.632-2.56 10.752-5.632 15.36-10.24l283.648-269.824 2.56-2.56c18.432-19.456 17.92-50.176-2.048-68.608l-1.024-1.024-13.824-11.776z" ></path></symbol><symbol id="icon-touxiang_avatar" viewBox="0 0 1024 1024"><path d="M925.866667 797.866667c-12.8-25.6-34.133333-46.933333-64-64-29.866667-21.333333-68.266667-34.133333-119.466667-42.666667-4.266667 0-29.866667-4.266667-59.733333-12.8-21.333333-4.266667-34.133333-8.533333-38.4-12.8v-17.066667c4.266667-51.2 29.866667-76.8 55.466666-106.666666 8.533333-8.533333 17.066667-21.333333 25.6-29.866667 29.866667-42.666667 34.133333-89.6 34.133334-98.133333 0-8.533333 0-17.066667-4.266667-21.333334-4.266667-8.533333-8.533333-12.8-12.8-21.333333 0-12.8 4.266667-21.333333 4.266667-29.866667 0-21.333333 4.266667-55.466667-4.266667-89.6 0-8.533333-4.266667-12.8-4.266667-21.333333-8.533333-25.6-17.066667-46.933333-34.133333-68.266667-4.266667-12.8-64-72.533333-234.666667-85.333333H401.066667c-4.266667 0-17.066667 0-25.6 4.266667-21.333333 4.266667-38.4 21.333333-42.666667 42.666666v21.333334c-8.533333 8.533333-55.466667 51.2-55.466667 102.4-4.266667 34.133333-4.266667 85.333333 0 123.733333-8.533333 8.533333-17.066667 21.333333-12.8 42.666667 0 12.8 4.266667 55.466667 34.133334 98.133333 8.533333 8.533333 17.066667 17.066667 25.6 29.866667 25.6 29.866667 51.2 55.466667 55.466666 106.666666v17.066667c-4.266667 4.266667-17.066667 8.533333-38.4 12.8-29.866667 8.533333-59.733333 12.8-64 12.8-46.933333 8.533333-85.333333 21.333333-115.2 42.666667-25.6 17.066667-46.933333 38.4-64 64-25.6 38.4-25.6 76.8-25.6 85.333333v21.333333c0 25.6 21.333333 46.933333 46.933334 46.933334H896c25.6 0 46.933333-21.333333 46.933333-46.933334v-17.066666c8.533333-12.8 8.533333-51.2-17.066666-89.6z m-546.133334-128c0 4.266667 0 4.266667 0 0v4.266666c-4.266667 0-4.266667 0 0-4.266666z m503.466667 213.333333l-742.4 4.266667v-4.266667s0-25.6 12.8-51.2c8.533333-17.066667 25.6-29.866667 42.666667-42.666667 25.6-17.066667 55.466667-25.6 89.6-34.133333 4.266667 0 34.133333-4.266667 68.266666-12.8 51.2-12.8 76.8-29.866667 85.333334-46.933333 0-4.266667 0-4.266667 4.266666-8.533334v-42.666666c-8.533333-72.533333-42.666667-115.2-72.533333-145.066667-8.533333-8.533333-12.8-17.066667-21.333333-21.333333-21.333333-29.866667-21.333333-59.733333-21.333334-64l4.266667-4.266667 8.533333-8.533333c4.266667-17.066667 0-25.6 0-29.866667-4.266667-34.133333-4.266667-81.066667 0-119.466667 0-29.866667 29.866667-55.466667 29.866667-55.466666 8.533333-4.266667 17.066667-12.8 21.333333-21.333334 0-4.266667 4.266667-4.266667 4.266667-8.533333v-25.6H465.066667c140.8 8.533333 192 59.733333 192 59.733333 8.533333 12.8 17.066667 25.6 21.333333 42.666667 4.266667 4.266667 4.266667 8.533333 4.266667 12.8 4.266667 29.866667 4.266667 55.466667 4.266666 76.8 0 12.8 0 21.333333-4.266666 38.4 0 12.8 0 25.6 8.533333 29.866667l4.266667 4.266666 4.266666 4.266667s0 34.133333-21.333333 64c-4.266667 8.533333-12.8 12.8-21.333333 21.333333-29.866667 29.866667-64 72.533333-72.533334 145.066667v42.666667c0 4.266667 0 4.266667 4.266667 8.533333 8.533333 21.333333 34.133333 34.133333 85.333333 46.933333 34.133333 8.533333 64 12.8 68.266667 12.8 38.4 8.533333 68.266667 17.066667 93.866667 34.133334 17.066667 12.8 34.133333 25.6 42.666666 42.666666 8.533333 25.6 8.533333 51.2 4.266667 55.466667z" ></path></symbol><symbol id="icon-m-mianban" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M884.15744 348.01152v49.152h-745.984v-49.152z" ></path><path d="M356.43392 846.99136h-49.152v-450.048h49.152z" ></path></symbol><symbol id="icon-m-xialakuang" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M510.464 639.488l207.872-254.976H302.08z" ></path></symbol><symbol id="icon-m-biaodan" viewBox="0 0 1024 1024"><path d="M122.88 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384H122.88c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H137.216c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M244.224 279.04h142.848v49.152H244.224zM244.224 425.472h142.848v49.152H244.224zM436.736 279.04h342.528v49.152H436.736zM436.736 425.472h342.528v49.152H436.736zM244.224 572.416h142.848v49.152H244.224zM436.736 572.416h342.528v172.544H436.736z" ></path></symbol><symbol id="icon-m-biaoge" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M249.344 347.648h49.152v499.2h-49.152zM584.704 347.648h49.152v499.2h-49.152zM137.728 165.888h746.496v181.76H137.728z" ></path><path d="M137.728 481.792h746.496v49.152H137.728zM137.728 664.576h746.496v49.152H137.728z" ></path></symbol><symbol id="icon-dashboard-o" viewBox="0 0 1024 1024"><path d="M880 622c17.673 0 32 14.327 32 32v226c0 17.673-14.327 32-32 32H582c-17.673 0-32-14.327-32-32V654c0-17.673 14.327-32 32-32h298zM442 476c17.673 0 32 14.327 32 32v372c0 17.673-14.327 32-32 32H144c-17.673 0-32-14.327-32-32V508c0-17.673 14.327-32 32-32h298z m406 210H614v162h234V686zM410 540H176v308h234V540z m470-428c17.673 0 32 14.327 32 32v372c0 17.673-14.327 32-32 32H582c-17.673 0-32-14.327-32-32V144c0-17.673 14.327-32 32-32h298z m-32 64H614v308h234V176z m-406-64c17.673 0 32 14.327 32 32v226c0 17.673-14.327 32-32 32H144c-17.673 0-32-14.327-32-32V144c0-17.673 14.327-32 32-32h298z m-32 64H176v162h234V176z" fill="#000000" fill-opacity=".65" ></path></symbol><symbol id="icon-line-layoutmasonryfensanbuju" viewBox="0 0 1024 1024"><path d="M896 128H128c-25.6 0-42.666667 17.066667-42.666667 42.666667v682.666666c0 25.6 17.066667 42.666667 42.666667 42.666667h768c25.6 0 42.666667-17.066667 42.666667-42.666667V170.666667c0-25.6-17.066667-42.666667-42.666667-42.666667zM170.666667 213.333333h298.666666v341.333334H170.666667V213.333333z m0 597.333334v-170.666667h298.666666v170.666667H170.666667z m682.666666 0h-298.666666v-341.333334h298.666666v341.333334z m0-426.666667h-298.666666V213.333333h298.666666v170.666667z" fill="#09121F" ></path></symbol><symbol id="icon-zidingyibuju" viewBox="0 0 1024 1024"><path d="M0 0v256h1024V0z m960 192H64V64h896zM0 1024h512V320H0z m64-640h384v576H64zM576 576h448v-256H576z m64-192h320v128H640zM576 1024h448V640H576z m64-320h320v256H640z" fill="#575869" ></path></symbol><symbol id="icon-daochu" viewBox="0 0 1024 1024"><path d="M394.6 689.8c-13.2 3.2-27.4-9.5-31.7-23.2-8.4-28.5-12.7-58.6-12.7-88.1 0-159.4 151.5-325.1 314.1-352.1v-5.3c0-1.6 0-3.7 0.5-5.3l0.5-2.1c1.6-11.6 5.8-38.5 32.2-55.4 10.6-6.9 22.2-10 34.3-10 14.8 0 26.9 5.3 34.3 9.5 1.6 0.5 2.6 1.6 4.2 2.6L929.2 286c17.4 13.2 28 34.8 28 57 0 22.7-10.6 44.3-28.5 57.5L770.5 525.7c-11.6 9-25.3 13.7-39.1 13.7-12.1 0-23.8-3.7-34.8-10.6-21.1-13.7-31.7-34.8-31.7-64.4v-1.1C559.3 475 442.2 569 416.3 657.6c-4.8 14.3-13.7 32.2-21.7 32.2z m335.7-466.6V256c0 17.4-13.7 31.7-31.1 32.7-125.6 6.9-257.6 131.4-279.7 254.4C486 458.7 595.2 390 699.7 397.4c17.4 1.1 30.6 15.3 30.6 32.7V465c0 4.7 0.5 6.9 0.5 7.9l157.3-124.6c2.1-1.6 2.6-3.2 2.6-5.3 0-2.1-1.1-4.2-2.6-5.3L731.9 214.3c-1.1 1.6-1.6 5.8-2.1 8.4l0.5 0.5z m0 0" ></path><path d="M715.6 916.3H188.3c-67 0-121.9-54.9-121.9-121.9v-568c0-67 54.9-121.9 121.9-121.9h436.5v69.7H188.3c-28.5 0-52.3 23.2-52.3 52.3V795c0 28.5 23.2 52.3 52.3 52.3h527.3c28.5 0 52.3-23.2 52.3-52.3V593.2H837v201.6c0 66.6-54.4 121.5-121.4 121.5z m0 0" ></path><path d="M183 566.9h112.4V626H183v-59.1z m0 154.1h296.1v59.1H183V721z m0-425.4h237v59.1H183v-59.1z m0 140.9h112.4v59.1H183v-59.1z m0 0" ></path></symbol><symbol id="icon-daoru" viewBox="0 0 1024 1024"><path d="M111.6 148.8c7.9 0 16.9 17.9 21.6 32.2 25.9 88.7 143 182.6 248.6 194.2v-1.1c0-29.6 10.6-50.7 31.7-64.4 11.1-6.9 22.7-10.6 34.8-10.6 13.7 0 27.4 4.8 39.1 13.7L645.8 438c17.9 13.2 28.5 34.8 28.5 57.5 0 22.2-10.6 43.8-28 57L487.4 678.2c-1.6 1.1-2.6 2.1-4.2 2.6-7.4 4.2-19.5 9.5-34.3 9.5-12.1 0-23.7-3.2-34.3-10-26.4-16.9-30.6-43.8-32.2-55.4l-0.5-2.1c-0.5-1.6-0.5-3.7-0.5-5.3v-5.3c-162.6-26.9-314.1-192.6-314.1-352 0-29.6 4.2-59.6 12.7-88.1 4.2-13.8 18.4-26.5 31.6-23.3z m335.2 467.1c0.5 2.6 1.1 6.9 2.1 8.4l156.2-123.5c1.6-1.1 2.6-3.2 2.6-5.3 0-2.1-0.5-3.7-2.6-5.3L447.8 365.7c0 1.1-0.5 3.2-0.5 7.9v34.8c0 17.4-13.2 31.7-30.6 32.7-104.5 7.4-213.8-61.2-280.3-145.7 22.2 123 154.1 247.5 279.7 254.4 17.4 1.1 31.1 15.3 31.1 32.7v32.7l-0.4 0.7z m0.5-0.5" ></path><path d="M309 916.3c-67 0-121.4-54.9-121.4-121.4V593.2h69.1v201.6c0 29 23.8 52.3 52.3 52.3h527.3c29 0 52.3-23.8 52.3-52.3V226.4c0-29-23.8-52.3-52.3-52.3H399.8v-69.7h436.5c67 0 121.9 54.9 121.9 121.9v567.9c0 67-54.9 121.9-121.9 121.9H309v0.2z m0 0" ></path><path d="M841.6 626H729.1v-59.1h112.4V626z m0 154.1H545.5V721h296.1v59.1z m0-425.4h-237v-59.1h237v59.1z m0 140.9H729.1v-59.1h112.4v59.1z m0-59.1" ></path></symbol><symbol id="icon-a-juxing1851" viewBox="0 0 1024 1024"><path d="M0 0h438.857143v1024H0V0z m512 0h512v438.857143H512V0z m0 512h219.428571v219.428571H512V512z m292.571429 0h219.428571v219.428571h-219.428571V512z m-292.571429 292.571429h73.142857v73.142857H512v-73.142857z m146.285714 0h73.142857v73.142857H658.285714v-73.142857z m-146.285714 146.285714h73.142857v73.142857H512v-73.142857z m146.285714 0h73.142857v73.142857H658.285714v-73.142857z m146.285715 0h73.142857v73.142857h-73.142857v-73.142857z m146.285714 0h73.142857v73.142857h-73.142857v-73.142857z m-146.285714-146.285714h73.142857v73.142857h-73.142857v-73.142857z m146.285714 0h73.142857v73.142857h-73.142857v-73.142857z" ></path></symbol><symbol id="icon-sxsz" viewBox="0 0 1024 1024"><path d="M304.5 152.6h415L927 512 719.5 871.4h-415L97 512z" fill="#386BF3" ></path><path d="M512 512m-145.25 0a145.25 145.25 0 1 0 290.5 0 145.25 145.25 0 1 0-290.5 0Z" fill="#3D4265" ></path></symbol><symbol id="icon-mx" viewBox="0 0 1024 1024"><path d="M511.9 325.12v248.55L727.15 449.4l-0.01-248.55z" fill="#C3D2FB" ></path><path d="M296.65 200.85L511.9 325.12v248.56L296.65 449.4z" fill="#3D4265" ></path><path d="M511.9 325.12l215.25-124.27L511.9 76.57 296.65 200.85z" fill="#386BF3" ></path><path d="M296.62 698.02v248.55L511.87 822.3l-0.01-248.56z" fill="#C3D2FB" ></path><path d="M81.37 573.74l215.25 124.28v248.55L81.37 822.3z" fill="#3D4265" ></path><path d="M296.62 698.02l215.25-124.28-215.25-124.27L81.37 573.74z" fill="#386BF3" ></path><path d="M727.03 698.02v248.55L942.28 822.3l-0.01-248.56z" fill="#C3D2FB" ></path><path d="M511.78 573.74l215.25 124.28v248.55L511.78 822.3z" fill="#3D4265" ></path><path d="M727.03 698.02l215.25-124.28-215.25-124.27-215.25 124.27z" fill="#386BF3" ></path></symbol><symbol id="icon-al" viewBox="0 0 1024 1024"><path d="M192 132h440v640H192z" fill="#386BF3" ></path><path d="M632 260h200v512H632z" fill="#C3D2FB" ></path><path d="M398.86 612L512 725.14 625.14 612H912v280H112V612z" fill="#3D4265" ></path></symbol><symbol id="icon-sf" viewBox="0 0 1024 1024"><path d="M511.82 512.5v435L888.54 730l-0.02-435z" fill="#C3D2FB" ></path><path d="M135.1 295l376.72 217.5v435L135.1 730z" fill="#3D4265" ></path><path d="M511.82 512.5L888.54 295 511.82 77.5 135.1 295z" fill="#386BF3" ></path></symbol><symbol id="icon-moxing" viewBox="0 0 1061 1024"><path d="M447.122 467.332L49.24 268.162A33.501 33.501 0 0 0 0.136 300.745v441.02a33.042 33.042 0 0 0 16.062 27.994l396.965 248.275a33.96 33.96 0 0 0 17.438 5.507 33.042 33.042 0 0 0 33.043-33.042V497.162a33.042 33.042 0 0 0-16.522-29.83z m598.889-203.76a33.042 33.042 0 0 0-31.666 0l-463.507 203.76a33.042 33.042 0 0 0-19.733 30.289v493.337a33.042 33.042 0 0 0 49.563 28.453l463.048-265.255a33.042 33.042 0 0 0 16.521-28.453V291.566a33.042 33.042 0 0 0-14.226-27.994z m-54.611-84.9a33.042 33.042 0 0 0-22.487-29.83L550.838 1.53a32.583 32.583 0 0 0-19.733 0L83.659 158.021a33.042 33.042 0 0 0-4.13 61.036l397.882 199.17a33.501 33.501 0 0 0 14.685 3.213 33.96 33.96 0 0 0 13.31 0L969.37 215.845a33.042 33.042 0 0 0 22.029-37.173z" fill="#5E5C5C" ></path></symbol><symbol id="icon-yanzhengyanzhengma" viewBox="0 0 1024 1024"><path d="M943.1 172c-2.4-0.2-245.1-25.3-413.8-147.8-5.1-3.7-11-5.6-17.3-5.6-6.2 0-12.2 1.9-17.3 5.6C326.9 146 83.3 171.8 80.9 172c-15.2 1.4-26.6 14.1-26.6 29.3 0 6.7 0.6 165.8 54.8 344.4 32.1 105.8 76.4 196.4 131.9 269.2 70.3 92.3 158.5 156 262 189.2 2.9 0.9 5.9 1.4 9 1.4s6.1-0.5 8.9-1.4c103.6-33.2 191.7-96.8 262-189.2 55.4-72.7 99.8-163.2 131.9-269.2 54.1-178.6 54.8-337.7 54.8-344.4C969.7 186.1 958.3 173.5 943.1 172zM910.1 227.2l-0.1 1.6c-2.9 58.1-13.4 174.4-51.4 299.9-66.7 220.1-183.1 360.1-346 416.1L512 945l-0.6-0.2C349 888.9 232.7 749.4 165.8 530.1c-39.8-130.5-49.4-254.2-51.8-301.4l-0.1-1.6 1.5-0.2c70.6-10.3 250.5-44.8 395.5-142.4l0.9-0.7 1 0.7C658 182.1 837.9 216.6 908.5 227L910.1 227.2z" ></path><path d="M641.8 351 467 580.3l-89-76.1c-5.3-4.5-12.1-7-19.1-7-8.6 0-16.8 3.7-22.4 10.3-10.5 12.3-9.1 31 3.3 41.5l112.7 96.4c5.2 4.4 12.4 7 19.6 7 0.9 0 1.8 0 2.7-0.1 8-0.8 15.4-5 20.3-11.4l193.7-254c4.8-6.3 6.8-14 5.7-21.8-1-7.8-5.1-14.7-11.3-19.5C670.1 335.6 651.6 338.1 641.8 351z" ></path></symbol><symbol id="icon-verify" viewBox="0 0 1024 1024"><path d="M713.856 93.44c44.672 9.344 79.36 15.488 105.024 18.944a332.8 332.8 0 0 0 28.864 3.008A110.08 110.08 0 0 1 944 223.36v348.672c0 71.232-36.288 168.32-80.704 219.328a737.216 737.216 0 0 1-100.672 106.496C683.264 966.208 599.232 1008 512 1008s-171.328-41.792-250.624-110.144c-26.88-23.168-51.2-47.808-72.832-72.512a409.152 409.152 0 0 1-24.768-30.208c-47.68-52.928-83.776-150.4-83.776-223.104V223.36c0-54.72 42.752-102.528 99.264-108.096 5.76-0.32 17.536-1.408 34.432-3.648a953.6 953.6 0 0 0 95.168-17.92c19.392-4.608 34.944-12.16 65.92-30.4l9.984-5.888C434.048 28.416 466.432 16 512 16c39.296 0 68.288 11.84 127.488 43.968l2.304 1.28c38.784 21.056 55.296 28.672 72.064 32.192z m-19.712 93.952c-29.376-6.144-50.688-16-98.176-41.856l-2.304-1.216C549.312 120.32 529.088 112 512 112c-24.192 0-42.88 7.168-78.656 28.16-4.736 2.88-4.736 2.88-9.728 5.76-38.784 22.912-61.12 33.664-92.48 41.216-37.76 8.96-72.96 15.36-104.768 19.648a556.8 556.8 0 0 1-39.68 4.16c-5.12 0.512-10.688 6.784-10.688 12.416v348.672c0 49.344 27.52 123.84 62.08 162.56a642.176 642.176 0 0 0 85.952 90.56c63.552 54.72 128.192 86.848 187.968 86.848 59.776 0 124.416-32.128 187.968-86.848a642.176 642.176 0 0 0 88.32-93.632c31.808-36.608 59.712-111.36 59.712-159.488V223.36c0-5.44-5.888-12.032-6.656-12.288-20.288-0.448-66.112-6.72-147.2-23.68zM400.128 488.704L487.68 576.256l185.088-185.088a48 48 0 0 1 67.84 67.84L521.6 678.144a48 48 0 0 1-67.84 0l-121.6-121.536a48 48 0 1 1 67.968-67.84z" fill="#768893" ></path></symbol><symbol id="icon-preview" viewBox="0 0 1024 1024"><path d="M854.36155804 32.02835121a114.60838884 114.60838884 0 0 1 114.21544637 105.17775738l0.39294247 9.43063278v170.60277392a49.1178817 49.1178817 0 0 1-97.77732893 6.68003145l-0.45843311-6.68003145V146.63674137a16.37262679 16.37262679 0 0 0-12.63966726-15.9796843l-3.73295954-0.39294246H130.1675186a16.37262679 16.37262679 0 0 0-15.91419368 12.57417659l-0.45843312 3.79845017v732.18388095a16.37262679 16.37262679 0 0 0 12.63966859 15.91419369l3.73295821 0.4584331h275.4530781a49.1178817 49.1178817 0 0 1 6.68003143 97.77732894l-6.68003143 0.4584331H130.1675186a114.60838884 114.60838884 0 0 1-114.21544639-105.24324667l-0.39294246-9.36514216V146.63674137a114.60838884 114.60838884 0 0 1 105.24324669-114.28093698l9.36514216-0.32745318h724.19403944z m-286.32450218 495.1082417a235.76582919 235.76582919 0 0 1 358.88798459 303.35203402l80.61881587 80.55332523a39.29430509 39.29430509 0 0 1-55.53595059 55.66693187l-80.61881589-80.61881587a235.83131983 235.83131983 0 0 1-303.35203398-358.88798459z m277.87622625 55.60144257a157.17721902 157.17721902 0 1 0-222.27478502 222.2747837 157.17721902 157.17721902 0 0 0 222.27478502-222.2747837z m-450.70567639-33.26917864a42.56883017 42.56883017 0 1 1 0 85.13766035H210.39339064a42.56883017 42.56883017 0 1 1 0-85.13766035h184.81421508z m0-158.68350096a42.56883017 42.56883017 0 1 1 0 85.13766036H210.39339064a42.56883017 42.56883017 0 1 1 0-85.13766036h184.81421508z m233.67013285-158.68350095a42.56883017 42.56883017 0 1 1 0 85.13766036h-418.48434793a42.56883017 42.56883017 0 1 1 0-85.13766036h418.48434793z" fill="#7f7f7f" ></path></symbol><symbol id="icon-yunshangchuan-xian" viewBox="0 0 1039 1024"><path d="M711.40656 345.248C667.88656 248.448 594.91056 208 481.83856 208c-118.848 0-219.328 96.512-256.736 267.76l-4.96 22.752-23.2 2.256c-83.744 8.192-120.176 54.176-131.36 144.4C54.30256 736.528 103.18256 816 193.85456 816h190.672a32 32 0 1 1 0 64H193.83856C58.68656 880-13.44144 762.72 2.07856 637.296 15.61456 528 65.80656 458.416 167.75856 440.224 215.27856 254.704 335.99856 144 481.83856 144c143.072 0 241.184 58.72 294.24 189.808 3.328-0.176 6.576-0.272 9.76-0.272 125.184 0 223.68 93.696 239.84 252.768 0.896 8.96 1.36 17.952 1.36 26.96C1027.03856 760.576 907.61456 880 760.30256 880h-120.064a32 32 0 1 1 0-64h120.064c111.968 0 202.72-90.768 202.72-202.736 0-6.848-0.32-13.68-1.024-20.48-12.912-127.088-84.544-195.248-176.16-195.248-23.136 0-55.68 7.232-96.928 22.032a32 32 0 1 1-21.616-60.224c15.584-5.6 30.288-10.304 44.112-14.08zM544.23856 598.512V848a32 32 0 0 1-64 0V598.512l-39.712 46.32a32 32 0 1 1-48.592-41.664l95.632-111.552a32.032 32.032 0 0 1 49.344 0l95.616 111.552a32 32 0 0 1-48.592 41.664l-39.696-46.32z" ></path></symbol><symbol id="icon-yulan" viewBox="0 0 1024 1024"><path d="M897.28 85.333333h-750.933333c-28.16 0-51.2 23.04-51.2 51.2v750.933334c0 28.16 23.04 51.2 51.2 51.2h276.906666c18.773333 0 34.133333-15.36 34.133334-34.133334s-15.36-34.133333-34.133334-34.133333H163.413333V153.6h716.8v275.626667c0 18.773333 15.36 34.133333 34.133334 34.133333s34.133333-15.36 34.133333-34.133333V136.533333c0-28.16-22.613333-51.2-51.2-51.2z" fill="#4C4C4C" ></path><path d="M649.813333 315.733333h-324.266666c-18.773333 0-34.133333-15.36-34.133334-34.133333s15.36-34.133333 34.133334-34.133333h324.266666c18.773333 0 34.133333 15.36 34.133334 34.133333s-14.933333 34.133333-34.133334 34.133333zM564.48 452.266667h-238.933333c-18.773333 0-34.133333-15.36-34.133334-34.133334s15.36-34.133333 34.133334-34.133333h238.933333c18.773333 0 34.133333 15.36 34.133333 34.133333s-14.933333 34.133333-34.133333 34.133334zM479.146667 588.8h-153.6c-18.773333 0-34.133333-15.36-34.133334-34.133333s15.36-34.133333 34.133334-34.133334h153.6c18.773333 0 34.133333 15.36 34.133333 34.133334s-14.933333 34.133333-34.133333 34.133333zM724.48 544c-94.293333 0-170.666667 76.373333-170.666667 170.666667s76.373333 170.666667 170.666667 170.666666 170.666667-76.373333 170.666667-170.666666-76.373333-170.666667-170.666667-170.666667z m0 273.066667c-56.32 0-102.4-46.08-102.4-102.4s46.08-102.4 102.4-102.4 102.4 46.08 102.4 102.4-45.653333 102.4-102.4 102.4z" fill="#4C4C4C" ></path><path d="M938.666667 928.853333c-13.226667 13.226667-34.986667 13.226667-48.213334 0l-72.533333-72.533333c-13.226667-13.226667-13.226667-34.986667 0-48.213333 13.226667-13.226667 34.986667-13.226667 48.213333 0l72.533334 72.533333c13.226667 13.226667 13.226667 34.56 0 48.213333z" fill="#4C4C4C" ></path></symbol><symbol id="icon-sousuo" viewBox="0 0 1024 1024"><path d="M1004.8 915.2l-243.2-243.2c0 0-6.4-6.4-6.4-6.4C800 595.2 832 505.6 832 416 832 185.6 646.4 0 416 0S0 185.6 0 416 185.6 832 416 832c89.6 0 179.2-32 243.2-83.2 0 6.4 6.4 6.4 6.4 6.4l243.2 243.2c25.6 25.6 70.4 25.6 96 6.4C1030.4 979.2 1030.4 940.8 1004.8 915.2zM64 416C64 224 224 64 416 64S768 224 768 416 608 768 416 768 64 608 64 416z" fill="#231815" ></path></symbol><symbol id="icon-ziliucheng" viewBox="0 0 1024 1024"><path d="M212.992 526.336 212.992 526.336 212.992 526.336 215.04 526.336 212.992 526.336Z" ></path><path d="M813.056 768l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912l0-38.912-18.432 0c-53.248 0-96.256-43.008-96.256-96.256L659.456 614.4l-96.256 0 0 192.512c0 20.48-16.384 38.912-38.912 38.912L120.832 845.824c-20.48 0-38.912-16.384-38.912-38.912L81.92 401.408c0-20.48 16.384-38.912 38.912-38.912l192.512 0L313.344 190.464 120.832 190.464C98.304 190.464 81.92 174.08 81.92 151.552L81.92 112.64c0-20.48 16.384-38.912 38.912-38.912l788.48 0c20.48 0 38.912 16.384 38.912 38.912l0 38.912c0 20.48-16.384 38.912-38.912 38.912L331.776 190.464l0 174.08 192.512 0c20.48 0 38.912 16.384 38.912 38.912L563.2 593.92l96.256 0 0-153.6c0-53.248 43.008-96.256 96.256-96.256l18.432 0 0-38.912c0-20.48 16.384-38.912 38.912-38.912l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912l0-38.912-18.432 0c-43.008 0-77.824 34.816-77.824 77.824L677.888 593.92l96.256 0 0-38.912c0-20.48 16.384-38.912 38.912-38.912l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912L774.144 614.4l-96.256 0 0 153.6c0 43.008 34.816 77.824 77.824 77.824l18.432 0 0-38.912C774.144 784.384 792.576 768 813.056 768z" ></path></symbol><symbol id="icon-danyuange" viewBox="0 0 1024 1024"><path d="M467.970999 661.248453h-184.831769a70.655912 70.655912 0 0 0-54.527932 25.599968A82.431897 82.431897 0 0 0 204.803328 744.19235v196.607754A82.687897 82.687897 0 0 0 228.611298 998.400032a71.423911 71.423911 0 0 0 54.527932 25.599968h184.831769a73.727908 73.727908 0 0 0 55.039931-25.599968 81.919898 81.919898 0 0 0 23.551971-58.623927v-195.583755a81.919898 81.919898 0 0 0-23.551971-58.367927 72.959909 72.959909 0 0 0-55.039931-25.599968z m5.887993-84.991893A118.015852 118.015852 0 0 0 512.002944 549.376593 127.99984 127.99984 0 0 0 545.538902 460.800704V126.465122A133.119834 133.119834 0 0 0 537.602912 76.801184a123.391846 123.391846 0 0 0-25.599968-40.447949 118.015852 118.015852 0 0 0-37.119954-25.599968A104.703869 104.703869 0 0 0 428.547048 0.00128H116.995438A105.471868 105.471868 0 0 0 71.683494 9.985268a121.087849 121.087849 0 0 0-37.119953 25.599968A127.99984 127.99984 0 0 0 9.219572 76.801184 133.119834 133.119834 0 0 0 0.003584 126.465122V460.800704a127.99984 127.99984 0 0 0 34.559957 88.31989 121.087849 121.087849 0 0 0 37.119953 27.135966 105.471868 105.471868 0 0 0 45.311944 9.983987h311.55161a106.239867 106.239867 0 0 0 45.311944-9.983987z m527.35934-329.215589a71.67991 71.67991 0 0 0-54.783931-25.599968h-184.575769a72.959909 72.959909 0 0 0-55.295931 25.599968 81.919898 81.919898 0 0 0-23.551971 58.367927v195.583756a83.199896 83.199896 0 0 0 23.551971 59.647925 73.983908 73.983908 0 0 0 55.295931 25.599968H947.2024a72.447909 72.447909 0 0 0 54.783932-25.599968 84.991894 84.991894 0 0 0 22.015972-59.647925v-195.583756a82.943896 82.943896 0 0 0-22.783972-58.367927zM947.2024 661.248453h-185.343768a72.959909 72.959909 0 0 0-55.295931 25.599968 81.919898 81.919898 0 0 0-23.551971 58.367927v196.607755A81.919898 81.919898 0 0 0 706.562701 998.400032a73.983908 73.983908 0 0 0 55.295931 25.599968H947.2024a72.447909 72.447909 0 0 0 54.783932-25.599968 83.455896 83.455896 0 0 0 22.015972-57.599928v-196.607754a83.199896 83.199896 0 0 0-22.783972-58.367927 71.67991 71.67991 0 0 0-54.783931-25.599968z m0 0" ></path></symbol><symbol id="icon-rengongzhineng_filledbeifen" viewBox="0 0 1024 1024"><path d="M913.678222 374.556444c0-175.431111-160.782222-317.653333-359.139555-317.653333a382.577778 382.577778 0 0 0-254.663111 93.767111 270.108444 270.108444 0 0 0-91.335112 118.840889 318.350222 318.350222 0 0 0-20.849777 98.773333c-0.597333 38.840889 18.389333 76.871111 1.664 114.688-11.633778 26.453333-41.870222 48.824889-61.312 69.916445 0 0-54.442667 36.224 49.436444 41.173333 2.929778 0.142222 16.071111 62.222222 19.342222 76.430222a16.753778 16.753778 0 0 0-3.271111 10.752c0 11.904 15.004444 21.617778 33.450667 21.617778h11.278222c-24.362667 3.313778-41.955556 12.8-41.955555 26.026667 0 9.102222 11.562667 21.105778 28.842666 28.302222 0 0-21.333333 66.744889 10.296889 81.962667a36.977778 36.977778 0 0 0 21.333333 1.564444c44.856889 2.446222 125.155556-0.739556 169.784889-0.739555 0-0.810667 23.466667 127.146667 23.466667 127.146666h403.299556c0 0.64-38.769778-289.265778-38.769778-289.265777 70.968889-101.632 95.544889-192.611556 96.881778-268.643556 1.422222-11.491556 2.161778-23.068444 2.176-34.659556h0.042666zM701.155556 320.711111a72.632889 72.632889 0 0 1-65.706667-42.055111l-54.471111 31.544889a108.344889 108.344889 0 0 1-7.509334 107.975111l102.172445 59.192889a36.508444 36.508444 0 1 1-10.894222 25.984 35.555556 35.555556 0 0 1 2.019555-10.026667L561.777778 432.512a109.511111 109.511111 0 1 1 10.168889-138.154667l57.728-33.422222a72.718222 72.718222 0 1 1 71.466666 59.733333v0.042667z" fill="#323233" ></path></symbol><symbol id="icon-fuhao-huizhi" viewBox="0 0 1024 1024"><path d="M254.4 82.624L82.624 254.4a60.704 60.704 0 0 0 0 85.92L254.4 512l128.8-128.8-42.88-42.88-85.92 85.888-42.88-42.88 85.888-85.92-42.88-42.88-85.92 85.888-42.88-42.88 171.776-171.84 171.584 171.616L512 254.4l-171.776-171.84a60.576 60.576 0 0 0-85.76 0z m644.096 644.064l-171.808 171.808-42.88-42.912 85.888-85.888-42.88-42.88-85.92 85.856-42.88-42.88 85.888-85.888-42.912-42.912L512 769.6l171.776 171.776a60.704 60.704 0 0 0 85.92 0l171.776-171.776a60.704 60.704 0 0 0 0-85.92L769.6 512l-42.912 42.88 171.808 171.808zM680.8 211.328l131.968 131.872-43.968 44L636.8 255.2l44-43.872zM240.96 650.976l131.968 131.872-44 44-131.968-131.872 44-44zM680.704 123.424a124.544 124.544 0 0 1 176.288 0.096l43.584 43.52a124.704 124.704 0 0 1 0.096 176.16L355.264 888.416l-268.352 48.384 48.384-268.288L680.704 123.424zM334.4 821.344L857.472 298.656c23.84-23.872 23.552-63.264-0.8-87.52L813.12 167.616c-24.544-24.544-63.552-24.832-87.584-0.8L202.432 689.6l-27.52 159.424 159.52-27.616z" fill="#0A8CF0" ></path></symbol><symbol id="icon-shanchu" viewBox="0 0 1024 1024"><path d="M799.2 874.4c0 34.4-28.001 62.4-62.4 62.4H287.2c-34.4 0-62.4-28-62.4-62.4V212h574.4v662.4zM349.6 100c0-7.2 5.6-12.8 12.8-12.8h300c7.2 0 12.8 5.6 12.8 12.8v37.6H349.6V100z m636.8 37.6H749.6V100c0-48.001-39.2-87.2-87.2-87.2h-300c-48 0-87.2 39.199-87.2 87.2v37.6H37.6C16.8 137.6 0 154.4 0 175.2s16.8 37.6 37.6 37.6h112v661.6c0 76 61.6 137.6 137.6 137.6h449.6c76 0 137.6-61.6 137.6-137.6V212h112c20.8 0 37.6-16.8 37.6-37.6s-16.8-36.8-37.6-36.8zM512 824c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0 20.8 16.8 37.6 37.6 37.6m-175.2 0c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0.8 20.8 17.6 37.6 37.6 37.6m350.4 0c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0 20.8 16.8 37.6 37.6 37.6" fill="#8A8A8A" ></path></symbol><symbol id="icon-jurassic_import-form" viewBox="0 0 1024 1024"><path d="M764.9 64H225.4l1.4 224.2 64-0.4-1-159.8h383.6v224H896v544H289.8l1-159.8-64-0.4-1.4 224.2H960V277.7L764.9 64z m-27.6 64.7L882.8 288H737.3V128.7z" fill="#707070" ></path><path d="M356.5 224h255.9v64H356.5z" fill="#707070" ></path><path d="M576.4 416h255.9v64H576.4zM512.5 576h319.8v64H512.5zM384.5 736h447.8v64H384.5z" fill="#707070" ></path><path d="M336.9 349H198.6l98.9 98.9H64v128.2h233.5L198.6 675h138.3l162.9-163z" fill="#707070" ></path></symbol><symbol id="icon-kaoheweidufenxi" viewBox="0 0 1024 1024"><path d="M815.542857 212.943238l118.296381 68.266667v168.033524l-201.532952 116.345904-0.487619-163.352381-125.366857-72.46019 209.091047-116.833524z m-89.673143-51.736381L519.314286 279.454476 305.785905 156.233143 511.561143 37.449143l214.308571 123.757714zM294.619429 887.466667L89.234286 768.877714V546.133333l205.677714 118.00381-0.292571 223.329524z m85.333333 49.249523l-0.097524-223.914666 133.607619 76.653714 132.632381-76.604952-1.024 222.744381-133.558857 77.043809-131.510857-75.922286zM434.468571 328.021333L295.253333 407.747048l-0.195047 156.672L89.234286 444.318476V281.258667l132.047238-76.263619 213.089524 123.026285z m86.113524 49.737143l126.780953 73.191619-0.780191 164.08381-133.12 76.897524-133.656381-78.019048-0.097524-157.403429 140.921905-78.750476z m413.257143 169.008762v222.110476l-200.655238 115.809524-0.633905-221.769143 201.289143-116.150857z" fill="#82529d" ></path></symbol><symbol id="icon-wenjianjia" viewBox="0 0 1024 1024"><path d="M855.04 385.024q19.456 2.048 38.912 10.24t33.792 23.04 21.504 37.376 2.048 54.272q-2.048 8.192-8.192 40.448t-14.336 74.24-18.432 86.528-19.456 76.288q-5.12 18.432-14.848 37.888t-25.088 35.328-36.864 26.112-51.2 10.24l-567.296 0q-21.504 0-44.544-9.216t-42.496-26.112-31.744-40.96-12.288-53.76l0-439.296q0-62.464 33.792-97.792t95.232-35.328l503.808 0q22.528 0 46.592 8.704t43.52 24.064 31.744 35.84 12.288 44.032l0 11.264-53.248 0q-40.96 0-95.744-0.512t-116.736-0.512-115.712-0.512-92.672-0.512l-47.104 0q-26.624 0-41.472 16.896t-23.04 44.544q-8.192 29.696-18.432 62.976t-18.432 61.952q-10.24 33.792-20.48 65.536-2.048 8.192-2.048 13.312 0 17.408 11.776 29.184t29.184 11.776q31.744 0 43.008-39.936l54.272-198.656q133.12 1.024 243.712 1.024l286.72 0z" ></path></symbol><symbol id="icon-biaoqian" viewBox="0 0 1024 1024"><path d="M934.912 516.096q23.552 26.624 19.456 49.664t-26.624 46.592l-324.608 327.68q-8.192 7.168-19.456 11.264t-23.04 4.608-23.04-2.56-18.432-10.24q-121.856-122.88-218.112-220.16l-80.896-80.896q-39.936-39.936-71.168-71.68t-51.2-51.2-20.992-21.504q-3.072-4.096-10.752-14.848t-6.656-25.088l0-19.456 0-40.96q0-23.552 0.512-52.736t0.512-58.88q1.024-70.656 2.048-156.672 2.048-13.312 6.144-24.064t15.36-22.016q10.24-11.264 22.016-16.384t22.016-5.12l329.728 0q2.048 0 9.216 0.512t10.24 1.536q6.144 2.048 11.264 5.12t10.24 8.192zM217.088 317.44q40.96 0 69.12-28.672t28.16-69.632-28.16-69.632-69.12-28.672q-20.48 0-37.888 7.68t-30.72 20.992-20.992 31.232-7.68 38.4 7.68 38.4 20.992 31.232 30.72 20.992 37.888 7.68z" fill="#ea9518" ></path></symbol><symbol id="icon-wenben" viewBox="0 0 1024 1024"><path d="M823.296 60.416q65.536 0 99.328 38.4t33.792 93.696l0 543.744q0 25.6-21.504 46.08l-171.008 163.84q-13.312 11.264-22.528 14.336t-23.552 3.072l-459.776 0q-23.552 0-47.104-9.728t-41.984-27.648-30.208-43.008-11.776-55.808l0-634.88q0-60.416 33.28-96.256t94.72-35.84l568.32 0zM608.256 702.464q13.312 0 22.528-9.216t9.216-22.528q0-14.336-9.216-23.04t-22.528-8.704l-320.512 0q-13.312 0-22.528 8.704t-9.216 23.04q0 13.312 9.216 22.528t22.528 9.216l320.512 0zM736.256 509.952q13.312 0 22.528-9.216t9.216-22.528-9.216-22.528-22.528-9.216l-448.512 0q-13.312 0-22.528 9.216t-9.216 22.528 9.216 22.528 22.528 9.216l448.512 0zM799.744 318.464q13.312 0 22.528-9.216t9.216-23.552q0-13.312-9.216-22.528t-22.528-9.216l-512 0q-13.312 0-22.528 9.216t-9.216 22.528q0 14.336 9.216 23.552t22.528 9.216l512 0z" fill="#db639b" ></path></symbol><symbol id="icon-yingyong" viewBox="0 0 1026 1024"><path d="M371.732817 94.172314q25.773475 0 44.112294 17.843175t18.338819 43.616651l0 247.821878q0 25.773475-18.338819 44.112294t-44.112294 18.338819l-247.821878 0q-25.773475 0-43.616651-18.338819t-17.843175-44.112294l0-247.821878q0-25.773475 17.843175-43.616651t43.616651-17.843175l247.821878 0zM371.732817 589.81607q25.773475 0 44.112294 17.843175t18.338819 43.616651l0 248.813166q0 25.773475-18.338819 43.616651t-44.112294 17.843175l-247.821878 0q-25.773475 0-43.616651-17.843175t-17.843175-43.616651l0-248.813166q0-25.773475 17.843175-43.616651t43.616651-17.843175l247.821878 0zM868.367861 589.81607q25.773475 0 43.616651 17.843175t17.843175 43.616651l0 248.813166q0 25.773475-17.843175 43.616651t-43.616651 17.843175l-247.821878 0q-25.773475 0-44.112294-17.843175t-18.338819-43.616651l0-248.813166q0-25.773475 18.338819-43.616651t44.112294-17.843175l247.821878 0zM1006.156825 203.21394q19.82575 19.82575 19.82575 46.590513t-19.82575 45.599226l-184.379477 184.379477q-19.82575 19.82575-46.094869 19.82575t-46.094869-19.82575l-184.379477-184.379477q-18.834463-18.834463-18.834463-45.599226t18.834463-46.590513l184.379477-184.379477q19.82575-18.834463 46.094869-18.834463t46.094869 18.834463z" fill="#0061b2" ></path></symbol><symbol id="icon-wenjianjia-copy" viewBox="0 0 1024 1024"><path d="M855.04 385.024q19.456 2.048 38.912 10.24t33.792 23.04 21.504 37.376 2.048 54.272q-2.048 8.192-8.192 40.448t-14.336 74.24-18.432 86.528-19.456 76.288q-5.12 18.432-14.848 37.888t-25.088 35.328-36.864 26.112-51.2 10.24l-567.296 0q-21.504 0-44.544-9.216t-42.496-26.112-31.744-40.96-12.288-53.76l0-439.296q0-62.464 33.792-97.792t95.232-35.328l503.808 0q22.528 0 46.592 8.704t43.52 24.064 31.744 35.84 12.288 44.032l0 11.264-53.248 0q-40.96 0-95.744-0.512t-116.736-0.512-115.712-0.512-92.672-0.512l-47.104 0q-26.624 0-41.472 16.896t-23.04 44.544q-8.192 29.696-18.432 62.976t-18.432 61.952q-10.24 33.792-20.48 65.536-2.048 8.192-2.048 13.312 0 17.408 11.776 29.184t29.184 11.776q31.744 0 43.008-39.936l54.272-198.656q133.12 1.024 243.712 1.024l286.72 0z" ></path></symbol></svg>',(a=>{var l=(r=(r=document.getElementsByTagName("script"))[r.length-1]).getAttribute("data-injectcss"),r=r.getAttribute("data-disable-injectsvg");if(!r){var n,t,s,v,p,f=function(c,D){D.parentNode.insertBefore(c,D)};if(l&&!a.__iconfont__svg__cssinject__){a.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(c){console&&console.log(c)}}n=function(){var c,D=document.createElement("div");D.innerHTML=a._iconfont_svg_string_4827314,(D=D.getElementsByTagName("svg")[0])&&(D.setAttribute("aria-hidden","true"),D.style.position="absolute",D.style.width=0,D.style.height=0,D.style.overflow="hidden",D=D,(c=document.body).firstChild?f(D,c.firstChild):c.appendChild(D))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(n,0):(t=function(){document.removeEventListener("DOMContentLoaded",t,!1),n()},document.addEventListener("DOMContentLoaded",t,!1)):document.attachEvent&&(s=n,v=a.document,p=!1,g(),v.onreadystatechange=function(){v.readyState=="complete"&&(v.onreadystatechange=null,m())})}function m(){p||(p=!0,s())}function g(){try{v.documentElement.doScroll("left")}catch{return void setTimeout(g,50)}m()}})(window);const wf=["onClick"],_f=e.defineComponent({__name:"index",props:{items:{default:()=>[]},disabled:{type:Boolean,default:!1},textSize:{default:void 0},textColor:{default:void 0},backGround:{default:void 0},backGroundImage:{default:void 0}},emits:["update:backGroundImage"],setup(a,{emit:l}){const r=a,n=l,t=e.ref(null),s=e.ref(null),v=e.computed(()=>{const x=Number(r==null?void 0:r.textSize),k=he.rgbaToColor(r==null?void 0:r.textColor),b={},w={};return!Number.isNaN(x)&&x&&(b.fontSize=`${x}px`,w.fontSize=`${x}px`),k&&(b.color=k,w.color=k),{label:b,value:w}}),p=e.ref(""),f=e.ref(""),m=e.ref(!1),g=async x=>{if(x){f.value&&(URL.revokeObjectURL(f.value),f.value="");try{const k=await A.platformDownloadFile({url:x}),b=new Blob([k==null?void 0:k.data],{type:(k==null?void 0:k.headers["content-type"])||"image/*"});f.value=URL.createObjectURL(b)}catch{f.value=""}}};e.watch(()=>r==null?void 0:r.backGroundImage,x=>{x&&(p.value=x)},{immediate:!0}),e.watch(p,x=>{g(x)},{immediate:!0});const c=()=>{var x;(x=s.value)==null||x.click()},D=async x=>{var w,$,F;const k=x.target,b=(w=k==null?void 0:k.files)==null?void 0:w[0];if(!b){k.value="";return}m.value=!0;try{const J=new FormData;J.append("file",b);const se=await A.platformUploadFile(J),ge=(F=($=se==null?void 0:se.data)==null?void 0:$.result)==null?void 0:F.url;ge?(p.value=ge,n("update:backGroundImage",ge),g(ge),qa.ElMessage.success("背景图片上传成功")):qa.ElMessage.error("背景图片上传失败")}catch{qa.ElMessage.error("背景图片上传失败")}finally{m.value=!1,k.value=""}},M=e.computed(()=>f.value?{backgroundImage:`url(${f.value})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{}),S=x=>ll.getComponent(x),K=x=>{if(!x)return;const k=x.querySelector("input, textarea, .el-input__inner");k&&typeof k.focus=="function"&&k.focus()},I=(x,k,b)=>{r.disabled||x.field&&(t.value=k,e.nextTick(()=>{K(b.currentTarget)}))},R=()=>{t.value=null},j=x=>{var b;const k=((b=x==null?void 0:x.field)==null?void 0:b.value)??(x==null?void 0:x.value);return k==null||k===""?"-":k},E=x=>{const k=x!=null&&x.width&&x.width>0?x.width:1,w=`calc((100% - ${(k-1)*16}px) / ${k})`;return{flex:`0 0 ${w}`,maxWidth:w,minWidth:"140px",boxSizing:"border-box"}};return(x,k)=>(e.openBlock(),e.createElementBlock("div",{class:"statistics-cards-container",style:e.normalizeStyle(M.value),onClick:k[2]||(k[2]=b=>(r==null?void 0:r.backGround)&&c())},[r!=null&&r.backGround?(e.openBlock(),e.createElementBlock("div",{key:0,class:"form-backGround-upload",onClick:k[0]||(k[0]=e.withModifiers(b=>c(),["stop"]))},[e.createElementVNode("input",{ref_key:"bgUploadRef",ref:s,type:"file",accept:"image/*",style:{display:"none"},onChange:D},null,544),k[3]||(k[3]=e.createElementVNode("img",{src:ll._imports_0,class:"bg-upload-icon",alt:"上传背景"},null,-1))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.items,(b,w)=>{var $,F,J,se,ge,Me,V,fe;return e.openBlock(),e.createElementBlock("div",{class:"statistics-card",key:w,style:e.normalizeStyle(E(b)),onClick:k[1]||(k[1]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",{class:"statistics-label",style:e.normalizeStyle(v.value.label)},e.toDisplayString(b==null?void 0:b.label),5),e.createElementVNode("div",{class:"statistics-value",style:e.normalizeStyle(v.value.value),onClick:ae=>{var de;return(de=b.field)!=null&&de.isNoClick?null:I(b,w,ae)}},[t.value===w&&b.field?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(S((($=b.field)==null?void 0:$.type)??"Input")),{key:0,modelValue:b.field.value,"onUpdate:modelValue":ae=>b.field.value=ae,isEdit:!0,disabled:(F=b.field)==null?void 0:F.disabled,content:((J=b.field)==null?void 0:J.contents)??[],optionUrl:b.field,originalValue:(se=b.field)==null?void 0:se.value,config:(ge=b.field)==null?void 0:ge.config,configModel:((Me=b.field)==null?void 0:Me.prop)??((V=b.field)==null?void 0:V.name),selectedTagList:((fe=b.field)==null?void 0:fe.selectValue)??[],onBlur:R,onBlurChange:R},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(j(b)),1)],64))],12,wf)],4)}),128))],4))}}),Sf=Xl._export_sfc(_f,[["__scopeId","data-v-d73001ab"]]),sc=A.defineStore("formToTableComp",{state:()=>({selectArray:[],selectString:""}),actions:{setSelectArray(a){this.selectArray=a},setSelectString(a){this.selectString=a}}}),Ef={class:"calculator-content"},Cf={class:"calculator-child"},Df={class:"calculator-child"},Bf=e.defineComponent({__name:"calculator",setup(a){const l=e.ref(),r=e.ref();return e.onMounted(()=>{l.value=[{type:"Upload",label:"输入",name:"input"}],r.value=[{type:"Upload",label:"输出",name:"output"}]}),(n,t)=>(e.openBlock(),e.createElementBlock("div",Ef,[e.createElementVNode("div",Cf,[e.createVNode(ll.ssForm,{rowContents:l.value,isRowFlex:!0},null,8,["rowContents"])]),e.createElementVNode("div",Df,[e.createVNode(ll.ssForm,{rowContents:r.value,isEdit:!1,isRowFlex:!0},null,8,["rowContents"])])]))}}),Nf=Xl._export_sfc(Bf,[["__scopeId","data-v-73db0fe7"]]),mt=(a,l)=>{let r=a,n=l;return Array.isArray(r)&&(r=r==null?void 0:r.map((t,s)=>{if(Array.isArray(t)){let v={};return t=t==null?void 0:t.forEach((p,f)=>{var m;(m=n==null?void 0:n[f])!=null&&m.prop?v[n[f].prop]=p:Array.isArray(p)&&(v.children=mt(p,n))}),Object.assign(v,{id:s})}else return t})),r},cc=(a,l,r)=>{let n=a,t=l;return n=n==null?void 0:n.map((s,v)=>{var p,f;return!Array.isArray(s)||!((p=t==null?void 0:t[v])!=null&&p.label)&&!r||(s.unshift(((f=t==null?void 0:t[v])==null?void 0:f.label)??""),s.some(m=>Array.isArray(m))&&(s=s==null?void 0:s.map(m=>{var g;return Array.isArray(m)&&(m=cc(m,(g=t==null?void 0:t[v])==null?void 0:g.children,r)),m}))),s}),n},Tf=(a,l,r)=>{if(l==="")return a==null?void 0:a.filter(n=>(n==null?void 0:n.id)!==r);{const n=l.split("-");return Af(a,n,r)}},Af=(a,l,r)=>{let n=a,t=l;return(t==null?void 0:t.length)===0?n=n==null?void 0:n.filter(s=>s.id!==r):n=n==null?void 0:n.map(s=>(s.id.toString()===(t==null?void 0:t[0])&&(t==null||t.shift(),s=uc(s,t,r)),s)),n},uc=(a,l,r)=>{var s,v;let n=a,t=l;return(t==null?void 0:t.length)===0?n.children=(s=n.children)==null?void 0:s.filter(p=>p.id!==r):n.children=(v=n.children)==null?void 0:v.map(p=>(p.id.toString()===(t==null?void 0:t[0])&&(t==null||t.shift(),p=uc(p,t,r)),p)),n},zf=(a,l,r)=>{if(l==="")return r;{const n=l.split("-");return Mf(a,n,r)}},Mf=(a,l,r)=>{let n=a,t=l;return(t==null?void 0:t.length)===0?n=r:n=n==null?void 0:n.map(s=>(s.id.toString()===(t==null?void 0:t[0])&&(t==null||t.shift(),s=dc(s,t,r)),s)),n},dc=(a,l,r)=>{var s;let n=a,t=l;return(t==null?void 0:t.length)===0?n.children=r:n.children=(s=n.children)==null?void 0:s.map(v=>(v.id.toString()===(t==null?void 0:t[0])&&(t==null||t.shift(),v=dc(v,t,r)),v)),n};class If{constructor(l={}){Wr(this,"url");Wr(this,"heartbeatInterval");Wr(this,"socket",null);Wr(this,"isConnected",!1);Wr(this,"heartTimer",null);Wr(this,"canvas",null);Wr(this,"ctx",null);Wr(this,"mainCamCutMode",0);Wr(this,"pMainShowStartX",0);Wr(this,"pMainShowStartY",0);Wr(this,"onLog");Wr(this,"onDevCount");Wr(this,"onResolution");Wr(this,"onCameraStatus");Wr(this,"onPhoto");this.url=l.url??"ws://127.0.0.1:22225",this.heartbeatInterval=l.heartbeatInterval??3e3}init(l,r,n){var v;(v=this.canvas)!=null&&v.parentNode&&this.canvas.parentNode.removeChild(this.canvas);const t=document.createElement("canvas");t.style.border="solid 1px #A0A0A0",t.id="MainCamCanvas",t.width=r,t.height=n;const s=t.getContext("2d");if(!s)throw new Error("无法获取 CanvasRenderingContext2D");l.appendChild(t),this.canvas=t,this.ctx=s}async connect(){this.socket&&(this.socket.readyState===WebSocket.OPEN||this.socket.readyState===WebSocket.CONNECTING)||await new Promise((l,r)=>{const n=new WebSocket(this.url);n.binaryType="arraybuffer",n.onopen=()=>{this.socket=n,this.isConnected=!0,this.startHeartbeat(),this.log("socket.onopen"),l()},n.onerror=t=>{this.isConnected=!1,this.log("socket.onerror"),r(t)},n.onclose=()=>{this.isConnected=!1,this.stopHeartbeat(),this.log("socket.onclose")},n.onmessage=t=>{this.handleMessage(t)}})}destroy(){var l;this.stopHeartbeat();try{this.closeCamera()}catch{}if(this.socket){try{this.socket.onmessage=null}catch{}try{this.socket.onopen=null}catch{}try{this.socket.onerror=null}catch{}try{this.socket.onclose=null}catch{}try{this.socket.close()}catch{}this.socket=null}this.isConnected=!1,(l=this.canvas)!=null&&l.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.canvas=null,this.ctx=null}getDevCount(){this.sendBytes(new Uint8Array([119,136,80]))}getResolution(l=0){this.sendBytes(new Uint8Array([119,136,81,l]))}chooseResolution(l){if(!Array.isArray(l)||l.length===0)return null;const r=l.find(t=>t.width===2592&&t.height===1944);return r||[...l].sort((t,s)=>s.width*s.height-t.width*t.height)[0]||null}openCamera(l=0,r=1280,n=720){if(!this.canvas)throw new Error("请先 init() 传入容器并创建 canvas");const t=new Uint8Array(12);t[0]=119,t[1]=136,t[2]=1,t[3]=l,t[4]=this.canvas.width>>8&255,t[5]=this.canvas.width&255,t[6]=this.canvas.height>>8&255,t[7]=this.canvas.height&255,t[8]=r>>8&255,t[9]=r&255,t[10]=n>>8&255,t[11]=n&255,this.sendBytes(t)}closeCamera(){this.sendBytes(new Uint8Array([119,136,2,0]))}photo(){const t=new Uint8Array(12);t[0]=119,t[1]=136,t[2]=16,t[3]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t[9]=0,t[10]=0,t[11]=0,this.sendBytes(t)}bestSize(){this.sendBytes(new Uint8Array([119,136,5,0]))}rotateLeft(){this.sendBytes(new Uint8Array([119,136,7,0]))}rotateRight(){this.sendBytes(new Uint8Array([119,136,8,0]))}focus(){this.sendBytes(new Uint8Array([119,136,48,0]))}log(l){var r;(r=this.onLog)==null||r.call(this,l)}sendBytes(l){if(!this.socket||this.socket.readyState!==WebSocket.OPEN||!this.isConnected)throw new Error("socket 未连接");this.socket.send(l.buffer)}startHeartbeat(){this.stopHeartbeat(),this.heartTimer=window.setInterval(()=>{this.log("heartCheck...........")},this.heartbeatInterval)}stopHeartbeat(){this.heartTimer&&(clearInterval(this.heartTimer),this.heartTimer=null)}handleMessage(l){var t,s,v,p,f,m;const r=new Uint8Array(l.data);if(r.length<=0)return;if(r[0]===17&&r[1]===17&&r[2]===17){this.log("heart socket!!!!");return}if(r[0]!==85||r[1]!==102)return;const n=r[2];if(n===80){const g=r[3],c=r.length-4,D=new Uint8Array(c);for(let K=0;K<c;K++)D[K]=r[4+K];const S=decodeURIComponent(this.byteToString(D)).split("|");(t=this.onDevCount)==null||t.call(this,g,S);return}if(n===81){const g=r[3]||0,c=[];for(let D=0;D<g;D++){const M=(r[4+D*4+0]||0)*256+(r[4+D*4+1]||0),S=(r[4+D*4+2]||0)*256+(r[4+D*4+3]||0);c.push({width:M,height:S,text:`${M}*${S}`})}(s=this.onResolution)==null||s.call(this,g,c);return}if(n===1){r[3]===1&&((v=this.onCameraStatus)==null||v.call(this,"opened")),r[3]===3&&((p=this.onCameraStatus)==null||p.call(this,"closed"));return}if(n===16){if(r[3]===1){const c=r[4]*256+r[5],D=r[6]*65536+r[7]*256+r[8];let M="";if(c>0){const I=new Uint8Array(c);for(let R=0;R<c;R++)I[R]=r[9+R];M=decodeURIComponent(this.byteToString(I))}const S=new Uint8Array(D);for(let I=0;I<D;I++)S[I]=r[9+c+I];const K=this.uint8ArrayToString(S);(f=this.onPhoto)==null||f.call(this,{flag:0,imgPath:M,base64:K})}r[3]===2&&((m=this.onPhoto)==null||m.call(this,{flag:2,imgPath:"",base64:""}));return}if(n===204){if(!this.canvas||!this.ctx)return;const g=r[3]*256+r[4],c=r[5]*256+r[6];this.pMainShowStartX=r[7]*256+r[8],this.pMainShowStartY=r[9]*256+r[10],this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height);const D=this.ctx.createImageData(g,c);let M=11;for(let S=0;S<D.data.length;S+=4)D.data[S+0]=r[M],D.data[S+1]=r[M+1],D.data[S+2]=r[M+2],D.data[S+3]=255,M+=3;this.ctx.putImageData(D,this.pMainShowStartX,this.pMainShowStartY),this.mainCamCutMode;return}}uint8ArrayToString(l){let r="";for(let n=0;n<l.length;n++)r+=String.fromCharCode(l[n]);return r}byteToString(l){let r="";for(let n=0;n<l.length;n++)r+=String.fromCharCode(l[n]);return r}}const Of={style:{display:"flex",gap:"16px",height:"100%"}},Lf={key:0,style:{color:"var(--el-text-color-secondary)"}},Rf={style:{width:"420px",display:"flex","flex-direction":"column",gap:"16px"}},$f={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px"}},Vf={ref:"pictureBox",style:{height:"220px",border:"1px dashed var(--el-border-color)","border-radius":"4px",background:"var(--el-fill-color-lighter)",position:"relative",overflow:"auto",padding:"8px"}},Ff={key:0,style:{height:"100%",display:"flex","align-items":"center","justify-content":"center",color:"var(--el-text-color-secondary)"}},Pf={key:1,style:{display:"grid","grid-template-columns":"repeat(2, minmax(0, 1fr))",gap:"8px"}},jf=["src","onClick"],Hf=["onClick"],Uf={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px",flex:"1","min-height":"0",display:"flex","flex-direction":"column"}},qf={class:"dialog-footer"},Wf=e.defineComponent({__name:"index",props:{visible:{type:Boolean,default:!1}},emits:["confirm","cancel"],setup(a,{emit:l}){const r=a,n=l,t=e.ref(null),s=e.ref(!1),v=e.ref([]),p=e.ref(""),f=e.ref(!1),m=e.ref([]),g=new If({url:"ws://127.0.0.1:22225"});function c(F,J){var ae;const se=F.split(","),ge=((ae=se[0].match(/:(.*?);/))==null?void 0:ae[1])??"image/jpeg",Me=atob(se[1]);let V=Me.length;const fe=new Uint8Array(V);for(;V--;)fe[V]=Me.charCodeAt(V);return new File([fe],J,{type:ge})}function D(){g.onLog=F=>{console.log("[GPY]",F)},g.onDevCount=(F,J)=>{if(p.value+=`设备数量=${F},设备=${J.join(",")}
4
+ `,F>0){p.value+=`检测到设备,正在获取分辨率...
5
+ `;try{g.getResolution(0)}catch(se){p.value+=`获取分辨率失败:${(se==null?void 0:se.message)??se}
6
+ `}}else p.value+=`未检测到高拍仪设备!
7
+ `},g.onResolution=(F,J)=>{if(F<=0||!Array.isArray(J)||J.length===0){p.value+=`未获取到可用分辨率,回退使用 1280*720 打开...
8
+ `;try{g.openCamera(0,1280,720)}catch(ge){p.value+=`打开摄像头失败:${(ge==null?void 0:ge.message)??ge}
9
+ `}return}const se=g.chooseResolution(J);if(!se){p.value+=`分辨率选择失败,回退使用 1280*720 打开...
10
+ `;try{g.openCamera(0,1280,720)}catch(ge){p.value+=`打开摄像头失败:${(ge==null?void 0:ge.message)??ge}
11
+ `}return}p.value+=`获取分辨率 ${se.text}成功,打开摄像头...
12
+ `;try{g.closeCamera(),setTimeout(()=>{try{g.openCamera(0,se.width,se.height)}catch(ge){p.value+=`打开摄像头失败:${(ge==null?void 0:ge.message)??ge}
13
+ `}},100)}catch{try{g.openCamera(0,se.width,se.height)}catch(ge){p.value+=`打开摄像头失败:${(ge==null?void 0:ge.message)??ge}
14
+ `}}},g.onCameraStatus=F=>{F==="opened"?(s.value=!0,p.value+=`摄像头已打开
15
+ `):(s.value=!1,p.value+=`摄像头已关闭
16
+ `)},g.onPhoto=F=>{if(F.flag===0&&F.base64){const J=`data:image/jpeg;base64,${F.base64}`,se=c(J,`gpy-capture-${Date.now()}.jpg`);v.value.push({uid:`${Date.now()}_${Math.random().toString(16).slice(2)}`,url:J,file:se}),p.value+=`拍照完成,已接收图片(当前 ${v.value.length} 张)
17
+ `}else p.value+=`拍照失败 flag=${F.flag}
18
+ `}}const M=async()=>{if(await e.nextTick(),!t.value)return;S(),D();const F=t.value.getBoundingClientRect();g.init(t.value,Math.floor(F.width),Math.floor(F.height)),p.value+=`正在连接设备服务...
19
+ `,await g.connect(),p.value+=`正在获取设备数量...
20
+ `,g.getDevCount()},S=()=>{try{g.destroy()}catch(F){console.error(F)}s.value=!1,v.value=[],p.value="",f.value=!1,m.value=[]};e.watch(()=>r.visible,F=>{F?M():S()});const K=()=>{try{g.bestSize()}catch(F){console.error(F)}},I=()=>{try{g.rotateLeft()}catch(F){console.error(F)}},R=()=>{try{g.rotateRight()}catch(F){console.error(F)}},j=()=>{try{g.focus()}catch(F){console.error(F)}},E=()=>{p.value+=`正在拍照...
21
+ `;try{g.photo()}catch(F){p.value+=`拍照调用失败:${(F==null?void 0:F.message)??F}
22
+ `}},x=()=>{v.value.length>0?n("confirm",v.value.map(F=>F.file)):n("confirm",[])},k=F=>{F<0||F>=v.value.length||(v.value.splice(F,1),p.value+=`已删除一张图片(剩余 ${v.value.length} 张)
23
+ `)},b=F=>{if(!F)return;const J=`gpy-preview-${Date.now()}.jpg`;m.value=[{name:J,blobUrl:F}],f.value=!0},w=()=>{f.value=!1},$=()=>{S(),n("cancel")};return(F,J)=>{const se=e.resolveComponent("el-input"),ge=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(wr.ssDialog,{title:"扫描录入",visible:r.visible,onBeforeDestroy:$,width:"1200px",style:{height:"80%"}},{default:e.withCtx(()=>[e.createElementVNode("div",Of,[e.createElementVNode("div",{ref_key:"cameraBox",ref:t,style:{flex:"1","min-width":"0",border:"1px solid var(--el-border-color)","border-radius":"4px",position:"relative",overflow:"hidden",display:"flex","align-items":"center","justify-content":"center",background:"var(--el-fill-color-lighter)"}},[s.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Lf,"初始化摄像头..."))],512),e.createElementVNode("div",Rf,[e.createElementVNode("div",$f,[J[0]||(J[0]=e.createElementVNode("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"拍照图片",-1)),e.createElementVNode("div",Vf,[v.value.length===0?(e.openBlock(),e.createElementBlock("div",Ff,"暂无图片")):(e.openBlock(),e.createElementBlock("div",Pf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(Me,V)=>(e.openBlock(),e.createElementBlock("div",{key:Me.uid,style:{position:"relative",border:"1px solid var(--el-border-color)","border-radius":"4px",overflow:"hidden",background:"#fafafa"}},[e.createElementVNode("img",{src:Me.url,onClick:fe=>b(Me.url),style:{width:"100%",height:"94px","object-fit":"contain",display:"block",background:"#fafafa",cursor:"zoom-in"},alt:"captured image",title:"点击放大"},null,8,jf),e.createElementVNode("div",{onClick:fe=>k(V),style:{position:"absolute",top:"4px",right:"4px",width:"18px",height:"18px","border-radius":"50%",background:"rgba(0,0,0,0.55)",color:"#fff",display:"flex","align-items":"center","justify-content":"center",cursor:"pointer","font-size":"12px"},title:"删除"},"×",8,Hf)]))),128))]))],512)]),e.createElementVNode("div",Uf,[J[1]||(J[1]=e.createElementVNode("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"操作记录",-1)),e.createVNode(se,{type:"textarea",value:p.value,readonly:"",rows:10,placeholder:"设备操作记录...",style:{flex:"1"}},null,8,["value"])])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",qf,[e.createVNode(ge,{onClick:K,disabled:!s.value,id:"themeBorderButton"},{default:e.withCtx(()=>J[2]||(J[2]=[e.createTextVNode("适屏")])),_:1,__:[2]},8,["disabled"]),e.createVNode(ge,{onClick:I,disabled:!s.value,id:"themeBorderButton"},{default:e.withCtx(()=>J[3]||(J[3]=[e.createTextVNode("左旋")])),_:1,__:[3]},8,["disabled"]),e.createVNode(ge,{onClick:R,disabled:!s.value,id:"themeBorderButton"},{default:e.withCtx(()=>J[4]||(J[4]=[e.createTextVNode("右旋")])),_:1,__:[4]},8,["disabled"]),e.createVNode(ge,{onClick:j,disabled:!s.value,id:"themeBorderButton"},{default:e.withCtx(()=>J[5]||(J[5]=[e.createTextVNode("对焦")])),_:1,__:[5]},8,["disabled"]),e.createVNode(ge,{onClick:E,disabled:!s.value,id:"themeButton"},{default:e.withCtx(()=>J[6]||(J[6]=[e.createTextVNode("拍照")])),_:1,__:[6]},8,["disabled"]),J[9]||(J[9]=e.createElementVNode("div",{style:{flex:"1"}},null,-1)),e.createVNode(ge,{onClick:x,disabled:v.value.length===0,id:"themeButton"},{default:e.withCtx(()=>J[7]||(J[7]=[e.createTextVNode("确认")])),_:1,__:[7]},8,["disabled"]),e.createVNode(ge,{onClick:$,id:"themeBorderButton"},{default:e.withCtx(()=>J[8]||(J[8]=[e.createTextVNode("取消")])),_:1,__:[8]})])]),_:1},8,["visible"]),f.value?(e.openBlock(),e.createBlock(ll.ssFilePreview,{key:0,fileDataList:m.value,onDestroy:w},null,8,["fileDataList"])):e.createCommentVNode("",!0)],64)}}}),Kf=Xl._export_sfc(Wf,[["__scopeId","data-v-24a2050a"]]),ds=A.useMenuState(A.pinia),Gf=async a=>{var s,v,p,f,m,g;let l=a==null?void 0:a.导入文件,r=a==null?void 0:a.函数参数,n=(s=l==null?void 0:l[0])==null?void 0:s.url,t="";if(!(n!=null&&n.includes("http"))||!(n!=null&&n.includes("https"))){ds.setContentLoading(!0);const c=await A.platformDownloadFile({url:n});let D=c==null?void 0:c.data;const M=new FormData;M.append("file",D,((v=l==null?void 0:l[0])==null?void 0:v.name)+"."+((p=n==null?void 0:n.split("."))==null?void 0:p[1])),M.append("query",r);let S=await Xs(M);S=(g=(m=(f=S==null?void 0:S.data)==null?void 0:f.data)==null?void 0:m.response)==null?void 0:g.replace("generateResult",a==null?void 0:a.函数名称),t=S,ds.setContentLoading(!1)}return t},Ct=A.defineStore("formComp",{state:()=>({objUrl:[],blobUrls:[]}),actions:{setObjUrl(a){this.objUrl=a},setBlobUrls(a){this.blobUrls=a}}}),Yf=A.useModelComp(A.pinia),{extraContents:iv}=A.storeToRefs(Yf),Jf=A.useLoginState(A.pinia),{extraUrl:ni}=A.storeToRefs(Jf);let pc=ni.value===""||!ni.value?"http://139.196.154.85:20015":ni.value;e.watch(()=>ni.value,()=>{pc=ni.value===""||!ni.value?"http://139.196.154.85:20015":ni.value},{deep:!0,immediate:!0});const Do={检校类型:["检校类型","证书类别"],证书编号:["证书编号"],设备名称:["设备名称","器具名称","样品名称","仪器名称","被校设备"],型号规格:["型号规格","型号/规格","型号"],出厂编号:["出厂编号","器具/管理编号","器具编号","管理编号","仪器编号"],制造厂:["制造厂","制造单位","制造厂商","制造商"],检校结果:["检校结果","检定结论","校准结果","校准/检定结果","检定结果"],依据文件:["依据文件","检定依据","检定所依据的技术文件","所依据/参照技术文件(代号/名称)","检定所依据的技术文件(编号/名称)","检定方法说明"],检校日期:["检校日期","校准日期","校验日期","检定日期","发证日期","发布日期","接收日期","签证日期"],有效日期:["有效日期","有效期","有效期至"]},ps={columnName:"OCR图片",acceptTypes:"image/*",maxSize:10,maxFiles:20,apiUrl:pc+"/api/public/paddleOCR"};class Xf{constructor(l){Wr(this,"config");this.config={...ps,...l}}updateConfig(l){this.config={...this.config,...l}}getConfig(){return{...this.config}}validateFileSize(l){const r=this.config.maxSize*1024*1024;return l.size<=r}validateFileType(l){return l.type.startsWith("image/")||l.type==="application/pdf"}getAuthorizationToken(){const l=qa.Local.get(qa.accessTokenKey);return l?`Bearer ${l}`:""}buildOCRRequest(l,r){return{title:r,form:{OCR图片文件:l}}}async recognize(l,r){const n=this.getAuthorizationToken(),t=this.buildOCRRequest(l,r),s=this.config.apiUrl||ps.apiUrl||"";return(await qa.axios.post(s,t,{headers:{"Content-Type":"application/json",Authorization:n}})).data}getFieldAliases(l){return Do[l]?Do[l]:[l]}extractTableHeaders(l){const r=[],n=new Set,t=v=>{const p=v==null?void 0:v.label;return!(!p||p==="操作"||p===this.config.columnName||(v==null?void 0:v.type)==="operate"||(v==null?void 0:v.prop)==="operate")},s=v=>{(v||[]).forEach(p=>{if(!p)return;const f=(p==null?void 0:p.children)||(p==null?void 0:p.child)||(p==null?void 0:p.columns);if(Array.isArray(f)&&f.length>0){s(f);return}if(t(p)){const m=p.label;if(!n.has(m)){n.add(m);const g=this.getFieldAliases(m);r.push(g)}}})};return s(l||[]),r}}function fc(a){return new Xf(a)}fc();const yt=async(a,l)=>{var v,p,f,m,g,c,D,M,S,K,I,R,j,E,x,k,b;let r=(p=(v=A.cloneDeep(a))==null?void 0:v.optionUrl)==null?void 0:p.menuSelect,n=[];r==null||r.forEach(w=>{});let t="",s=await he.menuToParent(r);if(s==null||s.forEach(w=>{var $,F,J,se;(w==null?void 0:w.name)===(((se=(J=(F=($=A.cloneDeep(a))==null?void 0:$.optionUrl)==null?void 0:F.groupSelect)==null?void 0:J[0])==null?void 0:se.replaceAll("'",""))??"")&&(t=w==null?void 0:w.id)}),l){t=l;const w=await Ar.getInsofDataApi({id:t}),$=(c=(g=(m=(f=w==null?void 0:w.data)==null?void 0:f.result)==null?void 0:m[0])==null?void 0:g.key)==null?void 0:c.pageKey;s=await he.getItemData($,sessionStorage.getItem("systemKey"),"")}if(t!==""){let w;l?w=(D=s==null?void 0:s.find(J=>(J==null?void 0:J.id)===l))==null?void 0:D.compData:w=(M=s==null?void 0:s.find(J=>{var se,ge,Me,V;return(J==null?void 0:J.name)===(((ge=(se=a==null?void 0:a.groupSelect)==null?void 0:se.split(":"))==null?void 0:ge[0])||((V=(Me=a==null?void 0:a.optionUrl)==null?void 0:Me.groupSelect)==null?void 0:V[0]))}))==null?void 0:M.compData;let $=(K=(S=w==null?void 0:w.find(J=>(J==null?void 0:J.key)==="header"))==null?void 0:S.contents)==null?void 0:K.map(J=>J==null?void 0:J.label);(R=(I=w==null?void 0:w.find(J=>(J==null?void 0:J.key)==="header"))==null?void 0:I.contents)!=null&&R.every(J=>Array.isArray(J))&&($=(x=he.getColumnChild((E=(j=w==null?void 0:w.find(J=>(J==null?void 0:J.key)==="header"))==null?void 0:j.contents)==null?void 0:E[0]))==null?void 0:x.map(J=>J==null?void 0:J.prop));let F=(b=(k=w==null?void 0:w.find(J=>(J==null?void 0:J.key)==="tableContents"))==null?void 0:k.contents)==null?void 0:b.map(J=>{if(Array.isArray(J))J=J==null?void 0:J.filter(se=>!(se!=null&&se.id));else{let se={};for(let ge in J)ge!=="id"&&(se[ge]=J==null?void 0:J[ge]);J=se}return J});F==null||F.forEach(J=>{Array.isArray(J)?n.push(he.getValueToObjectValue(J,$)):n.push(J)})}return n},Zf=A.useMenuState(A.pinia),{activeMenuPath:ov}=A.storeToRefs(Zf),Qf=A.useUnit(A.pinia),{chooseTitle:tv}=A.storeToRefs(Qf),e0="col-operate",hc=a=>`${e0}-${a}`,a0=(a,l)=>{const r=new Map;a.forEach(t=>{const{prop:s}=t;r.set(s,t)});const n=t=>{Array.isArray(t)&&t.forEach(s=>{const{prop:v}=s||{},p=r.get(v);l0(p,s),Array.isArray(s==null?void 0:s.children)&&s.children.length>0&&n(s.children)})};return n(l),l},l0=(a,l)=>(a&&(l.sortable=a==null?void 0:a.sortable,l.filterable=a==null?void 0:a.filterable,l.showSummary=a==null?void 0:a.showSummary,l.operable=a==null?void 0:a.operable,l.fixed=a==null?void 0:a.fixed),l),r0=(a,l)=>{const{sortable:r=!1,filterable:n=!1,showSummary:t=!1,operable:s=!1,fixed:v=!1}=l||{};return{prop:a,sortable:r,filterable:n,showSummary:t,operable:s,fixed:v}},n0=async a=>{var s,v;if(!a)return;const l=hc(a),r=await Ar.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:l}}),n=(s=r==null?void 0:r.data)==null?void 0:s.code,t=(v=r==null?void 0:r.data)==null?void 0:v.result;if(n==200)return t==null?void 0:t[0]},i0=async a=>{if(a)return[]},o0=async(a,l)=>{if(!a||!l)return;const r=hc(a);return await Ar.createInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:r},value:{columns:l}})},t0=async(a,l)=>!a||!l?void 0:await Ar.updateInsofDataApi({id:a,value:{columns:l}}),fs=async(a,l)=>{const r=sessionStorage.getItem("systemKey");if(!a||!l||!r)return;const n=await n0(a);return n?await t0(n==null?void 0:n.id,l):await o0(a,l)};var xo={exports:{}},s0=xo.exports,hs;function c0(){return hs||(hs=1,function(a,l){(function(r,n){n()})(s0,function(){function r(m,g){return typeof g>"u"?g={autoBom:!1}:typeof g!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),g={autoBom:!g}),g.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(m.type)?new Blob(["\uFEFF",m],{type:m.type}):m}function n(m,g,c){var D=new XMLHttpRequest;D.open("GET",m),D.responseType="blob",D.onload=function(){f(D.response,g,c)},D.onerror=function(){console.error("could not download file")},D.send()}function t(m){var g=new XMLHttpRequest;g.open("HEAD",m,!1);try{g.send()}catch{}return 200<=g.status&&299>=g.status}function s(m){try{m.dispatchEvent(new MouseEvent("click"))}catch{var g=document.createEvent("MouseEvents");g.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),m.dispatchEvent(g)}}var v=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof A.commonjsGlobal=="object"&&A.commonjsGlobal.global===A.commonjsGlobal?A.commonjsGlobal:void 0,p=v.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),f=v.saveAs||(typeof window!="object"||window!==v?function(){}:"download"in HTMLAnchorElement.prototype&&!p?function(m,g,c){var D=v.URL||v.webkitURL,M=document.createElement("a");g=g||m.name||"download",M.download=g,M.rel="noopener",typeof m=="string"?(M.href=m,M.origin===location.origin?s(M):t(M.href)?n(m,g,c):s(M,M.target="_blank")):(M.href=D.createObjectURL(m),setTimeout(function(){D.revokeObjectURL(M.href)},4e4),setTimeout(function(){s(M)},0))}:"msSaveOrOpenBlob"in navigator?function(m,g,c){if(g=g||m.name||"download",typeof m!="string")navigator.msSaveOrOpenBlob(r(m,c),g);else if(t(m))n(m,g,c);else{var D=document.createElement("a");D.href=m,D.target="_blank",setTimeout(function(){s(D)})}}:function(m,g,c,D){if(D=D||open("","_blank"),D&&(D.document.title=D.document.body.innerText="downloading..."),typeof m=="string")return n(m,g,c);var M=m.type==="application/octet-stream",S=/constructor/i.test(v.HTMLElement)||v.safari,K=/CriOS\/[\d]+/.test(navigator.userAgent);if((K||M&&S||p)&&typeof FileReader<"u"){var I=new FileReader;I.onloadend=function(){var E=I.result;E=K?E:E.replace(/^data:[^;]*;/,"data:attachment/file;"),D?D.location.href=E:location=E,D=null},I.readAsDataURL(m)}else{var R=v.URL||v.webkitURL,j=R.createObjectURL(m);D?D.location=j:location.href=j,D=null,setTimeout(function(){R.revokeObjectURL(j)},4e4)}});v.saveAs=f.saveAs=f,a.exports=f})}(xo)),xo.exports}c0();const Un=A.defineStore("tabComp",{state:()=>({itemData:[],originalData:[],extraContents:[],nodeDev:"",isEdit:"view",isRefreshCurStructure:!1,isSubmitCurStructure:!1,curStructureCompIds:[],itemGridData:[],itemExtendData:void 0,payloadTypes:"",lockingPage:"",systemPath:void 0,pageMapState:void 0,cacheUpdatingData:void 0,freshContent:!1,tableLoading:!1,routeToChildPath:"",tableViewContents:[],activeItemIndex:0,fixMenuStatus:!1,refreshTable:!1,selectTab:""}),actions:{setItemData(a){this.itemData=a},setCurStructureCompIds(a){this.curStructureCompIds=a},setRefreshCurStructure(a){this.isRefreshCurStructure=a},setOriginalData(a){this.originalData=a},setExtraContents(a){this.extraContents=a},setNodeDev(a){this.nodeDev=a},setIsEdit(a){this.isEdit=a},setSelectTab(a){this.selectTab=a}}}),u0=A.useLoginState(A.pinia),{loginUserInfo:st}=A.storeToRefs(u0),d0=async a=>{var n,t,s;let l=await A.getAllTables({platId:parseInt((n=st==null?void 0:st.value)==null?void 0:n.plat_id),tableNames:[a]});return l=(s=(t=l==null?void 0:l.data)==null?void 0:t.result)==null?void 0:s[0],await tc(l,!1),[{comp:"Table",isShow:!0,name:"日志管理",compData:[{key:"extraButton",contents:[]},{key:"rowButton",contents:[]},{key:"header",contents:[{label:"请求类型",prop:"request_method",formType:"Input",align:"center"},{label:"请求路径",prop:"request_url",formType:"Input",align:"center"},{label:"请求参数",prop:"request_param",formType:"Upload",align:"center"},{label:"返回结果",prop:"request_result",formType:"Upload",align:"center"},{label:"返回信息",prop:"request_message",formType:"Input",align:"center"},{label:"请求表格",prop:"request_table",formType:"Input",align:"center"},{label:"请求种类",prop:"request_type",formType:"Input",align:"center"},{label:"请求创建时间",prop:"create_time",formType:"Date",align:"center"},{label:"请求创建人",prop:"create_user_id",formType:"Input",align:"center"}]},{key:"tableContents",contents:l}]}]},p0=A.useLoginState(),{loginUserInfo:hl}=A.storeToRefs(p0);let mo="$R";const Nr=A.useModelComp(A.pinia),vc=e.ref(!1),{itemData:f0,itemGridData:li,curStructureCompIds:vs,isSubmitCurStructure:h0,routeToChildPath:v0,pageMapState:gt,itemExtendData:yo,refreshTable:ms}=A.storeToRefs(Nr),Oo=Un(A.pinia),Or=A.useMenuState(A.pinia),or=e.shallowRef([]),{asideMenus:m0,activeTopMenuPath:y0,activeMenuPath:ml,platform:sv,buttonTriggerType:g0,currentMenuPath:Zr}=A.storeToRefs(Or),dn=A.useUnit(A.pinia),{selectTitle:Pn,chooseTitle:Bo}=A.storeToRefs(dn);e.ref();const Di=e.ref(!0),Hn=e.ref(0),bt=e.ref([]);e.ref(!1);const Dt=e.ref(!1),Wi=e.ref(),mc=e.ref(),yc=e.ref(),b0=()=>{Nr.setItemGridData([]),Nr.setIsEdit("edit"),Nr.setSubmitCurStructure(ml.value!=="/平台管理/菜单管理")},k0=()=>{Nr.setIsEdit("view"),Nr.setRefreshCurStructure(!0)},x0=async a=>{var t;let l=Pn.value,r=l==null?void 0:l.findIndex(s=>(s==null?void 0:s.value)===(a==null?void 0:a.value)),n=l==null?void 0:l.filter((s,v)=>v<=r);dn.setSelectTitle(ll.safeClone(n)),n=(t=n==null?void 0:n.map(s=>s==null?void 0:s.value))==null?void 0:t.join("/"),Or.setActiveMenuPath(null),Or.setActiveMenuPath(n)},ct=async(a,l,r,n="contentConfig")=>{var t;try{if(!Array.isArray(a))return;let s,v;l==="create"?(s={dataList:a==null?void 0:a.map(f=>{var m;return{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:r!=null&&r.startsWith("/")?r==null?void 0:r.substring(1):r,type:"structure",structureBelong:n,parentTable:"",version:1},value:{pageData:{...f,compData:(m=f==null?void 0:f.compData)==null?void 0:m.filter(g=>(g==null?void 0:g.key)!=="tableContents")}}}})},v=Ar.batchAddInsofDataApi):l==="update"?(s={dataList:a==null?void 0:a.map(f=>{var m;return{id:f==null?void 0:f.id,value:{pageData:{...f,compData:(m=f==null?void 0:f.compData)==null?void 0:m.filter(g=>(g==null?void 0:g.key)!=="tableContents")}}}})},v=Ar.batchUpdateInsofDataApi):l==="delete"&&(s={ids:a},v=Ar.batchDeleteInsofDataApi);const p=await v(s);if(((t=p==null?void 0:p.data)==null?void 0:t.code)===200)return p.data.result;throw qa.ElMessage.error("保存响应失败"),new Error("保存响应失败")}catch{qa.ElMessage.error("保存响应失败")}},ys=async(a,l,r,n)=>{var t,s,v,p,f,m,g,c,D,M,S;try{const K=(s=(t=a==null?void 0:a.results)==null?void 0:t.filter(k=>!(k!=null&&k.id)||typeof(k==null?void 0:k.id)=="string"))==null?void 0:s.map(k=>({key:{pageKey:a==null?void 0:a.pageKey,systemKey:sessionStorage.getItem("systemKey"),type:l,relatedInfo:r},value:{tableData:k}})),I=(p=(v=a==null?void 0:a.results)==null?void 0:v.filter(k=>(k==null?void 0:k.id)&&typeof(k==null?void 0:k.id)=="number"))==null?void 0:p.map(k=>({id:k==null?void 0:k.id,value:{tableData:k}})),R=JSON.parse(JSON.stringify(a)),j=(f=R==null?void 0:R.results)==null?void 0:f.map(k=>k.id);let E;r?E=(c=(g=(m=gt.value)==null?void 0:m[ml.value])==null?void 0:g.filter(k=>{var b,w,$;return((b=k==null?void 0:k.key)==null?void 0:b.type)===l&&(($=(w=k==null?void 0:k.key)==null?void 0:w.relatedInfo)==null?void 0:$.target)===n}))==null?void 0:c.map(k=>k==null?void 0:k.id):E=(S=(M=(D=gt.value)==null?void 0:D[ml.value])==null?void 0:M.filter(k=>{var b;return((b=k==null?void 0:k.key)==null?void 0:b.type)===l}))==null?void 0:S.map(k=>k==null?void 0:k.id);const x=E==null?void 0:E.filter(k=>!(j!=null&&j.includes(k))&&typeof k=="number");(K==null?void 0:K.length)>0&&await Ar.batchAddInsofDataApi({dataList:K}),(I==null?void 0:I.length)>0&&await Ar.batchUpdateInsofDataApi({dataList:I}),(x==null?void 0:x.length)>0&&await Ar.batchDeleteInsofDataApi({ids:x})}catch(K){throw new Error(K)}},w0=async a=>{var m,g,c,D,M,S,K,I,R,j;Or.setContentLoading(!0);const l=JSON.parse(JSON.stringify(f0.value));if(!h0.value)return Or.setCacheStructures({key:g0.value,data:l}),qa.ElMessage.success("已暂存");const r=l==null?void 0:l.map(E=>E.id),n=r.filter(E=>{var x;return!((x=vs.value)!=null&&x.includes(E))}),t=(m=vs.value)==null?void 0:m.filter(E=>!r.includes(E)),s=[...n,...t].filter(E=>typeof E!==null&&typeof E<"u"),v=l==null?void 0:l.filter(E=>!E.id),p=l==null?void 0:l.filter(E=>E.id);let f=[];if(s&&(s==null?void 0:s.length)>0&&f.push(ct(s,"delete",a)),v&&(v==null?void 0:v.length)>0&&f.push(ct(v,"create",a)),p&&(p==null?void 0:p.length)>0&&f.push(ct(p,"update",a)),li.value&&((g=li.value)!=null&&g.isDelete&&((D=(c=li.value)==null?void 0:c.results)==null?void 0:D.length)>0&&((S=(M=li.value)==null?void 0:M.results)!=null&&S.every(E=>typeof E=="number"))?await Ar.batchDeleteInsofDataApi({ids:(K=li.value)==null?void 0:K.results}):(console.log("itemGridData.value",li.value),f.push(await ys(li.value,"gridLayout")))),yo.value)for(const E in yo.value)f.push(await ys((I=yo.value)==null?void 0:I[E],"extend",{target:E,compId:(j=(R=yo.value)==null?void 0:R[E])==null?void 0:j.compId},E));await Promise.all(f).then(()=>{qa.ElMessage.success("保存成功"),Nr.setRefreshCurStructure(!0)}).catch(E=>{qa.ElMessage.success(E)}),Or.setContentLoading(!1)},Ki=a=>Bi(a),_0=e.computed(()=>{var a;return(a=or.value)==null?void 0:a.filter(l=>(l==null?void 0:l.affix)&&(l==null?void 0:l.affix)!=="default")}),gc=e.computed(()=>{var a;return(a=or.value)==null?void 0:a.filter(l=>!(l!=null&&l.affix&&(l==null?void 0:l.affix)!=="default"))}),bc=e.ref(0),kc=e.ref(null),S0="ocr_committed_temp_ids_v1",E0=(a,l)=>`${S0}:${String(a??"")}:${String(l??"")}`,C0=(a,l,r)=>{try{const n=E0(a,l),t=sessionStorage.getItem(n),s=t?JSON.parse(t):[],v=Array.isArray(s)?s:[],p=Array.from(new Set([...v,...r||[]].map(f=>String(f)))).slice(-200);sessionStorage.setItem(n,JSON.stringify(p))}catch{}},No=async(a,l="data",r)=>{var t,s,v,p,f,m,g,c,D,M,S,K,I,R,j,E,x,k,b,w,$,F,J,se,ge,Me,V,fe,ae,de,Ce,Fe,ye,T,ue,U,Se,Le,Pe,la,Da,le,ta,te,ca,Ee,oe,Te,Ue,oa,Ja,L,H,Q,me,ve,da,ea,ce,pa,Ne,We,Ta,Ca,Qe,Va,re,X,Z,q,Be,Je,ra,ba,ga,Aa,_a,Oe,Za,Ha,xl,Yl,kl,Fl,ja,zl,Rl;let n=((v=(s=(t=Pn.value)==null?void 0:t.filter(Ma=>(Ma==null?void 0:Ma.condition)==="child"))==null?void 0:s[0])==null?void 0:v.value)??"";if((a==null?void 0:a.buttonName)==="新增"){let Ma=(p=a==null?void 0:a.fixContent)==null?void 0:p.map(we=>{let ia={};for(let Ie in we)Array.isArray(we==null?void 0:we[Ie])?ia[Ie]=JSON.stringify(we==null?void 0:we[Ie]):ia[Ie]=we==null?void 0:we[Ie];return ia}),rl=await A.quoteApi({platId:parseInt((f=hl==null?void 0:hl.value)==null?void 0:f.plat_id),type:"fatherSyncs",related:[{menus:n!==""?ml.value+"/"+n:ml.value,groups:a==null?void 0:a.name}]});rl=(m=rl==null?void 0:rl.data)==null?void 0:m.result,rl=rl==null?void 0:rl.filter(we=>{var ia,Ie;return!((we==null?void 0:we.fatherPath)!==""&&((Ie=(ia=we==null?void 0:we.quote)==null?void 0:ia[0])==null?void 0:Ie.menus)===(ml==null?void 0:ml.value))});let sl=rl==null?void 0:rl.map(we=>{var ha,va;let ia={},Ie=Ma==null?void 0:Ma[0],pe;return Array.isArray((ha=we==null?void 0:we.struct)==null?void 0:ha[0])?pe=he.getColumnChild((va=we==null?void 0:we.struct)==null?void 0:va[0]):pe=we==null?void 0:we.struct,pe=pe==null?void 0:pe.filter(Xe=>(Xe==null?void 0:Xe.prop)!=="relatedId"),pe==null||pe.forEach(Xe=>{var Ze,Ke;ia[Xe.prop]=((Ze=Xe==null?void 0:Xe.words)!=null&&Ze[0]?(Ie==null?void 0:Ie[(Ke=Xe==null?void 0:Xe.words)==null?void 0:Ke[0]])??(Ie==null?void 0:Ie[Xe==null?void 0:Xe.prop]):Ie==null?void 0:Ie[Xe==null?void 0:Xe.prop])??""}),ia.id="1",ia.relatedId=`[${ia.id}]`,delete ia.sort,{tableName:"content_"+(we==null?void 0:we.id),tableContents:[ia]}}),ma=[{tableName:(g=a==null?void 0:a.relatedContents)==null?void 0:g.find(we=>we==null?void 0:we.includes("content")),tableContents:Ma}];ma=[...ma,...sl];let ka=await A.quoteApi({platId:parseInt((c=hl==null?void 0:hl.value)==null?void 0:c.plat_id),type:"sonSyncs",related:[{menus:n!==""?ml.value+"/"+n:ml.value,groups:a==null?void 0:a.name}]});ka=(M=(D=ka==null?void 0:ka.data)==null?void 0:D.result)==null?void 0:M.filter(we=>!(ma!=null&&ma.find(ia=>(ia==null?void 0:ia.tableName)==="content_"+(we==null?void 0:we.id)))),ka=ka==null?void 0:ka.filter(we=>{var ia,Ie;return!((we==null?void 0:we.fatherPath)!==""&&((Ie=(ia=we==null?void 0:we.quote)==null?void 0:ia[0])==null?void 0:Ie.menus)===(ml==null?void 0:ml.value))});let La=ka==null?void 0:ka.map(we=>{var ha,va,Xe,Ze,Ke,pl,Ve;let ia={},Ie=Ma==null?void 0:Ma[0],pe;return Array.isArray((ha=we==null?void 0:we.struct)==null?void 0:ha[0])?pe=he.getColumnChild((va=we==null?void 0:we.struct)==null?void 0:va[0]):pe=we==null?void 0:we.struct,pe=pe==null?void 0:pe.filter(Fa=>(Fa==null?void 0:Fa.prop)!=="relatedId"),((Ze=(Xe=pe==null?void 0:pe[0])==null?void 0:Xe.words)!=null&&Ze[0]?Ie!=null&&Ie[(pl=(Ke=pe==null?void 0:pe[0])==null?void 0:Ke.words)==null?void 0:pl[0]]:Ie!=null&&Ie[(Ve=pe==null?void 0:pe[0])==null?void 0:Ve.prop])?(pe==null||pe.forEach(Fa=>{var Sa,il;ia[Fa.prop]=((Sa=Fa==null?void 0:Fa.words)!=null&&Sa[0]?(Ie==null?void 0:Ie[(il=Fa==null?void 0:Fa.words)==null?void 0:il[0]])??(Ie==null?void 0:Ie[Fa==null?void 0:Fa.prop]):Ie==null?void 0:Ie[Fa==null?void 0:Fa.prop])??""}),ia.id="1",ia.relatedId=`[${ia.id}]`,delete ia.sort):ia=void 0,{tableName:"content_"+(we==null?void 0:we.id),tableContents:[ia]}});La=La==null?void 0:La.filter(we=>{var ia;return!((ia=we==null?void 0:we.tableContents)!=null&&ia.every(Ie=>Ie===void 0))}),ma=[...ma,...La],await A.pageBatchAddApi({platId:parseInt((S=hl==null?void 0:hl.value)==null?void 0:S.plat_id),changeContents:ma});let $a=[];ma==null||ma.forEach(we=>{var ia;(ia=we==null?void 0:we.tableContents)==null||ia.forEach(Ie=>{$a.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(Ie),request_result:"{}",is_delete:!1,request_table:we==null?void 0:we.tableName,request_type:"add"})})}),await A.pageBatchAddApi({platId:parseInt((K=hl==null?void 0:hl.value)==null?void 0:K.plat_id),changeContents:[{tableName:"log",tableContents:$a}]})}if((a==null?void 0:a.buttonName)==="OCR批量新增"){const Ma=((a==null?void 0:a.ocrRows)||[]).map(ka=>ka==null?void 0:ka.id).filter(ka=>ka!=null),rl=((a==null?void 0:a.ocrRows)||[]).map(ka=>{const La={...ka};return delete La._isOCRRow,delete La._ocrTableId,Object.keys(La).forEach($a=>{/(^|\.)证书附件$/.test($a)&&Array.isArray(La[$a])&&(La[$a]=JSON.stringify(La[$a].map(we=>({url:(we==null?void 0:we.url)||"",name:(we==null?void 0:we.name)||(we==null?void 0:we.fileName)||"",fileName:(we==null?void 0:we.fileName)||(we==null?void 0:we.name)||""})).filter(we=>we.url||we.name)))}),La});let sl=[{tableName:(I=a==null?void 0:a.relatedContents)==null?void 0:I.find(ka=>ka==null?void 0:ka.includes("content")),tableContents:rl}];await A.pageBatchAddApi({platId:parseInt((R=hl==null?void 0:hl.value)==null?void 0:R.plat_id),changeContents:sl});let ma=[];sl==null||sl.forEach(ka=>{var La;(La=ka==null?void 0:ka.tableContents)==null||La.forEach($a=>{ma.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify($a),request_result:"{}",is_delete:!1,request_table:ka==null?void 0:ka.tableName,request_type:"ocrBatchAdd"})})}),await A.pageBatchAddApi({platId:parseInt((j=hl==null?void 0:hl.value)==null?void 0:j.plat_id),changeContents:[{tableName:"log",tableContents:ma}]}),C0(a==null?void 0:a.parentTableId,a==null?void 0:a.index,Ma)}if((a==null?void 0:a.buttonName)==="编辑"){const rl=((a==null?void 0:a.fixContent)||(a==null?void 0:a.singleContent)||[]||[]).map(pe=>{const ha={...pe};return delete ha._isOCRRow,delete ha._ocrTableId,delete ha._isTemp,delete ha.tableEditType,delete ha.index,ha});let sl=rl==null?void 0:rl.map(pe=>{let ha={};for(let va in pe)Array.isArray(pe==null?void 0:pe[va])?ha[va]=JSON.stringify(pe==null?void 0:pe[va]):ha[va]=pe==null?void 0:pe[va];return ha}),ma=await A.quoteApi({platId:parseInt((E=hl==null?void 0:hl.value)==null?void 0:E.plat_id),type:"fatherSyncs",related:[{menus:n!==""?ml.value+"/"+n:ml.value,groups:a==null?void 0:a.name}]});ma=(x=ma==null?void 0:ma.data)==null?void 0:x.result,ma=ma==null?void 0:ma.filter(pe=>{var ha,va;return!((pe==null?void 0:pe.fatherPath)!==""&&((va=(ha=pe==null?void 0:pe.quote)==null?void 0:ha[0])==null?void 0:va.menus)===(ml==null?void 0:ml.value))});let ka=(k=sl==null?void 0:sl[0])==null?void 0:k.id,La=[{tableName:(b=a==null?void 0:a.relatedContents)==null?void 0:b.find(pe=>pe==null?void 0:pe.includes("content")),tableContents:sl}],$a=(w=ma==null?void 0:ma.map(pe=>{var va,Xe,Ze,Ke,pl;let ha=(va=pe==null?void 0:pe.contents)==null?void 0:va.filter(Ve=>{var Fa,Sa;return JSON.stringify(Ve==null?void 0:Ve.relatedId)!=="{}"&&(Ve==null?void 0:Ve.relatedId)!==""&&(Ve!=null&&Ve.relatedId)?(Fa=Ve==null?void 0:Ve.relatedId)==null?void 0:Fa.includes(parseInt(ka)):(Ve==null?void 0:Ve.sort)===((Sa=sl==null?void 0:sl[0])==null?void 0:Sa.sort)});if((ha==null?void 0:ha.length)>0){let Ve=sl==null?void 0:sl[0];Ve={...Ve,id:(Xe=ha==null?void 0:ha[0])==null?void 0:Xe.id};let Fa={},Sa=Ve,il;return Array.isArray((Ze=pe==null?void 0:pe.struct)==null?void 0:Ze[0])?il=he.getColumnChild((Ke=pe==null?void 0:pe.struct)==null?void 0:Ke[0]):il=pe==null?void 0:pe.struct,il=il==null?void 0:il.filter(Ia=>(Ia==null?void 0:Ia.prop)!=="relatedId"),il==null||il.forEach(Ia=>{var ze,Sl;Fa[Ia.prop]=((ze=Ia==null?void 0:Ia.words)!=null&&ze[0]?(Sa==null?void 0:Sa[(Sl=Ia==null?void 0:Ia.words)==null?void 0:Sl[0]])??(Sa==null?void 0:Sa[Ia==null?void 0:Ia.prop]):Sa==null?void 0:Sa[Ia==null?void 0:Ia.prop])??""}),Fa.id=(pl=ha==null?void 0:ha[0])==null?void 0:pl.id,delete Fa.sort,delete Fa.relatedId,{tableName:"content_"+(pe==null?void 0:pe.id),tableContents:[Fa]}}else return}))==null?void 0:w.filter(pe=>pe);La=[...La,...$a];let we=await A.quoteApi({platId:parseInt(($=hl==null?void 0:hl.value)==null?void 0:$.plat_id),type:"sonSyncs",related:[{menus:n!==""?ml.value+"/"+n:ml.value,groups:a==null?void 0:a.name}]});we=(J=(F=we==null?void 0:we.data)==null?void 0:F.result)==null?void 0:J.filter(pe=>!(La!=null&&La.find(ha=>(ha==null?void 0:ha.tableName)==="content_"+(pe==null?void 0:pe.id)))),we=we==null?void 0:we.filter(pe=>{var ha,va;return!((pe==null?void 0:pe.fatherPath)!==""&&((va=(ha=pe==null?void 0:pe.quote)==null?void 0:ha[0])==null?void 0:va.menus)===(ml==null?void 0:ml.value))});let ia=(se=we==null?void 0:we.map(pe=>{var va,Xe,Ze,Ke,pl;let ha=(va=pe==null?void 0:pe.contents)==null?void 0:va.filter(Ve=>{var Fa,Sa,il;return JSON.stringify(Ve==null?void 0:Ve.relatedId)!=="{}"&&(Ve==null?void 0:Ve.relatedId)!==""&&(Ve!=null&&Ve.relatedId)?(Fa=Ve==null?void 0:Ve.relatedId)==null?void 0:Fa.includes(parseInt(ka)):(Ve==null?void 0:Ve.sort)===((Sa=sl==null?void 0:sl[0])==null?void 0:Sa.sort)||(Ve==null?void 0:Ve.sort)===(parseInt(((il=sl==null?void 0:sl[0])==null?void 0:il.sort)??"0")+1).toString()});if((ha==null?void 0:ha.length)>0){let Ve=sl==null?void 0:sl[0];Ve={...Ve,id:(Xe=ha==null?void 0:ha[0])==null?void 0:Xe.id};let Fa={},Sa=Ve,il;return Array.isArray((Ze=pe==null?void 0:pe.struct)==null?void 0:Ze[0])?il=he.getColumnChild((Ke=pe==null?void 0:pe.struct)==null?void 0:Ke[0]):il=pe==null?void 0:pe.struct,il=il==null?void 0:il.filter(Ia=>(Ia==null?void 0:Ia.prop)!=="relatedId"),il==null||il.forEach(Ia=>{var ze,Sl,Il,Ul;((ze=Ia==null?void 0:Ia.words)!=null&&ze[0]?(Sa==null?void 0:Sa[(Sl=Ia==null?void 0:Ia.words)==null?void 0:Sl[0]])??(Sa==null?void 0:Sa[Ia==null?void 0:Ia.prop]):Sa!=null&&Sa[Ia==null?void 0:Ia.prop])&&(Fa[Ia.prop]=((Il=Ia==null?void 0:Ia.words)!=null&&Il[0]?(Sa==null?void 0:Sa[(Ul=Ia==null?void 0:Ia.words)==null?void 0:Ul[0]])??(Sa==null?void 0:Sa[Ia==null?void 0:Ia.prop]):Sa==null?void 0:Sa[Ia==null?void 0:Ia.prop])??"")}),Fa.id=(pl=ha==null?void 0:ha[0])==null?void 0:pl.id,delete Fa.sort,delete Fa.relatedId,{tableName:"content_"+(pe==null?void 0:pe.id),tableContents:[Fa]}}else return}))==null?void 0:se.filter(pe=>pe);La=[...La,...ia],await A.pageBatchUpdateApi({platId:parseInt((ge=hl==null?void 0:hl.value)==null?void 0:ge.plat_id),changeContents:La});let Ie=[];La==null||La.forEach(pe=>{var ha;(ha=pe==null?void 0:pe.tableContents)==null||ha.forEach(va=>{Ie.push({id:"1",request_method:"Post",request_url:"/platform/page/update",request_param:JSON.stringify(va),request_result:"{}",is_delete:!1,request_table:pe==null?void 0:pe.tableName,request_type:"update"})})}),await A.pageBatchAddApi({platId:parseInt((Me=hl==null?void 0:hl.value)==null?void 0:Me.plat_id),changeContents:[{tableName:"log",tableContents:Ie}]})}if((a==null?void 0:a.buttonName)==="删除"){let Ma=[{tableName:(V=a==null?void 0:a.relatedContents)==null?void 0:V.find(we=>we==null?void 0:we.includes("content")),tableContents:a==null?void 0:a.fixContent}],rl=await A.quoteApi({platId:parseInt((fe=hl==null?void 0:hl.value)==null?void 0:fe.plat_id),type:"fatherSyncs",related:[{menus:n!==""?ml.value+"/"+n:ml.value,groups:a==null?void 0:a.name}]});rl=(ae=rl==null?void 0:rl.data)==null?void 0:ae.result,rl=rl==null?void 0:rl.filter(we=>{var ia,Ie;return!((we==null?void 0:we.fatherPath)!==""&&((Ie=(ia=we==null?void 0:we.quote)==null?void 0:ia[0])==null?void 0:Ie.menus)===(ml==null?void 0:ml.value))});let sl=(Ce=(de=a==null?void 0:a.fixContent)==null?void 0:de[0])==null?void 0:Ce.id,ma=(Fe=rl==null?void 0:rl.map(we=>{var Ie,pe,ha,va,Xe,Ze;let ia=(Ie=we==null?void 0:we.contents)==null?void 0:Ie.filter(Ke=>{var pl,Ve,Fa;return JSON.stringify(Ke==null?void 0:Ke.relatedId)!=="{}"&&(Ke==null?void 0:Ke.relatedId)!==""&&(Ke!=null&&Ke.relatedId)?(pl=Ke==null?void 0:Ke.relatedId)==null?void 0:pl.includes(parseInt(sl)):(Ke==null?void 0:Ke.sort)===((Fa=(Ve=a==null?void 0:a.fixContent)==null?void 0:Ve[0])==null?void 0:Fa.sort)});if((ia==null?void 0:ia.length)>0){let Ke=(pe=a==null?void 0:a.fixContent)==null?void 0:pe[0];Ke={...Ke,id:(ha=ia==null?void 0:ia[0])==null?void 0:ha.id};let pl={},Ve=Ke,Fa;return Array.isArray((va=we==null?void 0:we.struct)==null?void 0:va[0])?Fa=he.getColumnChild((Xe=we==null?void 0:we.struct)==null?void 0:Xe[0]):Fa=we==null?void 0:we.struct,Fa=Fa==null?void 0:Fa.filter(Sa=>(Sa==null?void 0:Sa.prop)!=="relatedId"),Fa==null||Fa.forEach(Sa=>{var il,Ia;pl[Sa.prop]=((il=Sa==null?void 0:Sa.words)!=null&&il[0]?(Ve==null?void 0:Ve[(Ia=Sa==null?void 0:Sa.words)==null?void 0:Ia[0]])??(Ve==null?void 0:Ve[Sa==null?void 0:Sa.prop]):Ve==null?void 0:Ve[Sa==null?void 0:Sa.prop])??""}),pl.id=(Ze=ia==null?void 0:ia[0])==null?void 0:Ze.id,delete pl.sort,delete pl.relatedId,{tableName:"content_"+(we==null?void 0:we.id),tableContents:[pl]}}else return}))==null?void 0:Fe.filter(we=>we);Ma=[...Ma,...ma];let ka=await A.quoteApi({platId:parseInt((ye=hl==null?void 0:hl.value)==null?void 0:ye.plat_id),type:"sonSyncs",related:[{menus:n!==""?ml.value+"/"+n:ml.value,groups:a==null?void 0:a.name}]});ka=(ue=(T=ka==null?void 0:ka.data)==null?void 0:T.result)==null?void 0:ue.filter(we=>!(Ma!=null&&Ma.find(ia=>(ia==null?void 0:ia.tableName)==="content_"+(we==null?void 0:we.id)))),ka=ka==null?void 0:ka.filter(we=>{var ia,Ie;return!((we==null?void 0:we.fatherPath)!==""&&((Ie=(ia=we==null?void 0:we.quote)==null?void 0:ia[0])==null?void 0:Ie.menus)===(ml==null?void 0:ml.value))});let La=(U=ka==null?void 0:ka.map(we=>{var Ie,pe,ha,va,Xe,Ze;let ia=(Ie=we==null?void 0:we.contents)==null?void 0:Ie.filter(Ke=>{var pl,Ve,Fa;return JSON.stringify(Ke==null?void 0:Ke.relatedId)!=="{}"&&(Ke==null?void 0:Ke.relatedId)!==""&&(Ke!=null&&Ke.relatedId)?(pl=Ke==null?void 0:Ke.relatedId)==null?void 0:pl.includes(parseInt(sl)):(Ke==null?void 0:Ke.sort)===((Fa=(Ve=a==null?void 0:a.fixContent)==null?void 0:Ve[0])==null?void 0:Fa.sort)});if((ia==null?void 0:ia.length)>0){let Ke=(pe=a==null?void 0:a.fixContent)==null?void 0:pe[0];Ke={...Ke,id:(ha=ia==null?void 0:ia[0])==null?void 0:ha.id};let pl={},Ve=Ke,Fa;return Array.isArray((va=we==null?void 0:we.struct)==null?void 0:va[0])?Fa=he.getColumnChild((Xe=we==null?void 0:we.struct)==null?void 0:Xe[0]):Fa=we==null?void 0:we.struct,Fa=Fa==null?void 0:Fa.filter(Sa=>(Sa==null?void 0:Sa.prop)!=="relatedId"),Fa==null||Fa.forEach(Sa=>{var il,Ia;pl[Sa.prop]=((il=Sa==null?void 0:Sa.words)!=null&&il[0]?(Ve==null?void 0:Ve[(Ia=Sa==null?void 0:Sa.words)==null?void 0:Ia[0]])??(Ve==null?void 0:Ve[Sa==null?void 0:Sa.prop]):Ve==null?void 0:Ve[Sa==null?void 0:Sa.prop])??""}),pl.id=(Ze=ia==null?void 0:ia[0])==null?void 0:Ze.id,delete pl.sort,delete pl.relatedId,{tableName:"content_"+(we==null?void 0:we.id),tableContents:[pl]}}else return}))==null?void 0:U.filter(we=>we);Ma=[...Ma,...La],await A.pageBatchDeleteApi({platId:parseInt((Se=hl==null?void 0:hl.value)==null?void 0:Se.plat_id),changeContents:Ma});let $a=[];Ma==null||Ma.forEach(we=>{var ia;(ia=we==null?void 0:we.tableContents)==null||ia.forEach(Ie=>{$a.push({id:"1",request_method:"Post",request_url:"/platform/page/delete",request_param:JSON.stringify(Ie),request_result:"{}",is_delete:!1,request_table:we==null?void 0:we.tableName,request_type:"delete"})})}),await A.pageBatchAddApi({platId:parseInt((Le=hl==null?void 0:hl.value)==null?void 0:Le.plat_id),changeContents:[{tableName:"log",tableContents:$a}]})}if((a==null?void 0:a.buttonName)==="复制新增"){let Ma=await A.getPageDataApi({platId:parseInt((Pe=hl==null?void 0:hl.value)==null?void 0:Pe.plat_id),pageName:"menu"});if(Ma=(la=Ma==null?void 0:Ma.data)==null?void 0:la.result,Ma!=null&&Ma.find(rl=>(rl==null?void 0:rl.father_name)===ml.value+"/")){yc.value=a,mc.value=Ma==null?void 0:Ma.filter(ma=>(ma==null?void 0:ma.father_name)===ml.value+"/");let rl=(le=(Da=a==null?void 0:a.columns)==null?void 0:Da.find(ma=>ma==null?void 0:ma.mainKey))==null?void 0:le.prop,sl=(te=(ta=a==null?void 0:a.fixContent)==null?void 0:ta[0])==null?void 0:te[rl];Dt.value=!0,Wi.value=[{prop:rl,label:rl,name:rl,value:sl}]}else{let rl=(ca=a==null?void 0:a.fixContent)==null?void 0:ca.map(ka=>{let La={};for(let $a in ka)Array.isArray(ka==null?void 0:ka[$a])?La[$a]=JSON.stringify(ka==null?void 0:ka[$a]):La[$a]=ka==null?void 0:ka[$a];return La.relatedId="",La}),sl=[{tableName:(Ee=a==null?void 0:a.relatedContents)==null?void 0:Ee.find(ka=>ka==null?void 0:ka.includes("content")),tableContents:rl}];await A.pageBatchAddApi({platId:parseInt((oe=hl==null?void 0:hl.value)==null?void 0:oe.plat_id),changeContents:sl});let ma=[];sl==null||sl.forEach(ka=>{var La;(La=ka==null?void 0:ka.tableContents)==null||La.forEach($a=>{ma.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify($a),request_result:"{}",is_delete:!1,request_table:ka==null?void 0:ka.tableName,request_type:"copyAdd"})})}),await A.pageBatchAddApi({platId:parseInt((Te=hl==null?void 0:hl.value)==null?void 0:Te.plat_id),changeContents:[{tableName:"log",tableContents:ma}]})}}if((a==null?void 0:a.buttonName)==="methodButton"){let Ma=((Ja=(oa=(Ue=a==null?void 0:a.columns)==null?void 0:Ue.map(pe=>pe==null?void 0:pe.filter))==null?void 0:oa.filter(pe=>pe!==""))==null?void 0:Ja[0])??"";Ma=he.analyzeSplitToContent(Ma,","),Ma=(Ma==null?void 0:Ma.find(pe=>pe==null?void 0:pe.includes("@Filter")))??"";let rl=(L=a==null?void 0:a.fixContent)==null?void 0:L.map(pe=>{let ha={};for(let va in pe)Array.isArray(pe==null?void 0:pe[va])?ha[va]=JSON.stringify(pe==null?void 0:pe[va]):ha[va]=pe==null?void 0:pe[va];return ha}),sl=await A.quoteApi({platId:parseInt((H=hl==null?void 0:hl.value)==null?void 0:H.plat_id),type:"fatherSyncs",related:[{menus:n!==""?ml.value+"/"+n:ml.value,groups:a==null?void 0:a.name}]});sl=(Q=sl==null?void 0:sl.data)==null?void 0:Q.result,sl=sl==null?void 0:sl.filter(pe=>{var ha,va;return!((pe==null?void 0:pe.fatherPath)!==""&&((va=(ha=pe==null?void 0:pe.quote)==null?void 0:ha[0])==null?void 0:va.menus)===(ml==null?void 0:ml.value))});let ma=(ve=(me=a==null?void 0:a.columns)==null?void 0:me[0])==null?void 0:ve.prop,ka=(da=rl==null?void 0:rl[0])==null?void 0:da[ma],La=[{tableName:(ea=a==null?void 0:a.relatedContents)==null?void 0:ea.find(pe=>pe==null?void 0:pe.includes("content")),tableContents:rl}],$a=(ce=sl==null?void 0:sl.map(pe=>{var va,Xe,Ze,Ke,pl;let ha=(va=pe==null?void 0:pe.contents)==null?void 0:va.filter(Ve=>{var Fa;return(Fa=Object.values(Ve))==null?void 0:Fa.find(Sa=>Sa===ka)});if((ha==null?void 0:ha.length)>0){let Ve=rl==null?void 0:rl[0];Ve={...Ve,id:(Xe=ha==null?void 0:ha[0])==null?void 0:Xe.id};let Fa={},Sa=Ve,il;return Array.isArray((Ze=pe==null?void 0:pe.struct)==null?void 0:Ze[0])?il=he.getColumnChild((Ke=pe==null?void 0:pe.struct)==null?void 0:Ke[0]):il=pe==null?void 0:pe.struct,il=il==null?void 0:il.filter(Ia=>(Ia==null?void 0:Ia.prop)!=="relatedId"),il==null||il.forEach(Ia=>{var ze,Sl;Fa[Ia.prop]=((ze=Ia==null?void 0:Ia.words)!=null&&ze[0]?(Sa==null?void 0:Sa[(Sl=Ia==null?void 0:Ia.words)==null?void 0:Sl[0]])??(Sa==null?void 0:Sa[Ia==null?void 0:Ia.prop]):Sa==null?void 0:Sa[Ia==null?void 0:Ia.prop])??""}),Fa.id=(pl=ha==null?void 0:ha[0])==null?void 0:pl.id,delete Fa.sort,{tableName:"content_"+(pe==null?void 0:pe.id),tableContents:[Fa]}}else return}))==null?void 0:ce.filter(pe=>pe);La=[...La,...$a];let we=await A.quoteApi({platId:parseInt((pa=hl==null?void 0:hl.value)==null?void 0:pa.plat_id),type:"sonSyncs",related:[{menus:n!==""?ml.value+"/"+n:ml.value,groups:a==null?void 0:a.name}]});if(we=(We=(Ne=we==null?void 0:we.data)==null?void 0:Ne.result)==null?void 0:We.filter(pe=>!(La!=null&&La.find(ha=>(ha==null?void 0:ha.tableName)==="content_"+(pe==null?void 0:pe.id)))),we=we==null?void 0:we.filter(pe=>{var ha,va;return!((pe==null?void 0:pe.fatherPath)!==""&&((va=(ha=pe==null?void 0:pe.quote)==null?void 0:ha[0])==null?void 0:va.menus)===(ml==null?void 0:ml.value))}),Ma&&Ma!==""){(Ma==null?void 0:Ma[(Ma==null?void 0:Ma.length)-1])===","&&(Ma=Ma==null?void 0:Ma.slice(0,(Ma==null?void 0:Ma.length)-1)),Ma=(Ca=(Ta=Ma==null?void 0:Ma.replace("(",mo))==null?void 0:Ta.split(mo))==null?void 0:Ca[1],Ma=Ma==null?void 0:Ma.slice(0,(Ma==null?void 0:Ma.length)-1),(Ma==null?void 0:Ma[0])==="*"&&(Ma="{"+((Va=(Qe=Ma==null?void 0:Ma.replace("{",mo))==null?void 0:Qe.split(mo))==null?void 0:Va[1])),Ma=(re=Ma==null?void 0:Ma.replaceAll("{",""))==null?void 0:re.replaceAll("}","");let pe=he.calculatorAndToOr(Ma);pe=pe==null?void 0:pe[0];let ha;if((X=Object.values(pe))!=null&&X.some(va=>(va==null?void 0:va[0])==="*")){let va=(q=(Z=Pn.value)==null?void 0:Z.find(Xe=>(Xe==null?void 0:Xe.condition)==="child"))!=null&&q.value?(Zr==null?void 0:Zr.value)+"/"+((Je=(Be=Pn.value)==null?void 0:Be.find(Xe=>(Xe==null?void 0:Xe.condition)==="child"))==null?void 0:Je.value):Zr==null?void 0:Zr.value;ha=await Kr(va,!1)}for(let va in pe)if(((ra=pe==null?void 0:pe[va])==null?void 0:ra[0])==="*"){let Xe=(_a=(Aa=(ga=pe[va])==null?void 0:ga.slice(1,(ba=pe[va])==null?void 0:ba.length))==null?void 0:Aa.split(":"))==null?void 0:_a[0],Ze=(Za=(Oe=pe[va])==null?void 0:Oe.split(":"))==null?void 0:Za[1],Ke=(Ha=ha==null?void 0:ha.filter(pl=>(pl==null?void 0:pl.name)===Xe))==null?void 0:Ha[0];Ke=(Yl=(xl=Ke==null?void 0:Ke.compData)==null?void 0:xl.find(pl=>(pl==null?void 0:pl.key)==="tableContents"))==null?void 0:Yl.contents,Ke=(kl=Ke==null?void 0:Ke[0])==null?void 0:kl[Ze],pe[va]=Ke}Ma=((Fl=Object.values(pe))==null?void 0:Fl[0])??""}let ia=(ja=we==null?void 0:we.map(pe=>{var va,Xe,Ze,Ke,pl;let ha=(va=pe==null?void 0:pe.contents)==null?void 0:va.filter(Ve=>{var Fa;return(Fa=Object.values(Ve))==null?void 0:Fa.find(Sa=>Sa===(Ma===""?ka:Ma))});if((ha==null?void 0:ha.length)>0){let Ve=rl==null?void 0:rl[0];Ve={...Ve,id:(Xe=ha==null?void 0:ha[0])==null?void 0:Xe.id};let Fa={},Sa=Ve,il;return Array.isArray((Ze=pe==null?void 0:pe.struct)==null?void 0:Ze[0])?il=he.getColumnChild((Ke=pe==null?void 0:pe.struct)==null?void 0:Ke[0]):il=pe==null?void 0:pe.struct,il=il==null?void 0:il.filter(Ia=>(Ia==null?void 0:Ia.prop)!=="relatedId"),il==null||il.forEach(Ia=>{var Sl,Il,Ul,ql;let ze=(Sl=a==null?void 0:a.columns)==null?void 0:Sl.find(Ql=>{var dr,Ol,pr;return((Ol=(dr=Ql==null?void 0:Ql.words)==null?void 0:dr[0])==null?void 0:Ol.replaceAll("'",""))===(Ia==null?void 0:Ia.prop)&&((pr=Ql==null?void 0:Ql.functionRelatedWords)==null?void 0:pr.length)>0});ze=(Il=ze==null?void 0:ze.prop)==null?void 0:Il.replaceAll("'",""),Fa[Ia.prop]=((Ul=Ia==null?void 0:Ia.words)!=null&&Ul[0]?(Sa==null?void 0:Sa[(ql=Ia==null?void 0:Ia.words)==null?void 0:ql[0]])??(Sa==null?void 0:Sa[Ia==null?void 0:Ia.prop])??(Sa==null?void 0:Sa[ze]):(Sa==null?void 0:Sa[Ia==null?void 0:Ia.prop])??(Sa==null?void 0:Sa[ze]))??void 0}),Fa.id=(pl=ha==null?void 0:ha[0])==null?void 0:pl.id,delete Fa.sort,{tableName:"content_"+(pe==null?void 0:pe.id),tableContents:[Fa]}}else return}))==null?void 0:ja.filter(pe=>pe);La=[...La,...ia],await A.pageBatchUpdateApi({platId:parseInt((zl=hl==null?void 0:hl.value)==null?void 0:zl.plat_id),changeContents:La});let Ie=[];La==null||La.forEach(pe=>{var ha;(ha=pe==null?void 0:pe.tableContents)==null||ha.forEach(va=>{Ie.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(va),request_result:"{}",is_delete:!1,request_table:pe==null?void 0:pe.tableName,request_type:"method"})})}),await A.pageBatchAddApi({platId:parseInt((Rl=hl==null?void 0:hl.value)==null?void 0:Rl.plat_id),changeContents:[{tableName:"log",tableContents:Ie}]})}Nr.setRefreshCurStructure(!0),await xt(a)},kt=async(a,l,r)=>{var t;let n=a==null?void 0:a.find(s=>(s==null?void 0:s.id)===l);if(n){let s=(t=n.compData)==null?void 0:t.map(v=>{var p;if((v==null?void 0:v.key)==="tableContents"){let f={...v,contents:r};return f.contents=(p=(f==null?void 0:f.contents)??[])==null?void 0:p.map(m=>{let g={};for(let c in m)JSON.stringify(m==null?void 0:m[c])==="{}"?g[c]="":g[c]=m==null?void 0:m[c];return g}),f}return v});return n.compData=await Et(s,{}),a=a==null?void 0:a.map(v=>((v==null?void 0:v.id)===(n==null?void 0:n.id)&&(v=n),v)),a}else{let s=a==null?void 0:a.filter(p=>{var f;return(p==null?void 0:p.children)&&((f=p==null?void 0:p.children)==null?void 0:f.length)>0||(p==null?void 0:p.comp)==="Tabs"}),v=s==null?void 0:s.map(async p=>{var f;return p!=null&&p.children&&((f=p==null?void 0:p.children)==null?void 0:f.length)>0?p.children=await kt(p==null?void 0:p.children,l,r):p.compData=await kt(p==null?void 0:p.compData,l,r),p});return s=await Promise.all(v),s}},xt=async a=>{var s,v,p,f,m,g,c;let l=(s=a==null?void 0:a.relatedContents)==null?void 0:s.filter(D=>D==null?void 0:D.includes("content_"));if(!l)return;let r=await A.getAllTables({platId:parseInt((v=hl==null?void 0:hl.value)==null?void 0:v.plat_id),tableNames:l??[]});if(r=(f=(p=r==null?void 0:r.data)==null?void 0:p.result)==null?void 0:f[0],!r||!Array.isArray(r))return;r=r==null?void 0:r.map(D=>{D==null||delete D.source_table;const M={};for(let S in D){const K=D==null?void 0:D[S],I=K&&Object.prototype.toString.call(K)==="[object Object]"&&Object.keys(K).length===0,R=Array.isArray(K)&&K.length===0;K==null||K==="{}"||I||R?M[S]="":M[S]=K}return M});let n=(g=(m=l==null?void 0:l[0])==null?void 0:m.split("_"))==null?void 0:g[1],t=await kt(or.value,n,r);or.value=(c=or.value)==null?void 0:c.map(D=>{var M,S;return(M=t==null?void 0:t[0])!=null&&M.tabInform&&((S=t==null?void 0:t[0])==null?void 0:S.tabInform)===(D==null?void 0:D.tabInform)?D=t==null?void 0:t[0]:(D!=null&&D.name?(D==null?void 0:D.name)===(t==null?void 0:t.name):(D==null?void 0:D.id)===(t==null?void 0:t.id))&&(D=t),D})},D0=a=>{let l=Wi.value;Wi.value=l==null?void 0:l.map(r=>(r.value=a==null?void 0:a[r==null?void 0:r.prop],r))},B0=async()=>{var D,M,S,K,I,R,j,E,x,k;let a=yc.value,l=mc.value,r=(M=(D=a==null?void 0:a.columns)==null?void 0:D.find(b=>b==null?void 0:b.mainKey))==null?void 0:M.prop,n=(K=(S=Wi.value)==null?void 0:S[0])==null?void 0:K.value,t=(I=a==null?void 0:a.fixContent)==null?void 0:I.map(b=>{var $;let w={};for(let F in b)Array.isArray(b==null?void 0:b[F])?w[F]=JSON.stringify(b==null?void 0:b[F]):w[F]=b==null?void 0:b[F];return($=a==null?void 0:a.columns)==null||$.forEach(F=>{(F==null?void 0:F.formType)==="Upload"&&(w==null?void 0:w[F==null?void 0:F.prop])===""&&(w[F==null?void 0:F.prop]="{}")}),w[r]=n,w}),s=[{tableName:(R=a==null?void 0:a.relatedContents)==null?void 0:R.find(b=>b==null?void 0:b.includes("content")),tableContents:t}];await A.pageBatchAddApi({platId:parseInt((j=hl==null?void 0:hl.value)==null?void 0:j.plat_id),changeContents:s}),l=l==null?void 0:l.filter(b=>{var w,$,F;return(F=b==null?void 0:b.object_name)==null?void 0:F.includes(($=(w=a==null?void 0:a.fixContent)==null?void 0:w[0])==null?void 0:$[r])});let v=[],p=new Map;l==null||l.forEach(b=>{v.push(`content_${b==null?void 0:b.object_id}`),v.push(`struct_${b==null?void 0:b.object_id}`),p.set(b==null?void 0:b.object_id,b)});let f=await A.getAllTables({platId:parseInt((E=hl==null?void 0:hl.value)==null?void 0:E.plat_id),tableNames:v??[]});f=(x=f==null?void 0:f.data)==null?void 0:x.result;let m=[],g=[];f=he.chunk(f,2),f==null||f.forEach(b=>{var F,J,se,ge,Me,V,fe,ae,de,Ce,Fe,ye,T,ue,U,Se,Le,Pe,la,Da,le;let w=p.get((ge=(se=(J=(F=b==null?void 0:b[1])==null?void 0:F[0])==null?void 0:J.source_table)==null?void 0:se.split("_"))==null?void 0:ge[1]),$=(fe=(V=(Me=w==null?void 0:w.object_name)==null?void 0:Me.split("/"))==null?void 0:V.filter((ta,te)=>{var ca,Ee;return((Ee=(ca=w==null?void 0:w.object_name)==null?void 0:ca.split("/"))==null?void 0:Ee.length)-1!==te}))==null?void 0:fe.join("/");if($=$+"/"+n,g!=null&&g.find(ta=>(ta==null?void 0:ta.path)===$)||g.push({fatherPath:w==null?void 0:w.father_name,isShow:w==null?void 0:w.is_show,path:$}),((de=(ae=b==null?void 0:b[1])==null?void 0:ae[0])==null?void 0:de.类型)==="Table"){let ta=((ye=(Fe=(Ce=b==null?void 0:b[1])==null?void 0:Ce[0])==null?void 0:Fe.结构)==null?void 0:ye.contents)??[],te=ll.safeClone(ta);Array.isArray(te==null?void 0:te[0])&&(te=he.getColumnChild(te==null?void 0:te[0]));let ca=[];if(((T=b==null?void 0:b[0])==null?void 0:T.length)>0&&(ca=(ue=b==null?void 0:b[0])==null?void 0:ue.map(Ee=>te==null?void 0:te.map(Te=>(Te=(Ee==null?void 0:Ee[Te==null?void 0:Te.prop])??"",Te)))),m!=null&&m.find(Ee=>(Ee==null?void 0:Ee.key)===$)){let Ee=(U=m==null?void 0:m.find(Te=>(Te==null?void 0:Te.key)===$))==null?void 0:U.contents;Ee.push({isShow:w==null?void 0:w.is_show,filter:((Pe=(Le=(Se=b==null?void 0:b[1])==null?void 0:Se[0])==null?void 0:Le.引用)==null?void 0:Pe.contents)??"",key:"Table",name:Object.values(w==null?void 0:w.name),tableColumns:ta,tableContents:ca});let oe=m==null?void 0:m.findIndex(Te=>(Te==null?void 0:Te.key)===$);m[oe].contents=Ee}else m.push({key:$,contents:[{isShow:w==null?void 0:w.is_show,filter:((le=(Da=(la=b==null?void 0:b[1])==null?void 0:la[0])==null?void 0:Da.引用)==null?void 0:le.contents)??"",key:"Table",name:Object.values(w==null?void 0:w.name),tableColumns:ta,tableContents:ca}]})}});let c=[];c.push({key:"menuPath",contents:g}),c=[...c,...m],await A.createPlatFormDataApi({platId:parseInt((k=hl==null?void 0:hl.value)==null?void 0:k.plat_id),changeData:c}),Dt.value=!1,Nr.setRefreshTable(!0)},To=async(a,l)=>{},Ao=async a=>{or.value=await he.getDeepDiffItems(a),Nr.setItemData(or.value),Nr.setOriginalData(or.value)};e.ref();const N0=e.ref(null),T0=()=>{var a,l;console.log("倒计时结束时"),A.ElMessageBox.alert(`超时未提交,【${(l=(a=ml.value)==null?void 0:a.split("/"))==null?void 0:l[0]}】失败`,"告警",{confirmButtonText:"确认",type:"error"})},xc=e.ref([]),A0=e.computed(()=>{var a,l;return(l=(a=gt.value)==null?void 0:a[ml.value])==null?void 0:l.filter(r=>{var n;return((n=r==null?void 0:r.key)==null?void 0:n.type)==="gridLayout"})});e.watch(()=>[y0.value],()=>{dn.setSelectTitle([]),dn.setChooseTitle([])},{deep:!0});e.watch(()=>Bo.value,async(a,l)=>{var n,t,s,v,p,f;let r=(n=Bo.value)==null?void 0:n.filter(m=>(m==null?void 0:m.condition)==="child"&&(m==null?void 0:m.value)!==""&&(m==null?void 0:m.parentContent)!==Zr.value);if((r==null?void 0:r.length)>0){Or.setContentLoading(!0);let m=((t=r==null?void 0:r[0])==null?void 0:t.relatedContent)??(ml==null?void 0:ml.value),g=m+"/"+((s=r==null?void 0:r[0])==null?void 0:s.value),c=!!((v=r==null?void 0:r[0])!=null&&v.parentContent),D=await Kr(g,c,{originPath:m});D=(p=D==null?void 0:D.filter(K=>K))==null?void 0:p.map(K=>(K.isShow=!0,K)),console.log(D,"loadingContents");let M=await he.getDeepDiffItems(D),S=M==null?void 0:M.filter(K=>K==null?void 0:K.choice);Oo.setSelectTab((f=S==null?void 0:S[0])==null?void 0:f.choiceName),M=M==null?void 0:M.filter(K=>{var I;return!(K!=null&&K.choiceName)||(K==null?void 0:K.choiceName)===((I=S==null?void 0:S[0])==null?void 0:I.choiceName)}),or.value=M,Or.setContentLoading(!1)}});const z0=(a,l)=>{setTimeout(async()=>{var p,f,m;let r=(p=Bo.value)==null?void 0:p.filter(g=>(g==null?void 0:g.condition)==="child"&&(g==null?void 0:g.value)!==""&&(g==null?void 0:g.parentContent)!==Zr.value),n=ml==null?void 0:ml.value,t=ml==null?void 0:ml.value;(r==null?void 0:r.length)>0&&(t=((f=r==null?void 0:r[0])==null?void 0:f.relatedContent)??(ml==null?void 0:ml.value),n=t+"/"+((m=r==null?void 0:r[0])==null?void 0:m.value));let s=await Kr(n,!1,{originPath:t});s=s==null?void 0:s.map(g=>(g.isShow=!0,g));let v=await he.getDeepDiffItems(s);or.value=v==null?void 0:v.filter(g=>!(g!=null&&g.step)||(g==null?void 0:g.step)===(a==null?void 0:a.title))},10)},M0=a=>{setTimeout(async()=>{var v,p,f;let l=(v=Bo.value)==null?void 0:v.filter(m=>(m==null?void 0:m.condition)==="child"&&(m==null?void 0:m.value)!==""&&(m==null?void 0:m.parentContent)!==Zr.value),r=ml==null?void 0:ml.value,n=ml==null?void 0:ml.value;(l==null?void 0:l.length)>0&&(n=((p=l==null?void 0:l[0])==null?void 0:p.relatedContent)??(ml==null?void 0:ml.value),r=n+"/"+((f=l==null?void 0:l[0])==null?void 0:f.value));let t=await Kr(r,!1,{originPath:n});t=t==null?void 0:t.map(m=>(m.isShow=!0,m)),Oo.setSelectTab(a);let s=await he.getDeepDiffItems(t);or.value=s==null?void 0:s.filter(m=>!(m!=null&&m.choiceName)||(m==null?void 0:m.choiceName)===a)},10)};e.watch(()=>m0.value,a=>{a!=null&&a.length||(or.value=[])},{immediate:!0});e.watch(()=>[ml.value],async a=>{var s,v,p,f;if(!ml.value)return;if(ml.value==="/"){or.value=[];return}Or.setCurrentMenuPath(ml.value),Nr.setLockingPage(""),or.value=[];let l=e.getCurrentInstance();(s=l==null?void 0:l.scope)==null||s.stop(),l=null,Di.value=!1,Or.setContentLoading(!0),vc.value=!0;let r=a==null?void 0:a[0],n=r,t=(v=Pn.value)==null?void 0:v.filter(m=>(m==null?void 0:m.condition)==="child"&&(m==null?void 0:m.value)!==""&&(m==null?void 0:m.parentContent)!==ml.value&&!(m!=null&&m.relatedContent));if((t==null?void 0:t.length)>0&&(r=r+"/"+((p=t==null?void 0:t[0])==null?void 0:p.value)),r==="系统管理/日志管理")or.value=await d0("log");else{let m=await Kr(r,!0,{originPath:n});m=m==null?void 0:m.map(D=>(D.isShow=!0,D));let g=await he.getDeepDiffItems(m),c=g==null?void 0:g.filter(D=>D==null?void 0:D.choice);Oo.setSelectTab((f=c==null?void 0:c[0])==null?void 0:f.choiceName),or.value=g==null?void 0:g.filter(D=>{var M;return!(D!=null&&D.choiceName)||(D==null?void 0:D.choiceName)===((M=c==null?void 0:c[0])==null?void 0:M.choiceName)})}Or.setContentLoading(!1),Nr.setExtraContents([]),dn.setSelectIndex(""),dn.setSelectMenu(""),Nr.setItemData(or.value),Nr.setOriginalData(or.value),Nr.setRefreshTable(!1),e.nextTick(()=>{Hn.value=Hn.value++,Di.value=!0})},{immediate:!0});e.watch(()=>[ms.value],async()=>{var a,l,r,n;if(ms.value){or.value=[];let t=e.getCurrentInstance();(a=t==null?void 0:t.scope)==null||a.stop(),t=null,Di.value=!1,Or.setContentLoading(!0),vc.value=!0;let s=Zr==null?void 0:Zr.value,v=s,p=(l=Pn.value)==null?void 0:l.filter(c=>(c==null?void 0:c.condition)==="child"&&(c==null?void 0:c.value)!==""&&(c==null?void 0:c.parentContent)!==(Zr==null?void 0:Zr.value));(p==null?void 0:p.length)>0&&(s=s+"/"+((r=p==null?void 0:p[0])==null?void 0:r.value));let f=await Kr(s,!0,{originPath:v});f=f==null?void 0:f.map(c=>(c.isShow=!0,c));let m=await he.getDeepDiffItems(f),g=m==null?void 0:m.filter(c=>c==null?void 0:c.choice);if(Oo.setSelectTab((n=g==null?void 0:g[0])==null?void 0:n.choiceName),or.value=m==null?void 0:m.filter(c=>{var D;return!(c!=null&&c.choiceName)||(c==null?void 0:c.choiceName)===((D=g==null?void 0:g[0])==null?void 0:D.choiceName)}),Or.setContentLoading(!1),Nr.setExtraContents([]),dn.setSelectIndex(""),dn.setSelectMenu(""),Nr.setItemData(or.value),Nr.setOriginalData(or.value),Nr.setRefreshTable(!1),(p==null?void 0:p.length)>0){let c=[...Pn.value,...p];dn.setSelectTitle(c)}e.nextTick(()=>{Hn.value=Hn.value++,Di.value=!0})}},{immediate:!0,deep:!0});const I0=async()=>{Or.setLinkMenuInfo(null),Or.setActiveMenuPath(v0.value),or.value=null,Nr.setRouteToChildPath(""),Or.setChildMenu("")},O0=a=>new RegExp("button","i").test(a),L0=a=>/^[\u4e00-\u9fa5]+\/[\u4e00-\u9fa5]+\^(.+)$/.test(a),wc=a=>{if(L0(a)){const l=a==null?void 0:a.split("^");(l==null?void 0:l.length)>0&&(l!=null&&l[0])&&Or.setLinkMenuInfo({path:l==null?void 0:l[0],data:l==null?void 0:l[1]})}},_c=async(a,l,r)=>{var D,M,S,K,I,R,j,E,x,k,b,w;let n="",t="";for(let $ in l)(l==null?void 0:l[$])===a&&(t=$);r==null||r.forEach($=>{($==null?void 0:$.prop)===t&&(n=$==null?void 0:$.fatherPath)});let s=n===""?ml.value:n;n!==""&&Or.setCurrentMenuPath(s),Or.setCurrentMenuPath(s+"/"+a),Or.setContentLoading(!0),or.value=await Kr(s+"/"+a,!0,{originPath:s+"/",row:l});let v=await Kr(s,!1),p=(D=v==null?void 0:v.filter($=>($==null?void 0:$.comp)==="Table"))==null?void 0:D[0],f=((I=(K=(S=(M=p==null?void 0:p.compData)==null?void 0:M.find($=>($==null?void 0:$.key)==="header"))==null?void 0:S.contents)==null?void 0:K[0])==null?void 0:I.prop)??((k=(x=(E=(j=(R=p==null?void 0:p.compData)==null?void 0:R.find($=>($==null?void 0:$.key)==="header"))==null?void 0:j.contents)==null?void 0:E[0])==null?void 0:x[0])==null?void 0:k.prop),m=(w=(b=p==null?void 0:p.compData)==null?void 0:b.find($=>($==null?void 0:$.key)==="tableContents"))==null?void 0:w.contents;m=m==null?void 0:m.map($=>({label:$==null?void 0:$[f],value:$==null?void 0:$[f]}));let g=Pn.value,c={value:a,condition:"child",options:m,relatedContent:s,isShow:!0};g=g==null?void 0:g.filter($=>($==null?void 0:$.condition)!=="child"),g.push(c),dn.setSelectTitle(g),dn.setChooseTitle([c]),Or.setContentLoading(!1),Nr.setExtraContents([]),dn.setSelectIndex(""),dn.setSelectMenu(""),Nr.setItemData(or.value),Nr.setOriginalData(or.value)},R0=a=>{bc.value=a},_i=e.reactive({index:0,comp:null}),$0=e.computed(()=>{var a;return(a=or.value)==null?void 0:a.map((l,r)=>({id:l.id,name:l.name,status:V0(l,r)}))}),Sc=(a,l)=>{var f,m,g,c,D;const r=l?a:a-2,n=(f=or.value)==null?void 0:f[r],t=(g=(m=n==null?void 0:n.compData)==null?void 0:m.find(M=>(M==null?void 0:M.key)==="header"))==null?void 0:g.contents,s=t==null?void 0:t.findIndex(M=>(M==null?void 0:M.isMainKey)&&(M==null?void 0:M.label)!=="操作"),v=s===-1?0:s,p=(D=(c=n==null?void 0:n.compData)==null?void 0:c.find(M=>(M==null?void 0:M.key)==="tableContents"))==null?void 0:D.contents;return{valid:p==null?void 0:p.every(M=>M==null?void 0:M[v+1]),length:(p==null?void 0:p.length)||0}},V0=(a,l)=>{var n;let r="process";if(((n=a==null?void 0:a.comp)==null?void 0:n.toUpperCase())==="TABLE"){const{valid:t,length:s}=Sc(l,!0);_i.index===l?r="process":s===0?r="wait":r=t?"success":"error"}return r},Ec=a=>{var r,n,t,s,v;const l=a+1;if(l>1&&((t=(n=(r=or.value)==null?void 0:r[a])==null?void 0:n.comp)==null?void 0:t.toUpperCase())==="TABLE"){const{valid:p}=Sc(l);p?(_i.index=l,_i.comp=(s=or.value)==null?void 0:s[a]):qa.ElMessage({showClose:!0,type:"warning",message:"当前流程有输入未完成"})}else _i.index=l,_i.comp=(v=or.value)==null?void 0:v[a]},Cc=e.computed(()=>{var a,l;return(l=(a=gc.value)==null?void 0:a[0])==null?void 0:l.isStepLayout});e.watch(()=>Cc.value,a=>{a&&Ec(0)},{immediate:!0});const F0={class:"table-content"},P0={class:"menu-config-wrap"},j0=["onClick"],H0={key:0,class:"viewport-wrap"},U0=["onClick"],q0={title:"选择显示列信息"},W0={key:0,class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},K0=["title"],G0={class:"col-operate-wrap"},Y0={key:0,class:"col-operate-radio-wrapper"},J0={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},X0={key:0,style:{display:"flex","justify-content":"center","align-items":"center"}},Z0={class:"pop-view"},Q0={class:"pop-wrapper"},e3={class:"file-list-pop"},a3=["title","onClick"],l3=["onClick"],r3=["onClick"],n3={key:1,style:{display:"flex","justify-content":"flex-end",gap:"8px","margin-top":"8px"}},i3={class:"form-content"},o3={key:0,class:"dialog-footer"},t3={class:"dialog-footer"},s3={class:"ocr-dialog-content"},c3={class:"ocr-steps"},u3={key:0,class:"ocr-action-buttons"},d3={key:1,class:"ocr-preview-area"},p3={class:"ocr-file-grid"},f3={class:"file-thumbnail"},h3=["src"],v3={key:1,class:"thumbnail-placeholder"},m3={class:"progress-svg",viewBox:"0 0 36 36"},y3=["stroke","stroke-width","stroke-dasharray"],g3={key:0,class:"progress-icon"},b3={key:1,class:"progress-icon"},k3=["onClick"],x3={class:"file-name"},w3={key:0,class:"ocr-recognize-button"},_3={key:2,class:"ocr-progress-section"},S3={key:3,class:"ocr-confirm-area"},E3={class:"ocr-preview-tip"},C3={class:"ocr-preview-table"},D3={style:{display:"flex","align-items":"center",gap:"8px"}},B3={key:0},N3={key:4,class:"ocr-success-area"},T3={key:0,class:"ocr-dialog-footer"},A3={class:"form-content"},z3={style:{width:"100%",margin:"0","font-size":"14px","font-weight":"600"}},M3={style:{display:"flex","justify-content":"space-between",gap:"8px"}},I3={style:{display:"flex"}},gs="ss-ocr-upload-history",O3="ss-ocr-cert-history-v1",L3={__name:"index",props:{pageLayout:{type:String,default:"vertical"},related:{type:Array,default:[]},level:{type:Number,default:1},compName:{type:String,default:"",required:!1},compNames:{type:Array,default:()=>[],required:!1},groupNames:{type:Array,default:()=>[],required:!1},compItem:{type:Object,default:()=>{}},operatingForm:{type:Object,default:()=>{}},cacheNewData:{type:Object,default:()=>{}},config:Object,parentTableId:{type:Number,default:0},itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,isDevMode:Boolean,changedContent:{type:Object,default:()=>{}},showHeader:{type:Boolean,default:!0},allowSelect:{type:Boolean,default:!0},allowOperate:{type:Boolean,default:!0},allMapContents:{type:Object,default:()=>{}}},emits:["getSliceContLength","clickMainKey","change","contentChange","onButtonClick","contentClick","pageChange","rowClick","routeUrl"],setup(a,{emit:l}){var Vt;const r=e.ref([]),n=Ct(A.pinia),t=e.ref(null),s=e.ref(new Set),v=e.ref(new Map),p=e.ref(!1),f=e.ref(new Map),m=new Map,g=e.ref(new Map),c=a,D=e.ref((c==null?void 0:c.allowSelect)??!0),M=e.ref(((Vt=c==null?void 0:c.config)==null?void 0:Vt.showIndex)??!0),S=e.ref(),K=e.ref(!0),I=e.ref(!1),R=e.ref([]),j={sortable:"switch",filterable:"switch",showSummary:"switch",operable:"switch",fixed:"radio"},E=e.ref([{label:"排序",value:"sortable",checked:!1},{label:"合计",value:"showSummary",checked:!1},{type:"radio",label:"固定",value:"fixed",checked:"",options:[{label:"无",value:!1},{label:"左",value:"left"},{label:"右",value:"right"}]}]),x=he.useOriginalState(A.pinia);let k="$R";const{originalPath:b}=A.storeToRefs(x),w=b.value,$=e.computed(()=>{var h;const d=(h=he.getAllLeafNodes(V.value)||[])==null?void 0:h.filter(B=>(B==null?void 0:B.type)!=="operate"&&(B==null?void 0:B.label)!=="操作"&&(B==null?void 0:B.prop)!=="operate");return d.length>0?d.every(B=>!!(B!=null&&B.sortable)):!1});e.computed(()=>{var h;return(h=V.value)==null?void 0:h.every(B=>B==null?void 0:B.filterable)}),e.computed(()=>{var h;return(h=V.value)==null?void 0:h.every(B=>B==null?void 0:B.operable)});const F=e.ref(!0),J=e.ref([]),se=e.reactive({column:{},status:!1,text:"合计"}),ge=e.reactive({currentPage:1,pageSize:10,total:0,pageSizes:[5,10,20]}),Me=l,V=e.ref([]),fe=e.ref([]),ae=e.ref([]),de=e.reactive({prop:"",order:null}),Ce=e.ref([]),Fe=e.ref(!1),ye=e.ref(!1),T=e.ref(null),{isUseBackdrop:ue,initTrackFileType:U,getFileExtension:Se,setData:Le,getFileInfo:Pe,getFilesInfo:la}=So.useThreeSystem(),Da=e.ref([]),le=e.ref(!1),ta=e.ref(),te=A.useMenuState(),{importLoading:ca,activeMenuPath:Ee,contentLoading:oe,linkMenuInfo:Te}=A.storeToRefs(te),Ue=he.useTableComp(A.pinia),oa=A.useModelComp(A.pinia),Ja=Un(A.pinia),{extraContents:L,cacheUpdatingData:H,tableViewContents:Q,tableLoading:me,pageMapState:ve,lockingPage:da}=A.storeToRefs(oa),{selectTab:ea}=A.storeToRefs(Ja),{compType:ce,hasEditable:pa}=Gs.useRole(),Ne=e.ref([]),We=e.ref([]),Ta=e.ref(new Map);e.ref(!1);const Ca=e.ref("");e.ref();const Qe=e.ref(!0),Va=e.ref(0),re=e.ref(!0),X=e.ref(""),Z=e.ref(!1),q=e.ref(null);e.ref([]);const Be=e.ref({label:"查看三维模型"}),Je=e.ref(!1),ra=e.ref(),ba=e.ref([]),ga=e.ref([]),Aa=e.ref(!1),_a=e.ref([]),Oe=e.ref([]),Za=e.ref([]),Ha=e.ref([]),xl=e.ref([]),Yl=()=>{try{const d=localStorage.getItem(gs),h=d?JSON.parse(d):[];xl.value=Array.isArray(h)?h:[]}catch{xl.value=[]}},kl=()=>{try{localStorage.setItem(gs,JSON.stringify(xl.value||[]))}catch{}},Fl=d=>{var ne,ie,W;if(!d)return;const h=d.url||((ne=d==null?void 0:d.uploadResult)==null?void 0:ne.url)||"",B=d.name||((ie=d==null?void 0:d.uploadResult)==null?void 0:ie.name)||((W=d==null?void 0:d.uploadResult)==null?void 0:W.fileName)||"";if(!h&&!B)return;const z={name:B,url:h,ts:Date.now()},P=String(z.name||"").trim().toLowerCase(),C=(xl.value||[]).findIndex(xe=>String((xe==null?void 0:xe.name)||"").trim().toLowerCase()===P);C>-1&&xl.value.splice(C,1),xl.value.unshift(z),xl.value.length>20&&(xl.value=xl.value.slice(0,20)),kl()};Yl();const ja=(d,h)=>`${O3}:${String(d??"")}:${String(h??"")}`,zl=(d,h)=>{try{const B=sessionStorage.getItem(ja(d,h)),z=B?JSON.parse(B):[];return Array.isArray(z)?z:[]}catch{return[]}},Rl=(d,h,B)=>{try{sessionStorage.setItem(ja(d,h),JSON.stringify(Array.isArray(B)?B:[]))}catch{}},Ma=(d,h,B)=>{if(!h)return;const z=zl(d,h),P=[B,...z||[]].filter(Boolean).slice(0,1);return Rl(d,h,P),P},rl=(d,h,B)=>{if(!h||!B)return;const z=ja(d,h),P=ja(d,B);try{const C=sessionStorage.getItem(z);if(!C)return;const ne=(()=>{try{const xe=JSON.parse(C);return Array.isArray(xe)?xe:[]}catch{return[]}})(),ie=zl(d,B),W=[...ne,...ie||[]].filter(Boolean).sort((xe,Ae)=>Number((Ae==null?void 0:Ae.ts)||0)-Number((xe==null?void 0:xe.ts)||0)).slice(0,1);sessionStorage.setItem(P,JSON.stringify(W)),sessionStorage.removeItem(z)}catch{}},sl=e.ref(!1),ma=e.ref(!1),ka=e.ref([]),La=e.ref(null);e.ref(!1),e.ref([]),e.ref(""),e.ref("");const $a=e.ref(!1),we=e.ref([]),ia=e.ref(1),Ie=e.ref(new Map),pe=e.ref(new Map),ha=e.ref(0),va=e.ref(!1),Xe=e.ref([]),Ze=e.ref([]),Ke=d=>{var h;try{const B=(h=he.getAllLeafNodes(V.value)||[])==null?void 0:h.filter(z=>(z==null?void 0:z.type)!=="operate"&&(z==null?void 0:z.label)!=="操作"&&(z==null?void 0:z.prop)!=="operate");return(B==null?void 0:B.find(z=>(z==null?void 0:z.prop)===d||(z==null?void 0:z.label)===d))||null}catch{return null}},pl=d=>{const h=Ke(d),B=(h==null?void 0:h.formType)||(h==null?void 0:h.columnType)||"Input";return ll.getComponent(B)||ll.getComponent("Input")},Ve=e.ref([]),Fa=e.ref(null),Sa=e.ref([]),il=e.ref(null),Ia=e.ref(""),ze=e.ref(!1),Sl=e.ref([]),Il=e.ref(""),Ul=e.ref(!1),ql=e.ref([]),Ql=e.ref([]),dr=e.ref([]),Ol=e.ref(null),pr=e.ref([]),Fr=e.ref("");e.computed(()=>{var d;try{const h=(d=he.getAllLeafNodes(V.value)||[])==null?void 0:d.filter(z=>(z==null?void 0:z.type)!=="operate"&&(z==null?void 0:z.label)!=="操作"&&(z==null?void 0:z.prop)!=="operate"),B=new Map;return h==null||h.forEach(z=>{z!=null&&z.label&&(z!=null&&z.prop)&&B.set(z.label,z.prop)}),B.get("编号")||""}catch{return""}});const Pl=e.computed(()=>{var d;try{const h=(d=he.getAllLeafNodes(V.value)||[])==null?void 0:d.filter(z=>(z==null?void 0:z.type)!=="operate"&&(z==null?void 0:z.label)!=="操作"&&(z==null?void 0:z.prop)!=="operate"),B=new Map;return h==null||h.forEach(z=>{z!=null&&z.label&&(z!=null&&z.prop)&&B.set(z.label,z.prop)}),B.get("名称")||""}catch{return""}}),ar=e.computed(()=>{var d;try{const h=(d=he.getAllLeafNodes(V.value)||[])==null?void 0:d.filter(z=>(z==null?void 0:z.type)!=="operate"&&(z==null?void 0:z.label)!=="操作"&&(z==null?void 0:z.prop)!=="operate"),B=new Map;return h==null||h.forEach(z=>{z!=null&&z.label&&(z!=null&&z.prop)&&B.set(z.label,z.prop)}),B.get("制造厂")||""}catch{return""}}),Pr=()=>{Ul.value=!1,ql.value=[],Ql.value=[],dr.value=[],Ol.value=null,pr.value=[],Fr.value=""},Tr=d=>d==null?!1:typeof d=="string"?d.trim()!=="":Array.isArray(d)?d.length>0:!0,jr=(d,h)=>{const B=(d==null?void 0:d.ocrRow)||{};for(const P of Object.keys(B))P==="id"||P==="_isOCRRow"||P==="_ocrTableId"||Tr(B[P])&&(h[P]=B[P]);const z=We.value.find(P=>P.id===h.id);if(z)for(const P of Object.keys(B))P==="id"||P==="_isOCRRow"||P==="_ocrTableId"||Tr(B[P])&&(z[P]=B[P]);Ta.value&&Ta.value.set(h.id,h),Ma(c==null?void 0:c.index,h.id,d==null?void 0:d.versionItem),Ql.value=[...Ql.value||[],JSON.parse(JSON.stringify(h))]},Ir=async(d,h=null)=>{var B,z,P,C,ne,ie,W;try{const xe=(B=he.getAllLeafNodes(V.value)||[])==null?void 0:B.filter(xa=>(xa==null?void 0:xa.type)!=="operate"&&(xa==null?void 0:xa.label)!=="操作"&&(xa==null?void 0:xa.prop)!=="operate"),Ae=new Map;xe==null||xe.forEach(xa=>{xa!=null&&xa.label&&(xa!=null&&xa.prop)&&Ae.set(xa.label,xa.prop)});const He=Ae.get("系统编号")||Ae.get("编号");if(!He){console.warn("未找到系统编号字段,跳过向检校记录表插入数据");return}const Re=h||Ol.value;if((Array.isArray(Re==null?void 0:Re.result)?Re.result:[]).length===0){console.warn("OCR识别结果为空,跳过向检校记录表插入数据");return}for(let xa=0;xa<d.length;xa++){const Oa=d[xa],za=Oa[He];if(!za){console.warn(`第 ${xa+1} 条匹配行缺少系统编号,跳过`);continue}const Ye=`设备管理/试验设备/${za}`,Qa=await A.getPageDataApi({platId:parseInt((z=cl.value)==null?void 0:z.plat_id),pageName:Ye});if(!((P=Qa==null?void 0:Qa.data)!=null&&P.result)||!Array.isArray(Qa.data.result)){console.warn(`未找到详情页数据: ${Ye}`);continue}const ya=Qa.data.result.find(na=>(na==null?void 0:na.property_name)==="校检记录");if(!ya){console.warn(`详情页 ${Ye} 中未找到校检记录表`);continue}const el=(C=ya.contents)==null?void 0:C.find(na=>(na==null?void 0:na.key)&&na.key.startsWith("content_"));if(!el||!el.key){console.warn("校检记录表中未找到 content item");continue}const ke=el.key,Ra=Array.isArray(el.value)?el.value:[];if(Ra.length>=5){const _e=[...Ra].sort((sa,Ba)=>{const nl=Number((sa==null?void 0:sa.create_time)||0),Wa=Number((Ba==null?void 0:Ba.create_time)||0);return nl-Wa})[0];_e!=null&&_e.id&&await A.pageBatchDeleteApi({platId:parseInt((ne=cl.value)==null?void 0:ne.plat_id),changeContents:[{tableName:ke,tableContents:[{id:_e.id}]}]})}const fa=(ie=xe==null?void 0:xe.find(na=>(na==null?void 0:na.label)==="证书附件"))==null?void 0:ie.prop,Ea=String(Date.now()),wa={id:Ea},N=Ra[0]||{},Y=new Date().toISOString().split("T")[0];if(Object.keys(N||{}).forEach(na=>{if(na!=="id"){if(na==="证书附件"){wa[na]="";return}if(na==="校检日期"||na==="检校日期"){wa[na]=Oa[na]||Oa.校检日期||Oa.检校日期||Y;return}if(["校检周期","检校周期","校检结果","检校结果","计量状态","依据文件","证书编号"].includes(na)){wa[na]=Oa[na]??"";return}wa[na]=Oa[na]??""}}),fa&&Oa[fa]){const na=Oa[fa];if(Array.isArray(na)&&na.length>0)wa.证书附件=JSON.stringify(na.map(_e=>({url:(_e==null?void 0:_e.url)||"",name:(_e==null?void 0:_e.name)||(_e==null?void 0:_e.fileName)||"",fileName:(_e==null?void 0:_e.fileName)||(_e==null?void 0:_e.name)||""})).filter(_e=>_e.url||_e.name));else if(typeof na=="string")try{const _e=JSON.parse(na);wa.证书附件=na}catch{wa.证书附件=JSON.stringify([{url:na,name:na,fileName:na}])}}console.log(ke,"tableName","inspectionRecordRow",wa),await A.pageBatchAddApi({platId:parseInt((W=cl.value)==null?void 0:W.plat_id),changeContents:[{tableName:ke,tableContents:[wa]}]});const $e=ya==null?void 0:ya.object_id;if($e&&Ea){const na=fa&&Oa[fa]?Oa[fa]:null;let _e=[],sa="",Ba=!1;if(Array.isArray(na)&&na.length>0){_e=na.map(dl=>({name:(dl==null?void 0:dl.name)||(dl==null?void 0:dl.fileName)||"",url:(dl==null?void 0:dl.url)||""})).filter(dl=>dl.url||dl.name);const Wa=na[0];sa=(Wa==null?void 0:Wa.url)||"";const ul=(Wa==null?void 0:Wa.name)||(Wa==null?void 0:Wa.fileName)||"";Ba=String(ul).toLowerCase().endsWith(".pdf")||String(sa).toLowerCase().endsWith(".pdf")}else if(typeof na=="string")try{const Wa=JSON.parse(na);Array.isArray(Wa)?(_e=Wa.map(ul=>({name:(ul==null?void 0:ul.name)||(ul==null?void 0:ul.fileName)||"",url:(ul==null?void 0:ul.url)||""})).filter(ul=>ul.url||ul.name),_e.length>0&&(sa=_e[0].url||"",Ba=String(_e[0].name).toLowerCase().endsWith(".pdf")||String(sa).toLowerCase().endsWith(".pdf"))):(sa=na,Ba=String(na).toLowerCase().endsWith(".pdf"))}catch{sa=na,Ba=String(na).toLowerCase().endsWith(".pdf")}const nl={ts:Date.now(),versionId:String(Date.now())+"_"+String(xa),label:new Date().toLocaleString(),certType:Oa.证书类型||"",certNo:Oa.证书编号||"",fileType:Ba?"pdf":"image",sourceUrl:Ba?sa:"",images:_e};Ma($e,Ea,nl)}}}catch(xe){console.error("向校检记录表插入OCR识别结果失败:",xe),qa.ElMessage.error("向校检记录表插入数据失败,请查看控制台")}},Er=d=>{const h=Array.isArray(d)?d:ql.value||[];if(h.length===0){Pr();return}if(h.find(C=>(C==null?void 0:C.__decision)==="replace"&&!(C!=null&&C.selectedTargetId))){qa.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}h.forEach(C=>{var ie;const ne=C==null?void 0:C.__decision;if(!(!ne||ne==="skip")){if(ne==="add"){Ma(c==null?void 0:c.index,(ie=C==null?void 0:C.ocrRow)==null?void 0:ie.id,C==null?void 0:C.versionItem),dr.value=[...dr.value||[],C.ocrRow];return}if(ne==="replace"){const W=C==null?void 0:C.selectedTargetId,xe=(Ne.value||[]).find(Ae=>String(Ae==null?void 0:Ae.id)===String(W));if(!xe)return;jr(C,xe)}}}),(Ql.value||[]).length>0&&(Ne.value=[...Ne.value||[]]),(dr.value||[]).length>0&&(Ne.value=[...Ne.value||[],...dr.value||[]],We.value=[...We.value||[],...dr.value||[]],(dr.value||[]).forEach(C=>{var ne,ie;return(ie=(ne=Ta.value)==null?void 0:ne.set)==null?void 0:ie.call(ne,C.id,C)})),ln.value=Ne.value;const z=Ql.value||[],P=dr.value||[];if(z.length>0&&(Me("change",{buttonName:"编辑",singleContent:z,content:Ne.value,relatedContents:c==null?void 0:c.related,index:c==null?void 0:c.index,parentTableId:c==null?void 0:c.parentTableId,columns:V.value,name:c==null?void 0:c.compName}),Ir(z)),P.length>0){const C=Ol.value;Me("change",{buttonName:"OCR批量新增",content:Ne.value,index:c==null?void 0:c.index,parentTableId:c==null?void 0:c.parentTableId,column:V.value,ocrRows:P,relatedContents:c==null?void 0:c.related,uploadedFiles:(Array.isArray(C==null?void 0:C.result)?C.result:[]).map(ne=>(Array.isArray(ne==null?void 0:ne.图片信息)?ne.图片信息:[]).map(ie=>({url:(ie==null?void 0:ie.url)||"",name:(ie==null?void 0:ie.name)||"",fileName:(ie==null?void 0:ie.name)||""})).filter(ie=>ie.url)),ocrResult:C,matchedCount:(z||[]).length,newCount:(P||[]).length})}qa.ElMessage.success("已提交候选处理结果"),Pr()},Cr=fc(),mn=e.computed(()=>Cr.getConfig()),Br=e.ref(),cr=e.ref(),yn=sc(A.pinia),ln=e.ref(),rn=e.ref(0),Sn=A.useUnit(A.pinia),{selectIndex:Bn,selectMenu:pn,selectTitle:lr}=A.storeToRefs(Sn),{selectString:Ml}=A.storeToRefs(yn),zr=A.useLoginState(A.pinia),{loginUserInfo:cl}=A.storeToRefs(zr),sr=e.ref(720),$l=e.ref(!1),_r=e.ref(!1),Kl=e.ref([]),fr=e.ref(),Lr=e.ref(!0),gn=e.ref(!0);e.ref([]);const Nn=e.inject("contentRef");e.provide("contentRef",Nn),e.provide("getSuggestListForCell",_u),e.provide("getSuggestLoadingForCell",(d,h)=>{const B=`${d==null?void 0:d.id}:${(h==null?void 0:h.prop)||(h==null?void 0:h.property)}`;return g.value.get(B)||!1}),e.watch(()=>{var d;return(d=Ne.value)==null?void 0:d.length},d=>{ge.total=d}),e.watch(()=>Q.value,async()=>{var h,B,z,P,C,ne,ie,W,xe,Ae,He,Re,Ge,xa,Oa,za,Ye;if(((h=Q.value)==null?void 0:h.length)===0||!((B=c==null?void 0:c.itemData)!=null&&B.find(Qa=>(Qa==null?void 0:Qa.key)==="columnPath"))||!((z=c==null?void 0:c.itemData)!=null&&z.find(Qa=>(Qa==null?void 0:Qa.key)==="pageColumn")))return;let d=(xe=(W=(ie=(ne=(C=(P=c==null?void 0:c.itemData)==null?void 0:P.find(Qa=>(Qa==null?void 0:Qa.key)==="pageColumn"))==null?void 0:C.contents)==null?void 0:ne.split("["))==null?void 0:ie[1])==null?void 0:W.split("]"))==null?void 0:xe[0];((Ge=(Re=(He=(Ae=c==null?void 0:c.itemData)==null?void 0:Ae.find(Qa=>(Qa==null?void 0:Qa.key)==="pageColumn"))==null?void 0:He.contents)==null?void 0:Re.split("["))==null?void 0:Ge[0])+((Oa=(xa=Q.value)==null?void 0:xa.find(Qa=>(Qa==null?void 0:Qa.key)===d))==null?void 0:Oa.value),(Ye=(za=c==null?void 0:c.itemData)==null?void 0:za.find(Qa=>(Qa==null?void 0:Qa.key)==="pageGroup"))==null||Ye.contents,$t(compData,c.allMapContents)},{deep:!0});const bn=d=>{var B,z,P,C,ne;const h=(z=(B=V.value)==null?void 0:B.filter(ie=>ie==null?void 0:ie.mainKey))==null?void 0:z.map(ie=>ie==null?void 0:ie.prop);if(h.length===0){const ie=(P=V.value)==null?void 0:P.map(W=>W==null?void 0:W.prop);return(C=ie==null?void 0:ie.map(W=>d==null?void 0:d[W]))==null?void 0:C.join("|")}return(ne=h==null?void 0:h.map(ie=>d==null?void 0:d[ie]))==null?void 0:ne.join("|")},qn=d=>{var ie,W,xe,Ae,He;const h=(W=(ie=V.value)==null?void 0:ie.filter(Re=>Re==null?void 0:Re.required))==null?void 0:W.map(Re=>Re==null?void 0:Re.prop),B=[];if(d==null||d.forEach(Re=>{h==null||h.forEach(Ge=>{const xa=Re[Ge];(xa==null||xa==="")&&(B.includes(Ge)||B.push(Ge))})}),B.length>0)return qa.ElMessage.warning(`请填写必填项:${B.join("、")}`);const z=new Map,P=new Map;(xe=Ne.value)==null||xe.forEach(Re=>{const Ge=bn(Re);z.set(Ge,Re)}),d==null||d.forEach(Re=>{const Ge=bn(Re);P.set(Ge,Re)});const C=d==null?void 0:d.filter(Re=>z.has(bn(Re))),ne=(Ae=Ne.value)==null?void 0:Ae.filter(Re=>P.has(bn(Re)));return(C==null?void 0:C.length)>0&&(u.columns=(He=V.value)==null?void 0:He.filter(Re=>(Re==null?void 0:Re.label)!=="操作"),u.existRows=ne,u.tableData=C,u.show=!0),u.newRows=d==null?void 0:d.filter(Re=>{const Ge=bn(Re);return!z.has(Ge)}),u.newRows},Ln=e.ref(""),kn=e.ref(null),Tn=async()=>{var d,h,B,z,P,C;try{const ne=await A.quoteApi({related:[{menus:Ee.value,groups:c==null?void 0:c.compName}],platId:parseInt((d=cl.value)==null?void 0:d.plat_id)});if(((h=ne==null?void 0:ne.data)==null?void 0:h.code)===200){kn.value=(B=ne==null?void 0:ne.data)==null?void 0:B.result;const ie=(z=V.value)==null?void 0:z.map(Ae=>(Ae==null?void 0:Ae.prop)||(Ae==null?void 0:Ae.label)),W=Rn(ie,(P=ne==null?void 0:ne.data)==null?void 0:P.result),xe=W==null?void 0:W.flatMap(Ae=>Ae==null?void 0:Ae.quote);(xe==null?void 0:xe.length)>0&&(Ln.value=(C=xe==null?void 0:xe.map(Ae=>Ae==null?void 0:Ae.menus))==null?void 0:C.join("、"))}}catch(ne){throw new Error(ne)}};function Rn(d,h){var B;return(B=h.filter(z=>z.struct&&Array.isArray(z.struct)?z.struct.some(P=>P.words&&Array.isArray(P.words)?P.words.some(C=>d.includes(C)):!1):!1))==null?void 0:B.map(z=>{const P={...z};return P.struct&&Array.isArray(P.struct)&&(P.struct=P.struct.filter(C=>C.words&&Array.isArray(C.words)?C.words.some(ne=>d.includes(ne)):!1)),P})}const Qr=async(d,h)=>{var B,z;try{kn.value||await Tn();const P=h==null?void 0:h.map(ne=>{const ie=Object.keys(ne),W={};return ie.forEach((xe,Ae)=>{W[d[Ae]]=ne[xe]}),W}),C=qn(P);if(!C||(C==null?void 0:C.length)===0)return;u.show||await _(C)}catch(P){throw qa.ElMessage.error("数据导入处理失败"),await A.pageBatchAddApi({platId:parseInt((B=cl==null?void 0:cl.value)==null?void 0:B.plat_id),changeContents:[{tableName:"log",tableContents:[{id:"1",request_method:"Post",request_url:"",request_param:JSON.stringify(t1),request_result:JSON.stringify(P),is_delete:!1,request_table:(z=c==null?void 0:c.related)==null?void 0:z.find(C=>C==null?void 0:C.includes("content")),request_type:"error"}]}]}),new Error(P)}},An=async d=>{var C,ne,ie,W,xe,Ae,He;let h=ae.value;h!=null&&h.find(Re=>(d==null?void 0:d.key)===(Re==null?void 0:Re.key))&&(h=h==null?void 0:h.filter(Re=>(d==null?void 0:d.key)!==(Re==null?void 0:Re.key))),h.push({key:d==null?void 0:d.key,value:[(ne=d==null?void 0:d.value)==null?void 0:ne[((C=d==null?void 0:d.value)==null?void 0:C.length)-1]]});let B=Ha.value;B=B==null?void 0:B.map(Re=>{var Ge,xa;return(Re==null?void 0:Re.type)==="Select"&&(d==null?void 0:d.key)===(Re==null?void 0:Re.prop)&&Array.isArray(Re.value)&&(Ge=Re.value)!=null&&Ge.every(Oa=>typeof Oa=="string")&&(Re.selectValue=(xa=h==null?void 0:h.find(Oa=>(Oa==null?void 0:Oa.key)===(Re==null?void 0:Re.prop)))==null?void 0:xa.value),Re});let z=(W=(ie=B==null?void 0:B.find(Re=>(Re==null?void 0:Re.prop)===(d==null?void 0:d.key)))==null?void 0:ie.optionUrl)==null?void 0:W.menuId,P=B==null?void 0:B.find(Re=>(Re==null?void 0:Re.prop)===(d==null?void 0:d.key));if(z){let Re=await yt(P==null?void 0:P.optionUrl,z),Ge,xa=J.value,Oa=(He=(Ae=(xe=Ha.value)==null?void 0:xe.find(za=>{var Ye;return(Ye=P==null?void 0:P.optionUrl)==null?void 0:Ye.menuId}))==null?void 0:Ae.selectValue)==null?void 0:He[0];if(Re==null||Re.forEach(za=>{var Ye,Qa,ya,el,ke,Ra,fa,Ea,wa,N;if(z){let Y=(Qa=(Ye=Ha.value)==null?void 0:Ye.find(na=>{var _e,sa;return((_e=P==null?void 0:P.optionUrl)==null?void 0:_e.menuId)===((sa=na==null?void 0:na.optionUrl)==null?void 0:sa.menuId)}))==null?void 0:Qa.prop,$e=(el=(ya=B==null?void 0:B.find(na=>(na==null?void 0:na.prop)===Y))==null?void 0:ya.selectValue)==null?void 0:el[0];Y!=null&&Y.includes("·")&&(Y=(ke=Y==null?void 0:Y.split("·"))==null?void 0:ke[0],$e=(wa=(Ea=(fa=d==null?void 0:d.value)==null?void 0:fa[((Ra=d==null?void 0:d.value)==null?void 0:Ra.length)-1])==null?void 0:Ea.split(" "))==null?void 0:wa[0]),xa!=null&&xa.find(na=>(na==null?void 0:na.value)===Oa)?Ge=(N=xa==null?void 0:xa.find(na=>(na==null?void 0:na.value)===Oa))==null?void 0:N.objectValue:za[Y]===$e&&(Ge=za)}}),Ge){let za=B;za=za==null?void 0:za.map(Ye=>{var Qa,ya,el,ke,Ra,fa;return z&&(Ge!=null&&Ge[Ye==null?void 0:Ye.prop])&&X.value==="新增"&&(Ye==null?void 0:Ye.prop)!==(P==null?void 0:P.prop)?Ye.value=(Ge==null?void 0:Ge[Ye==null?void 0:Ye.prop])||(Ge==null?void 0:Ge[(ke=(el=(ya=(Qa=Ye==null?void 0:Ye.optionUrl)==null?void 0:Qa.groupSelect)==null?void 0:ya[1])==null?void 0:el.replaceAll("[",""))==null?void 0:ke.replaceAll("]","")]):Ye.value=(fa=(Ra=Ha.value)==null?void 0:Ra.find(Ea=>(Ea==null?void 0:Ea.prop)===(Ye==null?void 0:Ye.prop)))==null?void 0:fa.value,Ye}),Ha.value=za}}ae.value=h},Wn=async(d,h)=>{var B,z,P,C,ne;if((B=d==null?void 0:d.toString())!=null&&B.includes(".txt")||(z=d==null?void 0:d.toString())!=null&&z.includes(".cpt")||(P=d==null?void 0:d.toString())!=null&&P.includes(".cyd")){const ie=await qa.axios.get(d,{responseType:"blob",headers:{"Content-Type":"application/json"}}),W=new Blob([ie.data],{type:"application/octet-stream;charset=UTF-8"});let xe=URL.createObjectURL(W);ta.value=[{name:(ne=d==null?void 0:d.split("/"))==null?void 0:ne[((C=d==null?void 0:d.split("/"))==null?void 0:C.length)-1],blobUrl:xe}],le.value=!0}else Array.isArray(h)&&(h==null?void 0:h.length)>0&&Me("routeUrl",{isEdit:!1,routerUrl:h})};e.onBeforeUnmount(()=>{gn.value=!1;let d=rn.value;rn.value=d+1});const Rr=e.reactive({prop:"",order:null}),Kn=e.computed(()=>{const d=(Ne.value??[]).slice(),h=Rr.prop||de.prop,B=Rr.order||de.order;if(!h||!B)return d;const z=B==="ascending",P=ne=>{if(h)return ne&&Object.prototype.hasOwnProperty.call(ne,h)?ne[h]:h.includes(".")?h.split(".").reduce((ie,W)=>ie==null?ie:ie[W],ne):ne==null?void 0:ne[h]},C=ne=>{if(ne==null)return{ok:!1,value:NaN};if(typeof ne=="number")return{ok:Number.isFinite(ne),value:ne};const ie=String(ne).trim();if(ie==="")return{ok:!1,value:NaN};const W=ie.replace(/[,\s]/g,"");if(!/^[+-]?(\d+\.?\d*|\.\d+)$/.test(W))return{ok:!1,value:NaN};const xe=Number(W);return{ok:Number.isFinite(xe),value:xe}};return d.sort((ne,ie)=>{const W=P(ne),xe=P(ie);if(W==null&&xe==null)return 0;if(W==null)return z?-1:1;if(xe==null)return z?1:-1;const Ae=C(W),He=C(xe);if(Ae.ok&&He.ok)return z?Ae.value-He.value:He.value-Ae.value;const Re=ke=>{if(ke==null)return{ok:!1,value:NaN};const Ra=String(ke).trim();if(Ra==="")return{ok:!1,value:NaN};const fa=Ra.match(/^(-)?(\d+):(\d{1,2}):(\d{1,2})$/);if(!fa)return{ok:!1,value:NaN};const Ea=fa[1]?-1:1,wa=Number(fa[2]),N=Number(fa[3]),Y=Number(fa[4]);return[wa,N,Y].some($e=>Number.isNaN($e))?{ok:!1,value:NaN}:N>=60||Y>=60?{ok:!1,value:NaN}:{ok:!0,value:Ea*(wa*3600+N*60+Y)}},Ge=Re(W),xa=Re(xe);if(Ge.ok&&xa.ok)return z?Ge.value-xa.value:xa.value-Ge.value;const Oa=new Date(W).getTime(),za=new Date(xe).getTime(),Ye=!Number.isNaN(Oa),Qa=!Number.isNaN(za);if(Ye&&Qa)return z?Oa-za:za-Oa;const ya=String(W),el=String(xe);return z?ya.localeCompare(el):el.localeCompare(ya)})}),fn=e.computed(()=>{var B;const d=(ge.currentPage-1)*ge.pageSize,h=d+ge.pageSize;return Me("getSliceContLength",ge),(B=Kn.value)==null?void 0:B.slice(d,h)}),Ni=d=>{ge.currentPage=d,Me("getSliceContLength",ge)},Lo=d=>{var z;ge.pageSize=d;const h=((z=Ne.value)==null?void 0:z.length)??0,B=d>0?Math.ceil(h/d):1;ge.currentPage>B&&(ge.currentPage=B||1,qa.ElMessage.warning("当前页超出范围,已自动跳转到最后一页")),Me("getSliceContLength",ge)},Ro=({prop:d,order:h})=>{Rr.prop=d,Rr.order=h,ge.currentPage=1};function En(d){const h=[];function B(z,P=""){z.forEach(C=>{C.children&&C.children.length>0?B(C.children,C.prop):h.push(C.prop)})}return B(d),h}const $o=(d,h)=>{var ie,W,xe,Ae;let B=(W=(ie=V.value)==null?void 0:ie.map(He=>He==null?void 0:He.prop))==null?void 0:W.filter(He=>He!=="operate");((xe=V.value)==null?void 0:xe.some(He=>{var Re;return((Re=He==null?void 0:He.children)==null?void 0:Re.length)>0}))&&(B=En((Ae=V.value)==null?void 0:Ae.filter(He=>(He==null?void 0:He.prop)!=="operate")));let P;if(P=(d==null?void 0:d.length)===(B==null?void 0:B.length)?d:d.slice(0,B==null?void 0:B.length),!(P==null?void 0:P.every(He=>B==null?void 0:B.find(Re=>He===Re))))return qa.ElMessage.error("导入的数据表头不匹配");Qr(P,h)},Vo=(d,h)=>{var P;const B=d==null?void 0:d.filter(C=>C!=="序号"),z=h==null?void 0:h.map(C=>{const ne=Object.entries(C);return ne.shift(),Object.fromEntries(ne)});oa.setRefreshCurStructure(!1),((P=V.value)==null?void 0:P.length)===0||$o(B,z)},Fo=(d,h,B,z)=>{const P=[],C=[],ne=xe=>Object.keys(xe).length;for(const xe in d)if(d[xe]!==void 0){const Ae=d[xe],He=[];for(const[Re,Ge]of Object.entries(Ae))He.push(Ge),C.length<ne(Ae)&&C.push(Re);P.push(He)}P.unshift(C);const ie=he.utils.aoa_to_sheet(P),W=he.utils.book_new();he.utils.book_append_sheet(W,ie,z),he.writeFileSync(W,`${h}.xlsx`),Kl.value=[]},Ti=async(d,h,B,z=!1,P)=>{try{oa.setRefreshCurStructure(!1)}catch(C){qa.ElMessage.error(C)}},Yi=async(d,h)=>{await Ti()},Hr=async(d,h)=>{await Ti("columnType",h,d,!1)},Po=async({newRow:d,targetIndex:h})=>{var P;if(!pa(c.config,{type:ce.TABLE}))return;const z=(ge.currentPage-1)*ge.pageSize+(h??0);d._isTemp=!0;try{(d.sort===void 0||d.sort===null||String(d.sort).trim()==="")&&(d.sort=Zn(z,Ne.value||[]))}catch{}Ne.value.splice(z,0,d),await e.nextTick(),v.value.has(d.id)||v.value.set(d.id,A.cloneDeep(d)),Ne.value=(P=Ne.value)==null?void 0:P.map(C=>({...C,tableEditType:(C==null?void 0:C.id)===d.id?"edit":(C==null?void 0:C.tableEditType)??"text"})),s.value.add(d.id),$l.value=!0},jo=(d,h,B,z=[])=>(!Array.isArray(h)||h.length===0||h.forEach(P=>{const C=P==null?void 0:P.prop;if(!C)return;let ne=d==null?void 0:d[C];if(ne==null||String(ne).trim()==="")return;ne=String(ne);const ie=new Set([...(Array.isArray(B)?B:[]).filter(Ae=>(Ae==null?void 0:Ae.id)!==(d==null?void 0:d.id)).map(Ae=>Ae==null?void 0:Ae[C]).filter(Ae=>Ae!=null).map(Ae=>String(Ae)),...(Array.isArray(z)?z:[]).map(Ae=>Ae==null?void 0:Ae[C]).filter(Ae=>Ae!=null).map(Ae=>String(Ae))]);if(!ie.has(ne))return;let W=1,xe="";for(;xe=`${ne}(${W})`,!!ie.has(xe);)W++;d[C]=xe}),d),Ai=async()=>{var P,C,ne,ie,W,xe,Ae,He;const d=Array.from(s.value||[]);if(d.length===0)return;const h=(C=he.getColumnChild((P=A.cloneDeep(V.value))==null?void 0:P.filter(Re=>(Re==null?void 0:Re.label)!=="操作")))==null?void 0:C.filter(Re=>(Re==null?void 0:Re.required)===!0);if((h==null?void 0:h.length)>0)for(let Re=0;Re<d.length;Re++){const Ge=d[Re],xa=(ne=Ne.value)==null?void 0:ne.find(Oa=>(Oa==null?void 0:Oa.id)===Ge);if(xa)for(let Oa=0;Oa<h.length;Oa++){const za=h[Oa],Ye=za==null?void 0:za.prop,Qa=(za==null?void 0:za.label)??Ye,ya=xa==null?void 0:xa[Ye];if(ya===""||ya===null||ya===void 0||Array.isArray(ya)&&ya.length===0){qa.ElMessage.error(`${Qa}不能为空`);return}}}const B=[],z=[];if(d.forEach(Re=>{var Qa;const Ge=(Qa=Ne.value)==null?void 0:Qa.find(ya=>(ya==null?void 0:ya.id)===Re);if(!Ge)return;if(Ge!=null&&Ge._isTemp){const el=(he.getAllLeafNodes(V.value)||[]).filter(N=>(N==null?void 0:N.mainKey)===!0||(N==null?void 0:N.isMainKey)===!0),ke=Ne.value.findIndex(N=>(N==null?void 0:N.id)===Re),Ra=ke>=0?ke+1:Ne.value.length+1;jo(Ge,el,Ne.value,B);const fa={id:Ra.toString()};(Ge==null?void 0:Ge.sort)!==void 0&&(Ge==null?void 0:Ge.sort)!==null&&String(Ge.sort).trim()!==""?fa.sort=String(Ge.sort):fa.sort=Zn(ke>=0?ke:Ne.value.length-1,Ne.value||[]),(he.getAllLeafNodes(V.value)||[]).filter(N=>(N==null?void 0:N.type)!=="operate"&&(N==null?void 0:N.label)!=="操作"&&(N==null?void 0:N.prop)!=="operate").forEach(N=>{const Y=N==null?void 0:N.prop;if(Y){const $e=Ge[Y];$e!==void 0?fa[Y]=$e??"":fa[Y]=""}}),B.push(fa);return}const Oa=(he.getAllLeafNodes(V.value)||[]).filter(ya=>(ya==null?void 0:ya.type)!=="operate"&&(ya==null?void 0:ya.label)!=="操作"&&(ya==null?void 0:ya.prop)!=="operate"),za=new Set(Oa.map(ya=>ya==null?void 0:ya.prop).filter(Boolean)),Ye={};for(const ya of za)Object.prototype.hasOwnProperty.call(Ge,ya)&&(Ye[ya]=Ge[ya]);z.push({id:Ge.id,value:{tableData:Ye}})}),oa.setTableLoading(c==null?void 0:c.index),z.length>0){const Re=z.map(xa=>{const Oa={id:xa.id,...xa.value.tableData};return delete Oa._isOCRRow,delete Oa._ocrTableId,delete Oa._isTemp,delete Oa.tableEditType,delete Oa.index,Oa}),Ge=[{tableName:((ie=c==null?void 0:c.related)==null?void 0:ie.find(xa=>xa==null?void 0:xa.includes("content")))??"content_"+(c==null?void 0:c.index),tableContents:Re}];try{await A.pageBatchUpdateApi({platId:parseInt((W=cl.value)==null?void 0:W.plat_id),changeContents:Ge})}catch(xa){qa.ElMessage.error(((Ae=(xe=xa==null?void 0:xa.response)==null?void 0:xe.data)==null?void 0:Ae.message)||(xa==null?void 0:xa.message)||"保存失败"),oa.setTableLoading(!1);return}}if(B.length>0){const Re={fixContent:B,buttonName:"新增",relatedContents:c==null?void 0:c.related,name:c==null?void 0:c.compName,columns:V.value};Me("change",Re)}qa.ElMessage.success("保存成功"),s.value.clear(),v.value.clear(),Ne.value=(He=Ne.value)==null?void 0:He.map(Re=>({...Re,tableEditType:"text"})),$l.value=!1,oa.setRefreshCurStructure(!0)},Ho=()=>{var h;const d=Array.from(s.value||[]);if(d.length===0){$l.value=!1;return}d.forEach(B=>{var C,ne;const z=v.value.get(B),P=(C=Ne.value)==null?void 0:C.find(ie=>(ie==null?void 0:ie.id)===B);if(P!=null&&P._isTemp){Ne.value=Ne.value.filter(ie=>(ie==null?void 0:ie.id)!==P.id);return}if(z){const ie=(ne=Ne.value)==null?void 0:ne.findIndex(W=>(W==null?void 0:W.id)===B);ie!==-1&&(Ne.value[ie]={...Ne.value[ie],...z})}}),s.value.clear(),v.value.clear(),Ne.value=(h=Ne.value)==null?void 0:h.map(B=>({...B,tableEditType:"text"})),$l.value=!1},zi=e.ref(!1),Ji=async d=>{var P,C,ne,ie;if(!$l.value||d!=null&&d.isComposing||(d==null?void 0:d.key)!=="Enter")return;const h=d==null?void 0:d.target;if(((C=(P=h==null?void 0:h.tagName)==null?void 0:P.toLowerCase)==null?void 0:C.call(P))==="textarea")return;const z=document.getElementById("excel-table");z&&!z.contains(h)||((ne=h==null?void 0:h.blur)==null||ne.call(h),(ie=d.preventDefault)==null||ie.call(d),await e.nextTick(),await Xi())},Xi=async()=>{if(H.value){$l.value=!1;return}if(!zi.value){zi.value=!0;try{Array.from(s.value||[]).length>0?await Ai():$l.value=!1}finally{Promise.resolve().then(()=>{zi.value=!1})}}},Uo=d=>{Kl.value=d},Zi=(d,h)=>{fr.value===h?Lr.value=!1:Lr.value=!0,fr.value=h==null?void 0:h.changeProp},si=d=>{if(!d)return;const{item:h,value:B}=d,z=Ha.value.find(P=>P.prop==h.prop);z&&z.contents.push({label:B,value:B})},nn=e.computed(()=>{var B,z,P;const d=(B=V.value)==null?void 0:B.some(C=>C==null?void 0:C.filterable);return document.documentElement.style.setProperty("--ssTable-header-filter-display",d?"inline-block":"none"),(P=(z=V.value)==null?void 0:z.filter(C=>(C==null?void 0:C.label)!=="操作"))==null?void 0:P.map(C=>({...C,filterable:!!(C!=null&&C.filterable),showSummary:!!(C!=null&&C.showSummary),operable:!!(C!=null&&C.operable),fixed:C==null?void 0:C.fixed}))}),Gn=async(d,h,B)=>{const z=A.cloneDeep(V.value);await e.nextTick();const P=z==null?void 0:z.map(ne=>(B==null?void 0:B.label)===(ne==null?void 0:ne.label)?{...ne,[h]:d}:ne),C=Mi(P);await fs(c.index,C),V.value=P,fe.value=C},Mi=d=>{var P;const h=d||[];return((P=he.getAllLeafNodes(h)||[])==null?void 0:P.filter(C=>(C==null?void 0:C.prop)&&(C==null?void 0:C.type)!=="operate"&&(C==null?void 0:C.label)!=="操作"&&(C==null?void 0:C.prop)!=="operate")).map(C=>{const{prop:ne}=C;return r0(ne,C)})},Qi=async d=>{let h=await i0(c.index);h||(h=Mi(d)),fe.value=h},eo=async(d,h)=>{const B=A.cloneDeep(V.value),z=ne=>Array.isArray(ne)?ne.map(ie=>{const W=Array.isArray(ie==null?void 0:ie.children)&&ie.children.length>0,xe={...ie};return(xe==null?void 0:xe.prop)==="operate"||(xe==null?void 0:xe.label)==="操作"||(xe==null?void 0:xe.type)==="operate"?(xe.sortable=!1,xe.filterable=!1,xe.operable=!1):xe.sortable=W?!1:!!d,W&&(xe.children=z(xe.children)),xe}):ne,P=z(B),C=Mi(P);await fs(c.index,C),V.value=P,fe.value=C,await e.nextTick(),rn.value=rn.value+1},ao=()=>{Z.value=!1},Yn=d=>{Me("clickTrigger",d)},lo=async d=>{var C,ne,ie,W,xe,Ae,He,Re,Ge,xa,Oa,za,Ye,Qa,ya;const h=d==null?void 0:d.row,B=d==null?void 0:d.rowData,z=d==null?void 0:d.suffix;if((C=h==null?void 0:h.toString())!=null&&C.includes(".urdf")||d!=null&&d.isUrdf||z!=null&&z.includes(".urdf")){if(h.includes(",")){qa.ElMessage.error("当前版本仅允许单个urdf预览!");return}if(ue(h)){const ke={files:[Pe(h)],data:{}};Le(ke);return}_a.value=[{url:h,extension:Se(h)}],ye.value=!0,T.value={data:A.cloneDeep(B)},Fe.value=!0;return}let P=[];if((ne=h==null?void 0:h.toString())!=null&&ne.includes(".stl")||(ie=h==null?void 0:h.toString())!=null&&ie.includes(".STL")||(W=h==null?void 0:h.toString())!=null&&W.includes(".obj")||(xe=h==null?void 0:h.toString())!=null&&xe.includes(".mtl")){const el=(Ae=h==null?void 0:h.toString())==null?void 0:Ae.split(","),ke=la(el),Ra=ke==null?void 0:ke[0];if(ue(Ra==null?void 0:Ra.extension)){Le({files:ke,data:{}});return}_a.value=ke,ye.value=!1,Fe.value=!0;return}if((He=h==null?void 0:h.toString())!=null&&He.includes(".stl")||(Re=h==null?void 0:h.toString())!=null&&Re.includes(".STL")||(Ge=h==null?void 0:h.toString())!=null&&Ge.includes(".obj")||(xa=h==null?void 0:h.toString())!=null&&xa.includes(".mtl")||z!=null&&z.includes(".stl")||z!=null&&z.includes(".STL")||z!=null&&z.includes(".obj")||z!=null&&z.includes(".mtl")){let el,ke=[],Ra={};if(Array.isArray(h)?el=h:el=h==null?void 0:h.split(","),el==null||el.forEach(fa=>{fa.includes(".mtl")?ke.push(fa):Ra.blob=Ra.blob?Ra.blob+","+fa:fa}),(ke==null?void 0:ke.length)>0&&(Ra.mtlBlobs=ke),z&&(Ra.suffix=z),(za=(Oa=Object.values(Ra))==null?void 0:Oa[0])!=null&&za.includes("http:"))P.push(Ra);else{const fa=new Blob([Ra.blob],{type:"application/octet-stream;charset=UTF-8"});let Ea=URL.createObjectURL(fa),wa="";(Ye=h==null?void 0:h.split("/"))==null||Ye.forEach((N,Y)=>{var $e;Y===(($e=h==null?void 0:h.split("/"))==null?void 0:$e.length)-1&&(wa=N)}),(Qa=Ra.blob)!=null&&Qa.includes(".stl")&&(wa=(wa==null?void 0:wa.replaceAll(">",""))+".urdf"),ta.value=[{name:wa,blobUrl:Ea}],le.value=!0}}else{const el=await qa.axios.get(h,{responseType:"blob",headers:{"Content-Type":"application/json"}}),ke=new Blob([el.data],{type:"application/octet-stream;charset=UTF-8"});let Ra=URL.createObjectURL(ke),fa="";if((ya=h==null?void 0:h.split("/"))==null||ya.forEach((Ea,wa)=>{var N;wa===((N=h==null?void 0:h.split("/"))==null?void 0:N.length)-1&&(fa=Ea)}),ue(fa)){const Ea=U(fa),wa=Pe(h);Le({files:[wa],data:{trackFileType:Ea}});return}ta.value=[{name:fa,blobUrl:Ra}],le.value=!0}(P==null?void 0:P.length)>0&&n.setBlobUrls(P)},Jn=d=>{var z,P,C,ne;if(d!=null&&d.downloadUrl)return d==null?void 0:d.name;const h=(ne=(z=d==null?void 0:d.url)==null?void 0:z.split("."))==null?void 0:ne[((C=(P=d==null?void 0:d.url)==null?void 0:P.split("."))==null?void 0:C.length)-1];return(d==null?void 0:d.name)+"."+h},ro=d=>{if(!d)return"未知文件";try{const z=Jn(d);if(typeof z=="string"&&z.includes("."))return z}catch{}const h=(d==null?void 0:d.fileName)||(d==null?void 0:d.name)||"未知文件",B=(d==null?void 0:d.suffix)||"";return h.includes(".")?h:`${h}${B}`},no=d=>{if(d==null||typeof d=="number"||typeof d!="string")return d;const h=d.match(/^(\d+)\_(\d+)$/);if(!h)return d;const B=Number(h[1]),z=Number(h[2]);return!Number.isFinite(B)||!Number.isFinite(z)?d:String(B*1e3+z)},Xn=d=>{if(d==null)return null;const h=String(d).trim();if(!h)return null;const B=Number(h);return Number.isFinite(B)?B:null},qo=d=>{if(d==null)return null;const h=String(d).trim();if(!h)return null;if(/^\d+$/.test(h)){const P=Number(h);return Number.isFinite(P)?h.length<=10?P*1e3:P:null}const B=h.includes("T")?h:h.replace(" ","T"),z=Date.parse(B);return Number.isFinite(z)?z:null},ci=(d,h=[])=>{const B=Array.isArray(d)?d.slice():[];if(B.length<=1)return B;const z=new Map((h||[]).map((ne,ie)=>[String(ne),ie])),P=B.some(ne=>Xn(ne==null?void 0:ne.sort)!==null),C=B.map((ne,ie)=>({r:ne,idx:ie,id:String((ne==null?void 0:ne.id)??""),sortVal:Xn(ne==null?void 0:ne.sort),createTimeMs:qo(ne==null?void 0:ne.create_time),prevIdx:z.has(String(ne==null?void 0:ne.id))?z.get(String(ne==null?void 0:ne.id)):Number.POSITIVE_INFINITY}));return C.sort((ne,ie)=>{if(P){const Ae=ne.sortVal,He=ie.sortVal;if(Ae===null&&He!==null)return 1;if(Ae!==null&&He===null)return-1;if(Ae!==null&&He!==null&&Ae!==He)return Ae-He}const W=ne.createTimeMs,xe=ie.createTimeMs;return W!==null&&xe!==null&&W!==xe?xe-W:W!==null&&xe===null?-1:W===null&&xe!==null?1:ne.prevIdx!==ie.prevIdx?ne.prevIdx-ie.prevIdx:ne.idx-ie.idx}),C.map(ne=>ne.r)},Zn=(d,h=[])=>{const B=h==null?void 0:h[d-1],z=h==null?void 0:h[d],P=Xn(B==null?void 0:B.sort),C=Xn(z==null?void 0:z.sort);let ne=null;P!==null&&C!==null&&C>P?ne=(P+C)/2:P!==null?ne=P+1:C!==null?ne=Math.max(C-1,0):ne=(d??0)+1;const ie=Number(ne.toFixed(6));return String(Number.isFinite(ie)?ie:ne)},ui=async d=>{let h=null,B=null;if(d!=null&&d.id){const P=A.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});try{const C=await A.platformDownloadFile(d);h=URL.createObjectURL(C.data),B=ro(d)}finally{P.close()}}else if(d!=null&&d.downloadUrl){const P=await di(),C=A.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),ne=await qa.axios.post(d==null?void 0:d.url,null,{responseType:"blob",headers:{Authorization:P,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}).finally(()=>{C.close()}),ie=new Blob([ne.data],{type:"application/octet-stream;charset=UTF-8"});h=URL.createObjectURL(ie),B=d==null?void 0:d.name}else{const P=await A.platformDownloadFile({url:d==null?void 0:d.url});!d.url.toUpperCase().includes(".OBJ")&&!d.url.toUpperCase().includes(".STL")&&!d.url.toUpperCase().includes(".MTL")&&!d.url.toUpperCase().includes(".URDF")?(h=URL.createObjectURL(P.data),B=Jn(d)):h=d==null?void 0:d.url}if(ue(h)){const P={row:`${h}`,suffix:Se(B)};lo(P);return}const z={name:B,blobUrl:h};ta.value=[z],le.value=!0},Wo=async d=>{let h=null,B=null;if(d!=null&&d.id){const C=await A.platformDownloadFile(d);h=URL.createObjectURL(C.data),B=ro(d)}else if(d!=null&&d.downloadUrl){const C=await di(),ne=await qa.axios.post(d==null?void 0:d.url,null,{responseType:"blob",headers:{Authorization:C,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}),ie=new Blob([ne.data],{type:"application/octet-stream;charset=UTF-8"});h=URL.createObjectURL(ie),B=d==null?void 0:d.name}else{const C=await A.platformDownloadFile({url:d==null?void 0:d.url});h=URL.createObjectURL(C.data),B=Jn(d)}const z={name:B,blobUrl:h},P=document.createElement("a");P.href=z.blobUrl,P.download=z.name,P.style.display="none",document.body.appendChild(P),P.click(),setTimeout(()=>{document.body.removeChild(P)},100)},Ii=(d,h)=>{var z;if(Object.values(h).length===0)return;let B=d;return Object.values(h).find(P=>{var C,ne,ie;return((C=P==null?void 0:P.toString())==null?void 0:C.includes(".txt"))||((ne=P==null?void 0:P.toString())==null?void 0:ne.includes(".cpt"))||((ie=P==null?void 0:P.toString())==null?void 0:ie.includes(".obj"))})?B=[...d,Be.value]:(z=c==null?void 0:c.config)!=null&&z.allowMove&&(B=[...d,{label:"迁移"}]),B},Ko=()=>{I.value=!0},Go=e.ref([]),io=async(d,h,B=!1)=>{var ne,ie,W,xe;if(!d)return;if(B){Ne.value=[...Ta.value.values()].filter(Ae=>Object.values(Ae).some(He=>typeof He=="string"?He==null?void 0:He.toLowerCase().includes(h==null?void 0:h.toLowerCase()):!1));return}let z={};for(let Ae in d)(d==null?void 0:d[Ae])!==""&&(z[Ae]=d==null?void 0:d[Ae]);if(JSON.stringify(z)==="{}"){Ne.value=Array.from(((ne=Ta.value)==null?void 0:ne.values())??[]);return}let P=(ie=c==null?void 0:c.related)==null?void 0:ie.find(Ae=>Ae==null?void 0:Ae.includes("content_")),C=await A.getFillFind({platId:parseInt((W=cl==null?void 0:cl.value)==null?void 0:W.plat_id),tableName:P,params:z});C=(xe=C==null?void 0:C.data)==null?void 0:xe.result,Ne.value=C,oa.setTableLoading(!1)},Qn=async d=>{var B,z;if(!pa(c.config,{type:ce.TABLE})||!d)return;((B=Array.from(s.value))==null?void 0:B.length)>0&&await Ai();const h=d==null?void 0:d.id;h!=null&&(s.value.clear(),v.value.clear(),v.value.has(h)||v.value.set(h,A.cloneDeep(d)),Ne.value=(z=Ne.value)==null?void 0:z.map(P=>({...P,tableEditType:(P==null?void 0:P.id)===h?"edit":"text"})),s.value.add(h),$l.value=!0)},xn=async(d,h,B,z)=>{z!=null&&z.isExistChild&&Me("clickMainKey",d,B,V.value)},oo=()=>{le.value=!1},Oi=d=>{Me("rowClick",d)};e.watch(()=>c.changedContent,()=>{var B,z;if(!c.changedContent)return;let d=(B=Ne.value)==null?void 0:B.map(P=>{var C;return P.id===((C=c.changedContent)==null?void 0:C.id)&&(P={...c.changedContent,id:c.changedContent.newId?c.changedContent.newId:c.changedContent.id},delete P.newId),P});const h=(z=c.itemData)==null?void 0:z.map(P=>((P==null?void 0:P.key)==="tableContents"&&(P.contents=d),P));Ne.value=d,Me("contentChange",{contents:h,index:c.index}),Me("change",{content:d,index:c==null?void 0:c.index,buttonName:"",id:c==null?void 0:c.index})},{deep:!0,immediate:!0});const Yo=()=>{},Jo=async()=>{const d=Ee.value,h=sessionStorage.getItem("systemKey"),B=await he.getItemData(d,h,""),z=(B==null?void 0:B.find(ie=>(ie==null?void 0:ie.name)==="方法明细"))||(B==null?void 0:B[0]),P=(z==null?void 0:z.compData)||[],C=P==null?void 0:P.find(ie=>{const W=ie==null?void 0:ie.key;return W==="formContent"||W==="tableContents"});return C==null?void 0:C.contents},di=async()=>{const h=qa.Local.get("access-token");return h?`Bearer ${h}`:""},Xo=async(d,{token:h,inputData:B}={})=>await qa.axios.post(d,B,{headers:{Authorization:h}}).catch(P=>(te.setImportLoading(!1),Promise.reject(P))),Zo=d=>{var z;let h={};const B=[];return h.form={},(z=A.cloneDeep(d))==null||z.forEach((P,C)=>{var ne,ie,W,xe,Ae,He,Re,Ge,xa,Oa,za,Ye,Qa,ya;if((P==null?void 0:P.comp)==="Table"){(ie=(ne=P==null?void 0:P.compData)==null?void 0:ne.find(fa=>(fa==null?void 0:fa.key)==="header"))==null||ie.contents;let el=(Ae=(xe=(W=P==null?void 0:P.compData)==null?void 0:W.find(fa=>(fa==null?void 0:fa.key)==="tableContents"))==null?void 0:xe.contents)==null?void 0:Ae.map(fa=>fa.slice(1));(Oa=(xa=(Ge=(Re=(He=P==null?void 0:P.compData)==null?void 0:He.find(fa=>(fa==null?void 0:fa.key)==="header"))==null?void 0:Re.contents)==null?void 0:Ge[0])==null?void 0:xa[0])==null||Oa.label;let ke=(Ye=(za=P==null?void 0:P.compData)==null?void 0:za.find(fa=>(fa==null?void 0:fa.key)==="header"))==null?void 0:Ye.contents,Ra=[];el==null||el.forEach(fa=>{let Ea=[];fa==null||fa.forEach((wa,N)=>{var $e;let Y={};(($e=ke[N])==null?void 0:$e.label)!=="操作"&&(Y[ke[N].label]=wa,Ea.push(Y))}),Ra.push(Ea)}),h[P.name]=Ra}else{const el=(ya=(Qa=P.compData)==null?void 0:Qa.find(ke=>(ke==null?void 0:ke.key)==="formContent"))==null?void 0:ya.contents;el==null||el.forEach(ke=>{var Ra,fa;if(ke.prop!==""){let Ea=ke==null?void 0:ke.value;Array.isArray(Ea)?Ea=((Ra=Ea==null?void 0:Ea[0])==null?void 0:Ra.oldUrl)||"http://222.92.178.198:62001/"+((fa=Ea==null?void 0:Ea[0])==null?void 0:fa.url):Ea=Ea.toString(),ke={key:(ke==null?void 0:ke.prop)??(ke==null?void 0:ke.label),value:Ea},B.push(ke)}})}}),h.form=he.getFormContents(B),h},Qo=d=>{const h=[],B=z=>{z&&typeof z=="object"&&!Array.isArray(z)?Object.values(z).forEach(B):h.push(z)};return B(d),h},et=async(d,h,B)=>{var ke,Ra,fa,Ea,wa,N,Y,$e,na,_e,sa,Ba,nl,Wa,ul,dl,Vl;te.setImportLoading(!0),oa.setFreshContent(!1);let z=await Jo().catch(Ua=>(te.setImportLoading(!1),Promise.reject(Ua)));z=z==null?void 0:z.filter(Ua=>{var vl;return((vl=Ua==null?void 0:Ua.find(Pa=>Pa==null?void 0:Pa.id))==null?void 0:vl.id)===(h==null?void 0:h.id)});let P=he.getEqualChild([(ke=V.value)==null?void 0:ke.filter(Ua=>(Ua==null?void 0:Ua.label)!=="操作")]);const C=(fa=(Ra=he.tableToForm(z,P))==null?void 0:Ra[0])==null?void 0:fa.find(Ua=>{const vl=Ua==null?void 0:Ua.key;return vl==="Interface"||vl==="方法体"}),ne=C==null?void 0:C.value;if(!ne){console.log("未搜索到isMain, 缺少算法执行接口"),te.setImportLoading(!1);return}const ie=V.value?he.getEqualChild([V.value]):[],W=ie.find(Ua=>{const vl=Ua==null?void 0:Ua.prop;return vl==="Input1"||vl==="输入数据.输入1"||vl==="样本输入数据"}),xe=W==null?void 0:W.prop;let Ae=h==null?void 0:h[xe];const He=await di().catch(Ua=>(te.setImportLoading(!1),Promise.reject(Ua)));let Re=!0,Ge="";(Ea=V.value)==null||Ea.forEach(Ua=>{(Ua==null?void 0:Ua.prop)===xe&&(Re=!!(Ua!=null&&Ua.childPath),Ge=Ua==null?void 0:Ua.childPath)});let xa="";if(Re){let Ua=(N=(wa=V.value)==null?void 0:wa.find(tl=>(tl==null?void 0:tl.isMainKey)===!0))==null?void 0:N.prop;xa=h==null?void 0:h[Ua];let vl=Ge==null?void 0:Ge.split(w),Pa=[];vl==null||vl.forEach((tl,_l)=>{(vl==null?void 0:vl.length)-1===_l&&Pa.push(xa),Pa.push(tl)}),Pa=Pa==null?void 0:Pa[0];let ol=await he.getItemData(Pa,sessionStorage.getItem("systemKey"),""),Ka=ol==null?void 0:ol.filter(tl=>(tl==null?void 0:tl.name)===xe);Ka=Ka==null?void 0:Ka.map(tl=>{var _l;return tl.compData=(_l=tl==null?void 0:tl.compData)==null?void 0:_l.map(Bl=>{var xr;return(Bl==null?void 0:Bl.key)==="tableContents"&&(Bl.contents=(xr=Bl==null?void 0:Bl.contents)==null?void 0:xr.filter(Ll=>(Ll==null?void 0:Ll[1])===(h==null?void 0:h[xe]))),Bl}),tl}),(!Ka||(Ka==null?void 0:Ka.length)===0)&&(Ka=ol,Ka=Ka==null?void 0:Ka.map(tl=>{var _l;return tl.compData=(_l=tl==null?void 0:tl.compData)==null?void 0:_l.map(Bl=>{var xr;return(Bl==null?void 0:Bl.key)==="tableContents"&&(Bl.contents=(xr=Bl==null?void 0:Bl.contents)==null?void 0:xr.filter(Ll=>{var gl,Al;return(Ll==null?void 0:Ll[1])===(h==null?void 0:h[(Al=(gl=V==null?void 0:V.value)==null?void 0:gl[0])==null?void 0:Al.prop])})),Bl}),tl})),Ae=Zo(Ka)}const Oa=await Xo(ne,{token:He,inputData:Ae}).catch(Ua=>(te.setImportLoading(!1),Promise.reject(Ua))),za=(Y=Oa==null?void 0:Oa.data)==null?void 0:Y.data,Ye=ie.find(Ua=>(Ua==null?void 0:Ua.prop)==="Output1"),Qa=Ye==null?void 0:Ye.prop;let ya=[],el=[];if(za&&(($e=Object.values(za))==null?void 0:$e.length)>0){let Ua=[];const vl=new FormData,Pa=(na=Qo(za))==null?void 0:na.map(async Ka=>{var tl,_l;if(!Array.isArray(Ka)&&(Ka!=null&&Ka.includes("http"))){let Bl=await qa.axios.get(Ka,{responseType:"blob"}),xr=(_l=Ka==null?void 0:Ka.split("/"))==null?void 0:_l[((tl=Ka==null?void 0:Ka.split("/"))==null?void 0:tl.length)-1];vl.append("files",Bl.data,xr)}else Ua.push(Ka)});if(await Promise.all(Pa),!he.isFormDataEmpty(vl)){let Ka=await A.uploadAmountApi(vl),tl=(sa=(_e=Ka==null?void 0:Ka.data)==null?void 0:_e.result)==null?void 0:sa.map(_l=>{var Bl,xr,Ll,gl,Al,Jl;return{name:(Jl=(Al=(gl=(Bl=_l==null?void 0:_l.url)==null?void 0:Bl.split("/"))==null?void 0:gl[((Ll=(xr=_l==null?void 0:_l.url)==null?void 0:xr.split("/"))==null?void 0:Ll.length)-1])==null?void 0:Al.split("."))==null?void 0:Jl[0],url:_l==null?void 0:_l.url}});Ua=[...Ua,...tl]}let ol={};for(let Ka in h)Ka!=="id"&&(ol[Ka]=h[Ka]);ol[Qa]=Ua,el.push({id:h==null?void 0:h.id,value:{tableData:ol}})}if((el==null?void 0:el.length)>0){const Ua=el.map(Pa=>{const ol={id:Pa.id,...Pa.value.tableData};return delete ol._isOCRRow,delete ol._ocrTableId,delete ol._isTemp,delete ol.tableEditType,delete ol.index,ol}),vl=[{tableName:(Ba=c==null?void 0:c.related)==null?void 0:Ba.find(Pa=>Pa==null?void 0:Pa.includes("content")),tableContents:Ua}];await A.pageBatchUpdateApi({platId:parseInt((nl=cl.value)==null?void 0:nl.plat_id),changeContents:vl})}if((ya==null?void 0:ya.length)>0)try{await A.pageBatchAddApi({platId:parseInt((Wa=cl.value)==null?void 0:Wa.plat_id),changeContents:[{tableName:(ul=c==null?void 0:c.related)==null?void 0:ul.find(Ua=>Ua==null?void 0:Ua.includes("content")),tableContents:ya.map(Ua=>{var Pa,ol,Ka;const vl={id:((Pa=Ua==null?void 0:Ua.key)==null?void 0:Pa.id)??((ol=Ua==null?void 0:Ua.key)==null?void 0:ol.rowId)??(Ua==null?void 0:Ua.id),...((Ka=Ua==null?void 0:Ua.value)==null?void 0:Ka.tableData)||{}};return delete vl._isOCRRow,delete vl._ocrTableId,delete vl._isTemp,delete vl.tableEditType,delete vl.index,Object.keys(vl).forEach(tl=>{tl==="证书附件"&&Array.isArray(vl[tl])&&(vl[tl]=JSON.stringify(vl[tl]))}),vl})}]})}catch(Ua){qa.ElMessage.error(((Vl=(dl=Ua==null?void 0:Ua.response)==null?void 0:dl.data)==null?void 0:Vl.message)||(Ua==null?void 0:Ua.message)||"保存失败"),oa.setTableLoading(!1);return}$i(!0),te.setImportLoading(!1),oa.setFreshContent(!0)},to=(d,h)=>(d=d==null?void 0:d.map(B=>{var z,P;return B!=null&&B.children&&((z=B.children)!=null&&z.find(C=>C.id===(h==null?void 0:h.id))?B.children=(P=B.children)==null?void 0:P.filter(C=>(C==null?void 0:C.id)!==(h==null?void 0:h.id)):B.children=to(B.children,h)),B}),d),pi=e.ref(!1),at=()=>{pi.value=!0},o=async d=>{var B,z,P,C;pi.value=!1;const h=Array.isArray(d)?d:d?[d]:[];if(h.length!==0)for(const ne of h){const ie={name:ne.name||`capture-${Date.now()}.jpg`,url:URL.createObjectURL(ne),raw:ne,uid:Date.now()+Math.random()};ka.value.push(ie),kr(ie,"uploading"),Dl(ie,0);try{const W=new FormData;W.append("file",ne,ie.name);const xe=await A.platformUploadFile(W);ie.uploadResult=((B=xe==null?void 0:xe.data)==null?void 0:B.result)||{name:ie.name,url:"",fileName:ie.name},Fl({name:((z=ie.uploadResult)==null?void 0:z.name)||ie.name,url:((P=ie.uploadResult)==null?void 0:P.url)||"",id:(C=ie.uploadResult)==null?void 0:C.id}),kr(ie,"uploaded"),Dl(ie,100)}catch(W){console.error("文件上传失败:",W),qa.ElMessage.error(`文件 ${ie.name} 上传失败,请重试`),kr(ie,"pending"),Dl(ie,0);const xe=ka.value.findIndex(Ae=>Ae.uid===ie.uid);xe>-1&&ka.value.splice(xe,1)}}},i=e.reactive({title:"迁移至",show:!1,width:"20%",selectRow:null,from:c==null?void 0:c.index,to:null,contents:[],formRules:{groupName:[{required:!0,message:"输入不能为空",trigger:"blur"},{validator:(d,h,B)=>{h===(c==null?void 0:c.index)?B(new Error("选择源不能和目标源一致")):B()}}]},buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"确认",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]}),u=e.reactive({title:"温馨提示:检测到导入的以下数据,系统中已存在,请选择操作",show:!1,width:"70%",columns:[],tableData:[],existRows:[],newRows:[],buttonValue:[{label:"跳过",value:"cancel",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"覆盖",render:"popover",value:"replace",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}],result:""}),y=()=>{u.show=!1},_=async d=>{var h,B,z,P,C,ne,ie,W;try{const xe=[];let Ae=(h=Ne.value||[])==null?void 0:h.slice();(d||[]).forEach(Oa=>{const za={...Oa};try{za.sort=Zn(0,Ae)}catch{}xe.push(za),Ae.unshift(za)});let He=await A.quoteApi({platId:parseInt((B=cl==null?void 0:cl.value)==null?void 0:B.plat_id),type:"fatherSyncs",related:[{menus:Ee.value,groups:""},{menus:Ee.value,groups:c==null?void 0:c.compName}]});He=(z=He==null?void 0:He.data)==null?void 0:z.result;let Re=He==null?void 0:He.map(Oa=>({tableName:"content_"+(Oa==null?void 0:Oa.id),tableContents:xe==null?void 0:xe.map((za,Ye)=>({id:Ye,...za}))})),Ge=[{tableName:(P=c==null?void 0:c.related)==null?void 0:P.find(Oa=>Oa==null?void 0:Oa.includes("content")),tableContents:xe==null?void 0:xe.map((Oa,za)=>({id:za,...Oa}))}];Ge=[...Ge,...Re];const xa=await A.pageBatchAddApi({platId:parseInt((C=cl.value)==null?void 0:C.plat_id),changeContents:Ge});if(((ne=xa==null?void 0:xa.data)==null?void 0:ne.code)===200){const Oa={buttonName:"新增",columns:V.value,fixContent:xe==null?void 0:xe.map((Ye,Qa)=>({id:Qa,...Ye})),relatedContents:c==null?void 0:c.related};await xt(Oa),qa.ElMessage.success("数据导入成功");let za=[];Ge==null||Ge.forEach(Ye=>{var Qa;(Qa=Ye==null?void 0:Ye.tableContents)==null||Qa.forEach(ya=>{za.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(ya),request_result:"{}",is_delete:!1,request_table:Ye==null?void 0:Ye.tableName,request_type:"export"})})}),await A.pageBatchAddApi({platId:parseInt((ie=cl==null?void 0:cl.value)==null?void 0:ie.plat_id),changeContents:[{tableName:"log",tableContents:za}]})}else{let Oa=[];Ge==null||Ge.forEach(za=>{var Ye;(Ye=za==null?void 0:za.tableContents)==null||Ye.forEach(Qa=>{Oa.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(Qa),request_result:"{}",is_delete:!1,request_table:za==null?void 0:za.tableName,request_type:"error"})})}),await A.pageBatchAddApi({platId:parseInt((W=cl==null?void 0:cl.value)==null?void 0:W.plat_id),changeContents:[{tableName:"log",tableContents:Oa}]}),qa.ElMessage.error("数据导入响应失败")}}catch(xe){throw new Error(xe)}},O=async d=>{var h,B,z,P,C,ne,ie,W,xe,Ae;try{if(d==="cancel"&&(u.show=!1),d==="replace"&&((h=u==null?void 0:u.existRows)==null?void 0:h.length)>0){await A.pageBatchDeleteApi({platId:parseInt((B=cl.value)==null?void 0:B.plat_id),changeContents:[{tableName:((z=c==null?void 0:c.related)==null?void 0:z.find(Re=>Re==null?void 0:Re.includes("content_")))||((P=c==null?void 0:c.related)==null?void 0:P.find(Re=>Re==null?void 0:Re.includes("content"))),tableContents:u==null?void 0:u.existRows}]});const He=await A.pageBatchAddApi({platId:parseInt((C=cl.value)==null?void 0:C.plat_id),changeContents:[{tableName:(ne=c==null?void 0:c.related)==null?void 0:ne.find(Re=>Re==null?void 0:Re.includes("content")),tableContents:(()=>{const Re=(Ne.value||[]).filter(za=>!((u==null?void 0:u.existRows)||[]).some(Ye=>String(Ye==null?void 0:Ye.id)===String(za==null?void 0:za.id))),Ge=(u==null?void 0:u.tableData)||[],xa=[];let Oa=Re.slice();return Ge.forEach(za=>{const Ye={...za};try{Ye.sort=Zn(0,Oa)}catch{}xa.push(Ye),Oa.unshift(Ye)}),xa.map((za,Ye)=>({id:Ye,...za}))})()}]});if(((ie=He==null?void 0:He.data)==null?void 0:ie.code)!==200)return;(W=u.newRows)!=null&&W.length&&await _(u.newRows),await xt({buttonName:"新增",columns:V.value,fixContent:(xe=u==null?void 0:u.tableData)==null?void 0:xe.map((Re,Ge)=>({id:Ge,...Re})),relatedContents:c==null?void 0:c.related}),(Ae=u.newRows)!=null&&Ae.length||qa.ElMessage.success("数据导入成功")}}catch(He){throw new Error(He)}finally{u.show=!1,u.columns=[],u.tableData=[],u.existRows=[]}},G=()=>{i.show=!1},ee=d=>{var h,B;if((d==null?void 0:d.buttonName)==="取消")return i.show=!1;i.to=d==null?void 0:d.content,!(!(c!=null&&c.index)||!((h=i.to)!=null&&h.groupName))&&(c==null?void 0:c.index)!==((B=i.to)==null?void 0:B.groupName)&&(Me("change",{buttonName:"迁移",value:{from:i.from,to:i.to,data:i.selectRow}}),i.show=!1)},be=async d=>{var h,B,z,P;if(d){if(!Cr.validateFileSize(d.raw)){qa.ElMessage.warning(`文件大小不能超过 ${mn.value.maxSize}MB`);const C=ka.value.findIndex(ne=>ne.uid===d.uid);C>-1&&ka.value.splice(C,1),je();return}if(!Cr.validateFileType(d.raw)){qa.ElMessage.warning("请上传图片文件");const C=ka.value.findIndex(ne=>ne.uid===d.uid);C>-1&&ka.value.splice(C,1),je();return}kr(d,"uploading"),Dl(d,0);try{const C=new FormData;C.append("file",d.raw,d.name);const ne=await A.platformUploadFile(C);d.uploadResult=((h=ne==null?void 0:ne.data)==null?void 0:h.result)||{name:d.name,url:"",fileName:d.name},Fl({name:((B=d.uploadResult)==null?void 0:B.name)||d.name,url:((z=d.uploadResult)==null?void 0:z.url)||"",id:(P=d.uploadResult)==null?void 0:P.id}),kr(d,"uploaded"),Dl(d,100)}catch(C){console.error("文件上传失败:",C),qa.ElMessage.error(`文件 ${d.name} 上传失败,请重试`),kr(d,"pending"),Dl(d,0);const ne=ka.value.findIndex(ie=>ie.uid===d.uid);ne>-1&&ka.value.splice(ne,1)}finally{je()}}},je=()=>{e.nextTick(()=>{const d=document.querySelector('.ocr-upload-input input[type="file"]');d&&(d.value="")})},De=async()=>{var B,z;if(sessionStorage.setItem("ocr_root_table_id",String((c==null?void 0:c.index)??"")),ka.value.length===0){qa.ElMessage.warning("请先选择要上传的图片");return}if(ka.value.filter(P=>{const C=wl(P);return C!=="uploaded"&&C!=="completed"&&C!=="failed"}).length>0){qa.ElMessage.warning("请等待所有文件上传完成后再开始识别");return}ma.value=!0,ha.value=0;let h=null;try{ka.value.forEach(Ye=>{kr(Ye,"processing")});const P=Math.floor(Math.random()*10)+90;h=setInterval(()=>{ha.value<P?ha.value+=1:clearInterval(h)},50);const C=ka.value.map(Ye=>{var Qa,ya,el;return{name:((Qa=Ye.uploadResult)==null?void 0:Qa.name)||Ye.name,url:((ya=Ye.uploadResult)==null?void 0:ya.url)||"",fileName:((el=Ye.uploadResult)==null?void 0:el.fileName)||Ye.name}}),ne=Cr.extractTableHeaders(V.value),ie=C.map(Ye=>({name:(Ye==null?void 0:Ye.fileName)||(Ye==null?void 0:Ye.name),url:(Ye==null?void 0:Ye.url)||""})),W=await Cr.recognize(ie,ne);if(console.log(W,"ocrResult"),clearInterval(h),h=null,(W==null?void 0:W.code)===500||(W==null?void 0:W.type)==="error"||!(W!=null&&W.result)){ha.value=0,ka.value.forEach(Ye=>{kr(Ye,"failed"),Dl(Ye,0)}),qa.ElMessage.error((W==null?void 0:W.message)||"OCR识别失败,请重试"),ma.value=!1;return}ha.value=P;const xe=Array.isArray(W==null?void 0:W.result)?W.result:[];if(xe.length===0){ha.value=0,ka.value.forEach(Ye=>{kr(Ye,"failed"),Dl(Ye,0)}),qa.ElMessage.warning("OCR识别未返回有效数据"),ma.value=!1;return}const Ae=new Set,He=[];xe.forEach((Ye,Qa)=>{const ya=Ye!=null&&Ye.数据&&typeof(Ye==null?void 0:Ye.数据)=="object"?Ye.数据:{},el=Array.isArray(Ye==null?void 0:Ye.图片信息)?Ye.图片信息:[],ke=new Map;el.forEach(fa=>{fa!=null&&fa.name&&ke.set(fa.name,fa.url||"")});const Ra={_index:Qa,_certType:(Ye==null?void 0:Ye.证书类型)||"",_certNo:(Ye==null?void 0:Ye.证书编号)||"",_ocrImages:el,__ocrFieldMeta:{}};Object.entries(ya).forEach(([fa,Ea])=>{let wa="",N=0,Y=[],$e="";Ea&&typeof Ea=="object"&&!Array.isArray(Ea)?(wa=(Ea==null?void 0:Ea.value)??"",N=(Ea==null?void 0:Ea.score)??0,Y=Array.isArray(Ea==null?void 0:Ea.bboxNorm)?Ea==null?void 0:Ea.bboxNorm:[],$e=(Ea==null?void 0:Ea.imageName)||""):Array.isArray(Ea)&&Ea.length>=2?(wa=Ea[0]??"",N=Ea[1]??0):(wa=Ea??"",N=0),Ra[fa]=wa,Ra[`${fa}_accuracy`]=N,Ae.add(fa),Ra.__ocrFieldMeta[fa]={value:wa,score:N,bboxNorm:Y,imageName:$e,imageUrl:$e&&ke.get($e)||"",images:el}}),He.push(Ra)});const Re=[],Ge=new Set;He.forEach(Ye=>{Ye&&Ae.forEach(Qa=>{const ya=Ye[`${Qa}_accuracy`];(typeof ya=="number"?ya>0:ya!=null&&String(ya).trim()!==""&&String(ya)!=="0")&&Ge.add(Qa)})}),Ae.forEach(Ye=>{Re.push({prop:Ye,label:Ye,editable:!0,minWidth:230}),Ge.has(Ye)&&Re.push({prop:`${Ye}_accuracy`,label:"准确率",editable:!1,minWidth:100,isAccuracy:!0})}),ka.value.forEach(Ye=>{kr(Ye,"completed")}),ha.value=100,Ze.value=Re,Xe.value=He,Ve.value=C,Fa.value=W;const xa=["出厂编号","设备名称","制造厂"],Oa=Re.filter(Ye=>Ye&&!Ye.isAccuracy&&typeof Ye.prop=="string").map(Ye=>Ye.prop),za=["出厂编号","设备名称","制造厂"];Sa.value=Oa.filter(Ye=>za.includes(Ye)),console.log("[OCR] 默认勾选字段 props:",Sa.value),ia.value=2,ma.value=!1,va.value=!1}catch(P){console.error("OCR处理失败:",P),h&&(clearInterval(h),h=null),qa.ElMessage.error(((z=(B=P==null?void 0:P.response)==null?void 0:B.data)==null?void 0:z.message)||"OCR识别失败,请重试"),ma.value=!1,ha.value=0,ka.value.forEach(C=>{kr(C,"pending"),Dl(C,0)})}},aa=d=>{if(d==null)return"";let h=String(d);return h=h.replace(/\s+/g," ").trim(),h=h.replace(/[!-~]/g,B=>String.fromCharCode(B.charCodeAt(0)-65248)),h=h.replace(/ /g," "),h=h.replace(/^(编号|No\.?|NO\.?|no\.?|SN\.?|sn\.?|序列号)\s*[::]?\s*/i,""),h},Na=()=>{var Ye,Qa;const d=Ve.value,h=Fa.value,B=Xe.value;if(!B||B.length===0){qa.ElMessage.warning("暂无数据可添加");return}const z=(Ye=he.getAllLeafNodes(V.value)||[])==null?void 0:Ye.filter(ya=>(ya==null?void 0:ya.type)!=="operate"&&(ya==null?void 0:ya.label)!=="操作"&&(ya==null?void 0:ya.prop)!=="operate"),P=new Map,C=new Map,ne=(Qa=z==null?void 0:z.find(ya=>(ya==null?void 0:ya.label)==="证书附件"))==null?void 0:Qa.prop;z==null||z.forEach(ya=>{ya!=null&&ya.label&&(ya!=null&&ya.prop)&&(P.set(ya.label,ya.prop),C.set(ya.prop,ya.label))});const ie=Date.now(),W=ya=>String(ie*1e3+ya),xe=[],Ae=[],He=ya=>{const el=Do&&Do[ya]||[ya];for(const ke of el){const Ra=P.get(ke);if(Ra)return Ra}return""},Re=He("出厂编号"),Ge=He("设备名称"),xa=He("制造厂"),Oa=[],za=ya=>{var wa,N;if(!ne)return[];const el=(Array.isArray(d)?d[ya]:null)||null,ke=(el==null?void 0:el.url)||"",Ra=(el==null?void 0:el.fileName)||(el==null?void 0:el.name)||"";return(String(Ra).toLowerCase().endsWith(".pdf")||String(ke).toLowerCase().endsWith(".pdf"))&&ke?[{url:ke,name:Ra,fileName:Ra}]:(Array.isArray((N=(wa=h==null?void 0:h.result)==null?void 0:wa[ya])==null?void 0:N.图片信息)?h.result[ya].图片信息:[]).map(Y=>({url:(Y==null?void 0:Y.url)||"",name:(Y==null?void 0:Y.name)||"",fileName:(Y==null?void 0:Y.name)||""})).filter(Y=>Y.url)};if(B.forEach((ya,el)=>{var nl;const ke={id:W(el),_isOCRRow:!0,_ocrTableId:c==null?void 0:c.index};for(const[Wa,ul]of P.entries())Object.prototype.hasOwnProperty.call(ya,Wa)&&(ke[ul]=ya[Wa]);ne&&(ke[ne]=za(el));const Ra=(Array.isArray(h==null?void 0:h.result)?h.result[el]:null)||null,fa=(Array.isArray(d)?d[el]:null)||null,Ea=(fa==null?void 0:fa.url)||"",wa=(fa==null?void 0:fa.fileName)||(fa==null?void 0:fa.name)||"",N=String(wa).toLowerCase().endsWith(".pdf")||String(Ea).toLowerCase().endsWith(".pdf"),Y={ts:Date.now(),versionId:String(Date.now())+"_"+String(el),label:new Date().toLocaleString(),certType:(Ra==null?void 0:Ra.证书类型)||"",certNo:(Ra==null?void 0:Ra.证书编号)||"",fileType:N?"pdf":"image",sourceUrl:N?Ea:"",images:Array.isArray(Ra==null?void 0:Ra.图片信息)?Ra.图片信息.map(Wa=>({name:(Wa==null?void 0:Wa.name)||"",url:(Wa==null?void 0:Wa.url)||""})).filter(Wa=>Wa.url):[]},$e=Wa=>aa(Wa?ke==null?void 0:ke[Wa]:""),na=$e(Re),_e=$e(Ge),sa=$e(xa);if(!!(Re&&Ge&&xa&&na&&_e&&sa)){const Wa=(Ne.value||[]).find(ul=>{const dl=aa(Re?ul==null?void 0:ul[Re]:""),Vl=aa(Ge?ul==null?void 0:ul[Ge]:""),Ua=aa(xa?ul==null?void 0:ul[xa]:"");return dl&&Vl&&Ua&&dl===na&&Vl===_e&&Ua===sa});if(Wa){Oa.push({idx:el,ocrRow:ke,versionItem:Y,ocrNo:na,candidates:[Wa],selectedTargetId:String((Wa==null?void 0:Wa.id)??""),__decision:"replace",allowAdd:!1,allowReplace:!0});return}}if(na&&Re){const Wa=(Ne.value||[]).filter(ul=>{const dl=aa(Re?ul==null?void 0:ul[Re]:"");return dl&&dl===na});if(Wa.length>0){Oa.push({idx:el,ocrRow:ke,versionItem:Y,ocrNo:na,candidates:Wa,selectedTargetId:"",__decision:"",allowAdd:!0,allowReplace:!0});return}}try{if(ke.sort===void 0||ke.sort===null||String(ke.sort).trim()===""){const Wa=(Ne.value||[]).map(dl=>Xn(dl==null?void 0:dl.sort)).filter(dl=>dl!==null),ul=Wa.length>0?Math.max(...Wa):((nl=Ne.value)==null?void 0:nl.length)??0;ke.sort=String(Number((ul+1).toFixed(6)))}}catch{}Ma(c==null?void 0:c.index,ke.id,Y),Oa.push({idx:el,ocrRow:ke,versionItem:Y,ocrNo:na,candidates:[],selectedTargetId:"",__decision:"add",allowAdd:!0,allowReplace:!1})}),(Oa||[]).length>0){ql.value=(Oa||[]).map(ya=>({...ya,selectedTargetId:(ya==null?void 0:ya.selectedTargetId)||""})),Ul.value=!0,Ql.value=Ae,dr.value=xe,Ol.value=h,pr.value=d,Fr.value=ne||"";return}},Xa=(d,h,B)=>{Xe.value[d]&&(Xe.value[d][h]=B)},Ga=d=>d==null||d===0?"-":`${(Number(d)*100).toFixed(1)}%`,al=d=>{if(d==null||d===0)return"#909399";const h=Number(d);return h>=.9?"#67c23a":h>=.7?"#e6a23c":"#f56c6c"},bl=d=>{var B,z,P,C;if(il.value===d){il.value=null,ze.value=!1,Ia.value="";return}il.value=d,Ia.value="";const h=(B=Xe.value)==null?void 0:B[d];if(h&&Array.isArray(h._ocrImages)&&h._ocrImages.length>0){Sl.value=h._ocrImages.map(W=>({name:(W==null?void 0:W.name)||"",url:(W==null?void 0:W.url)||""})).filter(W=>W.name||W.url);const ne=h.__ocrFieldMeta||{},ie=(z=Object.values(ne))==null?void 0:z.find(W=>W==null?void 0:W.imageName);Il.value=(ie==null?void 0:ie.imageName)||((C=(P=Sl.value)==null?void 0:P[0])==null?void 0:C.name)||"",ze.value=Sl.value.length>0}else Sl.value=[],ze.value=!1,Il.value=""},yl=()=>{sl.value=!1,ka.value=[],La.value=null,ia.value=1,Ie.value.clear(),pe.value.clear(),ha.value=0,ze.value=!1},Cl=d=>d.raw?URL.createObjectURL(d.raw):d.url?d.url:"",wl=d=>{const h=d.uid||d.name;return Ie.value.get(h)||"pending"},Zl=d=>{const h=d.uid||d.name;return pe.value.get(h)||0},Dl=(d,h)=>{const B=d.uid||d.name;pe.value.set(B,Math.min(100,Math.max(0,h)))},jl=d=>{const h=wl(d),B=100.53;if(h==="completed"||h==="uploaded")return`${B} ${B}`;if(h==="failed")return`${B} ${B}`;if(h==="uploading"){const z=Zl(d);return`${B*(z/100)} ${B}`}else if(h==="processing")return`${B*.5} ${B}`;return`0 ${B}`},kr=(d,h)=>{const B=d.uid||d.name;Ie.value.set(B,h),(h==="completed"||h==="uploaded")&&Dl(d,100)},Sr=()=>{e.nextTick(()=>{const d=document.querySelector('.ocr-upload-input input[type="file"]');if(d)d.value="",d.click();else{const h=document.createElement("input");h.type="file",h.multiple=!0,h.accept="image/*,application/pdf",h.style.display="none",h.onchange=async B=>{const z=Array.from(B.target.files||[]);for(const P of z){const C={name:P.name,raw:P,uid:Date.now()+Math.random()};ka.value.push(C),await be(C)}B.target.value="",document.body.removeChild(h)},document.body.appendChild(h),h.click()}})},Gr=()=>{ia.value>1&&ia.value--},on=()=>{ia.value===1?ka.value.length>0&&!ma.value&&De():ia.value===2&&(Na(),ia.value=3)},wn=async d=>{await $n(d==null?void 0:d.row)},fi=async({row:d,prop:h})=>{!d||!h||await $n(d,h)},$n=async(d,h)=>{var P,C;const B=d==null?void 0:d.id;if(!B){qa.ElMessage.warning("暂无可预览数据");return}let z=zl(c==null?void 0:c.index,B);if(!z||z.length===0){const ne=sessionStorage.getItem("ocr_root_table_id"),ie=ne!==null?Number(ne):null;if(ie!=null&&ie!==""&&!Number.isNaN(ie)){const W=zl(ie,B);Array.isArray(W)&&W.length>0&&(Rl(c==null?void 0:c.index,B,W),z=W)}}if(!z||z.length===0){const ne=(P=he.getAllLeafNodes(V.value)||[])==null?void 0:P.filter(W=>(W==null?void 0:W.type)!=="operate"&&(W==null?void 0:W.label)!=="操作"&&(W==null?void 0:W.prop)!=="operate"),ie=h||((C=ne==null?void 0:ne.find(W=>(W==null?void 0:W.label)==="证书附件"))==null?void 0:C.prop);if(ie&&d[ie]){const W=d[ie];let xe=[],Ae="",He=!1;if(typeof W=="string")try{const Re=JSON.parse(W);Array.isArray(Re)&&(xe=Re.map(Ge=>({name:(Ge==null?void 0:Ge.name)||(Ge==null?void 0:Ge.fileName)||"",url:(Ge==null?void 0:Ge.url)||""})).filter(Ge=>Ge.url||Ge.name),xe.length>0&&(Ae=xe[0].url||"",He=String(xe[0].name).toLowerCase().endsWith(".pdf")||String(Ae).toLowerCase().endsWith(".pdf")))}catch{Ae=W,He=String(W).toLowerCase().endsWith(".pdf"),xe=[{name:W,url:W}]}else Array.isArray(W)&&(xe=W.map(Re=>({name:(Re==null?void 0:Re.name)||(Re==null?void 0:Re.fileName)||"",url:(Re==null?void 0:Re.url)||""})).filter(Re=>Re.url||Re.name),xe.length>0&&(Ae=xe[0].url||"",He=String(xe[0].name).toLowerCase().endsWith(".pdf")||String(Ae).toLowerCase().endsWith(".pdf")));if(xe.length>0||Ae){const Re={ts:Date.now(),versionId:String(Date.now()),label:new Date().toLocaleString(),certType:d.证书类型||"",certNo:d.证书编号||"",fileType:He?"pdf":"image",sourceUrl:He?Ae:"",images:xe};z=[Re],Ma(c==null?void 0:c.index,B,Re)}}}if(!z||z.length===0){qa.ElMessage.warning("暂无可预览数据");return}we.value=z,$a.value=!0},nu=d=>{ka.value=ka.value.filter((h,B)=>B!==d)},lt=async(d,h,B)=>{var z,P,C,ne,ie,W,xe,Ae,He,Re,Ge,xa,Oa,za,Ye,Qa,ya,el,ke,Ra,fa;if(pa(c.config,{type:ce.TABLE,tableOperate:d})){if(Ca.value="",Aa.value=!0,Qe.value=!0,Me("onButtonClick",d,h),J.value=[],d==="删除")A.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var Ea,wa,N,Y;(Ea=Ne.value)!=null&&Ea.find($e=>($e==null?void 0:$e.id)===(h==null?void 0:h.id))?Ne.value=(wa=A.cloneDeep(Ne.value))==null?void 0:wa.filter($e=>($e==null?void 0:$e.id)!==(h==null?void 0:h.id)):Ne.value=to(A.cloneDeep(Ne.value),h);try{h!=null&&h.id&&((Y=(N=Ta.value)==null?void 0:N.has)!=null&&Y.call(N,h==null?void 0:h.id))&&Ta.value.delete(h.id)}catch{}Tf(ln.value,pn.value,h==null?void 0:h.id),oa.setTableLoading(c==null?void 0:c.index),Me("change",{content:Ne.value,fixContent:[h],index:c==null?void 0:c.index,type:"delete",name:c==null?void 0:c.groupNames,buttonName:d,columns:V.value,relatedContents:c==null?void 0:c.related}),console.log(h,"item")});else if(d==="批量删除"){if(((z=Kl.value)==null?void 0:z.length)===0)return qa.ElMessage.warning("请先勾选操作的数据");A.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(async()=>{var N,Y,$e,na,_e;const Ea=(N=Kl.value)==null?void 0:N.map(sa=>sa.id);Ne.value=(Y=A.cloneDeep(Ne.value))==null?void 0:Y.filter(sa=>!(Ea!=null&&Ea.includes(sa.id))),oa.setTableLoading(c==null?void 0:c.index),Me("change",{content:Ne.value,fixContent:Kl.value,index:c==null?void 0:c.index,type:"delete",name:c==null?void 0:c.compName,buttonName:d,relatedContents:c==null?void 0:c.related,columns:V.value});const wa=(Ea||[]).filter(Boolean);if(wa.length>0&&wa.every(sa=>sa!=null&&sa!=="")){const sa=(Kl.value||[]).map(Ba=>{const nl={...Ba};return delete nl._isOCRRow,delete nl._ocrTableId,delete nl._isTemp,delete nl.tableEditType,delete nl.index,nl});await A.pageBatchDeleteApi({platId:parseInt(($e=cl.value)==null?void 0:$e.plat_id),changeContents:[{tableName:((na=c==null?void 0:c.related)==null?void 0:na.find(Ba=>Ba==null?void 0:Ba.includes("content_")))||((_e=c==null?void 0:c.related)==null?void 0:_e.find(Ba=>Ba==null?void 0:Ba.includes("content"))),tableContents:sa}]})}})}else if(d==="复制新增"){X.value="复制新增",A.cloneDeep(h);const Ea=(P=V.value)==null?void 0:P.find(wa=>wa==null?void 0:wa.isMainKey);Ea||((C=V.value)==null||C[0]),cr.value=h,$i(!0)}else if(d==="新增")X.value="新增",Li(""),Z.value=!0;else if(d==="编辑")X.value="编辑",Li(h),Z.value=!0;else if(d==="查看")X.value="查看",Li(h),Aa.value=!1,Qe.value=!1,Z.value=!0;else if(d==="查看三维模型"){const Ea={};for(let N in h)N!=="id"&&(Ea[N]=h[N]);let wa=(ne=Object.values(Ea))==null?void 0:ne[1];Ue.setTableShowThree(wa)}else if(d==="切换视图")yu();else if(((ie=B==null?void 0:B.extra)==null?void 0:ie.type)==="modelExample")X.value=d,Je.value=!0;else if(d==="新建"){let Ea=ve.value,wa=[];for(let _e in Ea)_e!=null&&_e.includes(`loading${((W=cl.value)==null?void 0:W.account)||((xe=cl.value)==null?void 0:xe.账号)}`)&&(wa=[...wa,..._e]);let N=[];for(let _e in Ea)_e!=null&&_e.includes(`updateLoading${((Ae=cl.value)==null?void 0:Ae.account)||((He=cl.value)==null?void 0:He.账号)}`)&&(N=[...N,..._e]);let Y=wa==null?void 0:wa.map(_e=>_e==null?void 0:_e.id);const $e=N==null?void 0:N.map(_e=>_e==null?void 0:_e.id);Y=[...A.cloneDeep(Y),...$e],(Y==null?void 0:Y.length)>0&&(Y!=null&&Y.every(_e=>_e!==null&&_e))&&await Ar.batchDeleteInsofDataApi({ids:Y});const na=(Re=Za.value)==null?void 0:Re.find(_e=>(_e==null?void 0:_e.label)==="新建");await tu(!1,na)}else if(d==="修改模板"){let Ea=A.cloneDeep(Ee).value;oa.setRouteToChildPath(Ea),te.setActiveMenuPath(Ea+w)}else if(d==="执行")et(d,h);else if(d==="导出paraform"){const Ea=A.ElLoading.service({lock:!0,text:"正在导出paraform...",background:"rgba(0, 0, 0, 0.7)"});try{const wa=["推力","真空","压力","温度","流量"],N=gl=>{var Al,Jl,Tl;return gl?typeof(gl==null?void 0:gl.value)=="string"?gl.value:((Tl=(Jl=(Al=gl==null?void 0:gl._custom)==null?void 0:Al.value)==null?void 0:Jl.value)==null?void 0:Tl.value)||"":""},Y=Array.isArray(lr.value)?lr.value:[],$e=N(Y.find(gl=>(gl==null?void 0:gl.condition)==="child")),na=String($e||"").slice(0,8),_e=gl=>{if(gl==null)return"";const Al=String(gl).trim();if(!Al)return"";if(/^\d{8}$/.test(Al))return Al;const Jl=Al.match(/^(\d{4})[-\/.](\d{1,2})[-\/.](\d{1,2})$/);if(Jl){const Gl=Jl[1],rr=Jl[2].padStart(2,"0"),Hl=Jl[3].padStart(2,"0");return`${Gl}${rr}${Hl}`}const Tl=Al.replace(/\D/g,"");return Tl.length>=8?Tl.slice(0,8):""},sa=async gl=>{var Al,Jl;if(!gl)return"";try{const Tl=await Kr("试验任务/任务管理",!1),Gl=(vr,tr=[])=>{if(!Array.isArray(vr))return tr;for(const ur of vr)(ur==null?void 0:ur.comp)==="Table"&&(ur!=null&&ur.name)&&tr.push(ur),Array.isArray(ur==null?void 0:ur.children)&&Gl(ur.children,tr),Array.isArray(ur==null?void 0:ur.tab)&&Gl(ur.tab,tr),Array.isArray(ur==null?void 0:ur.choice)&&Gl(ur.choice,tr);return tr},Hl=Gl(Tl||[]).find(vr=>(vr==null?void 0:vr.name)==="任务列表"),hr=((Jl=(Al=Hl==null?void 0:Hl.compData)==null?void 0:Al.find(vr=>(vr==null?void 0:vr.key)==="tableContents"))==null?void 0:Jl.contents)||[];if(!Array.isArray(hr)||hr.length===0)return"";const qr=hr.find(vr=>String((vr==null?void 0:vr["试验代号(名称)"])||"").slice(0,8)===gl);return _e(qr==null?void 0:qr.计划试验时间)}catch(Tl){return console.warn("获取任务列表计划试验时间失败:",Tl),""}},Ba=(Ee.value||"").replace(/\/+$/,""),nl=$e?`${Ba}/${$e}`:Ba,Wa=await Kr(nl||Ee.value,!1),ul=String(ea.value||"").trim(),dl=gl=>String(gl||"").trim(),Vl=(gl,Al=[],Jl="")=>{if(!Array.isArray(gl))return Al;for(const Tl of gl){const Gl=dl((Tl==null?void 0:Tl.choiceName)||(Tl==null?void 0:Tl.name0)||Jl);(Tl==null?void 0:Tl.comp)==="Table"&&(Tl==null?void 0:Tl.name)&&wa.includes(Tl.name)&&(!ul||Gl===ul)&&Al.push(Tl),Array.isArray(Tl==null?void 0:Tl.children)&&Vl(Tl.children,Al,Gl),Array.isArray(Tl==null?void 0:Tl.tab)&&Vl(Tl.tab,Al,Gl),Array.isArray(Tl==null?void 0:Tl.choice)&&Vl(Tl.choice,Al,Gl)}return Al},Ua=Vl(Wa||[]),vl=new Map;for(const gl of Ua)gl!=null&&gl.name&&!vl.has(gl.name)&&vl.set(gl.name,gl);const Pa=wa.map(gl=>vl.get(gl)).filter(Boolean);if(!Pa||Pa.length===0)return qa.ElMessage.warning("未找到需要导出的表(推力、真空、压力、温度、流量)");const ol=gl=>{const Al=new Map,Jl=(Tl,Gl=[])=>{if(Array.isArray(Tl))for(const rr of Tl){const Hl=((rr==null?void 0:rr.label)??"").toString().trim(),hr=Hl?[...Gl,Hl]:[...Gl];if(Array.isArray(rr==null?void 0:rr.children)&&rr.children.length>0)Jl(rr.children,hr);else{const vr=((rr==null?void 0:rr.prop)??"").toString();if(!vr)continue;const tr=Hl||vr,ur=(hr.length>0?[...Gl,tr]:[tr]).join(".");Al.set(vr,ur)}}};return Jl(gl,[]),Al},Ka=(gl,Al)=>{const Jl=ol(gl||[]),Gl=(he.getAllLeafNodes(gl||[])||[]).filter(Hl=>(Hl==null?void 0:Hl.prop)&&(Hl==null?void 0:Hl.type)!=="operate"&&(Hl==null?void 0:Hl.label)!=="操作"&&(Hl==null?void 0:Hl.prop)!=="operate"),rr=Array.isArray(Al)?Al:[];return rr.length===0?[]:rr.map(Hl=>{const hr={};return Gl.forEach(qr=>{const vr=String(qr.prop),tr=Jl.get(vr)||String(qr.label||qr.prop);hr[tr]=(Hl==null?void 0:Hl[vr])??""}),hr})},tl=Pa.map(gl=>{var rr,Hl;const Al=(gl==null?void 0:gl.compData)||[];let Jl=(rr=Al==null?void 0:Al.find(hr=>(hr==null?void 0:hr.key)==="header"))==null?void 0:rr.contents;Array.isArray(Jl==null?void 0:Jl[0])&&(Jl=Jl[0]);const Tl=((Hl=Al==null?void 0:Al.find(hr=>(hr==null?void 0:hr.key)==="tableContents"))==null?void 0:Hl.contents)||[];if(!Array.isArray(Jl)||Jl.length===0||!Array.isArray(Tl)||Tl.length===0)return null;const Gl=Ka(Jl||[],Tl||[]);return!Array.isArray(Gl)||Gl.length===0?null:{类型:gl==null?void 0:gl.name,数据:Gl}}).filter(Boolean);if(!tl||tl.length===0)return qa.ElMessage.warning("没有可导出的数据(推力、真空、压力、温度、流量均为空)");const _l=await sa(na),Bl={试验代号:na,试验日期:_l,ParaForm:tl},xr=await di().catch(()=>""),Ll=await A.exportParaformApi(Bl,xr);if(((Ge=Ll==null?void 0:Ll.data)==null?void 0:Ge.code)===200&&((Oa=(xa=Ll==null?void 0:Ll.data)==null?void 0:xa.result)!=null&&Oa.Excel文件)){const gl=Ll.data.result.Excel文件,Al=await A.platformDownloadFile({url:gl}),Jl=new Blob([Al.data],{type:"application/vnd.ms-excel"}),Tl=URL.createObjectURL(Jl),Gl=A.dayjs().format("YYYYMMDD"),Hl=`${(na||"UNKNOWN").trim()||"UNKNOWN"}_${Gl}_paraform.xls`,hr=document.createElement("a");hr.href=Tl,hr.download=Hl,hr.style.display="none",document.body.appendChild(hr),hr.click(),setTimeout(()=>{document.body.removeChild(hr),URL.revokeObjectURL(Tl)},100);const qr=Array.isArray((Ye=(za=Ll==null?void 0:Ll.data)==null?void 0:za.result)==null?void 0:Ye.warnings)?Ll.data.result.warnings:[];if(qr.length>0){const vr=qr.map((tr,ur)=>`${ur+1}. ${(tr==null?void 0:tr.field)||"未知字段"}:${(tr==null?void 0:tr.message)||""}`).join(`
24
+ `);qa.ElMessage.warning({message:`导出成功,但存在以下提示:
25
+ ${vr}`,duration:5e3,showClose:!0})}else qa.ElMessage.success("导出成功")}else qa.ElMessage.error(((Qa=Ll==null?void 0:Ll.data)==null?void 0:Qa.message)||"导出失败")}catch(wa){console.error("导出paraform失败:",wa),qa.ElMessage.error("导出失败:"+((wa==null?void 0:wa.message)||"未知错误"))}finally{Ea.close()}}else if(d!=null&&d.includes("导出")&&d!=="导出paraform"){if(d==="导出选中"&&((ya=Kl.value)==null?void 0:ya.length)===0)return qa.ElMessage.warning(`请先勾选${d}的数据`);if(d==="导出全部"&&((el=Ne.value)==null?void 0:el.length)===0)return qa.ElMessage.warning("暂无数据导出");let Ea=["序号",...(Ra=(ke=V.value)==null?void 0:ke.map($e=>$e==null?void 0:$e.prop))==null?void 0:Ra.filter($e=>$e!=="操作")],wa=d==="导出全部"?Ne.value:Kl.value;const N=["id","sort","tableEditType","create_time","update_time","source_table","create_user_id","update_user_id","department_id","relatedId"];wa=wa==null?void 0:wa.map($e=>Object.fromEntries(Object.entries($e).filter(([na])=>!N.includes(na)))),Ea=["序号",...Ea],wa=wa==null?void 0:wa.map(($e,na)=>({序号:na+1,...$e}));let Y=(c==null?void 0:c.compName)||"表格信息";Fo(wa,Y,Ea,Y)}else if(d==="OCR识别")sl.value=!0,ka.value=[],ia.value=1,Ie.value.clear(),pe.value.clear(),ha.value=0;else if(d==="迁移")i.selectRow=h,i.show=!0;else if(d==="生成方法"){let Ea=await Gf(h),wa;h!==""?wa=[h]:wa=A.cloneDeep(Ne.value),wa=wa==null?void 0:wa.map(Y=>(Y.输出值=Ea,Y));const N={fixContent:wa,buttonName:"编辑",relatedContents:c==null?void 0:c.related,columns:V.value,name:c==null?void 0:c.groupNames};Me("change",N)}else if(((fa=B==null?void 0:B.extra)==null?void 0:fa.type)==="methodButton"){let Ea;h!==""?Ea=[h]:Ea=A.cloneDeep(Ne.value);const N={fixContent:await vt(Ea,V==null?void 0:V.value,"Manual",Ne.value),buttonName:"methodButton",relatedContents:c==null?void 0:c.related,columns:V.value,name:c==null?void 0:c.groupNames};Me("change",N)}}},iu=async(d,h)=>{var B,z,P,C,ne,ie,W,xe,Ae,He,Re,Ge,xa,Oa,za,Ye,Qa,ya,el,ke;try{let Ra,fa;const Ea=(B=ve.value[Ee.value+w])==null?void 0:B.filter(Ba=>{var nl;return((nl=Ba==null?void 0:Ba.key)==null?void 0:nl.type)==="structureMethod"}),wa=(z=ve.value[Ee.value+w])==null?void 0:z.filter(Ba=>{var nl;return((nl=Ba==null?void 0:Ba.key)==null?void 0:nl.type)==="structure"}),N=Ea==null?void 0:Ea.find(Ba=>{var nl,Wa;return((Wa=(nl=Ba==null?void 0:Ba.value)==null?void 0:nl.pageData)==null?void 0:Wa.method)==="保存"});if(!N)return;const Y=(ie=(ne=ve.value[(C=(P=N==null?void 0:N.value)==null?void 0:P.pageData)==null?void 0:C.path])==null?void 0:ne.filter(Ba=>{var nl;return((nl=Ba==null?void 0:Ba.key)==null?void 0:nl.type)==="data"}))==null?void 0:ie.find(Ba=>{var nl,Wa,ul,dl;return((Wa=(nl=Ba==null?void 0:Ba.value)==null?void 0:nl.tableData)==null?void 0:Wa.算法名称)===((dl=(ul=N==null?void 0:N.value)==null?void 0:ul.pageData)==null?void 0:dl.method)});if(!Y)return;const $e={buttonName:(xe=(W=N==null?void 0:N.value)==null?void 0:W.pageData)==null?void 0:xe.method,api:(He=(Ae=Y==null?void 0:Y.value)==null?void 0:Ae.tableData)==null?void 0:He.算法体,content:wa==null?void 0:wa.map(Ba=>{var nl;return(nl=Ba==null?void 0:Ba.value)==null?void 0:nl.pageData}),extraContent:[],extraValues:(Ge=(Re=N==null?void 0:N.value)==null?void 0:Re.pageData)==null?void 0:Ge.data,methodName:(Oa=(xa=N==null?void 0:N.value)==null?void 0:xa.pageData)==null?void 0:Oa.path};if(!d)return;const na={...d,compData:(za=d==null?void 0:d.compData)==null?void 0:za.map(Ba=>{var nl;return(Ba==null?void 0:Ba.key)==="formContent"?{...Ba,contents:(nl=Ba==null?void 0:Ba.contents)==null?void 0:nl.map(Wa=>(Wa==null?void 0:Wa.prop)===h?{...Wa,value:""}:Wa)}:Ba})},_e={key:{pageKey:Ee.value+w,parentTable:"",systemKey:sessionStorage.getItem("systemKey"),type:"structure"},value:{pageData:na}},sa=await qa.axios.post($e.api,_e,{headers:{"Content-Type":"application/json"}});return((Ye=sa==null?void 0:sa.data)==null?void 0:Ye.code)===200&&(Ra=(ya=(Qa=sa==null?void 0:sa.data)==null?void 0:Qa.result)==null?void 0:ya.latestReportCode,fa=(ke=(el=sa==null?void 0:sa.data)==null?void 0:el.result)==null?void 0:ke.status),{newMainKeyValue:Ra,newStatus:fa}}catch(Ra){throw qa.ElMessage.error(Ra),new Error(Ra)}},Tt=e.reactive({prop:"状态",value:""});e.ref(["系统自动生成信息","审批意见"]);const ou=async(d,h,B)=>{var W,xe;let z=d==null?void 0:d[h==null?void 0:h.prop],P=1,C,ne;const ie=A.cloneDeep(Ee).value+w+z;if(ie){Tt.value="",C=(W=ve.value[ie])==null?void 0:W.filter(Re=>{var Ge;return((Ge=Re==null?void 0:Re.key)==null?void 0:Ge.type)==="structure"});const Ae=C==null?void 0:C.find(Re=>{var Ge,xa,Oa;return((Oa=(xa=(Ge=Re==null?void 0:Re.value)==null?void 0:Ge.pageData)==null?void 0:xa.comp)==null?void 0:Oa.toUpperCase())==="FORM"});ne={...(xe=Ae==null?void 0:Ae.value)==null?void 0:xe.pageData,id:Ae==null?void 0:Ae.id};const He=await iu(ne,h==null?void 0:h.prop);if(Tt.value=He==null?void 0:He.newStatus,He!=null&&He.newMainKeyValue)return He==null?void 0:He.newMainKeyValue}if(Ne.value.some(Ae=>(Ae==null?void 0:Ae[h==null?void 0:h.prop])===z)){const Ae=z;for(;Ne.value.some(He=>(He==null?void 0:He[h==null?void 0:h.prop])===`${Ae}(${P})`);)P++;z=`${Ae}(${P})`}return z},tu=async(d,h,B)=>{var C,ne,ie,W;let z,P;if(await ou(B==null?void 0:B.data,B==null?void 0:B.firstCol),z=A.cloneDeep(Ee).value+w,P=A.cloneDeep(z)+`loading${((C=cl.value)==null?void 0:C.account)||((ne=cl.value)==null?void 0:ne.账号)}`,h){const xe=(W=(ie=ve.value[P])==null?void 0:ie.filter(Ae=>{var He;return((He=Ae==null?void 0:Ae.key)==null?void 0:He.parentTable)===""}))==null?void 0:W.map(Ae=>{var He;return{id:Ae==null?void 0:Ae.id,...(He=Ae==null?void 0:Ae.value)==null?void 0:He.pageData}});(xe==null?void 0:xe.length)>0||await he.loadingConstruct(z,P,null,null,null),oa.setRouteToChildPath(A.cloneDeep(Ee).value),te.setActiveMenuPath(P)}else oa.setRouteToChildPath(A.cloneDeep(Ee).value),te.setActiveMenuPath(P)},su=()=>{Fe.value=!1,_a.value=[],ye.value=!1},Li=d=>{var C,ne,ie,W,xe,Ae,He,Re,Ge,xa,Oa,za,Ye,Qa,ya,el,ke,Ra,fa,Ea,wa;const h=[];Ce.value=A.cloneDeep(V.value),(ne=he.getColumnChild((C=A.cloneDeep(V.value))==null?void 0:C.filter(N=>(N==null?void 0:N.label)!=="操作")))==null||ne.forEach((N,Y)=>{var $e,na,_e;N!=null&&N.formType&&(($e=N==null?void 0:N.formType)==null?void 0:$e.toUpperCase())==="SELECT"||N!=null&&N.menuId?h.push({label:(na=N==null?void 0:N.prop)!=null&&na.includes(".")?N==null?void 0:N.prop:(N==null?void 0:N.label)??(N==null?void 0:N.prop)??"",name:(N==null?void 0:N.prop)??"t"+Y,prop:N==null?void 0:N.prop,type:"Select",value:(d==null?void 0:d[N==null?void 0:N.prop])??(N==null?void 0:N.value)??"",id:(N==null?void 0:N.id)??Y,contents:(N==null?void 0:N.options)??[],multiple:(N==null?void 0:N.multiple)??!1,multipleLimit:N==null?void 0:N.multipleLimit,width:1,isFormColHidden:N==null?void 0:N.isFormColHidden,relatedValueId:N==null?void 0:N.relatedValueId,disabled:N==null?void 0:N.disabled,menus:N==null?void 0:N.menus,groups:N==null?void 0:N.groups,words:N==null?void 0:N.words,allSelectionContents:(N==null?void 0:N.allSelectionContents)??[],filterContent:N==null?void 0:N.filterContent,disabled:(N==null?void 0:N.prop)==="disabled"?!0:N==null?void 0:N.disabled,filter:N==null?void 0:N.filter,bindMenus:N==null?void 0:N.bindMenus,isMainPath:N==null?void 0:N.isMainPath,required:(N==null?void 0:N.required)??!1,relatedContents:N==null?void 0:N.relatedContents,mainKey:N==null?void 0:N.mainKey,relatedContents:N==null?void 0:N.relatedContents,functionName:N==null?void 0:N.functionName,functionRelatedWords:N==null?void 0:N.functionRelatedWords,calculatorFilter:N==null?void 0:N.calculatorFilter}):h.push({label:(_e=N==null?void 0:N.prop)!=null&&_e.includes(".")?N==null?void 0:N.prop:(N==null?void 0:N.label)??(N==null?void 0:N.prop)??"",prop:N==null?void 0:N.prop,name:(N==null?void 0:N.prop)??"t"+Y,type:!(N!=null&&N.formType)||(N==null?void 0:N.formType)===""?"Input":N==null?void 0:N.formType,value:(N==null?void 0:N.formType)==="Upload"?(d==null?void 0:d[N==null?void 0:N.prop])??"{}":(d==null?void 0:d[N==null?void 0:N.prop])??(N==null?void 0:N.value)??"",id:(N==null?void 0:N.id)??Y,contents:(N==null?void 0:N.options)??[],multiple:(N==null?void 0:N.multiple)??!1,width:1,isFormColHidden:N==null?void 0:N.isFormColHidden,disabled:(N==null?void 0:N.prop)==="disabled"?!0:N==null?void 0:N.disabled,relatedValueId:N==null?void 0:N.relatedValueId,menus:N==null?void 0:N.menus,groups:N==null?void 0:N.groups,words:N==null?void 0:N.words,filter:N==null?void 0:N.filter,bindMenus:N==null?void 0:N.bindMenus,isMainPath:N==null?void 0:N.isMainPath,required:(N==null?void 0:N.required)??!1,relatedContents:N==null?void 0:N.relatedContents,mainKey:N==null?void 0:N.mainKey,relatedContents:N==null?void 0:N.relatedContents,functionName:N==null?void 0:N.functionName,functionRelatedWords:N==null?void 0:N.functionRelatedWords,calculatorFilter:N==null?void 0:N.calculatorFilter})}),d===""||!d||(Ca.value=(d==null?void 0:d.id)??"");let B=he.getColumnChild((ie=A.cloneDeep(V.value))==null?void 0:ie.filter(N=>(N==null?void 0:N.label)!=="操作"));ba.value&&((W=ba.value)==null?void 0:W.length)>0&&(ba.value=(xe=A.cloneDeep(ba).value)==null?void 0:xe.map(N=>{var $e;let Y=(N==null?void 0:N.prop)||(($e=B==null?void 0:B.find(na=>(na==null?void 0:na.label)===(N==null?void 0:N.label)))==null?void 0:$e.prop);return Y&&(N.value=d[Y]),N})),Ha.value=ba.value&&((Ae=ba.value)==null?void 0:Ae.length)>0?he.getTableFormToForm(ba.value):h,Ha.value=((He=Ha.value)==null?void 0:He.map(N=>({...N,disabled:(N==null?void 0:N.prop)==="disabled"?!0:N==null?void 0:N.disabled})))??Ha.value;let z=[],P=((xa=(Ge=(Re=c.itemData)==null?void 0:Re.filter(N=>(N==null?void 0:N.key)==="filter"))==null?void 0:Ge[0])==null?void 0:xa.contents)??"";if(P=he.analyzeSplitToContent(P,","),(P==null?void 0:P.length)>0&&(z=P.flat()),(z==null?void 0:z.length)>0){let N=z==null?void 0:z.filter(sa=>sa==null?void 0:sa.includes("@Type"));if(N=N==null?void 0:N[(N==null?void 0:N.length)-1],(N==null?void 0:N[(N==null?void 0:N.length)-1])===","&&(N=N==null?void 0:N.slice(0,(N==null?void 0:N.length)-1)),N){let sa=(za=(Oa=N==null?void 0:N.replace("=",k))==null?void 0:Oa.split(k))==null?void 0:za[1];((Ye=sa==null?void 0:sa.trim())==null?void 0:Ye.toUpperCase())==="MANUAL"&&(c==null||c.index,Ha.value=(Qa=Ha.value)==null?void 0:Qa.map((Ba,nl)=>Ba))}let Y=(ya=Ha.value)==null?void 0:ya.filter(sa=>sa==null?void 0:sa.mainKey),$e;Y==null||Y.forEach(sa=>{var nl;if($e!==void 0)return;let Ba=sa==null?void 0:sa.menus;((nl=Y==null?void 0:Y.filter(Wa=>Wa==null?void 0:Wa.mainKey))==null?void 0:nl.length)>1&&($e=Ba,sa==null||sa.groups)});let na=[],_e=new Map;if(Y==null||Y.forEach(sa=>{var Ba,nl,Wa,ul,dl,Vl,Ua,vl,Pa,ol,Ka,tl,_l;if((Ba=sa==null?void 0:sa.prop)!=null&&Ba.includes(".")){let Bl=[];_e.get(((Wa=(nl=sa==null?void 0:sa.prop)==null?void 0:nl.split("."))==null?void 0:Wa[0])+(sa!=null&&sa.isMainPath?0:1)+((ul=sa==null?void 0:sa.groups)==null?void 0:ul[0]))&&(Bl=_e.get(((Vl=(dl=sa==null?void 0:sa.prop)==null?void 0:dl.split("."))==null?void 0:Vl[0])+(sa!=null&&sa.isMainPath?0:1)+((Ua=sa==null?void 0:sa.groups)==null?void 0:Ua[0]))),Bl.push(sa),_e.set(((Pa=(vl=sa==null?void 0:sa.prop)==null?void 0:vl.split("."))==null?void 0:Pa[0])+(sa!=null&&sa.isMainPath?0:1)+((ol=sa==null?void 0:sa.groups)==null?void 0:ol[0]),Bl)}else{let Bl=[];_e.get("normal"+(sa!=null&&sa.isMainPath?0:1)+((Ka=sa==null?void 0:sa.groups)==null?void 0:Ka[0]))&&(Bl=_e.get("normal"+(sa!=null&&sa.isMainPath?0:1)+((tl=sa==null?void 0:sa.groups)==null?void 0:tl[0]))),Bl.push(sa),_e.set("normal"+(sa!=null&&sa.isMainPath?0:1)+((_l=sa==null?void 0:sa.groups)==null?void 0:_l[0]),Bl)}}),na=Array.from(_e.values()),(na==null?void 0:na.length)>0)for(let sa in na){let Ba=na==null?void 0:na[sa];if((Ba==null?void 0:Ba.length)!==1){if((Ba==null?void 0:Ba.length)>1){let nl=Ba==null?void 0:Ba.map(ol=>ol==null?void 0:ol.prop),Wa=Ba==null?void 0:Ba.map(ol=>ol==null?void 0:ol.label),ul=Ba==null?void 0:Ba.map(ol=>ol==null?void 0:ol.value),dl=(el=A.cloneDeep(Ba))==null?void 0:el[0],Vl=(ke=Ha.value)==null?void 0:ke.findIndex(ol=>(ol==null?void 0:ol.prop)===(dl==null?void 0:dl.prop)),Ua=(Ra=Ha.value)==null?void 0:Ra.slice(0,Vl),vl=(Ea=Ha.value)==null?void 0:Ea.slice(Vl,(fa=Ha.value)==null?void 0:fa.length);dl.label=Wa==null?void 0:Wa.join("·"),dl.value=ul==null?void 0:ul.join(" "),dl.value.trim()===""&&(dl.value=""),dl.prop=nl==null?void 0:nl.join("·");let Pa=Ba==null?void 0:Ba.map(ol=>{var Ka;return(Ka=ol==null?void 0:ol.words)==null?void 0:Ka.join(".")});dl.relatedWords=Pa,dl.usingType="parent",vl.unshift(dl),Ha.value=[...Ua,...vl],Ha.value=(wa=Ha.value)==null?void 0:wa.map(ol=>(nl!=null&&nl.find(Ka=>Ka===(ol==null?void 0:ol.prop))&&(ol.isFormColHidden=!0,ol.relatedWords=Pa),ol))}}}}},cu=()=>{var h;const d=(h=t.value)==null?void 0:h.$el;d&&Nl.Sortable.create(d,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:B=>{var ne;const{oldIndex:z,newIndex:P}=B;if(z===P)return;const C=nn.value.splice(z,1)[0];nn.value.splice(P,0,C),V.value=(ne=V.value)==null?void 0:ne.slice().sort((ie,W)=>{if(ie.label==="操作")return 1;if(W.label==="操作")return-1;const xe=nn.value.findIndex(He=>He.label===ie.label),Ae=nn.value.findIndex(He=>He.label===W.label);return xe-Ae})}})};e.onMounted(()=>{ra.value=window.innerWidth-240*2,window.addEventListener("keydown",Ji)});const uu=()=>{e.nextTick(()=>{cu()})},du=()=>{p.value=!0},rt=(d,h)=>{var z;if(!d&&!(d!=null&&d.children))return{contents:d,currentSelectContents:void 0};let B;return d.children=(z=d.children)==null?void 0:z.map(P=>{var C,ne;if((P==null?void 0:P.id)===Ca.value){let ie={};for(let W in P){let xe=(C=h==null?void 0:h.find(Ae=>(Ae==null?void 0:Ae.prop)===W))==null?void 0:C.label;xe?ie[W]=(ne=cr.value)==null?void 0:ne[xe]:ie[W]=P[W]??""}P=Object.assign(ie,cr.value),B=P}else{let ie=rt(P,h);P=ie==null?void 0:ie.contents,B=ie==null?void 0:ie.currentSelectContents}return P}),{contents:d,currentSelectContents:B}},At=(d,h)=>{let B,z;return d!=null&&d.find(P=>(P==null?void 0:P.id)===Ca.value)?B=d==null?void 0:d.map(P=>{var C,ne,ie;if((P==null?void 0:P.id)===Ca.value){let W={};for(let Ae in P){let He=(C=h==null?void 0:h.find(Re=>(Re==null?void 0:Re.prop)===Ae))==null?void 0:C.label;He?W[Ae]=((ne=cr.value)==null?void 0:ne[He])??"":W[Ae]=P[Ae]??""}let xe=cr.value;for(let Ae in W)(ie=cr.value)!=null&&ie[Ae]||(xe[Ae]=(W==null?void 0:W[Ae])??"");P=xe,z=P}return P}):B=d==null?void 0:d.map(P=>{var C,ne,ie,W;if((P==null?void 0:P.id)===Ca.value){let xe={};for(let Ae in P){let He=(C=h==null?void 0:h.find(Re=>(Re==null?void 0:Re.prop)===Ae))==null?void 0:C.label;He?xe[Ae]=(ne=cr.value)==null?void 0:ne[He]:xe[Ae]=P[Ae]??""}P=Object.assign(xe,cr.value),z=P}else P=(ie=rt(P,h))==null?void 0:ie.contents,z=(W=rt(P,h))==null?void 0:W.currentSelectContents;return P}),{newContents:B,currentSelectContents:z}},zt=(d,h,B)=>{var z,P;return d[h==null?void 0:h.prop]=B,typeof d.id=="number"&&(d.id=(z=d.id)==null?void 0:z.toString()),d.children&&((P=d.children)==null?void 0:P.length)>0&&(d.children=d.children.map(zt)),d},Mt=d=>{var B;const h=[];return h.push({...d}),d!=null&&d.children&&Array.isArray(d.children)&&((B=d.children)==null||B.forEach(z=>{h.push(...Mt(z))})),(h==null?void 0:h.length)>0?h==null?void 0:h.map(z=>{const P={...z};return delete P.children,P}):[]},so=["Pacific6000数据采集装置.通道号","通道号"],Ri=d=>{if(!d)return"";const h=so.map(B=>d==null?void 0:d[B]).find(B=>B!=null&&String(B).trim()!=="");return h==null?"":String(h).trim()},nt=async(d,h=void 0)=>{if(!d)return!1;try{const B=Ge=>{var xa,Oa,za;return Ge?typeof(Ge==null?void 0:Ge.value)=="string"?Ge.value:((za=(Oa=(xa=Ge==null?void 0:Ge._custom)==null?void 0:xa.value)==null?void 0:Oa.value)==null?void 0:za.value)||"":""},z=Array.isArray(lr.value)?lr.value:[],P=B(z.find(Ge=>(Ge==null?void 0:Ge.condition)==="child")),C=(Ee.value||"").replace(/\/+$/,""),ne=P?`${C}/${P}`:C,ie=await Kr(ne||Ee.value,!1),W=String(ea.value||"").trim(),xe=Ge=>String(Ge||"").trim(),Ae=(Ge,xa=[],Oa="")=>{if(!Array.isArray(Ge))return xa;for(const za of Ge){const Ye=xe((za==null?void 0:za.choiceName)||(za==null?void 0:za.name0)||Oa);(za==null?void 0:za.comp)==="Table"&&(!W||Ye===W)&&xa.push(za),Array.isArray(za==null?void 0:za.children)&&Ae(za.children,xa,Ye),Array.isArray(za==null?void 0:za.tab)&&Ae(za.tab,xa,Ye),Array.isArray(za==null?void 0:za.choice)&&Ae(za.choice,xa,Ye)}return xa},He=Ae(ie||[]),Re=String((c==null?void 0:c.compName)||"");return He.some(Ge=>{var Oa,za;const xa=((za=(Oa=Ge==null?void 0:Ge.compData)==null?void 0:Oa.find(Ye=>(Ye==null?void 0:Ye.key)==="tableContents"))==null?void 0:za.contents)||[];return!Array.isArray(xa)||xa.length===0?!1:xa.some(Ye=>{if(String((Ge==null?void 0:Ge.name)||"")===Re&&(Ye==null?void 0:Ye.id)===h)return!1;const ya=Ri(Ye);return!!ya&&ya===d})})}catch{return(Ne.value||[]).some(z=>{if((z==null?void 0:z.id)===h)return!1;const P=Ri(z);return!!P&&P===d})}},$i=async(d=!0,h,B)=>{var xe,Ae,He,Re,Ge,xa,Oa,za,Ye,Qa,ya,el,ke,Ra,fa,Ea,wa,N,Y,$e,na,_e,sa,Ba,nl,Wa,ul,dl,Vl,Ua,vl;if(cr.value){const Pa=(Ae=he.getColumnChild((xe=A.cloneDeep(V.value))==null?void 0:xe.filter(Ka=>(Ka==null?void 0:Ka.label)!=="操作")))==null?void 0:Ae.filter(Ka=>(Ka==null?void 0:Ka.required)===!0);for(let Ka=0;Ka<((Pa==null?void 0:Pa.length)??0);Ka++){const tl=Pa[Ka],_l=tl==null?void 0:tl.prop,Bl=(tl==null?void 0:tl.label)??_l,xr=(He=cr.value)==null?void 0:He[_l];if(xr===""||xr===null||xr===void 0||Array.isArray(xr)&&xr.length===0){qa.ElMessage.error(`${Bl}不能为空`);return}}const ol=Ri(cr.value);if(ol&&await nt(ol,Ca.value||void 0)){qa.ElMessage.warning("当前任务下通道号不能重复,请重新选择");return}}let z=he.getColumnChild((Re=A.cloneDeep(V.value))==null?void 0:Re.filter(Pa=>(Pa==null?void 0:Pa.label)!=="操作")),P,C=A.cloneDeep(Ne.value);if(!cr.value){Z.value=!1;return}if(Ca.value===""){Va.value++;let Pa;Pa={id:Va.value.toString()};try{Pa.sort=Zn(0,Ne.value||[])}catch{}Pa!=null&&Pa.children&&(Pa={...Pa,children:(Ge=Pa.children)==null?void 0:Ge.map(Ka=>zt(Ka,h,B))});const ol=Object.assign(cr.value,Pa);C.unshift(ol),P=ol}else C=(xa=At(C,z))==null?void 0:xa.newContents,P=(Oa=At(C,z))==null?void 0:Oa.currentSelectContents;const ne=(za=c.itemData)==null?void 0:za.filter(Pa=>(Pa==null?void 0:Pa.key)==="childTree")[0];if(((Ye=ne==null?void 0:ne.contents)==null?void 0:Ye.length)>0){X.value="编辑";const Pa=[];C==null||C.forEach((tl,_l)=>{var xr;let Bl={};if(Array.isArray(tl)){let Ll=[];tl==null||tl.filter(gl=>!(gl!=null&&gl.id)).forEach((gl,Al)=>{var Jl,Tl,Gl,rr,Hl,hr,qr;if((Tl=(Jl=Br.value)==null?void 0:Jl[Al])!=null&&Tl.prop&&!Array.isArray(gl)){let vr={};vr[Br.value[Al].column]=gl,L!=null&&L.value&&((Gl=L==null?void 0:L.value)==null?void 0:Gl.length)>0&&((rr=L==null?void 0:L.value)!=null&&rr.find(tr=>JSON.stringify(tr==null?void 0:tr[0])===JSON.stringify(vr)))&&(Ll=(Hl=L==null?void 0:L.value)==null?void 0:Hl.find(tr=>JSON.stringify(tr==null?void 0:tr[0])===JSON.stringify(vr))),Ll&&Ll.length>0?Bl[Br.value[Al].prop]=Ll!=null&&Ll.find(tr=>{var ur;return((ur=Object.keys(tr))==null?void 0:ur[0])===Br.value[Al].column})?(hr=Ll==null?void 0:Ll.find(tr=>{var ur;return((ur=Object.keys(tr))==null?void 0:ur[0])===Br.value[Al].column}))==null?void 0:hr[Br.value[Al].column]:gl:Bl[Br.value[Al].prop]=gl}else Array.isArray(gl)&&((qr=Br.value[Al])!=null&&qr.prop?Bl[Br.value[Al].prop]=gl:Bl.children=mt(gl,Br.value))})}else Bl=tl;if(Array.isArray(tl)&&tl.some(Ll=>Ll==null?void 0:Ll.id)){const Ll=(xr=tl==null?void 0:tl.find(gl=>gl.id))==null?void 0:xr.id;Pa.push(Object.assign(Bl,{id:no(Ll)}))}else Bl.id?Pa.push(Bl):Pa.push(Object.assign(Bl,{id:_l.toString()}))});const ol=(Ne.value||[]).map(tl=>String(tl==null?void 0:tl.id)),Ka=ci(Pa,ol);Ne.value=Rt(Ka,ne,V.value)}Ot(Ne.value),ln.value=Ne.value;const ie=zf(ln.value,pn.value,C);let W=[];if(H.value?(W=(Qa=A.cloneDeep(H).value.singleContent)==null?void 0:Qa.filter(Pa=>(Pa==null?void 0:Pa.id)!==(P==null?void 0:P.id)),W.push(P)):W=[P],$l.value){const Pa={content:ie,singleContent:((ya=ne==null?void 0:ne.contents)==null?void 0:ya.length)>0?W==null?void 0:W.flatMap(Mt):W,index:c==null?void 0:c.index,buttonName:"编辑",column:V.value,parentTableId:c==null?void 0:c.parentTableId};oa.setCacheUpdatingData(Pa)}if((el=V.value)==null||el.forEach(Pa=>{(Pa==null?void 0:Pa.formType)==="Upload"&&(P[Pa.prop]=P[Pa.prop]===""?"{}":typeof P[Pa.prop]!="string"?JSON.stringify(P[Pa.prop]):P[Pa.prop])}),d){(Ea=(fa=(Ra=(ke=c.itemData)==null?void 0:ke.find(Ka=>(Ka==null?void 0:Ka.key)==="filterAllType"))==null?void 0:Ra.value)==null?void 0:fa.find(Ka=>(Ka==null?void 0:Ka.value)==="onConditionContents"))==null||Ea.content;let Pa=(wa=c.itemData)==null?void 0:wa.filter(Ka=>(Ka==null?void 0:Ka.key)==="filterAllType");Pa=Array.from(new Map(Pa.filter(Boolean).map((Ka,tl)=>[Ka.value,{...Ka,_idx:tl}])).values()).sort((Ka,tl)=>Ka._idx-tl._idx).map(({_idx:Ka,...tl})=>tl),Pa=(N=Pa==null?void 0:Pa[(Pa==null?void 0:Pa.length)-1])==null?void 0:N.value;const ol={fixContent:[P],buttonName:X.value,relatedContents:c==null?void 0:c.related,columns:V.value,name:c==null?void 0:c.groupNames};oa.setTableLoading(c==null?void 0:c.index),Z.value=!1,cr.value=void 0,Me("change",ol)}if((na=($e=(Y=Ha.value)==null?void 0:Y[0])==null?void 0:$e.optionUrl)!=null&&na.menuId){Z.value=!1;let Pa=(_e=c.itemData)==null?void 0:_e.filter(ol=>(ol==null?void 0:ol.key)==="filterAllType");if((Pa==null?void 0:Pa.length)>0){let ol=Pa==null?void 0:Pa.map(_l=>_l==null?void 0:_l.value),Ka=(nl=(Ba=(sa=ol.flat().find(_l=>{var Bl;return(Bl=_l==null?void 0:_l.content)==null?void 0:Bl.includes("@Num")}))==null?void 0:sa.content)==null?void 0:Ba.split(":"))==null?void 0:nl[1];((dl=(ul=(Wa=ol.flat().find(_l=>{var Bl;return(Bl=_l==null?void 0:_l.content)==null?void 0:Bl.includes("@Type:")}))==null?void 0:Wa.content)==null?void 0:ul.split(":"))==null?void 0:dl[1])!=="Manual"&&(Ka=parseInt(Ka),Ne.value=(vl=Ne.value)==null?void 0:vl.slice(((Vl=Ne.value)==null?void 0:Vl.length)-Ka,(Ua=Ne.value)==null?void 0:Ua.length))}}};e.onUnmounted(()=>{window.removeEventListener("keydown",Ji),V.value=[],Ne.value=[],Ce.value=[],Da.value=[],ba.value=[],ga.value=[],_a.value=[],Oe.value=[],Ha.value=[],Kl.value=[],t.value=null,Ln.value=""});const co=async(d,h,B)=>{var Ge,xa,Oa,za,Ye,Qa,ya,el,ke,Ra,fa,Ea,wa;fr.value=(B==null?void 0:B.prop)??(B==null?void 0:B.property);const z=A.cloneDeep(c.itemData),P=((Ge=z==null?void 0:z.find(N=>(N==null?void 0:N.key)==="header"))==null?void 0:Ge.contents)??[];let C=P==null?void 0:P.find((N,Y)=>{var $e,na,_e;return(N==null?void 0:N.prop)===fr.value||(N==null?void 0:N.label)===fr.value||(Y==null?void 0:Y.toString())===((_e=(na=($e=fr.value)==null?void 0:$e.split("a"))==null?void 0:na[1])==null?void 0:_e.toString())});const ne=he.getColumnChild((xa=A.cloneDeep(V.value))==null?void 0:xa.filter(N=>(N==null?void 0:N.label)!=="操作"));if(C||(C=ne==null?void 0:ne.find(N=>(N==null?void 0:N.prop)===fr.value||(N==null?void 0:N.label)===fr.value)),C&&!((Oa=C==null?void 0:C.menus)!=null&&Oa.length)&&!((za=C==null?void 0:C.groups)!=null&&za.length)&&!((Ye=C==null?void 0:C.words)!=null&&Ye.length)){const N=(Qa=Ha.value)==null?void 0:Qa.find(Y=>(Y==null?void 0:Y.prop)===fr.value);N&&(C={...C,menus:(N==null?void 0:N.menus)??(C==null?void 0:C.menus),groups:(N==null?void 0:N.groups)??(C==null?void 0:C.groups),words:(N==null?void 0:N.words)??(C==null?void 0:C.words),bindMenus:(N==null?void 0:N.bindMenus)??(C==null?void 0:C.bindMenus),isMainPath:(N==null?void 0:N.isMainPath)??(C==null?void 0:C.isMainPath),relatedContents:(N==null?void 0:N.relatedContents)??(C==null?void 0:C.relatedContents),endChildMenu:(N==null?void 0:N.endChildMenu)??(C==null?void 0:C.endChildMenu)})}if(C&&((ya=Ha==null?void 0:Ha.value)==null||ya.forEach(N=>{var Y,$e,na,_e,sa;(N==null?void 0:N.prop)===(C==null?void 0:C.prop)&&(N!=null&&N.endChildMenu)&&((Y=C==null?void 0:C.prop)!=null&&Y.includes(".")&&((na=($e=C==null?void 0:C.prop)==null?void 0:$e.split("."))==null?void 0:na[0])!==((sa=(_e=N==null?void 0:N.prop)==null?void 0:_e.split("."))==null?void 0:sa[0])?C.endChildMenu=N==null?void 0:N.value:C.endChildMenu=N==null?void 0:N.endChildMenu)})),!C)return;const ie=fr.value,W=(el=Ne.value)==null?void 0:el.findIndex(N=>(N==null?void 0:N.id)===(h==null?void 0:h.id));W!==-1&&ie&&(Ne.value[W]={...Ne.value[W],[ie]:d});const xe=N=>{Array.isArray(N)&&N.forEach(Y=>{Array.isArray(Y==null?void 0:Y.allSelectionContents)&&Y.allSelectionContents.length>0&&(Y.contactValue=Ne.value[W]??h),Array.isArray(Y==null?void 0:Y.children)&&Y.children.length>0&&xe(Y.children)})};xe(V.value),C.value=d,C.endChildMenu=C.endChildMenu||"";let Ae=C!=null&&C.isMainPath&&(C!=null&&C.mainKey)?C==null?void 0:C.value:"";const He=N=>{Array.isArray(N)&&N.forEach(Y=>{var na,_e;if(((Y==null?void 0:Y.type)==="Select"||(Y==null?void 0:Y.formType)&&Y.formType.toUpperCase()==="SELECT"||(Y==null?void 0:Y.columnType)&&Y.columnType.toUpperCase()==="SELECT")&&Array.isArray(Y==null?void 0:Y.menus)&&Y.menus.length>0&&Y.menus[Y.menus.length-1]===""&&(C!=null&&C.isMainPath)&&(C!=null&&C.mainKey)){const sa=(na=Y==null?void 0:Y.prop)!=null&&na.includes(".")?Y.prop.split(".")[0]:null,Ba=(_e=C==null?void 0:C.prop)!=null&&_e.includes(".")?C.prop.split(".")[0]:null;(!sa||!Ba||sa===Ba)&&(Y.endChildMenu=Ae)}Array.isArray(Y==null?void 0:Y.children)&&Y.children.length>0&&He(Y.children)})};if(He(V.value),!!(C!=null&&C.mainKey)&&Array.isArray(C==null?void 0:C.menus)&&(C==null?void 0:C.menus.length)>0&&(C!=null&&C.value)&&(C==null?void 0:C.value)!==""){let N=C!=null&&C.relatedContents&&((ke=C==null?void 0:C.relatedContents)==null?void 0:ke.length)>0?(Ra=C==null?void 0:C.relatedContents)==null?void 0:Ra.find(Y=>{var $e,na,_e,sa;return(Y==null?void 0:Y[(sa=($e=C==null?void 0:C.prop)==null?void 0:$e.split("."))==null?void 0:sa[((_e=(na=C==null?void 0:C.prop)==null?void 0:na.split("."))==null?void 0:_e.length)-1]])===(C==null?void 0:C.value)}):await ss(C);if(N){const Y={...h};ne==null||ne.forEach($e=>{var na,_e,sa,Ba,nl,Wa,ul,dl,Vl,Ua,vl,Pa,ol,Ka,tl,_l;($e==null?void 0:$e.prop)!==(C==null?void 0:C.prop)&&(C!=null&&C.relatedContents&&((na=C==null?void 0:C.relatedContents)==null?void 0:na.length)>0?(_e=$e==null?void 0:$e.prop)!=null&&_e.includes(".")&&((Ba=(sa=$e==null?void 0:$e.prop)==null?void 0:sa.split("."))==null?void 0:Ba[0])===((Wa=(nl=C==null?void 0:C.prop)==null?void 0:nl.split("."))==null?void 0:Wa[0])?Y[$e.prop]=N[(Ua=(ul=$e==null?void 0:$e.prop)==null?void 0:ul.split("."))==null?void 0:Ua[((Vl=(dl=$e==null?void 0:$e.prop)==null?void 0:dl.split("."))==null?void 0:Vl.length)-1]]??Y[$e.prop]:Y[$e.prop]=(N==null?void 0:N[$e.prop])??Y[$e.prop]:he.same((C==null?void 0:C.menus)??[],($e==null?void 0:$e.menus)??[])&&he.same((C==null?void 0:C.groups)??[],($e==null?void 0:$e.groups)??[])&&!he.same((C==null?void 0:C.words)??[],($e==null?void 0:$e.words)??[])?(vl=$e==null?void 0:$e.prop)!=null&&vl.includes(".")&&((ol=(Pa=$e==null?void 0:$e.prop)==null?void 0:Pa.split("."))==null?void 0:ol[0])!==((tl=(Ka=C==null?void 0:C.prop)==null?void 0:Ka.split("."))==null?void 0:tl[0])||(Y[$e.prop]=(N==null?void 0:N[(_l=$e==null?void 0:$e.words)==null?void 0:_l.join(".")])??(N==null?void 0:N[$e.prop])??Y[$e.prop]):(!($e!=null&&$e.isMainPath)&&he.same((C==null?void 0:C.bindMenus)??[],($e==null?void 0:$e.bindMenus)??[]),Y[$e.prop]=(N==null?void 0:N[$e.prop])??Y[$e.prop]))}),Ne.value=(fa=A.cloneDeep(Ne.value))==null?void 0:fa.map($e=>($e==null?void 0:$e.id)===(h==null?void 0:h.id)?{...Y,id:$e==null?void 0:$e.id}:$e)}}if((Ea=C==null?void 0:C.optionUrl)!=null&&Ea.menuSelect){let N="";ne==null||ne.forEach(na=>{var _e,sa,Ba,nl,Wa;N===""&&((Ba=(sa=(_e=na==null?void 0:na.optionUrl)==null?void 0:_e.groupSelect)==null?void 0:sa[1])!=null&&Ba.includes("["))&&(N=(Wa=(nl=na==null?void 0:na.optionUrl)==null?void 0:nl.groupSelect)==null?void 0:Wa[1])});let Y=await yt(C),$e;if(Y==null||Y.forEach(na=>{var _e,sa,Ba,nl,Wa,ul,dl,Vl,Ua,vl;N===((sa=(_e=C==null?void 0:C.optionUrl)==null?void 0:_e.groupSelect)==null?void 0:sa[1])&&((Wa=(nl=(Ba=C==null?void 0:C.optionUrl)==null?void 0:Ba.groupSelect)==null?void 0:nl[1])!=null&&Wa.includes("["))&&((vl=A.cloneDeep(na))==null?void 0:vl[(Ua=(Vl=(dl=(ul=C==null?void 0:C.optionUrl)==null?void 0:ul.groupSelect)==null?void 0:dl[1])==null?void 0:Vl.replaceAll("[",""))==null?void 0:Ua.replaceAll("]","")])===(C==null?void 0:C.value)&&($e=na)}),$e){const na={...h};ne==null||ne.forEach(_e=>{var sa,Ba,nl,Wa,ul,dl,Vl,Ua,vl,Pa,ol;($e!=null&&$e[_e==null?void 0:_e.label]||$e!=null&&$e[(Wa=(nl=(Ba=(sa=_e==null?void 0:_e.optionUrl)==null?void 0:sa.groupSelect)==null?void 0:Ba[1])==null?void 0:nl.replaceAll("[",""))==null?void 0:Wa.replaceAll("]","")])&&((Vl=(dl=(ul=_e==null?void 0:_e.optionUrl)==null?void 0:ul.groupSelect)==null?void 0:dl[1])!=null&&Vl.includes("["))&&(na[_e.prop]=($e==null?void 0:$e[_e==null?void 0:_e.label])||($e==null?void 0:$e[(ol=(Pa=(vl=(Ua=_e==null?void 0:_e.optionUrl)==null?void 0:Ua.groupSelect)==null?void 0:vl[1])==null?void 0:Pa.replaceAll("[",""))==null?void 0:ol.replaceAll("]","")]))}),Ne.value=(wa=A.cloneDeep(Ne.value))==null?void 0:wa.map(_e=>(_e==null?void 0:_e.id)===(h==null?void 0:h.id)?{...na,id:_e==null?void 0:_e.id}:_e)}}},pu=async d=>{var Ge,xa,Oa,za,Ye,Qa,ya,el,ke,Ra,fa,Ea,wa,N;if(!d)return;const h=A.cloneDeep(cr.value||{});cr.value=d;const B=Ri(h),z=Ri(cr.value);if(z&&z!==B&&await nt(z,Ca.value||void 0)){qa.ElMessage.warning("当前任务下通道号不能重复,请重新选择"),so.forEach($e=>{if(Object.prototype.hasOwnProperty.call(cr.value||{},$e)||Object.prototype.hasOwnProperty.call(h||{},$e)){const na=(h==null?void 0:h[$e])??"";cr.value[$e]=na,d[$e]=na}}),Ha.value=(Ha.value||[]).map($e=>{if(!($e!=null&&$e.prop)||!so.includes($e.prop))return $e;const na=(h==null?void 0:h[$e.prop])??"";return{...$e,value:na,selectValue:na===""?[]:[na]}});return}let P=A.cloneDeep(c.itemData);P==null||P.map(Y=>{var $e,na,_e,sa;return(Y==null?void 0:Y.key)==="header"&&(Array.isArray(($e=Y.contents)==null?void 0:$e[0])?Y.contents=(_e=he.getColumnChild((na=Y.contents)==null?void 0:na[0]))==null?void 0:_e.map((Ba,nl)=>{var Wa,ul,dl,Vl,Ua,vl;return((dl=(ul=(Wa=Ha.value)==null?void 0:Wa.find(Pa=>(Pa==null?void 0:Pa.prop)===(Ba==null?void 0:Ba.prop)))==null?void 0:ul.optionUrl)==null?void 0:dl.multiple)===!0&&!Array.isArray((Vl=Object.values(d))==null?void 0:Vl[nl])?Ba.value=[(Ua=Object.values(d))==null?void 0:Ua[nl]]:Ba.value=(vl=Object.values(d))==null?void 0:vl[nl],Ba}):Y.contents=(sa=Y.contents)==null?void 0:sa.map((Ba,nl)=>{var Wa,ul,dl,Vl,Ua,vl;return((dl=(ul=(Wa=Ha.value)==null?void 0:Wa.find(Pa=>(Pa==null?void 0:Pa.prop)===(Ba==null?void 0:Ba.prop)))==null?void 0:ul.optionUrl)==null?void 0:dl.multiple)===!0&&!Array.isArray((Vl=Object.values(d))==null?void 0:Vl[nl])?Ba.value=[(Ua=Object.values(d))==null?void 0:Ua[nl]]:Ba.value=(vl=Object.values(d))==null?void 0:vl[nl],Ba})),Y});let C=Ha.value,ne=(Ge=P==null?void 0:P.find(Y=>(Y==null?void 0:Y.key)==="header"))==null?void 0:Ge.contents;if(fr.value||(C=C==null?void 0:C.map(Y=>{var $e;return Y.value=Y.value??(($e=ne==null?void 0:ne.find((na,_e)=>(na==null?void 0:na.prop)===(Y==null?void 0:Y.name)))==null?void 0:$e.value),Y})),!Lr.value)return;let ie=A.cloneDeep(fr.value);(xa=fr.value)!=null&&xa.includes("·")&&(fr.value=(za=(Oa=fr.value)==null?void 0:Oa.split("·"))==null?void 0:za[0]);let W=(Qa=(Ye=P==null?void 0:P.find(Y=>(Y==null?void 0:Y.key)==="header"))==null?void 0:Ye.contents)==null?void 0:Qa.find((Y,$e)=>(Y==null?void 0:Y.prop)===fr.value);(ya=Ha==null?void 0:Ha.value)==null||ya.forEach(Y=>{var $e,na,_e,sa,Ba,nl,Wa,ul,dl;(Y==null?void 0:Y.prop)===(W==null?void 0:W.prop)&&(Y!=null&&Y.endChildMenu)&&(($e=W==null?void 0:W.prop)!=null&&$e.includes(".")&&((_e=(na=W==null?void 0:W.prop)==null?void 0:na.split("."))==null?void 0:_e[0])!==((Ba=(sa=Y==null?void 0:Y.prop)==null?void 0:sa.split("."))==null?void 0:Ba[0])?W.endChildMenu=(Wa=(nl=Y==null?void 0:Y.value)==null?void 0:nl.split(" "))==null?void 0:Wa[0]:W.endChildMenu=(dl=(ul=Y==null?void 0:Y.endChildMenu)==null?void 0:ul.split(" "))==null?void 0:dl[0])});let xe=W!=null&&W.isMainPath&&(W!=null&&W.mainKey)?W==null?void 0:W.value:"",Ae=C,He=ae.value;if(He!=null&&He.find(Y=>(W==null?void 0:W.prop)===(Y==null?void 0:Y.key))&&(He=He==null?void 0:He.filter(Y=>(W==null?void 0:W.prop)!==(Y==null?void 0:Y.key))),He!=null&&He.find(Y=>ie===(Y==null?void 0:Y.key))&&(He=He==null?void 0:He.filter(Y=>ie!==(Y==null?void 0:Y.key))),(W==null?void 0:W.formType)==="Select"?Ae=Ae==null?void 0:Ae.map(Y=>{var $e,na,_e,sa,Ba,nl,Wa,ul,dl,Vl,Ua,vl,Pa,ol,Ka,tl;return(Y==null?void 0:Y.type)==="Select"&&((($e=Y==null?void 0:Y.allSelectionContents)==null?void 0:$e.length)>0&&(Y.contactValue=d),((W==null?void 0:W.prop)===(Y==null?void 0:Y.prop)||ie===(Y==null?void 0:Y.prop))&&W&&(Array.isArray(W.value)&&((na=W.value)==null?void 0:na.length)>0&&((_e=W.value)!=null&&_e.every(_l=>typeof _l=="string"))?(He.push({key:Y==null?void 0:Y.prop,value:[(Ba=W.value)==null?void 0:Ba[((sa=W.value)==null?void 0:sa.length)-1]]}),Y.selectValue=(nl=He==null?void 0:He.find(_l=>(_l==null?void 0:_l.key)===(Y==null?void 0:Y.prop)))==null?void 0:nl.value):Array.isArray(W.value)&&((Wa=W.value)==null?void 0:Wa.length)===0?(He=[],Y.selectValue=[],d[Y==null?void 0:Y.prop]=""):Array.isArray(Y.value)&&He.push({key:Y==null?void 0:Y.prop,value:[(ul=Y.value)==null?void 0:ul[(Y==null?void 0:Y.length)-1]]})),((Vl=Y==null?void 0:Y.menus)==null?void 0:Vl[((dl=Y==null?void 0:Y.menus)==null?void 0:dl.length)-1])===""&&(W!=null&&W.isMainPath)&&(W!=null&&W.mainKey)&&((Ua=Y==null?void 0:Y.prop)!=null&&Ua.includes(".")&&((Pa=(vl=Y==null?void 0:Y.prop)==null?void 0:vl.split("."))==null?void 0:Pa[0])!==((Ka=(ol=W==null?void 0:W.prop)==null?void 0:ol.split("."))==null?void 0:Ka[0])||(Y.endChildMenu=(tl=xe==null?void 0:xe.split(" "))==null?void 0:tl[0]))),Y.value=(d==null?void 0:d[Y==null?void 0:Y.prop])??(Y==null?void 0:Y.value),Y}):(W==null?void 0:W.formType)!=="Input"&&(Ae=Ae==null?void 0:Ae.map(Y=>(Y.value=(d==null?void 0:d[Y==null?void 0:Y.prop])??(Y==null?void 0:Y.value),Y))),ae.value=He,Ae!=null&&Ae.some(Y=>(Y==null?void 0:Y.functionName)&&(Y==null?void 0:Y.functionName)!=="")){let Y=await vt([d],V==null?void 0:V.value,"Auto",Ne.value),$e=[];(el=Ae==null?void 0:Ae.filter(_e=>(_e==null?void 0:_e.functionName)&&(_e==null?void 0:_e.functionName)!==""))==null||el.forEach(_e=>{var sa;((sa=_e==null?void 0:_e.functionRelatedWords)==null?void 0:sa.length)>0&&($e=[...$e,..._e==null?void 0:_e.functionRelatedWords])}),$e=$e==null?void 0:$e.filter(_e=>(_e==null?void 0:_e[0])!=="@");let na=[];for(let _e in Y==null?void 0:Y[0])$e!=null&&$e.find(sa=>_e===sa||(_e==null?void 0:_e.includes("."+sa)))&&na.push(((ke=Y==null?void 0:Y[0])==null?void 0:ke[_e])!=="");(Y==null?void 0:Y.length)>0&&na.every(_e=>_e)&&(Ae=Ae==null?void 0:Ae.map(_e=>{var sa;return _e.value=((sa=Y==null?void 0:Y[0])==null?void 0:sa[_e==null?void 0:_e.prop])??_e.value,_e})),cr.value=Y==null?void 0:Y[0]}if(Ha.value=Ae,W=Object.assign({},W??{},{relatedWords:(fa=(Ra=Ha==null?void 0:Ha.value)==null?void 0:Ra.find(Y=>(Y==null?void 0:Y.prop)===(W==null?void 0:W.prop)))==null?void 0:fa.relatedWords}),(W==null?void 0:W.mainKey)&&(W!=null&&W.value)&&(W==null?void 0:W.value)!==""){let Y=W!=null&&W.relatedContents&&((Ea=W==null?void 0:W.relatedContents)==null?void 0:Ea.length)>0?(wa=W==null?void 0:W.relatedContents)==null?void 0:wa.find($e=>{var na,_e,sa,Ba;return($e==null?void 0:$e[(Ba=(na=W==null?void 0:W.prop)==null?void 0:na.split("."))==null?void 0:Ba[((sa=(_e=W==null?void 0:W.prop)==null?void 0:_e.split("."))==null?void 0:sa.length)-1]])===(W==null?void 0:W.value)}):await ss(W);if(Y&&JSON.stringify(Y)!=="{}"){let $e=Ae;$e=$e==null?void 0:$e.map(_e=>{var sa,Ba,nl,Wa,ul,dl,Vl,Ua,vl,Pa,ol,Ka,tl,_l,Bl,xr,Ll,gl,Al,Jl,Tl;if((W==null?void 0:W.prop)===(_e==null?void 0:_e.prop))_e.value=(Y==null?void 0:Y[(sa=_e==null?void 0:_e.words)==null?void 0:sa.join(".")])??(Y==null?void 0:Y[_e==null?void 0:_e.prop])??Y[(ul=(Ba=_e==null?void 0:_e.prop)==null?void 0:Ba.split("."))==null?void 0:ul[((Wa=(nl=_e==null?void 0:_e.prop)==null?void 0:nl.split("."))==null?void 0:Wa.length)-1]];else if(W!=null&&W.relatedContents&&((dl=W==null?void 0:W.relatedContents)==null?void 0:dl.length)>0)_e.value=(Vl=_e==null?void 0:_e.prop)!=null&&Vl.includes(".")&&((vl=(Ua=_e==null?void 0:_e.prop)==null?void 0:Ua.split("."))==null?void 0:vl[0])===((ol=(Pa=W==null?void 0:W.prop)==null?void 0:Pa.split("."))==null?void 0:ol[0])?Y[(Bl=(Ka=_e==null?void 0:_e.prop)==null?void 0:Ka.split("."))==null?void 0:Bl[((_l=(tl=_e==null?void 0:_e.prop)==null?void 0:tl.split("."))==null?void 0:_l.length)-1]]:(Y==null?void 0:Y[_e==null?void 0:_e.prop])??(_e==null?void 0:_e.value);else if(he.same((W==null?void 0:W.menus)??[],(_e==null?void 0:_e.menus)??[])&&he.same((W==null?void 0:W.groups)??[],(_e==null?void 0:_e.groups)??[])&&!he.same((W==null?void 0:W.words)??[],(_e==null?void 0:_e.words)??[]))if((xr=_e==null?void 0:_e.prop)!=null&&xr.includes(".")&&((gl=(Ll=_e==null?void 0:_e.prop)==null?void 0:Ll.split("."))==null?void 0:gl[0])!==((Jl=(Al=W==null?void 0:W.prop)==null?void 0:Al.split("."))==null?void 0:Jl[0])){let Gl=Object.keys(Y);Gl=Gl==null?void 0:Gl.find(rr=>{var Hl;return rr==null?void 0:rr.includes("."+((Hl=_e==null?void 0:_e.words)==null?void 0:Hl.join(".")))}),_e.value=(Y==null?void 0:Y[Gl])??(Y==null?void 0:Y[_e==null?void 0:_e.prop])??_e.value}else{let Gl=Object.keys(Y);Gl=Gl==null?void 0:Gl.find(rr=>{var Hl;return rr==null?void 0:rr.includes("."+((Hl=_e==null?void 0:_e.words)==null?void 0:Hl.join(".")))}),_e.value=(Y==null?void 0:Y[(Tl=_e==null?void 0:_e.words)==null?void 0:Tl.join(".")])??(Y==null?void 0:Y[Gl])??(Y==null?void 0:Y[_e==null?void 0:_e.prop])??_e.value}else!(_e!=null&&_e.isMainPath)&&he.same((W==null?void 0:W.bindMenus)??[],(_e==null?void 0:_e.bindMenus)??[]),_e.value=(Y==null?void 0:Y[_e==null?void 0:_e.prop])??_e.value;return _e}),Ha.value=$e;let na={};(N=Ha.value)==null||N.forEach(_e=>{na[_e.prop]=_e==null?void 0:_e.value}),cr.value=na}}Lr.value=!0,I.value=!1},fu=d=>d?(d==null?void 0:d.toUpperCase())==="INPUT"?"TEXTAREA":d:"TEXTAREA",hu=d=>{var C,ne;const h=(ne=(C=ba.value)==null?void 0:C.find(ie=>(ie==null?void 0:ie.label)===(d==null?void 0:d.label)))==null?void 0:ne.multiple,B=d==null?void 0:d.prop;if((d==null?void 0:d.formType)!="Select")return;Ne.value.forEach(ie=>{const W=ie==null?void 0:ie[B];h&&Eo.isString(W)&&(ie[B]=[W]),!h&&!Eo.isString(W)&&(ie[B]="")})},It=(d,h)=>{var B;return h==null||h.forEach(z=>{d[z==null?void 0:z.prop]=z==null?void 0:z.value}),d.children&&((B=d.children)==null?void 0:B.length)>0&&(d.children=d.children.map(z=>It(z,h))),d},it=d=>{var B,z,P,C,ne,ie;Li("");const h=(B=Ha.value)==null?void 0:B.reduce((W,xe)=>(W[xe.name]=xe.value,W),{});if(((z=Object.keys(h))==null?void 0:z.length)>0){cr.value=h,Ca.value="",Va.value=(P=Ne.value)==null?void 0:P.length,Oe.value=(C=Za.value)==null?void 0:C.filter(xe=>(xe==null?void 0:xe.label)!=="新增");const W=(ie=(ne=Ce.value)==null?void 0:ne.filter(xe=>(xe==null?void 0:xe.label)!=="操作"))==null?void 0:ie.map(xe=>{var He,Re,Ge;const Ae=(Re=(He=ba.value)==null?void 0:He.find(xa=>(xa==null?void 0:xa.label)===(xe==null?void 0:xe.label)))==null?void 0:Re.multiple;return hu(xe),{...xe,contents:(xe==null?void 0:xe.options)??[],optionUrl:xe!=null&&xe.formMenuSelect&&((Ge=xe==null?void 0:xe.formMenuSelect)==null?void 0:Ge.length)>0?{groupSelect:xe==null?void 0:xe.groupSelect,menuSelect:xe==null?void 0:xe.formMenuSelect,selectRelateType:"",type:xe==null?void 0:xe.formType,multiple:Ae}:null}});V.value=W==null?void 0:W.map(xe=>It(xe,[{prop:"type",value:"edit"},{prop:"columnType",value:fu(xe==null?void 0:xe.formType)||(xe==null?void 0:xe.columnType)}])),d==="createClick"&&(X.value="新增",$i(!0))}},hi={START:"开始时间",END:"结束时间",HOURS:"工时"},vu=(d,h)=>Number(A.dayjs(h).diff(A.dayjs(d),"day",!0).toFixed(1)),Ot=d=>{var C;const h=c.itemData,B=(C=h==null?void 0:h.find(ne=>(ne==null?void 0:ne.key)==="header"))==null?void 0:C.contents,z=new Map;return B==null||B.forEach((ne,ie)=>{const{label:W}=ne;z.set(W,ie)}),!z.has(hi.START)||!z.has(hi.END)||!z.has(hi.HOURS)?d:d==null?void 0:d.map(ne=>{const ie=ne==null?void 0:ne[hi.START],W=ne==null?void 0:ne[hi.END],xe=vu(ie,W);return ie&&W&&(ne[hi.HOURS]=`${xe}天`),ne})},Lt=(d,h,B=0)=>{if(B>((h==null?void 0:h.length)??""))return d;const z=h==null?void 0:h[B],P=new Map;for(const ne of d){const ie=ne[z];P.has(ie)||P.set(ie,[]),P.get(ie)&&P.get(ie).push(ne)}const C=[];for(const[ne,ie]of P){const[W,...xe]=ie,Ae={...W};B+1===((h==null?void 0:h.length)??"")?Ae.children=ie==null?void 0:ie.map(He=>(He.level=A.cloneDeep(B)+1,He)).filter((He,Re)=>Re!==0):xe.length>0&&(Ae.children=Lt(xe,h,B+1)),Ae.level=B,C.push(Ae)}return C},Rt=(d,h,B)=>{var P;if(!(h!=null&&h.contents)||((P=h==null?void 0:h.contents)==null?void 0:P.length)===0)return d;let z=[];return z=Lt(d,h==null?void 0:h.contents,0),z},$t=async(d,h)=>{var za,Ye,Qa,ya,el,ke,Ra,fa,Ea,wa,N,Y,$e,na,_e,sa,Ba,nl,Wa,ul,dl,Vl,Ua,vl,Pa,ol,Ka,tl,_l,Bl,xr,Ll,gl,Al,Jl,Tl,Gl,rr,Hl,hr,qr,vr,tr,ur,Ft,Pt,jt;const B=d==null?void 0:d.filter(ua=>(ua==null?void 0:ua.key)==="header");d==null||d.filter(ua=>(ua==null?void 0:ua.key)==="tableIndexColumn")[0];const z=d==null?void 0:d.filter(ua=>(ua==null?void 0:ua.key)==="childTree")[0];let P=!0;if((Qa=(Ye=(za=d==null?void 0:d.find(ua=>(ua==null?void 0:ua.key)==="filterAllType"))==null?void 0:za.value)==null?void 0:Ye.find(ua=>(ua==null?void 0:ua.value)==="onPamButtonContents"))!=null&&Qa.content){let ua=(ke=(el=(ya=d==null?void 0:d.find(El=>(El==null?void 0:El.key)==="filterAllType"))==null?void 0:ya.value)==null?void 0:el.find(El=>(El==null?void 0:El.value)==="onPamButtonContents"))==null?void 0:ke.content;ua=(Ra=ua==null?void 0:ua.split(":"))==null?void 0:Ra[1],ua=(fa=ua.slice(1,(ua==null?void 0:ua.length)-1))==null?void 0:fa.split(","),P=!!(ua!=null&&ua.find(El=>El==="操作"))}const C=d==null?void 0:d.find(ua=>(ua==null?void 0:ua.key)==="page"),ne=d==null?void 0:d.find(ua=>(ua==null?void 0:ua.key)==="rowButton"),ie=d==null?void 0:d.find(ua=>(ua==null?void 0:ua.key)==="extraButton"),W=d==null?void 0:d.filter(ua=>(ua==null?void 0:ua.key)==="tableContents"),xe=d==null?void 0:d.filter(ua=>(ua==null?void 0:ua.key)==="bottomButton"),Ae=d==null?void 0:d.filter(ua=>(ua==null?void 0:ua.key)==="tableIndex");ba.value=(wa=(Ea=d==null?void 0:d.filter(ua=>(ua==null?void 0:ua.key)==="tableToForm"))==null?void 0:Ea[0])==null?void 0:wa.contents,re.value=(C==null?void 0:C.contents)??!0;let He=[];Ml.value===""?He=B==null?void 0:B[0]:He=(B==null?void 0:B.find(ua=>(ua==null?void 0:ua.selectLabel)==="("+Ml.value+")"))??(B==null?void 0:B.find(ua=>!(ua!=null&&ua.selectLabel)));let Re=[];Ml.value===""?Re=Ae==null?void 0:Ae[0]:Re=(Ae==null?void 0:Ae.find(ua=>(ua==null?void 0:ua.selectLabel)==="("+Ml.value+")"))??(Ae==null?void 0:Ae.find(ua=>!(ua!=null&&ua.selectLabel)));let Ge=[],xa=[];if(((N=He==null?void 0:He.contents)==null?void 0:N.length)>0){let ua=[],El=He==null?void 0:He.contents;if(Array.isArray(El==null?void 0:El[0])&&((Y=El==null?void 0:El[0])!=null&&Y.every(Ya=>!(Ya!=null&&Ya.children)))&&(El=El==null?void 0:El[0]),El.some(Ya=>Array.isArray(Ya)&&(Ya==null?void 0:Ya.find(qe=>qe.children))))ua=($e=he.getGradeColumns(El,P))==null?void 0:$e[0],ua!=null&&ua.find(Ya=>(Ya==null?void 0:Ya.label)==="操作")||ua.push({label:"操作",prop:"operate",type:"operate"});else{let Ya=El.some(qe=>Array.isArray(qe))?El==null?void 0:El[0]:El;Ya!=null&&Ya.find(qe=>(qe==null?void 0:qe.label)==="操作")||Ya.push({label:"操作",prop:"operate",type:"operate"}),Ya==null||Ya.forEach((qe,er)=>{var $r,Mr,Vr,Dr,ai,yi,gi,gr,_n,Vn,bi,an,Fn,Wt,Kt,Gt,Yt,Jt,Xt,Zt;if((Mr=($r=Ee.value)==null?void 0:$r.split("/"))==null||Mr.forEach(nr=>{var mr,Cn,Qt;nr!==""&&((Qt=(Cn=(mr=nr==null?void 0:nr.split(w+"updateLoading"))==null?void 0:mr[0])==null?void 0:Cn.split(w+"loading"))==null||Qt[0])}),qe!=null&&qe.methodContent){let nr=(ai=(Dr=(Vr=qe==null?void 0:qe.methodContent)==null?void 0:Vr.replace("@","%%#"))==null?void 0:Dr.split("%%#"))==null?void 0:ai[1];if(nr=nr==null?void 0:nr.slice(0,(nr==null?void 0:nr.length)-1),nr=he.contentTransArrayToAllNoExtra(nr??"",","),(yi=nr==null?void 0:nr.find(mr=>mr==null?void 0:mr.includes("@Button")))!=null&&yi.includes("Prop")&&((gi=nr==null?void 0:nr.find(mr=>mr==null?void 0:mr.includes("Type")))!=null&&gi.includes("Manual"))){let mr=(_n=(gr=nr==null?void 0:nr.find(Cn=>Cn==null?void 0:Cn.includes("@Button")))==null?void 0:gr.split(":"))==null?void 0:_n[1];mr=((an=(bi=(Vn=mr==null?void 0:mr.replaceAll("[",""))==null?void 0:Vn.replaceAll("]",""))==null?void 0:bi.split(","))==null?void 0:an[1])??"算法执行",Ge.push(mr)}else if((Fn=nr==null?void 0:nr.find(mr=>mr==null?void 0:mr.includes("@Button")))!=null&&Fn.includes("Row")&&((Wt=nr==null?void 0:nr.find(mr=>mr==null?void 0:mr.includes("Type")))!=null&&Wt.includes("Manual"))){let mr=(Gt=(Kt=nr==null?void 0:nr.find(Cn=>Cn==null?void 0:Cn.includes("@Button")))==null?void 0:Kt.split(":"))==null?void 0:Gt[1];mr=((Xt=(Jt=(Yt=mr==null?void 0:mr.replaceAll("[",""))==null?void 0:Yt.replaceAll("]",""))==null?void 0:Jt.split(","))==null?void 0:Xt[1])??"算法执行",xa.push(mr)}}(Zt=ba.value)==null||Zt.find(nr=>(nr==null?void 0:nr.prop)===(qe==null?void 0:qe.prop)),ua.push({label:(qe==null?void 0:qe.label)==="操作"?P?"操作":"":(qe==null?void 0:qe.label)??"",prop:(qe==null?void 0:qe.label)==="操作"?"operate":(qe==null?void 0:qe.prop)??"a"+er,width:qe!=null&&qe.width?parseInt(qe.width):"",fixed:(qe==null?void 0:qe.fixed)??void 0,sortable:(qe==null?void 0:qe.sortable)??!1,filterable:(qe==null?void 0:qe.filterable)??!1,operable:(qe==null?void 0:qe.operable)??!1,showSummary:(qe==null?void 0:qe.showSummary)??!1,align:(qe==null?void 0:qe.align)??"left",showOverflowTooltip:(qe==null?void 0:qe.showOverflowTooltip)??!0,isNotDrag:(qe==null?void 0:qe.isNotDrag)??!1,isEditCol:(qe==null?void 0:qe.isEditCol)??!1,isOperate:(qe==null?void 0:qe.isOperate)??!1,id:(qe==null?void 0:qe.id)??er,type:(qe==null?void 0:qe.label)==="操作"?"operate":void 0,formType:(qe==null?void 0:qe.formType)??(qe!=null&&qe.groupSelect?"Select":""),disabled:qe==null?void 0:qe.disabled,options:(qe==null?void 0:qe.options)??[],value:(qe==null?void 0:qe.value)??"",isExistChild:(qe==null?void 0:qe.isExistChild)??!1,mainKey:(qe==null?void 0:qe.mainKey)??er===0,allSelectionContents:(qe==null?void 0:qe.allContents)??[],filterContent:qe==null?void 0:qe.filterContents,menus:qe==null?void 0:qe.menus,groups:qe==null?void 0:qe.groups,words:qe==null?void 0:qe.words,filter:qe==null?void 0:qe.filter,bindMenus:qe==null?void 0:qe.bindMenus,fatherPath:qe==null?void 0:qe.fatherPath,isMainPath:qe==null?void 0:qe.isMainPath,required:(qe==null?void 0:qe.required)??!1,relatedContents:qe==null?void 0:qe.relatedContents,functionName:qe==null?void 0:qe.functionName,functionRelatedWords:qe==null?void 0:qe.functionRelatedWords,calculatorFilter:qe==null?void 0:qe.calculatorFilter,relatedPages:qe==null?void 0:qe.relatedPages,multiple:(qe==null?void 0:qe.multiple)??!1,multipleLimit:qe==null?void 0:qe.multipleLimit})})}R.value=(na=xe==null?void 0:xe[0])==null?void 0:na.contents;const tn=he.getNewColumnChild(ua),Ht=Ya=>Array.isArray(Ya)?Ya.map(qe=>(Array.isArray(qe==null?void 0:qe.children)&&qe.children.length>0?(qe.sortable=!1,Ht(qe.children)):(qe==null?void 0:qe.prop)==="operate"||(qe==null?void 0:qe.label)==="操作"||(qe==null?void 0:qe.type)==="operate"||(qe.sortable=!1),qe)):Ya;Ht(tn),await Qi(tn),a0(fe.value,tn),V.value=tn,Da.value=tn,r.value=(_e=V.value)==null?void 0:_e.map(Ya=>Ya==null?void 0:Ya.label);let sn=(Ba=(sa=he.getAllLeafNodes(V.value))==null?void 0:sa.filter(Ya=>(Ya==null?void 0:Ya.type)!=="operate"))==null?void 0:Ba.map((Ya,qe)=>({prop:(Ya==null?void 0:Ya.prop)??"a"+qe,column:Ya.label}));Br.value=sn;let en=[];Ml.value===""?en=W==null?void 0:W[0]:en=(W==null?void 0:W.find(Ya=>(Ya==null?void 0:Ya.selectLabel)==="("+Ml.value+")"))??(W==null?void 0:W.find(Ya=>!(Ya!=null&&Ya.selectLabel)));let ei=Array.isArray((nl=en==null?void 0:en.contents)==null?void 0:nl[0])&&((Wa=en==null?void 0:en.contents)!=null&&Wa[0].every(Ya=>Array.isArray(Ya)))?(ul=en==null?void 0:en.contents)==null?void 0:ul[0]:en==null?void 0:en.contents;Re!=null&&Re.contents&&((dl=Re==null?void 0:Re.contents)==null?void 0:dl.length)!==0&&(ei=(Vl=A.cloneDeep(ei))==null?void 0:Vl.map((Ya,qe)=>{if(!Array.isArray(Ya)){let er={};for(let $r in Ya)$r!=="id"&&$r!=="index"&&(er[$r]=Ya[$r]);Ya=Object.values(er)}return Ya}));const Bu=!!((Ua=V.value)!=null&&Ua.find(Ya=>Ya.prop==="index"));ei=cc(ei,Re==null?void 0:Re.contents,Bu);const vi=[];ei==null||ei.forEach((Ya,qe)=>{var $r;let er={};if(Array.isArray(Ya)){let Mr=[];Ya==null||Ya.filter(Vr=>!(Vr!=null&&Vr.id)).forEach((Vr,Dr)=>{var ai,yi,gi,gr,_n,Vn;if((ai=sn==null?void 0:sn[Dr])!=null&&ai.prop&&!Array.isArray(Vr)){let bi={};bi[sn[Dr].column]=Vr,L!=null&&L.value&&((yi=L==null?void 0:L.value)==null?void 0:yi.length)>0&&((gi=L==null?void 0:L.value)!=null&&gi.find(an=>JSON.stringify(an==null?void 0:an[0])===JSON.stringify(bi)))&&(Mr=(gr=L==null?void 0:L.value)==null?void 0:gr.find(an=>JSON.stringify(an==null?void 0:an[0])===JSON.stringify(bi))),Mr&&Mr.length>0?er[sn[Dr].prop]=Mr!=null&&Mr.find(an=>{var Fn;return((Fn=Object.keys(an))==null?void 0:Fn[0])===sn[Dr].column})?(_n=Mr==null?void 0:Mr.find(an=>{var Fn;return((Fn=Object.keys(an))==null?void 0:Fn[0])===sn[Dr].column}))==null?void 0:_n[sn[Dr].column]:Vr:er[sn[Dr].prop]=Vr}else Array.isArray(Vr)&&((Vn=sn[Dr])!=null&&Vn.prop?er[sn[Dr].prop]=Vr:er.children=mt(Vr,sn))})}else er=Ya;if(Array.isArray(Ya)&&Ya.some(Mr=>Mr==null?void 0:Mr.id)){const Mr=($r=Ya==null?void 0:Ya.find(Vr=>Vr.id))==null?void 0:$r.id;vi.push(Object.assign(er,{id:no(Mr)}))}else er.id?vi.push(er):vi.push(Object.assign(er,{id:qe.toString()}))});try{const Ya=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),qe=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null"),er=Ya==null?void 0:Ya.tableId,$r=Ya==null?void 0:Ya.compIndex;if(er&&Array.isArray(qe)&&qe.length>0&&String(er)===String(c==null?void 0:c.parentTableId)&&String($r)===String(c==null?void 0:c.index)){const Mr=new Set(vi.map(Dr=>String(Dr==null?void 0:Dr.id))),Vr=qe.filter(Dr=>!Mr.has(String(Dr)));if(Vr.length>0){const Dr=Ya==null?void 0:Ya.pageKey,ai=Dr!=null&&Dr.startsWith("/")?Dr.substring(1):Dr;((h==null?void 0:h[Dr])||(h==null?void 0:h[ai])||[]).filter(gr=>{var _n,Vn;return((_n=gr==null?void 0:gr.key)==null?void 0:_n.type)==="data"&&String((Vn=gr==null?void 0:gr.key)==null?void 0:Vn.tableId)===String(er)&&Vr.includes(gr==null?void 0:gr.id)}).forEach(gr=>{var _n;Mr.has(String(gr==null?void 0:gr.id))||(vi.push({id:gr==null?void 0:gr.id,...((_n=gr==null?void 0:gr.value)==null?void 0:_n.tableData)||{}}),Mr.add(String(gr==null?void 0:gr.id)))})}}}catch{}let mi=null;try{const Ya=`ocr_committed_temp_ids_v1:${String((c==null?void 0:c.parentTableId)??"")}:${String((c==null?void 0:c.index)??"")}`,qe=JSON.parse(sessionStorage.getItem(Ya)||"null");Array.isArray(qe)&&qe.length>0&&(mi=new Set(qe.map(er=>String(er))))}catch{}const Ut=Array.from(((vl=Ta.value)==null?void 0:vl.values())||[]).filter(Ya=>!(!(Ya!=null&&Ya._isOCRRow&&(Ya==null?void 0:Ya._ocrTableId)===(c==null?void 0:c.index))||mi&&mi.has(String(Ya==null?void 0:Ya.id)))),Nu=(Ne.value||[]).map(Ya=>String(Ya==null?void 0:Ya.id)),qt=ci(vi,Nu);if(Ne.value=Rt(qt,z,V.value),We.value=qt,(Pa=We.value)==null||Pa.forEach(Ya=>{var qe;(qe=Ta.value)==null||qe.set(Ya.id,Ya)}),mi&&mi.size>0)try{const Ya=new Set(Array.from(mi.values()));Ne.value=(Ne.value||[]).filter(qe=>!Ya.has(String(qe==null?void 0:qe.id))),We.value=(We.value||[]).filter(qe=>!Ya.has(String(qe==null?void 0:qe.id))),Ya.forEach(qe=>{var er,$r;try{($r=(er=Ta.value)==null?void 0:er.delete)==null||$r.call(er,qe)}catch{}})}catch{}const uo=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),ot=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null");if(uo&&Array.isArray(ot)&&ot.length>0&&String(uo==null?void 0:uo.compIndex)===String(c==null?void 0:c.index)){const Ya=new Set((We.value||[]).map(qe=>String(qe==null?void 0:qe.id)));ot.filter(qe=>!Ya.has(String(qe)))}if(Ut.length>0){const Ya=new Set((Ne.value||[]).map(er=>er==null?void 0:er.id)),qe=Ut.filter(er=>!Ya.has(er.id));qe.length>0&&(Ne.value=[...Ne.value||[],...qe],We.value=[...We.value||[],...qe],qe.forEach(er=>{var $r;return($r=Ta.value)==null?void 0:$r.set(er.id,er)}))}}else V.value=[],Ce.value=[],Ne.value=[],We.value=[],Ta.value=new Map;if(xa=[...new Set(xa)],xa=xa==null?void 0:xa.map(ua=>({label:ua,type:"methodButton"})),((ol=ne==null?void 0:ne.contents)==null?void 0:ol.length)>0?ga.value=ne==null?void 0:ne.contents:ga.value=[],ga.value=[...ga.value,...xa],Ge=[...new Set(Ge)],Ge=Ge==null?void 0:Ge.map(ua=>({label:ua,type:"methodButton"})),((Ka=ie==null?void 0:ie.contents)==null?void 0:Ka.length)>0)if((Bl=(_l=(tl=d==null?void 0:d.find(ua=>(ua==null?void 0:ua.key)==="filterAllType"))==null?void 0:tl.value)==null?void 0:_l.find(ua=>(ua==null?void 0:ua.value)==="onButtonContents"))!=null&&Bl.content){let ua=(gl=(Ll=(xr=d==null?void 0:d.find(El=>(El==null?void 0:El.key)==="filterAllType"))==null?void 0:xr.value)==null?void 0:Ll.find(El=>(El==null?void 0:El.value)==="onButtonContents"))==null?void 0:gl.content;if(ua=(Al=ua==null?void 0:ua.split(":"))==null?void 0:Al[1],ua=(Jl=ua.slice(1,(ua==null?void 0:ua.length)-1))==null?void 0:Jl.split(","),Oe.value=(Tl=ie==null?void 0:ie.contents)==null?void 0:Tl.filter(El=>ua==null?void 0:ua.find(tn=>tn===(El==null?void 0:El.label))),Za.value=(Gl=ie==null?void 0:ie.contents)==null?void 0:Gl.filter(El=>ua==null?void 0:ua.find(tn=>tn===(El==null?void 0:El.label))),(rr=ie==null?void 0:ie.contents)!=null&&rr.some(El=>(El==null?void 0:El.label)==="OCR识别")&&!((Hl=Oe.value)!=null&&Hl.some(El=>(El==null?void 0:El.label)==="OCR识别"))){const El=(hr=ie==null?void 0:ie.contents)==null?void 0:hr.find(tn=>(tn==null?void 0:tn.label)==="OCR识别");Oe.value=[...Oe.value,El],Za.value=[...Za.value,El]}K.value=!!(ua!=null&&ua.find(El=>El==="搜索")),F.value=!!(ua!=null&&ua.find(El=>El==="块状显示"))}else Oe.value=ie==null?void 0:ie.contents,Za.value=ie==null?void 0:ie.contents;else Oe.value=[],Za.value=[];Oe.value=[...Oe.value,...Ge],Za.value=[...Za.value,...Ge],typeof Ee.value=="string"&&Ee.value==="设备管理/试验设备"&&(c==null?void 0:c.compName)==="设备列表"?((qr=Oe.value)!=null&&qr.some(ua=>(ua==null?void 0:ua.label)==="OCR识别")||(Oe.value=[...Oe.value||[],{label:"OCR识别"}]),(vr=Za.value)!=null&&vr.some(ua=>(ua==null?void 0:ua.label)==="OCR识别")||(Za.value=[...Za.value||[],{label:"OCR识别"}])):(Oe.value=(Oe.value||[]).filter(ua=>(ua==null?void 0:ua.label)!=="OCR识别"),Za.value=(Za.value||[]).filter(ua=>(ua==null?void 0:ua.label)!=="OCR识别")),(tr=Oe.value)!=null&&tr.some(ua=>(ua==null?void 0:ua.label)==="切换视图")||(Oe.value=[...Oe.value||[],{label:"切换视图"}]),(ur=Za.value)!=null&&ur.some(ua=>(ua==null?void 0:ua.label)==="切换视图")||(Za.value=[...Za.value||[],{label:"切换视图"}]),Va.value=((Ft=Ne==null?void 0:Ne.value)==null?void 0:Ft.length)??0,Ot(Ne.value),ln.value=Ne.value,$l.value&&(V.value=(jt=(Pt=Ce.value)==null?void 0:Pt.filter(ua=>(ua==null?void 0:ua.label)!=="操作"))==null?void 0:jt.map(ua=>{var El;return{...ua,type:"edit",optionUrl:ua!=null&&ua.formMenuSelect&&((El=ua==null?void 0:ua.formMenuSelect)==null?void 0:El.length)>0?{groupSelect:ua==null?void 0:ua.groupSelect,menuSelect:ua==null?void 0:ua.formMenuSelect,selectRelateType:"",type:ua==null?void 0:ua.formType}:null}}),it())};e.watch(()=>[c.itemData,Ml.value,Bn.value,pn.value,L==null?void 0:L.value],async()=>{var d,h,B,z,P,C;if((d=c==null?void 0:c.itemData)!=null&&d.find(ne=>(ne==null?void 0:ne.key)==="columnPath")&&!((h=Q.value)!=null&&h.find(ne=>{var ie,W;return(ne==null?void 0:ne.key)===((W=(ie=c==null?void 0:c.itemData)==null?void 0:ie.find(xe=>(xe==null?void 0:xe.key)==="columnPath"))==null?void 0:W.contents)}))){let ne=Q.value,ie={key:(z=(B=c==null?void 0:c.itemData)==null?void 0:B.find(W=>(W==null?void 0:W.key)==="columnPath"))==null?void 0:z.contents,value:(C=(P=c==null?void 0:c.itemData)==null?void 0:P.find(W=>(W==null?void 0:W.key)==="columnUsingPath"))==null?void 0:C.contents};ne!=null&&ne.find(W=>(W==null?void 0:W.key)===(ie==null?void 0:ie.key))?ne=ne==null?void 0:ne.map(W=>((W==null?void 0:W.key)===(ie==null?void 0:ie.key)&&(W.value=ie.value),W)):ne.push(ie),oa.setTableViewContents(ne)}await $t(c.itemData,c.allMapContents)},{deep:!0,immediate:!0}),e.watch(()=>c==null?void 0:c.operatingForm,d=>{d!=null&&d.form&&(Li(d==null?void 0:d.form),X.value=d==null?void 0:d.dialogTitle,Aa.value=!0,Z.value=!0)},{immediate:!0,deep:!0});const mu=()=>{var d;(d=S.value)!=null&&d.includes("read")&&($l.value=!$l.value)},yu=()=>{_r.value=!_r.value};e.watch(()=>{var d;return(d=c==null?void 0:c.config)==null?void 0:d.viewport},d=>{var h;S.value=d,(d==null?void 0:d.length)===0?$l.value=!1:(d!=null&&d.includes("read")||($l.value=!0),d!=null&&d.includes("edit")||($l.value=!1)),M.value=((h=c==null?void 0:c.config)==null?void 0:h.showIndex)||$l.value},{immediate:!0}),e.watch(()=>$l.value,d=>{var h;d?(it("viewChange"),oa.setCacheUpdatingData(null)):(Oe.value=Za.value,V.value=Da.value,H.value&&(oa.setTableLoading(c==null?void 0:c.index),Me("change",H.value))),M.value=d||((h=c==null?void 0:c.config)==null?void 0:h.showIndex),Kl.value=[]},{immediate:!0}),e.watch(()=>{var d;return(d=fn.value)==null?void 0:d.length},d=>{d===0&&(ge.currentPage=1)}),e.watch(()=>c==null?void 0:c.compNames,d=>{i.contents=[{label:"列表名",prop:"groupName",name:"列表名",type:"select",value:"",id:0,contents:d||[],width:1}]},{immediate:!0}),e.ref(!1);const gu=(d,h)=>{var B;it("createClick"),h===ge.pageSize&&(ge.currentPage=Math.ceil(((B=Ne.value)==null?void 0:B.length)/ge.pageSize))},bu=async(d,h,B)=>{var P,C,ne,ie,W;const z=(h==null?void 0:h.property)??(h==null?void 0:h.prop);if(z&&so.includes(z)&&B!==void 0&&B!==null&&String(B).trim()!==""){const xe=String(B).trim();if(await nt(xe,d==null?void 0:d.id)){qa.ElMessage.warning("当前任务下通道号不能重复,请重新选择");const He=(P=Ne.value)==null?void 0:P.findIndex(Ge=>(Ge==null?void 0:Ge.id)===(d==null?void 0:d.id)),Re=He!==-1?(ne=(C=Ne.value)==null?void 0:C[He])==null?void 0:ne[z]:void 0;z&&(d[z]=Re??"");return}}if($l.value){const xe=d==null?void 0:d.id;xe!=null&&(v.value.has(xe)||v.value.set(xe,A.cloneDeep(d)),s.value.add(xe));const Ae=(ie=Ne.value)==null?void 0:ie.findIndex(He=>(He==null?void 0:He.id)===(d==null?void 0:d.id));Ae!==-1&&z&&(Ne.value[Ae]={...Ne.value[Ae],[z]:B}),co(B,d,h);return}co(B,d,h),cr.value=A.cloneDeep(d),Ca.value=d==null?void 0:d.id,Va.value=(W=Ne.value)==null?void 0:W.length,X.value=d!=null&&d._isTemp?"新增":"编辑",$i(!1)},ku=async()=>{var d,h;try{const B=[];if(c!=null&&c.related&&Array.isArray(c.related)&&(console.log("props.related",c.related),c.related.forEach(z=>{if(typeof z=="string"&&z.includes("content_")){const P=z.split("_")[1];P&&(B.push(`content_${P}`),B.push(`struct_${P}`))}})),B.length===0&&(c!=null&&c.itemData)){const z=(h=(d=c.itemData)==null?void 0:d.find(P=>(P==null?void 0:P.key)==="contentTableId"))==null?void 0:h.contents;z&&(B.push(`content_${z}`),B.push(`struct_${z}`))}return B}catch(B){return console.error("获取 tableNames 失败:",B),[]}},xu=async(d,h,B)=>{var C,ne;if(!B||typeof B!="string"||B.trim()===""){const ie=(h==null?void 0:h.property)??(h==null?void 0:h.prop),W=`${d==null?void 0:d.id}:${ie}`;f.value.delete(W),g.value.set(W,!1);return}const z=(h==null?void 0:h.property)??(h==null?void 0:h.prop),P=`${d==null?void 0:d.id}:${z}`;g.value.set(P,!0);try{const ie=await ku();if(ie.length===0){console.warn("未找到同名表,跳过全局搜索"),f.value.delete(P),g.value.set(P,!1);return}const W=parseInt((C=cl.value)==null?void 0:C.plat_id);if(!W){console.warn("platId 无效,跳过全局搜索"),f.value.delete(P),g.value.set(P,!1);return}const xe=await A.getAllTables({platId:W,tableNames:ie??[]}),Ae=((ne=xe==null?void 0:xe.data)==null?void 0:ne.result)||[],He=[],Re=[];for(let Ge=0;Ge<Ae.length;Ge+=2)Ge+1<Ae.length&&Re.push([Ae[Ge],Ae[Ge+1]]);Re.forEach(([Ge,xa])=>{var el;if(!Array.isArray(Ge)||Ge.length===0||!Array.isArray(xa)||xa.length===0)return;const Oa=xa[0];let za=((el=Oa==null?void 0:Oa.结构)==null?void 0:el.contents)??[];if(!Array.isArray(za)||za.length===0)return;let Ye=A.cloneDeep(za);if(Array.isArray(Ye==null?void 0:Ye[0])&&(Ye=he.getColumnChild(Ye[0])),!Array.isArray(Ye)||Ye.length===0||!Ye.some(ke=>(ke==null?void 0:ke.prop)===z))return;[...Ge].sort((ke,Ra)=>{const fa=Number((ke==null?void 0:ke.update_time)??0);return Number((Ra==null?void 0:Ra.update_time)??0)-fa}).slice(0,20).forEach(ke=>{const Ra=ke[z];if(Ra!=null){const fa=String(Ra);fa.toLowerCase().includes(B.toLowerCase())&&He.findIndex(wa=>{var N;return ke.id&&((N=wa.rowData)==null?void 0:N.id)===ke.id?!0:wa.label===fa})===-1&&He.push({label:fa,rowData:A.cloneDeep(ke),sourceTable:(Oa==null?void 0:Oa.source_table)||""})}})}),f.value.set(P,He)}catch(ie){console.error("全局搜索建议失败:",ie),f.value.delete(P)}finally{g.value.set(P,!1)}},wu=(d,h,B)=>{if(!$l.value)return;const z=(h==null?void 0:h.property)??(h==null?void 0:h.prop),P=(h==null?void 0:h.formType)||(h==null?void 0:h.columnType)||"";if(P&&P.toUpperCase()!=="INPUT"&&P!=="")return;const C=`${d==null?void 0:d.id}:${z}`;if(m.has(C)&&clearTimeout(m.get(C)),!B||B.trim()===""){f.value.delete(C),g.value.set(C,!1);return}const ne=setTimeout(()=>{xu(d,{prop:z,property:z},B),m.delete(C)},300);m.set(C,ne)};function _u(d,h){const B=`${d==null?void 0:d.id}:${(h==null?void 0:h.property)??(h==null?void 0:h.prop)}`;return f.value.get(B)||[]}const Su=(d,h,B)=>{var Ae;if(!B||!B.rowData)return;const z=B.rowData,P=d==null?void 0:d.id,C=(h==null?void 0:h.property)??(h==null?void 0:h.prop),ie=(he.getAllLeafNodes(V.value)||[]).filter(He=>(He==null?void 0:He.type)!=="operate"&&(He==null?void 0:He.label)!=="操作"&&(He==null?void 0:He.prop)!=="operate");ie.forEach(He=>{const Re=He==null?void 0:He.prop;Re&&z[Re]!==void 0&&(d[Re]=z[Re])});const W=(Ae=Ne.value)==null?void 0:Ae.findIndex(He=>(He==null?void 0:He.id)===P);W!==-1&&ie.forEach(He=>{const Re=He==null?void 0:He.prop;Re&&z[Re]!==void 0&&(Ne.value[W][Re]=z[Re])}),P!=null&&(v.value.has(P)||v.value.set(P,A.cloneDeep(d)),s.value.add(P));const xe=`${P}:${C}`;f.value.delete(xe),g.value.set(xe,!1),co(d[C],d,h)},Ur=d=>{var W,xe,Ae,He,Re,Ge,xa,Oa,za,Ye,Qa;const{row:h,column:B,item:z,slotData:P}=d;let C=h!=null&&h[B==null?void 0:B.prop]||(h==null?void 0:h[B==null?void 0:B.prop])===0?((xe=(W=h==null?void 0:h[B==null?void 0:B.prop])==null?void 0:W[0])==null?void 0:xe.contents)??((h==null?void 0:h[B==null?void 0:B.prop])===0?"0":h==null?void 0:h[B==null?void 0:B.prop]):((He=(Ae=h==null?void 0:h[z==null?void 0:z.prop])==null?void 0:Ae[0])==null?void 0:He.contents)??(h==null?void 0:h[z==null?void 0:z.prop])??((Ge=(Re=P==null?void 0:P[z==null?void 0:z.prop])==null?void 0:Re[0])==null?void 0:Ge.contents)??(P==null?void 0:P[z==null?void 0:z.prop])??((za=(Oa=h==null?void 0:h[(xa=z==null?void 0:z.child)==null?void 0:xa.prop])==null?void 0:Oa[0])==null?void 0:za.contents)??(h==null?void 0:h[(Ye=z==null?void 0:z.child)==null?void 0:Ye.prop]),ie=Array.isArray(C)&&!(C!=null&&C.every(ya=>typeof ya=="string"||typeof ya=="number"))?"查看":C;if(ie=Array.isArray(ie)?ie.join(","):ie,(B==null?void 0:B.formType)==="Date")if(!ie||ie===""||ie===null||ie===void 0)ie="";else{const ya=A.dayjs(ie,["YYYY-MM-DD","YYYY/MM/DD","YYYY年MM月DD日","YYYYMMDD"],!0);ie=ya.isValid()?ya.format("YYYYMMDD"):ie??""}return Array.isArray(B==null?void 0:B.relatedPages)&&((Qa=B==null?void 0:B.relatedPages)==null?void 0:Qa.length)>0&&(ie="详情页"),ie},Eu=d=>{var xe,Ae,He,Re,Ge,xa,Oa,za,Ye,Qa;const{row:h,column:B,item:z,slotData:P}=d;let C=h!=null&&h[B==null?void 0:B.prop]?((Ae=(xe=h==null?void 0:h[B==null?void 0:B.prop])==null?void 0:xe[0])==null?void 0:Ae.contents)??(h==null?void 0:h[B==null?void 0:B.prop]):((Re=(He=h==null?void 0:h[z==null?void 0:z.prop])==null?void 0:He[0])==null?void 0:Re.contents)??(h==null?void 0:h[z==null?void 0:z.prop])??((xa=(Ge=P==null?void 0:P[z==null?void 0:z.prop])==null?void 0:Ge[0])==null?void 0:xa.contents)??(P==null?void 0:P[z==null?void 0:z.prop])??((Ye=(za=h==null?void 0:h[(Oa=z==null?void 0:z.child)==null?void 0:Oa.prop])==null?void 0:za[0])==null?void 0:Ye.contents)??(h==null?void 0:h[(Qa=z==null?void 0:z.child)==null?void 0:Qa.prop]);const ie=Array.isArray(C)&&!(C!=null&&C.every(ya=>typeof ya=="string"||typeof ya=="number")),W=Array.isArray(C)&&(C==null?void 0:C.find(ya=>ya==null?void 0:ya.url));return ie&&W},Cu=d=>{var P,C,ne,ie;if(!(d!=null&&d.column))return!1;const h=Ee.value==="试验任务/任务管理",B=(c==null?void 0:c.compName)==="任务列表",z=((C=(P=d==null?void 0:d.column)==null?void 0:P.filter)==null?void 0:C.includes("@TextRGBA"))||((ie=(ne=d==null?void 0:d.column)==null?void 0:ne.filter)==null?void 0:ie.includes("@TextBackRGBA"));return h&&B&&z},Du=(d,h)=>d.find(B=>Object.values(B).some(z=>z===h));return e.watch(()=>Te.value,async d=>{if(d){te.setContentLoading(!0),await e.nextTick();const h=Du(Ne.value,d==null?void 0:d.data);if(!h)return te.setContentLoading(!1);await xn(d==null?void 0:d.data,null,h,{data:d==null?void 0:d.data}),te.setContentLoading(!1)}},{deep:!0,immediate:!0}),e.watch(()=>c==null?void 0:c.cacheNewData,d=>{var h;d&&(Array.isArray(d)?d.forEach(B=>{var z,P,C,ne,ie;if(换,String(B==null?void 0:B.compId)===String(c==null?void 0:c.index)&&(B!=null&&B.resId)&&((z=B==null?void 0:B.data)!=null&&z.id)){const W=(P=B==null?void 0:B.data)==null?void 0:P.id,xe=B==null?void 0:B.resId;if(Ne.value=(C=Ne.value)==null?void 0:C.map(Ae=>{if((Ae==null?void 0:Ae.id)===W){const He={...Ae,id:xe};return delete He._isOCRRow,delete He._ocrTableId,He}return Ae}),(ie=(ne=Ta.value)==null?void 0:ne.has)!=null&&ie.call(ne,W)){const He={...Ta.value.get(W)||{},id:xe};delete He._isOCRRow,delete He._ocrTableId,Ta.value.delete(W),Ta.value.set(xe,He)}rl(c==null?void 0:c.index,W,xe)}}):String(d==null?void 0:d.compId)===String(c==null?void 0:c.index)&&(Ne.value=(h=Ne.value)==null?void 0:h.map(B=>{var z;if((B==null?void 0:B.id)===((z=d==null?void 0:d.data)==null?void 0:z.id)){const P={...B,id:d==null?void 0:d.resId};return delete P._isOCRRow,delete P._ocrTableId,P}return B})))},{immediate:!0,deep:!0}),(d,h)=>{var Ye,Qa,ya,el;const B=e.resolveComponent("svg-icon"),z=e.resolveComponent("el-popover"),P=e.resolveComponent("el-switch"),C=e.resolveComponent("el-checkbox"),ne=e.resolveComponent("el-radio"),ie=e.resolveComponent("el-radio-group"),W=e.resolveComponent("el-checkbox-group"),xe=e.resolveComponent("el-button"),Ae=e.resolveComponent("el-icon"),He=e.resolveComponent("el-progress"),Re=e.resolveComponent("el-alert"),Ge=e.resolveComponent("el-table-column"),xa=e.resolveComponent("el-table"),Oa=e.resolveComponent("el-upload"),za=e.resolveComponent("el-text");return e.openBlock(),e.createElementBlock("div",F0,[gn.value?(e.openBlock(),e.createBlock(ll.ssTable,{id:"excel-table",pageObj:ge,showIndex:M.value,isTree:(Ye=a.compItem)==null?void 0:Ye.isTree,summaryInfo:se,columns:V.value,defaultSort:de,isCardViewport:_r.value,checkedColumns:r.value,key:rn.value+V.value,tableData:fn.value,isEditViewport:$l.value,isShowPagination:re.value,isShowEdit:!1,isShowDelete:!1,allowSelect:D.value,onDbClickRow:Qn,extraButton:Oe.value,rowButton:ga.value,cacheExtraButtons:Za.value,isClearSelection:((Qa=Kl.value)==null?void 0:Qa.length)===0,onDoCurrentChange:Ni,onDoSizeChange:Lo,onSortChange:Ro,onContentClick:xn,onRowClick:Oi,onSelectChange:Uo,onCellChange:bu,onCellInput:wu,onSelectSuggest:Su,onChange:co,onPreview:lo,onSubmitEditingTable:Xi,onHandleColEditChange:Yi,onHandleColTypeChange:Hr,onClickButton:lt,onAddNewRow:Po,bottomButton:R.value},e.createSlots({headerButton:e.withCtx(ke=>{var Ra,fa,Ea,wa;return[a.showHeader?(e.openBlock(),e.createBlock(yf,{key:0,id:"tableHeaderButton",pageLayout:a.pageLayout,lockingPage:e.unref(da)===e.unref(Ee),filterValues:Go.value,selectNums:(Ra=Kl.value)==null?void 0:Ra.length,dataNums:(fa=Ne.value)==null?void 0:fa.length,compName:a.compName,isDevMode:a.isDevMode,buttons:ke.buttons,menuFilter:(wa=(Ea=a.compItem)==null?void 0:Ea.component)==null?void 0:wa.menuFilter,onButtonClick:h[1]||(h[1]=(N,Y,$e)=>lt(N,Y,{extra:$e})),columns:V.value,onFilter:io,onGetImportData:Vo,level:a.level,filterShow:K.value},null,8,["pageLayout","lockingPage","filterValues","selectNums","dataNums","compName","isDevMode","buttons","menuFilter","columns","level","filterShow"])):e.createCommentVNode("",!0)]}),viewport:e.withCtx(()=>{var ke,Ra,fa,Ea;return[((ke=Ne.value)==null?void 0:ke.length)>0&&a.allowOperate&&F.value?(e.openBlock(),e.createElementBlock("div",H0,[(Ra=S.value)!=null&&Ra.includes("read")&&((fa=S.value)!=null&&fa.includes("edit"))&&((Ea=ga.value)!=null&&Ea.some(wa=>(wa==null?void 0:wa.label)==="编辑"))&&!_r.value&&e.unref(da)!==e.unref(Ee)?(e.openBlock(),e.createElementBlock("span",{key:0,title:"编辑表格",onClick:mu},[e.createVNode(B,{name:"editTable",class:"view-icon"})])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]}),rowCreate:e.withCtx(({row:ke,index:Ra})=>[e.createElementVNode("span",{title:"新增",class:"row-create-wrap",onClick:fa=>gu(ke,Ra)},[e.createVNode(B,{name:"rowCreate",style:{width:"10px",height:"10px"}})],8,U0)]),operateCol:e.withCtx(()=>[e.createVNode(z,{title:"选择显示列信息",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:uu,onBeforeEnter:du},{reference:e.withCtx(()=>[e.createElementVNode("span",q0,[e.createVNode(B,{name:"operate",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),default:e.withCtx(()=>[p.value?(e.openBlock(),e.createElementBlock("div",W0,[h[20]||(h[20]=e.createElementVNode("div",{class:"group-title"},"表格操作",-1)),e.createVNode(P,{"model-value":$.value,"active-text":"排序","inactive-text":"",style:{"margin-right":"8px"},onChange:h[2]||(h[2]=ke=>eo(ke))},null,8,["model-value"]),h[21]||(h[21]=e.createElementVNode("div",{class:"group-title"},"表格列操作",-1)),e.createVNode(W,{modelValue:r.value,"onUpdate:modelValue":h[3]||(h[3]=ke=>r.value=ke),style:{height:"100%"},min:2,ref_key:"checkboxGroupRef",ref:t},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(nn.value,ke=>(e.openBlock(),e.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:ke.label},[e.createVNode(C,{value:ke.label,style:{width:"100%",marginRight:0}},{default:e.withCtx(()=>[e.createElementVNode("span",{title:ke.label,style:{display:"inline-block",width:"250px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},e.toDisplayString(ke.label),9,K0)]),_:2},1032,["value"]),e.createVNode(z,{"popper-class":"col-operate-popover",title:"列操作",placement:"left",teleported:!1,trigger:"hover"},{reference:e.withCtx(()=>[e.createVNode(B,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:e.withCtx(()=>{var Ra;return[e.createElementVNode("div",G0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((Ra=Object.keys(ke))==null?void 0:Ra.filter(fa=>{var Ea;return(Ea=E.value)==null?void 0:Ea.find(wa=>(wa==null?void 0:wa.value)===fa)}),fa=>{var Ea,wa;return e.openBlock(),e.createElementBlock("div",{key:fa},[j[fa]=="radio"?(e.openBlock(),e.createElementBlock("div",Y0,[h[19]||(h[19]=e.createElementVNode("div",null,"固定:",-1)),e.createVNode(ie,{"model-value":ke==null?void 0:ke[fa],onChange:N=>Gn(N,fa,ke)},{default:e.withCtx(()=>{var N,Y;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((Y=(N=E.value)==null?void 0:N.find($e=>($e==null?void 0:$e.value)===fa))==null?void 0:Y.options,$e=>(e.openBlock(),e.createBlock(ne,{key:$e==null?void 0:$e.value,label:$e==null?void 0:$e.value,value:$e==null?void 0:$e.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString($e==null?void 0:$e.label),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["model-value","onChange"])])):e.createCommentVNode("",!0),j[fa]=="switch"?(e.openBlock(),e.createBlock(P,{key:1,"model-value":ke==null?void 0:ke[fa],"active-text":(wa=(Ea=E.value)==null?void 0:Ea.find(N=>(N==null?void 0:N.value)===fa))==null?void 0:wa.label,onChange:N=>Gn(N,fa,ke)},null,8,["model-value","active-text","onChange"])):e.createCommentVNode("",!0)])}),128))])]}),_:2},1024),e.createElementVNode("span",J0,[e.createVNode(B,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0)]),_:1})]),content:e.withCtx(ke=>{var Ra,fa,Ea,wa,N,Y,$e,na,_e,sa,Ba,nl,Wa,ul,dl,Vl,Ua,vl,Pa,ol;return[((Ra=ke==null?void 0:ke.column)==null?void 0:Ra.label)==="证书附件"||((fa=ke==null?void 0:ke.column)==null?void 0:fa.prop)==="证书附件"?(e.openBlock(),e.createElementBlock("div",X0,[e.createVNode(B,{name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:e.withModifiers(Ka=>wn(ke),["stop"]),title:"查看OCR图片"},null,8,["onClick"])])):Eu(ke)?(e.openBlock(),e.createBlock(z,{key:1,"popper-class":"file-popover",placement:"right",trigger:"hover",effect:"light",width:"auto"},{reference:e.withCtx(()=>[e.createElementVNode("span",Z0,e.toDisplayString(Ur(ke)),1)]),default:e.withCtx(()=>{var Ka,tl;return[e.createElementVNode("div",Q0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((tl=ke==null?void 0:ke.row)==null?void 0:tl[(Ka=ke==null?void 0:ke.column)==null?void 0:Ka.prop],_l=>(e.openBlock(),e.createElementBlock("div",e3,[e.createElementVNode("div",{class:"prop-url",title:Jn(_l),onClick:Bl=>ui(_l)},e.toDisplayString(Jn(_l)),9,a3),e.createElementVNode("div",{class:"prop-download",onClick:Bl=>Wo(_l)}," 下载 ",8,l3)]))),256))])]}),_:2},1024)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[Cu(ke)?(e.openBlock(),e.createBlock(Vu,{key:0,value:Ur(ke),columnContent:ke==null?void 0:ke.column},null,8,["value","columnContent"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"table-cell-content",style:e.normalizeStyle({color:!Array.isArray(Ur(ke))&&((wa=(Ea=Ur(ke))==null?void 0:Ea.toString())!=null&&wa.includes(".txt")||(Y=(N=Ur(ke))==null?void 0:N.toString())!=null&&Y.includes(".cpt")||(na=($e=Ur(ke))==null?void 0:$e.toString())!=null&&na.includes(".cyd"))?"var(--vertical-menuitem-active-bg)":"",textDecoration:!Array.isArray(Ur(ke))&&((sa=(_e=Ur(ke))==null?void 0:_e.toString())!=null&&sa.includes(".txt")||(nl=(Ba=Ur(ke))==null?void 0:Ba.toString())!=null&&nl.includes(".cpt")||(ul=(Wa=Ur(ke))==null?void 0:Wa.toString())!=null&&ul.includes(".cyd"))?"underline":"",cursor:!Array.isArray(Ur(ke))&&((Vl=(dl=Ur(ke))==null?void 0:dl.toString())!=null&&Vl.includes(".txt")||(vl=(Ua=Ur(ke))==null?void 0:Ua.toString())!=null&&vl.includes(".cpt")||(ol=(Pa=Ur(ke))==null?void 0:Pa.toString())!=null&&ol.includes(".cyd"))?"pointer":"",marginLeft:(ke==null?void 0:ke.colIndex)===0?`${((ke==null?void 0:ke.level)??0)*20}px`:0}),onClick:Ka=>{var tl;return Wn(Ur(ke),((tl=ke==null?void 0:ke.column)==null?void 0:tl.relatedPages)??[])}},e.toDisplayString(Ur(ke)===0?"0":Ur(ke)),13,r3))],64))]}),_:2},[((ya=ga.value)==null?void 0:ya.length)>0?{name:"actions",fn:e.withCtx(({item:ke,fIndex:Ra})=>[e.createVNode(z,{title:"",placement:"left-start","popper-class":"menu-operate-popover"},{reference:e.withCtx(()=>[e.createVNode(B,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"},onClick:h[0]||(h[0]=e.withModifiers(()=>{},["stop"]))})]),default:e.withCtx(()=>[e.createElementVNode("div",P0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ii(ga.value,ke),(fa,Ea)=>(e.openBlock(),e.createElementBlock("div",{class:"menu-config-item",key:Ea,onClick:e.withModifiers(wa=>lt(fa==null?void 0:fa.label,ke,{extra:fa}),["stop"])},[e.createElementVNode("div",{style:e.normalizeStyle({color:fa==null?void 0:fa.textColor}),class:"extra-button-label"},e.toDisplayString(fa==null?void 0:fa.label),5)],8,j0))),128))])]),_:2},1024)]),key:"0"}:void 0]),1032,["pageObj","showIndex","isTree","summaryInfo","columns","defaultSort","isCardViewport","checkedColumns","tableData","isEditViewport","isShowPagination","allowSelect","extraButton","rowButton","cacheExtraButtons","isClearSelection","bottomButton"])):e.createCommentVNode("",!0),$l.value?(e.openBlock(),e.createElementBlock("div",n3,[e.createVNode(xe,{id:"themeBorderButton",onClick:Ho},{default:e.withCtx(()=>h[22]||(h[22]=[e.createTextVNode("取消")])),_:1,__:[22]}),e.createVNode(xe,{class:"ok-button",id:"themeButton",onClick:Ai},{default:e.withCtx(()=>h[23]||(h[23]=[e.createTextVNode("保存")])),_:1,__:[23]})])):e.createCommentVNode("",!0),e.createVNode(wr.ssDialog,{title:X.value,visible:Z.value,width:sr.value,onBeforeDestroy:ao,style:{height:"74%"}},{default:e.withCtx(()=>[e.createElementVNode("div",i3,[e.createVNode(ll.ssForm,{ref_key:"formRef",ref:q,rowContents:Ha.value,showOperator:!1,onChange:pu,isEnableWrap:!1,onFixChangeValue:Ko,onClickTrigger:Yn,isEdit:Qe.value,onBlurChange:Zi,onCreate:si,onTagChange:An},null,8,["rowContents","isEdit"])])]),footer:e.withCtx(()=>[Aa.value?(e.openBlock(),e.createElementBlock("div",o3,[e.createVNode(xe,{onClick:h[4]||(h[4]=ke=>Z.value=!1),id:"themeBorderButton"},{default:e.withCtx(()=>h[24]||(h[24]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[24]}),e.createVNode(xe,{class:"ok-button",onClick:h[5]||(h[5]=ke=>$i(!0)),id:"themeButton"},{default:e.withCtx(()=>h[25]||(h[25]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[25]})])):e.createCommentVNode("",!0)]),_:1},8,["title","visible","width"]),e.createVNode(wr.ssDialog,{title:X.value,visible:Je.value,width:ra.value,onBeforeDestroy:h[7]||(h[7]=ke=>Je.value=!1)},{default:e.withCtx(()=>[e.createVNode(Nf)]),footer:e.withCtx(()=>[e.createElementVNode("div",t3,[e.createVNode(xe,{onClick:h[6]||(h[6]=ke=>Je.value=!1),class:"cancel-button",id:"themeBorderButton"},{default:e.withCtx(()=>h[26]||(h[26]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[26]}),e.createVNode(xe,{class:"ok-button",onClick:Yo,id:"themeButton"},{default:e.withCtx(()=>h[27]||(h[27]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[27]})])]),_:1},8,["title","visible","width"]),le.value?(e.openBlock(),e.createBlock(ll.ssFilePreview,{key:2,fileDataList:ta.value,onDestroy:oo},null,8,["fileDataList"])):e.createCommentVNode("",!0),Fe.value?(e.openBlock(),e.createBlock(wr.ssDialog,{key:3,visible:Fe.value,onBeforeDestroy:su,style:{height:"80vh",width:"80vw"},"body-class":"three-dialog-body","footer-class":"three-dialog-footer"},{default:e.withCtx(()=>[e.createVNode(So.ThreeViewerHost,{files:_a.value,threeData:T.value},null,8,["files","threeData"])]),_:1},8,["visible"])):e.createCommentVNode("",!0),e.createVNode(wr.ssDialog,{title:"OCR扫描录入",visible:sl.value,"close-on-click-modal":!1,onBeforeDestroy:yl,width:"1000px",dialogHeight:700,minWidth:900,minHeight:600,class:"ocr-upload-dialog",resizable:!0},{default:e.withCtx(()=>[h[38]||(h[38]=e.createElementVNode("div",{class:"ocr-header-bg"},null,-1)),e.createElementVNode("div",s3,[e.createElementVNode("div",c3,[e.createElementVNode("div",{class:e.normalizeClass(["ocr-step-item",{active:ia.value===1}])},h[28]||(h[28]=[e.createElementVNode("div",{class:"step-circle"},"1",-1),e.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件识别",-1)]),2),h[31]||(h[31]=e.createElementVNode("div",{class:"ocr-step-connector"},null,-1)),e.createElementVNode("div",{class:e.normalizeClass(["ocr-step-item",{active:ia.value===2}])},h[29]||(h[29]=[e.createElementVNode("div",{class:"step-circle"},"2",-1),e.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件确认",-1)]),2),h[32]||(h[32]=e.createElementVNode("div",{class:"ocr-step-connector"},null,-1)),e.createElementVNode("div",{class:e.normalizeClass(["ocr-step-item",{active:ia.value===3}])},h[30]||(h[30]=[e.createElementVNode("div",{class:"step-circle"},"3",-1),e.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件提交",-1)]),2)]),ia.value===1?(e.openBlock(),e.createElementBlock("div",u3,[e.createVNode(xe,{onClick:at,class:"ocr-action-btn",disabled:ma.value,size:"default"},{default:e.withCtx(()=>h[33]||(h[33]=[e.createTextVNode("扫描文件 ")])),_:1,__:[33]},8,["disabled"]),e.createVNode(xe,{onClick:Sr,class:"ocr-action-btn",disabled:ma.value,size:"default"},{default:e.withCtx(()=>h[34]||(h[34]=[e.createTextVNode("上传文件 ")])),_:1,__:[34]},8,["disabled"])])):e.createCommentVNode("",!0),ia.value===1?(e.openBlock(),e.createElementBlock("div",d3,[e.createElementVNode("div",p3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ka.value,(ke,Ra)=>{var fa;return e.openBlock(),e.createElementBlock("div",{key:Ra,class:"ocr-file-item"},[e.createElementVNode("div",f3,[ke.raw&&((fa=ke.raw.type)!=null&&fa.startsWith("image/"))?(e.openBlock(),e.createElementBlock("img",{key:0,src:Cl(ke),alt:"预览",class:"thumbnail-image"},null,8,h3)):(e.openBlock(),e.createElementBlock("div",v3,[e.createVNode(Ae,{size:40},{default:e.withCtx(()=>[e.createVNode(e.unref(qa.document_default))]),_:1})])),e.createElementVNode("div",{class:e.normalizeClass(["file-progress-ring",{uploading:wl(ke)==="uploading",processing:wl(ke)==="processing",completed:wl(ke)==="completed"||wl(ke)==="uploaded",failed:wl(ke)==="failed"}])},[(e.openBlock(),e.createElementBlock("svg",m3,[h[35]||(h[35]=e.createElementVNode("circle",{class:"progress-ring-bg",cx:"18",cy:"18",r:"16",fill:"none",stroke:"#e4e7ed","stroke-width":"2"},null,-1)),e.createElementVNode("circle",{class:e.normalizeClass(["progress-ring-fill",{completed:wl(ke)==="completed"||wl(ke)==="uploaded",uploading:wl(ke)==="uploading",processing:wl(ke)==="processing",failed:wl(ke)==="failed"}]),cx:"18",cy:"18",r:"16",fill:"none",stroke:wl(ke)==="failed"?"#f56c6c":wl(ke)==="completed"||wl(ke)==="uploaded"?"#67c23a":"#409eff","stroke-width":wl(ke)==="completed"||wl(ke)==="uploaded"||wl(ke)==="failed"?3:2,"stroke-dasharray":jl(ke),"stroke-dashoffset":"0","stroke-linecap":"round",transform:"rotate(-90 18 18)"},null,10,y3)])),wl(ke)==="completed"||wl(ke)==="uploaded"?(e.openBlock(),e.createElementBlock("div",g3,[e.createVNode(Ae,{class:"check-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(qa.check_default))]),_:1})])):e.createCommentVNode("",!0),wl(ke)==="failed"?(e.openBlock(),e.createElementBlock("div",b3,[e.createVNode(Ae,{class:"error-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(qa.close_default))]),_:1})])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:"file-delete-btn",onClick:Ea=>nu(Ra)},[e.createVNode(Ae,null,{default:e.withCtx(()=>[e.createVNode(e.unref(qa.close_default))]),_:1})],8,k3)]),e.createElementVNode("div",x3,e.toDisplayString(ke.name||"文件名123"),1)])}),128))]),ka.value.length>0?(e.openBlock(),e.createElementBlock("div",w3,[e.createVNode(xe,{onClick:De,class:"ocr-start-recognize-btn",disabled:ma.value||ka.value.length===0,size:"default"},{default:e.withCtx(()=>h[36]||(h[36]=[e.createTextVNode("开始识别 ")])),_:1,__:[36]},8,["disabled"])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),ia.value===1?(e.openBlock(),e.createElementBlock("div",_3,[e.createVNode(He,{percentage:ha.value,"stroke-width":8},null,8,["percentage"])])):e.createCommentVNode("",!0),ia.value===2?(e.openBlock(),e.createElementBlock("div",S3,[e.createElementVNode("div",E3,[e.createVNode(Re,{title:"请核对识别结果。",type:"info",closable:!1,"show-icon":""})]),e.createElementVNode("div",C3,[e.createVNode(xa,{data:Xe.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(Ge,{type:"index",label:"序号",width:"60",fixed:""}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ze.value,ke=>(e.openBlock(),e.createBlock(Ge,{key:ke.prop,prop:ke.prop,"min-width":ke.minWidth||230,"class-name":ke.isAccuracy?"accuracy-column":""},{header:e.withCtx(()=>[e.createElementVNode("div",D3,[e.createElementVNode("span",null,e.toDisplayString(ke.label),1)])]),default:e.withCtx(({row:Ra,$index:fa})=>{var Ea,wa,N;return[ke.isAccuracy?(e.openBlock(),e.createElementBlock("span",{key:0,class:"accuracy-value",style:e.normalizeStyle({color:al(Ra[ke.prop]),fontWeight:500})},e.toDisplayString(Ga(Ra[ke.prop])),5)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[il.value!==fa?(e.openBlock(),e.createElementBlock("span",B3,e.toDisplayString(Ra[ke.prop]),1)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(pl(ke.prop)),{key:1,modelValue:Ra[ke.prop],"onUpdate:modelValue":Y=>Ra[ke.prop]=Y,size:"small",placeholder:"请输入"+ke.label,content:((Ea=Ke(ke.prop))==null?void 0:Ea.contents)??((wa=Ke(ke.prop))==null?void 0:wa.options)??[],optionUrl:(N=Ke(ke.prop))==null?void 0:N.optionUrl,onChange:Y=>Xa(fa,ke.prop,Y),onFocus:Y=>Ia.value=ke.prop,onBlur:h[8]||(h[8]=Y=>Ia.value="")},null,40,["modelValue","onUpdate:modelValue","placeholder","content","optionUrl","onChange","onFocus"]))],64))]}),_:2},1032,["prop","min-width","class-name"]))),128)),e.createVNode(Ge,{label:"编辑",width:"80",fixed:"right"},{default:e.withCtx(({$index:ke})=>[il.value===ke?(e.openBlock(),e.createBlock(Ae,{key:0,class:"ocr-edit-icon editing",style:{"margin-left":"12px"},onClick:e.withModifiers(Ra=>bl(ke),["stop"])},{default:e.withCtx(()=>[e.createVNode(e.unref(qa.check_default))]),_:2},1032,["onClick"])):(e.openBlock(),e.createBlock(B,{key:1,name:"edit_101",class:"ocr-edit-icon",onClick:e.withModifiers(Ra=>bl(ke),["stop"])},null,8,["onClick"]))]),_:1})]),_:1},8,["data"])])])):e.createCommentVNode("",!0),ia.value===3?(e.openBlock(),e.createElementBlock("div",N3,[e.createVNode(Ae,{size:"32",class:"ocr-success-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(qa.check_default))]),_:1}),h[37]||(h[37]=e.createElementVNode("div",{class:"ocr-success-text"},"文件提交成功",-1))])):e.createCommentVNode("",!0)]),e.createVNode(Oa,{ref:"ocrUploadRef","file-list":ka.value,"onUpdate:fileList":h[9]||(h[9]=ke=>ka.value=ke),multiple:"",action:"","auto-upload":!1,limit:20,accept:"image/*,application/pdf","on-change":be,"show-file-list":!1,class:"ocr-upload-input",style:{display:"none"}},null,8,["file-list"])]),footer:e.withCtx(()=>[ia.value!==3?(e.openBlock(),e.createElementBlock("div",T3,[e.createVNode(xe,{onClick:Gr,class:"ocr-start-recognize-btn",disabled:ia.value===1||ma.value},{default:e.withCtx(()=>h[39]||(h[39]=[e.createTextVNode(" 上一步 ")])),_:1,__:[39]},8,["disabled"]),e.createVNode(xe,{onClick:on,class:"ocr-start-recognize-btn",disabled:ma.value},{default:e.withCtx(()=>h[40]||(h[40]=[e.createTextVNode(" 下一步 ")])),_:1,__:[40]},8,["disabled"])])):e.createCommentVNode("",!0)]),_:1},8,["visible"]),e.createVNode(Kf,{visible:pi.value,onConfirm:o,onCancel:h[10]||(h[10]=ke=>pi.value=!1)},null,8,["visible"]),e.createVNode(kd,{visible:$a.value,"onUpdate:visible":h[11]||(h[11]=ke=>$a.value=ke),versions:we.value},null,8,["visible","versions"]),e.createVNode(od,{visible:ze.value,"onUpdate:visible":h[12]||(h[12]=ke=>ze.value=ke),images:Sl.value,"default-image-name":Il.value,"field-meta":il.value!==null?((el=Xe.value[il.value])==null?void 0:el.__ocrFieldMeta)||{}:{},"focused-field-name":Ia.value,onClose:h[13]||(h[13]=ke=>ze.value=!1),class:"ocr-img-preview-dialog"},null,8,["visible","images","default-image-name","field-meta","focused-field-name"]),e.createVNode(Md,{visible:Ul.value,"onUpdate:visible":h[14]||(h[14]=ke=>Ul.value=ke),candidates:ql.value,"name-prop":Pl.value,"mfr-prop":ar.value,columns:V.value,onSubmit:Er,onPreviewFile:fi},null,8,["visible","candidates","name-prop","mfr-prop","columns"]),e.createVNode(Fd,{visible:va.value,"onUpdate:visible":h[15]||(h[15]=ke=>va.value=ke),ocrPreviewData:Xe.value,"onUpdate:ocrPreviewData":h[16]||(h[16]=ke=>Xe.value=ke),ocrSelectedFields:Sa.value,"onUpdate:ocrSelectedFields":h[17]||(h[17]=ke=>Sa.value=ke),ocrPreviewColumns:Ze.value,onConfirm:Na,onFieldChange:h[18]||(h[18]=({rowIndex:ke,prop:Ra,value:fa})=>Xa(ke,Ra,fa))},null,8,["visible","ocrPreviewData","ocrSelectedFields","ocrPreviewColumns"]),e.createVNode(wr.ssDialog,{title:i.title,visible:i.show,width:i.width,onBeforeDestroy:G},{default:e.withCtx(()=>[e.createElementVNode("div",A3,[e.createVNode(ll.ssForm,{rowContents:i==null?void 0:i.contents,formRules:i==null?void 0:i.formRules,showOperator:!1,buttonValue:i.buttonValue,isEdit:Qe.value,isStartJustify:!1,onOnButtonClick:ee},null,8,["rowContents","formRules","buttonValue","isEdit"])])]),_:1},8,["title","visible","width"]),e.createVNode(wr.ssDialog,{title:"",visible:u.show,width:u.width,alignCenter:!0,onBeforeDestroy:y},{header:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("div",z3,e.toDisplayString(u.title),1),e.createVNode(za,{size:"small",type:"danger",style:{width:"100%"}},{default:e.withCtx(()=>h[41]||(h[41]=[e.createTextVNode(" (选择【覆盖】,可能会影响到原数据的引用关系;选择【跳过】将会放弃重复数据的导入。请谨慎操作!) ")])),_:1,__:[41]})])]),footer:e.withCtx(()=>[e.createElementVNode("div",M3,[e.createVNode(za,{size:"small",style:{width:"100%","text-align":"left"},type:"info"},{default:e.withCtx(()=>[e.createTextVNode("引用模块:"+e.toDisplayString(Ln.value||"暂无"),1)]),_:1}),e.createElementVNode("div",I3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u==null?void 0:u.buttonValue,ke=>(e.openBlock(),e.createBlock(xe,{key:ke==null?void 0:ke.label,style:e.normalizeStyle({background:ke==null?void 0:ke.background,color:ke==null?void 0:ke.color}),onClick:Ra=>O(ke==null?void 0:ke.value)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(ke==null?void 0:ke.label),1)]),_:2},1032,["style","onClick"]))),128))])])]),default:e.withCtx(()=>[e.createVNode(gf,{columns:u==null?void 0:u.columns,tableData:u==null?void 0:u.tableData},{content:e.withCtx(({row:ke,item:Ra,slotData:fa,scope:Ea,column:wa,columnProp:N,$index:Y})=>[e.createTextVNode(e.toDisplayString((ke==null?void 0:ke[wa==null?void 0:wa.prop])||(ke==null?void 0:ke[wa==null?void 0:wa.label])||(ke==null?void 0:ke[wa==null?void 0:wa.property])||(fa==null?void 0:fa[wa==null?void 0:wa.property])),1)]),_:1},8,["columns","tableData"])]),_:1},8,["visible","width"])])}}},Dc=Xl._export_sfc(L3,[["__scopeId","data-v-bce07214"]]),R3={key:1,class:"static-form-body"},$3=["onClick"],V3={key:1},F3=e.defineComponent({__name:"index",props:{itemData:{default:()=>[]},fields:{default:()=>[]},compName:{default:""},title:{default:""},disabled:{type:Boolean,default:!1},textSize:{default:void 0},textColor:{default:void 0},backGround:{default:void 0},backGroundImage:{default:void 0}},emits:["update:backGroundImage"],setup(a,{emit:l}){const r=a,n=l,t=k=>{switch(k){case"占用":return"warning";case"注销":return"info";case"损坏":return"danger";case"可用":return"success";default:return""}},s=e.computed(()=>{var $;const k=($=r.itemData)==null?void 0:$.find(F=>(F==null?void 0:F.key)==="formContent"),b=(k==null?void 0:k.contents)||[];return(r.fields&&r.fields.length>0?r.fields:b).filter(F=>(F==null?void 0:F.label)||(F==null?void 0:F.isHideInForm)).map(F=>{let J=F==null?void 0:F.value;Array.isArray(J)&&(J=J.map(V=>V==null?"":typeof V=="object"?V.label??V.value??V.name??JSON.stringify(V):String(V)).filter(Boolean).join(",")),J!=null&&typeof J=="object"&&(J=J.label??J.value??J.name??JSON.stringify(J));const se=F.isHideInForm?"":F.label??"",ge=J==null||J===""?"-":String(J),Me=se==="使用状态";return{label:se,value:ge,isStatus:Me,tagType:Me?t(ge):"",width:F.width??1,field:F}})}),v=e.ref(null),p=e.ref(null),f=e.computed(()=>{const k=Number(r==null?void 0:r.textSize),b=he.rgbaToColor(r==null?void 0:r.textColor),w={},$={},F={},J={};return!Number.isNaN(k)&&k&&(w.fontSize=`${k}px`,$.fontSize=`${k+1}px`,F.fontSize=`${k}px`,J.fontSize=`${k}px`),b&&($.color=b,F.color=b,J.color=b),{item:w,label:$,value:F,empty:J}}),m=e.ref(""),g=e.ref(""),c=e.ref(!1),D=async k=>{if(k){g.value&&(URL.revokeObjectURL(g.value),g.value="");try{const b=await A.platformDownloadFile({url:k}),w=new Blob([b==null?void 0:b.data],{type:(b==null?void 0:b.headers["content-type"])||"image/*"});g.value=URL.createObjectURL(w)}catch{g.value=""}}};e.watch(()=>r==null?void 0:r.backGroundImage,k=>{k&&(m.value=k)},{immediate:!0}),e.watch(m,k=>{D(k)},{immediate:!0});const M=()=>{var k;(k=p.value)==null||k.click()},S=async k=>{var $,F,J;const b=k.target,w=($=b==null?void 0:b.files)==null?void 0:$[0];if(!w){b.value="";return}c.value=!0;try{const se=new FormData;se.append("file",w);const ge=await A.platformUploadFile(se),Me=(J=(F=ge==null?void 0:ge.data)==null?void 0:F.result)==null?void 0:J.url;Me?(m.value=Me,n("update:backGroundImage",Me),D(Me),qa.ElMessage.success("背景图片上传成功")):qa.ElMessage.error("背景图片上传失败")}catch{qa.ElMessage.error("背景图片上传失败")}finally{c.value=!1,b.value=""}},K=e.computed(()=>g.value?{backgroundImage:`url(${g.value})`,backgroundSize:"contain",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{}),I=k=>ll.getComponent(k),R=k=>{if(!k)return;const b=k.querySelector("input, textarea, .el-input__inner");b&&typeof b.focus=="function"&&b.focus()},j=(k,b,w)=>{r.disabled||(v.value=b,e.nextTick(()=>{R(w.currentTarget)}))},E=()=>{v.value=null},x=k=>{const b=k!=null&&k.width&&k.width>0?k.width:1,$=`calc((100% - ${(b-1)*48}px) / ${b})`;return{flex:`0 0 ${$}`,maxWidth:$,minWidth:"0",boxSizing:"border-box"}};return(k,b)=>{const w=e.resolveComponent("el-tag");return e.openBlock(),e.createElementBlock("div",{class:"static-form-card",style:e.normalizeStyle(K.value),onClick:b[2]||(b[2]=$=>(r==null?void 0:r.backGround)==="Yes"&&M())},[(r==null?void 0:r.backGround)==="Yes"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"form-backGround-upload",onClick:b[0]||(b[0]=e.withModifiers($=>M(),["stop"]))},[e.createElementVNode("input",{ref_key:"bgUploadRef",ref:p,type:"file",accept:"image/*",style:{display:"none"},onChange:S},null,544),b[3]||(b[3]=e.createElementVNode("img",{src:ll._imports_0,class:"bg-upload-icon",alt:"上传背景"},null,-1))])):e.createCommentVNode("",!0),s.value.length?(e.openBlock(),e.createElementBlock("div",R3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,($,F)=>{var J,se,ge,Me,V,fe,ae,de,Ce;return e.openBlock(),e.createElementBlock("div",{key:F,class:"static-form-item",style:e.normalizeStyle({...x($),...f.value.item}),onClick:b[1]||(b[1]=e.withModifiers(()=>{},["stop"]))},[$.label&&!((J=$==null?void 0:$.field)!=null&&J.isHideInForm)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"static-form-label",style:e.normalizeStyle(f.value.label)},e.toDisplayString($.label)+": ",5)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"static-form-value",style:e.normalizeStyle(f.value.value),onClick:Fe=>{var ye;return(ye=$.field)!=null&&ye.isNoClick?null:j($,F,Fe)}},[v.value===F&&$.field?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(I(((se=$.field)==null?void 0:se.type)??"Input")),{key:0,modelValue:$.field.value,"onUpdate:modelValue":Fe=>$.field.value=Fe,isEdit:!0,disabled:(ge=$.field)==null?void 0:ge.disabled,content:((Me=$.field)==null?void 0:Me.contents)??[],optionUrl:$.field,originalValue:(V=$.field)==null?void 0:V.value,config:(fe=$.field)==null?void 0:fe.config,configModel:((ae=$.field)==null?void 0:ae.prop)??((de=$.field)==null?void 0:de.name),selectedTagList:((Ce=$.field)==null?void 0:Ce.selectValue)??[],onBlur:E,onBlurChange:E},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[$.isStatus?(e.openBlock(),e.createBlock(w,{key:0,type:$.tagType,size:"Default",effect:"plain"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString($.value??"-"),1)]),_:2},1032,["type"])):(e.openBlock(),e.createElementBlock("span",V3,e.toDisplayString($.value??"-"),1))],64))],12,$3)],4)}),128))])):(e.openBlock(),e.createElementBlock("div",{key:2,class:"static-form-empty",style:e.normalizeStyle(f.value.empty)}," 暂无数据 ",4))],4)}}}),Bc=Xl._export_sfc(F3,[["__scopeId","data-v-74b02d73"]]),P3={class:"form-content"},j3={title:"选择标签"},H3={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},U3={class:"col-operate-wrap"},q3={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},W3={__name:"index",props:{formRules:Object,itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,compName:{type:String,default:""},allMapContents:{type:Object},config:{type:Object,default:()=>{}}},emits:["change","contentChange","routeUrl","clickTrigger"],setup(a,{emit:l}){const r=()=>{v.value=!1,p.value=!1,f.value=[]},n=a;e.computed(()=>{var Z;const re=(Z=Pe.value)==null?void 0:Z.split("/");return(re==null?void 0:re.some(q=>(q==null?void 0:q.includes("updateLoading"))||(q==null?void 0:q.includes("loading"))))?!1:Ce.value==="view"});const t=l,s=e.ref([]),v=e.ref(!1),p=e.ref(!1),f=e.ref([]),{getFileExtension:m}=So.useThreeSystem(),g=e.ref(),c=e.ref(!1),D=e.ref(!1),M=A.useUnit(A.pinia),{chooseTitle:S}=A.storeToRefs(M),K=e.ref([]),I=e.ref(),R=e.ref(!1),j=e.ref([]),E=sc(A.pinia),x=Ct(A.pinia),k=e.ref(!1),b=e.ref(),w=e.ref(),$=e.ref(),F=e.ref(),J=e.ref(),se=A.useLoginState(A.pinia),{loginUserInfo:ge}=A.storeToRefs(se),Me=e.ref(),V=e.ref(!0),fe=A.useModelComp(A.pinia),{tableViewContents:ae,itemData:de,isEdit:Ce,routeToChildPath:Fe,lockingPage:ye,homepageBackgroundTableId:T}=A.storeToRefs(fe),ue=e.ref(null),U=e.ref(!1),Se=e.ref(!1),Le=A.useMenuState(),{activeMenuPath:Pe}=A.storeToRefs(Le),la=he.useOriginalState(A.pinia),{originalPath:Da}=A.storeToRefs(la),{compType:le,hasEditable:ta}=Gs.useRole(),te=()=>!ta(n.config,{type:le.FORM});e.computed(()=>Pe.value==="设备管理/试验设备"&&n.compName==="设备概要");const ca=async()=>{var Z,q,Be;const re=T==null?void 0:T.value,X=(Z=ge==null?void 0:ge.value)==null?void 0:Z.plat_id;if(!(!re||!X))try{const Je=await A.getAllTables({platId:parseInt(X),tableNames:[`content_${re}`,`struct_${re}`],user_unique_id:"0"}),ra=((Be=(q=Je==null?void 0:Je.data)==null?void 0:q.result)==null?void 0:Be[0])??[],ba=String((n==null?void 0:n.index)??""),ga=ra==null?void 0:ra.find(Aa=>String(Aa==null?void 0:Aa.relatedForm_id)===ba);ga!=null&&ga.backgroundImg_url&&(F.value=ga.backgroundImg_url)}catch(Je){console.error("获取首页背景图片表数据失败:",Je)}},Ee=e.ref([]),oe=e.ref([{label:"编辑",value:"operable",checked:!1},{label:"禁用",value:"disabled",checked:!1}]),Te=async re=>{Se.value=re,await me("disabled",null,re,!0)},Ue=async re=>{await me("operable",null,re,!0)};e.watch(()=>Pe.value,async()=>{s.value=[],f.value=[]},{deep:!0,immediate:!0});const oa=()=>{e.nextTick(()=>{Q()})},Ja=re=>{var X;s.value=(X=s.value)==null?void 0:X.map(Z=>({...Z,isFormColHidden:!(re!=null&&re.includes(Z.label))}))};e.onUnmounted(()=>{ue.value=null});const L=re=>{t("clickTrigger",re)},H=async re=>{var X,Z,q,Be,Je,ra;if(re===""){let ba="";(X=s.value)==null||X.forEach(Oe=>{Oe!=null&&Oe.isMain&&(ba=Oe==null?void 0:Oe.value)});let ga=await he.getItemData(Fe.value,sessionStorage.getItem("systemKey"),"");ba=((ra=(Je=(Be=(q=(Z=ga==null?void 0:ga[0])==null?void 0:Z.compData)==null?void 0:q.find(Oe=>(Oe==null?void 0:Oe.key)==="mainRouters"))==null?void 0:Be.contents)==null?void 0:Je[0])==null?void 0:ra.routerContent)+Da.value+ba;let _a=await he.getItemData(ba,sessionStorage.getItem("systemKey"),"");R.value=!0,j.value=_a==null?void 0:_a.filter(Oe=>(Oe==null?void 0:Oe.comp)!=="methodButton"),t("routeUrl",j.value)}},Q=()=>{var X;const re=(X=ue.value)==null?void 0:X.$el;re&&Nl.Sortable.create(re,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:Z=>{const{oldIndex:q,newIndex:Be}=Z;if(q===Be)return;const Je=s.value.splice(q,1)[0];s.value.splice(Be,0,Je)}})},me=async(re,X,Z,q=!1)=>{try{fe.setRefreshCurStructure(!1)}catch{qa.ElMessage.error("编辑处理失败")}},ve=async(re,X)=>{await me()},da=async(re,X)=>{re&&await me()},ea=async(re,X,Z)=>{await me(X,Z,re,!1)},ce=(re,X)=>{Me.value===X?V.value=!1:V.value=!0,Me.value=X==null?void 0:X.changeProp},pa=async re=>{var ra;F.value=re;const X=n.itemData,Z=X==null?void 0:X.find(ba=>(ba==null?void 0:ba.key)==="backGroundImage");Z?Z.contents=re:X==null||X.push({key:"backGroundImage",contents:re}),t("change",{key:"backGroundImage",contents:re});const q=T==null?void 0:T.value,Be=n==null?void 0:n.index,Je=(ra=ge==null?void 0:ge.value)==null?void 0:ra.plat_id;if(!(!q||!Je||!Be||!re))try{await A.pageBatchAddApi({platId:parseInt(Je),changeContents:[{tableName:`content_${q}`,tableContents:[{backgroundImg_url:re,relatedForm_id:String(Be)}]}],user_unique_id:"0"})}catch(ba){console.error("保存背景图片记录失败:",ba),qa.ElMessage.error("背景图片记录保存失败")}},Ne=async re=>{var Z,q,Be,Je,ra,ba,ga,Aa,_a,Oe,Za,Ha,xl,Yl,kl;let X=[];if((Z=re==null?void 0:re.toString())!=null&&Z.includes(".urdf")){if(re.includes(",")){qa.ElMessage.error("当前版本仅允许单个urdf预览!");return}f.value=[{url:re,extension:m(re)}],p.value=!0,v.value=!0;return}if((q=re==null?void 0:re.toString())!=null&&q.includes(".stl")||(Be=re==null?void 0:re.toString())!=null&&Be.includes(".STL")||(Je=re==null?void 0:re.toString())!=null&&Je.includes(".obj")||(ra=re==null?void 0:re.toString())!=null&&ra.includes(".mtl")){const ja=((ba=re==null?void 0:re.toString())==null?void 0:ba.split(",")).map(zl=>({url:zl,extension:m(zl)}));f.value=ja,p.value=!1,v.value=!0;return}if((ga=re==null?void 0:re.toString())!=null&&ga.includes(".stl")||(Aa=re==null?void 0:re.toString())!=null&&Aa.includes(".STL")||(_a=re==null?void 0:re.toString())!=null&&_a.includes(".obj")||(Oe=re==null?void 0:re.toString())!=null&&Oe.includes(".mtl")){let Fl,ja=[],zl={};if(Array.isArray(re)?Fl=re:Fl=re==null?void 0:re.split(","),Fl==null||Fl.forEach(Rl=>{Rl.includes(".mtl")?ja.push(Rl):zl.blob=zl.blob?zl.blob+","+Rl:Rl}),(ja==null?void 0:ja.length)>0&&(zl.mtlBlobs=ja),(Ha=(Za=Object.values(zl))==null?void 0:Za[0])!=null&&Ha.includes("http:"))X.push(zl);else{const Rl=new Blob([zl.blob],{type:"application/octet-stream;charset=UTF-8"});let Ma=URL.createObjectURL(Rl),rl="";(xl=re==null?void 0:re.split("/"))==null||xl.forEach((sl,ma)=>{var ka;ma===((ka=re==null?void 0:re.split("/"))==null?void 0:ka.length)-1&&(rl=sl)}),(Yl=zl.blob)!=null&&Yl.includes(".stl")&&(rl=(rl==null?void 0:rl.replaceAll(">",""))+".urdf"),I.value=[{name:rl,blobUrl:Ma}],D.value=!0}}else{const Fl=A.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),ja=await qa.axios.get(re,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{Fl.close()}),zl=new Blob([ja.data],{type:"application/octet-stream;charset=UTF-8"});let Rl=URL.createObjectURL(zl),Ma="";(kl=re==null?void 0:re.split("/"))==null||kl.forEach((rl,sl)=>{var ma;sl===((ma=re==null?void 0:re.split("/"))==null?void 0:ma.length)-1&&(Ma=rl)}),I.value=[{name:Ma,blobUrl:Rl}],D.value=!0}(X==null?void 0:X.length)>0&&x.setBlobUrls(X)},We=()=>{D.value=!1},Ta=re=>{var Je,ra,ba,ga;const X=(ra=(Je=ll.safeClone(n.itemData))==null?void 0:Je.find(Aa=>(Aa==null?void 0:Aa.key)==="formContent"))==null?void 0:ra.contents,Z=ll.safeClone(re.content);let q={};Z&&((ba=Object.values(Z))==null?void 0:ba.length)>0&&((ga=Object.values(Z))==null||ga.forEach((Aa,_a)=>{q[X[_a].key]=Aa}));const Be={content:q,index:n==null?void 0:n.index,buttonName:re==null?void 0:re.buttonName};t("change",Be)};e.computed(()=>"http://222.92.178.198:62001");const Ca=async re=>{var Za,Ha,xl,Yl,kl,Fl,ja,zl,Rl,Ma,rl,sl,ma,ka,La,$a;if(!re)return;(Ha=(Za=n==null?void 0:n.itemData)==null?void 0:Za.find(we=>(we==null?void 0:we.key)==="parentFormPath"))==null||Ha.contents;let X=ae.value;(X==null?void 0:X.length)>0&&(X=X==null?void 0:X.map(we=>{var Ie,pe,ha,va;let ia=(Ie=we==null?void 0:we.key)==null?void 0:Ie.split("/");return(n==null?void 0:n.compName)===(ia==null?void 0:ia[0])&&(pe=s.value)!=null&&pe.find(Xe=>(Xe==null?void 0:Xe.prop)===(ia==null?void 0:ia[1]))&&(we.value=(va=(ha=s.value)==null?void 0:ha.find(Xe=>(Xe==null?void 0:Xe.prop)===(ia==null?void 0:ia[1])))==null?void 0:va.value),we}),fe.setTableViewContents(X));const Z=ll.safeClone(n.itemData);let q=Z==null?void 0:Z.map(we=>{var ia;return(we==null?void 0:we.key)==="formContent"&&((ia=we.contents)==null||ia.map((Ie,pe)=>{var ha,va,Xe,Ze,Ke,pl,Ve,Fa,Sa,il,Ia,ze,Sl,Il,Ul,ql,Ql,dr,Ol,pr,Fr;return Ie.type=(va=(ha=s.value)==null?void 0:ha.find(Pl=>(Pl==null?void 0:Pl.prop)===(Ie==null?void 0:Ie.prop)))==null?void 0:va.type,Ie.options=Ie!=null&&Ie.options?Ie.options:((Ke=(Ze=(Xe=Ie==null?void 0:Ie.key)==null?void 0:Xe.split("$"))==null?void 0:Ze[1])==null?void 0:Ke.length)>0?(Sa=(Fa=Lu((Ve=(pl=Ie==null?void 0:Ie.key)==null?void 0:pl.split("$"))==null?void 0:Ve[1]))==null?void 0:Fa.split(","))==null?void 0:Sa.map(Pl=>({label:Pl,value:Pl})):[],(il=Ie==null?void 0:Ie.key)!=null&&il.includes("$")&&(Ie.key=(ze=(Ia=Ie==null?void 0:Ie.key)==null?void 0:Ia.split("$"))==null?void 0:ze[0]),Ie.signature=(Il=(Sl=s.value)==null?void 0:Sl.find(Pl=>(Pl==null?void 0:Pl.prop)===(Ie==null?void 0:Ie.prop)))==null?void 0:Il.signature,Ie.isLoginUser=(ql=(Ul=s.value)==null?void 0:Ul.find(Pl=>(Pl==null?void 0:Pl.prop)===(Ie==null?void 0:Ie.prop)))==null?void 0:ql.isLoginUser,Ie.value=(Ql=Object.values(re))==null?void 0:Ql[pe],Ie.isFormColHidden=(Ol=(dr=s.value)==null?void 0:dr.find(Pl=>(Pl==null?void 0:Pl.prop)===(Ie==null?void 0:Ie.prop)))==null?void 0:Ol.isFormColHidden,Ie.isHideInForm=(Fr=(pr=s.value)==null?void 0:pr.find(Pl=>(Pl==null?void 0:Pl.prop)===(Ie==null?void 0:Ie.prop)))==null?void 0:Fr.isHideInForm,Ie})),we}),Be=s.value,Je=(Yl=(xl=ll.safeClone(q))==null?void 0:xl.find(we=>(we==null?void 0:we.key)==="formContent"))==null?void 0:Yl.contents;if(Be=Be==null?void 0:Be.map(we=>{var ia,Ie;return(we==null?void 0:we.type)==="Select"&&((ia=we==null?void 0:we.allSelectionContents)==null?void 0:ia.length)>0&&(we.contactValue=re),we.value=(Ie=Je==null?void 0:Je.find((pe,ha)=>((pe==null?void 0:pe.id)??ha)===(we==null?void 0:we.id)))==null?void 0:Ie.value,we}),!V.value){t("contentChange",{contents:q,index:n.index});return}let ra="",ba=(ja=(Fl=(kl=ll.safeClone(q))==null?void 0:kl.find(we=>(we==null?void 0:we.key)==="formContent"))==null?void 0:Fl.contents)==null?void 0:ja.find((we,ia)=>{var Ie,pe,ha;return(we==null?void 0:we.label)===Me.value||ia.toString()===((ha=(pe=(Ie=Me.value)==null?void 0:Ie.split("t"))==null?void 0:pe[1])==null?void 0:ha.toString())}),ga=(zl=ba==null?void 0:ba.optionUrl)==null?void 0:zl.menuSelect,Aa=!0;if((rl=(Ma=(Rl=ll.safeClone(q))==null?void 0:Rl.find(we=>(we==null?void 0:we.key)==="formContent"))==null?void 0:Ma.contents)==null||rl.forEach(we=>{var ia,Ie,pe,ha,va,Xe;Aa&&((pe=(Ie=(ia=we==null?void 0:we.optionUrl)==null?void 0:ia.groupSelect)==null?void 0:Ie[1])!=null&&pe.includes("["))&&(ra=(va=(ha=we==null?void 0:we.optionUrl)==null?void 0:ha.groupSelect)==null?void 0:va[1],JSON.stringify(ga)===JSON.stringify((Xe=we==null?void 0:we.optionUrl)==null?void 0:Xe.menuSelect)&&(Aa=!1))}),(sl=ba==null?void 0:ba.optionUrl)!=null&&sl.menuSelect&&V.value){let we=await yt(ba),ia,Ie=(ma=ba==null?void 0:ba.optionUrl)==null?void 0:ma.menuSelect;if(we==null||we.forEach(pe=>{var ha,va,Xe,Ze,Ke,pl,Ve,Fa,Sa,il;ra===((va=(ha=ba==null?void 0:ba.optionUrl)==null?void 0:ha.groupSelect)==null?void 0:va[1])&&((Ke=(Ze=(Xe=ba==null?void 0:ba.optionUrl)==null?void 0:Xe.groupSelect)==null?void 0:Ze[1])!=null&&Ke.includes("["))&&((il=ll.safeClone(pe))==null?void 0:il[(Sa=(Fa=(Ve=(pl=ba==null?void 0:ba.optionUrl)==null?void 0:pl.groupSelect)==null?void 0:Ve[1])==null?void 0:Fa.replaceAll("[",""))==null?void 0:Sa.replaceAll("]","")])===(ba==null?void 0:ba.value)&&(ia=pe)}),ia){let pe=ll.safeClone(Be);pe=pe==null?void 0:pe.map(va=>{var Xe,Ze,Ke,pl,Ve,Fa,Sa,il,Ia,ze,Sl;return(ia!=null&&ia[va==null?void 0:va.label]||ia!=null&&ia[(pl=(Ke=(Ze=(Xe=va==null?void 0:va.optionUrl)==null?void 0:Xe.groupSelect)==null?void 0:Ze[1])==null?void 0:Ke.replaceAll("[",""))==null?void 0:pl.replaceAll("]","")])&&((Sa=(Fa=(Ve=va==null?void 0:va.optionUrl)==null?void 0:Ve.groupSelect)==null?void 0:Fa[1])!=null&&Sa.includes("["))&&Ie!=null&&Ie.every(Il=>{var Ul,ql;return(ql=(Ul=va==null?void 0:va.optionUrl)==null?void 0:Ul.menuSelect)==null?void 0:ql.includes(Il)})&&(va.value=(ia==null?void 0:ia[va==null?void 0:va.label])||(ia==null?void 0:ia[(Sl=(ze=(Ia=(il=va==null?void 0:va.optionUrl)==null?void 0:il.groupSelect)==null?void 0:Ia[1])==null?void 0:ze.replaceAll("[",""))==null?void 0:Sl.replaceAll("]","")]),Array.isArray(va.value)&&va.value.every(Il=>(Il==null?void 0:Il.url)&&(Il==null?void 0:Il.name))&&(va.type="Upload")),va}),pe=pe==null?void 0:pe.map(va=>{var Xe,Ze,Ke;return(Xe=va==null?void 0:va.optionUrl)!=null&&Xe.oldMenuSelect&&(va.optionUrl.menuSelect=(Ke=(Ze=ll.safeClone(va))==null?void 0:Ze.optionUrl)==null?void 0:Ke.oldMenuSelect),va}),s.value=ll.safeClone(pe);let ha=ll.safeClone(pe);ha=ha==null?void 0:ha.map(va=>{var Xe,Ze,Ke,pl,Ve,Fa;return(Ze=(Xe=va==null?void 0:va.optionUrl)==null?void 0:Xe.menuSelect)!=null&&Ze.some(Sa=>Sa==null?void 0:Sa.includes("["))&&(va.optionUrl.oldMenuSelect=(pl=(Ke=ll.safeClone(va))==null?void 0:Ke.optionUrl)==null?void 0:pl.menuSelect,va.optionUrl.menuSelect=(Fa=(Ve=va==null?void 0:va.optionUrl)==null?void 0:Ve.menuSelect)==null?void 0:Fa.map(Sa=>{var il,Ia,ze,Sl;if(Sa!=null&&Sa.includes("[")){let Il=(Ia=(il=Sa==null?void 0:Sa.replaceAll("[","").replaceAll("]",""))==null?void 0:il.split(":"))==null?void 0:Ia[1];Sa=(Sl=(ze=ll.safeClone(pe))==null?void 0:ze.find(Ul=>(Ul==null?void 0:Ul.label)===Il))==null?void 0:Sl.value}return Sa})),va}),s.value=ha}else s.value=Be;q=q==null?void 0:q.map(pe=>{var ha;return(pe==null?void 0:pe.key)==="formContent"&&(pe.contents=(ha=pe.contents)==null?void 0:ha.map(va=>{var Xe,Ze,Ke,pl;return va.value=((Ze=(Xe=s.value)==null?void 0:Xe.find(Ve=>(Ve==null?void 0:Ve.label)===(va==null?void 0:va.key)))==null?void 0:Ze.value)??(va==null?void 0:va.value),va.type=((pl=(Ke=s.value)==null?void 0:Ke.find(Ve=>(Ve==null?void 0:Ve.prop)===(va==null?void 0:va.key)))==null?void 0:pl.type)??(va==null?void 0:va.type),va})),pe})}V.value=!1,t("contentChange",{contents:q,index:n.index});let _a=[],Oe=[];if((La=ll.safeClone((ka=q==null?void 0:q.find(we=>(we==null?void 0:we.key)==="formContent"))==null?void 0:ka.contents))==null||La.forEach(we=>{var ia;Array.isArray(we==null?void 0:we.value)&&((ia=we==null?void 0:we.value)!=null&&ia.find(Ie=>{var pe;return(pe=Ie==null?void 0:Ie.url)==null?void 0:pe.includes(".obj")}))&&(Oe=we==null?void 0:we.value)}),(Oe==null?void 0:Oe.length)>0){const we=($a=ll.safeClone(Oe))==null?void 0:$a.filter(ia=>{var Ie;return(Ie=ia==null?void 0:ia.url)==null?void 0:Ie.includes(".obj")});we==null||we.forEach(ia=>{var pe,ha,va,Xe;const Ie=(pe=Oe==null?void 0:Oe.filter(Ze=>{var Ke;return(Ze==null?void 0:Ze.name)===(ia==null?void 0:ia.name)&&((Ke=Ze==null?void 0:Ze.url)==null?void 0:Ke.includes(".mtl"))}))==null?void 0:pe.map(Ze=>Ze==null?void 0:Ze.url);_a.push({objUrl:ia==null?void 0:ia.url,mtlUrls:((ha=Oe==null?void 0:Oe.filter(Ze=>{var Ke;return(Ze==null?void 0:Ze.name)===(ia==null?void 0:ia.name)&&((Ke=Ze==null?void 0:Ze.url)==null?void 0:Ke.includes(".mtl"))}))==null?void 0:ha.length)===1?(Xe=(va=Oe==null?void 0:Oe.filter(Ze=>{var Ke;return(Ze==null?void 0:Ze.name)===(ia==null?void 0:ia.name)&&((Ke=Ze==null?void 0:Ze.url)==null?void 0:Ke.includes(".mtl"))}))==null?void 0:va[0])==null?void 0:Xe.url:Ie})}),x.setObjUrl(_a)}},Qe=(re,X,Z)=>{let q="";const Be=X==null?void 0:X.map(Je=>{var ra;return(ra=Je==null?void 0:Je.value)==null?void 0:ra.pageData});return Be==null||Be.forEach(Je=>{var ra;(Je==null?void 0:Je.name)===(re==null?void 0:re[0])&&((ra=Je==null?void 0:Je.compData)==null||ra.forEach(ba=>{var ga;(ba==null?void 0:ba.key)==="formContent"&&((ga=ba==null?void 0:ba.contents)==null||ga.forEach(Aa=>{var _a;(Aa==null?void 0:Aa.prop)===(re==null?void 0:re[1])&&(q=(Aa==null?void 0:Aa.value)===""?he.judgeContents((_a=ll.safeClone(Aa))==null?void 0:_a.optionUrl,Z):Aa==null?void 0:Aa.value)}))}))}),q},Va=(re,X,Z,q)=>{var ba,ga;let Be="",Je="";(ba=ll.safeClone(X))==null||ba.forEach((Aa,_a)=>{Aa!=null&&Aa.includes("[")?Je=Je+Da.value+re[_a]:Je=Je===""?Je+Aa:Je+"/"+Aa});let ra=(ga=q[Je])==null?void 0:ga.map(Aa=>{var _a;return(_a=Aa==null?void 0:Aa.value)==null?void 0:_a.pageData});return ra==null||ra.forEach(Aa=>{var _a;(Aa==null?void 0:Aa.name)===(Z==null?void 0:Z[0])&&((_a=Aa==null?void 0:Aa.compData)==null||_a.forEach(Oe=>{var Za;(Oe==null?void 0:Oe.key)==="formContent"&&((Za=Oe==null?void 0:Oe.contents)==null||Za.forEach(Ha=>{(Ha==null?void 0:Ha.prop)===(Z==null?void 0:Z[1])&&(Be=Ha==null?void 0:Ha.value)}))}))}),Be};return e.watch(()=>T==null?void 0:T.value,async()=>{await ca()},{immediate:!0}),e.watch(()=>n.itemData,async()=>{var Za,Ha,xl,Yl,kl,Fl,ja,zl,Rl,Ma,rl,sl,ma,ka,La,$a,we,ia,Ie,pe,ha,va,Xe;const re=(Za=n.itemData)==null?void 0:Za.find(Ze=>(Ze==null?void 0:Ze.key)==="formContent"),X=(Ha=ll.safeClone(n.itemData))==null?void 0:Ha.find(Ze=>(Ze==null?void 0:Ze.key)==="formButton"),Z=(xl=ll.safeClone(n.itemData))==null?void 0:xl.find(Ze=>(Ze==null?void 0:Ze.key)==="formFlex"),q=(Yl=ll.safeClone(n.itemData))==null?void 0:Yl.find(Ze=>(Ze==null?void 0:Ze.key)==="formWrap"),Be=(kl=ll.safeClone(n.itemData))==null?void 0:kl.find(Ze=>(Ze==null?void 0:Ze.key)==="enableWrap"),Je=(Fl=ll.safeClone(n.itemData))==null?void 0:Fl.find(Ze=>(Ze==null?void 0:Ze.key)==="textSize"),ra=(ja=ll.safeClone(n.itemData))==null?void 0:ja.find(Ze=>(Ze==null?void 0:Ze.key)==="textRGBA"),ba=(zl=ll.safeClone(n.itemData))==null?void 0:zl.find(Ze=>(Ze==null?void 0:Ze.key)==="backGround"),ga=(Rl=ll.safeClone(n.itemData))==null?void 0:Rl.find(Ze=>(Ze==null?void 0:Ze.key)==="backGroundImage");(q==null?void 0:q.contents)==="纵向"?c.value=!1:c.value=!0;const Aa=Number(Je==null?void 0:Je.contents);b.value=Number.isNaN(Aa)?void 0:Aa,w.value=ra==null?void 0:ra.contents,$.value=ba==null?void 0:ba.contents,F.value=ga==null?void 0:ga.contents;const _a=Be==null?void 0:Be.contents;if(_a===void 0?k.value=ri.BLOCK:typeof _a=="boolean"?k.value=_a?ri.ORDINARY:ri.BLOCK:k.value=_a,J.value=typeof(Z==null?void 0:Z.contents)!="boolean"?!(!(Z!=null&&Z.contents)===""||((Ma=Z==null?void 0:Z.contents)==null?void 0:Ma.toUpperCase())==="VERTICAL"):Z==null?void 0:Z.contents,((rl=re==null?void 0:re.contents)==null?void 0:rl.length)>0&&Array.isArray(re==null?void 0:re.contents)){let Ze=n.allMapContents;const Ke=(ma=(sl=ll.safeClone(re))==null?void 0:sl.contents)==null?void 0:ma.map((ze,Sl)=>{var Ir,Er,Cr,mn,Br,cr,yn,ln,rn,Sn,Bn,pn,lr;let Il=(ze==null?void 0:ze.label)??(ze==null?void 0:ze.key)??"";ze==null||ze.type;let Ul=(ze==null?void 0:ze.options)??[];if((Ir=ze==null?void 0:ze.key)!=null&&Ir.includes("$")&&(Il=(Er=ll.safeClone(ze==null?void 0:ze.key).split("$"))==null?void 0:Er[0],((mn=(Cr=ll.safeClone(ze==null?void 0:ze.key).split("$"))==null?void 0:Cr[1])==null?void 0:mn.length)>0)){const[Ml,zr]=(cr=(Br=ll.safeClone(ze==null?void 0:ze.key).split("$"))==null?void 0:Br[1])==null?void 0:cr.split(/[()]/);(yn=he.FormType.find(cl=>(cl==null?void 0:cl.key)===Ml))==null||yn.value,((ln=zr==null?void 0:zr.split(","))==null?void 0:ln.length)>0&&(Ul=(rn=zr==null?void 0:zr.split(","))==null?void 0:rn.map(cl=>({label:cl,value:cl})))}let ql=ze==null?void 0:ze.options;((Sn=ze==null?void 0:ze.optionUrl)==null?void 0:Sn.selectRelateType)==="自定义绑定"&&(ql=(pn=(Bn=ze==null?void 0:ze.optionUrl)==null?void 0:Bn.defaultSelect)==null?void 0:pn.map(Ml=>({label:Ml,value:Ml})));let Ql=(ze==null?void 0:ze.menuPath)??[],dr=(ze==null?void 0:ze.groups)??[],Ol=(ze==null?void 0:ze.columns)??[],pr=!1,Fr=(ze==null?void 0:ze.isFormColHidden)??!1,Pl="",ar=ze!=null&&ze.value?ze.value:(ql==null?void 0:ql.length)>0?(lr=ql==null?void 0:ql[0])==null?void 0:lr.value:(ze==null?void 0:ze.value)??"",Pr=!1,Tr="Input";return((ql==null?void 0:ql.length)>0||(Ql==null?void 0:Ql.length)>0)&&(Tr="Select"),(Array.isArray(Pl)&&(Pl!=null&&Pl.every(Ml=>(Ml==null?void 0:Ml.name)&&(Ml==null?void 0:Ml.url)))||Array.isArray(ar)&&(ar!=null&&ar.every(Ml=>(Ml==null?void 0:Ml.name)&&(Ml==null?void 0:Ml.url))))&&(Tr="upload"),ze!=null&&ze.isMainUrl&&(Tr="Url"),{label:Il??"",name:Il??"t"+Sl,prop:Il??ll.safeClone(ze==null?void 0:ze.key),type:(ze==null?void 0:ze.type)??Tr,value:(ze==null?void 0:ze.type)==="Date"&&ar===""?new Date:ar,id:(ze==null?void 0:ze.id)??Sl,contents:(ql==null?void 0:ql.length)>0?ql:Ul??[],width:(ze==null?void 0:ze.width)??1,isLoginUser:pr,config:ze==null?void 0:ze.config,optionUrl:(ze==null?void 0:ze.optionUrl)??ze,isFormColHidden:Fr,isHideInForm:(ze==null?void 0:ze.isHideInForm)??!1,signature:Pr,isMain:ze==null?void 0:ze.isMain,required:(ze==null?void 0:ze.required)??!1,isMainUrl:ze==null?void 0:ze.isMainUrl,operable:(ze==null?void 0:ze.operable)??!1,disabled:(ze==null?void 0:ze.disabled)??!1,isSync:ze==null?void 0:ze.isSync,menus:Ql,groups:dr,words:Ol,allSelectionContents:ze==null?void 0:ze.allContents,filterContent:ze==null?void 0:ze.filterContents,isNoClick:(ze==null?void 0:ze.isNoClick)??!1}}),pl=Ke==null?void 0:Ke.map(ze=>ze==null?void 0:ze.value);let Ve="";pl==null||pl.forEach(ze=>{ze!==""&&ze!==void 0&&(Ve=Ve===""?ze:Ve+"/"+ze)}),E.setSelectArray(pl),E.setSelectString(Ve);let Fa=(ka=ll.safeClone(Ke))==null?void 0:ka.map(ze=>(ze!=null&&ze.value&&he.IsJson(ze==null?void 0:ze.value)&&Array.isArray(JSON.parse(ze==null?void 0:ze.value))&&(ze.value=JSON.parse(ze.value)),ze)),Sa={};Fa==null||Fa.forEach(ze=>{Sa[ze.label]=ze==null?void 0:ze.value}),Fa=Fa==null?void 0:Fa.map(ze=>{var Sl,Il,Ul,ql,Ql,dr,Ol,pr,Fr;if((ze==null?void 0:ze.type)==="Select"&&((Sl=ze==null?void 0:ze.allSelectionContents)==null?void 0:Sl.length)>0&&(ze.contactValue=Sa),(Ul=(Il=ze==null?void 0:ze.optionUrl)==null?void 0:Il.menuSelect)!=null&&Ul.some(Pl=>Pl==null?void 0:Pl.includes("["))){let Pl="";ze.optionUrl.oldMenuSelect=(Ql=(ql=ll.safeClone(ze))==null?void 0:ql.optionUrl)==null?void 0:Ql.menuSelect,ze.optionUrl.menuSelect=(Ol=(dr=ze==null?void 0:ze.optionUrl)==null?void 0:dr.menuSelect)==null?void 0:Ol.map(ar=>{var Pr,Tr,jr,Ir,Er,Cr;if(ar!=null&&ar.includes("[")){let mn=(Tr=(Pr=ar==null?void 0:ar.replaceAll("[","").replaceAll("]",""))==null?void 0:Pr.split(":"))==null?void 0:Tr[1];Pl=Qe((jr=ar==null?void 0:ar.replaceAll("[","").replaceAll("]",""))==null?void 0:jr.split(":"),Ze==null?void 0:Ze[Pe.value],Ze),ar=((Er=(Ir=ll.safeClone(Fa))==null?void 0:Ir.find(Br=>(Br==null?void 0:Br.label)===mn))==null?void 0:Er.value)||Qe((Cr=ar==null?void 0:ar.replaceAll("[","").replaceAll("]",""))==null?void 0:Cr.split(":"),Ze==null?void 0:Ze[Pe.value],Ze)}return ar}),Pl!==""&&ze.value===""&&(ze.value=Va(ze.optionUrl.menuSelect,ze.optionUrl.oldMenuSelect,(pr=ze==null?void 0:ze.optionUrl)==null?void 0:pr.groupSelect,Ze),Array.isArray(ze.value)&&((Fr=ze.value)!=null&&Fr.every(ar=>ar==null?void 0:ar.url))&&(ze.type="UPLOAD"))}return ze}),s.value=Fa,Se.value=((La=s.value)==null?void 0:La.every(ze=>ze==null?void 0:ze.disabled))||ye.value===Pe.value,U.value=($a=s.value)==null?void 0:$a.every(ze=>ze==null?void 0:ze.operable),Ee.value=(we=s.value)==null?void 0:we.map(ze=>ze==null?void 0:ze.label);let il=[],Ia=[];if((ia=ll.safeClone(s.value))==null||ia.forEach(ze=>{var Sl;Array.isArray(ze==null?void 0:ze.value)&&((Sl=ze==null?void 0:ze.value)!=null&&Sl.find(Il=>{var Ul;return(Ul=Il==null?void 0:Il.url)==null?void 0:Ul.includes(".obj")}))&&(Ia=ze==null?void 0:ze.value)}),(Ia==null?void 0:Ia.length)>0){const ze=(Ie=ll.safeClone(Ia))==null?void 0:Ie.filter(Sl=>{var Il;return(Il=Sl==null?void 0:Sl.url)==null?void 0:Il.includes(".obj")});ze==null||ze.forEach(Sl=>{var Ul,ql,Ql,dr;const Il=(Ul=Ia==null?void 0:Ia.filter(Ol=>{var pr;return(Ol==null?void 0:Ol.name)===(Sl==null?void 0:Sl.name)&&((pr=Ol==null?void 0:Ol.url)==null?void 0:pr.includes(".mtl"))}))==null?void 0:Ul.map(Ol=>Ol==null?void 0:Ol.url);il.push({objUrl:Sl==null?void 0:Sl.url,mtlUrls:((ql=Ia==null?void 0:Ia.filter(Ol=>{var pr;return(Ol==null?void 0:Ol.name)===(Sl==null?void 0:Sl.name)&&((pr=Ol==null?void 0:Ol.url)==null?void 0:pr.includes(".mtl"))}))==null?void 0:ql.length)===1?(dr=(Ql=Ia==null?void 0:Ia.filter(Ol=>{var pr;return(Ol==null?void 0:Ol.name)===(Sl==null?void 0:Sl.name)&&((pr=Ol==null?void 0:Ol.url)==null?void 0:pr.includes(".mtl"))}))==null?void 0:Ql[0])==null?void 0:dr.url:Il})}),x.setObjUrl(il)}(pe=ll.safeClone(s.value))==null||pe.forEach(ze=>{var Sl,Il,Ul,ql,Ql,dr,Ol,pr,Fr,Pl,ar,Pr,Tr;if((Il=(Sl=ze==null?void 0:ze.value)==null?void 0:Sl.toString())!=null&&Il.includes(".stl")||(ql=(Ul=ze==null?void 0:ze.value)==null?void 0:Ul.toString())!=null&&ql.includes(".STL")||(dr=(Ql=ze==null?void 0:ze.value)==null?void 0:Ql.toString())!=null&&dr.includes(".obj")||(pr=(Ol=ze==null?void 0:ze.value)==null?void 0:Ol.toString())!=null&&pr.includes(".mtl")||(Pl=(Fr=ze==null?void 0:ze.value)==null?void 0:Fr.toString())!=null&&Pl.includes(".urdf")){let jr={},Ir=[],Er;Array.isArray(ze==null?void 0:ze.value)?Er=ze==null?void 0:ze.value:Er=(ar=ze==null?void 0:ze.value)==null?void 0:ar.split(","),Er==null||Er.forEach(Cr=>{Cr.includes(".mtl")?Ir.push(Cr):jr.blob=jr.blob==="undefined"?Cr:jr.blob+","+Cr}),(Ir==null?void 0:Ir.length)>0&&(jr.mtlBlobs=Ir),(Tr=(Pr=Object.values(jr))==null?void 0:Pr[0])!=null&&Tr.includes("http:")}})}else s.value=[];let Oe=ae.value;if((Oe==null?void 0:Oe.length)>0&&(Oe=Oe==null?void 0:Oe.map(Ze=>{var pl,Ve,Fa,Sa;let Ke=(pl=Ze==null?void 0:Ze.key)==null?void 0:pl.split("/");return(n==null?void 0:n.compName)===(Ke==null?void 0:Ke[0])&&(Ve=s.value)!=null&&Ve.find(il=>(il==null?void 0:il.prop)===(Ke==null?void 0:Ke[1]))&&(Ze.value=(Sa=(Fa=s.value)==null?void 0:Fa.find(il=>(il==null?void 0:il.prop)===(Ke==null?void 0:Ke[1])))==null?void 0:Sa.value),Ze}),fe.setTableViewContents(Oe)),n!=null&&n.formRules)g.value=n==null?void 0:n.formRules;else{let Ze={};(ha=ll.safeClone(s).value)==null||ha.forEach(Ke=>{((Ke==null?void 0:Ke.isMain)===!0||(Ke==null?void 0:Ke.required)===!0)&&(Ze[(Ke==null?void 0:Ke.prop)??(Ke==null?void 0:Ke.name)]=[{required:!0,message:`${(Ke==null?void 0:Ke.label)||(Ke==null?void 0:Ke.prop)||(Ke==null?void 0:Ke.name)}不能为空`}])}),g.value=Ze}if(((va=X==null?void 0:X.contents)==null?void 0:va.length)>0){const Ze=[];(Xe=X==null?void 0:X.contents)==null||Xe.forEach((Ke,pl)=>{(Ke==null?void 0:Ke.label)!==""&&Ze.push({label:(Ke==null?void 0:Ke.label)??"",id:(Ke==null?void 0:Ke.id)??pl,type:(Ke==null?void 0:Ke.type)??"",background:Ke==null?void 0:Ke.background})}),K.value=Ze}else K.value=[]},{deep:!0,immediate:!0}),e.watch(()=>ye.value,re=>{Se.value=re===Pe.value},{immediate:!0}),(re,X)=>{var ba;const Z=e.resolveComponent("svg-icon"),q=e.resolveComponent("el-switch"),Be=e.resolveComponent("el-checkbox"),Je=e.resolveComponent("el-popover"),ra=e.resolveComponent("el-checkbox-group");return e.openBlock(),e.createElementBlock("div",P3,[k.value===e.unref(ri).TEXT?(e.openBlock(),e.createBlock(Bc,{key:0,itemData:a.itemData,compName:a.compName,fields:s.value,textSize:b.value,textColor:w.value,backGround:$.value,backGroundImage:F.value,disabled:Se.value||te(),"onUpdate:backGroundImage":pa},null,8,["itemData","compName","fields","textSize","textColor","backGround","backGroundImage","disabled"])):k.value===e.unref(ri).BLOCK?(e.openBlock(),e.createBlock(Sf,{key:1,items:(ba=s.value)==null?void 0:ba.map(ga=>({label:ga!=null&&ga.isHideInForm?"":ga==null?void 0:ga.label,value:ga==null?void 0:ga.value,width:(ga==null?void 0:ga.width)??1,field:ga})),textSize:b.value,textColor:w.value,backGround:$.value,backGroundImage:F.value,disabled:Se.value||te(),"onUpdate:backGroundImage":pa},null,8,["items","textSize","textColor","backGround","backGroundImage","disabled"])):(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"form-shadow-box":k.value===e.unref(ri).ORDINARY})},[e.createVNode(ll.ssForm,{rowContents:s.value,formRules:g.value,buttonValue:K.value,isRowFlex:!1,isEnableWrap:!0,textSize:b.value,textColor:w.value,backGround:$.value,backGroundImage:F.value,onOnButtonClick:Ta,onChange:Ca,formDisabled:Se.value||te(),formLabelsOperable:U.value,isButtonRow:c.value,onPreview:Ne,onBlurChange:ce,onHandleColEditChange:ve,onHandleColTypeChange:da,onRouteUrl:H,onClickTrigger:L,"onUpdate:backGroundImage":pa},{operateCol:e.withCtx(({renderColumns:ga,formDisabled:Aa,formLabelsOperable:_a})=>[e.createVNode(Je,{title:"选择操作的标签",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:oa},{reference:e.withCtx(()=>[e.createElementVNode("span",j3,[e.createVNode(Z,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})])]),default:e.withCtx(()=>[e.createElementVNode("div",H3,[X[1]||(X[1]=e.createElementVNode("div",{class:"group-title"},"表单操作",-1)),e.createVNode(q,{"model-value":Aa,"active-text":"禁用","inactive-text":"",onChange:Te,style:{"margin-right":"8px"}},null,8,["model-value"]),e.createVNode(q,{"model-value":_a,"active-text":"编辑所有标签","inactive-text":"",onChange:Ue},null,8,["model-value"]),X[2]||(X[2]=e.createElementVNode("div",{class:"group-title"},"表单列操作",-1)),e.createVNode(ra,{modelValue:Ee.value,"onUpdate:modelValue":X[0]||(X[0]=Oe=>Ee.value=Oe),style:{height:"100%"},ref_key:"checkboxGroupRef",ref:ue,onChange:Ja},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ga,Oe=>(e.openBlock(),e.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:Oe.label},[e.createVNode(Be,{value:Oe.label,style:{width:"100%",marginRight:0}},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(Oe.label),1)]),_:2},1032,["value"]),e.createVNode(Je,{title:"标签操作",placement:"left",teleported:!1,trigger:"hover"},{reference:e.withCtx(()=>[e.createVNode(Z,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:e.withCtx(()=>{var Za;return[e.createElementVNode("div",U3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((Za=Object.keys(Oe))==null?void 0:Za.filter(Ha=>{var xl;return(xl=oe.value)==null?void 0:xl.find(Yl=>(Yl==null?void 0:Yl.value)===Ha)}),Ha=>{var xl,Yl;return e.openBlock(),e.createElementBlock("div",{key:Ha},[e.createVNode(ll._sfc_main$1,{value:Oe==null?void 0:Oe[Ha],"active-text":(Yl=(xl=oe.value)==null?void 0:xl.find(kl=>(kl==null?void 0:kl.value)===Ha))==null?void 0:Yl.label,inactiveText:"",onChange:kl=>ea(kl,Ha,Oe)},null,8,["value","active-text","onChange"])])}),128))])]}),_:2},1024),e.createElementVNode("span",q3,[e.createVNode(Z,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:2},1032,["modelValue"])])]),_:2},1024)]),_:1},8,["rowContents","formRules","buttonValue","textSize","textColor","backGround","backGroundImage","formDisabled","formLabelsOperable","isButtonRow"])],2)),D.value?(e.openBlock(),e.createBlock(ll.ssFilePreview,{key:3,fileDataList:I.value,onDestroy:We},null,8,["fileDataList"])):e.createCommentVNode("",!0),v.value?(e.openBlock(),e.createBlock(wr.ssDialog,{key:4,visible:v.value,onBeforeDestroy:r,style:{height:"700px",width:"1000px"}},{default:e.withCtx(()=>[e.createVNode(So.ThreeViewerHost,{files:f.value,onGetAnimationData:re.onAnimationData},null,8,["files","onGetAnimationData"])]),_:1},8,["visible"])):e.createCommentVNode("",!0)])}}},bs=Xl._export_sfc(W3,[["__scopeId","data-v-7bb009b3"]]),zo=e.ref(0),Nc=a=>{var l;return!a||(a==null?void 0:a.length)===0?[]:(l=A.cloneDeep(a))==null?void 0:l.map(n=>(zo.value++,n={label:(n==null?void 0:n.label)??"",prop:(n==null?void 0:n.label)==="操作"?"operate":n==null?void 0:n.prop,width:n!=null&&n.width?parseInt(n.width):"",fixed:(n==null?void 0:n.fixed)??void 0,sortable:(n==null?void 0:n.sortable)??!1,align:(n==null?void 0:n.align)??"left",showOverflowTooltip:(n==null?void 0:n.showOverflowTooltip)??!0,isNotDrag:(n==null?void 0:n.isNotDrag)??!1,isEditCol:(n==null?void 0:n.isEditCol)??!1,isOperate:(n==null?void 0:n.isOperate)??!1,id:(n==null?void 0:n.id)??zo.value,children:Nc(n==null?void 0:n.children)},n))},K3=a=>{var r;return(r=A.cloneDeep(a))==null?void 0:r.map(n=>(zo.value++,n={label:(n==null?void 0:n.label)??"",prop:(n==null?void 0:n.label)==="操作"?"operate":n==null?void 0:n.prop,width:n!=null&&n.width?parseInt(n.width):"",fixed:(n==null?void 0:n.fixed)??void 0,sortable:(n==null?void 0:n.sortable)??!1,align:(n==null?void 0:n.align)??"left",showOverflowTooltip:(n==null?void 0:n.showOverflowTooltip)??!0,isNotDrag:(n==null?void 0:n.isNotDrag)??!1,isEditCol:(n==null?void 0:n.isEditCol)??!1,isOperate:(n==null?void 0:n.isOperate)??!1,id:(n==null?void 0:n.id)??zo.value,children:Nc(n==null?void 0:n.children)},n))},Tc=(a,l)=>{var r;return a!=null&&a.find(n=>(n==null?void 0:n.id)===l)?(r=A.cloneDeep(a))==null?void 0:r.filter(t=>(t==null?void 0:t.id)!==l):(a=a==null?void 0:a.map(n=>(n.children=Tc(n==null?void 0:n.children,l),n)),a)},Ac=(a,l)=>{var r;return a!=null&&a.find(n=>(n==null?void 0:n.id)===(l==null?void 0:l.id))?(r=A.cloneDeep(a))==null?void 0:r.map(t=>((t==null?void 0:t.id)===(l==null?void 0:l.id)&&(t=l),t)):(a=a==null?void 0:a.map(n=>(n.children=Ac(n==null?void 0:n.children,l),n)),a)},zc=(a,l)=>{var r;return a!=null&&a.find(n=>{var t;return(n==null?void 0:n.id)===((t=l==null?void 0:l.contents)==null?void 0:t.id)})?(r=A.cloneDeep(a))==null?void 0:r.map(t=>{var s;return(t==null?void 0:t.id)===((s=l==null?void 0:l.contents)==null?void 0:s.id)&&(t=l==null?void 0:l.contents),t}):(a=a==null?void 0:a.map(n=>(n.children=zc(n==null?void 0:n.children,l),n)),a)},Mc=(a,l)=>{var r;return a!=null&&a.find(n=>(n==null?void 0:n.id)===(l==null?void 0:l.id))?(r=A.cloneDeep(a))==null?void 0:r.map(t=>((t==null?void 0:t.id)===(l==null?void 0:l.id)&&(t!=null&&t.children||(t.children=[]),t.children.push(l.contents)),t)):(a=a==null?void 0:a.map(n=>(n.children=Mc(n==null?void 0:n.children,l),n)),a)},ir=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"width",label:"宽度",type:"Input"},{key:"sortable",label:"是否支持排序",type:"Switch"},{key:"align",label:"文本所在位置",type:"Radio",options:[{label:"left",value:"左"},{label:"center",value:"中"},{label:"right",value:"右"}]},{key:"fixed",label:"是否固定列",type:"Switch"}],G3=[{label:"查看",value:"view"},{label:"修改",value:"fix"},{label:"删除",value:"delete"},{label:"三维算例",value:"modelExample"}],Y3=[{label:"新增",value:"add"}],Mn=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Y3},{key:"background",label:"按钮背景色",type:"Color"}],In=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:G3},{key:"textColor",label:"按钮颜色",type:"Color"}],J3={class:"table-header-child"},X3={class:"table-header-child-main"},Z3={class:"table-header-child-content"},Q3={class:"table-header-child-content-item"},eh={class:"fix-button"},ah={key:0},lh={class:"form-content"},rh={__name:"tableNewChild",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(a,{emit:l}){const r=a,n=l,t=e.ref(!1),s=e.ref(""),v=he.useTableComp(A.pinia),{tableIndex:p}=A.storeToRefs(v);e.ref(0);const f=e.ref(""),m=e.ref([]),g=e.ref([]),c=E=>{var k;t.value=!0;let x=[];ir==null||ir.forEach(b=>{let w=A.cloneDeep(p.value)+1;v.setTableIndex(w),x.push({label:b==null?void 0:b.label,name:b==null?void 0:b.label,type:b.type,value:E[b.key],id:p.value,contents:b==null?void 0:b.options})}),E!=null&&E.children&&((k=E==null?void 0:E.children)==null?void 0:k.length)>0&&x.push({children:E==null?void 0:E.children,isFormColHidden:!0}),f.value=E==null?void 0:E.id,m.value=x,g.value=x},D=E=>{n("fixChange",A.cloneDeep(E))},M=E=>{n("deleteChange",A.cloneDeep(E))},S=E=>{t.value=!0;let x=[];ir==null||ir.forEach(k=>{let b=A.cloneDeep(p.value)+1;v.setTableIndex(b),x.push({label:k==null?void 0:k.label,name:k==null?void 0:k.label,type:k.type,value:"",id:p.value,contents:k==null?void 0:k.options})}),s.value=E==null?void 0:E.id,m.value=x,g.value=x},K=E=>{let x=A.cloneDeep(g.value);x=x==null?void 0:x.map(k=>(k.children||(k.value=E==null?void 0:E[k.name]),k)),g.value=x},I=()=>{var x,k;m.value=g.value;let E={};if(f.value!=="")E.id=f.value,(x=m.value)==null||x.forEach(b=>{const w=ir==null?void 0:ir.find($=>($==null?void 0:$.label)===(b==null?void 0:b.label));w?E[w.key]=b.value:b!=null&&b.children&&b.children.length>0&&(E.children=b.children)}),t.value=!1,n("fixChange",{contents:A.cloneDeep(E),id:s.value,type:"fix"});else{let b=A.cloneDeep(p.value)+1;v.setTableIndex(b),E.id="id"+p.value,(k=m.value)==null||k.forEach(w=>{const $=ir==null?void 0:ir.find(F=>(F==null?void 0:F.label)===(w==null?void 0:w.label));$?E[$.key]=w.value:w!=null&&w.children&&w.children.length>0&&(E.children=w.children)}),t.value=!1,n("fixChange",{contents:A.cloneDeep(E),id:s.value,type:"add"})}f.value="",m.value=[],g.value=[]},R=()=>{t.value=!1,f.value="",s.value="",m.value=[],g.value=[]},j=E=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{n("deleteChange",E),qa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(E,x)=>{const k=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",J3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r==null?void 0:r.tableChildContents,(b,w)=>(e.openBlock(),e.createElementBlock("div",X3,[e.createElementVNode("div",Z3,[e.createElementVNode("div",Q3,e.toDisplayString(b.label),1),e.createElementVNode("div",eh,[e.createVNode(k,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:$=>S(b)},null,8,["onClick"]),e.createVNode(k,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:$=>c(b)},null,8,["onClick"]),e.createVNode(k,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:$=>j(b)},null,8,["onClick"])])]),b!=null&&b.children&&b.children.length>0?(e.openBlock(),e.createElementBlock("div",ah,[e.createVNode(Ic,{tableChildContents:b==null?void 0:b.children,onDeleteChange:M,onFixChange:D},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),256)),e.createVNode(wr.ssDialog,{visible:t.value,onBeforeDestroy:R,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",lh,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:m.value,key:m.value,isEnableWrap:!0,onChange:K},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:R,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:I},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},nh=Xl._export_sfc(rh,[["__scopeId","data-v-e0fef72d"]]),ih={class:"table-header-child"},oh={class:"table-header-child-main"},th={class:"table-header-child-content"},sh={class:"table-header-child-content-item"},ch={class:"fix-button"},uh={key:0},dh={class:"form-content"},ph={class:"dialog-footer"},fh={__name:"tableChildren",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(a,{emit:l}){const r=a,n=l,t=e.ref(!1),s=e.ref(""),v=he.useTableComp(A.pinia),{tableIndex:p}=A.storeToRefs(v),f=e.ref(""),m=e.ref([]),g=e.ref([]),c=E=>{n("fixChange",A.cloneDeep(E))},D=E=>{var k;t.value=!0;let x=[];ir==null||ir.forEach(b=>{let w=A.cloneDeep(p.value)+1;v.setTableIndex(w),x.push({label:b==null?void 0:b.label,name:b==null?void 0:b.label,type:b.type,value:E[b.key],id:p.value,contents:b==null?void 0:b.options})}),E!=null&&E.children&&((k=E==null?void 0:E.children)==null?void 0:k.length)>0&&x.push({children:E==null?void 0:E.children,isFormColHidden:!0}),f.value=E==null?void 0:E.id,m.value=x,g.value=x},M=E=>{t.value=!0;let x=[];ir==null||ir.forEach(k=>{let b=A.cloneDeep(p.value)+1;v.setTableIndex(b),x.push({label:k==null?void 0:k.label,name:k==null?void 0:k.label,type:k.type,value:"",id:p.value,contents:k==null?void 0:k.options})}),s.value=E==null?void 0:E.id,m.value=x,g.value=x},S=E=>{let x=A.cloneDeep(g.value);x=x==null?void 0:x.map(k=>(k.children||(k.value=E==null?void 0:E[k.name]),k)),g.value=x},K=()=>{var x,k;m.value=g.value;let E={};if(f.value!=="")E.id=f.value,(x=m.value)==null||x.forEach(b=>{const w=ir==null?void 0:ir.find($=>($==null?void 0:$.label)===(b==null?void 0:b.label));w?E[w.key]=b.value:b!=null&&b.children&&b.children.length>0&&(E.children=b.children)}),t.value=!1,n("fixChange",{contents:A.cloneDeep(E),id:s.value,type:"fix"});else{let b=A.cloneDeep(p.value)+1;v.setTableIndex(b),E.id="idChild"+p.value,(k=m.value)==null||k.forEach(w=>{const $=ir==null?void 0:ir.find(F=>(F==null?void 0:F.label)===(w==null?void 0:w.label));$?E[$.key]=w.value:w!=null&&w.children&&w.children.length>0&&(E.children=w.children)}),t.value=!1,n("fixChange",{contents:A.cloneDeep(E),id:s.value,type:"add"})}f.value="",m.value=[],g.value=[]},I=()=>{t.value=!1,f.value="",s.value="",m.value=[],g.value=[]},R=E=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{n("deleteChange",E),qa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},j=E=>{n("deleteChange",E)};return(E,x)=>{const k=e.resolveComponent("svg-icon"),b=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",ih,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r==null?void 0:r.tableChildContents,(w,$)=>(e.openBlock(),e.createElementBlock("div",oh,[e.createElementVNode("div",th,[e.createElementVNode("div",sh,e.toDisplayString(w.label),1),e.createElementVNode("div",ch,[e.createVNode(k,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:F=>M(w)},null,8,["onClick"]),e.createVNode(k,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:F=>D(w)},null,8,["onClick"]),e.createVNode(k,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:F=>R(w)},null,8,["onClick"])])]),w!=null&&w.children&&w.children.length>0?(e.openBlock(),e.createElementBlock("div",uh,[e.createVNode(nh,{tableChildContents:w==null?void 0:w.children,onDeleteChange:j,onFixChange:c},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),256)),e.createVNode(wr.ssDialog,{visible:t.value,onBeforeDestroy:I,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",dh,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:m.value,key:m.value,isEnableWrap:!0,onChange:S},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",ph,[e.createVNode(b,{onClick:I,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>x[0]||(x[0]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[0]}),e.createVNode(b,{class:"ok-button button",onClick:K,id:"themeButton"},{default:e.withCtx(()=>x[1]||(x[1]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},Ic=Xl._export_sfc(fh,[["__scopeId","data-v-ebd68fa1"]]),hh={class:"table-operate-content"},vh={class:"table-operate-item"},mh={class:"operate-title"},yh={class:"operate-content"},gh={class:"fix-content"},bh={class:"fix-content-label"},kh={class:"fix-button"},xh={key:0},wh={class:"operate-title"},_h={class:"operate-content"},Sh={class:"fix-content"},Eh={class:"fix-content-label"},Ch={class:"fix-button"},Dh={class:"operate-title"},Bh={class:"operate-content"},Nh={class:"fix-content"},Th={class:"fix-content-label"},Ah={class:"fix-button"},zh={class:"operate-title"},Mh={class:"operate-content"},Ih={class:"fix-content"},Oh={class:"fix-content-label"},Lh={class:"fix-button"},Rh={class:"operate-content"},$h={style:{display:"flex","justify-content":"space-between"}},Vh={class:"form-content"},Fh={class:"dialog-footer"},Ph={class:"form-content"},jh={class:"dialog-footer"},Hh={class:"form-content"},Uh={class:"dialog-footer"},qh={class:"form-content"},Wh={class:"dialog-footer"},Kh={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const r=a,n=l,t=e.ref([]),s=e.ref(!1),v=e.ref(!1),p=e.ref([]),f=e.ref(!1),m=e.ref([]),g=e.ref(!1),c=e.ref([]),D=e.ref(""),M=e.ref(""),S=e.ref([]),K=e.ref([]),I=e.ref([]),R=e.ref([]),j=e.ref(!1),E=e.ref([]),x=e.ref([]),k=e.ref(0),b=e.ref([]),w=e.ref([]),$=e.ref([]),F=()=>{j.value=!0;let L=[];Mn==null||Mn.forEach(H=>{k.value++,L.push({label:H==null?void 0:H.label,name:H==null?void 0:H.label,type:H.type,value:(H==null?void 0:H.key)==="background"?"var(--ssComponent-primary-color)":"",id:k.value,contents:H==null?void 0:H.options})}),E.value=L,x.value=L},J=()=>{var H,Q,me;v.value=!0;let L=[];(me=(Q=(H=he.FormContent)==null?void 0:H.find(ve=>(ve==null?void 0:ve.key)==="Input"))==null?void 0:Q.value)==null||me.forEach(ve=>{k.value++,L.push({label:ve==null?void 0:ve.label,name:(ve==null?void 0:ve.name)||(ve==null?void 0:ve.label),type:ve.type,value:(ve==null?void 0:ve.label)==="类型"?"Input":"",id:k.value,contents:ve==null?void 0:ve.options})}),b.value=L,w.value=L},se=L=>{L||(b.value=w.value)},ge=async L=>{var H,Q,me,ve,da,ea,ce,pa,Ne,We,Ta,Ca;if((L==null?void 0:L.类型)!==((Q=(H=w.value)==null?void 0:H.find(Qe=>(Qe==null?void 0:Qe.label)==="类型"))==null?void 0:Q.value)){let Qe=[],Va=await((da=(ve=(me=he.FormContent)==null?void 0:me.find(re=>(re==null?void 0:re.key)===((L==null?void 0:L.类型)===""?"Input":L==null?void 0:L.类型)))==null?void 0:ve.value)==null?void 0:da.value)?await((We=(Ne=(pa=he.FormContent)==null?void 0:pa.find(re=>(re==null?void 0:re.key)===((L==null?void 0:L.类型)===""?"Input":L==null?void 0:L.类型)))==null?void 0:Ne.value)==null?void 0:We.value):(ce=(ea=he.FormContent)==null?void 0:ea.find(re=>(re==null?void 0:re.key)===((L==null?void 0:L.类型)===""?"Input":L==null?void 0:L.类型)))==null?void 0:ce.value;if(Va==null||Va.forEach(re=>{k.value++,Qe.push({label:re==null?void 0:re.label,name:(re==null?void 0:re.name)||(re==null?void 0:re.label),type:re.type,value:re!=null&&re.属性名?(L==null?void 0:L.prop)||(L==null?void 0:L.name)||(L==null?void 0:L.label):(L==null?void 0:L[re.label])??"",id:k.value,contents:re==null?void 0:re.options,prop:(re==null?void 0:re.prop)||(re==null?void 0:re.name)||(re==null?void 0:re.label)})}),L!=null&&L.菜单选项&&((Ta=L==null?void 0:L.菜单选项)==null?void 0:Ta.length)>0){const re=await he.menuToContentType(L==null?void 0:L.菜单选项);Qe=Qe==null?void 0:Qe.map(X=>((X==null?void 0:X.name)==="组信息选项"&&(X.contents=re),X))}w.value=await he.selectToBase(A.cloneDeep(Qe)),b.value=await he.selectToBase(A.cloneDeep(Qe))}else{let Qe=A.cloneDeep(b.value);if(Qe=Qe==null?void 0:Qe.map(Va=>(Va.value=L==null?void 0:L[Va.name],Va)),L!=null&&L.菜单选项&&((Ca=L==null?void 0:L.菜单选项)==null?void 0:Ca.length)>0){const Va=await he.menuToContentType(L==null?void 0:L.菜单选项);Qe=Qe==null?void 0:Qe.map(re=>((re==null?void 0:re.name)==="组信息选项"&&(re.contents=Va),re))}Qe=he.formToOptionsContents(Qe),w.value=await he.selectToBase(A.cloneDeep(Qe))}},Me=async L=>{await ge(L),b.value=w.value},V=(L,H)=>{if((H==null?void 0:H.type)=="Select"&&(L==null?void 0:L.key)==="selectRelateType"){const Q=H==null?void 0:H.optionUrl;return(Q==null?void 0:Q.selectRelateType)||H[L.key]}if((H==null?void 0:H.type)=="Select"&&(L==null?void 0:L.key)==="menuSelect"){const Q=H==null?void 0:H.optionUrl;return(Q==null?void 0:Q.menuSelect)||H[L.key]}if((H==null?void 0:H.type)=="Select"&&(L==null?void 0:L.key)==="groupSelect"){const Q=H==null?void 0:H.optionUrl;return(Q==null?void 0:Q.groupSelect)||H[L.key]}if((H==null?void 0:H.type)=="Select"&&(L==null?void 0:L.key)==="originalContent")return(H==null?void 0:H.value)||H[L.key];if((H==null?void 0:H.type)=="Select"&&(L==null?void 0:L.key)==="multiple"){const Q=H[L.key];return Js(Q)?Q:L.default}return(L==null?void 0:L.label)==="类型"&&H[L.key]===""?"Input":(L==null?void 0:L.key)==="isFormColHidden"&&!H[L.key]?!1:H[L.key]},fe=async L=>{var me,ve,da,ea,ce,pa,Ne,We,Ta;v.value=!0;let H=[];const Q=await((da=(ve=(me=he.FormContent)==null?void 0:me.find(Ca=>(Ca==null?void 0:Ca.key)===((L==null?void 0:L.type)===""?"Input":L==null?void 0:L.type)))==null?void 0:ve.value)==null?void 0:da.value)?await((We=(Ne=(pa=he.FormContent)==null?void 0:pa.find(Ca=>(Ca==null?void 0:Ca.key)===((L==null?void 0:L.type)===""?"Input":L==null?void 0:L.type)))==null?void 0:Ne.value)==null?void 0:We.value):(ce=(ea=he.FormContent)==null?void 0:ea.find(Ca=>(Ca==null?void 0:Ca.key)===((L==null?void 0:L.type)===""?"Input":L==null?void 0:L.type)))==null?void 0:ce.value;if(Q==null||Q.forEach(Ca=>{k.value++,H.push({label:Ca==null?void 0:Ca.label,name:(Ca==null?void 0:Ca.name)||(Ca==null?void 0:Ca.label),type:Ca.type,value:(Ca==null?void 0:Ca.label)==="属性名"?(L==null?void 0:L.prop)||(L==null?void 0:L.name)||(L==null?void 0:L.label):V(Ca,L),id:k.value,contents:Ca==null?void 0:Ca.options})}),L!=null&&L.menuSelect&&((Ta=L==null?void 0:L.menuSelect)==null?void 0:Ta.length)>0){const Ca=await he.menuToContentType(L==null?void 0:L.menuSelect);H=H==null?void 0:H.map(Qe=>((Qe==null?void 0:Qe.name)==="组信息选项"&&(Qe.contents=Ca),Qe))}D.value=L==null?void 0:L.id,b.value=await he.selectToBase(he.formToOptionsContents(H)),w.value=await he.selectToBase(he.formToOptionsContents(H))},ae=L=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var H,Q;$.value=(H=A.cloneDeep($.value))==null?void 0:H.filter(me=>(me==null?void 0:me.id)!==(L==null?void 0:L.id)),n("change",(Q=A.cloneDeep(r.originalItemContents))==null?void 0:Q.map(me=>((me==null?void 0:me.key)==="tableToForm"&&(me.contents=$.value),me))),qa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},de=()=>{v.value=!1,b.value=[],D.value=""},Ce=async()=>{var me,ve,da,ea,ce,pa,Ne,We,Ta,Ca;b.value=w.value;let L={};D.value!==""?L.id=D.value:(k.value++,L.id="id"+k.value);let H=await((da=(ve=(me=he.FormContent)==null?void 0:me.find(Qe=>{var Va,re;return(Qe==null?void 0:Qe.key)===(((re=(Va=b.value)==null?void 0:Va.find(X=>(X==null?void 0:X.label)==="类型"))==null?void 0:re.value)??"label")}))==null?void 0:ve.value)==null?void 0:da.value)??((ce=(ea=he.FormContent)==null?void 0:ea.find(Qe=>{var Va,re;return(Qe==null?void 0:Qe.key)===(((re=(Va=b.value)==null?void 0:Va.find(X=>(X==null?void 0:X.label)==="类型"))==null?void 0:re.value)??"label")}))==null?void 0:ce.value);if((pa=b.value)==null||pa.forEach(Qe=>{const Va=H==null?void 0:H.find(re=>(re==null?void 0:re.label)===(Qe==null?void 0:Qe.label));Va&&(L[Va.key]=Qe.value)}),L.name=L.label,(Ne=$.value)!=null&&Ne.find(Qe=>Qe.id===L.id))$.value=(We=$.value)==null?void 0:We.map(Qe=>(Qe.id===L.id&&(Qe=L),Qe));else{let Qe=A.cloneDeep($.value);$.value||($.value=[]),Qe.push(L),$.value=Qe}$.value=$.value.map(({id:Qe,...Va})=>Va),v.value=!1,D.value="";let Q=A.cloneDeep(r.originalItemContents);(Ta=A.cloneDeep(r.originalItemContents))!=null&&Ta.find(Qe=>(Qe==null?void 0:Qe.key)==="tableToForm")?Q=(Ca=A.cloneDeep(r.originalItemContents))==null?void 0:Ca.map(Qe=>((Qe==null?void 0:Qe.key)==="tableToForm"&&(Qe.contents=$.value),Qe)):Q.push({key:"tableToForm",contents:$.value}),n("change",Q)},Fe=L=>{j.value=!0;let H=[];Mn==null||Mn.forEach(Q=>{k.value++,H.push({label:Q==null?void 0:Q.label,name:Q==null?void 0:Q.label,type:Q.type,value:L[Q.key],id:k.value,contents:Q==null?void 0:Q.options})}),D.value=L==null?void 0:L.id,E.value=H,x.value=H};e.watch(()=>g.value,()=>{var H,Q;let L=A.cloneDeep(r.originalItemContents);(H=A.cloneDeep(r.originalItemContents))!=null&&H.find(me=>(me==null?void 0:me.key)==="page")?L=(Q=A.cloneDeep(r.originalItemContents))==null?void 0:Q.map(me=>((me==null?void 0:me.key)==="page"&&(me.contents=g.value),me)):L.push({key:"page",contents:g.value}),n("change",L)},{deep:!0});const ye=L=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var H,Q;K.value=(H=A.cloneDeep(K.value))==null?void 0:H.filter(me=>(me==null?void 0:me.id)!==(L==null?void 0:L.id)),n("change",(Q=A.cloneDeep(r.originalItemContents))==null?void 0:Q.map(me=>((me==null?void 0:me.key)==="extraButton"&&(me.contents=K.value),me))),qa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},T=()=>{var Q,me,ve,da,ea;E.value=x.value;let L={};if(D.value!==""?L.id=D.value:(k.value++,L.id="id"+k.value),(Q=E.value)==null||Q.forEach(ce=>{const pa=Mn==null?void 0:Mn.find(Ne=>(Ne==null?void 0:Ne.label)===(ce==null?void 0:ce.label));pa?L[pa.key]=ce.value:ce!=null&&ce.children&&ce.children.length>0&&(L.children=ce.children)}),(me=K.value)!=null&&me.find(ce=>ce.id===L.id))K.value=(ve=K.value)==null?void 0:ve.map(ce=>(ce.id===L.id&&(ce=L),ce));else{let ce=A.cloneDeep(K.value)??[];ce.push(L),K.value=ce}j.value=!1,D.value="";let H=A.cloneDeep(r.originalItemContents);(da=A.cloneDeep(r.originalItemContents))!=null&&da.find(ce=>(ce==null?void 0:ce.key)==="extraButton")?H=(ea=A.cloneDeep(r.originalItemContents))==null?void 0:ea.map(ce=>((ce==null?void 0:ce.key)==="extraButton"&&(ce.contents=K.value),ce)):H.push({key:"extraButton",contents:K.value}),n("change",H)},ue=L=>{let H=A.cloneDeep(x.value);H=H==null?void 0:H.map(Q=>(Q.children||(Q.value=L==null?void 0:L[Q.name]),Q)),x.value=H},U=()=>{j.value=!1,E.value=[],D.value=""},Se=L=>{f.value=!0;let H=[];In==null||In.forEach(Q=>{k.value++,H.push({label:Q==null?void 0:Q.label,name:Q==null?void 0:Q.label,type:Q.type,value:L[Q.key],id:k.value,contents:Q==null?void 0:Q.options})}),D.value=L==null?void 0:L.id,I.value=H,R.value=H},Le=L=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var H,Q;S.value=(H=A.cloneDeep(S.value))==null?void 0:H.filter(me=>(me==null?void 0:me.id)!==(L==null?void 0:L.id)),n("change",(Q=A.cloneDeep(r.originalItemContents))==null?void 0:Q.map(me=>((me==null?void 0:me.key)==="rowButton"&&(me.contents=S.value),me))),qa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},Pe=()=>{s.value=!0;let L=[];ir==null||ir.forEach(H=>{k.value++,L.push({label:H==null?void 0:H.label,name:H==null?void 0:H.label,type:H.type,value:"",id:k.value,contents:H==null?void 0:H.options})}),m.value=L,c.value=L},la=()=>{f.value=!0;let L=[];In==null||In.forEach(H=>{k.value++,L.push({label:H==null?void 0:H.label,name:H==null?void 0:H.label,type:H.type,value:"",id:k.value,contents:H==null?void 0:H.options})}),I.value=L,R.value=L},Da=L=>{let H=A.cloneDeep(R.value);H=H==null?void 0:H.map(Q=>(Q.children||(Q.value=L==null?void 0:L[Q.name]),Q)),R.value=H},le=()=>{var Q,me,ve,da,ea;I.value=R.value;let L={};if(D.value!==""?L.id=D.value:(k.value++,L.id="id"+k.value),(Q=I.value)==null||Q.forEach(ce=>{const pa=In==null?void 0:In.find(Ne=>(Ne==null?void 0:Ne.label)===(ce==null?void 0:ce.label));pa?L[pa.key]=ce.value:ce!=null&&ce.children&&ce.children.length>0&&(L.children=ce.children)}),(me=S.value)!=null&&me.find(ce=>ce.id===L.id))S.value=(ve=S.value)==null?void 0:ve.map(ce=>(ce.id===L.id&&(ce=L),ce));else{let ce=A.cloneDeep(S.value);ce.push(L),S.value=ce}f.value=!1,D.value="";let H=A.cloneDeep(r.originalItemContents);(da=A.cloneDeep(r.originalItemContents))!=null&&da.find(ce=>(ce==null?void 0:ce.key)==="rowButton")?H=(ea=A.cloneDeep(r.originalItemContents))==null?void 0:ea.map(ce=>((ce==null?void 0:ce.key)==="rowButton"&&(ce.contents=S.value),ce)):H.push({key:"rowButton",contents:S.value}),n("change",H)},ta=()=>{f.value=!1,D.value="",R.value=[],I.value=[]},te=L=>{s.value=!0;let H=[];ir==null||ir.forEach(Q=>{k.value++,H.push({label:Q==null?void 0:Q.label,name:Q==null?void 0:Q.label,type:Q.type,value:"",id:k.value,contents:Q==null?void 0:Q.options})}),m.value=H,M.value=L==null?void 0:L.id,c.value=H},ca=L=>{var H;p.value=Tc(A.cloneDeep(p.value),L==null?void 0:L.id),n("change",(H=A.cloneDeep(r.originalItemContents))==null?void 0:H.map(Q=>{var me;return(Q==null?void 0:Q.key)==="header"&&(Q.contents=(me=p.value)!=null&&me.some(ve=>ve==null?void 0:ve.children)?[p.value]:p.value),Q}))},Ee=L=>{var Q,me,ve;L.type==="fix"?L.id!==""?p.value=zc(p.value,L):p.value=Ac(p.value,L==null?void 0:L.contents):p.value=Mc(p.value,L),p.value=(Q=p.value)!=null&&Q.some(da=>da==null?void 0:da.children)?[p.value]:p.value,D.value="";let H=A.cloneDeep(r.originalItemContents);(me=A.cloneDeep(r.originalItemContents))!=null&&me.find(da=>(da==null?void 0:da.key)==="header")?H=(ve=A.cloneDeep(r.originalItemContents))==null?void 0:ve.map(da=>((da==null?void 0:da.key)==="header"&&(da.contents=p.value),da)):H.push({key:"header",contents:p.value}),n("change",H)},oe=L=>{var Q;s.value=!0;let H=[];ir==null||ir.forEach(me=>{k.value++,H.push({label:me==null?void 0:me.label,name:me==null?void 0:me.label,type:me.type,value:L[me.key],id:k.value,contents:me==null?void 0:me.options})}),L!=null&&L.children&&((Q=L==null?void 0:L.children)==null?void 0:Q.length)>0&&H.push({children:L==null?void 0:L.children,isFormColHidden:!0}),D.value=L==null?void 0:L.id,M.value="",m.value=H,c.value=H},Te=L=>{let H=A.cloneDeep(c.value);H=H==null?void 0:H.map(Q=>(Q.children||(Q.value=L==null?void 0:L[Q.name]),Q)),c.value=H},Ue=()=>{s.value=!1,D.value="",M.value="",c.value=[]},oa=()=>{var Q,me,ve,da,ea,ce;m.value=c.value;let L={};if(D.value!==""?L.id=D.value:(k.value++,L.id="id"+k.value),(Q=m.value)==null||Q.forEach(pa=>{const Ne=ir==null?void 0:ir.find(We=>(We==null?void 0:We.label)===(pa==null?void 0:pa.label));Ne?L[Ne.key]=pa.value:pa!=null&&pa.children&&pa.children.length>0&&(L.children=pa.children)}),(me=p.value)!=null&&me.find(pa=>pa.id===L.id))p.value=(ve=p.value)==null?void 0:ve.map(pa=>(pa.id===L.id&&(pa=L),pa));else{let pa=A.cloneDeep(p.value)??[];M.value===""?pa.push(L):pa=pa==null?void 0:pa.map(Ne=>(Ne.id===M.value&&(Ne.children||(Ne.children=[]),Ne.children.push(L)),Ne)),p.value=pa}p.value=(da=p.value)!=null&&da.some(pa=>pa==null?void 0:pa.children)?[p.value]:p.value,s.value=!1,D.value="",M.value="";let H=A.cloneDeep(r.originalItemContents);(ea=A.cloneDeep(r.originalItemContents))!=null&&ea.find(pa=>(pa==null?void 0:pa.key)==="header")?H=(ce=A.cloneDeep(r.originalItemContents))==null?void 0:ce.map(pa=>((pa==null?void 0:pa.key)==="header"&&(pa.contents=p.value),pa)):H.push({key:"header",contents:p.value}),n("change",H)},Ja=L=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var H,Q;p.value=(H=A.cloneDeep(p.value))==null?void 0:H.filter(me=>(me==null?void 0:me.id)!==(L==null?void 0:L.id)),n("change",(Q=A.cloneDeep(r.originalItemContents))==null?void 0:Q.map(me=>{var ve;return(me==null?void 0:me.key)==="header"&&(me.contents=(ve=p.value)!=null&&ve.some(da=>da==null?void 0:da.children)?[p.value]:p.value),me})),qa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return e.watch(()=>r.originalItemContents,()=>{var L,H,Q,me,ve,da,ea,ce,pa,Ne,We,Ta,Ca,Qe,Va,re,X,Z,q;if(!(!r.originalItemContents||r.originalItemContents.length===0))if(t.value=A.cloneDeep(r.originalItemContents),p.value=(H=(L=t.value)==null?void 0:L.find(Be=>(Be==null?void 0:Be.key)==="header"))==null?void 0:H.contents,S.value=(me=(Q=t.value)==null?void 0:Q.find(Be=>(Be==null?void 0:Be.key)==="rowButton"))==null?void 0:me.contents,K.value=(da=(ve=t.value)==null?void 0:ve.find(Be=>(Be==null?void 0:Be.key)==="extraButton"))==null?void 0:da.contents,g.value=(ce=(ea=t.value)==null?void 0:ea.find(Be=>(Be==null?void 0:Be.key)==="page"))!=null&&ce.contents?!!((Ne=(pa=t.value)==null?void 0:pa.find(Be=>(Be==null?void 0:Be.key)==="page"))!=null&&Ne.contents):!1,$.value=(Ta=(We=t.value)==null?void 0:We.find(Be=>(Be==null?void 0:Be.key)==="tableToForm"))==null?void 0:Ta.contents,p.value=(Ca=p.value)==null?void 0:Ca.map((Be,Je)=>(Array.isArray(Be)?Be=K3(Be):Be={label:(Be==null?void 0:Be.label)??"",prop:(Be==null?void 0:Be.label)==="操作"?"operate":Be==null?void 0:Be.prop,width:Be!=null&&Be.width?parseInt(Be.width):"",fixed:(Be==null?void 0:Be.fixed)??void 0,sortable:(Be==null?void 0:Be.sortable)??!1,align:(Be==null?void 0:Be.align)??"left",showOverflowTooltip:(Be==null?void 0:Be.showOverflowTooltip)??!0,isNotDrag:(Be==null?void 0:Be.isNotDrag)??!1,isEditCol:(Be==null?void 0:Be.isEditCol)??!1,isOperate:(Be==null?void 0:Be.isOperate)??!1,id:(Be==null?void 0:Be.id)??Je,formMenuSelect:(Be==null?void 0:Be.formMenuSelect)??void 0,groupSelect:(Be==null?void 0:Be.groupSelect)??void 0},Be)),p.value=(Qe=p.value)!=null&&Qe.every(Be=>Array.isArray(Be))?(Va=p.value)==null?void 0:Va[0]:p.value,S.value=(re=S.value)==null?void 0:re.map((Be,Je)=>Be={label:(Be==null?void 0:Be.label)??"",type:(Be==null?void 0:Be.type)??"",textColor:(Be==null?void 0:Be.textColor)??"#000000",id:(Be==null?void 0:Be.id)??Je}),K.value=(X=K.value)==null?void 0:X.map((Be,Je)=>Be={label:(Be==null?void 0:Be.label)??"",type:(Be==null?void 0:Be.type)??"",background:(Be==null?void 0:Be.background)??"var(--ssComponent-primary-color)",id:(Be==null?void 0:Be.id)??Je}),$.value)$.value=(q=$.value)==null?void 0:q.map(Be=>{k.value++;let Je=Be;return Je.id=k.value,Je});else{let Be=[];const Je=(Z=he.getColumnChild(A.cloneDeep(p.value)))==null?void 0:Z.filter(ra=>(ra==null?void 0:ra.prop)!=="operate");Je==null||Je.forEach(ra=>{var ba;k.value++,Be.push({label:ra==null?void 0:ra.label,name:(ra==null?void 0:ra.prop)||(ra==null?void 0:ra.label),type:ra!=null&&ra.groupSelect?"Select":"Input",value:"",id:k.value,contents:ra==null?void 0:ra.options,menuSelect:ra==null?void 0:ra.formMenuSelect,groupSelect:(ba=ra==null?void 0:ra.groupSelect)==null?void 0:ba.split(":"),selectRelateType:"关联绑定列"})}),$.value=Be}},{deep:!0,immediate:!0}),(L,H)=>{const Q=e.resolveComponent("svg-icon"),me=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",hh,[e.createElementVNode("div",vh,[e.createElementVNode("div",mh,[H[2]||(H[2]=e.createElementVNode("div",null,e.toDisplayString("表头"),-1)),e.createVNode(me,{class:"icon-content",onClick:Pe,id:"themeButton"},{icon:e.withCtx(()=>[e.createVNode(Q,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[H[1]||(H[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",yh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(ve,da)=>(e.openBlock(),e.createElementBlock("div",{key:da},[e.createElementVNode("div",gh,[e.createElementVNode("div",bh,e.toDisplayString(ve==null?void 0:ve.label),1),e.createElementVNode("div",kh,[e.createVNode(Q,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ea=>te(ve)},null,8,["onClick"]),e.createVNode(Q,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ea=>oe(ve)},null,8,["onClick"]),e.createVNode(Q,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ea=>Ja(ve)},null,8,["onClick"])])]),ve!=null&&ve.children&&ve.children.length>0?(e.openBlock(),e.createElementBlock("div",xh,[e.createVNode(Ic,{tableChildContents:ve==null?void 0:ve.children,onDeleteChange:ca,onFixChange:Ee},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),128))]),e.createElementVNode("div",wh,[H[4]||(H[4]=e.createElementVNode("div",null,e.toDisplayString("行内按钮"),-1)),e.createVNode(me,{class:"icon-content",id:"themeButton",onClick:la},{icon:e.withCtx(()=>[e.createVNode(Q,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[H[3]||(H[3]=e.createTextVNode(" 新增 "))]),_:1,__:[3]})]),e.createElementVNode("div",_h,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(ve,da)=>(e.openBlock(),e.createElementBlock("div",{key:da},[e.createElementVNode("div",Sh,[e.createElementVNode("div",Eh,e.toDisplayString(ve==null?void 0:ve.label),1),e.createElementVNode("div",Ch,[e.createVNode(Q,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ea=>Se(ve)},null,8,["onClick"]),e.createVNode(Q,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ea=>Le(ve)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",Dh,[H[6]||(H[6]=e.createElementVNode("div",null,e.toDisplayString("表外按钮"),-1)),e.createVNode(me,{class:"icon-content",id:"themeButton",onClick:F},{icon:e.withCtx(()=>[e.createVNode(Q,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[H[5]||(H[5]=e.createTextVNode(" 新增 "))]),_:1,__:[5]})]),e.createElementVNode("div",Bh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(K.value,(ve,da)=>(e.openBlock(),e.createElementBlock("div",{key:da},[e.createElementVNode("div",Nh,[e.createElementVNode("div",Th,e.toDisplayString(ve==null?void 0:ve.label),1),e.createElementVNode("div",Ah,[e.createVNode(Q,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ea=>Fe(ve)},null,8,["onClick"]),e.createVNode(Q,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ea=>ye(ve)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",zh,[H[8]||(H[8]=e.createElementVNode("div",null,e.toDisplayString("表格弹框字段设置"),-1)),e.createVNode(me,{class:"icon-content",id:"themeButton",onClick:J},{icon:e.withCtx(()=>[e.createVNode(Q,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[H[7]||(H[7]=e.createTextVNode(" 新增 "))]),_:1,__:[7]})]),e.createElementVNode("div",Mh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($.value,(ve,da)=>(e.openBlock(),e.createElementBlock("div",{key:da},[e.createElementVNode("div",Ih,[e.createElementVNode("div",Oh,e.toDisplayString(ve==null?void 0:ve.label),1),e.createElementVNode("div",Lh,[e.createVNode(Q,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ea=>fe(ve)},null,8,["onClick"]),e.createVNode(Q,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ea=>ae(ve)},null,8,["onClick"])])])]))),128))]),H[10]||(H[10]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("分页"))],-1)),e.createElementVNode("div",Rh,[e.createElementVNode("div",$h,[H[9]||(H[9]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否分页"),-1)),e.createVNode(ll._sfc_main$1,{modelValue:g.value,"onUpdate:modelValue":H[0]||(H[0]=ve=>g.value=ve)},null,8,["modelValue"])])])]),e.createVNode(wr.ssDialog,{visible:s.value,onBeforeDestroy:Ue,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Vh,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:m.value,key:m.value,isEnableWrap:!0,onChange:Te},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",Fh,[e.createVNode(me,{onClick:Ue,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>H[11]||(H[11]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[11]}),e.createVNode(me,{class:"ok-button button",onClick:oa,id:"themeButton"},{default:e.withCtx(()=>H[12]||(H[12]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible"]),e.createVNode(wr.ssDialog,{visible:f.value,onBeforeDestroy:ta,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Ph,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:I.value,key:I.value,isEnableWrap:!0,onChange:Da},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",jh,[e.createVNode(me,{onClick:ta,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>H[13]||(H[13]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[13]}),e.createVNode(me,{class:"ok-button button",onClick:le,id:"themeButton"},{default:e.withCtx(()=>H[14]||(H[14]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible"]),e.createVNode(wr.ssDialog,{visible:j.value,onBeforeDestroy:U,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Hh,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:E.value,key:E.value,isEnableWrap:!0,onChange:ue},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",Uh,[e.createVNode(me,{onClick:U,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>H[15]||(H[15]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[15]}),e.createVNode(me,{class:"ok-button button",onClick:T,id:"themeButton"},{default:e.withCtx(()=>H[16]||(H[16]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[16]})])]),_:1},8,["visible"]),e.createVNode(wr.ssDialog,{visible:v.value,onBeforeDestroy:de,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",qh,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:b.value,key:b.value,isEnableWrap:!0,onChange:ge,onChangeVisible:se,onBlurChange:Me},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",Wh,[e.createVNode(me,{onClick:de,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>H[17]||(H[17]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[17]}),e.createVNode(me,{class:"ok-button button",onClick:Ce,id:"themeButton"},{default:e.withCtx(()=>H[18]||(H[18]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[18]})])]),_:1},8,["visible"])])}}},Gh=Xl._export_sfc(Kh,[["__scopeId","data-v-7a6b87b5"]]),Yh=A.useModelComp(A.pinia),{pageMapState:Jh}=A.storeToRefs(Yh),Xh=A.useMenuState(A.pinia),{activeMenuPath:Zh}=A.storeToRefs(Xh),Qh=e.ref(24),e2=e.ref(6),a2=e.ref(10),l2=e.ref(70),r2=e.ref(.18),n2=e.ref(45),i2=(a,l,r,n)=>{var t,s,v,p,f,m,g,c,D,M,S,K,I,R,j,E;return{x:((s=(t=a==null?void 0:a.value)==null?void 0:t.tableData)==null?void 0:s.x)||l%2*12,y:((p=(v=a==null?void 0:a.value)==null?void 0:v.tableData)==null?void 0:p.y)||l,w:((m=(f=a==null?void 0:a.value)==null?void 0:f.tableData)==null?void 0:m.w)||Qh.value,h:((c=(g=a==null?void 0:a.value)==null?void 0:g.tableData)==null?void 0:c.h)||r,minW:((M=(D=a==null?void 0:a.value)==null?void 0:D.tableData)==null?void 0:M.minW)||e2.value,minH:((K=(S=a==null?void 0:a.value)==null?void 0:S.tableData)==null?void 0:K.minH)||r2.value,maxH:((R=(I=a==null?void 0:a.value)==null?void 0:I.tableData)==null?void 0:R.maxH)||n2.value,i:((E=(j=a==null?void 0:a.value)==null?void 0:j.tableData)==null?void 0:E.i)||l,id:(a==null?void 0:a.id)||l+"",component:n}},o2=(a,l)=>{var n,t,s,v,p,f,m,g;let r=1;if(a!=null&&a.compData&&Array.isArray(a==null?void 0:a.compData))if(((n=a==null?void 0:a.comp)==null?void 0:n.toUpperCase())==="TABLE"){if(((v=(s=(t=a==null?void 0:a.compData)==null?void 0:t.find(D=>(D==null?void 0:D.key)==="tableContents"))==null?void 0:s.contents)==null?void 0:v.length)===0)return 2}else((p=a==null?void 0:a.comp)==null?void 0:p.toUpperCase())==="FORM"&&(r=((g=(m=(f=a==null?void 0:a.compData)==null?void 0:f.find(D=>(D==null?void 0:D.key)==="formContent"))==null?void 0:m.contents)==null?void 0:g.length)/5);return r*2},Oc=(a,l,r)=>{var v,p;const n=(p=(v=Jh.value)==null?void 0:v[Zh.value])==null?void 0:p.filter(f=>{var m;return((m=f==null?void 0:f.key)==null?void 0:m.type)==="gridLayout"}),t=n==null?void 0:n.find(f=>{var m,g,c;return((c=(g=(m=f==null?void 0:f.value)==null?void 0:m.tableData)==null?void 0:g.component)==null?void 0:c.id)===a.id}),s=o2(a);return a!=null&&a.children&&(a==null?void 0:a.children.length)>0&&(a.children=a.children.map((f,m)=>Oc(f,m))),{...i2(t,l,s,a)}},t2=(a,l)=>{if((a==null?void 0:a.length)===0)return[];const r=A.cloneDeep(a);return Array.isArray(a)?r==null?void 0:r.map((n,t)=>Oc(n,t)):[]},s2=a=>({TABLE:{overall:[{label:"栅格布局",prop:"isGridLayout",type:"switch",value:!1,disabled:!1,activeText:"启用",inactiveText:"默认"},{label:"界面布局",prop:"layout",type:"radio",value:"vertical",options:[{label:"垂直",value:"vertical"},{label:"水平",value:"horizontal"}]},{label:"流程式布局",prop:"isStepLayout",type:"radio",value:!1,options:[{label:"启用",value:!0,disabled:!1},{label:"禁用",value:!1,disabled:!1}]}],alone:[{label:"默认显示序号",prop:"showIndex",type:"radio",value:!1,options:[{label:"是",value:!0},{label:"否",value:!1}]},{label:"浏览视图配置",prop:"viewport",type:"checkbox",value:["read"],options:[{label:"只读视图",value:"read"},{label:"编辑视图",value:"edit"}]},{label:"是否选择迁移",prop:"allowMove",type:"radio",value:!1,options:[{label:"是",value:!0},{label:"否",value:!1}]}]}}),c2=(a,l)=>a==null?void 0:a.map(r=>{for(const n in l)if(n===(r==null?void 0:r.prop))return{...r,value:l[n]};return r}),u2=e.defineComponent({__name:"index",props:{compType:String,comp:Object,target:{type:String,default:"alone"},optionItems:Array},emits:["change"],setup(a,{emit:l}){const r=a,n=l,t=e.ref([]);e.watch(()=>r.compType,p=>{var g;const f=s2(r==null?void 0:r.optionItems),m=p?(g=f[p==null?void 0:p.toUpperCase()])==null?void 0:g[r==null?void 0:r.target]:[];t.value=m==null?void 0:m.map(c=>{for(const[D,M]of Object.entries((r==null?void 0:r.comp)||{}))if((c==null?void 0:c.prop)===D)return{...c,value:M};return c})},{immediate:!0});const s=p=>ll.getComponent(p),v=p=>{var f,m;(p==null?void 0:p.prop)==="layout"&&(p==null?void 0:p.value)==="horizontal"?t.value=(f=t.value)==null?void 0:f.map(g=>{var c;return(g==null?void 0:g.prop)==="isStepLayout"?{...g,options:(c=g==null?void 0:g.options)==null?void 0:c.map(D=>({...D,disabled:!0}))}:(g==null?void 0:g.prop)==="isGridLayout"?{...g,disabled:!0}:g}):t.value=(m=t.value)==null?void 0:m.map(g=>{var c;return(g==null?void 0:g.prop)==="isStepLayout"?{...g,options:(c=g==null?void 0:g.options)==null?void 0:c.map(D=>({...D,disabled:!1}))}:(g==null?void 0:g.prop)==="isGridLayout"?{...g,disabled:!1}:g}),n("change",{target:r==null?void 0:r.target,styleConfigs:t.value,prop:p==null?void 0:p.prop})};return(p,f)=>{const m=e.resolveComponent("el-col"),g=e.resolveComponent("el-row");return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,c=>(e.openBlock(),e.createBlock(g,{class:"style-row",key:c==null?void 0:c.prop},{default:e.withCtx(()=>[e.createVNode(m,{span:6,class:"style-row-title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c==null?void 0:c.label)+":",1)]),_:2},1024),e.createVNode(m,{span:18,style:{display:"flex"}},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s(c.type)),{modelValue:c.value,"onUpdate:modelValue":D=>c.value=D,content:c==null?void 0:c.options,optionUrl:c==null?void 0:c.optionUrl,disabled:c==null?void 0:c.disabled,activeText:c==null?void 0:c.activeText,inactiveText:c==null?void 0:c.inactiveText,onChange:D=>v(c)},null,40,["modelValue","onUpdate:modelValue","content","optionUrl","disabled","activeText","inactiveText","onChange"]))]),_:2},1024)]),_:2},1024))),128)}}}),d2=Xl._export_sfc(u2,[["__scopeId","data-v-6c233914"]]),p2=e.defineComponent({__name:"index",props:{compType:String,activeTabName:String,comp:Object,extendItem:{type:Object,default:{}},target:{type:String,default:"alone"},relatedData:Array},emits:["change","onButtonClick"],setup(a,{emit:l}){const r=a,n=l,t=[{required:!0,message:"输入不能为空",trigger:"blur"}],s=e.ref([]),v=R=>R==null?void 0:R.reduce((j,E)=>(j[E==null?void 0:E.prop]=E==null?void 0:E.rule,j),{}),p=e.computed(()=>({formRules:v(s.value),buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"保存",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]})),f=e.ref([]),m=e.ref(""),g=(R,j,E)=>{var b;let x=[];(r==null?void 0:r.activeTabName)==="任务配置"?(x=[{label:"任务名称",prop:"任务名称",key:"任务名称",value:"",width:1,isFormColHidden:!1},{label:"任务关键词",prop:"任务关键词",key:"任务关键词",type:"cascader",value:[],width:1,isFormColHidden:!1,config:{checkOnClickNode:!0,showPrefix:!1},contents:[{label:"列名称",value:"列名称",children:R},{label:"按钮名称",value:"按钮名称",children:j}]},{label:"执行任务",prop:"执行任务",key:"执行任务",type:"cascader",value:[],width:1,isFormColHidden:!1,config:{checkOnClickNode:!0,showPrefix:!1},contents:[{label:"进度设置",value:"进度设置",children:[{label:"计时",value:"计时",children:[{label:"倒计时",value:"倒计时"},{label:"进行时",value:"进行时"}]},{label:"进度条",value:"进度条"}]},{label:"统计",value:"统计",children:[{label:"统计规则",value:"统计规则",children:[{label:"求和",value:"求和"},{label:"自定义",value:"自定义"}]}]}]},{label:"执行动作",prop:"执行动作",key:"执行动作",type:"select",value:[],width:1,isFormColHidden:!1,contents:[{label:"点击时",value:"点击时"},{label:"页面加载时",value:"页面加载时"}]},{label:"执行交互",prop:"执行交互",key:"执行交互",type:"cascader",value:[],width:1,isFormColHidden:!1,config:{checkOnClickNode:!0,showPrefix:!1},contents:[{label:"界面显示",value:"界面显示",children:[{label:"主页",value:"主页"},{label:"详情页",value:"详情页"}]},{label:"弹窗提示",value:"弹窗提示"},{label:"后台提交",value:"后台提交"}]},{label:"任务状态",prop:"任务状态",key:"任务状态",type:"radio",value:"启动",width:1,isFormColHidden:!1,contents:[{label:"启动",value:"启动"},{label:"暂停",value:"暂停"}]}],s.value=[{prop:"任务名称",rule:t},{prop:"任务关键词",rule:t},{prop:"执行任务",rule:t},{prop:"执行动作",rule:t},{prop:"执行交互",rule:t}]):(r==null?void 0:r.activeTabName)==="任务关联"&&(x=[{prop:"关联名称",label:"关联名称",key:"关联名称",type:"input",value:"",isTableColHidden:!1,isFormColHidden:!1},{label:"关联形式",prop:"关联形式",key:"关联形式",type:"select",value:"流程式",width:1,isFormColHidden:!1,contents:[{label:"流程式",value:"流程式"}]},{label:"关联任务集合",prop:"关联任务集合",key:"关联任务集合",type:"tag",value:[],width:1,isFormColHidden:!1,contents:(b=r==null?void 0:r.relatedData)==null?void 0:b.map(w=>({label:w==null?void 0:w.任务名称,value:w==null?void 0:w.任务名称}))},{prop:"关联状态",label:"关联状态",key:"关联状态",type:"radio",value:"启动",isTableColHidden:!1,isFormColHidden:!1,contents:[{label:"启动",value:"启动"},{label:"暂停",value:"暂停"}]}],s.value=[{prop:"关联名称",rule:t},{prop:"关联状态",rule:t},{prop:"关联形式",rule:t},{prop:"关联任务集合",rule:t}]);let k;return E&&(E==null?void 0:E.length)>0?k=[...x,...c(R,j,E)]:k=x,k},c=(R,j,E)=>{const x=[{label:"进度关键词",prop:"进度关键词",key:"进度关键词",type:"input",value:"",width:2,isFormColHidden:!1,contents:[]},{label:"统计算法源",prop:"统计算法源",key:"统计算法源",type:"input",value:"",width:2,isFormColHidden:!1,contents:[]},{label:"统计是否获取错误集",prop:"统计是否获取错误集",key:"统计是否获取错误集",type:"radio",value:!1,width:2,isFormColHidden:!1,contents:[{label:"是",value:!0},{label:"否",value:!1}]}];return E?x==null?void 0:x.filter(k=>E==null?void 0:E.includes(k==null?void 0:k.prop)):x},D=(R,j)=>{var w,$,F,J,se,ge,Me,V,fe;const E=((se=(J=(F=($=(w=r==null?void 0:r.comp)==null?void 0:w.compData)==null?void 0:$.find(ae=>(ae==null?void 0:ae.key)==="header"))==null?void 0:F.contents)==null?void 0:J.filter(ae=>(ae==null?void 0:ae.label)!=="操作"))==null?void 0:se.map(ae=>({value:ae==null?void 0:ae.prop,label:ae.label})))||[],x=/button/i,k=((fe=(V=(Me=(ge=r==null?void 0:r.comp)==null?void 0:ge.compData)==null?void 0:Me.filter(ae=>x.test(ae==null?void 0:ae.key)))==null?void 0:V.flatMap(ae=>ae==null?void 0:ae.contents))==null?void 0:fe.map(ae=>({value:ae==null?void 0:ae.label,label:ae.label})))||[],b=g(E,k,R);f.value=j?c2(b,j):b,R&&(R==null?void 0:R.length)>0&&s.value.push(...R==null?void 0:R.map(ae=>({prop:ae,rule:t})))};e.onMounted(()=>{D(null,r==null?void 0:r.extendItem)});const M=R=>{const j=R==null?void 0:R[m.value];if(m.value==="执行任务"){if(!(j!=null&&j.join("/")))return;const E=j==null?void 0:j.join("/");D(E==="统计/统计规则/自定义"?["统计算法源","统计是否获取错误集"]:E==="进度设置/进度条"?["进度关键词"]:null,R)}},S=R=>{n("change",{target:r==null?void 0:r.target,extendConfigs:R})},K=(R,j)=>{m.value=j==null?void 0:j.changeProp,M(R)},I=R=>{n("onButtonClick",R)};return(R,j)=>(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:f.value,key:f.value,isStartJustify:!1,isEnableWrap:!1,formRules:p.value.formRules,buttonValue:p.value.buttonValue,onChange:S,onBlurChange:K,onOnButtonClick:I},null,8,["rowContents","formRules","buttonValue"]))}}),f2=Xl._export_sfc(p2,[["__scopeId","data-v-7c660c1f"]]),h2={};function v2(a,l){return null}const m2=Xl._export_sfc(h2,[["render",v2]]),y2={class:"form-operate-content"},g2={class:"form-operate-item"},b2={class:"operate-title"},k2={class:"operate-content"},x2={class:"fix-content"},w2={class:"fix-button"},_2={class:"operate-title"},S2={class:"operate-content"},E2={class:"fix-content"},C2={class:"fix-button"},D2={style:{display:"flex","justify-content":"space-between"}},B2={class:"form-content"},N2={class:"dialog-footer"},T2={class:"form-content"},A2={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const r=a,n=l,t=e.ref(!1),s=e.ref([]),v=e.ref([]),p=e.ref(!1),f=e.ref([]),m=e.ref([]),g=e.ref(""),c=e.ref(!1),D=e.ref(0),M=e.ref([]),S=e.ref([]),K=(V,fe)=>{if((fe==null?void 0:fe.type)=="Select"&&(V==null?void 0:V.key)==="selectRelateType"){const ae=fe==null?void 0:fe.optionUrl;return(ae==null?void 0:ae.selectRelateType)||fe[V.key]}if((fe==null?void 0:fe.type)=="Select"&&(V==null?void 0:V.key)==="menuSelect"){const ae=fe==null?void 0:fe.optionUrl;return(ae==null?void 0:ae.menuSelect)||fe[V.key]}if((fe==null?void 0:fe.type)=="Select"&&(V==null?void 0:V.key)==="groupSelect"){const ae=fe==null?void 0:fe.optionUrl;return(ae==null?void 0:ae.groupSelect)||fe[V.key]}if((fe==null?void 0:fe.type)=="Select"&&(V==null?void 0:V.key)==="originalContent")return(fe==null?void 0:fe.value)||fe[V.key];if((fe==null?void 0:fe.type)=="Select"&&(V==null?void 0:V.key)==="multiple"){const ae=fe[V.key];return Js(ae)?ae:V.default}return(V==null?void 0:V.label)==="类型"&&fe[V.key]===""?"Input":(V==null?void 0:V.key)==="isFormColHidden"&&!fe[V.key]?!1:fe[V.key]},I=async V=>{var de,Ce,Fe,ye,T,ue;t.value=!0;let fe=[];const ae=await((Fe=(Ce=(de=he.FormContent)==null?void 0:de.find(U=>(U==null?void 0:U.key)===((V==null?void 0:V.type)===""?"Input":V==null?void 0:V.type)))==null?void 0:Ce.value)==null?void 0:Fe.value)??((T=(ye=he.FormContent)==null?void 0:ye.find(U=>(U==null?void 0:U.key)===((V==null?void 0:V.type)===""?"Input":V==null?void 0:V.type)))==null?void 0:T.value);if(ae==null||ae.forEach(U=>{D.value++,fe.push({label:U==null?void 0:U.label,name:U==null?void 0:U.label,type:U.type,prop:U==null?void 0:U.prop,value:K(U,V),id:D.value,contents:U==null?void 0:U.options,width:(V==null?void 0:V.width)??1})}),V!=null&&V.menuSelect&&((ue=V==null?void 0:V.menuSelect)==null?void 0:ue.length)>0){const U=await he.menuToContentType(V==null?void 0:V.menuSelect);fe=fe==null?void 0:fe.map(Se=>((Se==null?void 0:Se.name)==="组信息选项"&&(Se.contents=U),Se))}g.value=V==null?void 0:V.id,s.value=await he.selectToBase(he.formToOptionsContents(fe)),v.value=await he.selectToBase(he.formToOptionsContents(fe))},R=V=>{var ae;p.value=!0;let fe=[];(ae=he.FormButton)==null||ae.forEach(de=>{D.value++,fe.push({label:de==null?void 0:de.label,name:de==null?void 0:de.label,type:de.type,value:(de==null?void 0:de.label)==="类型"&&V[de.key]===""?"normal":V[de.key],id:D.value,contents:de==null?void 0:de.options})}),M.value=fe,S.value=fe,g.value=V==null?void 0:V.id};e.watch(()=>c.value,()=>{var fe,ae;let V=A.cloneDeep(r.originalItemContents);(fe=A.cloneDeep(r.originalItemContents))!=null&&fe.find(de=>(de==null?void 0:de.key)==="enableWrap")?V=(ae=A.cloneDeep(r.originalItemContents))==null?void 0:ae.map(de=>((de==null?void 0:de.key)==="enableWrap"&&(de.contents=!c.value),de)):V.push({key:"enableWrap",contents:!c.value}),n("change",V)},{deep:!0});const j=()=>{var ae,de,Ce,Fe,ye;M.value=S.value;let V={};if(g.value!==""?V.id=g.value:(D.value++,V.id="id"+D.value),(ae=M.value)==null||ae.forEach(T=>{var U;const ue=(U=he.FormButton)==null?void 0:U.find(Se=>(Se==null?void 0:Se.label)===(T==null?void 0:T.label));ue&&(V[ue.key]=T.value)}),(de=f.value)!=null&&de.find(T=>T.id===V.id))f.value=(Ce=f.value)==null?void 0:Ce.map(T=>(T.id===V.id&&(T=V),T));else{let T=A.cloneDeep(f.value);f.value||(f.value=[]),T.push(V),f.value=T}p.value=!1,g.value="";let fe=A.cloneDeep(r.originalItemContents);(Fe=A.cloneDeep(r.originalItemContents))!=null&&Fe.find(T=>(T==null?void 0:T.key)==="formButton")?fe=(ye=A.cloneDeep(r.originalItemContents))==null?void 0:ye.map(T=>((T==null?void 0:T.key)==="formButton"&&(T.contents=f.value),T)):fe.push({key:"formButton",contents:f.value}),n("change",fe)},E=V=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var fe,ae;m.value=(fe=A.cloneDeep(m.value))==null?void 0:fe.filter(de=>(de==null?void 0:de.id)!==(V==null?void 0:V.id)),n("change",(ae=A.cloneDeep(r.originalItemContents))==null?void 0:ae.map(de=>((de==null?void 0:de.key)==="formContent"&&(de.contents=m.value),de))),qa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},x=V=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var fe,ae;f.value=(fe=A.cloneDeep(f.value))==null?void 0:fe.filter(de=>(de==null?void 0:de.id)!==(V==null?void 0:V.id)),n("change",(ae=A.cloneDeep(r.originalItemContents))==null?void 0:ae.map(de=>((de==null?void 0:de.key)==="formButton"&&(de.contents=f.value),de))),qa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},k=()=>{var fe;p.value=!0;let V=[];(fe=he.FormButton)==null||fe.forEach(ae=>{D.value++,V.push({label:ae==null?void 0:ae.label,name:ae==null?void 0:ae.label,type:ae.type,value:(ae==null?void 0:ae.label)==="类型"?"normal":"",id:D.value,contents:ae==null?void 0:ae.options})}),M.value=V,S.value=V},b=()=>{var fe,ae,de;t.value=!0;let V=[];(de=(ae=(fe=he.FormContent)==null?void 0:fe.find(Ce=>(Ce==null?void 0:Ce.key)==="Input"))==null?void 0:ae.value)==null||de.forEach(Ce=>{D.value++,V.push({label:Ce==null?void 0:Ce.label,name:Ce==null?void 0:Ce.label,type:Ce.type,value:(Ce==null?void 0:Ce.label)==="类型"?"Input":"",id:D.value,contents:Ce==null?void 0:Ce.options})}),s.value=V,v.value=V},w=V=>{let fe=A.cloneDeep(S.value);fe=fe==null?void 0:fe.map(ae=>(ae.value=V==null?void 0:V[ae.name],ae)),S.value=fe},$=V=>{const fe=V.find(Ce=>(Ce==null?void 0:Ce.name)==="类型");if((fe==null?void 0:fe.value)!="Select")return;const ae=V.find(Ce=>(Ce==null?void 0:Ce.name)==="多选"),de=V.find(Ce=>(Ce==null?void 0:Ce.name)==="初始值");ae!=null&&ae.value&&Eo.isString(de.value)&&(de.value=[de.value]),!(ae!=null&&ae.value)&&!Eo.isString(de.value)&&(de.value="")},F=async V=>{var fe,ae,de,Ce,Fe,ye,T,ue,U,Se,Le,Pe;if((V==null?void 0:V.类型)!==((ae=(fe=v.value)==null?void 0:fe.find(la=>(la==null?void 0:la.label)==="类型"))==null?void 0:ae.value)){let la=[];const Da=await((Fe=(Ce=(de=he.FormContent)==null?void 0:de.find(le=>(le==null?void 0:le.key)===((V==null?void 0:V.类型)===""?"Input":V==null?void 0:V.类型)))==null?void 0:Ce.value)==null?void 0:Fe.value)?await((Se=(U=(ue=he.FormContent)==null?void 0:ue.find(le=>(le==null?void 0:le.key)===((V==null?void 0:V.类型)===""?"Input":V==null?void 0:V.类型)))==null?void 0:U.value)==null?void 0:Se.value):(T=(ye=he.FormContent)==null?void 0:ye.find(le=>(le==null?void 0:le.key)===((V==null?void 0:V.类型)===""?"Input":V==null?void 0:V.类型)))==null?void 0:T.value;if(Da==null||Da.forEach(le=>{var te,ca;D.value++;const ta=Ou(le==null?void 0:le.default)?(V==null?void 0:V[le.label])??le.value??"":le==null?void 0:le.default;la.push({label:le==null?void 0:le.label,name:le==null?void 0:le.label,type:le.type,value:ta,prop:le==null?void 0:le.prop,id:D.value,contents:le==null?void 0:le.options,width:((ca=(te=v.value)==null?void 0:te[0])==null?void 0:ca.width)??1})}),V!=null&&V.菜单选项&&((Le=V==null?void 0:V.菜单选项)==null?void 0:Le.length)>0){const le=await he.menuToContentType(V==null?void 0:V.菜单选项);la=la==null?void 0:la.map(ta=>((ta==null?void 0:ta.name)==="组信息选项"&&(ta.contents=le),ta))}$(la),v.value=await he.selectToBase(A.cloneDeep(la)),s.value=await he.selectToBase(A.cloneDeep(la))}else{let la=A.cloneDeep(v.value);if(la=la==null?void 0:la.map(Da=>(Da.value=V==null?void 0:V[Da.name],Da)),V!=null&&V.菜单选项&&((Pe=V==null?void 0:V.菜单选项)==null?void 0:Pe.length)>0){const Da=await he.menuToContentType(V==null?void 0:V.菜单选项);la=la==null?void 0:la.map(le=>((le==null?void 0:le.name)==="组信息选项"&&(le.contents=Da),le))}la=he.formToOptionsContents(la),$(la),v.value=await he.selectToBase(A.cloneDeep(la))}},J=V=>{V||(s.value=v.value)},se=async V=>{await F(V),s.value=v.value},ge=Nl.debounce(async()=>{var de,Ce,Fe,ye,T,ue,U,Se,Le,Pe,la,Da;s.value=v.value;let V={};V.width=((Ce=(de=s.value)==null?void 0:de[0])==null?void 0:Ce.width)??1,g.value!==""?V.id=g.value:(D.value++,V.id="id"+D.value);let fe=await((T=(ye=(Fe=he.FormContent)==null?void 0:Fe.find(le=>{var ta,te;return(le==null?void 0:le.key)===(((te=(ta=s.value)==null?void 0:ta.find(ca=>(ca==null?void 0:ca.label)==="类型"))==null?void 0:te.value)??"label")}))==null?void 0:ye.value)==null?void 0:T.value)??((U=(ue=he.FormContent)==null?void 0:ue.find(le=>{var ta,te;return(le==null?void 0:le.key)===(((te=(ta=s.value)==null?void 0:ta.find(ca=>(ca==null?void 0:ca.label)==="类型"))==null?void 0:te.value)??"label")}))==null?void 0:U.value);if((Se=s.value)==null||Se.forEach(le=>{const ta=fe==null?void 0:fe.find(te=>(te==null?void 0:te.label)===(le==null?void 0:le.label));ta&&(V[ta.key]=le.value)}),V.width=V.width?V.width:1,V.key=V==null?void 0:V.label,V.isFormColHidden=V==null?void 0:V.isFormColHidden,(Le=m.value)!=null&&Le.find(le=>le.id===V.id))m.value=(Pe=m.value)==null?void 0:Pe.map(le=>(le.id===V.id&&(le=V),le));else{let le=A.cloneDeep(m.value);le.push(V),m.value=le}m.value=m.value.map(({id:le,...ta})=>ta),t.value=!1,g.value="";let ae=A.cloneDeep(r.originalItemContents);(la=A.cloneDeep(r.originalItemContents))!=null&&la.find(le=>(le==null?void 0:le.key)==="formContent")?ae=(Da=A.cloneDeep(r.originalItemContents))==null?void 0:Da.map(le=>((le==null?void 0:le.key)==="formContent"&&(le.contents=m.value),le)):ae.push({key:"formContent",contents:m.value}),n("change",ae)},300),Me=()=>{t.value=!1,p.value=!1,g.value="",v.value=[],S.value=[]};return e.watch(()=>r.originalItemContents,()=>{var fe,ae,de,Ce,Fe,ye;if(!r.originalItemContents||r.originalItemContents.length===0)return;const V=A.cloneDeep(r.originalItemContents);m.value=((fe=V==null?void 0:V.find(T=>(T==null?void 0:T.key)==="formContent"))==null?void 0:fe.contents)??[],f.value=((ae=V==null?void 0:V.find(T=>(T==null?void 0:T.key)==="formButton"))==null?void 0:ae.contents)??[],c.value=(de=V==null?void 0:V.find(T=>(T==null?void 0:T.key)==="enableWrap"))!=null&&de.contents?!((Ce=V==null?void 0:V.find(T=>(T==null?void 0:T.key)==="enableWrap"))!=null&&Ce.contents):!0,m.value=(Fe=A.cloneDeep(m.value))==null?void 0:Fe.map((T,ue)=>{var Se;let U=T;return U.id=(T==null?void 0:T.id)??ue,T!=null&&T.label||(T.label=(T==null?void 0:T.key)??(T==null?void 0:T.label)??""),T!=null&&T.type||(T.type=(T==null?void 0:T.type)??""),T.contents=((Se=T==null?void 0:T.options)==null?void 0:Se.length)===0?(T==null?void 0:T.contents)??"":T==null?void 0:T.options,U}),m.value=he.formToOptionsContents(m.value),f.value=(ye=f.value)==null?void 0:ye.map((T,ue)=>T={label:(T==null?void 0:T.label)??"",type:(T==null?void 0:T.type)??"",background:(T==null?void 0:T.background)??"var(--ssComponent-primary-color)",id:ue})},{deep:!0,immediate:!0}),(V,fe)=>{const ae=e.resolveComponent("svg-icon"),de=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",y2,[e.createElementVNode("div",g2,[e.createElementVNode("div",b2,[fe[2]||(fe[2]=e.createElementVNode("div",null,e.toDisplayString("表单内容"),-1)),e.createVNode(de,{class:"icon-content",id:"themeButton",onClick:b},{icon:e.withCtx(()=>[e.createVNode(ae,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[fe[1]||(fe[1]=e.createElementVNode("div",null,e.toDisplayString("新增"),-1))]),_:1,__:[1]})]),e.createElementVNode("div",k2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(Ce,Fe)=>(e.openBlock(),e.createElementBlock("div",{key:Fe},[e.createElementVNode("div",x2,[e.createElementVNode("div",null,e.toDisplayString(Ce.label),1),e.createElementVNode("div",w2,[e.createVNode(ae,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ye=>I(Ce)},null,8,["onClick"]),e.createVNode(ae,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ye=>E(Ce)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",_2,[fe[4]||(fe[4]=e.createElementVNode("div",null,e.toDisplayString("表单按钮"),-1)),e.createVNode(de,{class:"icon-content",id:"themeButton",onClick:k},{icon:e.withCtx(()=>[e.createVNode(ae,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[fe[3]||(fe[3]=e.createTextVNode(" 新增 "))]),_:1,__:[3]})]),e.createElementVNode("div",S2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(Ce,Fe)=>(e.openBlock(),e.createElementBlock("div",{key:Fe},[e.createElementVNode("div",E2,[e.createElementVNode("div",null,e.toDisplayString(Ce.label),1),e.createElementVNode("div",C2,[e.createVNode(ae,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ye=>R(Ce)},null,8,["onClick"]),e.createVNode(ae,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ye=>x(Ce)},null,8,["onClick"])])])]))),128))]),fe[6]||(fe[6]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("表单布局"))],-1)),e.createElementVNode("div",D2,[fe[5]||(fe[5]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否自动撑宽"),-1)),e.createVNode(ll._sfc_main$1,{modelValue:c.value,"onUpdate:modelValue":fe[0]||(fe[0]=Ce=>c.value=Ce)},null,8,["modelValue"])])]),e.createVNode(wr.ssDialog,{visible:t.value,onBeforeDestroy:Me,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",B2,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:s.value,key:s.value,isEnableWrap:!0,onChange:F,onChangeVisible:J,onBlurChange:se},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",N2,[e.createVNode(de,{onClick:Me,class:"cancel-button button",id:"themeBorderButton"},{default:e.withCtx(()=>fe[7]||(fe[7]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[7]}),e.createVNode(de,{class:"ok-button button",onClick:e.unref(ge),id:"themeButton"},{default:e.withCtx(()=>fe[8]||(fe[8]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[8]},8,["onClick"])])]),_:1},8,["visible"]),e.createVNode(wr.ssDialog,{visible:p.value,onBeforeDestroy:Me,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",T2,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:M.value,key:M.value,isEnableWrap:!0,onChange:w},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:Me,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:j},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},ks=Xl._export_sfc(A2,[["__scopeId","data-v-20850524"]]),z2={class:"step-module content"},M2={class:"module-data"},I2={class:"step-module layout"},O2={class:"form-content"},L2=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const r=a,n=l,t=e.ref([{label:"方向:",prop:"direction",type:"RADIO",contents:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}],value:"horizontal"},{label:"是否居中:",prop:"alignCenter",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0},{label:"应用简洁风格",prop:"simple",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1}]),s=e.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"标题",prop:"title",type:"input",value:""},{label:"描述",prop:"description",type:"input",value:""}]),v=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),p=e.reactive({visible:!1,width:"40%",title:"步骤条"}),f=e.ref("create"),m=e.ref({}),g=e.ref([]),c=I=>{var R;m.value=I,n("change",(R=S())==null?void 0:R.compData)},D=(I,R)=>{var j,E;switch(I){case"create":(j=s.value)==null||j.forEach(x=>{x.value=""}),f.value="create",p.visible=!0;break;case"update":(E=s.value)==null||E.forEach(x=>{x.value=R[x==null?void 0:x.prop]}),f.value="update",p.visible=!0;break;case"delete":g.value.splice(R,1),f.value="delete";break}},M=I=>{var R,j,E;if((I==null?void 0:I.buttonName)==="确认"){const x=A.cloneDeep(I==null?void 0:I.content);switch(Object.keys(x).forEach(k=>{x[k]===""&&delete x[k]}),f.value){case"create":g.value.push({...x,index:((R=g.value)==null?void 0:R.length)+1});break;case"update":g.value=(j=g.value)==null?void 0:j.map(k=>k.index===(x==null?void 0:x.index)?{...k,title:x==null?void 0:x.title,description:x==null?void 0:x.description}:k);break}n("change",(E=S())==null?void 0:E.compData),p.visible=!1}else p.visible=!1},S=()=>({comp:"Step",compData:[{key:"stepList",contents:g.value},{key:"stepConfig",contents:m.value}]}),K=()=>{p.visible=!1};return e.watch(()=>r==null?void 0:r.itemContents,I=>{var R,j;I&&(m.value=((R=I==null?void 0:I.find(E=>E.key==="stepConfig"))==null?void 0:R.contents)??{},g.value=((j=I==null?void 0:I.find(E=>E.key==="stepList"))==null?void 0:j.contents)??[])},{immediate:!0}),(I,R)=>{const j=e.resolveComponent("svg-icon"),E=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",z2,[R[2]||(R[2]=e.createElementVNode("h4",{class:"module-title"},"内容",-1)),e.createVNode(E,{class:"module-icon",id:"themeButton",onClick:R[0]||(R[0]=x=>D("create"))},{icon:e.withCtx(()=>[e.createVNode(j,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[R[1]||(R[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",M2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(x,k)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:k},[e.createElementVNode("span",null,e.toDisplayString(x==null?void 0:x.title),1),e.createElementVNode("div",null,[e.createVNode(E,{type:"primary",size:"small",onClick:b=>D("update",{...x,index:k+1})},{default:e.withCtx(()=>R[3]||(R[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(E,{type:"danger",size:"small",onClick:b=>D("delete",k)},{default:e.withCtx(()=>R[4]||(R[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",I2,[R[5]||(R[5]=e.createElementVNode("div",{class:"module-title"},"布局",-1)),e.createVNode(ll.ssForm,{rowContents:t.value,onChange:c},null,8,["rowContents"])])]),e.createVNode(wr.ssDialog,{visible:p.visible,title:p.title,onBeforeDestroy:K,width:p.width},{default:e.withCtx(()=>[e.createElementVNode("div",O2,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:s.value,key:s.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:v.value,onOnButtonClick:M},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),R2=Xl._export_sfc(L2,[["__scopeId","data-v-7dbd17f2"]]),$2={class:"step-module content"},V2={class:"module-data"},F2={class:"step-module layout"},P2={class:"form-content"},j2=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const r=a,n=l,t=e.ref("create"),s=e.ref({}),v=e.ref([]),p=e.ref([{label:"方向:",prop:"placement",type:"radio",contents:[{label:"底部",value:"bottom"},{label:"顶部",value:"top"}],value:"bottom"},{label:"节点类型:",prop:"type",type:"select",contents:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}],value:"primary"},{label:"颜色:",prop:"color",type:"color",value:""},{label:"尺寸:",prop:"size",type:"radio",contents:[{label:"normal",value:"normal"},{label:"large",value:"large"}],value:"normal"},{label:"是否空心",prop:"isHollow",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0},{label:"是否居中",prop:"isCenter",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0}]),f=e.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"内容",prop:"content",type:"input",value:""},{label:"时间戳",prop:"timestamp",type:"datetime",value:""}]),m=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),g=e.reactive({visible:!1,width:"40%",title:"时间线"}),c=I=>{var R;s.value=I,n("change",(R=S())==null?void 0:R.compData)},D=(I,R)=>{var j,E;switch(I){case"create":(j=f.value)==null||j.forEach(x=>{x.value=""}),t.value="create",g.visible=!0;break;case"update":(E=f.value)==null||E.forEach(x=>{x.value=R[x==null?void 0:x.prop]}),t.value="update",g.visible=!0;break;case"delete":v.value.splice(R,1),t.value="delete";break}},M=I=>{var R,j,E,x;if((I==null?void 0:I.buttonName)==="确认"){const k=A.cloneDeep(I==null?void 0:I.content);switch(Object.keys(k).forEach(b=>{k[b]===""&&delete k[b]}),t.value){case"create":(j=v.value)==null||j.push({...k,index:((R=v.value)==null?void 0:R.length)+1});break;case"update":v.value=(E=v.value)==null?void 0:E.map(b=>b.index===(k==null?void 0:k.index)?{...b,content:k==null?void 0:k.content,timestamp:k==null?void 0:k.timestamp}:b);break}n("change",(x=S())==null?void 0:x.compData),g.visible=!1}else g.visible=!1},S=()=>({comp:"TimeLine",compData:[{key:"timeLineList",contents:v.value},{key:"timeLineConfig",contents:s.value}]}),K=()=>{g.visible=!1};return e.watch(()=>r==null?void 0:r.itemContents,I=>{var R,j;I&&(s.value=((R=I==null?void 0:I.find(E=>E.key==="timeLineConfig"))==null?void 0:R.contents)??{},v.value=((j=I==null?void 0:I.find(E=>E.key==="timeLineList"))==null?void 0:j.contents)??[])},{immediate:!0}),(I,R)=>{const j=e.resolveComponent("svg-icon"),E=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",$2,[R[2]||(R[2]=e.createElementVNode("h4",{class:"module-title"},"内容",-1)),e.createVNode(E,{class:"module-icon",id:"themeButton",onClick:R[0]||(R[0]=x=>D("create"))},{icon:e.withCtx(()=>[e.createVNode(j,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[R[1]||(R[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",V2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(x,k)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:k},[e.createElementVNode("span",null,e.toDisplayString(x==null?void 0:x.content),1),e.createElementVNode("div",null,[e.createVNode(E,{type:"primary",size:"small",onClick:b=>D("update",{...x,index:k+1})},{default:e.withCtx(()=>R[3]||(R[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(E,{type:"danger",size:"small",onClick:b=>D("delete",k)},{default:e.withCtx(()=>R[4]||(R[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",F2,[R[5]||(R[5]=e.createElementVNode("div",{class:"module-title"},"布局",-1)),e.createVNode(ll.ssForm,{rowContents:p.value,onChange:c},null,8,["rowContents"])])]),e.createVNode(wr.ssDialog,{visible:g.visible,title:g.title,onBeforeDestroy:K,width:g.width},{default:e.withCtx(()=>[e.createElementVNode("div",P2,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:f.value,key:f.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:m.value,onOnButtonClick:M},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),H2=Xl._export_sfc(j2,[["__scopeId","data-v-39ffc861"]]),U2={};function q2(a,l){return e.openBlock(),e.createElementBlock("div")}const W2=Xl._export_sfc(U2,[["render",q2]]),K2={class:"extra-content"},G2={key:0},Y2={key:1},J2={class:"dialog-footer"},X2={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},emits:["change"],setup(a,{emit:l}){const r=a,n=e.ref(0),t=e.ref(),s=e.ref(),v=l,p=e.ref(!1),f=e.ref({}),m=e.ref({}),g=e.ref();e.watch(()=>[r.itemData],()=>{var x;const E=A.cloneDeep(r.itemData);t.value=(x=A.cloneDeep(E))==null?void 0:x.map(k=>{var b;if(k.key==="extra"){let w=[];(b=k.value)==null||b.forEach($=>{var F;w.push((F=Object.values($))==null?void 0:F[0])}),k.value=w}return k})},{deep:!0,immediate:!0});const c=(E,x,k,b)=>{var $;let w={};(($=E==null?void 0:E[0])==null?void 0:$.contents)==="详情"&&(p.value=!0,w[x]=E,s.value=E==null?void 0:E.filter(F=>(F==null?void 0:F.key)!=="tableContentName"),f.value=w,m.value=k,g.value=b.id)},D=E=>{var F,J,se,ge;const x=(J=(F=Object.values(A.cloneDeep(f.value)))==null?void 0:F[0])==null?void 0:J.filter(Me=>(Me==null?void 0:Me.key)==="tableContentName"),k=(ge=(se=Object.values(A.cloneDeep(f.value)))==null?void 0:se[0])==null?void 0:ge.filter(Me=>(Me==null?void 0:Me.key)!=="tableContentName"),b=k==null?void 0:k.map((Me,V)=>{var fe;return V===E.index&&(Me==null?void 0:Me.comp)==="Table"&&(Me.compData=(fe=Me.compData)==null?void 0:fe.map(ae=>{var de,Ce;return(ae==null?void 0:ae.key)==="tableContents"&&(ae.contents=(Ce=(de=E.content)==null?void 0:de.map(Fe=>{let ye={};for(let T in Fe)T!=="id"&&(ye[T]=Fe[T]);return ye}))==null?void 0:Ce.map(Fe=>Object.values(Fe))),ae})),Me});b.unshift(x==null?void 0:x[0]);let w=A.cloneDeep(f.value),$={};for(let Me in w)$[Me]=b;f.value=$},M=()=>{p.value=!1,f.value={},m.value={},g.value=void 0,n.value++},S=E=>{var F,J,se,ge;const x=(J=(F=Object.values(A.cloneDeep(f.value)))==null?void 0:F[0])==null?void 0:J.filter(Me=>(Me==null?void 0:Me.key)==="tableContentName"),k=(ge=(se=Object.values(A.cloneDeep(f.value)))==null?void 0:se[0])==null?void 0:ge.filter(Me=>(Me==null?void 0:Me.key)!=="tableContentName"),b=k==null?void 0:k.map((Me,V)=>(V===E.index&&(Me.compData=E.contents),Me));b.unshift(x==null?void 0:x[0]);let w=A.cloneDeep(f.value),$={};for(let Me in w)$[Me]=b;f.value=$},K=()=>{var x,k;let E={};for(let b in m.value)b===((x=Object.keys(f.value))==null?void 0:x[0])?E[b]=(k=Object.values(f.value))==null?void 0:k[0]:E[b]=m.value[b];v("change",{buttonName:"编辑",index:g.value,singleContent:E},"methodData"),p.value=!1,f.value={},m.value={},g.value=void 0},I=()=>{p.value=!1,f.value={},m.value={},g.value=void 0},R=E=>{v("change",E,"methodData")},j=E=>Bi(E);return(E,x)=>{const k=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",K2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(b,w)=>(e.openBlock(),e.createElementBlock("div",{key:n.value},[(b==null?void 0:b.key)==="extra"?(e.openBlock(),e.createElementBlock("div",G2)):(e.openBlock(),e.createElementBlock("div",Y2,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(j(b.comp)),{itemData:b==null?void 0:b.compData,childItemData:b==null?void 0:b.itemChildData,key:w,index:(b==null?void 0:b.id)??w,onContentClick:c,onChange:R},null,40,["itemData","childItemData","index"]))]))]))),128)),e.createVNode(wr.ssDialog,{visible:p.value,onBeforeDestroy:I},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(b,w)=>(e.openBlock(),e.createElementBlock("div",{key:w,class:"extra-dialog"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(j(b.comp)),{itemData:b==null?void 0:b.compData,onChange:D,childItemData:b==null?void 0:b.itemChildData,key:w,onContentChange:S,index:(b==null?void 0:b.id)??w,class:"extra-component"},null,40,["itemData","childItemData","index"]))]))),128))]),footer:e.withCtx(()=>[e.createElementVNode("div",J2,[e.createVNode(k,{class:"cancel-button footer-button",onClick:M,id:"themeBorderButton"},{default:e.withCtx(()=>x[0]||(x[0]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[0]}),e.createVNode(k,{class:"confirm-button footer-button",onClick:K,id:"themeButton"},{default:e.withCtx(()=>x[1]||(x[1]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},Z2=Xl._export_sfc(X2,[["__scopeId","data-v-2d9c5ab2"]]),Q2={key:0,class:"method-content"},e4={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},setup(a){const l=e.ref([]),r=he.useOriginalState(A.pinia),{originalPath:n}=A.storeToRefs(r),t=a,s=e.ref(!1),v=e.ref(),p=he.useTableComp(A.pinia),{multipleTableConst:f}=A.storeToRefs(p),m=A.useModelComp(A.pinia),g=e.ref(!1),c=A.useMenuState(A.pinia),D=A.useLoginState(A.pinia),{itemData:M,isEdit:S,routeToChildPath:K,tableViewContents:I,lockingPage:R,payloadTypes:j}=A.storeToRefs(m),{activeMenuPath:E,platform:x,childMenu:k}=A.storeToRefs(c),{loginUserInfo:b}=A.storeToRefs(D),w=e.ref(!1),$=async()=>{var ye,T;(ye=l.value)!=null&&ye.find(ue=>(ue==null?void 0:ue.buttonName)==="保存")&&await ae((T=l.value)==null?void 0:T.find(ue=>(ue==null?void 0:ue.buttonName)==="保存")),await he.onSaveBack()};e.watch(()=>M.value,async()=>{S.value==="view"&&!w.value&&await Fe(A.cloneDeep(t.itemData)),w.value=!1},{deep:!0});const F=()=>{s.value=!1,v.value=void 0},J=ye=>ye.map(T=>{const ue={};for(const U in T){const Se=T[U];if(U.includes(f.value)){const Le=U.split(f.value);let Pe=ue;Le.forEach((la,Da)=>{Da===Le.length-1?Pe[la]=Se:(Pe[la]||(Pe[la]={}),Pe=Pe[la])})}else ue[U]=Se}return ue}),se=async(ye,T,ue=[])=>{var Se,Le,Pe,la,Da,le,ta,te,ca,Ee,oe,Te,Ue,oa,Ja;let U=(Se=A.cloneDeep(T))==null?void 0:Se.filter(L=>(L==null?void 0:L.comp)!=="methodButton");if(ye!=null&&ye.includes("[")){let L=(le=(Da=(la=(Pe=(Le=A.cloneDeep(ye))==null?void 0:Le.split("["))==null?void 0:Pe[1])==null?void 0:la.split("]"))==null?void 0:Da[0])==null?void 0:le.split(":"),H="";if(L!=null&&L[0]){let Q=(ta=U==null?void 0:U.find(me=>(me==null?void 0:me.name)===(L==null?void 0:L[0])))==null?void 0:ta.compData;if(!Q){let me=(te=ye==null?void 0:ye.split("["))==null?void 0:te[0],ve=await he.getItemData(me,sessionStorage.getItem("systemKey"),"",!1,"","",ue);Q=(ca=ve==null?void 0:ve.find(da=>(da==null?void 0:da.name)===(L==null?void 0:L[0])))==null?void 0:ca.compData}Q==null||Q.forEach(me=>{var ve,da,ea,ce,pa,Ne;if((me==null?void 0:me.key)==="formContent")(ve=me==null?void 0:me.contents)==null||ve.forEach(We=>{var Ta;(We==null?void 0:We.key)===(L==null?void 0:L[1])&&(Array.isArray(We==null?void 0:We.value)?H=We==null?void 0:We.value:H=(Ta=We==null?void 0:We.value)==null?void 0:Ta.toString())});else if((me==null?void 0:me.key)==="tableContents"){let We=[],Ta=(da=Q==null?void 0:Q.find(Qe=>(Qe==null?void 0:Qe.key)==="header"))==null?void 0:da.contents,Ca=(L==null?void 0:L[1])??"";if(Ta!=null&&Ta.every(Qe=>Array.isArray(Qe))){let Qe=he.getColumnChild((pa=Ta==null?void 0:Ta[0])==null?void 0:pa.filter(Va=>(Va==null?void 0:Va.label)!=="操作"));(Ne=me.contents)==null||Ne.forEach(Va=>{let re={};Va=Va==null?void 0:Va.filter(X=>!(X!=null&&X.id)),Qe==null||Qe.forEach((X,Z)=>{let q=Va[Z];typeof Va[Z]=="number"&&(q=Va[Z].toString()),(Ca===""||Ca===X.prop)&&(re[X.prop]=q)}),We.push(re)}),We=J(We)}else{let Qe=(ea=Ta==null?void 0:Ta.map(Va=>Va==null?void 0:Va.label))==null?void 0:ea.filter(Va=>Va!=="操作");(ce=me.contents)==null||ce.forEach(Va=>{let re={};Va=Va==null?void 0:Va.filter(X=>!(X!=null&&X.id)),Qe==null||Qe.forEach((X,Z)=>{let q=Va[Z];typeof Va[Z]=="number"&&(q=Va[Z].toString()),(Ca===""||Ca===X)&&(re[X]=q)}),We.push(re)})}H=We}})}return H}else if(ye!=null&&ye.includes("/")){let L={};return(Ee=A.cloneDeep(U))==null||Ee.forEach((H,Q)=>{var me,ve,da,ea,ce,pa,Ne,We,Ta,Ca,Qe,Va,re,X,Z,q,Be,Je,ra;if((H==null?void 0:H.comp)==="Table"){let ba=Array.isArray((da=(ve=(me=H==null?void 0:H.compData)==null?void 0:me.find(Oe=>(Oe==null?void 0:Oe.key)==="header"))==null?void 0:ve.contents)==null?void 0:da[0])?(Ne=(pa=(ce=(ea=H==null?void 0:H.compData)==null?void 0:ea.find(Oe=>(Oe==null?void 0:Oe.key)==="header"))==null?void 0:ce.contents)==null?void 0:pa[0])==null?void 0:Ne.some(Oe=>Oe==null?void 0:Oe.children):[],ga=(Ca=(Ta=(We=H==null?void 0:H.compData)==null?void 0:We.find(Oe=>(Oe==null?void 0:Oe.key)==="tableContents"))==null?void 0:Ta.contents)==null?void 0:Ca.map(Oe=>(Oe!=null&&Oe.find(Za=>Za==null?void 0:Za.id)&&(Oe=Oe.slice(1)),Oe)),Aa=(Z=(X=(re=(Va=(Qe=H==null?void 0:H.compData)==null?void 0:Qe.find(Oe=>(Oe==null?void 0:Oe.key)==="header"))==null?void 0:Va.contents)==null?void 0:re[0])==null?void 0:X[0])==null?void 0:Z.label,_a=(Be=(q=H==null?void 0:H.compData)==null?void 0:q.find(Oe=>(Oe==null?void 0:Oe.key)==="header"))==null?void 0:Be.contents;if(ba)(ba==null?void 0:ba.length)===0?L[H.name]=L!=null&&L[H.name]?L[H.name]:he.tableToForm(ga,_a):L[Aa]=he.tableToForm(ga,_a);else{const Oe=[];_a=_a.slice(1,_a.length-1),_a==null||_a.forEach((Za,Ha)=>{ga==null||ga.forEach(xl=>{Oe.push({key:Za.label+xl[0],value:xl[Ha+1]})})}),L["form"+Q]=Oe}}else{const ba=(ra=(Je=H.compData)==null?void 0:Je.find(Aa=>(Aa==null?void 0:Aa.key)==="formContent"))==null?void 0:ra.contents;L!=null&&L.form||(L.form=[]);const ga=[];ba==null||ba.forEach(Aa=>{Aa.key!==""&&(Aa={key:(Aa==null?void 0:Aa.key)??(Aa==null?void 0:Aa.label),value:Aa==null?void 0:Aa.value},ga.push(Aa))}),L.form=[...ga,...A.cloneDeep(L==null?void 0:L.form)]}}),L}else{if(ye==="createInsofDataApi"){let L=(oe=A.cloneDeep(T))==null?void 0:oe[0];return L={comp:(Te=A.cloneDeep(L))==null?void 0:Te.comp,compData:(Ue=A.cloneDeep(L))==null?void 0:Ue.compData,name:(oa=A.cloneDeep(L))==null?void 0:oa.name,isShow:(Ja=A.cloneDeep(L))==null?void 0:Ja.isShow},{key:{type:"structure",systemKey:sessionStorage.getItem("systemKey"),parentTable:"",pageKey:E.value},value:{pageData:L}}}return ye}},ge=async(ye,T,ue)=>{var Le,Pe,la;let U=await he.getItemData(T,sessionStorage.getItem("systemKey"),""),Se=U==null?void 0:U.find(Da=>(Da==null?void 0:Da.name)===(ue==null?void 0:ue[0]));if(Se){if((Se==null?void 0:Se.comp)==="Table"){let Da={};for(let Te in A.cloneDeep(ye))A.cloneDeep(ye)[Te]!=="loginUser"?Da[Te]=A.cloneDeep(ye)[Te]:Da[Te]=((Le=b.value)==null?void 0:Le.account)||((Pe=b.value)==null?void 0:Pe.账号);let le=[],ta=Da;Array.isArray(ye)||(ta=[Da]),ta==null||ta.forEach(Te=>{le.push({[Te[ue[1]]]:Te})});let te=[],ca=le==null?void 0:le.map(Te=>{var Ue;return(Ue=Object.keys(Te))==null?void 0:Ue[0]});U==null||U.forEach(Te=>{var Ue;(Te==null?void 0:Te.name)===(ue==null?void 0:ue[0])&&((Ue=Te==null?void 0:Te.compData)==null||Ue.forEach(oa=>{var Ja;(oa==null?void 0:oa.key)==="tableContents"&&((Ja=oa==null?void 0:oa.contents)==null||Ja.forEach(L=>{L!=null&&L.some(H=>ca.includes(H))&&te.push({[L.find(H=>H.id).id]:L.find(H=>ca.includes(H))})}))}))});let Ee=te==null?void 0:te.map(Te=>{var Ue;return(Ue=Object.keys(Te))==null?void 0:Ue[0]}),oe=[];if(Ee==null||Ee.forEach(Te=>{var Ja;let Ue=(Ja=te==null?void 0:te.find(L=>{var H;return((H=Object.keys(L))==null?void 0:H[0].toString())===Te.toString()}))==null?void 0:Ja[Te],oa=le==null?void 0:le.find(L=>{var H;return((H=Object.keys(L))==null?void 0:H[0])===Ue});oe.push({id:parseInt(Te),value:{tableData:oa[Ue]}})}),(oe==null?void 0:oe.length)>0)return oe}else if((Se==null?void 0:Se.comp)==="Form"){let Da=A.cloneDeep(Se);Da.compData=(la=Da.compData)==null?void 0:la.map(te=>{var ca;return(te==null?void 0:te.key)==="formContent"&&(te.contents=(ca=te.contents)==null?void 0:ca.map(Ee=>((Ee==null?void 0:Ee.key)===(ue==null?void 0:ue[1])&&(Ee.value=(ye==null?void 0:ye[Ee==null?void 0:Ee.prop])||ye),Ee))),te});let le={};for(let te in Da)te!=="id"&&(le[te]=Da[te]);let ta=[];if(ta.push({id:Se==null?void 0:Se.id,keyType:ue==null?void 0:ue[1],value:{pageData:le}}),(ta==null?void 0:ta.length)>0)return ta}}},Me=async(ye,T,ue)=>{var Le,Pe,la,Da,le,ta,te,ca,Ee,oe;let U=await he.getItemData(T,sessionStorage.getItem("systemKey"),""),Se=U==null?void 0:U.find(Te=>(Te==null?void 0:Te.name)===(ue==null?void 0:ue[0]));if(Se){if((Se==null?void 0:Se.comp)==="Table"){let Te={};for(let Ue in A.cloneDeep(ye))A.cloneDeep(ye)[Ue]!=="loginUser"?Te[Ue]=A.cloneDeep(ye)[Ue]:Te[Ue]=((Le=b.value)==null?void 0:Le.account)||((Pe=b.value)==null?void 0:Pe.账号);await Ar.createInsofDataApi({key:{type:"data",pageKey:T,tableId:Se==null?void 0:Se.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:Te}})}else if((Se==null?void 0:Se.comp)==="Form"){let Te=A.cloneDeep(Se),Ue=Object.keys(ye),oa="";(Da=(la=A.cloneDeep(Te))==null?void 0:la.compData)==null||Da.forEach(ve=>{var da,ea;(ve==null?void 0:ve.key)==="formContent"&&((ea=(da=A.cloneDeep(ve))==null?void 0:da.contents)==null||ea.forEach(ce=>{var pa;Ue.includes(ce==null?void 0:ce.key)&&(ce==null?void 0:ce.value)===((pa=b.value)==null?void 0:pa.姓名)&&(oa=ce==null?void 0:ce.key)}))});let Ja=[];(le=Object.values(ye[oa]))==null||le.forEach(ve=>{ve!=null&&ve.includes("(")&&Ja.push(ve)}),Ja=[...new Set(Ja)];const L=Ja==null?void 0:Ja.map(async ve=>{var Ne,We,Ta,Ca,Qe,Va,re,X,Z,q,Be,Je;let da="";(Va=(Qe=(Ca=(Ta=(We=(Ne=A.cloneDeep(ve))==null?void 0:Ne.split("("))==null?void 0:We[1])==null?void 0:Ta.split(")"))==null?void 0:Ca[0])==null?void 0:Qe.split(":"))==null||Va.forEach(ra=>{da=da===""?da+ra.replaceAll("'",""):da+"/"+ra.replaceAll("'","")});let ea=[];(Je=(Be=(q=(Z=(X=(re=A.cloneDeep(ve))==null?void 0:re.split("<"))==null?void 0:X[1])==null?void 0:Z.split(">"))==null?void 0:q[0])==null?void 0:Be.split(":"))==null||Je.forEach(ra=>{ea.push(ra.replaceAll("'",""))});const ce=await he.getItemData(da,sessionStorage.getItem("systemKey"),"");let pa="";return ce==null||ce.forEach(ra=>{var ba;ra.name===(ea==null?void 0:ea[0])&&((ba=ra==null?void 0:ra.compData)==null||ba.forEach(ga=>{var Aa;(ga==null?void 0:ga.key)==="formContent"&&((Aa=ga.contents)==null||Aa.forEach(_a=>{(_a==null?void 0:_a.key)===(ea==null?void 0:ea[1])&&(pa=_a==null?void 0:_a.value)}))}))}),{[ve]:pa}}),H=await Promise.all(L);Te.compData=(te=(ta=A.cloneDeep(Te))==null?void 0:ta.compData)==null?void 0:te.map(ve=>{var da,ea;return(ve==null?void 0:ve.key)==="formContent"&&(ve.contents=(ea=(da=A.cloneDeep(ve))==null?void 0:da.contents)==null?void 0:ea.map(ce=>{var pa,Ne,We,Ta;return(pa=ye[oa])!=null&&pa[ce==null?void 0:ce.key]&&(ye[oa][ce==null?void 0:ce.key].includes("(")?ce.value=(Ne=H==null?void 0:H.find(Ca=>{var Qe;return((Qe=Object.keys(Ca))==null?void 0:Qe[0])===ye[oa][ce==null?void 0:ce.key]}))==null?void 0:Ne[ye[oa][ce==null?void 0:ce.key]]:ce.value=(Ta=(We=A.cloneDeep(ye))==null?void 0:We[oa])==null?void 0:Ta[ce==null?void 0:ce.key]),ce})),ve});const Q=await Ar.getInsofDataApi({key:{type:"structure",pageKey:T,systemKey:sessionStorage.getItem("systemKey")}});let me="";((ca=Q==null?void 0:Q.data)==null?void 0:ca.type)==="success"&&((oe=(Ee=Q==null?void 0:Q.data)==null?void 0:Ee.result)==null||oe.forEach(ve=>{var da,ea;((ea=(da=ve==null?void 0:ve.value)==null?void 0:da.pageData)==null?void 0:ea.name)===(ue==null?void 0:ue[0])&&(me=ve.id)}),await Ar.updateInsofDataApi({id:me,value:{pageData:Te}}))}}},V=(ye,T="",ue={})=>{for(const[U,Se]of Object.entries(ye)){const Le=T?`${T}.${U}`:U;Se!==null&&typeof Se=="object"&&!Array.isArray(Se)&&Object.prototype.toString.call(Se)!=="[object Date]"?V(Se,Le,ue):ue[Le]=Se}return ue},fe=async(ye,T,ue,U)=>{var Pe,la,Da,le,ta,te,ca,Ee,oe,Te,Ue,oa,Ja,L,H,Q,me,ve,da,ea,ce,pa,Ne,We,Ta;let Se=await he.getItemData(T,sessionStorage.getItem("systemKey"),""),Le=Se==null?void 0:Se.find(Ca=>(Ca==null?void 0:Ca.name)===(ue==null?void 0:ue[0]));if(Le){if(!(ue!=null&&ue[1])&&(Le==null?void 0:Le.comp)==="Table"){let Ca={},Qe=[],Va=(la=(Pe=Le==null?void 0:Le.compData)==null?void 0:Pe.find(Z=>(Z==null?void 0:Z.key)==="header"))==null?void 0:la.contents;Va!=null&&Va.every(Z=>Array.isArray(Z))?Qe=(le=he.getColumnChild((Da=Va==null?void 0:Va[0])==null?void 0:Da.filter(Z=>(Z==null?void 0:Z.label)!=="操作")))==null?void 0:le.map(Z=>Z==null?void 0:Z.prop):Qe=Va==null?void 0:Va.map(Z=>Z==null?void 0:Z.label);for(let Z in A.cloneDeep(ye))if(A.cloneDeep(ye)[Z]!=="loginUser"){let q=V(A.cloneDeep(ye)[Z]),Be={};for(let Je in q)if(Qe!=null&&Qe.find(ra=>ra===Je))Be[Je]=q[Je];else if(Qe!=null&&Qe.find(ra=>(ra==null?void 0:ra.toUpperCase())===(Je==null?void 0:Je.toUpperCase()))){let ra=Qe==null?void 0:Qe.find(ba=>(ba==null?void 0:ba.toUpperCase())===(Je==null?void 0:Je.toUpperCase()));Be[ra]=q[Je]}Ca[Z]=Be}else Ca[Z]=((ta=b.value)==null?void 0:ta.account)||((te=b.value)==null?void 0:te.账号);let re=await Ar.getInsofDataApi({keyLikes:{tableId:Le==null?void 0:Le.id}});if(((Ee=(ca=re==null?void 0:re.data)==null?void 0:ca.result)==null?void 0:Ee.length)>0){let Z=(Te=(oe=re==null?void 0:re.data)==null?void 0:oe.result)==null?void 0:Te.map(q=>q==null?void 0:q.id);(Z==null?void 0:Z.length)>0&&await Ar.batchDeleteInsofDataApi({ids:Z})}let X=[];if((Ue=Le==null?void 0:Le.compData)!=null&&Ue.find(Z=>(Z==null?void 0:Z.key)==="pageColumn")&&((L=(Ja=(oa=Le==null?void 0:Le.compData)==null?void 0:oa.find(Z=>(Z==null?void 0:Z.key)==="pageColumn"))==null?void 0:Ja.contents)!=null&&L.includes("["))){const Z=await Ar.getInsofDataApi({id:Le==null?void 0:Le.tableId});let q=((ve=(me=(Q=(H=Z==null?void 0:Z.data)==null?void 0:H.result)==null?void 0:Q[0])==null?void 0:me.key)==null?void 0:ve.pageKey)??"";(da=Object.values(Ca))==null||da.forEach(Be=>{X.push({key:{type:"data",pageKey:q,tableId:Le==null?void 0:Le.tableId,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:Be}})})}else(ea=Object.values(Ca))==null||ea.forEach(Z=>{X.push({key:{type:"data",pageKey:T,tableId:Le==null?void 0:Le.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:Z}})});(X==null?void 0:X.length)>0&&await Ar.batchAddInsofDataApi({dataList:X})}else if(!(ue!=null&&ue[1])&&(Le==null?void 0:Le.comp)==="Form"){let Ca=A.cloneDeep(Le);Ca.compData=(pa=(ce=A.cloneDeep(Ca))==null?void 0:ce.compData)==null?void 0:pa.map(re=>{var X,Z;return(re==null?void 0:re.key)==="formContent"&&(re.contents=(Z=(X=A.cloneDeep(re))==null?void 0:X.contents)==null?void 0:Z.map(q=>{var Be,Je;return(Be=A.cloneDeep(ye))!=null&&Be[q==null?void 0:q.key]&&(q.value=(Je=A.cloneDeep(ye))==null?void 0:Je[q==null?void 0:q.key]),q})),re});const Qe=await Ar.getInsofDataApi({key:{type:"structure",pageKey:T,systemKey:sessionStorage.getItem("systemKey")}});let Va="";((Ne=Qe==null?void 0:Qe.data)==null?void 0:Ne.type)==="success"&&((Ta=(We=Qe==null?void 0:Qe.data)==null?void 0:We.result)==null||Ta.forEach(re=>{var X,Z;((Z=(X=re==null?void 0:re.value)==null?void 0:X.pageData)==null?void 0:Z.name)===(ue==null?void 0:ue[0])&&(Va=re.id)}),await Ar.updateInsofDataApi({id:Va,value:{pageData:Ca}}))}}},ae=async ye=>{var T,ue,U,Se,Le,Pe,la,Da,le,ta,te,ca,Ee,oe;c.setImportLoading(!0);try{if(ye.api){let Te=new WeakMap,Ue=await he.getItemData((k==null?void 0:k.value)===""?E.value:k==null?void 0:k.value,sessionStorage.getItem("systemKey"),"",!1,"","",Te),oa="";if(Ue=Ue==null?void 0:Ue.map(ea=>{var ce,pa,Ne,We,Ta,Ca,Qe,Va,re,X,Z,q;if((ea==null?void 0:ea.comp)==="Form")ea.compData=(ce=ea.compData)==null?void 0:ce.map(Be=>{var Je;return(Be==null?void 0:Be.key)==="formContent"&&(Be.contents=(Je=Be.contents)==null?void 0:Je.map(ra=>{var ba;if((ra==null?void 0:ra.value)===""&&(ra==null?void 0:ra.type)==="Select"){let ga=he.judgeContents((ba=A.cloneDeep(ra))==null?void 0:ba.optionUrl,Te);ra.value=ra.value||ga}return ra})),Be});else if((ea==null?void 0:ea.comp)==="Table"&&(pa=ea.compData)!=null&&pa.find(Be=>(Be==null?void 0:Be.key)==="pageColumn")){let Be=(We=(Ne=ea.compData)==null?void 0:Ne.find(ga=>(ga==null?void 0:ga.key)==="pageColumn"))==null?void 0:We.contents,Je=((Ca=(Ta=ea.compData)==null?void 0:Ta.find(ga=>(ga==null?void 0:ga.key)==="pageGroup"))==null?void 0:Ca.contents)??"",ra=(re=(Va=(Qe=Be==null?void 0:Be.split("["))==null?void 0:Qe[1])==null?void 0:Va.split("]"))==null?void 0:re[0];oa=((X=Be==null?void 0:Be.split("["))==null?void 0:X[0])+((q=(Z=I.value)==null?void 0:Z.find(ga=>(ga==null?void 0:ga.key)===ra))==null?void 0:q.value)}return ea}),!(oa===""||oa==="")){const ea=await he.getItemData(oa,sessionStorage.getItem("systemKey"),"",!1,"","",Te);Ue=Ue==null?void 0:Ue.map(ce=>{var pa,Ne,We,Ta,Ca,Qe,Va,re,X,Z,q,Be,Je;if((ce==null?void 0:ce.comp)==="Table"&&(pa=ce.compData)!=null&&pa.find(ra=>(ra==null?void 0:ra.key)==="pageColumn")){let ra=(We=(Ne=ce.compData)==null?void 0:Ne.find(Oe=>(Oe==null?void 0:Oe.key)==="pageColumn"))==null?void 0:We.contents,ba=((Ca=(Ta=ce.compData)==null?void 0:Ta.find(Oe=>(Oe==null?void 0:Oe.key)==="pageGroup"))==null?void 0:Ca.contents)??"",ga=(re=(Va=(Qe=ra==null?void 0:ra.split("["))==null?void 0:Qe[1])==null?void 0:Va.split("]"))==null?void 0:re[0],Aa=((X=ra==null?void 0:ra.split("["))==null?void 0:X[0])+((q=(Z=I.value)==null?void 0:Z.find(Oe=>(Oe==null?void 0:Oe.key)===ga))==null?void 0:q.value),_a=(Be=ea==null?void 0:ea.find(Oe=>(Oe==null?void 0:Oe.name)===(ba===""?t==null?void 0:t.compName:ba)))==null?void 0:Be.compData;ce.compData=(Je=ce.compData)==null?void 0:Je.map(Oe=>{var Za;return(Oe==null?void 0:Oe.key)==="tableContents"&&(Oe.contents=(Za=_a==null?void 0:_a.find(Ha=>(Ha==null?void 0:Ha.key)==="tableContents"))==null?void 0:Za.contents),Oe})}return ce})}let Ja={};if(((ue=(T=ye==null?void 0:ye.extraValues)==null?void 0:T.input)==null?void 0:ue.length)>0){const ea=(Se=(U=ye==null?void 0:ye.extraValues)==null?void 0:U.input)==null?void 0:Se.map(async ce=>{var pa;de!=null&&de.find(Ne=>Ne===ce)?Ja=await se(ce,Ue):Ja[Object.keys(ce)[0]]=await se((pa=Object.values(ce))==null?void 0:pa[0],Ue,Te)});await Promise.all(ea)}else Ja=await se("/",Ue);let L=!1;(Pe=(Le=ye==null?void 0:ye.extraValues)==null?void 0:Le.output)==null||Pe.forEach(ea=>{var ce,pa;(pa=(ce=Object.values(ea))==null?void 0:ce[0])!=null&&pa.includes(".doc")&&(L=!0)});let H;if(L){const ea=A.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});H=await qa.axios.post(ye.api,Ja,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{ea.close()})}else H=await qa.axios.post(ye.api,Ja,{headers:{"Content-Type":"application/json"}});let Q=(ta=(le=(Da=(la=A.cloneDeep(ye))==null?void 0:la.extraValues)==null?void 0:Da.output)==null?void 0:le.map(ea=>{var ce,pa,Ne,We,Ta,Ca,Qe,Va,re,X,Z,q,Be,Je,ra,ba;if(!((pa=(ce=Object.values(ea))==null?void 0:ce[0])!=null&&pa.includes(".doc"))){let ga=(X=(re=(Va=(We=A.cloneDeep((Ne=Object.values(ea))==null?void 0:Ne[0]))==null?void 0:We.split("["))==null?void 0:Va[((Qe=(Ca=A.cloneDeep((Ta=Object.values(ea))==null?void 0:Ta[0]))==null?void 0:Ca.split("["))==null?void 0:Qe.length)-1])==null?void 0:re.split("]"))==null?void 0:X[0],Aa=ga==null?void 0:ga.split(":"),_a=(Be=A.cloneDeep((Z=Object.values(ea))==null?void 0:Z[0]))==null?void 0:Be.substring(0,A.cloneDeep((q=Object.values(ea))==null?void 0:q[0]).lastIndexOf("["));if(_a=(ra=A.cloneDeep(_a))==null?void 0:ra.slice(0,((Je=A.cloneDeep(_a))==null?void 0:Je.length)-1),_a!=null&&_a.includes("[")){let Oe="";if((ba=he.contentTransArrayToAll(_a,"/"))==null||ba.forEach(Za=>{var Ha,xl,Yl,kl,Fl,ja,zl;if(!(Za!=null&&Za.includes("[")))Oe=Oe===""?Oe+Za.replaceAll("/",""):Oe+"/"+Za.replaceAll("/","");else{let Rl=A.cloneDeep(Za).slice(1,((Ha=A.cloneDeep(Za))==null?void 0:Ha.length)-1),Ma=(ja=(Fl=(kl=(Yl=(xl=A.cloneDeep(Rl))==null?void 0:xl.split("["))==null?void 0:Yl[1])==null?void 0:kl.split("]"))==null?void 0:Fl[0])==null?void 0:ja.split(":"),rl="",sl=(zl=Ue==null?void 0:Ue.find(ma=>(ma==null?void 0:ma.name)===(Ma==null?void 0:Ma[0])))==null?void 0:zl.compData;sl==null||sl.forEach(ma=>{var ka;(ma==null?void 0:ma.key)==="formContent"&&((ka=ma==null?void 0:ma.contents)==null||ka.forEach(La=>{(La==null?void 0:La.key)===(Ma==null?void 0:Ma[1])&&(rl=La==null?void 0:La.value)}))}),Oe=Oe===""?Oe+rl.replaceAll("/",""):Oe+"/"+rl.replaceAll("/","")}}),_a=Oe,_a[(_a==null?void 0:_a.length)-1]!=="/")return _a}}}))==null?void 0:ta.filter(ea=>ea);Q=[...new Set(A.cloneDeep(Q))];let me=Q==null?void 0:Q.map(async ea=>{let ce=await he.getItemData(ea,sessionStorage.getItem("systemKey"),"",!1,"","",Te);if((ce==null?void 0:ce.length)===0)return await he.getParentContents(ea)});await Promise.all(me);let ve=[],da=(Ee=(ca=(te=A.cloneDeep(ye))==null?void 0:te.extraValues)==null?void 0:ca.output)==null?void 0:Ee.map(async ea=>{var Va,re,X,Z,q,Be,Je,ra,ba,ga,Aa,_a,Oe,Za,Ha,xl,Yl,kl,Fl,ja,zl,Rl,Ma,rl,sl,ma,ka,La,$a,we,ia,Ie,pe,ha,va,Xe,Ze,Ke,pl,Ve,Fa,Sa,il,Ia,ze,Sl,Il,Ul,ql,Ql,dr,Ol,pr,Fr,Pl,ar,Pr,Tr,jr,Ir,Er,Cr,mn,Br,cr,yn,ln,rn,Sn,Bn;if((re=(Va=Object.values(ea))==null?void 0:Va[0])!=null&&re.includes(".doc")){var ce=new Blob([H.data],{type:"application/octet-stream;charset=UTF-8"}),pa=H.headers["content-disposition"],Ne=new RegExp("filename=([^;]+\\.[^\\.;]+);*"),We=Ne.exec(pa),Ta=We==null?void 0:We[1],Ca=document.createElement("a"),Qe=window.URL.createObjectURL(ce);v.value=[{name:Ta,blobUrl:Qe}],s.value=!0}else{let pn=(ga=(ba=(ra=(Z=A.cloneDeep((X=Object.values(ea))==null?void 0:X[0]))==null?void 0:Z.split("["))==null?void 0:ra[((Je=(Be=A.cloneDeep((q=Object.values(ea))==null?void 0:q[0]))==null?void 0:Be.split("["))==null?void 0:Je.length)-1])==null?void 0:ba.split("]"))==null?void 0:ga[0],lr=pn==null?void 0:pn.split(":"),Ml=(Oe=A.cloneDeep((Aa=Object.values(ea))==null?void 0:Aa[0]))==null?void 0:Oe.substring(0,A.cloneDeep((_a=Object.values(ea))==null?void 0:_a[0]).lastIndexOf("["));if(Ml!=null&&Ml.includes("[")?Ml=(Ha=A.cloneDeep(Ml))==null?void 0:Ha.slice(0,((Za=A.cloneDeep(Ml))==null?void 0:Za.length)-1):Ml===""&&(Ml=E.value),Ml=Ml.replaceAll("<","[").replaceAll(">","]"),Ml!=null&&Ml.includes("[")){let cl="";(xl=he.contentTransArrayToAll(Ml,"/"))==null||xl.forEach((sr,$l)=>{var _r,Kl,fr,Lr,gn,Nn,bn,qn,Ln,kn,Tn;if(!(sr!=null&&sr.includes("[")))cl=cl===""?cl+sr.replaceAll("/",""):cl+"/"+sr.replaceAll("/","");else{let Rn="",Qr="";(_r=A.cloneDeep(sr))!=null&&_r.includes("]")?(Rn=A.cloneDeep(sr).slice(1,((Kl=A.cloneDeep(sr))==null?void 0:Kl.length)-1),Qr=(bn=(Nn=(gn=(Lr=(fr=A.cloneDeep(Rn))==null?void 0:fr.split("["))==null?void 0:Lr[1])==null?void 0:gn.split("]"))==null?void 0:Nn[0])==null?void 0:bn.split(":")):(Rn=A.cloneDeep(sr).slice(1,(qn=A.cloneDeep(sr))==null?void 0:qn.length),Qr=(Ln=A.cloneDeep(Rn))==null?void 0:Ln.split("/"));let An="",Wn=(kn=Ue==null?void 0:Ue.find(Rr=>(Rr==null?void 0:Rr.name)===(Qr==null?void 0:Qr[0])))==null?void 0:kn.compData;Wn==null||Wn.forEach(Rr=>{var Kn;(Rr==null?void 0:Rr.key)==="formContent"&&((Kn=Rr==null?void 0:Rr.contents)==null||Kn.forEach(fn=>{(fn==null?void 0:fn.key)===(Qr==null?void 0:Qr[1])&&(An=fn==null?void 0:fn.value)}))}),((Tn=he.contentTransArrayToAll(Ml,"/"))==null?void 0:Tn.length)-1!==$l?cl=cl===""?cl+An.replaceAll("/",""):cl+"/"+An.replaceAll("/",""):cl=cl+n.value+An.replaceAll("/","")}}),(Yl=E.value)!=null&&Yl.includes(cl)?Ml=E.value:Ml=cl}let zr=A.cloneDeep((kl=Object.keys(ea))==null?void 0:kl[0]);if(((Fl=H==null?void 0:H.data)==null?void 0:Fl.statusCode)===200||((ja=H==null?void 0:H.data)==null?void 0:ja.code)===200){if(((Rl=(zl=H==null?void 0:H.data)==null?void 0:zl.data)!=null&&Rl[zr]||(rl=(Ma=H==null?void 0:H.data)==null?void 0:Ma.result)!=null&&rl[zr])&&(lr==null?void 0:lr.length)===1)return await fe(((ma=(sl=H==null?void 0:H.data)==null?void 0:sl.data)==null?void 0:ma[zr])||((La=(ka=H==null?void 0:H.data)==null?void 0:ka.result)==null?void 0:La[zr]),A.cloneDeep(Ml),lr,oa);if((we=($a=H==null?void 0:H.data)==null?void 0:$a.data)!=null&&we[zr]||(Ie=(ia=H==null?void 0:H.data)==null?void 0:ia.result)!=null&&Ie[zr]){let cl=await ge(((ha=(pe=H==null?void 0:H.data)==null?void 0:pe.data)==null?void 0:ha[zr])||((Xe=(va=H==null?void 0:H.data)==null?void 0:va.result)==null?void 0:Xe[zr]),A.cloneDeep(Ml),lr);return cl&&(ve=[...ve,...cl]),cl}else{if(!((Ze=H==null?void 0:H.data)!=null&&Ze.data)){let cl=await he.getItemData(E.value,sessionStorage.getItem("systemKey"),"",!1,"","",Te);cl=cl==null?void 0:cl.map($l=>{var _r;return($l==null?void 0:$l.name)===(lr==null?void 0:lr[0])&&($l.compData=(_r=$l.compData)==null?void 0:_r.map(Kl=>{var fr;return(Kl==null?void 0:Kl.key)==="formContent"&&(Kl.contents=(fr=Kl.contents)==null?void 0:fr.map(Lr=>{var gn,Nn;return(Lr==null?void 0:Lr.key)===(lr==null?void 0:lr[1])&&(Lr.value=(Nn=(gn=H==null?void 0:H.data)==null?void 0:gn.result)==null?void 0:Nn[zr==null?void 0:zr.replaceAll(":","")]),Lr})),Kl})),$l});let sr=[];(Ke=cl==null?void 0:cl.filter($l=>($l==null?void 0:$l.comp)==="Form"))==null||Ke.forEach(async $l=>{let _r={};for(let Kl in $l)Kl!=="id"&&(_r[Kl]=$l[Kl]);sr.push({id:$l==null?void 0:$l.id,value:{pageData:_r}})}),(sr==null?void 0:sr.length)>0&&await Ar.batchUpdateInsofDataApi({dataList:sr});return}if((lr==null?void 0:lr.length)===1){const cl=(Fa=(Ve=(pl=H==null?void 0:H.data)==null?void 0:pl.data)==null?void 0:Ve.path)==null?void 0:Fa.path;let sr="";(Sl=(ze=(Ia=(il=(Sa=cl==null?void 0:cl.split("("))==null?void 0:Sa[1])==null?void 0:il.split(")"))==null?void 0:Ia[0])==null?void 0:ze.split(":"))==null||Sl.forEach(Kl=>{var fr,Lr;sr=sr===""?sr+((fr=Kl==null?void 0:Kl.replaceAll("'",""))==null?void 0:fr.trim()):sr+"/"+((Lr=Kl==null?void 0:Kl.replaceAll("'",""))==null?void 0:Lr.trim())});let $l=[(dr=(Ql=(ql=(Ul=(Il=cl==null?void 0:cl.split("<"))==null?void 0:Il[1])==null?void 0:Ul.split(">"))==null?void 0:ql[0])==null?void 0:Ql.replaceAll("'",""))==null?void 0:dr.trim()],_r;return(Fr=(pr=(Ol=H==null?void 0:H.data)==null?void 0:Ol.data)==null?void 0:pr.data)!=null&&Fr[lr==null?void 0:lr[0]]?_r=await fe((Pr=(ar=(Pl=H==null?void 0:H.data)==null?void 0:Pl.data)==null?void 0:ar.data)==null?void 0:Pr[lr==null?void 0:lr[0]],sr,lr,oa):_r=await Me((jr=(Tr=H==null?void 0:H.data)==null?void 0:Tr.data)==null?void 0:jr.data,sr,$l,Te),_r}else{const cl=(Cr=(Er=(Ir=H==null?void 0:H.data)==null?void 0:Ir.data)==null?void 0:Er.path)==null?void 0:Cr.path;let sr="";return(ln=(yn=(cr=(Br=(mn=cl==null?void 0:cl.split("("))==null?void 0:mn[1])==null?void 0:Br.split(")"))==null?void 0:cr[0])==null?void 0:yn.split(":"))==null||ln.forEach(_r=>{var Kl,fr;sr=sr===""?sr+((Kl=_r==null?void 0:_r.replaceAll("'",""))==null?void 0:Kl.trim()):sr+"/"+((fr=_r==null?void 0:_r.replaceAll("'",""))==null?void 0:fr.trim())}),await ge((Bn=(Sn=(rn=H==null?void 0:H.data)==null?void 0:rn.data)==null?void 0:Sn.data)==null?void 0:Bn[lr==null?void 0:lr[0]],sr,lr)}}}}});if(await Promise.all(da),(ve==null?void 0:ve.length)>0){let ea=[];ve==null||ve.forEach(Ne=>{ea!=null&&ea.find(We=>{var Ta,Ca,Qe,Va;return((Ca=(Ta=We==null?void 0:We.value)==null?void 0:Ta.pageData)==null?void 0:Ca.name)===((Va=(Qe=Ne==null?void 0:Ne.value)==null?void 0:Qe.pageData)==null?void 0:Va.name)})||ea.push(Ne)});let ce=[];ea==null||ea.forEach(Ne=>{var Ca,Qe,Va,re;let We=A.cloneDeep(Ne);We.value.pageData.compData=(Ca=We.value.pageData.compData)==null?void 0:Ca.map(X=>{var Z;return(X==null?void 0:X.key)==="formContent"&&(X.contents=(Z=X.contents)==null?void 0:Z.map(q=>{var Je,ra,ba,ga;let Be=(Je=A.cloneDeep(ve))==null?void 0:Je.find(Aa=>(Aa==null?void 0:Aa.keyType)===(q==null?void 0:q.key));if(Be){let Aa=(ga=(ba=(ra=Be.value.pageData.compData)==null?void 0:ra.find(_a=>(_a==null?void 0:_a.key)==="formContent"))==null?void 0:ba.contents)==null?void 0:ga.find(_a=>(_a==null?void 0:_a.key)===(q==null?void 0:q.key));q.value=Aa==null?void 0:Aa.value}return q})),X}),ce.push({id:We==null?void 0:We.id,value:We==null?void 0:We.value});let Ta=[];(re=(Va=(Qe=We==null?void 0:We.value)==null?void 0:Qe.pageData)==null?void 0:Va.compData)==null||re.forEach(X=>{var Z;(X==null?void 0:X.key)==="formContent"&&((Z=X==null?void 0:X.contents)==null||Z.forEach(q=>{var Be,Je,ra,ba,ga,Aa;if((Je=(Be=q==null?void 0:q.optionUrl)==null?void 0:Be.menuSelect)!=null&&Je.find(_a=>_a==null?void 0:_a.includes("[")))if(Ta!=null&&Ta.find(_a=>{var Oe,Za,Ha;return((Oe=_a==null?void 0:_a.key)==null?void 0:Oe.join(","))===((Ha=(Za=q==null?void 0:q.optionUrl)==null?void 0:Za.menuSelect)==null?void 0:Ha.join(","))})){let _a=(ra=Ta==null?void 0:Ta.find(Oe=>{var Za,Ha,xl;return((Za=Oe==null?void 0:Oe.key)==null?void 0:Za.join(","))===((xl=(Ha=q==null?void 0:q.optionUrl)==null?void 0:Ha.menuSelect)==null?void 0:xl.join(","))}))==null?void 0:ra.value;_a.push({key:q==null?void 0:q.prop,groups:(ba=q==null?void 0:q.optionUrl)==null?void 0:ba.groupSelect,value:q==null?void 0:q.value}),Ta=Ta==null?void 0:Ta.map(Oe=>{var Za,Ha,xl;return((Za=Oe==null?void 0:Oe.key)==null?void 0:Za.join(","))===((xl=(Ha=q==null?void 0:q.optionUrl)==null?void 0:Ha.menuSelect)==null?void 0:xl.join(","))&&(Oe.value=_a),Oe})}else Ta.push({key:(ga=q==null?void 0:q.optionUrl)==null?void 0:ga.menuSelect,value:[{key:q==null?void 0:q.prop,groups:(Aa=q==null?void 0:q.optionUrl)==null?void 0:Aa.groupSelect,value:q==null?void 0:q.value}]})}))}),(Ta==null?void 0:Ta.length)>0&&(Ta=Ta==null?void 0:Ta.map(X=>{var q;let Z="";return(q=X==null?void 0:X.key)==null||q.forEach(Be=>{var Je;if(!(Be!=null&&Be.includes("[")))Z=Z===""?Z+Be:Z+"/"+Be;else{let ra="",ba=(Je=Be==null?void 0:Be.replaceAll("[","").replaceAll("]",""))==null?void 0:Je.split(":");Ue==null||Ue.forEach(ga=>{var Aa;(ga==null?void 0:ga.name)===(ba==null?void 0:ba[0])&&((Aa=ga==null?void 0:ga.compData)==null||Aa.forEach(_a=>{var Oe;(_a==null?void 0:_a.key)==="formContent"&&((Oe=_a==null?void 0:_a.contents)==null||Oe.forEach(Za=>{(Za==null?void 0:Za.prop)===(ba==null?void 0:ba[1])&&(ra=Za==null?void 0:Za.value)}))}))}),Z=Z+n.value+ra}}),X.key=Z,X})),Ta==null||Ta.forEach(X=>{var Je,ra,ba;let Z=(Je=Te[X.key])==null?void 0:Je.find(ga=>{var Aa,_a,Oe,Za,Ha,xl,Yl;return((_a=(Aa=ga==null?void 0:ga.value)==null?void 0:Aa.pageData)==null?void 0:_a.name)===((Ha=(Za=(Oe=X==null?void 0:X.value)==null?void 0:Oe[0])==null?void 0:Za.groups)==null?void 0:Ha[0])&&((Yl=(xl=ga==null?void 0:ga.value)==null?void 0:xl.pageData)==null?void 0:Yl.name)!==void 0}),q=Z==null?void 0:Z.id,Be=(ra=Z==null?void 0:Z.value)==null?void 0:ra.pageData;Be.compData=(ba=Be.compData)==null?void 0:ba.map(ga=>{var Aa;return(ga==null?void 0:ga.key)==="formContent"&&(ga.contents=(Aa=ga.contents)==null?void 0:Aa.map(_a=>{var Za;let Oe=(Za=X.value)==null?void 0:Za.find(Ha=>(Ha==null?void 0:Ha.key)===(_a==null?void 0:_a.prop));return Oe&&(_a.value=Oe.value),_a})),ga}),ce.push({id:q,value:{pageData:Be}})})});let pa=(oe=A.cloneDeep(ve))==null?void 0:oe[0];(ce==null?void 0:ce.length)>0&&await Ar.batchUpdateInsofDataApi({dataList:ce})}m.setFreshContent(!0)}c.setImportLoading(!1)}catch{qa.ElMessage.error("方法执行错误,请查看方法!"),c.setImportLoading(!1)}w.value=!0},de=["createInsofDataApi"],Ce=Nl.debounce(async ye=>{ae(ye)},100),Fe=async ye=>{var Pe,la,Da;const T=A.cloneDeep(ye);let ue,U=new WeakMap;ye!=null&&ye[0].path&&(ue=await(T==null?void 0:T.map(async(le,ta)=>{var Ja,L,H,Q,me,ve,da,ea,ce,pa,Ne,We,Ta,Ca,Qe,Va;const ca=(Ja=U[le==null?void 0:le.path])==null?void 0:Ja.filter(re=>{var X;return((X=re==null?void 0:re.key)==null?void 0:X.type)==="data"});let Ee="";const oe=await he.getItemData(E.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,U);ca==null||ca.forEach(re=>{var X,Z,q,Be,Je;((Z=(X=re==null?void 0:re.value)==null?void 0:X.tableData)==null?void 0:Z.算法名称)===((q=T==null?void 0:T[ta])==null?void 0:q.method)&&(Ee=(Je=(Be=re==null?void 0:re.value)==null?void 0:Be.tableData)==null?void 0:Je.算法体)});const Te=await he.getItemData(le==null?void 0:le.path,sessionStorage.getItem("systemKey"),"",!1,[],!1,U);let Ue="",oa=(me=(Q=(H=(L=Te==null?void 0:Te[0])==null?void 0:L.compData)==null?void 0:H.find(re=>(re==null?void 0:re.key)==="header"))==null?void 0:Q.contents)==null?void 0:me.findIndex(re=>(re==null?void 0:re.prop)==="算法体");return(da=(ve=Te==null?void 0:Te[0])==null?void 0:ve.compData)==null||da.forEach(re=>{var X;(re==null?void 0:re.key)==="tableContents"&&((X=re==null?void 0:re.contents)==null||X.forEach(Z=>{Z!=null&&Z.find(q=>q===(le==null?void 0:le.method))&&(Ue=Z[oa])}))}),{buttonName:((ea=T==null?void 0:T[ta])==null?void 0:ea.method)||((Ne=(pa=(ce=ca==null?void 0:ca[0])==null?void 0:ce.value)==null?void 0:pa.tableData)==null?void 0:Ne.算法名称),api:(Ee===""?(Ca=(Ta=(We=ca==null?void 0:ca[0])==null?void 0:We.value)==null?void 0:Ta.tableData)==null?void 0:Ca.算法体:Ee)||Ue,content:oe==null?void 0:oe.filter(re=>re.comp!=="methodButton"),extraContent:(Qe=A.cloneDeep(le.value))==null?void 0:Qe.slice(1),methodName:(le==null?void 0:le.path)??"",extraValues:(Va=T==null?void 0:T[ta])==null?void 0:Va.data}})));const Se=T==null?void 0:T.map(async le=>{var Te,Ue,oa,Ja,L,H;const ta=(Te=resAll.data.result)==null?void 0:Te.filter(Q=>{var me,ve,da;return((me=Q==null?void 0:Q.key)==null?void 0:me.parentTable)===""&&((ve=Q==null?void 0:Q.key)==null?void 0:ve.type)==="method"&&((da=Q==null?void 0:Q.key)==null?void 0:da.methodName)===Q.method}),te=ta==null?void 0:ta[0],ca=(Ue=resAll.data.result)==null?void 0:Ue.filter(Q=>{var me,ve;return((me=Q==null?void 0:Q.key)==null?void 0:me.type)==="methodData"&&((ve=Q==null?void 0:Q.key)==null?void 0:ve.tableId)===(te==null?void 0:te.id)}),Ee=await he.getItemData(E.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,U),oe=ca==null?void 0:ca[0];return{buttonName:(oa=te==null?void 0:te.key)==null?void 0:oa.methodKey,api:(L=(Ja=oe==null?void 0:oe.value)==null?void 0:Ja.tableData)==null?void 0:L[0],content:Ee==null?void 0:Ee.filter(Q=>Q.comp!=="methodButton"),extraContent:(H=A.cloneDeep(le.value))==null?void 0:H.slice(1),methodName:(le==null?void 0:le.method)??""}}),Le=(Pe=ye==null?void 0:ye[0])!=null&&Pe.path&&((la=ye==null?void 0:ye[0])==null?void 0:la.path)!==""?await Promise.all(ue):await Promise.all(Se);l.value=Le==null?void 0:Le.filter(le=>le==null?void 0:le.extraContent),(Da=l.value)==null||Da.forEach(le=>{var ta;le.api===""&&((ta=le.content)==null||ta.forEach(te=>{var ca;te.comp=="Table"&&m.setExtraContents(he.methodTableToContent(te.compData,(ca=le.extraContent)==null?void 0:ca[0]))}))})};return e.watch(()=>t.itemData,async()=>{S.value=="view"&&!w.value&&await Fe(A.cloneDeep(t.itemData)),w.value=!1},{immediate:!0,deep:!0}),(ye,T)=>{var ue,U,Se;return e.unref(S)!=="edit"?(e.openBlock(),e.createElementBlock("div",Q2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((ue=l.value)==null?void 0:ue.filter(Le=>(Le==null?void 0:Le.buttonName)!=="保存"),Le=>{var Pe;return e.openBlock(),e.createElementBlock("div",null,[Le.api!==""?(e.openBlock(),e.createBlock(e.unref(as._sfc_main),{key:0,disabled:e.unref(R)===e.unref(E)&&!((Pe=Le==null?void 0:Le.buttonName)!=null&&Pe.includes("预览")),class:"calculator-content",modelValue:Le.buttonName,onClickTrigger:la=>e.unref(Ce)(Le),loading:g.value},null,8,["disabled","modelValue","onClickTrigger","loading"])):e.createCommentVNode("",!0)])}),256)),e.createElementVNode("div",null,[e.unref(K)!==""&&((Se=e.unref(E))==null?void 0:Se[((U=e.unref(E))==null?void 0:U.length)-1])!==e.unref(n)?(e.openBlock(),e.createBlock(e.unref(as._sfc_main),{key:0,class:"calculator-content",onClickTrigger:$,modelValue:"保存"})):e.createCommentVNode("",!0)]),s.value?(e.openBlock(),e.createBlock(ll.ssFilePreview,{key:0,fileDataList:v.value,onDestroy:F},null,8,["fileDataList"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)}}},a4=Xl._export_sfc(e4,[["__scopeId","data-v-063aa9af"]]),l4={};function r4(a,l){return" 567 "}const n4=Xl._export_sfc(l4,[["render",r4]]),i4={class:"module content"},o4={class:"module data"},t4={class:"module layout"},s4={class:"form-content"},c4=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const r=a,n=l,t=e.reactive({visible:!1,width:"40%",title:"签名配置"}),s=e.ref("create"),v=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),p=e.ref([{label:"宽度(%):",prop:"signPadWidth",type:"number",value:"30"},{label:"弹窗名称:",prop:"dialogTitle",type:"input",value:""},{label:"弹窗宽度(%):",prop:"dialogWidth",type:"number",value:"30"},{label:"弹窗显示:",prop:"dialogShow",type:"radio",contents:[{label:"显示",value:!0},{label:"隐藏",value:!1}],value:!1,isFormColHidden:!0},{label:"路径:",prop:"url",type:"input",value:"",isFormColHidden:!0}]),f=e.computed(()=>[{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"类型:",prop:"label",type:"select",contents:[{label:"电子签名",value:"电子签名"},{label:"签字版",value:"签字版"},{label:"上传签名",value:"上传签名"}],value:""},{label:"图标",prop:"icon",type:"inputPopover",value:""}]),m=e.ref({}),g=e.ref([]),c=()=>({comp:"Signature",compData:[{key:"signTypeList",contents:g.value},{key:"signConfig",contents:m.value}]}),D=I=>{var R;m.value=A.cloneDeep(I),n("change",(R=c())==null?void 0:R.compData)},M=I=>{var R,j;if((I==null?void 0:I.buttonName)==="确认"){const E=A.cloneDeep(I==null?void 0:I.content);switch(s.value){case"create":g.value.push({...E,index:((R=g.value)==null?void 0:R.length)+1});break}n("change",(j=c())==null?void 0:j.compData),t.visible=!1}else t.visible=!1},S=(I,R)=>{var j,E;switch(I){case"create":(j=f.value)==null||j.forEach(x=>{x.value=""}),s.value="create",t.visible=!0;break;case"update":(E=f.value)==null||E.forEach(x=>{x.value=R[x==null?void 0:x.prop]}),s.value="update",t.visible=!0;break;case"delete":g.value.splice(R,1),s.value="delete";break}},K=()=>{t.visible=!1};return e.watch(()=>r==null?void 0:r.itemContents,I=>{var R,j;I&&(m.value=((R=I==null?void 0:I.find(E=>E.key==="signConfig"))==null?void 0:R.contents)??{},g.value=((j=I==null?void 0:I.find(E=>E.key==="signTypeList"))==null?void 0:j.contents)??[])},{immediate:!0}),(I,R)=>{const j=e.resolveComponent("svg-icon"),E=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",i4,[R[2]||(R[2]=e.createElementVNode("h4",{class:"module-title"},"签名类型",-1)),e.createVNode(E,{class:"module-icon",id:"themeButton",onClick:R[0]||(R[0]=x=>S("create"))},{icon:e.withCtx(()=>[e.createVNode(j,{name:"Plus",class:"icon-size"})]),default:e.withCtx(()=>[R[1]||(R[1]=e.createTextVNode(" 新增 "))]),_:1,__:[1]})]),e.createElementVNode("div",o4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(x,k)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:k},[e.createElementVNode("span",null,e.toDisplayString(x==null?void 0:x.label),1),e.createElementVNode("div",null,[e.createVNode(E,{type:"primary",size:"small",onClick:b=>S("update",{...x,index:k+1})},{default:e.withCtx(()=>R[3]||(R[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(E,{type:"danger",size:"small",onClick:b=>S("delete",k)},{default:e.withCtx(()=>R[4]||(R[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",t4,[e.createVNode(ll.ssForm,{rowContents:p.value,onChange:D},null,8,["rowContents"])])]),e.createVNode(wr.ssDialog,{visible:t.visible,title:t.title,onBeforeDestroy:K,width:t.width},{default:e.withCtx(()=>[e.createElementVNode("div",s4,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:f.value,key:f.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:v.value,onOnButtonClick:M},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),u4=Xl._export_sfc(c4,[["__scopeId","data-v-487e0536"]]),d4=e.defineComponent({__name:"index",props:{stepConfig:{type:Object,default:{}},stepList:{type:Array,default:()=>[]}},emits:["clickStep","clickTrigger","changeTrigger"],setup(a,{emit:l}){const r=a,n=l,t=e.ref(0),s=e.computed(()=>{var c,D;return(c=r==null?void 0:r.stepConfig)!=null&&c.allowTrigger?t.value:(D=r==null?void 0:r.stepConfig)==null?void 0:D.active}),v=(c,D)=>{t.value=D-1,n("clickStep",c,D)};e.onMounted(()=>{var c;n("clickStep",(c=r==null?void 0:r.stepList)==null?void 0:c[0],0)});const p=c=>ll.getComponent(c),f=()=>{var D;const c=(D=r==null?void 0:r.stepList)==null?void 0:D.find((M,S)=>S+1===s.value);return console.log("findStep",c),c?c==null?void 0:c.children:[]},m=c=>{n("clickTrigger",c)},g=c=>{n("changeTrigger",c)};return(c,D)=>{var K,I,R,j,E;const M=e.resolveComponent("el-step"),S=e.resolveComponent("el-steps");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(S,{direction:(K=a.stepConfig)==null?void 0:K.direction,active:s.value,"finish-status":"success",simple:(I=a.stepConfig)==null?void 0:I.simple,"align-center":((R=a.stepConfig)==null?void 0:R.alignCenter)??!0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.stepList,(x,k)=>(e.openBlock(),e.createBlock(M,{key:k,class:"step-item",onClick:b=>v(x,k+1)},{title:e.withCtx(()=>[e.renderSlot(c.$slots,"title",{title:x==null?void 0:x.title},void 0,!0)]),description:e.withCtx(()=>[e.renderSlot(c.$slots,"description",{descriptions:x==null?void 0:x.description},void 0,!0)]),_:2},1032,["onClick"]))),128))]),_:3},8,["direction","active","simple","align-center"]),(j=a.stepConfig)!=null&&j.allowTrigger&&((E=a.stepConfig)!=null&&E.active)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(f(),(x,k)=>(e.openBlock(),e.createElementBlock("div",{key:k,class:"step-cont-wrap"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(p(x==null?void 0:x.type)),{modelValue:x.value,"onUpdate:modelValue":b=>x.value=b,onClickTrigger:m,onChangeTrigger:g,content:x==null?void 0:x.content},e.createSlots({_:2},[e.renderList(c.$slots,(b,w)=>({name:w,fn:e.withCtx($=>[e.renderSlot(c.$slots,w,e.mergeProps({ref_for:!0},$||{}),void 0,!0)])}))]),1064,["modelValue","onUpdate:modelValue","content"]))]))),128)):e.createCommentVNode("",!0)],64)}}}),p4=Xl._export_sfc(d4,[["__scopeId","data-v-fdbd6832"]]),f4=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]}},emits:["clickStep"],setup(a,{emit:l}){const r=a,n=l,t=e.ref({}),s=e.ref([]),v=(p,f)=>{n("clickStep",p,f)};return e.watch(()=>r==null?void 0:r.itemData,p=>{var c,D,M,S;t.value={direction:"horizontal",simple:!1,alignCenter:!0,allowTrigger:!0};let f=((c=p==null?void 0:p.find(K=>(K==null?void 0:K.key)==="stepName"))==null?void 0:c.contents)??[],m=[];(M=(D=p==null?void 0:p.find(K=>(K==null?void 0:K.key)==="header"))==null?void 0:D.contents)==null||M.forEach(K=>{m.push({label:K==null?void 0:K.label,prop:K==null?void 0:K.prop,name:K==null?void 0:K.prop,type:"text",disabled:!0})});let g=((S=p==null?void 0:p.find(K=>(K==null?void 0:K.key)==="tableContents"))==null?void 0:S.contents)??[];f=f==null?void 0:f.map((K,I)=>{let R=m==null?void 0:m.map(j=>{var E;return{...j,value:(E=g==null?void 0:g[I])==null?void 0:E[j==null?void 0:j.prop]}});return{title:K,description:R}}),s.value=f},{immediate:!0,deep:!0}),(p,f)=>{const m=e.resolveComponent("svg-icon");return e.openBlock(),e.createBlock(p4,{stepConfig:t.value,stepList:s.value,onClickStep:v},{icon:e.withCtx(()=>[e.createVNode(m,{name:"import"})]),title:e.withCtx(({title:g})=>[e.createTextVNode(e.toDisplayString(g),1)]),description:e.withCtx(({descriptions:g})=>[e.createVNode(ll.ssForm,{ref:"formRef",rowContents:g,showOperator:!0,isEnableWrap:!1,isEdit:!1},null,8,["rowContents"])]),_:1},8,["stepConfig","stepList"])}}}),h4=e.defineComponent({__name:"index",props:{activities:{type:Array,default:()=>[]},timeLineConfig:{type:Object,default:()=>{}}},setup(a){return(l,r)=>{const n=e.resolveComponent("el-timeline-item"),t=e.resolveComponent("el-timeline");return e.openBlock(),e.createBlock(t,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.activities,(s,v)=>(e.openBlock(),e.createBlock(n,{key:v,timestamp:s.timestamp,placement:a.timeLineConfig.placement,center:a.timeLineConfig.isCenter,"hide-timestamp":!0,type:a.timeLineConfig.type,color:a.timeLineConfig.color,size:a.timeLineConfig.size,icon:a.timeLineConfig.icon,hollow:a.timeLineConfig.isHollow},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"content",{content:s==null?void 0:s.content,timestamp:s==null?void 0:s.timestamp},void 0,!0)]),_:2},1032,["timestamp","placement","center","type","color","size","icon","hollow"]))),128))]),_:3})}}}),v4=Xl._export_sfc(h4,[["__scopeId","data-v-4172a886"]]),m4={class:"line-content"},y4={class:"line-time"},g4=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},setup(a){const l=a,r=e.ref({}),n=e.ref([]);return e.watch(()=>l==null?void 0:l.itemData,t=>{var s,v;n.value=(s=t==null?void 0:t.find(p=>(p==null?void 0:p.key)==="timeLineList"))==null?void 0:s.contents,r.value=(v=t==null?void 0:t.find(p=>(p==null?void 0:p.key)==="timeLineConfig"))==null?void 0:v.contents},{immediate:!0}),(t,s)=>(e.openBlock(),e.createBlock(v4,{activities:n.value,timeLineConfig:r.value},{content:e.withCtx(({content:v,timestamp:p})=>[e.createElementVNode("span",m4,e.toDisplayString(v),1),e.createElementVNode("span",y4,e.toDisplayString(p),1)]),_:1},8,["activities","timeLineConfig"]))}}),b4=Xl._export_sfc(g4,[["__scopeId","data-v-b4d9deed"]]),k4={class:"tabs-content"},x4=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},tabsData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,compNames:{type:String,default:""},cacheNewData:{type:Object},isDevMode:{type:Boolean},allMapContents:{type:Array,default:()=>[]}},emits:["change","contentChange","pageChange","rowClick","routeUrl","clickTrigger","clickMainKey"],setup(a,{emit:l}){const r=a,n=l,t=e.ref();e.watch(()=>r==null?void 0:r.itemData,()=>{t.value=r==null?void 0:r.itemData},{immediate:!0,deep:!0});const s=D=>{n("change",D)},v=(D,M)=>{n("contentChange",D,M)},p=D=>{n("pageChange",D)},f=D=>{n("rowClick",D)},m=(D,M)=>{n("routeUrl",D,M)},g=D=>{n("clickTrigger",D)},c=(D,M)=>{n("clickMainKey",D,M)};return(D,M)=>{var S,K;return e.openBlock(),e.createElementBlock("div",k4,[(S=t.value)!=null&&S.length?(e.openBlock(),e.createBlock(ll.ssTab,{tabsContents:t.value,key:(K=t.value)==null?void 0:K.length},{pane:e.withCtx(({tab:I,index:R})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Ki)(I==null?void 0:I.comp)),{related:I==null?void 0:I.relatedTables,compNames:r==null?void 0:r.compNames,compName:I==null?void 0:I.name,cacheNewData:r==null?void 0:r.cacheNewData,isDevMode:a.isDevMode,itemData:I==null?void 0:I.compData,childItemData:I==null?void 0:I.itemChildData,onChange:s,index:(I==null?void 0:I.id)??R,config:{showIndex:I==null?void 0:I.showIndex,allowMove:I==null?void 0:I.allowMove,viewport:I==null?void 0:I.viewport,status:I==null?void 0:I.status},onContentChange:v,onPageChange:p,onRowClick:f,onRouteUrl:m,parentTableId:I==null?void 0:I.tableId,allMapContents:a.allMapContents,children:I==null?void 0:I.children,level:1,onClickTrigger:g,onClickMainKey:c},null,40,["related","compNames","compName","cacheNewData","isDevMode","itemData","childItemData","index","config","parentTableId","allMapContents","children"]))]),_:1},8,["tabsContents"])):e.createCommentVNode("",!0)])}}}),w4=Xl._export_sfc(x4,[["__scopeId","data-v-1ea318b4"]]),_4={class:"type-select"},S4=["onClick"],E4={class:"list-icon"},C4={__name:"modelSelect",setup(a){const l=Un(A.pinia),{itemData:r}=A.storeToRefs(l),n=t=>{const s=A.cloneDeep(r.value);s.push({comp:t.comp,name:t.name,compData:[]}),l.setItemData(s)};return(t,s)=>{const v=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",_4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ru),(p,f)=>(e.openBlock(),e.createElementBlock("div",{class:"type-list",key:f},[e.createElementVNode("div",{class:"list-content",onClick:m=>n(p)},[e.createElementVNode("div",E4,[e.createVNode(v,{name:p.icon},null,8,["name"])]),e.createElementVNode("div",null,e.toDisplayString(p.name),1)],8,S4)]))),128))])}}},D4=Xl._export_sfc(C4,[["__scopeId","data-v-91799bf8"]]),B4={class:"fill-content"},N4={class:"operate-content"},T4={class:"collapse-title-content"},A4={class:"collapse-title-item"},z4={key:1},M4=["onClick"],I4={class:"icon-content"},O4={key:0,class:"edit-content"},L4=["onClick"],R4={class:"comp-child"},$4={__name:"modelFill",setup(a){const l=Un(A.pinia),{itemData:r,originalData:n}=A.storeToRefs(l),t=e.ref([]);e.ref([]);const s=e.ref([]),v=e.ref([]),p=M=>{var K;let S=(K=A.cloneDeep(v.value))==null?void 0:K.map((I,R)=>(M===R&&(I.content=!0),I));v.value=S},f=M=>{var K;let S=(K=A.cloneDeep(v.value))==null?void 0:K.map((I,R)=>(M===R&&(I.content=!1),I));v.value=S,t.value=A.cloneDeep(r.value)},m=(M,S)=>{var j;let K=(j=A.cloneDeep(v.value))==null?void 0:j.map((E,x)=>(M===x&&(E.content=!1),E));v.value=K;const I=A.cloneDeep(r.value),R=I==null?void 0:I.filter((E,x)=>(x===M&&(E.name=S),E));l.setOriginalData(R),l.setItemData(R)};e.watch(()=>r.value,()=>{var M,S,K;!r.value||((M=r.value)==null?void 0:M.length)===0?t.value=[]:t.value=(S=A.cloneDeep(r.value))==null?void 0:S.filter(I=>(I==null?void 0:I.comp)!=="methodButton"),s.value=t.value,v.value=(K=A.cloneDeep(s.value))==null?void 0:K.map((I,R)=>({id:R,content:!1}))},{deep:!0,immediate:!0});const g=M=>Bi(M),c=(M,S,K)=>{var R,j;if(!M)return;let I=A.cloneDeep(r.value);I=(R=I==null?void 0:I.map((E,x)=>(x===K&&(E.compData=M),E)))==null?void 0:R.filter(E=>(E==null?void 0:E.comp)!=="methodButton"),v.value=(j=A.cloneDeep(I))==null?void 0:j.map((E,x)=>({id:x,content:!1})),l.setOriginalData(I),l.setItemData(I)},D=M=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const S=A.cloneDeep(r.value),K=S==null?void 0:S.filter((I,R)=>R!==M);l.setOriginalData(K),l.setItemData(K),qa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(M,S)=>{const K=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",B4,[S[1]||(S[1]=e.createElementVNode("div",{class:"fill-operate"},e.toDisplayString("操作栏"),-1)),e.createElementVNode("div",N4,[e.createVNode(Ys.default,{class:"collapse-content",collapseContents:t.value},{title:e.withCtx(({item:I,index:R})=>{var j,E,x,k,b,w,$,F,J,se;return[e.createElementVNode("div",T4,[e.createElementVNode("div",A4,[(E=(j=v.value)==null?void 0:j.find(ge=>ge.id===R))!=null&&E.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"collapse-title",style:e.normalizeStyle({marginRight:I.name&&I.name!==""?"8px":"0px"})},e.toDisplayString(I.name),5)),(k=(x=v.value)==null?void 0:x.find(ge=>ge.id===R))!=null&&k.content?(e.openBlock(),e.createElementBlock("div",z4,[e.createVNode(ll.ssInput,{modelValue:I.name,"onUpdate:modelValue":ge=>I.name=ge,onClick:S[0]||(S[0]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):e.createCommentVNode("",!0),(w=(b=v.value)==null?void 0:b.find(ge=>ge.id===R))!=null&&w.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:e.withModifiers(ge=>p(R),["stop"]),class:"icon-content"},[e.createVNode(K,{name:"Edit",style:{width:"16px",height:"16px"}})],8,M4))]),e.createElementVNode("div",I4,[(F=($=v.value)==null?void 0:$.find(ge=>ge.id===R))!=null&&F.content?(e.openBlock(),e.createElementBlock("div",O4,[e.createVNode(K,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:e.withModifiers(ge=>f(R),["stop"])},null,8,["onClick"]),e.createVNode(K,{name:"Save",onClick:e.withModifiers(ge=>m(R,I.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):e.createCommentVNode("",!0),(se=(J=v.value)==null?void 0:J.find(ge=>ge.id===R))!=null&&se.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:e.withModifiers(ge=>D(R),["stop"]),class:"icon-content"},[e.createVNode(K,{name:"Delete",style:{width:"16px",height:"16px"}})],8,L4))])])]}),content:e.withCtx(({item:I,index:R})=>{var j,E;return[e.createElementVNode("div",R4,[e.createTextVNode(e.toDisplayString(g(I.comp+"Operate"))+" ",1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(g(I.comp+"Operate")),{itemContents:I==null?void 0:I.compData,originalItemContents:(E=(j=s.value)==null?void 0:j.find((x,k)=>k===R))==null?void 0:E.compData,onChange:x=>c(x,I,R)},null,40,["itemContents","originalItemContents","onChange"]))])]}),_:1},8,["collapseContents"])])])}}},V4=Xl._export_sfc($4,[["__scopeId","data-v-a46a44b9"]]),F4={key:0,class:"show-content"},P4={style:{display:"flex"}},j4={__name:"modelShow",setup(a){const l=Un(A.pinia),{itemData:r}=A.storeToRefs(l),n=e.ref([]);e.watch(()=>r.value,()=>{var s;!r.value||((s=r.value)==null?void 0:s.length)===0?n.value=[]:n.value=A.cloneDeep(r.value)},{deep:!0,immediate:!0});const t=s=>Bi(s);return(s,v)=>{var p;return((p=n.value)==null?void 0:p.length)>0?(e.openBlock(),e.createElementBlock("div",F4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(f,m)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:m},[e.createElementVNode("div",P4,e.toDisplayString(f.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t(f.comp)),{itemData:f==null?void 0:f.compData,childItemData:f==null?void 0:f.itemChildData,key:m},null,8,["itemData","childItemData"]))]))),128))])):e.createCommentVNode("",!0)}}},H4=Xl._export_sfc(j4,[["__scopeId","data-v-3f3e863e"]]),U4={class:"tabs-header"},q4={class:"tabs-list"},W4={class:"tab-name"},K4={class:"tab-actions"},G4=["onClick"],Y4=["onClick"],J4=["onClick"],X4={class:"model-operate"},Z4={class:"model-select",style:{display:"unset"}},Q4={class:"existing-components"},e6={class:"component-list"},a6=["onClick"],l6={class:"component-info"},r6={class:"component-type"},n6={class:"component-name"},i6={class:"model-fill"},o6={__name:"operate",props:{itemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const r=a,n=l,t=e.ref([]),s=e.ref(!1),v=e.ref(""),p=e.ref({title:""}),f=e.ref(-1),m=e.ref(!1),g=e.ref(-1),c=e.ref(new WeakMap),D=e.ref(null),M=Un(A.pinia),{itemData:S}=A.storeToRefs(M),K=()=>{v.value="新增标签页",p.value.title="",f.value=-1,s.value=!0},I=ye=>{v.value="修改标签页",p.value.title=t.value[ye].title,f.value=ye,s.value=!0},R=ye=>{const T=x(ye);c.value.delete(T),t.value.splice(ye,1),Fe()},j=()=>{if(p.value.title.trim()){if(f.value===-1){const ye={title:p.value.title,value:p.value.title,label:p.value.title,children:[],id:E()};t.value.push(ye)}else t.value[f.value].title=p.value.title,t.value[f.value].value=p.value.title,t.value[f.value].label=p.value.title;s.value=!1,Fe()}},E=()=>`tab_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,x=ye=>{const T=t.value[ye];return T.id||(T.id=E()),T.id},k=ye=>{var U;g.value=ye;const T=x(ye);D.value=A.cloneDeep(S.value);let ue=c.value.get(T);!ue&&((U=t.value[ye].children)==null?void 0:U.length)>0&&(ue=F(t.value[ye].children)),ue?M.setItemData(A.cloneDeep(ue)):M.setItemData([]),m.value=!0},b=e.computed(()=>{const ye=A.useModelComp(A.pinia),T=A.storeToRefs(ye).itemData.value;return console.log("可用组件数据",T),!T||!Array.isArray(T)?[]:T.filter(ue=>{var U;if(ue.comp==="Tabs"&&g.value>=0){const Se=x(g.value);if((U=ue.compData)==null?void 0:U.some(Pe=>{var la;return Pe.key==="stepList"&&((la=Pe.contents)==null?void 0:la.some(Da=>Da.id===Se))}))return!1}return!0})}),w=ye=>({Table:"表格",Form:"表单",Tabs:"标签页",Chart:"图表",Card:"卡片"})[ye]||ye,$=ye=>{var T;try{const ue=A.cloneDeep(ye);ue.id=Date.now()+Math.random(),ue.comp==="Tabs"&&((T=ue.compData)==null||T.forEach(Se=>{Se.key==="stepList"&&Se.contents&&Se.contents.forEach(Le=>{Le.id=E()})}));const U=A.cloneDeep(S.value);U.push(ue),M.setItemData(U)}catch(ue){console.error("添加组件失败:",ue)}},F=ye=>ye.map(T=>{var ue;switch(T.type){case"form":return{comp:"Form",name:T.value||"表单",compData:J(T.content)};case"table":return{comp:"Table",name:T.value||"表格",compData:se(T.content)};default:return{comp:"Unknown",name:T.value||"",compData:((ue=T.content)==null?void 0:ue.originalData)||[]}}}),J=ye=>{if(!ye)return[];const T=[];return ye.rowContents&&T.push({key:"formContent",contents:ye.rowContents}),ye.buttonValue&&T.push({key:"formButton",contents:ye.buttonValue}),typeof ye.isEnableWrap<"u"&&T.push({key:"enableWrap",contents:ye.isEnableWrap}),T},se=ye=>[],ge=()=>{if(g.value>=0&&g.value<t.value.length){const ye=x(g.value);c.value.set(ye,A.cloneDeep(S.value)),t.value[g.value].children=fe(S.value),console.log("保存后的数据",fe(S.value))}m.value=!1,g.value=-1,D.value=null,Fe()},Me=()=>{D.value&&M.setItemData(A.cloneDeep(D.value)),m.value=!1,g.value=-1,D.value=null},V=()=>{m.value&&Me()},fe=ye=>{if(!Array.isArray(ye))throw new Error("sourceData must be an array");return ye.map((T,ue)=>{if(!T||typeof T!="object")return T;const{comp:U,name:Se,compData:Le}=T;switch(U){case"Form":return{type:"form",content:ae(Le||[]),value:"表单"};case"Table":return{type:"table",content:de(Le||[]),value:"表格"};default:return{type:"xxx",content:Ce(Le||[]),value:""}}})},ae=ye=>{const T={formRules:{},rowContents:[],buttonValue:[],rowValues:[],isEnableWrap:!0,isRowFlex:!0,isButtonRow:!0,isEdit:!0,isStartJustify:!0},ue={formContent:"rowContents",enableWrap:"isEnableWrap",formButton:"buttonValue"};return ye.forEach((U,Se)=>{if(!U||typeof U!="object"){console.warn(`Invalid config at index ${Se}:`,U);return}const{key:Le,contents:Pe}=U,la=ue[Le];if(!la){console.warn(`Unknown Form config key: ${Le}`);return}Le==="enableWrap"?T[la]=!!Pe:T[la]=Array.isArray(Pe)?Pe:[]}),T},de=ye=>{const T={columns:[],tableData:[],extraButton:[],rowButton:[],currentPage:0,total:0,pageSize:0,isShowPagination:!0,isShowEdit:!0,isMoveColumn:!0,isShowDelete:!0},ue={header:"columns",tableContents:"tableData"};return ye.forEach((U,Se)=>{if(!U||typeof U!="object"){console.warn(`Invalid config at index ${Se}:`,U);return}const{key:Le,contents:Pe}=U,la=ue[Le];if(!la){console.warn(`Unknown Table config key: ${Le}`);return}T[la]=Array.isArray(Pe)?Pe:[]}),T},Ce=ye=>(console.log("Default conversion logic - to be implemented"),{originalData:ye,processed:!1,componentType:"unknown"}),Fe=()=>{const ye=[{key:"stepList",contents:t.value}];n("change",ye)};return e.watch(()=>r.itemContents,ye=>{if(ye&&ye.length>0){const T=ye.find(ue=>ue.key==="stepList");T&&T.contents&&(t.value=T.contents.map(ue=>({title:ue.title||"",value:ue.value||ue.title||"",label:ue.label||ue.title||"",children:ue.children||[],id:ue.id||E()})))}},{immediate:!0,deep:!0}),(ye,T)=>{const ue=e.resolveComponent("svg-icon"),U=e.resolveComponent("el-input"),Se=e.resolveComponent("el-form-item"),Le=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",U4,[T[6]||(T[6]=e.createElementVNode("h4",null,"标签页管理",-1)),e.createElementVNode("button",{onClick:K},[e.createVNode(ue,{name:"Plus",style:{width:"14px",height:"14px","margin-right":"4px"}}),T[5]||(T[5]=e.createTextVNode(" 新增标签页 "))])]),e.createElementVNode("div",q4,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(Pe,la)=>(e.openBlock(),e.createElementBlock("div",{class:"tab-item",key:la},[e.createElementVNode("span",W4,e.toDisplayString(Pe.title),1),e.createElementVNode("div",K4,[e.createElementVNode("button",{onClick:Da=>I(la)},"修改标题",8,G4),e.createElementVNode("button",{onClick:Da=>k(la)},"布局调整",8,Y4),e.createElementVNode("button",{onClick:Da=>R(la)},"删除",8,J4)])]))),128))]),e.createVNode(wr.ssDialog,{modelValue:s.value,"onUpdate:modelValue":T[2]||(T[2]=Pe=>s.value=Pe),title:v.value,onBeforeDestroy:T[3]||(T[3]=Pe=>s.value=!1)},{footer:e.withCtx(()=>[e.createElementVNode("button",{onClick:T[1]||(T[1]=Pe=>s.value=!1)},"取消"),e.createElementVNode("button",{type:"primary",onClick:j},"确定")]),default:e.withCtx(()=>[e.createVNode(Le,{model:p.value,"label-width":"80px"},{default:e.withCtx(()=>[e.createVNode(Se,{label:"标签名称",required:""},{default:e.withCtx(()=>[e.createVNode(U,{modelValue:p.value.title,"onUpdate:modelValue":T[0]||(T[0]=Pe=>p.value.title=Pe),placeholder:"请输入标签页名称"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),e.createVNode(wr.ssDialog,{modelValue:m.value,"onUpdate:modelValue":T[4]||(T[4]=Pe=>m.value=Pe),title:"布局调整",fullScreen:"",onBeforeDestroy:V},{footer:e.withCtx(()=>[e.createElementVNode("button",{onClick:Me},"取消"),e.createElementVNode("button",{onClick:ge},"确定")]),default:e.withCtx(()=>[e.createElementVNode("div",X4,[e.createElementVNode("div",Z4,[e.createVNode(D4),e.createElementVNode("div",Q4,[T[8]||(T[8]=e.createElementVNode("h5",null,"添加已有组件",-1)),e.createElementVNode("div",e6,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,Pe=>(e.openBlock(),e.createElementBlock("div",{key:Pe.id,class:"component-item",onClick:la=>$(Pe)},[e.createElementVNode("div",l6,[e.createElementVNode("span",r6,e.toDisplayString(w(Pe.comp)),1),e.createElementVNode("span",n6,e.toDisplayString(Pe.name),1)]),T[7]||(T[7]=e.createElementVNode("button",{class:"add-btn"},"添加",-1))],8,a6))),128))])])]),(e.openBlock(),e.createElementBlock("div",{class:"model-show",key:ye.innerWidth},[e.createVNode(H4)])),e.createElementVNode("div",i6,[e.createVNode(V4)])])]),_:1},8,["modelValue"])])}}},t6=Xl._export_sfc(o6,[["__scopeId","data-v-9096ed0d"]]);function s6(){return{title:{text:"",left:"center",top:10,textStyle:{color:"#333",fontSize:18,fontWeight:"bold"}},tooltip:{trigger:"axis"},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",axisLabel:{interval:0},data:[]},yAxis:{type:"value"},series:[]}}function c6(a){return{type:"line",...a}}function u6(){return{title:{text:"",left:"center",top:10,textStyle:{color:"#333",fontSize:18,fontWeight:"bold"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:[{type:"value"}],series:[]}}function d6(a){return{type:"bar",barWidth:"60%",...a}}function p6(){return{title:{text:"",left:"center"},tooltip:{trigger:"item"},series:[]}}function f6(a){return{type:"pie",radius:"50%",emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},...a}}const On={line:{initBaseoptions:s6,initSeries:c6},bar:{initBaseoptions:u6,initSeries:d6},pie:{initBaseoptions:p6,initSeries:f6}},xs=A.useMenuState(A.pinia),Lc=(a,l)=>{var g;const r=[],n=[],{group:t,nameCol:s,valueCol:v}=l||{},p=a==null?void 0:a.find(c=>{const{name:D}=c;return D===t});if(!p)return{names:r,values:n};const f=(g=p==null?void 0:p.compData)==null?void 0:g.find(c=>{const{key:D}=c;return D==="tableContents"});return((f==null?void 0:f.contents)||[]).forEach(c=>{const D=c==null?void 0:c[0];let M=!1;qa.isObject(D)&&(D!=null&&D.id)&&(M=!0);let S=s,K=v;M&&(S=S+1,K=K+1);const I=c==null?void 0:c[S],R=c==null?void 0:c[K];r.push(I),n.push(R)}),{names:r,values:n}},h6=async a=>{const{menu:l,mainKey:r,detailGroup:n,detailNameCol:t,detailValueCol:s,isSelfDetail:v}=a||{};let p=null;const f=sessionStorage.getItem("systemKey");if(v&&xs.activeMenuPath&&(p=await he.getItemData(`${xs.activeMenuPath}`,f,"")),!v){const m=l==null?void 0:l.join("/");p=await he.getItemData(`${m}^${r}`,f,"")}return Lc(p,{group:n,nameCol:t,valueCol:s})},v6=async a=>{const{menu:l,group:r,nameCol:n,valueCol:t}=a||{},s=l==null?void 0:l.join("/"),v=sessionStorage.getItem("systemKey"),p=await he.getItemData(s,v,"");return Lc(p,{group:r,nameCol:n,valueCol:t})},Bt=async(a,l)=>{const r={names:[],values:[]},{menu:n,group:t,nameCol:s,valueCol:v}=a||{};if(!n.length||!t)return r;const{mainKey:p,group:f,nameCol:m,valueCol:g,isSelfDetail:c}=l||{};return p&&f&&ll.isNumber(m)&&ll.isNumber(g)?await h6({menu:n,mainKey:p,detailGroup:f,detailNameCol:m,detailValueCol:g,isSelfDetail:c}):ll.isNumber(s)&&ll.isNumber(v)?await v6({menu:n,group:t,nameCol:s,valueCol:v}):r},m6=async({chartBaseConfig:a,chartDataConfig:l,chartDetailConfig:r})=>{const{type:n,title:t}=a||{},s=On==null?void 0:On[n];if(!s)return;const{initBaseoptions:v,initSeries:p}=s,f=v();f.title.text=t??"";const{names:m,values:g}=await Bt(l,r);if(!m||!g)return f;f.xAxis.data=m;const c=p({data:g});return f.series.push(c),f},y6=async({chartBaseConfig:a,chartDataConfig:l,chartDetailConfig:r})=>{const{type:n,title:t}=a||{},s=On==null?void 0:On[n];if(!s)return;const{initBaseoptions:v,initSeries:p}=s,f=v();f.title.text=t??"";const{names:m,values:g}=await Bt(l,r);if(!m||!g)return f;f.xAxis.data=m;const c=p({data:g});return f.series.push(c),f},g6=async({chartBaseConfig:a,chartDataConfig:l,chartDetailConfig:r})=>{const{type:n,title:t}=a||{},s=On==null?void 0:On[n];if(!s)return;const{initBaseoptions:v,initSeries:p}=s,f=v();f.title.text=t??"";const{names:m,values:g}=await Bt(l,r);if(!m||!g)return f;const c=[];for(let M=0;M<m.length;M++){const S=m[M],K=g[M];c.push({name:S,value:K})}const D=p({data:c});return f.series.push(D),f},b6=async(a=[])=>{var v,p,f;const l=((v=a==null?void 0:a.find(m=>m.key==="chartBaseConfig"))==null?void 0:v.contents)??{},r=((p=a==null?void 0:a.find(m=>m.key==="chartDataConfig"))==null?void 0:p.contents)??{},n=((f=a==null?void 0:a.find(m=>m.key==="chartDetailConfig"))==null?void 0:f.contents)??{},{type:t}=l;let s={};return t==="line"&&(s=await m6({chartBaseConfig:l,chartDataConfig:r,chartDetailConfig:n})),t==="bar"&&(s=await y6({chartBaseConfig:l,chartDataConfig:r,chartDetailConfig:n})),t==="pie"&&(s=await g6({chartBaseConfig:l,chartDataConfig:r,chartDetailConfig:n})),s},k6=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}},height:{type:String,default:"300px"}},setup(a){const l=a,r=e.ref({});e.onMounted(async()=>{const t=l==null?void 0:l.itemData;r.value=await b6(t)});const n=e.computed(()=>(l==null?void 0:l.height)||"300px");return(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:"eCharts",style:e.normalizeStyle({height:n.value})},[e.createVNode(zu.ssChart,{optionContents:r.value},null,8,["optionContents"])],4))}}),x6=Xl._export_sfc(k6,[["__scopeId","data-v-d4c081e8"]]),w6={class:"chart-module layout"},_6={class:"chart-module content"},S6={class:"chart-module content"},E6={class:"form-content"},C6={class:"dialog-footer"},D6={class:"form-content"},B6={class:"dialog-footer"},N6={class:"form-content"},T6={class:"dialog-footer"},A6=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const r=a,n=l,t=e.reactive({visible:!1,width:"840",title:"基础配置"}),s=e.ref([]),v=()=>[{label:"类型",prop:"type",type:"select",contents:[{label:"柱状图",value:"bar"},{label:"饼图",value:"pie"},{label:"折线图",value:"line"}],value:""},{label:"标题",prop:"title",type:"input",value:""}],p=e.ref({}),f=()=>{var Ee;s.value=v(),(Ee=s.value)==null||Ee.forEach(oe=>{var Ue;const Te=oe==null?void 0:oe.prop;oe.value=(Ue=p==null?void 0:p.value)==null?void 0:Ue[Te]}),t.visible=!0},m=Ee=>{p.value=Ee},g=()=>{var Ee;t.visible=!1,n("change",(Ee=te())==null?void 0:Ee.compData)},c=e.reactive({visible:!1,width:"840",title:"数据配置"}),D=e.ref([]),M=()=>[{label:"菜单选项",prop:"menu",type:"cascader",contents:[]},{label:"组信息选项",prop:"group",type:"select",contents:[]},{label:"名称列",prop:"nameCol",type:"select",contents:[]},{label:"取值列",prop:"valueCol",type:"select",contents:[]}],S=e.ref({}),K=()=>{const Ee=D.value,oe=A.cloneDeep(Ee);return oe==null||oe.forEach(Te=>{var oa;const Ue=Te==null?void 0:Te.prop;Te.value=(oa=S.value)==null?void 0:oa[Ue]}),oe},I=Ee=>{var Te;S.value=Ee;const oe=K();D.value=oe,n("change",(Te=te())==null?void 0:Te.compData)},R=async()=>{const Ee=await he.getMenusContent(),oe=K();oe==null||oe.forEach(Te=>{(Te==null?void 0:Te.prop)==="menu"&&(Te.contents=Ee)}),D.value=oe,c.visible=!0,await Pe(S.value.menu),await le(S.value.group)},j=e.reactive({visible:!1,width:"840",title:"详情页配置"}),E=e.ref([]),x=()=>[{label:"详情页主键",prop:"mainKey",type:"select",contents:[]},{label:"使用当前详情页内容",prop:"isSelfDetail",type:"switch"},{label:"组信息选项",prop:"group",type:"select",contents:[]},{label:"名称列",prop:"nameCol",type:"select",contents:[]},{label:"取值列",prop:"valueCol",type:"select",contents:[]}],k=e.ref({}),b=()=>{const Ee=E.value,oe=A.cloneDeep(Ee);return oe==null||oe.forEach(Te=>{var oa;const Ue=Te==null?void 0:Te.prop;Te.value=(oa=k.value)==null?void 0:oa[Ue]}),oe},w=Ee=>{var Te;k.value=Ee;const oe=b();E.value=oe,n("change",(Te=te())==null?void 0:Te.compData)},$=async()=>{await V();const Ee=A.cloneDeep(F.value),oe=b();oe==null||oe.forEach(Te=>{var oa;const Ue=Te==null?void 0:Te.prop;Te.value=(oa=k==null?void 0:k.value)==null?void 0:oa[Ue],Ue==="mainKey"&&(Te.contents=Ee)}),E.value=oe,j.visible=!0},F=e.ref([]),J=e.ref([]),se=e.ref({}),ge=e.ref({}),Me=()=>{const{compData:Ee}=U.value||{},oe=Ee==null?void 0:Ee.find(Q=>{const{key:me}=Q;return me==="header"}),Te=(oe==null?void 0:oe.contents)||[],Ue=Te==null?void 0:Te.filter((Q,me)=>{const{label:ve}=Q;return ve!=="操作"}),oa=Ue==null?void 0:Ue.findIndex((Q,me)=>{const{isMainKey:ve}=Q;return ve});if(oa<0)return[];const Ja=Ee==null?void 0:Ee.find(Q=>{const{key:me}=Q;return me==="tableContents"}),L=(Ja==null?void 0:Ja.contents)||[];return L==null?void 0:L.map(Q=>{const me=Q==null?void 0:Q[0];let ve=oa;qa.isObject(me)&&(me!=null&&me.id)&&(ve=ve+1);const da=Q==null?void 0:Q[ve];return{label:da,value:da}})},V=async()=>{const Ee=await Me();F.value=Ee},fe=async Ee=>{const oe=sessionStorage.getItem("systemKey");return await he.getItemData(Ee,oe,"")},ae=async Ee=>{const oe=Ee;J.value=oe==null?void 0:oe.map(Te=>{const{name:Ue}=Te;return se.value[Ue]=Te,{label:Ue,value:Ue}})},de=Ee=>{const{comp:oe,compData:Te}=ge.value||{};if(oe==="Table"){let Ue=b();Ue=Ue.filter(oa=>{const{prop:Ja}=oa;return Ja!=="formItems"}),la(Ue,Te),E.value=Ue}},Ce=async()=>{var Te,Ue;const Ee=(Te=k==null?void 0:k.value)==null?void 0:Te.mainKey,oe=(Ue=S==null?void 0:S.value)==null?void 0:Ue.menu;if(Ee){const Ja=`${oe==null?void 0:oe.join("/")}^${Ee}`,L=await fe(Ja);await ae(L);const H=b();H==null||H.forEach(Q=>{(Q==null?void 0:Q.prop)==="group"&&(Q.contents=J.value)}),E.value=H}};e.watch(()=>{var Ee;return(Ee=k==null?void 0:k.value)==null?void 0:Ee.mainKey},async(Ee,oe)=>{Ee!=oe&&Ee&&await Ce()});const Fe=async Ee=>{const oe=se.value[Ee];ge.value=oe,await de()};e.watch(()=>{var Ee;return(Ee=k==null?void 0:k.value)==null?void 0:Ee.group},async(Ee,oe)=>{Ee!=oe&&Ee&&Fe(Ee)});const ye=async()=>{var oe;await Ce();const Ee=(oe=k.value)==null?void 0:oe.group;await Fe(Ee)},T=e.ref([]),ue=e.ref({}),U=e.ref({}),Se=async Ee=>{const oe=Ee==null?void 0:Ee.join("/"),Te=sessionStorage.getItem("systemKey");return await he.getItemData(oe,Te,"")},Le=async Ee=>{const oe=await Se(Ee);T.value=oe==null?void 0:oe.map(Te=>{const{name:Ue}=Te;return ue.value[Ue]=Te,{label:Ue,value:Ue}})},Pe=async(Ee,oe)=>{await Le(Ee);const Te=K();Te==null||Te.forEach(Ue=>{(Ue==null?void 0:Ue.prop)==="group"&&(Ue.contents=T.value)}),D.value=Te};e.watch(()=>{var Ee;return(Ee=S==null?void 0:S.value)==null?void 0:Ee.menu},async(Ee,oe)=>{const Te=Ee==null?void 0:Ee.join("/"),Ue=oe==null?void 0:oe.join("/");Te!=Ue&&await Pe(Ee)});const la=(Ee,oe)=>{const Te=oe==null?void 0:oe.find(L=>{const{key:H}=L;return H==="header"}),Ue=(Te==null?void 0:Te.contents)||[],oa=Ue==null?void 0:Ue.filter((L,H)=>{const{label:Q}=L;return Q!=="操作"}),Ja=oa==null?void 0:oa.map((L,H)=>{const{label:Q}=L;return{label:Q,value:H}});Ee==null||Ee.forEach(L=>{const H=L==null?void 0:L.prop;(H==="nameCol"||H==="valueCol")&&(L.contents=Ja)})},Da=Ee=>{const{comp:oe,compData:Te}=U.value||{};if(oe==="Table"){S.value.formItems=[];let Ue=K();Ue=Ue.filter(oa=>{const{prop:Ja}=oa;return Ja!=="formItems"}),la(Ue,Te),D.value=Ue}},le=async Ee=>{const oe=ue.value[Ee];U.value=oe,await Da()};e.watch(()=>{var Ee;return(Ee=S==null?void 0:S.value)==null?void 0:Ee.group},async(Ee,oe)=>{Ee!=oe&&le(Ee)});const ta=async()=>{var Te,Ue;const Ee=(Te=S.value)==null?void 0:Te.menu;await Pe(Ee);const oe=(Ue=S.value)==null?void 0:Ue.group;await le(oe)},te=()=>({comp:"chart",compData:[{key:"chartBaseConfig",contents:p.value},{key:"chartDataConfig",contents:S.value},{key:"chartDetailConfig",contents:k.value}]}),ca=()=>{t.visible=!1,c.visible=!1,j.visible=!1};return e.onMounted(async()=>{var oe,Te,Ue;D.value=M(),E.value=x();const Ee=r==null?void 0:r.itemContents;p.value=((oe=Ee==null?void 0:Ee.find(oa=>oa.key==="chartBaseConfig"))==null?void 0:oe.contents)??{},S.value=((Te=Ee==null?void 0:Ee.find(oa=>oa.key==="chartDataConfig"))==null?void 0:Te.contents)??{},await ta(),k.value=((Ue=Ee==null?void 0:Ee.find(oa=>oa.key==="chartDetailConfig"))==null?void 0:Ue.contents)??{},await ye()}),(Ee,oe)=>{const Te=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",w6,[oe[4]||(oe[4]=e.createElementVNode("div",{class:"module-title"},"基础配置",-1)),e.createVNode(Te,{id:"themeButton",onClick:oe[0]||(oe[0]=Ue=>f())},{default:e.withCtx(()=>oe[3]||(oe[3]=[e.createTextVNode(" 修改 ")])),_:1,__:[3]})]),e.createElementVNode("div",_6,[oe[6]||(oe[6]=e.createElementVNode("h4",{class:"module-title"},"数据配置",-1)),e.createVNode(Te,{id:"themeButton",onClick:oe[1]||(oe[1]=Ue=>R())},{default:e.withCtx(()=>oe[5]||(oe[5]=[e.createTextVNode(" 修改 ")])),_:1,__:[5]})]),e.createElementVNode("div",S6,[oe[8]||(oe[8]=e.createElementVNode("h4",{class:"module-title"},"详情数据配置",-1)),e.createVNode(Te,{id:"themeButton",onClick:oe[2]||(oe[2]=Ue=>$())},{default:e.withCtx(()=>oe[7]||(oe[7]=[e.createTextVNode(" 修改 ")])),_:1,__:[7]})])]),e.createVNode(wr.ssDialog,{visible:t.visible,title:t.title,onBeforeDestroy:ca,width:t.width},{default:e.withCtx(()=>[e.createElementVNode("div",E6,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:s.value,key:s.value,isEnableWrap:!0,onChange:m},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",C6,[e.createVNode(Te,{class:"cancel-button button",onClick:ca,id:"themeBorderButton"},{default:e.withCtx(()=>oe[9]||(oe[9]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[9]}),e.createVNode(Te,{class:"ok-button button",onClick:g,id:"themeButton"},{default:e.withCtx(()=>oe[10]||(oe[10]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[10]})])]),_:1},8,["visible","title","width"]),e.createVNode(wr.ssDialog,{visible:c.visible,title:c.title,onBeforeDestroy:ca,width:c.width},{default:e.withCtx(()=>[e.createElementVNode("div",D6,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:D.value,key:D.value,isEnableWrap:!0,onChange:I},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",B6,[e.createVNode(Te,{class:"cancel-button button",onClick:ca,id:"themeBorderButton"},{default:e.withCtx(()=>oe[11]||(oe[11]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[11]}),e.createVNode(Te,{class:"ok-button button",onClick:ca,id:"themeButton"},{default:e.withCtx(()=>oe[12]||(oe[12]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible","title","width"]),e.createVNode(wr.ssDialog,{visible:j.visible,title:j.title,onBeforeDestroy:ca,width:j.width},{default:e.withCtx(()=>[e.createElementVNode("div",N6,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:E.value,key:E.value,isEnableWrap:!0,onChange:w},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",T6,[e.createVNode(Te,{class:"cancel-button button",onClick:ca,id:"themeBorderButton"},{default:e.withCtx(()=>oe[13]||(oe[13]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[13]}),e.createVNode(Te,{class:"ok-button button",onClick:ca,id:"themeButton"},{default:e.withCtx(()=>oe[14]||(oe[14]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible","title","width"])],64)}}}),z6=Xl._export_sfc(A6,[["__scopeId","data-v-fe119645"]]),M6={class:"layout"},I6=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["rowClick"],setup(a,{emit:l}){const r=l,n=a;e.onMounted(async()=>{});const t=e.computed(()=>A.cloneDeep(n==null?void 0:n.itemData)||[]),s=e.computed(()=>{var g;const m=(g=t==null?void 0:t.value)==null?void 0:g.find(c=>{const{key:D}=c;return D==="baseConfig"});return m==null?void 0:m.contents}),v=e.computed(()=>{var g;const m=(g=t==null?void 0:t.value)==null?void 0:g.find(c=>{const{key:D}=c;return D==="children"});return m==null?void 0:m.contents}),p=e.computed(()=>{let m=A.cloneDeep(v.value)||[];const g=m.length;let c=0;const D=[];if(m=m.map(M=>{const S=M.span;return S?(M.span=Number(S),c=c+M.span):D.push(M),M}),c<24){const M=Math.floor((24-c)/g);D.forEach(S=>{S.span=M})}return m}),f=m=>{r("rowClick",m)};return(m,g)=>{var M;const c=e.resolveComponent("el-col"),D=e.resolveComponent("el-row");return e.openBlock(),e.createElementBlock("div",M6,[e.createVNode(D,{style:e.normalizeStyle({height:(M=s.value)==null?void 0:M.height})},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(S,K)=>(e.openBlock(),e.createBlock(c,{span:S==null?void 0:S.span},{default:e.withCtx(()=>{var I;return[e.unref(Di)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Ki)(S.comp)),{key:e.unref(Hn),compName:S.name,index:(S==null?void 0:S.id)??K,height:(I=s.value)==null?void 0:I.height,itemData:S==null?void 0:S.compData,childItemData:S==null?void 0:S.itemChildData,onChange:e.unref(No),onContentChange:e.unref(To),onPageChange:e.unref(Ao),onRowClick:f},null,40,["compName","index","height","itemData","childItemData","onChange","onContentChange","onPageChange"])):e.createCommentVNode("",!0)]}),_:2},1032,["span"]))),256))]),_:1},8,["style"])])}}}),O6=Xl._export_sfc(I6,[["__scopeId","data-v-ab9a36ed"]]),L6={class:"layout-operate"},R6={class:"layout-module"},$6={class:"collapse-title-item"},V6={class:"collapse-title"},F6={class:"icon-content"},P6=["onClick"],j6={class:"comp-child"},H6=e.defineComponent({__name:"operate",props:{itemContents:{type:Object,default:()=>{}},originalItemContents:{type:Array,default:()=>[]},itemChildData:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:l}){const r=a,n=l;e.onMounted(()=>{K()});const t=e.ref({}),s=e.ref({}),v=e.ref([]),p=k=>[{label:"高度",prop:"height",type:"input",value:k==null?void 0:k.height}],f=k=>{s.value=k,n("change",x(),!0)},m=e.ref([]),g=e.ref([]),c=k=>[{label:"占比",prop:"span",type:"input",value:k==null?void 0:k.span}],D=e.computed(()=>{const k=r==null?void 0:r.itemContents;return A.cloneDeep(k)}),M=e.computed(()=>{const k=D==null?void 0:D.value,b=k==null?void 0:k.find(w=>{const{key:$}=w;return $==="baseConfig"});return b==null?void 0:b.contents}),S=e.computed(()=>{const k=D==null?void 0:D.value,b=k==null?void 0:k.find(w=>{const{key:$}=w;return $==="children"});return b==null?void 0:b.contents}),K=()=>{var k;t.value=D.value||{},m.value=(S==null?void 0:S.value)||[],v.value=p(),v.value=(k=v.value)==null?void 0:k.map(b=>{var $;const{prop:w}=b;return b.value=($=M.value)==null?void 0:$[w],b})};e.watch(()=>{var k;return(k=S==null?void 0:S.value)==null?void 0:k.length},()=>{var k;m.value=(S==null?void 0:S.value)||[],g.value=(k=S.value)==null?void 0:k.map(b=>c(b))},{immediate:!0});const I=(k,b)=>{const w=A.cloneDeep(S==null?void 0:S.value);w[b].span=k.span,m.value=w,n("change",x(),!0)},R=k=>Bi(k),j=(k,b,w)=>{if(!k)return;const $=A.cloneDeep(S==null?void 0:S.value);$[w]&&($[w].compData=k,m.value=$,n("change",x(),!0))},E=k=>{A.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{let b=A.cloneDeep(S==null?void 0:S.value);b=b==null?void 0:b.filter((w,$)=>k!==$),m.value=b,n("change",x(),!0),qa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},x=()=>({compData:[{key:"baseConfig",contents:s.value},{key:"children",contents:m==null?void 0:m.value}]});return(k,b)=>{const w=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",L6,[e.createElementVNode("div",R6,[b[1]||(b[1]=e.createElementVNode("div",{class:"module-title"},"基础配置",-1)),e.createElementVNode("div",null,[e.createVNode(ll.ssForm,{rowContents:v.value,isEnableWrap:!0,onChange:b[0]||(b[0]=$=>f($))},null,8,["rowContents"])])]),e.createVNode(Ys.default,{class:"collapse-content",collapseContents:S.value},{title:e.withCtx(({item:$,index:F})=>[e.createElementVNode("div",$6,[e.createElementVNode("div",V6,e.toDisplayString($.name),1),e.createElementVNode("div",F6,[e.createElementVNode("div",{onClick:e.withModifiers(J=>E(F),["stop"]),class:"icon-content"},[e.createVNode(w,{name:"Delete",style:{width:"16px",height:"16px"}})],8,P6)])])]),content:e.withCtx(({item:$,index:F})=>[e.createElementVNode("div",j6,[e.createElementVNode("div",null,[(e.openBlock(),e.createBlock(ll.ssForm,{rowContents:g.value[F],key:F,isEnableWrap:!0,onChange:J=>I(J,F)},null,8,["rowContents","onChange"]))]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(R($.comp+"Operate")),{itemContents:$==null?void 0:$.compData,originalItemContents:$.compData,onChange:J=>j(J,$,F)},null,40,["itemContents","originalItemContents","onChange"]))])]),_:1},8,["collapseContents"])])}}}),U6=Xl._export_sfc(H6,[["__scopeId","data-v-ba05456e"]]),q6=typeof window<"u";var ws;q6&&((ws=window==null?void 0:window.navigator)!=null&&ws.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function cn(a){return a==null}function Rc(){}const W6=Object.freeze({aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"});Object.freeze(new Set(Object.keys(W6)));function K6(){const a=new Map;return{on(l,r){const n=a.get(l);n!=null&&n.add(r)||a.set(l,new Set([r]))},off(l,r){const n=a.get(l);n&&n.delete(r)},clear(l){const r=a.get(l);r&&r.clear()},clearAll(){a.clear()},emit(l,...r){const n=a.get(l);n&&n.forEach(t=>{t(...r)})}}}function _s(a,l=16){if(typeof a!="function")return Rc;const r=(...s)=>{a(...s)};if(l<=0)return $c(r);let n=0,t;return function(...s){const v=Date.now(),p=v-n;clearTimeout(t),p>=l?(n=v,r(...s)):t=setTimeout(()=>{n=Date.now(),r(...s)},Math.max(0,l-p))}}function G6(a,l=100){if(typeof a!="function")return Rc;const r=(...t)=>{a(...t)};if(l<=0)return $c(r);let n;return function(...t){clearTimeout(n),n=setTimeout(()=>{r(...t)},l)}}function $c(a){if(typeof a!="function")return a;let l=!1,r,n;return function(...t){return r=t,l||(l=!0,n=Promise.resolve().then(()=>(l=!1,n=void 0,a(...r)))),n}}const Hi=new Set,Vc=new WeakMap;function Y6(){Hi.forEach(a=>{a(...Vc.get(a))}),Hi.clear()}function Yr(a,...l){if(typeof a!="function")return a;Vc.set(a,l),!Hi.has(a)&&(Hi.add(a),Hi.size===1&&Promise.resolve().then(Y6))}const Fc=Symbol("LAYOUT_KEY"),Pc=Symbol("EMITTER_KEY");function J6(a){let l=0,r;for(let n=0,t=a.length;n<t;n++)r=a[n].y+a[n].h,r>l&&(l=r);return l}function wt(a){const l=Array(a.length);for(let r=0,n=a.length;r<n;r++)l[r]=X6(a[r]);return l}function X6(a){return{...a}}function jc(a,l){return!(a===l||a.x+a.w<=l.x||a.x>=l.x+l.w||a.y+a.h<=l.y||a.y>=l.y+l.h)}function wi(a,l,r){const n=Uc(a),t=qc(a),s=Array(a.length);for(let v=0,p=t.length;v<p;v++){let f=t[v];f.static||(f=Z6(n,f,l,r),n.push(f)),s[a.findIndex(m=>m.i===f.i)]=f,f.moved=!1}return s}function Z6(a,l,r,n){if(r)for(;l.y>0&&!Ui(a,l);)l.y--;else if(n){const s=n[l.i].y;for(;l.y>s&&!Ui(a,l);)l.y--}let t;for(;t=Ui(a,l);)l.y=t.y+t.h;return l}function Q6(a,l){const r=Uc(a);for(let n=0,t=a.length;n<t;n++){const s=a[n];if(s.x+s.w>l.cols&&(s.x=l.cols-s.w),s.x<0&&(s.x=0,s.w=l.cols),!s.static)r.push(s);else for(;Ui(r,s);)s.y++}return a}function Ss(a,l){for(let r=0,n=a.length;r<n;r++)if(a[r].i===l)return a[r]}function Ui(a,l){for(let r=0,n=a.length;r<n;r++)if(jc(a[r],l))return a[r]}function Hc(a,l){return a.filter(r=>jc(r,l))}function Uc(a){return a.filter(l=>l.static)}function _t(a,l,r,n,t=!1,s=!1){if(l.static)return a;const v=l.x,p=l.y,f=n&&l.y>n;typeof r=="number"&&(l.x=r),typeof n=="number"&&(l.y=n),l.moved=!0;let m=qc(a);f&&(m=m.reverse());const g=Hc(m,l);if(s&&g.length)return l.x=v,l.y=p,l.moved=!1,a;for(let c=0,D=g.length;c<D;c++){const M=g[c];M.moved||l.y>M.y&&l.y-M.y>M.h/4||(M.static?a=Es(a,M,l,t):a=Es(a,l,M,t))}return a}function Es(a,l,r,n){if(n){const t={x:r.x,y:r.y,w:r.w,h:r.h};if(t.y=Math.max(l.y-r.h,0),!Ui(a,t))return _t(a,r,void 0,t.y,!1)}return _t(a,r,void 0,r.y+1,!1)}function e1(a,l,r,n){const t="translate3d("+l+"px,"+a+"px, 0)";return{transform:t,WebkitTransform:t,MozTransform:t,msTransform:t,OTransform:t,width:r+"px",height:n+"px",position:"absolute"}}function a1(a,l,r,n){const t="translate3d("+l*-1+"px,"+a+"px, 0)";return{transform:t,WebkitTransform:t,MozTransform:t,msTransform:t,OTransform:t,width:r+"px",height:n+"px",position:"absolute"}}function l1(a,l,r,n){return{top:a+"px",left:l+"px",width:r+"px",height:n+"px",position:"absolute"}}function r1(a,l,r,n){return{top:a+"px",right:l+"px",width:r+"px",height:n+"px",position:"absolute"}}function qc(a){return Array.from(a).sort(function(l,r){return l.y===r.y&&l.x===r.x?0:l.y>r.y||l.y===r.y&&l.x>r.x?1:-1})}function n1(a,l){l=l||"Layout";const r=["x","y","w","h"],n=[];if(!Array.isArray(a))throw new Error(l+" must be an array!");for(let t=0,s=a.length;t<s;t++){const v=a[t];for(let p=0;p<r.length;p++)if(typeof v[r[p]]!="number")throw new Error("VueGridLayout: "+l+"["+t+"]."+r[p]+" must be a number!");if(v.i===void 0||v.i===null)throw new Error("VueGridLayout: "+l+"["+t+"].i cannot be null!");if(typeof v.i!="number"&&typeof v.i!="string")throw new Error("VueGridLayout: "+l+"["+t+"].i must be a string or number!");if(n.indexOf(v.i)>=0)throw new Error("VueGridLayout: "+l+"["+t+"].i must be unique!");if(n.push(v.i),v.static!==void 0&&typeof v.static!="boolean")throw new Error("VueGridLayout: "+l+"["+t+"].static must be a boolean!")}}function i1(a,l="vgl"){const r=()=>`${l}-${a}`;return{b:r,be:n=>`${r()}__${n}`,bm:n=>`${r()}--${n}`,bem:(n,t)=>`${r()}__${n}--${t}`}}function Cs(a){return o1(a)}function o1(a){var l;const r=((l=a.target)==null?void 0:l.offsetParent)||document.body,n=a.offsetParent===document.body?{left:0,top:0}:r.getBoundingClientRect(),t=a.clientX+r.scrollLeft-n.left,s=a.clientY+r.scrollTop-n.top;return{x:t,y:s}}function Ds(a,l,r,n){return s1(a)?{deltaX:r-a,deltaY:n-l,lastX:a,lastY:l,x:r,y:n}:{deltaX:0,deltaY:0,lastX:r,lastY:n,x:r,y:n}}function s1(a){return typeof a=="number"&&!Number.isNaN(a)}function c1(a,l){const r=Kc(a);let n=r[0];for(let t=1,s=r.length;t<s;t++){const v=r[t];l>a[v]&&(n=v)}return n}function Wc(a,l){if(!l[a])throw new Error("ResponsiveGridLayout: `cols` entry for breakpoint "+a+" is missing!");return l[a]}function u1(a,l,r,n,t,s,v){if(l[n])return wt(l[n]);let p=a;const f=Kc(r),m=f.slice(f.indexOf(n));for(let g=0,c=m.length;g<c;g++){const D=m[g];if(l[D]){p=l[D];break}}return p=wt(p||[]),wi(Q6(p,{cols:s}),v)}function Kc(a){return Object.keys(a).sort((l,r)=>a[l]-a[r])}let d1="auto";function p1(){return typeof document<"u"}function Bs(){return p1()?typeof document.dir<"u"?document.dir:document.getElementsByTagName("html")[0].getAttribute("dir"):d1}var Fi={exports:{}},f1=Fi.exports,Ns;function h1(){return Ns||(Ns=1,function(a,l){(function(r,n){a.exports=n()})(f1,function(){function r(o,i){var u=Object.keys(o);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(o);i&&(y=y.filter(function(_){return Object.getOwnPropertyDescriptor(o,_).enumerable})),u.push.apply(u,y)}return u}function n(o){for(var i=1;i<arguments.length;i++){var u=arguments[i]!=null?arguments[i]:{};i%2?r(Object(u),!0).forEach(function(y){f(o,y,u[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(u)):r(Object(u)).forEach(function(y){Object.defineProperty(o,y,Object.getOwnPropertyDescriptor(u,y))})}return o}function t(o){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},t(o)}function s(o,i){if(!(o instanceof i))throw new TypeError("Cannot call a class as a function")}function v(o,i){for(var u=0;u<i.length;u++){var y=i[u];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(o,K(y.key),y)}}function p(o,i,u){return i&&v(o.prototype,i),Object.defineProperty(o,"prototype",{writable:!1}),o}function f(o,i,u){return(i=K(i))in o?Object.defineProperty(o,i,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[i]=u,o}function m(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(i&&i.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),i&&c(o,i)}function g(o){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},g(o)}function c(o,i){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,y){return u.__proto__=y,u},c(o,i)}function D(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function M(o){var i=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var u,y=g(o);if(i){var _=g(this).constructor;u=Reflect.construct(y,arguments,_)}else u=y.apply(this,arguments);return function(O,G){if(G&&(typeof G=="object"||typeof G=="function"))return G;if(G!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return D(O)}(this,u)}}function S(){return S=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(o,i,u){var y=function(O,G){for(;!Object.prototype.hasOwnProperty.call(O,G)&&(O=g(O))!==null;);return O}(o,i);if(y){var _=Object.getOwnPropertyDescriptor(y,i);return _.get?_.get.call(arguments.length<3?o:u):_.value}},S.apply(this,arguments)}function K(o){var i=function(u,y){if(typeof u!="object"||u===null)return u;var _=u[Symbol.toPrimitive];if(_!==void 0){var O=_.call(u,y);if(typeof O!="object")return O;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(u)}(o,"string");return typeof i=="symbol"?i:i+""}var I=function(o){return!(!o||!o.Window)&&o instanceof o.Window},R=void 0,j=void 0;function E(o){R=o;var i=o.document.createTextNode("");i.ownerDocument!==o.document&&typeof o.wrap=="function"&&o.wrap(i)===i&&(o=o.wrap(o)),j=o}function x(o){return I(o)?o:(o.ownerDocument||o).defaultView||j.window}typeof window<"u"&&window&&E(window);var k=function(o){return!!o&&t(o)==="object"},b=function(o){return typeof o=="function"},w={window:function(o){return o===j||I(o)},docFrag:function(o){return k(o)&&o.nodeType===11},object:k,func:b,number:function(o){return typeof o=="number"},bool:function(o){return typeof o=="boolean"},string:function(o){return typeof o=="string"},element:function(o){if(!o||t(o)!=="object")return!1;var i=x(o)||j;return/object|function/.test(typeof Element>"u"?"undefined":t(Element))?o instanceof Element||o instanceof i.Element:o.nodeType===1&&typeof o.nodeName=="string"},plainObject:function(o){return k(o)&&!!o.constructor&&/function Object\b/.test(o.constructor.toString())},array:function(o){return k(o)&&o.length!==void 0&&b(o.splice)}};function $(o){var i=o.interaction;if(i.prepared.name==="drag"){var u=i.prepared.axis;u==="x"?(i.coords.cur.page.y=i.coords.start.page.y,i.coords.cur.client.y=i.coords.start.client.y,i.coords.velocity.client.y=0,i.coords.velocity.page.y=0):u==="y"&&(i.coords.cur.page.x=i.coords.start.page.x,i.coords.cur.client.x=i.coords.start.client.x,i.coords.velocity.client.x=0,i.coords.velocity.page.x=0)}}function F(o){var i=o.iEvent,u=o.interaction;if(u.prepared.name==="drag"){var y=u.prepared.axis;if(y==="x"||y==="y"){var _=y==="x"?"y":"x";i.page[_]=u.coords.start.page[_],i.client[_]=u.coords.start.client[_],i.delta[_]=0}}}var J={id:"actions/drag",install:function(o){var i=o.actions,u=o.Interactable,y=o.defaults;u.prototype.draggable=J.draggable,i.map.drag=J,i.methodDict.drag="draggable",y.actions.drag=J.defaults},listeners:{"interactions:before-action-move":$,"interactions:action-resume":$,"interactions:action-move":F,"auto-start:check":function(o){var i=o.interaction,u=o.interactable,y=o.buttons,_=u.options.drag;if(_&&_.enabled&&(!i.pointerIsDown||!/mouse|pointer/.test(i.pointerType)||(y&u.options.drag.mouseButtons)!=0))return o.action={name:"drag",axis:_.lockAxis==="start"?_.startAxis:_.lockAxis},!1}},draggable:function(o){return w.object(o)?(this.options.drag.enabled=o.enabled!==!1,this.setPerAction("drag",o),this.setOnEvents("drag",o),/^(xy|x|y|start)$/.test(o.lockAxis)&&(this.options.drag.lockAxis=o.lockAxis),/^(xy|x|y)$/.test(o.startAxis)&&(this.options.drag.startAxis=o.startAxis),this):w.bool(o)?(this.options.drag.enabled=o,this):this.options.drag},beforeMove:$,move:F,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(o){return o.search("drag")===0}},se=J,ge={init:function(o){var i=o;ge.document=i.document,ge.DocumentFragment=i.DocumentFragment||Me,ge.SVGElement=i.SVGElement||Me,ge.SVGSVGElement=i.SVGSVGElement||Me,ge.SVGElementInstance=i.SVGElementInstance||Me,ge.Element=i.Element||Me,ge.HTMLElement=i.HTMLElement||ge.Element,ge.Event=i.Event,ge.Touch=i.Touch||Me,ge.PointerEvent=i.PointerEvent||i.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function Me(){}var V=ge,fe={init:function(o){var i=V.Element,u=o.navigator||{};fe.supportsTouch="ontouchstart"in o||w.func(o.DocumentTouch)&&V.document instanceof o.DocumentTouch,fe.supportsPointerEvent=u.pointerEnabled!==!1&&!!V.PointerEvent,fe.isIOS=/iP(hone|od|ad)/.test(u.platform),fe.isIOS7=/iP(hone|od|ad)/.test(u.platform)&&/OS 7[^\d]/.test(u.appVersion),fe.isIe9=/MSIE 9/.test(u.userAgent),fe.isOperaMobile=u.appName==="Opera"&&fe.supportsTouch&&/Presto/.test(u.userAgent),fe.prefixedMatchesSelector="matches"in i.prototype?"matches":"webkitMatchesSelector"in i.prototype?"webkitMatchesSelector":"mozMatchesSelector"in i.prototype?"mozMatchesSelector":"oMatchesSelector"in i.prototype?"oMatchesSelector":"msMatchesSelector",fe.pEventTypes=fe.supportsPointerEvent?V.PointerEvent===o.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,fe.wheelEvent=V.document&&"onmousewheel"in V.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},ae=fe;function de(o,i){if(o.contains)return o.contains(i);for(;i;){if(i===o)return!0;i=i.parentNode}return!1}function Ce(o,i){for(;w.element(o);){if(ye(o,i))return o;o=Fe(o)}return null}function Fe(o){var i=o.parentNode;if(w.docFrag(i)){for(;(i=i.host)&&w.docFrag(i););return i}return i}function ye(o,i){return j!==R&&(i=i.replace(/\/deep\//g," ")),o[ae.prefixedMatchesSelector](i)}var T=function(o){return o.parentNode||o.host};function ue(o,i){for(var u,y=[],_=o;(u=T(_))&&_!==i&&u!==_.ownerDocument;)y.unshift(_),_=u;return y}function U(o,i,u){for(;w.element(o);){if(ye(o,i))return!0;if((o=Fe(o))===u)return ye(o,i)}return!1}function Se(o){return o.correspondingUseElement||o}function Le(o){var i=o instanceof V.SVGElement?o.getBoundingClientRect():o.getClientRects()[0];return i&&{left:i.left,right:i.right,top:i.top,bottom:i.bottom,width:i.width||i.right-i.left,height:i.height||i.bottom-i.top}}function Pe(o){var i,u=Le(o);if(!ae.isIOS7&&u){var y={x:(i=(i=x(o))||j).scrollX||i.document.documentElement.scrollLeft,y:i.scrollY||i.document.documentElement.scrollTop};u.left+=y.x,u.right+=y.x,u.top+=y.y,u.bottom+=y.y}return u}function la(o){for(var i=[];o;)i.push(o),o=Fe(o);return i}function Da(o){return!!w.string(o)&&(V.document.querySelector(o),!0)}function le(o,i){for(var u in i)o[u]=i[u];return o}function ta(o,i,u){return o==="parent"?Fe(u):o==="self"?i.getRect(u):Ce(u,o)}function te(o,i,u,y){var _=o;return w.string(_)?_=ta(_,i,u):w.func(_)&&(_=_.apply(void 0,y)),w.element(_)&&(_=Pe(_)),_}function ca(o){return o&&{x:"x"in o?o.x:o.left,y:"y"in o?o.y:o.top}}function Ee(o){return!o||"x"in o&&"y"in o||((o=le({},o)).x=o.left||0,o.y=o.top||0,o.width=o.width||(o.right||0)-o.x,o.height=o.height||(o.bottom||0)-o.y),o}function oe(o,i,u){o.left&&(i.left+=u.x),o.right&&(i.right+=u.x),o.top&&(i.top+=u.y),o.bottom&&(i.bottom+=u.y),i.width=i.right-i.left,i.height=i.bottom-i.top}function Te(o,i,u){var y=u&&o.options[u];return ca(te(y&&y.origin||o.options.origin,o,i,[o&&i]))||{x:0,y:0}}function Ue(o,i){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(be){return!0},y=arguments.length>3?arguments[3]:void 0;if(y=y||{},w.string(o)&&o.search(" ")!==-1&&(o=oa(o)),w.array(o))return o.forEach(function(be){return Ue(be,i,u,y)}),y;if(w.object(o)&&(i=o,o=""),w.func(i)&&u(o))y[o]=y[o]||[],y[o].push(i);else if(w.array(i))for(var _=0,O=i;_<O.length;_++){var G=O[_];Ue(o,G,u,y)}else if(w.object(i))for(var ee in i)Ue(oa(ee).map(function(be){return"".concat(o).concat(be)}),i[ee],u,y);return y}function oa(o){return o.trim().split(/ +/)}var Ja=function(o,i){return Math.sqrt(o*o+i*i)},L=["webkit","moz"];function H(o,i){o.__set||(o.__set={});var u=function(_){if(L.some(function(O){return _.indexOf(O)===0}))return 1;typeof o[_]!="function"&&_!=="__set"&&Object.defineProperty(o,_,{get:function(){return _ in o.__set?o.__set[_]:o.__set[_]=i[_]},set:function(O){o.__set[_]=O},configurable:!0})};for(var y in i)u(y);return o}function Q(o,i){o.page=o.page||{},o.page.x=i.page.x,o.page.y=i.page.y,o.client=o.client||{},o.client.x=i.client.x,o.client.y=i.client.y,o.timeStamp=i.timeStamp}function me(o){o.page.x=0,o.page.y=0,o.client.x=0,o.client.y=0}function ve(o){return o instanceof V.Event||o instanceof V.Touch}function da(o,i,u){return o=o||"page",(u=u||{}).x=i[o+"X"],u.y=i[o+"Y"],u}function ea(o,i){return i=i||{x:0,y:0},ae.isOperaMobile&&ve(o)?(da("screen",o,i),i.x+=window.scrollX,i.y+=window.scrollY):da("page",o,i),i}function ce(o){return w.number(o.pointerId)?o.pointerId:o.identifier}function pa(o,i,u){var y=i.length>1?We(i):i[0];ea(y,o.page),function(_,O){O=O||{},ae.isOperaMobile&&ve(_)?da("screen",_,O):da("client",_,O)}(y,o.client),o.timeStamp=u}function Ne(o){var i=[];return w.array(o)?(i[0]=o[0],i[1]=o[1]):o.type==="touchend"?o.touches.length===1?(i[0]=o.touches[0],i[1]=o.changedTouches[0]):o.touches.length===0&&(i[0]=o.changedTouches[0],i[1]=o.changedTouches[1]):(i[0]=o.touches[0],i[1]=o.touches[1]),i}function We(o){for(var i={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},u=0;u<o.length;u++){var y=o[u];for(var _ in i)i[_]+=y[_]}for(var O in i)i[O]/=o.length;return i}function Ta(o){if(!o.length)return null;var i=Ne(o),u=Math.min(i[0].pageX,i[1].pageX),y=Math.min(i[0].pageY,i[1].pageY),_=Math.max(i[0].pageX,i[1].pageX),O=Math.max(i[0].pageY,i[1].pageY);return{x:u,y,left:u,top:y,right:_,bottom:O,width:_-u,height:O-y}}function Ca(o,i){var u=i+"X",y=i+"Y",_=Ne(o),O=_[0][u]-_[1][u],G=_[0][y]-_[1][y];return Ja(O,G)}function Qe(o,i){var u=i+"X",y=i+"Y",_=Ne(o),O=_[1][u]-_[0][u],G=_[1][y]-_[0][y];return 180*Math.atan2(G,O)/Math.PI}function Va(o){return w.string(o.pointerType)?o.pointerType:w.number(o.pointerType)?[void 0,void 0,"touch","pen","mouse"][o.pointerType]:/touch/.test(o.type||"")||o instanceof V.Touch?"touch":"mouse"}function re(o){var i=w.func(o.composedPath)?o.composedPath():o.path;return[Se(i?i[0]:o.target),Se(o.currentTarget)]}var X=function(){function o(i){s(this,o),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=i}return p(o,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),o}();Object.defineProperty(X.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var Z=function(o,i){for(var u=0;u<i.length;u++){var y=i[u];o.push(y)}return o},q=function(o){return Z([],o)},Be=function(o,i){for(var u=0;u<o.length;u++)if(i(o[u],u,o))return u;return-1},Je=function(o,i){return o[Be(o,i)]},ra=function(o){m(u,o);var i=M(u);function u(y,_,O){var G;s(this,u),(G=i.call(this,_._interaction)).dropzone=void 0,G.dragEvent=void 0,G.relatedTarget=void 0,G.draggable=void 0,G.propagationStopped=!1,G.immediatePropagationStopped=!1;var ee=O==="dragleave"?y.prev:y.cur,be=ee.element,je=ee.dropzone;return G.type=O,G.target=be,G.currentTarget=be,G.dropzone=je,G.dragEvent=_,G.relatedTarget=_.target,G.draggable=_.interactable,G.timeStamp=_.timeStamp,G}return p(u,[{key:"reject",value:function(){var y=this,_=this._interaction.dropState;if(this.type==="dropactivate"||this.dropzone&&_.cur.dropzone===this.dropzone&&_.cur.element===this.target)if(_.prev.dropzone=this.dropzone,_.prev.element=this.target,_.rejected=!0,_.events.enter=null,this.stopImmediatePropagation(),this.type==="dropactivate"){var O=_.activeDrops,G=Be(O,function(be){var je=be.dropzone,De=be.element;return je===y.dropzone&&De===y.target});_.activeDrops.splice(G,1);var ee=new u(_,this.dragEvent,"dropdeactivate");ee.dropzone=this.dropzone,ee.target=this.target,this.dropzone.fire(ee)}else this.dropzone.fire(new u(_,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),u}(X);function ba(o,i){for(var u=0,y=o.slice();u<y.length;u++){var _=y[u],O=_.dropzone,G=_.element;i.dropzone=O,i.target=G,O.fire(i),i.propagationStopped=i.immediatePropagationStopped=!1}}function ga(o,i){for(var u=function(O,G){for(var ee=[],be=0,je=O.interactables.list;be<je.length;be++){var De=je[be];if(De.options.drop.enabled){var aa=De.options.drop.accept;if(!(w.element(aa)&&aa!==G||w.string(aa)&&!ye(G,aa)||w.func(aa)&&!aa({dropzone:De,draggableElement:G})))for(var Na=0,Xa=De.getAllElements();Na<Xa.length;Na++){var Ga=Xa[Na];Ga!==G&&ee.push({dropzone:De,element:Ga,rect:De.getRect(Ga)})}}}return ee}(o,i),y=0;y<u.length;y++){var _=u[y];_.rect=_.dropzone.getRect(_.element)}return u}function Aa(o,i,u){for(var y=o.dropState,_=o.interactable,O=o.element,G=[],ee=0,be=y.activeDrops;ee<be.length;ee++){var je=be[ee],De=je.dropzone,aa=je.element,Na=je.rect,Xa=De.dropCheck(i,u,_,O,aa,Na);G.push(Xa?aa:null)}var Ga=function(al){for(var bl,yl,Cl,wl=[],Zl=0;Zl<al.length;Zl++){var Dl=al[Zl],jl=al[bl];if(Dl&&Zl!==bl)if(jl){var kr=T(Dl),Sr=T(jl);if(kr!==Dl.ownerDocument)if(Sr!==Dl.ownerDocument)if(kr!==Sr){wl=wl.length?wl:ue(jl);var Gr=void 0;if(jl instanceof V.HTMLElement&&Dl instanceof V.SVGElement&&!(Dl instanceof V.SVGSVGElement)){if(Dl===Sr)continue;Gr=Dl.ownerSVGElement}else Gr=Dl;for(var on=ue(Gr,jl.ownerDocument),wn=0;on[wn]&&on[wn]===wl[wn];)wn++;var fi=[on[wn-1],on[wn],wl[wn]];if(fi[0])for(var $n=fi[0].lastChild;$n;){if($n===fi[1]){bl=Zl,wl=on;break}if($n===fi[2])break;$n=$n.previousSibling}}else Cl=jl,(parseInt(x(yl=Dl).getComputedStyle(yl).zIndex,10)||0)>=(parseInt(x(Cl).getComputedStyle(Cl).zIndex,10)||0)&&(bl=Zl);else bl=Zl}else bl=Zl}return bl}(G);return y.activeDrops[Ga]||null}function _a(o,i,u){var y=o.dropState,_={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return u.type==="dragstart"&&(_.activate=new ra(y,u,"dropactivate"),_.activate.target=null,_.activate.dropzone=null),u.type==="dragend"&&(_.deactivate=new ra(y,u,"dropdeactivate"),_.deactivate.target=null,_.deactivate.dropzone=null),y.rejected||(y.cur.element!==y.prev.element&&(y.prev.dropzone&&(_.leave=new ra(y,u,"dragleave"),u.dragLeave=_.leave.target=y.prev.element,u.prevDropzone=_.leave.dropzone=y.prev.dropzone),y.cur.dropzone&&(_.enter=new ra(y,u,"dragenter"),u.dragEnter=y.cur.element,u.dropzone=y.cur.dropzone)),u.type==="dragend"&&y.cur.dropzone&&(_.drop=new ra(y,u,"drop"),u.dropzone=y.cur.dropzone,u.relatedTarget=y.cur.element),u.type==="dragmove"&&y.cur.dropzone&&(_.move=new ra(y,u,"dropmove"),u.dropzone=y.cur.dropzone)),_}function Oe(o,i){var u=o.dropState,y=u.activeDrops,_=u.cur,O=u.prev;i.leave&&O.dropzone.fire(i.leave),i.enter&&_.dropzone.fire(i.enter),i.move&&_.dropzone.fire(i.move),i.drop&&_.dropzone.fire(i.drop),i.deactivate&&ba(y,i.deactivate),u.prev.dropzone=_.dropzone,u.prev.element=_.element}function Za(o,i){var u=o.interaction,y=o.iEvent,_=o.event;if(y.type==="dragmove"||y.type==="dragend"){var O=u.dropState;i.dynamicDrop&&(O.activeDrops=ga(i,u.element));var G=y,ee=Aa(u,G,_);O.rejected=O.rejected&&!!ee&&ee.dropzone===O.cur.dropzone&&ee.element===O.cur.element,O.cur.dropzone=ee&&ee.dropzone,O.cur.element=ee&&ee.element,O.events=_a(u,0,G)}}var Ha={id:"actions/drop",install:function(o){var i=o.actions,u=o.interactStatic,y=o.Interactable,_=o.defaults;o.usePlugin(se),y.prototype.dropzone=function(O){return function(G,ee){if(w.object(ee)){if(G.options.drop.enabled=ee.enabled!==!1,ee.listeners){var be=Ue(ee.listeners),je=Object.keys(be).reduce(function(aa,Na){return aa[/^(enter|leave)/.test(Na)?"drag".concat(Na):/^(activate|deactivate|move)/.test(Na)?"drop".concat(Na):Na]=be[Na],aa},{}),De=G.options.drop.listeners;De&&G.off(De),G.on(je),G.options.drop.listeners=je}return w.func(ee.ondrop)&&G.on("drop",ee.ondrop),w.func(ee.ondropactivate)&&G.on("dropactivate",ee.ondropactivate),w.func(ee.ondropdeactivate)&&G.on("dropdeactivate",ee.ondropdeactivate),w.func(ee.ondragenter)&&G.on("dragenter",ee.ondragenter),w.func(ee.ondragleave)&&G.on("dragleave",ee.ondragleave),w.func(ee.ondropmove)&&G.on("dropmove",ee.ondropmove),/^(pointer|center)$/.test(ee.overlap)?G.options.drop.overlap=ee.overlap:w.number(ee.overlap)&&(G.options.drop.overlap=Math.max(Math.min(1,ee.overlap),0)),"accept"in ee&&(G.options.drop.accept=ee.accept),"checker"in ee&&(G.options.drop.checker=ee.checker),G}return w.bool(ee)?(G.options.drop.enabled=ee,G):G.options.drop}(this,O)},y.prototype.dropCheck=function(O,G,ee,be,je,De){return function(aa,Na,Xa,Ga,al,bl,yl){var Cl=!1;if(!(yl=yl||aa.getRect(bl)))return!!aa.options.drop.checker&&aa.options.drop.checker(Na,Xa,Cl,aa,bl,Ga,al);var wl=aa.options.drop.overlap;if(wl==="pointer"){var Zl=Te(Ga,al,"drag"),Dl=ea(Na);Dl.x+=Zl.x,Dl.y+=Zl.y;var jl=Dl.x>yl.left&&Dl.x<yl.right,kr=Dl.y>yl.top&&Dl.y<yl.bottom;Cl=jl&&kr}var Sr=Ga.getRect(al);if(Sr&&wl==="center"){var Gr=Sr.left+Sr.width/2,on=Sr.top+Sr.height/2;Cl=Gr>=yl.left&&Gr<=yl.right&&on>=yl.top&&on<=yl.bottom}return Sr&&w.number(wl)&&(Cl=Math.max(0,Math.min(yl.right,Sr.right)-Math.max(yl.left,Sr.left))*Math.max(0,Math.min(yl.bottom,Sr.bottom)-Math.max(yl.top,Sr.top))/(Sr.width*Sr.height)>=wl),aa.options.drop.checker&&(Cl=aa.options.drop.checker(Na,Xa,Cl,aa,bl,Ga,al)),Cl}(this,O,G,ee,be,je,De)},u.dynamicDrop=function(O){return w.bool(O)?(o.dynamicDrop=O,u):o.dynamicDrop},le(i.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),i.methodDict.drop="dropzone",o.dynamicDrop=!1,_.actions.drop=Ha.defaults},listeners:{"interactions:before-action-start":function(o){var i=o.interaction;i.prepared.name==="drag"&&(i.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(o,i){var u=o.interaction,y=(o.event,o.iEvent);if(u.prepared.name==="drag"){var _=u.dropState;_.activeDrops=[],_.events={},_.activeDrops=ga(i,u.element),_.events=_a(u,0,y),_.events.activate&&(ba(_.activeDrops,_.events.activate),i.fire("actions/drop:start",{interaction:u,dragEvent:y}))}},"interactions:action-move":Za,"interactions:after-action-move":function(o,i){var u=o.interaction,y=o.iEvent;if(u.prepared.name==="drag"){var _=u.dropState;Oe(u,_.events),i.fire("actions/drop:move",{interaction:u,dragEvent:y}),_.events={}}},"interactions:action-end":function(o,i){if(o.interaction.prepared.name==="drag"){var u=o.interaction,y=o.iEvent;Za(o,i),Oe(u,u.dropState.events),i.fire("actions/drop:end",{interaction:u,dragEvent:y})}},"interactions:stop":function(o){var i=o.interaction;if(i.prepared.name==="drag"){var u=i.dropState;u&&(u.activeDrops=null,u.events=null,u.cur.dropzone=null,u.cur.element=null,u.prev.dropzone=null,u.prev.element=null,u.rejected=!1)}}},getActiveDrops:ga,getDrop:Aa,getDropEvents:_a,fireDropEvents:Oe,filterEventType:function(o){return o.search("drag")===0||o.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},xl=Ha;function Yl(o){var i=o.interaction,u=o.iEvent,y=o.phase;if(i.prepared.name==="gesture"){var _=i.pointers.map(function(je){return je.pointer}),O=y==="start",G=y==="end",ee=i.interactable.options.deltaSource;if(u.touches=[_[0],_[1]],O)u.distance=Ca(_,ee),u.box=Ta(_),u.scale=1,u.ds=0,u.angle=Qe(_,ee),u.da=0,i.gesture.startDistance=u.distance,i.gesture.startAngle=u.angle;else if(G||i.pointers.length<2){var be=i.prevEvent;u.distance=be.distance,u.box=be.box,u.scale=be.scale,u.ds=0,u.angle=be.angle,u.da=0}else u.distance=Ca(_,ee),u.box=Ta(_),u.scale=u.distance/i.gesture.startDistance,u.angle=Qe(_,ee),u.ds=u.scale-i.gesture.scale,u.da=u.angle-i.gesture.angle;i.gesture.distance=u.distance,i.gesture.angle=u.angle,w.number(u.scale)&&u.scale!==1/0&&!isNaN(u.scale)&&(i.gesture.scale=u.scale)}}var kl={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(o){var i=o.actions,u=o.Interactable,y=o.defaults;u.prototype.gesturable=function(_){return w.object(_)?(this.options.gesture.enabled=_.enabled!==!1,this.setPerAction("gesture",_),this.setOnEvents("gesture",_),this):w.bool(_)?(this.options.gesture.enabled=_,this):this.options.gesture},i.map.gesture=kl,i.methodDict.gesture="gesturable",y.actions.gesture=kl.defaults},listeners:{"interactions:action-start":Yl,"interactions:action-move":Yl,"interactions:action-end":Yl,"interactions:new":function(o){o.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(o){if(!(o.interaction.pointers.length<2)){var i=o.interactable.options.gesture;if(i&&i.enabled)return o.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(o){return o.search("gesture")===0}},Fl=kl;function ja(o,i,u,y,_,O,G){if(!i)return!1;if(i===!0){var ee=w.number(O.width)?O.width:O.right-O.left,be=w.number(O.height)?O.height:O.bottom-O.top;if(G=Math.min(G,Math.abs((o==="left"||o==="right"?ee:be)/2)),ee<0&&(o==="left"?o="right":o==="right"&&(o="left")),be<0&&(o==="top"?o="bottom":o==="bottom"&&(o="top")),o==="left"){var je=ee>=0?O.left:O.right;return u.x<je+G}if(o==="top"){var De=be>=0?O.top:O.bottom;return u.y<De+G}if(o==="right")return u.x>(ee>=0?O.right:O.left)-G;if(o==="bottom")return u.y>(be>=0?O.bottom:O.top)-G}return!!w.element(y)&&(w.element(i)?i===y:U(y,i,_))}function zl(o){var i=o.iEvent,u=o.interaction;if(u.prepared.name==="resize"&&u.resizeAxes){var y=i;u.interactable.options.resize.square?(u.resizeAxes==="y"?y.delta.x=y.delta.y:y.delta.y=y.delta.x,y.axes="xy"):(y.axes=u.resizeAxes,u.resizeAxes==="x"?y.delta.y=0:u.resizeAxes==="y"&&(y.delta.x=0))}}var Rl,Ma,rl={id:"actions/resize",before:["actions/drag"],install:function(o){var i=o.actions,u=o.browser,y=o.Interactable,_=o.defaults;rl.cursors=function(O){return O.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(u),rl.defaultMargin=u.supportsTouch||u.supportsPointerEvent?20:10,y.prototype.resizable=function(O){return function(G,ee,be){return w.object(ee)?(G.options.resize.enabled=ee.enabled!==!1,G.setPerAction("resize",ee),G.setOnEvents("resize",ee),w.string(ee.axis)&&/^x$|^y$|^xy$/.test(ee.axis)?G.options.resize.axis=ee.axis:ee.axis===null&&(G.options.resize.axis=be.defaults.actions.resize.axis),w.bool(ee.preserveAspectRatio)?G.options.resize.preserveAspectRatio=ee.preserveAspectRatio:w.bool(ee.square)&&(G.options.resize.square=ee.square),G):w.bool(ee)?(G.options.resize.enabled=ee,G):G.options.resize}(this,O,o)},i.map.resize=rl,i.methodDict.resize="resizable",_.actions.resize=rl.defaults},listeners:{"interactions:new":function(o){o.interaction.resizeAxes="xy"},"interactions:action-start":function(o){(function(i){var u=i.iEvent,y=i.interaction;if(y.prepared.name==="resize"&&y.prepared.edges){var _=u,O=y.rect;y._rects={start:le({},O),corrected:le({},O),previous:le({},O),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},_.edges=y.prepared.edges,_.rect=y._rects.corrected,_.deltaRect=y._rects.delta}})(o),zl(o)},"interactions:action-move":function(o){(function(i){var u=i.iEvent,y=i.interaction;if(y.prepared.name==="resize"&&y.prepared.edges){var _=u,O=y.interactable.options.resize.invert,G=O==="reposition"||O==="negate",ee=y.rect,be=y._rects,je=be.start,De=be.corrected,aa=be.delta,Na=be.previous;if(le(Na,De),G){if(le(De,ee),O==="reposition"){if(De.top>De.bottom){var Xa=De.top;De.top=De.bottom,De.bottom=Xa}if(De.left>De.right){var Ga=De.left;De.left=De.right,De.right=Ga}}}else De.top=Math.min(ee.top,je.bottom),De.bottom=Math.max(ee.bottom,je.top),De.left=Math.min(ee.left,je.right),De.right=Math.max(ee.right,je.left);for(var al in De.width=De.right-De.left,De.height=De.bottom-De.top,De)aa[al]=De[al]-Na[al];_.edges=y.prepared.edges,_.rect=De,_.deltaRect=aa}})(o),zl(o)},"interactions:action-end":function(o){var i=o.iEvent,u=o.interaction;if(u.prepared.name==="resize"&&u.prepared.edges){var y=i;y.edges=u.prepared.edges,y.rect=u._rects.corrected,y.deltaRect=u._rects.delta}},"auto-start:check":function(o){var i=o.interaction,u=o.interactable,y=o.element,_=o.rect,O=o.buttons;if(_){var G=le({},i.coords.cur.page),ee=u.options.resize;if(ee&&ee.enabled&&(!i.pointerIsDown||!/mouse|pointer/.test(i.pointerType)||(O&ee.mouseButtons)!=0)){if(w.object(ee.edges)){var be={left:!1,right:!1,top:!1,bottom:!1};for(var je in be)be[je]=ja(je,ee.edges[je],G,i._latestPointer.eventTarget,y,_,ee.margin||rl.defaultMargin);be.left=be.left&&!be.right,be.top=be.top&&!be.bottom,(be.left||be.right||be.top||be.bottom)&&(o.action={name:"resize",edges:be})}else{var De=ee.axis!=="y"&&G.x>_.right-rl.defaultMargin,aa=ee.axis!=="x"&&G.y>_.bottom-rl.defaultMargin;(De||aa)&&(o.action={name:"resize",axes:(De?"x":"")+(aa?"y":"")})}return!o.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(o){var i=o.edges,u=o.axis,y=o.name,_=rl.cursors,O=null;if(u)O=_[y+u];else if(i){for(var G="",ee=0,be=["top","bottom","left","right"];ee<be.length;ee++){var je=be[ee];i[je]&&(G+=je)}O=_[G]}return O},filterEventType:function(o){return o.search("resize")===0},defaultMargin:null},sl=rl,ma={id:"actions",install:function(o){o.usePlugin(Fl),o.usePlugin(sl),o.usePlugin(se),o.usePlugin(xl)}},ka=0,La={request:function(o){return Rl(o)},cancel:function(o){return Ma(o)},init:function(o){if(Rl=o.requestAnimationFrame,Ma=o.cancelAnimationFrame,!Rl)for(var i=["ms","moz","webkit","o"],u=0;u<i.length;u++){var y=i[u];Rl=o["".concat(y,"RequestAnimationFrame")],Ma=o["".concat(y,"CancelAnimationFrame")]||o["".concat(y,"CancelRequestAnimationFrame")]}Rl=Rl&&Rl.bind(o),Ma=Ma&&Ma.bind(o),Rl||(Rl=function(_){var O=Date.now(),G=Math.max(0,16-(O-ka)),ee=o.setTimeout(function(){_(O+G)},G);return ka=O+G,ee},Ma=function(_){return clearTimeout(_)})}},$a={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(o){$a.isScrolling=!0,La.cancel($a.i),o.autoScroll=$a,$a.interaction=o,$a.prevTime=$a.now(),$a.i=La.request($a.scroll)},stop:function(){$a.isScrolling=!1,$a.interaction&&($a.interaction.autoScroll=null),La.cancel($a.i)},scroll:function(){var o=$a.interaction,i=o.interactable,u=o.element,y=o.prepared.name,_=i.options[y].autoScroll,O=we(_.container,i,u),G=$a.now(),ee=(G-$a.prevTime)/1e3,be=_.speed*ee;if(be>=1){var je={x:$a.x*be,y:$a.y*be};if(je.x||je.y){var De=ia(O);w.window(O)?O.scrollBy(je.x,je.y):O&&(O.scrollLeft+=je.x,O.scrollTop+=je.y);var aa=ia(O),Na={x:aa.x-De.x,y:aa.y-De.y};(Na.x||Na.y)&&i.fire({type:"autoscroll",target:u,interactable:i,delta:Na,interaction:o,container:O})}$a.prevTime=G}$a.isScrolling&&(La.cancel($a.i),$a.i=La.request($a.scroll))},check:function(o,i){var u;return(u=o.options[i].autoScroll)==null?void 0:u.enabled},onInteractionMove:function(o){var i=o.interaction,u=o.pointer;if(i.interacting()&&$a.check(i.interactable,i.prepared.name))if(i.simulation)$a.x=$a.y=0;else{var y,_,O,G,ee=i.interactable,be=i.element,je=i.prepared.name,De=ee.options[je].autoScroll,aa=we(De.container,ee,be);if(w.window(aa))G=u.clientX<$a.margin,y=u.clientY<$a.margin,_=u.clientX>aa.innerWidth-$a.margin,O=u.clientY>aa.innerHeight-$a.margin;else{var Na=Le(aa);G=u.clientX<Na.left+$a.margin,y=u.clientY<Na.top+$a.margin,_=u.clientX>Na.right-$a.margin,O=u.clientY>Na.bottom-$a.margin}$a.x=_?1:G?-1:0,$a.y=O?1:y?-1:0,$a.isScrolling||($a.margin=De.margin,$a.speed=De.speed,$a.start(i))}}};function we(o,i,u){return(w.string(o)?ta(o,i,u):o)||x(u)}function ia(o){return w.window(o)&&(o=window.document.body),{x:o.scrollLeft,y:o.scrollTop}}var Ie={id:"auto-scroll",install:function(o){var i=o.defaults,u=o.actions;o.autoScroll=$a,$a.now=function(){return o.now()},u.phaselessTypes.autoscroll=!0,i.perAction.autoScroll=$a.defaults},listeners:{"interactions:new":function(o){o.interaction.autoScroll=null},"interactions:destroy":function(o){o.interaction.autoScroll=null,$a.stop(),$a.interaction&&($a.interaction=null)},"interactions:stop":$a.stop,"interactions:action-move":function(o){return $a.onInteractionMove(o)}}},pe=Ie;function ha(o,i){var u=!1;return function(){return u||(j.console.warn(i),u=!0),o.apply(this,arguments)}}function va(o,i){return o.name=i.name,o.axis=i.axis,o.edges=i.edges,o}function Xe(o){return w.bool(o)?(this.options.styleCursor=o,this):o===null?(delete this.options.styleCursor,this):this.options.styleCursor}function Ze(o){return w.func(o)?(this.options.actionChecker=o,this):o===null?(delete this.options.actionChecker,this):this.options.actionChecker}var Ke={id:"auto-start/interactableMethods",install:function(o){var i=o.Interactable;i.prototype.getAction=function(u,y,_,O){var G=function(ee,be,je,De,aa){var Na=ee.getRect(De),Xa=be.buttons||{0:1,1:4,3:8,4:16}[be.button],Ga={action:null,interactable:ee,interaction:je,element:De,rect:Na,buttons:Xa};return aa.fire("auto-start:check",Ga),Ga.action}(this,y,_,O,o);return this.options.actionChecker?this.options.actionChecker(u,y,G,this,O,_):G},i.prototype.ignoreFrom=ha(function(u){return this._backCompatOption("ignoreFrom",u)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),i.prototype.allowFrom=ha(function(u){return this._backCompatOption("allowFrom",u)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),i.prototype.actionChecker=Ze,i.prototype.styleCursor=Xe}};function pl(o,i,u,y,_){return i.testIgnoreAllow(i.options[o.name],u,y)&&i.options[o.name].enabled&&il(i,u,o,_)?o:null}function Ve(o,i,u,y,_,O,G){for(var ee=0,be=y.length;ee<be;ee++){var je=y[ee],De=_[ee],aa=je.getAction(i,u,o,De);if(aa){var Na=pl(aa,je,De,O,G);if(Na)return{action:Na,interactable:je,element:De}}}return{action:null,interactable:null,element:null}}function Fa(o,i,u,y,_){var O=[],G=[],ee=y;function be(De){O.push(De),G.push(ee)}for(;w.element(ee);){O=[],G=[],_.interactables.forEachMatch(ee,be);var je=Ve(o,i,u,O,G,y,_);if(je.action&&!je.interactable.options[je.action.name].manualStart)return je;ee=Fe(ee)}return{action:null,interactable:null,element:null}}function Sa(o,i,u){var y=i.action,_=i.interactable,O=i.element;y=y||{name:null},o.interactable=_,o.element=O,va(o.prepared,y),o.rect=_&&y.name?_.getRect(O):null,Sl(o,u),u.fire("autoStart:prepared",{interaction:o})}function il(o,i,u,y){var _=o.options,O=_[u.name].max,G=_[u.name].maxPerElement,ee=y.autoStart.maxInteractions,be=0,je=0,De=0;if(!(O&&G&&ee))return!1;for(var aa=0,Na=y.interactions.list;aa<Na.length;aa++){var Xa=Na[aa],Ga=Xa.prepared.name;if(Xa.interacting()&&(++be>=ee||Xa.interactable===o&&((je+=Ga===u.name?1:0)>=O||Xa.element===i&&(De++,Ga===u.name&&De>=G))))return!1}return ee>0}function Ia(o,i){return w.number(o)?(i.autoStart.maxInteractions=o,this):i.autoStart.maxInteractions}function ze(o,i,u){var y=u.autoStart.cursorElement;y&&y!==o&&(y.style.cursor=""),o.ownerDocument.documentElement.style.cursor=i,o.style.cursor=i,u.autoStart.cursorElement=i?o:null}function Sl(o,i){var u=o.interactable,y=o.element,_=o.prepared;if(o.pointerType==="mouse"&&u&&u.options.styleCursor){var O="";if(_.name){var G=u.options[_.name].cursorChecker;O=w.func(G)?G(_,u,y,o._interacting):i.actions.map[_.name].getCursor(_)}ze(o.element,O||"",i)}else i.autoStart.cursorElement&&ze(i.autoStart.cursorElement,"",i)}var Il={id:"auto-start/base",before:["actions"],install:function(o){var i=o.interactStatic,u=o.defaults;o.usePlugin(Ke),u.base.actionChecker=null,u.base.styleCursor=!0,le(u.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),i.maxInteractions=function(y){return Ia(y,o)},o.autoStart={maxInteractions:1/0,withinInteractionLimit:il,cursorElement:null}},listeners:{"interactions:down":function(o,i){var u=o.interaction,y=o.pointer,_=o.event,O=o.eventTarget;u.interacting()||Sa(u,Fa(u,y,_,O,i),i)},"interactions:move":function(o,i){(function(u,y){var _=u.interaction,O=u.pointer,G=u.event,ee=u.eventTarget;_.pointerType!=="mouse"||_.pointerIsDown||_.interacting()||Sa(_,Fa(_,O,G,ee,y),y)})(o,i),function(u,y){var _=u.interaction;if(_.pointerIsDown&&!_.interacting()&&_.pointerWasMoved&&_.prepared.name){y.fire("autoStart:before-start",u);var O=_.interactable,G=_.prepared.name;G&&O&&(O.options[G].manualStart||!il(O,_.element,_.prepared,y)?_.stop():(_.start(_.prepared,O,_.element),Sl(_,y)))}}(o,i)},"interactions:stop":function(o,i){var u=o.interaction,y=u.interactable;y&&y.options.styleCursor&&ze(u.element,"",i)}},maxInteractions:Ia,withinInteractionLimit:il,validateAction:pl},Ul=Il,ql={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(o,i){var u=o.interaction,y=o.eventTarget,_=o.dx,O=o.dy;if(u.prepared.name==="drag"){var G=Math.abs(_),ee=Math.abs(O),be=u.interactable.options.drag,je=be.startAxis,De=G>ee?"x":G<ee?"y":"xy";if(u.prepared.axis=be.lockAxis==="start"?De[0]:be.lockAxis,De!=="xy"&&je!=="xy"&&je!==De){u.prepared.name=null;for(var aa=y,Na=function(Ga){if(Ga!==u.interactable){var al=u.interactable.options.drag;if(!al.manualStart&&Ga.testIgnoreAllow(al,aa,y)){var bl=Ga.getAction(u.downPointer,u.downEvent,u,aa);if(bl&&bl.name==="drag"&&function(yl,Cl){if(!Cl)return!1;var wl=Cl.options.drag.startAxis;return yl==="xy"||wl==="xy"||wl===yl}(De,Ga)&&Ul.validateAction(bl,Ga,aa,y,i))return Ga}}};w.element(aa);){var Xa=i.interactables.forEachMatch(aa,Na);if(Xa){u.prepared.name="drag",u.interactable=Xa,u.element=aa;break}aa=Fe(aa)}}}}}};function Ql(o){var i=o.prepared&&o.prepared.name;if(!i)return null;var u=o.interactable.options;return u[i].hold||u[i].delay}var dr={id:"auto-start/hold",install:function(o){var i=o.defaults;o.usePlugin(Ul),i.perAction.hold=0,i.perAction.delay=0},listeners:{"interactions:new":function(o){o.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(o){var i=o.interaction,u=Ql(i);u>0&&(i.autoStartHoldTimer=setTimeout(function(){i.start(i.prepared,i.interactable,i.element)},u))},"interactions:move":function(o){var i=o.interaction,u=o.duplicate;i.autoStartHoldTimer&&i.pointerWasMoved&&!u&&(clearTimeout(i.autoStartHoldTimer),i.autoStartHoldTimer=null)},"autoStart:before-start":function(o){var i=o.interaction;Ql(i)>0&&(i.prepared.name=null)}},getHoldDuration:Ql},Ol=dr,pr={id:"auto-start",install:function(o){o.usePlugin(Ul),o.usePlugin(Ol),o.usePlugin(ql)}},Fr=function(o){return/^(always|never|auto)$/.test(o)?(this.options.preventDefault=o,this):w.bool(o)?(this.options.preventDefault=o?"always":"never",this):this.options.preventDefault};function Pl(o){var i=o.interaction,u=o.event;i.interactable&&i.interactable.checkAndPreventDefault(u)}var ar={id:"core/interactablePreventDefault",install:function(o){var i=o.Interactable;i.prototype.preventDefault=Fr,i.prototype.checkAndPreventDefault=function(u){return function(y,_,O){var G=y.options.preventDefault;if(G!=="never")if(G!=="always"){if(_.events.supportsPassive&&/^touch(start|move)$/.test(O.type)){var ee=x(O.target).document,be=_.getDocOptions(ee);if(!be||!be.events||be.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(O.type)||w.element(O.target)&&ye(O.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||O.preventDefault()}else O.preventDefault()}(this,o,u)},o.interactions.docEvents.push({type:"dragstart",listener:function(u){for(var y=0,_=o.interactions.list;y<_.length;y++){var O=_[y];if(O.element&&(O.element===u.target||de(O.element,u.target)))return void O.interactable.checkAndPreventDefault(u)}}})},listeners:["down","move","up","cancel"].reduce(function(o,i){return o["interactions:".concat(i)]=Pl,o},{})};function Pr(o,i){if(i.phaselessTypes[o])return!0;for(var u in i.map)if(o.indexOf(u)===0&&o.substr(u.length)in i.phases)return!0;return!1}function Tr(o){var i={};for(var u in o){var y=o[u];w.plainObject(y)?i[u]=Tr(y):w.array(y)?i[u]=q(y):i[u]=y}return i}var jr=function(){function o(i){s(this,o),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=i,this.result=Ir(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return p(o,[{key:"start",value:function(i,u){var y,_,O=i.phase,G=this.interaction,ee=function(je){var De=je.interactable.options[je.prepared.name],aa=De.modifiers;return aa&&aa.length?aa:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(Na){var Xa=De[Na];return Xa&&Xa.enabled&&{options:Xa,methods:Xa._methods}}).filter(function(Na){return!!Na})}(G);this.prepareStates(ee),this.startEdges=le({},G.edges),this.edges=le({},this.startEdges),this.startOffset=(y=G.rect,_=u,y?{left:_.x-y.left,top:_.y-y.top,right:y.right-_.x,bottom:y.bottom-_.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var be=this.fillArg({phase:O,pageCoords:u,preEnd:!1});return this.result=Ir(),this.startAll(be),this.result=this.setAll(be)}},{key:"fillArg",value:function(i){var u=this.interaction;return i.interaction=u,i.interactable=u.interactable,i.element=u.element,i.rect||(i.rect=u.rect),i.edges||(i.edges=this.startEdges),i.startOffset=this.startOffset,i}},{key:"startAll",value:function(i){for(var u=0,y=this.states;u<y.length;u++){var _=y[u];_.methods.start&&(i.state=_,_.methods.start(i))}}},{key:"setAll",value:function(i){var u=i.phase,y=i.preEnd,_=i.skipModifiers,O=i.rect,G=i.edges;i.coords=le({},i.pageCoords),i.rect=le({},O),i.edges=le({},G);for(var ee=_?this.states.slice(_):this.states,be=Ir(i.coords,i.rect),je=0;je<ee.length;je++){var De,aa=ee[je],Na=aa.options,Xa=le({},i.coords),Ga=null;(De=aa.methods)!=null&&De.set&&this.shouldDo(Na,y,u)&&(i.state=aa,Ga=aa.methods.set(i),oe(i.edges,i.rect,{x:i.coords.x-Xa.x,y:i.coords.y-Xa.y})),be.eventProps.push(Ga)}le(this.edges,i.edges),be.delta.x=i.coords.x-i.pageCoords.x,be.delta.y=i.coords.y-i.pageCoords.y,be.rectDelta.left=i.rect.left-O.left,be.rectDelta.right=i.rect.right-O.right,be.rectDelta.top=i.rect.top-O.top,be.rectDelta.bottom=i.rect.bottom-O.bottom;var al=this.result.coords,bl=this.result.rect;if(al&&bl){var yl=be.rect.left!==bl.left||be.rect.right!==bl.right||be.rect.top!==bl.top||be.rect.bottom!==bl.bottom;be.changed=yl||al.x!==be.coords.x||al.y!==be.coords.y}return be}},{key:"applyToInteraction",value:function(i){var u=this.interaction,y=i.phase,_=u.coords.cur,O=u.coords.start,G=this.result,ee=this.startDelta,be=G.delta;y==="start"&&le(this.startDelta,G.delta);for(var je=0,De=[[O,ee],[_,be]];je<De.length;je++){var aa=De[je],Na=aa[0],Xa=aa[1];Na.page.x+=Xa.x,Na.page.y+=Xa.y,Na.client.x+=Xa.x,Na.client.y+=Xa.y}var Ga=this.result.rectDelta,al=i.rect||u.rect;al.left+=Ga.left,al.right+=Ga.right,al.top+=Ga.top,al.bottom+=Ga.bottom,al.width=al.right-al.left,al.height=al.bottom-al.top}},{key:"setAndApply",value:function(i){var u=this.interaction,y=i.phase,_=i.preEnd,O=i.skipModifiers,G=this.setAll(this.fillArg({preEnd:_,phase:y,pageCoords:i.modifiedCoords||u.coords.cur.page}));if(this.result=G,!G.changed&&(!O||O<this.states.length)&&u.interacting())return!1;if(i.modifiedCoords){var ee=u.coords.cur.page,be={x:i.modifiedCoords.x-ee.x,y:i.modifiedCoords.y-ee.y};G.coords.x+=be.x,G.coords.y+=be.y,G.delta.x+=be.x,G.delta.y+=be.y}this.applyToInteraction(i)}},{key:"beforeEnd",value:function(i){var u=i.interaction,y=i.event,_=this.states;if(_&&_.length){for(var O=!1,G=0;G<_.length;G++){var ee=_[G];i.state=ee;var be=ee.options,je=ee.methods,De=je.beforeEnd&&je.beforeEnd(i);if(De)return this.endResult=De,!1;O=O||!O&&this.shouldDo(be,!0,i.phase,!0)}O&&u.move({event:y,preEnd:!0})}}},{key:"stop",value:function(i){var u=i.interaction;if(this.states&&this.states.length){var y=le({states:this.states,interactable:u.interactable,element:u.element,rect:null},i);this.fillArg(y);for(var _=0,O=this.states;_<O.length;_++){var G=O[_];y.state=G,G.methods.stop&&G.methods.stop(y)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(i){this.states=[];for(var u=0;u<i.length;u++){var y=i[u],_=y.options,O=y.methods,G=y.name;this.states.push({options:_,methods:O,index:u,name:G})}return this.states}},{key:"restoreInteractionCoords",value:function(i){var u=i.interaction,y=u.coords,_=u.rect,O=u.modification;if(O.result){for(var G=O.startDelta,ee=O.result,be=ee.delta,je=ee.rectDelta,De=0,aa=[[y.start,G],[y.cur,be]];De<aa.length;De++){var Na=aa[De],Xa=Na[0],Ga=Na[1];Xa.page.x-=Ga.x,Xa.page.y-=Ga.y,Xa.client.x-=Ga.x,Xa.client.y-=Ga.y}_.left-=je.left,_.right-=je.right,_.top-=je.top,_.bottom-=je.bottom}}},{key:"shouldDo",value:function(i,u,y,_){return!(!i||i.enabled===!1||_&&!i.endOnly||i.endOnly&&!u||y==="start"&&!i.setStart)}},{key:"copyFrom",value:function(i){this.startOffset=i.startOffset,this.startDelta=i.startDelta,this.startEdges=i.startEdges,this.edges=i.edges,this.states=i.states.map(function(u){return Tr(u)}),this.result=Ir(le({},i.result.coords),le({},i.result.rect))}},{key:"destroy",value:function(){for(var i in this)this[i]=null}}]),o}();function Ir(o,i){return{rect:i,coords:o,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function Er(o,i){var u=o.defaults,y={start:o.start,set:o.set,beforeEnd:o.beforeEnd,stop:o.stop},_=function(O){var G=O||{};for(var ee in G.enabled=G.enabled!==!1,u)ee in G||(G[ee]=u[ee]);var be={options:G,methods:y,name:i,enable:function(){return G.enabled=!0,be},disable:function(){return G.enabled=!1,be}};return be};return i&&typeof i=="string"&&(_._defaults=u,_._methods=y),_}function Cr(o){var i=o.iEvent,u=o.interaction.modification.result;u&&(i.modifiers=u.eventProps)}var mn={id:"modifiers/base",before:["actions"],install:function(o){o.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(o){var i=o.interaction;i.modification=new jr(i)},"interactions:before-action-start":function(o){var i=o.interaction,u=o.interaction.modification;u.start(o,i.coords.start.page),i.edges=u.edges,u.applyToInteraction(o)},"interactions:before-action-move":function(o){var i=o.interaction,u=i.modification,y=u.setAndApply(o);return i.edges=u.edges,y},"interactions:before-action-end":function(o){var i=o.interaction,u=i.modification,y=u.beforeEnd(o);return i.edges=u.startEdges,y},"interactions:action-start":Cr,"interactions:action-move":Cr,"interactions:action-end":Cr,"interactions:after-action-start":function(o){return o.interaction.modification.restoreInteractionCoords(o)},"interactions:after-action-move":function(o){return o.interaction.modification.restoreInteractionCoords(o)},"interactions:stop":function(o){return o.interaction.modification.stop(o)}}},Br=mn,cr={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},yn=function(o){m(u,o);var i=M(u);function u(y,_,O,G,ee,be,je){var De;s(this,u),(De=i.call(this,y)).relatedTarget=null,De.screenX=void 0,De.screenY=void 0,De.button=void 0,De.buttons=void 0,De.ctrlKey=void 0,De.shiftKey=void 0,De.altKey=void 0,De.metaKey=void 0,De.page=void 0,De.client=void 0,De.delta=void 0,De.rect=void 0,De.x0=void 0,De.y0=void 0,De.t0=void 0,De.dt=void 0,De.duration=void 0,De.clientX0=void 0,De.clientY0=void 0,De.velocity=void 0,De.speed=void 0,De.swipe=void 0,De.axes=void 0,De.preEnd=void 0,ee=ee||y.element;var aa=y.interactable,Na=(aa&&aa.options||cr).deltaSource,Xa=Te(aa,ee,O),Ga=G==="start",al=G==="end",bl=Ga?D(De):y.prevEvent,yl=Ga?y.coords.start:al?{page:bl.page,client:bl.client,timeStamp:y.coords.cur.timeStamp}:y.coords.cur;return De.page=le({},yl.page),De.client=le({},yl.client),De.rect=le({},y.rect),De.timeStamp=yl.timeStamp,al||(De.page.x-=Xa.x,De.page.y-=Xa.y,De.client.x-=Xa.x,De.client.y-=Xa.y),De.ctrlKey=_.ctrlKey,De.altKey=_.altKey,De.shiftKey=_.shiftKey,De.metaKey=_.metaKey,De.button=_.button,De.buttons=_.buttons,De.target=ee,De.currentTarget=ee,De.preEnd=be,De.type=je||O+(G||""),De.interactable=aa,De.t0=Ga?y.pointers[y.pointers.length-1].downTime:bl.t0,De.x0=y.coords.start.page.x-Xa.x,De.y0=y.coords.start.page.y-Xa.y,De.clientX0=y.coords.start.client.x-Xa.x,De.clientY0=y.coords.start.client.y-Xa.y,De.delta=Ga||al?{x:0,y:0}:{x:De[Na].x-bl[Na].x,y:De[Na].y-bl[Na].y},De.dt=y.coords.delta.timeStamp,De.duration=De.timeStamp-De.t0,De.velocity=le({},y.coords.velocity[Na]),De.speed=Ja(De.velocity.x,De.velocity.y),De.swipe=al||G==="inertiastart"?De.getSwipe():null,De}return p(u,[{key:"getSwipe",value:function(){var y=this._interaction;if(y.prevEvent.speed<600||this.timeStamp-y.prevEvent.timeStamp>150)return null;var _=180*Math.atan2(y.prevEvent.velocityY,y.prevEvent.velocityX)/Math.PI;_<0&&(_+=360);var O=112.5<=_&&_<247.5,G=202.5<=_&&_<337.5;return{up:G,down:!G&&22.5<=_&&_<157.5,left:O,right:!O&&(292.5<=_||_<67.5),angle:_,speed:y.prevEvent.speed,velocity:{x:y.prevEvent.velocityX,y:y.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),u}(X);Object.defineProperties(yn.prototype,{pageX:{get:function(){return this.page.x},set:function(o){this.page.x=o}},pageY:{get:function(){return this.page.y},set:function(o){this.page.y=o}},clientX:{get:function(){return this.client.x},set:function(o){this.client.x=o}},clientY:{get:function(){return this.client.y},set:function(o){this.client.y=o}},dx:{get:function(){return this.delta.x},set:function(o){this.delta.x=o}},dy:{get:function(){return this.delta.y},set:function(o){this.delta.y=o}},velocityX:{get:function(){return this.velocity.x},set:function(o){this.velocity.x=o}},velocityY:{get:function(){return this.velocity.y},set:function(o){this.velocity.y=o}}});var ln=p(function o(i,u,y,_,O){s(this,o),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=i,this.pointer=u,this.event=y,this.downTime=_,this.downTarget=O}),rn=function(o){return o.interactable="",o.element="",o.prepared="",o.pointerIsDown="",o.pointerWasMoved="",o._proxy="",o}({}),Sn=function(o){return o.start="",o.move="",o.end="",o.stop="",o.interacting="",o}({}),Bn=0,pn=function(){function o(i){var u=this,y=i.pointerType,_=i.scopeFire;s(this,o),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=ha(function(De){this.move(De)},"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=Bn++,this._scopeFire=_,this.pointerType=y;var O=this;this._proxy={};var G=function(De){Object.defineProperty(u._proxy,De,{get:function(){return O[De]}})};for(var ee in rn)G(ee);var be=function(De){Object.defineProperty(u._proxy,De,{value:function(){return O[De].apply(O,arguments)}})};for(var je in Sn)be(je);this._scopeFire("interactions:new",{interaction:this})}return p(o,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(i,u,y){var _=this.updatePointer(i,u,y,!0),O=this.pointers[_];this._scopeFire("interactions:down",{pointer:i,event:u,eventTarget:y,pointerIndex:_,pointerInfo:O,type:"down",interaction:this})}},{key:"start",value:function(i,u,y){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(i.name==="gesture"?2:1)||!u.options[i.name].enabled)&&(va(this.prepared,i),this.interactable=u,this.element=y,this.rect=u.getRect(y),this.edges=this.prepared.edges?le({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(i,u,y){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(i,u,y,!1);var _,O,G=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(_=this.coords.cur.client.x-this.coords.start.client.x,O=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=Ja(_,O)>this.pointerMoveTolerance);var ee,be,je,De=this.getPointerIndex(i),aa={pointer:i,pointerIndex:De,pointerInfo:this.pointers[De],event:u,type:"move",eventTarget:y,dx:_,dy:O,duplicate:G,interaction:this};G||(ee=this.coords.velocity,be=this.coords.delta,je=Math.max(be.timeStamp/1e3,.001),ee.page.x=be.page.x/je,ee.page.y=be.page.y/je,ee.client.x=be.client.x/je,ee.client.y=be.client.y/je,ee.timeStamp=je),this._scopeFire("interactions:move",aa),G||this.simulation||(this.interacting()&&(aa.type=null,this.move(aa)),this.pointerWasMoved&&Q(this.coords.prev,this.coords.cur))}},{key:"move",value:function(i){i&&i.event||me(this.coords.delta),(i=le({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},i||{})).phase="move",this._doPhase(i)}},{key:"pointerUp",value:function(i,u,y,_){var O=this.getPointerIndex(i);O===-1&&(O=this.updatePointer(i,u,y,!1));var G=/cancel$/i.test(u.type)?"cancel":"up";this._scopeFire("interactions:".concat(G),{pointer:i,pointerIndex:O,pointerInfo:this.pointers[O],event:u,eventTarget:y,type:G,curEventTarget:_,interaction:this}),this.simulation||this.end(u),this.removePointer(i,u)}},{key:"documentBlur",value:function(i){this.end(i),this._scopeFire("interactions:blur",{event:i,type:"blur",interaction:this})}},{key:"end",value:function(i){var u;this._ending=!0,i=i||this._latestPointer.event,this.interacting()&&(u=this._doPhase({event:i,interaction:this,phase:"end"})),this._ending=!1,u===!0&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(i){var u=ce(i);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:Be(this.pointers,function(y){return y.id===u})}},{key:"getPointerInfo",value:function(i){return this.pointers[this.getPointerIndex(i)]}},{key:"updatePointer",value:function(i,u,y,_){var O,G,ee,be=ce(i),je=this.getPointerIndex(i),De=this.pointers[je];return _=_!==!1&&(_||/(down|start)$/i.test(u.type)),De?De.pointer=i:(De=new ln(be,i,u,null,null),je=this.pointers.length,this.pointers.push(De)),pa(this.coords.cur,this.pointers.map(function(aa){return aa.pointer}),this._now()),O=this.coords.delta,G=this.coords.prev,ee=this.coords.cur,O.page.x=ee.page.x-G.page.x,O.page.y=ee.page.y-G.page.y,O.client.x=ee.client.x-G.client.x,O.client.y=ee.client.y-G.client.y,O.timeStamp=ee.timeStamp-G.timeStamp,_&&(this.pointerIsDown=!0,De.downTime=this.coords.cur.timeStamp,De.downTarget=y,H(this.downPointer,i),this.interacting()||(Q(this.coords.start,this.coords.cur),Q(this.coords.prev,this.coords.cur),this.downEvent=u,this.pointerWasMoved=!1)),this._updateLatestPointer(i,u,y),this._scopeFire("interactions:update-pointer",{pointer:i,event:u,eventTarget:y,down:_,pointerInfo:De,pointerIndex:je,interaction:this}),je}},{key:"removePointer",value:function(i,u){var y=this.getPointerIndex(i);if(y!==-1){var _=this.pointers[y];this._scopeFire("interactions:remove-pointer",{pointer:i,event:u,eventTarget:null,pointerIndex:y,pointerInfo:_,interaction:this}),this.pointers.splice(y,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(i,u,y){this._latestPointer.pointer=i,this._latestPointer.event=u,this._latestPointer.eventTarget=y}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(i,u,y,_){return new yn(this,i,this.prepared.name,u,this.element,y,_)}},{key:"_fireEvent",value:function(i){var u;(u=this.interactable)==null||u.fire(i),(!this.prevEvent||i.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=i)}},{key:"_doPhase",value:function(i){var u=i.event,y=i.phase,_=i.preEnd,O=i.type,G=this.rect;if(G&&y==="move"&&(oe(this.edges,G,this.coords.delta[this.interactable.options.deltaSource]),G.width=G.right-G.left,G.height=G.bottom-G.top),this._scopeFire("interactions:before-action-".concat(y),i)===!1)return!1;var ee=i.iEvent=this._createPreparedEvent(u,y,_,O);return this._scopeFire("interactions:action-".concat(y),i),y==="start"&&(this.prevEvent=ee),this._fireEvent(ee),this._scopeFire("interactions:after-action-".concat(y),i),!0}},{key:"_now",value:function(){return Date.now()}}]),o}();function lr(o){Ml(o.interaction)}function Ml(o){if(!function(u){return!(!u.offset.pending.x&&!u.offset.pending.y)}(o))return!1;var i=o.offset.pending;return cl(o.coords.cur,i),cl(o.coords.delta,i),oe(o.edges,o.rect,i),i.x=0,i.y=0,!0}function zr(o){var i=o.x,u=o.y;this.offset.pending.x+=i,this.offset.pending.y+=u,this.offset.total.x+=i,this.offset.total.y+=u}function cl(o,i){var u=o.page,y=o.client,_=i.x,O=i.y;u.x+=_,u.y+=O,y.x+=_,y.y+=O}Sn.offsetBy="";var sr={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(o){o.Interaction.prototype.offsetBy=zr},listeners:{"interactions:new":function(o){o.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(o){return function(i){i.pointerIsDown&&(cl(i.coords.cur,i.offset.total),i.offset.pending.x=0,i.offset.pending.y=0)}(o.interaction)},"interactions:before-action-start":lr,"interactions:before-action-move":lr,"interactions:before-action-end":function(o){var i=o.interaction;if(Ml(i))return i.move({offset:!0}),i.end(),!1},"interactions:stop":function(o){var i=o.interaction;i.offset.total.x=0,i.offset.total.y=0,i.offset.pending.x=0,i.offset.pending.y=0}}},$l=sr,_r=function(){function o(i){s(this,o),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=i}return p(o,[{key:"start",value:function(i){var u=this.interaction,y=Kl(u);if(!y||!y.enabled)return!1;var _=u.coords.velocity.client,O=Ja(_.x,_.y),G=this.modification||(this.modification=new jr(u));if(G.copyFrom(u.modification),this.t0=u._now(),this.allowResume=y.allowResume,this.v0=O,this.currentOffset={x:0,y:0},this.startCoords=u.coords.cur.page,this.modifierArg=G.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-u.coords.cur.timeStamp<50&&O>y.minSpeed&&O>y.endSpeed)this.startInertia();else{if(G.result=G.setAll(this.modifierArg),!G.result.changed)return!1;this.startSmoothEnd()}return u.modification.result.rect=null,u.offsetBy(this.targetOffset),u._doPhase({interaction:u,event:i,phase:"inertiastart"}),u.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),u.modification.result.rect=null,this.active=!0,u.simulation=this,!0}},{key:"startInertia",value:function(){var i=this,u=this.interaction.coords.velocity.client,y=Kl(this.interaction),_=y.resistance,O=-Math.log(y.endSpeed/this.v0)/_;this.targetOffset={x:(u.x-O)/_,y:(u.y-O)/_},this.te=O,this.lambda_v0=_/this.v0,this.one_ve_v0=1-y.endSpeed/this.v0;var G=this.modification,ee=this.modifierArg;ee.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},G.result=G.setAll(ee),G.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+G.result.delta.x,y:this.targetOffset.y+G.result.delta.y}),this.onNextFrame(function(){return i.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var i=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame(function(){return i.smoothEndTick()})}},{key:"onNextFrame",value:function(i){var u=this;this.timeout=La.request(function(){u.active&&i()})}},{key:"inertiaTick",value:function(){var i,u,y,_,O,G,ee,be=this,je=this.interaction,De=Kl(je).resistance,aa=(je._now()-this.t0)/1e3;if(aa<this.te){var Na,Xa=1-(Math.exp(-De*aa)-this.lambda_v0)/this.one_ve_v0;this.isModified?(i=0,u=0,y=this.targetOffset.x,_=this.targetOffset.y,O=this.modifiedOffset.x,G=this.modifiedOffset.y,Na={x:Lr(ee=Xa,i,y,O),y:Lr(ee,u,_,G)}):Na={x:this.targetOffset.x*Xa,y:this.targetOffset.y*Xa};var Ga={x:Na.x-this.currentOffset.x,y:Na.y-this.currentOffset.y};this.currentOffset.x+=Ga.x,this.currentOffset.y+=Ga.y,je.offsetBy(Ga),je.move(),this.onNextFrame(function(){return be.inertiaTick()})}else je.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var i=this,u=this.interaction,y=u._now()-this.t0,_=Kl(u).smoothEndDuration;if(y<_){var O={x:gn(y,0,this.targetOffset.x,_),y:gn(y,0,this.targetOffset.y,_)},G={x:O.x-this.currentOffset.x,y:O.y-this.currentOffset.y};this.currentOffset.x+=G.x,this.currentOffset.y+=G.y,u.offsetBy(G),u.move({skipModifiers:this.modifierCount}),this.onNextFrame(function(){return i.smoothEndTick()})}else u.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(i){var u=i.pointer,y=i.event,_=i.eventTarget,O=this.interaction;O.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),O.updatePointer(u,y,_,!0),O._doPhase({interaction:O,event:y,phase:"resume"}),Q(O.coords.prev,O.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,La.cancel(this.timeout)}}]),o}();function Kl(o){var i=o.interactable,u=o.prepared;return i&&i.options&&u.name&&i.options[u.name].inertia}var fr={id:"inertia",before:["modifiers","actions"],install:function(o){var i=o.defaults;o.usePlugin($l),o.usePlugin(Br),o.actions.phases.inertiastart=!0,o.actions.phases.resume=!0,i.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(o){var i=o.interaction;i.inertia=new _r(i)},"interactions:before-action-end":function(o){var i=o.interaction,u=o.event;return(!i._interacting||i.simulation||!i.inertia.start(u))&&null},"interactions:down":function(o){var i=o.interaction,u=o.eventTarget,y=i.inertia;if(y.active)for(var _=u;w.element(_);){if(_===i.element){y.resume(o);break}_=Fe(_)}},"interactions:stop":function(o){var i=o.interaction.inertia;i.active&&i.stop()},"interactions:before-action-resume":function(o){var i=o.interaction.modification;i.stop(o),i.start(o,o.interaction.coords.cur.page),i.applyToInteraction(o)},"interactions:before-action-inertiastart":function(o){return o.interaction.modification.setAndApply(o)},"interactions:action-resume":Cr,"interactions:action-inertiastart":Cr,"interactions:after-action-inertiastart":function(o){return o.interaction.modification.restoreInteractionCoords(o)},"interactions:after-action-resume":function(o){return o.interaction.modification.restoreInteractionCoords(o)}}};function Lr(o,i,u,y){var _=1-o;return _*_*i+2*_*o*u+o*o*y}function gn(o,i,u,y){return-u*(o/=y)*(o-2)+i}var Nn=fr;function bn(o,i){for(var u=0;u<i.length;u++){var y=i[u];if(o.immediatePropagationStopped)break;y(o)}}var qn=function(){function o(i){s(this,o),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=le({},i||{})}return p(o,[{key:"fire",value:function(i){var u,y=this.global;(u=this.types[i.type])&&bn(i,u),!i.propagationStopped&&y&&(u=y[i.type])&&bn(i,u)}},{key:"on",value:function(i,u){var y=Ue(i,u);for(i in y)this.types[i]=Z(this.types[i]||[],y[i])}},{key:"off",value:function(i,u){var y=Ue(i,u);for(i in y){var _=this.types[i];if(_&&_.length)for(var O=0,G=y[i];O<G.length;O++){var ee=G[O],be=_.indexOf(ee);be!==-1&&_.splice(be,1)}}}},{key:"getRect",value:function(i){return null}}]),o}(),Ln=function(){function o(i){s(this,o),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=i,H(this,i)}return p(o,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),o}();function kn(o){return w.object(o)?{capture:!!o.capture,passive:!!o.passive}:{capture:!!o,passive:!1}}function Tn(o,i){return o===i||(typeof o=="boolean"?!!i.capture===o&&!i.passive:!!o.capture==!!i.capture&&!!o.passive==!!i.passive)}var Rn={id:"events",install:function(o){var i,u=[],y={},_=[],O={add:G,remove:ee,addDelegate:function(De,aa,Na,Xa,Ga){var al=kn(Ga);if(!y[Na]){y[Na]=[];for(var bl=0;bl<_.length;bl++){var yl=_[bl];G(yl,Na,be),G(yl,Na,je,!0)}}var Cl=y[Na],wl=Je(Cl,function(Zl){return Zl.selector===De&&Zl.context===aa});wl||(wl={selector:De,context:aa,listeners:[]},Cl.push(wl)),wl.listeners.push({func:Xa,options:al})},removeDelegate:function(De,aa,Na,Xa,Ga){var al,bl=kn(Ga),yl=y[Na],Cl=!1;if(yl)for(al=yl.length-1;al>=0;al--){var wl=yl[al];if(wl.selector===De&&wl.context===aa){for(var Zl=wl.listeners,Dl=Zl.length-1;Dl>=0;Dl--){var jl=Zl[Dl];if(jl.func===Xa&&Tn(jl.options,bl)){Zl.splice(Dl,1),Zl.length||(yl.splice(al,1),ee(aa,Na,be),ee(aa,Na,je,!0)),Cl=!0;break}}if(Cl)break}}},delegateListener:be,delegateUseCapture:je,delegatedEvents:y,documents:_,targets:u,supportsOptions:!1,supportsPassive:!1};function G(De,aa,Na,Xa){if(De.addEventListener){var Ga=kn(Xa),al=Je(u,function(bl){return bl.eventTarget===De});al||(al={eventTarget:De,events:{}},u.push(al)),al.events[aa]||(al.events[aa]=[]),Je(al.events[aa],function(bl){return bl.func===Na&&Tn(bl.options,Ga)})||(De.addEventListener(aa,Na,O.supportsOptions?Ga:Ga.capture),al.events[aa].push({func:Na,options:Ga}))}}function ee(De,aa,Na,Xa){if(De.addEventListener&&De.removeEventListener){var Ga=Be(u,function(kr){return kr.eventTarget===De}),al=u[Ga];if(al&&al.events)if(aa!=="all"){var bl=!1,yl=al.events[aa];if(yl){if(Na==="all"){for(var Cl=yl.length-1;Cl>=0;Cl--){var wl=yl[Cl];ee(De,aa,wl.func,wl.options)}return}for(var Zl=kn(Xa),Dl=0;Dl<yl.length;Dl++){var jl=yl[Dl];if(jl.func===Na&&Tn(jl.options,Zl)){De.removeEventListener(aa,Na,O.supportsOptions?Zl:Zl.capture),yl.splice(Dl,1),yl.length===0&&(delete al.events[aa],bl=!0);break}}}bl&&!Object.keys(al.events).length&&u.splice(Ga,1)}else for(aa in al.events)al.events.hasOwnProperty(aa)&&ee(De,aa,"all")}}function be(De,aa){for(var Na=kn(aa),Xa=new Ln(De),Ga=y[De.type],al=re(De)[0],bl=al;w.element(bl);){for(var yl=0;yl<Ga.length;yl++){var Cl=Ga[yl],wl=Cl.selector,Zl=Cl.context;if(ye(bl,wl)&&de(Zl,al)&&de(Zl,bl)){var Dl=Cl.listeners;Xa.currentTarget=bl;for(var jl=0;jl<Dl.length;jl++){var kr=Dl[jl];Tn(kr.options,Na)&&kr.func(Xa)}}}bl=Fe(bl)}}function je(De){return be(De,!0)}return(i=o.document)==null||i.createElement("div").addEventListener("test",null,{get capture(){return O.supportsOptions=!0},get passive(){return O.supportsPassive=!0}}),o.events=O,O}},Qr={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(o){for(var i=0,u=Qr.methodOrder;i<u.length;i++){var y=u[i],_=Qr[y](o);if(_)return _}return null},simulationResume:function(o){var i=o.pointerType,u=o.eventType,y=o.eventTarget,_=o.scope;if(!/down|start/i.test(u))return null;for(var O=0,G=_.interactions.list;O<G.length;O++){var ee=G[O],be=y;if(ee.simulation&&ee.simulation.allowResume&&ee.pointerType===i)for(;be;){if(be===ee.element)return ee;be=Fe(be)}}return null},mouseOrPen:function(o){var i,u=o.pointerId,y=o.pointerType,_=o.eventType,O=o.scope;if(y!=="mouse"&&y!=="pen")return null;for(var G=0,ee=O.interactions.list;G<ee.length;G++){var be=ee[G];if(be.pointerType===y){if(be.simulation&&!An(be,u))continue;if(be.interacting())return be;i||(i=be)}}if(i)return i;for(var je=0,De=O.interactions.list;je<De.length;je++){var aa=De[je];if(!(aa.pointerType!==y||/down/i.test(_)&&aa.simulation))return aa}return null},hasPointer:function(o){for(var i=o.pointerId,u=0,y=o.scope.interactions.list;u<y.length;u++){var _=y[u];if(An(_,i))return _}return null},idle:function(o){for(var i=o.pointerType,u=0,y=o.scope.interactions.list;u<y.length;u++){var _=y[u];if(_.pointers.length===1){var O=_.interactable;if(O&&(!O.options.gesture||!O.options.gesture.enabled))continue}else if(_.pointers.length>=2)continue;if(!_.interacting()&&i===_.pointerType)return _}return null}};function An(o,i){return o.pointers.some(function(u){return u.id===i})}var Wn=Qr,Rr=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function Kn(o,i){return function(u){var y=i.interactions.list,_=Va(u),O=re(u),G=O[0],ee=O[1],be=[];if(/^touch/.test(u.type)){i.prevTouchTime=i.now();for(var je=0,De=u.changedTouches;je<De.length;je++){var aa=De[je],Na={pointer:aa,pointerId:ce(aa),pointerType:_,eventType:u.type,eventTarget:G,curEventTarget:ee,scope:i},Xa=fn(Na);be.push([Na.pointer,Na.eventTarget,Na.curEventTarget,Xa])}}else{var Ga=!1;if(!ae.supportsPointerEvent&&/mouse/.test(u.type)){for(var al=0;al<y.length&&!Ga;al++)Ga=y[al].pointerType!=="mouse"&&y[al].pointerIsDown;Ga=Ga||i.now()-i.prevTouchTime<500||u.timeStamp===0}if(!Ga){var bl={pointer:u,pointerId:ce(u),pointerType:_,eventType:u.type,curEventTarget:ee,eventTarget:G,scope:i},yl=fn(bl);be.push([bl.pointer,bl.eventTarget,bl.curEventTarget,yl])}}for(var Cl=0;Cl<be.length;Cl++){var wl=be[Cl],Zl=wl[0],Dl=wl[1],jl=wl[2];wl[3][o](Zl,u,Dl,jl)}}}function fn(o){var i=o.pointerType,u=o.scope,y={interaction:Wn.search(o),searchDetails:o};return u.fire("interactions:find",y),y.interaction||u.interactions.new({pointerType:i})}function Ni(o,i){var u=o.doc,y=o.scope,_=o.options,O=y.interactions.docEvents,G=y.events,ee=G[i];for(var be in y.browser.isIOS&&!_.events&&(_.events={passive:!1}),G.delegatedEvents)ee(u,be,G.delegateListener),ee(u,be,G.delegateUseCapture,!0);for(var je=_&&_.events,De=0;De<O.length;De++){var aa=O[De];ee(u,aa.type,aa.listener,je)}}var Lo={id:"core/interactions",install:function(o){for(var i={},u=0;u<Rr.length;u++){var y=Rr[u];i[y]=Kn(y,o)}var _,O=ae.pEventTypes;function G(){for(var ee=0,be=o.interactions.list;ee<be.length;ee++){var je=be[ee];if(je.pointerIsDown&&je.pointerType==="touch"&&!je._interacting)for(var De=function(){var Xa=Na[aa];o.documents.some(function(Ga){return de(Ga.doc,Xa.downTarget)})||je.removePointer(Xa.pointer,Xa.event)},aa=0,Na=je.pointers;aa<Na.length;aa++)De()}}(_=V.PointerEvent?[{type:O.down,listener:G},{type:O.down,listener:i.pointerDown},{type:O.move,listener:i.pointerMove},{type:O.up,listener:i.pointerUp},{type:O.cancel,listener:i.pointerUp}]:[{type:"mousedown",listener:i.pointerDown},{type:"mousemove",listener:i.pointerMove},{type:"mouseup",listener:i.pointerUp},{type:"touchstart",listener:G},{type:"touchstart",listener:i.pointerDown},{type:"touchmove",listener:i.pointerMove},{type:"touchend",listener:i.pointerUp},{type:"touchcancel",listener:i.pointerUp}]).push({type:"blur",listener:function(ee){for(var be=0,je=o.interactions.list;be<je.length;be++)je[be].documentBlur(ee)}}),o.prevTouchTime=0,o.Interaction=function(ee){m(je,ee);var be=M(je);function je(){return s(this,je),be.apply(this,arguments)}return p(je,[{key:"pointerMoveTolerance",get:function(){return o.interactions.pointerMoveTolerance},set:function(De){o.interactions.pointerMoveTolerance=De}},{key:"_now",value:function(){return o.now()}}]),je}(pn),o.interactions={list:[],new:function(ee){ee.scopeFire=function(je,De){return o.fire(je,De)};var be=new o.Interaction(ee);return o.interactions.list.push(be),be},listeners:i,docEvents:_,pointerMoveTolerance:1},o.usePlugin(ar)},listeners:{"scope:add-document":function(o){return Ni(o,"add")},"scope:remove-document":function(o){return Ni(o,"remove")},"interactable:unset":function(o,i){for(var u=o.interactable,y=i.interactions.list.length-1;y>=0;y--){var _=i.interactions.list[y];_.interactable===u&&(_.stop(),i.fire("interactions:destroy",{interaction:_}),_.destroy(),i.interactions.list.length>2&&i.interactions.list.splice(y,1))}}},onDocSignal:Ni,doOnInteractions:Kn,methodNames:Rr},Ro=Lo,En=function(o){return o[o.On=0]="On",o[o.Off=1]="Off",o}(En||{}),$o=function(){function o(i,u,y,_){s(this,o),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new qn,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=u.actions,this.target=i,this._context=u.context||y,this._win=x(Da(i)?this._context:i),this._doc=this._win.document,this._scopeEvents=_,this.set(u)}return p(o,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(i,u){return w.func(u.onstart)&&this.on("".concat(i,"start"),u.onstart),w.func(u.onmove)&&this.on("".concat(i,"move"),u.onmove),w.func(u.onend)&&this.on("".concat(i,"end"),u.onend),w.func(u.oninertiastart)&&this.on("".concat(i,"inertiastart"),u.oninertiastart),this}},{key:"updatePerActionListeners",value:function(i,u,y){var _,O=this,G=(_=this._actions.map[i])==null?void 0:_.filterEventType,ee=function(be){return(G==null||G(be))&&Pr(be,O._actions)};(w.array(u)||w.object(u))&&this._onOff(En.Off,i,u,void 0,ee),(w.array(y)||w.object(y))&&this._onOff(En.On,i,y,void 0,ee)}},{key:"setPerAction",value:function(i,u){var y=this._defaults;for(var _ in u){var O=_,G=this.options[i],ee=u[O];O==="listeners"&&this.updatePerActionListeners(i,G.listeners,ee),w.array(ee)?G[O]=q(ee):w.plainObject(ee)?(G[O]=le(G[O]||{},Tr(ee)),w.object(y.perAction[O])&&"enabled"in y.perAction[O]&&(G[O].enabled=ee.enabled!==!1)):w.bool(ee)&&w.object(y.perAction[O])?G[O].enabled=ee:G[O]=ee}}},{key:"getRect",value:function(i){return i=i||(w.element(this.target)?this.target:null),w.string(this.target)&&(i=i||this._context.querySelector(this.target)),Pe(i)}},{key:"rectChecker",value:function(i){var u=this;return w.func(i)?(this.getRect=function(y){var _=le({},i.apply(u,y));return"width"in _||(_.width=_.right-_.left,_.height=_.bottom-_.top),_},this):i===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(i,u){if(Da(u)||w.object(u)){for(var y in this.options[i]=u,this._actions.map)this.options[y][i]=u;return this}return this.options[i]}},{key:"origin",value:function(i){return this._backCompatOption("origin",i)}},{key:"deltaSource",value:function(i){return i==="page"||i==="client"?(this.options.deltaSource=i,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var i=this.target;return w.string(i)?Array.from(this._context.querySelectorAll(i)):w.func(i)&&i.getAllElements?i.getAllElements():w.element(i)?[i]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(i){return this._context===i.ownerDocument||de(this._context,i)}},{key:"testIgnoreAllow",value:function(i,u,y){return!this.testIgnore(i.ignoreFrom,u,y)&&this.testAllow(i.allowFrom,u,y)}},{key:"testAllow",value:function(i,u,y){return!i||!!w.element(y)&&(w.string(i)?U(y,i,u):!!w.element(i)&&de(i,y))}},{key:"testIgnore",value:function(i,u,y){return!(!i||!w.element(y))&&(w.string(i)?U(y,i,u):!!w.element(i)&&de(i,y))}},{key:"fire",value:function(i){return this.events.fire(i),this}},{key:"_onOff",value:function(i,u,y,_,O){w.object(u)&&!w.array(u)&&(_=y,y=null);var G=Ue(u,y,O);for(var ee in G){ee==="wheel"&&(ee=ae.wheelEvent);for(var be=0,je=G[ee];be<je.length;be++){var De=je[be];Pr(ee,this._actions)?this.events[i===En.On?"on":"off"](ee,De):w.string(this.target)?this._scopeEvents[i===En.On?"addDelegate":"removeDelegate"](this.target,this._context,ee,De,_):this._scopeEvents[i===En.On?"add":"remove"](this.target,ee,De,_)}}return this}},{key:"on",value:function(i,u,y){return this._onOff(En.On,i,u,y)}},{key:"off",value:function(i,u,y){return this._onOff(En.Off,i,u,y)}},{key:"set",value:function(i){var u=this._defaults;for(var y in w.object(i)||(i={}),this.options=Tr(u.base),this._actions.methodDict){var _=y,O=this._actions.methodDict[_];this.options[_]={},this.setPerAction(_,le(le({},u.perAction),u.actions[_])),this[O](i[_])}for(var G in i)G!=="getRect"?w.func(this[G])&&this[G](i[G]):this.rectChecker(i.getRect);return this}},{key:"unset",value:function(){if(w.string(this.target))for(var i in this._scopeEvents.delegatedEvents)for(var u=this._scopeEvents.delegatedEvents[i],y=u.length-1;y>=0;y--){var _=u[y],O=_.selector,G=_.context,ee=_.listeners;O===this.target&&G===this._context&&u.splice(y,1);for(var be=ee.length-1;be>=0;be--)this._scopeEvents.removeDelegate(this.target,this._context,i,ee[be][0],ee[be][1])}else this._scopeEvents.remove(this.target,"all")}}]),o}(),Vo=function(){function o(i){var u=this;s(this,o),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=i,i.addListeners({"interactable:unset":function(y){var _=y.interactable,O=_.target,G=w.string(O)?u.selectorMap[O]:O[u.scope.id],ee=Be(G,function(be){return be===_});G.splice(ee,1)}})}return p(o,[{key:"new",value:function(i,u){u=le(u||{},{actions:this.scope.actions});var y=new this.scope.Interactable(i,u,this.scope.document,this.scope.events);return this.scope.addDocument(y._doc),this.list.push(y),w.string(i)?(this.selectorMap[i]||(this.selectorMap[i]=[]),this.selectorMap[i].push(y)):(y.target[this.scope.id]||Object.defineProperty(i,this.scope.id,{value:[],configurable:!0}),i[this.scope.id].push(y)),this.scope.fire("interactable:new",{target:i,options:u,interactable:y,win:this.scope._win}),y}},{key:"getExisting",value:function(i,u){var y=u&&u.context||this.scope.document,_=w.string(i),O=_?this.selectorMap[i]:i[this.scope.id];if(O)return Je(O,function(G){return G._context===y&&(_||G.inContext(i))})}},{key:"forEachMatch",value:function(i,u){for(var y=0,_=this.list;y<_.length;y++){var O=_[y],G=void 0;if((w.string(O.target)?w.element(i)&&ye(i,O.target):i===O.target)&&O.inContext(i)&&(G=u(O)),G!==void 0)return G}}}]),o}(),Fo=function(){function o(){var i=this;s(this,o),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=ae,this.defaults=Tr(cr),this.Eventable=qn,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(y){var _=function O(G,ee){var be=y.interactables.getExisting(G,ee);return be||((be=y.interactables.new(G,ee)).events.global=O.globalEvents),be};return _.getPointerAverage=We,_.getTouchBBox=Ta,_.getTouchDistance=Ca,_.getTouchAngle=Qe,_.getElementRect=Pe,_.getElementClientRect=Le,_.matchesSelector=ye,_.closest=Ce,_.globalEvents={},_.version="1.10.27",_.scope=y,_.use=function(O,G){return this.scope.usePlugin(O,G),this},_.isSet=function(O,G){return!!this.scope.interactables.get(O,G&&G.context)},_.on=ha(function(O,G,ee){if(w.string(O)&&O.search(" ")!==-1&&(O=O.trim().split(/ +/)),w.array(O)){for(var be=0,je=O;be<je.length;be++){var De=je[be];this.on(De,G,ee)}return this}if(w.object(O)){for(var aa in O)this.on(aa,O[aa],G);return this}return Pr(O,this.scope.actions)?this.globalEvents[O]?this.globalEvents[O].push(G):this.globalEvents[O]=[G]:this.scope.events.add(this.scope.document,O,G,{options:ee}),this},"The interact.on() method is being deprecated"),_.off=ha(function(O,G,ee){if(w.string(O)&&O.search(" ")!==-1&&(O=O.trim().split(/ +/)),w.array(O)){for(var be=0,je=O;be<je.length;be++){var De=je[be];this.off(De,G,ee)}return this}if(w.object(O)){for(var aa in O)this.off(aa,O[aa],G);return this}var Na;return Pr(O,this.scope.actions)?O in this.globalEvents&&(Na=this.globalEvents[O].indexOf(G))!==-1&&this.globalEvents[O].splice(Na,1):this.scope.events.remove(this.scope.document,O,G,ee),this},"The interact.off() method is being deprecated"),_.debug=function(){return this.scope},_.supportsTouch=function(){return ae.supportsTouch},_.supportsPointerEvent=function(){return ae.supportsPointerEvent},_.stop=function(){for(var O=0,G=this.scope.interactions.list;O<G.length;O++)G[O].stop();return this},_.pointerMoveTolerance=function(O){return w.number(O)?(this.scope.interactions.pointerMoveTolerance=O,this):this.scope.interactions.pointerMoveTolerance},_.addDocument=function(O,G){this.scope.addDocument(O,G)},_.removeDocument=function(O){this.scope.removeDocument(O)},_}(this),this.InteractEvent=yn,this.Interactable=void 0,this.interactables=new Vo(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(y){return i.removeDocument(y.target)};var u=this;this.Interactable=function(y){m(O,y);var _=M(O);function O(){return s(this,O),_.apply(this,arguments)}return p(O,[{key:"_defaults",get:function(){return u.defaults}},{key:"set",value:function(G){return S(g(O.prototype),"set",this).call(this,G),u.fire("interactable:set",{options:G,interactable:this}),this}},{key:"unset",value:function(){S(g(O.prototype),"unset",this).call(this);var G=u.interactables.list.indexOf(this);G<0||(u.interactables.list.splice(G,1),u.fire("interactable:unset",{interactable:this}))}}]),O}($o)}return p(o,[{key:"addListeners",value:function(i,u){this.listenerMaps.push({id:u,map:i})}},{key:"fire",value:function(i,u){for(var y=0,_=this.listenerMaps;y<_.length;y++){var O=_[y].map[i];if(O&&O(u,this,i)===!1)return!1}}},{key:"init",value:function(i){return this.isInitialized?this:function(u,y){return u.isInitialized=!0,w.window(y)&&E(y),V.init(y),ae.init(y),La.init(y),u.window=y,u.document=y.document,u.usePlugin(Ro),u.usePlugin(Rn),u}(this,i)}},{key:"pluginIsInstalled",value:function(i){var u=i.id;return u?!!this._plugins.map[u]:this._plugins.list.indexOf(i)!==-1}},{key:"usePlugin",value:function(i,u){if(!this.isInitialized)return this;if(this.pluginIsInstalled(i))return this;if(i.id&&(this._plugins.map[i.id]=i),this._plugins.list.push(i),i.install&&i.install(this,u),i.listeners&&i.before){for(var y=0,_=this.listenerMaps.length,O=i.before.reduce(function(ee,be){return ee[be]=!0,ee[Ti(be)]=!0,ee},{});y<_;y++){var G=this.listenerMaps[y].id;if(G&&(O[G]||O[Ti(G)]))break}this.listenerMaps.splice(y,0,{id:i.id,map:i.listeners})}else i.listeners&&this.listenerMaps.push({id:i.id,map:i.listeners});return this}},{key:"addDocument",value:function(i,u){if(this.getDocIndex(i)!==-1)return!1;var y=x(i);u=u?le({},u):{},this.documents.push({doc:i,options:u}),this.events.documents.push(i),i!==this.document&&this.events.add(y,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:i,window:y,scope:this,options:u})}},{key:"removeDocument",value:function(i){var u=this.getDocIndex(i),y=x(i),_=this.documents[u].options;this.events.remove(y,"unload",this.onWindowUnload),this.documents.splice(u,1),this.events.documents.splice(u,1),this.fire("scope:remove-document",{doc:i,window:y,scope:this,options:_})}},{key:"getDocIndex",value:function(i){for(var u=0;u<this.documents.length;u++)if(this.documents[u].doc===i)return u;return-1}},{key:"getDocOptions",value:function(i){var u=this.getDocIndex(i);return u===-1?null:this.documents[u].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),o}();function Ti(o){return o&&o.replace(/\/.*$/,"")}var Yi=new Fo,Hr=Yi.interactStatic,Po=typeof globalThis<"u"?globalThis:window;Yi.init(Po);var jo=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(o){var i=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(y){var _=y[0],O=y[1];return _ in o||O in o}),u=function(y,_){for(var O=o.range,G=o.limits,ee=G===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:G,be=o.offset,je=be===void 0?{x:0,y:0}:be,De={range:O,grid:o,x:null,y:null},aa=0;aa<i.length;aa++){var Na=i[aa],Xa=Na[0],Ga=Na[1],al=Math.round((y-je.x)/o[Xa]),bl=Math.round((_-je.y)/o[Ga]);De[Xa]=Math.max(ee.left,Math.min(ee.right,al*o[Xa]+je.x)),De[Ga]=Math.max(ee.top,Math.min(ee.bottom,bl*o[Ga]+je.y))}return De};return u.grid=o,u.coordFields=i,u}}),Ai={id:"snappers",install:function(o){var i=o.interactStatic;i.snappers=le(i.snappers||{},jo),i.createSnapGrid=i.snappers.grid}},Ho=Ai,zi={start:function(o){var i=o.state,u=o.rect,y=o.edges,_=o.pageCoords,O=i.options,G=O.ratio,ee=O.enabled,be=i.options,je=be.equalDelta,De=be.modifiers;G==="preserve"&&(G=u.width/u.height),i.startCoords=le({},_),i.startRect=le({},u),i.ratio=G,i.equalDelta=je;var aa=i.linkedEdges={top:y.top||y.left&&!y.bottom,left:y.left||y.top&&!y.right,bottom:y.bottom||y.right&&!y.top,right:y.right||y.bottom&&!y.left};if(i.xIsPrimaryAxis=!(!y.left&&!y.right),i.equalDelta){var Na=(aa.left?1:-1)*(aa.top?1:-1);i.edgeSign={x:Na,y:Na}}else i.edgeSign={x:aa.left?-1:1,y:aa.top?-1:1};if(ee!==!1&&le(y,aa),De!=null&&De.length){var Xa=new jr(o.interaction);Xa.copyFrom(o.interaction.modification),Xa.prepareStates(De),i.subModification=Xa,Xa.startAll(n({},o))}},set:function(o){var i=o.state,u=o.rect,y=o.coords,_=i.linkedEdges,O=le({},y),G=i.equalDelta?Ji:Xi;if(le(o.edges,_),G(i,i.xIsPrimaryAxis,y,u),!i.subModification)return null;var ee=le({},u);oe(_,ee,{x:y.x-O.x,y:y.y-O.y});var be=i.subModification.setAll(n(n({},o),{},{rect:ee,edges:_,pageCoords:y,prevCoords:y,prevRect:ee})),je=be.delta;return be.changed&&(G(i,Math.abs(je.x)>Math.abs(je.y),be.coords,be.rect),le(y,be.coords)),be.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function Ji(o,i,u){var y=o.startCoords,_=o.edgeSign;i?u.y=y.y+(u.x-y.x)*_.y:u.x=y.x+(u.y-y.y)*_.x}function Xi(o,i,u,y){var _=o.startRect,O=o.startCoords,G=o.ratio,ee=o.edgeSign;if(i){var be=y.width/G;u.y=O.y+(be-_.height)*ee.y}else{var je=y.height*G;u.x=O.x+(je-_.width)*ee.x}}var Uo=Er(zi,"aspectRatio"),Zi=function(){};Zi._defaults={};var si=Zi;function nn(o,i,u){return w.func(o)?te(o,i.interactable,i.element,[u.x,u.y,i]):te(o,i.interactable,i.element)}var Gn={start:function(o){var i=o.rect,u=o.startOffset,y=o.state,_=o.interaction,O=o.pageCoords,G=y.options,ee=G.elementRect,be=le({left:0,top:0,right:0,bottom:0},G.offset||{});if(i&&ee){var je=nn(G.restriction,_,O);if(je){var De=je.right-je.left-i.width,aa=je.bottom-je.top-i.height;De<0&&(be.left+=De,be.right+=De),aa<0&&(be.top+=aa,be.bottom+=aa)}be.left+=u.left-i.width*ee.left,be.top+=u.top-i.height*ee.top,be.right+=u.right-i.width*(1-ee.right),be.bottom+=u.bottom-i.height*(1-ee.bottom)}y.offset=be},set:function(o){var i=o.coords,u=o.interaction,y=o.state,_=y.options,O=y.offset,G=nn(_.restriction,u,i);if(G){var ee=function(be){return!be||"left"in be&&"top"in be||((be=le({},be)).left=be.x||0,be.top=be.y||0,be.right=be.right||be.left+be.width,be.bottom=be.bottom||be.top+be.height),be}(G);i.x=Math.max(Math.min(ee.right-O.right,i.x),ee.left+O.left),i.y=Math.max(Math.min(ee.bottom-O.bottom,i.y),ee.top+O.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},Mi=Er(Gn,"restrict"),Qi={top:1/0,left:1/0,bottom:-1/0,right:-1/0},eo={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function ao(o,i){for(var u=0,y=["top","left","bottom","right"];u<y.length;u++){var _=y[u];_ in o||(o[_]=i[_])}return o}var Yn={noInner:Qi,noOuter:eo,start:function(o){var i,u=o.interaction,y=o.startOffset,_=o.state,O=_.options;O&&(i=ca(nn(O.offset,u,u.coords.start.page))),i=i||{x:0,y:0},_.offset={top:i.y+y.top,left:i.x+y.left,bottom:i.y-y.bottom,right:i.x-y.right}},set:function(o){var i=o.coords,u=o.edges,y=o.interaction,_=o.state,O=_.offset,G=_.options;if(u){var ee=le({},i),be=nn(G.inner,y,ee)||{},je=nn(G.outer,y,ee)||{};ao(be,Qi),ao(je,eo),u.top?i.y=Math.min(Math.max(je.top+O.top,ee.y),be.top+O.top):u.bottom&&(i.y=Math.max(Math.min(je.bottom+O.bottom,ee.y),be.bottom+O.bottom)),u.left?i.x=Math.min(Math.max(je.left+O.left,ee.x),be.left+O.left):u.right&&(i.x=Math.max(Math.min(je.right+O.right,ee.x),be.right+O.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},lo=Er(Yn,"restrictEdges"),Jn=le({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(o){}},Gn.defaults),ro=Er({start:Gn.start,set:Gn.set,defaults:Jn},"restrictRect"),no={width:-1/0,height:-1/0},Xn={width:1/0,height:1/0},qo=Er({start:function(o){return Yn.start(o)},set:function(o){var i=o.interaction,u=o.state,y=o.rect,_=o.edges,O=u.options;if(_){var G=Ee(nn(O.min,i,o.coords))||no,ee=Ee(nn(O.max,i,o.coords))||Xn;u.options={endOnly:O.endOnly,inner:le({},Yn.noInner),outer:le({},Yn.noOuter)},_.top?(u.options.inner.top=y.bottom-G.height,u.options.outer.top=y.bottom-ee.height):_.bottom&&(u.options.inner.bottom=y.top+G.height,u.options.outer.bottom=y.top+ee.height),_.left?(u.options.inner.left=y.right-G.width,u.options.outer.left=y.right-ee.width):_.right&&(u.options.inner.right=y.left+G.width,u.options.outer.right=y.left+ee.width),Yn.set(o),u.options=O}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),ci={start:function(o){var i,u=o.interaction,y=o.interactable,_=o.element,O=o.rect,G=o.state,ee=o.startOffset,be=G.options,je=be.offsetWithOrigin?function(Na){var Xa=Na.interaction.element,Ga=ca(te(Na.state.options.origin,null,null,[Xa])),al=Ga||Te(Na.interactable,Xa,Na.interaction.prepared.name);return al}(o):{x:0,y:0};if(be.offset==="startCoords")i={x:u.coords.start.page.x,y:u.coords.start.page.y};else{var De=te(be.offset,y,_,[u]);(i=ca(De)||{x:0,y:0}).x+=je.x,i.y+=je.y}var aa=be.relativePoints;G.offsets=O&&aa&&aa.length?aa.map(function(Na,Xa){return{index:Xa,relativePoint:Na,x:ee.left-O.width*Na.x+i.x,y:ee.top-O.height*Na.y+i.y}}):[{index:0,relativePoint:null,x:i.x,y:i.y}]},set:function(o){var i=o.interaction,u=o.coords,y=o.state,_=y.options,O=y.offsets,G=Te(i.interactable,i.element,i.prepared.name),ee=le({},u),be=[];_.offsetWithOrigin||(ee.x-=G.x,ee.y-=G.y);for(var je=0,De=O;je<De.length;je++)for(var aa=De[je],Na=ee.x-aa.x,Xa=ee.y-aa.y,Ga=0,al=_.targets.length;Ga<al;Ga++){var bl=_.targets[Ga],yl=void 0;(yl=w.func(bl)?bl(Na,Xa,i._proxy,aa,Ga):bl)&&be.push({x:(w.number(yl.x)?yl.x:Na)+aa.x,y:(w.number(yl.y)?yl.y:Xa)+aa.y,range:w.number(yl.range)?yl.range:_.range,source:bl,index:Ga,offset:aa})}for(var Cl={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},wl=0;wl<be.length;wl++){var Zl=be[wl],Dl=Zl.range,jl=Zl.x-ee.x,kr=Zl.y-ee.y,Sr=Ja(jl,kr),Gr=Sr<=Dl;Dl===1/0&&Cl.inRange&&Cl.range!==1/0&&(Gr=!1),Cl.target&&!(Gr?Cl.inRange&&Dl!==1/0?Sr/Dl<Cl.distance/Cl.range:Dl===1/0&&Cl.range!==1/0||Sr<Cl.distance:!Cl.inRange&&Sr<Cl.distance)||(Cl.target=Zl,Cl.distance=Sr,Cl.range=Dl,Cl.inRange=Gr,Cl.delta.x=jl,Cl.delta.y=kr)}return Cl.inRange&&(u.x=Cl.target.x,u.y=Cl.target.y),y.closest=Cl,Cl},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},Zn=Er(ci,"snap"),ui={start:function(o){var i=o.state,u=o.edges,y=i.options;if(!u)return null;o.state={options:{targets:null,relativePoints:[{x:u.left?0:1,y:u.top?0:1}],offset:y.offset||"self",origin:{x:0,y:0},range:y.range}},i.targetFields=i.targetFields||[["width","height"],["x","y"]],ci.start(o),i.offsets=o.state.offsets,o.state=i},set:function(o){var i=o.interaction,u=o.state,y=o.coords,_=u.options,O=u.offsets,G={x:y.x-O[0].x,y:y.y-O[0].y};u.options=le({},_),u.options.targets=[];for(var ee=0,be=_.targets||[];ee<be.length;ee++){var je=be[ee],De=void 0;if(De=w.func(je)?je(G.x,G.y,i):je){for(var aa=0,Na=u.targetFields;aa<Na.length;aa++){var Xa=Na[aa],Ga=Xa[0],al=Xa[1];if(Ga in De||al in De){De.x=De[Ga],De.y=De[al];break}}u.options.targets.push(De)}}var bl=ci.set(o);return u.options=_,bl},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},Wo=Er(ui,"snapSize"),Ii={aspectRatio:Uo,restrictEdges:lo,restrict:Mi,restrictRect:ro,restrictSize:qo,snapEdges:Er({start:function(o){var i=o.edges;return i?(o.state.targetFields=o.state.targetFields||[[i.left?"left":"right",i.top?"top":"bottom"]],ui.start(o)):null},set:ui.set,defaults:le(Tr(ui.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:Zn,snapSize:Wo,spring:si,avoid:si,transform:si,rubberband:si},Ko={id:"modifiers",install:function(o){var i=o.interactStatic;for(var u in o.usePlugin(Br),o.usePlugin(Ho),i.modifiers=Ii,Ii){var y=Ii[u],_=y._defaults,O=y._methods;_._methods=O,o.defaults.perAction[u]=_}}},Go=Ko,io=function(o){m(u,o);var i=M(u);function u(y,_,O,G,ee,be){var je;if(s(this,u),H(D(je=i.call(this,ee)),O),O!==_&&H(D(je),_),je.timeStamp=be,je.originalEvent=O,je.type=y,je.pointerId=ce(_),je.pointerType=Va(_),je.target=G,je.currentTarget=null,y==="tap"){var De=ee.getPointerIndex(_);je.dt=je.timeStamp-ee.pointers[De].downTime;var aa=je.timeStamp-ee.tapTime;je.double=!!ee.prevTap&&ee.prevTap.type!=="doubletap"&&ee.prevTap.target===je.target&&aa<500}else y==="doubletap"&&(je.dt=_.timeStamp-ee.tapTime,je.double=!0);return je}return p(u,[{key:"_subtractOrigin",value:function(y){var _=y.x,O=y.y;return this.pageX-=_,this.pageY-=O,this.clientX-=_,this.clientY-=O,this}},{key:"_addOrigin",value:function(y){var _=y.x,O=y.y;return this.pageX+=_,this.pageY+=O,this.clientX+=_,this.clientY+=O,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),u}(X),Qn={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(o){o.pointerEvents=Qn,o.defaults.actions.pointerEvents=Qn.defaults,le(o.actions.phaselessTypes,Qn.types)},listeners:{"interactions:new":function(o){var i=o.interaction;i.prevTap=null,i.tapTime=0},"interactions:update-pointer":function(o){var i=o.down,u=o.pointerInfo;!i&&u.hold||(u.hold={duration:1/0,timeout:null})},"interactions:move":function(o,i){var u=o.interaction,y=o.pointer,_=o.event,O=o.eventTarget;o.duplicate||u.pointerIsDown&&!u.pointerWasMoved||(u.pointerIsDown&&Oi(o),xn({interaction:u,pointer:y,event:_,eventTarget:O,type:"move"},i))},"interactions:down":function(o,i){(function(u,y){for(var _=u.interaction,O=u.pointer,G=u.event,ee=u.eventTarget,be=u.pointerIndex,je=_.pointers[be].hold,De=la(ee),aa={interaction:_,pointer:O,event:G,eventTarget:ee,type:"hold",targets:[],path:De,node:null},Na=0;Na<De.length;Na++){var Xa=De[Na];aa.node=Xa,y.fire("pointerEvents:collect-targets",aa)}if(aa.targets.length){for(var Ga=1/0,al=0,bl=aa.targets;al<bl.length;al++){var yl=bl[al].eventable.options.holdDuration;yl<Ga&&(Ga=yl)}je.duration=Ga,je.timeout=setTimeout(function(){xn({interaction:_,eventTarget:ee,pointer:O,event:G,type:"hold"},y)},Ga)}})(o,i),xn(o,i)},"interactions:up":function(o,i){Oi(o),xn(o,i),function(u,y){var _=u.interaction,O=u.pointer,G=u.event,ee=u.eventTarget;_.pointerWasMoved||xn({interaction:_,eventTarget:ee,pointer:O,event:G,type:"tap"},y)}(o,i)},"interactions:cancel":function(o,i){Oi(o),xn(o,i)}},PointerEvent:io,fire:xn,collectEventTargets:oo,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function xn(o,i){var u=o.interaction,y=o.pointer,_=o.event,O=o.eventTarget,G=o.type,ee=o.targets,be=ee===void 0?oo(o,i):ee,je=new io(G,y,_,O,u,i.now());i.fire("pointerEvents:new",{pointerEvent:je});for(var De={interaction:u,pointer:y,event:_,eventTarget:O,targets:be,type:G,pointerEvent:je},aa=0;aa<be.length;aa++){var Na=be[aa];for(var Xa in Na.props||{})je[Xa]=Na.props[Xa];var Ga=Te(Na.eventable,Na.node);if(je._subtractOrigin(Ga),je.eventable=Na.eventable,je.currentTarget=Na.node,Na.eventable.fire(je),je._addOrigin(Ga),je.immediatePropagationStopped||je.propagationStopped&&aa+1<be.length&&be[aa+1].node!==je.currentTarget)break}if(i.fire("pointerEvents:fired",De),G==="tap"){var al=je.double?xn({interaction:u,pointer:y,event:_,eventTarget:O,type:"doubletap"},i):je;u.prevTap=al,u.tapTime=al.timeStamp}return je}function oo(o,i){var u=o.interaction,y=o.pointer,_=o.event,O=o.eventTarget,G=o.type,ee=u.getPointerIndex(y),be=u.pointers[ee];if(G==="tap"&&(u.pointerWasMoved||!be||be.downTarget!==O))return[];for(var je=la(O),De={interaction:u,pointer:y,event:_,eventTarget:O,type:G,path:je,targets:[],node:null},aa=0;aa<je.length;aa++){var Na=je[aa];De.node=Na,i.fire("pointerEvents:collect-targets",De)}return G==="hold"&&(De.targets=De.targets.filter(function(Xa){var Ga,al;return Xa.eventable.options.holdDuration===((Ga=u.pointers[ee])==null||(al=Ga.hold)==null?void 0:al.duration)})),De.targets}function Oi(o){var i=o.interaction,u=o.pointerIndex,y=i.pointers[u].hold;y&&y.timeout&&(clearTimeout(y.timeout),y.timeout=null)}var Yo=Object.freeze({__proto__:null,default:Qn});function Jo(o){var i=o.interaction;i.holdIntervalHandle&&(clearInterval(i.holdIntervalHandle),i.holdIntervalHandle=null)}var di={id:"pointer-events/holdRepeat",install:function(o){o.usePlugin(Qn);var i=o.pointerEvents;i.defaults.holdRepeatInterval=0,i.types.holdrepeat=o.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce(function(o,i){return o["pointerEvents:".concat(i)]=Jo,o},{"pointerEvents:new":function(o){var i=o.pointerEvent;i.type==="hold"&&(i.count=(i.count||0)+1)},"pointerEvents:fired":function(o,i){var u=o.interaction,y=o.pointerEvent,_=o.eventTarget,O=o.targets;if(y.type==="hold"&&O.length){var G=O[0].eventable.options.holdRepeatInterval;G<=0||(u.holdIntervalHandle=setTimeout(function(){i.pointerEvents.fire({interaction:u,eventTarget:_,type:"hold",pointer:y,event:y},i)},G))}}})},Xo=di,Zo={id:"pointer-events/interactableTargets",install:function(o){var i=o.Interactable;i.prototype.pointerEvents=function(y){return le(this.events.options,y),this};var u=i.prototype._backCompatOption;i.prototype._backCompatOption=function(y,_){var O=u.call(this,y,_);return O===this&&(this.events.options[y]=_),O}},listeners:{"pointerEvents:collect-targets":function(o,i){var u=o.targets,y=o.node,_=o.type,O=o.eventTarget;i.interactables.forEachMatch(y,function(G){var ee=G.events,be=ee.options;ee.types[_]&&ee.types[_].length&&G.testIgnoreAllow(be,y,O)&&u.push({node:y,eventable:ee,props:{interactable:G}})})},"interactable:new":function(o){var i=o.interactable;i.events.getRect=function(u){return i.getRect(u)}},"interactable:set":function(o,i){var u=o.interactable,y=o.options;le(u.events.options,i.pointerEvents.defaults),le(u.events.options,y.pointerEvents||{})}}},Qo=Zo,et={id:"pointer-events",install:function(o){o.usePlugin(Yo),o.usePlugin(Xo),o.usePlugin(Qo)}},to=et,pi={id:"reflow",install:function(o){var i=o.Interactable;o.actions.phases.reflow=!0,i.prototype.reflow=function(u){return function(y,_,O){for(var G=y.getAllElements(),ee=O.window.Promise,be=ee?[]:null,je=function(){var aa=G[De],Na=y.getRect(aa);if(!Na)return 1;var Xa,Ga=Je(O.interactions.list,function(yl){return yl.interacting()&&yl.interactable===y&&yl.element===aa&&yl.prepared.name===_.name});if(Ga)Ga.move(),be&&(Xa=Ga._reflowPromise||new ee(function(yl){Ga._reflowResolve=yl}));else{var al=Ee(Na),bl=function(yl){return{coords:yl,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}}({page:{x:al.x,y:al.y},client:{x:al.x,y:al.y},timeStamp:O.now()});Xa=function(yl,Cl,wl,Zl,Dl){var jl=yl.interactions.new({pointerType:"reflow"}),kr={interaction:jl,event:Dl,pointer:Dl,eventTarget:wl,phase:"reflow"};jl.interactable=Cl,jl.element=wl,jl.prevEvent=Dl,jl.updatePointer(Dl,Dl,wl,!0),me(jl.coords.delta),va(jl.prepared,Zl),jl._doPhase(kr);var Sr=yl.window,Gr=Sr.Promise,on=Gr?new Gr(function(wn){jl._reflowResolve=wn}):void 0;return jl._reflowPromise=on,jl.start(Zl,Cl,wl),jl._interacting?(jl.move(kr),jl.end(Dl)):(jl.stop(),jl._reflowResolve()),jl.removePointer(Dl,Dl),on}(O,y,aa,_,bl)}be&&be.push(Xa)},De=0;De<G.length&&!je();De++);return be&&ee.all(be).then(function(){return y})}(this,u,o)}},listeners:{"interactions:stop":function(o,i){var u=o.interaction;u.pointerType==="reflow"&&(u._reflowResolve&&u._reflowResolve(),function(y,_){y.splice(y.indexOf(_),1)}(i.interactions.list,u))}}},at=pi;if(Hr.use(ar),Hr.use($l),Hr.use(to),Hr.use(Nn),Hr.use(Go),Hr.use(pr),Hr.use(ma),Hr.use(pe),Hr.use(at),Hr.default=Hr,t(a)==="object"&&a)try{a.exports=Hr}catch{}return Hr.default=Hr,Hr})}(Fi,Fi.exports)),Fi.exports}var v1=h1();const Ts=A.getDefaultExportFromCjs(v1),Mo=e.defineComponent({__name:"grid-item",props:{isDraggable:{type:Boolean,default:void 0},isResizable:{type:Boolean,default:void 0},isBounded:{type:Boolean,default:void 0},static:{type:Boolean,default:!1},minH:{default:1},minW:{default:1},maxH:{default:1/0},maxW:{default:1/0},x:{},y:{},w:{},h:{},i:{},dragIgnoreFrom:{default:"a, button"},dragAllowFrom:{default:void 0},resizeIgnoreFrom:{default:"a, button"},preserveAspectRatio:{type:Boolean,default:!1},dragOption:{default:()=>({})},resizeOption:{default:()=>({})}},emits:["container-resized","resize","resized","move","moved"],setup(a,{expose:l,emit:r}){const n=a,t=r,s=e.inject(Fc),v=e.inject(Pc);if(!s)throw new Error("[grid-layout-plus]: missing layout store, GridItem must under a GridLayout.");const p=e.shallowRef(null),f=e.reactive({cols:1,containerWidth:100,rowHeight:30,margin:[10,10],maxRows:1/0,draggable:void 0,resizable:void 0,bounded:void 0,transformScale:1,useCssTransforms:!0,useStyleCursor:!0,isDragging:!1,dragging:{top:-1,left:-1},isResizing:!1,resizing:{width:-1,height:-1},style:{},rtl:!1});let m=!1,g=!1,c=NaN,D=NaN,M=NaN,S=NaN,K=-1,I=-1,R=-1,j=-1,E=n.x,x=n.y,k=n.w,b=n.h;const w=e.ref(),$=e.reactive({i:e.toRef(n,"i"),state:f,wrapper:w,calcXY:te});function F(ve){Ue(ve)}function J(){oa()}function se(ve){cn(n.isDraggable)&&(f.draggable=ve)}function ge(ve){cn(n.isResizable)&&(f.resizable=ve)}function Me(ve){cn(n.isBounded)&&(f.bounded=ve)}function V(ve){f.transformScale=ve}function fe(ve){f.rowHeight=ve}function ae(ve){f.maxRows=ve}function de(){f.rtl=Bs()==="rtl",oa()}function Ce(ve){f.cols=Math.floor(ve)}s.increaseItem($),e.onBeforeMount(()=>{f.rtl=Bs()==="rtl"}),e.onMounted(()=>{s.responsive&&s.lastBreakpoint?f.cols=Wc(s.lastBreakpoint,s.cols):f.cols=s.colNum,f.rowHeight=s.rowHeight,f.containerWidth=s.width!==null?s.width:100,f.margin=s.margin!==void 0?s.margin.map(Number):[10,10],f.maxRows=s.maxRows,cn(n.isDraggable)?f.draggable=s.isDraggable:f.draggable=n.isDraggable,cn(n.isResizable)?f.resizable=s.isResizable:f.resizable=n.isResizable,cn(n.isBounded)?f.bounded=s.isBounded:f.bounded=n.isBounded,f.transformScale=s.transformScale,f.useCssTransforms=s.useCssTransforms,f.useStyleCursor=s.useStyleCursor,e.watchEffect(()=>{E=n.x,x=n.y,b=n.h,k=n.w,Yr(Pe)}),v.on("updateWidth",F),v.on("compact",J),v.on("setDraggable",se),v.on("setResizable",ge),v.on("setBounded",Me),v.on("setTransformScale",V),v.on("setRowHeight",fe),v.on("setMaxRows",ae),v.on("directionchange",de),v.on("setColNum",Ce)}),e.onBeforeUnmount(()=>{v.off("updateWidth",F),v.off("compact",J),v.off("setDraggable",se),v.off("setResizable",ge),v.off("setBounded",Me),v.off("setTransformScale",V),v.off("setRowHeight",fe),v.off("setMaxRows",ae),v.off("directionchange",de),v.off("setColNum",Ce),p.value&&(p.value.unset(),p.value=null),s.decreaseItem($)}),l({state:f,wrapper:w});const Fe=typeof navigator<"u"?navigator.userAgent.toLowerCase().includes("android"):!1,ye=e.computed(()=>f.resizable&&!n.static),T=e.computed(()=>s.isMirrored?!f.rtl:f.rtl),ue=e.computed(()=>(f.draggable||f.resizable)&&!n.static),U=i1("item"),Se=e.computed(()=>({[U.b()]:!0,[U.bm("resizable")]:ye.value,[U.bm("static")]:n.static,[U.bm("resizing")]:f.isResizing,[U.bm("dragging")]:f.isDragging,[U.bm("transform")]:f.useCssTransforms,[U.bm("rtl")]:T.value,[U.bm("no-touch")]:Fe&&ue.value})),Le=e.computed(()=>[U.be("resizer"),T.value&&U.bem("resizer","rtl")].filter(Boolean));e.watch(()=>n.isDraggable,ve=>{f.draggable=ve}),e.watch(()=>n.static,()=>{Yr(H),Yr(me)}),e.watch(()=>f.draggable,()=>{Yr(H)}),e.watch(()=>n.isResizable,ve=>{f.resizable=ve}),e.watch(()=>n.isBounded,ve=>{f.bounded=ve}),e.watch(()=>f.resizable,()=>{Yr(me)}),e.watch(()=>f.rowHeight,()=>{Yr(Pe),Yr(la)}),e.watch([()=>f.cols,()=>f.containerWidth],()=>{Yr(me),Yr(Pe),Yr(la)}),e.watch([()=>n.minH,()=>n.maxH,()=>n.minW,()=>n.maxW],()=>{Yr(me)}),e.watch(T,()=>{Yr(me),Yr(Pe)}),e.watch([()=>s.margin,()=>s.margin[0],()=>s.margin[1]],()=>{const ve=s.margin;!ve||ve[0]===f.margin[0]&&ve[1]===f.margin[1]||(f.margin=ve.map(Number),Yr(Pe),Yr(la))});function Pe(){n.x+n.w>f.cols?(E=0,k=n.w>f.cols?f.cols:n.w):(E=n.x,k=n.w);const ve=ta(E,x,k,b);f.isDragging&&(ve.top=f.dragging.top,T.value?ve.right=f.dragging.left:ve.left=f.dragging.left),f.isResizing&&(ve.width=f.resizing.width,ve.height=f.resizing.height);let da;f.useCssTransforms?T.value?da=a1(ve.top,ve.right,ve.width,ve.height):da=e1(ve.top,ve.left,ve.width,ve.height):T.value?da=r1(ve.top,ve.right,ve.width,ve.height):da=l1(ve.top,ve.left,ve.width,ve.height),f.style=da}function la(){const ve={};for(const da of["width","height"]){const ea=f.style[da].match(/^(\d+)px$/);if(!ea)return;ve[da]=ea[1]}t("container-resized",n.i,n.h,n.w,ve.height,ve.width)}function Da(ve){if(n.static)return;const da=ve.type;if(da==="resizestart"&&f.isResizing||da!=="resizestart"&&!f.isResizing)return;const ea=Cs(ve);if(cn(ea))return;const{x:ce,y:pa}=ea,Ne={width:0,height:0};let We;switch(da){case"resizestart":{me(),K=k,I=b,We=ta(E,x,k,b),Ne.width=We.width,Ne.height=We.height,f.resizing=Ne,f.isResizing=!0;break}case"resizemove":{!ve.edges.right&&!ve.edges.left&&(M=ce),!ve.edges.top&&!ve.edges.bottom&&(S=pa);const Ta=Ds(M,S,ce,pa);T.value?Ne.width=f.resizing.width-Ta.deltaX/f.transformScale:Ne.width=f.resizing.width+Ta.deltaX/f.transformScale,Ne.height=f.resizing.height+Ta.deltaY/f.transformScale,f.resizing=Ne;break}case"resizeend":{We=ta(E,x,k,b),Ne.width=We.width,Ne.height=We.height,f.resizing={width:-1,height:-1},f.isResizing=!1;break}}We=Te(Ne.height,Ne.width),We.w<n.minW&&(We.w=n.minW),We.w>n.maxW&&(We.w=n.maxW),We.h<n.minH&&(We.h=n.minH),We.h>n.maxH&&(We.h=n.maxH),We.h<1&&(We.h=1),We.w<1&&(We.w=1),M=ce,S=pa,(k!==We.w||b!==We.h)&&t("resize",n.i,We.h,We.w,Ne.height,Ne.width),ve.type==="resizeend"&&(K!==k||I!==b)&&t("resized",n.i,We.h,We.w,Ne.height,Ne.width),v.emit("resizeEvent",ve.type,n.i,E,x,We.h,We.w)}function le(ve){if(n.static||f.isResizing)return;const da=ve.type;if(da==="dragstart"&&f.isDragging||da!=="dragstart"&&!f.isDragging)return;const ea=Cs(ve);if(cn(ea))return;const{x:ce,y:pa}=ea,Ne=ve.target;if(!Ne.offsetParent)return;const We={top:0,left:0};switch(da){case"dragstart":{R=E,j=x;const Ca=Ne.offsetParent.getBoundingClientRect(),Qe=Ne.getBoundingClientRect(),Va=Qe.left/f.transformScale,re=Ca.left/f.transformScale,X=Qe.right/f.transformScale,Z=Ca.right/f.transformScale,q=Qe.top/f.transformScale,Be=Ca.top/f.transformScale;T.value?We.left=(X-Z)*-1:We.left=Va-re,We.top=q-Be,f.dragging=We,f.isDragging=!0;break}case"dragmove":{const Ca=Ds(c,D,ce,pa);if(T.value?We.left=f.dragging.left-Ca.deltaX/f.transformScale:We.left=f.dragging.left+Ca.deltaX/f.transformScale,We.top=f.dragging.top+Ca.deltaY/f.transformScale,f.bounded){const Qe=Ne.offsetParent.clientHeight-Ee(n.h,f.rowHeight,f.margin[1]);We.top=oe(We.top,0,Qe);const Va=ca(),re=f.containerWidth-Ee(n.w,Va,f.margin[0]);We.left=oe(We.left,0,re)}f.dragging=We;break}case"dragend":{const Ca=Ne.offsetParent.getBoundingClientRect(),Qe=Ne.getBoundingClientRect(),Va=Qe.left/f.transformScale,re=Ca.left/f.transformScale,X=Qe.right/f.transformScale,Z=Ca.right/f.transformScale,q=Qe.top/f.transformScale,Be=Ca.top/f.transformScale;T.value?We.left=(X-Z)*-1:We.left=Va-re,We.top=q-Be,f.dragging={top:-1,left:-1},f.isDragging=!1;break}}let Ta;T.value,Ta=te(We.top,We.left),c=ce,D=pa,(E!==Ta.x||x!==Ta.y)&&t("move",n.i,Ta.x,Ta.y),ve.type==="dragend"&&(R!==E||j!==x)&&t("moved",n.i,Ta.x,Ta.y),v.emit("dragEvent",ve.type,n.i,Ta.x,Ta.y,b,k)}function ta(ve,da,ea,ce){const pa=ca();let Ne;return T.value?Ne={right:Math.round(pa*ve+(ve+1)*f.margin[0]),top:Math.round(f.rowHeight*da+(da+1)*f.margin[1]),width:ea===1/0?ea:Math.round(pa*ea+Math.max(0,ea-1)*f.margin[0]),height:ce===1/0?ce:Math.round(f.rowHeight*ce+Math.max(0,ce-1)*f.margin[1])}:Ne={left:Math.round(pa*ve+(ve+1)*f.margin[0]),top:Math.round(f.rowHeight*da+(da+1)*f.margin[1]),width:ea===1/0?ea:Math.round(pa*ea+Math.max(0,ea-1)*f.margin[0]),height:ce===1/0?ce:Math.round(f.rowHeight*ce+Math.max(0,ce-1)*f.margin[1])},Ne}function te(ve,da){const ea=ca();let ce=Math.round((da-f.margin[0])/(ea+f.margin[0])),pa=Math.round((ve-f.margin[1])/(f.rowHeight+f.margin[1]));return ce=Math.max(Math.min(ce,f.cols-k),0),pa=Math.max(Math.min(pa,f.maxRows-b),0),{x:ce,y:pa}}function ca(){return(f.containerWidth-f.margin[0]*(f.cols+1))/f.cols}function Ee(ve,da,ea){return Number.isFinite(ve)?Math.round(da*ve+Math.max(0,ve-1)*ea):ve}function oe(ve,da,ea){return Math.max(Math.min(ve,ea),da)}function Te(ve,da,ea=!1){const ce=ca();let pa=Math.round((da+f.margin[0])/(ce+f.margin[0])),Ne=0;return ea?Ne=Math.ceil((ve+f.margin[1])/(f.rowHeight+f.margin[1])):Ne=Math.round((ve+f.margin[1])/(f.rowHeight+f.margin[1])),pa=Math.max(Math.min(pa,f.cols-E),0),Ne=Math.max(Math.min(Ne,f.maxRows-x),0),{w:pa,h:Ne}}function Ue(ve,da){f.containerWidth=ve}function oa(){Pe()}function Ja(){!p.value&&w.value&&(p.value=Ts(w.value),f.useStyleCursor||p.value.styleCursor(!1))}const L=_s(le);function H(){if(Ja(),!!p.value)if(f.draggable&&!n.static){const ve={ignoreFrom:n.dragIgnoreFrom,allowFrom:n.dragAllowFrom,...n.dragOption};p.value.draggable(ve),m||(m=!0,p.value.on("dragstart dragmove dragend",da=>{da.type==="dragmove"?L(da):le(da)}))}else p.value.draggable({enabled:!1})}const Q=_s(Da);function me(){if(Ja(),!!p.value)if(f.resizable&&!n.static){const ve=ta(0,0,n.maxW,n.maxH),da=ta(0,0,n.minW,n.minH),ea={edges:{left:T.value?`.${Le.value[0]}`:!1,right:T.value?!1:`.${Le.value[0]}`,bottom:`.${Le.value[0]}`,top:!1},ignoreFrom:n.resizeIgnoreFrom,restrictSize:{min:{height:da.height*f.transformScale,width:da.width*f.transformScale},max:{height:ve.height*f.transformScale,width:ve.width*f.transformScale}},...n.resizeOption};n.preserveAspectRatio&&(ea.modifiers=[Ts.modifiers.aspectRatio({ratio:"preserve"})]),p.value.resizable(ea),g||(g=!0,p.value.on("resizestart resizemove resizeend",ce=>{ce.type==="resizemove"?Q(ce):Da(ce)}))}else p.value.resizable({enabled:!1})}return(ve,da)=>(e.openBlock(),e.createElementBlock("section",{ref_key:"wrapper",ref:w,class:e.normalizeClass(Se.value),style:e.normalizeStyle(f.style)},[e.renderSlot(ve.$slots,"default"),ye.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(Le.value)},null,2)):e.createCommentVNode("",!0)],6))}}),ti=typeof window<"u";var As;ti&&(As=window==null?void 0:window.navigator)!=null&&As.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function zs(a){return a!=null}function Ms(){}const m1=Object.freeze({aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"});Object.freeze(new Set(Object.keys(m1)));const y1=ti&&("ontouchstart"in window||b1()>0),g1=y1?"pointerdown":"click";function b1(){return typeof navigator<"u"&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)||0}function k1(a,l,r=window.Event){const{type:n,bubbles:t=!1,cancelable:s=!1,...v}=l;if(!zs(n)||n==="")return!1;let p;return zs(r)?p=new r(n,{bubbles:t,cancelable:s}):(p=document.createEvent("HTMLEvents"),p.initEvent(n,t,s)),Object.assign(p,v),a.dispatchEvent(p)}const x1="clickoutside",w1=new Set;ti&&document.addEventListener(g1,a=>{const l=a.target,r=a.composedPath&&a.composedPath();w1.forEach(n=>{n!==l&&(r?!r.includes(n):!n.contains(l))&&(!n.__transferElement||n.__transferElement!==l&&!n.__transferElement.contains(l))&&k1(n,{type:x1})})},!0);const _1=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];let wo;if(ti){for(const a of _1)if(a[1]in document){wo=a;break}}e.computed(()=>!1);const S1=new Set,E1=new WeakMap;if(ti&&wo){const a=wo[2],l=wo[4];document.addEventListener(l,()=>{if(S1.forEach(r=>{r.value=!1}),document[a]){const r=E1.get(document[a]);r&&(r.value=!0)}},!1)}const Gc=new Map;Gc.set("x",0);Gc.set("y",0);var ii=[],C1=function(){return ii.some(function(a){return a.activeTargets.length>0})},D1=function(){return ii.some(function(a){return a.skippedTargets.length>0})},Is="ResizeObserver loop completed with undelivered notifications.",B1=function(){var a;typeof ErrorEvent=="function"?a=new ErrorEvent("error",{message:Is}):(a=document.createEvent("Event"),a.initEvent("error",!1,!1),a.message=Is),window.dispatchEvent(a)},Gi;(function(a){a.BORDER_BOX="border-box",a.CONTENT_BOX="content-box",a.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Gi||(Gi={}));var oi=function(a){return Object.freeze(a)},N1=function(){function a(l,r){this.inlineSize=l,this.blockSize=r,oi(this)}return a}(),Yc=function(){function a(l,r,n,t){return this.x=l,this.y=r,this.width=n,this.height=t,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,oi(this)}return a.prototype.toJSON=function(){var l=this,r=l.x,n=l.y,t=l.top,s=l.right,v=l.bottom,p=l.left,f=l.width,m=l.height;return{x:r,y:n,top:t,right:s,bottom:v,left:p,width:f,height:m}},a.fromRect=function(l){return new a(l.x,l.y,l.width,l.height)},a}(),Nt=function(a){return a instanceof SVGElement&&"getBBox"in a},Jc=function(a){if(Nt(a)){var l=a.getBBox(),r=l.width,n=l.height;return!r&&!n}var t=a,s=t.offsetWidth,v=t.offsetHeight;return!(s||v||a.getClientRects().length)},Os=function(a){var l;if(a instanceof Element)return!0;var r=(l=a==null?void 0:a.ownerDocument)===null||l===void 0?void 0:l.defaultView;return!!(r&&a instanceof r.Element)},T1=function(a){switch(a.tagName){case"INPUT":if(a.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},qi=typeof window<"u"?window:{},go=new WeakMap,Ls=/auto|scroll/,A1=/^tb|vertical/,z1=/msie|trident/i.test(qi.navigator&&qi.navigator.userAgent),Dn=function(a){return parseFloat(a||"0")},Ei=function(a,l,r){return a===void 0&&(a=0),l===void 0&&(l=0),r===void 0&&(r=!1),new N1((r?l:a)||0,(r?a:l)||0)},Rs=oi({devicePixelContentBoxSize:Ei(),borderBoxSize:Ei(),contentBoxSize:Ei(),contentRect:new Yc(0,0,0,0)}),Xc=function(a,l){if(l===void 0&&(l=!1),go.has(a)&&!l)return go.get(a);if(Jc(a))return go.set(a,Rs),Rs;var r=getComputedStyle(a),n=Nt(a)&&a.ownerSVGElement&&a.getBBox(),t=!z1&&r.boxSizing==="border-box",s=A1.test(r.writingMode||""),v=!n&&Ls.test(r.overflowY||""),p=!n&&Ls.test(r.overflowX||""),f=n?0:Dn(r.paddingTop),m=n?0:Dn(r.paddingRight),g=n?0:Dn(r.paddingBottom),c=n?0:Dn(r.paddingLeft),D=n?0:Dn(r.borderTopWidth),M=n?0:Dn(r.borderRightWidth),S=n?0:Dn(r.borderBottomWidth),K=n?0:Dn(r.borderLeftWidth),I=c+m,R=f+g,j=K+M,E=D+S,x=p?a.offsetHeight-E-a.clientHeight:0,k=v?a.offsetWidth-j-a.clientWidth:0,b=t?I+j:0,w=t?R+E:0,$=n?n.width:Dn(r.width)-b-k,F=n?n.height:Dn(r.height)-w-x,J=$+I+k+j,se=F+R+x+E,ge=oi({devicePixelContentBoxSize:Ei(Math.round($*devicePixelRatio),Math.round(F*devicePixelRatio),s),borderBoxSize:Ei(J,se,s),contentBoxSize:Ei($,F,s),contentRect:new Yc(c,f,$,F)});return go.set(a,ge),ge},Zc=function(a,l,r){var n=Xc(a,r),t=n.borderBoxSize,s=n.contentBoxSize,v=n.devicePixelContentBoxSize;switch(l){case Gi.DEVICE_PIXEL_CONTENT_BOX:return v;case Gi.BORDER_BOX:return t;default:return s}},M1=function(){function a(l){var r=Xc(l);this.target=l,this.contentRect=r.contentRect,this.borderBoxSize=oi([r.borderBoxSize]),this.contentBoxSize=oi([r.contentBoxSize]),this.devicePixelContentBoxSize=oi([r.devicePixelContentBoxSize])}return a}(),Qc=function(a){if(Jc(a))return 1/0;for(var l=0,r=a.parentNode;r;)l+=1,r=r.parentNode;return l},I1=function(){var a=1/0,l=[];ii.forEach(function(s){if(s.activeTargets.length!==0){var v=[];s.activeTargets.forEach(function(p){var f=new M1(p.target),m=Qc(p.target);v.push(f),p.lastReportedSize=Zc(p.target,p.observedBox),m<a&&(a=m)}),l.push(function(){s.callback.call(s.observer,v,s.observer)}),s.activeTargets.splice(0,s.activeTargets.length)}});for(var r=0,n=l;r<n.length;r++){var t=n[r];t()}return a},$s=function(a){ii.forEach(function(l){l.activeTargets.splice(0,l.activeTargets.length),l.skippedTargets.splice(0,l.skippedTargets.length),l.observationTargets.forEach(function(r){r.isActive()&&(Qc(r.target)>a?l.activeTargets.push(r):l.skippedTargets.push(r))})})},O1=function(){var a=0;for($s(a);C1();)a=I1(),$s(a);return D1()&&B1(),a>0},ut,eu=[],L1=function(){return eu.splice(0).forEach(function(a){return a()})},R1=function(a){if(!ut){var l=0,r=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return L1()}).observe(r,n),ut=function(){r.textContent="".concat(l?l--:l++)}}eu.push(a),ut()},$1=function(a){R1(function(){requestAnimationFrame(a)})},_o=0,V1=function(){return!!_o},F1=250,P1={attributes:!0,characterData:!0,childList:!0,subtree:!0},Vs=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Fs=function(a){return a===void 0&&(a=0),Date.now()+a},dt=!1,j1=function(){function a(){var l=this;this.stopped=!0,this.listener=function(){return l.schedule()}}return a.prototype.run=function(l){var r=this;if(l===void 0&&(l=F1),!dt){dt=!0;var n=Fs(l);$1(function(){var t=!1;try{t=O1()}finally{if(dt=!1,l=n-Fs(),!V1())return;t?r.run(1e3):l>0?r.run(l):r.start()}})}},a.prototype.schedule=function(){this.stop(),this.run()},a.prototype.observe=function(){var l=this,r=function(){return l.observer&&l.observer.observe(document.body,P1)};document.body?r():qi.addEventListener("DOMContentLoaded",r)},a.prototype.start=function(){var l=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Vs.forEach(function(r){return qi.addEventListener(r,l.listener,!0)}))},a.prototype.stop=function(){var l=this;this.stopped||(this.observer&&this.observer.disconnect(),Vs.forEach(function(r){return qi.removeEventListener(r,l.listener,!0)}),this.stopped=!0)},a}(),St=new j1,Ps=function(a){!_o&&a>0&&St.start(),_o+=a,!_o&&St.stop()},H1=function(a){return!Nt(a)&&!T1(a)&&getComputedStyle(a).display==="inline"},U1=function(){function a(l,r){this.target=l,this.observedBox=r||Gi.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return a.prototype.isActive=function(){var l=Zc(this.target,this.observedBox,!0);return H1(this.target)&&(this.lastReportedSize=l),this.lastReportedSize.inlineSize!==l.inlineSize||this.lastReportedSize.blockSize!==l.blockSize},a}(),q1=function(){function a(l,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=l,this.callback=r}return a}(),bo=new WeakMap,js=function(a,l){for(var r=0;r<a.length;r+=1)if(a[r].target===l)return r;return-1},ko=function(){function a(){}return a.connect=function(l,r){var n=new q1(l,r);bo.set(l,n)},a.observe=function(l,r,n){var t=bo.get(l),s=t.observationTargets.length===0;js(t.observationTargets,r)<0&&(s&&ii.push(t),t.observationTargets.push(new U1(r,n&&n.box)),Ps(1),St.schedule())},a.unobserve=function(l,r){var n=bo.get(l),t=js(n.observationTargets,r),s=n.observationTargets.length===1;t>=0&&(s&&ii.splice(ii.indexOf(n),1),n.observationTargets.splice(t,1),Ps(-1))},a.disconnect=function(l){var r=this,n=bo.get(l);n.observationTargets.slice().forEach(function(t){return r.unobserve(l,t.target)}),n.activeTargets.splice(0,n.activeTargets.length)},a}(),W1=function(){function a(l){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof l!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");ko.connect(this,l)}return a.prototype.observe=function(l,r){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Os(l))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ko.observe(this,l,r)},a.prototype.unobserve=function(l){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Os(l))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ko.unobserve(this,l)},a.prototype.disconnect=function(){ko.disconnect(this)},a.toString=function(){return"function ResizeObserver () { [polyfill code] }"},a}();const Io=new WeakMap;function K1(a){var l;for(let r=0,n=a.length;r<n;++r){const t=a[r],s=Io.get(t.target);if(typeof s=="function"){const{inlineSize:v,blockSize:p}=((l=t.borderBoxSize)==null?void 0:l[0])??{},{offsetWidth:f,offsetHeight:m}=t.target;s(Object.assign(t,{offsetWidth:f,offsetHeight:m,width:v??f,height:p??m}))}}}const au=new(ti&&window.ResizeObserver||W1)(K1);function Hs(a,l){Io.set(a,l),au.observe(a)}function Us(a){Io.has(a)&&(au.unobserve(a),Io.delete(a))}function G1(a={}){let l=Ms;const r=e.watch(()=>e.unref(a.target),t=>{l(),!(!t||typeof a.onResize!="function")&&(Hs(t,a.onResize),l=()=>{Us(t),l=Ms})},{immediate:!0}),n=()=>{r(),l()};return e.getCurrentScope()&&e.onScopeDispose(n),{observeResize:Hs,unobserveResize:Us,unobserve:n}}const Y1=e.ref(!1);e.computed(()=>Y1.value);const qs="__theme_style__",pt="__theme_observer__",Ws=e.reactive(new Map),Ks=new Map;e.watch(Ws,()=>{if(!ti)return;Ks.clear();const a=document.head.querySelector(`#${qs}`);a&&document.head.removeChild(a);const l=document.createElement("style");let r=`.${pt} { width: 1px }`,n=1;for(const[t,[s,v]]of Ws.entries())r+=` html.${s} .${pt}, .${v} .${pt} { width: ${++n}px }`,Ks.set(n,t);l.textContent=r,l.id=qs,document.head.appendChild(l)});const lu=e.defineComponent({__name:"grid-layout",props:{autoSize:{type:Boolean,default:!0},colNum:{default:12},rowHeight:{default:150},maxRows:{default:1/0},margin:{default:()=>[10,10]},isDraggable:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!0},isMirrored:{type:Boolean,default:!1},isBounded:{type:Boolean,default:!1},useCssTransforms:{type:Boolean,default:!0},verticalCompact:{type:Boolean,default:!0},restoreOnDrag:{type:Boolean,default:!1},layout:{},responsive:{type:Boolean,default:!1},responsiveLayouts:{default:()=>({})},transformScale:{default:1},breakpoints:{default:()=>({lg:1200,md:996,sm:768,xs:480,xxs:0})},cols:{default:()=>({lg:12,md:10,sm:6,xs:4,xxs:2})},preventCollision:{type:Boolean,default:!1},useStyleCursor:{type:Boolean,default:!0}},emits:["layout-before-mount","layout-mounted","layout-updated","breakpoint-changed","update:layout","layout-ready"],setup(a,{expose:l,emit:r}){const n=a,t=r,s=e.reactive({width:-1,mergedStyle:{},lastLayoutLength:0,isDragging:!1,placeholder:{x:0,y:0,w:0,h:0,i:""},layouts:{},lastBreakpoint:null,originalLayout:null}),v=new Map,p=e.ref(n.layout),f=e.ref(),{observeResize:m,unobserveResize:g}=G1(),c=K6();c.on("resizeEvent",D),c.on("dragEvent",M),e.onBeforeMount(()=>{t("layout-before-mount",p.value)}),e.onMounted(()=>{t("layout-mounted",p.value),e.nextTick(()=>{n1(p.value),s.originalLayout=p.value,e.nextTick(()=>{F(),f.value&&m(f.value,G6(E,16)),wi(p.value,n.verticalCompact),t("layout-updated",p.value),j(),E()})})}),e.onBeforeUnmount(()=>{c.clearAll(),f.value&&g(f.value)});function D(se,ge,Me,V,fe,ae){w(se,ge,Me,V,fe,ae)}function M(se,ge,Me,V,fe,ae){b(se,ge,Me,V,fe,ae)}e.watch(()=>s.width,(se,ge)=>{e.nextTick(()=>{c.emit("updateWidth",se),ge===-1&&e.nextTick(()=>{t("layout-ready",p.value)}),j()})}),e.watch(()=>[n.layout,n.layout.length],()=>{p.value=n.layout,R()}),e.watch(()=>n.colNum,se=>{c.emit("setColNum",se)}),e.watch(()=>n.rowHeight,se=>{c.emit("setRowHeight",se)}),e.watch(()=>n.isDraggable,se=>{c.emit("setDraggable",se)}),e.watch(()=>n.isResizable,se=>{c.emit("setResizable",se)}),e.watch(()=>n.isBounded,se=>{c.emit("setBounded",se)}),e.watch(()=>n.transformScale,se=>{c.emit("setTransformScale",se)}),e.watch(()=>n.responsive,se=>{se||(t("update:layout",s.originalLayout),c.emit("setColNum",n.colNum)),E()}),e.watch(()=>n.maxRows,se=>{c.emit("setMaxRows",se)}),e.watch([()=>n.margin,()=>n.margin[1]],j),e.provide(Fc,e.reactive({...e.toRefs(n),...e.toRefs(s),increaseItem:S,decreaseItem:K})),e.provide(Pc,c),l({state:s,getItem:I,resizeEvent:w,dragEvent:b,layoutUpdate:R});function S(se){v.set(se.i,se)}function K(se){v.delete(se.i)}function I(se){return v.get(se)}function R(){if(!cn(p.value)&&!cn(s.originalLayout)){if(p.value.length!==s.originalLayout.length){const se=J(p.value,s.originalLayout);if(se.length>0)if(p.value.length>s.originalLayout.length)s.originalLayout=s.originalLayout.concat(se);else{const ge=new Set(se.map(Me=>Me.i));s.originalLayout=s.originalLayout.filter(Me=>!ge.has(Me.i))}s.lastLayoutLength=p.value.length,F()}wi(p.value,n.verticalCompact),c.emit("updateWidth",s.width),j(),t("layout-updated",p.value)}}function j(){s.mergedStyle={height:x()}}function E(){f.value&&(s.width=f.value.offsetWidth),c.emit("resizeEvent")}function x(){if(!n.autoSize)return;const se=parseFloat(n.margin[1]);return J6(p.value)*(n.rowHeight+se)+se+"px"}let k;function b(se,ge,Me,V,fe,ae){let de=Ss(p.value,ge);cn(de)&&(de={h:0,w:0,x:0,y:0,i:""}),se==="dragstart"&&!n.verticalCompact&&(k=p.value.reduce((Ce,{i:Fe,x:ye,y:T})=>({...Ce,[Fe]:{x:ye,y:T}}),{})),se==="dragmove"||se==="dragstart"?(s.placeholder.i=ge,s.placeholder.x=de.x,s.placeholder.y=de.y,s.placeholder.w=ae,s.placeholder.h=fe,e.nextTick(()=>{s.isDragging=!0}),c.emit("updateWidth",s.width)):e.nextTick(()=>{s.isDragging=!1}),p.value=_t(p.value,de,Me,V,!0,n.preventCollision),n.restoreOnDrag?(de.static=!0,wi(p.value,n.verticalCompact,k),de.static=!1):wi(p.value,n.verticalCompact),c.emit("compact"),j(),se==="dragend"&&(k=void 0,t("layout-updated",p.value))}function w(se,ge,Me,V,fe,ae){let de=Ss(p.value,ge);cn(de)&&(de={h:0,w:0,x:0,y:0,i:""});let Ce;if(n.preventCollision){const Fe=Hc(p.value,{...de,w:ae,h:fe}).filter(ye=>ye.i!==de.i);if(Ce=Fe.length>0,Ce){let ye=1/0,T=1/0;Fe.forEach(ue=>{ue.x>de.x&&(ye=Math.min(ye,ue.x)),ue.y>de.y&&(T=Math.min(T,ue.y))}),Number.isFinite(ye)&&(de.w=ye-de.x),Number.isFinite(T)&&(de.h=T-de.y)}}Ce||(de.w=ae,de.h=fe),se==="resizestart"||se==="resizemove"?(s.placeholder.i=ge,s.placeholder.x=Me,s.placeholder.y=V,s.placeholder.w=de.w,s.placeholder.h=de.h,e.nextTick(()=>{s.isDragging=!0}),c.emit("updateWidth",s.width)):se&&e.nextTick(()=>{s.isDragging=!1}),n.responsive&&$(),wi(p.value,n.verticalCompact),c.emit("compact"),j(),se==="resizeend"&&t("layout-updated",p.value)}function $(){const se=c1(n.breakpoints,s.width);if(se===s.lastBreakpoint)return;const ge=Wc(se,n.cols);!cn(s.lastBreakpoint)&&!s.layouts[s.lastBreakpoint]&&(s.layouts[s.lastBreakpoint]=wt(p.value));const Me=u1(s.originalLayout,s.layouts,n.breakpoints,se,s.lastBreakpoint,ge,n.verticalCompact);s.layouts[se]=Me,s.lastBreakpoint!==se&&t("breakpoint-changed",se,Me),p.value=Me,t("update:layout",Me),s.lastBreakpoint=se,c.emit("setColNum",ge)}function F(){s.layouts=Object.assign({},n.responsiveLayouts)}function J(se,ge){const Me=new Set(ge.map(de=>de.i)),V=new Set(se.map(de=>de.i)),fe=se.filter(de=>!Me.has(de.i)),ae=ge.filter(de=>!V.has(de.i));return fe.concat(ae)}return(se,ge)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapper",ref:f,class:"vgl-layout",style:e.normalizeStyle(s.mergedStyle)},[se.$slots.default?e.renderSlot(se.$slots,"default",{key:0}):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(p.value,Me=>(e.openBlock(),e.createBlock(Mo,e.mergeProps({key:Me.i,ref_for:!0},Me),{default:e.withCtx(()=>[e.renderSlot(se.$slots,"item",{item:Me})]),_:2},1040))),128)),e.withDirectives(e.createVNode(Mo,{class:"vgl-item--placeholder",x:s.placeholder.x,y:s.placeholder.y,w:s.placeholder.w,h:s.placeholder.h,i:s.placeholder.i},null,8,["x","y","w","h","i"]),[[e.vShow,s.isDragging]])],4))}});(function(){try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode('.vgl-layout{--vgl-placeholder-bg: red;--vgl-placeholder-opacity: 20%;--vgl-placeholder-z-index: 2;--vgl-item-resizing-z-index: 3;--vgl-item-resizing-opacity: 60%;--vgl-item-dragging-z-index: 3;--vgl-item-dragging-opacity: 100%;--vgl-resizer-size: 10px;--vgl-resizer-border-color: #444;--vgl-resizer-border-width: 2px;position:relative;box-sizing:border-box;transition:height .2s ease}.vgl-item{position:absolute;box-sizing:border-box;transition:.2s ease;transition-property:left,top,right}.vgl-item--placeholder{z-index:var(--vgl-placeholder-z-index, 2);-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:var(--vgl-placeholder-bg, red);opacity:var(--vgl-placeholder-opacity, 20%);transition-duration:.1s}.vgl-item--no-touch{touch-action:none}.vgl-item--transform{right:auto;left:0;transition-property:transform}.vgl-item--transform.vgl-item--rtl{right:0;left:auto}.vgl-item--resizing{z-index:var(--vgl-item-resizing-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-resizing-opacity, 60%)}.vgl-item--dragging{z-index:var(--vgl-item-dragging-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-dragging-opacity, 100%);transition:none}.vgl-item__resizer{position:absolute;right:0;bottom:0;box-sizing:border-box;width:var(--vgl-resizer-size);height:var(--vgl-resizer-size);cursor:se-resize}.vgl-item__resizer:before{position:absolute;top:0;right:3px;bottom:3px;left:0;content:"";border:0 solid var(--vgl-resizer-border-color);border-right-width:var(--vgl-resizer-border-width);border-bottom-width:var(--vgl-resizer-border-width)}.vgl-item__resizer--rtl{right:auto;left:0;cursor:sw-resize}.vgl-item__resizer--rtl:before{top:0;right:0;bottom:3px;left:3px;border-right-width:0;border-bottom-width:var(--vgl-resizer-border-width);border-left-width:var(--vgl-resizer-border-width)}')),document.head.appendChild(a)}}catch(l){console.error("vite-plugin-css-injected-by-js",l)}})();const J1={key:0,class:"item-view-group"},X1={key:0,class:"item-view-group"},Z1=e.defineComponent({__name:"index",props:{children:{type:Object,default:()=>{}},level:{type:Number,default:1}},emits:["rowClick","routeUrl","radioChange"],setup(a,{emit:l}){const r=A.useModelComp(A.pinia),{isEdit:n}=A.storeToRefs(r),t=Un(A.pinia),s=l,v=a,p=e.ref(""),f=e.computed(()=>v==null?void 0:v.children),m=e.computed(()=>{var j,E,x,k;return((j=v==null?void 0:v.children)==null?void 0:j.length)>0&&((E=v==null?void 0:v.children)!=null&&E.every(b=>b==null?void 0:b.layout))?(k=(x=v==null?void 0:v.children)==null?void 0:x[0])==null?void 0:k.layout:"vertical"}),g=j=>{p.value=j,s("radioChange",j)},c=e.computed(()=>{var j,E;return((E=(j=v==null?void 0:v.children)==null?void 0:j[0])==null?void 0:E.isGridLayout)||!1}),D=e.ref((v==null?void 0:v.level)+1),M=e.computed(()=>{if(!(v!=null&&v.children)||!Array.isArray(v.children)||v.children.length<2)return!1;const j=v.children.some(x=>(x==null?void 0:x.name)==="测量系统配置表"&&(x==null?void 0:x.comp)==="ParentItem"),E=v.children.some(x=>(x==null?void 0:x.name)==="测量系统传递表"&&(x==null?void 0:x.comp)==="ParentItem");return j&&E}),S=e.computed(()=>{var E,x,k,b,w,$;let j=(E=v==null?void 0:v.children)==null?void 0:E.filter(F=>F==null?void 0:F.choice);if(t.setSelectTab((x=j==null?void 0:j[0])==null?void 0:x.choiceName),(p==null?void 0:p.value)!=="")return(k=v==null?void 0:v.children)==null?void 0:k.filter(F=>!(F!=null&&F.choiceName)||(F==null?void 0:F.choiceName)===(p==null?void 0:p.value));{let F=(w=(b=v==null?void 0:v.children)==null?void 0:b.find(J=>J==null?void 0:J.choice))==null?void 0:w.choiceName;return($=v==null?void 0:v.children)==null?void 0:$.filter(J=>!(J!=null&&J.choiceName)||(J==null?void 0:J.choiceName)===F)}}),K=j=>{const E=(j==null?void 0:j.menuFilter)||[];return Array.isArray(E)&&(E==null?void 0:E.some(x=>{const k=typeof x=="string"?x:JSON.stringify(x);return k==null?void 0:k.includes("HideGroup=Yes")}))};e.watch(()=>v==null?void 0:v.children,()=>{M.value},{deep:!0});const I=j=>{s("rowClick",j)},R=(j,E)=>{s("routeUrl",j,E)};return(j,E)=>c.value?(e.openBlock(),e.createBlock(e.unref(lu),{key:0,layout:f.value,"onUpdate:layout":E[0]||(E[0]=x=>f.value=x),"is-draggable":e.unref(n)==="edit","is-resizable":e.unref(n)==="edit","col-num":24,margin:[8,16]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(x,k)=>(e.openBlock(),e.createBlock(e.unref(Mo),{key:x.i,x:x.x,y:x.y,"min-h":x.minH,"max-h":x.maxH,"min-w":x.minW,w:x.w,h:x.h,i:x.i},{default:e.withCtx(()=>{var b,w,$,F,J,se,ge,Me,V,fe,ae,de,Ce,Fe;return[e.createElementVNode("div",{style:e.normalizeStyle({gap:"16px",display:"flex",flexDirection:"column",paddingBottom:k===((b=v==null?void 0:v.children)==null?void 0:b.length)-1?"0px":"24px"})},[(($=(w=x==null?void 0:x.component)==null?void 0:w.comp)==null?void 0:$.toUpperCase())!=="TABLE"&&((F=x==null?void 0:x.component)!=null&&F.name)?(e.openBlock(),e.createElementBlock("div",J1,[e.createElementVNode("div",{class:"group-name-wrap",style:e.normalizeStyle({paddingLeft:(parseInt(D.value.toString())-1)*12+"px",fontWeight:600-(D.value-1)*100>=400?600-(D.value-1)*100:400,fontSize:17-D.value>=14?17-D.value+"px":"14px"})},e.toDisplayString((J=x==null?void 0:x.component)==null?void 0:J.name),5)])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Ki)((se=x==null?void 0:x.component)==null?void 0:se.comp)),{pageLayout:m.value,config:{showIndex:(ge=e.unref(or)[k])==null?void 0:ge.showIndex,allowMove:(Me=e.unref(or)[k])==null?void 0:Me.allowMove,viewport:(V=e.unref(or)[k])==null?void 0:V.viewport,status:(fe=e.unref(or)[k])==null?void 0:fe.status},related:x==null?void 0:x.relatedTables,compName:x==null?void 0:x.component.name,compNames:e.unref(xc),itemData:(ae=x==null?void 0:x.component)==null?void 0:ae.compData,childItemData:(de=x==null?void 0:x.component)==null?void 0:de.itemChildData,key:e.unref(Hn),cacheNewData:e.unref(kc),onChange:e.unref(No),index:(x==null?void 0:x.id)??k,onContentChange:e.unref(To),onPageChange:e.unref(Ao),parentTableId:(Ce=x==null?void 0:x.component)==null?void 0:Ce.tableId,allMapContents:e.unref(bt),children:(Fe=x==null?void 0:x.component)==null?void 0:Fe.children,level:D.value,onRowClick:I,onRouteUrl:R,onClickTrigger:e.unref(wc),onClickMainKey:e.unref(_c),onRadioChange:g},null,40,["pageLayout","config","related","compName","compNames","itemData","childItemData","cacheNewData","onChange","index","onContentChange","onPageChange","parentTableId","allMapContents","children","level","onClickTrigger","onClickMainKey"]))],4)]}),_:2},1032,["x","y","min-h","max-h","min-w","w","h","i"]))),128))]),_:1},8,["layout","is-draggable","is-resizable"])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(S.value,(x,k)=>{var b,w;return e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({gap:"16px",display:(x==null?void 0:x.isShow)===!1?"none":"flex",flexDirection:"column",paddingBottom:parseInt(k)===((b=v==null?void 0:v.children)==null?void 0:b.length)-1?"0px":"24px"})},[((w=x==null?void 0:x.comp)==null?void 0:w.toUpperCase())!=="TABLE"&&x.name?(e.openBlock(),e.createElementBlock("div",X1,[K(x)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"group-name-wrap",style:e.normalizeStyle({paddingLeft:parseInt(D.value.toString())>1?"12px":"0px",fontWeight:600-(D.value-1)*100>=400?600-(D.value-1)*100:400,fontSize:17-D.value>=14?17-D.value+"px":"14px"})},e.toDisplayString(x.name),5))])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Ki)(x.comp)),{compName:x.name,groupNames:x==null?void 0:x.nameContents,config:{showIndex:x==null?void 0:x.showIndex,allowMove:x==null?void 0:x.allowMove,viewport:x==null?void 0:x.viewport,status:x==null?void 0:x.status},itemData:x==null?void 0:x.compData,related:x==null?void 0:x.relatedTables,childItemData:x==null?void 0:x.itemChildData,key:e.unref(Hn),onChange:e.unref(No),index:(x==null?void 0:x.id)??k,onContentChange:e.unref(To),onPageChange:e.unref(Ao),parentTableId:x==null?void 0:x.tableId,allMapContents:e.unref(bt),children:x==null?void 0:x.children,level:D.value,onRowClick:I,onRouteUrl:R,onRadioChange:g},null,40,["compName","groupNames","config","itemData","related","childItemData","onChange","index","onContentChange","onPageChange","parentTableId","allMapContents","children","level"]))],4)}),256))}}),Q1=Xl._export_sfc(Z1,[["__scopeId","data-v-bafbdd45"]]),ev={class:"radio-group-container"},av=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},emits:["radioChange"],setup(a,{emit:l}){const r=a,n=l,t=e.ref(),s=Un(A.pinia),{selectTab:v}=A.storeToRefs(s);e.watch(()=>r==null?void 0:r.itemData,()=>{t.value=v.value},{immediate:!0,deep:!0});const p=f=>{t.value=f,n("radioChange",t.value)};return(f,m)=>(e.openBlock(),e.createElementBlock("div",ev,[e.createVNode(ll.ssRadio,{modelValue:t.value,"onUpdate:modelValue":m[0]||(m[0]=g=>t.value=g),content:r==null?void 0:r.itemData,onChange:p},null,8,["modelValue","content"])]))}}),lv=Xl._export_sfc(av,[["__scopeId","data-v-177d64c3"]]),ru=e.ref([{name:"表格",type:"table",comp:"Table",icon:"Table"},{name:"表单",type:"form",comp:"Form",icon:"Form"},{name:"折叠",type:"fold",comp:"Fold",icon:"Fold"},{name:"头像",type:"avatar",comp:"AvatarUpload",icon:"Avatar"},{name:"签名",type:"signature",comp:"Signature",icon:"Signature"},{name:"步骤条",type:"step",comp:"Step",icon:"Step"},{name:"时间线",type:"timeLine",comp:"TimeLine",icon:"TimeLine"},{name:"标签页",type:"tabs",comp:"Tabs",icon:"Tabs"},{name:"图表",type:"chart",comp:"Chart",icon:"chart-new"},{name:"行内布局",type:"layout",comp:"Layout",icon:"ai13"}]),rv={TABLE:Dc,FORM:bs,STATICFORM:Bc,TABLEOPERATE:Gh,TABLESTYLE:d2,TABLEEXTEND:f2,TABLEINTERACTION:m2,FORMOPERATE:ks,FOLD:W2,CALCULATOR:Z2,METHODBUTTON:a4,AVATARUPLOAD:es.ssAvatar,SIGNATURE:es.ssSignature,FORMTOP:bs,STEP:f4,STEPOPERATE:R2,TIMELINE:b4,TIMELINEOPERATE:H2,FORMTOPOPERATE:ks,SIGNATUREOPERATE:u4,AVATARUPLOADOPERATE:n4,TABS:w4,TABSOPERATE:t6,CHART:x6,CHARTOPERATE:z6,LAYOUT:O6,LAYOUTOPERATE:U6,PARENTITEM:Q1,RADIO:lv};function Bi(a){return rv[a==null?void 0:a.toUpperCase()]||null}exports.De=lu;exports.activeStepInfo=_i;exports.addContents=Wi;exports.addVisibleDialog=Dt;exports.affixItems=_0;exports.allMapContents=bt;exports.analyzeMenu=ec;exports.cacheNewData=kc;exports.clickMainKey=_c;exports.clickSavePage=w0;exports.clickStep=Ec;exports.clickTrigger=wc;exports.compId=Hn;exports.compNames=xc;exports.compShow=Di;exports.existLayouts=A0;exports.fixChangeValue=Et;exports.generateLayouts=t2;exports.getComponent=Bi;exports.getComponents=Ki;exports.getPageConstruct=Gd;exports.getPageData=Kr;exports.getSliceContLength=R0;exports.gridRowHeight=l2;exports.gridRowHeightHmPg=a2;exports.isStepLayout=Cc;exports.onBack=k0;exports.onButtonChange=D0;exports.onChange=No;exports.onClick=x0;exports.onClickStep=z0;exports.onContentChange=To;exports.onExtendTaskEnd=T0;exports.onOk=B0;exports.onPageBack=I0;exports.onPageChange=Ao;exports.onSelectFixContent=b0;exports.renderShowItems=gc;exports.showItems=or;exports.sliceTableLength=bc;exports.slotContent=ru;exports.ssTable=Dc;exports.st=Mo;exports.stepItems=$0;exports.tabChange=M0;exports.toolBar=N0;exports.useFormComp=Ct;exports.useModelLoader=xf;exports.verifyButton=O0;