ss-component-new 1.3.402 → 1.3.403
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-BYQfa7vv.js → array-C7mGQf0K.js} +2 -2
- package/dist/{array-C-bgn64n.cjs → array-DVSjLCvI.cjs} +1 -1
- package/dist/{index-DiBilDot.cjs → index-B6PD-xI6.cjs} +1 -1
- package/dist/{index-BXX6PW4q.js → index-BD-rGD76.js} +2 -2
- package/dist/{index-slZuD5GM.js → index-BGxJ58ST.js} +3 -3
- package/dist/{index-D3mhwS_3.js → index-BKwBWGa8.js} +7 -7
- package/dist/{index-Dx8o9peq.cjs → index-BXUjjen4.cjs} +1 -1
- package/dist/{index-DNN0q7du.cjs → index-BbOPzdvW.cjs} +1 -1
- package/dist/{index-C7c2mLkS.cjs → index-BlK57Hld.cjs} +1 -1
- package/dist/{index-CRoP1M1c.js → index-BuMDpcw5.js} +1 -1
- package/dist/{index-PbDMJK-o.cjs → index-C5-Qkbkd.cjs} +1 -1
- package/dist/{index-Cxhj38Aj.cjs → index-C7F00lsw.cjs} +1 -1
- package/dist/{index-DFzc2kxS.js → index-CP2sqOuT.js} +7 -7
- package/dist/{index-D2LwuXIC.cjs → index-CPZ9KSRW.cjs} +1 -1
- package/dist/{index-CCajeP_X.cjs → index-CVwv4LxN.cjs} +1 -1
- package/dist/{index-AQhXfUph.js → index-CbMraWrc.js} +1 -1
- package/dist/{index-zc1dvgTu.js → index-CglzMjXC.js} +1 -1
- package/dist/{index-DoF_X4V4.cjs → index-D1f-c75W.cjs} +1 -1
- package/dist/{index-D_vT18Ok.js → index-DOJZTlQX.js} +2 -2
- package/dist/{index-CDtaNtsv.js → index-DSZ0tFwa.js} +1 -1
- package/dist/{index-CEpymaIL.js → index-DcL7nuqr.js} +2 -2
- package/dist/{index-BPoFpZN-.cjs → index-DdgG41py.cjs} +1 -1
- package/dist/{index-BUo9VCVy.cjs → index-DgDt5hIh.cjs} +1 -1
- package/dist/{index-TZzhnk4H.js → index-DkXqUIKT.js} +1 -1
- package/dist/{index-BRm-yTLr.js → index-DnFFYa5e.js} +1 -1
- package/dist/{index-BhNlUli5.cjs → index-f38JGA94.cjs} +1 -1
- package/dist/{main-Df9HkpZV.js → main-BQLZO8HY.js} +2 -2
- package/dist/{main-6QFYrXlY.cjs → main-BsAze-BF.cjs} +1 -1
- package/dist/ss-component.cjs +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-DYG6eSPX.js → threeModel-Bhu7rOKW.js} +1 -1
- package/dist/{threeModel-CGog9fq9.cjs → threeModel-D-FvWS_U.cjs} +1 -1
- package/dist/{threeSceneView-RqFWnzHH.cjs → threeSceneView-DCgJg_S7.cjs} +1 -1
- package/dist/{threeSceneView-B-FF__hv.js → threeSceneView-Dgil6mJv.js} +3 -3
- package/dist/{threeSceneViewForCPMPIP-j9BsLVDR.cjs → threeSceneViewForCPMPIP-DUTo0lpU.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-Dg28VsSK.js → threeSceneViewForCPMPIP-E4vym4PB.js} +1 -1
- package/dist/{threeViewerHost-ClqHAdKi.cjs → threeViewerHost-5A2jHeBY.cjs} +1 -1
- package/dist/{threeViewerHost-7vwQRs2b.js → threeViewerHost-BUCEw4Ve.js} +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Au=Object.defineProperty;var zu=(a,l,n)=>l in a?Au(a,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[l]=n;var en=(a,l,n)=>zu(a,typeof l!="symbol"?l+"":l,n);const e=require("vue"),Ua=require("./request-Dl8yi2iS.cjs"),A=require("./index-Pve69buQ.cjs"),nl=require("./index-C7c2mLkS.cjs"),ce=require("./index-BszVYrt4.cjs"),Xl=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Tl=require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BB3g-g6w.cjs"),Br=require("./index-BOkUwKV5.cjs"),So=require("./threeViewerHost-ClqHAdKi.cjs"),Mr=require("./index-DmwxzDGW.cjs"),ls=require("./index-BUo9VCVy.cjs"),Ys=require("./index-DBxrIHI8.cjs");;/* empty css */const Eo=require("./isString-CGrvcmBw.cjs"),rs=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),Js=require("./index-BVaHwt5f.cjs"),Mu=require("./index-BRyEcXsJ.cjs"),Mn=require("./MTLLoader-B0vEDLTb.cjs"),Iu=require("./URDFLoader-g-0sln-a.cjs");var Ou="[object Boolean]";function Xs(a){return a===!0||a===!1||Ua.isObjectLike(a)&&Ua.baseGetTag(a)==Ou}function Lu(a){return a===void 0}const Ru=a=>a.match(/\((.*)\)/)[1],$u={__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,n=e.ref(null),r=e.ref(!1),o=e.ref(null);return e.watch(()=>l==null?void 0:l.isVisible,()=>{r.value=l==null?void 0:l.isVisible},{deep:!0,immediate:!0}),e.watch(()=>o.value,()=>{e.nextTick(()=>{var s,h;(h=(s=n.value)==null?void 0:s.updatePopper)==null||h.call(s)})},{deep:!0,immediate:!0}),(s,h)=>{const c=e.resolveComponent("el-popover");return e.openBlock(),e.createBlock(c,{visible:r.value,"onUpdate:visible":h[0]||(h[0]=d=>r.value=d),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:n,"trigger-keys":"[]"},{reference:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(s.$slots,"reference",{ref_key:"referenceRef",ref:o})])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(s.$slots,"content")])]),_:3},8,["visible","trigger","title","placement","width"])}}},Vu=e.defineComponent({__name:"index",props:{value:{type:[String,Number],default:""},columnContent:{type:Object,default:{}}},setup(a){const l=a,n=e.computed(()=>{var d,m,b,u,C,M;const r=l.value??"";let o=(d=l==null?void 0:l.columnContent)==null?void 0:d.filter;if(o=(m=ce.analyzeSplitToContent(o,","))==null?void 0:m.map(k=>((k==null?void 0:k[(k==null?void 0:k.length)-1])===","&&(k=k==null?void 0:k.slice(0,(k==null?void 0:k.length)-1)),k)),o=o==null?void 0:o.find(k=>(k==null?void 0:k[0])==="("),(o==null?void 0:o[0])==="("&&(o=o==null?void 0:o.slice(1,(o==null?void 0:o.length)-1)),o=o==null?void 0:o.split("||"),!o)return{backgroundColor:void 0,color:void 0};let s=(u=(b=l==null?void 0:l.columnContent)==null?void 0:b.options)==null?void 0:u.findIndex(k=>(k==null?void 0:k.value)===r);s=o==null?void 0:o[s],s=ce.analyzeSplitToContent(s,","),s=s==null?void 0:s.map(k=>((k==null?void 0:k[(k==null?void 0:k.length)-1])===","&&(k=k==null?void 0:k.slice(0,(k==null?void 0:k.length)-1)),k));let h=s==null?void 0:s.find(k=>k==null?void 0:k.includes("@TextBackRGBA"));h?h=ce.rgbaToColor((C=h==null?void 0:h.split("="))==null?void 0:C[1]):h=void 0;let c=s==null?void 0:s.find(k=>k==null?void 0:k.includes("@TextRGBA"));return c?c=ce.rgbaToColor((M=c==null?void 0:c.split("="))==null?void 0:M[1]):c=void 0,{backgroundColor:h,color:c}});return(r,o)=>a.value!==void 0&&a.value!==null?(e.openBlock(),e.createElementBlock("span",{key:0,class:"task-status-tag",style:e.normalizeStyle(n.value)},e.toDisplayString(a.value===0?"0":a.value),5)):e.createCommentVNode("",!0)}}),Pu=Xl._export_sfc(Vu,[["__scopeId","data-v-3290070b"]]);function Fu(a,l,n,r={}){if(!a||!l||!n||n.length!==4)return;const o=a.getContext("2d");if(!o)return;const{color:s="rgba(255, 235, 59, 0.3)",strokeWidth:h=2,fillOpacity:c=.2}=r,d=a.getBoundingClientRect(),m=l.getBoundingClientRect(),b=l.naturalWidth,u=l.naturalHeight,C=m.width/b,M=m.height/u,k=Math.min(C,M),W=b*k,I=u*k,j=(d.width-W)/2,L=(d.height-I)/2,E=n.map(([w,g])=>{const S=j+w*W,$=L+g*I;return{x:S,y:$}});o.clearRect(0,0,a.width,a.height),o.beginPath(),o.moveTo(E[0].x,E[0].y);for(let w=1;w<E.length;w++)o.lineTo(E[w].x,E[w].y);o.closePath();const x=s.replace(/[\d.]+\)$/,`${c})`);o.fillStyle=x,o.fill(),o.strokeStyle=s.replace(/[\d.]+\)$/,"1)"),o.lineWidth=h,o.stroke()}function xi(a){if(!a)return;const l=a.getContext("2d");l&&l.clearRect(0,0,a.width,a.height)}function ns(a,l){if(!a||!l)return null;const n=a[l];return!n||!n.bboxNorm||!Array.isArray(n.bboxNorm)||n.bboxNorm.length!==4?null:{bboxNorm:n.bboxNorm,imageName:n.imageName||""}}const ju={key:0,class:"ocr-img-preview-root"},Hu={class:"ocr-img-preview-window"},Uu={key:0,class:"img-preview-body"},qu={class:"img-preview-header"},Wu={class:"img-header-left"},Ku={class:"img-name"},Gu={key:0,class:"img-header-right"},Yu={class:"img-index"},Ju={key:0,class:"img-thumb-list"},Xu=["onClick"],Zu={key:1,class:"thumb-placeholder"},Qu={class:"thumb-name"},ed={class:"img-preview-container"},ad={key:0,class:"img-placeholder"},ld={key:2,class:"img-placeholder"},rd={key:0},nd={key:1},id={key:1,class:"img-placeholder"},od=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 n=a,r=l,o=e.computed({get:()=>n.visible,set:N=>r("update:visible",N)});let s=!1,h="",c=0,d=0,m=0,b=0,u=0,C=0,M=null;const k=N=>{var U,De;const oe=(De=(U=N==null?void 0:N.target)==null?void 0:U.closest)==null?void 0:De.call(U,".ocr-img-preview-window");return oe||document.querySelector(".ocr-img-preview-window")},W=N=>{if(!N||N==="none")return{tx:0,ty:0};let oe=N.match(/matrix\(([^)]+)\)/);if(oe){const U=oe[1].split(",").map(De=>Number(De.trim()));return{tx:(U==null?void 0:U[4])||0,ty:(U==null?void 0:U[5])||0}}if(oe=N.match(/matrix3d\(([^)]+)\)/),oe){const U=oe[1].split(",").map(De=>Number(De.trim()));return{tx:(U==null?void 0:U[12])||0,ty:(U==null?void 0:U[13])||0}}return oe=N.match(/translate\(\s*([-\d.]+)px\s*,\s*([-\d.]+)px\s*\)/),oe?{tx:Number(oe[1])||0,ty:Number(oe[2])||0}:{tx:0,ty:0}},I=(N,oe,U)=>{N.style.transform=`translate(${oe}px, ${U}px)`},j=N=>{const oe=k(N);if(!oe)return;s=!0,M=oe,h="move",c=N.clientX,d=N.clientY;const U=window.getComputedStyle(oe),{tx:De,ty:Ie}=W(U.transform);u=De,C=Ie,document.addEventListener("mousemove",E),document.addEventListener("mouseup",x)},L=(N,oe)=>{const U=k(N);if(!U)return;s=!0,M=U,h=oe,c=N.clientX,d=N.clientY;const De=U.getBoundingClientRect();m=De.width,b=De.height;const Ie=window.getComputedStyle(U),{tx:je,ty:la}=W(Ie.transform);u=je,C=la,document.addEventListener("mousemove",E),document.addEventListener("mouseup",x)},E=N=>{if(!s||!M)return;const oe=N.clientX-c,U=N.clientY-d,De=360,Ie=420;let je=m,la=b,Ta=u,ee=C;if(h==="move"){Ta=u+oe,ee=C+U,I(M,Ta,ee);return}if(h.includes("right")&&(je=Math.max(De,m+oe)),h.includes("bottom")&&(la=Math.max(Ie,b+U)),h.includes("left")){const ca=m-oe;ca<De?(je=De,Ta=u+(m-De)):(je=ca,Ta=u+oe)}if(h.includes("top")){const ca=b-U;ca<Ie?(la=Ie,ee=C+(b-Ie)):(la=ca,ee=C+U)}M.style.width=`${je}px`,M.style.height=`${la}px`,I(M,Ta,ee)},x=()=>{s=!1,h="",M=null,document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",x)},w=e.ref([]),g=e.ref(!1);e.watch(()=>n.images,async N=>{if(!Array.isArray(N)||N.length===0){w.value=[];return}g.value=!0;const oe=[];for(const U of N)if(U.url&&!U.url.startsWith("blob:")&&!U.url.startsWith("http"))try{const De=await Tl.downloadFile(U.url),Ie=URL.createObjectURL(De);oe.push({...U,blobUrl:Ie})}catch(De){console.error(`Failed to load image for preview: ${U.url}`,De),oe.push({...U,blobUrl:""})}else oe.push({...U,blobUrl:U.url});w.value=oe,g.value=!1},{deep:!0,immediate:!0});const S=e.ref(0),$=e.ref(null),V=e.ref(null),ae=e.computed(()=>w.value[S.value]||null),Z=()=>{if(!w.value.length){S.value=0;return}if(n.defaultImageName){const N=w.value.findIndex(oe=>(oe==null?void 0:oe.name)===n.defaultImageName);S.value=N>=0?N:0}else S.value=0},ge=N=>{if(!w.value.length)return;const oe=Math.max(0,Math.min(N,w.value.length-1));S.value=oe},ze=()=>ge(S.value-1),F=()=>ge(S.value+1),ne=N=>{if(!N)return;const oe=w.value.findIndex(U=>(U==null?void 0:U.name)===N);oe>=0&&(S.value=oe)},J=()=>{if(!V.value)return;const N=V.value.parentElement;if(!N)return;const oe=N.getBoundingClientRect();V.value.width=oe.width,V.value.height=oe.height},se=()=>{var De,Ie;if(!V.value||!$.value||!n.focusedFieldName){V.value&&xi(V.value);return}const N=(De=$.value.$el)==null?void 0:De.querySelector("img");if(!N)return;if(!N.complete||N.naturalWidth===0){N.onload=()=>{e.nextTick(()=>{se()})};return}const oe=((Ie=ae.value)==null?void 0:Ie.name)||"",U=ns(n.fieldMeta,n.focusedFieldName);if(!U){xi(V.value);return}if(U.imageName!==oe){xi(V.value);return}J(),Fu(V.value,N,U.bboxNorm)},Be=()=>{e.nextTick(()=>{J(),se()})};e.watch(()=>n.focusedFieldName,()=>{if(!o.value)return;const N=ns(n.fieldMeta,n.focusedFieldName);N!=null&&N.imageName&&ne(N.imageName),e.nextTick(()=>{se()})}),e.watch(()=>{var N;return(N=ae.value)==null?void 0:N.name},()=>{o.value&&e.nextTick(()=>{V.value&&xi(V.value),se()})}),e.watch(()=>n.visible,N=>{N?(Z(),e.nextTick(()=>{J(),se()})):V.value&&xi(V.value)}),e.watch(()=>n.defaultImageName,()=>{o.value&&Z()});let $e=null;e.onMounted(()=>{var N;typeof ResizeObserver<"u"&&($e=new ResizeObserver(()=>{J(),e.nextTick(()=>{se()})}),(N=V.value)!=null&&N.parentElement&&$e.observe(V.value.parentElement))}),e.onUnmounted(()=>{$e&&($e.disconnect(),$e=null),document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",x)});const fe=()=>{V.value&&xi(V.value),r("update:visible",!1),r("close")};return(N,oe)=>{var la,Ta;const U=e.resolveComponent("el-button"),De=e.resolveComponent("el-image"),Ie=e.resolveComponent("Loading"),je=e.resolveComponent("el-icon");return o.value?(e.openBlock(),e.createElementBlock("div",ju,[oe[12]||(oe[12]=e.createElementVNode("div",{class:"ocr-img-preview-backdrop"},null,-1)),e.createElementVNode("div",Hu,[e.createElementVNode("div",{class:"ocr-img-preview-header",onMousedown:e.withModifiers(j,["stop"])},[oe[8]||(oe[8]=e.createElementVNode("span",{class:"ocr-img-preview-title"},"文件预览",-1)),e.createElementVNode("button",{type:"button",class:"ocr-img-preview-close",onClick:fe},"×")],32),e.createElementVNode("div",{class:"resizable-handle top",onMousedown:oe[0]||(oe[0]=e.withModifiers(ee=>L(ee,"top"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle right",onMousedown:oe[1]||(oe[1]=e.withModifiers(ee=>L(ee,"right"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle bottom",onMousedown:oe[2]||(oe[2]=e.withModifiers(ee=>L(ee,"bottom"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle left",onMousedown:oe[3]||(oe[3]=e.withModifiers(ee=>L(ee,"left"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle top-left",onMousedown:oe[4]||(oe[4]=e.withModifiers(ee=>L(ee,"top-left"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle top-right",onMousedown:oe[5]||(oe[5]=e.withModifiers(ee=>L(ee,"top-right"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle bottom-left",onMousedown:oe[6]||(oe[6]=e.withModifiers(ee=>L(ee,"bottom-left"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle bottom-right",onMousedown:oe[7]||(oe[7]=e.withModifiers(ee=>L(ee,"bottom-right"),["stop"]))},null,32),ae.value?(e.openBlock(),e.createElementBlock("div",Uu,[e.createElementVNode("div",qu,[e.createElementVNode("div",Wu,[e.createElementVNode("span",Ku,e.toDisplayString(ae.value.name?ae.value.name+(ae.value.url&&ae.value.url.lastIndexOf(".")!==-1?ae.value.url.substring(ae.value.url.lastIndexOf(".")):""):""),1)]),w.value.length>1?(e.openBlock(),e.createElementBlock("div",Gu,[e.createVNode(U,{size:"small",disabled:S.value===0,onClick:ze},{default:e.withCtx(()=>oe[9]||(oe[9]=[e.createTextVNode("上一张")])),_:1,__:[9]},8,["disabled"]),e.createElementVNode("span",Yu,e.toDisplayString(S.value+1)+" / "+e.toDisplayString(w.value.length),1),e.createVNode(U,{size:"small",disabled:S.value===w.value.length-1,onClick:F},{default:e.withCtx(()=>oe[10]||(oe[10]=[e.createTextVNode("下一张")])),_:1,__:[10]},8,["disabled"])])):e.createCommentVNode("",!0)]),w.value.length>1?(e.openBlock(),e.createElementBlock("div",Ju,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,(ee,ca)=>(e.openBlock(),e.createElementBlock("div",{key:(ee.name||"")+"-"+ca,class:e.normalizeClass(["img-thumb-item",{active:ca===S.value}]),onClick:ue=>ge(ca)},[ee!=null&&ee.blobUrl?(e.openBlock(),e.createBlock(De,{key:0,src:ee.blobUrl,fit:"cover",class:"thumb-image","preview-src-list":[ee.blobUrl],"initial-index":0},null,8,["src","preview-src-list"])):(e.openBlock(),e.createElementBlock("div",Zu,"加载失败")),e.createElementVNode("div",Qu,e.toDisplayString(ee.name||"-"),1)],10,Xu))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",ed,[g.value?(e.openBlock(),e.createElementBlock("div",ad,[e.createVNode(je,{class:"is-loading"},{default:e.withCtx(()=>[e.createVNode(Ie)]),_:1}),oe[11]||(oe[11]=e.createElementVNode("span",null,"图片加载中...",-1))])):(la=ae.value)!=null&&la.blobUrl?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(De,{ref_key:"imageRef",ref:$,src:ae.value.blobUrl,fit:"contain",class:"preview-image","preview-src-list":[ae.value.blobUrl],onLoad:Be},null,8,["src","preview-src-list"]),e.createElementVNode("canvas",{ref_key:"canvasRef",ref:V,class:"highlight-canvas"},null,512)],64)):(e.openBlock(),e.createElementBlock("div",ld,[(Ta=ae.value)!=null&&Ta.url?(e.openBlock(),e.createElementBlock("span",rd,"图片加载失败")):(e.openBlock(),e.createElementBlock("span",nd,"暂无图片"))]))])])):(e.openBlock(),e.createElementBlock("div",id,"暂无图片"))])])):e.createCommentVNode("",!0)}}}),td=Xl._export_sfc(od,[["__scopeId","data-v-48a4ecb1"]]),sd={class:"cert-preview-body"},cd={key:0,class:"pdf-preview-container"},ud={class:"thumbs"},dd=["onClick"],pd={class:"thumb-img"},fd=["src"],hd={key:1,class:"thumb-loading"},vd={class:"thumb-title"},md={class:"viewer"},yd={key:0,class:"viewer-img-wrap"},gd=["src"],bd={key:1,class:"viewer-loading"},kd=e.defineComponent({__name:"CertificatePreview",props:{visible:{type:Boolean},versions:{}},emits:["update:visible"],setup(a,{emit:l}){const n=a,r=l,o=e.ref(""),s=e.ref(""),h=e.computed(()=>(n.versions||[]).find(k=>String(k.versionId)===String(o.value))),c=e.ref({}),d=e.ref(""),m=e.ref("证书附件.pdf"),b=()=>{try{Object.values(c.value||{}).forEach(k=>{k&&URL.revokeObjectURL(k)}),d.value&&URL.revokeObjectURL(d.value)}catch{}c.value={},d.value=""},u=async k=>{if(!k||k.fileType==="pdf")return;const W=Array.isArray(k.images)?k.images:[];for(const I of W){const j=I==null?void 0:I.url;if(!(!j||c.value[j]))try{const L=await A.platformDownloadFile({url:j}),E=URL.createObjectURL(L.data);c.value={...c.value,[j]:E}}catch{}}},C=async k=>{var I;if(!k||k.fileType!=="pdf"){d.value="";return}const W=k.sourceUrl||"";if(!W){d.value="";return}if(d.value){try{URL.revokeObjectURL(d.value)}catch{}d.value=""}try{console.log("[CertificatePreview] 下载PDF附件:",{url:W,versionId:k==null?void 0:k.versionId,certNo:k==null?void 0:k.certNo});const j=await A.platformDownloadFile({url:W});console.log("[CertificatePreview] PDF响应:",{url:W,status:j==null?void 0:j.status,size:(I=j==null?void 0:j.data)==null?void 0:I.size});const L=URL.createObjectURL(j.data);d.value=L;const E=k.certNo?String(k.certNo):"";m.value=E?`${E}.pdf`:"证书附件.pdf"}catch(j){console.error("[CertificatePreview] PDF加载失败:",{url:W,error:j}),d.value=""}};e.watch(()=>n.visible,async k=>{var I;if(!k){b();return}const W=(I=n.versions)==null?void 0:I[0];o.value=(W==null?void 0:W.versionId)||"",await u(W),await C(W)},{immediate:!0}),e.watch(()=>o.value,async()=>{var W,I;const k=h.value;if(!k){s.value="",d.value="";return}if(k.fileType==="pdf"){s.value="",await C(k);return}d.value="",s.value=((I=(W=k.images)==null?void 0:W[0])==null?void 0:I.url)||"",await u(k)},{immediate:!0});const M=()=>{r("update:visible",!1),b()};return e.onBeforeUnmount(()=>{b()}),(k,W)=>{const I=e.resolveComponent("el-empty"),j=e.resolveComponent("el-tab-pane"),L=e.resolveComponent("el-tabs"),E=e.resolveComponent("el-button"),x=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(x,{"model-value":k.visible,title:"证书附件预览",width:"1100px","close-on-click-modal":!1,onClose:M},{footer:e.withCtx(()=>[e.createVNode(E,{id:"themeBorderButton",onClick:M},{default:e.withCtx(()=>W[1]||(W[1]=[e.createTextVNode("关闭")])),_:1,__:[1]})]),default:e.withCtx(()=>[k.versions&&k.versions.length>0?(e.openBlock(),e.createBlock(L,{key:0,modelValue:o.value,"onUpdate:modelValue":W[0]||(W[0]=w=>o.value=w),type:"card",class:"cert-version-tabs"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.versions,w=>(e.openBlock(),e.createBlock(j,{key:w.versionId,name:w.versionId,label:w.label},{default:e.withCtx(()=>[e.createElementVNode("div",sd,[w.fileType==="pdf"?(e.openBlock(),e.createElementBlock("div",cd,[d.value?(e.openBlock(),e.createBlock(nl.SsFilePreview,{key:1,fileName:m.value,blobUrl:d.value},null,8,["fileName","blobUrl"])):(e.openBlock(),e.createBlock(I,{key:0,description:"加载中"}))])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",ud,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.images||[],g=>(e.openBlock(),e.createElementBlock("div",{key:g.url,class:e.normalizeClass(["thumb",{active:g.url===s.value}]),onClick:S=>s.value=g.url},[e.createElementVNode("div",pd,[c.value[g.url]?(e.openBlock(),e.createElementBlock("img",{key:0,src:c.value[g.url]},null,8,fd)):(e.openBlock(),e.createElementBlock("div",hd,"加载中"))]),e.createElementVNode("div",vd,e.toDisplayString(g.name),1)],10,dd))),128))]),e.createElementVNode("div",md,[s.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[c.value[s.value]?(e.openBlock(),e.createElementBlock("div",yd,[e.createElementVNode("img",{class:"viewer-img",src:c.value[s.value]},null,8,gd)])):(e.openBlock(),e.createElementBlock("div",bd,"加载中"))],64)):(e.openBlock(),e.createBlock(I,{key:0,description:"暂无图片"}))])],64))])]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue"])):(e.openBlock(),e.createBlock(I,{key:1,description:"暂无可预览的证书附件"}))]),_:1},8,["model-value"])}}}),xd=Xl._export_sfc(kd,[["__scopeId","data-v-220703c0"]]),wd={class:"ocr-candidate-wrap"},_d={class:"ocr-candidate-left"},Sd={key:1},Ed={key:0},Cd={key:1},Dd={key:2},Bd={key:3},Td={key:0,class:"ocr-candidate-right"},Nd={class:"ocr-candidate-actions"},Ad={key:1},zd={class:"dialog-footer"},Md={__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 n=(S=[])=>{const $=[],V=ae=>{(ae||[]).forEach(Z=>{if(!Z)return;const ge=Z.children||Z.childrens||Z.columns;Array.isArray(ge)&&ge.length>0?V(ge):$.push(Z)})};return V(S),$},r=a,o=l,s=e.computed(()=>{var S;return((S=C.value)==null?void 0:S.allowAdd)!==!1}),h=e.computed(()=>{var S;return((S=C.value)==null?void 0:S.allowReplace)!==!1}),c=S=>{if(!S)return[];if(Array.isArray(S))return S;if(typeof S=="string")try{const $=JSON.parse(S);return Array.isArray($)?$:[]}catch{return[]}return[]},d=S=>{o("preview-file",S)},m=e.ref([]),b=e.ref(0),u=e.ref("");e.watch(()=>r.candidates,S=>{var $,V;m.value=(S||[]).map(ae=>({...ae,...(ae==null?void 0:ae.ocrRow)||{},selectedTargetId:(ae==null?void 0:ae.selectedTargetId)||"",__decision:ae==null?void 0:ae.__decision})),b.value=0,u.value=((V=($=m.value)==null?void 0:$[0])==null?void 0:V.selectedTargetId)||""},{immediate:!0,deep:!0}),e.watch(()=>r.visible,S=>{var $,V;S&&(b.value=0,u.value=((V=($=m.value)==null?void 0:$[0])==null?void 0:V.selectedTargetId)||"")});const C=e.computed(()=>{var $;const S=Number(b.value||0);return(($=m.value||[])==null?void 0:$[S])||null}),M=e.computed(()=>(n(r.columns||[])||[]).filter(V=>V&&V.prop).filter(V=>V.type!=="operate"&&V.label!=="操作"&&V.prop!=="operate")),k=e.computed(()=>M.value.filter(S=>S.label!=="证书附件"&&S.prop!=="证书附件")),W=S=>{if(!S)return;const $=(m.value||[]).findIndex(V=>(V==null?void 0:V.idx)===(S==null?void 0:S.idx));$>-1&&(b.value=$,u.value=(S==null?void 0:S.selectedTargetId)||"")},I=S=>{if(!S){u.value="";return}u.value=String((S==null?void 0:S.id)??"")},j=(S,$="")=>{const V=Number(b.value||0),ae=m.value||[],Z=ae[V];Z&&(Z.__decision=S,Z.selectedTargetId=$,u.value=$,m.value=[...ae])},L=()=>j("skip",""),E=()=>j("add",""),x=()=>{if(!u.value){Ua.ElMessage.warning("请先选择要替换的目标记录");return}j("replace",u.value)},w=()=>{o("update:visible",!1)},g=()=>{const S=m.value||[];if(S.find(V=>(V==null?void 0:V.__decision)==="replace"&&!(V!=null&&V.selectedTargetId))){Ua.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}o("submit",S),o("update:visible",!1)};return(S,$)=>{const V=e.resolveComponent("el-table-column"),ae=e.resolveComponent("svg-icon"),Z=e.resolveComponent("el-table"),ge=e.resolveComponent("el-button"),ze=e.resolveComponent("el-alert");return e.openBlock(),e.createBlock(Br.ssDialog,{title:"OCR候选匹配",visible:a.visible,"close-on-click-modal":!1,width:"90%",style:{maxWidth:"1200px"},onBeforeDestroy:w},{default:e.withCtx(()=>{var F,ne;return[e.createElementVNode("div",wd,[e.createElementVNode("div",_d,[$[0]||($[0]=e.createElementVNode("div",{class:"ocr-candidate-title"},"待处理OCR行(可跳过)",-1)),e.createVNode(Z,{data:m.value,border:"",stripe:"","max-height":"300",style:{width:"100%"},"highlight-current-row":"",onCurrentChange:W},{default:e.withCtx(()=>[e.createVNode(V,{type:"index",label:"序号",width:"60"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,J=>(e.openBlock(),e.createBlock(V,{key:J.prop,label:J.label,prop:J.prop,"min-width":J.minWidth||160},{default:e.withCtx(({row:se})=>[J.label==="证书附件"||J.prop==="证书附件"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[c(se==null?void 0:se[J.prop]).length>0?(e.openBlock(),e.createBlock(ae,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:e.withModifiers(Be=>d({row:se,prop:J.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(e.openBlock(),e.createElementBlock("span",Sd,"-"))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString((se==null?void 0:se[J.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128)),e.createVNode(V,{label:"候选数",width:"90",fixed:"right"},{default:e.withCtx(({row:J})=>[e.createTextVNode(e.toDisplayString(((J==null?void 0:J.candidates)||[]).length),1)]),_:1}),e.createVNode(V,{label:"处理状态",width:"120",fixed:"right"},{default:e.withCtx(({row:J})=>[(J==null?void 0:J.__decision)==="replace"?(e.openBlock(),e.createElementBlock("span",Ed,"替换")):(J==null?void 0:J.__decision)==="add"?(e.openBlock(),e.createElementBlock("span",Cd,"新增")):(J==null?void 0:J.__decision)==="skip"?(e.openBlock(),e.createElementBlock("span",Dd,"跳过")):(e.openBlock(),e.createElementBlock("span",Bd,"未处理"))]),_:1})]),_:1},8,["data"])]),m.value&&m.value.length>0?(e.openBlock(),e.createElementBlock("div",Td,[$[4]||($[4]=e.createElementVNode("div",{class:"ocr-candidate-title"},"当前行候选记录(同编号)",-1)),e.createElementVNode("div",Nd,[e.createVNode(ge,{id:"themeBorderButton",onClick:L},{default:e.withCtx(()=>$[1]||($[1]=[e.createTextVNode("跳过本行")])),_:1,__:[1]}),e.createVNode(ge,{id:"themeBorderButton",onClick:E,disabled:!s.value},{default:e.withCtx(()=>$[2]||($[2]=[e.createTextVNode("新增本行")])),_:1,__:[2]},8,["disabled"]),e.createVNode(ge,{class:"ok-button",id:"themeButton",onClick:x,disabled:!h.value||!u.value},{default:e.withCtx(()=>$[3]||($[3]=[e.createTextVNode("替换选中记录")])),_:1,__:[3]},8,["disabled"])]),(((F=C.value)==null?void 0:F.candidates)||[]).length===0?(e.openBlock(),e.createBlock(ze,{key:0,title:"该编号暂无候选记录,可选择“新增本行”或“跳过本行”。",type:"info",closable:!1,"show-icon":"",style:{margin:"8px 0"}})):e.createCommentVNode("",!0),e.createVNode(Z,{data:((ne=C.value)==null?void 0:ne.candidates)||[],border:"",stripe:"","max-height":"300",style:{width:"100%"},onCurrentChange:I,"highlight-current-row":""},{default:e.withCtx(()=>[e.createVNode(V,{type:"index",label:"序号",width:"60"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.value,J=>(e.openBlock(),e.createBlock(V,{key:J.prop,label:J.label,prop:J.prop,"min-width":J.minWidth||160},{default:e.withCtx(({row:se})=>[J.label==="证书附件"||J.prop==="证书附件"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[c(se==null?void 0:se[J.prop]).length>0?(e.openBlock(),e.createBlock(ae,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:e.withModifiers(Be=>d({row:se,prop:J.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(e.openBlock(),e.createElementBlock("span",Ad,"-"))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString((se==null?void 0:se[J.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128))]),_:1},8,["data"])])):e.createCommentVNode("",!0)])]}),footer:e.withCtx(()=>[e.createElementVNode("div",zd,[e.createVNode(ge,{id:"themeBorderButton",onClick:w},{default:e.withCtx(()=>$[5]||($[5]=[e.createTextVNode("取消")])),_:1,__:[5]}),e.createVNode(ge,{class:"ok-button",id:"themeButton",onClick:g},{default:e.withCtx(()=>$[6]||($[6]=[e.createTextVNode("提交已处理")])),_:1,__:[6]})])]),_:1},8,["visible"])}}},Id=Xl._export_sfc(Md,[["__scopeId","data-v-89e0489c"]]),Od={class:"ocr-preview-content"},Ld={class:"ocr-preview-tip"},Rd={class:"ocr-preview-table"},$d={style:{display:"flex","align-items":"center",gap:"8px"}},Vd={class:"dialog-footer"},Pd={__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 n=a,r=l,o=e.ref([]),s=e.ref([]),h=e.ref([]);e.watch(()=>n.visible,M=>{M&&(o.value=JSON.parse(JSON.stringify(n.ocrPreviewData)),s.value=JSON.parse(JSON.stringify(n.ocrPreviewColumns)),h.value=[...n.ocrSelectedFields])});const c=(M,k)=>{const W=[...h.value];if(k)W.includes(M)||W.push(M);else{const I=W.indexOf(M);I>-1&&W.splice(I,1)}h.value=W,r("update:ocrSelectedFields",W)},d=(M,k,W)=>{r("fieldChange",{rowIndex:M,prop:k,value:W})},m=()=>{r("update:ocrPreviewData",o.value),r("confirm",o.value),r("update:visible",!1)},b=()=>{r("update:visible",!1)},u=M=>typeof M!="number"?"-":`${(M*100).toFixed(1)}%`,C=M=>typeof M!="number"?"#606266":M>=.9?"#67c23a":M>=.7?"#e6a23c":"#f56c6c";return(M,k)=>{const W=e.resolveComponent("el-alert"),I=e.resolveComponent("el-table-column"),j=e.resolveComponent("el-checkbox"),L=e.resolveComponent("el-input"),E=e.resolveComponent("el-table"),x=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(Br.ssDialog,{title:"OCR识别结果预览",visible:a.visible,onBeforeDestroy:b,width:"90%",style:{maxWidth:"1200px"}},{default:e.withCtx(()=>[e.createElementVNode("div",Od,[e.createElementVNode("div",Ld,[e.createVNode(W,{title:"请核对识别结果。系统将按 编号+名称+制造厂 规则匹配并替换;未唯一命中但有编号的,将进入候选选择;无编号则直接新增。",type:"info",closable:!1,"show-icon":""})]),e.createElementVNode("div",Rd,[e.createVNode(E,{data:o.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(I,{type:"index",label:"序号",width:"60",fixed:""}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,w=>(e.openBlock(),e.createBlock(I,{key:w.prop,prop:w.prop,"min-width":w.minWidth||230,"class-name":w.isAccuracy?"accuracy-column":""},{header:e.withCtx(()=>[e.createElementVNode("div",$d,[w.isAccuracy?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(j,{key:0,"model-value":h.value.includes(w.prop),onChange:g=>c(w.prop,g),onClick:k[0]||(k[0]=e.withModifiers(()=>{},["stop"]))},null,8,["model-value","onChange"])),e.createElementVNode("span",null,e.toDisplayString(w.label),1)])]),default:e.withCtx(({row:g,$index:S})=>[w.isAccuracy?(e.openBlock(),e.createElementBlock("span",{key:0,class:"accuracy-value",style:e.normalizeStyle({color:C(g[w.prop]),fontWeight:500})},e.toDisplayString(u(g[w.prop])),5)):(e.openBlock(),e.createBlock(L,{key:1,modelValue:g[w.prop],"onUpdate:modelValue":$=>g[w.prop]=$,size:"small",placeholder:"请输入"+w.label,onChange:$=>d(S,w.prop,$)},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"]))]),_:2},1032,["prop","min-width","class-name"]))),128))]),_:1},8,["data"])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",Vd,[e.createVNode(x,{onClick:b,id:"themeBorderButton"},{default:e.withCtx(()=>k[1]||(k[1]=[e.createTextVNode("取消")])),_:1,__:[1]}),e.createVNode(x,{class:"ok-button",onClick:m,id:"themeButton"},{default:e.withCtx(()=>k[2]||(k[2]=[e.createTextVNode("确认")])),_:1,__:[2]})])]),_:1},8,["visible"])}}},Fd=Xl._export_sfc(Pd,[["__scopeId","data-v-df66eb1f"]]),ni=a=>{var r;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 n=(r=ce.analyzeSplitToContent(l,","))==null?void 0:r.map(o=>((o==null?void 0:o[(o==null?void 0:o.length)-1])===","&&(o=o==null?void 0:o.slice(0,(o==null?void 0:o.length)-1)),pn(o)));return n=n==null?void 0:n.join(","),n};function Zs(a){return Ua.axios.post("http://222.92.178.198:8000/api/v1/excel-chat",a)}function jd(a){return Ua.axios.get(a,{responseType:"blob"})}let Kl="$R",Hd="http://222.92.178.198:55002/AIRobot",st=["Form","BarChart","FormText","FormBlock"];const Qs=a=>{var n,r;let l=(r=ce.analyzeSplitToContent(a,"@"))==null?void 0:r[((n=ce.analyzeSplitToContent(a,"@"))==null?void 0:n.length)-1];return!!(st!=null&&st.some(o=>l==null?void 0:l.includes(o)))},Ud=async(a,l,n,r)=>{var s,h,c,d,m,b,u,C,M,k,W,I,j,L,E,x,w,g,S,$,V,ae,Z,ge,ze,F,ne,J,se,Be,$e,fe,N,oe,U,De,Ie,je,la,Ta,ee,ca;let o=a;if(Qs(o==null?void 0:o[0])){let ue=Xd(o),ta=(s=ue==null?void 0:ue.filter)==null?void 0:s.join(","),Se=[];(h=ue==null?void 0:ue.hideContents)==null||h.forEach(We=>{if(We){const sa=We;sa&&Se.push(`(HideGroup=Yes, prop=${sa})`)}});let te=(c=ue==null?void 0:ue.formContents)==null?void 0:c.filter(We=>{var sa;return(sa=We==null?void 0:We.filters)==null?void 0:sa.includes("@ShowHide=Hide")});(te==null?void 0:te.length)>0&&(te==null||te.forEach(We=>{if(We){const sa=We==null?void 0:We.prop;sa&&Se.push(`(Hide=Yes, prop=${sa})`)}}));let Ne=(r==null?void 0:r.menuFilter)??[];return Array.isArray(Ne)||(Ne=Ne?[Ne]:[]),Ne=[...Ne,...Se],{key:"Form",name:ue==null?void 0:ue.groupName,value:ue==null?void 0:ue.formContents,contents:Array.isArray((d=ue==null?void 0:ue.contents)==null?void 0:d[0])&&((b=(m=ue==null?void 0:ue.contents)==null?void 0:m[0])!=null&&b.every(We=>Array.isArray(We)))?[(C=(u=ue==null?void 0:ue.contents)==null?void 0:u[0])==null?void 0:C[n]]:[ue==null?void 0:ue.contents],filter:"("+ta+")",menuFilter:Ne,groupFilter:ue==null?void 0:ue.groupFilters}}else if(((M=o==null?void 0:o[0])==null?void 0:M[0])!=="&"){let ue=lc(o,r),ta="";(k=ue==null?void 0:ue.tableFilter)!=null&&k.includes(Kl)?ue.tableFilter=(W=ue==null?void 0:ue.tableFilter)==null?void 0:W.replace(Kl,""):ta=(L=(j=(I=ue==null?void 0:ue.tableFilter)==null?void 0:I.replace("(",Kl))==null?void 0:j.split(Kl))==null?void 0:L[0];let Se=[];ue!=null&&ue.tableFilter&&((E=ce.analyzeSplitToContent(ue==null?void 0:ue.tableFilter,","))==null||E.forEach(Ne=>{Ne!=null&&Ne.includes("@ShowHide=Hide")&&Se.push("HideGroup=Yes")}));let te=(r==null?void 0:r.menuFilter)??[];return Array.isArray(te)||(te=te?[te]:[]),te=[...te,...Se],{key:"Table",name:ue==null?void 0:ue.groupName,tableColumns:ue==null?void 0:ue.tableColumns,assistColumn:ue==null?void 0:ue.columns,tableContents:l===1?ue==null?void 0:ue.tableContents:(w=(x=ue==null?void 0:ue.tableContents)==null?void 0:x[n])!=null&&w.every(Ne=>Array.isArray(Ne))?(g=ue==null?void 0:ue.tableContents)==null?void 0:g[n]:[(S=ue==null?void 0:ue.tableContents)==null?void 0:S[n]],filter:ue==null?void 0:ue.tableFilter,menuFilter:te,quotePage:ta!==""?((ae=(V=($=ta==null?void 0:ta.replace("*",Kl))==null?void 0:$.split(Kl))==null?void 0:V[0])==null?void 0:ae.replaceAll(":","/"))??"":void 0,quoteGroup:ta!==""?((se=(J=(ne=(F=(ze=(ge=(Z=ta==null?void 0:ta.replace("*",Kl))==null?void 0:Z.split(Kl))==null?void 0:ge[1])==null?void 0:ze.replace("{",Kl))==null?void 0:F.split(Kl))==null?void 0:ne[0])==null?void 0:J.split(":"))==null?void 0:se.filter(Ne=>Ne!==""))??[]:[],relatedQuotes:ue==null?void 0:ue.relatedQuotes,fatherSyncContents:ue==null?void 0:ue.fatherSyncContents,sonSyncContents:ue==null?void 0:ue.sonSyncContents}}else{let ue=[{label:"序号",prop:"sort"},{label:"函数名称",prop:"函数名称"},{label:"函数关联名",prop:"函数关联名"},{label:"函数参数",prop:"函数参数"},{label:"输出值",prop:"输出值"},{label:"导入文件",prop:"导入文件",formType:"Upload"}],ta=o==null?void 0:o[0];ta=ta==null?void 0:ta.slice(1,ta==null?void 0:ta.length),ta=ce.analyzeSplitToContent(ta,":"),ta=ta==null?void 0:ta[(ta==null?void 0:ta.length)-1];let Se=[];Se.push("1");let te=ta==null?void 0:ta.replace("(",Kl);te=(Be=te==null?void 0:te.split(Kl))==null?void 0:Be[0],Se.push(te);let Ne=ta==null?void 0:ta.replace("(",Kl);if(Ne=($e=Ne==null?void 0:Ne.split(Kl))==null?void 0:$e[1],Ne=(N=(fe=Ne==null?void 0:Ne.replace(")",Kl))==null?void 0:fe.split(Kl))==null?void 0:N[0],(U=(oe=Ne==null?void 0:Ne.replace(",",Kl))==null?void 0:oe.split(Kl))==null||U.forEach(We=>{Se.push(We)}),Se.push(""),Se.push(""),(De=Se==null?void 0:Se[2])!=null&&De.includes(".xlsx")||(Ie=Se==null?void 0:Se[2])!=null&&Ie.includes(".xls"))try{let We=Hd+"/"+(Se==null?void 0:Se[2]),sa=await jd(We),Ya=`生成js函数名称为${Se==null?void 0:Se[1]}的函数,规则为:`+(Se==null?void 0:Se[3])+"。根据上述描述获取对应的总结性详细可运行js函数,不需要任何注释。";if((sa==null?void 0:sa.status)===200){let R=sa==null?void 0:sa.data;const H=new FormData;H.append("file",R,Se==null?void 0:Se[2]),H.append("query",Ya);let X=await Zs(H);X=(Ta=(la=(je=X==null?void 0:X.data)==null?void 0:je.data)==null?void 0:la.response)==null?void 0:Ta.replace("generateResult",Se==null?void 0:Se[1]),Se[Se.length-2]=X,Se[Se.length-1]=[{name:(ca=(ee=Se==null?void 0:Se[2])==null?void 0:ee.split("."))==null?void 0:ca[0],url:We}]}}catch{}return Se=[Se],{key:"Method",name:[],tableContents:Se,tableColumns:ue}}},qd=(a,l)=>{var r,o,s,h,c,d,m,b,u,C,M,k,W,I,j,L,E,x,w,g,S,$,V,ae,Z,ge,ze,F,ne,J,se,Be,$e,fe,N,oe,U,De,Ie,je,la,Ta,ee,ca,ue,ta,Se;let n=(o=(r=ce.analyzeSplitToContent(a,"="))==null?void 0:r.filter(te=>te!=="="))==null?void 0:o.map(te=>((te==null?void 0:te[(te==null?void 0:te.length)-1])==="="&&(te=te==null?void 0:te.slice(0,(te==null?void 0:te.length)-1)),te));if(Qs(n==null?void 0:n[1])){let te=Jd(n),Ne=(c=(h=(s=te==null?void 0:te.filter)==null?void 0:s.replace("@",Kl))==null?void 0:h.split(Kl))==null?void 0:c[0],We=(b=(m=(d=te==null?void 0:te.filter)==null?void 0:d.replace("(",Kl))==null?void 0:m.split(Kl))==null?void 0:b[1],sa=(M=(C=(u=te==null?void 0:te.filter)==null?void 0:u.replace("(",Kl))==null?void 0:C.split(Kl))==null?void 0:M[0];sa="@"+((k=sa==null?void 0:sa.split("@"))==null?void 0:k[1]),We=We==null?void 0:We.slice(0,(We==null?void 0:We.length)-1),We=(I=(W=ce.analyzeSplitToContent(We,","))==null?void 0:W.map(R=>(R=sa+R,R)))==null?void 0:I.join("");let Ya=Ne+"("+We+")";return{key:"Form",name:te==null?void 0:te.group,filter:Ya,formPage:((E=(L=(j=Ne==null?void 0:Ne.replace("*",Kl))==null?void 0:j.split(Kl))==null?void 0:L[0])==null?void 0:E.replaceAll(":","/"))??"",formGroup:((ae=(V=($=(S=(g=(w=(x=Ne==null?void 0:Ne.replace("*",Kl))==null?void 0:x.split(Kl))==null?void 0:w[1])==null?void 0:g.replace("{",Kl))==null?void 0:S.split(Kl))==null?void 0:$[0])==null?void 0:V.split(":"))==null?void 0:ae.filter(R=>R!==""))??[],value:[],menuFilter:l==null?void 0:l.menuFilter}}else{let te=lc(n,l,n==null?void 0:n[1]),Ne="";(Z=te==null?void 0:te.tableFilter)!=null&&Z.includes(Kl)?te.tableFilter=(ge=te==null?void 0:te.tableFilter)==null?void 0:ge.replace(Kl,""):Ne=(ne=(F=(ze=te==null?void 0:te.tableFilter)==null?void 0:ze.replace("(",Kl))==null?void 0:F.split(Kl))==null?void 0:ne[0];let We=(Be=(se=(J=te==null?void 0:te.tableFilter)==null?void 0:J.replace("(",Kl))==null?void 0:se.split(Kl))==null?void 0:Be[0];We=[{menus:(fe=($e=We==null?void 0:We.split("*"))==null?void 0:$e[0])==null?void 0:fe.replaceAll(":","/"),groups:((oe=(N=We==null?void 0:We.split("*"))==null?void 0:N[1])==null?void 0:oe.split(":"))??[]}];let sa=(Ie=(De=(U=te==null?void 0:te.tableFilter)==null?void 0:U.replace("(",Kl))==null?void 0:De.split(Kl))==null?void 0:Ie[1];(sa==null?void 0:sa[(sa==null?void 0:sa.length)-1])===")"&&(sa=sa==null?void 0:sa.slice(0,(sa==null?void 0:sa.length)-1));let Ya=[];te!=null&&te.tableFilter&&((je=ce.analyzeSplitToContent(te==null?void 0:te.tableFilter,","))==null||je.forEach(H=>{H!=null&&H.includes("@ShowHide=Hide")&&Ya.push("HideGroup=Yes")}));let R=(l==null?void 0:l.menuFilter)??[];return Array.isArray(R)||(R=R?[R]:[]),R=[...R,...Ya],{key:"Table",name:te==null?void 0:te.groupName,filter:te==null?void 0:te.tableFilter,tableColumns:te==null?void 0:te.tableColumns,quotePage:Ne!==""?((ee=(Ta=(la=Ne==null?void 0:Ne.replace("*",Kl))==null?void 0:la.split(Kl))==null?void 0:Ta[0])==null?void 0:ee.replaceAll(":","/"))??"":void 0,quoteGroup:Ne!==""?((Se=(ta=(ue=(ca=Ne==null?void 0:Ne.replace("*",Kl))==null?void 0:ca.split(Kl))==null?void 0:ue[1])==null?void 0:ta.split(":"))==null?void 0:Se.filter(H=>H!==""))??[]:[],menuFilter:R,relatedQuotes:We,fatherSyncContents:(te==null?void 0:te.fatherSyncContents)??[],sonSyncContents:(te==null?void 0:te.sonSyncContents)??[]}}},Wd=async(a,l)=>{let n=[],r=l==null?void 0:l.length;return l=l==null?void 0:l.map(async(o,s)=>{let h=[];o=o==null?void 0:o.map(async c=>{var d,m;if(h.push(c),((d=ce.analyzeSplitToContent(a,"="))==null?void 0:d.length)<=2){if(((m=ce.analyzeSplitToContent(a,"="))==null?void 0:m.length)!==0){const b=await Ud(ce.analyzeSplitToContent(a,"="),r,s,c);h.push(b)}}else h.push(qd(a,c))}),await Promise.all(o),n.push(h)}),await Promise.all(l),n};let Fi="/",Kd="$",kn="$R";const ec=a=>{var n,r,o;let l="";if((a==null?void 0:a.length)>1){let s=a==null?void 0:a.filter((h,c)=>c!==0);s=s==null?void 0:s.join(""),s=ce.analyzerSplitToWord(s,")"),(s==null?void 0:s.length)!==1?(s==null?void 0:s[(s==null?void 0:s.length)-1])===")"?s=s==null?void 0:s.join(""):s=(n=s==null?void 0:s.filter((h,c)=>c!==(s==null?void 0:s.length)-1))==null?void 0:n.join(""):s=s==null?void 0:s[0],l="("+s,((o=a==null?void 0:a[0])==null?void 0:o[((r=a==null?void 0:a[0])==null?void 0:r.length)-2])==="@"&&(l="@"+l)}return{filter:l}},ac=(a,l=[])=>{let n=(a==null?void 0:a.map(s=>{var h,c;return(c=s==null?void 0:s.key)==null?void 0:c.slice(1,(h=s==null?void 0:s.key)==null?void 0:h.length)}))??[],r=[];n==null||n.forEach(s=>{var h,c,d,m,b,u,C,M,k,W,I,j,L,E,x,w,g,S,$,V,ae,Z,ge;if(s===""&&(s="算法库:通用算法"),s!=null&&s.includes(Kd)){let ze="",F=!0,ne=ce.analyzerSplitToWord(s,"(");(ne==null?void 0:ne.length)>1&&(ze="("+((h=ce.analyzerSplitToWord(ne==null?void 0:ne[1],")"))==null?void 0:h[0]),((d=ne==null?void 0:ne[0])==null?void 0:d[((c=ne==null?void 0:ne[0])==null?void 0:c.length)-2])==="@"&&(ze="@"+ze));let J=s;J=J==null?void 0:J.replace(ze,""),ze=pn(ze),ze=(m=ce.analyzeSplitToContent(ze,","))==null?void 0:m.map(oe=>((oe==null?void 0:oe[(oe==null?void 0:oe.length)-1])===","&&(oe=oe==null?void 0:oe.slice(0,(oe==null?void 0:oe.length)-1)),oe)),ze!=null&&ze.includes("@ShowHide=Hide")&&(F=!1);let se=(b=J==null?void 0:J.replace("$",kn))==null?void 0:b.split(kn),Be=se==null?void 0:se[1],$e=se==null?void 0:se[0];$e!=null&&$e.includes("[")&&($e=(C=(u=$e==null?void 0:$e.replace("[",kn))==null?void 0:u.split(kn))==null?void 0:C[0],Be=Be+":["+((W=(k=(M=se==null?void 0:se[0])==null?void 0:M.replace("[",kn))==null?void 0:k.split(kn))==null?void 0:W[1])),$e=(j=(I=$e==null?void 0:$e.replaceAll(":","/"))==null?void 0:I.replaceAll("{",""))==null?void 0:j.replaceAll("}",""),($e==null?void 0:$e[($e==null?void 0:$e.length)-1])!=="/"&&($e=$e+"/"),Be=((L=$e==null?void 0:$e.split("/"))==null?void 0:L[0])+":"+Be;let N="";if(!(Be!=null&&Be.includes("[")))N=Be==null?void 0:Be.replaceAll(":","/"),r==null||r.push({path:N,isShow:F,filter:ze,fatherPath:$e});else{let oe=(x=(E=Be==null?void 0:Be.replace("[",kn))==null?void 0:E.split(kn))==null?void 0:x[1];oe=oe==null?void 0:oe.slice(0,(oe==null?void 0:oe.length)-1),oe=(w=ce.analyzeSplitToContent(oe,","))==null?void 0:w.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)),oe==null||oe.forEach(U=>{var De,Ie;N=((Ie=(De=Be==null?void 0:Be.replace("[",kn))==null?void 0:De.split(kn))==null?void 0:Ie[0])+U,N=N==null?void 0:N.replaceAll(":","/"),r==null||r.push({path:N,isShow:F,filter:ze,fatherPath:$e})})}}else{let ze="",F=!0,ne=ce.analyzerSplitToWord(s,"(");(ne==null?void 0:ne.length)>1&&(ze=(g=ec(ne))==null?void 0:g.filter);let J=s;if(J=J==null?void 0:J.replace(ze,""),(ze==null?void 0:ze[0])==="("){ze=ze==null?void 0:ze.slice(1,(ze==null?void 0:ze.length)-1);let Be=[];(S=ce.analyzeSplitToContent(ze,","))==null||S.forEach($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==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),Be.push(pn($e))}),ze=Be==null?void 0:Be.join(",")}else ze=pn(ze);ze=($=ce.analyzeSplitToContent(ze,","))==null?void 0:$.map(Be=>((Be==null?void 0:Be[(Be==null?void 0:Be.length)-1])===","&&(Be=Be==null?void 0:Be.slice(0,(Be==null?void 0:Be.length)-1)),Be)),ze!=null&&ze.includes("@ShowHide=Hide")&&(F=!1),(J==null?void 0:J[(J==null?void 0:J.length)-1])==="}"&&(J=J+":"),J=(V=J==null?void 0:J.replaceAll("{",""))==null?void 0:V.replaceAll("}","");let se="";if(J!=null&&J.includes("[")){let Be=(ae=J==null?void 0:J.replace("[",kn))==null?void 0:ae.split(kn),$e=Be==null?void 0:Be[1];$e=$e==null?void 0:$e.slice(0,($e==null?void 0:$e.length)-1),(ge=(Z=ce.analyzeSplitToContent($e,","))==null?void 0:Z.map(fe=>((fe==null?void 0:fe[(fe==null?void 0:fe.length)-1])===","&&(fe=fe==null?void 0:fe.slice(0,(fe==null?void 0:fe.length)-1)),fe)))==null||ge.forEach(fe=>{se=(Be==null?void 0:Be[0])+fe,se=se==null?void 0:se.replaceAll(":","/"),r==null||r.push({path:se,isShow:F,filter:ze})})}else se=J==null?void 0:J.replaceAll(":","/"),r==null||r.push({path:se,isShow:F,filter:ze})}});let o=A.cloneDeep(r);return(l==null?void 0:l.length)>0&&(o=l),o=o==null?void 0:o.filter(s=>{var h,c,d,m;return!(s!=null&&s.fatherPath)&&((c=(h=s==null?void 0:s.path)==null?void 0:h.split(Fi))==null?void 0:c.length)>1&&((m=(d=s==null?void 0:s.path)==null?void 0:d.split(Fi))==null?void 0:m[1])===""}),o=o==null?void 0:o.map(s=>{var h;return s.path=(h=s.path)==null?void 0:h.replace(Fi,""),s.path}),(o==null?void 0:o.length)>0&&(r=r==null?void 0:r.map(s=>{var c,d,m,b,u,C,M;let h=o==null?void 0:o.find(k=>{var W;return(W=s==null?void 0:s.path)==null?void 0:W.includes(k)});return!(s!=null&&s.fatherPath)&&h&&!((c=s==null?void 0:s.path)!=null&&c.includes(Fi))&&!(o!=null&&o.find(k=>(s==null?void 0:s.path)===k))&&(s.path=h+Fi+((M=(m=(d=s==null?void 0:s.path)==null?void 0:d.split(h))==null?void 0:m[1])==null?void 0:M.slice(1,(C=(u=(b=s==null?void 0:s.path)==null?void 0:b.split(h))==null?void 0:u[1])==null?void 0:C.length))),s})),r},Gd=(a,l)=>ac([{key:a}],l),Yd=async(a,l)=>{const n=[],r=Gd(a==null?void 0:a.key,l);return r&&(r==null?void 0:r.length)>0&&(r==null||r.forEach(s=>{n.push([{key:"path",value:s==null?void 0:s.path,parentPath:(s==null?void 0:s.parentPath)??"",isShow:s==null?void 0:s.isShow,menuFilter:s==null?void 0:s.filter}])})),await Wd(a==null?void 0:a.value,n)};let gl="$R",Hi="[Any]";const Jd=a=>{var h,c;let l={},r=a==null?void 0:a[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.split(":"),l.group=r;let o=a==null?void 0:a[1],s;return o!=null&&o.includes("{")?s=(c=(h=o==null?void 0:o.replaceAll("{",""))==null?void 0:h.replaceAll("}",""))==null?void 0:c.replaceAll(Hi,""):s=o==null?void 0:o.replaceAll(Hi,""),(s==null?void 0:s[0])==="$"&&(s=s==null?void 0:s.slice(1,s==null?void 0:s.length)),l.filter=s,l},Xd=a=>{var C,M,k,W,I,j;let l=[],n=[],r=[],o=[],s=[],h=[],c="",d=a==null?void 0:a[0];(d==null?void 0:d[0])==="*"&&(d=d==null?void 0:d.slice(1,d==null?void 0:d.length));let m=ce.analyzeSplitToContent(d,":");(C=m==null?void 0:m.filter(L=>(L==null?void 0:L[0])!=="{"&&(L==null?void 0:L[0])!=="["))==null||C.forEach(L=>{var x,w,g;(L==null?void 0:L[(L==null?void 0:L.length)-1])===":"&&(L=L==null?void 0:L.slice(0,(L==null?void 0:L.length)-1));let E=ce.analyzerSplitToWord(L,"(");if((E==null?void 0:E.length)>1){c=(x=ec(E))==null?void 0:x.filter;let S=L==null?void 0:L.replace(c,"");if(r.push(S),(c==null?void 0:c[0])==="("){c=c==null?void 0:c.slice(1,(c==null?void 0:c.length)-1);let $=[];(w=ce.analyzeSplitToContent(c,","))==null||w.forEach(V=>{(V==null?void 0:V[(V==null?void 0:V.length)-1])===","&&(V=V==null?void 0:V.slice(0,(V==null?void 0:V.length)-1)),(V==null?void 0:V[0])==="("&&(V=V==null?void 0:V.slice(1,(V==null?void 0:V.length)-1)),(V==null?void 0:V[0])!=="@"&&(V="@"+V),$.push(pn(V))}),c=$==null?void 0:$.join(",")}else c=pn(c);c=(g=ce.analyzeSplitToContent(c,","))==null?void 0:g.map($=>(($==null?void 0:$[($==null?void 0:$.length)-1])===","&&($=$==null?void 0:$.slice(0,($==null?void 0:$.length)-1)),$)),c!=null&&c.includes("@ShowHide=Hide")&&h.push(S),o=[...o,...c]}else r.push(E==null?void 0:E[0])});let b=(M=m==null?void 0:m.filter(L=>(L==null?void 0:L[0])==="{"))==null?void 0:M[0],u=(k=m==null?void 0:m.filter(L=>(L==null?void 0:L[0])==="["))==null?void 0:k[0];return l=Di(u??""),l!=null&&l.every(L=>Array.isArray(L))&&(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)),s=(W=ce.analyzeSplitToContent(b,"@"))==null?void 0:W[1],s="@"+s,b=b==null?void 0:b.replace(s,""),s=pn(s),s=(I=ce.analyzeSplitToContent(s,","))==null?void 0:I.map(L=>((L==null?void 0:L[(L==null?void 0:L.length)-1])===","&&(L=L==null?void 0:L.slice(0,(L==null?void 0:L.length)-1)),L)),(b==null?void 0:b[0])==="{"&&(b=b==null?void 0:b.slice(1,(b==null?void 0:b.length)-1)),b=(j=ce.analyzeSplitToContent(b,","))==null?void 0:j.map(L=>((L==null?void 0:L[(L==null?void 0:L.length)-1])===","&&(L=L==null?void 0:L.slice(0,(L==null?void 0:L.length)-1)),L)),b==null||b.forEach((L,E)=>{var se,Be,$e,fe,N,oe,U,De,Ie,je,la,Ta,ee,ca,ue,ta,Se,te,Ne,We,sa,Ya,R,H,X,ve,de,va,na,Pe,xa,Me,ma,Oa,za,pa;let x=[],w=[],g=[],S="",$="",V=!1,ae,Z=[],ge=[],ze=[],F="Input",ne=[],J=[];if(L!=null&&L.includes("==")){ae=(se=L==null?void 0:L.split("=="))==null?void 0:se[0];let Ca=(Be=L==null?void 0:L.split("=="))==null?void 0:Be[1],Ae="";(($e=ce.analyzeSplitToContent(Ca,"$"))==null?void 0:$e.length)>1&&((fe=ce.analyzeSplitToContent(Ca,"$"))==null?void 0:fe[0])!=="$"?(Ae=(N=ce.analyzeSplitToContent(Ca,"$"))==null?void 0:N[0],Ae=Ae==null?void 0:Ae.slice(0,(Ae==null?void 0:Ae.length)-1)):((oe=ce.analyzeSplitToContent(Ca,"}"))==null?void 0:oe.length)>1&&(Ae=(U=ce.analyzeSplitToContent(Ca,"}"))==null?void 0:U[1]);let he=Ca==null?void 0:Ca.replace(Ae,"");if((Ae==null?void 0:Ae[0])==="("&&(Ae=Ae==null?void 0:Ae.slice(1,(Ae==null?void 0:Ae.length)-1)),(De=ce.analyzeSplitToContent(Ae,","))==null||De.forEach(Y=>{var me;(Y==null?void 0:Y[0])!=="@"&&(Y="@"+Y),(Y==null?void 0:Y[(Y==null?void 0:Y.length)-1])===","&&(Y=Y==null?void 0:Y.slice(0,(Y==null?void 0:Y.length)-1));let xe=pn(Y);(me=ce.analyzeSplitToContent(xe,","))==null||me.forEach(qe=>{(qe==null?void 0:qe[(qe==null?void 0:qe.length)-1])===","&&(qe=qe==null?void 0:qe.slice(0,(qe==null?void 0:qe.length)-1)),x.push(qe)})}),(he==null?void 0:he[0])==="$"&&(he=he==null?void 0:he.slice(1,he==null?void 0:he.length)),he!=null&&he.includes("&")){let Y=he;if((he==null?void 0:he[0])==="("){let me=(Ie=ce.analyzeSplitToContent(he,"&"))==null?void 0:Ie.map(qe=>((qe==null?void 0:qe[(qe==null?void 0:qe.length)-1])==="&"&&(qe=qe==null?void 0:qe.slice(0,(qe==null?void 0:qe.length)-1)),qe));Y=me==null?void 0:me[1],me=me==null?void 0:me[0],(me==null?void 0:me[0])!=="@"&&(me="@"+me),S=pn(me)}(Y==null?void 0:Y[0])==="&"&&(Y=Y==null?void 0:Y.slice(1,Y==null?void 0:Y.length)),$=(la=(je=Y==null?void 0:Y.replace("(",gl))==null?void 0:je.split(gl))==null?void 0:la[0],g=(ee=(Ta=Y==null?void 0:Y.replace("(",gl))==null?void 0:Ta.split(gl))==null?void 0:ee[1],g=[g==null?void 0:g.slice(0,(g==null?void 0:g.length)-1)],F="Input"}else{let Y=(ca=he==null?void 0:he.replace("*",gl))==null?void 0:ca.split(gl);Z=(ue=Y==null?void 0:Y[0])==null?void 0:ue.split(":"),ge=(Se=(ta=ce.analyzeSplitToContent(Y==null?void 0:Y[1],":"))==null?void 0:ta.filter((xe,me)=>{var qe,da;return me!==((da=(qe=Y==null?void 0:Y[1])==null?void 0:qe.split(":"))==null?void 0:da.length)-1}))==null?void 0:Se.map(xe=>((xe==null?void 0:xe[(xe==null?void 0:xe.length)-1])===":"&&(xe=xe==null?void 0:xe.slice(0,(xe==null?void 0:xe.length)-1)),xe)),ze=(Ne=(te=ce.analyzeSplitToContent(Y==null?void 0:Y[1],":"))==null?void 0:te.filter((xe,me)=>{var qe,da;return me===((da=(qe=Y==null?void 0:Y[1])==null?void 0:qe.split(":"))==null?void 0:da.length)-1}))==null?void 0:Ne[0],ze=(sa=(We=ze==null?void 0:ze.replaceAll("{",""))==null?void 0:We.replaceAll("}",""))==null?void 0:sa.split(":"),F="Select"}}else if(((Ya=ce.analyzeSplitToContent(L,"="))==null?void 0:Ya.length)>1)if(F="Select",ae=(H=(R=L==null?void 0:L.replace("=",gl))==null?void 0:R.split(gl))==null?void 0:H[0],!(L!=null&&L.includes("If")))ne=(ve=(X=L==null?void 0:L.replace("=",gl))==null?void 0:X.split(gl))==null?void 0:ve[1],ne=ne==null?void 0:ne.split("||");else{let Ca=(va=(de=L==null?void 0:L.replace("=",gl))==null?void 0:de.split(gl))==null?void 0:va[1];J=(na=ce.analyzeSplitToContent(Ca,")"))==null?void 0:na.filter(Ae=>!(Ae!=null&&Ae.includes("If"))),J=J==null?void 0:J.map(Ae=>((Ae==null?void 0:Ae[0])==="("&&(Ae=Ae==null?void 0:Ae.slice(1,(Ae==null?void 0:Ae.length)-1)),Ae=Ae==null?void 0:Ae.split("||"),Ae)),w=(Pe=ce.analyzeSplitToContent(Ca,")"))==null?void 0:Pe.filter(Ae=>Ae==null?void 0:Ae.includes("If")),w=w==null?void 0:w.map(Ae=>((Ae==null?void 0:Ae[0])==="|"&&(Ae=Ae==null?void 0:Ae.slice(2,Ae==null?void 0:Ae.length)),(Ae==null?void 0:Ae[0])==="("&&(Ae=Ae==null?void 0:Ae.slice(1,(Ae==null?void 0:Ae.length)-1)),(Ae==null?void 0:Ae[0])!=="@"&&(Ae="@"+Ae),Ae))}else if(((xa=ce.analyzeSplitToContent(L,"@"))==null?void 0:xa.length)>1){ae=(Me=ce.analyzeSplitToContent(L,"@"))==null?void 0:Me[0],(ae==null?void 0:ae[(ae==null?void 0:ae.length)-1])==="@"&&(ae=ae==null?void 0:ae.slice(0,(ae==null?void 0:ae.length)-1));let Ca="@"+((ma=ce.analyzeSplitToContent(L,"@"))==null?void 0:ma[1]);Ca=pn(Ca),x=(Oa=ce.analyzeSplitToContent(Ca,","))==null?void 0:Oa.map(Ae=>((Ae==null?void 0:Ae[(Ae==null?void 0:Ae.length)-1])===","&&(Ae=Ae==null?void 0:Ae.slice(0,(Ae==null?void 0:Ae.length)-1)),Ae)),x!=null&&x.find(Ae=>Ae==null?void 0:Ae.includes("@Type"))&&(F=(pa=(za=x==null?void 0:x.find(Ae=>Ae==null?void 0:Ae.includes("@Type")))==null?void 0:za.split("="))==null?void 0:pa[1])}else ae=L;x!=null&&x.includes("@ShowHide=Hide")&&(V=!0),n.push({prop:ae,label:ae,value:"",menuPath:Z,groups:ge,columns:ze,type:F,options:ne,allContents:J,filters:x,width:b==null?void 0:b.length,isFormColHidden:V,filterContents:w,functionName:$,functionRelatedWords:g,calculatorFilter:S})}),{groupName:r,groupFilters:o,formContents:n,contents:l,filter:s,hideContents:h}},Di=a=>{var r,o;if(!a||typeof a!="string")return[];let l=[],n=a.slice(1,(a==null?void 0:a.length)-1);if((n==null?void 0:n[0])!=="[")(r=ce.analyzeSplitToContent(n,","))==null||r.forEach(s=>{(s==null?void 0:s[(s==null?void 0:s.length)-1])===","&&(s=s.slice(0,(s==null?void 0:s.length)-1)),l.push(s??"")});else{let s=[];(o=ce.analyzeSplitToContent(n,","))==null||o.forEach(h=>{(h==null?void 0:h[(h==null?void 0:h.length)-1])===","&&(h=h==null?void 0:h.slice(0,(h==null?void 0:h.length)-1)),s.push(Di(h))}),l=s}return l},ht=(a,l)=>{var j,L,E,x,w,g,S,$,V,ae,Z,ge,ze,F,ne,J,se,Be,$e,fe,N,oe,U,De,Ie,je,la,Ta,ee,ca,ue,ta,Se,te,Ne,We,sa,Ya,R,H,X,ve,de,va,na,Pe,xa,Me,ma,Oa,za,pa,Ca,Ae,he,Y,xe,me,qe,da;let n,r=[],o=[],s=[],h=[],c=[],d=[],m=[],b="Input",u,C="",M="",k="",W=[],I="";if(a!=null&&a.includes("==")||a!=null&&a.includes("=")||a!=null&&a.includes("@")||a!=null&&a.includes("||"))if(n=(j=a==null?void 0:a.split("=="))==null?void 0:j[0],u=(L=a==null?void 0:a.split("=="))==null?void 0:L[0],b="Select",a!=null&&a.includes("=")&&!(a!=null&&a.includes("=="))&&!((w=(x=(E=a==null?void 0:a.replace("=",gl))==null?void 0:E.split(gl))==null?void 0:x[1])!=null&&w.includes("If")))if(n=ce.analyzeSplitToContent(a,"@"),n=n==null?void 0:n[0],(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=(S=(g=n==null?void 0:n.replace("=",gl))==null?void 0:g.split(gl))==null?void 0:S[0],n!=null&&n.includes("&")&&(n=(V=($=n==null?void 0:n.replace("&",gl))==null?void 0:$.split(gl))==null?void 0:V[0]),u=n,((ae=ce.analyzeSplitToContent(a,"@"))==null?void 0:ae.length)>1&&!(a!=null&&a.includes("||"))){if(!(a!=null&&a.includes("&"))){let Ke=(Z=ce.analyzeSplitToContent(a,"@"))==null?void 0:Z[1];if((Ke==null?void 0:Ke[0])!=="@"&&(Ke="@"+Ke),Ke=pn(Ke),M=Ke,M!=null&&M.includes("@Type")){let aa=ce.analyzeSplitToContent(M,",");aa=aa==null?void 0:aa.map(Ve=>((Ve==null?void 0:Ve[(Ve==null?void 0:Ve.length)-1])===","&&(Ve=Ve==null?void 0:Ve.slice(0,(Ve==null?void 0:Ve.length)-1)),Ve)),aa=(ge=aa==null?void 0:aa.filter(Ve=>Ve==null?void 0:Ve.includes("@Type")))==null?void 0:ge[0],b=(ze=aa==null?void 0:aa.split("="))==null?void 0:ze[1]}else b="Input"}}else if(a!=null&&a.includes("||")){let Ke=[];r=(J=(ne=(F=ce.analyzeSplitToContent(a,"="))==null?void 0:F[1])==null?void 0:ne.split("||"))==null?void 0:J.map(Ve=>{var pe,Sa,ya,vl;let ye=Ve;if(ye!=null&&ye.includes("@")){let Nl="@"+((Sa=(pe=ye==null?void 0:ye.replace("@",gl))==null?void 0:pe.split(gl))==null?void 0:Sa[1]);ye=(vl=(ya=ye==null?void 0:ye.replace("@",gl))==null?void 0:ya.split(gl))==null?void 0:vl[0],Nl=ni(Nl),Ke.push(Nl)}return{label:ye==null?void 0:ye.replaceAll("'",""),value:ye==null?void 0:ye.replaceAll("'","")}}),(Ke==null?void 0:Ke.length)>0&&(M="("+(Ke==null?void 0:Ke.join("||"))+")");let aa=(se=ce.analyzeSplitToContent(a,"="))==null?void 0:se[0];if(aa!=null&&aa.includes("@")){(aa==null?void 0:aa[(aa==null?void 0:aa.length)-1])==="="&&(aa=aa==null?void 0:aa.slice(0,(aa==null?void 0:aa.length)-1));let Ve=(Be=ce.analyzeSplitToContent(aa,"@"))==null?void 0:Be[1];Ve="@"+Ve,Ve=ni(Ve),M=M===""?Ve:Ve+","+M}}else b="Input",C=(N=(fe=($e=a==null?void 0:a.replace("=",gl))==null?void 0:$e.split(gl))==null?void 0:fe[1])==null?void 0:N.replaceAll("'","");else if((U=(oe=ce.analyzeSplitToContent(a,"="))==null?void 0:oe[1])!=null&&U.includes("||")){let Ke=(De=ce.analyzeSplitToContent(a,"="))==null?void 0:De[0];if((Ke==null?void 0:Ke[(Ke==null?void 0:Ke.length)-1])==="="&&(Ke=Ke==null?void 0:Ke.slice(0,(Ke==null?void 0:Ke.length)-1)),Ke!=null&&Ke.includes("@")){let pe=(Ie=ce.analyzeSplitToContent(Ke,"@"))==null?void 0:Ie[1];pe="@"+pe,M=ni(pe),n=(ee=(je=ce.analyzeSplitToContent(Ke,"@"))==null?void 0:je[0])==null?void 0:ee.slice(0,((Ta=(la=ce.analyzeSplitToContent(Ke,"@"))==null?void 0:la[0])==null?void 0:Ta.length)-1),u=(Se=(ca=ce.analyzeSplitToContent(Ke,"@"))==null?void 0:ca[0])==null?void 0:Se.slice(0,((ta=(ue=ce.analyzeSplitToContent(Ke,"@"))==null?void 0:ue[0])==null?void 0:ta.length)-1)}else n=Ke,u=Ke;let aa=(te=ce.analyzeSplitToContent(a,"="))==null?void 0:te[1];aa=ce.analyzeSplitToContent(aa,")");let Ve=aa==null?void 0:aa.filter(pe=>!(pe!=null&&pe.includes("If")));Ve==null||Ve.forEach(pe=>{(pe==null?void 0:pe[0])==="("&&(pe=pe==null?void 0:pe.slice(1,(pe==null?void 0:pe.length)-1)),o==null||o.push(pe==null?void 0:pe.split("||"))});let ye=aa==null?void 0:aa.filter(pe=>pe==null?void 0:pe.includes("If"));ye=ye==null?void 0:ye.map(pe=>((pe==null?void 0:pe[0])==="|"&&(pe==null?void 0:pe[1])==="|"&&(pe=pe==null?void 0:pe.slice(2,pe==null?void 0:pe.length)),(pe==null?void 0:pe[0])==="("&&(pe=pe==null?void 0:pe.slice(1,(pe==null?void 0:pe.length)-1)),(pe==null?void 0:pe[0])!=="@"&&(pe="@"+pe),pe)),s=ye}else{let Ke=a==null?void 0:a.split("=="),aa=(Ne=Ke==null?void 0:Ke.filter(Ve=>(Ve==null?void 0:Ve.includes("$"))&&(Ve==null?void 0:Ve[0])!=="{"))==null?void 0:Ne[0];if(aa&&!(aa!=null&&aa.includes("&"))){let Ve=(We=aa==null?void 0:aa.replace("*",gl))==null?void 0:We.split(gl),ye=(Ve==null?void 0:Ve[0])===""?l==null?void 0:l.value:Ve==null?void 0:Ve[0];(ye==null?void 0:ye[0])==="("&&(ye=(sa=ce.analyzeSplitToContent(ye,")"))==null?void 0:sa[1]),ye=(R=(Ya=ye==null?void 0:ye.replaceAll("{",""))==null?void 0:Ya.replaceAll("}",""))==null?void 0:R.replaceAll(Hi,""),(ye==null?void 0:ye[0])==="$"&&(ye=(H=ye==null?void 0:ye.slice(1,ye==null?void 0:ye.length))==null?void 0:H.replaceAll(":","/")),h=ye==null?void 0:ye.split("/");let pe=(ve=(X=Ve==null?void 0:Ve[1])==null?void 0:X.replace("{",gl))==null?void 0:ve.split(gl),Sa=pe==null?void 0:pe[0];(Sa==null?void 0:Sa[(Sa==null?void 0:Sa.length)-1])===":"&&(Sa=Sa==null?void 0:Sa.slice(0,(Sa==null?void 0:Sa.length)-1)),c=Sa==null?void 0:Sa.split(":"),d=(Pe=(na=(va=(de=pe==null?void 0:pe[1])==null?void 0:de.replace("}",gl))==null?void 0:va.split(gl))==null?void 0:na[0])==null?void 0:Pe.split(":");let ya="";((xa=ce.analyzeSplitToContent(aa,")"))==null?void 0:xa.length)>1&&(ya=(Me=ce.analyzeSplitToContent(aa,")"))==null?void 0:Me[0]),ya&&ya!==""&&((ya==null?void 0:ya[0])!=="@"&&(ya="@"+ya),M=ni(ya))}if(Ke!=null&&Ke.some(Ve=>(Ve==null?void 0:Ve[0])==="&")){let Ve=(ma=Ke==null?void 0:Ke.filter(Sa=>(Sa==null?void 0:Sa[0])==="&"))==null?void 0:ma[0];(Ve==null?void 0:Ve[0])==="&"&&(Ve=Ve==null?void 0:Ve.slice(1,Ve==null?void 0:Ve.length)),k=(za=(Oa=Ve==null?void 0:Ve.replace("(",gl))==null?void 0:Oa.split(gl))==null?void 0:za[0];let ye=(pa=ce.analyzeSplitToContent(Ve,")"))==null?void 0:pa[0];ye=(Ae=(Ca=ye==null?void 0:ye.replace("(",gl))==null?void 0:Ca.split(gl))==null?void 0:Ae[1],ye=ye==null?void 0:ye.slice(0,(ye==null?void 0:ye.length)-1),(ye==null?void 0:ye[0])==="{"&&(ye=ye==null?void 0:ye.slice(1,ye==null?void 0:ye.length)),(ye==null?void 0:ye[(ye==null?void 0:ye.length)-1])==="}"&&(ye=ye==null?void 0:ye.slice(0,(ye==null?void 0:ye.length)-1)),W=ye==null?void 0:ye.split(",");let pe=(he=ce.analyzeSplitToContent(Ve,")"))==null?void 0:he[1];pe&&pe!==""&&(I=ni(pe))}else if(!aa&&((Y=Ke==null?void 0:Ke.filter(Ve=>(Ve==null?void 0:Ve[0])==="{"))==null?void 0:Y.length)>0){let Ve=Ke==null?void 0:Ke[(Ke==null?void 0:Ke.length)-1];Ve=Ve==null?void 0:Ve.slice(1,(Ve==null?void 0:Ve.length)-1),Ve=ce.analyzeSplitToContent(Ve,","),Ve=Ve==null?void 0:Ve.map(ye=>((ye==null?void 0:ye[(ye==null?void 0:ye.length)-1])===","&&(ye=ye==null?void 0:ye.slice(0,(ye==null?void 0:ye.length)-1)),ye)),Ve=Ve==null?void 0:Ve.map(ye=>{var pe,Sa,ya,vl;if(ye=ye==null?void 0:ye.replaceAll("$",""),ye!=null&&ye.includes("{")){let Nl="";ye=ye==null?void 0:ye.replaceAll("{","");let pl=ye==null?void 0:ye.split("}");Nl=((Sa=(pe=pl==null?void 0:pl[0])==null?void 0:pe.split(":"))==null?void 0:Sa[0])+":"+(pl==null?void 0:pl[1]),ye=Nl,ye=ye+":"}if(ye!=null&&ye.includes(Hi)){let Nl="",pl=ye==null?void 0:ye.split(Hi);Nl=((vl=(ya=pl==null?void 0:pl[0])==null?void 0:ya.split(":"))==null?void 0:vl[0])+":"+(pl==null?void 0:pl[1]),ye=Nl,ye=ye+":"}return ye=ye==null?void 0:ye.replaceAll(":","/"),ye}),m=Ve}else!((xe=Ke==null?void 0:Ke[1])!=null&&xe.includes("$"))&&((me=Ke==null?void 0:Ke[1])==null?void 0:me[0])!=="("&&d.push(Ke==null?void 0:Ke[1])}else n=(qe=a==null?void 0:a.split("&"))==null?void 0:qe[0],u=(da=a==null?void 0:a.split("&"))==null?void 0:da[0];return{label:n,prop:u,options:r,allContents:o,filterContents:s,menus:h,groups:c,words:d,align:"center",formType:b,filter:M,functionName:k,functionRelatedWords:W,calculatorFilter:I,relatedPages:m,value:C}},Co=(a,l)=>{var r,o,s,h,c,d,m,b,u,C,M,k,W,I,j,L,E,x,w,g,S,$,V,ae,Z,ge,ze,F,ne,J;let n=[];if((a==null?void 0:a[0])==="{"&&(a==null?void 0:a[(a==null?void 0:a.length)-1])==="}"&&!((h=(s=(o=(r=a==null?void 0:a.slice(1,(a==null?void 0:a.length)-1))==null?void 0:r.replace(":",gl))==null?void 0:o.split(gl))==null?void 0:s[0])!=null&&h.includes(","))){let se=a==null?void 0:a.slice(1,(a==null?void 0:a.length)-1),Be=(c=se==null?void 0:se.replace(":",gl))==null?void 0:c.split(gl);if(((d=ce.analyzeSplitToContent(Be==null?void 0:Be[1],"="))==null?void 0:d.length)===1){let $e=Be==null?void 0:Be[0],fe=[];(u=ce.analyzeSplitToContent((b=Be==null?void 0:Be[1])==null?void 0:b.slice(1,((m=Be==null?void 0:Be[1])==null?void 0:m.length)-1),","))==null||u.forEach(N=>{var oe,U;((oe=ce.analyzeSplitToContent(N,"="))==null?void 0:oe.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)),fe=[...fe,...Co(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)),fe.push((U=Co(N,l))==null?void 0:U[0]))}),n==null||n.push({label:$e,prop:$e,children:fe,align:"center"})}else{let $e=[];if(((C=ce.analyzeSplitToContent(se,"="))==null?void 0:C.length)>=2){let N=(M=ce.analyzeSplitToContent(se,"="))==null?void 0:M[1],oe=(k=ce.analyzeSplitToContent(N,"/"))==null?void 0:k.map(U=>((U==null?void 0:U[(U==null?void 0:U.length)-1])==="/"&&(U=U==null?void 0:U.slice(0,(U==null?void 0:U.length)-1)),U));$e=oe==null?void 0:oe.map(U=>(U=Di(U),U))}let fe=(x=(E=(L=(j=(I=(W=se==null?void 0:se.replace("{",gl))==null?void 0:W.split(gl))==null?void 0:I[1])==null?void 0:j.replace("}",gl))==null?void 0:L.split(gl))==null?void 0:E[0])==null?void 0:x.split(",");fe==null||fe.forEach((N,oe)=>{($e==null?void 0:$e.length)>0&&oe===0?n==null||n.push({label:N,prop:N,align:"center",formType:"Select",relatedContents:$e==null?void 0:$e.map(U=>{let De={};return fe==null||fe.forEach((Ie,je)=>{De[Ie]=U==null?void 0:U[je]}),De}),options:$e==null?void 0:$e.map(U=>({label:U==null?void 0:U[0],value:U==null?void 0:U[0]})),mainKey:!0}):n==null||n.push({label:N,prop:N,align:"center"})})}}else if((a==null?void 0:a[0])==="{")if(((w=ce.analyzeSplitToContent(a,"="))==null?void 0:w.length)===2&&((S=(g=ce.analyzeSplitToContent(a,"="))==null?void 0:g[1])==null?void 0:S[0])==="["){let se=[];if((($=ce.analyzeSplitToContent(a,"="))==null?void 0:$.length)>=2){let $e=(V=ce.analyzeSplitToContent(a,"="))==null?void 0:V[1],fe=(Z=(ae=ce.analyzeSplitToContent($e,"|"))==null?void 0:ae.filter(N=>N!=="|"))==null?void 0:Z.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));se=fe==null?void 0:fe.map(N=>(N=Di(N),N))}let Be=(ze=(ge=a==null?void 0:a.replace("}",gl))==null?void 0:ge.split(gl))==null?void 0:ze[0];Be=(F=Be==null?void 0:Be.slice(1,Be==null?void 0:Be.length))==null?void 0:F.split(","),Be==null||Be.forEach(($e,fe)=>{(se==null?void 0:se.length)>0&&fe===0?n==null||n.push({label:$e,prop:$e,align:"center",formType:"Select",relatedContents:se==null?void 0:se.map(N=>{let oe={};return Be==null||Be.forEach((U,De)=>{oe[U]=N==null?void 0:N[De]}),oe}),options:se==null?void 0:se.map(N=>({label:N==null?void 0:N[0],value:N==null?void 0:N[0]})),mainKey:!0}):n==null||n.push({label:$e,prop:$e,align:"center"})})}else(ne=ce.analyzeSplitToContent(a,","))==null||ne.forEach(se=>{var Be,$e,fe,N,oe,U,De,Ie,je,la,Ta,ee,ca,ue,ta,Se,te,Ne,We,sa,Ya,R,H,X,ve,de,va,na,Pe,xa,Me,ma,Oa,za,pa,Ca,Ae;if((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==null?void 0:se[0])==="{"){let he=ce.analyzeSplitToContent(se,"="),Y=he==null?void 0:he[(he==null?void 0:he.length)-1],xe=[],me=[],qe=[],da="",Ke="",aa=[],Ve=[],ye=(Be=Y==null?void 0:Y.replace("*",gl))==null?void 0:Be.split(gl),pe=(ye==null?void 0:ye[0])===""?l==null?void 0:l.value:ye==null?void 0:ye[0];pe=ce.analyzeSplitToContent(pe,")");let Sa="";if((pe==null?void 0:pe.length)>1&&(($e=pe==null?void 0:pe[0])==null?void 0:$e[0])!=="&"&&(Sa=pe==null?void 0:pe[0],(Sa==null?void 0:Sa[0])!=="@"&&(Sa="@"+Sa),Ke=Sa??""),pe=(fe=pe==null?void 0:pe.filter(pl=>(pl==null?void 0:pl[0])==="$"))==null?void 0:fe[0],((N=ce.analyzeSplitToContent(pe,"}"))==null?void 0:N.length)>1&&((U=(oe=ce.analyzeSplitToContent(pe,"}"))==null?void 0:oe[1])==null?void 0:U[0])==="("&&(Sa=(De=ce.analyzeSplitToContent(pe,"}"))==null?void 0:De[1],(Sa==null?void 0:Sa[0])!=="@"&&(Sa="@"+Sa),Ke!==""&&(Ke=Ke+","),Ke=Ke+Sa),(Ie=pe==null?void 0:pe.slice(1,(pe==null?void 0:pe.length)-1))!=null&&Ie.includes("$")||(pe=(je=ce.analyzeSplitToContent(pe,"}"))==null?void 0:je[0]),(pe==null?void 0:pe[0])==="$"&&(pe=(la=pe==null?void 0:pe.replace("{",""))==null?void 0:la.replace("}",":"),pe=(Ta=pe==null?void 0:pe.slice(1,pe==null?void 0:pe.length))==null?void 0:Ta.replaceAll(":","/")),pe!=null&&pe.includes("$")){let pl=(ee=pe==null?void 0:pe.split("$"))==null?void 0:ee[0];pl=(ca=pl==null?void 0:pl.split("/"))==null?void 0:ca[0],pe=pl+"/"+((ue=pe==null?void 0:pe.split("$"))==null?void 0:ue[1])+"/"}xe=(pe==null?void 0:pe.split("/"))??[];let ya=(Se=(ta=ye==null?void 0:ye[1])==null?void 0:ta.replace("{",gl))==null?void 0:Se.split(gl);if((We=(Ne=(te=ye==null?void 0:ye[1])==null?void 0:te.split("(@"))==null?void 0:Ne[0])!=null&&We.includes("&&")||(R=(Ya=(sa=ye==null?void 0:ye[1])==null?void 0:sa.split("@"))==null?void 0:Ya[0])!=null&&R.includes("&&")){let pl=(H=ye==null?void 0:ye[1])!=null&&H.includes("(@")?(de=(ve=(X=ye==null?void 0:ye[1])==null?void 0:X.split("(@"))==null?void 0:ve[0])==null?void 0:de.split("&&"):(Pe=(na=(va=ye==null?void 0:ye[1])==null?void 0:va.split("@"))==null?void 0:na[0])==null?void 0:Pe.split("&&");aa=pl==null?void 0:pl.map(ja=>{var jl,Rl;return(ja==null?void 0:ja[0])==="*"&&(ja=ja==null?void 0:ja.slice(1,ja==null?void 0:ja.length)),ja=(Rl=(jl=ja==null?void 0:ja.replace("{",gl))==null?void 0:jl.split(gl))==null?void 0:Rl[0],(ja==null?void 0:ja[(ja==null?void 0:ja.length)-1])===":"&&(ja=ja==null?void 0:ja.slice(0,(ja==null?void 0:ja.length)-1)),ja=ja==null?void 0:ja.split(":"),ja});let Fl=[];pl==null||pl.forEach((ja,jl)=>{var Rl,Da;(ja==null?void 0:ja[0])==="*"&&(ja=ja==null?void 0:ja.slice(1,ja==null?void 0:ja.length)),ja=(Da=(Rl=ja==null?void 0:ja.replace("{",gl))==null?void 0:Rl.split(gl))==null?void 0:Da[1],(ja==null?void 0:ja[(ja==null?void 0:ja.length)-1])==="}"&&(ja=ja==null?void 0:ja.slice(0,(ja==null?void 0:ja.length)-1)),ja=ja==null?void 0:ja.split(","),Fl.push(jl===0?(ja==null?void 0:ja.length)-1:ja==null?void 0:ja.length),Ve=[...Ve,...ja]}),Fl=(xa=ce.prefixSum(Fl))==null?void 0:xa.map(ja=>ja==null?void 0:ja.total),aa=aa==null?void 0:aa.map((ja,jl)=>({number:Fl==null?void 0:Fl[jl],contents:ja}))}let vl=ya==null?void 0:ya[0];(vl==null?void 0:vl[(vl==null?void 0:vl.length)-1])===":"&&(vl=vl==null?void 0:vl.slice(0,(vl==null?void 0:vl.length)-1)),me=(vl==null?void 0:vl.split(":"))??[],qe=((za=(Oa=(ma=(Me=ya==null?void 0:ya[1])==null?void 0:Me.replace("}",gl))==null?void 0:ma.split(gl))==null?void 0:Oa[0])==null?void 0:za.split(","))??[];let Nl=(Ca=he==null?void 0:he[0])==null?void 0:Ca.slice(1,((pa=he==null?void 0:he[0])==null?void 0:pa.length)-2);Ke&&Ke!==""&&(da=ni(Ke)),(Ae=Nl==null?void 0:Nl.split(","))==null||Ae.forEach((pl,Fl)=>{var ja,jl,Rl,Da,al;((ja=ce.analyzeSplitToContent(pl,"@"))==null?void 0:ja.length)>1&&(pl=(jl=ce.analyzeSplitToContent(pl,"@"))==null?void 0:jl[0],(pl==null?void 0:pl[(pl==null?void 0:pl.length)-1])==="@"&&(pl=pl==null?void 0:pl.slice(0,(pl==null?void 0:pl.length)-1))),n.push({label:pl,prop:pl,align:"center",menus:xe,groups:(aa==null?void 0:aa.length)===0?me:(Rl=aa==null?void 0:aa.find(dl=>(dl==null?void 0:dl.number)>=Fl))==null?void 0:Rl.contents,words:(Ve==null?void 0:Ve.length)===0?(Da=qe==null?void 0:qe[Fl])==null?void 0:Da.split(":"):(al=Ve==null?void 0:Ve[Fl])==null?void 0:al.split(":"),formType:(xe==null?void 0:xe.length)>0?"Select":"Input",mainKey:Fl===0,filter:da,isMainPath:(aa==null?void 0:aa.findIndex(dl=>(dl==null?void 0:dl.number)>=Fl))===0})})}else n.push({label:se,prop:se,align:"center"})});else{let se=(J=ce.analyzeSplitToContent(a,","))==null?void 0:J.map(Be=>((Be==null?void 0:Be[(Be==null?void 0:Be.length)-1])===","&&(Be=Be==null?void 0:Be.slice(0,(Be==null?void 0:Be.length)-1)),Be));se==null||se.forEach(Be=>{n.push(ht(Be,l))})}return n},Zd=(a,l)=>{var h,c,d,m,b;let n=a;if(!a)return;let r="";((h=ce.analyzeSplitToContent(a,"}"))==null?void 0:h.length)>1&&(n=(c=ce.analyzeSplitToContent(a,"}"))==null?void 0:c[0],r=(d=ce.analyzeSplitToContent(a,"}"))==null?void 0:d[1]),(a==null?void 0:a[0])==="{"&&(a==null?void 0:a[(a==null?void 0:a.length)-1])==="}"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1));let o=[],s=[];return o.push({label:"排序",prop:"sort"}),o.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(m=ce.analyzeSplitToContent(n,","))==null||m.forEach(u=>{var C;(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])==="{"?(C=Co(u,l))==null||C.forEach(M=>{o.push(M)}):o.push(ht(u,l))}),o!=null&&o.some(u=>{var C;return(C=u==null?void 0:u.prop)==null?void 0:C.includes("@")})&&(o=o==null?void 0:o.filter(u=>{var C;return!((C=u==null?void 0:u.prop)!=null&&C.includes("@"))})),r!==""&&((r==null?void 0:r[0])=="{"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),(b=ce.analyzeSplitToContent(r,","))==null||b.forEach(u=>{var C;(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])==="{"?(C=Co(u,l))==null||C.forEach(M=>{s.push(M)}):s.push(ht(u,l))})),{columns:o,secondColumns:s}},pn=a=>{var l,n,r,o,s;if(a!=null&&a.includes("@Filter")||a!=null&&a.includes("@Condition")||a!=null&&a.includes("@If"))return a;{let h=(n=(l=a==null?void 0:a.replace("(",gl))==null?void 0:l.split(gl))==null?void 0:n[1],c=(o=(r=a==null?void 0:a.replace("(",gl))==null?void 0:r.split(gl))==null?void 0:o[0];return h=h==null?void 0:h.slice(0,(h==null?void 0:h.length)-1),h=(s=ce.analyzeSplitToContent(h,","))==null?void 0:s.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?void 0:d[0])==="("&&(d=d==null?void 0:d.slice(1,(d==null?void 0:d.length)-1)),c+d)),h=h==null?void 0:h.join(","),a!=null&&a.includes("@Quote")&&(h!=null&&h.includes("@QuoteType")||(h=h===""?h+"@QuoteType=Manual":h+",@QuoteType=Manual"),h!=null&&h.includes("@QuoteSonSync")||(h=h===""?h+"@QuoteSonSync=No":h+",@QuoteSonSync=No"),h!=null&&h.includes("@QuoteFatherSync")||(h=h===""?h+"@QuoteFatherSync=Yes":h+",@QuoteFatherSync=Yes")),h}},is=a=>{let l=a==null?void 0:a.map(n=>{var r,o;return{menus:n==null?void 0:n.menus,content:((r=n==null?void 0:n.menus)==null?void 0:r.join("/"))+gl+((o=n==null?void 0:n.groups)==null?void 0:o.join("/"))}});return l=l==null?void 0:l.filter(n=>{var r;return(n==null?void 0:n.menus)&&((r=n==null?void 0:n.menus)==null?void 0:r.length)>0}),l=l==null?void 0:l.map(n=>n==null?void 0:n.content),l=[...new Set(l)],l=l==null?void 0:l.map(n=>{var r,o;return{menus:(r=n==null?void 0:n.split(gl))==null?void 0:r[0],groups:((o=n==null?void 0:n.split(gl))==null?void 0:o[1])??[]}}),l},os=a=>{var n;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=(n=ce.analyzeSplitToContent(l,","))==null?void 0:n.map(r=>((r==null?void 0:r[(r==null?void 0:r.length)-1])===","&&(r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1)),(r==null?void 0:r[0])!=="@"&&(r="@"+r),r=pn(r),r)),l==null?void 0:l.join(",")},lc=(a,l,n="")=>{var L,E,x,w,g,S,$,V,ae,Z,ge,ze,F,ne,J,se,Be,$e,fe,N,oe,U,De,Ie,je,la,Ta,ee,ca,ue,ta,Se,te,Ne,We,sa,Ya,R,H,X,ve,de,va,na,Pe,xa,Me,ma,Oa,za,pa,Ca,Ae;let r=[],o=[],s=[],h="",c="",d="",m=[],b=[],u=[],C="";if(((L=a==null?void 0:a[0])==null?void 0:L[0])!=="*"&&((E=a==null?void 0:a[0])==null?void 0:E[0])!=="$"&&!((x=a==null?void 0:a[0])!=null&&x.includes("$")))return;((w=a==null?void 0:a[0])==null?void 0:w[0])!=="*"&&((g=a==null?void 0:a[0])==null?void 0:g[0])!=="$"&&(h=(S=ce.analyzeSplitToContent(a==null?void 0:a[0],")"))==null?void 0:S[0],(h==null?void 0:h[0])!=="@"&&(h="@"+h),h=ni(h),d=($=ce.analyzeSplitToContent(a==null?void 0:a[0],")"))==null?void 0:$[1],(d==null?void 0:d[0])==="$"&&(d=d==null?void 0:d.slice(1,d==null?void 0:d.length)),d=d==null?void 0:d.replaceAll(":","/"));let k=ce.analyzeSplitToContent(a==null?void 0:a[0],":");if(r=(V=k==null?void 0:k.filter(he=>(he==null?void 0:he[0])!=="{"&&(he==null?void 0:he[0])!=="["))==null?void 0:V.join(""),c=(ae=a==null?void 0:a[0])==null?void 0:ae.replace(r,""),(r==null?void 0:r[0])==="("&&(r=""),C=(Z=k==null?void 0:k.filter(he=>(he==null?void 0:he[0])!=="["))==null?void 0:Z.join(""),C=(ge=a==null?void 0:a[0])==null?void 0:ge.replace(C,""),c=c==null?void 0:c.replace(C,""),(r==null?void 0:r[0])==="*"&&(r=r==null?void 0:r.slice(1,r==null?void 0:r.length)),(r==null?void 0:r[(r==null?void 0:r.length)-1])===":"&&(r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1)),((ze=ce.analyzeSplitToContent(c,"@"))==null?void 0:ze.length)>1&&(h=(F=ce.analyzeSplitToContent(c,"@"))==null?void 0:F[1],(h==null?void 0:h[(h==null?void 0:h.length)-1])===":"&&(h=h==null?void 0:h.slice(0,(h==null?void 0:h.length)-1)),h="@"+h,h=pn(h),c=(ne=ce.analyzeSplitToContent(c,"@"))==null?void 0:ne[0],c=c==null?void 0:c.slice(0,(c==null?void 0:c.length)-1)),((J=ce.analyzeSplitToContent(r,"@"))==null?void 0:J.length)>1){h!==""&&(h=h+",");let he=(se=ce.analyzeSplitToContent(r,"@"))==null?void 0:se[1];he="@"+he,he=pn(he),h=h+he,r=(Be=ce.analyzeSplitToContent(r,"@"))==null?void 0:Be[0]}if((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=r===""?[]:r==null?void 0:r.split(":"),(c==null?void 0:c[(c==null?void 0:c.length)-1])===":"&&(c=c==null?void 0:c.slice(0,(c==null?void 0:c.length)-1)),n!==""){let he=($e=ce.analyzeSplitToContent(n,")"))==null?void 0:$e[0],Y=(fe=ce.analyzeSplitToContent(n,"@"))==null?void 0:fe[1];d=(oe=(N=ce.analyzeSplitToContent(n,"@"))==null?void 0:N[0])==null?void 0:oe.replace(he,""),(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)),he=os(he),Y=os(Y);let xe=he??"";if(xe!==""&&(xe=xe+","),xe=xe+Y,(xe==null?void 0:xe[(xe==null?void 0:xe.length)-1])===","&&(xe=xe==null?void 0:xe.slice(0,(xe==null?void 0:xe.length)-1)),xe!==""&&h!==""&&(h=h+","),h=h+xe,(d==null?void 0:d[0])==="$"&&(d=d==null?void 0:d.slice(1,d==null?void 0:d.length)),d=(U=ce.analyzeSplitToContent(d,":"))==null?void 0:U.filter((me,qe)=>{var da;return!((me==null?void 0:me[0])==="{"&&qe===((da=ce.analyzeSplitToContent(d,":"))==null?void 0:da.length)-1)}),d=d==null?void 0:d.join(""),(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)),h!=null&&h.includes("@Sync")||(h=h===""?h+"@Sync=(Yes,Yes)":h+",@Sync=(Yes,Yes)"),d!=null&&d.includes("$")){let me=(Ie=(De=d==null?void 0:d.replace("*",gl))==null?void 0:De.split(gl))==null?void 0:Ie[1],qe=(la=(je=d==null?void 0:d.replace("*",gl))==null?void 0:je.split(gl))==null?void 0:la[0];qe=qe==null?void 0:qe.split("$"),qe=((ee=(Ta=qe==null?void 0:qe[0])==null?void 0:Ta.split(":"))==null?void 0:ee[0])+":"+(qe==null?void 0:qe[1])+":",d=qe+"*"+me}else d=(ca=d==null?void 0:d.replaceAll("{",""))==null?void 0:ca.replaceAll("}","")}h!==""&&h&&(h="("+h+")"),h=d+h,((ue=ce.analyzeSplitToContent(c,"}"))==null?void 0:ue.length)>1&&(c=(ta=ce.analyzeSplitToContent(c,"}"))==null?void 0:ta.filter(he=>(he==null?void 0:he[0])!=="@"),c=c==null?void 0:c.join(""));let W=Zd(c,l);s=c===""?[]:(W==null?void 0:W.columns)??[],u=ce.getColumnChild(s);let I=ce.getColumnChild(s);s!=null&&s.some(he=>{var Y;return Array.isArray(he==null?void 0:he.children)&&((Y=he==null?void 0:he.children)==null?void 0:Y.length)>0})&&(s=[s]),o=C?Di(C):[],!(o!=null&&o.every(he=>Array.isArray(he)))&&(o==null?void 0:o.length)>0&&(o=[o]),(o==null?void 0:o.length)>0&&(Array.isArray(o==null?void 0:o[0])&&((Se=o==null?void 0:o[0])!=null&&Se.every(he=>Array.isArray(he)))?o=o==null?void 0:o.map((he,Y)=>(he=he.map((xe,me)=>(xe.unshift("{}"),xe.unshift((me+1).toString()),xe)),he)):o=o==null?void 0:o.map((he,Y)=>(he.unshift("{}"),he.unshift((Y+1).toString()),he))),W!=null&&W.secondColumns&&((te=W==null?void 0:W.secondColumns)==null?void 0:te.length)>0&&((o==null?void 0:o.length)>0?o=o==null?void 0:o.map((he,Y)=>{var xe,me;return Array.isArray(he==null?void 0:he[0])?he=he==null?void 0:he.map((qe,da)=>{var Ke,aa;return qe.unshift((aa=(Ke=W==null?void 0:W.secondColumns)==null?void 0:Ke[da])==null?void 0:aa.prop),qe}):he.unshift((me=(xe=W==null?void 0:W.secondColumns)==null?void 0:xe[Y])==null?void 0:me.prop),he}):o=(Ne=W==null?void 0:W.secondColumns)==null?void 0:Ne.map((he,Y)=>(he=[he==null?void 0:he.label],he.push(Y),he)),s.unshift({label:"",prop:"disabled",sortable:!1})),u=u==null?void 0:u.map(he=>{var Y,xe;return{menus:he==null?void 0:he.menus,content:((Y=he==null?void 0:he.menus)==null?void 0:Y.join("/"))+gl+((xe=he==null?void 0:he.groups)==null?void 0:xe.join("/"))}});let j=[];if(((sa=(We=h==null?void 0:h.replace("(",gl))==null?void 0:We.split(gl))==null?void 0:sa[0])!==""&&(j=(R=(Ya=h==null?void 0:h.replace("(",gl))==null?void 0:Ya.split(gl))==null?void 0:R[0],j=[j],j=j==null?void 0:j.map(he=>{var xe,me,qe;let Y=he==null?void 0:he.split("*");return{menus:(xe=Y==null?void 0:Y[0])==null?void 0:xe.split(":"),content:((me=Y==null?void 0:Y[0])==null?void 0:me.replaceAll(":","/"))+gl+((qe=Y==null?void 0:Y[1])==null?void 0:qe.replaceAll(":","/"))}}),u=[...u,...j]),u=u==null?void 0:u.filter(he=>{var Y;return(he==null?void 0:he.menus)&&((Y=he==null?void 0:he.menus)==null?void 0:Y.length)>0}),u=u==null?void 0:u.map(he=>he==null?void 0:he.content),u=[...new Set(u)],u=u==null?void 0:u.map(he=>{var Y,xe;return{menus:(Y=he==null?void 0:he.split(gl))==null?void 0:Y[0],groups:((xe=he==null?void 0:he.split(gl))==null?void 0:xe[1])??[]}}),m=I==null?void 0:I.filter(he=>{var Y;return(he==null?void 0:he.filter)&&((Y=he==null?void 0:he.filter)==null?void 0:Y.includes("@Sync"))}),(m==null?void 0:m.length)>0&&(m=m==null?void 0:m.filter(he=>{var Y,xe,me,qe;return(qe=(me=(xe=(Y=ce.analyzeSplitToContent(he==null?void 0:he.filter,","))==null?void 0:Y.find(da=>da==null?void 0:da.includes("@Sync")))==null?void 0:xe.split(","))==null?void 0:me[0])==null?void 0:qe.includes("Yes")}),m=is(m)),b=I==null?void 0:I.filter(he=>{var Y;return(he==null?void 0:he.filter)&&((Y=he==null?void 0:he.filter)==null?void 0:Y.includes("@Sync"))}),(b==null?void 0:b.length)>0&&(b=b==null?void 0:b.filter(he=>{var Y,xe,me,qe;return(qe=(me=(xe=(Y=ce.analyzeSplitToContent(he==null?void 0:he.filter,","))==null?void 0:Y.find(da=>da==null?void 0:da.includes("@Sync")))==null?void 0:xe.split(","))==null?void 0:me[1])==null?void 0:qe.includes("Yes")}),b=is(b)),h!==""&&(h!=null&&h.includes("@Sync"))&&(h==null?void 0:h[0])!=="("){let he=(H=h==null?void 0:h.replace("(",gl))==null?void 0:H.split(gl),Y=he==null?void 0:he[1];if(Y=Y==null?void 0:Y.slice(0,(Y==null?void 0:Y.length)-1),Y=ce.analyzeSplitToContent(Y,","),(de=(ve=(X=Y==null?void 0:Y.find(xe=>xe==null?void 0:xe.includes("@Sync")))==null?void 0:X.split(","))==null?void 0:ve[0])!=null&&de.includes("Yes")){let xe=he==null?void 0:he[0];xe=[{menus:(na=(va=xe==null?void 0:xe.split("*"))==null?void 0:va[0])==null?void 0:na.replaceAll(":","/"),groups:((xa=(Pe=xe==null?void 0:xe.split("*"))==null?void 0:Pe[1])==null?void 0:xa.split(":"))??[]}],m=[...m,...xe]}if((Oa=(ma=(Me=Y==null?void 0:Y.find(xe=>xe==null?void 0:xe.includes("@Sync")))==null?void 0:Me.split(","))==null?void 0:ma[1])!=null&&Oa.includes("Yes")){let xe=he==null?void 0:he[0];xe=[{menus:(pa=(za=xe==null?void 0:xe.split("*"))==null?void 0:za[0])==null?void 0:pa.replaceAll(":","/"),groups:((Ae=(Ca=xe==null?void 0:xe.split("*"))==null?void 0:Ca[1])==null?void 0:Ae.split(":"))??[]}],b=[...b,...xe]}}return{groupName:r,tableColumns:s,tableFilter:h,tableContents:o,columns:(W==null?void 0:W.secondColumns)??[],relatedQuotes:u,fatherSyncContents:m,sonSyncContents:b}},rc=(a,l)=>(a=a==null?void 0:a.map((n,r)=>{var o,s,h,c;if(Array.isArray(n))n=n==null?void 0:n.map(d=>{var m,b,u,C;return d!=null&&d.isMainPath||(((m=d==null?void 0:d.children)==null?void 0:m.length)>0?d.children=rc(d.children,l):((b=d==null?void 0:d.menus)==null?void 0:b.length)>0&&!((u=n==null?void 0:n[0])!=null&&u.isMainPath)&&(d.menus=(C=d.menus)==null?void 0:C.map((M,k)=>{var W,I;return((W=d.menus)==null?void 0:W.length)-1===k&&M===""&&(l==null?void 0:l.parentContent)+"/"!==((I=d.menus)==null?void 0:I.join("/"))&&(M=l==null?void 0:l.value),d}),d.bindMenus=d.menus)),d});else{if(r===0&&((o=n.menus)==null?void 0:o.length)>0&&(n.mainKey=!0),n!=null&&n.isMainPath)return n;((s=n.menus)==null?void 0:s.length)>0&&!((h=a==null?void 0:a[0])!=null&&h.isMainPath)&&(n.menus=(c=n.menus)==null?void 0:c.map((d,m)=>{var b,u;return((b=n.menus)==null?void 0:b.length)-1===m&&d===""&&(l==null?void 0:l.parentContent)+"/"!==((u=n.menus)==null?void 0:u.join("/"))&&(d=l==null?void 0:l.value),d}),n.bindMenus=n.menus)}return n}),a),Qd=(a,l)=>(a=a==null?void 0:a.map(n=>((n==null?void 0:n.key)==="header"&&(n.contents=rc(n.contents,l)),n)),a),vt=(a,l)=>{let n=a;return Array.isArray(n==null?void 0:n[0])?n=n==null?void 0:n.map(r=>(r=vt(r,l),r)):n=n==null?void 0:n.map(r=>{var o,s;return r!=null&&r.children&&((o=r==null?void 0:r.children)==null?void 0:o.length)>0?r.children=vt(r==null?void 0:r.children,l):r!=null&&r.words&&((s=r==null?void 0:r.words)==null?void 0:s.length)>0&&(l!=null&&l.find(h=>{var c,d,m,b;return((b=(c=r==null?void 0:r.prop)==null?void 0:c.split("."))==null?void 0:b[((m=(d=r==null?void 0:r.prop)==null?void 0:d.split("."))==null?void 0:m.length)-1])===h}))&&(r.mainKey=!0),r}),n};let wr="$R";const ep=A.useUnit(A.pinia),{selectTitle:nn}=A.storeToRefs(ep),ap=A.useMenuState(A.pinia),{localFiles:lp}=A.storeToRefs(ap),xn=[{key:"@MaxRow",value:"onNumSlice",order:1},{key:"@MaxColumn",value:"onMaxColumn",order:1},{key:"@EditRead",value:"onEditRead",order:1},{key:"@Type",value:"onRandomContents",order:2},{key:"@SubType",value:"onInterfaceTypeContents",order:2},{key:"@If",value:"onConditionContents",order:4},{key:"@QuoteFatherSync",value:"onFatherPaceContents",order:1},{key:"@QuoteSonSync",value:"onPaceContents",order:1},{key:"@MainPam",value:"onMainTagContents",order:3},{key:"@Button",value:"onButtonContents",order:1},{key:"@Related",value:"onRelated",order:1},{key:"@RowNum",value:"onRowNum",order:1},{key:"@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:"@Position",value:"onPosition",order:4},{key:"@Size",value:"onSize",order:4},{key:"@ShowType",value:"onShowType",order:1},{key:"@StepName",value:"onStepName",order:1},{key:"@Step",value:"onStep",order:1},{key:"@BackGround",value:"onBackGround",order:1}];var ri=(a=>(a[a.ORDINARY=1]="ORDINARY",a[a.BLOCK=2]="BLOCK",a[a.TEXT=3]="TEXT",a))(ri||{});const rp=a=>{var l,n,r,o,s;if((a==null?void 0:a.filter)!==void 0&&(a==null?void 0:a.filter)!==null&&(a==null?void 0:a.filter)!==""){let h=a==null?void 0:a.contents,c=a==null?void 0:a.filter;(c==null?void 0:c[0])==="("&&(c=c==null?void 0:c.slice(1,(c==null?void 0:c.length)-1)),c=(l=ce.analyzeSplitToContent(c,","))==null?void 0:l.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)),c=c==null?void 0:c[1],(c==null?void 0:c[0])==="("&&(c=c==null?void 0:c.slice(1,(c==null?void 0:c.length)-1)),c=(n=ce.analyzeSplitToContent(c,","))==null?void 0:n.map(m=>((m==null?void 0:m[(m==null?void 0:m.length)-1])===","&&(m=m==null?void 0:m.slice(0,(m==null?void 0:m.length)-1)),m));let d=(s=(o=(r=lp.value)==null?void 0:r.filter(m=>{var b;return(m==null?void 0:m.path)===((b=a==null?void 0:a.groupName)==null?void 0:b[0])}))==null?void 0:o[0])==null?void 0:s.children;return d=(d==null?void 0:d.filter(m=>c==null?void 0:c.find(b=>b===(m==null?void 0:m.name))))??[],h.push({key:"backGround",contents:d}),h}return a==null?void 0:a.contents},np=a=>{const l=ic(a==null?void 0:a.filter);return l?oc(a==null?void 0:a.contents,{position:l}):a==null?void 0:a.contents},ip=a=>{const l=ic(a==null?void 0:a.filter);return l?oc(a==null?void 0:a.contents,{size:l}):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;const n=Number(a==null?void 0:a.filter);return l.push({key:"textSize",contents:Number.isNaN(n)?a==null?void 0:a.filter:n}),l}return a==null?void 0:a.contents},tp=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},sp=a=>{var n;return(a==null?void 0:a.filter.toUpperCase())==="ALL"||(a==null?void 0:a.filter.toUpperCase())==="NONE"?a==null?void 0:a.contents:(n=a==null?void 0:a.contents)==null?void 0:n.map(r=>{var o;return(r==null?void 0:r.key)==="tableContents"&&(r.contents=(o=r.contents)==null?void 0:o.slice(0,parseInt(a==null?void 0:a.filter))),r})},cp=async a=>{var l,n,r,o,s,h,c,d,m,b,u,C,M,k,W,I,j,L,E,x,w,g,S,$,V,ae,Z,ge,ze,F;if((a==null?void 0:a.filter)==="Random")return(l=a==null?void 0:a.contents)==null?void 0:l.map(J=>((J==null?void 0:J.key)==="tableContents"&&(J.contents=ce.shuffle(J.contents)),J));if((a==null?void 0:a.filter)==="Auto"){let ne=(r=(n=a==null?void 0:a.contents)==null?void 0:n.find(De=>(De==null?void 0:De.key)==="header"))==null?void 0:r.contents;Array.isArray(ne==null?void 0:ne[0])&&(ne=ne==null?void 0:ne[0]),ne=ce.getColumnChild(ne);let J=ne==null?void 0:ne.filter(De=>(De==null?void 0:De.filter)&&(De==null?void 0:De.filter)!==""),se=new Map,Be=[];J==null||J.forEach(De=>{var Ie,je;se.get((Ie=De==null?void 0:De.menus)==null?void 0:Ie.join("/"))||(se.set((je=De==null?void 0:De.menus)==null?void 0:je.join("/"),De),Be.push(De))});let $e=(s=(o=nn==null?void 0:nn.value)==null?void 0:o.find(De=>(De==null?void 0:De.condition)==="child"))==null?void 0:s.value,fe=Be==null?void 0:Be.map(De=>{var Ie,je,la;return De=(Ie=De==null?void 0:De.menus)==null?void 0:Ie.join("/"),(De==null?void 0:De[(De==null?void 0:De.length)-1])==="/"&&((la=(je=nn==null?void 0:nn.value)==null?void 0:je.find(Ta=>(Ta==null?void 0:Ta.condition)==="child"))==null?void 0:la.parentContent)+"/"!==De?De=De+$e:(De==null?void 0:De[(De==null?void 0:De.length)-1])==="/"&&(De=De==null?void 0:De.slice(0,(De==null?void 0:De.length)-1)),De}),N=Be==null?void 0:Be.map(De=>De==null?void 0:De.groups),oe=fe==null?void 0:fe.map(async De=>{let Ie=await Gr(De,!1);return{path:De,contents:Ie}});oe=await Promise.all(oe);let U=oe==null?void 0:oe.map((De,Ie)=>{var la,Ta,ee,ca,ue,ta,Se;let je=(la=De==null?void 0:De.contents)==null?void 0:la.filter(te=>{var Ne,We;return(te==null?void 0:te.name)===((We=N==null?void 0:N[Ie])==null?void 0:We[((Ne=N==null?void 0:N[Ie])==null?void 0:Ne.length)-1])});return je=(ca=(ee=(Ta=je==null?void 0:je[0])==null?void 0:Ta.compData)==null?void 0:ee.find(te=>(te==null?void 0:te.key)==="tableContents"))==null?void 0:ca.contents,(De==null?void 0:De.path)===((ta=(ue=nn==null?void 0:nn.value)==null?void 0:ue.find(te=>(te==null?void 0:te.condition)==="child"))==null?void 0:ta.parentContent)&&(je=((Se=je==null?void 0:je.map(te=>{for(let Ne in te)if(te[Ne]===$e)return te}))==null?void 0:Se.filter(te=>te))??[]),je??[]});if(U=U==null?void 0:U.map(De=>(De=De==null?void 0:De.map(Ie=>{var la;let je={};for(let Ta in Ie)if(J!=null&&J.find(ee=>{var ca,ue;return((ue=(ca=ee==null?void 0:ee.words)==null?void 0:ca[0])==null?void 0:ue.replaceAll("'",""))===Ta})){let ee=(la=J==null?void 0:J.find(ca=>{var ue,ta;return((ta=(ue=ca==null?void 0:ca.words)==null?void 0:ue[0])==null?void 0:ta.replaceAll("'",""))===Ta}))==null?void 0:la.prop;je[ee]=Ie==null?void 0:Ie[Ta]}return je}),De)),U=ce.cartesianProduct(U),Array.isArray(U==null?void 0:U[0])&&(U=U==null?void 0:U[0]),(U==null?void 0:U.length)>0&&((u=(c=(h=J==null?void 0:J[0])==null?void 0:h.menus)==null?void 0:c.join("/"))==null?void 0:u[((b=(m=(d=J==null?void 0:J[0])==null?void 0:d.menus)==null?void 0:m.join("/"))==null?void 0:b.length)-1])==="/")return(C=a==null?void 0:a.contents)==null?void 0:C.map(Ie=>{var je;return(Ie==null?void 0:Ie.key)==="tableContents"&&(U==null?void 0:U.length)>0&&(Ie.contents=((je=Ie.contents)==null?void 0:je.length)>0?Ie.contents:U),Ie})}if((a==null?void 0:a.filter)==="Manual"){let ne=[],J=[],se=(k=(M=a==null?void 0:a.contents)==null?void 0:M.find(N=>(N==null?void 0:N.key)==="filter"))==null?void 0:k.contents;(se==null?void 0:se[(se==null?void 0:se.length)-1])===")"?se=(I=(W=se==null?void 0:se.replace("(",wr))==null?void 0:W.split(wr))==null?void 0:I[0]:se="",se!==""&&(ne=((L=(j=se==null?void 0:se.split("*"))==null?void 0:j[0])==null?void 0:L.split(":"))??[],J=((S=(g=(w=(x=(E=se==null?void 0:se.split("*"))==null?void 0:E[1])==null?void 0:x.replace("{",wr))==null?void 0:w.split(wr))==null?void 0:g[0])==null?void 0:S.split(":"))??[]);let Be=(V=($=a==null?void 0:a.contents)==null?void 0:$.find(N=>(N==null?void 0:N.key)==="filter"))==null?void 0:V.contents;Be=(Z=(ae=Be==null?void 0:Be.replace("(",wr))==null?void 0:ae.split(wr))==null?void 0:Z[1],Be=Be==null?void 0:Be.slice(0,(Be==null?void 0:Be.length)-1);let $e=(ge=a==null?void 0:a.contents)==null?void 0:ge.map(N=>{var oe,U,De,Ie,je,la,Ta,ee,ca;return(N==null?void 0:N.key)==="header"&&((oe=N==null?void 0:N.contents)!=null&&oe.every(ue=>(ue==null?void 0:ue.mainKey)!==!0)&&Array.isArray(N==null?void 0:N.contents)&&!Array.isArray((U=N==null?void 0:N.contents)==null?void 0:U[0])?N.contents=(De=N==null?void 0:N.contents)==null?void 0:De.map((ue,ta)=>{var Se,te,Ne;return ue!=null&&ue.isMainPath||(ta===0?(ue.mainKey=!0,ue.formType="Select",ue.bindMenus=ne,ue.groups=((Se=ue.groups)==null?void 0:Se.length)===0?J:ue.groups,ue.words=((te=ue.words)==null?void 0:te.length)===0?[ue==null?void 0:ue.prop]:ue.words,ue.filter=Be,(!(ue!=null&&ue.menus)||((Ne=ue==null?void 0:ue.menus)==null?void 0:Ne.length)===0)&&(ue.menus=ne)):(ue.mainKey=!1,ue.bindMenus=ne)),ue}):Array.isArray((Ie=N==null?void 0:N.contents)==null?void 0:Ie[0])&&((Ta=(la=(je=N==null?void 0:N.contents)==null?void 0:je[0])==null?void 0:la.filter(()=>(ne==null?void 0:ne.length)>0))==null?void 0:Ta.length)>0&&(N.contents[0]=(ca=(ee=N==null?void 0:N.contents)==null?void 0:ee[0])==null?void 0:ca.map((ue,ta)=>{var Se,te,Ne;return ue!=null&&ue.isMainPath||(ta===0?(ue.mainKey=!0,ue.formType="Select",ue.bindMenus=ne,ue.groups=((Se=ue.groups)==null?void 0:Se.length)===0?J:ue.groups,ue.words=((te=ue.words)==null?void 0:te.length)===0?[ue==null?void 0:ue.prop]:ue.words,ue.filter=Be,(!(ue!=null&&ue.menus)||Array.isArray(ue==null?void 0:ue.menus)&&((Ne=ue==null?void 0:ue.menus)==null?void 0:Ne.length)===0)&&(ne==null?void 0:ne.length)>0&&(ue.menus=ne)):(ue.mainKey=!1,ue.bindMenus=ne)),ue}))),N}),fe=(ze=$e==null?void 0:$e.find(N=>(N==null?void 0:N.key)==="header"))==null?void 0:ze.contents;if(Array.isArray(fe==null?void 0:fe[0])&&(fe=fe==null?void 0:fe[0]),fe=ce.getColumnChild(fe),fe!=null&&fe.some(N=>{var oe,U;return((U=N==null?void 0:N.menus)==null?void 0:U[((oe=N==null?void 0:N.menus)==null?void 0:oe.length)-1])===""})){let N=(F=nn==null?void 0:nn.value)==null?void 0:F.find(oe=>(oe==null?void 0:oe.condition)==="child");$e=Qd($e,N)}return $e}if((a==null?void 0:a.filter)==="Chart"){let ne=a==null?void 0:a.contents;return ne.push({key:"newType",contents:"Chart"}),ne}return a==null?void 0:a.contents},up=async a=>{if((a==null?void 0:a.filter)==="Ordin"){let l=a==null?void 0:a.contents;return l.push({key:"enableWrap",contents:1}),l}if((a==null?void 0:a.filter)==="Block"){let l=a==null?void 0:a.contents;return l.push({key:"enableWrap",contents:2}),l}if((a==null?void 0:a.filter)==="Text"){let l=a==null?void 0:a.contents;return l.push({key:"enableWrap",contents:3}),l}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}return a==null?void 0:a.contents},dp=a=>{var r,o,s,h,c,d,m,b,u,C,M,k;let l=a==null?void 0:a.filter;if(l!=null&&l.includes("*")&&(l="({"+((o=(r=l==null?void 0:l.replace(":",wr))==null?void 0:r.split(wr))==null?void 0:o[1])),l=(s=l==null?void 0:l.replaceAll("{",""))==null?void 0:s.replaceAll("}",""),(c=(h=l==null?void 0:l.split("="))==null?void 0:h[1])!=null&&c.includes("$")){(l==null?void 0:l[0])==="("&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1));let W=(d=l==null?void 0:l.split("="))==null?void 0:d[0],I=(m=l==null?void 0:l.split("="))==null?void 0:m[1];(b=I==null?void 0:I.slice(1,I==null?void 0:I.length))!=null&&b.includes("$")&&(I=(M=(C=(u=nn==null?void 0:nn.value)==null?void 0:u.filter(j=>(j==null?void 0:j.condition)==="child"))==null?void 0:C[0])==null?void 0:M.value),l=W+"="+I}if((l==null?void 0:l[0])!=="("&&(l="("+l+")"),l.slice(1,(l==null?void 0:l.length)-1)==="undefined")return a==null?void 0:a.contents;let n=ce.calculatorAndToOr(l);if((n==null?void 0:n.length)>0){let W=[];return n==null||n.forEach(j=>{let L={};for(let E in j){let x=E;x!=null&&x.includes("[")||(L[x]=j[E])}W.push(L)}),(k=a==null?void 0:a.contents)==null?void 0:k.map(j=>{var E,x,w;let L=(x=(E=a==null?void 0:a.contents)==null?void 0:E.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:x.contents;if(L=(w=ce.getEqualChild(L))==null?void 0:w.filter(g=>(g==null?void 0:g.label)!=="操作"),(j==null?void 0:j.key)==="tableContents"){let S=ce.tableToForm(j==null?void 0:j.contents,L);W==null||W.forEach($=>{var V,ae;for(let Z in $)!((V=S==null?void 0:S[0])!=null&&V.find(ge=>{var ze;return(ge==null?void 0:ge.key)===Z||((ze=ge==null?void 0:ge.key)==null?void 0:ze.includes(Z))}))&&!(S!=null&&S.find(ge=>{var ze;return(ge==null?void 0:ge.key)===Z||((ze=ge==null?void 0:ge.key)==null?void 0:ze.includes(Z))}))||(((ae=$[Z])==null?void 0:ae[0])!=="!"?S=S==null?void 0:S.filter(ge=>{var ze,F;return((ze=ge==null?void 0:ge.find(ne=>{var J;return(ne==null?void 0:ne.key)===Z||((J=ne==null?void 0:ne.key)==null?void 0:J.includes(Z))}))==null?void 0:ze.value)===$[Z]||Array.isArray($==null?void 0:$[Z])&&((F=$==null?void 0:$[Z])==null?void 0:F.find(ne=>{var J;return((J=ge==null?void 0:ge.find(se=>{var Be;return(se==null?void 0:se.key)===Z||((Be=se==null?void 0:se.key)==null?void 0:Be.includes(Z))}))==null?void 0:J.value)===ne}))}):S=S==null?void 0:S.filter(ge=>{var ze;return((ze=ge==null?void 0:ge.find(F=>{var ne;return(F==null?void 0:F.key)===Z||((ne=F==null?void 0:F.key)==null?void 0:ne.includes(Z))}))==null?void 0:ze.value)!==$[Z]}))}),(S==null?void 0:S.length)===0?j.contents=[]:j.contents=S==null?void 0:S.map($=>{let V={};return $==null||$.forEach(ae=>{V[ae==null?void 0:ae.key]=ae==null?void 0:ae.value}),V})}return j})}return a==null?void 0:a.contents},pp=a=>a==null?void 0:a.contents,fp=a=>a==null?void 0:a.contents,hp=a=>{var l,n,r,o;if((a==null?void 0:a.filter)!==""&&(a!=null&&a.filter)){let s=(r=(n=a==null?void 0:a.filter)==null?void 0:n.slice(1,((l=a==null?void 0:a.filter)==null?void 0:l.length)-1))==null?void 0:r.split(",");return(o=a==null?void 0:a.contents)==null?void 0:o.map(c=>((c==null?void 0:c.key)==="header"&&(c.contents=vt(c.contents,s)),c))}return a==null?void 0:a.contents},vp=a=>{var n,r,o,s,h;let l=(a==null?void 0:a.filter)??"";if(l!==""){let c=(r=(n=l==null?void 0:l.replace("(",wr))==null?void 0:n.split(wr))==null?void 0:r[1];c=c==null?void 0:c.slice(0,(c==null?void 0:c.length)-1),(c==null?void 0:c[(c==null?void 0:c.length)-1])===")"&&(c=c==null?void 0:c.slice(1,(c==null?void 0:c.length)-1)),c=(o=ce.analyzeSplitToContent(c,","))==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));let d=c==null?void 0:c[0];(d==null?void 0:d[0])==="("&&(d=d==null?void 0:d.slice(1,(d==null?void 0:d.length)-1));let m=(c==null?void 0:c[1])??"Up",b=(s=a==null?void 0:a.contents)==null?void 0:s.map(u=>{var C,M;if(m==="Up"){if((u==null?void 0:u.key)==="extraButton"){let k=(C=d==null?void 0:d.split(","))==null?void 0:C.map(W=>({label:W,prop:W}));u.contents=[...k,...u.contents]}}else if(m==="Line"&&(u==null?void 0:u.key)==="rowButton"){let k=(M=d==null?void 0:d.split(","))==null?void 0:M.map(W=>({label:W,prop:W}));u.contents=[...k,...u.contents]}return u});if(m==="Bottom"||m==="Down"){let u=(h=d==null?void 0:d.split(","))==null?void 0:h.map(C=>({label:C,prop:C}));b.push({key:"bottomButton",contents:u})}return b}return a==null?void 0:a.contents},mp=a=>a==null?void 0:a.contents,yp=a=>{var n;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!==""?(n=a==null?void 0:a.contents)==null?void 0:n.map(o=>{var s;return(o==null?void 0:o.key)==="rowButton"&&(o.contents=(s=l==null?void 0:l.split(","))==null?void 0:s.map(h=>({label:h,prop:h}))),o}):a==null?void 0:a.contents},gp=a=>{var n;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 r=a==null?void 0:a.contents,o=(n=l==null?void 0:l.split(","))==null?void 0:n.map(s=>({label:s,prop:s}));return r.push({key:"bottomButton",contents:o}),r}return a==null?void 0:a.contents},bp=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(n=>{var r;return(n==null?void 0:n.key)==="formContent"&&(n.contents=(r=n.contents)==null?void 0:r.map(o=>(o.isNoClick=!0,o))),n}),l!=null&&l.find(n=>(n==null?void 0:n.key)==="tableContents")&&(l==null||l.push({key:"isEdit",contents:!1}),l=l==null?void 0:l.filter(n=>(n==null?void 0:n.key)!=="extraButton"&&(n==null?void 0:n.key)!=="rowButton")),l}return a==null?void 0:a.contents},kp=a=>{var l;if(a!=null&&a.filter){const n=parseInt(a==null?void 0:a.filter);return!n||Number.isNaN(n)?a==null?void 0:a.contents:(l=a==null?void 0:a.contents)==null?void 0:l.map(o=>{var s;return(o==null?void 0:o.key)==="formContent"&&(o.contents=(s=o.contents)==null?void 0:s.map(h=>(h.width=n,h))),o})}return a==null?void 0:a.contents},xp=a=>{var l,n,r,o;if(((l=a==null?void 0:a.filter)==null?void 0:l[0])!=="["){const s=parseInt(a==null?void 0:a.filter);return!s||Number.isNaN(s)?a==null?void 0:a.contents:(n=a==null?void 0:a.contents)==null?void 0:n.map(c=>{var d;return(c==null?void 0:c.key)==="formContent"&&(c.contents=(d=c.contents)==null?void 0:d.map(m=>(m.width=s,m))),c})}if(((r=a==null?void 0:a.filter)==null?void 0:r[0])==="["){let s=Di(a==null?void 0:a.filter),h=Array.isArray(s)?s.map(d=>parseInt(d)).filter(d=>!!d&&!Number.isNaN(d)):[];return h.length?(o=a==null?void 0:a.contents)==null?void 0:o.map(d=>{if((d==null?void 0:d.key)==="formContent"){const m=d.contents??[];d.contents=m.map((b,u)=>{const C=u+1;let M=0,k=0;for(let I=0;I<h.length;I++){if(k+=h[I],C<=k){M=I;break}I===h.length-1&&(M=h.length-1)}const W=h[M]||h[h.length-1]||1;return b.width=W,b})}return d}):a==null?void 0:a.contents}return a==null?void 0:a.contents},wp=a=>{var l;if((a==null?void 0:a.filter)!==""){let 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=n==null?void 0:n.split(","),(l=a==null?void 0:a.contents)==null?void 0:l.map(o=>{var s,h,c;return(o==null?void 0:o.key)==="header"&&(Array.isArray((s=o==null?void 0:o.contents)==null?void 0:s[0])?o.contents[0]=(c=o.contents[0])==null?void 0:c.map(d=>(n!=null&&n.find(m=>m===(d==null?void 0:d.prop))&&(d.fixed="left"),d)):o.contents=(h=o.contents)==null?void 0:h.map(d=>(n!=null&&n.find(m=>m===(d==null?void 0:d.prop))&&(d.fixed="left"),d))),o})}return a==null?void 0:a.contents},_p=a=>{var l;if((a==null?void 0:a.filter)!==""){let n=a==null?void 0:a.filter;(n==null?void 0:n[0])==="("&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n=n==null?void 0:n.split(",");const r=s=>(n!=null&&n.find(h=>h===(s==null?void 0:s.prop))&&(s.required=!0),s!=null&&s.children&&Array.isArray(s.children)&&(s.children=s.children.map(h=>r(h))),s);return(l=a==null?void 0:a.contents)==null?void 0:l.map(s=>{var h,c,d;return(s==null?void 0:s.key)==="header"&&(Array.isArray((h=s==null?void 0:s.contents)==null?void 0:h[0])?s.contents[0]=(d=s.contents[0])==null?void 0:d.map(m=>r(m)):s.contents=(c=s.contents)==null?void 0:c.map(m=>r(m))),s})}return a==null?void 0:a.contents},Sp=async a=>{var r,o,s,h,c,d,m,b,u,C,M,k,W,I,j,L,E;const l=A.useUnit(A.pinia),{chooseTitle:n}=A.storeToRefs(l);if((a==null?void 0:a.filter)==="true"){let x=await Gr(((o=(r=n==null?void 0:n.value)==null?void 0:r[0])==null?void 0:o.parentContent)??((h=(s=n==null?void 0:n.value)==null?void 0:s[0])==null?void 0:h.relatedContent),!1),w=(d=(c=n==null?void 0:n.value)==null?void 0:c[0])==null?void 0:d.value;(b=(m=x==null?void 0:x[0])==null?void 0:m.compData)!=null&&b.find(V=>(V==null?void 0:V.key)==="header")?x=(u=x==null?void 0:x[0])==null?void 0:u.compData:x=(M=(C=x==null?void 0:x.filter(V=>{var ae;return(ae=V==null?void 0:V.compData)==null?void 0:ae.find(Z=>(Z==null?void 0:Z.key)==="header")}))==null?void 0:C[0])==null?void 0:M.compData;let g=(k=x==null?void 0:x.find(V=>(V==null?void 0:V.key)==="header"))==null?void 0:k.contents;Array.isArray(g==null?void 0:g[0])&&(g=g==null?void 0:g[0]),g=((W=g==null?void 0:g.find(V=>V==null?void 0:V.isMainKey))==null?void 0:W.prop)??((I=g==null?void 0:g[0])==null?void 0:I.prop);let S=(L=(j=x==null?void 0:x.find(V=>(V==null?void 0:V.key)==="tableContents"))==null?void 0:j.contents)==null?void 0:L.find(V=>(V==null?void 0:V[g])===w);return(E=a==null?void 0:a.contents)==null?void 0:E.map(V=>{var ae;return(V==null?void 0:V.key)==="formContent"&&(V.contents=(ae=V.contents)==null?void 0:ae.map(Z=>(Z.value=S==null?void 0:S[Z==null?void 0:Z.prop],Z))),V})}return a==null?void 0:a.contents},Ep=a=>{var l,n,r,o,s;if((l=a==null?void 0:a.extra)!=null&&l.row){let h=a==null?void 0:a.filter;if(h!=null&&h.includes("*")&&(h="({"+((r=(n=h==null?void 0:h.replace("{",wr))==null?void 0:n.split(wr))==null?void 0:r[1])),h=(o=h==null?void 0:h.replaceAll("{",""))==null?void 0:o.replaceAll("}",""),(h==null?void 0:h[0])!=="("&&(h="("+h+")"),h.slice(1,(h==null?void 0:h.length)-1)==="undefined")return a==null?void 0:a.contents;let c=ce.calculatorAndToOr(h),d=c==null?void 0:c[0],m=(s=a==null?void 0:a.extra)==null?void 0:s.row,b=[];for(let u in d)(d==null?void 0:d[u])===(m==null?void 0:m[u])?b.push(!0):b.push(!1);return b!=null&&b.every(u=>u===!0)?a==null?void 0:a.contents:[]}else return a==null?void 0:a.contents},Cp=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},Dp=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},Bp=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},Tp=a=>{var l;if(a!=null&&a.filter){let n=a==null?void 0:a.contents,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=(l=ce.analyzeSplitToContent(r,","))==null?void 0:l.map(o=>((o==null?void 0:o[(o==null?void 0:o.length)-1])===","&&(o=o==null?void 0:o.slice(0,(o==null?void 0:o.length)-1)),o)),n.push({key:"stepName",contents:r}),n}return a==null?void 0:a.contents},Np=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},nc={onNumSlice:sp,onRandomContents:cp,onConditionContents:dp,onFatherPaceContents:pp,onPaceContents:fp,onMainTagContents:hp,onButtonContents:vp,onPamButtonContents:mp,onRowButtonContents:yp,onRelated:Sp,onRowNum:xp,onFixRow:wp,onReqItem:_p,onBottomButtonContents:gp,onConditionContent:Ep,onTabs:Cp,onSinChoice:Dp,onTextSize:op,onTextRGBA:tp,onPosition:np,onSize:ip,onShowType:Bp,onStepName:Tp,onStep:Np,onInterfaceTypeContents:up,onBackGround:rp,onMaxColumn:kp,onEditRead:bp},Ap=async(a,l,n="")=>{var h,c,d,m,b,u,C,M,k,W,I,j;let r="";if(((h=a==null?void 0:a.find(L=>(L==null?void 0:L.key)==="filter"))==null?void 0:h.contents)!==""&&(r=(c=a==null?void 0:a.find(L=>(L==null?void 0:L.key)==="filter"))==null?void 0:c.contents),r===""||!r)return a;(r==null?void 0:r[0])==="("?r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1):(r=(m=(d=r==null?void 0:r.replace("(",wr))==null?void 0:d.split(wr))==null?void 0:m[1],r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1));let o=(b=ce.analyzeSplitToContent(r,","))==null?void 0:b.map(L=>((L==null?void 0:L[(L==null?void 0:L.length)-1])===","&&(L=L==null?void 0:L.slice(0,(L==null?void 0:L.length)-1)),L!=null&&L.includes("(")||(L=L==null?void 0:L.replaceAll(":","=")),L)),s=a;for(let L in o){let E,x="";E=(M=(C=(u=o==null?void 0:o[L])==null?void 0:u.replace("=",wr))==null?void 0:C.split(wr))==null?void 0:M[0],x=(I=(W=(k=o==null?void 0:o[L])==null?void 0:k.replace("=",wr))==null?void 0:W.split(wr))==null?void 0:I[1];let w=(j=xn==null?void 0:xn.find(g=>(g==null?void 0:g.key)===E))==null?void 0:j.value;if(w){const g=nc[w];s=await g({contents:s,filter:x,extra:l,groupName:n})}}return s},Oo=async(a,l,n="")=>{var c,d,m,b,u,C,M,k,W,I,j,L,E,x,w,g,S,$,V,ae;let r="";if(((c=a==null?void 0:a.find(Z=>(Z==null?void 0:Z.key)==="filter"))==null?void 0:c.contents)!==""&&(r=(d=a==null?void 0:a.find(Z=>(Z==null?void 0:Z.key)==="filter"))==null?void 0:d.contents),r===""||!r)return a;(r==null?void 0:r[0])===","&&(r=r==null?void 0:r.slice(1,r==null?void 0:r.length)),(r==null?void 0:r[0])==="("?r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1):(r==null?void 0:r[0])==="@"||(r=(b=(m=r==null?void 0:r.replace("(",wr))==null?void 0:m.split(wr))==null?void 0:b[1],r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1));let o=(u=ce.analyzeSplitToContent(r,","))==null?void 0:u.map(Z=>((Z==null?void 0:Z[(Z==null?void 0:Z.length)-1])===","&&(Z=Z==null?void 0:Z.slice(0,(Z==null?void 0:Z.length)-1)),Z!=null&&Z.includes("(")||(Z=Z==null?void 0:Z.replaceAll(":","=")),Z)),s=a,h=new Map;o==null||o.forEach(Z=>{var ze,F,ne;let ge=(ze=Z==null?void 0:Z.split("="))==null?void 0:ze[0];if(ge==="@MainPam"&&h.get(ge)){let J=h.get(ge);J=J==null?void 0:J.slice(0,(J==null?void 0:J.length)-1);let se=(ne=(F=Z==null?void 0:Z.replace("{",wr))==null?void 0:F.split(wr))==null?void 0:ne[1];se=J+","+se,h.set(ge,se)}else ge==="@Button"&&h.get(ge)?h.set(Z,Z):h.set(ge,Z)}),o=Array.from(h.values()),o=o==null?void 0:o.sort((Z,ge)=>{var ze,F;return((ze=xn==null?void 0:xn.find(ne=>ge==null?void 0:ge.includes(ne==null?void 0:ne.key)))==null?void 0:ze.order)-((F=xn==null?void 0:xn.find(ne=>Z==null?void 0:Z.includes(ne==null?void 0:ne.key)))==null?void 0:F.order)});for(let Z in o){let ge,ze="";(C=o==null?void 0:o[Z])!=null&&C.includes("(")&&((M=o==null?void 0:o[Z])!=null&&M.includes("@If"))?(ge=(I=(W=(k=o==null?void 0:o[Z])==null?void 0:k.replace("(",wr))==null?void 0:W.split(wr))==null?void 0:I[0],ze="("+((E=(L=(j=o==null?void 0:o[Z])==null?void 0:j.replace("(",wr))==null?void 0:L.split(wr))==null?void 0:E[1])):(ge=(g=(w=(x=o==null?void 0:o[Z])==null?void 0:x.replace("=",wr))==null?void 0:w.split(wr))==null?void 0:g[0],ze=(V=($=(S=o==null?void 0:o[Z])==null?void 0:S.replace("=",wr))==null?void 0:$.split(wr))==null?void 0:V[1]);let F=(ae=xn==null?void 0:xn.find(ne=>(ne==null?void 0:ne.key)===ge))==null?void 0:ae.value;if(F){const ne=nc[F];s=await ne({contents:s,filter:ze,extra:l,groupName:n})}}return s},ic=a=>{if(a==null)return null;const l=String(a).trim();if(!l.startsWith("(")||!l.endsWith(")"))return null;const n=l.slice(1,-1).split(",").map(r=>Number(r.trim()));return n.length<2||n.some(r=>Number.isNaN(r))?null:[n[0],n[1]]},oc=(a,l)=>{var W,I,j,L,E;const n=Array.isArray(a)?a:[],r=n.find(x=>(x==null?void 0:x.key)==="formContent"),o=Array.isArray(r==null?void 0:r.contents)?r.contents:[],s=((W=n.find(x=>(x==null?void 0:x.key)==="_gridLayoutMeta"))==null?void 0:W.contents)??{},h=(o==null?void 0:o[0])??{};let c=((I=l==null?void 0:l.position)==null?void 0:I[0])??(s==null?void 0:s._positionStartRow)??(h==null?void 0:h._positionStartRow),d=((j=l==null?void 0:l.position)==null?void 0:j[1])??(s==null?void 0:s._positionRowSpan)??(h==null?void 0:h._positionRowSpan);(!c||Number.isNaN(c)||c<1)&&(c=1),(!d||Number.isNaN(d)||d<1)&&(d=1);let m=((L=l==null?void 0:l.size)==null?void 0:L[0])??(s==null?void 0:s._sizeStart)??(h==null?void 0:h._sizeStart),b=((E=l==null?void 0:l.size)==null?void 0:E[1])??(s==null?void 0:s._sizeEnd)??(h==null?void 0:h._sizeEnd);(m===void 0||Number.isNaN(m))&&(m=0),(b===void 0||Number.isNaN(b))&&(b=1),m=Math.max(0,Math.min(1,m)),b=Math.max(0,Math.min(1,b)),b<=m&&(m=0,b=1);const u=b-m,C=Math.max(1,Math.round(1/u));let M=n.map(x=>{if((x==null?void 0:x.key)!=="formContent")return x;const w=Array.isArray(x==null?void 0:x.contents)?x.contents:[];return{...x,contents:w.map(g=>({...g,width:C,_positionStartRow:c,_positionRowSpan:d,_sizeStart:m,_sizeEnd:b}))}});const k={_positionStartRow:c,_positionRowSpan:d,_sizeStart:m,_sizeEnd:b};return M.some(x=>(x==null?void 0:x.key)==="_gridLayoutMeta")?M=M.map(x=>(x==null?void 0:x.key)==="_gridLayoutMeta"?{...x,contents:k}:x):M.push({key:"_gridLayoutMeta",contents:k}),M};let po="$R";const zp=A.useUnit(A.pinia),{selectTitle:Mp}=A.storeToRefs(zp);let Ip=[{label:"新增",prop:"新增"},{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],Op=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"},{label:"复制新增",prop:"复制新增"},{label:"删除",prop:"删除"}],Lp=[{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],Rp=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"}];const ts=async(a,l,n=!0)=>{let r=[],o=a==null?void 0:a.map(async s=>{var u,C,M,k,W,I,j,L,E,x,w,g,S,$,V,ae,Z,ge,ze,F,ne,J,se,Be,$e,fe,N,oe,U,De,Ie,je,la,Ta,ee,ca,ue,ta,Se,te,Ne,We,sa,Ya,R,H,X,ve,de,va,na,Pe,xa,Me,ma,Oa,za,pa,Ca,Ae,he,Y,xe,me,qe,da,Ke,aa,Ve,ye,pe,Sa,ya,vl,Nl,pl,Fl,ja,jl,Rl,Da,al,dl,ol,$a,tl,ll;let h=(k=(M=(C=(u=s==null?void 0:s.contents)==null?void 0:u.find(Te=>{var Ma;return(Ma=Te==null?void 0:Te.key)==null?void 0:Ma.includes("struct")}))==null?void 0:C.value)==null?void 0:M[0])==null?void 0:k.类型,c=Object.values(s==null?void 0:s.name);c=c==null?void 0:c.reverse();let d=(W=s==null?void 0:s.contents)==null?void 0:W.map(Te=>Te==null?void 0:Te.key),m={comp:h,isShow:s==null?void 0:s.is_show,name:c==null?void 0:c[0],id:s==null?void 0:s.object_id,order_no:s==null?void 0:s.order_no,relatedTables:d,menuFilter:(I=s==null?void 0:s.filter)==null?void 0:I.menuFilter,status:s==null?void 0:s.status,fatherSyncContents:(j=s==null?void 0:s.filter)==null?void 0:j.fatherSyncs,relatedQuotes:(L=s==null?void 0:s.filter)==null?void 0:L.quotes,sonSyncContents:(E=s==null?void 0:s.filter)==null?void 0:E.sonSyncs,nameContents:(x=A.cloneDeep(c))==null?void 0:x.reverse()};for(let Te in c)parseInt(Te)>=1&&(m[`name${parseInt(Te)-1}`]=c[Te]);let b=Array.isArray((w=s==null?void 0:s.filter)==null?void 0:w.menuFilter)?(g=s==null?void 0:s.filter)==null?void 0:g.menuFilter:[];if(((S=b==null?void 0:b.filter(Te=>Te==null?void 0:Te.includes("@Filter")))==null?void 0:S.length)>0){let Te=b==null?void 0:b.filter(Ze=>Ze==null?void 0:Ze.includes("@Filter"));Te=Te==null?void 0:Te[0],Te=(V=($=Te==null?void 0:Te.replace("(",po))==null?void 0:$.split(po))==null?void 0:V[1],Te=Te==null?void 0:Te.slice(0,(Te==null?void 0:Te.length)-1),Te!=null&&Te.includes("*")&&(Te=(Z=(ae=Te==null?void 0:Te.replace("{",po))==null?void 0:ae.split(po))==null?void 0:Z[1],Te=Te==null?void 0:Te.replace("}","")),Te=ce.calculatorAndToOr(Te);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 Je=await Gr(Ma,!1),ie=(ge=Je==null?void 0:Je.filter(Ze=>(Ze==null?void 0:Ze.comp)==="Table"))==null?void 0:ge[0];ie=(F=(ze=ie==null?void 0:ie.compData)==null?void 0:ze.find(Ze=>(Ze==null?void 0:Ze.key)==="tableContents"))==null?void 0:F.contents;let Xe=(J=(ne=Mp.value)==null?void 0:ne.find(Ze=>(Ze==null?void 0:Ze.condition)==="child"))==null?void 0:J.value;ie=(se=ie==null?void 0:ie.map(Ze=>{for(let ka in Ze)if((Ze==null?void 0:Ze[ka])===Xe)return Ze}))==null?void 0:se.filter(Ze=>Ze),ie=ie==null?void 0:ie[0],Te=Te==null?void 0:Te[0];let Aa=[];for(let Ze in Te){let ka="";Ua.isObject(ie)&&(ka=($e=(Be=Object.keys(ie))==null?void 0:Be.filter(Va=>Va==null?void 0:Va.includes("."+Ze)))==null?void 0:$e[0]),ka!==""&&(ie!=null&&ie[ka])&&(Te==null?void 0:Te[Ze])===(ie==null?void 0:ie[ka])||ie!=null&&ie[Ze]&&(Te==null?void 0:Te[Ze])===(ie==null?void 0:ie[Ze])?Aa.push(!0):Aa.push(!1)}if(Aa!=null&&Aa.some(Ze=>Ze===!1)&&((N=l==null?void 0:l.originPath)==null?void 0:N[((fe=l==null?void 0:l.originPath)==null?void 0:fe.length)-1])!=="/")return}if(h==="Table"||h==="Method"){!n&&((oe=m==null?void 0:m.fatherSyncContents)==null?void 0:oe.length)>0;let Te=((U=s==null?void 0:s.contents)==null?void 0:U.find(Ue=>{var fa;return(fa=Ue==null?void 0:Ue.key)==null?void 0:fa.includes("content")}))||[],Ma=[];m.comp="Table",Te.value=(De=Te==null?void 0:Te.value)==null?void 0:De.sort((Ue,fa)=>parseInt(Ue==null?void 0:Ue.id)-parseInt(fa==null?void 0:fa.id)),Te.value=(Ie=Te==null?void 0:Te.value)==null?void 0:Ie.map(Ue=>{let fa={};for(let oa in Ue)JSON.stringify(Ue==null?void 0:Ue[oa])==="{}"?fa[oa]="":fa[oa]=Ue==null?void 0:Ue[oa];return fa}),Ma.push({key:"tableContents",contents:Te==null?void 0:Te.value});let Je=(ca=(ee=(Ta=(la=(je=s==null?void 0:s.contents)==null?void 0:je.find(Ue=>{var fa;return(fa=Ue==null?void 0:Ue.key)==null?void 0:fa.includes("struct")}))==null?void 0:la.value)==null?void 0:Ta[0])==null?void 0:ee.结构)==null?void 0:ca.contents;Array.isArray(Je==null?void 0:Je[0])?Je[0]=(ue=Je==null?void 0:Je[0])==null?void 0:ue.filter(Ue=>(Ue==null?void 0:Ue.prop)!=="sort"&&(Ue==null?void 0:Ue.prop)!=="relatedId"):Je=Je==null?void 0:Je.filter(Ue=>(Ue==null?void 0:Ue.prop)!=="sort"&&(Ue==null?void 0:Ue.prop)!=="relatedId"),Ma.push({key:"header",contents:Je}),Ma.push({key:"filter",contents:(We=(Ne=(te=(Se=(ta=s==null?void 0:s.contents)==null?void 0:ta.find(Ue=>{var fa;return(fa=Ue==null?void 0:Ue.key)==null?void 0:fa.includes("struct")}))==null?void 0:Se.value)==null?void 0:te[0])==null?void 0:Ne.引用)==null?void 0:We.contents});let ie=Ip,Xe=A.cloneDeep(Op);h==="Method"&&Xe.push({label:"生成方法",prop:"生成方法"}),!Array.isArray(Je==null?void 0:Je[0])&&((sa=Je==null?void 0:Je[0])==null?void 0:sa.prop)==="disabled"&&(ie=Lp,Xe=Rp);const Aa=["推力","真空","压力","温度","流量"],Ze=m.name;Ze&&Aa.includes(Ze)&&(ie=[...ie],ie.push({label:"导出paraform",prop:"导出paraform",type:"methodButton"}));let ka=[];if(!Array.isArray(Je==null?void 0:Je[0])&&(Je!=null&&Je.some(Ue=>{var fa;return(Ue==null?void 0:Ue.calculatorFilter)&&((fa=Ue==null?void 0:Ue.calculatorFilter)==null?void 0:fa.includes("Manual"))}))){let Ue=(Ya=Je==null?void 0:Je.map(fa=>fa==null?void 0:fa.calculatorFilter))==null?void 0:Ya.filter(fa=>fa&&(fa==null?void 0:fa.includes("Manual")));Ue==null||Ue.forEach(fa=>{var il;let oa=ce.analyzeSplitToContent(fa,",");if(oa=oa==null?void 0:oa.map(Le=>((Le==null?void 0:Le[(Le==null?void 0:Le.length)-1])===","&&(Le=Le==null?void 0:Le.slice(0,(Le==null?void 0:Le.length)-1)),Le)),oa!=null&&oa.find(Le=>(Le==null?void 0:Le.includes("Extent"))&&(Le==null?void 0:Le.includes("Row")))&&(oa!=null&&oa.find(Le=>(Le==null?void 0:Le.includes("Button"))&&(Le==null?void 0:Le.includes(","))))){let Le=oa==null?void 0:oa.find(Pa=>Pa==null?void 0:Pa.includes("@FunctionButton"));Le=(il=Le==null?void 0:Le.split("="))==null?void 0:il[1],Le=Le==null?void 0:Le.slice(1,(Le==null?void 0:Le.length)-1),Le=Le==null?void 0:Le.split(","),Le=Le==null?void 0:Le[(Le==null?void 0:Le.length)-1],ka.push(Le)}}),ka=[...new Set(ka)],ka=ka==null?void 0:ka.map(fa=>({label:fa,prop:fa,type:"methodButton"}))}else if(Array.isArray(Je==null?void 0:Je[0])&&((R=ce.getColumnChild(Je==null?void 0:Je[0]))!=null&&R.some(Ue=>{var fa;return(Ue==null?void 0:Ue.calculatorFilter)&&((fa=Ue==null?void 0:Ue.calculatorFilter)==null?void 0:fa.includes("Manual"))}))){let Ue=(X=(H=ce.getColumnChild(Je==null?void 0:Je[0]))==null?void 0:H.map(fa=>fa==null?void 0:fa.calculatorFilter))==null?void 0:X.filter(fa=>fa&&(fa==null?void 0:fa.includes("Manual")));Ue==null||Ue.forEach(fa=>{var il;let oa=ce.analyzeSplitToContent(fa,",");if(oa=oa==null?void 0:oa.map(Le=>((Le==null?void 0:Le[(Le==null?void 0:Le.length)-1])===","&&(Le=Le==null?void 0:Le.slice(0,(Le==null?void 0:Le.length)-1)),Le)),oa!=null&&oa.find(Le=>(Le==null?void 0:Le.includes("Extent"))&&(Le==null?void 0:Le.includes("Row")))&&(oa!=null&&oa.find(Le=>(Le==null?void 0:Le.includes("Button"))&&(Le==null?void 0:Le.includes(","))))){let Le=oa==null?void 0:oa.find(Pa=>Pa==null?void 0:Pa.includes("@FunctionButton"));Le=(il=Le==null?void 0:Le.split("="))==null?void 0:il[1],Le=Le==null?void 0:Le.slice(1,(Le==null?void 0:Le.length)-1),Le=Le==null?void 0:Le.split(","),Le=Le==null?void 0:Le[(Le==null?void 0:Le.length)-1],ka.push(Le)}}),ka=[...new Set(ka)],ka=ka==null?void 0:ka.map(fa=>({label:fa,prop:fa,type:"methodButton"}))}if(Ma.push({key:"extraButton",contents:ie}),Ma.push({key:"rowButton",contents:[...Xe,...ka]}),m.compData=await Oo(Ma,l,m==null?void 0:m.nameContents),(ve=m.compData)!=null&&ve.find(Ue=>(Ue==null?void 0:Ue.key)==="tab")&&(m.tab=(va=(de=m.compData)==null?void 0:de.find(Ue=>(Ue==null?void 0:Ue.key)==="tab"))==null?void 0:va.contents),(na=m.compData)!=null&&na.find(Ue=>(Ue==null?void 0:Ue.key)==="step")&&(m.step=(xa=(Pe=m.compData)==null?void 0:Pe.find(Ue=>(Ue==null?void 0:Ue.key)==="step"))==null?void 0:xa.contents),(Me=m.compData)!=null&&Me.find(Ue=>(Ue==null?void 0:Ue.key)==="choice")&&(m.choice=(Oa=(ma=m.compData)==null?void 0:ma.find(Ue=>(Ue==null?void 0:Ue.key)==="choice"))==null?void 0:Oa.contents),(za=m.compData)!=null&&za.find(Ue=>(Ue==null?void 0:Ue.key)==="newType")){let Ue=(Ca=(pa=m.compData)==null?void 0:pa.find(fa=>(fa==null?void 0:fa.key)==="newType"))==null?void 0:Ca.contents;m.comp=Ue,m.compData=(Ae=m.compData)==null?void 0:Ae.filter(fa=>(fa==null?void 0:fa.key)!=="newType")}let Va="",Ja=(he=m==null?void 0:m.compData)==null?void 0:he.filter(Ue=>(Ue==null?void 0:Ue.key)==="fixType");(Ja==null?void 0:Ja.length)>0&&n&&(Va=(Y=Ja==null?void 0:Ja[0])==null?void 0:Y.contents,m.comp=Va)}else if(h==="Form"){let Te=[],Ma=(qe=(me=(xe=s==null?void 0:s.contents)==null?void 0:xe.find(Ze=>{var ka;return(ka=Ze==null?void 0:Ze.key)==null?void 0:ka.includes("content")}))==null?void 0:me.value)==null?void 0:qe[0],Je=[],ie=Array.isArray((da=s==null?void 0:s.filter)==null?void 0:da.menuFilter)?(Ke=s==null?void 0:s.filter)==null?void 0:Ke.menuFilter:[];ie==null||ie.forEach(Ze=>{if(Ze!=null&&Ze.includes("@Param(Hide=Yes, prop=")||Ze!=null&&Ze.includes("(Hide=Yes, prop=")){const ka=Ze==null?void 0:Ze.match(/prop=([^,)]+)/);ka!=null&&ka[1]&&Je.push(ka==null?void 0:ka[1])}});let Xe=(Sa=(pe=(ye=(Ve=(aa=s==null?void 0:s.contents)==null?void 0:aa.find(Ze=>{var ka;return(ka=Ze==null?void 0:Ze.key)==null?void 0:ka.includes("struct")}))==null?void 0:Ve.value)==null?void 0:ye[0])==null?void 0:pe.结构)==null?void 0:Sa.contents,Aa=(ya=Xe==null?void 0:Xe.map(Ze=>(Ze.value=Ma==null?void 0:Ma[Ze==null?void 0:Ze.prop],Ze)))==null?void 0:ya.filter(Ze=>(Ze==null?void 0:Ze.prop)!=="sort"&&(Ze==null?void 0:Ze.prop)!=="relatedId");Aa=Aa==null?void 0:Aa.map(Ze=>(Je!=null&&Je.includes(Ze==null?void 0:Ze.prop)&&(Ze.isHideInForm=!0),Ze)),Te.push({key:"filter",contents:(ja=(Fl=(pl=(Nl=(vl=s==null?void 0:s.contents)==null?void 0:vl.find(Ze=>{var ka;return(ka=Ze==null?void 0:Ze.key)==null?void 0:ka.includes("struct")}))==null?void 0:Nl.value)==null?void 0:pl[0])==null?void 0:Fl.引用)==null?void 0:ja.contents}),Te.push({key:"formContent",contents:Aa}),Te.push({key:"paramHideProps",contents:Je}),m.compData=await Ap(Te,l,m==null?void 0:m.nameContents),(jl=m.compData)!=null&&jl.find(Ze=>(Ze==null?void 0:Ze.key)==="tab")&&(m.tab=(Da=(Rl=m.compData)==null?void 0:Rl.find(Ze=>(Ze==null?void 0:Ze.key)==="tab"))==null?void 0:Da.contents),(al=m.compData)!=null&&al.find(Ze=>(Ze==null?void 0:Ze.key)==="step")&&(m.step=(ol=(dl=m.compData)==null?void 0:dl.find(Ze=>(Ze==null?void 0:Ze.key)==="step"))==null?void 0:ol.contents),($a=m.compData)!=null&&$a.find(Ze=>(Ze==null?void 0:Ze.key)==="choice")&&(m.choice=(ll=(tl=m.compData)==null?void 0:tl.find(Ze=>(Ze==null?void 0:Ze.key)==="choice"))==null?void 0:ll.contents)}return m});return r=await Promise.all(o),r},$p=A.useLoginState(A.pinia),{loginUserInfo:wi}=A.storeToRefs($p),Vp=async(a,l="Manual",n=[])=>{var h;let r=a;r=r==null?void 0:r.filter(c=>c==null?void 0:c.functionName);let o=(h=r==null?void 0:r.filter(c=>{var d;return(c==null?void 0:c.functionName)&&(l==="Manual"&&((d=c==null?void 0:c.calculatorFilter)==null?void 0:d.includes(l))||l!=="Manual")}))==null?void 0:h.map(c=>({prop:c==null?void 0:c.prop,label:c==null?void 0:c.label,methods:c==null?void 0:c.calculatorFilter,functionName:c==null?void 0:c.functionName,functionRelatedWords:c==null?void 0:c.functionRelatedWords})),s=r==null?void 0:r.map(async c=>{let d=o==null?void 0:o.filter(m=>(m==null?void 0:m.prop)===(c==null?void 0:c.prop));return c=await tc(c,d,r,l,r,n),c});return s=await Promise.all(s),s},mt=async(a,l,n="Manual",r=[])=>{var d;let o=a,s;Array.isArray(l==null?void 0:l[0])?s=ce.getColumnChild(l==null?void 0:l[0]):s=l;let h=(d=s==null?void 0:s.filter(m=>{var b;return(m==null?void 0:m.calculatorFilter)&&((b=m==null?void 0:m.calculatorFilter)==null?void 0:b.includes(n))||(m==null?void 0:m.calculatorFilter)===""&&(m==null?void 0:m.functionName)}))==null?void 0:d.map(m=>({prop:m==null?void 0:m.prop,label:m==null?void 0:m.label,methods:m==null?void 0:m.calculatorFilter,functionName:m==null?void 0:m.functionName,functionRelatedWords:m==null?void 0:m.functionRelatedWords})),c=o==null?void 0:o.map(async m=>(m=await tc(m,h,s,n,o,r),m));return c=await Promise.all(c),c},Pp=a=>{let l=a==null?void 0:a.contents,n=a==null?void 0:a.valueString,r=a==null?void 0:a.prop,o=a==null?void 0:a.headers,s;return Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=ce.getValueToObjectValue(l,ce.getColumnContents(o))),n==null||n.forEach(h=>{var c;if(l!=null&&l[h]){let d=l==null?void 0:l[h];s=s?d?Tl.isEqual(d.toString(),s.toString()):void 0:d}else{let d=(c=o==null?void 0:o.find(b=>(b==null?void 0:b.label)===h))==null?void 0:c.prop,m=(l==null?void 0:l[d])??0;s=s?m?Tl.isEqual(m.toString(),s.toString()):void 0:m}}),l[r]=s===void 0?void 0:s?1:0,l},Cr=a=>{const[l,n,r]=A.cloneDeep(a).split(":").map(Number);let o=+a;return!a||!(a!=null&&a.includes(":"))?o:(l??0)*3600+(n??0)*60+(r??0)},Fn=a=>{const l=s=>s.toString().padStart(2,"0"),n=Math.floor(a/3600),r=Math.floor(a%3600/60),o=a%60;return`${l(n)}:${l(r)}:${parseInt(l(o))}`},Fp=a=>{let l=a==null?void 0:a.contents,n=a==null?void 0:a.valueString,r=a==null?void 0:a.prop,o=a==null?void 0:a.headers,s=a==null?void 0:a.typeString,h=a==null?void 0:a.allContents,c=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=ce.getValueToObjectValue(l,ce.getColumnContents(o))),n==null||n.forEach(d=>{var m,b,u,C,M,k,W,I,j;if(l!=null&&l[d]){if(s==="Row")if(!((b=((m=l==null?void 0:l[d])==null?void 0:m.toString())??"")!=null&&b.includes(":"))&&!((u=c==null?void 0:c.toString())!=null&&u.includes(":"))){let L=+(l==null?void 0:l[d]);c=c+L}else c=Cr(c.toString())+Cr((C=l==null?void 0:l[d])==null?void 0:C.toString()),c=Fn(c)}else if(s==="Row"){let L=(M=o==null?void 0:o.find(E=>(E==null?void 0:E.label)===d))==null?void 0:M.prop;if(!((W=Number.isNaN(l==null?void 0:l[L])?"":(k=l==null?void 0:l[L])==null?void 0:k.toString())!=null&&W.includes(":"))&&!((I=c==null?void 0:c.toString())!=null&&I.includes(":"))){let E=+((l==null?void 0:l[L])??0);c=c+E}else c=Cr(c==null?void 0:c.toString())+Cr((j=(l==null?void 0:l[L])??0)==null?void 0:j.toString()),c=Fn(c)}}),s==="Column"){let d=[];n==null||n.forEach(m=>{let b=h==null?void 0:h.map(u=>{var C;return(u==null?void 0:u[m])??(u==null?void 0:u[(C=o==null?void 0:o.find(M=>(M==null?void 0:M.label)===m))==null?void 0:C.prop])});d=[...d,...b]}),c=d.reduce((m,b)=>{let u=0;Number.isNaN(m)||(u=+m);let C=0;return Number.isNaN(b)||(C=+b),u+C},0)}return l[r]=c,l},jp=a=>{let l=a==null?void 0:a.contents,n=a==null?void 0:a.valueString,r=a==null?void 0:a.prop,o=a==null?void 0:a.headers,s=a==null?void 0:a.typeString,h=a==null?void 0:a.allContents,c=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=ce.getValueToObjectValue(l,ce.getColumnContents(o))),n==null||n.forEach(d=>{var m,b,u,C,M,k,W;if(l!=null&&l[d]){if(s==="Row")if(!((b=(m=l==null?void 0:l[d])==null?void 0:m.toString())!=null&&b.includes(":"))&&!((u=c==null?void 0:c.toString())!=null&&u.includes(":"))){let I=+(l==null?void 0:l[d]);c=c===0?c+I:c-I}else c=c===0?Cr(c.toString())+Cr(l==null?void 0:l[d].toString()):Cr(c.toString())-Cr(l==null?void 0:l[d].toString()),c=Fn(c)}else if(s==="Row"){let I=(C=o==null?void 0:o.find(j=>(j==null?void 0:j.label)===d))==null?void 0:C.prop;if(!((k=Number.isNaN(l==null?void 0:l[I])?"":(M=l==null?void 0:l[I])==null?void 0:M.toString())!=null&&k.includes(":"))&&!((W=c==null?void 0:c.toString())!=null&&W.includes(":"))){let j=+((l==null?void 0:l[I])??0);c=c===0?c+j:c-j}else c=c===0?Cr(c.toString())+Cr(((l==null?void 0:l[I])??0).toString()):Cr(c.toString())-Cr(((l==null?void 0:l[I])??0).toString()),c=Fn(c)}}),s==="Column"){let d=[];n==null||n.forEach(m=>{let b=h==null?void 0:h.map(u=>{var C;return(u==null?void 0:u[m])??(u==null?void 0:u[(C=o==null?void 0:o.find(M=>(M==null?void 0:M.label)===m))==null?void 0:C.prop])});d=[...d,...b]}),c=d.reduce((m,b)=>{let u=0;Number.isNaN(m)||(u=+m);let C=0;return Number.isNaN(b)||(C=+b),u-C},0)}return l[r]=c,l},Hp=a=>{let l=a==null?void 0:a.contents,n=a==null?void 0:a.valueString,r=a==null?void 0:a.prop,o=a==null?void 0:a.headers,s=a==null?void 0:a.typeString,h=a==null?void 0:a.allContents,c=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=ce.getValueToObjectValue(l,ce.getColumnContents(o))),n==null||n.forEach(d=>{var m,b,u,C,M,k,W;if(l!=null&&l[d]){if(s==="Row")if(!((b=(m=l==null?void 0:l[d])==null?void 0:m.toString())!=null&&b.includes(":"))&&!((u=c==null?void 0:c.toString())!=null&&u.includes(":"))){let I=+(l==null?void 0:l[d]);c=c===0?c+I:c*I}else c=c===0?Cr(c.toString())+Cr(l==null?void 0:l[d].toString()):Cr(c.toString())*Cr(l==null?void 0:l[d].toString()),c=Fn(c)}else if(s==="Row"){let I=(C=o==null?void 0:o.find(j=>(j==null?void 0:j.label)===d))==null?void 0:C.prop;if(!(l!=null&&l[I]))c=void 0;else if(!((k=Number.isNaN(l==null?void 0:l[I])?"":(M=l==null?void 0:l[I])==null?void 0:M.toString())!=null&&k.includes(":"))&&!((W=c==null?void 0:c.toString())!=null&&W.includes(":"))){let j=+((l==null?void 0:l[I])??0);c=c===0?c+j:c*j}else c=c===0?Cr(c.toString())+Cr(((l==null?void 0:l[I])??0).toString()):Cr(c.toString())*Cr(((l==null?void 0:l[I])??0).toString()),c=Fn(c)}}),s==="Column"){let d=[];n==null||n.forEach(m=>{let b=h==null?void 0:h.map(u=>{var C;return(u==null?void 0:u[m])??(u==null?void 0:u[(C=o==null?void 0:o.find(M=>(M==null?void 0:M.label)===m))==null?void 0:C.prop])});d=[...d,...b]}),c=d.reduce((m,b)=>{let u=0;Number.isNaN(m)||(u=+m);let C=0;return Number.isNaN(b)||(C=+b),u*C},0)}return l[r]=c,l},Up=a=>{let l=a==null?void 0:a.contents,n=a==null?void 0:a.valueString,r=a==null?void 0:a.prop,o=a==null?void 0:a.headers,s=a==null?void 0:a.typeString,h=a==null?void 0:a.allContents,c=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=ce.getValueToObjectValue(l,ce.getColumnContents(o))),n==null||n.forEach(d=>{var m,b,u,C,M,k,W;if(l!=null&&l[d]){if(s==="Row")if(!((b=(m=l==null?void 0:l[d])==null?void 0:m.toString())!=null&&b.includes(":"))&&!((u=c==null?void 0:c.toString())!=null&&u.includes(":"))){let I=+(l==null?void 0:l[d]);c=c===0?c+I:c/I}else c=c===0?Cr(c.toString())+Cr(l==null?void 0:l[d].toString()):Cr(c.toString())/Cr(l==null?void 0:l[d].toString()),c=Fn(c)}else if(s==="Row"){let I=(C=o==null?void 0:o.find(j=>(j==null?void 0:j.label)===d))==null?void 0:C.prop;if(!((k=Number.isNaN(l==null?void 0:l[I])?"":(M=l==null?void 0:l[I])==null?void 0:M.toString())!=null&&k.includes(":"))&&!((W=c==null?void 0:c.toString())!=null&&W.includes(":"))){let j=+((l==null?void 0:l[I])??0);c=c===0?c+j:c/j}else c=c===0?Cr(c.toString())+Cr(((l==null?void 0:l[I])??0).toString()):Cr(c.toString())/Cr(((l==null?void 0:l[I])??0).toString()),c=Fn(c)}}),s==="Column"){let d=[];n==null||n.forEach(m=>{let b=h==null?void 0:h.map(u=>{var C;return(u==null?void 0:u[m])??(u==null?void 0:u[(C=o==null?void 0:o.find(M=>(M==null?void 0:M.label)===m))==null?void 0:C.prop])});d=[...d,...b]}),c=d.reduce((m,b)=>{let u=0;Number.isNaN(m)||(u=+m);let C=0;return Number.isNaN(b)||(C=+b),u/C},0)}return l[r]=c.toFixed(2),l},qp=async a=>{var s,h,c,d,m,b,u,C,M,k,W;let l=(s=a==null?void 0:a.valueString)==null?void 0:s[0],n=(h=a==null?void 0:a.contents)==null?void 0:h.calculatorFilter,r=0,o=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 I=(d=(c=l==null?void 0:l.split("*"))==null?void 0:c[0])==null?void 0:d.replaceAll(":","/"),j=await Gr(I,!1),L=(m=l==null?void 0:l.split("*"))==null?void 0:m[1];if(j=(b=j==null?void 0:j.filter(E=>(E==null?void 0:E.name)===L))==null?void 0:b[0],n!==""){let E=j.compData;E=E==null?void 0:E.filter(x=>(x==null?void 0:x.key)!=="filter"),E.push({key:"filter",contents:"("+n+")"}),E=await Oo(E,{}),r=(C=(u=E==null?void 0:E.find(x=>(x==null?void 0:x.key)==="tableContents"))==null?void 0:u.contents)==null?void 0:C.length}else r=(W=(k=(M=j==null?void 0:j.compData)==null?void 0:M.find(E=>(E==null?void 0:E.key)==="tableContents"))==null?void 0:k.contents)==null?void 0:W.length}return o.value=r,o},fo={Sum:Fp,Substract:jp,Multiple:Hp,Divide:Up,Compare:Pp,VecDimCount:qp},tc=async(a,l,n,r="Auto",o,s=[])=>{var b,u,C,M,k,W,I,j,L,E,x,w,g,S,$,V,ae,Z,ge,ze,F;let h=a,c=[],d=await A.getPageDataApi({platId:parseInt((b=wi==null?void 0:wi.value)==null?void 0:b.plat_id),pageName:"menu"});d=(M=(C=(u=d==null?void 0:d.data)==null?void 0:u.result)==null?void 0:C.filter(ne=>(ne==null?void 0:ne.property_name)===""))==null?void 0:M[0];let m=[];if(d!=null&&d.object_name){d=d==null?void 0:d.object_name;let ne=await A.getPageDataApi({platId:parseInt((k=wi==null?void 0:wi.value)==null?void 0:k.plat_id),pageName:d});ne=(E=(L=(j=(I=(W=ne==null?void 0:ne.data)==null?void 0:W.result)==null?void 0:I[0])==null?void 0:j.contents)==null?void 0:L.find(J=>{var se;return(se=J==null?void 0:J.key)==null?void 0:se.includes("content")}))==null?void 0:E.value,c=(x=ne==null?void 0:ne.map(J=>({functionName:J==null?void 0:J.函数名称,functionContent:J==null?void 0:J.输出值})))==null?void 0:x.filter(J=>(J==null?void 0:J.functionContent)!==""),c==null||c.forEach(J=>{m.push(J.functionName),fo[J.functionName]=new Function("return "+J.functionContent)()})}if((l==null?void 0:l.length)===0)return h;for(let ne in l){let J=(w=l==null?void 0:l[ne])==null?void 0:w.functionName;const se=fo==null?void 0:fo[J];let Be=(g=l==null?void 0:l[ne])==null?void 0:g.methods;if(Be=ce.analyzeSplitToContent(Be,","),console.log(Be),(S=Be==null?void 0:Be.find($e=>$e==null?void 0:$e.includes("@FunctionType")))!=null&&S.includes(r)||r==="Auto"||(Be==null?void 0:Be.length)===0){let $e=((ae=(V=($=Be==null?void 0:Be.find(fe=>fe==null?void 0:fe.includes("@FunctionExtent")))==null?void 0:$.replace(":","="))==null?void 0:V.split("="))==null?void 0:ae[1])??[];if(await new Function("return ")(),(m==null?void 0:m.length)>0&&m.find(fe=>fe===J)){let fe="";try{let oe=(Z=l==null?void 0:l[ne])==null?void 0:Z.functionRelatedWords,U=(s==null?void 0:s.length)>0?s==null?void 0:s.map(Ie=>{var je;return Ie==null?void 0:Ie[(je=l==null?void 0:l[ne])==null?void 0:je.prop]}):["0"];U=U==null?void 0:U.map(Ie=>Ie==null?void 0:Ie.slice((Ie==null?void 0:Ie.length)-5,Ie==null?void 0:Ie.length)),U=U==null?void 0:U.map(Ie=>ce.isNumber(parseInt(Ie))&&parseInt(Ie)?parseInt(Ie):0);let De=Math.max(...U);oe=oe==null?void 0:oe.map(Ie=>{if(Ie!=null&&Ie.includes("'"))return Ie==null?void 0:Ie.replaceAll("'","");if(Ie!=null&&Ie.includes("@"))return De+1;{let je=Object.keys(h);return Ie=(h==null?void 0:h[Ie])??(h==null?void 0:h[je==null?void 0:je.find(la=>la==null?void 0:la.includes("."+Ie))]),Ie}}),fe=se(...oe)}catch(oe){Ua.ElMessage.warning("关联数据出现错误,"+oe.message)}let N=(ge=l==null?void 0:l[ne])==null?void 0:ge.prop;h[N]=fe}else h=await se({contents:h,valueString:(ze=l==null?void 0:l[ne])==null?void 0:ze.functionRelatedWords,prop:(F=l==null?void 0:l[ne])==null?void 0:F.prop,headers:n,typeString:$e,allContents:o})}}return h},Wp=A.useLoginState(A.pinia),{loginUserInfo:on}=A.storeToRefs(Wp),Kp=A.useMenuState(A.pinia),{activeMenuPath:ss,currentMenuPath:ho}=A.storeToRefs(Kp),sc=A.useUnit(A.pinia);let cs="$R";const{selectTitle:Ei}=A.storeToRefs(sc),cc=async(a,l)=>{var h,c,d,m,b,u,C,M,k,W,I,j,L;let n=ss.value,r="",o=((h=Ei==null?void 0:Ei.value)==null?void 0:h.find(E=>(E==null?void 0:E.condition)==="child"&&!(E!=null&&E.relatedContent)))??void 0;(a==null?void 0:a.length)===0||(n=l?n:(c=a==null?void 0:a[0])==null?void 0:c.object_name,r=(d=a==null?void 0:a[0])==null?void 0:d.father_name);let s=[];if(r!==""){let E=r;(E==null?void 0:E[(E==null?void 0:E.length)-1])==="/"&&(E=E==null?void 0:E.slice(0,(E==null?void 0:E.length)-1));let x=await Gr(E,!1);x=(m=x==null?void 0:x[0])==null?void 0:m.compData;let w=(b=x==null?void 0:x.find(S=>(S==null?void 0:S.key)==="header"))==null?void 0:b.contents;w=((u=w==null?void 0:w.find(S=>S==null?void 0:S.isMainKey))==null?void 0:u.prop)??((C=w==null?void 0:w[0])==null?void 0:C.prop);let g=(k=(M=x==null?void 0:x.find(S=>(S==null?void 0:S.key)==="tableContents"))==null?void 0:M.contents)==null?void 0:k.map(S=>({label:S==null?void 0:S[w],value:S==null?void 0:S[w]}));s=(W=r==null?void 0:r.split("/"))==null?void 0:W.map(S=>(S===""?o?(o.isShow=!0,S=o):S={value:S,condition:"child",options:g,parentContent:(r==null?void 0:r[(r==null?void 0:r.length)-1])==="/"?r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1):r,isShow:!0}:S={condition:"parent",value:S.trim(),isShow:!0},S))}if(n!==""){let E=(I=n==null?void 0:n.split("/"))==null?void 0:I.map(x=>(x={condition:"normal",value:x.trim(),isShow:!0},x));((j=E==null?void 0:E[0])==null?void 0:j.value)===((L=s==null?void 0:s[0])==null?void 0:L.value)&&(E=E==null?void 0:E.filter((x,w)=>w!==0)),s=[...s??[],...E??[]]}r===""&&o&&((o==null?void 0:o.parentContent)!==ss.value&&(o.isShow=!1),(o==null?void 0:o.value)!==""&&s.push(o)),sc.setSelectTitle(s)},Gp=async a=>{var s,h,c,d,m,b,u,C,M;let l=await A.getPageDataApi({platId:parseInt((s=on==null?void 0:on.value)==null?void 0:s.plat_id),pageName:"menu"}),n=(h=l==null?void 0:l.data)==null?void 0:h.result,r=(b=(m=(d=(c=a==null?void 0:a.filter(k=>(k==null?void 0:k.comp)==="Table"))==null?void 0:c[0])==null?void 0:d.compData)==null?void 0:m.find(k=>(k==null?void 0:k.key)==="filter"))==null?void 0:b.contents;r=(M=(C=(u=r==null?void 0:r.replace("(",cs))==null?void 0:u.split(cs))==null?void 0:C[0])==null?void 0:M.replaceAll(":","/");let o=n==null?void 0:n.filter(k=>{var W;return(k==null?void 0:k.object_name)===ho.value+"/"||((W=ho.value)==null?void 0:W.includes(r))&&r+"/"===(k==null?void 0:k.object_name)});return(o==null?void 0:o.length)>0&&(a=a==null?void 0:a.map(k=>{var W;return(k==null?void 0:k.comp)==="Table"&&(k.compData=(W=k==null?void 0:k.compData)==null?void 0:W.map(I=>{var j,L,E;return(I==null?void 0:I.key)==="header"&&(Array.isArray((j=I.contents)==null?void 0:j[0])?I.contents[0]=(E=I.contents[0])==null?void 0:E.map((x,w)=>{var g;return w===0&&(x.isExistChild=!0,(g=ho.value)!=null&&g.includes(r)&&(x.fatherPath=r)),x}):I.contents=(L=I.contents)==null?void 0:L.map((x,w)=>{var g;return w===0&&(x.isExistChild=!0,(g=ho.value)!=null&&g.includes(r)&&(x.fatherPath=r)),x})),I})),k})),a},Gr=async(a,l,n={})=>{var h,c,d,m,b,u,C,M,k,W,I,j;let r=await A.getPageDataApi({platId:parseInt((h=on==null?void 0:on.value)==null?void 0:h.plat_id),pageName:a}),o=(c=r==null?void 0:r.data)==null?void 0:c.result;if((o==null?void 0:o.length)===0&&(n!=null&&n.originPath)&&(n==null?void 0:n.originPath)!==a){let L=await A.getPageDataApi({platId:parseInt((d=on==null?void 0:on.value)==null?void 0:d.plat_id),pageName:n==null?void 0:n.originPath});if(((b=(m=L==null?void 0:L.data)==null?void 0:m.result)==null?void 0:b.length)>0){let E=await ts((u=L==null?void 0:L.data)==null?void 0:u.result,n,!1);E=E==null?void 0:E.map(async g=>{var V,ae,Z,ge,ze,F,ne,J,se,Be,$e,fe,N,oe,U,De,Ie,je,la,Ta,ee,ca,ue,ta,Se,te,Ne,We,sa,Ya;let S=[],$=(V=Object.keys(g))==null?void 0:V.filter(R=>(R==null?void 0:R.includes("name"))&&R!=="nameContents");for(let R in g)$!=null&&$.find(H=>H===R)&&S.push(g==null?void 0:g[R]);if(S=S.reverse(),(g==null?void 0:g.comp)==="Table"){let R=(ge=(Z=(ae=g==null?void 0:g.compData)==null?void 0:ae.find(X=>(X==null?void 0:X.key)==="tableContents"))==null?void 0:Z.contents)==null?void 0:ge.map(X=>{let ve={};for(let de in X)de!=="id"&&de!=="create_time"&&de!=="update_time"&&de!=="sort"&&de!=="create_user_id"&&de!=="update_user_id"&&de!=="department_id"&&de!=="relatedId"&&(ve[de]=X==null?void 0:X[de]);return X=Object.values(ve),X}),H=(F=(ze=g==null?void 0:g.compData)==null?void 0:ze.find(X=>(X==null?void 0:X.key)==="header"))==null?void 0:F.contents;if(Array.isArray(H==null?void 0:H[0])?(H[0].push({label:"排序",prop:"sort"}),H[0].push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(ne=H[0])!=null&&ne.find(X=>(X==null?void 0:X.prop)==="disabled")&&(H[0]=(J=H[0])==null?void 0:J.filter(X=>(X==null?void 0:X.prop)!=="disabled"),H[0].unshift({label:"",prop:"disabled",sortable:!1}))):(H||(H=[]),H.push({label:"排序",prop:"sort"}),H.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),H!=null&&H.find(X=>(X==null?void 0:X.prop)==="disabled")&&(H=H==null?void 0:H.filter(X=>(X==null?void 0:X.prop)!=="disabled"),H.unshift({label:"",prop:"disabled",sortable:!1}))),H!=null&&H.some(X=>{var ve;return(X==null?void 0:X.calculatorFilter)&&((ve=X==null?void 0:X.calculatorFilter)==null?void 0:ve.includes("Auto"))})&&(R=await mt(R,H,"Auto"),R=R==null?void 0:R.map(X=>Object.values(X))),g!=null&&g.fatherSyncContents){Array.isArray((se=g==null?void 0:g.fatherSyncContents)==null?void 0:se[0])&&(g.fatherSyncContents=(Be=g==null?void 0:g.fatherSyncContents)==null?void 0:Be[0]);let X=($e=Ei.value)==null?void 0:$e.find(ve=>(ve==null?void 0:ve.condition)==="child");g.fatherSyncContents=(fe=g==null?void 0:g.fatherSyncContents)==null?void 0:fe.map(ve=>{var de,va,na,Pe,xa,Me;return((va=ve==null?void 0:ve.menus)==null?void 0:va[((de=ve==null?void 0:ve.menus)==null?void 0:de.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"!==(ve==null?void 0:ve.menus)?ve.menus=(ve==null?void 0:ve.menus)+(X==null?void 0:X.value):((Pe=ve==null?void 0:ve.menus)==null?void 0:Pe[((na=ve==null?void 0:ve.menus)==null?void 0:na.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"===(ve==null?void 0:ve.menus)&&(ve.menus=(Me=ve.menus)==null?void 0:Me.slice(0,((xa=ve.menus)==null?void 0:xa.length)-1)),ve})}if(g!=null&&g.sonSyncContents){Array.isArray((N=g==null?void 0:g.sonSyncContents)==null?void 0:N[0])&&(g.sonSyncContents=(oe=g==null?void 0:g.sonSyncContents)==null?void 0:oe[0]);let X=(U=Ei.value)==null?void 0:U.find(ve=>(ve==null?void 0:ve.condition)==="child");g.sonSyncContents=(De=g==null?void 0:g.sonSyncContents)==null?void 0:De.map(ve=>{var de,va,na,Pe,xa,Me;return((va=ve==null?void 0:ve.menus)==null?void 0:va[((de=ve==null?void 0:ve.menus)==null?void 0:de.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"!==(ve==null?void 0:ve.menus)?ve.menus=(ve==null?void 0:ve.menus)+(X==null?void 0:X.value):((Pe=ve==null?void 0:ve.menus)==null?void 0:Pe[((na=ve==null?void 0:ve.menus)==null?void 0:na.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"===(ve==null?void 0:ve.menus)&&(ve.menus=(Me=ve.menus)==null?void 0:Me.slice(0,((xa=ve.menus)==null?void 0:xa.length)-1)),ve})}if(g!=null&&g.relatedQuotes){Array.isArray((Ie=g==null?void 0:g.relatedQuotes)==null?void 0:Ie[0])&&(g.relatedQuotes=(je=g==null?void 0:g.relatedQuotes)==null?void 0:je[0]);let X=(la=Ei.value)==null?void 0:la.find(ve=>(ve==null?void 0:ve.condition)==="child");g.relatedQuotes=(Ta=g==null?void 0:g.relatedQuotes)==null?void 0:Ta.map(ve=>{var de,va,na,Pe,xa,Me;return((va=ve==null?void 0:ve.menus)==null?void 0:va[((de=ve==null?void 0:ve.menus)==null?void 0:de.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"!==(ve==null?void 0:ve.menus)?ve.menus=(ve==null?void 0:ve.menus)+(X==null?void 0:X.value):((Pe=ve==null?void 0:ve.menus)==null?void 0:Pe[((na=ve==null?void 0:ve.menus)==null?void 0:na.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"===(ve==null?void 0:ve.menus)&&(ve.menus=(Me=ve.menus)==null?void 0:Me.slice(0,((xa=ve.menus)==null?void 0:xa.length)-1)),ve})}g={filter:(ca=(ee=g==null?void 0:g.compData)==null?void 0:ee.find(X=>(X==null?void 0:X.key)==="filter"))==null?void 0:ca.contents,key:g==null?void 0:g.comp,name:S,tableColumns:H,tableContents:R,menuFilter:g==null?void 0:g.menuFilter,fatherSyncContents:g==null?void 0:g.fatherSyncContents,relatedQuotes:g==null?void 0:g.relatedQuotes,sonSyncContents:g==null?void 0:g.sonSyncContents}}else{let R=(Se=(ta=(ue=g==null?void 0:g.compData)==null?void 0:ue.find(X=>(X==null?void 0:X.key)==="formContent"))==null?void 0:ta.contents)==null?void 0:Se.map(X=>(X==null?void 0:X.value)??"");R=[R];let H=(We=(Ne=(te=g==null?void 0:g.compData)==null?void 0:te.find(X=>(X==null?void 0:X.key)==="formContent"))==null?void 0:Ne.contents)==null?void 0:We.map(X=>(X.value="",X));g={contents:R,filter:(Ya=(sa=g==null?void 0:g.compData)==null?void 0:sa.find(X=>(X==null?void 0:X.key)==="filter"))==null?void 0:Ya.contents,key:g==null?void 0:g.comp,name:S,value:H,fatherSyncContents:g==null?void 0:g.fatherSyncContents,relatedQuotes:g==null?void 0:g.relatedQuotes,sonSyncContents:g==null?void 0:g.sonSyncContents}}return g.isShow=!1,g}),E=await Promise.all(E);let x=[{key:"menuPath",contents:[{path:a,fatherPath:(k=(M=(C=L==null?void 0:L.data)==null?void 0:C.result)==null?void 0:M[0])==null?void 0:k.father_name,isShow:!1}]},{key:a,contents:E}];await A.createPlatFormDataApi({platId:parseInt((W=on==null?void 0:on.value)==null?void 0:W.plat_id),changeData:x});let w=await A.getPageDataApi({platId:parseInt((I=on==null?void 0:on.value)==null?void 0:I.plat_id),pageName:a});o=(j=w==null?void 0:w.data)==null?void 0:j.result}}l&&await cc(o,!!(n!=null&&n.originPath));let s=await ts(o,n);return l&&(s=await Gp(s)),s==null?void 0:s.filter(L=>L)},us=async a=>{var r,o,s,h,c,d,m,b,u,C,M;let l=(r=a==null?void 0:a.menus)==null?void 0:r.join("/");a!=null&&a.endChildMenu&&(a==null?void 0:a.endChildMenu)!==""&&(l==null?void 0:l[(l==null?void 0:l.length)-1])==="/"&&(l=l+(a==null?void 0:a.endChildMenu)),(l==null?void 0:l[(l==null?void 0:l.length)-1])==="/"&&(l=l+((s=(o=a.value)==null?void 0:o.split(" "))==null?void 0:s[0]));let n=await Gr(l,!1);if(n=(h=n==null?void 0:n.filter(k=>{var W,I;return(k==null?void 0:k.name)===((I=a==null?void 0:a.groups)==null?void 0:I[((W=a==null?void 0:a.groups)==null?void 0:W.length)-1])}))==null?void 0:h[0],(d=(c=n==null?void 0:n.compData)==null?void 0:c.find(k=>(k==null?void 0:k.key)==="tableContents"))!=null&&d.contents){n=(b=(m=n==null?void 0:n.compData)==null?void 0:m.find(W=>(W==null?void 0:W.key)==="tableContents"))==null?void 0:b.contents;let k=((u=a==null?void 0:a.words)==null?void 0:u[0])??(a==null?void 0:a.prop);return n=n==null?void 0:n.filter(W=>{var I,j,L,E;return(W==null?void 0:W[a!=null&&a.endChildMenu?k:(I=a==null?void 0:a.words)==null?void 0:I[0]])===(a!=null&&a.relatedWords&&((j=a==null?void 0:a.relatedWords)==null?void 0:j.length)>0?(E=(L=a.value)==null?void 0:L.split(" "))==null?void 0:E[0]:a.value)}),n==null?void 0:n[0]}else{let k=(M=(C=n==null?void 0:n.compData)==null?void 0:C.find(I=>(I==null?void 0:I.key)==="formContent"))==null?void 0:M.contents,W={};return k==null||k.forEach(I=>{W[I.prop]=I.value}),W}},Yp={key:0,class:"extra-button-content"},Jp={class:"table-operator-wrap"},Xp={key:0,class:"extra-button-filter"},Zp={key:1,class:"extra-header"},Qp=["onClick"],ef={class:"table-op-text"},af={class:"table-op-text"},lf={class:"drop-menu",style:{width:"120px"}},rf=["onClick"],nf={key:0},of={key:1},tf=["onClick"],sf={class:"table-op-text"},cf={key:1,class:"extra-button-content tabs-button-wrapper"},uf={class:"table-operator-wrap"},df={class:"extra-button-filter"},pf={key:0,class:"extra-header"},ff={class:"table-op-action"},hf={class:"table-op-text"},vf={class:"drop-menu",style:{width:"120px"}},mf={key:0},yf={key:1},gf=["onClick"],bf={class:"table-op-text"},kf={__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 n=l,r=a,o=()=>{const $=(r==null?void 0:r.menuFilter)||[];return Array.isArray($)&&($==null?void 0:$.some(V=>{const ae=typeof V=="string"?V:JSON.stringify(V);return ae==null?void 0:ae.includes("HideGroup=Yes")}))},s=e.ref(""),h=e.ref(!1),c=e.ref(!1),d=e.ref([]),m=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 u($,V){return $.map(ae=>{const Z={...ae};return V.forEach(ge=>{delete Z[ge]}),Z})}function C($){if(!$||$.t!=="n")return($==null?void 0:$.v)??"";const V=$.v;if($.z){const ae=String($.z).toLowerCase(),Z=["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 F of Z)if(ae.includes(F))return M(V);const ge=/[ymdhms]/.test(ae),ze=/^[0#\.\,\s]+$/.test(ae.replace(/[\\\/\-:]/g,""));if(ge&&!ze)return M(V)}if(V>=1&&V<=73050){if(V<5e3)return V;if(V>=5e3&&V<4e4){const ae=Math.floor((V-25569)/365.25)+1970;return ae>=1970&&ae<=2e3&&$.z&&/[ymd]/.test(String($.z).toLowerCase())?M(V):V}if(V>=4e4)return M(V)}return V}function M($){if(typeof $!="number")return $;try{const V=new Date(($-25569)*86400*1e3);if(isNaN(V.getTime()))return $;const ae=V.getFullYear(),Z=String(V.getMonth()+1).padStart(2,"0"),ge=String(V.getDate()).padStart(2,"0");return`${ae}-${Z}-${ge}`}catch{return $}}const k=$=>{const V=$.raw;if(!V)return;const ae=new FileReader;ae.onload=Z=>{try{const ge=new Uint8Array(Z.target.result),ze=ce.readSync(ge,{type:"array"}),F=ze.SheetNames[0],ne=ze.Sheets[F],se=ce.utils.decode_range(ne["!ref"]).e.c+1,Be=new Array(se).fill(""),$e=[];for(const De in ne){if(De[0]==="!")continue;const{r:Ie,c:je}=ce.utils.decode_cell(De),la=ne[De];let Ta=C(la);if((Ta==null||Ta==="")&&(Ta=""),Ie===0)Be[je]=Ta;else{if(!$e[Ie-1]){$e[Ie-1]={};for(let ee=0;ee<se;ee++)$e[Ie-1][`col_${ee}`]=""}$e[Ie-1][`col_${je}`]=Ta}}for(let De=0;De<se;De++)Be[De]===void 0&&(Be[De]="");const fe=[];for(let De=0;De<Be.length;De++)(!Be[De]||Be[De].toString().trim()==="")&&fe.push(De);let N,oe;(fe==null?void 0:fe.length)>0?(Ua.ElMessage.warning("存在键为空的列,已自动过滤,请检查补充"),N=Be.filter((De,Ie)=>!fe.includes(Ie)),oe=u($e,fe==null?void 0:fe.map(De=>`col_${De}`))):(N=Be,oe=$e);const U=$e==null?void 0:$e[0];if(!(U!=null&&U.hasOwnProperty("col_0")))return Ua.ElMessage.error("导入的数据列不匹配,请检查是否错位");n("getImportData",N,oe)}catch(ge){throw Ua.ElMessage.error(ge.message),new Error(ge.message)}},ae.readAsArrayBuffer(V)},W=$=>{var ae;const V=(ae=d.value)==null?void 0:ae.reduce((Z,ge,ze)=>(ze===0?Z[ge.label]=$:Z[ge.label]=ge==null?void 0:ge.value,Z),{});n("filter",V,$,!0)},I=($,V={})=>{n("buttonClick",$,"",V)},j=$=>{var V,ae;d.value=(ae=(V=ce.getColumnChild(A.cloneDeep($)))==null?void 0:V.filter(Z=>(Z==null?void 0:Z.label)!==""&&(Z==null?void 0:Z.label)!=="操作"))==null?void 0:ae.map(Z=>({label:(Z==null?void 0:Z.label)??"",value:"",name:(Z==null?void 0:Z.prop)??"",isFormColHidden:Z==null?void 0:Z.isTableColHidden,width:2,prop:(Z==null?void 0:Z.prop)??""}))},L=e.ref(!1),E=$=>{var V;if(($==null?void 0:$.buttonName)==="确认"&&(n("filter",$==null?void 0:$.content),L.value=($==null?void 0:$.content)&&Object.values($==null?void 0:$.content).length>0),($==null?void 0:$.buttonName)==="清空"){const ae=A.cloneDeep($==null?void 0:$.content);for(const Z in ae)ae[Z]="";d.value=(V=d.value)==null?void 0:V.map(Z=>({...Z,value:""})),n("filter",ae),L.value=!1}h.value=!1},x=()=>{h.value=!h.value,c.value=!0},w=()=>{var V,ae;d.value=(V=d.value)==null?void 0:V.map(Z=>({...Z,value:""}));const $=(ae=d.value)==null?void 0:ae.reduce((Z,ge)=>(Z[ge.label]=ge.value,Z),{});n("filter",$)},g=e.ref(null);let S;return S=$=>{var ge;if(!h.value)return;const V=(ge=g==null?void 0:g.value)==null?void 0:ge.$el,ae=V==null?void 0:V.contains($.target);let Z=!1;document.querySelectorAll(".el-popover, .el-popper").forEach(ze=>{ze.contains($.target)&&(Z=!0)}),!ae&&!Z&&(h.value=!1)},e.onMounted(()=>{document.addEventListener("click",S),j(r.columns)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",S)}),e.watch(()=>r.columns,()=>{j(r.columns)},{deep:!0,immediate:!0}),($,V)=>{var ne,J,se,Be,$e,fe,N,oe;const ae=e.resolveComponent("el-icon"),Z=e.resolveComponent("svg-icon"),ge=e.resolveComponent("el-input"),ze=e.resolveComponent("el-upload"),F=e.resolveComponent("el-button");return a.pageLayout==="vertical"?(e.openBlock(),e.createElementBlock("div",Yp,[o()?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(a.compName?"table-name-wrap":""),style:e.normalizeStyle({background:(r==null?void 0:r.level)>1?"transparent":"var(--ssgroup-background)",paddingLeft:((r==null?void 0:r.level)-1)*12+"px",fontWeight:600-((r==null?void 0:r.level)-1)*100>=400?600-((r==null?void 0:r.level)-1)*100:400,fontSize:17-(r==null?void 0:r.level)>=14?17-(r==null?void 0:r.level)+"px":"14px"})},e.toDisplayString(a.compName),7)),e.createElementVNode("div",Jp,[r!=null&&r.filterShow?(e.openBlock(),e.createElementBlock("div",Xp,[e.createVNode($u,{trigger:"contextmenu",ref_key:"popOverRef",ref:g,title:"",width:800,placement:"bottom-start",isVisible:h.value,"onUpdate:isVisible":V[4]||(V[4]=U=>h.value=U)},{reference:e.withCtx(()=>{var U,De,Ie,je;return[e.createVNode(ge,{modelValue:s.value,"onUpdate:modelValue":V[0]||(V[0]=la=>s.value=la),style:{"min-width":"80px"},placeholder:L.value?(Ie=(De=(U=a.filterValues)==null?void 0:U.filter(la=>la))==null?void 0:De.slice(0,3))==null?void 0:Ie.join("/"):"搜索","prefix-icon":e.unref(Ua.search_default),clearable:"",onInput:W,disabled:((je=d.value)==null?void 0:je.length)===0},{suffix:e.withCtx(()=>{var la,Ta;return[!s.value&&((Ta=(la=a.filterValues)==null?void 0:la.filter(ee=>ee))!=null&&Ta.join("/"))?(e.openBlock(),e.createBlock(ae,{key:0,style:{cursor:"pointer"},onClick:w},{default:e.withCtx(()=>[e.createVNode(e.unref(Ua.circle_close_default))]),_:1})):e.createCommentVNode("",!0)]}),append:e.withCtx(()=>[e.createElementVNode("span",{title:"条件查询",onClick:e.withModifiers(x,["stop"])},[e.createVNode(Z,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:e.withCtx(()=>[c.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"form-content-value",onKeydown:V[1]||(V[1]=e.withModifiers(()=>{},["stop"])),onKeyup:V[2]||(V[2]=e.withModifiers(()=>{},["stop"])),onKeypress:V[3]||(V[3]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(),e.createBlock(nl.ssForm,{rowContents:d.value,buttonValue:m.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:m.value,isStartJustify:!1,onOnButtonClick:E},null,8,["rowContents","buttonValue"]))],32)):e.createCommentVNode("",!0)]),_:1},8,["isVisible"])])):e.createCommentVNode("",!0),a.buttons&&((ne=a.buttons)==null?void 0:ne.length)>0?(e.openBlock(),e.createElementBlock("div",Zp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((J=a.buttons)==null?void 0:J.filter(U=>a.isDevMode||(U==null?void 0:U.label)!=="修改模板"),(U,De)=>{var Ie;return e.openBlock(),e.createElementBlock("div",{class:"extra-contents",key:De},[(U==null?void 0:U.type)==="upload"?(e.openBlock(),e.createBlock(ze,{key:0,class:"upload-button-wrap","on-change":k,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1,disabled:!!a.lockingPage},{default:e.withCtx(()=>{var je;return[e.createElementVNode("div",{class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}]),onClick:la=>I(U==null?void 0:U.label)},[e.createVNode(Z,{class:"table-op-icon",name:(je=b==null?void 0:b.find(la=>(la==null?void 0:la.label)===(U==null?void 0:U.label)))==null?void 0:je.icon},null,8,["name"]),e.createElementVNode("span",ef,e.toDisplayString(U==null?void 0:U.label),1)],10,Qp)]}),_:2},1032,["disabled"])):e.createCommentVNode("",!0),(U==null?void 0:U.type)==="popover"?(e.openBlock(),e.createBlock(nl._sfc_main,{key:1},{dropTitle:e.withCtx(()=>{var je;return[e.createElementVNode("div",{class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}])},[e.createVNode(Z,{class:"table-op-icon",name:(je=b==null?void 0:b.find(la=>(la==null?void 0:la.label)===(U==null?void 0:U.label)))==null?void 0:je.icon},null,8,["name"]),e.createElementVNode("span",af,e.toDisplayString(U==null?void 0:U.label),1)],2)]}),dropMenu:e.withCtx(()=>[e.createElementVNode("div",lf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U==null?void 0:U.contents,je=>{var la,Ta;return e.openBlock(),e.createElementBlock("div",{key:je==null?void 0:je.label,class:e.normalizeClass(["table-op-drop-item",{"is-disabled":!!a.lockingPage}]),onClick:ee=>!a.lockingPage&&I(je==null?void 0:je.label)},[e.createTextVNode(e.toDisplayString(je==null?void 0:je.label),1),(la=je==null?void 0:je.label)!=null&&la.includes("选中")?(e.openBlock(),e.createElementBlock("span",nf,"("+e.toDisplayString(a.selectNums)+")",1)):e.createCommentVNode("",!0),(Ta=je==null?void 0:je.label)!=null&&Ta.includes("全部")?(e.openBlock(),e.createElementBlock("span",of,"("+e.toDisplayString(a.dataNums)+")",1)):e.createCommentVNode("",!0)],10,rf)}),128))])]),_:2},1024)):e.createCommentVNode("",!0),!(U!=null&&U.type)||(U==null?void 0:U.type)==="methodButton"?(e.openBlock(),e.createElementBlock("div",{key:2,id:"themeButton",class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}]),onClick:je=>!a.lockingPage&&I(U==null?void 0:U.label,U)},[e.createVNode(Z,{class:"table-op-icon",name:((Ie=b==null?void 0:b.find(je=>(je==null?void 0:je.label)===(U==null?void 0:U.label)))==null?void 0:Ie.icon)??"normal"},null,8,["name"]),e.createElementVNode("span",sf,e.toDisplayString(U==null?void 0:U.label),1)],10,tf)):e.createCommentVNode("",!0)])}),128))])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createElementBlock("div",cf,[e.createElementVNode("div",uf,[e.createElementVNode("div",df,[e.createVNode(ge,{modelValue:s.value,"onUpdate:modelValue":V[5]||(V[5]=U=>s.value=U),style:{"min-width":"80px"},placeholder:L.value?($e=(Be=(se=a.filterValues)==null?void 0:se.filter(U=>U))==null?void 0:Be.slice(0,3))==null?void 0:$e.join("/"):"搜索","prefix-icon":e.unref(Ua.search_default),clearable:"",onInput:W,disabled:((fe=d.value)==null?void 0:fe.length)===0},{suffix:e.withCtx(()=>{var U,De;return[!s.value&&((De=(U=a.filterValues)==null?void 0:U.filter(Ie=>Ie))!=null&&De.join("/"))?(e.openBlock(),e.createBlock(ae,{key:0,style:{cursor:"pointer"},onClick:w},{default:e.withCtx(()=>[e.createVNode(e.unref(Ua.circle_close_default))]),_:1})):e.createCommentVNode("",!0)]}),append:e.withCtx(()=>[e.createElementVNode("span",{title:"条件查询",onClick:e.withModifiers(x,["stop"])},[e.createVNode(Z,{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",pf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((oe=a.buttons)==null?void 0:oe.filter(U=>a.isDevMode||(U==null?void 0:U.label)!=="修改模板"),(U,De)=>{var Ie;return e.openBlock(),e.createElementBlock("div",{class:"extra-contents",key:De},[(U==null?void 0:U.type)==="upload"?(e.openBlock(),e.createBlock(ze,{key:0,class:"upload-button-wrap","on-change":k,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1},{default:e.withCtx(()=>{var je;return[e.createElementVNode("div",ff,[e.createVNode(Z,{class:"table-op-icon",name:(je=b==null?void 0:b.find(la=>(la==null?void 0:la.label)===(U==null?void 0:U.label)))==null?void 0:je.icon},null,8,["name"]),e.createElementVNode("span",hf,e.toDisplayString(U==null?void 0:U.label),1)])]}),_:2},1024)):e.createCommentVNode("",!0),(U==null?void 0:U.type)==="popover"?(e.openBlock(),e.createBlock(nl._sfc_main,{key:1},{dropTitle:e.withCtx(()=>[(U==null?void 0:U.type)==="popover"?(e.openBlock(),e.createBlock(F,{key:0,style:{background:"transparent",color:"#000000"}},{icon:e.withCtx(()=>{var je;return[e.createVNode(Z,{class:"table-op-icon",name:(je=b==null?void 0:b.find(la=>(la==null?void 0:la.label)===(U==null?void 0:U.label)))==null?void 0:je.icon},null,8,["name"])]}),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(U==null?void 0:U.label),1)]),_:2},1024)):e.createCommentVNode("",!0)]),dropMenu:e.withCtx(()=>[e.createElementVNode("div",vf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U==null?void 0:U.contents,je=>(e.openBlock(),e.createBlock(F,{key:je==null?void 0:je.label,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:la=>I(je==null?void 0:je.label)},{default:e.withCtx(()=>{var la,Ta;return[e.createTextVNode(e.toDisplayString(je==null?void 0:je.label),1),(la=je==null?void 0:je.label)!=null&&la.includes("选中")?(e.openBlock(),e.createElementBlock("span",mf,"("+e.toDisplayString(a.selectNums)+")",1)):e.createCommentVNode("",!0),(Ta=je==null?void 0:je.label)!=null&&Ta.includes("全部")?(e.openBlock(),e.createElementBlock("span",yf,"("+e.toDisplayString(a.dataNums)+")",1)):e.createCommentVNode("",!0)]}),_:2},1032,["onClick"]))),128))])]),_:2},1024)):e.createCommentVNode("",!0),!(U!=null&&U.type)||(U==null?void 0:U.type)==="methodButton"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}]),id:"themeButton",onClick:je=>!a.lockingPage&&I(U==null?void 0:U.label,U)},[e.createVNode(Z,{class:"table-op-icon",name:(Ie=b==null?void 0:b.find(je=>(je==null?void 0:je.label)===(U==null?void 0:U.label)))==null?void 0:Ie.icon},null,8,["name"]),e.createElementVNode("span",bf,e.toDisplayString(U==null?void 0:U.label),1)],10,gf)):e.createCommentVNode("",!0)])}),128))])):e.createCommentVNode("",!0)])]))}}},xf=Xl._export_sfc(kf,[["__scopeId","data-v-44a17652"]]),wf={__name:"index",props:{columns:Array,tableData:Array},setup(a){return(l,n)=>{const r=e.resolveComponent("el-table-column"),o=e.resolveComponent("el-table");return e.openBlock(),e.createBlock(o,{data:a.tableData,style:{width:"100%"},stripe:"","max-height":"500"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.columns,s=>{var h;return e.openBlock(),e.createBlock(r,{key:s==null?void 0:s.prop,label:s==null?void 0:s.label,prop:s==null?void 0:s.prop,fixed:(s==null?void 0:s.prop)==="operate"?"right":s==null?void 0:s.fixed,align:(s==null?void 0:s.align)??"left","show-overflow-tooltip":(s==null?void 0:s.showOverflowTooltip)??!0,width:s==null?void 0:s.width,"min-width":(s==null?void 0:s.minWidth)||((s==null?void 0:s.prop)==="operate"?80:(((h=s==null?void 0:s.label)==null?void 0:h.length)*2||4)*27)},{default:e.withCtx(c=>[e.renderSlot(l.$slots,"content",{row:c.row,column:c.column,$index:c.$index,scope:c}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.children,(d,m)=>(e.openBlock(),e.createBlock(nl._sfc_main$2,{key:m,column:d,tableData:a.tableData},e.createSlots({_:2},[e.renderList(l.$slots,(b,u)=>({name:u,fn:e.withCtx(({row:C,slotData:M,item:k,column:W})=>[e.renderSlot(l.$slots,u,e.mergeProps({ref_for:!0},M??C,{item:k??d,slotData:M??C,row:C,column:W,columnProp:d}))])}))]),1032,["column","tableData"]))),128))]),_:2},1032,["label","prop","fixed","align","show-overflow-tooltip","width","min-width"])}),128))]),_:3},8,["data"])}}};class _f extends Tl.Loader{constructor(l){super(l),this.littleEndian=!0}load(l,n,r,o){const s=this,h=new Tl.FileLoader(s.manager);h.setPath(s.path),h.setResponseType("arraybuffer"),h.setRequestHeader(s.requestHeader),h.setWithCredentials(s.withCredentials),h.load(l,function(c){try{n(s.parse(c))}catch(d){o?o(d):console.error(d),s.manager.itemError(l)}},r,o)}_getDataView(l,n,r,o){switch(r){case"F":return o===8?l.getFloat64(n,this.littleEndian):l.getFloat32(n,this.littleEndian);case"I":return o===1?l.getInt8(n):o===2?l.getInt16(n,this.littleEndian):l.getInt32(n,this.littleEndian);case"U":return o===1?l.getUint8(n):o===2?l.getUint16(n,this.littleEndian):l.getUint32(n,this.littleEndian)}}parse(l){function n(M,k){const W=M.length,I=new Uint8Array(k);let j=0,L=0,E,x,w;do if(E=M[j++],E<32){if(E++,L+E>k)throw new Error("Output buffer is not large enough");if(j+E>W)throw new Error("Invalid compressed data");do I[L++]=M[j++];while(--E)}else{if(x=E>>5,w=L-((E&31)<<8)-1,j>=W)throw new Error("Invalid compressed data");if(x===7&&(x+=M[j++],j>=W))throw new Error("Invalid compressed data");if(w-=M[j++],L+x+2>k)throw new Error("Output buffer is not large enough");if(w<0)throw new Error("Invalid compressed data");if(w>=L)throw new Error("Invalid compressed data");do I[L++]=I[w++];while(--x+2)}while(j<W);return I}function r(M){const k={},W=new Uint8Array(M);let I="",j="",L=0,E=!1;const x=W.length;for(;L<x&&E===!1;){const $=String.fromCharCode(W[L++]);$===`
|
|
1
|
+
"use strict";var Au=Object.defineProperty;var zu=(a,l,n)=>l in a?Au(a,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[l]=n;var en=(a,l,n)=>zu(a,typeof l!="symbol"?l+"":l,n);const e=require("vue"),Ua=require("./request-Dl8yi2iS.cjs"),A=require("./index-Pve69buQ.cjs"),nl=require("./index-BlK57Hld.cjs"),ce=require("./index-BszVYrt4.cjs"),Xl=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Tl=require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BB3g-g6w.cjs"),Br=require("./index-BOkUwKV5.cjs"),So=require("./threeViewerHost-5A2jHeBY.cjs"),Mr=require("./index-DmwxzDGW.cjs"),ls=require("./index-DgDt5hIh.cjs"),Ys=require("./index-DBxrIHI8.cjs");;/* empty css */const Eo=require("./isString-CGrvcmBw.cjs"),rs=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),Js=require("./index-BVaHwt5f.cjs"),Mu=require("./index-BRyEcXsJ.cjs"),Mn=require("./MTLLoader-B0vEDLTb.cjs"),Iu=require("./URDFLoader-g-0sln-a.cjs");var Ou="[object Boolean]";function Xs(a){return a===!0||a===!1||Ua.isObjectLike(a)&&Ua.baseGetTag(a)==Ou}function Lu(a){return a===void 0}const Ru=a=>a.match(/\((.*)\)/)[1],$u={__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,n=e.ref(null),r=e.ref(!1),o=e.ref(null);return e.watch(()=>l==null?void 0:l.isVisible,()=>{r.value=l==null?void 0:l.isVisible},{deep:!0,immediate:!0}),e.watch(()=>o.value,()=>{e.nextTick(()=>{var s,h;(h=(s=n.value)==null?void 0:s.updatePopper)==null||h.call(s)})},{deep:!0,immediate:!0}),(s,h)=>{const c=e.resolveComponent("el-popover");return e.openBlock(),e.createBlock(c,{visible:r.value,"onUpdate:visible":h[0]||(h[0]=d=>r.value=d),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:n,"trigger-keys":"[]"},{reference:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(s.$slots,"reference",{ref_key:"referenceRef",ref:o})])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(s.$slots,"content")])]),_:3},8,["visible","trigger","title","placement","width"])}}},Vu=e.defineComponent({__name:"index",props:{value:{type:[String,Number],default:""},columnContent:{type:Object,default:{}}},setup(a){const l=a,n=e.computed(()=>{var d,m,b,u,C,M;const r=l.value??"";let o=(d=l==null?void 0:l.columnContent)==null?void 0:d.filter;if(o=(m=ce.analyzeSplitToContent(o,","))==null?void 0:m.map(k=>((k==null?void 0:k[(k==null?void 0:k.length)-1])===","&&(k=k==null?void 0:k.slice(0,(k==null?void 0:k.length)-1)),k)),o=o==null?void 0:o.find(k=>(k==null?void 0:k[0])==="("),(o==null?void 0:o[0])==="("&&(o=o==null?void 0:o.slice(1,(o==null?void 0:o.length)-1)),o=o==null?void 0:o.split("||"),!o)return{backgroundColor:void 0,color:void 0};let s=(u=(b=l==null?void 0:l.columnContent)==null?void 0:b.options)==null?void 0:u.findIndex(k=>(k==null?void 0:k.value)===r);s=o==null?void 0:o[s],s=ce.analyzeSplitToContent(s,","),s=s==null?void 0:s.map(k=>((k==null?void 0:k[(k==null?void 0:k.length)-1])===","&&(k=k==null?void 0:k.slice(0,(k==null?void 0:k.length)-1)),k));let h=s==null?void 0:s.find(k=>k==null?void 0:k.includes("@TextBackRGBA"));h?h=ce.rgbaToColor((C=h==null?void 0:h.split("="))==null?void 0:C[1]):h=void 0;let c=s==null?void 0:s.find(k=>k==null?void 0:k.includes("@TextRGBA"));return c?c=ce.rgbaToColor((M=c==null?void 0:c.split("="))==null?void 0:M[1]):c=void 0,{backgroundColor:h,color:c}});return(r,o)=>a.value!==void 0&&a.value!==null?(e.openBlock(),e.createElementBlock("span",{key:0,class:"task-status-tag",style:e.normalizeStyle(n.value)},e.toDisplayString(a.value===0?"0":a.value),5)):e.createCommentVNode("",!0)}}),Pu=Xl._export_sfc(Vu,[["__scopeId","data-v-3290070b"]]);function Fu(a,l,n,r={}){if(!a||!l||!n||n.length!==4)return;const o=a.getContext("2d");if(!o)return;const{color:s="rgba(255, 235, 59, 0.3)",strokeWidth:h=2,fillOpacity:c=.2}=r,d=a.getBoundingClientRect(),m=l.getBoundingClientRect(),b=l.naturalWidth,u=l.naturalHeight,C=m.width/b,M=m.height/u,k=Math.min(C,M),W=b*k,I=u*k,j=(d.width-W)/2,L=(d.height-I)/2,E=n.map(([w,g])=>{const S=j+w*W,$=L+g*I;return{x:S,y:$}});o.clearRect(0,0,a.width,a.height),o.beginPath(),o.moveTo(E[0].x,E[0].y);for(let w=1;w<E.length;w++)o.lineTo(E[w].x,E[w].y);o.closePath();const x=s.replace(/[\d.]+\)$/,`${c})`);o.fillStyle=x,o.fill(),o.strokeStyle=s.replace(/[\d.]+\)$/,"1)"),o.lineWidth=h,o.stroke()}function xi(a){if(!a)return;const l=a.getContext("2d");l&&l.clearRect(0,0,a.width,a.height)}function ns(a,l){if(!a||!l)return null;const n=a[l];return!n||!n.bboxNorm||!Array.isArray(n.bboxNorm)||n.bboxNorm.length!==4?null:{bboxNorm:n.bboxNorm,imageName:n.imageName||""}}const ju={key:0,class:"ocr-img-preview-root"},Hu={class:"ocr-img-preview-window"},Uu={key:0,class:"img-preview-body"},qu={class:"img-preview-header"},Wu={class:"img-header-left"},Ku={class:"img-name"},Gu={key:0,class:"img-header-right"},Yu={class:"img-index"},Ju={key:0,class:"img-thumb-list"},Xu=["onClick"],Zu={key:1,class:"thumb-placeholder"},Qu={class:"thumb-name"},ed={class:"img-preview-container"},ad={key:0,class:"img-placeholder"},ld={key:2,class:"img-placeholder"},rd={key:0},nd={key:1},id={key:1,class:"img-placeholder"},od=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 n=a,r=l,o=e.computed({get:()=>n.visible,set:N=>r("update:visible",N)});let s=!1,h="",c=0,d=0,m=0,b=0,u=0,C=0,M=null;const k=N=>{var U,De;const oe=(De=(U=N==null?void 0:N.target)==null?void 0:U.closest)==null?void 0:De.call(U,".ocr-img-preview-window");return oe||document.querySelector(".ocr-img-preview-window")},W=N=>{if(!N||N==="none")return{tx:0,ty:0};let oe=N.match(/matrix\(([^)]+)\)/);if(oe){const U=oe[1].split(",").map(De=>Number(De.trim()));return{tx:(U==null?void 0:U[4])||0,ty:(U==null?void 0:U[5])||0}}if(oe=N.match(/matrix3d\(([^)]+)\)/),oe){const U=oe[1].split(",").map(De=>Number(De.trim()));return{tx:(U==null?void 0:U[12])||0,ty:(U==null?void 0:U[13])||0}}return oe=N.match(/translate\(\s*([-\d.]+)px\s*,\s*([-\d.]+)px\s*\)/),oe?{tx:Number(oe[1])||0,ty:Number(oe[2])||0}:{tx:0,ty:0}},I=(N,oe,U)=>{N.style.transform=`translate(${oe}px, ${U}px)`},j=N=>{const oe=k(N);if(!oe)return;s=!0,M=oe,h="move",c=N.clientX,d=N.clientY;const U=window.getComputedStyle(oe),{tx:De,ty:Ie}=W(U.transform);u=De,C=Ie,document.addEventListener("mousemove",E),document.addEventListener("mouseup",x)},L=(N,oe)=>{const U=k(N);if(!U)return;s=!0,M=U,h=oe,c=N.clientX,d=N.clientY;const De=U.getBoundingClientRect();m=De.width,b=De.height;const Ie=window.getComputedStyle(U),{tx:je,ty:la}=W(Ie.transform);u=je,C=la,document.addEventListener("mousemove",E),document.addEventListener("mouseup",x)},E=N=>{if(!s||!M)return;const oe=N.clientX-c,U=N.clientY-d,De=360,Ie=420;let je=m,la=b,Ta=u,ee=C;if(h==="move"){Ta=u+oe,ee=C+U,I(M,Ta,ee);return}if(h.includes("right")&&(je=Math.max(De,m+oe)),h.includes("bottom")&&(la=Math.max(Ie,b+U)),h.includes("left")){const ca=m-oe;ca<De?(je=De,Ta=u+(m-De)):(je=ca,Ta=u+oe)}if(h.includes("top")){const ca=b-U;ca<Ie?(la=Ie,ee=C+(b-Ie)):(la=ca,ee=C+U)}M.style.width=`${je}px`,M.style.height=`${la}px`,I(M,Ta,ee)},x=()=>{s=!1,h="",M=null,document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",x)},w=e.ref([]),g=e.ref(!1);e.watch(()=>n.images,async N=>{if(!Array.isArray(N)||N.length===0){w.value=[];return}g.value=!0;const oe=[];for(const U of N)if(U.url&&!U.url.startsWith("blob:")&&!U.url.startsWith("http"))try{const De=await Tl.downloadFile(U.url),Ie=URL.createObjectURL(De);oe.push({...U,blobUrl:Ie})}catch(De){console.error(`Failed to load image for preview: ${U.url}`,De),oe.push({...U,blobUrl:""})}else oe.push({...U,blobUrl:U.url});w.value=oe,g.value=!1},{deep:!0,immediate:!0});const S=e.ref(0),$=e.ref(null),V=e.ref(null),ae=e.computed(()=>w.value[S.value]||null),Z=()=>{if(!w.value.length){S.value=0;return}if(n.defaultImageName){const N=w.value.findIndex(oe=>(oe==null?void 0:oe.name)===n.defaultImageName);S.value=N>=0?N:0}else S.value=0},ge=N=>{if(!w.value.length)return;const oe=Math.max(0,Math.min(N,w.value.length-1));S.value=oe},ze=()=>ge(S.value-1),F=()=>ge(S.value+1),ne=N=>{if(!N)return;const oe=w.value.findIndex(U=>(U==null?void 0:U.name)===N);oe>=0&&(S.value=oe)},J=()=>{if(!V.value)return;const N=V.value.parentElement;if(!N)return;const oe=N.getBoundingClientRect();V.value.width=oe.width,V.value.height=oe.height},se=()=>{var De,Ie;if(!V.value||!$.value||!n.focusedFieldName){V.value&&xi(V.value);return}const N=(De=$.value.$el)==null?void 0:De.querySelector("img");if(!N)return;if(!N.complete||N.naturalWidth===0){N.onload=()=>{e.nextTick(()=>{se()})};return}const oe=((Ie=ae.value)==null?void 0:Ie.name)||"",U=ns(n.fieldMeta,n.focusedFieldName);if(!U){xi(V.value);return}if(U.imageName!==oe){xi(V.value);return}J(),Fu(V.value,N,U.bboxNorm)},Be=()=>{e.nextTick(()=>{J(),se()})};e.watch(()=>n.focusedFieldName,()=>{if(!o.value)return;const N=ns(n.fieldMeta,n.focusedFieldName);N!=null&&N.imageName&&ne(N.imageName),e.nextTick(()=>{se()})}),e.watch(()=>{var N;return(N=ae.value)==null?void 0:N.name},()=>{o.value&&e.nextTick(()=>{V.value&&xi(V.value),se()})}),e.watch(()=>n.visible,N=>{N?(Z(),e.nextTick(()=>{J(),se()})):V.value&&xi(V.value)}),e.watch(()=>n.defaultImageName,()=>{o.value&&Z()});let $e=null;e.onMounted(()=>{var N;typeof ResizeObserver<"u"&&($e=new ResizeObserver(()=>{J(),e.nextTick(()=>{se()})}),(N=V.value)!=null&&N.parentElement&&$e.observe(V.value.parentElement))}),e.onUnmounted(()=>{$e&&($e.disconnect(),$e=null),document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",x)});const fe=()=>{V.value&&xi(V.value),r("update:visible",!1),r("close")};return(N,oe)=>{var la,Ta;const U=e.resolveComponent("el-button"),De=e.resolveComponent("el-image"),Ie=e.resolveComponent("Loading"),je=e.resolveComponent("el-icon");return o.value?(e.openBlock(),e.createElementBlock("div",ju,[oe[12]||(oe[12]=e.createElementVNode("div",{class:"ocr-img-preview-backdrop"},null,-1)),e.createElementVNode("div",Hu,[e.createElementVNode("div",{class:"ocr-img-preview-header",onMousedown:e.withModifiers(j,["stop"])},[oe[8]||(oe[8]=e.createElementVNode("span",{class:"ocr-img-preview-title"},"文件预览",-1)),e.createElementVNode("button",{type:"button",class:"ocr-img-preview-close",onClick:fe},"×")],32),e.createElementVNode("div",{class:"resizable-handle top",onMousedown:oe[0]||(oe[0]=e.withModifiers(ee=>L(ee,"top"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle right",onMousedown:oe[1]||(oe[1]=e.withModifiers(ee=>L(ee,"right"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle bottom",onMousedown:oe[2]||(oe[2]=e.withModifiers(ee=>L(ee,"bottom"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle left",onMousedown:oe[3]||(oe[3]=e.withModifiers(ee=>L(ee,"left"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle top-left",onMousedown:oe[4]||(oe[4]=e.withModifiers(ee=>L(ee,"top-left"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle top-right",onMousedown:oe[5]||(oe[5]=e.withModifiers(ee=>L(ee,"top-right"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle bottom-left",onMousedown:oe[6]||(oe[6]=e.withModifiers(ee=>L(ee,"bottom-left"),["stop"]))},null,32),e.createElementVNode("div",{class:"resizable-handle bottom-right",onMousedown:oe[7]||(oe[7]=e.withModifiers(ee=>L(ee,"bottom-right"),["stop"]))},null,32),ae.value?(e.openBlock(),e.createElementBlock("div",Uu,[e.createElementVNode("div",qu,[e.createElementVNode("div",Wu,[e.createElementVNode("span",Ku,e.toDisplayString(ae.value.name?ae.value.name+(ae.value.url&&ae.value.url.lastIndexOf(".")!==-1?ae.value.url.substring(ae.value.url.lastIndexOf(".")):""):""),1)]),w.value.length>1?(e.openBlock(),e.createElementBlock("div",Gu,[e.createVNode(U,{size:"small",disabled:S.value===0,onClick:ze},{default:e.withCtx(()=>oe[9]||(oe[9]=[e.createTextVNode("上一张")])),_:1,__:[9]},8,["disabled"]),e.createElementVNode("span",Yu,e.toDisplayString(S.value+1)+" / "+e.toDisplayString(w.value.length),1),e.createVNode(U,{size:"small",disabled:S.value===w.value.length-1,onClick:F},{default:e.withCtx(()=>oe[10]||(oe[10]=[e.createTextVNode("下一张")])),_:1,__:[10]},8,["disabled"])])):e.createCommentVNode("",!0)]),w.value.length>1?(e.openBlock(),e.createElementBlock("div",Ju,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,(ee,ca)=>(e.openBlock(),e.createElementBlock("div",{key:(ee.name||"")+"-"+ca,class:e.normalizeClass(["img-thumb-item",{active:ca===S.value}]),onClick:ue=>ge(ca)},[ee!=null&&ee.blobUrl?(e.openBlock(),e.createBlock(De,{key:0,src:ee.blobUrl,fit:"cover",class:"thumb-image","preview-src-list":[ee.blobUrl],"initial-index":0},null,8,["src","preview-src-list"])):(e.openBlock(),e.createElementBlock("div",Zu,"加载失败")),e.createElementVNode("div",Qu,e.toDisplayString(ee.name||"-"),1)],10,Xu))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",ed,[g.value?(e.openBlock(),e.createElementBlock("div",ad,[e.createVNode(je,{class:"is-loading"},{default:e.withCtx(()=>[e.createVNode(Ie)]),_:1}),oe[11]||(oe[11]=e.createElementVNode("span",null,"图片加载中...",-1))])):(la=ae.value)!=null&&la.blobUrl?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(De,{ref_key:"imageRef",ref:$,src:ae.value.blobUrl,fit:"contain",class:"preview-image","preview-src-list":[ae.value.blobUrl],onLoad:Be},null,8,["src","preview-src-list"]),e.createElementVNode("canvas",{ref_key:"canvasRef",ref:V,class:"highlight-canvas"},null,512)],64)):(e.openBlock(),e.createElementBlock("div",ld,[(Ta=ae.value)!=null&&Ta.url?(e.openBlock(),e.createElementBlock("span",rd,"图片加载失败")):(e.openBlock(),e.createElementBlock("span",nd,"暂无图片"))]))])])):(e.openBlock(),e.createElementBlock("div",id,"暂无图片"))])])):e.createCommentVNode("",!0)}}}),td=Xl._export_sfc(od,[["__scopeId","data-v-48a4ecb1"]]),sd={class:"cert-preview-body"},cd={key:0,class:"pdf-preview-container"},ud={class:"thumbs"},dd=["onClick"],pd={class:"thumb-img"},fd=["src"],hd={key:1,class:"thumb-loading"},vd={class:"thumb-title"},md={class:"viewer"},yd={key:0,class:"viewer-img-wrap"},gd=["src"],bd={key:1,class:"viewer-loading"},kd=e.defineComponent({__name:"CertificatePreview",props:{visible:{type:Boolean},versions:{}},emits:["update:visible"],setup(a,{emit:l}){const n=a,r=l,o=e.ref(""),s=e.ref(""),h=e.computed(()=>(n.versions||[]).find(k=>String(k.versionId)===String(o.value))),c=e.ref({}),d=e.ref(""),m=e.ref("证书附件.pdf"),b=()=>{try{Object.values(c.value||{}).forEach(k=>{k&&URL.revokeObjectURL(k)}),d.value&&URL.revokeObjectURL(d.value)}catch{}c.value={},d.value=""},u=async k=>{if(!k||k.fileType==="pdf")return;const W=Array.isArray(k.images)?k.images:[];for(const I of W){const j=I==null?void 0:I.url;if(!(!j||c.value[j]))try{const L=await A.platformDownloadFile({url:j}),E=URL.createObjectURL(L.data);c.value={...c.value,[j]:E}}catch{}}},C=async k=>{var I;if(!k||k.fileType!=="pdf"){d.value="";return}const W=k.sourceUrl||"";if(!W){d.value="";return}if(d.value){try{URL.revokeObjectURL(d.value)}catch{}d.value=""}try{console.log("[CertificatePreview] 下载PDF附件:",{url:W,versionId:k==null?void 0:k.versionId,certNo:k==null?void 0:k.certNo});const j=await A.platformDownloadFile({url:W});console.log("[CertificatePreview] PDF响应:",{url:W,status:j==null?void 0:j.status,size:(I=j==null?void 0:j.data)==null?void 0:I.size});const L=URL.createObjectURL(j.data);d.value=L;const E=k.certNo?String(k.certNo):"";m.value=E?`${E}.pdf`:"证书附件.pdf"}catch(j){console.error("[CertificatePreview] PDF加载失败:",{url:W,error:j}),d.value=""}};e.watch(()=>n.visible,async k=>{var I;if(!k){b();return}const W=(I=n.versions)==null?void 0:I[0];o.value=(W==null?void 0:W.versionId)||"",await u(W),await C(W)},{immediate:!0}),e.watch(()=>o.value,async()=>{var W,I;const k=h.value;if(!k){s.value="",d.value="";return}if(k.fileType==="pdf"){s.value="",await C(k);return}d.value="",s.value=((I=(W=k.images)==null?void 0:W[0])==null?void 0:I.url)||"",await u(k)},{immediate:!0});const M=()=>{r("update:visible",!1),b()};return e.onBeforeUnmount(()=>{b()}),(k,W)=>{const I=e.resolveComponent("el-empty"),j=e.resolveComponent("el-tab-pane"),L=e.resolveComponent("el-tabs"),E=e.resolveComponent("el-button"),x=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(x,{"model-value":k.visible,title:"证书附件预览",width:"1100px","close-on-click-modal":!1,onClose:M},{footer:e.withCtx(()=>[e.createVNode(E,{id:"themeBorderButton",onClick:M},{default:e.withCtx(()=>W[1]||(W[1]=[e.createTextVNode("关闭")])),_:1,__:[1]})]),default:e.withCtx(()=>[k.versions&&k.versions.length>0?(e.openBlock(),e.createBlock(L,{key:0,modelValue:o.value,"onUpdate:modelValue":W[0]||(W[0]=w=>o.value=w),type:"card",class:"cert-version-tabs"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.versions,w=>(e.openBlock(),e.createBlock(j,{key:w.versionId,name:w.versionId,label:w.label},{default:e.withCtx(()=>[e.createElementVNode("div",sd,[w.fileType==="pdf"?(e.openBlock(),e.createElementBlock("div",cd,[d.value?(e.openBlock(),e.createBlock(nl.SsFilePreview,{key:1,fileName:m.value,blobUrl:d.value},null,8,["fileName","blobUrl"])):(e.openBlock(),e.createBlock(I,{key:0,description:"加载中"}))])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",ud,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.images||[],g=>(e.openBlock(),e.createElementBlock("div",{key:g.url,class:e.normalizeClass(["thumb",{active:g.url===s.value}]),onClick:S=>s.value=g.url},[e.createElementVNode("div",pd,[c.value[g.url]?(e.openBlock(),e.createElementBlock("img",{key:0,src:c.value[g.url]},null,8,fd)):(e.openBlock(),e.createElementBlock("div",hd,"加载中"))]),e.createElementVNode("div",vd,e.toDisplayString(g.name),1)],10,dd))),128))]),e.createElementVNode("div",md,[s.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[c.value[s.value]?(e.openBlock(),e.createElementBlock("div",yd,[e.createElementVNode("img",{class:"viewer-img",src:c.value[s.value]},null,8,gd)])):(e.openBlock(),e.createElementBlock("div",bd,"加载中"))],64)):(e.openBlock(),e.createBlock(I,{key:0,description:"暂无图片"}))])],64))])]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue"])):(e.openBlock(),e.createBlock(I,{key:1,description:"暂无可预览的证书附件"}))]),_:1},8,["model-value"])}}}),xd=Xl._export_sfc(kd,[["__scopeId","data-v-220703c0"]]),wd={class:"ocr-candidate-wrap"},_d={class:"ocr-candidate-left"},Sd={key:1},Ed={key:0},Cd={key:1},Dd={key:2},Bd={key:3},Td={key:0,class:"ocr-candidate-right"},Nd={class:"ocr-candidate-actions"},Ad={key:1},zd={class:"dialog-footer"},Md={__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 n=(S=[])=>{const $=[],V=ae=>{(ae||[]).forEach(Z=>{if(!Z)return;const ge=Z.children||Z.childrens||Z.columns;Array.isArray(ge)&&ge.length>0?V(ge):$.push(Z)})};return V(S),$},r=a,o=l,s=e.computed(()=>{var S;return((S=C.value)==null?void 0:S.allowAdd)!==!1}),h=e.computed(()=>{var S;return((S=C.value)==null?void 0:S.allowReplace)!==!1}),c=S=>{if(!S)return[];if(Array.isArray(S))return S;if(typeof S=="string")try{const $=JSON.parse(S);return Array.isArray($)?$:[]}catch{return[]}return[]},d=S=>{o("preview-file",S)},m=e.ref([]),b=e.ref(0),u=e.ref("");e.watch(()=>r.candidates,S=>{var $,V;m.value=(S||[]).map(ae=>({...ae,...(ae==null?void 0:ae.ocrRow)||{},selectedTargetId:(ae==null?void 0:ae.selectedTargetId)||"",__decision:ae==null?void 0:ae.__decision})),b.value=0,u.value=((V=($=m.value)==null?void 0:$[0])==null?void 0:V.selectedTargetId)||""},{immediate:!0,deep:!0}),e.watch(()=>r.visible,S=>{var $,V;S&&(b.value=0,u.value=((V=($=m.value)==null?void 0:$[0])==null?void 0:V.selectedTargetId)||"")});const C=e.computed(()=>{var $;const S=Number(b.value||0);return(($=m.value||[])==null?void 0:$[S])||null}),M=e.computed(()=>(n(r.columns||[])||[]).filter(V=>V&&V.prop).filter(V=>V.type!=="operate"&&V.label!=="操作"&&V.prop!=="operate")),k=e.computed(()=>M.value.filter(S=>S.label!=="证书附件"&&S.prop!=="证书附件")),W=S=>{if(!S)return;const $=(m.value||[]).findIndex(V=>(V==null?void 0:V.idx)===(S==null?void 0:S.idx));$>-1&&(b.value=$,u.value=(S==null?void 0:S.selectedTargetId)||"")},I=S=>{if(!S){u.value="";return}u.value=String((S==null?void 0:S.id)??"")},j=(S,$="")=>{const V=Number(b.value||0),ae=m.value||[],Z=ae[V];Z&&(Z.__decision=S,Z.selectedTargetId=$,u.value=$,m.value=[...ae])},L=()=>j("skip",""),E=()=>j("add",""),x=()=>{if(!u.value){Ua.ElMessage.warning("请先选择要替换的目标记录");return}j("replace",u.value)},w=()=>{o("update:visible",!1)},g=()=>{const S=m.value||[];if(S.find(V=>(V==null?void 0:V.__decision)==="replace"&&!(V!=null&&V.selectedTargetId))){Ua.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}o("submit",S),o("update:visible",!1)};return(S,$)=>{const V=e.resolveComponent("el-table-column"),ae=e.resolveComponent("svg-icon"),Z=e.resolveComponent("el-table"),ge=e.resolveComponent("el-button"),ze=e.resolveComponent("el-alert");return e.openBlock(),e.createBlock(Br.ssDialog,{title:"OCR候选匹配",visible:a.visible,"close-on-click-modal":!1,width:"90%",style:{maxWidth:"1200px"},onBeforeDestroy:w},{default:e.withCtx(()=>{var F,ne;return[e.createElementVNode("div",wd,[e.createElementVNode("div",_d,[$[0]||($[0]=e.createElementVNode("div",{class:"ocr-candidate-title"},"待处理OCR行(可跳过)",-1)),e.createVNode(Z,{data:m.value,border:"",stripe:"","max-height":"300",style:{width:"100%"},"highlight-current-row":"",onCurrentChange:W},{default:e.withCtx(()=>[e.createVNode(V,{type:"index",label:"序号",width:"60"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,J=>(e.openBlock(),e.createBlock(V,{key:J.prop,label:J.label,prop:J.prop,"min-width":J.minWidth||160},{default:e.withCtx(({row:se})=>[J.label==="证书附件"||J.prop==="证书附件"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[c(se==null?void 0:se[J.prop]).length>0?(e.openBlock(),e.createBlock(ae,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:e.withModifiers(Be=>d({row:se,prop:J.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(e.openBlock(),e.createElementBlock("span",Sd,"-"))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString((se==null?void 0:se[J.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128)),e.createVNode(V,{label:"候选数",width:"90",fixed:"right"},{default:e.withCtx(({row:J})=>[e.createTextVNode(e.toDisplayString(((J==null?void 0:J.candidates)||[]).length),1)]),_:1}),e.createVNode(V,{label:"处理状态",width:"120",fixed:"right"},{default:e.withCtx(({row:J})=>[(J==null?void 0:J.__decision)==="replace"?(e.openBlock(),e.createElementBlock("span",Ed,"替换")):(J==null?void 0:J.__decision)==="add"?(e.openBlock(),e.createElementBlock("span",Cd,"新增")):(J==null?void 0:J.__decision)==="skip"?(e.openBlock(),e.createElementBlock("span",Dd,"跳过")):(e.openBlock(),e.createElementBlock("span",Bd,"未处理"))]),_:1})]),_:1},8,["data"])]),m.value&&m.value.length>0?(e.openBlock(),e.createElementBlock("div",Td,[$[4]||($[4]=e.createElementVNode("div",{class:"ocr-candidate-title"},"当前行候选记录(同编号)",-1)),e.createElementVNode("div",Nd,[e.createVNode(ge,{id:"themeBorderButton",onClick:L},{default:e.withCtx(()=>$[1]||($[1]=[e.createTextVNode("跳过本行")])),_:1,__:[1]}),e.createVNode(ge,{id:"themeBorderButton",onClick:E,disabled:!s.value},{default:e.withCtx(()=>$[2]||($[2]=[e.createTextVNode("新增本行")])),_:1,__:[2]},8,["disabled"]),e.createVNode(ge,{class:"ok-button",id:"themeButton",onClick:x,disabled:!h.value||!u.value},{default:e.withCtx(()=>$[3]||($[3]=[e.createTextVNode("替换选中记录")])),_:1,__:[3]},8,["disabled"])]),(((F=C.value)==null?void 0:F.candidates)||[]).length===0?(e.openBlock(),e.createBlock(ze,{key:0,title:"该编号暂无候选记录,可选择“新增本行”或“跳过本行”。",type:"info",closable:!1,"show-icon":"",style:{margin:"8px 0"}})):e.createCommentVNode("",!0),e.createVNode(Z,{data:((ne=C.value)==null?void 0:ne.candidates)||[],border:"",stripe:"","max-height":"300",style:{width:"100%"},onCurrentChange:I,"highlight-current-row":""},{default:e.withCtx(()=>[e.createVNode(V,{type:"index",label:"序号",width:"60"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.value,J=>(e.openBlock(),e.createBlock(V,{key:J.prop,label:J.label,prop:J.prop,"min-width":J.minWidth||160},{default:e.withCtx(({row:se})=>[J.label==="证书附件"||J.prop==="证书附件"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[c(se==null?void 0:se[J.prop]).length>0?(e.openBlock(),e.createBlock(ae,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:e.withModifiers(Be=>d({row:se,prop:J.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(e.openBlock(),e.createElementBlock("span",Ad,"-"))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString((se==null?void 0:se[J.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128))]),_:1},8,["data"])])):e.createCommentVNode("",!0)])]}),footer:e.withCtx(()=>[e.createElementVNode("div",zd,[e.createVNode(ge,{id:"themeBorderButton",onClick:w},{default:e.withCtx(()=>$[5]||($[5]=[e.createTextVNode("取消")])),_:1,__:[5]}),e.createVNode(ge,{class:"ok-button",id:"themeButton",onClick:g},{default:e.withCtx(()=>$[6]||($[6]=[e.createTextVNode("提交已处理")])),_:1,__:[6]})])]),_:1},8,["visible"])}}},Id=Xl._export_sfc(Md,[["__scopeId","data-v-89e0489c"]]),Od={class:"ocr-preview-content"},Ld={class:"ocr-preview-tip"},Rd={class:"ocr-preview-table"},$d={style:{display:"flex","align-items":"center",gap:"8px"}},Vd={class:"dialog-footer"},Pd={__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 n=a,r=l,o=e.ref([]),s=e.ref([]),h=e.ref([]);e.watch(()=>n.visible,M=>{M&&(o.value=JSON.parse(JSON.stringify(n.ocrPreviewData)),s.value=JSON.parse(JSON.stringify(n.ocrPreviewColumns)),h.value=[...n.ocrSelectedFields])});const c=(M,k)=>{const W=[...h.value];if(k)W.includes(M)||W.push(M);else{const I=W.indexOf(M);I>-1&&W.splice(I,1)}h.value=W,r("update:ocrSelectedFields",W)},d=(M,k,W)=>{r("fieldChange",{rowIndex:M,prop:k,value:W})},m=()=>{r("update:ocrPreviewData",o.value),r("confirm",o.value),r("update:visible",!1)},b=()=>{r("update:visible",!1)},u=M=>typeof M!="number"?"-":`${(M*100).toFixed(1)}%`,C=M=>typeof M!="number"?"#606266":M>=.9?"#67c23a":M>=.7?"#e6a23c":"#f56c6c";return(M,k)=>{const W=e.resolveComponent("el-alert"),I=e.resolveComponent("el-table-column"),j=e.resolveComponent("el-checkbox"),L=e.resolveComponent("el-input"),E=e.resolveComponent("el-table"),x=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(Br.ssDialog,{title:"OCR识别结果预览",visible:a.visible,onBeforeDestroy:b,width:"90%",style:{maxWidth:"1200px"}},{default:e.withCtx(()=>[e.createElementVNode("div",Od,[e.createElementVNode("div",Ld,[e.createVNode(W,{title:"请核对识别结果。系统将按 编号+名称+制造厂 规则匹配并替换;未唯一命中但有编号的,将进入候选选择;无编号则直接新增。",type:"info",closable:!1,"show-icon":""})]),e.createElementVNode("div",Rd,[e.createVNode(E,{data:o.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(I,{type:"index",label:"序号",width:"60",fixed:""}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,w=>(e.openBlock(),e.createBlock(I,{key:w.prop,prop:w.prop,"min-width":w.minWidth||230,"class-name":w.isAccuracy?"accuracy-column":""},{header:e.withCtx(()=>[e.createElementVNode("div",$d,[w.isAccuracy?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(j,{key:0,"model-value":h.value.includes(w.prop),onChange:g=>c(w.prop,g),onClick:k[0]||(k[0]=e.withModifiers(()=>{},["stop"]))},null,8,["model-value","onChange"])),e.createElementVNode("span",null,e.toDisplayString(w.label),1)])]),default:e.withCtx(({row:g,$index:S})=>[w.isAccuracy?(e.openBlock(),e.createElementBlock("span",{key:0,class:"accuracy-value",style:e.normalizeStyle({color:C(g[w.prop]),fontWeight:500})},e.toDisplayString(u(g[w.prop])),5)):(e.openBlock(),e.createBlock(L,{key:1,modelValue:g[w.prop],"onUpdate:modelValue":$=>g[w.prop]=$,size:"small",placeholder:"请输入"+w.label,onChange:$=>d(S,w.prop,$)},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"]))]),_:2},1032,["prop","min-width","class-name"]))),128))]),_:1},8,["data"])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",Vd,[e.createVNode(x,{onClick:b,id:"themeBorderButton"},{default:e.withCtx(()=>k[1]||(k[1]=[e.createTextVNode("取消")])),_:1,__:[1]}),e.createVNode(x,{class:"ok-button",onClick:m,id:"themeButton"},{default:e.withCtx(()=>k[2]||(k[2]=[e.createTextVNode("确认")])),_:1,__:[2]})])]),_:1},8,["visible"])}}},Fd=Xl._export_sfc(Pd,[["__scopeId","data-v-df66eb1f"]]),ni=a=>{var r;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 n=(r=ce.analyzeSplitToContent(l,","))==null?void 0:r.map(o=>((o==null?void 0:o[(o==null?void 0:o.length)-1])===","&&(o=o==null?void 0:o.slice(0,(o==null?void 0:o.length)-1)),pn(o)));return n=n==null?void 0:n.join(","),n};function Zs(a){return Ua.axios.post("http://222.92.178.198:8000/api/v1/excel-chat",a)}function jd(a){return Ua.axios.get(a,{responseType:"blob"})}let Kl="$R",Hd="http://222.92.178.198:55002/AIRobot",st=["Form","BarChart","FormText","FormBlock"];const Qs=a=>{var n,r;let l=(r=ce.analyzeSplitToContent(a,"@"))==null?void 0:r[((n=ce.analyzeSplitToContent(a,"@"))==null?void 0:n.length)-1];return!!(st!=null&&st.some(o=>l==null?void 0:l.includes(o)))},Ud=async(a,l,n,r)=>{var s,h,c,d,m,b,u,C,M,k,W,I,j,L,E,x,w,g,S,$,V,ae,Z,ge,ze,F,ne,J,se,Be,$e,fe,N,oe,U,De,Ie,je,la,Ta,ee,ca;let o=a;if(Qs(o==null?void 0:o[0])){let ue=Xd(o),ta=(s=ue==null?void 0:ue.filter)==null?void 0:s.join(","),Se=[];(h=ue==null?void 0:ue.hideContents)==null||h.forEach(We=>{if(We){const sa=We;sa&&Se.push(`(HideGroup=Yes, prop=${sa})`)}});let te=(c=ue==null?void 0:ue.formContents)==null?void 0:c.filter(We=>{var sa;return(sa=We==null?void 0:We.filters)==null?void 0:sa.includes("@ShowHide=Hide")});(te==null?void 0:te.length)>0&&(te==null||te.forEach(We=>{if(We){const sa=We==null?void 0:We.prop;sa&&Se.push(`(Hide=Yes, prop=${sa})`)}}));let Ne=(r==null?void 0:r.menuFilter)??[];return Array.isArray(Ne)||(Ne=Ne?[Ne]:[]),Ne=[...Ne,...Se],{key:"Form",name:ue==null?void 0:ue.groupName,value:ue==null?void 0:ue.formContents,contents:Array.isArray((d=ue==null?void 0:ue.contents)==null?void 0:d[0])&&((b=(m=ue==null?void 0:ue.contents)==null?void 0:m[0])!=null&&b.every(We=>Array.isArray(We)))?[(C=(u=ue==null?void 0:ue.contents)==null?void 0:u[0])==null?void 0:C[n]]:[ue==null?void 0:ue.contents],filter:"("+ta+")",menuFilter:Ne,groupFilter:ue==null?void 0:ue.groupFilters}}else if(((M=o==null?void 0:o[0])==null?void 0:M[0])!=="&"){let ue=lc(o,r),ta="";(k=ue==null?void 0:ue.tableFilter)!=null&&k.includes(Kl)?ue.tableFilter=(W=ue==null?void 0:ue.tableFilter)==null?void 0:W.replace(Kl,""):ta=(L=(j=(I=ue==null?void 0:ue.tableFilter)==null?void 0:I.replace("(",Kl))==null?void 0:j.split(Kl))==null?void 0:L[0];let Se=[];ue!=null&&ue.tableFilter&&((E=ce.analyzeSplitToContent(ue==null?void 0:ue.tableFilter,","))==null||E.forEach(Ne=>{Ne!=null&&Ne.includes("@ShowHide=Hide")&&Se.push("HideGroup=Yes")}));let te=(r==null?void 0:r.menuFilter)??[];return Array.isArray(te)||(te=te?[te]:[]),te=[...te,...Se],{key:"Table",name:ue==null?void 0:ue.groupName,tableColumns:ue==null?void 0:ue.tableColumns,assistColumn:ue==null?void 0:ue.columns,tableContents:l===1?ue==null?void 0:ue.tableContents:(w=(x=ue==null?void 0:ue.tableContents)==null?void 0:x[n])!=null&&w.every(Ne=>Array.isArray(Ne))?(g=ue==null?void 0:ue.tableContents)==null?void 0:g[n]:[(S=ue==null?void 0:ue.tableContents)==null?void 0:S[n]],filter:ue==null?void 0:ue.tableFilter,menuFilter:te,quotePage:ta!==""?((ae=(V=($=ta==null?void 0:ta.replace("*",Kl))==null?void 0:$.split(Kl))==null?void 0:V[0])==null?void 0:ae.replaceAll(":","/"))??"":void 0,quoteGroup:ta!==""?((se=(J=(ne=(F=(ze=(ge=(Z=ta==null?void 0:ta.replace("*",Kl))==null?void 0:Z.split(Kl))==null?void 0:ge[1])==null?void 0:ze.replace("{",Kl))==null?void 0:F.split(Kl))==null?void 0:ne[0])==null?void 0:J.split(":"))==null?void 0:se.filter(Ne=>Ne!==""))??[]:[],relatedQuotes:ue==null?void 0:ue.relatedQuotes,fatherSyncContents:ue==null?void 0:ue.fatherSyncContents,sonSyncContents:ue==null?void 0:ue.sonSyncContents}}else{let ue=[{label:"序号",prop:"sort"},{label:"函数名称",prop:"函数名称"},{label:"函数关联名",prop:"函数关联名"},{label:"函数参数",prop:"函数参数"},{label:"输出值",prop:"输出值"},{label:"导入文件",prop:"导入文件",formType:"Upload"}],ta=o==null?void 0:o[0];ta=ta==null?void 0:ta.slice(1,ta==null?void 0:ta.length),ta=ce.analyzeSplitToContent(ta,":"),ta=ta==null?void 0:ta[(ta==null?void 0:ta.length)-1];let Se=[];Se.push("1");let te=ta==null?void 0:ta.replace("(",Kl);te=(Be=te==null?void 0:te.split(Kl))==null?void 0:Be[0],Se.push(te);let Ne=ta==null?void 0:ta.replace("(",Kl);if(Ne=($e=Ne==null?void 0:Ne.split(Kl))==null?void 0:$e[1],Ne=(N=(fe=Ne==null?void 0:Ne.replace(")",Kl))==null?void 0:fe.split(Kl))==null?void 0:N[0],(U=(oe=Ne==null?void 0:Ne.replace(",",Kl))==null?void 0:oe.split(Kl))==null||U.forEach(We=>{Se.push(We)}),Se.push(""),Se.push(""),(De=Se==null?void 0:Se[2])!=null&&De.includes(".xlsx")||(Ie=Se==null?void 0:Se[2])!=null&&Ie.includes(".xls"))try{let We=Hd+"/"+(Se==null?void 0:Se[2]),sa=await jd(We),Ya=`生成js函数名称为${Se==null?void 0:Se[1]}的函数,规则为:`+(Se==null?void 0:Se[3])+"。根据上述描述获取对应的总结性详细可运行js函数,不需要任何注释。";if((sa==null?void 0:sa.status)===200){let R=sa==null?void 0:sa.data;const H=new FormData;H.append("file",R,Se==null?void 0:Se[2]),H.append("query",Ya);let X=await Zs(H);X=(Ta=(la=(je=X==null?void 0:X.data)==null?void 0:je.data)==null?void 0:la.response)==null?void 0:Ta.replace("generateResult",Se==null?void 0:Se[1]),Se[Se.length-2]=X,Se[Se.length-1]=[{name:(ca=(ee=Se==null?void 0:Se[2])==null?void 0:ee.split("."))==null?void 0:ca[0],url:We}]}}catch{}return Se=[Se],{key:"Method",name:[],tableContents:Se,tableColumns:ue}}},qd=(a,l)=>{var r,o,s,h,c,d,m,b,u,C,M,k,W,I,j,L,E,x,w,g,S,$,V,ae,Z,ge,ze,F,ne,J,se,Be,$e,fe,N,oe,U,De,Ie,je,la,Ta,ee,ca,ue,ta,Se;let n=(o=(r=ce.analyzeSplitToContent(a,"="))==null?void 0:r.filter(te=>te!=="="))==null?void 0:o.map(te=>((te==null?void 0:te[(te==null?void 0:te.length)-1])==="="&&(te=te==null?void 0:te.slice(0,(te==null?void 0:te.length)-1)),te));if(Qs(n==null?void 0:n[1])){let te=Jd(n),Ne=(c=(h=(s=te==null?void 0:te.filter)==null?void 0:s.replace("@",Kl))==null?void 0:h.split(Kl))==null?void 0:c[0],We=(b=(m=(d=te==null?void 0:te.filter)==null?void 0:d.replace("(",Kl))==null?void 0:m.split(Kl))==null?void 0:b[1],sa=(M=(C=(u=te==null?void 0:te.filter)==null?void 0:u.replace("(",Kl))==null?void 0:C.split(Kl))==null?void 0:M[0];sa="@"+((k=sa==null?void 0:sa.split("@"))==null?void 0:k[1]),We=We==null?void 0:We.slice(0,(We==null?void 0:We.length)-1),We=(I=(W=ce.analyzeSplitToContent(We,","))==null?void 0:W.map(R=>(R=sa+R,R)))==null?void 0:I.join("");let Ya=Ne+"("+We+")";return{key:"Form",name:te==null?void 0:te.group,filter:Ya,formPage:((E=(L=(j=Ne==null?void 0:Ne.replace("*",Kl))==null?void 0:j.split(Kl))==null?void 0:L[0])==null?void 0:E.replaceAll(":","/"))??"",formGroup:((ae=(V=($=(S=(g=(w=(x=Ne==null?void 0:Ne.replace("*",Kl))==null?void 0:x.split(Kl))==null?void 0:w[1])==null?void 0:g.replace("{",Kl))==null?void 0:S.split(Kl))==null?void 0:$[0])==null?void 0:V.split(":"))==null?void 0:ae.filter(R=>R!==""))??[],value:[],menuFilter:l==null?void 0:l.menuFilter}}else{let te=lc(n,l,n==null?void 0:n[1]),Ne="";(Z=te==null?void 0:te.tableFilter)!=null&&Z.includes(Kl)?te.tableFilter=(ge=te==null?void 0:te.tableFilter)==null?void 0:ge.replace(Kl,""):Ne=(ne=(F=(ze=te==null?void 0:te.tableFilter)==null?void 0:ze.replace("(",Kl))==null?void 0:F.split(Kl))==null?void 0:ne[0];let We=(Be=(se=(J=te==null?void 0:te.tableFilter)==null?void 0:J.replace("(",Kl))==null?void 0:se.split(Kl))==null?void 0:Be[0];We=[{menus:(fe=($e=We==null?void 0:We.split("*"))==null?void 0:$e[0])==null?void 0:fe.replaceAll(":","/"),groups:((oe=(N=We==null?void 0:We.split("*"))==null?void 0:N[1])==null?void 0:oe.split(":"))??[]}];let sa=(Ie=(De=(U=te==null?void 0:te.tableFilter)==null?void 0:U.replace("(",Kl))==null?void 0:De.split(Kl))==null?void 0:Ie[1];(sa==null?void 0:sa[(sa==null?void 0:sa.length)-1])===")"&&(sa=sa==null?void 0:sa.slice(0,(sa==null?void 0:sa.length)-1));let Ya=[];te!=null&&te.tableFilter&&((je=ce.analyzeSplitToContent(te==null?void 0:te.tableFilter,","))==null||je.forEach(H=>{H!=null&&H.includes("@ShowHide=Hide")&&Ya.push("HideGroup=Yes")}));let R=(l==null?void 0:l.menuFilter)??[];return Array.isArray(R)||(R=R?[R]:[]),R=[...R,...Ya],{key:"Table",name:te==null?void 0:te.groupName,filter:te==null?void 0:te.tableFilter,tableColumns:te==null?void 0:te.tableColumns,quotePage:Ne!==""?((ee=(Ta=(la=Ne==null?void 0:Ne.replace("*",Kl))==null?void 0:la.split(Kl))==null?void 0:Ta[0])==null?void 0:ee.replaceAll(":","/"))??"":void 0,quoteGroup:Ne!==""?((Se=(ta=(ue=(ca=Ne==null?void 0:Ne.replace("*",Kl))==null?void 0:ca.split(Kl))==null?void 0:ue[1])==null?void 0:ta.split(":"))==null?void 0:Se.filter(H=>H!==""))??[]:[],menuFilter:R,relatedQuotes:We,fatherSyncContents:(te==null?void 0:te.fatherSyncContents)??[],sonSyncContents:(te==null?void 0:te.sonSyncContents)??[]}}},Wd=async(a,l)=>{let n=[],r=l==null?void 0:l.length;return l=l==null?void 0:l.map(async(o,s)=>{let h=[];o=o==null?void 0:o.map(async c=>{var d,m;if(h.push(c),((d=ce.analyzeSplitToContent(a,"="))==null?void 0:d.length)<=2){if(((m=ce.analyzeSplitToContent(a,"="))==null?void 0:m.length)!==0){const b=await Ud(ce.analyzeSplitToContent(a,"="),r,s,c);h.push(b)}}else h.push(qd(a,c))}),await Promise.all(o),n.push(h)}),await Promise.all(l),n};let Fi="/",Kd="$",kn="$R";const ec=a=>{var n,r,o;let l="";if((a==null?void 0:a.length)>1){let s=a==null?void 0:a.filter((h,c)=>c!==0);s=s==null?void 0:s.join(""),s=ce.analyzerSplitToWord(s,")"),(s==null?void 0:s.length)!==1?(s==null?void 0:s[(s==null?void 0:s.length)-1])===")"?s=s==null?void 0:s.join(""):s=(n=s==null?void 0:s.filter((h,c)=>c!==(s==null?void 0:s.length)-1))==null?void 0:n.join(""):s=s==null?void 0:s[0],l="("+s,((o=a==null?void 0:a[0])==null?void 0:o[((r=a==null?void 0:a[0])==null?void 0:r.length)-2])==="@"&&(l="@"+l)}return{filter:l}},ac=(a,l=[])=>{let n=(a==null?void 0:a.map(s=>{var h,c;return(c=s==null?void 0:s.key)==null?void 0:c.slice(1,(h=s==null?void 0:s.key)==null?void 0:h.length)}))??[],r=[];n==null||n.forEach(s=>{var h,c,d,m,b,u,C,M,k,W,I,j,L,E,x,w,g,S,$,V,ae,Z,ge;if(s===""&&(s="算法库:通用算法"),s!=null&&s.includes(Kd)){let ze="",F=!0,ne=ce.analyzerSplitToWord(s,"(");(ne==null?void 0:ne.length)>1&&(ze="("+((h=ce.analyzerSplitToWord(ne==null?void 0:ne[1],")"))==null?void 0:h[0]),((d=ne==null?void 0:ne[0])==null?void 0:d[((c=ne==null?void 0:ne[0])==null?void 0:c.length)-2])==="@"&&(ze="@"+ze));let J=s;J=J==null?void 0:J.replace(ze,""),ze=pn(ze),ze=(m=ce.analyzeSplitToContent(ze,","))==null?void 0:m.map(oe=>((oe==null?void 0:oe[(oe==null?void 0:oe.length)-1])===","&&(oe=oe==null?void 0:oe.slice(0,(oe==null?void 0:oe.length)-1)),oe)),ze!=null&&ze.includes("@ShowHide=Hide")&&(F=!1);let se=(b=J==null?void 0:J.replace("$",kn))==null?void 0:b.split(kn),Be=se==null?void 0:se[1],$e=se==null?void 0:se[0];$e!=null&&$e.includes("[")&&($e=(C=(u=$e==null?void 0:$e.replace("[",kn))==null?void 0:u.split(kn))==null?void 0:C[0],Be=Be+":["+((W=(k=(M=se==null?void 0:se[0])==null?void 0:M.replace("[",kn))==null?void 0:k.split(kn))==null?void 0:W[1])),$e=(j=(I=$e==null?void 0:$e.replaceAll(":","/"))==null?void 0:I.replaceAll("{",""))==null?void 0:j.replaceAll("}",""),($e==null?void 0:$e[($e==null?void 0:$e.length)-1])!=="/"&&($e=$e+"/"),Be=((L=$e==null?void 0:$e.split("/"))==null?void 0:L[0])+":"+Be;let N="";if(!(Be!=null&&Be.includes("[")))N=Be==null?void 0:Be.replaceAll(":","/"),r==null||r.push({path:N,isShow:F,filter:ze,fatherPath:$e});else{let oe=(x=(E=Be==null?void 0:Be.replace("[",kn))==null?void 0:E.split(kn))==null?void 0:x[1];oe=oe==null?void 0:oe.slice(0,(oe==null?void 0:oe.length)-1),oe=(w=ce.analyzeSplitToContent(oe,","))==null?void 0:w.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)),oe==null||oe.forEach(U=>{var De,Ie;N=((Ie=(De=Be==null?void 0:Be.replace("[",kn))==null?void 0:De.split(kn))==null?void 0:Ie[0])+U,N=N==null?void 0:N.replaceAll(":","/"),r==null||r.push({path:N,isShow:F,filter:ze,fatherPath:$e})})}}else{let ze="",F=!0,ne=ce.analyzerSplitToWord(s,"(");(ne==null?void 0:ne.length)>1&&(ze=(g=ec(ne))==null?void 0:g.filter);let J=s;if(J=J==null?void 0:J.replace(ze,""),(ze==null?void 0:ze[0])==="("){ze=ze==null?void 0:ze.slice(1,(ze==null?void 0:ze.length)-1);let Be=[];(S=ce.analyzeSplitToContent(ze,","))==null||S.forEach($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==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),Be.push(pn($e))}),ze=Be==null?void 0:Be.join(",")}else ze=pn(ze);ze=($=ce.analyzeSplitToContent(ze,","))==null?void 0:$.map(Be=>((Be==null?void 0:Be[(Be==null?void 0:Be.length)-1])===","&&(Be=Be==null?void 0:Be.slice(0,(Be==null?void 0:Be.length)-1)),Be)),ze!=null&&ze.includes("@ShowHide=Hide")&&(F=!1),(J==null?void 0:J[(J==null?void 0:J.length)-1])==="}"&&(J=J+":"),J=(V=J==null?void 0:J.replaceAll("{",""))==null?void 0:V.replaceAll("}","");let se="";if(J!=null&&J.includes("[")){let Be=(ae=J==null?void 0:J.replace("[",kn))==null?void 0:ae.split(kn),$e=Be==null?void 0:Be[1];$e=$e==null?void 0:$e.slice(0,($e==null?void 0:$e.length)-1),(ge=(Z=ce.analyzeSplitToContent($e,","))==null?void 0:Z.map(fe=>((fe==null?void 0:fe[(fe==null?void 0:fe.length)-1])===","&&(fe=fe==null?void 0:fe.slice(0,(fe==null?void 0:fe.length)-1)),fe)))==null||ge.forEach(fe=>{se=(Be==null?void 0:Be[0])+fe,se=se==null?void 0:se.replaceAll(":","/"),r==null||r.push({path:se,isShow:F,filter:ze})})}else se=J==null?void 0:J.replaceAll(":","/"),r==null||r.push({path:se,isShow:F,filter:ze})}});let o=A.cloneDeep(r);return(l==null?void 0:l.length)>0&&(o=l),o=o==null?void 0:o.filter(s=>{var h,c,d,m;return!(s!=null&&s.fatherPath)&&((c=(h=s==null?void 0:s.path)==null?void 0:h.split(Fi))==null?void 0:c.length)>1&&((m=(d=s==null?void 0:s.path)==null?void 0:d.split(Fi))==null?void 0:m[1])===""}),o=o==null?void 0:o.map(s=>{var h;return s.path=(h=s.path)==null?void 0:h.replace(Fi,""),s.path}),(o==null?void 0:o.length)>0&&(r=r==null?void 0:r.map(s=>{var c,d,m,b,u,C,M;let h=o==null?void 0:o.find(k=>{var W;return(W=s==null?void 0:s.path)==null?void 0:W.includes(k)});return!(s!=null&&s.fatherPath)&&h&&!((c=s==null?void 0:s.path)!=null&&c.includes(Fi))&&!(o!=null&&o.find(k=>(s==null?void 0:s.path)===k))&&(s.path=h+Fi+((M=(m=(d=s==null?void 0:s.path)==null?void 0:d.split(h))==null?void 0:m[1])==null?void 0:M.slice(1,(C=(u=(b=s==null?void 0:s.path)==null?void 0:b.split(h))==null?void 0:u[1])==null?void 0:C.length))),s})),r},Gd=(a,l)=>ac([{key:a}],l),Yd=async(a,l)=>{const n=[],r=Gd(a==null?void 0:a.key,l);return r&&(r==null?void 0:r.length)>0&&(r==null||r.forEach(s=>{n.push([{key:"path",value:s==null?void 0:s.path,parentPath:(s==null?void 0:s.parentPath)??"",isShow:s==null?void 0:s.isShow,menuFilter:s==null?void 0:s.filter}])})),await Wd(a==null?void 0:a.value,n)};let gl="$R",Hi="[Any]";const Jd=a=>{var h,c;let l={},r=a==null?void 0:a[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.split(":"),l.group=r;let o=a==null?void 0:a[1],s;return o!=null&&o.includes("{")?s=(c=(h=o==null?void 0:o.replaceAll("{",""))==null?void 0:h.replaceAll("}",""))==null?void 0:c.replaceAll(Hi,""):s=o==null?void 0:o.replaceAll(Hi,""),(s==null?void 0:s[0])==="$"&&(s=s==null?void 0:s.slice(1,s==null?void 0:s.length)),l.filter=s,l},Xd=a=>{var C,M,k,W,I,j;let l=[],n=[],r=[],o=[],s=[],h=[],c="",d=a==null?void 0:a[0];(d==null?void 0:d[0])==="*"&&(d=d==null?void 0:d.slice(1,d==null?void 0:d.length));let m=ce.analyzeSplitToContent(d,":");(C=m==null?void 0:m.filter(L=>(L==null?void 0:L[0])!=="{"&&(L==null?void 0:L[0])!=="["))==null||C.forEach(L=>{var x,w,g;(L==null?void 0:L[(L==null?void 0:L.length)-1])===":"&&(L=L==null?void 0:L.slice(0,(L==null?void 0:L.length)-1));let E=ce.analyzerSplitToWord(L,"(");if((E==null?void 0:E.length)>1){c=(x=ec(E))==null?void 0:x.filter;let S=L==null?void 0:L.replace(c,"");if(r.push(S),(c==null?void 0:c[0])==="("){c=c==null?void 0:c.slice(1,(c==null?void 0:c.length)-1);let $=[];(w=ce.analyzeSplitToContent(c,","))==null||w.forEach(V=>{(V==null?void 0:V[(V==null?void 0:V.length)-1])===","&&(V=V==null?void 0:V.slice(0,(V==null?void 0:V.length)-1)),(V==null?void 0:V[0])==="("&&(V=V==null?void 0:V.slice(1,(V==null?void 0:V.length)-1)),(V==null?void 0:V[0])!=="@"&&(V="@"+V),$.push(pn(V))}),c=$==null?void 0:$.join(",")}else c=pn(c);c=(g=ce.analyzeSplitToContent(c,","))==null?void 0:g.map($=>(($==null?void 0:$[($==null?void 0:$.length)-1])===","&&($=$==null?void 0:$.slice(0,($==null?void 0:$.length)-1)),$)),c!=null&&c.includes("@ShowHide=Hide")&&h.push(S),o=[...o,...c]}else r.push(E==null?void 0:E[0])});let b=(M=m==null?void 0:m.filter(L=>(L==null?void 0:L[0])==="{"))==null?void 0:M[0],u=(k=m==null?void 0:m.filter(L=>(L==null?void 0:L[0])==="["))==null?void 0:k[0];return l=Di(u??""),l!=null&&l.every(L=>Array.isArray(L))&&(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)),s=(W=ce.analyzeSplitToContent(b,"@"))==null?void 0:W[1],s="@"+s,b=b==null?void 0:b.replace(s,""),s=pn(s),s=(I=ce.analyzeSplitToContent(s,","))==null?void 0:I.map(L=>((L==null?void 0:L[(L==null?void 0:L.length)-1])===","&&(L=L==null?void 0:L.slice(0,(L==null?void 0:L.length)-1)),L)),(b==null?void 0:b[0])==="{"&&(b=b==null?void 0:b.slice(1,(b==null?void 0:b.length)-1)),b=(j=ce.analyzeSplitToContent(b,","))==null?void 0:j.map(L=>((L==null?void 0:L[(L==null?void 0:L.length)-1])===","&&(L=L==null?void 0:L.slice(0,(L==null?void 0:L.length)-1)),L)),b==null||b.forEach((L,E)=>{var se,Be,$e,fe,N,oe,U,De,Ie,je,la,Ta,ee,ca,ue,ta,Se,te,Ne,We,sa,Ya,R,H,X,ve,de,va,na,Pe,xa,Me,ma,Oa,za,pa;let x=[],w=[],g=[],S="",$="",V=!1,ae,Z=[],ge=[],ze=[],F="Input",ne=[],J=[];if(L!=null&&L.includes("==")){ae=(se=L==null?void 0:L.split("=="))==null?void 0:se[0];let Ca=(Be=L==null?void 0:L.split("=="))==null?void 0:Be[1],Ae="";(($e=ce.analyzeSplitToContent(Ca,"$"))==null?void 0:$e.length)>1&&((fe=ce.analyzeSplitToContent(Ca,"$"))==null?void 0:fe[0])!=="$"?(Ae=(N=ce.analyzeSplitToContent(Ca,"$"))==null?void 0:N[0],Ae=Ae==null?void 0:Ae.slice(0,(Ae==null?void 0:Ae.length)-1)):((oe=ce.analyzeSplitToContent(Ca,"}"))==null?void 0:oe.length)>1&&(Ae=(U=ce.analyzeSplitToContent(Ca,"}"))==null?void 0:U[1]);let he=Ca==null?void 0:Ca.replace(Ae,"");if((Ae==null?void 0:Ae[0])==="("&&(Ae=Ae==null?void 0:Ae.slice(1,(Ae==null?void 0:Ae.length)-1)),(De=ce.analyzeSplitToContent(Ae,","))==null||De.forEach(Y=>{var me;(Y==null?void 0:Y[0])!=="@"&&(Y="@"+Y),(Y==null?void 0:Y[(Y==null?void 0:Y.length)-1])===","&&(Y=Y==null?void 0:Y.slice(0,(Y==null?void 0:Y.length)-1));let xe=pn(Y);(me=ce.analyzeSplitToContent(xe,","))==null||me.forEach(qe=>{(qe==null?void 0:qe[(qe==null?void 0:qe.length)-1])===","&&(qe=qe==null?void 0:qe.slice(0,(qe==null?void 0:qe.length)-1)),x.push(qe)})}),(he==null?void 0:he[0])==="$"&&(he=he==null?void 0:he.slice(1,he==null?void 0:he.length)),he!=null&&he.includes("&")){let Y=he;if((he==null?void 0:he[0])==="("){let me=(Ie=ce.analyzeSplitToContent(he,"&"))==null?void 0:Ie.map(qe=>((qe==null?void 0:qe[(qe==null?void 0:qe.length)-1])==="&"&&(qe=qe==null?void 0:qe.slice(0,(qe==null?void 0:qe.length)-1)),qe));Y=me==null?void 0:me[1],me=me==null?void 0:me[0],(me==null?void 0:me[0])!=="@"&&(me="@"+me),S=pn(me)}(Y==null?void 0:Y[0])==="&"&&(Y=Y==null?void 0:Y.slice(1,Y==null?void 0:Y.length)),$=(la=(je=Y==null?void 0:Y.replace("(",gl))==null?void 0:je.split(gl))==null?void 0:la[0],g=(ee=(Ta=Y==null?void 0:Y.replace("(",gl))==null?void 0:Ta.split(gl))==null?void 0:ee[1],g=[g==null?void 0:g.slice(0,(g==null?void 0:g.length)-1)],F="Input"}else{let Y=(ca=he==null?void 0:he.replace("*",gl))==null?void 0:ca.split(gl);Z=(ue=Y==null?void 0:Y[0])==null?void 0:ue.split(":"),ge=(Se=(ta=ce.analyzeSplitToContent(Y==null?void 0:Y[1],":"))==null?void 0:ta.filter((xe,me)=>{var qe,da;return me!==((da=(qe=Y==null?void 0:Y[1])==null?void 0:qe.split(":"))==null?void 0:da.length)-1}))==null?void 0:Se.map(xe=>((xe==null?void 0:xe[(xe==null?void 0:xe.length)-1])===":"&&(xe=xe==null?void 0:xe.slice(0,(xe==null?void 0:xe.length)-1)),xe)),ze=(Ne=(te=ce.analyzeSplitToContent(Y==null?void 0:Y[1],":"))==null?void 0:te.filter((xe,me)=>{var qe,da;return me===((da=(qe=Y==null?void 0:Y[1])==null?void 0:qe.split(":"))==null?void 0:da.length)-1}))==null?void 0:Ne[0],ze=(sa=(We=ze==null?void 0:ze.replaceAll("{",""))==null?void 0:We.replaceAll("}",""))==null?void 0:sa.split(":"),F="Select"}}else if(((Ya=ce.analyzeSplitToContent(L,"="))==null?void 0:Ya.length)>1)if(F="Select",ae=(H=(R=L==null?void 0:L.replace("=",gl))==null?void 0:R.split(gl))==null?void 0:H[0],!(L!=null&&L.includes("If")))ne=(ve=(X=L==null?void 0:L.replace("=",gl))==null?void 0:X.split(gl))==null?void 0:ve[1],ne=ne==null?void 0:ne.split("||");else{let Ca=(va=(de=L==null?void 0:L.replace("=",gl))==null?void 0:de.split(gl))==null?void 0:va[1];J=(na=ce.analyzeSplitToContent(Ca,")"))==null?void 0:na.filter(Ae=>!(Ae!=null&&Ae.includes("If"))),J=J==null?void 0:J.map(Ae=>((Ae==null?void 0:Ae[0])==="("&&(Ae=Ae==null?void 0:Ae.slice(1,(Ae==null?void 0:Ae.length)-1)),Ae=Ae==null?void 0:Ae.split("||"),Ae)),w=(Pe=ce.analyzeSplitToContent(Ca,")"))==null?void 0:Pe.filter(Ae=>Ae==null?void 0:Ae.includes("If")),w=w==null?void 0:w.map(Ae=>((Ae==null?void 0:Ae[0])==="|"&&(Ae=Ae==null?void 0:Ae.slice(2,Ae==null?void 0:Ae.length)),(Ae==null?void 0:Ae[0])==="("&&(Ae=Ae==null?void 0:Ae.slice(1,(Ae==null?void 0:Ae.length)-1)),(Ae==null?void 0:Ae[0])!=="@"&&(Ae="@"+Ae),Ae))}else if(((xa=ce.analyzeSplitToContent(L,"@"))==null?void 0:xa.length)>1){ae=(Me=ce.analyzeSplitToContent(L,"@"))==null?void 0:Me[0],(ae==null?void 0:ae[(ae==null?void 0:ae.length)-1])==="@"&&(ae=ae==null?void 0:ae.slice(0,(ae==null?void 0:ae.length)-1));let Ca="@"+((ma=ce.analyzeSplitToContent(L,"@"))==null?void 0:ma[1]);Ca=pn(Ca),x=(Oa=ce.analyzeSplitToContent(Ca,","))==null?void 0:Oa.map(Ae=>((Ae==null?void 0:Ae[(Ae==null?void 0:Ae.length)-1])===","&&(Ae=Ae==null?void 0:Ae.slice(0,(Ae==null?void 0:Ae.length)-1)),Ae)),x!=null&&x.find(Ae=>Ae==null?void 0:Ae.includes("@Type"))&&(F=(pa=(za=x==null?void 0:x.find(Ae=>Ae==null?void 0:Ae.includes("@Type")))==null?void 0:za.split("="))==null?void 0:pa[1])}else ae=L;x!=null&&x.includes("@ShowHide=Hide")&&(V=!0),n.push({prop:ae,label:ae,value:"",menuPath:Z,groups:ge,columns:ze,type:F,options:ne,allContents:J,filters:x,width:b==null?void 0:b.length,isFormColHidden:V,filterContents:w,functionName:$,functionRelatedWords:g,calculatorFilter:S})}),{groupName:r,groupFilters:o,formContents:n,contents:l,filter:s,hideContents:h}},Di=a=>{var r,o;if(!a||typeof a!="string")return[];let l=[],n=a.slice(1,(a==null?void 0:a.length)-1);if((n==null?void 0:n[0])!=="[")(r=ce.analyzeSplitToContent(n,","))==null||r.forEach(s=>{(s==null?void 0:s[(s==null?void 0:s.length)-1])===","&&(s=s.slice(0,(s==null?void 0:s.length)-1)),l.push(s??"")});else{let s=[];(o=ce.analyzeSplitToContent(n,","))==null||o.forEach(h=>{(h==null?void 0:h[(h==null?void 0:h.length)-1])===","&&(h=h==null?void 0:h.slice(0,(h==null?void 0:h.length)-1)),s.push(Di(h))}),l=s}return l},ht=(a,l)=>{var j,L,E,x,w,g,S,$,V,ae,Z,ge,ze,F,ne,J,se,Be,$e,fe,N,oe,U,De,Ie,je,la,Ta,ee,ca,ue,ta,Se,te,Ne,We,sa,Ya,R,H,X,ve,de,va,na,Pe,xa,Me,ma,Oa,za,pa,Ca,Ae,he,Y,xe,me,qe,da;let n,r=[],o=[],s=[],h=[],c=[],d=[],m=[],b="Input",u,C="",M="",k="",W=[],I="";if(a!=null&&a.includes("==")||a!=null&&a.includes("=")||a!=null&&a.includes("@")||a!=null&&a.includes("||"))if(n=(j=a==null?void 0:a.split("=="))==null?void 0:j[0],u=(L=a==null?void 0:a.split("=="))==null?void 0:L[0],b="Select",a!=null&&a.includes("=")&&!(a!=null&&a.includes("=="))&&!((w=(x=(E=a==null?void 0:a.replace("=",gl))==null?void 0:E.split(gl))==null?void 0:x[1])!=null&&w.includes("If")))if(n=ce.analyzeSplitToContent(a,"@"),n=n==null?void 0:n[0],(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=(S=(g=n==null?void 0:n.replace("=",gl))==null?void 0:g.split(gl))==null?void 0:S[0],n!=null&&n.includes("&")&&(n=(V=($=n==null?void 0:n.replace("&",gl))==null?void 0:$.split(gl))==null?void 0:V[0]),u=n,((ae=ce.analyzeSplitToContent(a,"@"))==null?void 0:ae.length)>1&&!(a!=null&&a.includes("||"))){if(!(a!=null&&a.includes("&"))){let Ke=(Z=ce.analyzeSplitToContent(a,"@"))==null?void 0:Z[1];if((Ke==null?void 0:Ke[0])!=="@"&&(Ke="@"+Ke),Ke=pn(Ke),M=Ke,M!=null&&M.includes("@Type")){let aa=ce.analyzeSplitToContent(M,",");aa=aa==null?void 0:aa.map(Ve=>((Ve==null?void 0:Ve[(Ve==null?void 0:Ve.length)-1])===","&&(Ve=Ve==null?void 0:Ve.slice(0,(Ve==null?void 0:Ve.length)-1)),Ve)),aa=(ge=aa==null?void 0:aa.filter(Ve=>Ve==null?void 0:Ve.includes("@Type")))==null?void 0:ge[0],b=(ze=aa==null?void 0:aa.split("="))==null?void 0:ze[1]}else b="Input"}}else if(a!=null&&a.includes("||")){let Ke=[];r=(J=(ne=(F=ce.analyzeSplitToContent(a,"="))==null?void 0:F[1])==null?void 0:ne.split("||"))==null?void 0:J.map(Ve=>{var pe,Sa,ya,vl;let ye=Ve;if(ye!=null&&ye.includes("@")){let Nl="@"+((Sa=(pe=ye==null?void 0:ye.replace("@",gl))==null?void 0:pe.split(gl))==null?void 0:Sa[1]);ye=(vl=(ya=ye==null?void 0:ye.replace("@",gl))==null?void 0:ya.split(gl))==null?void 0:vl[0],Nl=ni(Nl),Ke.push(Nl)}return{label:ye==null?void 0:ye.replaceAll("'",""),value:ye==null?void 0:ye.replaceAll("'","")}}),(Ke==null?void 0:Ke.length)>0&&(M="("+(Ke==null?void 0:Ke.join("||"))+")");let aa=(se=ce.analyzeSplitToContent(a,"="))==null?void 0:se[0];if(aa!=null&&aa.includes("@")){(aa==null?void 0:aa[(aa==null?void 0:aa.length)-1])==="="&&(aa=aa==null?void 0:aa.slice(0,(aa==null?void 0:aa.length)-1));let Ve=(Be=ce.analyzeSplitToContent(aa,"@"))==null?void 0:Be[1];Ve="@"+Ve,Ve=ni(Ve),M=M===""?Ve:Ve+","+M}}else b="Input",C=(N=(fe=($e=a==null?void 0:a.replace("=",gl))==null?void 0:$e.split(gl))==null?void 0:fe[1])==null?void 0:N.replaceAll("'","");else if((U=(oe=ce.analyzeSplitToContent(a,"="))==null?void 0:oe[1])!=null&&U.includes("||")){let Ke=(De=ce.analyzeSplitToContent(a,"="))==null?void 0:De[0];if((Ke==null?void 0:Ke[(Ke==null?void 0:Ke.length)-1])==="="&&(Ke=Ke==null?void 0:Ke.slice(0,(Ke==null?void 0:Ke.length)-1)),Ke!=null&&Ke.includes("@")){let pe=(Ie=ce.analyzeSplitToContent(Ke,"@"))==null?void 0:Ie[1];pe="@"+pe,M=ni(pe),n=(ee=(je=ce.analyzeSplitToContent(Ke,"@"))==null?void 0:je[0])==null?void 0:ee.slice(0,((Ta=(la=ce.analyzeSplitToContent(Ke,"@"))==null?void 0:la[0])==null?void 0:Ta.length)-1),u=(Se=(ca=ce.analyzeSplitToContent(Ke,"@"))==null?void 0:ca[0])==null?void 0:Se.slice(0,((ta=(ue=ce.analyzeSplitToContent(Ke,"@"))==null?void 0:ue[0])==null?void 0:ta.length)-1)}else n=Ke,u=Ke;let aa=(te=ce.analyzeSplitToContent(a,"="))==null?void 0:te[1];aa=ce.analyzeSplitToContent(aa,")");let Ve=aa==null?void 0:aa.filter(pe=>!(pe!=null&&pe.includes("If")));Ve==null||Ve.forEach(pe=>{(pe==null?void 0:pe[0])==="("&&(pe=pe==null?void 0:pe.slice(1,(pe==null?void 0:pe.length)-1)),o==null||o.push(pe==null?void 0:pe.split("||"))});let ye=aa==null?void 0:aa.filter(pe=>pe==null?void 0:pe.includes("If"));ye=ye==null?void 0:ye.map(pe=>((pe==null?void 0:pe[0])==="|"&&(pe==null?void 0:pe[1])==="|"&&(pe=pe==null?void 0:pe.slice(2,pe==null?void 0:pe.length)),(pe==null?void 0:pe[0])==="("&&(pe=pe==null?void 0:pe.slice(1,(pe==null?void 0:pe.length)-1)),(pe==null?void 0:pe[0])!=="@"&&(pe="@"+pe),pe)),s=ye}else{let Ke=a==null?void 0:a.split("=="),aa=(Ne=Ke==null?void 0:Ke.filter(Ve=>(Ve==null?void 0:Ve.includes("$"))&&(Ve==null?void 0:Ve[0])!=="{"))==null?void 0:Ne[0];if(aa&&!(aa!=null&&aa.includes("&"))){let Ve=(We=aa==null?void 0:aa.replace("*",gl))==null?void 0:We.split(gl),ye=(Ve==null?void 0:Ve[0])===""?l==null?void 0:l.value:Ve==null?void 0:Ve[0];(ye==null?void 0:ye[0])==="("&&(ye=(sa=ce.analyzeSplitToContent(ye,")"))==null?void 0:sa[1]),ye=(R=(Ya=ye==null?void 0:ye.replaceAll("{",""))==null?void 0:Ya.replaceAll("}",""))==null?void 0:R.replaceAll(Hi,""),(ye==null?void 0:ye[0])==="$"&&(ye=(H=ye==null?void 0:ye.slice(1,ye==null?void 0:ye.length))==null?void 0:H.replaceAll(":","/")),h=ye==null?void 0:ye.split("/");let pe=(ve=(X=Ve==null?void 0:Ve[1])==null?void 0:X.replace("{",gl))==null?void 0:ve.split(gl),Sa=pe==null?void 0:pe[0];(Sa==null?void 0:Sa[(Sa==null?void 0:Sa.length)-1])===":"&&(Sa=Sa==null?void 0:Sa.slice(0,(Sa==null?void 0:Sa.length)-1)),c=Sa==null?void 0:Sa.split(":"),d=(Pe=(na=(va=(de=pe==null?void 0:pe[1])==null?void 0:de.replace("}",gl))==null?void 0:va.split(gl))==null?void 0:na[0])==null?void 0:Pe.split(":");let ya="";((xa=ce.analyzeSplitToContent(aa,")"))==null?void 0:xa.length)>1&&(ya=(Me=ce.analyzeSplitToContent(aa,")"))==null?void 0:Me[0]),ya&&ya!==""&&((ya==null?void 0:ya[0])!=="@"&&(ya="@"+ya),M=ni(ya))}if(Ke!=null&&Ke.some(Ve=>(Ve==null?void 0:Ve[0])==="&")){let Ve=(ma=Ke==null?void 0:Ke.filter(Sa=>(Sa==null?void 0:Sa[0])==="&"))==null?void 0:ma[0];(Ve==null?void 0:Ve[0])==="&"&&(Ve=Ve==null?void 0:Ve.slice(1,Ve==null?void 0:Ve.length)),k=(za=(Oa=Ve==null?void 0:Ve.replace("(",gl))==null?void 0:Oa.split(gl))==null?void 0:za[0];let ye=(pa=ce.analyzeSplitToContent(Ve,")"))==null?void 0:pa[0];ye=(Ae=(Ca=ye==null?void 0:ye.replace("(",gl))==null?void 0:Ca.split(gl))==null?void 0:Ae[1],ye=ye==null?void 0:ye.slice(0,(ye==null?void 0:ye.length)-1),(ye==null?void 0:ye[0])==="{"&&(ye=ye==null?void 0:ye.slice(1,ye==null?void 0:ye.length)),(ye==null?void 0:ye[(ye==null?void 0:ye.length)-1])==="}"&&(ye=ye==null?void 0:ye.slice(0,(ye==null?void 0:ye.length)-1)),W=ye==null?void 0:ye.split(",");let pe=(he=ce.analyzeSplitToContent(Ve,")"))==null?void 0:he[1];pe&&pe!==""&&(I=ni(pe))}else if(!aa&&((Y=Ke==null?void 0:Ke.filter(Ve=>(Ve==null?void 0:Ve[0])==="{"))==null?void 0:Y.length)>0){let Ve=Ke==null?void 0:Ke[(Ke==null?void 0:Ke.length)-1];Ve=Ve==null?void 0:Ve.slice(1,(Ve==null?void 0:Ve.length)-1),Ve=ce.analyzeSplitToContent(Ve,","),Ve=Ve==null?void 0:Ve.map(ye=>((ye==null?void 0:ye[(ye==null?void 0:ye.length)-1])===","&&(ye=ye==null?void 0:ye.slice(0,(ye==null?void 0:ye.length)-1)),ye)),Ve=Ve==null?void 0:Ve.map(ye=>{var pe,Sa,ya,vl;if(ye=ye==null?void 0:ye.replaceAll("$",""),ye!=null&&ye.includes("{")){let Nl="";ye=ye==null?void 0:ye.replaceAll("{","");let pl=ye==null?void 0:ye.split("}");Nl=((Sa=(pe=pl==null?void 0:pl[0])==null?void 0:pe.split(":"))==null?void 0:Sa[0])+":"+(pl==null?void 0:pl[1]),ye=Nl,ye=ye+":"}if(ye!=null&&ye.includes(Hi)){let Nl="",pl=ye==null?void 0:ye.split(Hi);Nl=((vl=(ya=pl==null?void 0:pl[0])==null?void 0:ya.split(":"))==null?void 0:vl[0])+":"+(pl==null?void 0:pl[1]),ye=Nl,ye=ye+":"}return ye=ye==null?void 0:ye.replaceAll(":","/"),ye}),m=Ve}else!((xe=Ke==null?void 0:Ke[1])!=null&&xe.includes("$"))&&((me=Ke==null?void 0:Ke[1])==null?void 0:me[0])!=="("&&d.push(Ke==null?void 0:Ke[1])}else n=(qe=a==null?void 0:a.split("&"))==null?void 0:qe[0],u=(da=a==null?void 0:a.split("&"))==null?void 0:da[0];return{label:n,prop:u,options:r,allContents:o,filterContents:s,menus:h,groups:c,words:d,align:"center",formType:b,filter:M,functionName:k,functionRelatedWords:W,calculatorFilter:I,relatedPages:m,value:C}},Co=(a,l)=>{var r,o,s,h,c,d,m,b,u,C,M,k,W,I,j,L,E,x,w,g,S,$,V,ae,Z,ge,ze,F,ne,J;let n=[];if((a==null?void 0:a[0])==="{"&&(a==null?void 0:a[(a==null?void 0:a.length)-1])==="}"&&!((h=(s=(o=(r=a==null?void 0:a.slice(1,(a==null?void 0:a.length)-1))==null?void 0:r.replace(":",gl))==null?void 0:o.split(gl))==null?void 0:s[0])!=null&&h.includes(","))){let se=a==null?void 0:a.slice(1,(a==null?void 0:a.length)-1),Be=(c=se==null?void 0:se.replace(":",gl))==null?void 0:c.split(gl);if(((d=ce.analyzeSplitToContent(Be==null?void 0:Be[1],"="))==null?void 0:d.length)===1){let $e=Be==null?void 0:Be[0],fe=[];(u=ce.analyzeSplitToContent((b=Be==null?void 0:Be[1])==null?void 0:b.slice(1,((m=Be==null?void 0:Be[1])==null?void 0:m.length)-1),","))==null||u.forEach(N=>{var oe,U;((oe=ce.analyzeSplitToContent(N,"="))==null?void 0:oe.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)),fe=[...fe,...Co(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)),fe.push((U=Co(N,l))==null?void 0:U[0]))}),n==null||n.push({label:$e,prop:$e,children:fe,align:"center"})}else{let $e=[];if(((C=ce.analyzeSplitToContent(se,"="))==null?void 0:C.length)>=2){let N=(M=ce.analyzeSplitToContent(se,"="))==null?void 0:M[1],oe=(k=ce.analyzeSplitToContent(N,"/"))==null?void 0:k.map(U=>((U==null?void 0:U[(U==null?void 0:U.length)-1])==="/"&&(U=U==null?void 0:U.slice(0,(U==null?void 0:U.length)-1)),U));$e=oe==null?void 0:oe.map(U=>(U=Di(U),U))}let fe=(x=(E=(L=(j=(I=(W=se==null?void 0:se.replace("{",gl))==null?void 0:W.split(gl))==null?void 0:I[1])==null?void 0:j.replace("}",gl))==null?void 0:L.split(gl))==null?void 0:E[0])==null?void 0:x.split(",");fe==null||fe.forEach((N,oe)=>{($e==null?void 0:$e.length)>0&&oe===0?n==null||n.push({label:N,prop:N,align:"center",formType:"Select",relatedContents:$e==null?void 0:$e.map(U=>{let De={};return fe==null||fe.forEach((Ie,je)=>{De[Ie]=U==null?void 0:U[je]}),De}),options:$e==null?void 0:$e.map(U=>({label:U==null?void 0:U[0],value:U==null?void 0:U[0]})),mainKey:!0}):n==null||n.push({label:N,prop:N,align:"center"})})}}else if((a==null?void 0:a[0])==="{")if(((w=ce.analyzeSplitToContent(a,"="))==null?void 0:w.length)===2&&((S=(g=ce.analyzeSplitToContent(a,"="))==null?void 0:g[1])==null?void 0:S[0])==="["){let se=[];if((($=ce.analyzeSplitToContent(a,"="))==null?void 0:$.length)>=2){let $e=(V=ce.analyzeSplitToContent(a,"="))==null?void 0:V[1],fe=(Z=(ae=ce.analyzeSplitToContent($e,"|"))==null?void 0:ae.filter(N=>N!=="|"))==null?void 0:Z.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));se=fe==null?void 0:fe.map(N=>(N=Di(N),N))}let Be=(ze=(ge=a==null?void 0:a.replace("}",gl))==null?void 0:ge.split(gl))==null?void 0:ze[0];Be=(F=Be==null?void 0:Be.slice(1,Be==null?void 0:Be.length))==null?void 0:F.split(","),Be==null||Be.forEach(($e,fe)=>{(se==null?void 0:se.length)>0&&fe===0?n==null||n.push({label:$e,prop:$e,align:"center",formType:"Select",relatedContents:se==null?void 0:se.map(N=>{let oe={};return Be==null||Be.forEach((U,De)=>{oe[U]=N==null?void 0:N[De]}),oe}),options:se==null?void 0:se.map(N=>({label:N==null?void 0:N[0],value:N==null?void 0:N[0]})),mainKey:!0}):n==null||n.push({label:$e,prop:$e,align:"center"})})}else(ne=ce.analyzeSplitToContent(a,","))==null||ne.forEach(se=>{var Be,$e,fe,N,oe,U,De,Ie,je,la,Ta,ee,ca,ue,ta,Se,te,Ne,We,sa,Ya,R,H,X,ve,de,va,na,Pe,xa,Me,ma,Oa,za,pa,Ca,Ae;if((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==null?void 0:se[0])==="{"){let he=ce.analyzeSplitToContent(se,"="),Y=he==null?void 0:he[(he==null?void 0:he.length)-1],xe=[],me=[],qe=[],da="",Ke="",aa=[],Ve=[],ye=(Be=Y==null?void 0:Y.replace("*",gl))==null?void 0:Be.split(gl),pe=(ye==null?void 0:ye[0])===""?l==null?void 0:l.value:ye==null?void 0:ye[0];pe=ce.analyzeSplitToContent(pe,")");let Sa="";if((pe==null?void 0:pe.length)>1&&(($e=pe==null?void 0:pe[0])==null?void 0:$e[0])!=="&"&&(Sa=pe==null?void 0:pe[0],(Sa==null?void 0:Sa[0])!=="@"&&(Sa="@"+Sa),Ke=Sa??""),pe=(fe=pe==null?void 0:pe.filter(pl=>(pl==null?void 0:pl[0])==="$"))==null?void 0:fe[0],((N=ce.analyzeSplitToContent(pe,"}"))==null?void 0:N.length)>1&&((U=(oe=ce.analyzeSplitToContent(pe,"}"))==null?void 0:oe[1])==null?void 0:U[0])==="("&&(Sa=(De=ce.analyzeSplitToContent(pe,"}"))==null?void 0:De[1],(Sa==null?void 0:Sa[0])!=="@"&&(Sa="@"+Sa),Ke!==""&&(Ke=Ke+","),Ke=Ke+Sa),(Ie=pe==null?void 0:pe.slice(1,(pe==null?void 0:pe.length)-1))!=null&&Ie.includes("$")||(pe=(je=ce.analyzeSplitToContent(pe,"}"))==null?void 0:je[0]),(pe==null?void 0:pe[0])==="$"&&(pe=(la=pe==null?void 0:pe.replace("{",""))==null?void 0:la.replace("}",":"),pe=(Ta=pe==null?void 0:pe.slice(1,pe==null?void 0:pe.length))==null?void 0:Ta.replaceAll(":","/")),pe!=null&&pe.includes("$")){let pl=(ee=pe==null?void 0:pe.split("$"))==null?void 0:ee[0];pl=(ca=pl==null?void 0:pl.split("/"))==null?void 0:ca[0],pe=pl+"/"+((ue=pe==null?void 0:pe.split("$"))==null?void 0:ue[1])+"/"}xe=(pe==null?void 0:pe.split("/"))??[];let ya=(Se=(ta=ye==null?void 0:ye[1])==null?void 0:ta.replace("{",gl))==null?void 0:Se.split(gl);if((We=(Ne=(te=ye==null?void 0:ye[1])==null?void 0:te.split("(@"))==null?void 0:Ne[0])!=null&&We.includes("&&")||(R=(Ya=(sa=ye==null?void 0:ye[1])==null?void 0:sa.split("@"))==null?void 0:Ya[0])!=null&&R.includes("&&")){let pl=(H=ye==null?void 0:ye[1])!=null&&H.includes("(@")?(de=(ve=(X=ye==null?void 0:ye[1])==null?void 0:X.split("(@"))==null?void 0:ve[0])==null?void 0:de.split("&&"):(Pe=(na=(va=ye==null?void 0:ye[1])==null?void 0:va.split("@"))==null?void 0:na[0])==null?void 0:Pe.split("&&");aa=pl==null?void 0:pl.map(ja=>{var jl,Rl;return(ja==null?void 0:ja[0])==="*"&&(ja=ja==null?void 0:ja.slice(1,ja==null?void 0:ja.length)),ja=(Rl=(jl=ja==null?void 0:ja.replace("{",gl))==null?void 0:jl.split(gl))==null?void 0:Rl[0],(ja==null?void 0:ja[(ja==null?void 0:ja.length)-1])===":"&&(ja=ja==null?void 0:ja.slice(0,(ja==null?void 0:ja.length)-1)),ja=ja==null?void 0:ja.split(":"),ja});let Fl=[];pl==null||pl.forEach((ja,jl)=>{var Rl,Da;(ja==null?void 0:ja[0])==="*"&&(ja=ja==null?void 0:ja.slice(1,ja==null?void 0:ja.length)),ja=(Da=(Rl=ja==null?void 0:ja.replace("{",gl))==null?void 0:Rl.split(gl))==null?void 0:Da[1],(ja==null?void 0:ja[(ja==null?void 0:ja.length)-1])==="}"&&(ja=ja==null?void 0:ja.slice(0,(ja==null?void 0:ja.length)-1)),ja=ja==null?void 0:ja.split(","),Fl.push(jl===0?(ja==null?void 0:ja.length)-1:ja==null?void 0:ja.length),Ve=[...Ve,...ja]}),Fl=(xa=ce.prefixSum(Fl))==null?void 0:xa.map(ja=>ja==null?void 0:ja.total),aa=aa==null?void 0:aa.map((ja,jl)=>({number:Fl==null?void 0:Fl[jl],contents:ja}))}let vl=ya==null?void 0:ya[0];(vl==null?void 0:vl[(vl==null?void 0:vl.length)-1])===":"&&(vl=vl==null?void 0:vl.slice(0,(vl==null?void 0:vl.length)-1)),me=(vl==null?void 0:vl.split(":"))??[],qe=((za=(Oa=(ma=(Me=ya==null?void 0:ya[1])==null?void 0:Me.replace("}",gl))==null?void 0:ma.split(gl))==null?void 0:Oa[0])==null?void 0:za.split(","))??[];let Nl=(Ca=he==null?void 0:he[0])==null?void 0:Ca.slice(1,((pa=he==null?void 0:he[0])==null?void 0:pa.length)-2);Ke&&Ke!==""&&(da=ni(Ke)),(Ae=Nl==null?void 0:Nl.split(","))==null||Ae.forEach((pl,Fl)=>{var ja,jl,Rl,Da,al;((ja=ce.analyzeSplitToContent(pl,"@"))==null?void 0:ja.length)>1&&(pl=(jl=ce.analyzeSplitToContent(pl,"@"))==null?void 0:jl[0],(pl==null?void 0:pl[(pl==null?void 0:pl.length)-1])==="@"&&(pl=pl==null?void 0:pl.slice(0,(pl==null?void 0:pl.length)-1))),n.push({label:pl,prop:pl,align:"center",menus:xe,groups:(aa==null?void 0:aa.length)===0?me:(Rl=aa==null?void 0:aa.find(dl=>(dl==null?void 0:dl.number)>=Fl))==null?void 0:Rl.contents,words:(Ve==null?void 0:Ve.length)===0?(Da=qe==null?void 0:qe[Fl])==null?void 0:Da.split(":"):(al=Ve==null?void 0:Ve[Fl])==null?void 0:al.split(":"),formType:(xe==null?void 0:xe.length)>0?"Select":"Input",mainKey:Fl===0,filter:da,isMainPath:(aa==null?void 0:aa.findIndex(dl=>(dl==null?void 0:dl.number)>=Fl))===0})})}else n.push({label:se,prop:se,align:"center"})});else{let se=(J=ce.analyzeSplitToContent(a,","))==null?void 0:J.map(Be=>((Be==null?void 0:Be[(Be==null?void 0:Be.length)-1])===","&&(Be=Be==null?void 0:Be.slice(0,(Be==null?void 0:Be.length)-1)),Be));se==null||se.forEach(Be=>{n.push(ht(Be,l))})}return n},Zd=(a,l)=>{var h,c,d,m,b;let n=a;if(!a)return;let r="";((h=ce.analyzeSplitToContent(a,"}"))==null?void 0:h.length)>1&&(n=(c=ce.analyzeSplitToContent(a,"}"))==null?void 0:c[0],r=(d=ce.analyzeSplitToContent(a,"}"))==null?void 0:d[1]),(a==null?void 0:a[0])==="{"&&(a==null?void 0:a[(a==null?void 0:a.length)-1])==="}"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1));let o=[],s=[];return o.push({label:"排序",prop:"sort"}),o.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(m=ce.analyzeSplitToContent(n,","))==null||m.forEach(u=>{var C;(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])==="{"?(C=Co(u,l))==null||C.forEach(M=>{o.push(M)}):o.push(ht(u,l))}),o!=null&&o.some(u=>{var C;return(C=u==null?void 0:u.prop)==null?void 0:C.includes("@")})&&(o=o==null?void 0:o.filter(u=>{var C;return!((C=u==null?void 0:u.prop)!=null&&C.includes("@"))})),r!==""&&((r==null?void 0:r[0])=="{"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),(b=ce.analyzeSplitToContent(r,","))==null||b.forEach(u=>{var C;(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])==="{"?(C=Co(u,l))==null||C.forEach(M=>{s.push(M)}):s.push(ht(u,l))})),{columns:o,secondColumns:s}},pn=a=>{var l,n,r,o,s;if(a!=null&&a.includes("@Filter")||a!=null&&a.includes("@Condition")||a!=null&&a.includes("@If"))return a;{let h=(n=(l=a==null?void 0:a.replace("(",gl))==null?void 0:l.split(gl))==null?void 0:n[1],c=(o=(r=a==null?void 0:a.replace("(",gl))==null?void 0:r.split(gl))==null?void 0:o[0];return h=h==null?void 0:h.slice(0,(h==null?void 0:h.length)-1),h=(s=ce.analyzeSplitToContent(h,","))==null?void 0:s.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?void 0:d[0])==="("&&(d=d==null?void 0:d.slice(1,(d==null?void 0:d.length)-1)),c+d)),h=h==null?void 0:h.join(","),a!=null&&a.includes("@Quote")&&(h!=null&&h.includes("@QuoteType")||(h=h===""?h+"@QuoteType=Manual":h+",@QuoteType=Manual"),h!=null&&h.includes("@QuoteSonSync")||(h=h===""?h+"@QuoteSonSync=No":h+",@QuoteSonSync=No"),h!=null&&h.includes("@QuoteFatherSync")||(h=h===""?h+"@QuoteFatherSync=Yes":h+",@QuoteFatherSync=Yes")),h}},is=a=>{let l=a==null?void 0:a.map(n=>{var r,o;return{menus:n==null?void 0:n.menus,content:((r=n==null?void 0:n.menus)==null?void 0:r.join("/"))+gl+((o=n==null?void 0:n.groups)==null?void 0:o.join("/"))}});return l=l==null?void 0:l.filter(n=>{var r;return(n==null?void 0:n.menus)&&((r=n==null?void 0:n.menus)==null?void 0:r.length)>0}),l=l==null?void 0:l.map(n=>n==null?void 0:n.content),l=[...new Set(l)],l=l==null?void 0:l.map(n=>{var r,o;return{menus:(r=n==null?void 0:n.split(gl))==null?void 0:r[0],groups:((o=n==null?void 0:n.split(gl))==null?void 0:o[1])??[]}}),l},os=a=>{var n;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=(n=ce.analyzeSplitToContent(l,","))==null?void 0:n.map(r=>((r==null?void 0:r[(r==null?void 0:r.length)-1])===","&&(r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1)),(r==null?void 0:r[0])!=="@"&&(r="@"+r),(r==null?void 0:r[1])==="("&&(r=pn(r)),r)),l==null?void 0:l.join(",")},lc=(a,l,n="")=>{var L,E,x,w,g,S,$,V,ae,Z,ge,ze,F,ne,J,se,Be,$e,fe,N,oe,U,De,Ie,je,la,Ta,ee,ca,ue,ta,Se,te,Ne,We,sa,Ya,R,H,X,ve,de,va,na,Pe,xa,Me,ma,Oa,za,pa,Ca,Ae;let r=[],o=[],s=[],h="",c="",d="",m=[],b=[],u=[],C="";if(((L=a==null?void 0:a[0])==null?void 0:L[0])!=="*"&&((E=a==null?void 0:a[0])==null?void 0:E[0])!=="$"&&!((x=a==null?void 0:a[0])!=null&&x.includes("$")))return;((w=a==null?void 0:a[0])==null?void 0:w[0])!=="*"&&((g=a==null?void 0:a[0])==null?void 0:g[0])!=="$"&&(h=(S=ce.analyzeSplitToContent(a==null?void 0:a[0],")"))==null?void 0:S[0],(h==null?void 0:h[0])!=="@"&&(h="@"+h),h=ni(h),d=($=ce.analyzeSplitToContent(a==null?void 0:a[0],")"))==null?void 0:$[1],(d==null?void 0:d[0])==="$"&&(d=d==null?void 0:d.slice(1,d==null?void 0:d.length)),d=d==null?void 0:d.replaceAll(":","/"));let k=ce.analyzeSplitToContent(a==null?void 0:a[0],":");if(r=(V=k==null?void 0:k.filter(he=>(he==null?void 0:he[0])!=="{"&&(he==null?void 0:he[0])!=="["))==null?void 0:V.join(""),c=(ae=a==null?void 0:a[0])==null?void 0:ae.replace(r,""),(r==null?void 0:r[0])==="("&&(r=""),C=(Z=k==null?void 0:k.filter(he=>(he==null?void 0:he[0])!=="["))==null?void 0:Z.join(""),C=(ge=a==null?void 0:a[0])==null?void 0:ge.replace(C,""),c=c==null?void 0:c.replace(C,""),(r==null?void 0:r[0])==="*"&&(r=r==null?void 0:r.slice(1,r==null?void 0:r.length)),(r==null?void 0:r[(r==null?void 0:r.length)-1])===":"&&(r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1)),((ze=ce.analyzeSplitToContent(c,"@"))==null?void 0:ze.length)>1&&(h=(F=ce.analyzeSplitToContent(c,"@"))==null?void 0:F[1],(h==null?void 0:h[(h==null?void 0:h.length)-1])===":"&&(h=h==null?void 0:h.slice(0,(h==null?void 0:h.length)-1)),h="@"+h,h=pn(h),c=(ne=ce.analyzeSplitToContent(c,"@"))==null?void 0:ne[0],c=c==null?void 0:c.slice(0,(c==null?void 0:c.length)-1)),((J=ce.analyzeSplitToContent(r,"@"))==null?void 0:J.length)>1){h!==""&&(h=h+",");let he=(se=ce.analyzeSplitToContent(r,"@"))==null?void 0:se[1];he="@"+he,he=pn(he),h=h+he,r=(Be=ce.analyzeSplitToContent(r,"@"))==null?void 0:Be[0]}if((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=r===""?[]:r==null?void 0:r.split(":"),(c==null?void 0:c[(c==null?void 0:c.length)-1])===":"&&(c=c==null?void 0:c.slice(0,(c==null?void 0:c.length)-1)),n!==""){let he=($e=ce.analyzeSplitToContent(n,")"))==null?void 0:$e[0],Y=(fe=ce.analyzeSplitToContent(n,"@"))==null?void 0:fe[1];d=(oe=(N=ce.analyzeSplitToContent(n,"@"))==null?void 0:N[0])==null?void 0:oe.replace(he,""),(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)),he=os(he),Y=os(Y);let xe=he??"";if(xe!==""&&(xe=xe+","),xe=xe+Y,(xe==null?void 0:xe[(xe==null?void 0:xe.length)-1])===","&&(xe=xe==null?void 0:xe.slice(0,(xe==null?void 0:xe.length)-1)),xe!==""&&h!==""&&(h=h+","),h=h+xe,(d==null?void 0:d[0])==="$"&&(d=d==null?void 0:d.slice(1,d==null?void 0:d.length)),d=(U=ce.analyzeSplitToContent(d,":"))==null?void 0:U.filter((me,qe)=>{var da;return!((me==null?void 0:me[0])==="{"&&qe===((da=ce.analyzeSplitToContent(d,":"))==null?void 0:da.length)-1)}),d=d==null?void 0:d.join(""),(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)),h!=null&&h.includes("@Sync")||(h=h===""?h+"@Sync=(Yes,Yes)":h+",@Sync=(Yes,Yes)"),d!=null&&d.includes("$")){let me=(Ie=(De=d==null?void 0:d.replace("*",gl))==null?void 0:De.split(gl))==null?void 0:Ie[1],qe=(la=(je=d==null?void 0:d.replace("*",gl))==null?void 0:je.split(gl))==null?void 0:la[0];qe=qe==null?void 0:qe.split("$"),qe=((ee=(Ta=qe==null?void 0:qe[0])==null?void 0:Ta.split(":"))==null?void 0:ee[0])+":"+(qe==null?void 0:qe[1])+":",d=qe+"*"+me}else d=(ca=d==null?void 0:d.replaceAll("{",""))==null?void 0:ca.replaceAll("}","")}h!==""&&h&&(h="("+h+")"),h=d+h,((ue=ce.analyzeSplitToContent(c,"}"))==null?void 0:ue.length)>1&&(c=(ta=ce.analyzeSplitToContent(c,"}"))==null?void 0:ta.filter(he=>(he==null?void 0:he[0])!=="@"),c=c==null?void 0:c.join(""));let W=Zd(c,l);s=c===""?[]:(W==null?void 0:W.columns)??[],u=ce.getColumnChild(s);let I=ce.getColumnChild(s);s!=null&&s.some(he=>{var Y;return Array.isArray(he==null?void 0:he.children)&&((Y=he==null?void 0:he.children)==null?void 0:Y.length)>0})&&(s=[s]),o=C?Di(C):[],!(o!=null&&o.every(he=>Array.isArray(he)))&&(o==null?void 0:o.length)>0&&(o=[o]),(o==null?void 0:o.length)>0&&(Array.isArray(o==null?void 0:o[0])&&((Se=o==null?void 0:o[0])!=null&&Se.every(he=>Array.isArray(he)))?o=o==null?void 0:o.map((he,Y)=>(he=he.map((xe,me)=>(xe.unshift("{}"),xe.unshift((me+1).toString()),xe)),he)):o=o==null?void 0:o.map((he,Y)=>(he.unshift("{}"),he.unshift((Y+1).toString()),he))),W!=null&&W.secondColumns&&((te=W==null?void 0:W.secondColumns)==null?void 0:te.length)>0&&((o==null?void 0:o.length)>0?o=o==null?void 0:o.map((he,Y)=>{var xe,me;return Array.isArray(he==null?void 0:he[0])?he=he==null?void 0:he.map((qe,da)=>{var Ke,aa;return qe.unshift((aa=(Ke=W==null?void 0:W.secondColumns)==null?void 0:Ke[da])==null?void 0:aa.prop),qe}):he.unshift((me=(xe=W==null?void 0:W.secondColumns)==null?void 0:xe[Y])==null?void 0:me.prop),he}):o=(Ne=W==null?void 0:W.secondColumns)==null?void 0:Ne.map((he,Y)=>(he=[he==null?void 0:he.label],he.push(Y),he)),s.unshift({label:"",prop:"disabled",sortable:!1})),u=u==null?void 0:u.map(he=>{var Y,xe;return{menus:he==null?void 0:he.menus,content:((Y=he==null?void 0:he.menus)==null?void 0:Y.join("/"))+gl+((xe=he==null?void 0:he.groups)==null?void 0:xe.join("/"))}});let j=[];if(((sa=(We=h==null?void 0:h.replace("(",gl))==null?void 0:We.split(gl))==null?void 0:sa[0])!==""&&(j=(R=(Ya=h==null?void 0:h.replace("(",gl))==null?void 0:Ya.split(gl))==null?void 0:R[0],j=[j],j=j==null?void 0:j.map(he=>{var xe,me,qe;let Y=he==null?void 0:he.split("*");return{menus:(xe=Y==null?void 0:Y[0])==null?void 0:xe.split(":"),content:((me=Y==null?void 0:Y[0])==null?void 0:me.replaceAll(":","/"))+gl+((qe=Y==null?void 0:Y[1])==null?void 0:qe.replaceAll(":","/"))}}),u=[...u,...j]),u=u==null?void 0:u.filter(he=>{var Y;return(he==null?void 0:he.menus)&&((Y=he==null?void 0:he.menus)==null?void 0:Y.length)>0}),u=u==null?void 0:u.map(he=>he==null?void 0:he.content),u=[...new Set(u)],u=u==null?void 0:u.map(he=>{var Y,xe;return{menus:(Y=he==null?void 0:he.split(gl))==null?void 0:Y[0],groups:((xe=he==null?void 0:he.split(gl))==null?void 0:xe[1])??[]}}),m=I==null?void 0:I.filter(he=>{var Y;return(he==null?void 0:he.filter)&&((Y=he==null?void 0:he.filter)==null?void 0:Y.includes("@Sync"))}),(m==null?void 0:m.length)>0&&(m=m==null?void 0:m.filter(he=>{var Y,xe,me,qe;return(qe=(me=(xe=(Y=ce.analyzeSplitToContent(he==null?void 0:he.filter,","))==null?void 0:Y.find(da=>da==null?void 0:da.includes("@Sync")))==null?void 0:xe.split(","))==null?void 0:me[0])==null?void 0:qe.includes("Yes")}),m=is(m)),b=I==null?void 0:I.filter(he=>{var Y;return(he==null?void 0:he.filter)&&((Y=he==null?void 0:he.filter)==null?void 0:Y.includes("@Sync"))}),(b==null?void 0:b.length)>0&&(b=b==null?void 0:b.filter(he=>{var Y,xe,me,qe;return(qe=(me=(xe=(Y=ce.analyzeSplitToContent(he==null?void 0:he.filter,","))==null?void 0:Y.find(da=>da==null?void 0:da.includes("@Sync")))==null?void 0:xe.split(","))==null?void 0:me[1])==null?void 0:qe.includes("Yes")}),b=is(b)),h!==""&&(h!=null&&h.includes("@Sync"))&&(h==null?void 0:h[0])!=="("){let he=(H=h==null?void 0:h.replace("(",gl))==null?void 0:H.split(gl),Y=he==null?void 0:he[1];if(Y=Y==null?void 0:Y.slice(0,(Y==null?void 0:Y.length)-1),Y=ce.analyzeSplitToContent(Y,","),(de=(ve=(X=Y==null?void 0:Y.find(xe=>xe==null?void 0:xe.includes("@Sync")))==null?void 0:X.split(","))==null?void 0:ve[0])!=null&&de.includes("Yes")){let xe=he==null?void 0:he[0];xe=[{menus:(na=(va=xe==null?void 0:xe.split("*"))==null?void 0:va[0])==null?void 0:na.replaceAll(":","/"),groups:((xa=(Pe=xe==null?void 0:xe.split("*"))==null?void 0:Pe[1])==null?void 0:xa.split(":"))??[]}],m=[...m,...xe]}if((Oa=(ma=(Me=Y==null?void 0:Y.find(xe=>xe==null?void 0:xe.includes("@Sync")))==null?void 0:Me.split(","))==null?void 0:ma[1])!=null&&Oa.includes("Yes")){let xe=he==null?void 0:he[0];xe=[{menus:(pa=(za=xe==null?void 0:xe.split("*"))==null?void 0:za[0])==null?void 0:pa.replaceAll(":","/"),groups:((Ae=(Ca=xe==null?void 0:xe.split("*"))==null?void 0:Ca[1])==null?void 0:Ae.split(":"))??[]}],b=[...b,...xe]}}return{groupName:r,tableColumns:s,tableFilter:h,tableContents:o,columns:(W==null?void 0:W.secondColumns)??[],relatedQuotes:u,fatherSyncContents:m,sonSyncContents:b}},rc=(a,l)=>(a=a==null?void 0:a.map((n,r)=>{var o,s,h,c;if(Array.isArray(n))n=n==null?void 0:n.map(d=>{var m,b,u,C;return d!=null&&d.isMainPath||(((m=d==null?void 0:d.children)==null?void 0:m.length)>0?d.children=rc(d.children,l):((b=d==null?void 0:d.menus)==null?void 0:b.length)>0&&!((u=n==null?void 0:n[0])!=null&&u.isMainPath)&&(d.menus=(C=d.menus)==null?void 0:C.map((M,k)=>{var W,I;return((W=d.menus)==null?void 0:W.length)-1===k&&M===""&&(l==null?void 0:l.parentContent)+"/"!==((I=d.menus)==null?void 0:I.join("/"))&&(M=l==null?void 0:l.value),d}),d.bindMenus=d.menus)),d});else{if(r===0&&((o=n.menus)==null?void 0:o.length)>0&&(n.mainKey=!0),n!=null&&n.isMainPath)return n;((s=n.menus)==null?void 0:s.length)>0&&!((h=a==null?void 0:a[0])!=null&&h.isMainPath)&&(n.menus=(c=n.menus)==null?void 0:c.map((d,m)=>{var b,u;return((b=n.menus)==null?void 0:b.length)-1===m&&d===""&&(l==null?void 0:l.parentContent)+"/"!==((u=n.menus)==null?void 0:u.join("/"))&&(d=l==null?void 0:l.value),d}),n.bindMenus=n.menus)}return n}),a),Qd=(a,l)=>(a=a==null?void 0:a.map(n=>((n==null?void 0:n.key)==="header"&&(n.contents=rc(n.contents,l)),n)),a),vt=(a,l)=>{let n=a;return Array.isArray(n==null?void 0:n[0])?n=n==null?void 0:n.map(r=>(r=vt(r,l),r)):n=n==null?void 0:n.map(r=>{var o,s;return r!=null&&r.children&&((o=r==null?void 0:r.children)==null?void 0:o.length)>0?r.children=vt(r==null?void 0:r.children,l):r!=null&&r.words&&((s=r==null?void 0:r.words)==null?void 0:s.length)>0&&(l!=null&&l.find(h=>{var c,d,m,b;return((b=(c=r==null?void 0:r.prop)==null?void 0:c.split("."))==null?void 0:b[((m=(d=r==null?void 0:r.prop)==null?void 0:d.split("."))==null?void 0:m.length)-1])===h}))&&(r.mainKey=!0),r}),n};let wr="$R";const ep=A.useUnit(A.pinia),{selectTitle:nn}=A.storeToRefs(ep),ap=A.useMenuState(A.pinia),{localFiles:lp}=A.storeToRefs(ap),xn=[{key:"@MaxRow",value:"onNumSlice",order:1},{key:"@MaxColumn",value:"onMaxColumn",order:1},{key:"@EditRead",value:"onEditRead",order:1},{key:"@Type",value:"onRandomContents",order:2},{key:"@SubType",value:"onInterfaceTypeContents",order:2},{key:"@If",value:"onConditionContents",order:4},{key:"@QuoteFatherSync",value:"onFatherPaceContents",order:1},{key:"@QuoteSonSync",value:"onPaceContents",order:1},{key:"@MainPam",value:"onMainTagContents",order:3},{key:"@Button",value:"onButtonContents",order:1},{key:"@Related",value:"onRelated",order:1},{key:"@RowNum",value:"onRowNum",order:1},{key:"@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:"@Position",value:"onPosition",order:4},{key:"@Size",value:"onSize",order:4},{key:"@ShowType",value:"onShowType",order:1},{key:"@StepName",value:"onStepName",order:1},{key:"@Step",value:"onStep",order:1},{key:"@BackGround",value:"onBackGround",order:1}];var ri=(a=>(a[a.ORDINARY=1]="ORDINARY",a[a.BLOCK=2]="BLOCK",a[a.TEXT=3]="TEXT",a))(ri||{});const rp=a=>{var l,n,r,o,s;if((a==null?void 0:a.filter)!==void 0&&(a==null?void 0:a.filter)!==null&&(a==null?void 0:a.filter)!==""){let h=a==null?void 0:a.contents,c=a==null?void 0:a.filter;(c==null?void 0:c[0])==="("&&(c=c==null?void 0:c.slice(1,(c==null?void 0:c.length)-1)),c=(l=ce.analyzeSplitToContent(c,","))==null?void 0:l.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)),c=c==null?void 0:c[1],(c==null?void 0:c[0])==="("&&(c=c==null?void 0:c.slice(1,(c==null?void 0:c.length)-1)),c=(n=ce.analyzeSplitToContent(c,","))==null?void 0:n.map(m=>((m==null?void 0:m[(m==null?void 0:m.length)-1])===","&&(m=m==null?void 0:m.slice(0,(m==null?void 0:m.length)-1)),m));let d=(s=(o=(r=lp.value)==null?void 0:r.filter(m=>{var b;return(m==null?void 0:m.path)===((b=a==null?void 0:a.groupName)==null?void 0:b[0])}))==null?void 0:o[0])==null?void 0:s.children;return d=(d==null?void 0:d.filter(m=>c==null?void 0:c.find(b=>b===(m==null?void 0:m.name))))??[],h.push({key:"backGround",contents:d}),h}return a==null?void 0:a.contents},np=a=>{const l=ic(a==null?void 0:a.filter);return l?oc(a==null?void 0:a.contents,{position:l}):a==null?void 0:a.contents},ip=a=>{const l=ic(a==null?void 0:a.filter);return l?oc(a==null?void 0:a.contents,{size:l}):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;const n=Number(a==null?void 0:a.filter);return l.push({key:"textSize",contents:Number.isNaN(n)?a==null?void 0:a.filter:n}),l}return a==null?void 0:a.contents},tp=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},sp=a=>{var n;return(a==null?void 0:a.filter.toUpperCase())==="ALL"||(a==null?void 0:a.filter.toUpperCase())==="NONE"?a==null?void 0:a.contents:(n=a==null?void 0:a.contents)==null?void 0:n.map(r=>{var o;return(r==null?void 0:r.key)==="tableContents"&&(r.contents=(o=r.contents)==null?void 0:o.slice(0,parseInt(a==null?void 0:a.filter))),r})},cp=async a=>{var l,n,r,o,s,h,c,d,m,b,u,C,M,k,W,I,j,L,E,x,w,g,S,$,V,ae,Z,ge,ze,F;if((a==null?void 0:a.filter)==="Random")return(l=a==null?void 0:a.contents)==null?void 0:l.map(J=>((J==null?void 0:J.key)==="tableContents"&&(J.contents=ce.shuffle(J.contents)),J));if((a==null?void 0:a.filter)==="Auto"){let ne=(r=(n=a==null?void 0:a.contents)==null?void 0:n.find(De=>(De==null?void 0:De.key)==="header"))==null?void 0:r.contents;Array.isArray(ne==null?void 0:ne[0])&&(ne=ne==null?void 0:ne[0]),ne=ce.getColumnChild(ne);let J=ne==null?void 0:ne.filter(De=>(De==null?void 0:De.filter)&&(De==null?void 0:De.filter)!==""),se=new Map,Be=[];J==null||J.forEach(De=>{var Ie,je;se.get((Ie=De==null?void 0:De.menus)==null?void 0:Ie.join("/"))||(se.set((je=De==null?void 0:De.menus)==null?void 0:je.join("/"),De),Be.push(De))});let $e=(s=(o=nn==null?void 0:nn.value)==null?void 0:o.find(De=>(De==null?void 0:De.condition)==="child"))==null?void 0:s.value,fe=Be==null?void 0:Be.map(De=>{var Ie,je,la;return De=(Ie=De==null?void 0:De.menus)==null?void 0:Ie.join("/"),(De==null?void 0:De[(De==null?void 0:De.length)-1])==="/"&&((la=(je=nn==null?void 0:nn.value)==null?void 0:je.find(Ta=>(Ta==null?void 0:Ta.condition)==="child"))==null?void 0:la.parentContent)+"/"!==De?De=De+$e:(De==null?void 0:De[(De==null?void 0:De.length)-1])==="/"&&(De=De==null?void 0:De.slice(0,(De==null?void 0:De.length)-1)),De}),N=Be==null?void 0:Be.map(De=>De==null?void 0:De.groups),oe=fe==null?void 0:fe.map(async De=>{let Ie=await Gr(De,!1);return{path:De,contents:Ie}});oe=await Promise.all(oe);let U=oe==null?void 0:oe.map((De,Ie)=>{var la,Ta,ee,ca,ue,ta,Se;let je=(la=De==null?void 0:De.contents)==null?void 0:la.filter(te=>{var Ne,We;return(te==null?void 0:te.name)===((We=N==null?void 0:N[Ie])==null?void 0:We[((Ne=N==null?void 0:N[Ie])==null?void 0:Ne.length)-1])});return je=(ca=(ee=(Ta=je==null?void 0:je[0])==null?void 0:Ta.compData)==null?void 0:ee.find(te=>(te==null?void 0:te.key)==="tableContents"))==null?void 0:ca.contents,(De==null?void 0:De.path)===((ta=(ue=nn==null?void 0:nn.value)==null?void 0:ue.find(te=>(te==null?void 0:te.condition)==="child"))==null?void 0:ta.parentContent)&&(je=((Se=je==null?void 0:je.map(te=>{for(let Ne in te)if(te[Ne]===$e)return te}))==null?void 0:Se.filter(te=>te))??[]),je??[]});if(U=U==null?void 0:U.map(De=>(De=De==null?void 0:De.map(Ie=>{var la;let je={};for(let Ta in Ie)if(J!=null&&J.find(ee=>{var ca,ue;return((ue=(ca=ee==null?void 0:ee.words)==null?void 0:ca[0])==null?void 0:ue.replaceAll("'",""))===Ta})){let ee=(la=J==null?void 0:J.find(ca=>{var ue,ta;return((ta=(ue=ca==null?void 0:ca.words)==null?void 0:ue[0])==null?void 0:ta.replaceAll("'",""))===Ta}))==null?void 0:la.prop;je[ee]=Ie==null?void 0:Ie[Ta]}return je}),De)),U=ce.cartesianProduct(U),Array.isArray(U==null?void 0:U[0])&&(U=U==null?void 0:U[0]),(U==null?void 0:U.length)>0&&((u=(c=(h=J==null?void 0:J[0])==null?void 0:h.menus)==null?void 0:c.join("/"))==null?void 0:u[((b=(m=(d=J==null?void 0:J[0])==null?void 0:d.menus)==null?void 0:m.join("/"))==null?void 0:b.length)-1])==="/")return(C=a==null?void 0:a.contents)==null?void 0:C.map(Ie=>{var je;return(Ie==null?void 0:Ie.key)==="tableContents"&&(U==null?void 0:U.length)>0&&(Ie.contents=((je=Ie.contents)==null?void 0:je.length)>0?Ie.contents:U),Ie})}if((a==null?void 0:a.filter)==="Manual"){let ne=[],J=[],se=(k=(M=a==null?void 0:a.contents)==null?void 0:M.find(N=>(N==null?void 0:N.key)==="filter"))==null?void 0:k.contents;(se==null?void 0:se[(se==null?void 0:se.length)-1])===")"?se=(I=(W=se==null?void 0:se.replace("(",wr))==null?void 0:W.split(wr))==null?void 0:I[0]:se="",se!==""&&(ne=((L=(j=se==null?void 0:se.split("*"))==null?void 0:j[0])==null?void 0:L.split(":"))??[],J=((S=(g=(w=(x=(E=se==null?void 0:se.split("*"))==null?void 0:E[1])==null?void 0:x.replace("{",wr))==null?void 0:w.split(wr))==null?void 0:g[0])==null?void 0:S.split(":"))??[]);let Be=(V=($=a==null?void 0:a.contents)==null?void 0:$.find(N=>(N==null?void 0:N.key)==="filter"))==null?void 0:V.contents;Be=(Z=(ae=Be==null?void 0:Be.replace("(",wr))==null?void 0:ae.split(wr))==null?void 0:Z[1],Be=Be==null?void 0:Be.slice(0,(Be==null?void 0:Be.length)-1);let $e=(ge=a==null?void 0:a.contents)==null?void 0:ge.map(N=>{var oe,U,De,Ie,je,la,Ta,ee,ca;return(N==null?void 0:N.key)==="header"&&((oe=N==null?void 0:N.contents)!=null&&oe.every(ue=>(ue==null?void 0:ue.mainKey)!==!0)&&Array.isArray(N==null?void 0:N.contents)&&!Array.isArray((U=N==null?void 0:N.contents)==null?void 0:U[0])?N.contents=(De=N==null?void 0:N.contents)==null?void 0:De.map((ue,ta)=>{var Se,te,Ne;return ue!=null&&ue.isMainPath||(ta===0?(ue.mainKey=!0,ue.formType="Select",ue.bindMenus=ne,ue.groups=((Se=ue.groups)==null?void 0:Se.length)===0?J:ue.groups,ue.words=((te=ue.words)==null?void 0:te.length)===0?[ue==null?void 0:ue.prop]:ue.words,ue.filter=Be,(!(ue!=null&&ue.menus)||((Ne=ue==null?void 0:ue.menus)==null?void 0:Ne.length)===0)&&(ue.menus=ne)):(ue.mainKey=!1,ue.bindMenus=ne)),ue}):Array.isArray((Ie=N==null?void 0:N.contents)==null?void 0:Ie[0])&&((Ta=(la=(je=N==null?void 0:N.contents)==null?void 0:je[0])==null?void 0:la.filter(()=>(ne==null?void 0:ne.length)>0))==null?void 0:Ta.length)>0&&(N.contents[0]=(ca=(ee=N==null?void 0:N.contents)==null?void 0:ee[0])==null?void 0:ca.map((ue,ta)=>{var Se,te,Ne;return ue!=null&&ue.isMainPath||(ta===0?(ue.mainKey=!0,ue.formType="Select",ue.bindMenus=ne,ue.groups=((Se=ue.groups)==null?void 0:Se.length)===0?J:ue.groups,ue.words=((te=ue.words)==null?void 0:te.length)===0?[ue==null?void 0:ue.prop]:ue.words,ue.filter=Be,(!(ue!=null&&ue.menus)||Array.isArray(ue==null?void 0:ue.menus)&&((Ne=ue==null?void 0:ue.menus)==null?void 0:Ne.length)===0)&&(ne==null?void 0:ne.length)>0&&(ue.menus=ne)):(ue.mainKey=!1,ue.bindMenus=ne)),ue}))),N}),fe=(ze=$e==null?void 0:$e.find(N=>(N==null?void 0:N.key)==="header"))==null?void 0:ze.contents;if(Array.isArray(fe==null?void 0:fe[0])&&(fe=fe==null?void 0:fe[0]),fe=ce.getColumnChild(fe),fe!=null&&fe.some(N=>{var oe,U;return((U=N==null?void 0:N.menus)==null?void 0:U[((oe=N==null?void 0:N.menus)==null?void 0:oe.length)-1])===""})){let N=(F=nn==null?void 0:nn.value)==null?void 0:F.find(oe=>(oe==null?void 0:oe.condition)==="child");$e=Qd($e,N)}return $e}if((a==null?void 0:a.filter)==="Chart"){let ne=a==null?void 0:a.contents;return ne.push({key:"newType",contents:"Chart"}),ne}return a==null?void 0:a.contents},up=async a=>{if((a==null?void 0:a.filter)==="Ordin"){let l=a==null?void 0:a.contents;return l.push({key:"enableWrap",contents:1}),l}if((a==null?void 0:a.filter)==="Block"){let l=a==null?void 0:a.contents;return l.push({key:"enableWrap",contents:2}),l}if((a==null?void 0:a.filter)==="Text"){let l=a==null?void 0:a.contents;return l.push({key:"enableWrap",contents:3}),l}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}return a==null?void 0:a.contents},dp=a=>{var r,o,s,h,c,d,m,b,u,C,M,k;let l=a==null?void 0:a.filter;if(l!=null&&l.includes("*")&&(l="({"+((o=(r=l==null?void 0:l.replace(":",wr))==null?void 0:r.split(wr))==null?void 0:o[1])),l=(s=l==null?void 0:l.replaceAll("{",""))==null?void 0:s.replaceAll("}",""),(c=(h=l==null?void 0:l.split("="))==null?void 0:h[1])!=null&&c.includes("$")){(l==null?void 0:l[0])==="("&&(l=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1));let W=(d=l==null?void 0:l.split("="))==null?void 0:d[0],I=(m=l==null?void 0:l.split("="))==null?void 0:m[1];(b=I==null?void 0:I.slice(1,I==null?void 0:I.length))!=null&&b.includes("$")&&(I=(M=(C=(u=nn==null?void 0:nn.value)==null?void 0:u.filter(j=>(j==null?void 0:j.condition)==="child"))==null?void 0:C[0])==null?void 0:M.value),l=W+"="+I}if((l==null?void 0:l[0])!=="("&&(l="("+l+")"),l.slice(1,(l==null?void 0:l.length)-1)==="undefined")return a==null?void 0:a.contents;let n=ce.calculatorAndToOr(l);if((n==null?void 0:n.length)>0){let W=[];return n==null||n.forEach(j=>{let L={};for(let E in j){let x=E;x!=null&&x.includes("[")||(L[x]=j[E])}W.push(L)}),(k=a==null?void 0:a.contents)==null?void 0:k.map(j=>{var E,x,w;let L=(x=(E=a==null?void 0:a.contents)==null?void 0:E.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:x.contents;if(L=(w=ce.getEqualChild(L))==null?void 0:w.filter(g=>(g==null?void 0:g.label)!=="操作"),(j==null?void 0:j.key)==="tableContents"){let S=ce.tableToForm(j==null?void 0:j.contents,L);W==null||W.forEach($=>{var V,ae;for(let Z in $)!((V=S==null?void 0:S[0])!=null&&V.find(ge=>{var ze;return(ge==null?void 0:ge.key)===Z||((ze=ge==null?void 0:ge.key)==null?void 0:ze.includes(Z))}))&&!(S!=null&&S.find(ge=>{var ze;return(ge==null?void 0:ge.key)===Z||((ze=ge==null?void 0:ge.key)==null?void 0:ze.includes(Z))}))||(((ae=$[Z])==null?void 0:ae[0])!=="!"?S=S==null?void 0:S.filter(ge=>{var ze,F;return((ze=ge==null?void 0:ge.find(ne=>{var J;return(ne==null?void 0:ne.key)===Z||((J=ne==null?void 0:ne.key)==null?void 0:J.includes(Z))}))==null?void 0:ze.value)===$[Z]||Array.isArray($==null?void 0:$[Z])&&((F=$==null?void 0:$[Z])==null?void 0:F.find(ne=>{var J;return((J=ge==null?void 0:ge.find(se=>{var Be;return(se==null?void 0:se.key)===Z||((Be=se==null?void 0:se.key)==null?void 0:Be.includes(Z))}))==null?void 0:J.value)===ne}))}):S=S==null?void 0:S.filter(ge=>{var ze;return((ze=ge==null?void 0:ge.find(F=>{var ne;return(F==null?void 0:F.key)===Z||((ne=F==null?void 0:F.key)==null?void 0:ne.includes(Z))}))==null?void 0:ze.value)!==$[Z]}))}),(S==null?void 0:S.length)===0?j.contents=[]:j.contents=S==null?void 0:S.map($=>{let V={};return $==null||$.forEach(ae=>{V[ae==null?void 0:ae.key]=ae==null?void 0:ae.value}),V})}return j})}return a==null?void 0:a.contents},pp=a=>a==null?void 0:a.contents,fp=a=>a==null?void 0:a.contents,hp=a=>{var l,n,r,o;if((a==null?void 0:a.filter)!==""&&(a!=null&&a.filter)){let s=(r=(n=a==null?void 0:a.filter)==null?void 0:n.slice(1,((l=a==null?void 0:a.filter)==null?void 0:l.length)-1))==null?void 0:r.split(",");return(o=a==null?void 0:a.contents)==null?void 0:o.map(c=>((c==null?void 0:c.key)==="header"&&(c.contents=vt(c.contents,s)),c))}return a==null?void 0:a.contents},vp=a=>{var n,r,o,s,h;let l=(a==null?void 0:a.filter)??"";if(l!==""){let c=(r=(n=l==null?void 0:l.replace("(",wr))==null?void 0:n.split(wr))==null?void 0:r[1];c=c==null?void 0:c.slice(0,(c==null?void 0:c.length)-1),(c==null?void 0:c[(c==null?void 0:c.length)-1])===")"&&(c=c==null?void 0:c.slice(1,(c==null?void 0:c.length)-1)),c=(o=ce.analyzeSplitToContent(c,","))==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));let d=c==null?void 0:c[0];(d==null?void 0:d[0])==="("&&(d=d==null?void 0:d.slice(1,(d==null?void 0:d.length)-1));let m=(c==null?void 0:c[1])??"Up",b=(s=a==null?void 0:a.contents)==null?void 0:s.map(u=>{var C,M;if(m==="Up"){if((u==null?void 0:u.key)==="extraButton"){let k=(C=d==null?void 0:d.split(","))==null?void 0:C.map(W=>({label:W,prop:W}));u.contents=[...k??[],...u.contents]}}else if(m==="Line"&&(u==null?void 0:u.key)==="rowButton"){let k=(M=d==null?void 0:d.split(","))==null?void 0:M.map(W=>({label:W,prop:W}));u.contents=[...k??[],...u.contents]}return u});if(m==="Bottom"||m==="Down"){let u=(h=d==null?void 0:d.split(","))==null?void 0:h.map(C=>({label:C,prop:C}));b.push({key:"bottomButton",contents:u})}return b}return a==null?void 0:a.contents},mp=a=>a==null?void 0:a.contents,yp=a=>{var n;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!==""?(n=a==null?void 0:a.contents)==null?void 0:n.map(o=>{var s;return(o==null?void 0:o.key)==="rowButton"&&(o.contents=(s=l==null?void 0:l.split(","))==null?void 0:s.map(h=>({label:h,prop:h}))),o}):a==null?void 0:a.contents},gp=a=>{var n;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 r=a==null?void 0:a.contents,o=(n=l==null?void 0:l.split(","))==null?void 0:n.map(s=>({label:s,prop:s}));return r.push({key:"bottomButton",contents:o}),r}return a==null?void 0:a.contents},bp=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(n=>{var r;return(n==null?void 0:n.key)==="formContent"&&(n.contents=(r=n.contents)==null?void 0:r.map(o=>(o.isNoClick=!0,o))),n}),l!=null&&l.find(n=>(n==null?void 0:n.key)==="tableContents")&&(l==null||l.push({key:"isEdit",contents:!1}),l=l==null?void 0:l.filter(n=>(n==null?void 0:n.key)!=="extraButton"&&(n==null?void 0:n.key)!=="rowButton")),l}return a==null?void 0:a.contents},kp=a=>{var l;if(a!=null&&a.filter){const n=parseInt(a==null?void 0:a.filter);return!n||Number.isNaN(n)?a==null?void 0:a.contents:(l=a==null?void 0:a.contents)==null?void 0:l.map(o=>{var s;return(o==null?void 0:o.key)==="formContent"&&(o.contents=(s=o.contents)==null?void 0:s.map(h=>(h.width=n,h))),o})}return a==null?void 0:a.contents},xp=a=>{var l,n,r,o;if(((l=a==null?void 0:a.filter)==null?void 0:l[0])!=="["){const s=parseInt(a==null?void 0:a.filter);return!s||Number.isNaN(s)?a==null?void 0:a.contents:(n=a==null?void 0:a.contents)==null?void 0:n.map(c=>{var d;return(c==null?void 0:c.key)==="formContent"&&(c.contents=(d=c.contents)==null?void 0:d.map(m=>(m.width=s,m))),c})}if(((r=a==null?void 0:a.filter)==null?void 0:r[0])==="["){let s=Di(a==null?void 0:a.filter),h=Array.isArray(s)?s.map(d=>parseInt(d)).filter(d=>!!d&&!Number.isNaN(d)):[];return h.length?(o=a==null?void 0:a.contents)==null?void 0:o.map(d=>{if((d==null?void 0:d.key)==="formContent"){const m=d.contents??[];d.contents=m.map((b,u)=>{const C=u+1;let M=0,k=0;for(let I=0;I<h.length;I++){if(k+=h[I],C<=k){M=I;break}I===h.length-1&&(M=h.length-1)}const W=h[M]||h[h.length-1]||1;return b.width=W,b})}return d}):a==null?void 0:a.contents}return a==null?void 0:a.contents},wp=a=>{var l;if((a==null?void 0:a.filter)!==""){let 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=n==null?void 0:n.split(","),(l=a==null?void 0:a.contents)==null?void 0:l.map(o=>{var s,h,c;return(o==null?void 0:o.key)==="header"&&(Array.isArray((s=o==null?void 0:o.contents)==null?void 0:s[0])?o.contents[0]=(c=o.contents[0])==null?void 0:c.map(d=>(n!=null&&n.find(m=>m===(d==null?void 0:d.prop))&&(d.fixed="left"),d)):o.contents=(h=o.contents)==null?void 0:h.map(d=>(n!=null&&n.find(m=>m===(d==null?void 0:d.prop))&&(d.fixed="left"),d))),o})}return a==null?void 0:a.contents},_p=a=>{var l;if((a==null?void 0:a.filter)!==""){let n=a==null?void 0:a.filter;(n==null?void 0:n[0])==="("&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n=n==null?void 0:n.split(",");const r=s=>(n!=null&&n.find(h=>h===(s==null?void 0:s.prop))&&(s.required=!0),s!=null&&s.children&&Array.isArray(s.children)&&(s.children=s.children.map(h=>r(h))),s);return(l=a==null?void 0:a.contents)==null?void 0:l.map(s=>{var h,c,d;return(s==null?void 0:s.key)==="header"&&(Array.isArray((h=s==null?void 0:s.contents)==null?void 0:h[0])?s.contents[0]=(d=s.contents[0])==null?void 0:d.map(m=>r(m)):s.contents=(c=s.contents)==null?void 0:c.map(m=>r(m))),s})}return a==null?void 0:a.contents},Sp=async a=>{var r,o,s,h,c,d,m,b,u,C,M,k,W,I,j,L,E;const l=A.useUnit(A.pinia),{chooseTitle:n}=A.storeToRefs(l);if((a==null?void 0:a.filter)==="true"){let x=await Gr(((o=(r=n==null?void 0:n.value)==null?void 0:r[0])==null?void 0:o.parentContent)??((h=(s=n==null?void 0:n.value)==null?void 0:s[0])==null?void 0:h.relatedContent),!1),w=(d=(c=n==null?void 0:n.value)==null?void 0:c[0])==null?void 0:d.value;(b=(m=x==null?void 0:x[0])==null?void 0:m.compData)!=null&&b.find(V=>(V==null?void 0:V.key)==="header")?x=(u=x==null?void 0:x[0])==null?void 0:u.compData:x=(M=(C=x==null?void 0:x.filter(V=>{var ae;return(ae=V==null?void 0:V.compData)==null?void 0:ae.find(Z=>(Z==null?void 0:Z.key)==="header")}))==null?void 0:C[0])==null?void 0:M.compData;let g=(k=x==null?void 0:x.find(V=>(V==null?void 0:V.key)==="header"))==null?void 0:k.contents;Array.isArray(g==null?void 0:g[0])&&(g=g==null?void 0:g[0]),g=((W=g==null?void 0:g.find(V=>V==null?void 0:V.isMainKey))==null?void 0:W.prop)??((I=g==null?void 0:g[0])==null?void 0:I.prop);let S=(L=(j=x==null?void 0:x.find(V=>(V==null?void 0:V.key)==="tableContents"))==null?void 0:j.contents)==null?void 0:L.find(V=>(V==null?void 0:V[g])===w);return(E=a==null?void 0:a.contents)==null?void 0:E.map(V=>{var ae;return(V==null?void 0:V.key)==="formContent"&&(V.contents=(ae=V.contents)==null?void 0:ae.map(Z=>(Z.value=S==null?void 0:S[Z==null?void 0:Z.prop],Z))),V})}return a==null?void 0:a.contents},Ep=a=>{var l,n,r,o,s;if((l=a==null?void 0:a.extra)!=null&&l.row){let h=a==null?void 0:a.filter;if(h!=null&&h.includes("*")&&(h="({"+((r=(n=h==null?void 0:h.replace("{",wr))==null?void 0:n.split(wr))==null?void 0:r[1])),h=(o=h==null?void 0:h.replaceAll("{",""))==null?void 0:o.replaceAll("}",""),(h==null?void 0:h[0])!=="("&&(h="("+h+")"),h.slice(1,(h==null?void 0:h.length)-1)==="undefined")return a==null?void 0:a.contents;let c=ce.calculatorAndToOr(h),d=c==null?void 0:c[0],m=(s=a==null?void 0:a.extra)==null?void 0:s.row,b=[];for(let u in d)(d==null?void 0:d[u])===(m==null?void 0:m[u])?b.push(!0):b.push(!1);return b!=null&&b.every(u=>u===!0)?a==null?void 0:a.contents:[]}else return a==null?void 0:a.contents},Cp=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},Dp=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},Bp=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},Tp=a=>{var l;if(a!=null&&a.filter){let n=a==null?void 0:a.contents,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=(l=ce.analyzeSplitToContent(r,","))==null?void 0:l.map(o=>((o==null?void 0:o[(o==null?void 0:o.length)-1])===","&&(o=o==null?void 0:o.slice(0,(o==null?void 0:o.length)-1)),o)),n.push({key:"stepName",contents:r}),n}return a==null?void 0:a.contents},Np=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},nc={onNumSlice:sp,onRandomContents:cp,onConditionContents:dp,onFatherPaceContents:pp,onPaceContents:fp,onMainTagContents:hp,onButtonContents:vp,onPamButtonContents:mp,onRowButtonContents:yp,onRelated:Sp,onRowNum:xp,onFixRow:wp,onReqItem:_p,onBottomButtonContents:gp,onConditionContent:Ep,onTabs:Cp,onSinChoice:Dp,onTextSize:op,onTextRGBA:tp,onPosition:np,onSize:ip,onShowType:Bp,onStepName:Tp,onStep:Np,onInterfaceTypeContents:up,onBackGround:rp,onMaxColumn:kp,onEditRead:bp},Ap=async(a,l,n="")=>{var h,c,d,m,b,u,C,M,k,W,I,j;let r="";if(((h=a==null?void 0:a.find(L=>(L==null?void 0:L.key)==="filter"))==null?void 0:h.contents)!==""&&(r=(c=a==null?void 0:a.find(L=>(L==null?void 0:L.key)==="filter"))==null?void 0:c.contents),r===""||!r)return a;(r==null?void 0:r[0])==="("?r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1):(r=(m=(d=r==null?void 0:r.replace("(",wr))==null?void 0:d.split(wr))==null?void 0:m[1],r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1));let o=(b=ce.analyzeSplitToContent(r,","))==null?void 0:b.map(L=>((L==null?void 0:L[(L==null?void 0:L.length)-1])===","&&(L=L==null?void 0:L.slice(0,(L==null?void 0:L.length)-1)),L!=null&&L.includes("(")||(L=L==null?void 0:L.replaceAll(":","=")),L)),s=a;for(let L in o){let E,x="";E=(M=(C=(u=o==null?void 0:o[L])==null?void 0:u.replace("=",wr))==null?void 0:C.split(wr))==null?void 0:M[0],x=(I=(W=(k=o==null?void 0:o[L])==null?void 0:k.replace("=",wr))==null?void 0:W.split(wr))==null?void 0:I[1];let w=(j=xn==null?void 0:xn.find(g=>(g==null?void 0:g.key)===E))==null?void 0:j.value;if(w){const g=nc[w];s=await g({contents:s,filter:x,extra:l,groupName:n})}}return s},Oo=async(a,l,n="")=>{var c,d,m,b,u,C,M,k,W,I,j,L,E,x,w,g,S,$,V,ae;let r="";if(((c=a==null?void 0:a.find(Z=>(Z==null?void 0:Z.key)==="filter"))==null?void 0:c.contents)!==""&&(r=(d=a==null?void 0:a.find(Z=>(Z==null?void 0:Z.key)==="filter"))==null?void 0:d.contents),r===""||!r)return a;(r==null?void 0:r[0])===","&&(r=r==null?void 0:r.slice(1,r==null?void 0:r.length)),(r==null?void 0:r[0])==="("?r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1):(r==null?void 0:r[0])==="@"||(r=(b=(m=r==null?void 0:r.replace("(",wr))==null?void 0:m.split(wr))==null?void 0:b[1],r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1));let o=(u=ce.analyzeSplitToContent(r,","))==null?void 0:u.map(Z=>((Z==null?void 0:Z[(Z==null?void 0:Z.length)-1])===","&&(Z=Z==null?void 0:Z.slice(0,(Z==null?void 0:Z.length)-1)),Z!=null&&Z.includes("(")||(Z=Z==null?void 0:Z.replaceAll(":","=")),Z)),s=a,h=new Map;o==null||o.forEach(Z=>{var ze,F,ne;let ge=(ze=Z==null?void 0:Z.split("="))==null?void 0:ze[0];if(ge==="@MainPam"&&h.get(ge)){let J=h.get(ge);J=J==null?void 0:J.slice(0,(J==null?void 0:J.length)-1);let se=(ne=(F=Z==null?void 0:Z.replace("{",wr))==null?void 0:F.split(wr))==null?void 0:ne[1];se=J+","+se,h.set(ge,se)}else ge==="@Button"&&h.get(ge)?h.set(Z,Z):h.set(ge,Z)}),o=Array.from(h.values()),o=o==null?void 0:o.sort((Z,ge)=>{var ze,F;return((ze=xn==null?void 0:xn.find(ne=>ge==null?void 0:ge.includes(ne==null?void 0:ne.key)))==null?void 0:ze.order)-((F=xn==null?void 0:xn.find(ne=>Z==null?void 0:Z.includes(ne==null?void 0:ne.key)))==null?void 0:F.order)});for(let Z in o){let ge,ze="";(C=o==null?void 0:o[Z])!=null&&C.includes("(")&&((M=o==null?void 0:o[Z])!=null&&M.includes("@If"))?(ge=(I=(W=(k=o==null?void 0:o[Z])==null?void 0:k.replace("(",wr))==null?void 0:W.split(wr))==null?void 0:I[0],ze="("+((E=(L=(j=o==null?void 0:o[Z])==null?void 0:j.replace("(",wr))==null?void 0:L.split(wr))==null?void 0:E[1])):(ge=(g=(w=(x=o==null?void 0:o[Z])==null?void 0:x.replace("=",wr))==null?void 0:w.split(wr))==null?void 0:g[0],ze=(V=($=(S=o==null?void 0:o[Z])==null?void 0:S.replace("=",wr))==null?void 0:$.split(wr))==null?void 0:V[1]);let F=(ae=xn==null?void 0:xn.find(ne=>(ne==null?void 0:ne.key)===ge))==null?void 0:ae.value;if(F){const ne=nc[F];s=await ne({contents:s,filter:ze,extra:l,groupName:n})}}return s},ic=a=>{if(a==null)return null;const l=String(a).trim();if(!l.startsWith("(")||!l.endsWith(")"))return null;const n=l.slice(1,-1).split(",").map(r=>Number(r.trim()));return n.length<2||n.some(r=>Number.isNaN(r))?null:[n[0],n[1]]},oc=(a,l)=>{var W,I,j,L,E;const n=Array.isArray(a)?a:[],r=n.find(x=>(x==null?void 0:x.key)==="formContent"),o=Array.isArray(r==null?void 0:r.contents)?r.contents:[],s=((W=n.find(x=>(x==null?void 0:x.key)==="_gridLayoutMeta"))==null?void 0:W.contents)??{},h=(o==null?void 0:o[0])??{};let c=((I=l==null?void 0:l.position)==null?void 0:I[0])??(s==null?void 0:s._positionStartRow)??(h==null?void 0:h._positionStartRow),d=((j=l==null?void 0:l.position)==null?void 0:j[1])??(s==null?void 0:s._positionRowSpan)??(h==null?void 0:h._positionRowSpan);(!c||Number.isNaN(c)||c<1)&&(c=1),(!d||Number.isNaN(d)||d<1)&&(d=1);let m=((L=l==null?void 0:l.size)==null?void 0:L[0])??(s==null?void 0:s._sizeStart)??(h==null?void 0:h._sizeStart),b=((E=l==null?void 0:l.size)==null?void 0:E[1])??(s==null?void 0:s._sizeEnd)??(h==null?void 0:h._sizeEnd);(m===void 0||Number.isNaN(m))&&(m=0),(b===void 0||Number.isNaN(b))&&(b=1),m=Math.max(0,Math.min(1,m)),b=Math.max(0,Math.min(1,b)),b<=m&&(m=0,b=1);const u=b-m,C=Math.max(1,Math.round(1/u));let M=n.map(x=>{if((x==null?void 0:x.key)!=="formContent")return x;const w=Array.isArray(x==null?void 0:x.contents)?x.contents:[];return{...x,contents:w.map(g=>({...g,width:C,_positionStartRow:c,_positionRowSpan:d,_sizeStart:m,_sizeEnd:b}))}});const k={_positionStartRow:c,_positionRowSpan:d,_sizeStart:m,_sizeEnd:b};return M.some(x=>(x==null?void 0:x.key)==="_gridLayoutMeta")?M=M.map(x=>(x==null?void 0:x.key)==="_gridLayoutMeta"?{...x,contents:k}:x):M.push({key:"_gridLayoutMeta",contents:k}),M};let po="$R";const zp=A.useUnit(A.pinia),{selectTitle:Mp}=A.storeToRefs(zp);let Ip=[{label:"新增",prop:"新增"},{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],Op=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"},{label:"复制新增",prop:"复制新增"},{label:"删除",prop:"删除"}],Lp=[{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],Rp=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"}];const ts=async(a,l,n=!0)=>{let r=[],o=a==null?void 0:a.map(async s=>{var u,C,M,k,W,I,j,L,E,x,w,g,S,$,V,ae,Z,ge,ze,F,ne,J,se,Be,$e,fe,N,oe,U,De,Ie,je,la,Ta,ee,ca,ue,ta,Se,te,Ne,We,sa,Ya,R,H,X,ve,de,va,na,Pe,xa,Me,ma,Oa,za,pa,Ca,Ae,he,Y,xe,me,qe,da,Ke,aa,Ve,ye,pe,Sa,ya,vl,Nl,pl,Fl,ja,jl,Rl,Da,al,dl,ol,$a,tl,ll;let h=(k=(M=(C=(u=s==null?void 0:s.contents)==null?void 0:u.find(Te=>{var Ma;return(Ma=Te==null?void 0:Te.key)==null?void 0:Ma.includes("struct")}))==null?void 0:C.value)==null?void 0:M[0])==null?void 0:k.类型,c=Object.values(s==null?void 0:s.name);c=c==null?void 0:c.reverse();let d=(W=s==null?void 0:s.contents)==null?void 0:W.map(Te=>Te==null?void 0:Te.key),m={comp:h,isShow:s==null?void 0:s.is_show,name:c==null?void 0:c[0],id:s==null?void 0:s.object_id,order_no:s==null?void 0:s.order_no,relatedTables:d,menuFilter:(I=s==null?void 0:s.filter)==null?void 0:I.menuFilter,status:s==null?void 0:s.status,fatherSyncContents:(j=s==null?void 0:s.filter)==null?void 0:j.fatherSyncs,relatedQuotes:(L=s==null?void 0:s.filter)==null?void 0:L.quotes,sonSyncContents:(E=s==null?void 0:s.filter)==null?void 0:E.sonSyncs,nameContents:(x=A.cloneDeep(c))==null?void 0:x.reverse()};for(let Te in c)parseInt(Te)>=1&&(m[`name${parseInt(Te)-1}`]=c[Te]);let b=Array.isArray((w=s==null?void 0:s.filter)==null?void 0:w.menuFilter)?(g=s==null?void 0:s.filter)==null?void 0:g.menuFilter:[];if(((S=b==null?void 0:b.filter(Te=>Te==null?void 0:Te.includes("@Filter")))==null?void 0:S.length)>0){let Te=b==null?void 0:b.filter(Ze=>Ze==null?void 0:Ze.includes("@Filter"));Te=Te==null?void 0:Te[0],Te=(V=($=Te==null?void 0:Te.replace("(",po))==null?void 0:$.split(po))==null?void 0:V[1],Te=Te==null?void 0:Te.slice(0,(Te==null?void 0:Te.length)-1),Te!=null&&Te.includes("*")&&(Te=(Z=(ae=Te==null?void 0:Te.replace("{",po))==null?void 0:ae.split(po))==null?void 0:Z[1],Te=Te==null?void 0:Te.replace("}","")),Te=ce.calculatorAndToOr(Te);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 Je=await Gr(Ma,!1),ie=(ge=Je==null?void 0:Je.filter(Ze=>(Ze==null?void 0:Ze.comp)==="Table"))==null?void 0:ge[0];ie=(F=(ze=ie==null?void 0:ie.compData)==null?void 0:ze.find(Ze=>(Ze==null?void 0:Ze.key)==="tableContents"))==null?void 0:F.contents;let Xe=(J=(ne=Mp.value)==null?void 0:ne.find(Ze=>(Ze==null?void 0:Ze.condition)==="child"))==null?void 0:J.value;ie=(se=ie==null?void 0:ie.map(Ze=>{for(let ka in Ze)if((Ze==null?void 0:Ze[ka])===Xe)return Ze}))==null?void 0:se.filter(Ze=>Ze),ie=ie==null?void 0:ie[0],Te=Te==null?void 0:Te[0];let Aa=[];for(let Ze in Te){let ka="";Ua.isObject(ie)&&(ka=($e=(Be=Object.keys(ie))==null?void 0:Be.filter(Va=>Va==null?void 0:Va.includes("."+Ze)))==null?void 0:$e[0]),ka!==""&&(ie!=null&&ie[ka])&&(Te==null?void 0:Te[Ze])===(ie==null?void 0:ie[ka])||ie!=null&&ie[Ze]&&(Te==null?void 0:Te[Ze])===(ie==null?void 0:ie[Ze])?Aa.push(!0):Aa.push(!1)}if(Aa!=null&&Aa.some(Ze=>Ze===!1)&&((N=l==null?void 0:l.originPath)==null?void 0:N[((fe=l==null?void 0:l.originPath)==null?void 0:fe.length)-1])!=="/")return}if(h==="Table"||h==="Method"){!n&&((oe=m==null?void 0:m.fatherSyncContents)==null?void 0:oe.length)>0;let Te=((U=s==null?void 0:s.contents)==null?void 0:U.find(Ue=>{var fa;return(fa=Ue==null?void 0:Ue.key)==null?void 0:fa.includes("content")}))||[],Ma=[];m.comp="Table",Te.value=(De=Te==null?void 0:Te.value)==null?void 0:De.sort((Ue,fa)=>parseInt(Ue==null?void 0:Ue.id)-parseInt(fa==null?void 0:fa.id)),Te.value=(Ie=Te==null?void 0:Te.value)==null?void 0:Ie.map(Ue=>{let fa={};for(let oa in Ue)JSON.stringify(Ue==null?void 0:Ue[oa])==="{}"?fa[oa]="":fa[oa]=Ue==null?void 0:Ue[oa];return fa}),Ma.push({key:"tableContents",contents:Te==null?void 0:Te.value});let Je=(ca=(ee=(Ta=(la=(je=s==null?void 0:s.contents)==null?void 0:je.find(Ue=>{var fa;return(fa=Ue==null?void 0:Ue.key)==null?void 0:fa.includes("struct")}))==null?void 0:la.value)==null?void 0:Ta[0])==null?void 0:ee.结构)==null?void 0:ca.contents;Array.isArray(Je==null?void 0:Je[0])?Je[0]=(ue=Je==null?void 0:Je[0])==null?void 0:ue.filter(Ue=>(Ue==null?void 0:Ue.prop)!=="sort"&&(Ue==null?void 0:Ue.prop)!=="relatedId"):Je=Je==null?void 0:Je.filter(Ue=>(Ue==null?void 0:Ue.prop)!=="sort"&&(Ue==null?void 0:Ue.prop)!=="relatedId"),Ma.push({key:"header",contents:Je}),Ma.push({key:"filter",contents:(We=(Ne=(te=(Se=(ta=s==null?void 0:s.contents)==null?void 0:ta.find(Ue=>{var fa;return(fa=Ue==null?void 0:Ue.key)==null?void 0:fa.includes("struct")}))==null?void 0:Se.value)==null?void 0:te[0])==null?void 0:Ne.引用)==null?void 0:We.contents});let ie=Ip,Xe=A.cloneDeep(Op);h==="Method"&&Xe.push({label:"生成方法",prop:"生成方法"}),!Array.isArray(Je==null?void 0:Je[0])&&((sa=Je==null?void 0:Je[0])==null?void 0:sa.prop)==="disabled"&&(ie=Lp,Xe=Rp);const Aa=["推力","真空","压力","温度","流量"],Ze=m.name;Ze&&Aa.includes(Ze)&&(ie=[...ie],ie.push({label:"导出paraform",prop:"导出paraform",type:"methodButton"}));let ka=[];if(!Array.isArray(Je==null?void 0:Je[0])&&(Je!=null&&Je.some(Ue=>{var fa;return(Ue==null?void 0:Ue.calculatorFilter)&&((fa=Ue==null?void 0:Ue.calculatorFilter)==null?void 0:fa.includes("Manual"))}))){let Ue=(Ya=Je==null?void 0:Je.map(fa=>fa==null?void 0:fa.calculatorFilter))==null?void 0:Ya.filter(fa=>fa&&(fa==null?void 0:fa.includes("Manual")));Ue==null||Ue.forEach(fa=>{var il;let oa=ce.analyzeSplitToContent(fa,",");if(oa=oa==null?void 0:oa.map(Le=>((Le==null?void 0:Le[(Le==null?void 0:Le.length)-1])===","&&(Le=Le==null?void 0:Le.slice(0,(Le==null?void 0:Le.length)-1)),Le)),oa!=null&&oa.find(Le=>(Le==null?void 0:Le.includes("Extent"))&&(Le==null?void 0:Le.includes("Row")))&&(oa!=null&&oa.find(Le=>(Le==null?void 0:Le.includes("Button"))&&(Le==null?void 0:Le.includes(","))))){let Le=oa==null?void 0:oa.find(Pa=>Pa==null?void 0:Pa.includes("@FunctionButton"));Le=(il=Le==null?void 0:Le.split("="))==null?void 0:il[1],Le=Le==null?void 0:Le.slice(1,(Le==null?void 0:Le.length)-1),Le=Le==null?void 0:Le.split(","),Le=Le==null?void 0:Le[(Le==null?void 0:Le.length)-1],ka.push(Le)}}),ka=[...new Set(ka)],ka=ka==null?void 0:ka.map(fa=>({label:fa,prop:fa,type:"methodButton"}))}else if(Array.isArray(Je==null?void 0:Je[0])&&((R=ce.getColumnChild(Je==null?void 0:Je[0]))!=null&&R.some(Ue=>{var fa;return(Ue==null?void 0:Ue.calculatorFilter)&&((fa=Ue==null?void 0:Ue.calculatorFilter)==null?void 0:fa.includes("Manual"))}))){let Ue=(X=(H=ce.getColumnChild(Je==null?void 0:Je[0]))==null?void 0:H.map(fa=>fa==null?void 0:fa.calculatorFilter))==null?void 0:X.filter(fa=>fa&&(fa==null?void 0:fa.includes("Manual")));Ue==null||Ue.forEach(fa=>{var il;let oa=ce.analyzeSplitToContent(fa,",");if(oa=oa==null?void 0:oa.map(Le=>((Le==null?void 0:Le[(Le==null?void 0:Le.length)-1])===","&&(Le=Le==null?void 0:Le.slice(0,(Le==null?void 0:Le.length)-1)),Le)),oa!=null&&oa.find(Le=>(Le==null?void 0:Le.includes("Extent"))&&(Le==null?void 0:Le.includes("Row")))&&(oa!=null&&oa.find(Le=>(Le==null?void 0:Le.includes("Button"))&&(Le==null?void 0:Le.includes(","))))){let Le=oa==null?void 0:oa.find(Pa=>Pa==null?void 0:Pa.includes("@FunctionButton"));Le=(il=Le==null?void 0:Le.split("="))==null?void 0:il[1],Le=Le==null?void 0:Le.slice(1,(Le==null?void 0:Le.length)-1),Le=Le==null?void 0:Le.split(","),Le=Le==null?void 0:Le[(Le==null?void 0:Le.length)-1],ka.push(Le)}}),ka=[...new Set(ka)],ka=ka==null?void 0:ka.map(fa=>({label:fa,prop:fa,type:"methodButton"}))}if(Ma.push({key:"extraButton",contents:ie}),Ma.push({key:"rowButton",contents:[...Xe,...ka]}),m.compData=await Oo(Ma,l,m==null?void 0:m.nameContents),(ve=m.compData)!=null&&ve.find(Ue=>(Ue==null?void 0:Ue.key)==="tab")&&(m.tab=(va=(de=m.compData)==null?void 0:de.find(Ue=>(Ue==null?void 0:Ue.key)==="tab"))==null?void 0:va.contents),(na=m.compData)!=null&&na.find(Ue=>(Ue==null?void 0:Ue.key)==="step")&&(m.step=(xa=(Pe=m.compData)==null?void 0:Pe.find(Ue=>(Ue==null?void 0:Ue.key)==="step"))==null?void 0:xa.contents),(Me=m.compData)!=null&&Me.find(Ue=>(Ue==null?void 0:Ue.key)==="choice")&&(m.choice=(Oa=(ma=m.compData)==null?void 0:ma.find(Ue=>(Ue==null?void 0:Ue.key)==="choice"))==null?void 0:Oa.contents),(za=m.compData)!=null&&za.find(Ue=>(Ue==null?void 0:Ue.key)==="newType")){let Ue=(Ca=(pa=m.compData)==null?void 0:pa.find(fa=>(fa==null?void 0:fa.key)==="newType"))==null?void 0:Ca.contents;m.comp=Ue,m.compData=(Ae=m.compData)==null?void 0:Ae.filter(fa=>(fa==null?void 0:fa.key)!=="newType")}let Va="",Ja=(he=m==null?void 0:m.compData)==null?void 0:he.filter(Ue=>(Ue==null?void 0:Ue.key)==="fixType");(Ja==null?void 0:Ja.length)>0&&n&&(Va=(Y=Ja==null?void 0:Ja[0])==null?void 0:Y.contents,m.comp=Va)}else if(h==="Form"){let Te=[],Ma=(qe=(me=(xe=s==null?void 0:s.contents)==null?void 0:xe.find(Ze=>{var ka;return(ka=Ze==null?void 0:Ze.key)==null?void 0:ka.includes("content")}))==null?void 0:me.value)==null?void 0:qe[0],Je=[],ie=Array.isArray((da=s==null?void 0:s.filter)==null?void 0:da.menuFilter)?(Ke=s==null?void 0:s.filter)==null?void 0:Ke.menuFilter:[];ie==null||ie.forEach(Ze=>{if(Ze!=null&&Ze.includes("@Param(Hide=Yes, prop=")||Ze!=null&&Ze.includes("(Hide=Yes, prop=")){const ka=Ze==null?void 0:Ze.match(/prop=([^,)]+)/);ka!=null&&ka[1]&&Je.push(ka==null?void 0:ka[1])}});let Xe=(Sa=(pe=(ye=(Ve=(aa=s==null?void 0:s.contents)==null?void 0:aa.find(Ze=>{var ka;return(ka=Ze==null?void 0:Ze.key)==null?void 0:ka.includes("struct")}))==null?void 0:Ve.value)==null?void 0:ye[0])==null?void 0:pe.结构)==null?void 0:Sa.contents,Aa=(ya=Xe==null?void 0:Xe.map(Ze=>(Ze.value=Ma==null?void 0:Ma[Ze==null?void 0:Ze.prop],Ze)))==null?void 0:ya.filter(Ze=>(Ze==null?void 0:Ze.prop)!=="sort"&&(Ze==null?void 0:Ze.prop)!=="relatedId");Aa=Aa==null?void 0:Aa.map(Ze=>(Je!=null&&Je.includes(Ze==null?void 0:Ze.prop)&&(Ze.isHideInForm=!0),Ze)),Te.push({key:"filter",contents:(ja=(Fl=(pl=(Nl=(vl=s==null?void 0:s.contents)==null?void 0:vl.find(Ze=>{var ka;return(ka=Ze==null?void 0:Ze.key)==null?void 0:ka.includes("struct")}))==null?void 0:Nl.value)==null?void 0:pl[0])==null?void 0:Fl.引用)==null?void 0:ja.contents}),Te.push({key:"formContent",contents:Aa}),Te.push({key:"paramHideProps",contents:Je}),m.compData=await Ap(Te,l,m==null?void 0:m.nameContents),(jl=m.compData)!=null&&jl.find(Ze=>(Ze==null?void 0:Ze.key)==="tab")&&(m.tab=(Da=(Rl=m.compData)==null?void 0:Rl.find(Ze=>(Ze==null?void 0:Ze.key)==="tab"))==null?void 0:Da.contents),(al=m.compData)!=null&&al.find(Ze=>(Ze==null?void 0:Ze.key)==="step")&&(m.step=(ol=(dl=m.compData)==null?void 0:dl.find(Ze=>(Ze==null?void 0:Ze.key)==="step"))==null?void 0:ol.contents),($a=m.compData)!=null&&$a.find(Ze=>(Ze==null?void 0:Ze.key)==="choice")&&(m.choice=(ll=(tl=m.compData)==null?void 0:tl.find(Ze=>(Ze==null?void 0:Ze.key)==="choice"))==null?void 0:ll.contents)}return m});return r=await Promise.all(o),r},$p=A.useLoginState(A.pinia),{loginUserInfo:wi}=A.storeToRefs($p),Vp=async(a,l="Manual",n=[])=>{var h;let r=a;r=r==null?void 0:r.filter(c=>c==null?void 0:c.functionName);let o=(h=r==null?void 0:r.filter(c=>{var d;return(c==null?void 0:c.functionName)&&(l==="Manual"&&((d=c==null?void 0:c.calculatorFilter)==null?void 0:d.includes(l))||l!=="Manual")}))==null?void 0:h.map(c=>({prop:c==null?void 0:c.prop,label:c==null?void 0:c.label,methods:c==null?void 0:c.calculatorFilter,functionName:c==null?void 0:c.functionName,functionRelatedWords:c==null?void 0:c.functionRelatedWords})),s=r==null?void 0:r.map(async c=>{let d=o==null?void 0:o.filter(m=>(m==null?void 0:m.prop)===(c==null?void 0:c.prop));return c=await tc(c,d,r,l,r,n),c});return s=await Promise.all(s),s},mt=async(a,l,n="Manual",r=[])=>{var d;let o=a,s;Array.isArray(l==null?void 0:l[0])?s=ce.getColumnChild(l==null?void 0:l[0]):s=l;let h=(d=s==null?void 0:s.filter(m=>{var b;return(m==null?void 0:m.calculatorFilter)&&((b=m==null?void 0:m.calculatorFilter)==null?void 0:b.includes(n))||(m==null?void 0:m.calculatorFilter)===""&&(m==null?void 0:m.functionName)}))==null?void 0:d.map(m=>({prop:m==null?void 0:m.prop,label:m==null?void 0:m.label,methods:m==null?void 0:m.calculatorFilter,functionName:m==null?void 0:m.functionName,functionRelatedWords:m==null?void 0:m.functionRelatedWords})),c=o==null?void 0:o.map(async m=>(m=await tc(m,h,s,n,o,r),m));return c=await Promise.all(c),c},Pp=a=>{let l=a==null?void 0:a.contents,n=a==null?void 0:a.valueString,r=a==null?void 0:a.prop,o=a==null?void 0:a.headers,s;return Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=ce.getValueToObjectValue(l,ce.getColumnContents(o))),n==null||n.forEach(h=>{var c;if(l!=null&&l[h]){let d=l==null?void 0:l[h];s=s?d?Tl.isEqual(d.toString(),s.toString()):void 0:d}else{let d=(c=o==null?void 0:o.find(b=>(b==null?void 0:b.label)===h))==null?void 0:c.prop,m=(l==null?void 0:l[d])??0;s=s?m?Tl.isEqual(m.toString(),s.toString()):void 0:m}}),l[r]=s===void 0?void 0:s?1:0,l},Cr=a=>{const[l,n,r]=A.cloneDeep(a).split(":").map(Number);let o=+a;return!a||!(a!=null&&a.includes(":"))?o:(l??0)*3600+(n??0)*60+(r??0)},Fn=a=>{const l=s=>s.toString().padStart(2,"0"),n=Math.floor(a/3600),r=Math.floor(a%3600/60),o=a%60;return`${l(n)}:${l(r)}:${parseInt(l(o))}`},Fp=a=>{let l=a==null?void 0:a.contents,n=a==null?void 0:a.valueString,r=a==null?void 0:a.prop,o=a==null?void 0:a.headers,s=a==null?void 0:a.typeString,h=a==null?void 0:a.allContents,c=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=ce.getValueToObjectValue(l,ce.getColumnContents(o))),n==null||n.forEach(d=>{var m,b,u,C,M,k,W,I,j;if(l!=null&&l[d]){if(s==="Row")if(!((b=((m=l==null?void 0:l[d])==null?void 0:m.toString())??"")!=null&&b.includes(":"))&&!((u=c==null?void 0:c.toString())!=null&&u.includes(":"))){let L=+(l==null?void 0:l[d]);c=c+L}else c=Cr(c.toString())+Cr((C=l==null?void 0:l[d])==null?void 0:C.toString()),c=Fn(c)}else if(s==="Row"){let L=(M=o==null?void 0:o.find(E=>(E==null?void 0:E.label)===d))==null?void 0:M.prop;if(!((W=Number.isNaN(l==null?void 0:l[L])?"":(k=l==null?void 0:l[L])==null?void 0:k.toString())!=null&&W.includes(":"))&&!((I=c==null?void 0:c.toString())!=null&&I.includes(":"))){let E=+((l==null?void 0:l[L])??0);c=c+E}else c=Cr(c==null?void 0:c.toString())+Cr((j=(l==null?void 0:l[L])??0)==null?void 0:j.toString()),c=Fn(c)}}),s==="Column"){let d=[];n==null||n.forEach(m=>{let b=h==null?void 0:h.map(u=>{var C;return(u==null?void 0:u[m])??(u==null?void 0:u[(C=o==null?void 0:o.find(M=>(M==null?void 0:M.label)===m))==null?void 0:C.prop])});d=[...d,...b]}),c=d.reduce((m,b)=>{let u=0;Number.isNaN(m)||(u=+m);let C=0;return Number.isNaN(b)||(C=+b),u+C},0)}return l[r]=c,l},jp=a=>{let l=a==null?void 0:a.contents,n=a==null?void 0:a.valueString,r=a==null?void 0:a.prop,o=a==null?void 0:a.headers,s=a==null?void 0:a.typeString,h=a==null?void 0:a.allContents,c=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=ce.getValueToObjectValue(l,ce.getColumnContents(o))),n==null||n.forEach(d=>{var m,b,u,C,M,k,W;if(l!=null&&l[d]){if(s==="Row")if(!((b=(m=l==null?void 0:l[d])==null?void 0:m.toString())!=null&&b.includes(":"))&&!((u=c==null?void 0:c.toString())!=null&&u.includes(":"))){let I=+(l==null?void 0:l[d]);c=c===0?c+I:c-I}else c=c===0?Cr(c.toString())+Cr(l==null?void 0:l[d].toString()):Cr(c.toString())-Cr(l==null?void 0:l[d].toString()),c=Fn(c)}else if(s==="Row"){let I=(C=o==null?void 0:o.find(j=>(j==null?void 0:j.label)===d))==null?void 0:C.prop;if(!((k=Number.isNaN(l==null?void 0:l[I])?"":(M=l==null?void 0:l[I])==null?void 0:M.toString())!=null&&k.includes(":"))&&!((W=c==null?void 0:c.toString())!=null&&W.includes(":"))){let j=+((l==null?void 0:l[I])??0);c=c===0?c+j:c-j}else c=c===0?Cr(c.toString())+Cr(((l==null?void 0:l[I])??0).toString()):Cr(c.toString())-Cr(((l==null?void 0:l[I])??0).toString()),c=Fn(c)}}),s==="Column"){let d=[];n==null||n.forEach(m=>{let b=h==null?void 0:h.map(u=>{var C;return(u==null?void 0:u[m])??(u==null?void 0:u[(C=o==null?void 0:o.find(M=>(M==null?void 0:M.label)===m))==null?void 0:C.prop])});d=[...d,...b]}),c=d.reduce((m,b)=>{let u=0;Number.isNaN(m)||(u=+m);let C=0;return Number.isNaN(b)||(C=+b),u-C},0)}return l[r]=c,l},Hp=a=>{let l=a==null?void 0:a.contents,n=a==null?void 0:a.valueString,r=a==null?void 0:a.prop,o=a==null?void 0:a.headers,s=a==null?void 0:a.typeString,h=a==null?void 0:a.allContents,c=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=ce.getValueToObjectValue(l,ce.getColumnContents(o))),n==null||n.forEach(d=>{var m,b,u,C,M,k,W;if(l!=null&&l[d]){if(s==="Row")if(!((b=(m=l==null?void 0:l[d])==null?void 0:m.toString())!=null&&b.includes(":"))&&!((u=c==null?void 0:c.toString())!=null&&u.includes(":"))){let I=+(l==null?void 0:l[d]);c=c===0?c+I:c*I}else c=c===0?Cr(c.toString())+Cr(l==null?void 0:l[d].toString()):Cr(c.toString())*Cr(l==null?void 0:l[d].toString()),c=Fn(c)}else if(s==="Row"){let I=(C=o==null?void 0:o.find(j=>(j==null?void 0:j.label)===d))==null?void 0:C.prop;if(!(l!=null&&l[I]))c=void 0;else if(!((k=Number.isNaN(l==null?void 0:l[I])?"":(M=l==null?void 0:l[I])==null?void 0:M.toString())!=null&&k.includes(":"))&&!((W=c==null?void 0:c.toString())!=null&&W.includes(":"))){let j=+((l==null?void 0:l[I])??0);c=c===0?c+j:c*j}else c=c===0?Cr(c.toString())+Cr(((l==null?void 0:l[I])??0).toString()):Cr(c.toString())*Cr(((l==null?void 0:l[I])??0).toString()),c=Fn(c)}}),s==="Column"){let d=[];n==null||n.forEach(m=>{let b=h==null?void 0:h.map(u=>{var C;return(u==null?void 0:u[m])??(u==null?void 0:u[(C=o==null?void 0:o.find(M=>(M==null?void 0:M.label)===m))==null?void 0:C.prop])});d=[...d,...b]}),c=d.reduce((m,b)=>{let u=0;Number.isNaN(m)||(u=+m);let C=0;return Number.isNaN(b)||(C=+b),u*C},0)}return l[r]=c,l},Up=a=>{let l=a==null?void 0:a.contents,n=a==null?void 0:a.valueString,r=a==null?void 0:a.prop,o=a==null?void 0:a.headers,s=a==null?void 0:a.typeString,h=a==null?void 0:a.allContents,c=0;if(Array.isArray(l)&&(l==null?void 0:l.length)!==1&&(l=ce.getValueToObjectValue(l,ce.getColumnContents(o))),n==null||n.forEach(d=>{var m,b,u,C,M,k,W;if(l!=null&&l[d]){if(s==="Row")if(!((b=(m=l==null?void 0:l[d])==null?void 0:m.toString())!=null&&b.includes(":"))&&!((u=c==null?void 0:c.toString())!=null&&u.includes(":"))){let I=+(l==null?void 0:l[d]);c=c===0?c+I:c/I}else c=c===0?Cr(c.toString())+Cr(l==null?void 0:l[d].toString()):Cr(c.toString())/Cr(l==null?void 0:l[d].toString()),c=Fn(c)}else if(s==="Row"){let I=(C=o==null?void 0:o.find(j=>(j==null?void 0:j.label)===d))==null?void 0:C.prop;if(!((k=Number.isNaN(l==null?void 0:l[I])?"":(M=l==null?void 0:l[I])==null?void 0:M.toString())!=null&&k.includes(":"))&&!((W=c==null?void 0:c.toString())!=null&&W.includes(":"))){let j=+((l==null?void 0:l[I])??0);c=c===0?c+j:c/j}else c=c===0?Cr(c.toString())+Cr(((l==null?void 0:l[I])??0).toString()):Cr(c.toString())/Cr(((l==null?void 0:l[I])??0).toString()),c=Fn(c)}}),s==="Column"){let d=[];n==null||n.forEach(m=>{let b=h==null?void 0:h.map(u=>{var C;return(u==null?void 0:u[m])??(u==null?void 0:u[(C=o==null?void 0:o.find(M=>(M==null?void 0:M.label)===m))==null?void 0:C.prop])});d=[...d,...b]}),c=d.reduce((m,b)=>{let u=0;Number.isNaN(m)||(u=+m);let C=0;return Number.isNaN(b)||(C=+b),u/C},0)}return l[r]=c.toFixed(2),l},qp=async a=>{var s,h,c,d,m,b,u,C,M,k,W;let l=(s=a==null?void 0:a.valueString)==null?void 0:s[0],n=(h=a==null?void 0:a.contents)==null?void 0:h.calculatorFilter,r=0,o=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 I=(d=(c=l==null?void 0:l.split("*"))==null?void 0:c[0])==null?void 0:d.replaceAll(":","/"),j=await Gr(I,!1),L=(m=l==null?void 0:l.split("*"))==null?void 0:m[1];if(j=(b=j==null?void 0:j.filter(E=>(E==null?void 0:E.name)===L))==null?void 0:b[0],n!==""){let E=j.compData;E=E==null?void 0:E.filter(x=>(x==null?void 0:x.key)!=="filter"),E.push({key:"filter",contents:"("+n+")"}),E=await Oo(E,{}),r=(C=(u=E==null?void 0:E.find(x=>(x==null?void 0:x.key)==="tableContents"))==null?void 0:u.contents)==null?void 0:C.length}else r=(W=(k=(M=j==null?void 0:j.compData)==null?void 0:M.find(E=>(E==null?void 0:E.key)==="tableContents"))==null?void 0:k.contents)==null?void 0:W.length}return o.value=r,o},fo={Sum:Fp,Substract:jp,Multiple:Hp,Divide:Up,Compare:Pp,VecDimCount:qp},tc=async(a,l,n,r="Auto",o,s=[])=>{var b,u,C,M,k,W,I,j,L,E,x,w,g,S,$,V,ae,Z,ge,ze,F;let h=a,c=[],d=await A.getPageDataApi({platId:parseInt((b=wi==null?void 0:wi.value)==null?void 0:b.plat_id),pageName:"menu"});d=(M=(C=(u=d==null?void 0:d.data)==null?void 0:u.result)==null?void 0:C.filter(ne=>(ne==null?void 0:ne.property_name)===""))==null?void 0:M[0];let m=[];if(d!=null&&d.object_name){d=d==null?void 0:d.object_name;let ne=await A.getPageDataApi({platId:parseInt((k=wi==null?void 0:wi.value)==null?void 0:k.plat_id),pageName:d});ne=(E=(L=(j=(I=(W=ne==null?void 0:ne.data)==null?void 0:W.result)==null?void 0:I[0])==null?void 0:j.contents)==null?void 0:L.find(J=>{var se;return(se=J==null?void 0:J.key)==null?void 0:se.includes("content")}))==null?void 0:E.value,c=(x=ne==null?void 0:ne.map(J=>({functionName:J==null?void 0:J.函数名称,functionContent:J==null?void 0:J.输出值})))==null?void 0:x.filter(J=>(J==null?void 0:J.functionContent)!==""),c==null||c.forEach(J=>{m.push(J.functionName),fo[J.functionName]=new Function("return "+J.functionContent)()})}if((l==null?void 0:l.length)===0)return h;for(let ne in l){let J=(w=l==null?void 0:l[ne])==null?void 0:w.functionName;const se=fo==null?void 0:fo[J];let Be=(g=l==null?void 0:l[ne])==null?void 0:g.methods;if(Be=ce.analyzeSplitToContent(Be,","),(S=Be==null?void 0:Be.find($e=>$e==null?void 0:$e.includes("@FunctionType")))!=null&&S.includes(r)||r==="Auto"||(Be==null?void 0:Be.length)===0){let $e=((ae=(V=($=Be==null?void 0:Be.find(fe=>fe==null?void 0:fe.includes("@FunctionExtent")))==null?void 0:$.replace(":","="))==null?void 0:V.split("="))==null?void 0:ae[1])??[];if(await new Function("return ")(),(m==null?void 0:m.length)>0&&m.find(fe=>fe===J)){let fe="";try{let oe=(Z=l==null?void 0:l[ne])==null?void 0:Z.functionRelatedWords,U=(s==null?void 0:s.length)>0?s==null?void 0:s.map(Ie=>{var je;return Ie==null?void 0:Ie[(je=l==null?void 0:l[ne])==null?void 0:je.prop]}):["0"];U=U==null?void 0:U.map(Ie=>Ie==null?void 0:Ie.slice((Ie==null?void 0:Ie.length)-5,Ie==null?void 0:Ie.length)),U=U==null?void 0:U.map(Ie=>ce.isNumber(parseInt(Ie))&&parseInt(Ie)?parseInt(Ie):0);let De=Math.max(...U);oe=oe==null?void 0:oe.map(Ie=>{if(Ie!=null&&Ie.includes("'"))return Ie==null?void 0:Ie.replaceAll("'","");if(Ie!=null&&Ie.includes("@"))return De+1;{let je=Object.keys(h);return Ie=(h==null?void 0:h[Ie])??(h==null?void 0:h[je==null?void 0:je.find(la=>la==null?void 0:la.includes("."+Ie))]),Ie}}),fe=se(...oe)}catch(oe){Ua.ElMessage.warning("关联数据出现错误,"+oe.message)}let N=(ge=l==null?void 0:l[ne])==null?void 0:ge.prop;h[N]=fe}else h=await se({contents:h,valueString:(ze=l==null?void 0:l[ne])==null?void 0:ze.functionRelatedWords,prop:(F=l==null?void 0:l[ne])==null?void 0:F.prop,headers:n,typeString:$e,allContents:o})}}return h},Wp=A.useLoginState(A.pinia),{loginUserInfo:on}=A.storeToRefs(Wp),Kp=A.useMenuState(A.pinia),{activeMenuPath:ss,currentMenuPath:ho}=A.storeToRefs(Kp),sc=A.useUnit(A.pinia);let cs="$R";const{selectTitle:Ei}=A.storeToRefs(sc),cc=async(a,l)=>{var h,c,d,m,b,u,C,M,k,W,I,j,L;let n=ss.value,r="",o=((h=Ei==null?void 0:Ei.value)==null?void 0:h.find(E=>(E==null?void 0:E.condition)==="child"&&!(E!=null&&E.relatedContent)))??void 0;(a==null?void 0:a.length)===0||(n=l?n:(c=a==null?void 0:a[0])==null?void 0:c.object_name,r=(d=a==null?void 0:a[0])==null?void 0:d.father_name);let s=[];if(r!==""){let E=r;(E==null?void 0:E[(E==null?void 0:E.length)-1])==="/"&&(E=E==null?void 0:E.slice(0,(E==null?void 0:E.length)-1));let x=await Gr(E,!1);x=(m=x==null?void 0:x[0])==null?void 0:m.compData;let w=(b=x==null?void 0:x.find(S=>(S==null?void 0:S.key)==="header"))==null?void 0:b.contents;w=((u=w==null?void 0:w.find(S=>S==null?void 0:S.isMainKey))==null?void 0:u.prop)??((C=w==null?void 0:w[0])==null?void 0:C.prop);let g=(k=(M=x==null?void 0:x.find(S=>(S==null?void 0:S.key)==="tableContents"))==null?void 0:M.contents)==null?void 0:k.map(S=>({label:S==null?void 0:S[w],value:S==null?void 0:S[w]}));s=(W=r==null?void 0:r.split("/"))==null?void 0:W.map(S=>(S===""?o?(o.isShow=!0,S=o):S={value:S,condition:"child",options:g,parentContent:(r==null?void 0:r[(r==null?void 0:r.length)-1])==="/"?r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1):r,isShow:!0}:S={condition:"parent",value:S.trim(),isShow:!0},S))}if(n!==""){let E=(I=n==null?void 0:n.split("/"))==null?void 0:I.map(x=>(x={condition:"normal",value:x.trim(),isShow:!0},x));((j=E==null?void 0:E[0])==null?void 0:j.value)===((L=s==null?void 0:s[0])==null?void 0:L.value)&&(E=E==null?void 0:E.filter((x,w)=>w!==0)),s=[...s??[],...E??[]]}r===""&&o&&((o==null?void 0:o.parentContent)!==ss.value&&(o.isShow=!1),(o==null?void 0:o.value)!==""&&s.push(o)),sc.setSelectTitle(s)},Gp=async a=>{var s,h,c,d,m,b,u,C,M;let l=await A.getPageDataApi({platId:parseInt((s=on==null?void 0:on.value)==null?void 0:s.plat_id),pageName:"menu"}),n=(h=l==null?void 0:l.data)==null?void 0:h.result,r=(b=(m=(d=(c=a==null?void 0:a.filter(k=>(k==null?void 0:k.comp)==="Table"))==null?void 0:c[0])==null?void 0:d.compData)==null?void 0:m.find(k=>(k==null?void 0:k.key)==="filter"))==null?void 0:b.contents;r=(M=(C=(u=r==null?void 0:r.replace("(",cs))==null?void 0:u.split(cs))==null?void 0:C[0])==null?void 0:M.replaceAll(":","/");let o=n==null?void 0:n.filter(k=>{var W;return(k==null?void 0:k.object_name)===ho.value+"/"||((W=ho.value)==null?void 0:W.includes(r))&&r+"/"===(k==null?void 0:k.object_name)});return(o==null?void 0:o.length)>0&&(a=a==null?void 0:a.map(k=>{var W;return(k==null?void 0:k.comp)==="Table"&&(k.compData=(W=k==null?void 0:k.compData)==null?void 0:W.map(I=>{var j,L,E;return(I==null?void 0:I.key)==="header"&&(Array.isArray((j=I.contents)==null?void 0:j[0])?I.contents[0]=(E=I.contents[0])==null?void 0:E.map((x,w)=>{var g;return w===0&&(x.isExistChild=!0,(g=ho.value)!=null&&g.includes(r)&&(x.fatherPath=r)),x}):I.contents=(L=I.contents)==null?void 0:L.map((x,w)=>{var g;return w===0&&(x.isExistChild=!0,(g=ho.value)!=null&&g.includes(r)&&(x.fatherPath=r)),x})),I})),k})),a},Gr=async(a,l,n={})=>{var h,c,d,m,b,u,C,M,k,W,I,j;let r=await A.getPageDataApi({platId:parseInt((h=on==null?void 0:on.value)==null?void 0:h.plat_id),pageName:a}),o=(c=r==null?void 0:r.data)==null?void 0:c.result;if((o==null?void 0:o.length)===0&&(n!=null&&n.originPath)&&(n==null?void 0:n.originPath)!==a){let L=await A.getPageDataApi({platId:parseInt((d=on==null?void 0:on.value)==null?void 0:d.plat_id),pageName:n==null?void 0:n.originPath});if(((b=(m=L==null?void 0:L.data)==null?void 0:m.result)==null?void 0:b.length)>0){let E=await ts((u=L==null?void 0:L.data)==null?void 0:u.result,n,!1);E=E==null?void 0:E.map(async g=>{var V,ae,Z,ge,ze,F,ne,J,se,Be,$e,fe,N,oe,U,De,Ie,je,la,Ta,ee,ca,ue,ta,Se,te,Ne,We,sa,Ya;let S=[],$=(V=Object.keys(g))==null?void 0:V.filter(R=>(R==null?void 0:R.includes("name"))&&R!=="nameContents");for(let R in g)$!=null&&$.find(H=>H===R)&&S.push(g==null?void 0:g[R]);if(S=S.reverse(),(g==null?void 0:g.comp)==="Table"){let R=(ge=(Z=(ae=g==null?void 0:g.compData)==null?void 0:ae.find(X=>(X==null?void 0:X.key)==="tableContents"))==null?void 0:Z.contents)==null?void 0:ge.map(X=>{let ve={};for(let de in X)de!=="id"&&de!=="create_time"&&de!=="update_time"&&de!=="sort"&&de!=="create_user_id"&&de!=="update_user_id"&&de!=="department_id"&&de!=="relatedId"&&(ve[de]=X==null?void 0:X[de]);return X=Object.values(ve),X}),H=(F=(ze=g==null?void 0:g.compData)==null?void 0:ze.find(X=>(X==null?void 0:X.key)==="header"))==null?void 0:F.contents;if(Array.isArray(H==null?void 0:H[0])?(H[0].push({label:"排序",prop:"sort"}),H[0].push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(ne=H[0])!=null&&ne.find(X=>(X==null?void 0:X.prop)==="disabled")&&(H[0]=(J=H[0])==null?void 0:J.filter(X=>(X==null?void 0:X.prop)!=="disabled"),H[0].unshift({label:"",prop:"disabled",sortable:!1}))):(H||(H=[]),H.push({label:"排序",prop:"sort"}),H.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),H!=null&&H.find(X=>(X==null?void 0:X.prop)==="disabled")&&(H=H==null?void 0:H.filter(X=>(X==null?void 0:X.prop)!=="disabled"),H.unshift({label:"",prop:"disabled",sortable:!1}))),H!=null&&H.some(X=>{var ve;return(X==null?void 0:X.calculatorFilter)&&((ve=X==null?void 0:X.calculatorFilter)==null?void 0:ve.includes("Auto"))})&&(R=await mt(R,H,"Auto"),R=R==null?void 0:R.map(X=>Object.values(X))),g!=null&&g.fatherSyncContents){Array.isArray((se=g==null?void 0:g.fatherSyncContents)==null?void 0:se[0])&&(g.fatherSyncContents=(Be=g==null?void 0:g.fatherSyncContents)==null?void 0:Be[0]);let X=($e=Ei.value)==null?void 0:$e.find(ve=>(ve==null?void 0:ve.condition)==="child");g.fatherSyncContents=(fe=g==null?void 0:g.fatherSyncContents)==null?void 0:fe.map(ve=>{var de,va,na,Pe,xa,Me;return((va=ve==null?void 0:ve.menus)==null?void 0:va[((de=ve==null?void 0:ve.menus)==null?void 0:de.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"!==(ve==null?void 0:ve.menus)?ve.menus=(ve==null?void 0:ve.menus)+(X==null?void 0:X.value):((Pe=ve==null?void 0:ve.menus)==null?void 0:Pe[((na=ve==null?void 0:ve.menus)==null?void 0:na.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"===(ve==null?void 0:ve.menus)&&(ve.menus=(Me=ve.menus)==null?void 0:Me.slice(0,((xa=ve.menus)==null?void 0:xa.length)-1)),ve})}if(g!=null&&g.sonSyncContents){Array.isArray((N=g==null?void 0:g.sonSyncContents)==null?void 0:N[0])&&(g.sonSyncContents=(oe=g==null?void 0:g.sonSyncContents)==null?void 0:oe[0]);let X=(U=Ei.value)==null?void 0:U.find(ve=>(ve==null?void 0:ve.condition)==="child");g.sonSyncContents=(De=g==null?void 0:g.sonSyncContents)==null?void 0:De.map(ve=>{var de,va,na,Pe,xa,Me;return((va=ve==null?void 0:ve.menus)==null?void 0:va[((de=ve==null?void 0:ve.menus)==null?void 0:de.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"!==(ve==null?void 0:ve.menus)?ve.menus=(ve==null?void 0:ve.menus)+(X==null?void 0:X.value):((Pe=ve==null?void 0:ve.menus)==null?void 0:Pe[((na=ve==null?void 0:ve.menus)==null?void 0:na.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"===(ve==null?void 0:ve.menus)&&(ve.menus=(Me=ve.menus)==null?void 0:Me.slice(0,((xa=ve.menus)==null?void 0:xa.length)-1)),ve})}if(g!=null&&g.relatedQuotes){Array.isArray((Ie=g==null?void 0:g.relatedQuotes)==null?void 0:Ie[0])&&(g.relatedQuotes=(je=g==null?void 0:g.relatedQuotes)==null?void 0:je[0]);let X=(la=Ei.value)==null?void 0:la.find(ve=>(ve==null?void 0:ve.condition)==="child");g.relatedQuotes=(Ta=g==null?void 0:g.relatedQuotes)==null?void 0:Ta.map(ve=>{var de,va,na,Pe,xa,Me;return((va=ve==null?void 0:ve.menus)==null?void 0:va[((de=ve==null?void 0:ve.menus)==null?void 0:de.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"!==(ve==null?void 0:ve.menus)?ve.menus=(ve==null?void 0:ve.menus)+(X==null?void 0:X.value):((Pe=ve==null?void 0:ve.menus)==null?void 0:Pe[((na=ve==null?void 0:ve.menus)==null?void 0:na.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"===(ve==null?void 0:ve.menus)&&(ve.menus=(Me=ve.menus)==null?void 0:Me.slice(0,((xa=ve.menus)==null?void 0:xa.length)-1)),ve})}g={filter:(ca=(ee=g==null?void 0:g.compData)==null?void 0:ee.find(X=>(X==null?void 0:X.key)==="filter"))==null?void 0:ca.contents,key:g==null?void 0:g.comp,name:S,tableColumns:H,tableContents:R,menuFilter:g==null?void 0:g.menuFilter,fatherSyncContents:g==null?void 0:g.fatherSyncContents,relatedQuotes:g==null?void 0:g.relatedQuotes,sonSyncContents:g==null?void 0:g.sonSyncContents}}else{let R=(Se=(ta=(ue=g==null?void 0:g.compData)==null?void 0:ue.find(X=>(X==null?void 0:X.key)==="formContent"))==null?void 0:ta.contents)==null?void 0:Se.map(X=>(X==null?void 0:X.value)??"");R=[R];let H=(We=(Ne=(te=g==null?void 0:g.compData)==null?void 0:te.find(X=>(X==null?void 0:X.key)==="formContent"))==null?void 0:Ne.contents)==null?void 0:We.map(X=>(X.value="",X));g={contents:R,filter:(Ya=(sa=g==null?void 0:g.compData)==null?void 0:sa.find(X=>(X==null?void 0:X.key)==="filter"))==null?void 0:Ya.contents,key:g==null?void 0:g.comp,name:S,value:H,fatherSyncContents:g==null?void 0:g.fatherSyncContents,relatedQuotes:g==null?void 0:g.relatedQuotes,sonSyncContents:g==null?void 0:g.sonSyncContents}}return g.isShow=!1,g}),E=await Promise.all(E);let x=[{key:"menuPath",contents:[{path:a,fatherPath:(k=(M=(C=L==null?void 0:L.data)==null?void 0:C.result)==null?void 0:M[0])==null?void 0:k.father_name,isShow:!1}]},{key:a,contents:E}];await A.createPlatFormDataApi({platId:parseInt((W=on==null?void 0:on.value)==null?void 0:W.plat_id),changeData:x});let w=await A.getPageDataApi({platId:parseInt((I=on==null?void 0:on.value)==null?void 0:I.plat_id),pageName:a});o=(j=w==null?void 0:w.data)==null?void 0:j.result}}l&&await cc(o,!!(n!=null&&n.originPath));let s=await ts(o,n);return l&&(s=await Gp(s)),s==null?void 0:s.filter(L=>L)},us=async a=>{var r,o,s,h,c,d,m,b,u,C,M;let l=(r=a==null?void 0:a.menus)==null?void 0:r.join("/");a!=null&&a.endChildMenu&&(a==null?void 0:a.endChildMenu)!==""&&(l==null?void 0:l[(l==null?void 0:l.length)-1])==="/"&&(l=l+(a==null?void 0:a.endChildMenu)),(l==null?void 0:l[(l==null?void 0:l.length)-1])==="/"&&(l=l+((s=(o=a.value)==null?void 0:o.split(" "))==null?void 0:s[0]));let n=await Gr(l,!1);if(n=(h=n==null?void 0:n.filter(k=>{var W,I;return(k==null?void 0:k.name)===((I=a==null?void 0:a.groups)==null?void 0:I[((W=a==null?void 0:a.groups)==null?void 0:W.length)-1])}))==null?void 0:h[0],(d=(c=n==null?void 0:n.compData)==null?void 0:c.find(k=>(k==null?void 0:k.key)==="tableContents"))!=null&&d.contents){n=(b=(m=n==null?void 0:n.compData)==null?void 0:m.find(W=>(W==null?void 0:W.key)==="tableContents"))==null?void 0:b.contents;let k=((u=a==null?void 0:a.words)==null?void 0:u[0])??(a==null?void 0:a.prop);return n=n==null?void 0:n.filter(W=>{var I,j,L,E;return(W==null?void 0:W[a!=null&&a.endChildMenu?k:(I=a==null?void 0:a.words)==null?void 0:I[0]])===(a!=null&&a.relatedWords&&((j=a==null?void 0:a.relatedWords)==null?void 0:j.length)>0?(E=(L=a.value)==null?void 0:L.split(" "))==null?void 0:E[0]:a.value)}),n==null?void 0:n[0]}else{let k=(M=(C=n==null?void 0:n.compData)==null?void 0:C.find(I=>(I==null?void 0:I.key)==="formContent"))==null?void 0:M.contents,W={};return k==null||k.forEach(I=>{W[I.prop]=I.value}),W}},Yp={key:0,class:"extra-button-content"},Jp={class:"table-operator-wrap"},Xp={key:0,class:"extra-button-filter"},Zp={key:1,class:"extra-header"},Qp=["onClick"],ef={class:"table-op-text"},af={class:"table-op-text"},lf={class:"drop-menu",style:{width:"120px"}},rf=["onClick"],nf={key:0},of={key:1},tf=["onClick"],sf={class:"table-op-text"},cf={key:1,class:"extra-button-content tabs-button-wrapper"},uf={class:"table-operator-wrap"},df={class:"extra-button-filter"},pf={key:0,class:"extra-header"},ff={class:"table-op-action"},hf={class:"table-op-text"},vf={class:"drop-menu",style:{width:"120px"}},mf={key:0},yf={key:1},gf=["onClick"],bf={class:"table-op-text"},kf={__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 n=l,r=a,o=()=>{const $=(r==null?void 0:r.menuFilter)||[];return Array.isArray($)&&($==null?void 0:$.some(V=>{const ae=typeof V=="string"?V:JSON.stringify(V);return ae==null?void 0:ae.includes("HideGroup=Yes")}))},s=e.ref(""),h=e.ref(!1),c=e.ref(!1),d=e.ref([]),m=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 u($,V){return $.map(ae=>{const Z={...ae};return V.forEach(ge=>{delete Z[ge]}),Z})}function C($){if(!$||$.t!=="n")return($==null?void 0:$.v)??"";const V=$.v;if($.z){const ae=String($.z).toLowerCase(),Z=["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 F of Z)if(ae.includes(F))return M(V);const ge=/[ymdhms]/.test(ae),ze=/^[0#\.\,\s]+$/.test(ae.replace(/[\\\/\-:]/g,""));if(ge&&!ze)return M(V)}if(V>=1&&V<=73050){if(V<5e3)return V;if(V>=5e3&&V<4e4){const ae=Math.floor((V-25569)/365.25)+1970;return ae>=1970&&ae<=2e3&&$.z&&/[ymd]/.test(String($.z).toLowerCase())?M(V):V}if(V>=4e4)return M(V)}return V}function M($){if(typeof $!="number")return $;try{const V=new Date(($-25569)*86400*1e3);if(isNaN(V.getTime()))return $;const ae=V.getFullYear(),Z=String(V.getMonth()+1).padStart(2,"0"),ge=String(V.getDate()).padStart(2,"0");return`${ae}-${Z}-${ge}`}catch{return $}}const k=$=>{const V=$.raw;if(!V)return;const ae=new FileReader;ae.onload=Z=>{try{const ge=new Uint8Array(Z.target.result),ze=ce.readSync(ge,{type:"array"}),F=ze.SheetNames[0],ne=ze.Sheets[F],se=ce.utils.decode_range(ne["!ref"]).e.c+1,Be=new Array(se).fill(""),$e=[];for(const De in ne){if(De[0]==="!")continue;const{r:Ie,c:je}=ce.utils.decode_cell(De),la=ne[De];let Ta=C(la);if((Ta==null||Ta==="")&&(Ta=""),Ie===0)Be[je]=Ta;else{if(!$e[Ie-1]){$e[Ie-1]={};for(let ee=0;ee<se;ee++)$e[Ie-1][`col_${ee}`]=""}$e[Ie-1][`col_${je}`]=Ta}}for(let De=0;De<se;De++)Be[De]===void 0&&(Be[De]="");const fe=[];for(let De=0;De<Be.length;De++)(!Be[De]||Be[De].toString().trim()==="")&&fe.push(De);let N,oe;(fe==null?void 0:fe.length)>0?(Ua.ElMessage.warning("存在键为空的列,已自动过滤,请检查补充"),N=Be.filter((De,Ie)=>!fe.includes(Ie)),oe=u($e,fe==null?void 0:fe.map(De=>`col_${De}`))):(N=Be,oe=$e);const U=$e==null?void 0:$e[0];if(!(U!=null&&U.hasOwnProperty("col_0")))return Ua.ElMessage.error("导入的数据列不匹配,请检查是否错位");n("getImportData",N,oe)}catch(ge){throw Ua.ElMessage.error(ge.message),new Error(ge.message)}},ae.readAsArrayBuffer(V)},W=$=>{var ae;const V=(ae=d.value)==null?void 0:ae.reduce((Z,ge,ze)=>(ze===0?Z[ge.label]=$:Z[ge.label]=ge==null?void 0:ge.value,Z),{});n("filter",V,$,!0)},I=($,V={})=>{n("buttonClick",$,"",V)},j=$=>{var V,ae;d.value=(ae=(V=ce.getColumnChild(A.cloneDeep($)))==null?void 0:V.filter(Z=>(Z==null?void 0:Z.label)!==""&&(Z==null?void 0:Z.label)!=="操作"))==null?void 0:ae.map(Z=>({label:(Z==null?void 0:Z.label)??"",value:"",name:(Z==null?void 0:Z.prop)??"",isFormColHidden:Z==null?void 0:Z.isTableColHidden,width:2,prop:(Z==null?void 0:Z.prop)??""}))},L=e.ref(!1),E=$=>{var V;if(($==null?void 0:$.buttonName)==="确认"&&(n("filter",$==null?void 0:$.content),L.value=($==null?void 0:$.content)&&Object.values($==null?void 0:$.content).length>0),($==null?void 0:$.buttonName)==="清空"){const ae=A.cloneDeep($==null?void 0:$.content);for(const Z in ae)ae[Z]="";d.value=(V=d.value)==null?void 0:V.map(Z=>({...Z,value:""})),n("filter",ae),L.value=!1}h.value=!1},x=()=>{h.value=!h.value,c.value=!0},w=()=>{var V,ae;d.value=(V=d.value)==null?void 0:V.map(Z=>({...Z,value:""}));const $=(ae=d.value)==null?void 0:ae.reduce((Z,ge)=>(Z[ge.label]=ge.value,Z),{});n("filter",$)},g=e.ref(null);let S;return S=$=>{var ge;if(!h.value)return;const V=(ge=g==null?void 0:g.value)==null?void 0:ge.$el,ae=V==null?void 0:V.contains($.target);let Z=!1;document.querySelectorAll(".el-popover, .el-popper").forEach(ze=>{ze.contains($.target)&&(Z=!0)}),!ae&&!Z&&(h.value=!1)},e.onMounted(()=>{document.addEventListener("click",S),j(r.columns)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",S)}),e.watch(()=>r.columns,()=>{j(r.columns)},{deep:!0,immediate:!0}),($,V)=>{var ne,J,se,Be,$e,fe,N,oe;const ae=e.resolveComponent("el-icon"),Z=e.resolveComponent("svg-icon"),ge=e.resolveComponent("el-input"),ze=e.resolveComponent("el-upload"),F=e.resolveComponent("el-button");return a.pageLayout==="vertical"?(e.openBlock(),e.createElementBlock("div",Yp,[o()?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(a.compName?"table-name-wrap":""),style:e.normalizeStyle({background:(r==null?void 0:r.level)>1?"transparent":"var(--ssgroup-background)",paddingLeft:((r==null?void 0:r.level)-1)*12+"px",fontWeight:600-((r==null?void 0:r.level)-1)*100>=400?600-((r==null?void 0:r.level)-1)*100:400,fontSize:17-(r==null?void 0:r.level)>=14?17-(r==null?void 0:r.level)+"px":"14px"})},e.toDisplayString(a.compName),7)),e.createElementVNode("div",Jp,[r!=null&&r.filterShow?(e.openBlock(),e.createElementBlock("div",Xp,[e.createVNode($u,{trigger:"contextmenu",ref_key:"popOverRef",ref:g,title:"",width:800,placement:"bottom-start",isVisible:h.value,"onUpdate:isVisible":V[4]||(V[4]=U=>h.value=U)},{reference:e.withCtx(()=>{var U,De,Ie,je;return[e.createVNode(ge,{modelValue:s.value,"onUpdate:modelValue":V[0]||(V[0]=la=>s.value=la),style:{"min-width":"80px"},placeholder:L.value?(Ie=(De=(U=a.filterValues)==null?void 0:U.filter(la=>la))==null?void 0:De.slice(0,3))==null?void 0:Ie.join("/"):"搜索","prefix-icon":e.unref(Ua.search_default),clearable:"",onInput:W,disabled:((je=d.value)==null?void 0:je.length)===0},{suffix:e.withCtx(()=>{var la,Ta;return[!s.value&&((Ta=(la=a.filterValues)==null?void 0:la.filter(ee=>ee))!=null&&Ta.join("/"))?(e.openBlock(),e.createBlock(ae,{key:0,style:{cursor:"pointer"},onClick:w},{default:e.withCtx(()=>[e.createVNode(e.unref(Ua.circle_close_default))]),_:1})):e.createCommentVNode("",!0)]}),append:e.withCtx(()=>[e.createElementVNode("span",{title:"条件查询",onClick:e.withModifiers(x,["stop"])},[e.createVNode(Z,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:e.withCtx(()=>[c.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"form-content-value",onKeydown:V[1]||(V[1]=e.withModifiers(()=>{},["stop"])),onKeyup:V[2]||(V[2]=e.withModifiers(()=>{},["stop"])),onKeypress:V[3]||(V[3]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(),e.createBlock(nl.ssForm,{rowContents:d.value,buttonValue:m.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:m.value,isStartJustify:!1,onOnButtonClick:E},null,8,["rowContents","buttonValue"]))],32)):e.createCommentVNode("",!0)]),_:1},8,["isVisible"])])):e.createCommentVNode("",!0),a.buttons&&((ne=a.buttons)==null?void 0:ne.length)>0?(e.openBlock(),e.createElementBlock("div",Zp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((J=a.buttons)==null?void 0:J.filter(U=>a.isDevMode||(U==null?void 0:U.label)!=="修改模板"),(U,De)=>{var Ie;return e.openBlock(),e.createElementBlock("div",{class:"extra-contents",key:De},[(U==null?void 0:U.type)==="upload"?(e.openBlock(),e.createBlock(ze,{key:0,class:"upload-button-wrap","on-change":k,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1,disabled:!!a.lockingPage},{default:e.withCtx(()=>{var je;return[e.createElementVNode("div",{class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}]),onClick:la=>I(U==null?void 0:U.label)},[e.createVNode(Z,{class:"table-op-icon",name:(je=b==null?void 0:b.find(la=>(la==null?void 0:la.label)===(U==null?void 0:U.label)))==null?void 0:je.icon},null,8,["name"]),e.createElementVNode("span",ef,e.toDisplayString(U==null?void 0:U.label),1)],10,Qp)]}),_:2},1032,["disabled"])):e.createCommentVNode("",!0),(U==null?void 0:U.type)==="popover"?(e.openBlock(),e.createBlock(nl._sfc_main,{key:1},{dropTitle:e.withCtx(()=>{var je;return[e.createElementVNode("div",{class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}])},[e.createVNode(Z,{class:"table-op-icon",name:(je=b==null?void 0:b.find(la=>(la==null?void 0:la.label)===(U==null?void 0:U.label)))==null?void 0:je.icon},null,8,["name"]),e.createElementVNode("span",af,e.toDisplayString(U==null?void 0:U.label),1)],2)]}),dropMenu:e.withCtx(()=>[e.createElementVNode("div",lf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U==null?void 0:U.contents,je=>{var la,Ta;return e.openBlock(),e.createElementBlock("div",{key:je==null?void 0:je.label,class:e.normalizeClass(["table-op-drop-item",{"is-disabled":!!a.lockingPage}]),onClick:ee=>!a.lockingPage&&I(je==null?void 0:je.label)},[e.createTextVNode(e.toDisplayString(je==null?void 0:je.label),1),(la=je==null?void 0:je.label)!=null&&la.includes("选中")?(e.openBlock(),e.createElementBlock("span",nf,"("+e.toDisplayString(a.selectNums)+")",1)):e.createCommentVNode("",!0),(Ta=je==null?void 0:je.label)!=null&&Ta.includes("全部")?(e.openBlock(),e.createElementBlock("span",of,"("+e.toDisplayString(a.dataNums)+")",1)):e.createCommentVNode("",!0)],10,rf)}),128))])]),_:2},1024)):e.createCommentVNode("",!0),!(U!=null&&U.type)||(U==null?void 0:U.type)==="methodButton"?(e.openBlock(),e.createElementBlock("div",{key:2,id:"themeButton",class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}]),onClick:je=>!a.lockingPage&&I(U==null?void 0:U.label,U)},[e.createVNode(Z,{class:"table-op-icon",name:((Ie=b==null?void 0:b.find(je=>(je==null?void 0:je.label)===(U==null?void 0:U.label)))==null?void 0:Ie.icon)??"normal"},null,8,["name"]),e.createElementVNode("span",sf,e.toDisplayString(U==null?void 0:U.label),1)],10,tf)):e.createCommentVNode("",!0)])}),128))])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createElementBlock("div",cf,[e.createElementVNode("div",uf,[e.createElementVNode("div",df,[e.createVNode(ge,{modelValue:s.value,"onUpdate:modelValue":V[5]||(V[5]=U=>s.value=U),style:{"min-width":"80px"},placeholder:L.value?($e=(Be=(se=a.filterValues)==null?void 0:se.filter(U=>U))==null?void 0:Be.slice(0,3))==null?void 0:$e.join("/"):"搜索","prefix-icon":e.unref(Ua.search_default),clearable:"",onInput:W,disabled:((fe=d.value)==null?void 0:fe.length)===0},{suffix:e.withCtx(()=>{var U,De;return[!s.value&&((De=(U=a.filterValues)==null?void 0:U.filter(Ie=>Ie))!=null&&De.join("/"))?(e.openBlock(),e.createBlock(ae,{key:0,style:{cursor:"pointer"},onClick:w},{default:e.withCtx(()=>[e.createVNode(e.unref(Ua.circle_close_default))]),_:1})):e.createCommentVNode("",!0)]}),append:e.withCtx(()=>[e.createElementVNode("span",{title:"条件查询",onClick:e.withModifiers(x,["stop"])},[e.createVNode(Z,{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",pf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((oe=a.buttons)==null?void 0:oe.filter(U=>a.isDevMode||(U==null?void 0:U.label)!=="修改模板"),(U,De)=>{var Ie;return e.openBlock(),e.createElementBlock("div",{class:"extra-contents",key:De},[(U==null?void 0:U.type)==="upload"?(e.openBlock(),e.createBlock(ze,{key:0,class:"upload-button-wrap","on-change":k,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1},{default:e.withCtx(()=>{var je;return[e.createElementVNode("div",ff,[e.createVNode(Z,{class:"table-op-icon",name:(je=b==null?void 0:b.find(la=>(la==null?void 0:la.label)===(U==null?void 0:U.label)))==null?void 0:je.icon},null,8,["name"]),e.createElementVNode("span",hf,e.toDisplayString(U==null?void 0:U.label),1)])]}),_:2},1024)):e.createCommentVNode("",!0),(U==null?void 0:U.type)==="popover"?(e.openBlock(),e.createBlock(nl._sfc_main,{key:1},{dropTitle:e.withCtx(()=>[(U==null?void 0:U.type)==="popover"?(e.openBlock(),e.createBlock(F,{key:0,style:{background:"transparent",color:"#000000"}},{icon:e.withCtx(()=>{var je;return[e.createVNode(Z,{class:"table-op-icon",name:(je=b==null?void 0:b.find(la=>(la==null?void 0:la.label)===(U==null?void 0:U.label)))==null?void 0:je.icon},null,8,["name"])]}),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(U==null?void 0:U.label),1)]),_:2},1024)):e.createCommentVNode("",!0)]),dropMenu:e.withCtx(()=>[e.createElementVNode("div",vf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U==null?void 0:U.contents,je=>(e.openBlock(),e.createBlock(F,{key:je==null?void 0:je.label,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:la=>I(je==null?void 0:je.label)},{default:e.withCtx(()=>{var la,Ta;return[e.createTextVNode(e.toDisplayString(je==null?void 0:je.label),1),(la=je==null?void 0:je.label)!=null&&la.includes("选中")?(e.openBlock(),e.createElementBlock("span",mf,"("+e.toDisplayString(a.selectNums)+")",1)):e.createCommentVNode("",!0),(Ta=je==null?void 0:je.label)!=null&&Ta.includes("全部")?(e.openBlock(),e.createElementBlock("span",yf,"("+e.toDisplayString(a.dataNums)+")",1)):e.createCommentVNode("",!0)]}),_:2},1032,["onClick"]))),128))])]),_:2},1024)):e.createCommentVNode("",!0),!(U!=null&&U.type)||(U==null?void 0:U.type)==="methodButton"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["table-op-action",{"is-disabled":!!a.lockingPage}]),id:"themeButton",onClick:je=>!a.lockingPage&&I(U==null?void 0:U.label,U)},[e.createVNode(Z,{class:"table-op-icon",name:(Ie=b==null?void 0:b.find(je=>(je==null?void 0:je.label)===(U==null?void 0:U.label)))==null?void 0:Ie.icon},null,8,["name"]),e.createElementVNode("span",bf,e.toDisplayString(U==null?void 0:U.label),1)],10,gf)):e.createCommentVNode("",!0)])}),128))])):e.createCommentVNode("",!0)])]))}}},xf=Xl._export_sfc(kf,[["__scopeId","data-v-44a17652"]]),wf={__name:"index",props:{columns:Array,tableData:Array},setup(a){return(l,n)=>{const r=e.resolveComponent("el-table-column"),o=e.resolveComponent("el-table");return e.openBlock(),e.createBlock(o,{data:a.tableData,style:{width:"100%"},stripe:"","max-height":"500"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.columns,s=>{var h;return e.openBlock(),e.createBlock(r,{key:s==null?void 0:s.prop,label:s==null?void 0:s.label,prop:s==null?void 0:s.prop,fixed:(s==null?void 0:s.prop)==="operate"?"right":s==null?void 0:s.fixed,align:(s==null?void 0:s.align)??"left","show-overflow-tooltip":(s==null?void 0:s.showOverflowTooltip)??!0,width:s==null?void 0:s.width,"min-width":(s==null?void 0:s.minWidth)||((s==null?void 0:s.prop)==="operate"?80:(((h=s==null?void 0:s.label)==null?void 0:h.length)*2||4)*27)},{default:e.withCtx(c=>[e.renderSlot(l.$slots,"content",{row:c.row,column:c.column,$index:c.$index,scope:c}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.children,(d,m)=>(e.openBlock(),e.createBlock(nl._sfc_main$2,{key:m,column:d,tableData:a.tableData},e.createSlots({_:2},[e.renderList(l.$slots,(b,u)=>({name:u,fn:e.withCtx(({row:C,slotData:M,item:k,column:W})=>[e.renderSlot(l.$slots,u,e.mergeProps({ref_for:!0},M??C,{item:k??d,slotData:M??C,row:C,column:W,columnProp:d}))])}))]),1032,["column","tableData"]))),128))]),_:2},1032,["label","prop","fixed","align","show-overflow-tooltip","width","min-width"])}),128))]),_:3},8,["data"])}}};class _f extends Tl.Loader{constructor(l){super(l),this.littleEndian=!0}load(l,n,r,o){const s=this,h=new Tl.FileLoader(s.manager);h.setPath(s.path),h.setResponseType("arraybuffer"),h.setRequestHeader(s.requestHeader),h.setWithCredentials(s.withCredentials),h.load(l,function(c){try{n(s.parse(c))}catch(d){o?o(d):console.error(d),s.manager.itemError(l)}},r,o)}_getDataView(l,n,r,o){switch(r){case"F":return o===8?l.getFloat64(n,this.littleEndian):l.getFloat32(n,this.littleEndian);case"I":return o===1?l.getInt8(n):o===2?l.getInt16(n,this.littleEndian):l.getInt32(n,this.littleEndian);case"U":return o===1?l.getUint8(n):o===2?l.getUint16(n,this.littleEndian):l.getUint32(n,this.littleEndian)}}parse(l){function n(M,k){const W=M.length,I=new Uint8Array(k);let j=0,L=0,E,x,w;do if(E=M[j++],E<32){if(E++,L+E>k)throw new Error("Output buffer is not large enough");if(j+E>W)throw new Error("Invalid compressed data");do I[L++]=M[j++];while(--E)}else{if(x=E>>5,w=L-((E&31)<<8)-1,j>=W)throw new Error("Invalid compressed data");if(x===7&&(x+=M[j++],j>=W))throw new Error("Invalid compressed data");if(w-=M[j++],L+x+2>k)throw new Error("Output buffer is not large enough");if(w<0)throw new Error("Invalid compressed data");if(w>=L)throw new Error("Invalid compressed data");do I[L++]=I[w++];while(--x+2)}while(j<W);return I}function r(M){const k={},W=new Uint8Array(M);let I="",j="",L=0,E=!1;const x=W.length;for(;L<x&&E===!1;){const $=String.fromCharCode(W[L++]);$===`
|
|
2
2
|
`||$==="\r"?(j.trim().toLowerCase().startsWith("data")&&(E=!0),j=""):j+=$,I+=$}const w=I.search(/[\r\n]DATA\s(\S*)\s/i),g=/[\r\n]DATA\s(\S*)\s/i.exec(I.slice(w-1));if(k.data=g[1],k.headerLen=g[0].length+w,k.str=I.slice(0,k.headerLen),k.str=k.str.replace(/#.*/gi,""),k.version=/^VERSION (.*)/im.exec(k.str),k.fields=/^FIELDS (.*)/im.exec(k.str),k.size=/^SIZE (.*)/im.exec(k.str),k.type=/^TYPE (.*)/im.exec(k.str),k.count=/^COUNT (.*)/im.exec(k.str),k.width=/^WIDTH (.*)/im.exec(k.str),k.height=/^HEIGHT (.*)/im.exec(k.str),k.viewpoint=/^VIEWPOINT (.*)/im.exec(k.str),k.points=/^POINTS (.*)/im.exec(k.str),k.version!==null&&(k.version=parseFloat(k.version[1])),k.fields=k.fields!==null?k.fields[1].split(" "):[],k.type!==null&&(k.type=k.type[1].split(" ")),k.width!==null&&(k.width=parseInt(k.width[1])),k.height!==null&&(k.height=parseInt(k.height[1])),k.viewpoint!==null&&(k.viewpoint=k.viewpoint[1]),k.points!==null&&(k.points=parseInt(k.points[1],10)),k.points===null&&(k.points=k.width*k.height),k.size!==null&&(k.size=k.size[1].split(" ").map(function($){return parseInt($,10)})),k.count!==null)k.count=k.count[1].split(" ").map(function($){return parseInt($,10)});else{k.count=[];for(let $=0,V=k.fields.length;$<V;$++)k.count.push(1)}k.offset={};let S=0;for(let $=0,V=k.fields.length;$<V;$++)k.data==="ascii"?k.offset[k.fields[$]]=$:(k.offset[k.fields[$]]=S,S+=k.size[$]*k.count[$]);return k.rowSize=S,k}const o=r(l),s=[],h=[],c=[],d=[],m=[],b=new Tl.Color;if(o.data==="ascii"){const M=o.offset,I=new TextDecoder().decode(l).slice(o.headerLen).split(`
|
|
3
3
|
`);for(let j=0,L=I.length;j<L;j++){if(I[j]==="")continue;const E=I[j].split(" ");if(M.x!==void 0&&(s.push(parseFloat(E[M.x])),s.push(parseFloat(E[M.y])),s.push(parseFloat(E[M.z]))),M.rgb!==void 0){const x=o.fields.findIndex(Z=>Z==="rgb"),w=o.type[x],g=parseFloat(E[M.rgb]);let S=g;if(w==="F"){const Z=new Float32Array(1);Z[0]=g,S=new Int32Array(Z.buffer)[0]}const $=(S>>16&255)/255,V=(S>>8&255)/255,ae=(S>>0&255)/255;b.setRGB($,V,ae,Tl.SRGBColorSpace),c.push(b.r,b.g,b.b)}M.normal_x!==void 0&&(h.push(parseFloat(E[M.normal_x])),h.push(parseFloat(E[M.normal_y])),h.push(parseFloat(E[M.normal_z]))),M.intensity!==void 0&&d.push(parseFloat(E[M.intensity])),M.label!==void 0&&m.push(parseInt(E[M.label]))}}if(o.data==="binary_compressed"){const M=new Uint32Array(l.slice(o.headerLen,o.headerLen+8)),k=M[0],W=M[1],I=n(new Uint8Array(l,o.headerLen+8,k),W),j=new DataView(I.buffer),L=o.offset;for(let E=0;E<o.points;E++){if(L.x!==void 0){const x=o.fields.indexOf("x"),w=o.fields.indexOf("y"),g=o.fields.indexOf("z");s.push(this._getDataView(j,o.points*L.x+o.size[x]*E,o.type[x],o.size[x])),s.push(this._getDataView(j,o.points*L.y+o.size[w]*E,o.type[w],o.size[w])),s.push(this._getDataView(j,o.points*L.z+o.size[g]*E,o.type[g],o.size[g]))}if(L.rgb!==void 0){const x=o.fields.indexOf("rgb"),w=j.getUint8(o.points*L.rgb+o.size[x]*E+2)/255,g=j.getUint8(o.points*L.rgb+o.size[x]*E+1)/255,S=j.getUint8(o.points*L.rgb+o.size[x]*E+0)/255;b.setRGB(w,g,S,Tl.SRGBColorSpace),c.push(b.r,b.g,b.b)}if(L.normal_x!==void 0){const x=o.fields.indexOf("normal_x"),w=o.fields.indexOf("normal_y"),g=o.fields.indexOf("normal_z");h.push(this._getDataView(j,o.points*L.normal_x+o.size[x]*E,o.type[x],o.size[x])),h.push(this._getDataView(j,o.points*L.normal_y+o.size[w]*E,o.type[w],o.size[w])),h.push(this._getDataView(j,o.points*L.normal_z+o.size[g]*E,o.type[g],o.size[g]))}if(L.intensity!==void 0){const x=o.fields.indexOf("intensity");d.push(this._getDataView(j,o.points*L.intensity+o.size[x]*E,o.type[x],o.size[x]))}if(L.label!==void 0){const x=o.fields.indexOf("label");m.push(j.getInt32(o.points*L.label+o.size[x]*E,this.littleEndian))}}}if(o.data==="binary"){const M=new DataView(l,o.headerLen),k=o.offset;for(let W=0,I=0;W<o.points;W++,I+=o.rowSize){if(k.x!==void 0){const j=o.fields.indexOf("x"),L=o.fields.indexOf("y"),E=o.fields.indexOf("z");s.push(this._getDataView(M,I+k.x,o.type[j],o.size[j])),s.push(this._getDataView(M,I+k.y,o.type[L],o.size[L])),s.push(this._getDataView(M,I+k.z,o.type[E],o.size[E]))}if(k.rgb!==void 0){const j=M.getUint8(I+k.rgb+2)/255,L=M.getUint8(I+k.rgb+1)/255,E=M.getUint8(I+k.rgb+0)/255;b.setRGB(j,L,E,Tl.SRGBColorSpace),c.push(b.r,b.g,b.b)}if(k.normal_x!==void 0){const j=o.fields.indexOf("normal_x"),L=o.fields.indexOf("normal_y"),E=o.fields.indexOf("normal_z");h.push(this._getDataView(M,I+k.normal_x,o.type[j],o.size[j])),h.push(this._getDataView(M,I+k.normal_y,o.type[L],o.size[L])),h.push(this._getDataView(M,I+k.normal_z,o.type[E],o.size[E]))}if(k.intensity!==void 0){const j=o.fields.indexOf("intensity");d.push(this._getDataView(M,I+k.intensity,o.type[j],o.size[j]))}k.label!==void 0&&m.push(M.getInt32(I+k.label,this.littleEndian))}}const u=new Tl.BufferGeometry;s.length>0&&u.setAttribute("position",new Tl.Float32BufferAttribute(s,3)),h.length>0&&u.setAttribute("normal",new Tl.Float32BufferAttribute(h,3)),c.length>0&&u.setAttribute("color",new Tl.Float32BufferAttribute(c,3)),d.length>0&&u.setAttribute("intensity",new Tl.Float32BufferAttribute(d,1)),m.length>0&&u.setAttribute("label",new Tl.Int32BufferAttribute(m,1)),u.computeBoundingSphere();const C=new Tl.PointsMaterial({size:.005});return c.length>0&&(C.vertexColors=!0),new Tl.Points(u,C)}}const Sf=A.useModelComp(A.pinia),{systemPath:ds}=A.storeToRefs(Sf),vo=e.ref(),ps=new WeakMap;function Ef(a,l,n,r,o){const s=async C=>{try{const M=await A.platformDownloadFile({url:C});if(M.status!==200)throw new Error(`下载失败: ${M.status}`);return M.data}catch(M){throw console.error("addModelFromUrl失败:",M),M}},h=C=>new Promise((M,k)=>{const W=new FileReader;W.onload=I=>{try{const j=I.target.result,E=new Mn.MTLLoader().parse(j);E.preload(),M(E)}catch(j){k(j)}},W.onerror=()=>{k(new Error("MTL文件读取失败"))},W.readAsText(C)}),c=async C=>{const M={materials:{},create:function(k){return this.materials[k]?this.materials[k]:(console.warn(`Material '${k}' not found, using default material`),new Tl.MeshPhongMaterial({color:8947848,side:Tl.DoubleSide}))},getAsArray:function(){const k=[];for(const W in this.materials)k.push(this.materials[W]);return k},preload:function(){for(const k in this.materials)this.materials[k].map&&(this.materials[k].map.needsUpdate=!0)}};for(const k of C){const W=await h(k);Object.assign(M.materials,W.materials)}return M.preload(),M},d=async(C,M=[])=>new Promise((k,W)=>{const I=new FileReader;I.onload=async j=>{try{const L=j.target.result;let E=null;M&&M.length>0&&(M.length===1?E=await h(M[0]):E=await c(M));const x=new Mn.OBJLoader;E&&x.setMaterials(E);const w=x.parse(L);E||w.traverse(g=>{g.isMesh&&(g.material=new Tl.MeshPhongMaterial({color:8947848,side:Tl.DoubleSide}))}),k(w)}catch(L){W(L)}},I.onerror=()=>{W(new Error("OBJ文件读取失败"))},I.readAsText(C)}),m=async C=>{var M;try{n.value=!0;const{scene:k}=a();if(!k)throw new Error("Scene not initialized");o();const W=[];for(let I=0;I<C.length;I++){const j=C[I];r.value=`正在加载模型 ${I+1}/${C.length}...`;const L=await s(j.objUrl),E=((M=j.objUrl)==null?void 0:M.split("/").pop())||`model_${I}.obj`,x=new File([L],E,{type:L.type});let w=[];if(j.mtlUrls){const S=Array.isArray(j.mtlUrls)?j.mtlUrls:[j.mtlUrls];for(let $=0;$<S.length;$++){const V=S[$],ae=await s(V),Z=(V==null?void 0:V.split("/").pop())||`material_${I}_${$}.mtl`,ge=new File([ae],Z,{type:ae.type});w.push(ge)}}const g=await d(x,w);k.add(g),l.value.push(g),W.push(g)}return n.value=!1,W}catch(k){throw console.error("加载模型失败:",k),n.value=!1,k}},b=async(C,M,k=[],W=[])=>{let I;const j=C.toLowerCase();switch(j){case".txt":case".cpt":case".obj":const L=await M.text();if(j===".txt"||j===".cpt"){const ee=/^(?!.*\bf\b)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?$/gm,ue=[...L.matchAll(ee)].map(te=>({x:parseFloat(te[1]),y:parseFloat(te[2]),z:parseFloat(te[3])})),ta=new Tl.BufferGeometry,Se=ue.flatMap(te=>[te.x,te.y,te.z]);if(ta.setAttribute("position",new Tl.Float32BufferAttribute(Se,3)),j===".txt"){const te=new Tl.PointsMaterial({color:"#5B5C99",size:1,sizeAttenuation:!1});I=new Tl.Points(ta,te)}else if(j===".cpt"){const te=new Tl.LineBasicMaterial({color:"#5B5C99",linewidth:100});I=new Tl.Line(ta,te)}}else if(j===".obj"){const ee=new Mn.OBJLoader;if(k&&k.length>0){const ca=new Mn.MTLLoader;for(const ue of k){const ta=await ue.text(),Se=ca.parse(ta);Se.preload(),ee.setMaterials(Se);break}}I=ee.parse(L),(!k||k.length===0)&&I.traverse(ca=>{ca.isMesh&&(ca.material=new Tl.MeshPhongMaterial({color:"#B3B3D4"})),ca instanceof Tl.Mesh&&(ca.material.side=Tl.DoubleSide)})}break;case".stl":const E=await M.arrayBuffer(),w=new Mn.STLLoader().parse(E),g=new Tl.MeshPhongMaterial({color:"#B3B3D4",side:Tl.DoubleSide});I=new Tl.Mesh(w,g);break;case".nc":const S=["Mach_B_Axis_0.STL","Mach_C_Axis_0.STL","Mach_X_Axis_0.STL","Mach_Y_Axis_0.STL","Mach_Z_Axis_0.STL","Mach_Spindle_0.STL"],$={"Mach_Y_Axis_0.STL":"rgb(128,118,152)","Mach_B_Axis_0.STL":"rgb(204,143,89)","Mach_C_Axis_0.STL":"rgb(145,245,251)","Mach_X_Axis_0.STL":"rgb(125,158,192)","Mach_Z_Axis_0.STL":"rgb(248,228,118)","Mach_Spindle_0.STL":"rgb(145,145,145)"},V=new Tl.Group,ae=S.map(ee=>new Promise((ca,ue)=>{new Mn.STLLoader().load(ds.value===""?`/model/${ee}`:`${ds.value}\\${ee}`,Se=>{const te=new Tl.MeshPhongMaterial({color:$[ee]||"#B3B3D4",side:Tl.DoubleSide}),Ne=new Tl.Mesh(Se,te);ca(Ne)},void 0,ue)}));try{(await Promise.all(ae)).forEach(ca=>V.add(ca)),I=V}catch(ee){throw console.error("加载NC文件对应的STL文件失败:",ee),new Error("无法加载.NC文件对应的STL文件")}break;case".pcd":const Z=new _f,ge=new Tl.Group;try{const ee=await Ua.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/target.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),ca=new Blob([ee.data],{type:"application/octet-stream;charset=UTF-8"}),ue=await Ua.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/final.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),ta=new Blob([ue.data],{type:"application/octet-stream;charset=UTF-8"}),Se=await new Promise((Ne,We)=>{const sa=URL.createObjectURL(ca);Z.load(sa,Ya=>{const R=new Float32Array(Ya.geometry.attributes.position.count*3);for(let H=0;H<Ya.geometry.attributes.position.count;H++)R[H*3]=1,R[H*3+1]=0,R[H*3+2]=0;Ya.geometry.setAttribute("color",new Tl.BufferAttribute(R,3)),Ya.material.vertexColors=!0,Ya.scale.set(.3,.3,.3),URL.revokeObjectURL(sa),Ne(Ya)},void 0,We)}),te=await new Promise((Ne,We)=>{const sa=URL.createObjectURL(ta);Z.load(sa,Ya=>{const R=new Float32Array(Ya.geometry.attributes.position.count*3);for(let H=0;H<Ya.geometry.attributes.position.count;H++)R[H*3]=0,R[H*3+1]=1,R[H*3+2]=0;Ya.geometry.setAttribute("color",new Tl.BufferAttribute(R,3)),Ya.material.vertexColors=!0,Ya.scale.set(.3,.3,.3),URL.revokeObjectURL(sa),Ne(Ya)},void 0,We)});ge.add(Se),ge.add(te),I=ge}catch(ee){throw console.error("PCD文件加载失败:",ee),new Error("无法加载PCD文件")}break;case".urdf":const ze=URL.createObjectURL(M),F=new Iu.URDFLoader,ne="http://139.196.154.85:20026/chfs/shared/机器人/urdf/SmallBender_R-2000iC-165F/meshes",J={maxConcurrentLoads:4,enableCache:!0,enableLOD:!0,simplifyGeometry:!0,shareMaterials:!0,enableInstancing:!0},se=new WeakMap,Be=new WeakMap,$e=new WeakMap,fe=async ee=>{if(se.has(ee))return console.log(`从缓存加载: ${ee}`),se.get(ee);try{const ca=await Ua.axios.get(`${ne}/${ee}`,{responseType:"blob",headers:{"Content-Type":"application/json"},timeout:6e5}),ue=new Blob([ca.data],{type:"application/octet-stream;charset=UTF-8"});return J.enableCache&&se.set(ee,ue),ue}catch(ca){throw console.error(`加载文件失败: ${ee}`,ca),new Error(`无法加载文件: ${ee}`)}},N=(ee="default")=>{if(Be.has(ee))return Be.get(ee);const ca=new Tl.MeshPhongMaterial({color:12303291,shininess:30,transparent:!1,alphaTest:.1,side:Tl.FrontSide});return Be.set(ee,ca),ca},oe=ee=>{try{ee.isBufferGeometry&&ee.mergeVertices&&ee.mergeVertices(),ee.computeVertexNormals&&ee.computeVertexNormals(),ee.computeBoundingSphere&&ee.computeBoundingSphere(),ee.deleteAttribute&&ee.deleteAttribute("uv2")}catch(ca){console.warn("几何体优化失败,使用原始几何体:",ca)}return ee},U=async(ee,ca,ue)=>{const ta=`stl_${ca}`;if($e.has(ta)){const We=$e.get(ta);return new Tl.Mesh(We,N())}const Se=await ee.arrayBuffer();let Ne=new Mn.STLLoader(ue).parse(Se);return Ne=oe(Ne),$e.set(ta,Ne),new Tl.Mesh(Ne,N())},De=async(ee,ca,ue)=>{const ta=`obj_${ca}`;if(se.has(ta))return se.get(ta).clone();const Se=await ee.text(),te=new Mn.OBJLoader(ue),Ne=ca.replace(".obj",".mtl");try{const Ya=await(await fe(Ne)).text(),H=new Mn.MTLLoader(ue).parse(Ya);H.preload(),te.setMaterials(H)}catch{console.warn(`MTL文件加载失败,使用默认材质: ${Ne}`)}const We=te.parse(Se);return We.traverse(sa=>{sa.isMesh&&(sa.geometry=oe(sa.geometry),sa.castShadow=!0,sa.receiveShadow=!0,sa.renderOrder=1)}),se.set(ta,We),We},Ie=(ee,ca)=>{const ue=new Tl.LOD;if(ue.addLevel(ee,0),ee.geometry){const ta=ee.geometry.clone(),Se=new Tl.Mesh(ta,ee.material);ue.addLevel(Se,50)}return ue};let je=0,la=0;const Ta=[];F.loadMeshCb=async(ee,ca,ue,ta,Se)=>{const te=ee.split("/").pop(),Ne=ue||(()=>{});je++;const We=new Promise(async(sa,Ya)=>{try{const R=await fe(te);if(!R||R.size===0)throw new Error(`文件为空: ${te}`);const H=te.split(".").pop().toLowerCase();let X;switch(H){case"stl":X=await U(R,te,ca);break;case"obj":X=await De(R,te,ca);break;default:throw new Error(`不支持的文件格式: ${H}`)}J.enableLOD&&X.isMesh&&(X=Ie(X,te)),Ne(X),la++,ta&&ta({loaded:la,total:je,progress:la/je}),sa(X)}catch(R){console.error(`mesh文件加载失败: ${te}`,R);const H=new Tl.Group;Ne(H),sa(H);const X=new Tl.BoxGeometry(.1,.1,.1),ve=new Tl.MeshStandardMaterial({color:16711680,wireframe:!0});return new Tl.Mesh(X,ve)}});Ta.push(We)};try{if(!ze){vo.value=void 0;break}if(I=await F.loadAsync(ze),console.log(`URDF文件加载完成,等待${je}个mesh文件加载...`),Ta.length>0)try{await Promise.allSettled(Ta),console.log(`所有mesh文件处理完成,成功加载: ${la}/${je}`)}catch(ue){console.warn("部分mesh文件加载失败,但继续显示模型",ue)}I.traverse(ue=>{ue.isMesh&&(ue.castShadow=!0,ue.receiveShadow=!0,ue.renderOrder=1,ue.material&&(ue.material.needsUpdate=!0))}),console.time("计算包围盒");const ee=new Tl.Box3;ee.expandByObject(I);const ca=`urdf_${Date.now()}`;I.userData.boundingBox=ee.clone(),I.userData.modelId=ca,ps.set(ca,{box:ee.clone(),center:ee.getCenter(new Tl.Vector3),size:ee.getSize(new Tl.Vector3),maxSize:Math.max(...ee.getSize(new Tl.Vector3).toArray())}),vo.value=I,console.log("URDF模型加载完成并优化")}catch(ee){console.error("URDF加载失败:",ee),vo.value=void 0}finally{ze&&URL.revokeObjectURL(ze)}break;default:throw new Error(`不支持的文件格式: ${C}`)}return I};return{addModelsFromUrls:m,loadModelByDefaultPath:async C=>{console.log(C);try{n.value=!0,r.value="正在加载模型...";const{scene:M}=a();if(!M)throw new Error("Scene not initialized");o(),await new Promise(W=>setTimeout(W,100));const k=[];for(let W=0;W<C.length;W++){const I=C[W],j=await b(I.suffix,I.blob,I.mtlBlobs||[],I.meshFiles||[]);j&&(M.add(j),l.value.push(j),k.push(j))}return n.value=!1,r.value="",k}catch(M){throw console.error("加载模型失败:",M),n.value=!1,r.value="",M}},urdfModel:vo,modelBoundingBoxes:ps}}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=(n=(n=document.getElementsByTagName("script"))[n.length-1]).getAttribute("data-injectcss"),n=n.getAttribute("data-disable-injectsvg");if(!n){var r,o,s,h,c,d=function(u,C){C.parentNode.insertBefore(u,C)};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(u){console&&console.log(u)}}r=function(){var u,C=document.createElement("div");C.innerHTML=a._iconfont_svg_string_4827314,(C=C.getElementsByTagName("svg")[0])&&(C.setAttribute("aria-hidden","true"),C.style.position="absolute",C.style.width=0,C.style.height=0,C.style.overflow="hidden",C=C,(u=document.body).firstChild?d(C,u.firstChild):u.appendChild(C))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(r,0):(o=function(){document.removeEventListener("DOMContentLoaded",o,!1),r()},document.addEventListener("DOMContentLoaded",o,!1)):document.attachEvent&&(s=r,h=a.document,c=!1,b(),h.onreadystatechange=function(){h.readyState=="complete"&&(h.onreadystatechange=null,m())})}function m(){c||(c=!0,s())}function b(){try{h.documentElement.doScroll("left")}catch{return void setTimeout(b,50)}m()}})(window);const Cf=["onClick"],Df=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:""}},emits:["update:backGroundImage"],setup(a,{emit:l}){const n=a,r=l,o=e.ref(null),s=e.ref(null),h=e.computed(()=>{const x=Number(n==null?void 0:n.textSize),w=ce.rgbaToColor(n==null?void 0:n.textColor),g={},S={};return!Number.isNaN(x)&&x&&(g.fontSize=`${x}px`,S.fontSize=`${x}px`),w&&(g.color=w,S.color=w),{label:g,value:S}}),c=e.ref(""),d=e.ref(""),m=e.ref(!1),b=async x=>{if(x){d.value&&(URL.revokeObjectURL(d.value),d.value="");try{const w=await A.platformDownloadFile({url:x}),g=new Blob([w==null?void 0:w.data],{type:(w==null?void 0:w.headers["content-type"])||"image/*"});d.value=URL.createObjectURL(g)}catch{d.value=""}}};e.watch(()=>n==null?void 0:n.backGroundImage,x=>{x&&(c.value=x)},{immediate:!0}),e.watch(c,x=>{b(x)},{immediate:!0});const u=()=>{var x;(x=s.value)==null||x.click()},C=async x=>{var S,$,V;const w=x.target,g=(S=w==null?void 0:w.files)==null?void 0:S[0];if(!g){w.value="";return}m.value=!0;try{const ae=new FormData;ae.append("file",g);const Z=await A.platformUploadFile(ae),ge=(V=($=Z==null?void 0:Z.data)==null?void 0:$.result)==null?void 0:V.url;ge?(c.value=ge,r("update:backGroundImage",ge),b(ge),Ua.ElMessage.success("背景图片上传成功")):Ua.ElMessage.error("背景图片上传失败")}catch{Ua.ElMessage.error("背景图片上传失败")}finally{m.value=!1,w.value=""}},M=e.computed(()=>{var x;return d.value||(n==null?void 0:n.backgroundUrl)!==""?{backgroundImage:`url("${(x=n==null?void 0:n.backgroundUrl)==null?void 0:x.replace(/\\/g,"/")}")`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{}}),k=x=>nl.getComponent(x),W=x=>{if(!x)return;const w=x.querySelector("input, textarea, .el-input__inner");w&&typeof w.focus=="function"&&w.focus()},I=(x,w,g)=>{n.disabled||x.field&&(o.value=w,e.nextTick(()=>{W(g.currentTarget)}))},j=()=>{o.value=null},L=x=>{var g;const w=((g=x==null?void 0:x.field)==null?void 0:g.value)??(x==null?void 0:x.value);return w==null||w===""?"-":w},E=x=>{const w=x!=null&&x.width&&x.width>0?x.width:1,S=`calc((100% - ${(w-1)*16}px) / ${w})`;return{flex:`0 0 ${S}`,maxWidth:S,minWidth:"140px",boxSizing:"border-box"}};return(x,w)=>(e.openBlock(),e.createElementBlock("div",{class:"statistics-cards-container",style:e.normalizeStyle(M.value),onClick:w[2]||(w[2]=g=>(n==null?void 0:n.backGround)&&u())},[n!=null&&n.backGround?(e.openBlock(),e.createElementBlock("div",{key:0,class:"form-backGround-upload",onClick:w[0]||(w[0]=e.withModifiers(g=>u(),["stop"]))},[e.createElementVNode("input",{ref_key:"bgUploadRef",ref:s,type:"file",accept:"image/*",style:{display:"none"},onChange:C},null,544),w[3]||(w[3]=e.createElementVNode("img",{src:nl._imports_0,class:"bg-upload-icon",alt:"上传背景"},null,-1))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.items,(g,S)=>{var $,V,ae,Z,ge,ze,F,ne;return e.openBlock(),e.createElementBlock("div",{class:"statistics-card",key:S,style:e.normalizeStyle(E(g)),onClick:w[1]||(w[1]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",{class:"statistics-label",style:e.normalizeStyle(h.value.label)},e.toDisplayString(g==null?void 0:g.label),5),e.createElementVNode("div",{class:"statistics-value",style:e.normalizeStyle(h.value.value),onClick:J=>{var se;return(se=g.field)!=null&&se.isNoClick?null:I(g,S,J)}},[o.value===S&&g.field?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k((($=g.field)==null?void 0:$.type)??"Input")),{key:0,modelValue:g.field.value,"onUpdate:modelValue":J=>g.field.value=J,isEdit:!0,disabled:(V=g.field)==null?void 0:V.disabled,content:((ae=g.field)==null?void 0:ae.contents)??[],optionUrl:g.field,originalValue:(Z=g.field)==null?void 0:Z.value,config:(ge=g.field)==null?void 0:ge.config,configModel:((ze=g.field)==null?void 0:ze.prop)??((F=g.field)==null?void 0:F.name),selectedTagList:((ne=g.field)==null?void 0:ne.selectValue)??[],onBlur:j,onBlurChange:j},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(L(g)),1)],64))],12,Cf)],4)}),128))],4))}}),Bf=Xl._export_sfc(Df,[["__scopeId","data-v-af63fc22"]]),uc=A.defineStore("formToTableComp",{state:()=>({selectArray:[],selectString:""}),actions:{setSelectArray(a){this.selectArray=a},setSelectString(a){this.selectString=a}}}),Tf={class:"calculator-content"},Nf={class:"calculator-child"},Af={class:"calculator-child"},zf=e.defineComponent({__name:"calculator",setup(a){const l=e.ref(),n=e.ref();return e.onMounted(()=>{l.value=[{type:"Upload",label:"输入",name:"input"}],n.value=[{type:"Upload",label:"输出",name:"output"}]}),(r,o)=>(e.openBlock(),e.createElementBlock("div",Tf,[e.createElementVNode("div",Nf,[e.createVNode(nl.ssForm,{rowContents:l.value,isRowFlex:!0},null,8,["rowContents"])]),e.createElementVNode("div",Af,[e.createVNode(nl.ssForm,{rowContents:n.value,isEdit:!1,isRowFlex:!0},null,8,["rowContents"])])]))}}),Mf=Xl._export_sfc(zf,[["__scopeId","data-v-73db0fe7"]]),yt=(a,l)=>{let n=a,r=l;return Array.isArray(n)&&(n=n==null?void 0:n.map((o,s)=>{if(Array.isArray(o)){let h={};return o=o==null?void 0:o.forEach((c,d)=>{var m;(m=r==null?void 0:r[d])!=null&&m.prop?h[r[d].prop]=c:Array.isArray(c)&&(h.children=yt(c,r))}),Object.assign(h,{id:s})}else return o})),n},dc=(a,l,n)=>{let r=a,o=l;return r=r==null?void 0:r.map((s,h)=>{var c,d;return!Array.isArray(s)||!((c=o==null?void 0:o[h])!=null&&c.label)&&!n||(s.unshift(((d=o==null?void 0:o[h])==null?void 0:d.label)??""),s.some(m=>Array.isArray(m))&&(s=s==null?void 0:s.map(m=>{var b;return Array.isArray(m)&&(m=dc(m,(b=o==null?void 0:o[h])==null?void 0:b.children,n)),m}))),s}),r},If=(a,l,n)=>{if(l==="")return a==null?void 0:a.filter(r=>(r==null?void 0:r.id)!==n);{const r=l.split("-");return Of(a,r,n)}},Of=(a,l,n)=>{let r=a,o=l;return(o==null?void 0:o.length)===0?r=r==null?void 0:r.filter(s=>s.id!==n):r=r==null?void 0:r.map(s=>(s.id.toString()===(o==null?void 0:o[0])&&(o==null||o.shift(),s=pc(s,o,n)),s)),r},pc=(a,l,n)=>{var s,h;let r=a,o=l;return(o==null?void 0:o.length)===0?r.children=(s=r.children)==null?void 0:s.filter(c=>c.id!==n):r.children=(h=r.children)==null?void 0:h.map(c=>(c.id.toString()===(o==null?void 0:o[0])&&(o==null||o.shift(),c=pc(c,o,n)),c)),r},Lf=(a,l,n)=>{if(l==="")return n;{const r=l.split("-");return Rf(a,r,n)}},Rf=(a,l,n)=>{let r=a,o=l;return(o==null?void 0:o.length)===0?r=n:r=r==null?void 0:r.map(s=>(s.id.toString()===(o==null?void 0:o[0])&&(o==null||o.shift(),s=fc(s,o,n)),s)),r},fc=(a,l,n)=>{var s;let r=a,o=l;return(o==null?void 0:o.length)===0?r.children=n:r.children=(s=r.children)==null?void 0:s.map(h=>(h.id.toString()===(o==null?void 0:o[0])&&(o==null||o.shift(),h=fc(h,o,n)),h)),r};class $f{constructor(l={}){en(this,"url");en(this,"heartbeatInterval");en(this,"socket",null);en(this,"isConnected",!1);en(this,"heartTimer",null);en(this,"canvas",null);en(this,"ctx",null);en(this,"mainCamCutMode",0);en(this,"pMainShowStartX",0);en(this,"pMainShowStartY",0);en(this,"onLog");en(this,"onDevCount");en(this,"onResolution");en(this,"onCameraStatus");en(this,"onPhoto");this.url=l.url??"ws://127.0.0.1:22225",this.heartbeatInterval=l.heartbeatInterval??3e3}init(l,n,r){var h;(h=this.canvas)!=null&&h.parentNode&&this.canvas.parentNode.removeChild(this.canvas);const o=document.createElement("canvas");o.style.border="solid 1px #A0A0A0",o.id="MainCamCanvas",o.width=n,o.height=r;const s=o.getContext("2d");if(!s)throw new Error("无法获取 CanvasRenderingContext2D");l.appendChild(o),this.canvas=o,this.ctx=s}async connect(){this.socket&&(this.socket.readyState===WebSocket.OPEN||this.socket.readyState===WebSocket.CONNECTING)||await new Promise((l,n)=>{const r=new WebSocket(this.url);r.binaryType="arraybuffer",r.onopen=()=>{this.socket=r,this.isConnected=!0,this.startHeartbeat(),this.log("socket.onopen"),l()},r.onerror=o=>{this.isConnected=!1,this.log("socket.onerror"),n(o)},r.onclose=()=>{this.isConnected=!1,this.stopHeartbeat(),this.log("socket.onclose")},r.onmessage=o=>{this.handleMessage(o)}})}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 n=l.find(o=>o.width===2592&&o.height===1944);return n||[...l].sort((o,s)=>s.width*s.height-o.width*o.height)[0]||null}openCamera(l=0,n=1280,r=720){if(!this.canvas)throw new Error("请先 init() 传入容器并创建 canvas");const o=new Uint8Array(12);o[0]=119,o[1]=136,o[2]=1,o[3]=l,o[4]=this.canvas.width>>8&255,o[5]=this.canvas.width&255,o[6]=this.canvas.height>>8&255,o[7]=this.canvas.height&255,o[8]=n>>8&255,o[9]=n&255,o[10]=r>>8&255,o[11]=r&255,this.sendBytes(o)}closeCamera(){this.sendBytes(new Uint8Array([119,136,2,0]))}photo(){const o=new Uint8Array(12);o[0]=119,o[1]=136,o[2]=16,o[3]=0,o[4]=0,o[5]=0,o[6]=0,o[7]=0,o[8]=1,o[9]=0,o[10]=0,o[11]=0,this.sendBytes(o)}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 n;(n=this.onLog)==null||n.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 o,s,h,c,d,m;const n=new Uint8Array(l.data);if(n.length<=0)return;if(n[0]===17&&n[1]===17&&n[2]===17){this.log("heart socket!!!!");return}if(n[0]!==85||n[1]!==102)return;const r=n[2];if(r===80){const b=n[3],u=n.length-4,C=new Uint8Array(u);for(let W=0;W<u;W++)C[W]=n[4+W];const k=decodeURIComponent(this.byteToString(C)).split("|");(o=this.onDevCount)==null||o.call(this,b,k);return}if(r===81){const b=n[3]||0,u=[];for(let C=0;C<b;C++){const M=(n[4+C*4+0]||0)*256+(n[4+C*4+1]||0),k=(n[4+C*4+2]||0)*256+(n[4+C*4+3]||0);u.push({width:M,height:k,text:`${M}*${k}`})}(s=this.onResolution)==null||s.call(this,b,u);return}if(r===1){n[3]===1&&((h=this.onCameraStatus)==null||h.call(this,"opened")),n[3]===3&&((c=this.onCameraStatus)==null||c.call(this,"closed"));return}if(r===16){if(n[3]===1){const u=n[4]*256+n[5],C=n[6]*65536+n[7]*256+n[8];let M="";if(u>0){const I=new Uint8Array(u);for(let j=0;j<u;j++)I[j]=n[9+j];M=decodeURIComponent(this.byteToString(I))}const k=new Uint8Array(C);for(let I=0;I<C;I++)k[I]=n[9+u+I];const W=this.uint8ArrayToString(k);(d=this.onPhoto)==null||d.call(this,{flag:0,imgPath:M,base64:W})}n[3]===2&&((m=this.onPhoto)==null||m.call(this,{flag:2,imgPath:"",base64:""}));return}if(r===204){if(!this.canvas||!this.ctx)return;const b=n[3]*256+n[4],u=n[5]*256+n[6];this.pMainShowStartX=n[7]*256+n[8],this.pMainShowStartY=n[9]*256+n[10],this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height);const C=this.ctx.createImageData(b,u);let M=11;for(let k=0;k<C.data.length;k+=4)C.data[k+0]=n[M],C.data[k+1]=n[M+1],C.data[k+2]=n[M+2],C.data[k+3]=255,M+=3;this.ctx.putImageData(C,this.pMainShowStartX,this.pMainShowStartY),this.mainCamCutMode;return}}uint8ArrayToString(l){let n="";for(let r=0;r<l.length;r++)n+=String.fromCharCode(l[r]);return n}byteToString(l){let n="";for(let r=0;r<l.length;r++)n+=String.fromCharCode(l[r]);return n}}const Vf={style:{display:"flex",gap:"16px",height:"100%"}},Pf={key:0,style:{color:"var(--el-text-color-secondary)"}},Ff={style:{width:"420px",display:"flex","flex-direction":"column",gap:"16px"}},jf={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px"}},Hf={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"}},Uf={key:0,style:{height:"100%",display:"flex","align-items":"center","justify-content":"center",color:"var(--el-text-color-secondary)"}},qf={key:1,style:{display:"grid","grid-template-columns":"repeat(2, minmax(0, 1fr))",gap:"8px"}},Wf=["src","onClick"],Kf=["onClick"],Gf={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px",flex:"1","min-height":"0",display:"flex","flex-direction":"column"}},Yf={class:"dialog-footer"},Jf=e.defineComponent({__name:"index",props:{visible:{type:Boolean,default:!1}},emits:["confirm","cancel"],setup(a,{emit:l}){const n=a,r=l,o=e.ref(null),s=e.ref(!1),h=e.ref([]),c=e.ref(""),d=e.ref(!1),m=e.ref([]),b=new $f({url:"ws://127.0.0.1:22225"});function u(V,ae){var J;const Z=V.split(","),ge=((J=Z[0].match(/:(.*?);/))==null?void 0:J[1])??"image/jpeg",ze=atob(Z[1]);let F=ze.length;const ne=new Uint8Array(F);for(;F--;)ne[F]=ze.charCodeAt(F);return new File([ne],ae,{type:ge})}function C(){b.onLog=V=>{console.log("[GPY]",V)},b.onDevCount=(V,ae)=>{if(c.value+=`设备数量=${V},设备=${ae.join(",")}
|
|
4
4
|
`,V>0){c.value+=`检测到设备,正在获取分辨率...
|