ss-component-new 1.3.337 → 1.3.339

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 (106) hide show
  1. package/dist/{MTLLoader-jmy4E_Nq.js → MTLLoader-C-XJYnXR.js} +1 -1
  2. package/dist/{MTLLoader-DeO6Um2T.cjs → MTLLoader-Dx_OCevv.cjs} +1 -1
  3. package/dist/{OrbitControls-OI4S8Ss9.cjs → OrbitControls-B55yzIKX.cjs} +1 -1
  4. package/dist/{OrbitControls-d0EKaole.js → OrbitControls-BB87FyuR.js} +1 -1
  5. package/dist/{URDFLoader-C9U3YLE3.js → URDFLoader-DgP2bMhH.js} +2 -2
  6. package/dist/{URDFLoader-BAvkWmPl.cjs → URDFLoader-Uh4bBb-n.cjs} +1 -1
  7. package/dist/{animationData-cDYkVSEQ.cjs → animationData-BfEyrEkb.cjs} +1 -1
  8. package/dist/{animationData-DoAZHpIw.js → animationData-CF6benhM.js} +3 -3
  9. package/dist/{array-CrTLC209.cjs → array-Dk18oefG.cjs} +1 -1
  10. package/dist/{array-DPIbkzAq.js → array-Dz0LlM28.js} +5 -5
  11. package/dist/clone-BDBSWARv.cjs +1 -0
  12. package/dist/{clone-Cq3E8M0n.js → clone-BqeCvECh.js} +1 -1
  13. package/dist/{dayjs.min-CgL8CUmE.cjs → dayjs.min-CSW85jLQ.cjs} +1 -1
  14. package/dist/{dayjs.min-D82Omxyk.js → dayjs.min-bC5IyY3C.js} +1 -1
  15. package/dist/{iconfont-3EHR8Y8T.js → iconfont-DV-mBuRs.js} +2 -2
  16. package/dist/{iconfont-BpiJ_H_8.cjs → iconfont-rvMUQHIL.cjs} +1 -1
  17. package/dist/{index-B0HtXP3c.cjs → index--E8u7lHy.cjs} +6 -6
  18. package/dist/{index-CVW6ocwE.js → index-0VkKesv_.js} +5 -5
  19. package/dist/{index-CWlkZnzj.js → index-9nQLsFiY.js} +2 -2
  20. package/dist/{index-Bt71db9N.cjs → index-B38fQMRk.cjs} +1 -1
  21. package/dist/{index-CZxLvSoF.cjs → index-BIg-Nt0x.cjs} +1 -1
  22. package/dist/{index-FT4cWo_D.cjs → index-BPpYDffY.cjs} +1 -1
  23. package/dist/{index-AtuQrqdk.cjs → index-BQO25T-T.cjs} +1 -1
  24. package/dist/{index-Cv459e1t.js → index-BSCoLGXF.js} +13 -13
  25. package/dist/{index-BjjRSikL.cjs → index-BTgJ9oD-.cjs} +1 -1
  26. package/dist/{index-Di2dGeYC.cjs → index-BWpqDCVF.cjs} +1 -1
  27. package/dist/{index-Dzhe1GDF.cjs → index-BchGbZ1v.cjs} +1 -1
  28. package/dist/{index-C9n2IdSF.js → index-Bdh2uHRO.js} +10 -10
  29. package/dist/{index-B2RpeENU.cjs → index-Bio1_C_H.cjs} +1 -1
  30. package/dist/{index-CZpCRnrF.js → index-BmJV5eVh.js} +551 -546
  31. package/dist/{index-BTQEQOOd.cjs → index-BtyugMgY.cjs} +1 -1
  32. package/dist/{index-Cp4UcGm_.cjs → index-BzeH13wt.cjs} +1 -1
  33. package/dist/{index-W1ODg0JF.js → index-C3-1AlM-.js} +3 -3
  34. package/dist/{index-D3oujbd2.cjs → index-C3lScvOV.cjs} +1 -1
  35. package/dist/{index-dIJsWS9o.js → index-C4NN-IA4.js} +2 -2
  36. package/dist/{index-o-_gdA1W.js → index-C6gCT4vd.js} +2 -2
  37. package/dist/{index-C_E9-O0A.js → index-C9baGOvW.js} +19 -19
  38. package/dist/{index-D_of08gn.js → index-CHAqLCtD.js} +5 -5
  39. package/dist/{index-DjIpVN-y.js → index-CHIMUYG3.js} +5 -5
  40. package/dist/{index-BBtYvFuT.js → index-CHnN0kSC.js} +5 -5
  41. package/dist/{index-DjRwNdm-.cjs → index-CMsGT7Tl.cjs} +1 -1
  42. package/dist/{index-TFngW3Jj.cjs → index-COTur3RT.cjs} +1 -1
  43. package/dist/{index-DZixAZ5c.cjs → index-COowXWF7.cjs} +1 -1
  44. package/dist/{index-BnAtvyG2.cjs → index-CUp0Z80f.cjs} +1 -1
  45. package/dist/{index-CEdinvEs.js → index-CYgpY06q.js} +1 -1
  46. package/dist/{index-ui9KJMHx.cjs → index-Ca3THBbJ.cjs} +1 -1
  47. package/dist/{index-Dpvc_TgG.js → index-CbBP02RV.js} +2 -2
  48. package/dist/{index-CcJVmCWc.js → index-CgjHHxqY.js} +3 -3
  49. package/dist/{index-B6GI7AFJ.cjs → index-CoX9mofW.cjs} +1 -1
  50. package/dist/{index-D3_5DC2L.cjs → index-CyQV3nI9.cjs} +1 -1
  51. package/dist/{index-WmmA2Paa.js → index-D0gKkud0.js} +9 -9
  52. package/dist/{index-u2jKa3pH.js → index-D6Zkrpou.js} +7 -7
  53. package/dist/{index-DAuI8IMG.cjs → index-DBhc2SoQ.cjs} +1 -1
  54. package/dist/{index-B8EYYLlD.cjs → index-DBrXonf1.cjs} +1 -1
  55. package/dist/{index-xNjjdlF1.cjs → index-DEfKSijb.cjs} +1 -1
  56. package/dist/{index-Cu_-IwFX.js → index-DGwbEHLN.js} +4 -4
  57. package/dist/{index-Dd5C_JQx.js → index-DLLST1Nd.js} +7 -7
  58. package/dist/{index-DoC7uXaP.js → index-DMt7y2yA.js} +4 -4
  59. package/dist/{index-DsRHbJ39.js → index-DN4OcDlg.js} +1 -1
  60. package/dist/{index-DmzyoBIH.cjs → index-DNyLSjIf.cjs} +1 -1
  61. package/dist/{index-CDPJ1gZw.cjs → index-DOQApax-.cjs} +1 -1
  62. package/dist/{index-DTKxjGXg.js → index-DWP-FYxV.js} +3 -3
  63. package/dist/{index-CbXxScp7.js → index-Dcp8sI4C.js} +2 -2
  64. package/dist/{index-BTVJs4Qn.cjs → index-DtlQjI5L.cjs} +1 -1
  65. package/dist/{index-CJ_USvr0.js → index-DyJCopUt.js} +2 -2
  66. package/dist/{index-NVJooHQp.cjs → index-FJ_oMfF3.cjs} +1 -1
  67. package/dist/{index-b2PDK9e_.js → index-Ijbw1FIL.js} +5 -5
  68. package/dist/{index-q0enUFL5.cjs → index-L9DruvvE.cjs} +1 -1
  69. package/dist/{index-DgWNadGn.js → index-S2ChvJMP.js} +1 -1
  70. package/dist/{index-CzRpNRv3.cjs → index-T25jN7df.cjs} +1 -1
  71. package/dist/{index-bu5APbi2.cjs → index-W6w3oiQ2.cjs} +1 -1
  72. package/dist/{index-DRfdKEbY.cjs → index-Zvul3j_r.cjs} +1 -1
  73. package/dist/{index-CrCre0RI.js → index-c1EWDQO1.js} +1 -1
  74. package/dist/{index-DRUJiyUd.js → index-ipcwULw-.js} +4 -4
  75. package/dist/{index-BuYL2ZYa.js → index-rW-jQkgq.js} +2 -2
  76. package/dist/{index-DlQupXnC.js → index-voXPz7Hq.js} +4 -4
  77. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-COY3eZh7.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CHrvpoVb.js} +5 -5
  78. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CIyM7NyQ.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Dyd5heHe.cjs} +1 -1
  79. package/dist/{main-CMdjbpzI.js → main-Cd_mObtH.js} +5 -5
  80. package/dist/{main-1pdse-uA.cjs → main-FOjt8u8O.cjs} +1 -1
  81. package/dist/{menu-CHtFM8LT.cjs → menu-7kw8Lwp_.cjs} +1 -1
  82. package/dist/{menu-k8p_Kdpk.js → menu-CK0ndSHP.js} +1 -1
  83. package/dist/{menuIndex-Cau478sA.cjs → menuIndex-Ba-9R5jd.cjs} +1 -1
  84. package/dist/{menuIndex-3I7Xt7_d.js → menuIndex-DiNvd_FY.js} +1 -1
  85. package/dist/ss-component.cjs +1 -1
  86. package/dist/ss-component.js +13 -13
  87. package/dist/ss-component3.cjs +1 -1
  88. package/dist/ss-component3.js +4 -2
  89. package/dist/{threeModel-DBMZIQsl.js → threeModel-CIZ5D8Df.js} +4 -4
  90. package/dist/{threeModel-CZohvZSN.cjs → threeModel-Dekl17Re.cjs} +1 -1
  91. package/dist/{threePreview-C_ih9l2A.js → threePreview-B46ButBi.js} +5 -5
  92. package/dist/{threePreview-BrP77wyF.cjs → threePreview-DcCfaIpB.cjs} +1 -1
  93. package/dist/{threeSceneView-CsCpqJn1.cjs → threeSceneView-CoQQCgZ3.cjs} +1 -1
  94. package/dist/{threeSceneView-m6iHbW0N.js → threeSceneView-D4mxD9hv.js} +14 -14
  95. package/dist/{threeSceneViewForCPMPIP-Be_dLUq4.cjs → threeSceneViewForCPMPIP-BR01ytzC.cjs} +1 -1
  96. package/dist/{threeSceneViewForCPMPIP-CK6-DmN-.js → threeSceneViewForCPMPIP-DTtZGOcw.js} +9 -9
  97. package/dist/{threeTrackPathView-yvtGNcEt.js → threeTrackPathView-BQPS8ajS.js} +5 -5
  98. package/dist/{threeTrackPathView-Cj9mNa55.cjs → threeTrackPathView-C6IiddAw.cjs} +1 -1
  99. package/dist/{threeViewerHost-BWEyUxa2.cjs → threeViewerHost-B3elQtpE.cjs} +1 -1
  100. package/dist/{threeViewerHost-BkjF_ww-.js → threeViewerHost-CsMI9jbX.js} +4 -4
  101. package/dist/{urdfTree-D4K4drgJ.js → urdfTree-B118FC_3.js} +1 -1
  102. package/dist/{urdfTree-CoPu1q80.cjs → urdfTree-umPKeRFh.cjs} +1 -1
  103. package/dist/{workpieceTreePanel-DnESRp3P.cjs → workpieceTreePanel-CwUXRyn3.cjs} +1 -1
  104. package/dist/{workpieceTreePanel-B_9YGrGN.js → workpieceTreePanel-D9TnLdIy.js} +4 -4
  105. package/package.json +1 -1
  106. package/dist/clone-mhlV-uEo.cjs +0 -1
@@ -1,4 +1,4 @@
1
- "use strict";var _u=Object.defineProperty;var Cu=(l,n,r)=>n in l?_u(l,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):l[n]=r;var Wr=(l,n,r)=>Cu(l,typeof n!="symbol"?n+"":n,r);const a=require("vue"),al=require("./request-BC2w2vGr.cjs"),Vn=require("./dayjs.min-CgL8CUmE.cjs"),ol=require("./index-B0HtXP3c.cjs"),pl=require("./index-Dzhe1GDF.cjs"),Xl=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),$a=require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CIyM7NyQ.cjs"),Y=require("./menu-CHtFM8LT.cjs"),wr=require("./index-CUw6nGTo.cjs"),Ci=require("./threeViewerHost-BWEyUxa2.cjs"),oa=require("./index-CzRpNRv3.cjs"),Eu=require("./index-DsNHJYr-.cjs"),Dr=require("./index-CW4qJdP8.cjs"),es=require("./index-B2RpeENU.cjs"),Ks=require("./index-CDPJ1gZw.cjs"),Fo=require("./index-W8p89C7t.cjs"),dn=require("./index-xNjjdlF1.cjs");;/* empty css */const Ei=require("./isString-DNBlKLZH.cjs"),as=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),Gs=require("./index-BVaHwt5f.cjs"),Su=require("./index-BjjRSikL.cjs"),Ln=require("./MTLLoader-DeO6Um2T.cjs"),Du=require("./URDFLoader-BAvkWmPl.cjs");var Bu="[object Boolean]";function Ys(l){return l===!0||l===!1||al.isObjectLike(l)&&al.baseGetTag(l)==Bu}function Nu(l){return l===void 0}const Tu=l=>l.match(/\((.*)\)/)[1],Au={__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(l){const n=l,r=a.ref(null),o=a.ref(!1),s=a.ref(null);return a.watch(()=>n==null?void 0:n.isVisible,()=>{o.value=n==null?void 0:n.isVisible},{deep:!0,immediate:!0}),a.watch(()=>s.value,()=>{a.nextTick(()=>{var c,y;(y=(c=r.value)==null?void 0:c.updatePopper)==null||y.call(c)})},{deep:!0,immediate:!0}),(c,y)=>{const p=a.resolveComponent("el-popover");return a.openBlock(),a.createBlock(p,{visible:o.value,"onUpdate:visible":y[0]||(y[0]=v=>o.value=v),trigger:n.trigger,title:n==null?void 0:n.title,placement:n==null?void 0:n.placement,width:n==null?void 0:n.width,ref_key:"popOverRef",ref:r,"trigger-keys":"[]"},{reference:a.withCtx(()=>[a.createElementVNode("div",null,[a.renderSlot(c.$slots,"reference",{ref_key:"referenceRef",ref:s})])]),default:a.withCtx(()=>[a.createElementVNode("div",null,[a.renderSlot(c.$slots,"content")])]),_:3},8,["visible","trigger","title","placement","width"])}}},zu={__name:"index",props:{value:{type:[String,Number],default:""}},setup(l){const n=l,r=a.computed(()=>{const o=String(n.value??"");return o==="已完成"?"task-status-completed":o==="进行中"?"task-status-running":o==="终止"||o==="暂停"?"task-status-stopped":""});return(o,s)=>l.value!==void 0&&l.value!==null?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(["task-status-tag",r.value])},a.toDisplayString(l.value===0?"0":l.value),3)):a.createCommentVNode("",!0)}},Mu=Xl._export_sfc(zu,[["__scopeId","data-v-d81f59b4"]]);function Iu(l,n,r,o={}){if(!l||!n||!r||r.length!==4)return;const s=l.getContext("2d");if(!s)return;const{color:c="rgba(255, 235, 59, 0.3)",strokeWidth:y=2,fillOpacity:p=.2}=o,v=l.getBoundingClientRect(),m=n.getBoundingClientRect(),u=n.naturalWidth,w=n.naturalHeight,D=m.width/u,L=m.height/w,S=Math.min(D,L),W=u*S,I=w*S,A=(v.width-W)/2,ee=(v.height-I)/2,C=r.map(([E,k])=>{const g=A+E*W,O=ee+k*I;return{x:g,y:O}});s.clearRect(0,0,l.width,l.height),s.beginPath(),s.moveTo(C[0].x,C[0].y);for(let E=1;E<C.length;E++)s.lineTo(C[E].x,C[E].y);s.closePath();const _=c.replace(/[\d.]+\)$/,`${p})`);s.fillStyle=_,s.fill(),s.strokeStyle=c.replace(/[\d.]+\)$/,"1)"),s.lineWidth=y,s.stroke()}function wo(l){if(!l)return;const n=l.getContext("2d");n&&n.clearRect(0,0,l.width,l.height)}function ls(l,n){if(!l||!n)return null;const r=l[n];return!r||!r.bboxNorm||!Array.isArray(r.bboxNorm)||r.bboxNorm.length!==4?null:{bboxNorm:r.bboxNorm,imageName:r.imageName||""}}const Ou={key:0,class:"ocr-img-preview-root"},Lu={class:"ocr-img-preview-window"},Ru={key:0,class:"img-preview-body"},$u={class:"img-preview-header"},Vu={class:"img-header-left"},Pu={class:"img-name"},Fu={key:0,class:"img-header-right"},ju={class:"img-index"},Hu={key:0,class:"img-thumb-list"},Uu=["onClick"],qu={key:1,class:"thumb-placeholder"},Wu={class:"thumb-name"},Ku={class:"img-preview-container"},Gu={key:0,class:"img-placeholder"},Yu={key:2,class:"img-placeholder"},Ju={key:0},Xu={key:1},Zu={key:1,class:"img-placeholder"},Qu=a.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(l,{emit:n}){const r=l,o=n,s=a.computed({get:()=>r.visible,set:P=>o("update:visible",P)});let c=!1,y="",p=0,v=0,m=0,u=0,w=0,D=0,L=null;const S=P=>{var ye,Se;const j=(Se=(ye=P==null?void 0:P.target)==null?void 0:ye.closest)==null?void 0:Se.call(ye,".ocr-img-preview-window");return j||document.querySelector(".ocr-img-preview-window")},W=P=>{if(!P||P==="none")return{tx:0,ty:0};let j=P.match(/matrix\(([^)]+)\)/);if(j){const ye=j[1].split(",").map(Se=>Number(Se.trim()));return{tx:(ye==null?void 0:ye[4])||0,ty:(ye==null?void 0:ye[5])||0}}if(j=P.match(/matrix3d\(([^)]+)\)/),j){const ye=j[1].split(",").map(Se=>Number(Se.trim()));return{tx:(ye==null?void 0:ye[12])||0,ty:(ye==null?void 0:ye[13])||0}}return j=P.match(/translate\(\s*([-\d.]+)px\s*,\s*([-\d.]+)px\s*\)/),j?{tx:Number(j[1])||0,ty:Number(j[2])||0}:{tx:0,ty:0}},I=(P,j,ye)=>{P.style.transform=`translate(${j}px, ${ye}px)`},A=P=>{const j=S(P);if(!j)return;c=!0,L=j,y="move",p=P.clientX,v=P.clientY;const ye=window.getComputedStyle(j),{tx:Se,ty:ke}=W(ye.transform);w=Se,D=ke,document.addEventListener("mousemove",C),document.addEventListener("mouseup",_)},ee=(P,j)=>{const ye=S(P);if(!ye)return;c=!0,L=ye,y=j,p=P.clientX,v=P.clientY;const Se=ye.getBoundingClientRect();m=Se.width,u=Se.height;const ke=window.getComputedStyle(ye),{tx:Ze,ty:ya}=W(ke.transform);w=Ze,D=ya,document.addEventListener("mousemove",C),document.addEventListener("mouseup",_)},C=P=>{if(!c||!L)return;const j=P.clientX-p,ye=P.clientY-v,Se=360,ke=420;let Ze=m,ya=u,Ha=w,re=D;if(y==="move"){Ha=w+j,re=D+ye,I(L,Ha,re);return}if(y.includes("right")&&(Ze=Math.max(Se,m+j)),y.includes("bottom")&&(ya=Math.max(ke,u+ye)),y.includes("left")){const la=m-j;la<Se?(Ze=Se,Ha=w+(m-Se)):(Ze=la,Ha=w+j)}if(y.includes("top")){const la=u-ye;la<ke?(ya=ke,re=D+(u-ke)):(ya=la,re=D+ye)}L.style.width=`${Ze}px`,L.style.height=`${ya}px`,I(L,Ha,re)},_=()=>{c=!1,y="",L=null,document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",_)},E=a.ref([]),k=a.ref(!1);a.watch(()=>r.images,async P=>{if(!Array.isArray(P)||P.length===0){E.value=[];return}k.value=!0;const j=[];for(const ye of P)if(ye.url&&!ye.url.startsWith("blob:")&&!ye.url.startsWith("http"))try{const Se=await $a.downloadFile(ye.url),ke=URL.createObjectURL(Se);j.push({...ye,blobUrl:ke})}catch(Se){console.error(`Failed to load image for preview: ${ye.url}`,Se),j.push({...ye,blobUrl:""})}else j.push({...ye,blobUrl:ye.url});E.value=j,k.value=!1},{deep:!0,immediate:!0});const g=a.ref(0),O=a.ref(null),F=a.ref(null),q=a.computed(()=>E.value[g.value]||null),te=()=>{if(!E.value.length){g.value=0;return}if(r.defaultImageName){const P=E.value.findIndex(j=>(j==null?void 0:j.name)===r.defaultImageName);g.value=P>=0?P:0}else g.value=0},Te=P=>{if(!E.value.length)return;const j=Math.max(0,Math.min(P,E.value.length-1));g.value=j},Ee=()=>Te(g.value-1),Q=()=>Te(g.value+1),be=P=>{if(!P)return;const j=E.value.findIndex(ye=>(ye==null?void 0:ye.name)===P);j>=0&&(g.value=j)},Z=()=>{if(!F.value)return;const P=F.value.parentElement;if(!P)return;const j=P.getBoundingClientRect();F.value.width=j.width,F.value.height=j.height},de=()=>{var Se,ke;if(!F.value||!O.value||!r.focusedFieldName){F.value&&wo(F.value);return}const P=(Se=O.value.$el)==null?void 0:Se.querySelector("img");if(!P)return;if(!P.complete||P.naturalWidth===0){P.onload=()=>{a.nextTick(()=>{de()})};return}const j=((ke=q.value)==null?void 0:ke.name)||"",ye=ls(r.fieldMeta,r.focusedFieldName);if(!ye){wo(F.value);return}if(ye.imageName!==j){wo(F.value);return}Z(),Iu(F.value,P,ye.bboxNorm)},je=()=>{a.nextTick(()=>{Z(),de()})};a.watch(()=>r.focusedFieldName,()=>{if(!s.value)return;const P=ls(r.fieldMeta,r.focusedFieldName);P!=null&&P.imageName&&be(P.imageName),a.nextTick(()=>{de()})}),a.watch(()=>{var P;return(P=q.value)==null?void 0:P.name},()=>{s.value&&a.nextTick(()=>{F.value&&wo(F.value),de()})}),a.watch(()=>r.visible,P=>{P?(te(),a.nextTick(()=>{Z(),de()})):F.value&&wo(F.value)}),a.watch(()=>r.defaultImageName,()=>{s.value&&te()});let wa=null;a.onMounted(()=>{var P;typeof ResizeObserver<"u"&&(wa=new ResizeObserver(()=>{Z(),a.nextTick(()=>{de()})}),(P=F.value)!=null&&P.parentElement&&wa.observe(F.value.parentElement))}),a.onUnmounted(()=>{wa&&(wa.disconnect(),wa=null),document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",_)});const ie=()=>{F.value&&wo(F.value),o("update:visible",!1),o("close")};return(P,j)=>{var ya,Ha;const ye=a.resolveComponent("el-button"),Se=a.resolveComponent("el-image"),ke=a.resolveComponent("Loading"),Ze=a.resolveComponent("el-icon");return s.value?(a.openBlock(),a.createElementBlock("div",Ou,[j[12]||(j[12]=a.createElementVNode("div",{class:"ocr-img-preview-backdrop"},null,-1)),a.createElementVNode("div",Lu,[a.createElementVNode("div",{class:"ocr-img-preview-header",onMousedown:a.withModifiers(A,["stop"])},[j[8]||(j[8]=a.createElementVNode("span",{class:"ocr-img-preview-title"},"文件预览",-1)),a.createElementVNode("button",{type:"button",class:"ocr-img-preview-close",onClick:ie},"×")],32),a.createElementVNode("div",{class:"resizable-handle top",onMousedown:j[0]||(j[0]=a.withModifiers(re=>ee(re,"top"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle right",onMousedown:j[1]||(j[1]=a.withModifiers(re=>ee(re,"right"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom",onMousedown:j[2]||(j[2]=a.withModifiers(re=>ee(re,"bottom"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle left",onMousedown:j[3]||(j[3]=a.withModifiers(re=>ee(re,"left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle top-left",onMousedown:j[4]||(j[4]=a.withModifiers(re=>ee(re,"top-left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle top-right",onMousedown:j[5]||(j[5]=a.withModifiers(re=>ee(re,"top-right"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom-left",onMousedown:j[6]||(j[6]=a.withModifiers(re=>ee(re,"bottom-left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom-right",onMousedown:j[7]||(j[7]=a.withModifiers(re=>ee(re,"bottom-right"),["stop"]))},null,32),q.value?(a.openBlock(),a.createElementBlock("div",Ru,[a.createElementVNode("div",$u,[a.createElementVNode("div",Vu,[a.createElementVNode("span",Pu,a.toDisplayString(q.value.name?q.value.name+(q.value.url&&q.value.url.lastIndexOf(".")!==-1?q.value.url.substring(q.value.url.lastIndexOf(".")):""):""),1)]),E.value.length>1?(a.openBlock(),a.createElementBlock("div",Fu,[a.createVNode(ye,{size:"small",disabled:g.value===0,onClick:Ee},{default:a.withCtx(()=>j[9]||(j[9]=[a.createTextVNode("上一张")])),_:1,__:[9]},8,["disabled"]),a.createElementVNode("span",ju,a.toDisplayString(g.value+1)+" / "+a.toDisplayString(E.value.length),1),a.createVNode(ye,{size:"small",disabled:g.value===E.value.length-1,onClick:Q},{default:a.withCtx(()=>j[10]||(j[10]=[a.createTextVNode("下一张")])),_:1,__:[10]},8,["disabled"])])):a.createCommentVNode("",!0)]),E.value.length>1?(a.openBlock(),a.createElementBlock("div",Hu,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(E.value,(re,la)=>(a.openBlock(),a.createElementBlock("div",{key:(re.name||"")+"-"+la,class:a.normalizeClass(["img-thumb-item",{active:la===g.value}]),onClick:Ve=>Te(la)},[re!=null&&re.blobUrl?(a.openBlock(),a.createBlock(Se,{key:0,src:re.blobUrl,fit:"cover",class:"thumb-image","preview-src-list":[re.blobUrl],"initial-index":0},null,8,["src","preview-src-list"])):(a.openBlock(),a.createElementBlock("div",qu,"加载失败")),a.createElementVNode("div",Wu,a.toDisplayString(re.name||"-"),1)],10,Uu))),128))])):a.createCommentVNode("",!0),a.createElementVNode("div",Ku,[k.value?(a.openBlock(),a.createElementBlock("div",Gu,[a.createVNode(Ze,{class:"is-loading"},{default:a.withCtx(()=>[a.createVNode(ke)]),_:1}),j[11]||(j[11]=a.createElementVNode("span",null,"图片加载中...",-1))])):(ya=q.value)!=null&&ya.blobUrl?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createVNode(Se,{ref_key:"imageRef",ref:O,src:q.value.blobUrl,fit:"contain",class:"preview-image","preview-src-list":[q.value.blobUrl],onLoad:je},null,8,["src","preview-src-list"]),a.createElementVNode("canvas",{ref_key:"canvasRef",ref:F,class:"highlight-canvas"},null,512)],64)):(a.openBlock(),a.createElementBlock("div",Yu,[(Ha=q.value)!=null&&Ha.url?(a.openBlock(),a.createElementBlock("span",Ju,"图片加载失败")):(a.openBlock(),a.createElementBlock("span",Xu,"暂无图片"))]))])])):(a.openBlock(),a.createElementBlock("div",Zu,"暂无图片"))])])):a.createCommentVNode("",!0)}}}),ed=Xl._export_sfc(Qu,[["__scopeId","data-v-48a4ecb1"]]),ad={class:"cert-preview-body"},ld={key:0,class:"pdf-preview-container"},rd={class:"thumbs"},nd=["onClick"],od={class:"thumb-img"},id=["src"],td={key:1,class:"thumb-loading"},sd={class:"thumb-title"},cd={class:"viewer"},ud={key:0,class:"viewer-img-wrap"},dd=["src"],pd={key:1,class:"viewer-loading"},fd=a.defineComponent({__name:"CertificatePreview",props:{visible:{type:Boolean},versions:{}},emits:["update:visible"],setup(l,{emit:n}){const r=l,o=n,s=a.ref(""),c=a.ref(""),y=a.computed(()=>(r.versions||[]).find(S=>String(S.versionId)===String(s.value))),p=a.ref({}),v=a.ref(""),m=a.ref("证书附件.pdf"),u=()=>{try{Object.values(p.value||{}).forEach(S=>{S&&URL.revokeObjectURL(S)}),v.value&&URL.revokeObjectURL(v.value)}catch{}p.value={},v.value=""},w=async S=>{if(!S||S.fileType==="pdf")return;const W=Array.isArray(S.images)?S.images:[];for(const I of W){const A=I==null?void 0:I.url;if(!(!A||p.value[A]))try{const ee=await Y.platformDownloadFile({url:A}),C=URL.createObjectURL(ee.data);p.value={...p.value,[A]:C}}catch{}}},D=async S=>{var I;if(!S||S.fileType!=="pdf"){v.value="";return}const W=S.sourceUrl||"";if(!W){v.value="";return}if(v.value){try{URL.revokeObjectURL(v.value)}catch{}v.value=""}try{console.log("[CertificatePreview] 下载PDF附件:",{url:W,versionId:S==null?void 0:S.versionId,certNo:S==null?void 0:S.certNo});const A=await Y.platformDownloadFile({url:W});console.log("[CertificatePreview] PDF响应:",{url:W,status:A==null?void 0:A.status,size:(I=A==null?void 0:A.data)==null?void 0:I.size});const ee=URL.createObjectURL(A.data);v.value=ee;const C=S.certNo?String(S.certNo):"";m.value=C?`${C}.pdf`:"证书附件.pdf"}catch(A){console.error("[CertificatePreview] PDF加载失败:",{url:W,error:A}),v.value=""}};a.watch(()=>r.visible,async S=>{var I;if(!S){u();return}const W=(I=r.versions)==null?void 0:I[0];s.value=(W==null?void 0:W.versionId)||"",await w(W),await D(W)},{immediate:!0}),a.watch(()=>s.value,async()=>{var W,I;const S=y.value;if(!S){c.value="",v.value="";return}if(S.fileType==="pdf"){c.value="",await D(S);return}v.value="",c.value=((I=(W=S.images)==null?void 0:W[0])==null?void 0:I.url)||"",await w(S)},{immediate:!0});const L=()=>{o("update:visible",!1),u()};return a.onBeforeUnmount(()=>{u()}),(S,W)=>{const I=a.resolveComponent("el-empty"),A=a.resolveComponent("el-tab-pane"),ee=a.resolveComponent("el-tabs"),C=a.resolveComponent("el-button"),_=a.resolveComponent("el-dialog");return a.openBlock(),a.createBlock(_,{"model-value":S.visible,title:"证书附件预览",width:"1100px","close-on-click-modal":!1,onClose:L},{footer:a.withCtx(()=>[a.createVNode(C,{id:"themeBorderButton",onClick:L},{default:a.withCtx(()=>W[1]||(W[1]=[a.createTextVNode("关闭")])),_:1,__:[1]})]),default:a.withCtx(()=>[S.versions&&S.versions.length>0?(a.openBlock(),a.createBlock(ee,{key:0,modelValue:s.value,"onUpdate:modelValue":W[0]||(W[0]=E=>s.value=E),type:"card",class:"cert-version-tabs"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(S.versions,E=>(a.openBlock(),a.createBlock(A,{key:E.versionId,name:E.versionId,label:E.label},{default:a.withCtx(()=>[a.createElementVNode("div",ad,[E.fileType==="pdf"?(a.openBlock(),a.createElementBlock("div",ld,[v.value?(a.openBlock(),a.createBlock(pl.SsFilePreview,{key:1,fileName:m.value,blobUrl:v.value},null,8,["fileName","blobUrl"])):(a.openBlock(),a.createBlock(I,{key:0,description:"加载中"}))])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("div",rd,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(E.images||[],k=>(a.openBlock(),a.createElementBlock("div",{key:k.url,class:a.normalizeClass(["thumb",{active:k.url===c.value}]),onClick:g=>c.value=k.url},[a.createElementVNode("div",od,[p.value[k.url]?(a.openBlock(),a.createElementBlock("img",{key:0,src:p.value[k.url]},null,8,id)):(a.openBlock(),a.createElementBlock("div",td,"加载中"))]),a.createElementVNode("div",sd,a.toDisplayString(k.name),1)],10,nd))),128))]),a.createElementVNode("div",cd,[c.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[p.value[c.value]?(a.openBlock(),a.createElementBlock("div",ud,[a.createElementVNode("img",{class:"viewer-img",src:p.value[c.value]},null,8,dd)])):(a.openBlock(),a.createElementBlock("div",pd,"加载中"))],64)):(a.openBlock(),a.createBlock(I,{key:0,description:"暂无图片"}))])],64))])]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue"])):(a.openBlock(),a.createBlock(I,{key:1,description:"暂无可预览的证书附件"}))]),_:1},8,["model-value"])}}}),hd=Xl._export_sfc(fd,[["__scopeId","data-v-220703c0"]]),vd={class:"ocr-candidate-wrap"},md={class:"ocr-candidate-left"},yd={key:1},gd={key:0},bd={key:1},kd={key:2},xd={key:3},wd={key:0,class:"ocr-candidate-right"},_d={class:"ocr-candidate-actions"},Cd={key:1},Ed={class:"dialog-footer"},Sd={__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(l,{emit:n}){const r=(g=[])=>{const O=[],F=q=>{(q||[]).forEach(te=>{if(!te)return;const Te=te.children||te.childrens||te.columns;Array.isArray(Te)&&Te.length>0?F(Te):O.push(te)})};return F(g),O},o=l,s=n,c=a.computed(()=>{var g;return((g=D.value)==null?void 0:g.allowAdd)!==!1}),y=a.computed(()=>{var g;return((g=D.value)==null?void 0:g.allowReplace)!==!1}),p=g=>{if(!g)return[];if(Array.isArray(g))return g;if(typeof g=="string")try{const O=JSON.parse(g);return Array.isArray(O)?O:[]}catch{return[]}return[]},v=g=>{s("preview-file",g)},m=a.ref([]),u=a.ref(0),w=a.ref("");a.watch(()=>o.candidates,g=>{var O,F;m.value=(g||[]).map(q=>({...q,...(q==null?void 0:q.ocrRow)||{},selectedTargetId:(q==null?void 0:q.selectedTargetId)||"",__decision:q==null?void 0:q.__decision})),u.value=0,w.value=((F=(O=m.value)==null?void 0:O[0])==null?void 0:F.selectedTargetId)||""},{immediate:!0,deep:!0}),a.watch(()=>o.visible,g=>{var O,F;g&&(u.value=0,w.value=((F=(O=m.value)==null?void 0:O[0])==null?void 0:F.selectedTargetId)||"")});const D=a.computed(()=>{var O;const g=Number(u.value||0);return((O=m.value||[])==null?void 0:O[g])||null}),L=a.computed(()=>(r(o.columns||[])||[]).filter(F=>F&&F.prop).filter(F=>F.type!=="operate"&&F.label!=="操作"&&F.prop!=="operate")),S=a.computed(()=>L.value.filter(g=>g.label!=="证书附件"&&g.prop!=="证书附件")),W=g=>{if(!g)return;const O=(m.value||[]).findIndex(F=>(F==null?void 0:F.idx)===(g==null?void 0:g.idx));O>-1&&(u.value=O,w.value=(g==null?void 0:g.selectedTargetId)||"")},I=g=>{if(!g){w.value="";return}w.value=String((g==null?void 0:g.id)??"")},A=(g,O="")=>{const F=Number(u.value||0),q=m.value||[],te=q[F];te&&(te.__decision=g,te.selectedTargetId=O,w.value=O,m.value=[...q])},ee=()=>A("skip",""),C=()=>A("add",""),_=()=>{if(!w.value){al.ElMessage.warning("请先选择要替换的目标记录");return}A("replace",w.value)},E=()=>{s("update:visible",!1)},k=()=>{const g=m.value||[];if(g.find(F=>(F==null?void 0:F.__decision)==="replace"&&!(F!=null&&F.selectedTargetId))){al.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}s("submit",g),s("update:visible",!1)};return(g,O)=>{const F=a.resolveComponent("el-table-column"),q=a.resolveComponent("svg-icon"),te=a.resolveComponent("el-table"),Te=a.resolveComponent("el-button"),Ee=a.resolveComponent("el-alert");return a.openBlock(),a.createBlock(wr.ssDialog,{title:"OCR候选匹配",visible:l.visible,"close-on-click-modal":!1,width:"90%",style:{maxWidth:"1200px"},onBeforeDestroy:E},{default:a.withCtx(()=>{var Q,be;return[a.createElementVNode("div",vd,[a.createElementVNode("div",md,[O[0]||(O[0]=a.createElementVNode("div",{class:"ocr-candidate-title"},"待处理OCR行(可跳过)",-1)),a.createVNode(te,{data:m.value,border:"",stripe:"","max-height":"300",style:{width:"100%"},"highlight-current-row":"",onCurrentChange:W},{default:a.withCtx(()=>[a.createVNode(F,{type:"index",label:"序号",width:"60"}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(S.value,Z=>(a.openBlock(),a.createBlock(F,{key:Z.prop,label:Z.label,prop:Z.prop,"min-width":Z.minWidth||160},{default:a.withCtx(({row:de})=>[Z.label==="证书附件"||Z.prop==="证书附件"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[p(de==null?void 0:de[Z.prop]).length>0?(a.openBlock(),a.createBlock(q,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:a.withModifiers(je=>v({row:de,prop:Z.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(a.openBlock(),a.createElementBlock("span",yd,"-"))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString((de==null?void 0:de[Z.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128)),a.createVNode(F,{label:"候选数",width:"90",fixed:"right"},{default:a.withCtx(({row:Z})=>[a.createTextVNode(a.toDisplayString(((Z==null?void 0:Z.candidates)||[]).length),1)]),_:1}),a.createVNode(F,{label:"处理状态",width:"120",fixed:"right"},{default:a.withCtx(({row:Z})=>[(Z==null?void 0:Z.__decision)==="replace"?(a.openBlock(),a.createElementBlock("span",gd,"替换")):(Z==null?void 0:Z.__decision)==="add"?(a.openBlock(),a.createElementBlock("span",bd,"新增")):(Z==null?void 0:Z.__decision)==="skip"?(a.openBlock(),a.createElementBlock("span",kd,"跳过")):(a.openBlock(),a.createElementBlock("span",xd,"未处理"))]),_:1})]),_:1},8,["data"])]),m.value&&m.value.length>0?(a.openBlock(),a.createElementBlock("div",wd,[O[4]||(O[4]=a.createElementVNode("div",{class:"ocr-candidate-title"},"当前行候选记录(同编号)",-1)),a.createElementVNode("div",_d,[a.createVNode(Te,{id:"themeBorderButton",onClick:ee},{default:a.withCtx(()=>O[1]||(O[1]=[a.createTextVNode("跳过本行")])),_:1,__:[1]}),a.createVNode(Te,{id:"themeBorderButton",onClick:C,disabled:!c.value},{default:a.withCtx(()=>O[2]||(O[2]=[a.createTextVNode("新增本行")])),_:1,__:[2]},8,["disabled"]),a.createVNode(Te,{class:"ok-button",id:"themeButton",onClick:_,disabled:!y.value||!w.value},{default:a.withCtx(()=>O[3]||(O[3]=[a.createTextVNode("替换选中记录")])),_:1,__:[3]},8,["disabled"])]),(((Q=D.value)==null?void 0:Q.candidates)||[]).length===0?(a.openBlock(),a.createBlock(Ee,{key:0,title:"该编号暂无候选记录,可选择“新增本行”或“跳过本行”。",type:"info",closable:!1,"show-icon":"",style:{margin:"8px 0"}})):a.createCommentVNode("",!0),a.createVNode(te,{data:((be=D.value)==null?void 0:be.candidates)||[],border:"",stripe:"","max-height":"300",style:{width:"100%"},onCurrentChange:I,"highlight-current-row":""},{default:a.withCtx(()=>[a.createVNode(F,{type:"index",label:"序号",width:"60"}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(L.value,Z=>(a.openBlock(),a.createBlock(F,{key:Z.prop,label:Z.label,prop:Z.prop,"min-width":Z.minWidth||160},{default:a.withCtx(({row:de})=>[Z.label==="证书附件"||Z.prop==="证书附件"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[p(de==null?void 0:de[Z.prop]).length>0?(a.openBlock(),a.createBlock(q,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:a.withModifiers(je=>v({row:de,prop:Z.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(a.openBlock(),a.createElementBlock("span",Cd,"-"))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString((de==null?void 0:de[Z.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128))]),_:1},8,["data"])])):a.createCommentVNode("",!0)])]}),footer:a.withCtx(()=>[a.createElementVNode("div",Ed,[a.createVNode(Te,{id:"themeBorderButton",onClick:E},{default:a.withCtx(()=>O[5]||(O[5]=[a.createTextVNode("取消")])),_:1,__:[5]}),a.createVNode(Te,{class:"ok-button",id:"themeButton",onClick:k},{default:a.withCtx(()=>O[6]||(O[6]=[a.createTextVNode("提交已处理")])),_:1,__:[6]})])]),_:1},8,["visible"])}}},Dd=Xl._export_sfc(Sd,[["__scopeId","data-v-89e0489c"]]),Bd={class:"ocr-preview-content"},Nd={class:"ocr-preview-tip"},Td={class:"ocr-preview-table"},Ad={style:{display:"flex","align-items":"center",gap:"8px"}},zd={class:"dialog-footer"},Md={__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(l,{emit:n}){const r=l,o=n,s=a.ref([]),c=a.ref([]),y=a.ref([]);a.watch(()=>r.visible,L=>{L&&(s.value=JSON.parse(JSON.stringify(r.ocrPreviewData)),c.value=JSON.parse(JSON.stringify(r.ocrPreviewColumns)),y.value=[...r.ocrSelectedFields])});const p=(L,S)=>{const W=[...y.value];if(S)W.includes(L)||W.push(L);else{const I=W.indexOf(L);I>-1&&W.splice(I,1)}y.value=W,o("update:ocrSelectedFields",W)},v=(L,S,W)=>{o("fieldChange",{rowIndex:L,prop:S,value:W})},m=()=>{o("update:ocrPreviewData",s.value),o("confirm",s.value),o("update:visible",!1)},u=()=>{o("update:visible",!1)},w=L=>typeof L!="number"?"-":`${(L*100).toFixed(1)}%`,D=L=>typeof L!="number"?"#606266":L>=.9?"#67c23a":L>=.7?"#e6a23c":"#f56c6c";return(L,S)=>{const W=a.resolveComponent("el-alert"),I=a.resolveComponent("el-table-column"),A=a.resolveComponent("el-checkbox"),ee=a.resolveComponent("el-input"),C=a.resolveComponent("el-table"),_=a.resolveComponent("el-button");return a.openBlock(),a.createBlock(wr.ssDialog,{title:"OCR识别结果预览",visible:l.visible,onBeforeDestroy:u,width:"90%",style:{maxWidth:"1200px"}},{default:a.withCtx(()=>[a.createElementVNode("div",Bd,[a.createElementVNode("div",Nd,[a.createVNode(W,{title:"请核对识别结果。系统将按 编号+名称+制造厂 规则匹配并替换;未唯一命中但有编号的,将进入候选选择;无编号则直接新增。",type:"info",closable:!1,"show-icon":""})]),a.createElementVNode("div",Td,[a.createVNode(C,{data:s.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:a.withCtx(()=>[a.createVNode(I,{type:"index",label:"序号",width:"60",fixed:""}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.value,E=>(a.openBlock(),a.createBlock(I,{key:E.prop,prop:E.prop,"min-width":E.minWidth||230,"class-name":E.isAccuracy?"accuracy-column":""},{header:a.withCtx(()=>[a.createElementVNode("div",Ad,[E.isAccuracy?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(A,{key:0,"model-value":y.value.includes(E.prop),onChange:k=>p(E.prop,k),onClick:S[0]||(S[0]=a.withModifiers(()=>{},["stop"]))},null,8,["model-value","onChange"])),a.createElementVNode("span",null,a.toDisplayString(E.label),1)])]),default:a.withCtx(({row:k,$index:g})=>[E.isAccuracy?(a.openBlock(),a.createElementBlock("span",{key:0,class:"accuracy-value",style:a.normalizeStyle({color:D(k[E.prop]),fontWeight:500})},a.toDisplayString(w(k[E.prop])),5)):(a.openBlock(),a.createBlock(ee,{key:1,modelValue:k[E.prop],"onUpdate:modelValue":O=>k[E.prop]=O,size:"small",placeholder:"请输入"+E.label,onChange:O=>v(g,E.prop,O)},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"]))]),_:2},1032,["prop","min-width","class-name"]))),128))]),_:1},8,["data"])])])]),footer:a.withCtx(()=>[a.createElementVNode("div",zd,[a.createVNode(_,{onClick:u,id:"themeBorderButton"},{default:a.withCtx(()=>S[1]||(S[1]=[a.createTextVNode("取消")])),_:1,__:[1]}),a.createVNode(_,{class:"ok-button",onClick:m,id:"themeButton"},{default:a.withCtx(()=>S[2]||(S[2]=[a.createTextVNode("确认")])),_:1,__:[2]})])]),_:1},8,["visible"])}}},Id=Xl._export_sfc(Md,[["__scopeId","data-v-df66eb1f"]]),So=l=>{var o;let n=l;(n==null?void 0:n[0])==="("&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1));let r=(o=$a.analyzeSplitToContent(n,","))==null?void 0:o.map(s=>((s==null?void 0:s[(s==null?void 0:s.length)-1])===","&&(s=s==null?void 0:s.slice(0,(s==null?void 0:s.length)-1)),Di(s)));return r=r==null?void 0:r.join(","),r};let Oa="$R",to="[Any]";const Od=l=>{var y,p,v,m;let n={},r=l==null?void 0:l[0],o=(p=(y=r==null?void 0:r.replace("{",Oa))==null?void 0:y.split(Oa))==null?void 0:p[0];(o==null?void 0:o[0])==="*"&&(o=o==null?void 0:o.slice(1,o==null?void 0:o.length)),o=o==null?void 0:o.split(":"),n.group=o;let s=l==null?void 0:l[1],c;return s!=null&&s.includes("{")?c=(m=(v=s==null?void 0:s.replaceAll("{",""))==null?void 0:v.replaceAll("}",""))==null?void 0:m.replaceAll(to,""):c=s==null?void 0:s.replaceAll(to,""),(c==null?void 0:c[0])==="$"&&(c=c==null?void 0:c.slice(1,c==null?void 0:c.length)),n.filter=c,n},Ld=l=>{var w,D,L,S,W,I;let n=[],r=[],o=[],s=l==null?void 0:l.map(A=>{let ee=A==null?void 0:A.indexOf("@Form(");return ee>0?A==null?void 0:A.substring(0,ee):A}),c="",y=$a.analyzeSplitToContent(s==null?void 0:s[0],":");r=(w=y==null?void 0:y.filter(A=>!(A!=null&&A.includes("{"))&&!(A!=null&&A.includes("["))))==null?void 0:w.join(""),(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?void 0:r[0])==="*"&&(r=r==null?void 0:r.slice(1,r==null?void 0:r.length)),r=r==null?void 0:r.split(":"),r!=null&&r.includes("(@")?r=(L=(D=r==null?void 0:r.replace("(@",Oa))==null?void 0:D.split(Oa))==null?void 0:L[0]:r!=null&&r.includes("@")&&(r=(W=(S=r==null?void 0:r.replace("@",Oa))==null?void 0:S.split(Oa))==null?void 0:W[0]);let p=y==null?void 0:y.filter(A=>(A==null?void 0:A.includes("{"))||(A==null?void 0:A.includes("["))),m=(p==null?void 0:p[0])??"";m=(I=$a.analyzeSplitToContent(m,","))==null?void 0:I.map(A=>((A==null?void 0:A[(A==null?void 0:A.length)-1])===","&&(A=A==null?void 0:A.slice(0,(A==null?void 0:A.length)-1)),A)),(p==null?void 0:p.length)>1&&(n=No(p==null?void 0:p[1]),n!=null&&n.every(A=>Array.isArray(A))&&(n=[n]));let u=[];return m==null||m.forEach((A,ee)=>{var Te,Ee,Q,be,Z,de,je,wa,ie,P,j,ye,Se,ke,Ze,ya,Ha,re,la,Ve,ba,Fe,Ie,$e,Qe,Xa,Wa,V,$,X,se,ue,va,ra,Le,Ce,Sa,da,Fa,ja,me,Je,ze,Xe,pa,ua,Ae,za,fa,Ua;let C=(Te=A==null?void 0:A.split("=="))==null?void 0:Te[0],_=(Ee=A==null?void 0:A.split("=="))==null?void 0:Ee[1],E=[],k=[],g=[],O=[],F="Input",q=[],te=[];if((A==null?void 0:A[0])!=="{"){if((_==null?void 0:_[0])==="$")_=_==null?void 0:_.slice(1,_==null?void 0:_.length),E=(be=(Q=_==null?void 0:_.split("*"))==null?void 0:Q[0])==null?void 0:be.split(":"),k=(P=(ie=(wa=(je=(de=(Z=_==null?void 0:_.split("*"))==null?void 0:Z[1])==null?void 0:de.replace("{",Oa))==null?void 0:je.split(Oa))==null?void 0:wa[0])==null?void 0:ie.split(":"))==null?void 0:P.filter(ga=>ga!==""),g=(ye=(j=_==null?void 0:_.replace("{",Oa))==null?void 0:j.split(Oa))==null?void 0:ye[1],g=g==null?void 0:g.replaceAll("}",""),g=g==null?void 0:g.split(":"),F="Select";else if(((Se=$a.analyzeSplitToContent(A,"="))==null?void 0:Se.length)>1){let ga=(ke=C==null?void 0:C.split("="))==null?void 0:ke[1];if(C=(Ze=C==null?void 0:C.split("="))==null?void 0:Ze[0],F="Select",!(A!=null&&A.includes("||")))ga=(ya=ga==null?void 0:ga.split("/"))==null?void 0:ya.map(He=>((He==null?void 0:He[(He==null?void 0:He.length)-1])==="/"&&(He=He==null?void 0:He.slice(0,(He==null?void 0:He.length)-1)),He)),O=ga==null?void 0:ga.map(He=>({label:He==null?void 0:He.replaceAll("'",""),value:He==null?void 0:He.replaceAll("'","")}));else{let He=[];(Ve=(la=(re=(Ha=A==null?void 0:A.replace("=",Oa))==null?void 0:Ha.split(Oa))==null?void 0:re[1])==null?void 0:la.split("||"))==null||Ve.forEach(We=>{var Ne,De,fe;q.push((De=(Ne=We==null?void 0:We.split("@Filter"))==null?void 0:Ne[0])==null?void 0:De.split("/")),He.push((fe=We==null?void 0:We.split("@Filter"))==null?void 0:fe[1])}),te=He==null?void 0:He.map(We=>(We=We==null?void 0:We.slice(1,(We==null?void 0:We.length)-1),We))}}else if(A!=null&&A.includes("@")&&!(A!=null&&A.includes("||"))){C=(Qe=($e=(Ie=(Fe=(ba=C==null?void 0:C.replace("(@",Oa))==null?void 0:ba.split(Oa))==null?void 0:Fe[0])==null?void 0:Ie.replace("@",Oa))==null?void 0:$e.split(Oa))==null?void 0:Qe[0];let ga=A!=null&&A.includes("(@")?"(@"+((Wa=(Xa=A==null?void 0:A.replace("(@",Oa))==null?void 0:Xa.split(Oa))==null?void 0:Wa[1]):"@"+(($=(V=A==null?void 0:A.replace("@",Oa))==null?void 0:V.split(Oa))==null?void 0:$[1]);if(ga=(X=So(ga))==null?void 0:X.split(","),ga!=null&&ga.find(He=>He==null?void 0:He.includes("@Type"))){let He=(se=ga==null?void 0:ga.find(We=>We==null?void 0:We.includes("@Type")))==null?void 0:se.split("=");He!=null&&He.includes("File")&&(F="Upload"),He!=null&&He.includes("Date")&&(F="Date"),He!=null&&He.includes("DateTime")&&(F="DateTime"),He!=null&&He.includes("Time")&&(F="Time")}}C!=null&&C.includes("(@")||C!=null&&C.includes("@")&&(o.push(Y.cloneDeep(C)),C=(va=(ue=C==null?void 0:C.replace("@",Oa))==null?void 0:ue.split(Oa))==null?void 0:va[0]),u.push({prop:C,label:C,value:"",menuPath:E,groups:k,columns:g,width:m==null?void 0:m.length,options:O,type:F,allContents:q,filterContents:te})}else{c=c+"@"+((ra=$a.analyzeSplitToContent(A,"@"))==null?void 0:ra[1]);let ga=(Le=$a.analyzeSplitToContent(A,"@"))==null?void 0:Le[0];(ga==null?void 0:ga[(ga==null?void 0:ga.length)-1])==="@"&&(ga=ga==null?void 0:ga.slice(0,(ga==null?void 0:ga.length)-1));let He=ga;(He==null?void 0:He[0])==="{"&&(He=He==null?void 0:He.slice(1,(He==null?void 0:He.length)-1)),He=(Ce=$a.analyzeSplitToContent(He,","))==null?void 0:Ce.map(De=>{var fe;return(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&&De.includes("==")&&(De=(fe=De==null?void 0:De.split("=="))==null?void 0:fe[0]),De});let We=(Sa=ga==null?void 0:ga.split("=="))==null?void 0:Sa[1],Ne=(Fa=(da=We==null?void 0:We.split("*"))==null?void 0:da[0])==null?void 0:Fa.replace(to,"");(Ne==null?void 0:Ne[0])==="$"&&(Ne=Ne==null?void 0:Ne.slice(1,Ne==null?void 0:Ne.length)),Ne=$a.analyzeSplitToContent(Ne,"$"),Ne=(ja=Ne==null?void 0:Ne.map((De,fe)=>{var oe;return fe===0&&(Ne==null?void 0:Ne.length)>1&&(De=(oe=De==null?void 0:De.split(":"))==null?void 0:oe[0]),(Ne==null?void 0:Ne.length)>1&&fe===(Ne==null?void 0:Ne.length)-1&&(De=De+":"),De}))==null?void 0:ja.join(":"),E=(Je=(me=Ne==null?void 0:Ne.replaceAll("{",""))==null?void 0:me.replaceAll("}",""))==null?void 0:Je.split(":"),k=(za=(Ae=(ua=(pa=(Xe=(ze=We==null?void 0:We.split("*"))==null?void 0:ze[1])==null?void 0:Xe.replace("{",Oa))==null?void 0:pa.split(Oa))==null?void 0:ua[0])==null?void 0:Ae.split(":"))==null?void 0:za.filter(De=>De!==""),g=(Ua=(fa=We==null?void 0:We.replace("{",Oa))==null?void 0:fa.split(Oa))==null?void 0:Ua[1],g=g==null?void 0:g.replaceAll("}",""),g=g==null?void 0:g.split(","),F="Select",He==null||He.forEach((De,fe)=>{var oe,ia,Pa;De!=null&&De.includes("(@")||De!=null&&De.includes("@")&&(o.push(Y.cloneDeep(De)),De=(ia=(oe=De==null?void 0:De.replace("@",Oa))==null?void 0:oe.split(Oa))==null?void 0:ia[0]),u.push({prop:De,label:De,value:"",menuPath:E,groups:k,columns:(Pa=g==null?void 0:g[fe])==null?void 0:Pa.split(":"),width:He==null?void 0:He.length,type:F})})}}),{groupName:r,formContents:u,contents:n,filter:c,formColumn:m,hideContents:o}},No=l=>{var o,s;if(!l||typeof l!="string")return[];let n=[],r=l.slice(1,(l==null?void 0:l.length)-1);if((r==null?void 0:r[0])!=="[")(o=$a.analyzeSplitToContent(r,","))==null||o.forEach(c=>{(c==null?void 0:c[(c==null?void 0:c.length)-1])===","&&(c=c.slice(0,(c==null?void 0:c.length)-1)),n.push(c??"")});else{let c=[];(s=$a.analyzeSplitToContent(r,","))==null||s.forEach(y=>{(y==null?void 0:y[(y==null?void 0:y.length)-1])===","&&(y=y==null?void 0:y.slice(0,(y==null?void 0:y.length)-1)),c.push(No(y))}),n=c}return n},ft=(l,n)=>{var I,A,ee,C,_,E,k,g,O,F,q,te,Te,Ee,Q,be,Z,de,je,wa,ie,P,j,ye,Se,ke,Ze,ya,Ha,re,la,Ve,ba,Fe,Ie,$e,Qe,Xa,Wa,V,$,X,se,ue,va,ra,Le,Ce,Sa,da,Fa,ja,me,Je,ze,Xe,pa,ua,Ae,za,fa,Ua,ga,He,We;let r,o=[],s=[],c=[],y=[],p=[],v=[],m=[],u="Input",w,D="",L="",S=[],W="";if(l!=null&&l.includes("@Pam")||l!=null&&l.includes("==")||l!=null&&l.includes("="))if(l!=null&&l.includes("@Pam")){let Ne=$a.analyzeSplitToContent(l,"=");if((Ne==null?void 0:Ne.length)>1){l=Ne==null?void 0:Ne[0],l=l==null?void 0:l.slice(0,(l==null?void 0:l.length)-1);let oe=Ne==null?void 0:Ne[(Ne==null?void 0:Ne.length)-1];(oe==null?void 0:oe[0])==="&"&&(oe=oe==null?void 0:oe.slice(1,oe==null?void 0:oe.length)),L=(A=(I=oe==null?void 0:oe.replace("(",Oa))==null?void 0:I.split(Oa))==null?void 0:A[0];let ia=(C=(ee=oe==null?void 0:oe.replace(")",Oa))==null?void 0:ee.split(Oa))==null?void 0:C[0];ia=(E=(_=ia==null?void 0:ia.replace("(",Oa))==null?void 0:_.split(Oa))==null?void 0:E[1],(ia==null?void 0:ia[0])==="{"&&(ia=ia==null?void 0:ia.slice(1,ia==null?void 0:ia.length)),(ia==null?void 0:ia[(ia==null?void 0:ia.length)-1])==="}"&&(ia=ia==null?void 0:ia.slice(0,(ia==null?void 0:ia.length)-1)),S=ia==null?void 0:ia.split(",");let Pa=(g=(k=oe==null?void 0:oe.replace(")",Oa))==null?void 0:k.split(Oa))==null?void 0:g[1];Pa&&Pa!==""&&(W=So(Pa))}r=(F=(O=l==null?void 0:l.replace("@Pam",Oa))==null?void 0:O.split(Oa))==null?void 0:F[0];let De=(te=(q=l==null?void 0:l.replace("@Pam",Oa))==null?void 0:q.split(Oa))==null?void 0:te[1];De=De==null?void 0:De.slice(1,(De==null?void 0:De.length)-1),De=(Te=$a.analyzeSplitToContent(De,","))==null?void 0:Te.map(oe=>(oe="@"+oe,oe));let fe=De==null?void 0:De.find(oe=>oe==null?void 0:oe.includes("@Type"));fe!=null&&fe.includes("File")&&(u="Upload"),fe!=null&&fe.includes("Date")&&(u="Date"),fe!=null&&fe.includes("DateTime")&&(u="DateTime"),fe!=null&&fe.includes("Time")&&(u="Time"),w=De==null?void 0:De.find(oe=>oe==null?void 0:oe.includes("@IdentName")),w=w?(Q=(Ee=w==null?void 0:w.replace("=",Oa))==null?void 0:Ee.split(Oa))==null?void 0:Q[1]:r}else{if(r=(be=l==null?void 0:l.split("=="))==null?void 0:be[0],w=(Z=l==null?void 0:l.split("=="))==null?void 0:Z[0],l!=null&&l.includes("=")&&!(l!=null&&l.includes("=="))&&!((wa=(je=(de=l==null?void 0:l.replace("=",Oa))==null?void 0:de.split(Oa))==null?void 0:je[1])!=null&&wa.includes("||")))if(r=(ie=l==null?void 0:l.split("="))==null?void 0:ie[0],w=r,l!=null&&l.includes("(@")||l!=null&&l.includes("@")){if(l!=null&&l.includes("(@")){let De=(P=l==null?void 0:l.split("(@"))==null?void 0:P[1];De=De==null?void 0:De.slice(0,(De==null?void 0:De.length)-1),De=(ye=(j=De==null?void 0:De.replace("(",Oa))==null?void 0:j.split(Oa))==null?void 0:ye[1],De=De==null?void 0:De.slice(0,(De==null?void 0:De.length)-1),c==null||c.push(De),l=(Se=l==null?void 0:l.split("(@"))==null?void 0:Se[0]}else{let De=(ke=l==null?void 0:l.split("@"))==null?void 0:ke[1];De=De==null?void 0:De.slice(0,(De==null?void 0:De.length)-1),De=(ya=(Ze=De==null?void 0:De.replace("(",Oa))==null?void 0:Ze.split(Oa))==null?void 0:ya[1],De=De==null?void 0:De.slice(0,(De==null?void 0:De.length)-1),c==null||c.push(De),l=(Ha=l==null?void 0:l.split("@"))==null?void 0:Ha[0]}let Ne=(la=(re=l==null?void 0:l.split("="))==null?void 0:re[1])==null?void 0:la.split("/");s.push(Ne)}else o=(ba=$a.analyzeSplitToContent((Ve=l==null?void 0:l.split("="))==null?void 0:Ve[1],"/"))==null?void 0:ba.map(Ne=>((Ne==null?void 0:Ne[(Ne==null?void 0:Ne.length)-1])==="/"&&(Ne=Ne==null?void 0:Ne.slice(0,(Ne==null?void 0:Ne.length)-1)),Ne)),o=o==null?void 0:o.map(Ne=>({label:Ne==null?void 0:Ne.replaceAll("'",""),value:Ne==null?void 0:Ne.replaceAll("'","")}));else if(($e=(Ie=(Fe=l==null?void 0:l.replace("=",Oa))==null?void 0:Fe.split(Oa))==null?void 0:Ie[1])!=null&&$e.includes("||")){r=(Qe=l==null?void 0:l.split("="))==null?void 0:Qe[0],w=(Xa=l==null?void 0:l.split("="))==null?void 0:Xa[0];let Ne=[];(X=($=(V=(Wa=l==null?void 0:l.replace("=",Oa))==null?void 0:Wa.split(Oa))==null?void 0:V[1])==null?void 0:$.split("||"))==null||X.forEach(De=>{var fe,oe,ia;s.push((oe=(fe=De==null?void 0:De.split("@Filter"))==null?void 0:fe[0])==null?void 0:oe.split("/")),Ne.push((ia=De==null?void 0:De.split("@Filter"))==null?void 0:ia[1])}),c=Ne==null?void 0:Ne.map(De=>(De=De==null?void 0:De.slice(1,(De==null?void 0:De.length)-1),De))}else{let Ne=l==null?void 0:l.split("=="),De=(se=Ne==null?void 0:Ne.filter(fe=>(fe==null?void 0:fe[0])==="$"))==null?void 0:se[0];if(De&&!(De!=null&&De.includes("&"))){let fe=(ue=De==null?void 0:De.replace("*",Oa))==null?void 0:ue.split(Oa),oe=(fe==null?void 0:fe[0])===""?n==null?void 0:n.value:fe==null?void 0:fe[0];oe=(ra=(va=oe==null?void 0:oe.replaceAll("{",""))==null?void 0:va.replaceAll("}",""))==null?void 0:ra.replaceAll(to,""),(oe==null?void 0:oe[0])==="$"&&(oe=(Le=oe==null?void 0:oe.slice(1,oe==null?void 0:oe.length))==null?void 0:Le.replaceAll(":","/")),y=oe==null?void 0:oe.split("/");let ia=(Sa=(Ce=fe==null?void 0:fe[1])==null?void 0:Ce.replace("{",Oa))==null?void 0:Sa.split(Oa),Pa=ia==null?void 0:ia[0];(Pa==null?void 0:Pa[(Pa==null?void 0:Pa.length)-1])===":"&&(Pa=Pa==null?void 0:Pa.slice(0,(Pa==null?void 0:Pa.length)-1)),p=Pa==null?void 0:Pa.split(":"),v=(me=(ja=(Fa=(da=ia==null?void 0:ia[1])==null?void 0:da.replace("}",Oa))==null?void 0:Fa.split(Oa))==null?void 0:ja[0])==null?void 0:me.split(":");let hl=(Xe=(ze=(Je=ia==null?void 0:ia[(ia==null?void 0:ia.length)-1])==null?void 0:Je.replace("}",Oa))==null?void 0:ze.split(Oa))==null?void 0:Xe[1];hl&&hl!==""&&(D=So(hl))}if(Ne!=null&&Ne.some(fe=>(fe==null?void 0:fe[0])==="&")){let fe=(pa=Ne==null?void 0:Ne.filter(Pa=>(Pa==null?void 0:Pa[0])==="&"))==null?void 0:pa[0];(fe==null?void 0:fe[0])==="&"&&(fe=fe==null?void 0:fe.slice(1,fe==null?void 0:fe.length)),L=(Ae=(ua=fe==null?void 0:fe.replace("(",Oa))==null?void 0:ua.split(Oa))==null?void 0:Ae[0];let oe=(za=$a.analyzeSplitToContent(fe,")"))==null?void 0:za[0];oe=(Ua=(fa=oe==null?void 0:oe.replace("(",Oa))==null?void 0:fa.split(Oa))==null?void 0:Ua[1],oe=oe==null?void 0:oe.slice(0,(oe==null?void 0:oe.length)-1),(oe==null?void 0:oe[0])==="{"&&(oe=oe==null?void 0:oe.slice(1,oe==null?void 0:oe.length)),(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)),S=oe==null?void 0:oe.split(",");let ia=(ga=$a.analyzeSplitToContent(fe,")"))==null?void 0:ga[1];ia&&ia!==""&&(W=So(ia))}else if(!De){let fe=Ne==null?void 0:Ne[(Ne==null?void 0:Ne.length)-1];fe=fe==null?void 0:fe.slice(1,(fe==null?void 0:fe.length)-1),fe=$a.analyzeSplitToContent(fe,","),fe=fe==null?void 0:fe.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)),fe=fe==null?void 0:fe.map(oe=>{var ia,Pa,hl,Ma;if(oe=oe==null?void 0:oe.replaceAll("$",""),oe!=null&&oe.includes("{")){let Ul="";oe=oe==null?void 0:oe.replaceAll("{","");let Ea=oe==null?void 0:oe.split("}");Ul=((Pa=(ia=Ea==null?void 0:Ea[0])==null?void 0:ia.split(":"))==null?void 0:Pa[0])+":"+(Ea==null?void 0:Ea[1]),oe=Ul,oe=oe+":"}if(oe!=null&&oe.includes(to)){let Ul="",Ea=oe==null?void 0:oe.split(to);Ul=((Ma=(hl=Ea==null?void 0:Ea[0])==null?void 0:hl.split(":"))==null?void 0:Ma[0])+":"+(Ea==null?void 0:Ea[1]),oe=Ul,oe=oe+":"}return oe=oe==null?void 0:oe.replaceAll(":","/"),oe}),m=fe}}u="Select"}else r=l,w=l;return r!=null&&r.includes("@Pam")&&(r=(We=(He=l==null?void 0:l.replace("@Pam",Oa))==null?void 0:He.split(Oa))==null?void 0:We[0],w=r),{label:r,prop:w,options:o,allContents:s,filterContents:c,menus:y,groups:p,words:v,align:"center",formType:u,filter:D,functionName:L,functionRelatedWords:S,calculatorFilter:W,relatedPages:m}},Si=(l,n)=>{var o,s,c,y,p,v,m,u,w,D,L,S,W,I,A,ee,C,_,E,k,g,O,F,q,te,Te,Ee,Q,be;let r=[];if((l==null?void 0:l[0])==="{"&&(l==null?void 0:l[(l==null?void 0:l.length)-1])==="}"&&!((y=(c=(s=(o=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1))==null?void 0:o.replace(":",Oa))==null?void 0:s.split(Oa))==null?void 0:c[0])!=null&&y.includes(","))){let Z=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1),de=(p=Z==null?void 0:Z.replace(":",Oa))==null?void 0:p.split(Oa);if(((v=$a.analyzeSplitToContent(de==null?void 0:de[1],"="))==null?void 0:v.length)===1){let je=de==null?void 0:de[0],wa=[];(w=$a.analyzeSplitToContent((u=de==null?void 0:de[1])==null?void 0:u.slice(1,((m=de==null?void 0:de[1])==null?void 0:m.length)-1),","))==null||w.forEach(ie=>{var P,j;((P=$a.analyzeSplitToContent(ie,"="))==null?void 0:P.length)>1?((ie==null?void 0:ie[(ie==null?void 0:ie.length)-1])===","&&(ie=ie==null?void 0:ie.slice(0,(ie==null?void 0:ie.length)-1)),wa=[...wa,...Si(ie,n)]):((ie==null?void 0:ie[(ie==null?void 0:ie.length)-1])===","&&(ie=ie==null?void 0:ie.slice(0,(ie==null?void 0:ie.length)-1)),wa.push((j=Si(ie,n))==null?void 0:j[0]))}),r==null||r.push({label:je,prop:je,children:wa,align:"center"})}else{let je=[];if(((D=$a.analyzeSplitToContent(Z,"="))==null?void 0:D.length)>=2){let ie=(L=$a.analyzeSplitToContent(Z,"="))==null?void 0:L[1],P=(S=$a.analyzeSplitToContent(ie,"/"))==null?void 0:S.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));je=P==null?void 0:P.map(j=>(j=No(j),j))}let wa=(_=(C=(ee=(A=(I=(W=Z==null?void 0:Z.replace("{",Oa))==null?void 0:W.split(Oa))==null?void 0:I[1])==null?void 0:A.replace("}",Oa))==null?void 0:ee.split(Oa))==null?void 0:C[0])==null?void 0:_.split(",");wa==null||wa.forEach((ie,P)=>{(je==null?void 0:je.length)>0&&P===0?r==null||r.push({label:ie,prop:ie,align:"center",formType:"Select",relatedContents:je==null?void 0:je.map(j=>{let ye={};return wa==null||wa.forEach((Se,ke)=>{ye[Se]=j==null?void 0:j[ke]}),ye}),options:je==null?void 0:je.map(j=>({label:j==null?void 0:j[0],value:j==null?void 0:j[0]})),mainKey:!0}):r==null||r.push({label:ie,prop:ie,align:"center"})})}}else if((l==null?void 0:l[0])==="{")if(((E=$a.analyzeSplitToContent(l,"="))==null?void 0:E.length)===2&&((g=(k=$a.analyzeSplitToContent(l,"="))==null?void 0:k[1])==null?void 0:g[0])==="["){let Z=[];if(((O=$a.analyzeSplitToContent(l,"="))==null?void 0:O.length)>=2){let je=(F=$a.analyzeSplitToContent(l,"="))==null?void 0:F[1],wa=(q=$a.analyzeSplitToContent(je,"/"))==null?void 0:q.map(ie=>((ie==null?void 0:ie[(ie==null?void 0:ie.length)-1])==="/"&&(ie=ie==null?void 0:ie.slice(0,(ie==null?void 0:ie.length)-1)),ie));Z=wa==null?void 0:wa.map(ie=>(ie=No(ie),ie))}let de=(Te=(te=l==null?void 0:l.replace("}",Oa))==null?void 0:te.split(Oa))==null?void 0:Te[0];de=(Ee=de==null?void 0:de.slice(1,de==null?void 0:de.length))==null?void 0:Ee.split(","),de==null||de.forEach((je,wa)=>{(Z==null?void 0:Z.length)>0&&wa===0?r==null||r.push({label:je,prop:je,align:"center",formType:"Select",relatedContents:Z==null?void 0:Z.map(ie=>{let P={};return de==null||de.forEach((j,ye)=>{P[j]=ie==null?void 0:ie[ye]}),P}),options:Z==null?void 0:Z.map(ie=>({label:ie==null?void 0:ie[0],value:ie==null?void 0:ie[0]})),mainKey:!0}):r==null||r.push({label:je,prop:je,align:"center"})})}else(Q=$a.analyzeSplitToContent(l,","))==null||Q.forEach(Z=>{var de,je,wa,ie,P,j,ye,Se,ke,Ze,ya,Ha,re,la,Ve,ba,Fe,Ie,$e,Qe,Xa,Wa,V,$,X,se,ue,va,ra,Le,Ce,Sa,da,Fa,ja,me,Je,ze,Xe,pa,ua,Ae,za,fa,Ua,ga,He;if((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==null?void 0:Z[0])==="{"){let We=$a.analyzeSplitToContent(Z,"="),Ne=We==null?void 0:We[(We==null?void 0:We.length)-1],De=[],fe=[],oe=[],ia=[],Pa=[],hl=(de=Ne==null?void 0:Ne.replace("*",Oa))==null?void 0:de.split(Oa),Ma=(hl==null?void 0:hl[0])===""?n==null?void 0:n.value:hl==null?void 0:hl[0];if((Ma==null?void 0:Ma[0])==="$"&&((ie=(wa=(je=Ma==null?void 0:Ma.replace("@",Oa))==null?void 0:je.split(Oa))==null?void 0:wa[0])!=null&&ie.includes("{"))&&(Ma=(P=Ma==null?void 0:Ma.replace("{",""))==null?void 0:P.replace("}",":")),Ma=Ma==null?void 0:Ma.replaceAll(to,""),(Ma==null?void 0:Ma[(Ma==null?void 0:Ma.length)-1])===":"&&(Ma=Ma!=null&&Ma.includes("(@")?((j=Ma==null?void 0:Ma.split("(@"))==null?void 0:j[0])+":":((ye=Ma==null?void 0:Ma.split("@"))==null?void 0:ye[0])+":"),(Ma==null?void 0:Ma[0])==="$"&&(Ma=(Se=Ma==null?void 0:Ma.slice(1,Ma==null?void 0:Ma.length))==null?void 0:Se.replaceAll(":","/")),Ma!=null&&Ma.includes("$")){let qa=(ke=Ma==null?void 0:Ma.split("$"))==null?void 0:ke[0];qa=(Ze=qa==null?void 0:qa.split("/"))==null?void 0:Ze[0],Ma=qa+"/"+((ya=Ma==null?void 0:Ma.split("$"))==null?void 0:ya[1])+"/"}(Ma==null?void 0:Ma[(Ma==null?void 0:Ma.length)-1])==="/"&&(Ma==null?void 0:Ma[(Ma==null?void 0:Ma.length)-2])==="/"&&(Ma=Ma==null?void 0:Ma.slice(0,(Ma==null?void 0:Ma.length)-1)),Ma!=null&&Ma.includes("(@")?(Ma=(Ha=Ma==null?void 0:Ma.split("(@"))==null?void 0:Ha[0],Ma=Ma==null?void 0:Ma.slice(0,(Ma==null?void 0:Ma.length)-2)):Ma!=null&&Ma.includes("@")&&(Ma=(re=$a.analyzeSplitToContent(Ma,"@"))==null?void 0:re[0],Ma=Ma==null?void 0:Ma.slice(0,(Ma==null?void 0:Ma.length)-1)),De=Ma==null?void 0:Ma.split("/");let Ul=(Ve=(la=hl==null?void 0:hl[1])==null?void 0:la.replace("{",Oa))==null?void 0:Ve.split(Oa);if((Ie=(Fe=(ba=hl==null?void 0:hl[1])==null?void 0:ba.split("(@"))==null?void 0:Fe[0])!=null&&Ie.includes("&&")||(Xa=(Qe=($e=hl==null?void 0:hl[1])==null?void 0:$e.split("@"))==null?void 0:Qe[0])!=null&&Xa.includes("&&")){let qa=(Wa=hl==null?void 0:hl[1])!=null&&Wa.includes("(@")?(X=($=(V=hl==null?void 0:hl[1])==null?void 0:V.split("(@"))==null?void 0:$[0])==null?void 0:X.split("&&"):(va=(ue=(se=hl==null?void 0:hl[1])==null?void 0:se.split("@"))==null?void 0:ue[0])==null?void 0:va.split("&&");ia=qa==null?void 0:qa.map(ae=>{var Ye,pe;return(ae==null?void 0:ae[0])==="*"&&(ae=ae==null?void 0:ae.slice(1,ae==null?void 0:ae.length)),ae=(pe=(Ye=ae==null?void 0:ae.replace("{",Oa))==null?void 0:Ye.split(Oa))==null?void 0:pe[0],(ae==null?void 0:ae[(ae==null?void 0:ae.length)-1])===":"&&(ae=ae==null?void 0:ae.slice(0,(ae==null?void 0:ae.length)-1)),ae=ae==null?void 0:ae.split(":"),ae});let xa=[];qa==null||qa.forEach((ae,Ye)=>{var pe,Ca;(ae==null?void 0:ae[0])==="*"&&(ae=ae==null?void 0:ae.slice(1,ae==null?void 0:ae.length)),ae=(Ca=(pe=ae==null?void 0:ae.replace("{",Oa))==null?void 0:pe.split(Oa))==null?void 0:Ca[1],(ae==null?void 0:ae[(ae==null?void 0:ae.length)-1])==="}"&&(ae=ae==null?void 0:ae.slice(0,(ae==null?void 0:ae.length)-1)),ae=ae==null?void 0:ae.split(","),xa.push(Ye===0?(ae==null?void 0:ae.length)-1:ae==null?void 0:ae.length),Pa=[...Pa,...ae]}),xa=(ra=$a.prefixSum(xa))==null?void 0:ra.map(ae=>ae==null?void 0:ae.total),ia=ia==null?void 0:ia.map((ae,Ye)=>({number:xa==null?void 0:xa[Ye],contents:ae}))}let Ea=Ul==null?void 0:Ul[0];(Ea==null?void 0:Ea[(Ea==null?void 0:Ea.length)-1])===":"&&(Ea=Ea==null?void 0:Ea.slice(0,(Ea==null?void 0:Ea.length)-1)),fe=Ea==null?void 0:Ea.split(":"),oe=(da=(Sa=(Ce=(Le=Ul==null?void 0:Ul[1])==null?void 0:Le.replace("}",Oa))==null?void 0:Ce.split(Oa))==null?void 0:Sa[0])==null?void 0:da.split(",");let _a=(ja=We==null?void 0:We[0])==null?void 0:ja.slice(1,((Fa=We==null?void 0:We[0])==null?void 0:Fa.length)-2),Ra="",Va="";if((me=We==null?void 0:We[(We==null?void 0:We.length)-1])!=null&&me.includes("(@")?(Va=(Xe=(ze=(Je=We==null?void 0:We[(We==null?void 0:We.length)-1])==null?void 0:Je.replace("(@",Oa))==null?void 0:ze.split(Oa))==null?void 0:Xe[1],Va="(@"+Va):(pa=We==null?void 0:We[(We==null?void 0:We.length)-1])!=null&&pa.includes("@")&&(Va=(za=(Ae=(ua=We==null?void 0:We[(We==null?void 0:We.length)-1])==null?void 0:ua.replace("@",Oa))==null?void 0:Ae.split(Oa))==null?void 0:za[1],Va="@"+Va),((fa=$a.analyzeSplitToContent(Va,"&"))==null?void 0:fa.length)>1){let qa=(ga=(Ua=$a.analyzeSplitToContent(Va,"}"))==null?void 0:Ua.map(xa=>{var ae;return xa!=null&&xa.includes("@")||(xa=""),xa!=null&&xa.includes("@")&&(xa=(ae=$a.analyzeSplitToContent(xa,":"))==null?void 0:ae[0],(xa==null?void 0:xa[(xa==null?void 0:xa.length)-1])===":"&&(xa=xa==null?void 0:xa.slice(0,(xa==null?void 0:xa.length)-1)),(xa==null?void 0:xa[0])==="("&&(xa=xa==null?void 0:xa.slice(1,(xa==null?void 0:xa.length)-1))),xa}))==null?void 0:ga.filter(xa=>xa!=="");Va=(Va==null?void 0:Va.length)===1?qa:"("+(qa==null?void 0:qa.join(","))+")"}Va&&Va!==""&&(Ra=So(Va)),(He=_a==null?void 0:_a.split(","))==null||He.forEach((qa,xa)=>{var ae,Ye,pe;r.push({label:qa,prop:qa,align:"center",menus:De,groups:(ia==null?void 0:ia.length)===0?fe:(ae=ia==null?void 0:ia.find(Ca=>(Ca==null?void 0:Ca.number)>=xa))==null?void 0:ae.contents,words:(Pa==null?void 0:Pa.length)===0?(Ye=oe==null?void 0:oe[xa])==null?void 0:Ye.split(":"):(pe=Pa==null?void 0:Pa[xa])==null?void 0:pe.split(":"),formType:(De==null?void 0:De.length)>0?"Select":"Input",mainKey:xa===0,filter:Ra,isMainPath:(ia==null?void 0:ia.findIndex(Ca=>(Ca==null?void 0:Ca.number)>=xa))===0})})}else r.push({label:Z,prop:Z,align:"center"})});else{let Z=(be=$a.analyzeSplitToContent(l,","))==null?void 0:be.map(de=>((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));Z==null||Z.forEach(de=>{r.push(ft(de,n))})}return r},Rd=(l,n)=>{var y,p,v,m,u;let r=l;if(!l)return;let o="";((y=$a.analyzeSplitToContent(l,"}"))==null?void 0:y.length)>1&&(r=(p=$a.analyzeSplitToContent(l,"}"))==null?void 0:p[0],o=(v=$a.analyzeSplitToContent(l,"}"))==null?void 0:v[1]),(l==null?void 0:l[0])==="{"&&(l==null?void 0:l[(l==null?void 0:l.length)-1])==="}"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1));let s=[],c=[];return s.push({label:"排序",prop:"sort"}),s.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(m=$a.analyzeSplitToContent(r,","))==null||m.forEach(w=>{var D;(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)),(w==null?void 0:w[0])==="{"?(D=Si(w,n))==null||D.forEach(L=>{s.push(L)}):s.push(ft(w,n))}),s!=null&&s.some(w=>{var D;return(D=w==null?void 0:w.prop)==null?void 0:D.includes("@")})&&(s=s==null?void 0:s.filter(w=>{var D;return!((D=w==null?void 0:w.prop)!=null&&D.includes("@"))})),o!==""&&((o==null?void 0:o[0])=="{"&&(o=o==null?void 0:o.slice(1,(o==null?void 0:o.length)-1)),(u=$a.analyzeSplitToContent(o,","))==null||u.forEach(w=>{var D;(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)),(w==null?void 0:w[0])==="{"?(D=Si(w,n))==null||D.forEach(L=>{c.push(L)}):c.push(ft(w,n))})),{columns:s,secondColumns:c}},Di=l=>{var n,r,o,s,c;if(l!=null&&l.includes("@Filter")||l!=null&&l.includes("@Condition"))return l;{let y=(r=(n=l==null?void 0:l.replace("(",Oa))==null?void 0:n.split(Oa))==null?void 0:r[1],p=(s=(o=l==null?void 0:l.replace("(",Oa))==null?void 0:o.split(Oa))==null?void 0:s[0];return y=y==null?void 0:y.slice(0,(y==null?void 0:y.length)-1),y=(c=$a.analyzeSplitToContent(y,","))==null?void 0:c.map(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)),p+v)),y=y==null?void 0:y.join(","),l!=null&&l.includes("@Quote")&&(y!=null&&y.includes("@QuoteType")||(y=y===""?y+"@QuoteType=Manual":y+",@QuoteType=Manual"),y!=null&&y.includes("@QuoteSonSync")||(y=y===""?y+"@QuoteSonSync=No":y+",@QuoteSonSync=No"),y!=null&&y.includes("@QuoteFatherSync")||(y=y===""?y+"@QuoteFatherSync=Yes":y+",@QuoteFatherSync=Yes")),y}},rs=l=>{let n=l==null?void 0:l.map(r=>{var o,s;return{menus:r==null?void 0:r.menus,content:((o=r==null?void 0:r.menus)==null?void 0:o.join("/"))+Oa+((s=r==null?void 0:r.groups)==null?void 0:s.join("/"))}});return n=n==null?void 0:n.filter(r=>{var o;return(r==null?void 0:r.menus)&&((o=r==null?void 0:r.menus)==null?void 0:o.length)>0}),n=n==null?void 0:n.map(r=>r==null?void 0:r.content),n=[...new Set(n)],n=n==null?void 0:n.map(r=>{var o,s;return{menus:(o=r==null?void 0:r.split(Oa))==null?void 0:o[0],groups:((s=r==null?void 0:r.split(Oa))==null?void 0:s[1])??[]}}),n},$d=(l,n,r="")=>{var A,ee,C,_,E,k,g,O,F,q,te,Te,Ee,Q,be,Z,de,je,wa,ie,P,j,ye,Se,ke,Ze,ya,Ha,re,la,Ve,ba,Fe,Ie,$e,Qe,Xa,Wa,V,$,X,se,ue,va,ra,Le,Ce,Sa,da,Fa,ja,me,Je,ze,Xe,pa,ua,Ae,za,fa,Ua,ga,He,We,Ne,De;let o=[];if(((A=l==null?void 0:l[0])==null?void 0:A[0])!=="*"&&((ee=l==null?void 0:l[0])==null?void 0:ee[0])!=="$")return;let s=$a.analyzeSplitToContent(l==null?void 0:l[0],":"),c=s==null?void 0:s.filter(fe=>!((fe==null?void 0:fe[0])!=="{"&&(fe==null?void 0:fe[0])!=="["));o=(C=s==null?void 0:s.filter(fe=>(fe==null?void 0:fe[0])!=="{"&&(fe==null?void 0:fe[0])!=="["))==null?void 0:C.join("");let y="",p="";if((o==null?void 0:o[(o==null?void 0:o.length)-1])===":"&&(o=o==null?void 0:o.slice(0,(o==null?void 0:o.length)-1)),o!=null&&o.includes("(@")&&(o==null?void 0:o[0])==="*"&&(y="(@"+((_=o==null?void 0:o.split("(@"))==null?void 0:_[1]),o=(E=o==null?void 0:o.split("(@"))==null?void 0:E[0]),o!=null&&o.includes("@")&&(o==null?void 0:o[0])==="*"&&(y="@"+((g=(k=o==null?void 0:o.replace("@",Oa))==null?void 0:k.split(Oa))==null?void 0:g[1]),o=(F=(O=o==null?void 0:o.replace("@",Oa))==null?void 0:O.split(Oa))==null?void 0:F[0]),(o==null?void 0:o[0])==="*"?(o=o==null?void 0:o.slice(1,o==null?void 0:o.length),o=o==null?void 0:o.split(":")):(p=Y.cloneDeep(o)+":",o=[]),p=p+((c==null?void 0:c[0])??""),(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)),y!==""&&p!=="")if((p==null?void 0:p[(p==null?void 0:p.length)-1])===")")if(p!=null&&p.includes("(@")){let fe=(q=p==null?void 0:p.split("(@"))==null?void 0:q[0],oe=(te=p==null?void 0:p.split("(@"))==null?void 0:te[1];oe="(@"+(oe==null?void 0:oe.slice(0,(oe==null?void 0:oe.length)-1))+y,p=fe+oe}else{let fe=(Ee=(Te=p==null?void 0:p.replace("@",Oa))==null?void 0:Te.split(Oa))==null?void 0:Ee[0],oe=(be=(Q=p==null?void 0:p.replace("@",Oa))==null?void 0:Q.split(Oa))==null?void 0:be[1];oe="(@"+oe+y,p=fe+oe}else p=p+y;let v=c==null?void 0:c[1];(p==null?void 0:p[0])==="["&&(v=Y.cloneDeep(p)+(v??""),p="");let m=v?No(v):[];!(m!=null&&m.every(fe=>Array.isArray(fe)))&&(m==null?void 0:m.length)>0&&(m=[m]);let u=(Z=$a.analyzeSplitToContent(p,"@"))!=null&&Z[1]?"@"+((de=$a.analyzeSplitToContent(p,"@"))==null?void 0:de[1]):"";if(p=(je=$a.analyzeSplitToContent(p,"@"))==null?void 0:je[0],p!=null&&p.includes("(@")&&(((wa=$a.analyzeSplitToContent(p,"}"))==null?void 0:wa.length)===1&&((ye=(ie=$a.analyzeSplitToContent(p,"}"))==null?void 0:ie[0])==null?void 0:ye[((j=(P=$a.analyzeSplitToContent(p,"}"))==null?void 0:P[0])==null?void 0:j.length)-1])===")"||(Se=$a.analyzeSplitToContent(p,"}"))!=null&&Se[1]&&((ke=$a.analyzeSplitToContent(p,"}"))==null?void 0:ke[1])!=="@")&&(u="(@"+((Ze=p==null?void 0:p.split("(@"))==null?void 0:Ze[1]),p=(ya=p==null?void 0:p.split("(@"))==null?void 0:ya[0]),(p==null?void 0:p[0])==="$"&&(u=Y.cloneDeep(p)+(u??""),p=""),r!=="")if(y!==""){let fe=(Ha=$a.analyzeSplitToContent(r,":"))==null?void 0:Ha.map(oe=>{var ia,Pa;return(oe==null?void 0:oe[0])==="{"&&(oe=(Pa=(ia=oe==null?void 0:oe.replace("}",Oa))==null?void 0:ia.split(Oa))==null?void 0:Pa[1]),oe});r=(re=fe==null?void 0:fe.join(""))==null?void 0:re.replace(":(","("),u=(r==null?void 0:r[(r==null?void 0:r.length)-1])!==")"?r+y:(r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1))+","+y}else{let fe="";if(r!=null&&r.includes("(@")){let oe=(Ie=(Fe=(ba=(Ve=(la=r==null?void 0:r.replace("(@",Oa))==null?void 0:la.split(Oa))==null?void 0:Ve[0])==null?void 0:ba.replace("{",Oa))==null?void 0:Fe.split(Oa))==null?void 0:Ie[0];fe=((oe==null?void 0:oe[(oe==null?void 0:oe.length)-1])===":"?oe==null?void 0:oe.slice(0,(oe==null?void 0:oe.length)-1):oe)+"(@"+((Qe=($e=r==null?void 0:r.replace("(@",Oa))==null?void 0:$e.split(Oa))==null?void 0:Qe[1])}else if(r!=null&&r.includes("@")){let oe=(Wa=(Xa=r==null?void 0:r.replace("@",Oa))==null?void 0:Xa.split(Oa))==null?void 0:Wa[0];(oe==null?void 0:oe[0])==="$"?oe=(V=oe==null?void 0:oe.replaceAll("{",""))==null?void 0:V.replaceAll("}",""):oe=(X=($=oe==null?void 0:oe.replace("{",Oa))==null?void 0:$.split(Oa))==null?void 0:X[0],fe=((oe==null?void 0:oe[(oe==null?void 0:oe.length)-1])===":"?oe==null?void 0:oe.slice(0,(oe==null?void 0:oe.length)-1):oe)+"@"+((ue=(se=r==null?void 0:r.replace("@",Oa))==null?void 0:se.split(Oa))==null?void 0:ue[1])}u=fe===""?r:fe}if(u!==""){(u==null?void 0:u[0])==="$"&&(u=u==null?void 0:u.slice(1,u==null?void 0:u.length)),(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));let fe="";if(u!=null&&u.includes("(@")){fe=(ra=(va=u==null?void 0:u.replace("(@",Oa))==null?void 0:va.split(Oa))==null?void 0:ra[0];let oe=(Ce=(Le=u==null?void 0:u.replace("(@",Oa))==null?void 0:Le.split(Oa))==null?void 0:Ce[1];oe="@"+(oe==null?void 0:oe.slice(0,(oe==null?void 0:oe.length)-1));let ia=(Sa=$a.analyzeSplitToContent(oe,","))==null?void 0:Sa.map(Pa=>((Pa==null?void 0:Pa[(Pa==null?void 0:Pa.length)-1])===","&&(Pa=Pa==null?void 0:Pa.slice(0,(Pa==null?void 0:Pa.length)-1)),(Pa==null?void 0:Pa[(Pa==null?void 0:Pa.length)-1])!==")"&&(Pa=Pa+")"),Di(Pa)));u=fe+"("+(ia==null?void 0:ia.join(","))+")"}else{fe=(Fa=(da=u==null?void 0:u.replace("@",Oa))==null?void 0:da.split(Oa))==null?void 0:Fa[0];let oe=(me=(ja=u==null?void 0:u.replace("@",Oa))==null?void 0:ja.split(Oa))==null?void 0:me[1];if(oe){oe="@"+oe;let ia=(Je=$a.analyzeSplitToContent(oe,","))==null?void 0:Je.map(Pa=>((Pa==null?void 0:Pa[(Pa==null?void 0:Pa.length)-1])!==")"&&(Pa=Pa+")"),Di(Pa)));u=fe+"("+(ia==null?void 0:ia.join(","))+")"}else u=fe}}(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));let w=Rd(p,n),D=p===""?[]:(w==null?void 0:w.columns)??[],L=oa.getColumnChild(D),S=L;S=S==null?void 0:S.filter(fe=>{var oe,ia;return(fe==null?void 0:fe.filter)&&(fe==null?void 0:fe.filter)!==""&&(((oe=fe==null?void 0:fe.filter)==null?void 0:oe.includes("@QuoteSonSync"))||((ia=fe==null?void 0:fe.filter)==null?void 0:ia.includes("@QuoteFatherSync")))});let W=S==null?void 0:S.filter(fe=>{var oe,ia,Pa;return((oe=fe==null?void 0:fe.filter)==null?void 0:oe.includes("@QuoteSonSync"))&&((Pa=(ia=fe==null?void 0:fe.filter)==null?void 0:ia.split(","))==null?void 0:Pa.find(hl=>(hl==null?void 0:hl.includes("@QuoteSonSync"))&&(hl==null?void 0:hl.includes("Yes"))))}),I=S==null?void 0:S.filter(fe=>{var oe,ia,Pa;return((oe=fe==null?void 0:fe.filter)==null?void 0:oe.includes("@QuoteFatherSync"))&&((Pa=(ia=fe==null?void 0:fe.filter)==null?void 0:ia.split(","))==null?void 0:Pa.find(hl=>(hl==null?void 0:hl.includes("@QuoteFatherSync"))&&(hl==null?void 0:hl.includes("Yes"))))});if(L=L==null?void 0:L.map(fe=>{var oe,ia;return{menus:fe==null?void 0:fe.menus,content:((oe=fe==null?void 0:fe.menus)==null?void 0:oe.join("/"))+Oa+((ia=fe==null?void 0:fe.groups)==null?void 0:ia.join("/"))}}),I=rs(I),W=rs(W),L=L==null?void 0:L.filter(fe=>{var oe;return(fe==null?void 0:fe.menus)&&((oe=fe==null?void 0:fe.menus)==null?void 0:oe.length)>0}),L=L==null?void 0:L.map(fe=>fe==null?void 0:fe.content),L=[...new Set(L)],L=L==null?void 0:L.map(fe=>{var oe,ia;return{menus:(oe=fe==null?void 0:fe.split(Oa))==null?void 0:oe[0],groups:((ia=fe==null?void 0:fe.split(Oa))==null?void 0:ia[1])??[]}}),D!=null&&D.some(fe=>{var oe;return Array.isArray(fe==null?void 0:fe.children)&&((oe=fe==null?void 0:fe.children)==null?void 0:oe.length)>0})&&(D=[D]),(m==null?void 0:m.length)>0&&(Array.isArray(m==null?void 0:m[0])&&((ze=m==null?void 0:m[0])!=null&&ze.every(fe=>Array.isArray(fe)))?m=m==null?void 0:m.map((fe,oe)=>(fe=fe.map((ia,Pa)=>(ia.unshift("{}"),ia.unshift((Pa+1).toString()),ia)),fe)):m=m==null?void 0:m.map((fe,oe)=>(fe.unshift("{}"),fe.unshift((oe+1).toString()),fe))),w!=null&&w.secondColumns&&((Xe=w==null?void 0:w.secondColumns)==null?void 0:Xe.length)>0&&((m==null?void 0:m.length)>0?m=m==null?void 0:m.map((fe,oe)=>{var ia,Pa;return Array.isArray(fe==null?void 0:fe[0])?fe=fe==null?void 0:fe.map((hl,Ma)=>{var Ul,Ea;return hl.unshift((Ea=(Ul=w==null?void 0:w.secondColumns)==null?void 0:Ul[Ma])==null?void 0:Ea.prop),hl}):fe.unshift((Pa=(ia=w==null?void 0:w.secondColumns)==null?void 0:ia[oe])==null?void 0:Pa.prop),fe}):m=(pa=w==null?void 0:w.secondColumns)==null?void 0:pa.map((fe,oe)=>(fe=[fe==null?void 0:fe.label],fe.push(oe),fe)),D.unshift({label:"",prop:"disabled",sortable:!1})),(D==null?void 0:D.length)>0){let fe=Y.cloneDeep(D);Array.isArray(fe==null?void 0:fe[0])&&(fe=fe==null?void 0:fe[0]);let oe=oa.getColumnChild(fe);oe=oe==null?void 0:oe.map(ia=>ia==null?void 0:ia.filter),oe=oe==null?void 0:oe.filter(ia=>ia&&ia!==""),oe=[...new Set(oe)],(oe==null?void 0:oe.length)>0&&(u=Oa+(u==null?void 0:u.slice(1,(u==null?void 0:u.length)-1))+(u!=null&&u.slice(1,(u==null?void 0:u.length)-1)?",":"")+((ua=Y.cloneDeep(oe))==null?void 0:ua.join(";")))}if((u==null?void 0:u[0])!=="("&&(u!=null&&u.includes("(@"))){let fe=(za=(Ae=u==null?void 0:u.replace("(",Oa))==null?void 0:Ae.split(Oa))==null?void 0:za[0],oe=[{menus:(Ua=(fa=fe==null?void 0:fe.split("*"))==null?void 0:fa[0])==null?void 0:Ua.replaceAll(":","/"),groups:(ga=fe==null?void 0:fe.split("*"))==null?void 0:ga[1]}],ia=(We=(He=u==null?void 0:u.replace("(",Oa))==null?void 0:He.split(Oa))==null?void 0:We[1];(ia==null?void 0:ia[(ia==null?void 0:ia.length)-1])===")"&&(ia=ia==null?void 0:ia.slice(0,(ia==null?void 0:ia.length)-1)),ia=$a.analyzeSplitToContent(ia,","),(Ne=ia==null?void 0:ia.find(Pa=>Pa==null?void 0:Pa.includes("@QuoteFatherSync")))!=null&&Ne.includes("Yes")&&(I=[...I,...oe]),(De=ia==null?void 0:ia.find(Pa=>Pa==null?void 0:Pa.includes("@QuoteSonSync")))!=null&&De.includes("Yes")&&(W=[...W,...oe])}return{groupName:o,tableColumns:D,tableFilter:u,tableContents:m,columns:(w==null?void 0:w.secondColumns)??[],relatedQuotes:L,fatherSyncContents:I,sonSyncContents:W}},Js=(l,n)=>(l=l==null?void 0:l.map((r,o)=>{var s,c,y,p;if(Array.isArray(r))r=r==null?void 0:r.map(v=>{var m,u,w,D;return v!=null&&v.isMainPath||(((m=v==null?void 0:v.children)==null?void 0:m.length)>0?v.children=Js(v.children,n):((u=v==null?void 0:v.menus)==null?void 0:u.length)>0&&!((w=r==null?void 0:r[0])!=null&&w.isMainPath)&&(v.menus=(D=v.menus)==null?void 0:D.map((L,S)=>{var W,I;return((W=v.menus)==null?void 0:W.length)-1===S&&L===""&&(n==null?void 0:n.parentContent)+"/"!==((I=v.menus)==null?void 0:I.join("/"))&&(L=n==null?void 0:n.value),v}),v.bindMenus=v.menus)),v});else{if(o===0&&((s=r.menus)==null?void 0:s.length)>0&&(r.mainKey=!0),r!=null&&r.isMainPath)return r;((c=r.menus)==null?void 0:c.length)>0&&!((y=l==null?void 0:l[0])!=null&&y.isMainPath)&&(r.menus=(p=r.menus)==null?void 0:p.map((v,m)=>{var u,w;return((u=r.menus)==null?void 0:u.length)-1===m&&v===""&&(n==null?void 0:n.parentContent)+"/"!==((w=r.menus)==null?void 0:w.join("/"))&&(v=n==null?void 0:n.value),v}),r.bindMenus=r.menus)}return r}),l),Vd=(l,n)=>(l=l==null?void 0:l.map(r=>((r==null?void 0:r.key)==="header"&&(r.contents=Js(r.contents,n)),r)),l),ht=(l,n)=>{let r=l;return Array.isArray(r==null?void 0:r[0])?r=r==null?void 0:r.map(o=>(o=ht(o,n),o)):r=r==null?void 0:r.map(o=>{var s,c;return o!=null&&o.children&&((s=o==null?void 0:o.children)==null?void 0:s.length)>0?o.children=ht(o==null?void 0:o.children,n):o!=null&&o.words&&((c=o==null?void 0:o.words)==null?void 0:c.length)>0&&(n!=null&&n.find(y=>{var p,v,m,u;return((u=(p=o==null?void 0:o.prop)==null?void 0:p.split("."))==null?void 0:u[((m=(v=o==null?void 0:o.prop)==null?void 0:v.split("."))==null?void 0:m.length)-1])===y}))&&(o.mainKey=!0),o}),r};let dr="$R";const Pd=Y.useUnit(ol.pinia),{selectTitle:hn}=ol.storeToRefs(Pd),vn=[{key:"@InterfaceMaxRow",value:"onNumSlice",order:1},{key:"@QuoteType",value:"onRandomContents",order:2},{key:"@InterfaceType",value:"onInterfaceTypeContents",order:2},{key:"@Filter",value:"onConditionContents",order:4},{key:"@QuoteFatherSync",value:"onFatherPaceContents",order:1},{key:"@QuoteSonSync",value:"onPaceContents",order:1},{key:"@QuoteMainPam",value:"onMainTagContents",order:3},{key:"@InterfaceTopButton",value:"onButtonContents",order:1},{key:"@InterfaceColumnButton",value:"onPamButtonContents",order:1},{key:"@InterfaceRowButton",value:"onRowButtonContents",order:1},{key:"@InterfaceBottomButton",value:"onBottomButtonContents",order:1},{key:"@Related",value:"onRelated",order:1},{key:"@InterfaceRowNum",value:"onRowNum",order:1},{key:"@InterfaceFixRow",value:"onFixRow",order:1},{key:"@InterfaceReqItem",value:"onReqItem",order:1},{key:"@Condition",value:"onConditionContent",order:1},{key:"@InterfaceTab",value:"onTabs",order:1},{key:"@InterfaceSinChoice",value:"onSinChoice",order:1},{key:"@InterfaceTextSize",value:"onTextSize",order:1},{key:"@InterfaceTextRGBA",value:"onTextRGBA",order:1},{key:"@InterfacePosition",value:"onPosition",order:4},{key:"@InterfaceSize",value:"onSize",order:4},{key:"@InterfaceShowType",value:"onShowType",order:1},{key:"@InterfaceStepName",value:"onStepName",order:1},{key:"@InterfaceStep",value:"onStep",order:1},{key:"@InterfaceBackGround",value:"onBackGround",order:1}];var oo=(l=>(l[l.ORDINARY=1]="ORDINARY",l[l.BLOCK=2]="BLOCK",l[l.TEXT=3]="TEXT",l))(oo||{});const Fd=l=>{if((l==null?void 0:l.filter)!==void 0&&(l==null?void 0:l.filter)!==null&&(l==null?void 0:l.filter)!==""){let n=l==null?void 0:l.contents;return n.push({key:"backGround",contents:l==null?void 0:l.filter}),n}return l==null?void 0:l.contents},jd=l=>{const n=Zs(l==null?void 0:l.filter);return n?Qs(l==null?void 0:l.contents,{position:n}):l==null?void 0:l.contents},Hd=l=>{const n=Zs(l==null?void 0:l.filter);return n?Qs(l==null?void 0:l.contents,{size:n}):l==null?void 0:l.contents},Ud=l=>{if((l==null?void 0:l.filter)!==void 0&&(l==null?void 0:l.filter)!==null&&(l==null?void 0:l.filter)!==""){let n=l==null?void 0:l.contents;const r=Number(l==null?void 0:l.filter);return n.push({key:"textSize",contents:Number.isNaN(r)?l==null?void 0:l.filter:r}),n}return l==null?void 0:l.contents},qd=l=>{if((l==null?void 0:l.filter)!==void 0&&(l==null?void 0:l.filter)!==null&&(l==null?void 0:l.filter)!==""){let n=l==null?void 0:l.contents;return n.push({key:"textRGBA",contents:l==null?void 0:l.filter}),n}return l==null?void 0:l.contents},Wd=l=>{var r;return(l==null?void 0:l.filter.toUpperCase())==="ALL"||(l==null?void 0:l.filter.toUpperCase())==="NONE"?l==null?void 0:l.contents:(r=l==null?void 0:l.contents)==null?void 0:r.map(o=>{var s;return(o==null?void 0:o.key)==="tableContents"&&(o.contents=(s=o.contents)==null?void 0:s.slice(0,parseInt(l==null?void 0:l.filter))),o})},Kd=async l=>{var n,r,o,s,c,y,p,v,m,u,w,D,L,S,W,I,A,ee,C,_,E,k,g,O,F,q,te,Te,Ee,Q;if((l==null?void 0:l.filter)==="Random")return(n=l==null?void 0:l.contents)==null?void 0:n.map(Z=>((Z==null?void 0:Z.key)==="tableContents"&&(Z.contents=$a.shuffle(Z.contents)),Z));if((l==null?void 0:l.filter)==="Auto"){let be=(o=(r=l==null?void 0:l.contents)==null?void 0:r.find(Se=>(Se==null?void 0:Se.key)==="header"))==null?void 0:o.contents;Array.isArray(be==null?void 0:be[0])&&(be=be==null?void 0:be[0]),be=oa.getColumnChild(be);let Z=be==null?void 0:be.filter(Se=>(Se==null?void 0:Se.filter)&&(Se==null?void 0:Se.filter)!==""),de=new Map,je=[];Z==null||Z.forEach(Se=>{var ke,Ze;de.get((ke=Se==null?void 0:Se.menus)==null?void 0:ke.join("/"))||(de.set((Ze=Se==null?void 0:Se.menus)==null?void 0:Ze.join("/"),Se),je.push(Se))});let wa=(c=(s=hn==null?void 0:hn.value)==null?void 0:s.find(Se=>(Se==null?void 0:Se.condition)==="child"))==null?void 0:c.value,ie=je==null?void 0:je.map(Se=>{var ke,Ze,ya;return Se=(ke=Se==null?void 0:Se.menus)==null?void 0:ke.join("/"),(Se==null?void 0:Se[(Se==null?void 0:Se.length)-1])==="/"&&((ya=(Ze=hn==null?void 0:hn.value)==null?void 0:Ze.find(Ha=>(Ha==null?void 0:Ha.condition)==="child"))==null?void 0:ya.parentContent)+"/"!==Se?Se=Se+wa:(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}),P=je==null?void 0:je.map(Se=>Se==null?void 0:Se.groups),j=ie==null?void 0:ie.map(async Se=>{let ke=await Kr(Se,!1);return{path:Se,contents:ke}});j=await Promise.all(j);let ye=j==null?void 0:j.map((Se,ke)=>{var ya,Ha,re,la,Ve,ba,Fe;let Ze=(ya=Se==null?void 0:Se.contents)==null?void 0:ya.filter(Ie=>{var $e,Qe;return(Ie==null?void 0:Ie.name)===((Qe=P==null?void 0:P[ke])==null?void 0:Qe[(($e=P==null?void 0:P[ke])==null?void 0:$e.length)-1])});return Ze=(la=(re=(Ha=Ze==null?void 0:Ze[0])==null?void 0:Ha.compData)==null?void 0:re.find(Ie=>(Ie==null?void 0:Ie.key)==="tableContents"))==null?void 0:la.contents,(Se==null?void 0:Se.path)===((ba=(Ve=hn==null?void 0:hn.value)==null?void 0:Ve.find(Ie=>(Ie==null?void 0:Ie.condition)==="child"))==null?void 0:ba.parentContent)&&(Ze=((Fe=Ze==null?void 0:Ze.map(Ie=>{for(let $e in Ie)if(Ie[$e]===wa)return Ie}))==null?void 0:Fe.filter(Ie=>Ie))??[]),Ze??[]});if(ye=ye==null?void 0:ye.map(Se=>(Se=Se==null?void 0:Se.map(ke=>{var ya;let Ze={};for(let Ha in ke)if(Z!=null&&Z.find(re=>{var la,Ve;return((Ve=(la=re==null?void 0:re.words)==null?void 0:la[0])==null?void 0:Ve.replaceAll("'",""))===Ha})){let re=(ya=Z==null?void 0:Z.find(la=>{var Ve,ba;return((ba=(Ve=la==null?void 0:la.words)==null?void 0:Ve[0])==null?void 0:ba.replaceAll("'",""))===Ha}))==null?void 0:ya.prop;Ze[re]=ke==null?void 0:ke[Ha]}return Ze}),Se)),ye=$a.cartesianProduct(ye),Array.isArray(ye==null?void 0:ye[0])&&(ye=ye==null?void 0:ye[0]),(ye==null?void 0:ye.length)>0&&((w=(p=(y=Z==null?void 0:Z[0])==null?void 0:y.menus)==null?void 0:p.join("/"))==null?void 0:w[((u=(m=(v=Z==null?void 0:Z[0])==null?void 0:v.menus)==null?void 0:m.join("/"))==null?void 0:u.length)-1])==="/")return(D=l==null?void 0:l.contents)==null?void 0:D.map(ke=>{var Ze;return(ke==null?void 0:ke.key)==="tableContents"&&(ye==null?void 0:ye.length)>0&&(ke.contents=((Ze=ke.contents)==null?void 0:Ze.length)>0?ke.contents:ye),ke})}if((l==null?void 0:l.filter)==="Manual"){let be=[],Z=[],de=(S=(L=l==null?void 0:l.contents)==null?void 0:L.find(P=>(P==null?void 0:P.key)==="filter"))==null?void 0:S.contents;(de==null?void 0:de[(de==null?void 0:de.length)-1])===")"?de=(I=(W=de==null?void 0:de.replace("(",dr))==null?void 0:W.split(dr))==null?void 0:I[0]:de="",de!==""&&(be=((ee=(A=de==null?void 0:de.split("*"))==null?void 0:A[0])==null?void 0:ee.split(":"))??[],Z=((g=(k=(E=(_=(C=de==null?void 0:de.split("*"))==null?void 0:C[1])==null?void 0:_.replace("{",dr))==null?void 0:E.split(dr))==null?void 0:k[0])==null?void 0:g.split(":"))??[]);let je=(F=(O=l==null?void 0:l.contents)==null?void 0:O.find(P=>(P==null?void 0:P.key)==="filter"))==null?void 0:F.contents;je=(te=(q=je==null?void 0:je.replace("(",dr))==null?void 0:q.split(dr))==null?void 0:te[1],je=je==null?void 0:je.slice(0,(je==null?void 0:je.length)-1);let wa=(Te=l==null?void 0:l.contents)==null?void 0:Te.map(P=>{var j,ye,Se,ke,Ze,ya,Ha,re,la;return(P==null?void 0:P.key)==="header"&&((j=P==null?void 0:P.contents)!=null&&j.every(Ve=>(Ve==null?void 0:Ve.mainKey)!==!0)&&Array.isArray(P==null?void 0:P.contents)&&!Array.isArray((ye=P==null?void 0:P.contents)==null?void 0:ye[0])?P.contents=(Se=P==null?void 0:P.contents)==null?void 0:Se.map((Ve,ba)=>{var Fe,Ie,$e;return Ve!=null&&Ve.isMainPath||(ba===0?(Ve.mainKey=!0,Ve.formType="Select",Ve.bindMenus=be,Ve.groups=((Fe=Ve.groups)==null?void 0:Fe.length)===0?Z:Ve.groups,Ve.words=((Ie=Ve.words)==null?void 0:Ie.length)===0?[Ve==null?void 0:Ve.prop]:Ve.words,Ve.filter=je,(!(Ve!=null&&Ve.menus)||(($e=Ve==null?void 0:Ve.menus)==null?void 0:$e.length)===0)&&(Ve.menus=be)):(Ve.mainKey=!1,Ve.bindMenus=be)),Ve}):Array.isArray((ke=P==null?void 0:P.contents)==null?void 0:ke[0])&&((Ha=(ya=(Ze=P==null?void 0:P.contents)==null?void 0:Ze[0])==null?void 0:ya.filter(()=>(be==null?void 0:be.length)>0))==null?void 0:Ha.length)>0&&(P.contents[0]=(la=(re=P==null?void 0:P.contents)==null?void 0:re[0])==null?void 0:la.map((Ve,ba)=>{var Fe,Ie,$e;return Ve!=null&&Ve.isMainPath||(ba===0?(Ve.mainKey=!0,Ve.formType="Select",Ve.bindMenus=be,Ve.groups=((Fe=Ve.groups)==null?void 0:Fe.length)===0?Z:Ve.groups,Ve.words=((Ie=Ve.words)==null?void 0:Ie.length)===0?[Ve==null?void 0:Ve.prop]:Ve.words,Ve.filter=je,(!(Ve!=null&&Ve.menus)||Array.isArray(Ve==null?void 0:Ve.menus)&&(($e=Ve==null?void 0:Ve.menus)==null?void 0:$e.length)===0)&&(be==null?void 0:be.length)>0&&(Ve.menus=be)):(Ve.mainKey=!1,Ve.bindMenus=be)),Ve}))),P}),ie=(Ee=wa==null?void 0:wa.find(P=>(P==null?void 0:P.key)==="header"))==null?void 0:Ee.contents;if(Array.isArray(ie==null?void 0:ie[0])&&(ie=ie==null?void 0:ie[0]),ie=oa.getColumnChild(ie),ie!=null&&ie.some(P=>{var j,ye;return((ye=P==null?void 0:P.menus)==null?void 0:ye[((j=P==null?void 0:P.menus)==null?void 0:j.length)-1])===""})){let P=(Q=hn==null?void 0:hn.value)==null?void 0:Q.find(j=>(j==null?void 0:j.condition)==="child");wa=Vd(wa,P)}return wa}return l==null?void 0:l.contents},Gd=async l=>{if((l==null?void 0:l.filter)==="Form"){let n=l==null?void 0:l.contents;return n.push({key:"enableWrap",contents:1}),n}if((l==null?void 0:l.filter)==="FormBlock"){let n=l==null?void 0:l.contents;return n.push({key:"enableWrap",contents:2}),n}if((l==null?void 0:l.filter)==="FormText"){let n=l==null?void 0:l.contents;return n.push({key:"enableWrap",contents:3}),n}return l==null?void 0:l.contents},Yd=l=>{var o,s,c,y;let n=l==null?void 0:l.filter;if(n!=null&&n.includes("*")&&(n="({"+((s=(o=n==null?void 0:n.replace("{",dr))==null?void 0:o.split(dr))==null?void 0:s[1])),n=(c=n==null?void 0:n.replaceAll("{",""))==null?void 0:c.replaceAll("}",""),(n==null?void 0:n[0])!=="("&&(n="("+n+")"),n.slice(1,(n==null?void 0:n.length)-1)==="undefined")return l==null?void 0:l.contents;let r=oa.calculatorAndToOr(n);if((r==null?void 0:r.length)>0){let p=[];return r==null||r.forEach(m=>{let u={};for(let w in m){let D=w;D!=null&&D.includes("[")||(u[D]=m[w])}p.push(u)}),(y=l==null?void 0:l.contents)==null?void 0:y.map(m=>{var w,D,L;let u=(D=(w=l==null?void 0:l.contents)==null?void 0:w.find(S=>(S==null?void 0:S.key)==="header"))==null?void 0:D.contents;if(u=(L=oa.getEqualChild(u))==null?void 0:L.filter(S=>(S==null?void 0:S.label)!=="操作"),(m==null?void 0:m.key)==="tableContents"){let W=oa.tableToForm(m==null?void 0:m.contents,u);p==null||p.forEach(I=>{var A,ee;for(let C in I)!((A=W==null?void 0:W[0])!=null&&A.find(_=>{var E;return(_==null?void 0:_.key)===C||((E=_==null?void 0:_.key)==null?void 0:E.includes(C))}))&&!(W!=null&&W.find(_=>{var E;return(_==null?void 0:_.key)===C||((E=_==null?void 0:_.key)==null?void 0:E.includes(C))}))||(((ee=I[C])==null?void 0:ee[0])!=="!"?W=W==null?void 0:W.filter(_=>{var E,k;return((E=_==null?void 0:_.find(g=>{var O;return(g==null?void 0:g.key)===C||((O=g==null?void 0:g.key)==null?void 0:O.includes(C))}))==null?void 0:E.value)===I[C]||Array.isArray(I==null?void 0:I[C])&&((k=I==null?void 0:I[C])==null?void 0:k.find(g=>{var O;return((O=_==null?void 0:_.find(F=>{var q;return(F==null?void 0:F.key)===C||((q=F==null?void 0:F.key)==null?void 0:q.includes(C))}))==null?void 0:O.value)===g}))}):W=W==null?void 0:W.filter(_=>{var E;return((E=_==null?void 0:_.find(k=>{var g;return(k==null?void 0:k.key)===C||((g=k==null?void 0:k.key)==null?void 0:g.includes(C))}))==null?void 0:E.value)!==I[C]}))}),(W==null?void 0:W.length)===0?m.contents=[]:m.contents=W==null?void 0:W.map(I=>{let A={};return I==null||I.forEach(ee=>{A[ee==null?void 0:ee.key]=ee==null?void 0:ee.value}),A})}return m})}return l==null?void 0:l.contents},Jd=l=>l==null?void 0:l.contents,Xd=l=>l==null?void 0:l.contents,Zd=l=>{var n,r,o,s;if((l==null?void 0:l.filter)!==""&&(l!=null&&l.filter)){let c=(o=(r=l==null?void 0:l.filter)==null?void 0:r.slice(1,((n=l==null?void 0:l.filter)==null?void 0:n.length)-1))==null?void 0:o.split(",");return(s=l==null?void 0:l.contents)==null?void 0:s.map(p=>((p==null?void 0:p.key)==="header"&&(p.contents=ht(p.contents,c)),p))}return l==null?void 0:l.contents},Qd=l=>{var r;let n=(l==null?void 0:l.filter)??"";return(n==null?void 0:n[0])==="{"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n!==""?(r=l==null?void 0:l.contents)==null?void 0:r.map(s=>{var c;return(s==null?void 0:s.key)==="extraButton"&&(s.contents=(c=n==null?void 0:n.split(","))==null?void 0:c.map(y=>({label:y,prop:y}))),s}):l==null?void 0:l.contents},ep=l=>l==null?void 0:l.contents,ap=l=>{var r;let n=(l==null?void 0:l.filter)??"";return(n==null?void 0:n[0])==="{"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n!==""?(r=l==null?void 0:l.contents)==null?void 0:r.map(s=>{var c;return(s==null?void 0:s.key)==="rowButton"&&(s.contents=(c=n==null?void 0:n.split(","))==null?void 0:c.map(y=>({label:y,prop:y}))),s}):l==null?void 0:l.contents},lp=l=>{var r;let n=(l==null?void 0:l.filter)??"";if((n==null?void 0:n[0])==="{"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n!==""){let o=l==null?void 0:l.contents,s=(r=n==null?void 0:n.split(","))==null?void 0:r.map(c=>({label:c,prop:c}));return o.push({key:"bottomButton",contents:s}),o}return l==null?void 0:l.contents},rp=l=>{var n,r,o,s;if(((n=l==null?void 0:l.filter)==null?void 0:n[0])!=="["){const c=parseInt(l==null?void 0:l.filter);return!c||Number.isNaN(c)?l==null?void 0:l.contents:(r=l==null?void 0:l.contents)==null?void 0:r.map(p=>{var v;return(p==null?void 0:p.key)==="formContent"&&(p.contents=(v=p.contents)==null?void 0:v.map(m=>(m.width=c,m))),p})}if(((o=l==null?void 0:l.filter)==null?void 0:o[0])==="["){let c=No(l==null?void 0:l.filter),y=Array.isArray(c)?c.map(v=>parseInt(v)).filter(v=>!!v&&!Number.isNaN(v)):[];return y.length?(s=l==null?void 0:l.contents)==null?void 0:s.map(v=>{if((v==null?void 0:v.key)==="formContent"){const m=v.contents??[];v.contents=m.map((u,w)=>{const D=w+1;let L=0,S=0;for(let I=0;I<y.length;I++){if(S+=y[I],D<=S){L=I;break}I===y.length-1&&(L=y.length-1)}const W=y[L]||y[y.length-1]||1;return u.width=W,u})}return v}):l==null?void 0:l.contents}return l==null?void 0:l.contents},np=l=>{var n;if((l==null?void 0:l.filter)!==""){let r=l==null?void 0:l.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(","),(n=l==null?void 0:l.contents)==null?void 0:n.map(s=>{var c,y,p;return(s==null?void 0:s.key)==="header"&&(Array.isArray((c=s==null?void 0:s.contents)==null?void 0:c[0])?s.contents[0]=(p=s.contents[0])==null?void 0:p.map(v=>(r!=null&&r.find(m=>m===(v==null?void 0:v.prop))&&(v.fixed="left"),v)):s.contents=(y=s.contents)==null?void 0:y.map(v=>(r!=null&&r.find(m=>m===(v==null?void 0:v.prop))&&(v.fixed="left"),v))),s})}return l==null?void 0:l.contents},op=l=>{var n;if((l==null?void 0:l.filter)!==""){let r=l==null?void 0:l.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 o=c=>(r!=null&&r.find(y=>y===(c==null?void 0:c.prop))&&(c.required=!0),c!=null&&c.children&&Array.isArray(c.children)&&(c.children=c.children.map(y=>o(y))),c);return(n=l==null?void 0:l.contents)==null?void 0:n.map(c=>{var y,p,v;return(c==null?void 0:c.key)==="header"&&(Array.isArray((y=c==null?void 0:c.contents)==null?void 0:y[0])?c.contents[0]=(v=c.contents[0])==null?void 0:v.map(m=>o(m)):c.contents=(p=c.contents)==null?void 0:p.map(m=>o(m))),c})}return l==null?void 0:l.contents},ip=async l=>{var o,s,c,y,p,v,m,u,w,D,L,S,W,I,A,ee,C;const n=Y.useUnit(ol.pinia),{chooseTitle:r}=ol.storeToRefs(n);if((l==null?void 0:l.filter)==="true"){let _=await Kr(((s=(o=r==null?void 0:r.value)==null?void 0:o[0])==null?void 0:s.parentContent)??((y=(c=r==null?void 0:r.value)==null?void 0:c[0])==null?void 0:y.relatedContent),!1),E=(v=(p=r==null?void 0:r.value)==null?void 0:p[0])==null?void 0:v.value;(u=(m=_==null?void 0:_[0])==null?void 0:m.compData)!=null&&u.find(F=>(F==null?void 0:F.key)==="header")?_=(w=_==null?void 0:_[0])==null?void 0:w.compData:_=(L=(D=_==null?void 0:_.filter(F=>{var q;return(q=F==null?void 0:F.compData)==null?void 0:q.find(te=>(te==null?void 0:te.key)==="header")}))==null?void 0:D[0])==null?void 0:L.compData;let k=(S=_==null?void 0:_.find(F=>(F==null?void 0:F.key)==="header"))==null?void 0:S.contents;Array.isArray(k==null?void 0:k[0])&&(k=k==null?void 0:k[0]),k=((W=k==null?void 0:k.find(F=>F==null?void 0:F.isMainKey))==null?void 0:W.prop)??((I=k==null?void 0:k[0])==null?void 0:I.prop);let g=(ee=(A=_==null?void 0:_.find(F=>(F==null?void 0:F.key)==="tableContents"))==null?void 0:A.contents)==null?void 0:ee.find(F=>(F==null?void 0:F[k])===E);return(C=l==null?void 0:l.contents)==null?void 0:C.map(F=>{var q;return(F==null?void 0:F.key)==="formContent"&&(F.contents=(q=F.contents)==null?void 0:q.map(te=>(te.value=g==null?void 0:g[te==null?void 0:te.prop],te))),F})}return l==null?void 0:l.contents},tp=l=>{var n,r,o,s,c;if((n=l==null?void 0:l.extra)!=null&&n.row){let y=l==null?void 0:l.filter;if(y!=null&&y.includes("*")&&(y="({"+((o=(r=y==null?void 0:y.replace("{",dr))==null?void 0:r.split(dr))==null?void 0:o[1])),y=(s=y==null?void 0:y.replaceAll("{",""))==null?void 0:s.replaceAll("}",""),(y==null?void 0:y[0])!=="("&&(y="("+y+")"),y.slice(1,(y==null?void 0:y.length)-1)==="undefined")return l==null?void 0:l.contents;let p=oa.calculatorAndToOr(y),v=p==null?void 0:p[0],m=(c=l==null?void 0:l.extra)==null?void 0:c.row,u=[];for(let w in v)(v==null?void 0:v[w])===(m==null?void 0:m[w])?u.push(!0):u.push(!1);return u!=null&&u.every(w=>w===!0)?l==null?void 0:l.contents:[]}else return l==null?void 0:l.contents},sp=l=>{if(l!=null&&l.filter){let n=l==null?void 0:l.contents;return n.push({key:"tab",contents:l==null?void 0:l.filter}),n}return l==null?void 0:l.contents},cp=l=>{if(l!=null&&l.filter){let n=l==null?void 0:l.contents;return n.push({key:"choice",contents:l==null?void 0:l.filter}),n}return l==null?void 0:l.contents},up=l=>{if(l!=null&&l.filter){let n=l==null?void 0:l.contents;return n.push({key:"fixType",contents:l==null?void 0:l.filter}),n}return l==null?void 0:l.contents},dp=l=>{var n;if(l!=null&&l.filter){let r=l==null?void 0:l.contents,o=l==null?void 0:l.filter;return(o==null?void 0:o[0])==="{"&&(o=o==null?void 0:o.slice(1,(o==null?void 0:o.length)-1)),o=(n=$a.analyzeSplitToContent(o,","))==null?void 0:n.map(s=>((s==null?void 0:s[(s==null?void 0:s.length)-1])===","&&(s=s==null?void 0:s.slice(0,(s==null?void 0:s.length)-1)),s)),r.push({key:"stepName",contents:o}),r}return l==null?void 0:l.contents},pp=l=>{if(l!=null&&l.filter){let n=l==null?void 0:l.contents;return n.push({key:"step",contents:l==null?void 0:l.filter}),n}return l==null?void 0:l.contents},Xs={onNumSlice:Wd,onRandomContents:Kd,onConditionContents:Yd,onFatherPaceContents:Jd,onPaceContents:Xd,onMainTagContents:Zd,onButtonContents:Qd,onPamButtonContents:ep,onRowButtonContents:ap,onRelated:ip,onRowNum:rp,onFixRow:np,onReqItem:op,onBottomButtonContents:lp,onConditionContent:tp,onTabs:sp,onSinChoice:cp,onTextSize:Ud,onTextRGBA:qd,onPosition:jd,onSize:Hd,onShowType:up,onStepName:dp,onStep:pp,onInterfaceTypeContents:Gd,onBackGround:Fd},fp=async(l,n)=>{var c,y,p,v,m,u,w,D,L,S,W,I,A,ee,C,_,E,k,g;let r="";if(((c=l==null?void 0:l.find(O=>(O==null?void 0:O.key)==="filter"))==null?void 0:c.contents)!==""&&(r=(y=l==null?void 0:l.find(O=>(O==null?void 0:O.key)==="filter"))==null?void 0:y.contents),r===""||!r)return l;(r==null?void 0:r[0])==="("?r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1):(r=(v=(p=r==null?void 0:r.replace("(",dr))==null?void 0:p.split(dr))==null?void 0:v[1],r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1));let o=(m=$a.analyzeSplitToContent(r,","))==null?void 0:m.map(O=>((O==null?void 0:O[(O==null?void 0:O.length)-1])===","&&(O=O==null?void 0:O.slice(0,(O==null?void 0:O.length)-1)),O!=null&&O.includes("(")||(O=O==null?void 0:O.replaceAll(":","=")),O)),s=l;for(let O in o){let F,q="";(u=o==null?void 0:o[O])!=null&&u.includes("(")?(F=(L=(D=(w=o==null?void 0:o[O])==null?void 0:w.replace("(",dr))==null?void 0:D.split(dr))==null?void 0:L[0],q="("+((I=(W=(S=o==null?void 0:o[O])==null?void 0:S.replace("(",dr))==null?void 0:W.split(dr))==null?void 0:I[1])):(F=(C=(ee=(A=o==null?void 0:o[O])==null?void 0:A.replace("=",dr))==null?void 0:ee.split(dr))==null?void 0:C[0],q=(k=(E=(_=o==null?void 0:o[O])==null?void 0:_.replace("=",dr))==null?void 0:E.split(dr))==null?void 0:k[1]);let te=(g=vn==null?void 0:vn.find(Te=>(Te==null?void 0:Te.key)===F))==null?void 0:g.value;if(te){const Te=Xs[te];s=await Te({contents:s,filter:q})}}return s},Et=async(l,n)=>{var y,p,v,m,u,w,D,L,S,W,I,A,ee,C,_,E,k,g,O,F;let r="";if(((y=l==null?void 0:l.find(q=>(q==null?void 0:q.key)==="filter"))==null?void 0:y.contents)!==""&&(r=(p=l==null?void 0:l.find(q=>(q==null?void 0:q.key)==="filter"))==null?void 0:p.contents),r===""||!r)return l;(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=(v=r==null?void 0:r.replace("(",dr))==null?void 0:v.split(dr))==null?void 0:m[1],r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1));let o=(u=$a.analyzeSplitToContent(r,","))==null?void 0:u.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!=null&&q.includes("(")||(q=q==null?void 0:q.replaceAll(":","=")),q)),s=l,c=new Map;o==null||o.forEach(q=>{var Te,Ee,Q;let te=(Te=q==null?void 0:q.split("="))==null?void 0:Te[0];if(te==="@MainPam"&&c.get(te)){let be=c.get(te);be=be==null?void 0:be.slice(0,(be==null?void 0:be.length)-1);let Z=(Q=(Ee=q==null?void 0:q.replace("{",dr))==null?void 0:Ee.split(dr))==null?void 0:Q[1];Z=be+","+Z,c.set(te,Z)}else c.set(te,q)}),o=Array.from(c.values()),o=o==null?void 0:o.sort((q,te)=>{var Te,Ee;return((Te=vn==null?void 0:vn.find(Q=>te==null?void 0:te.includes(Q==null?void 0:Q.key)))==null?void 0:Te.order)-((Ee=vn==null?void 0:vn.find(Q=>q==null?void 0:q.includes(Q==null?void 0:Q.key)))==null?void 0:Ee.order)});for(let q in o){let te,Te="";(w=o==null?void 0:o[q])!=null&&w.includes("(")&&((D=o==null?void 0:o[q])!=null&&D.includes("@Filter"))?(te=(W=(S=(L=o==null?void 0:o[q])==null?void 0:L.replace("(",dr))==null?void 0:S.split(dr))==null?void 0:W[0],Te="("+((ee=(A=(I=o==null?void 0:o[q])==null?void 0:I.replace("(",dr))==null?void 0:A.split(dr))==null?void 0:ee[1])):(te=(E=(_=(C=o==null?void 0:o[q])==null?void 0:C.replace("=",dr))==null?void 0:_.split(dr))==null?void 0:E[0],Te=(O=(g=(k=o==null?void 0:o[q])==null?void 0:k.replace("=",dr))==null?void 0:g.split(dr))==null?void 0:O[1]);let Ee=(F=vn==null?void 0:vn.find(Q=>(Q==null?void 0:Q.key)===te))==null?void 0:F.value;if(Ee){const Q=Xs[Ee];s=await Q({contents:s,filter:Te,extra:n})}}return s},Zs=l=>{if(l==null)return null;const n=String(l).trim();if(!n.startsWith("[")||!n.endsWith("]"))return null;const r=n.slice(1,-1).split(",").map(o=>Number(o.trim()));return r.length<2||r.some(o=>Number.isNaN(o))?null:[r[0],r[1]]},Qs=(l,n)=>{var W,I,A,ee,C;const r=Array.isArray(l)?l:[],o=r.find(_=>(_==null?void 0:_.key)==="formContent"),s=Array.isArray(o==null?void 0:o.contents)?o.contents:[],c=((W=r.find(_=>(_==null?void 0:_.key)==="_gridLayoutMeta"))==null?void 0:W.contents)??{},y=(s==null?void 0:s[0])??{};let p=((I=n==null?void 0:n.position)==null?void 0:I[0])??(c==null?void 0:c._positionStartRow)??(y==null?void 0:y._positionStartRow),v=((A=n==null?void 0:n.position)==null?void 0:A[1])??(c==null?void 0:c._positionRowSpan)??(y==null?void 0:y._positionRowSpan);(!p||Number.isNaN(p)||p<1)&&(p=1),(!v||Number.isNaN(v)||v<1)&&(v=1);let m=((ee=n==null?void 0:n.size)==null?void 0:ee[0])??(c==null?void 0:c._sizeStart)??(y==null?void 0:y._sizeStart),u=((C=n==null?void 0:n.size)==null?void 0:C[1])??(c==null?void 0:c._sizeEnd)??(y==null?void 0:y._sizeEnd);(m===void 0||Number.isNaN(m))&&(m=0),(u===void 0||Number.isNaN(u))&&(u=1),m=Math.max(0,Math.min(1,m)),u=Math.max(0,Math.min(1,u)),u<=m&&(m=0,u=1);const w=u-m,D=Math.max(1,Math.round(1/w));let L=r.map(_=>{if((_==null?void 0:_.key)!=="formContent")return _;const E=Array.isArray(_==null?void 0:_.contents)?_.contents:[];return{..._,contents:E.map(k=>({...k,width:D,_positionStartRow:p,_positionRowSpan:v,_sizeStart:m,_sizeEnd:u}))}});const S={_positionStartRow:p,_positionRowSpan:v,_sizeStart:m,_sizeEnd:u};return L.some(_=>(_==null?void 0:_.key)==="_gridLayoutMeta")?L=L.map(_=>(_==null?void 0:_.key)==="_gridLayoutMeta"?{..._,contents:S}:_):L.push({key:"_gridLayoutMeta",contents:S}),L};let pi="$R";const hp=Y.useUnit(ol.pinia),{selectTitle:vp}=ol.storeToRefs(hp);let mp=[{label:"新增",prop:"新增"},{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],yp=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"},{label:"复制新增",prop:"复制新增"},{label:"删除",prop:"删除"}],gp=[{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],bp=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"}];const ns=async(l,n,r=!0)=>{let o=[],s=l==null?void 0:l.map(async c=>{var w,D,L,S,W,I,A,ee,C,_,E,k,g,O,F,q,te,Te,Ee,Q,be,Z,de,je,wa,ie,P,j,ye,Se,ke,Ze,ya,Ha,re,la,Ve,ba,Fe,Ie,$e,Qe,Xa,Wa,V,$,X,se,ue,va,ra,Le,Ce,Sa,da,Fa,ja,me,Je,ze,Xe,pa,ua,Ae,za,fa,Ua,ga,He,We,Ne,De,fe,oe,ia,Pa,hl,Ma,Ul;let y=(S=(L=(D=(w=c==null?void 0:c.contents)==null?void 0:w.find(Ea=>{var _a;return(_a=Ea==null?void 0:Ea.key)==null?void 0:_a.includes("struct")}))==null?void 0:D.value)==null?void 0:L[0])==null?void 0:S.类型,p=Object.values(c==null?void 0:c.name);p=p==null?void 0:p.reverse();let v=(W=c==null?void 0:c.contents)==null?void 0:W.map(Ea=>Ea==null?void 0:Ea.key),m={comp:y,isShow:c==null?void 0:c.is_show,name:p==null?void 0:p[0],id:c==null?void 0:c.object_id,relatedTables:v,menuFilter:(I=c==null?void 0:c.filter)==null?void 0:I.menuFilter,status:c==null?void 0:c.status,fatherSyncContents:(A=c==null?void 0:c.filter)==null?void 0:A.fatherSyncs,relatedQuotes:(ee=c==null?void 0:c.filter)==null?void 0:ee.quotes,sonSyncContents:(C=c==null?void 0:c.filter)==null?void 0:C.sonSyncs,nameContents:(_=Y.cloneDeep(p))==null?void 0:_.reverse()};for(let Ea in p)parseInt(Ea)>=1&&(m[`name${parseInt(Ea)-1}`]=p[Ea]);let u=Array.isArray((E=c==null?void 0:c.filter)==null?void 0:E.menuFilter)?(k=c==null?void 0:c.filter)==null?void 0:k.menuFilter:[];if(((g=u==null?void 0:u.filter(Ea=>Ea==null?void 0:Ea.includes("@Filter")))==null?void 0:g.length)>0){let Ea=u==null?void 0:u.filter(ae=>ae==null?void 0:ae.includes("@Filter"));Ea=Ea==null?void 0:Ea[0],Ea=(F=(O=Ea==null?void 0:Ea.replace("(",pi))==null?void 0:O.split(pi))==null?void 0:F[1],Ea=Ea==null?void 0:Ea.slice(0,(Ea==null?void 0:Ea.length)-1),Ea!=null&&Ea.includes("*")&&(Ea=(te=(q=Ea==null?void 0:Ea.replace("{",pi))==null?void 0:q.split(pi))==null?void 0:te[1],Ea=Ea==null?void 0:Ea.replace("}","")),Ea=oa.calculatorAndToOr(Ea);let _a=(n==null?void 0:n.originPath)??"";(_a==null?void 0:_a[(_a==null?void 0:_a.length)-1])==="/"&&(_a=_a==null?void 0:_a.slice(0,(_a==null?void 0:_a.length)-1));let Ra=await Kr(_a,!1),Va=(Te=Ra==null?void 0:Ra.filter(ae=>(ae==null?void 0:ae.comp)==="Table"))==null?void 0:Te[0];Va=(Q=(Ee=Va==null?void 0:Va.compData)==null?void 0:Ee.find(ae=>(ae==null?void 0:ae.key)==="tableContents"))==null?void 0:Q.contents;let qa=(Z=(be=vp.value)==null?void 0:be.find(ae=>(ae==null?void 0:ae.condition)==="child"))==null?void 0:Z.value;Va=(de=Va==null?void 0:Va.map(ae=>{for(let Ye in ae)if((ae==null?void 0:ae[Ye])===qa)return ae}))==null?void 0:de.filter(ae=>ae),Va=Va==null?void 0:Va[0],Ea=Ea==null?void 0:Ea[0];let xa=[];for(let ae in Ea){let Ye="";al.isObject(Va)&&(Ye=(wa=(je=Object.keys(Va))==null?void 0:je.filter(pe=>pe==null?void 0:pe.includes("."+ae)))==null?void 0:wa[0]),Ye!==""&&(Va!=null&&Va[Ye])&&(Ea==null?void 0:Ea[ae])===(Va==null?void 0:Va[Ye])||Va!=null&&Va[ae]&&(Ea==null?void 0:Ea[ae])===(Va==null?void 0:Va[ae])?xa.push(!0):xa.push(!1)}if(xa!=null&&xa.some(ae=>ae===!1)&&((P=n==null?void 0:n.originPath)==null?void 0:P[((ie=n==null?void 0:n.originPath)==null?void 0:ie.length)-1])!=="/")return}if(y==="Table"||y==="Method"){let Ea=((j=c==null?void 0:c.contents)==null?void 0:j.find(qe=>{var G;return(G=qe==null?void 0:qe.key)==null?void 0:G.includes("content")}))||[],_a=[];m.comp="Table",Ea.value=(ye=Ea==null?void 0:Ea.value)==null?void 0:ye.sort((qe,G)=>parseInt(qe==null?void 0:qe.id)-parseInt(G==null?void 0:G.id)),Ea.value=(Se=Ea==null?void 0:Ea.value)==null?void 0:Se.map(qe=>{let G={};for(let aa in qe)JSON.stringify(qe==null?void 0:qe[aa])==="{}"?G[aa]="":G[aa]=qe==null?void 0:qe[aa];return G}),_a.push({key:"tableContents",contents:Ea==null?void 0:Ea.value});let Ra=(re=(Ha=(ya=(Ze=(ke=c==null?void 0:c.contents)==null?void 0:ke.find(qe=>{var G;return(G=qe==null?void 0:qe.key)==null?void 0:G.includes("struct")}))==null?void 0:Ze.value)==null?void 0:ya[0])==null?void 0:Ha.结构)==null?void 0:re.contents;Array.isArray(Ra==null?void 0:Ra[0])?Ra[0]=(la=Ra==null?void 0:Ra[0])==null?void 0:la.filter(qe=>(qe==null?void 0:qe.prop)!=="sort"&&(qe==null?void 0:qe.prop)!=="relatedId"):Ra=Ra==null?void 0:Ra.filter(qe=>(qe==null?void 0:qe.prop)!=="sort"&&(qe==null?void 0:qe.prop)!=="relatedId"),_a.push({key:"header",contents:Ra}),_a.push({key:"filter",contents:($e=(Ie=(Fe=(ba=(Ve=c==null?void 0:c.contents)==null?void 0:Ve.find(qe=>{var G;return(G=qe==null?void 0:qe.key)==null?void 0:G.includes("struct")}))==null?void 0:ba.value)==null?void 0:Fe[0])==null?void 0:Ie.引用)==null?void 0:$e.contents});let Va=mp,qa=Y.cloneDeep(yp);y==="Method"&&qa.push({label:"生成方法",prop:"生成方法"}),!Array.isArray(Ra==null?void 0:Ra[0])&&((Qe=Ra==null?void 0:Ra[0])==null?void 0:Qe.prop)==="disabled"&&(Va=gp,qa=bp);const xa=["推力","真空","压力","温度","流量"],ae=m.name;ae&&xa.includes(ae)&&(Va=[...Va],Va.push({label:"导出paraform",prop:"导出paraform",type:"methodButton"}));let Ye=[];if(!Array.isArray(Ra==null?void 0:Ra[0])&&(Ra!=null&&Ra.some(qe=>{var G;return(qe==null?void 0:qe.calculatorFilter)&&((G=qe==null?void 0:qe.calculatorFilter)==null?void 0:G.includes("Manual"))}))){let qe=(Xa=Ra==null?void 0:Ra.map(G=>G==null?void 0:G.calculatorFilter))==null?void 0:Xa.filter(G=>G&&(G==null?void 0:G.includes("Manual")));qe==null||qe.forEach(G=>{var Ge;let aa=$a.analyzeSplitToContent(G,",");if(aa=aa==null?void 0:aa.map(Be=>((Be==null?void 0:Be[(Be==null?void 0:Be.length)-1])===","&&(Be=Be==null?void 0:Be.slice(0,(Be==null?void 0:Be.length)-1)),Be)),aa!=null&&aa.find(Be=>(Be==null?void 0:Be.includes("Extent"))&&(Be==null?void 0:Be.includes("Row")))&&(aa!=null&&aa.find(Be=>(Be==null?void 0:Be.includes("Button"))&&(Be==null?void 0:Be.includes(","))))){let Be=aa==null?void 0:aa.find(El=>El==null?void 0:El.includes("@FunctionButton"));Be=(Ge=Be==null?void 0:Be.split("="))==null?void 0:Ge[1],Be=Be==null?void 0:Be.slice(1,(Be==null?void 0:Be.length)-1),Be=Be==null?void 0:Be.split(","),Be=Be==null?void 0:Be[(Be==null?void 0:Be.length)-1],Ye.push(Be)}}),Ye=[...new Set(Ye)],Ye=Ye==null?void 0:Ye.map(G=>({label:G,prop:G,type:"methodButton"}))}else if(Array.isArray(Ra==null?void 0:Ra[0])&&((Wa=oa.getColumnChild(Ra==null?void 0:Ra[0]))!=null&&Wa.some(qe=>{var G;return(qe==null?void 0:qe.calculatorFilter)&&((G=qe==null?void 0:qe.calculatorFilter)==null?void 0:G.includes("Manual"))}))){let qe=($=(V=oa.getColumnChild(Ra==null?void 0:Ra[0]))==null?void 0:V.map(G=>G==null?void 0:G.calculatorFilter))==null?void 0:$.filter(G=>G&&(G==null?void 0:G.includes("Manual")));qe==null||qe.forEach(G=>{var Ge;let aa=$a.analyzeSplitToContent(G,",");if(aa=aa==null?void 0:aa.map(Be=>((Be==null?void 0:Be[(Be==null?void 0:Be.length)-1])===","&&(Be=Be==null?void 0:Be.slice(0,(Be==null?void 0:Be.length)-1)),Be)),aa!=null&&aa.find(Be=>(Be==null?void 0:Be.includes("Extent"))&&(Be==null?void 0:Be.includes("Row")))&&(aa!=null&&aa.find(Be=>(Be==null?void 0:Be.includes("Button"))&&(Be==null?void 0:Be.includes(","))))){let Be=aa==null?void 0:aa.find(El=>El==null?void 0:El.includes("@FunctionButton"));Be=(Ge=Be==null?void 0:Be.split("="))==null?void 0:Ge[1],Be=Be==null?void 0:Be.slice(1,(Be==null?void 0:Be.length)-1),Be=Be==null?void 0:Be.split(","),Be=Be==null?void 0:Be[(Be==null?void 0:Be.length)-1],Ye.push(Be)}}),Ye=[...new Set(Ye)],Ye=Ye==null?void 0:Ye.map(G=>({label:G,prop:G,type:"methodButton"}))}_a.push({key:"extraButton",contents:Va}),_a.push({key:"rowButton",contents:[...qa,...Ye]}),m.compData=await Et(_a,n),(X=m.compData)!=null&&X.find(qe=>(qe==null?void 0:qe.key)==="tab")&&(m.tab=(ue=(se=m.compData)==null?void 0:se.find(qe=>(qe==null?void 0:qe.key)==="tab"))==null?void 0:ue.contents),(va=m.compData)!=null&&va.find(qe=>(qe==null?void 0:qe.key)==="step")&&(m.step=(Le=(ra=m.compData)==null?void 0:ra.find(qe=>(qe==null?void 0:qe.key)==="step"))==null?void 0:Le.contents),(Ce=m.compData)!=null&&Ce.find(qe=>(qe==null?void 0:qe.key)==="choice")&&(m.choice=(da=(Sa=m.compData)==null?void 0:Sa.find(qe=>(qe==null?void 0:qe.key)==="choice"))==null?void 0:da.contents);let pe="",Ca=(Fa=m==null?void 0:m.compData)==null?void 0:Fa.filter(qe=>(qe==null?void 0:qe.key)==="fixType");(Ca==null?void 0:Ca.length)>0&&r&&(pe=(ja=Ca==null?void 0:Ca[0])==null?void 0:ja.contents,m.comp=pe)}else if(y==="Form"){let Ea=[],_a=(ze=(Je=(me=c==null?void 0:c.contents)==null?void 0:me.find(ae=>{var Ye;return(Ye=ae==null?void 0:ae.key)==null?void 0:Ye.includes("content")}))==null?void 0:Je.value)==null?void 0:ze[0],Ra=[],Va=Array.isArray((Xe=c==null?void 0:c.filter)==null?void 0:Xe.menuFilter)?(pa=c==null?void 0:c.filter)==null?void 0:pa.menuFilter:[];Va==null||Va.forEach(ae=>{if(ae!=null&&ae.includes("@Param(Hide=Yes, prop=")||ae!=null&&ae.includes("@Interface(Hide=Yes, prop=")){const Ye=ae==null?void 0:ae.match(/prop=([^,)]+)/);Ye!=null&&Ye[1]&&Ra.push(Ye==null?void 0:Ye[1])}});let qa=(Ua=(fa=(za=(Ae=(ua=c==null?void 0:c.contents)==null?void 0:ua.find(ae=>{var Ye;return(Ye=ae==null?void 0:ae.key)==null?void 0:Ye.includes("struct")}))==null?void 0:Ae.value)==null?void 0:za[0])==null?void 0:fa.结构)==null?void 0:Ua.contents,xa=(ga=qa==null?void 0:qa.map(ae=>(ae.value=_a==null?void 0:_a[ae==null?void 0:ae.prop],ae)))==null?void 0:ga.filter(ae=>(ae==null?void 0:ae.prop)!=="sort"&&(ae==null?void 0:ae.prop)!=="relatedId");xa=xa==null?void 0:xa.map(ae=>(Ra!=null&&Ra.includes(ae==null?void 0:ae.prop)&&(ae.isHideInForm=!0),ae)),Ea.push({key:"filter",contents:(fe=(De=(Ne=(We=(He=c==null?void 0:c.contents)==null?void 0:He.find(ae=>{var Ye;return(Ye=ae==null?void 0:ae.key)==null?void 0:Ye.includes("struct")}))==null?void 0:We.value)==null?void 0:Ne[0])==null?void 0:De.引用)==null?void 0:fe.contents}),Ea.push({key:"formContent",contents:xa}),Ea.push({key:"paramHideProps",contents:Ra}),m.compData=await fp(Ea),(oe=m.compData)!=null&&oe.find(ae=>(ae==null?void 0:ae.key)==="tab")&&(m.tab=(Pa=(ia=m.compData)==null?void 0:ia.find(ae=>(ae==null?void 0:ae.key)==="tab"))==null?void 0:Pa.contents),(hl=m.compData)!=null&&hl.find(ae=>(ae==null?void 0:ae.key)==="step")&&(m.step=(Ul=(Ma=m.compData)==null?void 0:Ma.find(ae=>(ae==null?void 0:ae.key)==="step"))==null?void 0:Ul.contents)}return m});return o=await Promise.all(s),o},kp=Y.useLoginState(ol.pinia),{loginUserInfo:_o}=ol.storeToRefs(kp),vt=async(l,n,r="Manual",o=[])=>{var v;let s=l,c;Array.isArray(n==null?void 0:n[0])?c=oa.getColumnChild(n==null?void 0:n[0]):c=n;let y=(v=c==null?void 0:c.filter(m=>{var u;return(m==null?void 0:m.calculatorFilter)&&((u=m==null?void 0:m.calculatorFilter)==null?void 0:u.includes(r))||(m==null?void 0:m.calculatorFilter)===""&&(m==null?void 0:m.functionName)}))==null?void 0:v.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=s==null?void 0:s.map(async m=>(m=await Sp(m,y,c,r,s,o),m));return p=await Promise.all(p),p},xp=l=>{let n=l==null?void 0:l.contents,r=l==null?void 0:l.valueString,o=l==null?void 0:l.prop,s=l==null?void 0:l.headers,c;return Array.isArray(n)&&(n==null?void 0:n.length)!==1&&(n=oa.getValueToObjectValue(n,oa.getColumnContents(s))),r==null||r.forEach(y=>{var p;if(n!=null&&n[y]){let v=n==null?void 0:n[y];c=c?v?$a.isEqual(v.toString(),c.toString()):void 0:v}else{let v=(p=s==null?void 0:s.find(u=>(u==null?void 0:u.label)===y))==null?void 0:p.prop,m=(n==null?void 0:n[v])??0;c=c?m?$a.isEqual(m.toString(),c.toString()):void 0:m}}),n[o]=c===void 0?void 0:c?1:0,n},kr=l=>{const[n,r,o]=Y.cloneDeep(l).split(":").map(Number);let s=+l;return!l||!(l!=null&&l.includes(":"))?s:(n??0)*3600+(r??0)*60+(o??0)},Yn=l=>{const n=c=>c.toString().padStart(2,"0"),r=Math.floor(l/3600),o=Math.floor(l%3600/60),s=l%60;return`${n(r)}:${n(o)}:${parseInt(n(s))}`},wp=l=>{let n=l==null?void 0:l.contents,r=l==null?void 0:l.valueString,o=l==null?void 0:l.prop,s=l==null?void 0:l.headers,c=l==null?void 0:l.typeString,y=l==null?void 0:l.allContents,p=0;if(Array.isArray(n)&&(n==null?void 0:n.length)!==1&&(n=oa.getValueToObjectValue(n,oa.getColumnContents(s))),r==null||r.forEach(v=>{var m,u,w,D,L,S,W,I,A;if(n!=null&&n[v]){if(c==="Row")if(!((u=((m=n==null?void 0:n[v])==null?void 0:m.toString())??"")!=null&&u.includes(":"))&&!((w=p==null?void 0:p.toString())!=null&&w.includes(":"))){let ee=+(n==null?void 0:n[v]);p=p+ee}else p=kr(p.toString())+kr((D=n==null?void 0:n[v])==null?void 0:D.toString()),p=Yn(p)}else if(c==="Row"){let ee=(L=s==null?void 0:s.find(C=>(C==null?void 0:C.label)===v))==null?void 0:L.prop;if(!((W=Number.isNaN(n==null?void 0:n[ee])?"":(S=n==null?void 0:n[ee])==null?void 0:S.toString())!=null&&W.includes(":"))&&!((I=p==null?void 0:p.toString())!=null&&I.includes(":"))){let C=+((n==null?void 0:n[ee])??0);p=p+C}else p=kr(p==null?void 0:p.toString())+kr((A=(n==null?void 0:n[ee])??0)==null?void 0:A.toString()),p=Yn(p)}}),c==="Column"){let v=[];r==null||r.forEach(m=>{let u=y==null?void 0:y.map(w=>{var D;return(w==null?void 0:w[m])??(w==null?void 0:w[(D=s==null?void 0:s.find(L=>(L==null?void 0:L.label)===m))==null?void 0:D.prop])});v=[...v,...u]}),p=v.reduce((m,u)=>{let w=0;Number.isNaN(m)||(w=+m);let D=0;return Number.isNaN(u)||(D=+u),w+D},0)}return n[o]=p,n},_p=l=>{let n=l==null?void 0:l.contents,r=l==null?void 0:l.valueString,o=l==null?void 0:l.prop,s=l==null?void 0:l.headers,c=l==null?void 0:l.typeString,y=l==null?void 0:l.allContents,p=0;if(Array.isArray(n)&&(n==null?void 0:n.length)!==1&&(n=oa.getValueToObjectValue(n,oa.getColumnContents(s))),r==null||r.forEach(v=>{var m,u,w,D,L,S,W;if(n!=null&&n[v]){if(c==="Row")if(!((u=(m=n==null?void 0:n[v])==null?void 0:m.toString())!=null&&u.includes(":"))&&!((w=p==null?void 0:p.toString())!=null&&w.includes(":"))){let I=+(n==null?void 0:n[v]);p=p===0?p+I:p-I}else p=p===0?kr(p.toString())+kr(n==null?void 0:n[v].toString()):kr(p.toString())-kr(n==null?void 0:n[v].toString()),p=Yn(p)}else if(c==="Row"){let I=(D=s==null?void 0:s.find(A=>(A==null?void 0:A.label)===v))==null?void 0:D.prop;if(!((S=Number.isNaN(n==null?void 0:n[I])?"":(L=n==null?void 0:n[I])==null?void 0:L.toString())!=null&&S.includes(":"))&&!((W=p==null?void 0:p.toString())!=null&&W.includes(":"))){let A=+((n==null?void 0:n[I])??0);p=p===0?p+A:p-A}else p=p===0?kr(p.toString())+kr(((n==null?void 0:n[I])??0).toString()):kr(p.toString())-kr(((n==null?void 0:n[I])??0).toString()),p=Yn(p)}}),c==="Column"){let v=[];r==null||r.forEach(m=>{let u=y==null?void 0:y.map(w=>{var D;return(w==null?void 0:w[m])??(w==null?void 0:w[(D=s==null?void 0:s.find(L=>(L==null?void 0:L.label)===m))==null?void 0:D.prop])});v=[...v,...u]}),p=v.reduce((m,u)=>{let w=0;Number.isNaN(m)||(w=+m);let D=0;return Number.isNaN(u)||(D=+u),w-D},0)}return n[o]=p,n},Cp=l=>{let n=l==null?void 0:l.contents,r=l==null?void 0:l.valueString,o=l==null?void 0:l.prop,s=l==null?void 0:l.headers,c=l==null?void 0:l.typeString,y=l==null?void 0:l.allContents,p=0;if(Array.isArray(n)&&(n==null?void 0:n.length)!==1&&(n=oa.getValueToObjectValue(n,oa.getColumnContents(s))),r==null||r.forEach(v=>{var m,u,w,D,L,S,W;if(n!=null&&n[v]){if(c==="Row")if(!((u=(m=n==null?void 0:n[v])==null?void 0:m.toString())!=null&&u.includes(":"))&&!((w=p==null?void 0:p.toString())!=null&&w.includes(":"))){let I=+(n==null?void 0:n[v]);p=p===0?p+I:p*I}else p=p===0?kr(p.toString())+kr(n==null?void 0:n[v].toString()):kr(p.toString())*kr(n==null?void 0:n[v].toString()),p=Yn(p)}else if(c==="Row"){let I=(D=s==null?void 0:s.find(A=>(A==null?void 0:A.label)===v))==null?void 0:D.prop;if(!(n!=null&&n[I]))p=void 0;else if(!((S=Number.isNaN(n==null?void 0:n[I])?"":(L=n==null?void 0:n[I])==null?void 0:L.toString())!=null&&S.includes(":"))&&!((W=p==null?void 0:p.toString())!=null&&W.includes(":"))){let A=+((n==null?void 0:n[I])??0);p=p===0?p+A:p*A}else p=p===0?kr(p.toString())+kr(((n==null?void 0:n[I])??0).toString()):kr(p.toString())*kr(((n==null?void 0:n[I])??0).toString()),p=Yn(p)}}),c==="Column"){let v=[];r==null||r.forEach(m=>{let u=y==null?void 0:y.map(w=>{var D;return(w==null?void 0:w[m])??(w==null?void 0:w[(D=s==null?void 0:s.find(L=>(L==null?void 0:L.label)===m))==null?void 0:D.prop])});v=[...v,...u]}),p=v.reduce((m,u)=>{let w=0;Number.isNaN(m)||(w=+m);let D=0;return Number.isNaN(u)||(D=+u),w*D},0)}return n[o]=p,n},Ep=l=>{let n=l==null?void 0:l.contents,r=l==null?void 0:l.valueString,o=l==null?void 0:l.prop,s=l==null?void 0:l.headers,c=l==null?void 0:l.typeString,y=l==null?void 0:l.allContents,p=0;if(Array.isArray(n)&&(n==null?void 0:n.length)!==1&&(n=oa.getValueToObjectValue(n,oa.getColumnContents(s))),r==null||r.forEach(v=>{var m,u,w,D,L,S,W;if(n!=null&&n[v]){if(c==="Row")if(!((u=(m=n==null?void 0:n[v])==null?void 0:m.toString())!=null&&u.includes(":"))&&!((w=p==null?void 0:p.toString())!=null&&w.includes(":"))){let I=+(n==null?void 0:n[v]);p=p===0?p+I:p/I}else p=p===0?kr(p.toString())+kr(n==null?void 0:n[v].toString()):kr(p.toString())/kr(n==null?void 0:n[v].toString()),p=Yn(p)}else if(c==="Row"){let I=(D=s==null?void 0:s.find(A=>(A==null?void 0:A.label)===v))==null?void 0:D.prop;if(!((S=Number.isNaN(n==null?void 0:n[I])?"":(L=n==null?void 0:n[I])==null?void 0:L.toString())!=null&&S.includes(":"))&&!((W=p==null?void 0:p.toString())!=null&&W.includes(":"))){let A=+((n==null?void 0:n[I])??0);p=p===0?p+A:p/A}else p=p===0?kr(p.toString())+kr(((n==null?void 0:n[I])??0).toString()):kr(p.toString())/kr(((n==null?void 0:n[I])??0).toString()),p=Yn(p)}}),c==="Column"){let v=[];r==null||r.forEach(m=>{let u=y==null?void 0:y.map(w=>{var D;return(w==null?void 0:w[m])??(w==null?void 0:w[(D=s==null?void 0:s.find(L=>(L==null?void 0:L.label)===m))==null?void 0:D.prop])});v=[...v,...u]}),p=v.reduce((m,u)=>{let w=0;Number.isNaN(m)||(w=+m);let D=0;return Number.isNaN(u)||(D=+u),w/D},0)}return n[o]=p.toFixed(2),n},fi={Sum:wp,Substract:_p,Multiple:Cp,Divide:Ep,Compare:xp},Sp=async(l,n,r,o="Auto",s,c=[])=>{var u,w,D,L,S,W,I,A,ee,C,_,E,k,g,O,F,q,te,Te,Ee,Q;let y=l,p=[],v=await Y.getPageDataApi({platId:parseInt((u=_o==null?void 0:_o.value)==null?void 0:u.plat_id),pageName:"menu"});v=(L=(D=(w=v==null?void 0:v.data)==null?void 0:w.result)==null?void 0:D.filter(be=>(be==null?void 0:be.property_name)===""))==null?void 0:L[0];let m=[];if(v!=null&&v.object_name){v=v==null?void 0:v.object_name;let be=await Y.getPageDataApi({platId:parseInt((S=_o==null?void 0:_o.value)==null?void 0:S.plat_id),pageName:v});be=(C=(ee=(A=(I=(W=be==null?void 0:be.data)==null?void 0:W.result)==null?void 0:I[0])==null?void 0:A.contents)==null?void 0:ee.find(Z=>{var de;return(de=Z==null?void 0:Z.key)==null?void 0:de.includes("content")}))==null?void 0:C.value,p=(_=be==null?void 0:be.map(Z=>({functionName:Z==null?void 0:Z.函数名称,functionContent:Z==null?void 0:Z.输出值})))==null?void 0:_.filter(Z=>(Z==null?void 0:Z.functionContent)!==""),p==null||p.forEach(Z=>{m.push(Z.functionName),fi[Z.functionName]=new Function("return "+Z.functionContent)()})}if((n==null?void 0:n.length)===0)return y;for(let be in n){let Z=(E=n==null?void 0:n[be])==null?void 0:E.functionName;const de=fi==null?void 0:fi[Z];let je=(k=n==null?void 0:n[be])==null?void 0:k.methods;if(je=$a.analyzeSplitToContent(je,","),console.log(je),(g=je==null?void 0:je.find(wa=>wa==null?void 0:wa.includes("@FunctionType")))!=null&&g.includes(o)||(je==null?void 0:je.length)===0){let wa=((q=(F=(O=je==null?void 0:je.find(ie=>ie==null?void 0:ie.includes("@FunctionExtent")))==null?void 0:O.replace(":","="))==null?void 0:F.split("="))==null?void 0:q[1])??[];if(await new Function("return ")(),(m==null?void 0:m.length)>0&&m.find(ie=>ie===Z)){let ie="";try{let j=(te=n==null?void 0:n[be])==null?void 0:te.functionRelatedWords,ye=(c==null?void 0:c.length)>0?c==null?void 0:c.map(ke=>{var Ze;return ke==null?void 0:ke[(Ze=n==null?void 0:n[be])==null?void 0:Ze.prop]}):["0"];ye=ye==null?void 0:ye.map(ke=>ke==null?void 0:ke.slice((ke==null?void 0:ke.length)-5,ke==null?void 0:ke.length)),ye=ye==null?void 0:ye.map(ke=>$a.isNumber(parseInt(ke))&&parseInt(ke)?parseInt(ke):0);let Se=Math.max(...ye);j=j==null?void 0:j.map(ke=>{if(ke!=null&&ke.includes("'"))return ke==null?void 0:ke.replaceAll("'","");if(ke!=null&&ke.includes("@"))return Se+1;{let Ze=Object.keys(y);return ke=(y==null?void 0:y[ke])??(y==null?void 0:y[Ze==null?void 0:Ze.find(ya=>ya==null?void 0:ya.includes("."+ke))]),ke}}),ie=de(...j)}catch(j){al.ElMessage.warning("关联数据出现错误,"+j.message)}let P=(Te=n==null?void 0:n[be])==null?void 0:Te.prop;y[P]=ie}else y=de({contents:y,valueString:(Ee=n==null?void 0:n[be])==null?void 0:Ee.functionRelatedWords,prop:(Q=n==null?void 0:n[be])==null?void 0:Q.prop,headers:r,typeString:wa,allContents:s})}}return y},Dp=Y.useLoginState(ol.pinia),{loginUserInfo:Zr}=ol.storeToRefs(Dp),Bp=Y.useMenuState(ol.pinia),{activeMenuPath:os,currentMenuPath:hi}=ol.storeToRefs(Bp),ec=Y.useUnit(ol.pinia);let is="$R";const{selectTitle:Do}=ol.storeToRefs(ec),ac=async(l,n)=>{var y,p,v,m,u,w,D,L,S,W,I,A,ee;let r=os.value,o="",s=((y=Do==null?void 0:Do.value)==null?void 0:y.find(C=>(C==null?void 0:C.condition)==="child"&&!(C!=null&&C.relatedContent)))??void 0;(l==null?void 0:l.length)===0||(r=n?r:(p=l==null?void 0:l[0])==null?void 0:p.object_name,o=(v=l==null?void 0:l[0])==null?void 0:v.father_name);let c=[];if(o!==""){let C=o;(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));let _=await Kr(C,!1);_=(m=_==null?void 0:_[0])==null?void 0:m.compData;let E=(u=_==null?void 0:_.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:u.contents;E=((w=E==null?void 0:E.find(g=>g==null?void 0:g.isMainKey))==null?void 0:w.prop)??((D=E==null?void 0:E[0])==null?void 0:D.prop);let k=(S=(L=_==null?void 0:_.find(g=>(g==null?void 0:g.key)==="tableContents"))==null?void 0:L.contents)==null?void 0:S.map(g=>({label:g==null?void 0:g[E],value:g==null?void 0:g[E]}));c=(W=o==null?void 0:o.split("/"))==null?void 0:W.map(g=>(g===""?s?(s.isShow=!0,g=s):g={value:g,condition:"child",options:k,parentContent:(o==null?void 0:o[(o==null?void 0:o.length)-1])==="/"?o==null?void 0:o.slice(0,(o==null?void 0:o.length)-1):o,isShow:!0}:g={condition:"parent",value:g.trim(),isShow:!0},g))}if(r!==""){let C=(I=r==null?void 0:r.split("/"))==null?void 0:I.map(_=>(_={condition:"normal",value:_.trim(),isShow:!0},_));((A=C==null?void 0:C[0])==null?void 0:A.value)===((ee=c==null?void 0:c[0])==null?void 0:ee.value)&&(C=C==null?void 0:C.filter((_,E)=>E!==0)),c=[...c??[],...C??[]]}o===""&&s&&((s==null?void 0:s.parentContent)!==os.value&&(s.isShow=!1),(s==null?void 0:s.value)!==""&&c.push(s)),ec.setSelectTitle(c)},Np=async l=>{var c,y,p,v,m,u,w,D,L;let n=await Y.getPageDataApi({platId:parseInt((c=Zr==null?void 0:Zr.value)==null?void 0:c.plat_id),pageName:"menu"}),r=(y=n==null?void 0:n.data)==null?void 0:y.result,o=(u=(m=(v=(p=l==null?void 0:l.filter(S=>(S==null?void 0:S.comp)==="Table"))==null?void 0:p[0])==null?void 0:v.compData)==null?void 0:m.find(S=>(S==null?void 0:S.key)==="filter"))==null?void 0:u.contents;o=(L=(D=(w=o==null?void 0:o.replace("(",is))==null?void 0:w.split(is))==null?void 0:D[0])==null?void 0:L.replaceAll(":","/");let s=r==null?void 0:r.filter(S=>{var W;return(S==null?void 0:S.object_name)===hi.value+"/"||((W=hi.value)==null?void 0:W.includes(o))&&o+"/"===(S==null?void 0:S.object_name)});return(s==null?void 0:s.length)>0&&(l=l==null?void 0:l.map(S=>{var W;return(S==null?void 0:S.comp)==="Table"&&(S.compData=(W=S==null?void 0:S.compData)==null?void 0:W.map(I=>{var A,ee,C;return(I==null?void 0:I.key)==="header"&&(Array.isArray((A=I.contents)==null?void 0:A[0])?I.contents[0]=(C=I.contents[0])==null?void 0:C.map((_,E)=>{var k;return E===0&&(_.isExistChild=!0,(k=hi.value)!=null&&k.includes(o)&&(_.fatherPath=o)),_}):I.contents=(ee=I.contents)==null?void 0:ee.map((_,E)=>{var k;return E===0&&(_.isExistChild=!0,(k=hi.value)!=null&&k.includes(o)&&(_.fatherPath=o)),_})),I})),S})),l},Kr=async(l,n,r={})=>{var y,p,v,m,u,w,D,L,S,W,I,A;let o=await Y.getPageDataApi({platId:parseInt((y=Zr==null?void 0:Zr.value)==null?void 0:y.plat_id),pageName:l}),s=(p=o==null?void 0:o.data)==null?void 0:p.result;if((s==null?void 0:s.length)===0&&(r!=null&&r.originPath)&&(r==null?void 0:r.originPath)!==l){let ee=await Y.getPageDataApi({platId:parseInt((v=Zr==null?void 0:Zr.value)==null?void 0:v.plat_id),pageName:r==null?void 0:r.originPath});if(((u=(m=ee==null?void 0:ee.data)==null?void 0:m.result)==null?void 0:u.length)>0){let C=await ns((w=ee==null?void 0:ee.data)==null?void 0:w.result,r,!1);C=C==null?void 0:C.map(async k=>{var F,q,te,Te,Ee,Q,be,Z,de,je,wa,ie,P,j,ye,Se,ke,Ze,ya,Ha,re,la,Ve,ba,Fe,Ie,$e,Qe,Xa,Wa;let g=[],O=(F=Object.keys(k))==null?void 0:F.filter(V=>(V==null?void 0:V.includes("name"))&&V!=="nameContents");for(let V in k)O!=null&&O.find($=>$===V)&&g.push(k==null?void 0:k[V]);if(g=g.reverse(),(k==null?void 0:k.comp)==="Table"){let V=(Te=(te=(q=k==null?void 0:k.compData)==null?void 0:q.find(X=>(X==null?void 0:X.key)==="tableContents"))==null?void 0:te.contents)==null?void 0:Te.map(X=>{let se={};for(let ue in X)ue!=="id"&&ue!=="create_time"&&ue!=="update_time"&&ue!=="sort"&&ue!=="create_user_id"&&ue!=="update_user_id"&&ue!=="department_id"&&ue!=="relatedId"&&(se[ue]=X==null?void 0:X[ue]);return X=Object.values(se),X}),$=(Q=(Ee=k==null?void 0:k.compData)==null?void 0:Ee.find(X=>(X==null?void 0:X.key)==="header"))==null?void 0:Q.contents;if(Array.isArray($==null?void 0:$[0])?($[0].push({label:"排序",prop:"sort"}),$[0].push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(be=$[0])!=null&&be.find(X=>(X==null?void 0:X.prop)==="disabled")&&($[0]=(Z=$[0])==null?void 0:Z.filter(X=>(X==null?void 0:X.prop)!=="disabled"),$[0].unshift({label:"",prop:"disabled",sortable:!1}))):($.push({label:"排序",prop:"sort"}),$.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),$!=null&&$.find(X=>(X==null?void 0:X.prop)==="disabled")&&($=$==null?void 0:$.filter(X=>(X==null?void 0:X.prop)!=="disabled"),$.unshift({label:"",prop:"disabled",sortable:!1}))),$!=null&&$.some(X=>{var se;return(X==null?void 0:X.calculatorFilter)&&((se=X==null?void 0:X.calculatorFilter)==null?void 0:se.includes("Auto"))})&&(V=await vt(V,$,"Auto"),V=V==null?void 0:V.map(X=>Object.values(X))),k!=null&&k.fatherSyncContents){Array.isArray((de=k==null?void 0:k.fatherSyncContents)==null?void 0:de[0])&&(k.fatherSyncContents=(je=k==null?void 0:k.fatherSyncContents)==null?void 0:je[0]);let X=(wa=Do.value)==null?void 0:wa.find(se=>(se==null?void 0:se.condition)==="child");k.fatherSyncContents=(ie=k==null?void 0:k.fatherSyncContents)==null?void 0:ie.map(se=>{var ue,va,ra,Le,Ce,Sa;return((va=se==null?void 0:se.menus)==null?void 0:va[((ue=se==null?void 0:se.menus)==null?void 0:ue.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"!==(se==null?void 0:se.menus)?se.menus=(se==null?void 0:se.menus)+(X==null?void 0:X.value):((Le=se==null?void 0:se.menus)==null?void 0:Le[((ra=se==null?void 0:se.menus)==null?void 0:ra.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"===(se==null?void 0:se.menus)&&(se.menus=(Sa=se.menus)==null?void 0:Sa.slice(0,((Ce=se.menus)==null?void 0:Ce.length)-1)),se})}if(k!=null&&k.sonSyncContents){Array.isArray((P=k==null?void 0:k.sonSyncContents)==null?void 0:P[0])&&(k.sonSyncContents=(j=k==null?void 0:k.sonSyncContents)==null?void 0:j[0]);let X=(ye=Do.value)==null?void 0:ye.find(se=>(se==null?void 0:se.condition)==="child");k.sonSyncContents=(Se=k==null?void 0:k.sonSyncContents)==null?void 0:Se.map(se=>{var ue,va,ra,Le,Ce,Sa;return((va=se==null?void 0:se.menus)==null?void 0:va[((ue=se==null?void 0:se.menus)==null?void 0:ue.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"!==(se==null?void 0:se.menus)?se.menus=(se==null?void 0:se.menus)+(X==null?void 0:X.value):((Le=se==null?void 0:se.menus)==null?void 0:Le[((ra=se==null?void 0:se.menus)==null?void 0:ra.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"===(se==null?void 0:se.menus)&&(se.menus=(Sa=se.menus)==null?void 0:Sa.slice(0,((Ce=se.menus)==null?void 0:Ce.length)-1)),se})}if(k!=null&&k.relatedQuotes){Array.isArray((ke=k==null?void 0:k.relatedQuotes)==null?void 0:ke[0])&&(k.relatedQuotes=(Ze=k==null?void 0:k.relatedQuotes)==null?void 0:Ze[0]);let X=(ya=Do.value)==null?void 0:ya.find(se=>(se==null?void 0:se.condition)==="child");k.relatedQuotes=(Ha=k==null?void 0:k.relatedQuotes)==null?void 0:Ha.map(se=>{var ue,va,ra,Le,Ce,Sa;return((va=se==null?void 0:se.menus)==null?void 0:va[((ue=se==null?void 0:se.menus)==null?void 0:ue.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"!==(se==null?void 0:se.menus)?se.menus=(se==null?void 0:se.menus)+(X==null?void 0:X.value):((Le=se==null?void 0:se.menus)==null?void 0:Le[((ra=se==null?void 0:se.menus)==null?void 0:ra.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"===(se==null?void 0:se.menus)&&(se.menus=(Sa=se.menus)==null?void 0:Sa.slice(0,((Ce=se.menus)==null?void 0:Ce.length)-1)),se})}k={filter:(la=(re=k==null?void 0:k.compData)==null?void 0:re.find(X=>(X==null?void 0:X.key)==="filter"))==null?void 0:la.contents,key:k==null?void 0:k.comp,name:g,tableColumns:$,tableContents:V,menuFilter:k==null?void 0:k.menuFilter,fatherSyncContents:k==null?void 0:k.fatherSyncContents,relatedQuotes:k==null?void 0:k.relatedQuotes,sonSyncContents:k==null?void 0:k.sonSyncContents}}else{let V=(Fe=(ba=(Ve=k==null?void 0:k.compData)==null?void 0:Ve.find(X=>(X==null?void 0:X.key)==="formContent"))==null?void 0:ba.contents)==null?void 0:Fe.map(X=>(X==null?void 0:X.value)??"");V=[V];let $=(Qe=($e=(Ie=k==null?void 0:k.compData)==null?void 0:Ie.find(X=>(X==null?void 0:X.key)==="formContent"))==null?void 0:$e.contents)==null?void 0:Qe.map(X=>(X.value="",X));k={contents:V,filter:(Wa=(Xa=k==null?void 0:k.compData)==null?void 0:Xa.find(X=>(X==null?void 0:X.key)==="filter"))==null?void 0:Wa.contents,key:k==null?void 0:k.comp,name:g,value:$,fatherSyncContents:k==null?void 0:k.fatherSyncContents,relatedQuotes:k==null?void 0:k.relatedQuotes,sonSyncContents:k==null?void 0:k.sonSyncContents}}return k.isShow=!1,k}),C=await Promise.all(C);let _=[{key:"menuPath",contents:[{path:l,fatherPath:(S=(L=(D=ee==null?void 0:ee.data)==null?void 0:D.result)==null?void 0:L[0])==null?void 0:S.father_name,isShow:!1}]},{key:l,contents:C}];await Y.createPlatFormDataApi({platId:parseInt((W=Zr==null?void 0:Zr.value)==null?void 0:W.plat_id),changeData:_});let E=await Y.getPageDataApi({platId:parseInt((I=Zr==null?void 0:Zr.value)==null?void 0:I.plat_id),pageName:l});s=(A=E==null?void 0:E.data)==null?void 0:A.result}}n&&await ac(s,!!(r!=null&&r.originPath));let c=await ns(s,r);return n&&(c=await Np(c)),c==null?void 0:c.filter(ee=>ee)},ts=async l=>{var o,s,c,y,p,v,m,u,w,D,L;let n=(o=l==null?void 0:l.menus)==null?void 0:o.join("/");l!=null&&l.endChildMenu&&(l==null?void 0:l.endChildMenu)!==""&&(n==null?void 0:n[(n==null?void 0:n.length)-1])==="/"&&(n=n+(l==null?void 0:l.endChildMenu)),(n==null?void 0:n[(n==null?void 0:n.length)-1])==="/"&&(n=n+((c=(s=l.value)==null?void 0:s.split(" "))==null?void 0:c[0]));let r=await Kr(n,!1);if(r=(y=r==null?void 0:r.filter(S=>{var W,I;return(S==null?void 0:S.name)===((I=l==null?void 0:l.groups)==null?void 0:I[((W=l==null?void 0:l.groups)==null?void 0:W.length)-1])}))==null?void 0:y[0],(v=(p=r==null?void 0:r.compData)==null?void 0:p.find(S=>(S==null?void 0:S.key)==="tableContents"))!=null&&v.contents){r=(u=(m=r==null?void 0:r.compData)==null?void 0:m.find(W=>(W==null?void 0:W.key)==="tableContents"))==null?void 0:u.contents;let S=((w=l==null?void 0:l.words)==null?void 0:w[0])??(l==null?void 0:l.prop);return r=r==null?void 0:r.filter(W=>{var I,A,ee,C;return(W==null?void 0:W[l!=null&&l.endChildMenu?S:(I=l==null?void 0:l.words)==null?void 0:I[0]])===(l!=null&&l.relatedWords&&((A=l==null?void 0:l.relatedWords)==null?void 0:A.length)>0?(C=(ee=l.value)==null?void 0:ee.split(" "))==null?void 0:C[0]:l.value)}),r==null?void 0:r[0]}else{let S=(L=(D=r==null?void 0:r.compData)==null?void 0:D.find(I=>(I==null?void 0:I.key)==="formContent"))==null?void 0:L.contents,W={};return S==null||S.forEach(I=>{W[I.prop]=I.value}),W}},Tp={key:0,class:"extra-button-content"},Ap={class:"table-operator-wrap"},zp={key:0,class:"extra-button-filter"},Mp={key:1,class:"extra-header"},Ip=["onClick"],Op={class:"table-op-text"},Lp={class:"table-op-text"},Rp={class:"drop-menu",style:{width:"120px"}},$p=["onClick"],Vp={key:0},Pp={key:1},Fp=["onClick"],jp={class:"table-op-text"},Hp={key:1,class:"extra-button-content tabs-button-wrapper"},Up={class:"table-operator-wrap"},qp={class:"extra-button-filter"},Wp={key:0,class:"extra-header"},Kp={class:"table-op-action"},Gp={class:"table-op-text"},Yp={class:"drop-menu",style:{width:"120px"}},Jp={key:0},Xp={key:1},Zp=["onClick"],Qp={class:"table-op-text"},ef={__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(l,{emit:n}){const r=n,o=l,s=()=>{const g=(o==null?void 0:o.menuFilter)||[];return Array.isArray(g)&&(g==null?void 0:g.some(O=>{const F=typeof O=="string"?O:JSON.stringify(O);return F==null?void 0:F.includes("@InterfaceHide=Yes")}))},c=a.ref(""),y=a.ref(!1),p=a.ref([]),v=a.ref([{label:"清空",background:"#999999"},{label:"确认"}]),m=[{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 u(g,O){return g.map(F=>{const q={...F};return O.forEach(te=>{delete q[te]}),q})}function w(g){if(!g||g.t!=="n")return(g==null?void 0:g.v)??"";const O=g.v;if(g.z){const F=String(g.z).toLowerCase(),q=["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 Ee of q)if(F.includes(Ee))return D(O);const te=/[ymdhms]/.test(F),Te=/^[0#\.\,\s]+$/.test(F.replace(/[\\\/\-:]/g,""));if(te&&!Te)return D(O)}if(O>=1&&O<=73050){if(O<5e3)return O;if(O>=5e3&&O<4e4){const F=Math.floor((O-25569)/365.25)+1970;return F>=1970&&F<=2e3&&g.z&&/[ymd]/.test(String(g.z).toLowerCase())?D(O):O}if(O>=4e4)return D(O)}return O}function D(g){if(typeof g!="number")return g;try{const O=new Date((g-25569)*86400*1e3);if(isNaN(O.getTime()))return g;const F=O.getFullYear(),q=String(O.getMonth()+1).padStart(2,"0"),te=String(O.getDate()).padStart(2,"0");return`${F}-${q}-${te}`}catch{return g}}const L=g=>{const O=g.raw;if(!O)return;const F=new FileReader;F.onload=q=>{try{const te=new Uint8Array(q.target.result),Te=oa.readSync(te,{type:"array"}),Ee=Te.SheetNames[0],Q=Te.Sheets[Ee],Z=oa.utils.decode_range(Q["!ref"]).e.c+1,de=new Array(Z).fill(""),je=[];for(const ye in Q){if(ye[0]==="!")continue;const{r:Se,c:ke}=oa.utils.decode_cell(ye),Ze=Q[ye];let ya=w(Ze);if((ya==null||ya==="")&&(ya=""),Se===0)de[ke]=ya;else{if(!je[Se-1]){je[Se-1]={};for(let Ha=0;Ha<Z;Ha++)je[Se-1][`col_${Ha}`]=""}je[Se-1][`col_${ke}`]=ya}}for(let ye=0;ye<Z;ye++)de[ye]===void 0&&(de[ye]="");const wa=[];for(let ye=0;ye<de.length;ye++)(!de[ye]||de[ye].toString().trim()==="")&&wa.push(ye);let ie,P;(wa==null?void 0:wa.length)>0?(al.ElMessage.warning("存在键为空的列,已自动过滤,请检查补充"),ie=de.filter((ye,Se)=>!wa.includes(Se)),P=u(je,wa==null?void 0:wa.map(ye=>`col_${ye}`))):(ie=de,P=je);const j=je==null?void 0:je[0];if(!(j!=null&&j.hasOwnProperty("col_0")))return al.ElMessage.error("导入的数据列不匹配,请检查是否错位");r("getImportData",ie,P)}catch(te){throw al.ElMessage.error(te.message),new Error(te.message)}},F.readAsArrayBuffer(O)},S=g=>{var F;const O=(F=p.value)==null?void 0:F.reduce((q,te,Te)=>(Te===0?q[te.label]=g:q[te.label]=te==null?void 0:te.value,q),{});r("filter",O,g,!0)},W=(g,O={})=>{r("buttonClick",g,"",O)},I=g=>{var O,F;p.value=(F=(O=oa.getColumnChild(Y.cloneDeep(g)))==null?void 0:O.filter(q=>(q==null?void 0:q.label)!==""&&(q==null?void 0:q.label)!=="操作"))==null?void 0:F.map(q=>({label:(q==null?void 0:q.label)??"",value:"",name:(q==null?void 0:q.prop)??"",isFormColHidden:q==null?void 0:q.isTableColHidden,width:2,prop:(q==null?void 0:q.prop)??""}))},A=a.ref(!1),ee=g=>{var O;if((g==null?void 0:g.buttonName)==="确认"&&(r("filter",g==null?void 0:g.content),A.value=(g==null?void 0:g.content)&&Object.values(g==null?void 0:g.content).length>0),(g==null?void 0:g.buttonName)==="清空"){const F=Y.cloneDeep(g==null?void 0:g.content);for(const q in F)F[q]="";p.value=(O=p.value)==null?void 0:O.map(q=>({...q,value:""})),r("filter",F),A.value=!1}y.value=!1},C=()=>{y.value=!y.value},_=()=>{var O,F;p.value=(O=p.value)==null?void 0:O.map(q=>({...q,value:""}));const g=(F=p.value)==null?void 0:F.reduce((q,te)=>(q[te.label]=te.value,q),{});r("filter",g)},E=a.ref(null);let k;return k=g=>{var te;if(!y.value)return;const O=(te=E==null?void 0:E.value)==null?void 0:te.$el,F=O==null?void 0:O.contains(g.target);let q=!1;document.querySelectorAll(".el-popover, .el-popper").forEach(Te=>{Te.contains(g.target)&&(q=!0)}),!F&&!q&&(y.value=!1)},a.onMounted(()=>{document.addEventListener("click",k),I(o.columns)}),a.onBeforeUnmount(()=>{document.removeEventListener("click",k)}),a.watch(()=>o.columns,()=>{I(o.columns)},{deep:!0,immediate:!0}),(g,O)=>{var Q,be,Z,de,je,wa,ie,P;const F=a.resolveComponent("el-icon"),q=a.resolveComponent("svg-icon"),te=a.resolveComponent("el-input"),Te=a.resolveComponent("el-upload"),Ee=a.resolveComponent("el-button");return l.pageLayout==="vertical"?(a.openBlock(),a.createElementBlock("div",Tp,[s()?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(l.compName?"table-name-wrap":""),style:a.normalizeStyle({background:(o==null?void 0:o.level)>1?"transparent":"var(--ssgroup-background)",paddingLeft:((o==null?void 0:o.level)-1)*12+"px",fontWeight:600-((o==null?void 0:o.level)-1)*100>=400?600-((o==null?void 0:o.level)-1)*100:400,fontSize:17-(o==null?void 0:o.level)>=14?17-(o==null?void 0:o.level)+"px":"14px"})},a.toDisplayString(l.compName),7)),a.createElementVNode("div",Ap,[o!=null&&o.filterShow?(a.openBlock(),a.createElementBlock("div",zp,[a.createVNode(Au,{trigger:"contextmenu",ref_key:"popOverRef",ref:E,title:"",width:800,placement:"bottom-start",isVisible:y.value,"onUpdate:isVisible":O[4]||(O[4]=j=>y.value=j)},{reference:a.withCtx(()=>{var j,ye,Se,ke;return[a.createVNode(te,{modelValue:c.value,"onUpdate:modelValue":O[0]||(O[0]=Ze=>c.value=Ze),style:{"min-width":"80px"},placeholder:A.value?(Se=(ye=(j=l.filterValues)==null?void 0:j.filter(Ze=>Ze))==null?void 0:ye.slice(0,3))==null?void 0:Se.join("/"):"搜索","prefix-icon":a.unref(al.search_default),clearable:"",onInput:S,disabled:((ke=p.value)==null?void 0:ke.length)===0},{suffix:a.withCtx(()=>{var Ze,ya;return[!c.value&&((ya=(Ze=l.filterValues)==null?void 0:Ze.filter(Ha=>Ha))!=null&&ya.join("/"))?(a.openBlock(),a.createBlock(F,{key:0,style:{cursor:"pointer"},onClick:_},{default:a.withCtx(()=>[a.createVNode(a.unref(al.circle_close_default))]),_:1})):a.createCommentVNode("",!0)]}),append:a.withCtx(()=>[a.createElementVNode("span",{title:"条件查询",onClick:a.withModifiers(C,["stop"])},[a.createVNode(q,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:a.withCtx(()=>[a.createElementVNode("div",{class:"form-content-value",onKeydown:O[1]||(O[1]=a.withModifiers(()=>{},["stop"])),onKeyup:O[2]||(O[2]=a.withModifiers(()=>{},["stop"])),onKeypress:O[3]||(O[3]=a.withModifiers(()=>{},["stop"]))},[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:p.value,buttonValue:v.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:v.value,isStartJustify:!1,onOnButtonClick:ee},null,8,["rowContents","buttonValue"]))],32)]),_:1},8,["isVisible"])])):a.createCommentVNode("",!0),l.buttons&&((Q=l.buttons)==null?void 0:Q.length)>0?(a.openBlock(),a.createElementBlock("div",Mp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((be=l.buttons)==null?void 0:be.filter(j=>l.isDevMode||(j==null?void 0:j.label)!=="修改模板"),(j,ye)=>{var Se;return a.openBlock(),a.createElementBlock("div",{class:"extra-contents",key:ye},[(j==null?void 0:j.type)==="upload"?(a.openBlock(),a.createBlock(Te,{key:0,class:"upload-button-wrap","on-change":L,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1,disabled:!!l.lockingPage},{default:a.withCtx(()=>{var ke;return[a.createElementVNode("div",{class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}]),onClick:Ze=>W(j==null?void 0:j.label)},[a.createVNode(q,{class:"table-op-icon",name:(ke=m==null?void 0:m.find(Ze=>(Ze==null?void 0:Ze.label)===(j==null?void 0:j.label)))==null?void 0:ke.icon},null,8,["name"]),a.createElementVNode("span",Op,a.toDisplayString(j==null?void 0:j.label),1)],10,Ip)]}),_:2},1032,["disabled"])):a.createCommentVNode("",!0),(j==null?void 0:j.type)==="popover"?(a.openBlock(),a.createBlock(pl._sfc_main,{key:1},{dropTitle:a.withCtx(()=>{var ke;return[a.createElementVNode("div",{class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}])},[a.createVNode(q,{class:"table-op-icon",name:(ke=m==null?void 0:m.find(Ze=>(Ze==null?void 0:Ze.label)===(j==null?void 0:j.label)))==null?void 0:ke.icon},null,8,["name"]),a.createElementVNode("span",Lp,a.toDisplayString(j==null?void 0:j.label),1)],2)]}),dropMenu:a.withCtx(()=>[a.createElementVNode("div",Rp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(j==null?void 0:j.contents,ke=>{var Ze,ya;return a.openBlock(),a.createElementBlock("div",{key:ke==null?void 0:ke.label,class:a.normalizeClass(["table-op-drop-item",{"is-disabled":!!l.lockingPage}]),onClick:Ha=>!l.lockingPage&&W(ke==null?void 0:ke.label)},[a.createTextVNode(a.toDisplayString(ke==null?void 0:ke.label),1),(Ze=ke==null?void 0:ke.label)!=null&&Ze.includes("选中")?(a.openBlock(),a.createElementBlock("span",Vp,"("+a.toDisplayString(l.selectNums)+")",1)):a.createCommentVNode("",!0),(ya=ke==null?void 0:ke.label)!=null&&ya.includes("全部")?(a.openBlock(),a.createElementBlock("span",Pp,"("+a.toDisplayString(l.dataNums)+")",1)):a.createCommentVNode("",!0)],10,$p)}),128))])]),_:2},1024)):a.createCommentVNode("",!0),!(j!=null&&j.type)||(j==null?void 0:j.type)==="methodButton"?(a.openBlock(),a.createElementBlock("div",{key:2,id:"themeButton",class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}]),onClick:ke=>!l.lockingPage&&W(j==null?void 0:j.label,j)},[a.createVNode(q,{class:"table-op-icon",name:(Se=m==null?void 0:m.find(ke=>(ke==null?void 0:ke.label)===(j==null?void 0:j.label)))==null?void 0:Se.icon},null,8,["name"]),a.createElementVNode("span",jp,a.toDisplayString(j==null?void 0:j.label),1)],10,Fp)):a.createCommentVNode("",!0)])}),128))])):a.createCommentVNode("",!0)])])):(a.openBlock(),a.createElementBlock("div",Hp,[a.createElementVNode("div",Up,[a.createElementVNode("div",qp,[a.createVNode(te,{modelValue:c.value,"onUpdate:modelValue":O[5]||(O[5]=j=>c.value=j),style:{"min-width":"80px"},placeholder:A.value?(je=(de=(Z=l.filterValues)==null?void 0:Z.filter(j=>j))==null?void 0:de.slice(0,3))==null?void 0:je.join("/"):"搜索","prefix-icon":a.unref(al.search_default),clearable:"",onInput:S,disabled:((wa=p.value)==null?void 0:wa.length)===0},{suffix:a.withCtx(()=>{var j,ye;return[!c.value&&((ye=(j=l.filterValues)==null?void 0:j.filter(Se=>Se))!=null&&ye.join("/"))?(a.openBlock(),a.createBlock(F,{key:0,style:{cursor:"pointer"},onClick:_},{default:a.withCtx(()=>[a.createVNode(a.unref(al.circle_close_default))]),_:1})):a.createCommentVNode("",!0)]}),append:a.withCtx(()=>[a.createElementVNode("span",{title:"条件查询",onClick:a.withModifiers(C,["stop"])},[a.createVNode(q,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]),l.buttons&&((ie=l.buttons)==null?void 0:ie.length)>0?(a.openBlock(),a.createElementBlock("div",Wp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((P=l.buttons)==null?void 0:P.filter(j=>l.isDevMode||(j==null?void 0:j.label)!=="修改模板"),(j,ye)=>{var Se;return a.openBlock(),a.createElementBlock("div",{class:"extra-contents",key:ye},[(j==null?void 0:j.type)==="upload"?(a.openBlock(),a.createBlock(Te,{key:0,class:"upload-button-wrap","on-change":L,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1},{default:a.withCtx(()=>{var ke;return[a.createElementVNode("div",Kp,[a.createVNode(q,{class:"table-op-icon",name:(ke=m==null?void 0:m.find(Ze=>(Ze==null?void 0:Ze.label)===(j==null?void 0:j.label)))==null?void 0:ke.icon},null,8,["name"]),a.createElementVNode("span",Gp,a.toDisplayString(j==null?void 0:j.label),1)])]}),_:2},1024)):a.createCommentVNode("",!0),(j==null?void 0:j.type)==="popover"?(a.openBlock(),a.createBlock(pl._sfc_main,{key:1},{dropTitle:a.withCtx(()=>[(j==null?void 0:j.type)==="popover"?(a.openBlock(),a.createBlock(Ee,{key:0,style:{background:"transparent",color:"#000000"}},{icon:a.withCtx(()=>{var ke;return[a.createVNode(q,{class:"table-op-icon",name:(ke=m==null?void 0:m.find(Ze=>(Ze==null?void 0:Ze.label)===(j==null?void 0:j.label)))==null?void 0:ke.icon},null,8,["name"])]}),default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(j==null?void 0:j.label),1)]),_:2},1024)):a.createCommentVNode("",!0)]),dropMenu:a.withCtx(()=>[a.createElementVNode("div",Yp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(j==null?void 0:j.contents,ke=>(a.openBlock(),a.createBlock(Ee,{key:ke==null?void 0:ke.label,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:Ze=>W(ke==null?void 0:ke.label)},{default:a.withCtx(()=>{var Ze,ya;return[a.createTextVNode(a.toDisplayString(ke==null?void 0:ke.label),1),(Ze=ke==null?void 0:ke.label)!=null&&Ze.includes("选中")?(a.openBlock(),a.createElementBlock("span",Jp,"("+a.toDisplayString(l.selectNums)+")",1)):a.createCommentVNode("",!0),(ya=ke==null?void 0:ke.label)!=null&&ya.includes("全部")?(a.openBlock(),a.createElementBlock("span",Xp,"("+a.toDisplayString(l.dataNums)+")",1)):a.createCommentVNode("",!0)]}),_:2},1032,["onClick"]))),128))])]),_:2},1024)):a.createCommentVNode("",!0),!(j!=null&&j.type)||(j==null?void 0:j.type)==="methodButton"?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}]),id:"themeButton",onClick:ke=>!l.lockingPage&&W(j==null?void 0:j.label,j)},[a.createVNode(q,{class:"table-op-icon",name:(Se=m==null?void 0:m.find(ke=>(ke==null?void 0:ke.label)===(j==null?void 0:j.label)))==null?void 0:Se.icon},null,8,["name"]),a.createElementVNode("span",Qp,a.toDisplayString(j==null?void 0:j.label),1)],10,Zp)):a.createCommentVNode("",!0)])}),128))])):a.createCommentVNode("",!0)])]))}}},af=Xl._export_sfc(ef,[["__scopeId","data-v-a6997ec1"]]),lf={__name:"index",props:{columns:Array,tableData:Array},setup(l){return(n,r)=>{const o=a.resolveComponent("el-table-column"),s=a.resolveComponent("el-table");return a.openBlock(),a.createBlock(s,{data:l.tableData,style:{width:"100%"},stripe:"","max-height":"500"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.columns,c=>{var y;return a.openBlock(),a.createBlock(o,{key:c==null?void 0:c.prop,label:c==null?void 0:c.label,prop:c==null?void 0:c.prop,fixed:(c==null?void 0:c.prop)==="operate"?"right":c==null?void 0:c.fixed,align:(c==null?void 0:c.align)??"left","show-overflow-tooltip":(c==null?void 0:c.showOverflowTooltip)??!0,width:c==null?void 0:c.width,"min-width":(c==null?void 0:c.minWidth)||((c==null?void 0:c.prop)==="operate"?80:(((y=c==null?void 0:c.label)==null?void 0:y.length)*2||4)*27)},{default:a.withCtx(p=>[a.renderSlot(n.$slots,"content",{row:p.row,column:p.column,$index:p.$index,scope:p}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.children,(v,m)=>(a.openBlock(),a.createBlock(pl._sfc_main$2,{key:m,column:v,tableData:l.tableData},a.createSlots({_:2},[a.renderList(n.$slots,(u,w)=>({name:w,fn:a.withCtx(({row:D,slotData:L,item:S,column:W})=>[a.renderSlot(n.$slots,w,a.mergeProps({ref_for:!0},L??D,{item:S??v,slotData:L??D,row:D,column:W,columnProp:v}))])}))]),1032,["column","tableData"]))),128))]),_:2},1032,["label","prop","fixed","align","show-overflow-tooltip","width","min-width"])}),128))]),_:3},8,["data"])}}};class rf extends $a.Loader{constructor(n){super(n),this.littleEndian=!0}load(n,r,o,s){const c=this,y=new $a.FileLoader(c.manager);y.setPath(c.path),y.setResponseType("arraybuffer"),y.setRequestHeader(c.requestHeader),y.setWithCredentials(c.withCredentials),y.load(n,function(p){try{r(c.parse(p))}catch(v){s?s(v):console.error(v),c.manager.itemError(n)}},o,s)}_getDataView(n,r,o,s){switch(o){case"F":return s===8?n.getFloat64(r,this.littleEndian):n.getFloat32(r,this.littleEndian);case"I":return s===1?n.getInt8(r):s===2?n.getInt16(r,this.littleEndian):n.getInt32(r,this.littleEndian);case"U":return s===1?n.getUint8(r):s===2?n.getUint16(r,this.littleEndian):n.getUint32(r,this.littleEndian)}}parse(n){function r(L,S){const W=L.length,I=new Uint8Array(S);let A=0,ee=0,C,_,E;do if(C=L[A++],C<32){if(C++,ee+C>S)throw new Error("Output buffer is not large enough");if(A+C>W)throw new Error("Invalid compressed data");do I[ee++]=L[A++];while(--C)}else{if(_=C>>5,E=ee-((C&31)<<8)-1,A>=W)throw new Error("Invalid compressed data");if(_===7&&(_+=L[A++],A>=W))throw new Error("Invalid compressed data");if(E-=L[A++],ee+_+2>S)throw new Error("Output buffer is not large enough");if(E<0)throw new Error("Invalid compressed data");if(E>=ee)throw new Error("Invalid compressed data");do I[ee++]=I[E++];while(--_+2)}while(A<W);return I}function o(L){const S={},W=new Uint8Array(L);let I="",A="",ee=0,C=!1;const _=W.length;for(;ee<_&&C===!1;){const O=String.fromCharCode(W[ee++]);O===`
1
+ "use strict";var _u=Object.defineProperty;var Cu=(l,n,r)=>n in l?_u(l,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):l[n]=r;var Wr=(l,n,r)=>Cu(l,typeof n!="symbol"?n+"":n,r);const a=require("vue"),al=require("./request-BC2w2vGr.cjs"),Vn=require("./dayjs.min-CSW85jLQ.cjs"),ol=require("./index--E8u7lHy.cjs"),pl=require("./index-BchGbZ1v.cjs"),Xl=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),$a=require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Dyd5heHe.cjs"),Y=require("./menu-7kw8Lwp_.cjs"),wr=require("./index-CUw6nGTo.cjs"),Ci=require("./threeViewerHost-B3elQtpE.cjs"),oa=require("./index-T25jN7df.cjs"),Eu=require("./index-DsNHJYr-.cjs"),Dr=require("./index-CW4qJdP8.cjs"),es=require("./index-Bio1_C_H.cjs"),Ks=require("./index-DOQApax-.cjs"),Fo=require("./index-W8p89C7t.cjs"),dn=require("./index-DEfKSijb.cjs");;/* empty css */const Ei=require("./isString-DNBlKLZH.cjs"),as=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),Gs=require("./index-BVaHwt5f.cjs"),Su=require("./index-BTgJ9oD-.cjs"),Ln=require("./MTLLoader-Dx_OCevv.cjs"),Du=require("./URDFLoader-Uh4bBb-n.cjs");var Bu="[object Boolean]";function Ys(l){return l===!0||l===!1||al.isObjectLike(l)&&al.baseGetTag(l)==Bu}function Nu(l){return l===void 0}const Tu=l=>l.match(/\((.*)\)/)[1],Au={__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(l){const n=l,r=a.ref(null),o=a.ref(!1),s=a.ref(null);return a.watch(()=>n==null?void 0:n.isVisible,()=>{o.value=n==null?void 0:n.isVisible},{deep:!0,immediate:!0}),a.watch(()=>s.value,()=>{a.nextTick(()=>{var c,y;(y=(c=r.value)==null?void 0:c.updatePopper)==null||y.call(c)})},{deep:!0,immediate:!0}),(c,y)=>{const p=a.resolveComponent("el-popover");return a.openBlock(),a.createBlock(p,{visible:o.value,"onUpdate:visible":y[0]||(y[0]=v=>o.value=v),trigger:n.trigger,title:n==null?void 0:n.title,placement:n==null?void 0:n.placement,width:n==null?void 0:n.width,ref_key:"popOverRef",ref:r,"trigger-keys":"[]"},{reference:a.withCtx(()=>[a.createElementVNode("div",null,[a.renderSlot(c.$slots,"reference",{ref_key:"referenceRef",ref:s})])]),default:a.withCtx(()=>[a.createElementVNode("div",null,[a.renderSlot(c.$slots,"content")])]),_:3},8,["visible","trigger","title","placement","width"])}}},zu={__name:"index",props:{value:{type:[String,Number],default:""}},setup(l){const n=l,r=a.computed(()=>{const o=String(n.value??"");return o==="已完成"?"task-status-completed":o==="进行中"?"task-status-running":o==="终止"||o==="暂停"?"task-status-stopped":""});return(o,s)=>l.value!==void 0&&l.value!==null?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(["task-status-tag",r.value])},a.toDisplayString(l.value===0?"0":l.value),3)):a.createCommentVNode("",!0)}},Mu=Xl._export_sfc(zu,[["__scopeId","data-v-d81f59b4"]]);function Iu(l,n,r,o={}){if(!l||!n||!r||r.length!==4)return;const s=l.getContext("2d");if(!s)return;const{color:c="rgba(255, 235, 59, 0.3)",strokeWidth:y=2,fillOpacity:p=.2}=o,v=l.getBoundingClientRect(),m=n.getBoundingClientRect(),u=n.naturalWidth,w=n.naturalHeight,D=m.width/u,L=m.height/w,S=Math.min(D,L),W=u*S,I=w*S,A=(v.width-W)/2,ee=(v.height-I)/2,C=r.map(([E,k])=>{const g=A+E*W,O=ee+k*I;return{x:g,y:O}});s.clearRect(0,0,l.width,l.height),s.beginPath(),s.moveTo(C[0].x,C[0].y);for(let E=1;E<C.length;E++)s.lineTo(C[E].x,C[E].y);s.closePath();const _=c.replace(/[\d.]+\)$/,`${p})`);s.fillStyle=_,s.fill(),s.strokeStyle=c.replace(/[\d.]+\)$/,"1)"),s.lineWidth=y,s.stroke()}function wo(l){if(!l)return;const n=l.getContext("2d");n&&n.clearRect(0,0,l.width,l.height)}function ls(l,n){if(!l||!n)return null;const r=l[n];return!r||!r.bboxNorm||!Array.isArray(r.bboxNorm)||r.bboxNorm.length!==4?null:{bboxNorm:r.bboxNorm,imageName:r.imageName||""}}const Ou={key:0,class:"ocr-img-preview-root"},Lu={class:"ocr-img-preview-window"},Ru={key:0,class:"img-preview-body"},$u={class:"img-preview-header"},Vu={class:"img-header-left"},Pu={class:"img-name"},Fu={key:0,class:"img-header-right"},ju={class:"img-index"},Hu={key:0,class:"img-thumb-list"},Uu=["onClick"],qu={key:1,class:"thumb-placeholder"},Wu={class:"thumb-name"},Ku={class:"img-preview-container"},Gu={key:0,class:"img-placeholder"},Yu={key:2,class:"img-placeholder"},Ju={key:0},Xu={key:1},Zu={key:1,class:"img-placeholder"},Qu=a.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(l,{emit:n}){const r=l,o=n,s=a.computed({get:()=>r.visible,set:P=>o("update:visible",P)});let c=!1,y="",p=0,v=0,m=0,u=0,w=0,D=0,L=null;const S=P=>{var ye,Se;const j=(Se=(ye=P==null?void 0:P.target)==null?void 0:ye.closest)==null?void 0:Se.call(ye,".ocr-img-preview-window");return j||document.querySelector(".ocr-img-preview-window")},W=P=>{if(!P||P==="none")return{tx:0,ty:0};let j=P.match(/matrix\(([^)]+)\)/);if(j){const ye=j[1].split(",").map(Se=>Number(Se.trim()));return{tx:(ye==null?void 0:ye[4])||0,ty:(ye==null?void 0:ye[5])||0}}if(j=P.match(/matrix3d\(([^)]+)\)/),j){const ye=j[1].split(",").map(Se=>Number(Se.trim()));return{tx:(ye==null?void 0:ye[12])||0,ty:(ye==null?void 0:ye[13])||0}}return j=P.match(/translate\(\s*([-\d.]+)px\s*,\s*([-\d.]+)px\s*\)/),j?{tx:Number(j[1])||0,ty:Number(j[2])||0}:{tx:0,ty:0}},I=(P,j,ye)=>{P.style.transform=`translate(${j}px, ${ye}px)`},A=P=>{const j=S(P);if(!j)return;c=!0,L=j,y="move",p=P.clientX,v=P.clientY;const ye=window.getComputedStyle(j),{tx:Se,ty:ke}=W(ye.transform);w=Se,D=ke,document.addEventListener("mousemove",C),document.addEventListener("mouseup",_)},ee=(P,j)=>{const ye=S(P);if(!ye)return;c=!0,L=ye,y=j,p=P.clientX,v=P.clientY;const Se=ye.getBoundingClientRect();m=Se.width,u=Se.height;const ke=window.getComputedStyle(ye),{tx:Ze,ty:ya}=W(ke.transform);w=Ze,D=ya,document.addEventListener("mousemove",C),document.addEventListener("mouseup",_)},C=P=>{if(!c||!L)return;const j=P.clientX-p,ye=P.clientY-v,Se=360,ke=420;let Ze=m,ya=u,Ha=w,re=D;if(y==="move"){Ha=w+j,re=D+ye,I(L,Ha,re);return}if(y.includes("right")&&(Ze=Math.max(Se,m+j)),y.includes("bottom")&&(ya=Math.max(ke,u+ye)),y.includes("left")){const la=m-j;la<Se?(Ze=Se,Ha=w+(m-Se)):(Ze=la,Ha=w+j)}if(y.includes("top")){const la=u-ye;la<ke?(ya=ke,re=D+(u-ke)):(ya=la,re=D+ye)}L.style.width=`${Ze}px`,L.style.height=`${ya}px`,I(L,Ha,re)},_=()=>{c=!1,y="",L=null,document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",_)},E=a.ref([]),k=a.ref(!1);a.watch(()=>r.images,async P=>{if(!Array.isArray(P)||P.length===0){E.value=[];return}k.value=!0;const j=[];for(const ye of P)if(ye.url&&!ye.url.startsWith("blob:")&&!ye.url.startsWith("http"))try{const Se=await $a.downloadFile(ye.url),ke=URL.createObjectURL(Se);j.push({...ye,blobUrl:ke})}catch(Se){console.error(`Failed to load image for preview: ${ye.url}`,Se),j.push({...ye,blobUrl:""})}else j.push({...ye,blobUrl:ye.url});E.value=j,k.value=!1},{deep:!0,immediate:!0});const g=a.ref(0),O=a.ref(null),F=a.ref(null),q=a.computed(()=>E.value[g.value]||null),te=()=>{if(!E.value.length){g.value=0;return}if(r.defaultImageName){const P=E.value.findIndex(j=>(j==null?void 0:j.name)===r.defaultImageName);g.value=P>=0?P:0}else g.value=0},Te=P=>{if(!E.value.length)return;const j=Math.max(0,Math.min(P,E.value.length-1));g.value=j},Ee=()=>Te(g.value-1),Q=()=>Te(g.value+1),be=P=>{if(!P)return;const j=E.value.findIndex(ye=>(ye==null?void 0:ye.name)===P);j>=0&&(g.value=j)},Z=()=>{if(!F.value)return;const P=F.value.parentElement;if(!P)return;const j=P.getBoundingClientRect();F.value.width=j.width,F.value.height=j.height},de=()=>{var Se,ke;if(!F.value||!O.value||!r.focusedFieldName){F.value&&wo(F.value);return}const P=(Se=O.value.$el)==null?void 0:Se.querySelector("img");if(!P)return;if(!P.complete||P.naturalWidth===0){P.onload=()=>{a.nextTick(()=>{de()})};return}const j=((ke=q.value)==null?void 0:ke.name)||"",ye=ls(r.fieldMeta,r.focusedFieldName);if(!ye){wo(F.value);return}if(ye.imageName!==j){wo(F.value);return}Z(),Iu(F.value,P,ye.bboxNorm)},je=()=>{a.nextTick(()=>{Z(),de()})};a.watch(()=>r.focusedFieldName,()=>{if(!s.value)return;const P=ls(r.fieldMeta,r.focusedFieldName);P!=null&&P.imageName&&be(P.imageName),a.nextTick(()=>{de()})}),a.watch(()=>{var P;return(P=q.value)==null?void 0:P.name},()=>{s.value&&a.nextTick(()=>{F.value&&wo(F.value),de()})}),a.watch(()=>r.visible,P=>{P?(te(),a.nextTick(()=>{Z(),de()})):F.value&&wo(F.value)}),a.watch(()=>r.defaultImageName,()=>{s.value&&te()});let wa=null;a.onMounted(()=>{var P;typeof ResizeObserver<"u"&&(wa=new ResizeObserver(()=>{Z(),a.nextTick(()=>{de()})}),(P=F.value)!=null&&P.parentElement&&wa.observe(F.value.parentElement))}),a.onUnmounted(()=>{wa&&(wa.disconnect(),wa=null),document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",_)});const ie=()=>{F.value&&wo(F.value),o("update:visible",!1),o("close")};return(P,j)=>{var ya,Ha;const ye=a.resolveComponent("el-button"),Se=a.resolveComponent("el-image"),ke=a.resolveComponent("Loading"),Ze=a.resolveComponent("el-icon");return s.value?(a.openBlock(),a.createElementBlock("div",Ou,[j[12]||(j[12]=a.createElementVNode("div",{class:"ocr-img-preview-backdrop"},null,-1)),a.createElementVNode("div",Lu,[a.createElementVNode("div",{class:"ocr-img-preview-header",onMousedown:a.withModifiers(A,["stop"])},[j[8]||(j[8]=a.createElementVNode("span",{class:"ocr-img-preview-title"},"文件预览",-1)),a.createElementVNode("button",{type:"button",class:"ocr-img-preview-close",onClick:ie},"×")],32),a.createElementVNode("div",{class:"resizable-handle top",onMousedown:j[0]||(j[0]=a.withModifiers(re=>ee(re,"top"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle right",onMousedown:j[1]||(j[1]=a.withModifiers(re=>ee(re,"right"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom",onMousedown:j[2]||(j[2]=a.withModifiers(re=>ee(re,"bottom"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle left",onMousedown:j[3]||(j[3]=a.withModifiers(re=>ee(re,"left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle top-left",onMousedown:j[4]||(j[4]=a.withModifiers(re=>ee(re,"top-left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle top-right",onMousedown:j[5]||(j[5]=a.withModifiers(re=>ee(re,"top-right"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom-left",onMousedown:j[6]||(j[6]=a.withModifiers(re=>ee(re,"bottom-left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom-right",onMousedown:j[7]||(j[7]=a.withModifiers(re=>ee(re,"bottom-right"),["stop"]))},null,32),q.value?(a.openBlock(),a.createElementBlock("div",Ru,[a.createElementVNode("div",$u,[a.createElementVNode("div",Vu,[a.createElementVNode("span",Pu,a.toDisplayString(q.value.name?q.value.name+(q.value.url&&q.value.url.lastIndexOf(".")!==-1?q.value.url.substring(q.value.url.lastIndexOf(".")):""):""),1)]),E.value.length>1?(a.openBlock(),a.createElementBlock("div",Fu,[a.createVNode(ye,{size:"small",disabled:g.value===0,onClick:Ee},{default:a.withCtx(()=>j[9]||(j[9]=[a.createTextVNode("上一张")])),_:1,__:[9]},8,["disabled"]),a.createElementVNode("span",ju,a.toDisplayString(g.value+1)+" / "+a.toDisplayString(E.value.length),1),a.createVNode(ye,{size:"small",disabled:g.value===E.value.length-1,onClick:Q},{default:a.withCtx(()=>j[10]||(j[10]=[a.createTextVNode("下一张")])),_:1,__:[10]},8,["disabled"])])):a.createCommentVNode("",!0)]),E.value.length>1?(a.openBlock(),a.createElementBlock("div",Hu,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(E.value,(re,la)=>(a.openBlock(),a.createElementBlock("div",{key:(re.name||"")+"-"+la,class:a.normalizeClass(["img-thumb-item",{active:la===g.value}]),onClick:Ve=>Te(la)},[re!=null&&re.blobUrl?(a.openBlock(),a.createBlock(Se,{key:0,src:re.blobUrl,fit:"cover",class:"thumb-image","preview-src-list":[re.blobUrl],"initial-index":0},null,8,["src","preview-src-list"])):(a.openBlock(),a.createElementBlock("div",qu,"加载失败")),a.createElementVNode("div",Wu,a.toDisplayString(re.name||"-"),1)],10,Uu))),128))])):a.createCommentVNode("",!0),a.createElementVNode("div",Ku,[k.value?(a.openBlock(),a.createElementBlock("div",Gu,[a.createVNode(Ze,{class:"is-loading"},{default:a.withCtx(()=>[a.createVNode(ke)]),_:1}),j[11]||(j[11]=a.createElementVNode("span",null,"图片加载中...",-1))])):(ya=q.value)!=null&&ya.blobUrl?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createVNode(Se,{ref_key:"imageRef",ref:O,src:q.value.blobUrl,fit:"contain",class:"preview-image","preview-src-list":[q.value.blobUrl],onLoad:je},null,8,["src","preview-src-list"]),a.createElementVNode("canvas",{ref_key:"canvasRef",ref:F,class:"highlight-canvas"},null,512)],64)):(a.openBlock(),a.createElementBlock("div",Yu,[(Ha=q.value)!=null&&Ha.url?(a.openBlock(),a.createElementBlock("span",Ju,"图片加载失败")):(a.openBlock(),a.createElementBlock("span",Xu,"暂无图片"))]))])])):(a.openBlock(),a.createElementBlock("div",Zu,"暂无图片"))])])):a.createCommentVNode("",!0)}}}),ed=Xl._export_sfc(Qu,[["__scopeId","data-v-48a4ecb1"]]),ad={class:"cert-preview-body"},ld={key:0,class:"pdf-preview-container"},rd={class:"thumbs"},nd=["onClick"],od={class:"thumb-img"},id=["src"],td={key:1,class:"thumb-loading"},sd={class:"thumb-title"},cd={class:"viewer"},ud={key:0,class:"viewer-img-wrap"},dd=["src"],pd={key:1,class:"viewer-loading"},fd=a.defineComponent({__name:"CertificatePreview",props:{visible:{type:Boolean},versions:{}},emits:["update:visible"],setup(l,{emit:n}){const r=l,o=n,s=a.ref(""),c=a.ref(""),y=a.computed(()=>(r.versions||[]).find(S=>String(S.versionId)===String(s.value))),p=a.ref({}),v=a.ref(""),m=a.ref("证书附件.pdf"),u=()=>{try{Object.values(p.value||{}).forEach(S=>{S&&URL.revokeObjectURL(S)}),v.value&&URL.revokeObjectURL(v.value)}catch{}p.value={},v.value=""},w=async S=>{if(!S||S.fileType==="pdf")return;const W=Array.isArray(S.images)?S.images:[];for(const I of W){const A=I==null?void 0:I.url;if(!(!A||p.value[A]))try{const ee=await Y.platformDownloadFile({url:A}),C=URL.createObjectURL(ee.data);p.value={...p.value,[A]:C}}catch{}}},D=async S=>{var I;if(!S||S.fileType!=="pdf"){v.value="";return}const W=S.sourceUrl||"";if(!W){v.value="";return}if(v.value){try{URL.revokeObjectURL(v.value)}catch{}v.value=""}try{console.log("[CertificatePreview] 下载PDF附件:",{url:W,versionId:S==null?void 0:S.versionId,certNo:S==null?void 0:S.certNo});const A=await Y.platformDownloadFile({url:W});console.log("[CertificatePreview] PDF响应:",{url:W,status:A==null?void 0:A.status,size:(I=A==null?void 0:A.data)==null?void 0:I.size});const ee=URL.createObjectURL(A.data);v.value=ee;const C=S.certNo?String(S.certNo):"";m.value=C?`${C}.pdf`:"证书附件.pdf"}catch(A){console.error("[CertificatePreview] PDF加载失败:",{url:W,error:A}),v.value=""}};a.watch(()=>r.visible,async S=>{var I;if(!S){u();return}const W=(I=r.versions)==null?void 0:I[0];s.value=(W==null?void 0:W.versionId)||"",await w(W),await D(W)},{immediate:!0}),a.watch(()=>s.value,async()=>{var W,I;const S=y.value;if(!S){c.value="",v.value="";return}if(S.fileType==="pdf"){c.value="",await D(S);return}v.value="",c.value=((I=(W=S.images)==null?void 0:W[0])==null?void 0:I.url)||"",await w(S)},{immediate:!0});const L=()=>{o("update:visible",!1),u()};return a.onBeforeUnmount(()=>{u()}),(S,W)=>{const I=a.resolveComponent("el-empty"),A=a.resolveComponent("el-tab-pane"),ee=a.resolveComponent("el-tabs"),C=a.resolveComponent("el-button"),_=a.resolveComponent("el-dialog");return a.openBlock(),a.createBlock(_,{"model-value":S.visible,title:"证书附件预览",width:"1100px","close-on-click-modal":!1,onClose:L},{footer:a.withCtx(()=>[a.createVNode(C,{id:"themeBorderButton",onClick:L},{default:a.withCtx(()=>W[1]||(W[1]=[a.createTextVNode("关闭")])),_:1,__:[1]})]),default:a.withCtx(()=>[S.versions&&S.versions.length>0?(a.openBlock(),a.createBlock(ee,{key:0,modelValue:s.value,"onUpdate:modelValue":W[0]||(W[0]=E=>s.value=E),type:"card",class:"cert-version-tabs"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(S.versions,E=>(a.openBlock(),a.createBlock(A,{key:E.versionId,name:E.versionId,label:E.label},{default:a.withCtx(()=>[a.createElementVNode("div",ad,[E.fileType==="pdf"?(a.openBlock(),a.createElementBlock("div",ld,[v.value?(a.openBlock(),a.createBlock(pl.SsFilePreview,{key:1,fileName:m.value,blobUrl:v.value},null,8,["fileName","blobUrl"])):(a.openBlock(),a.createBlock(I,{key:0,description:"加载中"}))])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("div",rd,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(E.images||[],k=>(a.openBlock(),a.createElementBlock("div",{key:k.url,class:a.normalizeClass(["thumb",{active:k.url===c.value}]),onClick:g=>c.value=k.url},[a.createElementVNode("div",od,[p.value[k.url]?(a.openBlock(),a.createElementBlock("img",{key:0,src:p.value[k.url]},null,8,id)):(a.openBlock(),a.createElementBlock("div",td,"加载中"))]),a.createElementVNode("div",sd,a.toDisplayString(k.name),1)],10,nd))),128))]),a.createElementVNode("div",cd,[c.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[p.value[c.value]?(a.openBlock(),a.createElementBlock("div",ud,[a.createElementVNode("img",{class:"viewer-img",src:p.value[c.value]},null,8,dd)])):(a.openBlock(),a.createElementBlock("div",pd,"加载中"))],64)):(a.openBlock(),a.createBlock(I,{key:0,description:"暂无图片"}))])],64))])]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue"])):(a.openBlock(),a.createBlock(I,{key:1,description:"暂无可预览的证书附件"}))]),_:1},8,["model-value"])}}}),hd=Xl._export_sfc(fd,[["__scopeId","data-v-220703c0"]]),vd={class:"ocr-candidate-wrap"},md={class:"ocr-candidate-left"},yd={key:1},gd={key:0},bd={key:1},kd={key:2},xd={key:3},wd={key:0,class:"ocr-candidate-right"},_d={class:"ocr-candidate-actions"},Cd={key:1},Ed={class:"dialog-footer"},Sd={__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(l,{emit:n}){const r=(g=[])=>{const O=[],F=q=>{(q||[]).forEach(te=>{if(!te)return;const Te=te.children||te.childrens||te.columns;Array.isArray(Te)&&Te.length>0?F(Te):O.push(te)})};return F(g),O},o=l,s=n,c=a.computed(()=>{var g;return((g=D.value)==null?void 0:g.allowAdd)!==!1}),y=a.computed(()=>{var g;return((g=D.value)==null?void 0:g.allowReplace)!==!1}),p=g=>{if(!g)return[];if(Array.isArray(g))return g;if(typeof g=="string")try{const O=JSON.parse(g);return Array.isArray(O)?O:[]}catch{return[]}return[]},v=g=>{s("preview-file",g)},m=a.ref([]),u=a.ref(0),w=a.ref("");a.watch(()=>o.candidates,g=>{var O,F;m.value=(g||[]).map(q=>({...q,...(q==null?void 0:q.ocrRow)||{},selectedTargetId:(q==null?void 0:q.selectedTargetId)||"",__decision:q==null?void 0:q.__decision})),u.value=0,w.value=((F=(O=m.value)==null?void 0:O[0])==null?void 0:F.selectedTargetId)||""},{immediate:!0,deep:!0}),a.watch(()=>o.visible,g=>{var O,F;g&&(u.value=0,w.value=((F=(O=m.value)==null?void 0:O[0])==null?void 0:F.selectedTargetId)||"")});const D=a.computed(()=>{var O;const g=Number(u.value||0);return((O=m.value||[])==null?void 0:O[g])||null}),L=a.computed(()=>(r(o.columns||[])||[]).filter(F=>F&&F.prop).filter(F=>F.type!=="operate"&&F.label!=="操作"&&F.prop!=="operate")),S=a.computed(()=>L.value.filter(g=>g.label!=="证书附件"&&g.prop!=="证书附件")),W=g=>{if(!g)return;const O=(m.value||[]).findIndex(F=>(F==null?void 0:F.idx)===(g==null?void 0:g.idx));O>-1&&(u.value=O,w.value=(g==null?void 0:g.selectedTargetId)||"")},I=g=>{if(!g){w.value="";return}w.value=String((g==null?void 0:g.id)??"")},A=(g,O="")=>{const F=Number(u.value||0),q=m.value||[],te=q[F];te&&(te.__decision=g,te.selectedTargetId=O,w.value=O,m.value=[...q])},ee=()=>A("skip",""),C=()=>A("add",""),_=()=>{if(!w.value){al.ElMessage.warning("请先选择要替换的目标记录");return}A("replace",w.value)},E=()=>{s("update:visible",!1)},k=()=>{const g=m.value||[];if(g.find(F=>(F==null?void 0:F.__decision)==="replace"&&!(F!=null&&F.selectedTargetId))){al.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}s("submit",g),s("update:visible",!1)};return(g,O)=>{const F=a.resolveComponent("el-table-column"),q=a.resolveComponent("svg-icon"),te=a.resolveComponent("el-table"),Te=a.resolveComponent("el-button"),Ee=a.resolveComponent("el-alert");return a.openBlock(),a.createBlock(wr.ssDialog,{title:"OCR候选匹配",visible:l.visible,"close-on-click-modal":!1,width:"90%",style:{maxWidth:"1200px"},onBeforeDestroy:E},{default:a.withCtx(()=>{var Q,be;return[a.createElementVNode("div",vd,[a.createElementVNode("div",md,[O[0]||(O[0]=a.createElementVNode("div",{class:"ocr-candidate-title"},"待处理OCR行(可跳过)",-1)),a.createVNode(te,{data:m.value,border:"",stripe:"","max-height":"300",style:{width:"100%"},"highlight-current-row":"",onCurrentChange:W},{default:a.withCtx(()=>[a.createVNode(F,{type:"index",label:"序号",width:"60"}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(S.value,Z=>(a.openBlock(),a.createBlock(F,{key:Z.prop,label:Z.label,prop:Z.prop,"min-width":Z.minWidth||160},{default:a.withCtx(({row:de})=>[Z.label==="证书附件"||Z.prop==="证书附件"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[p(de==null?void 0:de[Z.prop]).length>0?(a.openBlock(),a.createBlock(q,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:a.withModifiers(je=>v({row:de,prop:Z.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(a.openBlock(),a.createElementBlock("span",yd,"-"))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString((de==null?void 0:de[Z.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128)),a.createVNode(F,{label:"候选数",width:"90",fixed:"right"},{default:a.withCtx(({row:Z})=>[a.createTextVNode(a.toDisplayString(((Z==null?void 0:Z.candidates)||[]).length),1)]),_:1}),a.createVNode(F,{label:"处理状态",width:"120",fixed:"right"},{default:a.withCtx(({row:Z})=>[(Z==null?void 0:Z.__decision)==="replace"?(a.openBlock(),a.createElementBlock("span",gd,"替换")):(Z==null?void 0:Z.__decision)==="add"?(a.openBlock(),a.createElementBlock("span",bd,"新增")):(Z==null?void 0:Z.__decision)==="skip"?(a.openBlock(),a.createElementBlock("span",kd,"跳过")):(a.openBlock(),a.createElementBlock("span",xd,"未处理"))]),_:1})]),_:1},8,["data"])]),m.value&&m.value.length>0?(a.openBlock(),a.createElementBlock("div",wd,[O[4]||(O[4]=a.createElementVNode("div",{class:"ocr-candidate-title"},"当前行候选记录(同编号)",-1)),a.createElementVNode("div",_d,[a.createVNode(Te,{id:"themeBorderButton",onClick:ee},{default:a.withCtx(()=>O[1]||(O[1]=[a.createTextVNode("跳过本行")])),_:1,__:[1]}),a.createVNode(Te,{id:"themeBorderButton",onClick:C,disabled:!c.value},{default:a.withCtx(()=>O[2]||(O[2]=[a.createTextVNode("新增本行")])),_:1,__:[2]},8,["disabled"]),a.createVNode(Te,{class:"ok-button",id:"themeButton",onClick:_,disabled:!y.value||!w.value},{default:a.withCtx(()=>O[3]||(O[3]=[a.createTextVNode("替换选中记录")])),_:1,__:[3]},8,["disabled"])]),(((Q=D.value)==null?void 0:Q.candidates)||[]).length===0?(a.openBlock(),a.createBlock(Ee,{key:0,title:"该编号暂无候选记录,可选择“新增本行”或“跳过本行”。",type:"info",closable:!1,"show-icon":"",style:{margin:"8px 0"}})):a.createCommentVNode("",!0),a.createVNode(te,{data:((be=D.value)==null?void 0:be.candidates)||[],border:"",stripe:"","max-height":"300",style:{width:"100%"},onCurrentChange:I,"highlight-current-row":""},{default:a.withCtx(()=>[a.createVNode(F,{type:"index",label:"序号",width:"60"}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(L.value,Z=>(a.openBlock(),a.createBlock(F,{key:Z.prop,label:Z.label,prop:Z.prop,"min-width":Z.minWidth||160},{default:a.withCtx(({row:de})=>[Z.label==="证书附件"||Z.prop==="证书附件"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[p(de==null?void 0:de[Z.prop]).length>0?(a.openBlock(),a.createBlock(q,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:a.withModifiers(je=>v({row:de,prop:Z.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(a.openBlock(),a.createElementBlock("span",Cd,"-"))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString((de==null?void 0:de[Z.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128))]),_:1},8,["data"])])):a.createCommentVNode("",!0)])]}),footer:a.withCtx(()=>[a.createElementVNode("div",Ed,[a.createVNode(Te,{id:"themeBorderButton",onClick:E},{default:a.withCtx(()=>O[5]||(O[5]=[a.createTextVNode("取消")])),_:1,__:[5]}),a.createVNode(Te,{class:"ok-button",id:"themeButton",onClick:k},{default:a.withCtx(()=>O[6]||(O[6]=[a.createTextVNode("提交已处理")])),_:1,__:[6]})])]),_:1},8,["visible"])}}},Dd=Xl._export_sfc(Sd,[["__scopeId","data-v-89e0489c"]]),Bd={class:"ocr-preview-content"},Nd={class:"ocr-preview-tip"},Td={class:"ocr-preview-table"},Ad={style:{display:"flex","align-items":"center",gap:"8px"}},zd={class:"dialog-footer"},Md={__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(l,{emit:n}){const r=l,o=n,s=a.ref([]),c=a.ref([]),y=a.ref([]);a.watch(()=>r.visible,L=>{L&&(s.value=JSON.parse(JSON.stringify(r.ocrPreviewData)),c.value=JSON.parse(JSON.stringify(r.ocrPreviewColumns)),y.value=[...r.ocrSelectedFields])});const p=(L,S)=>{const W=[...y.value];if(S)W.includes(L)||W.push(L);else{const I=W.indexOf(L);I>-1&&W.splice(I,1)}y.value=W,o("update:ocrSelectedFields",W)},v=(L,S,W)=>{o("fieldChange",{rowIndex:L,prop:S,value:W})},m=()=>{o("update:ocrPreviewData",s.value),o("confirm",s.value),o("update:visible",!1)},u=()=>{o("update:visible",!1)},w=L=>typeof L!="number"?"-":`${(L*100).toFixed(1)}%`,D=L=>typeof L!="number"?"#606266":L>=.9?"#67c23a":L>=.7?"#e6a23c":"#f56c6c";return(L,S)=>{const W=a.resolveComponent("el-alert"),I=a.resolveComponent("el-table-column"),A=a.resolveComponent("el-checkbox"),ee=a.resolveComponent("el-input"),C=a.resolveComponent("el-table"),_=a.resolveComponent("el-button");return a.openBlock(),a.createBlock(wr.ssDialog,{title:"OCR识别结果预览",visible:l.visible,onBeforeDestroy:u,width:"90%",style:{maxWidth:"1200px"}},{default:a.withCtx(()=>[a.createElementVNode("div",Bd,[a.createElementVNode("div",Nd,[a.createVNode(W,{title:"请核对识别结果。系统将按 编号+名称+制造厂 规则匹配并替换;未唯一命中但有编号的,将进入候选选择;无编号则直接新增。",type:"info",closable:!1,"show-icon":""})]),a.createElementVNode("div",Td,[a.createVNode(C,{data:s.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:a.withCtx(()=>[a.createVNode(I,{type:"index",label:"序号",width:"60",fixed:""}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.value,E=>(a.openBlock(),a.createBlock(I,{key:E.prop,prop:E.prop,"min-width":E.minWidth||230,"class-name":E.isAccuracy?"accuracy-column":""},{header:a.withCtx(()=>[a.createElementVNode("div",Ad,[E.isAccuracy?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(A,{key:0,"model-value":y.value.includes(E.prop),onChange:k=>p(E.prop,k),onClick:S[0]||(S[0]=a.withModifiers(()=>{},["stop"]))},null,8,["model-value","onChange"])),a.createElementVNode("span",null,a.toDisplayString(E.label),1)])]),default:a.withCtx(({row:k,$index:g})=>[E.isAccuracy?(a.openBlock(),a.createElementBlock("span",{key:0,class:"accuracy-value",style:a.normalizeStyle({color:D(k[E.prop]),fontWeight:500})},a.toDisplayString(w(k[E.prop])),5)):(a.openBlock(),a.createBlock(ee,{key:1,modelValue:k[E.prop],"onUpdate:modelValue":O=>k[E.prop]=O,size:"small",placeholder:"请输入"+E.label,onChange:O=>v(g,E.prop,O)},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"]))]),_:2},1032,["prop","min-width","class-name"]))),128))]),_:1},8,["data"])])])]),footer:a.withCtx(()=>[a.createElementVNode("div",zd,[a.createVNode(_,{onClick:u,id:"themeBorderButton"},{default:a.withCtx(()=>S[1]||(S[1]=[a.createTextVNode("取消")])),_:1,__:[1]}),a.createVNode(_,{class:"ok-button",onClick:m,id:"themeButton"},{default:a.withCtx(()=>S[2]||(S[2]=[a.createTextVNode("确认")])),_:1,__:[2]})])]),_:1},8,["visible"])}}},Id=Xl._export_sfc(Md,[["__scopeId","data-v-df66eb1f"]]),So=l=>{var o;let n=l;(n==null?void 0:n[0])==="("&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1));let r=(o=$a.analyzeSplitToContent(n,","))==null?void 0:o.map(s=>((s==null?void 0:s[(s==null?void 0:s.length)-1])===","&&(s=s==null?void 0:s.slice(0,(s==null?void 0:s.length)-1)),Di(s)));return r=r==null?void 0:r.join(","),r};let Oa="$R",to="[Any]";const Od=l=>{var y,p,v,m;let n={},r=l==null?void 0:l[0],o=(p=(y=r==null?void 0:r.replace("{",Oa))==null?void 0:y.split(Oa))==null?void 0:p[0];(o==null?void 0:o[0])==="*"&&(o=o==null?void 0:o.slice(1,o==null?void 0:o.length)),o=o==null?void 0:o.split(":"),n.group=o;let s=l==null?void 0:l[1],c;return s!=null&&s.includes("{")?c=(m=(v=s==null?void 0:s.replaceAll("{",""))==null?void 0:v.replaceAll("}",""))==null?void 0:m.replaceAll(to,""):c=s==null?void 0:s.replaceAll(to,""),(c==null?void 0:c[0])==="$"&&(c=c==null?void 0:c.slice(1,c==null?void 0:c.length)),n.filter=c,n},Ld=l=>{var w,D,L,S,W,I;let n=[],r=[],o=[],s=l==null?void 0:l.map(A=>{let ee=A==null?void 0:A.indexOf("@Form(");return ee>0?A==null?void 0:A.substring(0,ee):A}),c="",y=$a.analyzeSplitToContent(s==null?void 0:s[0],":");r=(w=y==null?void 0:y.filter(A=>!(A!=null&&A.includes("{"))&&!(A!=null&&A.includes("["))))==null?void 0:w.join(""),(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?void 0:r[0])==="*"&&(r=r==null?void 0:r.slice(1,r==null?void 0:r.length)),r=r==null?void 0:r.split(":"),r!=null&&r.includes("(@")?r=(L=(D=r==null?void 0:r.replace("(@",Oa))==null?void 0:D.split(Oa))==null?void 0:L[0]:r!=null&&r.includes("@")&&(r=(W=(S=r==null?void 0:r.replace("@",Oa))==null?void 0:S.split(Oa))==null?void 0:W[0]);let p=y==null?void 0:y.filter(A=>(A==null?void 0:A.includes("{"))||(A==null?void 0:A.includes("["))),m=(p==null?void 0:p[0])??"";m=(I=$a.analyzeSplitToContent(m,","))==null?void 0:I.map(A=>((A==null?void 0:A[(A==null?void 0:A.length)-1])===","&&(A=A==null?void 0:A.slice(0,(A==null?void 0:A.length)-1)),A)),(p==null?void 0:p.length)>1&&(n=No(p==null?void 0:p[1]),n!=null&&n.every(A=>Array.isArray(A))&&(n=[n]));let u=[];return m==null||m.forEach((A,ee)=>{var Te,Ee,Q,be,Z,de,je,wa,ie,P,j,ye,Se,ke,Ze,ya,Ha,re,la,Ve,ba,Fe,Ie,$e,Qe,Xa,Wa,V,$,X,se,ue,va,ra,Le,Ce,Sa,da,Fa,ja,me,Je,ze,Xe,pa,ua,Ae,za,fa,Ua;let C=(Te=A==null?void 0:A.split("=="))==null?void 0:Te[0],_=(Ee=A==null?void 0:A.split("=="))==null?void 0:Ee[1],E=[],k=[],g=[],O=[],F="Input",q=[],te=[];if((A==null?void 0:A[0])!=="{"){if((_==null?void 0:_[0])==="$")_=_==null?void 0:_.slice(1,_==null?void 0:_.length),E=(be=(Q=_==null?void 0:_.split("*"))==null?void 0:Q[0])==null?void 0:be.split(":"),k=(P=(ie=(wa=(je=(de=(Z=_==null?void 0:_.split("*"))==null?void 0:Z[1])==null?void 0:de.replace("{",Oa))==null?void 0:je.split(Oa))==null?void 0:wa[0])==null?void 0:ie.split(":"))==null?void 0:P.filter(ga=>ga!==""),g=(ye=(j=_==null?void 0:_.replace("{",Oa))==null?void 0:j.split(Oa))==null?void 0:ye[1],g=g==null?void 0:g.replaceAll("}",""),g=g==null?void 0:g.split(":"),F="Select";else if(((Se=$a.analyzeSplitToContent(A,"="))==null?void 0:Se.length)>1){let ga=(ke=C==null?void 0:C.split("="))==null?void 0:ke[1];if(C=(Ze=C==null?void 0:C.split("="))==null?void 0:Ze[0],F="Select",!(A!=null&&A.includes("||")))ga=(ya=ga==null?void 0:ga.split("/"))==null?void 0:ya.map(He=>((He==null?void 0:He[(He==null?void 0:He.length)-1])==="/"&&(He=He==null?void 0:He.slice(0,(He==null?void 0:He.length)-1)),He)),O=ga==null?void 0:ga.map(He=>({label:He==null?void 0:He.replaceAll("'",""),value:He==null?void 0:He.replaceAll("'","")}));else{let He=[];(Ve=(la=(re=(Ha=A==null?void 0:A.replace("=",Oa))==null?void 0:Ha.split(Oa))==null?void 0:re[1])==null?void 0:la.split("||"))==null||Ve.forEach(We=>{var Ne,De,fe;q.push((De=(Ne=We==null?void 0:We.split("@Filter"))==null?void 0:Ne[0])==null?void 0:De.split("/")),He.push((fe=We==null?void 0:We.split("@Filter"))==null?void 0:fe[1])}),te=He==null?void 0:He.map(We=>(We=We==null?void 0:We.slice(1,(We==null?void 0:We.length)-1),We))}}else if(A!=null&&A.includes("@")&&!(A!=null&&A.includes("||"))){C=(Qe=($e=(Ie=(Fe=(ba=C==null?void 0:C.replace("(@",Oa))==null?void 0:ba.split(Oa))==null?void 0:Fe[0])==null?void 0:Ie.replace("@",Oa))==null?void 0:$e.split(Oa))==null?void 0:Qe[0];let ga=A!=null&&A.includes("(@")?"(@"+((Wa=(Xa=A==null?void 0:A.replace("(@",Oa))==null?void 0:Xa.split(Oa))==null?void 0:Wa[1]):"@"+(($=(V=A==null?void 0:A.replace("@",Oa))==null?void 0:V.split(Oa))==null?void 0:$[1]);if(ga=(X=So(ga))==null?void 0:X.split(","),ga!=null&&ga.find(He=>He==null?void 0:He.includes("@Type"))){let He=(se=ga==null?void 0:ga.find(We=>We==null?void 0:We.includes("@Type")))==null?void 0:se.split("=");He!=null&&He.includes("File")&&(F="Upload"),He!=null&&He.includes("Date")&&(F="Date"),He!=null&&He.includes("DateTime")&&(F="DateTime"),He!=null&&He.includes("Time")&&(F="Time")}}C!=null&&C.includes("(@")||C!=null&&C.includes("@")&&(o.push(Y.cloneDeep(C)),C=(va=(ue=C==null?void 0:C.replace("@",Oa))==null?void 0:ue.split(Oa))==null?void 0:va[0]),u.push({prop:C,label:C,value:"",menuPath:E,groups:k,columns:g,width:m==null?void 0:m.length,options:O,type:F,allContents:q,filterContents:te})}else{c=c+"@"+((ra=$a.analyzeSplitToContent(A,"@"))==null?void 0:ra[1]);let ga=(Le=$a.analyzeSplitToContent(A,"@"))==null?void 0:Le[0];(ga==null?void 0:ga[(ga==null?void 0:ga.length)-1])==="@"&&(ga=ga==null?void 0:ga.slice(0,(ga==null?void 0:ga.length)-1));let He=ga;(He==null?void 0:He[0])==="{"&&(He=He==null?void 0:He.slice(1,(He==null?void 0:He.length)-1)),He=(Ce=$a.analyzeSplitToContent(He,","))==null?void 0:Ce.map(De=>{var fe;return(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&&De.includes("==")&&(De=(fe=De==null?void 0:De.split("=="))==null?void 0:fe[0]),De});let We=(Sa=ga==null?void 0:ga.split("=="))==null?void 0:Sa[1],Ne=(Fa=(da=We==null?void 0:We.split("*"))==null?void 0:da[0])==null?void 0:Fa.replace(to,"");(Ne==null?void 0:Ne[0])==="$"&&(Ne=Ne==null?void 0:Ne.slice(1,Ne==null?void 0:Ne.length)),Ne=$a.analyzeSplitToContent(Ne,"$"),Ne=(ja=Ne==null?void 0:Ne.map((De,fe)=>{var oe;return fe===0&&(Ne==null?void 0:Ne.length)>1&&(De=(oe=De==null?void 0:De.split(":"))==null?void 0:oe[0]),(Ne==null?void 0:Ne.length)>1&&fe===(Ne==null?void 0:Ne.length)-1&&(De=De+":"),De}))==null?void 0:ja.join(":"),E=(Je=(me=Ne==null?void 0:Ne.replaceAll("{",""))==null?void 0:me.replaceAll("}",""))==null?void 0:Je.split(":"),k=(za=(Ae=(ua=(pa=(Xe=(ze=We==null?void 0:We.split("*"))==null?void 0:ze[1])==null?void 0:Xe.replace("{",Oa))==null?void 0:pa.split(Oa))==null?void 0:ua[0])==null?void 0:Ae.split(":"))==null?void 0:za.filter(De=>De!==""),g=(Ua=(fa=We==null?void 0:We.replace("{",Oa))==null?void 0:fa.split(Oa))==null?void 0:Ua[1],g=g==null?void 0:g.replaceAll("}",""),g=g==null?void 0:g.split(","),F="Select",He==null||He.forEach((De,fe)=>{var oe,ia,Pa;De!=null&&De.includes("(@")||De!=null&&De.includes("@")&&(o.push(Y.cloneDeep(De)),De=(ia=(oe=De==null?void 0:De.replace("@",Oa))==null?void 0:oe.split(Oa))==null?void 0:ia[0]),u.push({prop:De,label:De,value:"",menuPath:E,groups:k,columns:(Pa=g==null?void 0:g[fe])==null?void 0:Pa.split(":"),width:He==null?void 0:He.length,type:F})})}}),{groupName:r,formContents:u,contents:n,filter:c,formColumn:m,hideContents:o}},No=l=>{var o,s;if(!l||typeof l!="string")return[];let n=[],r=l.slice(1,(l==null?void 0:l.length)-1);if((r==null?void 0:r[0])!=="[")(o=$a.analyzeSplitToContent(r,","))==null||o.forEach(c=>{(c==null?void 0:c[(c==null?void 0:c.length)-1])===","&&(c=c.slice(0,(c==null?void 0:c.length)-1)),n.push(c??"")});else{let c=[];(s=$a.analyzeSplitToContent(r,","))==null||s.forEach(y=>{(y==null?void 0:y[(y==null?void 0:y.length)-1])===","&&(y=y==null?void 0:y.slice(0,(y==null?void 0:y.length)-1)),c.push(No(y))}),n=c}return n},ft=(l,n)=>{var I,A,ee,C,_,E,k,g,O,F,q,te,Te,Ee,Q,be,Z,de,je,wa,ie,P,j,ye,Se,ke,Ze,ya,Ha,re,la,Ve,ba,Fe,Ie,$e,Qe,Xa,Wa,V,$,X,se,ue,va,ra,Le,Ce,Sa,da,Fa,ja,me,Je,ze,Xe,pa,ua,Ae,za,fa,Ua,ga,He,We;let r,o=[],s=[],c=[],y=[],p=[],v=[],m=[],u="Input",w,D="",L="",S=[],W="";if(l!=null&&l.includes("@Pam")||l!=null&&l.includes("==")||l!=null&&l.includes("="))if(l!=null&&l.includes("@Pam")){let Ne=$a.analyzeSplitToContent(l,"=");if((Ne==null?void 0:Ne.length)>1){l=Ne==null?void 0:Ne[0],l=l==null?void 0:l.slice(0,(l==null?void 0:l.length)-1);let oe=Ne==null?void 0:Ne[(Ne==null?void 0:Ne.length)-1];(oe==null?void 0:oe[0])==="&"&&(oe=oe==null?void 0:oe.slice(1,oe==null?void 0:oe.length)),L=(A=(I=oe==null?void 0:oe.replace("(",Oa))==null?void 0:I.split(Oa))==null?void 0:A[0];let ia=(C=(ee=oe==null?void 0:oe.replace(")",Oa))==null?void 0:ee.split(Oa))==null?void 0:C[0];ia=(E=(_=ia==null?void 0:ia.replace("(",Oa))==null?void 0:_.split(Oa))==null?void 0:E[1],(ia==null?void 0:ia[0])==="{"&&(ia=ia==null?void 0:ia.slice(1,ia==null?void 0:ia.length)),(ia==null?void 0:ia[(ia==null?void 0:ia.length)-1])==="}"&&(ia=ia==null?void 0:ia.slice(0,(ia==null?void 0:ia.length)-1)),S=ia==null?void 0:ia.split(",");let Pa=(g=(k=oe==null?void 0:oe.replace(")",Oa))==null?void 0:k.split(Oa))==null?void 0:g[1];Pa&&Pa!==""&&(W=So(Pa))}r=(F=(O=l==null?void 0:l.replace("@Pam",Oa))==null?void 0:O.split(Oa))==null?void 0:F[0];let De=(te=(q=l==null?void 0:l.replace("@Pam",Oa))==null?void 0:q.split(Oa))==null?void 0:te[1];De=De==null?void 0:De.slice(1,(De==null?void 0:De.length)-1),De=(Te=$a.analyzeSplitToContent(De,","))==null?void 0:Te.map(oe=>(oe="@"+oe,oe));let fe=De==null?void 0:De.find(oe=>oe==null?void 0:oe.includes("@Type"));fe!=null&&fe.includes("File")&&(u="Upload"),fe!=null&&fe.includes("Date")&&(u="Date"),fe!=null&&fe.includes("DateTime")&&(u="DateTime"),fe!=null&&fe.includes("Time")&&(u="Time"),w=De==null?void 0:De.find(oe=>oe==null?void 0:oe.includes("@IdentName")),w=w?(Q=(Ee=w==null?void 0:w.replace("=",Oa))==null?void 0:Ee.split(Oa))==null?void 0:Q[1]:r}else{if(r=(be=l==null?void 0:l.split("=="))==null?void 0:be[0],w=(Z=l==null?void 0:l.split("=="))==null?void 0:Z[0],l!=null&&l.includes("=")&&!(l!=null&&l.includes("=="))&&!((wa=(je=(de=l==null?void 0:l.replace("=",Oa))==null?void 0:de.split(Oa))==null?void 0:je[1])!=null&&wa.includes("||")))if(r=(ie=l==null?void 0:l.split("="))==null?void 0:ie[0],w=r,l!=null&&l.includes("(@")||l!=null&&l.includes("@")){if(l!=null&&l.includes("(@")){let De=(P=l==null?void 0:l.split("(@"))==null?void 0:P[1];De=De==null?void 0:De.slice(0,(De==null?void 0:De.length)-1),De=(ye=(j=De==null?void 0:De.replace("(",Oa))==null?void 0:j.split(Oa))==null?void 0:ye[1],De=De==null?void 0:De.slice(0,(De==null?void 0:De.length)-1),c==null||c.push(De),l=(Se=l==null?void 0:l.split("(@"))==null?void 0:Se[0]}else{let De=(ke=l==null?void 0:l.split("@"))==null?void 0:ke[1];De=De==null?void 0:De.slice(0,(De==null?void 0:De.length)-1),De=(ya=(Ze=De==null?void 0:De.replace("(",Oa))==null?void 0:Ze.split(Oa))==null?void 0:ya[1],De=De==null?void 0:De.slice(0,(De==null?void 0:De.length)-1),c==null||c.push(De),l=(Ha=l==null?void 0:l.split("@"))==null?void 0:Ha[0]}let Ne=(la=(re=l==null?void 0:l.split("="))==null?void 0:re[1])==null?void 0:la.split("/");s.push(Ne)}else o=(ba=$a.analyzeSplitToContent((Ve=l==null?void 0:l.split("="))==null?void 0:Ve[1],"/"))==null?void 0:ba.map(Ne=>((Ne==null?void 0:Ne[(Ne==null?void 0:Ne.length)-1])==="/"&&(Ne=Ne==null?void 0:Ne.slice(0,(Ne==null?void 0:Ne.length)-1)),Ne)),o=o==null?void 0:o.map(Ne=>({label:Ne==null?void 0:Ne.replaceAll("'",""),value:Ne==null?void 0:Ne.replaceAll("'","")}));else if(($e=(Ie=(Fe=l==null?void 0:l.replace("=",Oa))==null?void 0:Fe.split(Oa))==null?void 0:Ie[1])!=null&&$e.includes("||")){r=(Qe=l==null?void 0:l.split("="))==null?void 0:Qe[0],w=(Xa=l==null?void 0:l.split("="))==null?void 0:Xa[0];let Ne=[];(X=($=(V=(Wa=l==null?void 0:l.replace("=",Oa))==null?void 0:Wa.split(Oa))==null?void 0:V[1])==null?void 0:$.split("||"))==null||X.forEach(De=>{var fe,oe,ia;s.push((oe=(fe=De==null?void 0:De.split("@Filter"))==null?void 0:fe[0])==null?void 0:oe.split("/")),Ne.push((ia=De==null?void 0:De.split("@Filter"))==null?void 0:ia[1])}),c=Ne==null?void 0:Ne.map(De=>(De=De==null?void 0:De.slice(1,(De==null?void 0:De.length)-1),De))}else{let Ne=l==null?void 0:l.split("=="),De=(se=Ne==null?void 0:Ne.filter(fe=>(fe==null?void 0:fe[0])==="$"))==null?void 0:se[0];if(De&&!(De!=null&&De.includes("&"))){let fe=(ue=De==null?void 0:De.replace("*",Oa))==null?void 0:ue.split(Oa),oe=(fe==null?void 0:fe[0])===""?n==null?void 0:n.value:fe==null?void 0:fe[0];oe=(ra=(va=oe==null?void 0:oe.replaceAll("{",""))==null?void 0:va.replaceAll("}",""))==null?void 0:ra.replaceAll(to,""),(oe==null?void 0:oe[0])==="$"&&(oe=(Le=oe==null?void 0:oe.slice(1,oe==null?void 0:oe.length))==null?void 0:Le.replaceAll(":","/")),y=oe==null?void 0:oe.split("/");let ia=(Sa=(Ce=fe==null?void 0:fe[1])==null?void 0:Ce.replace("{",Oa))==null?void 0:Sa.split(Oa),Pa=ia==null?void 0:ia[0];(Pa==null?void 0:Pa[(Pa==null?void 0:Pa.length)-1])===":"&&(Pa=Pa==null?void 0:Pa.slice(0,(Pa==null?void 0:Pa.length)-1)),p=Pa==null?void 0:Pa.split(":"),v=(me=(ja=(Fa=(da=ia==null?void 0:ia[1])==null?void 0:da.replace("}",Oa))==null?void 0:Fa.split(Oa))==null?void 0:ja[0])==null?void 0:me.split(":");let hl=(Xe=(ze=(Je=ia==null?void 0:ia[(ia==null?void 0:ia.length)-1])==null?void 0:Je.replace("}",Oa))==null?void 0:ze.split(Oa))==null?void 0:Xe[1];hl&&hl!==""&&(D=So(hl))}if(Ne!=null&&Ne.some(fe=>(fe==null?void 0:fe[0])==="&")){let fe=(pa=Ne==null?void 0:Ne.filter(Pa=>(Pa==null?void 0:Pa[0])==="&"))==null?void 0:pa[0];(fe==null?void 0:fe[0])==="&"&&(fe=fe==null?void 0:fe.slice(1,fe==null?void 0:fe.length)),L=(Ae=(ua=fe==null?void 0:fe.replace("(",Oa))==null?void 0:ua.split(Oa))==null?void 0:Ae[0];let oe=(za=$a.analyzeSplitToContent(fe,")"))==null?void 0:za[0];oe=(Ua=(fa=oe==null?void 0:oe.replace("(",Oa))==null?void 0:fa.split(Oa))==null?void 0:Ua[1],oe=oe==null?void 0:oe.slice(0,(oe==null?void 0:oe.length)-1),(oe==null?void 0:oe[0])==="{"&&(oe=oe==null?void 0:oe.slice(1,oe==null?void 0:oe.length)),(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)),S=oe==null?void 0:oe.split(",");let ia=(ga=$a.analyzeSplitToContent(fe,")"))==null?void 0:ga[1];ia&&ia!==""&&(W=So(ia))}else if(!De){let fe=Ne==null?void 0:Ne[(Ne==null?void 0:Ne.length)-1];fe=fe==null?void 0:fe.slice(1,(fe==null?void 0:fe.length)-1),fe=$a.analyzeSplitToContent(fe,","),fe=fe==null?void 0:fe.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)),fe=fe==null?void 0:fe.map(oe=>{var ia,Pa,hl,Ma;if(oe=oe==null?void 0:oe.replaceAll("$",""),oe!=null&&oe.includes("{")){let Ul="";oe=oe==null?void 0:oe.replaceAll("{","");let Ea=oe==null?void 0:oe.split("}");Ul=((Pa=(ia=Ea==null?void 0:Ea[0])==null?void 0:ia.split(":"))==null?void 0:Pa[0])+":"+(Ea==null?void 0:Ea[1]),oe=Ul,oe=oe+":"}if(oe!=null&&oe.includes(to)){let Ul="",Ea=oe==null?void 0:oe.split(to);Ul=((Ma=(hl=Ea==null?void 0:Ea[0])==null?void 0:hl.split(":"))==null?void 0:Ma[0])+":"+(Ea==null?void 0:Ea[1]),oe=Ul,oe=oe+":"}return oe=oe==null?void 0:oe.replaceAll(":","/"),oe}),m=fe}}u="Select"}else r=l,w=l;return r!=null&&r.includes("@Pam")&&(r=(We=(He=l==null?void 0:l.replace("@Pam",Oa))==null?void 0:He.split(Oa))==null?void 0:We[0],w=r),{label:r,prop:w,options:o,allContents:s,filterContents:c,menus:y,groups:p,words:v,align:"center",formType:u,filter:D,functionName:L,functionRelatedWords:S,calculatorFilter:W,relatedPages:m}},Si=(l,n)=>{var o,s,c,y,p,v,m,u,w,D,L,S,W,I,A,ee,C,_,E,k,g,O,F,q,te,Te,Ee,Q,be;let r=[];if((l==null?void 0:l[0])==="{"&&(l==null?void 0:l[(l==null?void 0:l.length)-1])==="}"&&!((y=(c=(s=(o=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1))==null?void 0:o.replace(":",Oa))==null?void 0:s.split(Oa))==null?void 0:c[0])!=null&&y.includes(","))){let Z=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1),de=(p=Z==null?void 0:Z.replace(":",Oa))==null?void 0:p.split(Oa);if(((v=$a.analyzeSplitToContent(de==null?void 0:de[1],"="))==null?void 0:v.length)===1){let je=de==null?void 0:de[0],wa=[];(w=$a.analyzeSplitToContent((u=de==null?void 0:de[1])==null?void 0:u.slice(1,((m=de==null?void 0:de[1])==null?void 0:m.length)-1),","))==null||w.forEach(ie=>{var P,j;((P=$a.analyzeSplitToContent(ie,"="))==null?void 0:P.length)>1?((ie==null?void 0:ie[(ie==null?void 0:ie.length)-1])===","&&(ie=ie==null?void 0:ie.slice(0,(ie==null?void 0:ie.length)-1)),wa=[...wa,...Si(ie,n)]):((ie==null?void 0:ie[(ie==null?void 0:ie.length)-1])===","&&(ie=ie==null?void 0:ie.slice(0,(ie==null?void 0:ie.length)-1)),wa.push((j=Si(ie,n))==null?void 0:j[0]))}),r==null||r.push({label:je,prop:je,children:wa,align:"center"})}else{let je=[];if(((D=$a.analyzeSplitToContent(Z,"="))==null?void 0:D.length)>=2){let ie=(L=$a.analyzeSplitToContent(Z,"="))==null?void 0:L[1],P=(S=$a.analyzeSplitToContent(ie,"/"))==null?void 0:S.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));je=P==null?void 0:P.map(j=>(j=No(j),j))}let wa=(_=(C=(ee=(A=(I=(W=Z==null?void 0:Z.replace("{",Oa))==null?void 0:W.split(Oa))==null?void 0:I[1])==null?void 0:A.replace("}",Oa))==null?void 0:ee.split(Oa))==null?void 0:C[0])==null?void 0:_.split(",");wa==null||wa.forEach((ie,P)=>{(je==null?void 0:je.length)>0&&P===0?r==null||r.push({label:ie,prop:ie,align:"center",formType:"Select",relatedContents:je==null?void 0:je.map(j=>{let ye={};return wa==null||wa.forEach((Se,ke)=>{ye[Se]=j==null?void 0:j[ke]}),ye}),options:je==null?void 0:je.map(j=>({label:j==null?void 0:j[0],value:j==null?void 0:j[0]})),mainKey:!0}):r==null||r.push({label:ie,prop:ie,align:"center"})})}}else if((l==null?void 0:l[0])==="{")if(((E=$a.analyzeSplitToContent(l,"="))==null?void 0:E.length)===2&&((g=(k=$a.analyzeSplitToContent(l,"="))==null?void 0:k[1])==null?void 0:g[0])==="["){let Z=[];if(((O=$a.analyzeSplitToContent(l,"="))==null?void 0:O.length)>=2){let je=(F=$a.analyzeSplitToContent(l,"="))==null?void 0:F[1],wa=(q=$a.analyzeSplitToContent(je,"/"))==null?void 0:q.map(ie=>((ie==null?void 0:ie[(ie==null?void 0:ie.length)-1])==="/"&&(ie=ie==null?void 0:ie.slice(0,(ie==null?void 0:ie.length)-1)),ie));Z=wa==null?void 0:wa.map(ie=>(ie=No(ie),ie))}let de=(Te=(te=l==null?void 0:l.replace("}",Oa))==null?void 0:te.split(Oa))==null?void 0:Te[0];de=(Ee=de==null?void 0:de.slice(1,de==null?void 0:de.length))==null?void 0:Ee.split(","),de==null||de.forEach((je,wa)=>{(Z==null?void 0:Z.length)>0&&wa===0?r==null||r.push({label:je,prop:je,align:"center",formType:"Select",relatedContents:Z==null?void 0:Z.map(ie=>{let P={};return de==null||de.forEach((j,ye)=>{P[j]=ie==null?void 0:ie[ye]}),P}),options:Z==null?void 0:Z.map(ie=>({label:ie==null?void 0:ie[0],value:ie==null?void 0:ie[0]})),mainKey:!0}):r==null||r.push({label:je,prop:je,align:"center"})})}else(Q=$a.analyzeSplitToContent(l,","))==null||Q.forEach(Z=>{var de,je,wa,ie,P,j,ye,Se,ke,Ze,ya,Ha,re,la,Ve,ba,Fe,Ie,$e,Qe,Xa,Wa,V,$,X,se,ue,va,ra,Le,Ce,Sa,da,Fa,ja,me,Je,ze,Xe,pa,ua,Ae,za,fa,Ua,ga,He;if((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==null?void 0:Z[0])==="{"){let We=$a.analyzeSplitToContent(Z,"="),Ne=We==null?void 0:We[(We==null?void 0:We.length)-1],De=[],fe=[],oe=[],ia=[],Pa=[],hl=(de=Ne==null?void 0:Ne.replace("*",Oa))==null?void 0:de.split(Oa),Ma=(hl==null?void 0:hl[0])===""?n==null?void 0:n.value:hl==null?void 0:hl[0];if((Ma==null?void 0:Ma[0])==="$"&&((ie=(wa=(je=Ma==null?void 0:Ma.replace("@",Oa))==null?void 0:je.split(Oa))==null?void 0:wa[0])!=null&&ie.includes("{"))&&(Ma=(P=Ma==null?void 0:Ma.replace("{",""))==null?void 0:P.replace("}",":")),Ma=Ma==null?void 0:Ma.replaceAll(to,""),(Ma==null?void 0:Ma[(Ma==null?void 0:Ma.length)-1])===":"&&(Ma=Ma!=null&&Ma.includes("(@")?((j=Ma==null?void 0:Ma.split("(@"))==null?void 0:j[0])+":":((ye=Ma==null?void 0:Ma.split("@"))==null?void 0:ye[0])+":"),(Ma==null?void 0:Ma[0])==="$"&&(Ma=(Se=Ma==null?void 0:Ma.slice(1,Ma==null?void 0:Ma.length))==null?void 0:Se.replaceAll(":","/")),Ma!=null&&Ma.includes("$")){let qa=(ke=Ma==null?void 0:Ma.split("$"))==null?void 0:ke[0];qa=(Ze=qa==null?void 0:qa.split("/"))==null?void 0:Ze[0],Ma=qa+"/"+((ya=Ma==null?void 0:Ma.split("$"))==null?void 0:ya[1])+"/"}(Ma==null?void 0:Ma[(Ma==null?void 0:Ma.length)-1])==="/"&&(Ma==null?void 0:Ma[(Ma==null?void 0:Ma.length)-2])==="/"&&(Ma=Ma==null?void 0:Ma.slice(0,(Ma==null?void 0:Ma.length)-1)),Ma!=null&&Ma.includes("(@")?(Ma=(Ha=Ma==null?void 0:Ma.split("(@"))==null?void 0:Ha[0],Ma=Ma==null?void 0:Ma.slice(0,(Ma==null?void 0:Ma.length)-2)):Ma!=null&&Ma.includes("@")&&(Ma=(re=$a.analyzeSplitToContent(Ma,"@"))==null?void 0:re[0],Ma=Ma==null?void 0:Ma.slice(0,(Ma==null?void 0:Ma.length)-1)),De=Ma==null?void 0:Ma.split("/");let Ul=(Ve=(la=hl==null?void 0:hl[1])==null?void 0:la.replace("{",Oa))==null?void 0:Ve.split(Oa);if((Ie=(Fe=(ba=hl==null?void 0:hl[1])==null?void 0:ba.split("(@"))==null?void 0:Fe[0])!=null&&Ie.includes("&&")||(Xa=(Qe=($e=hl==null?void 0:hl[1])==null?void 0:$e.split("@"))==null?void 0:Qe[0])!=null&&Xa.includes("&&")){let qa=(Wa=hl==null?void 0:hl[1])!=null&&Wa.includes("(@")?(X=($=(V=hl==null?void 0:hl[1])==null?void 0:V.split("(@"))==null?void 0:$[0])==null?void 0:X.split("&&"):(va=(ue=(se=hl==null?void 0:hl[1])==null?void 0:se.split("@"))==null?void 0:ue[0])==null?void 0:va.split("&&");ia=qa==null?void 0:qa.map(ae=>{var Ye,pe;return(ae==null?void 0:ae[0])==="*"&&(ae=ae==null?void 0:ae.slice(1,ae==null?void 0:ae.length)),ae=(pe=(Ye=ae==null?void 0:ae.replace("{",Oa))==null?void 0:Ye.split(Oa))==null?void 0:pe[0],(ae==null?void 0:ae[(ae==null?void 0:ae.length)-1])===":"&&(ae=ae==null?void 0:ae.slice(0,(ae==null?void 0:ae.length)-1)),ae=ae==null?void 0:ae.split(":"),ae});let xa=[];qa==null||qa.forEach((ae,Ye)=>{var pe,Ca;(ae==null?void 0:ae[0])==="*"&&(ae=ae==null?void 0:ae.slice(1,ae==null?void 0:ae.length)),ae=(Ca=(pe=ae==null?void 0:ae.replace("{",Oa))==null?void 0:pe.split(Oa))==null?void 0:Ca[1],(ae==null?void 0:ae[(ae==null?void 0:ae.length)-1])==="}"&&(ae=ae==null?void 0:ae.slice(0,(ae==null?void 0:ae.length)-1)),ae=ae==null?void 0:ae.split(","),xa.push(Ye===0?(ae==null?void 0:ae.length)-1:ae==null?void 0:ae.length),Pa=[...Pa,...ae]}),xa=(ra=$a.prefixSum(xa))==null?void 0:ra.map(ae=>ae==null?void 0:ae.total),ia=ia==null?void 0:ia.map((ae,Ye)=>({number:xa==null?void 0:xa[Ye],contents:ae}))}let Ea=Ul==null?void 0:Ul[0];(Ea==null?void 0:Ea[(Ea==null?void 0:Ea.length)-1])===":"&&(Ea=Ea==null?void 0:Ea.slice(0,(Ea==null?void 0:Ea.length)-1)),fe=Ea==null?void 0:Ea.split(":"),oe=(da=(Sa=(Ce=(Le=Ul==null?void 0:Ul[1])==null?void 0:Le.replace("}",Oa))==null?void 0:Ce.split(Oa))==null?void 0:Sa[0])==null?void 0:da.split(",");let _a=(ja=We==null?void 0:We[0])==null?void 0:ja.slice(1,((Fa=We==null?void 0:We[0])==null?void 0:Fa.length)-2),Ra="",Va="";if((me=We==null?void 0:We[(We==null?void 0:We.length)-1])!=null&&me.includes("(@")?(Va=(Xe=(ze=(Je=We==null?void 0:We[(We==null?void 0:We.length)-1])==null?void 0:Je.replace("(@",Oa))==null?void 0:ze.split(Oa))==null?void 0:Xe[1],Va="(@"+Va):(pa=We==null?void 0:We[(We==null?void 0:We.length)-1])!=null&&pa.includes("@")&&(Va=(za=(Ae=(ua=We==null?void 0:We[(We==null?void 0:We.length)-1])==null?void 0:ua.replace("@",Oa))==null?void 0:Ae.split(Oa))==null?void 0:za[1],Va="@"+Va),((fa=$a.analyzeSplitToContent(Va,"&"))==null?void 0:fa.length)>1){let qa=(ga=(Ua=$a.analyzeSplitToContent(Va,"}"))==null?void 0:Ua.map(xa=>{var ae;return xa!=null&&xa.includes("@")||(xa=""),xa!=null&&xa.includes("@")&&(xa=(ae=$a.analyzeSplitToContent(xa,":"))==null?void 0:ae[0],(xa==null?void 0:xa[(xa==null?void 0:xa.length)-1])===":"&&(xa=xa==null?void 0:xa.slice(0,(xa==null?void 0:xa.length)-1)),(xa==null?void 0:xa[0])==="("&&(xa=xa==null?void 0:xa.slice(1,(xa==null?void 0:xa.length)-1))),xa}))==null?void 0:ga.filter(xa=>xa!=="");Va=(Va==null?void 0:Va.length)===1?qa:"("+(qa==null?void 0:qa.join(","))+")"}Va&&Va!==""&&(Ra=So(Va)),(He=_a==null?void 0:_a.split(","))==null||He.forEach((qa,xa)=>{var ae,Ye,pe;r.push({label:qa,prop:qa,align:"center",menus:De,groups:(ia==null?void 0:ia.length)===0?fe:(ae=ia==null?void 0:ia.find(Ca=>(Ca==null?void 0:Ca.number)>=xa))==null?void 0:ae.contents,words:(Pa==null?void 0:Pa.length)===0?(Ye=oe==null?void 0:oe[xa])==null?void 0:Ye.split(":"):(pe=Pa==null?void 0:Pa[xa])==null?void 0:pe.split(":"),formType:(De==null?void 0:De.length)>0?"Select":"Input",mainKey:xa===0,filter:Ra,isMainPath:(ia==null?void 0:ia.findIndex(Ca=>(Ca==null?void 0:Ca.number)>=xa))===0})})}else r.push({label:Z,prop:Z,align:"center"})});else{let Z=(be=$a.analyzeSplitToContent(l,","))==null?void 0:be.map(de=>((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));Z==null||Z.forEach(de=>{r.push(ft(de,n))})}return r},Rd=(l,n)=>{var y,p,v,m,u;let r=l;if(!l)return;let o="";((y=$a.analyzeSplitToContent(l,"}"))==null?void 0:y.length)>1&&(r=(p=$a.analyzeSplitToContent(l,"}"))==null?void 0:p[0],o=(v=$a.analyzeSplitToContent(l,"}"))==null?void 0:v[1]),(l==null?void 0:l[0])==="{"&&(l==null?void 0:l[(l==null?void 0:l.length)-1])==="}"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1));let s=[],c=[];return s.push({label:"排序",prop:"sort"}),s.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(m=$a.analyzeSplitToContent(r,","))==null||m.forEach(w=>{var D;(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)),(w==null?void 0:w[0])==="{"?(D=Si(w,n))==null||D.forEach(L=>{s.push(L)}):s.push(ft(w,n))}),s!=null&&s.some(w=>{var D;return(D=w==null?void 0:w.prop)==null?void 0:D.includes("@")})&&(s=s==null?void 0:s.filter(w=>{var D;return!((D=w==null?void 0:w.prop)!=null&&D.includes("@"))})),o!==""&&((o==null?void 0:o[0])=="{"&&(o=o==null?void 0:o.slice(1,(o==null?void 0:o.length)-1)),(u=$a.analyzeSplitToContent(o,","))==null||u.forEach(w=>{var D;(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)),(w==null?void 0:w[0])==="{"?(D=Si(w,n))==null||D.forEach(L=>{c.push(L)}):c.push(ft(w,n))})),{columns:s,secondColumns:c}},Di=l=>{var n,r,o,s,c;if(l!=null&&l.includes("@Filter")||l!=null&&l.includes("@Condition"))return l;{let y=(r=(n=l==null?void 0:l.replace("(",Oa))==null?void 0:n.split(Oa))==null?void 0:r[1],p=(s=(o=l==null?void 0:l.replace("(",Oa))==null?void 0:o.split(Oa))==null?void 0:s[0];return y=y==null?void 0:y.slice(0,(y==null?void 0:y.length)-1),y=(c=$a.analyzeSplitToContent(y,","))==null?void 0:c.map(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)),p+v)),y=y==null?void 0:y.join(","),l!=null&&l.includes("@Quote")&&(y!=null&&y.includes("@QuoteType")||(y=y===""?y+"@QuoteType=Manual":y+",@QuoteType=Manual"),y!=null&&y.includes("@QuoteSonSync")||(y=y===""?y+"@QuoteSonSync=No":y+",@QuoteSonSync=No"),y!=null&&y.includes("@QuoteFatherSync")||(y=y===""?y+"@QuoteFatherSync=Yes":y+",@QuoteFatherSync=Yes")),y}},rs=l=>{let n=l==null?void 0:l.map(r=>{var o,s;return{menus:r==null?void 0:r.menus,content:((o=r==null?void 0:r.menus)==null?void 0:o.join("/"))+Oa+((s=r==null?void 0:r.groups)==null?void 0:s.join("/"))}});return n=n==null?void 0:n.filter(r=>{var o;return(r==null?void 0:r.menus)&&((o=r==null?void 0:r.menus)==null?void 0:o.length)>0}),n=n==null?void 0:n.map(r=>r==null?void 0:r.content),n=[...new Set(n)],n=n==null?void 0:n.map(r=>{var o,s;return{menus:(o=r==null?void 0:r.split(Oa))==null?void 0:o[0],groups:((s=r==null?void 0:r.split(Oa))==null?void 0:s[1])??[]}}),n},$d=(l,n,r="")=>{var A,ee,C,_,E,k,g,O,F,q,te,Te,Ee,Q,be,Z,de,je,wa,ie,P,j,ye,Se,ke,Ze,ya,Ha,re,la,Ve,ba,Fe,Ie,$e,Qe,Xa,Wa,V,$,X,se,ue,va,ra,Le,Ce,Sa,da,Fa,ja,me,Je,ze,Xe,pa,ua,Ae,za,fa,Ua,ga,He,We,Ne,De;let o=[];if(((A=l==null?void 0:l[0])==null?void 0:A[0])!=="*"&&((ee=l==null?void 0:l[0])==null?void 0:ee[0])!=="$")return;let s=$a.analyzeSplitToContent(l==null?void 0:l[0],":"),c=s==null?void 0:s.filter(fe=>!((fe==null?void 0:fe[0])!=="{"&&(fe==null?void 0:fe[0])!=="["));o=(C=s==null?void 0:s.filter(fe=>(fe==null?void 0:fe[0])!=="{"&&(fe==null?void 0:fe[0])!=="["))==null?void 0:C.join("");let y="",p="";if((o==null?void 0:o[(o==null?void 0:o.length)-1])===":"&&(o=o==null?void 0:o.slice(0,(o==null?void 0:o.length)-1)),o!=null&&o.includes("(@")&&(o==null?void 0:o[0])==="*"&&(y="(@"+((_=o==null?void 0:o.split("(@"))==null?void 0:_[1]),o=(E=o==null?void 0:o.split("(@"))==null?void 0:E[0]),o!=null&&o.includes("@")&&(o==null?void 0:o[0])==="*"&&(y="@"+((g=(k=o==null?void 0:o.replace("@",Oa))==null?void 0:k.split(Oa))==null?void 0:g[1]),o=(F=(O=o==null?void 0:o.replace("@",Oa))==null?void 0:O.split(Oa))==null?void 0:F[0]),(o==null?void 0:o[0])==="*"?(o=o==null?void 0:o.slice(1,o==null?void 0:o.length),o=o==null?void 0:o.split(":")):(p=Y.cloneDeep(o)+":",o=[]),p=p+((c==null?void 0:c[0])??""),(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)),y!==""&&p!=="")if((p==null?void 0:p[(p==null?void 0:p.length)-1])===")")if(p!=null&&p.includes("(@")){let fe=(q=p==null?void 0:p.split("(@"))==null?void 0:q[0],oe=(te=p==null?void 0:p.split("(@"))==null?void 0:te[1];oe="(@"+(oe==null?void 0:oe.slice(0,(oe==null?void 0:oe.length)-1))+y,p=fe+oe}else{let fe=(Ee=(Te=p==null?void 0:p.replace("@",Oa))==null?void 0:Te.split(Oa))==null?void 0:Ee[0],oe=(be=(Q=p==null?void 0:p.replace("@",Oa))==null?void 0:Q.split(Oa))==null?void 0:be[1];oe="(@"+oe+y,p=fe+oe}else p=p+y;let v=c==null?void 0:c[1];(p==null?void 0:p[0])==="["&&(v=Y.cloneDeep(p)+(v??""),p="");let m=v?No(v):[];!(m!=null&&m.every(fe=>Array.isArray(fe)))&&(m==null?void 0:m.length)>0&&(m=[m]);let u=(Z=$a.analyzeSplitToContent(p,"@"))!=null&&Z[1]?"@"+((de=$a.analyzeSplitToContent(p,"@"))==null?void 0:de[1]):"";if(p=(je=$a.analyzeSplitToContent(p,"@"))==null?void 0:je[0],p!=null&&p.includes("(@")&&(((wa=$a.analyzeSplitToContent(p,"}"))==null?void 0:wa.length)===1&&((ye=(ie=$a.analyzeSplitToContent(p,"}"))==null?void 0:ie[0])==null?void 0:ye[((j=(P=$a.analyzeSplitToContent(p,"}"))==null?void 0:P[0])==null?void 0:j.length)-1])===")"||(Se=$a.analyzeSplitToContent(p,"}"))!=null&&Se[1]&&((ke=$a.analyzeSplitToContent(p,"}"))==null?void 0:ke[1])!=="@")&&(u="(@"+((Ze=p==null?void 0:p.split("(@"))==null?void 0:Ze[1]),p=(ya=p==null?void 0:p.split("(@"))==null?void 0:ya[0]),(p==null?void 0:p[0])==="$"&&(u=Y.cloneDeep(p)+(u??""),p=""),r!=="")if(y!==""){let fe=(Ha=$a.analyzeSplitToContent(r,":"))==null?void 0:Ha.map(oe=>{var ia,Pa;return(oe==null?void 0:oe[0])==="{"&&(oe=(Pa=(ia=oe==null?void 0:oe.replace("}",Oa))==null?void 0:ia.split(Oa))==null?void 0:Pa[1]),oe});r=(re=fe==null?void 0:fe.join(""))==null?void 0:re.replace(":(","("),u=(r==null?void 0:r[(r==null?void 0:r.length)-1])!==")"?r+y:(r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1))+","+y}else{let fe="";if(r!=null&&r.includes("(@")){let oe=(Ie=(Fe=(ba=(Ve=(la=r==null?void 0:r.replace("(@",Oa))==null?void 0:la.split(Oa))==null?void 0:Ve[0])==null?void 0:ba.replace("{",Oa))==null?void 0:Fe.split(Oa))==null?void 0:Ie[0];fe=((oe==null?void 0:oe[(oe==null?void 0:oe.length)-1])===":"?oe==null?void 0:oe.slice(0,(oe==null?void 0:oe.length)-1):oe)+"(@"+((Qe=($e=r==null?void 0:r.replace("(@",Oa))==null?void 0:$e.split(Oa))==null?void 0:Qe[1])}else if(r!=null&&r.includes("@")){let oe=(Wa=(Xa=r==null?void 0:r.replace("@",Oa))==null?void 0:Xa.split(Oa))==null?void 0:Wa[0];(oe==null?void 0:oe[0])==="$"?oe=(V=oe==null?void 0:oe.replaceAll("{",""))==null?void 0:V.replaceAll("}",""):oe=(X=($=oe==null?void 0:oe.replace("{",Oa))==null?void 0:$.split(Oa))==null?void 0:X[0],fe=((oe==null?void 0:oe[(oe==null?void 0:oe.length)-1])===":"?oe==null?void 0:oe.slice(0,(oe==null?void 0:oe.length)-1):oe)+"@"+((ue=(se=r==null?void 0:r.replace("@",Oa))==null?void 0:se.split(Oa))==null?void 0:ue[1])}u=fe===""?r:fe}if(u!==""){(u==null?void 0:u[0])==="$"&&(u=u==null?void 0:u.slice(1,u==null?void 0:u.length)),(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));let fe="";if(u!=null&&u.includes("(@")){fe=(ra=(va=u==null?void 0:u.replace("(@",Oa))==null?void 0:va.split(Oa))==null?void 0:ra[0];let oe=(Ce=(Le=u==null?void 0:u.replace("(@",Oa))==null?void 0:Le.split(Oa))==null?void 0:Ce[1];oe="@"+(oe==null?void 0:oe.slice(0,(oe==null?void 0:oe.length)-1));let ia=(Sa=$a.analyzeSplitToContent(oe,","))==null?void 0:Sa.map(Pa=>((Pa==null?void 0:Pa[(Pa==null?void 0:Pa.length)-1])===","&&(Pa=Pa==null?void 0:Pa.slice(0,(Pa==null?void 0:Pa.length)-1)),(Pa==null?void 0:Pa[(Pa==null?void 0:Pa.length)-1])!==")"&&(Pa=Pa+")"),Di(Pa)));u=fe+"("+(ia==null?void 0:ia.join(","))+")"}else{fe=(Fa=(da=u==null?void 0:u.replace("@",Oa))==null?void 0:da.split(Oa))==null?void 0:Fa[0];let oe=(me=(ja=u==null?void 0:u.replace("@",Oa))==null?void 0:ja.split(Oa))==null?void 0:me[1];if(oe){oe="@"+oe;let ia=(Je=$a.analyzeSplitToContent(oe,","))==null?void 0:Je.map(Pa=>((Pa==null?void 0:Pa[(Pa==null?void 0:Pa.length)-1])!==")"&&(Pa=Pa+")"),Di(Pa)));u=fe+"("+(ia==null?void 0:ia.join(","))+")"}else u=fe}}(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));let w=Rd(p,n),D=p===""?[]:(w==null?void 0:w.columns)??[],L=oa.getColumnChild(D),S=L;S=S==null?void 0:S.filter(fe=>{var oe,ia;return(fe==null?void 0:fe.filter)&&(fe==null?void 0:fe.filter)!==""&&(((oe=fe==null?void 0:fe.filter)==null?void 0:oe.includes("@QuoteSonSync"))||((ia=fe==null?void 0:fe.filter)==null?void 0:ia.includes("@QuoteFatherSync")))});let W=S==null?void 0:S.filter(fe=>{var oe,ia,Pa;return((oe=fe==null?void 0:fe.filter)==null?void 0:oe.includes("@QuoteSonSync"))&&((Pa=(ia=fe==null?void 0:fe.filter)==null?void 0:ia.split(","))==null?void 0:Pa.find(hl=>(hl==null?void 0:hl.includes("@QuoteSonSync"))&&(hl==null?void 0:hl.includes("Yes"))))}),I=S==null?void 0:S.filter(fe=>{var oe,ia,Pa;return((oe=fe==null?void 0:fe.filter)==null?void 0:oe.includes("@QuoteFatherSync"))&&((Pa=(ia=fe==null?void 0:fe.filter)==null?void 0:ia.split(","))==null?void 0:Pa.find(hl=>(hl==null?void 0:hl.includes("@QuoteFatherSync"))&&(hl==null?void 0:hl.includes("Yes"))))});if(L=L==null?void 0:L.map(fe=>{var oe,ia;return{menus:fe==null?void 0:fe.menus,content:((oe=fe==null?void 0:fe.menus)==null?void 0:oe.join("/"))+Oa+((ia=fe==null?void 0:fe.groups)==null?void 0:ia.join("/"))}}),I=rs(I),W=rs(W),L=L==null?void 0:L.filter(fe=>{var oe;return(fe==null?void 0:fe.menus)&&((oe=fe==null?void 0:fe.menus)==null?void 0:oe.length)>0}),L=L==null?void 0:L.map(fe=>fe==null?void 0:fe.content),L=[...new Set(L)],L=L==null?void 0:L.map(fe=>{var oe,ia;return{menus:(oe=fe==null?void 0:fe.split(Oa))==null?void 0:oe[0],groups:((ia=fe==null?void 0:fe.split(Oa))==null?void 0:ia[1])??[]}}),D!=null&&D.some(fe=>{var oe;return Array.isArray(fe==null?void 0:fe.children)&&((oe=fe==null?void 0:fe.children)==null?void 0:oe.length)>0})&&(D=[D]),(m==null?void 0:m.length)>0&&(Array.isArray(m==null?void 0:m[0])&&((ze=m==null?void 0:m[0])!=null&&ze.every(fe=>Array.isArray(fe)))?m=m==null?void 0:m.map((fe,oe)=>(fe=fe.map((ia,Pa)=>(ia.unshift("{}"),ia.unshift((Pa+1).toString()),ia)),fe)):m=m==null?void 0:m.map((fe,oe)=>(fe.unshift("{}"),fe.unshift((oe+1).toString()),fe))),w!=null&&w.secondColumns&&((Xe=w==null?void 0:w.secondColumns)==null?void 0:Xe.length)>0&&((m==null?void 0:m.length)>0?m=m==null?void 0:m.map((fe,oe)=>{var ia,Pa;return Array.isArray(fe==null?void 0:fe[0])?fe=fe==null?void 0:fe.map((hl,Ma)=>{var Ul,Ea;return hl.unshift((Ea=(Ul=w==null?void 0:w.secondColumns)==null?void 0:Ul[Ma])==null?void 0:Ea.prop),hl}):fe.unshift((Pa=(ia=w==null?void 0:w.secondColumns)==null?void 0:ia[oe])==null?void 0:Pa.prop),fe}):m=(pa=w==null?void 0:w.secondColumns)==null?void 0:pa.map((fe,oe)=>(fe=[fe==null?void 0:fe.label],fe.push(oe),fe)),D.unshift({label:"",prop:"disabled",sortable:!1})),(D==null?void 0:D.length)>0){let fe=Y.cloneDeep(D);Array.isArray(fe==null?void 0:fe[0])&&(fe=fe==null?void 0:fe[0]);let oe=oa.getColumnChild(fe);oe=oe==null?void 0:oe.map(ia=>ia==null?void 0:ia.filter),oe=oe==null?void 0:oe.filter(ia=>ia&&ia!==""),oe=[...new Set(oe)],(oe==null?void 0:oe.length)>0&&(u=Oa+(u==null?void 0:u.slice(1,(u==null?void 0:u.length)-1))+(u!=null&&u.slice(1,(u==null?void 0:u.length)-1)?",":"")+((ua=Y.cloneDeep(oe))==null?void 0:ua.join(";")))}if((u==null?void 0:u[0])!=="("&&(u!=null&&u.includes("(@"))){let fe=(za=(Ae=u==null?void 0:u.replace("(",Oa))==null?void 0:Ae.split(Oa))==null?void 0:za[0],oe=[{menus:(Ua=(fa=fe==null?void 0:fe.split("*"))==null?void 0:fa[0])==null?void 0:Ua.replaceAll(":","/"),groups:(ga=fe==null?void 0:fe.split("*"))==null?void 0:ga[1]}],ia=(We=(He=u==null?void 0:u.replace("(",Oa))==null?void 0:He.split(Oa))==null?void 0:We[1];(ia==null?void 0:ia[(ia==null?void 0:ia.length)-1])===")"&&(ia=ia==null?void 0:ia.slice(0,(ia==null?void 0:ia.length)-1)),ia=$a.analyzeSplitToContent(ia,","),(Ne=ia==null?void 0:ia.find(Pa=>Pa==null?void 0:Pa.includes("@QuoteFatherSync")))!=null&&Ne.includes("Yes")&&(I=[...I,...oe]),(De=ia==null?void 0:ia.find(Pa=>Pa==null?void 0:Pa.includes("@QuoteSonSync")))!=null&&De.includes("Yes")&&(W=[...W,...oe])}return{groupName:o,tableColumns:D,tableFilter:u,tableContents:m,columns:(w==null?void 0:w.secondColumns)??[],relatedQuotes:L,fatherSyncContents:I,sonSyncContents:W}},Js=(l,n)=>(l=l==null?void 0:l.map((r,o)=>{var s,c,y,p;if(Array.isArray(r))r=r==null?void 0:r.map(v=>{var m,u,w,D;return v!=null&&v.isMainPath||(((m=v==null?void 0:v.children)==null?void 0:m.length)>0?v.children=Js(v.children,n):((u=v==null?void 0:v.menus)==null?void 0:u.length)>0&&!((w=r==null?void 0:r[0])!=null&&w.isMainPath)&&(v.menus=(D=v.menus)==null?void 0:D.map((L,S)=>{var W,I;return((W=v.menus)==null?void 0:W.length)-1===S&&L===""&&(n==null?void 0:n.parentContent)+"/"!==((I=v.menus)==null?void 0:I.join("/"))&&(L=n==null?void 0:n.value),v}),v.bindMenus=v.menus)),v});else{if(o===0&&((s=r.menus)==null?void 0:s.length)>0&&(r.mainKey=!0),r!=null&&r.isMainPath)return r;((c=r.menus)==null?void 0:c.length)>0&&!((y=l==null?void 0:l[0])!=null&&y.isMainPath)&&(r.menus=(p=r.menus)==null?void 0:p.map((v,m)=>{var u,w;return((u=r.menus)==null?void 0:u.length)-1===m&&v===""&&(n==null?void 0:n.parentContent)+"/"!==((w=r.menus)==null?void 0:w.join("/"))&&(v=n==null?void 0:n.value),v}),r.bindMenus=r.menus)}return r}),l),Vd=(l,n)=>(l=l==null?void 0:l.map(r=>((r==null?void 0:r.key)==="header"&&(r.contents=Js(r.contents,n)),r)),l),ht=(l,n)=>{let r=l;return Array.isArray(r==null?void 0:r[0])?r=r==null?void 0:r.map(o=>(o=ht(o,n),o)):r=r==null?void 0:r.map(o=>{var s,c;return o!=null&&o.children&&((s=o==null?void 0:o.children)==null?void 0:s.length)>0?o.children=ht(o==null?void 0:o.children,n):o!=null&&o.words&&((c=o==null?void 0:o.words)==null?void 0:c.length)>0&&(n!=null&&n.find(y=>{var p,v,m,u;return((u=(p=o==null?void 0:o.prop)==null?void 0:p.split("."))==null?void 0:u[((m=(v=o==null?void 0:o.prop)==null?void 0:v.split("."))==null?void 0:m.length)-1])===y}))&&(o.mainKey=!0),o}),r};let dr="$R";const Pd=Y.useUnit(ol.pinia),{selectTitle:hn}=ol.storeToRefs(Pd),vn=[{key:"@InterfaceMaxRow",value:"onNumSlice",order:1},{key:"@QuoteType",value:"onRandomContents",order:2},{key:"@InterfaceType",value:"onInterfaceTypeContents",order:2},{key:"@Filter",value:"onConditionContents",order:4},{key:"@QuoteFatherSync",value:"onFatherPaceContents",order:1},{key:"@QuoteSonSync",value:"onPaceContents",order:1},{key:"@QuoteMainPam",value:"onMainTagContents",order:3},{key:"@InterfaceTopButton",value:"onButtonContents",order:1},{key:"@InterfaceColumnButton",value:"onPamButtonContents",order:1},{key:"@InterfaceRowButton",value:"onRowButtonContents",order:1},{key:"@InterfaceBottomButton",value:"onBottomButtonContents",order:1},{key:"@Related",value:"onRelated",order:1},{key:"@InterfaceRowNum",value:"onRowNum",order:1},{key:"@InterfaceFixRow",value:"onFixRow",order:1},{key:"@InterfaceReqItem",value:"onReqItem",order:1},{key:"@Condition",value:"onConditionContent",order:1},{key:"@InterfaceTab",value:"onTabs",order:1},{key:"@InterfaceSinChoice",value:"onSinChoice",order:1},{key:"@InterfaceTextSize",value:"onTextSize",order:1},{key:"@InterfaceTextRGBA",value:"onTextRGBA",order:1},{key:"@InterfacePosition",value:"onPosition",order:4},{key:"@InterfaceSize",value:"onSize",order:4},{key:"@InterfaceShowType",value:"onShowType",order:1},{key:"@InterfaceStepName",value:"onStepName",order:1},{key:"@InterfaceStep",value:"onStep",order:1},{key:"@InterfaceBackGround",value:"onBackGround",order:1}];var oo=(l=>(l[l.ORDINARY=1]="ORDINARY",l[l.BLOCK=2]="BLOCK",l[l.TEXT=3]="TEXT",l))(oo||{});const Fd=l=>{if((l==null?void 0:l.filter)!==void 0&&(l==null?void 0:l.filter)!==null&&(l==null?void 0:l.filter)!==""){let n=l==null?void 0:l.contents;return n.push({key:"backGround",contents:l==null?void 0:l.filter}),n}return l==null?void 0:l.contents},jd=l=>{const n=Zs(l==null?void 0:l.filter);return n?Qs(l==null?void 0:l.contents,{position:n}):l==null?void 0:l.contents},Hd=l=>{const n=Zs(l==null?void 0:l.filter);return n?Qs(l==null?void 0:l.contents,{size:n}):l==null?void 0:l.contents},Ud=l=>{if((l==null?void 0:l.filter)!==void 0&&(l==null?void 0:l.filter)!==null&&(l==null?void 0:l.filter)!==""){let n=l==null?void 0:l.contents;const r=Number(l==null?void 0:l.filter);return n.push({key:"textSize",contents:Number.isNaN(r)?l==null?void 0:l.filter:r}),n}return l==null?void 0:l.contents},qd=l=>{if((l==null?void 0:l.filter)!==void 0&&(l==null?void 0:l.filter)!==null&&(l==null?void 0:l.filter)!==""){let n=l==null?void 0:l.contents;return n.push({key:"textRGBA",contents:l==null?void 0:l.filter}),n}return l==null?void 0:l.contents},Wd=l=>{var r;return(l==null?void 0:l.filter.toUpperCase())==="ALL"||(l==null?void 0:l.filter.toUpperCase())==="NONE"?l==null?void 0:l.contents:(r=l==null?void 0:l.contents)==null?void 0:r.map(o=>{var s;return(o==null?void 0:o.key)==="tableContents"&&(o.contents=(s=o.contents)==null?void 0:s.slice(0,parseInt(l==null?void 0:l.filter))),o})},Kd=async l=>{var n,r,o,s,c,y,p,v,m,u,w,D,L,S,W,I,A,ee,C,_,E,k,g,O,F,q,te,Te,Ee,Q;if((l==null?void 0:l.filter)==="Random")return(n=l==null?void 0:l.contents)==null?void 0:n.map(Z=>((Z==null?void 0:Z.key)==="tableContents"&&(Z.contents=$a.shuffle(Z.contents)),Z));if((l==null?void 0:l.filter)==="Auto"){let be=(o=(r=l==null?void 0:l.contents)==null?void 0:r.find(Se=>(Se==null?void 0:Se.key)==="header"))==null?void 0:o.contents;Array.isArray(be==null?void 0:be[0])&&(be=be==null?void 0:be[0]),be=oa.getColumnChild(be);let Z=be==null?void 0:be.filter(Se=>(Se==null?void 0:Se.filter)&&(Se==null?void 0:Se.filter)!==""),de=new Map,je=[];Z==null||Z.forEach(Se=>{var ke,Ze;de.get((ke=Se==null?void 0:Se.menus)==null?void 0:ke.join("/"))||(de.set((Ze=Se==null?void 0:Se.menus)==null?void 0:Ze.join("/"),Se),je.push(Se))});let wa=(c=(s=hn==null?void 0:hn.value)==null?void 0:s.find(Se=>(Se==null?void 0:Se.condition)==="child"))==null?void 0:c.value,ie=je==null?void 0:je.map(Se=>{var ke,Ze,ya;return Se=(ke=Se==null?void 0:Se.menus)==null?void 0:ke.join("/"),(Se==null?void 0:Se[(Se==null?void 0:Se.length)-1])==="/"&&((ya=(Ze=hn==null?void 0:hn.value)==null?void 0:Ze.find(Ha=>(Ha==null?void 0:Ha.condition)==="child"))==null?void 0:ya.parentContent)+"/"!==Se?Se=Se+wa:(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}),P=je==null?void 0:je.map(Se=>Se==null?void 0:Se.groups),j=ie==null?void 0:ie.map(async Se=>{let ke=await Kr(Se,!1);return{path:Se,contents:ke}});j=await Promise.all(j);let ye=j==null?void 0:j.map((Se,ke)=>{var ya,Ha,re,la,Ve,ba,Fe;let Ze=(ya=Se==null?void 0:Se.contents)==null?void 0:ya.filter(Ie=>{var $e,Qe;return(Ie==null?void 0:Ie.name)===((Qe=P==null?void 0:P[ke])==null?void 0:Qe[(($e=P==null?void 0:P[ke])==null?void 0:$e.length)-1])});return Ze=(la=(re=(Ha=Ze==null?void 0:Ze[0])==null?void 0:Ha.compData)==null?void 0:re.find(Ie=>(Ie==null?void 0:Ie.key)==="tableContents"))==null?void 0:la.contents,(Se==null?void 0:Se.path)===((ba=(Ve=hn==null?void 0:hn.value)==null?void 0:Ve.find(Ie=>(Ie==null?void 0:Ie.condition)==="child"))==null?void 0:ba.parentContent)&&(Ze=((Fe=Ze==null?void 0:Ze.map(Ie=>{for(let $e in Ie)if(Ie[$e]===wa)return Ie}))==null?void 0:Fe.filter(Ie=>Ie))??[]),Ze??[]});if(ye=ye==null?void 0:ye.map(Se=>(Se=Se==null?void 0:Se.map(ke=>{var ya;let Ze={};for(let Ha in ke)if(Z!=null&&Z.find(re=>{var la,Ve;return((Ve=(la=re==null?void 0:re.words)==null?void 0:la[0])==null?void 0:Ve.replaceAll("'",""))===Ha})){let re=(ya=Z==null?void 0:Z.find(la=>{var Ve,ba;return((ba=(Ve=la==null?void 0:la.words)==null?void 0:Ve[0])==null?void 0:ba.replaceAll("'",""))===Ha}))==null?void 0:ya.prop;Ze[re]=ke==null?void 0:ke[Ha]}return Ze}),Se)),ye=$a.cartesianProduct(ye),Array.isArray(ye==null?void 0:ye[0])&&(ye=ye==null?void 0:ye[0]),(ye==null?void 0:ye.length)>0&&((w=(p=(y=Z==null?void 0:Z[0])==null?void 0:y.menus)==null?void 0:p.join("/"))==null?void 0:w[((u=(m=(v=Z==null?void 0:Z[0])==null?void 0:v.menus)==null?void 0:m.join("/"))==null?void 0:u.length)-1])==="/")return(D=l==null?void 0:l.contents)==null?void 0:D.map(ke=>{var Ze;return(ke==null?void 0:ke.key)==="tableContents"&&(ye==null?void 0:ye.length)>0&&(ke.contents=((Ze=ke.contents)==null?void 0:Ze.length)>0?ke.contents:ye),ke})}if((l==null?void 0:l.filter)==="Manual"){let be=[],Z=[],de=(S=(L=l==null?void 0:l.contents)==null?void 0:L.find(P=>(P==null?void 0:P.key)==="filter"))==null?void 0:S.contents;(de==null?void 0:de[(de==null?void 0:de.length)-1])===")"?de=(I=(W=de==null?void 0:de.replace("(",dr))==null?void 0:W.split(dr))==null?void 0:I[0]:de="",de!==""&&(be=((ee=(A=de==null?void 0:de.split("*"))==null?void 0:A[0])==null?void 0:ee.split(":"))??[],Z=((g=(k=(E=(_=(C=de==null?void 0:de.split("*"))==null?void 0:C[1])==null?void 0:_.replace("{",dr))==null?void 0:E.split(dr))==null?void 0:k[0])==null?void 0:g.split(":"))??[]);let je=(F=(O=l==null?void 0:l.contents)==null?void 0:O.find(P=>(P==null?void 0:P.key)==="filter"))==null?void 0:F.contents;je=(te=(q=je==null?void 0:je.replace("(",dr))==null?void 0:q.split(dr))==null?void 0:te[1],je=je==null?void 0:je.slice(0,(je==null?void 0:je.length)-1);let wa=(Te=l==null?void 0:l.contents)==null?void 0:Te.map(P=>{var j,ye,Se,ke,Ze,ya,Ha,re,la;return(P==null?void 0:P.key)==="header"&&((j=P==null?void 0:P.contents)!=null&&j.every(Ve=>(Ve==null?void 0:Ve.mainKey)!==!0)&&Array.isArray(P==null?void 0:P.contents)&&!Array.isArray((ye=P==null?void 0:P.contents)==null?void 0:ye[0])?P.contents=(Se=P==null?void 0:P.contents)==null?void 0:Se.map((Ve,ba)=>{var Fe,Ie,$e;return Ve!=null&&Ve.isMainPath||(ba===0?(Ve.mainKey=!0,Ve.formType="Select",Ve.bindMenus=be,Ve.groups=((Fe=Ve.groups)==null?void 0:Fe.length)===0?Z:Ve.groups,Ve.words=((Ie=Ve.words)==null?void 0:Ie.length)===0?[Ve==null?void 0:Ve.prop]:Ve.words,Ve.filter=je,(!(Ve!=null&&Ve.menus)||(($e=Ve==null?void 0:Ve.menus)==null?void 0:$e.length)===0)&&(Ve.menus=be)):(Ve.mainKey=!1,Ve.bindMenus=be)),Ve}):Array.isArray((ke=P==null?void 0:P.contents)==null?void 0:ke[0])&&((Ha=(ya=(Ze=P==null?void 0:P.contents)==null?void 0:Ze[0])==null?void 0:ya.filter(()=>(be==null?void 0:be.length)>0))==null?void 0:Ha.length)>0&&(P.contents[0]=(la=(re=P==null?void 0:P.contents)==null?void 0:re[0])==null?void 0:la.map((Ve,ba)=>{var Fe,Ie,$e;return Ve!=null&&Ve.isMainPath||(ba===0?(Ve.mainKey=!0,Ve.formType="Select",Ve.bindMenus=be,Ve.groups=((Fe=Ve.groups)==null?void 0:Fe.length)===0?Z:Ve.groups,Ve.words=((Ie=Ve.words)==null?void 0:Ie.length)===0?[Ve==null?void 0:Ve.prop]:Ve.words,Ve.filter=je,(!(Ve!=null&&Ve.menus)||Array.isArray(Ve==null?void 0:Ve.menus)&&(($e=Ve==null?void 0:Ve.menus)==null?void 0:$e.length)===0)&&(be==null?void 0:be.length)>0&&(Ve.menus=be)):(Ve.mainKey=!1,Ve.bindMenus=be)),Ve}))),P}),ie=(Ee=wa==null?void 0:wa.find(P=>(P==null?void 0:P.key)==="header"))==null?void 0:Ee.contents;if(Array.isArray(ie==null?void 0:ie[0])&&(ie=ie==null?void 0:ie[0]),ie=oa.getColumnChild(ie),ie!=null&&ie.some(P=>{var j,ye;return((ye=P==null?void 0:P.menus)==null?void 0:ye[((j=P==null?void 0:P.menus)==null?void 0:j.length)-1])===""})){let P=(Q=hn==null?void 0:hn.value)==null?void 0:Q.find(j=>(j==null?void 0:j.condition)==="child");wa=Vd(wa,P)}return wa}return l==null?void 0:l.contents},Gd=async l=>{if((l==null?void 0:l.filter)==="Form"){let n=l==null?void 0:l.contents;return n.push({key:"enableWrap",contents:1}),n}if((l==null?void 0:l.filter)==="FormBlock"){let n=l==null?void 0:l.contents;return n.push({key:"enableWrap",contents:2}),n}if((l==null?void 0:l.filter)==="FormText"){let n=l==null?void 0:l.contents;return n.push({key:"enableWrap",contents:3}),n}return l==null?void 0:l.contents},Yd=l=>{var o,s,c,y;let n=l==null?void 0:l.filter;if(n!=null&&n.includes("*")&&(n="({"+((s=(o=n==null?void 0:n.replace("{",dr))==null?void 0:o.split(dr))==null?void 0:s[1])),n=(c=n==null?void 0:n.replaceAll("{",""))==null?void 0:c.replaceAll("}",""),(n==null?void 0:n[0])!=="("&&(n="("+n+")"),n.slice(1,(n==null?void 0:n.length)-1)==="undefined")return l==null?void 0:l.contents;let r=oa.calculatorAndToOr(n);if((r==null?void 0:r.length)>0){let p=[];return r==null||r.forEach(m=>{let u={};for(let w in m){let D=w;D!=null&&D.includes("[")||(u[D]=m[w])}p.push(u)}),(y=l==null?void 0:l.contents)==null?void 0:y.map(m=>{var w,D,L;let u=(D=(w=l==null?void 0:l.contents)==null?void 0:w.find(S=>(S==null?void 0:S.key)==="header"))==null?void 0:D.contents;if(u=(L=oa.getEqualChild(u))==null?void 0:L.filter(S=>(S==null?void 0:S.label)!=="操作"),(m==null?void 0:m.key)==="tableContents"){let W=oa.tableToForm(m==null?void 0:m.contents,u);p==null||p.forEach(I=>{var A,ee;for(let C in I)!((A=W==null?void 0:W[0])!=null&&A.find(_=>{var E;return(_==null?void 0:_.key)===C||((E=_==null?void 0:_.key)==null?void 0:E.includes(C))}))&&!(W!=null&&W.find(_=>{var E;return(_==null?void 0:_.key)===C||((E=_==null?void 0:_.key)==null?void 0:E.includes(C))}))||(((ee=I[C])==null?void 0:ee[0])!=="!"?W=W==null?void 0:W.filter(_=>{var E,k;return((E=_==null?void 0:_.find(g=>{var O;return(g==null?void 0:g.key)===C||((O=g==null?void 0:g.key)==null?void 0:O.includes(C))}))==null?void 0:E.value)===I[C]||Array.isArray(I==null?void 0:I[C])&&((k=I==null?void 0:I[C])==null?void 0:k.find(g=>{var O;return((O=_==null?void 0:_.find(F=>{var q;return(F==null?void 0:F.key)===C||((q=F==null?void 0:F.key)==null?void 0:q.includes(C))}))==null?void 0:O.value)===g}))}):W=W==null?void 0:W.filter(_=>{var E;return((E=_==null?void 0:_.find(k=>{var g;return(k==null?void 0:k.key)===C||((g=k==null?void 0:k.key)==null?void 0:g.includes(C))}))==null?void 0:E.value)!==I[C]}))}),(W==null?void 0:W.length)===0?m.contents=[]:m.contents=W==null?void 0:W.map(I=>{let A={};return I==null||I.forEach(ee=>{A[ee==null?void 0:ee.key]=ee==null?void 0:ee.value}),A})}return m})}return l==null?void 0:l.contents},Jd=l=>l==null?void 0:l.contents,Xd=l=>l==null?void 0:l.contents,Zd=l=>{var n,r,o,s;if((l==null?void 0:l.filter)!==""&&(l!=null&&l.filter)){let c=(o=(r=l==null?void 0:l.filter)==null?void 0:r.slice(1,((n=l==null?void 0:l.filter)==null?void 0:n.length)-1))==null?void 0:o.split(",");return(s=l==null?void 0:l.contents)==null?void 0:s.map(p=>((p==null?void 0:p.key)==="header"&&(p.contents=ht(p.contents,c)),p))}return l==null?void 0:l.contents},Qd=l=>{var r;let n=(l==null?void 0:l.filter)??"";return(n==null?void 0:n[0])==="{"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n!==""?(r=l==null?void 0:l.contents)==null?void 0:r.map(s=>{var c;return(s==null?void 0:s.key)==="extraButton"&&(s.contents=(c=n==null?void 0:n.split(","))==null?void 0:c.map(y=>({label:y,prop:y}))),s}):l==null?void 0:l.contents},ep=l=>l==null?void 0:l.contents,ap=l=>{var r;let n=(l==null?void 0:l.filter)??"";return(n==null?void 0:n[0])==="{"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n!==""?(r=l==null?void 0:l.contents)==null?void 0:r.map(s=>{var c;return(s==null?void 0:s.key)==="rowButton"&&(s.contents=(c=n==null?void 0:n.split(","))==null?void 0:c.map(y=>({label:y,prop:y}))),s}):l==null?void 0:l.contents},lp=l=>{var r;let n=(l==null?void 0:l.filter)??"";if((n==null?void 0:n[0])==="{"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n!==""){let o=l==null?void 0:l.contents,s=(r=n==null?void 0:n.split(","))==null?void 0:r.map(c=>({label:c,prop:c}));return o.push({key:"bottomButton",contents:s}),o}return l==null?void 0:l.contents},rp=l=>{var n,r,o,s;if(((n=l==null?void 0:l.filter)==null?void 0:n[0])!=="["){const c=parseInt(l==null?void 0:l.filter);return!c||Number.isNaN(c)?l==null?void 0:l.contents:(r=l==null?void 0:l.contents)==null?void 0:r.map(p=>{var v;return(p==null?void 0:p.key)==="formContent"&&(p.contents=(v=p.contents)==null?void 0:v.map(m=>(m.width=c,m))),p})}if(((o=l==null?void 0:l.filter)==null?void 0:o[0])==="["){let c=No(l==null?void 0:l.filter),y=Array.isArray(c)?c.map(v=>parseInt(v)).filter(v=>!!v&&!Number.isNaN(v)):[];return y.length?(s=l==null?void 0:l.contents)==null?void 0:s.map(v=>{if((v==null?void 0:v.key)==="formContent"){const m=v.contents??[];v.contents=m.map((u,w)=>{const D=w+1;let L=0,S=0;for(let I=0;I<y.length;I++){if(S+=y[I],D<=S){L=I;break}I===y.length-1&&(L=y.length-1)}const W=y[L]||y[y.length-1]||1;return u.width=W,u})}return v}):l==null?void 0:l.contents}return l==null?void 0:l.contents},np=l=>{var n;if((l==null?void 0:l.filter)!==""){let r=l==null?void 0:l.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(","),(n=l==null?void 0:l.contents)==null?void 0:n.map(s=>{var c,y,p;return(s==null?void 0:s.key)==="header"&&(Array.isArray((c=s==null?void 0:s.contents)==null?void 0:c[0])?s.contents[0]=(p=s.contents[0])==null?void 0:p.map(v=>(r!=null&&r.find(m=>m===(v==null?void 0:v.prop))&&(v.fixed="left"),v)):s.contents=(y=s.contents)==null?void 0:y.map(v=>(r!=null&&r.find(m=>m===(v==null?void 0:v.prop))&&(v.fixed="left"),v))),s})}return l==null?void 0:l.contents},op=l=>{var n;if((l==null?void 0:l.filter)!==""){let r=l==null?void 0:l.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 o=c=>(r!=null&&r.find(y=>y===(c==null?void 0:c.prop))&&(c.required=!0),c!=null&&c.children&&Array.isArray(c.children)&&(c.children=c.children.map(y=>o(y))),c);return(n=l==null?void 0:l.contents)==null?void 0:n.map(c=>{var y,p,v;return(c==null?void 0:c.key)==="header"&&(Array.isArray((y=c==null?void 0:c.contents)==null?void 0:y[0])?c.contents[0]=(v=c.contents[0])==null?void 0:v.map(m=>o(m)):c.contents=(p=c.contents)==null?void 0:p.map(m=>o(m))),c})}return l==null?void 0:l.contents},ip=async l=>{var o,s,c,y,p,v,m,u,w,D,L,S,W,I,A,ee,C;const n=Y.useUnit(ol.pinia),{chooseTitle:r}=ol.storeToRefs(n);if((l==null?void 0:l.filter)==="true"){let _=await Kr(((s=(o=r==null?void 0:r.value)==null?void 0:o[0])==null?void 0:s.parentContent)??((y=(c=r==null?void 0:r.value)==null?void 0:c[0])==null?void 0:y.relatedContent),!1),E=(v=(p=r==null?void 0:r.value)==null?void 0:p[0])==null?void 0:v.value;(u=(m=_==null?void 0:_[0])==null?void 0:m.compData)!=null&&u.find(F=>(F==null?void 0:F.key)==="header")?_=(w=_==null?void 0:_[0])==null?void 0:w.compData:_=(L=(D=_==null?void 0:_.filter(F=>{var q;return(q=F==null?void 0:F.compData)==null?void 0:q.find(te=>(te==null?void 0:te.key)==="header")}))==null?void 0:D[0])==null?void 0:L.compData;let k=(S=_==null?void 0:_.find(F=>(F==null?void 0:F.key)==="header"))==null?void 0:S.contents;Array.isArray(k==null?void 0:k[0])&&(k=k==null?void 0:k[0]),k=((W=k==null?void 0:k.find(F=>F==null?void 0:F.isMainKey))==null?void 0:W.prop)??((I=k==null?void 0:k[0])==null?void 0:I.prop);let g=(ee=(A=_==null?void 0:_.find(F=>(F==null?void 0:F.key)==="tableContents"))==null?void 0:A.contents)==null?void 0:ee.find(F=>(F==null?void 0:F[k])===E);return(C=l==null?void 0:l.contents)==null?void 0:C.map(F=>{var q;return(F==null?void 0:F.key)==="formContent"&&(F.contents=(q=F.contents)==null?void 0:q.map(te=>(te.value=g==null?void 0:g[te==null?void 0:te.prop],te))),F})}return l==null?void 0:l.contents},tp=l=>{var n,r,o,s,c;if((n=l==null?void 0:l.extra)!=null&&n.row){let y=l==null?void 0:l.filter;if(y!=null&&y.includes("*")&&(y="({"+((o=(r=y==null?void 0:y.replace("{",dr))==null?void 0:r.split(dr))==null?void 0:o[1])),y=(s=y==null?void 0:y.replaceAll("{",""))==null?void 0:s.replaceAll("}",""),(y==null?void 0:y[0])!=="("&&(y="("+y+")"),y.slice(1,(y==null?void 0:y.length)-1)==="undefined")return l==null?void 0:l.contents;let p=oa.calculatorAndToOr(y),v=p==null?void 0:p[0],m=(c=l==null?void 0:l.extra)==null?void 0:c.row,u=[];for(let w in v)(v==null?void 0:v[w])===(m==null?void 0:m[w])?u.push(!0):u.push(!1);return u!=null&&u.every(w=>w===!0)?l==null?void 0:l.contents:[]}else return l==null?void 0:l.contents},sp=l=>{if(l!=null&&l.filter){let n=l==null?void 0:l.contents;return n.push({key:"tab",contents:l==null?void 0:l.filter}),n}return l==null?void 0:l.contents},cp=l=>{if(l!=null&&l.filter){let n=l==null?void 0:l.contents;return n.push({key:"choice",contents:l==null?void 0:l.filter}),n}return l==null?void 0:l.contents},up=l=>{if(l!=null&&l.filter){let n=l==null?void 0:l.contents;return n.push({key:"fixType",contents:l==null?void 0:l.filter}),n}return l==null?void 0:l.contents},dp=l=>{var n;if(l!=null&&l.filter){let r=l==null?void 0:l.contents,o=l==null?void 0:l.filter;return(o==null?void 0:o[0])==="{"&&(o=o==null?void 0:o.slice(1,(o==null?void 0:o.length)-1)),o=(n=$a.analyzeSplitToContent(o,","))==null?void 0:n.map(s=>((s==null?void 0:s[(s==null?void 0:s.length)-1])===","&&(s=s==null?void 0:s.slice(0,(s==null?void 0:s.length)-1)),s)),r.push({key:"stepName",contents:o}),r}return l==null?void 0:l.contents},pp=l=>{if(l!=null&&l.filter){let n=l==null?void 0:l.contents;return n.push({key:"step",contents:l==null?void 0:l.filter}),n}return l==null?void 0:l.contents},Xs={onNumSlice:Wd,onRandomContents:Kd,onConditionContents:Yd,onFatherPaceContents:Jd,onPaceContents:Xd,onMainTagContents:Zd,onButtonContents:Qd,onPamButtonContents:ep,onRowButtonContents:ap,onRelated:ip,onRowNum:rp,onFixRow:np,onReqItem:op,onBottomButtonContents:lp,onConditionContent:tp,onTabs:sp,onSinChoice:cp,onTextSize:Ud,onTextRGBA:qd,onPosition:jd,onSize:Hd,onShowType:up,onStepName:dp,onStep:pp,onInterfaceTypeContents:Gd,onBackGround:Fd},fp=async(l,n)=>{var c,y,p,v,m,u,w,D,L,S,W,I,A,ee,C,_,E,k,g;let r="";if(((c=l==null?void 0:l.find(O=>(O==null?void 0:O.key)==="filter"))==null?void 0:c.contents)!==""&&(r=(y=l==null?void 0:l.find(O=>(O==null?void 0:O.key)==="filter"))==null?void 0:y.contents),r===""||!r)return l;(r==null?void 0:r[0])==="("?r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1):(r=(v=(p=r==null?void 0:r.replace("(",dr))==null?void 0:p.split(dr))==null?void 0:v[1],r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1));let o=(m=$a.analyzeSplitToContent(r,","))==null?void 0:m.map(O=>((O==null?void 0:O[(O==null?void 0:O.length)-1])===","&&(O=O==null?void 0:O.slice(0,(O==null?void 0:O.length)-1)),O!=null&&O.includes("(")||(O=O==null?void 0:O.replaceAll(":","=")),O)),s=l;for(let O in o){let F,q="";(u=o==null?void 0:o[O])!=null&&u.includes("(")?(F=(L=(D=(w=o==null?void 0:o[O])==null?void 0:w.replace("(",dr))==null?void 0:D.split(dr))==null?void 0:L[0],q="("+((I=(W=(S=o==null?void 0:o[O])==null?void 0:S.replace("(",dr))==null?void 0:W.split(dr))==null?void 0:I[1])):(F=(C=(ee=(A=o==null?void 0:o[O])==null?void 0:A.replace("=",dr))==null?void 0:ee.split(dr))==null?void 0:C[0],q=(k=(E=(_=o==null?void 0:o[O])==null?void 0:_.replace("=",dr))==null?void 0:E.split(dr))==null?void 0:k[1]);let te=(g=vn==null?void 0:vn.find(Te=>(Te==null?void 0:Te.key)===F))==null?void 0:g.value;if(te){const Te=Xs[te];s=await Te({contents:s,filter:q})}}return s},Et=async(l,n)=>{var y,p,v,m,u,w,D,L,S,W,I,A,ee,C,_,E,k,g,O,F;let r="";if(((y=l==null?void 0:l.find(q=>(q==null?void 0:q.key)==="filter"))==null?void 0:y.contents)!==""&&(r=(p=l==null?void 0:l.find(q=>(q==null?void 0:q.key)==="filter"))==null?void 0:p.contents),r===""||!r)return l;(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=(v=r==null?void 0:r.replace("(",dr))==null?void 0:v.split(dr))==null?void 0:m[1],r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1));let o=(u=$a.analyzeSplitToContent(r,","))==null?void 0:u.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!=null&&q.includes("(")||(q=q==null?void 0:q.replaceAll(":","=")),q)),s=l,c=new Map;o==null||o.forEach(q=>{var Te,Ee,Q;let te=(Te=q==null?void 0:q.split("="))==null?void 0:Te[0];if(te==="@MainPam"&&c.get(te)){let be=c.get(te);be=be==null?void 0:be.slice(0,(be==null?void 0:be.length)-1);let Z=(Q=(Ee=q==null?void 0:q.replace("{",dr))==null?void 0:Ee.split(dr))==null?void 0:Q[1];Z=be+","+Z,c.set(te,Z)}else c.set(te,q)}),o=Array.from(c.values()),o=o==null?void 0:o.sort((q,te)=>{var Te,Ee;return((Te=vn==null?void 0:vn.find(Q=>te==null?void 0:te.includes(Q==null?void 0:Q.key)))==null?void 0:Te.order)-((Ee=vn==null?void 0:vn.find(Q=>q==null?void 0:q.includes(Q==null?void 0:Q.key)))==null?void 0:Ee.order)});for(let q in o){let te,Te="";(w=o==null?void 0:o[q])!=null&&w.includes("(")&&((D=o==null?void 0:o[q])!=null&&D.includes("@Filter"))?(te=(W=(S=(L=o==null?void 0:o[q])==null?void 0:L.replace("(",dr))==null?void 0:S.split(dr))==null?void 0:W[0],Te="("+((ee=(A=(I=o==null?void 0:o[q])==null?void 0:I.replace("(",dr))==null?void 0:A.split(dr))==null?void 0:ee[1])):(te=(E=(_=(C=o==null?void 0:o[q])==null?void 0:C.replace("=",dr))==null?void 0:_.split(dr))==null?void 0:E[0],Te=(O=(g=(k=o==null?void 0:o[q])==null?void 0:k.replace("=",dr))==null?void 0:g.split(dr))==null?void 0:O[1]);let Ee=(F=vn==null?void 0:vn.find(Q=>(Q==null?void 0:Q.key)===te))==null?void 0:F.value;if(Ee){const Q=Xs[Ee];s=await Q({contents:s,filter:Te,extra:n})}}return s},Zs=l=>{if(l==null)return null;const n=String(l).trim();if(!n.startsWith("[")||!n.endsWith("]"))return null;const r=n.slice(1,-1).split(",").map(o=>Number(o.trim()));return r.length<2||r.some(o=>Number.isNaN(o))?null:[r[0],r[1]]},Qs=(l,n)=>{var W,I,A,ee,C;const r=Array.isArray(l)?l:[],o=r.find(_=>(_==null?void 0:_.key)==="formContent"),s=Array.isArray(o==null?void 0:o.contents)?o.contents:[],c=((W=r.find(_=>(_==null?void 0:_.key)==="_gridLayoutMeta"))==null?void 0:W.contents)??{},y=(s==null?void 0:s[0])??{};let p=((I=n==null?void 0:n.position)==null?void 0:I[0])??(c==null?void 0:c._positionStartRow)??(y==null?void 0:y._positionStartRow),v=((A=n==null?void 0:n.position)==null?void 0:A[1])??(c==null?void 0:c._positionRowSpan)??(y==null?void 0:y._positionRowSpan);(!p||Number.isNaN(p)||p<1)&&(p=1),(!v||Number.isNaN(v)||v<1)&&(v=1);let m=((ee=n==null?void 0:n.size)==null?void 0:ee[0])??(c==null?void 0:c._sizeStart)??(y==null?void 0:y._sizeStart),u=((C=n==null?void 0:n.size)==null?void 0:C[1])??(c==null?void 0:c._sizeEnd)??(y==null?void 0:y._sizeEnd);(m===void 0||Number.isNaN(m))&&(m=0),(u===void 0||Number.isNaN(u))&&(u=1),m=Math.max(0,Math.min(1,m)),u=Math.max(0,Math.min(1,u)),u<=m&&(m=0,u=1);const w=u-m,D=Math.max(1,Math.round(1/w));let L=r.map(_=>{if((_==null?void 0:_.key)!=="formContent")return _;const E=Array.isArray(_==null?void 0:_.contents)?_.contents:[];return{..._,contents:E.map(k=>({...k,width:D,_positionStartRow:p,_positionRowSpan:v,_sizeStart:m,_sizeEnd:u}))}});const S={_positionStartRow:p,_positionRowSpan:v,_sizeStart:m,_sizeEnd:u};return L.some(_=>(_==null?void 0:_.key)==="_gridLayoutMeta")?L=L.map(_=>(_==null?void 0:_.key)==="_gridLayoutMeta"?{..._,contents:S}:_):L.push({key:"_gridLayoutMeta",contents:S}),L};let pi="$R";const hp=Y.useUnit(ol.pinia),{selectTitle:vp}=ol.storeToRefs(hp);let mp=[{label:"新增",prop:"新增"},{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],yp=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"},{label:"复制新增",prop:"复制新增"},{label:"删除",prop:"删除"}],gp=[{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],bp=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"}];const ns=async(l,n,r=!0)=>{let o=[],s=l==null?void 0:l.map(async c=>{var w,D,L,S,W,I,A,ee,C,_,E,k,g,O,F,q,te,Te,Ee,Q,be,Z,de,je,wa,ie,P,j,ye,Se,ke,Ze,ya,Ha,re,la,Ve,ba,Fe,Ie,$e,Qe,Xa,Wa,V,$,X,se,ue,va,ra,Le,Ce,Sa,da,Fa,ja,me,Je,ze,Xe,pa,ua,Ae,za,fa,Ua,ga,He,We,Ne,De,fe,oe,ia,Pa,hl,Ma,Ul;let y=(S=(L=(D=(w=c==null?void 0:c.contents)==null?void 0:w.find(Ea=>{var _a;return(_a=Ea==null?void 0:Ea.key)==null?void 0:_a.includes("struct")}))==null?void 0:D.value)==null?void 0:L[0])==null?void 0:S.类型,p=Object.values(c==null?void 0:c.name);p=p==null?void 0:p.reverse();let v=(W=c==null?void 0:c.contents)==null?void 0:W.map(Ea=>Ea==null?void 0:Ea.key),m={comp:y,isShow:c==null?void 0:c.is_show,name:p==null?void 0:p[0],id:c==null?void 0:c.object_id,relatedTables:v,menuFilter:(I=c==null?void 0:c.filter)==null?void 0:I.menuFilter,status:c==null?void 0:c.status,fatherSyncContents:(A=c==null?void 0:c.filter)==null?void 0:A.fatherSyncs,relatedQuotes:(ee=c==null?void 0:c.filter)==null?void 0:ee.quotes,sonSyncContents:(C=c==null?void 0:c.filter)==null?void 0:C.sonSyncs,nameContents:(_=Y.cloneDeep(p))==null?void 0:_.reverse()};for(let Ea in p)parseInt(Ea)>=1&&(m[`name${parseInt(Ea)-1}`]=p[Ea]);let u=Array.isArray((E=c==null?void 0:c.filter)==null?void 0:E.menuFilter)?(k=c==null?void 0:c.filter)==null?void 0:k.menuFilter:[];if(((g=u==null?void 0:u.filter(Ea=>Ea==null?void 0:Ea.includes("@Filter")))==null?void 0:g.length)>0){let Ea=u==null?void 0:u.filter(ae=>ae==null?void 0:ae.includes("@Filter"));Ea=Ea==null?void 0:Ea[0],Ea=(F=(O=Ea==null?void 0:Ea.replace("(",pi))==null?void 0:O.split(pi))==null?void 0:F[1],Ea=Ea==null?void 0:Ea.slice(0,(Ea==null?void 0:Ea.length)-1),Ea!=null&&Ea.includes("*")&&(Ea=(te=(q=Ea==null?void 0:Ea.replace("{",pi))==null?void 0:q.split(pi))==null?void 0:te[1],Ea=Ea==null?void 0:Ea.replace("}","")),Ea=oa.calculatorAndToOr(Ea);let _a=(n==null?void 0:n.originPath)??"";(_a==null?void 0:_a[(_a==null?void 0:_a.length)-1])==="/"&&(_a=_a==null?void 0:_a.slice(0,(_a==null?void 0:_a.length)-1));let Ra=await Kr(_a,!1),Va=(Te=Ra==null?void 0:Ra.filter(ae=>(ae==null?void 0:ae.comp)==="Table"))==null?void 0:Te[0];Va=(Q=(Ee=Va==null?void 0:Va.compData)==null?void 0:Ee.find(ae=>(ae==null?void 0:ae.key)==="tableContents"))==null?void 0:Q.contents;let qa=(Z=(be=vp.value)==null?void 0:be.find(ae=>(ae==null?void 0:ae.condition)==="child"))==null?void 0:Z.value;Va=(de=Va==null?void 0:Va.map(ae=>{for(let Ye in ae)if((ae==null?void 0:ae[Ye])===qa)return ae}))==null?void 0:de.filter(ae=>ae),Va=Va==null?void 0:Va[0],Ea=Ea==null?void 0:Ea[0];let xa=[];for(let ae in Ea){let Ye="";al.isObject(Va)&&(Ye=(wa=(je=Object.keys(Va))==null?void 0:je.filter(pe=>pe==null?void 0:pe.includes("."+ae)))==null?void 0:wa[0]),Ye!==""&&(Va!=null&&Va[Ye])&&(Ea==null?void 0:Ea[ae])===(Va==null?void 0:Va[Ye])||Va!=null&&Va[ae]&&(Ea==null?void 0:Ea[ae])===(Va==null?void 0:Va[ae])?xa.push(!0):xa.push(!1)}if(xa!=null&&xa.some(ae=>ae===!1)&&((P=n==null?void 0:n.originPath)==null?void 0:P[((ie=n==null?void 0:n.originPath)==null?void 0:ie.length)-1])!=="/")return}if(y==="Table"||y==="Method"){let Ea=((j=c==null?void 0:c.contents)==null?void 0:j.find(qe=>{var G;return(G=qe==null?void 0:qe.key)==null?void 0:G.includes("content")}))||[],_a=[];m.comp="Table",Ea.value=(ye=Ea==null?void 0:Ea.value)==null?void 0:ye.sort((qe,G)=>parseInt(qe==null?void 0:qe.id)-parseInt(G==null?void 0:G.id)),Ea.value=(Se=Ea==null?void 0:Ea.value)==null?void 0:Se.map(qe=>{let G={};for(let aa in qe)JSON.stringify(qe==null?void 0:qe[aa])==="{}"?G[aa]="":G[aa]=qe==null?void 0:qe[aa];return G}),_a.push({key:"tableContents",contents:Ea==null?void 0:Ea.value});let Ra=(re=(Ha=(ya=(Ze=(ke=c==null?void 0:c.contents)==null?void 0:ke.find(qe=>{var G;return(G=qe==null?void 0:qe.key)==null?void 0:G.includes("struct")}))==null?void 0:Ze.value)==null?void 0:ya[0])==null?void 0:Ha.结构)==null?void 0:re.contents;Array.isArray(Ra==null?void 0:Ra[0])?Ra[0]=(la=Ra==null?void 0:Ra[0])==null?void 0:la.filter(qe=>(qe==null?void 0:qe.prop)!=="sort"&&(qe==null?void 0:qe.prop)!=="relatedId"):Ra=Ra==null?void 0:Ra.filter(qe=>(qe==null?void 0:qe.prop)!=="sort"&&(qe==null?void 0:qe.prop)!=="relatedId"),_a.push({key:"header",contents:Ra}),_a.push({key:"filter",contents:($e=(Ie=(Fe=(ba=(Ve=c==null?void 0:c.contents)==null?void 0:Ve.find(qe=>{var G;return(G=qe==null?void 0:qe.key)==null?void 0:G.includes("struct")}))==null?void 0:ba.value)==null?void 0:Fe[0])==null?void 0:Ie.引用)==null?void 0:$e.contents});let Va=mp,qa=Y.cloneDeep(yp);y==="Method"&&qa.push({label:"生成方法",prop:"生成方法"}),!Array.isArray(Ra==null?void 0:Ra[0])&&((Qe=Ra==null?void 0:Ra[0])==null?void 0:Qe.prop)==="disabled"&&(Va=gp,qa=bp);const xa=["推力","真空","压力","温度","流量"],ae=m.name;ae&&xa.includes(ae)&&(Va=[...Va],Va.push({label:"导出paraform",prop:"导出paraform",type:"methodButton"}));let Ye=[];if(!Array.isArray(Ra==null?void 0:Ra[0])&&(Ra!=null&&Ra.some(qe=>{var G;return(qe==null?void 0:qe.calculatorFilter)&&((G=qe==null?void 0:qe.calculatorFilter)==null?void 0:G.includes("Manual"))}))){let qe=(Xa=Ra==null?void 0:Ra.map(G=>G==null?void 0:G.calculatorFilter))==null?void 0:Xa.filter(G=>G&&(G==null?void 0:G.includes("Manual")));qe==null||qe.forEach(G=>{var Ge;let aa=$a.analyzeSplitToContent(G,",");if(aa=aa==null?void 0:aa.map(Be=>((Be==null?void 0:Be[(Be==null?void 0:Be.length)-1])===","&&(Be=Be==null?void 0:Be.slice(0,(Be==null?void 0:Be.length)-1)),Be)),aa!=null&&aa.find(Be=>(Be==null?void 0:Be.includes("Extent"))&&(Be==null?void 0:Be.includes("Row")))&&(aa!=null&&aa.find(Be=>(Be==null?void 0:Be.includes("Button"))&&(Be==null?void 0:Be.includes(","))))){let Be=aa==null?void 0:aa.find(El=>El==null?void 0:El.includes("@FunctionButton"));Be=(Ge=Be==null?void 0:Be.split("="))==null?void 0:Ge[1],Be=Be==null?void 0:Be.slice(1,(Be==null?void 0:Be.length)-1),Be=Be==null?void 0:Be.split(","),Be=Be==null?void 0:Be[(Be==null?void 0:Be.length)-1],Ye.push(Be)}}),Ye=[...new Set(Ye)],Ye=Ye==null?void 0:Ye.map(G=>({label:G,prop:G,type:"methodButton"}))}else if(Array.isArray(Ra==null?void 0:Ra[0])&&((Wa=oa.getColumnChild(Ra==null?void 0:Ra[0]))!=null&&Wa.some(qe=>{var G;return(qe==null?void 0:qe.calculatorFilter)&&((G=qe==null?void 0:qe.calculatorFilter)==null?void 0:G.includes("Manual"))}))){let qe=($=(V=oa.getColumnChild(Ra==null?void 0:Ra[0]))==null?void 0:V.map(G=>G==null?void 0:G.calculatorFilter))==null?void 0:$.filter(G=>G&&(G==null?void 0:G.includes("Manual")));qe==null||qe.forEach(G=>{var Ge;let aa=$a.analyzeSplitToContent(G,",");if(aa=aa==null?void 0:aa.map(Be=>((Be==null?void 0:Be[(Be==null?void 0:Be.length)-1])===","&&(Be=Be==null?void 0:Be.slice(0,(Be==null?void 0:Be.length)-1)),Be)),aa!=null&&aa.find(Be=>(Be==null?void 0:Be.includes("Extent"))&&(Be==null?void 0:Be.includes("Row")))&&(aa!=null&&aa.find(Be=>(Be==null?void 0:Be.includes("Button"))&&(Be==null?void 0:Be.includes(","))))){let Be=aa==null?void 0:aa.find(El=>El==null?void 0:El.includes("@FunctionButton"));Be=(Ge=Be==null?void 0:Be.split("="))==null?void 0:Ge[1],Be=Be==null?void 0:Be.slice(1,(Be==null?void 0:Be.length)-1),Be=Be==null?void 0:Be.split(","),Be=Be==null?void 0:Be[(Be==null?void 0:Be.length)-1],Ye.push(Be)}}),Ye=[...new Set(Ye)],Ye=Ye==null?void 0:Ye.map(G=>({label:G,prop:G,type:"methodButton"}))}_a.push({key:"extraButton",contents:Va}),_a.push({key:"rowButton",contents:[...qa,...Ye]}),m.compData=await Et(_a,n),(X=m.compData)!=null&&X.find(qe=>(qe==null?void 0:qe.key)==="tab")&&(m.tab=(ue=(se=m.compData)==null?void 0:se.find(qe=>(qe==null?void 0:qe.key)==="tab"))==null?void 0:ue.contents),(va=m.compData)!=null&&va.find(qe=>(qe==null?void 0:qe.key)==="step")&&(m.step=(Le=(ra=m.compData)==null?void 0:ra.find(qe=>(qe==null?void 0:qe.key)==="step"))==null?void 0:Le.contents),(Ce=m.compData)!=null&&Ce.find(qe=>(qe==null?void 0:qe.key)==="choice")&&(m.choice=(da=(Sa=m.compData)==null?void 0:Sa.find(qe=>(qe==null?void 0:qe.key)==="choice"))==null?void 0:da.contents);let pe="",Ca=(Fa=m==null?void 0:m.compData)==null?void 0:Fa.filter(qe=>(qe==null?void 0:qe.key)==="fixType");(Ca==null?void 0:Ca.length)>0&&r&&(pe=(ja=Ca==null?void 0:Ca[0])==null?void 0:ja.contents,m.comp=pe)}else if(y==="Form"){let Ea=[],_a=(ze=(Je=(me=c==null?void 0:c.contents)==null?void 0:me.find(ae=>{var Ye;return(Ye=ae==null?void 0:ae.key)==null?void 0:Ye.includes("content")}))==null?void 0:Je.value)==null?void 0:ze[0],Ra=[],Va=Array.isArray((Xe=c==null?void 0:c.filter)==null?void 0:Xe.menuFilter)?(pa=c==null?void 0:c.filter)==null?void 0:pa.menuFilter:[];Va==null||Va.forEach(ae=>{if(ae!=null&&ae.includes("@Param(Hide=Yes, prop=")||ae!=null&&ae.includes("@Interface(Hide=Yes, prop=")){const Ye=ae==null?void 0:ae.match(/prop=([^,)]+)/);Ye!=null&&Ye[1]&&Ra.push(Ye==null?void 0:Ye[1])}});let qa=(Ua=(fa=(za=(Ae=(ua=c==null?void 0:c.contents)==null?void 0:ua.find(ae=>{var Ye;return(Ye=ae==null?void 0:ae.key)==null?void 0:Ye.includes("struct")}))==null?void 0:Ae.value)==null?void 0:za[0])==null?void 0:fa.结构)==null?void 0:Ua.contents,xa=(ga=qa==null?void 0:qa.map(ae=>(ae.value=_a==null?void 0:_a[ae==null?void 0:ae.prop],ae)))==null?void 0:ga.filter(ae=>(ae==null?void 0:ae.prop)!=="sort"&&(ae==null?void 0:ae.prop)!=="relatedId");xa=xa==null?void 0:xa.map(ae=>(Ra!=null&&Ra.includes(ae==null?void 0:ae.prop)&&(ae.isHideInForm=!0),ae)),Ea.push({key:"filter",contents:(fe=(De=(Ne=(We=(He=c==null?void 0:c.contents)==null?void 0:He.find(ae=>{var Ye;return(Ye=ae==null?void 0:ae.key)==null?void 0:Ye.includes("struct")}))==null?void 0:We.value)==null?void 0:Ne[0])==null?void 0:De.引用)==null?void 0:fe.contents}),Ea.push({key:"formContent",contents:xa}),Ea.push({key:"paramHideProps",contents:Ra}),m.compData=await fp(Ea),(oe=m.compData)!=null&&oe.find(ae=>(ae==null?void 0:ae.key)==="tab")&&(m.tab=(Pa=(ia=m.compData)==null?void 0:ia.find(ae=>(ae==null?void 0:ae.key)==="tab"))==null?void 0:Pa.contents),(hl=m.compData)!=null&&hl.find(ae=>(ae==null?void 0:ae.key)==="step")&&(m.step=(Ul=(Ma=m.compData)==null?void 0:Ma.find(ae=>(ae==null?void 0:ae.key)==="step"))==null?void 0:Ul.contents)}return m});return o=await Promise.all(s),o},kp=Y.useLoginState(ol.pinia),{loginUserInfo:_o}=ol.storeToRefs(kp),vt=async(l,n,r="Manual",o=[])=>{var v;let s=l,c;Array.isArray(n==null?void 0:n[0])?c=oa.getColumnChild(n==null?void 0:n[0]):c=n;let y=(v=c==null?void 0:c.filter(m=>{var u;return(m==null?void 0:m.calculatorFilter)&&((u=m==null?void 0:m.calculatorFilter)==null?void 0:u.includes(r))||(m==null?void 0:m.calculatorFilter)===""&&(m==null?void 0:m.functionName)}))==null?void 0:v.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=s==null?void 0:s.map(async m=>(m=await Sp(m,y,c,r,s,o),m));return p=await Promise.all(p),p},xp=l=>{let n=l==null?void 0:l.contents,r=l==null?void 0:l.valueString,o=l==null?void 0:l.prop,s=l==null?void 0:l.headers,c;return Array.isArray(n)&&(n==null?void 0:n.length)!==1&&(n=oa.getValueToObjectValue(n,oa.getColumnContents(s))),r==null||r.forEach(y=>{var p;if(n!=null&&n[y]){let v=n==null?void 0:n[y];c=c?v?$a.isEqual(v.toString(),c.toString()):void 0:v}else{let v=(p=s==null?void 0:s.find(u=>(u==null?void 0:u.label)===y))==null?void 0:p.prop,m=(n==null?void 0:n[v])??0;c=c?m?$a.isEqual(m.toString(),c.toString()):void 0:m}}),n[o]=c===void 0?void 0:c?1:0,n},kr=l=>{const[n,r,o]=Y.cloneDeep(l).split(":").map(Number);let s=+l;return!l||!(l!=null&&l.includes(":"))?s:(n??0)*3600+(r??0)*60+(o??0)},Yn=l=>{const n=c=>c.toString().padStart(2,"0"),r=Math.floor(l/3600),o=Math.floor(l%3600/60),s=l%60;return`${n(r)}:${n(o)}:${parseInt(n(s))}`},wp=l=>{let n=l==null?void 0:l.contents,r=l==null?void 0:l.valueString,o=l==null?void 0:l.prop,s=l==null?void 0:l.headers,c=l==null?void 0:l.typeString,y=l==null?void 0:l.allContents,p=0;if(Array.isArray(n)&&(n==null?void 0:n.length)!==1&&(n=oa.getValueToObjectValue(n,oa.getColumnContents(s))),r==null||r.forEach(v=>{var m,u,w,D,L,S,W,I,A;if(n!=null&&n[v]){if(c==="Row")if(!((u=((m=n==null?void 0:n[v])==null?void 0:m.toString())??"")!=null&&u.includes(":"))&&!((w=p==null?void 0:p.toString())!=null&&w.includes(":"))){let ee=+(n==null?void 0:n[v]);p=p+ee}else p=kr(p.toString())+kr((D=n==null?void 0:n[v])==null?void 0:D.toString()),p=Yn(p)}else if(c==="Row"){let ee=(L=s==null?void 0:s.find(C=>(C==null?void 0:C.label)===v))==null?void 0:L.prop;if(!((W=Number.isNaN(n==null?void 0:n[ee])?"":(S=n==null?void 0:n[ee])==null?void 0:S.toString())!=null&&W.includes(":"))&&!((I=p==null?void 0:p.toString())!=null&&I.includes(":"))){let C=+((n==null?void 0:n[ee])??0);p=p+C}else p=kr(p==null?void 0:p.toString())+kr((A=(n==null?void 0:n[ee])??0)==null?void 0:A.toString()),p=Yn(p)}}),c==="Column"){let v=[];r==null||r.forEach(m=>{let u=y==null?void 0:y.map(w=>{var D;return(w==null?void 0:w[m])??(w==null?void 0:w[(D=s==null?void 0:s.find(L=>(L==null?void 0:L.label)===m))==null?void 0:D.prop])});v=[...v,...u]}),p=v.reduce((m,u)=>{let w=0;Number.isNaN(m)||(w=+m);let D=0;return Number.isNaN(u)||(D=+u),w+D},0)}return n[o]=p,n},_p=l=>{let n=l==null?void 0:l.contents,r=l==null?void 0:l.valueString,o=l==null?void 0:l.prop,s=l==null?void 0:l.headers,c=l==null?void 0:l.typeString,y=l==null?void 0:l.allContents,p=0;if(Array.isArray(n)&&(n==null?void 0:n.length)!==1&&(n=oa.getValueToObjectValue(n,oa.getColumnContents(s))),r==null||r.forEach(v=>{var m,u,w,D,L,S,W;if(n!=null&&n[v]){if(c==="Row")if(!((u=(m=n==null?void 0:n[v])==null?void 0:m.toString())!=null&&u.includes(":"))&&!((w=p==null?void 0:p.toString())!=null&&w.includes(":"))){let I=+(n==null?void 0:n[v]);p=p===0?p+I:p-I}else p=p===0?kr(p.toString())+kr(n==null?void 0:n[v].toString()):kr(p.toString())-kr(n==null?void 0:n[v].toString()),p=Yn(p)}else if(c==="Row"){let I=(D=s==null?void 0:s.find(A=>(A==null?void 0:A.label)===v))==null?void 0:D.prop;if(!((S=Number.isNaN(n==null?void 0:n[I])?"":(L=n==null?void 0:n[I])==null?void 0:L.toString())!=null&&S.includes(":"))&&!((W=p==null?void 0:p.toString())!=null&&W.includes(":"))){let A=+((n==null?void 0:n[I])??0);p=p===0?p+A:p-A}else p=p===0?kr(p.toString())+kr(((n==null?void 0:n[I])??0).toString()):kr(p.toString())-kr(((n==null?void 0:n[I])??0).toString()),p=Yn(p)}}),c==="Column"){let v=[];r==null||r.forEach(m=>{let u=y==null?void 0:y.map(w=>{var D;return(w==null?void 0:w[m])??(w==null?void 0:w[(D=s==null?void 0:s.find(L=>(L==null?void 0:L.label)===m))==null?void 0:D.prop])});v=[...v,...u]}),p=v.reduce((m,u)=>{let w=0;Number.isNaN(m)||(w=+m);let D=0;return Number.isNaN(u)||(D=+u),w-D},0)}return n[o]=p,n},Cp=l=>{let n=l==null?void 0:l.contents,r=l==null?void 0:l.valueString,o=l==null?void 0:l.prop,s=l==null?void 0:l.headers,c=l==null?void 0:l.typeString,y=l==null?void 0:l.allContents,p=0;if(Array.isArray(n)&&(n==null?void 0:n.length)!==1&&(n=oa.getValueToObjectValue(n,oa.getColumnContents(s))),r==null||r.forEach(v=>{var m,u,w,D,L,S,W;if(n!=null&&n[v]){if(c==="Row")if(!((u=(m=n==null?void 0:n[v])==null?void 0:m.toString())!=null&&u.includes(":"))&&!((w=p==null?void 0:p.toString())!=null&&w.includes(":"))){let I=+(n==null?void 0:n[v]);p=p===0?p+I:p*I}else p=p===0?kr(p.toString())+kr(n==null?void 0:n[v].toString()):kr(p.toString())*kr(n==null?void 0:n[v].toString()),p=Yn(p)}else if(c==="Row"){let I=(D=s==null?void 0:s.find(A=>(A==null?void 0:A.label)===v))==null?void 0:D.prop;if(!(n!=null&&n[I]))p=void 0;else if(!((S=Number.isNaN(n==null?void 0:n[I])?"":(L=n==null?void 0:n[I])==null?void 0:L.toString())!=null&&S.includes(":"))&&!((W=p==null?void 0:p.toString())!=null&&W.includes(":"))){let A=+((n==null?void 0:n[I])??0);p=p===0?p+A:p*A}else p=p===0?kr(p.toString())+kr(((n==null?void 0:n[I])??0).toString()):kr(p.toString())*kr(((n==null?void 0:n[I])??0).toString()),p=Yn(p)}}),c==="Column"){let v=[];r==null||r.forEach(m=>{let u=y==null?void 0:y.map(w=>{var D;return(w==null?void 0:w[m])??(w==null?void 0:w[(D=s==null?void 0:s.find(L=>(L==null?void 0:L.label)===m))==null?void 0:D.prop])});v=[...v,...u]}),p=v.reduce((m,u)=>{let w=0;Number.isNaN(m)||(w=+m);let D=0;return Number.isNaN(u)||(D=+u),w*D},0)}return n[o]=p,n},Ep=l=>{let n=l==null?void 0:l.contents,r=l==null?void 0:l.valueString,o=l==null?void 0:l.prop,s=l==null?void 0:l.headers,c=l==null?void 0:l.typeString,y=l==null?void 0:l.allContents,p=0;if(Array.isArray(n)&&(n==null?void 0:n.length)!==1&&(n=oa.getValueToObjectValue(n,oa.getColumnContents(s))),r==null||r.forEach(v=>{var m,u,w,D,L,S,W;if(n!=null&&n[v]){if(c==="Row")if(!((u=(m=n==null?void 0:n[v])==null?void 0:m.toString())!=null&&u.includes(":"))&&!((w=p==null?void 0:p.toString())!=null&&w.includes(":"))){let I=+(n==null?void 0:n[v]);p=p===0?p+I:p/I}else p=p===0?kr(p.toString())+kr(n==null?void 0:n[v].toString()):kr(p.toString())/kr(n==null?void 0:n[v].toString()),p=Yn(p)}else if(c==="Row"){let I=(D=s==null?void 0:s.find(A=>(A==null?void 0:A.label)===v))==null?void 0:D.prop;if(!((S=Number.isNaN(n==null?void 0:n[I])?"":(L=n==null?void 0:n[I])==null?void 0:L.toString())!=null&&S.includes(":"))&&!((W=p==null?void 0:p.toString())!=null&&W.includes(":"))){let A=+((n==null?void 0:n[I])??0);p=p===0?p+A:p/A}else p=p===0?kr(p.toString())+kr(((n==null?void 0:n[I])??0).toString()):kr(p.toString())/kr(((n==null?void 0:n[I])??0).toString()),p=Yn(p)}}),c==="Column"){let v=[];r==null||r.forEach(m=>{let u=y==null?void 0:y.map(w=>{var D;return(w==null?void 0:w[m])??(w==null?void 0:w[(D=s==null?void 0:s.find(L=>(L==null?void 0:L.label)===m))==null?void 0:D.prop])});v=[...v,...u]}),p=v.reduce((m,u)=>{let w=0;Number.isNaN(m)||(w=+m);let D=0;return Number.isNaN(u)||(D=+u),w/D},0)}return n[o]=p.toFixed(2),n},fi={Sum:wp,Substract:_p,Multiple:Cp,Divide:Ep,Compare:xp},Sp=async(l,n,r,o="Auto",s,c=[])=>{var u,w,D,L,S,W,I,A,ee,C,_,E,k,g,O,F,q,te,Te,Ee,Q;let y=l,p=[],v=await Y.getPageDataApi({platId:parseInt((u=_o==null?void 0:_o.value)==null?void 0:u.plat_id),pageName:"menu"});v=(L=(D=(w=v==null?void 0:v.data)==null?void 0:w.result)==null?void 0:D.filter(be=>(be==null?void 0:be.property_name)===""))==null?void 0:L[0];let m=[];if(v!=null&&v.object_name){v=v==null?void 0:v.object_name;let be=await Y.getPageDataApi({platId:parseInt((S=_o==null?void 0:_o.value)==null?void 0:S.plat_id),pageName:v});be=(C=(ee=(A=(I=(W=be==null?void 0:be.data)==null?void 0:W.result)==null?void 0:I[0])==null?void 0:A.contents)==null?void 0:ee.find(Z=>{var de;return(de=Z==null?void 0:Z.key)==null?void 0:de.includes("content")}))==null?void 0:C.value,p=(_=be==null?void 0:be.map(Z=>({functionName:Z==null?void 0:Z.函数名称,functionContent:Z==null?void 0:Z.输出值})))==null?void 0:_.filter(Z=>(Z==null?void 0:Z.functionContent)!==""),p==null||p.forEach(Z=>{m.push(Z.functionName),fi[Z.functionName]=new Function("return "+Z.functionContent)()})}if((n==null?void 0:n.length)===0)return y;for(let be in n){let Z=(E=n==null?void 0:n[be])==null?void 0:E.functionName;const de=fi==null?void 0:fi[Z];let je=(k=n==null?void 0:n[be])==null?void 0:k.methods;if(je=$a.analyzeSplitToContent(je,","),console.log(je),(g=je==null?void 0:je.find(wa=>wa==null?void 0:wa.includes("@FunctionType")))!=null&&g.includes(o)||(je==null?void 0:je.length)===0){let wa=((q=(F=(O=je==null?void 0:je.find(ie=>ie==null?void 0:ie.includes("@FunctionExtent")))==null?void 0:O.replace(":","="))==null?void 0:F.split("="))==null?void 0:q[1])??[];if(await new Function("return ")(),(m==null?void 0:m.length)>0&&m.find(ie=>ie===Z)){let ie="";try{let j=(te=n==null?void 0:n[be])==null?void 0:te.functionRelatedWords,ye=(c==null?void 0:c.length)>0?c==null?void 0:c.map(ke=>{var Ze;return ke==null?void 0:ke[(Ze=n==null?void 0:n[be])==null?void 0:Ze.prop]}):["0"];ye=ye==null?void 0:ye.map(ke=>ke==null?void 0:ke.slice((ke==null?void 0:ke.length)-5,ke==null?void 0:ke.length)),ye=ye==null?void 0:ye.map(ke=>$a.isNumber(parseInt(ke))&&parseInt(ke)?parseInt(ke):0);let Se=Math.max(...ye);j=j==null?void 0:j.map(ke=>{if(ke!=null&&ke.includes("'"))return ke==null?void 0:ke.replaceAll("'","");if(ke!=null&&ke.includes("@"))return Se+1;{let Ze=Object.keys(y);return ke=(y==null?void 0:y[ke])??(y==null?void 0:y[Ze==null?void 0:Ze.find(ya=>ya==null?void 0:ya.includes("."+ke))]),ke}}),ie=de(...j)}catch(j){al.ElMessage.warning("关联数据出现错误,"+j.message)}let P=(Te=n==null?void 0:n[be])==null?void 0:Te.prop;y[P]=ie}else y=de({contents:y,valueString:(Ee=n==null?void 0:n[be])==null?void 0:Ee.functionRelatedWords,prop:(Q=n==null?void 0:n[be])==null?void 0:Q.prop,headers:r,typeString:wa,allContents:s})}}return y},Dp=Y.useLoginState(ol.pinia),{loginUserInfo:Zr}=ol.storeToRefs(Dp),Bp=Y.useMenuState(ol.pinia),{activeMenuPath:os,currentMenuPath:hi}=ol.storeToRefs(Bp),ec=Y.useUnit(ol.pinia);let is="$R";const{selectTitle:Do}=ol.storeToRefs(ec),ac=async(l,n)=>{var y,p,v,m,u,w,D,L,S,W,I,A,ee;let r=os.value,o="",s=((y=Do==null?void 0:Do.value)==null?void 0:y.find(C=>(C==null?void 0:C.condition)==="child"&&!(C!=null&&C.relatedContent)))??void 0;(l==null?void 0:l.length)===0||(r=n?r:(p=l==null?void 0:l[0])==null?void 0:p.object_name,o=(v=l==null?void 0:l[0])==null?void 0:v.father_name);let c=[];if(o!==""){let C=o;(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));let _=await Kr(C,!1);_=(m=_==null?void 0:_[0])==null?void 0:m.compData;let E=(u=_==null?void 0:_.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:u.contents;E=((w=E==null?void 0:E.find(g=>g==null?void 0:g.isMainKey))==null?void 0:w.prop)??((D=E==null?void 0:E[0])==null?void 0:D.prop);let k=(S=(L=_==null?void 0:_.find(g=>(g==null?void 0:g.key)==="tableContents"))==null?void 0:L.contents)==null?void 0:S.map(g=>({label:g==null?void 0:g[E],value:g==null?void 0:g[E]}));c=(W=o==null?void 0:o.split("/"))==null?void 0:W.map(g=>(g===""?s?(s.isShow=!0,g=s):g={value:g,condition:"child",options:k,parentContent:(o==null?void 0:o[(o==null?void 0:o.length)-1])==="/"?o==null?void 0:o.slice(0,(o==null?void 0:o.length)-1):o,isShow:!0}:g={condition:"parent",value:g.trim(),isShow:!0},g))}if(r!==""){let C=(I=r==null?void 0:r.split("/"))==null?void 0:I.map(_=>(_={condition:"normal",value:_.trim(),isShow:!0},_));((A=C==null?void 0:C[0])==null?void 0:A.value)===((ee=c==null?void 0:c[0])==null?void 0:ee.value)&&(C=C==null?void 0:C.filter((_,E)=>E!==0)),c=[...c??[],...C??[]]}o===""&&s&&((s==null?void 0:s.parentContent)!==os.value&&(s.isShow=!1),(s==null?void 0:s.value)!==""&&c.push(s)),ec.setSelectTitle(c)},Np=async l=>{var c,y,p,v,m,u,w,D,L;let n=await Y.getPageDataApi({platId:parseInt((c=Zr==null?void 0:Zr.value)==null?void 0:c.plat_id),pageName:"menu"}),r=(y=n==null?void 0:n.data)==null?void 0:y.result,o=(u=(m=(v=(p=l==null?void 0:l.filter(S=>(S==null?void 0:S.comp)==="Table"))==null?void 0:p[0])==null?void 0:v.compData)==null?void 0:m.find(S=>(S==null?void 0:S.key)==="filter"))==null?void 0:u.contents;o=(L=(D=(w=o==null?void 0:o.replace("(",is))==null?void 0:w.split(is))==null?void 0:D[0])==null?void 0:L.replaceAll(":","/");let s=r==null?void 0:r.filter(S=>{var W;return(S==null?void 0:S.object_name)===hi.value+"/"||((W=hi.value)==null?void 0:W.includes(o))&&o+"/"===(S==null?void 0:S.object_name)});return(s==null?void 0:s.length)>0&&(l=l==null?void 0:l.map(S=>{var W;return(S==null?void 0:S.comp)==="Table"&&(S.compData=(W=S==null?void 0:S.compData)==null?void 0:W.map(I=>{var A,ee,C;return(I==null?void 0:I.key)==="header"&&(Array.isArray((A=I.contents)==null?void 0:A[0])?I.contents[0]=(C=I.contents[0])==null?void 0:C.map((_,E)=>{var k;return E===0&&(_.isExistChild=!0,(k=hi.value)!=null&&k.includes(o)&&(_.fatherPath=o)),_}):I.contents=(ee=I.contents)==null?void 0:ee.map((_,E)=>{var k;return E===0&&(_.isExistChild=!0,(k=hi.value)!=null&&k.includes(o)&&(_.fatherPath=o)),_})),I})),S})),l},Kr=async(l,n,r={})=>{var y,p,v,m,u,w,D,L,S,W,I,A;let o=await Y.getPageDataApi({platId:parseInt((y=Zr==null?void 0:Zr.value)==null?void 0:y.plat_id),pageName:l}),s=(p=o==null?void 0:o.data)==null?void 0:p.result;if((s==null?void 0:s.length)===0&&(r!=null&&r.originPath)&&(r==null?void 0:r.originPath)!==l){let ee=await Y.getPageDataApi({platId:parseInt((v=Zr==null?void 0:Zr.value)==null?void 0:v.plat_id),pageName:r==null?void 0:r.originPath});if(((u=(m=ee==null?void 0:ee.data)==null?void 0:m.result)==null?void 0:u.length)>0){let C=await ns((w=ee==null?void 0:ee.data)==null?void 0:w.result,r,!1);C=C==null?void 0:C.map(async k=>{var F,q,te,Te,Ee,Q,be,Z,de,je,wa,ie,P,j,ye,Se,ke,Ze,ya,Ha,re,la,Ve,ba,Fe,Ie,$e,Qe,Xa,Wa;let g=[],O=(F=Object.keys(k))==null?void 0:F.filter(V=>(V==null?void 0:V.includes("name"))&&V!=="nameContents");for(let V in k)O!=null&&O.find($=>$===V)&&g.push(k==null?void 0:k[V]);if(g=g.reverse(),(k==null?void 0:k.comp)==="Table"){let V=(Te=(te=(q=k==null?void 0:k.compData)==null?void 0:q.find(X=>(X==null?void 0:X.key)==="tableContents"))==null?void 0:te.contents)==null?void 0:Te.map(X=>{let se={};for(let ue in X)ue!=="id"&&ue!=="create_time"&&ue!=="update_time"&&ue!=="sort"&&ue!=="create_user_id"&&ue!=="update_user_id"&&ue!=="department_id"&&ue!=="relatedId"&&(se[ue]=X==null?void 0:X[ue]);return X=Object.values(se),X}),$=(Q=(Ee=k==null?void 0:k.compData)==null?void 0:Ee.find(X=>(X==null?void 0:X.key)==="header"))==null?void 0:Q.contents;if(Array.isArray($==null?void 0:$[0])?($[0].push({label:"排序",prop:"sort"}),$[0].push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(be=$[0])!=null&&be.find(X=>(X==null?void 0:X.prop)==="disabled")&&($[0]=(Z=$[0])==null?void 0:Z.filter(X=>(X==null?void 0:X.prop)!=="disabled"),$[0].unshift({label:"",prop:"disabled",sortable:!1}))):($.push({label:"排序",prop:"sort"}),$.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),$!=null&&$.find(X=>(X==null?void 0:X.prop)==="disabled")&&($=$==null?void 0:$.filter(X=>(X==null?void 0:X.prop)!=="disabled"),$.unshift({label:"",prop:"disabled",sortable:!1}))),$!=null&&$.some(X=>{var se;return(X==null?void 0:X.calculatorFilter)&&((se=X==null?void 0:X.calculatorFilter)==null?void 0:se.includes("Auto"))})&&(V=await vt(V,$,"Auto"),V=V==null?void 0:V.map(X=>Object.values(X))),k!=null&&k.fatherSyncContents){Array.isArray((de=k==null?void 0:k.fatherSyncContents)==null?void 0:de[0])&&(k.fatherSyncContents=(je=k==null?void 0:k.fatherSyncContents)==null?void 0:je[0]);let X=(wa=Do.value)==null?void 0:wa.find(se=>(se==null?void 0:se.condition)==="child");k.fatherSyncContents=(ie=k==null?void 0:k.fatherSyncContents)==null?void 0:ie.map(se=>{var ue,va,ra,Le,Ce,Sa;return((va=se==null?void 0:se.menus)==null?void 0:va[((ue=se==null?void 0:se.menus)==null?void 0:ue.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"!==(se==null?void 0:se.menus)?se.menus=(se==null?void 0:se.menus)+(X==null?void 0:X.value):((Le=se==null?void 0:se.menus)==null?void 0:Le[((ra=se==null?void 0:se.menus)==null?void 0:ra.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"===(se==null?void 0:se.menus)&&(se.menus=(Sa=se.menus)==null?void 0:Sa.slice(0,((Ce=se.menus)==null?void 0:Ce.length)-1)),se})}if(k!=null&&k.sonSyncContents){Array.isArray((P=k==null?void 0:k.sonSyncContents)==null?void 0:P[0])&&(k.sonSyncContents=(j=k==null?void 0:k.sonSyncContents)==null?void 0:j[0]);let X=(ye=Do.value)==null?void 0:ye.find(se=>(se==null?void 0:se.condition)==="child");k.sonSyncContents=(Se=k==null?void 0:k.sonSyncContents)==null?void 0:Se.map(se=>{var ue,va,ra,Le,Ce,Sa;return((va=se==null?void 0:se.menus)==null?void 0:va[((ue=se==null?void 0:se.menus)==null?void 0:ue.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"!==(se==null?void 0:se.menus)?se.menus=(se==null?void 0:se.menus)+(X==null?void 0:X.value):((Le=se==null?void 0:se.menus)==null?void 0:Le[((ra=se==null?void 0:se.menus)==null?void 0:ra.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"===(se==null?void 0:se.menus)&&(se.menus=(Sa=se.menus)==null?void 0:Sa.slice(0,((Ce=se.menus)==null?void 0:Ce.length)-1)),se})}if(k!=null&&k.relatedQuotes){Array.isArray((ke=k==null?void 0:k.relatedQuotes)==null?void 0:ke[0])&&(k.relatedQuotes=(Ze=k==null?void 0:k.relatedQuotes)==null?void 0:Ze[0]);let X=(ya=Do.value)==null?void 0:ya.find(se=>(se==null?void 0:se.condition)==="child");k.relatedQuotes=(Ha=k==null?void 0:k.relatedQuotes)==null?void 0:Ha.map(se=>{var ue,va,ra,Le,Ce,Sa;return((va=se==null?void 0:se.menus)==null?void 0:va[((ue=se==null?void 0:se.menus)==null?void 0:ue.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"!==(se==null?void 0:se.menus)?se.menus=(se==null?void 0:se.menus)+(X==null?void 0:X.value):((Le=se==null?void 0:se.menus)==null?void 0:Le[((ra=se==null?void 0:se.menus)==null?void 0:ra.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"===(se==null?void 0:se.menus)&&(se.menus=(Sa=se.menus)==null?void 0:Sa.slice(0,((Ce=se.menus)==null?void 0:Ce.length)-1)),se})}k={filter:(la=(re=k==null?void 0:k.compData)==null?void 0:re.find(X=>(X==null?void 0:X.key)==="filter"))==null?void 0:la.contents,key:k==null?void 0:k.comp,name:g,tableColumns:$,tableContents:V,menuFilter:k==null?void 0:k.menuFilter,fatherSyncContents:k==null?void 0:k.fatherSyncContents,relatedQuotes:k==null?void 0:k.relatedQuotes,sonSyncContents:k==null?void 0:k.sonSyncContents}}else{let V=(Fe=(ba=(Ve=k==null?void 0:k.compData)==null?void 0:Ve.find(X=>(X==null?void 0:X.key)==="formContent"))==null?void 0:ba.contents)==null?void 0:Fe.map(X=>(X==null?void 0:X.value)??"");V=[V];let $=(Qe=($e=(Ie=k==null?void 0:k.compData)==null?void 0:Ie.find(X=>(X==null?void 0:X.key)==="formContent"))==null?void 0:$e.contents)==null?void 0:Qe.map(X=>(X.value="",X));k={contents:V,filter:(Wa=(Xa=k==null?void 0:k.compData)==null?void 0:Xa.find(X=>(X==null?void 0:X.key)==="filter"))==null?void 0:Wa.contents,key:k==null?void 0:k.comp,name:g,value:$,fatherSyncContents:k==null?void 0:k.fatherSyncContents,relatedQuotes:k==null?void 0:k.relatedQuotes,sonSyncContents:k==null?void 0:k.sonSyncContents}}return k.isShow=!1,k}),C=await Promise.all(C);let _=[{key:"menuPath",contents:[{path:l,fatherPath:(S=(L=(D=ee==null?void 0:ee.data)==null?void 0:D.result)==null?void 0:L[0])==null?void 0:S.father_name,isShow:!1}]},{key:l,contents:C}];await Y.createPlatFormDataApi({platId:parseInt((W=Zr==null?void 0:Zr.value)==null?void 0:W.plat_id),changeData:_});let E=await Y.getPageDataApi({platId:parseInt((I=Zr==null?void 0:Zr.value)==null?void 0:I.plat_id),pageName:l});s=(A=E==null?void 0:E.data)==null?void 0:A.result}}n&&await ac(s,!!(r!=null&&r.originPath));let c=await ns(s,r);return n&&(c=await Np(c)),c==null?void 0:c.filter(ee=>ee)},ts=async l=>{var o,s,c,y,p,v,m,u,w,D,L;let n=(o=l==null?void 0:l.menus)==null?void 0:o.join("/");l!=null&&l.endChildMenu&&(l==null?void 0:l.endChildMenu)!==""&&(n==null?void 0:n[(n==null?void 0:n.length)-1])==="/"&&(n=n+(l==null?void 0:l.endChildMenu)),(n==null?void 0:n[(n==null?void 0:n.length)-1])==="/"&&(n=n+((c=(s=l.value)==null?void 0:s.split(" "))==null?void 0:c[0]));let r=await Kr(n,!1);if(r=(y=r==null?void 0:r.filter(S=>{var W,I;return(S==null?void 0:S.name)===((I=l==null?void 0:l.groups)==null?void 0:I[((W=l==null?void 0:l.groups)==null?void 0:W.length)-1])}))==null?void 0:y[0],(v=(p=r==null?void 0:r.compData)==null?void 0:p.find(S=>(S==null?void 0:S.key)==="tableContents"))!=null&&v.contents){r=(u=(m=r==null?void 0:r.compData)==null?void 0:m.find(W=>(W==null?void 0:W.key)==="tableContents"))==null?void 0:u.contents;let S=((w=l==null?void 0:l.words)==null?void 0:w[0])??(l==null?void 0:l.prop);return r=r==null?void 0:r.filter(W=>{var I,A,ee,C;return(W==null?void 0:W[l!=null&&l.endChildMenu?S:(I=l==null?void 0:l.words)==null?void 0:I[0]])===(l!=null&&l.relatedWords&&((A=l==null?void 0:l.relatedWords)==null?void 0:A.length)>0?(C=(ee=l.value)==null?void 0:ee.split(" "))==null?void 0:C[0]:l.value)}),r==null?void 0:r[0]}else{let S=(L=(D=r==null?void 0:r.compData)==null?void 0:D.find(I=>(I==null?void 0:I.key)==="formContent"))==null?void 0:L.contents,W={};return S==null||S.forEach(I=>{W[I.prop]=I.value}),W}},Tp={key:0,class:"extra-button-content"},Ap={class:"table-operator-wrap"},zp={key:0,class:"extra-button-filter"},Mp={key:1,class:"extra-header"},Ip=["onClick"],Op={class:"table-op-text"},Lp={class:"table-op-text"},Rp={class:"drop-menu",style:{width:"120px"}},$p=["onClick"],Vp={key:0},Pp={key:1},Fp=["onClick"],jp={class:"table-op-text"},Hp={key:1,class:"extra-button-content tabs-button-wrapper"},Up={class:"table-operator-wrap"},qp={class:"extra-button-filter"},Wp={key:0,class:"extra-header"},Kp={class:"table-op-action"},Gp={class:"table-op-text"},Yp={class:"drop-menu",style:{width:"120px"}},Jp={key:0},Xp={key:1},Zp=["onClick"],Qp={class:"table-op-text"},ef={__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(l,{emit:n}){const r=n,o=l,s=()=>{const g=(o==null?void 0:o.menuFilter)||[];return Array.isArray(g)&&(g==null?void 0:g.some(O=>{const F=typeof O=="string"?O:JSON.stringify(O);return F==null?void 0:F.includes("@InterfaceHide=Yes")}))},c=a.ref(""),y=a.ref(!1),p=a.ref([]),v=a.ref([{label:"清空",background:"#999999"},{label:"确认"}]),m=[{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 u(g,O){return g.map(F=>{const q={...F};return O.forEach(te=>{delete q[te]}),q})}function w(g){if(!g||g.t!=="n")return(g==null?void 0:g.v)??"";const O=g.v;if(g.z){const F=String(g.z).toLowerCase(),q=["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 Ee of q)if(F.includes(Ee))return D(O);const te=/[ymdhms]/.test(F),Te=/^[0#\.\,\s]+$/.test(F.replace(/[\\\/\-:]/g,""));if(te&&!Te)return D(O)}if(O>=1&&O<=73050){if(O<5e3)return O;if(O>=5e3&&O<4e4){const F=Math.floor((O-25569)/365.25)+1970;return F>=1970&&F<=2e3&&g.z&&/[ymd]/.test(String(g.z).toLowerCase())?D(O):O}if(O>=4e4)return D(O)}return O}function D(g){if(typeof g!="number")return g;try{const O=new Date((g-25569)*86400*1e3);if(isNaN(O.getTime()))return g;const F=O.getFullYear(),q=String(O.getMonth()+1).padStart(2,"0"),te=String(O.getDate()).padStart(2,"0");return`${F}-${q}-${te}`}catch{return g}}const L=g=>{const O=g.raw;if(!O)return;const F=new FileReader;F.onload=q=>{try{const te=new Uint8Array(q.target.result),Te=oa.readSync(te,{type:"array"}),Ee=Te.SheetNames[0],Q=Te.Sheets[Ee],Z=oa.utils.decode_range(Q["!ref"]).e.c+1,de=new Array(Z).fill(""),je=[];for(const ye in Q){if(ye[0]==="!")continue;const{r:Se,c:ke}=oa.utils.decode_cell(ye),Ze=Q[ye];let ya=w(Ze);if((ya==null||ya==="")&&(ya=""),Se===0)de[ke]=ya;else{if(!je[Se-1]){je[Se-1]={};for(let Ha=0;Ha<Z;Ha++)je[Se-1][`col_${Ha}`]=""}je[Se-1][`col_${ke}`]=ya}}for(let ye=0;ye<Z;ye++)de[ye]===void 0&&(de[ye]="");const wa=[];for(let ye=0;ye<de.length;ye++)(!de[ye]||de[ye].toString().trim()==="")&&wa.push(ye);let ie,P;(wa==null?void 0:wa.length)>0?(al.ElMessage.warning("存在键为空的列,已自动过滤,请检查补充"),ie=de.filter((ye,Se)=>!wa.includes(Se)),P=u(je,wa==null?void 0:wa.map(ye=>`col_${ye}`))):(ie=de,P=je);const j=je==null?void 0:je[0];if(!(j!=null&&j.hasOwnProperty("col_0")))return al.ElMessage.error("导入的数据列不匹配,请检查是否错位");r("getImportData",ie,P)}catch(te){throw al.ElMessage.error(te.message),new Error(te.message)}},F.readAsArrayBuffer(O)},S=g=>{var F;const O=(F=p.value)==null?void 0:F.reduce((q,te,Te)=>(Te===0?q[te.label]=g:q[te.label]=te==null?void 0:te.value,q),{});r("filter",O,g,!0)},W=(g,O={})=>{r("buttonClick",g,"",O)},I=g=>{var O,F;p.value=(F=(O=oa.getColumnChild(Y.cloneDeep(g)))==null?void 0:O.filter(q=>(q==null?void 0:q.label)!==""&&(q==null?void 0:q.label)!=="操作"))==null?void 0:F.map(q=>({label:(q==null?void 0:q.label)??"",value:"",name:(q==null?void 0:q.prop)??"",isFormColHidden:q==null?void 0:q.isTableColHidden,width:2,prop:(q==null?void 0:q.prop)??""}))},A=a.ref(!1),ee=g=>{var O;if((g==null?void 0:g.buttonName)==="确认"&&(r("filter",g==null?void 0:g.content),A.value=(g==null?void 0:g.content)&&Object.values(g==null?void 0:g.content).length>0),(g==null?void 0:g.buttonName)==="清空"){const F=Y.cloneDeep(g==null?void 0:g.content);for(const q in F)F[q]="";p.value=(O=p.value)==null?void 0:O.map(q=>({...q,value:""})),r("filter",F),A.value=!1}y.value=!1},C=()=>{y.value=!y.value},_=()=>{var O,F;p.value=(O=p.value)==null?void 0:O.map(q=>({...q,value:""}));const g=(F=p.value)==null?void 0:F.reduce((q,te)=>(q[te.label]=te.value,q),{});r("filter",g)},E=a.ref(null);let k;return k=g=>{var te;if(!y.value)return;const O=(te=E==null?void 0:E.value)==null?void 0:te.$el,F=O==null?void 0:O.contains(g.target);let q=!1;document.querySelectorAll(".el-popover, .el-popper").forEach(Te=>{Te.contains(g.target)&&(q=!0)}),!F&&!q&&(y.value=!1)},a.onMounted(()=>{document.addEventListener("click",k),I(o.columns)}),a.onBeforeUnmount(()=>{document.removeEventListener("click",k)}),a.watch(()=>o.columns,()=>{I(o.columns)},{deep:!0,immediate:!0}),(g,O)=>{var Q,be,Z,de,je,wa,ie,P;const F=a.resolveComponent("el-icon"),q=a.resolveComponent("svg-icon"),te=a.resolveComponent("el-input"),Te=a.resolveComponent("el-upload"),Ee=a.resolveComponent("el-button");return l.pageLayout==="vertical"?(a.openBlock(),a.createElementBlock("div",Tp,[s()?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(l.compName?"table-name-wrap":""),style:a.normalizeStyle({background:(o==null?void 0:o.level)>1?"transparent":"var(--ssgroup-background)",paddingLeft:((o==null?void 0:o.level)-1)*12+"px",fontWeight:600-((o==null?void 0:o.level)-1)*100>=400?600-((o==null?void 0:o.level)-1)*100:400,fontSize:17-(o==null?void 0:o.level)>=14?17-(o==null?void 0:o.level)+"px":"14px"})},a.toDisplayString(l.compName),7)),a.createElementVNode("div",Ap,[o!=null&&o.filterShow?(a.openBlock(),a.createElementBlock("div",zp,[a.createVNode(Au,{trigger:"contextmenu",ref_key:"popOverRef",ref:E,title:"",width:800,placement:"bottom-start",isVisible:y.value,"onUpdate:isVisible":O[4]||(O[4]=j=>y.value=j)},{reference:a.withCtx(()=>{var j,ye,Se,ke;return[a.createVNode(te,{modelValue:c.value,"onUpdate:modelValue":O[0]||(O[0]=Ze=>c.value=Ze),style:{"min-width":"80px"},placeholder:A.value?(Se=(ye=(j=l.filterValues)==null?void 0:j.filter(Ze=>Ze))==null?void 0:ye.slice(0,3))==null?void 0:Se.join("/"):"搜索","prefix-icon":a.unref(al.search_default),clearable:"",onInput:S,disabled:((ke=p.value)==null?void 0:ke.length)===0},{suffix:a.withCtx(()=>{var Ze,ya;return[!c.value&&((ya=(Ze=l.filterValues)==null?void 0:Ze.filter(Ha=>Ha))!=null&&ya.join("/"))?(a.openBlock(),a.createBlock(F,{key:0,style:{cursor:"pointer"},onClick:_},{default:a.withCtx(()=>[a.createVNode(a.unref(al.circle_close_default))]),_:1})):a.createCommentVNode("",!0)]}),append:a.withCtx(()=>[a.createElementVNode("span",{title:"条件查询",onClick:a.withModifiers(C,["stop"])},[a.createVNode(q,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:a.withCtx(()=>[a.createElementVNode("div",{class:"form-content-value",onKeydown:O[1]||(O[1]=a.withModifiers(()=>{},["stop"])),onKeyup:O[2]||(O[2]=a.withModifiers(()=>{},["stop"])),onKeypress:O[3]||(O[3]=a.withModifiers(()=>{},["stop"]))},[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:p.value,buttonValue:v.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:v.value,isStartJustify:!1,onOnButtonClick:ee},null,8,["rowContents","buttonValue"]))],32)]),_:1},8,["isVisible"])])):a.createCommentVNode("",!0),l.buttons&&((Q=l.buttons)==null?void 0:Q.length)>0?(a.openBlock(),a.createElementBlock("div",Mp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((be=l.buttons)==null?void 0:be.filter(j=>l.isDevMode||(j==null?void 0:j.label)!=="修改模板"),(j,ye)=>{var Se;return a.openBlock(),a.createElementBlock("div",{class:"extra-contents",key:ye},[(j==null?void 0:j.type)==="upload"?(a.openBlock(),a.createBlock(Te,{key:0,class:"upload-button-wrap","on-change":L,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1,disabled:!!l.lockingPage},{default:a.withCtx(()=>{var ke;return[a.createElementVNode("div",{class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}]),onClick:Ze=>W(j==null?void 0:j.label)},[a.createVNode(q,{class:"table-op-icon",name:(ke=m==null?void 0:m.find(Ze=>(Ze==null?void 0:Ze.label)===(j==null?void 0:j.label)))==null?void 0:ke.icon},null,8,["name"]),a.createElementVNode("span",Op,a.toDisplayString(j==null?void 0:j.label),1)],10,Ip)]}),_:2},1032,["disabled"])):a.createCommentVNode("",!0),(j==null?void 0:j.type)==="popover"?(a.openBlock(),a.createBlock(pl._sfc_main,{key:1},{dropTitle:a.withCtx(()=>{var ke;return[a.createElementVNode("div",{class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}])},[a.createVNode(q,{class:"table-op-icon",name:(ke=m==null?void 0:m.find(Ze=>(Ze==null?void 0:Ze.label)===(j==null?void 0:j.label)))==null?void 0:ke.icon},null,8,["name"]),a.createElementVNode("span",Lp,a.toDisplayString(j==null?void 0:j.label),1)],2)]}),dropMenu:a.withCtx(()=>[a.createElementVNode("div",Rp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(j==null?void 0:j.contents,ke=>{var Ze,ya;return a.openBlock(),a.createElementBlock("div",{key:ke==null?void 0:ke.label,class:a.normalizeClass(["table-op-drop-item",{"is-disabled":!!l.lockingPage}]),onClick:Ha=>!l.lockingPage&&W(ke==null?void 0:ke.label)},[a.createTextVNode(a.toDisplayString(ke==null?void 0:ke.label),1),(Ze=ke==null?void 0:ke.label)!=null&&Ze.includes("选中")?(a.openBlock(),a.createElementBlock("span",Vp,"("+a.toDisplayString(l.selectNums)+")",1)):a.createCommentVNode("",!0),(ya=ke==null?void 0:ke.label)!=null&&ya.includes("全部")?(a.openBlock(),a.createElementBlock("span",Pp,"("+a.toDisplayString(l.dataNums)+")",1)):a.createCommentVNode("",!0)],10,$p)}),128))])]),_:2},1024)):a.createCommentVNode("",!0),!(j!=null&&j.type)||(j==null?void 0:j.type)==="methodButton"?(a.openBlock(),a.createElementBlock("div",{key:2,id:"themeButton",class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}]),onClick:ke=>!l.lockingPage&&W(j==null?void 0:j.label,j)},[a.createVNode(q,{class:"table-op-icon",name:(Se=m==null?void 0:m.find(ke=>(ke==null?void 0:ke.label)===(j==null?void 0:j.label)))==null?void 0:Se.icon},null,8,["name"]),a.createElementVNode("span",jp,a.toDisplayString(j==null?void 0:j.label),1)],10,Fp)):a.createCommentVNode("",!0)])}),128))])):a.createCommentVNode("",!0)])])):(a.openBlock(),a.createElementBlock("div",Hp,[a.createElementVNode("div",Up,[a.createElementVNode("div",qp,[a.createVNode(te,{modelValue:c.value,"onUpdate:modelValue":O[5]||(O[5]=j=>c.value=j),style:{"min-width":"80px"},placeholder:A.value?(je=(de=(Z=l.filterValues)==null?void 0:Z.filter(j=>j))==null?void 0:de.slice(0,3))==null?void 0:je.join("/"):"搜索","prefix-icon":a.unref(al.search_default),clearable:"",onInput:S,disabled:((wa=p.value)==null?void 0:wa.length)===0},{suffix:a.withCtx(()=>{var j,ye;return[!c.value&&((ye=(j=l.filterValues)==null?void 0:j.filter(Se=>Se))!=null&&ye.join("/"))?(a.openBlock(),a.createBlock(F,{key:0,style:{cursor:"pointer"},onClick:_},{default:a.withCtx(()=>[a.createVNode(a.unref(al.circle_close_default))]),_:1})):a.createCommentVNode("",!0)]}),append:a.withCtx(()=>[a.createElementVNode("span",{title:"条件查询",onClick:a.withModifiers(C,["stop"])},[a.createVNode(q,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]),l.buttons&&((ie=l.buttons)==null?void 0:ie.length)>0?(a.openBlock(),a.createElementBlock("div",Wp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((P=l.buttons)==null?void 0:P.filter(j=>l.isDevMode||(j==null?void 0:j.label)!=="修改模板"),(j,ye)=>{var Se;return a.openBlock(),a.createElementBlock("div",{class:"extra-contents",key:ye},[(j==null?void 0:j.type)==="upload"?(a.openBlock(),a.createBlock(Te,{key:0,class:"upload-button-wrap","on-change":L,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1},{default:a.withCtx(()=>{var ke;return[a.createElementVNode("div",Kp,[a.createVNode(q,{class:"table-op-icon",name:(ke=m==null?void 0:m.find(Ze=>(Ze==null?void 0:Ze.label)===(j==null?void 0:j.label)))==null?void 0:ke.icon},null,8,["name"]),a.createElementVNode("span",Gp,a.toDisplayString(j==null?void 0:j.label),1)])]}),_:2},1024)):a.createCommentVNode("",!0),(j==null?void 0:j.type)==="popover"?(a.openBlock(),a.createBlock(pl._sfc_main,{key:1},{dropTitle:a.withCtx(()=>[(j==null?void 0:j.type)==="popover"?(a.openBlock(),a.createBlock(Ee,{key:0,style:{background:"transparent",color:"#000000"}},{icon:a.withCtx(()=>{var ke;return[a.createVNode(q,{class:"table-op-icon",name:(ke=m==null?void 0:m.find(Ze=>(Ze==null?void 0:Ze.label)===(j==null?void 0:j.label)))==null?void 0:ke.icon},null,8,["name"])]}),default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(j==null?void 0:j.label),1)]),_:2},1024)):a.createCommentVNode("",!0)]),dropMenu:a.withCtx(()=>[a.createElementVNode("div",Yp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(j==null?void 0:j.contents,ke=>(a.openBlock(),a.createBlock(Ee,{key:ke==null?void 0:ke.label,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:Ze=>W(ke==null?void 0:ke.label)},{default:a.withCtx(()=>{var Ze,ya;return[a.createTextVNode(a.toDisplayString(ke==null?void 0:ke.label),1),(Ze=ke==null?void 0:ke.label)!=null&&Ze.includes("选中")?(a.openBlock(),a.createElementBlock("span",Jp,"("+a.toDisplayString(l.selectNums)+")",1)):a.createCommentVNode("",!0),(ya=ke==null?void 0:ke.label)!=null&&ya.includes("全部")?(a.openBlock(),a.createElementBlock("span",Xp,"("+a.toDisplayString(l.dataNums)+")",1)):a.createCommentVNode("",!0)]}),_:2},1032,["onClick"]))),128))])]),_:2},1024)):a.createCommentVNode("",!0),!(j!=null&&j.type)||(j==null?void 0:j.type)==="methodButton"?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}]),id:"themeButton",onClick:ke=>!l.lockingPage&&W(j==null?void 0:j.label,j)},[a.createVNode(q,{class:"table-op-icon",name:(Se=m==null?void 0:m.find(ke=>(ke==null?void 0:ke.label)===(j==null?void 0:j.label)))==null?void 0:Se.icon},null,8,["name"]),a.createElementVNode("span",Qp,a.toDisplayString(j==null?void 0:j.label),1)],10,Zp)):a.createCommentVNode("",!0)])}),128))])):a.createCommentVNode("",!0)])]))}}},af=Xl._export_sfc(ef,[["__scopeId","data-v-a6997ec1"]]),lf={__name:"index",props:{columns:Array,tableData:Array},setup(l){return(n,r)=>{const o=a.resolveComponent("el-table-column"),s=a.resolveComponent("el-table");return a.openBlock(),a.createBlock(s,{data:l.tableData,style:{width:"100%"},stripe:"","max-height":"500"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.columns,c=>{var y;return a.openBlock(),a.createBlock(o,{key:c==null?void 0:c.prop,label:c==null?void 0:c.label,prop:c==null?void 0:c.prop,fixed:(c==null?void 0:c.prop)==="operate"?"right":c==null?void 0:c.fixed,align:(c==null?void 0:c.align)??"left","show-overflow-tooltip":(c==null?void 0:c.showOverflowTooltip)??!0,width:c==null?void 0:c.width,"min-width":(c==null?void 0:c.minWidth)||((c==null?void 0:c.prop)==="operate"?80:(((y=c==null?void 0:c.label)==null?void 0:y.length)*2||4)*27)},{default:a.withCtx(p=>[a.renderSlot(n.$slots,"content",{row:p.row,column:p.column,$index:p.$index,scope:p}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.children,(v,m)=>(a.openBlock(),a.createBlock(pl._sfc_main$2,{key:m,column:v,tableData:l.tableData},a.createSlots({_:2},[a.renderList(n.$slots,(u,w)=>({name:w,fn:a.withCtx(({row:D,slotData:L,item:S,column:W})=>[a.renderSlot(n.$slots,w,a.mergeProps({ref_for:!0},L??D,{item:S??v,slotData:L??D,row:D,column:W,columnProp:v}))])}))]),1032,["column","tableData"]))),128))]),_:2},1032,["label","prop","fixed","align","show-overflow-tooltip","width","min-width"])}),128))]),_:3},8,["data"])}}};class rf extends $a.Loader{constructor(n){super(n),this.littleEndian=!0}load(n,r,o,s){const c=this,y=new $a.FileLoader(c.manager);y.setPath(c.path),y.setResponseType("arraybuffer"),y.setRequestHeader(c.requestHeader),y.setWithCredentials(c.withCredentials),y.load(n,function(p){try{r(c.parse(p))}catch(v){s?s(v):console.error(v),c.manager.itemError(n)}},o,s)}_getDataView(n,r,o,s){switch(o){case"F":return s===8?n.getFloat64(r,this.littleEndian):n.getFloat32(r,this.littleEndian);case"I":return s===1?n.getInt8(r):s===2?n.getInt16(r,this.littleEndian):n.getInt32(r,this.littleEndian);case"U":return s===1?n.getUint8(r):s===2?n.getUint16(r,this.littleEndian):n.getUint32(r,this.littleEndian)}}parse(n){function r(L,S){const W=L.length,I=new Uint8Array(S);let A=0,ee=0,C,_,E;do if(C=L[A++],C<32){if(C++,ee+C>S)throw new Error("Output buffer is not large enough");if(A+C>W)throw new Error("Invalid compressed data");do I[ee++]=L[A++];while(--C)}else{if(_=C>>5,E=ee-((C&31)<<8)-1,A>=W)throw new Error("Invalid compressed data");if(_===7&&(_+=L[A++],A>=W))throw new Error("Invalid compressed data");if(E-=L[A++],ee+_+2>S)throw new Error("Output buffer is not large enough");if(E<0)throw new Error("Invalid compressed data");if(E>=ee)throw new Error("Invalid compressed data");do I[ee++]=I[E++];while(--_+2)}while(A<W);return I}function o(L){const S={},W=new Uint8Array(L);let I="",A="",ee=0,C=!1;const _=W.length;for(;ee<_&&C===!1;){const O=String.fromCharCode(W[ee++]);O===`
2
2
  `||O==="\r"?(A.trim().toLowerCase().startsWith("data")&&(C=!0),A=""):A+=O,I+=O}const E=I.search(/[\r\n]DATA\s(\S*)\s/i),k=/[\r\n]DATA\s(\S*)\s/i.exec(I.slice(E-1));if(S.data=k[1],S.headerLen=k[0].length+E,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(O){return parseInt(O,10)})),S.count!==null)S.count=S.count[1].split(" ").map(function(O){return parseInt(O,10)});else{S.count=[];for(let O=0,F=S.fields.length;O<F;O++)S.count.push(1)}S.offset={};let g=0;for(let O=0,F=S.fields.length;O<F;O++)S.data==="ascii"?S.offset[S.fields[O]]=O:(S.offset[S.fields[O]]=g,g+=S.size[O]*S.count[O]);return S.rowSize=g,S}const s=o(n),c=[],y=[],p=[],v=[],m=[],u=new $a.Color;if(s.data==="ascii"){const L=s.offset,I=new TextDecoder().decode(n).slice(s.headerLen).split(`
3
3
  `);for(let A=0,ee=I.length;A<ee;A++){if(I[A]==="")continue;const C=I[A].split(" ");if(L.x!==void 0&&(c.push(parseFloat(C[L.x])),c.push(parseFloat(C[L.y])),c.push(parseFloat(C[L.z]))),L.rgb!==void 0){const _=s.fields.findIndex(te=>te==="rgb"),E=s.type[_],k=parseFloat(C[L.rgb]);let g=k;if(E==="F"){const te=new Float32Array(1);te[0]=k,g=new Int32Array(te.buffer)[0]}const O=(g>>16&255)/255,F=(g>>8&255)/255,q=(g>>0&255)/255;u.setRGB(O,F,q,$a.SRGBColorSpace),p.push(u.r,u.g,u.b)}L.normal_x!==void 0&&(y.push(parseFloat(C[L.normal_x])),y.push(parseFloat(C[L.normal_y])),y.push(parseFloat(C[L.normal_z]))),L.intensity!==void 0&&v.push(parseFloat(C[L.intensity])),L.label!==void 0&&m.push(parseInt(C[L.label]))}}if(s.data==="binary_compressed"){const L=new Uint32Array(n.slice(s.headerLen,s.headerLen+8)),S=L[0],W=L[1],I=r(new Uint8Array(n,s.headerLen+8,S),W),A=new DataView(I.buffer),ee=s.offset;for(let C=0;C<s.points;C++){if(ee.x!==void 0){const _=s.fields.indexOf("x"),E=s.fields.indexOf("y"),k=s.fields.indexOf("z");c.push(this._getDataView(A,s.points*ee.x+s.size[_]*C,s.type[_],s.size[_])),c.push(this._getDataView(A,s.points*ee.y+s.size[E]*C,s.type[E],s.size[E])),c.push(this._getDataView(A,s.points*ee.z+s.size[k]*C,s.type[k],s.size[k]))}if(ee.rgb!==void 0){const _=s.fields.indexOf("rgb"),E=A.getUint8(s.points*ee.rgb+s.size[_]*C+2)/255,k=A.getUint8(s.points*ee.rgb+s.size[_]*C+1)/255,g=A.getUint8(s.points*ee.rgb+s.size[_]*C+0)/255;u.setRGB(E,k,g,$a.SRGBColorSpace),p.push(u.r,u.g,u.b)}if(ee.normal_x!==void 0){const _=s.fields.indexOf("normal_x"),E=s.fields.indexOf("normal_y"),k=s.fields.indexOf("normal_z");y.push(this._getDataView(A,s.points*ee.normal_x+s.size[_]*C,s.type[_],s.size[_])),y.push(this._getDataView(A,s.points*ee.normal_y+s.size[E]*C,s.type[E],s.size[E])),y.push(this._getDataView(A,s.points*ee.normal_z+s.size[k]*C,s.type[k],s.size[k]))}if(ee.intensity!==void 0){const _=s.fields.indexOf("intensity");v.push(this._getDataView(A,s.points*ee.intensity+s.size[_]*C,s.type[_],s.size[_]))}if(ee.label!==void 0){const _=s.fields.indexOf("label");m.push(A.getInt32(s.points*ee.label+s.size[_]*C,this.littleEndian))}}}if(s.data==="binary"){const L=new DataView(n,s.headerLen),S=s.offset;for(let W=0,I=0;W<s.points;W++,I+=s.rowSize){if(S.x!==void 0){const A=s.fields.indexOf("x"),ee=s.fields.indexOf("y"),C=s.fields.indexOf("z");c.push(this._getDataView(L,I+S.x,s.type[A],s.size[A])),c.push(this._getDataView(L,I+S.y,s.type[ee],s.size[ee])),c.push(this._getDataView(L,I+S.z,s.type[C],s.size[C]))}if(S.rgb!==void 0){const A=L.getUint8(I+S.rgb+2)/255,ee=L.getUint8(I+S.rgb+1)/255,C=L.getUint8(I+S.rgb+0)/255;u.setRGB(A,ee,C,$a.SRGBColorSpace),p.push(u.r,u.g,u.b)}if(S.normal_x!==void 0){const A=s.fields.indexOf("normal_x"),ee=s.fields.indexOf("normal_y"),C=s.fields.indexOf("normal_z");y.push(this._getDataView(L,I+S.normal_x,s.type[A],s.size[A])),y.push(this._getDataView(L,I+S.normal_y,s.type[ee],s.size[ee])),y.push(this._getDataView(L,I+S.normal_z,s.type[C],s.size[C]))}if(S.intensity!==void 0){const A=s.fields.indexOf("intensity");v.push(this._getDataView(L,I+S.intensity,s.type[A],s.size[A]))}S.label!==void 0&&m.push(L.getInt32(I+S.label,this.littleEndian))}}const w=new $a.BufferGeometry;c.length>0&&w.setAttribute("position",new $a.Float32BufferAttribute(c,3)),y.length>0&&w.setAttribute("normal",new $a.Float32BufferAttribute(y,3)),p.length>0&&w.setAttribute("color",new $a.Float32BufferAttribute(p,3)),v.length>0&&w.setAttribute("intensity",new $a.Float32BufferAttribute(v,1)),m.length>0&&w.setAttribute("label",new $a.Int32BufferAttribute(m,1)),w.computeBoundingSphere();const D=new $a.PointsMaterial({size:.005});return p.length>0&&(D.vertexColors=!0),new $a.Points(w,D)}}const nf=ol.useModelComp(ol.pinia),{systemPath:ss}=ol.storeToRefs(nf),vi=a.ref(),cs=new WeakMap;function of(l,n,r,o,s){const c=async D=>{try{const L=await Y.platformDownloadFile({url:D});if(L.status!==200)throw new Error(`下载失败: ${L.status}`);return L.data}catch(L){throw console.error("addModelFromUrl失败:",L),L}},y=D=>new Promise((L,S)=>{const W=new FileReader;W.onload=I=>{try{const A=I.target.result,C=new Ln.MTLLoader().parse(A);C.preload(),L(C)}catch(A){S(A)}},W.onerror=()=>{S(new Error("MTL文件读取失败"))},W.readAsText(D)}),p=async D=>{const L={materials:{},create:function(S){return this.materials[S]?this.materials[S]:(console.warn(`Material '${S}' not found, using default material`),new $a.MeshPhongMaterial({color:8947848,side:$a.DoubleSide}))},getAsArray:function(){const S=[];for(const W in this.materials)S.push(this.materials[W]);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 W=await y(S);Object.assign(L.materials,W.materials)}return L.preload(),L},v=async(D,L=[])=>new Promise((S,W)=>{const I=new FileReader;I.onload=async A=>{try{const ee=A.target.result;let C=null;L&&L.length>0&&(L.length===1?C=await y(L[0]):C=await p(L));const _=new Ln.OBJLoader;C&&_.setMaterials(C);const E=_.parse(ee);C||E.traverse(k=>{k.isMesh&&(k.material=new $a.MeshPhongMaterial({color:8947848,side:$a.DoubleSide}))}),S(E)}catch(ee){W(ee)}},I.onerror=()=>{W(new Error("OBJ文件读取失败"))},I.readAsText(D)}),m=async D=>{var L;try{r.value=!0;const{scene:S}=l();if(!S)throw new Error("Scene not initialized");s();const W=[];for(let I=0;I<D.length;I++){const A=D[I];o.value=`正在加载模型 ${I+1}/${D.length}...`;const ee=await c(A.objUrl),C=((L=A.objUrl)==null?void 0:L.split("/").pop())||`model_${I}.obj`,_=new File([ee],C,{type:ee.type});let E=[];if(A.mtlUrls){const g=Array.isArray(A.mtlUrls)?A.mtlUrls:[A.mtlUrls];for(let O=0;O<g.length;O++){const F=g[O],q=await c(F),te=(F==null?void 0:F.split("/").pop())||`material_${I}_${O}.mtl`,Te=new File([q],te,{type:q.type});E.push(Te)}}const k=await v(_,E);S.add(k),n.value.push(k),W.push(k)}return r.value=!1,W}catch(S){throw console.error("加载模型失败:",S),r.value=!1,S}},u=async(D,L,S=[],W=[])=>{let I;const A=D.toLowerCase();switch(A){case".txt":case".cpt":case".obj":const ee=await L.text();if(A===".txt"||A===".cpt"){const re=/^(?!.*\bf\b)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?$/gm,Ve=[...ee.matchAll(re)].map(Ie=>({x:parseFloat(Ie[1]),y:parseFloat(Ie[2]),z:parseFloat(Ie[3])})),ba=new $a.BufferGeometry,Fe=Ve.flatMap(Ie=>[Ie.x,Ie.y,Ie.z]);if(ba.setAttribute("position",new $a.Float32BufferAttribute(Fe,3)),A===".txt"){const Ie=new $a.PointsMaterial({color:"#5B5C99",size:1,sizeAttenuation:!1});I=new $a.Points(ba,Ie)}else if(A===".cpt"){const Ie=new $a.LineBasicMaterial({color:"#5B5C99",linewidth:100});I=new $a.Line(ba,Ie)}}else if(A===".obj"){const re=new Ln.OBJLoader;if(S&&S.length>0){const la=new Ln.MTLLoader;for(const Ve of S){const ba=await Ve.text(),Fe=la.parse(ba);Fe.preload(),re.setMaterials(Fe);break}}I=re.parse(ee),(!S||S.length===0)&&I.traverse(la=>{la.isMesh&&(la.material=new $a.MeshPhongMaterial({color:"#B3B3D4"})),la instanceof $a.Mesh&&(la.material.side=$a.DoubleSide)})}break;case".stl":const C=await L.arrayBuffer(),E=new Ln.STLLoader().parse(C),k=new $a.MeshPhongMaterial({color:"#B3B3D4",side:$a.DoubleSide});I=new $a.Mesh(E,k);break;case".nc":const g=["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"],O={"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 $a.Group,q=g.map(re=>new Promise((la,Ve)=>{new Ln.STLLoader().load(ss.value===""?`/model/${re}`:`${ss.value}\\${re}`,Fe=>{const Ie=new $a.MeshPhongMaterial({color:O[re]||"#B3B3D4",side:$a.DoubleSide}),$e=new $a.Mesh(Fe,Ie);la($e)},void 0,Ve)}));try{(await Promise.all(q)).forEach(la=>F.add(la)),I=F}catch(re){throw console.error("加载NC文件对应的STL文件失败:",re),new Error("无法加载.NC文件对应的STL文件")}break;case".pcd":const te=new rf,Te=new $a.Group;try{const re=await al.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/target.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),la=new Blob([re.data],{type:"application/octet-stream;charset=UTF-8"}),Ve=await al.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/final.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),ba=new Blob([Ve.data],{type:"application/octet-stream;charset=UTF-8"}),Fe=await new Promise(($e,Qe)=>{const Xa=URL.createObjectURL(la);te.load(Xa,Wa=>{const V=new Float32Array(Wa.geometry.attributes.position.count*3);for(let $=0;$<Wa.geometry.attributes.position.count;$++)V[$*3]=1,V[$*3+1]=0,V[$*3+2]=0;Wa.geometry.setAttribute("color",new $a.BufferAttribute(V,3)),Wa.material.vertexColors=!0,Wa.scale.set(.3,.3,.3),URL.revokeObjectURL(Xa),$e(Wa)},void 0,Qe)}),Ie=await new Promise(($e,Qe)=>{const Xa=URL.createObjectURL(ba);te.load(Xa,Wa=>{const V=new Float32Array(Wa.geometry.attributes.position.count*3);for(let $=0;$<Wa.geometry.attributes.position.count;$++)V[$*3]=0,V[$*3+1]=1,V[$*3+2]=0;Wa.geometry.setAttribute("color",new $a.BufferAttribute(V,3)),Wa.material.vertexColors=!0,Wa.scale.set(.3,.3,.3),URL.revokeObjectURL(Xa),$e(Wa)},void 0,Qe)});Te.add(Fe),Te.add(Ie),I=Te}catch(re){throw console.error("PCD文件加载失败:",re),new Error("无法加载PCD文件")}break;case".urdf":const Ee=URL.createObjectURL(L),Q=new Du.URDFLoader,be="http://139.196.154.85:20026/chfs/shared/机器人/urdf/SmallBender_R-2000iC-165F/meshes",Z={maxConcurrentLoads:4,enableCache:!0,enableLOD:!0,simplifyGeometry:!0,shareMaterials:!0,enableInstancing:!0},de=new WeakMap,je=new WeakMap,wa=new WeakMap,ie=async re=>{if(de.has(re))return console.log(`从缓存加载: ${re}`),de.get(re);try{const la=await al.axios.get(`${be}/${re}`,{responseType:"blob",headers:{"Content-Type":"application/json"},timeout:6e5}),Ve=new Blob([la.data],{type:"application/octet-stream;charset=UTF-8"});return Z.enableCache&&de.set(re,Ve),Ve}catch(la){throw console.error(`加载文件失败: ${re}`,la),new Error(`无法加载文件: ${re}`)}},P=(re="default")=>{if(je.has(re))return je.get(re);const la=new $a.MeshPhongMaterial({color:12303291,shininess:30,transparent:!1,alphaTest:.1,side:$a.FrontSide});return je.set(re,la),la},j=re=>{try{re.isBufferGeometry&&re.mergeVertices&&re.mergeVertices(),re.computeVertexNormals&&re.computeVertexNormals(),re.computeBoundingSphere&&re.computeBoundingSphere(),re.deleteAttribute&&re.deleteAttribute("uv2")}catch(la){console.warn("几何体优化失败,使用原始几何体:",la)}return re},ye=async(re,la,Ve)=>{const ba=`stl_${la}`;if(wa.has(ba)){const Qe=wa.get(ba);return new $a.Mesh(Qe,P())}const Fe=await re.arrayBuffer();let $e=new Ln.STLLoader(Ve).parse(Fe);return $e=j($e),wa.set(ba,$e),new $a.Mesh($e,P())},Se=async(re,la,Ve)=>{const ba=`obj_${la}`;if(de.has(ba))return de.get(ba).clone();const Fe=await re.text(),Ie=new Ln.OBJLoader(Ve),$e=la.replace(".obj",".mtl");try{const Wa=await(await ie($e)).text(),$=new Ln.MTLLoader(Ve).parse(Wa);$.preload(),Ie.setMaterials($)}catch{console.warn(`MTL文件加载失败,使用默认材质: ${$e}`)}const Qe=Ie.parse(Fe);return Qe.traverse(Xa=>{Xa.isMesh&&(Xa.geometry=j(Xa.geometry),Xa.castShadow=!0,Xa.receiveShadow=!0,Xa.renderOrder=1)}),de.set(ba,Qe),Qe},ke=(re,la)=>{const Ve=new $a.LOD;if(Ve.addLevel(re,0),re.geometry){const ba=re.geometry.clone(),Fe=new $a.Mesh(ba,re.material);Ve.addLevel(Fe,50)}return Ve};let Ze=0,ya=0;const Ha=[];Q.loadMeshCb=async(re,la,Ve,ba,Fe)=>{const Ie=re.split("/").pop(),$e=Ve||(()=>{});Ze++;const Qe=new Promise(async(Xa,Wa)=>{try{const V=await ie(Ie);if(!V||V.size===0)throw new Error(`文件为空: ${Ie}`);const $=Ie.split(".").pop().toLowerCase();let X;switch($){case"stl":X=await ye(V,Ie,la);break;case"obj":X=await Se(V,Ie,la);break;default:throw new Error(`不支持的文件格式: ${$}`)}Z.enableLOD&&X.isMesh&&(X=ke(X,Ie)),$e(X),ya++,ba&&ba({loaded:ya,total:Ze,progress:ya/Ze}),Xa(X)}catch(V){console.error(`mesh文件加载失败: ${Ie}`,V);const $=new $a.Group;$e($),Xa($);const X=new $a.BoxGeometry(.1,.1,.1),se=new $a.MeshStandardMaterial({color:16711680,wireframe:!0});return new $a.Mesh(X,se)}});Ha.push(Qe)};try{if(!Ee){vi.value=void 0;break}if(I=await Q.loadAsync(Ee),console.log(`URDF文件加载完成,等待${Ze}个mesh文件加载...`),Ha.length>0)try{await Promise.allSettled(Ha),console.log(`所有mesh文件处理完成,成功加载: ${ya}/${Ze}`)}catch(Ve){console.warn("部分mesh文件加载失败,但继续显示模型",Ve)}I.traverse(Ve=>{Ve.isMesh&&(Ve.castShadow=!0,Ve.receiveShadow=!0,Ve.renderOrder=1,Ve.material&&(Ve.material.needsUpdate=!0))}),console.time("计算包围盒");const re=new $a.Box3;re.expandByObject(I);const la=`urdf_${Date.now()}`;I.userData.boundingBox=re.clone(),I.userData.modelId=la,cs.set(la,{box:re.clone(),center:re.getCenter(new $a.Vector3),size:re.getSize(new $a.Vector3),maxSize:Math.max(...re.getSize(new $a.Vector3).toArray())}),vi.value=I,console.log("URDF模型加载完成并优化")}catch(re){console.error("URDF加载失败:",re),vi.value=void 0}finally{Ee&&URL.revokeObjectURL(Ee)}break;default:throw new Error(`不支持的文件格式: ${D}`)}return I};return{addModelsFromUrls:m,loadModelByDefaultPath:async D=>{console.log(D);try{r.value=!0,o.value="正在加载模型...";const{scene:L}=l();if(!L)throw new Error("Scene not initialized");s(),await new Promise(W=>setTimeout(W,100));const S=[];for(let W=0;W<D.length;W++){const I=D[W],A=await u(I.suffix,I.blob,I.mtlBlobs||[],I.meshFiles||[]);A&&(L.add(A),n.value.push(A),S.push(A))}return r.value=!1,o.value="",S}catch(L){throw console.error("加载模型失败:",L),r.value=!1,o.value="",L}},urdfModel:vi,modelBoundingBoxes:cs}}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>',(l=>{var n=(r=(r=document.getElementsByTagName("script"))[r.length-1]).getAttribute("data-injectcss"),r=r.getAttribute("data-disable-injectsvg");if(!r){var o,s,c,y,p,v=function(w,D){D.parentNode.insertBefore(w,D)};if(n&&!l.__iconfont__svg__cssinject__){l.__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(w){console&&console.log(w)}}o=function(){var w,D=document.createElement("div");D.innerHTML=l._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,(w=document.body).firstChild?v(D,w.firstChild):w.appendChild(D))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(o,0):(s=function(){document.removeEventListener("DOMContentLoaded",s,!1),o()},document.addEventListener("DOMContentLoaded",s,!1)):document.attachEvent&&(c=o,y=l.document,p=!1,u(),y.onreadystatechange=function(){y.readyState=="complete"&&(y.onreadystatechange=null,m())})}function m(){p||(p=!0,c())}function u(){try{y.documentElement.doScroll("left")}catch{return void setTimeout(u,50)}m()}})(window);const tf=["onClick"],sf=a.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(l,{emit:n}){const r=l,o=n,s=a.ref(null),c=a.ref(null),y=E=>{if(Array.isArray(E)&&E.length>=3){const[k,g,O,F]=E;return F!==void 0?`rgba(${k}, ${g}, ${O}, ${F})`:`rgb(${k}, ${g}, ${O})`}if(typeof E=="string"){const k=E.trim();if(k.startsWith("[")&&k.endsWith("]")){const g=k.slice(1,-1).split(",").map(O=>Number(O.trim()));if(g.length>=3&&g.every(O=>!Number.isNaN(O))){const[O,F,q,te]=g;return te!==void 0?`rgba(${O}, ${F}, ${q}, ${te})`:`rgb(${O}, ${F}, ${q})`}}return k}},p=a.computed(()=>{const E=Number(r==null?void 0:r.textSize),k=y(r==null?void 0:r.textColor),g={},O={};return!Number.isNaN(E)&&E&&(g.fontSize=`${E}px`,O.fontSize=`${E}px`),k&&(g.color=k,O.color=k),{label:g,value:O}}),v=a.ref(""),m=a.ref(""),u=a.ref(!1),w=async E=>{if(E){m.value&&(URL.revokeObjectURL(m.value),m.value="");try{const k=await Y.platformDownloadFile({url:E}),g=new Blob([k==null?void 0:k.data],{type:(k==null?void 0:k.headers["content-type"])||"image/*"});m.value=URL.createObjectURL(g)}catch{m.value=""}}};a.watch(()=>r==null?void 0:r.backGroundImage,E=>{E&&(v.value=E)},{immediate:!0}),a.watch(v,E=>{w(E)},{immediate:!0});const D=()=>{var E;(E=c.value)==null||E.click()},L=async E=>{var O,F,q;const k=E.target,g=(O=k==null?void 0:k.files)==null?void 0:O[0];if(!g){k.value="";return}u.value=!0;try{const te=new FormData;te.append("file",g);const Te=await Y.platformUploadFile(te),Ee=(q=(F=Te==null?void 0:Te.data)==null?void 0:F.result)==null?void 0:q.url;Ee?(v.value=Ee,o("update:backGroundImage",Ee),w(Ee),al.ElMessage.success("背景图片上传成功")):al.ElMessage.error("背景图片上传失败")}catch{al.ElMessage.error("背景图片上传失败")}finally{u.value=!1,k.value=""}},S=a.computed(()=>m.value?{backgroundImage:`url(${m.value})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{}),W=E=>pl.getComponent(E),I=E=>{if(!E)return;const k=E.querySelector("input, textarea, .el-input__inner");k&&typeof k.focus=="function"&&k.focus()},A=(E,k,g)=>{r.disabled||E.field&&(s.value=k,a.nextTick(()=>{I(g.currentTarget)}))},ee=()=>{s.value=null},C=E=>{var g;const k=((g=E==null?void 0:E.field)==null?void 0:g.value)??(E==null?void 0:E.value);return k==null||k===""?"-":k},_=E=>{const k=E!=null&&E.width&&E.width>0?E.width:1,O=`calc((100% - ${(k-1)*16}px) / ${k})`;return{flex:`0 0 ${O}`,maxWidth:O,minWidth:"140px",boxSizing:"border-box"}};return(E,k)=>(a.openBlock(),a.createElementBlock("div",{class:"statistics-cards-container",style:a.normalizeStyle(S.value),onClick:k[2]||(k[2]=g=>(r==null?void 0:r.backGround)==="Yes"&&D())},[(r==null?void 0:r.backGround)==="Yes"?(a.openBlock(),a.createElementBlock("div",{key:0,class:"form-backGround-upload",onClick:k[0]||(k[0]=a.withModifiers(g=>D(),["stop"]))},[a.createElementVNode("input",{ref_key:"bgUploadRef",ref:c,type:"file",accept:"image/*",style:{display:"none"},onChange:L},null,544),k[3]||(k[3]=a.createElementVNode("img",{src:pl._imports_0,class:"bg-upload-icon",alt:"上传背景"},null,-1))])):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(E.items,(g,O)=>{var F,q,te,Te,Ee,Q,be,Z;return a.openBlock(),a.createElementBlock("div",{class:"statistics-card",key:O,style:a.normalizeStyle(_(g)),onClick:k[1]||(k[1]=a.withModifiers(()=>{},["stop"]))},[a.createElementVNode("div",{class:"statistics-label",style:a.normalizeStyle(p.value.label)},a.toDisplayString(g==null?void 0:g.label),5),a.createElementVNode("div",{class:"statistics-value",style:a.normalizeStyle(p.value.value),onClick:de=>A(g,O,de)},[s.value===O&&g.field?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(W(((F=g.field)==null?void 0:F.type)??"Input")),{key:0,modelValue:g.field.value,"onUpdate:modelValue":de=>g.field.value=de,isEdit:!0,disabled:(q=g.field)==null?void 0:q.disabled,content:((te=g.field)==null?void 0:te.contents)??[],optionUrl:g.field,originalValue:(Te=g.field)==null?void 0:Te.value,config:(Ee=g.field)==null?void 0:Ee.config,configModel:((Q=g.field)==null?void 0:Q.prop)??((be=g.field)==null?void 0:be.name),selectedTagList:((Z=g.field)==null?void 0:Z.selectValue)??[],onBlur:ee,onBlurChange:ee},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(C(g)),1)],64))],12,tf)],4)}),128))],4))}}),cf=Xl._export_sfc(sf,[["__scopeId","data-v-423d9eb1"]]),lc=ol.defineStore("formToTableComp",{state:()=>({selectArray:[],selectString:""}),actions:{setSelectArray(l){this.selectArray=l},setSelectString(l){this.selectString=l}}}),uf={class:"calculator-content"},df={class:"calculator-child"},pf={class:"calculator-child"},ff=a.defineComponent({__name:"calculator",setup(l){const n=a.ref(),r=a.ref();return a.onMounted(()=>{n.value=[{type:"Upload",label:"输入",name:"input"}],r.value=[{type:"Upload",label:"输出",name:"output"}]}),(o,s)=>(a.openBlock(),a.createElementBlock("div",uf,[a.createElementVNode("div",df,[a.createVNode(pl.ssForm,{rowContents:n.value,isRowFlex:!0},null,8,["rowContents"])]),a.createElementVNode("div",pf,[a.createVNode(pl.ssForm,{rowContents:r.value,isEdit:!1,isRowFlex:!0},null,8,["rowContents"])])]))}}),hf=Xl._export_sfc(ff,[["__scopeId","data-v-73db0fe7"]]),mt=(l,n)=>{let r=l,o=n;return Array.isArray(r)&&(r=r==null?void 0:r.map((s,c)=>{if(Array.isArray(s)){let y={};return s=s==null?void 0:s.forEach((p,v)=>{var m;(m=o==null?void 0:o[v])!=null&&m.prop?y[o[v].prop]=p:Array.isArray(p)&&(y.children=mt(p,o))}),Object.assign(y,{id:c})}else return s})),r},rc=(l,n,r)=>{let o=l,s=n;return o=o==null?void 0:o.map((c,y)=>{var p,v;return!Array.isArray(c)||!((p=s==null?void 0:s[y])!=null&&p.label)&&!r||(c.unshift(((v=s==null?void 0:s[y])==null?void 0:v.label)??""),c.some(m=>Array.isArray(m))&&(c=c==null?void 0:c.map(m=>{var u;return Array.isArray(m)&&(m=rc(m,(u=s==null?void 0:s[y])==null?void 0:u.children,r)),m}))),c}),o},vf=(l,n,r)=>{if(n==="")return l==null?void 0:l.filter(o=>(o==null?void 0:o.id)!==r);{const o=n.split("-");return mf(l,o,r)}},mf=(l,n,r)=>{let o=l,s=n;return(s==null?void 0:s.length)===0?o=o==null?void 0:o.filter(c=>c.id!==r):o=o==null?void 0:o.map(c=>(c.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),c=nc(c,s,r)),c)),o},nc=(l,n,r)=>{var c,y;let o=l,s=n;return(s==null?void 0:s.length)===0?o.children=(c=o.children)==null?void 0:c.filter(p=>p.id!==r):o.children=(y=o.children)==null?void 0:y.map(p=>(p.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),p=nc(p,s,r)),p)),o},yf=(l,n,r)=>{if(n==="")return r;{const o=n.split("-");return gf(l,o,r)}},gf=(l,n,r)=>{let o=l,s=n;return(s==null?void 0:s.length)===0?o=r:o=o==null?void 0:o.map(c=>(c.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),c=oc(c,s,r)),c)),o},oc=(l,n,r)=>{var c;let o=l,s=n;return(s==null?void 0:s.length)===0?o.children=r:o.children=(c=o.children)==null?void 0:c.map(y=>(y.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),y=oc(y,s,r)),y)),o};class bf{constructor(n={}){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=n.url??"ws://127.0.0.1:22225",this.heartbeatInterval=n.heartbeatInterval??3e3}init(n,r,o){var y;(y=this.canvas)!=null&&y.parentNode&&this.canvas.parentNode.removeChild(this.canvas);const s=document.createElement("canvas");s.style.border="solid 1px #A0A0A0",s.id="MainCamCanvas",s.width=r,s.height=o;const c=s.getContext("2d");if(!c)throw new Error("无法获取 CanvasRenderingContext2D");n.appendChild(s),this.canvas=s,this.ctx=c}async connect(){this.socket&&(this.socket.readyState===WebSocket.OPEN||this.socket.readyState===WebSocket.CONNECTING)||await new Promise((n,r)=>{const o=new WebSocket(this.url);o.binaryType="arraybuffer",o.onopen=()=>{this.socket=o,this.isConnected=!0,this.startHeartbeat(),this.log("socket.onopen"),n()},o.onerror=s=>{this.isConnected=!1,this.log("socket.onerror"),r(s)},o.onclose=()=>{this.isConnected=!1,this.stopHeartbeat(),this.log("socket.onclose")},o.onmessage=s=>{this.handleMessage(s)}})}destroy(){var n;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,(n=this.canvas)!=null&&n.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.canvas=null,this.ctx=null}getDevCount(){this.sendBytes(new Uint8Array([119,136,80]))}getResolution(n=0){this.sendBytes(new Uint8Array([119,136,81,n]))}chooseResolution(n){if(!Array.isArray(n)||n.length===0)return null;const r=n.find(s=>s.width===2592&&s.height===1944);return r||[...n].sort((s,c)=>c.width*c.height-s.width*s.height)[0]||null}openCamera(n=0,r=1280,o=720){if(!this.canvas)throw new Error("请先 init() 传入容器并创建 canvas");const s=new Uint8Array(12);s[0]=119,s[1]=136,s[2]=1,s[3]=n,s[4]=this.canvas.width>>8&255,s[5]=this.canvas.width&255,s[6]=this.canvas.height>>8&255,s[7]=this.canvas.height&255,s[8]=r>>8&255,s[9]=r&255,s[10]=o>>8&255,s[11]=o&255,this.sendBytes(s)}closeCamera(){this.sendBytes(new Uint8Array([119,136,2,0]))}photo(){const s=new Uint8Array(12);s[0]=119,s[1]=136,s[2]=16,s[3]=0,s[4]=0,s[5]=0,s[6]=0,s[7]=0,s[8]=1,s[9]=0,s[10]=0,s[11]=0,this.sendBytes(s)}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(n){var r;(r=this.onLog)==null||r.call(this,n)}sendBytes(n){if(!this.socket||this.socket.readyState!==WebSocket.OPEN||!this.isConnected)throw new Error("socket 未连接");this.socket.send(n.buffer)}startHeartbeat(){this.stopHeartbeat(),this.heartTimer=window.setInterval(()=>{this.log("heartCheck...........")},this.heartbeatInterval)}stopHeartbeat(){this.heartTimer&&(clearInterval(this.heartTimer),this.heartTimer=null)}handleMessage(n){var s,c,y,p,v,m;const r=new Uint8Array(n.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 o=r[2];if(o===80){const u=r[3],w=r.length-4,D=new Uint8Array(w);for(let W=0;W<w;W++)D[W]=r[4+W];const S=decodeURIComponent(this.byteToString(D)).split("|");(s=this.onDevCount)==null||s.call(this,u,S);return}if(o===81){const u=r[3]||0,w=[];for(let D=0;D<u;D++){const L=(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);w.push({width:L,height:S,text:`${L}*${S}`})}(c=this.onResolution)==null||c.call(this,u,w);return}if(o===1){r[3]===1&&((y=this.onCameraStatus)==null||y.call(this,"opened")),r[3]===3&&((p=this.onCameraStatus)==null||p.call(this,"closed"));return}if(o===16){if(r[3]===1){const w=r[4]*256+r[5],D=r[6]*65536+r[7]*256+r[8];let L="";if(w>0){const I=new Uint8Array(w);for(let A=0;A<w;A++)I[A]=r[9+A];L=decodeURIComponent(this.byteToString(I))}const S=new Uint8Array(D);for(let I=0;I<D;I++)S[I]=r[9+w+I];const W=this.uint8ArrayToString(S);(v=this.onPhoto)==null||v.call(this,{flag:0,imgPath:L,base64:W})}r[3]===2&&((m=this.onPhoto)==null||m.call(this,{flag:2,imgPath:"",base64:""}));return}if(o===204){if(!this.canvas||!this.ctx)return;const u=r[3]*256+r[4],w=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(u,w);let L=11;for(let S=0;S<D.data.length;S+=4)D.data[S+0]=r[L],D.data[S+1]=r[L+1],D.data[S+2]=r[L+2],D.data[S+3]=255,L+=3;this.ctx.putImageData(D,this.pMainShowStartX,this.pMainShowStartY),this.mainCamCutMode;return}}uint8ArrayToString(n){let r="";for(let o=0;o<n.length;o++)r+=String.fromCharCode(n[o]);return r}byteToString(n){let r="";for(let o=0;o<n.length;o++)r+=String.fromCharCode(n[o]);return r}}const kf={style:{display:"flex",gap:"16px",height:"100%"}},xf={key:0,style:{color:"var(--el-text-color-secondary)"}},wf={style:{width:"420px",display:"flex","flex-direction":"column",gap:"16px"}},_f={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px"}},Cf={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"}},Ef={key:0,style:{height:"100%",display:"flex","align-items":"center","justify-content":"center",color:"var(--el-text-color-secondary)"}},Sf={key:1,style:{display:"grid","grid-template-columns":"repeat(2, minmax(0, 1fr))",gap:"8px"}},Df=["src","onClick"],Bf=["onClick"],Nf={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px",flex:"1","min-height":"0",display:"flex","flex-direction":"column"}},Tf={class:"dialog-footer"},Af=a.defineComponent({__name:"index",props:{visible:{type:Boolean,default:!1}},emits:["confirm","cancel"],setup(l,{emit:n}){const r=l,o=n,s=a.ref(null),c=a.ref(!1),y=a.ref([]),p=a.ref(""),v=a.ref(!1),m=a.ref([]),u=new bf({url:"ws://127.0.0.1:22225"});function w(F,q){var Z;const te=F.split(","),Te=((Z=te[0].match(/:(.*?);/))==null?void 0:Z[1])??"image/jpeg",Ee=atob(te[1]);let Q=Ee.length;const be=new Uint8Array(Q);for(;Q--;)be[Q]=Ee.charCodeAt(Q);return new File([be],q,{type:Te})}function D(){u.onLog=F=>{console.log("[GPY]",F)},u.onDevCount=(F,q)=>{if(p.value+=`设备数量=${F},设备=${q.join(",")}
4
4
  `,F>0){p.value+=`检测到设备,正在获取分辨率...