ss-component-new 1.3.498 → 1.3.499
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{array-BzLo9FoD.js → array-Druw5u-M.js} +2 -2
- package/dist/{array-D97z0nJZ.cjs → array-ylQqrB4K.cjs} +1 -1
- package/dist/{index-89NCtw1f.js → index-0YxREqVR.js} +1 -1
- package/dist/{index-CXzyIaKS.cjs → index-7ERgLxYj.cjs} +1 -1
- package/dist/{index-DvALRudH.js → index-BBrOiPGK.js} +1 -1
- package/dist/{index-DcVTdbvL.cjs → index-BGh1uxro.cjs} +1 -1
- package/dist/{index-BZWnLO_1.cjs → index-BXdqQSEY.cjs} +1 -1
- package/dist/{index-C8Gs2kb9.cjs → index-BdQMfu_o.cjs} +1 -1
- package/dist/{index-7_EcwGcL.js → index-BqNpOBoM.js} +7 -7
- package/dist/{index-C9ymYFoj.js → index-C4pAAQdp.js} +1 -1
- package/dist/{index-DYfyGCzh.cjs → index-C8rCLtrq.cjs} +1 -1
- package/dist/{index-DZE8ct-a.cjs → index-C9xCeExz.cjs} +1 -1
- package/dist/{index-ZGugCcFS.cjs → index-CDTGjAKk.cjs} +1 -1
- package/dist/{index-B3bhdvYB.js → index-CGeQCMvc.js} +2 -2
- package/dist/{index-BRf391bW.js → index-Cfemkaf_.js} +5 -5
- package/dist/{index-BXpHEHQK.js → index-Cmk5JeQZ.js} +1 -1
- package/dist/{index-DOTzO0oC.js → index-CnWXO1gL.js} +1 -1
- package/dist/{index-O8ibsut4.js → index-CzyWUT9R.js} +2 -2
- package/dist/{index-DrNcZwW9.js → index-D6EDcJGR.js} +3 -3
- package/dist/{index-BBFeM4OJ.cjs → index-Dn24Ga9B.cjs} +1 -1
- package/dist/{index-BYk8W1jo.cjs → index-Dvz89DG1.cjs} +1 -1
- package/dist/{index-yDS_g8Zg.js → index-K0ndentV.js} +1 -1
- package/dist/{index-D61oefkm.cjs → index-WN-zRQKt.cjs} +1 -1
- package/dist/{index-XFWr2jDi.cjs → index-Xl-9CGSG.cjs} +1 -1
- package/dist/{index-BxqV6K8a.cjs → index-wdYwbcGT.cjs} +2 -2
- package/dist/{index-Dd1I1FpL.js → index-zyWWBhHC.js} +2 -2
- package/dist/{main-BYr0zGF7.js → main-Cgc13-33.js} +2 -2
- package/dist/{main-DkUGanos.cjs → main-DE7TEEn8.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +5 -5
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +8 -8
- package/dist/{threeModel-DJufegTZ.js → threeModel-CIsq3kcq.js} +1 -1
- package/dist/{threeModel-C_hzvL0g.cjs → threeModel-IDPhScRH.cjs} +1 -1
- package/dist/{threeSceneView-DP3w9PCW.cjs → threeSceneView-DStIpx3H.cjs} +1 -1
- package/dist/{threeSceneView-D7W8LkVN.js → threeSceneView-f_glJbol.js} +3 -3
- package/dist/{threeSceneViewForCPMPIP-BCE-01xK.js → threeSceneViewForCPMPIP-Sx_2Dufk.js} +1 -1
- package/dist/{threeSceneViewForCPMPIP-DLA4I3u-.cjs → threeSceneViewForCPMPIP-y0IQPDJJ.cjs} +1 -1
- package/dist/{threeViewerHost-DNxvuNKu.js → threeViewerHost-CPqxV-dv.js} +1 -1
- package/dist/{threeViewerHost-BZFm839b.cjs → threeViewerHost-VZoDtZCO.cjs} +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var sd=Object.defineProperty;var cd=(a,l,r)=>l in a?sd(a,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[l]=r;var hn=(a,l,r)=>cd(a,typeof l!="symbol"?l+"":l,r);const e=require("vue"),Xa=require("./request-Dl8yi2iS.cjs"),R=require("./index-CMUsYepp.cjs"),ul=require("./index-DYfyGCzh.cjs"),re=require("./index-BuZHI6xx.cjs"),fr=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Fl=require("./index.vue_vue_type_style_index_0_scoped_07c75c98_lang-J7Knzs4U.cjs"),Vr=require("./index-B-pflqKE.cjs"),Do=require("./threeViewerHost-BZFm839b.cjs"),Zr=require("./index-DmwxzDGW.cjs"),_s=require("./index-ZGugCcFS.cjs"),bc=require("./index-DkTHtURJ.cjs");;/* empty css */const No=require("./isString-CGrvcmBw.cjs"),Ss=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),kc=require("./index-BVaHwt5f.cjs"),ud=require("./index-CPTra5LJ.cjs"),Yn=require("./MTLLoader-DqJ6tn_v.cjs"),dd=require("./URDFLoader-CnIz461N.cjs");var pd="[object Boolean]";function xc(a){return a===!0||a===!1||Xa.isObjectLike(a)&&Xa.baseGetTag(a)==pd}function fd(a){return a===void 0}const hd=a=>a.match(/\((.*)\)/)[1],vd={__name:"index",props:{isVisible:{type:Boolean,default:!1},title:{type:String,default:""},placement:{type:String,default:"bottom"},width:{type:Number,default:200},trigger:{type:String,default:"click"}},setup(a){const l=a,r=e.ref(null),n=e.ref(!1),i=e.ref(null);return e.watch(()=>l==null?void 0:l.isVisible,()=>{n.value=l==null?void 0:l.isVisible},{deep:!0,immediate:!0}),e.watch(()=>i.value,()=>{e.nextTick(()=>{var o,p;(p=(o=r.value)==null?void 0:o.updatePopper)==null||p.call(o)})},{deep:!0,immediate:!0}),(o,p)=>{const s=e.resolveComponent("el-popover");return e.openBlock(),e.createBlock(s,{visible:n.value,"onUpdate:visible":p[0]||(p[0]=u=>n.value=u),trigger:l.trigger,title:l==null?void 0:l.title,placement:l==null?void 0:l.placement,width:l==null?void 0:l.width,ref_key:"popOverRef",ref:r,"trigger-keys":"[]"},{reference:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(o.$slots,"reference",{ref_key:"referenceRef",ref:i})])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(o.$slots,"content")])]),_:3},8,["visible","trigger","title","placement","width"])}}},md=e.defineComponent({__name:"index",props:{value:{type:[String,Number],default:""},columnContent:{type:Object,default:{}}},setup(a){const l=a,r=e.computed(()=>{var u,y,b,g,d,C;const n=l.value??"";let i=(u=l==null?void 0:l.columnContent)==null?void 0:u.filter;if(i=(y=re.analyzeSplitToContent(i,","))==null?void 0:y.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)),v)),i=i==null?void 0:i.find(v=>(v==null?void 0:v[0])==="("),(i==null?void 0:i[0])==="("&&(i=i==null?void 0:i.slice(1,(i==null?void 0:i.length)-1)),i=i==null?void 0:i.split("||"),!i)return{backgroundColor:void 0,color:void 0};let o=(g=(b=l==null?void 0:l.columnContent)==null?void 0:b.options)==null?void 0:g.findIndex(v=>(v==null?void 0:v.value)===n);o=i==null?void 0:i[o],o=re.analyzeSplitToContent(o,","),o=o==null?void 0:o.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)),v));let p=o==null?void 0:o.find(v=>v==null?void 0:v.includes("@TextBackRGBA"));p?p=re.rgbaToColor((d=p==null?void 0:p.split("="))==null?void 0:d[1]):p=void 0;let s=o==null?void 0:o.find(v=>v==null?void 0:v.includes("@TextRGBA"));return s?s=re.rgbaToColor((C=s==null?void 0:s.split("="))==null?void 0:C[1]):s=void 0,{backgroundColor:p,color:s}});return(n,i)=>a.value!==void 0&&a.value!==null?(e.openBlock(),e.createElementBlock("span",{key:0,class:"task-status-tag",style:e.normalizeStyle(r.value)},e.toDisplayString(a.value===0?"0":a.value),5)):e.createCommentVNode("",!0)}}),wc=fr._export_sfc(md,[["__scopeId","data-v-3290070b"]]);function yd(a,l,r,n={}){if(!a||!l||!r||r.length!==4)return;const i=a.getContext("2d");if(!i)return;const{color:o="rgba(255, 235, 59, 0.3)",strokeWidth:p=2,fillOpacity:s=.2}=n,u=a.getBoundingClientRect(),y=l.getBoundingClientRect(),b=l.naturalWidth,g=l.naturalHeight,d=y.width/b,C=y.height/g,v=Math.min(d,C),H=b*v,T=g*v,j=(u.width-H)/2,D=(u.height-T)/2,_=r.map(([x,k])=>{const E=j+x*H,M=D+k*T;return{x:E,y:M}});i.clearRect(0,0,a.width,a.height),i.beginPath(),i.moveTo(_[0].x,_[0].y);for(let x=1;x<_.length;x++)i.lineTo(_[x].x,_[x].y);i.closePath();const S=o.replace(/[\d.]+\)$/,`${s})`);i.fillStyle=S,i.fill(),i.strokeStyle=o.replace(/[\d.]+\)$/,"1)"),i.lineWidth=p,i.stroke()}function Ni(a){if(!a)return;const l=a.getContext("2d");l&&l.clearRect(0,0,a.width,a.height)}function Es(a,l){if(!a||!l)return null;const r=a[l];return!r||!r.bboxNorm||!Array.isArray(r.bboxNorm)||r.bboxNorm.length!==4?null:{bboxNorm:r.bboxNorm,imageName:r.imageName||""}}const gd={key:0,class:"ocr-img-preview-root"},bd={class:"ocr-img-preview-window"},kd={key:0,class:"img-preview-body"},xd={class:"img-preview-header"},wd={class:"img-header-left"},_d={class:"img-name"},Sd={key:0,class:"img-header-right"},Ed={class:"img-index"},Cd={key:0,class:"img-thumb-list"},Td=["onClick"],Bd={key:1,class:"thumb-placeholder"},Dd={class:"thumb-name"},Nd={class:"img-preview-container"},Ad={key:0,class:"img-placeholder"},zd={key:2,class:"img-placeholder"},Md={key:0},Id={key:1},Od={key:1,class:"img-placeholder"},Ld=e.defineComponent({__name:"imgPreview",props:{visible:{type:Boolean,default:!1},images:{type:Array,default:()=>[]},defaultImageName:{type:String,default:""},fieldMeta:{type:Object,default:()=>({})},focusedFieldName:{type:String,default:""}},emits:["update:visible","close"],setup(a,{emit:l}){const r=a,n=l,i=e.computed({get:()=>r.visible,set:N=>n("update:visible",N)});let o=!1,p="",s=0,u=0,y=0,b=0,g=0,d=0,C=null;const v=N=>{var G,ve;const se=(ve=(G=N==null?void 0:N.target)==null?void 0:G.closest)==null?void 0:ve.call(G,".ocr-img-preview-window");return se||document.querySelector(".ocr-img-preview-window")},H=N=>{if(!N||N==="none")return{tx:0,ty:0};let se=N.match(/matrix\(([^)]+)\)/);if(se){const G=se[1].split(",").map(ve=>Number(ve.trim()));return{tx:(G==null?void 0:G[4])||0,ty:(G==null?void 0:G[5])||0}}if(se=N.match(/matrix3d\(([^)]+)\)/),se){const G=se[1].split(",").map(ve=>Number(ve.trim()));return{tx:(G==null?void 0:G[12])||0,ty:(G==null?void 0:G[13])||0}}return se=N.match(/translate\(\s*([-\d.]+)px\s*,\s*([-\d.]+)px\s*\)/),se?{tx:Number(se[1])||0,ty:Number(se[2])||0}:{tx:0,ty:0}},T=(N,se,G)=>{N.style.transform=`translate(${se}px, ${G}px)`},j=N=>{const se=v(N);if(!se)return;o=!0,C=se,p="move",s=N.clientX,u=N.clientY;const G=window.getComputedStyle(se),{tx:ve,ty:ke}=H(G.transform);g=ve,d=ke,document.addEventListener("mousemove",_),document.addEventListener("mouseup",S)},D=(N,se)=>{const G=v(N);if(!G)return;o=!0,C=G,p=se,s=N.clientX,u=N.clientY;const ve=G.getBoundingClientRect();y=ve.width,b=ve.height;const ke=window.getComputedStyle(G),{tx:Be,ty:We}=H(ke.transform);g=Be,d=We,document.addEventListener("mousemove",_),document.addEventListener("mouseup",S)},_=N=>{if(!o||!C)return;const se=N.clientX-s,G=N.clientY-u,ve=360,ke=420;let Be=y,We=b,he=g,I=d;if(p==="move"){he=g+se,I=d+G,T(C,he,I);return}if(p.includes("right")&&(Be=Math.max(ve,y+se)),p.includes("bottom")&&(We=Math.max(ke,b+G)),p.includes("left")){const Oe=y-se;Oe<ve?(Be=ve,he=g+(y-ve)):(Be=Oe,he=g+se)}if(p.includes("top")){const Oe=b-G;Oe<ke?(We=ke,I=d+(b-ke)):(We=Oe,I=d+G)}C.style.width=`${Be}px`,C.style.height=`${We}px`,T(C,he,I)},S=()=>{o=!1,p="",C=null,document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",S)},x=e.ref([]),k=e.ref(!1);e.watch(()=>r.images,async N=>{if(!Array.isArray(N)||N.length===0){x.value=[];return}k.value=!0;const se=[];for(const G of N)if(G.url&&!G.url.startsWith("blob:")&&!G.url.startsWith("http"))try{const ve=await Fl.downloadFile(G.url),ke=URL.createObjectURL(ve);se.push({...G,blobUrl:ke})}catch(ve){console.error(`Failed to load image for preview: ${G.url}`,ve),se.push({...G,blobUrl:""})}else se.push({...G,blobUrl:G.url});x.value=se,k.value=!1},{deep:!0,immediate:!0});const E=e.ref(0),M=e.ref(null),O=e.ref(null),Q=e.computed(()=>x.value[E.value]||null),J=()=>{if(!x.value.length){E.value=0;return}if(r.defaultImageName){const N=x.value.findIndex(se=>(se==null?void 0:se.name)===r.defaultImageName);E.value=N>=0?N:0}else E.value=0},ye=N=>{if(!x.value.length)return;const se=Math.max(0,Math.min(N,x.value.length-1));E.value=se},te=()=>ye(E.value-1),U=()=>ye(E.value+1),q=N=>{if(!N)return;const se=x.value.findIndex(G=>(G==null?void 0:G.name)===N);se>=0&&(E.value=se)},X=()=>{if(!O.value)return;const N=O.value.parentElement;if(!N)return;const se=N.getBoundingClientRect();O.value.width=se.width,O.value.height=se.height},ee=()=>{var ve,ke;if(!O.value||!M.value||!r.focusedFieldName){O.value&&Ni(O.value);return}const N=(ve=M.value.$el)==null?void 0:ve.querySelector("img");if(!N)return;if(!N.complete||N.naturalWidth===0){N.onload=()=>{e.nextTick(()=>{ee()})};return}const se=((ke=Q.value)==null?void 0:ke.name)||"",G=Es(r.fieldMeta,r.focusedFieldName);if(!G){Ni(O.value);return}if(G.imageName!==se){Ni(O.value);return}X(),yd(O.value,N,G.bboxNorm)},pe=()=>{e.nextTick(()=>{X(),ee()})};e.watch(()=>r.focusedFieldName,()=>{if(!i.value)return;const N=Es(r.fieldMeta,r.focusedFieldName);N!=null&&N.imageName&&q(N.imageName),e.nextTick(()=>{ee()})}),e.watch(()=>{var N;return(N=Q.value)==null?void 0:N.name},()=>{i.value&&e.nextTick(()=>{O.value&&Ni(O.value),ee()})}),e.watch(()=>r.visible,N=>{N?(J(),e.nextTick(()=>{X(),ee()})):O.value&&Ni(O.value)}),e.watch(()=>r.defaultImageName,()=>{i.value&&J()});let ze=null;e.onMounted(()=>{var N;typeof ResizeObserver<"u"&&(ze=new ResizeObserver(()=>{X(),e.nextTick(()=>{ee()})}),(N=O.value)!=null&&N.parentElement&&ze.observe(O.value.parentElement))}),e.onUnmounted(()=>{ze&&(ze.disconnect(),ze=null),document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",S)});const ue=()=>{O.value&&Ni(O.value),n("update:visible",!1),n("close")};return(N,se)=>{var We,he;const G=e.resolveComponent("el-button"),ve=e.resolveComponent("el-image"),ke=e.resolveComponent("Loading"),Be=e.resolveComponent("el-icon");return i.value?(e.openBlock(),e.createElementBlock("div",gd,[se[12]||(se[12]=e.createElementVNode("div",{class:"ocr-img-preview-backdrop"},null,-1)),e.createElementVNode("div",bd,[e.createElementVNode("div",{class:"ocr-img-preview-header",onMousedown:e.withModifiers(j,["stop"])},[se[8]||(se[8]=e.createElementVNode("span",{class:"ocr-img-preview-title"},"文件预览",-1)),e.createElementVNode("button",{type:"button",class:"ocr-img-preview-close",onClick:ue},"×")],32),e.createElementVNode("div",{class:"resizable-handle top",onMousedown:se[0]||(se[0]=e.withModifiers(I=>D(I,"top"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle right",onMousedown:se[1]||(se[1]=e.withModifiers(I=>D(I,"right"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle bottom",onMousedown:se[2]||(se[2]=e.withModifiers(I=>D(I,"bottom"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle left",onMousedown:se[3]||(se[3]=e.withModifiers(I=>D(I,"left"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle top-left",onMousedown:se[4]||(se[4]=e.withModifiers(I=>D(I,"top-left"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle top-right",onMousedown:se[5]||(se[5]=e.withModifiers(I=>D(I,"top-right"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle bottom-left",onMousedown:se[6]||(se[6]=e.withModifiers(I=>D(I,"bottom-left"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle bottom-right",onMousedown:se[7]||(se[7]=e.withModifiers(I=>D(I,"bottom-right"),["stop"]))},null,32),Q.value?(e.openBlock(),e.createElementBlock("div",kd,[e.createElementVNode("div",xd,[e.createElementVNode("div",wd,[e.createElementVNode("span",_d,e.toDisplayString(Q.value.name?Q.value.name+(Q.value.url&&Q.value.url.lastIndexOf(".")!==-1?Q.value.url.substring(Q.value.url.lastIndexOf(".")):""):""),1)]),x.value.length>1?(e.openBlock(),e.createElementBlock("div",Sd,[e.createVNode(G,{size:"small",disabled:E.value===0,onClick:te},{default:e.withCtx(()=>se[9]||(se[9]=[e.createTextVNode("上一张")])),_:1,__:[9]},8,["disabled"]),e.createElementVNode("span",Ed,e.toDisplayString(E.value+1)+" / "+e.toDisplayString(x.value.length),1),e.createVNode(G,{size:"small",disabled:E.value===x.value.length-1,onClick:U},{default:e.withCtx(()=>se[10]||(se[10]=[e.createTextVNode("下一张")])),_:1,__:[10]},8,["disabled"])])):e.createCommentVNode("",!0)]),x.value.length>1?(e.openBlock(),e.createElementBlock("div",Cd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(I,Oe)=>(e.openBlock(),e.createElementBlock("div",{key:(I.name||"")+"-"+Oe,class:e.normalizeClass(["img-thumb-item",{active:Oe===E.value}]),onClick:oe=>ye(Oe)},[I!=null&&I.blobUrl?(e.openBlock(),e.createBlock(ve,{key:0,src:I.blobUrl,fit:"cover",class:"thumb-image","preview-src-list":[I.blobUrl],"initial-index":0},null,8,["src","preview-src-list"])):(e.openBlock(),e.createElementBlock("div",Bd,"加载失败")),e.createElementVNode("div",Dd,e.toDisplayString(I.name||"-"),1)],10,Td))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",Nd,[k.value?(e.openBlock(),e.createElementBlock("div",Ad,[e.createVNode(Be,{class:"is-loading"},{default:e.withCtx(()=>[e.createVNode(ke)]),_:1}),se[11]||(se[11]=e.createElementVNode("span",null,"图片加载中...",-1))])):(We=Q.value)!=null&&We.blobUrl?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(ve,{ref_key:"imageRef",ref:M,src:Q.value.blobUrl,fit:"contain",class:"preview-image","preview-src-list":[Q.value.blobUrl],onLoad:pe},null,8,["src","preview-src-list"]),e.createElementVNode("canvas",{ref_key:"canvasRef",ref:O,class:"highlight-canvas"},null,512)],64)):(e.openBlock(),e.createElementBlock("div",zd,[(he=Q.value)!=null&&he.url?(e.openBlock(),e.createElementBlock("span",Md,"图片加载失败")):(e.openBlock(),e.createElementBlock("span",Id,"暂无图片"))]))])])):(e.openBlock(),e.createElementBlock("div",Od,"暂无图片"))])])):e.createCommentVNode("",!0)}}}),Rd=fr._export_sfc(Ld,[["__scopeId","data-v-48a4ecb1"]]),$d={class:"cert-preview-body"},Vd={key:0,class:"pdf-preview-container"},Fd={class:"thumbs"},Pd=["onClick"],Hd={class:"thumb-img"},jd=["src"],Ud={key:1,class:"thumb-loading"},qd={class:"thumb-title"},Wd={class:"viewer"},Gd={key:0,class:"viewer-img-wrap"},Kd=["src"],Yd={key:1,class:"viewer-loading"},Jd=e.defineComponent({__name:"CertificatePreview",props:{visible:{type:Boolean},versions:{}},emits:["update:visible"],setup(a,{emit:l}){const r=a,n=l,i=e.ref(""),o=e.ref(""),p=e.computed(()=>(r.versions||[]).find(v=>String(v.versionId)===String(i.value))),s=e.ref({}),u=e.ref(""),y=e.ref("证书附件.pdf"),b=()=>{try{Object.values(s.value||{}).forEach(v=>{v&&URL.revokeObjectURL(v)}),u.value&&URL.revokeObjectURL(u.value)}catch{}s.value={},u.value=""},g=async v=>{if(!v||v.fileType==="pdf")return;const H=Array.isArray(v.images)?v.images:[];for(const T of H){const j=T==null?void 0:T.url;if(!(!j||s.value[j]))try{const D=await R.platformDownloadFile({url:j}),_=URL.createObjectURL(D.data);s.value={...s.value,[j]:_}}catch{}}},d=async v=>{var T;if(!v||v.fileType!=="pdf"){u.value="";return}const H=v.sourceUrl||"";if(!H){u.value="";return}if(u.value){try{URL.revokeObjectURL(u.value)}catch{}u.value=""}try{console.log("[CertificatePreview] 下载PDF附件:",{url:H,versionId:v==null?void 0:v.versionId,certNo:v==null?void 0:v.certNo});const j=await R.platformDownloadFile({url:H});console.log("[CertificatePreview] PDF响应:",{url:H,status:j==null?void 0:j.status,size:(T=j==null?void 0:j.data)==null?void 0:T.size});const D=URL.createObjectURL(j.data);u.value=D;const _=v.certNo?String(v.certNo):"";y.value=_?`${_}.pdf`:"证书附件.pdf"}catch(j){console.error("[CertificatePreview] PDF加载失败:",{url:H,error:j}),u.value=""}};e.watch(()=>r.visible,async v=>{var T;if(!v){b();return}const H=(T=r.versions)==null?void 0:T[0];i.value=(H==null?void 0:H.versionId)||"",await g(H),await d(H)},{immediate:!0}),e.watch(()=>i.value,async()=>{var H,T;const v=p.value;if(!v){o.value="",u.value="";return}if(v.fileType==="pdf"){o.value="",await d(v);return}u.value="",o.value=((T=(H=v.images)==null?void 0:H[0])==null?void 0:T.url)||"",await g(v)},{immediate:!0});const C=()=>{n("update:visible",!1),b()};return e.onBeforeUnmount(()=>{b()}),(v,H)=>{const T=e.resolveComponent("el-empty"),j=e.resolveComponent("el-tab-pane"),D=e.resolveComponent("el-tabs"),_=e.resolveComponent("el-button"),S=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(S,{"model-value":v.visible,title:"证书附件预览",width:"1100px","close-on-click-modal":!1,onClose:C},{footer:e.withCtx(()=>[e.createVNode(_,{id:"themeBorderButton",onClick:C},{default:e.withCtx(()=>H[1]||(H[1]=[e.createTextVNode("关闭")])),_:1,__:[1]})]),default:e.withCtx(()=>[v.versions&&v.versions.length>0?(e.openBlock(),e.createBlock(D,{key:0,modelValue:i.value,"onUpdate:modelValue":H[0]||(H[0]=x=>i.value=x),type:"card",class:"cert-version-tabs"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.versions,x=>(e.openBlock(),e.createBlock(j,{key:x.versionId,name:x.versionId,label:x.label},{default:e.withCtx(()=>[e.createElementVNode("div",$d,[x.fileType==="pdf"?(e.openBlock(),e.createElementBlock("div",Vd,[u.value?(e.openBlock(),e.createBlock(ul.SsFilePreview,{key:1,fileName:y.value,blobUrl:u.value},null,8,["fileName","blobUrl"])):(e.openBlock(),e.createBlock(T,{key:0,description:"加载中"}))])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",Fd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.images||[],k=>(e.openBlock(),e.createElementBlock("div",{key:k.url,class:e.normalizeClass(["thumb",{active:k.url===o.value}]),onClick:E=>o.value=k.url},[e.createElementVNode("div",Hd,[s.value[k.url]?(e.openBlock(),e.createElementBlock("img",{key:0,src:s.value[k.url]},null,8,jd)):(e.openBlock(),e.createElementBlock("div",Ud,"加载中"))]),e.createElementVNode("div",qd,e.toDisplayString(k.name),1)],10,Pd))),128))]),e.createElementVNode("div",Wd,[o.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[s.value[o.value]?(e.openBlock(),e.createElementBlock("div",Gd,[e.createElementVNode("img",{class:"viewer-img",src:s.value[o.value]},null,8,Kd)])):(e.openBlock(),e.createElementBlock("div",Yd,"加载中"))],64)):(e.openBlock(),e.createBlock(T,{key:0,description:"暂无图片"}))])],64))])]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue"])):(e.openBlock(),e.createBlock(T,{key:1,description:"暂无可预览的证书附件"}))]),_:1},8,["model-value"])}}}),Xd=fr._export_sfc(Jd,[["__scopeId","data-v-220703c0"]]),Zd={class:"ocr-candidate-wrap"},Qd={class:"ocr-candidate-left"},ep={key:1},ap={key:0},lp={key:1},rp={key:2},np={key:3},ip={key:0,class:"ocr-candidate-right"},op={class:"ocr-candidate-actions"},tp={key:1},sp={class:"dialog-footer"},cp={__name:"OCRCandidateDialog",props:{visible:{type:Boolean,default:!1},candidates:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},nameProp:{type:String,default:""},mfrProp:{type:String,default:""}},emits:["update:visible","submit","preview-file"],setup(a,{emit:l}){const r=(E=[])=>{const M=[],O=Q=>{(Q||[]).forEach(J=>{if(!J)return;const ye=J.children||J.childrens||J.columns;Array.isArray(ye)&&ye.length>0?O(ye):M.push(J)})};return O(E),M},n=a,i=l,o=e.computed(()=>{var E;return((E=d.value)==null?void 0:E.allowAdd)!==!1}),p=e.computed(()=>{var E;return((E=d.value)==null?void 0:E.allowReplace)!==!1}),s=E=>{if(!E)return[];if(Array.isArray(E))return E;if(typeof E=="string")try{const M=JSON.parse(E);return Array.isArray(M)?M:[]}catch{return[]}return[]},u=E=>{i("preview-file",E)},y=e.ref([]),b=e.ref(0),g=e.ref("");e.watch(()=>n.candidates,E=>{var M,O;y.value=(E||[]).map(Q=>({...Q,...(Q==null?void 0:Q.ocrRow)||{},selectedTargetId:(Q==null?void 0:Q.selectedTargetId)||"",__decision:Q==null?void 0:Q.__decision})),b.value=0,g.value=((O=(M=y.value)==null?void 0:M[0])==null?void 0:O.selectedTargetId)||""},{immediate:!0,deep:!0}),e.watch(()=>n.visible,E=>{var M,O;E&&(b.value=0,g.value=((O=(M=y.value)==null?void 0:M[0])==null?void 0:O.selectedTargetId)||"")});const d=e.computed(()=>{var M;const E=Number(b.value||0);return((M=y.value||[])==null?void 0:M[E])||null}),C=e.computed(()=>(r(n.columns||[])||[]).filter(O=>O&&O.prop).filter(O=>O.type!=="operate"&&O.label!=="操作"&&O.prop!=="operate")),v=e.computed(()=>C.value.filter(E=>E.label!=="证书附件"&&E.prop!=="证书附件")),H=E=>{if(!E)return;const M=(y.value||[]).findIndex(O=>(O==null?void 0:O.idx)===(E==null?void 0:E.idx));M>-1&&(b.value=M,g.value=(E==null?void 0:E.selectedTargetId)||"")},T=E=>{if(!E){g.value="";return}g.value=String((E==null?void 0:E.id)??"")},j=(E,M="")=>{const O=Number(b.value||0),Q=y.value||[],J=Q[O];J&&(J.__decision=E,J.selectedTargetId=M,g.value=M,y.value=[...Q])},D=()=>j("skip",""),_=()=>j("add",""),S=()=>{if(!g.value){Xa.ElMessage.warning("请先选择要替换的目标记录");return}j("replace",g.value)},x=()=>{i("update:visible",!1)},k=()=>{const E=y.value||[];if(E.find(O=>(O==null?void 0:O.__decision)==="replace"&&!(O!=null&&O.selectedTargetId))){Xa.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}i("submit",E),i("update:visible",!1)};return(E,M)=>{const O=e.resolveComponent("el-table-column"),Q=e.resolveComponent("svg-icon"),J=e.resolveComponent("el-table"),ye=e.resolveComponent("el-button"),te=e.resolveComponent("el-alert");return e.openBlock(),e.createBlock(Vr.ssDialog,{title:"OCR候选匹配",visible:a.visible,"close-on-click-modal":!1,width:"90%",style:{maxWidth:"1200px"},onBeforeDestroy:x},{default:e.withCtx(()=>{var U,q;return[e.createElementVNode("div",Zd,[e.createElementVNode("div",Qd,[M[0]||(M[0]=e.createElementVNode("div",{class:"ocr-candidate-title"},"待处理OCR行(可跳过)",-1)),e.createVNode(J,{data:y.value,border:"",stripe:"","max-height":"300",style:{width:"100%"},"highlight-current-row":"",onCurrentChange:H},{default:e.withCtx(()=>[e.createVNode(O,{type:"index",label:"序号",width:"60"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,X=>(e.openBlock(),e.createBlock(O,{key:X.prop,label:X.label,prop:X.prop,"min-width":X.minWidth||160},{default:e.withCtx(({row:ee})=>[X.label==="证书附件"||X.prop==="证书附件"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s(ee==null?void 0:ee[X.prop]).length>0?(e.openBlock(),e.createBlock(Q,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:e.withModifiers(pe=>u({row:ee,prop:X.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(e.openBlock(),e.createElementBlock("span",ep,"-"))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString((ee==null?void 0:ee[X.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128)),e.createVNode(O,{label:"候选数",width:"90",fixed:"right"},{default:e.withCtx(({row:X})=>[e.createTextVNode(e.toDisplayString(((X==null?void 0:X.candidates)||[]).length),1)]),_:1}),e.createVNode(O,{label:"处理状态",width:"120",fixed:"right"},{default:e.withCtx(({row:X})=>[(X==null?void 0:X.__decision)==="replace"?(e.openBlock(),e.createElementBlock("span",ap,"替换")):(X==null?void 0:X.__decision)==="add"?(e.openBlock(),e.createElementBlock("span",lp,"新增")):(X==null?void 0:X.__decision)==="skip"?(e.openBlock(),e.createElementBlock("span",rp,"跳过")):(e.openBlock(),e.createElementBlock("span",np,"未处理"))]),_:1})]),_:1},8,["data"])]),y.value&&y.value.length>0?(e.openBlock(),e.createElementBlock("div",ip,[M[4]||(M[4]=e.createElementVNode("div",{class:"ocr-candidate-title"},"当前行候选记录(同编号)",-1)),e.createElementVNode("div",op,[e.createVNode(ye,{id:"themeBorderButton",onClick:D},{default:e.withCtx(()=>M[1]||(M[1]=[e.createTextVNode("跳过本行")])),_:1,__:[1]}),e.createVNode(ye,{id:"themeBorderButton",onClick:_,disabled:!o.value},{default:e.withCtx(()=>M[2]||(M[2]=[e.createTextVNode("新增本行")])),_:1,__:[2]},8,["disabled"]),e.createVNode(ye,{class:"ok-button",id:"themeButton",onClick:S,disabled:!p.value||!g.value},{default:e.withCtx(()=>M[3]||(M[3]=[e.createTextVNode("替换选中记录")])),_:1,__:[3]},8,["disabled"])]),(((U=d.value)==null?void 0:U.candidates)||[]).length===0?(e.openBlock(),e.createBlock(te,{key:0,title:"该编号暂无候选记录,可选择“新增本行”或“跳过本行”。",type:"info",closable:!1,"show-icon":"",style:{margin:"8px 0"}})):e.createCommentVNode("",!0),e.createVNode(J,{data:((q=d.value)==null?void 0:q.candidates)||[],border:"",stripe:"","max-height":"300",style:{width:"100%"},onCurrentChange:T,"highlight-current-row":""},{default:e.withCtx(()=>[e.createVNode(O,{type:"index",label:"序号",width:"60"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,X=>(e.openBlock(),e.createBlock(O,{key:X.prop,label:X.label,prop:X.prop,"min-width":X.minWidth||160},{default:e.withCtx(({row:ee})=>[X.label==="证书附件"||X.prop==="证书附件"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s(ee==null?void 0:ee[X.prop]).length>0?(e.openBlock(),e.createBlock(Q,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:e.withModifiers(pe=>u({row:ee,prop:X.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(e.openBlock(),e.createElementBlock("span",tp,"-"))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString((ee==null?void 0:ee[X.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128))]),_:1},8,["data"])])):e.createCommentVNode("",!0)])]}),footer:e.withCtx(()=>[e.createElementVNode("div",sp,[e.createVNode(ye,{id:"themeBorderButton",onClick:x},{default:e.withCtx(()=>M[5]||(M[5]=[e.createTextVNode("取消")])),_:1,__:[5]}),e.createVNode(ye,{class:"ok-button",id:"themeButton",onClick:k},{default:e.withCtx(()=>M[6]||(M[6]=[e.createTextVNode("提交已处理")])),_:1,__:[6]})])]),_:1},8,["visible"])}}},up=fr._export_sfc(cp,[["__scopeId","data-v-89e0489c"]]),dp={class:"ocr-preview-content"},pp={class:"ocr-preview-tip"},fp={class:"ocr-preview-table"},hp={style:{display:"flex","align-items":"center",gap:"8px"}},vp={class:"dialog-footer"},mp={__name:"OCRResultPreviewDialog",props:{visible:{type:Boolean,default:!1},ocrPreviewData:{type:Array,default:()=>[]},ocrPreviewColumns:{type:Array,default:()=>[]},ocrSelectedFields:{type:Array,default:()=>[]}},emits:["update:visible","update:ocrPreviewData","update:ocrSelectedFields","confirm","fieldChange"],setup(a,{emit:l}){const r=a,n=l,i=e.ref([]),o=e.ref([]),p=e.ref([]);e.watch(()=>r.visible,C=>{C&&(i.value=JSON.parse(JSON.stringify(r.ocrPreviewData)),o.value=JSON.parse(JSON.stringify(r.ocrPreviewColumns)),p.value=[...r.ocrSelectedFields])});const s=(C,v)=>{const H=[...p.value];if(v)H.includes(C)||H.push(C);else{const T=H.indexOf(C);T>-1&&H.splice(T,1)}p.value=H,n("update:ocrSelectedFields",H)},u=(C,v,H)=>{n("fieldChange",{rowIndex:C,prop:v,value:H})},y=()=>{n("update:ocrPreviewData",i.value),n("confirm",i.value),n("update:visible",!1)},b=()=>{n("update:visible",!1)},g=C=>typeof C!="number"?"-":`${(C*100).toFixed(1)}%`,d=C=>typeof C!="number"?"#606266":C>=.9?"#67c23a":C>=.7?"#e6a23c":"#f56c6c";return(C,v)=>{const H=e.resolveComponent("el-alert"),T=e.resolveComponent("el-table-column"),j=e.resolveComponent("el-checkbox"),D=e.resolveComponent("el-input"),_=e.resolveComponent("el-table"),S=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(Vr.ssDialog,{title:"OCR识别结果预览",visible:a.visible,onBeforeDestroy:b,width:"90%",style:{maxWidth:"1200px"}},{default:e.withCtx(()=>[e.createElementVNode("div",dp,[e.createElementVNode("div",pp,[e.createVNode(H,{title:"请核对识别结果。系统将按 编号+名称+制造厂 规则匹配并替换;未唯一命中但有编号的,将进入候选选择;无编号则直接新增。",type:"info",closable:!1,"show-icon":""})]),e.createElementVNode("div",fp,[e.createVNode(_,{data:i.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(T,{type:"index",label:"序号",width:"60",fixed:""}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,x=>(e.openBlock(),e.createBlock(T,{key:x.prop,prop:x.prop,"min-width":x.minWidth||230,"class-name":x.isAccuracy?"accuracy-column":""},{header:e.withCtx(()=>[e.createElementVNode("div",hp,[x.isAccuracy?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(j,{key:0,"model-value":p.value.includes(x.prop),onChange:k=>s(x.prop,k),onClick:v[0]||(v[0]=e.withModifiers(()=>{},["stop"]))},null,8,["model-value","onChange"])),e.createElementVNode("span",null,e.toDisplayString(x.label),1)])]),default:e.withCtx(({row:k,$index:E})=>[x.isAccuracy?(e.openBlock(),e.createElementBlock("span",{key:0,class:"accuracy-value",style:e.normalizeStyle({color:d(k[x.prop]),fontWeight:500})},e.toDisplayString(g(k[x.prop])),5)):(e.openBlock(),e.createBlock(D,{key:1,modelValue:k[x.prop],"onUpdate:modelValue":M=>k[x.prop]=M,size:"small",placeholder:"请输入"+x.label,onChange:M=>u(E,x.prop,M)},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"]))]),_:2},1032,["prop","min-width","class-name"]))),128))]),_:1},8,["data"])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",vp,[e.createVNode(S,{onClick:b,id:"themeBorderButton"},{default:e.withCtx(()=>v[1]||(v[1]=[e.createTextVNode("取消")])),_:1,__:[1]}),e.createVNode(S,{class:"ok-button",onClick:y,id:"themeButton"},{default:e.withCtx(()=>v[2]||(v[2]=[e.createTextVNode("确认")])),_:1,__:[2]})])]),_:1},8,["visible"])}}},yp=fr._export_sfc(mp,[["__scopeId","data-v-df66eb1f"]]),ri=a=>{var n;let l=a;(l==null?void 0:l[0])==="("&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1));let r=(n=re.analyzeSplitToContent(l,","))==null?void 0:n.map(i=>((i==null?void 0:i[(i==null?void 0:i.length)-1])===","&&(i=i==null?void 0:i.slice(0,(i==null?void 0:i.length)-1)),vn(i)));return r=r==null?void 0:r.join(","),r};function _c(a){return Xa.axios.post("http://222.92.178.198:8000/api/v1/excel-chat",a)}function gp(a){return Xa.axios.get(a,{responseType:"blob"})}let dr="$R",bp="http://222.92.178.198:55002/AIRobot",kt=["Form","BarChart","FormText","FormBlock"];const Tt=a=>{var r,n;let l=(n=re.analyzeSplitToContent(a,"@"))==null?void 0:n[((r=re.analyzeSplitToContent(a,"@"))==null?void 0:r.length)-1];return!!(kt!=null&&kt.some(i=>l==null?void 0:l.includes(i)))},kp=async(a,l,r,n)=>{var o,p,s,u,y,b,g,d,C,v,H,T,j,D,_,S,x,k,E,M,O,Q,J,ye,te,U,q,X,ee,pe,ze,ue,N,se,G,ve,ke,Be,We,he,I,Oe,oe;let i=a;if(Tt(i==null?void 0:i[0])){let ge=Cc(i),xe=(o=ge==null?void 0:ge.filter)==null?void 0:o.join(","),ne=[];(p=ge==null?void 0:ge.hideContents)==null||p.forEach(ya=>{if(ya){const Ge=ya;Ge&&ne.push(`(HideGroup=Yes, prop=${Ge})`)}});let we=(s=ge==null?void 0:ge.formContents)==null?void 0:s.filter(ya=>{var Ge;return(Ge=ya==null?void 0:ya.filters)==null?void 0:Ge.includes("@ShowHide=Hide")});(we==null?void 0:we.length)>0&&(we==null||we.forEach(ya=>{if(ya){const Ge=ya==null?void 0:ya.prop;Ge&&ne.push(`(Hide=Yes, prop=${Ge})`)}}));let Ke=(n==null?void 0:n.menuFilter)??[];return Array.isArray(Ke)||(Ke=Ke?[Ke]:[]),Ke=[...Ke,...ne],xe===""&&((u=ge==null?void 0:ge.formContents)==null?void 0:u.length)===0?void 0:{key:"Form",name:ge==null?void 0:ge.groupName,value:ge==null?void 0:ge.formContents,contents:Array.isArray((y=ge==null?void 0:ge.contents)==null?void 0:y[0])&&((g=(b=ge==null?void 0:ge.contents)==null?void 0:b[0])!=null&&g.every(ya=>Array.isArray(ya)))?[(C=(d=ge==null?void 0:ge.contents)==null?void 0:d[0])==null?void 0:C[r]]:[ge==null?void 0:ge.contents],filter:"("+xe+")",menuFilter:Ke,groupFilter:ge==null?void 0:ge.groupFilters}}else if(((v=i==null?void 0:i[0])==null?void 0:v[0])!=="&"){let ge=Tc(i,n),xe="";(H=ge==null?void 0:ge.tableFilter)!=null&&H.includes(dr)?ge.tableFilter=(T=ge==null?void 0:ge.tableFilter)==null?void 0:T.replace(dr,""):xe=(_=(D=(j=ge==null?void 0:ge.tableFilter)==null?void 0:j.replace("(",dr))==null?void 0:D.split(dr))==null?void 0:_[0];let ne=[];ge!=null&&ge.tableFilter&&((S=re.analyzeSplitToContent(ge==null?void 0:ge.tableFilter,","))==null||S.forEach(Ke=>{Ke!=null&&Ke.includes("@ShowHide=Hide")&&ne.push("HideGroup=Yes")}));let we=(n==null?void 0:n.menuFilter)??[];return Array.isArray(we)||(we=we?[we]:[]),we=[...we,...ne],{key:"Table",name:ge==null?void 0:ge.groupName,tableColumns:ge==null?void 0:ge.tableColumns,assistColumn:ge==null?void 0:ge.columns,tableContents:l===1?ge==null?void 0:ge.tableContents:(k=(x=ge==null?void 0:ge.tableContents)==null?void 0:x[r])!=null&&k.every(Ke=>Array.isArray(Ke))?(E=ge==null?void 0:ge.tableContents)==null?void 0:E[r]:[(M=ge==null?void 0:ge.tableContents)==null?void 0:M[r]],filter:ge==null?void 0:ge.tableFilter,menuFilter:we,quotePage:xe!==""?((J=(Q=(O=xe==null?void 0:xe.replace("*",dr))==null?void 0:O.split(dr))==null?void 0:Q[0])==null?void 0:J.replaceAll(":","/"))??"":void 0,quoteGroup:xe!==""?((pe=(ee=(X=(q=(U=(te=(ye=xe==null?void 0:xe.replace("*",dr))==null?void 0:ye.split(dr))==null?void 0:te[1])==null?void 0:U.replace("{",dr))==null?void 0:q.split(dr))==null?void 0:X[0])==null?void 0:ee.split(":"))==null?void 0:pe.filter(Ke=>Ke!==""))??[]:[],relatedQuotes:ge==null?void 0:ge.relatedQuotes,fatherSyncContents:ge==null?void 0:ge.fatherSyncContents,sonSyncContents:ge==null?void 0:ge.sonSyncContents,calculatorFilters:(ge==null?void 0:ge.calculatorFilters)??[]}}else{let ge=[{label:"序号",prop:"sort"},{label:"函数名称",prop:"函数名称"},{label:"函数关联名",prop:"函数关联名"},{label:"函数参数",prop:"函数参数"},{label:"输出值",prop:"输出值"},{label:"导入文件",prop:"导入文件",formType:"Upload"}],xe=i==null?void 0:i[0];xe=xe==null?void 0:xe.slice(1,xe==null?void 0:xe.length),xe=re.analyzeSplitToContent(xe,":"),xe=xe==null?void 0:xe[(xe==null?void 0:xe.length)-1];let ne=[];ne.push("1");let we=xe==null?void 0:xe.replace("(",dr);we=(ze=we==null?void 0:we.split(dr))==null?void 0:ze[0],ne.push(we);let Ke=xe==null?void 0:xe.replace("(",dr);if(Ke=(ue=Ke==null?void 0:Ke.split(dr))==null?void 0:ue[1],Ke=(se=(N=Ke==null?void 0:Ke.replace(")",dr))==null?void 0:N.split(dr))==null?void 0:se[0],(ve=(G=Ke==null?void 0:Ke.replace(",",dr))==null?void 0:G.split(dr))==null||ve.forEach(ya=>{ne.push(ya)}),ne.push(""),ne.push(""),(ke=ne==null?void 0:ne[2])!=null&&ke.includes(".xlsx")||(Be=ne==null?void 0:ne[2])!=null&&Be.includes(".xls"))try{let ya=bp+"/"+(ne==null?void 0:ne[2]),Ge=await gp(ya),V=`生成js函数名称为${ne==null?void 0:ne[1]}的函数,规则为:`+(ne==null?void 0:ne[3])+"。根据上述描述获取对应的总结性详细可运行js函数,不需要任何注释。";if((Ge==null?void 0:Ge.status)===200){let F=Ge==null?void 0:Ge.data;const le=new FormData;le.append("file",F,ne==null?void 0:ne[2]),le.append("query",V);let fe=await _c(le);fe=(I=(he=(We=fe==null?void 0:fe.data)==null?void 0:We.data)==null?void 0:he.response)==null?void 0:I.replace("generateResult",ne==null?void 0:ne[1]),ne[ne.length-2]=fe,ne[ne.length-1]=[{name:(oe=(Oe=ne==null?void 0:ne[2])==null?void 0:Oe.split("."))==null?void 0:oe[0],url:ya}]}}catch{}return ne=[ne],{key:"Method",name:[],tableContents:ne,tableColumns:ge}}},xp=(a,l)=>{var n,i,o,p,s,u,y,b,g,d,C,v,H,T,j,D,_,S,x,k,E,M,O,Q,J,ye,te,U,q,X,ee,pe,ze,ue,N,se,G,ve,ke,Be,We,he,I,Oe,oe,ge,xe,ne,we,Ke,ya;let r=(i=(n=re.analyzeSplitToContent(a,"="))==null?void 0:n.filter(Ge=>Ge!=="="))==null?void 0:i.map(Ge=>((Ge==null?void 0:Ge[(Ge==null?void 0:Ge.length)-1])==="="&&(Ge=Ge==null?void 0:Ge.slice(0,(Ge==null?void 0:Ge.length)-1)),Ge));if(Tt(r==null?void 0:r[1])||Tt(r==null?void 0:r[0])){let Ge=Tp(r);if(Ge!=null&&Ge.formContents){let be=(o=Ge==null?void 0:Ge.filter)==null?void 0:o.join(","),ua=[];(p=Ge==null?void 0:Ge.hideContents)==null||p.forEach(va=>{if(va){const Ea=va;Ea&&ua.push(`(HideGroup=Yes, prop=${Ea})`)}});let ia=(s=Ge==null?void 0:Ge.formContents)==null?void 0:s.filter(va=>{var Ea;return(Ea=va==null?void 0:va.filters)==null?void 0:Ea.includes("@ShowHide=Hide")});(ia==null?void 0:ia.length)>0&&(ia==null||ia.forEach(va=>{if(va){const Ea=va==null?void 0:va.prop;Ea&&ua.push(`(Hide=Yes, prop=${Ea})`)}}));let Pe=(l==null?void 0:l.menuFilter)??[];return Array.isArray(Pe)||(Pe=Pe?[Pe]:[]),Pe=[...Pe,...ua],be===""&&((u=Ge==null?void 0:Ge.formContents)==null?void 0:u.length)===0?void 0:{key:"Form",name:Ge==null?void 0:Ge.groupName,value:Ge==null?void 0:Ge.formContents,contents:[Ge==null?void 0:Ge.contents],filter:"("+be+")",menuFilter:Pe,groupFilter:Ge==null?void 0:Ge.groupFilters,calculatorFilters:Ge==null?void 0:Ge.calculatorFilters}}let V=(g=(b=(y=Ge==null?void 0:Ge.filter)==null?void 0:y.replace("@",dr))==null?void 0:b.split(dr))==null?void 0:g[0],F=(v=(C=(d=Ge==null?void 0:Ge.filter)==null?void 0:d.replace("(",dr))==null?void 0:C.split(dr))==null?void 0:v[1],le=(j=(T=(H=Ge==null?void 0:Ge.filter)==null?void 0:H.replace("(",dr))==null?void 0:T.split(dr))==null?void 0:j[0];le="@"+((D=le==null?void 0:le.split("@"))==null?void 0:D[1]),F=F==null?void 0:F.slice(0,(F==null?void 0:F.length)-1),F=(S=(_=re.analyzeSplitToContent(F,","))==null?void 0:_.map(be=>(be=le+be,be)))==null?void 0:S.join("");let fe=V+"("+F+")";return{key:"Form",name:Ge==null?void 0:Ge.group,filter:fe,formPage:((E=(k=(x=V==null?void 0:V.replace("*",dr))==null?void 0:x.split(dr))==null?void 0:k[0])==null?void 0:E.replaceAll(":","/"))??"",formGroup:((U=(te=(ye=(J=(Q=(O=(M=V==null?void 0:V.replace("*",dr))==null?void 0:M.split(dr))==null?void 0:O[1])==null?void 0:Q.replace("{",dr))==null?void 0:J.split(dr))==null?void 0:ye[0])==null?void 0:te.split(":"))==null?void 0:U.filter(be=>be!==""))??[],value:[],menuFilter:l==null?void 0:l.menuFilter,contents:[]}}else{let Ge=r==null?void 0:r.filter((ia,Pe)=>Pe!==0);Ge=Ge==null?void 0:Ge.join("");let V=Tc(r,l,Ge),F="";(q=V==null?void 0:V.tableFilter)!=null&&q.includes(dr)?V.tableFilter=(X=V==null?void 0:V.tableFilter)==null?void 0:X.replace(dr,""):F=(ze=(pe=(ee=V==null?void 0:V.tableFilter)==null?void 0:ee.replace("(",dr))==null?void 0:pe.split(dr))==null?void 0:ze[0];let le=(se=(N=(ue=V==null?void 0:V.tableFilter)==null?void 0:ue.replace("(",dr))==null?void 0:N.split(dr))==null?void 0:se[0];le=[{menus:(ve=(G=le==null?void 0:le.split("*"))==null?void 0:G[0])==null?void 0:ve.replaceAll(":","/"),groups:((Be=(ke=le==null?void 0:le.split("*"))==null?void 0:ke[1])==null?void 0:Be.split(":"))??[]}];let fe=(I=(he=(We=V==null?void 0:V.tableFilter)==null?void 0:We.replace("(",dr))==null?void 0:he.split(dr))==null?void 0:I[1];(fe==null?void 0:fe[(fe==null?void 0:fe.length)-1])===")"&&(fe=fe==null?void 0:fe.slice(0,(fe==null?void 0:fe.length)-1));let be=[];V!=null&&V.tableFilter&&((Oe=re.analyzeSplitToContent(V==null?void 0:V.tableFilter,","))==null||Oe.forEach(ia=>{ia!=null&&ia.includes("@ShowHide=Hide")&&be.push("HideGroup=Yes")}));let ua=(l==null?void 0:l.menuFilter)??[];return Array.isArray(ua)||(ua=ua?[ua]:[]),ua=[...ua,...be],{key:"Table",name:V==null?void 0:V.groupName,filter:V==null?void 0:V.tableFilter,tableColumns:V==null?void 0:V.tableColumns,tableContents:V==null?void 0:V.tableContents,quotePage:F!==""?((xe=(ge=(oe=F==null?void 0:F.replace("*",dr))==null?void 0:oe.split(dr))==null?void 0:ge[0])==null?void 0:xe.replaceAll(":","/"))??"":void 0,quoteGroup:F!==""?((ya=(Ke=(we=(ne=F==null?void 0:F.replace("*",dr))==null?void 0:ne.split(dr))==null?void 0:we[1])==null?void 0:Ke.split(":"))==null?void 0:ya.filter(ia=>ia!==""))??[]:[],menuFilter:ua,relatedQuotes:le,fatherSyncContents:(V==null?void 0:V.fatherSyncContents)??[],sonSyncContents:(V==null?void 0:V.sonSyncContents)??[],calculatorFilters:(V==null?void 0:V.calculatorFilters)??[]}}},wp=async(a,l)=>{let r=[],n=l==null?void 0:l.length;return l=l==null?void 0:l.map(async(i,o)=>{let p=[];i=i==null?void 0:i.map(async s=>{var u,y;if(p.push(s),((u=re.analyzeSplitToContent(a,"="))==null?void 0:u.length)<=2){if(((y=re.analyzeSplitToContent(a,"="))==null?void 0:y.length)!==0){const b=await kp(re.analyzeSplitToContent(a,"="),n,o,s);b&&p.push(b)}}else p.push(xp(a,s))}),await Promise.all(i),r.push(p)}),await Promise.all(l),r};let Ki="/",_p="$",zn="$R";const Sc=a=>{var r,n,i;let l="";if((a==null?void 0:a.length)>1){let o=a==null?void 0:a.filter((p,s)=>s!==0);o=o==null?void 0:o.join(""),o=re.analyzerSplitToWord(o,")"),(o==null?void 0:o.length)!==1?(o==null?void 0:o[(o==null?void 0:o.length)-1])===")"?o=o==null?void 0:o.join(""):o=(r=o==null?void 0:o.filter((p,s)=>s!==(o==null?void 0:o.length)-1))==null?void 0:r.join(""):o=o==null?void 0:o[0],l="("+o,((i=a==null?void 0:a[0])==null?void 0:i[((n=a==null?void 0:a[0])==null?void 0:n.length)-2])==="@"&&(l="@"+l)}return{filter:l}},Ec=(a,l=[])=>{let r=(a==null?void 0:a.map(o=>{var p,s;return(s=o==null?void 0:o.key)==null?void 0:s.slice(1,(p=o==null?void 0:o.key)==null?void 0:p.length)}))??[],n=[];r==null||r.forEach(o=>{var p,s,u,y,b,g,d,C,v,H,T,j,D,_,S,x,k,E,M,O,Q,J,ye;if(o===""&&(o="算法库:通用算法"),o!=null&&o.includes(_p)){let te="",U=!0,q=re.analyzerSplitToWord(o,"(");(q==null?void 0:q.length)>1&&(te="("+((p=re.analyzerSplitToWord(q==null?void 0:q[1],")"))==null?void 0:p[0]),((u=q==null?void 0:q[0])==null?void 0:u[((s=q==null?void 0:q[0])==null?void 0:s.length)-2])==="@"&&(te="@"+te));let X=o;X=X==null?void 0:X.replace(te,""),te=vn(te),te=(y=re.analyzeSplitToContent(te,","))==null?void 0:y.map(se=>((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)),te!=null&&te.includes("@ShowHide=Hide")&&(U=!1);let ee=(b=X==null?void 0:X.replace("$",zn))==null?void 0:b.split(zn),pe=ee==null?void 0:ee[1],ze=ee==null?void 0:ee[0];ze!=null&&ze.includes("[")&&(ze=(d=(g=ze==null?void 0:ze.replace("[",zn))==null?void 0:g.split(zn))==null?void 0:d[0],pe=pe+":["+((H=(v=(C=ee==null?void 0:ee[0])==null?void 0:C.replace("[",zn))==null?void 0:v.split(zn))==null?void 0:H[1])),ze=(j=(T=ze==null?void 0:ze.replaceAll(":","/"))==null?void 0:T.replaceAll("{",""))==null?void 0:j.replaceAll("}",""),(ze==null?void 0:ze[(ze==null?void 0:ze.length)-1])!=="/"&&(ze=ze+"/"),pe=((D=ze==null?void 0:ze.split("/"))==null?void 0:D[0])+":"+pe;let N="";if(!(pe!=null&&pe.includes("[")))N=pe==null?void 0:pe.replaceAll(":","/"),n==null||n.push({path:N,isShow:U,filter:te,fatherPath:ze});else{let se=(S=(_=pe==null?void 0:pe.replace("[",zn))==null?void 0:_.split(zn))==null?void 0:S[1];se=se==null?void 0:se.slice(0,(se==null?void 0:se.length)-1),se=(x=re.analyzeSplitToContent(se,","))==null?void 0:x.map(G=>((G==null?void 0:G[(G==null?void 0:G.length)-1])===","&&(G=G==null?void 0:G.slice(0,(G==null?void 0:G.length)-1)),G)),se==null||se.forEach(G=>{var ve,ke;N=((ke=(ve=pe==null?void 0:pe.replace("[",zn))==null?void 0:ve.split(zn))==null?void 0:ke[0])+G,N=N==null?void 0:N.replaceAll(":","/"),n==null||n.push({path:N,isShow:U,filter:te,fatherPath:ze})})}}else{let te="",U=!0,q=re.analyzerSplitToWord(o,"(");(q==null?void 0:q.length)>1&&(te=(k=Sc(q))==null?void 0:k.filter);let X=o;if(X=X==null?void 0:X.replace(te,""),(te==null?void 0:te[0])==="("){te=te==null?void 0:te.slice(1,(te==null?void 0:te.length)-1);let pe=[];(E=re.analyzeSplitToContent(te,","))==null||E.forEach(ze=>{(ze==null?void 0:ze[(ze==null?void 0:ze.length)-1])===","&&(ze=ze==null?void 0:ze.slice(0,(ze==null?void 0:ze.length)-1)),(ze==null?void 0:ze[0])==="("&&(ze=ze==null?void 0:ze.slice(1,(ze==null?void 0:ze.length)-1)),(ze==null?void 0:ze[0])!=="@"&&(ze="@"+ze),pe.push(vn(ze))}),te=pe==null?void 0:pe.join(",")}else te=vn(te);te=(M=re.analyzeSplitToContent(te,","))==null?void 0:M.map(pe=>((pe==null?void 0:pe[(pe==null?void 0:pe.length)-1])===","&&(pe=pe==null?void 0:pe.slice(0,(pe==null?void 0:pe.length)-1)),pe)),te!=null&&te.includes("@ShowHide=Hide")&&(U=!1),(X==null?void 0:X[(X==null?void 0:X.length)-1])==="}"&&(X=X+":"),X=(O=X==null?void 0:X.replaceAll("{",""))==null?void 0:O.replaceAll("}","");let ee="";if(X!=null&&X.includes("[")){let pe=(Q=X==null?void 0:X.replace("[",zn))==null?void 0:Q.split(zn),ze=pe==null?void 0:pe[1];ze=ze==null?void 0:ze.slice(0,(ze==null?void 0:ze.length)-1),(ye=(J=re.analyzeSplitToContent(ze,","))==null?void 0:J.map(ue=>((ue==null?void 0:ue[(ue==null?void 0:ue.length)-1])===","&&(ue=ue==null?void 0:ue.slice(0,(ue==null?void 0:ue.length)-1)),ue)))==null||ye.forEach(ue=>{ee=(pe==null?void 0:pe[0])+ue,ee=ee==null?void 0:ee.replaceAll(":","/"),n==null||n.push({path:ee,isShow:U,filter:te})})}else ee=X==null?void 0:X.replaceAll(":","/"),n==null||n.push({path:ee,isShow:U,filter:te})}});let i=R.cloneDeep(n);return(l==null?void 0:l.length)>0&&(i=l),i=i==null?void 0:i.filter(o=>{var p,s,u,y;return!(o!=null&&o.fatherPath)&&((s=(p=o==null?void 0:o.path)==null?void 0:p.split(Ki))==null?void 0:s.length)>1&&((y=(u=o==null?void 0:o.path)==null?void 0:u.split(Ki))==null?void 0:y[1])===""}),i=i==null?void 0:i.map(o=>{var p;return o.path=(p=o.path)==null?void 0:p.replace(Ki,""),o.path}),(i==null?void 0:i.length)>0&&(n=n==null?void 0:n.map(o=>{var s,u,y,b,g,d,C;let p=i==null?void 0:i.find(v=>{var H;return(H=o==null?void 0:o.path)==null?void 0:H.includes(v)});return!(o!=null&&o.fatherPath)&&p&&!((s=o==null?void 0:o.path)!=null&&s.includes(Ki))&&!(i!=null&&i.find(v=>(o==null?void 0:o.path)===v))&&(o.path=p+Ki+((C=(y=(u=o==null?void 0:o.path)==null?void 0:u.split(p))==null?void 0:y[1])==null?void 0:C.slice(1,(d=(g=(b=o==null?void 0:o.path)==null?void 0:b.split(p))==null?void 0:g[1])==null?void 0:d.length))),o})),n},Sp=(a,l)=>Ec([{key:a}],l),Ep=async(a,l)=>{const r=[],n=Sp(a==null?void 0:a.key,l);return n&&(n==null?void 0:n.length)>0&&(n==null||n.forEach(o=>{r.push([{key:"path",value:o==null?void 0:o.path,parentPath:(o==null?void 0:o.parentPath)??"",isShow:o==null?void 0:o.isShow,menuFilter:o==null?void 0:o.filter}])})),await wp(a==null?void 0:a.value,r)};let yl="$R",Xi="[Any]";const Cp=a=>{var n;let l=[],r=a;return(n=re.chunkArray(r))==null||n.forEach(i=>{var y,b,g,d,C;let o="",p=[],s="";(i==null?void 0:i.length)>1&&(s="@"+(i==null?void 0:i[0]),s=vn(s));let u=(i==null?void 0:i.length)===1?i==null?void 0:i[0]:i==null?void 0:i[1];u=u==null?void 0:u.slice(1,u==null?void 0:u.length),o=(b=(y=u==null?void 0:u.replace("(",yl))==null?void 0:y.split(yl))==null?void 0:b[0],u=(d=(g=u==null?void 0:u.replace("(",yl))==null?void 0:g.split(yl))==null?void 0:d[1],u=u==null?void 0:u.slice(0,(u==null?void 0:u.length)-1),p=(C=re.analyzeSplitToContent(u,","))==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)),v)),l.push({functionName:o,functionRelatedWords:p,calculatorFilter:s})}),l},Tp=a=>{var r,n,i;let l={};if(((r=a==null?void 0:a[1])==null?void 0:r[0])==="&"){let o=a==null?void 0:a[0],p=a==null?void 0:a[1];p=re.analyzeSplitToContent(p,":"),p!=null&&p[1]&&(p==null?void 0:p[1])!==""&&(o=o+":"+(p==null?void 0:p[1])),p=p==null?void 0:p[0],p=p==null?void 0:p.slice(0,(p==null?void 0:p.length)-1),p=[p],o=[o],o=Cc(o),l.filter=o==null?void 0:o.filter,l.contents=o==null?void 0:o.contents,l.formContents=o==null?void 0:o.formContents,l.groupFilters=o==null?void 0:o.groupFilters,l.groupName=o==null?void 0:o.groupName,l.hideContents=o==null?void 0:o.hideContents,l.calculatorFilters=Cp(p)??[]}else{let p=a==null?void 0:a[0];(p==null?void 0:p[0])==="*"&&(p=p==null?void 0:p.slice(1,p==null?void 0:p.length)),p=p==null?void 0:p.split(":"),l.group=p;let s=a==null?void 0:a[1],u;s!=null&&s.includes("{")?u=(i=(n=s==null?void 0:s.replaceAll("{",""))==null?void 0:n.replaceAll("}",""))==null?void 0:i.replaceAll(Xi,""):u=s==null?void 0:s.replaceAll(Xi,""),(u==null?void 0:u[0])==="$"&&(u=u==null?void 0:u.slice(1,u==null?void 0:u.length)),l.filter=u}return l},Cc=a=>{var d,C,v,H,T,j;let l=[],r=[],n=[],i=[],o=[],p=[],s="",u=a==null?void 0:a[0];(u==null?void 0:u[0])==="*"&&(u=u==null?void 0:u.slice(1,u==null?void 0:u.length));let y=re.analyzeSplitToContent(u,":");(d=y==null?void 0:y.filter(D=>(D==null?void 0:D[0])!=="{"&&(D==null?void 0:D[0])!=="["))==null||d.forEach(D=>{var S,x,k;(D==null?void 0:D[(D==null?void 0:D.length)-1])===":"&&(D=D==null?void 0:D.slice(0,(D==null?void 0:D.length)-1));let _=re.analyzerSplitToWord(D,"(");if((_==null?void 0:_.length)>1){s=(S=Sc(_))==null?void 0:S.filter;let E=D==null?void 0:D.replace(s,"");if(n.push(E),(s==null?void 0:s[0])==="("){s=s==null?void 0:s.slice(1,(s==null?void 0:s.length)-1);let M=[];(x=re.analyzeSplitToContent(s,","))==null||x.forEach(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?void 0:O[0])==="("&&(O=O==null?void 0:O.slice(1,(O==null?void 0:O.length)-1)),(O==null?void 0:O[0])!=="@"&&(O="@"+O),M.push(vn(O))}),s=M==null?void 0:M.join(",")}else s=vn(s);s=(k=re.analyzeSplitToContent(s,","))==null?void 0:k.map(M=>((M==null?void 0:M[(M==null?void 0:M.length)-1])===","&&(M=M==null?void 0:M.slice(0,(M==null?void 0:M.length)-1)),M)),s!=null&&s.includes("@ShowHide=Hide")&&p.push(E),i=[...i,...s]}else n.push(_==null?void 0:_[0])});let b=(C=y==null?void 0:y.filter(D=>(D==null?void 0:D[0])==="{"))==null?void 0:C[0],g=(v=y==null?void 0:y.filter(D=>(D==null?void 0:D[0])==="["))==null?void 0:v[0];return l=Ri(g??""),l!=null&&l.every(D=>Array.isArray(D))&&(l=[l]),(b==null?void 0:b[(b==null?void 0:b.length)-1])===":"&&(b=b==null?void 0:b.slice(0,(b==null?void 0:b.length)-1)),o=(H=re.analyzeSplitToContent(b,"@"))==null?void 0:H[1],o="@"+o,b=b==null?void 0:b.replace(o,""),o=vn(o),o=(T=re.analyzeSplitToContent(o,","))==null?void 0:T.map(D=>((D==null?void 0:D[(D==null?void 0:D.length)-1])===","&&(D=D==null?void 0:D.slice(0,(D==null?void 0:D.length)-1)),D)),(b==null?void 0:b[0])==="{"&&(b=b==null?void 0:b.slice(1,(b==null?void 0:b.length)-1)),b=(j=re.analyzeSplitToContent(b,","))==null?void 0:j.map(D=>((D==null?void 0:D[(D==null?void 0:D.length)-1])===","&&(D=D==null?void 0:D.slice(0,(D==null?void 0:D.length)-1)),D)),b==null||b.forEach((D,_)=>{var ee,pe,ze,ue,N,se,G,ve,ke,Be,We,he,I,Oe,oe,ge,xe,ne,we,Ke,ya,Ge,V,F,le,fe,be,ua,ia,Pe,va,Ea,Ae,Fa,Ta,da,Ha;let S=[],x=[],k=[],E="",M="",O=!1,Q,J=[],ye=[],te=[],U="Input",q=[],X=[];if(D!=null&&D.includes("==")){Q=(ee=D==null?void 0:D.split("=="))==null?void 0:ee[0];let sa=(pe=D==null?void 0:D.split("=="))==null?void 0:pe[1],He="";((ze=re.analyzeSplitToContent(sa,"$"))==null?void 0:ze.length)>1&&((ue=re.analyzeSplitToContent(sa,"$"))==null?void 0:ue[0])!=="$"?(He=(N=re.analyzeSplitToContent(sa,"$"))==null?void 0:N[0],He=He==null?void 0:He.slice(0,(He==null?void 0:He.length)-1)):((se=re.analyzeSplitToContent(sa,"}"))==null?void 0:se.length)>1&&(He=(G=re.analyzeSplitToContent(sa,"}"))==null?void 0:G[1]);let ha=sa==null?void 0:sa.replace(He,"");if((He==null?void 0:He[0])==="("&&(He=He==null?void 0:He.slice(1,(He==null?void 0:He.length)-1)),(ve=re.analyzeSplitToContent(He,","))==null||ve.forEach(ea=>{var Fe;(ea==null?void 0:ea[0])!=="@"&&(ea="@"+ea),(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));let $e=vn(ea);(Fe=re.analyzeSplitToContent($e,","))==null||Fe.forEach(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)),S.push(ie)})}),(ha==null?void 0:ha[0])==="$"&&(ha=ha==null?void 0:ha.slice(1,ha==null?void 0:ha.length)),ha!=null&&ha.includes("&")){let ea=ha;if((ha==null?void 0:ha[0])==="("){let Fe=(ke=re.analyzeSplitToContent(ha,"&"))==null?void 0:ke.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));ea=Fe==null?void 0:Fe[1],Fe=Fe==null?void 0:Fe[0],(Fe==null?void 0:Fe[0])!=="@"&&(Fe="@"+Fe),E=vn(Fe)}(ea==null?void 0:ea[0])==="&"&&(ea=ea==null?void 0:ea.slice(1,ea==null?void 0:ea.length)),M=(We=(Be=ea==null?void 0:ea.replace("(",yl))==null?void 0:Be.split(yl))==null?void 0:We[0],k=(I=(he=ea==null?void 0:ea.replace("(",yl))==null?void 0:he.split(yl))==null?void 0:I[1],k=[k==null?void 0:k.slice(0,(k==null?void 0:k.length)-1)],U="Input"}else{let ea=(Oe=ha==null?void 0:ha.replace("*",yl))==null?void 0:Oe.split(yl);J=(oe=ea==null?void 0:ea[0])==null?void 0:oe.split(":"),ye=(xe=(ge=re.analyzeSplitToContent(ea==null?void 0:ea[1],":"))==null?void 0:ge.filter(($e,Fe)=>{var ie,Ye;return Fe!==((Ye=(ie=ea==null?void 0:ea[1])==null?void 0:ie.split(":"))==null?void 0:Ye.length)-1}))==null?void 0:xe.map($e=>(($e==null?void 0:$e[($e==null?void 0:$e.length)-1])===":"&&($e=$e==null?void 0:$e.slice(0,($e==null?void 0:$e.length)-1)),$e)),te=(we=(ne=re.analyzeSplitToContent(ea==null?void 0:ea[1],":"))==null?void 0:ne.filter(($e,Fe)=>{var ie,Ye;return Fe===((Ye=(ie=ea==null?void 0:ea[1])==null?void 0:ie.split(":"))==null?void 0:Ye.length)-1}))==null?void 0:we[0],te=(ya=(Ke=te==null?void 0:te.replaceAll("{",""))==null?void 0:Ke.replaceAll("}",""))==null?void 0:ya.split(":"),U="Select"}if(Q!=null&&Q.includes("@")){let ea=re.analyzeSplitToContent(Q,"@");Q=ea==null?void 0:ea[0],Q=Q==null?void 0:Q.slice(0,(Q==null?void 0:Q.length)-1),ea="@"+(ea==null?void 0:ea[1]),ea=vn(ea),S=(Ge=re.analyzeSplitToContent(ea,","))==null?void 0:Ge.map($e=>(($e==null?void 0:$e[($e==null?void 0:$e.length)-1])===","&&($e=$e==null?void 0:$e.slice(0,($e==null?void 0:$e.length)-1)),$e))}}else if(((V=re.analyzeSplitToContent(D,"="))==null?void 0:V.length)>1)if(U="Select",Q=(le=(F=D==null?void 0:D.replace("=",yl))==null?void 0:F.split(yl))==null?void 0:le[0],!(D!=null&&D.includes("If")))q=(be=(fe=D==null?void 0:D.replace("=",yl))==null?void 0:fe.split(yl))==null?void 0:be[1],q=q==null?void 0:q.split("||");else{let sa=(ia=(ua=D==null?void 0:D.replace("=",yl))==null?void 0:ua.split(yl))==null?void 0:ia[1];X=(Pe=re.analyzeSplitToContent(sa,")"))==null?void 0:Pe.filter(He=>!(He!=null&&He.includes("If"))),X=X==null?void 0:X.map(He=>((He==null?void 0:He[0])==="("&&(He=He==null?void 0:He.slice(1,(He==null?void 0:He.length)-1)),He=He==null?void 0:He.split("||"),He)),x=(va=re.analyzeSplitToContent(sa,")"))==null?void 0:va.filter(He=>He==null?void 0:He.includes("If")),x=x==null?void 0:x.map(He=>((He==null?void 0:He[0])==="|"&&(He=He==null?void 0:He.slice(2,He==null?void 0:He.length)),(He==null?void 0:He[0])==="("&&(He=He==null?void 0:He.slice(1,(He==null?void 0:He.length)-1)),(He==null?void 0:He[0])!=="@"&&(He="@"+He),He))}else if(((Ea=re.analyzeSplitToContent(D,"@"))==null?void 0:Ea.length)>1){Q=(Ae=re.analyzeSplitToContent(D,"@"))==null?void 0:Ae[0],(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));let sa="@"+((Fa=re.analyzeSplitToContent(D,"@"))==null?void 0:Fa[1]);sa=vn(sa),S=(Ta=re.analyzeSplitToContent(sa,","))==null?void 0:Ta.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)),S!=null&&S.find(He=>He==null?void 0:He.includes("@Type"))&&(U=(Ha=(da=S==null?void 0:S.find(He=>He==null?void 0:He.includes("@Type")))==null?void 0:da.split("="))==null?void 0:Ha[1])}else Q=D;S!=null&&S.includes("@ShowHide=Hide")&&(O=!0),r.push({prop:Q,label:Q,value:"",menuPath:J,groups:ye,columns:te,type:U,options:q,allContents:X,filters:S,width:b==null?void 0:b.length,isFormColHidden:O,filterContents:x,functionName:M,functionRelatedWords:k,calculatorFilter:E})}),{groupName:n,groupFilters:i,formContents:r,contents:l,filter:o,hideContents:p}},Ri=a=>{var n,i;if(!a||typeof a!="string")return[];let l=[],r=a.slice(1,(a==null?void 0:a.length)-1);if((r==null?void 0:r[0])!=="[")(n=re.analyzeSplitToContent(r,","))==null||n.forEach(o=>{(o==null?void 0:o[(o==null?void 0:o.length)-1])===","&&(o=o.slice(0,(o==null?void 0:o.length)-1)),l.push(o??"")}),(r==null?void 0:r[(r==null?void 0:r.length)-1])===","&&l.push("");else{let o=[];(i=re.analyzeSplitToContent(r,","))==null||i.forEach(p=>{(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)),o.push(Ri(p))}),l=o}return l},Bt=(a,l)=>{var j,D,_,S,x,k,E,M,O,Q,J,ye,te,U,q,X,ee,pe,ze,ue,N,se,G,ve,ke,Be,We,he,I,Oe,oe,ge,xe,ne,we,Ke,ya,Ge,V,F,le,fe,be,ua,ia,Pe,va,Ea,Ae,Fa,Ta,da,Ha,sa,He,ha,ea,$e,Fe,ie,Ye,na,fa;let r,n=[],i=[],o=[],p=[],s=[],u=[],y=[],b="Input",g,d="",C="",v="",H=[],T="";if(a!=null&&a.includes("==")||a!=null&&a.includes("=")||a!=null&&a.includes("@")||a!=null&&a.includes("||"))if(r=(j=a==null?void 0:a.split("=="))==null?void 0:j[0],g=(D=a==null?void 0:a.split("=="))==null?void 0:D[0],b="Select",a!=null&&a.includes("=")&&!(a!=null&&a.includes("=="))&&!((x=(S=(_=a==null?void 0:a.replace("=",yl))==null?void 0:_.split(yl))==null?void 0:S[1])!=null&&x.includes("If")))if(r=re.analyzeSplitToContent(a,"@"),r=r==null?void 0:r[0],(r==null?void 0:r[(r==null?void 0:r.length)-1])==="@"&&(r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1)),r=(E=(k=r==null?void 0:r.replace("=",yl))==null?void 0:k.split(yl))==null?void 0:E[0],r!=null&&r.includes("&")&&(r=(O=(M=r==null?void 0:r.replace("&",yl))==null?void 0:M.split(yl))==null?void 0:O[0]),g=r,((Q=re.analyzeSplitToContent(a,"@"))==null?void 0:Q.length)>1&&!(a!=null&&a.includes("||"))){if(!(a!=null&&a.includes("&"))){let Re=(J=re.analyzeSplitToContent(a,"@"))==null?void 0:J[1];if((Re==null?void 0:Re[0])!=="@"&&(Re="@"+Re),Re=vn(Re),C=Re,C!=null&&C.includes("@Type")){let Ie=re.analyzeSplitToContent(C,",");Ie=Ie==null?void 0:Ie.map(Je=>((Je==null?void 0:Je[(Je==null?void 0:Je.length)-1])===","&&(Je=Je==null?void 0:Je.slice(0,(Je==null?void 0:Je.length)-1)),Je)),Ie=(ye=Ie==null?void 0:Ie.filter(Je=>Je==null?void 0:Je.includes("@Type")))==null?void 0:ye[0],b=(te=Ie==null?void 0:Ie.split("="))==null?void 0:te[1],b==="File"&&(b="Upload")}else b="Input"}}else if(a!=null&&a.includes("||")){let Re=[];n=(X=(q=(U=re.analyzeSplitToContent(a,"="))==null?void 0:U[1])==null?void 0:q.split("||"))==null?void 0:X.map(Je=>{var _e,$a,wl,el;let Ne=Je;if(Ne!=null&&Ne.includes("@")){let Pl="@"+(($a=(_e=Ne==null?void 0:Ne.replace("@",yl))==null?void 0:_e.split(yl))==null?void 0:$a[1]);Ne=(el=(wl=Ne==null?void 0:Ne.replace("@",yl))==null?void 0:wl.split(yl))==null?void 0:el[0],Pl=ri(Pl),Re.push(Pl)}return{label:Ne==null?void 0:Ne.replaceAll("'",""),value:Ne==null?void 0:Ne.replaceAll("'","")}}),(Re==null?void 0:Re.length)>0&&(C="("+(Re==null?void 0:Re.join("||"))+")");let Ie=(ee=re.analyzeSplitToContent(a,"="))==null?void 0:ee[0];if(Ie!=null&&Ie.includes("@")){(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));let Je=(pe=re.analyzeSplitToContent(Ie,"@"))==null?void 0:pe[1];Je="@"+Je,Je=ri(Je),C=C===""?Je:Je+","+C}}else b="Input",d=(N=(ue=(ze=a==null?void 0:a.replace("=",yl))==null?void 0:ze.split(yl))==null?void 0:ue[1])==null?void 0:N.replaceAll("'","");else if((G=(se=re.analyzeSplitToContent(a,"="))==null?void 0:se[1])!=null&&G.includes("||")){let Re=(ve=re.analyzeSplitToContent(a,"="))==null?void 0:ve[0];if((Re==null?void 0:Re[(Re==null?void 0:Re.length)-1])==="="&&(Re=Re==null?void 0:Re.slice(0,(Re==null?void 0:Re.length)-1)),Re!=null&&Re.includes("@")){let _e=(ke=re.analyzeSplitToContent(Re,"@"))==null?void 0:ke[1];_e="@"+_e,C=ri(_e),r=(I=(Be=re.analyzeSplitToContent(Re,"@"))==null?void 0:Be[0])==null?void 0:I.slice(0,((he=(We=re.analyzeSplitToContent(Re,"@"))==null?void 0:We[0])==null?void 0:he.length)-1),g=(xe=(Oe=re.analyzeSplitToContent(Re,"@"))==null?void 0:Oe[0])==null?void 0:xe.slice(0,((ge=(oe=re.analyzeSplitToContent(Re,"@"))==null?void 0:oe[0])==null?void 0:ge.length)-1)}else r=Re,g=Re;let Ie=(ne=re.analyzeSplitToContent(a,"="))==null?void 0:ne[1];Ie=re.analyzeSplitToContent(Ie,")");let Je=Ie==null?void 0:Ie.filter(_e=>!(_e!=null&&_e.includes("If")));Je==null||Je.forEach(_e=>{(_e==null?void 0:_e[0])==="("&&(_e=_e==null?void 0:_e.slice(1,(_e==null?void 0:_e.length)-1)),i==null||i.push(_e==null?void 0:_e.split("||"))});let Ne=Ie==null?void 0:Ie.filter(_e=>_e==null?void 0:_e.includes("If"));Ne=Ne==null?void 0:Ne.map(_e=>((_e==null?void 0:_e[0])==="|"&&(_e==null?void 0:_e[1])==="|"&&(_e=_e==null?void 0:_e.slice(2,_e==null?void 0:_e.length)),(_e==null?void 0:_e[0])==="("&&(_e=_e==null?void 0:_e.slice(1,(_e==null?void 0:_e.length)-1)),(_e==null?void 0:_e[0])!=="@"&&(_e="@"+_e),_e)),o=Ne}else{let Re=a==null?void 0:a.split("=="),Ie=(we=Re==null?void 0:Re.filter(Je=>(Je==null?void 0:Je.includes("$"))&&(Je==null?void 0:Je[0])!=="{"))==null?void 0:we[0];if(Ie&&!(Ie!=null&&Ie.includes("&"))){let Je=(ya=re.analyzeSplitToContent(Ie,")"))==null?void 0:ya[((Ke=re.analyzeSplitToContent(Ie,")"))==null?void 0:Ke.length)-1],Ne=(Ge=Je==null?void 0:Je.replace("*",yl))==null?void 0:Ge.split(yl),_e=(Ne==null?void 0:Ne[0])===""?l==null?void 0:l.value:Ne==null?void 0:Ne[0];(_e==null?void 0:_e[0])==="("&&(_e=(V=re.analyzeSplitToContent(_e,")"))==null?void 0:V[1]),_e=(le=(F=_e==null?void 0:_e.replaceAll("{",""))==null?void 0:F.replaceAll("}",""))==null?void 0:le.replaceAll(Xi,""),(_e==null?void 0:_e[0])==="$"&&(_e=(fe=_e==null?void 0:_e.slice(1,_e==null?void 0:_e.length))==null?void 0:fe.replaceAll(":","/")),p=_e==null?void 0:_e.split("/");let $a=(ua=(be=Ne==null?void 0:Ne[1])==null?void 0:be.replace("{",yl))==null?void 0:ua.split(yl),wl=$a==null?void 0:$a[0];(wl==null?void 0:wl[(wl==null?void 0:wl.length)-1])===":"&&(wl=wl==null?void 0:wl.slice(0,(wl==null?void 0:wl.length)-1)),s=wl==null?void 0:wl.split(":"),u=(Ea=(va=(Pe=(ia=$a==null?void 0:$a[1])==null?void 0:ia.replace("}",yl))==null?void 0:Pe.split(yl))==null?void 0:va[0])==null?void 0:Ea.split(":");let el="";((Ae=re.analyzeSplitToContent(Ie,")"))==null?void 0:Ae.length)>1&&(el=(Fa=re.analyzeSplitToContent(Ie,")"))==null?void 0:Fa[0]),el&&el!==""&&((el==null?void 0:el[0])!=="@"&&(el="@"+el),C=ri(el))}if(Re!=null&&Re.some(Je=>Je==null?void 0:Je.includes("&"))){let Je=(Ta=Re==null?void 0:Re.filter($a=>$a==null?void 0:$a.includes("&")))==null?void 0:Ta[0];Je=(da=re.analyzeSplitToContent(Je,"&"))==null?void 0:da.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)),v=(He=(sa=(Ha=Je==null?void 0:Je[1])==null?void 0:Ha.replace("(",yl))==null?void 0:sa.split(yl))==null?void 0:He[0];let Ne=(ha=re.analyzeSplitToContent(Je==null?void 0:Je[1],")"))==null?void 0:ha[0];Ne=($e=(ea=Ne==null?void 0:Ne.replace("(",yl))==null?void 0:ea.split(yl))==null?void 0:$e[1],Ne=Ne==null?void 0:Ne.slice(0,(Ne==null?void 0:Ne.length)-1),(Ne==null?void 0:Ne[0])==="{"&&(Ne=Ne==null?void 0:Ne.slice(1,Ne==null?void 0:Ne.length)),(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)),H=Ne==null?void 0:Ne.split(",");let _e=Je==null?void 0:Je[0];_e&&_e!==""&&((_e==null?void 0:_e[0])!=="@"&&(_e="@"+_e),T=ri(_e))}else if(!Ie&&((Fe=Re==null?void 0:Re.filter(Je=>(Je==null?void 0:Je[0])==="{"))==null?void 0:Fe.length)>0){let Je=Re==null?void 0:Re[(Re==null?void 0:Re.length)-1];Je=Je==null?void 0:Je.slice(1,(Je==null?void 0:Je.length)-1),Je=re.analyzeSplitToContent(Je,","),Je=Je==null?void 0:Je.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)),Je=Je==null?void 0:Je.map(Ne=>{var _e,$a,wl,el;if(Ne=Ne==null?void 0:Ne.replaceAll("$",""),Ne!=null&&Ne.includes("{")){let Pl="";Ne=Ne==null?void 0:Ne.replaceAll("{","");let bl=Ne==null?void 0:Ne.split("}");Pl=(($a=(_e=bl==null?void 0:bl[0])==null?void 0:_e.split(":"))==null?void 0:$a[0])+":"+(bl==null?void 0:bl[1]),Ne=Pl,Ne=Ne+":"}if(Ne!=null&&Ne.includes(Xi)){let Pl="",bl=Ne==null?void 0:Ne.split(Xi);Pl=((el=(wl=bl==null?void 0:bl[0])==null?void 0:wl.split(":"))==null?void 0:el[0])+":"+(bl==null?void 0:bl[1]),Ne=Pl,Ne=Ne+":"}return Ne=Ne==null?void 0:Ne.replaceAll(":","/"),Ne}),y=Je}else!((ie=Re==null?void 0:Re[1])!=null&&ie.includes("$"))&&((Ye=Re==null?void 0:Re[1])==null?void 0:Ye[0])!=="("&&u.push(Re==null?void 0:Re[1])}else r=(na=a==null?void 0:a.split("&"))==null?void 0:na[0],g=(fa=a==null?void 0:a.split("&"))==null?void 0:fa[0];return(n==null?void 0:n.length)===0&&(i==null?void 0:i.length)===0&&(p==null?void 0:p.length)===0&&b==="Select"&&(b="Input"),{label:r,prop:g,options:n,allContents:i,filterContents:o,menus:p,groups:s,words:u,align:"center",formType:b,filter:C,functionName:v,functionRelatedWords:H,calculatorFilter:T,relatedPages:y,value:d}},Ao=(a,l)=>{var n,i,o,p,s,u,y,b,g,d,C,v,H,T,j,D,_,S,x,k,E,M,O,Q,J,ye,te,U,q,X;let r=[];if((a==null?void 0:a[0])==="{"&&(a==null?void 0:a[(a==null?void 0:a.length)-1])==="}"&&!((p=(o=(i=(n=a==null?void 0:a.slice(1,(a==null?void 0:a.length)-1))==null?void 0:n.replace(":",yl))==null?void 0:i.split(yl))==null?void 0:o[0])!=null&&p.includes(","))){let ee=a==null?void 0:a.slice(1,(a==null?void 0:a.length)-1),pe=(s=ee==null?void 0:ee.replace(":",yl))==null?void 0:s.split(yl);if(((u=re.analyzeSplitToContent(pe==null?void 0:pe[1],"="))==null?void 0:u.length)===1){let ze=pe==null?void 0:pe[0],ue=[];(g=re.analyzeSplitToContent((b=pe==null?void 0:pe[1])==null?void 0:b.slice(1,((y=pe==null?void 0:pe[1])==null?void 0:y.length)-1),","))==null||g.forEach(N=>{var se,G;((se=re.analyzeSplitToContent(N,"="))==null?void 0:se.length)>1?((N==null?void 0:N[(N==null?void 0:N.length)-1])===","&&(N=N==null?void 0:N.slice(0,(N==null?void 0:N.length)-1)),ue=[...ue,...Ao(N,l)]):((N==null?void 0:N[(N==null?void 0:N.length)-1])===","&&(N=N==null?void 0:N.slice(0,(N==null?void 0:N.length)-1)),ue.push((G=Ao(N,l))==null?void 0:G[0]))}),r==null||r.push({label:ze,prop:ze,children:ue,align:"center"})}else{let ze=[];if(((d=re.analyzeSplitToContent(ee,"="))==null?void 0:d.length)>=2){let N=(C=re.analyzeSplitToContent(ee,"="))==null?void 0:C[1],se=(v=re.analyzeSplitToContent(N,"/"))==null?void 0:v.map(G=>((G==null?void 0:G[(G==null?void 0:G.length)-1])==="/"&&(G=G==null?void 0:G.slice(0,(G==null?void 0:G.length)-1)),G));ze=se==null?void 0:se.map(G=>(G=Ri(G),G))}let ue=(S=(_=(D=(j=(T=(H=ee==null?void 0:ee.replace("{",yl))==null?void 0:H.split(yl))==null?void 0:T[1])==null?void 0:j.replace("}",yl))==null?void 0:D.split(yl))==null?void 0:_[0])==null?void 0:S.split(",");ue==null||ue.forEach((N,se)=>{(ze==null?void 0:ze.length)>0&&se===0?r==null||r.push({label:N,prop:N,align:"center",formType:"Select",relatedContents:ze==null?void 0:ze.map(G=>{let ve={};return ue==null||ue.forEach((ke,Be)=>{ve[ke]=G==null?void 0:G[Be]}),ve}),options:ze==null?void 0:ze.map(G=>({label:G==null?void 0:G[0],value:G==null?void 0:G[0]})),mainKey:!0}):r==null||r.push({label:N,prop:N,align:"center"})})}}else if((a==null?void 0:a[0])==="{")if(((x=re.analyzeSplitToContent(a,"="))==null?void 0:x.length)===2&&((E=(k=re.analyzeSplitToContent(a,"="))==null?void 0:k[1])==null?void 0:E[0])==="["){let ee=[];if(((M=re.analyzeSplitToContent(a,"="))==null?void 0:M.length)>=2){let ze=(O=re.analyzeSplitToContent(a,"="))==null?void 0:O[1],ue=(J=(Q=re.analyzeSplitToContent(ze,"|"))==null?void 0:Q.filter(N=>N!=="|"))==null?void 0:J.map(N=>((N==null?void 0:N[(N==null?void 0:N.length)-1])==="|"&&(N=N==null?void 0:N.slice(0,(N==null?void 0:N.length)-1)),N));ee=ue==null?void 0:ue.map(N=>(N=Ri(N),N))}let pe=(te=(ye=a==null?void 0:a.replace("}",yl))==null?void 0:ye.split(yl))==null?void 0:te[0];pe=(U=pe==null?void 0:pe.slice(1,pe==null?void 0:pe.length))==null?void 0:U.split(","),pe==null||pe.forEach((ze,ue)=>{(ee==null?void 0:ee.length)>0&&ue===0?r==null||r.push({label:ze,prop:ze,align:"center",formType:"Select",relatedContents:ee==null?void 0:ee.map(N=>{let se={};return pe==null||pe.forEach((G,ve)=>{se[G]=N==null?void 0:N[ve]}),se}),options:ee==null?void 0:ee.map(N=>({label:N==null?void 0:N[0],value:N==null?void 0:N[0]})),mainKey:!0}):r==null||r.push({label:ze,prop:ze,align:"center"})})}else(q=re.analyzeSplitToContent(a,","))==null||q.forEach(ee=>{var pe,ze,ue,N,se,G,ve,ke,Be,We,he,I,Oe,oe,ge,xe,ne,we,Ke,ya,Ge,V,F,le,fe,be,ua,ia,Pe,va,Ea,Ae,Fa,Ta,da,Ha,sa,He,ha,ea;if((ee==null?void 0:ee[(ee==null?void 0:ee.length)-1])===","&&(ee=ee==null?void 0:ee.slice(0,(ee==null?void 0:ee.length)-1)),(ee==null?void 0:ee[0])==="{"){let $e=re.analyzeSplitToContent(ee,"="),Fe=$e==null?void 0:$e[($e==null?void 0:$e.length)-1],ie=[],Ye=[],na=[],fa="",Re="",Ie=[],Je=[],Ne=(pe=Fe==null?void 0:Fe.replace("*",yl))==null?void 0:pe.split(yl),_e=(Ne==null?void 0:Ne[0])===""?l==null?void 0:l.value:Ne==null?void 0:Ne[0];_e=re.analyzeSplitToContent(_e,")");let $a="";if((_e==null?void 0:_e.length)>1&&((ze=_e==null?void 0:_e[0])==null?void 0:ze[0])!=="&"&&($a=_e==null?void 0:_e[0],($a==null?void 0:$a[0])!=="@"&&($a="@"+$a),Re=$a??""),_e=(ue=_e==null?void 0:_e.filter(ll=>(ll==null?void 0:ll[0])==="$"))==null?void 0:ue[0],((N=re.analyzeSplitToContent(_e,"}"))==null?void 0:N.length)>1&&((G=(se=re.analyzeSplitToContent(_e,"}"))==null?void 0:se[1])==null?void 0:G[0])==="("&&($a=(ve=re.analyzeSplitToContent(_e,"}"))==null?void 0:ve[1],($a==null?void 0:$a[0])!=="@"&&($a="@"+$a),Re!==""&&(Re=Re+","),Re=Re+$a),(ke=_e==null?void 0:_e.slice(1,(_e==null?void 0:_e.length)-1))!=null&&ke.includes("$")||(_e=(Be=re.analyzeSplitToContent(_e,"}"))==null?void 0:Be[0]),(_e==null?void 0:_e[0])==="$"&&(_e=(We=_e==null?void 0:_e.replace("{",""))==null?void 0:We.replace("}",":"),_e=(he=_e==null?void 0:_e.slice(1,_e==null?void 0:_e.length))==null?void 0:he.replaceAll(":","/")),_e!=null&&_e.includes("$")){let ll=(I=_e==null?void 0:_e.split("$"))==null?void 0:I[0];ll=(Oe=ll==null?void 0:ll.split("/"))==null?void 0:Oe[0],_e=ll+"/"+((oe=_e==null?void 0:_e.split("$"))==null?void 0:oe[1])+"/"}ie=(_e==null?void 0:_e.split("/"))??[];let wl=(xe=(ge=Ne==null?void 0:Ne[1])==null?void 0:ge.replace("{",yl))==null?void 0:xe.split(yl);if((Ke=(we=(ne=Ne==null?void 0:Ne[1])==null?void 0:ne.split("(@"))==null?void 0:we[0])!=null&&Ke.includes("&&")||(V=(Ge=(ya=Ne==null?void 0:Ne[1])==null?void 0:ya.split("@"))==null?void 0:Ge[0])!=null&&V.includes("&&")){let ll=(F=Ne==null?void 0:Ne[1])!=null&&F.includes("(@")?(be=(fe=(le=Ne==null?void 0:Ne[1])==null?void 0:le.split("(@"))==null?void 0:fe[0])==null?void 0:be.split("&&"):(Pe=(ia=(ua=Ne==null?void 0:Ne[1])==null?void 0:ua.split("@"))==null?void 0:ia[0])==null?void 0:Pe.split("&&");Ie=ll==null?void 0:ll.map(Ga=>{var Jl,Xl;return(Ga==null?void 0:Ga[0])==="*"&&(Ga=Ga==null?void 0:Ga.slice(1,Ga==null?void 0:Ga.length)),Ga=(Xl=(Jl=Ga==null?void 0:Ga.replace("{",yl))==null?void 0:Jl.split(yl))==null?void 0:Xl[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)),Ga=Ga==null?void 0:Ga.split(":"),Ga});let jl=[];ll==null||ll.forEach((Ga,Jl)=>{var Xl,ar;(Ga==null?void 0:Ga[0])==="*"&&(Ga=Ga==null?void 0:Ga.slice(1,Ga==null?void 0:Ga.length)),Ga=(ar=(Xl=Ga==null?void 0:Ga.replace("{",yl))==null?void 0:Xl.split(yl))==null?void 0:ar[1],(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)),Ga=Ga==null?void 0:Ga.split(","),jl.push(Jl===0?(Ga==null?void 0:Ga.length)-1:Ga==null?void 0:Ga.length),Je=[...Je,...Ga]}),jl=(va=re.prefixSum(jl))==null?void 0:va.map(Ga=>Ga==null?void 0:Ga.total),Ie=Ie==null?void 0:Ie.map((Ga,Jl)=>({number:jl==null?void 0:jl[Jl],contents:Ga}))}let el=wl==null?void 0:wl[0];(el==null?void 0:el[(el==null?void 0:el.length)-1])===":"&&(el=el==null?void 0:el.slice(0,(el==null?void 0:el.length)-1)),Ye=(el==null?void 0:el.split(":"))??[],na=((Ta=(Fa=(Ae=(Ea=wl==null?void 0:wl[1])==null?void 0:Ea.replace("}",yl))==null?void 0:Ae.split(yl))==null?void 0:Fa[0])==null?void 0:Ta.split(","))??[];let Pl=(Ha=$e==null?void 0:$e[0])==null?void 0:Ha.slice(1,((da=$e==null?void 0:$e[0])==null?void 0:da.length)-2);Re&&Re!==""&&(fa=ri(Re));let bl=(sa=re.analyzeSplitToContent(fa,","))==null?void 0:sa.map(ll=>((ll==null?void 0:ll[(ll==null?void 0:ll.length)-1])===","&&(ll=ll==null?void 0:ll.slice(0,(ll==null?void 0:ll.length)-1)),ll)),Hl=[];bl!=null&&bl.find(ll=>ll==null?void 0:ll.includes("@MainParam"))&&(bl=bl==null?void 0:bl.find(ll=>ll==null?void 0:ll.includes("@MainParam")),bl=(ha=(He=bl==null?void 0:bl.replace("=",yl))==null?void 0:He.split(yl))==null?void 0:ha[1],bl=bl==null?void 0:bl.slice(1,(bl==null?void 0:bl.length)-1),Hl=re.analyzeSplitToContent(bl,",")),(ea=Pl==null?void 0:Pl.split(","))==null||ea.forEach((ll,jl)=>{var Ga,Jl,Xl,ar,Sl,pr;if(((Ga=re.analyzeSplitToContent(ll,"@"))==null?void 0:Ga.length)>1){let ga=(Jl=re.analyzeSplitToContent(ll,"@"))==null?void 0:Jl[1];ga="@"+ga,fa=ri(ga),ll=(Xl=re.analyzeSplitToContent(ll,"@"))==null?void 0:Xl[0],(ll==null?void 0:ll[(ll==null?void 0:ll.length)-1])==="@"&&(ll=ll==null?void 0:ll.slice(0,(ll==null?void 0:ll.length)-1))}r.push({label:ll,prop:ll,align:"center",menus:ie,groups:(Ie==null?void 0:Ie.length)===0?Ye:(ar=Ie==null?void 0:Ie.find(ga=>(ga==null?void 0:ga.number)>=jl))==null?void 0:ar.contents,words:(Je==null?void 0:Je.length)===0?(Sl=na==null?void 0:na[jl])==null?void 0:Sl.split(":"):(pr=Je==null?void 0:Je[jl])==null?void 0:pr.split(":"),formType:(ie==null?void 0:ie.length)>0?"Select":"Input",mainKey:!!(jl===0||Hl!=null&&Hl.find(ga=>ga===ll)),filter:fa,isMainPath:(Ie==null?void 0:Ie.findIndex(ga=>(ga==null?void 0:ga.number)>=jl))===0})})}else r.push({label:ee,prop:ee,align:"center"})});else{let ee=(X=re.analyzeSplitToContent(a,","))==null?void 0:X.map(pe=>((pe==null?void 0:pe[(pe==null?void 0:pe.length)-1])===","&&(pe=pe==null?void 0:pe.slice(0,(pe==null?void 0:pe.length)-1)),pe));ee==null||ee.forEach(pe=>{r.push(Bt(pe,l))})}return r},Bp=(a,l)=>{var p,s,u,y,b;let r=a;if(!a)return;let n="";((p=re.analyzeSplitToContent(a,"}"))==null?void 0:p.length)>1&&(r=(s=re.analyzeSplitToContent(a,"}"))==null?void 0:s[0],n=(u=re.analyzeSplitToContent(a,"}"))==null?void 0:u[1]),(a==null?void 0:a[0])==="{"&&(a==null?void 0:a[(a==null?void 0:a.length)-1])==="}"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1));let i=[],o=[];return i.push({label:"排序",prop:"sort"}),i.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(y=re.analyzeSplitToContent(r,","))==null||y.forEach(g=>{var d;(g==null?void 0:g[(g==null?void 0:g.length)-1])===","&&(g=g==null?void 0:g.slice(0,(g==null?void 0:g.length)-1)),(g==null?void 0:g[0])==="{"?(d=Ao(g,l))==null||d.forEach(C=>{i.push(C)}):i.push(Bt(g,l))}),i!=null&&i.some(g=>{var d;return(d=g==null?void 0:g.prop)==null?void 0:d.includes("@")})&&(i=i==null?void 0:i.filter(g=>{var d;return!((d=g==null?void 0:g.prop)!=null&&d.includes("@"))})),n!==""&&((n==null?void 0:n[0])=="{"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),(b=re.analyzeSplitToContent(n,","))==null||b.forEach(g=>{var d;(g==null?void 0:g[(g==null?void 0:g.length)-1])===","&&(g=g==null?void 0:g.slice(0,(g==null?void 0:g.length)-1)),(g==null?void 0:g[0])==="{"?(d=Ao(g,l))==null||d.forEach(C=>{o.push(C)}):o.push(Bt(g,l))})),{columns:i,secondColumns:o}},vn=a=>{var l,r,n,i,o;if(a!=null&&a.includes("@Filter")||a!=null&&a.includes("@Condition")||a!=null&&a.includes("@If"))return a;{let p=(r=(l=a==null?void 0:a.replace("(",yl))==null?void 0:l.split(yl))==null?void 0:r[1],s=(i=(n=a==null?void 0:a.replace("(",yl))==null?void 0:n.split(yl))==null?void 0:i[0];return p=p==null?void 0:p.slice(0,(p==null?void 0:p.length)-1),p=(o=re.analyzeSplitToContent(p,","))==null?void 0:o.map(u=>((u==null?void 0:u[(u==null?void 0:u.length)-1])===","&&(u=u==null?void 0:u.slice(0,(u==null?void 0:u.length)-1)),(u==null?void 0:u[0])==="("&&(u=u==null?void 0:u.slice(1,(u==null?void 0:u.length)-1)),s+u)),p=p==null?void 0:p.join(","),a!=null&&a.includes("@Quote")&&(p!=null&&p.includes("@QuoteType")||(p=p===""?p+"@QuoteType=Manual":p+",@QuoteType=Manual"),p!=null&&p.includes("@QuoteSonSync")||(p=p===""?p+"@QuoteSonSync=No":p+",@QuoteSonSync=No"),p!=null&&p.includes("@QuoteFatherSync")||(p=p===""?p+"@QuoteFatherSync=Yes":p+",@QuoteFatherSync=Yes")),p}},Cs=a=>{let l=a==null?void 0:a.map(r=>{var n,i;return{menus:r==null?void 0:r.menus,content:((n=r==null?void 0:r.menus)==null?void 0:n.join("/"))+yl+((i=r==null?void 0:r.groups)==null?void 0:i.join("/"))}});return l=l==null?void 0:l.filter(r=>{var n;return(r==null?void 0:r.menus)&&((n=r==null?void 0:r.menus)==null?void 0:n.length)>0}),l=l==null?void 0:l.map(r=>r==null?void 0:r.content),l=[...new Set(l)],l=l==null?void 0:l.map(r=>{var n,i;return{menus:(n=r==null?void 0:r.split(yl))==null?void 0:n[0],groups:((i=r==null?void 0:r.split(yl))==null?void 0:i[1])??[]}}),l},Ts=a=>{var r;let l=a;return(l==null?void 0:l[0])==="("&&(l==null?void 0:l[1])==="("&&(l=l.slice(1,(l==null?void 0:l.length)-1)),l=(r=re.analyzeSplitToContent(l,","))==null?void 0:r.map(n=>((n==null?void 0:n[(n==null?void 0:n.length)-1])===","&&(n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1)),(n==null?void 0:n[0])!=="@"&&(n="@"+n),(n==null?void 0:n[1])==="("&&(n=vn(n)),n)),l==null?void 0:l.join(",")},Tc=(a,l,r="")=>{var _,S,x,k,E,M,O,Q,J,ye,te,U,q,X,ee,pe,ze,ue,N,se,G,ve,ke,Be,We,he,I,Oe,oe,ge,xe,ne,we,Ke,ya,Ge,V,F,le,fe,be,ua,ia,Pe,va,Ea,Ae,Fa,Ta,da,Ha,sa,He,ha,ea,$e;let n=[],i=[],o=[],p="",s="",u="",y=[],b=[],g=[],d=[],C="";if(((_=a==null?void 0:a[0])==null?void 0:_[0])!=="*"&&((S=a==null?void 0:a[0])==null?void 0:S[0])!=="$"&&!((x=a==null?void 0:a[0])!=null&&x.includes("$")))return;((k=a==null?void 0:a[0])==null?void 0:k[0])!=="*"&&((E=a==null?void 0:a[0])==null?void 0:E[0])!=="$"&&(p=(M=re.analyzeSplitToContent(a==null?void 0:a[0],")"))==null?void 0:M[0],(p==null?void 0:p[0])!=="@"&&(p="@"+p),p=ri(p),u=(O=re.analyzeSplitToContent(a==null?void 0:a[0],")"))==null?void 0:O[1],(u==null?void 0:u[0])==="$"&&(u=u==null?void 0:u.slice(1,u==null?void 0:u.length)),u=u==null?void 0:u.replaceAll(":","/"));let H=re.analyzeSplitToContent(a==null?void 0:a[0],":");if(n=(Q=H==null?void 0:H.filter(Fe=>(Fe==null?void 0:Fe[0])!=="{"&&(Fe==null?void 0:Fe[0])!=="["))==null?void 0:Q.join(""),s=(J=a==null?void 0:a[0])==null?void 0:J.replace(n,""),(n==null?void 0:n[0])==="("&&(n=""),C=(ye=H==null?void 0:H.filter(Fe=>(Fe==null?void 0:Fe[0])!=="["))==null?void 0:ye.join(""),C=(te=a==null?void 0:a[0])==null?void 0:te.replace(C,""),s=s==null?void 0:s.replace(C,""),(n==null?void 0:n[0])==="*"&&(n=n==null?void 0:n.slice(1,n==null?void 0:n.length)),(n==null?void 0:n[(n==null?void 0:n.length)-1])===":"&&(n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1)),((U=re.analyzeSplitToContent(s,"@"))==null?void 0:U.length)>1&&(p=(q=re.analyzeSplitToContent(s,"@"))==null?void 0:q[1],(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)),p="@"+p,p=vn(p),s=(X=re.analyzeSplitToContent(s,"@"))==null?void 0:X[0],s=s==null?void 0:s.slice(0,(s==null?void 0:s.length)-1)),((ee=re.analyzeSplitToContent(n,"@"))==null?void 0:ee.length)>1){p!==""&&(p=p+",");let Fe=(pe=re.analyzeSplitToContent(n,"@"))==null?void 0:pe[1];Fe="@"+Fe,Fe=vn(Fe),p=p+Fe,n=(ze=re.analyzeSplitToContent(n,"@"))==null?void 0:ze[0]}if((n==null?void 0:n[(n==null?void 0:n.length)-1])==="@"&&(n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1)),n=n===""?[]:n==null?void 0:n.split(":"),(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)),r!==""){let Fe=(ue=re.analyzeSplitToContent(r,")"))==null?void 0:ue[0],ie=re.analyzeSplitToContent(r,")");ie=ie==null?void 0:ie.filter((Re,Ie)=>Ie!==(ie==null?void 0:ie.length)-1),ie=ie==null?void 0:ie.join("");let Ye=(N=re.analyzeSplitToContent(r,"@"))==null?void 0:N[1];u=(G=(se=re.analyzeSplitToContent(r,"@"))==null?void 0:se[0])==null?void 0:G.replace(ie,""),(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 na="";if(na=re.analyzeSplitToContent(r,")"),na=na==null?void 0:na.filter((Re,Ie)=>Ie!==0&&Ie!==(na==null?void 0:na.length)-1),((ve=re.analyzeSplitToContent(r,"&"))==null?void 0:ve.length)>1&&(na==null?void 0:na.length)<2&&(Fe="",u="",na=re.analyzeSplitToContent(r,")")),na!=null&&na.some(Re=>(Re==null?void 0:Re[0])===":")){let Re=(ke=na==null?void 0:na.filter(Ie=>(Ie==null?void 0:Ie[0])===":"))==null?void 0:ke.join("");C=Re==null?void 0:Re.slice(1,Re==null?void 0:Re.length),na=na==null?void 0:na.filter(Ie=>(Ie==null?void 0:Ie[0])!==":")}(na==null?void 0:na.length)>0&&((Be=re.chunkArray(na))==null||Be.forEach(Re=>{var $a,wl,el,Pl,bl;let Ie="",Je=[],Ne="";(Re==null?void 0:Re.length)>1&&(Ne="@"+(Re==null?void 0:Re[0]),Ne=vn(Ne));let _e=(Re==null?void 0:Re.length)===1?Re==null?void 0:Re[0]:Re==null?void 0:Re[1];_e=_e==null?void 0:_e.slice(1,_e==null?void 0:_e.length),Ie=(wl=($a=_e==null?void 0:_e.replace("(",yl))==null?void 0:$a.split(yl))==null?void 0:wl[0],_e=(Pl=(el=_e==null?void 0:_e.replace("(",yl))==null?void 0:el.split(yl))==null?void 0:Pl[1],_e=_e==null?void 0:_e.slice(0,(_e==null?void 0:_e.length)-1),Je=(bl=re.analyzeSplitToContent(_e,","))==null?void 0:bl.map(Hl=>((Hl==null?void 0:Hl[(Hl==null?void 0:Hl.length)-1])===","&&(Hl=Hl==null?void 0:Hl.slice(0,(Hl==null?void 0:Hl.length)-1)),Hl)),y.push({functionName:Ie,functionRelatedWords:Je,calculatorFilter:Ne})})),Fe=Ts(Fe),Ye=Ts(Ye);let fa=Fe??"";if(fa!==""&&(fa=fa+","),fa=fa+Ye,(fa==null?void 0:fa[(fa==null?void 0:fa.length)-1])===","&&(fa=fa==null?void 0:fa.slice(0,(fa==null?void 0:fa.length)-1)),fa!==""&&p!==""&&(p=p+","),p=p+fa,(u==null?void 0:u[0])==="$"&&(u=u==null?void 0:u.slice(1,u==null?void 0:u.length)),u=(We=re.analyzeSplitToContent(u,":"))==null?void 0:We.filter((Re,Ie)=>{var Je;return!((Re==null?void 0:Re[0])==="{"&&Ie===((Je=re.analyzeSplitToContent(u,":"))==null?void 0:Je.length)-1)}),u=u==null?void 0:u.join(""),(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)),p!=null&&p.includes("@Sync")||(p=p===""?p+"@Sync=(Yes,Yes)":p+",@Sync=(Yes,Yes)"),u!=null&&u.includes("$")){let Re=(I=(he=u==null?void 0:u.replace("*",yl))==null?void 0:he.split(yl))==null?void 0:I[1],Ie=(oe=(Oe=u==null?void 0:u.replace("*",yl))==null?void 0:Oe.split(yl))==null?void 0:oe[0];Ie=Ie==null?void 0:Ie.split("$"),Ie=((xe=(ge=Ie==null?void 0:Ie[0])==null?void 0:ge.split(":"))==null?void 0:xe[0])+":"+(Ie==null?void 0:Ie[1])+":",u=Ie+"*"+Re}else u=(ne=u==null?void 0:u.replaceAll("{",""))==null?void 0:ne.replaceAll("}","");(u==null?void 0:u[0])===":"&&(C=u==null?void 0:u.slice(1,u==null?void 0:u.length),u="")}p!==""&&p&&(p="("+p+")"),p=u+p,((we=re.analyzeSplitToContent(s,"}"))==null?void 0:we.length)>1&&(s=(Ke=re.analyzeSplitToContent(s,"}"))==null?void 0:Ke.filter(Fe=>(Fe==null?void 0:Fe[0])!=="@"),s=s==null?void 0:s.join(""));let T=Bp(s,l);o=s===""?[]:(T==null?void 0:T.columns)??[],d=re.getColumnChild(o);let j=re.getColumnChild(o);o!=null&&o.some(Fe=>{var ie;return Array.isArray(Fe==null?void 0:Fe.children)&&((ie=Fe==null?void 0:Fe.children)==null?void 0:ie.length)>0})&&(o=[o]),i=C?Ri(C):[],!(i!=null&&i.every(Fe=>Array.isArray(Fe)))&&(i==null?void 0:i.length)>0&&(i=[i]),(i==null?void 0:i.length)>0&&(Array.isArray(i==null?void 0:i[0])&&((ya=i==null?void 0:i[0])!=null&&ya.every(Fe=>Array.isArray(Fe)))?i=i==null?void 0:i.map((Fe,ie)=>(Fe=Fe.map((Ye,na)=>(Ye.unshift("{}"),Ye.unshift((na+1).toString()),Ye)),Fe)):i=i==null?void 0:i.map((Fe,ie)=>(Fe.unshift("{}"),Fe.unshift((ie+1).toString()),Fe))),T!=null&&T.secondColumns&&((Ge=T==null?void 0:T.secondColumns)==null?void 0:Ge.length)>0&&((i==null?void 0:i.length)>0?i=i==null?void 0:i.map((Fe,ie)=>{var Ye,na;return Array.isArray(Fe==null?void 0:Fe[0])?Fe=Fe==null?void 0:Fe.map((fa,Re)=>{var Ie,Je;return fa.unshift((Je=(Ie=T==null?void 0:T.secondColumns)==null?void 0:Ie[Re])==null?void 0:Je.prop),fa}):Fe.unshift((na=(Ye=T==null?void 0:T.secondColumns)==null?void 0:Ye[ie])==null?void 0:na.prop),Fe}):i=(V=T==null?void 0:T.secondColumns)==null?void 0:V.map((Fe,ie)=>(Fe=[Fe==null?void 0:Fe.label],Fe.push(ie),Fe)),o.unshift({label:"",prop:"disabled",sortable:!1})),d=d==null?void 0:d.map(Fe=>{var ie,Ye;return{menus:Fe==null?void 0:Fe.menus,content:((ie=Fe==null?void 0:Fe.menus)==null?void 0:ie.join("/"))+yl+((Ye=Fe==null?void 0:Fe.groups)==null?void 0:Ye.join("/"))}});let D=[];if(((le=(F=p==null?void 0:p.replace("(",yl))==null?void 0:F.split(yl))==null?void 0:le[0])!==""&&(D=(be=(fe=p==null?void 0:p.replace("(",yl))==null?void 0:fe.split(yl))==null?void 0:be[0],D=[D],D=D==null?void 0:D.map(Fe=>{var Ye,na,fa;let ie=Fe==null?void 0:Fe.split("*");return{menus:(Ye=ie==null?void 0:ie[0])==null?void 0:Ye.split(":"),content:((na=ie==null?void 0:ie[0])==null?void 0:na.replaceAll(":","/"))+yl+((fa=ie==null?void 0:ie[1])==null?void 0:fa.replaceAll(":","/"))}}),d=[...d,...D]),d=d==null?void 0:d.filter(Fe=>{var ie;return(Fe==null?void 0:Fe.menus)&&((ie=Fe==null?void 0:Fe.menus)==null?void 0:ie.length)>0}),d=d==null?void 0:d.map(Fe=>Fe==null?void 0:Fe.content),d=[...new Set(d)],d=d==null?void 0:d.map(Fe=>{var ie,Ye;return{menus:(ie=Fe==null?void 0:Fe.split(yl))==null?void 0:ie[0],groups:((Ye=Fe==null?void 0:Fe.split(yl))==null?void 0:Ye[1])??[]}}),b=j==null?void 0:j.filter(Fe=>{var ie;return(Fe==null?void 0:Fe.filter)&&((ie=Fe==null?void 0:Fe.filter)==null?void 0:ie.includes("@Sync"))}),(b==null?void 0:b.length)>0&&(b=b==null?void 0:b.filter(Fe=>{var ie,Ye,na,fa;return(fa=(na=(Ye=(ie=re.analyzeSplitToContent(Fe==null?void 0:Fe.filter,","))==null?void 0:ie.find(Re=>Re==null?void 0:Re.includes("@Sync")))==null?void 0:Ye.split(","))==null?void 0:na[0])==null?void 0:fa.includes("Yes")}),b=Cs(b)),g=j==null?void 0:j.filter(Fe=>{var ie;return(Fe==null?void 0:Fe.filter)&&((ie=Fe==null?void 0:Fe.filter)==null?void 0:ie.includes("@Sync"))}),(g==null?void 0:g.length)>0&&(g=g==null?void 0:g.filter(Fe=>{var ie,Ye,na,fa;return(fa=(na=(Ye=(ie=re.analyzeSplitToContent(Fe==null?void 0:Fe.filter,","))==null?void 0:ie.find(Re=>Re==null?void 0:Re.includes("@Sync")))==null?void 0:Ye.split(","))==null?void 0:na[1])==null?void 0:fa.includes("Yes")}),g=Cs(g)),p!==""&&(p!=null&&p.includes("@Sync"))&&(p==null?void 0:p[0])!=="("){let Fe=(ua=p==null?void 0:p.replace("(",yl))==null?void 0:ua.split(yl),ie=Fe==null?void 0:Fe[1];if(ie=ie==null?void 0:ie.slice(0,(ie==null?void 0:ie.length)-1),ie=re.analyzeSplitToContent(ie,","),(va=(Pe=(ia=ie==null?void 0:ie.find(Ye=>Ye==null?void 0:Ye.includes("@Sync")))==null?void 0:ia.split(","))==null?void 0:Pe[0])!=null&&va.includes("Yes")){let Ye=Fe==null?void 0:Fe[0];Ye=[{menus:(Ae=(Ea=Ye==null?void 0:Ye.split("*"))==null?void 0:Ea[0])==null?void 0:Ae.replaceAll(":","/"),groups:((Ta=(Fa=Ye==null?void 0:Ye.split("*"))==null?void 0:Fa[1])==null?void 0:Ta.split(":"))??[]}],b=[...b,...Ye]}if((sa=(Ha=(da=ie==null?void 0:ie.find(Ye=>Ye==null?void 0:Ye.includes("@Sync")))==null?void 0:da.split(","))==null?void 0:Ha[1])!=null&&sa.includes("Yes")){let Ye=Fe==null?void 0:Fe[0];Ye=[{menus:(ha=(He=Ye==null?void 0:Ye.split("*"))==null?void 0:He[0])==null?void 0:ha.replaceAll(":","/"),groups:(($e=(ea=Ye==null?void 0:Ye.split("*"))==null?void 0:ea[1])==null?void 0:$e.split(":"))??[]}],g=[...g,...Ye]}}return{groupName:n,tableColumns:o,tableFilter:p,tableContents:i,columns:(T==null?void 0:T.secondColumns)??[],relatedQuotes:d,fatherSyncContents:b,sonSyncContents:g,calculatorFilters:y}},Bc=(a,l)=>(a=a==null?void 0:a.map((r,n)=>{var i,o,p,s;if(Array.isArray(r))r=r==null?void 0:r.map(u=>{var y,b,g,d;return u!=null&&u.isMainPath||(((y=u==null?void 0:u.children)==null?void 0:y.length)>0?u.children=Bc(u.children,l):((b=u==null?void 0:u.menus)==null?void 0:b.length)>0&&!((g=r==null?void 0:r[0])!=null&&g.isMainPath)&&(u.menus=(d=u.menus)==null?void 0:d.map((C,v)=>{var H,T;return((H=u.menus)==null?void 0:H.length)-1===v&&C===""&&(l==null?void 0:l.parentContent)+"/"!==((T=u.menus)==null?void 0:T.join("/"))&&(C=l==null?void 0:l.value),u}),u.bindMenus=u.menus)),u});else{if(n===0&&((i=r.menus)==null?void 0:i.length)>0&&(r.mainKey=!0),r!=null&&r.isMainPath)return r;((o=r.menus)==null?void 0:o.length)>0&&!((p=a==null?void 0:a[0])!=null&&p.isMainPath)&&(r.menus=(s=r.menus)==null?void 0:s.map((u,y)=>{var b,g;return((b=r.menus)==null?void 0:b.length)-1===y&&u===""&&(l==null?void 0:l.parentContent)+"/"!==((g=r.menus)==null?void 0:g.join("/"))&&(u=l==null?void 0:l.value),u}),r.bindMenus=r.menus)}return r}),a),Dp=(a,l)=>(a=a==null?void 0:a.map(r=>((r==null?void 0:r.key)==="header"&&(r.contents=Bc(r.contents,l)),r)),a),Dt=(a,l)=>{let r=a;return Array.isArray(r==null?void 0:r[0])?r=r==null?void 0:r.map(n=>(n=Dt(n,l),n)):r=r==null?void 0:r.map(n=>{var i,o;return n!=null&&n.children&&((i=n==null?void 0:n.children)==null?void 0:i.length)>0?n.children=Dt(n==null?void 0:n.children,l):n!=null&&n.words&&((o=n==null?void 0:n.words)==null?void 0:o.length)>0&&(l!=null&&l.find(p=>{var s,u,y,b;return((b=(s=n==null?void 0:n.prop)==null?void 0:s.split("."))==null?void 0:b[((y=(u=n==null?void 0:n.prop)==null?void 0:u.split("."))==null?void 0:y.length)-1])===p}))&&(n.mainKey=!0),n}),r};let Ar="$R";const Np=R.useUnit(R.pinia),{selectTitle:xn}=R.storeToRefs(Np),Ap=R.useMenuState(R.pinia),{localFiles:zp}=R.storeToRefs(Ap),Mp=R.useLoginState(R.pinia),{loginUserInfo:xt}=R.storeToRefs(Mp),Mn=[{key:"@MaxRow",value:"onNumSlice",order:1},{key:"@MaxColumn",value:"onMaxColumn",order:1},{key:"@EditRead",value:"onEditRead",order:1},{key:"@ShowHide",value:"onShowHide",order:1},{key:"@Type",value:"onRandomContents",order:2},{key:"@SubType",value:"onInterfaceTypeContents",order:2},{key:"@If",value:"onConditionContents",order:4},{key:"@QuoteFatherSync",value:"onFatherPaceContents",order:1},{key:"@QuoteSonSync",value:"onPaceContents",order:1},{key:"@MainParam",value:"onMainTagContents",order:3},{key:"@Button",value:"onButtonContents",order:1},{key:"@Related",value:"onRelated",order:1},{key:"@RowNum",value:"onRowNum",order:1},{key:"@FixColumn",value:"onFixRow",order:1},{key:"@ReqItem",value:"onReqItem",order:1},{key:"@Condition",value:"onConditionContent",order:1},{key:"@Tab",value:"onTabs",order:1},{key:"@SinChoice",value:"onSinChoice",order:1},{key:"@TextSize",value:"onTextSize",order:1},{key:"@TextRGBA",value:"onTextRGBA",order:1},{key:"@TextBackRGBA",value:"onTextBackRGBA",order:1},{key:"@Position",value:"onPosition",order:4},{key:"@ColumnNum",value:"onColumnNum",order:4},{key:"@Size",value:"onSize",order:4},{key:"@ShowType",value:"onShowType",order:1},{key:"@StepName",value:"onStepName",order:1},{key:"@Step",value:"onStep",order:1},{key:"@BackGround",value:"onBackGround",order:1}];var mi=(a=>(a[a.ORDINARY=1]="ORDINARY",a[a.BLOCK=2]="BLOCK",a[a.TEXT=3]="TEXT",a))(mi||{});const Ip=async a=>{var r,n,i,o,p,s,u,y,b,g,d,C,v,H,T,j,D;let l=re.analyzeSplitToContent((a==null?void 0:a.filter)??"",")");if((l==null?void 0:l.length)>1){let _=l==null?void 0:l[0];_=_==null?void 0:_.slice(1,(_==null?void 0:_.length)-1),_=(n=(r=_==null?void 0:_.replace("(",Ar))==null?void 0:r.split(Ar))==null?void 0:n[1],_="("+((i=_==null?void 0:_.replaceAll("{",""))==null?void 0:i.replaceAll("}",""));let S=re.calculatorAndToOr(_),x=Object.keys(S==null?void 0:S[0]);if(_=S,((o=x==null?void 0:x[0])==null?void 0:o[0])==="$"){let k=(s=x==null?void 0:x[0])==null?void 0:s.slice(1,((p=x==null?void 0:x[0])==null?void 0:p.length)-1),E=(y=(u=k==null?void 0:k.split("*"))==null?void 0:u[0])==null?void 0:y.replaceAll(".","/"),M=(d=(g=(b=k==null?void 0:k.split("*"))==null?void 0:b[1])==null?void 0:g.split("."))==null?void 0:d[0],O=await qr(E,!1);O=(C=O==null?void 0:O.filter(U=>(U==null?void 0:U.name)===M))==null?void 0:C[0];let Q=(H=(v=O==null?void 0:O.compData)==null?void 0:v.find(U=>(U==null?void 0:U.key)==="tableContents"))==null?void 0:H.contents;_=_==null?void 0:_.map(U=>{var X,ee;let q={};for(let pe in U)if((pe==null?void 0:pe[0])==="$"){let ze=(ee=pe==null?void 0:pe.split("."))==null?void 0:ee[((X=pe==null?void 0:pe.split("."))==null?void 0:X.length)-1];q[ze]=U==null?void 0:U[pe]}else q[pe]=U==null?void 0:U[pe];return q});let J=(j=(T=O==null?void 0:O.compData)==null?void 0:T.find(U=>(U==null?void 0:U.key)==="header"))==null?void 0:j.contents;J=(D=re.getEqualChild(J))==null?void 0:D.filter(U=>(U==null?void 0:U.label)!=="操作");let te=re.tableToForm(Q,J);if(_==null||_.forEach(U=>{var q,X,ee,pe,ze;for(let ue in U)(U==null?void 0:U[ue])==="LoginUser"&&(U[ue]=((q=xt.value)==null?void 0:q.姓名)||((X=xt.value)==null?void 0:X.account)||((ee=xt.value)==null?void 0:ee.账号)),!((pe=te==null?void 0:te[0])!=null&&pe.find(N=>{var se;return(N==null?void 0:N.key)===ue||((se=N==null?void 0:N.key)==null?void 0:se.includes(ue))}))&&!(te!=null&&te.find(N=>{var se;return(N==null?void 0:N.key)===ue||((se=N==null?void 0:N.key)==null?void 0:se.includes(ue))}))||(((ze=U[ue])==null?void 0:ze[0])!=="!"?te=te==null?void 0:te.filter(N=>{var se,G;return((se=N==null?void 0:N.find(ve=>{var ke;return(ve==null?void 0:ve.key)===ue||((ke=ve==null?void 0:ve.key)==null?void 0:ke.includes(ue))}))==null?void 0:se.value)===U[ue]||Array.isArray(U==null?void 0:U[ue])&&((G=U==null?void 0:U[ue])==null?void 0:G.find(ve=>{var ke;return((ke=N==null?void 0:N.find(Be=>{var We;return(Be==null?void 0:Be.key)===ue||((We=Be==null?void 0:Be.key)==null?void 0:We.includes(ue))}))==null?void 0:ke.value)===ve}))}):te=te==null?void 0:te.filter(N=>{var se;return((se=N==null?void 0:N.find(G=>{var ve;return(G==null?void 0:G.key)===ue||((ve=G==null?void 0:G.key)==null?void 0:ve.includes(ue))}))==null?void 0:se.value)!==U[ue]}))}),(te==null?void 0:te.length)===0){let U=a==null?void 0:a.contents;return U.push({key:"hideContents",contents:!0}),U}}}return a==null?void 0:a.contents},Op=a=>{if((a==null?void 0:a.filter)!==void 0&&(a==null?void 0:a.filter)!==null&&(a==null?void 0:a.filter)!==""){let l=a==null?void 0:a.contents;return l.push({key:"textBackRGBA",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},Lp=a=>{var l,r,n,i,o;if((a==null?void 0:a.filter)!==void 0&&(a==null?void 0:a.filter)!==null&&(a==null?void 0:a.filter)!==""){let p=a==null?void 0:a.contents,s=a==null?void 0:a.filter;(s==null?void 0:s[0])==="("&&(s=s==null?void 0:s.slice(1,(s==null?void 0:s.length)-1)),s=(l=re.analyzeSplitToContent(s,","))==null?void 0:l.map(g=>((g==null?void 0:g[(g==null?void 0:g.length)-1])===","&&(g=g==null?void 0:g.slice(0,(g==null?void 0:g.length)-1)),g));let u=(s==null?void 0:s[2])??"Center",y=(s==null?void 0:s[0])??"Picture";s=s==null?void 0:s[1],(s==null?void 0:s[0])==="("&&(s=s==null?void 0:s.slice(1,(s==null?void 0:s.length)-1)),s=(r=re.analyzeSplitToContent(s,","))==null?void 0:r.map(g=>((g==null?void 0:g[(g==null?void 0:g.length)-1])===","&&(g=g==null?void 0:g.slice(0,(g==null?void 0:g.length)-1)),g));let b=(o=(i=(n=zp.value)==null?void 0:n.filter(g=>{var d;return(g==null?void 0:g.path)===((d=a==null?void 0:a.groupName)==null?void 0:d[0])}))==null?void 0:i[0])==null?void 0:o.children;return b=(b==null?void 0:b.filter(g=>s==null?void 0:s.find(d=>d===(g==null?void 0:g.name))))??[],(s==null?void 0:s.length)>0&&(b==null?void 0:b.length)===0&&(s==null||s.forEach(g=>{b.push({url:"file:///"+(g==null?void 0:g.replaceAll("\\","/"))})})),b[0]={...b==null?void 0:b[0],position:u,fileType:y},p.push({key:"backGround",contents:b}),p}return a==null?void 0:a.contents},Rp=a=>{const l=Nc(a==null?void 0:a.filter);return l?ff(a==null?void 0:a.contents,{position:l}):a==null?void 0:a.contents},$p=a=>{let l=parseInt(a==null?void 0:a.filter);l=1/l;let r=a==null?void 0:a.contents;return r.push({key:"rowPosition",contents:l}),r},Vp=a=>{const l=Nc(a==null?void 0:a.filter);if(!l)return a==null?void 0:a.contents;let r=a==null?void 0:a.contents;return r.push({key:"numPosition",contents:l}),r},Fp=a=>{if((a==null?void 0:a.filter)!==void 0&&(a==null?void 0:a.filter)!==null&&(a==null?void 0:a.filter)!==""){let l=a==null?void 0:a.contents;const r=Number(a==null?void 0:a.filter);return l.push({key:"textSize",contents:Number.isNaN(r)?a==null?void 0:a.filter:r}),l}return a==null?void 0:a.contents},Pp=a=>{if((a==null?void 0:a.filter)!==void 0&&(a==null?void 0:a.filter)!==null&&(a==null?void 0:a.filter)!==""){let l=a==null?void 0:a.contents;return l.push({key:"textRGBA",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},Hp=a=>{var r;return(a==null?void 0:a.filter.toUpperCase())==="ALL"||(a==null?void 0:a.filter.toUpperCase())==="NONE"?a==null?void 0:a.contents:(r=a==null?void 0:a.contents)==null?void 0:r.map(n=>{var i;return(n==null?void 0:n.key)==="tableContents"&&(n.contents=(i=n.contents)==null?void 0:i.slice(0,parseInt(a==null?void 0:a.filter))),n})},jp=async a=>{var l,r,n,i,o,p,s,u,y,b,g,d,C,v,H,T,j,D,_,S,x,k,E,M,O,Q,J,ye,te,U;if((a==null?void 0:a.filter)==="Random")return(l=a==null?void 0:a.contents)==null?void 0:l.map(X=>((X==null?void 0:X.key)==="tableContents"&&(X.contents=re.shuffle(X.contents)),X));if((a==null?void 0:a.filter)==="Auto"){let q=(n=(r=a==null?void 0:a.contents)==null?void 0:r.find(ve=>(ve==null?void 0:ve.key)==="header"))==null?void 0:n.contents;Array.isArray(q==null?void 0:q[0])&&(q=q==null?void 0:q[0]),q=re.getColumnChild(q);let X=q==null?void 0:q.filter(ve=>(ve==null?void 0:ve.filter)&&(ve==null?void 0:ve.filter)!==""),ee=new Map,pe=[];X==null||X.forEach(ve=>{var ke,Be;ee.get((ke=ve==null?void 0:ve.menus)==null?void 0:ke.join("/"))||(ee.set((Be=ve==null?void 0:ve.menus)==null?void 0:Be.join("/"),ve),pe.push(ve))});let ze=(o=(i=xn==null?void 0:xn.value)==null?void 0:i.find(ve=>(ve==null?void 0:ve.condition)==="child"))==null?void 0:o.value,ue=pe==null?void 0:pe.map(ve=>{var ke,Be,We;return ve=(ke=ve==null?void 0:ve.menus)==null?void 0:ke.join("/"),(ve==null?void 0:ve[(ve==null?void 0:ve.length)-1])==="/"&&((We=(Be=xn==null?void 0:xn.value)==null?void 0:Be.find(he=>(he==null?void 0:he.condition)==="child"))==null?void 0:We.parentContent)+"/"!==ve?ve=ve+ze:(ve==null?void 0:ve[(ve==null?void 0:ve.length)-1])==="/"&&(ve=ve==null?void 0:ve.slice(0,(ve==null?void 0:ve.length)-1)),ve}),N=pe==null?void 0:pe.map(ve=>ve==null?void 0:ve.groups),se=ue==null?void 0:ue.map(async ve=>{let ke=await qr(ve,!1);return{path:ve,contents:ke}});se=await Promise.all(se);let G=se==null?void 0:se.map((ve,ke)=>{var We,he,I,Oe,oe,ge,xe;let Be=(We=ve==null?void 0:ve.contents)==null?void 0:We.filter(ne=>{var we,Ke;return(ne==null?void 0:ne.name)===((Ke=N==null?void 0:N[ke])==null?void 0:Ke[((we=N==null?void 0:N[ke])==null?void 0:we.length)-1])});return Be=(Oe=(I=(he=Be==null?void 0:Be[0])==null?void 0:he.compData)==null?void 0:I.find(ne=>(ne==null?void 0:ne.key)==="tableContents"))==null?void 0:Oe.contents,(ve==null?void 0:ve.path)===((ge=(oe=xn==null?void 0:xn.value)==null?void 0:oe.find(ne=>(ne==null?void 0:ne.condition)==="child"))==null?void 0:ge.parentContent)&&(Be=((xe=Be==null?void 0:Be.map(ne=>{for(let we in ne)if(ne[we]===ze)return ne}))==null?void 0:xe.filter(ne=>ne))??[]),Be??[]});if(G=G==null?void 0:G.map(ve=>(ve=ve==null?void 0:ve.map(ke=>{var We;let Be={};for(let he in ke)if(X!=null&&X.find(I=>{var Oe,oe;return((oe=(Oe=I==null?void 0:I.words)==null?void 0:Oe[0])==null?void 0:oe.replaceAll("'",""))===he})){let I=(We=X==null?void 0:X.find(Oe=>{var oe,ge;return((ge=(oe=Oe==null?void 0:Oe.words)==null?void 0:oe[0])==null?void 0:ge.replaceAll("'",""))===he}))==null?void 0:We.prop;Be[I]=ke==null?void 0:ke[he]}return Be}),ve)),G=re.cartesianProduct(G),Array.isArray(G==null?void 0:G[0])&&(G=G==null?void 0:G[0]),(G==null?void 0:G.length)>0&&((g=(s=(p=X==null?void 0:X[0])==null?void 0:p.menus)==null?void 0:s.join("/"))==null?void 0:g[((b=(y=(u=X==null?void 0:X[0])==null?void 0:u.menus)==null?void 0:y.join("/"))==null?void 0:b.length)-1])==="/")return(d=a==null?void 0:a.contents)==null?void 0:d.map(ke=>{var Be;return(ke==null?void 0:ke.key)==="tableContents"&&(G==null?void 0:G.length)>0&&(ke.contents=((Be=ke.contents)==null?void 0:Be.length)>0?ke.contents:G),ke})}if((a==null?void 0:a.filter)==="Manual"){let q=[],X=[],ee=(v=(C=a==null?void 0:a.contents)==null?void 0:C.find(N=>(N==null?void 0:N.key)==="filter"))==null?void 0:v.contents;(ee==null?void 0:ee[(ee==null?void 0:ee.length)-1])===")"?ee=(T=(H=ee==null?void 0:ee.replace("(",Ar))==null?void 0:H.split(Ar))==null?void 0:T[0]:ee="",ee!==""&&(q=((D=(j=ee==null?void 0:ee.split("*"))==null?void 0:j[0])==null?void 0:D.split(":"))??[],X=((E=(k=(x=(S=(_=ee==null?void 0:ee.split("*"))==null?void 0:_[1])==null?void 0:S.replace("{",Ar))==null?void 0:x.split(Ar))==null?void 0:k[0])==null?void 0:E.split(":"))??[]);let pe=(O=(M=a==null?void 0:a.contents)==null?void 0:M.find(N=>(N==null?void 0:N.key)==="filter"))==null?void 0:O.contents;pe=(J=(Q=pe==null?void 0:pe.replace("(",Ar))==null?void 0:Q.split(Ar))==null?void 0:J[1],pe=pe==null?void 0:pe.slice(0,(pe==null?void 0:pe.length)-1);let ze=(ye=a==null?void 0:a.contents)==null?void 0:ye.map(N=>{var se,G,ve,ke,Be,We,he,I,Oe;return(N==null?void 0:N.key)==="header"&&((se=N==null?void 0:N.contents)!=null&&se.every(oe=>(oe==null?void 0:oe.mainKey)!==!0)&&Array.isArray(N==null?void 0:N.contents)&&!Array.isArray((G=N==null?void 0:N.contents)==null?void 0:G[0])?N.contents=(ve=N==null?void 0:N.contents)==null?void 0:ve.map((oe,ge)=>{var xe,ne,we;return oe!=null&&oe.isMainPath||(ge===0?(oe.mainKey=!0,oe.formType="Select",oe.bindMenus=q,oe.groups=((xe=oe.groups)==null?void 0:xe.length)===0?X:oe.groups,oe.words=((ne=oe.words)==null?void 0:ne.length)===0?[oe==null?void 0:oe.prop]:oe.words,oe.filter=pe,(!(oe!=null&&oe.menus)||((we=oe==null?void 0:oe.menus)==null?void 0:we.length)===0)&&(oe.menus=q)):(oe.mainKey=!1,oe.bindMenus=q)),oe}):Array.isArray((ke=N==null?void 0:N.contents)==null?void 0:ke[0])&&((he=(We=(Be=N==null?void 0:N.contents)==null?void 0:Be[0])==null?void 0:We.filter(()=>(q==null?void 0:q.length)>0))==null?void 0:he.length)>0&&(N.contents[0]=(Oe=(I=N==null?void 0:N.contents)==null?void 0:I[0])==null?void 0:Oe.map((oe,ge)=>{var xe,ne,we;return oe!=null&&oe.isMainPath||(ge===0?(oe.mainKey=!0,oe.formType="Select",oe.bindMenus=q,oe.groups=((xe=oe.groups)==null?void 0:xe.length)===0?X:oe.groups,oe.words=((ne=oe.words)==null?void 0:ne.length)===0?[oe==null?void 0:oe.prop]:oe.words,oe.filter=pe,(!(oe!=null&&oe.menus)||Array.isArray(oe==null?void 0:oe.menus)&&((we=oe==null?void 0:oe.menus)==null?void 0:we.length)===0)&&(q==null?void 0:q.length)>0&&(oe.menus=q)):(oe.mainKey=!1,oe.bindMenus=q)),oe}))),N}),ue=(te=ze==null?void 0:ze.find(N=>(N==null?void 0:N.key)==="header"))==null?void 0:te.contents;if(Array.isArray(ue==null?void 0:ue[0])&&(ue=ue==null?void 0:ue[0]),ue=re.getColumnChild(ue),ue!=null&&ue.some(N=>{var se,G;return((G=N==null?void 0:N.menus)==null?void 0:G[((se=N==null?void 0:N.menus)==null?void 0:se.length)-1])===""})){let N=(U=xn==null?void 0:xn.value)==null?void 0:U.find(se=>(se==null?void 0:se.condition)==="child");ze=Dp(ze,N)}return ze}if((a==null?void 0:a.filter)==="Chart"){let q=a==null?void 0:a.contents;return q.push({key:"newType",contents:"Chart"}),q}if((a==null?void 0:a.filter)==="Carousel"){let q=a==null?void 0:a.contents;return q.push({key:"newType",contents:"Carousel"}),q}return a==null?void 0:a.contents},Up=a=>{if((a==null?void 0:a.filter)==="Ordin"){let l=a==null?void 0:a.contents;return l.push({key:"enableWrap",contents:1}),l}if((a==null?void 0:a.filter)==="Block"){let l=a==null?void 0:a.contents;return l.push({key:"enableWrap",contents:2}),l}if((a==null?void 0:a.filter)==="Text"){let l=a==null?void 0:a.contents;return l.push({key:"enableWrap",contents:3}),l}if((a==null?void 0:a.filter)==="Bar"||(a==null?void 0:a.filter)==="Pie"||(a==null?void 0:a.filter)==="Line"||(a==null?void 0:a.filter)==="Histogram"||(a==null?void 0:a.filter)==="Scatter"){let l=a==null?void 0:a.contents;return l.push({key:"ChartType",contents:{type:a==null?void 0:a.filter,title:""}}),l}if((a==null?void 0:a.filter)==="Frameless"){let l=a==null?void 0:a.contents;return l.push({key:"TableType",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},qp=a=>{var n,i,o,p,s,u,y,b,g,d,C,v;let l=a==null?void 0:a.filter;if(l!=null&&l.includes("*")&&(l="({"+((i=(n=l==null?void 0:l.replace(":",Ar))==null?void 0:n.split(Ar))==null?void 0:i[1])),l=(o=l==null?void 0:l.replaceAll("{",""))==null?void 0:o.replaceAll("}",""),(s=(p=l==null?void 0:l.split("="))==null?void 0:p[1])!=null&&s.includes("$")){(l==null?void 0:l[0])==="("&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1));let H=(u=l==null?void 0:l.split("="))==null?void 0:u[0],T=(y=l==null?void 0:l.split("="))==null?void 0:y[1];(b=T==null?void 0:T.slice(1,T==null?void 0:T.length))!=null&&b.includes("$")&&(T=(C=(d=(g=xn==null?void 0:xn.value)==null?void 0:g.filter(j=>(j==null?void 0:j.condition)==="child"))==null?void 0:d[0])==null?void 0:C.value),l=H+"="+T}if((l==null?void 0:l[0])!=="("&&(l="("+l+")"),l.slice(1,(l==null?void 0:l.length)-1)==="undefined")return a==null?void 0:a.contents;let r=re.calculatorAndToOr(l);if((r==null?void 0:r.length)>0){let H=[];return r==null||r.forEach(j=>{let D={};for(let _ in j){let S=_;S!=null&&S.includes("[")||(D[S]=j[_])}H.push(D)}),(v=a==null?void 0:a.contents)==null?void 0:v.map(j=>{var _,S,x;let D=(S=(_=a==null?void 0:a.contents)==null?void 0:_.find(k=>(k==null?void 0:k.key)==="header"))==null?void 0:S.contents;if(D=(x=re.getEqualChild(D))==null?void 0:x.filter(k=>(k==null?void 0:k.label)!=="操作"),(j==null?void 0:j.key)==="tableContents"){let E=re.tableToForm(j==null?void 0:j.contents,D);H==null||H.forEach(M=>{var O,Q;for(let J in M)!((O=E==null?void 0:E[0])!=null&&O.find(ye=>{var te;return(ye==null?void 0:ye.key)===J||((te=ye==null?void 0:ye.key)==null?void 0:te.includes(J))}))&&!(E!=null&&E.find(ye=>{var te;return(ye==null?void 0:ye.key)===J||((te=ye==null?void 0:ye.key)==null?void 0:te.includes(J))}))||(((Q=M[J])==null?void 0:Q[0])!=="!"?E=E==null?void 0:E.filter(ye=>{var te,U;return((te=ye==null?void 0:ye.find(q=>{var X;return(q==null?void 0:q.key)===J||((X=q==null?void 0:q.key)==null?void 0:X.includes(J))}))==null?void 0:te.value)===M[J]||Array.isArray(M==null?void 0:M[J])&&((U=M==null?void 0:M[J])==null?void 0:U.find(q=>{var X;return((X=ye==null?void 0:ye.find(ee=>{var pe;return(ee==null?void 0:ee.key)===J||((pe=ee==null?void 0:ee.key)==null?void 0:pe.includes(J))}))==null?void 0:X.value)===q}))}):E=E==null?void 0:E.filter(ye=>{var te;return((te=ye==null?void 0:ye.find(U=>{var q;return(U==null?void 0:U.key)===J||((q=U==null?void 0:U.key)==null?void 0:q.includes(J))}))==null?void 0:te.value)!==(M[J]==="!"?"":M==null?void 0:M[J])}))}),(E==null?void 0:E.length)===0?j.contents=[]:j.contents=E==null?void 0:E.map(M=>{let O={};return M==null||M.forEach(Q=>{O[Q==null?void 0:Q.key]=Q==null?void 0:Q.value}),O})}return j})}return a==null?void 0:a.contents},Wp=a=>a==null?void 0:a.contents,Gp=a=>a==null?void 0:a.contents,Kp=a=>{var l,r,n,i;if((a==null?void 0:a.filter)!==""&&(a!=null&&a.filter)){let o=(n=(r=a==null?void 0:a.filter)==null?void 0:r.slice(1,((l=a==null?void 0:a.filter)==null?void 0:l.length)-1))==null?void 0:n.split(",");return(i=a==null?void 0:a.contents)==null?void 0:i.map(s=>((s==null?void 0:s.key)==="header"&&(s.contents=Dt(s.contents,o)),s))}return a==null?void 0:a.contents},Yp=a=>{var r,n,i,o,p;let l=(a==null?void 0:a.filter)??"";if(l!==""){let s=(n=(r=l==null?void 0:l.replace("(",Ar))==null?void 0:r.split(Ar))==null?void 0:n[1];s=s==null?void 0:s.slice(0,(s==null?void 0:s.length)-1),(s==null?void 0:s[(s==null?void 0:s.length)-1])===")"&&(s=s==null?void 0:s.slice(1,(s==null?void 0:s.length)-1)),s=(i=re.analyzeSplitToContent(s,","))==null?void 0:i.map(g=>((g==null?void 0:g[(g==null?void 0:g.length)-1])===","&&(g=g==null?void 0:g.slice(0,(g==null?void 0:g.length)-1)),g));let u=s==null?void 0:s[0];(u==null?void 0:u[0])==="("&&(u=u==null?void 0:u.slice(1,(u==null?void 0:u.length)-1));let y=(s==null?void 0:s[1])??"Up",b=(o=a==null?void 0:a.contents)==null?void 0:o.map(g=>{var d,C;if(y==="Up"){if((g==null?void 0:g.key)==="extraButton"){let v=(d=u==null?void 0:u.split(","))==null?void 0:d.map(H=>({label:H,prop:H}));g.contents=[...v??[],...g.contents]}}else if(y==="Line"&&(g==null?void 0:g.key)==="rowButton"){let v=(C=u==null?void 0:u.split(","))==null?void 0:C.map(H=>({label:H,prop:H}));g.contents=[...v??[],...g.contents]}return g});if(y==="Bottom"||y==="Down"){let g=(p=u==null?void 0:u.split(","))==null?void 0:p.map(d=>({label:d,prop:d}));b.push({key:"bottomButton",contents:g})}return b}return a==null?void 0:a.contents},Jp=a=>a==null?void 0:a.contents,Xp=a=>{var r;let l=(a==null?void 0:a.filter)??"";return(l==null?void 0:l[0])==="{"&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1)),l!==""?(r=a==null?void 0:a.contents)==null?void 0:r.map(i=>{var o;return(i==null?void 0:i.key)==="rowButton"&&(i.contents=(o=l==null?void 0:l.split(","))==null?void 0:o.map(p=>({label:p,prop:p}))),i}):a==null?void 0:a.contents},Zp=a=>{var r;let l=(a==null?void 0:a.filter)??"";if((l==null?void 0:l[0])==="{"&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1)),l!==""){let n=a==null?void 0:a.contents,i=(r=l==null?void 0:l.split(","))==null?void 0:r.map(o=>({label:o,prop:o}));return n.push({key:"bottomButton",contents:i}),n}return a==null?void 0:a.contents},Qp=a=>{if((a==null?void 0:a.filter)==="Read"){let l=a==null?void 0:a.contents;return l=l==null?void 0:l.map(r=>{var n;return(r==null?void 0:r.key)==="formContent"&&(r.contents=(n=r.contents)==null?void 0:n.map(i=>(i.isNoClick=!0,i))),r}),l!=null&&l.find(r=>(r==null?void 0:r.key)==="tableContents")&&(l==null||l.push({key:"isEdit",contents:!1}),l=l==null?void 0:l.filter(r=>(r==null?void 0:r.key)!=="extraButton"&&(r==null?void 0:r.key)!=="rowButton")),l}return a==null?void 0:a.contents},ef=a=>{var l;if(a!=null&&a.filter){const r=parseInt(a==null?void 0:a.filter);return!r||Number.isNaN(r)?a==null?void 0:a.contents:(l=a==null?void 0:a.contents)==null?void 0:l.map(i=>{var o;return(i==null?void 0:i.key)==="formContent"&&(i.contents=(o=i.contents)==null?void 0:o.map(p=>(p.width=r,p))),i})}return a==null?void 0:a.contents},af=a=>{var l,r,n,i;if(((l=a==null?void 0:a.filter)==null?void 0:l[0])!=="["){const o=parseInt(a==null?void 0:a.filter);return!o||Number.isNaN(o)?a==null?void 0:a.contents:(r=a==null?void 0:a.contents)==null?void 0:r.map(s=>{var u;return(s==null?void 0:s.key)==="formContent"&&(s.contents=(u=s.contents)==null?void 0:u.map(y=>(y.width=o,y))),s})}if(((n=a==null?void 0:a.filter)==null?void 0:n[0])==="["){let o=Ri(a==null?void 0:a.filter),p=Array.isArray(o)?o.map(u=>parseInt(u)).filter(u=>!!u&&!Number.isNaN(u)):[];return p.length?(i=a==null?void 0:a.contents)==null?void 0:i.map(u=>{if((u==null?void 0:u.key)==="formContent"){const y=u.contents??[];u.contents=y.map((b,g)=>{const d=g+1;let C=0,v=0;for(let T=0;T<p.length;T++){if(v+=p[T],d<=v){C=T;break}T===p.length-1&&(C=p.length-1)}const H=p[C]||p[p.length-1]||1;return b.width=H,b})}return u}):a==null?void 0:a.contents}return a==null?void 0:a.contents},lf=a=>{var l;if((a==null?void 0:a.filter)!==""){let r=a==null?void 0:a.filter;return(r==null?void 0:r[0])==="("&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),r=r==null?void 0:r.split(","),(l=a==null?void 0:a.contents)==null?void 0:l.map(i=>{var o,p,s;return(i==null?void 0:i.key)==="header"&&(Array.isArray((o=i==null?void 0:i.contents)==null?void 0:o[0])?i.contents[0]=(s=i.contents[0])==null?void 0:s.map(u=>(r!=null&&r.find(y=>y===(u==null?void 0:u.prop))&&(u.fixed="left"),u)):i.contents=(p=i.contents)==null?void 0:p.map(u=>(r!=null&&r.find(y=>y===(u==null?void 0:u.prop))&&(u.fixed="left"),u))),i})}return a==null?void 0:a.contents},rf=a=>{var l;if((a==null?void 0:a.filter)!==""){let r=a==null?void 0:a.filter;(r==null?void 0:r[0])==="("&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),r=r==null?void 0:r.split(",");const n=o=>(r!=null&&r.find(p=>p===(o==null?void 0:o.prop))&&(o.required=!0),o!=null&&o.children&&Array.isArray(o.children)&&(o.children=o.children.map(p=>n(p))),o);return(l=a==null?void 0:a.contents)==null?void 0:l.map(o=>{var p,s,u;return(o==null?void 0:o.key)==="header"&&(Array.isArray((p=o==null?void 0:o.contents)==null?void 0:p[0])?o.contents[0]=(u=o.contents[0])==null?void 0:u.map(y=>n(y)):o.contents=(s=o.contents)==null?void 0:s.map(y=>n(y))),o})}return a==null?void 0:a.contents},nf=async a=>{var n,i,o,p,s,u,y,b,g,d,C,v,H,T,j,D,_;const l=R.useUnit(R.pinia),{chooseTitle:r}=R.storeToRefs(l);if((a==null?void 0:a.filter)==="true"){let S=await qr(((i=(n=r==null?void 0:r.value)==null?void 0:n[0])==null?void 0:i.parentContent)??((p=(o=r==null?void 0:r.value)==null?void 0:o[0])==null?void 0:p.relatedContent),!1),x=(u=(s=r==null?void 0:r.value)==null?void 0:s[0])==null?void 0:u.value;(b=(y=S==null?void 0:S[0])==null?void 0:y.compData)!=null&&b.find(O=>(O==null?void 0:O.key)==="header")?S=(g=S==null?void 0:S[0])==null?void 0:g.compData:S=(C=(d=S==null?void 0:S.filter(O=>{var Q;return(Q=O==null?void 0:O.compData)==null?void 0:Q.find(J=>(J==null?void 0:J.key)==="header")}))==null?void 0:d[0])==null?void 0:C.compData;let k=(v=S==null?void 0:S.find(O=>(O==null?void 0:O.key)==="header"))==null?void 0:v.contents;Array.isArray(k==null?void 0:k[0])&&(k=k==null?void 0:k[0]),k=((H=k==null?void 0:k.find(O=>O==null?void 0:O.isMainKey))==null?void 0:H.prop)??((T=k==null?void 0:k[0])==null?void 0:T.prop);let E=(D=(j=S==null?void 0:S.find(O=>(O==null?void 0:O.key)==="tableContents"))==null?void 0:j.contents)==null?void 0:D.find(O=>(O==null?void 0:O[k])===x);return(_=a==null?void 0:a.contents)==null?void 0:_.map(O=>{var Q;return(O==null?void 0:O.key)==="formContent"&&(O.contents=(Q=O.contents)==null?void 0:Q.map(J=>(J.value=E==null?void 0:E[J==null?void 0:J.prop],J))),O})}return a==null?void 0:a.contents},of=a=>{var l,r,n,i,o;if((l=a==null?void 0:a.extra)!=null&&l.row){let p=a==null?void 0:a.filter;if(p!=null&&p.includes("*")&&(p="({"+((n=(r=p==null?void 0:p.replace("{",Ar))==null?void 0:r.split(Ar))==null?void 0:n[1])),p=(i=p==null?void 0:p.replaceAll("{",""))==null?void 0:i.replaceAll("}",""),(p==null?void 0:p[0])!=="("&&(p="("+p+")"),p.slice(1,(p==null?void 0:p.length)-1)==="undefined")return a==null?void 0:a.contents;let s=re.calculatorAndToOr(p),u=s==null?void 0:s[0],y=(o=a==null?void 0:a.extra)==null?void 0:o.row,b=[];for(let g in u)(u==null?void 0:u[g])===(y==null?void 0:y[g])?b.push(!0):b.push(!1);return b!=null&&b.every(g=>g===!0)?a==null?void 0:a.contents:[]}else return a==null?void 0:a.contents},tf=a=>{if(a!=null&&a.filter){let l=a==null?void 0:a.contents;return l.push({key:"tab",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},sf=a=>{if(a!=null&&a.filter){let l=a==null?void 0:a.contents;return l.push({key:"choice",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},cf=a=>{if(a!=null&&a.filter){let l=a==null?void 0:a.contents;return l.push({key:"fixType",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},uf=a=>{var l;if(a!=null&&a.filter){let r=a==null?void 0:a.contents,n=a==null?void 0:a.filter;return(n==null?void 0:n[0])==="("&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n=(l=re.analyzeSplitToContent(n,","))==null?void 0:l.map(i=>((i==null?void 0:i[(i==null?void 0:i.length)-1])===","&&(i=i==null?void 0:i.slice(0,(i==null?void 0:i.length)-1)),i)),r.push({key:"stepName",contents:n}),r}return a==null?void 0:a.contents},df=a=>{if(a!=null&&a.filter){let l=a==null?void 0:a.contents;return l.push({key:"step",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},Dc={onNumSlice:Hp,onRandomContents:jp,onConditionContents:qp,onFatherPaceContents:Wp,onPaceContents:Gp,onMainTagContents:Kp,onButtonContents:Yp,onPamButtonContents:Jp,onRowButtonContents:Xp,onRelated:nf,onRowNum:af,onFixRow:lf,onReqItem:rf,onBottomButtonContents:Zp,onConditionContent:of,onTabs:tf,onSinChoice:sf,onTextSize:Fp,onTextRGBA:Pp,onTextBackRGBA:Op,onPosition:Rp,onColumnNum:$p,onSize:Vp,onShowType:cf,onStepName:uf,onStep:df,onInterfaceTypeContents:Up,onBackGround:Lp,onMaxColumn:ef,onEditRead:Qp,onShowHide:Ip},pf=async(a,l,r="")=>{var p,s,u,y,b,g,d,C,v,H,T,j;let n="";if(((p=a==null?void 0:a.find(D=>(D==null?void 0:D.key)==="filter"))==null?void 0:p.contents)!==""&&(n=(s=a==null?void 0:a.find(D=>(D==null?void 0:D.key)==="filter"))==null?void 0:s.contents),n===""||!n)return a;(n==null?void 0:n[0])==="("?n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1):(n=(y=(u=n==null?void 0:n.replace("(",Ar))==null?void 0:u.split(Ar))==null?void 0:y[1],n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1));let i=(b=re.analyzeSplitToContent(n,","))==null?void 0:b.map(D=>((D==null?void 0:D[(D==null?void 0:D.length)-1])===","&&(D=D==null?void 0:D.slice(0,(D==null?void 0:D.length)-1)),D!=null&&D.includes("(")||(D=D==null?void 0:D.replaceAll(":","=")),D)),o=a;for(let D in i){let _,S="";_=(C=(d=(g=i==null?void 0:i[D])==null?void 0:g.replace("=",Ar))==null?void 0:d.split(Ar))==null?void 0:C[0],S=(T=(H=(v=i==null?void 0:i[D])==null?void 0:v.replace("=",Ar))==null?void 0:H.split(Ar))==null?void 0:T[1];let x=(j=Mn==null?void 0:Mn.find(k=>(k==null?void 0:k.key)===_))==null?void 0:j.value;if(x){const k=Dc[x];o=await k({contents:o,filter:S,extra:l,groupName:r})}}return o},Po=async(a,l,r="")=>{var s,u,y,b,g,d,C,v,H,T,j,D,_,S,x,k,E,M,O,Q;let n="";if(((s=a==null?void 0:a.find(J=>(J==null?void 0:J.key)==="filter"))==null?void 0:s.contents)!==""&&(n=(u=a==null?void 0:a.find(J=>(J==null?void 0:J.key)==="filter"))==null?void 0:u.contents),n===""||!n)return a;(n==null?void 0:n[0])===","&&(n=n==null?void 0:n.slice(1,n==null?void 0:n.length)),(n==null?void 0:n[0])==="("?n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1):(n==null?void 0:n[0])==="@"||(n=(b=(y=n==null?void 0:n.replace("(",Ar))==null?void 0:y.split(Ar))==null?void 0:b[1],n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1));let i=(g=re.analyzeSplitToContent(n,","))==null?void 0:g.map(J=>((J==null?void 0:J[(J==null?void 0:J.length)-1])===","&&(J=J==null?void 0:J.slice(0,(J==null?void 0:J.length)-1)),J!=null&&J.includes("(")||(J=J==null?void 0:J.replaceAll(":","=")),J)),o=a,p=new Map;i==null||i.forEach(J=>{var te,U,q;let ye=(te=J==null?void 0:J.split("="))==null?void 0:te[0];if(ye==="@MainParam"&&p.get(ye)){let X=p.get(ye);X=X==null?void 0:X.slice(0,(X==null?void 0:X.length)-1);let ee=(q=(U=J==null?void 0:J.replace("{",Ar))==null?void 0:U.split(Ar))==null?void 0:q[1];ee=X+","+ee,p.set(ye,ee)}else ye==="@Button"&&p.get(ye)?p.set(J,J):p.set(ye,J)}),i=Array.from(p.values()),i=i==null?void 0:i.sort((J,ye)=>{var te,U;return((te=Mn==null?void 0:Mn.find(q=>ye==null?void 0:ye.includes(q==null?void 0:q.key)))==null?void 0:te.order)-((U=Mn==null?void 0:Mn.find(q=>J==null?void 0:J.includes(q==null?void 0:q.key)))==null?void 0:U.order)});for(let J in i){let ye,te="";(d=i==null?void 0:i[J])!=null&&d.includes("(")&&((C=i==null?void 0:i[J])!=null&&C.includes("@If"))?(ye=(T=(H=(v=i==null?void 0:i[J])==null?void 0:v.replace("(",Ar))==null?void 0:H.split(Ar))==null?void 0:T[0],te="("+((_=(D=(j=i==null?void 0:i[J])==null?void 0:j.replace("(",Ar))==null?void 0:D.split(Ar))==null?void 0:_[1])):(ye=(k=(x=(S=i==null?void 0:i[J])==null?void 0:S.replace("=",Ar))==null?void 0:x.split(Ar))==null?void 0:k[0],te=(O=(M=(E=i==null?void 0:i[J])==null?void 0:E.replace("=",Ar))==null?void 0:M.split(Ar))==null?void 0:O[1]);let U=(Q=Mn==null?void 0:Mn.find(q=>(q==null?void 0:q.key)===ye))==null?void 0:Q.value;if(U){const q=Dc[U];o=await q({contents:o,filter:te,extra:l,groupName:r})}}return o},Nc=a=>{if(a==null)return null;const l=String(a).trim();if(!l.startsWith("(")||!l.endsWith(")"))return null;const r=l.slice(1,-1).split(",").map(n=>Number(n.trim()));return r.length<2||r.some(n=>Number.isNaN(n))?null:[r[0],r[1]]},ff=(a,l)=>{var H,T,j,D,_;const r=Array.isArray(a)?a:[],n=r.find(S=>(S==null?void 0:S.key)==="formContent"),i=Array.isArray(n==null?void 0:n.contents)?n.contents:[],o=((H=r.find(S=>(S==null?void 0:S.key)==="_gridLayoutMeta"))==null?void 0:H.contents)??{},p=(i==null?void 0:i[0])??{};let s=((T=l==null?void 0:l.position)==null?void 0:T[0])??(o==null?void 0:o._positionStartRow)??(p==null?void 0:p._positionStartRow),u=((j=l==null?void 0:l.position)==null?void 0:j[1])??(o==null?void 0:o._positionRowSpan)??(p==null?void 0:p._positionRowSpan);(!s||Number.isNaN(s)||s<1)&&(s=1),(!u||Number.isNaN(u)||u<1)&&(u=1);let y=((D=l==null?void 0:l.size)==null?void 0:D[0])??(o==null?void 0:o._sizeStart)??(p==null?void 0:p._sizeStart),b=((_=l==null?void 0:l.size)==null?void 0:_[1])??(o==null?void 0:o._sizeEnd)??(p==null?void 0:p._sizeEnd);(y===void 0||Number.isNaN(y))&&(y=0),(b===void 0||Number.isNaN(b))&&(b=1),y=Math.max(0,Math.min(1,y)),b=Math.max(0,Math.min(1,b)),b<=y&&(y=0,b=1);const g=b-y,d=Math.max(1,Math.round(1/g));let C=r.map(S=>{if((S==null?void 0:S.key)!=="formContent")return S;const x=Array.isArray(S==null?void 0:S.contents)?S.contents:[];return{...S,contents:x.map(k=>({...k,width:d,_positionStartRow:s,_positionRowSpan:u,_sizeStart:y,_sizeEnd:b}))}});const v={_positionStartRow:s,_positionRowSpan:u,_sizeStart:y,_sizeEnd:b};return C.some(S=>(S==null?void 0:S.key)==="_gridLayoutMeta")?C=C.map(S=>(S==null?void 0:S.key)==="_gridLayoutMeta"?{...S,contents:v}:S):C.push({key:"_gridLayoutMeta",contents:v}),C};let Ai="$R";const hf=R.useUnit(R.pinia),{selectTitle:vf}=R.storeToRefs(hf);let mf=[{label:"新增",prop:"新增"},{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],yf=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"},{label:"复制新增",prop:"复制新增"},{label:"删除",prop:"删除"}],gf=[{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],bf=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"}];const Bs=async(a,l,r=!0)=>{let n=[],i=a==null?void 0:a.map(async o=>{var g,d,C,v,H,T,j,D,_,S,x,k,E,M,O,Q,J,ye,te,U,q,X,ee,pe,ze,ue,N,se,G,ve,ke,Be,We,he,I,Oe,oe,ge,xe,ne,we,Ke,ya,Ge,V,F,le,fe,be,ua,ia,Pe,va,Ea,Ae,Fa,Ta,da,Ha,sa,He,ha,ea,$e,Fe,ie,Ye,na,fa,Re,Ie,Je,Ne,_e,$a,wl,el,Pl,bl,Hl,ll,jl,Ga,Jl,Xl,ar,Sl,pr,ga,ol,vl,Dl,Ua,Sa,rl,Me,oa,Ya,me,_a,Pa,pl,Il,Qa,kl,Ma;let p=(v=(C=(d=(g=o==null?void 0:o.contents)==null?void 0:g.find(aa=>{var ma;return(ma=aa==null?void 0:aa.key)==null?void 0:ma.includes("struct")}))==null?void 0:d.value)==null?void 0:C[0])==null?void 0:v.类型,s=Object.values(o==null?void 0:o.name);s=s==null?void 0:s.reverse();let u=(H=o==null?void 0:o.contents)==null?void 0:H.map(aa=>aa==null?void 0:aa.key),y={comp:p,isShow:o==null?void 0:o.is_show,name:s==null?void 0:s[0],id:o==null?void 0:o.object_id,order_no:o==null?void 0:o.order_no,relatedTables:u,menuFilter:(T=o==null?void 0:o.filter)==null?void 0:T.menuFilter,status:o==null?void 0:o.status,fatherSyncContents:(j=o==null?void 0:o.filter)==null?void 0:j.fatherSyncs,relatedQuotes:(D=o==null?void 0:o.filter)==null?void 0:D.quotes,sonSyncContents:(_=o==null?void 0:o.filter)==null?void 0:_.sonSyncs,nameContents:(S=R.cloneDeep(s))==null?void 0:S.reverse(),isHidden:!1,calculatorFilters:(O=(M=(E=(k=(x=o==null?void 0:o.contents)==null?void 0:x.find(aa=>{var ma;return(ma=aa==null?void 0:aa.key)==null?void 0:ma.includes("struct")}))==null?void 0:k.value)==null?void 0:E[0])==null?void 0:M.算法)==null?void 0:O.contents};for(let aa in s)parseInt(aa)>=1&&(y[`name${parseInt(aa)-1}`]=s[aa]);let b=Array.isArray((Q=o==null?void 0:o.filter)==null?void 0:Q.menuFilter)?(J=o==null?void 0:o.filter)==null?void 0:J.menuFilter:[];if(((ye=b==null?void 0:b.filter(aa=>aa==null?void 0:aa.includes("@If")))==null?void 0:ye.length)>0){let aa=b==null?void 0:b.filter(Da=>Da==null?void 0:Da.includes("@If"));aa=aa==null?void 0:aa[0],aa=(U=(te=aa==null?void 0:aa.replace("(",Ai))==null?void 0:te.split(Ai))==null?void 0:U[1],aa=aa==null?void 0:aa.slice(0,(aa==null?void 0:aa.length)-1),aa!=null&&aa.includes("*")&&(aa=(X=(q=aa==null?void 0:aa.replace("{",Ai))==null?void 0:q.split(Ai))==null?void 0:X[1],aa=aa==null?void 0:aa.replace("}","")),aa=re.calculatorAndToOr(aa);let ma=(l==null?void 0:l.originPath)??"";(ma==null?void 0:ma[(ma==null?void 0:ma.length)-1])==="/"&&(ma=ma==null?void 0:ma.slice(0,(ma==null?void 0:ma.length)-1));let ja=await qr(ma,!1),xa=(ee=ja==null?void 0:ja.filter(Da=>(Da==null?void 0:Da.comp)==="Table"))==null?void 0:ee[0];xa=(ze=(pe=xa==null?void 0:xa.compData)==null?void 0:pe.find(Da=>(Da==null?void 0:Da.key)==="tableContents"))==null?void 0:ze.contents;let Ul=(N=(ue=vf.value)==null?void 0:ue.find(Da=>(Da==null?void 0:Da.condition)==="child"))==null?void 0:N.value;xa=(se=xa==null?void 0:xa.map(Da=>{for(let Rl in Da)if((Da==null?void 0:Da[Rl])===Ul)return Da}))==null?void 0:se.filter(Da=>Da),xa=xa==null?void 0:xa[0],aa=aa==null?void 0:aa[0];let Gl=[];for(let Da in aa){let Rl="";Xa.isObject(xa)&&(Rl=(ve=(G=Object.keys(xa))==null?void 0:G.filter(Fr=>Fr==null?void 0:Fr.includes("."+Da)))==null?void 0:ve[0]),Rl!==""&&(xa!=null&&xa[Rl])&&(aa==null?void 0:aa[Da])===(xa==null?void 0:xa[Rl])||xa!=null&&xa[Da]&&(aa==null?void 0:aa[Da])===(xa==null?void 0:xa[Da])?Gl.push(!0):Gl.push(!1)}if(Gl!=null&&Gl.some(Da=>Da===!1)&&((Be=l==null?void 0:l.originPath)==null?void 0:Be[((ke=l==null?void 0:l.originPath)==null?void 0:ke.length)-1])!=="/")return}if(p==="Table"||p==="Method"){!r&&((We=y==null?void 0:y.fatherSyncContents)==null?void 0:We.length)>0;let aa=((he=o==null?void 0:o.contents)==null?void 0:he.find(Qe=>{var La;return(La=Qe==null?void 0:Qe.key)==null?void 0:La.includes("content")}))||[],ma=[];y.comp="Table",aa.value=(I=aa==null?void 0:aa.value)==null?void 0:I.sort((Qe,La)=>parseInt(Qe==null?void 0:Qe.id)-parseInt(La==null?void 0:La.id)),aa.value=(Oe=aa==null?void 0:aa.value)==null?void 0:Oe.map(Qe=>{let La={};for(let hl in Qe)JSON.stringify(Qe==null?void 0:Qe[hl])==="{}"?La[hl]="":La[hl]=Qe==null?void 0:Qe[hl];return La}),ma.push({key:"tableContents",contents:aa==null?void 0:aa.value});let ja=(we=(ne=(xe=(ge=(oe=o==null?void 0:o.contents)==null?void 0:oe.find(Qe=>{var La;return(La=Qe==null?void 0:Qe.key)==null?void 0:La.includes("struct")}))==null?void 0:ge.value)==null?void 0:xe[0])==null?void 0:ne.结构)==null?void 0:we.contents;Array.isArray(ja==null?void 0:ja[0])?ja[0]=(Ke=ja==null?void 0:ja[0])==null?void 0:Ke.filter(Qe=>(Qe==null?void 0:Qe.prop)!=="sort"&&(Qe==null?void 0:Qe.prop)!=="relatedId"):ja=ja==null?void 0:ja.filter(Qe=>(Qe==null?void 0:Qe.prop)!=="sort"&&(Qe==null?void 0:Qe.prop)!=="relatedId"),ma.push({key:"header",contents:ja}),ma.push({key:"filter",contents:(le=(F=(V=(Ge=(ya=o==null?void 0:o.contents)==null?void 0:ya.find(Qe=>{var La;return(La=Qe==null?void 0:Qe.key)==null?void 0:La.includes("struct")}))==null?void 0:Ge.value)==null?void 0:V[0])==null?void 0:F.引用)==null?void 0:le.contents}),ma.push({key:"calculator",contents:y==null?void 0:y.calculatorFilters});let xa=mf,Ul=R.cloneDeep(yf);p==="Method"&&Ul.push({label:"生成方法",prop:"生成方法"}),!Array.isArray(ja==null?void 0:ja[0])&&((fe=ja==null?void 0:ja[0])==null?void 0:fe.prop)==="disabled"&&(xa=gf,Ul=bf);const Gl=["推力","真空","压力","温度","流量"],Da=y.name;Da&&Gl.includes(Da)&&(xa=[...xa],xa.push({label:"导出paraform",prop:"导出paraform",type:"methodButton"}));let Rl=[];if(!Array.isArray(ja==null?void 0:ja[0])&&(ja!=null&&ja.some(Qe=>{var La;return(Qe==null?void 0:Qe.calculatorFilter)&&((La=Qe==null?void 0:Qe.calculatorFilter)==null?void 0:La.includes("Manual"))}))){let Qe=(be=ja==null?void 0:ja.map(La=>La==null?void 0:La.calculatorFilter))==null?void 0:be.filter(La=>La&&(La==null?void 0:La.includes("Manual")));Qe==null||Qe.forEach(La=>{var Ll;let hl=re.analyzeSplitToContent(La,",");if(hl=hl==null?void 0:hl.map(Ba=>((Ba==null?void 0:Ba[(Ba==null?void 0:Ba.length)-1])===","&&(Ba=Ba==null?void 0:Ba.slice(0,(Ba==null?void 0:Ba.length)-1)),Ba)),hl!=null&&hl.find(Ba=>(Ba==null?void 0:Ba.includes("Extent"))&&(Ba==null?void 0:Ba.includes("Row")))&&(hl!=null&&hl.find(Ba=>(Ba==null?void 0:Ba.includes("Button"))&&(Ba==null?void 0:Ba.includes(","))))){let Ba=hl==null?void 0:hl.find(Yr=>Yr==null?void 0:Yr.includes("@FunctionButton"));Ba=(Ll=Ba==null?void 0:Ba.split("="))==null?void 0:Ll[1],Ba=Ba==null?void 0:Ba.slice(1,(Ba==null?void 0:Ba.length)-1),Ba=Ba==null?void 0:Ba.split(","),Ba=Ba==null?void 0:Ba[(Ba==null?void 0:Ba.length)-1],Rl.push(Ba)}}),Rl=[...new Set(Rl)],Rl=Rl==null?void 0:Rl.map(La=>({label:La,prop:La,type:"methodButton"}))}else if(Array.isArray(ja==null?void 0:ja[0])&&((ua=re.getColumnChild(ja==null?void 0:ja[0]))!=null&&ua.some(Qe=>{var La;return(Qe==null?void 0:Qe.calculatorFilter)&&((La=Qe==null?void 0:Qe.calculatorFilter)==null?void 0:La.includes("Manual"))}))){let Qe=(Pe=(ia=re.getColumnChild(ja==null?void 0:ja[0]))==null?void 0:ia.map(La=>La==null?void 0:La.calculatorFilter))==null?void 0:Pe.filter(La=>La&&(La==null?void 0:La.includes("Manual")));Qe==null||Qe.forEach(La=>{var Ll;let hl=re.analyzeSplitToContent(La,",");if(hl=hl==null?void 0:hl.map(Ba=>((Ba==null?void 0:Ba[(Ba==null?void 0:Ba.length)-1])===","&&(Ba=Ba==null?void 0:Ba.slice(0,(Ba==null?void 0:Ba.length)-1)),Ba)),hl!=null&&hl.find(Ba=>(Ba==null?void 0:Ba.includes("Extent"))&&(Ba==null?void 0:Ba.includes("Row")))&&(hl!=null&&hl.find(Ba=>(Ba==null?void 0:Ba.includes("Button"))&&(Ba==null?void 0:Ba.includes(","))))){let Ba=hl==null?void 0:hl.find(Yr=>Yr==null?void 0:Yr.includes("@FunctionButton"));Ba=(Ll=Ba==null?void 0:Ba.split("="))==null?void 0:Ll[1],Ba=Ba==null?void 0:Ba.slice(1,(Ba==null?void 0:Ba.length)-1),Ba=Ba==null?void 0:Ba.split(","),Ba=Ba==null?void 0:Ba[(Ba==null?void 0:Ba.length)-1],Rl.push(Ba)}}),Rl=[...new Set(Rl)],Rl=Rl==null?void 0:Rl.map(La=>({label:La,prop:La,type:"methodButton"}))}if(ma.push({key:"extraButton",contents:xa}),ma.push({key:"rowButton",contents:[...Ul,...Rl]}),y.compData=await Po(ma,l,y==null?void 0:y.nameContents),(va=y.compData)!=null&&va.find(Qe=>(Qe==null?void 0:Qe.key)==="tab")&&(y.tab=(Ae=(Ea=y.compData)==null?void 0:Ea.find(Qe=>(Qe==null?void 0:Qe.key)==="tab"))==null?void 0:Ae.contents),(Fa=y.compData)!=null&&Fa.find(Qe=>(Qe==null?void 0:Qe.key)==="step")&&(y.step=(da=(Ta=y.compData)==null?void 0:Ta.find(Qe=>(Qe==null?void 0:Qe.key)==="step"))==null?void 0:da.contents),(Ha=y.compData)!=null&&Ha.find(Qe=>(Qe==null?void 0:Qe.key)==="choice")&&(y.choice=(He=(sa=y.compData)==null?void 0:sa.find(Qe=>(Qe==null?void 0:Qe.key)==="choice"))==null?void 0:He.contents),(ha=y.compData)!=null&&ha.find(Qe=>(Qe==null?void 0:Qe.key)==="hideContents")&&(y.isHidden=(($e=(ea=y.compData)==null?void 0:ea.find(Qe=>(Qe==null?void 0:Qe.key)==="hideContents"))==null?void 0:$e.contents)??!1),(Fe=y.compData)!=null&&Fe.find(Qe=>(Qe==null?void 0:Qe.key)==="newType")){let Qe=(Ye=(ie=y.compData)==null?void 0:ie.find(La=>(La==null?void 0:La.key)==="newType"))==null?void 0:Ye.contents;y.comp=Qe,y.compData=(na=y.compData)==null?void 0:na.filter(La=>(La==null?void 0:La.key)!=="newType")}((Re=(fa=y.compData)==null?void 0:fa.find(Qe=>(Qe==null?void 0:Qe.key)==="TableType"))==null?void 0:Re.contents)==="Frameless"&&(y.comp="seamScroll",y.compData=(Ie=y.compData)==null?void 0:Ie.filter(Qe=>(Qe==null?void 0:Qe.key)!=="TableType"));let Fr="",Dr=(Je=y==null?void 0:y.compData)==null?void 0:Je.filter(Qe=>(Qe==null?void 0:Qe.key)==="fixType");if((Dr==null?void 0:Dr.length)>0&&r&&(Fr=(Ne=Dr==null?void 0:Dr[0])==null?void 0:Ne.contents,y.comp=Fr),((_e=y==null?void 0:y.calculatorFilters)==null?void 0:_e.length)>0){let Qe=[],La=[],hl=[];($a=y==null?void 0:y.calculatorFilters)==null||$a.forEach(Ll=>{var Yr,ln,zr,Ve,Zl,ql,Jr;let Ba=(zr=(ln=(Yr=Ll==null?void 0:Ll.calculatorFilter)==null?void 0:Yr.replace("(",Ai))==null?void 0:ln.split(Ai))==null?void 0:zr[1];Ba=(Ve=Ba==null?void 0:Ba.split(","))==null?void 0:Ve[0],Ba=Ba??(Ll==null?void 0:Ll.functionName),(Zl=Ll==null?void 0:Ll.calculatorFilter)!=null&&Zl.includes("Up")&&Qe.push({label:Ba,prop:Ba,type:"methodButton"}),(ql=Ll==null?void 0:Ll.calculatorFilter)!=null&&ql.includes("Line")&&La.push({label:Ba,prop:Ba,type:"methodButton"}),(Jr=Ll==null?void 0:Ll.calculatorFilter)!=null&&Jr.includes("Down")&&hl.push({label:Ba,prop:Ba,type:"methodButton"})}),y.compData=(wl=y.compData)==null?void 0:wl.map(Ll=>((Ll==null?void 0:Ll.key)==="extraButton"&&(Ll.contents=[...Qe??[],...Ll.contents]),(Ll==null?void 0:Ll.key)==="rowButton"&&(Ll.contents=[...La??[],...Ll.contents]),(Ll==null?void 0:Ll.key)==="bottomButton"&&(Ll.contents=[...hl??[],...Ll.contents]),Ll)),(hl==null?void 0:hl.length)>0&&!((Pl=(el=y.compData)==null?void 0:el.find(Ll=>(Ll==null?void 0:Ll.key)==="bottomButton"))!=null&&Pl.contents)&&y.compData.push({key:"bottomButton",contents:hl})}}else if(p==="Form"){let aa=[],ma=(ll=(Hl=(bl=o==null?void 0:o.contents)==null?void 0:bl.find(Da=>{var Rl;return(Rl=Da==null?void 0:Da.key)==null?void 0:Rl.includes("content")}))==null?void 0:Hl.value)==null?void 0:ll[0],ja=[],xa=Array.isArray((jl=o==null?void 0:o.filter)==null?void 0:jl.menuFilter)?(Ga=o==null?void 0:o.filter)==null?void 0:Ga.menuFilter:[];xa==null||xa.forEach(Da=>{if(Da!=null&&Da.includes("@Param(Hide=Yes, prop=")||Da!=null&&Da.includes("(Hide=Yes, prop=")){const Rl=Da==null?void 0:Da.match(/prop=([^,)]+)/);Rl!=null&&Rl[1]&&ja.push(Rl==null?void 0:Rl[1])}});let Ul=(pr=(Sl=(ar=(Xl=(Jl=o==null?void 0:o.contents)==null?void 0:Jl.find(Da=>{var Rl;return(Rl=Da==null?void 0:Da.key)==null?void 0:Rl.includes("struct")}))==null?void 0:Xl.value)==null?void 0:ar[0])==null?void 0:Sl.结构)==null?void 0:pr.contents,Gl=(ga=Ul==null?void 0:Ul.map(Da=>(Da.value=ma==null?void 0:ma[Da==null?void 0:Da.prop],Da)))==null?void 0:ga.filter(Da=>(Da==null?void 0:Da.prop)!=="sort"&&(Da==null?void 0:Da.prop)!=="relatedId");Gl=Gl==null?void 0:Gl.map(Da=>(ja!=null&&ja.includes(Da==null?void 0:Da.prop)&&(Da.isHideInForm=!0),Da)),aa.push({key:"calculator",contents:y==null?void 0:y.calculatorFilters}),aa.push({key:"filter",contents:(Sa=(Ua=(Dl=(vl=(ol=o==null?void 0:o.contents)==null?void 0:ol.find(Da=>{var Rl;return(Rl=Da==null?void 0:Da.key)==null?void 0:Rl.includes("struct")}))==null?void 0:vl.value)==null?void 0:Dl[0])==null?void 0:Ua.引用)==null?void 0:Sa.contents}),aa.push({key:"formContent",contents:Gl}),aa.push({key:"paramHideProps",contents:ja}),y.compData=await pf(aa,l,y==null?void 0:y.nameContents),(rl=y.compData)!=null&&rl.find(Da=>(Da==null?void 0:Da.key)==="tab")&&(y.tab=(oa=(Me=y.compData)==null?void 0:Me.find(Da=>(Da==null?void 0:Da.key)==="tab"))==null?void 0:oa.contents),(Ya=y.compData)!=null&&Ya.find(Da=>(Da==null?void 0:Da.key)==="step")&&(y.step=(_a=(me=y.compData)==null?void 0:me.find(Da=>(Da==null?void 0:Da.key)==="step"))==null?void 0:_a.contents),(Pa=y.compData)!=null&&Pa.find(Da=>(Da==null?void 0:Da.key)==="choice")&&(y.choice=(Il=(pl=y.compData)==null?void 0:pl.find(Da=>(Da==null?void 0:Da.key)==="choice"))==null?void 0:Il.contents),(Qa=y.compData)!=null&&Qa.find(Da=>(Da==null?void 0:Da.key)==="hideContents")&&(y.isHidden=((Ma=(kl=y.compData)==null?void 0:kl.find(Da=>(Da==null?void 0:Da.key)==="hideContents"))==null?void 0:Ma.contents)??!1)}return y});return n=await Promise.all(i),n=n==null?void 0:n.filter(o=>!(o!=null&&o.isHidden)),n};let kf="http://139.196.154.85:20031";function xf(a){return Xa.axios({method:"post",url:kf+"/api/word-report/build-by-upload",responseType:"blob",data:a})}const wf=R.useUnit(R.pinia),{selectTitle:Ds}=R.storeToRefs(wf),_f=async a=>{var r;let l=(r=re.analyzerStringToArray(a,[":","@","="]))==null?void 0:r[0];return l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1),l=re.analyzeSplitToContent(l,","),l=l==null?void 0:l.map(n=>((n==null?void 0:n[(n==null?void 0:n.length)-1])===","&&(n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1)),n)),l=l==null?void 0:l.map(async n=>{var o,p,s,u,y,b,g,d,C,v,H,T,j,D,_,S,x,k,E,M,O,Q,J,ye,te,U,q,X,ee,pe,ze,ue,N,se;let i=re.analyzeSplitToContent(n,"=");if(n!=null&&n.includes("==")){i=n==null?void 0:n.split("==");let G=i==null?void 0:i[0],ve=i==null?void 0:i[1],ke=(x=ve==null?void 0:ve.split("*"))==null?void 0:x[0],Be=(k=ve==null?void 0:ve.split("*"))==null?void 0:k[1];Be=(E=re.analyzeSplitToContent(Be,":"))==null?void 0:E.map(I=>((I==null?void 0:I[(I==null?void 0:I.length)-1])===":"&&(I=I==null?void 0:I.slice(0,(I==null?void 0:I.length)-1)),I));let We=Be==null?void 0:Be.filter(I=>(I==null?void 0:I[0])!=="{"),he=Be==null?void 0:Be.filter(I=>(I==null?void 0:I[0])==="{");if(he=he==null?void 0:he[0],he=he==null?void 0:he.slice(1,(he==null?void 0:he.length)-1),he=(M=re.analyzeSplitToContent(he,","))==null?void 0:M.map(I=>((I==null?void 0:I[(I==null?void 0:I.length)-1])===","&&(I=I==null?void 0:I.slice(0,(I==null?void 0:I.length)-1)),I)),ke!=null&&ke.includes("{")){let I=(Q=(O=Ds.value)==null?void 0:O.find(we=>(we==null?void 0:we.condition)==="child"))==null?void 0:Q.value;ke=ke==null?void 0:ke.slice(1,ke==null?void 0:ke.length),ke=(ye=(J=ke==null?void 0:ke.replace("{",""))==null?void 0:J.replace("}",""))==null?void 0:ye.replace(":","/"),ke=ke+"/"+I;let Oe=await qr(ke,!1);Oe=Oe==null?void 0:Oe.find(we=>(we==null?void 0:we.name)===(We==null?void 0:We[(We==null?void 0:We.length)-1]));let oe=(U=(te=Oe==null?void 0:Oe.compData)==null?void 0:te.find(we=>(we==null?void 0:we.key)==="tableContents"))==null?void 0:U.contents,ge=(X=(q=Oe==null?void 0:Oe.compData)==null?void 0:q.find(we=>(we==null?void 0:we.key)==="header"))==null?void 0:X.contents,xe=re.tableToForm(oe,ge),ne=[];xe==null||xe.forEach(we=>{let Ke=[];he==null||he.forEach(ya=>{var Ge;Ke.push(((Ge=we==null?void 0:we.find(V=>(V==null?void 0:V.key)===ya))==null?void 0:Ge.value)??"")}),ne.push(Ke)}),ne=re.arrayToString(ne),n=G+"=="+ne}else{ke=ke==null?void 0:ke.slice(1,ke==null?void 0:ke.length),ke=(pe=(ee=ke==null?void 0:ke.replace("{",""))==null?void 0:ee.replace("}",""))==null?void 0:pe.replace(":","/");let I=await qr(ke,!1);I=I==null?void 0:I.find(ne=>(ne==null?void 0:ne.name)===(We==null?void 0:We[(We==null?void 0:We.length)-1]));let Oe=(ue=(ze=I==null?void 0:I.compData)==null?void 0:ze.find(ne=>(ne==null?void 0:ne.key)==="tableContents"))==null?void 0:ue.contents,oe=(se=(N=I==null?void 0:I.compData)==null?void 0:N.find(ne=>(ne==null?void 0:ne.key)==="header"))==null?void 0:se.contents,ge=re.tableToForm(Oe,oe),xe=[];ge==null||ge.forEach(ne=>{let we=[];he==null||he.forEach(Ke=>{var ya;we.push(((ya=ne==null?void 0:ne.find(Ge=>(Ge==null?void 0:Ge.key)===Ke))==null?void 0:ya.value)??"")}),xe.push(we)}),xe=re.arrayToString(xe),n=G+"=="+xe}}else{let G=i==null?void 0:i[0],ve=i==null?void 0:i[1],ke=(o=ve==null?void 0:ve.split("*"))==null?void 0:o[0],Be=(p=ve==null?void 0:ve.split("*"))==null?void 0:p[1];Be=(s=re.analyzeSplitToContent(Be,":"))==null?void 0:s.map(I=>((I==null?void 0:I[(I==null?void 0:I.length)-1])===":"&&(I=I==null?void 0:I.slice(0,(I==null?void 0:I.length)-1)),I));let We=Be==null?void 0:Be.filter(I=>(I==null?void 0:I[0])!=="{"),he=Be==null?void 0:Be.filter(I=>(I==null?void 0:I[0])==="{");if(he=he==null?void 0:he[0],he=he==null?void 0:he.slice(1,(he==null?void 0:he.length)-1),he=(u=re.analyzeSplitToContent(he,":"))==null?void 0:u.map(I=>((I==null?void 0:I[(I==null?void 0:I.length)-1])===":"&&(I=I==null?void 0:I.slice(0,(I==null?void 0:I.length)-1)),I)),ke!=null&&ke.includes("{")){let I=(b=(y=Ds.value)==null?void 0:y.find(oe=>(oe==null?void 0:oe.condition)==="child"))==null?void 0:b.value;ke=ke==null?void 0:ke.slice(1,ke==null?void 0:ke.length),ke=(d=(g=ke==null?void 0:ke.replace("{",""))==null?void 0:g.replace("}",""))==null?void 0:d.replace(":","/"),ke=ke+"/"+I;let Oe=await qr(ke,!1);Oe=Oe==null?void 0:Oe.find(oe=>(oe==null?void 0:oe.name)===(We==null?void 0:We[(We==null?void 0:We.length)-1])),Oe=(v=(C=Oe==null?void 0:Oe.compData)==null?void 0:C.find(oe=>(oe==null?void 0:oe.key)==="formContent"))==null?void 0:v.contents,Oe=(H=Oe==null?void 0:Oe.find(oe=>(oe==null?void 0:oe.prop)===(he==null?void 0:he[(he==null?void 0:he.length)-1])))==null?void 0:H.value,ve=Oe}else{ke=ke==null?void 0:ke.slice(1,ke==null?void 0:ke.length),ke=(j=(T=ke==null?void 0:ke.replace("{",""))==null?void 0:T.replace("}",""))==null?void 0:j.replace(":","/");let I=await qr(ke,!1);I=I==null?void 0:I.find(Oe=>(Oe==null?void 0:Oe.name)===(We==null?void 0:We[(We==null?void 0:We.length)-1])),I=(_=(D=I==null?void 0:I.compData)==null?void 0:D.find(Oe=>(Oe==null?void 0:Oe.key)==="formContent"))==null?void 0:_.contents,I=(S=I==null?void 0:I.find(Oe=>(Oe==null?void 0:Oe.prop)===(he==null?void 0:he[(he==null?void 0:he.length)-1])))==null?void 0:S.value,ve=I}n=G+ve}return n}),l=await Promise.all(l),l=l==null?void 0:l.join(","),l="{"+l+"}",l},Sf=R.useLoginState(R.pinia),{loginUserInfo:Zn}=R.storeToRefs(Sf),Ef=R.useUnit(R.pinia),{selectTitle:Ac}=R.storeToRefs(Ef),Yi=R.useMenuState(R.pinia),{localFiles:Cf}=R.storeToRefs(Yi),Ft=async(a=[],l="Manual",r=[],n=[])=>{var s;let i=a,o=(s=i==null?void 0:i.filter(u=>{var y;return(u==null?void 0:u.functionName)&&(l==="Manual"&&((y=u==null?void 0:u.calculatorFilter)==null?void 0:y.includes(l))||l!=="Manual")}))==null?void 0:s.map(u=>({prop:u==null?void 0:u.prop,label:u==null?void 0:u.label,methods:u==null?void 0:u.calculatorFilter,functionName:u==null?void 0:u.functionName,functionRelatedWords:u==null?void 0:u.functionRelatedWords}));(n==null?void 0:n.length)>0&&(o=[...n==null?void 0:n.map(y=>({prop:"",label:"",methods:y==null?void 0:y.calculatorFilter,functionName:y==null?void 0:y.functionName,functionRelatedWords:y==null?void 0:y.functionRelatedWords})),...o]),(n==null?void 0:n.length)>0&&(i=[i==null?void 0:i[0]]);let p=i==null?void 0:i.map(async u=>{let y=(n==null?void 0:n.length)>0?n:o==null?void 0:o.filter(b=>(b==null?void 0:b.prop)===(u==null?void 0:u.prop));return u=await zo(u,y,i,l,i,r),u});return p=await Promise.all(p),p},Nt=async(a,l,r="Manual",n=[],i=[],o=[])=>{var b;let p=a,s;Array.isArray(l==null?void 0:l[0])?s=re.getColumnChild(l==null?void 0:l[0]):s=l;let u=(b=s==null?void 0:s.filter(g=>{var d;return(g==null?void 0:g.calculatorFilter)&&((d=g==null?void 0:g.calculatorFilter)==null?void 0:d.includes(r))||(g==null?void 0:g.calculatorFilter)===""&&(g==null?void 0:g.functionName)}))==null?void 0:b.map(g=>({prop:g==null?void 0:g.prop,label:g==null?void 0:g.label,methods:g==null?void 0:g.calculatorFilter,functionName:g==null?void 0:g.functionName,functionRelatedWords:g==null?void 0:g.functionRelatedWords}));(i==null?void 0:i.length)>0&&(u=[...i==null?void 0:i.map(d=>({prop:"",label:"",methods:d==null?void 0:d.calculatorFilter,functionName:d==null?void 0:d.functionName,functionRelatedWords:d==null?void 0:d.functionRelatedWords})),...u]),(i==null?void 0:i.length)>0&&(p=[p==null?void 0:p[0]]);let y=p==null?void 0:p.map(async g=>(g=await zo(g,u,s,r,p,n,o),g));return y=await Promise.all(y),y},Tf=a=>{let l=a==null?void 0:a.contents,r=a==null?void 0:a.valueString,n=a==null?void 0:a.prop,i=a==null?void 0:a.headers,o;return Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=re.getValueToObjectValue(l,re.getColumnContents(i))),r==null||r.forEach(p=>{var s;if(l!=null&&l[p]){let u=l==null?void 0:l[p];o=o?u?Fl.isEqual(u.toString(),o.toString()):void 0:u}else{let u=(s=i==null?void 0:i.find(b=>(b==null?void 0:b.label)===p))==null?void 0:s.prop,y=(l==null?void 0:l[u])??0;o=o?y?Fl.isEqual(y.toString(),o.toString()):void 0:y}}),l[n]=o===void 0?void 0:o?1:0,l},$r=a=>{const[l,r,n]=R.cloneDeep(a).split(":").map(Number);let i=+a;return!a||!(a!=null&&a.includes(":"))?i:(l??0)*3600+(r??0)*60+(n??0)},ii=a=>{const l=o=>o.toString().padStart(2,"0"),r=Math.floor(a/3600),n=Math.floor(a%3600/60),i=a%60;return`${l(r)}:${l(n)}:${parseInt(l(i))}`},Bf=a=>{let l=a==null?void 0:a.contents,r=a==null?void 0:a.valueString,n=a==null?void 0:a.prop,i=a==null?void 0:a.headers,o=a==null?void 0:a.typeString,p=a==null?void 0:a.allContents,s=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=re.getValueToObjectValue(l,re.getColumnContents(i))),r==null||r.forEach(u=>{var y,b,g,d,C,v,H,T,j;if(l!=null&&l[u]){if(o==="Row")if(!((b=((y=l==null?void 0:l[u])==null?void 0:y.toString())??"")!=null&&b.includes(":"))&&!((g=s==null?void 0:s.toString())!=null&&g.includes(":"))){let D=+(l==null?void 0:l[u]);s=s+D}else s=$r(s.toString())+$r((d=l==null?void 0:l[u])==null?void 0:d.toString()),s=ii(s)}else if(o==="Row"){let D=(C=i==null?void 0:i.find(_=>(_==null?void 0:_.label)===u))==null?void 0:C.prop;if(!((H=Number.isNaN(l==null?void 0:l[D])?"":(v=l==null?void 0:l[D])==null?void 0:v.toString())!=null&&H.includes(":"))&&!((T=s==null?void 0:s.toString())!=null&&T.includes(":"))){let _=+((l==null?void 0:l[D])??0);s=s+_}else s=$r(s==null?void 0:s.toString())+$r((j=(l==null?void 0:l[D])??0)==null?void 0:j.toString()),s=ii(s)}}),o==="Column"){let u=[];r==null||r.forEach(y=>{let b=p==null?void 0:p.map(g=>{var d;return(g==null?void 0:g[y])??(g==null?void 0:g[(d=i==null?void 0:i.find(C=>(C==null?void 0:C.label)===y))==null?void 0:d.prop])});u=[...u,...b]}),s=u.reduce((y,b)=>{let g=0;Number.isNaN(y)||(g=+y);let d=0;return Number.isNaN(b)||(d=+b),g+d},0)}return l[n]=s,l},Df=a=>{let l=a==null?void 0:a.contents,r=a==null?void 0:a.valueString,n=a==null?void 0:a.prop,i=a==null?void 0:a.headers,o=a==null?void 0:a.typeString,p=a==null?void 0:a.allContents,s=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=re.getValueToObjectValue(l,re.getColumnContents(i))),r==null||r.forEach(u=>{var y,b,g,d,C,v,H;if(l!=null&&l[u]){if(o==="Row")if(!((b=(y=l==null?void 0:l[u])==null?void 0:y.toString())!=null&&b.includes(":"))&&!((g=s==null?void 0:s.toString())!=null&&g.includes(":"))){let T=+(l==null?void 0:l[u]);s=s===0?s+T:s-T}else s=s===0?$r(s.toString())+$r(l==null?void 0:l[u].toString()):$r(s.toString())-$r(l==null?void 0:l[u].toString()),s=ii(s)}else if(o==="Row"){let T=(d=i==null?void 0:i.find(j=>(j==null?void 0:j.label)===u))==null?void 0:d.prop;if(!((v=Number.isNaN(l==null?void 0:l[T])?"":(C=l==null?void 0:l[T])==null?void 0:C.toString())!=null&&v.includes(":"))&&!((H=s==null?void 0:s.toString())!=null&&H.includes(":"))){let j=+((l==null?void 0:l[T])??0);s=s===0?s+j:s-j}else s=s===0?$r(s.toString())+$r(((l==null?void 0:l[T])??0).toString()):$r(s.toString())-$r(((l==null?void 0:l[T])??0).toString()),s=ii(s)}}),o==="Column"){let u=[];r==null||r.forEach(y=>{let b=p==null?void 0:p.map(g=>{var d;return(g==null?void 0:g[y])??(g==null?void 0:g[(d=i==null?void 0:i.find(C=>(C==null?void 0:C.label)===y))==null?void 0:d.prop])});u=[...u,...b]}),s=u.reduce((y,b)=>{let g=0;Number.isNaN(y)||(g=+y);let d=0;return Number.isNaN(b)||(d=+b),g-d},0)}return l[n]=s,l},Nf=a=>{let l=a==null?void 0:a.contents,r=a==null?void 0:a.valueString,n=a==null?void 0:a.prop,i=a==null?void 0:a.headers,o=a==null?void 0:a.typeString,p=a==null?void 0:a.allContents,s=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=re.getValueToObjectValue(l,re.getColumnContents(i))),r==null||r.forEach(u=>{var y,b,g,d,C,v,H;if(l!=null&&l[u]){if(o==="Row")if(!((b=(y=l==null?void 0:l[u])==null?void 0:y.toString())!=null&&b.includes(":"))&&!((g=s==null?void 0:s.toString())!=null&&g.includes(":"))){let T=+(l==null?void 0:l[u]);s=s===0?s+T:s*T}else s=s===0?$r(s.toString())+$r(l==null?void 0:l[u].toString()):$r(s.toString())*$r(l==null?void 0:l[u].toString()),s=ii(s)}else if(o==="Row"){let T=(d=i==null?void 0:i.find(j=>(j==null?void 0:j.label)===u))==null?void 0:d.prop;if(!(l!=null&&l[T]))s=void 0;else if(!((v=Number.isNaN(l==null?void 0:l[T])?"":(C=l==null?void 0:l[T])==null?void 0:C.toString())!=null&&v.includes(":"))&&!((H=s==null?void 0:s.toString())!=null&&H.includes(":"))){let j=+((l==null?void 0:l[T])??0);s=s===0?s+j:s*j}else s=s===0?$r(s.toString())+$r(((l==null?void 0:l[T])??0).toString()):$r(s.toString())*$r(((l==null?void 0:l[T])??0).toString()),s=ii(s)}}),o==="Column"){let u=[];r==null||r.forEach(y=>{let b=p==null?void 0:p.map(g=>{var d;return(g==null?void 0:g[y])??(g==null?void 0:g[(d=i==null?void 0:i.find(C=>(C==null?void 0:C.label)===y))==null?void 0:d.prop])});u=[...u,...b]}),s=u.reduce((y,b)=>{let g=0;Number.isNaN(y)||(g=+y);let d=0;return Number.isNaN(b)||(d=+b),g*d},0)}return l[n]=s,l},Af=a=>{let l=a==null?void 0:a.contents,r=a==null?void 0:a.valueString,n=a==null?void 0:a.prop,i=a==null?void 0:a.headers,o=a==null?void 0:a.typeString,p=a==null?void 0:a.allContents,s=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=re.getValueToObjectValue(l,re.getColumnContents(i))),r==null||r.forEach(u=>{var y,b,g,d,C,v,H;if(l!=null&&l[u]){if(o==="Row")if(!((b=(y=l==null?void 0:l[u])==null?void 0:y.toString())!=null&&b.includes(":"))&&!((g=s==null?void 0:s.toString())!=null&&g.includes(":"))){let T=+(l==null?void 0:l[u]);s=s===0?s+T:s/T}else s=s===0?$r(s.toString())+$r(l==null?void 0:l[u].toString()):$r(s.toString())/$r(l==null?void 0:l[u].toString()),s=ii(s)}else if(o==="Row"){let T=(d=i==null?void 0:i.find(j=>(j==null?void 0:j.label)===u))==null?void 0:d.prop;if(!((v=Number.isNaN(l==null?void 0:l[T])?"":(C=l==null?void 0:l[T])==null?void 0:C.toString())!=null&&v.includes(":"))&&!((H=s==null?void 0:s.toString())!=null&&H.includes(":"))){let j=+((l==null?void 0:l[T])??0);s=s===0?s+j:s/j}else s=s===0?$r(s.toString())+$r(((l==null?void 0:l[T])??0).toString()):$r(s.toString())/$r(((l==null?void 0:l[T])??0).toString()),s=ii(s)}}),o==="Column"){let u=[];r==null||r.forEach(y=>{let b=p==null?void 0:p.map(g=>{var d;return(g==null?void 0:g[y])??(g==null?void 0:g[(d=i==null?void 0:i.find(C=>(C==null?void 0:C.label)===y))==null?void 0:d.prop])});u=[...u,...b]}),s=u.reduce((y,b)=>{let g=0;Number.isNaN(y)||(g=+y);let d=0;return Number.isNaN(b)||(d=+b),g/d},0)}return l[n]=s.toFixed(2),l},zf=async a=>{var o,p,s,u,y,b,g,d,C,v,H;let l=(o=a==null?void 0:a.valueString)==null?void 0:o[0],r=(p=a==null?void 0:a.contents)==null?void 0:p.calculatorFilter,n=0,i=a==null?void 0:a.contents;if(l!=null&&l.includes("$")&&!(l!=null&&l.includes("{"))){(l==null?void 0:l[0])==="$"&&(l=l==null?void 0:l.slice(1,l==null?void 0:l.length));let T=(u=(s=l==null?void 0:l.split("*"))==null?void 0:s[0])==null?void 0:u.replaceAll(":","/"),j=await qr(T,!1),D=(y=l==null?void 0:l.split("*"))==null?void 0:y[1];if(j=(b=j==null?void 0:j.filter(_=>(_==null?void 0:_.name)===D))==null?void 0:b[0],r!==""){let _=j.compData;_=_==null?void 0:_.filter(S=>(S==null?void 0:S.key)!=="filter"),_.push({key:"filter",contents:"("+r+")"}),_=await Po(_,{}),n=(d=(g=_==null?void 0:_.find(S=>(S==null?void 0:S.key)==="tableContents"))==null?void 0:g.contents)==null?void 0:d.length}else n=(H=(v=(C=j==null?void 0:j.compData)==null?void 0:C.find(_=>(_==null?void 0:_.key)==="tableContents"))==null?void 0:v.contents)==null?void 0:H.length}return i.value=n,i},Mf=async a=>{var g,d,C,v,H,T,j,D,_;let l=(g=a==null?void 0:a.valueString)==null?void 0:g[0],r=a==null?void 0:a.filter;r=(r==null?void 0:r.find(S=>S==null?void 0:S.includes("@If")))??"",(l==null?void 0:l[0])==="$"&&(l=l==null?void 0:l.slice(1,l==null?void 0:l.length));let n=(C=(d=l==null?void 0:l.split("*"))==null?void 0:d[0])==null?void 0:C.replaceAll(":","/"),i=(v=l==null?void 0:l.split("*"))==null?void 0:v[1],o=(H=i==null?void 0:i.split("{"))==null?void 0:H[0],p=i==null?void 0:i.replace(o,"");o=o==null?void 0:o.slice(0,(o==null?void 0:o.length)-1),o=o==null?void 0:o.split(":"),o=o==null?void 0:o[(o==null?void 0:o.length)-1];let s=await qr(n,!1);if(p=p==null?void 0:p.slice(1,(p==null?void 0:p.length)-1),p=p==null?void 0:p.split(":"),p=p==null?void 0:p[(p==null?void 0:p.length)-1],s=s==null?void 0:s.find(S=>(S==null?void 0:S.name)===o),s=(j=(T=s==null?void 0:s.compData)==null?void 0:T.find(S=>(S==null?void 0:S.key)==="tableContents"))==null?void 0:j.contents,(r==null?void 0:r.length)>0){r=(_=(D=r==null?void 0:r.replace("(","$R"))==null?void 0:D.split("$R"))==null?void 0:_[1],r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1);let S=re.calculatorAndToOr(r);S==null||S.forEach(x=>{for(let k in x)x[k]!=="!"?s=s==null?void 0:s.filter(E=>{var M;return(E==null?void 0:E[k])===(x==null?void 0:x[k])||(E==null?void 0:E[(M=Object.keys(E))==null?void 0:M.find(O=>O==null?void 0:O.includes("."+k))])===(x==null?void 0:x[k])}):s=s==null?void 0:s.filter(E=>{var M;return(E==null?void 0:E[k])!==(x==null?void 0:x[k])&&(E==null?void 0:E[(M=Object.keys(E))==null?void 0:M.find(O=>O==null?void 0:O.includes("."+k))])!==(x==null?void 0:x[k])})})}s=s==null?void 0:s.map(S=>S==null?void 0:S[p]);let u=[...new Set(s)],y=[],b={};return u==null||u.forEach(S=>{var k;let x=(k=s==null?void 0:s.filter(E=>S===E))==null?void 0:k.length;b[S]=x}),y.push(b),{xAxis:u,yAxis:y}},If=async a=>{var n,i;let l=a==null?void 0:a.valueString;l=l==null?void 0:l[0];let r={};if((l==null?void 0:l[0])==="{"){l=l==null?void 0:l.slice(1,l.length-1),l=(n=re.analyzeSplitToContent(l,","))==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));let o=l==null?void 0:l.map(async s=>{var g,d,C,v,H,T,j,D,_,S,x,k,E,M,O,Q,J,ye;let u=(d=(g=s==null?void 0:s.replace("=","$R"))==null?void 0:g.split("$R"))==null?void 0:d[0],y=(v=(C=s==null?void 0:s.replace("=","$R"))==null?void 0:C.split("$R"))==null?void 0:v[1],b="";if(y==="LoginUser")b=((H=Zn.value)==null?void 0:H.姓名)||((T=Zn.value)==null?void 0:T.account)||((j=Zn.value)==null?void 0:j.账号);else if((y==null?void 0:y[0])==="$"){let te=(D=y==null?void 0:y.split("*"))==null?void 0:D[0],U=(_=y==null?void 0:y.split("*"))==null?void 0:_[1],q=U;if((te==null?void 0:te[0])==="$"&&(te=te==null?void 0:te.slice(1,te==null?void 0:te.length)),te!=null&&te.includes("$")){let ee=(S=te==null?void 0:te.split("$"))==null?void 0:S[0],pe=(x=te==null?void 0:te.split("$"))==null?void 0:x[1],ze=(k=ee==null?void 0:ee.split(":"))==null?void 0:k[0],ue=(O=(M=(E=Ac.value)==null?void 0:E.filter(N=>(N==null?void 0:N.condition)==="child"))==null?void 0:M[0])==null?void 0:O.value;pe=pe==null?void 0:pe.replaceAll(":","/"),te=ze+"/"+pe+"/"+ue}else te=te==null?void 0:te.replaceAll(":","/");U=U==null?void 0:U.split(":"),U=U==null?void 0:U.find((ee,pe)=>pe===(U==null?void 0:U.length)-2),q=q==null?void 0:q.split(":"),q=q==null?void 0:q.find((ee,pe)=>pe===(q==null?void 0:q.length)-1),(q==null?void 0:q[0])==="{"&&(q=q==null?void 0:q.slice(1,(q==null?void 0:q.length)-1));let X=await qr(te,!1);X=X==null?void 0:X.find(ee=>(ee==null?void 0:ee.name)===U),X=(J=(Q=X==null?void 0:X.compData)==null?void 0:Q.find(ee=>(ee==null?void 0:ee.key)==="tableContents"))==null?void 0:J.contents,b=(ye=X==null?void 0:X[0])==null?void 0:ye[q]}else b=y;r[u]=b});await Promise.all(o);let p=(i=a==null?void 0:a.valueString)==null?void 0:i[1];r.menuPathContent=p}return r},Of=async a=>{var y,b,g,d,C,v,H;let l=a==null?void 0:a.valueString,r=l==null?void 0:l.filter(T=>(T==null?void 0:T.includes(".docx"))||(T==null?void 0:T.includes(".doc")));r=r==null?void 0:r[0];let n=l==null?void 0:l.filter(T=>!(T!=null&&T.includes(".docx"))&&!(T!=null&&T.includes(".doc")));n=n==null?void 0:n[0];let i=(b=a==null?void 0:a.compNames)==null?void 0:b[((y=a==null?void 0:a.compNames)==null?void 0:y.length)-1],o=((C=(d=(g=Ac.value)==null?void 0:g.filter(T=>(T==null?void 0:T.condition)==="child"))==null?void 0:d[0])==null?void 0:C.value)??"",p=Cf.value;o!==""&&(p=(v=p==null?void 0:p.find(T=>(T==null?void 0:T.path)===o))==null?void 0:v.children),p=(H=p==null?void 0:p.find(T=>(T==null?void 0:T.name)===i))==null?void 0:H.children;let s=p==null?void 0:p.find(T=>(T==null?void 0:T.name)===r),u=p==null?void 0:p.find(T=>(T==null?void 0:T.name)===n);u=(u==null?void 0:u.url)??"",u!==""?u=u==null?void 0:u.replace(/^file:\/\//,"file:///").replace(/\\/g,"/"):u="file:///"+(n==null?void 0:n.replaceAll("\\","/")),s=(s==null?void 0:s.url)??"",s!==""?s=s==null?void 0:s.replace(/^file:\/\//,"file:///").replace(/\\/g,"/"):s="file:///"+(r==null?void 0:r.replaceAll("\\","/"));try{const j=await(await fetch(s)).blob();let D=s.split(/[\\/]/).pop();const _=new File([j],D,{type:j.type||"application/octet-stream"}),S=new FormData;S.append("TemplateFile",_);let x=await fetch(u);x=await x.text(),x=await _f(x),S.append("RawContent",x);let k=await xf(S),E=new Blob([k.data],{type:"application/zip"});const M=window.URL.createObjectURL(E),O=document.createElement("a");O.href=M,O.download=r,document.body.appendChild(O),O.click(),document.body.removeChild(O),window.URL.revokeObjectURL(M)}catch{Xa.ElMessage.error("文件路径未找到")}},Lf=async a=>{var i,o;let l=a==null?void 0:a.valueString,r=l==null?void 0:l[0];r=(i=r==null?void 0:r.split("*"))==null?void 0:i[0],(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.replaceAll(":","/"),r=r;let n=await qr(r,!1);if((n==null?void 0:n.length)>0){Yi.setActiveTopMenuPath((o=r==null?void 0:r.split("/"))==null?void 0:o[0]);let p=localStorage.getItem("menus-store");p=JSON.parse(p),p=p==null?void 0:p.menus,p=p==null?void 0:p.find(s=>{var u;return(s==null?void 0:s.path)===((u=r==null?void 0:r.split("/"))==null?void 0:u[0])}),p=p==null?void 0:p.childMenus,Yi.setAsideMenus(p),Yi.setJumpMenuInform(!0),Yi.setActiveMenuPath(r)}else Xa.ElMessage.error("页面不存在");return a},go={Sum:Bf,Substract:Df,Multiple:Nf,Divide:Af,Compare:Tf,VecDimCount:zf,Approval:If,VecRepCount:Mf,AutoReportGen:Of,OpenPortal:Lf},zo=async(a,l,r,n="Auto",i,o=[],p=[])=>{var g,d,C,v,H,T,j,D,_,S,x,k,E,M,O,Q,J,ye,te,U,q;let s=a,u=[],y=await R.getPageDataApi({platId:parseInt((g=Zn==null?void 0:Zn.value)==null?void 0:g.plat_id),pageName:"menu"});y=(v=(C=(d=y==null?void 0:y.data)==null?void 0:d.result)==null?void 0:C.filter(X=>(X==null?void 0:X.property_name)===""))==null?void 0:v[0];let b=[];if(y!=null&&y.object_name){y=y==null?void 0:y.object_name;let X=await R.getPageDataApi({platId:parseInt((H=Zn==null?void 0:Zn.value)==null?void 0:H.plat_id),pageName:y});X=(S=(_=(D=(j=(T=X==null?void 0:X.data)==null?void 0:T.result)==null?void 0:j[0])==null?void 0:D.contents)==null?void 0:_.find(ee=>{var pe;return(pe=ee==null?void 0:ee.key)==null?void 0:pe.includes("content")}))==null?void 0:S.value,u=(x=X==null?void 0:X.map(ee=>({functionName:ee==null?void 0:ee.函数名称,functionContent:ee==null?void 0:ee.输出值})))==null?void 0:x.filter(ee=>(ee==null?void 0:ee.functionContent)!==""),u==null||u.forEach(ee=>{b.push(ee.functionName),go[ee.functionName]=new Function("return "+ee.functionContent)()})}if((l==null?void 0:l.length)===0)return s;for(let X in l){let ee=(k=l==null?void 0:l[X])==null?void 0:k.functionName;const pe=go==null?void 0:go[ee];let ze=(E=l==null?void 0:l[X])==null?void 0:E.methods;if(ze=re.analyzeSplitToContent(ze,","),(M=ze==null?void 0:ze.find(ue=>ue==null?void 0:ue.includes("@Type")))!=null&&M.includes(n)||!(ze!=null&&ze.find(ue=>ue==null?void 0:ue.includes("@Type")))&&n==="Manual"||n==="Auto"||(ze==null?void 0:ze.length)===0){let ue=((J=(Q=(O=ze==null?void 0:ze.find(N=>N==null?void 0:N.includes("@Extent")))==null?void 0:O.replace(":","="))==null?void 0:Q.split("="))==null?void 0:J[1])??[];if(await new Function("return ")(),(b==null?void 0:b.length)>0&&b.find(N=>N===ee)){let N="";try{let G=(ye=l==null?void 0:l[X])==null?void 0:ye.functionRelatedWords,ve=(o==null?void 0:o.length)>0?o==null?void 0:o.map(Be=>{var We;return Be==null?void 0:Be[(We=l==null?void 0:l[X])==null?void 0:We.prop]}):["0"];ve=ve==null?void 0:ve.map(Be=>Be==null?void 0:Be.slice((Be==null?void 0:Be.length)-5,Be==null?void 0:Be.length)),ve=ve==null?void 0:ve.map(Be=>re.isNumber(parseInt(Be))&&parseInt(Be)?parseInt(Be):0);let ke=Math.max(...ve);G=G==null?void 0:G.map(Be=>{if(Be!=null&&Be.includes("'"))return Be==null?void 0:Be.replaceAll("'","");if(Be!=null&&Be.includes("@"))return ke+1;{let We=Object.keys(s);return Be=(s==null?void 0:s[Be])??(s==null?void 0:s[We==null?void 0:We.find(he=>he==null?void 0:he.includes("."+Be))]),Be}}),N=pe(...G)}catch(G){Xa.ElMessage.warning("关联数据出现错误,"+G.message)}let se=(te=l==null?void 0:l[X])==null?void 0:te.prop;s[se]=N}else s=await pe({contents:s,valueString:(U=l==null?void 0:l[X])==null?void 0:U.functionRelatedWords,prop:(q=l==null?void 0:l[X])==null?void 0:q.prop,filter:ze,headers:r,typeString:ue,allContents:i,compNames:p})}}return s},Rf=R.useLoginState(R.pinia),{loginUserInfo:wn}=R.storeToRefs(Rf),$f=R.useMenuState(R.pinia),{activeMenuPath:Ns,currentMenuPath:bo}=R.storeToRefs($f),zc=R.useUnit(R.pinia);let As="$R";const{selectTitle:Oi}=R.storeToRefs(zc),Mc=async(a,l)=>{var p,s,u,y,b,g,d,C,v,H,T,j,D;let r=Ns.value,n="",i=((p=Oi==null?void 0:Oi.value)==null?void 0:p.find(_=>(_==null?void 0:_.condition)==="child"&&!(_!=null&&_.relatedContent)))??void 0;(a==null?void 0:a.length)===0||(r=l?r:(s=a==null?void 0:a[0])==null?void 0:s.object_name,n=(u=a==null?void 0:a[0])==null?void 0:u.father_name);let o=[];if(n!==""){let _=n;(_==null?void 0:_[(_==null?void 0:_.length)-1])==="/"&&(_=_==null?void 0:_.slice(0,(_==null?void 0:_.length)-1));let S=await qr(_,!1);S=(y=S==null?void 0:S[0])==null?void 0:y.compData;let x=(b=S==null?void 0:S.find(E=>(E==null?void 0:E.key)==="header"))==null?void 0:b.contents;x=((g=x==null?void 0:x.find(E=>E==null?void 0:E.isMainKey))==null?void 0:g.prop)??((d=x==null?void 0:x[0])==null?void 0:d.prop);let k=(v=(C=S==null?void 0:S.find(E=>(E==null?void 0:E.key)==="tableContents"))==null?void 0:C.contents)==null?void 0:v.map(E=>({label:E==null?void 0:E[x],value:E==null?void 0:E[x]}));o=(H=n==null?void 0:n.split("/"))==null?void 0:H.map(E=>(E===""?i?(i.isShow=!0,E=i):E={value:E,condition:"child",options:k,parentContent:(n==null?void 0:n[(n==null?void 0:n.length)-1])==="/"?n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1):n,isShow:!0}:E={condition:"parent",value:E.trim(),isShow:!0},E))}if(r!==""){let _=(T=r==null?void 0:r.split("/"))==null?void 0:T.map(S=>(S={condition:"normal",value:S.trim(),isShow:!0},S));((j=_==null?void 0:_[0])==null?void 0:j.value)===((D=o==null?void 0:o[0])==null?void 0:D.value)&&(_=_==null?void 0:_.filter((S,x)=>x!==0)),o=[...o??[],..._??[]]}n===""&&i&&((i==null?void 0:i.parentContent)!==Ns.value&&(i.isShow=!1),(i==null?void 0:i.value)!==""&&o.push(i)),zc.setSelectTitle(o)},Vf=async a=>{var o,p,s,u,y,b,g,d,C;let l=await R.getPageDataApi({platId:parseInt((o=wn==null?void 0:wn.value)==null?void 0:o.plat_id),pageName:"menu"}),r=(p=l==null?void 0:l.data)==null?void 0:p.result,n=(b=(y=(u=(s=a==null?void 0:a.filter(v=>(v==null?void 0:v.comp)==="Table"))==null?void 0:s[0])==null?void 0:u.compData)==null?void 0:y.find(v=>(v==null?void 0:v.key)==="filter"))==null?void 0:b.contents;n=(C=(d=(g=n==null?void 0:n.replace("(",As))==null?void 0:g.split(As))==null?void 0:d[0])==null?void 0:C.replaceAll(":","/");let i=r==null?void 0:r.filter(v=>{var H;return(v==null?void 0:v.object_name)===bo.value+"/"||((H=bo.value)==null?void 0:H.includes(n))&&n+"/"===(v==null?void 0:v.object_name)||n===(v==null?void 0:v.object_name)});return(i==null?void 0:i.length)>0&&(a=a==null?void 0:a.map(v=>{var H;return(v==null?void 0:v.comp)==="Table"&&(v.compData=(H=v==null?void 0:v.compData)==null?void 0:H.map(T=>{var j,D,_;return(T==null?void 0:T.key)==="header"&&(Array.isArray((j=T.contents)==null?void 0:j[0])?T.contents[0]=(_=T.contents[0])==null?void 0:_.map((S,x)=>{var k;return x===0&&(S.isExistChild=!0,((k=bo.value)!=null&&k.includes(n)||n)&&(S.fatherPath=n)),S}):T.contents=(D=T.contents)==null?void 0:D.map((S,x)=>{var k;return x===0&&(S.isExistChild=!0,((k=bo.value)!=null&&k.includes(n)||n)&&(S.fatherPath=n)),S})),T})),v})),a},qr=async(a,l,r={})=>{var p,s,u,y,b,g,d,C,v,H,T,j;let n=await R.getPageDataApi({platId:parseInt((p=wn==null?void 0:wn.value)==null?void 0:p.plat_id),pageName:a}),i=(s=n==null?void 0:n.data)==null?void 0:s.result;if((i==null?void 0:i.length)===0&&(r!=null&&r.originPath)&&(r==null?void 0:r.originPath)!==a){let D=await R.getPageDataApi({platId:parseInt((u=wn==null?void 0:wn.value)==null?void 0:u.plat_id),pageName:r==null?void 0:r.originPath});if(((b=(y=D==null?void 0:D.data)==null?void 0:y.result)==null?void 0:b.length)>0){let _=await Bs((g=D==null?void 0:D.data)==null?void 0:g.result,r,!1);_=_==null?void 0:_.map(async k=>{var O,Q,J,ye,te,U,q,X,ee,pe,ze,ue,N,se,G,ve,ke,Be,We,he,I,Oe,oe,ge,xe,ne,we,Ke,ya,Ge;let E=[],M=(O=Object.keys(k))==null?void 0:O.filter(V=>(V==null?void 0:V.includes("name"))&&V!=="nameContents");for(let V in k)M!=null&&M.find(F=>F===V)&&E.push(k==null?void 0:k[V]);if(E=E.reverse(),(k==null?void 0:k.comp)==="Table"){let V=(ye=(J=(Q=k==null?void 0:k.compData)==null?void 0:Q.find(le=>(le==null?void 0:le.key)==="tableContents"))==null?void 0:J.contents)==null?void 0:ye.map(le=>{let fe={};for(let be in le)be!=="id"&&be!=="create_time"&&be!=="update_time"&&be!=="sort"&&be!=="create_user_id"&&be!=="update_user_id"&&be!=="department_id"&&be!=="relatedId"&&(fe[be]=le==null?void 0:le[be]);return le=Object.values(fe),le}),F=(U=(te=k==null?void 0:k.compData)==null?void 0:te.find(le=>(le==null?void 0:le.key)==="header"))==null?void 0:U.contents;if(Array.isArray(F==null?void 0:F[0])?(F[0].push({label:"排序",prop:"sort"}),F[0].push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(q=F[0])!=null&&q.find(le=>(le==null?void 0:le.prop)==="disabled")&&(F[0]=(X=F[0])==null?void 0:X.filter(le=>(le==null?void 0:le.prop)!=="disabled"),F[0].unshift({label:"",prop:"disabled",sortable:!1}))):(F||(F=[]),F.push({label:"排序",prop:"sort"}),F.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),F!=null&&F.find(le=>(le==null?void 0:le.prop)==="disabled")&&(F=F==null?void 0:F.filter(le=>(le==null?void 0:le.prop)!=="disabled"),F.unshift({label:"",prop:"disabled",sortable:!1}))),F!=null&&F.some(le=>{var fe;return(le==null?void 0:le.calculatorFilter)&&((fe=le==null?void 0:le.calculatorFilter)==null?void 0:fe.includes("Auto"))})&&(V=await Nt(V,F,"Auto"),V=V==null?void 0:V.map(le=>Object.values(le))),k!=null&&k.fatherSyncContents){Array.isArray((ee=k==null?void 0:k.fatherSyncContents)==null?void 0:ee[0])&&(k.fatherSyncContents=(pe=k==null?void 0:k.fatherSyncContents)==null?void 0:pe[0]);let le=(ze=Oi.value)==null?void 0:ze.find(fe=>(fe==null?void 0:fe.condition)==="child");k.fatherSyncContents=(ue=k==null?void 0:k.fatherSyncContents)==null?void 0:ue.map(fe=>{var be,ua,ia,Pe,va,Ea;return((ua=fe==null?void 0:fe.menus)==null?void 0:ua[((be=fe==null?void 0:fe.menus)==null?void 0:be.length)-1])==="/"&&(le==null?void 0:le.parentContent)+"/"!==(fe==null?void 0:fe.menus)?fe.menus=(fe==null?void 0:fe.menus)+(le==null?void 0:le.value):((Pe=fe==null?void 0:fe.menus)==null?void 0:Pe[((ia=fe==null?void 0:fe.menus)==null?void 0:ia.length)-1])==="/"&&(le==null?void 0:le.parentContent)+"/"===(fe==null?void 0:fe.menus)&&(fe.menus=(Ea=fe.menus)==null?void 0:Ea.slice(0,((va=fe.menus)==null?void 0:va.length)-1)),fe})}if(k!=null&&k.sonSyncContents){Array.isArray((N=k==null?void 0:k.sonSyncContents)==null?void 0:N[0])&&(k.sonSyncContents=(se=k==null?void 0:k.sonSyncContents)==null?void 0:se[0]);let le=(G=Oi.value)==null?void 0:G.find(fe=>(fe==null?void 0:fe.condition)==="child");k.sonSyncContents=(ve=k==null?void 0:k.sonSyncContents)==null?void 0:ve.map(fe=>{var be,ua,ia,Pe,va,Ea;return((ua=fe==null?void 0:fe.menus)==null?void 0:ua[((be=fe==null?void 0:fe.menus)==null?void 0:be.length)-1])==="/"&&(le==null?void 0:le.parentContent)+"/"!==(fe==null?void 0:fe.menus)?fe.menus=(fe==null?void 0:fe.menus)+(le==null?void 0:le.value):((Pe=fe==null?void 0:fe.menus)==null?void 0:Pe[((ia=fe==null?void 0:fe.menus)==null?void 0:ia.length)-1])==="/"&&(le==null?void 0:le.parentContent)+"/"===(fe==null?void 0:fe.menus)&&(fe.menus=(Ea=fe.menus)==null?void 0:Ea.slice(0,((va=fe.menus)==null?void 0:va.length)-1)),fe})}if(k!=null&&k.relatedQuotes){Array.isArray((ke=k==null?void 0:k.relatedQuotes)==null?void 0:ke[0])&&(k.relatedQuotes=(Be=k==null?void 0:k.relatedQuotes)==null?void 0:Be[0]);let le=(We=Oi.value)==null?void 0:We.find(fe=>(fe==null?void 0:fe.condition)==="child");k.relatedQuotes=(he=k==null?void 0:k.relatedQuotes)==null?void 0:he.map(fe=>{var be,ua,ia,Pe,va,Ea;return((ua=fe==null?void 0:fe.menus)==null?void 0:ua[((be=fe==null?void 0:fe.menus)==null?void 0:be.length)-1])==="/"&&(le==null?void 0:le.parentContent)+"/"!==(fe==null?void 0:fe.menus)?fe.menus=(fe==null?void 0:fe.menus)+(le==null?void 0:le.value):((Pe=fe==null?void 0:fe.menus)==null?void 0:Pe[((ia=fe==null?void 0:fe.menus)==null?void 0:ia.length)-1])==="/"&&(le==null?void 0:le.parentContent)+"/"===(fe==null?void 0:fe.menus)&&(fe.menus=(Ea=fe.menus)==null?void 0:Ea.slice(0,((va=fe.menus)==null?void 0:va.length)-1)),fe})}k={filter:(Oe=(I=k==null?void 0:k.compData)==null?void 0:I.find(le=>(le==null?void 0:le.key)==="filter"))==null?void 0:Oe.contents,key:k==null?void 0:k.comp,name:E,tableColumns:F,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,calculatorFilters:k==null?void 0:k.calculatorFilters}}else{let V=(xe=(ge=(oe=k==null?void 0:k.compData)==null?void 0:oe.find(le=>(le==null?void 0:le.key)==="formContent"))==null?void 0:ge.contents)==null?void 0:xe.map(le=>(le==null?void 0:le.value)??"");V=[V];let F=(Ke=(we=(ne=k==null?void 0:k.compData)==null?void 0:ne.find(le=>(le==null?void 0:le.key)==="formContent"))==null?void 0:we.contents)==null?void 0:Ke.map(le=>(le.value="",le));k={contents:V,filter:(Ge=(ya=k==null?void 0:k.compData)==null?void 0:ya.find(le=>(le==null?void 0:le.key)==="filter"))==null?void 0:Ge.contents,key:k==null?void 0:k.comp,name:E,value:F,fatherSyncContents:k==null?void 0:k.fatherSyncContents,relatedQuotes:k==null?void 0:k.relatedQuotes,sonSyncContents:k==null?void 0:k.sonSyncContents,calculatorFilters:k==null?void 0:k.calculatorFilters}}return k.isShow=!1,k}),_=await Promise.all(_);let S=[{key:"menuPath",contents:[{path:a,fatherPath:(v=(C=(d=D==null?void 0:D.data)==null?void 0:d.result)==null?void 0:C[0])==null?void 0:v.father_name,isShow:!1}]},{key:a,contents:_}];await R.createPlatFormDataApi({platId:parseInt((H=wn==null?void 0:wn.value)==null?void 0:H.plat_id),changeData:S});let x=await R.getPageDataApi({platId:parseInt((T=wn==null?void 0:wn.value)==null?void 0:T.plat_id),pageName:a});i=(j=x==null?void 0:x.data)==null?void 0:j.result}}l&&await Mc(i,!!(r!=null&&r.originPath));let o=await Bs(i,r);return l&&(o=await Vf(o)),o==null?void 0:o.filter(D=>D)},zs=async a=>{var n,i,o,p,s,u,y,b,g,d,C;let l=(n=a==null?void 0:a.menus)==null?void 0:n.join("/");a!=null&&a.endChildMenu&&(a==null?void 0:a.endChildMenu)!==""&&(l==null?void 0:l[(l==null?void 0:l.length)-1])==="/"&&(l=l+(a==null?void 0:a.endChildMenu)),(l==null?void 0:l[(l==null?void 0:l.length)-1])==="/"&&(l=l+((o=(i=a.value)==null?void 0:i.split(" "))==null?void 0:o[0]));let r=await qr(l,!1);if(r=(p=r==null?void 0:r.filter(v=>{var H,T;return(v==null?void 0:v.name)===((T=a==null?void 0:a.groups)==null?void 0:T[((H=a==null?void 0:a.groups)==null?void 0:H.length)-1])}))==null?void 0:p[0],(u=(s=r==null?void 0:r.compData)==null?void 0:s.find(v=>(v==null?void 0:v.key)==="tableContents"))!=null&&u.contents){r=(b=(y=r==null?void 0:r.compData)==null?void 0:y.find(H=>(H==null?void 0:H.key)==="tableContents"))==null?void 0:b.contents;let v=((g=a==null?void 0:a.words)==null?void 0:g[0])??(a==null?void 0:a.prop);return r=r==null?void 0:r.filter(H=>{var T,j,D,_;return(H==null?void 0:H[a!=null&&a.endChildMenu?v:(T=a==null?void 0:a.words)==null?void 0:T[0]])===(a!=null&&a.relatedWords&&((j=a==null?void 0:a.relatedWords)==null?void 0:j.length)>0?(_=(D=a.value)==null?void 0:D.split(" "))==null?void 0:_[0]:a.value)}),r==null?void 0:r[0]}else{let v=(C=(d=r==null?void 0:r.compData)==null?void 0:d.find(T=>(T==null?void 0:T.key)==="formContent"))==null?void 0:C.contents,H={};return v==null||v.forEach(T=>{H[T.prop]=T.value}),H}},Ff={key:0,class:"extra-button-content"},Pf={class:"table-operator-wrap"},Hf={key:0,class:"extra-button-filter"},jf={key:1,class:"extra-header"},Uf=["onClick"],qf={class:"table-op-text"},Wf={class:"table-op-text"},Gf={class:"drop-menu",style:{width:"120px"}},Kf=["onClick"],Yf={key:0},Jf={key:1},Xf=["onClick"],Zf={class:"table-op-text"},Qf={key:1,class:"extra-button-content tabs-button-wrapper"},e0={class:"table-operator-wrap"},a0={class:"extra-button-filter"},l0={key:0,class:"extra-header"},r0={class:"table-op-action"},n0={class:"table-op-text"},i0={class:"drop-menu",style:{width:"120px"}},o0={key:0},t0={key:1},s0=["onClick"],c0={class:"table-op-text"},u0={__name:"header",props:{pageLayout:{type:String,default:"vertical"},lockingPage:Boolean,level:{type:Number,default:1},compName:{type:String,default:"表格名称",required:!1},filterShow:{type:Boolean,default:!1},isDevMode:Boolean,selectNums:Number,dataNums:Number,filterValues:Array,buttons:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},menuFilter:{type:Array,default:()=>[]}},emits:["buttonClick","filter","getImportData"],setup(a,{emit:l}){const r=l,n=a,i=()=>{const M=(n==null?void 0:n.menuFilter)||[];return Array.isArray(M)&&(M==null?void 0:M.some(O=>{const Q=typeof O=="string"?O:JSON.stringify(O);return Q==null?void 0:Q.includes("HideGroup=Yes")}))},o=e.ref(""),p=e.ref(!1),s=e.ref(!1),u=e.ref([]),y=e.ref([{label:"清空",background:"#999999"},{label:"确认"}]),b=[{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 g(M,O){return M.map(Q=>{const J={...Q};return O.forEach(ye=>{delete J[ye]}),J})}function d(M){if(!M||M.t!=="n")return(M==null?void 0:M.v)??"";const O=M.v;if(M.z){const Q=String(M.z).toLowerCase(),J=["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 U of J)if(Q.includes(U))return C(O);const ye=/[ymdhms]/.test(Q),te=/^[0#\.\,\s]+$/.test(Q.replace(/[\\\/\-:]/g,""));if(ye&&!te)return C(O)}if(O>=1&&O<=73050){if(O<5e3)return O;if(O>=5e3&&O<4e4){const Q=Math.floor((O-25569)/365.25)+1970;return Q>=1970&&Q<=2e3&&M.z&&/[ymd]/.test(String(M.z).toLowerCase())?C(O):O}if(O>=4e4)return C(O)}return O}function C(M){if(typeof M!="number")return M;try{const O=new Date((M-25569)*86400*1e3);if(isNaN(O.getTime()))return M;const Q=O.getFullYear(),J=String(O.getMonth()+1).padStart(2,"0"),ye=String(O.getDate()).padStart(2,"0");return`${Q}-${J}-${ye}`}catch{return M}}const v=M=>{const O=M.raw;if(!O)return;const Q=new FileReader;Q.onload=J=>{try{const ye=new Uint8Array(J.target.result),te=re.readSync(ye,{type:"array"}),U=te.SheetNames[0],q=te.Sheets[U],ee=re.utils.decode_range(q["!ref"]).e.c+1,pe=new Array(ee).fill(""),ze=[];for(const ve in q){if(ve[0]==="!")continue;const{r:ke,c:Be}=re.utils.decode_cell(ve),We=q[ve];let he=d(We);if((he==null||he==="")&&(he=""),ke===0)pe[Be]=he;else{if(!ze[ke-1]){ze[ke-1]={};for(let I=0;I<ee;I++)ze[ke-1][`col_${I}`]=""}ze[ke-1][`col_${Be}`]=he}}for(let ve=0;ve<ee;ve++)pe[ve]===void 0&&(pe[ve]="");const ue=[];for(let ve=0;ve<pe.length;ve++)(!pe[ve]||pe[ve].toString().trim()==="")&&ue.push(ve);let N,se;(ue==null?void 0:ue.length)>0?(Xa.ElMessage.warning("存在键为空的列,已自动过滤,请检查补充"),N=pe.filter((ve,ke)=>!ue.includes(ke)),se=g(ze,ue==null?void 0:ue.map(ve=>`col_${ve}`))):(N=pe,se=ze);const G=ze==null?void 0:ze[0];if(!(G!=null&&G.hasOwnProperty("col_0")))return Xa.ElMessage.error("导入的数据列不匹配,请检查是否错位");r("getImportData",N,se)}catch(ye){throw Xa.ElMessage.error(ye.message),new Error(ye.message)}},Q.readAsArrayBuffer(O)},H=M=>{var Q;const O=(Q=u.value)==null?void 0:Q.reduce((J,ye,te)=>(te===0?J[ye.label]=M:J[ye.label]=ye==null?void 0:ye.value,J),{});r("filter",O,M,!0)},T=(M,O={})=>{r("buttonClick",M,"",O)},j=M=>{var O,Q;u.value=(Q=(O=re.getColumnChild(R.cloneDeep(M)))==null?void 0:O.filter(J=>(J==null?void 0:J.label)!==""&&(J==null?void 0:J.label)!=="操作"))==null?void 0:Q.map(J=>({label:(J==null?void 0:J.label)??"",value:"",name:(J==null?void 0:J.prop)??"",isFormColHidden:J==null?void 0:J.isTableColHidden,width:3,prop:(J==null?void 0:J.prop)??""}))},D=e.ref(!1),_=M=>{var O;if((M==null?void 0:M.buttonName)==="确认"&&(r("filter",M==null?void 0:M.content),D.value=(M==null?void 0:M.content)&&Object.values(M==null?void 0:M.content).length>0),(M==null?void 0:M.buttonName)==="清空"){const Q=R.cloneDeep(M==null?void 0:M.content);for(const J in Q)Q[J]="";u.value=(O=u.value)==null?void 0:O.map(J=>({...J,value:""})),r("filter",Q),D.value=!1}p.value=!1},S=()=>{p.value=!p.value,s.value=!0},x=()=>{var O,Q;u.value=(O=u.value)==null?void 0:O.map(J=>({...J,value:""}));const M=(Q=u.value)==null?void 0:Q.reduce((J,ye)=>(J[ye.label]=ye.value,J),{});r("filter",M)},k=e.ref(null);let E;return E=M=>{var ye;if(!p.value)return;const O=(ye=k==null?void 0:k.value)==null?void 0:ye.$el,Q=O==null?void 0:O.contains(M.target);let J=!1;document.querySelectorAll(".el-popover, .el-popper").forEach(te=>{te.contains(M.target)&&(J=!0)}),!Q&&!J&&(p.value=!1)},e.onMounted(()=>{document.addEventListener("click",E),j(n.columns)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",E)}),e.watch(()=>n.columns,()=>{j(n.columns)},{deep:!0,immediate:!0}),(M,O)=>{var q,X,ee,pe,ze,ue,N,se;const Q=e.resolveComponent("el-icon"),J=e.resolveComponent("svg-icon"),ye=e.resolveComponent("el-input"),te=e.resolveComponent("el-upload"),U=e.resolveComponent("el-button");return a.pageLayout==="vertical"?(e.openBlock(),e.createElementBlock("div",Ff,[i()?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(a.compName?"table-name-wrap":""),style:e.normalizeStyle({background:(n==null?void 0:n.level)>1?"transparent":"var(--ssgroup-background)",paddingLeft:((n==null?void 0:n.level)-1)*12+"px",fontWeight:600-((n==null?void 0:n.level)-1)*100>=400?600-((n==null?void 0:n.level)-1)*100:400,fontSize:17-(n==null?void 0:n.level)>=14?17-(n==null?void 0:n.level)+"px":"14px"})},e.toDisplayString(a.compName),7)),e.createElementVNode("div",Pf,[n!=null&&n.filterShow?(e.openBlock(),e.createElementBlock("div",Hf,[e.createVNode(vd,{trigger:"contextmenu",ref_key:"popOverRef",ref:k,title:"",width:800,placement:"bottom-start",isVisible:p.value,"onUpdate:isVisible":O[4]||(O[4]=G=>p.value=G)},{reference:e.withCtx(()=>{var G,ve,ke,Be;return[e.createVNode(ye,{modelValue:o.value,"onUpdate:modelValue":O[0]||(O[0]=We=>o.value=We),style:{"min-width":"80px"},placeholder:D.value?(ke=(ve=(G=a.filterValues)==null?void 0:G.filter(We=>We))==null?void 0:ve.slice(0,3))==null?void 0:ke.join("/"):"搜索","prefix-icon":e.unref(Xa.search_default),clearable:"",onInput:H,disabled:((Be=u.value)==null?void 0:Be.length)===0},{suffix:e.withCtx(()=>{var We,he;return[!o.value&&((he=(We=a.filterValues)==null?void 0:We.filter(I=>I))!=null&&he.join("/"))?(e.openBlock(),e.createBlock(Q,{key:0,style:{cursor:"pointer"},onClick:x},{default:e.withCtx(()=>[e.createVNode(e.unref(Xa.circle_close_default))]),_:1})):e.createCommentVNode("",!0)]}),append:e.withCtx(()=>[e.createElementVNode("span",{title:"条件查询",onClick:e.withModifiers(S,["stop"])},[e.createVNode(J,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:e.withCtx(()=>[s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"form-content-value",onKeydown:O[1]||(O[1]=e.withModifiers(()=>{},["stop"])),onKeyup:O[2]||(O[2]=e.withModifiers(()=>{},["stop"])),onKeypress:O[3]||(O[3]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(),e.createBlock(ul.ssForm,{rowContents:u.value,buttonValue:y.value,isEnableWrap:!1,isButtonRow:!1,key:y.value,isStartJustify:!1,onOnButtonClick:_},null,8,["rowContents","buttonValue"]))],32)):e.createCommentVNode("",!0)]),_:1},8,["isVisible"])])):e.createCommentVNode("",!0),a.buttons&&((q=a.buttons)==null?void 0:q.length)>0?(e.openBlock(),e.createElementBlock("div",jf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((X=a.buttons)==null?void 0:X.filter(G=>a.isDevMode||(G==null?void 0:G.label)!=="修改模板"),(G,ve)=>{var ke;return e.openBlock(),e.createElementBlock("div",{class:"extra-contents",key:ve},[(G==null?void 0:G.type)==="upload"?(e.openBlock(),e.createBlock(te,{key:0,class:"upload-button-wrap","on-change":v,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1,disabled:!!a.lockingPage},{default:e.withCtx(()=>{var Be;return[e.createElementVNode("div",{class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}]),onClick:We=>T(G==null?void 0:G.label)},[e.createVNode(J,{class:"table-op-icon",name:(Be=b==null?void 0:b.find(We=>(We==null?void 0:We.label)===(G==null?void 0:G.label)))==null?void 0:Be.icon},null,8,["name"]),e.createElementVNode("span",qf,e.toDisplayString(G==null?void 0:G.label),1)],10,Uf)]}),_:2},1032,["disabled"])):e.createCommentVNode("",!0),(G==null?void 0:G.type)==="popover"?(e.openBlock(),e.createBlock(ul._sfc_main,{key:1},{dropTitle:e.withCtx(()=>{var Be;return[e.createElementVNode("div",{class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}])},[e.createVNode(J,{class:"table-op-icon",name:(Be=b==null?void 0:b.find(We=>(We==null?void 0:We.label)===(G==null?void 0:G.label)))==null?void 0:Be.icon},null,8,["name"]),e.createElementVNode("span",Wf,e.toDisplayString(G==null?void 0:G.label),1)],2)]}),dropMenu:e.withCtx(()=>[e.createElementVNode("div",Gf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(G==null?void 0:G.contents,Be=>{var We,he;return e.openBlock(),e.createElementBlock("div",{key:Be==null?void 0:Be.label,class:e.normalizeClass(["table-op-drop-item",{"is-disabled":!!a.lockingPage}]),onClick:I=>!a.lockingPage&&T(Be==null?void 0:Be.label)},[e.createTextVNode(e.toDisplayString(Be==null?void 0:Be.label),1),(We=Be==null?void 0:Be.label)!=null&&We.includes("选中")?(e.openBlock(),e.createElementBlock("span",Yf,"("+e.toDisplayString(a.selectNums)+")",1)):e.createCommentVNode("",!0),(he=Be==null?void 0:Be.label)!=null&&he.includes("全部")?(e.openBlock(),e.createElementBlock("span",Jf,"("+e.toDisplayString(a.dataNums)+")",1)):e.createCommentVNode("",!0)],10,Kf)}),128))])]),_:2},1024)):e.createCommentVNode("",!0),!(G!=null&&G.type)||(G==null?void 0:G.type)==="methodButton"?(e.openBlock(),e.createElementBlock("div",{key:2,id:"themeButton",class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}]),onClick:Be=>!a.lockingPage&&T(G==null?void 0:G.label,G)},[e.createVNode(J,{class:"table-op-icon",name:((ke=b==null?void 0:b.find(Be=>(Be==null?void 0:Be.label)===(G==null?void 0:G.label)))==null?void 0:ke.icon)??"normal"},null,8,["name"]),e.createElementVNode("span",Zf,e.toDisplayString(G==null?void 0:G.label),1)],10,Xf)):e.createCommentVNode("",!0)])}),128))])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createElementBlock("div",Qf,[e.createElementVNode("div",e0,[e.createElementVNode("div",a0,[e.createVNode(ye,{modelValue:o.value,"onUpdate:modelValue":O[5]||(O[5]=G=>o.value=G),style:{"min-width":"80px"},placeholder:D.value?(ze=(pe=(ee=a.filterValues)==null?void 0:ee.filter(G=>G))==null?void 0:pe.slice(0,3))==null?void 0:ze.join("/"):"搜索","prefix-icon":e.unref(Xa.search_default),clearable:"",onInput:H,disabled:((ue=u.value)==null?void 0:ue.length)===0},{suffix:e.withCtx(()=>{var G,ve;return[!o.value&&((ve=(G=a.filterValues)==null?void 0:G.filter(ke=>ke))!=null&&ve.join("/"))?(e.openBlock(),e.createBlock(Q,{key:0,style:{cursor:"pointer"},onClick:x},{default:e.withCtx(()=>[e.createVNode(e.unref(Xa.circle_close_default))]),_:1})):e.createCommentVNode("",!0)]}),append:e.withCtx(()=>[e.createElementVNode("span",{title:"条件查询",onClick:e.withModifiers(S,["stop"])},[e.createVNode(J,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]),a.buttons&&((N=a.buttons)==null?void 0:N.length)>0?(e.openBlock(),e.createElementBlock("div",l0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((se=a.buttons)==null?void 0:se.filter(G=>a.isDevMode||(G==null?void 0:G.label)!=="修改模板"),(G,ve)=>{var ke;return e.openBlock(),e.createElementBlock("div",{class:"extra-contents",key:ve},[(G==null?void 0:G.type)==="upload"?(e.openBlock(),e.createBlock(te,{key:0,class:"upload-button-wrap","on-change":v,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1},{default:e.withCtx(()=>{var Be;return[e.createElementVNode("div",r0,[e.createVNode(J,{class:"table-op-icon",name:(Be=b==null?void 0:b.find(We=>(We==null?void 0:We.label)===(G==null?void 0:G.label)))==null?void 0:Be.icon},null,8,["name"]),e.createElementVNode("span",n0,e.toDisplayString(G==null?void 0:G.label),1)])]}),_:2},1024)):e.createCommentVNode("",!0),(G==null?void 0:G.type)==="popover"?(e.openBlock(),e.createBlock(ul._sfc_main,{key:1},{dropTitle:e.withCtx(()=>[(G==null?void 0:G.type)==="popover"?(e.openBlock(),e.createBlock(U,{key:0,style:{background:"transparent",color:"#000000"}},{icon:e.withCtx(()=>{var Be;return[e.createVNode(J,{class:"table-op-icon",name:(Be=b==null?void 0:b.find(We=>(We==null?void 0:We.label)===(G==null?void 0:G.label)))==null?void 0:Be.icon},null,8,["name"])]}),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(G==null?void 0:G.label),1)]),_:2},1024)):e.createCommentVNode("",!0)]),dropMenu:e.withCtx(()=>[e.createElementVNode("div",i0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(G==null?void 0:G.contents,Be=>(e.openBlock(),e.createBlock(U,{key:Be==null?void 0:Be.label,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:We=>T(Be==null?void 0:Be.label)},{default:e.withCtx(()=>{var We,he;return[e.createTextVNode(e.toDisplayString(Be==null?void 0:Be.label),1),(We=Be==null?void 0:Be.label)!=null&&We.includes("选中")?(e.openBlock(),e.createElementBlock("span",o0,"("+e.toDisplayString(a.selectNums)+")",1)):e.createCommentVNode("",!0),(he=Be==null?void 0:Be.label)!=null&&he.includes("全部")?(e.openBlock(),e.createElementBlock("span",t0,"("+e.toDisplayString(a.dataNums)+")",1)):e.createCommentVNode("",!0)]}),_:2},1032,["onClick"]))),128))])]),_:2},1024)):e.createCommentVNode("",!0),!(G!=null&&G.type)||(G==null?void 0:G.type)==="methodButton"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}]),id:"themeButton",onClick:Be=>!a.lockingPage&&T(G==null?void 0:G.label,G)},[e.createVNode(J,{class:"table-op-icon",name:(ke=b==null?void 0:b.find(Be=>(Be==null?void 0:Be.label)===(G==null?void 0:G.label)))==null?void 0:ke.icon},null,8,["name"]),e.createElementVNode("span",c0,e.toDisplayString(G==null?void 0:G.label),1)],10,s0)):e.createCommentVNode("",!0)])}),128))])):e.createCommentVNode("",!0)])]))}}},d0=fr._export_sfc(u0,[["__scopeId","data-v-c54c7b35"]]),p0={__name:"index",props:{columns:Array,tableData:Array},setup(a){return(l,r)=>{const n=e.resolveComponent("el-table-column"),i=e.resolveComponent("el-table");return e.openBlock(),e.createBlock(i,{data:a.tableData,style:{width:"100%"},stripe:"","max-height":"500"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.columns,o=>{var p;return e.openBlock(),e.createBlock(n,{key:o==null?void 0:o.prop,label:o==null?void 0:o.label,prop:o==null?void 0:o.prop,fixed:(o==null?void 0:o.prop)==="operate"?"right":o==null?void 0:o.fixed,align:(o==null?void 0:o.align)??"left","show-overflow-tooltip":(o==null?void 0:o.showOverflowTooltip)??!0,width:o==null?void 0:o.width,"min-width":(o==null?void 0:o.minWidth)||((o==null?void 0:o.prop)==="operate"?80:(((p=o==null?void 0:o.label)==null?void 0:p.length)*2||4)*27)},{default:e.withCtx(s=>[e.renderSlot(l.$slots,"content",{row:s.row,column:s.column,$index:s.$index,scope:s}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.children,(u,y)=>(e.openBlock(),e.createBlock(ul._sfc_main$2,{key:y,column:u,tableData:a.tableData},e.createSlots({_:2},[e.renderList(l.$slots,(b,g)=>({name:g,fn:e.withCtx(({row:d,slotData:C,item:v,column:H})=>[e.renderSlot(l.$slots,g,e.mergeProps({ref_for:!0},C??d,{item:v??u,slotData:C??d,row:d,column:H,columnProp:u}))])}))]),1032,["column","tableData"]))),128))]),_:2},1032,["label","prop","fixed","align","show-overflow-tooltip","width","min-width"])}),128))]),_:3},8,["data"])}}};class f0 extends Fl.Loader{constructor(l){super(l),this.littleEndian=!0}load(l,r,n,i){const o=this,p=new Fl.FileLoader(o.manager);p.setPath(o.path),p.setResponseType("arraybuffer"),p.setRequestHeader(o.requestHeader),p.setWithCredentials(o.withCredentials),p.load(l,function(s){try{r(o.parse(s))}catch(u){i?i(u):console.error(u),o.manager.itemError(l)}},n,i)}_getDataView(l,r,n,i){switch(n){case"F":return i===8?l.getFloat64(r,this.littleEndian):l.getFloat32(r,this.littleEndian);case"I":return i===1?l.getInt8(r):i===2?l.getInt16(r,this.littleEndian):l.getInt32(r,this.littleEndian);case"U":return i===1?l.getUint8(r):i===2?l.getUint16(r,this.littleEndian):l.getUint32(r,this.littleEndian)}}parse(l){function r(C,v){const H=C.length,T=new Uint8Array(v);let j=0,D=0,_,S,x;do if(_=C[j++],_<32){if(_++,D+_>v)throw new Error("Output buffer is not large enough");if(j+_>H)throw new Error("Invalid compressed data");do T[D++]=C[j++];while(--_)}else{if(S=_>>5,x=D-((_&31)<<8)-1,j>=H)throw new Error("Invalid compressed data");if(S===7&&(S+=C[j++],j>=H))throw new Error("Invalid compressed data");if(x-=C[j++],D+S+2>v)throw new Error("Output buffer is not large enough");if(x<0)throw new Error("Invalid compressed data");if(x>=D)throw new Error("Invalid compressed data");do T[D++]=T[x++];while(--S+2)}while(j<H);return T}function n(C){const v={},H=new Uint8Array(C);let T="",j="",D=0,_=!1;const S=H.length;for(;D<S&&_===!1;){const M=String.fromCharCode(H[D++]);M===`
|
|
1
|
+
"use strict";var sd=Object.defineProperty;var cd=(a,l,r)=>l in a?sd(a,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[l]=r;var hn=(a,l,r)=>cd(a,typeof l!="symbol"?l+"":l,r);const e=require("vue"),Xa=require("./request-Dl8yi2iS.cjs"),R=require("./index-CMUsYepp.cjs"),ul=require("./index-C8rCLtrq.cjs"),re=require("./index-BuZHI6xx.cjs"),fr=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Fl=require("./index.vue_vue_type_style_index_0_scoped_07c75c98_lang-J7Knzs4U.cjs"),Vr=require("./index-B-pflqKE.cjs"),Do=require("./threeViewerHost-VZoDtZCO.cjs"),Zr=require("./index-DmwxzDGW.cjs"),_s=require("./index-CDTGjAKk.cjs"),bc=require("./index-DkTHtURJ.cjs");;/* empty css */const No=require("./isString-CGrvcmBw.cjs"),Ss=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),kc=require("./index-BVaHwt5f.cjs"),ud=require("./index-CPTra5LJ.cjs"),Yn=require("./MTLLoader-DqJ6tn_v.cjs"),dd=require("./URDFLoader-CnIz461N.cjs");var pd="[object Boolean]";function xc(a){return a===!0||a===!1||Xa.isObjectLike(a)&&Xa.baseGetTag(a)==pd}function fd(a){return a===void 0}const hd=a=>a.match(/\((.*)\)/)[1],vd={__name:"index",props:{isVisible:{type:Boolean,default:!1},title:{type:String,default:""},placement:{type:String,default:"bottom"},width:{type:Number,default:200},trigger:{type:String,default:"click"}},setup(a){const l=a,r=e.ref(null),n=e.ref(!1),i=e.ref(null);return e.watch(()=>l==null?void 0:l.isVisible,()=>{n.value=l==null?void 0:l.isVisible},{deep:!0,immediate:!0}),e.watch(()=>i.value,()=>{e.nextTick(()=>{var o,p;(p=(o=r.value)==null?void 0:o.updatePopper)==null||p.call(o)})},{deep:!0,immediate:!0}),(o,p)=>{const s=e.resolveComponent("el-popover");return e.openBlock(),e.createBlock(s,{visible:n.value,"onUpdate:visible":p[0]||(p[0]=u=>n.value=u),trigger:l.trigger,title:l==null?void 0:l.title,placement:l==null?void 0:l.placement,width:l==null?void 0:l.width,ref_key:"popOverRef",ref:r,"trigger-keys":"[]"},{reference:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(o.$slots,"reference",{ref_key:"referenceRef",ref:i})])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(o.$slots,"content")])]),_:3},8,["visible","trigger","title","placement","width"])}}},md=e.defineComponent({__name:"index",props:{value:{type:[String,Number],default:""},columnContent:{type:Object,default:{}}},setup(a){const l=a,r=e.computed(()=>{var u,y,b,g,d,C;const n=l.value??"";let i=(u=l==null?void 0:l.columnContent)==null?void 0:u.filter;if(i=(y=re.analyzeSplitToContent(i,","))==null?void 0:y.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)),v)),i=i==null?void 0:i.find(v=>(v==null?void 0:v[0])==="("),(i==null?void 0:i[0])==="("&&(i=i==null?void 0:i.slice(1,(i==null?void 0:i.length)-1)),i=i==null?void 0:i.split("||"),!i)return{backgroundColor:void 0,color:void 0};let o=(g=(b=l==null?void 0:l.columnContent)==null?void 0:b.options)==null?void 0:g.findIndex(v=>(v==null?void 0:v.value)===n);o=i==null?void 0:i[o],o=re.analyzeSplitToContent(o,","),o=o==null?void 0:o.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)),v));let p=o==null?void 0:o.find(v=>v==null?void 0:v.includes("@TextBackRGBA"));p?p=re.rgbaToColor((d=p==null?void 0:p.split("="))==null?void 0:d[1]):p=void 0;let s=o==null?void 0:o.find(v=>v==null?void 0:v.includes("@TextRGBA"));return s?s=re.rgbaToColor((C=s==null?void 0:s.split("="))==null?void 0:C[1]):s=void 0,{backgroundColor:p,color:s}});return(n,i)=>a.value!==void 0&&a.value!==null?(e.openBlock(),e.createElementBlock("span",{key:0,class:"task-status-tag",style:e.normalizeStyle(r.value)},e.toDisplayString(a.value===0?"0":a.value),5)):e.createCommentVNode("",!0)}}),wc=fr._export_sfc(md,[["__scopeId","data-v-3290070b"]]);function yd(a,l,r,n={}){if(!a||!l||!r||r.length!==4)return;const i=a.getContext("2d");if(!i)return;const{color:o="rgba(255, 235, 59, 0.3)",strokeWidth:p=2,fillOpacity:s=.2}=n,u=a.getBoundingClientRect(),y=l.getBoundingClientRect(),b=l.naturalWidth,g=l.naturalHeight,d=y.width/b,C=y.height/g,v=Math.min(d,C),H=b*v,T=g*v,j=(u.width-H)/2,D=(u.height-T)/2,_=r.map(([x,k])=>{const E=j+x*H,M=D+k*T;return{x:E,y:M}});i.clearRect(0,0,a.width,a.height),i.beginPath(),i.moveTo(_[0].x,_[0].y);for(let x=1;x<_.length;x++)i.lineTo(_[x].x,_[x].y);i.closePath();const S=o.replace(/[\d.]+\)$/,`${s})`);i.fillStyle=S,i.fill(),i.strokeStyle=o.replace(/[\d.]+\)$/,"1)"),i.lineWidth=p,i.stroke()}function Ni(a){if(!a)return;const l=a.getContext("2d");l&&l.clearRect(0,0,a.width,a.height)}function Es(a,l){if(!a||!l)return null;const r=a[l];return!r||!r.bboxNorm||!Array.isArray(r.bboxNorm)||r.bboxNorm.length!==4?null:{bboxNorm:r.bboxNorm,imageName:r.imageName||""}}const gd={key:0,class:"ocr-img-preview-root"},bd={class:"ocr-img-preview-window"},kd={key:0,class:"img-preview-body"},xd={class:"img-preview-header"},wd={class:"img-header-left"},_d={class:"img-name"},Sd={key:0,class:"img-header-right"},Ed={class:"img-index"},Cd={key:0,class:"img-thumb-list"},Td=["onClick"],Bd={key:1,class:"thumb-placeholder"},Dd={class:"thumb-name"},Nd={class:"img-preview-container"},Ad={key:0,class:"img-placeholder"},zd={key:2,class:"img-placeholder"},Md={key:0},Id={key:1},Od={key:1,class:"img-placeholder"},Ld=e.defineComponent({__name:"imgPreview",props:{visible:{type:Boolean,default:!1},images:{type:Array,default:()=>[]},defaultImageName:{type:String,default:""},fieldMeta:{type:Object,default:()=>({})},focusedFieldName:{type:String,default:""}},emits:["update:visible","close"],setup(a,{emit:l}){const r=a,n=l,i=e.computed({get:()=>r.visible,set:N=>n("update:visible",N)});let o=!1,p="",s=0,u=0,y=0,b=0,g=0,d=0,C=null;const v=N=>{var G,ve;const se=(ve=(G=N==null?void 0:N.target)==null?void 0:G.closest)==null?void 0:ve.call(G,".ocr-img-preview-window");return se||document.querySelector(".ocr-img-preview-window")},H=N=>{if(!N||N==="none")return{tx:0,ty:0};let se=N.match(/matrix\(([^)]+)\)/);if(se){const G=se[1].split(",").map(ve=>Number(ve.trim()));return{tx:(G==null?void 0:G[4])||0,ty:(G==null?void 0:G[5])||0}}if(se=N.match(/matrix3d\(([^)]+)\)/),se){const G=se[1].split(",").map(ve=>Number(ve.trim()));return{tx:(G==null?void 0:G[12])||0,ty:(G==null?void 0:G[13])||0}}return se=N.match(/translate\(\s*([-\d.]+)px\s*,\s*([-\d.]+)px\s*\)/),se?{tx:Number(se[1])||0,ty:Number(se[2])||0}:{tx:0,ty:0}},T=(N,se,G)=>{N.style.transform=`translate(${se}px, ${G}px)`},j=N=>{const se=v(N);if(!se)return;o=!0,C=se,p="move",s=N.clientX,u=N.clientY;const G=window.getComputedStyle(se),{tx:ve,ty:ke}=H(G.transform);g=ve,d=ke,document.addEventListener("mousemove",_),document.addEventListener("mouseup",S)},D=(N,se)=>{const G=v(N);if(!G)return;o=!0,C=G,p=se,s=N.clientX,u=N.clientY;const ve=G.getBoundingClientRect();y=ve.width,b=ve.height;const ke=window.getComputedStyle(G),{tx:Be,ty:We}=H(ke.transform);g=Be,d=We,document.addEventListener("mousemove",_),document.addEventListener("mouseup",S)},_=N=>{if(!o||!C)return;const se=N.clientX-s,G=N.clientY-u,ve=360,ke=420;let Be=y,We=b,he=g,I=d;if(p==="move"){he=g+se,I=d+G,T(C,he,I);return}if(p.includes("right")&&(Be=Math.max(ve,y+se)),p.includes("bottom")&&(We=Math.max(ke,b+G)),p.includes("left")){const Oe=y-se;Oe<ve?(Be=ve,he=g+(y-ve)):(Be=Oe,he=g+se)}if(p.includes("top")){const Oe=b-G;Oe<ke?(We=ke,I=d+(b-ke)):(We=Oe,I=d+G)}C.style.width=`${Be}px`,C.style.height=`${We}px`,T(C,he,I)},S=()=>{o=!1,p="",C=null,document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",S)},x=e.ref([]),k=e.ref(!1);e.watch(()=>r.images,async N=>{if(!Array.isArray(N)||N.length===0){x.value=[];return}k.value=!0;const se=[];for(const G of N)if(G.url&&!G.url.startsWith("blob:")&&!G.url.startsWith("http"))try{const ve=await Fl.downloadFile(G.url),ke=URL.createObjectURL(ve);se.push({...G,blobUrl:ke})}catch(ve){console.error(`Failed to load image for preview: ${G.url}`,ve),se.push({...G,blobUrl:""})}else se.push({...G,blobUrl:G.url});x.value=se,k.value=!1},{deep:!0,immediate:!0});const E=e.ref(0),M=e.ref(null),O=e.ref(null),Q=e.computed(()=>x.value[E.value]||null),J=()=>{if(!x.value.length){E.value=0;return}if(r.defaultImageName){const N=x.value.findIndex(se=>(se==null?void 0:se.name)===r.defaultImageName);E.value=N>=0?N:0}else E.value=0},ye=N=>{if(!x.value.length)return;const se=Math.max(0,Math.min(N,x.value.length-1));E.value=se},te=()=>ye(E.value-1),U=()=>ye(E.value+1),q=N=>{if(!N)return;const se=x.value.findIndex(G=>(G==null?void 0:G.name)===N);se>=0&&(E.value=se)},X=()=>{if(!O.value)return;const N=O.value.parentElement;if(!N)return;const se=N.getBoundingClientRect();O.value.width=se.width,O.value.height=se.height},ee=()=>{var ve,ke;if(!O.value||!M.value||!r.focusedFieldName){O.value&&Ni(O.value);return}const N=(ve=M.value.$el)==null?void 0:ve.querySelector("img");if(!N)return;if(!N.complete||N.naturalWidth===0){N.onload=()=>{e.nextTick(()=>{ee()})};return}const se=((ke=Q.value)==null?void 0:ke.name)||"",G=Es(r.fieldMeta,r.focusedFieldName);if(!G){Ni(O.value);return}if(G.imageName!==se){Ni(O.value);return}X(),yd(O.value,N,G.bboxNorm)},pe=()=>{e.nextTick(()=>{X(),ee()})};e.watch(()=>r.focusedFieldName,()=>{if(!i.value)return;const N=Es(r.fieldMeta,r.focusedFieldName);N!=null&&N.imageName&&q(N.imageName),e.nextTick(()=>{ee()})}),e.watch(()=>{var N;return(N=Q.value)==null?void 0:N.name},()=>{i.value&&e.nextTick(()=>{O.value&&Ni(O.value),ee()})}),e.watch(()=>r.visible,N=>{N?(J(),e.nextTick(()=>{X(),ee()})):O.value&&Ni(O.value)}),e.watch(()=>r.defaultImageName,()=>{i.value&&J()});let ze=null;e.onMounted(()=>{var N;typeof ResizeObserver<"u"&&(ze=new ResizeObserver(()=>{X(),e.nextTick(()=>{ee()})}),(N=O.value)!=null&&N.parentElement&&ze.observe(O.value.parentElement))}),e.onUnmounted(()=>{ze&&(ze.disconnect(),ze=null),document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",S)});const ue=()=>{O.value&&Ni(O.value),n("update:visible",!1),n("close")};return(N,se)=>{var We,he;const G=e.resolveComponent("el-button"),ve=e.resolveComponent("el-image"),ke=e.resolveComponent("Loading"),Be=e.resolveComponent("el-icon");return i.value?(e.openBlock(),e.createElementBlock("div",gd,[se[12]||(se[12]=e.createElementVNode("div",{class:"ocr-img-preview-backdrop"},null,-1)),e.createElementVNode("div",bd,[e.createElementVNode("div",{class:"ocr-img-preview-header",onMousedown:e.withModifiers(j,["stop"])},[se[8]||(se[8]=e.createElementVNode("span",{class:"ocr-img-preview-title"},"文件预览",-1)),e.createElementVNode("button",{type:"button",class:"ocr-img-preview-close",onClick:ue},"×")],32),e.createElementVNode("div",{class:"resizable-handle top",onMousedown:se[0]||(se[0]=e.withModifiers(I=>D(I,"top"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle right",onMousedown:se[1]||(se[1]=e.withModifiers(I=>D(I,"right"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle bottom",onMousedown:se[2]||(se[2]=e.withModifiers(I=>D(I,"bottom"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle left",onMousedown:se[3]||(se[3]=e.withModifiers(I=>D(I,"left"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle top-left",onMousedown:se[4]||(se[4]=e.withModifiers(I=>D(I,"top-left"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle top-right",onMousedown:se[5]||(se[5]=e.withModifiers(I=>D(I,"top-right"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle bottom-left",onMousedown:se[6]||(se[6]=e.withModifiers(I=>D(I,"bottom-left"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle bottom-right",onMousedown:se[7]||(se[7]=e.withModifiers(I=>D(I,"bottom-right"),["stop"]))},null,32),Q.value?(e.openBlock(),e.createElementBlock("div",kd,[e.createElementVNode("div",xd,[e.createElementVNode("div",wd,[e.createElementVNode("span",_d,e.toDisplayString(Q.value.name?Q.value.name+(Q.value.url&&Q.value.url.lastIndexOf(".")!==-1?Q.value.url.substring(Q.value.url.lastIndexOf(".")):""):""),1)]),x.value.length>1?(e.openBlock(),e.createElementBlock("div",Sd,[e.createVNode(G,{size:"small",disabled:E.value===0,onClick:te},{default:e.withCtx(()=>se[9]||(se[9]=[e.createTextVNode("上一张")])),_:1,__:[9]},8,["disabled"]),e.createElementVNode("span",Ed,e.toDisplayString(E.value+1)+" / "+e.toDisplayString(x.value.length),1),e.createVNode(G,{size:"small",disabled:E.value===x.value.length-1,onClick:U},{default:e.withCtx(()=>se[10]||(se[10]=[e.createTextVNode("下一张")])),_:1,__:[10]},8,["disabled"])])):e.createCommentVNode("",!0)]),x.value.length>1?(e.openBlock(),e.createElementBlock("div",Cd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(I,Oe)=>(e.openBlock(),e.createElementBlock("div",{key:(I.name||"")+"-"+Oe,class:e.normalizeClass(["img-thumb-item",{active:Oe===E.value}]),onClick:oe=>ye(Oe)},[I!=null&&I.blobUrl?(e.openBlock(),e.createBlock(ve,{key:0,src:I.blobUrl,fit:"cover",class:"thumb-image","preview-src-list":[I.blobUrl],"initial-index":0},null,8,["src","preview-src-list"])):(e.openBlock(),e.createElementBlock("div",Bd,"加载失败")),e.createElementVNode("div",Dd,e.toDisplayString(I.name||"-"),1)],10,Td))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",Nd,[k.value?(e.openBlock(),e.createElementBlock("div",Ad,[e.createVNode(Be,{class:"is-loading"},{default:e.withCtx(()=>[e.createVNode(ke)]),_:1}),se[11]||(se[11]=e.createElementVNode("span",null,"图片加载中...",-1))])):(We=Q.value)!=null&&We.blobUrl?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(ve,{ref_key:"imageRef",ref:M,src:Q.value.blobUrl,fit:"contain",class:"preview-image","preview-src-list":[Q.value.blobUrl],onLoad:pe},null,8,["src","preview-src-list"]),e.createElementVNode("canvas",{ref_key:"canvasRef",ref:O,class:"highlight-canvas"},null,512)],64)):(e.openBlock(),e.createElementBlock("div",zd,[(he=Q.value)!=null&&he.url?(e.openBlock(),e.createElementBlock("span",Md,"图片加载失败")):(e.openBlock(),e.createElementBlock("span",Id,"暂无图片"))]))])])):(e.openBlock(),e.createElementBlock("div",Od,"暂无图片"))])])):e.createCommentVNode("",!0)}}}),Rd=fr._export_sfc(Ld,[["__scopeId","data-v-48a4ecb1"]]),$d={class:"cert-preview-body"},Vd={key:0,class:"pdf-preview-container"},Fd={class:"thumbs"},Pd=["onClick"],Hd={class:"thumb-img"},jd=["src"],Ud={key:1,class:"thumb-loading"},qd={class:"thumb-title"},Wd={class:"viewer"},Gd={key:0,class:"viewer-img-wrap"},Kd=["src"],Yd={key:1,class:"viewer-loading"},Jd=e.defineComponent({__name:"CertificatePreview",props:{visible:{type:Boolean},versions:{}},emits:["update:visible"],setup(a,{emit:l}){const r=a,n=l,i=e.ref(""),o=e.ref(""),p=e.computed(()=>(r.versions||[]).find(v=>String(v.versionId)===String(i.value))),s=e.ref({}),u=e.ref(""),y=e.ref("证书附件.pdf"),b=()=>{try{Object.values(s.value||{}).forEach(v=>{v&&URL.revokeObjectURL(v)}),u.value&&URL.revokeObjectURL(u.value)}catch{}s.value={},u.value=""},g=async v=>{if(!v||v.fileType==="pdf")return;const H=Array.isArray(v.images)?v.images:[];for(const T of H){const j=T==null?void 0:T.url;if(!(!j||s.value[j]))try{const D=await R.platformDownloadFile({url:j}),_=URL.createObjectURL(D.data);s.value={...s.value,[j]:_}}catch{}}},d=async v=>{var T;if(!v||v.fileType!=="pdf"){u.value="";return}const H=v.sourceUrl||"";if(!H){u.value="";return}if(u.value){try{URL.revokeObjectURL(u.value)}catch{}u.value=""}try{console.log("[CertificatePreview] 下载PDF附件:",{url:H,versionId:v==null?void 0:v.versionId,certNo:v==null?void 0:v.certNo});const j=await R.platformDownloadFile({url:H});console.log("[CertificatePreview] PDF响应:",{url:H,status:j==null?void 0:j.status,size:(T=j==null?void 0:j.data)==null?void 0:T.size});const D=URL.createObjectURL(j.data);u.value=D;const _=v.certNo?String(v.certNo):"";y.value=_?`${_}.pdf`:"证书附件.pdf"}catch(j){console.error("[CertificatePreview] PDF加载失败:",{url:H,error:j}),u.value=""}};e.watch(()=>r.visible,async v=>{var T;if(!v){b();return}const H=(T=r.versions)==null?void 0:T[0];i.value=(H==null?void 0:H.versionId)||"",await g(H),await d(H)},{immediate:!0}),e.watch(()=>i.value,async()=>{var H,T;const v=p.value;if(!v){o.value="",u.value="";return}if(v.fileType==="pdf"){o.value="",await d(v);return}u.value="",o.value=((T=(H=v.images)==null?void 0:H[0])==null?void 0:T.url)||"",await g(v)},{immediate:!0});const C=()=>{n("update:visible",!1),b()};return e.onBeforeUnmount(()=>{b()}),(v,H)=>{const T=e.resolveComponent("el-empty"),j=e.resolveComponent("el-tab-pane"),D=e.resolveComponent("el-tabs"),_=e.resolveComponent("el-button"),S=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(S,{"model-value":v.visible,title:"证书附件预览",width:"1100px","close-on-click-modal":!1,onClose:C},{footer:e.withCtx(()=>[e.createVNode(_,{id:"themeBorderButton",onClick:C},{default:e.withCtx(()=>H[1]||(H[1]=[e.createTextVNode("关闭")])),_:1,__:[1]})]),default:e.withCtx(()=>[v.versions&&v.versions.length>0?(e.openBlock(),e.createBlock(D,{key:0,modelValue:i.value,"onUpdate:modelValue":H[0]||(H[0]=x=>i.value=x),type:"card",class:"cert-version-tabs"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.versions,x=>(e.openBlock(),e.createBlock(j,{key:x.versionId,name:x.versionId,label:x.label},{default:e.withCtx(()=>[e.createElementVNode("div",$d,[x.fileType==="pdf"?(e.openBlock(),e.createElementBlock("div",Vd,[u.value?(e.openBlock(),e.createBlock(ul.SsFilePreview,{key:1,fileName:y.value,blobUrl:u.value},null,8,["fileName","blobUrl"])):(e.openBlock(),e.createBlock(T,{key:0,description:"加载中"}))])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",Fd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.images||[],k=>(e.openBlock(),e.createElementBlock("div",{key:k.url,class:e.normalizeClass(["thumb",{active:k.url===o.value}]),onClick:E=>o.value=k.url},[e.createElementVNode("div",Hd,[s.value[k.url]?(e.openBlock(),e.createElementBlock("img",{key:0,src:s.value[k.url]},null,8,jd)):(e.openBlock(),e.createElementBlock("div",Ud,"加载中"))]),e.createElementVNode("div",qd,e.toDisplayString(k.name),1)],10,Pd))),128))]),e.createElementVNode("div",Wd,[o.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[s.value[o.value]?(e.openBlock(),e.createElementBlock("div",Gd,[e.createElementVNode("img",{class:"viewer-img",src:s.value[o.value]},null,8,Kd)])):(e.openBlock(),e.createElementBlock("div",Yd,"加载中"))],64)):(e.openBlock(),e.createBlock(T,{key:0,description:"暂无图片"}))])],64))])]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue"])):(e.openBlock(),e.createBlock(T,{key:1,description:"暂无可预览的证书附件"}))]),_:1},8,["model-value"])}}}),Xd=fr._export_sfc(Jd,[["__scopeId","data-v-220703c0"]]),Zd={class:"ocr-candidate-wrap"},Qd={class:"ocr-candidate-left"},ep={key:1},ap={key:0},lp={key:1},rp={key:2},np={key:3},ip={key:0,class:"ocr-candidate-right"},op={class:"ocr-candidate-actions"},tp={key:1},sp={class:"dialog-footer"},cp={__name:"OCRCandidateDialog",props:{visible:{type:Boolean,default:!1},candidates:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},nameProp:{type:String,default:""},mfrProp:{type:String,default:""}},emits:["update:visible","submit","preview-file"],setup(a,{emit:l}){const r=(E=[])=>{const M=[],O=Q=>{(Q||[]).forEach(J=>{if(!J)return;const ye=J.children||J.childrens||J.columns;Array.isArray(ye)&&ye.length>0?O(ye):M.push(J)})};return O(E),M},n=a,i=l,o=e.computed(()=>{var E;return((E=d.value)==null?void 0:E.allowAdd)!==!1}),p=e.computed(()=>{var E;return((E=d.value)==null?void 0:E.allowReplace)!==!1}),s=E=>{if(!E)return[];if(Array.isArray(E))return E;if(typeof E=="string")try{const M=JSON.parse(E);return Array.isArray(M)?M:[]}catch{return[]}return[]},u=E=>{i("preview-file",E)},y=e.ref([]),b=e.ref(0),g=e.ref("");e.watch(()=>n.candidates,E=>{var M,O;y.value=(E||[]).map(Q=>({...Q,...(Q==null?void 0:Q.ocrRow)||{},selectedTargetId:(Q==null?void 0:Q.selectedTargetId)||"",__decision:Q==null?void 0:Q.__decision})),b.value=0,g.value=((O=(M=y.value)==null?void 0:M[0])==null?void 0:O.selectedTargetId)||""},{immediate:!0,deep:!0}),e.watch(()=>n.visible,E=>{var M,O;E&&(b.value=0,g.value=((O=(M=y.value)==null?void 0:M[0])==null?void 0:O.selectedTargetId)||"")});const d=e.computed(()=>{var M;const E=Number(b.value||0);return((M=y.value||[])==null?void 0:M[E])||null}),C=e.computed(()=>(r(n.columns||[])||[]).filter(O=>O&&O.prop).filter(O=>O.type!=="operate"&&O.label!=="操作"&&O.prop!=="operate")),v=e.computed(()=>C.value.filter(E=>E.label!=="证书附件"&&E.prop!=="证书附件")),H=E=>{if(!E)return;const M=(y.value||[]).findIndex(O=>(O==null?void 0:O.idx)===(E==null?void 0:E.idx));M>-1&&(b.value=M,g.value=(E==null?void 0:E.selectedTargetId)||"")},T=E=>{if(!E){g.value="";return}g.value=String((E==null?void 0:E.id)??"")},j=(E,M="")=>{const O=Number(b.value||0),Q=y.value||[],J=Q[O];J&&(J.__decision=E,J.selectedTargetId=M,g.value=M,y.value=[...Q])},D=()=>j("skip",""),_=()=>j("add",""),S=()=>{if(!g.value){Xa.ElMessage.warning("请先选择要替换的目标记录");return}j("replace",g.value)},x=()=>{i("update:visible",!1)},k=()=>{const E=y.value||[];if(E.find(O=>(O==null?void 0:O.__decision)==="replace"&&!(O!=null&&O.selectedTargetId))){Xa.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}i("submit",E),i("update:visible",!1)};return(E,M)=>{const O=e.resolveComponent("el-table-column"),Q=e.resolveComponent("svg-icon"),J=e.resolveComponent("el-table"),ye=e.resolveComponent("el-button"),te=e.resolveComponent("el-alert");return e.openBlock(),e.createBlock(Vr.ssDialog,{title:"OCR候选匹配",visible:a.visible,"close-on-click-modal":!1,width:"90%",style:{maxWidth:"1200px"},onBeforeDestroy:x},{default:e.withCtx(()=>{var U,q;return[e.createElementVNode("div",Zd,[e.createElementVNode("div",Qd,[M[0]||(M[0]=e.createElementVNode("div",{class:"ocr-candidate-title"},"待处理OCR行(可跳过)",-1)),e.createVNode(J,{data:y.value,border:"",stripe:"","max-height":"300",style:{width:"100%"},"highlight-current-row":"",onCurrentChange:H},{default:e.withCtx(()=>[e.createVNode(O,{type:"index",label:"序号",width:"60"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,X=>(e.openBlock(),e.createBlock(O,{key:X.prop,label:X.label,prop:X.prop,"min-width":X.minWidth||160},{default:e.withCtx(({row:ee})=>[X.label==="证书附件"||X.prop==="证书附件"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s(ee==null?void 0:ee[X.prop]).length>0?(e.openBlock(),e.createBlock(Q,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:e.withModifiers(pe=>u({row:ee,prop:X.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(e.openBlock(),e.createElementBlock("span",ep,"-"))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString((ee==null?void 0:ee[X.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128)),e.createVNode(O,{label:"候选数",width:"90",fixed:"right"},{default:e.withCtx(({row:X})=>[e.createTextVNode(e.toDisplayString(((X==null?void 0:X.candidates)||[]).length),1)]),_:1}),e.createVNode(O,{label:"处理状态",width:"120",fixed:"right"},{default:e.withCtx(({row:X})=>[(X==null?void 0:X.__decision)==="replace"?(e.openBlock(),e.createElementBlock("span",ap,"替换")):(X==null?void 0:X.__decision)==="add"?(e.openBlock(),e.createElementBlock("span",lp,"新增")):(X==null?void 0:X.__decision)==="skip"?(e.openBlock(),e.createElementBlock("span",rp,"跳过")):(e.openBlock(),e.createElementBlock("span",np,"未处理"))]),_:1})]),_:1},8,["data"])]),y.value&&y.value.length>0?(e.openBlock(),e.createElementBlock("div",ip,[M[4]||(M[4]=e.createElementVNode("div",{class:"ocr-candidate-title"},"当前行候选记录(同编号)",-1)),e.createElementVNode("div",op,[e.createVNode(ye,{id:"themeBorderButton",onClick:D},{default:e.withCtx(()=>M[1]||(M[1]=[e.createTextVNode("跳过本行")])),_:1,__:[1]}),e.createVNode(ye,{id:"themeBorderButton",onClick:_,disabled:!o.value},{default:e.withCtx(()=>M[2]||(M[2]=[e.createTextVNode("新增本行")])),_:1,__:[2]},8,["disabled"]),e.createVNode(ye,{class:"ok-button",id:"themeButton",onClick:S,disabled:!p.value||!g.value},{default:e.withCtx(()=>M[3]||(M[3]=[e.createTextVNode("替换选中记录")])),_:1,__:[3]},8,["disabled"])]),(((U=d.value)==null?void 0:U.candidates)||[]).length===0?(e.openBlock(),e.createBlock(te,{key:0,title:"该编号暂无候选记录,可选择“新增本行”或“跳过本行”。",type:"info",closable:!1,"show-icon":"",style:{margin:"8px 0"}})):e.createCommentVNode("",!0),e.createVNode(J,{data:((q=d.value)==null?void 0:q.candidates)||[],border:"",stripe:"","max-height":"300",style:{width:"100%"},onCurrentChange:T,"highlight-current-row":""},{default:e.withCtx(()=>[e.createVNode(O,{type:"index",label:"序号",width:"60"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,X=>(e.openBlock(),e.createBlock(O,{key:X.prop,label:X.label,prop:X.prop,"min-width":X.minWidth||160},{default:e.withCtx(({row:ee})=>[X.label==="证书附件"||X.prop==="证书附件"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s(ee==null?void 0:ee[X.prop]).length>0?(e.openBlock(),e.createBlock(Q,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:e.withModifiers(pe=>u({row:ee,prop:X.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(e.openBlock(),e.createElementBlock("span",tp,"-"))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString((ee==null?void 0:ee[X.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128))]),_:1},8,["data"])])):e.createCommentVNode("",!0)])]}),footer:e.withCtx(()=>[e.createElementVNode("div",sp,[e.createVNode(ye,{id:"themeBorderButton",onClick:x},{default:e.withCtx(()=>M[5]||(M[5]=[e.createTextVNode("取消")])),_:1,__:[5]}),e.createVNode(ye,{class:"ok-button",id:"themeButton",onClick:k},{default:e.withCtx(()=>M[6]||(M[6]=[e.createTextVNode("提交已处理")])),_:1,__:[6]})])]),_:1},8,["visible"])}}},up=fr._export_sfc(cp,[["__scopeId","data-v-89e0489c"]]),dp={class:"ocr-preview-content"},pp={class:"ocr-preview-tip"},fp={class:"ocr-preview-table"},hp={style:{display:"flex","align-items":"center",gap:"8px"}},vp={class:"dialog-footer"},mp={__name:"OCRResultPreviewDialog",props:{visible:{type:Boolean,default:!1},ocrPreviewData:{type:Array,default:()=>[]},ocrPreviewColumns:{type:Array,default:()=>[]},ocrSelectedFields:{type:Array,default:()=>[]}},emits:["update:visible","update:ocrPreviewData","update:ocrSelectedFields","confirm","fieldChange"],setup(a,{emit:l}){const r=a,n=l,i=e.ref([]),o=e.ref([]),p=e.ref([]);e.watch(()=>r.visible,C=>{C&&(i.value=JSON.parse(JSON.stringify(r.ocrPreviewData)),o.value=JSON.parse(JSON.stringify(r.ocrPreviewColumns)),p.value=[...r.ocrSelectedFields])});const s=(C,v)=>{const H=[...p.value];if(v)H.includes(C)||H.push(C);else{const T=H.indexOf(C);T>-1&&H.splice(T,1)}p.value=H,n("update:ocrSelectedFields",H)},u=(C,v,H)=>{n("fieldChange",{rowIndex:C,prop:v,value:H})},y=()=>{n("update:ocrPreviewData",i.value),n("confirm",i.value),n("update:visible",!1)},b=()=>{n("update:visible",!1)},g=C=>typeof C!="number"?"-":`${(C*100).toFixed(1)}%`,d=C=>typeof C!="number"?"#606266":C>=.9?"#67c23a":C>=.7?"#e6a23c":"#f56c6c";return(C,v)=>{const H=e.resolveComponent("el-alert"),T=e.resolveComponent("el-table-column"),j=e.resolveComponent("el-checkbox"),D=e.resolveComponent("el-input"),_=e.resolveComponent("el-table"),S=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(Vr.ssDialog,{title:"OCR识别结果预览",visible:a.visible,onBeforeDestroy:b,width:"90%",style:{maxWidth:"1200px"}},{default:e.withCtx(()=>[e.createElementVNode("div",dp,[e.createElementVNode("div",pp,[e.createVNode(H,{title:"请核对识别结果。系统将按 编号+名称+制造厂 规则匹配并替换;未唯一命中但有编号的,将进入候选选择;无编号则直接新增。",type:"info",closable:!1,"show-icon":""})]),e.createElementVNode("div",fp,[e.createVNode(_,{data:i.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(T,{type:"index",label:"序号",width:"60",fixed:""}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,x=>(e.openBlock(),e.createBlock(T,{key:x.prop,prop:x.prop,"min-width":x.minWidth||230,"class-name":x.isAccuracy?"accuracy-column":""},{header:e.withCtx(()=>[e.createElementVNode("div",hp,[x.isAccuracy?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(j,{key:0,"model-value":p.value.includes(x.prop),onChange:k=>s(x.prop,k),onClick:v[0]||(v[0]=e.withModifiers(()=>{},["stop"]))},null,8,["model-value","onChange"])),e.createElementVNode("span",null,e.toDisplayString(x.label),1)])]),default:e.withCtx(({row:k,$index:E})=>[x.isAccuracy?(e.openBlock(),e.createElementBlock("span",{key:0,class:"accuracy-value",style:e.normalizeStyle({color:d(k[x.prop]),fontWeight:500})},e.toDisplayString(g(k[x.prop])),5)):(e.openBlock(),e.createBlock(D,{key:1,modelValue:k[x.prop],"onUpdate:modelValue":M=>k[x.prop]=M,size:"small",placeholder:"请输入"+x.label,onChange:M=>u(E,x.prop,M)},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"]))]),_:2},1032,["prop","min-width","class-name"]))),128))]),_:1},8,["data"])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",vp,[e.createVNode(S,{onClick:b,id:"themeBorderButton"},{default:e.withCtx(()=>v[1]||(v[1]=[e.createTextVNode("取消")])),_:1,__:[1]}),e.createVNode(S,{class:"ok-button",onClick:y,id:"themeButton"},{default:e.withCtx(()=>v[2]||(v[2]=[e.createTextVNode("确认")])),_:1,__:[2]})])]),_:1},8,["visible"])}}},yp=fr._export_sfc(mp,[["__scopeId","data-v-df66eb1f"]]),ri=a=>{var n;let l=a;(l==null?void 0:l[0])==="("&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1));let r=(n=re.analyzeSplitToContent(l,","))==null?void 0:n.map(i=>((i==null?void 0:i[(i==null?void 0:i.length)-1])===","&&(i=i==null?void 0:i.slice(0,(i==null?void 0:i.length)-1)),vn(i)));return r=r==null?void 0:r.join(","),r};function _c(a){return Xa.axios.post("http://222.92.178.198:8000/api/v1/excel-chat",a)}function gp(a){return Xa.axios.get(a,{responseType:"blob"})}let dr="$R",bp="http://222.92.178.198:55002/AIRobot",kt=["Form","BarChart","FormText","FormBlock"];const Tt=a=>{var r,n;let l=(n=re.analyzeSplitToContent(a,"@"))==null?void 0:n[((r=re.analyzeSplitToContent(a,"@"))==null?void 0:r.length)-1];return!!(kt!=null&&kt.some(i=>l==null?void 0:l.includes(i)))},kp=async(a,l,r,n)=>{var o,p,s,u,y,b,g,d,C,v,H,T,j,D,_,S,x,k,E,M,O,Q,J,ye,te,U,q,X,ee,pe,ze,ue,N,se,G,ve,ke,Be,We,he,I,Oe,oe;let i=a;if(Tt(i==null?void 0:i[0])){let ge=Cc(i),xe=(o=ge==null?void 0:ge.filter)==null?void 0:o.join(","),ne=[];(p=ge==null?void 0:ge.hideContents)==null||p.forEach(ya=>{if(ya){const Ge=ya;Ge&&ne.push(`(HideGroup=Yes, prop=${Ge})`)}});let we=(s=ge==null?void 0:ge.formContents)==null?void 0:s.filter(ya=>{var Ge;return(Ge=ya==null?void 0:ya.filters)==null?void 0:Ge.includes("@ShowHide=Hide")});(we==null?void 0:we.length)>0&&(we==null||we.forEach(ya=>{if(ya){const Ge=ya==null?void 0:ya.prop;Ge&&ne.push(`(Hide=Yes, prop=${Ge})`)}}));let Ke=(n==null?void 0:n.menuFilter)??[];return Array.isArray(Ke)||(Ke=Ke?[Ke]:[]),Ke=[...Ke,...ne],xe===""&&((u=ge==null?void 0:ge.formContents)==null?void 0:u.length)===0?void 0:{key:"Form",name:ge==null?void 0:ge.groupName,value:ge==null?void 0:ge.formContents,contents:Array.isArray((y=ge==null?void 0:ge.contents)==null?void 0:y[0])&&((g=(b=ge==null?void 0:ge.contents)==null?void 0:b[0])!=null&&g.every(ya=>Array.isArray(ya)))?[(C=(d=ge==null?void 0:ge.contents)==null?void 0:d[0])==null?void 0:C[r]]:[ge==null?void 0:ge.contents],filter:"("+xe+")",menuFilter:Ke,groupFilter:ge==null?void 0:ge.groupFilters}}else if(((v=i==null?void 0:i[0])==null?void 0:v[0])!=="&"){let ge=Tc(i,n),xe="";(H=ge==null?void 0:ge.tableFilter)!=null&&H.includes(dr)?ge.tableFilter=(T=ge==null?void 0:ge.tableFilter)==null?void 0:T.replace(dr,""):xe=(_=(D=(j=ge==null?void 0:ge.tableFilter)==null?void 0:j.replace("(",dr))==null?void 0:D.split(dr))==null?void 0:_[0];let ne=[];ge!=null&&ge.tableFilter&&((S=re.analyzeSplitToContent(ge==null?void 0:ge.tableFilter,","))==null||S.forEach(Ke=>{Ke!=null&&Ke.includes("@ShowHide=Hide")&&ne.push("HideGroup=Yes")}));let we=(n==null?void 0:n.menuFilter)??[];return Array.isArray(we)||(we=we?[we]:[]),we=[...we,...ne],{key:"Table",name:ge==null?void 0:ge.groupName,tableColumns:ge==null?void 0:ge.tableColumns,assistColumn:ge==null?void 0:ge.columns,tableContents:l===1?ge==null?void 0:ge.tableContents:(k=(x=ge==null?void 0:ge.tableContents)==null?void 0:x[r])!=null&&k.every(Ke=>Array.isArray(Ke))?(E=ge==null?void 0:ge.tableContents)==null?void 0:E[r]:[(M=ge==null?void 0:ge.tableContents)==null?void 0:M[r]],filter:ge==null?void 0:ge.tableFilter,menuFilter:we,quotePage:xe!==""?((J=(Q=(O=xe==null?void 0:xe.replace("*",dr))==null?void 0:O.split(dr))==null?void 0:Q[0])==null?void 0:J.replaceAll(":","/"))??"":void 0,quoteGroup:xe!==""?((pe=(ee=(X=(q=(U=(te=(ye=xe==null?void 0:xe.replace("*",dr))==null?void 0:ye.split(dr))==null?void 0:te[1])==null?void 0:U.replace("{",dr))==null?void 0:q.split(dr))==null?void 0:X[0])==null?void 0:ee.split(":"))==null?void 0:pe.filter(Ke=>Ke!==""))??[]:[],relatedQuotes:ge==null?void 0:ge.relatedQuotes,fatherSyncContents:ge==null?void 0:ge.fatherSyncContents,sonSyncContents:ge==null?void 0:ge.sonSyncContents,calculatorFilters:(ge==null?void 0:ge.calculatorFilters)??[]}}else{let ge=[{label:"序号",prop:"sort"},{label:"函数名称",prop:"函数名称"},{label:"函数关联名",prop:"函数关联名"},{label:"函数参数",prop:"函数参数"},{label:"输出值",prop:"输出值"},{label:"导入文件",prop:"导入文件",formType:"Upload"}],xe=i==null?void 0:i[0];xe=xe==null?void 0:xe.slice(1,xe==null?void 0:xe.length),xe=re.analyzeSplitToContent(xe,":"),xe=xe==null?void 0:xe[(xe==null?void 0:xe.length)-1];let ne=[];ne.push("1");let we=xe==null?void 0:xe.replace("(",dr);we=(ze=we==null?void 0:we.split(dr))==null?void 0:ze[0],ne.push(we);let Ke=xe==null?void 0:xe.replace("(",dr);if(Ke=(ue=Ke==null?void 0:Ke.split(dr))==null?void 0:ue[1],Ke=(se=(N=Ke==null?void 0:Ke.replace(")",dr))==null?void 0:N.split(dr))==null?void 0:se[0],(ve=(G=Ke==null?void 0:Ke.replace(",",dr))==null?void 0:G.split(dr))==null||ve.forEach(ya=>{ne.push(ya)}),ne.push(""),ne.push(""),(ke=ne==null?void 0:ne[2])!=null&&ke.includes(".xlsx")||(Be=ne==null?void 0:ne[2])!=null&&Be.includes(".xls"))try{let ya=bp+"/"+(ne==null?void 0:ne[2]),Ge=await gp(ya),V=`生成js函数名称为${ne==null?void 0:ne[1]}的函数,规则为:`+(ne==null?void 0:ne[3])+"。根据上述描述获取对应的总结性详细可运行js函数,不需要任何注释。";if((Ge==null?void 0:Ge.status)===200){let F=Ge==null?void 0:Ge.data;const le=new FormData;le.append("file",F,ne==null?void 0:ne[2]),le.append("query",V);let fe=await _c(le);fe=(I=(he=(We=fe==null?void 0:fe.data)==null?void 0:We.data)==null?void 0:he.response)==null?void 0:I.replace("generateResult",ne==null?void 0:ne[1]),ne[ne.length-2]=fe,ne[ne.length-1]=[{name:(oe=(Oe=ne==null?void 0:ne[2])==null?void 0:Oe.split("."))==null?void 0:oe[0],url:ya}]}}catch{}return ne=[ne],{key:"Method",name:[],tableContents:ne,tableColumns:ge}}},xp=(a,l)=>{var n,i,o,p,s,u,y,b,g,d,C,v,H,T,j,D,_,S,x,k,E,M,O,Q,J,ye,te,U,q,X,ee,pe,ze,ue,N,se,G,ve,ke,Be,We,he,I,Oe,oe,ge,xe,ne,we,Ke,ya;let r=(i=(n=re.analyzeSplitToContent(a,"="))==null?void 0:n.filter(Ge=>Ge!=="="))==null?void 0:i.map(Ge=>((Ge==null?void 0:Ge[(Ge==null?void 0:Ge.length)-1])==="="&&(Ge=Ge==null?void 0:Ge.slice(0,(Ge==null?void 0:Ge.length)-1)),Ge));if(Tt(r==null?void 0:r[1])||Tt(r==null?void 0:r[0])){let Ge=Tp(r);if(Ge!=null&&Ge.formContents){let be=(o=Ge==null?void 0:Ge.filter)==null?void 0:o.join(","),ua=[];(p=Ge==null?void 0:Ge.hideContents)==null||p.forEach(va=>{if(va){const Ea=va;Ea&&ua.push(`(HideGroup=Yes, prop=${Ea})`)}});let ia=(s=Ge==null?void 0:Ge.formContents)==null?void 0:s.filter(va=>{var Ea;return(Ea=va==null?void 0:va.filters)==null?void 0:Ea.includes("@ShowHide=Hide")});(ia==null?void 0:ia.length)>0&&(ia==null||ia.forEach(va=>{if(va){const Ea=va==null?void 0:va.prop;Ea&&ua.push(`(Hide=Yes, prop=${Ea})`)}}));let Pe=(l==null?void 0:l.menuFilter)??[];return Array.isArray(Pe)||(Pe=Pe?[Pe]:[]),Pe=[...Pe,...ua],be===""&&((u=Ge==null?void 0:Ge.formContents)==null?void 0:u.length)===0?void 0:{key:"Form",name:Ge==null?void 0:Ge.groupName,value:Ge==null?void 0:Ge.formContents,contents:[Ge==null?void 0:Ge.contents],filter:"("+be+")",menuFilter:Pe,groupFilter:Ge==null?void 0:Ge.groupFilters,calculatorFilters:Ge==null?void 0:Ge.calculatorFilters}}let V=(g=(b=(y=Ge==null?void 0:Ge.filter)==null?void 0:y.replace("@",dr))==null?void 0:b.split(dr))==null?void 0:g[0],F=(v=(C=(d=Ge==null?void 0:Ge.filter)==null?void 0:d.replace("(",dr))==null?void 0:C.split(dr))==null?void 0:v[1],le=(j=(T=(H=Ge==null?void 0:Ge.filter)==null?void 0:H.replace("(",dr))==null?void 0:T.split(dr))==null?void 0:j[0];le="@"+((D=le==null?void 0:le.split("@"))==null?void 0:D[1]),F=F==null?void 0:F.slice(0,(F==null?void 0:F.length)-1),F=(S=(_=re.analyzeSplitToContent(F,","))==null?void 0:_.map(be=>(be=le+be,be)))==null?void 0:S.join("");let fe=V+"("+F+")";return{key:"Form",name:Ge==null?void 0:Ge.group,filter:fe,formPage:((E=(k=(x=V==null?void 0:V.replace("*",dr))==null?void 0:x.split(dr))==null?void 0:k[0])==null?void 0:E.replaceAll(":","/"))??"",formGroup:((U=(te=(ye=(J=(Q=(O=(M=V==null?void 0:V.replace("*",dr))==null?void 0:M.split(dr))==null?void 0:O[1])==null?void 0:Q.replace("{",dr))==null?void 0:J.split(dr))==null?void 0:ye[0])==null?void 0:te.split(":"))==null?void 0:U.filter(be=>be!==""))??[],value:[],menuFilter:l==null?void 0:l.menuFilter,contents:[]}}else{let Ge=r==null?void 0:r.filter((ia,Pe)=>Pe!==0);Ge=Ge==null?void 0:Ge.join("");let V=Tc(r,l,Ge),F="";(q=V==null?void 0:V.tableFilter)!=null&&q.includes(dr)?V.tableFilter=(X=V==null?void 0:V.tableFilter)==null?void 0:X.replace(dr,""):F=(ze=(pe=(ee=V==null?void 0:V.tableFilter)==null?void 0:ee.replace("(",dr))==null?void 0:pe.split(dr))==null?void 0:ze[0];let le=(se=(N=(ue=V==null?void 0:V.tableFilter)==null?void 0:ue.replace("(",dr))==null?void 0:N.split(dr))==null?void 0:se[0];le=[{menus:(ve=(G=le==null?void 0:le.split("*"))==null?void 0:G[0])==null?void 0:ve.replaceAll(":","/"),groups:((Be=(ke=le==null?void 0:le.split("*"))==null?void 0:ke[1])==null?void 0:Be.split(":"))??[]}];let fe=(I=(he=(We=V==null?void 0:V.tableFilter)==null?void 0:We.replace("(",dr))==null?void 0:he.split(dr))==null?void 0:I[1];(fe==null?void 0:fe[(fe==null?void 0:fe.length)-1])===")"&&(fe=fe==null?void 0:fe.slice(0,(fe==null?void 0:fe.length)-1));let be=[];V!=null&&V.tableFilter&&((Oe=re.analyzeSplitToContent(V==null?void 0:V.tableFilter,","))==null||Oe.forEach(ia=>{ia!=null&&ia.includes("@ShowHide=Hide")&&be.push("HideGroup=Yes")}));let ua=(l==null?void 0:l.menuFilter)??[];return Array.isArray(ua)||(ua=ua?[ua]:[]),ua=[...ua,...be],{key:"Table",name:V==null?void 0:V.groupName,filter:V==null?void 0:V.tableFilter,tableColumns:V==null?void 0:V.tableColumns,tableContents:V==null?void 0:V.tableContents,quotePage:F!==""?((xe=(ge=(oe=F==null?void 0:F.replace("*",dr))==null?void 0:oe.split(dr))==null?void 0:ge[0])==null?void 0:xe.replaceAll(":","/"))??"":void 0,quoteGroup:F!==""?((ya=(Ke=(we=(ne=F==null?void 0:F.replace("*",dr))==null?void 0:ne.split(dr))==null?void 0:we[1])==null?void 0:Ke.split(":"))==null?void 0:ya.filter(ia=>ia!==""))??[]:[],menuFilter:ua,relatedQuotes:le,fatherSyncContents:(V==null?void 0:V.fatherSyncContents)??[],sonSyncContents:(V==null?void 0:V.sonSyncContents)??[],calculatorFilters:(V==null?void 0:V.calculatorFilters)??[]}}},wp=async(a,l)=>{let r=[],n=l==null?void 0:l.length;return l=l==null?void 0:l.map(async(i,o)=>{let p=[];i=i==null?void 0:i.map(async s=>{var u,y;if(p.push(s),((u=re.analyzeSplitToContent(a,"="))==null?void 0:u.length)<=2){if(((y=re.analyzeSplitToContent(a,"="))==null?void 0:y.length)!==0){const b=await kp(re.analyzeSplitToContent(a,"="),n,o,s);b&&p.push(b)}}else p.push(xp(a,s))}),await Promise.all(i),r.push(p)}),await Promise.all(l),r};let Ki="/",_p="$",zn="$R";const Sc=a=>{var r,n,i;let l="";if((a==null?void 0:a.length)>1){let o=a==null?void 0:a.filter((p,s)=>s!==0);o=o==null?void 0:o.join(""),o=re.analyzerSplitToWord(o,")"),(o==null?void 0:o.length)!==1?(o==null?void 0:o[(o==null?void 0:o.length)-1])===")"?o=o==null?void 0:o.join(""):o=(r=o==null?void 0:o.filter((p,s)=>s!==(o==null?void 0:o.length)-1))==null?void 0:r.join(""):o=o==null?void 0:o[0],l="("+o,((i=a==null?void 0:a[0])==null?void 0:i[((n=a==null?void 0:a[0])==null?void 0:n.length)-2])==="@"&&(l="@"+l)}return{filter:l}},Ec=(a,l=[])=>{let r=(a==null?void 0:a.map(o=>{var p,s;return(s=o==null?void 0:o.key)==null?void 0:s.slice(1,(p=o==null?void 0:o.key)==null?void 0:p.length)}))??[],n=[];r==null||r.forEach(o=>{var p,s,u,y,b,g,d,C,v,H,T,j,D,_,S,x,k,E,M,O,Q,J,ye;if(o===""&&(o="算法库:通用算法"),o!=null&&o.includes(_p)){let te="",U=!0,q=re.analyzerSplitToWord(o,"(");(q==null?void 0:q.length)>1&&(te="("+((p=re.analyzerSplitToWord(q==null?void 0:q[1],")"))==null?void 0:p[0]),((u=q==null?void 0:q[0])==null?void 0:u[((s=q==null?void 0:q[0])==null?void 0:s.length)-2])==="@"&&(te="@"+te));let X=o;X=X==null?void 0:X.replace(te,""),te=vn(te),te=(y=re.analyzeSplitToContent(te,","))==null?void 0:y.map(se=>((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)),te!=null&&te.includes("@ShowHide=Hide")&&(U=!1);let ee=(b=X==null?void 0:X.replace("$",zn))==null?void 0:b.split(zn),pe=ee==null?void 0:ee[1],ze=ee==null?void 0:ee[0];ze!=null&&ze.includes("[")&&(ze=(d=(g=ze==null?void 0:ze.replace("[",zn))==null?void 0:g.split(zn))==null?void 0:d[0],pe=pe+":["+((H=(v=(C=ee==null?void 0:ee[0])==null?void 0:C.replace("[",zn))==null?void 0:v.split(zn))==null?void 0:H[1])),ze=(j=(T=ze==null?void 0:ze.replaceAll(":","/"))==null?void 0:T.replaceAll("{",""))==null?void 0:j.replaceAll("}",""),(ze==null?void 0:ze[(ze==null?void 0:ze.length)-1])!=="/"&&(ze=ze+"/"),pe=((D=ze==null?void 0:ze.split("/"))==null?void 0:D[0])+":"+pe;let N="";if(!(pe!=null&&pe.includes("[")))N=pe==null?void 0:pe.replaceAll(":","/"),n==null||n.push({path:N,isShow:U,filter:te,fatherPath:ze});else{let se=(S=(_=pe==null?void 0:pe.replace("[",zn))==null?void 0:_.split(zn))==null?void 0:S[1];se=se==null?void 0:se.slice(0,(se==null?void 0:se.length)-1),se=(x=re.analyzeSplitToContent(se,","))==null?void 0:x.map(G=>((G==null?void 0:G[(G==null?void 0:G.length)-1])===","&&(G=G==null?void 0:G.slice(0,(G==null?void 0:G.length)-1)),G)),se==null||se.forEach(G=>{var ve,ke;N=((ke=(ve=pe==null?void 0:pe.replace("[",zn))==null?void 0:ve.split(zn))==null?void 0:ke[0])+G,N=N==null?void 0:N.replaceAll(":","/"),n==null||n.push({path:N,isShow:U,filter:te,fatherPath:ze})})}}else{let te="",U=!0,q=re.analyzerSplitToWord(o,"(");(q==null?void 0:q.length)>1&&(te=(k=Sc(q))==null?void 0:k.filter);let X=o;if(X=X==null?void 0:X.replace(te,""),(te==null?void 0:te[0])==="("){te=te==null?void 0:te.slice(1,(te==null?void 0:te.length)-1);let pe=[];(E=re.analyzeSplitToContent(te,","))==null||E.forEach(ze=>{(ze==null?void 0:ze[(ze==null?void 0:ze.length)-1])===","&&(ze=ze==null?void 0:ze.slice(0,(ze==null?void 0:ze.length)-1)),(ze==null?void 0:ze[0])==="("&&(ze=ze==null?void 0:ze.slice(1,(ze==null?void 0:ze.length)-1)),(ze==null?void 0:ze[0])!=="@"&&(ze="@"+ze),pe.push(vn(ze))}),te=pe==null?void 0:pe.join(",")}else te=vn(te);te=(M=re.analyzeSplitToContent(te,","))==null?void 0:M.map(pe=>((pe==null?void 0:pe[(pe==null?void 0:pe.length)-1])===","&&(pe=pe==null?void 0:pe.slice(0,(pe==null?void 0:pe.length)-1)),pe)),te!=null&&te.includes("@ShowHide=Hide")&&(U=!1),(X==null?void 0:X[(X==null?void 0:X.length)-1])==="}"&&(X=X+":"),X=(O=X==null?void 0:X.replaceAll("{",""))==null?void 0:O.replaceAll("}","");let ee="";if(X!=null&&X.includes("[")){let pe=(Q=X==null?void 0:X.replace("[",zn))==null?void 0:Q.split(zn),ze=pe==null?void 0:pe[1];ze=ze==null?void 0:ze.slice(0,(ze==null?void 0:ze.length)-1),(ye=(J=re.analyzeSplitToContent(ze,","))==null?void 0:J.map(ue=>((ue==null?void 0:ue[(ue==null?void 0:ue.length)-1])===","&&(ue=ue==null?void 0:ue.slice(0,(ue==null?void 0:ue.length)-1)),ue)))==null||ye.forEach(ue=>{ee=(pe==null?void 0:pe[0])+ue,ee=ee==null?void 0:ee.replaceAll(":","/"),n==null||n.push({path:ee,isShow:U,filter:te})})}else ee=X==null?void 0:X.replaceAll(":","/"),n==null||n.push({path:ee,isShow:U,filter:te})}});let i=R.cloneDeep(n);return(l==null?void 0:l.length)>0&&(i=l),i=i==null?void 0:i.filter(o=>{var p,s,u,y;return!(o!=null&&o.fatherPath)&&((s=(p=o==null?void 0:o.path)==null?void 0:p.split(Ki))==null?void 0:s.length)>1&&((y=(u=o==null?void 0:o.path)==null?void 0:u.split(Ki))==null?void 0:y[1])===""}),i=i==null?void 0:i.map(o=>{var p;return o.path=(p=o.path)==null?void 0:p.replace(Ki,""),o.path}),(i==null?void 0:i.length)>0&&(n=n==null?void 0:n.map(o=>{var s,u,y,b,g,d,C;let p=i==null?void 0:i.find(v=>{var H;return(H=o==null?void 0:o.path)==null?void 0:H.includes(v)});return!(o!=null&&o.fatherPath)&&p&&!((s=o==null?void 0:o.path)!=null&&s.includes(Ki))&&!(i!=null&&i.find(v=>(o==null?void 0:o.path)===v))&&(o.path=p+Ki+((C=(y=(u=o==null?void 0:o.path)==null?void 0:u.split(p))==null?void 0:y[1])==null?void 0:C.slice(1,(d=(g=(b=o==null?void 0:o.path)==null?void 0:b.split(p))==null?void 0:g[1])==null?void 0:d.length))),o})),n},Sp=(a,l)=>Ec([{key:a}],l),Ep=async(a,l)=>{const r=[],n=Sp(a==null?void 0:a.key,l);return n&&(n==null?void 0:n.length)>0&&(n==null||n.forEach(o=>{r.push([{key:"path",value:o==null?void 0:o.path,parentPath:(o==null?void 0:o.parentPath)??"",isShow:o==null?void 0:o.isShow,menuFilter:o==null?void 0:o.filter}])})),await wp(a==null?void 0:a.value,r)};let yl="$R",Xi="[Any]";const Cp=a=>{var n;let l=[],r=a;return(n=re.chunkArray(r))==null||n.forEach(i=>{var y,b,g,d,C;let o="",p=[],s="";(i==null?void 0:i.length)>1&&(s="@"+(i==null?void 0:i[0]),s=vn(s));let u=(i==null?void 0:i.length)===1?i==null?void 0:i[0]:i==null?void 0:i[1];u=u==null?void 0:u.slice(1,u==null?void 0:u.length),o=(b=(y=u==null?void 0:u.replace("(",yl))==null?void 0:y.split(yl))==null?void 0:b[0],u=(d=(g=u==null?void 0:u.replace("(",yl))==null?void 0:g.split(yl))==null?void 0:d[1],u=u==null?void 0:u.slice(0,(u==null?void 0:u.length)-1),p=(C=re.analyzeSplitToContent(u,","))==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)),v)),l.push({functionName:o,functionRelatedWords:p,calculatorFilter:s})}),l},Tp=a=>{var r,n,i;let l={};if(((r=a==null?void 0:a[1])==null?void 0:r[0])==="&"){let o=a==null?void 0:a[0],p=a==null?void 0:a[1];p=re.analyzeSplitToContent(p,":"),p!=null&&p[1]&&(p==null?void 0:p[1])!==""&&(o=o+":"+(p==null?void 0:p[1])),p=p==null?void 0:p[0],p=p==null?void 0:p.slice(0,(p==null?void 0:p.length)-1),p=[p],o=[o],o=Cc(o),l.filter=o==null?void 0:o.filter,l.contents=o==null?void 0:o.contents,l.formContents=o==null?void 0:o.formContents,l.groupFilters=o==null?void 0:o.groupFilters,l.groupName=o==null?void 0:o.groupName,l.hideContents=o==null?void 0:o.hideContents,l.calculatorFilters=Cp(p)??[]}else{let p=a==null?void 0:a[0];(p==null?void 0:p[0])==="*"&&(p=p==null?void 0:p.slice(1,p==null?void 0:p.length)),p=p==null?void 0:p.split(":"),l.group=p;let s=a==null?void 0:a[1],u;s!=null&&s.includes("{")?u=(i=(n=s==null?void 0:s.replaceAll("{",""))==null?void 0:n.replaceAll("}",""))==null?void 0:i.replaceAll(Xi,""):u=s==null?void 0:s.replaceAll(Xi,""),(u==null?void 0:u[0])==="$"&&(u=u==null?void 0:u.slice(1,u==null?void 0:u.length)),l.filter=u}return l},Cc=a=>{var d,C,v,H,T,j;let l=[],r=[],n=[],i=[],o=[],p=[],s="",u=a==null?void 0:a[0];(u==null?void 0:u[0])==="*"&&(u=u==null?void 0:u.slice(1,u==null?void 0:u.length));let y=re.analyzeSplitToContent(u,":");(d=y==null?void 0:y.filter(D=>(D==null?void 0:D[0])!=="{"&&(D==null?void 0:D[0])!=="["))==null||d.forEach(D=>{var S,x,k;(D==null?void 0:D[(D==null?void 0:D.length)-1])===":"&&(D=D==null?void 0:D.slice(0,(D==null?void 0:D.length)-1));let _=re.analyzerSplitToWord(D,"(");if((_==null?void 0:_.length)>1){s=(S=Sc(_))==null?void 0:S.filter;let E=D==null?void 0:D.replace(s,"");if(n.push(E),(s==null?void 0:s[0])==="("){s=s==null?void 0:s.slice(1,(s==null?void 0:s.length)-1);let M=[];(x=re.analyzeSplitToContent(s,","))==null||x.forEach(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?void 0:O[0])==="("&&(O=O==null?void 0:O.slice(1,(O==null?void 0:O.length)-1)),(O==null?void 0:O[0])!=="@"&&(O="@"+O),M.push(vn(O))}),s=M==null?void 0:M.join(",")}else s=vn(s);s=(k=re.analyzeSplitToContent(s,","))==null?void 0:k.map(M=>((M==null?void 0:M[(M==null?void 0:M.length)-1])===","&&(M=M==null?void 0:M.slice(0,(M==null?void 0:M.length)-1)),M)),s!=null&&s.includes("@ShowHide=Hide")&&p.push(E),i=[...i,...s]}else n.push(_==null?void 0:_[0])});let b=(C=y==null?void 0:y.filter(D=>(D==null?void 0:D[0])==="{"))==null?void 0:C[0],g=(v=y==null?void 0:y.filter(D=>(D==null?void 0:D[0])==="["))==null?void 0:v[0];return l=Ri(g??""),l!=null&&l.every(D=>Array.isArray(D))&&(l=[l]),(b==null?void 0:b[(b==null?void 0:b.length)-1])===":"&&(b=b==null?void 0:b.slice(0,(b==null?void 0:b.length)-1)),o=(H=re.analyzeSplitToContent(b,"@"))==null?void 0:H[1],o="@"+o,b=b==null?void 0:b.replace(o,""),o=vn(o),o=(T=re.analyzeSplitToContent(o,","))==null?void 0:T.map(D=>((D==null?void 0:D[(D==null?void 0:D.length)-1])===","&&(D=D==null?void 0:D.slice(0,(D==null?void 0:D.length)-1)),D)),(b==null?void 0:b[0])==="{"&&(b=b==null?void 0:b.slice(1,(b==null?void 0:b.length)-1)),b=(j=re.analyzeSplitToContent(b,","))==null?void 0:j.map(D=>((D==null?void 0:D[(D==null?void 0:D.length)-1])===","&&(D=D==null?void 0:D.slice(0,(D==null?void 0:D.length)-1)),D)),b==null||b.forEach((D,_)=>{var ee,pe,ze,ue,N,se,G,ve,ke,Be,We,he,I,Oe,oe,ge,xe,ne,we,Ke,ya,Ge,V,F,le,fe,be,ua,ia,Pe,va,Ea,Ae,Fa,Ta,da,Ha;let S=[],x=[],k=[],E="",M="",O=!1,Q,J=[],ye=[],te=[],U="Input",q=[],X=[];if(D!=null&&D.includes("==")){Q=(ee=D==null?void 0:D.split("=="))==null?void 0:ee[0];let sa=(pe=D==null?void 0:D.split("=="))==null?void 0:pe[1],He="";((ze=re.analyzeSplitToContent(sa,"$"))==null?void 0:ze.length)>1&&((ue=re.analyzeSplitToContent(sa,"$"))==null?void 0:ue[0])!=="$"?(He=(N=re.analyzeSplitToContent(sa,"$"))==null?void 0:N[0],He=He==null?void 0:He.slice(0,(He==null?void 0:He.length)-1)):((se=re.analyzeSplitToContent(sa,"}"))==null?void 0:se.length)>1&&(He=(G=re.analyzeSplitToContent(sa,"}"))==null?void 0:G[1]);let ha=sa==null?void 0:sa.replace(He,"");if((He==null?void 0:He[0])==="("&&(He=He==null?void 0:He.slice(1,(He==null?void 0:He.length)-1)),(ve=re.analyzeSplitToContent(He,","))==null||ve.forEach(ea=>{var Fe;(ea==null?void 0:ea[0])!=="@"&&(ea="@"+ea),(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));let $e=vn(ea);(Fe=re.analyzeSplitToContent($e,","))==null||Fe.forEach(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)),S.push(ie)})}),(ha==null?void 0:ha[0])==="$"&&(ha=ha==null?void 0:ha.slice(1,ha==null?void 0:ha.length)),ha!=null&&ha.includes("&")){let ea=ha;if((ha==null?void 0:ha[0])==="("){let Fe=(ke=re.analyzeSplitToContent(ha,"&"))==null?void 0:ke.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));ea=Fe==null?void 0:Fe[1],Fe=Fe==null?void 0:Fe[0],(Fe==null?void 0:Fe[0])!=="@"&&(Fe="@"+Fe),E=vn(Fe)}(ea==null?void 0:ea[0])==="&"&&(ea=ea==null?void 0:ea.slice(1,ea==null?void 0:ea.length)),M=(We=(Be=ea==null?void 0:ea.replace("(",yl))==null?void 0:Be.split(yl))==null?void 0:We[0],k=(I=(he=ea==null?void 0:ea.replace("(",yl))==null?void 0:he.split(yl))==null?void 0:I[1],k=[k==null?void 0:k.slice(0,(k==null?void 0:k.length)-1)],U="Input"}else{let ea=(Oe=ha==null?void 0:ha.replace("*",yl))==null?void 0:Oe.split(yl);J=(oe=ea==null?void 0:ea[0])==null?void 0:oe.split(":"),ye=(xe=(ge=re.analyzeSplitToContent(ea==null?void 0:ea[1],":"))==null?void 0:ge.filter(($e,Fe)=>{var ie,Ye;return Fe!==((Ye=(ie=ea==null?void 0:ea[1])==null?void 0:ie.split(":"))==null?void 0:Ye.length)-1}))==null?void 0:xe.map($e=>(($e==null?void 0:$e[($e==null?void 0:$e.length)-1])===":"&&($e=$e==null?void 0:$e.slice(0,($e==null?void 0:$e.length)-1)),$e)),te=(we=(ne=re.analyzeSplitToContent(ea==null?void 0:ea[1],":"))==null?void 0:ne.filter(($e,Fe)=>{var ie,Ye;return Fe===((Ye=(ie=ea==null?void 0:ea[1])==null?void 0:ie.split(":"))==null?void 0:Ye.length)-1}))==null?void 0:we[0],te=(ya=(Ke=te==null?void 0:te.replaceAll("{",""))==null?void 0:Ke.replaceAll("}",""))==null?void 0:ya.split(":"),U="Select"}if(Q!=null&&Q.includes("@")){let ea=re.analyzeSplitToContent(Q,"@");Q=ea==null?void 0:ea[0],Q=Q==null?void 0:Q.slice(0,(Q==null?void 0:Q.length)-1),ea="@"+(ea==null?void 0:ea[1]),ea=vn(ea),S=(Ge=re.analyzeSplitToContent(ea,","))==null?void 0:Ge.map($e=>(($e==null?void 0:$e[($e==null?void 0:$e.length)-1])===","&&($e=$e==null?void 0:$e.slice(0,($e==null?void 0:$e.length)-1)),$e))}}else if(((V=re.analyzeSplitToContent(D,"="))==null?void 0:V.length)>1)if(U="Select",Q=(le=(F=D==null?void 0:D.replace("=",yl))==null?void 0:F.split(yl))==null?void 0:le[0],!(D!=null&&D.includes("If")))q=(be=(fe=D==null?void 0:D.replace("=",yl))==null?void 0:fe.split(yl))==null?void 0:be[1],q=q==null?void 0:q.split("||");else{let sa=(ia=(ua=D==null?void 0:D.replace("=",yl))==null?void 0:ua.split(yl))==null?void 0:ia[1];X=(Pe=re.analyzeSplitToContent(sa,")"))==null?void 0:Pe.filter(He=>!(He!=null&&He.includes("If"))),X=X==null?void 0:X.map(He=>((He==null?void 0:He[0])==="("&&(He=He==null?void 0:He.slice(1,(He==null?void 0:He.length)-1)),He=He==null?void 0:He.split("||"),He)),x=(va=re.analyzeSplitToContent(sa,")"))==null?void 0:va.filter(He=>He==null?void 0:He.includes("If")),x=x==null?void 0:x.map(He=>((He==null?void 0:He[0])==="|"&&(He=He==null?void 0:He.slice(2,He==null?void 0:He.length)),(He==null?void 0:He[0])==="("&&(He=He==null?void 0:He.slice(1,(He==null?void 0:He.length)-1)),(He==null?void 0:He[0])!=="@"&&(He="@"+He),He))}else if(((Ea=re.analyzeSplitToContent(D,"@"))==null?void 0:Ea.length)>1){Q=(Ae=re.analyzeSplitToContent(D,"@"))==null?void 0:Ae[0],(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));let sa="@"+((Fa=re.analyzeSplitToContent(D,"@"))==null?void 0:Fa[1]);sa=vn(sa),S=(Ta=re.analyzeSplitToContent(sa,","))==null?void 0:Ta.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)),S!=null&&S.find(He=>He==null?void 0:He.includes("@Type"))&&(U=(Ha=(da=S==null?void 0:S.find(He=>He==null?void 0:He.includes("@Type")))==null?void 0:da.split("="))==null?void 0:Ha[1])}else Q=D;S!=null&&S.includes("@ShowHide=Hide")&&(O=!0),r.push({prop:Q,label:Q,value:"",menuPath:J,groups:ye,columns:te,type:U,options:q,allContents:X,filters:S,width:b==null?void 0:b.length,isFormColHidden:O,filterContents:x,functionName:M,functionRelatedWords:k,calculatorFilter:E})}),{groupName:n,groupFilters:i,formContents:r,contents:l,filter:o,hideContents:p}},Ri=a=>{var n,i;if(!a||typeof a!="string")return[];let l=[],r=a.slice(1,(a==null?void 0:a.length)-1);if((r==null?void 0:r[0])!=="[")(n=re.analyzeSplitToContent(r,","))==null||n.forEach(o=>{(o==null?void 0:o[(o==null?void 0:o.length)-1])===","&&(o=o.slice(0,(o==null?void 0:o.length)-1)),l.push(o??"")}),(r==null?void 0:r[(r==null?void 0:r.length)-1])===","&&l.push("");else{let o=[];(i=re.analyzeSplitToContent(r,","))==null||i.forEach(p=>{(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)),o.push(Ri(p))}),l=o}return l},Bt=(a,l)=>{var j,D,_,S,x,k,E,M,O,Q,J,ye,te,U,q,X,ee,pe,ze,ue,N,se,G,ve,ke,Be,We,he,I,Oe,oe,ge,xe,ne,we,Ke,ya,Ge,V,F,le,fe,be,ua,ia,Pe,va,Ea,Ae,Fa,Ta,da,Ha,sa,He,ha,ea,$e,Fe,ie,Ye,na,fa;let r,n=[],i=[],o=[],p=[],s=[],u=[],y=[],b="Input",g,d="",C="",v="",H=[],T="";if(a!=null&&a.includes("==")||a!=null&&a.includes("=")||a!=null&&a.includes("@")||a!=null&&a.includes("||"))if(r=(j=a==null?void 0:a.split("=="))==null?void 0:j[0],g=(D=a==null?void 0:a.split("=="))==null?void 0:D[0],b="Select",a!=null&&a.includes("=")&&!(a!=null&&a.includes("=="))&&!((x=(S=(_=a==null?void 0:a.replace("=",yl))==null?void 0:_.split(yl))==null?void 0:S[1])!=null&&x.includes("If")))if(r=re.analyzeSplitToContent(a,"@"),r=r==null?void 0:r[0],(r==null?void 0:r[(r==null?void 0:r.length)-1])==="@"&&(r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1)),r=(E=(k=r==null?void 0:r.replace("=",yl))==null?void 0:k.split(yl))==null?void 0:E[0],r!=null&&r.includes("&")&&(r=(O=(M=r==null?void 0:r.replace("&",yl))==null?void 0:M.split(yl))==null?void 0:O[0]),g=r,((Q=re.analyzeSplitToContent(a,"@"))==null?void 0:Q.length)>1&&!(a!=null&&a.includes("||"))){if(!(a!=null&&a.includes("&"))){let Re=(J=re.analyzeSplitToContent(a,"@"))==null?void 0:J[1];if((Re==null?void 0:Re[0])!=="@"&&(Re="@"+Re),Re=vn(Re),C=Re,C!=null&&C.includes("@Type")){let Ie=re.analyzeSplitToContent(C,",");Ie=Ie==null?void 0:Ie.map(Je=>((Je==null?void 0:Je[(Je==null?void 0:Je.length)-1])===","&&(Je=Je==null?void 0:Je.slice(0,(Je==null?void 0:Je.length)-1)),Je)),Ie=(ye=Ie==null?void 0:Ie.filter(Je=>Je==null?void 0:Je.includes("@Type")))==null?void 0:ye[0],b=(te=Ie==null?void 0:Ie.split("="))==null?void 0:te[1],b==="File"&&(b="Upload")}else b="Input"}}else if(a!=null&&a.includes("||")){let Re=[];n=(X=(q=(U=re.analyzeSplitToContent(a,"="))==null?void 0:U[1])==null?void 0:q.split("||"))==null?void 0:X.map(Je=>{var _e,$a,wl,el;let Ne=Je;if(Ne!=null&&Ne.includes("@")){let Pl="@"+(($a=(_e=Ne==null?void 0:Ne.replace("@",yl))==null?void 0:_e.split(yl))==null?void 0:$a[1]);Ne=(el=(wl=Ne==null?void 0:Ne.replace("@",yl))==null?void 0:wl.split(yl))==null?void 0:el[0],Pl=ri(Pl),Re.push(Pl)}return{label:Ne==null?void 0:Ne.replaceAll("'",""),value:Ne==null?void 0:Ne.replaceAll("'","")}}),(Re==null?void 0:Re.length)>0&&(C="("+(Re==null?void 0:Re.join("||"))+")");let Ie=(ee=re.analyzeSplitToContent(a,"="))==null?void 0:ee[0];if(Ie!=null&&Ie.includes("@")){(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));let Je=(pe=re.analyzeSplitToContent(Ie,"@"))==null?void 0:pe[1];Je="@"+Je,Je=ri(Je),C=C===""?Je:Je+","+C}}else b="Input",d=(N=(ue=(ze=a==null?void 0:a.replace("=",yl))==null?void 0:ze.split(yl))==null?void 0:ue[1])==null?void 0:N.replaceAll("'","");else if((G=(se=re.analyzeSplitToContent(a,"="))==null?void 0:se[1])!=null&&G.includes("||")){let Re=(ve=re.analyzeSplitToContent(a,"="))==null?void 0:ve[0];if((Re==null?void 0:Re[(Re==null?void 0:Re.length)-1])==="="&&(Re=Re==null?void 0:Re.slice(0,(Re==null?void 0:Re.length)-1)),Re!=null&&Re.includes("@")){let _e=(ke=re.analyzeSplitToContent(Re,"@"))==null?void 0:ke[1];_e="@"+_e,C=ri(_e),r=(I=(Be=re.analyzeSplitToContent(Re,"@"))==null?void 0:Be[0])==null?void 0:I.slice(0,((he=(We=re.analyzeSplitToContent(Re,"@"))==null?void 0:We[0])==null?void 0:he.length)-1),g=(xe=(Oe=re.analyzeSplitToContent(Re,"@"))==null?void 0:Oe[0])==null?void 0:xe.slice(0,((ge=(oe=re.analyzeSplitToContent(Re,"@"))==null?void 0:oe[0])==null?void 0:ge.length)-1)}else r=Re,g=Re;let Ie=(ne=re.analyzeSplitToContent(a,"="))==null?void 0:ne[1];Ie=re.analyzeSplitToContent(Ie,")");let Je=Ie==null?void 0:Ie.filter(_e=>!(_e!=null&&_e.includes("If")));Je==null||Je.forEach(_e=>{(_e==null?void 0:_e[0])==="("&&(_e=_e==null?void 0:_e.slice(1,(_e==null?void 0:_e.length)-1)),i==null||i.push(_e==null?void 0:_e.split("||"))});let Ne=Ie==null?void 0:Ie.filter(_e=>_e==null?void 0:_e.includes("If"));Ne=Ne==null?void 0:Ne.map(_e=>((_e==null?void 0:_e[0])==="|"&&(_e==null?void 0:_e[1])==="|"&&(_e=_e==null?void 0:_e.slice(2,_e==null?void 0:_e.length)),(_e==null?void 0:_e[0])==="("&&(_e=_e==null?void 0:_e.slice(1,(_e==null?void 0:_e.length)-1)),(_e==null?void 0:_e[0])!=="@"&&(_e="@"+_e),_e)),o=Ne}else{let Re=a==null?void 0:a.split("=="),Ie=(we=Re==null?void 0:Re.filter(Je=>(Je==null?void 0:Je.includes("$"))&&(Je==null?void 0:Je[0])!=="{"))==null?void 0:we[0];if(Ie&&!(Ie!=null&&Ie.includes("&"))){let Je=(ya=re.analyzeSplitToContent(Ie,")"))==null?void 0:ya[((Ke=re.analyzeSplitToContent(Ie,")"))==null?void 0:Ke.length)-1],Ne=(Ge=Je==null?void 0:Je.replace("*",yl))==null?void 0:Ge.split(yl),_e=(Ne==null?void 0:Ne[0])===""?l==null?void 0:l.value:Ne==null?void 0:Ne[0];(_e==null?void 0:_e[0])==="("&&(_e=(V=re.analyzeSplitToContent(_e,")"))==null?void 0:V[1]),_e=(le=(F=_e==null?void 0:_e.replaceAll("{",""))==null?void 0:F.replaceAll("}",""))==null?void 0:le.replaceAll(Xi,""),(_e==null?void 0:_e[0])==="$"&&(_e=(fe=_e==null?void 0:_e.slice(1,_e==null?void 0:_e.length))==null?void 0:fe.replaceAll(":","/")),p=_e==null?void 0:_e.split("/");let $a=(ua=(be=Ne==null?void 0:Ne[1])==null?void 0:be.replace("{",yl))==null?void 0:ua.split(yl),wl=$a==null?void 0:$a[0];(wl==null?void 0:wl[(wl==null?void 0:wl.length)-1])===":"&&(wl=wl==null?void 0:wl.slice(0,(wl==null?void 0:wl.length)-1)),s=wl==null?void 0:wl.split(":"),u=(Ea=(va=(Pe=(ia=$a==null?void 0:$a[1])==null?void 0:ia.replace("}",yl))==null?void 0:Pe.split(yl))==null?void 0:va[0])==null?void 0:Ea.split(":");let el="";((Ae=re.analyzeSplitToContent(Ie,")"))==null?void 0:Ae.length)>1&&(el=(Fa=re.analyzeSplitToContent(Ie,")"))==null?void 0:Fa[0]),el&&el!==""&&((el==null?void 0:el[0])!=="@"&&(el="@"+el),C=ri(el))}if(Re!=null&&Re.some(Je=>Je==null?void 0:Je.includes("&"))){let Je=(Ta=Re==null?void 0:Re.filter($a=>$a==null?void 0:$a.includes("&")))==null?void 0:Ta[0];Je=(da=re.analyzeSplitToContent(Je,"&"))==null?void 0:da.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)),v=(He=(sa=(Ha=Je==null?void 0:Je[1])==null?void 0:Ha.replace("(",yl))==null?void 0:sa.split(yl))==null?void 0:He[0];let Ne=(ha=re.analyzeSplitToContent(Je==null?void 0:Je[1],")"))==null?void 0:ha[0];Ne=($e=(ea=Ne==null?void 0:Ne.replace("(",yl))==null?void 0:ea.split(yl))==null?void 0:$e[1],Ne=Ne==null?void 0:Ne.slice(0,(Ne==null?void 0:Ne.length)-1),(Ne==null?void 0:Ne[0])==="{"&&(Ne=Ne==null?void 0:Ne.slice(1,Ne==null?void 0:Ne.length)),(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)),H=Ne==null?void 0:Ne.split(",");let _e=Je==null?void 0:Je[0];_e&&_e!==""&&((_e==null?void 0:_e[0])!=="@"&&(_e="@"+_e),T=ri(_e))}else if(!Ie&&((Fe=Re==null?void 0:Re.filter(Je=>(Je==null?void 0:Je[0])==="{"))==null?void 0:Fe.length)>0){let Je=Re==null?void 0:Re[(Re==null?void 0:Re.length)-1];Je=Je==null?void 0:Je.slice(1,(Je==null?void 0:Je.length)-1),Je=re.analyzeSplitToContent(Je,","),Je=Je==null?void 0:Je.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)),Je=Je==null?void 0:Je.map(Ne=>{var _e,$a,wl,el;if(Ne=Ne==null?void 0:Ne.replaceAll("$",""),Ne!=null&&Ne.includes("{")){let Pl="";Ne=Ne==null?void 0:Ne.replaceAll("{","");let bl=Ne==null?void 0:Ne.split("}");Pl=(($a=(_e=bl==null?void 0:bl[0])==null?void 0:_e.split(":"))==null?void 0:$a[0])+":"+(bl==null?void 0:bl[1]),Ne=Pl,Ne=Ne+":"}if(Ne!=null&&Ne.includes(Xi)){let Pl="",bl=Ne==null?void 0:Ne.split(Xi);Pl=((el=(wl=bl==null?void 0:bl[0])==null?void 0:wl.split(":"))==null?void 0:el[0])+":"+(bl==null?void 0:bl[1]),Ne=Pl,Ne=Ne+":"}return Ne=Ne==null?void 0:Ne.replaceAll(":","/"),Ne}),y=Je}else!((ie=Re==null?void 0:Re[1])!=null&&ie.includes("$"))&&((Ye=Re==null?void 0:Re[1])==null?void 0:Ye[0])!=="("&&u.push(Re==null?void 0:Re[1])}else r=(na=a==null?void 0:a.split("&"))==null?void 0:na[0],g=(fa=a==null?void 0:a.split("&"))==null?void 0:fa[0];return(n==null?void 0:n.length)===0&&(i==null?void 0:i.length)===0&&(p==null?void 0:p.length)===0&&b==="Select"&&(b="Input"),{label:r,prop:g,options:n,allContents:i,filterContents:o,menus:p,groups:s,words:u,align:"center",formType:b,filter:C,functionName:v,functionRelatedWords:H,calculatorFilter:T,relatedPages:y,value:d}},Ao=(a,l)=>{var n,i,o,p,s,u,y,b,g,d,C,v,H,T,j,D,_,S,x,k,E,M,O,Q,J,ye,te,U,q,X;let r=[];if((a==null?void 0:a[0])==="{"&&(a==null?void 0:a[(a==null?void 0:a.length)-1])==="}"&&!((p=(o=(i=(n=a==null?void 0:a.slice(1,(a==null?void 0:a.length)-1))==null?void 0:n.replace(":",yl))==null?void 0:i.split(yl))==null?void 0:o[0])!=null&&p.includes(","))){let ee=a==null?void 0:a.slice(1,(a==null?void 0:a.length)-1),pe=(s=ee==null?void 0:ee.replace(":",yl))==null?void 0:s.split(yl);if(((u=re.analyzeSplitToContent(pe==null?void 0:pe[1],"="))==null?void 0:u.length)===1){let ze=pe==null?void 0:pe[0],ue=[];(g=re.analyzeSplitToContent((b=pe==null?void 0:pe[1])==null?void 0:b.slice(1,((y=pe==null?void 0:pe[1])==null?void 0:y.length)-1),","))==null||g.forEach(N=>{var se,G;((se=re.analyzeSplitToContent(N,"="))==null?void 0:se.length)>1?((N==null?void 0:N[(N==null?void 0:N.length)-1])===","&&(N=N==null?void 0:N.slice(0,(N==null?void 0:N.length)-1)),ue=[...ue,...Ao(N,l)]):((N==null?void 0:N[(N==null?void 0:N.length)-1])===","&&(N=N==null?void 0:N.slice(0,(N==null?void 0:N.length)-1)),ue.push((G=Ao(N,l))==null?void 0:G[0]))}),r==null||r.push({label:ze,prop:ze,children:ue,align:"center"})}else{let ze=[];if(((d=re.analyzeSplitToContent(ee,"="))==null?void 0:d.length)>=2){let N=(C=re.analyzeSplitToContent(ee,"="))==null?void 0:C[1],se=(v=re.analyzeSplitToContent(N,"/"))==null?void 0:v.map(G=>((G==null?void 0:G[(G==null?void 0:G.length)-1])==="/"&&(G=G==null?void 0:G.slice(0,(G==null?void 0:G.length)-1)),G));ze=se==null?void 0:se.map(G=>(G=Ri(G),G))}let ue=(S=(_=(D=(j=(T=(H=ee==null?void 0:ee.replace("{",yl))==null?void 0:H.split(yl))==null?void 0:T[1])==null?void 0:j.replace("}",yl))==null?void 0:D.split(yl))==null?void 0:_[0])==null?void 0:S.split(",");ue==null||ue.forEach((N,se)=>{(ze==null?void 0:ze.length)>0&&se===0?r==null||r.push({label:N,prop:N,align:"center",formType:"Select",relatedContents:ze==null?void 0:ze.map(G=>{let ve={};return ue==null||ue.forEach((ke,Be)=>{ve[ke]=G==null?void 0:G[Be]}),ve}),options:ze==null?void 0:ze.map(G=>({label:G==null?void 0:G[0],value:G==null?void 0:G[0]})),mainKey:!0}):r==null||r.push({label:N,prop:N,align:"center"})})}}else if((a==null?void 0:a[0])==="{")if(((x=re.analyzeSplitToContent(a,"="))==null?void 0:x.length)===2&&((E=(k=re.analyzeSplitToContent(a,"="))==null?void 0:k[1])==null?void 0:E[0])==="["){let ee=[];if(((M=re.analyzeSplitToContent(a,"="))==null?void 0:M.length)>=2){let ze=(O=re.analyzeSplitToContent(a,"="))==null?void 0:O[1],ue=(J=(Q=re.analyzeSplitToContent(ze,"|"))==null?void 0:Q.filter(N=>N!=="|"))==null?void 0:J.map(N=>((N==null?void 0:N[(N==null?void 0:N.length)-1])==="|"&&(N=N==null?void 0:N.slice(0,(N==null?void 0:N.length)-1)),N));ee=ue==null?void 0:ue.map(N=>(N=Ri(N),N))}let pe=(te=(ye=a==null?void 0:a.replace("}",yl))==null?void 0:ye.split(yl))==null?void 0:te[0];pe=(U=pe==null?void 0:pe.slice(1,pe==null?void 0:pe.length))==null?void 0:U.split(","),pe==null||pe.forEach((ze,ue)=>{(ee==null?void 0:ee.length)>0&&ue===0?r==null||r.push({label:ze,prop:ze,align:"center",formType:"Select",relatedContents:ee==null?void 0:ee.map(N=>{let se={};return pe==null||pe.forEach((G,ve)=>{se[G]=N==null?void 0:N[ve]}),se}),options:ee==null?void 0:ee.map(N=>({label:N==null?void 0:N[0],value:N==null?void 0:N[0]})),mainKey:!0}):r==null||r.push({label:ze,prop:ze,align:"center"})})}else(q=re.analyzeSplitToContent(a,","))==null||q.forEach(ee=>{var pe,ze,ue,N,se,G,ve,ke,Be,We,he,I,Oe,oe,ge,xe,ne,we,Ke,ya,Ge,V,F,le,fe,be,ua,ia,Pe,va,Ea,Ae,Fa,Ta,da,Ha,sa,He,ha,ea;if((ee==null?void 0:ee[(ee==null?void 0:ee.length)-1])===","&&(ee=ee==null?void 0:ee.slice(0,(ee==null?void 0:ee.length)-1)),(ee==null?void 0:ee[0])==="{"){let $e=re.analyzeSplitToContent(ee,"="),Fe=$e==null?void 0:$e[($e==null?void 0:$e.length)-1],ie=[],Ye=[],na=[],fa="",Re="",Ie=[],Je=[],Ne=(pe=Fe==null?void 0:Fe.replace("*",yl))==null?void 0:pe.split(yl),_e=(Ne==null?void 0:Ne[0])===""?l==null?void 0:l.value:Ne==null?void 0:Ne[0];_e=re.analyzeSplitToContent(_e,")");let $a="";if((_e==null?void 0:_e.length)>1&&((ze=_e==null?void 0:_e[0])==null?void 0:ze[0])!=="&"&&($a=_e==null?void 0:_e[0],($a==null?void 0:$a[0])!=="@"&&($a="@"+$a),Re=$a??""),_e=(ue=_e==null?void 0:_e.filter(ll=>(ll==null?void 0:ll[0])==="$"))==null?void 0:ue[0],((N=re.analyzeSplitToContent(_e,"}"))==null?void 0:N.length)>1&&((G=(se=re.analyzeSplitToContent(_e,"}"))==null?void 0:se[1])==null?void 0:G[0])==="("&&($a=(ve=re.analyzeSplitToContent(_e,"}"))==null?void 0:ve[1],($a==null?void 0:$a[0])!=="@"&&($a="@"+$a),Re!==""&&(Re=Re+","),Re=Re+$a),(ke=_e==null?void 0:_e.slice(1,(_e==null?void 0:_e.length)-1))!=null&&ke.includes("$")||(_e=(Be=re.analyzeSplitToContent(_e,"}"))==null?void 0:Be[0]),(_e==null?void 0:_e[0])==="$"&&(_e=(We=_e==null?void 0:_e.replace("{",""))==null?void 0:We.replace("}",":"),_e=(he=_e==null?void 0:_e.slice(1,_e==null?void 0:_e.length))==null?void 0:he.replaceAll(":","/")),_e!=null&&_e.includes("$")){let ll=(I=_e==null?void 0:_e.split("$"))==null?void 0:I[0];ll=(Oe=ll==null?void 0:ll.split("/"))==null?void 0:Oe[0],_e=ll+"/"+((oe=_e==null?void 0:_e.split("$"))==null?void 0:oe[1])+"/"}ie=(_e==null?void 0:_e.split("/"))??[];let wl=(xe=(ge=Ne==null?void 0:Ne[1])==null?void 0:ge.replace("{",yl))==null?void 0:xe.split(yl);if((Ke=(we=(ne=Ne==null?void 0:Ne[1])==null?void 0:ne.split("(@"))==null?void 0:we[0])!=null&&Ke.includes("&&")||(V=(Ge=(ya=Ne==null?void 0:Ne[1])==null?void 0:ya.split("@"))==null?void 0:Ge[0])!=null&&V.includes("&&")){let ll=(F=Ne==null?void 0:Ne[1])!=null&&F.includes("(@")?(be=(fe=(le=Ne==null?void 0:Ne[1])==null?void 0:le.split("(@"))==null?void 0:fe[0])==null?void 0:be.split("&&"):(Pe=(ia=(ua=Ne==null?void 0:Ne[1])==null?void 0:ua.split("@"))==null?void 0:ia[0])==null?void 0:Pe.split("&&");Ie=ll==null?void 0:ll.map(Ga=>{var Jl,Xl;return(Ga==null?void 0:Ga[0])==="*"&&(Ga=Ga==null?void 0:Ga.slice(1,Ga==null?void 0:Ga.length)),Ga=(Xl=(Jl=Ga==null?void 0:Ga.replace("{",yl))==null?void 0:Jl.split(yl))==null?void 0:Xl[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)),Ga=Ga==null?void 0:Ga.split(":"),Ga});let jl=[];ll==null||ll.forEach((Ga,Jl)=>{var Xl,ar;(Ga==null?void 0:Ga[0])==="*"&&(Ga=Ga==null?void 0:Ga.slice(1,Ga==null?void 0:Ga.length)),Ga=(ar=(Xl=Ga==null?void 0:Ga.replace("{",yl))==null?void 0:Xl.split(yl))==null?void 0:ar[1],(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)),Ga=Ga==null?void 0:Ga.split(","),jl.push(Jl===0?(Ga==null?void 0:Ga.length)-1:Ga==null?void 0:Ga.length),Je=[...Je,...Ga]}),jl=(va=re.prefixSum(jl))==null?void 0:va.map(Ga=>Ga==null?void 0:Ga.total),Ie=Ie==null?void 0:Ie.map((Ga,Jl)=>({number:jl==null?void 0:jl[Jl],contents:Ga}))}let el=wl==null?void 0:wl[0];(el==null?void 0:el[(el==null?void 0:el.length)-1])===":"&&(el=el==null?void 0:el.slice(0,(el==null?void 0:el.length)-1)),Ye=(el==null?void 0:el.split(":"))??[],na=((Ta=(Fa=(Ae=(Ea=wl==null?void 0:wl[1])==null?void 0:Ea.replace("}",yl))==null?void 0:Ae.split(yl))==null?void 0:Fa[0])==null?void 0:Ta.split(","))??[];let Pl=(Ha=$e==null?void 0:$e[0])==null?void 0:Ha.slice(1,((da=$e==null?void 0:$e[0])==null?void 0:da.length)-2);Re&&Re!==""&&(fa=ri(Re));let bl=(sa=re.analyzeSplitToContent(fa,","))==null?void 0:sa.map(ll=>((ll==null?void 0:ll[(ll==null?void 0:ll.length)-1])===","&&(ll=ll==null?void 0:ll.slice(0,(ll==null?void 0:ll.length)-1)),ll)),Hl=[];bl!=null&&bl.find(ll=>ll==null?void 0:ll.includes("@MainParam"))&&(bl=bl==null?void 0:bl.find(ll=>ll==null?void 0:ll.includes("@MainParam")),bl=(ha=(He=bl==null?void 0:bl.replace("=",yl))==null?void 0:He.split(yl))==null?void 0:ha[1],bl=bl==null?void 0:bl.slice(1,(bl==null?void 0:bl.length)-1),Hl=re.analyzeSplitToContent(bl,",")),(ea=Pl==null?void 0:Pl.split(","))==null||ea.forEach((ll,jl)=>{var Ga,Jl,Xl,ar,Sl,pr;if(((Ga=re.analyzeSplitToContent(ll,"@"))==null?void 0:Ga.length)>1){let ga=(Jl=re.analyzeSplitToContent(ll,"@"))==null?void 0:Jl[1];ga="@"+ga,fa=ri(ga),ll=(Xl=re.analyzeSplitToContent(ll,"@"))==null?void 0:Xl[0],(ll==null?void 0:ll[(ll==null?void 0:ll.length)-1])==="@"&&(ll=ll==null?void 0:ll.slice(0,(ll==null?void 0:ll.length)-1))}r.push({label:ll,prop:ll,align:"center",menus:ie,groups:(Ie==null?void 0:Ie.length)===0?Ye:(ar=Ie==null?void 0:Ie.find(ga=>(ga==null?void 0:ga.number)>=jl))==null?void 0:ar.contents,words:(Je==null?void 0:Je.length)===0?(Sl=na==null?void 0:na[jl])==null?void 0:Sl.split(":"):(pr=Je==null?void 0:Je[jl])==null?void 0:pr.split(":"),formType:(ie==null?void 0:ie.length)>0?"Select":"Input",mainKey:!!(jl===0||Hl!=null&&Hl.find(ga=>ga===ll)),filter:fa,isMainPath:(Ie==null?void 0:Ie.findIndex(ga=>(ga==null?void 0:ga.number)>=jl))===0})})}else r.push({label:ee,prop:ee,align:"center"})});else{let ee=(X=re.analyzeSplitToContent(a,","))==null?void 0:X.map(pe=>((pe==null?void 0:pe[(pe==null?void 0:pe.length)-1])===","&&(pe=pe==null?void 0:pe.slice(0,(pe==null?void 0:pe.length)-1)),pe));ee==null||ee.forEach(pe=>{r.push(Bt(pe,l))})}return r},Bp=(a,l)=>{var p,s,u,y,b;let r=a;if(!a)return;let n="";((p=re.analyzeSplitToContent(a,"}"))==null?void 0:p.length)>1&&(r=(s=re.analyzeSplitToContent(a,"}"))==null?void 0:s[0],n=(u=re.analyzeSplitToContent(a,"}"))==null?void 0:u[1]),(a==null?void 0:a[0])==="{"&&(a==null?void 0:a[(a==null?void 0:a.length)-1])==="}"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1));let i=[],o=[];return i.push({label:"排序",prop:"sort"}),i.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(y=re.analyzeSplitToContent(r,","))==null||y.forEach(g=>{var d;(g==null?void 0:g[(g==null?void 0:g.length)-1])===","&&(g=g==null?void 0:g.slice(0,(g==null?void 0:g.length)-1)),(g==null?void 0:g[0])==="{"?(d=Ao(g,l))==null||d.forEach(C=>{i.push(C)}):i.push(Bt(g,l))}),i!=null&&i.some(g=>{var d;return(d=g==null?void 0:g.prop)==null?void 0:d.includes("@")})&&(i=i==null?void 0:i.filter(g=>{var d;return!((d=g==null?void 0:g.prop)!=null&&d.includes("@"))})),n!==""&&((n==null?void 0:n[0])=="{"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),(b=re.analyzeSplitToContent(n,","))==null||b.forEach(g=>{var d;(g==null?void 0:g[(g==null?void 0:g.length)-1])===","&&(g=g==null?void 0:g.slice(0,(g==null?void 0:g.length)-1)),(g==null?void 0:g[0])==="{"?(d=Ao(g,l))==null||d.forEach(C=>{o.push(C)}):o.push(Bt(g,l))})),{columns:i,secondColumns:o}},vn=a=>{var l,r,n,i,o;if(a!=null&&a.includes("@Filter")||a!=null&&a.includes("@Condition")||a!=null&&a.includes("@If"))return a;{let p=(r=(l=a==null?void 0:a.replace("(",yl))==null?void 0:l.split(yl))==null?void 0:r[1],s=(i=(n=a==null?void 0:a.replace("(",yl))==null?void 0:n.split(yl))==null?void 0:i[0];return p=p==null?void 0:p.slice(0,(p==null?void 0:p.length)-1),p=(o=re.analyzeSplitToContent(p,","))==null?void 0:o.map(u=>((u==null?void 0:u[(u==null?void 0:u.length)-1])===","&&(u=u==null?void 0:u.slice(0,(u==null?void 0:u.length)-1)),(u==null?void 0:u[0])==="("&&(u=u==null?void 0:u.slice(1,(u==null?void 0:u.length)-1)),s+u)),p=p==null?void 0:p.join(","),a!=null&&a.includes("@Quote")&&(p!=null&&p.includes("@QuoteType")||(p=p===""?p+"@QuoteType=Manual":p+",@QuoteType=Manual"),p!=null&&p.includes("@QuoteSonSync")||(p=p===""?p+"@QuoteSonSync=No":p+",@QuoteSonSync=No"),p!=null&&p.includes("@QuoteFatherSync")||(p=p===""?p+"@QuoteFatherSync=Yes":p+",@QuoteFatherSync=Yes")),p}},Cs=a=>{let l=a==null?void 0:a.map(r=>{var n,i;return{menus:r==null?void 0:r.menus,content:((n=r==null?void 0:r.menus)==null?void 0:n.join("/"))+yl+((i=r==null?void 0:r.groups)==null?void 0:i.join("/"))}});return l=l==null?void 0:l.filter(r=>{var n;return(r==null?void 0:r.menus)&&((n=r==null?void 0:r.menus)==null?void 0:n.length)>0}),l=l==null?void 0:l.map(r=>r==null?void 0:r.content),l=[...new Set(l)],l=l==null?void 0:l.map(r=>{var n,i;return{menus:(n=r==null?void 0:r.split(yl))==null?void 0:n[0],groups:((i=r==null?void 0:r.split(yl))==null?void 0:i[1])??[]}}),l},Ts=a=>{var r;let l=a;return(l==null?void 0:l[0])==="("&&(l==null?void 0:l[1])==="("&&(l=l.slice(1,(l==null?void 0:l.length)-1)),l=(r=re.analyzeSplitToContent(l,","))==null?void 0:r.map(n=>((n==null?void 0:n[(n==null?void 0:n.length)-1])===","&&(n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1)),(n==null?void 0:n[0])!=="@"&&(n="@"+n),(n==null?void 0:n[1])==="("&&(n=vn(n)),n)),l==null?void 0:l.join(",")},Tc=(a,l,r="")=>{var _,S,x,k,E,M,O,Q,J,ye,te,U,q,X,ee,pe,ze,ue,N,se,G,ve,ke,Be,We,he,I,Oe,oe,ge,xe,ne,we,Ke,ya,Ge,V,F,le,fe,be,ua,ia,Pe,va,Ea,Ae,Fa,Ta,da,Ha,sa,He,ha,ea,$e;let n=[],i=[],o=[],p="",s="",u="",y=[],b=[],g=[],d=[],C="";if(((_=a==null?void 0:a[0])==null?void 0:_[0])!=="*"&&((S=a==null?void 0:a[0])==null?void 0:S[0])!=="$"&&!((x=a==null?void 0:a[0])!=null&&x.includes("$")))return;((k=a==null?void 0:a[0])==null?void 0:k[0])!=="*"&&((E=a==null?void 0:a[0])==null?void 0:E[0])!=="$"&&(p=(M=re.analyzeSplitToContent(a==null?void 0:a[0],")"))==null?void 0:M[0],(p==null?void 0:p[0])!=="@"&&(p="@"+p),p=ri(p),u=(O=re.analyzeSplitToContent(a==null?void 0:a[0],")"))==null?void 0:O[1],(u==null?void 0:u[0])==="$"&&(u=u==null?void 0:u.slice(1,u==null?void 0:u.length)),u=u==null?void 0:u.replaceAll(":","/"));let H=re.analyzeSplitToContent(a==null?void 0:a[0],":");if(n=(Q=H==null?void 0:H.filter(Fe=>(Fe==null?void 0:Fe[0])!=="{"&&(Fe==null?void 0:Fe[0])!=="["))==null?void 0:Q.join(""),s=(J=a==null?void 0:a[0])==null?void 0:J.replace(n,""),(n==null?void 0:n[0])==="("&&(n=""),C=(ye=H==null?void 0:H.filter(Fe=>(Fe==null?void 0:Fe[0])!=="["))==null?void 0:ye.join(""),C=(te=a==null?void 0:a[0])==null?void 0:te.replace(C,""),s=s==null?void 0:s.replace(C,""),(n==null?void 0:n[0])==="*"&&(n=n==null?void 0:n.slice(1,n==null?void 0:n.length)),(n==null?void 0:n[(n==null?void 0:n.length)-1])===":"&&(n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1)),((U=re.analyzeSplitToContent(s,"@"))==null?void 0:U.length)>1&&(p=(q=re.analyzeSplitToContent(s,"@"))==null?void 0:q[1],(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)),p="@"+p,p=vn(p),s=(X=re.analyzeSplitToContent(s,"@"))==null?void 0:X[0],s=s==null?void 0:s.slice(0,(s==null?void 0:s.length)-1)),((ee=re.analyzeSplitToContent(n,"@"))==null?void 0:ee.length)>1){p!==""&&(p=p+",");let Fe=(pe=re.analyzeSplitToContent(n,"@"))==null?void 0:pe[1];Fe="@"+Fe,Fe=vn(Fe),p=p+Fe,n=(ze=re.analyzeSplitToContent(n,"@"))==null?void 0:ze[0]}if((n==null?void 0:n[(n==null?void 0:n.length)-1])==="@"&&(n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1)),n=n===""?[]:n==null?void 0:n.split(":"),(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)),r!==""){let Fe=(ue=re.analyzeSplitToContent(r,")"))==null?void 0:ue[0],ie=re.analyzeSplitToContent(r,")");ie=ie==null?void 0:ie.filter((Re,Ie)=>Ie!==(ie==null?void 0:ie.length)-1),ie=ie==null?void 0:ie.join("");let Ye=(N=re.analyzeSplitToContent(r,"@"))==null?void 0:N[1];u=(G=(se=re.analyzeSplitToContent(r,"@"))==null?void 0:se[0])==null?void 0:G.replace(ie,""),(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 na="";if(na=re.analyzeSplitToContent(r,")"),na=na==null?void 0:na.filter((Re,Ie)=>Ie!==0&&Ie!==(na==null?void 0:na.length)-1),((ve=re.analyzeSplitToContent(r,"&"))==null?void 0:ve.length)>1&&(na==null?void 0:na.length)<2&&(Fe="",u="",na=re.analyzeSplitToContent(r,")")),na!=null&&na.some(Re=>(Re==null?void 0:Re[0])===":")){let Re=(ke=na==null?void 0:na.filter(Ie=>(Ie==null?void 0:Ie[0])===":"))==null?void 0:ke.join("");C=Re==null?void 0:Re.slice(1,Re==null?void 0:Re.length),na=na==null?void 0:na.filter(Ie=>(Ie==null?void 0:Ie[0])!==":")}(na==null?void 0:na.length)>0&&((Be=re.chunkArray(na))==null||Be.forEach(Re=>{var $a,wl,el,Pl,bl;let Ie="",Je=[],Ne="";(Re==null?void 0:Re.length)>1&&(Ne="@"+(Re==null?void 0:Re[0]),Ne=vn(Ne));let _e=(Re==null?void 0:Re.length)===1?Re==null?void 0:Re[0]:Re==null?void 0:Re[1];_e=_e==null?void 0:_e.slice(1,_e==null?void 0:_e.length),Ie=(wl=($a=_e==null?void 0:_e.replace("(",yl))==null?void 0:$a.split(yl))==null?void 0:wl[0],_e=(Pl=(el=_e==null?void 0:_e.replace("(",yl))==null?void 0:el.split(yl))==null?void 0:Pl[1],_e=_e==null?void 0:_e.slice(0,(_e==null?void 0:_e.length)-1),Je=(bl=re.analyzeSplitToContent(_e,","))==null?void 0:bl.map(Hl=>((Hl==null?void 0:Hl[(Hl==null?void 0:Hl.length)-1])===","&&(Hl=Hl==null?void 0:Hl.slice(0,(Hl==null?void 0:Hl.length)-1)),Hl)),y.push({functionName:Ie,functionRelatedWords:Je,calculatorFilter:Ne})})),Fe=Ts(Fe),Ye=Ts(Ye);let fa=Fe??"";if(fa!==""&&(fa=fa+","),fa=fa+Ye,(fa==null?void 0:fa[(fa==null?void 0:fa.length)-1])===","&&(fa=fa==null?void 0:fa.slice(0,(fa==null?void 0:fa.length)-1)),fa!==""&&p!==""&&(p=p+","),p=p+fa,(u==null?void 0:u[0])==="$"&&(u=u==null?void 0:u.slice(1,u==null?void 0:u.length)),u=(We=re.analyzeSplitToContent(u,":"))==null?void 0:We.filter((Re,Ie)=>{var Je;return!((Re==null?void 0:Re[0])==="{"&&Ie===((Je=re.analyzeSplitToContent(u,":"))==null?void 0:Je.length)-1)}),u=u==null?void 0:u.join(""),(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)),p!=null&&p.includes("@Sync")||(p=p===""?p+"@Sync=(Yes,Yes)":p+",@Sync=(Yes,Yes)"),u!=null&&u.includes("$")){let Re=(I=(he=u==null?void 0:u.replace("*",yl))==null?void 0:he.split(yl))==null?void 0:I[1],Ie=(oe=(Oe=u==null?void 0:u.replace("*",yl))==null?void 0:Oe.split(yl))==null?void 0:oe[0];Ie=Ie==null?void 0:Ie.split("$"),Ie=((xe=(ge=Ie==null?void 0:Ie[0])==null?void 0:ge.split(":"))==null?void 0:xe[0])+":"+(Ie==null?void 0:Ie[1])+":",u=Ie+"*"+Re}else u=(ne=u==null?void 0:u.replaceAll("{",""))==null?void 0:ne.replaceAll("}","");(u==null?void 0:u[0])===":"&&(C=u==null?void 0:u.slice(1,u==null?void 0:u.length),u="")}p!==""&&p&&(p="("+p+")"),p=u+p,((we=re.analyzeSplitToContent(s,"}"))==null?void 0:we.length)>1&&(s=(Ke=re.analyzeSplitToContent(s,"}"))==null?void 0:Ke.filter(Fe=>(Fe==null?void 0:Fe[0])!=="@"),s=s==null?void 0:s.join(""));let T=Bp(s,l);o=s===""?[]:(T==null?void 0:T.columns)??[],d=re.getColumnChild(o);let j=re.getColumnChild(o);o!=null&&o.some(Fe=>{var ie;return Array.isArray(Fe==null?void 0:Fe.children)&&((ie=Fe==null?void 0:Fe.children)==null?void 0:ie.length)>0})&&(o=[o]),i=C?Ri(C):[],!(i!=null&&i.every(Fe=>Array.isArray(Fe)))&&(i==null?void 0:i.length)>0&&(i=[i]),(i==null?void 0:i.length)>0&&(Array.isArray(i==null?void 0:i[0])&&((ya=i==null?void 0:i[0])!=null&&ya.every(Fe=>Array.isArray(Fe)))?i=i==null?void 0:i.map((Fe,ie)=>(Fe=Fe.map((Ye,na)=>(Ye.unshift("{}"),Ye.unshift((na+1).toString()),Ye)),Fe)):i=i==null?void 0:i.map((Fe,ie)=>(Fe.unshift("{}"),Fe.unshift((ie+1).toString()),Fe))),T!=null&&T.secondColumns&&((Ge=T==null?void 0:T.secondColumns)==null?void 0:Ge.length)>0&&((i==null?void 0:i.length)>0?i=i==null?void 0:i.map((Fe,ie)=>{var Ye,na;return Array.isArray(Fe==null?void 0:Fe[0])?Fe=Fe==null?void 0:Fe.map((fa,Re)=>{var Ie,Je;return fa.unshift((Je=(Ie=T==null?void 0:T.secondColumns)==null?void 0:Ie[Re])==null?void 0:Je.prop),fa}):Fe.unshift((na=(Ye=T==null?void 0:T.secondColumns)==null?void 0:Ye[ie])==null?void 0:na.prop),Fe}):i=(V=T==null?void 0:T.secondColumns)==null?void 0:V.map((Fe,ie)=>(Fe=[Fe==null?void 0:Fe.label],Fe.push(ie),Fe)),o.unshift({label:"",prop:"disabled",sortable:!1})),d=d==null?void 0:d.map(Fe=>{var ie,Ye;return{menus:Fe==null?void 0:Fe.menus,content:((ie=Fe==null?void 0:Fe.menus)==null?void 0:ie.join("/"))+yl+((Ye=Fe==null?void 0:Fe.groups)==null?void 0:Ye.join("/"))}});let D=[];if(((le=(F=p==null?void 0:p.replace("(",yl))==null?void 0:F.split(yl))==null?void 0:le[0])!==""&&(D=(be=(fe=p==null?void 0:p.replace("(",yl))==null?void 0:fe.split(yl))==null?void 0:be[0],D=[D],D=D==null?void 0:D.map(Fe=>{var Ye,na,fa;let ie=Fe==null?void 0:Fe.split("*");return{menus:(Ye=ie==null?void 0:ie[0])==null?void 0:Ye.split(":"),content:((na=ie==null?void 0:ie[0])==null?void 0:na.replaceAll(":","/"))+yl+((fa=ie==null?void 0:ie[1])==null?void 0:fa.replaceAll(":","/"))}}),d=[...d,...D]),d=d==null?void 0:d.filter(Fe=>{var ie;return(Fe==null?void 0:Fe.menus)&&((ie=Fe==null?void 0:Fe.menus)==null?void 0:ie.length)>0}),d=d==null?void 0:d.map(Fe=>Fe==null?void 0:Fe.content),d=[...new Set(d)],d=d==null?void 0:d.map(Fe=>{var ie,Ye;return{menus:(ie=Fe==null?void 0:Fe.split(yl))==null?void 0:ie[0],groups:((Ye=Fe==null?void 0:Fe.split(yl))==null?void 0:Ye[1])??[]}}),b=j==null?void 0:j.filter(Fe=>{var ie;return(Fe==null?void 0:Fe.filter)&&((ie=Fe==null?void 0:Fe.filter)==null?void 0:ie.includes("@Sync"))}),(b==null?void 0:b.length)>0&&(b=b==null?void 0:b.filter(Fe=>{var ie,Ye,na,fa;return(fa=(na=(Ye=(ie=re.analyzeSplitToContent(Fe==null?void 0:Fe.filter,","))==null?void 0:ie.find(Re=>Re==null?void 0:Re.includes("@Sync")))==null?void 0:Ye.split(","))==null?void 0:na[0])==null?void 0:fa.includes("Yes")}),b=Cs(b)),g=j==null?void 0:j.filter(Fe=>{var ie;return(Fe==null?void 0:Fe.filter)&&((ie=Fe==null?void 0:Fe.filter)==null?void 0:ie.includes("@Sync"))}),(g==null?void 0:g.length)>0&&(g=g==null?void 0:g.filter(Fe=>{var ie,Ye,na,fa;return(fa=(na=(Ye=(ie=re.analyzeSplitToContent(Fe==null?void 0:Fe.filter,","))==null?void 0:ie.find(Re=>Re==null?void 0:Re.includes("@Sync")))==null?void 0:Ye.split(","))==null?void 0:na[1])==null?void 0:fa.includes("Yes")}),g=Cs(g)),p!==""&&(p!=null&&p.includes("@Sync"))&&(p==null?void 0:p[0])!=="("){let Fe=(ua=p==null?void 0:p.replace("(",yl))==null?void 0:ua.split(yl),ie=Fe==null?void 0:Fe[1];if(ie=ie==null?void 0:ie.slice(0,(ie==null?void 0:ie.length)-1),ie=re.analyzeSplitToContent(ie,","),(va=(Pe=(ia=ie==null?void 0:ie.find(Ye=>Ye==null?void 0:Ye.includes("@Sync")))==null?void 0:ia.split(","))==null?void 0:Pe[0])!=null&&va.includes("Yes")){let Ye=Fe==null?void 0:Fe[0];Ye=[{menus:(Ae=(Ea=Ye==null?void 0:Ye.split("*"))==null?void 0:Ea[0])==null?void 0:Ae.replaceAll(":","/"),groups:((Ta=(Fa=Ye==null?void 0:Ye.split("*"))==null?void 0:Fa[1])==null?void 0:Ta.split(":"))??[]}],b=[...b,...Ye]}if((sa=(Ha=(da=ie==null?void 0:ie.find(Ye=>Ye==null?void 0:Ye.includes("@Sync")))==null?void 0:da.split(","))==null?void 0:Ha[1])!=null&&sa.includes("Yes")){let Ye=Fe==null?void 0:Fe[0];Ye=[{menus:(ha=(He=Ye==null?void 0:Ye.split("*"))==null?void 0:He[0])==null?void 0:ha.replaceAll(":","/"),groups:(($e=(ea=Ye==null?void 0:Ye.split("*"))==null?void 0:ea[1])==null?void 0:$e.split(":"))??[]}],g=[...g,...Ye]}}return{groupName:n,tableColumns:o,tableFilter:p,tableContents:i,columns:(T==null?void 0:T.secondColumns)??[],relatedQuotes:d,fatherSyncContents:b,sonSyncContents:g,calculatorFilters:y}},Bc=(a,l)=>(a=a==null?void 0:a.map((r,n)=>{var i,o,p,s;if(Array.isArray(r))r=r==null?void 0:r.map(u=>{var y,b,g,d;return u!=null&&u.isMainPath||(((y=u==null?void 0:u.children)==null?void 0:y.length)>0?u.children=Bc(u.children,l):((b=u==null?void 0:u.menus)==null?void 0:b.length)>0&&!((g=r==null?void 0:r[0])!=null&&g.isMainPath)&&(u.menus=(d=u.menus)==null?void 0:d.map((C,v)=>{var H,T;return((H=u.menus)==null?void 0:H.length)-1===v&&C===""&&(l==null?void 0:l.parentContent)+"/"!==((T=u.menus)==null?void 0:T.join("/"))&&(C=l==null?void 0:l.value),u}),u.bindMenus=u.menus)),u});else{if(n===0&&((i=r.menus)==null?void 0:i.length)>0&&(r.mainKey=!0),r!=null&&r.isMainPath)return r;((o=r.menus)==null?void 0:o.length)>0&&!((p=a==null?void 0:a[0])!=null&&p.isMainPath)&&(r.menus=(s=r.menus)==null?void 0:s.map((u,y)=>{var b,g;return((b=r.menus)==null?void 0:b.length)-1===y&&u===""&&(l==null?void 0:l.parentContent)+"/"!==((g=r.menus)==null?void 0:g.join("/"))&&(u=l==null?void 0:l.value),u}),r.bindMenus=r.menus)}return r}),a),Dp=(a,l)=>(a=a==null?void 0:a.map(r=>((r==null?void 0:r.key)==="header"&&(r.contents=Bc(r.contents,l)),r)),a),Dt=(a,l)=>{let r=a;return Array.isArray(r==null?void 0:r[0])?r=r==null?void 0:r.map(n=>(n=Dt(n,l),n)):r=r==null?void 0:r.map(n=>{var i,o;return n!=null&&n.children&&((i=n==null?void 0:n.children)==null?void 0:i.length)>0?n.children=Dt(n==null?void 0:n.children,l):n!=null&&n.words&&((o=n==null?void 0:n.words)==null?void 0:o.length)>0&&(l!=null&&l.find(p=>{var s,u,y,b;return((b=(s=n==null?void 0:n.prop)==null?void 0:s.split("."))==null?void 0:b[((y=(u=n==null?void 0:n.prop)==null?void 0:u.split("."))==null?void 0:y.length)-1])===p}))&&(n.mainKey=!0),n}),r};let Ar="$R";const Np=R.useUnit(R.pinia),{selectTitle:xn}=R.storeToRefs(Np),Ap=R.useMenuState(R.pinia),{localFiles:zp}=R.storeToRefs(Ap),Mp=R.useLoginState(R.pinia),{loginUserInfo:xt}=R.storeToRefs(Mp),Mn=[{key:"@MaxRow",value:"onNumSlice",order:1},{key:"@MaxColumn",value:"onMaxColumn",order:1},{key:"@EditRead",value:"onEditRead",order:1},{key:"@ShowHide",value:"onShowHide",order:1},{key:"@Type",value:"onRandomContents",order:2},{key:"@SubType",value:"onInterfaceTypeContents",order:2},{key:"@If",value:"onConditionContents",order:4},{key:"@QuoteFatherSync",value:"onFatherPaceContents",order:1},{key:"@QuoteSonSync",value:"onPaceContents",order:1},{key:"@MainParam",value:"onMainTagContents",order:3},{key:"@Button",value:"onButtonContents",order:1},{key:"@Related",value:"onRelated",order:1},{key:"@RowNum",value:"onRowNum",order:1},{key:"@FixColumn",value:"onFixRow",order:1},{key:"@ReqItem",value:"onReqItem",order:1},{key:"@Condition",value:"onConditionContent",order:1},{key:"@Tab",value:"onTabs",order:1},{key:"@SinChoice",value:"onSinChoice",order:1},{key:"@TextSize",value:"onTextSize",order:1},{key:"@TextRGBA",value:"onTextRGBA",order:1},{key:"@TextBackRGBA",value:"onTextBackRGBA",order:1},{key:"@Position",value:"onPosition",order:4},{key:"@ColumnNum",value:"onColumnNum",order:4},{key:"@Size",value:"onSize",order:4},{key:"@ShowType",value:"onShowType",order:1},{key:"@StepName",value:"onStepName",order:1},{key:"@Step",value:"onStep",order:1},{key:"@BackGround",value:"onBackGround",order:1}];var mi=(a=>(a[a.ORDINARY=1]="ORDINARY",a[a.BLOCK=2]="BLOCK",a[a.TEXT=3]="TEXT",a))(mi||{});const Ip=async a=>{var r,n,i,o,p,s,u,y,b,g,d,C,v,H,T,j,D;let l=re.analyzeSplitToContent((a==null?void 0:a.filter)??"",")");if((l==null?void 0:l.length)>1){let _=l==null?void 0:l[0];_=_==null?void 0:_.slice(1,(_==null?void 0:_.length)-1),_=(n=(r=_==null?void 0:_.replace("(",Ar))==null?void 0:r.split(Ar))==null?void 0:n[1],_="("+((i=_==null?void 0:_.replaceAll("{",""))==null?void 0:i.replaceAll("}",""));let S=re.calculatorAndToOr(_),x=Object.keys(S==null?void 0:S[0]);if(_=S,((o=x==null?void 0:x[0])==null?void 0:o[0])==="$"){let k=(s=x==null?void 0:x[0])==null?void 0:s.slice(1,((p=x==null?void 0:x[0])==null?void 0:p.length)-1),E=(y=(u=k==null?void 0:k.split("*"))==null?void 0:u[0])==null?void 0:y.replaceAll(".","/"),M=(d=(g=(b=k==null?void 0:k.split("*"))==null?void 0:b[1])==null?void 0:g.split("."))==null?void 0:d[0],O=await qr(E,!1);O=(C=O==null?void 0:O.filter(U=>(U==null?void 0:U.name)===M))==null?void 0:C[0];let Q=(H=(v=O==null?void 0:O.compData)==null?void 0:v.find(U=>(U==null?void 0:U.key)==="tableContents"))==null?void 0:H.contents;_=_==null?void 0:_.map(U=>{var X,ee;let q={};for(let pe in U)if((pe==null?void 0:pe[0])==="$"){let ze=(ee=pe==null?void 0:pe.split("."))==null?void 0:ee[((X=pe==null?void 0:pe.split("."))==null?void 0:X.length)-1];q[ze]=U==null?void 0:U[pe]}else q[pe]=U==null?void 0:U[pe];return q});let J=(j=(T=O==null?void 0:O.compData)==null?void 0:T.find(U=>(U==null?void 0:U.key)==="header"))==null?void 0:j.contents;J=(D=re.getEqualChild(J))==null?void 0:D.filter(U=>(U==null?void 0:U.label)!=="操作");let te=re.tableToForm(Q,J);if(_==null||_.forEach(U=>{var q,X,ee,pe,ze;for(let ue in U)(U==null?void 0:U[ue])==="LoginUser"&&(U[ue]=((q=xt.value)==null?void 0:q.姓名)||((X=xt.value)==null?void 0:X.account)||((ee=xt.value)==null?void 0:ee.账号)),!((pe=te==null?void 0:te[0])!=null&&pe.find(N=>{var se;return(N==null?void 0:N.key)===ue||((se=N==null?void 0:N.key)==null?void 0:se.includes(ue))}))&&!(te!=null&&te.find(N=>{var se;return(N==null?void 0:N.key)===ue||((se=N==null?void 0:N.key)==null?void 0:se.includes(ue))}))||(((ze=U[ue])==null?void 0:ze[0])!=="!"?te=te==null?void 0:te.filter(N=>{var se,G;return((se=N==null?void 0:N.find(ve=>{var ke;return(ve==null?void 0:ve.key)===ue||((ke=ve==null?void 0:ve.key)==null?void 0:ke.includes(ue))}))==null?void 0:se.value)===U[ue]||Array.isArray(U==null?void 0:U[ue])&&((G=U==null?void 0:U[ue])==null?void 0:G.find(ve=>{var ke;return((ke=N==null?void 0:N.find(Be=>{var We;return(Be==null?void 0:Be.key)===ue||((We=Be==null?void 0:Be.key)==null?void 0:We.includes(ue))}))==null?void 0:ke.value)===ve}))}):te=te==null?void 0:te.filter(N=>{var se;return((se=N==null?void 0:N.find(G=>{var ve;return(G==null?void 0:G.key)===ue||((ve=G==null?void 0:G.key)==null?void 0:ve.includes(ue))}))==null?void 0:se.value)!==U[ue]}))}),(te==null?void 0:te.length)===0){let U=a==null?void 0:a.contents;return U.push({key:"hideContents",contents:!0}),U}}}return a==null?void 0:a.contents},Op=a=>{if((a==null?void 0:a.filter)!==void 0&&(a==null?void 0:a.filter)!==null&&(a==null?void 0:a.filter)!==""){let l=a==null?void 0:a.contents;return l.push({key:"textBackRGBA",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},Lp=a=>{var l,r,n,i,o;if((a==null?void 0:a.filter)!==void 0&&(a==null?void 0:a.filter)!==null&&(a==null?void 0:a.filter)!==""){let p=a==null?void 0:a.contents,s=a==null?void 0:a.filter;(s==null?void 0:s[0])==="("&&(s=s==null?void 0:s.slice(1,(s==null?void 0:s.length)-1)),s=(l=re.analyzeSplitToContent(s,","))==null?void 0:l.map(g=>((g==null?void 0:g[(g==null?void 0:g.length)-1])===","&&(g=g==null?void 0:g.slice(0,(g==null?void 0:g.length)-1)),g));let u=(s==null?void 0:s[2])??"Center",y=(s==null?void 0:s[0])??"Picture";s=s==null?void 0:s[1],(s==null?void 0:s[0])==="("&&(s=s==null?void 0:s.slice(1,(s==null?void 0:s.length)-1)),s=(r=re.analyzeSplitToContent(s,","))==null?void 0:r.map(g=>((g==null?void 0:g[(g==null?void 0:g.length)-1])===","&&(g=g==null?void 0:g.slice(0,(g==null?void 0:g.length)-1)),g));let b=(o=(i=(n=zp.value)==null?void 0:n.filter(g=>{var d;return(g==null?void 0:g.path)===((d=a==null?void 0:a.groupName)==null?void 0:d[0])}))==null?void 0:i[0])==null?void 0:o.children;return b=(b==null?void 0:b.filter(g=>s==null?void 0:s.find(d=>d===(g==null?void 0:g.name))))??[],(s==null?void 0:s.length)>0&&(b==null?void 0:b.length)===0&&(s==null||s.forEach(g=>{b.push({url:"file:///"+(g==null?void 0:g.replaceAll("\\","/"))})})),b[0]={...b==null?void 0:b[0],position:u,fileType:y},p.push({key:"backGround",contents:b}),p}return a==null?void 0:a.contents},Rp=a=>{const l=Nc(a==null?void 0:a.filter);return l?ff(a==null?void 0:a.contents,{position:l}):a==null?void 0:a.contents},$p=a=>{let l=parseInt(a==null?void 0:a.filter);l=1/l;let r=a==null?void 0:a.contents;return r.push({key:"rowPosition",contents:l}),r},Vp=a=>{const l=Nc(a==null?void 0:a.filter);if(!l)return a==null?void 0:a.contents;let r=a==null?void 0:a.contents;return r.push({key:"numPosition",contents:l}),r},Fp=a=>{if((a==null?void 0:a.filter)!==void 0&&(a==null?void 0:a.filter)!==null&&(a==null?void 0:a.filter)!==""){let l=a==null?void 0:a.contents;const r=Number(a==null?void 0:a.filter);return l.push({key:"textSize",contents:Number.isNaN(r)?a==null?void 0:a.filter:r}),l}return a==null?void 0:a.contents},Pp=a=>{if((a==null?void 0:a.filter)!==void 0&&(a==null?void 0:a.filter)!==null&&(a==null?void 0:a.filter)!==""){let l=a==null?void 0:a.contents;return l.push({key:"textRGBA",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},Hp=a=>{var r;return(a==null?void 0:a.filter.toUpperCase())==="ALL"||(a==null?void 0:a.filter.toUpperCase())==="NONE"?a==null?void 0:a.contents:(r=a==null?void 0:a.contents)==null?void 0:r.map(n=>{var i;return(n==null?void 0:n.key)==="tableContents"&&(n.contents=(i=n.contents)==null?void 0:i.slice(0,parseInt(a==null?void 0:a.filter))),n})},jp=async a=>{var l,r,n,i,o,p,s,u,y,b,g,d,C,v,H,T,j,D,_,S,x,k,E,M,O,Q,J,ye,te,U;if((a==null?void 0:a.filter)==="Random")return(l=a==null?void 0:a.contents)==null?void 0:l.map(X=>((X==null?void 0:X.key)==="tableContents"&&(X.contents=re.shuffle(X.contents)),X));if((a==null?void 0:a.filter)==="Auto"){let q=(n=(r=a==null?void 0:a.contents)==null?void 0:r.find(ve=>(ve==null?void 0:ve.key)==="header"))==null?void 0:n.contents;Array.isArray(q==null?void 0:q[0])&&(q=q==null?void 0:q[0]),q=re.getColumnChild(q);let X=q==null?void 0:q.filter(ve=>(ve==null?void 0:ve.filter)&&(ve==null?void 0:ve.filter)!==""),ee=new Map,pe=[];X==null||X.forEach(ve=>{var ke,Be;ee.get((ke=ve==null?void 0:ve.menus)==null?void 0:ke.join("/"))||(ee.set((Be=ve==null?void 0:ve.menus)==null?void 0:Be.join("/"),ve),pe.push(ve))});let ze=(o=(i=xn==null?void 0:xn.value)==null?void 0:i.find(ve=>(ve==null?void 0:ve.condition)==="child"))==null?void 0:o.value,ue=pe==null?void 0:pe.map(ve=>{var ke,Be,We;return ve=(ke=ve==null?void 0:ve.menus)==null?void 0:ke.join("/"),(ve==null?void 0:ve[(ve==null?void 0:ve.length)-1])==="/"&&((We=(Be=xn==null?void 0:xn.value)==null?void 0:Be.find(he=>(he==null?void 0:he.condition)==="child"))==null?void 0:We.parentContent)+"/"!==ve?ve=ve+ze:(ve==null?void 0:ve[(ve==null?void 0:ve.length)-1])==="/"&&(ve=ve==null?void 0:ve.slice(0,(ve==null?void 0:ve.length)-1)),ve}),N=pe==null?void 0:pe.map(ve=>ve==null?void 0:ve.groups),se=ue==null?void 0:ue.map(async ve=>{let ke=await qr(ve,!1);return{path:ve,contents:ke}});se=await Promise.all(se);let G=se==null?void 0:se.map((ve,ke)=>{var We,he,I,Oe,oe,ge,xe;let Be=(We=ve==null?void 0:ve.contents)==null?void 0:We.filter(ne=>{var we,Ke;return(ne==null?void 0:ne.name)===((Ke=N==null?void 0:N[ke])==null?void 0:Ke[((we=N==null?void 0:N[ke])==null?void 0:we.length)-1])});return Be=(Oe=(I=(he=Be==null?void 0:Be[0])==null?void 0:he.compData)==null?void 0:I.find(ne=>(ne==null?void 0:ne.key)==="tableContents"))==null?void 0:Oe.contents,(ve==null?void 0:ve.path)===((ge=(oe=xn==null?void 0:xn.value)==null?void 0:oe.find(ne=>(ne==null?void 0:ne.condition)==="child"))==null?void 0:ge.parentContent)&&(Be=((xe=Be==null?void 0:Be.map(ne=>{for(let we in ne)if(ne[we]===ze)return ne}))==null?void 0:xe.filter(ne=>ne))??[]),Be??[]});if(G=G==null?void 0:G.map(ve=>(ve=ve==null?void 0:ve.map(ke=>{var We;let Be={};for(let he in ke)if(X!=null&&X.find(I=>{var Oe,oe;return((oe=(Oe=I==null?void 0:I.words)==null?void 0:Oe[0])==null?void 0:oe.replaceAll("'",""))===he})){let I=(We=X==null?void 0:X.find(Oe=>{var oe,ge;return((ge=(oe=Oe==null?void 0:Oe.words)==null?void 0:oe[0])==null?void 0:ge.replaceAll("'",""))===he}))==null?void 0:We.prop;Be[I]=ke==null?void 0:ke[he]}return Be}),ve)),G=re.cartesianProduct(G),Array.isArray(G==null?void 0:G[0])&&(G=G==null?void 0:G[0]),(G==null?void 0:G.length)>0&&((g=(s=(p=X==null?void 0:X[0])==null?void 0:p.menus)==null?void 0:s.join("/"))==null?void 0:g[((b=(y=(u=X==null?void 0:X[0])==null?void 0:u.menus)==null?void 0:y.join("/"))==null?void 0:b.length)-1])==="/")return(d=a==null?void 0:a.contents)==null?void 0:d.map(ke=>{var Be;return(ke==null?void 0:ke.key)==="tableContents"&&(G==null?void 0:G.length)>0&&(ke.contents=((Be=ke.contents)==null?void 0:Be.length)>0?ke.contents:G),ke})}if((a==null?void 0:a.filter)==="Manual"){let q=[],X=[],ee=(v=(C=a==null?void 0:a.contents)==null?void 0:C.find(N=>(N==null?void 0:N.key)==="filter"))==null?void 0:v.contents;(ee==null?void 0:ee[(ee==null?void 0:ee.length)-1])===")"?ee=(T=(H=ee==null?void 0:ee.replace("(",Ar))==null?void 0:H.split(Ar))==null?void 0:T[0]:ee="",ee!==""&&(q=((D=(j=ee==null?void 0:ee.split("*"))==null?void 0:j[0])==null?void 0:D.split(":"))??[],X=((E=(k=(x=(S=(_=ee==null?void 0:ee.split("*"))==null?void 0:_[1])==null?void 0:S.replace("{",Ar))==null?void 0:x.split(Ar))==null?void 0:k[0])==null?void 0:E.split(":"))??[]);let pe=(O=(M=a==null?void 0:a.contents)==null?void 0:M.find(N=>(N==null?void 0:N.key)==="filter"))==null?void 0:O.contents;pe=(J=(Q=pe==null?void 0:pe.replace("(",Ar))==null?void 0:Q.split(Ar))==null?void 0:J[1],pe=pe==null?void 0:pe.slice(0,(pe==null?void 0:pe.length)-1);let ze=(ye=a==null?void 0:a.contents)==null?void 0:ye.map(N=>{var se,G,ve,ke,Be,We,he,I,Oe;return(N==null?void 0:N.key)==="header"&&((se=N==null?void 0:N.contents)!=null&&se.every(oe=>(oe==null?void 0:oe.mainKey)!==!0)&&Array.isArray(N==null?void 0:N.contents)&&!Array.isArray((G=N==null?void 0:N.contents)==null?void 0:G[0])?N.contents=(ve=N==null?void 0:N.contents)==null?void 0:ve.map((oe,ge)=>{var xe,ne,we;return oe!=null&&oe.isMainPath||(ge===0?(oe.mainKey=!0,oe.formType="Select",oe.bindMenus=q,oe.groups=((xe=oe.groups)==null?void 0:xe.length)===0?X:oe.groups,oe.words=((ne=oe.words)==null?void 0:ne.length)===0?[oe==null?void 0:oe.prop]:oe.words,oe.filter=pe,(!(oe!=null&&oe.menus)||((we=oe==null?void 0:oe.menus)==null?void 0:we.length)===0)&&(oe.menus=q)):(oe.mainKey=!1,oe.bindMenus=q)),oe}):Array.isArray((ke=N==null?void 0:N.contents)==null?void 0:ke[0])&&((he=(We=(Be=N==null?void 0:N.contents)==null?void 0:Be[0])==null?void 0:We.filter(()=>(q==null?void 0:q.length)>0))==null?void 0:he.length)>0&&(N.contents[0]=(Oe=(I=N==null?void 0:N.contents)==null?void 0:I[0])==null?void 0:Oe.map((oe,ge)=>{var xe,ne,we;return oe!=null&&oe.isMainPath||(ge===0?(oe.mainKey=!0,oe.formType="Select",oe.bindMenus=q,oe.groups=((xe=oe.groups)==null?void 0:xe.length)===0?X:oe.groups,oe.words=((ne=oe.words)==null?void 0:ne.length)===0?[oe==null?void 0:oe.prop]:oe.words,oe.filter=pe,(!(oe!=null&&oe.menus)||Array.isArray(oe==null?void 0:oe.menus)&&((we=oe==null?void 0:oe.menus)==null?void 0:we.length)===0)&&(q==null?void 0:q.length)>0&&(oe.menus=q)):(oe.mainKey=!1,oe.bindMenus=q)),oe}))),N}),ue=(te=ze==null?void 0:ze.find(N=>(N==null?void 0:N.key)==="header"))==null?void 0:te.contents;if(Array.isArray(ue==null?void 0:ue[0])&&(ue=ue==null?void 0:ue[0]),ue=re.getColumnChild(ue),ue!=null&&ue.some(N=>{var se,G;return((G=N==null?void 0:N.menus)==null?void 0:G[((se=N==null?void 0:N.menus)==null?void 0:se.length)-1])===""})){let N=(U=xn==null?void 0:xn.value)==null?void 0:U.find(se=>(se==null?void 0:se.condition)==="child");ze=Dp(ze,N)}return ze}if((a==null?void 0:a.filter)==="Chart"){let q=a==null?void 0:a.contents;return q.push({key:"newType",contents:"Chart"}),q}if((a==null?void 0:a.filter)==="Carousel"){let q=a==null?void 0:a.contents;return q.push({key:"newType",contents:"Carousel"}),q}return a==null?void 0:a.contents},Up=a=>{if((a==null?void 0:a.filter)==="Ordin"){let l=a==null?void 0:a.contents;return l.push({key:"enableWrap",contents:1}),l}if((a==null?void 0:a.filter)==="Block"){let l=a==null?void 0:a.contents;return l.push({key:"enableWrap",contents:2}),l}if((a==null?void 0:a.filter)==="Text"){let l=a==null?void 0:a.contents;return l.push({key:"enableWrap",contents:3}),l}if((a==null?void 0:a.filter)==="Bar"||(a==null?void 0:a.filter)==="Pie"||(a==null?void 0:a.filter)==="Line"||(a==null?void 0:a.filter)==="Histogram"||(a==null?void 0:a.filter)==="Scatter"){let l=a==null?void 0:a.contents;return l.push({key:"ChartType",contents:{type:a==null?void 0:a.filter,title:""}}),l}if((a==null?void 0:a.filter)==="Frameless"){let l=a==null?void 0:a.contents;return l.push({key:"TableType",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},qp=a=>{var n,i,o,p,s,u,y,b,g,d,C,v;let l=a==null?void 0:a.filter;if(l!=null&&l.includes("*")&&(l="({"+((i=(n=l==null?void 0:l.replace(":",Ar))==null?void 0:n.split(Ar))==null?void 0:i[1])),l=(o=l==null?void 0:l.replaceAll("{",""))==null?void 0:o.replaceAll("}",""),(s=(p=l==null?void 0:l.split("="))==null?void 0:p[1])!=null&&s.includes("$")){(l==null?void 0:l[0])==="("&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1));let H=(u=l==null?void 0:l.split("="))==null?void 0:u[0],T=(y=l==null?void 0:l.split("="))==null?void 0:y[1];(b=T==null?void 0:T.slice(1,T==null?void 0:T.length))!=null&&b.includes("$")&&(T=(C=(d=(g=xn==null?void 0:xn.value)==null?void 0:g.filter(j=>(j==null?void 0:j.condition)==="child"))==null?void 0:d[0])==null?void 0:C.value),l=H+"="+T}if((l==null?void 0:l[0])!=="("&&(l="("+l+")"),l.slice(1,(l==null?void 0:l.length)-1)==="undefined")return a==null?void 0:a.contents;let r=re.calculatorAndToOr(l);if((r==null?void 0:r.length)>0){let H=[];return r==null||r.forEach(j=>{let D={};for(let _ in j){let S=_;S!=null&&S.includes("[")||(D[S]=j[_])}H.push(D)}),(v=a==null?void 0:a.contents)==null?void 0:v.map(j=>{var _,S,x;let D=(S=(_=a==null?void 0:a.contents)==null?void 0:_.find(k=>(k==null?void 0:k.key)==="header"))==null?void 0:S.contents;if(D=(x=re.getEqualChild(D))==null?void 0:x.filter(k=>(k==null?void 0:k.label)!=="操作"),(j==null?void 0:j.key)==="tableContents"){let E=re.tableToForm(j==null?void 0:j.contents,D);H==null||H.forEach(M=>{var O,Q;for(let J in M)!((O=E==null?void 0:E[0])!=null&&O.find(ye=>{var te;return(ye==null?void 0:ye.key)===J||((te=ye==null?void 0:ye.key)==null?void 0:te.includes(J))}))&&!(E!=null&&E.find(ye=>{var te;return(ye==null?void 0:ye.key)===J||((te=ye==null?void 0:ye.key)==null?void 0:te.includes(J))}))||(((Q=M[J])==null?void 0:Q[0])!=="!"?E=E==null?void 0:E.filter(ye=>{var te,U;return((te=ye==null?void 0:ye.find(q=>{var X;return(q==null?void 0:q.key)===J||((X=q==null?void 0:q.key)==null?void 0:X.includes(J))}))==null?void 0:te.value)===M[J]||Array.isArray(M==null?void 0:M[J])&&((U=M==null?void 0:M[J])==null?void 0:U.find(q=>{var X;return((X=ye==null?void 0:ye.find(ee=>{var pe;return(ee==null?void 0:ee.key)===J||((pe=ee==null?void 0:ee.key)==null?void 0:pe.includes(J))}))==null?void 0:X.value)===q}))}):E=E==null?void 0:E.filter(ye=>{var te;return((te=ye==null?void 0:ye.find(U=>{var q;return(U==null?void 0:U.key)===J||((q=U==null?void 0:U.key)==null?void 0:q.includes(J))}))==null?void 0:te.value)!==(M[J]==="!"?"":M==null?void 0:M[J])}))}),(E==null?void 0:E.length)===0?j.contents=[]:j.contents=E==null?void 0:E.map(M=>{let O={};return M==null||M.forEach(Q=>{O[Q==null?void 0:Q.key]=Q==null?void 0:Q.value}),O})}return j})}return a==null?void 0:a.contents},Wp=a=>a==null?void 0:a.contents,Gp=a=>a==null?void 0:a.contents,Kp=a=>{var l,r,n,i;if((a==null?void 0:a.filter)!==""&&(a!=null&&a.filter)){let o=(n=(r=a==null?void 0:a.filter)==null?void 0:r.slice(1,((l=a==null?void 0:a.filter)==null?void 0:l.length)-1))==null?void 0:n.split(",");return(i=a==null?void 0:a.contents)==null?void 0:i.map(s=>((s==null?void 0:s.key)==="header"&&(s.contents=Dt(s.contents,o)),s))}return a==null?void 0:a.contents},Yp=a=>{var r,n,i,o,p;let l=(a==null?void 0:a.filter)??"";if(l!==""){let s=(n=(r=l==null?void 0:l.replace("(",Ar))==null?void 0:r.split(Ar))==null?void 0:n[1];s=s==null?void 0:s.slice(0,(s==null?void 0:s.length)-1),(s==null?void 0:s[(s==null?void 0:s.length)-1])===")"&&(s=s==null?void 0:s.slice(1,(s==null?void 0:s.length)-1)),s=(i=re.analyzeSplitToContent(s,","))==null?void 0:i.map(g=>((g==null?void 0:g[(g==null?void 0:g.length)-1])===","&&(g=g==null?void 0:g.slice(0,(g==null?void 0:g.length)-1)),g));let u=s==null?void 0:s[0];(u==null?void 0:u[0])==="("&&(u=u==null?void 0:u.slice(1,(u==null?void 0:u.length)-1));let y=(s==null?void 0:s[1])??"Up",b=(o=a==null?void 0:a.contents)==null?void 0:o.map(g=>{var d,C;if(y==="Up"){if((g==null?void 0:g.key)==="extraButton"){let v=(d=u==null?void 0:u.split(","))==null?void 0:d.map(H=>({label:H,prop:H}));g.contents=[...v??[],...g.contents]}}else if(y==="Line"&&(g==null?void 0:g.key)==="rowButton"){let v=(C=u==null?void 0:u.split(","))==null?void 0:C.map(H=>({label:H,prop:H}));g.contents=[...v??[],...g.contents]}return g});if(y==="Bottom"||y==="Down"){let g=(p=u==null?void 0:u.split(","))==null?void 0:p.map(d=>({label:d,prop:d}));b.push({key:"bottomButton",contents:g})}return b}return a==null?void 0:a.contents},Jp=a=>a==null?void 0:a.contents,Xp=a=>{var r;let l=(a==null?void 0:a.filter)??"";return(l==null?void 0:l[0])==="{"&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1)),l!==""?(r=a==null?void 0:a.contents)==null?void 0:r.map(i=>{var o;return(i==null?void 0:i.key)==="rowButton"&&(i.contents=(o=l==null?void 0:l.split(","))==null?void 0:o.map(p=>({label:p,prop:p}))),i}):a==null?void 0:a.contents},Zp=a=>{var r;let l=(a==null?void 0:a.filter)??"";if((l==null?void 0:l[0])==="{"&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1)),l!==""){let n=a==null?void 0:a.contents,i=(r=l==null?void 0:l.split(","))==null?void 0:r.map(o=>({label:o,prop:o}));return n.push({key:"bottomButton",contents:i}),n}return a==null?void 0:a.contents},Qp=a=>{if((a==null?void 0:a.filter)==="Read"){let l=a==null?void 0:a.contents;return l=l==null?void 0:l.map(r=>{var n;return(r==null?void 0:r.key)==="formContent"&&(r.contents=(n=r.contents)==null?void 0:n.map(i=>(i.isNoClick=!0,i))),r}),l!=null&&l.find(r=>(r==null?void 0:r.key)==="tableContents")&&(l==null||l.push({key:"isEdit",contents:!1}),l=l==null?void 0:l.filter(r=>(r==null?void 0:r.key)!=="extraButton"&&(r==null?void 0:r.key)!=="rowButton")),l}return a==null?void 0:a.contents},ef=a=>{var l;if(a!=null&&a.filter){const r=parseInt(a==null?void 0:a.filter);return!r||Number.isNaN(r)?a==null?void 0:a.contents:(l=a==null?void 0:a.contents)==null?void 0:l.map(i=>{var o;return(i==null?void 0:i.key)==="formContent"&&(i.contents=(o=i.contents)==null?void 0:o.map(p=>(p.width=r,p))),i})}return a==null?void 0:a.contents},af=a=>{var l,r,n,i;if(((l=a==null?void 0:a.filter)==null?void 0:l[0])!=="["){const o=parseInt(a==null?void 0:a.filter);return!o||Number.isNaN(o)?a==null?void 0:a.contents:(r=a==null?void 0:a.contents)==null?void 0:r.map(s=>{var u;return(s==null?void 0:s.key)==="formContent"&&(s.contents=(u=s.contents)==null?void 0:u.map(y=>(y.width=o,y))),s})}if(((n=a==null?void 0:a.filter)==null?void 0:n[0])==="["){let o=Ri(a==null?void 0:a.filter),p=Array.isArray(o)?o.map(u=>parseInt(u)).filter(u=>!!u&&!Number.isNaN(u)):[];return p.length?(i=a==null?void 0:a.contents)==null?void 0:i.map(u=>{if((u==null?void 0:u.key)==="formContent"){const y=u.contents??[];u.contents=y.map((b,g)=>{const d=g+1;let C=0,v=0;for(let T=0;T<p.length;T++){if(v+=p[T],d<=v){C=T;break}T===p.length-1&&(C=p.length-1)}const H=p[C]||p[p.length-1]||1;return b.width=H,b})}return u}):a==null?void 0:a.contents}return a==null?void 0:a.contents},lf=a=>{var l;if((a==null?void 0:a.filter)!==""){let r=a==null?void 0:a.filter;return(r==null?void 0:r[0])==="("&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),r=r==null?void 0:r.split(","),(l=a==null?void 0:a.contents)==null?void 0:l.map(i=>{var o,p,s;return(i==null?void 0:i.key)==="header"&&(Array.isArray((o=i==null?void 0:i.contents)==null?void 0:o[0])?i.contents[0]=(s=i.contents[0])==null?void 0:s.map(u=>(r!=null&&r.find(y=>y===(u==null?void 0:u.prop))&&(u.fixed="left"),u)):i.contents=(p=i.contents)==null?void 0:p.map(u=>(r!=null&&r.find(y=>y===(u==null?void 0:u.prop))&&(u.fixed="left"),u))),i})}return a==null?void 0:a.contents},rf=a=>{var l;if((a==null?void 0:a.filter)!==""){let r=a==null?void 0:a.filter;(r==null?void 0:r[0])==="("&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),r=r==null?void 0:r.split(",");const n=o=>(r!=null&&r.find(p=>p===(o==null?void 0:o.prop))&&(o.required=!0),o!=null&&o.children&&Array.isArray(o.children)&&(o.children=o.children.map(p=>n(p))),o);return(l=a==null?void 0:a.contents)==null?void 0:l.map(o=>{var p,s,u;return(o==null?void 0:o.key)==="header"&&(Array.isArray((p=o==null?void 0:o.contents)==null?void 0:p[0])?o.contents[0]=(u=o.contents[0])==null?void 0:u.map(y=>n(y)):o.contents=(s=o.contents)==null?void 0:s.map(y=>n(y))),o})}return a==null?void 0:a.contents},nf=async a=>{var n,i,o,p,s,u,y,b,g,d,C,v,H,T,j,D,_;const l=R.useUnit(R.pinia),{chooseTitle:r}=R.storeToRefs(l);if((a==null?void 0:a.filter)==="true"){let S=await qr(((i=(n=r==null?void 0:r.value)==null?void 0:n[0])==null?void 0:i.parentContent)??((p=(o=r==null?void 0:r.value)==null?void 0:o[0])==null?void 0:p.relatedContent),!1),x=(u=(s=r==null?void 0:r.value)==null?void 0:s[0])==null?void 0:u.value;(b=(y=S==null?void 0:S[0])==null?void 0:y.compData)!=null&&b.find(O=>(O==null?void 0:O.key)==="header")?S=(g=S==null?void 0:S[0])==null?void 0:g.compData:S=(C=(d=S==null?void 0:S.filter(O=>{var Q;return(Q=O==null?void 0:O.compData)==null?void 0:Q.find(J=>(J==null?void 0:J.key)==="header")}))==null?void 0:d[0])==null?void 0:C.compData;let k=(v=S==null?void 0:S.find(O=>(O==null?void 0:O.key)==="header"))==null?void 0:v.contents;Array.isArray(k==null?void 0:k[0])&&(k=k==null?void 0:k[0]),k=((H=k==null?void 0:k.find(O=>O==null?void 0:O.isMainKey))==null?void 0:H.prop)??((T=k==null?void 0:k[0])==null?void 0:T.prop);let E=(D=(j=S==null?void 0:S.find(O=>(O==null?void 0:O.key)==="tableContents"))==null?void 0:j.contents)==null?void 0:D.find(O=>(O==null?void 0:O[k])===x);return(_=a==null?void 0:a.contents)==null?void 0:_.map(O=>{var Q;return(O==null?void 0:O.key)==="formContent"&&(O.contents=(Q=O.contents)==null?void 0:Q.map(J=>(J.value=E==null?void 0:E[J==null?void 0:J.prop],J))),O})}return a==null?void 0:a.contents},of=a=>{var l,r,n,i,o;if((l=a==null?void 0:a.extra)!=null&&l.row){let p=a==null?void 0:a.filter;if(p!=null&&p.includes("*")&&(p="({"+((n=(r=p==null?void 0:p.replace("{",Ar))==null?void 0:r.split(Ar))==null?void 0:n[1])),p=(i=p==null?void 0:p.replaceAll("{",""))==null?void 0:i.replaceAll("}",""),(p==null?void 0:p[0])!=="("&&(p="("+p+")"),p.slice(1,(p==null?void 0:p.length)-1)==="undefined")return a==null?void 0:a.contents;let s=re.calculatorAndToOr(p),u=s==null?void 0:s[0],y=(o=a==null?void 0:a.extra)==null?void 0:o.row,b=[];for(let g in u)(u==null?void 0:u[g])===(y==null?void 0:y[g])?b.push(!0):b.push(!1);return b!=null&&b.every(g=>g===!0)?a==null?void 0:a.contents:[]}else return a==null?void 0:a.contents},tf=a=>{if(a!=null&&a.filter){let l=a==null?void 0:a.contents;return l.push({key:"tab",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},sf=a=>{if(a!=null&&a.filter){let l=a==null?void 0:a.contents;return l.push({key:"choice",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},cf=a=>{if(a!=null&&a.filter){let l=a==null?void 0:a.contents;return l.push({key:"fixType",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},uf=a=>{var l;if(a!=null&&a.filter){let r=a==null?void 0:a.contents,n=a==null?void 0:a.filter;return(n==null?void 0:n[0])==="("&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n=(l=re.analyzeSplitToContent(n,","))==null?void 0:l.map(i=>((i==null?void 0:i[(i==null?void 0:i.length)-1])===","&&(i=i==null?void 0:i.slice(0,(i==null?void 0:i.length)-1)),i)),r.push({key:"stepName",contents:n}),r}return a==null?void 0:a.contents},df=a=>{if(a!=null&&a.filter){let l=a==null?void 0:a.contents;return l.push({key:"step",contents:a==null?void 0:a.filter}),l}return a==null?void 0:a.contents},Dc={onNumSlice:Hp,onRandomContents:jp,onConditionContents:qp,onFatherPaceContents:Wp,onPaceContents:Gp,onMainTagContents:Kp,onButtonContents:Yp,onPamButtonContents:Jp,onRowButtonContents:Xp,onRelated:nf,onRowNum:af,onFixRow:lf,onReqItem:rf,onBottomButtonContents:Zp,onConditionContent:of,onTabs:tf,onSinChoice:sf,onTextSize:Fp,onTextRGBA:Pp,onTextBackRGBA:Op,onPosition:Rp,onColumnNum:$p,onSize:Vp,onShowType:cf,onStepName:uf,onStep:df,onInterfaceTypeContents:Up,onBackGround:Lp,onMaxColumn:ef,onEditRead:Qp,onShowHide:Ip},pf=async(a,l,r="")=>{var p,s,u,y,b,g,d,C,v,H,T,j;let n="";if(((p=a==null?void 0:a.find(D=>(D==null?void 0:D.key)==="filter"))==null?void 0:p.contents)!==""&&(n=(s=a==null?void 0:a.find(D=>(D==null?void 0:D.key)==="filter"))==null?void 0:s.contents),n===""||!n)return a;(n==null?void 0:n[0])==="("?n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1):(n=(y=(u=n==null?void 0:n.replace("(",Ar))==null?void 0:u.split(Ar))==null?void 0:y[1],n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1));let i=(b=re.analyzeSplitToContent(n,","))==null?void 0:b.map(D=>((D==null?void 0:D[(D==null?void 0:D.length)-1])===","&&(D=D==null?void 0:D.slice(0,(D==null?void 0:D.length)-1)),D!=null&&D.includes("(")||(D=D==null?void 0:D.replaceAll(":","=")),D)),o=a;for(let D in i){let _,S="";_=(C=(d=(g=i==null?void 0:i[D])==null?void 0:g.replace("=",Ar))==null?void 0:d.split(Ar))==null?void 0:C[0],S=(T=(H=(v=i==null?void 0:i[D])==null?void 0:v.replace("=",Ar))==null?void 0:H.split(Ar))==null?void 0:T[1];let x=(j=Mn==null?void 0:Mn.find(k=>(k==null?void 0:k.key)===_))==null?void 0:j.value;if(x){const k=Dc[x];o=await k({contents:o,filter:S,extra:l,groupName:r})}}return o},Po=async(a,l,r="")=>{var s,u,y,b,g,d,C,v,H,T,j,D,_,S,x,k,E,M,O,Q;let n="";if(((s=a==null?void 0:a.find(J=>(J==null?void 0:J.key)==="filter"))==null?void 0:s.contents)!==""&&(n=(u=a==null?void 0:a.find(J=>(J==null?void 0:J.key)==="filter"))==null?void 0:u.contents),n===""||!n)return a;(n==null?void 0:n[0])===","&&(n=n==null?void 0:n.slice(1,n==null?void 0:n.length)),(n==null?void 0:n[0])==="("?n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1):(n==null?void 0:n[0])==="@"||(n=(b=(y=n==null?void 0:n.replace("(",Ar))==null?void 0:y.split(Ar))==null?void 0:b[1],n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1));let i=(g=re.analyzeSplitToContent(n,","))==null?void 0:g.map(J=>((J==null?void 0:J[(J==null?void 0:J.length)-1])===","&&(J=J==null?void 0:J.slice(0,(J==null?void 0:J.length)-1)),J!=null&&J.includes("(")||(J=J==null?void 0:J.replaceAll(":","=")),J)),o=a,p=new Map;i==null||i.forEach(J=>{var te,U,q;let ye=(te=J==null?void 0:J.split("="))==null?void 0:te[0];if(ye==="@MainParam"&&p.get(ye)){let X=p.get(ye);X=X==null?void 0:X.slice(0,(X==null?void 0:X.length)-1);let ee=(q=(U=J==null?void 0:J.replace("{",Ar))==null?void 0:U.split(Ar))==null?void 0:q[1];ee=X+","+ee,p.set(ye,ee)}else ye==="@Button"&&p.get(ye)?p.set(J,J):p.set(ye,J)}),i=Array.from(p.values()),i=i==null?void 0:i.sort((J,ye)=>{var te,U;return((te=Mn==null?void 0:Mn.find(q=>ye==null?void 0:ye.includes(q==null?void 0:q.key)))==null?void 0:te.order)-((U=Mn==null?void 0:Mn.find(q=>J==null?void 0:J.includes(q==null?void 0:q.key)))==null?void 0:U.order)});for(let J in i){let ye,te="";(d=i==null?void 0:i[J])!=null&&d.includes("(")&&((C=i==null?void 0:i[J])!=null&&C.includes("@If"))?(ye=(T=(H=(v=i==null?void 0:i[J])==null?void 0:v.replace("(",Ar))==null?void 0:H.split(Ar))==null?void 0:T[0],te="("+((_=(D=(j=i==null?void 0:i[J])==null?void 0:j.replace("(",Ar))==null?void 0:D.split(Ar))==null?void 0:_[1])):(ye=(k=(x=(S=i==null?void 0:i[J])==null?void 0:S.replace("=",Ar))==null?void 0:x.split(Ar))==null?void 0:k[0],te=(O=(M=(E=i==null?void 0:i[J])==null?void 0:E.replace("=",Ar))==null?void 0:M.split(Ar))==null?void 0:O[1]);let U=(Q=Mn==null?void 0:Mn.find(q=>(q==null?void 0:q.key)===ye))==null?void 0:Q.value;if(U){const q=Dc[U];o=await q({contents:o,filter:te,extra:l,groupName:r})}}return o},Nc=a=>{if(a==null)return null;const l=String(a).trim();if(!l.startsWith("(")||!l.endsWith(")"))return null;const r=l.slice(1,-1).split(",").map(n=>Number(n.trim()));return r.length<2||r.some(n=>Number.isNaN(n))?null:[r[0],r[1]]},ff=(a,l)=>{var H,T,j,D,_;const r=Array.isArray(a)?a:[],n=r.find(S=>(S==null?void 0:S.key)==="formContent"),i=Array.isArray(n==null?void 0:n.contents)?n.contents:[],o=((H=r.find(S=>(S==null?void 0:S.key)==="_gridLayoutMeta"))==null?void 0:H.contents)??{},p=(i==null?void 0:i[0])??{};let s=((T=l==null?void 0:l.position)==null?void 0:T[0])??(o==null?void 0:o._positionStartRow)??(p==null?void 0:p._positionStartRow),u=((j=l==null?void 0:l.position)==null?void 0:j[1])??(o==null?void 0:o._positionRowSpan)??(p==null?void 0:p._positionRowSpan);(!s||Number.isNaN(s)||s<1)&&(s=1),(!u||Number.isNaN(u)||u<1)&&(u=1);let y=((D=l==null?void 0:l.size)==null?void 0:D[0])??(o==null?void 0:o._sizeStart)??(p==null?void 0:p._sizeStart),b=((_=l==null?void 0:l.size)==null?void 0:_[1])??(o==null?void 0:o._sizeEnd)??(p==null?void 0:p._sizeEnd);(y===void 0||Number.isNaN(y))&&(y=0),(b===void 0||Number.isNaN(b))&&(b=1),y=Math.max(0,Math.min(1,y)),b=Math.max(0,Math.min(1,b)),b<=y&&(y=0,b=1);const g=b-y,d=Math.max(1,Math.round(1/g));let C=r.map(S=>{if((S==null?void 0:S.key)!=="formContent")return S;const x=Array.isArray(S==null?void 0:S.contents)?S.contents:[];return{...S,contents:x.map(k=>({...k,width:d,_positionStartRow:s,_positionRowSpan:u,_sizeStart:y,_sizeEnd:b}))}});const v={_positionStartRow:s,_positionRowSpan:u,_sizeStart:y,_sizeEnd:b};return C.some(S=>(S==null?void 0:S.key)==="_gridLayoutMeta")?C=C.map(S=>(S==null?void 0:S.key)==="_gridLayoutMeta"?{...S,contents:v}:S):C.push({key:"_gridLayoutMeta",contents:v}),C};let Ai="$R";const hf=R.useUnit(R.pinia),{selectTitle:vf}=R.storeToRefs(hf);let mf=[{label:"新增",prop:"新增"},{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],yf=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"},{label:"复制新增",prop:"复制新增"},{label:"删除",prop:"删除"}],gf=[{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],bf=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"}];const Bs=async(a,l,r=!0)=>{let n=[],i=a==null?void 0:a.map(async o=>{var g,d,C,v,H,T,j,D,_,S,x,k,E,M,O,Q,J,ye,te,U,q,X,ee,pe,ze,ue,N,se,G,ve,ke,Be,We,he,I,Oe,oe,ge,xe,ne,we,Ke,ya,Ge,V,F,le,fe,be,ua,ia,Pe,va,Ea,Ae,Fa,Ta,da,Ha,sa,He,ha,ea,$e,Fe,ie,Ye,na,fa,Re,Ie,Je,Ne,_e,$a,wl,el,Pl,bl,Hl,ll,jl,Ga,Jl,Xl,ar,Sl,pr,ga,ol,vl,Dl,Ua,Sa,rl,Me,oa,Ya,me,_a,Pa,pl,Il,Qa,kl,Ma;let p=(v=(C=(d=(g=o==null?void 0:o.contents)==null?void 0:g.find(aa=>{var ma;return(ma=aa==null?void 0:aa.key)==null?void 0:ma.includes("struct")}))==null?void 0:d.value)==null?void 0:C[0])==null?void 0:v.类型,s=Object.values(o==null?void 0:o.name);s=s==null?void 0:s.reverse();let u=(H=o==null?void 0:o.contents)==null?void 0:H.map(aa=>aa==null?void 0:aa.key),y={comp:p,isShow:o==null?void 0:o.is_show,name:s==null?void 0:s[0],id:o==null?void 0:o.object_id,order_no:o==null?void 0:o.order_no,relatedTables:u,menuFilter:(T=o==null?void 0:o.filter)==null?void 0:T.menuFilter,status:o==null?void 0:o.status,fatherSyncContents:(j=o==null?void 0:o.filter)==null?void 0:j.fatherSyncs,relatedQuotes:(D=o==null?void 0:o.filter)==null?void 0:D.quotes,sonSyncContents:(_=o==null?void 0:o.filter)==null?void 0:_.sonSyncs,nameContents:(S=R.cloneDeep(s))==null?void 0:S.reverse(),isHidden:!1,calculatorFilters:(O=(M=(E=(k=(x=o==null?void 0:o.contents)==null?void 0:x.find(aa=>{var ma;return(ma=aa==null?void 0:aa.key)==null?void 0:ma.includes("struct")}))==null?void 0:k.value)==null?void 0:E[0])==null?void 0:M.算法)==null?void 0:O.contents};for(let aa in s)parseInt(aa)>=1&&(y[`name${parseInt(aa)-1}`]=s[aa]);let b=Array.isArray((Q=o==null?void 0:o.filter)==null?void 0:Q.menuFilter)?(J=o==null?void 0:o.filter)==null?void 0:J.menuFilter:[];if(((ye=b==null?void 0:b.filter(aa=>aa==null?void 0:aa.includes("@If")))==null?void 0:ye.length)>0){let aa=b==null?void 0:b.filter(Da=>Da==null?void 0:Da.includes("@If"));aa=aa==null?void 0:aa[0],aa=(U=(te=aa==null?void 0:aa.replace("(",Ai))==null?void 0:te.split(Ai))==null?void 0:U[1],aa=aa==null?void 0:aa.slice(0,(aa==null?void 0:aa.length)-1),aa!=null&&aa.includes("*")&&(aa=(X=(q=aa==null?void 0:aa.replace("{",Ai))==null?void 0:q.split(Ai))==null?void 0:X[1],aa=aa==null?void 0:aa.replace("}","")),aa=re.calculatorAndToOr(aa);let ma=(l==null?void 0:l.originPath)??"";(ma==null?void 0:ma[(ma==null?void 0:ma.length)-1])==="/"&&(ma=ma==null?void 0:ma.slice(0,(ma==null?void 0:ma.length)-1));let ja=await qr(ma,!1),xa=(ee=ja==null?void 0:ja.filter(Da=>(Da==null?void 0:Da.comp)==="Table"))==null?void 0:ee[0];xa=(ze=(pe=xa==null?void 0:xa.compData)==null?void 0:pe.find(Da=>(Da==null?void 0:Da.key)==="tableContents"))==null?void 0:ze.contents;let Ul=(N=(ue=vf.value)==null?void 0:ue.find(Da=>(Da==null?void 0:Da.condition)==="child"))==null?void 0:N.value;xa=(se=xa==null?void 0:xa.map(Da=>{for(let Rl in Da)if((Da==null?void 0:Da[Rl])===Ul)return Da}))==null?void 0:se.filter(Da=>Da),xa=xa==null?void 0:xa[0],aa=aa==null?void 0:aa[0];let Gl=[];for(let Da in aa){let Rl="";Xa.isObject(xa)&&(Rl=(ve=(G=Object.keys(xa))==null?void 0:G.filter(Fr=>Fr==null?void 0:Fr.includes("."+Da)))==null?void 0:ve[0]),Rl!==""&&(xa!=null&&xa[Rl])&&(aa==null?void 0:aa[Da])===(xa==null?void 0:xa[Rl])||xa!=null&&xa[Da]&&(aa==null?void 0:aa[Da])===(xa==null?void 0:xa[Da])?Gl.push(!0):Gl.push(!1)}if(Gl!=null&&Gl.some(Da=>Da===!1)&&((Be=l==null?void 0:l.originPath)==null?void 0:Be[((ke=l==null?void 0:l.originPath)==null?void 0:ke.length)-1])!=="/")return}if(p==="Table"||p==="Method"){!r&&((We=y==null?void 0:y.fatherSyncContents)==null?void 0:We.length)>0;let aa=((he=o==null?void 0:o.contents)==null?void 0:he.find(Qe=>{var La;return(La=Qe==null?void 0:Qe.key)==null?void 0:La.includes("content")}))||[],ma=[];y.comp="Table",aa.value=(I=aa==null?void 0:aa.value)==null?void 0:I.sort((Qe,La)=>parseInt(Qe==null?void 0:Qe.id)-parseInt(La==null?void 0:La.id)),aa.value=(Oe=aa==null?void 0:aa.value)==null?void 0:Oe.map(Qe=>{let La={};for(let hl in Qe)JSON.stringify(Qe==null?void 0:Qe[hl])==="{}"?La[hl]="":La[hl]=Qe==null?void 0:Qe[hl];return La}),ma.push({key:"tableContents",contents:aa==null?void 0:aa.value});let ja=(we=(ne=(xe=(ge=(oe=o==null?void 0:o.contents)==null?void 0:oe.find(Qe=>{var La;return(La=Qe==null?void 0:Qe.key)==null?void 0:La.includes("struct")}))==null?void 0:ge.value)==null?void 0:xe[0])==null?void 0:ne.结构)==null?void 0:we.contents;Array.isArray(ja==null?void 0:ja[0])?ja[0]=(Ke=ja==null?void 0:ja[0])==null?void 0:Ke.filter(Qe=>(Qe==null?void 0:Qe.prop)!=="sort"&&(Qe==null?void 0:Qe.prop)!=="relatedId"):ja=ja==null?void 0:ja.filter(Qe=>(Qe==null?void 0:Qe.prop)!=="sort"&&(Qe==null?void 0:Qe.prop)!=="relatedId"),ma.push({key:"header",contents:ja}),ma.push({key:"filter",contents:(le=(F=(V=(Ge=(ya=o==null?void 0:o.contents)==null?void 0:ya.find(Qe=>{var La;return(La=Qe==null?void 0:Qe.key)==null?void 0:La.includes("struct")}))==null?void 0:Ge.value)==null?void 0:V[0])==null?void 0:F.引用)==null?void 0:le.contents}),ma.push({key:"calculator",contents:y==null?void 0:y.calculatorFilters});let xa=mf,Ul=R.cloneDeep(yf);p==="Method"&&Ul.push({label:"生成方法",prop:"生成方法"}),!Array.isArray(ja==null?void 0:ja[0])&&((fe=ja==null?void 0:ja[0])==null?void 0:fe.prop)==="disabled"&&(xa=gf,Ul=bf);const Gl=["推力","真空","压力","温度","流量"],Da=y.name;Da&&Gl.includes(Da)&&(xa=[...xa],xa.push({label:"导出paraform",prop:"导出paraform",type:"methodButton"}));let Rl=[];if(!Array.isArray(ja==null?void 0:ja[0])&&(ja!=null&&ja.some(Qe=>{var La;return(Qe==null?void 0:Qe.calculatorFilter)&&((La=Qe==null?void 0:Qe.calculatorFilter)==null?void 0:La.includes("Manual"))}))){let Qe=(be=ja==null?void 0:ja.map(La=>La==null?void 0:La.calculatorFilter))==null?void 0:be.filter(La=>La&&(La==null?void 0:La.includes("Manual")));Qe==null||Qe.forEach(La=>{var Ll;let hl=re.analyzeSplitToContent(La,",");if(hl=hl==null?void 0:hl.map(Ba=>((Ba==null?void 0:Ba[(Ba==null?void 0:Ba.length)-1])===","&&(Ba=Ba==null?void 0:Ba.slice(0,(Ba==null?void 0:Ba.length)-1)),Ba)),hl!=null&&hl.find(Ba=>(Ba==null?void 0:Ba.includes("Extent"))&&(Ba==null?void 0:Ba.includes("Row")))&&(hl!=null&&hl.find(Ba=>(Ba==null?void 0:Ba.includes("Button"))&&(Ba==null?void 0:Ba.includes(","))))){let Ba=hl==null?void 0:hl.find(Yr=>Yr==null?void 0:Yr.includes("@FunctionButton"));Ba=(Ll=Ba==null?void 0:Ba.split("="))==null?void 0:Ll[1],Ba=Ba==null?void 0:Ba.slice(1,(Ba==null?void 0:Ba.length)-1),Ba=Ba==null?void 0:Ba.split(","),Ba=Ba==null?void 0:Ba[(Ba==null?void 0:Ba.length)-1],Rl.push(Ba)}}),Rl=[...new Set(Rl)],Rl=Rl==null?void 0:Rl.map(La=>({label:La,prop:La,type:"methodButton"}))}else if(Array.isArray(ja==null?void 0:ja[0])&&((ua=re.getColumnChild(ja==null?void 0:ja[0]))!=null&&ua.some(Qe=>{var La;return(Qe==null?void 0:Qe.calculatorFilter)&&((La=Qe==null?void 0:Qe.calculatorFilter)==null?void 0:La.includes("Manual"))}))){let Qe=(Pe=(ia=re.getColumnChild(ja==null?void 0:ja[0]))==null?void 0:ia.map(La=>La==null?void 0:La.calculatorFilter))==null?void 0:Pe.filter(La=>La&&(La==null?void 0:La.includes("Manual")));Qe==null||Qe.forEach(La=>{var Ll;let hl=re.analyzeSplitToContent(La,",");if(hl=hl==null?void 0:hl.map(Ba=>((Ba==null?void 0:Ba[(Ba==null?void 0:Ba.length)-1])===","&&(Ba=Ba==null?void 0:Ba.slice(0,(Ba==null?void 0:Ba.length)-1)),Ba)),hl!=null&&hl.find(Ba=>(Ba==null?void 0:Ba.includes("Extent"))&&(Ba==null?void 0:Ba.includes("Row")))&&(hl!=null&&hl.find(Ba=>(Ba==null?void 0:Ba.includes("Button"))&&(Ba==null?void 0:Ba.includes(","))))){let Ba=hl==null?void 0:hl.find(Yr=>Yr==null?void 0:Yr.includes("@FunctionButton"));Ba=(Ll=Ba==null?void 0:Ba.split("="))==null?void 0:Ll[1],Ba=Ba==null?void 0:Ba.slice(1,(Ba==null?void 0:Ba.length)-1),Ba=Ba==null?void 0:Ba.split(","),Ba=Ba==null?void 0:Ba[(Ba==null?void 0:Ba.length)-1],Rl.push(Ba)}}),Rl=[...new Set(Rl)],Rl=Rl==null?void 0:Rl.map(La=>({label:La,prop:La,type:"methodButton"}))}if(ma.push({key:"extraButton",contents:xa}),ma.push({key:"rowButton",contents:[...Ul,...Rl]}),y.compData=await Po(ma,l,y==null?void 0:y.nameContents),(va=y.compData)!=null&&va.find(Qe=>(Qe==null?void 0:Qe.key)==="tab")&&(y.tab=(Ae=(Ea=y.compData)==null?void 0:Ea.find(Qe=>(Qe==null?void 0:Qe.key)==="tab"))==null?void 0:Ae.contents),(Fa=y.compData)!=null&&Fa.find(Qe=>(Qe==null?void 0:Qe.key)==="step")&&(y.step=(da=(Ta=y.compData)==null?void 0:Ta.find(Qe=>(Qe==null?void 0:Qe.key)==="step"))==null?void 0:da.contents),(Ha=y.compData)!=null&&Ha.find(Qe=>(Qe==null?void 0:Qe.key)==="choice")&&(y.choice=(He=(sa=y.compData)==null?void 0:sa.find(Qe=>(Qe==null?void 0:Qe.key)==="choice"))==null?void 0:He.contents),(ha=y.compData)!=null&&ha.find(Qe=>(Qe==null?void 0:Qe.key)==="hideContents")&&(y.isHidden=(($e=(ea=y.compData)==null?void 0:ea.find(Qe=>(Qe==null?void 0:Qe.key)==="hideContents"))==null?void 0:$e.contents)??!1),(Fe=y.compData)!=null&&Fe.find(Qe=>(Qe==null?void 0:Qe.key)==="newType")){let Qe=(Ye=(ie=y.compData)==null?void 0:ie.find(La=>(La==null?void 0:La.key)==="newType"))==null?void 0:Ye.contents;y.comp=Qe,y.compData=(na=y.compData)==null?void 0:na.filter(La=>(La==null?void 0:La.key)!=="newType")}((Re=(fa=y.compData)==null?void 0:fa.find(Qe=>(Qe==null?void 0:Qe.key)==="TableType"))==null?void 0:Re.contents)==="Frameless"&&(y.comp="seamScroll",y.compData=(Ie=y.compData)==null?void 0:Ie.filter(Qe=>(Qe==null?void 0:Qe.key)!=="TableType"));let Fr="",Dr=(Je=y==null?void 0:y.compData)==null?void 0:Je.filter(Qe=>(Qe==null?void 0:Qe.key)==="fixType");if((Dr==null?void 0:Dr.length)>0&&r&&(Fr=(Ne=Dr==null?void 0:Dr[0])==null?void 0:Ne.contents,y.comp=Fr),((_e=y==null?void 0:y.calculatorFilters)==null?void 0:_e.length)>0){let Qe=[],La=[],hl=[];($a=y==null?void 0:y.calculatorFilters)==null||$a.forEach(Ll=>{var Yr,ln,zr,Ve,Zl,ql,Jr;let Ba=(zr=(ln=(Yr=Ll==null?void 0:Ll.calculatorFilter)==null?void 0:Yr.replace("(",Ai))==null?void 0:ln.split(Ai))==null?void 0:zr[1];Ba=(Ve=Ba==null?void 0:Ba.split(","))==null?void 0:Ve[0],Ba=Ba??(Ll==null?void 0:Ll.functionName),(Zl=Ll==null?void 0:Ll.calculatorFilter)!=null&&Zl.includes("Up")&&Qe.push({label:Ba,prop:Ba,type:"methodButton"}),(ql=Ll==null?void 0:Ll.calculatorFilter)!=null&&ql.includes("Line")&&La.push({label:Ba,prop:Ba,type:"methodButton"}),(Jr=Ll==null?void 0:Ll.calculatorFilter)!=null&&Jr.includes("Down")&&hl.push({label:Ba,prop:Ba,type:"methodButton"})}),y.compData=(wl=y.compData)==null?void 0:wl.map(Ll=>((Ll==null?void 0:Ll.key)==="extraButton"&&(Ll.contents=[...Qe??[],...Ll.contents]),(Ll==null?void 0:Ll.key)==="rowButton"&&(Ll.contents=[...La??[],...Ll.contents]),(Ll==null?void 0:Ll.key)==="bottomButton"&&(Ll.contents=[...hl??[],...Ll.contents]),Ll)),(hl==null?void 0:hl.length)>0&&!((Pl=(el=y.compData)==null?void 0:el.find(Ll=>(Ll==null?void 0:Ll.key)==="bottomButton"))!=null&&Pl.contents)&&y.compData.push({key:"bottomButton",contents:hl})}}else if(p==="Form"){let aa=[],ma=(ll=(Hl=(bl=o==null?void 0:o.contents)==null?void 0:bl.find(Da=>{var Rl;return(Rl=Da==null?void 0:Da.key)==null?void 0:Rl.includes("content")}))==null?void 0:Hl.value)==null?void 0:ll[0],ja=[],xa=Array.isArray((jl=o==null?void 0:o.filter)==null?void 0:jl.menuFilter)?(Ga=o==null?void 0:o.filter)==null?void 0:Ga.menuFilter:[];xa==null||xa.forEach(Da=>{if(Da!=null&&Da.includes("@Param(Hide=Yes, prop=")||Da!=null&&Da.includes("(Hide=Yes, prop=")){const Rl=Da==null?void 0:Da.match(/prop=([^,)]+)/);Rl!=null&&Rl[1]&&ja.push(Rl==null?void 0:Rl[1])}});let Ul=(pr=(Sl=(ar=(Xl=(Jl=o==null?void 0:o.contents)==null?void 0:Jl.find(Da=>{var Rl;return(Rl=Da==null?void 0:Da.key)==null?void 0:Rl.includes("struct")}))==null?void 0:Xl.value)==null?void 0:ar[0])==null?void 0:Sl.结构)==null?void 0:pr.contents,Gl=(ga=Ul==null?void 0:Ul.map(Da=>(Da.value=ma==null?void 0:ma[Da==null?void 0:Da.prop],Da)))==null?void 0:ga.filter(Da=>(Da==null?void 0:Da.prop)!=="sort"&&(Da==null?void 0:Da.prop)!=="relatedId");Gl=Gl==null?void 0:Gl.map(Da=>(ja!=null&&ja.includes(Da==null?void 0:Da.prop)&&(Da.isHideInForm=!0),Da)),aa.push({key:"calculator",contents:y==null?void 0:y.calculatorFilters}),aa.push({key:"filter",contents:(Sa=(Ua=(Dl=(vl=(ol=o==null?void 0:o.contents)==null?void 0:ol.find(Da=>{var Rl;return(Rl=Da==null?void 0:Da.key)==null?void 0:Rl.includes("struct")}))==null?void 0:vl.value)==null?void 0:Dl[0])==null?void 0:Ua.引用)==null?void 0:Sa.contents}),aa.push({key:"formContent",contents:Gl}),aa.push({key:"paramHideProps",contents:ja}),y.compData=await pf(aa,l,y==null?void 0:y.nameContents),(rl=y.compData)!=null&&rl.find(Da=>(Da==null?void 0:Da.key)==="tab")&&(y.tab=(oa=(Me=y.compData)==null?void 0:Me.find(Da=>(Da==null?void 0:Da.key)==="tab"))==null?void 0:oa.contents),(Ya=y.compData)!=null&&Ya.find(Da=>(Da==null?void 0:Da.key)==="step")&&(y.step=(_a=(me=y.compData)==null?void 0:me.find(Da=>(Da==null?void 0:Da.key)==="step"))==null?void 0:_a.contents),(Pa=y.compData)!=null&&Pa.find(Da=>(Da==null?void 0:Da.key)==="choice")&&(y.choice=(Il=(pl=y.compData)==null?void 0:pl.find(Da=>(Da==null?void 0:Da.key)==="choice"))==null?void 0:Il.contents),(Qa=y.compData)!=null&&Qa.find(Da=>(Da==null?void 0:Da.key)==="hideContents")&&(y.isHidden=((Ma=(kl=y.compData)==null?void 0:kl.find(Da=>(Da==null?void 0:Da.key)==="hideContents"))==null?void 0:Ma.contents)??!1)}return y});return n=await Promise.all(i),n=n==null?void 0:n.filter(o=>!(o!=null&&o.isHidden)),n};let kf="http://139.196.154.85:20031";function xf(a){return Xa.axios({method:"post",url:kf+"/api/word-report/build-by-upload",responseType:"blob",data:a})}const wf=R.useUnit(R.pinia),{selectTitle:Ds}=R.storeToRefs(wf),_f=async a=>{var r;let l=(r=re.analyzerStringToArray(a,[":","@","="]))==null?void 0:r[0];return l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1),l=re.analyzeSplitToContent(l,","),l=l==null?void 0:l.map(n=>((n==null?void 0:n[(n==null?void 0:n.length)-1])===","&&(n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1)),n)),l=l==null?void 0:l.map(async n=>{var o,p,s,u,y,b,g,d,C,v,H,T,j,D,_,S,x,k,E,M,O,Q,J,ye,te,U,q,X,ee,pe,ze,ue,N,se;let i=re.analyzeSplitToContent(n,"=");if(n!=null&&n.includes("==")){i=n==null?void 0:n.split("==");let G=i==null?void 0:i[0],ve=i==null?void 0:i[1],ke=(x=ve==null?void 0:ve.split("*"))==null?void 0:x[0],Be=(k=ve==null?void 0:ve.split("*"))==null?void 0:k[1];Be=(E=re.analyzeSplitToContent(Be,":"))==null?void 0:E.map(I=>((I==null?void 0:I[(I==null?void 0:I.length)-1])===":"&&(I=I==null?void 0:I.slice(0,(I==null?void 0:I.length)-1)),I));let We=Be==null?void 0:Be.filter(I=>(I==null?void 0:I[0])!=="{"),he=Be==null?void 0:Be.filter(I=>(I==null?void 0:I[0])==="{");if(he=he==null?void 0:he[0],he=he==null?void 0:he.slice(1,(he==null?void 0:he.length)-1),he=(M=re.analyzeSplitToContent(he,","))==null?void 0:M.map(I=>((I==null?void 0:I[(I==null?void 0:I.length)-1])===","&&(I=I==null?void 0:I.slice(0,(I==null?void 0:I.length)-1)),I)),ke!=null&&ke.includes("{")){let I=(Q=(O=Ds.value)==null?void 0:O.find(we=>(we==null?void 0:we.condition)==="child"))==null?void 0:Q.value;ke=ke==null?void 0:ke.slice(1,ke==null?void 0:ke.length),ke=(ye=(J=ke==null?void 0:ke.replace("{",""))==null?void 0:J.replace("}",""))==null?void 0:ye.replace(":","/"),ke=ke+"/"+I;let Oe=await qr(ke,!1);Oe=Oe==null?void 0:Oe.find(we=>(we==null?void 0:we.name)===(We==null?void 0:We[(We==null?void 0:We.length)-1]));let oe=(U=(te=Oe==null?void 0:Oe.compData)==null?void 0:te.find(we=>(we==null?void 0:we.key)==="tableContents"))==null?void 0:U.contents,ge=(X=(q=Oe==null?void 0:Oe.compData)==null?void 0:q.find(we=>(we==null?void 0:we.key)==="header"))==null?void 0:X.contents,xe=re.tableToForm(oe,ge),ne=[];xe==null||xe.forEach(we=>{let Ke=[];he==null||he.forEach(ya=>{var Ge;Ke.push(((Ge=we==null?void 0:we.find(V=>(V==null?void 0:V.key)===ya))==null?void 0:Ge.value)??"")}),ne.push(Ke)}),ne=re.arrayToString(ne),n=G+"=="+ne}else{ke=ke==null?void 0:ke.slice(1,ke==null?void 0:ke.length),ke=(pe=(ee=ke==null?void 0:ke.replace("{",""))==null?void 0:ee.replace("}",""))==null?void 0:pe.replace(":","/");let I=await qr(ke,!1);I=I==null?void 0:I.find(ne=>(ne==null?void 0:ne.name)===(We==null?void 0:We[(We==null?void 0:We.length)-1]));let Oe=(ue=(ze=I==null?void 0:I.compData)==null?void 0:ze.find(ne=>(ne==null?void 0:ne.key)==="tableContents"))==null?void 0:ue.contents,oe=(se=(N=I==null?void 0:I.compData)==null?void 0:N.find(ne=>(ne==null?void 0:ne.key)==="header"))==null?void 0:se.contents,ge=re.tableToForm(Oe,oe),xe=[];ge==null||ge.forEach(ne=>{let we=[];he==null||he.forEach(Ke=>{var ya;we.push(((ya=ne==null?void 0:ne.find(Ge=>(Ge==null?void 0:Ge.key)===Ke))==null?void 0:ya.value)??"")}),xe.push(we)}),xe=re.arrayToString(xe),n=G+"=="+xe}}else{let G=i==null?void 0:i[0],ve=i==null?void 0:i[1],ke=(o=ve==null?void 0:ve.split("*"))==null?void 0:o[0],Be=(p=ve==null?void 0:ve.split("*"))==null?void 0:p[1];Be=(s=re.analyzeSplitToContent(Be,":"))==null?void 0:s.map(I=>((I==null?void 0:I[(I==null?void 0:I.length)-1])===":"&&(I=I==null?void 0:I.slice(0,(I==null?void 0:I.length)-1)),I));let We=Be==null?void 0:Be.filter(I=>(I==null?void 0:I[0])!=="{"),he=Be==null?void 0:Be.filter(I=>(I==null?void 0:I[0])==="{");if(he=he==null?void 0:he[0],he=he==null?void 0:he.slice(1,(he==null?void 0:he.length)-1),he=(u=re.analyzeSplitToContent(he,":"))==null?void 0:u.map(I=>((I==null?void 0:I[(I==null?void 0:I.length)-1])===":"&&(I=I==null?void 0:I.slice(0,(I==null?void 0:I.length)-1)),I)),ke!=null&&ke.includes("{")){let I=(b=(y=Ds.value)==null?void 0:y.find(oe=>(oe==null?void 0:oe.condition)==="child"))==null?void 0:b.value;ke=ke==null?void 0:ke.slice(1,ke==null?void 0:ke.length),ke=(d=(g=ke==null?void 0:ke.replace("{",""))==null?void 0:g.replace("}",""))==null?void 0:d.replace(":","/"),ke=ke+"/"+I;let Oe=await qr(ke,!1);Oe=Oe==null?void 0:Oe.find(oe=>(oe==null?void 0:oe.name)===(We==null?void 0:We[(We==null?void 0:We.length)-1])),Oe=(v=(C=Oe==null?void 0:Oe.compData)==null?void 0:C.find(oe=>(oe==null?void 0:oe.key)==="formContent"))==null?void 0:v.contents,Oe=(H=Oe==null?void 0:Oe.find(oe=>(oe==null?void 0:oe.prop)===(he==null?void 0:he[(he==null?void 0:he.length)-1])))==null?void 0:H.value,ve=Oe}else{ke=ke==null?void 0:ke.slice(1,ke==null?void 0:ke.length),ke=(j=(T=ke==null?void 0:ke.replace("{",""))==null?void 0:T.replace("}",""))==null?void 0:j.replace(":","/");let I=await qr(ke,!1);I=I==null?void 0:I.find(Oe=>(Oe==null?void 0:Oe.name)===(We==null?void 0:We[(We==null?void 0:We.length)-1])),I=(_=(D=I==null?void 0:I.compData)==null?void 0:D.find(Oe=>(Oe==null?void 0:Oe.key)==="formContent"))==null?void 0:_.contents,I=(S=I==null?void 0:I.find(Oe=>(Oe==null?void 0:Oe.prop)===(he==null?void 0:he[(he==null?void 0:he.length)-1])))==null?void 0:S.value,ve=I}n=G+ve}return n}),l=await Promise.all(l),l=l==null?void 0:l.join(","),l="{"+l+"}",l},Sf=R.useLoginState(R.pinia),{loginUserInfo:Zn}=R.storeToRefs(Sf),Ef=R.useUnit(R.pinia),{selectTitle:Ac}=R.storeToRefs(Ef),Yi=R.useMenuState(R.pinia),{localFiles:Cf}=R.storeToRefs(Yi),Ft=async(a=[],l="Manual",r=[],n=[])=>{var s;let i=a,o=(s=i==null?void 0:i.filter(u=>{var y;return(u==null?void 0:u.functionName)&&(l==="Manual"&&((y=u==null?void 0:u.calculatorFilter)==null?void 0:y.includes(l))||l!=="Manual")}))==null?void 0:s.map(u=>({prop:u==null?void 0:u.prop,label:u==null?void 0:u.label,methods:u==null?void 0:u.calculatorFilter,functionName:u==null?void 0:u.functionName,functionRelatedWords:u==null?void 0:u.functionRelatedWords}));(n==null?void 0:n.length)>0&&(o=[...n==null?void 0:n.map(y=>({prop:"",label:"",methods:y==null?void 0:y.calculatorFilter,functionName:y==null?void 0:y.functionName,functionRelatedWords:y==null?void 0:y.functionRelatedWords})),...o]),(n==null?void 0:n.length)>0&&(i=[i==null?void 0:i[0]]);let p=i==null?void 0:i.map(async u=>{let y=(n==null?void 0:n.length)>0?n:o==null?void 0:o.filter(b=>(b==null?void 0:b.prop)===(u==null?void 0:u.prop));return u=await zo(u,y,i,l,i,r),u});return p=await Promise.all(p),p},Nt=async(a,l,r="Manual",n=[],i=[],o=[])=>{var b;let p=a,s;Array.isArray(l==null?void 0:l[0])?s=re.getColumnChild(l==null?void 0:l[0]):s=l;let u=(b=s==null?void 0:s.filter(g=>{var d;return(g==null?void 0:g.calculatorFilter)&&((d=g==null?void 0:g.calculatorFilter)==null?void 0:d.includes(r))||(g==null?void 0:g.calculatorFilter)===""&&(g==null?void 0:g.functionName)}))==null?void 0:b.map(g=>({prop:g==null?void 0:g.prop,label:g==null?void 0:g.label,methods:g==null?void 0:g.calculatorFilter,functionName:g==null?void 0:g.functionName,functionRelatedWords:g==null?void 0:g.functionRelatedWords}));(i==null?void 0:i.length)>0&&(u=[...i==null?void 0:i.map(d=>({prop:"",label:"",methods:d==null?void 0:d.calculatorFilter,functionName:d==null?void 0:d.functionName,functionRelatedWords:d==null?void 0:d.functionRelatedWords})),...u]),(i==null?void 0:i.length)>0&&(p=[p==null?void 0:p[0]]);let y=p==null?void 0:p.map(async g=>(g=await zo(g,u,s,r,p,n,o),g));return y=await Promise.all(y),y},Tf=a=>{let l=a==null?void 0:a.contents,r=a==null?void 0:a.valueString,n=a==null?void 0:a.prop,i=a==null?void 0:a.headers,o;return Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=re.getValueToObjectValue(l,re.getColumnContents(i))),r==null||r.forEach(p=>{var s;if(l!=null&&l[p]){let u=l==null?void 0:l[p];o=o?u?Fl.isEqual(u.toString(),o.toString()):void 0:u}else{let u=(s=i==null?void 0:i.find(b=>(b==null?void 0:b.label)===p))==null?void 0:s.prop,y=(l==null?void 0:l[u])??0;o=o?y?Fl.isEqual(y.toString(),o.toString()):void 0:y}}),l[n]=o===void 0?void 0:o?1:0,l},$r=a=>{const[l,r,n]=R.cloneDeep(a).split(":").map(Number);let i=+a;return!a||!(a!=null&&a.includes(":"))?i:(l??0)*3600+(r??0)*60+(n??0)},ii=a=>{const l=o=>o.toString().padStart(2,"0"),r=Math.floor(a/3600),n=Math.floor(a%3600/60),i=a%60;return`${l(r)}:${l(n)}:${parseInt(l(i))}`},Bf=a=>{let l=a==null?void 0:a.contents,r=a==null?void 0:a.valueString,n=a==null?void 0:a.prop,i=a==null?void 0:a.headers,o=a==null?void 0:a.typeString,p=a==null?void 0:a.allContents,s=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=re.getValueToObjectValue(l,re.getColumnContents(i))),r==null||r.forEach(u=>{var y,b,g,d,C,v,H,T,j;if(l!=null&&l[u]){if(o==="Row")if(!((b=((y=l==null?void 0:l[u])==null?void 0:y.toString())??"")!=null&&b.includes(":"))&&!((g=s==null?void 0:s.toString())!=null&&g.includes(":"))){let D=+(l==null?void 0:l[u]);s=s+D}else s=$r(s.toString())+$r((d=l==null?void 0:l[u])==null?void 0:d.toString()),s=ii(s)}else if(o==="Row"){let D=(C=i==null?void 0:i.find(_=>(_==null?void 0:_.label)===u))==null?void 0:C.prop;if(!((H=Number.isNaN(l==null?void 0:l[D])?"":(v=l==null?void 0:l[D])==null?void 0:v.toString())!=null&&H.includes(":"))&&!((T=s==null?void 0:s.toString())!=null&&T.includes(":"))){let _=+((l==null?void 0:l[D])??0);s=s+_}else s=$r(s==null?void 0:s.toString())+$r((j=(l==null?void 0:l[D])??0)==null?void 0:j.toString()),s=ii(s)}}),o==="Column"){let u=[];r==null||r.forEach(y=>{let b=p==null?void 0:p.map(g=>{var d;return(g==null?void 0:g[y])??(g==null?void 0:g[(d=i==null?void 0:i.find(C=>(C==null?void 0:C.label)===y))==null?void 0:d.prop])});u=[...u,...b]}),s=u.reduce((y,b)=>{let g=0;Number.isNaN(y)||(g=+y);let d=0;return Number.isNaN(b)||(d=+b),g+d},0)}return l[n]=s,l},Df=a=>{let l=a==null?void 0:a.contents,r=a==null?void 0:a.valueString,n=a==null?void 0:a.prop,i=a==null?void 0:a.headers,o=a==null?void 0:a.typeString,p=a==null?void 0:a.allContents,s=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=re.getValueToObjectValue(l,re.getColumnContents(i))),r==null||r.forEach(u=>{var y,b,g,d,C,v,H;if(l!=null&&l[u]){if(o==="Row")if(!((b=(y=l==null?void 0:l[u])==null?void 0:y.toString())!=null&&b.includes(":"))&&!((g=s==null?void 0:s.toString())!=null&&g.includes(":"))){let T=+(l==null?void 0:l[u]);s=s===0?s+T:s-T}else s=s===0?$r(s.toString())+$r(l==null?void 0:l[u].toString()):$r(s.toString())-$r(l==null?void 0:l[u].toString()),s=ii(s)}else if(o==="Row"){let T=(d=i==null?void 0:i.find(j=>(j==null?void 0:j.label)===u))==null?void 0:d.prop;if(!((v=Number.isNaN(l==null?void 0:l[T])?"":(C=l==null?void 0:l[T])==null?void 0:C.toString())!=null&&v.includes(":"))&&!((H=s==null?void 0:s.toString())!=null&&H.includes(":"))){let j=+((l==null?void 0:l[T])??0);s=s===0?s+j:s-j}else s=s===0?$r(s.toString())+$r(((l==null?void 0:l[T])??0).toString()):$r(s.toString())-$r(((l==null?void 0:l[T])??0).toString()),s=ii(s)}}),o==="Column"){let u=[];r==null||r.forEach(y=>{let b=p==null?void 0:p.map(g=>{var d;return(g==null?void 0:g[y])??(g==null?void 0:g[(d=i==null?void 0:i.find(C=>(C==null?void 0:C.label)===y))==null?void 0:d.prop])});u=[...u,...b]}),s=u.reduce((y,b)=>{let g=0;Number.isNaN(y)||(g=+y);let d=0;return Number.isNaN(b)||(d=+b),g-d},0)}return l[n]=s,l},Nf=a=>{let l=a==null?void 0:a.contents,r=a==null?void 0:a.valueString,n=a==null?void 0:a.prop,i=a==null?void 0:a.headers,o=a==null?void 0:a.typeString,p=a==null?void 0:a.allContents,s=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=re.getValueToObjectValue(l,re.getColumnContents(i))),r==null||r.forEach(u=>{var y,b,g,d,C,v,H;if(l!=null&&l[u]){if(o==="Row")if(!((b=(y=l==null?void 0:l[u])==null?void 0:y.toString())!=null&&b.includes(":"))&&!((g=s==null?void 0:s.toString())!=null&&g.includes(":"))){let T=+(l==null?void 0:l[u]);s=s===0?s+T:s*T}else s=s===0?$r(s.toString())+$r(l==null?void 0:l[u].toString()):$r(s.toString())*$r(l==null?void 0:l[u].toString()),s=ii(s)}else if(o==="Row"){let T=(d=i==null?void 0:i.find(j=>(j==null?void 0:j.label)===u))==null?void 0:d.prop;if(!(l!=null&&l[T]))s=void 0;else if(!((v=Number.isNaN(l==null?void 0:l[T])?"":(C=l==null?void 0:l[T])==null?void 0:C.toString())!=null&&v.includes(":"))&&!((H=s==null?void 0:s.toString())!=null&&H.includes(":"))){let j=+((l==null?void 0:l[T])??0);s=s===0?s+j:s*j}else s=s===0?$r(s.toString())+$r(((l==null?void 0:l[T])??0).toString()):$r(s.toString())*$r(((l==null?void 0:l[T])??0).toString()),s=ii(s)}}),o==="Column"){let u=[];r==null||r.forEach(y=>{let b=p==null?void 0:p.map(g=>{var d;return(g==null?void 0:g[y])??(g==null?void 0:g[(d=i==null?void 0:i.find(C=>(C==null?void 0:C.label)===y))==null?void 0:d.prop])});u=[...u,...b]}),s=u.reduce((y,b)=>{let g=0;Number.isNaN(y)||(g=+y);let d=0;return Number.isNaN(b)||(d=+b),g*d},0)}return l[n]=s,l},Af=a=>{let l=a==null?void 0:a.contents,r=a==null?void 0:a.valueString,n=a==null?void 0:a.prop,i=a==null?void 0:a.headers,o=a==null?void 0:a.typeString,p=a==null?void 0:a.allContents,s=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=re.getValueToObjectValue(l,re.getColumnContents(i))),r==null||r.forEach(u=>{var y,b,g,d,C,v,H;if(l!=null&&l[u]){if(o==="Row")if(!((b=(y=l==null?void 0:l[u])==null?void 0:y.toString())!=null&&b.includes(":"))&&!((g=s==null?void 0:s.toString())!=null&&g.includes(":"))){let T=+(l==null?void 0:l[u]);s=s===0?s+T:s/T}else s=s===0?$r(s.toString())+$r(l==null?void 0:l[u].toString()):$r(s.toString())/$r(l==null?void 0:l[u].toString()),s=ii(s)}else if(o==="Row"){let T=(d=i==null?void 0:i.find(j=>(j==null?void 0:j.label)===u))==null?void 0:d.prop;if(!((v=Number.isNaN(l==null?void 0:l[T])?"":(C=l==null?void 0:l[T])==null?void 0:C.toString())!=null&&v.includes(":"))&&!((H=s==null?void 0:s.toString())!=null&&H.includes(":"))){let j=+((l==null?void 0:l[T])??0);s=s===0?s+j:s/j}else s=s===0?$r(s.toString())+$r(((l==null?void 0:l[T])??0).toString()):$r(s.toString())/$r(((l==null?void 0:l[T])??0).toString()),s=ii(s)}}),o==="Column"){let u=[];r==null||r.forEach(y=>{let b=p==null?void 0:p.map(g=>{var d;return(g==null?void 0:g[y])??(g==null?void 0:g[(d=i==null?void 0:i.find(C=>(C==null?void 0:C.label)===y))==null?void 0:d.prop])});u=[...u,...b]}),s=u.reduce((y,b)=>{let g=0;Number.isNaN(y)||(g=+y);let d=0;return Number.isNaN(b)||(d=+b),g/d},0)}return l[n]=s.toFixed(2),l},zf=async a=>{var o,p,s,u,y,b,g,d,C,v,H;let l=(o=a==null?void 0:a.valueString)==null?void 0:o[0],r=(p=a==null?void 0:a.contents)==null?void 0:p.calculatorFilter,n=0,i=a==null?void 0:a.contents;if(l!=null&&l.includes("$")&&!(l!=null&&l.includes("{"))){(l==null?void 0:l[0])==="$"&&(l=l==null?void 0:l.slice(1,l==null?void 0:l.length));let T=(u=(s=l==null?void 0:l.split("*"))==null?void 0:s[0])==null?void 0:u.replaceAll(":","/"),j=await qr(T,!1),D=(y=l==null?void 0:l.split("*"))==null?void 0:y[1];if(j=(b=j==null?void 0:j.filter(_=>(_==null?void 0:_.name)===D))==null?void 0:b[0],r!==""){let _=j.compData;_=_==null?void 0:_.filter(S=>(S==null?void 0:S.key)!=="filter"),_.push({key:"filter",contents:"("+r+")"}),_=await Po(_,{}),n=(d=(g=_==null?void 0:_.find(S=>(S==null?void 0:S.key)==="tableContents"))==null?void 0:g.contents)==null?void 0:d.length}else n=(H=(v=(C=j==null?void 0:j.compData)==null?void 0:C.find(_=>(_==null?void 0:_.key)==="tableContents"))==null?void 0:v.contents)==null?void 0:H.length}return i.value=n,i},Mf=async a=>{var g,d,C,v,H,T,j,D,_;let l=(g=a==null?void 0:a.valueString)==null?void 0:g[0],r=a==null?void 0:a.filter;r=(r==null?void 0:r.find(S=>S==null?void 0:S.includes("@If")))??"",(l==null?void 0:l[0])==="$"&&(l=l==null?void 0:l.slice(1,l==null?void 0:l.length));let n=(C=(d=l==null?void 0:l.split("*"))==null?void 0:d[0])==null?void 0:C.replaceAll(":","/"),i=(v=l==null?void 0:l.split("*"))==null?void 0:v[1],o=(H=i==null?void 0:i.split("{"))==null?void 0:H[0],p=i==null?void 0:i.replace(o,"");o=o==null?void 0:o.slice(0,(o==null?void 0:o.length)-1),o=o==null?void 0:o.split(":"),o=o==null?void 0:o[(o==null?void 0:o.length)-1];let s=await qr(n,!1);if(p=p==null?void 0:p.slice(1,(p==null?void 0:p.length)-1),p=p==null?void 0:p.split(":"),p=p==null?void 0:p[(p==null?void 0:p.length)-1],s=s==null?void 0:s.find(S=>(S==null?void 0:S.name)===o),s=(j=(T=s==null?void 0:s.compData)==null?void 0:T.find(S=>(S==null?void 0:S.key)==="tableContents"))==null?void 0:j.contents,(r==null?void 0:r.length)>0){r=(_=(D=r==null?void 0:r.replace("(","$R"))==null?void 0:D.split("$R"))==null?void 0:_[1],r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1);let S=re.calculatorAndToOr(r);S==null||S.forEach(x=>{for(let k in x)x[k]!=="!"?s=s==null?void 0:s.filter(E=>{var M;return(E==null?void 0:E[k])===(x==null?void 0:x[k])||(E==null?void 0:E[(M=Object.keys(E))==null?void 0:M.find(O=>O==null?void 0:O.includes("."+k))])===(x==null?void 0:x[k])}):s=s==null?void 0:s.filter(E=>{var M;return(E==null?void 0:E[k])!==(x==null?void 0:x[k])&&(E==null?void 0:E[(M=Object.keys(E))==null?void 0:M.find(O=>O==null?void 0:O.includes("."+k))])!==(x==null?void 0:x[k])})})}s=s==null?void 0:s.map(S=>S==null?void 0:S[p]);let u=[...new Set(s)],y=[],b={};return u==null||u.forEach(S=>{var k;let x=(k=s==null?void 0:s.filter(E=>S===E))==null?void 0:k.length;b[S]=x}),y.push(b),{xAxis:u,yAxis:y}},If=async a=>{var n,i;let l=a==null?void 0:a.valueString;l=l==null?void 0:l[0];let r={};if((l==null?void 0:l[0])==="{"){l=l==null?void 0:l.slice(1,l.length-1),l=(n=re.analyzeSplitToContent(l,","))==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));let o=l==null?void 0:l.map(async s=>{var g,d,C,v,H,T,j,D,_,S,x,k,E,M,O,Q,J,ye;let u=(d=(g=s==null?void 0:s.replace("=","$R"))==null?void 0:g.split("$R"))==null?void 0:d[0],y=(v=(C=s==null?void 0:s.replace("=","$R"))==null?void 0:C.split("$R"))==null?void 0:v[1],b="";if(y==="LoginUser")b=((H=Zn.value)==null?void 0:H.姓名)||((T=Zn.value)==null?void 0:T.account)||((j=Zn.value)==null?void 0:j.账号);else if((y==null?void 0:y[0])==="$"){let te=(D=y==null?void 0:y.split("*"))==null?void 0:D[0],U=(_=y==null?void 0:y.split("*"))==null?void 0:_[1],q=U;if((te==null?void 0:te[0])==="$"&&(te=te==null?void 0:te.slice(1,te==null?void 0:te.length)),te!=null&&te.includes("$")){let ee=(S=te==null?void 0:te.split("$"))==null?void 0:S[0],pe=(x=te==null?void 0:te.split("$"))==null?void 0:x[1],ze=(k=ee==null?void 0:ee.split(":"))==null?void 0:k[0],ue=(O=(M=(E=Ac.value)==null?void 0:E.filter(N=>(N==null?void 0:N.condition)==="child"))==null?void 0:M[0])==null?void 0:O.value;pe=pe==null?void 0:pe.replaceAll(":","/"),te=ze+"/"+pe+"/"+ue}else te=te==null?void 0:te.replaceAll(":","/");U=U==null?void 0:U.split(":"),U=U==null?void 0:U.find((ee,pe)=>pe===(U==null?void 0:U.length)-2),q=q==null?void 0:q.split(":"),q=q==null?void 0:q.find((ee,pe)=>pe===(q==null?void 0:q.length)-1),(q==null?void 0:q[0])==="{"&&(q=q==null?void 0:q.slice(1,(q==null?void 0:q.length)-1));let X=await qr(te,!1);X=X==null?void 0:X.find(ee=>(ee==null?void 0:ee.name)===U),X=(J=(Q=X==null?void 0:X.compData)==null?void 0:Q.find(ee=>(ee==null?void 0:ee.key)==="tableContents"))==null?void 0:J.contents,b=(ye=X==null?void 0:X[0])==null?void 0:ye[q]}else b=y;r[u]=b});await Promise.all(o);let p=(i=a==null?void 0:a.valueString)==null?void 0:i[1];r.menuPathContent=p}return r},Of=async a=>{var y,b,g,d,C,v,H;let l=a==null?void 0:a.valueString,r=l==null?void 0:l.filter(T=>(T==null?void 0:T.includes(".docx"))||(T==null?void 0:T.includes(".doc")));r=r==null?void 0:r[0];let n=l==null?void 0:l.filter(T=>!(T!=null&&T.includes(".docx"))&&!(T!=null&&T.includes(".doc")));n=n==null?void 0:n[0];let i=(b=a==null?void 0:a.compNames)==null?void 0:b[((y=a==null?void 0:a.compNames)==null?void 0:y.length)-1],o=((C=(d=(g=Ac.value)==null?void 0:g.filter(T=>(T==null?void 0:T.condition)==="child"))==null?void 0:d[0])==null?void 0:C.value)??"",p=Cf.value;o!==""&&(p=(v=p==null?void 0:p.find(T=>(T==null?void 0:T.path)===o))==null?void 0:v.children),p=(H=p==null?void 0:p.find(T=>(T==null?void 0:T.name)===i))==null?void 0:H.children;let s=p==null?void 0:p.find(T=>(T==null?void 0:T.name)===r),u=p==null?void 0:p.find(T=>(T==null?void 0:T.name)===n);u=(u==null?void 0:u.url)??"",u!==""?u=u==null?void 0:u.replace(/^file:\/\//,"file:///").replace(/\\/g,"/"):u="file:///"+(n==null?void 0:n.replaceAll("\\","/")),s=(s==null?void 0:s.url)??"",s!==""?s=s==null?void 0:s.replace(/^file:\/\//,"file:///").replace(/\\/g,"/"):s="file:///"+(r==null?void 0:r.replaceAll("\\","/"));try{const j=await(await fetch(s)).blob();let D=s.split(/[\\/]/).pop();const _=new File([j],D,{type:j.type||"application/octet-stream"}),S=new FormData;S.append("TemplateFile",_);let x=await fetch(u);x=await x.text(),x=await _f(x),S.append("RawContent",x);let k=await xf(S),E=new Blob([k.data],{type:"application/zip"});const M=window.URL.createObjectURL(E),O=document.createElement("a");O.href=M,O.download=r,document.body.appendChild(O),O.click(),document.body.removeChild(O),window.URL.revokeObjectURL(M)}catch{Xa.ElMessage.error("文件路径未找到")}},Lf=async a=>{var i,o;let l=a==null?void 0:a.valueString,r=l==null?void 0:l[0];r=(i=r==null?void 0:r.split("*"))==null?void 0:i[0],(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.replaceAll(":","/"),r=r;let n=await qr(r,!1);if((n==null?void 0:n.length)>0){Yi.setActiveTopMenuPath((o=r==null?void 0:r.split("/"))==null?void 0:o[0]);let p=localStorage.getItem("menus-store");p=JSON.parse(p),p=p==null?void 0:p.menus,p=p==null?void 0:p.find(s=>{var u;return(s==null?void 0:s.path)===((u=r==null?void 0:r.split("/"))==null?void 0:u[0])}),p=p==null?void 0:p.childMenus,Yi.setAsideMenus(p),Yi.setJumpMenuInform(!0),Yi.setActiveMenuPath(r)}else Xa.ElMessage.error("页面不存在");return a},go={Sum:Bf,Substract:Df,Multiple:Nf,Divide:Af,Compare:Tf,VecDimCount:zf,Approval:If,VecRepCount:Mf,AutoReportGen:Of,OpenPortal:Lf},zo=async(a,l,r,n="Auto",i,o=[],p=[])=>{var g,d,C,v,H,T,j,D,_,S,x,k,E,M,O,Q,J,ye,te,U,q;let s=a,u=[],y=await R.getPageDataApi({platId:parseInt((g=Zn==null?void 0:Zn.value)==null?void 0:g.plat_id),pageName:"menu"});y=(v=(C=(d=y==null?void 0:y.data)==null?void 0:d.result)==null?void 0:C.filter(X=>(X==null?void 0:X.property_name)===""))==null?void 0:v[0];let b=[];if(y!=null&&y.object_name){y=y==null?void 0:y.object_name;let X=await R.getPageDataApi({platId:parseInt((H=Zn==null?void 0:Zn.value)==null?void 0:H.plat_id),pageName:y});X=(S=(_=(D=(j=(T=X==null?void 0:X.data)==null?void 0:T.result)==null?void 0:j[0])==null?void 0:D.contents)==null?void 0:_.find(ee=>{var pe;return(pe=ee==null?void 0:ee.key)==null?void 0:pe.includes("content")}))==null?void 0:S.value,u=(x=X==null?void 0:X.map(ee=>({functionName:ee==null?void 0:ee.函数名称,functionContent:ee==null?void 0:ee.输出值})))==null?void 0:x.filter(ee=>(ee==null?void 0:ee.functionContent)!==""),u==null||u.forEach(ee=>{b.push(ee.functionName),go[ee.functionName]=new Function("return "+ee.functionContent)()})}if((l==null?void 0:l.length)===0)return s;for(let X in l){let ee=(k=l==null?void 0:l[X])==null?void 0:k.functionName;const pe=go==null?void 0:go[ee];let ze=(E=l==null?void 0:l[X])==null?void 0:E.methods;if(ze=re.analyzeSplitToContent(ze,","),(M=ze==null?void 0:ze.find(ue=>ue==null?void 0:ue.includes("@Type")))!=null&&M.includes(n)||!(ze!=null&&ze.find(ue=>ue==null?void 0:ue.includes("@Type")))&&n==="Manual"||n==="Auto"||(ze==null?void 0:ze.length)===0){let ue=((J=(Q=(O=ze==null?void 0:ze.find(N=>N==null?void 0:N.includes("@Extent")))==null?void 0:O.replace(":","="))==null?void 0:Q.split("="))==null?void 0:J[1])??[];if(await new Function("return ")(),(b==null?void 0:b.length)>0&&b.find(N=>N===ee)){let N="";try{let G=(ye=l==null?void 0:l[X])==null?void 0:ye.functionRelatedWords,ve=(o==null?void 0:o.length)>0?o==null?void 0:o.map(Be=>{var We;return Be==null?void 0:Be[(We=l==null?void 0:l[X])==null?void 0:We.prop]}):["0"];ve=ve==null?void 0:ve.map(Be=>Be==null?void 0:Be.slice((Be==null?void 0:Be.length)-5,Be==null?void 0:Be.length)),ve=ve==null?void 0:ve.map(Be=>re.isNumber(parseInt(Be))&&parseInt(Be)?parseInt(Be):0);let ke=Math.max(...ve);G=G==null?void 0:G.map(Be=>{if(Be!=null&&Be.includes("'"))return Be==null?void 0:Be.replaceAll("'","");if(Be!=null&&Be.includes("@"))return ke+1;{let We=Object.keys(s);return Be=(s==null?void 0:s[Be])??(s==null?void 0:s[We==null?void 0:We.find(he=>he==null?void 0:he.includes("."+Be))]),Be}}),N=pe(...G)}catch(G){Xa.ElMessage.warning("关联数据出现错误,"+G.message)}let se=(te=l==null?void 0:l[X])==null?void 0:te.prop;s[se]=N}else s=await pe({contents:s,valueString:(U=l==null?void 0:l[X])==null?void 0:U.functionRelatedWords,prop:(q=l==null?void 0:l[X])==null?void 0:q.prop,filter:ze,headers:r,typeString:ue,allContents:i,compNames:p})}}return s},Rf=R.useLoginState(R.pinia),{loginUserInfo:wn}=R.storeToRefs(Rf),$f=R.useMenuState(R.pinia),{activeMenuPath:Ns,currentMenuPath:bo}=R.storeToRefs($f),zc=R.useUnit(R.pinia);let As="$R";const{selectTitle:Oi}=R.storeToRefs(zc),Mc=async(a,l)=>{var p,s,u,y,b,g,d,C,v,H,T,j,D;let r=Ns.value,n="",i=((p=Oi==null?void 0:Oi.value)==null?void 0:p.find(_=>(_==null?void 0:_.condition)==="child"&&!(_!=null&&_.relatedContent)))??void 0;(a==null?void 0:a.length)===0||(r=l?r:(s=a==null?void 0:a[0])==null?void 0:s.object_name,n=(u=a==null?void 0:a[0])==null?void 0:u.father_name);let o=[];if(n!==""){let _=n;(_==null?void 0:_[(_==null?void 0:_.length)-1])==="/"&&(_=_==null?void 0:_.slice(0,(_==null?void 0:_.length)-1));let S=await qr(_,!1);S=(y=S==null?void 0:S[0])==null?void 0:y.compData;let x=(b=S==null?void 0:S.find(E=>(E==null?void 0:E.key)==="header"))==null?void 0:b.contents;x=((g=x==null?void 0:x.find(E=>E==null?void 0:E.isMainKey))==null?void 0:g.prop)??((d=x==null?void 0:x[0])==null?void 0:d.prop);let k=(v=(C=S==null?void 0:S.find(E=>(E==null?void 0:E.key)==="tableContents"))==null?void 0:C.contents)==null?void 0:v.map(E=>({label:E==null?void 0:E[x],value:E==null?void 0:E[x]}));o=(H=n==null?void 0:n.split("/"))==null?void 0:H.map(E=>(E===""?i?(i.isShow=!0,E=i):E={value:E,condition:"child",options:k,parentContent:(n==null?void 0:n[(n==null?void 0:n.length)-1])==="/"?n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1):n,isShow:!0}:E={condition:"parent",value:E.trim(),isShow:!0},E))}if(r!==""){let _=(T=r==null?void 0:r.split("/"))==null?void 0:T.map(S=>(S={condition:"normal",value:S.trim(),isShow:!0},S));((j=_==null?void 0:_[0])==null?void 0:j.value)===((D=o==null?void 0:o[0])==null?void 0:D.value)&&(_=_==null?void 0:_.filter((S,x)=>x!==0)),o=[...o??[],..._??[]]}n===""&&i&&((i==null?void 0:i.parentContent)!==Ns.value&&(i.isShow=!1),(i==null?void 0:i.value)!==""&&o.push(i)),zc.setSelectTitle(o)},Vf=async a=>{var o,p,s,u,y,b,g,d,C;let l=await R.getPageDataApi({platId:parseInt((o=wn==null?void 0:wn.value)==null?void 0:o.plat_id),pageName:"menu"}),r=(p=l==null?void 0:l.data)==null?void 0:p.result,n=(b=(y=(u=(s=a==null?void 0:a.filter(v=>(v==null?void 0:v.comp)==="Table"))==null?void 0:s[0])==null?void 0:u.compData)==null?void 0:y.find(v=>(v==null?void 0:v.key)==="filter"))==null?void 0:b.contents;n=(C=(d=(g=n==null?void 0:n.replace("(",As))==null?void 0:g.split(As))==null?void 0:d[0])==null?void 0:C.replaceAll(":","/");let i=r==null?void 0:r.filter(v=>{var H;return(v==null?void 0:v.object_name)===bo.value+"/"||((H=bo.value)==null?void 0:H.includes(n))&&n+"/"===(v==null?void 0:v.object_name)||n===(v==null?void 0:v.object_name)});return(i==null?void 0:i.length)>0&&(a=a==null?void 0:a.map(v=>{var H;return(v==null?void 0:v.comp)==="Table"&&(v.compData=(H=v==null?void 0:v.compData)==null?void 0:H.map(T=>{var j,D,_;return(T==null?void 0:T.key)==="header"&&(Array.isArray((j=T.contents)==null?void 0:j[0])?T.contents[0]=(_=T.contents[0])==null?void 0:_.map((S,x)=>{var k;return x===0&&(S.isExistChild=!0,((k=bo.value)!=null&&k.includes(n)||n)&&(S.fatherPath=n)),S}):T.contents=(D=T.contents)==null?void 0:D.map((S,x)=>{var k;return x===0&&(S.isExistChild=!0,((k=bo.value)!=null&&k.includes(n)||n)&&(S.fatherPath=n)),S})),T})),v})),a},qr=async(a,l,r={})=>{var p,s,u,y,b,g,d,C,v,H,T,j;let n=await R.getPageDataApi({platId:parseInt((p=wn==null?void 0:wn.value)==null?void 0:p.plat_id),pageName:a}),i=(s=n==null?void 0:n.data)==null?void 0:s.result;if((i==null?void 0:i.length)===0&&(r!=null&&r.originPath)&&(r==null?void 0:r.originPath)!==a){let D=await R.getPageDataApi({platId:parseInt((u=wn==null?void 0:wn.value)==null?void 0:u.plat_id),pageName:r==null?void 0:r.originPath});if(((b=(y=D==null?void 0:D.data)==null?void 0:y.result)==null?void 0:b.length)>0){let _=await Bs((g=D==null?void 0:D.data)==null?void 0:g.result,r,!1);_=_==null?void 0:_.map(async k=>{var O,Q,J,ye,te,U,q,X,ee,pe,ze,ue,N,se,G,ve,ke,Be,We,he,I,Oe,oe,ge,xe,ne,we,Ke,ya,Ge;let E=[],M=(O=Object.keys(k))==null?void 0:O.filter(V=>(V==null?void 0:V.includes("name"))&&V!=="nameContents");for(let V in k)M!=null&&M.find(F=>F===V)&&E.push(k==null?void 0:k[V]);if(E=E.reverse(),(k==null?void 0:k.comp)==="Table"){let V=(ye=(J=(Q=k==null?void 0:k.compData)==null?void 0:Q.find(le=>(le==null?void 0:le.key)==="tableContents"))==null?void 0:J.contents)==null?void 0:ye.map(le=>{let fe={};for(let be in le)be!=="id"&&be!=="create_time"&&be!=="update_time"&&be!=="sort"&&be!=="create_user_id"&&be!=="update_user_id"&&be!=="department_id"&&be!=="relatedId"&&(fe[be]=le==null?void 0:le[be]);return le=Object.values(fe),le}),F=(U=(te=k==null?void 0:k.compData)==null?void 0:te.find(le=>(le==null?void 0:le.key)==="header"))==null?void 0:U.contents;if(Array.isArray(F==null?void 0:F[0])?(F[0].push({label:"排序",prop:"sort"}),F[0].push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(q=F[0])!=null&&q.find(le=>(le==null?void 0:le.prop)==="disabled")&&(F[0]=(X=F[0])==null?void 0:X.filter(le=>(le==null?void 0:le.prop)!=="disabled"),F[0].unshift({label:"",prop:"disabled",sortable:!1}))):(F||(F=[]),F.push({label:"排序",prop:"sort"}),F.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),F!=null&&F.find(le=>(le==null?void 0:le.prop)==="disabled")&&(F=F==null?void 0:F.filter(le=>(le==null?void 0:le.prop)!=="disabled"),F.unshift({label:"",prop:"disabled",sortable:!1}))),F!=null&&F.some(le=>{var fe;return(le==null?void 0:le.calculatorFilter)&&((fe=le==null?void 0:le.calculatorFilter)==null?void 0:fe.includes("Auto"))})&&(V=await Nt(V,F,"Auto"),V=V==null?void 0:V.map(le=>Object.values(le))),k!=null&&k.fatherSyncContents){Array.isArray((ee=k==null?void 0:k.fatherSyncContents)==null?void 0:ee[0])&&(k.fatherSyncContents=(pe=k==null?void 0:k.fatherSyncContents)==null?void 0:pe[0]);let le=(ze=Oi.value)==null?void 0:ze.find(fe=>(fe==null?void 0:fe.condition)==="child");k.fatherSyncContents=(ue=k==null?void 0:k.fatherSyncContents)==null?void 0:ue.map(fe=>{var be,ua,ia,Pe,va,Ea;return((ua=fe==null?void 0:fe.menus)==null?void 0:ua[((be=fe==null?void 0:fe.menus)==null?void 0:be.length)-1])==="/"&&(le==null?void 0:le.parentContent)+"/"!==(fe==null?void 0:fe.menus)?fe.menus=(fe==null?void 0:fe.menus)+(le==null?void 0:le.value):((Pe=fe==null?void 0:fe.menus)==null?void 0:Pe[((ia=fe==null?void 0:fe.menus)==null?void 0:ia.length)-1])==="/"&&(le==null?void 0:le.parentContent)+"/"===(fe==null?void 0:fe.menus)&&(fe.menus=(Ea=fe.menus)==null?void 0:Ea.slice(0,((va=fe.menus)==null?void 0:va.length)-1)),fe})}if(k!=null&&k.sonSyncContents){Array.isArray((N=k==null?void 0:k.sonSyncContents)==null?void 0:N[0])&&(k.sonSyncContents=(se=k==null?void 0:k.sonSyncContents)==null?void 0:se[0]);let le=(G=Oi.value)==null?void 0:G.find(fe=>(fe==null?void 0:fe.condition)==="child");k.sonSyncContents=(ve=k==null?void 0:k.sonSyncContents)==null?void 0:ve.map(fe=>{var be,ua,ia,Pe,va,Ea;return((ua=fe==null?void 0:fe.menus)==null?void 0:ua[((be=fe==null?void 0:fe.menus)==null?void 0:be.length)-1])==="/"&&(le==null?void 0:le.parentContent)+"/"!==(fe==null?void 0:fe.menus)?fe.menus=(fe==null?void 0:fe.menus)+(le==null?void 0:le.value):((Pe=fe==null?void 0:fe.menus)==null?void 0:Pe[((ia=fe==null?void 0:fe.menus)==null?void 0:ia.length)-1])==="/"&&(le==null?void 0:le.parentContent)+"/"===(fe==null?void 0:fe.menus)&&(fe.menus=(Ea=fe.menus)==null?void 0:Ea.slice(0,((va=fe.menus)==null?void 0:va.length)-1)),fe})}if(k!=null&&k.relatedQuotes){Array.isArray((ke=k==null?void 0:k.relatedQuotes)==null?void 0:ke[0])&&(k.relatedQuotes=(Be=k==null?void 0:k.relatedQuotes)==null?void 0:Be[0]);let le=(We=Oi.value)==null?void 0:We.find(fe=>(fe==null?void 0:fe.condition)==="child");k.relatedQuotes=(he=k==null?void 0:k.relatedQuotes)==null?void 0:he.map(fe=>{var be,ua,ia,Pe,va,Ea;return((ua=fe==null?void 0:fe.menus)==null?void 0:ua[((be=fe==null?void 0:fe.menus)==null?void 0:be.length)-1])==="/"&&(le==null?void 0:le.parentContent)+"/"!==(fe==null?void 0:fe.menus)?fe.menus=(fe==null?void 0:fe.menus)+(le==null?void 0:le.value):((Pe=fe==null?void 0:fe.menus)==null?void 0:Pe[((ia=fe==null?void 0:fe.menus)==null?void 0:ia.length)-1])==="/"&&(le==null?void 0:le.parentContent)+"/"===(fe==null?void 0:fe.menus)&&(fe.menus=(Ea=fe.menus)==null?void 0:Ea.slice(0,((va=fe.menus)==null?void 0:va.length)-1)),fe})}k={filter:(Oe=(I=k==null?void 0:k.compData)==null?void 0:I.find(le=>(le==null?void 0:le.key)==="filter"))==null?void 0:Oe.contents,key:k==null?void 0:k.comp,name:E,tableColumns:F,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,calculatorFilters:k==null?void 0:k.calculatorFilters}}else{let V=(xe=(ge=(oe=k==null?void 0:k.compData)==null?void 0:oe.find(le=>(le==null?void 0:le.key)==="formContent"))==null?void 0:ge.contents)==null?void 0:xe.map(le=>(le==null?void 0:le.value)??"");V=[V];let F=(Ke=(we=(ne=k==null?void 0:k.compData)==null?void 0:ne.find(le=>(le==null?void 0:le.key)==="formContent"))==null?void 0:we.contents)==null?void 0:Ke.map(le=>(le.value="",le));k={contents:V,filter:(Ge=(ya=k==null?void 0:k.compData)==null?void 0:ya.find(le=>(le==null?void 0:le.key)==="filter"))==null?void 0:Ge.contents,key:k==null?void 0:k.comp,name:E,value:F,fatherSyncContents:k==null?void 0:k.fatherSyncContents,relatedQuotes:k==null?void 0:k.relatedQuotes,sonSyncContents:k==null?void 0:k.sonSyncContents,calculatorFilters:k==null?void 0:k.calculatorFilters}}return k.isShow=!1,k}),_=await Promise.all(_);let S=[{key:"menuPath",contents:[{path:a,fatherPath:(v=(C=(d=D==null?void 0:D.data)==null?void 0:d.result)==null?void 0:C[0])==null?void 0:v.father_name,isShow:!1}]},{key:a,contents:_}];await R.createPlatFormDataApi({platId:parseInt((H=wn==null?void 0:wn.value)==null?void 0:H.plat_id),changeData:S});let x=await R.getPageDataApi({platId:parseInt((T=wn==null?void 0:wn.value)==null?void 0:T.plat_id),pageName:a});i=(j=x==null?void 0:x.data)==null?void 0:j.result}}l&&await Mc(i,!!(r!=null&&r.originPath));let o=await Bs(i,r);return l&&(o=await Vf(o)),o==null?void 0:o.filter(D=>D)},zs=async a=>{var n,i,o,p,s,u,y,b,g,d,C;let l=(n=a==null?void 0:a.menus)==null?void 0:n.join("/");a!=null&&a.endChildMenu&&(a==null?void 0:a.endChildMenu)!==""&&(l==null?void 0:l[(l==null?void 0:l.length)-1])==="/"&&(l=l+(a==null?void 0:a.endChildMenu)),(l==null?void 0:l[(l==null?void 0:l.length)-1])==="/"&&(l=l+((o=(i=a.value)==null?void 0:i.split(" "))==null?void 0:o[0]));let r=await qr(l,!1);if(r=(p=r==null?void 0:r.filter(v=>{var H,T;return(v==null?void 0:v.name)===((T=a==null?void 0:a.groups)==null?void 0:T[((H=a==null?void 0:a.groups)==null?void 0:H.length)-1])}))==null?void 0:p[0],(u=(s=r==null?void 0:r.compData)==null?void 0:s.find(v=>(v==null?void 0:v.key)==="tableContents"))!=null&&u.contents){r=(b=(y=r==null?void 0:r.compData)==null?void 0:y.find(H=>(H==null?void 0:H.key)==="tableContents"))==null?void 0:b.contents;let v=((g=a==null?void 0:a.words)==null?void 0:g[0])??(a==null?void 0:a.prop);return r=r==null?void 0:r.filter(H=>{var T,j,D,_;return(H==null?void 0:H[a!=null&&a.endChildMenu?v:(T=a==null?void 0:a.words)==null?void 0:T[0]])===(a!=null&&a.relatedWords&&((j=a==null?void 0:a.relatedWords)==null?void 0:j.length)>0?(_=(D=a.value)==null?void 0:D.split(" "))==null?void 0:_[0]:a.value)}),r==null?void 0:r[0]}else{let v=(C=(d=r==null?void 0:r.compData)==null?void 0:d.find(T=>(T==null?void 0:T.key)==="formContent"))==null?void 0:C.contents,H={};return v==null||v.forEach(T=>{H[T.prop]=T.value}),H}},Ff={key:0,class:"extra-button-content"},Pf={class:"table-operator-wrap"},Hf={key:0,class:"extra-button-filter"},jf={key:1,class:"extra-header"},Uf=["onClick"],qf={class:"table-op-text"},Wf={class:"table-op-text"},Gf={class:"drop-menu",style:{width:"120px"}},Kf=["onClick"],Yf={key:0},Jf={key:1},Xf=["onClick"],Zf={class:"table-op-text"},Qf={key:1,class:"extra-button-content tabs-button-wrapper"},e0={class:"table-operator-wrap"},a0={class:"extra-button-filter"},l0={key:0,class:"extra-header"},r0={class:"table-op-action"},n0={class:"table-op-text"},i0={class:"drop-menu",style:{width:"120px"}},o0={key:0},t0={key:1},s0=["onClick"],c0={class:"table-op-text"},u0={__name:"header",props:{pageLayout:{type:String,default:"vertical"},lockingPage:Boolean,level:{type:Number,default:1},compName:{type:String,default:"表格名称",required:!1},filterShow:{type:Boolean,default:!1},isDevMode:Boolean,selectNums:Number,dataNums:Number,filterValues:Array,buttons:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},menuFilter:{type:Array,default:()=>[]}},emits:["buttonClick","filter","getImportData"],setup(a,{emit:l}){const r=l,n=a,i=()=>{const M=(n==null?void 0:n.menuFilter)||[];return Array.isArray(M)&&(M==null?void 0:M.some(O=>{const Q=typeof O=="string"?O:JSON.stringify(O);return Q==null?void 0:Q.includes("HideGroup=Yes")}))},o=e.ref(""),p=e.ref(!1),s=e.ref(!1),u=e.ref([]),y=e.ref([{label:"清空",background:"#999999"},{label:"确认"}]),b=[{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 g(M,O){return M.map(Q=>{const J={...Q};return O.forEach(ye=>{delete J[ye]}),J})}function d(M){if(!M||M.t!=="n")return(M==null?void 0:M.v)??"";const O=M.v;if(M.z){const Q=String(M.z).toLowerCase(),J=["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 U of J)if(Q.includes(U))return C(O);const ye=/[ymdhms]/.test(Q),te=/^[0#\.\,\s]+$/.test(Q.replace(/[\\\/\-:]/g,""));if(ye&&!te)return C(O)}if(O>=1&&O<=73050){if(O<5e3)return O;if(O>=5e3&&O<4e4){const Q=Math.floor((O-25569)/365.25)+1970;return Q>=1970&&Q<=2e3&&M.z&&/[ymd]/.test(String(M.z).toLowerCase())?C(O):O}if(O>=4e4)return C(O)}return O}function C(M){if(typeof M!="number")return M;try{const O=new Date((M-25569)*86400*1e3);if(isNaN(O.getTime()))return M;const Q=O.getFullYear(),J=String(O.getMonth()+1).padStart(2,"0"),ye=String(O.getDate()).padStart(2,"0");return`${Q}-${J}-${ye}`}catch{return M}}const v=M=>{const O=M.raw;if(!O)return;const Q=new FileReader;Q.onload=J=>{try{const ye=new Uint8Array(J.target.result),te=re.readSync(ye,{type:"array"}),U=te.SheetNames[0],q=te.Sheets[U],ee=re.utils.decode_range(q["!ref"]).e.c+1,pe=new Array(ee).fill(""),ze=[];for(const ve in q){if(ve[0]==="!")continue;const{r:ke,c:Be}=re.utils.decode_cell(ve),We=q[ve];let he=d(We);if((he==null||he==="")&&(he=""),ke===0)pe[Be]=he;else{if(!ze[ke-1]){ze[ke-1]={};for(let I=0;I<ee;I++)ze[ke-1][`col_${I}`]=""}ze[ke-1][`col_${Be}`]=he}}for(let ve=0;ve<ee;ve++)pe[ve]===void 0&&(pe[ve]="");const ue=[];for(let ve=0;ve<pe.length;ve++)(!pe[ve]||pe[ve].toString().trim()==="")&&ue.push(ve);let N,se;(ue==null?void 0:ue.length)>0?(Xa.ElMessage.warning("存在键为空的列,已自动过滤,请检查补充"),N=pe.filter((ve,ke)=>!ue.includes(ke)),se=g(ze,ue==null?void 0:ue.map(ve=>`col_${ve}`))):(N=pe,se=ze);const G=ze==null?void 0:ze[0];if(!(G!=null&&G.hasOwnProperty("col_0")))return Xa.ElMessage.error("导入的数据列不匹配,请检查是否错位");r("getImportData",N,se)}catch(ye){throw Xa.ElMessage.error(ye.message),new Error(ye.message)}},Q.readAsArrayBuffer(O)},H=M=>{var Q;const O=(Q=u.value)==null?void 0:Q.reduce((J,ye,te)=>(te===0?J[ye.label]=M:J[ye.label]=ye==null?void 0:ye.value,J),{});r("filter",O,M,!0)},T=(M,O={})=>{r("buttonClick",M,"",O)},j=M=>{var O,Q;u.value=(Q=(O=re.getColumnChild(R.cloneDeep(M)))==null?void 0:O.filter(J=>(J==null?void 0:J.label)!==""&&(J==null?void 0:J.label)!=="操作"))==null?void 0:Q.map(J=>({label:(J==null?void 0:J.label)??"",value:"",name:(J==null?void 0:J.prop)??"",isFormColHidden:J==null?void 0:J.isTableColHidden,width:3,prop:(J==null?void 0:J.prop)??""}))},D=e.ref(!1),_=M=>{var O;if((M==null?void 0:M.buttonName)==="确认"&&(r("filter",M==null?void 0:M.content),D.value=(M==null?void 0:M.content)&&Object.values(M==null?void 0:M.content).length>0),(M==null?void 0:M.buttonName)==="清空"){const Q=R.cloneDeep(M==null?void 0:M.content);for(const J in Q)Q[J]="";u.value=(O=u.value)==null?void 0:O.map(J=>({...J,value:""})),r("filter",Q),D.value=!1}p.value=!1},S=()=>{p.value=!p.value,s.value=!0},x=()=>{var O,Q;u.value=(O=u.value)==null?void 0:O.map(J=>({...J,value:""}));const M=(Q=u.value)==null?void 0:Q.reduce((J,ye)=>(J[ye.label]=ye.value,J),{});r("filter",M)},k=e.ref(null);let E;return E=M=>{var ye;if(!p.value)return;const O=(ye=k==null?void 0:k.value)==null?void 0:ye.$el,Q=O==null?void 0:O.contains(M.target);let J=!1;document.querySelectorAll(".el-popover, .el-popper").forEach(te=>{te.contains(M.target)&&(J=!0)}),!Q&&!J&&(p.value=!1)},e.onMounted(()=>{document.addEventListener("click",E),j(n.columns)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",E)}),e.watch(()=>n.columns,()=>{j(n.columns)},{deep:!0,immediate:!0}),(M,O)=>{var q,X,ee,pe,ze,ue,N,se;const Q=e.resolveComponent("el-icon"),J=e.resolveComponent("svg-icon"),ye=e.resolveComponent("el-input"),te=e.resolveComponent("el-upload"),U=e.resolveComponent("el-button");return a.pageLayout==="vertical"?(e.openBlock(),e.createElementBlock("div",Ff,[i()?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(a.compName?"table-name-wrap":""),style:e.normalizeStyle({background:(n==null?void 0:n.level)>1?"transparent":"var(--ssgroup-background)",paddingLeft:((n==null?void 0:n.level)-1)*12+"px",fontWeight:600-((n==null?void 0:n.level)-1)*100>=400?600-((n==null?void 0:n.level)-1)*100:400,fontSize:17-(n==null?void 0:n.level)>=14?17-(n==null?void 0:n.level)+"px":"14px"})},e.toDisplayString(a.compName),7)),e.createElementVNode("div",Pf,[n!=null&&n.filterShow?(e.openBlock(),e.createElementBlock("div",Hf,[e.createVNode(vd,{trigger:"contextmenu",ref_key:"popOverRef",ref:k,title:"",width:800,placement:"bottom-start",isVisible:p.value,"onUpdate:isVisible":O[4]||(O[4]=G=>p.value=G)},{reference:e.withCtx(()=>{var G,ve,ke,Be;return[e.createVNode(ye,{modelValue:o.value,"onUpdate:modelValue":O[0]||(O[0]=We=>o.value=We),style:{"min-width":"80px"},placeholder:D.value?(ke=(ve=(G=a.filterValues)==null?void 0:G.filter(We=>We))==null?void 0:ve.slice(0,3))==null?void 0:ke.join("/"):"搜索","prefix-icon":e.unref(Xa.search_default),clearable:"",onInput:H,disabled:((Be=u.value)==null?void 0:Be.length)===0},{suffix:e.withCtx(()=>{var We,he;return[!o.value&&((he=(We=a.filterValues)==null?void 0:We.filter(I=>I))!=null&&he.join("/"))?(e.openBlock(),e.createBlock(Q,{key:0,style:{cursor:"pointer"},onClick:x},{default:e.withCtx(()=>[e.createVNode(e.unref(Xa.circle_close_default))]),_:1})):e.createCommentVNode("",!0)]}),append:e.withCtx(()=>[e.createElementVNode("span",{title:"条件查询",onClick:e.withModifiers(S,["stop"])},[e.createVNode(J,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:e.withCtx(()=>[s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"form-content-value",onKeydown:O[1]||(O[1]=e.withModifiers(()=>{},["stop"])),onKeyup:O[2]||(O[2]=e.withModifiers(()=>{},["stop"])),onKeypress:O[3]||(O[3]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(),e.createBlock(ul.ssForm,{rowContents:u.value,buttonValue:y.value,isEnableWrap:!1,isButtonRow:!1,key:y.value,isStartJustify:!1,onOnButtonClick:_},null,8,["rowContents","buttonValue"]))],32)):e.createCommentVNode("",!0)]),_:1},8,["isVisible"])])):e.createCommentVNode("",!0),a.buttons&&((q=a.buttons)==null?void 0:q.length)>0?(e.openBlock(),e.createElementBlock("div",jf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((X=a.buttons)==null?void 0:X.filter(G=>a.isDevMode||(G==null?void 0:G.label)!=="修改模板"),(G,ve)=>{var ke;return e.openBlock(),e.createElementBlock("div",{class:"extra-contents",key:ve},[(G==null?void 0:G.type)==="upload"?(e.openBlock(),e.createBlock(te,{key:0,class:"upload-button-wrap","on-change":v,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1,disabled:!!a.lockingPage},{default:e.withCtx(()=>{var Be;return[e.createElementVNode("div",{class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}]),onClick:We=>T(G==null?void 0:G.label)},[e.createVNode(J,{class:"table-op-icon",name:(Be=b==null?void 0:b.find(We=>(We==null?void 0:We.label)===(G==null?void 0:G.label)))==null?void 0:Be.icon},null,8,["name"]),e.createElementVNode("span",qf,e.toDisplayString(G==null?void 0:G.label),1)],10,Uf)]}),_:2},1032,["disabled"])):e.createCommentVNode("",!0),(G==null?void 0:G.type)==="popover"?(e.openBlock(),e.createBlock(ul._sfc_main,{key:1},{dropTitle:e.withCtx(()=>{var Be;return[e.createElementVNode("div",{class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}])},[e.createVNode(J,{class:"table-op-icon",name:(Be=b==null?void 0:b.find(We=>(We==null?void 0:We.label)===(G==null?void 0:G.label)))==null?void 0:Be.icon},null,8,["name"]),e.createElementVNode("span",Wf,e.toDisplayString(G==null?void 0:G.label),1)],2)]}),dropMenu:e.withCtx(()=>[e.createElementVNode("div",Gf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(G==null?void 0:G.contents,Be=>{var We,he;return e.openBlock(),e.createElementBlock("div",{key:Be==null?void 0:Be.label,class:e.normalizeClass(["table-op-drop-item",{"is-disabled":!!a.lockingPage}]),onClick:I=>!a.lockingPage&&T(Be==null?void 0:Be.label)},[e.createTextVNode(e.toDisplayString(Be==null?void 0:Be.label),1),(We=Be==null?void 0:Be.label)!=null&&We.includes("选中")?(e.openBlock(),e.createElementBlock("span",Yf,"("+e.toDisplayString(a.selectNums)+")",1)):e.createCommentVNode("",!0),(he=Be==null?void 0:Be.label)!=null&&he.includes("全部")?(e.openBlock(),e.createElementBlock("span",Jf,"("+e.toDisplayString(a.dataNums)+")",1)):e.createCommentVNode("",!0)],10,Kf)}),128))])]),_:2},1024)):e.createCommentVNode("",!0),!(G!=null&&G.type)||(G==null?void 0:G.type)==="methodButton"?(e.openBlock(),e.createElementBlock("div",{key:2,id:"themeButton",class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}]),onClick:Be=>!a.lockingPage&&T(G==null?void 0:G.label,G)},[e.createVNode(J,{class:"table-op-icon",name:((ke=b==null?void 0:b.find(Be=>(Be==null?void 0:Be.label)===(G==null?void 0:G.label)))==null?void 0:ke.icon)??"normal"},null,8,["name"]),e.createElementVNode("span",Zf,e.toDisplayString(G==null?void 0:G.label),1)],10,Xf)):e.createCommentVNode("",!0)])}),128))])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createElementBlock("div",Qf,[e.createElementVNode("div",e0,[e.createElementVNode("div",a0,[e.createVNode(ye,{modelValue:o.value,"onUpdate:modelValue":O[5]||(O[5]=G=>o.value=G),style:{"min-width":"80px"},placeholder:D.value?(ze=(pe=(ee=a.filterValues)==null?void 0:ee.filter(G=>G))==null?void 0:pe.slice(0,3))==null?void 0:ze.join("/"):"搜索","prefix-icon":e.unref(Xa.search_default),clearable:"",onInput:H,disabled:((ue=u.value)==null?void 0:ue.length)===0},{suffix:e.withCtx(()=>{var G,ve;return[!o.value&&((ve=(G=a.filterValues)==null?void 0:G.filter(ke=>ke))!=null&&ve.join("/"))?(e.openBlock(),e.createBlock(Q,{key:0,style:{cursor:"pointer"},onClick:x},{default:e.withCtx(()=>[e.createVNode(e.unref(Xa.circle_close_default))]),_:1})):e.createCommentVNode("",!0)]}),append:e.withCtx(()=>[e.createElementVNode("span",{title:"条件查询",onClick:e.withModifiers(S,["stop"])},[e.createVNode(J,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]),a.buttons&&((N=a.buttons)==null?void 0:N.length)>0?(e.openBlock(),e.createElementBlock("div",l0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((se=a.buttons)==null?void 0:se.filter(G=>a.isDevMode||(G==null?void 0:G.label)!=="修改模板"),(G,ve)=>{var ke;return e.openBlock(),e.createElementBlock("div",{class:"extra-contents",key:ve},[(G==null?void 0:G.type)==="upload"?(e.openBlock(),e.createBlock(te,{key:0,class:"upload-button-wrap","on-change":v,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1},{default:e.withCtx(()=>{var Be;return[e.createElementVNode("div",r0,[e.createVNode(J,{class:"table-op-icon",name:(Be=b==null?void 0:b.find(We=>(We==null?void 0:We.label)===(G==null?void 0:G.label)))==null?void 0:Be.icon},null,8,["name"]),e.createElementVNode("span",n0,e.toDisplayString(G==null?void 0:G.label),1)])]}),_:2},1024)):e.createCommentVNode("",!0),(G==null?void 0:G.type)==="popover"?(e.openBlock(),e.createBlock(ul._sfc_main,{key:1},{dropTitle:e.withCtx(()=>[(G==null?void 0:G.type)==="popover"?(e.openBlock(),e.createBlock(U,{key:0,style:{background:"transparent",color:"#000000"}},{icon:e.withCtx(()=>{var Be;return[e.createVNode(J,{class:"table-op-icon",name:(Be=b==null?void 0:b.find(We=>(We==null?void 0:We.label)===(G==null?void 0:G.label)))==null?void 0:Be.icon},null,8,["name"])]}),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(G==null?void 0:G.label),1)]),_:2},1024)):e.createCommentVNode("",!0)]),dropMenu:e.withCtx(()=>[e.createElementVNode("div",i0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(G==null?void 0:G.contents,Be=>(e.openBlock(),e.createBlock(U,{key:Be==null?void 0:Be.label,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:We=>T(Be==null?void 0:Be.label)},{default:e.withCtx(()=>{var We,he;return[e.createTextVNode(e.toDisplayString(Be==null?void 0:Be.label),1),(We=Be==null?void 0:Be.label)!=null&&We.includes("选中")?(e.openBlock(),e.createElementBlock("span",o0,"("+e.toDisplayString(a.selectNums)+")",1)):e.createCommentVNode("",!0),(he=Be==null?void 0:Be.label)!=null&&he.includes("全部")?(e.openBlock(),e.createElementBlock("span",t0,"("+e.toDisplayString(a.dataNums)+")",1)):e.createCommentVNode("",!0)]}),_:2},1032,["onClick"]))),128))])]),_:2},1024)):e.createCommentVNode("",!0),!(G!=null&&G.type)||(G==null?void 0:G.type)==="methodButton"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}]),id:"themeButton",onClick:Be=>!a.lockingPage&&T(G==null?void 0:G.label,G)},[e.createVNode(J,{class:"table-op-icon",name:(ke=b==null?void 0:b.find(Be=>(Be==null?void 0:Be.label)===(G==null?void 0:G.label)))==null?void 0:ke.icon},null,8,["name"]),e.createElementVNode("span",c0,e.toDisplayString(G==null?void 0:G.label),1)],10,s0)):e.createCommentVNode("",!0)])}),128))])):e.createCommentVNode("",!0)])]))}}},d0=fr._export_sfc(u0,[["__scopeId","data-v-c54c7b35"]]),p0={__name:"index",props:{columns:Array,tableData:Array},setup(a){return(l,r)=>{const n=e.resolveComponent("el-table-column"),i=e.resolveComponent("el-table");return e.openBlock(),e.createBlock(i,{data:a.tableData,style:{width:"100%"},stripe:"","max-height":"500"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.columns,o=>{var p;return e.openBlock(),e.createBlock(n,{key:o==null?void 0:o.prop,label:o==null?void 0:o.label,prop:o==null?void 0:o.prop,fixed:(o==null?void 0:o.prop)==="operate"?"right":o==null?void 0:o.fixed,align:(o==null?void 0:o.align)??"left","show-overflow-tooltip":(o==null?void 0:o.showOverflowTooltip)??!0,width:o==null?void 0:o.width,"min-width":(o==null?void 0:o.minWidth)||((o==null?void 0:o.prop)==="operate"?80:(((p=o==null?void 0:o.label)==null?void 0:p.length)*2||4)*27)},{default:e.withCtx(s=>[e.renderSlot(l.$slots,"content",{row:s.row,column:s.column,$index:s.$index,scope:s}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.children,(u,y)=>(e.openBlock(),e.createBlock(ul._sfc_main$2,{key:y,column:u,tableData:a.tableData},e.createSlots({_:2},[e.renderList(l.$slots,(b,g)=>({name:g,fn:e.withCtx(({row:d,slotData:C,item:v,column:H})=>[e.renderSlot(l.$slots,g,e.mergeProps({ref_for:!0},C??d,{item:v??u,slotData:C??d,row:d,column:H,columnProp:u}))])}))]),1032,["column","tableData"]))),128))]),_:2},1032,["label","prop","fixed","align","show-overflow-tooltip","width","min-width"])}),128))]),_:3},8,["data"])}}};class f0 extends Fl.Loader{constructor(l){super(l),this.littleEndian=!0}load(l,r,n,i){const o=this,p=new Fl.FileLoader(o.manager);p.setPath(o.path),p.setResponseType("arraybuffer"),p.setRequestHeader(o.requestHeader),p.setWithCredentials(o.withCredentials),p.load(l,function(s){try{r(o.parse(s))}catch(u){i?i(u):console.error(u),o.manager.itemError(l)}},n,i)}_getDataView(l,r,n,i){switch(n){case"F":return i===8?l.getFloat64(r,this.littleEndian):l.getFloat32(r,this.littleEndian);case"I":return i===1?l.getInt8(r):i===2?l.getInt16(r,this.littleEndian):l.getInt32(r,this.littleEndian);case"U":return i===1?l.getUint8(r):i===2?l.getUint16(r,this.littleEndian):l.getUint32(r,this.littleEndian)}}parse(l){function r(C,v){const H=C.length,T=new Uint8Array(v);let j=0,D=0,_,S,x;do if(_=C[j++],_<32){if(_++,D+_>v)throw new Error("Output buffer is not large enough");if(j+_>H)throw new Error("Invalid compressed data");do T[D++]=C[j++];while(--_)}else{if(S=_>>5,x=D-((_&31)<<8)-1,j>=H)throw new Error("Invalid compressed data");if(S===7&&(S+=C[j++],j>=H))throw new Error("Invalid compressed data");if(x-=C[j++],D+S+2>v)throw new Error("Output buffer is not large enough");if(x<0)throw new Error("Invalid compressed data");if(x>=D)throw new Error("Invalid compressed data");do T[D++]=T[x++];while(--S+2)}while(j<H);return T}function n(C){const v={},H=new Uint8Array(C);let T="",j="",D=0,_=!1;const S=H.length;for(;D<S&&_===!1;){const M=String.fromCharCode(H[D++]);M===`
|
|
2
2
|
`||M==="\r"?(j.trim().toLowerCase().startsWith("data")&&(_=!0),j=""):j+=M,T+=M}const x=T.search(/[\r\n]DATA\s(\S*)\s/i),k=/[\r\n]DATA\s(\S*)\s/i.exec(T.slice(x-1));if(v.data=k[1],v.headerLen=k[0].length+x,v.str=T.slice(0,v.headerLen),v.str=v.str.replace(/#.*/gi,""),v.version=/^VERSION (.*)/im.exec(v.str),v.fields=/^FIELDS (.*)/im.exec(v.str),v.size=/^SIZE (.*)/im.exec(v.str),v.type=/^TYPE (.*)/im.exec(v.str),v.count=/^COUNT (.*)/im.exec(v.str),v.width=/^WIDTH (.*)/im.exec(v.str),v.height=/^HEIGHT (.*)/im.exec(v.str),v.viewpoint=/^VIEWPOINT (.*)/im.exec(v.str),v.points=/^POINTS (.*)/im.exec(v.str),v.version!==null&&(v.version=parseFloat(v.version[1])),v.fields=v.fields!==null?v.fields[1].split(" "):[],v.type!==null&&(v.type=v.type[1].split(" ")),v.width!==null&&(v.width=parseInt(v.width[1])),v.height!==null&&(v.height=parseInt(v.height[1])),v.viewpoint!==null&&(v.viewpoint=v.viewpoint[1]),v.points!==null&&(v.points=parseInt(v.points[1],10)),v.points===null&&(v.points=v.width*v.height),v.size!==null&&(v.size=v.size[1].split(" ").map(function(M){return parseInt(M,10)})),v.count!==null)v.count=v.count[1].split(" ").map(function(M){return parseInt(M,10)});else{v.count=[];for(let M=0,O=v.fields.length;M<O;M++)v.count.push(1)}v.offset={};let E=0;for(let M=0,O=v.fields.length;M<O;M++)v.data==="ascii"?v.offset[v.fields[M]]=M:(v.offset[v.fields[M]]=E,E+=v.size[M]*v.count[M]);return v.rowSize=E,v}const i=n(l),o=[],p=[],s=[],u=[],y=[],b=new Fl.Color;if(i.data==="ascii"){const C=i.offset,T=new TextDecoder().decode(l).slice(i.headerLen).split(`
|
|
3
3
|
`);for(let j=0,D=T.length;j<D;j++){if(T[j]==="")continue;const _=T[j].split(" ");if(C.x!==void 0&&(o.push(parseFloat(_[C.x])),o.push(parseFloat(_[C.y])),o.push(parseFloat(_[C.z]))),C.rgb!==void 0){const S=i.fields.findIndex(J=>J==="rgb"),x=i.type[S],k=parseFloat(_[C.rgb]);let E=k;if(x==="F"){const J=new Float32Array(1);J[0]=k,E=new Int32Array(J.buffer)[0]}const M=(E>>16&255)/255,O=(E>>8&255)/255,Q=(E>>0&255)/255;b.setRGB(M,O,Q,Fl.SRGBColorSpace),s.push(b.r,b.g,b.b)}C.normal_x!==void 0&&(p.push(parseFloat(_[C.normal_x])),p.push(parseFloat(_[C.normal_y])),p.push(parseFloat(_[C.normal_z]))),C.intensity!==void 0&&u.push(parseFloat(_[C.intensity])),C.label!==void 0&&y.push(parseInt(_[C.label]))}}if(i.data==="binary_compressed"){const C=new Uint32Array(l.slice(i.headerLen,i.headerLen+8)),v=C[0],H=C[1],T=r(new Uint8Array(l,i.headerLen+8,v),H),j=new DataView(T.buffer),D=i.offset;for(let _=0;_<i.points;_++){if(D.x!==void 0){const S=i.fields.indexOf("x"),x=i.fields.indexOf("y"),k=i.fields.indexOf("z");o.push(this._getDataView(j,i.points*D.x+i.size[S]*_,i.type[S],i.size[S])),o.push(this._getDataView(j,i.points*D.y+i.size[x]*_,i.type[x],i.size[x])),o.push(this._getDataView(j,i.points*D.z+i.size[k]*_,i.type[k],i.size[k]))}if(D.rgb!==void 0){const S=i.fields.indexOf("rgb"),x=j.getUint8(i.points*D.rgb+i.size[S]*_+2)/255,k=j.getUint8(i.points*D.rgb+i.size[S]*_+1)/255,E=j.getUint8(i.points*D.rgb+i.size[S]*_+0)/255;b.setRGB(x,k,E,Fl.SRGBColorSpace),s.push(b.r,b.g,b.b)}if(D.normal_x!==void 0){const S=i.fields.indexOf("normal_x"),x=i.fields.indexOf("normal_y"),k=i.fields.indexOf("normal_z");p.push(this._getDataView(j,i.points*D.normal_x+i.size[S]*_,i.type[S],i.size[S])),p.push(this._getDataView(j,i.points*D.normal_y+i.size[x]*_,i.type[x],i.size[x])),p.push(this._getDataView(j,i.points*D.normal_z+i.size[k]*_,i.type[k],i.size[k]))}if(D.intensity!==void 0){const S=i.fields.indexOf("intensity");u.push(this._getDataView(j,i.points*D.intensity+i.size[S]*_,i.type[S],i.size[S]))}if(D.label!==void 0){const S=i.fields.indexOf("label");y.push(j.getInt32(i.points*D.label+i.size[S]*_,this.littleEndian))}}}if(i.data==="binary"){const C=new DataView(l,i.headerLen),v=i.offset;for(let H=0,T=0;H<i.points;H++,T+=i.rowSize){if(v.x!==void 0){const j=i.fields.indexOf("x"),D=i.fields.indexOf("y"),_=i.fields.indexOf("z");o.push(this._getDataView(C,T+v.x,i.type[j],i.size[j])),o.push(this._getDataView(C,T+v.y,i.type[D],i.size[D])),o.push(this._getDataView(C,T+v.z,i.type[_],i.size[_]))}if(v.rgb!==void 0){const j=C.getUint8(T+v.rgb+2)/255,D=C.getUint8(T+v.rgb+1)/255,_=C.getUint8(T+v.rgb+0)/255;b.setRGB(j,D,_,Fl.SRGBColorSpace),s.push(b.r,b.g,b.b)}if(v.normal_x!==void 0){const j=i.fields.indexOf("normal_x"),D=i.fields.indexOf("normal_y"),_=i.fields.indexOf("normal_z");p.push(this._getDataView(C,T+v.normal_x,i.type[j],i.size[j])),p.push(this._getDataView(C,T+v.normal_y,i.type[D],i.size[D])),p.push(this._getDataView(C,T+v.normal_z,i.type[_],i.size[_]))}if(v.intensity!==void 0){const j=i.fields.indexOf("intensity");u.push(this._getDataView(C,T+v.intensity,i.type[j],i.size[j]))}v.label!==void 0&&y.push(C.getInt32(T+v.label,this.littleEndian))}}const g=new Fl.BufferGeometry;o.length>0&&g.setAttribute("position",new Fl.Float32BufferAttribute(o,3)),p.length>0&&g.setAttribute("normal",new Fl.Float32BufferAttribute(p,3)),s.length>0&&g.setAttribute("color",new Fl.Float32BufferAttribute(s,3)),u.length>0&&g.setAttribute("intensity",new Fl.Float32BufferAttribute(u,1)),y.length>0&&g.setAttribute("label",new Fl.Int32BufferAttribute(y,1)),g.computeBoundingSphere();const d=new Fl.PointsMaterial({size:.005});return s.length>0&&(d.vertexColors=!0),new Fl.Points(g,d)}}const h0=R.useModelComp(R.pinia),{systemPath:Ms}=R.storeToRefs(h0),ko=e.ref(),Is=new WeakMap;function v0(a,l,r,n,i){const o=async d=>{try{const C=await R.platformDownloadFile({url:d});if(C.status!==200)throw new Error(`下载失败: ${C.status}`);return C.data}catch(C){throw console.error("addModelFromUrl失败:",C),C}},p=d=>new Promise((C,v)=>{const H=new FileReader;H.onload=T=>{try{const j=T.target.result,_=new Yn.MTLLoader().parse(j);_.preload(),C(_)}catch(j){v(j)}},H.onerror=()=>{v(new Error("MTL文件读取失败"))},H.readAsText(d)}),s=async d=>{const C={materials:{},create:function(v){return this.materials[v]?this.materials[v]:(console.warn(`Material '${v}' not found, using default material`),new Fl.MeshPhongMaterial({color:8947848,side:Fl.DoubleSide}))},getAsArray:function(){const v=[];for(const H in this.materials)v.push(this.materials[H]);return v},preload:function(){for(const v in this.materials)this.materials[v].map&&(this.materials[v].map.needsUpdate=!0)}};for(const v of d){const H=await p(v);Object.assign(C.materials,H.materials)}return C.preload(),C},u=async(d,C=[])=>new Promise((v,H)=>{const T=new FileReader;T.onload=async j=>{try{const D=j.target.result;let _=null;C&&C.length>0&&(C.length===1?_=await p(C[0]):_=await s(C));const S=new Yn.OBJLoader;_&&S.setMaterials(_);const x=S.parse(D);_||x.traverse(k=>{k.isMesh&&(k.material=new Fl.MeshPhongMaterial({color:8947848,side:Fl.DoubleSide}))}),v(x)}catch(D){H(D)}},T.onerror=()=>{H(new Error("OBJ文件读取失败"))},T.readAsText(d)}),y=async d=>{var C;try{r.value=!0;const{scene:v}=a();if(!v)throw new Error("Scene not initialized");i();const H=[];for(let T=0;T<d.length;T++){const j=d[T];n.value=`正在加载模型 ${T+1}/${d.length}...`;const D=await o(j.objUrl),_=((C=j.objUrl)==null?void 0:C.split("/").pop())||`model_${T}.obj`,S=new File([D],_,{type:D.type});let x=[];if(j.mtlUrls){const E=Array.isArray(j.mtlUrls)?j.mtlUrls:[j.mtlUrls];for(let M=0;M<E.length;M++){const O=E[M],Q=await o(O),J=(O==null?void 0:O.split("/").pop())||`material_${T}_${M}.mtl`,ye=new File([Q],J,{type:Q.type});x.push(ye)}}const k=await u(S,x);v.add(k),l.value.push(k),H.push(k)}return r.value=!1,H}catch(v){throw console.error("加载模型失败:",v),r.value=!1,v}},b=async(d,C,v=[],H=[])=>{let T;const j=d.toLowerCase();switch(j){case".txt":case".cpt":case".obj":const D=await C.text();if(j===".txt"||j===".cpt"){const I=/^(?!.*\bf\b)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?$/gm,oe=[...D.matchAll(I)].map(ne=>({x:parseFloat(ne[1]),y:parseFloat(ne[2]),z:parseFloat(ne[3])})),ge=new Fl.BufferGeometry,xe=oe.flatMap(ne=>[ne.x,ne.y,ne.z]);if(ge.setAttribute("position",new Fl.Float32BufferAttribute(xe,3)),j===".txt"){const ne=new Fl.PointsMaterial({color:"#5B5C99",size:1,sizeAttenuation:!1});T=new Fl.Points(ge,ne)}else if(j===".cpt"){const ne=new Fl.LineBasicMaterial({color:"#5B5C99",linewidth:100});T=new Fl.Line(ge,ne)}}else if(j===".obj"){const I=new Yn.OBJLoader;if(v&&v.length>0){const Oe=new Yn.MTLLoader;for(const oe of v){const ge=await oe.text(),xe=Oe.parse(ge);xe.preload(),I.setMaterials(xe);break}}T=I.parse(D),(!v||v.length===0)&&T.traverse(Oe=>{Oe.isMesh&&(Oe.material=new Fl.MeshPhongMaterial({color:"#B3B3D4"})),Oe instanceof Fl.Mesh&&(Oe.material.side=Fl.DoubleSide)})}break;case".stl":const _=await C.arrayBuffer(),x=new Yn.STLLoader().parse(_),k=new Fl.MeshPhongMaterial({color:"#B3B3D4",side:Fl.DoubleSide});T=new Fl.Mesh(x,k);break;case".nc":const E=["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"],M={"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)"},O=new Fl.Group,Q=E.map(I=>new Promise((Oe,oe)=>{new Yn.STLLoader().load(Ms.value===""?`/model/${I}`:`${Ms.value}\\${I}`,xe=>{const ne=new Fl.MeshPhongMaterial({color:M[I]||"#B3B3D4",side:Fl.DoubleSide}),we=new Fl.Mesh(xe,ne);Oe(we)},void 0,oe)}));try{(await Promise.all(Q)).forEach(Oe=>O.add(Oe)),T=O}catch(I){throw console.error("加载NC文件对应的STL文件失败:",I),new Error("无法加载.NC文件对应的STL文件")}break;case".pcd":const J=new f0,ye=new Fl.Group;try{const I=await Xa.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/target.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),Oe=new Blob([I.data],{type:"application/octet-stream;charset=UTF-8"}),oe=await Xa.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/final.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),ge=new Blob([oe.data],{type:"application/octet-stream;charset=UTF-8"}),xe=await new Promise((we,Ke)=>{const ya=URL.createObjectURL(Oe);J.load(ya,Ge=>{const V=new Float32Array(Ge.geometry.attributes.position.count*3);for(let F=0;F<Ge.geometry.attributes.position.count;F++)V[F*3]=1,V[F*3+1]=0,V[F*3+2]=0;Ge.geometry.setAttribute("color",new Fl.BufferAttribute(V,3)),Ge.material.vertexColors=!0,Ge.scale.set(.3,.3,.3),URL.revokeObjectURL(ya),we(Ge)},void 0,Ke)}),ne=await new Promise((we,Ke)=>{const ya=URL.createObjectURL(ge);J.load(ya,Ge=>{const V=new Float32Array(Ge.geometry.attributes.position.count*3);for(let F=0;F<Ge.geometry.attributes.position.count;F++)V[F*3]=0,V[F*3+1]=1,V[F*3+2]=0;Ge.geometry.setAttribute("color",new Fl.BufferAttribute(V,3)),Ge.material.vertexColors=!0,Ge.scale.set(.3,.3,.3),URL.revokeObjectURL(ya),we(Ge)},void 0,Ke)});ye.add(xe),ye.add(ne),T=ye}catch(I){throw console.error("PCD文件加载失败:",I),new Error("无法加载PCD文件")}break;case".urdf":const te=URL.createObjectURL(C),U=new dd.URDFLoader,q="http://139.196.154.85:20026/chfs/shared/机器人/urdf/SmallBender_R-2000iC-165F/meshes",X={maxConcurrentLoads:4,enableCache:!0,enableLOD:!0,simplifyGeometry:!0,shareMaterials:!0,enableInstancing:!0},ee=new WeakMap,pe=new WeakMap,ze=new WeakMap,ue=async I=>{if(ee.has(I))return console.log(`从缓存加载: ${I}`),ee.get(I);try{const Oe=await Xa.axios.get(`${q}/${I}`,{responseType:"blob",headers:{"Content-Type":"application/json"},timeout:6e5}),oe=new Blob([Oe.data],{type:"application/octet-stream;charset=UTF-8"});return X.enableCache&&ee.set(I,oe),oe}catch(Oe){throw console.error(`加载文件失败: ${I}`,Oe),new Error(`无法加载文件: ${I}`)}},N=(I="default")=>{if(pe.has(I))return pe.get(I);const Oe=new Fl.MeshPhongMaterial({color:12303291,shininess:30,transparent:!1,alphaTest:.1,side:Fl.FrontSide});return pe.set(I,Oe),Oe},se=I=>{try{I.isBufferGeometry&&I.mergeVertices&&I.mergeVertices(),I.computeVertexNormals&&I.computeVertexNormals(),I.computeBoundingSphere&&I.computeBoundingSphere(),I.deleteAttribute&&I.deleteAttribute("uv2")}catch(Oe){console.warn("几何体优化失败,使用原始几何体:",Oe)}return I},G=async(I,Oe,oe)=>{const ge=`stl_${Oe}`;if(ze.has(ge)){const Ke=ze.get(ge);return new Fl.Mesh(Ke,N())}const xe=await I.arrayBuffer();let we=new Yn.STLLoader(oe).parse(xe);return we=se(we),ze.set(ge,we),new Fl.Mesh(we,N())},ve=async(I,Oe,oe)=>{const ge=`obj_${Oe}`;if(ee.has(ge))return ee.get(ge).clone();const xe=await I.text(),ne=new Yn.OBJLoader(oe),we=Oe.replace(".obj",".mtl");try{const Ge=await(await ue(we)).text(),F=new Yn.MTLLoader(oe).parse(Ge);F.preload(),ne.setMaterials(F)}catch{console.warn(`MTL文件加载失败,使用默认材质: ${we}`)}const Ke=ne.parse(xe);return Ke.traverse(ya=>{ya.isMesh&&(ya.geometry=se(ya.geometry),ya.castShadow=!0,ya.receiveShadow=!0,ya.renderOrder=1)}),ee.set(ge,Ke),Ke},ke=(I,Oe)=>{const oe=new Fl.LOD;if(oe.addLevel(I,0),I.geometry){const ge=I.geometry.clone(),xe=new Fl.Mesh(ge,I.material);oe.addLevel(xe,50)}return oe};let Be=0,We=0;const he=[];U.loadMeshCb=async(I,Oe,oe,ge,xe)=>{const ne=I.split("/").pop(),we=oe||(()=>{});Be++;const Ke=new Promise(async(ya,Ge)=>{try{const V=await ue(ne);if(!V||V.size===0)throw new Error(`文件为空: ${ne}`);const F=ne.split(".").pop().toLowerCase();let le;switch(F){case"stl":le=await G(V,ne,Oe);break;case"obj":le=await ve(V,ne,Oe);break;default:throw new Error(`不支持的文件格式: ${F}`)}X.enableLOD&&le.isMesh&&(le=ke(le,ne)),we(le),We++,ge&&ge({loaded:We,total:Be,progress:We/Be}),ya(le)}catch(V){console.error(`mesh文件加载失败: ${ne}`,V);const F=new Fl.Group;we(F),ya(F);const le=new Fl.BoxGeometry(.1,.1,.1),fe=new Fl.MeshStandardMaterial({color:16711680,wireframe:!0});return new Fl.Mesh(le,fe)}});he.push(Ke)};try{if(!te){ko.value=void 0;break}if(T=await U.loadAsync(te),console.log(`URDF文件加载完成,等待${Be}个mesh文件加载...`),he.length>0)try{await Promise.allSettled(he),console.log(`所有mesh文件处理完成,成功加载: ${We}/${Be}`)}catch(oe){console.warn("部分mesh文件加载失败,但继续显示模型",oe)}T.traverse(oe=>{oe.isMesh&&(oe.castShadow=!0,oe.receiveShadow=!0,oe.renderOrder=1,oe.material&&(oe.material.needsUpdate=!0))}),console.time("计算包围盒");const I=new Fl.Box3;I.expandByObject(T);const Oe=`urdf_${Date.now()}`;T.userData.boundingBox=I.clone(),T.userData.modelId=Oe,Is.set(Oe,{box:I.clone(),center:I.getCenter(new Fl.Vector3),size:I.getSize(new Fl.Vector3),maxSize:Math.max(...I.getSize(new Fl.Vector3).toArray())}),ko.value=T,console.log("URDF模型加载完成并优化")}catch(I){console.error("URDF加载失败:",I),ko.value=void 0}finally{te&&URL.revokeObjectURL(te)}break;default:throw new Error(`不支持的文件格式: ${d}`)}return T};return{addModelsFromUrls:y,loadModelByDefaultPath:async d=>{console.log(d);try{r.value=!0,n.value="正在加载模型...";const{scene:C}=a();if(!C)throw new Error("Scene not initialized");i(),await new Promise(H=>setTimeout(H,100));const v=[];for(let H=0;H<d.length;H++){const T=d[H],j=await b(T.suffix,T.blob,T.mtlBlobs||[],T.meshFiles||[]);j&&(C.add(j),l.value.push(j),v.push(j))}return r.value=!1,n.value="",v}catch(C){throw console.error("加载模型失败:",C),r.value=!1,n.value="",C}},urdfModel:ko,modelBoundingBoxes:Is}}window._iconfont_svg_string_4827314='<svg><symbol id="icon-chart-new" viewBox="0 0 1024 1024"><path d="M960 768V448h-64v320h-64v64H192v-64h-64V256h64v-64h256v-64H192V64H0v192h64v512H0v192h192v-64h640v64h192V768h-64zM64 128h64v64H64v-64z m0 768v-64h64v64H64z m896 0h-64v-64h64v64zM256 768V256h128v512H256z m192-320h128v320H448V448z m192 192h128v128H640V640zM512 288c0-17.664 14.336-32 32-32h160V96c0-17.664 14.336-32 32-32s32 14.336 32 32v160h160c17.664 0 32 14.336 32 32s-14.336 32-32 32H768v160c0 17.664-14.336 32-32 32s-32-14.336-32-32V320H544c-17.664 0-32-14.336-32-32z" ></path></symbol><symbol id="icon-ai13" viewBox="0 0 1024 1024"><path d="M863.719038 159.366637l-705.295378 0c-48.443315 0-88.129176 39.690978-88.129176 88.161922l0 528.943904c0 48.474015 39.685861 88.161922 88.129176 88.161922l705.295378 0c48.443315 0 88.134293-39.687908 88.134293-88.161922l0-528.943904C951.853331 199.056592 912.162354 159.366637 863.719038 159.366637M643.272277 776.472464l-484.84964 0 0-176.324868 484.84964 0L643.272277 776.472464zM643.272277 556.053332l-484.84964 0 0-176.296215 484.84964 0L643.272277 556.053332zM863.719038 776.472464 687.394171 776.472464l0-396.659065 176.324868 0L863.719038 776.472464z" ></path></symbol><symbol id="icon-qiehuanwenjianjia" viewBox="0 0 1024 1024"><path d="M409.6 102.4L512 204.8h307.2a102.4 102.4 0 0 1 102.144 94.72l0.256 7.68v512a102.4 102.4 0 0 1-94.72 102.144l-7.68 0.256H512v-76.8h281.6a51.2 51.2 0 0 0 50.842-45.21l0.358-5.99V332.8a51.2 51.2 0 0 0-45.21-50.842l-5.99-0.358H486.4L384 179.2H230.4a51.2 51.2 0 0 0-50.842 45.21l-0.358 5.99v179.2h-76.8V204.8a102.4 102.4 0 0 1 94.72-102.144l7.68-0.256h204.8z m217.6 588.8a38.4 38.4 0 1 1 0 76.8H358.4v99.584a25.6 25.6 0 0 1-41.83 19.814L132.3 736.614a25.6 25.6 0 0 1 16.231-45.414zM447.59 389.99l3.84 2.612L635.7 543.386a25.6 25.6 0 0 1-11.623 45.004l-4.608 0.41H140.8a38.4 38.4 0 0 1-5.222-76.442L140.8 512h268.8v-99.584a25.6 25.6 0 0 1 37.99-22.426z" ></path></symbol><symbol id="icon-baogao" viewBox="0 0 1104 1024"><path d="M265.401 1024a174.066 174.066 0 0 1-173.56-173.56V315.3a4.194 4.194 0 0 0-4.338-4.34H41.22A39.63 39.63 0 0 1 0 273.356V123.66C0 55.684 59.3 0 132.339 0h648.678a132.411 132.411 0 0 1 132.339 132.339v553.22a4.194 4.194 0 0 0 4.339 4.34h146.079a40.714 40.714 0 0 1 41.22 41.22v159.819a132.411 132.411 0 0 1-132.339 132.339l-707.254 0.723z m653.017-260.339A4.194 4.194 0 0 0 914.08 768v123.661a59.3 59.3 0 0 0 118.599 0V768a4.194 4.194 0 0 0-4.339-4.339z m-749.198-452.7a4.194 4.194 0 0 0-4.339 4.338v534.419a100.737 100.737 0 0 0 100.52 100.52h582.147a3.977 3.977 0 0 0 3.616-2.17 4.628 4.628 0 0 0 0-4.34 132.7 132.7 0 0 1-10.848-52.79V133.062a59.3 59.3 0 0 0-118.598 0v140.294a39.195 39.195 0 0 1-41.22 37.604zM132.34 73.762c-32.542 0-59.3 22.418-59.3 49.898v109.92a4.194 4.194 0 0 0 4.34 4.34h566.237a4.194 4.194 0 0 0 4.339-4.34V133.063a132.7 132.7 0 0 1 10.847-52.79c0.723-1.447 0-2.893 0-4.34a3.977 3.977 0 0 0-3.616-2.17z m169.22 692.068a36.881 36.881 0 0 1 0-73.763h402.08a36.881 36.881 0 0 1 0 73.763z m0-196.701a36.881 36.881 0 1 1 0-73.763h402.08a36.881 36.881 0 1 1 0 73.763z" ></path></symbol><symbol id="icon-xinghao" viewBox="0 0 1024 1024"><path d="M580.583 425.004c52.988-24.574 104.44-49.276 152.82-73.594 48.381-24.703 87.034-42.877 115.704-54.268 28.67-11.136 51.58-17.023 69.115-17.023a104.952 104.952 0 0 1 74.235 28.798 93.177 93.177 0 0 1 31.485 71.802c0 16.383-5.12 33.534-15.358 51.069-10.24 17.534-21.247 28.926-32.638 33.79-105.976 41.468-222.832 72.058-350.054 90.872 23.038 20.99 51.452 49.405 85.113 84.474 33.79 35.582 51.453 54.268 52.86 56.7 12.416 17.023 29.566 38.397 51.837 63.74 22.142 25.597 37.501 45.18 46.076 59.643a99.833 99.833 0 0 1 13.055 52.092 93.817 93.817 0 0 1-29.693 68.731 103.16 103.16 0 0 1-76.41 29.694c-31.23 0-66.172-24.318-105.337-72.443-39.037-48.124-89.465-135.158-151.029-260.46A12540.003 12540.003 0 0 1 386.677 862.22a387.3 387.3 0 0 1-61.563 81.53 96.889 96.889 0 0 1-67.835 27.774 101.625 101.625 0 0 1-76.026-31.358c-19.711-20.862-30.078-43.517-30.078-66.939 0-22.142 4.095-38.909 12.287-50.172 75.514-102.393 154.356-191.602 236.782-266.605a2401.103 2401.103 0 0 1-184.818-35.709 1163.818 1163.818 0 0 1-172.531-57.724c-9.984-5.12-19.583-16.382-29.054-33.917A104.696 104.696 0 0 1 0.018 380.72a93.433 93.433 0 0 1 31.358-71.675 102.648 102.648 0 0 1 72.186-28.926c19.839 0 44.285 5.887 73.979 17.79 29.438 11.904 67.067 29.054 112.632 51.453 45.564 22.526 97.656 47.74 155.892 75.514a1833.849 1833.849 0 0 1-26.494-177.267 1574.54 1574.54 0 0 1-10.367-137.078c0-30.205 9.599-56.06 28.798-78.074A95.481 95.481 0 0 1 512.62 0.076c29.822 0 54.012 10.75 73.339 32.51 19.454 21.886 29.054 50.683 29.054 86.649 0 9.855-1.664 29.182-4.48 58.491-2.56 29.182-7.04 64.252-12.16 105.465-5.375 41.34-11.39 88.697-17.79 141.813z" fill="#FF4444" ></path></symbol><symbol id="icon-mima" viewBox="0 0 1024 1024"><path d="M776.86 376.04c-22.05 0-40.16-16.24-43.91-37.98-18.08-104.98-109.79-185.1-219.84-185.1s-201.76 80.13-219.84 185.1c-3.74 21.73-21.85 37.98-43.91 37.98-27.05 0-48.82-24.04-44.44-50.73 24.3-148.16 153.25-261.58 308.19-261.58S796.99 177.15 821.3 325.31c4.38 26.69-17.39 50.73-44.44 50.73zM850.18 418.32H180.33c-37.98 0-68.76 30.79-68.76 68.76v403.71c0 37.98 30.79 68.76 68.76 68.76h665.36c37.97 0 68.75-30.77 68.77-68.74l0.19-408c0.02-35.61-28.85-64.49-64.47-64.49zM557.73 762.56c0 24.64-19.97 44.62-44.62 44.62-24.64 0-44.62-19.97-44.62-44.62v-89.23c0-24.64 19.97-44.62 44.62-44.62 24.64 0 44.62 19.98 44.62 44.62v89.23z" ></path></symbol><symbol id="icon-zhanghao" viewBox="0 0 1024 1024"><path d="M407.61 578.87c-174.46 0-304.73 113.04-304.73 277.2v17.69c0 85.81 139.6 85.81 316.37 85.81h187.73c169.75 0 316.37 0 316.37-85.81v-17.69c0-164.16-130.28-277.2-304.73-277.2H407.61zM503.71 535.67c138.19 0 250.63-105.81 250.63-235.94 0-130.06-112.44-235.86-250.63-235.86-138.11 0-250.56 105.81-250.56 235.86 0 130.13 112.45 235.94 250.56 235.94z" ></path></symbol><symbol id="icon-xiangqingye-37" viewBox="0 0 1024 1024"><path d="M368.64 34.133333H112.64C68.266667 34.133333 34.133333 68.266667 34.133333 112.64v256c0 23.893333 17.066667 40.96 40.96 40.96s40.96-17.066667 40.96-40.96V116.053333h252.586667c23.893333 0 40.96-17.066667 40.96-40.96S389.12 34.133333 368.64 34.133333zM911.36 34.133333h-256c-23.893333 0-40.96 17.066667-40.96 40.96s17.066667 40.96 40.96 40.96h252.586667v252.586667c0 23.893333 17.066667 40.96 40.96 40.96s40.96-17.066667 40.96-40.96V112.64C989.866667 68.266667 955.733333 34.133333 911.36 34.133333zM368.64 907.946667H116.053333v-252.586667c0-23.893333-17.066667-40.96-40.96-40.96S34.133333 634.88 34.133333 655.36v256C34.133333 955.733333 68.266667 989.866667 112.64 989.866667h256c23.893333 0 40.96-17.066667 40.96-40.96s-20.48-40.96-40.96-40.96zM948.906667 617.813333c-23.893333 0-40.96 17.066667-40.96 40.96v252.586667h-252.586667c-23.893333 0-40.96 17.066667-40.96 40.96s17.066667 40.96 40.96 40.96h256c40.96 0 78.506667-34.133333 78.506667-78.506667v-256c0-23.893333-17.066667-40.96-40.96-40.96z" fill="#3366CC" ></path><path d="M416.426667 488.106667L307.2 344.746667c-13.653333-17.066667-34.133333-20.48-51.2-6.826667-17.066667 13.653333-20.48 34.133333-6.826667 51.2L337.92 512l-95.573333 126.293333c-13.653333 17.066667-10.24 37.546667 6.826666 51.2 6.826667 3.413333 13.653333 6.826667 20.48 6.826667 10.24 0 23.893333-6.826667 30.72-13.653333l112.64-146.773334c10.24-17.066667 10.24-34.133333 3.413334-47.786666z" fill="#F4A914" ></path><path d="M597.333333 488.106667L488.106667 341.333333c-13.653333-17.066667-34.133333-20.48-51.2-6.826666-17.066667 13.653333-20.48 34.133333-6.826667 51.2l92.16 122.88-95.573333 126.293333c-13.653333 17.066667-10.24 37.546667 6.826666 51.2 6.826667 3.413333 13.653333 6.826667 20.48 6.826667 10.24 0 23.893333-6.826667 30.72-13.653334l112.64-146.773333c10.24-13.653333 10.24-30.72 0-44.373333z" fill="#F4A914" ></path><path d="M778.24 488.106667L669.013333 341.333333c-13.653333-17.066667-34.133333-20.48-51.2-6.826666-17.066667 13.653333-20.48 34.133333-6.826666 51.2l92.16 122.88-95.573334 126.293333c-6.826667 6.826667-6.826667 17.066667-6.826666 27.306667 0 10.24 6.826667 17.066667 13.653333 23.893333 6.826667 3.413333 13.653333 6.826667 23.893333 6.826667 10.24 0 23.893333-6.826667 30.72-13.653334l112.64-146.773333c6.826667-13.653333 6.826667-30.72-3.413333-44.373333z" fill="#F4A914" ></path></symbol><symbol id="icon-gongzhuangmoju" viewBox="0 0 1024 1024"><path d="M192 170.666667A106.965333 106.965333 0 0 0 85.333333 277.333333V426.666667h256l42.666667 85.333333h256l42.666667-85.333333h256V277.333333A106.965333 106.965333 0 0 0 832 170.666667z" fill="#3B709C" ></path><path d="M384 512l-42.666667-85.333333h341.333334l-42.666667 85.333333z m-298.666667-85.333333V256a85.333333 85.333333 0 0 1 85.333334-85.333333h682.666666a85.333333 85.333333 0 0 1 85.333334 85.333333v170.666667zM853.333333 853.333333H170.666667a85.333333 85.333333 0 0 1-85.333334-85.333333v-256h213.333334l42.666666 85.333333h341.333334l42.666666-85.333333h213.333334v256a85.333333 85.333333 0 0 1-85.333334 85.333333z" fill="#2C6798" ></path></symbol><symbol id="icon-jiagongguochengxinxi" viewBox="0 0 1024 1024"><path d="M345.216 664.192a315.84 315.84 0 0 1 93.12-224.64 315.84 315.84 0 0 1 100.992-68.16 315.392 315.392 0 0 1 123.648-24.96 315.392 315.392 0 0 1 158.72 42.368v-264a24.768 24.768 0 0 0-24.768-24.768H559.296a32.64 32.64 0 0 1 0.704 6.976v133.184c0 19.2-15.616 34.816-34.816 34.816H395.072a34.816 34.816 0 0 1-34.752-34.816v-133.12a32.64 32.64 0 0 1 0.64-6.976H123.456a24.768 24.768 0 0 0-24.768 24.832v676.544c0 13.76 11.072 24.832 24.768 24.832h266.24a316.224 316.224 0 0 1-44.416-162.112zM662.976 406.4a257.792 257.792 0 1 0 0 515.52 257.792 257.792 0 0 0 0-515.52z m112.256 293.376a104.704 104.704 0 0 1-107.328 25.216l-68.48 68.48a46.528 46.528 0 0 1-65.728-65.664l68.48-68.48a104.512 104.512 0 0 1 140.8-129.28l-67.072 67.072 10.88 42.88 43.328 11.328 67.072-67.136c16.64 38.336 9.216 84.416-21.952 115.584z m-220.16 51.456a20.928 20.928 0 1 0 41.856 0 20.928 20.928 0 0 0-41.856 0z" ></path></symbol><symbol id="icon-pingtaiguanli" viewBox="0 0 1024 1024"><path d="M1024 806.4V25.6c0-12.8-12.8-25.6-25.6-25.6H25.6C12.8 0 0 12.8 0 25.6v780.8h435.2v166.4H236.8v51.2h556.8v-51.2H588.8v-166.4H1024zM320 281.6c-12.8-12.8-19.2-25.6-32-32l44.8-76.8c44.8 25.6 96 12.8 121.6-32 12.8-12.8 12.8-32 12.8-44.8h89.6c0 51.2 38.4 83.2 89.6 83.2 12.8 0 32-6.4 44.8-12.8l44.8 76.8c-44.8 25.6-57.6 76.8-32 115.2 12.8 12.8 19.2 25.6 32 32l-44.8 76.8c-44.8-19.2-96-6.4-121.6 38.4-12.8 12.8-12.8 25.6-12.8 44.8H467.2c0-44.8-38.4-83.2-89.6-83.2-12.8 0-32 6.4-44.8 12.8l-44.8-83.2c38.4-25.6 51.2-76.8 32-115.2zM102.4 704v-51.2h825.6v51.2H102.4zM512 416c51.2 0 96-38.4 96-89.6S569.6 236.8 512 236.8c-51.2 0-96 38.4-96 89.6 0 51.2 44.8 89.6 96 89.6z" ></path></symbol><symbol id="icon-zhucaidanguanli" viewBox="0 0 1169 1024"><path d="M787.333831 588.946093a75.189984 75.189984 0 0 0-75.093984 75.092984 75.189984 75.189984 0 0 0 75.093984 75.093984 75.165984 75.165984 0 0 0 75.067984-75.093984 75.165984 75.165984 0 0 0-75.067984-75.092984m0 222.841953a147.919968 147.919968 0 0 1-147.748968-147.748969c0-81.455982 66.291986-147.747968 147.748968-147.747968 81.431983 0 147.747968 66.291986 147.747968 147.747968 0 81.480982-66.315986 147.748968-147.747968 147.748969m89.452981 102.106978c0.342 0.244 1.317 0.585 2.315999 0.585h0.122l71.484985-39.496992c-1.706-4.022999-9.605998-23.478995-9.605998-43.739991a113.858976 113.858976 0 0 1 107.739977-113.613975c0.853-4.729999 5.557999-31.524993 5.557998-51.639989s-4.704999-46.88399-5.558998-51.637989a113.858976 113.858976 0 0 1-107.738977-113.565976c0-20.357996 7.923998-39.813991 9.605998-43.81299l-70.313985-39.057992-0.293-0.025a5.339999 5.339999 0 0 0-2.706 0.732 196.753958 196.753958 0 0 1-26.014994 21.819995c-21.698995 15.238997-42.153991 22.967995-60.951987 22.967995-18.919996 0-39.594991-7.874998-61.390987-23.405995a194.705958 194.705958 0 0 1-26.160994-22.283995 5.777999 5.777999 0 0 0-2.729999-0.707h-0.245l-72.824985 40.032992c1.706 4.046999 9.580998 23.479995 9.580998 43.73999A113.858976 113.858976 0 0 1 528.895886 614.350088c-0.854 4.729999-5.509999 31.524993-5.509998 51.638989s4.655999 46.90899 5.533998 51.662989a113.858976 113.858976 0 0 1 107.763977 113.589975c0 20.334996-7.972998 39.863991-9.679998 43.788991l68.973985 38.545992h0.146c1.024 0 1.95-0.365 2.317-0.585a200.849957 200.849957 0 0 1 26.428994-23.161995c22.088995-16.188997 43.079991-24.429995 62.414987-24.429995 19.552996 0 40.715991 8.387998 62.950986 24.917995 14.920997 11.068998 25.258995 22.185995 26.550995 23.575995m22.673995 108.397976c-13.774997-0.025-27.135994-5.704999-35.765993-15.213996-11.775997-12.896997-49.005989-46.44599-79.530982-46.44599-30.280993 0-68.119985 33.767993-78.993984 45.54399-8.606998 9.386998-21.869995 14.969997-35.498992 14.969997-6.484999 0-12.604997-1.243-18.187996-3.706l-0.975-0.414-92.69698-51.833988-0.926-0.683a44.46999 44.46999 0 0 1-14.920996-53.735989c0.049-0.146 8.532998-19.699996 8.532998-37.594992a98.376979 98.376979 0 0 0-98.254979-98.254978h-3.900999c-15.505997 0-28.159994-13.799997-32.182993-35.108993-0.341-1.706-7.923998-42.178991-7.923999-74.044984 0-31.913993 7.557998-72.361984 7.899999-74.117984 4.119999-21.576995 16.992996-35.449992 32.816993-35.083993h3.266999a98.400979 98.400979 0 0 0 98.279979-98.303978c0-17.846996-8.484998-37.399992-8.558998-37.619992a44.34899 44.34899 0 0 1 15.067996-53.661989l0.95-0.658 97.840979-53.759988 1.024-0.415c5.485999-2.364999 11.507998-3.534999 17.895996-3.534999 13.604997 0 26.891994 5.436999 35.595992 14.628997 11.580998 12.116997 48.17699 43.641991 77.774984 43.64199 29.354994 0 65.755986-30.914993 77.287983-42.812991 8.654998-8.996998 21.844995-14.335997 35.302992-14.335997 6.509999 0 12.653997 1.219 18.285997 3.657l0.974999 0.414 94.47698 52.516988 0.95 0.658c16.895996 11.751997 23.332995 34.889993 14.945997 53.735989-0.049 0.146-8.532998 19.699996-8.532999 37.545992a98.400979 98.400979 0 0 0 98.254979 98.279978h3.291c15.774997-0.341 28.719994 13.506997 32.816993 35.107993 0.317 1.707 7.899998 42.203991 7.899998 74.069984 0 31.889993-7.582998 72.410984-7.948998 74.117984-4.046999 21.551995-16.992996 35.424992-32.767993 35.059993h-3.291a98.400979 98.400979 0 0 0-98.254979 98.278978c0 17.846996 8.483998 37.449992 8.556999 37.619992a44.42199 44.42199 0 0 1-15.017997 53.710989l-0.927 0.683-96.133979 53.100988-0.975 0.415a44.88499 44.88499 0 0 1-17.846996 3.583999z m222.061952-705.339848a48.76199 48.76199 0 1 1-97.523979 0V121.977194c0-13.457997-10.873998-24.453995-24.307995-24.453995h-877.859811c-13.262997 0-24.306995 10.970998-24.306995 24.453995v584.995874c0 13.457997 10.873998 24.453995 24.307995 24.453995h219.500953a48.76199 48.76199 0 1 1 0 97.523979H48.907989A48.76199 48.76199 0 0 1 0 780.190052V48.76221C0 21.822215 21.893995 0.00022 48.907989 0.00022h1023.706781a48.76199 48.76199 0 0 1 48.907989 48.76199v268.189942zM219.427953 975.23701c0-26.940994 21.991995-48.76199 48.981989-48.761989h194.607959a48.76199 48.76199 0 1 1 0 97.523979H268.433942a48.76199 48.76199 0 0 1-49.005989-48.76199z" ></path></symbol><symbol id="icon-caidanguanli" viewBox="0 0 1024 1024"><path d="M414.2 78H158.6c-41.5 0-75.3 33.8-75.3 75.3v255.5c0 41.5 33.8 75.3 75.3 75.3h255.5c41.5 0 75.3-33.8 75.3-75.3V153.3c0-41.5-33.7-75.3-75.2-75.3z m5.2 330.8c0 2.9-2.4 5.3-5.3 5.3H158.6c-2.9 0-5.3-2.4-5.3-5.3V153.3c0-2.9 2.4-5.3 5.3-5.3h255.5c2.9 0 5.3 2.4 5.3 5.3v255.5zM414.2 544.8H158.6c-41.5 0-75.3 33.8-75.3 75.3v255.5c0 41.5 33.8 75.3 75.3 75.3h255.5c41.5 0 75.3-33.8 75.3-75.3V620.1c0-41.5-33.7-75.3-75.2-75.3z m5.2 330.8c0 2.9-2.4 5.3-5.3 5.3H158.6c-2.9 0-5.3-2.4-5.3-5.3V620.1c0-2.9 2.4-5.3 5.3-5.3h255.5c2.9 0 5.3 2.4 5.3 5.3v255.5zM908.8 119.3H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 343.8H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 568.3H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 792.8H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35z" ></path></symbol><symbol id="icon-jueseguanli" viewBox="0 0 1024 1024"><path d="M874.9 577.3c-26.1-27.2-56.8-48.9-90.3-64.1 5.4-4.6 10.6-9.6 15.5-14.8 32.3-34.7 50.1-79.8 50.1-127.2 0-102.9-83.7-186.7-186.7-186.7-11 0-21.8 0.9-32.5 2.8-7.1-9.6-14.9-18.7-23.4-27.2-44.6-44.6-103.9-69.2-167-69.2s-122.4 24.6-167 69.2-69.2 103.9-69.2 167 24.6 122.4 69.2 167c10.8 10.8 22.4 20.4 34.8 28.7-4.9 1.8-9.7 3.8-14.5 5.8-44.9 19-85.2 46.2-119.9 80.8-34.6 34.6-61.8 75-80.8 119.9-19.7 46.5-29.6 95.9-29.6 146.8 0 17.7 1.2 35.5 3.7 52.9l69.3-9.7c-2-14.2-3-28.7-3-43.1 0-169.4 137.8-307.1 307.1-307.1s307.1 137.8 307.1 307.1c0 14.4-1 28.9-3 43.1l69.3 9.7c2.4-17.4 3.7-35.2 3.7-52.9 0-50.9-10-100.3-29.6-146.8-19-44.9-46.2-85.2-80.8-119.9-34.6-34.6-74.9-61.8-119.9-80.8-4.8-2-9.7-4-14.6-5.8 12.3-8.4 24-18 34.8-28.7 44.6-44.6 69.2-103.9 69.2-167 0-25-3.9-49.4-11.3-72.6 63.4 1.1 114.7 53 114.7 116.6 0 45.5-26.6 85.6-65.3 104.7-16.3 8.1-26.8 24.4-26.8 42.6v1c0 21.2 14.1 40 34.6 45.5 94.9 25.8 163.8 112.4 163.8 215 0 10.5-0.7 21-2.2 31.3l69.3 9.7c1.9-13.5 2.9-27.3 2.9-41-0.1-75.8-29.1-147.8-81.7-202.6z m-434.3-84c-91.6 0-166.2-74.6-166.2-166.2S349 160.9 440.6 160.9s166.2 74.6 166.2 166.2-74.5 166.2-166.2 166.2z" ></path></symbol><symbol id="icon-zhiweiguanli" viewBox="0 0 1024 1024"><path d="M878.4 243.5h-91.2v-41.2c0-58.6-47.7-106.2-106.2-106.2H354.2c-58.6 0-106.2 47.7-106.2 106.2v41.2h-91.2c-43.2 0-78.4 35.1-78.4 78.4V856c0 43.2 35.1 78.4 78.4 78.4h721.5c43.2 0 78.4-35.1 78.4-78.4V321.8c0-43.2-35.1-78.3-78.3-78.3zM318 202.3c0-20 16.2-36.2 36.2-36.2H681c20 0 36.2 16.3 36.2 36.2v41.2H318v-41.2zM156.8 313.5h721.5c4.6 0 8.4 3.7 8.4 8.4V554H692.4c-14.8-45.3-57.4-78.2-107.6-78.2H450.4c-50.2 0-92.9 32.9-107.6 78.2H148.5V321.8c0-4.6 3.7-8.3 8.3-8.3zM628 588.9c0 23.8-19.4 43.2-43.2 43.2H450.4c-23.8 0-43.2-19.4-43.2-43.2 0-23.8 19.4-43.2 43.2-43.2h134.3c23.9 0 43.3 19.4 43.3 43.2z m250.4 275.5H156.8c-4.6 0-8.4-3.7-8.4-8.4V623.9h194.3c14.8 45.3 57.4 78.2 107.6 78.2h134.3c50.2 0 92.9-32.9 107.6-78.2h194.3V856c0.2 4.6-3.5 8.4-8.1 8.4z" ></path></symbol><symbol id="icon-bumenguanli" viewBox="0 0 1024 1024"><path d="M322.5 62h384.6v70H322.5z" ></path><path d="M870.2 62h-59.3v70h59.3c7.2 0 13 5.8 13 13v733.9c0 7.2-5.8 13-13 13h-720c-7.2 0-13-5.8-13-13V145c0-7.2 5.8-13 13-13h68.6V62h-68.6c-45.8 0-83 37.2-83 83v733.9c0 45.8 37.2 83 83 83h720c45.8 0 83-37.2 83-83V145c0-45.8-37.3-83-83-83z" ></path><path d="M295 806.2c-0.5-5.7-0.7-11.6-0.7-17.3 0-119 96.8-215.8 215.8-215.8S726 669.8 726 788.8c0 5.8-0.2 11.6-0.7 17.3l69.8 5.6c0.6-7.6 0.9-15.3 0.9-22.9 0-76.4-29.7-148.1-83.7-202.1-29.7-29.8-64.9-52.1-103.3-66.2 45.6-31.5 75.5-84.1 75.5-143.5 0-96.1-78.2-174.4-174.4-174.4-96.1 0-174.4 78.2-174.4 174.4 0 59.5 29.9 112 75.5 143.5C373 534.6 337.8 557 308 586.7c-54 54-83.7 125.8-83.7 202.1 0 7.6 0.3 15.3 0.9 22.9l69.8-5.5z m215.2-533.6c57.5 0 104.4 46.8 104.4 104.4 0 57.5-46.8 104.4-104.4 104.4-57.5 0-104.4-46.8-104.4-104.4 0-57.6 46.8-104.4 104.4-104.4z" ></path></symbol><symbol id="icon-gerenzhongxin" viewBox="0 0 1024 1024"><path d="M930.4 337.3c-22.7-53.7-55.2-101.9-96.6-143.3-41.4-41.4-89.6-73.9-143.3-96.6C634.9 73.9 575.9 62 515.1 62c-60.8 0-119.9 11.9-175.5 35.4-53.7 22.7-101.9 55.2-143.3 96.6-41.4 41.4-73.9 89.6-96.6 143.3-23.5 55.6-35.4 114.6-35.4 175.5 0 50.5 8.3 100.1 24.7 147.4l66.1-22.9c-13.8-39.9-20.8-81.8-20.8-124.5 0-209.9 170.8-380.7 380.7-380.7 209.9 0 380.8 170.8 380.8 380.7 0 41.6-6.7 82.5-19.8 121.5l66.3 22.3c15.6-46.2 23.5-94.7 23.5-143.9 0-60.8-11.9-119.8-35.4-175.4z" ></path><path d="M656.9 422.2c0-76.9-62.6-139.5-139.5-139.5s-139.5 62.6-139.5 139.5 62.6 139.5 139.5 139.5 139.5-62.6 139.5-139.5z m-209 0c0-38.3 31.2-69.5 69.5-69.5s69.5 31.2 69.5 69.5-31.2 69.5-69.5 69.5-69.5-31.2-69.5-69.5zM713.8 627.8c-62-27.2-128.1-40.9-196.4-40.9-69 0-135.7 14-198.2 41.7-60.4 26.7-114.1 64.9-159.5 113.3l-20.3 21.7 18.1 23.6c41.2 53.6 94.8 98 155 128.3 63.2 31.8 131.3 48 202.6 48 71.9 0 140.6-16.4 204.2-48.8 60.7-30.9 114.5-76 155.6-130.4l17.9-23.7-20.5-21.6c-45.3-47.6-98.6-85-158.5-111.2zM515.1 893.5c-109 0-210.3-45.3-282.5-125.4 77.7-71.9 177.7-111.2 284.8-111.2 105.8 0 204.9 38.4 282.2 108.8-72.2 81.6-174.3 127.8-284.5 127.8z" ></path></symbol><symbol id="icon-yonghuguanli" viewBox="0 0 1024 1024"><path d="M751.4 553.2c-42.5-38.5-92.1-67.1-145.5-84.6 53.2-38.9 87.8-101.8 87.8-172.7C693.7 178 597.7 82 479.8 82c-57.1 0-110.8 22.2-151.2 62.6C288.2 185 266 238.7 266 295.8s22.2 110.8 62.6 151.2c7.8 7.8 16.2 15 25 21.4-10.5 3.5-20.9 7.3-31.2 11.7-48.2 20.4-91.4 49.5-128.5 86.7s-66.3 80.4-86.7 128.5c-21.1 49.9-31.8 102.9-31.8 157.4 0 24.8 2.3 49.7 6.8 73.9l68.8-12.7c-3.7-20-5.6-40.6-5.6-61.2 0-184.4 150-334.4 334.4-334.4 83.2 0 163 30.8 224.5 86.6l47.1-51.7zM479.8 152c79.3 0 143.9 64.5 143.9 143.9s-64.5 143.9-143.9 143.9S336 375.2 336 295.9 400.5 152 479.8 152zM726.3 665.3h213.8v70H726.3zM503 831.6h437.1v70H503z" ></path></symbol><symbol id="icon-app" viewBox="0 0 1024 1024"><path d="M363.485867 865.117867h305.5616c21.6576 0 39.2192-17.194667 39.2192-38.4s-17.5616-38.4-39.2192-38.4H363.485867c-21.6576 0-39.2192 17.194667-39.2192 38.4s17.5616 38.4 39.2192 38.4z" fill="#A6ADB4" ></path><path d="M945.288533 699.835733a40.448 40.448 0 0 0-43.195733 43.1872v147.037867a46.865067 46.865067 0 0 1-45.960533 48.708267H166.766933a46.882133 46.882133 0 0 1-45.038933-48.708267v-147.029333a40.439467 40.439467 0 1 0-80.887467 0v147.029333a125.883733 125.883733 0 0 0 125.9264 128.657067h693.0432c70.203733-1.006933 126.4384-58.461867 125.9264-128.657067v-147.029333a40.430933 40.430933 0 0 0-40.448-43.195734zM40.840533 127.735467v147.959466a39.517867 39.517867 0 0 0 79.044267 0V127.735467a45.943467 45.943467 0 0 1 46.882133-47.786667h693.0432a46.882133 46.882133 0 0 1 45.960534 47.786667v147.959466a39.509333 39.509333 0 0 0 39.517866 39.509334 40.448 40.448 0 0 0 40.448-39.509334V127.735467C986.248533 58.052267 930.423467 1.024 860.7232 0H166.775467A125.934933 125.934933 0 0 0 40.840533 127.744z m168.4992 427.972266H326.229333L357.316267 640H418.133333L295.150933 315.733333h-52.701866L119.466667 640h60.817066l29.056-84.292267zM269.124267 392.533333L307.2 503.466667h-76.8l38.724267-110.933334z m231.552 131.959467h32.631466a123.246933 123.246933 0 0 0 88.192-28.535467c23.389867-19.959467 36.394667-49.134933 35.413334-79.488 1.6384-28.245333-9.838933-55.722667-31.249067-74.743466a127.573333 127.573333 0 0 0-84.0192-25.813334H443.733333V640h56.942934V524.4928zM503.466667 366.933333h32.136533c42.180267 0 61.602133 17.493333 61.602133 53.162667 1.092267 16.0256-4.8128 31.701333-16.068266 42.666667a71.364267 71.364267 0 0 1-51.5584 14.677333H503.466667V366.933333z m286.293333-51.0976H691.2V640h57.3184V524.4672h32.853333c31.837867 1.928533 63.189333-8.311467 87.381334-28.544 23.543467-19.959467 36.625067-49.152 35.643733-79.505067 1.536-28.100267-9.710933-55.441067-30.754133-74.752a131.84 131.84 0 0 0-83.882667-25.8304z m39.4752 147.131734a73.813333 73.813333 0 0 1-49.527467 14.72H750.933333V366.933333h32.119467c42.1632 0 61.576533 17.527467 61.576533 53.2736 1.262933 15.957333-4.394667 31.650133-15.394133 42.752z" fill="#A6ADB4" ></path></symbol><symbol id="icon-yepian" viewBox="0 0 1024 1024"><path d="M807.936 99.328c-17.408 0-32.256 9.216-40.448 23.552h-348.16L284.672 355.84l35.84 35.84 126.976-219.648h321.536c8.192 12.8 22.528 20.992 38.912 20.992 25.6 0 46.592-20.992 46.592-46.592s-20.992-47.104-46.592-47.104z" ></path><path d="M301.056 50.688c-8.704 14.848-7.68 32.768 0 46.592L127.488 399.36l134.656 232.448 48.64-13.312L183.808 399.36l160.256-279.04c15.36-1.024 29.696-9.216 37.888-23.04 12.8-22.528 5.12-50.688-17.408-63.488s-50.688-5.632-63.488 16.896z" ></path><path d="M15.872 467.456c8.704 14.848 24.064 23.552 40.448 23.552L228.352 793.6l268.8 1.536 13.312-48.64-253.44-1.536-159.232-279.552c6.656-13.312 7.168-30.208-1.024-44.032-12.8-22.528-40.96-30.208-63.488-17.408-22.528 12.8-30.208 40.96-17.408 63.488z" ></path><path d="M216.064 924.672c17.408 0 32.256-9.216 40.448-23.552h348.16l134.144-232.448-35.84-35.84-126.976 219.648H254.976c-8.192-12.8-22.528-20.992-38.912-20.992-25.6 0-46.592 20.992-46.592 46.592s20.992 46.592 46.592 46.592z" ></path><path d="M722.944 973.312c8.704-14.848 7.68-32.768 0-46.592l173.568-302.08-134.656-232.448-48.64 13.312 127.488 219.136-160.256 279.04c-15.36 1.024-29.696 9.216-37.888 23.04-12.8 22.528-5.12 50.688 17.408 63.488 22.016 13.312 50.176 5.632 62.976-16.896z" ></path><path d="M1008.128 556.544c-8.704-14.848-24.064-23.552-40.448-23.552L795.648 230.4l-268.8-1.536-13.312 48.64 253.44 1.536 159.232 279.552c-6.656 13.312-7.168 30.208 1.024 44.032 12.8 22.528 40.96 30.208 63.488 17.408 22.528-12.8 30.208-40.96 17.408-63.488zM512 391.168C445.44 391.168 391.168 445.44 391.168 512S445.44 632.832 512 632.832s120.832-54.272 120.832-120.832S578.56 391.168 512 391.168z m0 196.096c-41.472 0-75.264-33.792-75.264-75.264s33.792-75.264 75.264-75.264 75.264 33.792 75.264 75.264-33.792 75.264-75.264 75.264z" ></path></symbol><symbol id="icon-left-circle-fill" viewBox="0 0 1024 1024"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m104 316.9c0 10.2-4.9 19.9-13.2 25.9L457.4 512l145.4 105.2c8.3 6 13.2 15.6 13.2 25.9V690c0 6.5-7.4 10.3-12.7 6.5l-246-178c-4.4-3.2-4.4-9.7 0-12.9l246-178c5.3-3.8 12.7-0.1 12.7 6.5v46.8z" ></path></symbol><symbol id="icon-right-circle-fill" viewBox="0 0 1024 1024"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m154.7 454.5l-246 178c-5.3 3.8-12.7 0-12.7-6.5v-46.9c0-10.2 4.9-19.9 13.2-25.9L566.6 512 421.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.8 0 13z" ></path></symbol><symbol id="icon-xitongguanli" viewBox="0 0 1026 1024"><path d="M400.896 67.072H140.8c-24.064 0-46.592 11.264-59.392 29.696-9.216 12.8-14.848 27.648-14.848 44.544v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24V141.312c0.512-40.96-33.28-74.24-73.728-74.24z m0 361.984v9.216-9.216z m335.872 83.456c18.432 0 35.328-7.168 48.128-20.48L939.008 337.92c12.8-12.8 20.48-29.696 20.48-48.128s-7.168-35.328-20.48-48.128l-154.112-155.648c-26.112-26.112-70.656-26.112-96.256 0l-154.112 154.112c-12.8 12.8-20.48 29.696-20.48 48.128 0 18.432 7.168 35.328 20.48 48.128l154.112 154.112c12.8 14.336 29.184 22.016 48.128 22.016z m0-369.152l146.432 146.432-146.432 146.432-144.896-146.432L736.768 143.36z m-335.872 406.016H140.8c-40.96 0-74.24 33.28-74.24 74.24v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24v-259.584c0.512-40.448-33.28-74.24-73.728-74.24z m0 352.768v18.432-18.432z m484.352-352.768h-259.584c-40.96 0-74.24 33.28-74.24 74.24v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24v-259.584c0-40.448-33.792-74.24-74.24-74.24z" ></path></symbol><symbol id="icon-gongjianku" viewBox="0 0 1024 1024"><path d="M798.72 320v446.976H223.232V320H63.488v532.48c0 41.472 33.792 75.264 75.264 75.264h745.472c41.472 0 75.264-33.792 75.264-75.264v-532.48H798.72z" ></path><path d="M608.256 494.592z m-10.24-4.608z" ></path><path d="M819.2 96.256H203.776c-41.472 0-75.264 33.792-75.264 75.264V286.72h128v448h510.464V286.72h128V171.008c-0.512-41.472-34.304-74.752-75.776-74.752z m-154.112 493.056l-12.8 12.8c-12.8 12.8-33.28 12.8-46.08 0L477.184 473.088c-33.792 11.776-72.704 4.608-99.328-22.528-27.136-27.136-34.304-66.048-22.528-99.84l38.4 38.4c12.8 12.8 33.28 12.8 46.08 0l12.8-12.8c12.8-12.8 12.8-33.28 0-46.08L414.208 291.84c33.792-11.776 72.704-4.096 99.84 22.528 27.136 27.136 34.304 66.048 22.528 99.84l128.512 128.512c12.288 13.312 12.288 33.792 0 46.592z" ></path></symbol><symbol id="icon-fangfaku" viewBox="0 0 1024 1024"><path d="M256 170.496v170.496h512V170.496h85.504c23.552 0 42.496 18.944 42.496 42.496V896c0 23.552-18.944 42.496-42.496 42.496H170.496c-23.552 0-42.496-18.944-42.496-42.496V212.992c0-23.552 18.944-42.496 42.496-42.496H256z m256 513.024H256v83.456h256v-83.456zM768 491.52H256v83.456h512V491.52zM341.504 85.504h341.504V256H341.504V85.504z" ></path></symbol><symbol id="icon-shebeiku" viewBox="0 0 1024 1024"><path d="M960 491.52v380.416c0 26.112-23.04 47.616-52.224 47.616H116.224c-29.184 0-52.224-21.504-52.224-47.616V491.52c0-26.112 23.04-47.616 52.224-47.616h791.552c28.672 0 52.224 21.504 52.224 47.616z m-149.504 156.16H213.504V783.36h596.992v-135.68z m149.504-500.736v186.88c0 23.04-20.992 42.496-46.592 42.496H110.592c-25.6 0-46.592-18.944-46.592-42.496V146.944c0-23.04 20.992-42.496 46.592-42.496h802.304c26.112 0 47.104 18.944 47.104 42.496z m-671.744 25.6c-41.472 0-74.752 30.208-74.752 68.096s33.792 68.096 74.752 68.096S363.008 278.528 363.008 240.64s-33.792-68.096-74.752-68.096z m224.256 0c-41.472 0-74.752 30.208-74.752 68.096s33.792 68.096 74.752 68.096 74.752-30.208 74.752-68.096-33.792-68.096-74.752-68.096z" ></path></symbol><symbol id="icon-wenjian" viewBox="0 0 1024 1024"><path d="M273.54647 325.996013h476.395357c19.444708-2.046811 36.842605 11.769166 39.40112 30.702171 2.046811 19.444708-11.769166 36.330903-31.213874 38.377714-2.558514 0.511703-5.117029 0.511703-7.675543 0H273.54647c-10.234057-0.511703-19.956411-4.605326-26.608548-11.257463-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737 0.511703-19.956411 17.397897-35.307497 37.866011-34.284091v1.023406z m0 209.286467h476.395357c19.444708-2.046811 36.842605 11.769166 39.40112 30.702171 2.046811 19.444708-11.769166 36.330903-31.213874 38.377714-2.558514 0.511703-5.117029 0.511703-7.675543 0H273.54647c-9.722354 0-19.444708-3.58192-26.608548-10.234057-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737 0.511703-19.444708 17.397897-35.307497 37.354308-34.284091z m0 185.748136h324.931312c19.444708 0 35.307497 15.862788 35.307497 34.795794 0 19.444708-15.862788 34.795794-35.307497 34.795794H273.54647c-9.722354-0.511703-19.444708-4.093623-26.608548-10.74576-6.652137-6.140434-10.74576-14.839383-10.74576-24.050034 0.511703-19.444708 17.397897-35.307497 37.354308-34.795794zM135.898402 0.041294h96.71184c17.397897-0.511703 33.772388 8.187246 43.494742 22.514926l53.217097 82.38416c4.605326 7.16384 12.792571 11.769166 20.979817 11.257462h322.884501c8.698949 0 16.886194-4.093623 21.49152-11.257462l53.217097-82.38416c9.722354-14.32768 26.096846-23.026628 43.494742-22.514926h97.223543c53.7288-1.535109 98.246948 39.912823 100.293759 93.12992v837.657572c-2.046811 52.705394-46.56496 94.153325-100.293759 93.12992h-752.203196c-53.7288 1.535109-98.758651-39.912823-100.293759-92.618217V93.171214C37.139751 39.954117 82.169603-1.493814 135.898402 0.041294z m82.895863 70.103291H135.898402c-6.652137 0-13.304274 2.558514-18.421303 6.652138-4.605326 4.093623-7.16384 10.234057-7.16384 16.374491v837.657572c0.511703 13.304274 11.769166 23.538331 25.07344 23.026629h752.203196c6.652137 0 13.304274-2.558514 18.421303-6.652138 4.605326-4.093623 7.16384-10.234057 7.16384-16.374491V93.171214c0.511703-6.140434-2.046811-12.280868-7.16384-16.374491-5.117029-4.605326-11.257463-6.652137-18.421303-6.652138h-82.895862l-46.053257 70.614994c-18.933006 28.65536-51.681988 45.541554-86.477783 45.029851H350.813601c-34.795794 0.511703-67.544777-16.374491-86.477782-45.029851l-45.541554-70.614994zM399.425372 0.041294h225.149256c19.956411-0.511703 36.842605 15.351086 37.866011 34.795795-0.511703 19.956411-17.397897 35.307497-37.866011 34.795794H399.425372c-10.234057-0.511703-19.956411-4.093623-27.120251-10.74576-6.652137-6.140434-10.74576-15.351086-10.234057-24.050034C362.582767 15.39238 378.957258-0.470408 399.425372 0.041294z" ></path></symbol><symbol id="icon-bianjimoban" viewBox="0 0 1025 1024"><path d="M127.110228 701.648461q0 26.438928 18.812314 45.251241t46.268123 18.812314l253.203575 0 0 128.12711-318.284012 0q-26.438928 0-49.82721-9.660377t-40.675273-26.947368-26.947368-40.675273-9.660377-50.844091l0-637.584906q0-26.438928 9.660377-49.82721t26.947368-40.675273 40.675273-27.455809 49.82721-10.168818l766.728898 0q26.438928 0 49.82721 10.168818t40.675273 27.455809 27.455809 40.675273 10.168818 49.82721l0 187.106256-128.12711 1.016882q-2.033764-25.422046-19.829196-43.217478t-44.234359-17.795432l-637.584906 0q-27.455809 0-46.268123 18.812314t-18.812314 45.251241l0 382.347567zM1016.881827 501.322741q6.101291 9.151936 7.626614 23.388282t-10.677259 28.472691q-11.1857 14.236346-18.303873 21.354518l-8.135055 8.135055-105.75571-95.586892q5.084409-6.101291 14.236346-14.744786t14.236346-13.727905q14.236346-14.236346 30.506455-12.711023t27.455809 6.609732q12.202582 5.084409 26.438928 18.812314t22.3714 29.998014zM613.179742 789.100298q3.050645-3.050645 14.236346-16.270109t27.96425-32.540218 37.116187-42.200596 40.675273-46.268123q48.810328-54.911619 108.806356-122.025819l107.789474 95.586892q-59.996028 68.131082-108.806356 123.042701-20.337637 23.388282-40.675273 46.268123t-37.116187 41.183714-27.455809 29.998014-12.711023 13.727905q-9.151936 12.202582-25.422046 20.337637-7.118173 5.084409-21.354518 11.1857t-29.998014 12.202582-29.489573 10.677259-20.846077 5.59285q-26.438928 5.084409-23.388282-22.3714 1.016882-7.118173 4.067527-21.862959t6.609732-30.506455 7.118173-28.981132 5.59285-18.303873q5.084409-13.219464 17.286991-28.472691z" ></path></symbol><symbol id="icon-shanchu1" viewBox="0 0 1024 1024"><path d="M78.768011 168.230165c0-30.999918 24.230644-56.076722 54.15419-56.076722L403.692131 112.153443 403.692131 56.076722c0-30.999918 24.230644-56.076722 54.15419-56.076722l108.306335 0c29.923546 0 54.155214 25.076803 54.155214 56.076722l0 56.077745 270.768906 0c29.923546 0 54.15419 25.076803 54.15419 56.076722l0 56.076722L78.768011 224.307909 78.768011 168.230165zM891.076776 336.461352l0 112.153443 0 519.30746c0 30.923181-24.231667 56.077745-54.153167 56.077745L187.076392 1024c-29.923546 0-54.15419-25.154564-54.15419-56.077745L132.922201 448.614796 132.922201 336.461352l0-56.077745 758.154574 0L891.076776 336.461352zM349.53794 448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523 0-54.153167 25.153541-54.153167 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.153167 56.077745 29.923546 0 54.15419-25.154564 54.15419-56.077745L349.53794 448.614796zM566.153679 448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523 0-54.153167 25.153541-54.153167 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.153167 56.077745 29.923546 0 54.15419-25.154564 54.15419-56.077745L566.153679 448.614796zM782.770441 448.614796c0-30.923181-24.231667-56.076722-54.155214-56.076722s-54.15419 25.153541-54.15419 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.15419 56.077745s54.155214-25.154564 54.155214-56.077745L782.770441 448.614796z" ></path></symbol><symbol id="icon-edit" viewBox="0 0 1024 1024"><path d="M923.9 335.8c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.8-35.2-174.3-35.2S392.2 74.1 337 97.5c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3C75.3 391 63.5 449.7 63.5 510.1c0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c35.9-15.2 69.3-34.8 99.8-58.5l-0.1-0.1c9.1-7.4 14.8-18.6 14.8-31.2 0-22.3-18-40.3-40.3-40.3-9.2 0-17.7 3.1-24.5 8.3l-0.2-0.3c-62 47.9-139.7 76.4-223.9 76.4-202.3 0-366.9-164.6-366.9-366.9s164.7-366.9 367-366.9 366.9 164.6 366.9 366.9c0 66.2-17.6 128.3-48.4 182l0.4 0.2c-4.4 6.5-7 14.2-7 22.6 0 22.3 18 40.3 40.3 40.3 16 0 29.8-9.3 36.3-22.8l0.2 0.1c8.9-15.5 16.8-31.5 23.8-48.1 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.7-119.1-35.1-174.3z" ></path><path d="M693.7 626.5H507.6l-57.1 66.1h243.2zM663.2 411.4c7.5-7.6 7.5-23.5 0-31.3l-45.4-46.8c-7.7-7.6-22.9-7.6-30.4 0l-45.7 46.8 76.1 78.1 45.4-46.8zM328.8 614.5v78.1h76.1l197.5-218.7-76-77.9z" ></path></symbol><symbol id="icon-new" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M695.7 469.2h-139v-139c0-23.6-19.3-43-43-43-23.6 0-43 19.3-43 43v139h-139c-23.6 0-43 19.3-43 43s19.3 43 43 43h139v139c0 23.7 19.3 43 43 43 23.6 0 43-19.3 43-43v-139h139c23.6 0 43-19.3 43-43s-19.4-43-43-43z" ></path></symbol><symbol id="icon-biaoqianye1" viewBox="0 0 1024 1024"><path d="M345.557333 128l110.677334 168.405333H938.666667V896H85.333333V128h260.224zM299.52 213.333333H170.666667v597.333334h682.666666V381.738667H410.197333L299.52 213.333333z" fill="#222222" ></path><path d="M597.333333 136.533333c0-4.693333 3.541333-8.533333 7.893334-8.533333h325.546666c4.352 0 7.893333 3.84 7.893334 8.533333v68.266667c0 4.693333-3.541333 8.533333-7.893334 8.533333h-325.546666C600.874667 213.333333 597.333333 209.493333 597.333333 204.8V136.533333z" fill="#222222" ></path></symbol><symbol id="icon-biaoqianye" viewBox="0 0 1024 1024"><path d="M376.6 494.8c5.1 4.8 7.9 11.7 7.6 18.7 0.4 7.1-2.5 14-7.6 18.7-5.3 4.7-12.3 7.2-19.3 6.9h-69.6v235.1c0.2 7.4-2.9 14.4-8.4 19.1-5.5 5.4-12.9 8.3-20.5 8.1-7.6 0.3-15.1-2.7-20.5-8.1-5.3-4.9-8.2-11.9-8.1-19.1v-235H161c-7.2 0.3-14.2-2.3-19.3-7.3-5.2-4.8-8-11.7-7.6-18.7-0.3-7 2.5-13.7 7.6-18.3 5.3-4.8 12.2-7.3 19.3-7h198.4c6.3 0 12.4 2.5 17.2 6.9z m215.7 70.1c5.2 5.1 8 12.2 7.7 19.6v189.9c0.3 7.2-2.5 14.2-7.7 19.1-4.8 5.3-11.7 8.3-18.9 8.1-7.1 0.1-13.9-2.7-18.9-7.7-4.8-5.2-7.6-12-7.6-19.1-18 19.5-42.9 30.8-69.2 31.4-19.7 0.3-38.9-5.3-55.5-15.9-17.2-10.7-31.2-26.1-40.3-44.4-19.3-40.4-19.3-87.6 0-128 8.9-18.4 22.9-33.8 40.3-44.4 16-10.5 34.8-16.1 53.9-15.9 26.3-0.1 51.8 9.8 71.2 27.7-0.2-7.3 2.6-14.4 7.7-19.6 10.6-10.2 27.2-10.2 37.8 0l-0.5-0.8z m-61.2 168.7c24.1-31.6 24.1-75.6 0-107.2-11.5-14.3-28.9-22.3-47.1-21.6-17.9-0.5-35.1 7.4-46.3 21.6-12.1 15-18.5 34-18.1 53.4-0.6 19.5 5.7 38.6 17.7 53.8 11.6 13.9 28.8 21.7 46.7 21.2 18.1 0.4 35.3-7.4 47.1-21.2zM835.4 573c17.1 10.7 31 25.9 40.3 44 9.9 19.8 14.9 41.8 14.5 64 0.4 22.3-4.6 44.4-14.5 64.4-9 18.3-23 33.7-40.3 44.4-16 10.6-34.8 16.1-53.9 15.9-13.9 0.2-27.7-2.9-40.3-9-11.6-5-22.1-12.2-31-21.2v2.8c0.2 7.2-2.5 14.2-7.5 19.4-5 5.1-11.9 8-19.1 7.9-7.1 0.3-14-2.5-18.9-7.7-5.2-5.1-8-12.2-7.6-19.6V497.2c-0.2-7.3 2.5-14.4 7.6-19.6 10.6-10.3 27.2-10.3 37.8 0 5.1 5.2 7.9 12.2 7.6 19.6v93.3c8-9.8 18-17.7 29.4-23.2 12.4-6.8 26.2-10.3 40.3-10.2 19.7-0.2 39 5.3 55.6 15.9z m-15.7 163c12.2-15.1 18.6-34.3 18.1-53.8 0.6-19.4-5.7-38.3-17.7-53.4-12-13.4-29-21.1-46.9-21.1s-34.9 7.7-46.9 21.1c-24.1 31.6-24.1 75.6 0 107.2 11.6 14.1 29 22.1 47.1 21.6 18.3-0.2 35.4-9.1 46.3-24v2.4zM708.1 253.5c-15.5 0-28-12.5-28-28V113.4c-0.1-8 0-15.9 0-23.8V77.9c0-15.5 12.5-28 28-28H886c17 0 32.9 6.6 45 18.6 11.3 11.3 17.8 26 18.6 41.8 0.1 0.7 0.1 1.4 0.1 2.1v113.2c0 15.5-12.5 28-28 28H708.1z m28-56h157.4v-84.1c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.4-2.2-5.4-2.2H736.1v91.7zM371.9 254.6c-15.5 0-28-12.5-28-28V78.9c0-15.4 12.5-27.9 27.9-28l213.4-1.1h0.1c17 0 32.9 6.6 45 18.6 12 12.1 18.6 28 18.6 45v113.2c0 15.5-12.5 28-28 28h-249z m28-56.1h193v-85.2c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.3-2.2-5.3-2.2l-185.5 0.9v91.9z" fill="#595959" ></path><path d="M72.4 974.2c-17.3 0-33.5-6.7-45.7-18.7-12.2-12.1-18.9-28.1-18.9-45.1V113.6c0-35.2 29-63.8 64.6-63.8h169c17.3 0 33.5 6.6 45.7 18.7 12.2 12 18.9 28.1 18.9 45.1V283c0 2 0.8 3.9 2.3 5.4 1.5 1.4 3.4 2.2 5.4 2.2h637.9c17.3 0 33.5 6.6 45.7 18.7 12.2 12 18.9 28 18.9 45.1v556c0 17.1-6.7 33.1-18.9 45.1s-28.4 18.7-45.7 18.7H72.4z m7.7-860.6c-4.3 0-7.7 3.4-7.7 7.6v788.7c0 2 0.8 4 2.3 5.4 1.4 1.4 3.4 2.2 5.4 2.2h871.5c2.1 0 4-0.8 5.4-2.2 1.5-1.4 2.3-3.3 2.3-5.4V350.6c0-2-0.8-3.9-2.2-5.3-1.5-1.5-3.4-2.3-5.4-2.3h-638c-17.3 0-33.5-6.7-45.7-18.7-12.2-12-18.9-28.1-18.9-45.1V121.1c0-2-0.8-3.9-2.3-5.4-1.4-1.4-3.4-2.2-5.4-2.2H80.1z" fill="#595959" ></path></symbol><symbol id="icon-buzhou" viewBox="0 0 1024 1024"><path d="M488.106667 792.462222h257.137777a28.444444 28.444444 0 0 0 28.444445-28.444444 28.444444 28.444444 0 0 0-28.444445-28.444445H488.106667a28.444444 28.444444 0 0 0-28.444445 28.444445 28.444444 28.444444 0 0 0 28.444445 28.444444zM242.346667 764.017778A80.782222 80.782222 0 1 0 341.333333 686.08v-96.142222a80.213333 80.213333 0 0 0 0-155.875556V337.92a80.782222 80.782222 0 1 0-39.822222 0v96.142222a80.213333 80.213333 0 0 0 0 155.875556v96.142222a80.782222 80.782222 0 0 0-59.164444 77.937778zM284.444444 259.982222a40.96 40.96 0 0 1 81.92 0 40.391111 40.391111 0 0 1-40.391111 40.96 40.391111 40.391111 0 0 1-41.528889-40.96zM284.444444 512a40.96 40.96 0 1 1 40.96 40.96A40.96 40.96 0 0 1 284.444444 512z m40.391112 211.057778a40.391111 40.391111 0 0 1 40.391111 40.96 40.96 40.96 0 0 1-81.92 0 40.391111 40.391111 0 0 1 39.253333-40.96zM488.106667 540.444444h257.137777a28.444444 28.444444 0 1 0 0-56.888888H488.106667a28.444444 28.444444 0 1 0 0 56.888888zM488.106667 288.426667h257.137777a28.444444 28.444444 0 0 0 28.444445-28.444445 28.444444 28.444444 0 0 0-28.444445-28.444444H488.106667a28.444444 28.444444 0 0 0-28.444445 28.444444 28.444444 28.444444 0 0 0 28.444445 28.444445z" fill="#151515" ></path><path d="M859.022222 79.644444H164.977778a22.755556 22.755556 0 0 0-22.755556 22.755556v819.2a22.755556 22.755556 0 0 0 22.755556 22.755556h694.044444a22.755556 22.755556 0 0 0 22.755556-22.755556V102.4a22.755556 22.755556 0 0 0-22.755556-22.755556z m-22.755555 819.2H187.733333V125.155556h648.533334z" fill="#151515" ></path></symbol><symbol id="icon-ok" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M715.6 371.6c-15.7-15.7-41.4-15.7-57 0l-196 196-95.9-95.9c-15.7-15.7-41.4-15.7-57 0-15.7 15.7-15.7 41.4 0 57l124.5 124.5c15.7 15.7 41.4 15.7 57 0l224.5-224.5c15.6-15.7 15.6-41.4-0.1-57.1z" ></path></symbol><symbol id="icon-cancel" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M697.9 329.1c-15.6-15.6-41-15.6-56.6 0L513 457.4 384.7 329.1c-15.6-15.6-41-15.6-56.6 0-15.6 15.6-15.6 41 0 56.6L456.4 514 328.1 642.3c-15.6 15.6-15.6 41 0 56.6 15.6 15.6 41 15.6 56.6 0L513 570.6l128.3 128.3c15.6 15.6 41 15.6 56.6 0 15.6-15.6 15.6-41 0-56.6L569.6 514l128.3-128.3c15.6-15.6 15.6-41.1 0-56.6z" ></path></symbol><symbol id="icon-savebaocun" viewBox="0 0 1024 1024"><path d="M778.7 97.2H247.3C165 97.2 98 164.3 98 246.7v532.2c0 82.4 67 149.4 149.3 149.4h531.5c82.3 0 149.3-67 149.3-149.4V246.7C928 164.3 861 97.2 778.7 97.2z m-452.2 79.9h373.1v83.7H331.9c-2.9 0-5.5-2.6-5.5-5.5v-78.2z m373 671.3h-373v-225h373.1v225z m148.7-69.6c0 38.1-30.8 69.2-68.8 69.5V612.9c0-38.3-31.1-69.4-69.3-69.4H316c-38.2 0-69.3 31.1-69.3 69.4v235.4c-38-0.3-68.8-31.4-68.8-69.5V246.7c0-38.1 30.8-69.2 68.8-69.5v78.2c0 47.1 38.3 85.4 85.3 85.4h378c38.2 0 69.3-31.1 69.3-69.4v-94.2c38 0.3 68.8 31.4 68.8 69.5v532.1z" ></path></symbol><symbol id="icon-shijianxian2" viewBox="0 0 1024 1024"><path d="M171.52 924.16v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z m0-322.56v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z m0-394.24v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z" ></path><path d="M350.72 350.72c0 79.36-64 143.36-143.36 143.36s-143.36-64-143.36-143.36 64-143.36 143.36-143.36 143.36 64 143.36 143.36z m-143.36-71.68c-39.424 0-71.68 32.256-71.68 71.68s32.256 71.68 71.68 71.68 71.68-32.256 71.68-71.68-32.256-71.68-71.68-71.68z m143.36 430.08c0 79.36-64 143.36-143.36 143.36s-143.36-64-143.36-143.36 64-143.36 143.36-143.36 143.36 64 143.36 143.36z m-143.36-71.68c-39.424 0-71.68 32.256-71.68 71.68s32.256 71.68 71.68 71.68 71.68-32.256 71.68-71.68-32.256-71.68-71.68-71.68z m716.8-286.72h-501.76c-19.968 0-35.84-15.872-35.84-35.84s15.872-35.84 35.84-35.84h501.76c19.968 0 35.84 15.872 35.84 35.84s-15.872 35.84-35.84 35.84z m-284.672 107.52H420.352c-18.432 0-33.792-15.36-33.792-33.792v-4.096c0-18.432 15.36-33.792 33.792-33.792h219.136c18.432 0 33.792 15.36 33.792 33.792v4.096c0 18.432-15.36 33.792-33.792 33.792z m284.672 250.88h-501.76c-19.968 0-35.84-15.872-35.84-35.84s15.872-35.84 35.84-35.84h501.76c19.968 0 35.84 15.872 35.84 35.84s-15.872 35.84-35.84 35.84z m-284.672 107.52H420.352c-18.432 0-33.792-15.36-33.792-33.792v-4.096c0-18.432 15.36-33.792 33.792-33.792h219.136c18.432 0 33.792 15.36 33.792 33.792v4.096c0 18.432-15.36 33.792-33.792 33.792z" ></path></symbol><symbol id="icon-buzhoutiao" viewBox="0 0 1024 1024"><path d="M0 0h1024v1024H0z" fill="#FFFFFF" fill-opacity="0" ></path><path d="M204 372c66.31 0 121.852 46.1 136.326 108h137.53c12.901-33.907 45.71-58 84.144-58 38.435 0 71.243 24.093 84.145 58h139.71c12.902-33.907 45.71-58 84.145-58 49.706 0 90 40.294 90 90s-40.294 90-90 90c-38.434 0-71.242-24.092-84.144-57.998H646.144C633.242 577.908 600.434 602 562 602c-38.434 0-71.242-24.092-84.144-57.998h-137.53C325.852 605.9 270.309 652 204 652c-77.32 0-140-62.68-140-140s62.68-140 140-140z m0 64c-41.974 0-76 34.026-76 76s34.026 76 76 76 76-34.026 76-76-34.026-76-76-76z m358 50c-14.36 0-26 11.64-26 26s11.64 26 26 26 26-11.64 26-26-11.64-26-26-26z m308 0c-14.36 0-26 11.64-26 26s11.64 26 26 26 26-11.64 26-26-11.64-26-26-26z" fill="#666666" ></path></symbol><symbol id="icon-m-qianming" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M573.44 646.656l-3.072 6.144c-8.192 12.288-14.336 25.088-19.456 38.912-6.656 18.944-3.072 36.352 16.896 43.008 34.816 11.264 72.704 9.216 106.496-4.608 9.216-3.072 11.264-4.096 34.304-12.8 16.384-6.656 33.792-12.8 51.2-17.408 1.024 0 2.048-0.512 3.072-1.024 10.24-2.048 6.656-5.632 16.896 1.024 3.584 3.072 8.704 4.096 13.312 3.072 4.608-1.024 5.632-3.072 8.192-7.68 5.632-8.192 3.584-19.456-4.608-25.088-18.944-12.8-22.528-10.24-41.472-6.144-1.536 0.512-3.072 0.512-4.096 1.024-18.944 5.12-37.376 11.264-55.808 18.432-22.016 8.704-24.064 9.728-32.768 12.288-24.576 10.24-52.224 12.8-78.336 6.144 4.608-11.264 10.24-22.016 16.896-32.256 1.536-2.048 2.56-4.096 3.584-6.144 8.704-13.824 15.36-29.184 18.432-45.056 4.096-19.456-7.68-38.4-27.136-42.496-0.512 0-1.536-0.512-2.048-0.512-27.648-6.656-59.392 3.072-148.992 37.888-81.92 32.256-117.76 41.984-129.024 35.84-4.096-2.56-8.704-3.072-13.312-1.536-9.728 2.56-15.36 12.8-12.8 22.016 1.024 4.608 4.096 8.192 8.192 10.752 23.04 8.704 48.64 7.68 71.168-2.048 29.696-9.216 59.392-19.456 88.064-32.256 77.824-30.72 111.104-40.448 126.976-36.352 3.072 1.024 3.072 0 2.56 3.072-2.56 12.288-7.168 23.552-13.312 33.792zM665.088 235.52c-19.456-17.92-49.664-17.408-68.608 1.024L312.32 519.68c-2.048 2.048-3.584 4.608-4.608 7.68l-22.528 80.896c-2.56 9.728 3.072 19.456 12.8 21.504 3.584 1.024 7.68 0.512 11.264-0.512l71.168-29.696c5.632-2.56 10.752-5.632 15.36-10.24l283.648-269.824 2.56-2.56c18.432-19.456 17.92-50.176-2.048-68.608l-1.024-1.024-13.824-11.776z" ></path></symbol><symbol id="icon-touxiang_avatar" viewBox="0 0 1024 1024"><path d="M925.866667 797.866667c-12.8-25.6-34.133333-46.933333-64-64-29.866667-21.333333-68.266667-34.133333-119.466667-42.666667-4.266667 0-29.866667-4.266667-59.733333-12.8-21.333333-4.266667-34.133333-8.533333-38.4-12.8v-17.066667c4.266667-51.2 29.866667-76.8 55.466666-106.666666 8.533333-8.533333 17.066667-21.333333 25.6-29.866667 29.866667-42.666667 34.133333-89.6 34.133334-98.133333 0-8.533333 0-17.066667-4.266667-21.333334-4.266667-8.533333-8.533333-12.8-12.8-21.333333 0-12.8 4.266667-21.333333 4.266667-29.866667 0-21.333333 4.266667-55.466667-4.266667-89.6 0-8.533333-4.266667-12.8-4.266667-21.333333-8.533333-25.6-17.066667-46.933333-34.133333-68.266667-4.266667-12.8-64-72.533333-234.666667-85.333333H401.066667c-4.266667 0-17.066667 0-25.6 4.266667-21.333333 4.266667-38.4 21.333333-42.666667 42.666666v21.333334c-8.533333 8.533333-55.466667 51.2-55.466667 102.4-4.266667 34.133333-4.266667 85.333333 0 123.733333-8.533333 8.533333-17.066667 21.333333-12.8 42.666667 0 12.8 4.266667 55.466667 34.133334 98.133333 8.533333 8.533333 17.066667 17.066667 25.6 29.866667 25.6 29.866667 51.2 55.466667 55.466666 106.666666v17.066667c-4.266667 4.266667-17.066667 8.533333-38.4 12.8-29.866667 8.533333-59.733333 12.8-64 12.8-46.933333 8.533333-85.333333 21.333333-115.2 42.666667-25.6 17.066667-46.933333 38.4-64 64-25.6 38.4-25.6 76.8-25.6 85.333333v21.333333c0 25.6 21.333333 46.933333 46.933334 46.933334H896c25.6 0 46.933333-21.333333 46.933333-46.933334v-17.066666c8.533333-12.8 8.533333-51.2-17.066666-89.6z m-546.133334-128c0 4.266667 0 4.266667 0 0v4.266666c-4.266667 0-4.266667 0 0-4.266666z m503.466667 213.333333l-742.4 4.266667v-4.266667s0-25.6 12.8-51.2c8.533333-17.066667 25.6-29.866667 42.666667-42.666667 25.6-17.066667 55.466667-25.6 89.6-34.133333 4.266667 0 34.133333-4.266667 68.266666-12.8 51.2-12.8 76.8-29.866667 85.333334-46.933333 0-4.266667 0-4.266667 4.266666-8.533334v-42.666666c-8.533333-72.533333-42.666667-115.2-72.533333-145.066667-8.533333-8.533333-12.8-17.066667-21.333333-21.333333-21.333333-29.866667-21.333333-59.733333-21.333334-64l4.266667-4.266667 8.533333-8.533333c4.266667-17.066667 0-25.6 0-29.866667-4.266667-34.133333-4.266667-81.066667 0-119.466667 0-29.866667 29.866667-55.466667 29.866667-55.466666 8.533333-4.266667 17.066667-12.8 21.333333-21.333334 0-4.266667 4.266667-4.266667 4.266667-8.533333v-25.6H465.066667c140.8 8.533333 192 59.733333 192 59.733333 8.533333 12.8 17.066667 25.6 21.333333 42.666667 4.266667 4.266667 4.266667 8.533333 4.266667 12.8 4.266667 29.866667 4.266667 55.466667 4.266666 76.8 0 12.8 0 21.333333-4.266666 38.4 0 12.8 0 25.6 8.533333 29.866667l4.266667 4.266666 4.266666 4.266667s0 34.133333-21.333333 64c-4.266667 8.533333-12.8 12.8-21.333333 21.333333-29.866667 29.866667-64 72.533333-72.533334 145.066667v42.666667c0 4.266667 0 4.266667 4.266667 8.533333 8.533333 21.333333 34.133333 34.133333 85.333333 46.933333 34.133333 8.533333 64 12.8 68.266667 12.8 38.4 8.533333 68.266667 17.066667 93.866667 34.133334 17.066667 12.8 34.133333 25.6 42.666666 42.666666 8.533333 25.6 8.533333 51.2 4.266667 55.466667z" ></path></symbol><symbol id="icon-m-mianban" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M884.15744 348.01152v49.152h-745.984v-49.152z" ></path><path d="M356.43392 846.99136h-49.152v-450.048h49.152z" ></path></symbol><symbol id="icon-m-xialakuang" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M510.464 639.488l207.872-254.976H302.08z" ></path></symbol><symbol id="icon-m-biaodan" viewBox="0 0 1024 1024"><path d="M122.88 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384H122.88c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H137.216c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M244.224 279.04h142.848v49.152H244.224zM244.224 425.472h142.848v49.152H244.224zM436.736 279.04h342.528v49.152H436.736zM436.736 425.472h342.528v49.152H436.736zM244.224 572.416h142.848v49.152H244.224zM436.736 572.416h342.528v172.544H436.736z" ></path></symbol><symbol id="icon-m-biaoge" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M249.344 347.648h49.152v499.2h-49.152zM584.704 347.648h49.152v499.2h-49.152zM137.728 165.888h746.496v181.76H137.728z" ></path><path d="M137.728 481.792h746.496v49.152H137.728zM137.728 664.576h746.496v49.152H137.728z" ></path></symbol><symbol id="icon-dashboard-o" viewBox="0 0 1024 1024"><path d="M880 622c17.673 0 32 14.327 32 32v226c0 17.673-14.327 32-32 32H582c-17.673 0-32-14.327-32-32V654c0-17.673 14.327-32 32-32h298zM442 476c17.673 0 32 14.327 32 32v372c0 17.673-14.327 32-32 32H144c-17.673 0-32-14.327-32-32V508c0-17.673 14.327-32 32-32h298z m406 210H614v162h234V686zM410 540H176v308h234V540z m470-428c17.673 0 32 14.327 32 32v372c0 17.673-14.327 32-32 32H582c-17.673 0-32-14.327-32-32V144c0-17.673 14.327-32 32-32h298z m-32 64H614v308h234V176z m-406-64c17.673 0 32 14.327 32 32v226c0 17.673-14.327 32-32 32H144c-17.673 0-32-14.327-32-32V144c0-17.673 14.327-32 32-32h298z m-32 64H176v162h234V176z" fill="#000000" fill-opacity=".65" ></path></symbol><symbol id="icon-line-layoutmasonryfensanbuju" viewBox="0 0 1024 1024"><path d="M896 128H128c-25.6 0-42.666667 17.066667-42.666667 42.666667v682.666666c0 25.6 17.066667 42.666667 42.666667 42.666667h768c25.6 0 42.666667-17.066667 42.666667-42.666667V170.666667c0-25.6-17.066667-42.666667-42.666667-42.666667zM170.666667 213.333333h298.666666v341.333334H170.666667V213.333333z m0 597.333334v-170.666667h298.666666v170.666667H170.666667z m682.666666 0h-298.666666v-341.333334h298.666666v341.333334z m0-426.666667h-298.666666V213.333333h298.666666v170.666667z" fill="#09121F" ></path></symbol><symbol id="icon-zidingyibuju" viewBox="0 0 1024 1024"><path d="M0 0v256h1024V0z m960 192H64V64h896zM0 1024h512V320H0z m64-640h384v576H64zM576 576h448v-256H576z m64-192h320v128H640zM576 1024h448V640H576z m64-320h320v256H640z" fill="#575869" ></path></symbol><symbol id="icon-daochu" viewBox="0 0 1024 1024"><path d="M394.6 689.8c-13.2 3.2-27.4-9.5-31.7-23.2-8.4-28.5-12.7-58.6-12.7-88.1 0-159.4 151.5-325.1 314.1-352.1v-5.3c0-1.6 0-3.7 0.5-5.3l0.5-2.1c1.6-11.6 5.8-38.5 32.2-55.4 10.6-6.9 22.2-10 34.3-10 14.8 0 26.9 5.3 34.3 9.5 1.6 0.5 2.6 1.6 4.2 2.6L929.2 286c17.4 13.2 28 34.8 28 57 0 22.7-10.6 44.3-28.5 57.5L770.5 525.7c-11.6 9-25.3 13.7-39.1 13.7-12.1 0-23.8-3.7-34.8-10.6-21.1-13.7-31.7-34.8-31.7-64.4v-1.1C559.3 475 442.2 569 416.3 657.6c-4.8 14.3-13.7 32.2-21.7 32.2z m335.7-466.6V256c0 17.4-13.7 31.7-31.1 32.7-125.6 6.9-257.6 131.4-279.7 254.4C486 458.7 595.2 390 699.7 397.4c17.4 1.1 30.6 15.3 30.6 32.7V465c0 4.7 0.5 6.9 0.5 7.9l157.3-124.6c2.1-1.6 2.6-3.2 2.6-5.3 0-2.1-1.1-4.2-2.6-5.3L731.9 214.3c-1.1 1.6-1.6 5.8-2.1 8.4l0.5 0.5z m0 0" ></path><path d="M715.6 916.3H188.3c-67 0-121.9-54.9-121.9-121.9v-568c0-67 54.9-121.9 121.9-121.9h436.5v69.7H188.3c-28.5 0-52.3 23.2-52.3 52.3V795c0 28.5 23.2 52.3 52.3 52.3h527.3c28.5 0 52.3-23.2 52.3-52.3V593.2H837v201.6c0 66.6-54.4 121.5-121.4 121.5z m0 0" ></path><path d="M183 566.9h112.4V626H183v-59.1z m0 154.1h296.1v59.1H183V721z m0-425.4h237v59.1H183v-59.1z m0 140.9h112.4v59.1H183v-59.1z m0 0" ></path></symbol><symbol id="icon-daoru" viewBox="0 0 1024 1024"><path d="M111.6 148.8c7.9 0 16.9 17.9 21.6 32.2 25.9 88.7 143 182.6 248.6 194.2v-1.1c0-29.6 10.6-50.7 31.7-64.4 11.1-6.9 22.7-10.6 34.8-10.6 13.7 0 27.4 4.8 39.1 13.7L645.8 438c17.9 13.2 28.5 34.8 28.5 57.5 0 22.2-10.6 43.8-28 57L487.4 678.2c-1.6 1.1-2.6 2.1-4.2 2.6-7.4 4.2-19.5 9.5-34.3 9.5-12.1 0-23.7-3.2-34.3-10-26.4-16.9-30.6-43.8-32.2-55.4l-0.5-2.1c-0.5-1.6-0.5-3.7-0.5-5.3v-5.3c-162.6-26.9-314.1-192.6-314.1-352 0-29.6 4.2-59.6 12.7-88.1 4.2-13.8 18.4-26.5 31.6-23.3z m335.2 467.1c0.5 2.6 1.1 6.9 2.1 8.4l156.2-123.5c1.6-1.1 2.6-3.2 2.6-5.3 0-2.1-0.5-3.7-2.6-5.3L447.8 365.7c0 1.1-0.5 3.2-0.5 7.9v34.8c0 17.4-13.2 31.7-30.6 32.7-104.5 7.4-213.8-61.2-280.3-145.7 22.2 123 154.1 247.5 279.7 254.4 17.4 1.1 31.1 15.3 31.1 32.7v32.7l-0.4 0.7z m0.5-0.5" ></path><path d="M309 916.3c-67 0-121.4-54.9-121.4-121.4V593.2h69.1v201.6c0 29 23.8 52.3 52.3 52.3h527.3c29 0 52.3-23.8 52.3-52.3V226.4c0-29-23.8-52.3-52.3-52.3H399.8v-69.7h436.5c67 0 121.9 54.9 121.9 121.9v567.9c0 67-54.9 121.9-121.9 121.9H309v0.2z m0 0" ></path><path d="M841.6 626H729.1v-59.1h112.4V626z m0 154.1H545.5V721h296.1v59.1z m0-425.4h-237v-59.1h237v59.1z m0 140.9H729.1v-59.1h112.4v59.1z m0-59.1" ></path></symbol><symbol id="icon-a-juxing1851" viewBox="0 0 1024 1024"><path d="M0 0h438.857143v1024H0V0z m512 0h512v438.857143H512V0z m0 512h219.428571v219.428571H512V512z m292.571429 0h219.428571v219.428571h-219.428571V512z m-292.571429 292.571429h73.142857v73.142857H512v-73.142857z m146.285714 0h73.142857v73.142857H658.285714v-73.142857z m-146.285714 146.285714h73.142857v73.142857H512v-73.142857z m146.285714 0h73.142857v73.142857H658.285714v-73.142857z m146.285715 0h73.142857v73.142857h-73.142857v-73.142857z m146.285714 0h73.142857v73.142857h-73.142857v-73.142857z m-146.285714-146.285714h73.142857v73.142857h-73.142857v-73.142857z m146.285714 0h73.142857v73.142857h-73.142857v-73.142857z" ></path></symbol><symbol id="icon-sxsz" viewBox="0 0 1024 1024"><path d="M304.5 152.6h415L927 512 719.5 871.4h-415L97 512z" fill="#386BF3" ></path><path d="M512 512m-145.25 0a145.25 145.25 0 1 0 290.5 0 145.25 145.25 0 1 0-290.5 0Z" fill="#3D4265" ></path></symbol><symbol id="icon-mx" viewBox="0 0 1024 1024"><path d="M511.9 325.12v248.55L727.15 449.4l-0.01-248.55z" fill="#C3D2FB" ></path><path d="M296.65 200.85L511.9 325.12v248.56L296.65 449.4z" fill="#3D4265" ></path><path d="M511.9 325.12l215.25-124.27L511.9 76.57 296.65 200.85z" fill="#386BF3" ></path><path d="M296.62 698.02v248.55L511.87 822.3l-0.01-248.56z" fill="#C3D2FB" ></path><path d="M81.37 573.74l215.25 124.28v248.55L81.37 822.3z" fill="#3D4265" ></path><path d="M296.62 698.02l215.25-124.28-215.25-124.27L81.37 573.74z" fill="#386BF3" ></path><path d="M727.03 698.02v248.55L942.28 822.3l-0.01-248.56z" fill="#C3D2FB" ></path><path d="M511.78 573.74l215.25 124.28v248.55L511.78 822.3z" fill="#3D4265" ></path><path d="M727.03 698.02l215.25-124.28-215.25-124.27-215.25 124.27z" fill="#386BF3" ></path></symbol><symbol id="icon-al" viewBox="0 0 1024 1024"><path d="M192 132h440v640H192z" fill="#386BF3" ></path><path d="M632 260h200v512H632z" fill="#C3D2FB" ></path><path d="M398.86 612L512 725.14 625.14 612H912v280H112V612z" fill="#3D4265" ></path></symbol><symbol id="icon-sf" viewBox="0 0 1024 1024"><path d="M511.82 512.5v435L888.54 730l-0.02-435z" fill="#C3D2FB" ></path><path d="M135.1 295l376.72 217.5v435L135.1 730z" fill="#3D4265" ></path><path d="M511.82 512.5L888.54 295 511.82 77.5 135.1 295z" fill="#386BF3" ></path></symbol><symbol id="icon-moxing" viewBox="0 0 1061 1024"><path d="M447.122 467.332L49.24 268.162A33.501 33.501 0 0 0 0.136 300.745v441.02a33.042 33.042 0 0 0 16.062 27.994l396.965 248.275a33.96 33.96 0 0 0 17.438 5.507 33.042 33.042 0 0 0 33.043-33.042V497.162a33.042 33.042 0 0 0-16.522-29.83z m598.889-203.76a33.042 33.042 0 0 0-31.666 0l-463.507 203.76a33.042 33.042 0 0 0-19.733 30.289v493.337a33.042 33.042 0 0 0 49.563 28.453l463.048-265.255a33.042 33.042 0 0 0 16.521-28.453V291.566a33.042 33.042 0 0 0-14.226-27.994z m-54.611-84.9a33.042 33.042 0 0 0-22.487-29.83L550.838 1.53a32.583 32.583 0 0 0-19.733 0L83.659 158.021a33.042 33.042 0 0 0-4.13 61.036l397.882 199.17a33.501 33.501 0 0 0 14.685 3.213 33.96 33.96 0 0 0 13.31 0L969.37 215.845a33.042 33.042 0 0 0 22.029-37.173z" fill="#5E5C5C" ></path></symbol><symbol id="icon-yanzhengyanzhengma" viewBox="0 0 1024 1024"><path d="M943.1 172c-2.4-0.2-245.1-25.3-413.8-147.8-5.1-3.7-11-5.6-17.3-5.6-6.2 0-12.2 1.9-17.3 5.6C326.9 146 83.3 171.8 80.9 172c-15.2 1.4-26.6 14.1-26.6 29.3 0 6.7 0.6 165.8 54.8 344.4 32.1 105.8 76.4 196.4 131.9 269.2 70.3 92.3 158.5 156 262 189.2 2.9 0.9 5.9 1.4 9 1.4s6.1-0.5 8.9-1.4c103.6-33.2 191.7-96.8 262-189.2 55.4-72.7 99.8-163.2 131.9-269.2 54.1-178.6 54.8-337.7 54.8-344.4C969.7 186.1 958.3 173.5 943.1 172zM910.1 227.2l-0.1 1.6c-2.9 58.1-13.4 174.4-51.4 299.9-66.7 220.1-183.1 360.1-346 416.1L512 945l-0.6-0.2C349 888.9 232.7 749.4 165.8 530.1c-39.8-130.5-49.4-254.2-51.8-301.4l-0.1-1.6 1.5-0.2c70.6-10.3 250.5-44.8 395.5-142.4l0.9-0.7 1 0.7C658 182.1 837.9 216.6 908.5 227L910.1 227.2z" ></path><path d="M641.8 351 467 580.3l-89-76.1c-5.3-4.5-12.1-7-19.1-7-8.6 0-16.8 3.7-22.4 10.3-10.5 12.3-9.1 31 3.3 41.5l112.7 96.4c5.2 4.4 12.4 7 19.6 7 0.9 0 1.8 0 2.7-0.1 8-0.8 15.4-5 20.3-11.4l193.7-254c4.8-6.3 6.8-14 5.7-21.8-1-7.8-5.1-14.7-11.3-19.5C670.1 335.6 651.6 338.1 641.8 351z" ></path></symbol><symbol id="icon-verify" viewBox="0 0 1024 1024"><path d="M713.856 93.44c44.672 9.344 79.36 15.488 105.024 18.944a332.8 332.8 0 0 0 28.864 3.008A110.08 110.08 0 0 1 944 223.36v348.672c0 71.232-36.288 168.32-80.704 219.328a737.216 737.216 0 0 1-100.672 106.496C683.264 966.208 599.232 1008 512 1008s-171.328-41.792-250.624-110.144c-26.88-23.168-51.2-47.808-72.832-72.512a409.152 409.152 0 0 1-24.768-30.208c-47.68-52.928-83.776-150.4-83.776-223.104V223.36c0-54.72 42.752-102.528 99.264-108.096 5.76-0.32 17.536-1.408 34.432-3.648a953.6 953.6 0 0 0 95.168-17.92c19.392-4.608 34.944-12.16 65.92-30.4l9.984-5.888C434.048 28.416 466.432 16 512 16c39.296 0 68.288 11.84 127.488 43.968l2.304 1.28c38.784 21.056 55.296 28.672 72.064 32.192z m-19.712 93.952c-29.376-6.144-50.688-16-98.176-41.856l-2.304-1.216C549.312 120.32 529.088 112 512 112c-24.192 0-42.88 7.168-78.656 28.16-4.736 2.88-4.736 2.88-9.728 5.76-38.784 22.912-61.12 33.664-92.48 41.216-37.76 8.96-72.96 15.36-104.768 19.648a556.8 556.8 0 0 1-39.68 4.16c-5.12 0.512-10.688 6.784-10.688 12.416v348.672c0 49.344 27.52 123.84 62.08 162.56a642.176 642.176 0 0 0 85.952 90.56c63.552 54.72 128.192 86.848 187.968 86.848 59.776 0 124.416-32.128 187.968-86.848a642.176 642.176 0 0 0 88.32-93.632c31.808-36.608 59.712-111.36 59.712-159.488V223.36c0-5.44-5.888-12.032-6.656-12.288-20.288-0.448-66.112-6.72-147.2-23.68zM400.128 488.704L487.68 576.256l185.088-185.088a48 48 0 0 1 67.84 67.84L521.6 678.144a48 48 0 0 1-67.84 0l-121.6-121.536a48 48 0 1 1 67.968-67.84z" fill="#768893" ></path></symbol><symbol id="icon-preview" viewBox="0 0 1024 1024"><path d="M854.36155804 32.02835121a114.60838884 114.60838884 0 0 1 114.21544637 105.17775738l0.39294247 9.43063278v170.60277392a49.1178817 49.1178817 0 0 1-97.77732893 6.68003145l-0.45843311-6.68003145V146.63674137a16.37262679 16.37262679 0 0 0-12.63966726-15.9796843l-3.73295954-0.39294246H130.1675186a16.37262679 16.37262679 0 0 0-15.91419368 12.57417659l-0.45843312 3.79845017v732.18388095a16.37262679 16.37262679 0 0 0 12.63966859 15.91419369l3.73295821 0.4584331h275.4530781a49.1178817 49.1178817 0 0 1 6.68003143 97.77732894l-6.68003143 0.4584331H130.1675186a114.60838884 114.60838884 0 0 1-114.21544639-105.24324667l-0.39294246-9.36514216V146.63674137a114.60838884 114.60838884 0 0 1 105.24324669-114.28093698l9.36514216-0.32745318h724.19403944z m-286.32450218 495.1082417a235.76582919 235.76582919 0 0 1 358.88798459 303.35203402l80.61881587 80.55332523a39.29430509 39.29430509 0 0 1-55.53595059 55.66693187l-80.61881589-80.61881587a235.83131983 235.83131983 0 0 1-303.35203398-358.88798459z m277.87622625 55.60144257a157.17721902 157.17721902 0 1 0-222.27478502 222.2747837 157.17721902 157.17721902 0 0 0 222.27478502-222.2747837z m-450.70567639-33.26917864a42.56883017 42.56883017 0 1 1 0 85.13766035H210.39339064a42.56883017 42.56883017 0 1 1 0-85.13766035h184.81421508z m0-158.68350096a42.56883017 42.56883017 0 1 1 0 85.13766036H210.39339064a42.56883017 42.56883017 0 1 1 0-85.13766036h184.81421508z m233.67013285-158.68350095a42.56883017 42.56883017 0 1 1 0 85.13766036h-418.48434793a42.56883017 42.56883017 0 1 1 0-85.13766036h418.48434793z" fill="#7f7f7f" ></path></symbol><symbol id="icon-yunshangchuan-xian" viewBox="0 0 1039 1024"><path d="M711.40656 345.248C667.88656 248.448 594.91056 208 481.83856 208c-118.848 0-219.328 96.512-256.736 267.76l-4.96 22.752-23.2 2.256c-83.744 8.192-120.176 54.176-131.36 144.4C54.30256 736.528 103.18256 816 193.85456 816h190.672a32 32 0 1 1 0 64H193.83856C58.68656 880-13.44144 762.72 2.07856 637.296 15.61456 528 65.80656 458.416 167.75856 440.224 215.27856 254.704 335.99856 144 481.83856 144c143.072 0 241.184 58.72 294.24 189.808 3.328-0.176 6.576-0.272 9.76-0.272 125.184 0 223.68 93.696 239.84 252.768 0.896 8.96 1.36 17.952 1.36 26.96C1027.03856 760.576 907.61456 880 760.30256 880h-120.064a32 32 0 1 1 0-64h120.064c111.968 0 202.72-90.768 202.72-202.736 0-6.848-0.32-13.68-1.024-20.48-12.912-127.088-84.544-195.248-176.16-195.248-23.136 0-55.68 7.232-96.928 22.032a32 32 0 1 1-21.616-60.224c15.584-5.6 30.288-10.304 44.112-14.08zM544.23856 598.512V848a32 32 0 0 1-64 0V598.512l-39.712 46.32a32 32 0 1 1-48.592-41.664l95.632-111.552a32.032 32.032 0 0 1 49.344 0l95.616 111.552a32 32 0 0 1-48.592 41.664l-39.696-46.32z" ></path></symbol><symbol id="icon-yulan" viewBox="0 0 1024 1024"><path d="M897.28 85.333333h-750.933333c-28.16 0-51.2 23.04-51.2 51.2v750.933334c0 28.16 23.04 51.2 51.2 51.2h276.906666c18.773333 0 34.133333-15.36 34.133334-34.133334s-15.36-34.133333-34.133334-34.133333H163.413333V153.6h716.8v275.626667c0 18.773333 15.36 34.133333 34.133334 34.133333s34.133333-15.36 34.133333-34.133333V136.533333c0-28.16-22.613333-51.2-51.2-51.2z" fill="#4C4C4C" ></path><path d="M649.813333 315.733333h-324.266666c-18.773333 0-34.133333-15.36-34.133334-34.133333s15.36-34.133333 34.133334-34.133333h324.266666c18.773333 0 34.133333 15.36 34.133334 34.133333s-14.933333 34.133333-34.133334 34.133333zM564.48 452.266667h-238.933333c-18.773333 0-34.133333-15.36-34.133334-34.133334s15.36-34.133333 34.133334-34.133333h238.933333c18.773333 0 34.133333 15.36 34.133333 34.133333s-14.933333 34.133333-34.133333 34.133334zM479.146667 588.8h-153.6c-18.773333 0-34.133333-15.36-34.133334-34.133333s15.36-34.133333 34.133334-34.133334h153.6c18.773333 0 34.133333 15.36 34.133333 34.133334s-14.933333 34.133333-34.133333 34.133333zM724.48 544c-94.293333 0-170.666667 76.373333-170.666667 170.666667s76.373333 170.666667 170.666667 170.666666 170.666667-76.373333 170.666667-170.666666-76.373333-170.666667-170.666667-170.666667z m0 273.066667c-56.32 0-102.4-46.08-102.4-102.4s46.08-102.4 102.4-102.4 102.4 46.08 102.4 102.4-45.653333 102.4-102.4 102.4z" fill="#4C4C4C" ></path><path d="M938.666667 928.853333c-13.226667 13.226667-34.986667 13.226667-48.213334 0l-72.533333-72.533333c-13.226667-13.226667-13.226667-34.986667 0-48.213333 13.226667-13.226667 34.986667-13.226667 48.213333 0l72.533334 72.533333c13.226667 13.226667 13.226667 34.56 0 48.213333z" fill="#4C4C4C" ></path></symbol><symbol id="icon-sousuo" viewBox="0 0 1024 1024"><path d="M1004.8 915.2l-243.2-243.2c0 0-6.4-6.4-6.4-6.4C800 595.2 832 505.6 832 416 832 185.6 646.4 0 416 0S0 185.6 0 416 185.6 832 416 832c89.6 0 179.2-32 243.2-83.2 0 6.4 6.4 6.4 6.4 6.4l243.2 243.2c25.6 25.6 70.4 25.6 96 6.4C1030.4 979.2 1030.4 940.8 1004.8 915.2zM64 416C64 224 224 64 416 64S768 224 768 416 608 768 416 768 64 608 64 416z" fill="#231815" ></path></symbol><symbol id="icon-ziliucheng" viewBox="0 0 1024 1024"><path d="M212.992 526.336 212.992 526.336 212.992 526.336 215.04 526.336 212.992 526.336Z" ></path><path d="M813.056 768l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912l0-38.912-18.432 0c-53.248 0-96.256-43.008-96.256-96.256L659.456 614.4l-96.256 0 0 192.512c0 20.48-16.384 38.912-38.912 38.912L120.832 845.824c-20.48 0-38.912-16.384-38.912-38.912L81.92 401.408c0-20.48 16.384-38.912 38.912-38.912l192.512 0L313.344 190.464 120.832 190.464C98.304 190.464 81.92 174.08 81.92 151.552L81.92 112.64c0-20.48 16.384-38.912 38.912-38.912l788.48 0c20.48 0 38.912 16.384 38.912 38.912l0 38.912c0 20.48-16.384 38.912-38.912 38.912L331.776 190.464l0 174.08 192.512 0c20.48 0 38.912 16.384 38.912 38.912L563.2 593.92l96.256 0 0-153.6c0-53.248 43.008-96.256 96.256-96.256l18.432 0 0-38.912c0-20.48 16.384-38.912 38.912-38.912l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912l0-38.912-18.432 0c-43.008 0-77.824 34.816-77.824 77.824L677.888 593.92l96.256 0 0-38.912c0-20.48 16.384-38.912 38.912-38.912l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912L774.144 614.4l-96.256 0 0 153.6c0 43.008 34.816 77.824 77.824 77.824l18.432 0 0-38.912C774.144 784.384 792.576 768 813.056 768z" ></path></symbol><symbol id="icon-danyuange" viewBox="0 0 1024 1024"><path d="M467.970999 661.248453h-184.831769a70.655912 70.655912 0 0 0-54.527932 25.599968A82.431897 82.431897 0 0 0 204.803328 744.19235v196.607754A82.687897 82.687897 0 0 0 228.611298 998.400032a71.423911 71.423911 0 0 0 54.527932 25.599968h184.831769a73.727908 73.727908 0 0 0 55.039931-25.599968 81.919898 81.919898 0 0 0 23.551971-58.623927v-195.583755a81.919898 81.919898 0 0 0-23.551971-58.367927 72.959909 72.959909 0 0 0-55.039931-25.599968z m5.887993-84.991893A118.015852 118.015852 0 0 0 512.002944 549.376593 127.99984 127.99984 0 0 0 545.538902 460.800704V126.465122A133.119834 133.119834 0 0 0 537.602912 76.801184a123.391846 123.391846 0 0 0-25.599968-40.447949 118.015852 118.015852 0 0 0-37.119954-25.599968A104.703869 104.703869 0 0 0 428.547048 0.00128H116.995438A105.471868 105.471868 0 0 0 71.683494 9.985268a121.087849 121.087849 0 0 0-37.119953 25.599968A127.99984 127.99984 0 0 0 9.219572 76.801184 133.119834 133.119834 0 0 0 0.003584 126.465122V460.800704a127.99984 127.99984 0 0 0 34.559957 88.31989 121.087849 121.087849 0 0 0 37.119953 27.135966 105.471868 105.471868 0 0 0 45.311944 9.983987h311.55161a106.239867 106.239867 0 0 0 45.311944-9.983987z m527.35934-329.215589a71.67991 71.67991 0 0 0-54.783931-25.599968h-184.575769a72.959909 72.959909 0 0 0-55.295931 25.599968 81.919898 81.919898 0 0 0-23.551971 58.367927v195.583756a83.199896 83.199896 0 0 0 23.551971 59.647925 73.983908 73.983908 0 0 0 55.295931 25.599968H947.2024a72.447909 72.447909 0 0 0 54.783932-25.599968 84.991894 84.991894 0 0 0 22.015972-59.647925v-195.583756a82.943896 82.943896 0 0 0-22.783972-58.367927zM947.2024 661.248453h-185.343768a72.959909 72.959909 0 0 0-55.295931 25.599968 81.919898 81.919898 0 0 0-23.551971 58.367927v196.607755A81.919898 81.919898 0 0 0 706.562701 998.400032a73.983908 73.983908 0 0 0 55.295931 25.599968H947.2024a72.447909 72.447909 0 0 0 54.783932-25.599968 83.455896 83.455896 0 0 0 22.015972-57.599928v-196.607754a83.199896 83.199896 0 0 0-22.783972-58.367927 71.67991 71.67991 0 0 0-54.783931-25.599968z m0 0" ></path></symbol><symbol id="icon-rengongzhineng_filledbeifen" viewBox="0 0 1024 1024"><path d="M913.678222 374.556444c0-175.431111-160.782222-317.653333-359.139555-317.653333a382.577778 382.577778 0 0 0-254.663111 93.767111 270.108444 270.108444 0 0 0-91.335112 118.840889 318.350222 318.350222 0 0 0-20.849777 98.773333c-0.597333 38.840889 18.389333 76.871111 1.664 114.688-11.633778 26.453333-41.870222 48.824889-61.312 69.916445 0 0-54.442667 36.224 49.436444 41.173333 2.929778 0.142222 16.071111 62.222222 19.342222 76.430222a16.753778 16.753778 0 0 0-3.271111 10.752c0 11.904 15.004444 21.617778 33.450667 21.617778h11.278222c-24.362667 3.313778-41.955556 12.8-41.955555 26.026667 0 9.102222 11.562667 21.105778 28.842666 28.302222 0 0-21.333333 66.744889 10.296889 81.962667a36.977778 36.977778 0 0 0 21.333333 1.564444c44.856889 2.446222 125.155556-0.739556 169.784889-0.739555 0-0.810667 23.466667 127.146667 23.466667 127.146666h403.299556c0 0.64-38.769778-289.265778-38.769778-289.265777 70.968889-101.632 95.544889-192.611556 96.881778-268.643556 1.422222-11.491556 2.161778-23.068444 2.176-34.659556h0.042666zM701.155556 320.711111a72.632889 72.632889 0 0 1-65.706667-42.055111l-54.471111 31.544889a108.344889 108.344889 0 0 1-7.509334 107.975111l102.172445 59.192889a36.508444 36.508444 0 1 1-10.894222 25.984 35.555556 35.555556 0 0 1 2.019555-10.026667L561.777778 432.512a109.511111 109.511111 0 1 1 10.168889-138.154667l57.728-33.422222a72.718222 72.718222 0 1 1 71.466666 59.733333v0.042667z" fill="#323233" ></path></symbol><symbol id="icon-fuhao-huizhi" viewBox="0 0 1024 1024"><path d="M254.4 82.624L82.624 254.4a60.704 60.704 0 0 0 0 85.92L254.4 512l128.8-128.8-42.88-42.88-85.92 85.888-42.88-42.88 85.888-85.92-42.88-42.88-85.92 85.888-42.88-42.88 171.776-171.84 171.584 171.616L512 254.4l-171.776-171.84a60.576 60.576 0 0 0-85.76 0z m644.096 644.064l-171.808 171.808-42.88-42.912 85.888-85.888-42.88-42.88-85.92 85.856-42.88-42.88 85.888-85.888-42.912-42.912L512 769.6l171.776 171.776a60.704 60.704 0 0 0 85.92 0l171.776-171.776a60.704 60.704 0 0 0 0-85.92L769.6 512l-42.912 42.88 171.808 171.808zM680.8 211.328l131.968 131.872-43.968 44L636.8 255.2l44-43.872zM240.96 650.976l131.968 131.872-44 44-131.968-131.872 44-44zM680.704 123.424a124.544 124.544 0 0 1 176.288 0.096l43.584 43.52a124.704 124.704 0 0 1 0.096 176.16L355.264 888.416l-268.352 48.384 48.384-268.288L680.704 123.424zM334.4 821.344L857.472 298.656c23.84-23.872 23.552-63.264-0.8-87.52L813.12 167.616c-24.544-24.544-63.552-24.832-87.584-0.8L202.432 689.6l-27.52 159.424 159.52-27.616z" fill="#0A8CF0" ></path></symbol><symbol id="icon-shanchu" viewBox="0 0 1024 1024"><path d="M799.2 874.4c0 34.4-28.001 62.4-62.4 62.4H287.2c-34.4 0-62.4-28-62.4-62.4V212h574.4v662.4zM349.6 100c0-7.2 5.6-12.8 12.8-12.8h300c7.2 0 12.8 5.6 12.8 12.8v37.6H349.6V100z m636.8 37.6H749.6V100c0-48.001-39.2-87.2-87.2-87.2h-300c-48 0-87.2 39.199-87.2 87.2v37.6H37.6C16.8 137.6 0 154.4 0 175.2s16.8 37.6 37.6 37.6h112v661.6c0 76 61.6 137.6 137.6 137.6h449.6c76 0 137.6-61.6 137.6-137.6V212h112c20.8 0 37.6-16.8 37.6-37.6s-16.8-36.8-37.6-36.8zM512 824c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0 20.8 16.8 37.6 37.6 37.6m-175.2 0c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0.8 20.8 17.6 37.6 37.6 37.6m350.4 0c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0 20.8 16.8 37.6 37.6 37.6" fill="#8A8A8A" ></path></symbol><symbol id="icon-jurassic_import-form" viewBox="0 0 1024 1024"><path d="M764.9 64H225.4l1.4 224.2 64-0.4-1-159.8h383.6v224H896v544H289.8l1-159.8-64-0.4-1.4 224.2H960V277.7L764.9 64z m-27.6 64.7L882.8 288H737.3V128.7z" fill="#707070" ></path><path d="M356.5 224h255.9v64H356.5z" fill="#707070" ></path><path d="M576.4 416h255.9v64H576.4zM512.5 576h319.8v64H512.5zM384.5 736h447.8v64H384.5z" fill="#707070" ></path><path d="M336.9 349H198.6l98.9 98.9H64v128.2h233.5L198.6 675h138.3l162.9-163z" fill="#707070" ></path></symbol><symbol id="icon-kaoheweidufenxi" viewBox="0 0 1024 1024"><path d="M815.542857 212.943238l118.296381 68.266667v168.033524l-201.532952 116.345904-0.487619-163.352381-125.366857-72.46019 209.091047-116.833524z m-89.673143-51.736381L519.314286 279.454476 305.785905 156.233143 511.561143 37.449143l214.308571 123.757714zM294.619429 887.466667L89.234286 768.877714V546.133333l205.677714 118.00381-0.292571 223.329524z m85.333333 49.249523l-0.097524-223.914666 133.607619 76.653714 132.632381-76.604952-1.024 222.744381-133.558857 77.043809-131.510857-75.922286zM434.468571 328.021333L295.253333 407.747048l-0.195047 156.672L89.234286 444.318476V281.258667l132.047238-76.263619 213.089524 123.026285z m86.113524 49.737143l126.780953 73.191619-0.780191 164.08381-133.12 76.897524-133.656381-78.019048-0.097524-157.403429 140.921905-78.750476z m413.257143 169.008762v222.110476l-200.655238 115.809524-0.633905-221.769143 201.289143-116.150857z" fill="#82529d" ></path></symbol><symbol id="icon-wenjianjia" viewBox="0 0 1024 1024"><path d="M855.04 385.024q19.456 2.048 38.912 10.24t33.792 23.04 21.504 37.376 2.048 54.272q-2.048 8.192-8.192 40.448t-14.336 74.24-18.432 86.528-19.456 76.288q-5.12 18.432-14.848 37.888t-25.088 35.328-36.864 26.112-51.2 10.24l-567.296 0q-21.504 0-44.544-9.216t-42.496-26.112-31.744-40.96-12.288-53.76l0-439.296q0-62.464 33.792-97.792t95.232-35.328l503.808 0q22.528 0 46.592 8.704t43.52 24.064 31.744 35.84 12.288 44.032l0 11.264-53.248 0q-40.96 0-95.744-0.512t-116.736-0.512-115.712-0.512-92.672-0.512l-47.104 0q-26.624 0-41.472 16.896t-23.04 44.544q-8.192 29.696-18.432 62.976t-18.432 61.952q-10.24 33.792-20.48 65.536-2.048 8.192-2.048 13.312 0 17.408 11.776 29.184t29.184 11.776q31.744 0 43.008-39.936l54.272-198.656q133.12 1.024 243.712 1.024l286.72 0z" ></path></symbol><symbol id="icon-biaoqian" viewBox="0 0 1024 1024"><path d="M934.912 516.096q23.552 26.624 19.456 49.664t-26.624 46.592l-324.608 327.68q-8.192 7.168-19.456 11.264t-23.04 4.608-23.04-2.56-18.432-10.24q-121.856-122.88-218.112-220.16l-80.896-80.896q-39.936-39.936-71.168-71.68t-51.2-51.2-20.992-21.504q-3.072-4.096-10.752-14.848t-6.656-25.088l0-19.456 0-40.96q0-23.552 0.512-52.736t0.512-58.88q1.024-70.656 2.048-156.672 2.048-13.312 6.144-24.064t15.36-22.016q10.24-11.264 22.016-16.384t22.016-5.12l329.728 0q2.048 0 9.216 0.512t10.24 1.536q6.144 2.048 11.264 5.12t10.24 8.192zM217.088 317.44q40.96 0 69.12-28.672t28.16-69.632-28.16-69.632-69.12-28.672q-20.48 0-37.888 7.68t-30.72 20.992-20.992 31.232-7.68 38.4 7.68 38.4 20.992 31.232 30.72 20.992 37.888 7.68z" fill="#ea9518" ></path></symbol><symbol id="icon-wenben" viewBox="0 0 1024 1024"><path d="M823.296 60.416q65.536 0 99.328 38.4t33.792 93.696l0 543.744q0 25.6-21.504 46.08l-171.008 163.84q-13.312 11.264-22.528 14.336t-23.552 3.072l-459.776 0q-23.552 0-47.104-9.728t-41.984-27.648-30.208-43.008-11.776-55.808l0-634.88q0-60.416 33.28-96.256t94.72-35.84l568.32 0zM608.256 702.464q13.312 0 22.528-9.216t9.216-22.528q0-14.336-9.216-23.04t-22.528-8.704l-320.512 0q-13.312 0-22.528 8.704t-9.216 23.04q0 13.312 9.216 22.528t22.528 9.216l320.512 0zM736.256 509.952q13.312 0 22.528-9.216t9.216-22.528-9.216-22.528-22.528-9.216l-448.512 0q-13.312 0-22.528 9.216t-9.216 22.528 9.216 22.528 22.528 9.216l448.512 0zM799.744 318.464q13.312 0 22.528-9.216t9.216-23.552q0-13.312-9.216-22.528t-22.528-9.216l-512 0q-13.312 0-22.528 9.216t-9.216 22.528q0 14.336 9.216 23.552t22.528 9.216l512 0z" fill="#db639b" ></path></symbol><symbol id="icon-yingyong" viewBox="0 0 1026 1024"><path d="M371.732817 94.172314q25.773475 0 44.112294 17.843175t18.338819 43.616651l0 247.821878q0 25.773475-18.338819 44.112294t-44.112294 18.338819l-247.821878 0q-25.773475 0-43.616651-18.338819t-17.843175-44.112294l0-247.821878q0-25.773475 17.843175-43.616651t43.616651-17.843175l247.821878 0zM371.732817 589.81607q25.773475 0 44.112294 17.843175t18.338819 43.616651l0 248.813166q0 25.773475-18.338819 43.616651t-44.112294 17.843175l-247.821878 0q-25.773475 0-43.616651-17.843175t-17.843175-43.616651l0-248.813166q0-25.773475 17.843175-43.616651t43.616651-17.843175l247.821878 0zM868.367861 589.81607q25.773475 0 43.616651 17.843175t17.843175 43.616651l0 248.813166q0 25.773475-17.843175 43.616651t-43.616651 17.843175l-247.821878 0q-25.773475 0-44.112294-17.843175t-18.338819-43.616651l0-248.813166q0-25.773475 18.338819-43.616651t44.112294-17.843175l247.821878 0zM1006.156825 203.21394q19.82575 19.82575 19.82575 46.590513t-19.82575 45.599226l-184.379477 184.379477q-19.82575 19.82575-46.094869 19.82575t-46.094869-19.82575l-184.379477-184.379477q-18.834463-18.834463-18.834463-45.599226t18.834463-46.590513l184.379477-184.379477q19.82575-18.834463 46.094869-18.834463t46.094869 18.834463z" fill="#0061b2" ></path></symbol><symbol id="icon-wenjianjia-copy" viewBox="0 0 1024 1024"><path d="M855.04 385.024q19.456 2.048 38.912 10.24t33.792 23.04 21.504 37.376 2.048 54.272q-2.048 8.192-8.192 40.448t-14.336 74.24-18.432 86.528-19.456 76.288q-5.12 18.432-14.848 37.888t-25.088 35.328-36.864 26.112-51.2 10.24l-567.296 0q-21.504 0-44.544-9.216t-42.496-26.112-31.744-40.96-12.288-53.76l0-439.296q0-62.464 33.792-97.792t95.232-35.328l503.808 0q22.528 0 46.592 8.704t43.52 24.064 31.744 35.84 12.288 44.032l0 11.264-53.248 0q-40.96 0-95.744-0.512t-116.736-0.512-115.712-0.512-92.672-0.512l-47.104 0q-26.624 0-41.472 16.896t-23.04 44.544q-8.192 29.696-18.432 62.976t-18.432 61.952q-10.24 33.792-20.48 65.536-2.048 8.192-2.048 13.312 0 17.408 11.776 29.184t29.184 11.776q31.744 0 43.008-39.936l54.272-198.656q133.12 1.024 243.712 1.024l286.72 0z" ></path></symbol></svg>',(a=>{var l=(r=(r=document.getElementsByTagName("script"))[r.length-1]).getAttribute("data-injectcss"),r=r.getAttribute("data-disable-injectsvg");if(!r){var n,i,o,p,s,u=function(g,d){d.parentNode.insertBefore(g,d)};if(l&&!a.__iconfont__svg__cssinject__){a.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(g){console&&console.log(g)}}n=function(){var g,d=document.createElement("div");d.innerHTML=a._iconfont_svg_string_4827314,(d=d.getElementsByTagName("svg")[0])&&(d.setAttribute("aria-hidden","true"),d.style.position="absolute",d.style.width=0,d.style.height=0,d.style.overflow="hidden",d=d,(g=document.body).firstChild?u(d,g.firstChild):g.appendChild(d))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(n,0):(i=function(){document.removeEventListener("DOMContentLoaded",i,!1),n()},document.addEventListener("DOMContentLoaded",i,!1)):document.attachEvent&&(o=n,p=a.document,s=!1,b(),p.onreadystatechange=function(){p.readyState=="complete"&&(p.onreadystatechange=null,y())})}function y(){s||(s=!0,o())}function b(){try{p.documentElement.doScroll("left")}catch{return void setTimeout(b,50)}y()}})(window);const m0=["onClick"],y0=["src"],g0=["src"],b0=e.defineComponent({__name:"index",props:{items:{default:()=>[]},disabled:{type:Boolean,default:!1},textSize:{default:void 0},textColor:{default:void 0},backGround:{default:void 0},backGroundImage:{default:void 0},backgroundUrl:{default:""},backgroundPosition:{default:"Center"},iconUrl:{default:void 0},calculator:{default:()=>[]},textBackColor:{default:void 0}},emits:["update:backGroundImage"],setup(a,{emit:l}){const r=a,n=l,i=e.ref(null),o=e.ref(null),p=x=>{var E,M,O,Q;let k={};if(x!=null&&x.find(J=>J==null?void 0:J.includes("@TextSize"))){let J=(M=(E=x==null?void 0:x.find(ye=>ye==null?void 0:ye.includes("@TextSize")))==null?void 0:E.split("="))==null?void 0:M[1];k.fontSize=`${J}px`}if(x!=null&&x.find(J=>J==null?void 0:J.includes("@TextRGBA"))){let J=(Q=(O=x==null?void 0:x.find(ye=>ye==null?void 0:ye.includes("@TextRGBA")))==null?void 0:O.split("="))==null?void 0:Q[1];k.color=re.rgbaToColor(J)}return k},s=e.computed(()=>{const x=Number(r==null?void 0:r.textSize),k=re.rgbaToColor(r==null?void 0:r.textColor),E={},M={};return!Number.isNaN(x)&&x&&(E.fontSize=`${x}px`,M.fontSize=`${x}px`),k&&(E.color=k,M.color=k),{label:E,value:M}}),u=e.ref(""),y=e.ref(""),b=e.ref(!1),g=async x=>{if(x){y.value&&(URL.revokeObjectURL(y.value),y.value="");try{const k=await R.platformDownloadFile({url:x}),E=new Blob([k==null?void 0:k.data],{type:(k==null?void 0:k.headers["content-type"])||"image/*"});y.value=URL.createObjectURL(E)}catch{y.value=""}}};e.watch(()=>r==null?void 0:r.backGroundImage,x=>{x&&(u.value=x)},{immediate:!0}),e.watch(u,x=>{g(x)},{immediate:!0});const d=async()=>{var x,k;((x=r==null?void 0:r.calculator)==null?void 0:x.length)>0&&await Ft(r==null?void 0:r.items,"Auto",[],r==null?void 0:r.calculator),(k=o.value)==null||k.click()},C=async x=>{var M,O,Q;const k=x.target,E=(M=k==null?void 0:k.files)==null?void 0:M[0];if(!E){k.value="";return}b.value=!0;try{const J=new FormData;J.append("file",E);const ye=await R.platformUploadFile(J),te=(Q=(O=ye==null?void 0:ye.data)==null?void 0:O.result)==null?void 0:Q.url;te?(u.value=te,n("update:backGroundImage",te),g(te),Xa.ElMessage.success("背景图片上传成功")):Xa.ElMessage.error("背景图片上传失败")}catch{Xa.ElMessage.error("背景图片上传失败")}finally{b.value=!1,k.value=""}},v=e.computed(()=>{var x,k,E,M;return y.value||(r==null?void 0:r.backgroundUrl)!==""?{backgroundImage:`url("${(x=r==null?void 0:r.backgroundUrl)==null?void 0:x.replace(/\\/g,"/")}")`,backgroundPosition:`${((k=r==null?void 0:r.backgroundPosition)==null?void 0:k.toLowerCase())??"center"} center`,backgroundRepeat:"no-repeat",cursor:((E=r==null?void 0:r.calculator)==null?void 0:E.length)>0?"pointer":"auto"}:{cursor:((M=r==null?void 0:r.calculator)==null?void 0:M.length)>0?"pointer":"auto",background:r!=null&&r.textBackColor?re.rgbaToColor(r==null?void 0:r.textBackColor):void 0}}),H=x=>ul.getComponent(x),T=x=>{if(!x)return;const k=x.querySelector("input, textarea, .el-input__inner");k&&typeof k.focus=="function"&&k.focus()},j=(x,k,E)=>{r.disabled||x.field&&(i.value=k,e.nextTick(()=>{T(E.currentTarget)}))},D=()=>{i.value=null},_=x=>{var E;const k=((E=x==null?void 0:x.field)==null?void 0:E.value)??(x==null?void 0:x.value);return k==null||k===""?"-":k},S=x=>{var Q,J,ye,te;const k=x!=null&&x.width&&x.width>0?x.width:1,M=`calc((100% - ${(k-1)*16}px) / ${k})`;let O;return(Q=x==null?void 0:x.filters)!=null&&Q.find(U=>U==null?void 0:U.includes("@TextBackRGBA"))&&(O=(te=(ye=(J=x==null?void 0:x.filters)==null?void 0:J.find(U=>U==null?void 0:U.includes("@TextBackRGBA")))==null?void 0:ye.split("="))==null?void 0:te[1],O=re.rgbaToColor(O)),{flex:`0 0 ${M}`,maxWidth:M,minWidth:"140px",boxSizing:"border-box",background:O}};return(x,k)=>(e.openBlock(),e.createElementBlock("div",{class:"statistics-cards-container",style:e.normalizeStyle(v.value),onClick:k[1]||(k[1]=E=>d())},[r!=null&&r.backGround?(e.openBlock(),e.createElementBlock("div",{key:0,class:"form-backGround-upload",onClick:k[0]||(k[0]=e.withModifiers(E=>d(),["stop"]))},[e.createElementVNode("input",{ref_key:"bgUploadRef",ref:o,type:"file",accept:"image/*",style:{display:"none"},onChange:C},null,544),k[2]||(k[2]=e.createElementVNode("img",{src:ul._imports_0,class:"bg-upload-icon",alt:"上传背景"},null,-1))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.items,(E,M)=>{var O,Q,J,ye,te,U,q,X;return e.openBlock(),e.createElementBlock("div",{class:"statistics-card",key:M,style:e.normalizeStyle(S(E))},[e.createElementVNode("div",{class:"statistics-label",style:e.normalizeStyle({...s.value.label,...p(E==null?void 0:E.filters)})},e.toDisplayString(E==null?void 0:E.label),5),e.createElementVNode("div",{class:"statistics-value",style:e.normalizeStyle(s.value.value),onClick:ee=>{var pe;return(pe=E.field)!=null&&pe.isNoClick?null:j(E,M,ee)}},[x.iconUrl&&x.backgroundPosition==="Left"?(e.openBlock(),e.createElementBlock("img",{key:0,src:x.iconUrl,class:"bg-upload-icon"},null,8,y0)):e.createCommentVNode("",!0),i.value===M&&E.field?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H(((O=E.field)==null?void 0:O.type)??"Input")),{key:1,modelValue:E.field.value,"onUpdate:modelValue":ee=>E.field.value=ee,isEdit:!0,disabled:(Q=E.field)==null?void 0:Q.disabled,content:((J=E.field)==null?void 0:J.contents)??[],optionUrl:E.field,originalValue:(ye=E.field)==null?void 0:ye.value,config:(te=E.field)==null?void 0:te.config,configModel:((U=E.field)==null?void 0:U.prop)??((q=E.field)==null?void 0:q.name),selectedTagList:((X=E.field)==null?void 0:X.selectValue)??[],onBlur:D,onBlurChange:D},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(_(E)),1)],64)),x.iconUrl&&x.backgroundPosition==="Right"?(e.openBlock(),e.createElementBlock("img",{key:3,src:x.iconUrl,class:"bg-upload-icon"},null,8,g0)):e.createCommentVNode("",!0)],12,m0)],4)}),128))],4))}}),k0=fr._export_sfc(b0,[["__scopeId","data-v-3e28c1c9"]]),Ic=R.defineStore("formToTableComp",{state:()=>({selectArray:[],selectString:""}),actions:{setSelectArray(a){this.selectArray=a},setSelectString(a){this.selectString=a}}}),x0={class:"calculator-content"},w0={class:"calculator-child"},_0={class:"calculator-child"},S0=e.defineComponent({__name:"calculator",setup(a){const l=e.ref(),r=e.ref();return e.onMounted(()=>{l.value=[{type:"Upload",label:"输入",name:"input"}],r.value=[{type:"Upload",label:"输出",name:"output"}]}),(n,i)=>(e.openBlock(),e.createElementBlock("div",x0,[e.createElementVNode("div",w0,[e.createVNode(ul.ssForm,{rowContents:l.value,isRowFlex:!0},null,8,["rowContents"])]),e.createElementVNode("div",_0,[e.createVNode(ul.ssForm,{rowContents:r.value,isEdit:!1,isRowFlex:!0},null,8,["rowContents"])])]))}}),E0=fr._export_sfc(S0,[["__scopeId","data-v-73db0fe7"]]),At=(a,l)=>{let r=a,n=l;return Array.isArray(r)&&(r=r==null?void 0:r.map((i,o)=>{if(Array.isArray(i)){let p={};return i=i==null?void 0:i.forEach((s,u)=>{var y;(y=n==null?void 0:n[u])!=null&&y.prop?p[n[u].prop]=s:Array.isArray(s)&&(p.children=At(s,n))}),Object.assign(p,{id:o})}else return i})),r},Pt=(a,l,r)=>{let n=a,i=l;return n=n==null?void 0:n.map((o,p)=>{var s,u;return!Array.isArray(o)||!((s=i==null?void 0:i[p])!=null&&s.label)&&!r||(o.unshift(((u=i==null?void 0:i[p])==null?void 0:u.label)??""),o.some(y=>Array.isArray(y))&&(o=o==null?void 0:o.map(y=>{var b;return Array.isArray(y)&&(y=Pt(y,(b=i==null?void 0:i[p])==null?void 0:b.children,r)),y}))),o}),n},C0=(a,l,r)=>{if(l==="")return a==null?void 0:a.filter(n=>(n==null?void 0:n.id)!==r);{const n=l.split("-");return T0(a,n,r)}},T0=(a,l,r)=>{let n=a,i=l;return(i==null?void 0:i.length)===0?n=n==null?void 0:n.filter(o=>o.id!==r):n=n==null?void 0:n.map(o=>(o.id.toString()===(i==null?void 0:i[0])&&(i==null||i.shift(),o=Oc(o,i,r)),o)),n},Oc=(a,l,r)=>{var o,p;let n=a,i=l;return(i==null?void 0:i.length)===0?n.children=(o=n.children)==null?void 0:o.filter(s=>s.id!==r):n.children=(p=n.children)==null?void 0:p.map(s=>(s.id.toString()===(i==null?void 0:i[0])&&(i==null||i.shift(),s=Oc(s,i,r)),s)),n},B0=(a,l,r)=>{if(l==="")return r;{const n=l.split("-");return D0(a,n,r)}},D0=(a,l,r)=>{let n=a,i=l;return(i==null?void 0:i.length)===0?n=r:n=n==null?void 0:n.map(o=>(o.id.toString()===(i==null?void 0:i[0])&&(i==null||i.shift(),o=Lc(o,i,r)),o)),n},Lc=(a,l,r)=>{var o;let n=a,i=l;return(i==null?void 0:i.length)===0?n.children=r:n.children=(o=n.children)==null?void 0:o.map(p=>(p.id.toString()===(i==null?void 0:i[0])&&(i==null||i.shift(),p=Lc(p,i,r)),p)),n};class N0{constructor(l={}){hn(this,"url");hn(this,"heartbeatInterval");hn(this,"socket",null);hn(this,"isConnected",!1);hn(this,"heartTimer",null);hn(this,"canvas",null);hn(this,"ctx",null);hn(this,"mainCamCutMode",0);hn(this,"pMainShowStartX",0);hn(this,"pMainShowStartY",0);hn(this,"onLog");hn(this,"onDevCount");hn(this,"onResolution");hn(this,"onCameraStatus");hn(this,"onPhoto");this.url=l.url??"ws://127.0.0.1:22225",this.heartbeatInterval=l.heartbeatInterval??3e3}init(l,r,n){var p;(p=this.canvas)!=null&&p.parentNode&&this.canvas.parentNode.removeChild(this.canvas);const i=document.createElement("canvas");i.style.border="solid 1px #A0A0A0",i.id="MainCamCanvas",i.width=r,i.height=n;const o=i.getContext("2d");if(!o)throw new Error("无法获取 CanvasRenderingContext2D");l.appendChild(i),this.canvas=i,this.ctx=o}async connect(){this.socket&&(this.socket.readyState===WebSocket.OPEN||this.socket.readyState===WebSocket.CONNECTING)||await new Promise((l,r)=>{const n=new WebSocket(this.url);n.binaryType="arraybuffer",n.onopen=()=>{this.socket=n,this.isConnected=!0,this.startHeartbeat(),this.log("socket.onopen"),l()},n.onerror=i=>{this.isConnected=!1,this.log("socket.onerror"),r(i)},n.onclose=()=>{this.isConnected=!1,this.stopHeartbeat(),this.log("socket.onclose")},n.onmessage=i=>{this.handleMessage(i)}})}destroy(){var l;this.stopHeartbeat();try{this.closeCamera()}catch{}if(this.socket){try{this.socket.onmessage=null}catch{}try{this.socket.onopen=null}catch{}try{this.socket.onerror=null}catch{}try{this.socket.onclose=null}catch{}try{this.socket.close()}catch{}this.socket=null}this.isConnected=!1,(l=this.canvas)!=null&&l.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.canvas=null,this.ctx=null}getDevCount(){this.sendBytes(new Uint8Array([119,136,80]))}getResolution(l=0){this.sendBytes(new Uint8Array([119,136,81,l]))}chooseResolution(l){if(!Array.isArray(l)||l.length===0)return null;const r=l.find(i=>i.width===2592&&i.height===1944);return r||[...l].sort((i,o)=>o.width*o.height-i.width*i.height)[0]||null}openCamera(l=0,r=1280,n=720){if(!this.canvas)throw new Error("请先 init() 传入容器并创建 canvas");const i=new Uint8Array(12);i[0]=119,i[1]=136,i[2]=1,i[3]=l,i[4]=this.canvas.width>>8&255,i[5]=this.canvas.width&255,i[6]=this.canvas.height>>8&255,i[7]=this.canvas.height&255,i[8]=r>>8&255,i[9]=r&255,i[10]=n>>8&255,i[11]=n&255,this.sendBytes(i)}closeCamera(){this.sendBytes(new Uint8Array([119,136,2,0]))}photo(){const i=new Uint8Array(12);i[0]=119,i[1]=136,i[2]=16,i[3]=0,i[4]=0,i[5]=0,i[6]=0,i[7]=0,i[8]=1,i[9]=0,i[10]=0,i[11]=0,this.sendBytes(i)}bestSize(){this.sendBytes(new Uint8Array([119,136,5,0]))}rotateLeft(){this.sendBytes(new Uint8Array([119,136,7,0]))}rotateRight(){this.sendBytes(new Uint8Array([119,136,8,0]))}focus(){this.sendBytes(new Uint8Array([119,136,48,0]))}log(l){var r;(r=this.onLog)==null||r.call(this,l)}sendBytes(l){if(!this.socket||this.socket.readyState!==WebSocket.OPEN||!this.isConnected)throw new Error("socket 未连接");this.socket.send(l.buffer)}startHeartbeat(){this.stopHeartbeat(),this.heartTimer=window.setInterval(()=>{this.log("heartCheck...........")},this.heartbeatInterval)}stopHeartbeat(){this.heartTimer&&(clearInterval(this.heartTimer),this.heartTimer=null)}handleMessage(l){var i,o,p,s,u,y;const r=new Uint8Array(l.data);if(r.length<=0)return;if(r[0]===17&&r[1]===17&&r[2]===17){this.log("heart socket!!!!");return}if(r[0]!==85||r[1]!==102)return;const n=r[2];if(n===80){const b=r[3],g=r.length-4,d=new Uint8Array(g);for(let H=0;H<g;H++)d[H]=r[4+H];const v=decodeURIComponent(this.byteToString(d)).split("|");(i=this.onDevCount)==null||i.call(this,b,v);return}if(n===81){const b=r[3]||0,g=[];for(let d=0;d<b;d++){const C=(r[4+d*4+0]||0)*256+(r[4+d*4+1]||0),v=(r[4+d*4+2]||0)*256+(r[4+d*4+3]||0);g.push({width:C,height:v,text:`${C}*${v}`})}(o=this.onResolution)==null||o.call(this,b,g);return}if(n===1){r[3]===1&&((p=this.onCameraStatus)==null||p.call(this,"opened")),r[3]===3&&((s=this.onCameraStatus)==null||s.call(this,"closed"));return}if(n===16){if(r[3]===1){const g=r[4]*256+r[5],d=r[6]*65536+r[7]*256+r[8];let C="";if(g>0){const T=new Uint8Array(g);for(let j=0;j<g;j++)T[j]=r[9+j];C=decodeURIComponent(this.byteToString(T))}const v=new Uint8Array(d);for(let T=0;T<d;T++)v[T]=r[9+g+T];const H=this.uint8ArrayToString(v);(u=this.onPhoto)==null||u.call(this,{flag:0,imgPath:C,base64:H})}r[3]===2&&((y=this.onPhoto)==null||y.call(this,{flag:2,imgPath:"",base64:""}));return}if(n===204){if(!this.canvas||!this.ctx)return;const b=r[3]*256+r[4],g=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(b,g);let C=11;for(let v=0;v<d.data.length;v+=4)d.data[v+0]=r[C],d.data[v+1]=r[C+1],d.data[v+2]=r[C+2],d.data[v+3]=255,C+=3;this.ctx.putImageData(d,this.pMainShowStartX,this.pMainShowStartY),this.mainCamCutMode;return}}uint8ArrayToString(l){let r="";for(let n=0;n<l.length;n++)r+=String.fromCharCode(l[n]);return r}byteToString(l){let r="";for(let n=0;n<l.length;n++)r+=String.fromCharCode(l[n]);return r}}const A0={style:{display:"flex",gap:"16px",height:"100%"}},z0={key:0,style:{color:"var(--el-text-color-secondary)"}},M0={style:{width:"420px",display:"flex","flex-direction":"column",gap:"16px"}},I0={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px"}},O0={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"}},L0={key:0,style:{height:"100%",display:"flex","align-items":"center","justify-content":"center",color:"var(--el-text-color-secondary)"}},R0={key:1,style:{display:"grid","grid-template-columns":"repeat(2, minmax(0, 1fr))",gap:"8px"}},$0=["src","onClick"],V0=["onClick"],F0={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px",flex:"1","min-height":"0",display:"flex","flex-direction":"column"}},P0={class:"dialog-footer"},H0=e.defineComponent({__name:"index",props:{visible:{type:Boolean,default:!1}},emits:["confirm","cancel"],setup(a,{emit:l}){const r=a,n=l,i=e.ref(null),o=e.ref(!1),p=e.ref([]),s=e.ref(""),u=e.ref(!1),y=e.ref([]),b=new N0({url:"ws://127.0.0.1:22225"});function g(O,Q){var X;const J=O.split(","),ye=((X=J[0].match(/:(.*?);/))==null?void 0:X[1])??"image/jpeg",te=atob(J[1]);let U=te.length;const q=new Uint8Array(U);for(;U--;)q[U]=te.charCodeAt(U);return new File([q],Q,{type:ye})}function d(){b.onLog=O=>{console.log("[GPY]",O)},b.onDevCount=(O,Q)=>{if(s.value+=`设备数量=${O},设备=${Q.join(",")}
|
|
4
4
|
`,O>0){s.value+=`检测到设备,正在获取分辨率...
|
|
@@ -36,4 +36,4 @@ ${mr}`,duration:5e3,showClose:!0})}else Xa.ElMessage.success("导出成功")}els
|
|
|
36
36
|
width: 100%;\r
|
|
37
37
|
height: 100%;
|
|
38
38
|
}\r
|
|
39
|
-
`;Kt(gm);jo.render=ym;jo.__scopeId="data-v-b156a416";jo.__file="packages/Vue3SeamlessScroll.vue";const bm=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},setup(a){const l=a,r=e.ref([]),n=e.ref(),i=e.ref([]),o=e.ref(0),p=e.ref([]),s=e.ref(300),u=()=>{var g;n.value&&(s.value=40*((g=i==null?void 0:i.value)==null?void 0:g.length))};e.onMounted(()=>{e.nextTick(()=>{u()})}),e.watch(()=>l==null?void 0:l.itemData,async()=>{var d;let g=um(l==null?void 0:l.itemData);r.value=(g==null?void 0:g.columns)??[],i.value=(g==null?void 0:g.tableContents)??[],p.value=(d=g==null?void 0:g.columns)==null?void 0:d.map(C=>C==null?void 0:C.label),o.value=o.value+1,u()},{immediate:!0,deep:!0});const y=g=>{var C,v,H,T;return g!=null&&g.column?((v=(C=g==null?void 0:g.column)==null?void 0:C.filter)==null?void 0:v.includes("@TextRGBA"))||((T=(H=g==null?void 0:g.column)==null?void 0:H.filter)==null?void 0:T.includes("@TextBackRGBA")):!1},b=g=>{var _,S,x,k,E,M,O,Q,J,ye,te;const{row:d,column:C,item:v,slotData:H}=g;let T=d!=null&&d[C==null?void 0:C.prop]||(d==null?void 0:d[C==null?void 0:C.prop])===0?((S=(_=d==null?void 0:d[C==null?void 0:C.prop])==null?void 0:_[0])==null?void 0:S.contents)??((d==null?void 0:d[C==null?void 0:C.prop])===0?"0":d==null?void 0:d[C==null?void 0:C.prop]):((k=(x=d==null?void 0:d[v==null?void 0:v.prop])==null?void 0:x[0])==null?void 0:k.contents)??(d==null?void 0:d[v==null?void 0:v.prop])??((M=(E=H==null?void 0:H[v==null?void 0:v.prop])==null?void 0:E[0])==null?void 0:M.contents)??(H==null?void 0:H[v==null?void 0:v.prop])??((J=(Q=d==null?void 0:d[(O=v==null?void 0:v.child)==null?void 0:O.prop])==null?void 0:Q[0])==null?void 0:J.contents)??(d==null?void 0:d[(ye=v==null?void 0:v.child)==null?void 0:ye.prop]),D=Array.isArray(T)&&!(T!=null&&T.every(U=>typeof U=="string"||typeof U=="number"))?"查看":T;if(D=Array.isArray(D)?D.join(","):D,(C==null?void 0:C.formType)==="Date")if(!D||D===""||D===null||D===void 0)D="";else{const U=R.dayjs(D,["YYYY-MM-DD","YYYY/MM/DD","YYYY年MM月DD日","YYYYMMDD"],!0);D=U.isValid()?U.format("YYYYMMDD"):D??""}return Array.isArray(C==null?void 0:C.relatedPages)&&((te=C==null?void 0:C.relatedPages)==null?void 0:te.length)>0&&(D="详情页"),D};return(g,d)=>{var C;return e.openBlock(),e.createElementBlock("div",{class:"seamless-table",ref_key:"containerRef",ref:n},[((C=r.value)==null?void 0:C.length)>0?(e.openBlock(),e.createBlock(ul.ssTable,{key:o.value+JSON.stringify(r.value),columns:r.value,tableData:[],isShowPagination:!1,showIndex:!1,isCardViewport:!1,checkedColumns:p.value,canAddOrDeleteRow:!1,isShowEdit:!1,isShowDelete:!1,allowSelect:!1,allowRowAddOrDelete:!1,hideHeaderContent:!0,class:"table-header"},null,8,["columns","checkedColumns"])):e.createCommentVNode("",!0),i.value.length>0?(e.openBlock(),e.createBlock(e.unref(jo),{list:i.value,visibleCount:5,limitMoveNum:5,step:.5,hover:!0,class:"table-content",key:"scroll-"+o.value,style:e.normalizeStyle({height:s.value+"px"})},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(ul.ssTable,{key:o.value+JSON.stringify(r.value),columns:r.value,tableData:i.value,isShowPagination:!1,showIndex:!1,isCardViewport:!1,checkedColumns:p.value,canAddOrDeleteRow:!1,isShowEdit:!1,isShowDelete:!1,allowSelect:!1,allowRowAddOrDelete:!1,hideHeaderContent:!0},{content:e.withCtx(v=>{var H,T,j,D,_,S,x,k,E,M,O,Q,J,ye,te,U,q,X;return[y(v)?(e.openBlock(),e.createBlock(wc,{key:0,value:b(v),columnContent:v==null?void 0:v.column},null,8,["value","columnContent"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"table-cell-content",style:e.normalizeStyle({color:!Array.isArray(b(v))&&((T=(H=b(v))==null?void 0:H.toString())!=null&&T.includes(".txt")||(D=(j=b(v))==null?void 0:j.toString())!=null&&D.includes(".cpt")||(S=(_=b(v))==null?void 0:_.toString())!=null&&S.includes(".cyd"))?"var(--vertical-menuitem-active-bg)":"",textDecoration:!Array.isArray(b(v))&&((k=(x=b(v))==null?void 0:x.toString())!=null&&k.includes(".txt")||(M=(E=b(v))==null?void 0:E.toString())!=null&&M.includes(".cpt")||(Q=(O=b(v))==null?void 0:O.toString())!=null&&Q.includes(".cyd"))?"underline":"",cursor:!Array.isArray(b(v))&&((ye=(J=b(v))==null?void 0:J.toString())!=null&&ye.includes(".txt")||(U=(te=b(v))==null?void 0:te.toString())!=null&&U.includes(".cpt")||(X=(q=b(v))==null?void 0:q.toString())!=null&&X.includes(".cyd"))?"pointer":"",marginLeft:(v==null?void 0:v.colIndex)===0?`${((v==null?void 0:v.level)??0)*20}px`:0})},e.toDisplayString(b(v)===0?"0":b(v)),5))]}),_:1},8,["columns","tableData","checkedColumns"]))]),_:1},8,["list","style"])):e.createCommentVNode("",!0)],512)}}}),km=fr._export_sfc(bm,[["__scopeId","data-v-
|
|
39
|
+
`;Kt(gm);jo.render=ym;jo.__scopeId="data-v-b156a416";jo.__file="packages/Vue3SeamlessScroll.vue";const bm=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},setup(a){const l=a,r=e.ref([]),n=e.ref(),i=e.ref([]),o=e.ref(0),p=e.ref([]),s=e.ref(300),u=()=>{var g;n.value&&(s.value=Math.max(40*((g=i==null?void 0:i.value)==null?void 0:g.length),100))};e.onMounted(()=>{e.nextTick(()=>{u()})}),e.watch(()=>l==null?void 0:l.itemData,async()=>{var d;let g=um(l==null?void 0:l.itemData);r.value=(g==null?void 0:g.columns)??[],i.value=(g==null?void 0:g.tableContents)??[],p.value=(d=g==null?void 0:g.columns)==null?void 0:d.map(C=>C==null?void 0:C.label),o.value=o.value+1,u()},{immediate:!0,deep:!0});const y=g=>{var C,v,H,T;return g!=null&&g.column?((v=(C=g==null?void 0:g.column)==null?void 0:C.filter)==null?void 0:v.includes("@TextRGBA"))||((T=(H=g==null?void 0:g.column)==null?void 0:H.filter)==null?void 0:T.includes("@TextBackRGBA")):!1},b=g=>{var _,S,x,k,E,M,O,Q,J,ye,te;const{row:d,column:C,item:v,slotData:H}=g;let T=d!=null&&d[C==null?void 0:C.prop]||(d==null?void 0:d[C==null?void 0:C.prop])===0?((S=(_=d==null?void 0:d[C==null?void 0:C.prop])==null?void 0:_[0])==null?void 0:S.contents)??((d==null?void 0:d[C==null?void 0:C.prop])===0?"0":d==null?void 0:d[C==null?void 0:C.prop]):((k=(x=d==null?void 0:d[v==null?void 0:v.prop])==null?void 0:x[0])==null?void 0:k.contents)??(d==null?void 0:d[v==null?void 0:v.prop])??((M=(E=H==null?void 0:H[v==null?void 0:v.prop])==null?void 0:E[0])==null?void 0:M.contents)??(H==null?void 0:H[v==null?void 0:v.prop])??((J=(Q=d==null?void 0:d[(O=v==null?void 0:v.child)==null?void 0:O.prop])==null?void 0:Q[0])==null?void 0:J.contents)??(d==null?void 0:d[(ye=v==null?void 0:v.child)==null?void 0:ye.prop]),D=Array.isArray(T)&&!(T!=null&&T.every(U=>typeof U=="string"||typeof U=="number"))?"查看":T;if(D=Array.isArray(D)?D.join(","):D,(C==null?void 0:C.formType)==="Date")if(!D||D===""||D===null||D===void 0)D="";else{const U=R.dayjs(D,["YYYY-MM-DD","YYYY/MM/DD","YYYY年MM月DD日","YYYYMMDD"],!0);D=U.isValid()?U.format("YYYYMMDD"):D??""}return Array.isArray(C==null?void 0:C.relatedPages)&&((te=C==null?void 0:C.relatedPages)==null?void 0:te.length)>0&&(D="详情页"),D};return(g,d)=>{var C;return e.openBlock(),e.createElementBlock("div",{class:"seamless-table",ref_key:"containerRef",ref:n},[((C=r.value)==null?void 0:C.length)>0?(e.openBlock(),e.createBlock(ul.ssTable,{key:o.value+JSON.stringify(r.value),columns:r.value,tableData:[],isShowPagination:!1,showIndex:!1,isCardViewport:!1,checkedColumns:p.value,canAddOrDeleteRow:!1,isShowEdit:!1,isShowDelete:!1,allowSelect:!1,allowRowAddOrDelete:!1,hideHeaderContent:!0,class:"table-header"},null,8,["columns","checkedColumns"])):e.createCommentVNode("",!0),i.value.length>0?(e.openBlock(),e.createBlock(e.unref(jo),{list:i.value,visibleCount:5,limitMoveNum:5,step:.5,hover:!0,class:"table-content",key:"scroll-"+o.value,style:e.normalizeStyle({height:s.value+"px"})},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(ul.ssTable,{key:o.value+JSON.stringify(r.value),columns:r.value,tableData:i.value,isShowPagination:!1,showIndex:!1,isCardViewport:!1,checkedColumns:p.value,canAddOrDeleteRow:!1,isShowEdit:!1,isShowDelete:!1,allowSelect:!1,allowRowAddOrDelete:!1,hideHeaderContent:!0},{content:e.withCtx(v=>{var H,T,j,D,_,S,x,k,E,M,O,Q,J,ye,te,U,q,X;return[y(v)?(e.openBlock(),e.createBlock(wc,{key:0,value:b(v),columnContent:v==null?void 0:v.column},null,8,["value","columnContent"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"table-cell-content",style:e.normalizeStyle({color:!Array.isArray(b(v))&&((T=(H=b(v))==null?void 0:H.toString())!=null&&T.includes(".txt")||(D=(j=b(v))==null?void 0:j.toString())!=null&&D.includes(".cpt")||(S=(_=b(v))==null?void 0:_.toString())!=null&&S.includes(".cyd"))?"var(--vertical-menuitem-active-bg)":"",textDecoration:!Array.isArray(b(v))&&((k=(x=b(v))==null?void 0:x.toString())!=null&&k.includes(".txt")||(M=(E=b(v))==null?void 0:E.toString())!=null&&M.includes(".cpt")||(Q=(O=b(v))==null?void 0:O.toString())!=null&&Q.includes(".cyd"))?"underline":"",cursor:!Array.isArray(b(v))&&((ye=(J=b(v))==null?void 0:J.toString())!=null&&ye.includes(".txt")||(U=(te=b(v))==null?void 0:te.toString())!=null&&U.includes(".cpt")||(X=(q=b(v))==null?void 0:q.toString())!=null&&X.includes(".cyd"))?"pointer":"",marginLeft:(v==null?void 0:v.colIndex)===0?`${((v==null?void 0:v.level)??0)*20}px`:0})},e.toDisplayString(b(v)===0?"0":b(v)),5))]}),_:1},8,["columns","tableData","checkedColumns"]))]),_:1},8,["list","style"])):e.createCommentVNode("",!0)],512)}}}),km=fr._export_sfc(bm,[["__scopeId","data-v-786bdd41"]]),Mu=e.ref([{name:"表格",type:"table",comp:"Table",icon:"Table"},{name:"表单",type:"form",comp:"Form",icon:"Form"},{name:"折叠",type:"fold",comp:"Fold",icon:"Fold"},{name:"头像",type:"avatar",comp:"AvatarUpload",icon:"Avatar"},{name:"签名",type:"signature",comp:"Signature",icon:"Signature"},{name:"步骤条",type:"step",comp:"Step",icon:"Step"},{name:"时间线",type:"timeLine",comp:"TimeLine",icon:"TimeLine"},{name:"标签页",type:"tabs",comp:"Tabs",icon:"Tabs"},{name:"图表",type:"chart",comp:"Chart",icon:"chart-new"},{name:"行内布局",type:"layout",comp:"Layout",icon:"ai13"}]),xm={TABLE:ru,FORM:Us,STATICFORM:nu,TABLEOPERATE:Kv,TABLESTYLE:p6,TABLEEXTEND:h6,TABLEINTERACTION:y6,FORMOPERATE:qs,FOLD:G6,CALCULATOR:Q6,METHODBUTTON:l4,AVATARUPLOAD:_s.ssAvatar,SIGNATURE:_s.ssSignature,FORMTOP:Us,STEP:h4,STEPOPERATE:$6,TIMELINE:k4,TIMELINEOPERATE:U6,FORMTOPOPERATE:qs,SIGNATUREOPERATE:d4,AVATARUPLOADOPERATE:i4,TABS:_4,TABSOPERATE:s2,CHART:_2,CHARTOPERATE:I2,LAYOUT:R2,LAYOUTOPERATE:W2,PARENTITEM:am,RADIO:nm,CAROUSEL:im,SEAMSCROLL:km};function Fi(a){return xm[a==null?void 0:a.toUpperCase()]||null}exports.De=Au;exports.activeStepInfo=Ii;exports.addContents=ao;exports.addVisibleDialog=jt;exports.affixItems=x3;exports.allMapContents=It;exports.analyzeMenu=Ec;exports.cacheNewData=qc;exports.clickMainKey=Kc;exports.clickSavePage=k3;exports.clickStep=Jc;exports.clickTrigger=Gc;exports.compId=oi;exports.compNames=Wc;exports.compShow=$i;exports.existLayouts=D3;exports.fixChangeValue=Po;exports.generateLayouts=i6;exports.getComponent=Fi;exports.getComponents=lo;exports.getPageConstruct=Ep;exports.getPageData=qr;exports.getSliceContLength=O3;exports.gridRowHeight=Qv;exports.gridRowHeightHmPg=cu;exports.isStepLayout=Xc;exports.newGenerateLayouts=s6;exports.onBack=g3;exports.onButtonChange=E3;exports.onChange=Oo;exports.onClick=b3;exports.onClickStep=N3;exports.onContentChange=Lo;exports.onExtendTaskEnd=B3;exports.onOk=C3;exports.onPageBack=z3;exports.onPageChange=Ro;exports.onSelectFixContent=y3;exports.renderShowItems=jc;exports.showItems=xr;exports.sliceTableLength=Uc;exports.slotContent=Mu;exports.ssTable=ru;exports.st=Vo;exports.stepItems=L3;exports.tabChange=A3;exports.toolBar=T3;exports.useFormComp=Ht;exports.useModelLoader=v0;exports.verifyButton=M3;
|