ss-component-new 1.3.271 → 1.3.273

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/{array-BWba_sUM.cjs → array-CNZ488y-.cjs} +1 -1
  2. package/dist/{array-DIHfapjM.js → array-DOfOhj4s.js} +2 -2
  3. package/dist/{index-BTZYJ5oH.cjs → index-AM6byXK9.cjs} +1 -1
  4. package/dist/{index-BefNND7D.cjs → index-B6_iUSA3.cjs} +1 -1
  5. package/dist/{index-DjK2szn0.js → index-BHb1lpTX.js} +3 -3
  6. package/dist/{index-OqnbJFsV.cjs → index-BUqV4xIT.cjs} +1 -1
  7. package/dist/{index-C8BjMc6z.cjs → index-BVQYzH8C.cjs} +1 -1
  8. package/dist/{index-D_jgIqcM.cjs → index-Bgm5vamc.cjs} +1 -1
  9. package/dist/{index-DtfkhNLl.cjs → index-CDAgsOI_.cjs} +1 -1
  10. package/dist/{index-DQhZN-1E.cjs → index-CI-CKk1R.cjs} +1 -1
  11. package/dist/{index-air9KUwO.js → index-CQE1twGM.js} +1 -1
  12. package/dist/{index-e9SQjRNK.js → index-CUXwF9N0.js} +1 -1
  13. package/dist/{index-BxwghYq1.cjs → index-Cs4v3nSH.cjs} +1 -1
  14. package/dist/{index-BBulXCPU.js → index-CtebvoQp.js} +1 -1
  15. package/dist/index-D3CbfsAx.js +8558 -0
  16. package/dist/{index-D5ZjIl_b.cjs → index-DF9J0eRh.cjs} +1 -1
  17. package/dist/{index-thBZnRlq.js → index-DJKypwZi.js} +3153 -3135
  18. package/dist/{index-CViw2Mj7.js → index-DPT76q9W.js} +1 -1
  19. package/dist/{index-BQZQfdF9.js → index-DVsmrcKc.js} +84 -83
  20. package/dist/{index-oUYiXdTT.js → index-Dgr29q4a.js} +2 -2
  21. package/dist/index-K7N6qB28.cjs +1 -0
  22. package/dist/index-KVzeEg2l.cjs +1 -0
  23. package/dist/{index-lnH1I9jt.js → index-W7nk9qZl.js} +2 -2
  24. package/dist/{index-G5EedquM.js → index-XFelski4.js} +2 -2
  25. package/dist/{index-DlPQUH86.cjs → index-YF86sk8Y.cjs} +1 -1
  26. package/dist/{index-GyvN5_IL.js → index-cpIe4kUL.js} +1 -1
  27. package/dist/{index-tHA9Rkbg.cjs → index-op6E9ZFA.cjs} +10 -10
  28. package/dist/{index-CIYK_QzD.js → index-qw8J_jxu.js} +1 -1
  29. package/dist/{main-Bua2pNgj.js → main-aGFk7t5g.js} +2 -2
  30. package/dist/{main-OHZszUkF.cjs → main-nBYqwNMj.cjs} +1 -1
  31. package/dist/ss-component.cjs +1 -1
  32. package/dist/ss-component.css +1 -1
  33. package/dist/ss-component.js +5 -5
  34. package/dist/ss-component2.cjs +1 -1
  35. package/dist/ss-component2.js +9 -9
  36. package/dist/{threeModel-BHe3C-9c.cjs → threeModel-0iOyugrH.cjs} +1 -1
  37. package/dist/{threeModel-DJ9uFnUs.js → threeModel-C43ztv8F.js} +1 -1
  38. package/dist/{threeSceneView-BqLxzhSN.js → threeSceneView-AKqgWtcC.js} +3 -3
  39. package/dist/{threeSceneView-DxI6ygXX.cjs → threeSceneView-D8kMpks6.cjs} +1 -1
  40. package/dist/{threeSceneViewForCPMPIP-PE0ZT7EA.js → threeSceneViewForCPMPIP-2Pti3m3C.js} +1 -1
  41. package/dist/{threeSceneViewForCPMPIP-4gNettMM.cjs → threeSceneViewForCPMPIP-MttowLKc.cjs} +1 -1
  42. package/dist/{threeViewerHost-CLYRcipX.js → threeViewerHost-CUPLExtn.js} +1 -1
  43. package/dist/{threeViewerHost-CMKzBGKO.cjs → threeViewerHost-uNIKrsD0.cjs} +1 -1
  44. package/package.json +1 -1
  45. package/dist/index-BJvaTjjk.cjs +0 -1
  46. package/dist/index-CAKmBDVW.cjs +0 -1
  47. package/dist/index-whFeQHV7.js +0 -8537
@@ -1,6 +1,6 @@
1
- "use strict";var yu=Object.defineProperty;var gu=(l,r,n)=>r in l?yu(l,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):l[r]=n;var Rr=(l,r,n)=>gu(l,typeof r!="symbol"?r+"":r,n);const a=require("vue"),ll=require("./request-BC2w2vGr.cjs"),I=require("./index-BrkG7uLk.cjs"),pl=require("./index-OqnbJFsV.cjs"),ql=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),$a=require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-COKDBqGg.cjs"),vr=require("./index-CUw6nGTo.cjs"),bo=require("./threeViewerHost-CMKzBGKO.cjs"),na=require("./index-Cp0iKPhB.cjs"),yr=require("./index-CW4qJdP8.cjs"),Ji=require("./index-D5ZjIl_b.cjs");require("./index-qlM1q9uT.cjs");const Hs=require("./index-2brd7dFc.cjs");;/* empty css */const ko=require("./isString-DNBlKLZH.cjs"),Xi=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),Us=require("./index-BVaHwt5f.cjs"),bu=require("./index-B-6RIPBP.cjs"),Dn=require("./MTLLoader-fyJJJ5J2.cjs"),ku=require("./URDFLoader-Bcpa-czu.cjs");var xu="[object Boolean]";function qs(l){return l===!0||l===!1||ll.isObjectLike(l)&&ll.baseGetTag(l)==xu}function _u(l){return l===void 0}const wu=l=>l.match(/\((.*)\)/)[1],Cu={__name:"index",props:{isVisible:{type:Boolean,default:!1},title:{type:String,default:""},placement:{type:String,default:"bottom"},width:{type:Number,default:200},trigger:{type:String,default:"click"}},setup(l){const r=l,n=a.ref(null),t=a.ref(!1),s=a.ref(null);return a.watch(()=>r==null?void 0:r.isVisible,()=>{t.value=r==null?void 0:r.isVisible},{deep:!0,immediate:!0}),a.watch(()=>s.value,()=>{a.nextTick(()=>{var d,b;(b=(d=n.value)==null?void 0:d.updatePopper)==null||b.call(d)})},{deep:!0,immediate:!0}),(d,b)=>{const h=a.resolveComponent("el-popover");return a.openBlock(),a.createBlock(h,{visible:t.value,"onUpdate:visible":b[0]||(b[0]=v=>t.value=v),trigger:r.trigger,title:r==null?void 0:r.title,placement:r==null?void 0:r.placement,width:r==null?void 0:r.width,ref_key:"popOverRef",ref:n,"trigger-keys":"[]"},{reference:a.withCtx(()=>[a.createElementVNode("div",null,[a.renderSlot(d.$slots,"reference",{ref_key:"referenceRef",ref:s})])]),default:a.withCtx(()=>[a.createElementVNode("div",null,[a.renderSlot(d.$slots,"content")])]),_:3},8,["visible","trigger","title","placement","width"])}}},Eu={__name:"index",props:{value:{type:[String,Number],default:""}},setup(l){const r=l,n=a.computed(()=>{const t=String(r.value??"");return t==="已完成"?"task-status-completed":t==="进行中"?"task-status-running":t==="终止"||t==="暂停"?"task-status-stopped":""});return(t,s)=>l.value!==void 0&&l.value!==null?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(["task-status-tag",n.value])},a.toDisplayString(l.value===0?"0":l.value),3)):a.createCommentVNode("",!0)}},Su=ql._export_sfc(Eu,[["__scopeId","data-v-d81f59b4"]]);function Du(l,r,n,t={}){if(!l||!r||!n||n.length!==4)return;const s=l.getContext("2d");if(!s)return;const{color:d="rgba(255, 235, 59, 0.3)",strokeWidth:b=2,fillOpacity:h=.2}=t,v=l.getBoundingClientRect(),y=r.getBoundingClientRect(),c=r.naturalWidth,w=r.naturalHeight,S=y.width/c,A=y.height/w,_=Math.min(S,A),H=c*_,k=w*_,T=(v.width-H)/2,J=(v.height-k)/2,D=n.map(([z,x])=>{const g=T+z*H,F=J+x*k;return{x:g,y:F}});s.clearRect(0,0,l.width,l.height),s.beginPath(),s.moveTo(D[0].x,D[0].y);for(let z=1;z<D.length;z++)s.lineTo(D[z].x,D[z].y);s.closePath();const $=d.replace(/[\d.]+\)$/,`${h})`);s.fillStyle=$,s.fill(),s.strokeStyle=d.replace(/[\d.]+\)$/,"1)"),s.lineWidth=b,s.stroke()}function yt(l){if(!l)return;const r=l.getContext("2d");r&&r.clearRect(0,0,l.width,l.height)}function Zi(l,r){if(!l||!r)return null;const n=l[r];return!n||!n.bboxNorm||!Array.isArray(n.bboxNorm)||n.bboxNorm.length!==4?null:{bboxNorm:n.bboxNorm,imageName:n.imageName||""}}const Bu={key:0,class:"ocr-img-preview-root"},Nu={class:"ocr-img-preview-window"},Tu={key:0,class:"img-preview-body"},Au={class:"img-preview-header"},zu={class:"img-header-left"},Mu={class:"img-name"},Ou={key:0,class:"img-header-right"},Iu={class:"img-index"},Lu={key:0,class:"img-thumb-list"},Vu=["onClick"],$u={key:1,class:"thumb-placeholder"},Ru={class:"thumb-name"},Pu={class:"img-preview-container"},Fu={key:0,class:"img-placeholder"},ju={key:2,class:"img-placeholder"},Hu={key:0},Uu={key:1},qu={key:1,class:"img-placeholder"},Ku=a.defineComponent({__name:"imgPreview",props:{visible:{type:Boolean,default:!1},images:{type:Array,default:()=>[]},defaultImageName:{type:String,default:""},fieldMeta:{type:Object,default:()=>({})},focusedFieldName:{type:String,default:""}},emits:["update:visible","close"],setup(l,{emit:r}){const n=l,t=r,s=a.computed({get:()=>n.visible,set:B=>t("update:visible",B)});let d=!1,b="",h=0,v=0,y=0,c=0,w=0,S=0,A=null;const _=B=>{var ye,se;const le=(se=(ye=B==null?void 0:B.target)==null?void 0:ye.closest)==null?void 0:se.call(ye,".ocr-img-preview-window");return le||document.querySelector(".ocr-img-preview-window")},H=B=>{if(!B||B==="none")return{tx:0,ty:0};let le=B.match(/matrix\(([^)]+)\)/);if(le){const ye=le[1].split(",").map(se=>Number(se.trim()));return{tx:(ye==null?void 0:ye[4])||0,ty:(ye==null?void 0:ye[5])||0}}if(le=B.match(/matrix3d\(([^)]+)\)/),le){const ye=le[1].split(",").map(se=>Number(se.trim()));return{tx:(ye==null?void 0:ye[12])||0,ty:(ye==null?void 0:ye[13])||0}}return le=B.match(/translate\(\s*([-\d.]+)px\s*,\s*([-\d.]+)px\s*\)/),le?{tx:Number(le[1])||0,ty:Number(le[2])||0}:{tx:0,ty:0}},k=(B,le,ye)=>{B.style.transform=`translate(${le}px, ${ye}px)`},T=B=>{const le=_(B);if(!le)return;d=!0,A=le,b="move",h=B.clientX,v=B.clientY;const ye=window.getComputedStyle(le),{tx:se,ty:Ne}=H(ye.transform);w=se,S=Ne,document.addEventListener("mousemove",D),document.addEventListener("mouseup",$)},J=(B,le)=>{const ye=_(B);if(!ye)return;d=!0,A=ye,b=le,h=B.clientX,v=B.clientY;const se=ye.getBoundingClientRect();y=se.width,c=se.height;const Ne=window.getComputedStyle(ye),{tx:ia,ty:xa}=H(Ne.transform);w=ia,S=xa,document.addEventListener("mousemove",D),document.addEventListener("mouseup",$)},D=B=>{if(!d||!A)return;const le=B.clientX-h,ye=B.clientY-v,se=360,Ne=420;let ia=y,xa=c,Ha=w,ee=S;if(b==="move"){Ha=w+le,ee=S+ye,k(A,Ha,ee);return}if(b.includes("right")&&(ia=Math.max(se,y+le)),b.includes("bottom")&&(xa=Math.max(Ne,c+ye)),b.includes("left")){const ea=y-le;ea<se?(ia=se,Ha=w+(y-se)):(ia=ea,Ha=w+le)}if(b.includes("top")){const ea=c-ye;ea<Ne?(xa=Ne,ee=S+(c-Ne)):(xa=ea,ee=S+ye)}A.style.width=`${ia}px`,A.style.height=`${xa}px`,k(A,Ha,ee)},$=()=>{d=!1,b="",A=null,document.removeEventListener("mousemove",D),document.removeEventListener("mouseup",$)},z=a.ref([]),x=a.ref(!1);a.watch(()=>n.images,async B=>{if(!Array.isArray(B)||B.length===0){z.value=[];return}x.value=!0;const le=[];for(const ye of B)if(ye.url&&!ye.url.startsWith("blob:")&&!ye.url.startsWith("http"))try{const se=await $a.downloadFile(ye.url),Ne=URL.createObjectURL(se);le.push({...ye,blobUrl:Ne})}catch(se){console.error(`Failed to load image for preview: ${ye.url}`,se),le.push({...ye,blobUrl:""})}else le.push({...ye,blobUrl:ye.url});z.value=le,x.value=!1},{deep:!0,immediate:!0});const g=a.ref(0),F=a.ref(null),q=a.ref(null),G=a.computed(()=>z.value[g.value]||null),be=()=>{if(!z.value.length){g.value=0;return}if(n.defaultImageName){const B=z.value.findIndex(le=>(le==null?void 0:le.name)===n.defaultImageName);g.value=B>=0?B:0}else g.value=0},ze=B=>{if(!z.value.length)return;const le=Math.max(0,Math.min(B,z.value.length-1));g.value=le},De=()=>ze(g.value-1),ne=()=>ze(g.value+1),ke=B=>{if(!B)return;const le=z.value.findIndex(ye=>(ye==null?void 0:ye.name)===B);le>=0&&(g.value=le)},X=()=>{if(!q.value)return;const B=q.value.parentElement;if(!B)return;const le=B.getBoundingClientRect();q.value.width=le.width,q.value.height=le.height},pe=()=>{var se,Ne;if(!q.value||!F.value||!n.focusedFieldName){q.value&&yt(q.value);return}const B=(se=F.value.$el)==null?void 0:se.querySelector("img");if(!B)return;if(!B.complete||B.naturalWidth===0){B.onload=()=>{a.nextTick(()=>{pe()})};return}const le=((Ne=G.value)==null?void 0:Ne.name)||"",ye=Zi(n.fieldMeta,n.focusedFieldName);if(!ye){yt(q.value);return}if(ye.imageName!==le){yt(q.value);return}X(),Du(q.value,B,ye.bboxNorm)},Ke=()=>{a.nextTick(()=>{X(),pe()})};a.watch(()=>n.focusedFieldName,()=>{if(!s.value)return;const B=Zi(n.fieldMeta,n.focusedFieldName);B!=null&&B.imageName&&ke(B.imageName),a.nextTick(()=>{pe()})}),a.watch(()=>{var B;return(B=G.value)==null?void 0:B.name},()=>{s.value&&a.nextTick(()=>{q.value&&yt(q.value),pe()})}),a.watch(()=>n.visible,B=>{B?(be(),a.nextTick(()=>{X(),pe()})):q.value&&yt(q.value)}),a.watch(()=>n.defaultImageName,()=>{s.value&&be()});let Sa=null;a.onMounted(()=>{var B;typeof ResizeObserver<"u"&&(Sa=new ResizeObserver(()=>{X(),a.nextTick(()=>{pe()})}),(B=q.value)!=null&&B.parentElement&&Sa.observe(q.value.parentElement))}),a.onUnmounted(()=>{Sa&&(Sa.disconnect(),Sa=null),document.removeEventListener("mousemove",D),document.removeEventListener("mouseup",$)});const te=()=>{q.value&&yt(q.value),t("update:visible",!1),t("close")};return(B,le)=>{var xa,Ha;const ye=a.resolveComponent("el-button"),se=a.resolveComponent("el-image"),Ne=a.resolveComponent("Loading"),ia=a.resolveComponent("el-icon");return s.value?(a.openBlock(),a.createElementBlock("div",Bu,[le[12]||(le[12]=a.createElementVNode("div",{class:"ocr-img-preview-backdrop"},null,-1)),a.createElementVNode("div",Nu,[a.createElementVNode("div",{class:"ocr-img-preview-header",onMousedown:a.withModifiers(T,["stop"])},[le[8]||(le[8]=a.createElementVNode("span",{class:"ocr-img-preview-title"},"文件预览",-1)),a.createElementVNode("button",{type:"button",class:"ocr-img-preview-close",onClick:te},"×")],32),a.createElementVNode("div",{class:"resizable-handle top",onMousedown:le[0]||(le[0]=a.withModifiers(ee=>J(ee,"top"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle right",onMousedown:le[1]||(le[1]=a.withModifiers(ee=>J(ee,"right"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom",onMousedown:le[2]||(le[2]=a.withModifiers(ee=>J(ee,"bottom"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle left",onMousedown:le[3]||(le[3]=a.withModifiers(ee=>J(ee,"left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle top-left",onMousedown:le[4]||(le[4]=a.withModifiers(ee=>J(ee,"top-left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle top-right",onMousedown:le[5]||(le[5]=a.withModifiers(ee=>J(ee,"top-right"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom-left",onMousedown:le[6]||(le[6]=a.withModifiers(ee=>J(ee,"bottom-left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom-right",onMousedown:le[7]||(le[7]=a.withModifiers(ee=>J(ee,"bottom-right"),["stop"]))},null,32),G.value?(a.openBlock(),a.createElementBlock("div",Tu,[a.createElementVNode("div",Au,[a.createElementVNode("div",zu,[a.createElementVNode("span",Mu,a.toDisplayString(G.value.name?G.value.name+(G.value.url&&G.value.url.lastIndexOf(".")!==-1?G.value.url.substring(G.value.url.lastIndexOf(".")):""):""),1)]),z.value.length>1?(a.openBlock(),a.createElementBlock("div",Ou,[a.createVNode(ye,{size:"small",disabled:g.value===0,onClick:De},{default:a.withCtx(()=>le[9]||(le[9]=[a.createTextVNode("上一张")])),_:1,__:[9]},8,["disabled"]),a.createElementVNode("span",Iu,a.toDisplayString(g.value+1)+" / "+a.toDisplayString(z.value.length),1),a.createVNode(ye,{size:"small",disabled:g.value===z.value.length-1,onClick:ne},{default:a.withCtx(()=>le[10]||(le[10]=[a.createTextVNode("下一张")])),_:1,__:[10]},8,["disabled"])])):a.createCommentVNode("",!0)]),z.value.length>1?(a.openBlock(),a.createElementBlock("div",Lu,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(z.value,(ee,ea)=>(a.openBlock(),a.createElementBlock("div",{key:(ee.name||"")+"-"+ea,class:a.normalizeClass(["img-thumb-item",{active:ea===g.value}]),onClick:Pe=>ze(ea)},[ee!=null&&ee.blobUrl?(a.openBlock(),a.createBlock(se,{key:0,src:ee.blobUrl,fit:"cover",class:"thumb-image","preview-src-list":[ee.blobUrl],"initial-index":0},null,8,["src","preview-src-list"])):(a.openBlock(),a.createElementBlock("div",$u,"加载失败")),a.createElementVNode("div",Ru,a.toDisplayString(ee.name||"-"),1)],10,Vu))),128))])):a.createCommentVNode("",!0),a.createElementVNode("div",Pu,[x.value?(a.openBlock(),a.createElementBlock("div",Fu,[a.createVNode(ia,{class:"is-loading"},{default:a.withCtx(()=>[a.createVNode(Ne)]),_:1}),le[11]||(le[11]=a.createElementVNode("span",null,"图片加载中...",-1))])):(xa=G.value)!=null&&xa.blobUrl?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createVNode(se,{ref_key:"imageRef",ref:F,src:G.value.blobUrl,fit:"contain",class:"preview-image","preview-src-list":[G.value.blobUrl],onLoad:Ke},null,8,["src","preview-src-list"]),a.createElementVNode("canvas",{ref_key:"canvasRef",ref:q,class:"highlight-canvas"},null,512)],64)):(a.openBlock(),a.createElementBlock("div",ju,[(Ha=G.value)!=null&&Ha.url?(a.openBlock(),a.createElementBlock("span",Hu,"图片加载失败")):(a.openBlock(),a.createElementBlock("span",Uu,"暂无图片"))]))])])):(a.openBlock(),a.createElementBlock("div",qu,"暂无图片"))])])):a.createCommentVNode("",!0)}}}),Wu=ql._export_sfc(Ku,[["__scopeId","data-v-48a4ecb1"]]),Yu={class:"cert-preview-body"},Gu={key:0,class:"pdf-preview-container"},Ju={class:"thumbs"},Xu=["onClick"],Zu={class:"thumb-img"},Qu=["src"],ed={key:1,class:"thumb-loading"},ad={class:"thumb-title"},ld={class:"viewer"},rd={key:0,class:"viewer-img-wrap"},nd=["src"],td={key:1,class:"viewer-loading"},od=a.defineComponent({__name:"CertificatePreview",props:{visible:{type:Boolean},versions:{}},emits:["update:visible"],setup(l,{emit:r}){const n=l,t=r,s=a.ref(""),d=a.ref(""),b=a.computed(()=>(n.versions||[]).find(_=>String(_.versionId)===String(s.value))),h=a.ref({}),v=a.ref(""),y=a.ref("证书附件.pdf"),c=()=>{try{Object.values(h.value||{}).forEach(_=>{_&&URL.revokeObjectURL(_)}),v.value&&URL.revokeObjectURL(v.value)}catch{}h.value={},v.value=""},w=async _=>{if(!_||_.fileType==="pdf")return;const H=Array.isArray(_.images)?_.images:[];for(const k of H){const T=k==null?void 0:k.url;if(!(!T||h.value[T]))try{const J=await I.platformDownloadFile({url:T}),D=URL.createObjectURL(J.data);h.value={...h.value,[T]:D}}catch{}}},S=async _=>{var k;if(!_||_.fileType!=="pdf"){v.value="";return}const H=_.sourceUrl||"";if(!H){v.value="";return}if(v.value){try{URL.revokeObjectURL(v.value)}catch{}v.value=""}try{console.log("[CertificatePreview] 下载PDF附件:",{url:H,versionId:_==null?void 0:_.versionId,certNo:_==null?void 0:_.certNo});const T=await I.platformDownloadFile({url:H});console.log("[CertificatePreview] PDF响应:",{url:H,status:T==null?void 0:T.status,size:(k=T==null?void 0:T.data)==null?void 0:k.size});const J=URL.createObjectURL(T.data);v.value=J;const D=_.certNo?String(_.certNo):"";y.value=D?`${D}.pdf`:"证书附件.pdf"}catch(T){console.error("[CertificatePreview] PDF加载失败:",{url:H,error:T}),v.value=""}};a.watch(()=>n.visible,async _=>{var k;if(!_){c();return}const H=(k=n.versions)==null?void 0:k[0];s.value=(H==null?void 0:H.versionId)||"",await w(H),await S(H)},{immediate:!0}),a.watch(()=>s.value,async()=>{var H,k;const _=b.value;if(!_){d.value="",v.value="";return}if(_.fileType==="pdf"){d.value="",await S(_);return}v.value="",d.value=((k=(H=_.images)==null?void 0:H[0])==null?void 0:k.url)||"",await w(_)},{immediate:!0});const A=()=>{t("update:visible",!1),c()};return a.onBeforeUnmount(()=>{c()}),(_,H)=>{const k=a.resolveComponent("el-empty"),T=a.resolveComponent("el-tab-pane"),J=a.resolveComponent("el-tabs"),D=a.resolveComponent("el-button"),$=a.resolveComponent("el-dialog");return a.openBlock(),a.createBlock($,{"model-value":_.visible,title:"证书附件预览",width:"1100px","close-on-click-modal":!1,onClose:A},{footer:a.withCtx(()=>[a.createVNode(D,{id:"themeBorderButton",onClick:A},{default:a.withCtx(()=>H[1]||(H[1]=[a.createTextVNode("关闭")])),_:1,__:[1]})]),default:a.withCtx(()=>[_.versions&&_.versions.length>0?(a.openBlock(),a.createBlock(J,{key:0,modelValue:s.value,"onUpdate:modelValue":H[0]||(H[0]=z=>s.value=z),type:"card",class:"cert-version-tabs"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(_.versions,z=>(a.openBlock(),a.createBlock(T,{key:z.versionId,name:z.versionId,label:z.label},{default:a.withCtx(()=>[a.createElementVNode("div",Yu,[z.fileType==="pdf"?(a.openBlock(),a.createElementBlock("div",Gu,[v.value?(a.openBlock(),a.createBlock(pl.SsFilePreview,{key:1,fileName:y.value,blobUrl:v.value},null,8,["fileName","blobUrl"])):(a.openBlock(),a.createBlock(k,{key:0,description:"加载中"}))])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("div",Ju,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(z.images||[],x=>(a.openBlock(),a.createElementBlock("div",{key:x.url,class:a.normalizeClass(["thumb",{active:x.url===d.value}]),onClick:g=>d.value=x.url},[a.createElementVNode("div",Zu,[h.value[x.url]?(a.openBlock(),a.createElementBlock("img",{key:0,src:h.value[x.url]},null,8,Qu)):(a.openBlock(),a.createElementBlock("div",ed,"加载中"))]),a.createElementVNode("div",ad,a.toDisplayString(x.name),1)],10,Xu))),128))]),a.createElementVNode("div",ld,[d.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[h.value[d.value]?(a.openBlock(),a.createElementBlock("div",rd,[a.createElementVNode("img",{class:"viewer-img",src:h.value[d.value]},null,8,nd)])):(a.openBlock(),a.createElementBlock("div",td,"加载中"))],64)):(a.openBlock(),a.createBlock(k,{key:0,description:"暂无图片"}))])],64))])]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue"])):(a.openBlock(),a.createBlock(k,{key:1,description:"暂无可预览的证书附件"}))]),_:1},8,["model-value"])}}}),id=ql._export_sfc(od,[["__scopeId","data-v-220703c0"]]),sd={class:"ocr-candidate-wrap"},cd={class:"ocr-candidate-left"},ud={key:1},dd={key:0},pd={key:1},fd={key:2},hd={key:3},vd={key:0,class:"ocr-candidate-right"},md={class:"ocr-candidate-actions"},yd={key:1},gd={class:"dialog-footer"},bd={__name:"OCRCandidateDialog",props:{visible:{type:Boolean,default:!1},candidates:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},nameProp:{type:String,default:""},mfrProp:{type:String,default:""}},emits:["update:visible","submit","preview-file"],setup(l,{emit:r}){const n=(g=[])=>{const F=[],q=G=>{(G||[]).forEach(be=>{if(!be)return;const ze=be.children||be.childrens||be.columns;Array.isArray(ze)&&ze.length>0?q(ze):F.push(be)})};return q(g),F},t=l,s=r,d=a.computed(()=>{var g;return((g=S.value)==null?void 0:g.allowAdd)!==!1}),b=a.computed(()=>{var g;return((g=S.value)==null?void 0:g.allowReplace)!==!1}),h=g=>{if(!g)return[];if(Array.isArray(g))return g;if(typeof g=="string")try{const F=JSON.parse(g);return Array.isArray(F)?F:[]}catch{return[]}return[]},v=g=>{s("preview-file",g)},y=a.ref([]),c=a.ref(0),w=a.ref("");a.watch(()=>t.candidates,g=>{var F,q;y.value=(g||[]).map(G=>({...G,...(G==null?void 0:G.ocrRow)||{},selectedTargetId:(G==null?void 0:G.selectedTargetId)||"",__decision:G==null?void 0:G.__decision})),c.value=0,w.value=((q=(F=y.value)==null?void 0:F[0])==null?void 0:q.selectedTargetId)||""},{immediate:!0,deep:!0}),a.watch(()=>t.visible,g=>{var F,q;g&&(c.value=0,w.value=((q=(F=y.value)==null?void 0:F[0])==null?void 0:q.selectedTargetId)||"")});const S=a.computed(()=>{var F;const g=Number(c.value||0);return((F=y.value||[])==null?void 0:F[g])||null}),A=a.computed(()=>(n(t.columns||[])||[]).filter(q=>q&&q.prop).filter(q=>q.type!=="operate"&&q.label!=="操作"&&q.prop!=="operate")),_=a.computed(()=>A.value.filter(g=>g.label!=="证书附件"&&g.prop!=="证书附件")),H=g=>{if(!g)return;const F=(y.value||[]).findIndex(q=>(q==null?void 0:q.idx)===(g==null?void 0:g.idx));F>-1&&(c.value=F,w.value=(g==null?void 0:g.selectedTargetId)||"")},k=g=>{if(!g){w.value="";return}w.value=String((g==null?void 0:g.id)??"")},T=(g,F="")=>{const q=Number(c.value||0),G=y.value||[],be=G[q];be&&(be.__decision=g,be.selectedTargetId=F,w.value=F,y.value=[...G])},J=()=>T("skip",""),D=()=>T("add",""),$=()=>{if(!w.value){ll.ElMessage.warning("请先选择要替换的目标记录");return}T("replace",w.value)},z=()=>{s("update:visible",!1)},x=()=>{const g=y.value||[];if(g.find(q=>(q==null?void 0:q.__decision)==="replace"&&!(q!=null&&q.selectedTargetId))){ll.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}s("submit",g),s("update:visible",!1)};return(g,F)=>{const q=a.resolveComponent("el-table-column"),G=a.resolveComponent("svg-icon"),be=a.resolveComponent("el-table"),ze=a.resolveComponent("el-button"),De=a.resolveComponent("el-alert");return a.openBlock(),a.createBlock(vr.ssDialog,{title:"OCR候选匹配",visible:l.visible,"close-on-click-modal":!1,width:"90%",style:{maxWidth:"1200px"},onBeforeDestroy:z},{default:a.withCtx(()=>{var ne,ke;return[a.createElementVNode("div",sd,[a.createElementVNode("div",cd,[F[0]||(F[0]=a.createElementVNode("div",{class:"ocr-candidate-title"},"待处理OCR行(可跳过)",-1)),a.createVNode(be,{data:y.value,border:"",stripe:"","max-height":"300",style:{width:"100%"},"highlight-current-row":"",onCurrentChange:H},{default:a.withCtx(()=>[a.createVNode(q,{type:"index",label:"序号",width:"60"}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(_.value,X=>(a.openBlock(),a.createBlock(q,{key:X.prop,label:X.label,prop:X.prop,"min-width":X.minWidth||160},{default:a.withCtx(({row:pe})=>[X.label==="证书附件"||X.prop==="证书附件"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[h(pe==null?void 0:pe[X.prop]).length>0?(a.openBlock(),a.createBlock(G,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:a.withModifiers(Ke=>v({row:pe,prop:X.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(a.openBlock(),a.createElementBlock("span",ud,"-"))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString((pe==null?void 0:pe[X.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128)),a.createVNode(q,{label:"候选数",width:"90",fixed:"right"},{default:a.withCtx(({row:X})=>[a.createTextVNode(a.toDisplayString(((X==null?void 0:X.candidates)||[]).length),1)]),_:1}),a.createVNode(q,{label:"处理状态",width:"120",fixed:"right"},{default:a.withCtx(({row:X})=>[(X==null?void 0:X.__decision)==="replace"?(a.openBlock(),a.createElementBlock("span",dd,"替换")):(X==null?void 0:X.__decision)==="add"?(a.openBlock(),a.createElementBlock("span",pd,"新增")):(X==null?void 0:X.__decision)==="skip"?(a.openBlock(),a.createElementBlock("span",fd,"跳过")):(a.openBlock(),a.createElementBlock("span",hd,"未处理"))]),_:1})]),_:1},8,["data"])]),y.value&&y.value.length>0?(a.openBlock(),a.createElementBlock("div",vd,[F[4]||(F[4]=a.createElementVNode("div",{class:"ocr-candidate-title"},"当前行候选记录(同编号)",-1)),a.createElementVNode("div",md,[a.createVNode(ze,{id:"themeBorderButton",onClick:J},{default:a.withCtx(()=>F[1]||(F[1]=[a.createTextVNode("跳过本行")])),_:1,__:[1]}),a.createVNode(ze,{id:"themeBorderButton",onClick:D,disabled:!d.value},{default:a.withCtx(()=>F[2]||(F[2]=[a.createTextVNode("新增本行")])),_:1,__:[2]},8,["disabled"]),a.createVNode(ze,{class:"ok-button",id:"themeButton",onClick:$,disabled:!b.value||!w.value},{default:a.withCtx(()=>F[3]||(F[3]=[a.createTextVNode("替换选中记录")])),_:1,__:[3]},8,["disabled"])]),(((ne=S.value)==null?void 0:ne.candidates)||[]).length===0?(a.openBlock(),a.createBlock(De,{key:0,title:"该编号暂无候选记录,可选择“新增本行”或“跳过本行”。",type:"info",closable:!1,"show-icon":"",style:{margin:"8px 0"}})):a.createCommentVNode("",!0),a.createVNode(be,{data:((ke=S.value)==null?void 0:ke.candidates)||[],border:"",stripe:"","max-height":"300",style:{width:"100%"},onCurrentChange:k,"highlight-current-row":""},{default:a.withCtx(()=>[a.createVNode(q,{type:"index",label:"序号",width:"60"}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(A.value,X=>(a.openBlock(),a.createBlock(q,{key:X.prop,label:X.label,prop:X.prop,"min-width":X.minWidth||160},{default:a.withCtx(({row:pe})=>[X.label==="证书附件"||X.prop==="证书附件"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[h(pe==null?void 0:pe[X.prop]).length>0?(a.openBlock(),a.createBlock(G,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:a.withModifiers(Ke=>v({row:pe,prop:X.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(a.openBlock(),a.createElementBlock("span",yd,"-"))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString((pe==null?void 0:pe[X.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128))]),_:1},8,["data"])])):a.createCommentVNode("",!0)])]}),footer:a.withCtx(()=>[a.createElementVNode("div",gd,[a.createVNode(ze,{id:"themeBorderButton",onClick:z},{default:a.withCtx(()=>F[5]||(F[5]=[a.createTextVNode("取消")])),_:1,__:[5]}),a.createVNode(ze,{class:"ok-button",id:"themeButton",onClick:x},{default:a.withCtx(()=>F[6]||(F[6]=[a.createTextVNode("提交已处理")])),_:1,__:[6]})])]),_:1},8,["visible"])}}},kd=ql._export_sfc(bd,[["__scopeId","data-v-89e0489c"]]),xd={class:"ocr-preview-content"},_d={class:"ocr-preview-tip"},wd={class:"ocr-preview-table"},Cd={style:{display:"flex","align-items":"center",gap:"8px"}},Ed={class:"dialog-footer"},Sd={__name:"OCRResultPreviewDialog",props:{visible:{type:Boolean,default:!1},ocrPreviewData:{type:Array,default:()=>[]},ocrPreviewColumns:{type:Array,default:()=>[]},ocrSelectedFields:{type:Array,default:()=>[]}},emits:["update:visible","update:ocrPreviewData","update:ocrSelectedFields","confirm","fieldChange"],setup(l,{emit:r}){const n=l,t=r,s=a.ref([]),d=a.ref([]),b=a.ref([]);a.watch(()=>n.visible,A=>{A&&(s.value=JSON.parse(JSON.stringify(n.ocrPreviewData)),d.value=JSON.parse(JSON.stringify(n.ocrPreviewColumns)),b.value=[...n.ocrSelectedFields])});const h=(A,_)=>{const H=[...b.value];if(_)H.includes(A)||H.push(A);else{const k=H.indexOf(A);k>-1&&H.splice(k,1)}b.value=H,t("update:ocrSelectedFields",H)},v=(A,_,H)=>{t("fieldChange",{rowIndex:A,prop:_,value:H})},y=()=>{t("update:ocrPreviewData",s.value),t("confirm",s.value),t("update:visible",!1)},c=()=>{t("update:visible",!1)},w=A=>typeof A!="number"?"-":`${(A*100).toFixed(1)}%`,S=A=>typeof A!="number"?"#606266":A>=.9?"#67c23a":A>=.7?"#e6a23c":"#f56c6c";return(A,_)=>{const H=a.resolveComponent("el-alert"),k=a.resolveComponent("el-table-column"),T=a.resolveComponent("el-checkbox"),J=a.resolveComponent("el-input"),D=a.resolveComponent("el-table"),$=a.resolveComponent("el-button");return a.openBlock(),a.createBlock(vr.ssDialog,{title:"OCR识别结果预览",visible:l.visible,onBeforeDestroy:c,width:"90%",style:{maxWidth:"1200px"}},{default:a.withCtx(()=>[a.createElementVNode("div",xd,[a.createElementVNode("div",_d,[a.createVNode(H,{title:"请核对识别结果。系统将按 编号+名称+制造厂 规则匹配并替换;未唯一命中但有编号的,将进入候选选择;无编号则直接新增。",type:"info",closable:!1,"show-icon":""})]),a.createElementVNode("div",wd,[a.createVNode(D,{data:s.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:a.withCtx(()=>[a.createVNode(k,{type:"index",label:"序号",width:"60",fixed:""}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(d.value,z=>(a.openBlock(),a.createBlock(k,{key:z.prop,prop:z.prop,"min-width":z.minWidth||230,"class-name":z.isAccuracy?"accuracy-column":""},{header:a.withCtx(()=>[a.createElementVNode("div",Cd,[z.isAccuracy?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(T,{key:0,"model-value":b.value.includes(z.prop),onChange:x=>h(z.prop,x),onClick:_[0]||(_[0]=a.withModifiers(()=>{},["stop"]))},null,8,["model-value","onChange"])),a.createElementVNode("span",null,a.toDisplayString(z.label),1)])]),default:a.withCtx(({row:x,$index:g})=>[z.isAccuracy?(a.openBlock(),a.createElementBlock("span",{key:0,class:"accuracy-value",style:a.normalizeStyle({color:S(x[z.prop]),fontWeight:500})},a.toDisplayString(w(x[z.prop])),5)):(a.openBlock(),a.createBlock(J,{key:1,modelValue:x[z.prop],"onUpdate:modelValue":F=>x[z.prop]=F,size:"small",placeholder:"请输入"+z.label,onChange:F=>v(g,z.prop,F)},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"]))]),_:2},1032,["prop","min-width","class-name"]))),128))]),_:1},8,["data"])])])]),footer:a.withCtx(()=>[a.createElementVNode("div",Ed,[a.createVNode($,{onClick:c,id:"themeBorderButton"},{default:a.withCtx(()=>_[1]||(_[1]=[a.createTextVNode("取消")])),_:1,__:[1]}),a.createVNode($,{class:"ok-button",onClick:y,id:"themeButton"},{default:a.withCtx(()=>_[2]||(_[2]=[a.createTextVNode("确认")])),_:1,__:[2]})])]),_:1},8,["visible"])}}},Dd=ql._export_sfc(Sd,[["__scopeId","data-v-df66eb1f"]]),xt=l=>{var t;let r=l;(r==null?void 0:r[0])==="("&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1));let n=(t=$a.analyzeSplitToContent(r,","))==null?void 0:t.map(s=>((s==null?void 0:s[(s==null?void 0:s.length)-1])===","&&(s=s==null?void 0:s.slice(0,(s==null?void 0:s.length)-1)),ci(s)));return n=n==null?void 0:n.join(","),n};let Ma="$R",xo="[Any]";const Bd=l=>{var b,h;let r={},n=l==null?void 0:l[0],t=(h=(b=n==null?void 0:n.replace("{",Ma))==null?void 0:b.split(Ma))==null?void 0:h[0];(t==null?void 0:t[0])==="*"&&(t=t==null?void 0:t.slice(1,t==null?void 0:t.length)),t=t==null?void 0:t.split(":"),r.group=t;let s=l==null?void 0:l[1],d=s==null?void 0:s.replaceAll(xo,"");return(d==null?void 0:d[0])==="$"&&(d=d==null?void 0:d.slice(1,d==null?void 0:d.length)),r.filter=d,r},Nd=l=>{var c,w,S,A,_,H,k;let r=[],n=[],t=l==null?void 0:l.map(T=>{var D;let J=(D=$a.analyzeSplitToContent(T,"@"))==null?void 0:D[0];return(J==null?void 0:J[(J==null?void 0:J.length)-1])==="@"&&(J=J==null?void 0:J.slice(0,(J==null?void 0:J.length)-1)),J}),s="",d=$a.analyzeSplitToContent(t==null?void 0:t[0],":");n=(c=d==null?void 0:d.filter(T=>!(T!=null&&T.includes("{"))&&!(T!=null&&T.includes("["))))==null?void 0:c.join(""),(n==null?void 0:n[(n==null?void 0:n.length)-1])===":"&&(n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1)),(n==null?void 0:n[0])==="*"&&(n=n==null?void 0:n.slice(1,n==null?void 0:n.length)),n=n==null?void 0:n.split(":");let b=d==null?void 0:d.filter(T=>(T==null?void 0:T.includes("{"))||(T==null?void 0:T.includes("["))),h=(S=b==null?void 0:b[0])==null?void 0:S.slice(1,((w=b==null?void 0:b[0])==null?void 0:w.length)-1);h=(A=$a.analyzeSplitToContent(h,","))==null?void 0:A.map(T=>((T==null?void 0:T[(T==null?void 0:T.length)-1])===","&&(T=T==null?void 0:T.slice(0,(T==null?void 0:T.length)-1)),T));let v="@"+((_=$a.analyzeSplitToContent(l==null?void 0:l[0],"@"))==null?void 0:_[1]);((H=$a.analyzeSplitToContent(v,":"))==null?void 0:H.length)>1&&(r=Ct((k=$a.analyzeSplitToContent(v,":"))==null?void 0:k[1]),r=[r]);let y=[];return h==null||h.forEach((T,J)=>{var ze,De,ne,ke,X,pe,Ke,Sa,te,B,le,ye,se,Ne,ia,xa,Ha,ee,ea,Pe,ga,He,Ae,Re,Ge,Ka,Ia,R,P,Y,oe,ie,fa,ra,Ie,we,Ca,fe,Je,Ze,Fe,ka,$e,pa,re,Se,K;let D=(ze=T==null?void 0:T.split("=="))==null?void 0:ze[0],$=(De=T==null?void 0:T.split("=="))==null?void 0:De[1],z=[],x=[],g=[],F=[],q="Input",G=[],be=[];if((T==null?void 0:T[0])!=="{"){if(($==null?void 0:$[0])==="$")$=$==null?void 0:$.slice(1,$==null?void 0:$.length),z=(ke=(ne=$==null?void 0:$.split("*"))==null?void 0:ne[0])==null?void 0:ke.split(":"),x=(B=(te=(Sa=(Ke=(pe=(X=$==null?void 0:$.split("*"))==null?void 0:X[1])==null?void 0:pe.replace("{",Ma))==null?void 0:Ke.split(Ma))==null?void 0:Sa[0])==null?void 0:te.split(":"))==null?void 0:B.filter(je=>je!==""),g=(ye=(le=$==null?void 0:$.replace("{",Ma))==null?void 0:le.split(Ma))==null?void 0:ye[1],g=g==null?void 0:g.replaceAll("}",""),g=g==null?void 0:g.split(":"),q="Select";else if(((se=$a.analyzeSplitToContent(T,"="))==null?void 0:se.length)>1){let je=(Ne=D==null?void 0:D.split("="))==null?void 0:Ne[1];if(D=(ia=D==null?void 0:D.split("="))==null?void 0:ia[0],q="Select",!(T!=null&&T.includes("||")))je=(xa=je==null?void 0:je.split("/"))==null?void 0:xa.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)),F=je==null?void 0:je.map(Be=>({label:Be==null?void 0:Be.replaceAll("'",""),value:Be==null?void 0:Be.replaceAll("'","")}));else{let Be=[];(Pe=(ea=(ee=(Ha=T==null?void 0:T.replace("=",Ma))==null?void 0:Ha.split(Ma))==null?void 0:ee[1])==null?void 0:ea.split("||"))==null||Pe.forEach(za=>{var Ea,Ye,ua;G.push((Ye=(Ea=za==null?void 0:za.split("@Filter"))==null?void 0:Ea[0])==null?void 0:Ye.split("/")),Be.push((ua=za==null?void 0:za.split("@Filter"))==null?void 0:ua[1])}),be=Be==null?void 0:Be.map(za=>(za=za==null?void 0:za.slice(1,(za==null?void 0:za.length)-1),za))}}else if(T!=null&&T.includes("@")&&!(T!=null&&T.includes("||"))){D=(Ge=(Re=(Ae=(He=(ga=D==null?void 0:D.replace("(@",Ma))==null?void 0:ga.split(Ma))==null?void 0:He[0])==null?void 0:Ae.replace("@",Ma))==null?void 0:Re.split(Ma))==null?void 0:Ge[0];let je=T!=null&&T.includes("(@")?"(@"+((Ia=(Ka=T==null?void 0:T.replace("(@",Ma))==null?void 0:Ka.split(Ma))==null?void 0:Ia[1]):"@"+((P=(R=T==null?void 0:T.replace("@",Ma))==null?void 0:R.split(Ma))==null?void 0:P[1]);if(je=(Y=xt(je))==null?void 0:Y.split(","),je!=null&&je.find(Be=>Be==null?void 0:Be.includes("@Type"))){let Be=(oe=je==null?void 0:je.find(za=>za==null?void 0:za.includes("@Type")))==null?void 0:oe.split("=");Be!=null&&Be.includes("File")&&(q="Upload"),Be!=null&&Be.includes("Date")&&(q="Date"),Be!=null&&Be.includes("DateTime")&&(q="DateTime"),Be!=null&&Be.includes("Time")&&(q="Time")}}y.push({prop:D,label:D,value:"",menuPath:z,groups:x,columns:g,width:h==null?void 0:h.length,options:F,type:q,allContents:G,filterContents:be})}else{s=s+"@"+((ie=$a.analyzeSplitToContent(T,"@"))==null?void 0:ie[1]);let je=(fa=$a.analyzeSplitToContent(T,"@"))==null?void 0:fa[0];(je==null?void 0:je[(je==null?void 0:je.length)-1])==="@"&&(je=je==null?void 0:je.slice(0,(je==null?void 0:je.length)-1));let Be=(ra=je==null?void 0:je.split("=="))==null?void 0:ra[0],za=(Ie=je==null?void 0:je.split("=="))==null?void 0:Ie[1],Ea=(Ca=(we=za==null?void 0:za.split("*"))==null?void 0:we[0])==null?void 0:Ca.replace(xo,"");(Ea==null?void 0:Ea[0])==="$"&&(Ea=Ea==null?void 0:Ea.slice(1,Ea==null?void 0:Ea.length)),Ea=$a.analyzeSplitToContent(Ea,"$"),Ea=(fe=Ea==null?void 0:Ea.map((Ye,ua)=>{var _e;return ua===0&&(Ea==null?void 0:Ea.length)>1&&(Ye=(_e=Ye==null?void 0:Ye.split(":"))==null?void 0:_e[0]),(Ea==null?void 0:Ea.length)>1&&ua===(Ea==null?void 0:Ea.length)-1&&(Ye=Ye+":"),Ye}))==null?void 0:fe.join(":"),z=Ea==null?void 0:Ea.split(":"),x=(pa=($e=(ka=(Fe=(Ze=(Je=za==null?void 0:za.split("*"))==null?void 0:Je[1])==null?void 0:Ze.replace("{",Ma))==null?void 0:Fe.split(Ma))==null?void 0:ka[0])==null?void 0:$e.split(":"))==null?void 0:pa.filter(Ye=>Ye!==""),g=(Se=(re=za==null?void 0:za.replace("{",Ma))==null?void 0:re.split(Ma))==null?void 0:Se[1],g=g==null?void 0:g.replaceAll("}",""),Be=Be==null?void 0:Be.slice(1,(Be==null?void 0:Be.length)-1),g=g==null?void 0:g.split(","),q="Select",(K=Be==null?void 0:Be.split(","))==null||K.forEach((Ye,ua)=>{var _e,Z;y.push({prop:Ye,label:Ye,value:"",menuPath:z,groups:x,columns:(_e=g==null?void 0:g[ua])==null?void 0:_e.split(":"),width:(Z=Be==null?void 0:Be.split(","))==null?void 0:Z.length,type:q})})}}),{groupName:n,formContents:y,contents:r,filter:s}},Ct=l=>{var t,s;let r=[],n=l.slice(1,(l==null?void 0:l.length)-1);if((n==null?void 0:n[0])!=="[")(t=$a.analyzeSplitToContent(n,","))==null||t.forEach(d=>{(d==null?void 0:d[(d==null?void 0:d.length)-1])===","&&(d=d.slice(0,(d==null?void 0:d.length)-1)),r.push(d??"")});else{let d=[];(s=$a.analyzeSplitToContent(n,","))==null||s.forEach(b=>{(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)),d.push(Ct(b))}),r=d}return r},si=(l,r)=>{var k,T,J,D,$,z,x,g,F,q,G,be,ze,De,ne,ke,X,pe,Ke,Sa,te,B,le,ye,se,Ne,ia,xa,Ha,ee,ea,Pe,ga,He,Ae,Re,Ge,Ka,Ia,R,P,Y,oe,ie,fa,ra,Ie,we,Ca,fe,Je,Ze,Fe,ka,$e,pa,re,Se,K,je,Be,za,Ea,Ye,ua;let n,t=[],s=[],d=[],b=[],h=[],v=[],y=[],c="Input",w,S="",A="",_=[],H="";if(l!=null&&l.includes("@Pam")||l!=null&&l.includes("==")||l!=null&&l.includes("="))if(l!=null&&l.includes("@Pam")){let _e=$a.analyzeSplitToContent(l,"=");if((_e==null?void 0:_e.length)>1){l=_e==null?void 0:_e[0],l=l==null?void 0:l.slice(0,(l==null?void 0:l.length)-1);let We=_e==null?void 0:_e[(_e==null?void 0:_e.length)-1];(We==null?void 0:We[0])==="&"&&(We=We==null?void 0:We.slice(1,We==null?void 0:We.length)),A=(T=(k=We==null?void 0:We.replace("(",Ma))==null?void 0:k.split(Ma))==null?void 0:T[0];let La=(D=(J=We==null?void 0:We.replace(")",Ma))==null?void 0:J.split(Ma))==null?void 0:D[0];La=(z=($=La==null?void 0:La.replace("(",Ma))==null?void 0:$.split(Ma))==null?void 0:z[1],(La==null?void 0:La[0])==="{"&&(La=La==null?void 0:La.slice(1,La==null?void 0:La.length)),(La==null?void 0:La[(La==null?void 0:La.length)-1])==="}"&&(La=La==null?void 0:La.slice(0,(La==null?void 0:La.length)-1)),_=La==null?void 0:La.split(",");let ml=(g=(x=We==null?void 0:We.replace(")",Ma))==null?void 0:x.split(Ma))==null?void 0:g[1];ml&&ml!==""&&(H=xt(ml))}n=(q=(F=l==null?void 0:l.replace("@Pam",Ma))==null?void 0:F.split(Ma))==null?void 0:q[0];let Z=(be=(G=l==null?void 0:l.replace("@Pam",Ma))==null?void 0:G.split(Ma))==null?void 0:be[1];Z=Z==null?void 0:Z.slice(1,(Z==null?void 0:Z.length)-1),Z=(ze=$a.analyzeSplitToContent(Z,","))==null?void 0:ze.map(We=>(We="@"+We,We));let ya=Z==null?void 0:Z.find(We=>We==null?void 0:We.includes("@Type"));ya!=null&&ya.includes("File")&&(c="Upload"),ya!=null&&ya.includes("Date")&&(c="Date"),ya!=null&&ya.includes("DateTime")&&(c="DateTime"),ya!=null&&ya.includes("Time")&&(c="Time"),w=Z==null?void 0:Z.find(We=>We==null?void 0:We.includes("@IdentName")),w=w?(ne=(De=w==null?void 0:w.replace("=",Ma))==null?void 0:De.split(Ma))==null?void 0:ne[1]:n}else{if(n=(ke=l==null?void 0:l.split("=="))==null?void 0:ke[0],w=(X=l==null?void 0:l.split("=="))==null?void 0:X[0],l!=null&&l.includes("=")&&!(l!=null&&l.includes("=="))&&!((Sa=(Ke=(pe=l==null?void 0:l.replace("=",Ma))==null?void 0:pe.split(Ma))==null?void 0:Ke[1])!=null&&Sa.includes("||")))if(n=(te=l==null?void 0:l.split("="))==null?void 0:te[0],w=n,l!=null&&l.includes("(@")||l!=null&&l.includes("@")){if(l!=null&&l.includes("(@")){let Z=(B=l==null?void 0:l.split("(@"))==null?void 0:B[1];Z=Z==null?void 0:Z.slice(0,(Z==null?void 0:Z.length)-1),Z=(ye=(le=Z==null?void 0:Z.replace("(",Ma))==null?void 0:le.split(Ma))==null?void 0:ye[1],Z=Z==null?void 0:Z.slice(0,(Z==null?void 0:Z.length)-1),d==null||d.push(Z),l=(se=l==null?void 0:l.split("(@"))==null?void 0:se[0]}else{let Z=(Ne=l==null?void 0:l.split("@"))==null?void 0:Ne[1];Z=Z==null?void 0:Z.slice(0,(Z==null?void 0:Z.length)-1),Z=(xa=(ia=Z==null?void 0:Z.replace("(",Ma))==null?void 0:ia.split(Ma))==null?void 0:xa[1],Z=Z==null?void 0:Z.slice(0,(Z==null?void 0:Z.length)-1),d==null||d.push(Z),l=(Ha=l==null?void 0:l.split("@"))==null?void 0:Ha[0]}let _e=(ea=(ee=l==null?void 0:l.split("="))==null?void 0:ee[1])==null?void 0:ea.split("/");s.push(_e)}else t=(ga=$a.analyzeSplitToContent((Pe=l==null?void 0:l.split("="))==null?void 0:Pe[1],"/"))==null?void 0:ga.map(_e=>((_e==null?void 0:_e[(_e==null?void 0:_e.length)-1])==="/"&&(_e=_e==null?void 0:_e.slice(0,(_e==null?void 0:_e.length)-1)),_e)),t=t==null?void 0:t.map(_e=>({label:_e==null?void 0:_e.replaceAll("'",""),value:_e==null?void 0:_e.replaceAll("'","")}));else if((Re=(Ae=(He=l==null?void 0:l.replace("=",Ma))==null?void 0:He.split(Ma))==null?void 0:Ae[1])!=null&&Re.includes("||")){n=(Ge=l==null?void 0:l.split("="))==null?void 0:Ge[0],w=(Ka=l==null?void 0:l.split("="))==null?void 0:Ka[0];let _e=[];(Y=(P=(R=(Ia=l==null?void 0:l.replace("=",Ma))==null?void 0:Ia.split(Ma))==null?void 0:R[1])==null?void 0:P.split("||"))==null||Y.forEach(Z=>{var ya,We,La;s.push((We=(ya=Z==null?void 0:Z.split("@Filter"))==null?void 0:ya[0])==null?void 0:We.split("/")),_e.push((La=Z==null?void 0:Z.split("@Filter"))==null?void 0:La[1])}),d=_e==null?void 0:_e.map(Z=>(Z=Z==null?void 0:Z.slice(1,(Z==null?void 0:Z.length)-1),Z))}else{let _e=l==null?void 0:l.split("=="),Z=(oe=_e==null?void 0:_e.filter(ya=>(ya==null?void 0:ya[0])==="$"))==null?void 0:oe[0];if(Z&&!(Z!=null&&Z.includes("&"))){let ya=(ie=Z==null?void 0:Z.replace("*",Ma))==null?void 0:ie.split(Ma),We=(ya==null?void 0:ya[0])===""?r==null?void 0:r.value:ya==null?void 0:ya[0];We=We==null?void 0:We.replaceAll("[Any]",""),(We==null?void 0:We[0])==="$"&&(We=(fa=We==null?void 0:We.slice(1,We==null?void 0:We.length))==null?void 0:fa.replaceAll(":","/")),b=We==null?void 0:We.split("/");let La=(Ie=(ra=ya==null?void 0:ya[1])==null?void 0:ra.replace("{",Ma))==null?void 0:Ie.split(Ma),ml=La==null?void 0:La[0];(ml==null?void 0:ml[(ml==null?void 0:ml.length)-1])===":"&&(ml=ml==null?void 0:ml.slice(0,(ml==null?void 0:ml.length)-1)),h=ml==null?void 0:ml.split(":"),v=(Je=(fe=(Ca=(we=La==null?void 0:La[1])==null?void 0:we.replace("}",Ma))==null?void 0:Ca.split(Ma))==null?void 0:fe[0])==null?void 0:Je.split(":");let Aa=(ka=(Fe=(Ze=La==null?void 0:La[(La==null?void 0:La.length)-1])==null?void 0:Ze.replace("}",Ma))==null?void 0:Fe.split(Ma))==null?void 0:ka[1];Aa&&Aa!==""&&(S=xt(Aa))}if(_e!=null&&_e.some(ya=>(ya==null?void 0:ya[0])==="&")){let ya=($e=_e==null?void 0:_e.filter(ml=>(ml==null?void 0:ml[0])==="&"))==null?void 0:$e[0];(ya==null?void 0:ya[0])==="&"&&(ya=ya==null?void 0:ya.slice(1,ya==null?void 0:ya.length)),A=(re=(pa=ya==null?void 0:ya.replace("(",Ma))==null?void 0:pa.split(Ma))==null?void 0:re[0];let We=(K=(Se=ya==null?void 0:ya.replace(")",Ma))==null?void 0:Se.split(Ma))==null?void 0:K[0];We=(Be=(je=We==null?void 0:We.replace("(",Ma))==null?void 0:je.split(Ma))==null?void 0:Be[1],(We==null?void 0:We[0])==="{"&&(We=We==null?void 0:We.slice(1,We==null?void 0:We.length)),(We==null?void 0:We[(We==null?void 0:We.length)-1])==="}"&&(We=We==null?void 0:We.slice(0,(We==null?void 0:We.length)-1)),_=We==null?void 0:We.split(",");let La=(Ea=(za=ya==null?void 0:ya.replace(")",Ma))==null?void 0:za.split(Ma))==null?void 0:Ea[1];La&&La!==""&&(H=xt(La))}else if(!Z){let ya=_e==null?void 0:_e[(_e==null?void 0:_e.length)-1];ya=ya==null?void 0:ya.slice(1,(ya==null?void 0:ya.length)-1),ya=$a.analyzeSplitToContent(ya,","),ya=ya==null?void 0:ya.map(We=>((We==null?void 0:We[(We==null?void 0:We.length)-1])===","&&(We=We==null?void 0:We.slice(0,(We==null?void 0:We.length)-1)),We)),ya=ya==null?void 0:ya.map(We=>{var La,ml;if(We=We==null?void 0:We.replaceAll("$",""),We!=null&&We.includes(xo)){let Aa="",el=We==null?void 0:We.split(xo);Aa=((ml=(La=el==null?void 0:el[0])==null?void 0:La.split(":"))==null?void 0:ml[0])+":"+(el==null?void 0:el[1]),We=Aa}return We=We==null?void 0:We.replaceAll(":","/"),We}),y=ya}}c="Select"}else n=l,w=l;return n!=null&&n.includes("@Pam")&&(n=(ua=(Ye=l==null?void 0:l.replace("@Pam",Ma))==null?void 0:Ye.split(Ma))==null?void 0:ua[0],w=n),{label:n,prop:w,options:t,allContents:s,filterContents:d,menus:b,groups:h,words:v,align:"center",formType:c,filter:S,functionName:A,functionRelatedWords:_,calculatorFilter:H,relatedPages:y}},_o=(l,r)=>{var t,s,d,b,h,v,y,c,w,S,A,_,H,k,T,J,D,$,z,x,g,F,q,G,be,ze,De,ne,ke;let n=[];if((l==null?void 0:l[0])==="{"&&(l==null?void 0:l[(l==null?void 0:l.length)-1])==="}"&&!((b=(d=(s=(t=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1))==null?void 0:t.replace(":",Ma))==null?void 0:s.split(Ma))==null?void 0:d[0])!=null&&b.includes(","))){let X=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1),pe=(h=X==null?void 0:X.replace(":",Ma))==null?void 0:h.split(Ma);if(((v=$a.analyzeSplitToContent(pe==null?void 0:pe[1],"="))==null?void 0:v.length)===1){let Ke=pe==null?void 0:pe[0],Sa=[];(w=$a.analyzeSplitToContent((c=pe==null?void 0:pe[1])==null?void 0:c.slice(1,((y=pe==null?void 0:pe[1])==null?void 0:y.length)-1),","))==null||w.forEach(te=>{var B,le;((B=$a.analyzeSplitToContent(te,"="))==null?void 0:B.length)>1?((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)),Sa=[...Sa,..._o(te,r)]):((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)),Sa.push((le=_o(te,r))==null?void 0:le[0]))}),n==null||n.push({label:Ke,prop:Ke,children:Sa,align:"center"})}else{let Ke=[];if(((S=$a.analyzeSplitToContent(X,"="))==null?void 0:S.length)>=2){let te=(A=$a.analyzeSplitToContent(X,"="))==null?void 0:A[1],B=(_=$a.analyzeSplitToContent(te,"/"))==null?void 0:_.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));Ke=B==null?void 0:B.map(le=>(le=Ct(le),le))}let Sa=($=(D=(J=(T=(k=(H=X==null?void 0:X.replace("{",Ma))==null?void 0:H.split(Ma))==null?void 0:k[1])==null?void 0:T.replace("}",Ma))==null?void 0:J.split(Ma))==null?void 0:D[0])==null?void 0:$.split(",");Sa==null||Sa.forEach((te,B)=>{(Ke==null?void 0:Ke.length)>0&&B===0?n==null||n.push({label:te,prop:te,align:"center",formType:"Select",relatedContents:Ke==null?void 0:Ke.map(le=>{let ye={};return Sa==null||Sa.forEach((se,Ne)=>{ye[se]=le==null?void 0:le[Ne]}),ye}),options:Ke==null?void 0:Ke.map(le=>({label:le==null?void 0:le[0],value:le==null?void 0:le[0]})),mainKey:!0}):n==null||n.push({label:te,prop:te,align:"center"})})}}else if((l==null?void 0:l[0])==="{")if(((z=$a.analyzeSplitToContent(l,"="))==null?void 0:z.length)===2&&((g=(x=$a.analyzeSplitToContent(l,"="))==null?void 0:x[1])==null?void 0:g[0])==="["){let X=[];if(((F=$a.analyzeSplitToContent(l,"="))==null?void 0:F.length)>=2){let Ke=(q=$a.analyzeSplitToContent(l,"="))==null?void 0:q[1],Sa=(G=$a.analyzeSplitToContent(Ke,"/"))==null?void 0:G.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));X=Sa==null?void 0:Sa.map(te=>(te=Ct(te),te))}let pe=(ze=(be=l==null?void 0:l.replace("}",Ma))==null?void 0:be.split(Ma))==null?void 0:ze[0];pe=(De=pe==null?void 0:pe.slice(1,pe==null?void 0:pe.length))==null?void 0:De.split(","),pe==null||pe.forEach((Ke,Sa)=>{(X==null?void 0:X.length)>0&&Sa===0?n==null||n.push({label:Ke,prop:Ke,align:"center",formType:"Select",relatedContents:X==null?void 0:X.map(te=>{let B={};return pe==null||pe.forEach((le,ye)=>{B[le]=te==null?void 0:te[ye]}),B}),options:X==null?void 0:X.map(te=>({label:te==null?void 0:te[0],value:te==null?void 0:te[0]})),mainKey:!0}):n==null||n.push({label:Ke,prop:Ke,align:"center"})})}else(ne=$a.analyzeSplitToContent(l,","))==null||ne.forEach(X=>{var pe,Ke,Sa,te,B,le,ye,se,Ne,ia,xa,Ha,ee,ea,Pe,ga,He,Ae,Re,Ge,Ka,Ia,R,P,Y,oe,ie,fa,ra,Ie,we,Ca,fe,Je,Ze,Fe,ka,$e,pa,re,Se;if((X==null?void 0:X[(X==null?void 0:X.length)-1])===","&&(X=X==null?void 0:X.slice(0,(X==null?void 0:X.length)-1)),(X==null?void 0:X[0])==="{"){let K=$a.analyzeSplitToContent(X,"="),je=K==null?void 0:K[(K==null?void 0:K.length)-1],Be=[],za=[],Ea=[],Ye=[],ua=[],_e=(pe=je==null?void 0:je.replace("*",Ma))==null?void 0:pe.split(Ma),Z=(_e==null?void 0:_e[0])===""?r==null?void 0:r.value:_e==null?void 0:_e[0];if(Z=Z==null?void 0:Z.replaceAll("[Any]",""),(Z==null?void 0:Z[(Z==null?void 0:Z.length)-1])===":"&&(Z=Z!=null&&Z.includes("(@")?((Ke=Z==null?void 0:Z.split("(@"))==null?void 0:Ke[0])+":":((Sa=Z==null?void 0:Z.split("@"))==null?void 0:Sa[0])+":"),(Z==null?void 0:Z[0])==="$"&&(Z=(te=Z==null?void 0:Z.slice(1,Z==null?void 0:Z.length))==null?void 0:te.replaceAll(":","/")),Z!=null&&Z.includes("$")){let el=(B=Z==null?void 0:Z.split("$"))==null?void 0:B[0];el=(le=el==null?void 0:el.split("/"))==null?void 0:le[0],Z=el+"/"+((ye=Z==null?void 0:Z.split("$"))==null?void 0:ye[1])+"/"}(Z==null?void 0:Z[(Z==null?void 0:Z.length)-1])==="/"&&(Z==null?void 0:Z[(Z==null?void 0:Z.length)-2])==="/"&&(Z=Z==null?void 0:Z.slice(0,(Z==null?void 0:Z.length)-1)),Be=Z==null?void 0:Z.split("/");let ya=(Ne=(se=_e==null?void 0:_e[1])==null?void 0:se.replace("{",Ma))==null?void 0:Ne.split(Ma);if((Ha=(xa=(ia=_e==null?void 0:_e[1])==null?void 0:ia.split("(@"))==null?void 0:xa[0])!=null&&Ha.includes("&&")||(Pe=(ea=(ee=_e==null?void 0:_e[1])==null?void 0:ee.split("@"))==null?void 0:ea[0])!=null&&Pe.includes("&&")){let el=(ga=_e==null?void 0:_e[1])!=null&&ga.includes("(@")?(Re=(Ae=(He=_e==null?void 0:_e[1])==null?void 0:He.split("(@"))==null?void 0:Ae[0])==null?void 0:Re.split("&&"):(Ia=(Ka=(Ge=_e==null?void 0:_e[1])==null?void 0:Ge.split("@"))==null?void 0:Ka[0])==null?void 0:Ia.split("&&");Ye=el==null?void 0:el.map(Pa=>{var Te,il;return(Pa==null?void 0:Pa[0])==="*"&&(Pa=Pa==null?void 0:Pa.slice(1,Pa==null?void 0:Pa.length)),Pa=(il=(Te=Pa==null?void 0:Pa.replace("{",Ma))==null?void 0:Te.split(Ma))==null?void 0:il[0],(Pa==null?void 0:Pa[(Pa==null?void 0:Pa.length)-1])===":"&&(Pa=Pa==null?void 0:Pa.slice(0,(Pa==null?void 0:Pa.length)-1)),Pa=Pa==null?void 0:Pa.split(":"),Pa});let Ja=[];el==null||el.forEach((Pa,Te)=>{var il,ma;(Pa==null?void 0:Pa[0])==="*"&&(Pa=Pa==null?void 0:Pa.slice(1,Pa==null?void 0:Pa.length)),Pa=(ma=(il=Pa==null?void 0:Pa.replace("{",Ma))==null?void 0:il.split(Ma))==null?void 0:ma[1],(Pa==null?void 0:Pa[(Pa==null?void 0:Pa.length)-1])==="}"&&(Pa=Pa==null?void 0:Pa.slice(0,(Pa==null?void 0:Pa.length)-1)),Pa=Pa==null?void 0:Pa.split(","),Ja.push(Te===0?(Pa==null?void 0:Pa.length)-1:Pa==null?void 0:Pa.length),ua=[...ua,...Pa]}),Ja=(R=$a.prefixSum(Ja))==null?void 0:R.map(Pa=>Pa==null?void 0:Pa.total),Ye=Ye==null?void 0:Ye.map((Pa,Te)=>({number:Ja==null?void 0:Ja[Te],contents:Pa}))}let We=ya==null?void 0:ya[0];(We==null?void 0:We[(We==null?void 0:We.length)-1])===":"&&(We=We==null?void 0:We.slice(0,(We==null?void 0:We.length)-1)),za=We==null?void 0:We.split(":"),Ea=(ie=(oe=(Y=(P=ya==null?void 0:ya[1])==null?void 0:P.replace("}",Ma))==null?void 0:Y.split(Ma))==null?void 0:oe[0])==null?void 0:ie.split(",");let La=(ra=K==null?void 0:K[0])==null?void 0:ra.slice(1,((fa=K==null?void 0:K[0])==null?void 0:fa.length)-2),ml="",Aa="";if((Ie=K==null?void 0:K[(K==null?void 0:K.length)-1])!=null&&Ie.includes("(@")?(Aa=(fe=(Ca=(we=K==null?void 0:K[(K==null?void 0:K.length)-1])==null?void 0:we.replace("(@",Ma))==null?void 0:Ca.split(Ma))==null?void 0:fe[1],Aa="(@"+Aa):(Je=K==null?void 0:K[(K==null?void 0:K.length)-1])!=null&&Je.includes("@")&&(Aa=(ka=(Fe=(Ze=K==null?void 0:K[(K==null?void 0:K.length)-1])==null?void 0:Ze.replace("@",Ma))==null?void 0:Fe.split(Ma))==null?void 0:ka[1],Aa="@"+Aa),(($e=$a.analyzeSplitToContent(Aa,"&"))==null?void 0:$e.length)>1){let el=(re=(pa=$a.analyzeSplitToContent(Aa,"}"))==null?void 0:pa.map(Ja=>{var Pa;return Ja!=null&&Ja.includes("@")||(Ja=""),Ja!=null&&Ja.includes("@")&&(Ja=(Pa=$a.analyzeSplitToContent(Ja,":"))==null?void 0:Pa[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==null?void 0:Ja[0])==="("&&(Ja=Ja==null?void 0:Ja.slice(1,(Ja==null?void 0:Ja.length)-1))),Ja}))==null?void 0:re.filter(Ja=>Ja!=="");Aa=(Aa==null?void 0:Aa.length)===1?el:"("+(el==null?void 0:el.join(","))+")"}Aa&&Aa!==""&&(ml=xt(Aa)),(Se=La==null?void 0:La.split(","))==null||Se.forEach((el,Ja)=>{var Pa,Te,il;n.push({label:el,prop:el,align:"center",menus:Be,groups:(Ye==null?void 0:Ye.length)===0?za:(Pa=Ye==null?void 0:Ye.find(ma=>(ma==null?void 0:ma.number)>=Ja))==null?void 0:Pa.contents,words:(ua==null?void 0:ua.length)===0?(Te=Ea==null?void 0:Ea[Ja])==null?void 0:Te.split(":"):(il=ua==null?void 0:ua[Ja])==null?void 0:il.split(":"),formType:(Be==null?void 0:Be.length)>0?"Select":"Input",mainKey:Ja===0,filter:ml,isMainPath:(Ye==null?void 0:Ye.findIndex(ma=>(ma==null?void 0:ma.number)>=Ja))===0})})}else n.push({label:X,prop:X,align:"center"})});else{let X=(ke=$a.analyzeSplitToContent(l,","))==null?void 0:ke.map(pe=>((pe==null?void 0:pe[(pe==null?void 0:pe.length)-1])===","&&(pe=pe==null?void 0:pe.slice(0,(pe==null?void 0:pe.length)-1)),pe));X==null||X.forEach(pe=>{n.push(si(pe,r))})}return n},Td=(l,r)=>{var b,h,v,y,c;let n=l;if(!l)return;let t="";((b=$a.analyzeSplitToContent(l,"}"))==null?void 0:b.length)>1&&(n=(h=$a.analyzeSplitToContent(l,"}"))==null?void 0:h[0],t=(v=$a.analyzeSplitToContent(l,"}"))==null?void 0:v[1]),(l==null?void 0:l[0])==="{"&&(l==null?void 0:l[(l==null?void 0:l.length)-1])==="}"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1));let s=[],d=[];return s.push({label:"排序",prop:"sort"}),s.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(y=$a.analyzeSplitToContent(n,","))==null||y.forEach(w=>{var S;(w==null?void 0:w[(w==null?void 0:w.length)-1])===","&&(w=w==null?void 0:w.slice(0,(w==null?void 0:w.length)-1)),(w==null?void 0:w[0])==="{"?(S=_o(w,r))==null||S.forEach(A=>{s.push(A)}):s.push(si(w,r))}),t!==""&&((t==null?void 0:t[0])=="{"&&(t=t==null?void 0:t.slice(1,(t==null?void 0:t.length)-1)),(c=$a.analyzeSplitToContent(t,","))==null||c.forEach(w=>{var S;(w==null?void 0:w[(w==null?void 0:w.length)-1])===","&&(w=w==null?void 0:w.slice(0,(w==null?void 0:w.length)-1)),(w==null?void 0:w[0])==="{"?(S=_o(w,r))==null||S.forEach(A=>{d.push(A)}):d.push(si(w,r))})),{columns:s,secondColumns:d}},ci=l=>{var r,n,t;if(l!=null&&l.includes("@Filter")||l!=null&&l.includes("@Condition"))return l;{let s=(n=(r=l==null?void 0:l.replace("(",Ma))==null?void 0:r.split(Ma))==null?void 0:n[1];return s=s==null?void 0:s.slice(0,(s==null?void 0:s.length)-1),s=(t=$a.analyzeSplitToContent(s,","))==null?void 0:t.map(d=>((d==null?void 0:d[(d==null?void 0:d.length)-1])===","&&(d=d==null?void 0:d.slice(0,(d==null?void 0:d.length)-1)),"@"+d)),s=s==null?void 0:s.join(","),l!=null&&l.includes("@Quote")&&(s!=null&&s.includes("@Type")||(s=s===""?s+"@Type=Manual":s+",@Type=Manual"),s!=null&&s.includes("@SonSync")||(s=s===""?s+"@SonSync=No":s+",@SonSync=No"),s!=null&&s.includes("@FatherSync")||(s=s===""?s+"@FatherSync=Yes":s+",@FatherSync=Yes")),s}},Qi=l=>{let r=l==null?void 0:l.map(n=>{var t,s;return{menus:n==null?void 0:n.menus,content:((t=n==null?void 0:n.menus)==null?void 0:t.join("/"))+Ma+((s=n==null?void 0:n.groups)==null?void 0:s.join("/"))}});return r=r==null?void 0:r.filter(n=>{var t;return(n==null?void 0:n.menus)&&((t=n==null?void 0:n.menus)==null?void 0:t.length)>0}),r=r==null?void 0:r.map(n=>n==null?void 0:n.content),r=[...new Set(r)],r=r==null?void 0:r.map(n=>{var t,s;return{menus:(t=n==null?void 0:n.split(Ma))==null?void 0:t[0],groups:((s=n==null?void 0:n.split(Ma))==null?void 0:s[1])??[]}}),r},Ad=(l,r,n="")=>{var T,J,D,$,z,x,g,F,q,G,be,ze,De,ne,ke,X,pe,Ke,Sa,te,B,le,ye,se,Ne,ia,xa,Ha,ee,ea,Pe,ga,He,Ae,Re,Ge,Ka,Ia,R,P,Y,oe,ie,fa,ra,Ie,we,Ca,fe,Je,Ze,Fe,ka,$e,pa;let t=[];if(((T=l==null?void 0:l[0])==null?void 0:T[0])!=="*"&&((J=l==null?void 0:l[0])==null?void 0:J[0])!=="$")return;let s=$a.analyzeSplitToContent(l==null?void 0:l[0],":"),d=s==null?void 0:s.filter(re=>!((re==null?void 0:re[0])!=="{"&&(re==null?void 0:re[0])!=="["));t=(D=s==null?void 0:s.filter(re=>(re==null?void 0:re[0])!=="{"&&(re==null?void 0:re[0])!=="["))==null?void 0:D.join("");let b="",h="";if((t==null?void 0:t[(t==null?void 0:t.length)-1])===":"&&(t=t==null?void 0:t.slice(0,(t==null?void 0:t.length)-1)),t!=null&&t.includes("(@")&&(t==null?void 0:t[0])==="*"&&(b="(@"+(($=t==null?void 0:t.split("(@"))==null?void 0:$[1]),t=(z=t==null?void 0:t.split("(@"))==null?void 0:z[0]),t!=null&&t.includes("@")&&(t==null?void 0:t[0])==="*"&&(b="@"+((g=(x=t==null?void 0:t.replace("@",Ma))==null?void 0:x.split(Ma))==null?void 0:g[1]),t=(q=(F=t==null?void 0:t.replace("@",Ma))==null?void 0:F.split(Ma))==null?void 0:q[0]),(t==null?void 0:t[0])==="*"?(t=t==null?void 0:t.slice(1,t==null?void 0:t.length),t=t==null?void 0:t.split(":")):(h=I.cloneDeep(t)+":",t=[]),h=h+((d==null?void 0:d[0])??""),(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)),b!==""&&h!=="")if((h==null?void 0:h[(h==null?void 0:h.length)-1])===")")if(h!=null&&h.includes("(@")){let re=(G=h==null?void 0:h.split("(@"))==null?void 0:G[0],Se=(be=h==null?void 0:h.split("(@"))==null?void 0:be[1];Se="(@"+(Se==null?void 0:Se.slice(0,(Se==null?void 0:Se.length)-1))+b,h=re+Se}else{let re=(De=(ze=h==null?void 0:h.replace("@",Ma))==null?void 0:ze.split(Ma))==null?void 0:De[0],Se=(ke=(ne=h==null?void 0:h.replace("@",Ma))==null?void 0:ne.split(Ma))==null?void 0:ke[1];Se="(@"+Se+b,h=re+Se}else h=h+b;let v=d==null?void 0:d[1];(h==null?void 0:h[0])==="["&&(v=I.cloneDeep(h)+(v??""),h="");let y=v?Ct(v):[];!(y!=null&&y.every(re=>Array.isArray(re)))&&(y==null?void 0:y.length)>0&&(y=[y]);let c=(X=$a.analyzeSplitToContent(h,"@"))!=null&&X[1]?"@"+((pe=$a.analyzeSplitToContent(h,"@"))==null?void 0:pe[1]):"";if(h=(Ke=$a.analyzeSplitToContent(h,"@"))==null?void 0:Ke[0],(h==null?void 0:h[0])==="$"&&(c=I.cloneDeep(h)+(c??""),h=""),n!=="")if(b!=="")c=(n==null?void 0:n[(n==null?void 0:n.length)-1])!==")"?n+b:(n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1))+","+b;else{let re="";if(n!=null&&n.includes("(@")){let Se=(ye=(le=(B=(te=(Sa=n==null?void 0:n.replace("(@",Ma))==null?void 0:Sa.split(Ma))==null?void 0:te[0])==null?void 0:B.replace("{",Ma))==null?void 0:le.split(Ma))==null?void 0:ye[0];re=((Se==null?void 0:Se[(Se==null?void 0:Se.length)-1])===":"?Se==null?void 0:Se.slice(0,(Se==null?void 0:Se.length)-1):Se)+"(@"+((Ne=(se=n==null?void 0:n.replace("(@",Ma))==null?void 0:se.split(Ma))==null?void 0:Ne[1])}else if(n!=null&&n.includes("@")){let Se=(ea=(ee=(Ha=(xa=(ia=n==null?void 0:n.replace("@",Ma))==null?void 0:ia.split(Ma))==null?void 0:xa[0])==null?void 0:Ha.replace("{",Ma))==null?void 0:ee.split(Ma))==null?void 0:ea[0];re=((Se==null?void 0:Se[(Se==null?void 0:Se.length)-1])===":"?Se==null?void 0:Se.slice(0,(Se==null?void 0:Se.length)-1):Se)+"@"+((ga=(Pe=n==null?void 0:n.replace("@",Ma))==null?void 0:Pe.split(Ma))==null?void 0:ga[1])}c=re===""?n:re}if(c!==""){(c==null?void 0:c[0])==="$"&&(c=c==null?void 0:c.slice(1,c==null?void 0:c.length)),(c==null?void 0:c[(c==null?void 0:c.length)-1])===":"&&(c=c==null?void 0:c.slice(0,(c==null?void 0:c.length)-1));let re="";if(c!=null&&c.includes("(@")){re=(Ae=(He=c==null?void 0:c.replace("(@",Ma))==null?void 0:He.split(Ma))==null?void 0:Ae[0];let Se=(Ge=(Re=c==null?void 0:c.replace("(@",Ma))==null?void 0:Re.split(Ma))==null?void 0:Ge[1];Se="@"+(Se==null?void 0:Se.slice(0,(Se==null?void 0:Se.length)-1));let K=(Ka=$a.analyzeSplitToContent(Se,","))==null?void 0:Ka.map(je=>((je==null?void 0:je[(je==null?void 0:je.length)-1])===","&&(je=je==null?void 0:je.slice(0,(je==null?void 0:je.length)-1)),(je==null?void 0:je[(je==null?void 0:je.length)-1])!==")"&&(je=je+")"),ci(je)));c=re+"("+(K==null?void 0:K.join(","))+")"}else{re=(R=(Ia=c==null?void 0:c.replace("@",Ma))==null?void 0:Ia.split(Ma))==null?void 0:R[0];let Se=(Y=(P=c==null?void 0:c.replace("@",Ma))==null?void 0:P.split(Ma))==null?void 0:Y[1];if(Se){Se="@"+Se;let K=(oe=$a.analyzeSplitToContent(Se,","))==null?void 0:oe.map(je=>((je==null?void 0:je[(je==null?void 0:je.length)-1])!==")"&&(je=je+")"),ci(je)));c=re+"("+(K==null?void 0:K.join(","))+")"}else c=re}}(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));let w=Td(h,r),S=h===""?[]:(w==null?void 0:w.columns)??[],A=na.getColumnChild(S),_=A;_=_==null?void 0:_.filter(re=>{var Se,K;return(re==null?void 0:re.filter)&&(re==null?void 0:re.filter)!==""&&(((Se=re==null?void 0:re.filter)==null?void 0:Se.includes("@SonSync"))||((K=re==null?void 0:re.filter)==null?void 0:K.includes("@FatherSync")))});let H=_==null?void 0:_.filter(re=>{var Se,K,je;return((Se=re==null?void 0:re.filter)==null?void 0:Se.includes("@SonSync"))&&((je=(K=re==null?void 0:re.filter)==null?void 0:K.split(","))==null?void 0:je.find(Be=>(Be==null?void 0:Be.includes("@SonSync"))&&(Be==null?void 0:Be.includes("Yes"))))}),k=_==null?void 0:_.filter(re=>{var Se,K,je;return((Se=re==null?void 0:re.filter)==null?void 0:Se.includes("@FatherSync"))&&((je=(K=re==null?void 0:re.filter)==null?void 0:K.split(","))==null?void 0:je.find(Be=>(Be==null?void 0:Be.includes("@FatherSync"))&&(Be==null?void 0:Be.includes("Yes"))))});if(A=A==null?void 0:A.map(re=>{var Se,K;return{menus:re==null?void 0:re.menus,content:((Se=re==null?void 0:re.menus)==null?void 0:Se.join("/"))+Ma+((K=re==null?void 0:re.groups)==null?void 0:K.join("/"))}}),k=Qi(k),H=Qi(H),A=A==null?void 0:A.filter(re=>{var Se;return(re==null?void 0:re.menus)&&((Se=re==null?void 0:re.menus)==null?void 0:Se.length)>0}),A=A==null?void 0:A.map(re=>re==null?void 0:re.content),A=[...new Set(A)],A=A==null?void 0:A.map(re=>{var Se,K;return{menus:(Se=re==null?void 0:re.split(Ma))==null?void 0:Se[0],groups:((K=re==null?void 0:re.split(Ma))==null?void 0:K[1])??[]}}),S!=null&&S.some(re=>{var Se;return Array.isArray(re==null?void 0:re.children)&&((Se=re==null?void 0:re.children)==null?void 0:Se.length)>0})&&(S=[S]),(y==null?void 0:y.length)>0&&(Array.isArray(y==null?void 0:y[0])&&((ie=y==null?void 0:y[0])!=null&&ie.every(re=>Array.isArray(re)))?y=y==null?void 0:y.map((re,Se)=>(re=re.map((K,je)=>(K.unshift("{}"),K.unshift((je+1).toString()),K)),re)):y=y==null?void 0:y.map((re,Se)=>(re.unshift("{}"),re.unshift((Se+1).toString()),re))),w!=null&&w.secondColumns&&((fa=w==null?void 0:w.secondColumns)==null?void 0:fa.length)>0&&((y==null?void 0:y.length)>0?y=y==null?void 0:y.map((re,Se)=>{var K,je;return Array.isArray(re==null?void 0:re[0])?re=re==null?void 0:re.map((Be,za)=>{var Ea,Ye;return Be.unshift((Ye=(Ea=w==null?void 0:w.secondColumns)==null?void 0:Ea[za])==null?void 0:Ye.prop),Be}):re.unshift((je=(K=w==null?void 0:w.secondColumns)==null?void 0:K[Se])==null?void 0:je.prop),re}):y=(ra=w==null?void 0:w.secondColumns)==null?void 0:ra.map((re,Se)=>(re=[re==null?void 0:re.label],re.push(Se),re)),S.unshift({label:"",prop:"disabled",sortable:!1})),(S==null?void 0:S.length)>0){let re=I.cloneDeep(S);Array.isArray(re==null?void 0:re[0])&&(re=re==null?void 0:re[0]);let Se=na.getColumnChild(re);Se=Se==null?void 0:Se.map(K=>K==null?void 0:K.filter),Se=Se==null?void 0:Se.filter(K=>K&&K!==""),Se=[...new Set(Se)],(Se==null?void 0:Se.length)>0&&(c=Ma+(c==null?void 0:c.slice(1,(c==null?void 0:c.length)-1))+(c!=null&&c.slice(1,(c==null?void 0:c.length)-1)?",":"")+((Ie=I.cloneDeep(Se))==null?void 0:Ie.join(";")))}if((c==null?void 0:c[0])!=="("&&(c!=null&&c.includes("(@"))){let re=(Ca=(we=c==null?void 0:c.replace("(",Ma))==null?void 0:we.split(Ma))==null?void 0:Ca[0],Se=[{menus:(Je=(fe=re==null?void 0:re.split("*"))==null?void 0:fe[0])==null?void 0:Je.replaceAll(":","/"),groups:(Ze=re==null?void 0:re.split("*"))==null?void 0:Ze[1]}],K=(ka=(Fe=c==null?void 0:c.replace("(",Ma))==null?void 0:Fe.split(Ma))==null?void 0:ka[1];(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=$a.analyzeSplitToContent(K,","),($e=K==null?void 0:K.find(je=>je==null?void 0:je.includes("@FatherSync")))!=null&&$e.includes("Yes")&&(k=[...k,...Se]),(pa=K==null?void 0:K.find(je=>je==null?void 0:je.includes("@SonSync")))!=null&&pa.includes("Yes")&&(H=[...H,...Se])}return{groupName:t,tableColumns:S,tableFilter:c,tableContents:y,columns:(w==null?void 0:w.secondColumns)??[],relatedQuotes:A,fatherSyncContents:k,sonSyncContents:H}},Ks=(l,r)=>(l=l==null?void 0:l.map((n,t)=>{var s,d,b,h;if(Array.isArray(n))n=n==null?void 0:n.map(v=>{var y,c,w,S;return v!=null&&v.isMainPath||(((y=v==null?void 0:v.children)==null?void 0:y.length)>0?v.children=Ks(v.children,r):((c=v==null?void 0:v.menus)==null?void 0:c.length)>0&&!((w=n==null?void 0:n[0])!=null&&w.isMainPath)&&(v.menus=(S=v.menus)==null?void 0:S.map((A,_)=>{var H,k;return((H=v.menus)==null?void 0:H.length)-1===_&&A===""&&(r==null?void 0:r.parentContent)+"/"!==((k=v.menus)==null?void 0:k.join("/"))&&(A=r==null?void 0:r.value),v}),v.bindMenus=v.menus)),v});else{if(t===0&&((s=n.menus)==null?void 0:s.length)>0&&(n.mainKey=!0),n!=null&&n.isMainPath)return n;((d=n.menus)==null?void 0:d.length)>0&&!((b=l==null?void 0:l[0])!=null&&b.isMainPath)&&(n.menus=(h=n.menus)==null?void 0:h.map((v,y)=>{var c,w;return((c=n.menus)==null?void 0:c.length)-1===y&&v===""&&(r==null?void 0:r.parentContent)+"/"!==((w=n.menus)==null?void 0:w.join("/"))&&(v=r==null?void 0:r.value),v}),n.bindMenus=n.menus)}return n}),l),zd=(l,r)=>(l=l==null?void 0:l.map(n=>((n==null?void 0:n.key)==="header"&&(n.contents=Ks(n.contents,r)),n)),l),ui=(l,r)=>{let n=l;return Array.isArray(n==null?void 0:n[0])?n=n==null?void 0:n.map(t=>(t=ui(t,r),t)):n=n==null?void 0:n.map(t=>{var s,d;return t!=null&&t.children&&((s=t==null?void 0:t.children)==null?void 0:s.length)>0?t.children=ui(t==null?void 0:t.children,r):t!=null&&t.words&&((d=t==null?void 0:t.words)==null?void 0:d.length)>0&&(r!=null&&r.find(b=>{var h,v,y,c;return((c=(h=t==null?void 0:t.prop)==null?void 0:h.split("."))==null?void 0:c[((y=(v=t==null?void 0:t.prop)==null?void 0:v.split("."))==null?void 0:y.length)-1])===b}))&&(t.mainKey=!0),t}),n};let tr="$R";const Md=I.useUnit(I.pinia),{selectTitle:sn}=I.storeToRefs(Md),cn=[{key:"@MaxRow",value:"onNumSlice",order:1},{key:"@Type",value:"onRandomContents",order:2},{key:"@Filter",value:"onConditionContents",order:4},{key:"@FatherSync",value:"onFatherPaceContents",order:1},{key:"@SonSync",value:"onPaceContents",order:1},{key:"@MainPam",value:"onMainTagContents",order:3},{key:"@TopButton",value:"onButtonContents",order:1},{key:"@ColumnButton",value:"onPamButtonContents",order:1},{key:"@RowButton",value:"onRowButtonContents",order:1},{key:"@BottomButton",value:"onBottomButtonContents",order:1},{key:"@Related",value:"onRelated",order:1},{key:"@RowNum",value:"onRowNum",order:1},{key:"@FixRow",value:"onFixRow",order:1},{key:"@ReqItem",value:"onReqItem",order:1},{key:"@Condition",value:"onConditionContent",order:1},{key:"@Tab",value:"onTabs",order:1},{key:"@SinChoice",value:"onSinChoice",order:1},{key:"@TextSize",value:"onTextSize",order:1},{key:"@TextRGBA",value:"onTextRGBA",order:1},{key:"@Position",value:"onPosition",order:4},{key:"@Size",value:"onSize",order:4}];var et=(l=>(l[l.ORDINARY=1]="ORDINARY",l[l.BLOCK=2]="BLOCK",l[l.TEXT=3]="TEXT",l))(et||{});const Ws=l=>{if(l==null)return null;const r=String(l).trim();if(!r.startsWith("[")||!r.endsWith("]"))return null;const n=r.slice(1,-1).split(",").map(t=>Number(t.trim()));return n.length<2||n.some(t=>Number.isNaN(t))?null:[n[0],n[1]]},Ys=(l,r)=>l==null?void 0:l.map(t=>{if((t==null?void 0:t.key)!=="formContent")return t;const s=Array.isArray(t==null?void 0:t.contents)?t.contents:[],d=r==null?void 0:r.position,b=r==null?void 0:r.size;return t.contents=s.map(h=>{const v={...h};let y=(d==null?void 0:d[0])??(v==null?void 0:v._positionStartRow),c=(d==null?void 0:d[1])??(v==null?void 0:v._positionRowSpan);(!y||Number.isNaN(y)||y<1)&&(y=1),(!c||Number.isNaN(c)||c<1)&&(c=1);let w=(b==null?void 0:b[0])??(v==null?void 0:v._sizeStart),S=(b==null?void 0:b[1])??(v==null?void 0:v._sizeEnd);(w===void 0||Number.isNaN(w))&&(w=0),(S===void 0||Number.isNaN(S))&&(S=1),w=Math.max(0,Math.min(1,w)),S=Math.max(0,Math.min(1,S)),S<=w&&(w=0,S=1);const A=S-w,_=Math.max(1,Math.round(1/A));return v.width=_,v._positionStartRow=y,v._positionRowSpan=c,v._sizeStart=w,v._sizeEnd=S,v}),t}),Od=l=>{const r=Ws(l==null?void 0:l.filter);return r?Ys(l==null?void 0:l.contents,{position:r}):l==null?void 0:l.contents},Id=l=>{const r=Ws(l==null?void 0:l.filter);return r?Ys(l==null?void 0:l.contents,{size:r}):l==null?void 0:l.contents},Ld=l=>{if((l==null?void 0:l.filter)!==void 0&&(l==null?void 0:l.filter)!==null&&(l==null?void 0:l.filter)!==""){let r=l==null?void 0:l.contents;const n=Number(l==null?void 0:l.filter);return r.push({key:"textSize",contents:Number.isNaN(n)?l==null?void 0:l.filter:n}),r}return l==null?void 0:l.contents},Vd=l=>{if((l==null?void 0:l.filter)!==void 0&&(l==null?void 0:l.filter)!==null&&(l==null?void 0:l.filter)!==""){let r=l==null?void 0:l.contents;return r.push({key:"textRGBA",contents:l==null?void 0:l.filter}),r}return l==null?void 0:l.contents},$d=l=>{var n;return(l==null?void 0:l.filter.toUpperCase())==="ALL"||(l==null?void 0:l.filter.toUpperCase())==="NONE"?l==null?void 0:l.contents:(n=l==null?void 0:l.contents)==null?void 0:n.map(t=>{var s;return(t==null?void 0:t.key)==="tableContents"&&(t.contents=(s=t.contents)==null?void 0:s.slice(0,parseInt(l==null?void 0:l.filter))),t})},Rd=async l=>{var r,n,t,s,d,b,h,v,y,c,w,S,A,_,H,k,T,J,D,$,z,x,g,F,q,G,be,ze,De,ne;if((l==null?void 0:l.filter)==="Random")return(r=l==null?void 0:l.contents)==null?void 0:r.map(X=>((X==null?void 0:X.key)==="tableContents"&&(X.contents=$a.shuffle(X.contents)),X));if((l==null?void 0:l.filter)==="Ordin"){let ke=l==null?void 0:l.contents;return ke.push({key:"enableWrap",contents:1}),ke}if((l==null?void 0:l.filter)==="Block"){let ke=l==null?void 0:l.contents;return ke.push({key:"enableWrap",contents:2}),ke}if((l==null?void 0:l.filter)==="Auto"){let ke=(t=(n=l==null?void 0:l.contents)==null?void 0:n.find(se=>(se==null?void 0:se.key)==="header"))==null?void 0:t.contents;Array.isArray(ke==null?void 0:ke[0])&&(ke=ke==null?void 0:ke[0]),ke=na.getColumnChild(ke);let X=ke==null?void 0:ke.filter(se=>(se==null?void 0:se.filter)&&(se==null?void 0:se.filter)!==""),pe=new Map,Ke=[];X==null||X.forEach(se=>{var Ne,ia;pe.get((Ne=se==null?void 0:se.menus)==null?void 0:Ne.join("/"))||(pe.set((ia=se==null?void 0:se.menus)==null?void 0:ia.join("/"),se),Ke.push(se))});let Sa=(d=(s=sn==null?void 0:sn.value)==null?void 0:s.find(se=>(se==null?void 0:se.condition)==="child"))==null?void 0:d.value,te=Ke==null?void 0:Ke.map(se=>{var Ne,ia,xa;return se=(Ne=se==null?void 0:se.menus)==null?void 0:Ne.join("/"),(se==null?void 0:se[(se==null?void 0:se.length)-1])==="/"&&((xa=(ia=sn==null?void 0:sn.value)==null?void 0:ia.find(Ha=>(Ha==null?void 0:Ha.condition)==="child"))==null?void 0:xa.parentContent)+"/"!==se?se=se+Sa:(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}),B=Ke==null?void 0:Ke.map(se=>se==null?void 0:se.groups),le=te==null?void 0:te.map(async se=>{let Ne=await Pr(se,!1);return{path:se,contents:Ne}});le=await Promise.all(le);let ye=le==null?void 0:le.map((se,Ne)=>{var xa,Ha,ee,ea,Pe,ga,He;let ia=(xa=se==null?void 0:se.contents)==null?void 0:xa.filter(Ae=>{var Re,Ge;return(Ae==null?void 0:Ae.name)===((Ge=B==null?void 0:B[Ne])==null?void 0:Ge[((Re=B==null?void 0:B[Ne])==null?void 0:Re.length)-1])});return ia=(ea=(ee=(Ha=ia==null?void 0:ia[0])==null?void 0:Ha.compData)==null?void 0:ee.find(Ae=>(Ae==null?void 0:Ae.key)==="tableContents"))==null?void 0:ea.contents,(se==null?void 0:se.path)===((ga=(Pe=sn==null?void 0:sn.value)==null?void 0:Pe.find(Ae=>(Ae==null?void 0:Ae.condition)==="child"))==null?void 0:ga.parentContent)&&(ia=((He=ia==null?void 0:ia.map(Ae=>{for(let Re in Ae)if(Ae[Re]===Sa)return Ae}))==null?void 0:He.filter(Ae=>Ae))??[]),ia??[]});if(ye=ye==null?void 0:ye.map(se=>(se=se==null?void 0:se.map(Ne=>{var xa;let ia={};for(let Ha in Ne)if(X!=null&&X.find(ee=>{var ea,Pe;return((Pe=(ea=ee==null?void 0:ee.words)==null?void 0:ea[0])==null?void 0:Pe.replaceAll("'",""))===Ha})){let ee=(xa=X==null?void 0:X.find(ea=>{var Pe,ga;return((ga=(Pe=ea==null?void 0:ea.words)==null?void 0:Pe[0])==null?void 0:ga.replaceAll("'",""))===Ha}))==null?void 0:xa.prop;ia[ee]=Ne==null?void 0:Ne[Ha]}return ia}),se)),ye=$a.cartesianProduct(ye),Array.isArray(ye==null?void 0:ye[0])&&(ye=ye==null?void 0:ye[0]),(ye==null?void 0:ye.length)>0&&((w=(h=(b=X==null?void 0:X[0])==null?void 0:b.menus)==null?void 0:h.join("/"))==null?void 0:w[((c=(y=(v=X==null?void 0:X[0])==null?void 0:v.menus)==null?void 0:y.join("/"))==null?void 0:c.length)-1])==="/")return(S=l==null?void 0:l.contents)==null?void 0:S.map(Ne=>{var ia;return(Ne==null?void 0:Ne.key)==="tableContents"&&(ye==null?void 0:ye.length)>0&&(Ne.contents=((ia=Ne.contents)==null?void 0:ia.length)>0?Ne.contents:ye),Ne})}if((l==null?void 0:l.filter)==="Text"){let ke=l==null?void 0:l.contents;return ke.push({key:"enableWrap",contents:3}),ke}if((l==null?void 0:l.filter)==="Manual"){let ke=[],X=[],pe=(_=(A=l==null?void 0:l.contents)==null?void 0:A.find(B=>(B==null?void 0:B.key)==="filter"))==null?void 0:_.contents;(pe==null?void 0:pe[(pe==null?void 0:pe.length)-1])===")"?pe=(k=(H=pe==null?void 0:pe.replace("(",tr))==null?void 0:H.split(tr))==null?void 0:k[0]:pe="",pe!==""&&(ke=((J=(T=pe==null?void 0:pe.split("*"))==null?void 0:T[0])==null?void 0:J.split(":"))??[],X=((g=(x=(z=($=(D=pe==null?void 0:pe.split("*"))==null?void 0:D[1])==null?void 0:$.replace("{",tr))==null?void 0:z.split(tr))==null?void 0:x[0])==null?void 0:g.split(":"))??[]);let Ke=(q=(F=l==null?void 0:l.contents)==null?void 0:F.find(B=>(B==null?void 0:B.key)==="filter"))==null?void 0:q.contents;Ke=(be=(G=Ke==null?void 0:Ke.replace("(",tr))==null?void 0:G.split(tr))==null?void 0:be[1],Ke=Ke==null?void 0:Ke.slice(0,(Ke==null?void 0:Ke.length)-1);let Sa=(ze=l==null?void 0:l.contents)==null?void 0:ze.map(B=>{var le,ye,se,Ne,ia,xa,Ha,ee,ea;return(B==null?void 0:B.key)==="header"&&((le=B==null?void 0:B.contents)!=null&&le.every(Pe=>(Pe==null?void 0:Pe.mainKey)!==!0)&&Array.isArray(B==null?void 0:B.contents)&&!Array.isArray((ye=B==null?void 0:B.contents)==null?void 0:ye[0])?B.contents=(se=B==null?void 0:B.contents)==null?void 0:se.map((Pe,ga)=>{var He,Ae,Re;return Pe!=null&&Pe.isMainPath||(ga===0?(Pe.mainKey=!0,Pe.formType="Select",Pe.bindMenus=ke,Pe.groups=((He=Pe.groups)==null?void 0:He.length)===0?X:Pe.groups,Pe.words=((Ae=Pe.words)==null?void 0:Ae.length)===0?[Pe==null?void 0:Pe.prop]:Pe.words,Pe.filter=Ke,(!(Pe!=null&&Pe.menus)||((Re=Pe==null?void 0:Pe.menus)==null?void 0:Re.length)===0)&&(Pe.menus=ke)):(Pe.mainKey=!1,Pe.bindMenus=ke)),Pe}):Array.isArray((Ne=B==null?void 0:B.contents)==null?void 0:Ne[0])&&((Ha=(xa=(ia=B==null?void 0:B.contents)==null?void 0:ia[0])==null?void 0:xa.filter(()=>(ke==null?void 0:ke.length)>0))==null?void 0:Ha.length)>0&&(B.contents[0]=(ea=(ee=B==null?void 0:B.contents)==null?void 0:ee[0])==null?void 0:ea.map((Pe,ga)=>{var He,Ae,Re;return Pe!=null&&Pe.isMainPath||(ga===0?(Pe.mainKey=!0,Pe.formType="Select",Pe.bindMenus=ke,Pe.groups=((He=Pe.groups)==null?void 0:He.length)===0?X:Pe.groups,Pe.words=((Ae=Pe.words)==null?void 0:Ae.length)===0?[Pe==null?void 0:Pe.prop]:Pe.words,Pe.filter=Ke,(!(Pe!=null&&Pe.menus)||Array.isArray(Pe==null?void 0:Pe.menus)&&((Re=Pe==null?void 0:Pe.menus)==null?void 0:Re.length)===0)&&(ke==null?void 0:ke.length)>0&&(Pe.menus=ke)):(Pe.mainKey=!1,Pe.bindMenus=ke)),Pe}))),B}),te=(De=Sa==null?void 0:Sa.find(B=>(B==null?void 0:B.key)==="header"))==null?void 0:De.contents;if(Array.isArray(te==null?void 0:te[0])&&(te=te==null?void 0:te[0]),te=na.getColumnChild(te),te!=null&&te.some(B=>{var le,ye;return((ye=B==null?void 0:B.menus)==null?void 0:ye[((le=B==null?void 0:B.menus)==null?void 0:le.length)-1])===""})){let B=(ne=sn==null?void 0:sn.value)==null?void 0:ne.find(le=>(le==null?void 0:le.condition)==="child");Sa=zd(Sa,B)}return Sa}return l==null?void 0:l.contents},Pd=l=>{var t,s,d,b;let r=l==null?void 0:l.filter;if(r!=null&&r.includes("*")&&(r="({"+((s=(t=r==null?void 0:r.replace("{",tr))==null?void 0:t.split(tr))==null?void 0:s[1])),r=(d=r==null?void 0:r.replaceAll("{",""))==null?void 0:d.replaceAll("}",""),(r==null?void 0:r[0])!=="("&&(r="("+r+")"),r.slice(1,(r==null?void 0:r.length)-1)==="undefined")return l==null?void 0:l.contents;let n=na.calculatorAndToOr(r);if((n==null?void 0:n.length)>0){let h=[];return n==null||n.forEach(y=>{let c={};for(let w in y){let S=w;S!=null&&S.includes("[")||(c[S]=y[w])}h.push(c)}),(b=l==null?void 0:l.contents)==null?void 0:b.map(y=>{var w,S,A;let c=(S=(w=l==null?void 0:l.contents)==null?void 0:w.find(_=>(_==null?void 0:_.key)==="header"))==null?void 0:S.contents;if(c=(A=na.getEqualChild(c))==null?void 0:A.filter(_=>(_==null?void 0:_.label)!=="操作"),(y==null?void 0:y.key)==="tableContents"){let H=na.tableToForm(y==null?void 0:y.contents,c);h==null||h.forEach(k=>{var T,J;for(let D in k)!((T=H==null?void 0:H[0])!=null&&T.find($=>{var z;return($==null?void 0:$.key)===D||((z=$==null?void 0:$.key)==null?void 0:z.includes(D))}))&&!(H!=null&&H.find($=>{var z;return($==null?void 0:$.key)===D||((z=$==null?void 0:$.key)==null?void 0:z.includes(D))}))||(((J=k[D])==null?void 0:J[0])!=="!"?H=H==null?void 0:H.filter($=>{var z,x;return((z=$==null?void 0:$.find(g=>{var F;return(g==null?void 0:g.key)===D||((F=g==null?void 0:g.key)==null?void 0:F.includes(D))}))==null?void 0:z.value)===k[D]||Array.isArray(k==null?void 0:k[D])&&((x=k==null?void 0:k[D])==null?void 0:x.find(g=>{var F;return((F=$==null?void 0:$.find(q=>{var G;return(q==null?void 0:q.key)===D||((G=q==null?void 0:q.key)==null?void 0:G.includes(D))}))==null?void 0:F.value)===g}))}):H=H==null?void 0:H.filter($=>{var z;return((z=$==null?void 0:$.find(x=>{var g;return(x==null?void 0:x.key)===D||((g=x==null?void 0:x.key)==null?void 0:g.includes(D))}))==null?void 0:z.value)!==k[D]}))}),(H==null?void 0:H.length)===0?y.contents=[]:y.contents=H==null?void 0:H.map(k=>{let T={};return k==null||k.forEach(J=>{T[J==null?void 0:J.key]=J==null?void 0:J.value}),T})}return y})}return l==null?void 0:l.contents},Fd=l=>l==null?void 0:l.contents,jd=l=>l==null?void 0:l.contents,Hd=l=>{var r,n,t,s;if((l==null?void 0:l.filter)!==""&&(l!=null&&l.filter)){let d=(t=(n=l==null?void 0:l.filter)==null?void 0:n.slice(1,((r=l==null?void 0:l.filter)==null?void 0:r.length)-1))==null?void 0:t.split(",");return(s=l==null?void 0:l.contents)==null?void 0:s.map(h=>((h==null?void 0:h.key)==="header"&&(h.contents=ui(h.contents,d)),h))}return l==null?void 0:l.contents},Ud=l=>{var n;let r=(l==null?void 0:l.filter)??"";return(r==null?void 0:r[0])==="{"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),r!==""?(n=l==null?void 0:l.contents)==null?void 0:n.map(s=>{var d;return(s==null?void 0:s.key)==="extraButton"&&(s.contents=(d=r==null?void 0:r.split(","))==null?void 0:d.map(b=>({label:b,prop:b}))),s}):l==null?void 0:l.contents},qd=l=>l==null?void 0:l.contents,Kd=l=>{var n;let r=(l==null?void 0:l.filter)??"";return(r==null?void 0:r[0])==="{"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),r!==""?(n=l==null?void 0:l.contents)==null?void 0:n.map(s=>{var d;return(s==null?void 0:s.key)==="rowButton"&&(s.contents=(d=r==null?void 0:r.split(","))==null?void 0:d.map(b=>({label:b,prop:b}))),s}):l==null?void 0:l.contents},Wd=l=>{var n;let r=(l==null?void 0:l.filter)??"";if((r==null?void 0:r[0])==="{"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),r!==""){let t=l==null?void 0:l.contents,s=(n=r==null?void 0:r.split(","))==null?void 0:n.map(d=>({label:d,prop:d}));return t.push({key:"bottomButton",contents:s}),t}return l==null?void 0:l.contents},Yd=l=>{var r,n,t,s;if(((r=l==null?void 0:l.filter)==null?void 0:r[0])!=="["){const d=parseInt(l==null?void 0:l.filter);return!d||Number.isNaN(d)?l==null?void 0:l.contents:(n=l==null?void 0:l.contents)==null?void 0:n.map(h=>{var v;return(h==null?void 0:h.key)==="formContent"&&(h.contents=(v=h.contents)==null?void 0:v.map(y=>(y.width=d,y))),h})}if(((t=l==null?void 0:l.filter)==null?void 0:t[0])==="["){let d=Ct(l==null?void 0:l.filter),b=Array.isArray(d)?d.map(v=>parseInt(v)).filter(v=>!!v&&!Number.isNaN(v)):[];return b.length?(s=l==null?void 0:l.contents)==null?void 0:s.map(v=>{if((v==null?void 0:v.key)==="formContent"){const y=v.contents??[];v.contents=y.map((c,w)=>{const S=w+1;let A=0,_=0;for(let k=0;k<b.length;k++){if(_+=b[k],S<=_){A=k;break}k===b.length-1&&(A=b.length-1)}const H=b[A]||b[b.length-1]||1;return c.width=H,c})}return v}):l==null?void 0:l.contents}return l==null?void 0:l.contents},Gd=l=>{var r;if((l==null?void 0:l.filter)!==""){let n=l==null?void 0:l.filter;return(n==null?void 0:n[0])==="{"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n=n==null?void 0:n.split(","),(r=l==null?void 0:l.contents)==null?void 0:r.map(s=>{var d,b,h;return(s==null?void 0:s.key)==="header"&&(Array.isArray((d=s==null?void 0:s.contents)==null?void 0:d[0])?s.contents[0]=(h=s.contents[0])==null?void 0:h.map(v=>(n!=null&&n.find(y=>y===(v==null?void 0:v.prop))&&(v.fixed="left"),v)):s.contents=(b=s.contents)==null?void 0:b.map(v=>(n!=null&&n.find(y=>y===(v==null?void 0:v.prop))&&(v.fixed="left"),v))),s})}return l==null?void 0:l.contents},Jd=l=>{var r;if((l==null?void 0:l.filter)!==""){let n=l==null?void 0:l.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 t=d=>(n!=null&&n.find(b=>b===(d==null?void 0:d.prop))&&(d.required=!0),d!=null&&d.children&&Array.isArray(d.children)&&(d.children=d.children.map(b=>t(b))),d);return(r=l==null?void 0:l.contents)==null?void 0:r.map(d=>{var b,h,v;return(d==null?void 0:d.key)==="header"&&(Array.isArray((b=d==null?void 0:d.contents)==null?void 0:b[0])?d.contents[0]=(v=d.contents[0])==null?void 0:v.map(y=>t(y)):d.contents=(h=d.contents)==null?void 0:h.map(y=>t(y))),d})}return l==null?void 0:l.contents},Xd=async l=>{var t,s,d,b,h,v,y,c,w,S,A,_,H,k,T,J,D;const r=I.useUnit(I.pinia),{chooseTitle:n}=I.storeToRefs(r);if((l==null?void 0:l.filter)==="true"){let $=await Pr(((s=(t=n==null?void 0:n.value)==null?void 0:t[0])==null?void 0:s.parentContent)??((b=(d=n==null?void 0:n.value)==null?void 0:d[0])==null?void 0:b.relatedContent),!1),z=(v=(h=n==null?void 0:n.value)==null?void 0:h[0])==null?void 0:v.value;(c=(y=$==null?void 0:$[0])==null?void 0:y.compData)!=null&&c.find(q=>(q==null?void 0:q.key)==="header")?$=(w=$==null?void 0:$[0])==null?void 0:w.compData:$=(A=(S=$==null?void 0:$.filter(q=>{var G;return(G=q==null?void 0:q.compData)==null?void 0:G.find(be=>(be==null?void 0:be.key)==="header")}))==null?void 0:S[0])==null?void 0:A.compData;let x=(_=$==null?void 0:$.find(q=>(q==null?void 0:q.key)==="header"))==null?void 0:_.contents;Array.isArray(x==null?void 0:x[0])&&(x=x==null?void 0:x[0]),x=((H=x==null?void 0:x.find(q=>q==null?void 0:q.isMainKey))==null?void 0:H.prop)??((k=x==null?void 0:x[0])==null?void 0:k.prop);let g=(J=(T=$==null?void 0:$.find(q=>(q==null?void 0:q.key)==="tableContents"))==null?void 0:T.contents)==null?void 0:J.find(q=>(q==null?void 0:q[x])===z);return(D=l==null?void 0:l.contents)==null?void 0:D.map(q=>{var G;return(q==null?void 0:q.key)==="formContent"&&(q.contents=(G=q.contents)==null?void 0:G.map(be=>(be.value=g==null?void 0:g[be==null?void 0:be.prop],be))),q})}return l==null?void 0:l.contents},Zd=l=>{var r,n,t,s,d;if((r=l==null?void 0:l.extra)!=null&&r.row){let b=l==null?void 0:l.filter;if(b!=null&&b.includes("*")&&(b="({"+((t=(n=b==null?void 0:b.replace("{",tr))==null?void 0:n.split(tr))==null?void 0:t[1])),b=(s=b==null?void 0:b.replaceAll("{",""))==null?void 0:s.replaceAll("}",""),(b==null?void 0:b[0])!=="("&&(b="("+b+")"),b.slice(1,(b==null?void 0:b.length)-1)==="undefined")return l==null?void 0:l.contents;let h=na.calculatorAndToOr(b),v=h==null?void 0:h[0],y=(d=l==null?void 0:l.extra)==null?void 0:d.row,c=[];for(let w in v)(v==null?void 0:v[w])===(y==null?void 0:y[w])?c.push(!0):c.push(!1);return c!=null&&c.every(w=>w===!0)?l==null?void 0:l.contents:[]}else return l==null?void 0:l.contents},Qd=l=>{if(l!=null&&l.filter){let r=l==null?void 0:l.contents;return r.push({key:"tab",contents:l==null?void 0:l.filter}),r}return l==null?void 0:l.contents},ep=l=>{if(l!=null&&l.filter){let r=l==null?void 0:l.contents;return r.push({key:"choice",contents:l==null?void 0:l.filter}),r}return l==null?void 0:l.contents},Gs={onNumSlice:$d,onRandomContents:Rd,onConditionContents:Pd,onFatherPaceContents:Fd,onPaceContents:jd,onMainTagContents:Hd,onButtonContents:Ud,onPamButtonContents:qd,onRowButtonContents:Kd,onRelated:Xd,onRowNum:Yd,onFixRow:Gd,onReqItem:Jd,onBottomButtonContents:Wd,onConditionContent:Zd,onTabs:Qd,onSinChoice:ep,onTextSize:Ld,onTextRGBA:Vd,onPosition:Od,onSize:Id},ap=async(l,r)=>{var d,b,h,v,y,c,w,S,A,_,H,k,T,J,D,$,z,x,g;let n="";if(((d=l==null?void 0:l.find(F=>(F==null?void 0:F.key)==="filter"))==null?void 0:d.contents)!==""&&(n=(b=l==null?void 0:l.find(F=>(F==null?void 0:F.key)==="filter"))==null?void 0:b.contents),n===""||!n)return l;(n==null?void 0:n[0])==="("?n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1):(n=(v=(h=n==null?void 0:n.replace("(",tr))==null?void 0:h.split(tr))==null?void 0:v[1],n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1));let t=(y=$a.analyzeSplitToContent(n,","))==null?void 0:y.map(F=>((F==null?void 0:F[(F==null?void 0:F.length)-1])===","&&(F=F==null?void 0:F.slice(0,(F==null?void 0:F.length)-1)),F!=null&&F.includes("(")||(F=F==null?void 0:F.replaceAll(":","=")),F)),s=l;for(let F in t){let q,G="";(c=t==null?void 0:t[F])!=null&&c.includes("(")?(q=(A=(S=(w=t==null?void 0:t[F])==null?void 0:w.replace("(",tr))==null?void 0:S.split(tr))==null?void 0:A[0],G="("+((k=(H=(_=t==null?void 0:t[F])==null?void 0:_.replace("(",tr))==null?void 0:H.split(tr))==null?void 0:k[1])):(q=(D=(J=(T=t==null?void 0:t[F])==null?void 0:T.replace("=",tr))==null?void 0:J.split(tr))==null?void 0:D[0],G=(x=(z=($=t==null?void 0:t[F])==null?void 0:$.replace("=",tr))==null?void 0:z.split(tr))==null?void 0:x[1]);let be=(g=cn==null?void 0:cn.find(ze=>(ze==null?void 0:ze.key)===q))==null?void 0:g.value;if(be){const ze=Gs[be];s=await ze({contents:s,filter:G})}}return s},wo=async(l,r)=>{var b,h,v,y,c,w,S,A,_,H,k,T,J,D,$,z,x,g,F,q;let n="";if(((b=l==null?void 0:l.find(G=>(G==null?void 0:G.key)==="filter"))==null?void 0:b.contents)!==""&&(n=(h=l==null?void 0:l.find(G=>(G==null?void 0:G.key)==="filter"))==null?void 0:h.contents),n===""||!n)return l;(n==null?void 0:n[0])===","&&(n=n==null?void 0:n.slice(1,n==null?void 0:n.length)),(n==null?void 0:n[0])==="("?n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1):(n==null?void 0:n[0])==="@"||(n=(y=(v=n==null?void 0:n.replace("(",tr))==null?void 0:v.split(tr))==null?void 0:y[1],n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1));let t=(c=$a.analyzeSplitToContent(n,","))==null?void 0:c.map(G=>((G==null?void 0:G[(G==null?void 0:G.length)-1])===","&&(G=G==null?void 0:G.slice(0,(G==null?void 0:G.length)-1)),G!=null&&G.includes("(")||(G=G==null?void 0:G.replaceAll(":","=")),G)),s=l,d=new Map;t==null||t.forEach(G=>{var ze,De,ne;let be=(ze=G==null?void 0:G.split("="))==null?void 0:ze[0];if(be==="@MainPam"&&d.get(be)){let ke=d.get(be);ke=ke==null?void 0:ke.slice(0,(ke==null?void 0:ke.length)-1);let X=(ne=(De=G==null?void 0:G.replace("{",tr))==null?void 0:De.split(tr))==null?void 0:ne[1];X=ke+","+X,d.set(be,X)}else d.set(be,G)}),t=Array.from(d.values()),t=t==null?void 0:t.sort((G,be)=>{var ze,De;return((ze=cn==null?void 0:cn.find(ne=>be==null?void 0:be.includes(ne==null?void 0:ne.key)))==null?void 0:ze.order)-((De=cn==null?void 0:cn.find(ne=>G==null?void 0:G.includes(ne==null?void 0:ne.key)))==null?void 0:De.order)});for(let G in t){let be,ze="";(w=t==null?void 0:t[G])!=null&&w.includes("(")&&((S=t==null?void 0:t[G])!=null&&S.includes("@Filter"))?(be=(H=(_=(A=t==null?void 0:t[G])==null?void 0:A.replace("(",tr))==null?void 0:_.split(tr))==null?void 0:H[0],ze="("+((J=(T=(k=t==null?void 0:t[G])==null?void 0:k.replace("(",tr))==null?void 0:T.split(tr))==null?void 0:J[1])):(be=(z=($=(D=t==null?void 0:t[G])==null?void 0:D.replace("=",tr))==null?void 0:$.split(tr))==null?void 0:z[0],ze=(F=(g=(x=t==null?void 0:t[G])==null?void 0:x.replace("=",tr))==null?void 0:g.split(tr))==null?void 0:F[1]);let De=(q=cn==null?void 0:cn.find(ne=>(ne==null?void 0:ne.key)===be))==null?void 0:q.value;if(De){const ne=Gs[De];s=await ne({contents:s,filter:ze,extra:r})}}return s};let oo="$R";const lp=I.useUnit(I.pinia),{selectTitle:rp}=I.storeToRefs(lp);let np=[{label:"新增",prop:"新增"},{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],tp=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"},{label:"复制新增",prop:"复制新增"},{label:"删除",prop:"删除"}],op=[{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],ip=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"}];const es=async(l,r)=>{let n=[],t=l==null?void 0:l.map(async s=>{var c,w,S,A,_,H,k,T,J,D,$,z,x,g,F,q,G,be,ze,De,ne,ke,X,pe,Ke,Sa,te,B,le,ye,se,Ne,ia,xa,Ha,ee,ea,Pe,ga,He,Ae,Re,Ge,Ka,Ia,R,P,Y,oe,ie,fa,ra,Ie,we,Ca,fe,Je,Ze,Fe,ka,$e,pa,re,Se,K,je,Be,za,Ea;let d=(A=(S=(w=(c=s==null?void 0:s.contents)==null?void 0:c.find(Ye=>{var ua;return(ua=Ye==null?void 0:Ye.key)==null?void 0:ua.includes("struct")}))==null?void 0:w.value)==null?void 0:S[0])==null?void 0:A.类型,b=Object.values(s==null?void 0:s.name);b=b==null?void 0:b.reverse();let h=(_=s==null?void 0:s.contents)==null?void 0:_.map(Ye=>Ye==null?void 0:Ye.key),v={comp:d,isShow:s==null?void 0:s.is_show,name:b==null?void 0:b[0],id:s==null?void 0:s.object_id,relatedTables:h,menuFilter:(H=s==null?void 0:s.filter)==null?void 0:H.menuFilter,status:s==null?void 0:s.status,fatherSyncContents:(k=s==null?void 0:s.filter)==null?void 0:k.fatherSyncs,relatedQuotes:(T=s==null?void 0:s.filter)==null?void 0:T.quotes,sonSyncContents:(J=s==null?void 0:s.filter)==null?void 0:J.sonSyncs};for(let Ye in b)parseInt(Ye)>=1&&(v[`name${parseInt(Ye)-1}`]=b[Ye]);let y=($=(D=s==null?void 0:s.filter)==null?void 0:D.menuFilter)==null?void 0:$.split(",");if(((z=y==null?void 0:y.filter(Ye=>Ye==null?void 0:Ye.includes("@Filter")))==null?void 0:z.length)>0){let Ye=y==null?void 0:y.filter(La=>La==null?void 0:La.includes("@Filter"));Ye=Ye==null?void 0:Ye[0],Ye=(g=(x=Ye==null?void 0:Ye.replace("(",oo))==null?void 0:x.split(oo))==null?void 0:g[1],Ye=Ye==null?void 0:Ye.slice(0,(Ye==null?void 0:Ye.length)-1),Ye!=null&&Ye.includes("*")&&(Ye=(q=(F=Ye==null?void 0:Ye.replace("{",oo))==null?void 0:F.split(oo))==null?void 0:q[1],Ye=Ye==null?void 0:Ye.replace("}","")),Ye=na.calculatorAndToOr(Ye);let ua=(r==null?void 0:r.originPath)??"";(ua==null?void 0:ua[(ua==null?void 0:ua.length)-1])==="/"&&(ua=ua==null?void 0:ua.slice(0,(ua==null?void 0:ua.length)-1));let _e=await Pr(ua,!1),Z=(G=_e==null?void 0:_e.filter(La=>(La==null?void 0:La.comp)==="Table"))==null?void 0:G[0];Z=(ze=(be=Z==null?void 0:Z.compData)==null?void 0:be.find(La=>(La==null?void 0:La.key)==="tableContents"))==null?void 0:ze.contents;let ya=(ne=(De=rp.value)==null?void 0:De.find(La=>(La==null?void 0:La.condition)==="child"))==null?void 0:ne.value;Z=(ke=Z==null?void 0:Z.map(La=>{for(let ml in La)if((La==null?void 0:La[ml])===ya)return La}))==null?void 0:ke.filter(La=>La),Z=Z==null?void 0:Z[0],Ye=Ye==null?void 0:Ye[0];let We=[];for(let La in Ye){let ml="";ll.isObject(Z)&&(ml=(pe=(X=Object.keys(Z))==null?void 0:X.filter(Aa=>Aa==null?void 0:Aa.includes("."+La)))==null?void 0:pe[0]),ml!==""&&(Z!=null&&Z[ml])&&(Ye==null?void 0:Ye[La])===(Z==null?void 0:Z[ml])||Z!=null&&Z[La]&&(Ye==null?void 0:Ye[La])===(Z==null?void 0:Z[La])?We.push(!0):We.push(!1)}if(We!=null&&We.some(La=>La===!1)&&((Sa=r==null?void 0:r.originPath)==null?void 0:Sa[((Ke=r==null?void 0:r.originPath)==null?void 0:Ke.length)-1])!=="/")return}if(d==="Table"||d==="Method"){let Ye=((te=s==null?void 0:s.contents)==null?void 0:te.find(Aa=>{var el;return(el=Aa==null?void 0:Aa.key)==null?void 0:el.includes("content")}))||[],ua=[];v.comp="Table",Ye.value=(B=Ye==null?void 0:Ye.value)==null?void 0:B.sort((Aa,el)=>parseInt(Aa==null?void 0:Aa.id)-parseInt(el==null?void 0:el.id)),Ye.value=(le=Ye==null?void 0:Ye.value)==null?void 0:le.map(Aa=>{let el={};for(let Ja in Aa)JSON.stringify(Aa==null?void 0:Aa[Ja])==="{}"?el[Ja]="":el[Ja]=Aa==null?void 0:Aa[Ja];return el}),ua.push({key:"tableContents",contents:Ye==null?void 0:Ye.value});let _e=(xa=(ia=(Ne=(se=(ye=s==null?void 0:s.contents)==null?void 0:ye.find(Aa=>{var el;return(el=Aa==null?void 0:Aa.key)==null?void 0:el.includes("struct")}))==null?void 0:se.value)==null?void 0:Ne[0])==null?void 0:ia.结构)==null?void 0:xa.contents;Array.isArray(_e==null?void 0:_e[0])?_e[0]=(Ha=_e==null?void 0:_e[0])==null?void 0:Ha.filter(Aa=>(Aa==null?void 0:Aa.prop)!=="sort"&&(Aa==null?void 0:Aa.prop)!=="relatedId"):_e=_e==null?void 0:_e.filter(Aa=>(Aa==null?void 0:Aa.prop)!=="sort"&&(Aa==null?void 0:Aa.prop)!=="relatedId"),ua.push({key:"header",contents:_e}),ua.push({key:"filter",contents:(He=(ga=(Pe=(ea=(ee=s==null?void 0:s.contents)==null?void 0:ee.find(Aa=>{var el;return(el=Aa==null?void 0:Aa.key)==null?void 0:el.includes("struct")}))==null?void 0:ea.value)==null?void 0:Pe[0])==null?void 0:ga.引用)==null?void 0:He.contents});let Z=np,ya=I.cloneDeep(tp);d==="Method"&&ya.push({label:"生成方法",prop:"生成方法"}),!Array.isArray(_e==null?void 0:_e[0])&&((Ae=_e==null?void 0:_e[0])==null?void 0:Ae.prop)==="disabled"&&(Z=op,ya=ip);const We=["推力","真空","压力","温度","流量"],La=v.name;La&&We.includes(La)&&(Z=[...Z],Z.push({label:"导出paraform",prop:"导出paraform",type:"methodButton"}));let ml=[];if(!Array.isArray(_e==null?void 0:_e[0])&&(_e!=null&&_e.some(Aa=>{var el;return(Aa==null?void 0:Aa.calculatorFilter)&&((el=Aa==null?void 0:Aa.calculatorFilter)==null?void 0:el.includes("Manual"))}))){let Aa=(Re=_e==null?void 0:_e.map(el=>el==null?void 0:el.calculatorFilter))==null?void 0:Re.filter(el=>el&&(el==null?void 0:el.includes("Manual")));Aa==null||Aa.forEach(el=>{var Pa;let Ja=$a.analyzeSplitToContent(el,",");if(Ja=Ja==null?void 0:Ja.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)),Ja!=null&&Ja.find(Te=>(Te==null?void 0:Te.includes("Extent"))&&(Te==null?void 0:Te.includes("Row")))&&(Ja!=null&&Ja.find(Te=>(Te==null?void 0:Te.includes("Button"))&&(Te==null?void 0:Te.includes(","))))){let Te=Ja==null?void 0:Ja.find(il=>il==null?void 0:il.includes("@Button"));Te=(Pa=Te==null?void 0:Te.split("="))==null?void 0:Pa[1],Te=Te==null?void 0:Te.slice(1,(Te==null?void 0:Te.length)-1),Te=Te==null?void 0:Te.split(","),Te=Te==null?void 0:Te[(Te==null?void 0:Te.length)-1],ml.push(Te)}}),ml=[...new Set(ml)],ml=ml==null?void 0:ml.map(el=>({label:el,prop:el,type:"methodButton"}))}else if(Array.isArray(_e==null?void 0:_e[0])&&((Ge=na.getColumnChild(_e==null?void 0:_e[0]))!=null&&Ge.some(Aa=>{var el;return(Aa==null?void 0:Aa.calculatorFilter)&&((el=Aa==null?void 0:Aa.calculatorFilter)==null?void 0:el.includes("Manual"))}))){let Aa=(Ia=(Ka=na.getColumnChild(_e==null?void 0:_e[0]))==null?void 0:Ka.map(el=>el==null?void 0:el.calculatorFilter))==null?void 0:Ia.filter(el=>el&&(el==null?void 0:el.includes("Manual")));Aa==null||Aa.forEach(el=>{var Pa;let Ja=$a.analyzeSplitToContent(el,",");if(Ja=Ja==null?void 0:Ja.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)),Ja!=null&&Ja.find(Te=>(Te==null?void 0:Te.includes("Extent"))&&(Te==null?void 0:Te.includes("Row")))&&(Ja!=null&&Ja.find(Te=>(Te==null?void 0:Te.includes("Button"))&&(Te==null?void 0:Te.includes(","))))){let Te=Ja==null?void 0:Ja.find(il=>il==null?void 0:il.includes("@Button"));Te=(Pa=Te==null?void 0:Te.split("="))==null?void 0:Pa[1],Te=Te==null?void 0:Te.slice(1,(Te==null?void 0:Te.length)-1),Te=Te==null?void 0:Te.split(","),Te=Te==null?void 0:Te[(Te==null?void 0:Te.length)-1],ml.push(Te)}}),ml=[...new Set(ml)],ml=ml==null?void 0:ml.map(el=>({label:el,prop:el,type:"methodButton"}))}ua.push({key:"extraButton",contents:Z}),ua.push({key:"rowButton",contents:[...ya,...ml]}),v.compData=await wo(ua,r),(R=v.compData)!=null&&R.find(Aa=>(Aa==null?void 0:Aa.key)==="tab")&&(v.tab=(Y=(P=v.compData)==null?void 0:P.find(Aa=>(Aa==null?void 0:Aa.key)==="tab"))==null?void 0:Y.contents),(oe=v.compData)!=null&&oe.find(Aa=>(Aa==null?void 0:Aa.key)==="choice")&&(v.choice=(fa=(ie=v.compData)==null?void 0:ie.find(Aa=>(Aa==null?void 0:Aa.key)==="choice"))==null?void 0:fa.contents)}else if(d==="Form"){let Ye=[],ua=(we=(Ie=(ra=s==null?void 0:s.contents)==null?void 0:ra.find(Z=>{var ya;return(ya=Z==null?void 0:Z.key)==null?void 0:ya.includes("content")}))==null?void 0:Ie.value)==null?void 0:we[0],_e=($e=(ka=(Fe=(Ze=(Je=(fe=(Ca=s==null?void 0:s.contents)==null?void 0:Ca.find(Z=>{var ya;return(ya=Z==null?void 0:Z.key)==null?void 0:ya.includes("struct")}))==null?void 0:fe.value)==null?void 0:Je[0])==null?void 0:Ze.结构)==null?void 0:Fe.contents)==null?void 0:ka.map(Z=>(Z.value=ua==null?void 0:ua[Z==null?void 0:Z.prop],Z)))==null?void 0:$e.filter(Z=>(Z==null?void 0:Z.prop)!=="sort"&&(Z==null?void 0:Z.prop)!=="relatedId");Ye.push({key:"filter",contents:(je=(K=(Se=(re=(pa=s==null?void 0:s.contents)==null?void 0:pa.find(Z=>{var ya;return(ya=Z==null?void 0:Z.key)==null?void 0:ya.includes("struct")}))==null?void 0:re.value)==null?void 0:Se[0])==null?void 0:K.引用)==null?void 0:je.contents}),Ye.push({key:"formContent",contents:_e}),v.compData=await ap(Ye),(Be=v.compData)!=null&&Be.find(Z=>(Z==null?void 0:Z.key)==="tab")&&(v.tab=(Ea=(za=v.compData)==null?void 0:za.find(Z=>(Z==null?void 0:Z.key)==="tab"))==null?void 0:Ea.contents)}return v});return n=await Promise.all(t),n},sp=I.useLoginState(I.pinia),{loginUserInfo:gt}=I.storeToRefs(sp),di=async(l,r,n="Manual",t=[])=>{var v;let s=l,d;Array.isArray(r==null?void 0:r[0])?d=na.getColumnChild(r==null?void 0:r[0]):d=r;let b=(v=d==null?void 0:d.filter(y=>{var c;return(y==null?void 0:y.calculatorFilter)&&((c=y==null?void 0:y.calculatorFilter)==null?void 0:c.includes(n))||(y==null?void 0:y.calculatorFilter)===""&&(y==null?void 0:y.functionName)}))==null?void 0:v.map(y=>({prop:y==null?void 0:y.prop,label:y==null?void 0:y.label,methods:y==null?void 0:y.calculatorFilter,functionName:y==null?void 0:y.functionName,functionRelatedWords:y==null?void 0:y.functionRelatedWords})),h=s==null?void 0:s.map(async y=>(y=await hp(y,b,d,n,s,t),y));return h=await Promise.all(h),h},cp=l=>{let r=l==null?void 0:l.contents,n=l==null?void 0:l.valueString,t=l==null?void 0:l.prop,s=l==null?void 0:l.headers,d;return Array.isArray(r)&&(r==null?void 0:r.length)!==1&&(r=na.getValueToObjectValue(r,na.getColumnContents(s))),n==null||n.forEach(b=>{var h;if(r!=null&&r[b]){let v=r==null?void 0:r[b];d=d?v?$a.isEqual(v.toString(),d.toString()):void 0:v}else{let v=(h=s==null?void 0:s.find(c=>(c==null?void 0:c.label)===b))==null?void 0:h.prop,y=(r==null?void 0:r[v])??0;d=d?y?$a.isEqual(y.toString(),d.toString()):void 0:y}}),r[t]=d===void 0?void 0:d?1:0,r},hr=l=>{const[r,n,t]=I.cloneDeep(l).split(":").map(Number);let s=+l;return!l||!(l!=null&&l.includes(":"))?s:(r??0)*3600+(n??0)*60+(t??0)},Vn=l=>{const r=d=>d.toString().padStart(2,"0"),n=Math.floor(l/3600),t=Math.floor(l%3600/60),s=l%60;return`${r(n)}:${r(t)}:${parseInt(r(s))}`},up=l=>{let r=l==null?void 0:l.contents,n=l==null?void 0:l.valueString,t=l==null?void 0:l.prop,s=l==null?void 0:l.headers,d=l==null?void 0:l.typeString,b=l==null?void 0:l.allContents,h=0;if(Array.isArray(r)&&(r==null?void 0:r.length)!==1&&(r=na.getValueToObjectValue(r,na.getColumnContents(s))),n==null||n.forEach(v=>{var y,c,w,S,A,_,H,k,T;if(r!=null&&r[v]){if(d==="Row")if(!((c=((y=r==null?void 0:r[v])==null?void 0:y.toString())??"")!=null&&c.includes(":"))&&!((w=h==null?void 0:h.toString())!=null&&w.includes(":"))){let J=+(r==null?void 0:r[v]);h=h+J}else h=hr(h.toString())+hr((S=r==null?void 0:r[v])==null?void 0:S.toString()),h=Vn(h)}else if(d==="Row"){let J=(A=s==null?void 0:s.find(D=>(D==null?void 0:D.label)===v))==null?void 0:A.prop;if(!((H=Number.isNaN(r==null?void 0:r[J])?"":(_=r==null?void 0:r[J])==null?void 0:_.toString())!=null&&H.includes(":"))&&!((k=h==null?void 0:h.toString())!=null&&k.includes(":"))){let D=+((r==null?void 0:r[J])??0);h=h+D}else h=hr(h==null?void 0:h.toString())+hr((T=(r==null?void 0:r[J])??0)==null?void 0:T.toString()),h=Vn(h)}}),d==="Column"){let v=[];n==null||n.forEach(y=>{let c=b==null?void 0:b.map(w=>{var S;return(w==null?void 0:w[y])??(w==null?void 0:w[(S=s==null?void 0:s.find(A=>(A==null?void 0:A.label)===y))==null?void 0:S.prop])});v=[...v,...c]}),h=v.reduce((y,c)=>{let w=0;Number.isNaN(y)||(w=+y);let S=0;return Number.isNaN(c)||(S=+c),w+S},0)}return r[t]=h,r},dp=l=>{let r=l==null?void 0:l.contents,n=l==null?void 0:l.valueString,t=l==null?void 0:l.prop,s=l==null?void 0:l.headers,d=l==null?void 0:l.typeString,b=l==null?void 0:l.allContents,h=0;if(Array.isArray(r)&&(r==null?void 0:r.length)!==1&&(r=na.getValueToObjectValue(r,na.getColumnContents(s))),n==null||n.forEach(v=>{var y,c,w,S,A,_,H;if(r!=null&&r[v]){if(d==="Row")if(!((c=(y=r==null?void 0:r[v])==null?void 0:y.toString())!=null&&c.includes(":"))&&!((w=h==null?void 0:h.toString())!=null&&w.includes(":"))){let k=+(r==null?void 0:r[v]);h=h===0?h+k:h-k}else h=h===0?hr(h.toString())+hr(r==null?void 0:r[v].toString()):hr(h.toString())-hr(r==null?void 0:r[v].toString()),h=Vn(h)}else if(d==="Row"){let k=(S=s==null?void 0:s.find(T=>(T==null?void 0:T.label)===v))==null?void 0:S.prop;if(!((_=Number.isNaN(r==null?void 0:r[k])?"":(A=r==null?void 0:r[k])==null?void 0:A.toString())!=null&&_.includes(":"))&&!((H=h==null?void 0:h.toString())!=null&&H.includes(":"))){let T=+((r==null?void 0:r[k])??0);h=h===0?h+T:h-T}else h=h===0?hr(h.toString())+hr(((r==null?void 0:r[k])??0).toString()):hr(h.toString())-hr(((r==null?void 0:r[k])??0).toString()),h=Vn(h)}}),d==="Column"){let v=[];n==null||n.forEach(y=>{let c=b==null?void 0:b.map(w=>{var S;return(w==null?void 0:w[y])??(w==null?void 0:w[(S=s==null?void 0:s.find(A=>(A==null?void 0:A.label)===y))==null?void 0:S.prop])});v=[...v,...c]}),h=v.reduce((y,c)=>{let w=0;Number.isNaN(y)||(w=+y);let S=0;return Number.isNaN(c)||(S=+c),w-S},0)}return r[t]=h,r},pp=l=>{let r=l==null?void 0:l.contents,n=l==null?void 0:l.valueString,t=l==null?void 0:l.prop,s=l==null?void 0:l.headers,d=l==null?void 0:l.typeString,b=l==null?void 0:l.allContents,h=0;if(Array.isArray(r)&&(r==null?void 0:r.length)!==1&&(r=na.getValueToObjectValue(r,na.getColumnContents(s))),n==null||n.forEach(v=>{var y,c,w,S,A,_,H;if(r!=null&&r[v]){if(d==="Row")if(!((c=(y=r==null?void 0:r[v])==null?void 0:y.toString())!=null&&c.includes(":"))&&!((w=h==null?void 0:h.toString())!=null&&w.includes(":"))){let k=+(r==null?void 0:r[v]);h=h===0?h+k:h*k}else h=h===0?hr(h.toString())+hr(r==null?void 0:r[v].toString()):hr(h.toString())*hr(r==null?void 0:r[v].toString()),h=Vn(h)}else if(d==="Row"){let k=(S=s==null?void 0:s.find(T=>(T==null?void 0:T.label)===v))==null?void 0:S.prop;if(!(r!=null&&r[k]))h=void 0;else if(!((_=Number.isNaN(r==null?void 0:r[k])?"":(A=r==null?void 0:r[k])==null?void 0:A.toString())!=null&&_.includes(":"))&&!((H=h==null?void 0:h.toString())!=null&&H.includes(":"))){let T=+((r==null?void 0:r[k])??0);h=h===0?h+T:h*T}else h=h===0?hr(h.toString())+hr(((r==null?void 0:r[k])??0).toString()):hr(h.toString())*hr(((r==null?void 0:r[k])??0).toString()),h=Vn(h)}}),d==="Column"){let v=[];n==null||n.forEach(y=>{let c=b==null?void 0:b.map(w=>{var S;return(w==null?void 0:w[y])??(w==null?void 0:w[(S=s==null?void 0:s.find(A=>(A==null?void 0:A.label)===y))==null?void 0:S.prop])});v=[...v,...c]}),h=v.reduce((y,c)=>{let w=0;Number.isNaN(y)||(w=+y);let S=0;return Number.isNaN(c)||(S=+c),w*S},0)}return r[t]=h,r},fp=l=>{let r=l==null?void 0:l.contents,n=l==null?void 0:l.valueString,t=l==null?void 0:l.prop,s=l==null?void 0:l.headers,d=l==null?void 0:l.typeString,b=l==null?void 0:l.allContents,h=0;if(Array.isArray(r)&&(r==null?void 0:r.length)!==1&&(r=na.getValueToObjectValue(r,na.getColumnContents(s))),n==null||n.forEach(v=>{var y,c,w,S,A,_,H;if(r!=null&&r[v]){if(d==="Row")if(!((c=(y=r==null?void 0:r[v])==null?void 0:y.toString())!=null&&c.includes(":"))&&!((w=h==null?void 0:h.toString())!=null&&w.includes(":"))){let k=+(r==null?void 0:r[v]);h=h===0?h+k:h/k}else h=h===0?hr(h.toString())+hr(r==null?void 0:r[v].toString()):hr(h.toString())/hr(r==null?void 0:r[v].toString()),h=Vn(h)}else if(d==="Row"){let k=(S=s==null?void 0:s.find(T=>(T==null?void 0:T.label)===v))==null?void 0:S.prop;if(!((_=Number.isNaN(r==null?void 0:r[k])?"":(A=r==null?void 0:r[k])==null?void 0:A.toString())!=null&&_.includes(":"))&&!((H=h==null?void 0:h.toString())!=null&&H.includes(":"))){let T=+((r==null?void 0:r[k])??0);h=h===0?h+T:h/T}else h=h===0?hr(h.toString())+hr(((r==null?void 0:r[k])??0).toString()):hr(h.toString())/hr(((r==null?void 0:r[k])??0).toString()),h=Vn(h)}}),d==="Column"){let v=[];n==null||n.forEach(y=>{let c=b==null?void 0:b.map(w=>{var S;return(w==null?void 0:w[y])??(w==null?void 0:w[(S=s==null?void 0:s.find(A=>(A==null?void 0:A.label)===y))==null?void 0:S.prop])});v=[...v,...c]}),h=v.reduce((y,c)=>{let w=0;Number.isNaN(y)||(w=+y);let S=0;return Number.isNaN(c)||(S=+c),w/S},0)}return r[t]=h.toFixed(2),r},io={Sum:up,Substract:dp,Multiple:pp,Divide:fp,Compare:cp},hp=async(l,r,n,t="Auto",s,d=[])=>{var c,w,S,A,_,H,k,T,J,D,$,z,x,g,F,q,G,be,ze,De,ne;let b=l,h=[],v=await I.getPageDataApi({platId:parseInt((c=gt==null?void 0:gt.value)==null?void 0:c.plat_id),pageName:"menu"});v=(A=(S=(w=v==null?void 0:v.data)==null?void 0:w.result)==null?void 0:S.filter(ke=>(ke==null?void 0:ke.property_name)===""))==null?void 0:A[0];let y=[];if(v!=null&&v.object_name){v=v==null?void 0:v.object_name;let ke=await I.getPageDataApi({platId:parseInt((_=gt==null?void 0:gt.value)==null?void 0:_.plat_id),pageName:v});ke=(D=(J=(T=(k=(H=ke==null?void 0:ke.data)==null?void 0:H.result)==null?void 0:k[0])==null?void 0:T.contents)==null?void 0:J.find(X=>{var pe;return(pe=X==null?void 0:X.key)==null?void 0:pe.includes("content")}))==null?void 0:D.value,h=($=ke==null?void 0:ke.map(X=>({functionName:X==null?void 0:X.函数名称,functionContent:X==null?void 0:X.输出值})))==null?void 0:$.filter(X=>(X==null?void 0:X.functionContent)!==""),h==null||h.forEach(X=>{y.push(X.functionName),io[X.functionName]=new Function("return "+X.functionContent)()})}if((r==null?void 0:r.length)===0)return b;for(let ke in r){let X=(z=r==null?void 0:r[ke])==null?void 0:z.functionName;const pe=io==null?void 0:io[X];let Ke=(x=r==null?void 0:r[ke])==null?void 0:x.methods;if(Ke=$a.analyzeSplitToContent(Ke,","),(g=Ke==null?void 0:Ke.find(Sa=>Sa==null?void 0:Sa.includes("@Type")))!=null&&g.includes(t)||(Ke==null?void 0:Ke.length)===0){let Sa=((G=(q=(F=Ke==null?void 0:Ke.find(te=>te==null?void 0:te.includes("@Extent")))==null?void 0:F.replace(":","="))==null?void 0:q.split("="))==null?void 0:G[1])??[];if(await new Function("return ")(),(y==null?void 0:y.length)>0&&y.find(te=>te===X)){let te="";try{let le=(be=r==null?void 0:r[ke])==null?void 0:be.functionRelatedWords,ye=(d==null?void 0:d.length)>0?d==null?void 0:d.map(Ne=>{var ia;return Ne==null?void 0:Ne[(ia=r==null?void 0:r[ke])==null?void 0:ia.prop]}):["0"];ye=ye==null?void 0:ye.map(Ne=>Ne==null?void 0:Ne.slice((Ne==null?void 0:Ne.length)-5,Ne==null?void 0:Ne.length)),ye=ye==null?void 0:ye.map(Ne=>$a.isNumber(parseInt(Ne))&&parseInt(Ne)?parseInt(Ne):0);let se=Math.max(...ye);le=le==null?void 0:le.map(Ne=>{if(Ne!=null&&Ne.includes("'"))return Ne==null?void 0:Ne.replaceAll("'","");if(Ne!=null&&Ne.includes("@"))return se+1;{let ia=Object.keys(b);return Ne=(b==null?void 0:b[Ne])??(b==null?void 0:b[ia==null?void 0:ia.find(xa=>xa==null?void 0:xa.includes("."+Ne))]),Ne}}),te=pe(...le)}catch(le){ll.ElMessage.warning("关联数据出现错误,"+le.message)}let B=(ze=r==null?void 0:r[ke])==null?void 0:ze.prop;b[B]=te}else b=pe({contents:b,valueString:(De=r==null?void 0:r[ke])==null?void 0:De.functionRelatedWords,prop:(ne=r==null?void 0:r[ke])==null?void 0:ne.prop,headers:n,typeString:Sa,allContents:s})}}return b},vp=I.useLoginState(I.pinia),{loginUserInfo:Hr}=I.storeToRefs(vp),mp=I.useMenuState(I.pinia),{activeMenuPath:as,currentMenuPath:so}=I.storeToRefs(mp),Js=I.useUnit(I.pinia);let ls="$R";const{selectTitle:_t}=I.storeToRefs(Js),Xs=async(l,r)=>{var b,h,v,y,c,w,S,A,_,H,k,T,J;let n=as.value,t="",s=((b=_t==null?void 0:_t.value)==null?void 0:b.find(D=>(D==null?void 0:D.condition)==="child"&&!(D!=null&&D.relatedContent)))??void 0;(l==null?void 0:l.length)===0||(n=r?n:(h=l==null?void 0:l[0])==null?void 0:h.object_name,t=(v=l==null?void 0:l[0])==null?void 0:v.father_name);let d=[];if(t!==""){let D=t;(D==null?void 0:D[(D==null?void 0:D.length)-1])==="/"&&(D=D==null?void 0:D.slice(0,(D==null?void 0:D.length)-1));let $=await Pr(D,!1);$=(y=$==null?void 0:$[0])==null?void 0:y.compData;let z=(c=$==null?void 0:$.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:c.contents;z=((w=z==null?void 0:z.find(g=>g==null?void 0:g.isMainKey))==null?void 0:w.prop)??((S=z==null?void 0:z[0])==null?void 0:S.prop);let x=(_=(A=$==null?void 0:$.find(g=>(g==null?void 0:g.key)==="tableContents"))==null?void 0:A.contents)==null?void 0:_.map(g=>({label:g==null?void 0:g[z],value:g==null?void 0:g[z]}));d=(H=t==null?void 0:t.split("/"))==null?void 0:H.map(g=>(g===""?s?(s.isShow=!0,g=s):g={value:g,condition:"child",options:x,parentContent:(t==null?void 0:t[(t==null?void 0:t.length)-1])==="/"?t==null?void 0:t.slice(0,(t==null?void 0:t.length)-1):t,isShow:!0}:g={condition:"parent",value:g.trim(),isShow:!0},g))}if(n!==""){let D=(k=n==null?void 0:n.split("/"))==null?void 0:k.map($=>($={condition:"normal",value:$.trim(),isShow:!0},$));((T=D==null?void 0:D[0])==null?void 0:T.value)===((J=d==null?void 0:d[0])==null?void 0:J.value)&&(D=D==null?void 0:D.filter(($,z)=>z!==0)),d=[...d??[],...D??[]]}t===""&&s&&((s==null?void 0:s.parentContent)!==as.value&&(s.isShow=!1),(s==null?void 0:s.value)!==""&&d.push(s)),Js.setSelectTitle(d)},yp=async l=>{var d,b,h,v,y,c,w,S,A;let r=await I.getPageDataApi({platId:parseInt((d=Hr==null?void 0:Hr.value)==null?void 0:d.plat_id),pageName:"menu"}),n=(b=r==null?void 0:r.data)==null?void 0:b.result,t=(c=(y=(v=(h=l==null?void 0:l.filter(_=>(_==null?void 0:_.comp)==="Table"))==null?void 0:h[0])==null?void 0:v.compData)==null?void 0:y.find(_=>(_==null?void 0:_.key)==="filter"))==null?void 0:c.contents;t=(A=(S=(w=t==null?void 0:t.replace("(",ls))==null?void 0:w.split(ls))==null?void 0:S[0])==null?void 0:A.replaceAll(":","/");let s=n==null?void 0:n.filter(_=>{var H;return(_==null?void 0:_.object_name)===so.value+"/"||((H=so.value)==null?void 0:H.includes(t))&&t+"/"===(_==null?void 0:_.object_name)});return(s==null?void 0:s.length)>0&&(l=l==null?void 0:l.map(_=>{var H;return(_==null?void 0:_.comp)==="Table"&&(_.compData=(H=_==null?void 0:_.compData)==null?void 0:H.map(k=>{var T,J,D;return(k==null?void 0:k.key)==="header"&&(Array.isArray((T=k.contents)==null?void 0:T[0])?k.contents[0]=(D=k.contents[0])==null?void 0:D.map(($,z)=>{var x;return z===0&&($.isExistChild=!0,(x=so.value)!=null&&x.includes(t)&&($.fatherPath=t)),$}):k.contents=(J=k.contents)==null?void 0:J.map(($,z)=>{var x;return z===0&&($.isExistChild=!0,(x=so.value)!=null&&x.includes(t)&&($.fatherPath=t)),$})),k})),_})),l},Pr=async(l,r,n={})=>{var b,h,v,y,c,w,S,A,_,H,k,T;let t=await I.getPageDataApi({platId:parseInt((b=Hr==null?void 0:Hr.value)==null?void 0:b.plat_id),pageName:l}),s=(h=t==null?void 0:t.data)==null?void 0:h.result;if((s==null?void 0:s.length)===0&&(n!=null&&n.originPath)&&(n==null?void 0:n.originPath)!==l){let J=await I.getPageDataApi({platId:parseInt((v=Hr==null?void 0:Hr.value)==null?void 0:v.plat_id),pageName:n==null?void 0:n.originPath});if(((c=(y=J==null?void 0:J.data)==null?void 0:y.result)==null?void 0:c.length)>0){let D=await es((w=J==null?void 0:J.data)==null?void 0:w.result,n);D=D==null?void 0:D.map(async x=>{var q,G,be,ze,De,ne,ke,X,pe,Ke,Sa,te,B,le,ye,se,Ne,ia,xa,Ha,ee,ea,Pe,ga,He,Ae,Re,Ge,Ka,Ia;let g=[],F=(q=Object.keys(x))==null?void 0:q.filter(R=>R==null?void 0:R.includes("name"));for(let R in x)F!=null&&F.find(P=>P===R)&&g.push(x==null?void 0:x[R]);if(g=g.reverse(),(x==null?void 0:x.comp)==="Table"){let R=(ze=(be=(G=x==null?void 0:x.compData)==null?void 0:G.find(Y=>(Y==null?void 0:Y.key)==="tableContents"))==null?void 0:be.contents)==null?void 0:ze.map(Y=>{let oe={};for(let ie in Y)ie!=="id"&&ie!=="create_time"&&ie!=="update_time"&&ie!=="sort"&&ie!=="create_user_id"&&ie!=="update_user_id"&&ie!=="department_id"&&ie!=="relatedId"&&(oe[ie]=Y==null?void 0:Y[ie]);return Y=Object.values(oe),Y}),P=(ne=(De=x==null?void 0:x.compData)==null?void 0:De.find(Y=>(Y==null?void 0:Y.key)==="header"))==null?void 0:ne.contents;if(Array.isArray(P==null?void 0:P[0])?(P[0].push({label:"排序",prop:"sort"}),P[0].push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(ke=P[0])!=null&&ke.find(Y=>(Y==null?void 0:Y.prop)==="disabled")&&(P[0]=(X=P[0])==null?void 0:X.filter(Y=>(Y==null?void 0:Y.prop)!=="disabled"),P[0].unshift({label:"",prop:"disabled",sortable:!1}))):(P.push({label:"排序",prop:"sort"}),P.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),P!=null&&P.find(Y=>(Y==null?void 0:Y.prop)==="disabled")&&(P=P==null?void 0:P.filter(Y=>(Y==null?void 0:Y.prop)!=="disabled"),P.unshift({label:"",prop:"disabled",sortable:!1}))),P!=null&&P.some(Y=>{var oe;return(Y==null?void 0:Y.calculatorFilter)&&((oe=Y==null?void 0:Y.calculatorFilter)==null?void 0:oe.includes("Auto"))})&&(R=await di(R,P,"Auto"),R=R==null?void 0:R.map(Y=>Object.values(Y))),x!=null&&x.fatherSyncContents){Array.isArray((pe=x==null?void 0:x.fatherSyncContents)==null?void 0:pe[0])&&(x.fatherSyncContents=(Ke=x==null?void 0:x.fatherSyncContents)==null?void 0:Ke[0]);let Y=(Sa=_t.value)==null?void 0:Sa.find(oe=>(oe==null?void 0:oe.condition)==="child");x.fatherSyncContents=(te=x==null?void 0:x.fatherSyncContents)==null?void 0:te.map(oe=>{var ie,fa,ra,Ie,we,Ca;return((fa=oe==null?void 0:oe.menus)==null?void 0:fa[((ie=oe==null?void 0:oe.menus)==null?void 0:ie.length)-1])==="/"&&(Y==null?void 0:Y.parentContent)+"/"!==(oe==null?void 0:oe.menus)?oe.menus=(oe==null?void 0:oe.menus)+(Y==null?void 0:Y.value):((Ie=oe==null?void 0:oe.menus)==null?void 0:Ie[((ra=oe==null?void 0:oe.menus)==null?void 0:ra.length)-1])==="/"&&(Y==null?void 0:Y.parentContent)+"/"===(oe==null?void 0:oe.menus)&&(oe.menus=(Ca=oe.menus)==null?void 0:Ca.slice(0,((we=oe.menus)==null?void 0:we.length)-1)),oe})}if(x!=null&&x.sonSyncContents){Array.isArray((B=x==null?void 0:x.sonSyncContents)==null?void 0:B[0])&&(x.sonSyncContents=(le=x==null?void 0:x.sonSyncContents)==null?void 0:le[0]);let Y=(ye=_t.value)==null?void 0:ye.find(oe=>(oe==null?void 0:oe.condition)==="child");x.sonSyncContents=(se=x==null?void 0:x.sonSyncContents)==null?void 0:se.map(oe=>{var ie,fa,ra,Ie,we,Ca;return((fa=oe==null?void 0:oe.menus)==null?void 0:fa[((ie=oe==null?void 0:oe.menus)==null?void 0:ie.length)-1])==="/"&&(Y==null?void 0:Y.parentContent)+"/"!==(oe==null?void 0:oe.menus)?oe.menus=(oe==null?void 0:oe.menus)+(Y==null?void 0:Y.value):((Ie=oe==null?void 0:oe.menus)==null?void 0:Ie[((ra=oe==null?void 0:oe.menus)==null?void 0:ra.length)-1])==="/"&&(Y==null?void 0:Y.parentContent)+"/"===(oe==null?void 0:oe.menus)&&(oe.menus=(Ca=oe.menus)==null?void 0:Ca.slice(0,((we=oe.menus)==null?void 0:we.length)-1)),oe})}if(x!=null&&x.relatedQuotes){Array.isArray((Ne=x==null?void 0:x.relatedQuotes)==null?void 0:Ne[0])&&(x.relatedQuotes=(ia=x==null?void 0:x.relatedQuotes)==null?void 0:ia[0]);let Y=(xa=_t.value)==null?void 0:xa.find(oe=>(oe==null?void 0:oe.condition)==="child");x.relatedQuotes=(Ha=x==null?void 0:x.relatedQuotes)==null?void 0:Ha.map(oe=>{var ie,fa,ra,Ie,we,Ca;return((fa=oe==null?void 0:oe.menus)==null?void 0:fa[((ie=oe==null?void 0:oe.menus)==null?void 0:ie.length)-1])==="/"&&(Y==null?void 0:Y.parentContent)+"/"!==(oe==null?void 0:oe.menus)?oe.menus=(oe==null?void 0:oe.menus)+(Y==null?void 0:Y.value):((Ie=oe==null?void 0:oe.menus)==null?void 0:Ie[((ra=oe==null?void 0:oe.menus)==null?void 0:ra.length)-1])==="/"&&(Y==null?void 0:Y.parentContent)+"/"===(oe==null?void 0:oe.menus)&&(oe.menus=(Ca=oe.menus)==null?void 0:Ca.slice(0,((we=oe.menus)==null?void 0:we.length)-1)),oe})}x={filter:(ea=(ee=x==null?void 0:x.compData)==null?void 0:ee.find(Y=>(Y==null?void 0:Y.key)==="filter"))==null?void 0:ea.contents,key:x==null?void 0:x.comp,name:g,tableColumns:P,tableContents:R,menuFilter:x==null?void 0:x.menuFilter,fatherSyncContents:x==null?void 0:x.fatherSyncContents,relatedQuotes:x==null?void 0:x.relatedQuotes,sonSyncContents:x==null?void 0:x.sonSyncContents}}else{let R=(He=(ga=(Pe=x==null?void 0:x.compData)==null?void 0:Pe.find(Y=>(Y==null?void 0:Y.key)==="formContent"))==null?void 0:ga.contents)==null?void 0:He.map(Y=>(Y==null?void 0:Y.value)??"");R=[R];let P=(Ge=(Re=(Ae=x==null?void 0:x.compData)==null?void 0:Ae.find(Y=>(Y==null?void 0:Y.key)==="formContent"))==null?void 0:Re.contents)==null?void 0:Ge.map(Y=>(Y.value="",Y));x={contents:R,filter:(Ia=(Ka=x==null?void 0:x.compData)==null?void 0:Ka.find(Y=>(Y==null?void 0:Y.key)==="filter"))==null?void 0:Ia.contents,key:x==null?void 0:x.comp,name:g,value:P,fatherSyncContents:x==null?void 0:x.fatherSyncContents,relatedQuotes:x==null?void 0:x.relatedQuotes,sonSyncContents:x==null?void 0:x.sonSyncContents}}return x.isShow=!1,x}),D=await Promise.all(D);let $=[{key:"menuPath",contents:[{path:l,fatherPath:(_=(A=(S=J==null?void 0:J.data)==null?void 0:S.result)==null?void 0:A[0])==null?void 0:_.father_name,isShow:!1}]},{key:l,contents:D}];await I.createPlatFormDataApi({platId:parseInt((H=Hr==null?void 0:Hr.value)==null?void 0:H.plat_id),changeData:$});let z=await I.getPageDataApi({platId:parseInt((k=Hr==null?void 0:Hr.value)==null?void 0:k.plat_id),pageName:l});s=(T=z==null?void 0:z.data)==null?void 0:T.result}}r&&await Xs(s,!!(n!=null&&n.originPath));let d=await es(s,n);return r&&(d=await yp(d)),d},rs=async l=>{var t,s,d,b,h,v,y,c,w,S,A;let r=(t=l==null?void 0:l.menus)==null?void 0:t.join("/");l!=null&&l.endChildMenu&&(l==null?void 0:l.endChildMenu)!==""&&(r==null?void 0:r[(r==null?void 0:r.length)-1])==="/"&&(r=r+(l==null?void 0:l.endChildMenu)),(r==null?void 0:r[(r==null?void 0:r.length)-1])==="/"&&(r=r+((d=(s=l.value)==null?void 0:s.split(" "))==null?void 0:d[0]));let n=await Pr(r,!1);if(n=(b=n==null?void 0:n.filter(_=>{var H,k;return(_==null?void 0:_.name)===((k=l==null?void 0:l.groups)==null?void 0:k[((H=l==null?void 0:l.groups)==null?void 0:H.length)-1])}))==null?void 0:b[0],(v=(h=n==null?void 0:n.compData)==null?void 0:h.find(_=>(_==null?void 0:_.key)==="tableContents"))!=null&&v.contents){n=(c=(y=n==null?void 0:n.compData)==null?void 0:y.find(H=>(H==null?void 0:H.key)==="tableContents"))==null?void 0:c.contents;let _=((w=l==null?void 0:l.words)==null?void 0:w[0])??(l==null?void 0:l.prop);return n=n==null?void 0:n.filter(H=>{var k,T,J;return(H==null?void 0:H[l!=null&&l.endChildMenu?_:l==null?void 0:l.prop])===(l!=null&&l.relatedWords&&((k=l==null?void 0:l.relatedWords)==null?void 0:k.length)>0?(J=(T=l.value)==null?void 0:T.split(" "))==null?void 0:J[0]:l.value)}),n==null?void 0:n[0]}else{let _=(A=(S=n==null?void 0:n.compData)==null?void 0:S.find(k=>(k==null?void 0:k.key)==="formContent"))==null?void 0:A.contents,H={};return _==null||_.forEach(k=>{H[k.prop]=k.value}),H}},gp={key:0,class:"extra-button-content"},bp={class:"table-operator-wrap"},kp={key:0,class:"extra-button-filter"},xp={key:1,class:"extra-header"},_p=["onClick"],wp={class:"table-op-text"},Cp={class:"table-op-text"},Ep={class:"drop-menu",style:{width:"120px"}},Sp=["onClick"],Dp={key:0},Bp={key:1},Np=["onClick"],Tp={class:"table-op-text"},Ap={key:1,class:"extra-button-content tabs-button-wrapper"},zp={class:"table-operator-wrap"},Mp={class:"extra-button-filter"},Op={key:0,class:"extra-header"},Ip={class:"table-op-action"},Lp={class:"table-op-text"},Vp={class:"drop-menu",style:{width:"120px"}},$p={key:0},Rp={key:1},Pp=["onClick"],Fp={class:"table-op-text"},jp={__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:()=>[]}},emits:["buttonClick","filter","getImportData"],setup(l,{emit:r}){const n=r,t=l,s=a.ref(""),d=a.ref(!1),b=a.ref([]),h=a.ref([{label:"清空",background:"#999999"},{label:"确认"}]),v=[{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 y(x,g){return x.map(F=>{const q={...F};return g.forEach(G=>{delete q[G]}),q})}function c(x){if(!x||x.t!=="n")return(x==null?void 0:x.v)??"";const g=x.v;if(x.z){const F=String(x.z).toLowerCase(),q=["yyyy/mm/dd","yyyy-mm-dd","yyyy.mm.dd","yy/mm/dd","yy-mm-dd","yy.mm.dd","mm/dd/yy","mm-dd-yy","mm.dd.yy","dd/mm/yy","dd-mm-yy","dd.mm.yy","m/d/yy","m/d/yyyy","d/m/yy","d/m/yyyy","yyyy年","yy年","m月","d日","yyyy年m月d日","yy年m月d日","[$-f800]","[$-f400]"];for(const ze of q)if(F.includes(ze))return w(g);const G=/[ymdhms]/.test(F),be=/^[0#\.\,\s]+$/.test(F.replace(/[\\\/\-:]/g,""));if(G&&!be)return w(g)}if(g>=1&&g<=73050){if(g<5e3)return g;if(g>=5e3&&g<4e4){const F=Math.floor((g-25569)/365.25)+1970;return F>=1970&&F<=2e3&&x.z&&/[ymd]/.test(String(x.z).toLowerCase())?w(g):g}if(g>=4e4)return w(g)}return g}function w(x){if(typeof x!="number")return x;try{const g=new Date((x-25569)*86400*1e3);if(isNaN(g.getTime()))return x;const F=g.getFullYear(),q=String(g.getMonth()+1).padStart(2,"0"),G=String(g.getDate()).padStart(2,"0");return`${F}-${q}-${G}`}catch{return x}}const S=x=>{const g=x.raw;if(!g)return;const F=new FileReader;F.onload=q=>{try{const G=new Uint8Array(q.target.result),be=na.readSync(G,{type:"array"}),ze=be.SheetNames[0],De=be.Sheets[ze],ke=na.utils.decode_range(De["!ref"]).e.c+1,X=new Array(ke).fill(""),pe=[];for(const le in De){if(le[0]==="!")continue;const{r:ye,c:se}=na.utils.decode_cell(le),Ne=De[le];let ia=c(Ne);if((ia==null||ia==="")&&(ia=""),ye===0)X[se]=ia;else{if(!pe[ye-1]){pe[ye-1]={};for(let xa=0;xa<ke;xa++)pe[ye-1][`col_${xa}`]=""}pe[ye-1][`col_${se}`]=ia}}for(let le=0;le<ke;le++)X[le]===void 0&&(X[le]="");const Ke=[];for(let le=0;le<X.length;le++)(!X[le]||X[le].toString().trim()==="")&&Ke.push(le);let Sa,te;(Ke==null?void 0:Ke.length)>0?(ll.ElMessage.warning("存在键为空的列,已自动过滤,请检查补充"),Sa=X.filter((le,ye)=>!Ke.includes(ye)),te=y(pe,Ke==null?void 0:Ke.map(le=>`col_${le}`))):(Sa=X,te=pe);const B=pe==null?void 0:pe[0];if(!(B!=null&&B.hasOwnProperty("col_0")))return ll.ElMessage.error("导入的数据列不匹配,请检查是否错位");n("getImportData",Sa,te)}catch(G){throw ll.ElMessage.error(G.message),new Error(G.message)}},F.readAsArrayBuffer(g)},A=x=>{var F;const g=(F=b.value)==null?void 0:F.reduce((q,G,be)=>(be===0?q[G.label]=x:q[G.label]=G==null?void 0:G.value,q),{});n("filter",g,x,!0)},_=(x,g={})=>{n("buttonClick",x,"",g)},H=x=>{var g,F;b.value=(F=(g=na.getColumnChild(I.cloneDeep(x)))==null?void 0:g.filter(q=>(q==null?void 0:q.label)!==""&&(q==null?void 0:q.label)!=="操作"))==null?void 0:F.map(q=>({label:(q==null?void 0:q.label)??"",value:"",name:(q==null?void 0:q.prop)??"",isFormColHidden:q==null?void 0:q.isTableColHidden,width:2,prop:(q==null?void 0:q.prop)??""}))},k=a.ref(!1),T=x=>{var g;if((x==null?void 0:x.buttonName)==="确认"&&(n("filter",x==null?void 0:x.content),k.value=(x==null?void 0:x.content)&&Object.values(x==null?void 0:x.content).length>0),(x==null?void 0:x.buttonName)==="清空"){const F=I.cloneDeep(x==null?void 0:x.content);for(const q in F)F[q]="";b.value=(g=b.value)==null?void 0:g.map(q=>({...q,value:""})),n("filter",F),k.value=!1}d.value=!1},J=()=>{d.value=!d.value},D=()=>{var g,F;b.value=(g=b.value)==null?void 0:g.map(q=>({...q,value:""}));const x=(F=b.value)==null?void 0:F.reduce((q,G)=>(q[G.label]=G.value,q),{});n("filter",x)},$=a.ref(null);let z;return z=x=>{var G;if(!d.value)return;const g=(G=$==null?void 0:$.value)==null?void 0:G.$el,F=g==null?void 0:g.contains(x.target);let q=!1;document.querySelectorAll(".el-popover, .el-popper").forEach(be=>{be.contains(x.target)&&(q=!0)}),!F&&!q&&(d.value=!1)},a.onMounted(()=>{document.addEventListener("click",z),H(t.columns)}),a.onBeforeUnmount(()=>{document.removeEventListener("click",z)}),a.watch(()=>t.columns,()=>{H(t.columns)},{deep:!0,immediate:!0}),(x,g)=>{var De,ne,ke,X,pe,Ke,Sa,te;const F=a.resolveComponent("el-icon"),q=a.resolveComponent("svg-icon"),G=a.resolveComponent("el-input"),be=a.resolveComponent("el-upload"),ze=a.resolveComponent("el-button");return l.pageLayout==="vertical"?(a.openBlock(),a.createElementBlock("div",gp,[a.createElementVNode("div",{class:a.normalizeClass(l.compName?"table-name-wrap":""),style:a.normalizeStyle({background:(t==null?void 0:t.level)>1?"transparent":"var(--ssgroup-background)",paddingLeft:((t==null?void 0:t.level)-1)*12+"px",fontWeight:600-((t==null?void 0:t.level)-1)*100>=400?600-((t==null?void 0:t.level)-1)*100:400,fontSize:17-(t==null?void 0:t.level)>=14?17-(t==null?void 0:t.level)+"px":"14px"})},a.toDisplayString(l.compName),7),a.createElementVNode("div",bp,[t!=null&&t.filterShow?(a.openBlock(),a.createElementBlock("div",kp,[a.createVNode(Cu,{trigger:"contextmenu",ref_key:"popOverRef",ref:$,title:"",width:800,placement:"bottom-start",isVisible:d.value,"onUpdate:isVisible":g[4]||(g[4]=B=>d.value=B)},{reference:a.withCtx(()=>{var B,le,ye,se;return[a.createVNode(G,{modelValue:s.value,"onUpdate:modelValue":g[0]||(g[0]=Ne=>s.value=Ne),style:{"min-width":"80px"},placeholder:k.value?(ye=(le=(B=l.filterValues)==null?void 0:B.filter(Ne=>Ne))==null?void 0:le.slice(0,3))==null?void 0:ye.join("/"):"搜索","prefix-icon":a.unref(ll.search_default),clearable:"",onInput:A,disabled:((se=b.value)==null?void 0:se.length)===0},{suffix:a.withCtx(()=>{var Ne,ia;return[!s.value&&((ia=(Ne=l.filterValues)==null?void 0:Ne.filter(xa=>xa))!=null&&ia.join("/"))?(a.openBlock(),a.createBlock(F,{key:0,style:{cursor:"pointer"},onClick:D},{default:a.withCtx(()=>[a.createVNode(a.unref(ll.circle_close_default))]),_:1})):a.createCommentVNode("",!0)]}),append:a.withCtx(()=>[a.createElementVNode("span",{title:"条件查询",onClick:a.withModifiers(J,["stop"])},[a.createVNode(q,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:a.withCtx(()=>[a.createElementVNode("div",{class:"form-content-value",onKeydown:g[1]||(g[1]=a.withModifiers(()=>{},["stop"])),onKeyup:g[2]||(g[2]=a.withModifiers(()=>{},["stop"])),onKeypress:g[3]||(g[3]=a.withModifiers(()=>{},["stop"]))},[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:b.value,buttonValue:h.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:h.value,isStartJustify:!1,onOnButtonClick:T},null,8,["rowContents","buttonValue"]))],32)]),_:1},8,["isVisible"])])):a.createCommentVNode("",!0),l.buttons&&((De=l.buttons)==null?void 0:De.length)>0?(a.openBlock(),a.createElementBlock("div",xp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((ne=l.buttons)==null?void 0:ne.filter(B=>l.isDevMode||(B==null?void 0:B.label)!=="修改模板"),(B,le)=>{var ye;return a.openBlock(),a.createElementBlock("div",{class:"extra-contents",key:le},[(B==null?void 0:B.type)==="upload"?(a.openBlock(),a.createBlock(be,{key:0,class:"upload-button-wrap","on-change":S,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1,disabled:!!l.lockingPage},{default:a.withCtx(()=>{var se;return[a.createElementVNode("div",{class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}]),onClick:Ne=>_(B==null?void 0:B.label)},[a.createVNode(q,{class:"table-op-icon",name:(se=v==null?void 0:v.find(Ne=>(Ne==null?void 0:Ne.label)===(B==null?void 0:B.label)))==null?void 0:se.icon},null,8,["name"]),a.createElementVNode("span",wp,a.toDisplayString(B==null?void 0:B.label),1)],10,_p)]}),_:2},1032,["disabled"])):a.createCommentVNode("",!0),(B==null?void 0:B.type)==="popover"?(a.openBlock(),a.createBlock(pl._sfc_main,{key:1},{dropTitle:a.withCtx(()=>{var se;return[a.createElementVNode("div",{class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}])},[a.createVNode(q,{class:"table-op-icon",name:(se=v==null?void 0:v.find(Ne=>(Ne==null?void 0:Ne.label)===(B==null?void 0:B.label)))==null?void 0:se.icon},null,8,["name"]),a.createElementVNode("span",Cp,a.toDisplayString(B==null?void 0:B.label),1)],2)]}),dropMenu:a.withCtx(()=>[a.createElementVNode("div",Ep,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(B==null?void 0:B.contents,se=>{var Ne,ia;return a.openBlock(),a.createElementBlock("div",{key:se==null?void 0:se.label,class:a.normalizeClass(["table-op-drop-item",{"is-disabled":!!l.lockingPage}]),onClick:xa=>!l.lockingPage&&_(se==null?void 0:se.label)},[a.createTextVNode(a.toDisplayString(se==null?void 0:se.label),1),(Ne=se==null?void 0:se.label)!=null&&Ne.includes("选中")?(a.openBlock(),a.createElementBlock("span",Dp,"("+a.toDisplayString(l.selectNums)+")",1)):a.createCommentVNode("",!0),(ia=se==null?void 0:se.label)!=null&&ia.includes("全部")?(a.openBlock(),a.createElementBlock("span",Bp,"("+a.toDisplayString(l.dataNums)+")",1)):a.createCommentVNode("",!0)],10,Sp)}),128))])]),_:2},1024)):a.createCommentVNode("",!0),!(B!=null&&B.type)||(B==null?void 0:B.type)==="methodButton"?(a.openBlock(),a.createElementBlock("div",{key:2,id:"themeButton",class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}]),onClick:se=>!l.lockingPage&&_(B==null?void 0:B.label,B)},[a.createVNode(q,{class:"table-op-icon",name:(ye=v==null?void 0:v.find(se=>(se==null?void 0:se.label)===(B==null?void 0:B.label)))==null?void 0:ye.icon},null,8,["name"]),a.createElementVNode("span",Tp,a.toDisplayString(B==null?void 0:B.label),1)],10,Np)):a.createCommentVNode("",!0)])}),128))])):a.createCommentVNode("",!0)])])):(a.openBlock(),a.createElementBlock("div",Ap,[a.createElementVNode("div",zp,[a.createElementVNode("div",Mp,[a.createVNode(G,{modelValue:s.value,"onUpdate:modelValue":g[5]||(g[5]=B=>s.value=B),style:{"min-width":"80px"},placeholder:k.value?(pe=(X=(ke=l.filterValues)==null?void 0:ke.filter(B=>B))==null?void 0:X.slice(0,3))==null?void 0:pe.join("/"):"搜索","prefix-icon":a.unref(ll.search_default),clearable:"",onInput:A,disabled:((Ke=b.value)==null?void 0:Ke.length)===0},{suffix:a.withCtx(()=>{var B,le;return[!s.value&&((le=(B=l.filterValues)==null?void 0:B.filter(ye=>ye))!=null&&le.join("/"))?(a.openBlock(),a.createBlock(F,{key:0,style:{cursor:"pointer"},onClick:D},{default:a.withCtx(()=>[a.createVNode(a.unref(ll.circle_close_default))]),_:1})):a.createCommentVNode("",!0)]}),append:a.withCtx(()=>[a.createElementVNode("span",{title:"条件查询",onClick:a.withModifiers(J,["stop"])},[a.createVNode(q,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]),l.buttons&&((Sa=l.buttons)==null?void 0:Sa.length)>0?(a.openBlock(),a.createElementBlock("div",Op,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((te=l.buttons)==null?void 0:te.filter(B=>l.isDevMode||(B==null?void 0:B.label)!=="修改模板"),(B,le)=>{var ye;return a.openBlock(),a.createElementBlock("div",{class:"extra-contents",key:le},[(B==null?void 0:B.type)==="upload"?(a.openBlock(),a.createBlock(be,{key:0,class:"upload-button-wrap","on-change":S,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1},{default:a.withCtx(()=>{var se;return[a.createElementVNode("div",Ip,[a.createVNode(q,{class:"table-op-icon",name:(se=v==null?void 0:v.find(Ne=>(Ne==null?void 0:Ne.label)===(B==null?void 0:B.label)))==null?void 0:se.icon},null,8,["name"]),a.createElementVNode("span",Lp,a.toDisplayString(B==null?void 0:B.label),1)])]}),_:2},1024)):a.createCommentVNode("",!0),(B==null?void 0:B.type)==="popover"?(a.openBlock(),a.createBlock(pl._sfc_main,{key:1},{dropTitle:a.withCtx(()=>[(B==null?void 0:B.type)==="popover"?(a.openBlock(),a.createBlock(ze,{key:0,style:{background:"transparent",color:"#000000"}},{icon:a.withCtx(()=>{var se;return[a.createVNode(q,{class:"table-op-icon",name:(se=v==null?void 0:v.find(Ne=>(Ne==null?void 0:Ne.label)===(B==null?void 0:B.label)))==null?void 0:se.icon},null,8,["name"])]}),default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(B==null?void 0:B.label),1)]),_:2},1024)):a.createCommentVNode("",!0)]),dropMenu:a.withCtx(()=>[a.createElementVNode("div",Vp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(B==null?void 0:B.contents,se=>(a.openBlock(),a.createBlock(ze,{key:se==null?void 0:se.label,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:Ne=>_(se==null?void 0:se.label)},{default:a.withCtx(()=>{var Ne,ia;return[a.createTextVNode(a.toDisplayString(se==null?void 0:se.label),1),(Ne=se==null?void 0:se.label)!=null&&Ne.includes("选中")?(a.openBlock(),a.createElementBlock("span",$p,"("+a.toDisplayString(l.selectNums)+")",1)):a.createCommentVNode("",!0),(ia=se==null?void 0:se.label)!=null&&ia.includes("全部")?(a.openBlock(),a.createElementBlock("span",Rp,"("+a.toDisplayString(l.dataNums)+")",1)):a.createCommentVNode("",!0)]}),_:2},1032,["onClick"]))),128))])]),_:2},1024)):a.createCommentVNode("",!0),!(B!=null&&B.type)||(B==null?void 0:B.type)==="methodButton"?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}]),id:"themeButton",onClick:se=>!l.lockingPage&&_(B==null?void 0:B.label,B)},[a.createVNode(q,{class:"table-op-icon",name:(ye=v==null?void 0:v.find(se=>(se==null?void 0:se.label)===(B==null?void 0:B.label)))==null?void 0:ye.icon},null,8,["name"]),a.createElementVNode("span",Fp,a.toDisplayString(B==null?void 0:B.label),1)],10,Pp)):a.createCommentVNode("",!0)])}),128))])):a.createCommentVNode("",!0)])]))}}},Hp=ql._export_sfc(jp,[["__scopeId","data-v-3a44c010"]]),Up={__name:"index",props:{columns:Array,tableData:Array},setup(l){return(r,n)=>{const t=a.resolveComponent("el-table-column"),s=a.resolveComponent("el-table");return a.openBlock(),a.createBlock(s,{data:l.tableData,style:{width:"100%"},stripe:"","max-height":"500"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.columns,d=>{var b;return a.openBlock(),a.createBlock(t,{key:d==null?void 0:d.prop,label:d==null?void 0:d.label,prop:d==null?void 0:d.prop,fixed:(d==null?void 0:d.prop)==="operate"?"right":d==null?void 0:d.fixed,align:(d==null?void 0:d.align)??"left","show-overflow-tooltip":(d==null?void 0:d.showOverflowTooltip)??!0,width:d==null?void 0:d.width,"min-width":(d==null?void 0:d.minWidth)||((d==null?void 0:d.prop)==="operate"?80:(((b=d==null?void 0:d.label)==null?void 0:b.length)*2||4)*27)},{default:a.withCtx(h=>[a.renderSlot(r.$slots,"content",{row:h.row,column:h.column,$index:h.$index,scope:h}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(d.children,(v,y)=>(a.openBlock(),a.createBlock(pl._sfc_main$2,{key:y,column:v,tableData:l.tableData},a.createSlots({_:2},[a.renderList(r.$slots,(c,w)=>({name:w,fn:a.withCtx(({row:S,slotData:A,item:_,column:H})=>[a.renderSlot(r.$slots,w,a.mergeProps({ref_for:!0},A??S,{item:_??v,slotData:A??S,row:S,column:H,columnProp:v}))])}))]),1032,["column","tableData"]))),128))]),_:2},1032,["label","prop","fixed","align","show-overflow-tooltip","width","min-width"])}),128))]),_:3},8,["data"])}}};class qp extends $a.Loader{constructor(r){super(r),this.littleEndian=!0}load(r,n,t,s){const d=this,b=new $a.FileLoader(d.manager);b.setPath(d.path),b.setResponseType("arraybuffer"),b.setRequestHeader(d.requestHeader),b.setWithCredentials(d.withCredentials),b.load(r,function(h){try{n(d.parse(h))}catch(v){s?s(v):console.error(v),d.manager.itemError(r)}},t,s)}_getDataView(r,n,t,s){switch(t){case"F":return s===8?r.getFloat64(n,this.littleEndian):r.getFloat32(n,this.littleEndian);case"I":return s===1?r.getInt8(n):s===2?r.getInt16(n,this.littleEndian):r.getInt32(n,this.littleEndian);case"U":return s===1?r.getUint8(n):s===2?r.getUint16(n,this.littleEndian):r.getUint32(n,this.littleEndian)}}parse(r){function n(A,_){const H=A.length,k=new Uint8Array(_);let T=0,J=0,D,$,z;do if(D=A[T++],D<32){if(D++,J+D>_)throw new Error("Output buffer is not large enough");if(T+D>H)throw new Error("Invalid compressed data");do k[J++]=A[T++];while(--D)}else{if($=D>>5,z=J-((D&31)<<8)-1,T>=H)throw new Error("Invalid compressed data");if($===7&&($+=A[T++],T>=H))throw new Error("Invalid compressed data");if(z-=A[T++],J+$+2>_)throw new Error("Output buffer is not large enough");if(z<0)throw new Error("Invalid compressed data");if(z>=J)throw new Error("Invalid compressed data");do k[J++]=k[z++];while(--$+2)}while(T<H);return k}function t(A){const _={},H=new Uint8Array(A);let k="",T="",J=0,D=!1;const $=H.length;for(;J<$&&D===!1;){const F=String.fromCharCode(H[J++]);F===`
2
- `||F==="\r"?(T.trim().toLowerCase().startsWith("data")&&(D=!0),T=""):T+=F,k+=F}const z=k.search(/[\r\n]DATA\s(\S*)\s/i),x=/[\r\n]DATA\s(\S*)\s/i.exec(k.slice(z-1));if(_.data=x[1],_.headerLen=x[0].length+z,_.str=k.slice(0,_.headerLen),_.str=_.str.replace(/#.*/gi,""),_.version=/^VERSION (.*)/im.exec(_.str),_.fields=/^FIELDS (.*)/im.exec(_.str),_.size=/^SIZE (.*)/im.exec(_.str),_.type=/^TYPE (.*)/im.exec(_.str),_.count=/^COUNT (.*)/im.exec(_.str),_.width=/^WIDTH (.*)/im.exec(_.str),_.height=/^HEIGHT (.*)/im.exec(_.str),_.viewpoint=/^VIEWPOINT (.*)/im.exec(_.str),_.points=/^POINTS (.*)/im.exec(_.str),_.version!==null&&(_.version=parseFloat(_.version[1])),_.fields=_.fields!==null?_.fields[1].split(" "):[],_.type!==null&&(_.type=_.type[1].split(" ")),_.width!==null&&(_.width=parseInt(_.width[1])),_.height!==null&&(_.height=parseInt(_.height[1])),_.viewpoint!==null&&(_.viewpoint=_.viewpoint[1]),_.points!==null&&(_.points=parseInt(_.points[1],10)),_.points===null&&(_.points=_.width*_.height),_.size!==null&&(_.size=_.size[1].split(" ").map(function(F){return parseInt(F,10)})),_.count!==null)_.count=_.count[1].split(" ").map(function(F){return parseInt(F,10)});else{_.count=[];for(let F=0,q=_.fields.length;F<q;F++)_.count.push(1)}_.offset={};let g=0;for(let F=0,q=_.fields.length;F<q;F++)_.data==="ascii"?_.offset[_.fields[F]]=F:(_.offset[_.fields[F]]=g,g+=_.size[F]*_.count[F]);return _.rowSize=g,_}const s=t(r),d=[],b=[],h=[],v=[],y=[],c=new $a.Color;if(s.data==="ascii"){const A=s.offset,k=new TextDecoder().decode(r).slice(s.headerLen).split(`
3
- `);for(let T=0,J=k.length;T<J;T++){if(k[T]==="")continue;const D=k[T].split(" ");if(A.x!==void 0&&(d.push(parseFloat(D[A.x])),d.push(parseFloat(D[A.y])),d.push(parseFloat(D[A.z]))),A.rgb!==void 0){const $=s.fields.findIndex(be=>be==="rgb"),z=s.type[$],x=parseFloat(D[A.rgb]);let g=x;if(z==="F"){const be=new Float32Array(1);be[0]=x,g=new Int32Array(be.buffer)[0]}const F=(g>>16&255)/255,q=(g>>8&255)/255,G=(g>>0&255)/255;c.setRGB(F,q,G,$a.SRGBColorSpace),h.push(c.r,c.g,c.b)}A.normal_x!==void 0&&(b.push(parseFloat(D[A.normal_x])),b.push(parseFloat(D[A.normal_y])),b.push(parseFloat(D[A.normal_z]))),A.intensity!==void 0&&v.push(parseFloat(D[A.intensity])),A.label!==void 0&&y.push(parseInt(D[A.label]))}}if(s.data==="binary_compressed"){const A=new Uint32Array(r.slice(s.headerLen,s.headerLen+8)),_=A[0],H=A[1],k=n(new Uint8Array(r,s.headerLen+8,_),H),T=new DataView(k.buffer),J=s.offset;for(let D=0;D<s.points;D++){if(J.x!==void 0){const $=s.fields.indexOf("x"),z=s.fields.indexOf("y"),x=s.fields.indexOf("z");d.push(this._getDataView(T,s.points*J.x+s.size[$]*D,s.type[$],s.size[$])),d.push(this._getDataView(T,s.points*J.y+s.size[z]*D,s.type[z],s.size[z])),d.push(this._getDataView(T,s.points*J.z+s.size[x]*D,s.type[x],s.size[x]))}if(J.rgb!==void 0){const $=s.fields.indexOf("rgb"),z=T.getUint8(s.points*J.rgb+s.size[$]*D+2)/255,x=T.getUint8(s.points*J.rgb+s.size[$]*D+1)/255,g=T.getUint8(s.points*J.rgb+s.size[$]*D+0)/255;c.setRGB(z,x,g,$a.SRGBColorSpace),h.push(c.r,c.g,c.b)}if(J.normal_x!==void 0){const $=s.fields.indexOf("normal_x"),z=s.fields.indexOf("normal_y"),x=s.fields.indexOf("normal_z");b.push(this._getDataView(T,s.points*J.normal_x+s.size[$]*D,s.type[$],s.size[$])),b.push(this._getDataView(T,s.points*J.normal_y+s.size[z]*D,s.type[z],s.size[z])),b.push(this._getDataView(T,s.points*J.normal_z+s.size[x]*D,s.type[x],s.size[x]))}if(J.intensity!==void 0){const $=s.fields.indexOf("intensity");v.push(this._getDataView(T,s.points*J.intensity+s.size[$]*D,s.type[$],s.size[$]))}if(J.label!==void 0){const $=s.fields.indexOf("label");y.push(T.getInt32(s.points*J.label+s.size[$]*D,this.littleEndian))}}}if(s.data==="binary"){const A=new DataView(r,s.headerLen),_=s.offset;for(let H=0,k=0;H<s.points;H++,k+=s.rowSize){if(_.x!==void 0){const T=s.fields.indexOf("x"),J=s.fields.indexOf("y"),D=s.fields.indexOf("z");d.push(this._getDataView(A,k+_.x,s.type[T],s.size[T])),d.push(this._getDataView(A,k+_.y,s.type[J],s.size[J])),d.push(this._getDataView(A,k+_.z,s.type[D],s.size[D]))}if(_.rgb!==void 0){const T=A.getUint8(k+_.rgb+2)/255,J=A.getUint8(k+_.rgb+1)/255,D=A.getUint8(k+_.rgb+0)/255;c.setRGB(T,J,D,$a.SRGBColorSpace),h.push(c.r,c.g,c.b)}if(_.normal_x!==void 0){const T=s.fields.indexOf("normal_x"),J=s.fields.indexOf("normal_y"),D=s.fields.indexOf("normal_z");b.push(this._getDataView(A,k+_.normal_x,s.type[T],s.size[T])),b.push(this._getDataView(A,k+_.normal_y,s.type[J],s.size[J])),b.push(this._getDataView(A,k+_.normal_z,s.type[D],s.size[D]))}if(_.intensity!==void 0){const T=s.fields.indexOf("intensity");v.push(this._getDataView(A,k+_.intensity,s.type[T],s.size[T]))}_.label!==void 0&&y.push(A.getInt32(k+_.label,this.littleEndian))}}const w=new $a.BufferGeometry;d.length>0&&w.setAttribute("position",new $a.Float32BufferAttribute(d,3)),b.length>0&&w.setAttribute("normal",new $a.Float32BufferAttribute(b,3)),h.length>0&&w.setAttribute("color",new $a.Float32BufferAttribute(h,3)),v.length>0&&w.setAttribute("intensity",new $a.Float32BufferAttribute(v,1)),y.length>0&&w.setAttribute("label",new $a.Int32BufferAttribute(y,1)),w.computeBoundingSphere();const S=new $a.PointsMaterial({size:.005});return h.length>0&&(S.vertexColors=!0),new $a.Points(w,S)}}const Kp=I.useModelComp(I.pinia),{systemPath:ns}=I.storeToRefs(Kp),co=a.ref(),ts=new WeakMap;function Wp(l,r,n,t,s){const d=async S=>{try{const A=await I.platformDownloadFile({url:S});if(A.status!==200)throw new Error(`下载失败: ${A.status}`);return A.data}catch(A){throw console.error("addModelFromUrl失败:",A),A}},b=S=>new Promise((A,_)=>{const H=new FileReader;H.onload=k=>{try{const T=k.target.result,D=new Dn.MTLLoader().parse(T);D.preload(),A(D)}catch(T){_(T)}},H.onerror=()=>{_(new Error("MTL文件读取失败"))},H.readAsText(S)}),h=async S=>{const A={materials:{},create:function(_){return this.materials[_]?this.materials[_]:(console.warn(`Material '${_}' not found, using default material`),new $a.MeshPhongMaterial({color:8947848,side:$a.DoubleSide}))},getAsArray:function(){const _=[];for(const H in this.materials)_.push(this.materials[H]);return _},preload:function(){for(const _ in this.materials)this.materials[_].map&&(this.materials[_].map.needsUpdate=!0)}};for(const _ of S){const H=await b(_);Object.assign(A.materials,H.materials)}return A.preload(),A},v=async(S,A=[])=>new Promise((_,H)=>{const k=new FileReader;k.onload=async T=>{try{const J=T.target.result;let D=null;A&&A.length>0&&(A.length===1?D=await b(A[0]):D=await h(A));const $=new Dn.OBJLoader;D&&$.setMaterials(D);const z=$.parse(J);D||z.traverse(x=>{x.isMesh&&(x.material=new $a.MeshPhongMaterial({color:8947848,side:$a.DoubleSide}))}),_(z)}catch(J){H(J)}},k.onerror=()=>{H(new Error("OBJ文件读取失败"))},k.readAsText(S)}),y=async S=>{var A;try{n.value=!0;const{scene:_}=l();if(!_)throw new Error("Scene not initialized");s();const H=[];for(let k=0;k<S.length;k++){const T=S[k];t.value=`正在加载模型 ${k+1}/${S.length}...`;const J=await d(T.objUrl),D=((A=T.objUrl)==null?void 0:A.split("/").pop())||`model_${k}.obj`,$=new File([J],D,{type:J.type});let z=[];if(T.mtlUrls){const g=Array.isArray(T.mtlUrls)?T.mtlUrls:[T.mtlUrls];for(let F=0;F<g.length;F++){const q=g[F],G=await d(q),be=(q==null?void 0:q.split("/").pop())||`material_${k}_${F}.mtl`,ze=new File([G],be,{type:G.type});z.push(ze)}}const x=await v($,z);_.add(x),r.value.push(x),H.push(x)}return n.value=!1,H}catch(_){throw console.error("加载模型失败:",_),n.value=!1,_}},c=async(S,A,_=[],H=[])=>{let k;const T=S.toLowerCase();switch(T){case".txt":case".cpt":case".obj":const J=await A.text();if(T===".txt"||T===".cpt"){const ee=/^(?!.*\bf\b)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?$/gm,Pe=[...J.matchAll(ee)].map(Ae=>({x:parseFloat(Ae[1]),y:parseFloat(Ae[2]),z:parseFloat(Ae[3])})),ga=new $a.BufferGeometry,He=Pe.flatMap(Ae=>[Ae.x,Ae.y,Ae.z]);if(ga.setAttribute("position",new $a.Float32BufferAttribute(He,3)),T===".txt"){const Ae=new $a.PointsMaterial({color:"#5B5C99",size:1,sizeAttenuation:!1});k=new $a.Points(ga,Ae)}else if(T===".cpt"){const Ae=new $a.LineBasicMaterial({color:"#5B5C99",linewidth:100});k=new $a.Line(ga,Ae)}}else if(T===".obj"){const ee=new Dn.OBJLoader;if(_&&_.length>0){const ea=new Dn.MTLLoader;for(const Pe of _){const ga=await Pe.text(),He=ea.parse(ga);He.preload(),ee.setMaterials(He);break}}k=ee.parse(J),(!_||_.length===0)&&k.traverse(ea=>{ea.isMesh&&(ea.material=new $a.MeshPhongMaterial({color:"#B3B3D4"})),ea instanceof $a.Mesh&&(ea.material.side=$a.DoubleSide)})}break;case".stl":const D=await A.arrayBuffer(),z=new Dn.STLLoader().parse(D),x=new $a.MeshPhongMaterial({color:"#B3B3D4",side:$a.DoubleSide});k=new $a.Mesh(z,x);break;case".nc":const g=["Mach_B_Axis_0.STL","Mach_C_Axis_0.STL","Mach_X_Axis_0.STL","Mach_Y_Axis_0.STL","Mach_Z_Axis_0.STL","Mach_Spindle_0.STL"],F={"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)"},q=new $a.Group,G=g.map(ee=>new Promise((ea,Pe)=>{new Dn.STLLoader().load(ns.value===""?`/model/${ee}`:`${ns.value}\\${ee}`,He=>{const Ae=new $a.MeshPhongMaterial({color:F[ee]||"#B3B3D4",side:$a.DoubleSide}),Re=new $a.Mesh(He,Ae);ea(Re)},void 0,Pe)}));try{(await Promise.all(G)).forEach(ea=>q.add(ea)),k=q}catch(ee){throw console.error("加载NC文件对应的STL文件失败:",ee),new Error("无法加载.NC文件对应的STL文件")}break;case".pcd":const be=new qp,ze=new $a.Group;try{const ee=await ll.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/target.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),ea=new Blob([ee.data],{type:"application/octet-stream;charset=UTF-8"}),Pe=await ll.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/final.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),ga=new Blob([Pe.data],{type:"application/octet-stream;charset=UTF-8"}),He=await new Promise((Re,Ge)=>{const Ka=URL.createObjectURL(ea);be.load(Ka,Ia=>{const R=new Float32Array(Ia.geometry.attributes.position.count*3);for(let P=0;P<Ia.geometry.attributes.position.count;P++)R[P*3]=1,R[P*3+1]=0,R[P*3+2]=0;Ia.geometry.setAttribute("color",new $a.BufferAttribute(R,3)),Ia.material.vertexColors=!0,Ia.scale.set(.3,.3,.3),URL.revokeObjectURL(Ka),Re(Ia)},void 0,Ge)}),Ae=await new Promise((Re,Ge)=>{const Ka=URL.createObjectURL(ga);be.load(Ka,Ia=>{const R=new Float32Array(Ia.geometry.attributes.position.count*3);for(let P=0;P<Ia.geometry.attributes.position.count;P++)R[P*3]=0,R[P*3+1]=1,R[P*3+2]=0;Ia.geometry.setAttribute("color",new $a.BufferAttribute(R,3)),Ia.material.vertexColors=!0,Ia.scale.set(.3,.3,.3),URL.revokeObjectURL(Ka),Re(Ia)},void 0,Ge)});ze.add(He),ze.add(Ae),k=ze}catch(ee){throw console.error("PCD文件加载失败:",ee),new Error("无法加载PCD文件")}break;case".urdf":const De=URL.createObjectURL(A),ne=new ku.URDFLoader,ke="http://139.196.154.85:20026/chfs/shared/机器人/urdf/SmallBender_R-2000iC-165F/meshes",X={maxConcurrentLoads:4,enableCache:!0,enableLOD:!0,simplifyGeometry:!0,shareMaterials:!0,enableInstancing:!0},pe=new WeakMap,Ke=new WeakMap,Sa=new WeakMap,te=async ee=>{if(pe.has(ee))return console.log(`从缓存加载: ${ee}`),pe.get(ee);try{const ea=await ll.axios.get(`${ke}/${ee}`,{responseType:"blob",headers:{"Content-Type":"application/json"},timeout:6e5}),Pe=new Blob([ea.data],{type:"application/octet-stream;charset=UTF-8"});return X.enableCache&&pe.set(ee,Pe),Pe}catch(ea){throw console.error(`加载文件失败: ${ee}`,ea),new Error(`无法加载文件: ${ee}`)}},B=(ee="default")=>{if(Ke.has(ee))return Ke.get(ee);const ea=new $a.MeshPhongMaterial({color:12303291,shininess:30,transparent:!1,alphaTest:.1,side:$a.FrontSide});return Ke.set(ee,ea),ea},le=ee=>{try{ee.isBufferGeometry&&ee.mergeVertices&&ee.mergeVertices(),ee.computeVertexNormals&&ee.computeVertexNormals(),ee.computeBoundingSphere&&ee.computeBoundingSphere(),ee.deleteAttribute&&ee.deleteAttribute("uv2")}catch(ea){console.warn("几何体优化失败,使用原始几何体:",ea)}return ee},ye=async(ee,ea,Pe)=>{const ga=`stl_${ea}`;if(Sa.has(ga)){const Ge=Sa.get(ga);return new $a.Mesh(Ge,B())}const He=await ee.arrayBuffer();let Re=new Dn.STLLoader(Pe).parse(He);return Re=le(Re),Sa.set(ga,Re),new $a.Mesh(Re,B())},se=async(ee,ea,Pe)=>{const ga=`obj_${ea}`;if(pe.has(ga))return pe.get(ga).clone();const He=await ee.text(),Ae=new Dn.OBJLoader(Pe),Re=ea.replace(".obj",".mtl");try{const Ia=await(await te(Re)).text(),P=new Dn.MTLLoader(Pe).parse(Ia);P.preload(),Ae.setMaterials(P)}catch{console.warn(`MTL文件加载失败,使用默认材质: ${Re}`)}const Ge=Ae.parse(He);return Ge.traverse(Ka=>{Ka.isMesh&&(Ka.geometry=le(Ka.geometry),Ka.castShadow=!0,Ka.receiveShadow=!0,Ka.renderOrder=1)}),pe.set(ga,Ge),Ge},Ne=(ee,ea)=>{const Pe=new $a.LOD;if(Pe.addLevel(ee,0),ee.geometry){const ga=ee.geometry.clone(),He=new $a.Mesh(ga,ee.material);Pe.addLevel(He,50)}return Pe};let ia=0,xa=0;const Ha=[];ne.loadMeshCb=async(ee,ea,Pe,ga,He)=>{const Ae=ee.split("/").pop(),Re=Pe||(()=>{});ia++;const Ge=new Promise(async(Ka,Ia)=>{try{const R=await te(Ae);if(!R||R.size===0)throw new Error(`文件为空: ${Ae}`);const P=Ae.split(".").pop().toLowerCase();let Y;switch(P){case"stl":Y=await ye(R,Ae,ea);break;case"obj":Y=await se(R,Ae,ea);break;default:throw new Error(`不支持的文件格式: ${P}`)}X.enableLOD&&Y.isMesh&&(Y=Ne(Y,Ae)),Re(Y),xa++,ga&&ga({loaded:xa,total:ia,progress:xa/ia}),Ka(Y)}catch(R){console.error(`mesh文件加载失败: ${Ae}`,R);const P=new $a.Group;Re(P),Ka(P);const Y=new $a.BoxGeometry(.1,.1,.1),oe=new $a.MeshStandardMaterial({color:16711680,wireframe:!0});return new $a.Mesh(Y,oe)}});Ha.push(Ge)};try{if(!De){co.value=void 0;break}if(k=await ne.loadAsync(De),console.log(`URDF文件加载完成,等待${ia}个mesh文件加载...`),Ha.length>0)try{await Promise.allSettled(Ha),console.log(`所有mesh文件处理完成,成功加载: ${xa}/${ia}`)}catch(Pe){console.warn("部分mesh文件加载失败,但继续显示模型",Pe)}k.traverse(Pe=>{Pe.isMesh&&(Pe.castShadow=!0,Pe.receiveShadow=!0,Pe.renderOrder=1,Pe.material&&(Pe.material.needsUpdate=!0))}),console.time("计算包围盒");const ee=new $a.Box3;ee.expandByObject(k);const ea=`urdf_${Date.now()}`;k.userData.boundingBox=ee.clone(),k.userData.modelId=ea,ts.set(ea,{box:ee.clone(),center:ee.getCenter(new $a.Vector3),size:ee.getSize(new $a.Vector3),maxSize:Math.max(...ee.getSize(new $a.Vector3).toArray())}),co.value=k,console.log("URDF模型加载完成并优化")}catch(ee){console.error("URDF加载失败:",ee),co.value=void 0}finally{De&&URL.revokeObjectURL(De)}break;default:throw new Error(`不支持的文件格式: ${S}`)}return k};return{addModelsFromUrls:y,loadModelByDefaultPath:async S=>{console.log(S);try{n.value=!0,t.value="正在加载模型...";const{scene:A}=l();if(!A)throw new Error("Scene not initialized");s(),await new Promise(H=>setTimeout(H,100));const _=[];for(let H=0;H<S.length;H++){const k=S[H],T=await c(k.suffix,k.blob,k.mtlBlobs||[],k.meshFiles||[]);T&&(A.add(T),r.value.push(T),_.push(T))}return n.value=!1,t.value="",_}catch(A){throw console.error("加载模型失败:",A),n.value=!1,t.value="",A}},urdfModel:co,modelBoundingBoxes:ts}}window._iconfont_svg_string_4827314='<svg><symbol id="icon-chart-new" viewBox="0 0 1024 1024"><path d="M960 768V448h-64v320h-64v64H192v-64h-64V256h64v-64h256v-64H192V64H0v192h64v512H0v192h192v-64h640v64h192V768h-64zM64 128h64v64H64v-64z m0 768v-64h64v64H64z m896 0h-64v-64h64v64zM256 768V256h128v512H256z m192-320h128v320H448V448z m192 192h128v128H640V640zM512 288c0-17.664 14.336-32 32-32h160V96c0-17.664 14.336-32 32-32s32 14.336 32 32v160h160c17.664 0 32 14.336 32 32s-14.336 32-32 32H768v160c0 17.664-14.336 32-32 32s-32-14.336-32-32V320H544c-17.664 0-32-14.336-32-32z" ></path></symbol><symbol id="icon-ai13" viewBox="0 0 1024 1024"><path d="M863.719038 159.366637l-705.295378 0c-48.443315 0-88.129176 39.690978-88.129176 88.161922l0 528.943904c0 48.474015 39.685861 88.161922 88.129176 88.161922l705.295378 0c48.443315 0 88.134293-39.687908 88.134293-88.161922l0-528.943904C951.853331 199.056592 912.162354 159.366637 863.719038 159.366637M643.272277 776.472464l-484.84964 0 0-176.324868 484.84964 0L643.272277 776.472464zM643.272277 556.053332l-484.84964 0 0-176.296215 484.84964 0L643.272277 556.053332zM863.719038 776.472464 687.394171 776.472464l0-396.659065 176.324868 0L863.719038 776.472464z" ></path></symbol><symbol id="icon-qiehuanwenjianjia" viewBox="0 0 1024 1024"><path d="M409.6 102.4L512 204.8h307.2a102.4 102.4 0 0 1 102.144 94.72l0.256 7.68v512a102.4 102.4 0 0 1-94.72 102.144l-7.68 0.256H512v-76.8h281.6a51.2 51.2 0 0 0 50.842-45.21l0.358-5.99V332.8a51.2 51.2 0 0 0-45.21-50.842l-5.99-0.358H486.4L384 179.2H230.4a51.2 51.2 0 0 0-50.842 45.21l-0.358 5.99v179.2h-76.8V204.8a102.4 102.4 0 0 1 94.72-102.144l7.68-0.256h204.8z m217.6 588.8a38.4 38.4 0 1 1 0 76.8H358.4v99.584a25.6 25.6 0 0 1-41.83 19.814L132.3 736.614a25.6 25.6 0 0 1 16.231-45.414zM447.59 389.99l3.84 2.612L635.7 543.386a25.6 25.6 0 0 1-11.623 45.004l-4.608 0.41H140.8a38.4 38.4 0 0 1-5.222-76.442L140.8 512h268.8v-99.584a25.6 25.6 0 0 1 37.99-22.426z" ></path></symbol><symbol id="icon-baogao" viewBox="0 0 1104 1024"><path d="M265.401 1024a174.066 174.066 0 0 1-173.56-173.56V315.3a4.194 4.194 0 0 0-4.338-4.34H41.22A39.63 39.63 0 0 1 0 273.356V123.66C0 55.684 59.3 0 132.339 0h648.678a132.411 132.411 0 0 1 132.339 132.339v553.22a4.194 4.194 0 0 0 4.339 4.34h146.079a40.714 40.714 0 0 1 41.22 41.22v159.819a132.411 132.411 0 0 1-132.339 132.339l-707.254 0.723z m653.017-260.339A4.194 4.194 0 0 0 914.08 768v123.661a59.3 59.3 0 0 0 118.599 0V768a4.194 4.194 0 0 0-4.339-4.339z m-749.198-452.7a4.194 4.194 0 0 0-4.339 4.338v534.419a100.737 100.737 0 0 0 100.52 100.52h582.147a3.977 3.977 0 0 0 3.616-2.17 4.628 4.628 0 0 0 0-4.34 132.7 132.7 0 0 1-10.848-52.79V133.062a59.3 59.3 0 0 0-118.598 0v140.294a39.195 39.195 0 0 1-41.22 37.604zM132.34 73.762c-32.542 0-59.3 22.418-59.3 49.898v109.92a4.194 4.194 0 0 0 4.34 4.34h566.237a4.194 4.194 0 0 0 4.339-4.34V133.063a132.7 132.7 0 0 1 10.847-52.79c0.723-1.447 0-2.893 0-4.34a3.977 3.977 0 0 0-3.616-2.17z m169.22 692.068a36.881 36.881 0 0 1 0-73.763h402.08a36.881 36.881 0 0 1 0 73.763z m0-196.701a36.881 36.881 0 1 1 0-73.763h402.08a36.881 36.881 0 1 1 0 73.763z" ></path></symbol><symbol id="icon-xinghao" viewBox="0 0 1024 1024"><path d="M580.583 425.004c52.988-24.574 104.44-49.276 152.82-73.594 48.381-24.703 87.034-42.877 115.704-54.268 28.67-11.136 51.58-17.023 69.115-17.023a104.952 104.952 0 0 1 74.235 28.798 93.177 93.177 0 0 1 31.485 71.802c0 16.383-5.12 33.534-15.358 51.069-10.24 17.534-21.247 28.926-32.638 33.79-105.976 41.468-222.832 72.058-350.054 90.872 23.038 20.99 51.452 49.405 85.113 84.474 33.79 35.582 51.453 54.268 52.86 56.7 12.416 17.023 29.566 38.397 51.837 63.74 22.142 25.597 37.501 45.18 46.076 59.643a99.833 99.833 0 0 1 13.055 52.092 93.817 93.817 0 0 1-29.693 68.731 103.16 103.16 0 0 1-76.41 29.694c-31.23 0-66.172-24.318-105.337-72.443-39.037-48.124-89.465-135.158-151.029-260.46A12540.003 12540.003 0 0 1 386.677 862.22a387.3 387.3 0 0 1-61.563 81.53 96.889 96.889 0 0 1-67.835 27.774 101.625 101.625 0 0 1-76.026-31.358c-19.711-20.862-30.078-43.517-30.078-66.939 0-22.142 4.095-38.909 12.287-50.172 75.514-102.393 154.356-191.602 236.782-266.605a2401.103 2401.103 0 0 1-184.818-35.709 1163.818 1163.818 0 0 1-172.531-57.724c-9.984-5.12-19.583-16.382-29.054-33.917A104.696 104.696 0 0 1 0.018 380.72a93.433 93.433 0 0 1 31.358-71.675 102.648 102.648 0 0 1 72.186-28.926c19.839 0 44.285 5.887 73.979 17.79 29.438 11.904 67.067 29.054 112.632 51.453 45.564 22.526 97.656 47.74 155.892 75.514a1833.849 1833.849 0 0 1-26.494-177.267 1574.54 1574.54 0 0 1-10.367-137.078c0-30.205 9.599-56.06 28.798-78.074A95.481 95.481 0 0 1 512.62 0.076c29.822 0 54.012 10.75 73.339 32.51 19.454 21.886 29.054 50.683 29.054 86.649 0 9.855-1.664 29.182-4.48 58.491-2.56 29.182-7.04 64.252-12.16 105.465-5.375 41.34-11.39 88.697-17.79 141.813z" fill="#FF4444" ></path></symbol><symbol id="icon-mima" viewBox="0 0 1024 1024"><path d="M776.86 376.04c-22.05 0-40.16-16.24-43.91-37.98-18.08-104.98-109.79-185.1-219.84-185.1s-201.76 80.13-219.84 185.1c-3.74 21.73-21.85 37.98-43.91 37.98-27.05 0-48.82-24.04-44.44-50.73 24.3-148.16 153.25-261.58 308.19-261.58S796.99 177.15 821.3 325.31c4.38 26.69-17.39 50.73-44.44 50.73zM850.18 418.32H180.33c-37.98 0-68.76 30.79-68.76 68.76v403.71c0 37.98 30.79 68.76 68.76 68.76h665.36c37.97 0 68.75-30.77 68.77-68.74l0.19-408c0.02-35.61-28.85-64.49-64.47-64.49zM557.73 762.56c0 24.64-19.97 44.62-44.62 44.62-24.64 0-44.62-19.97-44.62-44.62v-89.23c0-24.64 19.97-44.62 44.62-44.62 24.64 0 44.62 19.98 44.62 44.62v89.23z" ></path></symbol><symbol id="icon-zhanghao" viewBox="0 0 1024 1024"><path d="M407.61 578.87c-174.46 0-304.73 113.04-304.73 277.2v17.69c0 85.81 139.6 85.81 316.37 85.81h187.73c169.75 0 316.37 0 316.37-85.81v-17.69c0-164.16-130.28-277.2-304.73-277.2H407.61zM503.71 535.67c138.19 0 250.63-105.81 250.63-235.94 0-130.06-112.44-235.86-250.63-235.86-138.11 0-250.56 105.81-250.56 235.86 0 130.13 112.45 235.94 250.56 235.94z" ></path></symbol><symbol id="icon-xiangqingye-37" viewBox="0 0 1024 1024"><path d="M368.64 34.133333H112.64C68.266667 34.133333 34.133333 68.266667 34.133333 112.64v256c0 23.893333 17.066667 40.96 40.96 40.96s40.96-17.066667 40.96-40.96V116.053333h252.586667c23.893333 0 40.96-17.066667 40.96-40.96S389.12 34.133333 368.64 34.133333zM911.36 34.133333h-256c-23.893333 0-40.96 17.066667-40.96 40.96s17.066667 40.96 40.96 40.96h252.586667v252.586667c0 23.893333 17.066667 40.96 40.96 40.96s40.96-17.066667 40.96-40.96V112.64C989.866667 68.266667 955.733333 34.133333 911.36 34.133333zM368.64 907.946667H116.053333v-252.586667c0-23.893333-17.066667-40.96-40.96-40.96S34.133333 634.88 34.133333 655.36v256C34.133333 955.733333 68.266667 989.866667 112.64 989.866667h256c23.893333 0 40.96-17.066667 40.96-40.96s-20.48-40.96-40.96-40.96zM948.906667 617.813333c-23.893333 0-40.96 17.066667-40.96 40.96v252.586667h-252.586667c-23.893333 0-40.96 17.066667-40.96 40.96s17.066667 40.96 40.96 40.96h256c40.96 0 78.506667-34.133333 78.506667-78.506667v-256c0-23.893333-17.066667-40.96-40.96-40.96z" fill="#3366CC" ></path><path d="M416.426667 488.106667L307.2 344.746667c-13.653333-17.066667-34.133333-20.48-51.2-6.826667-17.066667 13.653333-20.48 34.133333-6.826667 51.2L337.92 512l-95.573333 126.293333c-13.653333 17.066667-10.24 37.546667 6.826666 51.2 6.826667 3.413333 13.653333 6.826667 20.48 6.826667 10.24 0 23.893333-6.826667 30.72-13.653333l112.64-146.773334c10.24-17.066667 10.24-34.133333 3.413334-47.786666z" fill="#F4A914" ></path><path d="M597.333333 488.106667L488.106667 341.333333c-13.653333-17.066667-34.133333-20.48-51.2-6.826666-17.066667 13.653333-20.48 34.133333-6.826667 51.2l92.16 122.88-95.573333 126.293333c-13.653333 17.066667-10.24 37.546667 6.826666 51.2 6.826667 3.413333 13.653333 6.826667 20.48 6.826667 10.24 0 23.893333-6.826667 30.72-13.653334l112.64-146.773333c10.24-13.653333 10.24-30.72 0-44.373333z" fill="#F4A914" ></path><path d="M778.24 488.106667L669.013333 341.333333c-13.653333-17.066667-34.133333-20.48-51.2-6.826666-17.066667 13.653333-20.48 34.133333-6.826666 51.2l92.16 122.88-95.573334 126.293333c-6.826667 6.826667-6.826667 17.066667-6.826666 27.306667 0 10.24 6.826667 17.066667 13.653333 23.893333 6.826667 3.413333 13.653333 6.826667 23.893333 6.826667 10.24 0 23.893333-6.826667 30.72-13.653334l112.64-146.773333c6.826667-13.653333 6.826667-30.72-3.413333-44.373333z" fill="#F4A914" ></path></symbol><symbol id="icon-gongzhuangmoju" viewBox="0 0 1024 1024"><path d="M192 170.666667A106.965333 106.965333 0 0 0 85.333333 277.333333V426.666667h256l42.666667 85.333333h256l42.666667-85.333333h256V277.333333A106.965333 106.965333 0 0 0 832 170.666667z" fill="#3B709C" ></path><path d="M384 512l-42.666667-85.333333h341.333334l-42.666667 85.333333z m-298.666667-85.333333V256a85.333333 85.333333 0 0 1 85.333334-85.333333h682.666666a85.333333 85.333333 0 0 1 85.333334 85.333333v170.666667zM853.333333 853.333333H170.666667a85.333333 85.333333 0 0 1-85.333334-85.333333v-256h213.333334l42.666666 85.333333h341.333334l42.666666-85.333333h213.333334v256a85.333333 85.333333 0 0 1-85.333334 85.333333z" fill="#2C6798" ></path></symbol><symbol id="icon-jiagongguochengxinxi" viewBox="0 0 1024 1024"><path d="M345.216 664.192a315.84 315.84 0 0 1 93.12-224.64 315.84 315.84 0 0 1 100.992-68.16 315.392 315.392 0 0 1 123.648-24.96 315.392 315.392 0 0 1 158.72 42.368v-264a24.768 24.768 0 0 0-24.768-24.768H559.296a32.64 32.64 0 0 1 0.704 6.976v133.184c0 19.2-15.616 34.816-34.816 34.816H395.072a34.816 34.816 0 0 1-34.752-34.816v-133.12a32.64 32.64 0 0 1 0.64-6.976H123.456a24.768 24.768 0 0 0-24.768 24.832v676.544c0 13.76 11.072 24.832 24.768 24.832h266.24a316.224 316.224 0 0 1-44.416-162.112zM662.976 406.4a257.792 257.792 0 1 0 0 515.52 257.792 257.792 0 0 0 0-515.52z m112.256 293.376a104.704 104.704 0 0 1-107.328 25.216l-68.48 68.48a46.528 46.528 0 0 1-65.728-65.664l68.48-68.48a104.512 104.512 0 0 1 140.8-129.28l-67.072 67.072 10.88 42.88 43.328 11.328 67.072-67.136c16.64 38.336 9.216 84.416-21.952 115.584z m-220.16 51.456a20.928 20.928 0 1 0 41.856 0 20.928 20.928 0 0 0-41.856 0z" ></path></symbol><symbol id="icon-pingtaiguanli" viewBox="0 0 1024 1024"><path d="M1024 806.4V25.6c0-12.8-12.8-25.6-25.6-25.6H25.6C12.8 0 0 12.8 0 25.6v780.8h435.2v166.4H236.8v51.2h556.8v-51.2H588.8v-166.4H1024zM320 281.6c-12.8-12.8-19.2-25.6-32-32l44.8-76.8c44.8 25.6 96 12.8 121.6-32 12.8-12.8 12.8-32 12.8-44.8h89.6c0 51.2 38.4 83.2 89.6 83.2 12.8 0 32-6.4 44.8-12.8l44.8 76.8c-44.8 25.6-57.6 76.8-32 115.2 12.8 12.8 19.2 25.6 32 32l-44.8 76.8c-44.8-19.2-96-6.4-121.6 38.4-12.8 12.8-12.8 25.6-12.8 44.8H467.2c0-44.8-38.4-83.2-89.6-83.2-12.8 0-32 6.4-44.8 12.8l-44.8-83.2c38.4-25.6 51.2-76.8 32-115.2zM102.4 704v-51.2h825.6v51.2H102.4zM512 416c51.2 0 96-38.4 96-89.6S569.6 236.8 512 236.8c-51.2 0-96 38.4-96 89.6 0 51.2 44.8 89.6 96 89.6z" ></path></symbol><symbol id="icon-zhucaidanguanli" viewBox="0 0 1169 1024"><path d="M787.333831 588.946093a75.189984 75.189984 0 0 0-75.093984 75.092984 75.189984 75.189984 0 0 0 75.093984 75.093984 75.165984 75.165984 0 0 0 75.067984-75.093984 75.165984 75.165984 0 0 0-75.067984-75.092984m0 222.841953a147.919968 147.919968 0 0 1-147.748968-147.748969c0-81.455982 66.291986-147.747968 147.748968-147.747968 81.431983 0 147.747968 66.291986 147.747968 147.747968 0 81.480982-66.315986 147.748968-147.747968 147.748969m89.452981 102.106978c0.342 0.244 1.317 0.585 2.315999 0.585h0.122l71.484985-39.496992c-1.706-4.022999-9.605998-23.478995-9.605998-43.739991a113.858976 113.858976 0 0 1 107.739977-113.613975c0.853-4.729999 5.557999-31.524993 5.557998-51.639989s-4.704999-46.88399-5.558998-51.637989a113.858976 113.858976 0 0 1-107.738977-113.565976c0-20.357996 7.923998-39.813991 9.605998-43.81299l-70.313985-39.057992-0.293-0.025a5.339999 5.339999 0 0 0-2.706 0.732 196.753958 196.753958 0 0 1-26.014994 21.819995c-21.698995 15.238997-42.153991 22.967995-60.951987 22.967995-18.919996 0-39.594991-7.874998-61.390987-23.405995a194.705958 194.705958 0 0 1-26.160994-22.283995 5.777999 5.777999 0 0 0-2.729999-0.707h-0.245l-72.824985 40.032992c1.706 4.046999 9.580998 23.479995 9.580998 43.73999A113.858976 113.858976 0 0 1 528.895886 614.350088c-0.854 4.729999-5.509999 31.524993-5.509998 51.638989s4.655999 46.90899 5.533998 51.662989a113.858976 113.858976 0 0 1 107.763977 113.589975c0 20.334996-7.972998 39.863991-9.679998 43.788991l68.973985 38.545992h0.146c1.024 0 1.95-0.365 2.317-0.585a200.849957 200.849957 0 0 1 26.428994-23.161995c22.088995-16.188997 43.079991-24.429995 62.414987-24.429995 19.552996 0 40.715991 8.387998 62.950986 24.917995 14.920997 11.068998 25.258995 22.185995 26.550995 23.575995m22.673995 108.397976c-13.774997-0.025-27.135994-5.704999-35.765993-15.213996-11.775997-12.896997-49.005989-46.44599-79.530982-46.44599-30.280993 0-68.119985 33.767993-78.993984 45.54399-8.606998 9.386998-21.869995 14.969997-35.498992 14.969997-6.484999 0-12.604997-1.243-18.187996-3.706l-0.975-0.414-92.69698-51.833988-0.926-0.683a44.46999 44.46999 0 0 1-14.920996-53.735989c0.049-0.146 8.532998-19.699996 8.532998-37.594992a98.376979 98.376979 0 0 0-98.254979-98.254978h-3.900999c-15.505997 0-28.159994-13.799997-32.182993-35.108993-0.341-1.706-7.923998-42.178991-7.923999-74.044984 0-31.913993 7.557998-72.361984 7.899999-74.117984 4.119999-21.576995 16.992996-35.449992 32.816993-35.083993h3.266999a98.400979 98.400979 0 0 0 98.279979-98.303978c0-17.846996-8.484998-37.399992-8.558998-37.619992a44.34899 44.34899 0 0 1 15.067996-53.661989l0.95-0.658 97.840979-53.759988 1.024-0.415c5.485999-2.364999 11.507998-3.534999 17.895996-3.534999 13.604997 0 26.891994 5.436999 35.595992 14.628997 11.580998 12.116997 48.17699 43.641991 77.774984 43.64199 29.354994 0 65.755986-30.914993 77.287983-42.812991 8.654998-8.996998 21.844995-14.335997 35.302992-14.335997 6.509999 0 12.653997 1.219 18.285997 3.657l0.974999 0.414 94.47698 52.516988 0.95 0.658c16.895996 11.751997 23.332995 34.889993 14.945997 53.735989-0.049 0.146-8.532998 19.699996-8.532999 37.545992a98.400979 98.400979 0 0 0 98.254979 98.279978h3.291c15.774997-0.341 28.719994 13.506997 32.816993 35.107993 0.317 1.707 7.899998 42.203991 7.899998 74.069984 0 31.889993-7.582998 72.410984-7.948998 74.117984-4.046999 21.551995-16.992996 35.424992-32.767993 35.059993h-3.291a98.400979 98.400979 0 0 0-98.254979 98.278978c0 17.846996 8.483998 37.449992 8.556999 37.619992a44.42199 44.42199 0 0 1-15.017997 53.710989l-0.927 0.683-96.133979 53.100988-0.975 0.415a44.88499 44.88499 0 0 1-17.846996 3.583999z m222.061952-705.339848a48.76199 48.76199 0 1 1-97.523979 0V121.977194c0-13.457997-10.873998-24.453995-24.307995-24.453995h-877.859811c-13.262997 0-24.306995 10.970998-24.306995 24.453995v584.995874c0 13.457997 10.873998 24.453995 24.307995 24.453995h219.500953a48.76199 48.76199 0 1 1 0 97.523979H48.907989A48.76199 48.76199 0 0 1 0 780.190052V48.76221C0 21.822215 21.893995 0.00022 48.907989 0.00022h1023.706781a48.76199 48.76199 0 0 1 48.907989 48.76199v268.189942zM219.427953 975.23701c0-26.940994 21.991995-48.76199 48.981989-48.761989h194.607959a48.76199 48.76199 0 1 1 0 97.523979H268.433942a48.76199 48.76199 0 0 1-49.005989-48.76199z" ></path></symbol><symbol id="icon-caidanguanli" viewBox="0 0 1024 1024"><path d="M414.2 78H158.6c-41.5 0-75.3 33.8-75.3 75.3v255.5c0 41.5 33.8 75.3 75.3 75.3h255.5c41.5 0 75.3-33.8 75.3-75.3V153.3c0-41.5-33.7-75.3-75.2-75.3z m5.2 330.8c0 2.9-2.4 5.3-5.3 5.3H158.6c-2.9 0-5.3-2.4-5.3-5.3V153.3c0-2.9 2.4-5.3 5.3-5.3h255.5c2.9 0 5.3 2.4 5.3 5.3v255.5zM414.2 544.8H158.6c-41.5 0-75.3 33.8-75.3 75.3v255.5c0 41.5 33.8 75.3 75.3 75.3h255.5c41.5 0 75.3-33.8 75.3-75.3V620.1c0-41.5-33.7-75.3-75.2-75.3z m5.2 330.8c0 2.9-2.4 5.3-5.3 5.3H158.6c-2.9 0-5.3-2.4-5.3-5.3V620.1c0-2.9 2.4-5.3 5.3-5.3h255.5c2.9 0 5.3 2.4 5.3 5.3v255.5zM908.8 119.3H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 343.8H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 568.3H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 792.8H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35z" ></path></symbol><symbol id="icon-jueseguanli" viewBox="0 0 1024 1024"><path d="M874.9 577.3c-26.1-27.2-56.8-48.9-90.3-64.1 5.4-4.6 10.6-9.6 15.5-14.8 32.3-34.7 50.1-79.8 50.1-127.2 0-102.9-83.7-186.7-186.7-186.7-11 0-21.8 0.9-32.5 2.8-7.1-9.6-14.9-18.7-23.4-27.2-44.6-44.6-103.9-69.2-167-69.2s-122.4 24.6-167 69.2-69.2 103.9-69.2 167 24.6 122.4 69.2 167c10.8 10.8 22.4 20.4 34.8 28.7-4.9 1.8-9.7 3.8-14.5 5.8-44.9 19-85.2 46.2-119.9 80.8-34.6 34.6-61.8 75-80.8 119.9-19.7 46.5-29.6 95.9-29.6 146.8 0 17.7 1.2 35.5 3.7 52.9l69.3-9.7c-2-14.2-3-28.7-3-43.1 0-169.4 137.8-307.1 307.1-307.1s307.1 137.8 307.1 307.1c0 14.4-1 28.9-3 43.1l69.3 9.7c2.4-17.4 3.7-35.2 3.7-52.9 0-50.9-10-100.3-29.6-146.8-19-44.9-46.2-85.2-80.8-119.9-34.6-34.6-74.9-61.8-119.9-80.8-4.8-2-9.7-4-14.6-5.8 12.3-8.4 24-18 34.8-28.7 44.6-44.6 69.2-103.9 69.2-167 0-25-3.9-49.4-11.3-72.6 63.4 1.1 114.7 53 114.7 116.6 0 45.5-26.6 85.6-65.3 104.7-16.3 8.1-26.8 24.4-26.8 42.6v1c0 21.2 14.1 40 34.6 45.5 94.9 25.8 163.8 112.4 163.8 215 0 10.5-0.7 21-2.2 31.3l69.3 9.7c1.9-13.5 2.9-27.3 2.9-41-0.1-75.8-29.1-147.8-81.7-202.6z m-434.3-84c-91.6 0-166.2-74.6-166.2-166.2S349 160.9 440.6 160.9s166.2 74.6 166.2 166.2-74.5 166.2-166.2 166.2z" ></path></symbol><symbol id="icon-zhiweiguanli" viewBox="0 0 1024 1024"><path d="M878.4 243.5h-91.2v-41.2c0-58.6-47.7-106.2-106.2-106.2H354.2c-58.6 0-106.2 47.7-106.2 106.2v41.2h-91.2c-43.2 0-78.4 35.1-78.4 78.4V856c0 43.2 35.1 78.4 78.4 78.4h721.5c43.2 0 78.4-35.1 78.4-78.4V321.8c0-43.2-35.1-78.3-78.3-78.3zM318 202.3c0-20 16.2-36.2 36.2-36.2H681c20 0 36.2 16.3 36.2 36.2v41.2H318v-41.2zM156.8 313.5h721.5c4.6 0 8.4 3.7 8.4 8.4V554H692.4c-14.8-45.3-57.4-78.2-107.6-78.2H450.4c-50.2 0-92.9 32.9-107.6 78.2H148.5V321.8c0-4.6 3.7-8.3 8.3-8.3zM628 588.9c0 23.8-19.4 43.2-43.2 43.2H450.4c-23.8 0-43.2-19.4-43.2-43.2 0-23.8 19.4-43.2 43.2-43.2h134.3c23.9 0 43.3 19.4 43.3 43.2z m250.4 275.5H156.8c-4.6 0-8.4-3.7-8.4-8.4V623.9h194.3c14.8 45.3 57.4 78.2 107.6 78.2h134.3c50.2 0 92.9-32.9 107.6-78.2h194.3V856c0.2 4.6-3.5 8.4-8.1 8.4z" ></path></symbol><symbol id="icon-bumenguanli" viewBox="0 0 1024 1024"><path d="M322.5 62h384.6v70H322.5z" ></path><path d="M870.2 62h-59.3v70h59.3c7.2 0 13 5.8 13 13v733.9c0 7.2-5.8 13-13 13h-720c-7.2 0-13-5.8-13-13V145c0-7.2 5.8-13 13-13h68.6V62h-68.6c-45.8 0-83 37.2-83 83v733.9c0 45.8 37.2 83 83 83h720c45.8 0 83-37.2 83-83V145c0-45.8-37.3-83-83-83z" ></path><path d="M295 806.2c-0.5-5.7-0.7-11.6-0.7-17.3 0-119 96.8-215.8 215.8-215.8S726 669.8 726 788.8c0 5.8-0.2 11.6-0.7 17.3l69.8 5.6c0.6-7.6 0.9-15.3 0.9-22.9 0-76.4-29.7-148.1-83.7-202.1-29.7-29.8-64.9-52.1-103.3-66.2 45.6-31.5 75.5-84.1 75.5-143.5 0-96.1-78.2-174.4-174.4-174.4-96.1 0-174.4 78.2-174.4 174.4 0 59.5 29.9 112 75.5 143.5C373 534.6 337.8 557 308 586.7c-54 54-83.7 125.8-83.7 202.1 0 7.6 0.3 15.3 0.9 22.9l69.8-5.5z m215.2-533.6c57.5 0 104.4 46.8 104.4 104.4 0 57.5-46.8 104.4-104.4 104.4-57.5 0-104.4-46.8-104.4-104.4 0-57.6 46.8-104.4 104.4-104.4z" ></path></symbol><symbol id="icon-gerenzhongxin" viewBox="0 0 1024 1024"><path d="M930.4 337.3c-22.7-53.7-55.2-101.9-96.6-143.3-41.4-41.4-89.6-73.9-143.3-96.6C634.9 73.9 575.9 62 515.1 62c-60.8 0-119.9 11.9-175.5 35.4-53.7 22.7-101.9 55.2-143.3 96.6-41.4 41.4-73.9 89.6-96.6 143.3-23.5 55.6-35.4 114.6-35.4 175.5 0 50.5 8.3 100.1 24.7 147.4l66.1-22.9c-13.8-39.9-20.8-81.8-20.8-124.5 0-209.9 170.8-380.7 380.7-380.7 209.9 0 380.8 170.8 380.8 380.7 0 41.6-6.7 82.5-19.8 121.5l66.3 22.3c15.6-46.2 23.5-94.7 23.5-143.9 0-60.8-11.9-119.8-35.4-175.4z" ></path><path d="M656.9 422.2c0-76.9-62.6-139.5-139.5-139.5s-139.5 62.6-139.5 139.5 62.6 139.5 139.5 139.5 139.5-62.6 139.5-139.5z m-209 0c0-38.3 31.2-69.5 69.5-69.5s69.5 31.2 69.5 69.5-31.2 69.5-69.5 69.5-69.5-31.2-69.5-69.5zM713.8 627.8c-62-27.2-128.1-40.9-196.4-40.9-69 0-135.7 14-198.2 41.7-60.4 26.7-114.1 64.9-159.5 113.3l-20.3 21.7 18.1 23.6c41.2 53.6 94.8 98 155 128.3 63.2 31.8 131.3 48 202.6 48 71.9 0 140.6-16.4 204.2-48.8 60.7-30.9 114.5-76 155.6-130.4l17.9-23.7-20.5-21.6c-45.3-47.6-98.6-85-158.5-111.2zM515.1 893.5c-109 0-210.3-45.3-282.5-125.4 77.7-71.9 177.7-111.2 284.8-111.2 105.8 0 204.9 38.4 282.2 108.8-72.2 81.6-174.3 127.8-284.5 127.8z" ></path></symbol><symbol id="icon-yonghuguanli" viewBox="0 0 1024 1024"><path d="M751.4 553.2c-42.5-38.5-92.1-67.1-145.5-84.6 53.2-38.9 87.8-101.8 87.8-172.7C693.7 178 597.7 82 479.8 82c-57.1 0-110.8 22.2-151.2 62.6C288.2 185 266 238.7 266 295.8s22.2 110.8 62.6 151.2c7.8 7.8 16.2 15 25 21.4-10.5 3.5-20.9 7.3-31.2 11.7-48.2 20.4-91.4 49.5-128.5 86.7s-66.3 80.4-86.7 128.5c-21.1 49.9-31.8 102.9-31.8 157.4 0 24.8 2.3 49.7 6.8 73.9l68.8-12.7c-3.7-20-5.6-40.6-5.6-61.2 0-184.4 150-334.4 334.4-334.4 83.2 0 163 30.8 224.5 86.6l47.1-51.7zM479.8 152c79.3 0 143.9 64.5 143.9 143.9s-64.5 143.9-143.9 143.9S336 375.2 336 295.9 400.5 152 479.8 152zM726.3 665.3h213.8v70H726.3zM503 831.6h437.1v70H503z" ></path></symbol><symbol id="icon-app" viewBox="0 0 1024 1024"><path d="M363.485867 865.117867h305.5616c21.6576 0 39.2192-17.194667 39.2192-38.4s-17.5616-38.4-39.2192-38.4H363.485867c-21.6576 0-39.2192 17.194667-39.2192 38.4s17.5616 38.4 39.2192 38.4z" fill="#A6ADB4" ></path><path d="M945.288533 699.835733a40.448 40.448 0 0 0-43.195733 43.1872v147.037867a46.865067 46.865067 0 0 1-45.960533 48.708267H166.766933a46.882133 46.882133 0 0 1-45.038933-48.708267v-147.029333a40.439467 40.439467 0 1 0-80.887467 0v147.029333a125.883733 125.883733 0 0 0 125.9264 128.657067h693.0432c70.203733-1.006933 126.4384-58.461867 125.9264-128.657067v-147.029333a40.430933 40.430933 0 0 0-40.448-43.195734zM40.840533 127.735467v147.959466a39.517867 39.517867 0 0 0 79.044267 0V127.735467a45.943467 45.943467 0 0 1 46.882133-47.786667h693.0432a46.882133 46.882133 0 0 1 45.960534 47.786667v147.959466a39.509333 39.509333 0 0 0 39.517866 39.509334 40.448 40.448 0 0 0 40.448-39.509334V127.735467C986.248533 58.052267 930.423467 1.024 860.7232 0H166.775467A125.934933 125.934933 0 0 0 40.840533 127.744z m168.4992 427.972266H326.229333L357.316267 640H418.133333L295.150933 315.733333h-52.701866L119.466667 640h60.817066l29.056-84.292267zM269.124267 392.533333L307.2 503.466667h-76.8l38.724267-110.933334z m231.552 131.959467h32.631466a123.246933 123.246933 0 0 0 88.192-28.535467c23.389867-19.959467 36.394667-49.134933 35.413334-79.488 1.6384-28.245333-9.838933-55.722667-31.249067-74.743466a127.573333 127.573333 0 0 0-84.0192-25.813334H443.733333V640h56.942934V524.4928zM503.466667 366.933333h32.136533c42.180267 0 61.602133 17.493333 61.602133 53.162667 1.092267 16.0256-4.8128 31.701333-16.068266 42.666667a71.364267 71.364267 0 0 1-51.5584 14.677333H503.466667V366.933333z m286.293333-51.0976H691.2V640h57.3184V524.4672h32.853333c31.837867 1.928533 63.189333-8.311467 87.381334-28.544 23.543467-19.959467 36.625067-49.152 35.643733-79.505067 1.536-28.100267-9.710933-55.441067-30.754133-74.752a131.84 131.84 0 0 0-83.882667-25.8304z m39.4752 147.131734a73.813333 73.813333 0 0 1-49.527467 14.72H750.933333V366.933333h32.119467c42.1632 0 61.576533 17.527467 61.576533 53.2736 1.262933 15.957333-4.394667 31.650133-15.394133 42.752z" fill="#A6ADB4" ></path></symbol><symbol id="icon-yepian" viewBox="0 0 1024 1024"><path d="M807.936 99.328c-17.408 0-32.256 9.216-40.448 23.552h-348.16L284.672 355.84l35.84 35.84 126.976-219.648h321.536c8.192 12.8 22.528 20.992 38.912 20.992 25.6 0 46.592-20.992 46.592-46.592s-20.992-47.104-46.592-47.104z" ></path><path d="M301.056 50.688c-8.704 14.848-7.68 32.768 0 46.592L127.488 399.36l134.656 232.448 48.64-13.312L183.808 399.36l160.256-279.04c15.36-1.024 29.696-9.216 37.888-23.04 12.8-22.528 5.12-50.688-17.408-63.488s-50.688-5.632-63.488 16.896z" ></path><path d="M15.872 467.456c8.704 14.848 24.064 23.552 40.448 23.552L228.352 793.6l268.8 1.536 13.312-48.64-253.44-1.536-159.232-279.552c6.656-13.312 7.168-30.208-1.024-44.032-12.8-22.528-40.96-30.208-63.488-17.408-22.528 12.8-30.208 40.96-17.408 63.488z" ></path><path d="M216.064 924.672c17.408 0 32.256-9.216 40.448-23.552h348.16l134.144-232.448-35.84-35.84-126.976 219.648H254.976c-8.192-12.8-22.528-20.992-38.912-20.992-25.6 0-46.592 20.992-46.592 46.592s20.992 46.592 46.592 46.592z" ></path><path d="M722.944 973.312c8.704-14.848 7.68-32.768 0-46.592l173.568-302.08-134.656-232.448-48.64 13.312 127.488 219.136-160.256 279.04c-15.36 1.024-29.696 9.216-37.888 23.04-12.8 22.528-5.12 50.688 17.408 63.488 22.016 13.312 50.176 5.632 62.976-16.896z" ></path><path d="M1008.128 556.544c-8.704-14.848-24.064-23.552-40.448-23.552L795.648 230.4l-268.8-1.536-13.312 48.64 253.44 1.536 159.232 279.552c-6.656 13.312-7.168 30.208 1.024 44.032 12.8 22.528 40.96 30.208 63.488 17.408 22.528-12.8 30.208-40.96 17.408-63.488zM512 391.168C445.44 391.168 391.168 445.44 391.168 512S445.44 632.832 512 632.832s120.832-54.272 120.832-120.832S578.56 391.168 512 391.168z m0 196.096c-41.472 0-75.264-33.792-75.264-75.264s33.792-75.264 75.264-75.264 75.264 33.792 75.264 75.264-33.792 75.264-75.264 75.264z" ></path></symbol><symbol id="icon-left-circle-fill" viewBox="0 0 1024 1024"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m104 316.9c0 10.2-4.9 19.9-13.2 25.9L457.4 512l145.4 105.2c8.3 6 13.2 15.6 13.2 25.9V690c0 6.5-7.4 10.3-12.7 6.5l-246-178c-4.4-3.2-4.4-9.7 0-12.9l246-178c5.3-3.8 12.7-0.1 12.7 6.5v46.8z" ></path></symbol><symbol id="icon-right-circle-fill" viewBox="0 0 1024 1024"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m154.7 454.5l-246 178c-5.3 3.8-12.7 0-12.7-6.5v-46.9c0-10.2 4.9-19.9 13.2-25.9L566.6 512 421.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.8 0 13z" ></path></symbol><symbol id="icon-xitongguanli" viewBox="0 0 1026 1024"><path d="M400.896 67.072H140.8c-24.064 0-46.592 11.264-59.392 29.696-9.216 12.8-14.848 27.648-14.848 44.544v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24V141.312c0.512-40.96-33.28-74.24-73.728-74.24z m0 361.984v9.216-9.216z m335.872 83.456c18.432 0 35.328-7.168 48.128-20.48L939.008 337.92c12.8-12.8 20.48-29.696 20.48-48.128s-7.168-35.328-20.48-48.128l-154.112-155.648c-26.112-26.112-70.656-26.112-96.256 0l-154.112 154.112c-12.8 12.8-20.48 29.696-20.48 48.128 0 18.432 7.168 35.328 20.48 48.128l154.112 154.112c12.8 14.336 29.184 22.016 48.128 22.016z m0-369.152l146.432 146.432-146.432 146.432-144.896-146.432L736.768 143.36z m-335.872 406.016H140.8c-40.96 0-74.24 33.28-74.24 74.24v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24v-259.584c0.512-40.448-33.28-74.24-73.728-74.24z m0 352.768v18.432-18.432z m484.352-352.768h-259.584c-40.96 0-74.24 33.28-74.24 74.24v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24v-259.584c0-40.448-33.792-74.24-74.24-74.24z" ></path></symbol><symbol id="icon-gongjianku" viewBox="0 0 1024 1024"><path d="M798.72 320v446.976H223.232V320H63.488v532.48c0 41.472 33.792 75.264 75.264 75.264h745.472c41.472 0 75.264-33.792 75.264-75.264v-532.48H798.72z" ></path><path d="M608.256 494.592z m-10.24-4.608z" ></path><path d="M819.2 96.256H203.776c-41.472 0-75.264 33.792-75.264 75.264V286.72h128v448h510.464V286.72h128V171.008c-0.512-41.472-34.304-74.752-75.776-74.752z m-154.112 493.056l-12.8 12.8c-12.8 12.8-33.28 12.8-46.08 0L477.184 473.088c-33.792 11.776-72.704 4.608-99.328-22.528-27.136-27.136-34.304-66.048-22.528-99.84l38.4 38.4c12.8 12.8 33.28 12.8 46.08 0l12.8-12.8c12.8-12.8 12.8-33.28 0-46.08L414.208 291.84c33.792-11.776 72.704-4.096 99.84 22.528 27.136 27.136 34.304 66.048 22.528 99.84l128.512 128.512c12.288 13.312 12.288 33.792 0 46.592z" ></path></symbol><symbol id="icon-fangfaku" viewBox="0 0 1024 1024"><path d="M256 170.496v170.496h512V170.496h85.504c23.552 0 42.496 18.944 42.496 42.496V896c0 23.552-18.944 42.496-42.496 42.496H170.496c-23.552 0-42.496-18.944-42.496-42.496V212.992c0-23.552 18.944-42.496 42.496-42.496H256z m256 513.024H256v83.456h256v-83.456zM768 491.52H256v83.456h512V491.52zM341.504 85.504h341.504V256H341.504V85.504z" ></path></symbol><symbol id="icon-shebeiku" viewBox="0 0 1024 1024"><path d="M960 491.52v380.416c0 26.112-23.04 47.616-52.224 47.616H116.224c-29.184 0-52.224-21.504-52.224-47.616V491.52c0-26.112 23.04-47.616 52.224-47.616h791.552c28.672 0 52.224 21.504 52.224 47.616z m-149.504 156.16H213.504V783.36h596.992v-135.68z m149.504-500.736v186.88c0 23.04-20.992 42.496-46.592 42.496H110.592c-25.6 0-46.592-18.944-46.592-42.496V146.944c0-23.04 20.992-42.496 46.592-42.496h802.304c26.112 0 47.104 18.944 47.104 42.496z m-671.744 25.6c-41.472 0-74.752 30.208-74.752 68.096s33.792 68.096 74.752 68.096S363.008 278.528 363.008 240.64s-33.792-68.096-74.752-68.096z m224.256 0c-41.472 0-74.752 30.208-74.752 68.096s33.792 68.096 74.752 68.096 74.752-30.208 74.752-68.096-33.792-68.096-74.752-68.096z" ></path></symbol><symbol id="icon-wenjian" viewBox="0 0 1024 1024"><path d="M273.54647 325.996013h476.395357c19.444708-2.046811 36.842605 11.769166 39.40112 30.702171 2.046811 19.444708-11.769166 36.330903-31.213874 38.377714-2.558514 0.511703-5.117029 0.511703-7.675543 0H273.54647c-10.234057-0.511703-19.956411-4.605326-26.608548-11.257463-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737 0.511703-19.956411 17.397897-35.307497 37.866011-34.284091v1.023406z m0 209.286467h476.395357c19.444708-2.046811 36.842605 11.769166 39.40112 30.702171 2.046811 19.444708-11.769166 36.330903-31.213874 38.377714-2.558514 0.511703-5.117029 0.511703-7.675543 0H273.54647c-9.722354 0-19.444708-3.58192-26.608548-10.234057-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737 0.511703-19.444708 17.397897-35.307497 37.354308-34.284091z m0 185.748136h324.931312c19.444708 0 35.307497 15.862788 35.307497 34.795794 0 19.444708-15.862788 34.795794-35.307497 34.795794H273.54647c-9.722354-0.511703-19.444708-4.093623-26.608548-10.74576-6.652137-6.140434-10.74576-14.839383-10.74576-24.050034 0.511703-19.444708 17.397897-35.307497 37.354308-34.795794zM135.898402 0.041294h96.71184c17.397897-0.511703 33.772388 8.187246 43.494742 22.514926l53.217097 82.38416c4.605326 7.16384 12.792571 11.769166 20.979817 11.257462h322.884501c8.698949 0 16.886194-4.093623 21.49152-11.257462l53.217097-82.38416c9.722354-14.32768 26.096846-23.026628 43.494742-22.514926h97.223543c53.7288-1.535109 98.246948 39.912823 100.293759 93.12992v837.657572c-2.046811 52.705394-46.56496 94.153325-100.293759 93.12992h-752.203196c-53.7288 1.535109-98.758651-39.912823-100.293759-92.618217V93.171214C37.139751 39.954117 82.169603-1.493814 135.898402 0.041294z m82.895863 70.103291H135.898402c-6.652137 0-13.304274 2.558514-18.421303 6.652138-4.605326 4.093623-7.16384 10.234057-7.16384 16.374491v837.657572c0.511703 13.304274 11.769166 23.538331 25.07344 23.026629h752.203196c6.652137 0 13.304274-2.558514 18.421303-6.652138 4.605326-4.093623 7.16384-10.234057 7.16384-16.374491V93.171214c0.511703-6.140434-2.046811-12.280868-7.16384-16.374491-5.117029-4.605326-11.257463-6.652137-18.421303-6.652138h-82.895862l-46.053257 70.614994c-18.933006 28.65536-51.681988 45.541554-86.477783 45.029851H350.813601c-34.795794 0.511703-67.544777-16.374491-86.477782-45.029851l-45.541554-70.614994zM399.425372 0.041294h225.149256c19.956411-0.511703 36.842605 15.351086 37.866011 34.795795-0.511703 19.956411-17.397897 35.307497-37.866011 34.795794H399.425372c-10.234057-0.511703-19.956411-4.093623-27.120251-10.74576-6.652137-6.140434-10.74576-15.351086-10.234057-24.050034C362.582767 15.39238 378.957258-0.470408 399.425372 0.041294z" ></path></symbol><symbol id="icon-bianjimoban" viewBox="0 0 1025 1024"><path d="M127.110228 701.648461q0 26.438928 18.812314 45.251241t46.268123 18.812314l253.203575 0 0 128.12711-318.284012 0q-26.438928 0-49.82721-9.660377t-40.675273-26.947368-26.947368-40.675273-9.660377-50.844091l0-637.584906q0-26.438928 9.660377-49.82721t26.947368-40.675273 40.675273-27.455809 49.82721-10.168818l766.728898 0q26.438928 0 49.82721 10.168818t40.675273 27.455809 27.455809 40.675273 10.168818 49.82721l0 187.106256-128.12711 1.016882q-2.033764-25.422046-19.829196-43.217478t-44.234359-17.795432l-637.584906 0q-27.455809 0-46.268123 18.812314t-18.812314 45.251241l0 382.347567zM1016.881827 501.322741q6.101291 9.151936 7.626614 23.388282t-10.677259 28.472691q-11.1857 14.236346-18.303873 21.354518l-8.135055 8.135055-105.75571-95.586892q5.084409-6.101291 14.236346-14.744786t14.236346-13.727905q14.236346-14.236346 30.506455-12.711023t27.455809 6.609732q12.202582 5.084409 26.438928 18.812314t22.3714 29.998014zM613.179742 789.100298q3.050645-3.050645 14.236346-16.270109t27.96425-32.540218 37.116187-42.200596 40.675273-46.268123q48.810328-54.911619 108.806356-122.025819l107.789474 95.586892q-59.996028 68.131082-108.806356 123.042701-20.337637 23.388282-40.675273 46.268123t-37.116187 41.183714-27.455809 29.998014-12.711023 13.727905q-9.151936 12.202582-25.422046 20.337637-7.118173 5.084409-21.354518 11.1857t-29.998014 12.202582-29.489573 10.677259-20.846077 5.59285q-26.438928 5.084409-23.388282-22.3714 1.016882-7.118173 4.067527-21.862959t6.609732-30.506455 7.118173-28.981132 5.59285-18.303873q5.084409-13.219464 17.286991-28.472691z" ></path></symbol><symbol id="icon-shanchu1" viewBox="0 0 1024 1024"><path d="M78.768011 168.230165c0-30.999918 24.230644-56.076722 54.15419-56.076722L403.692131 112.153443 403.692131 56.076722c0-30.999918 24.230644-56.076722 54.15419-56.076722l108.306335 0c29.923546 0 54.155214 25.076803 54.155214 56.076722l0 56.077745 270.768906 0c29.923546 0 54.15419 25.076803 54.15419 56.076722l0 56.076722L78.768011 224.307909 78.768011 168.230165zM891.076776 336.461352l0 112.153443 0 519.30746c0 30.923181-24.231667 56.077745-54.153167 56.077745L187.076392 1024c-29.923546 0-54.15419-25.154564-54.15419-56.077745L132.922201 448.614796 132.922201 336.461352l0-56.077745 758.154574 0L891.076776 336.461352zM349.53794 448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523 0-54.153167 25.153541-54.153167 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.153167 56.077745 29.923546 0 54.15419-25.154564 54.15419-56.077745L349.53794 448.614796zM566.153679 448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523 0-54.153167 25.153541-54.153167 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.153167 56.077745 29.923546 0 54.15419-25.154564 54.15419-56.077745L566.153679 448.614796zM782.770441 448.614796c0-30.923181-24.231667-56.076722-54.155214-56.076722s-54.15419 25.153541-54.15419 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.15419 56.077745s54.155214-25.154564 54.155214-56.077745L782.770441 448.614796z" ></path></symbol><symbol id="icon-edit" viewBox="0 0 1024 1024"><path d="M923.9 335.8c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.8-35.2-174.3-35.2S392.2 74.1 337 97.5c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3C75.3 391 63.5 449.7 63.5 510.1c0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c35.9-15.2 69.3-34.8 99.8-58.5l-0.1-0.1c9.1-7.4 14.8-18.6 14.8-31.2 0-22.3-18-40.3-40.3-40.3-9.2 0-17.7 3.1-24.5 8.3l-0.2-0.3c-62 47.9-139.7 76.4-223.9 76.4-202.3 0-366.9-164.6-366.9-366.9s164.7-366.9 367-366.9 366.9 164.6 366.9 366.9c0 66.2-17.6 128.3-48.4 182l0.4 0.2c-4.4 6.5-7 14.2-7 22.6 0 22.3 18 40.3 40.3 40.3 16 0 29.8-9.3 36.3-22.8l0.2 0.1c8.9-15.5 16.8-31.5 23.8-48.1 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.7-119.1-35.1-174.3z" ></path><path d="M693.7 626.5H507.6l-57.1 66.1h243.2zM663.2 411.4c7.5-7.6 7.5-23.5 0-31.3l-45.4-46.8c-7.7-7.6-22.9-7.6-30.4 0l-45.7 46.8 76.1 78.1 45.4-46.8zM328.8 614.5v78.1h76.1l197.5-218.7-76-77.9z" ></path></symbol><symbol id="icon-new" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M695.7 469.2h-139v-139c0-23.6-19.3-43-43-43-23.6 0-43 19.3-43 43v139h-139c-23.6 0-43 19.3-43 43s19.3 43 43 43h139v139c0 23.7 19.3 43 43 43 23.6 0 43-19.3 43-43v-139h139c23.6 0 43-19.3 43-43s-19.4-43-43-43z" ></path></symbol><symbol id="icon-biaoqianye1" viewBox="0 0 1024 1024"><path d="M345.557333 128l110.677334 168.405333H938.666667V896H85.333333V128h260.224zM299.52 213.333333H170.666667v597.333334h682.666666V381.738667H410.197333L299.52 213.333333z" fill="#222222" ></path><path d="M597.333333 136.533333c0-4.693333 3.541333-8.533333 7.893334-8.533333h325.546666c4.352 0 7.893333 3.84 7.893334 8.533333v68.266667c0 4.693333-3.541333 8.533333-7.893334 8.533333h-325.546666C600.874667 213.333333 597.333333 209.493333 597.333333 204.8V136.533333z" fill="#222222" ></path></symbol><symbol id="icon-biaoqianye" viewBox="0 0 1024 1024"><path d="M376.6 494.8c5.1 4.8 7.9 11.7 7.6 18.7 0.4 7.1-2.5 14-7.6 18.7-5.3 4.7-12.3 7.2-19.3 6.9h-69.6v235.1c0.2 7.4-2.9 14.4-8.4 19.1-5.5 5.4-12.9 8.3-20.5 8.1-7.6 0.3-15.1-2.7-20.5-8.1-5.3-4.9-8.2-11.9-8.1-19.1v-235H161c-7.2 0.3-14.2-2.3-19.3-7.3-5.2-4.8-8-11.7-7.6-18.7-0.3-7 2.5-13.7 7.6-18.3 5.3-4.8 12.2-7.3 19.3-7h198.4c6.3 0 12.4 2.5 17.2 6.9z m215.7 70.1c5.2 5.1 8 12.2 7.7 19.6v189.9c0.3 7.2-2.5 14.2-7.7 19.1-4.8 5.3-11.7 8.3-18.9 8.1-7.1 0.1-13.9-2.7-18.9-7.7-4.8-5.2-7.6-12-7.6-19.1-18 19.5-42.9 30.8-69.2 31.4-19.7 0.3-38.9-5.3-55.5-15.9-17.2-10.7-31.2-26.1-40.3-44.4-19.3-40.4-19.3-87.6 0-128 8.9-18.4 22.9-33.8 40.3-44.4 16-10.5 34.8-16.1 53.9-15.9 26.3-0.1 51.8 9.8 71.2 27.7-0.2-7.3 2.6-14.4 7.7-19.6 10.6-10.2 27.2-10.2 37.8 0l-0.5-0.8z m-61.2 168.7c24.1-31.6 24.1-75.6 0-107.2-11.5-14.3-28.9-22.3-47.1-21.6-17.9-0.5-35.1 7.4-46.3 21.6-12.1 15-18.5 34-18.1 53.4-0.6 19.5 5.7 38.6 17.7 53.8 11.6 13.9 28.8 21.7 46.7 21.2 18.1 0.4 35.3-7.4 47.1-21.2zM835.4 573c17.1 10.7 31 25.9 40.3 44 9.9 19.8 14.9 41.8 14.5 64 0.4 22.3-4.6 44.4-14.5 64.4-9 18.3-23 33.7-40.3 44.4-16 10.6-34.8 16.1-53.9 15.9-13.9 0.2-27.7-2.9-40.3-9-11.6-5-22.1-12.2-31-21.2v2.8c0.2 7.2-2.5 14.2-7.5 19.4-5 5.1-11.9 8-19.1 7.9-7.1 0.3-14-2.5-18.9-7.7-5.2-5.1-8-12.2-7.6-19.6V497.2c-0.2-7.3 2.5-14.4 7.6-19.6 10.6-10.3 27.2-10.3 37.8 0 5.1 5.2 7.9 12.2 7.6 19.6v93.3c8-9.8 18-17.7 29.4-23.2 12.4-6.8 26.2-10.3 40.3-10.2 19.7-0.2 39 5.3 55.6 15.9z m-15.7 163c12.2-15.1 18.6-34.3 18.1-53.8 0.6-19.4-5.7-38.3-17.7-53.4-12-13.4-29-21.1-46.9-21.1s-34.9 7.7-46.9 21.1c-24.1 31.6-24.1 75.6 0 107.2 11.6 14.1 29 22.1 47.1 21.6 18.3-0.2 35.4-9.1 46.3-24v2.4zM708.1 253.5c-15.5 0-28-12.5-28-28V113.4c-0.1-8 0-15.9 0-23.8V77.9c0-15.5 12.5-28 28-28H886c17 0 32.9 6.6 45 18.6 11.3 11.3 17.8 26 18.6 41.8 0.1 0.7 0.1 1.4 0.1 2.1v113.2c0 15.5-12.5 28-28 28H708.1z m28-56h157.4v-84.1c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.4-2.2-5.4-2.2H736.1v91.7zM371.9 254.6c-15.5 0-28-12.5-28-28V78.9c0-15.4 12.5-27.9 27.9-28l213.4-1.1h0.1c17 0 32.9 6.6 45 18.6 12 12.1 18.6 28 18.6 45v113.2c0 15.5-12.5 28-28 28h-249z m28-56.1h193v-85.2c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.3-2.2-5.3-2.2l-185.5 0.9v91.9z" fill="#595959" ></path><path d="M72.4 974.2c-17.3 0-33.5-6.7-45.7-18.7-12.2-12.1-18.9-28.1-18.9-45.1V113.6c0-35.2 29-63.8 64.6-63.8h169c17.3 0 33.5 6.6 45.7 18.7 12.2 12 18.9 28.1 18.9 45.1V283c0 2 0.8 3.9 2.3 5.4 1.5 1.4 3.4 2.2 5.4 2.2h637.9c17.3 0 33.5 6.6 45.7 18.7 12.2 12 18.9 28 18.9 45.1v556c0 17.1-6.7 33.1-18.9 45.1s-28.4 18.7-45.7 18.7H72.4z m7.7-860.6c-4.3 0-7.7 3.4-7.7 7.6v788.7c0 2 0.8 4 2.3 5.4 1.4 1.4 3.4 2.2 5.4 2.2h871.5c2.1 0 4-0.8 5.4-2.2 1.5-1.4 2.3-3.3 2.3-5.4V350.6c0-2-0.8-3.9-2.2-5.3-1.5-1.5-3.4-2.3-5.4-2.3h-638c-17.3 0-33.5-6.7-45.7-18.7-12.2-12-18.9-28.1-18.9-45.1V121.1c0-2-0.8-3.9-2.3-5.4-1.4-1.4-3.4-2.2-5.4-2.2H80.1z" fill="#595959" ></path></symbol><symbol id="icon-buzhou" viewBox="0 0 1024 1024"><path d="M488.106667 792.462222h257.137777a28.444444 28.444444 0 0 0 28.444445-28.444444 28.444444 28.444444 0 0 0-28.444445-28.444445H488.106667a28.444444 28.444444 0 0 0-28.444445 28.444445 28.444444 28.444444 0 0 0 28.444445 28.444444zM242.346667 764.017778A80.782222 80.782222 0 1 0 341.333333 686.08v-96.142222a80.213333 80.213333 0 0 0 0-155.875556V337.92a80.782222 80.782222 0 1 0-39.822222 0v96.142222a80.213333 80.213333 0 0 0 0 155.875556v96.142222a80.782222 80.782222 0 0 0-59.164444 77.937778zM284.444444 259.982222a40.96 40.96 0 0 1 81.92 0 40.391111 40.391111 0 0 1-40.391111 40.96 40.391111 40.391111 0 0 1-41.528889-40.96zM284.444444 512a40.96 40.96 0 1 1 40.96 40.96A40.96 40.96 0 0 1 284.444444 512z m40.391112 211.057778a40.391111 40.391111 0 0 1 40.391111 40.96 40.96 40.96 0 0 1-81.92 0 40.391111 40.391111 0 0 1 39.253333-40.96zM488.106667 540.444444h257.137777a28.444444 28.444444 0 1 0 0-56.888888H488.106667a28.444444 28.444444 0 1 0 0 56.888888zM488.106667 288.426667h257.137777a28.444444 28.444444 0 0 0 28.444445-28.444445 28.444444 28.444444 0 0 0-28.444445-28.444444H488.106667a28.444444 28.444444 0 0 0-28.444445 28.444444 28.444444 28.444444 0 0 0 28.444445 28.444445z" fill="#151515" ></path><path d="M859.022222 79.644444H164.977778a22.755556 22.755556 0 0 0-22.755556 22.755556v819.2a22.755556 22.755556 0 0 0 22.755556 22.755556h694.044444a22.755556 22.755556 0 0 0 22.755556-22.755556V102.4a22.755556 22.755556 0 0 0-22.755556-22.755556z m-22.755555 819.2H187.733333V125.155556h648.533334z" fill="#151515" ></path></symbol><symbol id="icon-ok" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M715.6 371.6c-15.7-15.7-41.4-15.7-57 0l-196 196-95.9-95.9c-15.7-15.7-41.4-15.7-57 0-15.7 15.7-15.7 41.4 0 57l124.5 124.5c15.7 15.7 41.4 15.7 57 0l224.5-224.5c15.6-15.7 15.6-41.4-0.1-57.1z" ></path></symbol><symbol id="icon-cancel" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M697.9 329.1c-15.6-15.6-41-15.6-56.6 0L513 457.4 384.7 329.1c-15.6-15.6-41-15.6-56.6 0-15.6 15.6-15.6 41 0 56.6L456.4 514 328.1 642.3c-15.6 15.6-15.6 41 0 56.6 15.6 15.6 41 15.6 56.6 0L513 570.6l128.3 128.3c15.6 15.6 41 15.6 56.6 0 15.6-15.6 15.6-41 0-56.6L569.6 514l128.3-128.3c15.6-15.6 15.6-41.1 0-56.6z" ></path></symbol><symbol id="icon-savebaocun" viewBox="0 0 1024 1024"><path d="M778.7 97.2H247.3C165 97.2 98 164.3 98 246.7v532.2c0 82.4 67 149.4 149.3 149.4h531.5c82.3 0 149.3-67 149.3-149.4V246.7C928 164.3 861 97.2 778.7 97.2z m-452.2 79.9h373.1v83.7H331.9c-2.9 0-5.5-2.6-5.5-5.5v-78.2z m373 671.3h-373v-225h373.1v225z m148.7-69.6c0 38.1-30.8 69.2-68.8 69.5V612.9c0-38.3-31.1-69.4-69.3-69.4H316c-38.2 0-69.3 31.1-69.3 69.4v235.4c-38-0.3-68.8-31.4-68.8-69.5V246.7c0-38.1 30.8-69.2 68.8-69.5v78.2c0 47.1 38.3 85.4 85.3 85.4h378c38.2 0 69.3-31.1 69.3-69.4v-94.2c38 0.3 68.8 31.4 68.8 69.5v532.1z" ></path></symbol><symbol id="icon-shijianxian2" viewBox="0 0 1024 1024"><path d="M171.52 924.16v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z m0-322.56v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z m0-394.24v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z" ></path><path d="M350.72 350.72c0 79.36-64 143.36-143.36 143.36s-143.36-64-143.36-143.36 64-143.36 143.36-143.36 143.36 64 143.36 143.36z m-143.36-71.68c-39.424 0-71.68 32.256-71.68 71.68s32.256 71.68 71.68 71.68 71.68-32.256 71.68-71.68-32.256-71.68-71.68-71.68z m143.36 430.08c0 79.36-64 143.36-143.36 143.36s-143.36-64-143.36-143.36 64-143.36 143.36-143.36 143.36 64 143.36 143.36z m-143.36-71.68c-39.424 0-71.68 32.256-71.68 71.68s32.256 71.68 71.68 71.68 71.68-32.256 71.68-71.68-32.256-71.68-71.68-71.68z m716.8-286.72h-501.76c-19.968 0-35.84-15.872-35.84-35.84s15.872-35.84 35.84-35.84h501.76c19.968 0 35.84 15.872 35.84 35.84s-15.872 35.84-35.84 35.84z m-284.672 107.52H420.352c-18.432 0-33.792-15.36-33.792-33.792v-4.096c0-18.432 15.36-33.792 33.792-33.792h219.136c18.432 0 33.792 15.36 33.792 33.792v4.096c0 18.432-15.36 33.792-33.792 33.792z m284.672 250.88h-501.76c-19.968 0-35.84-15.872-35.84-35.84s15.872-35.84 35.84-35.84h501.76c19.968 0 35.84 15.872 35.84 35.84s-15.872 35.84-35.84 35.84z m-284.672 107.52H420.352c-18.432 0-33.792-15.36-33.792-33.792v-4.096c0-18.432 15.36-33.792 33.792-33.792h219.136c18.432 0 33.792 15.36 33.792 33.792v4.096c0 18.432-15.36 33.792-33.792 33.792z" ></path></symbol><symbol id="icon-buzhoutiao" viewBox="0 0 1024 1024"><path d="M0 0h1024v1024H0z" fill="#FFFFFF" fill-opacity="0" ></path><path d="M204 372c66.31 0 121.852 46.1 136.326 108h137.53c12.901-33.907 45.71-58 84.144-58 38.435 0 71.243 24.093 84.145 58h139.71c12.902-33.907 45.71-58 84.145-58 49.706 0 90 40.294 90 90s-40.294 90-90 90c-38.434 0-71.242-24.092-84.144-57.998H646.144C633.242 577.908 600.434 602 562 602c-38.434 0-71.242-24.092-84.144-57.998h-137.53C325.852 605.9 270.309 652 204 652c-77.32 0-140-62.68-140-140s62.68-140 140-140z m0 64c-41.974 0-76 34.026-76 76s34.026 76 76 76 76-34.026 76-76-34.026-76-76-76z m358 50c-14.36 0-26 11.64-26 26s11.64 26 26 26 26-11.64 26-26-11.64-26-26-26z m308 0c-14.36 0-26 11.64-26 26s11.64 26 26 26 26-11.64 26-26-11.64-26-26-26z" fill="#666666" ></path></symbol><symbol id="icon-m-qianming" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M573.44 646.656l-3.072 6.144c-8.192 12.288-14.336 25.088-19.456 38.912-6.656 18.944-3.072 36.352 16.896 43.008 34.816 11.264 72.704 9.216 106.496-4.608 9.216-3.072 11.264-4.096 34.304-12.8 16.384-6.656 33.792-12.8 51.2-17.408 1.024 0 2.048-0.512 3.072-1.024 10.24-2.048 6.656-5.632 16.896 1.024 3.584 3.072 8.704 4.096 13.312 3.072 4.608-1.024 5.632-3.072 8.192-7.68 5.632-8.192 3.584-19.456-4.608-25.088-18.944-12.8-22.528-10.24-41.472-6.144-1.536 0.512-3.072 0.512-4.096 1.024-18.944 5.12-37.376 11.264-55.808 18.432-22.016 8.704-24.064 9.728-32.768 12.288-24.576 10.24-52.224 12.8-78.336 6.144 4.608-11.264 10.24-22.016 16.896-32.256 1.536-2.048 2.56-4.096 3.584-6.144 8.704-13.824 15.36-29.184 18.432-45.056 4.096-19.456-7.68-38.4-27.136-42.496-0.512 0-1.536-0.512-2.048-0.512-27.648-6.656-59.392 3.072-148.992 37.888-81.92 32.256-117.76 41.984-129.024 35.84-4.096-2.56-8.704-3.072-13.312-1.536-9.728 2.56-15.36 12.8-12.8 22.016 1.024 4.608 4.096 8.192 8.192 10.752 23.04 8.704 48.64 7.68 71.168-2.048 29.696-9.216 59.392-19.456 88.064-32.256 77.824-30.72 111.104-40.448 126.976-36.352 3.072 1.024 3.072 0 2.56 3.072-2.56 12.288-7.168 23.552-13.312 33.792zM665.088 235.52c-19.456-17.92-49.664-17.408-68.608 1.024L312.32 519.68c-2.048 2.048-3.584 4.608-4.608 7.68l-22.528 80.896c-2.56 9.728 3.072 19.456 12.8 21.504 3.584 1.024 7.68 0.512 11.264-0.512l71.168-29.696c5.632-2.56 10.752-5.632 15.36-10.24l283.648-269.824 2.56-2.56c18.432-19.456 17.92-50.176-2.048-68.608l-1.024-1.024-13.824-11.776z" ></path></symbol><symbol id="icon-touxiang_avatar" viewBox="0 0 1024 1024"><path d="M925.866667 797.866667c-12.8-25.6-34.133333-46.933333-64-64-29.866667-21.333333-68.266667-34.133333-119.466667-42.666667-4.266667 0-29.866667-4.266667-59.733333-12.8-21.333333-4.266667-34.133333-8.533333-38.4-12.8v-17.066667c4.266667-51.2 29.866667-76.8 55.466666-106.666666 8.533333-8.533333 17.066667-21.333333 25.6-29.866667 29.866667-42.666667 34.133333-89.6 34.133334-98.133333 0-8.533333 0-17.066667-4.266667-21.333334-4.266667-8.533333-8.533333-12.8-12.8-21.333333 0-12.8 4.266667-21.333333 4.266667-29.866667 0-21.333333 4.266667-55.466667-4.266667-89.6 0-8.533333-4.266667-12.8-4.266667-21.333333-8.533333-25.6-17.066667-46.933333-34.133333-68.266667-4.266667-12.8-64-72.533333-234.666667-85.333333H401.066667c-4.266667 0-17.066667 0-25.6 4.266667-21.333333 4.266667-38.4 21.333333-42.666667 42.666666v21.333334c-8.533333 8.533333-55.466667 51.2-55.466667 102.4-4.266667 34.133333-4.266667 85.333333 0 123.733333-8.533333 8.533333-17.066667 21.333333-12.8 42.666667 0 12.8 4.266667 55.466667 34.133334 98.133333 8.533333 8.533333 17.066667 17.066667 25.6 29.866667 25.6 29.866667 51.2 55.466667 55.466666 106.666666v17.066667c-4.266667 4.266667-17.066667 8.533333-38.4 12.8-29.866667 8.533333-59.733333 12.8-64 12.8-46.933333 8.533333-85.333333 21.333333-115.2 42.666667-25.6 17.066667-46.933333 38.4-64 64-25.6 38.4-25.6 76.8-25.6 85.333333v21.333333c0 25.6 21.333333 46.933333 46.933334 46.933334H896c25.6 0 46.933333-21.333333 46.933333-46.933334v-17.066666c8.533333-12.8 8.533333-51.2-17.066666-89.6z m-546.133334-128c0 4.266667 0 4.266667 0 0v4.266666c-4.266667 0-4.266667 0 0-4.266666z m503.466667 213.333333l-742.4 4.266667v-4.266667s0-25.6 12.8-51.2c8.533333-17.066667 25.6-29.866667 42.666667-42.666667 25.6-17.066667 55.466667-25.6 89.6-34.133333 4.266667 0 34.133333-4.266667 68.266666-12.8 51.2-12.8 76.8-29.866667 85.333334-46.933333 0-4.266667 0-4.266667 4.266666-8.533334v-42.666666c-8.533333-72.533333-42.666667-115.2-72.533333-145.066667-8.533333-8.533333-12.8-17.066667-21.333333-21.333333-21.333333-29.866667-21.333333-59.733333-21.333334-64l4.266667-4.266667 8.533333-8.533333c4.266667-17.066667 0-25.6 0-29.866667-4.266667-34.133333-4.266667-81.066667 0-119.466667 0-29.866667 29.866667-55.466667 29.866667-55.466666 8.533333-4.266667 17.066667-12.8 21.333333-21.333334 0-4.266667 4.266667-4.266667 4.266667-8.533333v-25.6H465.066667c140.8 8.533333 192 59.733333 192 59.733333 8.533333 12.8 17.066667 25.6 21.333333 42.666667 4.266667 4.266667 4.266667 8.533333 4.266667 12.8 4.266667 29.866667 4.266667 55.466667 4.266666 76.8 0 12.8 0 21.333333-4.266666 38.4 0 12.8 0 25.6 8.533333 29.866667l4.266667 4.266666 4.266666 4.266667s0 34.133333-21.333333 64c-4.266667 8.533333-12.8 12.8-21.333333 21.333333-29.866667 29.866667-64 72.533333-72.533334 145.066667v42.666667c0 4.266667 0 4.266667 4.266667 8.533333 8.533333 21.333333 34.133333 34.133333 85.333333 46.933333 34.133333 8.533333 64 12.8 68.266667 12.8 38.4 8.533333 68.266667 17.066667 93.866667 34.133334 17.066667 12.8 34.133333 25.6 42.666666 42.666666 8.533333 25.6 8.533333 51.2 4.266667 55.466667z" ></path></symbol><symbol id="icon-m-mianban" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M884.15744 348.01152v49.152h-745.984v-49.152z" ></path><path d="M356.43392 846.99136h-49.152v-450.048h49.152z" ></path></symbol><symbol id="icon-m-xialakuang" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M510.464 639.488l207.872-254.976H302.08z" ></path></symbol><symbol id="icon-m-biaodan" viewBox="0 0 1024 1024"><path d="M122.88 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384H122.88c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H137.216c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M244.224 279.04h142.848v49.152H244.224zM244.224 425.472h142.848v49.152H244.224zM436.736 279.04h342.528v49.152H436.736zM436.736 425.472h342.528v49.152H436.736zM244.224 572.416h142.848v49.152H244.224zM436.736 572.416h342.528v172.544H436.736z" ></path></symbol><symbol id="icon-m-biaoge" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M249.344 347.648h49.152v499.2h-49.152zM584.704 347.648h49.152v499.2h-49.152zM137.728 165.888h746.496v181.76H137.728z" ></path><path d="M137.728 481.792h746.496v49.152H137.728zM137.728 664.576h746.496v49.152H137.728z" ></path></symbol><symbol id="icon-dashboard-o" viewBox="0 0 1024 1024"><path d="M880 622c17.673 0 32 14.327 32 32v226c0 17.673-14.327 32-32 32H582c-17.673 0-32-14.327-32-32V654c0-17.673 14.327-32 32-32h298zM442 476c17.673 0 32 14.327 32 32v372c0 17.673-14.327 32-32 32H144c-17.673 0-32-14.327-32-32V508c0-17.673 14.327-32 32-32h298z m406 210H614v162h234V686zM410 540H176v308h234V540z m470-428c17.673 0 32 14.327 32 32v372c0 17.673-14.327 32-32 32H582c-17.673 0-32-14.327-32-32V144c0-17.673 14.327-32 32-32h298z m-32 64H614v308h234V176z m-406-64c17.673 0 32 14.327 32 32v226c0 17.673-14.327 32-32 32H144c-17.673 0-32-14.327-32-32V144c0-17.673 14.327-32 32-32h298z m-32 64H176v162h234V176z" fill="#000000" fill-opacity=".65" ></path></symbol><symbol id="icon-line-layoutmasonryfensanbuju" viewBox="0 0 1024 1024"><path d="M896 128H128c-25.6 0-42.666667 17.066667-42.666667 42.666667v682.666666c0 25.6 17.066667 42.666667 42.666667 42.666667h768c25.6 0 42.666667-17.066667 42.666667-42.666667V170.666667c0-25.6-17.066667-42.666667-42.666667-42.666667zM170.666667 213.333333h298.666666v341.333334H170.666667V213.333333z m0 597.333334v-170.666667h298.666666v170.666667H170.666667z m682.666666 0h-298.666666v-341.333334h298.666666v341.333334z m0-426.666667h-298.666666V213.333333h298.666666v170.666667z" fill="#09121F" ></path></symbol><symbol id="icon-zidingyibuju" viewBox="0 0 1024 1024"><path d="M0 0v256h1024V0z m960 192H64V64h896zM0 1024h512V320H0z m64-640h384v576H64zM576 576h448v-256H576z m64-192h320v128H640zM576 1024h448V640H576z m64-320h320v256H640z" fill="#575869" ></path></symbol><symbol id="icon-daochu" viewBox="0 0 1024 1024"><path d="M394.6 689.8c-13.2 3.2-27.4-9.5-31.7-23.2-8.4-28.5-12.7-58.6-12.7-88.1 0-159.4 151.5-325.1 314.1-352.1v-5.3c0-1.6 0-3.7 0.5-5.3l0.5-2.1c1.6-11.6 5.8-38.5 32.2-55.4 10.6-6.9 22.2-10 34.3-10 14.8 0 26.9 5.3 34.3 9.5 1.6 0.5 2.6 1.6 4.2 2.6L929.2 286c17.4 13.2 28 34.8 28 57 0 22.7-10.6 44.3-28.5 57.5L770.5 525.7c-11.6 9-25.3 13.7-39.1 13.7-12.1 0-23.8-3.7-34.8-10.6-21.1-13.7-31.7-34.8-31.7-64.4v-1.1C559.3 475 442.2 569 416.3 657.6c-4.8 14.3-13.7 32.2-21.7 32.2z m335.7-466.6V256c0 17.4-13.7 31.7-31.1 32.7-125.6 6.9-257.6 131.4-279.7 254.4C486 458.7 595.2 390 699.7 397.4c17.4 1.1 30.6 15.3 30.6 32.7V465c0 4.7 0.5 6.9 0.5 7.9l157.3-124.6c2.1-1.6 2.6-3.2 2.6-5.3 0-2.1-1.1-4.2-2.6-5.3L731.9 214.3c-1.1 1.6-1.6 5.8-2.1 8.4l0.5 0.5z m0 0" ></path><path d="M715.6 916.3H188.3c-67 0-121.9-54.9-121.9-121.9v-568c0-67 54.9-121.9 121.9-121.9h436.5v69.7H188.3c-28.5 0-52.3 23.2-52.3 52.3V795c0 28.5 23.2 52.3 52.3 52.3h527.3c28.5 0 52.3-23.2 52.3-52.3V593.2H837v201.6c0 66.6-54.4 121.5-121.4 121.5z m0 0" ></path><path d="M183 566.9h112.4V626H183v-59.1z m0 154.1h296.1v59.1H183V721z m0-425.4h237v59.1H183v-59.1z m0 140.9h112.4v59.1H183v-59.1z m0 0" ></path></symbol><symbol id="icon-daoru" viewBox="0 0 1024 1024"><path d="M111.6 148.8c7.9 0 16.9 17.9 21.6 32.2 25.9 88.7 143 182.6 248.6 194.2v-1.1c0-29.6 10.6-50.7 31.7-64.4 11.1-6.9 22.7-10.6 34.8-10.6 13.7 0 27.4 4.8 39.1 13.7L645.8 438c17.9 13.2 28.5 34.8 28.5 57.5 0 22.2-10.6 43.8-28 57L487.4 678.2c-1.6 1.1-2.6 2.1-4.2 2.6-7.4 4.2-19.5 9.5-34.3 9.5-12.1 0-23.7-3.2-34.3-10-26.4-16.9-30.6-43.8-32.2-55.4l-0.5-2.1c-0.5-1.6-0.5-3.7-0.5-5.3v-5.3c-162.6-26.9-314.1-192.6-314.1-352 0-29.6 4.2-59.6 12.7-88.1 4.2-13.8 18.4-26.5 31.6-23.3z m335.2 467.1c0.5 2.6 1.1 6.9 2.1 8.4l156.2-123.5c1.6-1.1 2.6-3.2 2.6-5.3 0-2.1-0.5-3.7-2.6-5.3L447.8 365.7c0 1.1-0.5 3.2-0.5 7.9v34.8c0 17.4-13.2 31.7-30.6 32.7-104.5 7.4-213.8-61.2-280.3-145.7 22.2 123 154.1 247.5 279.7 254.4 17.4 1.1 31.1 15.3 31.1 32.7v32.7l-0.4 0.7z m0.5-0.5" ></path><path d="M309 916.3c-67 0-121.4-54.9-121.4-121.4V593.2h69.1v201.6c0 29 23.8 52.3 52.3 52.3h527.3c29 0 52.3-23.8 52.3-52.3V226.4c0-29-23.8-52.3-52.3-52.3H399.8v-69.7h436.5c67 0 121.9 54.9 121.9 121.9v567.9c0 67-54.9 121.9-121.9 121.9H309v0.2z m0 0" ></path><path d="M841.6 626H729.1v-59.1h112.4V626z m0 154.1H545.5V721h296.1v59.1z m0-425.4h-237v-59.1h237v59.1z m0 140.9H729.1v-59.1h112.4v59.1z m0-59.1" ></path></symbol><symbol id="icon-a-juxing1851" viewBox="0 0 1024 1024"><path d="M0 0h438.857143v1024H0V0z m512 0h512v438.857143H512V0z m0 512h219.428571v219.428571H512V512z m292.571429 0h219.428571v219.428571h-219.428571V512z m-292.571429 292.571429h73.142857v73.142857H512v-73.142857z m146.285714 0h73.142857v73.142857H658.285714v-73.142857z m-146.285714 146.285714h73.142857v73.142857H512v-73.142857z m146.285714 0h73.142857v73.142857H658.285714v-73.142857z m146.285715 0h73.142857v73.142857h-73.142857v-73.142857z m146.285714 0h73.142857v73.142857h-73.142857v-73.142857z m-146.285714-146.285714h73.142857v73.142857h-73.142857v-73.142857z m146.285714 0h73.142857v73.142857h-73.142857v-73.142857z" ></path></symbol><symbol id="icon-sxsz" viewBox="0 0 1024 1024"><path d="M304.5 152.6h415L927 512 719.5 871.4h-415L97 512z" fill="#386BF3" ></path><path d="M512 512m-145.25 0a145.25 145.25 0 1 0 290.5 0 145.25 145.25 0 1 0-290.5 0Z" fill="#3D4265" ></path></symbol><symbol id="icon-mx" viewBox="0 0 1024 1024"><path d="M511.9 325.12v248.55L727.15 449.4l-0.01-248.55z" fill="#C3D2FB" ></path><path d="M296.65 200.85L511.9 325.12v248.56L296.65 449.4z" fill="#3D4265" ></path><path d="M511.9 325.12l215.25-124.27L511.9 76.57 296.65 200.85z" fill="#386BF3" ></path><path d="M296.62 698.02v248.55L511.87 822.3l-0.01-248.56z" fill="#C3D2FB" ></path><path d="M81.37 573.74l215.25 124.28v248.55L81.37 822.3z" fill="#3D4265" ></path><path d="M296.62 698.02l215.25-124.28-215.25-124.27L81.37 573.74z" fill="#386BF3" ></path><path d="M727.03 698.02v248.55L942.28 822.3l-0.01-248.56z" fill="#C3D2FB" ></path><path d="M511.78 573.74l215.25 124.28v248.55L511.78 822.3z" fill="#3D4265" ></path><path d="M727.03 698.02l215.25-124.28-215.25-124.27-215.25 124.27z" fill="#386BF3" ></path></symbol><symbol id="icon-al" viewBox="0 0 1024 1024"><path d="M192 132h440v640H192z" fill="#386BF3" ></path><path d="M632 260h200v512H632z" fill="#C3D2FB" ></path><path d="M398.86 612L512 725.14 625.14 612H912v280H112V612z" fill="#3D4265" ></path></symbol><symbol id="icon-sf" viewBox="0 0 1024 1024"><path d="M511.82 512.5v435L888.54 730l-0.02-435z" fill="#C3D2FB" ></path><path d="M135.1 295l376.72 217.5v435L135.1 730z" fill="#3D4265" ></path><path d="M511.82 512.5L888.54 295 511.82 77.5 135.1 295z" fill="#386BF3" ></path></symbol><symbol id="icon-moxing" viewBox="0 0 1061 1024"><path d="M447.122 467.332L49.24 268.162A33.501 33.501 0 0 0 0.136 300.745v441.02a33.042 33.042 0 0 0 16.062 27.994l396.965 248.275a33.96 33.96 0 0 0 17.438 5.507 33.042 33.042 0 0 0 33.043-33.042V497.162a33.042 33.042 0 0 0-16.522-29.83z m598.889-203.76a33.042 33.042 0 0 0-31.666 0l-463.507 203.76a33.042 33.042 0 0 0-19.733 30.289v493.337a33.042 33.042 0 0 0 49.563 28.453l463.048-265.255a33.042 33.042 0 0 0 16.521-28.453V291.566a33.042 33.042 0 0 0-14.226-27.994z m-54.611-84.9a33.042 33.042 0 0 0-22.487-29.83L550.838 1.53a32.583 32.583 0 0 0-19.733 0L83.659 158.021a33.042 33.042 0 0 0-4.13 61.036l397.882 199.17a33.501 33.501 0 0 0 14.685 3.213 33.96 33.96 0 0 0 13.31 0L969.37 215.845a33.042 33.042 0 0 0 22.029-37.173z" fill="#5E5C5C" ></path></symbol><symbol id="icon-yanzhengyanzhengma" viewBox="0 0 1024 1024"><path d="M943.1 172c-2.4-0.2-245.1-25.3-413.8-147.8-5.1-3.7-11-5.6-17.3-5.6-6.2 0-12.2 1.9-17.3 5.6C326.9 146 83.3 171.8 80.9 172c-15.2 1.4-26.6 14.1-26.6 29.3 0 6.7 0.6 165.8 54.8 344.4 32.1 105.8 76.4 196.4 131.9 269.2 70.3 92.3 158.5 156 262 189.2 2.9 0.9 5.9 1.4 9 1.4s6.1-0.5 8.9-1.4c103.6-33.2 191.7-96.8 262-189.2 55.4-72.7 99.8-163.2 131.9-269.2 54.1-178.6 54.8-337.7 54.8-344.4C969.7 186.1 958.3 173.5 943.1 172zM910.1 227.2l-0.1 1.6c-2.9 58.1-13.4 174.4-51.4 299.9-66.7 220.1-183.1 360.1-346 416.1L512 945l-0.6-0.2C349 888.9 232.7 749.4 165.8 530.1c-39.8-130.5-49.4-254.2-51.8-301.4l-0.1-1.6 1.5-0.2c70.6-10.3 250.5-44.8 395.5-142.4l0.9-0.7 1 0.7C658 182.1 837.9 216.6 908.5 227L910.1 227.2z" ></path><path d="M641.8 351 467 580.3l-89-76.1c-5.3-4.5-12.1-7-19.1-7-8.6 0-16.8 3.7-22.4 10.3-10.5 12.3-9.1 31 3.3 41.5l112.7 96.4c5.2 4.4 12.4 7 19.6 7 0.9 0 1.8 0 2.7-0.1 8-0.8 15.4-5 20.3-11.4l193.7-254c4.8-6.3 6.8-14 5.7-21.8-1-7.8-5.1-14.7-11.3-19.5C670.1 335.6 651.6 338.1 641.8 351z" ></path></symbol><symbol id="icon-verify" viewBox="0 0 1024 1024"><path d="M713.856 93.44c44.672 9.344 79.36 15.488 105.024 18.944a332.8 332.8 0 0 0 28.864 3.008A110.08 110.08 0 0 1 944 223.36v348.672c0 71.232-36.288 168.32-80.704 219.328a737.216 737.216 0 0 1-100.672 106.496C683.264 966.208 599.232 1008 512 1008s-171.328-41.792-250.624-110.144c-26.88-23.168-51.2-47.808-72.832-72.512a409.152 409.152 0 0 1-24.768-30.208c-47.68-52.928-83.776-150.4-83.776-223.104V223.36c0-54.72 42.752-102.528 99.264-108.096 5.76-0.32 17.536-1.408 34.432-3.648a953.6 953.6 0 0 0 95.168-17.92c19.392-4.608 34.944-12.16 65.92-30.4l9.984-5.888C434.048 28.416 466.432 16 512 16c39.296 0 68.288 11.84 127.488 43.968l2.304 1.28c38.784 21.056 55.296 28.672 72.064 32.192z m-19.712 93.952c-29.376-6.144-50.688-16-98.176-41.856l-2.304-1.216C549.312 120.32 529.088 112 512 112c-24.192 0-42.88 7.168-78.656 28.16-4.736 2.88-4.736 2.88-9.728 5.76-38.784 22.912-61.12 33.664-92.48 41.216-37.76 8.96-72.96 15.36-104.768 19.648a556.8 556.8 0 0 1-39.68 4.16c-5.12 0.512-10.688 6.784-10.688 12.416v348.672c0 49.344 27.52 123.84 62.08 162.56a642.176 642.176 0 0 0 85.952 90.56c63.552 54.72 128.192 86.848 187.968 86.848 59.776 0 124.416-32.128 187.968-86.848a642.176 642.176 0 0 0 88.32-93.632c31.808-36.608 59.712-111.36 59.712-159.488V223.36c0-5.44-5.888-12.032-6.656-12.288-20.288-0.448-66.112-6.72-147.2-23.68zM400.128 488.704L487.68 576.256l185.088-185.088a48 48 0 0 1 67.84 67.84L521.6 678.144a48 48 0 0 1-67.84 0l-121.6-121.536a48 48 0 1 1 67.968-67.84z" fill="#768893" ></path></symbol><symbol id="icon-preview" viewBox="0 0 1024 1024"><path d="M854.36155804 32.02835121a114.60838884 114.60838884 0 0 1 114.21544637 105.17775738l0.39294247 9.43063278v170.60277392a49.1178817 49.1178817 0 0 1-97.77732893 6.68003145l-0.45843311-6.68003145V146.63674137a16.37262679 16.37262679 0 0 0-12.63966726-15.9796843l-3.73295954-0.39294246H130.1675186a16.37262679 16.37262679 0 0 0-15.91419368 12.57417659l-0.45843312 3.79845017v732.18388095a16.37262679 16.37262679 0 0 0 12.63966859 15.91419369l3.73295821 0.4584331h275.4530781a49.1178817 49.1178817 0 0 1 6.68003143 97.77732894l-6.68003143 0.4584331H130.1675186a114.60838884 114.60838884 0 0 1-114.21544639-105.24324667l-0.39294246-9.36514216V146.63674137a114.60838884 114.60838884 0 0 1 105.24324669-114.28093698l9.36514216-0.32745318h724.19403944z m-286.32450218 495.1082417a235.76582919 235.76582919 0 0 1 358.88798459 303.35203402l80.61881587 80.55332523a39.29430509 39.29430509 0 0 1-55.53595059 55.66693187l-80.61881589-80.61881587a235.83131983 235.83131983 0 0 1-303.35203398-358.88798459z m277.87622625 55.60144257a157.17721902 157.17721902 0 1 0-222.27478502 222.2747837 157.17721902 157.17721902 0 0 0 222.27478502-222.2747837z m-450.70567639-33.26917864a42.56883017 42.56883017 0 1 1 0 85.13766035H210.39339064a42.56883017 42.56883017 0 1 1 0-85.13766035h184.81421508z m0-158.68350096a42.56883017 42.56883017 0 1 1 0 85.13766036H210.39339064a42.56883017 42.56883017 0 1 1 0-85.13766036h184.81421508z m233.67013285-158.68350095a42.56883017 42.56883017 0 1 1 0 85.13766036h-418.48434793a42.56883017 42.56883017 0 1 1 0-85.13766036h418.48434793z" fill="#7f7f7f" ></path></symbol><symbol id="icon-yunshangchuan-xian" viewBox="0 0 1039 1024"><path d="M711.40656 345.248C667.88656 248.448 594.91056 208 481.83856 208c-118.848 0-219.328 96.512-256.736 267.76l-4.96 22.752-23.2 2.256c-83.744 8.192-120.176 54.176-131.36 144.4C54.30256 736.528 103.18256 816 193.85456 816h190.672a32 32 0 1 1 0 64H193.83856C58.68656 880-13.44144 762.72 2.07856 637.296 15.61456 528 65.80656 458.416 167.75856 440.224 215.27856 254.704 335.99856 144 481.83856 144c143.072 0 241.184 58.72 294.24 189.808 3.328-0.176 6.576-0.272 9.76-0.272 125.184 0 223.68 93.696 239.84 252.768 0.896 8.96 1.36 17.952 1.36 26.96C1027.03856 760.576 907.61456 880 760.30256 880h-120.064a32 32 0 1 1 0-64h120.064c111.968 0 202.72-90.768 202.72-202.736 0-6.848-0.32-13.68-1.024-20.48-12.912-127.088-84.544-195.248-176.16-195.248-23.136 0-55.68 7.232-96.928 22.032a32 32 0 1 1-21.616-60.224c15.584-5.6 30.288-10.304 44.112-14.08zM544.23856 598.512V848a32 32 0 0 1-64 0V598.512l-39.712 46.32a32 32 0 1 1-48.592-41.664l95.632-111.552a32.032 32.032 0 0 1 49.344 0l95.616 111.552a32 32 0 0 1-48.592 41.664l-39.696-46.32z" ></path></symbol><symbol id="icon-yulan" viewBox="0 0 1024 1024"><path d="M897.28 85.333333h-750.933333c-28.16 0-51.2 23.04-51.2 51.2v750.933334c0 28.16 23.04 51.2 51.2 51.2h276.906666c18.773333 0 34.133333-15.36 34.133334-34.133334s-15.36-34.133333-34.133334-34.133333H163.413333V153.6h716.8v275.626667c0 18.773333 15.36 34.133333 34.133334 34.133333s34.133333-15.36 34.133333-34.133333V136.533333c0-28.16-22.613333-51.2-51.2-51.2z" fill="#4C4C4C" ></path><path d="M649.813333 315.733333h-324.266666c-18.773333 0-34.133333-15.36-34.133334-34.133333s15.36-34.133333 34.133334-34.133333h324.266666c18.773333 0 34.133333 15.36 34.133334 34.133333s-14.933333 34.133333-34.133334 34.133333zM564.48 452.266667h-238.933333c-18.773333 0-34.133333-15.36-34.133334-34.133334s15.36-34.133333 34.133334-34.133333h238.933333c18.773333 0 34.133333 15.36 34.133333 34.133333s-14.933333 34.133333-34.133333 34.133334zM479.146667 588.8h-153.6c-18.773333 0-34.133333-15.36-34.133334-34.133333s15.36-34.133333 34.133334-34.133334h153.6c18.773333 0 34.133333 15.36 34.133333 34.133334s-14.933333 34.133333-34.133333 34.133333zM724.48 544c-94.293333 0-170.666667 76.373333-170.666667 170.666667s76.373333 170.666667 170.666667 170.666666 170.666667-76.373333 170.666667-170.666666-76.373333-170.666667-170.666667-170.666667z m0 273.066667c-56.32 0-102.4-46.08-102.4-102.4s46.08-102.4 102.4-102.4 102.4 46.08 102.4 102.4-45.653333 102.4-102.4 102.4z" fill="#4C4C4C" ></path><path d="M938.666667 928.853333c-13.226667 13.226667-34.986667 13.226667-48.213334 0l-72.533333-72.533333c-13.226667-13.226667-13.226667-34.986667 0-48.213333 13.226667-13.226667 34.986667-13.226667 48.213333 0l72.533334 72.533333c13.226667 13.226667 13.226667 34.56 0 48.213333z" fill="#4C4C4C" ></path></symbol><symbol id="icon-sousuo" viewBox="0 0 1024 1024"><path d="M1004.8 915.2l-243.2-243.2c0 0-6.4-6.4-6.4-6.4C800 595.2 832 505.6 832 416 832 185.6 646.4 0 416 0S0 185.6 0 416 185.6 832 416 832c89.6 0 179.2-32 243.2-83.2 0 6.4 6.4 6.4 6.4 6.4l243.2 243.2c25.6 25.6 70.4 25.6 96 6.4C1030.4 979.2 1030.4 940.8 1004.8 915.2zM64 416C64 224 224 64 416 64S768 224 768 416 608 768 416 768 64 608 64 416z" fill="#231815" ></path></symbol><symbol id="icon-ziliucheng" viewBox="0 0 1024 1024"><path d="M212.992 526.336 212.992 526.336 212.992 526.336 215.04 526.336 212.992 526.336Z" ></path><path d="M813.056 768l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912l0-38.912-18.432 0c-53.248 0-96.256-43.008-96.256-96.256L659.456 614.4l-96.256 0 0 192.512c0 20.48-16.384 38.912-38.912 38.912L120.832 845.824c-20.48 0-38.912-16.384-38.912-38.912L81.92 401.408c0-20.48 16.384-38.912 38.912-38.912l192.512 0L313.344 190.464 120.832 190.464C98.304 190.464 81.92 174.08 81.92 151.552L81.92 112.64c0-20.48 16.384-38.912 38.912-38.912l788.48 0c20.48 0 38.912 16.384 38.912 38.912l0 38.912c0 20.48-16.384 38.912-38.912 38.912L331.776 190.464l0 174.08 192.512 0c20.48 0 38.912 16.384 38.912 38.912L563.2 593.92l96.256 0 0-153.6c0-53.248 43.008-96.256 96.256-96.256l18.432 0 0-38.912c0-20.48 16.384-38.912 38.912-38.912l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912l0-38.912-18.432 0c-43.008 0-77.824 34.816-77.824 77.824L677.888 593.92l96.256 0 0-38.912c0-20.48 16.384-38.912 38.912-38.912l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912L774.144 614.4l-96.256 0 0 153.6c0 43.008 34.816 77.824 77.824 77.824l18.432 0 0-38.912C774.144 784.384 792.576 768 813.056 768z" ></path></symbol><symbol id="icon-danyuange" viewBox="0 0 1024 1024"><path d="M467.970999 661.248453h-184.831769a70.655912 70.655912 0 0 0-54.527932 25.599968A82.431897 82.431897 0 0 0 204.803328 744.19235v196.607754A82.687897 82.687897 0 0 0 228.611298 998.400032a71.423911 71.423911 0 0 0 54.527932 25.599968h184.831769a73.727908 73.727908 0 0 0 55.039931-25.599968 81.919898 81.919898 0 0 0 23.551971-58.623927v-195.583755a81.919898 81.919898 0 0 0-23.551971-58.367927 72.959909 72.959909 0 0 0-55.039931-25.599968z m5.887993-84.991893A118.015852 118.015852 0 0 0 512.002944 549.376593 127.99984 127.99984 0 0 0 545.538902 460.800704V126.465122A133.119834 133.119834 0 0 0 537.602912 76.801184a123.391846 123.391846 0 0 0-25.599968-40.447949 118.015852 118.015852 0 0 0-37.119954-25.599968A104.703869 104.703869 0 0 0 428.547048 0.00128H116.995438A105.471868 105.471868 0 0 0 71.683494 9.985268a121.087849 121.087849 0 0 0-37.119953 25.599968A127.99984 127.99984 0 0 0 9.219572 76.801184 133.119834 133.119834 0 0 0 0.003584 126.465122V460.800704a127.99984 127.99984 0 0 0 34.559957 88.31989 121.087849 121.087849 0 0 0 37.119953 27.135966 105.471868 105.471868 0 0 0 45.311944 9.983987h311.55161a106.239867 106.239867 0 0 0 45.311944-9.983987z m527.35934-329.215589a71.67991 71.67991 0 0 0-54.783931-25.599968h-184.575769a72.959909 72.959909 0 0 0-55.295931 25.599968 81.919898 81.919898 0 0 0-23.551971 58.367927v195.583756a83.199896 83.199896 0 0 0 23.551971 59.647925 73.983908 73.983908 0 0 0 55.295931 25.599968H947.2024a72.447909 72.447909 0 0 0 54.783932-25.599968 84.991894 84.991894 0 0 0 22.015972-59.647925v-195.583756a82.943896 82.943896 0 0 0-22.783972-58.367927zM947.2024 661.248453h-185.343768a72.959909 72.959909 0 0 0-55.295931 25.599968 81.919898 81.919898 0 0 0-23.551971 58.367927v196.607755A81.919898 81.919898 0 0 0 706.562701 998.400032a73.983908 73.983908 0 0 0 55.295931 25.599968H947.2024a72.447909 72.447909 0 0 0 54.783932-25.599968 83.455896 83.455896 0 0 0 22.015972-57.599928v-196.607754a83.199896 83.199896 0 0 0-22.783972-58.367927 71.67991 71.67991 0 0 0-54.783931-25.599968z m0 0" ></path></symbol><symbol id="icon-rengongzhineng_filledbeifen" viewBox="0 0 1024 1024"><path d="M913.678222 374.556444c0-175.431111-160.782222-317.653333-359.139555-317.653333a382.577778 382.577778 0 0 0-254.663111 93.767111 270.108444 270.108444 0 0 0-91.335112 118.840889 318.350222 318.350222 0 0 0-20.849777 98.773333c-0.597333 38.840889 18.389333 76.871111 1.664 114.688-11.633778 26.453333-41.870222 48.824889-61.312 69.916445 0 0-54.442667 36.224 49.436444 41.173333 2.929778 0.142222 16.071111 62.222222 19.342222 76.430222a16.753778 16.753778 0 0 0-3.271111 10.752c0 11.904 15.004444 21.617778 33.450667 21.617778h11.278222c-24.362667 3.313778-41.955556 12.8-41.955555 26.026667 0 9.102222 11.562667 21.105778 28.842666 28.302222 0 0-21.333333 66.744889 10.296889 81.962667a36.977778 36.977778 0 0 0 21.333333 1.564444c44.856889 2.446222 125.155556-0.739556 169.784889-0.739555 0-0.810667 23.466667 127.146667 23.466667 127.146666h403.299556c0 0.64-38.769778-289.265778-38.769778-289.265777 70.968889-101.632 95.544889-192.611556 96.881778-268.643556 1.422222-11.491556 2.161778-23.068444 2.176-34.659556h0.042666zM701.155556 320.711111a72.632889 72.632889 0 0 1-65.706667-42.055111l-54.471111 31.544889a108.344889 108.344889 0 0 1-7.509334 107.975111l102.172445 59.192889a36.508444 36.508444 0 1 1-10.894222 25.984 35.555556 35.555556 0 0 1 2.019555-10.026667L561.777778 432.512a109.511111 109.511111 0 1 1 10.168889-138.154667l57.728-33.422222a72.718222 72.718222 0 1 1 71.466666 59.733333v0.042667z" fill="#323233" ></path></symbol><symbol id="icon-fuhao-huizhi" viewBox="0 0 1024 1024"><path d="M254.4 82.624L82.624 254.4a60.704 60.704 0 0 0 0 85.92L254.4 512l128.8-128.8-42.88-42.88-85.92 85.888-42.88-42.88 85.888-85.92-42.88-42.88-85.92 85.888-42.88-42.88 171.776-171.84 171.584 171.616L512 254.4l-171.776-171.84a60.576 60.576 0 0 0-85.76 0z m644.096 644.064l-171.808 171.808-42.88-42.912 85.888-85.888-42.88-42.88-85.92 85.856-42.88-42.88 85.888-85.888-42.912-42.912L512 769.6l171.776 171.776a60.704 60.704 0 0 0 85.92 0l171.776-171.776a60.704 60.704 0 0 0 0-85.92L769.6 512l-42.912 42.88 171.808 171.808zM680.8 211.328l131.968 131.872-43.968 44L636.8 255.2l44-43.872zM240.96 650.976l131.968 131.872-44 44-131.968-131.872 44-44zM680.704 123.424a124.544 124.544 0 0 1 176.288 0.096l43.584 43.52a124.704 124.704 0 0 1 0.096 176.16L355.264 888.416l-268.352 48.384 48.384-268.288L680.704 123.424zM334.4 821.344L857.472 298.656c23.84-23.872 23.552-63.264-0.8-87.52L813.12 167.616c-24.544-24.544-63.552-24.832-87.584-0.8L202.432 689.6l-27.52 159.424 159.52-27.616z" fill="#0A8CF0" ></path></symbol><symbol id="icon-shanchu" viewBox="0 0 1024 1024"><path d="M799.2 874.4c0 34.4-28.001 62.4-62.4 62.4H287.2c-34.4 0-62.4-28-62.4-62.4V212h574.4v662.4zM349.6 100c0-7.2 5.6-12.8 12.8-12.8h300c7.2 0 12.8 5.6 12.8 12.8v37.6H349.6V100z m636.8 37.6H749.6V100c0-48.001-39.2-87.2-87.2-87.2h-300c-48 0-87.2 39.199-87.2 87.2v37.6H37.6C16.8 137.6 0 154.4 0 175.2s16.8 37.6 37.6 37.6h112v661.6c0 76 61.6 137.6 137.6 137.6h449.6c76 0 137.6-61.6 137.6-137.6V212h112c20.8 0 37.6-16.8 37.6-37.6s-16.8-36.8-37.6-36.8zM512 824c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0 20.8 16.8 37.6 37.6 37.6m-175.2 0c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0.8 20.8 17.6 37.6 37.6 37.6m350.4 0c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0 20.8 16.8 37.6 37.6 37.6" fill="#8A8A8A" ></path></symbol><symbol id="icon-jurassic_import-form" viewBox="0 0 1024 1024"><path d="M764.9 64H225.4l1.4 224.2 64-0.4-1-159.8h383.6v224H896v544H289.8l1-159.8-64-0.4-1.4 224.2H960V277.7L764.9 64z m-27.6 64.7L882.8 288H737.3V128.7z" fill="#707070" ></path><path d="M356.5 224h255.9v64H356.5z" fill="#707070" ></path><path d="M576.4 416h255.9v64H576.4zM512.5 576h319.8v64H512.5zM384.5 736h447.8v64H384.5z" fill="#707070" ></path><path d="M336.9 349H198.6l98.9 98.9H64v128.2h233.5L198.6 675h138.3l162.9-163z" fill="#707070" ></path></symbol><symbol id="icon-kaoheweidufenxi" viewBox="0 0 1024 1024"><path d="M815.542857 212.943238l118.296381 68.266667v168.033524l-201.532952 116.345904-0.487619-163.352381-125.366857-72.46019 209.091047-116.833524z m-89.673143-51.736381L519.314286 279.454476 305.785905 156.233143 511.561143 37.449143l214.308571 123.757714zM294.619429 887.466667L89.234286 768.877714V546.133333l205.677714 118.00381-0.292571 223.329524z m85.333333 49.249523l-0.097524-223.914666 133.607619 76.653714 132.632381-76.604952-1.024 222.744381-133.558857 77.043809-131.510857-75.922286zM434.468571 328.021333L295.253333 407.747048l-0.195047 156.672L89.234286 444.318476V281.258667l132.047238-76.263619 213.089524 123.026285z m86.113524 49.737143l126.780953 73.191619-0.780191 164.08381-133.12 76.897524-133.656381-78.019048-0.097524-157.403429 140.921905-78.750476z m413.257143 169.008762v222.110476l-200.655238 115.809524-0.633905-221.769143 201.289143-116.150857z" fill="#82529d" ></path></symbol><symbol id="icon-wenjianjia" viewBox="0 0 1024 1024"><path d="M855.04 385.024q19.456 2.048 38.912 10.24t33.792 23.04 21.504 37.376 2.048 54.272q-2.048 8.192-8.192 40.448t-14.336 74.24-18.432 86.528-19.456 76.288q-5.12 18.432-14.848 37.888t-25.088 35.328-36.864 26.112-51.2 10.24l-567.296 0q-21.504 0-44.544-9.216t-42.496-26.112-31.744-40.96-12.288-53.76l0-439.296q0-62.464 33.792-97.792t95.232-35.328l503.808 0q22.528 0 46.592 8.704t43.52 24.064 31.744 35.84 12.288 44.032l0 11.264-53.248 0q-40.96 0-95.744-0.512t-116.736-0.512-115.712-0.512-92.672-0.512l-47.104 0q-26.624 0-41.472 16.896t-23.04 44.544q-8.192 29.696-18.432 62.976t-18.432 61.952q-10.24 33.792-20.48 65.536-2.048 8.192-2.048 13.312 0 17.408 11.776 29.184t29.184 11.776q31.744 0 43.008-39.936l54.272-198.656q133.12 1.024 243.712 1.024l286.72 0z" ></path></symbol><symbol id="icon-biaoqian" viewBox="0 0 1024 1024"><path d="M934.912 516.096q23.552 26.624 19.456 49.664t-26.624 46.592l-324.608 327.68q-8.192 7.168-19.456 11.264t-23.04 4.608-23.04-2.56-18.432-10.24q-121.856-122.88-218.112-220.16l-80.896-80.896q-39.936-39.936-71.168-71.68t-51.2-51.2-20.992-21.504q-3.072-4.096-10.752-14.848t-6.656-25.088l0-19.456 0-40.96q0-23.552 0.512-52.736t0.512-58.88q1.024-70.656 2.048-156.672 2.048-13.312 6.144-24.064t15.36-22.016q10.24-11.264 22.016-16.384t22.016-5.12l329.728 0q2.048 0 9.216 0.512t10.24 1.536q6.144 2.048 11.264 5.12t10.24 8.192zM217.088 317.44q40.96 0 69.12-28.672t28.16-69.632-28.16-69.632-69.12-28.672q-20.48 0-37.888 7.68t-30.72 20.992-20.992 31.232-7.68 38.4 7.68 38.4 20.992 31.232 30.72 20.992 37.888 7.68z" fill="#ea9518" ></path></symbol><symbol id="icon-wenben" viewBox="0 0 1024 1024"><path d="M823.296 60.416q65.536 0 99.328 38.4t33.792 93.696l0 543.744q0 25.6-21.504 46.08l-171.008 163.84q-13.312 11.264-22.528 14.336t-23.552 3.072l-459.776 0q-23.552 0-47.104-9.728t-41.984-27.648-30.208-43.008-11.776-55.808l0-634.88q0-60.416 33.28-96.256t94.72-35.84l568.32 0zM608.256 702.464q13.312 0 22.528-9.216t9.216-22.528q0-14.336-9.216-23.04t-22.528-8.704l-320.512 0q-13.312 0-22.528 8.704t-9.216 23.04q0 13.312 9.216 22.528t22.528 9.216l320.512 0zM736.256 509.952q13.312 0 22.528-9.216t9.216-22.528-9.216-22.528-22.528-9.216l-448.512 0q-13.312 0-22.528 9.216t-9.216 22.528 9.216 22.528 22.528 9.216l448.512 0zM799.744 318.464q13.312 0 22.528-9.216t9.216-23.552q0-13.312-9.216-22.528t-22.528-9.216l-512 0q-13.312 0-22.528 9.216t-9.216 22.528q0 14.336 9.216 23.552t22.528 9.216l512 0z" fill="#db639b" ></path></symbol><symbol id="icon-yingyong" viewBox="0 0 1026 1024"><path d="M371.732817 94.172314q25.773475 0 44.112294 17.843175t18.338819 43.616651l0 247.821878q0 25.773475-18.338819 44.112294t-44.112294 18.338819l-247.821878 0q-25.773475 0-43.616651-18.338819t-17.843175-44.112294l0-247.821878q0-25.773475 17.843175-43.616651t43.616651-17.843175l247.821878 0zM371.732817 589.81607q25.773475 0 44.112294 17.843175t18.338819 43.616651l0 248.813166q0 25.773475-18.338819 43.616651t-44.112294 17.843175l-247.821878 0q-25.773475 0-43.616651-17.843175t-17.843175-43.616651l0-248.813166q0-25.773475 17.843175-43.616651t43.616651-17.843175l247.821878 0zM868.367861 589.81607q25.773475 0 43.616651 17.843175t17.843175 43.616651l0 248.813166q0 25.773475-17.843175 43.616651t-43.616651 17.843175l-247.821878 0q-25.773475 0-44.112294-17.843175t-18.338819-43.616651l0-248.813166q0-25.773475 18.338819-43.616651t44.112294-17.843175l247.821878 0zM1006.156825 203.21394q19.82575 19.82575 19.82575 46.590513t-19.82575 45.599226l-184.379477 184.379477q-19.82575 19.82575-46.094869 19.82575t-46.094869-19.82575l-184.379477-184.379477q-18.834463-18.834463-18.834463-45.599226t18.834463-46.590513l184.379477-184.379477q19.82575-18.834463 46.094869-18.834463t46.094869 18.834463z" fill="#0061b2" ></path></symbol><symbol id="icon-wenjianjia-copy" viewBox="0 0 1024 1024"><path d="M855.04 385.024q19.456 2.048 38.912 10.24t33.792 23.04 21.504 37.376 2.048 54.272q-2.048 8.192-8.192 40.448t-14.336 74.24-18.432 86.528-19.456 76.288q-5.12 18.432-14.848 37.888t-25.088 35.328-36.864 26.112-51.2 10.24l-567.296 0q-21.504 0-44.544-9.216t-42.496-26.112-31.744-40.96-12.288-53.76l0-439.296q0-62.464 33.792-97.792t95.232-35.328l503.808 0q22.528 0 46.592 8.704t43.52 24.064 31.744 35.84 12.288 44.032l0 11.264-53.248 0q-40.96 0-95.744-0.512t-116.736-0.512-115.712-0.512-92.672-0.512l-47.104 0q-26.624 0-41.472 16.896t-23.04 44.544q-8.192 29.696-18.432 62.976t-18.432 61.952q-10.24 33.792-20.48 65.536-2.048 8.192-2.048 13.312 0 17.408 11.776 29.184t29.184 11.776q31.744 0 43.008-39.936l54.272-198.656q133.12 1.024 243.712 1.024l286.72 0z" ></path></symbol></svg>',(l=>{var r=(n=(n=document.getElementsByTagName("script"))[n.length-1]).getAttribute("data-injectcss"),n=n.getAttribute("data-disable-injectsvg");if(!n){var t,s,d,b,h,v=function(w,S){S.parentNode.insertBefore(w,S)};if(r&&!l.__iconfont__svg__cssinject__){l.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(w){console&&console.log(w)}}t=function(){var w,S=document.createElement("div");S.innerHTML=l._iconfont_svg_string_4827314,(S=S.getElementsByTagName("svg")[0])&&(S.setAttribute("aria-hidden","true"),S.style.position="absolute",S.style.width=0,S.style.height=0,S.style.overflow="hidden",S=S,(w=document.body).firstChild?v(S,w.firstChild):w.appendChild(S))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(t,0):(s=function(){document.removeEventListener("DOMContentLoaded",s,!1),t()},document.addEventListener("DOMContentLoaded",s,!1)):document.attachEvent&&(d=t,b=l.document,h=!1,c(),b.onreadystatechange=function(){b.readyState=="complete"&&(b.onreadystatechange=null,y())})}function y(){h||(h=!0,d())}function c(){try{b.documentElement.doScroll("left")}catch{return void setTimeout(c,50)}y()}})(window);const Yp={class:"statistics-cards-container"},Gp=["onClick"],Jp=a.defineComponent({__name:"index",props:{items:{default:()=>[]},disabled:{type:Boolean,default:!1},textSize:{default:void 0},textColor:{default:void 0}},setup(l){const r=l,n=a.ref(null),t=w=>{if(Array.isArray(w)&&w.length>=3){const[S,A,_,H]=w;return H!==void 0?`rgba(${S}, ${A}, ${_}, ${H})`:`rgb(${S}, ${A}, ${_})`}if(typeof w=="string"){const S=w.trim();if(S.startsWith("[")&&S.endsWith("]")){const A=S.slice(1,-1).split(",").map(_=>Number(_.trim()));if(A.length>=3&&A.every(_=>!Number.isNaN(_))){const[_,H,k,T]=A;return T!==void 0?`rgba(${_}, ${H}, ${k}, ${T})`:`rgb(${_}, ${H}, ${k})`}}return S}},s=a.computed(()=>{const w=Number(r==null?void 0:r.textSize),S=t(r==null?void 0:r.textColor),A={},_={};return!Number.isNaN(w)&&w&&(A.fontSize=`${w}px`,_.fontSize=`${w}px`),S&&(A.color=S,_.color=S),{label:A,value:_}}),d=w=>pl.getComponent(w),b=w=>{if(!w)return;const S=w.querySelector("input, textarea, .el-input__inner");S&&typeof S.focus=="function"&&S.focus()},h=(w,S,A)=>{r.disabled||w.field&&(n.value=S,a.nextTick(()=>{b(A.currentTarget)}))},v=()=>{n.value=null},y=w=>{var A;const S=((A=w==null?void 0:w.field)==null?void 0:A.value)??(w==null?void 0:w.value);return S==null||S===""?"-":S},c=w=>{const S=w!=null&&w.width&&w.width>0?w.width:1,_=`calc((100% - ${(S-1)*16}px) / ${S})`;return{flex:`0 0 ${_}`,maxWidth:_,minWidth:"140px",boxSizing:"border-box"}};return(w,S)=>(a.openBlock(),a.createElementBlock("div",Yp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(w.items,(A,_)=>{var H,k,T,J,D,$,z,x;return a.openBlock(),a.createElementBlock("div",{class:"statistics-card",key:_,style:a.normalizeStyle(c(A))},[a.createElementVNode("div",{class:"statistics-label",style:a.normalizeStyle(s.value.label)},a.toDisplayString(A==null?void 0:A.label),5),a.createElementVNode("div",{class:"statistics-value",style:a.normalizeStyle(s.value.value),onClick:g=>h(A,_,g)},[n.value===_&&A.field?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(d(((H=A.field)==null?void 0:H.type)??"Input")),{key:0,modelValue:A.field.value,"onUpdate:modelValue":g=>A.field.value=g,isEdit:!0,disabled:(k=A.field)==null?void 0:k.disabled,content:((T=A.field)==null?void 0:T.contents)??[],optionUrl:A.field,originalValue:(J=A.field)==null?void 0:J.value,config:(D=A.field)==null?void 0:D.config,configModel:(($=A.field)==null?void 0:$.prop)??((z=A.field)==null?void 0:z.name),selectedTagList:((x=A.field)==null?void 0:x.selectValue)??[],onBlur:v,onBlurChange:v},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(y(A)),1)],64))],12,Gp)],4)}),128))]))}}),Xp=ql._export_sfc(Jp,[["__scopeId","data-v-bc3dcbbb"]]),Zs=I.defineStore("formToTableComp",{state:()=>({selectArray:[],selectString:""}),actions:{setSelectArray(l){this.selectArray=l},setSelectString(l){this.selectString=l}}}),Zp={class:"calculator-content"},Qp={class:"calculator-child"},ef={class:"calculator-child"},af=a.defineComponent({__name:"calculator",setup(l){const r=a.ref(),n=a.ref();return a.onMounted(()=>{r.value=[{type:"Upload",label:"输入",name:"input"}],n.value=[{type:"Upload",label:"输出",name:"output"}]}),(t,s)=>(a.openBlock(),a.createElementBlock("div",Zp,[a.createElementVNode("div",Qp,[a.createVNode(pl.ssForm,{rowContents:r.value,isRowFlex:!0},null,8,["rowContents"])]),a.createElementVNode("div",ef,[a.createVNode(pl.ssForm,{rowContents:n.value,isEdit:!1,isRowFlex:!0},null,8,["rowContents"])])]))}}),lf=ql._export_sfc(af,[["__scopeId","data-v-73db0fe7"]]),pi=(l,r)=>{let n=l,t=r;return Array.isArray(n)&&(n=n==null?void 0:n.map((s,d)=>{if(Array.isArray(s)){let b={};return s=s==null?void 0:s.forEach((h,v)=>{var y;(y=t==null?void 0:t[v])!=null&&y.prop?b[t[v].prop]=h:Array.isArray(h)&&(b.children=pi(h,t))}),Object.assign(b,{id:d})}else return s})),n},Qs=(l,r,n)=>{let t=l,s=r;return t=t==null?void 0:t.map((d,b)=>{var h,v;return!Array.isArray(d)||!((h=s==null?void 0:s[b])!=null&&h.label)&&!n||(d.unshift(((v=s==null?void 0:s[b])==null?void 0:v.label)??""),d.some(y=>Array.isArray(y))&&(d=d==null?void 0:d.map(y=>{var c;return Array.isArray(y)&&(y=Qs(y,(c=s==null?void 0:s[b])==null?void 0:c.children,n)),y}))),d}),t},rf=(l,r,n)=>{if(r==="")return l==null?void 0:l.filter(t=>(t==null?void 0:t.id)!==n);{const t=r.split("-");return nf(l,t,n)}},nf=(l,r,n)=>{let t=l,s=r;return(s==null?void 0:s.length)===0?t=t==null?void 0:t.filter(d=>d.id!==n):t=t==null?void 0:t.map(d=>(d.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),d=ec(d,s,n)),d)),t},ec=(l,r,n)=>{var d,b;let t=l,s=r;return(s==null?void 0:s.length)===0?t.children=(d=t.children)==null?void 0:d.filter(h=>h.id!==n):t.children=(b=t.children)==null?void 0:b.map(h=>(h.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),h=ec(h,s,n)),h)),t},tf=(l,r,n)=>{if(r==="")return n;{const t=r.split("-");return of(l,t,n)}},of=(l,r,n)=>{let t=l,s=r;return(s==null?void 0:s.length)===0?t=n:t=t==null?void 0:t.map(d=>(d.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),d=ac(d,s,n)),d)),t},ac=(l,r,n)=>{var d;let t=l,s=r;return(s==null?void 0:s.length)===0?t.children=n:t.children=(d=t.children)==null?void 0:d.map(b=>(b.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),b=ac(b,s,n)),b)),t};class sf{constructor(r={}){Rr(this,"url");Rr(this,"heartbeatInterval");Rr(this,"socket",null);Rr(this,"isConnected",!1);Rr(this,"heartTimer",null);Rr(this,"canvas",null);Rr(this,"ctx",null);Rr(this,"mainCamCutMode",0);Rr(this,"pMainShowStartX",0);Rr(this,"pMainShowStartY",0);Rr(this,"onLog");Rr(this,"onDevCount");Rr(this,"onResolution");Rr(this,"onCameraStatus");Rr(this,"onPhoto");this.url=r.url??"ws://127.0.0.1:22225",this.heartbeatInterval=r.heartbeatInterval??3e3}init(r,n,t){var b;(b=this.canvas)!=null&&b.parentNode&&this.canvas.parentNode.removeChild(this.canvas);const s=document.createElement("canvas");s.style.border="solid 1px #A0A0A0",s.id="MainCamCanvas",s.width=n,s.height=t;const d=s.getContext("2d");if(!d)throw new Error("无法获取 CanvasRenderingContext2D");r.appendChild(s),this.canvas=s,this.ctx=d}async connect(){this.socket&&(this.socket.readyState===WebSocket.OPEN||this.socket.readyState===WebSocket.CONNECTING)||await new Promise((r,n)=>{const t=new WebSocket(this.url);t.binaryType="arraybuffer",t.onopen=()=>{this.socket=t,this.isConnected=!0,this.startHeartbeat(),this.log("socket.onopen"),r()},t.onerror=s=>{this.isConnected=!1,this.log("socket.onerror"),n(s)},t.onclose=()=>{this.isConnected=!1,this.stopHeartbeat(),this.log("socket.onclose")},t.onmessage=s=>{this.handleMessage(s)}})}destroy(){var r;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,(r=this.canvas)!=null&&r.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.canvas=null,this.ctx=null}getDevCount(){this.sendBytes(new Uint8Array([119,136,80]))}getResolution(r=0){this.sendBytes(new Uint8Array([119,136,81,r]))}chooseResolution(r){if(!Array.isArray(r)||r.length===0)return null;const n=r.find(s=>s.width===2592&&s.height===1944);return n||[...r].sort((s,d)=>d.width*d.height-s.width*s.height)[0]||null}openCamera(r=0,n=1280,t=720){if(!this.canvas)throw new Error("请先 init() 传入容器并创建 canvas");const s=new Uint8Array(12);s[0]=119,s[1]=136,s[2]=1,s[3]=r,s[4]=this.canvas.width>>8&255,s[5]=this.canvas.width&255,s[6]=this.canvas.height>>8&255,s[7]=this.canvas.height&255,s[8]=n>>8&255,s[9]=n&255,s[10]=t>>8&255,s[11]=t&255,this.sendBytes(s)}closeCamera(){this.sendBytes(new Uint8Array([119,136,2,0]))}photo(){const s=new Uint8Array(12);s[0]=119,s[1]=136,s[2]=16,s[3]=0,s[4]=0,s[5]=0,s[6]=0,s[7]=0,s[8]=1,s[9]=0,s[10]=0,s[11]=0,this.sendBytes(s)}bestSize(){this.sendBytes(new Uint8Array([119,136,5,0]))}rotateLeft(){this.sendBytes(new Uint8Array([119,136,7,0]))}rotateRight(){this.sendBytes(new Uint8Array([119,136,8,0]))}focus(){this.sendBytes(new Uint8Array([119,136,48,0]))}log(r){var n;(n=this.onLog)==null||n.call(this,r)}sendBytes(r){if(!this.socket||this.socket.readyState!==WebSocket.OPEN||!this.isConnected)throw new Error("socket 未连接");this.socket.send(r.buffer)}startHeartbeat(){this.stopHeartbeat(),this.heartTimer=window.setInterval(()=>{this.log("heartCheck...........")},this.heartbeatInterval)}stopHeartbeat(){this.heartTimer&&(clearInterval(this.heartTimer),this.heartTimer=null)}handleMessage(r){var s,d,b,h,v,y;const n=new Uint8Array(r.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 t=n[2];if(t===80){const c=n[3],w=n.length-4,S=new Uint8Array(w);for(let H=0;H<w;H++)S[H]=n[4+H];const _=decodeURIComponent(this.byteToString(S)).split("|");(s=this.onDevCount)==null||s.call(this,c,_);return}if(t===81){const c=n[3]||0,w=[];for(let S=0;S<c;S++){const A=(n[4+S*4+0]||0)*256+(n[4+S*4+1]||0),_=(n[4+S*4+2]||0)*256+(n[4+S*4+3]||0);w.push({width:A,height:_,text:`${A}*${_}`})}(d=this.onResolution)==null||d.call(this,c,w);return}if(t===1){n[3]===1&&((b=this.onCameraStatus)==null||b.call(this,"opened")),n[3]===3&&((h=this.onCameraStatus)==null||h.call(this,"closed"));return}if(t===16){if(n[3]===1){const w=n[4]*256+n[5],S=n[6]*65536+n[7]*256+n[8];let A="";if(w>0){const k=new Uint8Array(w);for(let T=0;T<w;T++)k[T]=n[9+T];A=decodeURIComponent(this.byteToString(k))}const _=new Uint8Array(S);for(let k=0;k<S;k++)_[k]=n[9+w+k];const H=this.uint8ArrayToString(_);(v=this.onPhoto)==null||v.call(this,{flag:0,imgPath:A,base64:H})}n[3]===2&&((y=this.onPhoto)==null||y.call(this,{flag:2,imgPath:"",base64:""}));return}if(t===204){if(!this.canvas||!this.ctx)return;const c=n[3]*256+n[4],w=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 S=this.ctx.createImageData(c,w);let A=11;for(let _=0;_<S.data.length;_+=4)S.data[_+0]=n[A],S.data[_+1]=n[A+1],S.data[_+2]=n[A+2],S.data[_+3]=255,A+=3;this.ctx.putImageData(S,this.pMainShowStartX,this.pMainShowStartY),this.mainCamCutMode;return}}uint8ArrayToString(r){let n="";for(let t=0;t<r.length;t++)n+=String.fromCharCode(r[t]);return n}byteToString(r){let n="";for(let t=0;t<r.length;t++)n+=String.fromCharCode(r[t]);return n}}const cf={style:{display:"flex",gap:"16px",height:"100%"}},uf={key:0,style:{color:"var(--el-text-color-secondary)"}},df={style:{width:"420px",display:"flex","flex-direction":"column",gap:"16px"}},pf={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px"}},ff={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"}},hf={key:0,style:{height:"100%",display:"flex","align-items":"center","justify-content":"center",color:"var(--el-text-color-secondary)"}},vf={key:1,style:{display:"grid","grid-template-columns":"repeat(2, minmax(0, 1fr))",gap:"8px"}},mf=["src","onClick"],yf=["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"}},bf={class:"dialog-footer"},kf=a.defineComponent({__name:"index",props:{visible:{type:Boolean,default:!1}},emits:["confirm","cancel"],setup(l,{emit:r}){const n=l,t=r,s=a.ref(null),d=a.ref(!1),b=a.ref([]),h=a.ref(""),v=a.ref(!1),y=a.ref([]),c=new sf({url:"ws://127.0.0.1:22225"});function w(q,G){var X;const be=q.split(","),ze=((X=be[0].match(/:(.*?);/))==null?void 0:X[1])??"image/jpeg",De=atob(be[1]);let ne=De.length;const ke=new Uint8Array(ne);for(;ne--;)ke[ne]=De.charCodeAt(ne);return new File([ke],G,{type:ze})}function S(){c.onLog=q=>{console.log("[GPY]",q)},c.onDevCount=(q,G)=>{if(h.value+=`设备数量=${q},设备=${G.join(",")}
1
+ "use strict";var yu=Object.defineProperty;var gu=(l,r,n)=>r in l?yu(l,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):l[r]=n;var Rr=(l,r,n)=>gu(l,typeof r!="symbol"?r+"":r,n);const a=require("vue"),ll=require("./request-BC2w2vGr.cjs"),I=require("./index-BrkG7uLk.cjs"),pl=require("./index-BUqV4xIT.cjs"),ql=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),$a=require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-COKDBqGg.cjs"),vr=require("./index-CUw6nGTo.cjs"),bo=require("./threeViewerHost-uNIKrsD0.cjs"),na=require("./index-Cp0iKPhB.cjs"),yr=require("./index-CW4qJdP8.cjs"),Ji=require("./index-DF9J0eRh.cjs");require("./index-qlM1q9uT.cjs");const Hs=require("./index-2brd7dFc.cjs");;/* empty css */const ko=require("./isString-DNBlKLZH.cjs"),Xi=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),Us=require("./index-BVaHwt5f.cjs"),bu=require("./index-B-6RIPBP.cjs"),Dn=require("./MTLLoader-fyJJJ5J2.cjs"),ku=require("./URDFLoader-Bcpa-czu.cjs");var xu="[object Boolean]";function qs(l){return l===!0||l===!1||ll.isObjectLike(l)&&ll.baseGetTag(l)==xu}function _u(l){return l===void 0}const wu=l=>l.match(/\((.*)\)/)[1],Cu={__name:"index",props:{isVisible:{type:Boolean,default:!1},title:{type:String,default:""},placement:{type:String,default:"bottom"},width:{type:Number,default:200},trigger:{type:String,default:"click"}},setup(l){const r=l,n=a.ref(null),t=a.ref(!1),s=a.ref(null);return a.watch(()=>r==null?void 0:r.isVisible,()=>{t.value=r==null?void 0:r.isVisible},{deep:!0,immediate:!0}),a.watch(()=>s.value,()=>{a.nextTick(()=>{var u,b;(b=(u=n.value)==null?void 0:u.updatePopper)==null||b.call(u)})},{deep:!0,immediate:!0}),(u,b)=>{const h=a.resolveComponent("el-popover");return a.openBlock(),a.createBlock(h,{visible:t.value,"onUpdate:visible":b[0]||(b[0]=v=>t.value=v),trigger:r.trigger,title:r==null?void 0:r.title,placement:r==null?void 0:r.placement,width:r==null?void 0:r.width,ref_key:"popOverRef",ref:n,"trigger-keys":"[]"},{reference:a.withCtx(()=>[a.createElementVNode("div",null,[a.renderSlot(u.$slots,"reference",{ref_key:"referenceRef",ref:s})])]),default:a.withCtx(()=>[a.createElementVNode("div",null,[a.renderSlot(u.$slots,"content")])]),_:3},8,["visible","trigger","title","placement","width"])}}},Eu={__name:"index",props:{value:{type:[String,Number],default:""}},setup(l){const r=l,n=a.computed(()=>{const t=String(r.value??"");return t==="已完成"?"task-status-completed":t==="进行中"?"task-status-running":t==="终止"||t==="暂停"?"task-status-stopped":""});return(t,s)=>l.value!==void 0&&l.value!==null?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(["task-status-tag",n.value])},a.toDisplayString(l.value===0?"0":l.value),3)):a.createCommentVNode("",!0)}},Su=ql._export_sfc(Eu,[["__scopeId","data-v-d81f59b4"]]);function Du(l,r,n,t={}){if(!l||!r||!n||n.length!==4)return;const s=l.getContext("2d");if(!s)return;const{color:u="rgba(255, 235, 59, 0.3)",strokeWidth:b=2,fillOpacity:h=.2}=t,v=l.getBoundingClientRect(),y=r.getBoundingClientRect(),c=r.naturalWidth,w=r.naturalHeight,D=y.width/c,A=y.height/w,_=Math.min(D,A),H=c*_,k=w*_,T=(v.width-H)/2,J=(v.height-k)/2,S=n.map(([z,x])=>{const g=T+z*H,F=J+x*k;return{x:g,y:F}});s.clearRect(0,0,l.width,l.height),s.beginPath(),s.moveTo(S[0].x,S[0].y);for(let z=1;z<S.length;z++)s.lineTo(S[z].x,S[z].y);s.closePath();const V=u.replace(/[\d.]+\)$/,`${h})`);s.fillStyle=V,s.fill(),s.strokeStyle=u.replace(/[\d.]+\)$/,"1)"),s.lineWidth=b,s.stroke()}function yt(l){if(!l)return;const r=l.getContext("2d");r&&r.clearRect(0,0,l.width,l.height)}function Zi(l,r){if(!l||!r)return null;const n=l[r];return!n||!n.bboxNorm||!Array.isArray(n.bboxNorm)||n.bboxNorm.length!==4?null:{bboxNorm:n.bboxNorm,imageName:n.imageName||""}}const Bu={key:0,class:"ocr-img-preview-root"},Nu={class:"ocr-img-preview-window"},Tu={key:0,class:"img-preview-body"},Au={class:"img-preview-header"},zu={class:"img-header-left"},Mu={class:"img-name"},Ou={key:0,class:"img-header-right"},Iu={class:"img-index"},Lu={key:0,class:"img-thumb-list"},Vu=["onClick"],$u={key:1,class:"thumb-placeholder"},Ru={class:"thumb-name"},Pu={class:"img-preview-container"},Fu={key:0,class:"img-placeholder"},ju={key:2,class:"img-placeholder"},Hu={key:0},Uu={key:1},qu={key:1,class:"img-placeholder"},Ku=a.defineComponent({__name:"imgPreview",props:{visible:{type:Boolean,default:!1},images:{type:Array,default:()=>[]},defaultImageName:{type:String,default:""},fieldMeta:{type:Object,default:()=>({})},focusedFieldName:{type:String,default:""}},emits:["update:visible","close"],setup(l,{emit:r}){const n=l,t=r,s=a.computed({get:()=>n.visible,set:B=>t("update:visible",B)});let u=!1,b="",h=0,v=0,y=0,c=0,w=0,D=0,A=null;const _=B=>{var ye,se;const le=(se=(ye=B==null?void 0:B.target)==null?void 0:ye.closest)==null?void 0:se.call(ye,".ocr-img-preview-window");return le||document.querySelector(".ocr-img-preview-window")},H=B=>{if(!B||B==="none")return{tx:0,ty:0};let le=B.match(/matrix\(([^)]+)\)/);if(le){const ye=le[1].split(",").map(se=>Number(se.trim()));return{tx:(ye==null?void 0:ye[4])||0,ty:(ye==null?void 0:ye[5])||0}}if(le=B.match(/matrix3d\(([^)]+)\)/),le){const ye=le[1].split(",").map(se=>Number(se.trim()));return{tx:(ye==null?void 0:ye[12])||0,ty:(ye==null?void 0:ye[13])||0}}return le=B.match(/translate\(\s*([-\d.]+)px\s*,\s*([-\d.]+)px\s*\)/),le?{tx:Number(le[1])||0,ty:Number(le[2])||0}:{tx:0,ty:0}},k=(B,le,ye)=>{B.style.transform=`translate(${le}px, ${ye}px)`},T=B=>{const le=_(B);if(!le)return;u=!0,A=le,b="move",h=B.clientX,v=B.clientY;const ye=window.getComputedStyle(le),{tx:se,ty:Ne}=H(ye.transform);w=se,D=Ne,document.addEventListener("mousemove",S),document.addEventListener("mouseup",V)},J=(B,le)=>{const ye=_(B);if(!ye)return;u=!0,A=ye,b=le,h=B.clientX,v=B.clientY;const se=ye.getBoundingClientRect();y=se.width,c=se.height;const Ne=window.getComputedStyle(ye),{tx:ia,ty:xa}=H(Ne.transform);w=ia,D=xa,document.addEventListener("mousemove",S),document.addEventListener("mouseup",V)},S=B=>{if(!u||!A)return;const le=B.clientX-h,ye=B.clientY-v,se=360,Ne=420;let ia=y,xa=c,Ha=w,ee=D;if(b==="move"){Ha=w+le,ee=D+ye,k(A,Ha,ee);return}if(b.includes("right")&&(ia=Math.max(se,y+le)),b.includes("bottom")&&(xa=Math.max(Ne,c+ye)),b.includes("left")){const ea=y-le;ea<se?(ia=se,Ha=w+(y-se)):(ia=ea,Ha=w+le)}if(b.includes("top")){const ea=c-ye;ea<Ne?(xa=Ne,ee=D+(c-Ne)):(xa=ea,ee=D+ye)}A.style.width=`${ia}px`,A.style.height=`${xa}px`,k(A,Ha,ee)},V=()=>{u=!1,b="",A=null,document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",V)},z=a.ref([]),x=a.ref(!1);a.watch(()=>n.images,async B=>{if(!Array.isArray(B)||B.length===0){z.value=[];return}x.value=!0;const le=[];for(const ye of B)if(ye.url&&!ye.url.startsWith("blob:")&&!ye.url.startsWith("http"))try{const se=await $a.downloadFile(ye.url),Ne=URL.createObjectURL(se);le.push({...ye,blobUrl:Ne})}catch(se){console.error(`Failed to load image for preview: ${ye.url}`,se),le.push({...ye,blobUrl:""})}else le.push({...ye,blobUrl:ye.url});z.value=le,x.value=!1},{deep:!0,immediate:!0});const g=a.ref(0),F=a.ref(null),q=a.ref(null),G=a.computed(()=>z.value[g.value]||null),be=()=>{if(!z.value.length){g.value=0;return}if(n.defaultImageName){const B=z.value.findIndex(le=>(le==null?void 0:le.name)===n.defaultImageName);g.value=B>=0?B:0}else g.value=0},ze=B=>{if(!z.value.length)return;const le=Math.max(0,Math.min(B,z.value.length-1));g.value=le},De=()=>ze(g.value-1),ne=()=>ze(g.value+1),ke=B=>{if(!B)return;const le=z.value.findIndex(ye=>(ye==null?void 0:ye.name)===B);le>=0&&(g.value=le)},X=()=>{if(!q.value)return;const B=q.value.parentElement;if(!B)return;const le=B.getBoundingClientRect();q.value.width=le.width,q.value.height=le.height},pe=()=>{var se,Ne;if(!q.value||!F.value||!n.focusedFieldName){q.value&&yt(q.value);return}const B=(se=F.value.$el)==null?void 0:se.querySelector("img");if(!B)return;if(!B.complete||B.naturalWidth===0){B.onload=()=>{a.nextTick(()=>{pe()})};return}const le=((Ne=G.value)==null?void 0:Ne.name)||"",ye=Zi(n.fieldMeta,n.focusedFieldName);if(!ye){yt(q.value);return}if(ye.imageName!==le){yt(q.value);return}X(),Du(q.value,B,ye.bboxNorm)},Ke=()=>{a.nextTick(()=>{X(),pe()})};a.watch(()=>n.focusedFieldName,()=>{if(!s.value)return;const B=Zi(n.fieldMeta,n.focusedFieldName);B!=null&&B.imageName&&ke(B.imageName),a.nextTick(()=>{pe()})}),a.watch(()=>{var B;return(B=G.value)==null?void 0:B.name},()=>{s.value&&a.nextTick(()=>{q.value&&yt(q.value),pe()})}),a.watch(()=>n.visible,B=>{B?(be(),a.nextTick(()=>{X(),pe()})):q.value&&yt(q.value)}),a.watch(()=>n.defaultImageName,()=>{s.value&&be()});let Sa=null;a.onMounted(()=>{var B;typeof ResizeObserver<"u"&&(Sa=new ResizeObserver(()=>{X(),a.nextTick(()=>{pe()})}),(B=q.value)!=null&&B.parentElement&&Sa.observe(q.value.parentElement))}),a.onUnmounted(()=>{Sa&&(Sa.disconnect(),Sa=null),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",V)});const te=()=>{q.value&&yt(q.value),t("update:visible",!1),t("close")};return(B,le)=>{var xa,Ha;const ye=a.resolveComponent("el-button"),se=a.resolveComponent("el-image"),Ne=a.resolveComponent("Loading"),ia=a.resolveComponent("el-icon");return s.value?(a.openBlock(),a.createElementBlock("div",Bu,[le[12]||(le[12]=a.createElementVNode("div",{class:"ocr-img-preview-backdrop"},null,-1)),a.createElementVNode("div",Nu,[a.createElementVNode("div",{class:"ocr-img-preview-header",onMousedown:a.withModifiers(T,["stop"])},[le[8]||(le[8]=a.createElementVNode("span",{class:"ocr-img-preview-title"},"文件预览",-1)),a.createElementVNode("button",{type:"button",class:"ocr-img-preview-close",onClick:te},"×")],32),a.createElementVNode("div",{class:"resizable-handle top",onMousedown:le[0]||(le[0]=a.withModifiers(ee=>J(ee,"top"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle right",onMousedown:le[1]||(le[1]=a.withModifiers(ee=>J(ee,"right"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom",onMousedown:le[2]||(le[2]=a.withModifiers(ee=>J(ee,"bottom"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle left",onMousedown:le[3]||(le[3]=a.withModifiers(ee=>J(ee,"left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle top-left",onMousedown:le[4]||(le[4]=a.withModifiers(ee=>J(ee,"top-left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle top-right",onMousedown:le[5]||(le[5]=a.withModifiers(ee=>J(ee,"top-right"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom-left",onMousedown:le[6]||(le[6]=a.withModifiers(ee=>J(ee,"bottom-left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom-right",onMousedown:le[7]||(le[7]=a.withModifiers(ee=>J(ee,"bottom-right"),["stop"]))},null,32),G.value?(a.openBlock(),a.createElementBlock("div",Tu,[a.createElementVNode("div",Au,[a.createElementVNode("div",zu,[a.createElementVNode("span",Mu,a.toDisplayString(G.value.name?G.value.name+(G.value.url&&G.value.url.lastIndexOf(".")!==-1?G.value.url.substring(G.value.url.lastIndexOf(".")):""):""),1)]),z.value.length>1?(a.openBlock(),a.createElementBlock("div",Ou,[a.createVNode(ye,{size:"small",disabled:g.value===0,onClick:De},{default:a.withCtx(()=>le[9]||(le[9]=[a.createTextVNode("上一张")])),_:1,__:[9]},8,["disabled"]),a.createElementVNode("span",Iu,a.toDisplayString(g.value+1)+" / "+a.toDisplayString(z.value.length),1),a.createVNode(ye,{size:"small",disabled:g.value===z.value.length-1,onClick:ne},{default:a.withCtx(()=>le[10]||(le[10]=[a.createTextVNode("下一张")])),_:1,__:[10]},8,["disabled"])])):a.createCommentVNode("",!0)]),z.value.length>1?(a.openBlock(),a.createElementBlock("div",Lu,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(z.value,(ee,ea)=>(a.openBlock(),a.createElementBlock("div",{key:(ee.name||"")+"-"+ea,class:a.normalizeClass(["img-thumb-item",{active:ea===g.value}]),onClick:Pe=>ze(ea)},[ee!=null&&ee.blobUrl?(a.openBlock(),a.createBlock(se,{key:0,src:ee.blobUrl,fit:"cover",class:"thumb-image","preview-src-list":[ee.blobUrl],"initial-index":0},null,8,["src","preview-src-list"])):(a.openBlock(),a.createElementBlock("div",$u,"加载失败")),a.createElementVNode("div",Ru,a.toDisplayString(ee.name||"-"),1)],10,Vu))),128))])):a.createCommentVNode("",!0),a.createElementVNode("div",Pu,[x.value?(a.openBlock(),a.createElementBlock("div",Fu,[a.createVNode(ia,{class:"is-loading"},{default:a.withCtx(()=>[a.createVNode(Ne)]),_:1}),le[11]||(le[11]=a.createElementVNode("span",null,"图片加载中...",-1))])):(xa=G.value)!=null&&xa.blobUrl?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createVNode(se,{ref_key:"imageRef",ref:F,src:G.value.blobUrl,fit:"contain",class:"preview-image","preview-src-list":[G.value.blobUrl],onLoad:Ke},null,8,["src","preview-src-list"]),a.createElementVNode("canvas",{ref_key:"canvasRef",ref:q,class:"highlight-canvas"},null,512)],64)):(a.openBlock(),a.createElementBlock("div",ju,[(Ha=G.value)!=null&&Ha.url?(a.openBlock(),a.createElementBlock("span",Hu,"图片加载失败")):(a.openBlock(),a.createElementBlock("span",Uu,"暂无图片"))]))])])):(a.openBlock(),a.createElementBlock("div",qu,"暂无图片"))])])):a.createCommentVNode("",!0)}}}),Wu=ql._export_sfc(Ku,[["__scopeId","data-v-48a4ecb1"]]),Yu={class:"cert-preview-body"},Gu={key:0,class:"pdf-preview-container"},Ju={class:"thumbs"},Xu=["onClick"],Zu={class:"thumb-img"},Qu=["src"],ed={key:1,class:"thumb-loading"},ad={class:"thumb-title"},ld={class:"viewer"},rd={key:0,class:"viewer-img-wrap"},nd=["src"],td={key:1,class:"viewer-loading"},od=a.defineComponent({__name:"CertificatePreview",props:{visible:{type:Boolean},versions:{}},emits:["update:visible"],setup(l,{emit:r}){const n=l,t=r,s=a.ref(""),u=a.ref(""),b=a.computed(()=>(n.versions||[]).find(_=>String(_.versionId)===String(s.value))),h=a.ref({}),v=a.ref(""),y=a.ref("证书附件.pdf"),c=()=>{try{Object.values(h.value||{}).forEach(_=>{_&&URL.revokeObjectURL(_)}),v.value&&URL.revokeObjectURL(v.value)}catch{}h.value={},v.value=""},w=async _=>{if(!_||_.fileType==="pdf")return;const H=Array.isArray(_.images)?_.images:[];for(const k of H){const T=k==null?void 0:k.url;if(!(!T||h.value[T]))try{const J=await I.platformDownloadFile({url:T}),S=URL.createObjectURL(J.data);h.value={...h.value,[T]:S}}catch{}}},D=async _=>{var k;if(!_||_.fileType!=="pdf"){v.value="";return}const H=_.sourceUrl||"";if(!H){v.value="";return}if(v.value){try{URL.revokeObjectURL(v.value)}catch{}v.value=""}try{console.log("[CertificatePreview] 下载PDF附件:",{url:H,versionId:_==null?void 0:_.versionId,certNo:_==null?void 0:_.certNo});const T=await I.platformDownloadFile({url:H});console.log("[CertificatePreview] PDF响应:",{url:H,status:T==null?void 0:T.status,size:(k=T==null?void 0:T.data)==null?void 0:k.size});const J=URL.createObjectURL(T.data);v.value=J;const S=_.certNo?String(_.certNo):"";y.value=S?`${S}.pdf`:"证书附件.pdf"}catch(T){console.error("[CertificatePreview] PDF加载失败:",{url:H,error:T}),v.value=""}};a.watch(()=>n.visible,async _=>{var k;if(!_){c();return}const H=(k=n.versions)==null?void 0:k[0];s.value=(H==null?void 0:H.versionId)||"",await w(H),await D(H)},{immediate:!0}),a.watch(()=>s.value,async()=>{var H,k;const _=b.value;if(!_){u.value="",v.value="";return}if(_.fileType==="pdf"){u.value="",await D(_);return}v.value="",u.value=((k=(H=_.images)==null?void 0:H[0])==null?void 0:k.url)||"",await w(_)},{immediate:!0});const A=()=>{t("update:visible",!1),c()};return a.onBeforeUnmount(()=>{c()}),(_,H)=>{const k=a.resolveComponent("el-empty"),T=a.resolveComponent("el-tab-pane"),J=a.resolveComponent("el-tabs"),S=a.resolveComponent("el-button"),V=a.resolveComponent("el-dialog");return a.openBlock(),a.createBlock(V,{"model-value":_.visible,title:"证书附件预览",width:"1100px","close-on-click-modal":!1,onClose:A},{footer:a.withCtx(()=>[a.createVNode(S,{id:"themeBorderButton",onClick:A},{default:a.withCtx(()=>H[1]||(H[1]=[a.createTextVNode("关闭")])),_:1,__:[1]})]),default:a.withCtx(()=>[_.versions&&_.versions.length>0?(a.openBlock(),a.createBlock(J,{key:0,modelValue:s.value,"onUpdate:modelValue":H[0]||(H[0]=z=>s.value=z),type:"card",class:"cert-version-tabs"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(_.versions,z=>(a.openBlock(),a.createBlock(T,{key:z.versionId,name:z.versionId,label:z.label},{default:a.withCtx(()=>[a.createElementVNode("div",Yu,[z.fileType==="pdf"?(a.openBlock(),a.createElementBlock("div",Gu,[v.value?(a.openBlock(),a.createBlock(pl.SsFilePreview,{key:1,fileName:y.value,blobUrl:v.value},null,8,["fileName","blobUrl"])):(a.openBlock(),a.createBlock(k,{key:0,description:"加载中"}))])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("div",Ju,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(z.images||[],x=>(a.openBlock(),a.createElementBlock("div",{key:x.url,class:a.normalizeClass(["thumb",{active:x.url===u.value}]),onClick:g=>u.value=x.url},[a.createElementVNode("div",Zu,[h.value[x.url]?(a.openBlock(),a.createElementBlock("img",{key:0,src:h.value[x.url]},null,8,Qu)):(a.openBlock(),a.createElementBlock("div",ed,"加载中"))]),a.createElementVNode("div",ad,a.toDisplayString(x.name),1)],10,Xu))),128))]),a.createElementVNode("div",ld,[u.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[h.value[u.value]?(a.openBlock(),a.createElementBlock("div",rd,[a.createElementVNode("img",{class:"viewer-img",src:h.value[u.value]},null,8,nd)])):(a.openBlock(),a.createElementBlock("div",td,"加载中"))],64)):(a.openBlock(),a.createBlock(k,{key:0,description:"暂无图片"}))])],64))])]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue"])):(a.openBlock(),a.createBlock(k,{key:1,description:"暂无可预览的证书附件"}))]),_:1},8,["model-value"])}}}),id=ql._export_sfc(od,[["__scopeId","data-v-220703c0"]]),sd={class:"ocr-candidate-wrap"},cd={class:"ocr-candidate-left"},ud={key:1},dd={key:0},pd={key:1},fd={key:2},hd={key:3},vd={key:0,class:"ocr-candidate-right"},md={class:"ocr-candidate-actions"},yd={key:1},gd={class:"dialog-footer"},bd={__name:"OCRCandidateDialog",props:{visible:{type:Boolean,default:!1},candidates:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},nameProp:{type:String,default:""},mfrProp:{type:String,default:""}},emits:["update:visible","submit","preview-file"],setup(l,{emit:r}){const n=(g=[])=>{const F=[],q=G=>{(G||[]).forEach(be=>{if(!be)return;const ze=be.children||be.childrens||be.columns;Array.isArray(ze)&&ze.length>0?q(ze):F.push(be)})};return q(g),F},t=l,s=r,u=a.computed(()=>{var g;return((g=D.value)==null?void 0:g.allowAdd)!==!1}),b=a.computed(()=>{var g;return((g=D.value)==null?void 0:g.allowReplace)!==!1}),h=g=>{if(!g)return[];if(Array.isArray(g))return g;if(typeof g=="string")try{const F=JSON.parse(g);return Array.isArray(F)?F:[]}catch{return[]}return[]},v=g=>{s("preview-file",g)},y=a.ref([]),c=a.ref(0),w=a.ref("");a.watch(()=>t.candidates,g=>{var F,q;y.value=(g||[]).map(G=>({...G,...(G==null?void 0:G.ocrRow)||{},selectedTargetId:(G==null?void 0:G.selectedTargetId)||"",__decision:G==null?void 0:G.__decision})),c.value=0,w.value=((q=(F=y.value)==null?void 0:F[0])==null?void 0:q.selectedTargetId)||""},{immediate:!0,deep:!0}),a.watch(()=>t.visible,g=>{var F,q;g&&(c.value=0,w.value=((q=(F=y.value)==null?void 0:F[0])==null?void 0:q.selectedTargetId)||"")});const D=a.computed(()=>{var F;const g=Number(c.value||0);return((F=y.value||[])==null?void 0:F[g])||null}),A=a.computed(()=>(n(t.columns||[])||[]).filter(q=>q&&q.prop).filter(q=>q.type!=="operate"&&q.label!=="操作"&&q.prop!=="operate")),_=a.computed(()=>A.value.filter(g=>g.label!=="证书附件"&&g.prop!=="证书附件")),H=g=>{if(!g)return;const F=(y.value||[]).findIndex(q=>(q==null?void 0:q.idx)===(g==null?void 0:g.idx));F>-1&&(c.value=F,w.value=(g==null?void 0:g.selectedTargetId)||"")},k=g=>{if(!g){w.value="";return}w.value=String((g==null?void 0:g.id)??"")},T=(g,F="")=>{const q=Number(c.value||0),G=y.value||[],be=G[q];be&&(be.__decision=g,be.selectedTargetId=F,w.value=F,y.value=[...G])},J=()=>T("skip",""),S=()=>T("add",""),V=()=>{if(!w.value){ll.ElMessage.warning("请先选择要替换的目标记录");return}T("replace",w.value)},z=()=>{s("update:visible",!1)},x=()=>{const g=y.value||[];if(g.find(q=>(q==null?void 0:q.__decision)==="replace"&&!(q!=null&&q.selectedTargetId))){ll.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}s("submit",g),s("update:visible",!1)};return(g,F)=>{const q=a.resolveComponent("el-table-column"),G=a.resolveComponent("svg-icon"),be=a.resolveComponent("el-table"),ze=a.resolveComponent("el-button"),De=a.resolveComponent("el-alert");return a.openBlock(),a.createBlock(vr.ssDialog,{title:"OCR候选匹配",visible:l.visible,"close-on-click-modal":!1,width:"90%",style:{maxWidth:"1200px"},onBeforeDestroy:z},{default:a.withCtx(()=>{var ne,ke;return[a.createElementVNode("div",sd,[a.createElementVNode("div",cd,[F[0]||(F[0]=a.createElementVNode("div",{class:"ocr-candidate-title"},"待处理OCR行(可跳过)",-1)),a.createVNode(be,{data:y.value,border:"",stripe:"","max-height":"300",style:{width:"100%"},"highlight-current-row":"",onCurrentChange:H},{default:a.withCtx(()=>[a.createVNode(q,{type:"index",label:"序号",width:"60"}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(_.value,X=>(a.openBlock(),a.createBlock(q,{key:X.prop,label:X.label,prop:X.prop,"min-width":X.minWidth||160},{default:a.withCtx(({row:pe})=>[X.label==="证书附件"||X.prop==="证书附件"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[h(pe==null?void 0:pe[X.prop]).length>0?(a.openBlock(),a.createBlock(G,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:a.withModifiers(Ke=>v({row:pe,prop:X.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(a.openBlock(),a.createElementBlock("span",ud,"-"))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString((pe==null?void 0:pe[X.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128)),a.createVNode(q,{label:"候选数",width:"90",fixed:"right"},{default:a.withCtx(({row:X})=>[a.createTextVNode(a.toDisplayString(((X==null?void 0:X.candidates)||[]).length),1)]),_:1}),a.createVNode(q,{label:"处理状态",width:"120",fixed:"right"},{default:a.withCtx(({row:X})=>[(X==null?void 0:X.__decision)==="replace"?(a.openBlock(),a.createElementBlock("span",dd,"替换")):(X==null?void 0:X.__decision)==="add"?(a.openBlock(),a.createElementBlock("span",pd,"新增")):(X==null?void 0:X.__decision)==="skip"?(a.openBlock(),a.createElementBlock("span",fd,"跳过")):(a.openBlock(),a.createElementBlock("span",hd,"未处理"))]),_:1})]),_:1},8,["data"])]),y.value&&y.value.length>0?(a.openBlock(),a.createElementBlock("div",vd,[F[4]||(F[4]=a.createElementVNode("div",{class:"ocr-candidate-title"},"当前行候选记录(同编号)",-1)),a.createElementVNode("div",md,[a.createVNode(ze,{id:"themeBorderButton",onClick:J},{default:a.withCtx(()=>F[1]||(F[1]=[a.createTextVNode("跳过本行")])),_:1,__:[1]}),a.createVNode(ze,{id:"themeBorderButton",onClick:S,disabled:!u.value},{default:a.withCtx(()=>F[2]||(F[2]=[a.createTextVNode("新增本行")])),_:1,__:[2]},8,["disabled"]),a.createVNode(ze,{class:"ok-button",id:"themeButton",onClick:V,disabled:!b.value||!w.value},{default:a.withCtx(()=>F[3]||(F[3]=[a.createTextVNode("替换选中记录")])),_:1,__:[3]},8,["disabled"])]),(((ne=D.value)==null?void 0:ne.candidates)||[]).length===0?(a.openBlock(),a.createBlock(De,{key:0,title:"该编号暂无候选记录,可选择“新增本行”或“跳过本行”。",type:"info",closable:!1,"show-icon":"",style:{margin:"8px 0"}})):a.createCommentVNode("",!0),a.createVNode(be,{data:((ke=D.value)==null?void 0:ke.candidates)||[],border:"",stripe:"","max-height":"300",style:{width:"100%"},onCurrentChange:k,"highlight-current-row":""},{default:a.withCtx(()=>[a.createVNode(q,{type:"index",label:"序号",width:"60"}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(A.value,X=>(a.openBlock(),a.createBlock(q,{key:X.prop,label:X.label,prop:X.prop,"min-width":X.minWidth||160},{default:a.withCtx(({row:pe})=>[X.label==="证书附件"||X.prop==="证书附件"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[h(pe==null?void 0:pe[X.prop]).length>0?(a.openBlock(),a.createBlock(G,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:a.withModifiers(Ke=>v({row:pe,prop:X.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(a.openBlock(),a.createElementBlock("span",yd,"-"))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString((pe==null?void 0:pe[X.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128))]),_:1},8,["data"])])):a.createCommentVNode("",!0)])]}),footer:a.withCtx(()=>[a.createElementVNode("div",gd,[a.createVNode(ze,{id:"themeBorderButton",onClick:z},{default:a.withCtx(()=>F[5]||(F[5]=[a.createTextVNode("取消")])),_:1,__:[5]}),a.createVNode(ze,{class:"ok-button",id:"themeButton",onClick:x},{default:a.withCtx(()=>F[6]||(F[6]=[a.createTextVNode("提交已处理")])),_:1,__:[6]})])]),_:1},8,["visible"])}}},kd=ql._export_sfc(bd,[["__scopeId","data-v-89e0489c"]]),xd={class:"ocr-preview-content"},_d={class:"ocr-preview-tip"},wd={class:"ocr-preview-table"},Cd={style:{display:"flex","align-items":"center",gap:"8px"}},Ed={class:"dialog-footer"},Sd={__name:"OCRResultPreviewDialog",props:{visible:{type:Boolean,default:!1},ocrPreviewData:{type:Array,default:()=>[]},ocrPreviewColumns:{type:Array,default:()=>[]},ocrSelectedFields:{type:Array,default:()=>[]}},emits:["update:visible","update:ocrPreviewData","update:ocrSelectedFields","confirm","fieldChange"],setup(l,{emit:r}){const n=l,t=r,s=a.ref([]),u=a.ref([]),b=a.ref([]);a.watch(()=>n.visible,A=>{A&&(s.value=JSON.parse(JSON.stringify(n.ocrPreviewData)),u.value=JSON.parse(JSON.stringify(n.ocrPreviewColumns)),b.value=[...n.ocrSelectedFields])});const h=(A,_)=>{const H=[...b.value];if(_)H.includes(A)||H.push(A);else{const k=H.indexOf(A);k>-1&&H.splice(k,1)}b.value=H,t("update:ocrSelectedFields",H)},v=(A,_,H)=>{t("fieldChange",{rowIndex:A,prop:_,value:H})},y=()=>{t("update:ocrPreviewData",s.value),t("confirm",s.value),t("update:visible",!1)},c=()=>{t("update:visible",!1)},w=A=>typeof A!="number"?"-":`${(A*100).toFixed(1)}%`,D=A=>typeof A!="number"?"#606266":A>=.9?"#67c23a":A>=.7?"#e6a23c":"#f56c6c";return(A,_)=>{const H=a.resolveComponent("el-alert"),k=a.resolveComponent("el-table-column"),T=a.resolveComponent("el-checkbox"),J=a.resolveComponent("el-input"),S=a.resolveComponent("el-table"),V=a.resolveComponent("el-button");return a.openBlock(),a.createBlock(vr.ssDialog,{title:"OCR识别结果预览",visible:l.visible,onBeforeDestroy:c,width:"90%",style:{maxWidth:"1200px"}},{default:a.withCtx(()=>[a.createElementVNode("div",xd,[a.createElementVNode("div",_d,[a.createVNode(H,{title:"请核对识别结果。系统将按 编号+名称+制造厂 规则匹配并替换;未唯一命中但有编号的,将进入候选选择;无编号则直接新增。",type:"info",closable:!1,"show-icon":""})]),a.createElementVNode("div",wd,[a.createVNode(S,{data:s.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:a.withCtx(()=>[a.createVNode(k,{type:"index",label:"序号",width:"60",fixed:""}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(u.value,z=>(a.openBlock(),a.createBlock(k,{key:z.prop,prop:z.prop,"min-width":z.minWidth||230,"class-name":z.isAccuracy?"accuracy-column":""},{header:a.withCtx(()=>[a.createElementVNode("div",Cd,[z.isAccuracy?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(T,{key:0,"model-value":b.value.includes(z.prop),onChange:x=>h(z.prop,x),onClick:_[0]||(_[0]=a.withModifiers(()=>{},["stop"]))},null,8,["model-value","onChange"])),a.createElementVNode("span",null,a.toDisplayString(z.label),1)])]),default:a.withCtx(({row:x,$index:g})=>[z.isAccuracy?(a.openBlock(),a.createElementBlock("span",{key:0,class:"accuracy-value",style:a.normalizeStyle({color:D(x[z.prop]),fontWeight:500})},a.toDisplayString(w(x[z.prop])),5)):(a.openBlock(),a.createBlock(J,{key:1,modelValue:x[z.prop],"onUpdate:modelValue":F=>x[z.prop]=F,size:"small",placeholder:"请输入"+z.label,onChange:F=>v(g,z.prop,F)},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"]))]),_:2},1032,["prop","min-width","class-name"]))),128))]),_:1},8,["data"])])])]),footer:a.withCtx(()=>[a.createElementVNode("div",Ed,[a.createVNode(V,{onClick:c,id:"themeBorderButton"},{default:a.withCtx(()=>_[1]||(_[1]=[a.createTextVNode("取消")])),_:1,__:[1]}),a.createVNode(V,{class:"ok-button",onClick:y,id:"themeButton"},{default:a.withCtx(()=>_[2]||(_[2]=[a.createTextVNode("确认")])),_:1,__:[2]})])]),_:1},8,["visible"])}}},Dd=ql._export_sfc(Sd,[["__scopeId","data-v-df66eb1f"]]),xt=l=>{var t;let r=l;(r==null?void 0:r[0])==="("&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1));let n=(t=$a.analyzeSplitToContent(r,","))==null?void 0:t.map(s=>((s==null?void 0:s[(s==null?void 0:s.length)-1])===","&&(s=s==null?void 0:s.slice(0,(s==null?void 0:s.length)-1)),ci(s)));return n=n==null?void 0:n.join(","),n};let Ma="$R",xo="[Any]";const Bd=l=>{var b,h;let r={},n=l==null?void 0:l[0],t=(h=(b=n==null?void 0:n.replace("{",Ma))==null?void 0:b.split(Ma))==null?void 0:h[0];(t==null?void 0:t[0])==="*"&&(t=t==null?void 0:t.slice(1,t==null?void 0:t.length)),t=t==null?void 0:t.split(":"),r.group=t;let s=l==null?void 0:l[1],u=s==null?void 0:s.replaceAll(xo,"");return(u==null?void 0:u[0])==="$"&&(u=u==null?void 0:u.slice(1,u==null?void 0:u.length)),r.filter=u,r},Nd=l=>{var c,w,D,A,_,H,k;let r=[],n=[],t=l==null?void 0:l.map(T=>{var S;let J=(S=$a.analyzeSplitToContent(T,"@"))==null?void 0:S[0];return(J==null?void 0:J[(J==null?void 0:J.length)-1])==="@"&&(J=J==null?void 0:J.slice(0,(J==null?void 0:J.length)-1)),J}),s="",u=$a.analyzeSplitToContent(t==null?void 0:t[0],":");n=(c=u==null?void 0:u.filter(T=>!(T!=null&&T.includes("{"))&&!(T!=null&&T.includes("["))))==null?void 0:c.join(""),(n==null?void 0:n[(n==null?void 0:n.length)-1])===":"&&(n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1)),(n==null?void 0:n[0])==="*"&&(n=n==null?void 0:n.slice(1,n==null?void 0:n.length)),n=n==null?void 0:n.split(":");let b=u==null?void 0:u.filter(T=>(T==null?void 0:T.includes("{"))||(T==null?void 0:T.includes("["))),h=(D=b==null?void 0:b[0])==null?void 0:D.slice(1,((w=b==null?void 0:b[0])==null?void 0:w.length)-1);h=(A=$a.analyzeSplitToContent(h,","))==null?void 0:A.map(T=>((T==null?void 0:T[(T==null?void 0:T.length)-1])===","&&(T=T==null?void 0:T.slice(0,(T==null?void 0:T.length)-1)),T));let v="@"+((_=$a.analyzeSplitToContent(l==null?void 0:l[0],"@"))==null?void 0:_[1]);((H=$a.analyzeSplitToContent(v,":"))==null?void 0:H.length)>1&&(r=Ct((k=$a.analyzeSplitToContent(v,":"))==null?void 0:k[1]),r=[r]);let y=[];return h==null||h.forEach((T,J)=>{var ze,De,ne,ke,X,pe,Ke,Sa,te,B,le,ye,se,Ne,ia,xa,Ha,ee,ea,Pe,ga,He,Ae,Re,Ge,Ka,Ia,R,P,Y,oe,ie,fa,ra,Ie,we,Ca,fe,Je,Ze,Fe,ka,$e,pa,re,Se,K;let S=(ze=T==null?void 0:T.split("=="))==null?void 0:ze[0],V=(De=T==null?void 0:T.split("=="))==null?void 0:De[1],z=[],x=[],g=[],F=[],q="Input",G=[],be=[];if((T==null?void 0:T[0])!=="{"){if((V==null?void 0:V[0])==="$")V=V==null?void 0:V.slice(1,V==null?void 0:V.length),z=(ke=(ne=V==null?void 0:V.split("*"))==null?void 0:ne[0])==null?void 0:ke.split(":"),x=(B=(te=(Sa=(Ke=(pe=(X=V==null?void 0:V.split("*"))==null?void 0:X[1])==null?void 0:pe.replace("{",Ma))==null?void 0:Ke.split(Ma))==null?void 0:Sa[0])==null?void 0:te.split(":"))==null?void 0:B.filter(je=>je!==""),g=(ye=(le=V==null?void 0:V.replace("{",Ma))==null?void 0:le.split(Ma))==null?void 0:ye[1],g=g==null?void 0:g.replaceAll("}",""),g=g==null?void 0:g.split(":"),q="Select";else if(((se=$a.analyzeSplitToContent(T,"="))==null?void 0:se.length)>1){let je=(Ne=S==null?void 0:S.split("="))==null?void 0:Ne[1];if(S=(ia=S==null?void 0:S.split("="))==null?void 0:ia[0],q="Select",!(T!=null&&T.includes("||")))je=(xa=je==null?void 0:je.split("/"))==null?void 0:xa.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)),F=je==null?void 0:je.map(Be=>({label:Be==null?void 0:Be.replaceAll("'",""),value:Be==null?void 0:Be.replaceAll("'","")}));else{let Be=[];(Pe=(ea=(ee=(Ha=T==null?void 0:T.replace("=",Ma))==null?void 0:Ha.split(Ma))==null?void 0:ee[1])==null?void 0:ea.split("||"))==null||Pe.forEach(za=>{var Ea,Ye,ua;G.push((Ye=(Ea=za==null?void 0:za.split("@Filter"))==null?void 0:Ea[0])==null?void 0:Ye.split("/")),Be.push((ua=za==null?void 0:za.split("@Filter"))==null?void 0:ua[1])}),be=Be==null?void 0:Be.map(za=>(za=za==null?void 0:za.slice(1,(za==null?void 0:za.length)-1),za))}}else if(T!=null&&T.includes("@")&&!(T!=null&&T.includes("||"))){S=(Ge=(Re=(Ae=(He=(ga=S==null?void 0:S.replace("(@",Ma))==null?void 0:ga.split(Ma))==null?void 0:He[0])==null?void 0:Ae.replace("@",Ma))==null?void 0:Re.split(Ma))==null?void 0:Ge[0];let je=T!=null&&T.includes("(@")?"(@"+((Ia=(Ka=T==null?void 0:T.replace("(@",Ma))==null?void 0:Ka.split(Ma))==null?void 0:Ia[1]):"@"+((P=(R=T==null?void 0:T.replace("@",Ma))==null?void 0:R.split(Ma))==null?void 0:P[1]);if(je=(Y=xt(je))==null?void 0:Y.split(","),je!=null&&je.find(Be=>Be==null?void 0:Be.includes("@Type"))){let Be=(oe=je==null?void 0:je.find(za=>za==null?void 0:za.includes("@Type")))==null?void 0:oe.split("=");Be!=null&&Be.includes("File")&&(q="Upload"),Be!=null&&Be.includes("Date")&&(q="Date"),Be!=null&&Be.includes("DateTime")&&(q="DateTime"),Be!=null&&Be.includes("Time")&&(q="Time")}}y.push({prop:S,label:S,value:"",menuPath:z,groups:x,columns:g,width:h==null?void 0:h.length,options:F,type:q,allContents:G,filterContents:be})}else{s=s+"@"+((ie=$a.analyzeSplitToContent(T,"@"))==null?void 0:ie[1]);let je=(fa=$a.analyzeSplitToContent(T,"@"))==null?void 0:fa[0];(je==null?void 0:je[(je==null?void 0:je.length)-1])==="@"&&(je=je==null?void 0:je.slice(0,(je==null?void 0:je.length)-1));let Be=(ra=je==null?void 0:je.split("=="))==null?void 0:ra[0],za=(Ie=je==null?void 0:je.split("=="))==null?void 0:Ie[1],Ea=(Ca=(we=za==null?void 0:za.split("*"))==null?void 0:we[0])==null?void 0:Ca.replace(xo,"");(Ea==null?void 0:Ea[0])==="$"&&(Ea=Ea==null?void 0:Ea.slice(1,Ea==null?void 0:Ea.length)),Ea=$a.analyzeSplitToContent(Ea,"$"),Ea=(fe=Ea==null?void 0:Ea.map((Ye,ua)=>{var _e;return ua===0&&(Ea==null?void 0:Ea.length)>1&&(Ye=(_e=Ye==null?void 0:Ye.split(":"))==null?void 0:_e[0]),(Ea==null?void 0:Ea.length)>1&&ua===(Ea==null?void 0:Ea.length)-1&&(Ye=Ye+":"),Ye}))==null?void 0:fe.join(":"),z=Ea==null?void 0:Ea.split(":"),x=(pa=($e=(ka=(Fe=(Ze=(Je=za==null?void 0:za.split("*"))==null?void 0:Je[1])==null?void 0:Ze.replace("{",Ma))==null?void 0:Fe.split(Ma))==null?void 0:ka[0])==null?void 0:$e.split(":"))==null?void 0:pa.filter(Ye=>Ye!==""),g=(Se=(re=za==null?void 0:za.replace("{",Ma))==null?void 0:re.split(Ma))==null?void 0:Se[1],g=g==null?void 0:g.replaceAll("}",""),Be=Be==null?void 0:Be.slice(1,(Be==null?void 0:Be.length)-1),g=g==null?void 0:g.split(","),q="Select",(K=Be==null?void 0:Be.split(","))==null||K.forEach((Ye,ua)=>{var _e,Z;y.push({prop:Ye,label:Ye,value:"",menuPath:z,groups:x,columns:(_e=g==null?void 0:g[ua])==null?void 0:_e.split(":"),width:(Z=Be==null?void 0:Be.split(","))==null?void 0:Z.length,type:q})})}}),{groupName:n,formContents:y,contents:r,filter:s}},Ct=l=>{var t,s;let r=[],n=l.slice(1,(l==null?void 0:l.length)-1);if((n==null?void 0:n[0])!=="[")(t=$a.analyzeSplitToContent(n,","))==null||t.forEach(u=>{(u==null?void 0:u[(u==null?void 0:u.length)-1])===","&&(u=u.slice(0,(u==null?void 0:u.length)-1)),r.push(u??"")});else{let u=[];(s=$a.analyzeSplitToContent(n,","))==null||s.forEach(b=>{(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)),u.push(Ct(b))}),r=u}return r},si=(l,r)=>{var k,T,J,S,V,z,x,g,F,q,G,be,ze,De,ne,ke,X,pe,Ke,Sa,te,B,le,ye,se,Ne,ia,xa,Ha,ee,ea,Pe,ga,He,Ae,Re,Ge,Ka,Ia,R,P,Y,oe,ie,fa,ra,Ie,we,Ca,fe,Je,Ze,Fe,ka,$e,pa,re,Se,K,je,Be,za,Ea,Ye,ua;let n,t=[],s=[],u=[],b=[],h=[],v=[],y=[],c="Input",w,D="",A="",_=[],H="";if(l!=null&&l.includes("@Pam")||l!=null&&l.includes("==")||l!=null&&l.includes("="))if(l!=null&&l.includes("@Pam")){let _e=$a.analyzeSplitToContent(l,"=");if((_e==null?void 0:_e.length)>1){l=_e==null?void 0:_e[0],l=l==null?void 0:l.slice(0,(l==null?void 0:l.length)-1);let We=_e==null?void 0:_e[(_e==null?void 0:_e.length)-1];(We==null?void 0:We[0])==="&"&&(We=We==null?void 0:We.slice(1,We==null?void 0:We.length)),A=(T=(k=We==null?void 0:We.replace("(",Ma))==null?void 0:k.split(Ma))==null?void 0:T[0];let La=(S=(J=We==null?void 0:We.replace(")",Ma))==null?void 0:J.split(Ma))==null?void 0:S[0];La=(z=(V=La==null?void 0:La.replace("(",Ma))==null?void 0:V.split(Ma))==null?void 0:z[1],(La==null?void 0:La[0])==="{"&&(La=La==null?void 0:La.slice(1,La==null?void 0:La.length)),(La==null?void 0:La[(La==null?void 0:La.length)-1])==="}"&&(La=La==null?void 0:La.slice(0,(La==null?void 0:La.length)-1)),_=La==null?void 0:La.split(",");let ml=(g=(x=We==null?void 0:We.replace(")",Ma))==null?void 0:x.split(Ma))==null?void 0:g[1];ml&&ml!==""&&(H=xt(ml))}n=(q=(F=l==null?void 0:l.replace("@Pam",Ma))==null?void 0:F.split(Ma))==null?void 0:q[0];let Z=(be=(G=l==null?void 0:l.replace("@Pam",Ma))==null?void 0:G.split(Ma))==null?void 0:be[1];Z=Z==null?void 0:Z.slice(1,(Z==null?void 0:Z.length)-1),Z=(ze=$a.analyzeSplitToContent(Z,","))==null?void 0:ze.map(We=>(We="@"+We,We));let ya=Z==null?void 0:Z.find(We=>We==null?void 0:We.includes("@Type"));ya!=null&&ya.includes("File")&&(c="Upload"),ya!=null&&ya.includes("Date")&&(c="Date"),ya!=null&&ya.includes("DateTime")&&(c="DateTime"),ya!=null&&ya.includes("Time")&&(c="Time"),w=Z==null?void 0:Z.find(We=>We==null?void 0:We.includes("@IdentName")),w=w?(ne=(De=w==null?void 0:w.replace("=",Ma))==null?void 0:De.split(Ma))==null?void 0:ne[1]:n}else{if(n=(ke=l==null?void 0:l.split("=="))==null?void 0:ke[0],w=(X=l==null?void 0:l.split("=="))==null?void 0:X[0],l!=null&&l.includes("=")&&!(l!=null&&l.includes("=="))&&!((Sa=(Ke=(pe=l==null?void 0:l.replace("=",Ma))==null?void 0:pe.split(Ma))==null?void 0:Ke[1])!=null&&Sa.includes("||")))if(n=(te=l==null?void 0:l.split("="))==null?void 0:te[0],w=n,l!=null&&l.includes("(@")||l!=null&&l.includes("@")){if(l!=null&&l.includes("(@")){let Z=(B=l==null?void 0:l.split("(@"))==null?void 0:B[1];Z=Z==null?void 0:Z.slice(0,(Z==null?void 0:Z.length)-1),Z=(ye=(le=Z==null?void 0:Z.replace("(",Ma))==null?void 0:le.split(Ma))==null?void 0:ye[1],Z=Z==null?void 0:Z.slice(0,(Z==null?void 0:Z.length)-1),u==null||u.push(Z),l=(se=l==null?void 0:l.split("(@"))==null?void 0:se[0]}else{let Z=(Ne=l==null?void 0:l.split("@"))==null?void 0:Ne[1];Z=Z==null?void 0:Z.slice(0,(Z==null?void 0:Z.length)-1),Z=(xa=(ia=Z==null?void 0:Z.replace("(",Ma))==null?void 0:ia.split(Ma))==null?void 0:xa[1],Z=Z==null?void 0:Z.slice(0,(Z==null?void 0:Z.length)-1),u==null||u.push(Z),l=(Ha=l==null?void 0:l.split("@"))==null?void 0:Ha[0]}let _e=(ea=(ee=l==null?void 0:l.split("="))==null?void 0:ee[1])==null?void 0:ea.split("/");s.push(_e)}else t=(ga=$a.analyzeSplitToContent((Pe=l==null?void 0:l.split("="))==null?void 0:Pe[1],"/"))==null?void 0:ga.map(_e=>((_e==null?void 0:_e[(_e==null?void 0:_e.length)-1])==="/"&&(_e=_e==null?void 0:_e.slice(0,(_e==null?void 0:_e.length)-1)),_e)),t=t==null?void 0:t.map(_e=>({label:_e==null?void 0:_e.replaceAll("'",""),value:_e==null?void 0:_e.replaceAll("'","")}));else if((Re=(Ae=(He=l==null?void 0:l.replace("=",Ma))==null?void 0:He.split(Ma))==null?void 0:Ae[1])!=null&&Re.includes("||")){n=(Ge=l==null?void 0:l.split("="))==null?void 0:Ge[0],w=(Ka=l==null?void 0:l.split("="))==null?void 0:Ka[0];let _e=[];(Y=(P=(R=(Ia=l==null?void 0:l.replace("=",Ma))==null?void 0:Ia.split(Ma))==null?void 0:R[1])==null?void 0:P.split("||"))==null||Y.forEach(Z=>{var ya,We,La;s.push((We=(ya=Z==null?void 0:Z.split("@Filter"))==null?void 0:ya[0])==null?void 0:We.split("/")),_e.push((La=Z==null?void 0:Z.split("@Filter"))==null?void 0:La[1])}),u=_e==null?void 0:_e.map(Z=>(Z=Z==null?void 0:Z.slice(1,(Z==null?void 0:Z.length)-1),Z))}else{let _e=l==null?void 0:l.split("=="),Z=(oe=_e==null?void 0:_e.filter(ya=>(ya==null?void 0:ya[0])==="$"))==null?void 0:oe[0];if(Z&&!(Z!=null&&Z.includes("&"))){let ya=(ie=Z==null?void 0:Z.replace("*",Ma))==null?void 0:ie.split(Ma),We=(ya==null?void 0:ya[0])===""?r==null?void 0:r.value:ya==null?void 0:ya[0];We=We==null?void 0:We.replaceAll("[Any]",""),(We==null?void 0:We[0])==="$"&&(We=(fa=We==null?void 0:We.slice(1,We==null?void 0:We.length))==null?void 0:fa.replaceAll(":","/")),b=We==null?void 0:We.split("/");let La=(Ie=(ra=ya==null?void 0:ya[1])==null?void 0:ra.replace("{",Ma))==null?void 0:Ie.split(Ma),ml=La==null?void 0:La[0];(ml==null?void 0:ml[(ml==null?void 0:ml.length)-1])===":"&&(ml=ml==null?void 0:ml.slice(0,(ml==null?void 0:ml.length)-1)),h=ml==null?void 0:ml.split(":"),v=(Je=(fe=(Ca=(we=La==null?void 0:La[1])==null?void 0:we.replace("}",Ma))==null?void 0:Ca.split(Ma))==null?void 0:fe[0])==null?void 0:Je.split(":");let Aa=(ka=(Fe=(Ze=La==null?void 0:La[(La==null?void 0:La.length)-1])==null?void 0:Ze.replace("}",Ma))==null?void 0:Fe.split(Ma))==null?void 0:ka[1];Aa&&Aa!==""&&(D=xt(Aa))}if(_e!=null&&_e.some(ya=>(ya==null?void 0:ya[0])==="&")){let ya=($e=_e==null?void 0:_e.filter(ml=>(ml==null?void 0:ml[0])==="&"))==null?void 0:$e[0];(ya==null?void 0:ya[0])==="&"&&(ya=ya==null?void 0:ya.slice(1,ya==null?void 0:ya.length)),A=(re=(pa=ya==null?void 0:ya.replace("(",Ma))==null?void 0:pa.split(Ma))==null?void 0:re[0];let We=(K=(Se=ya==null?void 0:ya.replace(")",Ma))==null?void 0:Se.split(Ma))==null?void 0:K[0];We=(Be=(je=We==null?void 0:We.replace("(",Ma))==null?void 0:je.split(Ma))==null?void 0:Be[1],(We==null?void 0:We[0])==="{"&&(We=We==null?void 0:We.slice(1,We==null?void 0:We.length)),(We==null?void 0:We[(We==null?void 0:We.length)-1])==="}"&&(We=We==null?void 0:We.slice(0,(We==null?void 0:We.length)-1)),_=We==null?void 0:We.split(",");let La=(Ea=(za=ya==null?void 0:ya.replace(")",Ma))==null?void 0:za.split(Ma))==null?void 0:Ea[1];La&&La!==""&&(H=xt(La))}else if(!Z){let ya=_e==null?void 0:_e[(_e==null?void 0:_e.length)-1];ya=ya==null?void 0:ya.slice(1,(ya==null?void 0:ya.length)-1),ya=$a.analyzeSplitToContent(ya,","),ya=ya==null?void 0:ya.map(We=>((We==null?void 0:We[(We==null?void 0:We.length)-1])===","&&(We=We==null?void 0:We.slice(0,(We==null?void 0:We.length)-1)),We)),ya=ya==null?void 0:ya.map(We=>{var La,ml;if(We=We==null?void 0:We.replaceAll("$",""),We!=null&&We.includes(xo)){let Aa="",el=We==null?void 0:We.split(xo);Aa=((ml=(La=el==null?void 0:el[0])==null?void 0:La.split(":"))==null?void 0:ml[0])+":"+(el==null?void 0:el[1]),We=Aa}return We=We==null?void 0:We.replaceAll(":","/"),We}),y=ya}}c="Select"}else n=l,w=l;return n!=null&&n.includes("@Pam")&&(n=(ua=(Ye=l==null?void 0:l.replace("@Pam",Ma))==null?void 0:Ye.split(Ma))==null?void 0:ua[0],w=n),{label:n,prop:w,options:t,allContents:s,filterContents:u,menus:b,groups:h,words:v,align:"center",formType:c,filter:D,functionName:A,functionRelatedWords:_,calculatorFilter:H,relatedPages:y}},_o=(l,r)=>{var t,s,u,b,h,v,y,c,w,D,A,_,H,k,T,J,S,V,z,x,g,F,q,G,be,ze,De,ne,ke;let n=[];if((l==null?void 0:l[0])==="{"&&(l==null?void 0:l[(l==null?void 0:l.length)-1])==="}"&&!((b=(u=(s=(t=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1))==null?void 0:t.replace(":",Ma))==null?void 0:s.split(Ma))==null?void 0:u[0])!=null&&b.includes(","))){let X=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1),pe=(h=X==null?void 0:X.replace(":",Ma))==null?void 0:h.split(Ma);if(((v=$a.analyzeSplitToContent(pe==null?void 0:pe[1],"="))==null?void 0:v.length)===1){let Ke=pe==null?void 0:pe[0],Sa=[];(w=$a.analyzeSplitToContent((c=pe==null?void 0:pe[1])==null?void 0:c.slice(1,((y=pe==null?void 0:pe[1])==null?void 0:y.length)-1),","))==null||w.forEach(te=>{var B,le;((B=$a.analyzeSplitToContent(te,"="))==null?void 0:B.length)>1?((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)),Sa=[...Sa,..._o(te,r)]):((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)),Sa.push((le=_o(te,r))==null?void 0:le[0]))}),n==null||n.push({label:Ke,prop:Ke,children:Sa,align:"center"})}else{let Ke=[];if(((D=$a.analyzeSplitToContent(X,"="))==null?void 0:D.length)>=2){let te=(A=$a.analyzeSplitToContent(X,"="))==null?void 0:A[1],B=(_=$a.analyzeSplitToContent(te,"/"))==null?void 0:_.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));Ke=B==null?void 0:B.map(le=>(le=Ct(le),le))}let Sa=(V=(S=(J=(T=(k=(H=X==null?void 0:X.replace("{",Ma))==null?void 0:H.split(Ma))==null?void 0:k[1])==null?void 0:T.replace("}",Ma))==null?void 0:J.split(Ma))==null?void 0:S[0])==null?void 0:V.split(",");Sa==null||Sa.forEach((te,B)=>{(Ke==null?void 0:Ke.length)>0&&B===0?n==null||n.push({label:te,prop:te,align:"center",formType:"Select",relatedContents:Ke==null?void 0:Ke.map(le=>{let ye={};return Sa==null||Sa.forEach((se,Ne)=>{ye[se]=le==null?void 0:le[Ne]}),ye}),options:Ke==null?void 0:Ke.map(le=>({label:le==null?void 0:le[0],value:le==null?void 0:le[0]})),mainKey:!0}):n==null||n.push({label:te,prop:te,align:"center"})})}}else if((l==null?void 0:l[0])==="{")if(((z=$a.analyzeSplitToContent(l,"="))==null?void 0:z.length)===2&&((g=(x=$a.analyzeSplitToContent(l,"="))==null?void 0:x[1])==null?void 0:g[0])==="["){let X=[];if(((F=$a.analyzeSplitToContent(l,"="))==null?void 0:F.length)>=2){let Ke=(q=$a.analyzeSplitToContent(l,"="))==null?void 0:q[1],Sa=(G=$a.analyzeSplitToContent(Ke,"/"))==null?void 0:G.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));X=Sa==null?void 0:Sa.map(te=>(te=Ct(te),te))}let pe=(ze=(be=l==null?void 0:l.replace("}",Ma))==null?void 0:be.split(Ma))==null?void 0:ze[0];pe=(De=pe==null?void 0:pe.slice(1,pe==null?void 0:pe.length))==null?void 0:De.split(","),pe==null||pe.forEach((Ke,Sa)=>{(X==null?void 0:X.length)>0&&Sa===0?n==null||n.push({label:Ke,prop:Ke,align:"center",formType:"Select",relatedContents:X==null?void 0:X.map(te=>{let B={};return pe==null||pe.forEach((le,ye)=>{B[le]=te==null?void 0:te[ye]}),B}),options:X==null?void 0:X.map(te=>({label:te==null?void 0:te[0],value:te==null?void 0:te[0]})),mainKey:!0}):n==null||n.push({label:Ke,prop:Ke,align:"center"})})}else(ne=$a.analyzeSplitToContent(l,","))==null||ne.forEach(X=>{var pe,Ke,Sa,te,B,le,ye,se,Ne,ia,xa,Ha,ee,ea,Pe,ga,He,Ae,Re,Ge,Ka,Ia,R,P,Y,oe,ie,fa,ra,Ie,we,Ca,fe,Je,Ze,Fe,ka,$e,pa,re,Se;if((X==null?void 0:X[(X==null?void 0:X.length)-1])===","&&(X=X==null?void 0:X.slice(0,(X==null?void 0:X.length)-1)),(X==null?void 0:X[0])==="{"){let K=$a.analyzeSplitToContent(X,"="),je=K==null?void 0:K[(K==null?void 0:K.length)-1],Be=[],za=[],Ea=[],Ye=[],ua=[],_e=(pe=je==null?void 0:je.replace("*",Ma))==null?void 0:pe.split(Ma),Z=(_e==null?void 0:_e[0])===""?r==null?void 0:r.value:_e==null?void 0:_e[0];if(Z=Z==null?void 0:Z.replaceAll("[Any]",""),(Z==null?void 0:Z[(Z==null?void 0:Z.length)-1])===":"&&(Z=Z!=null&&Z.includes("(@")?((Ke=Z==null?void 0:Z.split("(@"))==null?void 0:Ke[0])+":":((Sa=Z==null?void 0:Z.split("@"))==null?void 0:Sa[0])+":"),(Z==null?void 0:Z[0])==="$"&&(Z=(te=Z==null?void 0:Z.slice(1,Z==null?void 0:Z.length))==null?void 0:te.replaceAll(":","/")),Z!=null&&Z.includes("$")){let el=(B=Z==null?void 0:Z.split("$"))==null?void 0:B[0];el=(le=el==null?void 0:el.split("/"))==null?void 0:le[0],Z=el+"/"+((ye=Z==null?void 0:Z.split("$"))==null?void 0:ye[1])+"/"}(Z==null?void 0:Z[(Z==null?void 0:Z.length)-1])==="/"&&(Z==null?void 0:Z[(Z==null?void 0:Z.length)-2])==="/"&&(Z=Z==null?void 0:Z.slice(0,(Z==null?void 0:Z.length)-1)),Be=Z==null?void 0:Z.split("/");let ya=(Ne=(se=_e==null?void 0:_e[1])==null?void 0:se.replace("{",Ma))==null?void 0:Ne.split(Ma);if((Ha=(xa=(ia=_e==null?void 0:_e[1])==null?void 0:ia.split("(@"))==null?void 0:xa[0])!=null&&Ha.includes("&&")||(Pe=(ea=(ee=_e==null?void 0:_e[1])==null?void 0:ee.split("@"))==null?void 0:ea[0])!=null&&Pe.includes("&&")){let el=(ga=_e==null?void 0:_e[1])!=null&&ga.includes("(@")?(Re=(Ae=(He=_e==null?void 0:_e[1])==null?void 0:He.split("(@"))==null?void 0:Ae[0])==null?void 0:Re.split("&&"):(Ia=(Ka=(Ge=_e==null?void 0:_e[1])==null?void 0:Ge.split("@"))==null?void 0:Ka[0])==null?void 0:Ia.split("&&");Ye=el==null?void 0:el.map(Pa=>{var Te,il;return(Pa==null?void 0:Pa[0])==="*"&&(Pa=Pa==null?void 0:Pa.slice(1,Pa==null?void 0:Pa.length)),Pa=(il=(Te=Pa==null?void 0:Pa.replace("{",Ma))==null?void 0:Te.split(Ma))==null?void 0:il[0],(Pa==null?void 0:Pa[(Pa==null?void 0:Pa.length)-1])===":"&&(Pa=Pa==null?void 0:Pa.slice(0,(Pa==null?void 0:Pa.length)-1)),Pa=Pa==null?void 0:Pa.split(":"),Pa});let Ja=[];el==null||el.forEach((Pa,Te)=>{var il,ma;(Pa==null?void 0:Pa[0])==="*"&&(Pa=Pa==null?void 0:Pa.slice(1,Pa==null?void 0:Pa.length)),Pa=(ma=(il=Pa==null?void 0:Pa.replace("{",Ma))==null?void 0:il.split(Ma))==null?void 0:ma[1],(Pa==null?void 0:Pa[(Pa==null?void 0:Pa.length)-1])==="}"&&(Pa=Pa==null?void 0:Pa.slice(0,(Pa==null?void 0:Pa.length)-1)),Pa=Pa==null?void 0:Pa.split(","),Ja.push(Te===0?(Pa==null?void 0:Pa.length)-1:Pa==null?void 0:Pa.length),ua=[...ua,...Pa]}),Ja=(R=$a.prefixSum(Ja))==null?void 0:R.map(Pa=>Pa==null?void 0:Pa.total),Ye=Ye==null?void 0:Ye.map((Pa,Te)=>({number:Ja==null?void 0:Ja[Te],contents:Pa}))}let We=ya==null?void 0:ya[0];(We==null?void 0:We[(We==null?void 0:We.length)-1])===":"&&(We=We==null?void 0:We.slice(0,(We==null?void 0:We.length)-1)),za=We==null?void 0:We.split(":"),Ea=(ie=(oe=(Y=(P=ya==null?void 0:ya[1])==null?void 0:P.replace("}",Ma))==null?void 0:Y.split(Ma))==null?void 0:oe[0])==null?void 0:ie.split(",");let La=(ra=K==null?void 0:K[0])==null?void 0:ra.slice(1,((fa=K==null?void 0:K[0])==null?void 0:fa.length)-2),ml="",Aa="";if((Ie=K==null?void 0:K[(K==null?void 0:K.length)-1])!=null&&Ie.includes("(@")?(Aa=(fe=(Ca=(we=K==null?void 0:K[(K==null?void 0:K.length)-1])==null?void 0:we.replace("(@",Ma))==null?void 0:Ca.split(Ma))==null?void 0:fe[1],Aa="(@"+Aa):(Je=K==null?void 0:K[(K==null?void 0:K.length)-1])!=null&&Je.includes("@")&&(Aa=(ka=(Fe=(Ze=K==null?void 0:K[(K==null?void 0:K.length)-1])==null?void 0:Ze.replace("@",Ma))==null?void 0:Fe.split(Ma))==null?void 0:ka[1],Aa="@"+Aa),(($e=$a.analyzeSplitToContent(Aa,"&"))==null?void 0:$e.length)>1){let el=(re=(pa=$a.analyzeSplitToContent(Aa,"}"))==null?void 0:pa.map(Ja=>{var Pa;return Ja!=null&&Ja.includes("@")||(Ja=""),Ja!=null&&Ja.includes("@")&&(Ja=(Pa=$a.analyzeSplitToContent(Ja,":"))==null?void 0:Pa[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==null?void 0:Ja[0])==="("&&(Ja=Ja==null?void 0:Ja.slice(1,(Ja==null?void 0:Ja.length)-1))),Ja}))==null?void 0:re.filter(Ja=>Ja!=="");Aa=(Aa==null?void 0:Aa.length)===1?el:"("+(el==null?void 0:el.join(","))+")"}Aa&&Aa!==""&&(ml=xt(Aa)),(Se=La==null?void 0:La.split(","))==null||Se.forEach((el,Ja)=>{var Pa,Te,il;n.push({label:el,prop:el,align:"center",menus:Be,groups:(Ye==null?void 0:Ye.length)===0?za:(Pa=Ye==null?void 0:Ye.find(ma=>(ma==null?void 0:ma.number)>=Ja))==null?void 0:Pa.contents,words:(ua==null?void 0:ua.length)===0?(Te=Ea==null?void 0:Ea[Ja])==null?void 0:Te.split(":"):(il=ua==null?void 0:ua[Ja])==null?void 0:il.split(":"),formType:(Be==null?void 0:Be.length)>0?"Select":"Input",mainKey:Ja===0,filter:ml,isMainPath:(Ye==null?void 0:Ye.findIndex(ma=>(ma==null?void 0:ma.number)>=Ja))===0})})}else n.push({label:X,prop:X,align:"center"})});else{let X=(ke=$a.analyzeSplitToContent(l,","))==null?void 0:ke.map(pe=>((pe==null?void 0:pe[(pe==null?void 0:pe.length)-1])===","&&(pe=pe==null?void 0:pe.slice(0,(pe==null?void 0:pe.length)-1)),pe));X==null||X.forEach(pe=>{n.push(si(pe,r))})}return n},Td=(l,r)=>{var b,h,v,y,c;let n=l;if(!l)return;let t="";((b=$a.analyzeSplitToContent(l,"}"))==null?void 0:b.length)>1&&(n=(h=$a.analyzeSplitToContent(l,"}"))==null?void 0:h[0],t=(v=$a.analyzeSplitToContent(l,"}"))==null?void 0:v[1]),(l==null?void 0:l[0])==="{"&&(l==null?void 0:l[(l==null?void 0:l.length)-1])==="}"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1));let s=[],u=[];return s.push({label:"排序",prop:"sort"}),s.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(y=$a.analyzeSplitToContent(n,","))==null||y.forEach(w=>{var D;(w==null?void 0:w[(w==null?void 0:w.length)-1])===","&&(w=w==null?void 0:w.slice(0,(w==null?void 0:w.length)-1)),(w==null?void 0:w[0])==="{"?(D=_o(w,r))==null||D.forEach(A=>{s.push(A)}):s.push(si(w,r))}),t!==""&&((t==null?void 0:t[0])=="{"&&(t=t==null?void 0:t.slice(1,(t==null?void 0:t.length)-1)),(c=$a.analyzeSplitToContent(t,","))==null||c.forEach(w=>{var D;(w==null?void 0:w[(w==null?void 0:w.length)-1])===","&&(w=w==null?void 0:w.slice(0,(w==null?void 0:w.length)-1)),(w==null?void 0:w[0])==="{"?(D=_o(w,r))==null||D.forEach(A=>{u.push(A)}):u.push(si(w,r))})),{columns:s,secondColumns:u}},ci=l=>{var r,n,t;if(l!=null&&l.includes("@Filter")||l!=null&&l.includes("@Condition"))return l;{let s=(n=(r=l==null?void 0:l.replace("(",Ma))==null?void 0:r.split(Ma))==null?void 0:n[1];return s=s==null?void 0:s.slice(0,(s==null?void 0:s.length)-1),s=(t=$a.analyzeSplitToContent(s,","))==null?void 0:t.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)),s=s==null?void 0:s.join(","),l!=null&&l.includes("@Quote")&&(s!=null&&s.includes("@Type")||(s=s===""?s+"@Type=Manual":s+",@Type=Manual"),s!=null&&s.includes("@SonSync")||(s=s===""?s+"@SonSync=No":s+",@SonSync=No"),s!=null&&s.includes("@FatherSync")||(s=s===""?s+"@FatherSync=Yes":s+",@FatherSync=Yes")),s}},Qi=l=>{let r=l==null?void 0:l.map(n=>{var t,s;return{menus:n==null?void 0:n.menus,content:((t=n==null?void 0:n.menus)==null?void 0:t.join("/"))+Ma+((s=n==null?void 0:n.groups)==null?void 0:s.join("/"))}});return r=r==null?void 0:r.filter(n=>{var t;return(n==null?void 0:n.menus)&&((t=n==null?void 0:n.menus)==null?void 0:t.length)>0}),r=r==null?void 0:r.map(n=>n==null?void 0:n.content),r=[...new Set(r)],r=r==null?void 0:r.map(n=>{var t,s;return{menus:(t=n==null?void 0:n.split(Ma))==null?void 0:t[0],groups:((s=n==null?void 0:n.split(Ma))==null?void 0:s[1])??[]}}),r},Ad=(l,r,n="")=>{var T,J,S,V,z,x,g,F,q,G,be,ze,De,ne,ke,X,pe,Ke,Sa,te,B,le,ye,se,Ne,ia,xa,Ha,ee,ea,Pe,ga,He,Ae,Re,Ge,Ka,Ia,R,P,Y,oe,ie,fa,ra,Ie,we,Ca,fe,Je,Ze,Fe,ka,$e,pa;let t=[];if(((T=l==null?void 0:l[0])==null?void 0:T[0])!=="*"&&((J=l==null?void 0:l[0])==null?void 0:J[0])!=="$")return;let s=$a.analyzeSplitToContent(l==null?void 0:l[0],":"),u=s==null?void 0:s.filter(re=>!((re==null?void 0:re[0])!=="{"&&(re==null?void 0:re[0])!=="["));t=(S=s==null?void 0:s.filter(re=>(re==null?void 0:re[0])!=="{"&&(re==null?void 0:re[0])!=="["))==null?void 0:S.join("");let b="",h="";if((t==null?void 0:t[(t==null?void 0:t.length)-1])===":"&&(t=t==null?void 0:t.slice(0,(t==null?void 0:t.length)-1)),t!=null&&t.includes("(@")&&(t==null?void 0:t[0])==="*"&&(b="(@"+((V=t==null?void 0:t.split("(@"))==null?void 0:V[1]),t=(z=t==null?void 0:t.split("(@"))==null?void 0:z[0]),t!=null&&t.includes("@")&&(t==null?void 0:t[0])==="*"&&(b="@"+((g=(x=t==null?void 0:t.replace("@",Ma))==null?void 0:x.split(Ma))==null?void 0:g[1]),t=(q=(F=t==null?void 0:t.replace("@",Ma))==null?void 0:F.split(Ma))==null?void 0:q[0]),(t==null?void 0:t[0])==="*"?(t=t==null?void 0:t.slice(1,t==null?void 0:t.length),t=t==null?void 0:t.split(":")):(h=I.cloneDeep(t)+":",t=[]),h=h+((u==null?void 0:u[0])??""),(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)),b!==""&&h!=="")if((h==null?void 0:h[(h==null?void 0:h.length)-1])===")")if(h!=null&&h.includes("(@")){let re=(G=h==null?void 0:h.split("(@"))==null?void 0:G[0],Se=(be=h==null?void 0:h.split("(@"))==null?void 0:be[1];Se="(@"+(Se==null?void 0:Se.slice(0,(Se==null?void 0:Se.length)-1))+b,h=re+Se}else{let re=(De=(ze=h==null?void 0:h.replace("@",Ma))==null?void 0:ze.split(Ma))==null?void 0:De[0],Se=(ke=(ne=h==null?void 0:h.replace("@",Ma))==null?void 0:ne.split(Ma))==null?void 0:ke[1];Se="(@"+Se+b,h=re+Se}else h=h+b;let v=u==null?void 0:u[1];(h==null?void 0:h[0])==="["&&(v=I.cloneDeep(h)+(v??""),h="");let y=v?Ct(v):[];!(y!=null&&y.every(re=>Array.isArray(re)))&&(y==null?void 0:y.length)>0&&(y=[y]);let c=(X=$a.analyzeSplitToContent(h,"@"))!=null&&X[1]?"@"+((pe=$a.analyzeSplitToContent(h,"@"))==null?void 0:pe[1]):"";if(h=(Ke=$a.analyzeSplitToContent(h,"@"))==null?void 0:Ke[0],(h==null?void 0:h[0])==="$"&&(c=I.cloneDeep(h)+(c??""),h=""),n!=="")if(b!=="")c=(n==null?void 0:n[(n==null?void 0:n.length)-1])!==")"?n+b:(n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1))+","+b;else{let re="";if(n!=null&&n.includes("(@")){let Se=(ye=(le=(B=(te=(Sa=n==null?void 0:n.replace("(@",Ma))==null?void 0:Sa.split(Ma))==null?void 0:te[0])==null?void 0:B.replace("{",Ma))==null?void 0:le.split(Ma))==null?void 0:ye[0];re=((Se==null?void 0:Se[(Se==null?void 0:Se.length)-1])===":"?Se==null?void 0:Se.slice(0,(Se==null?void 0:Se.length)-1):Se)+"(@"+((Ne=(se=n==null?void 0:n.replace("(@",Ma))==null?void 0:se.split(Ma))==null?void 0:Ne[1])}else if(n!=null&&n.includes("@")){let Se=(ea=(ee=(Ha=(xa=(ia=n==null?void 0:n.replace("@",Ma))==null?void 0:ia.split(Ma))==null?void 0:xa[0])==null?void 0:Ha.replace("{",Ma))==null?void 0:ee.split(Ma))==null?void 0:ea[0];re=((Se==null?void 0:Se[(Se==null?void 0:Se.length)-1])===":"?Se==null?void 0:Se.slice(0,(Se==null?void 0:Se.length)-1):Se)+"@"+((ga=(Pe=n==null?void 0:n.replace("@",Ma))==null?void 0:Pe.split(Ma))==null?void 0:ga[1])}c=re===""?n:re}if(c!==""){(c==null?void 0:c[0])==="$"&&(c=c==null?void 0:c.slice(1,c==null?void 0:c.length)),(c==null?void 0:c[(c==null?void 0:c.length)-1])===":"&&(c=c==null?void 0:c.slice(0,(c==null?void 0:c.length)-1));let re="";if(c!=null&&c.includes("(@")){re=(Ae=(He=c==null?void 0:c.replace("(@",Ma))==null?void 0:He.split(Ma))==null?void 0:Ae[0];let Se=(Ge=(Re=c==null?void 0:c.replace("(@",Ma))==null?void 0:Re.split(Ma))==null?void 0:Ge[1];Se="@"+(Se==null?void 0:Se.slice(0,(Se==null?void 0:Se.length)-1));let K=(Ka=$a.analyzeSplitToContent(Se,","))==null?void 0:Ka.map(je=>((je==null?void 0:je[(je==null?void 0:je.length)-1])===","&&(je=je==null?void 0:je.slice(0,(je==null?void 0:je.length)-1)),(je==null?void 0:je[(je==null?void 0:je.length)-1])!==")"&&(je=je+")"),ci(je)));c=re+"("+(K==null?void 0:K.join(","))+")"}else{re=(R=(Ia=c==null?void 0:c.replace("@",Ma))==null?void 0:Ia.split(Ma))==null?void 0:R[0];let Se=(Y=(P=c==null?void 0:c.replace("@",Ma))==null?void 0:P.split(Ma))==null?void 0:Y[1];if(Se){Se="@"+Se;let K=(oe=$a.analyzeSplitToContent(Se,","))==null?void 0:oe.map(je=>((je==null?void 0:je[(je==null?void 0:je.length)-1])!==")"&&(je=je+")"),ci(je)));c=re+"("+(K==null?void 0:K.join(","))+")"}else c=re}}(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));let w=Td(h,r),D=h===""?[]:(w==null?void 0:w.columns)??[],A=na.getColumnChild(D),_=A;_=_==null?void 0:_.filter(re=>{var Se,K;return(re==null?void 0:re.filter)&&(re==null?void 0:re.filter)!==""&&(((Se=re==null?void 0:re.filter)==null?void 0:Se.includes("@SonSync"))||((K=re==null?void 0:re.filter)==null?void 0:K.includes("@FatherSync")))});let H=_==null?void 0:_.filter(re=>{var Se,K,je;return((Se=re==null?void 0:re.filter)==null?void 0:Se.includes("@SonSync"))&&((je=(K=re==null?void 0:re.filter)==null?void 0:K.split(","))==null?void 0:je.find(Be=>(Be==null?void 0:Be.includes("@SonSync"))&&(Be==null?void 0:Be.includes("Yes"))))}),k=_==null?void 0:_.filter(re=>{var Se,K,je;return((Se=re==null?void 0:re.filter)==null?void 0:Se.includes("@FatherSync"))&&((je=(K=re==null?void 0:re.filter)==null?void 0:K.split(","))==null?void 0:je.find(Be=>(Be==null?void 0:Be.includes("@FatherSync"))&&(Be==null?void 0:Be.includes("Yes"))))});if(A=A==null?void 0:A.map(re=>{var Se,K;return{menus:re==null?void 0:re.menus,content:((Se=re==null?void 0:re.menus)==null?void 0:Se.join("/"))+Ma+((K=re==null?void 0:re.groups)==null?void 0:K.join("/"))}}),k=Qi(k),H=Qi(H),A=A==null?void 0:A.filter(re=>{var Se;return(re==null?void 0:re.menus)&&((Se=re==null?void 0:re.menus)==null?void 0:Se.length)>0}),A=A==null?void 0:A.map(re=>re==null?void 0:re.content),A=[...new Set(A)],A=A==null?void 0:A.map(re=>{var Se,K;return{menus:(Se=re==null?void 0:re.split(Ma))==null?void 0:Se[0],groups:((K=re==null?void 0:re.split(Ma))==null?void 0:K[1])??[]}}),D!=null&&D.some(re=>{var Se;return Array.isArray(re==null?void 0:re.children)&&((Se=re==null?void 0:re.children)==null?void 0:Se.length)>0})&&(D=[D]),(y==null?void 0:y.length)>0&&(Array.isArray(y==null?void 0:y[0])&&((ie=y==null?void 0:y[0])!=null&&ie.every(re=>Array.isArray(re)))?y=y==null?void 0:y.map((re,Se)=>(re=re.map((K,je)=>(K.unshift("{}"),K.unshift((je+1).toString()),K)),re)):y=y==null?void 0:y.map((re,Se)=>(re.unshift("{}"),re.unshift((Se+1).toString()),re))),w!=null&&w.secondColumns&&((fa=w==null?void 0:w.secondColumns)==null?void 0:fa.length)>0&&((y==null?void 0:y.length)>0?y=y==null?void 0:y.map((re,Se)=>{var K,je;return Array.isArray(re==null?void 0:re[0])?re=re==null?void 0:re.map((Be,za)=>{var Ea,Ye;return Be.unshift((Ye=(Ea=w==null?void 0:w.secondColumns)==null?void 0:Ea[za])==null?void 0:Ye.prop),Be}):re.unshift((je=(K=w==null?void 0:w.secondColumns)==null?void 0:K[Se])==null?void 0:je.prop),re}):y=(ra=w==null?void 0:w.secondColumns)==null?void 0:ra.map((re,Se)=>(re=[re==null?void 0:re.label],re.push(Se),re)),D.unshift({label:"",prop:"disabled",sortable:!1})),(D==null?void 0:D.length)>0){let re=I.cloneDeep(D);Array.isArray(re==null?void 0:re[0])&&(re=re==null?void 0:re[0]);let Se=na.getColumnChild(re);Se=Se==null?void 0:Se.map(K=>K==null?void 0:K.filter),Se=Se==null?void 0:Se.filter(K=>K&&K!==""),Se=[...new Set(Se)],(Se==null?void 0:Se.length)>0&&(c=Ma+(c==null?void 0:c.slice(1,(c==null?void 0:c.length)-1))+(c!=null&&c.slice(1,(c==null?void 0:c.length)-1)?",":"")+((Ie=I.cloneDeep(Se))==null?void 0:Ie.join(";")))}if((c==null?void 0:c[0])!=="("&&(c!=null&&c.includes("(@"))){let re=(Ca=(we=c==null?void 0:c.replace("(",Ma))==null?void 0:we.split(Ma))==null?void 0:Ca[0],Se=[{menus:(Je=(fe=re==null?void 0:re.split("*"))==null?void 0:fe[0])==null?void 0:Je.replaceAll(":","/"),groups:(Ze=re==null?void 0:re.split("*"))==null?void 0:Ze[1]}],K=(ka=(Fe=c==null?void 0:c.replace("(",Ma))==null?void 0:Fe.split(Ma))==null?void 0:ka[1];(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=$a.analyzeSplitToContent(K,","),($e=K==null?void 0:K.find(je=>je==null?void 0:je.includes("@FatherSync")))!=null&&$e.includes("Yes")&&(k=[...k,...Se]),(pa=K==null?void 0:K.find(je=>je==null?void 0:je.includes("@SonSync")))!=null&&pa.includes("Yes")&&(H=[...H,...Se])}return{groupName:t,tableColumns:D,tableFilter:c,tableContents:y,columns:(w==null?void 0:w.secondColumns)??[],relatedQuotes:A,fatherSyncContents:k,sonSyncContents:H}},Ks=(l,r)=>(l=l==null?void 0:l.map((n,t)=>{var s,u,b,h;if(Array.isArray(n))n=n==null?void 0:n.map(v=>{var y,c,w,D;return v!=null&&v.isMainPath||(((y=v==null?void 0:v.children)==null?void 0:y.length)>0?v.children=Ks(v.children,r):((c=v==null?void 0:v.menus)==null?void 0:c.length)>0&&!((w=n==null?void 0:n[0])!=null&&w.isMainPath)&&(v.menus=(D=v.menus)==null?void 0:D.map((A,_)=>{var H,k;return((H=v.menus)==null?void 0:H.length)-1===_&&A===""&&(r==null?void 0:r.parentContent)+"/"!==((k=v.menus)==null?void 0:k.join("/"))&&(A=r==null?void 0:r.value),v}),v.bindMenus=v.menus)),v});else{if(t===0&&((s=n.menus)==null?void 0:s.length)>0&&(n.mainKey=!0),n!=null&&n.isMainPath)return n;((u=n.menus)==null?void 0:u.length)>0&&!((b=l==null?void 0:l[0])!=null&&b.isMainPath)&&(n.menus=(h=n.menus)==null?void 0:h.map((v,y)=>{var c,w;return((c=n.menus)==null?void 0:c.length)-1===y&&v===""&&(r==null?void 0:r.parentContent)+"/"!==((w=n.menus)==null?void 0:w.join("/"))&&(v=r==null?void 0:r.value),v}),n.bindMenus=n.menus)}return n}),l),zd=(l,r)=>(l=l==null?void 0:l.map(n=>((n==null?void 0:n.key)==="header"&&(n.contents=Ks(n.contents,r)),n)),l),ui=(l,r)=>{let n=l;return Array.isArray(n==null?void 0:n[0])?n=n==null?void 0:n.map(t=>(t=ui(t,r),t)):n=n==null?void 0:n.map(t=>{var s,u;return t!=null&&t.children&&((s=t==null?void 0:t.children)==null?void 0:s.length)>0?t.children=ui(t==null?void 0:t.children,r):t!=null&&t.words&&((u=t==null?void 0:t.words)==null?void 0:u.length)>0&&(r!=null&&r.find(b=>{var h,v,y,c;return((c=(h=t==null?void 0:t.prop)==null?void 0:h.split("."))==null?void 0:c[((y=(v=t==null?void 0:t.prop)==null?void 0:v.split("."))==null?void 0:y.length)-1])===b}))&&(t.mainKey=!0),t}),n};let tr="$R";const Md=I.useUnit(I.pinia),{selectTitle:sn}=I.storeToRefs(Md),cn=[{key:"@MaxRow",value:"onNumSlice",order:1},{key:"@Type",value:"onRandomContents",order:2},{key:"@Filter",value:"onConditionContents",order:4},{key:"@FatherSync",value:"onFatherPaceContents",order:1},{key:"@SonSync",value:"onPaceContents",order:1},{key:"@MainPam",value:"onMainTagContents",order:3},{key:"@TopButton",value:"onButtonContents",order:1},{key:"@ColumnButton",value:"onPamButtonContents",order:1},{key:"@RowButton",value:"onRowButtonContents",order:1},{key:"@BottomButton",value:"onBottomButtonContents",order:1},{key:"@Related",value:"onRelated",order:1},{key:"@RowNum",value:"onRowNum",order:1},{key:"@FixRow",value:"onFixRow",order:1},{key:"@ReqItem",value:"onReqItem",order:1},{key:"@Condition",value:"onConditionContent",order:1},{key:"@Tab",value:"onTabs",order:1},{key:"@SinChoice",value:"onSinChoice",order:1},{key:"@TextSize",value:"onTextSize",order:1},{key:"@TextRGBA",value:"onTextRGBA",order:1},{key:"@Position",value:"onPosition",order:4},{key:"@Size",value:"onSize",order:4}];var et=(l=>(l[l.ORDINARY=1]="ORDINARY",l[l.BLOCK=2]="BLOCK",l[l.TEXT=3]="TEXT",l))(et||{});const Ws=l=>{if(l==null)return null;const r=String(l).trim();if(!r.startsWith("[")||!r.endsWith("]"))return null;const n=r.slice(1,-1).split(",").map(t=>Number(t.trim()));return n.length<2||n.some(t=>Number.isNaN(t))?null:[n[0],n[1]]},Ys=(l,r)=>{var H,k,T,J,S;const n=Array.isArray(l)?l:[],t=n.find(V=>(V==null?void 0:V.key)==="formContent"),s=Array.isArray(t==null?void 0:t.contents)?t.contents:[],u=((H=n.find(V=>(V==null?void 0:V.key)==="_gridLayoutMeta"))==null?void 0:H.contents)??{},b=(s==null?void 0:s[0])??{};let h=((k=r==null?void 0:r.position)==null?void 0:k[0])??(u==null?void 0:u._positionStartRow)??(b==null?void 0:b._positionStartRow),v=((T=r==null?void 0:r.position)==null?void 0:T[1])??(u==null?void 0:u._positionRowSpan)??(b==null?void 0:b._positionRowSpan);(!h||Number.isNaN(h)||h<1)&&(h=1),(!v||Number.isNaN(v)||v<1)&&(v=1);let y=((J=r==null?void 0:r.size)==null?void 0:J[0])??(u==null?void 0:u._sizeStart)??(b==null?void 0:b._sizeStart),c=((S=r==null?void 0:r.size)==null?void 0:S[1])??(u==null?void 0:u._sizeEnd)??(b==null?void 0:b._sizeEnd);(y===void 0||Number.isNaN(y))&&(y=0),(c===void 0||Number.isNaN(c))&&(c=1),y=Math.max(0,Math.min(1,y)),c=Math.max(0,Math.min(1,c)),c<=y&&(y=0,c=1);const w=c-y,D=Math.max(1,Math.round(1/w));let A=n.map(V=>{if((V==null?void 0:V.key)!=="formContent")return V;const z=Array.isArray(V==null?void 0:V.contents)?V.contents:[];return{...V,contents:z.map(x=>({...x,width:D,_positionStartRow:h,_positionRowSpan:v,_sizeStart:y,_sizeEnd:c}))}});const _={_positionStartRow:h,_positionRowSpan:v,_sizeStart:y,_sizeEnd:c};return A.some(V=>(V==null?void 0:V.key)==="_gridLayoutMeta")?A=A.map(V=>(V==null?void 0:V.key)==="_gridLayoutMeta"?{...V,contents:_}:V):A.push({key:"_gridLayoutMeta",contents:_}),A},Od=l=>{const r=Ws(l==null?void 0:l.filter);return r?Ys(l==null?void 0:l.contents,{position:r}):l==null?void 0:l.contents},Id=l=>{const r=Ws(l==null?void 0:l.filter);return r?Ys(l==null?void 0:l.contents,{size:r}):l==null?void 0:l.contents},Ld=l=>{if((l==null?void 0:l.filter)!==void 0&&(l==null?void 0:l.filter)!==null&&(l==null?void 0:l.filter)!==""){let r=l==null?void 0:l.contents;const n=Number(l==null?void 0:l.filter);return r.push({key:"textSize",contents:Number.isNaN(n)?l==null?void 0:l.filter:n}),r}return l==null?void 0:l.contents},Vd=l=>{if((l==null?void 0:l.filter)!==void 0&&(l==null?void 0:l.filter)!==null&&(l==null?void 0:l.filter)!==""){let r=l==null?void 0:l.contents;return r.push({key:"textRGBA",contents:l==null?void 0:l.filter}),r}return l==null?void 0:l.contents},$d=l=>{var n;return(l==null?void 0:l.filter.toUpperCase())==="ALL"||(l==null?void 0:l.filter.toUpperCase())==="NONE"?l==null?void 0:l.contents:(n=l==null?void 0:l.contents)==null?void 0:n.map(t=>{var s;return(t==null?void 0:t.key)==="tableContents"&&(t.contents=(s=t.contents)==null?void 0:s.slice(0,parseInt(l==null?void 0:l.filter))),t})},Rd=async l=>{var r,n,t,s,u,b,h,v,y,c,w,D,A,_,H,k,T,J,S,V,z,x,g,F,q,G,be,ze,De,ne;if((l==null?void 0:l.filter)==="Random")return(r=l==null?void 0:l.contents)==null?void 0:r.map(X=>((X==null?void 0:X.key)==="tableContents"&&(X.contents=$a.shuffle(X.contents)),X));if((l==null?void 0:l.filter)==="Ordin"){let ke=l==null?void 0:l.contents;return ke.push({key:"enableWrap",contents:1}),ke}if((l==null?void 0:l.filter)==="Block"){let ke=l==null?void 0:l.contents;return ke.push({key:"enableWrap",contents:2}),ke}if((l==null?void 0:l.filter)==="Auto"){let ke=(t=(n=l==null?void 0:l.contents)==null?void 0:n.find(se=>(se==null?void 0:se.key)==="header"))==null?void 0:t.contents;Array.isArray(ke==null?void 0:ke[0])&&(ke=ke==null?void 0:ke[0]),ke=na.getColumnChild(ke);let X=ke==null?void 0:ke.filter(se=>(se==null?void 0:se.filter)&&(se==null?void 0:se.filter)!==""),pe=new Map,Ke=[];X==null||X.forEach(se=>{var Ne,ia;pe.get((Ne=se==null?void 0:se.menus)==null?void 0:Ne.join("/"))||(pe.set((ia=se==null?void 0:se.menus)==null?void 0:ia.join("/"),se),Ke.push(se))});let Sa=(u=(s=sn==null?void 0:sn.value)==null?void 0:s.find(se=>(se==null?void 0:se.condition)==="child"))==null?void 0:u.value,te=Ke==null?void 0:Ke.map(se=>{var Ne,ia,xa;return se=(Ne=se==null?void 0:se.menus)==null?void 0:Ne.join("/"),(se==null?void 0:se[(se==null?void 0:se.length)-1])==="/"&&((xa=(ia=sn==null?void 0:sn.value)==null?void 0:ia.find(Ha=>(Ha==null?void 0:Ha.condition)==="child"))==null?void 0:xa.parentContent)+"/"!==se?se=se+Sa:(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}),B=Ke==null?void 0:Ke.map(se=>se==null?void 0:se.groups),le=te==null?void 0:te.map(async se=>{let Ne=await Pr(se,!1);return{path:se,contents:Ne}});le=await Promise.all(le);let ye=le==null?void 0:le.map((se,Ne)=>{var xa,Ha,ee,ea,Pe,ga,He;let ia=(xa=se==null?void 0:se.contents)==null?void 0:xa.filter(Ae=>{var Re,Ge;return(Ae==null?void 0:Ae.name)===((Ge=B==null?void 0:B[Ne])==null?void 0:Ge[((Re=B==null?void 0:B[Ne])==null?void 0:Re.length)-1])});return ia=(ea=(ee=(Ha=ia==null?void 0:ia[0])==null?void 0:Ha.compData)==null?void 0:ee.find(Ae=>(Ae==null?void 0:Ae.key)==="tableContents"))==null?void 0:ea.contents,(se==null?void 0:se.path)===((ga=(Pe=sn==null?void 0:sn.value)==null?void 0:Pe.find(Ae=>(Ae==null?void 0:Ae.condition)==="child"))==null?void 0:ga.parentContent)&&(ia=((He=ia==null?void 0:ia.map(Ae=>{for(let Re in Ae)if(Ae[Re]===Sa)return Ae}))==null?void 0:He.filter(Ae=>Ae))??[]),ia??[]});if(ye=ye==null?void 0:ye.map(se=>(se=se==null?void 0:se.map(Ne=>{var xa;let ia={};for(let Ha in Ne)if(X!=null&&X.find(ee=>{var ea,Pe;return((Pe=(ea=ee==null?void 0:ee.words)==null?void 0:ea[0])==null?void 0:Pe.replaceAll("'",""))===Ha})){let ee=(xa=X==null?void 0:X.find(ea=>{var Pe,ga;return((ga=(Pe=ea==null?void 0:ea.words)==null?void 0:Pe[0])==null?void 0:ga.replaceAll("'",""))===Ha}))==null?void 0:xa.prop;ia[ee]=Ne==null?void 0:Ne[Ha]}return ia}),se)),ye=$a.cartesianProduct(ye),Array.isArray(ye==null?void 0:ye[0])&&(ye=ye==null?void 0:ye[0]),(ye==null?void 0:ye.length)>0&&((w=(h=(b=X==null?void 0:X[0])==null?void 0:b.menus)==null?void 0:h.join("/"))==null?void 0:w[((c=(y=(v=X==null?void 0:X[0])==null?void 0:v.menus)==null?void 0:y.join("/"))==null?void 0:c.length)-1])==="/")return(D=l==null?void 0:l.contents)==null?void 0:D.map(Ne=>{var ia;return(Ne==null?void 0:Ne.key)==="tableContents"&&(ye==null?void 0:ye.length)>0&&(Ne.contents=((ia=Ne.contents)==null?void 0:ia.length)>0?Ne.contents:ye),Ne})}if((l==null?void 0:l.filter)==="Text"){let ke=l==null?void 0:l.contents;return ke.push({key:"enableWrap",contents:3}),ke}if((l==null?void 0:l.filter)==="Manual"){let ke=[],X=[],pe=(_=(A=l==null?void 0:l.contents)==null?void 0:A.find(B=>(B==null?void 0:B.key)==="filter"))==null?void 0:_.contents;(pe==null?void 0:pe[(pe==null?void 0:pe.length)-1])===")"?pe=(k=(H=pe==null?void 0:pe.replace("(",tr))==null?void 0:H.split(tr))==null?void 0:k[0]:pe="",pe!==""&&(ke=((J=(T=pe==null?void 0:pe.split("*"))==null?void 0:T[0])==null?void 0:J.split(":"))??[],X=((g=(x=(z=(V=(S=pe==null?void 0:pe.split("*"))==null?void 0:S[1])==null?void 0:V.replace("{",tr))==null?void 0:z.split(tr))==null?void 0:x[0])==null?void 0:g.split(":"))??[]);let Ke=(q=(F=l==null?void 0:l.contents)==null?void 0:F.find(B=>(B==null?void 0:B.key)==="filter"))==null?void 0:q.contents;Ke=(be=(G=Ke==null?void 0:Ke.replace("(",tr))==null?void 0:G.split(tr))==null?void 0:be[1],Ke=Ke==null?void 0:Ke.slice(0,(Ke==null?void 0:Ke.length)-1);let Sa=(ze=l==null?void 0:l.contents)==null?void 0:ze.map(B=>{var le,ye,se,Ne,ia,xa,Ha,ee,ea;return(B==null?void 0:B.key)==="header"&&((le=B==null?void 0:B.contents)!=null&&le.every(Pe=>(Pe==null?void 0:Pe.mainKey)!==!0)&&Array.isArray(B==null?void 0:B.contents)&&!Array.isArray((ye=B==null?void 0:B.contents)==null?void 0:ye[0])?B.contents=(se=B==null?void 0:B.contents)==null?void 0:se.map((Pe,ga)=>{var He,Ae,Re;return Pe!=null&&Pe.isMainPath||(ga===0?(Pe.mainKey=!0,Pe.formType="Select",Pe.bindMenus=ke,Pe.groups=((He=Pe.groups)==null?void 0:He.length)===0?X:Pe.groups,Pe.words=((Ae=Pe.words)==null?void 0:Ae.length)===0?[Pe==null?void 0:Pe.prop]:Pe.words,Pe.filter=Ke,(!(Pe!=null&&Pe.menus)||((Re=Pe==null?void 0:Pe.menus)==null?void 0:Re.length)===0)&&(Pe.menus=ke)):(Pe.mainKey=!1,Pe.bindMenus=ke)),Pe}):Array.isArray((Ne=B==null?void 0:B.contents)==null?void 0:Ne[0])&&((Ha=(xa=(ia=B==null?void 0:B.contents)==null?void 0:ia[0])==null?void 0:xa.filter(()=>(ke==null?void 0:ke.length)>0))==null?void 0:Ha.length)>0&&(B.contents[0]=(ea=(ee=B==null?void 0:B.contents)==null?void 0:ee[0])==null?void 0:ea.map((Pe,ga)=>{var He,Ae,Re;return Pe!=null&&Pe.isMainPath||(ga===0?(Pe.mainKey=!0,Pe.formType="Select",Pe.bindMenus=ke,Pe.groups=((He=Pe.groups)==null?void 0:He.length)===0?X:Pe.groups,Pe.words=((Ae=Pe.words)==null?void 0:Ae.length)===0?[Pe==null?void 0:Pe.prop]:Pe.words,Pe.filter=Ke,(!(Pe!=null&&Pe.menus)||Array.isArray(Pe==null?void 0:Pe.menus)&&((Re=Pe==null?void 0:Pe.menus)==null?void 0:Re.length)===0)&&(ke==null?void 0:ke.length)>0&&(Pe.menus=ke)):(Pe.mainKey=!1,Pe.bindMenus=ke)),Pe}))),B}),te=(De=Sa==null?void 0:Sa.find(B=>(B==null?void 0:B.key)==="header"))==null?void 0:De.contents;if(Array.isArray(te==null?void 0:te[0])&&(te=te==null?void 0:te[0]),te=na.getColumnChild(te),te!=null&&te.some(B=>{var le,ye;return((ye=B==null?void 0:B.menus)==null?void 0:ye[((le=B==null?void 0:B.menus)==null?void 0:le.length)-1])===""})){let B=(ne=sn==null?void 0:sn.value)==null?void 0:ne.find(le=>(le==null?void 0:le.condition)==="child");Sa=zd(Sa,B)}return Sa}return l==null?void 0:l.contents},Pd=l=>{var t,s,u,b;let r=l==null?void 0:l.filter;if(r!=null&&r.includes("*")&&(r="({"+((s=(t=r==null?void 0:r.replace("{",tr))==null?void 0:t.split(tr))==null?void 0:s[1])),r=(u=r==null?void 0:r.replaceAll("{",""))==null?void 0:u.replaceAll("}",""),(r==null?void 0:r[0])!=="("&&(r="("+r+")"),r.slice(1,(r==null?void 0:r.length)-1)==="undefined")return l==null?void 0:l.contents;let n=na.calculatorAndToOr(r);if((n==null?void 0:n.length)>0){let h=[];return n==null||n.forEach(y=>{let c={};for(let w in y){let D=w;D!=null&&D.includes("[")||(c[D]=y[w])}h.push(c)}),(b=l==null?void 0:l.contents)==null?void 0:b.map(y=>{var w,D,A;let c=(D=(w=l==null?void 0:l.contents)==null?void 0:w.find(_=>(_==null?void 0:_.key)==="header"))==null?void 0:D.contents;if(c=(A=na.getEqualChild(c))==null?void 0:A.filter(_=>(_==null?void 0:_.label)!=="操作"),(y==null?void 0:y.key)==="tableContents"){let H=na.tableToForm(y==null?void 0:y.contents,c);h==null||h.forEach(k=>{var T,J;for(let S in k)!((T=H==null?void 0:H[0])!=null&&T.find(V=>{var z;return(V==null?void 0:V.key)===S||((z=V==null?void 0:V.key)==null?void 0:z.includes(S))}))&&!(H!=null&&H.find(V=>{var z;return(V==null?void 0:V.key)===S||((z=V==null?void 0:V.key)==null?void 0:z.includes(S))}))||(((J=k[S])==null?void 0:J[0])!=="!"?H=H==null?void 0:H.filter(V=>{var z,x;return((z=V==null?void 0:V.find(g=>{var F;return(g==null?void 0:g.key)===S||((F=g==null?void 0:g.key)==null?void 0:F.includes(S))}))==null?void 0:z.value)===k[S]||Array.isArray(k==null?void 0:k[S])&&((x=k==null?void 0:k[S])==null?void 0:x.find(g=>{var F;return((F=V==null?void 0:V.find(q=>{var G;return(q==null?void 0:q.key)===S||((G=q==null?void 0:q.key)==null?void 0:G.includes(S))}))==null?void 0:F.value)===g}))}):H=H==null?void 0:H.filter(V=>{var z;return((z=V==null?void 0:V.find(x=>{var g;return(x==null?void 0:x.key)===S||((g=x==null?void 0:x.key)==null?void 0:g.includes(S))}))==null?void 0:z.value)!==k[S]}))}),(H==null?void 0:H.length)===0?y.contents=[]:y.contents=H==null?void 0:H.map(k=>{let T={};return k==null||k.forEach(J=>{T[J==null?void 0:J.key]=J==null?void 0:J.value}),T})}return y})}return l==null?void 0:l.contents},Fd=l=>l==null?void 0:l.contents,jd=l=>l==null?void 0:l.contents,Hd=l=>{var r,n,t,s;if((l==null?void 0:l.filter)!==""&&(l!=null&&l.filter)){let u=(t=(n=l==null?void 0:l.filter)==null?void 0:n.slice(1,((r=l==null?void 0:l.filter)==null?void 0:r.length)-1))==null?void 0:t.split(",");return(s=l==null?void 0:l.contents)==null?void 0:s.map(h=>((h==null?void 0:h.key)==="header"&&(h.contents=ui(h.contents,u)),h))}return l==null?void 0:l.contents},Ud=l=>{var n;let r=(l==null?void 0:l.filter)??"";return(r==null?void 0:r[0])==="{"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),r!==""?(n=l==null?void 0:l.contents)==null?void 0:n.map(s=>{var u;return(s==null?void 0:s.key)==="extraButton"&&(s.contents=(u=r==null?void 0:r.split(","))==null?void 0:u.map(b=>({label:b,prop:b}))),s}):l==null?void 0:l.contents},qd=l=>l==null?void 0:l.contents,Kd=l=>{var n;let r=(l==null?void 0:l.filter)??"";return(r==null?void 0:r[0])==="{"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),r!==""?(n=l==null?void 0:l.contents)==null?void 0:n.map(s=>{var u;return(s==null?void 0:s.key)==="rowButton"&&(s.contents=(u=r==null?void 0:r.split(","))==null?void 0:u.map(b=>({label:b,prop:b}))),s}):l==null?void 0:l.contents},Wd=l=>{var n;let r=(l==null?void 0:l.filter)??"";if((r==null?void 0:r[0])==="{"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),r!==""){let t=l==null?void 0:l.contents,s=(n=r==null?void 0:r.split(","))==null?void 0:n.map(u=>({label:u,prop:u}));return t.push({key:"bottomButton",contents:s}),t}return l==null?void 0:l.contents},Yd=l=>{var r,n,t,s;if(((r=l==null?void 0:l.filter)==null?void 0:r[0])!=="["){const u=parseInt(l==null?void 0:l.filter);return!u||Number.isNaN(u)?l==null?void 0:l.contents:(n=l==null?void 0:l.contents)==null?void 0:n.map(h=>{var v;return(h==null?void 0:h.key)==="formContent"&&(h.contents=(v=h.contents)==null?void 0:v.map(y=>(y.width=u,y))),h})}if(((t=l==null?void 0:l.filter)==null?void 0:t[0])==="["){let u=Ct(l==null?void 0:l.filter),b=Array.isArray(u)?u.map(v=>parseInt(v)).filter(v=>!!v&&!Number.isNaN(v)):[];return b.length?(s=l==null?void 0:l.contents)==null?void 0:s.map(v=>{if((v==null?void 0:v.key)==="formContent"){const y=v.contents??[];v.contents=y.map((c,w)=>{const D=w+1;let A=0,_=0;for(let k=0;k<b.length;k++){if(_+=b[k],D<=_){A=k;break}k===b.length-1&&(A=b.length-1)}const H=b[A]||b[b.length-1]||1;return c.width=H,c})}return v}):l==null?void 0:l.contents}return l==null?void 0:l.contents},Gd=l=>{var r;if((l==null?void 0:l.filter)!==""){let n=l==null?void 0:l.filter;return(n==null?void 0:n[0])==="{"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n=n==null?void 0:n.split(","),(r=l==null?void 0:l.contents)==null?void 0:r.map(s=>{var u,b,h;return(s==null?void 0:s.key)==="header"&&(Array.isArray((u=s==null?void 0:s.contents)==null?void 0:u[0])?s.contents[0]=(h=s.contents[0])==null?void 0:h.map(v=>(n!=null&&n.find(y=>y===(v==null?void 0:v.prop))&&(v.fixed="left"),v)):s.contents=(b=s.contents)==null?void 0:b.map(v=>(n!=null&&n.find(y=>y===(v==null?void 0:v.prop))&&(v.fixed="left"),v))),s})}return l==null?void 0:l.contents},Jd=l=>{var r;if((l==null?void 0:l.filter)!==""){let n=l==null?void 0:l.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 t=u=>(n!=null&&n.find(b=>b===(u==null?void 0:u.prop))&&(u.required=!0),u!=null&&u.children&&Array.isArray(u.children)&&(u.children=u.children.map(b=>t(b))),u);return(r=l==null?void 0:l.contents)==null?void 0:r.map(u=>{var b,h,v;return(u==null?void 0:u.key)==="header"&&(Array.isArray((b=u==null?void 0:u.contents)==null?void 0:b[0])?u.contents[0]=(v=u.contents[0])==null?void 0:v.map(y=>t(y)):u.contents=(h=u.contents)==null?void 0:h.map(y=>t(y))),u})}return l==null?void 0:l.contents},Xd=async l=>{var t,s,u,b,h,v,y,c,w,D,A,_,H,k,T,J,S;const r=I.useUnit(I.pinia),{chooseTitle:n}=I.storeToRefs(r);if((l==null?void 0:l.filter)==="true"){let V=await Pr(((s=(t=n==null?void 0:n.value)==null?void 0:t[0])==null?void 0:s.parentContent)??((b=(u=n==null?void 0:n.value)==null?void 0:u[0])==null?void 0:b.relatedContent),!1),z=(v=(h=n==null?void 0:n.value)==null?void 0:h[0])==null?void 0:v.value;(c=(y=V==null?void 0:V[0])==null?void 0:y.compData)!=null&&c.find(q=>(q==null?void 0:q.key)==="header")?V=(w=V==null?void 0:V[0])==null?void 0:w.compData:V=(A=(D=V==null?void 0:V.filter(q=>{var G;return(G=q==null?void 0:q.compData)==null?void 0:G.find(be=>(be==null?void 0:be.key)==="header")}))==null?void 0:D[0])==null?void 0:A.compData;let x=(_=V==null?void 0:V.find(q=>(q==null?void 0:q.key)==="header"))==null?void 0:_.contents;Array.isArray(x==null?void 0:x[0])&&(x=x==null?void 0:x[0]),x=((H=x==null?void 0:x.find(q=>q==null?void 0:q.isMainKey))==null?void 0:H.prop)??((k=x==null?void 0:x[0])==null?void 0:k.prop);let g=(J=(T=V==null?void 0:V.find(q=>(q==null?void 0:q.key)==="tableContents"))==null?void 0:T.contents)==null?void 0:J.find(q=>(q==null?void 0:q[x])===z);return(S=l==null?void 0:l.contents)==null?void 0:S.map(q=>{var G;return(q==null?void 0:q.key)==="formContent"&&(q.contents=(G=q.contents)==null?void 0:G.map(be=>(be.value=g==null?void 0:g[be==null?void 0:be.prop],be))),q})}return l==null?void 0:l.contents},Zd=l=>{var r,n,t,s,u;if((r=l==null?void 0:l.extra)!=null&&r.row){let b=l==null?void 0:l.filter;if(b!=null&&b.includes("*")&&(b="({"+((t=(n=b==null?void 0:b.replace("{",tr))==null?void 0:n.split(tr))==null?void 0:t[1])),b=(s=b==null?void 0:b.replaceAll("{",""))==null?void 0:s.replaceAll("}",""),(b==null?void 0:b[0])!=="("&&(b="("+b+")"),b.slice(1,(b==null?void 0:b.length)-1)==="undefined")return l==null?void 0:l.contents;let h=na.calculatorAndToOr(b),v=h==null?void 0:h[0],y=(u=l==null?void 0:l.extra)==null?void 0:u.row,c=[];for(let w in v)(v==null?void 0:v[w])===(y==null?void 0:y[w])?c.push(!0):c.push(!1);return c!=null&&c.every(w=>w===!0)?l==null?void 0:l.contents:[]}else return l==null?void 0:l.contents},Qd=l=>{if(l!=null&&l.filter){let r=l==null?void 0:l.contents;return r.push({key:"tab",contents:l==null?void 0:l.filter}),r}return l==null?void 0:l.contents},ep=l=>{if(l!=null&&l.filter){let r=l==null?void 0:l.contents;return r.push({key:"choice",contents:l==null?void 0:l.filter}),r}return l==null?void 0:l.contents},Gs={onNumSlice:$d,onRandomContents:Rd,onConditionContents:Pd,onFatherPaceContents:Fd,onPaceContents:jd,onMainTagContents:Hd,onButtonContents:Ud,onPamButtonContents:qd,onRowButtonContents:Kd,onRelated:Xd,onRowNum:Yd,onFixRow:Gd,onReqItem:Jd,onBottomButtonContents:Wd,onConditionContent:Zd,onTabs:Qd,onSinChoice:ep,onTextSize:Ld,onTextRGBA:Vd,onPosition:Od,onSize:Id},ap=async(l,r)=>{var u,b,h,v,y,c,w,D,A,_,H,k,T,J,S,V,z,x,g;let n="";if(((u=l==null?void 0:l.find(F=>(F==null?void 0:F.key)==="filter"))==null?void 0:u.contents)!==""&&(n=(b=l==null?void 0:l.find(F=>(F==null?void 0:F.key)==="filter"))==null?void 0:b.contents),n===""||!n)return l;(n==null?void 0:n[0])==="("?n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1):(n=(v=(h=n==null?void 0:n.replace("(",tr))==null?void 0:h.split(tr))==null?void 0:v[1],n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1));let t=(y=$a.analyzeSplitToContent(n,","))==null?void 0:y.map(F=>((F==null?void 0:F[(F==null?void 0:F.length)-1])===","&&(F=F==null?void 0:F.slice(0,(F==null?void 0:F.length)-1)),F!=null&&F.includes("(")||(F=F==null?void 0:F.replaceAll(":","=")),F)),s=l;for(let F in t){let q,G="";(c=t==null?void 0:t[F])!=null&&c.includes("(")?(q=(A=(D=(w=t==null?void 0:t[F])==null?void 0:w.replace("(",tr))==null?void 0:D.split(tr))==null?void 0:A[0],G="("+((k=(H=(_=t==null?void 0:t[F])==null?void 0:_.replace("(",tr))==null?void 0:H.split(tr))==null?void 0:k[1])):(q=(S=(J=(T=t==null?void 0:t[F])==null?void 0:T.replace("=",tr))==null?void 0:J.split(tr))==null?void 0:S[0],G=(x=(z=(V=t==null?void 0:t[F])==null?void 0:V.replace("=",tr))==null?void 0:z.split(tr))==null?void 0:x[1]);let be=(g=cn==null?void 0:cn.find(ze=>(ze==null?void 0:ze.key)===q))==null?void 0:g.value;if(be){const ze=Gs[be];s=await ze({contents:s,filter:G})}}return s},wo=async(l,r)=>{var b,h,v,y,c,w,D,A,_,H,k,T,J,S,V,z,x,g,F,q;let n="";if(((b=l==null?void 0:l.find(G=>(G==null?void 0:G.key)==="filter"))==null?void 0:b.contents)!==""&&(n=(h=l==null?void 0:l.find(G=>(G==null?void 0:G.key)==="filter"))==null?void 0:h.contents),n===""||!n)return l;(n==null?void 0:n[0])===","&&(n=n==null?void 0:n.slice(1,n==null?void 0:n.length)),(n==null?void 0:n[0])==="("?n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1):(n==null?void 0:n[0])==="@"||(n=(y=(v=n==null?void 0:n.replace("(",tr))==null?void 0:v.split(tr))==null?void 0:y[1],n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1));let t=(c=$a.analyzeSplitToContent(n,","))==null?void 0:c.map(G=>((G==null?void 0:G[(G==null?void 0:G.length)-1])===","&&(G=G==null?void 0:G.slice(0,(G==null?void 0:G.length)-1)),G!=null&&G.includes("(")||(G=G==null?void 0:G.replaceAll(":","=")),G)),s=l,u=new Map;t==null||t.forEach(G=>{var ze,De,ne;let be=(ze=G==null?void 0:G.split("="))==null?void 0:ze[0];if(be==="@MainPam"&&u.get(be)){let ke=u.get(be);ke=ke==null?void 0:ke.slice(0,(ke==null?void 0:ke.length)-1);let X=(ne=(De=G==null?void 0:G.replace("{",tr))==null?void 0:De.split(tr))==null?void 0:ne[1];X=ke+","+X,u.set(be,X)}else u.set(be,G)}),t=Array.from(u.values()),t=t==null?void 0:t.sort((G,be)=>{var ze,De;return((ze=cn==null?void 0:cn.find(ne=>be==null?void 0:be.includes(ne==null?void 0:ne.key)))==null?void 0:ze.order)-((De=cn==null?void 0:cn.find(ne=>G==null?void 0:G.includes(ne==null?void 0:ne.key)))==null?void 0:De.order)});for(let G in t){let be,ze="";(w=t==null?void 0:t[G])!=null&&w.includes("(")&&((D=t==null?void 0:t[G])!=null&&D.includes("@Filter"))?(be=(H=(_=(A=t==null?void 0:t[G])==null?void 0:A.replace("(",tr))==null?void 0:_.split(tr))==null?void 0:H[0],ze="("+((J=(T=(k=t==null?void 0:t[G])==null?void 0:k.replace("(",tr))==null?void 0:T.split(tr))==null?void 0:J[1])):(be=(z=(V=(S=t==null?void 0:t[G])==null?void 0:S.replace("=",tr))==null?void 0:V.split(tr))==null?void 0:z[0],ze=(F=(g=(x=t==null?void 0:t[G])==null?void 0:x.replace("=",tr))==null?void 0:g.split(tr))==null?void 0:F[1]);let De=(q=cn==null?void 0:cn.find(ne=>(ne==null?void 0:ne.key)===be))==null?void 0:q.value;if(De){const ne=Gs[De];s=await ne({contents:s,filter:ze,extra:r})}}return s};let oo="$R";const lp=I.useUnit(I.pinia),{selectTitle:rp}=I.storeToRefs(lp);let np=[{label:"新增",prop:"新增"},{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],tp=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"},{label:"复制新增",prop:"复制新增"},{label:"删除",prop:"删除"}],op=[{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],ip=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"}];const es=async(l,r)=>{let n=[],t=l==null?void 0:l.map(async s=>{var c,w,D,A,_,H,k,T,J,S,V,z,x,g,F,q,G,be,ze,De,ne,ke,X,pe,Ke,Sa,te,B,le,ye,se,Ne,ia,xa,Ha,ee,ea,Pe,ga,He,Ae,Re,Ge,Ka,Ia,R,P,Y,oe,ie,fa,ra,Ie,we,Ca,fe,Je,Ze,Fe,ka,$e,pa,re,Se,K,je,Be,za,Ea;let u=(A=(D=(w=(c=s==null?void 0:s.contents)==null?void 0:c.find(Ye=>{var ua;return(ua=Ye==null?void 0:Ye.key)==null?void 0:ua.includes("struct")}))==null?void 0:w.value)==null?void 0:D[0])==null?void 0:A.类型,b=Object.values(s==null?void 0:s.name);b=b==null?void 0:b.reverse();let h=(_=s==null?void 0:s.contents)==null?void 0:_.map(Ye=>Ye==null?void 0:Ye.key),v={comp:u,isShow:s==null?void 0:s.is_show,name:b==null?void 0:b[0],id:s==null?void 0:s.object_id,relatedTables:h,menuFilter:(H=s==null?void 0:s.filter)==null?void 0:H.menuFilter,status:s==null?void 0:s.status,fatherSyncContents:(k=s==null?void 0:s.filter)==null?void 0:k.fatherSyncs,relatedQuotes:(T=s==null?void 0:s.filter)==null?void 0:T.quotes,sonSyncContents:(J=s==null?void 0:s.filter)==null?void 0:J.sonSyncs};for(let Ye in b)parseInt(Ye)>=1&&(v[`name${parseInt(Ye)-1}`]=b[Ye]);let y=(V=(S=s==null?void 0:s.filter)==null?void 0:S.menuFilter)==null?void 0:V.split(",");if(((z=y==null?void 0:y.filter(Ye=>Ye==null?void 0:Ye.includes("@Filter")))==null?void 0:z.length)>0){let Ye=y==null?void 0:y.filter(La=>La==null?void 0:La.includes("@Filter"));Ye=Ye==null?void 0:Ye[0],Ye=(g=(x=Ye==null?void 0:Ye.replace("(",oo))==null?void 0:x.split(oo))==null?void 0:g[1],Ye=Ye==null?void 0:Ye.slice(0,(Ye==null?void 0:Ye.length)-1),Ye!=null&&Ye.includes("*")&&(Ye=(q=(F=Ye==null?void 0:Ye.replace("{",oo))==null?void 0:F.split(oo))==null?void 0:q[1],Ye=Ye==null?void 0:Ye.replace("}","")),Ye=na.calculatorAndToOr(Ye);let ua=(r==null?void 0:r.originPath)??"";(ua==null?void 0:ua[(ua==null?void 0:ua.length)-1])==="/"&&(ua=ua==null?void 0:ua.slice(0,(ua==null?void 0:ua.length)-1));let _e=await Pr(ua,!1),Z=(G=_e==null?void 0:_e.filter(La=>(La==null?void 0:La.comp)==="Table"))==null?void 0:G[0];Z=(ze=(be=Z==null?void 0:Z.compData)==null?void 0:be.find(La=>(La==null?void 0:La.key)==="tableContents"))==null?void 0:ze.contents;let ya=(ne=(De=rp.value)==null?void 0:De.find(La=>(La==null?void 0:La.condition)==="child"))==null?void 0:ne.value;Z=(ke=Z==null?void 0:Z.map(La=>{for(let ml in La)if((La==null?void 0:La[ml])===ya)return La}))==null?void 0:ke.filter(La=>La),Z=Z==null?void 0:Z[0],Ye=Ye==null?void 0:Ye[0];let We=[];for(let La in Ye){let ml="";ll.isObject(Z)&&(ml=(pe=(X=Object.keys(Z))==null?void 0:X.filter(Aa=>Aa==null?void 0:Aa.includes("."+La)))==null?void 0:pe[0]),ml!==""&&(Z!=null&&Z[ml])&&(Ye==null?void 0:Ye[La])===(Z==null?void 0:Z[ml])||Z!=null&&Z[La]&&(Ye==null?void 0:Ye[La])===(Z==null?void 0:Z[La])?We.push(!0):We.push(!1)}if(We!=null&&We.some(La=>La===!1)&&((Sa=r==null?void 0:r.originPath)==null?void 0:Sa[((Ke=r==null?void 0:r.originPath)==null?void 0:Ke.length)-1])!=="/")return}if(u==="Table"||u==="Method"){let Ye=((te=s==null?void 0:s.contents)==null?void 0:te.find(Aa=>{var el;return(el=Aa==null?void 0:Aa.key)==null?void 0:el.includes("content")}))||[],ua=[];v.comp="Table",Ye.value=(B=Ye==null?void 0:Ye.value)==null?void 0:B.sort((Aa,el)=>parseInt(Aa==null?void 0:Aa.id)-parseInt(el==null?void 0:el.id)),Ye.value=(le=Ye==null?void 0:Ye.value)==null?void 0:le.map(Aa=>{let el={};for(let Ja in Aa)JSON.stringify(Aa==null?void 0:Aa[Ja])==="{}"?el[Ja]="":el[Ja]=Aa==null?void 0:Aa[Ja];return el}),ua.push({key:"tableContents",contents:Ye==null?void 0:Ye.value});let _e=(xa=(ia=(Ne=(se=(ye=s==null?void 0:s.contents)==null?void 0:ye.find(Aa=>{var el;return(el=Aa==null?void 0:Aa.key)==null?void 0:el.includes("struct")}))==null?void 0:se.value)==null?void 0:Ne[0])==null?void 0:ia.结构)==null?void 0:xa.contents;Array.isArray(_e==null?void 0:_e[0])?_e[0]=(Ha=_e==null?void 0:_e[0])==null?void 0:Ha.filter(Aa=>(Aa==null?void 0:Aa.prop)!=="sort"&&(Aa==null?void 0:Aa.prop)!=="relatedId"):_e=_e==null?void 0:_e.filter(Aa=>(Aa==null?void 0:Aa.prop)!=="sort"&&(Aa==null?void 0:Aa.prop)!=="relatedId"),ua.push({key:"header",contents:_e}),ua.push({key:"filter",contents:(He=(ga=(Pe=(ea=(ee=s==null?void 0:s.contents)==null?void 0:ee.find(Aa=>{var el;return(el=Aa==null?void 0:Aa.key)==null?void 0:el.includes("struct")}))==null?void 0:ea.value)==null?void 0:Pe[0])==null?void 0:ga.引用)==null?void 0:He.contents});let Z=np,ya=I.cloneDeep(tp);u==="Method"&&ya.push({label:"生成方法",prop:"生成方法"}),!Array.isArray(_e==null?void 0:_e[0])&&((Ae=_e==null?void 0:_e[0])==null?void 0:Ae.prop)==="disabled"&&(Z=op,ya=ip);const We=["推力","真空","压力","温度","流量"],La=v.name;La&&We.includes(La)&&(Z=[...Z],Z.push({label:"导出paraform",prop:"导出paraform",type:"methodButton"}));let ml=[];if(!Array.isArray(_e==null?void 0:_e[0])&&(_e!=null&&_e.some(Aa=>{var el;return(Aa==null?void 0:Aa.calculatorFilter)&&((el=Aa==null?void 0:Aa.calculatorFilter)==null?void 0:el.includes("Manual"))}))){let Aa=(Re=_e==null?void 0:_e.map(el=>el==null?void 0:el.calculatorFilter))==null?void 0:Re.filter(el=>el&&(el==null?void 0:el.includes("Manual")));Aa==null||Aa.forEach(el=>{var Pa;let Ja=$a.analyzeSplitToContent(el,",");if(Ja=Ja==null?void 0:Ja.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)),Ja!=null&&Ja.find(Te=>(Te==null?void 0:Te.includes("Extent"))&&(Te==null?void 0:Te.includes("Row")))&&(Ja!=null&&Ja.find(Te=>(Te==null?void 0:Te.includes("Button"))&&(Te==null?void 0:Te.includes(","))))){let Te=Ja==null?void 0:Ja.find(il=>il==null?void 0:il.includes("@Button"));Te=(Pa=Te==null?void 0:Te.split("="))==null?void 0:Pa[1],Te=Te==null?void 0:Te.slice(1,(Te==null?void 0:Te.length)-1),Te=Te==null?void 0:Te.split(","),Te=Te==null?void 0:Te[(Te==null?void 0:Te.length)-1],ml.push(Te)}}),ml=[...new Set(ml)],ml=ml==null?void 0:ml.map(el=>({label:el,prop:el,type:"methodButton"}))}else if(Array.isArray(_e==null?void 0:_e[0])&&((Ge=na.getColumnChild(_e==null?void 0:_e[0]))!=null&&Ge.some(Aa=>{var el;return(Aa==null?void 0:Aa.calculatorFilter)&&((el=Aa==null?void 0:Aa.calculatorFilter)==null?void 0:el.includes("Manual"))}))){let Aa=(Ia=(Ka=na.getColumnChild(_e==null?void 0:_e[0]))==null?void 0:Ka.map(el=>el==null?void 0:el.calculatorFilter))==null?void 0:Ia.filter(el=>el&&(el==null?void 0:el.includes("Manual")));Aa==null||Aa.forEach(el=>{var Pa;let Ja=$a.analyzeSplitToContent(el,",");if(Ja=Ja==null?void 0:Ja.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)),Ja!=null&&Ja.find(Te=>(Te==null?void 0:Te.includes("Extent"))&&(Te==null?void 0:Te.includes("Row")))&&(Ja!=null&&Ja.find(Te=>(Te==null?void 0:Te.includes("Button"))&&(Te==null?void 0:Te.includes(","))))){let Te=Ja==null?void 0:Ja.find(il=>il==null?void 0:il.includes("@Button"));Te=(Pa=Te==null?void 0:Te.split("="))==null?void 0:Pa[1],Te=Te==null?void 0:Te.slice(1,(Te==null?void 0:Te.length)-1),Te=Te==null?void 0:Te.split(","),Te=Te==null?void 0:Te[(Te==null?void 0:Te.length)-1],ml.push(Te)}}),ml=[...new Set(ml)],ml=ml==null?void 0:ml.map(el=>({label:el,prop:el,type:"methodButton"}))}ua.push({key:"extraButton",contents:Z}),ua.push({key:"rowButton",contents:[...ya,...ml]}),v.compData=await wo(ua,r),(R=v.compData)!=null&&R.find(Aa=>(Aa==null?void 0:Aa.key)==="tab")&&(v.tab=(Y=(P=v.compData)==null?void 0:P.find(Aa=>(Aa==null?void 0:Aa.key)==="tab"))==null?void 0:Y.contents),(oe=v.compData)!=null&&oe.find(Aa=>(Aa==null?void 0:Aa.key)==="choice")&&(v.choice=(fa=(ie=v.compData)==null?void 0:ie.find(Aa=>(Aa==null?void 0:Aa.key)==="choice"))==null?void 0:fa.contents)}else if(u==="Form"){let Ye=[],ua=(we=(Ie=(ra=s==null?void 0:s.contents)==null?void 0:ra.find(Z=>{var ya;return(ya=Z==null?void 0:Z.key)==null?void 0:ya.includes("content")}))==null?void 0:Ie.value)==null?void 0:we[0],_e=($e=(ka=(Fe=(Ze=(Je=(fe=(Ca=s==null?void 0:s.contents)==null?void 0:Ca.find(Z=>{var ya;return(ya=Z==null?void 0:Z.key)==null?void 0:ya.includes("struct")}))==null?void 0:fe.value)==null?void 0:Je[0])==null?void 0:Ze.结构)==null?void 0:Fe.contents)==null?void 0:ka.map(Z=>(Z.value=ua==null?void 0:ua[Z==null?void 0:Z.prop],Z)))==null?void 0:$e.filter(Z=>(Z==null?void 0:Z.prop)!=="sort"&&(Z==null?void 0:Z.prop)!=="relatedId");Ye.push({key:"filter",contents:(je=(K=(Se=(re=(pa=s==null?void 0:s.contents)==null?void 0:pa.find(Z=>{var ya;return(ya=Z==null?void 0:Z.key)==null?void 0:ya.includes("struct")}))==null?void 0:re.value)==null?void 0:Se[0])==null?void 0:K.引用)==null?void 0:je.contents}),Ye.push({key:"formContent",contents:_e}),v.compData=await ap(Ye),(Be=v.compData)!=null&&Be.find(Z=>(Z==null?void 0:Z.key)==="tab")&&(v.tab=(Ea=(za=v.compData)==null?void 0:za.find(Z=>(Z==null?void 0:Z.key)==="tab"))==null?void 0:Ea.contents)}return v});return n=await Promise.all(t),n},sp=I.useLoginState(I.pinia),{loginUserInfo:gt}=I.storeToRefs(sp),di=async(l,r,n="Manual",t=[])=>{var v;let s=l,u;Array.isArray(r==null?void 0:r[0])?u=na.getColumnChild(r==null?void 0:r[0]):u=r;let b=(v=u==null?void 0:u.filter(y=>{var c;return(y==null?void 0:y.calculatorFilter)&&((c=y==null?void 0:y.calculatorFilter)==null?void 0:c.includes(n))||(y==null?void 0:y.calculatorFilter)===""&&(y==null?void 0:y.functionName)}))==null?void 0:v.map(y=>({prop:y==null?void 0:y.prop,label:y==null?void 0:y.label,methods:y==null?void 0:y.calculatorFilter,functionName:y==null?void 0:y.functionName,functionRelatedWords:y==null?void 0:y.functionRelatedWords})),h=s==null?void 0:s.map(async y=>(y=await hp(y,b,u,n,s,t),y));return h=await Promise.all(h),h},cp=l=>{let r=l==null?void 0:l.contents,n=l==null?void 0:l.valueString,t=l==null?void 0:l.prop,s=l==null?void 0:l.headers,u;return Array.isArray(r)&&(r==null?void 0:r.length)!==1&&(r=na.getValueToObjectValue(r,na.getColumnContents(s))),n==null||n.forEach(b=>{var h;if(r!=null&&r[b]){let v=r==null?void 0:r[b];u=u?v?$a.isEqual(v.toString(),u.toString()):void 0:v}else{let v=(h=s==null?void 0:s.find(c=>(c==null?void 0:c.label)===b))==null?void 0:h.prop,y=(r==null?void 0:r[v])??0;u=u?y?$a.isEqual(y.toString(),u.toString()):void 0:y}}),r[t]=u===void 0?void 0:u?1:0,r},hr=l=>{const[r,n,t]=I.cloneDeep(l).split(":").map(Number);let s=+l;return!l||!(l!=null&&l.includes(":"))?s:(r??0)*3600+(n??0)*60+(t??0)},Vn=l=>{const r=u=>u.toString().padStart(2,"0"),n=Math.floor(l/3600),t=Math.floor(l%3600/60),s=l%60;return`${r(n)}:${r(t)}:${parseInt(r(s))}`},up=l=>{let r=l==null?void 0:l.contents,n=l==null?void 0:l.valueString,t=l==null?void 0:l.prop,s=l==null?void 0:l.headers,u=l==null?void 0:l.typeString,b=l==null?void 0:l.allContents,h=0;if(Array.isArray(r)&&(r==null?void 0:r.length)!==1&&(r=na.getValueToObjectValue(r,na.getColumnContents(s))),n==null||n.forEach(v=>{var y,c,w,D,A,_,H,k,T;if(r!=null&&r[v]){if(u==="Row")if(!((c=((y=r==null?void 0:r[v])==null?void 0:y.toString())??"")!=null&&c.includes(":"))&&!((w=h==null?void 0:h.toString())!=null&&w.includes(":"))){let J=+(r==null?void 0:r[v]);h=h+J}else h=hr(h.toString())+hr((D=r==null?void 0:r[v])==null?void 0:D.toString()),h=Vn(h)}else if(u==="Row"){let J=(A=s==null?void 0:s.find(S=>(S==null?void 0:S.label)===v))==null?void 0:A.prop;if(!((H=Number.isNaN(r==null?void 0:r[J])?"":(_=r==null?void 0:r[J])==null?void 0:_.toString())!=null&&H.includes(":"))&&!((k=h==null?void 0:h.toString())!=null&&k.includes(":"))){let S=+((r==null?void 0:r[J])??0);h=h+S}else h=hr(h==null?void 0:h.toString())+hr((T=(r==null?void 0:r[J])??0)==null?void 0:T.toString()),h=Vn(h)}}),u==="Column"){let v=[];n==null||n.forEach(y=>{let c=b==null?void 0:b.map(w=>{var D;return(w==null?void 0:w[y])??(w==null?void 0:w[(D=s==null?void 0:s.find(A=>(A==null?void 0:A.label)===y))==null?void 0:D.prop])});v=[...v,...c]}),h=v.reduce((y,c)=>{let w=0;Number.isNaN(y)||(w=+y);let D=0;return Number.isNaN(c)||(D=+c),w+D},0)}return r[t]=h,r},dp=l=>{let r=l==null?void 0:l.contents,n=l==null?void 0:l.valueString,t=l==null?void 0:l.prop,s=l==null?void 0:l.headers,u=l==null?void 0:l.typeString,b=l==null?void 0:l.allContents,h=0;if(Array.isArray(r)&&(r==null?void 0:r.length)!==1&&(r=na.getValueToObjectValue(r,na.getColumnContents(s))),n==null||n.forEach(v=>{var y,c,w,D,A,_,H;if(r!=null&&r[v]){if(u==="Row")if(!((c=(y=r==null?void 0:r[v])==null?void 0:y.toString())!=null&&c.includes(":"))&&!((w=h==null?void 0:h.toString())!=null&&w.includes(":"))){let k=+(r==null?void 0:r[v]);h=h===0?h+k:h-k}else h=h===0?hr(h.toString())+hr(r==null?void 0:r[v].toString()):hr(h.toString())-hr(r==null?void 0:r[v].toString()),h=Vn(h)}else if(u==="Row"){let k=(D=s==null?void 0:s.find(T=>(T==null?void 0:T.label)===v))==null?void 0:D.prop;if(!((_=Number.isNaN(r==null?void 0:r[k])?"":(A=r==null?void 0:r[k])==null?void 0:A.toString())!=null&&_.includes(":"))&&!((H=h==null?void 0:h.toString())!=null&&H.includes(":"))){let T=+((r==null?void 0:r[k])??0);h=h===0?h+T:h-T}else h=h===0?hr(h.toString())+hr(((r==null?void 0:r[k])??0).toString()):hr(h.toString())-hr(((r==null?void 0:r[k])??0).toString()),h=Vn(h)}}),u==="Column"){let v=[];n==null||n.forEach(y=>{let c=b==null?void 0:b.map(w=>{var D;return(w==null?void 0:w[y])??(w==null?void 0:w[(D=s==null?void 0:s.find(A=>(A==null?void 0:A.label)===y))==null?void 0:D.prop])});v=[...v,...c]}),h=v.reduce((y,c)=>{let w=0;Number.isNaN(y)||(w=+y);let D=0;return Number.isNaN(c)||(D=+c),w-D},0)}return r[t]=h,r},pp=l=>{let r=l==null?void 0:l.contents,n=l==null?void 0:l.valueString,t=l==null?void 0:l.prop,s=l==null?void 0:l.headers,u=l==null?void 0:l.typeString,b=l==null?void 0:l.allContents,h=0;if(Array.isArray(r)&&(r==null?void 0:r.length)!==1&&(r=na.getValueToObjectValue(r,na.getColumnContents(s))),n==null||n.forEach(v=>{var y,c,w,D,A,_,H;if(r!=null&&r[v]){if(u==="Row")if(!((c=(y=r==null?void 0:r[v])==null?void 0:y.toString())!=null&&c.includes(":"))&&!((w=h==null?void 0:h.toString())!=null&&w.includes(":"))){let k=+(r==null?void 0:r[v]);h=h===0?h+k:h*k}else h=h===0?hr(h.toString())+hr(r==null?void 0:r[v].toString()):hr(h.toString())*hr(r==null?void 0:r[v].toString()),h=Vn(h)}else if(u==="Row"){let k=(D=s==null?void 0:s.find(T=>(T==null?void 0:T.label)===v))==null?void 0:D.prop;if(!(r!=null&&r[k]))h=void 0;else if(!((_=Number.isNaN(r==null?void 0:r[k])?"":(A=r==null?void 0:r[k])==null?void 0:A.toString())!=null&&_.includes(":"))&&!((H=h==null?void 0:h.toString())!=null&&H.includes(":"))){let T=+((r==null?void 0:r[k])??0);h=h===0?h+T:h*T}else h=h===0?hr(h.toString())+hr(((r==null?void 0:r[k])??0).toString()):hr(h.toString())*hr(((r==null?void 0:r[k])??0).toString()),h=Vn(h)}}),u==="Column"){let v=[];n==null||n.forEach(y=>{let c=b==null?void 0:b.map(w=>{var D;return(w==null?void 0:w[y])??(w==null?void 0:w[(D=s==null?void 0:s.find(A=>(A==null?void 0:A.label)===y))==null?void 0:D.prop])});v=[...v,...c]}),h=v.reduce((y,c)=>{let w=0;Number.isNaN(y)||(w=+y);let D=0;return Number.isNaN(c)||(D=+c),w*D},0)}return r[t]=h,r},fp=l=>{let r=l==null?void 0:l.contents,n=l==null?void 0:l.valueString,t=l==null?void 0:l.prop,s=l==null?void 0:l.headers,u=l==null?void 0:l.typeString,b=l==null?void 0:l.allContents,h=0;if(Array.isArray(r)&&(r==null?void 0:r.length)!==1&&(r=na.getValueToObjectValue(r,na.getColumnContents(s))),n==null||n.forEach(v=>{var y,c,w,D,A,_,H;if(r!=null&&r[v]){if(u==="Row")if(!((c=(y=r==null?void 0:r[v])==null?void 0:y.toString())!=null&&c.includes(":"))&&!((w=h==null?void 0:h.toString())!=null&&w.includes(":"))){let k=+(r==null?void 0:r[v]);h=h===0?h+k:h/k}else h=h===0?hr(h.toString())+hr(r==null?void 0:r[v].toString()):hr(h.toString())/hr(r==null?void 0:r[v].toString()),h=Vn(h)}else if(u==="Row"){let k=(D=s==null?void 0:s.find(T=>(T==null?void 0:T.label)===v))==null?void 0:D.prop;if(!((_=Number.isNaN(r==null?void 0:r[k])?"":(A=r==null?void 0:r[k])==null?void 0:A.toString())!=null&&_.includes(":"))&&!((H=h==null?void 0:h.toString())!=null&&H.includes(":"))){let T=+((r==null?void 0:r[k])??0);h=h===0?h+T:h/T}else h=h===0?hr(h.toString())+hr(((r==null?void 0:r[k])??0).toString()):hr(h.toString())/hr(((r==null?void 0:r[k])??0).toString()),h=Vn(h)}}),u==="Column"){let v=[];n==null||n.forEach(y=>{let c=b==null?void 0:b.map(w=>{var D;return(w==null?void 0:w[y])??(w==null?void 0:w[(D=s==null?void 0:s.find(A=>(A==null?void 0:A.label)===y))==null?void 0:D.prop])});v=[...v,...c]}),h=v.reduce((y,c)=>{let w=0;Number.isNaN(y)||(w=+y);let D=0;return Number.isNaN(c)||(D=+c),w/D},0)}return r[t]=h.toFixed(2),r},io={Sum:up,Substract:dp,Multiple:pp,Divide:fp,Compare:cp},hp=async(l,r,n,t="Auto",s,u=[])=>{var c,w,D,A,_,H,k,T,J,S,V,z,x,g,F,q,G,be,ze,De,ne;let b=l,h=[],v=await I.getPageDataApi({platId:parseInt((c=gt==null?void 0:gt.value)==null?void 0:c.plat_id),pageName:"menu"});v=(A=(D=(w=v==null?void 0:v.data)==null?void 0:w.result)==null?void 0:D.filter(ke=>(ke==null?void 0:ke.property_name)===""))==null?void 0:A[0];let y=[];if(v!=null&&v.object_name){v=v==null?void 0:v.object_name;let ke=await I.getPageDataApi({platId:parseInt((_=gt==null?void 0:gt.value)==null?void 0:_.plat_id),pageName:v});ke=(S=(J=(T=(k=(H=ke==null?void 0:ke.data)==null?void 0:H.result)==null?void 0:k[0])==null?void 0:T.contents)==null?void 0:J.find(X=>{var pe;return(pe=X==null?void 0:X.key)==null?void 0:pe.includes("content")}))==null?void 0:S.value,h=(V=ke==null?void 0:ke.map(X=>({functionName:X==null?void 0:X.函数名称,functionContent:X==null?void 0:X.输出值})))==null?void 0:V.filter(X=>(X==null?void 0:X.functionContent)!==""),h==null||h.forEach(X=>{y.push(X.functionName),io[X.functionName]=new Function("return "+X.functionContent)()})}if((r==null?void 0:r.length)===0)return b;for(let ke in r){let X=(z=r==null?void 0:r[ke])==null?void 0:z.functionName;const pe=io==null?void 0:io[X];let Ke=(x=r==null?void 0:r[ke])==null?void 0:x.methods;if(Ke=$a.analyzeSplitToContent(Ke,","),(g=Ke==null?void 0:Ke.find(Sa=>Sa==null?void 0:Sa.includes("@Type")))!=null&&g.includes(t)||(Ke==null?void 0:Ke.length)===0){let Sa=((G=(q=(F=Ke==null?void 0:Ke.find(te=>te==null?void 0:te.includes("@Extent")))==null?void 0:F.replace(":","="))==null?void 0:q.split("="))==null?void 0:G[1])??[];if(await new Function("return ")(),(y==null?void 0:y.length)>0&&y.find(te=>te===X)){let te="";try{let le=(be=r==null?void 0:r[ke])==null?void 0:be.functionRelatedWords,ye=(u==null?void 0:u.length)>0?u==null?void 0:u.map(Ne=>{var ia;return Ne==null?void 0:Ne[(ia=r==null?void 0:r[ke])==null?void 0:ia.prop]}):["0"];ye=ye==null?void 0:ye.map(Ne=>Ne==null?void 0:Ne.slice((Ne==null?void 0:Ne.length)-5,Ne==null?void 0:Ne.length)),ye=ye==null?void 0:ye.map(Ne=>$a.isNumber(parseInt(Ne))&&parseInt(Ne)?parseInt(Ne):0);let se=Math.max(...ye);le=le==null?void 0:le.map(Ne=>{if(Ne!=null&&Ne.includes("'"))return Ne==null?void 0:Ne.replaceAll("'","");if(Ne!=null&&Ne.includes("@"))return se+1;{let ia=Object.keys(b);return Ne=(b==null?void 0:b[Ne])??(b==null?void 0:b[ia==null?void 0:ia.find(xa=>xa==null?void 0:xa.includes("."+Ne))]),Ne}}),te=pe(...le)}catch(le){ll.ElMessage.warning("关联数据出现错误,"+le.message)}let B=(ze=r==null?void 0:r[ke])==null?void 0:ze.prop;b[B]=te}else b=pe({contents:b,valueString:(De=r==null?void 0:r[ke])==null?void 0:De.functionRelatedWords,prop:(ne=r==null?void 0:r[ke])==null?void 0:ne.prop,headers:n,typeString:Sa,allContents:s})}}return b},vp=I.useLoginState(I.pinia),{loginUserInfo:Hr}=I.storeToRefs(vp),mp=I.useMenuState(I.pinia),{activeMenuPath:as,currentMenuPath:so}=I.storeToRefs(mp),Js=I.useUnit(I.pinia);let ls="$R";const{selectTitle:_t}=I.storeToRefs(Js),Xs=async(l,r)=>{var b,h,v,y,c,w,D,A,_,H,k,T,J;let n=as.value,t="",s=((b=_t==null?void 0:_t.value)==null?void 0:b.find(S=>(S==null?void 0:S.condition)==="child"&&!(S!=null&&S.relatedContent)))??void 0;(l==null?void 0:l.length)===0||(n=r?n:(h=l==null?void 0:l[0])==null?void 0:h.object_name,t=(v=l==null?void 0:l[0])==null?void 0:v.father_name);let u=[];if(t!==""){let S=t;(S==null?void 0:S[(S==null?void 0:S.length)-1])==="/"&&(S=S==null?void 0:S.slice(0,(S==null?void 0:S.length)-1));let V=await Pr(S,!1);V=(y=V==null?void 0:V[0])==null?void 0:y.compData;let z=(c=V==null?void 0:V.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:c.contents;z=((w=z==null?void 0:z.find(g=>g==null?void 0:g.isMainKey))==null?void 0:w.prop)??((D=z==null?void 0:z[0])==null?void 0:D.prop);let x=(_=(A=V==null?void 0:V.find(g=>(g==null?void 0:g.key)==="tableContents"))==null?void 0:A.contents)==null?void 0:_.map(g=>({label:g==null?void 0:g[z],value:g==null?void 0:g[z]}));u=(H=t==null?void 0:t.split("/"))==null?void 0:H.map(g=>(g===""?s?(s.isShow=!0,g=s):g={value:g,condition:"child",options:x,parentContent:(t==null?void 0:t[(t==null?void 0:t.length)-1])==="/"?t==null?void 0:t.slice(0,(t==null?void 0:t.length)-1):t,isShow:!0}:g={condition:"parent",value:g.trim(),isShow:!0},g))}if(n!==""){let S=(k=n==null?void 0:n.split("/"))==null?void 0:k.map(V=>(V={condition:"normal",value:V.trim(),isShow:!0},V));((T=S==null?void 0:S[0])==null?void 0:T.value)===((J=u==null?void 0:u[0])==null?void 0:J.value)&&(S=S==null?void 0:S.filter((V,z)=>z!==0)),u=[...u??[],...S??[]]}t===""&&s&&((s==null?void 0:s.parentContent)!==as.value&&(s.isShow=!1),(s==null?void 0:s.value)!==""&&u.push(s)),Js.setSelectTitle(u)},yp=async l=>{var u,b,h,v,y,c,w,D,A;let r=await I.getPageDataApi({platId:parseInt((u=Hr==null?void 0:Hr.value)==null?void 0:u.plat_id),pageName:"menu"}),n=(b=r==null?void 0:r.data)==null?void 0:b.result,t=(c=(y=(v=(h=l==null?void 0:l.filter(_=>(_==null?void 0:_.comp)==="Table"))==null?void 0:h[0])==null?void 0:v.compData)==null?void 0:y.find(_=>(_==null?void 0:_.key)==="filter"))==null?void 0:c.contents;t=(A=(D=(w=t==null?void 0:t.replace("(",ls))==null?void 0:w.split(ls))==null?void 0:D[0])==null?void 0:A.replaceAll(":","/");let s=n==null?void 0:n.filter(_=>{var H;return(_==null?void 0:_.object_name)===so.value+"/"||((H=so.value)==null?void 0:H.includes(t))&&t+"/"===(_==null?void 0:_.object_name)});return(s==null?void 0:s.length)>0&&(l=l==null?void 0:l.map(_=>{var H;return(_==null?void 0:_.comp)==="Table"&&(_.compData=(H=_==null?void 0:_.compData)==null?void 0:H.map(k=>{var T,J,S;return(k==null?void 0:k.key)==="header"&&(Array.isArray((T=k.contents)==null?void 0:T[0])?k.contents[0]=(S=k.contents[0])==null?void 0:S.map((V,z)=>{var x;return z===0&&(V.isExistChild=!0,(x=so.value)!=null&&x.includes(t)&&(V.fatherPath=t)),V}):k.contents=(J=k.contents)==null?void 0:J.map((V,z)=>{var x;return z===0&&(V.isExistChild=!0,(x=so.value)!=null&&x.includes(t)&&(V.fatherPath=t)),V})),k})),_})),l},Pr=async(l,r,n={})=>{var b,h,v,y,c,w,D,A,_,H,k,T;let t=await I.getPageDataApi({platId:parseInt((b=Hr==null?void 0:Hr.value)==null?void 0:b.plat_id),pageName:l}),s=(h=t==null?void 0:t.data)==null?void 0:h.result;if((s==null?void 0:s.length)===0&&(n!=null&&n.originPath)&&(n==null?void 0:n.originPath)!==l){let J=await I.getPageDataApi({platId:parseInt((v=Hr==null?void 0:Hr.value)==null?void 0:v.plat_id),pageName:n==null?void 0:n.originPath});if(((c=(y=J==null?void 0:J.data)==null?void 0:y.result)==null?void 0:c.length)>0){let S=await es((w=J==null?void 0:J.data)==null?void 0:w.result,n);S=S==null?void 0:S.map(async x=>{var q,G,be,ze,De,ne,ke,X,pe,Ke,Sa,te,B,le,ye,se,Ne,ia,xa,Ha,ee,ea,Pe,ga,He,Ae,Re,Ge,Ka,Ia;let g=[],F=(q=Object.keys(x))==null?void 0:q.filter(R=>R==null?void 0:R.includes("name"));for(let R in x)F!=null&&F.find(P=>P===R)&&g.push(x==null?void 0:x[R]);if(g=g.reverse(),(x==null?void 0:x.comp)==="Table"){let R=(ze=(be=(G=x==null?void 0:x.compData)==null?void 0:G.find(Y=>(Y==null?void 0:Y.key)==="tableContents"))==null?void 0:be.contents)==null?void 0:ze.map(Y=>{let oe={};for(let ie in Y)ie!=="id"&&ie!=="create_time"&&ie!=="update_time"&&ie!=="sort"&&ie!=="create_user_id"&&ie!=="update_user_id"&&ie!=="department_id"&&ie!=="relatedId"&&(oe[ie]=Y==null?void 0:Y[ie]);return Y=Object.values(oe),Y}),P=(ne=(De=x==null?void 0:x.compData)==null?void 0:De.find(Y=>(Y==null?void 0:Y.key)==="header"))==null?void 0:ne.contents;if(Array.isArray(P==null?void 0:P[0])?(P[0].push({label:"排序",prop:"sort"}),P[0].push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(ke=P[0])!=null&&ke.find(Y=>(Y==null?void 0:Y.prop)==="disabled")&&(P[0]=(X=P[0])==null?void 0:X.filter(Y=>(Y==null?void 0:Y.prop)!=="disabled"),P[0].unshift({label:"",prop:"disabled",sortable:!1}))):(P.push({label:"排序",prop:"sort"}),P.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),P!=null&&P.find(Y=>(Y==null?void 0:Y.prop)==="disabled")&&(P=P==null?void 0:P.filter(Y=>(Y==null?void 0:Y.prop)!=="disabled"),P.unshift({label:"",prop:"disabled",sortable:!1}))),P!=null&&P.some(Y=>{var oe;return(Y==null?void 0:Y.calculatorFilter)&&((oe=Y==null?void 0:Y.calculatorFilter)==null?void 0:oe.includes("Auto"))})&&(R=await di(R,P,"Auto"),R=R==null?void 0:R.map(Y=>Object.values(Y))),x!=null&&x.fatherSyncContents){Array.isArray((pe=x==null?void 0:x.fatherSyncContents)==null?void 0:pe[0])&&(x.fatherSyncContents=(Ke=x==null?void 0:x.fatherSyncContents)==null?void 0:Ke[0]);let Y=(Sa=_t.value)==null?void 0:Sa.find(oe=>(oe==null?void 0:oe.condition)==="child");x.fatherSyncContents=(te=x==null?void 0:x.fatherSyncContents)==null?void 0:te.map(oe=>{var ie,fa,ra,Ie,we,Ca;return((fa=oe==null?void 0:oe.menus)==null?void 0:fa[((ie=oe==null?void 0:oe.menus)==null?void 0:ie.length)-1])==="/"&&(Y==null?void 0:Y.parentContent)+"/"!==(oe==null?void 0:oe.menus)?oe.menus=(oe==null?void 0:oe.menus)+(Y==null?void 0:Y.value):((Ie=oe==null?void 0:oe.menus)==null?void 0:Ie[((ra=oe==null?void 0:oe.menus)==null?void 0:ra.length)-1])==="/"&&(Y==null?void 0:Y.parentContent)+"/"===(oe==null?void 0:oe.menus)&&(oe.menus=(Ca=oe.menus)==null?void 0:Ca.slice(0,((we=oe.menus)==null?void 0:we.length)-1)),oe})}if(x!=null&&x.sonSyncContents){Array.isArray((B=x==null?void 0:x.sonSyncContents)==null?void 0:B[0])&&(x.sonSyncContents=(le=x==null?void 0:x.sonSyncContents)==null?void 0:le[0]);let Y=(ye=_t.value)==null?void 0:ye.find(oe=>(oe==null?void 0:oe.condition)==="child");x.sonSyncContents=(se=x==null?void 0:x.sonSyncContents)==null?void 0:se.map(oe=>{var ie,fa,ra,Ie,we,Ca;return((fa=oe==null?void 0:oe.menus)==null?void 0:fa[((ie=oe==null?void 0:oe.menus)==null?void 0:ie.length)-1])==="/"&&(Y==null?void 0:Y.parentContent)+"/"!==(oe==null?void 0:oe.menus)?oe.menus=(oe==null?void 0:oe.menus)+(Y==null?void 0:Y.value):((Ie=oe==null?void 0:oe.menus)==null?void 0:Ie[((ra=oe==null?void 0:oe.menus)==null?void 0:ra.length)-1])==="/"&&(Y==null?void 0:Y.parentContent)+"/"===(oe==null?void 0:oe.menus)&&(oe.menus=(Ca=oe.menus)==null?void 0:Ca.slice(0,((we=oe.menus)==null?void 0:we.length)-1)),oe})}if(x!=null&&x.relatedQuotes){Array.isArray((Ne=x==null?void 0:x.relatedQuotes)==null?void 0:Ne[0])&&(x.relatedQuotes=(ia=x==null?void 0:x.relatedQuotes)==null?void 0:ia[0]);let Y=(xa=_t.value)==null?void 0:xa.find(oe=>(oe==null?void 0:oe.condition)==="child");x.relatedQuotes=(Ha=x==null?void 0:x.relatedQuotes)==null?void 0:Ha.map(oe=>{var ie,fa,ra,Ie,we,Ca;return((fa=oe==null?void 0:oe.menus)==null?void 0:fa[((ie=oe==null?void 0:oe.menus)==null?void 0:ie.length)-1])==="/"&&(Y==null?void 0:Y.parentContent)+"/"!==(oe==null?void 0:oe.menus)?oe.menus=(oe==null?void 0:oe.menus)+(Y==null?void 0:Y.value):((Ie=oe==null?void 0:oe.menus)==null?void 0:Ie[((ra=oe==null?void 0:oe.menus)==null?void 0:ra.length)-1])==="/"&&(Y==null?void 0:Y.parentContent)+"/"===(oe==null?void 0:oe.menus)&&(oe.menus=(Ca=oe.menus)==null?void 0:Ca.slice(0,((we=oe.menus)==null?void 0:we.length)-1)),oe})}x={filter:(ea=(ee=x==null?void 0:x.compData)==null?void 0:ee.find(Y=>(Y==null?void 0:Y.key)==="filter"))==null?void 0:ea.contents,key:x==null?void 0:x.comp,name:g,tableColumns:P,tableContents:R,menuFilter:x==null?void 0:x.menuFilter,fatherSyncContents:x==null?void 0:x.fatherSyncContents,relatedQuotes:x==null?void 0:x.relatedQuotes,sonSyncContents:x==null?void 0:x.sonSyncContents}}else{let R=(He=(ga=(Pe=x==null?void 0:x.compData)==null?void 0:Pe.find(Y=>(Y==null?void 0:Y.key)==="formContent"))==null?void 0:ga.contents)==null?void 0:He.map(Y=>(Y==null?void 0:Y.value)??"");R=[R];let P=(Ge=(Re=(Ae=x==null?void 0:x.compData)==null?void 0:Ae.find(Y=>(Y==null?void 0:Y.key)==="formContent"))==null?void 0:Re.contents)==null?void 0:Ge.map(Y=>(Y.value="",Y));x={contents:R,filter:(Ia=(Ka=x==null?void 0:x.compData)==null?void 0:Ka.find(Y=>(Y==null?void 0:Y.key)==="filter"))==null?void 0:Ia.contents,key:x==null?void 0:x.comp,name:g,value:P,fatherSyncContents:x==null?void 0:x.fatherSyncContents,relatedQuotes:x==null?void 0:x.relatedQuotes,sonSyncContents:x==null?void 0:x.sonSyncContents}}return x.isShow=!1,x}),S=await Promise.all(S);let V=[{key:"menuPath",contents:[{path:l,fatherPath:(_=(A=(D=J==null?void 0:J.data)==null?void 0:D.result)==null?void 0:A[0])==null?void 0:_.father_name,isShow:!1}]},{key:l,contents:S}];await I.createPlatFormDataApi({platId:parseInt((H=Hr==null?void 0:Hr.value)==null?void 0:H.plat_id),changeData:V});let z=await I.getPageDataApi({platId:parseInt((k=Hr==null?void 0:Hr.value)==null?void 0:k.plat_id),pageName:l});s=(T=z==null?void 0:z.data)==null?void 0:T.result}}r&&await Xs(s,!!(n!=null&&n.originPath));let u=await es(s,n);return r&&(u=await yp(u)),u},rs=async l=>{var t,s,u,b,h,v,y,c,w,D,A;let r=(t=l==null?void 0:l.menus)==null?void 0:t.join("/");l!=null&&l.endChildMenu&&(l==null?void 0:l.endChildMenu)!==""&&(r==null?void 0:r[(r==null?void 0:r.length)-1])==="/"&&(r=r+(l==null?void 0:l.endChildMenu)),(r==null?void 0:r[(r==null?void 0:r.length)-1])==="/"&&(r=r+((u=(s=l.value)==null?void 0:s.split(" "))==null?void 0:u[0]));let n=await Pr(r,!1);if(n=(b=n==null?void 0:n.filter(_=>{var H,k;return(_==null?void 0:_.name)===((k=l==null?void 0:l.groups)==null?void 0:k[((H=l==null?void 0:l.groups)==null?void 0:H.length)-1])}))==null?void 0:b[0],(v=(h=n==null?void 0:n.compData)==null?void 0:h.find(_=>(_==null?void 0:_.key)==="tableContents"))!=null&&v.contents){n=(c=(y=n==null?void 0:n.compData)==null?void 0:y.find(H=>(H==null?void 0:H.key)==="tableContents"))==null?void 0:c.contents;let _=((w=l==null?void 0:l.words)==null?void 0:w[0])??(l==null?void 0:l.prop);return n=n==null?void 0:n.filter(H=>{var k,T,J;return(H==null?void 0:H[l!=null&&l.endChildMenu?_:l==null?void 0:l.prop])===(l!=null&&l.relatedWords&&((k=l==null?void 0:l.relatedWords)==null?void 0:k.length)>0?(J=(T=l.value)==null?void 0:T.split(" "))==null?void 0:J[0]:l.value)}),n==null?void 0:n[0]}else{let _=(A=(D=n==null?void 0:n.compData)==null?void 0:D.find(k=>(k==null?void 0:k.key)==="formContent"))==null?void 0:A.contents,H={};return _==null||_.forEach(k=>{H[k.prop]=k.value}),H}},gp={key:0,class:"extra-button-content"},bp={class:"table-operator-wrap"},kp={key:0,class:"extra-button-filter"},xp={key:1,class:"extra-header"},_p=["onClick"],wp={class:"table-op-text"},Cp={class:"table-op-text"},Ep={class:"drop-menu",style:{width:"120px"}},Sp=["onClick"],Dp={key:0},Bp={key:1},Np=["onClick"],Tp={class:"table-op-text"},Ap={key:1,class:"extra-button-content tabs-button-wrapper"},zp={class:"table-operator-wrap"},Mp={class:"extra-button-filter"},Op={key:0,class:"extra-header"},Ip={class:"table-op-action"},Lp={class:"table-op-text"},Vp={class:"drop-menu",style:{width:"120px"}},$p={key:0},Rp={key:1},Pp=["onClick"],Fp={class:"table-op-text"},jp={__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:()=>[]}},emits:["buttonClick","filter","getImportData"],setup(l,{emit:r}){const n=r,t=l,s=a.ref(""),u=a.ref(!1),b=a.ref([]),h=a.ref([{label:"清空",background:"#999999"},{label:"确认"}]),v=[{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 y(x,g){return x.map(F=>{const q={...F};return g.forEach(G=>{delete q[G]}),q})}function c(x){if(!x||x.t!=="n")return(x==null?void 0:x.v)??"";const g=x.v;if(x.z){const F=String(x.z).toLowerCase(),q=["yyyy/mm/dd","yyyy-mm-dd","yyyy.mm.dd","yy/mm/dd","yy-mm-dd","yy.mm.dd","mm/dd/yy","mm-dd-yy","mm.dd.yy","dd/mm/yy","dd-mm-yy","dd.mm.yy","m/d/yy","m/d/yyyy","d/m/yy","d/m/yyyy","yyyy年","yy年","m月","d日","yyyy年m月d日","yy年m月d日","[$-f800]","[$-f400]"];for(const ze of q)if(F.includes(ze))return w(g);const G=/[ymdhms]/.test(F),be=/^[0#\.\,\s]+$/.test(F.replace(/[\\\/\-:]/g,""));if(G&&!be)return w(g)}if(g>=1&&g<=73050){if(g<5e3)return g;if(g>=5e3&&g<4e4){const F=Math.floor((g-25569)/365.25)+1970;return F>=1970&&F<=2e3&&x.z&&/[ymd]/.test(String(x.z).toLowerCase())?w(g):g}if(g>=4e4)return w(g)}return g}function w(x){if(typeof x!="number")return x;try{const g=new Date((x-25569)*86400*1e3);if(isNaN(g.getTime()))return x;const F=g.getFullYear(),q=String(g.getMonth()+1).padStart(2,"0"),G=String(g.getDate()).padStart(2,"0");return`${F}-${q}-${G}`}catch{return x}}const D=x=>{const g=x.raw;if(!g)return;const F=new FileReader;F.onload=q=>{try{const G=new Uint8Array(q.target.result),be=na.readSync(G,{type:"array"}),ze=be.SheetNames[0],De=be.Sheets[ze],ke=na.utils.decode_range(De["!ref"]).e.c+1,X=new Array(ke).fill(""),pe=[];for(const le in De){if(le[0]==="!")continue;const{r:ye,c:se}=na.utils.decode_cell(le),Ne=De[le];let ia=c(Ne);if((ia==null||ia==="")&&(ia=""),ye===0)X[se]=ia;else{if(!pe[ye-1]){pe[ye-1]={};for(let xa=0;xa<ke;xa++)pe[ye-1][`col_${xa}`]=""}pe[ye-1][`col_${se}`]=ia}}for(let le=0;le<ke;le++)X[le]===void 0&&(X[le]="");const Ke=[];for(let le=0;le<X.length;le++)(!X[le]||X[le].toString().trim()==="")&&Ke.push(le);let Sa,te;(Ke==null?void 0:Ke.length)>0?(ll.ElMessage.warning("存在键为空的列,已自动过滤,请检查补充"),Sa=X.filter((le,ye)=>!Ke.includes(ye)),te=y(pe,Ke==null?void 0:Ke.map(le=>`col_${le}`))):(Sa=X,te=pe);const B=pe==null?void 0:pe[0];if(!(B!=null&&B.hasOwnProperty("col_0")))return ll.ElMessage.error("导入的数据列不匹配,请检查是否错位");n("getImportData",Sa,te)}catch(G){throw ll.ElMessage.error(G.message),new Error(G.message)}},F.readAsArrayBuffer(g)},A=x=>{var F;const g=(F=b.value)==null?void 0:F.reduce((q,G,be)=>(be===0?q[G.label]=x:q[G.label]=G==null?void 0:G.value,q),{});n("filter",g,x,!0)},_=(x,g={})=>{n("buttonClick",x,"",g)},H=x=>{var g,F;b.value=(F=(g=na.getColumnChild(I.cloneDeep(x)))==null?void 0:g.filter(q=>(q==null?void 0:q.label)!==""&&(q==null?void 0:q.label)!=="操作"))==null?void 0:F.map(q=>({label:(q==null?void 0:q.label)??"",value:"",name:(q==null?void 0:q.prop)??"",isFormColHidden:q==null?void 0:q.isTableColHidden,width:2,prop:(q==null?void 0:q.prop)??""}))},k=a.ref(!1),T=x=>{var g;if((x==null?void 0:x.buttonName)==="确认"&&(n("filter",x==null?void 0:x.content),k.value=(x==null?void 0:x.content)&&Object.values(x==null?void 0:x.content).length>0),(x==null?void 0:x.buttonName)==="清空"){const F=I.cloneDeep(x==null?void 0:x.content);for(const q in F)F[q]="";b.value=(g=b.value)==null?void 0:g.map(q=>({...q,value:""})),n("filter",F),k.value=!1}u.value=!1},J=()=>{u.value=!u.value},S=()=>{var g,F;b.value=(g=b.value)==null?void 0:g.map(q=>({...q,value:""}));const x=(F=b.value)==null?void 0:F.reduce((q,G)=>(q[G.label]=G.value,q),{});n("filter",x)},V=a.ref(null);let z;return z=x=>{var G;if(!u.value)return;const g=(G=V==null?void 0:V.value)==null?void 0:G.$el,F=g==null?void 0:g.contains(x.target);let q=!1;document.querySelectorAll(".el-popover, .el-popper").forEach(be=>{be.contains(x.target)&&(q=!0)}),!F&&!q&&(u.value=!1)},a.onMounted(()=>{document.addEventListener("click",z),H(t.columns)}),a.onBeforeUnmount(()=>{document.removeEventListener("click",z)}),a.watch(()=>t.columns,()=>{H(t.columns)},{deep:!0,immediate:!0}),(x,g)=>{var De,ne,ke,X,pe,Ke,Sa,te;const F=a.resolveComponent("el-icon"),q=a.resolveComponent("svg-icon"),G=a.resolveComponent("el-input"),be=a.resolveComponent("el-upload"),ze=a.resolveComponent("el-button");return l.pageLayout==="vertical"?(a.openBlock(),a.createElementBlock("div",gp,[a.createElementVNode("div",{class:a.normalizeClass(l.compName?"table-name-wrap":""),style:a.normalizeStyle({background:(t==null?void 0:t.level)>1?"transparent":"var(--ssgroup-background)",paddingLeft:((t==null?void 0:t.level)-1)*12+"px",fontWeight:600-((t==null?void 0:t.level)-1)*100>=400?600-((t==null?void 0:t.level)-1)*100:400,fontSize:17-(t==null?void 0:t.level)>=14?17-(t==null?void 0:t.level)+"px":"14px"})},a.toDisplayString(l.compName),7),a.createElementVNode("div",bp,[t!=null&&t.filterShow?(a.openBlock(),a.createElementBlock("div",kp,[a.createVNode(Cu,{trigger:"contextmenu",ref_key:"popOverRef",ref:V,title:"",width:800,placement:"bottom-start",isVisible:u.value,"onUpdate:isVisible":g[4]||(g[4]=B=>u.value=B)},{reference:a.withCtx(()=>{var B,le,ye,se;return[a.createVNode(G,{modelValue:s.value,"onUpdate:modelValue":g[0]||(g[0]=Ne=>s.value=Ne),style:{"min-width":"80px"},placeholder:k.value?(ye=(le=(B=l.filterValues)==null?void 0:B.filter(Ne=>Ne))==null?void 0:le.slice(0,3))==null?void 0:ye.join("/"):"搜索","prefix-icon":a.unref(ll.search_default),clearable:"",onInput:A,disabled:((se=b.value)==null?void 0:se.length)===0},{suffix:a.withCtx(()=>{var Ne,ia;return[!s.value&&((ia=(Ne=l.filterValues)==null?void 0:Ne.filter(xa=>xa))!=null&&ia.join("/"))?(a.openBlock(),a.createBlock(F,{key:0,style:{cursor:"pointer"},onClick:S},{default:a.withCtx(()=>[a.createVNode(a.unref(ll.circle_close_default))]),_:1})):a.createCommentVNode("",!0)]}),append:a.withCtx(()=>[a.createElementVNode("span",{title:"条件查询",onClick:a.withModifiers(J,["stop"])},[a.createVNode(q,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:a.withCtx(()=>[a.createElementVNode("div",{class:"form-content-value",onKeydown:g[1]||(g[1]=a.withModifiers(()=>{},["stop"])),onKeyup:g[2]||(g[2]=a.withModifiers(()=>{},["stop"])),onKeypress:g[3]||(g[3]=a.withModifiers(()=>{},["stop"]))},[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:b.value,buttonValue:h.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:h.value,isStartJustify:!1,onOnButtonClick:T},null,8,["rowContents","buttonValue"]))],32)]),_:1},8,["isVisible"])])):a.createCommentVNode("",!0),l.buttons&&((De=l.buttons)==null?void 0:De.length)>0?(a.openBlock(),a.createElementBlock("div",xp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((ne=l.buttons)==null?void 0:ne.filter(B=>l.isDevMode||(B==null?void 0:B.label)!=="修改模板"),(B,le)=>{var ye;return a.openBlock(),a.createElementBlock("div",{class:"extra-contents",key:le},[(B==null?void 0:B.type)==="upload"?(a.openBlock(),a.createBlock(be,{key:0,class:"upload-button-wrap","on-change":D,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1,disabled:!!l.lockingPage},{default:a.withCtx(()=>{var se;return[a.createElementVNode("div",{class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}]),onClick:Ne=>_(B==null?void 0:B.label)},[a.createVNode(q,{class:"table-op-icon",name:(se=v==null?void 0:v.find(Ne=>(Ne==null?void 0:Ne.label)===(B==null?void 0:B.label)))==null?void 0:se.icon},null,8,["name"]),a.createElementVNode("span",wp,a.toDisplayString(B==null?void 0:B.label),1)],10,_p)]}),_:2},1032,["disabled"])):a.createCommentVNode("",!0),(B==null?void 0:B.type)==="popover"?(a.openBlock(),a.createBlock(pl._sfc_main,{key:1},{dropTitle:a.withCtx(()=>{var se;return[a.createElementVNode("div",{class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}])},[a.createVNode(q,{class:"table-op-icon",name:(se=v==null?void 0:v.find(Ne=>(Ne==null?void 0:Ne.label)===(B==null?void 0:B.label)))==null?void 0:se.icon},null,8,["name"]),a.createElementVNode("span",Cp,a.toDisplayString(B==null?void 0:B.label),1)],2)]}),dropMenu:a.withCtx(()=>[a.createElementVNode("div",Ep,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(B==null?void 0:B.contents,se=>{var Ne,ia;return a.openBlock(),a.createElementBlock("div",{key:se==null?void 0:se.label,class:a.normalizeClass(["table-op-drop-item",{"is-disabled":!!l.lockingPage}]),onClick:xa=>!l.lockingPage&&_(se==null?void 0:se.label)},[a.createTextVNode(a.toDisplayString(se==null?void 0:se.label),1),(Ne=se==null?void 0:se.label)!=null&&Ne.includes("选中")?(a.openBlock(),a.createElementBlock("span",Dp,"("+a.toDisplayString(l.selectNums)+")",1)):a.createCommentVNode("",!0),(ia=se==null?void 0:se.label)!=null&&ia.includes("全部")?(a.openBlock(),a.createElementBlock("span",Bp,"("+a.toDisplayString(l.dataNums)+")",1)):a.createCommentVNode("",!0)],10,Sp)}),128))])]),_:2},1024)):a.createCommentVNode("",!0),!(B!=null&&B.type)||(B==null?void 0:B.type)==="methodButton"?(a.openBlock(),a.createElementBlock("div",{key:2,id:"themeButton",class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}]),onClick:se=>!l.lockingPage&&_(B==null?void 0:B.label,B)},[a.createVNode(q,{class:"table-op-icon",name:(ye=v==null?void 0:v.find(se=>(se==null?void 0:se.label)===(B==null?void 0:B.label)))==null?void 0:ye.icon},null,8,["name"]),a.createElementVNode("span",Tp,a.toDisplayString(B==null?void 0:B.label),1)],10,Np)):a.createCommentVNode("",!0)])}),128))])):a.createCommentVNode("",!0)])])):(a.openBlock(),a.createElementBlock("div",Ap,[a.createElementVNode("div",zp,[a.createElementVNode("div",Mp,[a.createVNode(G,{modelValue:s.value,"onUpdate:modelValue":g[5]||(g[5]=B=>s.value=B),style:{"min-width":"80px"},placeholder:k.value?(pe=(X=(ke=l.filterValues)==null?void 0:ke.filter(B=>B))==null?void 0:X.slice(0,3))==null?void 0:pe.join("/"):"搜索","prefix-icon":a.unref(ll.search_default),clearable:"",onInput:A,disabled:((Ke=b.value)==null?void 0:Ke.length)===0},{suffix:a.withCtx(()=>{var B,le;return[!s.value&&((le=(B=l.filterValues)==null?void 0:B.filter(ye=>ye))!=null&&le.join("/"))?(a.openBlock(),a.createBlock(F,{key:0,style:{cursor:"pointer"},onClick:S},{default:a.withCtx(()=>[a.createVNode(a.unref(ll.circle_close_default))]),_:1})):a.createCommentVNode("",!0)]}),append:a.withCtx(()=>[a.createElementVNode("span",{title:"条件查询",onClick:a.withModifiers(J,["stop"])},[a.createVNode(q,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]),l.buttons&&((Sa=l.buttons)==null?void 0:Sa.length)>0?(a.openBlock(),a.createElementBlock("div",Op,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((te=l.buttons)==null?void 0:te.filter(B=>l.isDevMode||(B==null?void 0:B.label)!=="修改模板"),(B,le)=>{var ye;return a.openBlock(),a.createElementBlock("div",{class:"extra-contents",key:le},[(B==null?void 0:B.type)==="upload"?(a.openBlock(),a.createBlock(be,{key:0,class:"upload-button-wrap","on-change":D,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1},{default:a.withCtx(()=>{var se;return[a.createElementVNode("div",Ip,[a.createVNode(q,{class:"table-op-icon",name:(se=v==null?void 0:v.find(Ne=>(Ne==null?void 0:Ne.label)===(B==null?void 0:B.label)))==null?void 0:se.icon},null,8,["name"]),a.createElementVNode("span",Lp,a.toDisplayString(B==null?void 0:B.label),1)])]}),_:2},1024)):a.createCommentVNode("",!0),(B==null?void 0:B.type)==="popover"?(a.openBlock(),a.createBlock(pl._sfc_main,{key:1},{dropTitle:a.withCtx(()=>[(B==null?void 0:B.type)==="popover"?(a.openBlock(),a.createBlock(ze,{key:0,style:{background:"transparent",color:"#000000"}},{icon:a.withCtx(()=>{var se;return[a.createVNode(q,{class:"table-op-icon",name:(se=v==null?void 0:v.find(Ne=>(Ne==null?void 0:Ne.label)===(B==null?void 0:B.label)))==null?void 0:se.icon},null,8,["name"])]}),default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(B==null?void 0:B.label),1)]),_:2},1024)):a.createCommentVNode("",!0)]),dropMenu:a.withCtx(()=>[a.createElementVNode("div",Vp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(B==null?void 0:B.contents,se=>(a.openBlock(),a.createBlock(ze,{key:se==null?void 0:se.label,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:Ne=>_(se==null?void 0:se.label)},{default:a.withCtx(()=>{var Ne,ia;return[a.createTextVNode(a.toDisplayString(se==null?void 0:se.label),1),(Ne=se==null?void 0:se.label)!=null&&Ne.includes("选中")?(a.openBlock(),a.createElementBlock("span",$p,"("+a.toDisplayString(l.selectNums)+")",1)):a.createCommentVNode("",!0),(ia=se==null?void 0:se.label)!=null&&ia.includes("全部")?(a.openBlock(),a.createElementBlock("span",Rp,"("+a.toDisplayString(l.dataNums)+")",1)):a.createCommentVNode("",!0)]}),_:2},1032,["onClick"]))),128))])]),_:2},1024)):a.createCommentVNode("",!0),!(B!=null&&B.type)||(B==null?void 0:B.type)==="methodButton"?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}]),id:"themeButton",onClick:se=>!l.lockingPage&&_(B==null?void 0:B.label,B)},[a.createVNode(q,{class:"table-op-icon",name:(ye=v==null?void 0:v.find(se=>(se==null?void 0:se.label)===(B==null?void 0:B.label)))==null?void 0:ye.icon},null,8,["name"]),a.createElementVNode("span",Fp,a.toDisplayString(B==null?void 0:B.label),1)],10,Pp)):a.createCommentVNode("",!0)])}),128))])):a.createCommentVNode("",!0)])]))}}},Hp=ql._export_sfc(jp,[["__scopeId","data-v-3a44c010"]]),Up={__name:"index",props:{columns:Array,tableData:Array},setup(l){return(r,n)=>{const t=a.resolveComponent("el-table-column"),s=a.resolveComponent("el-table");return a.openBlock(),a.createBlock(s,{data:l.tableData,style:{width:"100%"},stripe:"","max-height":"500"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.columns,u=>{var b;return a.openBlock(),a.createBlock(t,{key:u==null?void 0:u.prop,label:u==null?void 0:u.label,prop:u==null?void 0:u.prop,fixed:(u==null?void 0:u.prop)==="operate"?"right":u==null?void 0:u.fixed,align:(u==null?void 0:u.align)??"left","show-overflow-tooltip":(u==null?void 0:u.showOverflowTooltip)??!0,width:u==null?void 0:u.width,"min-width":(u==null?void 0:u.minWidth)||((u==null?void 0:u.prop)==="operate"?80:(((b=u==null?void 0:u.label)==null?void 0:b.length)*2||4)*27)},{default:a.withCtx(h=>[a.renderSlot(r.$slots,"content",{row:h.row,column:h.column,$index:h.$index,scope:h}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(u.children,(v,y)=>(a.openBlock(),a.createBlock(pl._sfc_main$2,{key:y,column:v,tableData:l.tableData},a.createSlots({_:2},[a.renderList(r.$slots,(c,w)=>({name:w,fn:a.withCtx(({row:D,slotData:A,item:_,column:H})=>[a.renderSlot(r.$slots,w,a.mergeProps({ref_for:!0},A??D,{item:_??v,slotData:A??D,row:D,column:H,columnProp:v}))])}))]),1032,["column","tableData"]))),128))]),_:2},1032,["label","prop","fixed","align","show-overflow-tooltip","width","min-width"])}),128))]),_:3},8,["data"])}}};class qp extends $a.Loader{constructor(r){super(r),this.littleEndian=!0}load(r,n,t,s){const u=this,b=new $a.FileLoader(u.manager);b.setPath(u.path),b.setResponseType("arraybuffer"),b.setRequestHeader(u.requestHeader),b.setWithCredentials(u.withCredentials),b.load(r,function(h){try{n(u.parse(h))}catch(v){s?s(v):console.error(v),u.manager.itemError(r)}},t,s)}_getDataView(r,n,t,s){switch(t){case"F":return s===8?r.getFloat64(n,this.littleEndian):r.getFloat32(n,this.littleEndian);case"I":return s===1?r.getInt8(n):s===2?r.getInt16(n,this.littleEndian):r.getInt32(n,this.littleEndian);case"U":return s===1?r.getUint8(n):s===2?r.getUint16(n,this.littleEndian):r.getUint32(n,this.littleEndian)}}parse(r){function n(A,_){const H=A.length,k=new Uint8Array(_);let T=0,J=0,S,V,z;do if(S=A[T++],S<32){if(S++,J+S>_)throw new Error("Output buffer is not large enough");if(T+S>H)throw new Error("Invalid compressed data");do k[J++]=A[T++];while(--S)}else{if(V=S>>5,z=J-((S&31)<<8)-1,T>=H)throw new Error("Invalid compressed data");if(V===7&&(V+=A[T++],T>=H))throw new Error("Invalid compressed data");if(z-=A[T++],J+V+2>_)throw new Error("Output buffer is not large enough");if(z<0)throw new Error("Invalid compressed data");if(z>=J)throw new Error("Invalid compressed data");do k[J++]=k[z++];while(--V+2)}while(T<H);return k}function t(A){const _={},H=new Uint8Array(A);let k="",T="",J=0,S=!1;const V=H.length;for(;J<V&&S===!1;){const F=String.fromCharCode(H[J++]);F===`
2
+ `||F==="\r"?(T.trim().toLowerCase().startsWith("data")&&(S=!0),T=""):T+=F,k+=F}const z=k.search(/[\r\n]DATA\s(\S*)\s/i),x=/[\r\n]DATA\s(\S*)\s/i.exec(k.slice(z-1));if(_.data=x[1],_.headerLen=x[0].length+z,_.str=k.slice(0,_.headerLen),_.str=_.str.replace(/#.*/gi,""),_.version=/^VERSION (.*)/im.exec(_.str),_.fields=/^FIELDS (.*)/im.exec(_.str),_.size=/^SIZE (.*)/im.exec(_.str),_.type=/^TYPE (.*)/im.exec(_.str),_.count=/^COUNT (.*)/im.exec(_.str),_.width=/^WIDTH (.*)/im.exec(_.str),_.height=/^HEIGHT (.*)/im.exec(_.str),_.viewpoint=/^VIEWPOINT (.*)/im.exec(_.str),_.points=/^POINTS (.*)/im.exec(_.str),_.version!==null&&(_.version=parseFloat(_.version[1])),_.fields=_.fields!==null?_.fields[1].split(" "):[],_.type!==null&&(_.type=_.type[1].split(" ")),_.width!==null&&(_.width=parseInt(_.width[1])),_.height!==null&&(_.height=parseInt(_.height[1])),_.viewpoint!==null&&(_.viewpoint=_.viewpoint[1]),_.points!==null&&(_.points=parseInt(_.points[1],10)),_.points===null&&(_.points=_.width*_.height),_.size!==null&&(_.size=_.size[1].split(" ").map(function(F){return parseInt(F,10)})),_.count!==null)_.count=_.count[1].split(" ").map(function(F){return parseInt(F,10)});else{_.count=[];for(let F=0,q=_.fields.length;F<q;F++)_.count.push(1)}_.offset={};let g=0;for(let F=0,q=_.fields.length;F<q;F++)_.data==="ascii"?_.offset[_.fields[F]]=F:(_.offset[_.fields[F]]=g,g+=_.size[F]*_.count[F]);return _.rowSize=g,_}const s=t(r),u=[],b=[],h=[],v=[],y=[],c=new $a.Color;if(s.data==="ascii"){const A=s.offset,k=new TextDecoder().decode(r).slice(s.headerLen).split(`
3
+ `);for(let T=0,J=k.length;T<J;T++){if(k[T]==="")continue;const S=k[T].split(" ");if(A.x!==void 0&&(u.push(parseFloat(S[A.x])),u.push(parseFloat(S[A.y])),u.push(parseFloat(S[A.z]))),A.rgb!==void 0){const V=s.fields.findIndex(be=>be==="rgb"),z=s.type[V],x=parseFloat(S[A.rgb]);let g=x;if(z==="F"){const be=new Float32Array(1);be[0]=x,g=new Int32Array(be.buffer)[0]}const F=(g>>16&255)/255,q=(g>>8&255)/255,G=(g>>0&255)/255;c.setRGB(F,q,G,$a.SRGBColorSpace),h.push(c.r,c.g,c.b)}A.normal_x!==void 0&&(b.push(parseFloat(S[A.normal_x])),b.push(parseFloat(S[A.normal_y])),b.push(parseFloat(S[A.normal_z]))),A.intensity!==void 0&&v.push(parseFloat(S[A.intensity])),A.label!==void 0&&y.push(parseInt(S[A.label]))}}if(s.data==="binary_compressed"){const A=new Uint32Array(r.slice(s.headerLen,s.headerLen+8)),_=A[0],H=A[1],k=n(new Uint8Array(r,s.headerLen+8,_),H),T=new DataView(k.buffer),J=s.offset;for(let S=0;S<s.points;S++){if(J.x!==void 0){const V=s.fields.indexOf("x"),z=s.fields.indexOf("y"),x=s.fields.indexOf("z");u.push(this._getDataView(T,s.points*J.x+s.size[V]*S,s.type[V],s.size[V])),u.push(this._getDataView(T,s.points*J.y+s.size[z]*S,s.type[z],s.size[z])),u.push(this._getDataView(T,s.points*J.z+s.size[x]*S,s.type[x],s.size[x]))}if(J.rgb!==void 0){const V=s.fields.indexOf("rgb"),z=T.getUint8(s.points*J.rgb+s.size[V]*S+2)/255,x=T.getUint8(s.points*J.rgb+s.size[V]*S+1)/255,g=T.getUint8(s.points*J.rgb+s.size[V]*S+0)/255;c.setRGB(z,x,g,$a.SRGBColorSpace),h.push(c.r,c.g,c.b)}if(J.normal_x!==void 0){const V=s.fields.indexOf("normal_x"),z=s.fields.indexOf("normal_y"),x=s.fields.indexOf("normal_z");b.push(this._getDataView(T,s.points*J.normal_x+s.size[V]*S,s.type[V],s.size[V])),b.push(this._getDataView(T,s.points*J.normal_y+s.size[z]*S,s.type[z],s.size[z])),b.push(this._getDataView(T,s.points*J.normal_z+s.size[x]*S,s.type[x],s.size[x]))}if(J.intensity!==void 0){const V=s.fields.indexOf("intensity");v.push(this._getDataView(T,s.points*J.intensity+s.size[V]*S,s.type[V],s.size[V]))}if(J.label!==void 0){const V=s.fields.indexOf("label");y.push(T.getInt32(s.points*J.label+s.size[V]*S,this.littleEndian))}}}if(s.data==="binary"){const A=new DataView(r,s.headerLen),_=s.offset;for(let H=0,k=0;H<s.points;H++,k+=s.rowSize){if(_.x!==void 0){const T=s.fields.indexOf("x"),J=s.fields.indexOf("y"),S=s.fields.indexOf("z");u.push(this._getDataView(A,k+_.x,s.type[T],s.size[T])),u.push(this._getDataView(A,k+_.y,s.type[J],s.size[J])),u.push(this._getDataView(A,k+_.z,s.type[S],s.size[S]))}if(_.rgb!==void 0){const T=A.getUint8(k+_.rgb+2)/255,J=A.getUint8(k+_.rgb+1)/255,S=A.getUint8(k+_.rgb+0)/255;c.setRGB(T,J,S,$a.SRGBColorSpace),h.push(c.r,c.g,c.b)}if(_.normal_x!==void 0){const T=s.fields.indexOf("normal_x"),J=s.fields.indexOf("normal_y"),S=s.fields.indexOf("normal_z");b.push(this._getDataView(A,k+_.normal_x,s.type[T],s.size[T])),b.push(this._getDataView(A,k+_.normal_y,s.type[J],s.size[J])),b.push(this._getDataView(A,k+_.normal_z,s.type[S],s.size[S]))}if(_.intensity!==void 0){const T=s.fields.indexOf("intensity");v.push(this._getDataView(A,k+_.intensity,s.type[T],s.size[T]))}_.label!==void 0&&y.push(A.getInt32(k+_.label,this.littleEndian))}}const w=new $a.BufferGeometry;u.length>0&&w.setAttribute("position",new $a.Float32BufferAttribute(u,3)),b.length>0&&w.setAttribute("normal",new $a.Float32BufferAttribute(b,3)),h.length>0&&w.setAttribute("color",new $a.Float32BufferAttribute(h,3)),v.length>0&&w.setAttribute("intensity",new $a.Float32BufferAttribute(v,1)),y.length>0&&w.setAttribute("label",new $a.Int32BufferAttribute(y,1)),w.computeBoundingSphere();const D=new $a.PointsMaterial({size:.005});return h.length>0&&(D.vertexColors=!0),new $a.Points(w,D)}}const Kp=I.useModelComp(I.pinia),{systemPath:ns}=I.storeToRefs(Kp),co=a.ref(),ts=new WeakMap;function Wp(l,r,n,t,s){const u=async D=>{try{const A=await I.platformDownloadFile({url:D});if(A.status!==200)throw new Error(`下载失败: ${A.status}`);return A.data}catch(A){throw console.error("addModelFromUrl失败:",A),A}},b=D=>new Promise((A,_)=>{const H=new FileReader;H.onload=k=>{try{const T=k.target.result,S=new Dn.MTLLoader().parse(T);S.preload(),A(S)}catch(T){_(T)}},H.onerror=()=>{_(new Error("MTL文件读取失败"))},H.readAsText(D)}),h=async D=>{const A={materials:{},create:function(_){return this.materials[_]?this.materials[_]:(console.warn(`Material '${_}' not found, using default material`),new $a.MeshPhongMaterial({color:8947848,side:$a.DoubleSide}))},getAsArray:function(){const _=[];for(const H in this.materials)_.push(this.materials[H]);return _},preload:function(){for(const _ in this.materials)this.materials[_].map&&(this.materials[_].map.needsUpdate=!0)}};for(const _ of D){const H=await b(_);Object.assign(A.materials,H.materials)}return A.preload(),A},v=async(D,A=[])=>new Promise((_,H)=>{const k=new FileReader;k.onload=async T=>{try{const J=T.target.result;let S=null;A&&A.length>0&&(A.length===1?S=await b(A[0]):S=await h(A));const V=new Dn.OBJLoader;S&&V.setMaterials(S);const z=V.parse(J);S||z.traverse(x=>{x.isMesh&&(x.material=new $a.MeshPhongMaterial({color:8947848,side:$a.DoubleSide}))}),_(z)}catch(J){H(J)}},k.onerror=()=>{H(new Error("OBJ文件读取失败"))},k.readAsText(D)}),y=async D=>{var A;try{n.value=!0;const{scene:_}=l();if(!_)throw new Error("Scene not initialized");s();const H=[];for(let k=0;k<D.length;k++){const T=D[k];t.value=`正在加载模型 ${k+1}/${D.length}...`;const J=await u(T.objUrl),S=((A=T.objUrl)==null?void 0:A.split("/").pop())||`model_${k}.obj`,V=new File([J],S,{type:J.type});let z=[];if(T.mtlUrls){const g=Array.isArray(T.mtlUrls)?T.mtlUrls:[T.mtlUrls];for(let F=0;F<g.length;F++){const q=g[F],G=await u(q),be=(q==null?void 0:q.split("/").pop())||`material_${k}_${F}.mtl`,ze=new File([G],be,{type:G.type});z.push(ze)}}const x=await v(V,z);_.add(x),r.value.push(x),H.push(x)}return n.value=!1,H}catch(_){throw console.error("加载模型失败:",_),n.value=!1,_}},c=async(D,A,_=[],H=[])=>{let k;const T=D.toLowerCase();switch(T){case".txt":case".cpt":case".obj":const J=await A.text();if(T===".txt"||T===".cpt"){const ee=/^(?!.*\bf\b)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?$/gm,Pe=[...J.matchAll(ee)].map(Ae=>({x:parseFloat(Ae[1]),y:parseFloat(Ae[2]),z:parseFloat(Ae[3])})),ga=new $a.BufferGeometry,He=Pe.flatMap(Ae=>[Ae.x,Ae.y,Ae.z]);if(ga.setAttribute("position",new $a.Float32BufferAttribute(He,3)),T===".txt"){const Ae=new $a.PointsMaterial({color:"#5B5C99",size:1,sizeAttenuation:!1});k=new $a.Points(ga,Ae)}else if(T===".cpt"){const Ae=new $a.LineBasicMaterial({color:"#5B5C99",linewidth:100});k=new $a.Line(ga,Ae)}}else if(T===".obj"){const ee=new Dn.OBJLoader;if(_&&_.length>0){const ea=new Dn.MTLLoader;for(const Pe of _){const ga=await Pe.text(),He=ea.parse(ga);He.preload(),ee.setMaterials(He);break}}k=ee.parse(J),(!_||_.length===0)&&k.traverse(ea=>{ea.isMesh&&(ea.material=new $a.MeshPhongMaterial({color:"#B3B3D4"})),ea instanceof $a.Mesh&&(ea.material.side=$a.DoubleSide)})}break;case".stl":const S=await A.arrayBuffer(),z=new Dn.STLLoader().parse(S),x=new $a.MeshPhongMaterial({color:"#B3B3D4",side:$a.DoubleSide});k=new $a.Mesh(z,x);break;case".nc":const g=["Mach_B_Axis_0.STL","Mach_C_Axis_0.STL","Mach_X_Axis_0.STL","Mach_Y_Axis_0.STL","Mach_Z_Axis_0.STL","Mach_Spindle_0.STL"],F={"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)"},q=new $a.Group,G=g.map(ee=>new Promise((ea,Pe)=>{new Dn.STLLoader().load(ns.value===""?`/model/${ee}`:`${ns.value}\\${ee}`,He=>{const Ae=new $a.MeshPhongMaterial({color:F[ee]||"#B3B3D4",side:$a.DoubleSide}),Re=new $a.Mesh(He,Ae);ea(Re)},void 0,Pe)}));try{(await Promise.all(G)).forEach(ea=>q.add(ea)),k=q}catch(ee){throw console.error("加载NC文件对应的STL文件失败:",ee),new Error("无法加载.NC文件对应的STL文件")}break;case".pcd":const be=new qp,ze=new $a.Group;try{const ee=await ll.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/target.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),ea=new Blob([ee.data],{type:"application/octet-stream;charset=UTF-8"}),Pe=await ll.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/final.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),ga=new Blob([Pe.data],{type:"application/octet-stream;charset=UTF-8"}),He=await new Promise((Re,Ge)=>{const Ka=URL.createObjectURL(ea);be.load(Ka,Ia=>{const R=new Float32Array(Ia.geometry.attributes.position.count*3);for(let P=0;P<Ia.geometry.attributes.position.count;P++)R[P*3]=1,R[P*3+1]=0,R[P*3+2]=0;Ia.geometry.setAttribute("color",new $a.BufferAttribute(R,3)),Ia.material.vertexColors=!0,Ia.scale.set(.3,.3,.3),URL.revokeObjectURL(Ka),Re(Ia)},void 0,Ge)}),Ae=await new Promise((Re,Ge)=>{const Ka=URL.createObjectURL(ga);be.load(Ka,Ia=>{const R=new Float32Array(Ia.geometry.attributes.position.count*3);for(let P=0;P<Ia.geometry.attributes.position.count;P++)R[P*3]=0,R[P*3+1]=1,R[P*3+2]=0;Ia.geometry.setAttribute("color",new $a.BufferAttribute(R,3)),Ia.material.vertexColors=!0,Ia.scale.set(.3,.3,.3),URL.revokeObjectURL(Ka),Re(Ia)},void 0,Ge)});ze.add(He),ze.add(Ae),k=ze}catch(ee){throw console.error("PCD文件加载失败:",ee),new Error("无法加载PCD文件")}break;case".urdf":const De=URL.createObjectURL(A),ne=new ku.URDFLoader,ke="http://139.196.154.85:20026/chfs/shared/机器人/urdf/SmallBender_R-2000iC-165F/meshes",X={maxConcurrentLoads:4,enableCache:!0,enableLOD:!0,simplifyGeometry:!0,shareMaterials:!0,enableInstancing:!0},pe=new WeakMap,Ke=new WeakMap,Sa=new WeakMap,te=async ee=>{if(pe.has(ee))return console.log(`从缓存加载: ${ee}`),pe.get(ee);try{const ea=await ll.axios.get(`${ke}/${ee}`,{responseType:"blob",headers:{"Content-Type":"application/json"},timeout:6e5}),Pe=new Blob([ea.data],{type:"application/octet-stream;charset=UTF-8"});return X.enableCache&&pe.set(ee,Pe),Pe}catch(ea){throw console.error(`加载文件失败: ${ee}`,ea),new Error(`无法加载文件: ${ee}`)}},B=(ee="default")=>{if(Ke.has(ee))return Ke.get(ee);const ea=new $a.MeshPhongMaterial({color:12303291,shininess:30,transparent:!1,alphaTest:.1,side:$a.FrontSide});return Ke.set(ee,ea),ea},le=ee=>{try{ee.isBufferGeometry&&ee.mergeVertices&&ee.mergeVertices(),ee.computeVertexNormals&&ee.computeVertexNormals(),ee.computeBoundingSphere&&ee.computeBoundingSphere(),ee.deleteAttribute&&ee.deleteAttribute("uv2")}catch(ea){console.warn("几何体优化失败,使用原始几何体:",ea)}return ee},ye=async(ee,ea,Pe)=>{const ga=`stl_${ea}`;if(Sa.has(ga)){const Ge=Sa.get(ga);return new $a.Mesh(Ge,B())}const He=await ee.arrayBuffer();let Re=new Dn.STLLoader(Pe).parse(He);return Re=le(Re),Sa.set(ga,Re),new $a.Mesh(Re,B())},se=async(ee,ea,Pe)=>{const ga=`obj_${ea}`;if(pe.has(ga))return pe.get(ga).clone();const He=await ee.text(),Ae=new Dn.OBJLoader(Pe),Re=ea.replace(".obj",".mtl");try{const Ia=await(await te(Re)).text(),P=new Dn.MTLLoader(Pe).parse(Ia);P.preload(),Ae.setMaterials(P)}catch{console.warn(`MTL文件加载失败,使用默认材质: ${Re}`)}const Ge=Ae.parse(He);return Ge.traverse(Ka=>{Ka.isMesh&&(Ka.geometry=le(Ka.geometry),Ka.castShadow=!0,Ka.receiveShadow=!0,Ka.renderOrder=1)}),pe.set(ga,Ge),Ge},Ne=(ee,ea)=>{const Pe=new $a.LOD;if(Pe.addLevel(ee,0),ee.geometry){const ga=ee.geometry.clone(),He=new $a.Mesh(ga,ee.material);Pe.addLevel(He,50)}return Pe};let ia=0,xa=0;const Ha=[];ne.loadMeshCb=async(ee,ea,Pe,ga,He)=>{const Ae=ee.split("/").pop(),Re=Pe||(()=>{});ia++;const Ge=new Promise(async(Ka,Ia)=>{try{const R=await te(Ae);if(!R||R.size===0)throw new Error(`文件为空: ${Ae}`);const P=Ae.split(".").pop().toLowerCase();let Y;switch(P){case"stl":Y=await ye(R,Ae,ea);break;case"obj":Y=await se(R,Ae,ea);break;default:throw new Error(`不支持的文件格式: ${P}`)}X.enableLOD&&Y.isMesh&&(Y=Ne(Y,Ae)),Re(Y),xa++,ga&&ga({loaded:xa,total:ia,progress:xa/ia}),Ka(Y)}catch(R){console.error(`mesh文件加载失败: ${Ae}`,R);const P=new $a.Group;Re(P),Ka(P);const Y=new $a.BoxGeometry(.1,.1,.1),oe=new $a.MeshStandardMaterial({color:16711680,wireframe:!0});return new $a.Mesh(Y,oe)}});Ha.push(Ge)};try{if(!De){co.value=void 0;break}if(k=await ne.loadAsync(De),console.log(`URDF文件加载完成,等待${ia}个mesh文件加载...`),Ha.length>0)try{await Promise.allSettled(Ha),console.log(`所有mesh文件处理完成,成功加载: ${xa}/${ia}`)}catch(Pe){console.warn("部分mesh文件加载失败,但继续显示模型",Pe)}k.traverse(Pe=>{Pe.isMesh&&(Pe.castShadow=!0,Pe.receiveShadow=!0,Pe.renderOrder=1,Pe.material&&(Pe.material.needsUpdate=!0))}),console.time("计算包围盒");const ee=new $a.Box3;ee.expandByObject(k);const ea=`urdf_${Date.now()}`;k.userData.boundingBox=ee.clone(),k.userData.modelId=ea,ts.set(ea,{box:ee.clone(),center:ee.getCenter(new $a.Vector3),size:ee.getSize(new $a.Vector3),maxSize:Math.max(...ee.getSize(new $a.Vector3).toArray())}),co.value=k,console.log("URDF模型加载完成并优化")}catch(ee){console.error("URDF加载失败:",ee),co.value=void 0}finally{De&&URL.revokeObjectURL(De)}break;default:throw new Error(`不支持的文件格式: ${D}`)}return k};return{addModelsFromUrls:y,loadModelByDefaultPath:async D=>{console.log(D);try{n.value=!0,t.value="正在加载模型...";const{scene:A}=l();if(!A)throw new Error("Scene not initialized");s(),await new Promise(H=>setTimeout(H,100));const _=[];for(let H=0;H<D.length;H++){const k=D[H],T=await c(k.suffix,k.blob,k.mtlBlobs||[],k.meshFiles||[]);T&&(A.add(T),r.value.push(T),_.push(T))}return n.value=!1,t.value="",_}catch(A){throw console.error("加载模型失败:",A),n.value=!1,t.value="",A}},urdfModel:co,modelBoundingBoxes:ts}}window._iconfont_svg_string_4827314='<svg><symbol id="icon-chart-new" viewBox="0 0 1024 1024"><path d="M960 768V448h-64v320h-64v64H192v-64h-64V256h64v-64h256v-64H192V64H0v192h64v512H0v192h192v-64h640v64h192V768h-64zM64 128h64v64H64v-64z m0 768v-64h64v64H64z m896 0h-64v-64h64v64zM256 768V256h128v512H256z m192-320h128v320H448V448z m192 192h128v128H640V640zM512 288c0-17.664 14.336-32 32-32h160V96c0-17.664 14.336-32 32-32s32 14.336 32 32v160h160c17.664 0 32 14.336 32 32s-14.336 32-32 32H768v160c0 17.664-14.336 32-32 32s-32-14.336-32-32V320H544c-17.664 0-32-14.336-32-32z" ></path></symbol><symbol id="icon-ai13" viewBox="0 0 1024 1024"><path d="M863.719038 159.366637l-705.295378 0c-48.443315 0-88.129176 39.690978-88.129176 88.161922l0 528.943904c0 48.474015 39.685861 88.161922 88.129176 88.161922l705.295378 0c48.443315 0 88.134293-39.687908 88.134293-88.161922l0-528.943904C951.853331 199.056592 912.162354 159.366637 863.719038 159.366637M643.272277 776.472464l-484.84964 0 0-176.324868 484.84964 0L643.272277 776.472464zM643.272277 556.053332l-484.84964 0 0-176.296215 484.84964 0L643.272277 556.053332zM863.719038 776.472464 687.394171 776.472464l0-396.659065 176.324868 0L863.719038 776.472464z" ></path></symbol><symbol id="icon-qiehuanwenjianjia" viewBox="0 0 1024 1024"><path d="M409.6 102.4L512 204.8h307.2a102.4 102.4 0 0 1 102.144 94.72l0.256 7.68v512a102.4 102.4 0 0 1-94.72 102.144l-7.68 0.256H512v-76.8h281.6a51.2 51.2 0 0 0 50.842-45.21l0.358-5.99V332.8a51.2 51.2 0 0 0-45.21-50.842l-5.99-0.358H486.4L384 179.2H230.4a51.2 51.2 0 0 0-50.842 45.21l-0.358 5.99v179.2h-76.8V204.8a102.4 102.4 0 0 1 94.72-102.144l7.68-0.256h204.8z m217.6 588.8a38.4 38.4 0 1 1 0 76.8H358.4v99.584a25.6 25.6 0 0 1-41.83 19.814L132.3 736.614a25.6 25.6 0 0 1 16.231-45.414zM447.59 389.99l3.84 2.612L635.7 543.386a25.6 25.6 0 0 1-11.623 45.004l-4.608 0.41H140.8a38.4 38.4 0 0 1-5.222-76.442L140.8 512h268.8v-99.584a25.6 25.6 0 0 1 37.99-22.426z" ></path></symbol><symbol id="icon-baogao" viewBox="0 0 1104 1024"><path d="M265.401 1024a174.066 174.066 0 0 1-173.56-173.56V315.3a4.194 4.194 0 0 0-4.338-4.34H41.22A39.63 39.63 0 0 1 0 273.356V123.66C0 55.684 59.3 0 132.339 0h648.678a132.411 132.411 0 0 1 132.339 132.339v553.22a4.194 4.194 0 0 0 4.339 4.34h146.079a40.714 40.714 0 0 1 41.22 41.22v159.819a132.411 132.411 0 0 1-132.339 132.339l-707.254 0.723z m653.017-260.339A4.194 4.194 0 0 0 914.08 768v123.661a59.3 59.3 0 0 0 118.599 0V768a4.194 4.194 0 0 0-4.339-4.339z m-749.198-452.7a4.194 4.194 0 0 0-4.339 4.338v534.419a100.737 100.737 0 0 0 100.52 100.52h582.147a3.977 3.977 0 0 0 3.616-2.17 4.628 4.628 0 0 0 0-4.34 132.7 132.7 0 0 1-10.848-52.79V133.062a59.3 59.3 0 0 0-118.598 0v140.294a39.195 39.195 0 0 1-41.22 37.604zM132.34 73.762c-32.542 0-59.3 22.418-59.3 49.898v109.92a4.194 4.194 0 0 0 4.34 4.34h566.237a4.194 4.194 0 0 0 4.339-4.34V133.063a132.7 132.7 0 0 1 10.847-52.79c0.723-1.447 0-2.893 0-4.34a3.977 3.977 0 0 0-3.616-2.17z m169.22 692.068a36.881 36.881 0 0 1 0-73.763h402.08a36.881 36.881 0 0 1 0 73.763z m0-196.701a36.881 36.881 0 1 1 0-73.763h402.08a36.881 36.881 0 1 1 0 73.763z" ></path></symbol><symbol id="icon-xinghao" viewBox="0 0 1024 1024"><path d="M580.583 425.004c52.988-24.574 104.44-49.276 152.82-73.594 48.381-24.703 87.034-42.877 115.704-54.268 28.67-11.136 51.58-17.023 69.115-17.023a104.952 104.952 0 0 1 74.235 28.798 93.177 93.177 0 0 1 31.485 71.802c0 16.383-5.12 33.534-15.358 51.069-10.24 17.534-21.247 28.926-32.638 33.79-105.976 41.468-222.832 72.058-350.054 90.872 23.038 20.99 51.452 49.405 85.113 84.474 33.79 35.582 51.453 54.268 52.86 56.7 12.416 17.023 29.566 38.397 51.837 63.74 22.142 25.597 37.501 45.18 46.076 59.643a99.833 99.833 0 0 1 13.055 52.092 93.817 93.817 0 0 1-29.693 68.731 103.16 103.16 0 0 1-76.41 29.694c-31.23 0-66.172-24.318-105.337-72.443-39.037-48.124-89.465-135.158-151.029-260.46A12540.003 12540.003 0 0 1 386.677 862.22a387.3 387.3 0 0 1-61.563 81.53 96.889 96.889 0 0 1-67.835 27.774 101.625 101.625 0 0 1-76.026-31.358c-19.711-20.862-30.078-43.517-30.078-66.939 0-22.142 4.095-38.909 12.287-50.172 75.514-102.393 154.356-191.602 236.782-266.605a2401.103 2401.103 0 0 1-184.818-35.709 1163.818 1163.818 0 0 1-172.531-57.724c-9.984-5.12-19.583-16.382-29.054-33.917A104.696 104.696 0 0 1 0.018 380.72a93.433 93.433 0 0 1 31.358-71.675 102.648 102.648 0 0 1 72.186-28.926c19.839 0 44.285 5.887 73.979 17.79 29.438 11.904 67.067 29.054 112.632 51.453 45.564 22.526 97.656 47.74 155.892 75.514a1833.849 1833.849 0 0 1-26.494-177.267 1574.54 1574.54 0 0 1-10.367-137.078c0-30.205 9.599-56.06 28.798-78.074A95.481 95.481 0 0 1 512.62 0.076c29.822 0 54.012 10.75 73.339 32.51 19.454 21.886 29.054 50.683 29.054 86.649 0 9.855-1.664 29.182-4.48 58.491-2.56 29.182-7.04 64.252-12.16 105.465-5.375 41.34-11.39 88.697-17.79 141.813z" fill="#FF4444" ></path></symbol><symbol id="icon-mima" viewBox="0 0 1024 1024"><path d="M776.86 376.04c-22.05 0-40.16-16.24-43.91-37.98-18.08-104.98-109.79-185.1-219.84-185.1s-201.76 80.13-219.84 185.1c-3.74 21.73-21.85 37.98-43.91 37.98-27.05 0-48.82-24.04-44.44-50.73 24.3-148.16 153.25-261.58 308.19-261.58S796.99 177.15 821.3 325.31c4.38 26.69-17.39 50.73-44.44 50.73zM850.18 418.32H180.33c-37.98 0-68.76 30.79-68.76 68.76v403.71c0 37.98 30.79 68.76 68.76 68.76h665.36c37.97 0 68.75-30.77 68.77-68.74l0.19-408c0.02-35.61-28.85-64.49-64.47-64.49zM557.73 762.56c0 24.64-19.97 44.62-44.62 44.62-24.64 0-44.62-19.97-44.62-44.62v-89.23c0-24.64 19.97-44.62 44.62-44.62 24.64 0 44.62 19.98 44.62 44.62v89.23z" ></path></symbol><symbol id="icon-zhanghao" viewBox="0 0 1024 1024"><path d="M407.61 578.87c-174.46 0-304.73 113.04-304.73 277.2v17.69c0 85.81 139.6 85.81 316.37 85.81h187.73c169.75 0 316.37 0 316.37-85.81v-17.69c0-164.16-130.28-277.2-304.73-277.2H407.61zM503.71 535.67c138.19 0 250.63-105.81 250.63-235.94 0-130.06-112.44-235.86-250.63-235.86-138.11 0-250.56 105.81-250.56 235.86 0 130.13 112.45 235.94 250.56 235.94z" ></path></symbol><symbol id="icon-xiangqingye-37" viewBox="0 0 1024 1024"><path d="M368.64 34.133333H112.64C68.266667 34.133333 34.133333 68.266667 34.133333 112.64v256c0 23.893333 17.066667 40.96 40.96 40.96s40.96-17.066667 40.96-40.96V116.053333h252.586667c23.893333 0 40.96-17.066667 40.96-40.96S389.12 34.133333 368.64 34.133333zM911.36 34.133333h-256c-23.893333 0-40.96 17.066667-40.96 40.96s17.066667 40.96 40.96 40.96h252.586667v252.586667c0 23.893333 17.066667 40.96 40.96 40.96s40.96-17.066667 40.96-40.96V112.64C989.866667 68.266667 955.733333 34.133333 911.36 34.133333zM368.64 907.946667H116.053333v-252.586667c0-23.893333-17.066667-40.96-40.96-40.96S34.133333 634.88 34.133333 655.36v256C34.133333 955.733333 68.266667 989.866667 112.64 989.866667h256c23.893333 0 40.96-17.066667 40.96-40.96s-20.48-40.96-40.96-40.96zM948.906667 617.813333c-23.893333 0-40.96 17.066667-40.96 40.96v252.586667h-252.586667c-23.893333 0-40.96 17.066667-40.96 40.96s17.066667 40.96 40.96 40.96h256c40.96 0 78.506667-34.133333 78.506667-78.506667v-256c0-23.893333-17.066667-40.96-40.96-40.96z" fill="#3366CC" ></path><path d="M416.426667 488.106667L307.2 344.746667c-13.653333-17.066667-34.133333-20.48-51.2-6.826667-17.066667 13.653333-20.48 34.133333-6.826667 51.2L337.92 512l-95.573333 126.293333c-13.653333 17.066667-10.24 37.546667 6.826666 51.2 6.826667 3.413333 13.653333 6.826667 20.48 6.826667 10.24 0 23.893333-6.826667 30.72-13.653333l112.64-146.773334c10.24-17.066667 10.24-34.133333 3.413334-47.786666z" fill="#F4A914" ></path><path d="M597.333333 488.106667L488.106667 341.333333c-13.653333-17.066667-34.133333-20.48-51.2-6.826666-17.066667 13.653333-20.48 34.133333-6.826667 51.2l92.16 122.88-95.573333 126.293333c-13.653333 17.066667-10.24 37.546667 6.826666 51.2 6.826667 3.413333 13.653333 6.826667 20.48 6.826667 10.24 0 23.893333-6.826667 30.72-13.653334l112.64-146.773333c10.24-13.653333 10.24-30.72 0-44.373333z" fill="#F4A914" ></path><path d="M778.24 488.106667L669.013333 341.333333c-13.653333-17.066667-34.133333-20.48-51.2-6.826666-17.066667 13.653333-20.48 34.133333-6.826666 51.2l92.16 122.88-95.573334 126.293333c-6.826667 6.826667-6.826667 17.066667-6.826666 27.306667 0 10.24 6.826667 17.066667 13.653333 23.893333 6.826667 3.413333 13.653333 6.826667 23.893333 6.826667 10.24 0 23.893333-6.826667 30.72-13.653334l112.64-146.773333c6.826667-13.653333 6.826667-30.72-3.413333-44.373333z" fill="#F4A914" ></path></symbol><symbol id="icon-gongzhuangmoju" viewBox="0 0 1024 1024"><path d="M192 170.666667A106.965333 106.965333 0 0 0 85.333333 277.333333V426.666667h256l42.666667 85.333333h256l42.666667-85.333333h256V277.333333A106.965333 106.965333 0 0 0 832 170.666667z" fill="#3B709C" ></path><path d="M384 512l-42.666667-85.333333h341.333334l-42.666667 85.333333z m-298.666667-85.333333V256a85.333333 85.333333 0 0 1 85.333334-85.333333h682.666666a85.333333 85.333333 0 0 1 85.333334 85.333333v170.666667zM853.333333 853.333333H170.666667a85.333333 85.333333 0 0 1-85.333334-85.333333v-256h213.333334l42.666666 85.333333h341.333334l42.666666-85.333333h213.333334v256a85.333333 85.333333 0 0 1-85.333334 85.333333z" fill="#2C6798" ></path></symbol><symbol id="icon-jiagongguochengxinxi" viewBox="0 0 1024 1024"><path d="M345.216 664.192a315.84 315.84 0 0 1 93.12-224.64 315.84 315.84 0 0 1 100.992-68.16 315.392 315.392 0 0 1 123.648-24.96 315.392 315.392 0 0 1 158.72 42.368v-264a24.768 24.768 0 0 0-24.768-24.768H559.296a32.64 32.64 0 0 1 0.704 6.976v133.184c0 19.2-15.616 34.816-34.816 34.816H395.072a34.816 34.816 0 0 1-34.752-34.816v-133.12a32.64 32.64 0 0 1 0.64-6.976H123.456a24.768 24.768 0 0 0-24.768 24.832v676.544c0 13.76 11.072 24.832 24.768 24.832h266.24a316.224 316.224 0 0 1-44.416-162.112zM662.976 406.4a257.792 257.792 0 1 0 0 515.52 257.792 257.792 0 0 0 0-515.52z m112.256 293.376a104.704 104.704 0 0 1-107.328 25.216l-68.48 68.48a46.528 46.528 0 0 1-65.728-65.664l68.48-68.48a104.512 104.512 0 0 1 140.8-129.28l-67.072 67.072 10.88 42.88 43.328 11.328 67.072-67.136c16.64 38.336 9.216 84.416-21.952 115.584z m-220.16 51.456a20.928 20.928 0 1 0 41.856 0 20.928 20.928 0 0 0-41.856 0z" ></path></symbol><symbol id="icon-pingtaiguanli" viewBox="0 0 1024 1024"><path d="M1024 806.4V25.6c0-12.8-12.8-25.6-25.6-25.6H25.6C12.8 0 0 12.8 0 25.6v780.8h435.2v166.4H236.8v51.2h556.8v-51.2H588.8v-166.4H1024zM320 281.6c-12.8-12.8-19.2-25.6-32-32l44.8-76.8c44.8 25.6 96 12.8 121.6-32 12.8-12.8 12.8-32 12.8-44.8h89.6c0 51.2 38.4 83.2 89.6 83.2 12.8 0 32-6.4 44.8-12.8l44.8 76.8c-44.8 25.6-57.6 76.8-32 115.2 12.8 12.8 19.2 25.6 32 32l-44.8 76.8c-44.8-19.2-96-6.4-121.6 38.4-12.8 12.8-12.8 25.6-12.8 44.8H467.2c0-44.8-38.4-83.2-89.6-83.2-12.8 0-32 6.4-44.8 12.8l-44.8-83.2c38.4-25.6 51.2-76.8 32-115.2zM102.4 704v-51.2h825.6v51.2H102.4zM512 416c51.2 0 96-38.4 96-89.6S569.6 236.8 512 236.8c-51.2 0-96 38.4-96 89.6 0 51.2 44.8 89.6 96 89.6z" ></path></symbol><symbol id="icon-zhucaidanguanli" viewBox="0 0 1169 1024"><path d="M787.333831 588.946093a75.189984 75.189984 0 0 0-75.093984 75.092984 75.189984 75.189984 0 0 0 75.093984 75.093984 75.165984 75.165984 0 0 0 75.067984-75.093984 75.165984 75.165984 0 0 0-75.067984-75.092984m0 222.841953a147.919968 147.919968 0 0 1-147.748968-147.748969c0-81.455982 66.291986-147.747968 147.748968-147.747968 81.431983 0 147.747968 66.291986 147.747968 147.747968 0 81.480982-66.315986 147.748968-147.747968 147.748969m89.452981 102.106978c0.342 0.244 1.317 0.585 2.315999 0.585h0.122l71.484985-39.496992c-1.706-4.022999-9.605998-23.478995-9.605998-43.739991a113.858976 113.858976 0 0 1 107.739977-113.613975c0.853-4.729999 5.557999-31.524993 5.557998-51.639989s-4.704999-46.88399-5.558998-51.637989a113.858976 113.858976 0 0 1-107.738977-113.565976c0-20.357996 7.923998-39.813991 9.605998-43.81299l-70.313985-39.057992-0.293-0.025a5.339999 5.339999 0 0 0-2.706 0.732 196.753958 196.753958 0 0 1-26.014994 21.819995c-21.698995 15.238997-42.153991 22.967995-60.951987 22.967995-18.919996 0-39.594991-7.874998-61.390987-23.405995a194.705958 194.705958 0 0 1-26.160994-22.283995 5.777999 5.777999 0 0 0-2.729999-0.707h-0.245l-72.824985 40.032992c1.706 4.046999 9.580998 23.479995 9.580998 43.73999A113.858976 113.858976 0 0 1 528.895886 614.350088c-0.854 4.729999-5.509999 31.524993-5.509998 51.638989s4.655999 46.90899 5.533998 51.662989a113.858976 113.858976 0 0 1 107.763977 113.589975c0 20.334996-7.972998 39.863991-9.679998 43.788991l68.973985 38.545992h0.146c1.024 0 1.95-0.365 2.317-0.585a200.849957 200.849957 0 0 1 26.428994-23.161995c22.088995-16.188997 43.079991-24.429995 62.414987-24.429995 19.552996 0 40.715991 8.387998 62.950986 24.917995 14.920997 11.068998 25.258995 22.185995 26.550995 23.575995m22.673995 108.397976c-13.774997-0.025-27.135994-5.704999-35.765993-15.213996-11.775997-12.896997-49.005989-46.44599-79.530982-46.44599-30.280993 0-68.119985 33.767993-78.993984 45.54399-8.606998 9.386998-21.869995 14.969997-35.498992 14.969997-6.484999 0-12.604997-1.243-18.187996-3.706l-0.975-0.414-92.69698-51.833988-0.926-0.683a44.46999 44.46999 0 0 1-14.920996-53.735989c0.049-0.146 8.532998-19.699996 8.532998-37.594992a98.376979 98.376979 0 0 0-98.254979-98.254978h-3.900999c-15.505997 0-28.159994-13.799997-32.182993-35.108993-0.341-1.706-7.923998-42.178991-7.923999-74.044984 0-31.913993 7.557998-72.361984 7.899999-74.117984 4.119999-21.576995 16.992996-35.449992 32.816993-35.083993h3.266999a98.400979 98.400979 0 0 0 98.279979-98.303978c0-17.846996-8.484998-37.399992-8.558998-37.619992a44.34899 44.34899 0 0 1 15.067996-53.661989l0.95-0.658 97.840979-53.759988 1.024-0.415c5.485999-2.364999 11.507998-3.534999 17.895996-3.534999 13.604997 0 26.891994 5.436999 35.595992 14.628997 11.580998 12.116997 48.17699 43.641991 77.774984 43.64199 29.354994 0 65.755986-30.914993 77.287983-42.812991 8.654998-8.996998 21.844995-14.335997 35.302992-14.335997 6.509999 0 12.653997 1.219 18.285997 3.657l0.974999 0.414 94.47698 52.516988 0.95 0.658c16.895996 11.751997 23.332995 34.889993 14.945997 53.735989-0.049 0.146-8.532998 19.699996-8.532999 37.545992a98.400979 98.400979 0 0 0 98.254979 98.279978h3.291c15.774997-0.341 28.719994 13.506997 32.816993 35.107993 0.317 1.707 7.899998 42.203991 7.899998 74.069984 0 31.889993-7.582998 72.410984-7.948998 74.117984-4.046999 21.551995-16.992996 35.424992-32.767993 35.059993h-3.291a98.400979 98.400979 0 0 0-98.254979 98.278978c0 17.846996 8.483998 37.449992 8.556999 37.619992a44.42199 44.42199 0 0 1-15.017997 53.710989l-0.927 0.683-96.133979 53.100988-0.975 0.415a44.88499 44.88499 0 0 1-17.846996 3.583999z m222.061952-705.339848a48.76199 48.76199 0 1 1-97.523979 0V121.977194c0-13.457997-10.873998-24.453995-24.307995-24.453995h-877.859811c-13.262997 0-24.306995 10.970998-24.306995 24.453995v584.995874c0 13.457997 10.873998 24.453995 24.307995 24.453995h219.500953a48.76199 48.76199 0 1 1 0 97.523979H48.907989A48.76199 48.76199 0 0 1 0 780.190052V48.76221C0 21.822215 21.893995 0.00022 48.907989 0.00022h1023.706781a48.76199 48.76199 0 0 1 48.907989 48.76199v268.189942zM219.427953 975.23701c0-26.940994 21.991995-48.76199 48.981989-48.761989h194.607959a48.76199 48.76199 0 1 1 0 97.523979H268.433942a48.76199 48.76199 0 0 1-49.005989-48.76199z" ></path></symbol><symbol id="icon-caidanguanli" viewBox="0 0 1024 1024"><path d="M414.2 78H158.6c-41.5 0-75.3 33.8-75.3 75.3v255.5c0 41.5 33.8 75.3 75.3 75.3h255.5c41.5 0 75.3-33.8 75.3-75.3V153.3c0-41.5-33.7-75.3-75.2-75.3z m5.2 330.8c0 2.9-2.4 5.3-5.3 5.3H158.6c-2.9 0-5.3-2.4-5.3-5.3V153.3c0-2.9 2.4-5.3 5.3-5.3h255.5c2.9 0 5.3 2.4 5.3 5.3v255.5zM414.2 544.8H158.6c-41.5 0-75.3 33.8-75.3 75.3v255.5c0 41.5 33.8 75.3 75.3 75.3h255.5c41.5 0 75.3-33.8 75.3-75.3V620.1c0-41.5-33.7-75.3-75.2-75.3z m5.2 330.8c0 2.9-2.4 5.3-5.3 5.3H158.6c-2.9 0-5.3-2.4-5.3-5.3V620.1c0-2.9 2.4-5.3 5.3-5.3h255.5c2.9 0 5.3 2.4 5.3 5.3v255.5zM908.8 119.3H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 343.8H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 568.3H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 792.8H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35z" ></path></symbol><symbol id="icon-jueseguanli" viewBox="0 0 1024 1024"><path d="M874.9 577.3c-26.1-27.2-56.8-48.9-90.3-64.1 5.4-4.6 10.6-9.6 15.5-14.8 32.3-34.7 50.1-79.8 50.1-127.2 0-102.9-83.7-186.7-186.7-186.7-11 0-21.8 0.9-32.5 2.8-7.1-9.6-14.9-18.7-23.4-27.2-44.6-44.6-103.9-69.2-167-69.2s-122.4 24.6-167 69.2-69.2 103.9-69.2 167 24.6 122.4 69.2 167c10.8 10.8 22.4 20.4 34.8 28.7-4.9 1.8-9.7 3.8-14.5 5.8-44.9 19-85.2 46.2-119.9 80.8-34.6 34.6-61.8 75-80.8 119.9-19.7 46.5-29.6 95.9-29.6 146.8 0 17.7 1.2 35.5 3.7 52.9l69.3-9.7c-2-14.2-3-28.7-3-43.1 0-169.4 137.8-307.1 307.1-307.1s307.1 137.8 307.1 307.1c0 14.4-1 28.9-3 43.1l69.3 9.7c2.4-17.4 3.7-35.2 3.7-52.9 0-50.9-10-100.3-29.6-146.8-19-44.9-46.2-85.2-80.8-119.9-34.6-34.6-74.9-61.8-119.9-80.8-4.8-2-9.7-4-14.6-5.8 12.3-8.4 24-18 34.8-28.7 44.6-44.6 69.2-103.9 69.2-167 0-25-3.9-49.4-11.3-72.6 63.4 1.1 114.7 53 114.7 116.6 0 45.5-26.6 85.6-65.3 104.7-16.3 8.1-26.8 24.4-26.8 42.6v1c0 21.2 14.1 40 34.6 45.5 94.9 25.8 163.8 112.4 163.8 215 0 10.5-0.7 21-2.2 31.3l69.3 9.7c1.9-13.5 2.9-27.3 2.9-41-0.1-75.8-29.1-147.8-81.7-202.6z m-434.3-84c-91.6 0-166.2-74.6-166.2-166.2S349 160.9 440.6 160.9s166.2 74.6 166.2 166.2-74.5 166.2-166.2 166.2z" ></path></symbol><symbol id="icon-zhiweiguanli" viewBox="0 0 1024 1024"><path d="M878.4 243.5h-91.2v-41.2c0-58.6-47.7-106.2-106.2-106.2H354.2c-58.6 0-106.2 47.7-106.2 106.2v41.2h-91.2c-43.2 0-78.4 35.1-78.4 78.4V856c0 43.2 35.1 78.4 78.4 78.4h721.5c43.2 0 78.4-35.1 78.4-78.4V321.8c0-43.2-35.1-78.3-78.3-78.3zM318 202.3c0-20 16.2-36.2 36.2-36.2H681c20 0 36.2 16.3 36.2 36.2v41.2H318v-41.2zM156.8 313.5h721.5c4.6 0 8.4 3.7 8.4 8.4V554H692.4c-14.8-45.3-57.4-78.2-107.6-78.2H450.4c-50.2 0-92.9 32.9-107.6 78.2H148.5V321.8c0-4.6 3.7-8.3 8.3-8.3zM628 588.9c0 23.8-19.4 43.2-43.2 43.2H450.4c-23.8 0-43.2-19.4-43.2-43.2 0-23.8 19.4-43.2 43.2-43.2h134.3c23.9 0 43.3 19.4 43.3 43.2z m250.4 275.5H156.8c-4.6 0-8.4-3.7-8.4-8.4V623.9h194.3c14.8 45.3 57.4 78.2 107.6 78.2h134.3c50.2 0 92.9-32.9 107.6-78.2h194.3V856c0.2 4.6-3.5 8.4-8.1 8.4z" ></path></symbol><symbol id="icon-bumenguanli" viewBox="0 0 1024 1024"><path d="M322.5 62h384.6v70H322.5z" ></path><path d="M870.2 62h-59.3v70h59.3c7.2 0 13 5.8 13 13v733.9c0 7.2-5.8 13-13 13h-720c-7.2 0-13-5.8-13-13V145c0-7.2 5.8-13 13-13h68.6V62h-68.6c-45.8 0-83 37.2-83 83v733.9c0 45.8 37.2 83 83 83h720c45.8 0 83-37.2 83-83V145c0-45.8-37.3-83-83-83z" ></path><path d="M295 806.2c-0.5-5.7-0.7-11.6-0.7-17.3 0-119 96.8-215.8 215.8-215.8S726 669.8 726 788.8c0 5.8-0.2 11.6-0.7 17.3l69.8 5.6c0.6-7.6 0.9-15.3 0.9-22.9 0-76.4-29.7-148.1-83.7-202.1-29.7-29.8-64.9-52.1-103.3-66.2 45.6-31.5 75.5-84.1 75.5-143.5 0-96.1-78.2-174.4-174.4-174.4-96.1 0-174.4 78.2-174.4 174.4 0 59.5 29.9 112 75.5 143.5C373 534.6 337.8 557 308 586.7c-54 54-83.7 125.8-83.7 202.1 0 7.6 0.3 15.3 0.9 22.9l69.8-5.5z m215.2-533.6c57.5 0 104.4 46.8 104.4 104.4 0 57.5-46.8 104.4-104.4 104.4-57.5 0-104.4-46.8-104.4-104.4 0-57.6 46.8-104.4 104.4-104.4z" ></path></symbol><symbol id="icon-gerenzhongxin" viewBox="0 0 1024 1024"><path d="M930.4 337.3c-22.7-53.7-55.2-101.9-96.6-143.3-41.4-41.4-89.6-73.9-143.3-96.6C634.9 73.9 575.9 62 515.1 62c-60.8 0-119.9 11.9-175.5 35.4-53.7 22.7-101.9 55.2-143.3 96.6-41.4 41.4-73.9 89.6-96.6 143.3-23.5 55.6-35.4 114.6-35.4 175.5 0 50.5 8.3 100.1 24.7 147.4l66.1-22.9c-13.8-39.9-20.8-81.8-20.8-124.5 0-209.9 170.8-380.7 380.7-380.7 209.9 0 380.8 170.8 380.8 380.7 0 41.6-6.7 82.5-19.8 121.5l66.3 22.3c15.6-46.2 23.5-94.7 23.5-143.9 0-60.8-11.9-119.8-35.4-175.4z" ></path><path d="M656.9 422.2c0-76.9-62.6-139.5-139.5-139.5s-139.5 62.6-139.5 139.5 62.6 139.5 139.5 139.5 139.5-62.6 139.5-139.5z m-209 0c0-38.3 31.2-69.5 69.5-69.5s69.5 31.2 69.5 69.5-31.2 69.5-69.5 69.5-69.5-31.2-69.5-69.5zM713.8 627.8c-62-27.2-128.1-40.9-196.4-40.9-69 0-135.7 14-198.2 41.7-60.4 26.7-114.1 64.9-159.5 113.3l-20.3 21.7 18.1 23.6c41.2 53.6 94.8 98 155 128.3 63.2 31.8 131.3 48 202.6 48 71.9 0 140.6-16.4 204.2-48.8 60.7-30.9 114.5-76 155.6-130.4l17.9-23.7-20.5-21.6c-45.3-47.6-98.6-85-158.5-111.2zM515.1 893.5c-109 0-210.3-45.3-282.5-125.4 77.7-71.9 177.7-111.2 284.8-111.2 105.8 0 204.9 38.4 282.2 108.8-72.2 81.6-174.3 127.8-284.5 127.8z" ></path></symbol><symbol id="icon-yonghuguanli" viewBox="0 0 1024 1024"><path d="M751.4 553.2c-42.5-38.5-92.1-67.1-145.5-84.6 53.2-38.9 87.8-101.8 87.8-172.7C693.7 178 597.7 82 479.8 82c-57.1 0-110.8 22.2-151.2 62.6C288.2 185 266 238.7 266 295.8s22.2 110.8 62.6 151.2c7.8 7.8 16.2 15 25 21.4-10.5 3.5-20.9 7.3-31.2 11.7-48.2 20.4-91.4 49.5-128.5 86.7s-66.3 80.4-86.7 128.5c-21.1 49.9-31.8 102.9-31.8 157.4 0 24.8 2.3 49.7 6.8 73.9l68.8-12.7c-3.7-20-5.6-40.6-5.6-61.2 0-184.4 150-334.4 334.4-334.4 83.2 0 163 30.8 224.5 86.6l47.1-51.7zM479.8 152c79.3 0 143.9 64.5 143.9 143.9s-64.5 143.9-143.9 143.9S336 375.2 336 295.9 400.5 152 479.8 152zM726.3 665.3h213.8v70H726.3zM503 831.6h437.1v70H503z" ></path></symbol><symbol id="icon-app" viewBox="0 0 1024 1024"><path d="M363.485867 865.117867h305.5616c21.6576 0 39.2192-17.194667 39.2192-38.4s-17.5616-38.4-39.2192-38.4H363.485867c-21.6576 0-39.2192 17.194667-39.2192 38.4s17.5616 38.4 39.2192 38.4z" fill="#A6ADB4" ></path><path d="M945.288533 699.835733a40.448 40.448 0 0 0-43.195733 43.1872v147.037867a46.865067 46.865067 0 0 1-45.960533 48.708267H166.766933a46.882133 46.882133 0 0 1-45.038933-48.708267v-147.029333a40.439467 40.439467 0 1 0-80.887467 0v147.029333a125.883733 125.883733 0 0 0 125.9264 128.657067h693.0432c70.203733-1.006933 126.4384-58.461867 125.9264-128.657067v-147.029333a40.430933 40.430933 0 0 0-40.448-43.195734zM40.840533 127.735467v147.959466a39.517867 39.517867 0 0 0 79.044267 0V127.735467a45.943467 45.943467 0 0 1 46.882133-47.786667h693.0432a46.882133 46.882133 0 0 1 45.960534 47.786667v147.959466a39.509333 39.509333 0 0 0 39.517866 39.509334 40.448 40.448 0 0 0 40.448-39.509334V127.735467C986.248533 58.052267 930.423467 1.024 860.7232 0H166.775467A125.934933 125.934933 0 0 0 40.840533 127.744z m168.4992 427.972266H326.229333L357.316267 640H418.133333L295.150933 315.733333h-52.701866L119.466667 640h60.817066l29.056-84.292267zM269.124267 392.533333L307.2 503.466667h-76.8l38.724267-110.933334z m231.552 131.959467h32.631466a123.246933 123.246933 0 0 0 88.192-28.535467c23.389867-19.959467 36.394667-49.134933 35.413334-79.488 1.6384-28.245333-9.838933-55.722667-31.249067-74.743466a127.573333 127.573333 0 0 0-84.0192-25.813334H443.733333V640h56.942934V524.4928zM503.466667 366.933333h32.136533c42.180267 0 61.602133 17.493333 61.602133 53.162667 1.092267 16.0256-4.8128 31.701333-16.068266 42.666667a71.364267 71.364267 0 0 1-51.5584 14.677333H503.466667V366.933333z m286.293333-51.0976H691.2V640h57.3184V524.4672h32.853333c31.837867 1.928533 63.189333-8.311467 87.381334-28.544 23.543467-19.959467 36.625067-49.152 35.643733-79.505067 1.536-28.100267-9.710933-55.441067-30.754133-74.752a131.84 131.84 0 0 0-83.882667-25.8304z m39.4752 147.131734a73.813333 73.813333 0 0 1-49.527467 14.72H750.933333V366.933333h32.119467c42.1632 0 61.576533 17.527467 61.576533 53.2736 1.262933 15.957333-4.394667 31.650133-15.394133 42.752z" fill="#A6ADB4" ></path></symbol><symbol id="icon-yepian" viewBox="0 0 1024 1024"><path d="M807.936 99.328c-17.408 0-32.256 9.216-40.448 23.552h-348.16L284.672 355.84l35.84 35.84 126.976-219.648h321.536c8.192 12.8 22.528 20.992 38.912 20.992 25.6 0 46.592-20.992 46.592-46.592s-20.992-47.104-46.592-47.104z" ></path><path d="M301.056 50.688c-8.704 14.848-7.68 32.768 0 46.592L127.488 399.36l134.656 232.448 48.64-13.312L183.808 399.36l160.256-279.04c15.36-1.024 29.696-9.216 37.888-23.04 12.8-22.528 5.12-50.688-17.408-63.488s-50.688-5.632-63.488 16.896z" ></path><path d="M15.872 467.456c8.704 14.848 24.064 23.552 40.448 23.552L228.352 793.6l268.8 1.536 13.312-48.64-253.44-1.536-159.232-279.552c6.656-13.312 7.168-30.208-1.024-44.032-12.8-22.528-40.96-30.208-63.488-17.408-22.528 12.8-30.208 40.96-17.408 63.488z" ></path><path d="M216.064 924.672c17.408 0 32.256-9.216 40.448-23.552h348.16l134.144-232.448-35.84-35.84-126.976 219.648H254.976c-8.192-12.8-22.528-20.992-38.912-20.992-25.6 0-46.592 20.992-46.592 46.592s20.992 46.592 46.592 46.592z" ></path><path d="M722.944 973.312c8.704-14.848 7.68-32.768 0-46.592l173.568-302.08-134.656-232.448-48.64 13.312 127.488 219.136-160.256 279.04c-15.36 1.024-29.696 9.216-37.888 23.04-12.8 22.528-5.12 50.688 17.408 63.488 22.016 13.312 50.176 5.632 62.976-16.896z" ></path><path d="M1008.128 556.544c-8.704-14.848-24.064-23.552-40.448-23.552L795.648 230.4l-268.8-1.536-13.312 48.64 253.44 1.536 159.232 279.552c-6.656 13.312-7.168 30.208 1.024 44.032 12.8 22.528 40.96 30.208 63.488 17.408 22.528-12.8 30.208-40.96 17.408-63.488zM512 391.168C445.44 391.168 391.168 445.44 391.168 512S445.44 632.832 512 632.832s120.832-54.272 120.832-120.832S578.56 391.168 512 391.168z m0 196.096c-41.472 0-75.264-33.792-75.264-75.264s33.792-75.264 75.264-75.264 75.264 33.792 75.264 75.264-33.792 75.264-75.264 75.264z" ></path></symbol><symbol id="icon-left-circle-fill" viewBox="0 0 1024 1024"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m104 316.9c0 10.2-4.9 19.9-13.2 25.9L457.4 512l145.4 105.2c8.3 6 13.2 15.6 13.2 25.9V690c0 6.5-7.4 10.3-12.7 6.5l-246-178c-4.4-3.2-4.4-9.7 0-12.9l246-178c5.3-3.8 12.7-0.1 12.7 6.5v46.8z" ></path></symbol><symbol id="icon-right-circle-fill" viewBox="0 0 1024 1024"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m154.7 454.5l-246 178c-5.3 3.8-12.7 0-12.7-6.5v-46.9c0-10.2 4.9-19.9 13.2-25.9L566.6 512 421.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.8 0 13z" ></path></symbol><symbol id="icon-xitongguanli" viewBox="0 0 1026 1024"><path d="M400.896 67.072H140.8c-24.064 0-46.592 11.264-59.392 29.696-9.216 12.8-14.848 27.648-14.848 44.544v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24V141.312c0.512-40.96-33.28-74.24-73.728-74.24z m0 361.984v9.216-9.216z m335.872 83.456c18.432 0 35.328-7.168 48.128-20.48L939.008 337.92c12.8-12.8 20.48-29.696 20.48-48.128s-7.168-35.328-20.48-48.128l-154.112-155.648c-26.112-26.112-70.656-26.112-96.256 0l-154.112 154.112c-12.8 12.8-20.48 29.696-20.48 48.128 0 18.432 7.168 35.328 20.48 48.128l154.112 154.112c12.8 14.336 29.184 22.016 48.128 22.016z m0-369.152l146.432 146.432-146.432 146.432-144.896-146.432L736.768 143.36z m-335.872 406.016H140.8c-40.96 0-74.24 33.28-74.24 74.24v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24v-259.584c0.512-40.448-33.28-74.24-73.728-74.24z m0 352.768v18.432-18.432z m484.352-352.768h-259.584c-40.96 0-74.24 33.28-74.24 74.24v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24v-259.584c0-40.448-33.792-74.24-74.24-74.24z" ></path></symbol><symbol id="icon-gongjianku" viewBox="0 0 1024 1024"><path d="M798.72 320v446.976H223.232V320H63.488v532.48c0 41.472 33.792 75.264 75.264 75.264h745.472c41.472 0 75.264-33.792 75.264-75.264v-532.48H798.72z" ></path><path d="M608.256 494.592z m-10.24-4.608z" ></path><path d="M819.2 96.256H203.776c-41.472 0-75.264 33.792-75.264 75.264V286.72h128v448h510.464V286.72h128V171.008c-0.512-41.472-34.304-74.752-75.776-74.752z m-154.112 493.056l-12.8 12.8c-12.8 12.8-33.28 12.8-46.08 0L477.184 473.088c-33.792 11.776-72.704 4.608-99.328-22.528-27.136-27.136-34.304-66.048-22.528-99.84l38.4 38.4c12.8 12.8 33.28 12.8 46.08 0l12.8-12.8c12.8-12.8 12.8-33.28 0-46.08L414.208 291.84c33.792-11.776 72.704-4.096 99.84 22.528 27.136 27.136 34.304 66.048 22.528 99.84l128.512 128.512c12.288 13.312 12.288 33.792 0 46.592z" ></path></symbol><symbol id="icon-fangfaku" viewBox="0 0 1024 1024"><path d="M256 170.496v170.496h512V170.496h85.504c23.552 0 42.496 18.944 42.496 42.496V896c0 23.552-18.944 42.496-42.496 42.496H170.496c-23.552 0-42.496-18.944-42.496-42.496V212.992c0-23.552 18.944-42.496 42.496-42.496H256z m256 513.024H256v83.456h256v-83.456zM768 491.52H256v83.456h512V491.52zM341.504 85.504h341.504V256H341.504V85.504z" ></path></symbol><symbol id="icon-shebeiku" viewBox="0 0 1024 1024"><path d="M960 491.52v380.416c0 26.112-23.04 47.616-52.224 47.616H116.224c-29.184 0-52.224-21.504-52.224-47.616V491.52c0-26.112 23.04-47.616 52.224-47.616h791.552c28.672 0 52.224 21.504 52.224 47.616z m-149.504 156.16H213.504V783.36h596.992v-135.68z m149.504-500.736v186.88c0 23.04-20.992 42.496-46.592 42.496H110.592c-25.6 0-46.592-18.944-46.592-42.496V146.944c0-23.04 20.992-42.496 46.592-42.496h802.304c26.112 0 47.104 18.944 47.104 42.496z m-671.744 25.6c-41.472 0-74.752 30.208-74.752 68.096s33.792 68.096 74.752 68.096S363.008 278.528 363.008 240.64s-33.792-68.096-74.752-68.096z m224.256 0c-41.472 0-74.752 30.208-74.752 68.096s33.792 68.096 74.752 68.096 74.752-30.208 74.752-68.096-33.792-68.096-74.752-68.096z" ></path></symbol><symbol id="icon-wenjian" viewBox="0 0 1024 1024"><path d="M273.54647 325.996013h476.395357c19.444708-2.046811 36.842605 11.769166 39.40112 30.702171 2.046811 19.444708-11.769166 36.330903-31.213874 38.377714-2.558514 0.511703-5.117029 0.511703-7.675543 0H273.54647c-10.234057-0.511703-19.956411-4.605326-26.608548-11.257463-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737 0.511703-19.956411 17.397897-35.307497 37.866011-34.284091v1.023406z m0 209.286467h476.395357c19.444708-2.046811 36.842605 11.769166 39.40112 30.702171 2.046811 19.444708-11.769166 36.330903-31.213874 38.377714-2.558514 0.511703-5.117029 0.511703-7.675543 0H273.54647c-9.722354 0-19.444708-3.58192-26.608548-10.234057-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737 0.511703-19.444708 17.397897-35.307497 37.354308-34.284091z m0 185.748136h324.931312c19.444708 0 35.307497 15.862788 35.307497 34.795794 0 19.444708-15.862788 34.795794-35.307497 34.795794H273.54647c-9.722354-0.511703-19.444708-4.093623-26.608548-10.74576-6.652137-6.140434-10.74576-14.839383-10.74576-24.050034 0.511703-19.444708 17.397897-35.307497 37.354308-34.795794zM135.898402 0.041294h96.71184c17.397897-0.511703 33.772388 8.187246 43.494742 22.514926l53.217097 82.38416c4.605326 7.16384 12.792571 11.769166 20.979817 11.257462h322.884501c8.698949 0 16.886194-4.093623 21.49152-11.257462l53.217097-82.38416c9.722354-14.32768 26.096846-23.026628 43.494742-22.514926h97.223543c53.7288-1.535109 98.246948 39.912823 100.293759 93.12992v837.657572c-2.046811 52.705394-46.56496 94.153325-100.293759 93.12992h-752.203196c-53.7288 1.535109-98.758651-39.912823-100.293759-92.618217V93.171214C37.139751 39.954117 82.169603-1.493814 135.898402 0.041294z m82.895863 70.103291H135.898402c-6.652137 0-13.304274 2.558514-18.421303 6.652138-4.605326 4.093623-7.16384 10.234057-7.16384 16.374491v837.657572c0.511703 13.304274 11.769166 23.538331 25.07344 23.026629h752.203196c6.652137 0 13.304274-2.558514 18.421303-6.652138 4.605326-4.093623 7.16384-10.234057 7.16384-16.374491V93.171214c0.511703-6.140434-2.046811-12.280868-7.16384-16.374491-5.117029-4.605326-11.257463-6.652137-18.421303-6.652138h-82.895862l-46.053257 70.614994c-18.933006 28.65536-51.681988 45.541554-86.477783 45.029851H350.813601c-34.795794 0.511703-67.544777-16.374491-86.477782-45.029851l-45.541554-70.614994zM399.425372 0.041294h225.149256c19.956411-0.511703 36.842605 15.351086 37.866011 34.795795-0.511703 19.956411-17.397897 35.307497-37.866011 34.795794H399.425372c-10.234057-0.511703-19.956411-4.093623-27.120251-10.74576-6.652137-6.140434-10.74576-15.351086-10.234057-24.050034C362.582767 15.39238 378.957258-0.470408 399.425372 0.041294z" ></path></symbol><symbol id="icon-bianjimoban" viewBox="0 0 1025 1024"><path d="M127.110228 701.648461q0 26.438928 18.812314 45.251241t46.268123 18.812314l253.203575 0 0 128.12711-318.284012 0q-26.438928 0-49.82721-9.660377t-40.675273-26.947368-26.947368-40.675273-9.660377-50.844091l0-637.584906q0-26.438928 9.660377-49.82721t26.947368-40.675273 40.675273-27.455809 49.82721-10.168818l766.728898 0q26.438928 0 49.82721 10.168818t40.675273 27.455809 27.455809 40.675273 10.168818 49.82721l0 187.106256-128.12711 1.016882q-2.033764-25.422046-19.829196-43.217478t-44.234359-17.795432l-637.584906 0q-27.455809 0-46.268123 18.812314t-18.812314 45.251241l0 382.347567zM1016.881827 501.322741q6.101291 9.151936 7.626614 23.388282t-10.677259 28.472691q-11.1857 14.236346-18.303873 21.354518l-8.135055 8.135055-105.75571-95.586892q5.084409-6.101291 14.236346-14.744786t14.236346-13.727905q14.236346-14.236346 30.506455-12.711023t27.455809 6.609732q12.202582 5.084409 26.438928 18.812314t22.3714 29.998014zM613.179742 789.100298q3.050645-3.050645 14.236346-16.270109t27.96425-32.540218 37.116187-42.200596 40.675273-46.268123q48.810328-54.911619 108.806356-122.025819l107.789474 95.586892q-59.996028 68.131082-108.806356 123.042701-20.337637 23.388282-40.675273 46.268123t-37.116187 41.183714-27.455809 29.998014-12.711023 13.727905q-9.151936 12.202582-25.422046 20.337637-7.118173 5.084409-21.354518 11.1857t-29.998014 12.202582-29.489573 10.677259-20.846077 5.59285q-26.438928 5.084409-23.388282-22.3714 1.016882-7.118173 4.067527-21.862959t6.609732-30.506455 7.118173-28.981132 5.59285-18.303873q5.084409-13.219464 17.286991-28.472691z" ></path></symbol><symbol id="icon-shanchu1" viewBox="0 0 1024 1024"><path d="M78.768011 168.230165c0-30.999918 24.230644-56.076722 54.15419-56.076722L403.692131 112.153443 403.692131 56.076722c0-30.999918 24.230644-56.076722 54.15419-56.076722l108.306335 0c29.923546 0 54.155214 25.076803 54.155214 56.076722l0 56.077745 270.768906 0c29.923546 0 54.15419 25.076803 54.15419 56.076722l0 56.076722L78.768011 224.307909 78.768011 168.230165zM891.076776 336.461352l0 112.153443 0 519.30746c0 30.923181-24.231667 56.077745-54.153167 56.077745L187.076392 1024c-29.923546 0-54.15419-25.154564-54.15419-56.077745L132.922201 448.614796 132.922201 336.461352l0-56.077745 758.154574 0L891.076776 336.461352zM349.53794 448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523 0-54.153167 25.153541-54.153167 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.153167 56.077745 29.923546 0 54.15419-25.154564 54.15419-56.077745L349.53794 448.614796zM566.153679 448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523 0-54.153167 25.153541-54.153167 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.153167 56.077745 29.923546 0 54.15419-25.154564 54.15419-56.077745L566.153679 448.614796zM782.770441 448.614796c0-30.923181-24.231667-56.076722-54.155214-56.076722s-54.15419 25.153541-54.15419 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.15419 56.077745s54.155214-25.154564 54.155214-56.077745L782.770441 448.614796z" ></path></symbol><symbol id="icon-edit" viewBox="0 0 1024 1024"><path d="M923.9 335.8c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.8-35.2-174.3-35.2S392.2 74.1 337 97.5c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3C75.3 391 63.5 449.7 63.5 510.1c0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c35.9-15.2 69.3-34.8 99.8-58.5l-0.1-0.1c9.1-7.4 14.8-18.6 14.8-31.2 0-22.3-18-40.3-40.3-40.3-9.2 0-17.7 3.1-24.5 8.3l-0.2-0.3c-62 47.9-139.7 76.4-223.9 76.4-202.3 0-366.9-164.6-366.9-366.9s164.7-366.9 367-366.9 366.9 164.6 366.9 366.9c0 66.2-17.6 128.3-48.4 182l0.4 0.2c-4.4 6.5-7 14.2-7 22.6 0 22.3 18 40.3 40.3 40.3 16 0 29.8-9.3 36.3-22.8l0.2 0.1c8.9-15.5 16.8-31.5 23.8-48.1 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.7-119.1-35.1-174.3z" ></path><path d="M693.7 626.5H507.6l-57.1 66.1h243.2zM663.2 411.4c7.5-7.6 7.5-23.5 0-31.3l-45.4-46.8c-7.7-7.6-22.9-7.6-30.4 0l-45.7 46.8 76.1 78.1 45.4-46.8zM328.8 614.5v78.1h76.1l197.5-218.7-76-77.9z" ></path></symbol><symbol id="icon-new" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M695.7 469.2h-139v-139c0-23.6-19.3-43-43-43-23.6 0-43 19.3-43 43v139h-139c-23.6 0-43 19.3-43 43s19.3 43 43 43h139v139c0 23.7 19.3 43 43 43 23.6 0 43-19.3 43-43v-139h139c23.6 0 43-19.3 43-43s-19.4-43-43-43z" ></path></symbol><symbol id="icon-biaoqianye1" viewBox="0 0 1024 1024"><path d="M345.557333 128l110.677334 168.405333H938.666667V896H85.333333V128h260.224zM299.52 213.333333H170.666667v597.333334h682.666666V381.738667H410.197333L299.52 213.333333z" fill="#222222" ></path><path d="M597.333333 136.533333c0-4.693333 3.541333-8.533333 7.893334-8.533333h325.546666c4.352 0 7.893333 3.84 7.893334 8.533333v68.266667c0 4.693333-3.541333 8.533333-7.893334 8.533333h-325.546666C600.874667 213.333333 597.333333 209.493333 597.333333 204.8V136.533333z" fill="#222222" ></path></symbol><symbol id="icon-biaoqianye" viewBox="0 0 1024 1024"><path d="M376.6 494.8c5.1 4.8 7.9 11.7 7.6 18.7 0.4 7.1-2.5 14-7.6 18.7-5.3 4.7-12.3 7.2-19.3 6.9h-69.6v235.1c0.2 7.4-2.9 14.4-8.4 19.1-5.5 5.4-12.9 8.3-20.5 8.1-7.6 0.3-15.1-2.7-20.5-8.1-5.3-4.9-8.2-11.9-8.1-19.1v-235H161c-7.2 0.3-14.2-2.3-19.3-7.3-5.2-4.8-8-11.7-7.6-18.7-0.3-7 2.5-13.7 7.6-18.3 5.3-4.8 12.2-7.3 19.3-7h198.4c6.3 0 12.4 2.5 17.2 6.9z m215.7 70.1c5.2 5.1 8 12.2 7.7 19.6v189.9c0.3 7.2-2.5 14.2-7.7 19.1-4.8 5.3-11.7 8.3-18.9 8.1-7.1 0.1-13.9-2.7-18.9-7.7-4.8-5.2-7.6-12-7.6-19.1-18 19.5-42.9 30.8-69.2 31.4-19.7 0.3-38.9-5.3-55.5-15.9-17.2-10.7-31.2-26.1-40.3-44.4-19.3-40.4-19.3-87.6 0-128 8.9-18.4 22.9-33.8 40.3-44.4 16-10.5 34.8-16.1 53.9-15.9 26.3-0.1 51.8 9.8 71.2 27.7-0.2-7.3 2.6-14.4 7.7-19.6 10.6-10.2 27.2-10.2 37.8 0l-0.5-0.8z m-61.2 168.7c24.1-31.6 24.1-75.6 0-107.2-11.5-14.3-28.9-22.3-47.1-21.6-17.9-0.5-35.1 7.4-46.3 21.6-12.1 15-18.5 34-18.1 53.4-0.6 19.5 5.7 38.6 17.7 53.8 11.6 13.9 28.8 21.7 46.7 21.2 18.1 0.4 35.3-7.4 47.1-21.2zM835.4 573c17.1 10.7 31 25.9 40.3 44 9.9 19.8 14.9 41.8 14.5 64 0.4 22.3-4.6 44.4-14.5 64.4-9 18.3-23 33.7-40.3 44.4-16 10.6-34.8 16.1-53.9 15.9-13.9 0.2-27.7-2.9-40.3-9-11.6-5-22.1-12.2-31-21.2v2.8c0.2 7.2-2.5 14.2-7.5 19.4-5 5.1-11.9 8-19.1 7.9-7.1 0.3-14-2.5-18.9-7.7-5.2-5.1-8-12.2-7.6-19.6V497.2c-0.2-7.3 2.5-14.4 7.6-19.6 10.6-10.3 27.2-10.3 37.8 0 5.1 5.2 7.9 12.2 7.6 19.6v93.3c8-9.8 18-17.7 29.4-23.2 12.4-6.8 26.2-10.3 40.3-10.2 19.7-0.2 39 5.3 55.6 15.9z m-15.7 163c12.2-15.1 18.6-34.3 18.1-53.8 0.6-19.4-5.7-38.3-17.7-53.4-12-13.4-29-21.1-46.9-21.1s-34.9 7.7-46.9 21.1c-24.1 31.6-24.1 75.6 0 107.2 11.6 14.1 29 22.1 47.1 21.6 18.3-0.2 35.4-9.1 46.3-24v2.4zM708.1 253.5c-15.5 0-28-12.5-28-28V113.4c-0.1-8 0-15.9 0-23.8V77.9c0-15.5 12.5-28 28-28H886c17 0 32.9 6.6 45 18.6 11.3 11.3 17.8 26 18.6 41.8 0.1 0.7 0.1 1.4 0.1 2.1v113.2c0 15.5-12.5 28-28 28H708.1z m28-56h157.4v-84.1c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.4-2.2-5.4-2.2H736.1v91.7zM371.9 254.6c-15.5 0-28-12.5-28-28V78.9c0-15.4 12.5-27.9 27.9-28l213.4-1.1h0.1c17 0 32.9 6.6 45 18.6 12 12.1 18.6 28 18.6 45v113.2c0 15.5-12.5 28-28 28h-249z m28-56.1h193v-85.2c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.3-2.2-5.3-2.2l-185.5 0.9v91.9z" fill="#595959" ></path><path d="M72.4 974.2c-17.3 0-33.5-6.7-45.7-18.7-12.2-12.1-18.9-28.1-18.9-45.1V113.6c0-35.2 29-63.8 64.6-63.8h169c17.3 0 33.5 6.6 45.7 18.7 12.2 12 18.9 28.1 18.9 45.1V283c0 2 0.8 3.9 2.3 5.4 1.5 1.4 3.4 2.2 5.4 2.2h637.9c17.3 0 33.5 6.6 45.7 18.7 12.2 12 18.9 28 18.9 45.1v556c0 17.1-6.7 33.1-18.9 45.1s-28.4 18.7-45.7 18.7H72.4z m7.7-860.6c-4.3 0-7.7 3.4-7.7 7.6v788.7c0 2 0.8 4 2.3 5.4 1.4 1.4 3.4 2.2 5.4 2.2h871.5c2.1 0 4-0.8 5.4-2.2 1.5-1.4 2.3-3.3 2.3-5.4V350.6c0-2-0.8-3.9-2.2-5.3-1.5-1.5-3.4-2.3-5.4-2.3h-638c-17.3 0-33.5-6.7-45.7-18.7-12.2-12-18.9-28.1-18.9-45.1V121.1c0-2-0.8-3.9-2.3-5.4-1.4-1.4-3.4-2.2-5.4-2.2H80.1z" fill="#595959" ></path></symbol><symbol id="icon-buzhou" viewBox="0 0 1024 1024"><path d="M488.106667 792.462222h257.137777a28.444444 28.444444 0 0 0 28.444445-28.444444 28.444444 28.444444 0 0 0-28.444445-28.444445H488.106667a28.444444 28.444444 0 0 0-28.444445 28.444445 28.444444 28.444444 0 0 0 28.444445 28.444444zM242.346667 764.017778A80.782222 80.782222 0 1 0 341.333333 686.08v-96.142222a80.213333 80.213333 0 0 0 0-155.875556V337.92a80.782222 80.782222 0 1 0-39.822222 0v96.142222a80.213333 80.213333 0 0 0 0 155.875556v96.142222a80.782222 80.782222 0 0 0-59.164444 77.937778zM284.444444 259.982222a40.96 40.96 0 0 1 81.92 0 40.391111 40.391111 0 0 1-40.391111 40.96 40.391111 40.391111 0 0 1-41.528889-40.96zM284.444444 512a40.96 40.96 0 1 1 40.96 40.96A40.96 40.96 0 0 1 284.444444 512z m40.391112 211.057778a40.391111 40.391111 0 0 1 40.391111 40.96 40.96 40.96 0 0 1-81.92 0 40.391111 40.391111 0 0 1 39.253333-40.96zM488.106667 540.444444h257.137777a28.444444 28.444444 0 1 0 0-56.888888H488.106667a28.444444 28.444444 0 1 0 0 56.888888zM488.106667 288.426667h257.137777a28.444444 28.444444 0 0 0 28.444445-28.444445 28.444444 28.444444 0 0 0-28.444445-28.444444H488.106667a28.444444 28.444444 0 0 0-28.444445 28.444444 28.444444 28.444444 0 0 0 28.444445 28.444445z" fill="#151515" ></path><path d="M859.022222 79.644444H164.977778a22.755556 22.755556 0 0 0-22.755556 22.755556v819.2a22.755556 22.755556 0 0 0 22.755556 22.755556h694.044444a22.755556 22.755556 0 0 0 22.755556-22.755556V102.4a22.755556 22.755556 0 0 0-22.755556-22.755556z m-22.755555 819.2H187.733333V125.155556h648.533334z" fill="#151515" ></path></symbol><symbol id="icon-ok" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M715.6 371.6c-15.7-15.7-41.4-15.7-57 0l-196 196-95.9-95.9c-15.7-15.7-41.4-15.7-57 0-15.7 15.7-15.7 41.4 0 57l124.5 124.5c15.7 15.7 41.4 15.7 57 0l224.5-224.5c15.6-15.7 15.6-41.4-0.1-57.1z" ></path></symbol><symbol id="icon-cancel" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M697.9 329.1c-15.6-15.6-41-15.6-56.6 0L513 457.4 384.7 329.1c-15.6-15.6-41-15.6-56.6 0-15.6 15.6-15.6 41 0 56.6L456.4 514 328.1 642.3c-15.6 15.6-15.6 41 0 56.6 15.6 15.6 41 15.6 56.6 0L513 570.6l128.3 128.3c15.6 15.6 41 15.6 56.6 0 15.6-15.6 15.6-41 0-56.6L569.6 514l128.3-128.3c15.6-15.6 15.6-41.1 0-56.6z" ></path></symbol><symbol id="icon-savebaocun" viewBox="0 0 1024 1024"><path d="M778.7 97.2H247.3C165 97.2 98 164.3 98 246.7v532.2c0 82.4 67 149.4 149.3 149.4h531.5c82.3 0 149.3-67 149.3-149.4V246.7C928 164.3 861 97.2 778.7 97.2z m-452.2 79.9h373.1v83.7H331.9c-2.9 0-5.5-2.6-5.5-5.5v-78.2z m373 671.3h-373v-225h373.1v225z m148.7-69.6c0 38.1-30.8 69.2-68.8 69.5V612.9c0-38.3-31.1-69.4-69.3-69.4H316c-38.2 0-69.3 31.1-69.3 69.4v235.4c-38-0.3-68.8-31.4-68.8-69.5V246.7c0-38.1 30.8-69.2 68.8-69.5v78.2c0 47.1 38.3 85.4 85.3 85.4h378c38.2 0 69.3-31.1 69.3-69.4v-94.2c38 0.3 68.8 31.4 68.8 69.5v532.1z" ></path></symbol><symbol id="icon-shijianxian2" viewBox="0 0 1024 1024"><path d="M171.52 924.16v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z m0-322.56v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z m0-394.24v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z" ></path><path d="M350.72 350.72c0 79.36-64 143.36-143.36 143.36s-143.36-64-143.36-143.36 64-143.36 143.36-143.36 143.36 64 143.36 143.36z m-143.36-71.68c-39.424 0-71.68 32.256-71.68 71.68s32.256 71.68 71.68 71.68 71.68-32.256 71.68-71.68-32.256-71.68-71.68-71.68z m143.36 430.08c0 79.36-64 143.36-143.36 143.36s-143.36-64-143.36-143.36 64-143.36 143.36-143.36 143.36 64 143.36 143.36z m-143.36-71.68c-39.424 0-71.68 32.256-71.68 71.68s32.256 71.68 71.68 71.68 71.68-32.256 71.68-71.68-32.256-71.68-71.68-71.68z m716.8-286.72h-501.76c-19.968 0-35.84-15.872-35.84-35.84s15.872-35.84 35.84-35.84h501.76c19.968 0 35.84 15.872 35.84 35.84s-15.872 35.84-35.84 35.84z m-284.672 107.52H420.352c-18.432 0-33.792-15.36-33.792-33.792v-4.096c0-18.432 15.36-33.792 33.792-33.792h219.136c18.432 0 33.792 15.36 33.792 33.792v4.096c0 18.432-15.36 33.792-33.792 33.792z m284.672 250.88h-501.76c-19.968 0-35.84-15.872-35.84-35.84s15.872-35.84 35.84-35.84h501.76c19.968 0 35.84 15.872 35.84 35.84s-15.872 35.84-35.84 35.84z m-284.672 107.52H420.352c-18.432 0-33.792-15.36-33.792-33.792v-4.096c0-18.432 15.36-33.792 33.792-33.792h219.136c18.432 0 33.792 15.36 33.792 33.792v4.096c0 18.432-15.36 33.792-33.792 33.792z" ></path></symbol><symbol id="icon-buzhoutiao" viewBox="0 0 1024 1024"><path d="M0 0h1024v1024H0z" fill="#FFFFFF" fill-opacity="0" ></path><path d="M204 372c66.31 0 121.852 46.1 136.326 108h137.53c12.901-33.907 45.71-58 84.144-58 38.435 0 71.243 24.093 84.145 58h139.71c12.902-33.907 45.71-58 84.145-58 49.706 0 90 40.294 90 90s-40.294 90-90 90c-38.434 0-71.242-24.092-84.144-57.998H646.144C633.242 577.908 600.434 602 562 602c-38.434 0-71.242-24.092-84.144-57.998h-137.53C325.852 605.9 270.309 652 204 652c-77.32 0-140-62.68-140-140s62.68-140 140-140z m0 64c-41.974 0-76 34.026-76 76s34.026 76 76 76 76-34.026 76-76-34.026-76-76-76z m358 50c-14.36 0-26 11.64-26 26s11.64 26 26 26 26-11.64 26-26-11.64-26-26-26z m308 0c-14.36 0-26 11.64-26 26s11.64 26 26 26 26-11.64 26-26-11.64-26-26-26z" fill="#666666" ></path></symbol><symbol id="icon-m-qianming" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M573.44 646.656l-3.072 6.144c-8.192 12.288-14.336 25.088-19.456 38.912-6.656 18.944-3.072 36.352 16.896 43.008 34.816 11.264 72.704 9.216 106.496-4.608 9.216-3.072 11.264-4.096 34.304-12.8 16.384-6.656 33.792-12.8 51.2-17.408 1.024 0 2.048-0.512 3.072-1.024 10.24-2.048 6.656-5.632 16.896 1.024 3.584 3.072 8.704 4.096 13.312 3.072 4.608-1.024 5.632-3.072 8.192-7.68 5.632-8.192 3.584-19.456-4.608-25.088-18.944-12.8-22.528-10.24-41.472-6.144-1.536 0.512-3.072 0.512-4.096 1.024-18.944 5.12-37.376 11.264-55.808 18.432-22.016 8.704-24.064 9.728-32.768 12.288-24.576 10.24-52.224 12.8-78.336 6.144 4.608-11.264 10.24-22.016 16.896-32.256 1.536-2.048 2.56-4.096 3.584-6.144 8.704-13.824 15.36-29.184 18.432-45.056 4.096-19.456-7.68-38.4-27.136-42.496-0.512 0-1.536-0.512-2.048-0.512-27.648-6.656-59.392 3.072-148.992 37.888-81.92 32.256-117.76 41.984-129.024 35.84-4.096-2.56-8.704-3.072-13.312-1.536-9.728 2.56-15.36 12.8-12.8 22.016 1.024 4.608 4.096 8.192 8.192 10.752 23.04 8.704 48.64 7.68 71.168-2.048 29.696-9.216 59.392-19.456 88.064-32.256 77.824-30.72 111.104-40.448 126.976-36.352 3.072 1.024 3.072 0 2.56 3.072-2.56 12.288-7.168 23.552-13.312 33.792zM665.088 235.52c-19.456-17.92-49.664-17.408-68.608 1.024L312.32 519.68c-2.048 2.048-3.584 4.608-4.608 7.68l-22.528 80.896c-2.56 9.728 3.072 19.456 12.8 21.504 3.584 1.024 7.68 0.512 11.264-0.512l71.168-29.696c5.632-2.56 10.752-5.632 15.36-10.24l283.648-269.824 2.56-2.56c18.432-19.456 17.92-50.176-2.048-68.608l-1.024-1.024-13.824-11.776z" ></path></symbol><symbol id="icon-touxiang_avatar" viewBox="0 0 1024 1024"><path d="M925.866667 797.866667c-12.8-25.6-34.133333-46.933333-64-64-29.866667-21.333333-68.266667-34.133333-119.466667-42.666667-4.266667 0-29.866667-4.266667-59.733333-12.8-21.333333-4.266667-34.133333-8.533333-38.4-12.8v-17.066667c4.266667-51.2 29.866667-76.8 55.466666-106.666666 8.533333-8.533333 17.066667-21.333333 25.6-29.866667 29.866667-42.666667 34.133333-89.6 34.133334-98.133333 0-8.533333 0-17.066667-4.266667-21.333334-4.266667-8.533333-8.533333-12.8-12.8-21.333333 0-12.8 4.266667-21.333333 4.266667-29.866667 0-21.333333 4.266667-55.466667-4.266667-89.6 0-8.533333-4.266667-12.8-4.266667-21.333333-8.533333-25.6-17.066667-46.933333-34.133333-68.266667-4.266667-12.8-64-72.533333-234.666667-85.333333H401.066667c-4.266667 0-17.066667 0-25.6 4.266667-21.333333 4.266667-38.4 21.333333-42.666667 42.666666v21.333334c-8.533333 8.533333-55.466667 51.2-55.466667 102.4-4.266667 34.133333-4.266667 85.333333 0 123.733333-8.533333 8.533333-17.066667 21.333333-12.8 42.666667 0 12.8 4.266667 55.466667 34.133334 98.133333 8.533333 8.533333 17.066667 17.066667 25.6 29.866667 25.6 29.866667 51.2 55.466667 55.466666 106.666666v17.066667c-4.266667 4.266667-17.066667 8.533333-38.4 12.8-29.866667 8.533333-59.733333 12.8-64 12.8-46.933333 8.533333-85.333333 21.333333-115.2 42.666667-25.6 17.066667-46.933333 38.4-64 64-25.6 38.4-25.6 76.8-25.6 85.333333v21.333333c0 25.6 21.333333 46.933333 46.933334 46.933334H896c25.6 0 46.933333-21.333333 46.933333-46.933334v-17.066666c8.533333-12.8 8.533333-51.2-17.066666-89.6z m-546.133334-128c0 4.266667 0 4.266667 0 0v4.266666c-4.266667 0-4.266667 0 0-4.266666z m503.466667 213.333333l-742.4 4.266667v-4.266667s0-25.6 12.8-51.2c8.533333-17.066667 25.6-29.866667 42.666667-42.666667 25.6-17.066667 55.466667-25.6 89.6-34.133333 4.266667 0 34.133333-4.266667 68.266666-12.8 51.2-12.8 76.8-29.866667 85.333334-46.933333 0-4.266667 0-4.266667 4.266666-8.533334v-42.666666c-8.533333-72.533333-42.666667-115.2-72.533333-145.066667-8.533333-8.533333-12.8-17.066667-21.333333-21.333333-21.333333-29.866667-21.333333-59.733333-21.333334-64l4.266667-4.266667 8.533333-8.533333c4.266667-17.066667 0-25.6 0-29.866667-4.266667-34.133333-4.266667-81.066667 0-119.466667 0-29.866667 29.866667-55.466667 29.866667-55.466666 8.533333-4.266667 17.066667-12.8 21.333333-21.333334 0-4.266667 4.266667-4.266667 4.266667-8.533333v-25.6H465.066667c140.8 8.533333 192 59.733333 192 59.733333 8.533333 12.8 17.066667 25.6 21.333333 42.666667 4.266667 4.266667 4.266667 8.533333 4.266667 12.8 4.266667 29.866667 4.266667 55.466667 4.266666 76.8 0 12.8 0 21.333333-4.266666 38.4 0 12.8 0 25.6 8.533333 29.866667l4.266667 4.266666 4.266666 4.266667s0 34.133333-21.333333 64c-4.266667 8.533333-12.8 12.8-21.333333 21.333333-29.866667 29.866667-64 72.533333-72.533334 145.066667v42.666667c0 4.266667 0 4.266667 4.266667 8.533333 8.533333 21.333333 34.133333 34.133333 85.333333 46.933333 34.133333 8.533333 64 12.8 68.266667 12.8 38.4 8.533333 68.266667 17.066667 93.866667 34.133334 17.066667 12.8 34.133333 25.6 42.666666 42.666666 8.533333 25.6 8.533333 51.2 4.266667 55.466667z" ></path></symbol><symbol id="icon-m-mianban" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M884.15744 348.01152v49.152h-745.984v-49.152z" ></path><path d="M356.43392 846.99136h-49.152v-450.048h49.152z" ></path></symbol><symbol id="icon-m-xialakuang" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M510.464 639.488l207.872-254.976H302.08z" ></path></symbol><symbol id="icon-m-biaodan" viewBox="0 0 1024 1024"><path d="M122.88 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384H122.88c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H137.216c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M244.224 279.04h142.848v49.152H244.224zM244.224 425.472h142.848v49.152H244.224zM436.736 279.04h342.528v49.152H436.736zM436.736 425.472h342.528v49.152H436.736zM244.224 572.416h142.848v49.152H244.224zM436.736 572.416h342.528v172.544H436.736z" ></path></symbol><symbol id="icon-m-biaoge" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M249.344 347.648h49.152v499.2h-49.152zM584.704 347.648h49.152v499.2h-49.152zM137.728 165.888h746.496v181.76H137.728z" ></path><path d="M137.728 481.792h746.496v49.152H137.728zM137.728 664.576h746.496v49.152H137.728z" ></path></symbol><symbol id="icon-dashboard-o" viewBox="0 0 1024 1024"><path d="M880 622c17.673 0 32 14.327 32 32v226c0 17.673-14.327 32-32 32H582c-17.673 0-32-14.327-32-32V654c0-17.673 14.327-32 32-32h298zM442 476c17.673 0 32 14.327 32 32v372c0 17.673-14.327 32-32 32H144c-17.673 0-32-14.327-32-32V508c0-17.673 14.327-32 32-32h298z m406 210H614v162h234V686zM410 540H176v308h234V540z m470-428c17.673 0 32 14.327 32 32v372c0 17.673-14.327 32-32 32H582c-17.673 0-32-14.327-32-32V144c0-17.673 14.327-32 32-32h298z m-32 64H614v308h234V176z m-406-64c17.673 0 32 14.327 32 32v226c0 17.673-14.327 32-32 32H144c-17.673 0-32-14.327-32-32V144c0-17.673 14.327-32 32-32h298z m-32 64H176v162h234V176z" fill="#000000" fill-opacity=".65" ></path></symbol><symbol id="icon-line-layoutmasonryfensanbuju" viewBox="0 0 1024 1024"><path d="M896 128H128c-25.6 0-42.666667 17.066667-42.666667 42.666667v682.666666c0 25.6 17.066667 42.666667 42.666667 42.666667h768c25.6 0 42.666667-17.066667 42.666667-42.666667V170.666667c0-25.6-17.066667-42.666667-42.666667-42.666667zM170.666667 213.333333h298.666666v341.333334H170.666667V213.333333z m0 597.333334v-170.666667h298.666666v170.666667H170.666667z m682.666666 0h-298.666666v-341.333334h298.666666v341.333334z m0-426.666667h-298.666666V213.333333h298.666666v170.666667z" fill="#09121F" ></path></symbol><symbol id="icon-zidingyibuju" viewBox="0 0 1024 1024"><path d="M0 0v256h1024V0z m960 192H64V64h896zM0 1024h512V320H0z m64-640h384v576H64zM576 576h448v-256H576z m64-192h320v128H640zM576 1024h448V640H576z m64-320h320v256H640z" fill="#575869" ></path></symbol><symbol id="icon-daochu" viewBox="0 0 1024 1024"><path d="M394.6 689.8c-13.2 3.2-27.4-9.5-31.7-23.2-8.4-28.5-12.7-58.6-12.7-88.1 0-159.4 151.5-325.1 314.1-352.1v-5.3c0-1.6 0-3.7 0.5-5.3l0.5-2.1c1.6-11.6 5.8-38.5 32.2-55.4 10.6-6.9 22.2-10 34.3-10 14.8 0 26.9 5.3 34.3 9.5 1.6 0.5 2.6 1.6 4.2 2.6L929.2 286c17.4 13.2 28 34.8 28 57 0 22.7-10.6 44.3-28.5 57.5L770.5 525.7c-11.6 9-25.3 13.7-39.1 13.7-12.1 0-23.8-3.7-34.8-10.6-21.1-13.7-31.7-34.8-31.7-64.4v-1.1C559.3 475 442.2 569 416.3 657.6c-4.8 14.3-13.7 32.2-21.7 32.2z m335.7-466.6V256c0 17.4-13.7 31.7-31.1 32.7-125.6 6.9-257.6 131.4-279.7 254.4C486 458.7 595.2 390 699.7 397.4c17.4 1.1 30.6 15.3 30.6 32.7V465c0 4.7 0.5 6.9 0.5 7.9l157.3-124.6c2.1-1.6 2.6-3.2 2.6-5.3 0-2.1-1.1-4.2-2.6-5.3L731.9 214.3c-1.1 1.6-1.6 5.8-2.1 8.4l0.5 0.5z m0 0" ></path><path d="M715.6 916.3H188.3c-67 0-121.9-54.9-121.9-121.9v-568c0-67 54.9-121.9 121.9-121.9h436.5v69.7H188.3c-28.5 0-52.3 23.2-52.3 52.3V795c0 28.5 23.2 52.3 52.3 52.3h527.3c28.5 0 52.3-23.2 52.3-52.3V593.2H837v201.6c0 66.6-54.4 121.5-121.4 121.5z m0 0" ></path><path d="M183 566.9h112.4V626H183v-59.1z m0 154.1h296.1v59.1H183V721z m0-425.4h237v59.1H183v-59.1z m0 140.9h112.4v59.1H183v-59.1z m0 0" ></path></symbol><symbol id="icon-daoru" viewBox="0 0 1024 1024"><path d="M111.6 148.8c7.9 0 16.9 17.9 21.6 32.2 25.9 88.7 143 182.6 248.6 194.2v-1.1c0-29.6 10.6-50.7 31.7-64.4 11.1-6.9 22.7-10.6 34.8-10.6 13.7 0 27.4 4.8 39.1 13.7L645.8 438c17.9 13.2 28.5 34.8 28.5 57.5 0 22.2-10.6 43.8-28 57L487.4 678.2c-1.6 1.1-2.6 2.1-4.2 2.6-7.4 4.2-19.5 9.5-34.3 9.5-12.1 0-23.7-3.2-34.3-10-26.4-16.9-30.6-43.8-32.2-55.4l-0.5-2.1c-0.5-1.6-0.5-3.7-0.5-5.3v-5.3c-162.6-26.9-314.1-192.6-314.1-352 0-29.6 4.2-59.6 12.7-88.1 4.2-13.8 18.4-26.5 31.6-23.3z m335.2 467.1c0.5 2.6 1.1 6.9 2.1 8.4l156.2-123.5c1.6-1.1 2.6-3.2 2.6-5.3 0-2.1-0.5-3.7-2.6-5.3L447.8 365.7c0 1.1-0.5 3.2-0.5 7.9v34.8c0 17.4-13.2 31.7-30.6 32.7-104.5 7.4-213.8-61.2-280.3-145.7 22.2 123 154.1 247.5 279.7 254.4 17.4 1.1 31.1 15.3 31.1 32.7v32.7l-0.4 0.7z m0.5-0.5" ></path><path d="M309 916.3c-67 0-121.4-54.9-121.4-121.4V593.2h69.1v201.6c0 29 23.8 52.3 52.3 52.3h527.3c29 0 52.3-23.8 52.3-52.3V226.4c0-29-23.8-52.3-52.3-52.3H399.8v-69.7h436.5c67 0 121.9 54.9 121.9 121.9v567.9c0 67-54.9 121.9-121.9 121.9H309v0.2z m0 0" ></path><path d="M841.6 626H729.1v-59.1h112.4V626z m0 154.1H545.5V721h296.1v59.1z m0-425.4h-237v-59.1h237v59.1z m0 140.9H729.1v-59.1h112.4v59.1z m0-59.1" ></path></symbol><symbol id="icon-a-juxing1851" viewBox="0 0 1024 1024"><path d="M0 0h438.857143v1024H0V0z m512 0h512v438.857143H512V0z m0 512h219.428571v219.428571H512V512z m292.571429 0h219.428571v219.428571h-219.428571V512z m-292.571429 292.571429h73.142857v73.142857H512v-73.142857z m146.285714 0h73.142857v73.142857H658.285714v-73.142857z m-146.285714 146.285714h73.142857v73.142857H512v-73.142857z m146.285714 0h73.142857v73.142857H658.285714v-73.142857z m146.285715 0h73.142857v73.142857h-73.142857v-73.142857z m146.285714 0h73.142857v73.142857h-73.142857v-73.142857z m-146.285714-146.285714h73.142857v73.142857h-73.142857v-73.142857z m146.285714 0h73.142857v73.142857h-73.142857v-73.142857z" ></path></symbol><symbol id="icon-sxsz" viewBox="0 0 1024 1024"><path d="M304.5 152.6h415L927 512 719.5 871.4h-415L97 512z" fill="#386BF3" ></path><path d="M512 512m-145.25 0a145.25 145.25 0 1 0 290.5 0 145.25 145.25 0 1 0-290.5 0Z" fill="#3D4265" ></path></symbol><symbol id="icon-mx" viewBox="0 0 1024 1024"><path d="M511.9 325.12v248.55L727.15 449.4l-0.01-248.55z" fill="#C3D2FB" ></path><path d="M296.65 200.85L511.9 325.12v248.56L296.65 449.4z" fill="#3D4265" ></path><path d="M511.9 325.12l215.25-124.27L511.9 76.57 296.65 200.85z" fill="#386BF3" ></path><path d="M296.62 698.02v248.55L511.87 822.3l-0.01-248.56z" fill="#C3D2FB" ></path><path d="M81.37 573.74l215.25 124.28v248.55L81.37 822.3z" fill="#3D4265" ></path><path d="M296.62 698.02l215.25-124.28-215.25-124.27L81.37 573.74z" fill="#386BF3" ></path><path d="M727.03 698.02v248.55L942.28 822.3l-0.01-248.56z" fill="#C3D2FB" ></path><path d="M511.78 573.74l215.25 124.28v248.55L511.78 822.3z" fill="#3D4265" ></path><path d="M727.03 698.02l215.25-124.28-215.25-124.27-215.25 124.27z" fill="#386BF3" ></path></symbol><symbol id="icon-al" viewBox="0 0 1024 1024"><path d="M192 132h440v640H192z" fill="#386BF3" ></path><path d="M632 260h200v512H632z" fill="#C3D2FB" ></path><path d="M398.86 612L512 725.14 625.14 612H912v280H112V612z" fill="#3D4265" ></path></symbol><symbol id="icon-sf" viewBox="0 0 1024 1024"><path d="M511.82 512.5v435L888.54 730l-0.02-435z" fill="#C3D2FB" ></path><path d="M135.1 295l376.72 217.5v435L135.1 730z" fill="#3D4265" ></path><path d="M511.82 512.5L888.54 295 511.82 77.5 135.1 295z" fill="#386BF3" ></path></symbol><symbol id="icon-moxing" viewBox="0 0 1061 1024"><path d="M447.122 467.332L49.24 268.162A33.501 33.501 0 0 0 0.136 300.745v441.02a33.042 33.042 0 0 0 16.062 27.994l396.965 248.275a33.96 33.96 0 0 0 17.438 5.507 33.042 33.042 0 0 0 33.043-33.042V497.162a33.042 33.042 0 0 0-16.522-29.83z m598.889-203.76a33.042 33.042 0 0 0-31.666 0l-463.507 203.76a33.042 33.042 0 0 0-19.733 30.289v493.337a33.042 33.042 0 0 0 49.563 28.453l463.048-265.255a33.042 33.042 0 0 0 16.521-28.453V291.566a33.042 33.042 0 0 0-14.226-27.994z m-54.611-84.9a33.042 33.042 0 0 0-22.487-29.83L550.838 1.53a32.583 32.583 0 0 0-19.733 0L83.659 158.021a33.042 33.042 0 0 0-4.13 61.036l397.882 199.17a33.501 33.501 0 0 0 14.685 3.213 33.96 33.96 0 0 0 13.31 0L969.37 215.845a33.042 33.042 0 0 0 22.029-37.173z" fill="#5E5C5C" ></path></symbol><symbol id="icon-yanzhengyanzhengma" viewBox="0 0 1024 1024"><path d="M943.1 172c-2.4-0.2-245.1-25.3-413.8-147.8-5.1-3.7-11-5.6-17.3-5.6-6.2 0-12.2 1.9-17.3 5.6C326.9 146 83.3 171.8 80.9 172c-15.2 1.4-26.6 14.1-26.6 29.3 0 6.7 0.6 165.8 54.8 344.4 32.1 105.8 76.4 196.4 131.9 269.2 70.3 92.3 158.5 156 262 189.2 2.9 0.9 5.9 1.4 9 1.4s6.1-0.5 8.9-1.4c103.6-33.2 191.7-96.8 262-189.2 55.4-72.7 99.8-163.2 131.9-269.2 54.1-178.6 54.8-337.7 54.8-344.4C969.7 186.1 958.3 173.5 943.1 172zM910.1 227.2l-0.1 1.6c-2.9 58.1-13.4 174.4-51.4 299.9-66.7 220.1-183.1 360.1-346 416.1L512 945l-0.6-0.2C349 888.9 232.7 749.4 165.8 530.1c-39.8-130.5-49.4-254.2-51.8-301.4l-0.1-1.6 1.5-0.2c70.6-10.3 250.5-44.8 395.5-142.4l0.9-0.7 1 0.7C658 182.1 837.9 216.6 908.5 227L910.1 227.2z" ></path><path d="M641.8 351 467 580.3l-89-76.1c-5.3-4.5-12.1-7-19.1-7-8.6 0-16.8 3.7-22.4 10.3-10.5 12.3-9.1 31 3.3 41.5l112.7 96.4c5.2 4.4 12.4 7 19.6 7 0.9 0 1.8 0 2.7-0.1 8-0.8 15.4-5 20.3-11.4l193.7-254c4.8-6.3 6.8-14 5.7-21.8-1-7.8-5.1-14.7-11.3-19.5C670.1 335.6 651.6 338.1 641.8 351z" ></path></symbol><symbol id="icon-verify" viewBox="0 0 1024 1024"><path d="M713.856 93.44c44.672 9.344 79.36 15.488 105.024 18.944a332.8 332.8 0 0 0 28.864 3.008A110.08 110.08 0 0 1 944 223.36v348.672c0 71.232-36.288 168.32-80.704 219.328a737.216 737.216 0 0 1-100.672 106.496C683.264 966.208 599.232 1008 512 1008s-171.328-41.792-250.624-110.144c-26.88-23.168-51.2-47.808-72.832-72.512a409.152 409.152 0 0 1-24.768-30.208c-47.68-52.928-83.776-150.4-83.776-223.104V223.36c0-54.72 42.752-102.528 99.264-108.096 5.76-0.32 17.536-1.408 34.432-3.648a953.6 953.6 0 0 0 95.168-17.92c19.392-4.608 34.944-12.16 65.92-30.4l9.984-5.888C434.048 28.416 466.432 16 512 16c39.296 0 68.288 11.84 127.488 43.968l2.304 1.28c38.784 21.056 55.296 28.672 72.064 32.192z m-19.712 93.952c-29.376-6.144-50.688-16-98.176-41.856l-2.304-1.216C549.312 120.32 529.088 112 512 112c-24.192 0-42.88 7.168-78.656 28.16-4.736 2.88-4.736 2.88-9.728 5.76-38.784 22.912-61.12 33.664-92.48 41.216-37.76 8.96-72.96 15.36-104.768 19.648a556.8 556.8 0 0 1-39.68 4.16c-5.12 0.512-10.688 6.784-10.688 12.416v348.672c0 49.344 27.52 123.84 62.08 162.56a642.176 642.176 0 0 0 85.952 90.56c63.552 54.72 128.192 86.848 187.968 86.848 59.776 0 124.416-32.128 187.968-86.848a642.176 642.176 0 0 0 88.32-93.632c31.808-36.608 59.712-111.36 59.712-159.488V223.36c0-5.44-5.888-12.032-6.656-12.288-20.288-0.448-66.112-6.72-147.2-23.68zM400.128 488.704L487.68 576.256l185.088-185.088a48 48 0 0 1 67.84 67.84L521.6 678.144a48 48 0 0 1-67.84 0l-121.6-121.536a48 48 0 1 1 67.968-67.84z" fill="#768893" ></path></symbol><symbol id="icon-preview" viewBox="0 0 1024 1024"><path d="M854.36155804 32.02835121a114.60838884 114.60838884 0 0 1 114.21544637 105.17775738l0.39294247 9.43063278v170.60277392a49.1178817 49.1178817 0 0 1-97.77732893 6.68003145l-0.45843311-6.68003145V146.63674137a16.37262679 16.37262679 0 0 0-12.63966726-15.9796843l-3.73295954-0.39294246H130.1675186a16.37262679 16.37262679 0 0 0-15.91419368 12.57417659l-0.45843312 3.79845017v732.18388095a16.37262679 16.37262679 0 0 0 12.63966859 15.91419369l3.73295821 0.4584331h275.4530781a49.1178817 49.1178817 0 0 1 6.68003143 97.77732894l-6.68003143 0.4584331H130.1675186a114.60838884 114.60838884 0 0 1-114.21544639-105.24324667l-0.39294246-9.36514216V146.63674137a114.60838884 114.60838884 0 0 1 105.24324669-114.28093698l9.36514216-0.32745318h724.19403944z m-286.32450218 495.1082417a235.76582919 235.76582919 0 0 1 358.88798459 303.35203402l80.61881587 80.55332523a39.29430509 39.29430509 0 0 1-55.53595059 55.66693187l-80.61881589-80.61881587a235.83131983 235.83131983 0 0 1-303.35203398-358.88798459z m277.87622625 55.60144257a157.17721902 157.17721902 0 1 0-222.27478502 222.2747837 157.17721902 157.17721902 0 0 0 222.27478502-222.2747837z m-450.70567639-33.26917864a42.56883017 42.56883017 0 1 1 0 85.13766035H210.39339064a42.56883017 42.56883017 0 1 1 0-85.13766035h184.81421508z m0-158.68350096a42.56883017 42.56883017 0 1 1 0 85.13766036H210.39339064a42.56883017 42.56883017 0 1 1 0-85.13766036h184.81421508z m233.67013285-158.68350095a42.56883017 42.56883017 0 1 1 0 85.13766036h-418.48434793a42.56883017 42.56883017 0 1 1 0-85.13766036h418.48434793z" fill="#7f7f7f" ></path></symbol><symbol id="icon-yunshangchuan-xian" viewBox="0 0 1039 1024"><path d="M711.40656 345.248C667.88656 248.448 594.91056 208 481.83856 208c-118.848 0-219.328 96.512-256.736 267.76l-4.96 22.752-23.2 2.256c-83.744 8.192-120.176 54.176-131.36 144.4C54.30256 736.528 103.18256 816 193.85456 816h190.672a32 32 0 1 1 0 64H193.83856C58.68656 880-13.44144 762.72 2.07856 637.296 15.61456 528 65.80656 458.416 167.75856 440.224 215.27856 254.704 335.99856 144 481.83856 144c143.072 0 241.184 58.72 294.24 189.808 3.328-0.176 6.576-0.272 9.76-0.272 125.184 0 223.68 93.696 239.84 252.768 0.896 8.96 1.36 17.952 1.36 26.96C1027.03856 760.576 907.61456 880 760.30256 880h-120.064a32 32 0 1 1 0-64h120.064c111.968 0 202.72-90.768 202.72-202.736 0-6.848-0.32-13.68-1.024-20.48-12.912-127.088-84.544-195.248-176.16-195.248-23.136 0-55.68 7.232-96.928 22.032a32 32 0 1 1-21.616-60.224c15.584-5.6 30.288-10.304 44.112-14.08zM544.23856 598.512V848a32 32 0 0 1-64 0V598.512l-39.712 46.32a32 32 0 1 1-48.592-41.664l95.632-111.552a32.032 32.032 0 0 1 49.344 0l95.616 111.552a32 32 0 0 1-48.592 41.664l-39.696-46.32z" ></path></symbol><symbol id="icon-yulan" viewBox="0 0 1024 1024"><path d="M897.28 85.333333h-750.933333c-28.16 0-51.2 23.04-51.2 51.2v750.933334c0 28.16 23.04 51.2 51.2 51.2h276.906666c18.773333 0 34.133333-15.36 34.133334-34.133334s-15.36-34.133333-34.133334-34.133333H163.413333V153.6h716.8v275.626667c0 18.773333 15.36 34.133333 34.133334 34.133333s34.133333-15.36 34.133333-34.133333V136.533333c0-28.16-22.613333-51.2-51.2-51.2z" fill="#4C4C4C" ></path><path d="M649.813333 315.733333h-324.266666c-18.773333 0-34.133333-15.36-34.133334-34.133333s15.36-34.133333 34.133334-34.133333h324.266666c18.773333 0 34.133333 15.36 34.133334 34.133333s-14.933333 34.133333-34.133334 34.133333zM564.48 452.266667h-238.933333c-18.773333 0-34.133333-15.36-34.133334-34.133334s15.36-34.133333 34.133334-34.133333h238.933333c18.773333 0 34.133333 15.36 34.133333 34.133333s-14.933333 34.133333-34.133333 34.133334zM479.146667 588.8h-153.6c-18.773333 0-34.133333-15.36-34.133334-34.133333s15.36-34.133333 34.133334-34.133334h153.6c18.773333 0 34.133333 15.36 34.133333 34.133334s-14.933333 34.133333-34.133333 34.133333zM724.48 544c-94.293333 0-170.666667 76.373333-170.666667 170.666667s76.373333 170.666667 170.666667 170.666666 170.666667-76.373333 170.666667-170.666666-76.373333-170.666667-170.666667-170.666667z m0 273.066667c-56.32 0-102.4-46.08-102.4-102.4s46.08-102.4 102.4-102.4 102.4 46.08 102.4 102.4-45.653333 102.4-102.4 102.4z" fill="#4C4C4C" ></path><path d="M938.666667 928.853333c-13.226667 13.226667-34.986667 13.226667-48.213334 0l-72.533333-72.533333c-13.226667-13.226667-13.226667-34.986667 0-48.213333 13.226667-13.226667 34.986667-13.226667 48.213333 0l72.533334 72.533333c13.226667 13.226667 13.226667 34.56 0 48.213333z" fill="#4C4C4C" ></path></symbol><symbol id="icon-sousuo" viewBox="0 0 1024 1024"><path d="M1004.8 915.2l-243.2-243.2c0 0-6.4-6.4-6.4-6.4C800 595.2 832 505.6 832 416 832 185.6 646.4 0 416 0S0 185.6 0 416 185.6 832 416 832c89.6 0 179.2-32 243.2-83.2 0 6.4 6.4 6.4 6.4 6.4l243.2 243.2c25.6 25.6 70.4 25.6 96 6.4C1030.4 979.2 1030.4 940.8 1004.8 915.2zM64 416C64 224 224 64 416 64S768 224 768 416 608 768 416 768 64 608 64 416z" fill="#231815" ></path></symbol><symbol id="icon-ziliucheng" viewBox="0 0 1024 1024"><path d="M212.992 526.336 212.992 526.336 212.992 526.336 215.04 526.336 212.992 526.336Z" ></path><path d="M813.056 768l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912l0-38.912-18.432 0c-53.248 0-96.256-43.008-96.256-96.256L659.456 614.4l-96.256 0 0 192.512c0 20.48-16.384 38.912-38.912 38.912L120.832 845.824c-20.48 0-38.912-16.384-38.912-38.912L81.92 401.408c0-20.48 16.384-38.912 38.912-38.912l192.512 0L313.344 190.464 120.832 190.464C98.304 190.464 81.92 174.08 81.92 151.552L81.92 112.64c0-20.48 16.384-38.912 38.912-38.912l788.48 0c20.48 0 38.912 16.384 38.912 38.912l0 38.912c0 20.48-16.384 38.912-38.912 38.912L331.776 190.464l0 174.08 192.512 0c20.48 0 38.912 16.384 38.912 38.912L563.2 593.92l96.256 0 0-153.6c0-53.248 43.008-96.256 96.256-96.256l18.432 0 0-38.912c0-20.48 16.384-38.912 38.912-38.912l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912l0-38.912-18.432 0c-43.008 0-77.824 34.816-77.824 77.824L677.888 593.92l96.256 0 0-38.912c0-20.48 16.384-38.912 38.912-38.912l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912L774.144 614.4l-96.256 0 0 153.6c0 43.008 34.816 77.824 77.824 77.824l18.432 0 0-38.912C774.144 784.384 792.576 768 813.056 768z" ></path></symbol><symbol id="icon-danyuange" viewBox="0 0 1024 1024"><path d="M467.970999 661.248453h-184.831769a70.655912 70.655912 0 0 0-54.527932 25.599968A82.431897 82.431897 0 0 0 204.803328 744.19235v196.607754A82.687897 82.687897 0 0 0 228.611298 998.400032a71.423911 71.423911 0 0 0 54.527932 25.599968h184.831769a73.727908 73.727908 0 0 0 55.039931-25.599968 81.919898 81.919898 0 0 0 23.551971-58.623927v-195.583755a81.919898 81.919898 0 0 0-23.551971-58.367927 72.959909 72.959909 0 0 0-55.039931-25.599968z m5.887993-84.991893A118.015852 118.015852 0 0 0 512.002944 549.376593 127.99984 127.99984 0 0 0 545.538902 460.800704V126.465122A133.119834 133.119834 0 0 0 537.602912 76.801184a123.391846 123.391846 0 0 0-25.599968-40.447949 118.015852 118.015852 0 0 0-37.119954-25.599968A104.703869 104.703869 0 0 0 428.547048 0.00128H116.995438A105.471868 105.471868 0 0 0 71.683494 9.985268a121.087849 121.087849 0 0 0-37.119953 25.599968A127.99984 127.99984 0 0 0 9.219572 76.801184 133.119834 133.119834 0 0 0 0.003584 126.465122V460.800704a127.99984 127.99984 0 0 0 34.559957 88.31989 121.087849 121.087849 0 0 0 37.119953 27.135966 105.471868 105.471868 0 0 0 45.311944 9.983987h311.55161a106.239867 106.239867 0 0 0 45.311944-9.983987z m527.35934-329.215589a71.67991 71.67991 0 0 0-54.783931-25.599968h-184.575769a72.959909 72.959909 0 0 0-55.295931 25.599968 81.919898 81.919898 0 0 0-23.551971 58.367927v195.583756a83.199896 83.199896 0 0 0 23.551971 59.647925 73.983908 73.983908 0 0 0 55.295931 25.599968H947.2024a72.447909 72.447909 0 0 0 54.783932-25.599968 84.991894 84.991894 0 0 0 22.015972-59.647925v-195.583756a82.943896 82.943896 0 0 0-22.783972-58.367927zM947.2024 661.248453h-185.343768a72.959909 72.959909 0 0 0-55.295931 25.599968 81.919898 81.919898 0 0 0-23.551971 58.367927v196.607755A81.919898 81.919898 0 0 0 706.562701 998.400032a73.983908 73.983908 0 0 0 55.295931 25.599968H947.2024a72.447909 72.447909 0 0 0 54.783932-25.599968 83.455896 83.455896 0 0 0 22.015972-57.599928v-196.607754a83.199896 83.199896 0 0 0-22.783972-58.367927 71.67991 71.67991 0 0 0-54.783931-25.599968z m0 0" ></path></symbol><symbol id="icon-rengongzhineng_filledbeifen" viewBox="0 0 1024 1024"><path d="M913.678222 374.556444c0-175.431111-160.782222-317.653333-359.139555-317.653333a382.577778 382.577778 0 0 0-254.663111 93.767111 270.108444 270.108444 0 0 0-91.335112 118.840889 318.350222 318.350222 0 0 0-20.849777 98.773333c-0.597333 38.840889 18.389333 76.871111 1.664 114.688-11.633778 26.453333-41.870222 48.824889-61.312 69.916445 0 0-54.442667 36.224 49.436444 41.173333 2.929778 0.142222 16.071111 62.222222 19.342222 76.430222a16.753778 16.753778 0 0 0-3.271111 10.752c0 11.904 15.004444 21.617778 33.450667 21.617778h11.278222c-24.362667 3.313778-41.955556 12.8-41.955555 26.026667 0 9.102222 11.562667 21.105778 28.842666 28.302222 0 0-21.333333 66.744889 10.296889 81.962667a36.977778 36.977778 0 0 0 21.333333 1.564444c44.856889 2.446222 125.155556-0.739556 169.784889-0.739555 0-0.810667 23.466667 127.146667 23.466667 127.146666h403.299556c0 0.64-38.769778-289.265778-38.769778-289.265777 70.968889-101.632 95.544889-192.611556 96.881778-268.643556 1.422222-11.491556 2.161778-23.068444 2.176-34.659556h0.042666zM701.155556 320.711111a72.632889 72.632889 0 0 1-65.706667-42.055111l-54.471111 31.544889a108.344889 108.344889 0 0 1-7.509334 107.975111l102.172445 59.192889a36.508444 36.508444 0 1 1-10.894222 25.984 35.555556 35.555556 0 0 1 2.019555-10.026667L561.777778 432.512a109.511111 109.511111 0 1 1 10.168889-138.154667l57.728-33.422222a72.718222 72.718222 0 1 1 71.466666 59.733333v0.042667z" fill="#323233" ></path></symbol><symbol id="icon-fuhao-huizhi" viewBox="0 0 1024 1024"><path d="M254.4 82.624L82.624 254.4a60.704 60.704 0 0 0 0 85.92L254.4 512l128.8-128.8-42.88-42.88-85.92 85.888-42.88-42.88 85.888-85.92-42.88-42.88-85.92 85.888-42.88-42.88 171.776-171.84 171.584 171.616L512 254.4l-171.776-171.84a60.576 60.576 0 0 0-85.76 0z m644.096 644.064l-171.808 171.808-42.88-42.912 85.888-85.888-42.88-42.88-85.92 85.856-42.88-42.88 85.888-85.888-42.912-42.912L512 769.6l171.776 171.776a60.704 60.704 0 0 0 85.92 0l171.776-171.776a60.704 60.704 0 0 0 0-85.92L769.6 512l-42.912 42.88 171.808 171.808zM680.8 211.328l131.968 131.872-43.968 44L636.8 255.2l44-43.872zM240.96 650.976l131.968 131.872-44 44-131.968-131.872 44-44zM680.704 123.424a124.544 124.544 0 0 1 176.288 0.096l43.584 43.52a124.704 124.704 0 0 1 0.096 176.16L355.264 888.416l-268.352 48.384 48.384-268.288L680.704 123.424zM334.4 821.344L857.472 298.656c23.84-23.872 23.552-63.264-0.8-87.52L813.12 167.616c-24.544-24.544-63.552-24.832-87.584-0.8L202.432 689.6l-27.52 159.424 159.52-27.616z" fill="#0A8CF0" ></path></symbol><symbol id="icon-shanchu" viewBox="0 0 1024 1024"><path d="M799.2 874.4c0 34.4-28.001 62.4-62.4 62.4H287.2c-34.4 0-62.4-28-62.4-62.4V212h574.4v662.4zM349.6 100c0-7.2 5.6-12.8 12.8-12.8h300c7.2 0 12.8 5.6 12.8 12.8v37.6H349.6V100z m636.8 37.6H749.6V100c0-48.001-39.2-87.2-87.2-87.2h-300c-48 0-87.2 39.199-87.2 87.2v37.6H37.6C16.8 137.6 0 154.4 0 175.2s16.8 37.6 37.6 37.6h112v661.6c0 76 61.6 137.6 137.6 137.6h449.6c76 0 137.6-61.6 137.6-137.6V212h112c20.8 0 37.6-16.8 37.6-37.6s-16.8-36.8-37.6-36.8zM512 824c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0 20.8 16.8 37.6 37.6 37.6m-175.2 0c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0.8 20.8 17.6 37.6 37.6 37.6m350.4 0c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0 20.8 16.8 37.6 37.6 37.6" fill="#8A8A8A" ></path></symbol><symbol id="icon-jurassic_import-form" viewBox="0 0 1024 1024"><path d="M764.9 64H225.4l1.4 224.2 64-0.4-1-159.8h383.6v224H896v544H289.8l1-159.8-64-0.4-1.4 224.2H960V277.7L764.9 64z m-27.6 64.7L882.8 288H737.3V128.7z" fill="#707070" ></path><path d="M356.5 224h255.9v64H356.5z" fill="#707070" ></path><path d="M576.4 416h255.9v64H576.4zM512.5 576h319.8v64H512.5zM384.5 736h447.8v64H384.5z" fill="#707070" ></path><path d="M336.9 349H198.6l98.9 98.9H64v128.2h233.5L198.6 675h138.3l162.9-163z" fill="#707070" ></path></symbol><symbol id="icon-kaoheweidufenxi" viewBox="0 0 1024 1024"><path d="M815.542857 212.943238l118.296381 68.266667v168.033524l-201.532952 116.345904-0.487619-163.352381-125.366857-72.46019 209.091047-116.833524z m-89.673143-51.736381L519.314286 279.454476 305.785905 156.233143 511.561143 37.449143l214.308571 123.757714zM294.619429 887.466667L89.234286 768.877714V546.133333l205.677714 118.00381-0.292571 223.329524z m85.333333 49.249523l-0.097524-223.914666 133.607619 76.653714 132.632381-76.604952-1.024 222.744381-133.558857 77.043809-131.510857-75.922286zM434.468571 328.021333L295.253333 407.747048l-0.195047 156.672L89.234286 444.318476V281.258667l132.047238-76.263619 213.089524 123.026285z m86.113524 49.737143l126.780953 73.191619-0.780191 164.08381-133.12 76.897524-133.656381-78.019048-0.097524-157.403429 140.921905-78.750476z m413.257143 169.008762v222.110476l-200.655238 115.809524-0.633905-221.769143 201.289143-116.150857z" fill="#82529d" ></path></symbol><symbol id="icon-wenjianjia" viewBox="0 0 1024 1024"><path d="M855.04 385.024q19.456 2.048 38.912 10.24t33.792 23.04 21.504 37.376 2.048 54.272q-2.048 8.192-8.192 40.448t-14.336 74.24-18.432 86.528-19.456 76.288q-5.12 18.432-14.848 37.888t-25.088 35.328-36.864 26.112-51.2 10.24l-567.296 0q-21.504 0-44.544-9.216t-42.496-26.112-31.744-40.96-12.288-53.76l0-439.296q0-62.464 33.792-97.792t95.232-35.328l503.808 0q22.528 0 46.592 8.704t43.52 24.064 31.744 35.84 12.288 44.032l0 11.264-53.248 0q-40.96 0-95.744-0.512t-116.736-0.512-115.712-0.512-92.672-0.512l-47.104 0q-26.624 0-41.472 16.896t-23.04 44.544q-8.192 29.696-18.432 62.976t-18.432 61.952q-10.24 33.792-20.48 65.536-2.048 8.192-2.048 13.312 0 17.408 11.776 29.184t29.184 11.776q31.744 0 43.008-39.936l54.272-198.656q133.12 1.024 243.712 1.024l286.72 0z" ></path></symbol><symbol id="icon-biaoqian" viewBox="0 0 1024 1024"><path d="M934.912 516.096q23.552 26.624 19.456 49.664t-26.624 46.592l-324.608 327.68q-8.192 7.168-19.456 11.264t-23.04 4.608-23.04-2.56-18.432-10.24q-121.856-122.88-218.112-220.16l-80.896-80.896q-39.936-39.936-71.168-71.68t-51.2-51.2-20.992-21.504q-3.072-4.096-10.752-14.848t-6.656-25.088l0-19.456 0-40.96q0-23.552 0.512-52.736t0.512-58.88q1.024-70.656 2.048-156.672 2.048-13.312 6.144-24.064t15.36-22.016q10.24-11.264 22.016-16.384t22.016-5.12l329.728 0q2.048 0 9.216 0.512t10.24 1.536q6.144 2.048 11.264 5.12t10.24 8.192zM217.088 317.44q40.96 0 69.12-28.672t28.16-69.632-28.16-69.632-69.12-28.672q-20.48 0-37.888 7.68t-30.72 20.992-20.992 31.232-7.68 38.4 7.68 38.4 20.992 31.232 30.72 20.992 37.888 7.68z" fill="#ea9518" ></path></symbol><symbol id="icon-wenben" viewBox="0 0 1024 1024"><path d="M823.296 60.416q65.536 0 99.328 38.4t33.792 93.696l0 543.744q0 25.6-21.504 46.08l-171.008 163.84q-13.312 11.264-22.528 14.336t-23.552 3.072l-459.776 0q-23.552 0-47.104-9.728t-41.984-27.648-30.208-43.008-11.776-55.808l0-634.88q0-60.416 33.28-96.256t94.72-35.84l568.32 0zM608.256 702.464q13.312 0 22.528-9.216t9.216-22.528q0-14.336-9.216-23.04t-22.528-8.704l-320.512 0q-13.312 0-22.528 8.704t-9.216 23.04q0 13.312 9.216 22.528t22.528 9.216l320.512 0zM736.256 509.952q13.312 0 22.528-9.216t9.216-22.528-9.216-22.528-22.528-9.216l-448.512 0q-13.312 0-22.528 9.216t-9.216 22.528 9.216 22.528 22.528 9.216l448.512 0zM799.744 318.464q13.312 0 22.528-9.216t9.216-23.552q0-13.312-9.216-22.528t-22.528-9.216l-512 0q-13.312 0-22.528 9.216t-9.216 22.528q0 14.336 9.216 23.552t22.528 9.216l512 0z" fill="#db639b" ></path></symbol><symbol id="icon-yingyong" viewBox="0 0 1026 1024"><path d="M371.732817 94.172314q25.773475 0 44.112294 17.843175t18.338819 43.616651l0 247.821878q0 25.773475-18.338819 44.112294t-44.112294 18.338819l-247.821878 0q-25.773475 0-43.616651-18.338819t-17.843175-44.112294l0-247.821878q0-25.773475 17.843175-43.616651t43.616651-17.843175l247.821878 0zM371.732817 589.81607q25.773475 0 44.112294 17.843175t18.338819 43.616651l0 248.813166q0 25.773475-18.338819 43.616651t-44.112294 17.843175l-247.821878 0q-25.773475 0-43.616651-17.843175t-17.843175-43.616651l0-248.813166q0-25.773475 17.843175-43.616651t43.616651-17.843175l247.821878 0zM868.367861 589.81607q25.773475 0 43.616651 17.843175t17.843175 43.616651l0 248.813166q0 25.773475-17.843175 43.616651t-43.616651 17.843175l-247.821878 0q-25.773475 0-44.112294-17.843175t-18.338819-43.616651l0-248.813166q0-25.773475 18.338819-43.616651t44.112294-17.843175l247.821878 0zM1006.156825 203.21394q19.82575 19.82575 19.82575 46.590513t-19.82575 45.599226l-184.379477 184.379477q-19.82575 19.82575-46.094869 19.82575t-46.094869-19.82575l-184.379477-184.379477q-18.834463-18.834463-18.834463-45.599226t18.834463-46.590513l184.379477-184.379477q19.82575-18.834463 46.094869-18.834463t46.094869 18.834463z" fill="#0061b2" ></path></symbol><symbol id="icon-wenjianjia-copy" viewBox="0 0 1024 1024"><path d="M855.04 385.024q19.456 2.048 38.912 10.24t33.792 23.04 21.504 37.376 2.048 54.272q-2.048 8.192-8.192 40.448t-14.336 74.24-18.432 86.528-19.456 76.288q-5.12 18.432-14.848 37.888t-25.088 35.328-36.864 26.112-51.2 10.24l-567.296 0q-21.504 0-44.544-9.216t-42.496-26.112-31.744-40.96-12.288-53.76l0-439.296q0-62.464 33.792-97.792t95.232-35.328l503.808 0q22.528 0 46.592 8.704t43.52 24.064 31.744 35.84 12.288 44.032l0 11.264-53.248 0q-40.96 0-95.744-0.512t-116.736-0.512-115.712-0.512-92.672-0.512l-47.104 0q-26.624 0-41.472 16.896t-23.04 44.544q-8.192 29.696-18.432 62.976t-18.432 61.952q-10.24 33.792-20.48 65.536-2.048 8.192-2.048 13.312 0 17.408 11.776 29.184t29.184 11.776q31.744 0 43.008-39.936l54.272-198.656q133.12 1.024 243.712 1.024l286.72 0z" ></path></symbol></svg>',(l=>{var r=(n=(n=document.getElementsByTagName("script"))[n.length-1]).getAttribute("data-injectcss"),n=n.getAttribute("data-disable-injectsvg");if(!n){var t,s,u,b,h,v=function(w,D){D.parentNode.insertBefore(w,D)};if(r&&!l.__iconfont__svg__cssinject__){l.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(w){console&&console.log(w)}}t=function(){var w,D=document.createElement("div");D.innerHTML=l._iconfont_svg_string_4827314,(D=D.getElementsByTagName("svg")[0])&&(D.setAttribute("aria-hidden","true"),D.style.position="absolute",D.style.width=0,D.style.height=0,D.style.overflow="hidden",D=D,(w=document.body).firstChild?v(D,w.firstChild):w.appendChild(D))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(t,0):(s=function(){document.removeEventListener("DOMContentLoaded",s,!1),t()},document.addEventListener("DOMContentLoaded",s,!1)):document.attachEvent&&(u=t,b=l.document,h=!1,c(),b.onreadystatechange=function(){b.readyState=="complete"&&(b.onreadystatechange=null,y())})}function y(){h||(h=!0,u())}function c(){try{b.documentElement.doScroll("left")}catch{return void setTimeout(c,50)}y()}})(window);const Yp={class:"statistics-cards-container"},Gp=["onClick"],Jp=a.defineComponent({__name:"index",props:{items:{default:()=>[]},disabled:{type:Boolean,default:!1},textSize:{default:void 0},textColor:{default:void 0}},setup(l){const r=l,n=a.ref(null),t=w=>{if(Array.isArray(w)&&w.length>=3){const[D,A,_,H]=w;return H!==void 0?`rgba(${D}, ${A}, ${_}, ${H})`:`rgb(${D}, ${A}, ${_})`}if(typeof w=="string"){const D=w.trim();if(D.startsWith("[")&&D.endsWith("]")){const A=D.slice(1,-1).split(",").map(_=>Number(_.trim()));if(A.length>=3&&A.every(_=>!Number.isNaN(_))){const[_,H,k,T]=A;return T!==void 0?`rgba(${_}, ${H}, ${k}, ${T})`:`rgb(${_}, ${H}, ${k})`}}return D}},s=a.computed(()=>{const w=Number(r==null?void 0:r.textSize),D=t(r==null?void 0:r.textColor),A={},_={};return!Number.isNaN(w)&&w&&(A.fontSize=`${w}px`,_.fontSize=`${w}px`),D&&(A.color=D,_.color=D),{label:A,value:_}}),u=w=>pl.getComponent(w),b=w=>{if(!w)return;const D=w.querySelector("input, textarea, .el-input__inner");D&&typeof D.focus=="function"&&D.focus()},h=(w,D,A)=>{r.disabled||w.field&&(n.value=D,a.nextTick(()=>{b(A.currentTarget)}))},v=()=>{n.value=null},y=w=>{var A;const D=((A=w==null?void 0:w.field)==null?void 0:A.value)??(w==null?void 0:w.value);return D==null||D===""?"-":D},c=w=>{const D=w!=null&&w.width&&w.width>0?w.width:1,_=`calc((100% - ${(D-1)*16}px) / ${D})`;return{flex:`0 0 ${_}`,maxWidth:_,minWidth:"140px",boxSizing:"border-box"}};return(w,D)=>(a.openBlock(),a.createElementBlock("div",Yp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(w.items,(A,_)=>{var H,k,T,J,S,V,z,x;return a.openBlock(),a.createElementBlock("div",{class:"statistics-card",key:_,style:a.normalizeStyle(c(A))},[a.createElementVNode("div",{class:"statistics-label",style:a.normalizeStyle(s.value.label)},a.toDisplayString(A==null?void 0:A.label),5),a.createElementVNode("div",{class:"statistics-value",style:a.normalizeStyle(s.value.value),onClick:g=>h(A,_,g)},[n.value===_&&A.field?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u(((H=A.field)==null?void 0:H.type)??"Input")),{key:0,modelValue:A.field.value,"onUpdate:modelValue":g=>A.field.value=g,isEdit:!0,disabled:(k=A.field)==null?void 0:k.disabled,content:((T=A.field)==null?void 0:T.contents)??[],optionUrl:A.field,originalValue:(J=A.field)==null?void 0:J.value,config:(S=A.field)==null?void 0:S.config,configModel:((V=A.field)==null?void 0:V.prop)??((z=A.field)==null?void 0:z.name),selectedTagList:((x=A.field)==null?void 0:x.selectValue)??[],onBlur:v,onBlurChange:v},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(y(A)),1)],64))],12,Gp)],4)}),128))]))}}),Xp=ql._export_sfc(Jp,[["__scopeId","data-v-bc3dcbbb"]]),Zs=I.defineStore("formToTableComp",{state:()=>({selectArray:[],selectString:""}),actions:{setSelectArray(l){this.selectArray=l},setSelectString(l){this.selectString=l}}}),Zp={class:"calculator-content"},Qp={class:"calculator-child"},ef={class:"calculator-child"},af=a.defineComponent({__name:"calculator",setup(l){const r=a.ref(),n=a.ref();return a.onMounted(()=>{r.value=[{type:"Upload",label:"输入",name:"input"}],n.value=[{type:"Upload",label:"输出",name:"output"}]}),(t,s)=>(a.openBlock(),a.createElementBlock("div",Zp,[a.createElementVNode("div",Qp,[a.createVNode(pl.ssForm,{rowContents:r.value,isRowFlex:!0},null,8,["rowContents"])]),a.createElementVNode("div",ef,[a.createVNode(pl.ssForm,{rowContents:n.value,isEdit:!1,isRowFlex:!0},null,8,["rowContents"])])]))}}),lf=ql._export_sfc(af,[["__scopeId","data-v-73db0fe7"]]),pi=(l,r)=>{let n=l,t=r;return Array.isArray(n)&&(n=n==null?void 0:n.map((s,u)=>{if(Array.isArray(s)){let b={};return s=s==null?void 0:s.forEach((h,v)=>{var y;(y=t==null?void 0:t[v])!=null&&y.prop?b[t[v].prop]=h:Array.isArray(h)&&(b.children=pi(h,t))}),Object.assign(b,{id:u})}else return s})),n},Qs=(l,r,n)=>{let t=l,s=r;return t=t==null?void 0:t.map((u,b)=>{var h,v;return!Array.isArray(u)||!((h=s==null?void 0:s[b])!=null&&h.label)&&!n||(u.unshift(((v=s==null?void 0:s[b])==null?void 0:v.label)??""),u.some(y=>Array.isArray(y))&&(u=u==null?void 0:u.map(y=>{var c;return Array.isArray(y)&&(y=Qs(y,(c=s==null?void 0:s[b])==null?void 0:c.children,n)),y}))),u}),t},rf=(l,r,n)=>{if(r==="")return l==null?void 0:l.filter(t=>(t==null?void 0:t.id)!==n);{const t=r.split("-");return nf(l,t,n)}},nf=(l,r,n)=>{let t=l,s=r;return(s==null?void 0:s.length)===0?t=t==null?void 0:t.filter(u=>u.id!==n):t=t==null?void 0:t.map(u=>(u.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),u=ec(u,s,n)),u)),t},ec=(l,r,n)=>{var u,b;let t=l,s=r;return(s==null?void 0:s.length)===0?t.children=(u=t.children)==null?void 0:u.filter(h=>h.id!==n):t.children=(b=t.children)==null?void 0:b.map(h=>(h.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),h=ec(h,s,n)),h)),t},tf=(l,r,n)=>{if(r==="")return n;{const t=r.split("-");return of(l,t,n)}},of=(l,r,n)=>{let t=l,s=r;return(s==null?void 0:s.length)===0?t=n:t=t==null?void 0:t.map(u=>(u.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),u=ac(u,s,n)),u)),t},ac=(l,r,n)=>{var u;let t=l,s=r;return(s==null?void 0:s.length)===0?t.children=n:t.children=(u=t.children)==null?void 0:u.map(b=>(b.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),b=ac(b,s,n)),b)),t};class sf{constructor(r={}){Rr(this,"url");Rr(this,"heartbeatInterval");Rr(this,"socket",null);Rr(this,"isConnected",!1);Rr(this,"heartTimer",null);Rr(this,"canvas",null);Rr(this,"ctx",null);Rr(this,"mainCamCutMode",0);Rr(this,"pMainShowStartX",0);Rr(this,"pMainShowStartY",0);Rr(this,"onLog");Rr(this,"onDevCount");Rr(this,"onResolution");Rr(this,"onCameraStatus");Rr(this,"onPhoto");this.url=r.url??"ws://127.0.0.1:22225",this.heartbeatInterval=r.heartbeatInterval??3e3}init(r,n,t){var b;(b=this.canvas)!=null&&b.parentNode&&this.canvas.parentNode.removeChild(this.canvas);const s=document.createElement("canvas");s.style.border="solid 1px #A0A0A0",s.id="MainCamCanvas",s.width=n,s.height=t;const u=s.getContext("2d");if(!u)throw new Error("无法获取 CanvasRenderingContext2D");r.appendChild(s),this.canvas=s,this.ctx=u}async connect(){this.socket&&(this.socket.readyState===WebSocket.OPEN||this.socket.readyState===WebSocket.CONNECTING)||await new Promise((r,n)=>{const t=new WebSocket(this.url);t.binaryType="arraybuffer",t.onopen=()=>{this.socket=t,this.isConnected=!0,this.startHeartbeat(),this.log("socket.onopen"),r()},t.onerror=s=>{this.isConnected=!1,this.log("socket.onerror"),n(s)},t.onclose=()=>{this.isConnected=!1,this.stopHeartbeat(),this.log("socket.onclose")},t.onmessage=s=>{this.handleMessage(s)}})}destroy(){var r;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,(r=this.canvas)!=null&&r.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.canvas=null,this.ctx=null}getDevCount(){this.sendBytes(new Uint8Array([119,136,80]))}getResolution(r=0){this.sendBytes(new Uint8Array([119,136,81,r]))}chooseResolution(r){if(!Array.isArray(r)||r.length===0)return null;const n=r.find(s=>s.width===2592&&s.height===1944);return n||[...r].sort((s,u)=>u.width*u.height-s.width*s.height)[0]||null}openCamera(r=0,n=1280,t=720){if(!this.canvas)throw new Error("请先 init() 传入容器并创建 canvas");const s=new Uint8Array(12);s[0]=119,s[1]=136,s[2]=1,s[3]=r,s[4]=this.canvas.width>>8&255,s[5]=this.canvas.width&255,s[6]=this.canvas.height>>8&255,s[7]=this.canvas.height&255,s[8]=n>>8&255,s[9]=n&255,s[10]=t>>8&255,s[11]=t&255,this.sendBytes(s)}closeCamera(){this.sendBytes(new Uint8Array([119,136,2,0]))}photo(){const s=new Uint8Array(12);s[0]=119,s[1]=136,s[2]=16,s[3]=0,s[4]=0,s[5]=0,s[6]=0,s[7]=0,s[8]=1,s[9]=0,s[10]=0,s[11]=0,this.sendBytes(s)}bestSize(){this.sendBytes(new Uint8Array([119,136,5,0]))}rotateLeft(){this.sendBytes(new Uint8Array([119,136,7,0]))}rotateRight(){this.sendBytes(new Uint8Array([119,136,8,0]))}focus(){this.sendBytes(new Uint8Array([119,136,48,0]))}log(r){var n;(n=this.onLog)==null||n.call(this,r)}sendBytes(r){if(!this.socket||this.socket.readyState!==WebSocket.OPEN||!this.isConnected)throw new Error("socket 未连接");this.socket.send(r.buffer)}startHeartbeat(){this.stopHeartbeat(),this.heartTimer=window.setInterval(()=>{this.log("heartCheck...........")},this.heartbeatInterval)}stopHeartbeat(){this.heartTimer&&(clearInterval(this.heartTimer),this.heartTimer=null)}handleMessage(r){var s,u,b,h,v,y;const n=new Uint8Array(r.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 t=n[2];if(t===80){const c=n[3],w=n.length-4,D=new Uint8Array(w);for(let H=0;H<w;H++)D[H]=n[4+H];const _=decodeURIComponent(this.byteToString(D)).split("|");(s=this.onDevCount)==null||s.call(this,c,_);return}if(t===81){const c=n[3]||0,w=[];for(let D=0;D<c;D++){const A=(n[4+D*4+0]||0)*256+(n[4+D*4+1]||0),_=(n[4+D*4+2]||0)*256+(n[4+D*4+3]||0);w.push({width:A,height:_,text:`${A}*${_}`})}(u=this.onResolution)==null||u.call(this,c,w);return}if(t===1){n[3]===1&&((b=this.onCameraStatus)==null||b.call(this,"opened")),n[3]===3&&((h=this.onCameraStatus)==null||h.call(this,"closed"));return}if(t===16){if(n[3]===1){const w=n[4]*256+n[5],D=n[6]*65536+n[7]*256+n[8];let A="";if(w>0){const k=new Uint8Array(w);for(let T=0;T<w;T++)k[T]=n[9+T];A=decodeURIComponent(this.byteToString(k))}const _=new Uint8Array(D);for(let k=0;k<D;k++)_[k]=n[9+w+k];const H=this.uint8ArrayToString(_);(v=this.onPhoto)==null||v.call(this,{flag:0,imgPath:A,base64:H})}n[3]===2&&((y=this.onPhoto)==null||y.call(this,{flag:2,imgPath:"",base64:""}));return}if(t===204){if(!this.canvas||!this.ctx)return;const c=n[3]*256+n[4],w=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 D=this.ctx.createImageData(c,w);let A=11;for(let _=0;_<D.data.length;_+=4)D.data[_+0]=n[A],D.data[_+1]=n[A+1],D.data[_+2]=n[A+2],D.data[_+3]=255,A+=3;this.ctx.putImageData(D,this.pMainShowStartX,this.pMainShowStartY),this.mainCamCutMode;return}}uint8ArrayToString(r){let n="";for(let t=0;t<r.length;t++)n+=String.fromCharCode(r[t]);return n}byteToString(r){let n="";for(let t=0;t<r.length;t++)n+=String.fromCharCode(r[t]);return n}}const cf={style:{display:"flex",gap:"16px",height:"100%"}},uf={key:0,style:{color:"var(--el-text-color-secondary)"}},df={style:{width:"420px",display:"flex","flex-direction":"column",gap:"16px"}},pf={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px"}},ff={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"}},hf={key:0,style:{height:"100%",display:"flex","align-items":"center","justify-content":"center",color:"var(--el-text-color-secondary)"}},vf={key:1,style:{display:"grid","grid-template-columns":"repeat(2, minmax(0, 1fr))",gap:"8px"}},mf=["src","onClick"],yf=["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"}},bf={class:"dialog-footer"},kf=a.defineComponent({__name:"index",props:{visible:{type:Boolean,default:!1}},emits:["confirm","cancel"],setup(l,{emit:r}){const n=l,t=r,s=a.ref(null),u=a.ref(!1),b=a.ref([]),h=a.ref(""),v=a.ref(!1),y=a.ref([]),c=new sf({url:"ws://127.0.0.1:22225"});function w(q,G){var X;const be=q.split(","),ze=((X=be[0].match(/:(.*?);/))==null?void 0:X[1])??"image/jpeg",De=atob(be[1]);let ne=De.length;const ke=new Uint8Array(ne);for(;ne--;)ke[ne]=De.charCodeAt(ne);return new File([ke],G,{type:ze})}function D(){c.onLog=q=>{console.log("[GPY]",q)},c.onDevCount=(q,G)=>{if(h.value+=`设备数量=${q},设备=${G.join(",")}
4
4
  `,q>0){h.value+=`检测到设备,正在获取分辨率...
5
5
  `;try{c.getResolution(0)}catch(be){h.value+=`获取分辨率失败:${(be==null?void 0:be.message)??be}
6
6
  `}}else h.value+=`未检测到高拍仪设备!
@@ -11,15 +11,15 @@
11
11
  `}return}h.value+=`获取分辨率 ${be.text}成功,打开摄像头...
12
12
  `;try{c.closeCamera(),setTimeout(()=>{try{c.openCamera(0,be.width,be.height)}catch(ze){h.value+=`打开摄像头失败:${(ze==null?void 0:ze.message)??ze}
13
13
  `}},100)}catch{try{c.openCamera(0,be.width,be.height)}catch(ze){h.value+=`打开摄像头失败:${(ze==null?void 0:ze.message)??ze}
14
- `}}},c.onCameraStatus=q=>{q==="opened"?(d.value=!0,h.value+=`摄像头已打开
15
- `):(d.value=!1,h.value+=`摄像头已关闭
14
+ `}}},c.onCameraStatus=q=>{q==="opened"?(u.value=!0,h.value+=`摄像头已打开
15
+ `):(u.value=!1,h.value+=`摄像头已关闭
16
16
  `)},c.onPhoto=q=>{if(q.flag===0&&q.base64){const G=`data:image/jpeg;base64,${q.base64}`,be=w(G,`gpy-capture-${Date.now()}.jpg`);b.value.push({uid:`${Date.now()}_${Math.random().toString(16).slice(2)}`,url:G,file:be}),h.value+=`拍照完成,已接收图片(当前 ${b.value.length} 张)
17
17
  `}else h.value+=`拍照失败 flag=${q.flag}
18
- `}}const A=async()=>{if(await a.nextTick(),!s.value)return;_(),S();const q=s.value.getBoundingClientRect();c.init(s.value,Math.floor(q.width),Math.floor(q.height)),h.value+=`正在连接设备服务...
18
+ `}}const A=async()=>{if(await a.nextTick(),!s.value)return;_(),D();const q=s.value.getBoundingClientRect();c.init(s.value,Math.floor(q.width),Math.floor(q.height)),h.value+=`正在连接设备服务...
19
19
  `,await c.connect(),h.value+=`正在获取设备数量...
20
- `,c.getDevCount()},_=()=>{try{c.destroy()}catch(q){console.error(q)}d.value=!1,b.value=[],h.value="",v.value=!1,y.value=[]};a.watch(()=>n.visible,q=>{q?A():_()});const H=()=>{try{c.bestSize()}catch(q){console.error(q)}},k=()=>{try{c.rotateLeft()}catch(q){console.error(q)}},T=()=>{try{c.rotateRight()}catch(q){console.error(q)}},J=()=>{try{c.focus()}catch(q){console.error(q)}},D=()=>{h.value+=`正在拍照...
20
+ `,c.getDevCount()},_=()=>{try{c.destroy()}catch(q){console.error(q)}u.value=!1,b.value=[],h.value="",v.value=!1,y.value=[]};a.watch(()=>n.visible,q=>{q?A():_()});const H=()=>{try{c.bestSize()}catch(q){console.error(q)}},k=()=>{try{c.rotateLeft()}catch(q){console.error(q)}},T=()=>{try{c.rotateRight()}catch(q){console.error(q)}},J=()=>{try{c.focus()}catch(q){console.error(q)}},S=()=>{h.value+=`正在拍照...
21
21
  `;try{c.photo()}catch(q){h.value+=`拍照调用失败:${(q==null?void 0:q.message)??q}
22
- `}},$=()=>{b.value.length>0?t("confirm",b.value.map(q=>q.file)):t("confirm",[])},z=q=>{q<0||q>=b.value.length||(b.value.splice(q,1),h.value+=`已删除一张图片(剩余 ${b.value.length} 张)
23
- `)},x=q=>{if(!q)return;const G=`gpy-preview-${Date.now()}.jpg`;y.value=[{name:G,blobUrl:q}],v.value=!0},g=()=>{v.value=!1},F=()=>{_(),t("cancel")};return(q,G)=>{const be=a.resolveComponent("el-input"),ze=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(vr.ssDialog,{title:"扫描录入",visible:n.visible,onBeforeDestroy:F,width:"1200px",style:{height:"80%"}},{default:a.withCtx(()=>[a.createElementVNode("div",cf,[a.createElementVNode("div",{ref_key:"cameraBox",ref:s,style:{flex:"1","min-width":"0",border:"1px solid var(--el-border-color)","border-radius":"4px",position:"relative",overflow:"hidden",display:"flex","align-items":"center","justify-content":"center",background:"var(--el-fill-color-lighter)"}},[d.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",uf,"初始化摄像头..."))],512),a.createElementVNode("div",df,[a.createElementVNode("div",pf,[G[0]||(G[0]=a.createElementVNode("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"拍照图片",-1)),a.createElementVNode("div",ff,[b.value.length===0?(a.openBlock(),a.createElementBlock("div",hf,"暂无图片")):(a.openBlock(),a.createElementBlock("div",vf,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(b.value,(De,ne)=>(a.openBlock(),a.createElementBlock("div",{key:De.uid,style:{position:"relative",border:"1px solid var(--el-border-color)","border-radius":"4px",overflow:"hidden",background:"#fafafa"}},[a.createElementVNode("img",{src:De.url,onClick:ke=>x(De.url),style:{width:"100%",height:"94px","object-fit":"contain",display:"block",background:"#fafafa",cursor:"zoom-in"},alt:"captured image",title:"点击放大"},null,8,mf),a.createElementVNode("div",{onClick:ke=>z(ne),style:{position:"absolute",top:"4px",right:"4px",width:"18px",height:"18px","border-radius":"50%",background:"rgba(0,0,0,0.55)",color:"#fff",display:"flex","align-items":"center","justify-content":"center",cursor:"pointer","font-size":"12px"},title:"删除"},"×",8,yf)]))),128))]))],512)]),a.createElementVNode("div",gf,[G[1]||(G[1]=a.createElementVNode("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"操作记录",-1)),a.createVNode(be,{type:"textarea",value:h.value,readonly:"",rows:10,placeholder:"设备操作记录...",style:{flex:"1"}},null,8,["value"])])])])]),footer:a.withCtx(()=>[a.createElementVNode("div",bf,[a.createVNode(ze,{onClick:H,disabled:!d.value,id:"themeBorderButton"},{default:a.withCtx(()=>G[2]||(G[2]=[a.createTextVNode("适屏")])),_:1,__:[2]},8,["disabled"]),a.createVNode(ze,{onClick:k,disabled:!d.value,id:"themeBorderButton"},{default:a.withCtx(()=>G[3]||(G[3]=[a.createTextVNode("左旋")])),_:1,__:[3]},8,["disabled"]),a.createVNode(ze,{onClick:T,disabled:!d.value,id:"themeBorderButton"},{default:a.withCtx(()=>G[4]||(G[4]=[a.createTextVNode("右旋")])),_:1,__:[4]},8,["disabled"]),a.createVNode(ze,{onClick:J,disabled:!d.value,id:"themeBorderButton"},{default:a.withCtx(()=>G[5]||(G[5]=[a.createTextVNode("对焦")])),_:1,__:[5]},8,["disabled"]),a.createVNode(ze,{onClick:D,disabled:!d.value,id:"themeButton"},{default:a.withCtx(()=>G[6]||(G[6]=[a.createTextVNode("拍照")])),_:1,__:[6]},8,["disabled"]),G[9]||(G[9]=a.createElementVNode("div",{style:{flex:"1"}},null,-1)),a.createVNode(ze,{onClick:$,disabled:b.value.length===0,id:"themeButton"},{default:a.withCtx(()=>G[7]||(G[7]=[a.createTextVNode("确认")])),_:1,__:[7]},8,["disabled"]),a.createVNode(ze,{onClick:F,id:"themeBorderButton"},{default:a.withCtx(()=>G[8]||(G[8]=[a.createTextVNode("取消")])),_:1,__:[8]})])]),_:1},8,["visible"]),v.value?(a.openBlock(),a.createBlock(pl.ssFilePreview,{key:0,fileDataList:y.value,onDestroy:g},null,8,["fileDataList"])):a.createCommentVNode("",!0)],64)}}}),xf=ql._export_sfc(kf,[["__scopeId","data-v-24a2050a"]]);function lc(l){return ll.axios.post("http://222.92.178.198:8000/api/v1/excel-chat",l)}function _f(l){return ll.axios.get(l,{responseType:"blob"})}const os=I.useMenuState(I.pinia),wf=async l=>{var d,b,h,v,y,c;let r=l==null?void 0:l.导入文件,n=l==null?void 0:l.函数参数,t=(d=r==null?void 0:r[0])==null?void 0:d.url,s="";if(!(t!=null&&t.includes("http"))||!(t!=null&&t.includes("https"))){os.setContentLoading(!0);const w=await I.platformDownloadFile({url:t});let S=w==null?void 0:w.data;const A=new FormData;A.append("file",S,((b=r==null?void 0:r[0])==null?void 0:b.name)+"."+((h=t==null?void 0:t.split("."))==null?void 0:h[1])),A.append("query",n);let _=await lc(A);_=(c=(y=(v=_==null?void 0:_.data)==null?void 0:v.data)==null?void 0:y.response)==null?void 0:c.replace("generateResult",l==null?void 0:l.函数名称),s=_,os.setContentLoading(!1)}return s},xi=I.defineStore("formComp",{state:()=>({objUrl:[],blobUrls:[]}),actions:{setObjUrl(l){this.objUrl=l},setBlobUrls(l){this.blobUrls=l}}}),Co={检校类型:["检校类型","证书类别"],证书编号:["证书编号"],设备名称:["设备名称","器具名称","样品名称","仪器名称","被校设备"],型号规格:["型号规格","型号/规格","型号"],出厂编号:["出厂编号","器具/管理编号","器具编号","管理编号","仪器编号"],制造厂:["制造厂","制造单位","制造厂商","制造商"],检校结果:["检校结果","检定结论","校准结果","校准/检定结果","检定结果"],依据文件:["依据文件","检定依据","检定所依据的技术文件","所依据/参照技术文件(代号/名称)","检定所依据的技术文件(编号/名称)","检定方法说明"],检校日期:["检校日期","校准日期","校验日期","检定日期","发证日期","发布日期","接收日期","签证日期"],有效日期:["有效日期","有效期","有效期至"]},is={columnName:"OCR图片",acceptTypes:"image/*",maxSize:10,maxFiles:20,apiUrl:"http://139.196.154.85:20015/api/public/paddleOCR"};class Cf{constructor(r){Rr(this,"config");this.config={...is,...r}}updateConfig(r){this.config={...this.config,...r}}getConfig(){return{...this.config}}validateFileSize(r){const n=this.config.maxSize*1024*1024;return r.size<=n}validateFileType(r){return r.type.startsWith("image/")||r.type==="application/pdf"}getAuthorizationToken(){const r=ll.Local.get(ll.accessTokenKey);return r?`Bearer ${r}`:""}buildOCRRequest(r,n){return{title:n,form:{OCR图片文件:r}}}async recognize(r,n){const t=this.getAuthorizationToken(),s=this.buildOCRRequest(r,n),d=this.config.apiUrl||is.apiUrl;return(await ll.axios.post(d,s,{headers:{"Content-Type":"application/json",Authorization:t}})).data}getFieldAliases(r){return Co[r]?Co[r]:[r]}extractTableHeaders(r){const n=[],t=new Set,s=b=>{const h=b==null?void 0:b.label;return!(!h||h==="操作"||h===this.config.columnName||(b==null?void 0:b.type)==="operate"||(b==null?void 0:b.prop)==="operate")},d=b=>{(b||[]).forEach(h=>{if(!h)return;const v=(h==null?void 0:h.children)||(h==null?void 0:h.child)||(h==null?void 0:h.columns);if(Array.isArray(v)&&v.length>0){d(v);return}if(s(h)){const y=h.label;if(!t.has(y)){t.add(y);const c=this.getFieldAliases(y);n.push(c)}}})};return d(r||[]),n}}function rc(l){return new Cf(l)}rc();const fi=async(l,r)=>{var b,h,v,y,c,w,S,A,_,H,k,T,J,D,$,z,x;let n=(h=(b=I.cloneDeep(l))==null?void 0:b.optionUrl)==null?void 0:h.menuSelect,t=[];n==null||n.forEach(g=>{});let s="",d=await na.menuToParent(n);if(d==null||d.forEach(g=>{var F,q,G,be;(g==null?void 0:g.name)===(((be=(G=(q=(F=I.cloneDeep(l))==null?void 0:F.optionUrl)==null?void 0:q.groupSelect)==null?void 0:G[0])==null?void 0:be.replaceAll("'",""))??"")&&(s=g==null?void 0:g.id)}),r){s=r;const g=await yr.getInsofDataApi({id:s}),F=(w=(c=(y=(v=g==null?void 0:g.data)==null?void 0:v.result)==null?void 0:y[0])==null?void 0:c.key)==null?void 0:w.pageKey;d=await na.getItemData(F,sessionStorage.getItem("systemKey"),"")}if(s!==""){let g;r?g=(S=d==null?void 0:d.find(G=>(G==null?void 0:G.id)===r))==null?void 0:S.compData:g=(A=d==null?void 0:d.find(G=>{var be,ze,De,ne;return(G==null?void 0:G.name)===(((ze=(be=l==null?void 0:l.groupSelect)==null?void 0:be.split(":"))==null?void 0:ze[0])||((ne=(De=l==null?void 0:l.optionUrl)==null?void 0:De.groupSelect)==null?void 0:ne[0]))}))==null?void 0:A.compData;let F=(H=(_=g==null?void 0:g.find(G=>(G==null?void 0:G.key)==="header"))==null?void 0:_.contents)==null?void 0:H.map(G=>G==null?void 0:G.label);(T=(k=g==null?void 0:g.find(G=>(G==null?void 0:G.key)==="header"))==null?void 0:k.contents)!=null&&T.every(G=>Array.isArray(G))&&(F=($=na.getColumnChild((D=(J=g==null?void 0:g.find(G=>(G==null?void 0:G.key)==="header"))==null?void 0:J.contents)==null?void 0:D[0]))==null?void 0:$.map(G=>G==null?void 0:G.prop));let q=(x=(z=g==null?void 0:g.find(G=>(G==null?void 0:G.key)==="tableContents"))==null?void 0:z.contents)==null?void 0:x.map(G=>{if(Array.isArray(G))G=G==null?void 0:G.filter(be=>!(be!=null&&be.id));else{let be={};for(let ze in G)ze!=="id"&&(be[ze]=G==null?void 0:G[ze]);G=be}return G});q==null||q.forEach(G=>{Array.isArray(G)?t.push(na.getValueToObjectValue(G,F)):t.push(G)})}return t},Ef=I.useMenuState(I.pinia),{activeMenuPath:T6}=I.storeToRefs(Ef),Sf=I.useUnit(I.pinia),{chooseTitle:A6}=I.storeToRefs(Sf),Df="col-operate",_i=l=>`${Df}-${l}`,Bf=(l,r)=>{const n=new Map;l.forEach(s=>{const{prop:d}=s;n.set(d,s)});const t=s=>{Array.isArray(s)&&s.forEach(d=>{const{prop:b}=d||{},h=n.get(b);Nf(h,d),Array.isArray(d==null?void 0:d.children)&&d.children.length>0&&t(d.children)})};return t(r),r},Nf=(l,r)=>(l&&(r.sortable=l==null?void 0:l.sortable,r.filterable=l==null?void 0:l.filterable,r.showSummary=l==null?void 0:l.showSummary,r.operable=l==null?void 0:l.operable,r.fixed=l==null?void 0:l.fixed),r),Tf=(l,r)=>{const{sortable:n=!1,filterable:t=!1,showSummary:s=!1,operable:d=!1,fixed:b=!1}=r||{};return{prop:l,sortable:n,filterable:t,showSummary:s,operable:d,fixed:b}},Af=async l=>{var d,b;if(!l)return;const r=_i(l),n=await yr.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:r}}),t=(d=n==null?void 0:n.data)==null?void 0:d.code,s=(b=n==null?void 0:n.data)==null?void 0:b.result;if(t==200)return s==null?void 0:s[0]},zf=async l=>{var d,b,h,v;if(!l)return;const r=_i(l),n=await yr.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:r}}),t=(d=n==null?void 0:n.data)==null?void 0:d.code,s=(b=n==null?void 0:n.data)==null?void 0:b.result;return t==200?(v=(h=s==null?void 0:s[0])==null?void 0:h.value)==null?void 0:v.columns:[]},Mf=async(l,r)=>{if(!l||!r)return;const n=_i(l);return await yr.createInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:n},value:{columns:r}})},Of=async(l,r)=>!l||!r?void 0:await yr.updateInsofDataApi({id:l,value:{columns:r}}),ss=async(l,r)=>{const n=sessionStorage.getItem("systemKey");if(!l||!r||!n)return;const t=await Af(l);return t?await Of(t==null?void 0:t.id,r):await Mf(l,r)};var mo={exports:{}},If=mo.exports,cs;function Lf(){return cs||(cs=1,function(l,r){(function(n,t){t()})(If,function(){function n(y,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(y.type)?new Blob(["\uFEFF",y],{type:y.type}):y}function t(y,c,w){var S=new XMLHttpRequest;S.open("GET",y),S.responseType="blob",S.onload=function(){v(S.response,c,w)},S.onerror=function(){console.error("could not download file")},S.send()}function s(y){var c=new XMLHttpRequest;c.open("HEAD",y,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function d(y){try{y.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),y.dispatchEvent(c)}}var b=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof I.commonjsGlobal=="object"&&I.commonjsGlobal.global===I.commonjsGlobal?I.commonjsGlobal:void 0,h=b.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),v=b.saveAs||(typeof window!="object"||window!==b?function(){}:"download"in HTMLAnchorElement.prototype&&!h?function(y,c,w){var S=b.URL||b.webkitURL,A=document.createElement("a");c=c||y.name||"download",A.download=c,A.rel="noopener",typeof y=="string"?(A.href=y,A.origin===location.origin?d(A):s(A.href)?t(y,c,w):d(A,A.target="_blank")):(A.href=S.createObjectURL(y),setTimeout(function(){S.revokeObjectURL(A.href)},4e4),setTimeout(function(){d(A)},0))}:"msSaveOrOpenBlob"in navigator?function(y,c,w){if(c=c||y.name||"download",typeof y!="string")navigator.msSaveOrOpenBlob(n(y,w),c);else if(s(y))t(y,c,w);else{var S=document.createElement("a");S.href=y,S.target="_blank",setTimeout(function(){d(S)})}}:function(y,c,w,S){if(S=S||open("","_blank"),S&&(S.document.title=S.document.body.innerText="downloading..."),typeof y=="string")return t(y,c,w);var A=y.type==="application/octet-stream",_=/constructor/i.test(b.HTMLElement)||b.safari,H=/CriOS\/[\d]+/.test(navigator.userAgent);if((H||A&&_||h)&&typeof FileReader<"u"){var k=new FileReader;k.onloadend=function(){var D=k.result;D=H?D:D.replace(/^data:[^;]*;/,"data:attachment/file;"),S?S.location.href=D:location=D,S=null},k.readAsDataURL(y)}else{var T=b.URL||b.webkitURL,J=T.createObjectURL(y);S?S.location=J:location.href=J,S=null,setTimeout(function(){T.revokeObjectURL(J)},4e4)}});b.saveAs=v.saveAs=v,l.exports=v})}(mo)),mo.exports}Lf();const rt=I.defineStore("tabComp",{state:()=>({itemData:[],originalData:[],extraContents:[],nodeDev:"",isEdit:"view",isRefreshCurStructure:!1,isSubmitCurStructure:!1,curStructureCompIds:[],itemGridData:[],itemExtendData:void 0,payloadTypes:"",lockingPage:"",systemPath:void 0,pageMapState:void 0,cacheUpdatingData:void 0,freshContent:!1,tableLoading:!1,routeToChildPath:"",tableViewContents:[],activeItemIndex:0,fixMenuStatus:!1,refreshTable:!1,selectTab:""}),actions:{setItemData(l){this.itemData=l},setCurStructureCompIds(l){this.curStructureCompIds=l},setRefreshCurStructure(l){this.isRefreshCurStructure=l},setOriginalData(l){this.originalData=l},setExtraContents(l){this.extraContents=l},setNodeDev(l){this.nodeDev=l},setIsEdit(l){this.isEdit=l},setSelectTab(l){this.selectTab=l}}}),Vf=I.useLoginState(I.pinia),{loginUserInfo:ri}=I.storeToRefs(Vf),$f=async l=>{var t,s,d;let r=await I.getAllTables({platId:parseInt((t=ri==null?void 0:ri.value)==null?void 0:t.plat_id),tableNames:[l]});return r=(d=(s=r==null?void 0:r.data)==null?void 0:s.result)==null?void 0:d[0],await Xs(r,!1),[{comp:"Table",isShow:!0,name:"日志管理",compData:[{key:"extraButton",contents:[]},{key:"rowButton",contents:[]},{key:"header",contents:[{label:"请求类型",prop:"request_method",formType:"Input",align:"center"},{label:"请求路径",prop:"request_url",formType:"Input",align:"center"},{label:"请求参数",prop:"request_param",formType:"Upload",align:"center"},{label:"返回结果",prop:"request_result",formType:"Upload",align:"center"},{label:"返回信息",prop:"request_message",formType:"Input",align:"center"},{label:"请求表格",prop:"request_table",formType:"Input",align:"center"},{label:"请求种类",prop:"request_type",formType:"Input",align:"center"},{label:"请求创建时间",prop:"create_time",formType:"Date",align:"center"},{label:"请求创建人",prop:"create_user_id",formType:"Input",align:"center"}]},{key:"tableContents",contents:r}]}]},Rf=I.useLoginState(),{loginUserInfo:kl}=I.storeToRefs(Rf);let uo="$R";const _r=I.useModelComp(I.pinia),nc=a.ref(!1),{itemData:Pf,itemGridData:Qn,curStructureCompIds:us,isSubmitCurStructure:Ff,routeToChildPath:jf,pageMapState:hi,itemExtendData:po,refreshTable:ds}=I.storeToRefs(_r),Ao=rt(I.pinia),Sr=I.useMenuState(I.pinia),Xl=a.shallowRef([]),{asideMenus:Hf,activeTopMenuPath:Uf,activeMenuPath:Sl,platform:z6,buttonTriggerType:qf,currentMenuPath:Gr}=I.storeToRefs(Sr),nn=I.useUnit(I.pinia),{selectTitle:Ln,chooseTitle:vi}=I.storeToRefs(nn);a.ref();const Et=a.ref(!0),$n=a.ref(0),mi=a.ref([]);a.ref(!1);const wi=a.ref(!1),Ft=a.ref(),tc=a.ref(),oc=a.ref(),Kf=()=>{_r.setItemGridData([]),_r.setIsEdit("edit"),_r.setSubmitCurStructure(Sl.value!=="/平台管理/菜单管理")},Wf=()=>{_r.setIsEdit("view"),_r.setRefreshCurStructure(!0)},Yf=async l=>{var s;let r=Ln.value,n=r==null?void 0:r.findIndex(d=>(d==null?void 0:d.value)===(l==null?void 0:l.value)),t=r==null?void 0:r.filter((d,b)=>b<=n);nn.setSelectTitle(pl.safeClone(t)),t=(s=t==null?void 0:t.map(d=>d==null?void 0:d.value))==null?void 0:s.join("/"),Sr.setActiveMenuPath(null),Sr.setActiveMenuPath(t)},ni=async(l,r,n,t="contentConfig")=>{var s;try{if(!Array.isArray(l))return;let d,b;r==="create"?(d={dataList:l==null?void 0:l.map(v=>{var y;return{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:n!=null&&n.startsWith("/")?n==null?void 0:n.substring(1):n,type:"structure",structureBelong:t,parentTable:"",version:1},value:{pageData:{...v,compData:(y=v==null?void 0:v.compData)==null?void 0:y.filter(c=>(c==null?void 0:c.key)!=="tableContents")}}}})},b=yr.batchAddInsofDataApi):r==="update"?(d={dataList:l==null?void 0:l.map(v=>{var y;return{id:v==null?void 0:v.id,value:{pageData:{...v,compData:(y=v==null?void 0:v.compData)==null?void 0:y.filter(c=>(c==null?void 0:c.key)!=="tableContents")}}}})},b=yr.batchUpdateInsofDataApi):r==="delete"&&(d={ids:l},b=yr.batchDeleteInsofDataApi);const h=await b(d);if(((s=h==null?void 0:h.data)==null?void 0:s.code)===200)return h.data.result;throw ll.ElMessage.error("保存响应失败"),new Error("保存响应失败")}catch{ll.ElMessage.error("保存响应失败")}},ps=async(l,r,n,t)=>{var s,d,b,h,v,y,c,w,S,A,_;try{const H=(d=(s=l==null?void 0:l.results)==null?void 0:s.filter(z=>!(z!=null&&z.id)||typeof(z==null?void 0:z.id)=="string"))==null?void 0:d.map(z=>({key:{pageKey:l==null?void 0:l.pageKey,systemKey:sessionStorage.getItem("systemKey"),type:r,relatedInfo:n},value:{tableData:z}})),k=(h=(b=l==null?void 0:l.results)==null?void 0:b.filter(z=>(z==null?void 0:z.id)&&typeof(z==null?void 0:z.id)=="number"))==null?void 0:h.map(z=>({id:z==null?void 0:z.id,value:{tableData:z}})),T=JSON.parse(JSON.stringify(l)),J=(v=T==null?void 0:T.results)==null?void 0:v.map(z=>z.id);let D;n?D=(w=(c=(y=hi.value)==null?void 0:y[Sl.value])==null?void 0:c.filter(z=>{var x,g,F;return((x=z==null?void 0:z.key)==null?void 0:x.type)===r&&((F=(g=z==null?void 0:z.key)==null?void 0:g.relatedInfo)==null?void 0:F.target)===t}))==null?void 0:w.map(z=>z==null?void 0:z.id):D=(_=(A=(S=hi.value)==null?void 0:S[Sl.value])==null?void 0:A.filter(z=>{var x;return((x=z==null?void 0:z.key)==null?void 0:x.type)===r}))==null?void 0:_.map(z=>z==null?void 0:z.id);const $=D==null?void 0:D.filter(z=>!(J!=null&&J.includes(z))&&typeof z=="number");(H==null?void 0:H.length)>0&&await yr.batchAddInsofDataApi({dataList:H}),(k==null?void 0:k.length)>0&&await yr.batchUpdateInsofDataApi({dataList:k}),($==null?void 0:$.length)>0&&await yr.batchDeleteInsofDataApi({ids:$})}catch(H){throw new Error(H)}},Gf=async l=>{var y,c,w,S,A,_,H,k,T,J;Sr.setContentLoading(!0);const r=JSON.parse(JSON.stringify(Pf.value));if(!Ff.value)return Sr.setCacheStructures({key:qf.value,data:r}),ll.ElMessage.success("已暂存");const n=r==null?void 0:r.map(D=>D.id),t=n.filter(D=>{var $;return!(($=us.value)!=null&&$.includes(D))}),s=(y=us.value)==null?void 0:y.filter(D=>!n.includes(D)),d=[...t,...s].filter(D=>typeof D!==null&&typeof D<"u"),b=r==null?void 0:r.filter(D=>!D.id),h=r==null?void 0:r.filter(D=>D.id);let v=[];if(d&&(d==null?void 0:d.length)>0&&v.push(ni(d,"delete",l)),b&&(b==null?void 0:b.length)>0&&v.push(ni(b,"create",l)),h&&(h==null?void 0:h.length)>0&&v.push(ni(h,"update",l)),Qn.value&&((c=Qn.value)!=null&&c.isDelete&&((S=(w=Qn.value)==null?void 0:w.results)==null?void 0:S.length)>0&&((_=(A=Qn.value)==null?void 0:A.results)!=null&&_.every(D=>typeof D=="number"))?await yr.batchDeleteInsofDataApi({ids:(H=Qn.value)==null?void 0:H.results}):(console.log("itemGridData.value",Qn.value),v.push(await ps(Qn.value,"gridLayout")))),po.value)for(const D in po.value)v.push(await ps((k=po.value)==null?void 0:k[D],"extend",{target:D,compId:(J=(T=po.value)==null?void 0:T[D])==null?void 0:J.compId},D));await Promise.all(v).then(()=>{ll.ElMessage.success("保存成功"),_r.setRefreshCurStructure(!0)}).catch(D=>{ll.ElMessage.success(D)}),Sr.setContentLoading(!1)},jt=l=>St(l),Jf=a.computed(()=>{var l;return(l=Xl.value)==null?void 0:l.filter(r=>(r==null?void 0:r.affix)&&(r==null?void 0:r.affix)!=="default")}),ic=a.computed(()=>{var l;return(l=Xl.value)==null?void 0:l.filter(r=>!(r!=null&&r.affix)||(r==null?void 0:r.affix)==="default")}),sc=a.ref(0),cc=a.ref(null),Xf="ocr_committed_temp_ids_v1",Zf=(l,r)=>`${Xf}:${String(l??"")}:${String(r??"")}`,Qf=(l,r,n)=>{try{const t=Zf(l,r),s=sessionStorage.getItem(t),d=s?JSON.parse(s):[],b=Array.isArray(d)?d:[],h=Array.from(new Set([...b,...n||[]].map(v=>String(v)))).slice(-200);sessionStorage.setItem(t,JSON.stringify(h))}catch{}},Eo=async(l,r="data",n)=>{var s,d,b,h,v,y,c,w,S,A,_,H,k,T,J,D,$,z,x,g,F,q,G,be,ze,De,ne,ke,X,pe,Ke,Sa,te,B,le,ye,se,Ne,ia,xa,Ha,ee,ea,Pe,ga,He,Ae,Re,Ge,Ka,Ia,R,P,Y,oe,ie,fa,ra,Ie,we,Ca,fe,Je,Ze,Fe,ka,$e,pa,re,Se,K,je,Be,za,Ea,Ye,ua,_e,Z,ya,We,La,ml,Aa,el,Ja,Pa;let t=((b=(d=(s=Ln.value)==null?void 0:s.filter(Te=>(Te==null?void 0:Te.condition)==="child"))==null?void 0:d[0])==null?void 0:b.value)??"";if((l==null?void 0:l.buttonName)==="新增"){let Te=(h=l==null?void 0:l.fixContent)==null?void 0:h.map(ue=>{let Fa={};for(let ja in ue)Array.isArray(ue==null?void 0:ue[ja])?Fa[ja]=JSON.stringify(ue==null?void 0:ue[ja]):Fa[ja]=ue==null?void 0:ue[ja];return Fa}),il=await I.quoteApi({platId:parseInt((v=kl==null?void 0:kl.value)==null?void 0:v.plat_id),type:"fatherSyncs",related:[{menus:t!==""?Sl.value+"/"+t:Sl.value,groups:l==null?void 0:l.name}]});il=(y=il==null?void 0:il.data)==null?void 0:y.result,il=il==null?void 0:il.filter(ue=>{var Fa,ja;return!((ue==null?void 0:ue.fatherPath)!==""&&((ja=(Fa=ue==null?void 0:ue.quote)==null?void 0:Fa[0])==null?void 0:ja.menus)===(Sl==null?void 0:Sl.value))});let ma=il==null?void 0:il.map(ue=>{var Ba,Ua;let Fa={},ja=Te==null?void 0:Te[0],Ee;return Array.isArray((Ba=ue==null?void 0:ue.struct)==null?void 0:Ba[0])?Ee=na.getColumnChild((Ua=ue==null?void 0:ue.struct)==null?void 0:Ua[0]):Ee=ue==null?void 0:ue.struct,Ee==null||Ee.forEach(ve=>{var fl,Xa;Fa[ve.prop]=((fl=ve==null?void 0:ve.words)!=null&&fl[0]?ja==null?void 0:ja[(Xa=ve==null?void 0:ve.words)==null?void 0:Xa[0]]:ja==null?void 0:ja[ve==null?void 0:ve.prop])??""}),Fa.id="1",Fa.relatedId=`[${Fa.id}]`,delete Fa.sort,{tableName:"content_"+(ue==null?void 0:ue.id),tableContents:[Fa]}}),wa=[{tableName:(c=l==null?void 0:l.relatedContents)==null?void 0:c.find(ue=>ue==null?void 0:ue.includes("content")),tableContents:Te}];wa=[...wa,...ma];let _a=await I.quoteApi({platId:parseInt((w=kl==null?void 0:kl.value)==null?void 0:w.plat_id),type:"sonSyncs",related:[{menus:t!==""?Sl.value+"/"+t:Sl.value,groups:l==null?void 0:l.name}]});_a=(A=(S=_a==null?void 0:_a.data)==null?void 0:S.result)==null?void 0:A.filter(ue=>!(wa!=null&&wa.find(Fa=>(Fa==null?void 0:Fa.tableName)==="content_"+(ue==null?void 0:ue.id)))),_a=_a==null?void 0:_a.filter(ue=>{var Fa,ja;return!((ue==null?void 0:ue.fatherPath)!==""&&((ja=(Fa=ue==null?void 0:ue.quote)==null?void 0:Fa[0])==null?void 0:ja.menus)===(Sl==null?void 0:Sl.value))});let oa=_a==null?void 0:_a.map(ue=>{var Ba,Ua,ve,fl,Xa,xl,qa;let Fa={},ja=Te==null?void 0:Te[0],Ee;return Array.isArray((Ba=ue==null?void 0:ue.struct)==null?void 0:Ba[0])?Ee=na.getColumnChild((Ua=ue==null?void 0:ue.struct)==null?void 0:Ua[0]):Ee=ue==null?void 0:ue.struct,((fl=(ve=Ee==null?void 0:Ee[0])==null?void 0:ve.words)!=null&&fl[0]?ja!=null&&ja[(xl=(Xa=Ee==null?void 0:Ee[0])==null?void 0:Xa.words)==null?void 0:xl[0]]:ja!=null&&ja[(qa=Ee==null?void 0:Ee[0])==null?void 0:qa.prop])?(Ee==null||Ee.forEach(ol=>{var al,cl;Fa[ol.prop]=((al=ol==null?void 0:ol.words)!=null&&al[0]?ja==null?void 0:ja[(cl=ol==null?void 0:ol.words)==null?void 0:cl[0]]:ja==null?void 0:ja[ol==null?void 0:ol.prop])??""}),Fa.id="1",Fa.relatedId=`[${Fa.id}]`,delete Fa.sort):Fa=void 0,{tableName:"content_"+(ue==null?void 0:ue.id),tableContents:[Fa]}});oa=oa==null?void 0:oa.filter(ue=>{var Fa;return!((Fa=ue==null?void 0:ue.tableContents)!=null&&Fa.every(ja=>ja===void 0))}),wa=[...wa,...oa],await I.pageBatchAddApi({platId:parseInt((_=kl==null?void 0:kl.value)==null?void 0:_.plat_id),changeContents:wa});let va=[];wa==null||wa.forEach(ue=>{var Fa;(Fa=ue==null?void 0:ue.tableContents)==null||Fa.forEach(ja=>{va.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(ja),request_result:"{}",is_delete:!1,request_table:ue==null?void 0:ue.tableName,request_type:"add"})})}),await I.pageBatchAddApi({platId:parseInt((H=kl==null?void 0:kl.value)==null?void 0:H.plat_id),changeContents:[{tableName:"log",tableContents:va}]})}if((l==null?void 0:l.buttonName)==="OCR批量新增"){const Te=((l==null?void 0:l.ocrRows)||[]).map(_a=>_a==null?void 0:_a.id).filter(_a=>_a!=null),il=((l==null?void 0:l.ocrRows)||[]).map(_a=>{const oa={..._a};return delete oa._isOCRRow,delete oa._ocrTableId,Object.keys(oa).forEach(va=>{/(^|\.)证书附件$/.test(va)&&Array.isArray(oa[va])&&(oa[va]=JSON.stringify(oa[va].map(ue=>({url:(ue==null?void 0:ue.url)||"",name:(ue==null?void 0:ue.name)||(ue==null?void 0:ue.fileName)||"",fileName:(ue==null?void 0:ue.fileName)||(ue==null?void 0:ue.name)||""})).filter(ue=>ue.url||ue.name)))}),oa});let ma=[{tableName:(k=l==null?void 0:l.relatedContents)==null?void 0:k.find(_a=>_a==null?void 0:_a.includes("content")),tableContents:il}];await I.pageBatchAddApi({platId:parseInt((T=kl==null?void 0:kl.value)==null?void 0:T.plat_id),changeContents:ma});let wa=[];ma==null||ma.forEach(_a=>{var oa;(oa=_a==null?void 0:_a.tableContents)==null||oa.forEach(va=>{wa.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(va),request_result:"{}",is_delete:!1,request_table:_a==null?void 0:_a.tableName,request_type:"ocrBatchAdd"})})}),await I.pageBatchAddApi({platId:parseInt((J=kl==null?void 0:kl.value)==null?void 0:J.plat_id),changeContents:[{tableName:"log",tableContents:wa}]}),Qf(l==null?void 0:l.parentTableId,l==null?void 0:l.index,Te)}if((l==null?void 0:l.buttonName)==="编辑"){const il=((l==null?void 0:l.fixContent)||(l==null?void 0:l.singleContent)||[]||[]).map(Ee=>{const Ba={...Ee};return delete Ba._isOCRRow,delete Ba._ocrTableId,delete Ba._isTemp,delete Ba.tableEditType,delete Ba.index,Ba});let ma=il==null?void 0:il.map(Ee=>{let Ba={};for(let Ua in Ee)Array.isArray(Ee==null?void 0:Ee[Ua])?Ba[Ua]=JSON.stringify(Ee==null?void 0:Ee[Ua]):Ba[Ua]=Ee==null?void 0:Ee[Ua];return Ba}),wa=await I.quoteApi({platId:parseInt((D=kl==null?void 0:kl.value)==null?void 0:D.plat_id),type:"fatherSyncs",related:[{menus:t!==""?Sl.value+"/"+t:Sl.value,groups:l==null?void 0:l.name}]});wa=($=wa==null?void 0:wa.data)==null?void 0:$.result,wa=wa==null?void 0:wa.filter(Ee=>{var Ba,Ua;return!((Ee==null?void 0:Ee.fatherPath)!==""&&((Ua=(Ba=Ee==null?void 0:Ee.quote)==null?void 0:Ba[0])==null?void 0:Ua.menus)===(Sl==null?void 0:Sl.value))});let _a=(z=ma==null?void 0:ma[0])==null?void 0:z.id,oa=[{tableName:(x=l==null?void 0:l.relatedContents)==null?void 0:x.find(Ee=>Ee==null?void 0:Ee.includes("content")),tableContents:ma}],va=(g=wa==null?void 0:wa.map(Ee=>{var Ua,ve,fl,Xa,xl;let Ba=(Ua=Ee==null?void 0:Ee.contents)==null?void 0:Ua.filter(qa=>{var ol,al;return JSON.stringify(qa==null?void 0:qa.relatedId)!=="{}"&&(qa==null?void 0:qa.relatedId)!==""&&(qa!=null&&qa.relatedId)?(ol=qa==null?void 0:qa.relatedId)==null?void 0:ol.includes(parseInt(_a)):(qa==null?void 0:qa.sort)===((al=ma==null?void 0:ma[0])==null?void 0:al.sort)});if((Ba==null?void 0:Ba.length)>0){let qa=ma==null?void 0:ma[0];qa={...qa,id:(ve=Ba==null?void 0:Ba[0])==null?void 0:ve.id};let ol={},al=qa,cl;return Array.isArray((fl=Ee==null?void 0:Ee.struct)==null?void 0:fl[0])?cl=na.getColumnChild((Xa=Ee==null?void 0:Ee.struct)==null?void 0:Xa[0]):cl=Ee==null?void 0:Ee.struct,cl==null||cl.forEach(ul=>{var Wl,Kl;ol[ul.prop]=((Wl=ul==null?void 0:ul.words)!=null&&Wl[0]?al==null?void 0:al[(Kl=ul==null?void 0:ul.words)==null?void 0:Kl[0]]:al==null?void 0:al[ul==null?void 0:ul.prop])??""}),ol.id=(xl=Ba==null?void 0:Ba[0])==null?void 0:xl.id,delete ol.sort,delete ol.relatedId,{tableName:"content_"+(Ee==null?void 0:Ee.id),tableContents:[ol]}}else return}))==null?void 0:g.filter(Ee=>Ee);oa=[...oa,...va];let ue=await I.quoteApi({platId:parseInt((F=kl==null?void 0:kl.value)==null?void 0:F.plat_id),type:"sonSyncs",related:[{menus:t!==""?Sl.value+"/"+t:Sl.value,groups:l==null?void 0:l.name}]});ue=(G=(q=ue==null?void 0:ue.data)==null?void 0:q.result)==null?void 0:G.filter(Ee=>!(oa!=null&&oa.find(Ba=>(Ba==null?void 0:Ba.tableName)==="content_"+(Ee==null?void 0:Ee.id)))),ue=ue==null?void 0:ue.filter(Ee=>{var Ba,Ua;return!((Ee==null?void 0:Ee.fatherPath)!==""&&((Ua=(Ba=Ee==null?void 0:Ee.quote)==null?void 0:Ba[0])==null?void 0:Ua.menus)===(Sl==null?void 0:Sl.value))});let Fa=(be=ue==null?void 0:ue.map(Ee=>{var Ua,ve,fl,Xa,xl;let Ba=(Ua=Ee==null?void 0:Ee.contents)==null?void 0:Ua.filter(qa=>{var ol,al;return JSON.stringify(qa==null?void 0:qa.relatedId)!=="{}"&&(qa==null?void 0:qa.relatedId)!==""&&(qa!=null&&qa.relatedId)?(ol=qa==null?void 0:qa.relatedId)==null?void 0:ol.includes(parseInt(_a)):(qa==null?void 0:qa.sort)===((al=ma==null?void 0:ma[0])==null?void 0:al.sort)});if((Ba==null?void 0:Ba.length)>0){let qa=ma==null?void 0:ma[0];qa={...qa,id:(ve=Ba==null?void 0:Ba[0])==null?void 0:ve.id};let ol={},al=qa,cl;return Array.isArray((fl=Ee==null?void 0:Ee.struct)==null?void 0:fl[0])?cl=na.getColumnChild((Xa=Ee==null?void 0:Ee.struct)==null?void 0:Xa[0]):cl=Ee==null?void 0:Ee.struct,cl==null||cl.forEach(ul=>{var Wl,Kl;ol[ul.prop]=((Wl=ul==null?void 0:ul.words)!=null&&Wl[0]?al==null?void 0:al[(Kl=ul==null?void 0:ul.words)==null?void 0:Kl[0]]:al==null?void 0:al[ul==null?void 0:ul.prop])??""}),ol.id=(xl=Ba==null?void 0:Ba[0])==null?void 0:xl.id,delete ol.sort,delete ol.relatedId,{tableName:"content_"+(Ee==null?void 0:Ee.id),tableContents:[ol]}}else return}))==null?void 0:be.filter(Ee=>Ee);oa=[...oa,...Fa],await I.pageBatchUpdateApi({platId:parseInt((ze=kl==null?void 0:kl.value)==null?void 0:ze.plat_id),changeContents:oa});let ja=[];oa==null||oa.forEach(Ee=>{var Ba;(Ba=Ee==null?void 0:Ee.tableContents)==null||Ba.forEach(Ua=>{ja.push({id:"1",request_method:"Post",request_url:"/platform/page/update",request_param:JSON.stringify(Ua),request_result:"{}",is_delete:!1,request_table:Ee==null?void 0:Ee.tableName,request_type:"update"})})}),await I.pageBatchAddApi({platId:parseInt((De=kl==null?void 0:kl.value)==null?void 0:De.plat_id),changeContents:[{tableName:"log",tableContents:ja}]})}if((l==null?void 0:l.buttonName)==="删除"){let Te=[{tableName:(ne=l==null?void 0:l.relatedContents)==null?void 0:ne.find(ue=>ue==null?void 0:ue.includes("content")),tableContents:l==null?void 0:l.fixContent}],il=await I.quoteApi({platId:parseInt((ke=kl==null?void 0:kl.value)==null?void 0:ke.plat_id),type:"fatherSyncs",related:[{menus:t!==""?Sl.value+"/"+t:Sl.value,groups:l==null?void 0:l.name}]});il=(X=il==null?void 0:il.data)==null?void 0:X.result,il=il==null?void 0:il.filter(ue=>{var Fa,ja;return!((ue==null?void 0:ue.fatherPath)!==""&&((ja=(Fa=ue==null?void 0:ue.quote)==null?void 0:Fa[0])==null?void 0:ja.menus)===(Sl==null?void 0:Sl.value))});let ma=(Ke=(pe=l==null?void 0:l.fixContent)==null?void 0:pe[0])==null?void 0:Ke.id,wa=(Sa=il==null?void 0:il.map(ue=>{var ja,Ee,Ba,Ua,ve,fl;let Fa=(ja=ue==null?void 0:ue.contents)==null?void 0:ja.filter(Xa=>{var xl,qa,ol;return JSON.stringify(Xa==null?void 0:Xa.relatedId)!=="{}"&&(Xa==null?void 0:Xa.relatedId)!==""&&(Xa!=null&&Xa.relatedId)?(xl=Xa==null?void 0:Xa.relatedId)==null?void 0:xl.includes(parseInt(ma)):(Xa==null?void 0:Xa.sort)===((ol=(qa=l==null?void 0:l.fixContent)==null?void 0:qa[0])==null?void 0:ol.sort)});if((Fa==null?void 0:Fa.length)>0){let Xa=(Ee=l==null?void 0:l.fixContent)==null?void 0:Ee[0];Xa={...Xa,id:(Ba=Fa==null?void 0:Fa[0])==null?void 0:Ba.id};let xl={},qa=Xa,ol;return Array.isArray((Ua=ue==null?void 0:ue.struct)==null?void 0:Ua[0])?ol=na.getColumnChild((ve=ue==null?void 0:ue.struct)==null?void 0:ve[0]):ol=ue==null?void 0:ue.struct,ol==null||ol.forEach(al=>{var cl,ul;xl[al.prop]=((cl=al==null?void 0:al.words)!=null&&cl[0]?qa==null?void 0:qa[(ul=al==null?void 0:al.words)==null?void 0:ul[0]]:qa==null?void 0:qa[al==null?void 0:al.prop])??""}),xl.id=(fl=Fa==null?void 0:Fa[0])==null?void 0:fl.id,delete xl.sort,delete xl.relatedId,{tableName:"content_"+(ue==null?void 0:ue.id),tableContents:[xl]}}else return}))==null?void 0:Sa.filter(ue=>ue);Te=[...Te,...wa];let _a=await I.quoteApi({platId:parseInt((te=kl==null?void 0:kl.value)==null?void 0:te.plat_id),type:"sonSyncs",related:[{menus:t!==""?Sl.value+"/"+t:Sl.value,groups:l==null?void 0:l.name}]});_a=(le=(B=_a==null?void 0:_a.data)==null?void 0:B.result)==null?void 0:le.filter(ue=>!(Te!=null&&Te.find(Fa=>(Fa==null?void 0:Fa.tableName)==="content_"+(ue==null?void 0:ue.id)))),_a=_a==null?void 0:_a.filter(ue=>{var Fa,ja;return!((ue==null?void 0:ue.fatherPath)!==""&&((ja=(Fa=ue==null?void 0:ue.quote)==null?void 0:Fa[0])==null?void 0:ja.menus)===(Sl==null?void 0:Sl.value))});let oa=(ye=_a==null?void 0:_a.map(ue=>{var ja,Ee,Ba,Ua,ve,fl;let Fa=(ja=ue==null?void 0:ue.contents)==null?void 0:ja.filter(Xa=>{var xl,qa,ol;return JSON.stringify(Xa==null?void 0:Xa.relatedId)!=="{}"&&(Xa==null?void 0:Xa.relatedId)!==""&&(Xa!=null&&Xa.relatedId)?(xl=Xa==null?void 0:Xa.relatedId)==null?void 0:xl.includes(parseInt(ma)):(Xa==null?void 0:Xa.sort)===((ol=(qa=l==null?void 0:l.fixContent)==null?void 0:qa[0])==null?void 0:ol.sort)});if((Fa==null?void 0:Fa.length)>0){let Xa=(Ee=l==null?void 0:l.fixContent)==null?void 0:Ee[0];Xa={...Xa,id:(Ba=Fa==null?void 0:Fa[0])==null?void 0:Ba.id};let xl={},qa=Xa,ol;return Array.isArray((Ua=ue==null?void 0:ue.struct)==null?void 0:Ua[0])?ol=na.getColumnChild((ve=ue==null?void 0:ue.struct)==null?void 0:ve[0]):ol=ue==null?void 0:ue.struct,ol==null||ol.forEach(al=>{var cl,ul;xl[al.prop]=((cl=al==null?void 0:al.words)!=null&&cl[0]?qa==null?void 0:qa[(ul=al==null?void 0:al.words)==null?void 0:ul[0]]:qa==null?void 0:qa[al==null?void 0:al.prop])??""}),xl.id=(fl=Fa==null?void 0:Fa[0])==null?void 0:fl.id,delete xl.sort,delete xl.relatedId,{tableName:"content_"+(ue==null?void 0:ue.id),tableContents:[xl]}}else return}))==null?void 0:ye.filter(ue=>ue);Te=[...Te,...oa],await I.pageBatchDeleteApi({platId:parseInt((se=kl==null?void 0:kl.value)==null?void 0:se.plat_id),changeContents:Te});let va=[];Te==null||Te.forEach(ue=>{var Fa;(Fa=ue==null?void 0:ue.tableContents)==null||Fa.forEach(ja=>{va.push({id:"1",request_method:"Post",request_url:"/platform/page/delete",request_param:JSON.stringify(ja),request_result:"{}",is_delete:!1,request_table:ue==null?void 0:ue.tableName,request_type:"delete"})})}),await I.pageBatchAddApi({platId:parseInt((Ne=kl==null?void 0:kl.value)==null?void 0:Ne.plat_id),changeContents:[{tableName:"log",tableContents:va}]})}if((l==null?void 0:l.buttonName)==="复制新增"){let Te=await I.getPageDataApi({platId:parseInt((ia=kl==null?void 0:kl.value)==null?void 0:ia.plat_id),pageName:"menu"});if(Te=(xa=Te==null?void 0:Te.data)==null?void 0:xa.result,Te!=null&&Te.find(il=>(il==null?void 0:il.father_name)===Sl.value+"/")){oc.value=l,tc.value=Te==null?void 0:Te.filter(wa=>(wa==null?void 0:wa.father_name)===Sl.value+"/");let il=(ee=(Ha=l==null?void 0:l.columns)==null?void 0:Ha.find(wa=>wa==null?void 0:wa.mainKey))==null?void 0:ee.prop,ma=(Pe=(ea=l==null?void 0:l.fixContent)==null?void 0:ea[0])==null?void 0:Pe[il];wi.value=!0,Ft.value=[{prop:il,label:il,name:il,value:ma}]}else{let il=(ga=l==null?void 0:l.fixContent)==null?void 0:ga.map(_a=>{let oa={};for(let va in _a)Array.isArray(_a==null?void 0:_a[va])?oa[va]=JSON.stringify(_a==null?void 0:_a[va]):oa[va]=_a==null?void 0:_a[va];return oa.relatedId="",oa}),ma=[{tableName:(He=l==null?void 0:l.relatedContents)==null?void 0:He.find(_a=>_a==null?void 0:_a.includes("content")),tableContents:il}];await I.pageBatchAddApi({platId:parseInt((Ae=kl==null?void 0:kl.value)==null?void 0:Ae.plat_id),changeContents:ma});let wa=[];ma==null||ma.forEach(_a=>{var oa;(oa=_a==null?void 0:_a.tableContents)==null||oa.forEach(va=>{wa.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(va),request_result:"{}",is_delete:!1,request_table:_a==null?void 0:_a.tableName,request_type:"copyAdd"})})}),await I.pageBatchAddApi({platId:parseInt((Re=kl==null?void 0:kl.value)==null?void 0:Re.plat_id),changeContents:[{tableName:"log",tableContents:wa}]})}}if((l==null?void 0:l.buttonName)==="methodButton"){let Te=((Ia=(Ka=(Ge=l==null?void 0:l.columns)==null?void 0:Ge.map(Ee=>Ee==null?void 0:Ee.filter))==null?void 0:Ka.filter(Ee=>Ee!==""))==null?void 0:Ia[0])??"";Te=$a.analyzeSplitToContent(Te,","),Te=(Te==null?void 0:Te.find(Ee=>Ee==null?void 0:Ee.includes("@Filter")))??"";let il=(R=l==null?void 0:l.fixContent)==null?void 0:R.map(Ee=>{let Ba={};for(let Ua in Ee)Array.isArray(Ee==null?void 0:Ee[Ua])?Ba[Ua]=JSON.stringify(Ee==null?void 0:Ee[Ua]):Ba[Ua]=Ee==null?void 0:Ee[Ua];return Ba}),ma=await I.quoteApi({platId:parseInt((P=kl==null?void 0:kl.value)==null?void 0:P.plat_id),type:"fatherSyncs",related:[{menus:t!==""?Sl.value+"/"+t:Sl.value,groups:l==null?void 0:l.name}]});ma=(Y=ma==null?void 0:ma.data)==null?void 0:Y.result,ma=ma==null?void 0:ma.filter(Ee=>{var Ba,Ua;return!((Ee==null?void 0:Ee.fatherPath)!==""&&((Ua=(Ba=Ee==null?void 0:Ee.quote)==null?void 0:Ba[0])==null?void 0:Ua.menus)===(Sl==null?void 0:Sl.value))});let wa=(ie=(oe=l==null?void 0:l.columns)==null?void 0:oe[0])==null?void 0:ie.prop,_a=(fa=il==null?void 0:il[0])==null?void 0:fa[wa],oa=[{tableName:(ra=l==null?void 0:l.relatedContents)==null?void 0:ra.find(Ee=>Ee==null?void 0:Ee.includes("content")),tableContents:il}],va=(Ie=ma==null?void 0:ma.map(Ee=>{var Ua,ve,fl,Xa,xl;let Ba=(Ua=Ee==null?void 0:Ee.contents)==null?void 0:Ua.filter(qa=>{var ol;return(ol=Object.values(qa))==null?void 0:ol.find(al=>al===_a)});if((Ba==null?void 0:Ba.length)>0){let qa=il==null?void 0:il[0];qa={...qa,id:(ve=Ba==null?void 0:Ba[0])==null?void 0:ve.id};let ol={},al=qa,cl;return Array.isArray((fl=Ee==null?void 0:Ee.struct)==null?void 0:fl[0])?cl=na.getColumnChild((Xa=Ee==null?void 0:Ee.struct)==null?void 0:Xa[0]):cl=Ee==null?void 0:Ee.struct,cl==null||cl.forEach(ul=>{var Wl,Kl;ol[ul.prop]=((Wl=ul==null?void 0:ul.words)!=null&&Wl[0]?al==null?void 0:al[(Kl=ul==null?void 0:ul.words)==null?void 0:Kl[0]]:al==null?void 0:al[ul==null?void 0:ul.prop])??""}),ol.id=(xl=Ba==null?void 0:Ba[0])==null?void 0:xl.id,delete ol.sort,{tableName:"content_"+(Ee==null?void 0:Ee.id),tableContents:[ol]}}else return}))==null?void 0:Ie.filter(Ee=>Ee);oa=[...oa,...va];let ue=await I.quoteApi({platId:parseInt((we=kl==null?void 0:kl.value)==null?void 0:we.plat_id),type:"sonSyncs",related:[{menus:t!==""?Sl.value+"/"+t:Sl.value,groups:l==null?void 0:l.name}]});if(ue=(fe=(Ca=ue==null?void 0:ue.data)==null?void 0:Ca.result)==null?void 0:fe.filter(Ee=>!(oa!=null&&oa.find(Ba=>(Ba==null?void 0:Ba.tableName)==="content_"+(Ee==null?void 0:Ee.id)))),ue=ue==null?void 0:ue.filter(Ee=>{var Ba,Ua;return!((Ee==null?void 0:Ee.fatherPath)!==""&&((Ua=(Ba=Ee==null?void 0:Ee.quote)==null?void 0:Ba[0])==null?void 0:Ua.menus)===(Sl==null?void 0:Sl.value))}),Te&&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=(Ze=(Je=Te==null?void 0:Te.replace("(",uo))==null?void 0:Je.split(uo))==null?void 0:Ze[1],Te=Te==null?void 0:Te.slice(0,(Te==null?void 0:Te.length)-1),(Te==null?void 0:Te[0])==="*"&&(Te="{"+((ka=(Fe=Te==null?void 0:Te.replace("{",uo))==null?void 0:Fe.split(uo))==null?void 0:ka[1])),Te=($e=Te==null?void 0:Te.replaceAll("{",""))==null?void 0:$e.replaceAll("}","");let Ee=na.calculatorAndToOr(Te);Ee=Ee==null?void 0:Ee[0];let Ba;if((pa=Object.values(Ee))!=null&&pa.some(Ua=>(Ua==null?void 0:Ua[0])==="*")){let Ua=(Se=(re=Ln.value)==null?void 0:re.find(ve=>(ve==null?void 0:ve.condition)==="child"))!=null&&Se.value?(Gr==null?void 0:Gr.value)+"/"+((je=(K=Ln.value)==null?void 0:K.find(ve=>(ve==null?void 0:ve.condition)==="child"))==null?void 0:je.value):Gr==null?void 0:Gr.value;Ba=await Pr(Ua,!1)}for(let Ua in Ee)if(((Be=Ee==null?void 0:Ee[Ua])==null?void 0:Be[0])==="*"){let ve=(ua=(Ye=(Ea=Ee[Ua])==null?void 0:Ea.slice(1,(za=Ee[Ua])==null?void 0:za.length))==null?void 0:Ye.split(":"))==null?void 0:ua[0],fl=(Z=(_e=Ee[Ua])==null?void 0:_e.split(":"))==null?void 0:Z[1],Xa=(ya=Ba==null?void 0:Ba.filter(xl=>(xl==null?void 0:xl.name)===ve))==null?void 0:ya[0];Xa=(La=(We=Xa==null?void 0:Xa.compData)==null?void 0:We.find(xl=>(xl==null?void 0:xl.key)==="tableContents"))==null?void 0:La.contents,Xa=(ml=Xa==null?void 0:Xa[0])==null?void 0:ml[fl],Ee[Ua]=Xa}Te=((Aa=Object.values(Ee))==null?void 0:Aa[0])??""}let Fa=(el=ue==null?void 0:ue.map(Ee=>{var Ua,ve,fl,Xa,xl;let Ba=(Ua=Ee==null?void 0:Ee.contents)==null?void 0:Ua.filter(qa=>{var ol;return(ol=Object.values(qa))==null?void 0:ol.find(al=>al===(Te===""?_a:Te))});if((Ba==null?void 0:Ba.length)>0){let qa=il==null?void 0:il[0];qa={...qa,id:(ve=Ba==null?void 0:Ba[0])==null?void 0:ve.id};let ol={},al=qa,cl;return Array.isArray((fl=Ee==null?void 0:Ee.struct)==null?void 0:fl[0])?cl=na.getColumnChild((Xa=Ee==null?void 0:Ee.struct)==null?void 0:Xa[0]):cl=Ee==null?void 0:Ee.struct,cl==null||cl.forEach(ul=>{var Kl,Fl,Ul,gr;let Wl=(Kl=l==null?void 0:l.columns)==null?void 0:Kl.find(rr=>{var kr,wr,Er;return((wr=(kr=rr==null?void 0:rr.words)==null?void 0:kr[0])==null?void 0:wr.replaceAll("'",""))===(ul==null?void 0:ul.prop)&&((Er=rr==null?void 0:rr.functionRelatedWords)==null?void 0:Er.length)>0});Wl=(Fl=Wl==null?void 0:Wl.prop)==null?void 0:Fl.replaceAll("'",""),ol[ul.prop]=((Ul=ul==null?void 0:ul.words)!=null&&Ul[0]?al==null?void 0:al[(gr=ul==null?void 0:ul.words)==null?void 0:gr[0]]:(al==null?void 0:al[ul==null?void 0:ul.prop])??(al==null?void 0:al[Wl]))??void 0}),ol.id=(xl=Ba==null?void 0:Ba[0])==null?void 0:xl.id,delete ol.sort,{tableName:"content_"+(Ee==null?void 0:Ee.id),tableContents:[ol]}}else return}))==null?void 0:el.filter(Ee=>Ee);oa=[...oa,...Fa],await I.pageBatchUpdateApi({platId:parseInt((Ja=kl==null?void 0:kl.value)==null?void 0:Ja.plat_id),changeContents:oa});let ja=[];oa==null||oa.forEach(Ee=>{var Ba;(Ba=Ee==null?void 0:Ee.tableContents)==null||Ba.forEach(Ua=>{ja.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(Ua),request_result:"{}",is_delete:!1,request_table:Ee==null?void 0:Ee.tableName,request_type:"method"})})}),await I.pageBatchAddApi({platId:parseInt((Pa=kl==null?void 0:kl.value)==null?void 0:Pa.plat_id),changeContents:[{tableName:"log",tableContents:ja}]})}_r.setRefreshCurStructure(!0),await yi(l)},yi=async l=>{var d,b,h,v,y,c,w,S,A,_,H,k,T,J,D,$,z,x;let r=(d=l==null?void 0:l.relatedContents)==null?void 0:d.filter(g=>g==null?void 0:g.includes("content_")),n=await I.getAllTables({platId:parseInt((b=kl==null?void 0:kl.value)==null?void 0:b.plat_id),tableNames:r});if(n=(v=(h=n==null?void 0:n.data)==null?void 0:h.result)==null?void 0:v[0],!n||!Array.isArray(n))return;n=n==null?void 0:n.map(g=>{g==null||delete g.source_table;const F={};for(let q in g){const G=g==null?void 0:g[q],be=G&&Object.prototype.toString.call(G)==="[object Object]"&&Object.keys(G).length===0,ze=Array.isArray(G)&&G.length===0;G==null||G==="{}"||be||ze?F[q]="":F[q]=G}return F});let t=(c=(y=r==null?void 0:r[0])==null?void 0:y.split("_"))==null?void 0:c[1],s=(w=Xl.value)==null?void 0:w.find(g=>(g==null?void 0:g.id)===t);if(s&&(s==null?void 0:s.comp)!=="Tabs"){let g=(S=s.compData)==null?void 0:S.map(F=>{var q;if((F==null?void 0:F.key)==="tableContents"){let G={...F,contents:n};return G.contents=(q=(G==null?void 0:G.contents)??[])==null?void 0:q.map(be=>{let ze={};for(let De in be)JSON.stringify(be==null?void 0:be[De])==="{}"?ze[De]="":ze[De]=be==null?void 0:be[De];return ze}),G}return F});s.compData=await wo(g,{}),Xl.value=(A=Xl.value)==null?void 0:A.map(F=>((F==null?void 0:F.id)===(s==null?void 0:s.id)&&(F=s),F))}else{let g=(_=Xl.value)==null?void 0:_.filter(F=>(F==null?void 0:F.comp)==="Tabs"||(F==null?void 0:F.comp)==="ParentItem");if(g=(H=g==null?void 0:g.filter(F=>{var q,G;return((q=F==null?void 0:F.compData)==null?void 0:q.find(be=>(be==null?void 0:be.id)===t))||((G=F==null?void 0:F.children)==null?void 0:G.find(be=>(be==null?void 0:be.id)===t))}))==null?void 0:H[0],g){const F=((k=g==null?void 0:g.compData)==null?void 0:k.find(q=>(q==null?void 0:q.id)===t))??((T=g==null?void 0:g.children)==null?void 0:T.find(q=>(q==null?void 0:q.id)===t));if(F){let q;F!=null&&F.compData&&((J=F.compData)==null?void 0:J.length)>0?q=(D=F.compData)==null?void 0:D.map(G=>(G==null?void 0:G.key)==="tableContents"?{...G,contents:n}:G):q=($=F.children)==null?void 0:$.map(G=>(G==null?void 0:G.key)==="tableContents"?{...G,contents:n}:G),F.compData=await wo(q,{}),g.compData=(z=g.compData)==null?void 0:z.map(G=>((G==null?void 0:G.id)===(F==null?void 0:F.id)&&(G=F),G)),Xl.value=(x=Xl.value)==null?void 0:x.map(G=>((g!=null&&g.tabInform?(G==null?void 0:G.tabInform)===(g==null?void 0:g.tabInform):(G==null?void 0:G.name)===(g==null?void 0:g.name))&&(G=g),G))}}}},e0=l=>{let r=Ft.value;Ft.value=r==null?void 0:r.map(n=>(n.value=l==null?void 0:l[n==null?void 0:n.prop],n))},a0=async()=>{var S,A,_,H,k,T,J,D,$,z;let l=oc.value,r=tc.value,n=(A=(S=l==null?void 0:l.columns)==null?void 0:S.find(x=>x==null?void 0:x.mainKey))==null?void 0:A.prop,t=(H=(_=Ft.value)==null?void 0:_[0])==null?void 0:H.value,s=(k=l==null?void 0:l.fixContent)==null?void 0:k.map(x=>{var F;let g={};for(let q in x)Array.isArray(x==null?void 0:x[q])?g[q]=JSON.stringify(x==null?void 0:x[q]):g[q]=x==null?void 0:x[q];return(F=l==null?void 0:l.columns)==null||F.forEach(q=>{(q==null?void 0:q.formType)==="Upload"&&(g==null?void 0:g[q==null?void 0:q.prop])===""&&(g[q==null?void 0:q.prop]="{}")}),g[n]=t,g}),d=[{tableName:(T=l==null?void 0:l.relatedContents)==null?void 0:T.find(x=>x==null?void 0:x.includes("content")),tableContents:s}];await I.pageBatchAddApi({platId:parseInt((J=kl==null?void 0:kl.value)==null?void 0:J.plat_id),changeContents:d}),r=r==null?void 0:r.filter(x=>{var g,F,q;return(q=x==null?void 0:x.object_name)==null?void 0:q.includes((F=(g=l==null?void 0:l.fixContent)==null?void 0:g[0])==null?void 0:F[n])});let b=[],h=new Map;r==null||r.forEach(x=>{b.push(`content_${x==null?void 0:x.object_id}`),b.push(`struct_${x==null?void 0:x.object_id}`),h.set(x==null?void 0:x.object_id,x)});let v=await I.getAllTables({platId:parseInt((D=kl==null?void 0:kl.value)==null?void 0:D.plat_id),tableNames:b});v=($=v==null?void 0:v.data)==null?void 0:$.result;let y=[],c=[];v=$a.chunk(v,2),v==null||v.forEach(x=>{var q,G,be,ze,De,ne,ke,X,pe,Ke,Sa,te,B,le,ye,se,Ne,ia,xa,Ha,ee;let g=h.get((ze=(be=(G=(q=x==null?void 0:x[1])==null?void 0:q[0])==null?void 0:G.source_table)==null?void 0:be.split("_"))==null?void 0:ze[1]),F=(ke=(ne=(De=g==null?void 0:g.object_name)==null?void 0:De.split("/"))==null?void 0:ne.filter((ea,Pe)=>{var ga,He;return((He=(ga=g==null?void 0:g.object_name)==null?void 0:ga.split("/"))==null?void 0:He.length)-1!==Pe}))==null?void 0:ke.join("/");if(F=F+"/"+t,c!=null&&c.find(ea=>(ea==null?void 0:ea.path)===F)||c.push({fatherPath:g==null?void 0:g.father_name,isShow:g==null?void 0:g.is_show,path:F}),((pe=(X=x==null?void 0:x[1])==null?void 0:X[0])==null?void 0:pe.类型)==="Table"){let ea=((te=(Sa=(Ke=x==null?void 0:x[1])==null?void 0:Ke[0])==null?void 0:Sa.结构)==null?void 0:te.contents)??[],Pe=pl.safeClone(ea);Array.isArray(Pe==null?void 0:Pe[0])&&(Pe=na.getColumnChild(Pe==null?void 0:Pe[0]));let ga=[];if(((B=x==null?void 0:x[0])==null?void 0:B.length)>0&&(ga=(le=x==null?void 0:x[0])==null?void 0:le.map(He=>Pe==null?void 0:Pe.map(Re=>(Re=(He==null?void 0:He[Re==null?void 0:Re.prop])??"",Re)))),y!=null&&y.find(He=>(He==null?void 0:He.key)===F)){let He=(ye=y==null?void 0:y.find(Re=>(Re==null?void 0:Re.key)===F))==null?void 0:ye.contents;He.push({isShow:g==null?void 0:g.is_show,filter:((ia=(Ne=(se=x==null?void 0:x[1])==null?void 0:se[0])==null?void 0:Ne.引用)==null?void 0:ia.contents)??"",key:"Table",name:Object.values(g==null?void 0:g.name),tableColumns:ea,tableContents:ga});let Ae=y==null?void 0:y.findIndex(Re=>(Re==null?void 0:Re.key)===F);y[Ae].contents=He}else y.push({key:F,contents:[{isShow:g==null?void 0:g.is_show,filter:((ee=(Ha=(xa=x==null?void 0:x[1])==null?void 0:xa[0])==null?void 0:Ha.引用)==null?void 0:ee.contents)??"",key:"Table",name:Object.values(g==null?void 0:g.name),tableColumns:ea,tableContents:ga}]})}});let w=[];w.push({key:"menuPath",contents:c}),w=[...w,...y],await I.createPlatFormDataApi({platId:parseInt((z=kl==null?void 0:kl.value)==null?void 0:z.plat_id),changeData:w}),wi.value=!1,_r.setRefreshTable(!0)},So=async(l,r)=>{},Do=async l=>{Xl.value=await na.getDeepDiffItems(l),_r.setItemData(Xl.value),_r.setOriginalData(Xl.value)};a.ref();const l0=a.ref(null),r0=()=>{var l,r;console.log("倒计时结束时"),I.ElMessageBox.alert(`超时未提交,【${(r=(l=Sl.value)==null?void 0:l.split("/"))==null?void 0:r[0]}】失败`,"告警",{confirmButtonText:"确认",type:"error"})},uc=a.ref([]),n0=a.computed(()=>{var l,r;return(r=(l=hi.value)==null?void 0:l[Sl.value])==null?void 0:r.filter(n=>{var t;return((t=n==null?void 0:n.key)==null?void 0:t.type)==="gridLayout"})});a.watch(()=>[Uf.value],()=>{nn.setSelectTitle([]),nn.setChooseTitle([])},{deep:!0});a.watch(()=>vi.value,async(l,r)=>{var t,s,d,b,h,v;if(JSON.stringify(l)===JSON.stringify(r))return;let n=(t=vi.value)==null?void 0:t.filter(y=>(y==null?void 0:y.condition)==="child"&&(y==null?void 0:y.value)!==""&&(y==null?void 0:y.parentContent)!==Gr.value);if((n==null?void 0:n.length)>0){Sr.setContentLoading(!0);let y=((s=n==null?void 0:n[0])==null?void 0:s.relatedContent)??(Sl==null?void 0:Sl.value),c=y+"/"+((d=n==null?void 0:n[0])==null?void 0:d.value),w=!!((b=n==null?void 0:n[0])!=null&&b.parentContent),S=await Pr(c,w,{originPath:y});S=(h=S==null?void 0:S.filter(H=>H))==null?void 0:h.map(H=>(H.isShow=!0,H)),console.log(S,"loadingContents");let A=await na.getDeepDiffItems(S),_=A==null?void 0:A.filter(H=>H==null?void 0:H.choice);Ao.setSelectTab((v=_==null?void 0:_[0])==null?void 0:v.choiceName),A=A==null?void 0:A.filter(H=>{var k;return!(H!=null&&H.choiceName)||(H==null?void 0:H.choiceName)===((k=_==null?void 0:_[0])==null?void 0:k.choiceName)}),Xl.value=A,Sr.setContentLoading(!1)}});const t0=l=>{setTimeout(async()=>{var b,h,v;let r=(b=vi.value)==null?void 0:b.filter(y=>(y==null?void 0:y.condition)==="child"&&(y==null?void 0:y.value)!==""&&(y==null?void 0:y.parentContent)!==Gr.value),n=Sl==null?void 0:Sl.value,t=Sl==null?void 0:Sl.value;(r==null?void 0:r.length)>0&&(t=((h=r==null?void 0:r[0])==null?void 0:h.relatedContent)??(Sl==null?void 0:Sl.value),n=t+"/"+((v=r==null?void 0:r[0])==null?void 0:v.value));let s=await Pr(n,!1,{originPath:t});s=s==null?void 0:s.map(y=>(y.isShow=!0,y)),Ao.setSelectTab(l);let d=await na.getDeepDiffItems(s);Xl.value=d==null?void 0:d.filter(y=>!(y!=null&&y.choiceName)||(y==null?void 0:y.choiceName)===l)},10)};a.watch(()=>Hf.value,l=>{l!=null&&l.length||(Xl.value=[])},{immediate:!0});a.watch(()=>[Sl.value],async l=>{var d,b,h,v;if(!Sl.value)return;if(Sl.value==="/"){Xl.value=[];return}Sr.setCurrentMenuPath(Sl.value),_r.setLockingPage(""),Xl.value=[];let r=a.getCurrentInstance();(d=r==null?void 0:r.scope)==null||d.stop(),r=null,Et.value=!1,Sr.setContentLoading(!0),nc.value=!0;let n=l==null?void 0:l[0],t=n,s=(b=Ln.value)==null?void 0:b.filter(y=>(y==null?void 0:y.condition)==="child"&&(y==null?void 0:y.value)!==""&&(y==null?void 0:y.parentContent)!==Sl.value&&!(y!=null&&y.relatedContent));if((s==null?void 0:s.length)>0&&(n=n+"/"+((h=s==null?void 0:s[0])==null?void 0:h.value)),n==="系统管理/日志管理")Xl.value=await $f("log");else{let y=await Pr(n,!0,{originPath:t});y=y==null?void 0:y.map(S=>(S.isShow=!0,S));let c=await na.getDeepDiffItems(y),w=c==null?void 0:c.filter(S=>S==null?void 0:S.choice);Ao.setSelectTab((v=w==null?void 0:w[0])==null?void 0:v.choiceName),Xl.value=c==null?void 0:c.filter(S=>{var A;return!(S!=null&&S.choiceName)||(S==null?void 0:S.choiceName)===((A=w==null?void 0:w[0])==null?void 0:A.choiceName)})}Sr.setContentLoading(!1),_r.setExtraContents([]),nn.setSelectIndex(""),nn.setSelectMenu(""),_r.setItemData(Xl.value),_r.setOriginalData(Xl.value),_r.setRefreshTable(!1),a.nextTick(()=>{$n.value=$n.value++,Et.value=!0})},{immediate:!0});a.watch(()=>[ds.value],async()=>{var l,r,n,t;if(ds.value){Xl.value=[];let s=a.getCurrentInstance();(l=s==null?void 0:s.scope)==null||l.stop(),s=null,Et.value=!1,Sr.setContentLoading(!0),nc.value=!0;let d=Gr==null?void 0:Gr.value,b=d,h=(r=Ln.value)==null?void 0:r.filter(w=>(w==null?void 0:w.condition)==="child"&&(w==null?void 0:w.value)!==""&&(w==null?void 0:w.parentContent)!==(Gr==null?void 0:Gr.value));(h==null?void 0:h.length)>0&&(d=d+"/"+((n=h==null?void 0:h[0])==null?void 0:n.value));let v=await Pr(d,!0,{originPath:b});v=v==null?void 0:v.map(w=>(w.isShow=!0,w));let y=await na.getDeepDiffItems(v),c=y==null?void 0:y.filter(w=>w==null?void 0:w.choice);if(Ao.setSelectTab((t=c==null?void 0:c[0])==null?void 0:t.choiceName),Xl.value=y==null?void 0:y.filter(w=>{var S;return!(w!=null&&w.choiceName)||(w==null?void 0:w.choiceName)===((S=c==null?void 0:c[0])==null?void 0:S.choiceName)}),Sr.setContentLoading(!1),_r.setExtraContents([]),nn.setSelectIndex(""),nn.setSelectMenu(""),_r.setItemData(Xl.value),_r.setOriginalData(Xl.value),_r.setRefreshTable(!1),(h==null?void 0:h.length)>0){let w=[...Ln.value,...h];nn.setSelectTitle(w)}a.nextTick(()=>{$n.value=$n.value++,Et.value=!0})}},{immediate:!0,deep:!0});const o0=async()=>{Sr.setLinkMenuInfo(null),Sr.setActiveMenuPath(jf.value),Xl.value=null,_r.setRouteToChildPath(""),Sr.setChildMenu("")},i0=l=>new RegExp("button","i").test(l),s0=l=>/^[\u4e00-\u9fa5]+\/[\u4e00-\u9fa5]+\^(.+)$/.test(l),dc=l=>{if(s0(l)){const r=l==null?void 0:l.split("^");(r==null?void 0:r.length)>0&&(r!=null&&r[0])&&Sr.setLinkMenuInfo({path:r==null?void 0:r[0],data:r==null?void 0:r[1]})}},pc=async(l,r,n)=>{var S,A,_,H,k,T,J,D,$,z,x,g;let t="",s="";for(let F in r)(r==null?void 0:r[F])===l&&(s=F);n==null||n.forEach(F=>{(F==null?void 0:F.prop)===s&&(t=F==null?void 0:F.fatherPath)});let d=t===""?Sl.value:t;t!==""&&Sr.setCurrentMenuPath(d),Sr.setCurrentMenuPath(d+"/"+l),Sr.setContentLoading(!0),await Pr(d+"/"+l,!0,{originPath:d+"/",row:r});let b=await Pr(d,!1),h=(S=b==null?void 0:b.filter(F=>(F==null?void 0:F.comp)==="Table"))==null?void 0:S[0],v=((k=(H=(_=(A=h==null?void 0:h.compData)==null?void 0:A.find(F=>(F==null?void 0:F.key)==="header"))==null?void 0:_.contents)==null?void 0:H[0])==null?void 0:k.prop)??((z=($=(D=(J=(T=h==null?void 0:h.compData)==null?void 0:T.find(F=>(F==null?void 0:F.key)==="header"))==null?void 0:J.contents)==null?void 0:D[0])==null?void 0:$[0])==null?void 0:z.prop),y=(g=(x=h==null?void 0:h.compData)==null?void 0:x.find(F=>(F==null?void 0:F.key)==="tableContents"))==null?void 0:g.contents;y=y==null?void 0:y.map(F=>({label:F==null?void 0:F[v],value:F==null?void 0:F[v]}));let c=Ln.value,w={value:l,condition:"child",options:y,relatedContent:d,isShow:!0};c.push(w),nn.setSelectTitle(c),nn.setChooseTitle([w]),Sr.setContentLoading(!1),_r.setExtraContents([]),nn.setSelectIndex(""),nn.setSelectMenu(""),_r.setItemData(Xl.value),_r.setOriginalData(Xl.value)},c0=l=>{sc.value=l},kt=a.reactive({index:0,comp:null}),u0=a.computed(()=>{var l;return(l=Xl.value)==null?void 0:l.map((r,n)=>({id:r.id,name:r.name,status:d0(r,n)}))}),fc=(l,r)=>{var v,y,c,w,S;const n=r?l:l-2,t=(v=Xl.value)==null?void 0:v[n],s=(c=(y=t==null?void 0:t.compData)==null?void 0:y.find(A=>(A==null?void 0:A.key)==="header"))==null?void 0:c.contents,d=s==null?void 0:s.findIndex(A=>(A==null?void 0:A.isMainKey)&&(A==null?void 0:A.label)!=="操作"),b=d===-1?0:d,h=(S=(w=t==null?void 0:t.compData)==null?void 0:w.find(A=>(A==null?void 0:A.key)==="tableContents"))==null?void 0:S.contents;return{valid:h==null?void 0:h.every(A=>A==null?void 0:A[b+1]),length:(h==null?void 0:h.length)||0}},d0=(l,r)=>{var t;let n="process";if(((t=l==null?void 0:l.comp)==null?void 0:t.toUpperCase())==="TABLE"){const{valid:s,length:d}=fc(r,!0);kt.index===r?n="process":d===0?n="wait":n=s?"success":"error"}return n},hc=l=>{var n,t,s,d,b;const r=l+1;if(r>1&&((s=(t=(n=Xl.value)==null?void 0:n[l])==null?void 0:t.comp)==null?void 0:s.toUpperCase())==="TABLE"){const{valid:h}=fc(r);h?(kt.index=r,kt.comp=(d=Xl.value)==null?void 0:d[l]):ll.ElMessage({showClose:!0,type:"warning",message:"当前流程有输入未完成"})}else kt.index=r,kt.comp=(b=Xl.value)==null?void 0:b[l]},vc=a.computed(()=>{var l,r;return(r=(l=ic.value)==null?void 0:l[0])==null?void 0:r.isStepLayout});a.watch(()=>vc.value,l=>{l&&hc(0)},{immediate:!0});const p0={class:"table-content"},f0={class:"menu-config-wrap"},h0=["onClick"],v0={key:0,class:"viewport-wrap"},m0=["onClick"],y0={title:"选择显示列信息"},g0={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},b0=["title"],k0={class:"col-operate-wrap"},x0={key:0,class:"col-operate-radio-wrapper"},_0={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},w0={key:0,style:{display:"flex","justify-content":"center","align-items":"center"}},C0={class:"pop-view"},E0={class:"pop-wrapper"},S0={class:"file-list-pop"},D0=["title","onClick"],B0=["onClick"],N0=["onClick"],T0={key:1,style:{display:"flex","justify-content":"flex-end",gap:"8px","margin-top":"8px"}},A0={class:"form-content"},z0={key:0,class:"dialog-footer"},M0={class:"dialog-footer"},O0={class:"ocr-dialog-content"},I0={class:"ocr-steps"},L0={key:0,class:"ocr-action-buttons"},V0={key:1,class:"ocr-preview-area"},$0={class:"ocr-file-grid"},R0={class:"file-thumbnail"},P0=["src"],F0={key:1,class:"thumbnail-placeholder"},j0={class:"progress-svg",viewBox:"0 0 36 36"},H0=["stroke","stroke-width","stroke-dasharray"],U0={key:0,class:"progress-icon"},q0={key:1,class:"progress-icon"},K0=["onClick"],W0={class:"file-name"},Y0={key:0,class:"ocr-recognize-button"},G0={key:2,class:"ocr-progress-section"},J0={key:3,class:"ocr-confirm-area"},X0={class:"ocr-preview-tip"},Z0={class:"ocr-preview-table"},Q0={style:{display:"flex","align-items":"center",gap:"8px"}},e3={key:0},a3={key:4,class:"ocr-success-area"},l3={key:0,class:"ocr-dialog-footer"},r3={class:"form-content"},n3={style:{display:"flex","justify-content":"space-between",gap:"8px"}},t3={style:{display:"flex"}},fs="ss-ocr-upload-history",o3="ss-ocr-cert-history-v1",i3={__name:"index",props:{pageLayout:{type:String,default:"vertical"},related:{type:Array,default:[]},level:{type:Number,default:1},compName:{type:String,default:"",required:!1},compNames:{type:Array,default:()=>[],required:!1},compItem:{type:Object,default:()=>{}},operatingForm:{type:Object,default:()=>{}},cacheNewData:{type:Object,default:()=>{}},config:Object,parentTableId:{type:Number,default:0},itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,isDevMode:Boolean,changedContent:{type:Object,default:()=>{}},showHeader:{type:Boolean,default:!0},allowSelect:{type:Boolean,default:!0},allowOperate:{type:Boolean,default:!0},allMapContents:{type:Object,default:()=>{}}},emits:["getSliceContLength","clickMainKey","change","contentChange","onButtonClick","contentClick","pageChange","rowClick","routeUrl"],setup(l,{emit:r}){var Ii;const n=a.ref([]),t=xi(I.pinia),s=a.ref(null),d=a.ref(new Set),b=a.ref(new Map),h=a.ref(new Map),v=new Map,y=a.ref(new Map),c=l,w=a.ref((c==null?void 0:c.allowSelect)??!0),S=a.ref(((Ii=c==null?void 0:c.config)==null?void 0:Ii.showIndex)??!0),A=a.ref(),_=a.ref(!0),H=a.ref(!1),k=a.ref([]),T={sortable:"switch",filterable:"switch",showSummary:"switch",operable:"switch",fixed:"radio"},J=a.ref([{label:"排序",value:"sortable",checked:!1},{label:"合计",value:"showSummary",checked:!1},{type:"radio",label:"固定",value:"fixed",checked:"",options:[{label:"无",value:!1},{label:"左",value:"left"},{label:"右",value:"right"}]}]),D=na.useOriginalState(I.pinia);let $="$R";const{originalPath:z}=I.storeToRefs(D),x=z.value,g=a.computed(()=>{var f;const p=(f=na.getAllLeafNodes(De.value)||[])==null?void 0:f.filter(M=>(M==null?void 0:M.type)!=="operate"&&(M==null?void 0:M.label)!=="操作"&&(M==null?void 0:M.prop)!=="operate");return p.length>0?p.every(M=>!!(M!=null&&M.sortable)):!1});a.computed(()=>{var f;return(f=De.value)==null?void 0:f.every(M=>M==null?void 0:M.filterable)}),a.computed(()=>{var f;return(f=De.value)==null?void 0:f.every(M=>M==null?void 0:M.operable)});const F=a.ref(!0),q=a.ref([]),G=a.reactive({column:{},status:!1,text:"合计"}),be=a.reactive({currentPage:1,pageSize:10,total:0,pageSizes:[5,10,20]}),ze=r,De=a.ref([]),ne=a.ref([]),ke=a.ref([]),X=a.reactive({prop:"",order:null}),pe=a.ref([]),Ke=a.ref(!1),Sa=a.ref(!1),te=a.ref(null),{isUseBackdrop:B,initTrackFileType:le,getFileExtension:ye,setData:se,getFileInfo:Ne,getFilesInfo:ia}=bo.useThreeSystem(),xa=a.ref([]),Ha=a.ref(!1),ee=a.ref(),ea=I.useMenuState(),{importLoading:Pe,activeMenuPath:ga,contentLoading:He,linkMenuInfo:Ae}=I.storeToRefs(ea),Re=na.useTableComp(I.pinia),Ge=I.useModelComp(I.pinia),Ka=rt(I.pinia),{extraContents:Ia,cacheUpdatingData:R,tableViewContents:P,tableLoading:Y,pageMapState:oe,lockingPage:ie}=I.storeToRefs(Ge),{selectTab:fa}=I.storeToRefs(Ka),{compType:ra,hasEditable:Ie}=Hs.useRole(),we=a.ref([]),Ca=a.ref([]),fe=a.ref(new Map);a.ref(!1);const Je=a.ref("");a.ref();const Ze=a.ref(!0),Fe=a.ref(0),ka=a.ref(!0),$e=a.ref(""),pa=a.ref(!1),re=a.ref(null);a.ref([]);const Se=a.ref({label:"查看三维模型"}),K=a.ref(!1),je=a.ref(),Be=a.ref([]),za=a.ref([]),Ea=a.ref(!1),Ye=a.ref([]),ua=a.ref([]),_e=a.ref([]),Z=a.ref([]),ya=a.ref([]),We=()=>{try{const p=localStorage.getItem(fs),f=p?JSON.parse(p):[];ya.value=Array.isArray(f)?f:[]}catch{ya.value=[]}},La=()=>{try{localStorage.setItem(fs,JSON.stringify(ya.value||[]))}catch{}},ml=p=>{var Q,ae,j;if(!p)return;const f=p.url||((Q=p==null?void 0:p.uploadResult)==null?void 0:Q.url)||"",M=p.name||((ae=p==null?void 0:p.uploadResult)==null?void 0:ae.name)||((j=p==null?void 0:p.uploadResult)==null?void 0:j.fileName)||"";if(!f&&!M)return;const O={name:M,url:f,ts:Date.now()},V=String(O.name||"").trim().toLowerCase(),N=(ya.value||[]).findIndex(me=>String((me==null?void 0:me.name)||"").trim().toLowerCase()===V);N>-1&&ya.value.splice(N,1),ya.value.unshift(O),ya.value.length>20&&(ya.value=ya.value.slice(0,20)),La()};We();const Aa=(p,f)=>`${o3}:${String(p??"")}:${String(f??"")}`,el=(p,f)=>{try{const M=sessionStorage.getItem(Aa(p,f)),O=M?JSON.parse(M):[];return Array.isArray(O)?O:[]}catch{return[]}},Ja=(p,f,M)=>{try{sessionStorage.setItem(Aa(p,f),JSON.stringify(Array.isArray(M)?M:[]))}catch{}},Pa=(p,f,M)=>{if(!f)return;const O=el(p,f),V=[M,...O||[]].filter(Boolean).slice(0,1);return Ja(p,f,V),V},Te=(p,f,M)=>{if(!f||!M)return;const O=Aa(p,f),V=Aa(p,M);try{const N=sessionStorage.getItem(O);if(!N)return;const Q=(()=>{try{const me=JSON.parse(N);return Array.isArray(me)?me:[]}catch{return[]}})(),ae=el(p,M),j=[...Q,...ae||[]].filter(Boolean).sort((me,Ce)=>Number((Ce==null?void 0:Ce.ts)||0)-Number((me==null?void 0:me.ts)||0)).slice(0,1);sessionStorage.setItem(V,JSON.stringify(j)),sessionStorage.removeItem(O)}catch{}},il=a.ref(!1),ma=a.ref(!1),wa=a.ref([]),_a=a.ref(null);a.ref(!1),a.ref([]),a.ref(""),a.ref("");const oa=a.ref(!1),va=a.ref([]),ue=a.ref(1),Fa=a.ref(new Map),ja=a.ref(new Map),Ee=a.ref(0),Ba=a.ref(!1),Ua=a.ref([]),ve=a.ref([]),fl=p=>{var f;try{const M=(f=na.getAllLeafNodes(De.value)||[])==null?void 0:f.filter(O=>(O==null?void 0:O.type)!=="operate"&&(O==null?void 0:O.label)!=="操作"&&(O==null?void 0:O.prop)!=="operate");return(M==null?void 0:M.find(O=>(O==null?void 0:O.prop)===p||(O==null?void 0:O.label)===p))||null}catch{return null}},Xa=p=>{const f=fl(p),M=(f==null?void 0:f.formType)||(f==null?void 0:f.columnType)||"Input";return pl.getComponent(M)||pl.getComponent("Input")},xl=a.ref([]),qa=a.ref(null),ol=a.ref([]),al=a.ref(null),cl=a.ref(""),ul=a.ref(!1),Wl=a.ref([]),Kl=a.ref(""),Fl=a.ref(!1),Ul=a.ref([]),gr=a.ref([]),rr=a.ref([]),kr=a.ref(null),wr=a.ref([]),Er=a.ref("");a.computed(()=>{var p;try{const f=(p=na.getAllLeafNodes(De.value)||[])==null?void 0:p.filter(O=>(O==null?void 0:O.type)!=="operate"&&(O==null?void 0:O.label)!=="操作"&&(O==null?void 0:O.prop)!=="operate"),M=new Map;return f==null||f.forEach(O=>{O!=null&&O.label&&(O!=null&&O.prop)&&M.set(O.label,O.prop)}),M.get("编号")||""}catch{return""}});const un=a.computed(()=>{var p;try{const f=(p=na.getAllLeafNodes(De.value)||[])==null?void 0:p.filter(O=>(O==null?void 0:O.type)!=="operate"&&(O==null?void 0:O.label)!=="操作"&&(O==null?void 0:O.prop)!=="operate"),M=new Map;return f==null||f.forEach(O=>{O!=null&&O.label&&(O!=null&&O.prop)&&M.set(O.label,O.prop)}),M.get("名称")||""}catch{return""}}),Jr=a.computed(()=>{var p;try{const f=(p=na.getAllLeafNodes(De.value)||[])==null?void 0:p.filter(O=>(O==null?void 0:O.type)!=="operate"&&(O==null?void 0:O.label)!=="操作"&&(O==null?void 0:O.prop)!=="operate"),M=new Map;return f==null||f.forEach(O=>{O!=null&&O.label&&(O!=null&&O.prop)&&M.set(O.label,O.prop)}),M.get("制造厂")||""}catch{return""}}),dn=()=>{Fl.value=!1,Ul.value=[],gr.value=[],rr.value=[],kr.value=null,wr.value=[],Er.value=""},Xr=p=>p==null?!1:typeof p=="string"?p.trim()!=="":Array.isArray(p)?p.length>0:!0,Ur=(p,f)=>{const M=(p==null?void 0:p.ocrRow)||{};for(const V of Object.keys(M))V==="id"||V==="_isOCRRow"||V==="_ocrTableId"||Xr(M[V])&&(f[V]=M[V]);const O=Ca.value.find(V=>V.id===f.id);if(O)for(const V of Object.keys(M))V==="id"||V==="_isOCRRow"||V==="_ocrTableId"||Xr(M[V])&&(O[V]=M[V]);fe.value&&fe.value.set(f.id,f),Pa(c==null?void 0:c.index,f.id,p==null?void 0:p.versionItem),gr.value=[...gr.value||[],JSON.parse(JSON.stringify(f))]},pn=async(p,f=null)=>{var M,O,V,N,Q,ae,j;try{const me=(M=na.getAllLeafNodes(De.value)||[])==null?void 0:M.filter(aa=>(aa==null?void 0:aa.type)!=="operate"&&(aa==null?void 0:aa.label)!=="操作"&&(aa==null?void 0:aa.prop)!=="operate"),Ce=new Map;me==null||me.forEach(aa=>{aa!=null&&aa.label&&(aa!=null&&aa.prop)&&Ce.set(aa.label,aa.prop)});const Le=Ce.get("系统编号")||Ce.get("编号");if(!Le){console.warn("未找到系统编号字段,跳过向检校记录表插入数据");return}const Me=f||kr.value;if((Array.isArray(Me==null?void 0:Me.result)?Me.result:[]).length===0){console.warn("OCR识别结果为空,跳过向检校记录表插入数据");return}for(let aa=0;aa<p.length;aa++){const Va=p[aa],Da=Va[Le];if(!Da){console.warn(`第 ${aa+1} 条匹配行缺少系统编号,跳过`);continue}const la=`设备管理/试验设备/${Da}`,Wa=await I.getPageDataApi({platId:parseInt((O=Vl.value)==null?void 0:O.plat_id),pageName:la});if(!((V=Wa==null?void 0:Wa.data)!=null&&V.result)||!Array.isArray(Wa.data.result)){console.warn(`未找到详情页数据: ${la}`);continue}const sa=Wa.data.result.find(Qe=>(Qe==null?void 0:Qe.property_name)==="校检记录");if(!sa){console.warn(`详情页 ${la} 中未找到校检记录表`);continue}const Ra=(N=sa.contents)==null?void 0:N.find(Qe=>(Qe==null?void 0:Qe.key)&&Qe.key.startsWith("content_"));if(!Ra||!Ra.key){console.warn("校检记录表中未找到 content item");continue}const Na=Ra.key,ge=Array.isArray(Ra.value)?Ra.value:[];if(ge.length>=5){const ca=[...ge].sort((ha,Oa)=>{const dl=Number((ha==null?void 0:ha.create_time)||0),Za=Number((Oa==null?void 0:Oa.create_time)||0);return dl-Za})[0];ca!=null&&ca.id&&await I.pageBatchDeleteApi({platId:parseInt((Q=Vl.value)==null?void 0:Q.plat_id),changeContents:[{tableName:Na,tableContents:[{id:ca.id}]}]})}const ba=(ae=me==null?void 0:me.find(Qe=>(Qe==null?void 0:Qe.label)==="证书附件"))==null?void 0:ae.prop,ta=String(Date.now()),ce={id:ta},E=ge[0]||{},Oe=new Date().toISOString().split("T")[0];if(Object.keys(E||{}).forEach(Qe=>{if(Qe!=="id"){if(Qe==="证书附件"){ce[Qe]="";return}if(Qe==="校检日期"||Qe==="检校日期"){ce[Qe]=Va[Qe]||Va.校检日期||Va.检校日期||Oe;return}if(["校检周期","检校周期","校检结果","检校结果","计量状态","依据文件","证书编号"].includes(Qe)){ce[Qe]=Va[Qe]??"";return}ce[Qe]=Va[Qe]??""}}),ba&&Va[ba]){const Qe=Va[ba];if(Array.isArray(Qe)&&Qe.length>0)ce.证书附件=JSON.stringify(Qe.map(ca=>({url:(ca==null?void 0:ca.url)||"",name:(ca==null?void 0:ca.name)||(ca==null?void 0:ca.fileName)||"",fileName:(ca==null?void 0:ca.fileName)||(ca==null?void 0:ca.name)||""})).filter(ca=>ca.url||ca.name));else if(typeof Qe=="string")try{const ca=JSON.parse(Qe);ce.证书附件=Qe}catch{ce.证书附件=JSON.stringify([{url:Qe,name:Qe,fileName:Qe}])}}console.log(Na,"tableName","inspectionRecordRow",ce),await I.pageBatchAddApi({platId:parseInt((j=Vl.value)==null?void 0:j.plat_id),changeContents:[{tableName:Na,tableContents:[ce]}]});const xe=sa==null?void 0:sa.object_id;if(xe&&ta){const Qe=ba&&Va[ba]?Va[ba]:null;let ca=[],ha="",Oa=!1;if(Array.isArray(Qe)&&Qe.length>0){ca=Qe.map(bl=>({name:(bl==null?void 0:bl.name)||(bl==null?void 0:bl.fileName)||"",url:(bl==null?void 0:bl.url)||""})).filter(bl=>bl.url||bl.name);const Za=Qe[0];ha=(Za==null?void 0:Za.url)||"";const gl=(Za==null?void 0:Za.name)||(Za==null?void 0:Za.fileName)||"";Oa=String(gl).toLowerCase().endsWith(".pdf")||String(ha).toLowerCase().endsWith(".pdf")}else if(typeof Qe=="string")try{const Za=JSON.parse(Qe);Array.isArray(Za)?(ca=Za.map(gl=>({name:(gl==null?void 0:gl.name)||(gl==null?void 0:gl.fileName)||"",url:(gl==null?void 0:gl.url)||""})).filter(gl=>gl.url||gl.name),ca.length>0&&(ha=ca[0].url||"",Oa=String(ca[0].name).toLowerCase().endsWith(".pdf")||String(ha).toLowerCase().endsWith(".pdf"))):(ha=Qe,Oa=String(Qe).toLowerCase().endsWith(".pdf"))}catch{ha=Qe,Oa=String(Qe).toLowerCase().endsWith(".pdf")}const dl={ts:Date.now(),versionId:String(Date.now())+"_"+String(aa),label:new Date().toLocaleString(),certType:Va.证书类型||"",certNo:Va.证书编号||"",fileType:Oa?"pdf":"image",sourceUrl:Oa?ha:"",images:ca};Pa(xe,ta,dl)}}}catch(me){console.error("向校检记录表插入OCR识别结果失败:",me),ll.ElMessage.error("向校检记录表插入数据失败,请查看控制台")}},tn=p=>{const f=Array.isArray(p)?p:Ul.value||[];if(f.length===0){dn();return}if(f.find(N=>(N==null?void 0:N.__decision)==="replace"&&!(N!=null&&N.selectedTargetId))){ll.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}f.forEach(N=>{var ae;const Q=N==null?void 0:N.__decision;if(!(!Q||Q==="skip")){if(Q==="add"){Pa(c==null?void 0:c.index,(ae=N==null?void 0:N.ocrRow)==null?void 0:ae.id,N==null?void 0:N.versionItem),rr.value=[...rr.value||[],N.ocrRow];return}if(Q==="replace"){const j=N==null?void 0:N.selectedTargetId,me=(we.value||[]).find(Ce=>String(Ce==null?void 0:Ce.id)===String(j));if(!me)return;Ur(N,me)}}}),(gr.value||[]).length>0&&(we.value=[...we.value||[]]),(rr.value||[]).length>0&&(we.value=[...we.value||[],...rr.value||[]],Ca.value=[...Ca.value||[],...rr.value||[]],(rr.value||[]).forEach(N=>{var Q,ae;return(ae=(Q=fe.value)==null?void 0:Q.set)==null?void 0:ae.call(Q,N.id,N)})),Nr.value=we.value;const O=gr.value||[],V=rr.value||[];if(O.length>0&&(ze("change",{buttonName:"编辑",singleContent:O,content:we.value,relatedContents:c==null?void 0:c.related,index:c==null?void 0:c.index,parentTableId:c==null?void 0:c.parentTableId,columns:De.value,name:c==null?void 0:c.compName}),pn(O)),V.length>0){const N=kr.value;ze("change",{buttonName:"OCR批量新增",content:we.value,index:c==null?void 0:c.index,parentTableId:c==null?void 0:c.parentTableId,column:De.value,ocrRows:V,relatedContents:c==null?void 0:c.related,uploadedFiles:(Array.isArray(N==null?void 0:N.result)?N.result:[]).map(Q=>(Array.isArray(Q==null?void 0:Q.图片信息)?Q.图片信息:[]).map(ae=>({url:(ae==null?void 0:ae.url)||"",name:(ae==null?void 0:ae.name)||"",fileName:(ae==null?void 0:ae.name)||""})).filter(ae=>ae.url)),ocrResult:N,matchedCount:(O||[]).length,newCount:(V||[]).length})}ll.ElMessage.success("已提交候选处理结果"),dn()},Dr=rc(),Zr=a.computed(()=>Dr.getConfig()),Br=a.ref(),Il=a.ref(),qr=Zs(I.pinia),Nr=a.ref(),gn=a.ref(0),tt=I.useUnit(I.pinia),{selectIndex:Rn,selectMenu:An,selectTitle:bn}=I.storeToRefs(tt),{selectString:Zl}=I.storeToRefs(qr),xr=I.useLoginState(I.pinia),{loginUserInfo:Vl}=I.storeToRefs(xr),Hl=a.ref(720),Al=a.ref(!1),cr=a.ref(!1),ar=a.ref([]),Pl=a.ref(),Mr=a.ref(!0),Or=a.ref(!0),kn=a.ref([]),Cn=a.inject("contentRef");a.provide("contentRef",Cn),a.provide("getSuggestListForCell",uu),a.provide("getSuggestLoadingForCell",(p,f)=>{const M=`${p==null?void 0:p.id}:${(f==null?void 0:f.prop)||(f==null?void 0:f.property)}`;return y.value.get(M)||!1}),a.watch(()=>{var p;return(p=we.value)==null?void 0:p.length},p=>{be.total=p}),a.watch(()=>P.value,async()=>{var f,M,O,V,N,Q,ae,j,me,Ce,Le,Me,Ue,aa,Va,Da,la;if(((f=P.value)==null?void 0:f.length)===0||!((M=c==null?void 0:c.itemData)!=null&&M.find(Wa=>(Wa==null?void 0:Wa.key)==="columnPath"))||!((O=c==null?void 0:c.itemData)!=null&&O.find(Wa=>(Wa==null?void 0:Wa.key)==="pageColumn")))return;let p=(me=(j=(ae=(Q=(N=(V=c==null?void 0:c.itemData)==null?void 0:V.find(Wa=>(Wa==null?void 0:Wa.key)==="pageColumn"))==null?void 0:N.contents)==null?void 0:Q.split("["))==null?void 0:ae[1])==null?void 0:j.split("]"))==null?void 0:me[0];((Ue=(Me=(Le=(Ce=c==null?void 0:c.itemData)==null?void 0:Ce.find(Wa=>(Wa==null?void 0:Wa.key)==="pageColumn"))==null?void 0:Le.contents)==null?void 0:Me.split("["))==null?void 0:Ue[0])+((Va=(aa=P.value)==null?void 0:aa.find(Wa=>(Wa==null?void 0:Wa.key)===p))==null?void 0:Va.value),(la=(Da=c==null?void 0:c.itemData)==null?void 0:Da.find(Wa=>(Wa==null?void 0:Wa.key)==="pageGroup"))==null||la.contents,Oi(compData,c.allMapContents)},{deep:!0});const fn=p=>{var M,O,V,N,Q;const f=(O=(M=De.value)==null?void 0:M.filter(ae=>ae==null?void 0:ae.mainKey))==null?void 0:O.map(ae=>ae==null?void 0:ae.prop);if(f.length===0){const ae=(V=De.value)==null?void 0:V.map(j=>j==null?void 0:j.prop);return(N=ae==null?void 0:ae.map(j=>p==null?void 0:p[j]))==null?void 0:N.join("|")}return(Q=f==null?void 0:f.map(ae=>p==null?void 0:p[ae]))==null?void 0:Q.join("|")},Pn=p=>{var ae,j,me,Ce,Le;const f=(j=(ae=De.value)==null?void 0:ae.filter(Me=>Me==null?void 0:Me.required))==null?void 0:j.map(Me=>Me==null?void 0:Me.prop),M=[];if(p==null||p.forEach(Me=>{f==null||f.forEach(Ue=>{const aa=Me[Ue];(aa==null||aa==="")&&(M.includes(Ue)||M.push(Ue))})}),M.length>0)return ll.ElMessage.warning(`请填写必填项:${M.join("、")}`);const O=new Map,V=new Map;(me=we.value)==null||me.forEach(Me=>{const Ue=fn(Me);O.set(Ue,Me)}),p==null||p.forEach(Me=>{const Ue=fn(Me);V.set(Ue,Me)});const N=p==null?void 0:p.filter(Me=>O.has(fn(Me))),Q=(Ce=we.value)==null?void 0:Ce.filter(Me=>V.has(fn(Me)));return(N==null?void 0:N.length)>0&&(u.columns=(Le=De.value)==null?void 0:Le.filter(Me=>(Me==null?void 0:Me.label)!=="操作"),u.existRows=Q,u.tableData=N,u.show=!0),p==null?void 0:p.filter(Me=>{const Ue=fn(Me);return!O.has(Ue)})},zn=a.ref(""),hn=a.ref(null),En=async()=>{var p,f,M,O,V,N;try{const Q=await I.quoteApi({related:[{menus:ga.value,groups:c==null?void 0:c.compName}],platId:parseInt((p=Vl.value)==null?void 0:p.plat_id)});if(((f=Q==null?void 0:Q.data)==null?void 0:f.code)===200){hn.value=(M=Q==null?void 0:Q.data)==null?void 0:M.result;const ae=(O=De.value)==null?void 0:O.map(Ce=>(Ce==null?void 0:Ce.prop)||(Ce==null?void 0:Ce.label)),j=Mn(ae,(V=Q==null?void 0:Q.data)==null?void 0:V.result),me=j==null?void 0:j.flatMap(Ce=>Ce==null?void 0:Ce.quote);(me==null?void 0:me.length)>0&&(zn.value=(N=me==null?void 0:me.map(Ce=>Ce==null?void 0:Ce.menus))==null?void 0:N.join("、"))}}catch(Q){throw new Error(Q)}};function Mn(p,f){var M;return(M=f.filter(O=>O.struct&&Array.isArray(O.struct)?O.struct.some(V=>V.words&&Array.isArray(V.words)?V.words.some(N=>p.includes(N)):!1):!1))==null?void 0:M.map(O=>{const V={...O};return V.struct&&Array.isArray(V.struct)&&(V.struct=V.struct.filter(N=>N.words&&Array.isArray(N.words)?N.words.some(Q=>p.includes(Q)):!1)),V})}const Kr=async(p,f)=>{var M,O,V,N,Q,ae,j,me,Ce,Le;try{hn.value||await En();const Me=f==null?void 0:f.map(Ra=>{const Na=Object.keys(Ra),ge={};return Na.forEach((ba,ta)=>{ge[p[ta]]=Ra[ba]}),ge}),Ue=Pn(Me);if(!Ue||(Ue==null?void 0:Ue.length)===0)return;const aa=[];let Va=(we.value||[]).slice();(Ue||[]).forEach(Ra=>{const Na={...Ra};try{Na.sort=Wn(0,Va)}catch{}aa.push(Na),Va.unshift(Na)});let Da=await I.quoteApi({platId:parseInt((M=Vl==null?void 0:Vl.value)==null?void 0:M.plat_id),type:"fatherSyncs",related:[{menus:ga.value,groups:""},{menus:ga.value,groups:c==null?void 0:c.compName}]});Da=(O=Da==null?void 0:Da.data)==null?void 0:O.result;let la=Da==null?void 0:Da.map(Ra=>({tableName:"content_"+(Ra==null?void 0:Ra.id),tableContents:aa==null?void 0:aa.map((Na,ge)=>({id:ge,...Na}))})),Wa=[{tableName:(V=c==null?void 0:c.related)==null?void 0:V.find(Ra=>Ra==null?void 0:Ra.includes("content")),tableContents:aa==null?void 0:aa.map((Ra,Na)=>({id:Na,...Ra}))}];Wa=[...Wa,...la];const sa=await I.pageBatchAddApi({platId:parseInt((N=Vl.value)==null?void 0:N.plat_id),changeContents:Wa});if(((Q=sa==null?void 0:sa.data)==null?void 0:Q.code)===200){const Ra={buttonName:"新增",columns:De.value,fixContent:aa==null?void 0:aa.map((ge,ba)=>({id:ba,...ge})),relatedContents:c==null?void 0:c.related};await yi(Ra),((ae=u==null?void 0:u.existRows)==null?void 0:ae.length)>0?ll.ElMessage.success("部分数据导入成功"):ll.ElMessage.success("数据导入成功");let Na=[];Wa==null||Wa.forEach(ge=>{var ba;(ba=ge==null?void 0:ge.tableContents)==null||ba.forEach(ta=>{Na.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(ta),request_result:"{}",is_delete:!1,request_table:ge==null?void 0:ge.tableName,request_type:"export"})})}),await I.pageBatchAddApi({platId:parseInt((j=Vl==null?void 0:Vl.value)==null?void 0:j.plat_id),changeContents:[{tableName:"log",tableContents:Na}]})}else{let Ra=[];Wa==null||Wa.forEach(Na=>{var ge;(ge=Na==null?void 0:Na.tableContents)==null||ge.forEach(ba=>{Ra.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(ba),request_result:"{}",is_delete:!1,request_table:Na==null?void 0:Na.tableName,request_type:"error"})})}),await I.pageBatchAddApi({platId:parseInt((me=Vl==null?void 0:Vl.value)==null?void 0:me.plat_id),changeContents:[{tableName:"log",tableContents:Ra}]}),ll.ElMessage.error("数据导入响应失败")}}catch(Me){throw ll.ElMessage.error("数据导入处理失败"),await I.pageBatchAddApi({platId:parseInt((Ce=Vl==null?void 0:Vl.value)==null?void 0:Ce.plat_id),changeContents:[{tableName:"log",tableContents:[{id:"1",request_method:"Post",request_url:"",request_param:JSON.stringify(t1),request_result:JSON.stringify(Me),is_delete:!1,request_table:(Le=c==null?void 0:c.related)==null?void 0:Le.find(Ue=>Ue==null?void 0:Ue.includes("content")),request_type:"error"}]}]}),new Error(Me)}},Sn=async p=>{var N,Q,ae,j,me,Ce,Le;let f=ke.value;f!=null&&f.find(Me=>(p==null?void 0:p.key)===(Me==null?void 0:Me.key))&&(f=f==null?void 0:f.filter(Me=>(p==null?void 0:p.key)!==(Me==null?void 0:Me.key))),f.push({key:p==null?void 0:p.key,value:[(Q=p==null?void 0:p.value)==null?void 0:Q[((N=p==null?void 0:p.value)==null?void 0:N.length)-1]]});let M=Z.value;M=M==null?void 0:M.map(Me=>{var Ue,aa;return(Me==null?void 0:Me.type)==="Select"&&(p==null?void 0:p.key)===(Me==null?void 0:Me.prop)&&Array.isArray(Me.value)&&(Ue=Me.value)!=null&&Ue.every(Va=>typeof Va=="string")&&(Me.selectValue=(aa=f==null?void 0:f.find(Va=>(Va==null?void 0:Va.key)===(Me==null?void 0:Me.prop)))==null?void 0:aa.value),Me});let O=(j=(ae=M==null?void 0:M.find(Me=>(Me==null?void 0:Me.prop)===(p==null?void 0:p.key)))==null?void 0:ae.optionUrl)==null?void 0:j.menuId,V=M==null?void 0:M.find(Me=>(Me==null?void 0:Me.prop)===(p==null?void 0:p.key));if(O){let Me=await fi(V==null?void 0:V.optionUrl,O),Ue,aa=q.value,Va=(Le=(Ce=(me=Z.value)==null?void 0:me.find(Da=>{var la;return(la=V==null?void 0:V.optionUrl)==null?void 0:la.menuId}))==null?void 0:Ce.selectValue)==null?void 0:Le[0];if(Me==null||Me.forEach(Da=>{var la,Wa,sa,Ra,Na,ge,ba,ta,ce,E;if(O){let Oe=(Wa=(la=Z.value)==null?void 0:la.find(Qe=>{var ca,ha;return((ca=V==null?void 0:V.optionUrl)==null?void 0:ca.menuId)===((ha=Qe==null?void 0:Qe.optionUrl)==null?void 0:ha.menuId)}))==null?void 0:Wa.prop,xe=(Ra=(sa=M==null?void 0:M.find(Qe=>(Qe==null?void 0:Qe.prop)===Oe))==null?void 0:sa.selectValue)==null?void 0:Ra[0];Oe!=null&&Oe.includes("·")&&(Oe=(Na=Oe==null?void 0:Oe.split("·"))==null?void 0:Na[0],xe=(ce=(ta=(ba=p==null?void 0:p.value)==null?void 0:ba[((ge=p==null?void 0:p.value)==null?void 0:ge.length)-1])==null?void 0:ta.split(" "))==null?void 0:ce[0]),aa!=null&&aa.find(Qe=>(Qe==null?void 0:Qe.value)===Va)?Ue=(E=aa==null?void 0:aa.find(Qe=>(Qe==null?void 0:Qe.value)===Va))==null?void 0:E.objectValue:Da[Oe]===xe&&(Ue=Da)}}),Ue){let Da=M;Da=Da==null?void 0:Da.map(la=>{var Wa,sa,Ra,Na,ge,ba;return O&&(Ue!=null&&Ue[la==null?void 0:la.prop])&&$e.value==="新增"&&(la==null?void 0:la.prop)!==(V==null?void 0:V.prop)?la.value=(Ue==null?void 0:Ue[la==null?void 0:la.prop])||(Ue==null?void 0:Ue[(Na=(Ra=(sa=(Wa=la==null?void 0:la.optionUrl)==null?void 0:Wa.groupSelect)==null?void 0:sa[1])==null?void 0:Ra.replaceAll("[",""))==null?void 0:Na.replaceAll("]","")]):la.value=(ba=(ge=Z.value)==null?void 0:ge.find(ta=>(ta==null?void 0:ta.prop)===(la==null?void 0:la.prop)))==null?void 0:ba.value,la}),Z.value=Da}}ke.value=f},Fn=async p=>{var f,M,O,V,N;if((f=p==null?void 0:p.toString())!=null&&f.includes(".txt")||(M=p==null?void 0:p.toString())!=null&&M.includes(".cpt")||(O=p==null?void 0:p.toString())!=null&&O.includes(".cyd")){const Q=await ll.axios.get(p,{responseType:"blob",headers:{"Content-Type":"application/json"}}),ae=new Blob([Q.data],{type:"application/octet-stream;charset=UTF-8"});let j=URL.createObjectURL(ae);ee.value=[{name:(N=p==null?void 0:p.split("/"))==null?void 0:N[((V=p==null?void 0:p.split("/"))==null?void 0:V.length)-1],blobUrl:j}],Ha.value=!0}};a.onBeforeUnmount(()=>{Or.value=!1;let p=gn.value;gn.value=p+1});const Tr=a.reactive({prop:"",order:null}),jn=a.computed(()=>{const p=(we.value??[]).slice(),f=Tr.prop||X.prop,M=Tr.order||X.order;if(!f||!M)return p;const O=M==="ascending",V=Q=>{if(f)return Q&&Object.prototype.hasOwnProperty.call(Q,f)?Q[f]:f.includes(".")?f.split(".").reduce((ae,j)=>ae==null?ae:ae[j],Q):Q==null?void 0:Q[f]},N=Q=>{if(Q==null)return{ok:!1,value:NaN};if(typeof Q=="number")return{ok:Number.isFinite(Q),value:Q};const ae=String(Q).trim();if(ae==="")return{ok:!1,value:NaN};const j=ae.replace(/[,\s]/g,"");if(!/^[+-]?(\d+\.?\d*|\.\d+)$/.test(j))return{ok:!1,value:NaN};const me=Number(j);return{ok:Number.isFinite(me),value:me}};return p.sort((Q,ae)=>{const j=V(Q),me=V(ae);if(j==null&&me==null)return 0;if(j==null)return O?-1:1;if(me==null)return O?1:-1;const Ce=N(j),Le=N(me);if(Ce.ok&&Le.ok)return O?Ce.value-Le.value:Le.value-Ce.value;const Me=Na=>{if(Na==null)return{ok:!1,value:NaN};const ge=String(Na).trim();if(ge==="")return{ok:!1,value:NaN};const ba=ge.match(/^(-)?(\d+):(\d{1,2}):(\d{1,2})$/);if(!ba)return{ok:!1,value:NaN};const ta=ba[1]?-1:1,ce=Number(ba[2]),E=Number(ba[3]),Oe=Number(ba[4]);return[ce,E,Oe].some(xe=>Number.isNaN(xe))?{ok:!1,value:NaN}:E>=60||Oe>=60?{ok:!1,value:NaN}:{ok:!0,value:ta*(ce*3600+E*60+Oe)}},Ue=Me(j),aa=Me(me);if(Ue.ok&&aa.ok)return O?Ue.value-aa.value:aa.value-Ue.value;const Va=new Date(j).getTime(),Da=new Date(me).getTime(),la=!Number.isNaN(Va),Wa=!Number.isNaN(Da);if(la&&Wa)return O?Va-Da:Da-Va;const sa=String(j),Ra=String(me);return O?sa.localeCompare(Ra):Ra.localeCompare(sa)})}),on=a.computed(()=>{var M;const p=(be.currentPage-1)*be.pageSize,f=p+be.pageSize;return ze("getSliceContLength",be),(M=jn.value)==null?void 0:M.slice(p,f)}),Dt=p=>{be.currentPage=p,ze("getSliceContLength",be)},zo=p=>{var O;be.pageSize=p;const f=((O=we.value)==null?void 0:O.length)??0,M=p>0?Math.ceil(f/p):1;be.currentPage>M&&(be.currentPage=M||1,ll.ElMessage.warning("当前页超出范围,已自动跳转到最后一页")),ze("getSliceContLength",be)},Mo=({prop:p,order:f})=>{Tr.prop=p,Tr.order=f,be.currentPage=1};function xn(p){const f=[];function M(O,V=""){O.forEach(N=>{N.children&&N.children.length>0?M(N.children,N.prop):f.push(N.prop)})}return M(p),f}const Oo=(p,f)=>{var ae,j,me,Ce;let M=(j=(ae=De.value)==null?void 0:ae.map(Le=>Le==null?void 0:Le.prop))==null?void 0:j.filter(Le=>Le!=="operate");((me=De.value)==null?void 0:me.some(Le=>{var Me;return((Me=Le==null?void 0:Le.children)==null?void 0:Me.length)>0}))&&(M=xn((Ce=De.value)==null?void 0:Ce.filter(Le=>(Le==null?void 0:Le.prop)!=="operate")));let V;if(V=(p==null?void 0:p.length)===(M==null?void 0:M.length)?p:p.slice(0,M==null?void 0:M.length),!(V==null?void 0:V.every(Le=>M==null?void 0:M.find(Me=>Le===Me))))return ll.ElMessage.error("导入的数据表头不匹配");Kr(V,f)},Io=(p,f)=>{var V;const M=p==null?void 0:p.filter(N=>N!=="序号"),O=f==null?void 0:f.map(N=>{const Q=Object.entries(N);return Q.shift(),Object.fromEntries(Q)});Ge.setRefreshCurStructure(!1),((V=De.value)==null?void 0:V.length)===0||Oo(M,O)},Lo=(p,f,M,O)=>{const V=[],N=[],Q=me=>Object.keys(me).length;for(const me in p)if(p[me]!==void 0){const Ce=p[me],Le=[];for(const[Me,Ue]of Object.entries(Ce))Le.push(Ue),N.length<Q(Ce)&&N.push(Me);V.push(Le)}V.unshift(N);const ae=na.utils.aoa_to_sheet(V),j=na.utils.book_new();na.utils.book_append_sheet(j,ae,O),na.writeFileSync(j,`${f}.xlsx`),ar.value=[]},Bt=async(p,f,M,O=!1,V)=>{var N,Q,ae,j,me,Ce,Le,Me;try{Ge.setRefreshCurStructure(!1);const Ue=await yr.getInsofDataApi({id:c==null?void 0:c.index});if(((N=Ue==null?void 0:Ue.data)==null?void 0:N.code)===200){let aa=(me=(j=(ae=(Q=Ue==null?void 0:Ue.data)==null?void 0:Q.result)==null?void 0:ae[0])==null?void 0:j.value)==null?void 0:me.pageData;O?aa={...aa,compData:(Le=aa==null?void 0:aa.compData)==null?void 0:Le.map(Da=>{var la;return(Da==null?void 0:Da.key)==="header"?{...Da,contents:(la=Da==null?void 0:Da.contents)==null?void 0:la.map(Wa=>({...Wa,[p]:M}))}:Da})}:aa={...aa,compData:(Ce=aa==null?void 0:aa.compData)==null?void 0:Ce.map(Da=>{var la,Wa;return(Da==null?void 0:Da.key)==="header"?{...Da,contents:(la=Da==null?void 0:Da.contents)==null?void 0:la.map(sa=>{if(Array.isArray(sa))sa=sa==null?void 0:sa.map(Ra=>(Ra==null?void 0:Ra.prop)===(f==null?void 0:f.prop)?{...Ra,[p]:M}:Ra);else if((sa==null?void 0:sa.prop)===(f==null?void 0:f.prop))return{...sa,[p]:M};return sa})}:(Da==null?void 0:Da.key)==="tableToForm"&&V?{...Da,contents:(Wa=Da==null?void 0:Da.contents)==null?void 0:Wa.map(sa=>(sa==null?void 0:sa.prop)===(f==null?void 0:f.prop)?{...sa,[V]:M}:sa)}:Da})};const Va=await yr.updateInsofDataApi({id:c==null?void 0:c.index,value:{pageData:aa}});((Me=Va==null?void 0:Va.data)==null?void 0:Me.code)===200?(ll.ElMessage.success("编辑成功"),Ge.setRefreshCurStructure(!0)):ll.ElMessage.error("编辑响应失败")}}catch(Ue){ll.ElMessage.error(Ue)}},Ut=async(p,f)=>{await Bt("label",f,p)},Ir=async(p,f)=>{await Bt("columnType",f,p,!1,"type")},Vo=async({newRow:p,targetIndex:f})=>{var V;if(!Ie(c.config,{type:ra.TABLE}))return;const O=(be.currentPage-1)*be.pageSize+(f??0);p._isTemp=!0;try{(p.sort===void 0||p.sort===null||String(p.sort).trim()==="")&&(p.sort=Wn(O,we.value||[]))}catch{}we.value.splice(O,0,p),await a.nextTick(),b.value.has(p.id)||b.value.set(p.id,I.cloneDeep(p)),we.value=(V=we.value)==null?void 0:V.map(N=>({...N,tableEditType:(N==null?void 0:N.id)===p.id?"edit":(N==null?void 0:N.tableEditType)??"text"})),d.value.add(p.id),Al.value=!0},$o=(p,f,M,O=[])=>(!Array.isArray(f)||f.length===0||f.forEach(V=>{const N=V==null?void 0:V.prop;if(!N)return;let Q=p==null?void 0:p[N];if(Q==null||String(Q).trim()==="")return;Q=String(Q);const ae=new Set([...(Array.isArray(M)?M:[]).filter(Ce=>(Ce==null?void 0:Ce.id)!==(p==null?void 0:p.id)).map(Ce=>Ce==null?void 0:Ce[N]).filter(Ce=>Ce!=null).map(Ce=>String(Ce)),...(Array.isArray(O)?O:[]).map(Ce=>Ce==null?void 0:Ce[N]).filter(Ce=>Ce!=null).map(Ce=>String(Ce))]);if(!ae.has(Q))return;let j=1,me="";for(;me=`${Q}(${j})`,!!ae.has(me);)j++;p[N]=me}),p),Nt=async()=>{var V,N,Q,ae,j,me,Ce,Le;const p=Array.from(d.value||[]);if(p.length===0)return;const f=(N=na.getColumnChild((V=I.cloneDeep(De.value))==null?void 0:V.filter(Me=>(Me==null?void 0:Me.label)!=="操作")))==null?void 0:N.filter(Me=>(Me==null?void 0:Me.required)===!0);if((f==null?void 0:f.length)>0)for(let Me=0;Me<p.length;Me++){const Ue=p[Me],aa=(Q=we.value)==null?void 0:Q.find(Va=>(Va==null?void 0:Va.id)===Ue);if(aa)for(let Va=0;Va<f.length;Va++){const Da=f[Va],la=Da==null?void 0:Da.prop,Wa=(Da==null?void 0:Da.label)??la,sa=aa==null?void 0:aa[la];if(sa===""||sa===null||sa===void 0||Array.isArray(sa)&&sa.length===0){ll.ElMessage.error(`${Wa}不能为空`);return}}}const M=[],O=[];if(p.forEach(Me=>{var Wa;const Ue=(Wa=we.value)==null?void 0:Wa.find(sa=>(sa==null?void 0:sa.id)===Me);if(!Ue)return;if(Ue!=null&&Ue._isTemp){const Ra=(na.getAllLeafNodes(De.value)||[]).filter(E=>(E==null?void 0:E.mainKey)===!0||(E==null?void 0:E.isMainKey)===!0),Na=we.value.findIndex(E=>(E==null?void 0:E.id)===Me),ge=Na>=0?Na+1:we.value.length+1;$o(Ue,Ra,we.value,M);const ba={id:ge.toString()};(Ue==null?void 0:Ue.sort)!==void 0&&(Ue==null?void 0:Ue.sort)!==null&&String(Ue.sort).trim()!==""?ba.sort=String(Ue.sort):ba.sort=Wn(Na>=0?Na:we.value.length-1,we.value||[]),(na.getAllLeafNodes(De.value)||[]).filter(E=>(E==null?void 0:E.type)!=="operate"&&(E==null?void 0:E.label)!=="操作"&&(E==null?void 0:E.prop)!=="operate").forEach(E=>{const Oe=E==null?void 0:E.prop;if(Oe){const xe=Ue[Oe];xe!==void 0?ba[Oe]=xe??"":ba[Oe]=""}}),M.push(ba);return}const Va=(na.getAllLeafNodes(De.value)||[]).filter(sa=>(sa==null?void 0:sa.type)!=="operate"&&(sa==null?void 0:sa.label)!=="操作"&&(sa==null?void 0:sa.prop)!=="operate"),Da=new Set(Va.map(sa=>sa==null?void 0:sa.prop).filter(Boolean)),la={};for(const sa of Da)Object.prototype.hasOwnProperty.call(Ue,sa)&&(la[sa]=Ue[sa]);O.push({id:Ue.id,value:{tableData:la}})}),Ge.setTableLoading(c==null?void 0:c.index),O.length>0){const Me=O.map(aa=>{const Va={id:aa.id,...aa.value.tableData};return delete Va._isOCRRow,delete Va._ocrTableId,delete Va._isTemp,delete Va.tableEditType,delete Va.index,Va}),Ue=[{tableName:(ae=c==null?void 0:c.related)==null?void 0:ae.find(aa=>aa==null?void 0:aa.includes("content")),tableContents:Me}];try{await I.pageBatchUpdateApi({platId:parseInt((j=Vl.value)==null?void 0:j.plat_id),changeContents:Ue})}catch(aa){ll.ElMessage.error(((Ce=(me=aa==null?void 0:aa.response)==null?void 0:me.data)==null?void 0:Ce.message)||(aa==null?void 0:aa.message)||"保存失败"),Ge.setTableLoading(!1);return}}if(M.length>0){const Me={fixContent:M,buttonName:"新增",relatedContents:c==null?void 0:c.related,name:c==null?void 0:c.compName,columns:De.value};ze("change",Me)}ll.ElMessage.success("保存成功"),d.value.clear(),b.value.clear(),we.value=(Le=we.value)==null?void 0:Le.map(Me=>({...Me,tableEditType:"text"})),Al.value=!1,Ge.setRefreshCurStructure(!0)},Ro=()=>{var f;const p=Array.from(d.value||[]);if(p.length===0){Al.value=!1;return}p.forEach(M=>{var N,Q;const O=b.value.get(M),V=(N=we.value)==null?void 0:N.find(ae=>(ae==null?void 0:ae.id)===M);if(V!=null&&V._isTemp){we.value=we.value.filter(ae=>(ae==null?void 0:ae.id)!==V.id);return}if(O){const ae=(Q=we.value)==null?void 0:Q.findIndex(j=>(j==null?void 0:j.id)===M);ae!==-1&&(we.value[ae]={...we.value[ae],...O})}}),d.value.clear(),b.value.clear(),we.value=(f=we.value)==null?void 0:f.map(M=>({...M,tableEditType:"text"})),Al.value=!1},Tt=a.ref(!1),qt=async p=>{var V,N,Q,ae;if(!Al.value||p!=null&&p.isComposing||(p==null?void 0:p.key)!=="Enter")return;const f=p==null?void 0:p.target;if(((N=(V=f==null?void 0:f.tagName)==null?void 0:V.toLowerCase)==null?void 0:N.call(V))==="textarea")return;const O=document.getElementById("excel-table");O&&!O.contains(f)||((Q=f==null?void 0:f.blur)==null||Q.call(f),(ae=p.preventDefault)==null||ae.call(p),await a.nextTick(),await Kt())},Kt=async()=>{if(R.value){Al.value=!1;return}if(!Tt.value){Tt.value=!0;try{Array.from(d.value||[]).length>0?await Nt():Al.value=!1}finally{Promise.resolve().then(()=>{Tt.value=!1})}}},Po=p=>{ar.value=p},Wt=(p,f)=>{Pl.value===f?Mr.value=!1:Mr.value=!0,Pl.value=f==null?void 0:f.changeProp},ot=p=>{if(!p)return;const{item:f,value:M}=p,O=Z.value.find(V=>V.prop==f.prop);O&&O.contents.push({label:M,value:M})},Qr=a.computed(()=>{var M,O,V;const p=(M=De.value)==null?void 0:M.some(N=>N==null?void 0:N.filterable);return document.documentElement.style.setProperty("--ssTable-header-filter-display",p?"inline-block":"none"),(V=(O=De.value)==null?void 0:O.filter(N=>(N==null?void 0:N.label)!=="操作"))==null?void 0:V.map(N=>({...N,filterable:!!(N!=null&&N.filterable),showSummary:!!(N!=null&&N.showSummary),operable:!!(N!=null&&N.operable),fixed:N==null?void 0:N.fixed}))}),Hn=async(p,f,M)=>{const O=I.cloneDeep(De.value);await a.nextTick();const V=O==null?void 0:O.map(Q=>(M==null?void 0:M.label)===(Q==null?void 0:Q.label)?{...Q,[f]:p}:Q),N=At(V);await ss(c.index,N),De.value=V,ne.value=N},At=p=>{var V;const f=p||[];return((V=na.getAllLeafNodes(f)||[])==null?void 0:V.filter(N=>(N==null?void 0:N.prop)&&(N==null?void 0:N.type)!=="operate"&&(N==null?void 0:N.label)!=="操作"&&(N==null?void 0:N.prop)!=="operate")).map(N=>{const{prop:Q}=N;return Tf(Q,N)})},Yt=async p=>{let f=await zf(c.index);f||(f=At(p)),ne.value=f},Gt=async(p,f)=>{const M=I.cloneDeep(De.value),O=Q=>Array.isArray(Q)?Q.map(ae=>{const j=Array.isArray(ae==null?void 0:ae.children)&&ae.children.length>0,me={...ae};return(me==null?void 0:me.prop)==="operate"||(me==null?void 0:me.label)==="操作"||(me==null?void 0:me.type)==="operate"?(me.sortable=!1,me.filterable=!1,me.operable=!1):me.sortable=j?!1:!!p,j&&(me.children=O(me.children)),me}):Q,V=O(M),N=At(V);await ss(c.index,N),De.value=V,ne.value=N,await a.nextTick(),gn.value=gn.value+1},Jt=()=>{pa.value=!1},Un=p=>{ze("clickTrigger",p)},Xt=async p=>{var N,Q,ae,j,me,Ce,Le,Me,Ue,aa,Va,Da,la,Wa,sa;const f=p==null?void 0:p.row,M=p==null?void 0:p.rowData,O=p==null?void 0:p.suffix;if((N=f==null?void 0:f.toString())!=null&&N.includes(".urdf")||p!=null&&p.isUrdf||O!=null&&O.includes(".urdf")){if(f.includes(",")){ll.ElMessage.error("当前版本仅允许单个urdf预览!");return}if(B(f)){const Na={files:[Ne(f)],data:{}};se(Na);return}Ye.value=[{url:f,extension:ye(f)}],Sa.value=!0,te.value={data:I.cloneDeep(M)},Ke.value=!0;return}let V=[];if((Q=f==null?void 0:f.toString())!=null&&Q.includes(".stl")||(ae=f==null?void 0:f.toString())!=null&&ae.includes(".STL")||(j=f==null?void 0:f.toString())!=null&&j.includes(".obj")||(me=f==null?void 0:f.toString())!=null&&me.includes(".mtl")){const Ra=(Ce=f==null?void 0:f.toString())==null?void 0:Ce.split(","),Na=ia(Ra),ge=Na==null?void 0:Na[0];if(B(ge==null?void 0:ge.extension)){se({files:Na,data:{}});return}Ye.value=Na,Sa.value=!1,Ke.value=!0;return}if((Le=f==null?void 0:f.toString())!=null&&Le.includes(".stl")||(Me=f==null?void 0:f.toString())!=null&&Me.includes(".STL")||(Ue=f==null?void 0:f.toString())!=null&&Ue.includes(".obj")||(aa=f==null?void 0:f.toString())!=null&&aa.includes(".mtl")||O!=null&&O.includes(".stl")||O!=null&&O.includes(".STL")||O!=null&&O.includes(".obj")||O!=null&&O.includes(".mtl")){let Ra,Na=[],ge={};if(Array.isArray(f)?Ra=f:Ra=f==null?void 0:f.split(","),Ra==null||Ra.forEach(ba=>{ba.includes(".mtl")?Na.push(ba):ge.blob=ge.blob?ge.blob+","+ba:ba}),(Na==null?void 0:Na.length)>0&&(ge.mtlBlobs=Na),O&&(ge.suffix=O),(Da=(Va=Object.values(ge))==null?void 0:Va[0])!=null&&Da.includes("http:"))V.push(ge);else{const ba=new Blob([ge.blob],{type:"application/octet-stream;charset=UTF-8"});let ta=URL.createObjectURL(ba),ce="";(la=f==null?void 0:f.split("/"))==null||la.forEach((E,Oe)=>{var xe;Oe===((xe=f==null?void 0:f.split("/"))==null?void 0:xe.length)-1&&(ce=E)}),(Wa=ge.blob)!=null&&Wa.includes(".stl")&&(ce=(ce==null?void 0:ce.replaceAll(">",""))+".urdf"),ee.value=[{name:ce,blobUrl:ta}],Ha.value=!0}}else{const Ra=await ll.axios.get(f,{responseType:"blob",headers:{"Content-Type":"application/json"}}),Na=new Blob([Ra.data],{type:"application/octet-stream;charset=UTF-8"});let ge=URL.createObjectURL(Na),ba="";if((sa=f==null?void 0:f.split("/"))==null||sa.forEach((ta,ce)=>{var E;ce===((E=f==null?void 0:f.split("/"))==null?void 0:E.length)-1&&(ba=ta)}),B(ba)){const ta=le(ba),ce=Ne(f);se({files:[ce],data:{trackFileType:ta}});return}ee.value=[{name:ba,blobUrl:ge}],Ha.value=!0}(V==null?void 0:V.length)>0&&t.setBlobUrls(V)},qn=p=>{var O,V,N,Q;if(p!=null&&p.downloadUrl)return p==null?void 0:p.name;const f=(Q=(O=p==null?void 0:p.url)==null?void 0:O.split("."))==null?void 0:Q[((N=(V=p==null?void 0:p.url)==null?void 0:V.split("."))==null?void 0:N.length)-1];return(p==null?void 0:p.name)+"."+f},Zt=p=>{if(!p)return"未知文件";try{const O=qn(p);if(typeof O=="string"&&O.includes("."))return O}catch{}const f=(p==null?void 0:p.fileName)||(p==null?void 0:p.name)||"未知文件",M=(p==null?void 0:p.suffix)||"";return f.includes(".")?f:`${f}${M}`},Qt=p=>{if(p==null||typeof p=="number"||typeof p!="string")return p;const f=p.match(/^(\d+)\_(\d+)$/);if(!f)return p;const M=Number(f[1]),O=Number(f[2]);return!Number.isFinite(M)||!Number.isFinite(O)?p:String(M*1e3+O)},Kn=p=>{if(p==null)return null;const f=String(p).trim();if(!f)return null;const M=Number(f);return Number.isFinite(M)?M:null},Fo=p=>{if(p==null)return null;const f=String(p).trim();if(!f)return null;if(/^\d+$/.test(f)){const V=Number(f);return Number.isFinite(V)?f.length<=10?V*1e3:V:null}const M=f.includes("T")?f:f.replace(" ","T"),O=Date.parse(M);return Number.isFinite(O)?O:null},it=(p,f=[])=>{const M=Array.isArray(p)?p.slice():[];if(M.length<=1)return M;const O=new Map((f||[]).map((Q,ae)=>[String(Q),ae])),V=M.some(Q=>Kn(Q==null?void 0:Q.sort)!==null),N=M.map((Q,ae)=>({r:Q,idx:ae,id:String((Q==null?void 0:Q.id)??""),sortVal:Kn(Q==null?void 0:Q.sort),createTimeMs:Fo(Q==null?void 0:Q.create_time),prevIdx:O.has(String(Q==null?void 0:Q.id))?O.get(String(Q==null?void 0:Q.id)):Number.POSITIVE_INFINITY}));return N.sort((Q,ae)=>{if(V){const Ce=Q.sortVal,Le=ae.sortVal;if(Ce===null&&Le!==null)return 1;if(Ce!==null&&Le===null)return-1;if(Ce!==null&&Le!==null&&Ce!==Le)return Ce-Le}const j=Q.createTimeMs,me=ae.createTimeMs;return j!==null&&me!==null&&j!==me?me-j:j!==null&&me===null?-1:j===null&&me!==null?1:Q.prevIdx!==ae.prevIdx?Q.prevIdx-ae.prevIdx:Q.idx-ae.idx}),N.map(Q=>Q.r)},Wn=(p,f=[])=>{const M=f==null?void 0:f[p-1],O=f==null?void 0:f[p],V=Kn(M==null?void 0:M.sort),N=Kn(O==null?void 0:O.sort);let Q=null;V!==null&&N!==null&&N>V?Q=(V+N)/2:V!==null?Q=V+1:N!==null?Q=Math.max(N-1,0):Q=(p??0)+1;const ae=Number(Q.toFixed(6));return String(Number.isFinite(ae)?ae:Q)},st=async p=>{let f=null,M=null;if(p!=null&&p.id){const V=I.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});try{const N=await I.platformDownloadFile(p);f=URL.createObjectURL(N.data),M=Zt(p)}finally{V.close()}}else if(p!=null&&p.downloadUrl){const V=await ct(),N=I.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),Q=await ll.axios.post(p==null?void 0:p.url,null,{responseType:"blob",headers:{Authorization:V,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}).finally(()=>{N.close()}),ae=new Blob([Q.data],{type:"application/octet-stream;charset=UTF-8"});f=URL.createObjectURL(ae),M=p==null?void 0:p.name}else{const V=await I.platformDownloadFile({url:p==null?void 0:p.url});!p.url.toUpperCase().includes(".OBJ")&&!p.url.toUpperCase().includes(".STL")&&!p.url.toUpperCase().includes(".MTL")&&!p.url.toUpperCase().includes(".URDF")?(f=URL.createObjectURL(V.data),M=qn(p)):f=p==null?void 0:p.url}if(B(f)){const V={row:`${f}`,suffix:ye(M)};Xt(V);return}const O={name:M,blobUrl:f};ee.value=[O],Ha.value=!0},jo=async p=>{let f=null,M=null;if(p!=null&&p.id){const N=await I.platformDownloadFile(p);f=URL.createObjectURL(N.data),M=Zt(p)}else if(p!=null&&p.downloadUrl){const N=await ct(),Q=await ll.axios.post(p==null?void 0:p.url,null,{responseType:"blob",headers:{Authorization:N,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}),ae=new Blob([Q.data],{type:"application/octet-stream;charset=UTF-8"});f=URL.createObjectURL(ae),M=p==null?void 0:p.name}else{const N=await I.platformDownloadFile({url:p==null?void 0:p.url});f=URL.createObjectURL(N.data),M=qn(p)}const O={name:M,blobUrl:f},V=document.createElement("a");V.href=O.blobUrl,V.download=O.name,V.style.display="none",document.body.appendChild(V),V.click(),setTimeout(()=>{document.body.removeChild(V)},100)},zt=(p,f)=>{var O;if(Object.values(f).length===0)return;let M=p;return Object.values(f).find(V=>{var N,Q,ae;return((N=V==null?void 0:V.toString())==null?void 0:N.includes(".txt"))||((Q=V==null?void 0:V.toString())==null?void 0:Q.includes(".cpt"))||((ae=V==null?void 0:V.toString())==null?void 0:ae.includes(".obj"))})?M=[...p,Se.value]:(O=c==null?void 0:c.config)!=null&&O.allowMove&&(M=[...p,{label:"迁移"}]),M},Ho=()=>{H.value=!0},Uo=a.ref([]),eo=async(p,f,M=!1)=>{var Q,ae,j,me;if(!p)return;if(M){we.value=[...fe.value.values()].filter(Ce=>Object.values(Ce).some(Le=>typeof Le=="string"?Le==null?void 0:Le.toLowerCase().includes(f==null?void 0:f.toLowerCase()):!1));return}let O={};for(let Ce in p)(p==null?void 0:p[Ce])!==""&&(O[Ce]=p==null?void 0:p[Ce]);if(JSON.stringify(O)==="{}"){we.value=Array.from(((Q=fe.value)==null?void 0:Q.values())??[]);return}let V=(ae=c==null?void 0:c.related)==null?void 0:ae.find(Ce=>Ce==null?void 0:Ce.includes("content_")),N=await I.getFillFind({platId:parseInt((j=Vl==null?void 0:Vl.value)==null?void 0:j.plat_id),tableName:V,params:O});N=(me=N==null?void 0:N.data)==null?void 0:me.result,we.value=N,Ge.setTableLoading(!1)},Yn=async p=>{var M,O;if(!Ie(c.config,{type:ra.TABLE})||!p)return;((M=Array.from(d.value))==null?void 0:M.length)>0&&await Nt();const f=p==null?void 0:p.id;f!=null&&(d.value.clear(),b.value.clear(),b.value.has(f)||b.value.set(f,I.cloneDeep(p)),we.value=(O=we.value)==null?void 0:O.map(V=>({...V,tableEditType:(V==null?void 0:V.id)===f?"edit":"text"})),d.value.add(f),Al.value=!0)},vn=async(p,f,M,O)=>{O!=null&&O.isExistChild&&ze("clickMainKey",p,M,De.value)},ao=()=>{Ha.value=!1},Mt=p=>{ze("rowClick",p)};a.watch(()=>c.changedContent,()=>{var M,O;if(!c.changedContent)return;let p=(M=we.value)==null?void 0:M.map(V=>{var N;return V.id===((N=c.changedContent)==null?void 0:N.id)&&(V={...c.changedContent,id:c.changedContent.newId?c.changedContent.newId:c.changedContent.id},delete V.newId),V});const f=(O=c.itemData)==null?void 0:O.map(V=>((V==null?void 0:V.key)==="tableContents"&&(V.contents=p),V));we.value=p,ze("contentChange",{contents:f,index:c.index}),ze("change",{content:p,index:c==null?void 0:c.index,buttonName:"",id:c==null?void 0:c.index})},{deep:!0,immediate:!0});const qo=()=>{},Ko=async()=>{const p=ga.value,f=sessionStorage.getItem("systemKey"),M=await na.getItemData(p,f,""),O=(M==null?void 0:M.find(ae=>(ae==null?void 0:ae.name)==="方法明细"))||(M==null?void 0:M[0]),V=(O==null?void 0:O.compData)||[],N=V==null?void 0:V.find(ae=>{const j=ae==null?void 0:ae.key;return j==="formContent"||j==="tableContents"});return N==null?void 0:N.contents},ct=async()=>{const f=ll.Local.get("access-token");return f?`Bearer ${f}`:""},Wo=async(p,{token:f,inputData:M}={})=>await ll.axios.post(p,M,{headers:{Authorization:f}}).catch(V=>(ea.setImportLoading(!1),Promise.reject(V))),Yo=p=>{var O;let f={};const M=[];return f.form={},(O=I.cloneDeep(p))==null||O.forEach((V,N)=>{var Q,ae,j,me,Ce,Le,Me,Ue,aa,Va,Da,la,Wa,sa;if((V==null?void 0:V.comp)==="Table"){(ae=(Q=V==null?void 0:V.compData)==null?void 0:Q.find(ba=>(ba==null?void 0:ba.key)==="header"))==null||ae.contents;let Ra=(Ce=(me=(j=V==null?void 0:V.compData)==null?void 0:j.find(ba=>(ba==null?void 0:ba.key)==="tableContents"))==null?void 0:me.contents)==null?void 0:Ce.map(ba=>ba.slice(1));(Va=(aa=(Ue=(Me=(Le=V==null?void 0:V.compData)==null?void 0:Le.find(ba=>(ba==null?void 0:ba.key)==="header"))==null?void 0:Me.contents)==null?void 0:Ue[0])==null?void 0:aa[0])==null||Va.label;let Na=(la=(Da=V==null?void 0:V.compData)==null?void 0:Da.find(ba=>(ba==null?void 0:ba.key)==="header"))==null?void 0:la.contents,ge=[];Ra==null||Ra.forEach(ba=>{let ta=[];ba==null||ba.forEach((ce,E)=>{var xe;let Oe={};((xe=Na[E])==null?void 0:xe.label)!=="操作"&&(Oe[Na[E].label]=ce,ta.push(Oe))}),ge.push(ta)}),f[V.name]=ge}else{const Ra=(sa=(Wa=V.compData)==null?void 0:Wa.find(Na=>(Na==null?void 0:Na.key)==="formContent"))==null?void 0:sa.contents;Ra==null||Ra.forEach(Na=>{var ge,ba;if(Na.prop!==""){let ta=Na==null?void 0:Na.value;Array.isArray(ta)?ta=((ge=ta==null?void 0:ta[0])==null?void 0:ge.oldUrl)||"http://222.92.178.198:62001/"+((ba=ta==null?void 0:ta[0])==null?void 0:ba.url):ta=ta.toString(),Na={key:(Na==null?void 0:Na.prop)??(Na==null?void 0:Na.label),value:ta},M.push(Na)}})}}),f.form=na.getFormContents(M),f},Go=p=>{const f=[],M=O=>{O&&typeof O=="object"&&!Array.isArray(O)?Object.values(O).forEach(M):f.push(O)};return M(p),f},Jo=async(p,f,M)=>{var Na,ge,ba,ta,ce,E,Oe,xe,Qe,ca,ha,Oa,dl,Za,gl,bl,Rl;ea.setImportLoading(!0),Ge.setFreshContent(!1);let O=await Ko().catch(Ga=>(ea.setImportLoading(!1),Promise.reject(Ga)));O=O==null?void 0:O.filter(Ga=>{var El;return((El=Ga==null?void 0:Ga.find(Ya=>Ya==null?void 0:Ya.id))==null?void 0:El.id)===(f==null?void 0:f.id)});let V=na.getEqualChild([(Na=De.value)==null?void 0:Na.filter(Ga=>(Ga==null?void 0:Ga.label)!=="操作")]);const N=(ba=(ge=na.tableToForm(O,V))==null?void 0:ge[0])==null?void 0:ba.find(Ga=>{const El=Ga==null?void 0:Ga.key;return El==="Interface"||El==="方法体"}),Q=N==null?void 0:N.value;if(!Q){console.log("未搜索到isMain, 缺少算法执行接口"),ea.setImportLoading(!1);return}const ae=De.value?na.getEqualChild([De.value]):[],j=ae.find(Ga=>{const El=Ga==null?void 0:Ga.prop;return El==="Input1"||El==="输入数据.输入1"||El==="样本输入数据"}),me=j==null?void 0:j.prop;let Ce=f==null?void 0:f[me];const Le=await ct().catch(Ga=>(ea.setImportLoading(!1),Promise.reject(Ga)));let Me=!0,Ue="";(ta=De.value)==null||ta.forEach(Ga=>{(Ga==null?void 0:Ga.prop)===me&&(Me=!!(Ga!=null&&Ga.childPath),Ue=Ga==null?void 0:Ga.childPath)});let aa="";if(Me){let Ga=(E=(ce=De.value)==null?void 0:ce.find(vl=>(vl==null?void 0:vl.isMainKey)===!0))==null?void 0:E.prop;aa=f==null?void 0:f[Ga];let El=Ue==null?void 0:Ue.split(x),Ya=[];El==null||El.forEach((vl,Tl)=>{(El==null?void 0:El.length)-1===Tl&&Ya.push(aa),Ya.push(vl)}),Ya=Ya==null?void 0:Ya[0];let hl=await na.getItemData(Ya,sessionStorage.getItem("systemKey"),""),Qa=hl==null?void 0:hl.filter(vl=>(vl==null?void 0:vl.name)===me);Qa=Qa==null?void 0:Qa.map(vl=>{var Tl;return vl.compData=(Tl=vl==null?void 0:vl.compData)==null?void 0:Tl.map(Dl=>{var ur;return(Dl==null?void 0:Dl.key)==="tableContents"&&(Dl.contents=(ur=Dl==null?void 0:Dl.contents)==null?void 0:ur.filter(Ll=>(Ll==null?void 0:Ll[1])===(f==null?void 0:f[me]))),Dl}),vl}),(!Qa||(Qa==null?void 0:Qa.length)===0)&&(Qa=hl,Qa=Qa==null?void 0:Qa.map(vl=>{var Tl;return vl.compData=(Tl=vl==null?void 0:vl.compData)==null?void 0:Tl.map(Dl=>{var ur;return(Dl==null?void 0:Dl.key)==="tableContents"&&(Dl.contents=(ur=Dl==null?void 0:Dl.contents)==null?void 0:ur.filter(Ll=>{var wl,Nl;return(Ll==null?void 0:Ll[1])===(f==null?void 0:f[(Nl=(wl=De==null?void 0:De.value)==null?void 0:wl[0])==null?void 0:Nl.prop])})),Dl}),vl})),Ce=Yo(Qa)}const Va=await Wo(Q,{token:Le,inputData:Ce}).catch(Ga=>(ea.setImportLoading(!1),Promise.reject(Ga))),Da=(Oe=Va==null?void 0:Va.data)==null?void 0:Oe.data,la=ae.find(Ga=>(Ga==null?void 0:Ga.prop)==="Output1"),Wa=la==null?void 0:la.prop;let sa=[],Ra=[];if(Da&&((xe=Object.values(Da))==null?void 0:xe.length)>0){let Ga=[];const El=new FormData,Ya=(Qe=Go(Da))==null?void 0:Qe.map(async Qa=>{var vl,Tl;if(!Array.isArray(Qa)&&(Qa!=null&&Qa.includes("http"))){let Dl=await ll.axios.get(Qa,{responseType:"blob"}),ur=(Tl=Qa==null?void 0:Qa.split("/"))==null?void 0:Tl[((vl=Qa==null?void 0:Qa.split("/"))==null?void 0:vl.length)-1];El.append("files",Dl.data,ur)}else Ga.push(Qa)});if(await Promise.all(Ya),!na.isFormDataEmpty(El)){let Qa=await I.uploadAmountApi(El),vl=(ha=(ca=Qa==null?void 0:Qa.data)==null?void 0:ca.result)==null?void 0:ha.map(Tl=>{var Dl,ur,Ll,wl,Nl,Yl;return{name:(Yl=(Nl=(wl=(Dl=Tl==null?void 0:Tl.url)==null?void 0:Dl.split("/"))==null?void 0:wl[((Ll=(ur=Tl==null?void 0:Tl.url)==null?void 0:ur.split("/"))==null?void 0:Ll.length)-1])==null?void 0:Nl.split("."))==null?void 0:Yl[0],url:Tl==null?void 0:Tl.url}});Ga=[...Ga,...vl]}let hl={};for(let Qa in f)Qa!=="id"&&(hl[Qa]=f[Qa]);hl[Wa]=Ga,Ra.push({id:f==null?void 0:f.id,value:{tableData:hl}})}if((Ra==null?void 0:Ra.length)>0){const Ga=Ra.map(Ya=>{const hl={id:Ya.id,...Ya.value.tableData};return delete hl._isOCRRow,delete hl._ocrTableId,delete hl._isTemp,delete hl.tableEditType,delete hl.index,hl}),El=[{tableName:(Oa=c==null?void 0:c.related)==null?void 0:Oa.find(Ya=>Ya==null?void 0:Ya.includes("content")),tableContents:Ga}];await I.pageBatchUpdateApi({platId:parseInt((dl=Vl.value)==null?void 0:dl.plat_id),changeContents:El})}if((sa==null?void 0:sa.length)>0)try{await I.pageBatchAddApi({platId:parseInt((Za=Vl.value)==null?void 0:Za.plat_id),changeContents:[{tableName:(gl=c==null?void 0:c.related)==null?void 0:gl.find(Ga=>Ga==null?void 0:Ga.includes("content")),tableContents:sa.map(Ga=>{var Ya,hl,Qa;const El={id:((Ya=Ga==null?void 0:Ga.key)==null?void 0:Ya.id)??((hl=Ga==null?void 0:Ga.key)==null?void 0:hl.rowId)??(Ga==null?void 0:Ga.id),...((Qa=Ga==null?void 0:Ga.value)==null?void 0:Qa.tableData)||{}};return delete El._isOCRRow,delete El._ocrTableId,delete El._isTemp,delete El.tableEditType,delete El.index,Object.keys(El).forEach(vl=>{vl==="证书附件"&&Array.isArray(El[vl])&&(El[vl]=JSON.stringify(El[vl]))}),El})}]})}catch(Ga){ll.ElMessage.error(((Rl=(bl=Ga==null?void 0:Ga.response)==null?void 0:bl.data)==null?void 0:Rl.message)||(Ga==null?void 0:Ga.message)||"保存失败"),Ge.setTableLoading(!1);return}Lt(!0),ea.setImportLoading(!1),Ge.setFreshContent(!0)},lo=(p,f)=>(p=p==null?void 0:p.map(M=>{var O,V;return M!=null&&M.children&&((O=M.children)!=null&&O.find(N=>N.id===(f==null?void 0:f.id))?M.children=(V=M.children)==null?void 0:V.filter(N=>(N==null?void 0:N.id)!==(f==null?void 0:f.id)):M.children=lo(M.children,f)),M}),p),ut=a.ref(!1),Xo=()=>{ut.value=!0},i=async p=>{var M,O,V,N;ut.value=!1;const f=Array.isArray(p)?p:p?[p]:[];if(f.length!==0)for(const Q of f){const ae={name:Q.name||`capture-${Date.now()}.jpg`,url:URL.createObjectURL(Q),raw:Q,uid:Date.now()+Math.random()};wa.value.push(ae),zl(ae,"uploading"),$l(ae,0);try{const j=new FormData;j.append("file",Q,ae.name);const me=await I.platformUploadFile(j);ae.uploadResult=((M=me==null?void 0:me.data)==null?void 0:M.result)||{name:ae.name,url:"",fileName:ae.name},ml({name:((O=ae.uploadResult)==null?void 0:O.name)||ae.name,url:((V=ae.uploadResult)==null?void 0:V.url)||"",id:(N=ae.uploadResult)==null?void 0:N.id}),zl(ae,"uploaded"),$l(ae,100)}catch(j){console.error("文件上传失败:",j),ll.ElMessage.error(`文件 ${ae.name} 上传失败,请重试`),zl(ae,"pending"),$l(ae,0);const me=wa.value.findIndex(Ce=>Ce.uid===ae.uid);me>-1&&wa.value.splice(me,1)}}},o=a.reactive({title:"迁移至",show:!1,width:"20%",selectRow:null,from:c==null?void 0:c.index,to:null,contents:[],formRules:{groupName:[{required:!0,message:"输入不能为空",trigger:"blur"},{validator:(p,f,M)=>{f===(c==null?void 0:c.index)?M(new Error("选择源不能和目标源一致")):M()}}]},buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"确认",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]}),u=a.reactive({title:"温馨提示:检测到导入的以下数据,系统中已存在,请选择操作",show:!1,width:"70%",columns:[],tableData:[],existRows:[],buttonValue:[{label:"取消",value:"cancel",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"覆盖",render:"popover",value:"replace",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}],result:""}),m=()=>{u.show=!1},C=async p=>{var f,M,O,V,N,Q,ae,j;try{if(p==="cancel"&&(u.show=!1),p==="replace"&&((f=u==null?void 0:u.existRows)==null?void 0:f.length)>0){await I.pageBatchDeleteApi({platId:parseInt((M=Vl.value)==null?void 0:M.plat_id),changeContents:[{tableName:((O=c==null?void 0:c.related)==null?void 0:O.find(Ce=>Ce==null?void 0:Ce.includes("content_")))||((V=c==null?void 0:c.related)==null?void 0:V.find(Ce=>Ce==null?void 0:Ce.includes("content"))),tableContents:u==null?void 0:u.existRows}]});const me=await I.pageBatchAddApi({platId:parseInt((N=Vl.value)==null?void 0:N.plat_id),changeContents:[{tableName:(Q=c==null?void 0:c.related)==null?void 0:Q.find(Ce=>Ce==null?void 0:Ce.includes("content")),tableContents:(()=>{const Ce=(we.value||[]).filter(aa=>!((u==null?void 0:u.existRows)||[]).some(Va=>String(Va==null?void 0:Va.id)===String(aa==null?void 0:aa.id))),Le=(u==null?void 0:u.tableData)||[],Me=[];let Ue=Ce.slice();return Le.forEach(aa=>{const Va={...aa};try{Va.sort=Wn(0,Ue)}catch{}Me.push(Va),Ue.unshift(Va)}),Me.map((aa,Va)=>({id:Va,...aa}))})()}]});((ae=me==null?void 0:me.data)==null?void 0:ae.code)===200&&(await yi({buttonName:"新增",columns:De.value,fixContent:(j=u==null?void 0:u.tableData)==null?void 0:j.map((Ce,Le)=>({id:Le,...Ce})),relatedContents:c==null?void 0:c.related}),ll.ElMessage.success("数据导入替换成功"))}}catch{throw new Error(e)}finally{u.show=!1,u.columns=[],u.tableData=[],u.existRows=[]}},L=()=>{o.show=!1},U=p=>{var f,M;if((p==null?void 0:p.buttonName)==="取消")return o.show=!1;o.to=p==null?void 0:p.content,!(!(c!=null&&c.index)||!((f=o.to)!=null&&f.groupName))&&(c==null?void 0:c.index)!==((M=o.to)==null?void 0:M.groupName)&&(ze("change",{buttonName:"迁移",value:{from:o.from,to:o.to,data:o.selectRow}}),o.show=!1)},W=async p=>{var f,M,O,V;if(p){if(!Dr.validateFileSize(p.raw)){ll.ElMessage.warning(`文件大小不能超过 ${Zr.value.maxSize}MB`);const N=wa.value.findIndex(Q=>Q.uid===p.uid);N>-1&&wa.value.splice(N,1),de();return}if(!Dr.validateFileType(p.raw)){ll.ElMessage.warning("请上传图片文件");const N=wa.value.findIndex(Q=>Q.uid===p.uid);N>-1&&wa.value.splice(N,1),de();return}zl(p,"uploading"),$l(p,0);try{const N=new FormData;N.append("file",p.raw,p.name);const Q=await I.platformUploadFile(N);p.uploadResult=((f=Q==null?void 0:Q.data)==null?void 0:f.result)||{name:p.name,url:"",fileName:p.name},ml({name:((M=p.uploadResult)==null?void 0:M.name)||p.name,url:((O=p.uploadResult)==null?void 0:O.url)||"",id:(V=p.uploadResult)==null?void 0:V.id}),zl(p,"uploaded"),$l(p,100)}catch(N){console.error("文件上传失败:",N),ll.ElMessage.error(`文件 ${p.name} 上传失败,请重试`),zl(p,"pending"),$l(p,0);const Q=wa.value.findIndex(ae=>ae.uid===p.uid);Q>-1&&wa.value.splice(Q,1)}finally{de()}}},de=()=>{a.nextTick(()=>{const p=document.querySelector('.ocr-upload-input input[type="file"]');p&&(p.value="")})},Ve=async()=>{var M,O;if(sessionStorage.setItem("ocr_root_table_id",String((c==null?void 0:c.index)??"")),wa.value.length===0){ll.ElMessage.warning("请先选择要上传的图片");return}if(wa.value.filter(V=>{const N=yl(V);return N!=="uploaded"&&N!=="completed"&&N!=="failed"}).length>0){ll.ElMessage.warning("请等待所有文件上传完成后再开始识别");return}ma.value=!0,Ee.value=0;let f=null;try{wa.value.forEach(la=>{zl(la,"processing")});const V=Math.floor(Math.random()*10)+90;f=setInterval(()=>{Ee.value<V?Ee.value+=1:clearInterval(f)},50);const N=wa.value.map(la=>{var Wa,sa,Ra;return{name:((Wa=la.uploadResult)==null?void 0:Wa.name)||la.name,url:((sa=la.uploadResult)==null?void 0:sa.url)||"",fileName:((Ra=la.uploadResult)==null?void 0:Ra.fileName)||la.name}}),Q=Dr.extractTableHeaders(De.value),ae=N.map(la=>({name:(la==null?void 0:la.fileName)||(la==null?void 0:la.name),url:(la==null?void 0:la.url)||""})),j=await Dr.recognize(ae,Q);if(console.log(j,"ocrResult"),clearInterval(f),f=null,(j==null?void 0:j.code)===500||(j==null?void 0:j.type)==="error"||!(j!=null&&j.result)){Ee.value=0,wa.value.forEach(la=>{zl(la,"failed"),$l(la,0)}),ll.ElMessage.error((j==null?void 0:j.message)||"OCR识别失败,请重试"),ma.value=!1;return}Ee.value=V;const me=Array.isArray(j==null?void 0:j.result)?j.result:[];if(me.length===0){Ee.value=0,wa.value.forEach(la=>{zl(la,"failed"),$l(la,0)}),ll.ElMessage.warning("OCR识别未返回有效数据"),ma.value=!1;return}const Ce=new Set,Le=[];me.forEach((la,Wa)=>{const sa=la!=null&&la.数据&&typeof(la==null?void 0:la.数据)=="object"?la.数据:{},Ra=Array.isArray(la==null?void 0:la.图片信息)?la.图片信息:[],Na=new Map;Ra.forEach(ba=>{ba!=null&&ba.name&&Na.set(ba.name,ba.url||"")});const ge={_index:Wa,_certType:(la==null?void 0:la.证书类型)||"",_certNo:(la==null?void 0:la.证书编号)||"",_ocrImages:Ra,__ocrFieldMeta:{}};Object.entries(sa).forEach(([ba,ta])=>{let ce="",E=0,Oe=[],xe="";ta&&typeof ta=="object"&&!Array.isArray(ta)?(ce=(ta==null?void 0:ta.value)??"",E=(ta==null?void 0:ta.score)??0,Oe=Array.isArray(ta==null?void 0:ta.bboxNorm)?ta==null?void 0:ta.bboxNorm:[],xe=(ta==null?void 0:ta.imageName)||""):Array.isArray(ta)&&ta.length>=2?(ce=ta[0]??"",E=ta[1]??0):(ce=ta??"",E=0),ge[ba]=ce,ge[`${ba}_accuracy`]=E,Ce.add(ba),ge.__ocrFieldMeta[ba]={value:ce,score:E,bboxNorm:Oe,imageName:xe,imageUrl:xe&&Na.get(xe)||"",images:Ra}}),Le.push(ge)});const Me=[],Ue=new Set;Le.forEach(la=>{la&&Ce.forEach(Wa=>{const sa=la[`${Wa}_accuracy`];(typeof sa=="number"?sa>0:sa!=null&&String(sa).trim()!==""&&String(sa)!=="0")&&Ue.add(Wa)})}),Ce.forEach(la=>{Me.push({prop:la,label:la,editable:!0,minWidth:230}),Ue.has(la)&&Me.push({prop:`${la}_accuracy`,label:"准确率",editable:!1,minWidth:100,isAccuracy:!0})}),wa.value.forEach(la=>{zl(la,"completed")}),Ee.value=100,ve.value=Me,Ua.value=Le,xl.value=N,qa.value=j;const aa=["出厂编号","设备名称","制造厂"],Va=Me.filter(la=>la&&!la.isAccuracy&&typeof la.prop=="string").map(la=>la.prop),Da=["出厂编号","设备名称","制造厂"];ol.value=Va.filter(la=>Da.includes(la)),console.log("[OCR] 默认勾选字段 props:",ol.value),ue.value=2,ma.value=!1,Ba.value=!1}catch(V){console.error("OCR处理失败:",V),f&&(clearInterval(f),f=null),ll.ElMessage.error(((O=(M=V==null?void 0:V.response)==null?void 0:M.data)==null?void 0:O.message)||"OCR识别失败,请重试"),ma.value=!1,Ee.value=0,wa.value.forEach(N=>{zl(N,"pending"),$l(N,0)})}},he=p=>{if(p==null)return"";let f=String(p);return f=f.replace(/\s+/g," ").trim(),f=f.replace(/[!-~]/g,M=>String.fromCharCode(M.charCodeAt(0)-65248)),f=f.replace(/ /g," "),f=f.replace(/^(编号|No\.?|NO\.?|no\.?|SN\.?|sn\.?|序列号)\s*[::]?\s*/i,""),f},Xe=()=>{var la,Wa;const p=xl.value,f=qa.value,M=Ua.value;if(!M||M.length===0){ll.ElMessage.warning("暂无数据可添加");return}const O=(la=na.getAllLeafNodes(De.value)||[])==null?void 0:la.filter(sa=>(sa==null?void 0:sa.type)!=="operate"&&(sa==null?void 0:sa.label)!=="操作"&&(sa==null?void 0:sa.prop)!=="operate"),V=new Map,N=new Map,Q=(Wa=O==null?void 0:O.find(sa=>(sa==null?void 0:sa.label)==="证书附件"))==null?void 0:Wa.prop;O==null||O.forEach(sa=>{sa!=null&&sa.label&&(sa!=null&&sa.prop)&&(V.set(sa.label,sa.prop),N.set(sa.prop,sa.label))});const ae=Date.now(),j=sa=>String(ae*1e3+sa),me=[],Ce=[],Le=sa=>{const Ra=Co&&Co[sa]||[sa];for(const Na of Ra){const ge=V.get(Na);if(ge)return ge}return""},Me=Le("出厂编号"),Ue=Le("设备名称"),aa=Le("制造厂"),Va=[],Da=sa=>{var ce,E;if(!Q)return[];const Ra=(Array.isArray(p)?p[sa]:null)||null,Na=(Ra==null?void 0:Ra.url)||"",ge=(Ra==null?void 0:Ra.fileName)||(Ra==null?void 0:Ra.name)||"";return(String(ge).toLowerCase().endsWith(".pdf")||String(Na).toLowerCase().endsWith(".pdf"))&&Na?[{url:Na,name:ge,fileName:ge}]:(Array.isArray((E=(ce=f==null?void 0:f.result)==null?void 0:ce[sa])==null?void 0:E.图片信息)?f.result[sa].图片信息:[]).map(Oe=>({url:(Oe==null?void 0:Oe.url)||"",name:(Oe==null?void 0:Oe.name)||"",fileName:(Oe==null?void 0:Oe.name)||""})).filter(Oe=>Oe.url)};if(M.forEach((sa,Ra)=>{var dl;const Na={id:j(Ra),_isOCRRow:!0,_ocrTableId:c==null?void 0:c.index};for(const[Za,gl]of V.entries())Object.prototype.hasOwnProperty.call(sa,Za)&&(Na[gl]=sa[Za]);Q&&(Na[Q]=Da(Ra));const ge=(Array.isArray(f==null?void 0:f.result)?f.result[Ra]:null)||null,ba=(Array.isArray(p)?p[Ra]:null)||null,ta=(ba==null?void 0:ba.url)||"",ce=(ba==null?void 0:ba.fileName)||(ba==null?void 0:ba.name)||"",E=String(ce).toLowerCase().endsWith(".pdf")||String(ta).toLowerCase().endsWith(".pdf"),Oe={ts:Date.now(),versionId:String(Date.now())+"_"+String(Ra),label:new Date().toLocaleString(),certType:(ge==null?void 0:ge.证书类型)||"",certNo:(ge==null?void 0:ge.证书编号)||"",fileType:E?"pdf":"image",sourceUrl:E?ta:"",images:Array.isArray(ge==null?void 0:ge.图片信息)?ge.图片信息.map(Za=>({name:(Za==null?void 0:Za.name)||"",url:(Za==null?void 0:Za.url)||""})).filter(Za=>Za.url):[]},xe=Za=>he(Za?Na==null?void 0:Na[Za]:""),Qe=xe(Me),ca=xe(Ue),ha=xe(aa);if(!!(Me&&Ue&&aa&&Qe&&ca&&ha)){const Za=(we.value||[]).find(gl=>{const bl=he(Me?gl==null?void 0:gl[Me]:""),Rl=he(Ue?gl==null?void 0:gl[Ue]:""),Ga=he(aa?gl==null?void 0:gl[aa]:"");return bl&&Rl&&Ga&&bl===Qe&&Rl===ca&&Ga===ha});if(Za){Va.push({idx:Ra,ocrRow:Na,versionItem:Oe,ocrNo:Qe,candidates:[Za],selectedTargetId:String((Za==null?void 0:Za.id)??""),__decision:"replace",allowAdd:!1,allowReplace:!0});return}}if(Qe&&Me){const Za=(we.value||[]).filter(gl=>{const bl=he(Me?gl==null?void 0:gl[Me]:"");return bl&&bl===Qe});if(Za.length>0){Va.push({idx:Ra,ocrRow:Na,versionItem:Oe,ocrNo:Qe,candidates:Za,selectedTargetId:"",__decision:"",allowAdd:!0,allowReplace:!0});return}}try{if(Na.sort===void 0||Na.sort===null||String(Na.sort).trim()===""){const Za=(we.value||[]).map(bl=>Kn(bl==null?void 0:bl.sort)).filter(bl=>bl!==null),gl=Za.length>0?Math.max(...Za):((dl=we.value)==null?void 0:dl.length)??0;Na.sort=String(Number((gl+1).toFixed(6)))}}catch{}Pa(c==null?void 0:c.index,Na.id,Oe),Va.push({idx:Ra,ocrRow:Na,versionItem:Oe,ocrNo:Qe,candidates:[],selectedTargetId:"",__decision:"add",allowAdd:!0,allowReplace:!1})}),(Va||[]).length>0){Ul.value=(Va||[]).map(sa=>({...sa,selectedTargetId:(sa==null?void 0:sa.selectedTargetId)||""})),Fl.value=!0,gr.value=Ce,rr.value=me,kr.value=f,wr.value=p,Er.value=Q||"";return}},Ta=(p,f,M)=>{Ua.value[p]&&(Ua.value[p][f]=M)},tl=p=>p==null||p===0?"-":`${(Number(p)*100).toFixed(1)}%`,rl=p=>{if(p==null||p===0)return"#909399";const f=Number(p);return f>=.9?"#67c23a":f>=.7?"#e6a23c":"#f56c6c"},sl=p=>{var M,O,V,N;if(al.value===p){al.value=null,ul.value=!1,cl.value="";return}al.value=p,cl.value="";const f=(M=Ua.value)==null?void 0:M[p];if(f&&Array.isArray(f._ocrImages)&&f._ocrImages.length>0){Wl.value=f._ocrImages.map(j=>({name:(j==null?void 0:j.name)||"",url:(j==null?void 0:j.url)||""})).filter(j=>j.name||j.url);const Q=f.__ocrFieldMeta||{},ae=(O=Object.values(Q))==null?void 0:O.find(j=>j==null?void 0:j.imageName);Kl.value=(ae==null?void 0:ae.imageName)||((N=(V=Wl.value)==null?void 0:V[0])==null?void 0:N.name)||"",ul.value=Wl.value.length>0}else Wl.value=[],ul.value=!1,Kl.value=""},Cl=()=>{il.value=!1,wa.value=[],_a.value=null,ue.value=1,Fa.value.clear(),ja.value.clear(),Ee.value=0,ul.value=!1},_l=p=>p.raw?URL.createObjectURL(p.raw):p.url?p.url:"",yl=p=>{const f=p.uid||p.name;return Fa.value.get(f)||"pending"},jl=p=>{const f=p.uid||p.name;return ja.value.get(f)||0},$l=(p,f)=>{const M=p.uid||p.name;ja.value.set(M,Math.min(100,Math.max(0,f)))},Ol=p=>{const f=yl(p),M=100.53;if(f==="completed"||f==="uploaded")return`${M} ${M}`;if(f==="failed")return`${M} ${M}`;if(f==="uploading"){const O=jl(p);return`${M*(O/100)} ${M}`}else if(f==="processing")return`${M*.5} ${M}`;return`0 ${M}`},zl=(p,f)=>{const M=p.uid||p.name;Fa.value.set(M,f),(f==="completed"||f==="uploaded")&&$l(p,100)},Lr=()=>{a.nextTick(()=>{const p=document.querySelector('.ocr-upload-input input[type="file"]');if(p)p.value="",p.click();else{const f=document.createElement("input");f.type="file",f.multiple=!0,f.accept="image/*,application/pdf",f.style.display="none",f.onchange=async M=>{const O=Array.from(M.target.files||[]);for(const V of O){const N={name:V.name,raw:V,uid:Date.now()+Math.random()};wa.value.push(N),await W(N)}M.target.value="",document.body.removeChild(f)},document.body.appendChild(f),f.click()}})},mr=()=>{ue.value>1&&ue.value--},Fr=()=>{ue.value===1?wa.value.length>0&&!ma.value&&Ve():ue.value===2&&(Xe(),ue.value=3)},en=async p=>{await Gn(p==null?void 0:p.row)},mn=async({row:p,prop:f})=>{!p||!f||await Gn(p,f)},Gn=async(p,f)=>{var V,N;const M=p==null?void 0:p.id;if(!M){ll.ElMessage.warning("暂无可预览数据");return}let O=el(c==null?void 0:c.index,M);if(!O||O.length===0){const Q=sessionStorage.getItem("ocr_root_table_id"),ae=Q!==null?Number(Q):null;if(ae!=null&&ae!==""&&!Number.isNaN(ae)){const j=el(ae,M);Array.isArray(j)&&j.length>0&&(Ja(c==null?void 0:c.index,M,j),O=j)}}if(!O||O.length===0){const Q=(V=na.getAllLeafNodes(De.value)||[])==null?void 0:V.filter(j=>(j==null?void 0:j.type)!=="operate"&&(j==null?void 0:j.label)!=="操作"&&(j==null?void 0:j.prop)!=="operate"),ae=f||((N=Q==null?void 0:Q.find(j=>(j==null?void 0:j.label)==="证书附件"))==null?void 0:N.prop);if(ae&&p[ae]){const j=p[ae];let me=[],Ce="",Le=!1;if(typeof j=="string")try{const Me=JSON.parse(j);Array.isArray(Me)&&(me=Me.map(Ue=>({name:(Ue==null?void 0:Ue.name)||(Ue==null?void 0:Ue.fileName)||"",url:(Ue==null?void 0:Ue.url)||""})).filter(Ue=>Ue.url||Ue.name),me.length>0&&(Ce=me[0].url||"",Le=String(me[0].name).toLowerCase().endsWith(".pdf")||String(Ce).toLowerCase().endsWith(".pdf")))}catch{Ce=j,Le=String(j).toLowerCase().endsWith(".pdf"),me=[{name:j,url:j}]}else Array.isArray(j)&&(me=j.map(Me=>({name:(Me==null?void 0:Me.name)||(Me==null?void 0:Me.fileName)||"",url:(Me==null?void 0:Me.url)||""})).filter(Me=>Me.url||Me.name),me.length>0&&(Ce=me[0].url||"",Le=String(me[0].name).toLowerCase().endsWith(".pdf")||String(Ce).toLowerCase().endsWith(".pdf")));if(me.length>0||Ce){const Me={ts:Date.now(),versionId:String(Date.now()),label:new Date().toLocaleString(),certType:p.证书类型||"",certNo:p.证书编号||"",fileType:Le?"pdf":"image",sourceUrl:Le?Ce:"",images:me};O=[Me],Pa(c==null?void 0:c.index,M,Me)}}}if(!O||O.length===0){ll.ElMessage.warning("暂无可预览数据");return}va.value=O,oa.value=!0},Jn=p=>{wa.value=wa.value.filter((f,M)=>M!==p)},Zo=async(p,f,M)=>{var O,V,N,Q,ae,j,me,Ce,Le,Me,Ue,aa,Va,Da,la,Wa,sa,Ra,Na,ge,ba;if(Ie(c.config,{type:ra.TABLE,tableOperate:p})){if(Je.value="",Ea.value=!0,Ze.value=!0,ze("onButtonClick",p,f),q.value=[],p==="删除")I.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var ta,ce,E,Oe;(ta=we.value)!=null&&ta.find(xe=>(xe==null?void 0:xe.id)===(f==null?void 0:f.id))?we.value=(ce=I.cloneDeep(we.value))==null?void 0:ce.filter(xe=>(xe==null?void 0:xe.id)!==(f==null?void 0:f.id)):we.value=lo(I.cloneDeep(we.value),f);try{f!=null&&f.id&&((Oe=(E=fe.value)==null?void 0:E.has)!=null&&Oe.call(E,f==null?void 0:f.id))&&fe.value.delete(f.id)}catch{}rf(Nr.value,An.value,f==null?void 0:f.id),Ge.setTableLoading(c==null?void 0:c.index),ze("change",{content:we.value,fixContent:[f],index:c==null?void 0:c.index,type:"delete",name:c==null?void 0:c.compName,buttonName:p,columns:De.value,relatedContents:c==null?void 0:c.related}),console.log(f,"item")});else if(p==="批量删除"){if(((O=ar.value)==null?void 0:O.length)===0)return ll.ElMessage.warning("请先勾选操作的数据");I.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(async()=>{var E,Oe,xe,Qe,ca;const ta=(E=ar.value)==null?void 0:E.map(ha=>ha.id);we.value=(Oe=I.cloneDeep(we.value))==null?void 0:Oe.filter(ha=>!(ta!=null&&ta.includes(ha.id))),Ge.setTableLoading(c==null?void 0:c.index),ze("change",{content:we.value,fixContent:ar.value,index:c==null?void 0:c.index,type:"delete",name:c==null?void 0:c.compName,buttonName:p,relatedContents:c==null?void 0:c.related,columns:De.value});const ce=(ta||[]).filter(Boolean);if(ce.length>0&&ce.every(ha=>ha!=null&&ha!=="")){const ha=(ar.value||[]).map(Oa=>{const dl={...Oa};return delete dl._isOCRRow,delete dl._ocrTableId,delete dl._isTemp,delete dl.tableEditType,delete dl.index,dl});await I.pageBatchDeleteApi({platId:parseInt((xe=Vl.value)==null?void 0:xe.plat_id),changeContents:[{tableName:((Qe=c==null?void 0:c.related)==null?void 0:Qe.find(Oa=>Oa==null?void 0:Oa.includes("content_")))||((ca=c==null?void 0:c.related)==null?void 0:ca.find(Oa=>Oa==null?void 0:Oa.includes("content"))),tableContents:ha}]})}})}else if(p==="复制新增"){$e.value="复制新增",I.cloneDeep(f);const ta=(V=De.value)==null?void 0:V.find(ce=>ce==null?void 0:ce.isMainKey);ta||((N=De.value)==null||N[0]),Il.value=f,Lt(!0)}else if(p==="新增")$e.value="新增",Ot(""),pa.value=!0;else if(p==="编辑")$e.value="编辑",Ot(f),pa.value=!0;else if(p==="查看")$e.value="查看",Ot(f),Ea.value=!1,Ze.value=!1,pa.value=!0;else if(p==="查看三维模型"){const ta={};for(let E in f)E!=="id"&&(ta[E]=f[E]);let ce=(Q=Object.values(ta))==null?void 0:Q[1];Re.setTableShowThree(ce)}else if(p==="切换视图")nu();else if(((ae=M==null?void 0:M.extra)==null?void 0:ae.type)==="modelExample")$e.value=p,K.value=!0;else if(p==="新建"){let ta=oe.value,ce=[];for(let ca in ta)ca!=null&&ca.includes(`loading${((j=Vl.value)==null?void 0:j.account)||((me=Vl.value)==null?void 0:me.账号)}`)&&(ce=[...ce,...ca]);let E=[];for(let ca in ta)ca!=null&&ca.includes(`updateLoading${((Ce=Vl.value)==null?void 0:Ce.account)||((Le=Vl.value)==null?void 0:Le.账号)}`)&&(E=[...E,...ca]);let Oe=ce==null?void 0:ce.map(ca=>ca==null?void 0:ca.id);const xe=E==null?void 0:E.map(ca=>ca==null?void 0:ca.id);Oe=[...I.cloneDeep(Oe),...xe],(Oe==null?void 0:Oe.length)>0&&(Oe!=null&&Oe.every(ca=>ca!==null&&ca))&&await yr.batchDeleteInsofDataApi({ids:Oe});const Qe=(Me=_e.value)==null?void 0:Me.find(ca=>(ca==null?void 0:ca.label)==="新建");await Gc(!1,Qe)}else if(p==="修改模板"){let ta=I.cloneDeep(ga).value;Ge.setRouteToChildPath(ta),ea.setActiveMenuPath(ta+x)}else if(p==="执行")Jo(p,f);else if(p==="导出paraform"){const ta=I.ElLoading.service({lock:!0,text:"正在导出paraform...",background:"rgba(0, 0, 0, 0.7)"});try{const ce=["推力","真空","压力","温度","流量"],E=wl=>{var Nl,Yl,Ml;return wl?typeof(wl==null?void 0:wl.value)=="string"?wl.value:((Ml=(Yl=(Nl=wl==null?void 0:wl._custom)==null?void 0:Nl.value)==null?void 0:Yl.value)==null?void 0:Ml.value)||"":""},Oe=Array.isArray(bn.value)?bn.value:[],xe=E(Oe.find(wl=>(wl==null?void 0:wl.condition)==="child")),Qe=String(xe||"").slice(0,8),ca=wl=>{if(wl==null)return"";const Nl=String(wl).trim();if(!Nl)return"";if(/^\d{8}$/.test(Nl))return Nl;const Yl=Nl.match(/^(\d{4})[-\/.](\d{1,2})[-\/.](\d{1,2})$/);if(Yl){const dr=Yl[1],pr=Yl[2].padStart(2,"0"),Gl=Yl[3].padStart(2,"0");return`${dr}${pr}${Gl}`}const Ml=Nl.replace(/\D/g,"");return Ml.length>=8?Ml.slice(0,8):""},ha=async wl=>{var Nl,Yl;if(!wl)return"";try{const Ml=await Pr("试验任务/任务管理",!1),dr=(ir,lr=[])=>{if(!Array.isArray(ir))return lr;for(const nr of ir)(nr==null?void 0:nr.comp)==="Table"&&(nr!=null&&nr.name)&&lr.push(nr),Array.isArray(nr==null?void 0:nr.children)&&dr(nr.children,lr),Array.isArray(nr==null?void 0:nr.tab)&&dr(nr.tab,lr),Array.isArray(nr==null?void 0:nr.choice)&&dr(nr.choice,lr);return lr},Gl=dr(Ml||[]).find(ir=>(ir==null?void 0:ir.name)==="任务列表"),or=((Yl=(Nl=Gl==null?void 0:Gl.compData)==null?void 0:Nl.find(ir=>(ir==null?void 0:ir.key)==="tableContents"))==null?void 0:Yl.contents)||[];if(!Array.isArray(or)||or.length===0)return"";const $r=or.find(ir=>String((ir==null?void 0:ir["试验代号(名称)"])||"").slice(0,8)===wl);return ca($r==null?void 0:$r.计划试验时间)}catch(Ml){return console.warn("获取任务列表计划试验时间失败:",Ml),""}},Oa=(ga.value||"").replace(/\/+$/,""),dl=xe?`${Oa}/${xe}`:Oa,Za=await Pr(dl||ga.value,!1),gl=String(fa.value||"").trim(),bl=wl=>String(wl||"").trim(),Rl=(wl,Nl=[],Yl="")=>{if(!Array.isArray(wl))return Nl;for(const Ml of wl){const dr=bl((Ml==null?void 0:Ml.choiceName)||(Ml==null?void 0:Ml.name0)||Yl);(Ml==null?void 0:Ml.comp)==="Table"&&(Ml==null?void 0:Ml.name)&&ce.includes(Ml.name)&&(!gl||dr===gl)&&Nl.push(Ml),Array.isArray(Ml==null?void 0:Ml.children)&&Rl(Ml.children,Nl,dr),Array.isArray(Ml==null?void 0:Ml.tab)&&Rl(Ml.tab,Nl,dr),Array.isArray(Ml==null?void 0:Ml.choice)&&Rl(Ml.choice,Nl,dr)}return Nl},Ga=Rl(Za||[]),El=new Map;for(const wl of Ga)wl!=null&&wl.name&&!El.has(wl.name)&&El.set(wl.name,wl);const Ya=ce.map(wl=>El.get(wl)).filter(Boolean);if(!Ya||Ya.length===0)return ll.ElMessage.warning("未找到需要导出的表(推力、真空、压力、温度、流量)");const hl=wl=>{const Nl=new Map,Yl=(Ml,dr=[])=>{if(Array.isArray(Ml))for(const pr of Ml){const Gl=((pr==null?void 0:pr.label)??"").toString().trim(),or=Gl?[...dr,Gl]:[...dr];if(Array.isArray(pr==null?void 0:pr.children)&&pr.children.length>0)Yl(pr.children,or);else{const ir=((pr==null?void 0:pr.prop)??"").toString();if(!ir)continue;const lr=Gl||ir,nr=(or.length>0?[...dr,lr]:[lr]).join(".");Nl.set(ir,nr)}}};return Yl(wl,[]),Nl},Qa=(wl,Nl)=>{const Yl=hl(wl||[]),dr=(na.getAllLeafNodes(wl||[])||[]).filter(Gl=>(Gl==null?void 0:Gl.prop)&&(Gl==null?void 0:Gl.type)!=="operate"&&(Gl==null?void 0:Gl.label)!=="操作"&&(Gl==null?void 0:Gl.prop)!=="operate"),pr=Array.isArray(Nl)?Nl:[];return pr.length===0?[]:pr.map(Gl=>{const or={};return dr.forEach($r=>{const ir=String($r.prop),lr=Yl.get(ir)||String($r.label||$r.prop);or[lr]=(Gl==null?void 0:Gl[ir])??""}),or})},vl=Ya.map(wl=>{var pr,Gl;const Nl=(wl==null?void 0:wl.compData)||[];let Yl=(pr=Nl==null?void 0:Nl.find(or=>(or==null?void 0:or.key)==="header"))==null?void 0:pr.contents;Array.isArray(Yl==null?void 0:Yl[0])&&(Yl=Yl[0]);const Ml=((Gl=Nl==null?void 0:Nl.find(or=>(or==null?void 0:or.key)==="tableContents"))==null?void 0:Gl.contents)||[];if(!Array.isArray(Yl)||Yl.length===0||!Array.isArray(Ml)||Ml.length===0)return null;const dr=Qa(Yl||[],Ml||[]);return!Array.isArray(dr)||dr.length===0?null:{类型:wl==null?void 0:wl.name,数据:dr}}).filter(Boolean);if(!vl||vl.length===0)return ll.ElMessage.warning("没有可导出的数据(推力、真空、压力、温度、流量均为空)");const Tl=await ha(Qe),Dl={试验代号:Qe,试验日期:Tl,ParaForm:vl},ur=await ct().catch(()=>""),Ll=await I.exportParaformApi(Dl,ur);if(((Ue=Ll==null?void 0:Ll.data)==null?void 0:Ue.code)===200&&((Va=(aa=Ll==null?void 0:Ll.data)==null?void 0:aa.result)!=null&&Va.Excel文件)){const wl=Ll.data.result.Excel文件,Nl=await I.platformDownloadFile({url:wl}),Yl=new Blob([Nl.data],{type:"application/vnd.ms-excel"}),Ml=URL.createObjectURL(Yl),dr=I.dayjs().format("YYYYMMDD"),Gl=`${(Qe||"UNKNOWN").trim()||"UNKNOWN"}_${dr}_paraform.xls`,or=document.createElement("a");or.href=Ml,or.download=Gl,or.style.display="none",document.body.appendChild(or),or.click(),setTimeout(()=>{document.body.removeChild(or),URL.revokeObjectURL(Ml)},100);const $r=Array.isArray((la=(Da=Ll==null?void 0:Ll.data)==null?void 0:Da.result)==null?void 0:la.warnings)?Ll.data.result.warnings:[];if($r.length>0){const ir=$r.map((lr,nr)=>`${nr+1}. ${(lr==null?void 0:lr.field)||"未知字段"}:${(lr==null?void 0:lr.message)||""}`).join(`
22
+ `}},V=()=>{b.value.length>0?t("confirm",b.value.map(q=>q.file)):t("confirm",[])},z=q=>{q<0||q>=b.value.length||(b.value.splice(q,1),h.value+=`已删除一张图片(剩余 ${b.value.length} 张)
23
+ `)},x=q=>{if(!q)return;const G=`gpy-preview-${Date.now()}.jpg`;y.value=[{name:G,blobUrl:q}],v.value=!0},g=()=>{v.value=!1},F=()=>{_(),t("cancel")};return(q,G)=>{const be=a.resolveComponent("el-input"),ze=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(vr.ssDialog,{title:"扫描录入",visible:n.visible,onBeforeDestroy:F,width:"1200px",style:{height:"80%"}},{default:a.withCtx(()=>[a.createElementVNode("div",cf,[a.createElementVNode("div",{ref_key:"cameraBox",ref:s,style:{flex:"1","min-width":"0",border:"1px solid var(--el-border-color)","border-radius":"4px",position:"relative",overflow:"hidden",display:"flex","align-items":"center","justify-content":"center",background:"var(--el-fill-color-lighter)"}},[u.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",uf,"初始化摄像头..."))],512),a.createElementVNode("div",df,[a.createElementVNode("div",pf,[G[0]||(G[0]=a.createElementVNode("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"拍照图片",-1)),a.createElementVNode("div",ff,[b.value.length===0?(a.openBlock(),a.createElementBlock("div",hf,"暂无图片")):(a.openBlock(),a.createElementBlock("div",vf,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(b.value,(De,ne)=>(a.openBlock(),a.createElementBlock("div",{key:De.uid,style:{position:"relative",border:"1px solid var(--el-border-color)","border-radius":"4px",overflow:"hidden",background:"#fafafa"}},[a.createElementVNode("img",{src:De.url,onClick:ke=>x(De.url),style:{width:"100%",height:"94px","object-fit":"contain",display:"block",background:"#fafafa",cursor:"zoom-in"},alt:"captured image",title:"点击放大"},null,8,mf),a.createElementVNode("div",{onClick:ke=>z(ne),style:{position:"absolute",top:"4px",right:"4px",width:"18px",height:"18px","border-radius":"50%",background:"rgba(0,0,0,0.55)",color:"#fff",display:"flex","align-items":"center","justify-content":"center",cursor:"pointer","font-size":"12px"},title:"删除"},"×",8,yf)]))),128))]))],512)]),a.createElementVNode("div",gf,[G[1]||(G[1]=a.createElementVNode("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"操作记录",-1)),a.createVNode(be,{type:"textarea",value:h.value,readonly:"",rows:10,placeholder:"设备操作记录...",style:{flex:"1"}},null,8,["value"])])])])]),footer:a.withCtx(()=>[a.createElementVNode("div",bf,[a.createVNode(ze,{onClick:H,disabled:!u.value,id:"themeBorderButton"},{default:a.withCtx(()=>G[2]||(G[2]=[a.createTextVNode("适屏")])),_:1,__:[2]},8,["disabled"]),a.createVNode(ze,{onClick:k,disabled:!u.value,id:"themeBorderButton"},{default:a.withCtx(()=>G[3]||(G[3]=[a.createTextVNode("左旋")])),_:1,__:[3]},8,["disabled"]),a.createVNode(ze,{onClick:T,disabled:!u.value,id:"themeBorderButton"},{default:a.withCtx(()=>G[4]||(G[4]=[a.createTextVNode("右旋")])),_:1,__:[4]},8,["disabled"]),a.createVNode(ze,{onClick:J,disabled:!u.value,id:"themeBorderButton"},{default:a.withCtx(()=>G[5]||(G[5]=[a.createTextVNode("对焦")])),_:1,__:[5]},8,["disabled"]),a.createVNode(ze,{onClick:S,disabled:!u.value,id:"themeButton"},{default:a.withCtx(()=>G[6]||(G[6]=[a.createTextVNode("拍照")])),_:1,__:[6]},8,["disabled"]),G[9]||(G[9]=a.createElementVNode("div",{style:{flex:"1"}},null,-1)),a.createVNode(ze,{onClick:V,disabled:b.value.length===0,id:"themeButton"},{default:a.withCtx(()=>G[7]||(G[7]=[a.createTextVNode("确认")])),_:1,__:[7]},8,["disabled"]),a.createVNode(ze,{onClick:F,id:"themeBorderButton"},{default:a.withCtx(()=>G[8]||(G[8]=[a.createTextVNode("取消")])),_:1,__:[8]})])]),_:1},8,["visible"]),v.value?(a.openBlock(),a.createBlock(pl.ssFilePreview,{key:0,fileDataList:y.value,onDestroy:g},null,8,["fileDataList"])):a.createCommentVNode("",!0)],64)}}}),xf=ql._export_sfc(kf,[["__scopeId","data-v-24a2050a"]]);function lc(l){return ll.axios.post("http://222.92.178.198:8000/api/v1/excel-chat",l)}function _f(l){return ll.axios.get(l,{responseType:"blob"})}const os=I.useMenuState(I.pinia),wf=async l=>{var u,b,h,v,y,c;let r=l==null?void 0:l.导入文件,n=l==null?void 0:l.函数参数,t=(u=r==null?void 0:r[0])==null?void 0:u.url,s="";if(!(t!=null&&t.includes("http"))||!(t!=null&&t.includes("https"))){os.setContentLoading(!0);const w=await I.platformDownloadFile({url:t});let D=w==null?void 0:w.data;const A=new FormData;A.append("file",D,((b=r==null?void 0:r[0])==null?void 0:b.name)+"."+((h=t==null?void 0:t.split("."))==null?void 0:h[1])),A.append("query",n);let _=await lc(A);_=(c=(y=(v=_==null?void 0:_.data)==null?void 0:v.data)==null?void 0:y.response)==null?void 0:c.replace("generateResult",l==null?void 0:l.函数名称),s=_,os.setContentLoading(!1)}return s},xi=I.defineStore("formComp",{state:()=>({objUrl:[],blobUrls:[]}),actions:{setObjUrl(l){this.objUrl=l},setBlobUrls(l){this.blobUrls=l}}}),Co={检校类型:["检校类型","证书类别"],证书编号:["证书编号"],设备名称:["设备名称","器具名称","样品名称","仪器名称","被校设备"],型号规格:["型号规格","型号/规格","型号"],出厂编号:["出厂编号","器具/管理编号","器具编号","管理编号","仪器编号"],制造厂:["制造厂","制造单位","制造厂商","制造商"],检校结果:["检校结果","检定结论","校准结果","校准/检定结果","检定结果"],依据文件:["依据文件","检定依据","检定所依据的技术文件","所依据/参照技术文件(代号/名称)","检定所依据的技术文件(编号/名称)","检定方法说明"],检校日期:["检校日期","校准日期","校验日期","检定日期","发证日期","发布日期","接收日期","签证日期"],有效日期:["有效日期","有效期","有效期至"]},is={columnName:"OCR图片",acceptTypes:"image/*",maxSize:10,maxFiles:20,apiUrl:"http://139.196.154.85:20015/api/public/paddleOCR"};class Cf{constructor(r){Rr(this,"config");this.config={...is,...r}}updateConfig(r){this.config={...this.config,...r}}getConfig(){return{...this.config}}validateFileSize(r){const n=this.config.maxSize*1024*1024;return r.size<=n}validateFileType(r){return r.type.startsWith("image/")||r.type==="application/pdf"}getAuthorizationToken(){const r=ll.Local.get(ll.accessTokenKey);return r?`Bearer ${r}`:""}buildOCRRequest(r,n){return{title:n,form:{OCR图片文件:r}}}async recognize(r,n){const t=this.getAuthorizationToken(),s=this.buildOCRRequest(r,n),u=this.config.apiUrl||is.apiUrl;return(await ll.axios.post(u,s,{headers:{"Content-Type":"application/json",Authorization:t}})).data}getFieldAliases(r){return Co[r]?Co[r]:[r]}extractTableHeaders(r){const n=[],t=new Set,s=b=>{const h=b==null?void 0:b.label;return!(!h||h==="操作"||h===this.config.columnName||(b==null?void 0:b.type)==="operate"||(b==null?void 0:b.prop)==="operate")},u=b=>{(b||[]).forEach(h=>{if(!h)return;const v=(h==null?void 0:h.children)||(h==null?void 0:h.child)||(h==null?void 0:h.columns);if(Array.isArray(v)&&v.length>0){u(v);return}if(s(h)){const y=h.label;if(!t.has(y)){t.add(y);const c=this.getFieldAliases(y);n.push(c)}}})};return u(r||[]),n}}function rc(l){return new Cf(l)}rc();const fi=async(l,r)=>{var b,h,v,y,c,w,D,A,_,H,k,T,J,S,V,z,x;let n=(h=(b=I.cloneDeep(l))==null?void 0:b.optionUrl)==null?void 0:h.menuSelect,t=[];n==null||n.forEach(g=>{});let s="",u=await na.menuToParent(n);if(u==null||u.forEach(g=>{var F,q,G,be;(g==null?void 0:g.name)===(((be=(G=(q=(F=I.cloneDeep(l))==null?void 0:F.optionUrl)==null?void 0:q.groupSelect)==null?void 0:G[0])==null?void 0:be.replaceAll("'",""))??"")&&(s=g==null?void 0:g.id)}),r){s=r;const g=await yr.getInsofDataApi({id:s}),F=(w=(c=(y=(v=g==null?void 0:g.data)==null?void 0:v.result)==null?void 0:y[0])==null?void 0:c.key)==null?void 0:w.pageKey;u=await na.getItemData(F,sessionStorage.getItem("systemKey"),"")}if(s!==""){let g;r?g=(D=u==null?void 0:u.find(G=>(G==null?void 0:G.id)===r))==null?void 0:D.compData:g=(A=u==null?void 0:u.find(G=>{var be,ze,De,ne;return(G==null?void 0:G.name)===(((ze=(be=l==null?void 0:l.groupSelect)==null?void 0:be.split(":"))==null?void 0:ze[0])||((ne=(De=l==null?void 0:l.optionUrl)==null?void 0:De.groupSelect)==null?void 0:ne[0]))}))==null?void 0:A.compData;let F=(H=(_=g==null?void 0:g.find(G=>(G==null?void 0:G.key)==="header"))==null?void 0:_.contents)==null?void 0:H.map(G=>G==null?void 0:G.label);(T=(k=g==null?void 0:g.find(G=>(G==null?void 0:G.key)==="header"))==null?void 0:k.contents)!=null&&T.every(G=>Array.isArray(G))&&(F=(V=na.getColumnChild((S=(J=g==null?void 0:g.find(G=>(G==null?void 0:G.key)==="header"))==null?void 0:J.contents)==null?void 0:S[0]))==null?void 0:V.map(G=>G==null?void 0:G.prop));let q=(x=(z=g==null?void 0:g.find(G=>(G==null?void 0:G.key)==="tableContents"))==null?void 0:z.contents)==null?void 0:x.map(G=>{if(Array.isArray(G))G=G==null?void 0:G.filter(be=>!(be!=null&&be.id));else{let be={};for(let ze in G)ze!=="id"&&(be[ze]=G==null?void 0:G[ze]);G=be}return G});q==null||q.forEach(G=>{Array.isArray(G)?t.push(na.getValueToObjectValue(G,F)):t.push(G)})}return t},Ef=I.useMenuState(I.pinia),{activeMenuPath:T6}=I.storeToRefs(Ef),Sf=I.useUnit(I.pinia),{chooseTitle:A6}=I.storeToRefs(Sf),Df="col-operate",_i=l=>`${Df}-${l}`,Bf=(l,r)=>{const n=new Map;l.forEach(s=>{const{prop:u}=s;n.set(u,s)});const t=s=>{Array.isArray(s)&&s.forEach(u=>{const{prop:b}=u||{},h=n.get(b);Nf(h,u),Array.isArray(u==null?void 0:u.children)&&u.children.length>0&&t(u.children)})};return t(r),r},Nf=(l,r)=>(l&&(r.sortable=l==null?void 0:l.sortable,r.filterable=l==null?void 0:l.filterable,r.showSummary=l==null?void 0:l.showSummary,r.operable=l==null?void 0:l.operable,r.fixed=l==null?void 0:l.fixed),r),Tf=(l,r)=>{const{sortable:n=!1,filterable:t=!1,showSummary:s=!1,operable:u=!1,fixed:b=!1}=r||{};return{prop:l,sortable:n,filterable:t,showSummary:s,operable:u,fixed:b}},Af=async l=>{var u,b;if(!l)return;const r=_i(l),n=await yr.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:r}}),t=(u=n==null?void 0:n.data)==null?void 0:u.code,s=(b=n==null?void 0:n.data)==null?void 0:b.result;if(t==200)return s==null?void 0:s[0]},zf=async l=>{var u,b,h,v;if(!l)return;const r=_i(l),n=await yr.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:r}}),t=(u=n==null?void 0:n.data)==null?void 0:u.code,s=(b=n==null?void 0:n.data)==null?void 0:b.result;return t==200?(v=(h=s==null?void 0:s[0])==null?void 0:h.value)==null?void 0:v.columns:[]},Mf=async(l,r)=>{if(!l||!r)return;const n=_i(l);return await yr.createInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:n},value:{columns:r}})},Of=async(l,r)=>!l||!r?void 0:await yr.updateInsofDataApi({id:l,value:{columns:r}}),ss=async(l,r)=>{const n=sessionStorage.getItem("systemKey");if(!l||!r||!n)return;const t=await Af(l);return t?await Of(t==null?void 0:t.id,r):await Mf(l,r)};var mo={exports:{}},If=mo.exports,cs;function Lf(){return cs||(cs=1,function(l,r){(function(n,t){t()})(If,function(){function n(y,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(y.type)?new Blob(["\uFEFF",y],{type:y.type}):y}function t(y,c,w){var D=new XMLHttpRequest;D.open("GET",y),D.responseType="blob",D.onload=function(){v(D.response,c,w)},D.onerror=function(){console.error("could not download file")},D.send()}function s(y){var c=new XMLHttpRequest;c.open("HEAD",y,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function u(y){try{y.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),y.dispatchEvent(c)}}var b=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof I.commonjsGlobal=="object"&&I.commonjsGlobal.global===I.commonjsGlobal?I.commonjsGlobal:void 0,h=b.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),v=b.saveAs||(typeof window!="object"||window!==b?function(){}:"download"in HTMLAnchorElement.prototype&&!h?function(y,c,w){var D=b.URL||b.webkitURL,A=document.createElement("a");c=c||y.name||"download",A.download=c,A.rel="noopener",typeof y=="string"?(A.href=y,A.origin===location.origin?u(A):s(A.href)?t(y,c,w):u(A,A.target="_blank")):(A.href=D.createObjectURL(y),setTimeout(function(){D.revokeObjectURL(A.href)},4e4),setTimeout(function(){u(A)},0))}:"msSaveOrOpenBlob"in navigator?function(y,c,w){if(c=c||y.name||"download",typeof y!="string")navigator.msSaveOrOpenBlob(n(y,w),c);else if(s(y))t(y,c,w);else{var D=document.createElement("a");D.href=y,D.target="_blank",setTimeout(function(){u(D)})}}:function(y,c,w,D){if(D=D||open("","_blank"),D&&(D.document.title=D.document.body.innerText="downloading..."),typeof y=="string")return t(y,c,w);var A=y.type==="application/octet-stream",_=/constructor/i.test(b.HTMLElement)||b.safari,H=/CriOS\/[\d]+/.test(navigator.userAgent);if((H||A&&_||h)&&typeof FileReader<"u"){var k=new FileReader;k.onloadend=function(){var S=k.result;S=H?S:S.replace(/^data:[^;]*;/,"data:attachment/file;"),D?D.location.href=S:location=S,D=null},k.readAsDataURL(y)}else{var T=b.URL||b.webkitURL,J=T.createObjectURL(y);D?D.location=J:location.href=J,D=null,setTimeout(function(){T.revokeObjectURL(J)},4e4)}});b.saveAs=v.saveAs=v,l.exports=v})}(mo)),mo.exports}Lf();const rt=I.defineStore("tabComp",{state:()=>({itemData:[],originalData:[],extraContents:[],nodeDev:"",isEdit:"view",isRefreshCurStructure:!1,isSubmitCurStructure:!1,curStructureCompIds:[],itemGridData:[],itemExtendData:void 0,payloadTypes:"",lockingPage:"",systemPath:void 0,pageMapState:void 0,cacheUpdatingData:void 0,freshContent:!1,tableLoading:!1,routeToChildPath:"",tableViewContents:[],activeItemIndex:0,fixMenuStatus:!1,refreshTable:!1,selectTab:""}),actions:{setItemData(l){this.itemData=l},setCurStructureCompIds(l){this.curStructureCompIds=l},setRefreshCurStructure(l){this.isRefreshCurStructure=l},setOriginalData(l){this.originalData=l},setExtraContents(l){this.extraContents=l},setNodeDev(l){this.nodeDev=l},setIsEdit(l){this.isEdit=l},setSelectTab(l){this.selectTab=l}}}),Vf=I.useLoginState(I.pinia),{loginUserInfo:ri}=I.storeToRefs(Vf),$f=async l=>{var t,s,u;let r=await I.getAllTables({platId:parseInt((t=ri==null?void 0:ri.value)==null?void 0:t.plat_id),tableNames:[l]});return r=(u=(s=r==null?void 0:r.data)==null?void 0:s.result)==null?void 0:u[0],await Xs(r,!1),[{comp:"Table",isShow:!0,name:"日志管理",compData:[{key:"extraButton",contents:[]},{key:"rowButton",contents:[]},{key:"header",contents:[{label:"请求类型",prop:"request_method",formType:"Input",align:"center"},{label:"请求路径",prop:"request_url",formType:"Input",align:"center"},{label:"请求参数",prop:"request_param",formType:"Upload",align:"center"},{label:"返回结果",prop:"request_result",formType:"Upload",align:"center"},{label:"返回信息",prop:"request_message",formType:"Input",align:"center"},{label:"请求表格",prop:"request_table",formType:"Input",align:"center"},{label:"请求种类",prop:"request_type",formType:"Input",align:"center"},{label:"请求创建时间",prop:"create_time",formType:"Date",align:"center"},{label:"请求创建人",prop:"create_user_id",formType:"Input",align:"center"}]},{key:"tableContents",contents:r}]}]},Rf=I.useLoginState(),{loginUserInfo:kl}=I.storeToRefs(Rf);let uo="$R";const _r=I.useModelComp(I.pinia),nc=a.ref(!1),{itemData:Pf,itemGridData:Qn,curStructureCompIds:us,isSubmitCurStructure:Ff,routeToChildPath:jf,pageMapState:hi,itemExtendData:po,refreshTable:ds}=I.storeToRefs(_r),Ao=rt(I.pinia),Sr=I.useMenuState(I.pinia),Xl=a.shallowRef([]),{asideMenus:Hf,activeTopMenuPath:Uf,activeMenuPath:Sl,platform:z6,buttonTriggerType:qf,currentMenuPath:Gr}=I.storeToRefs(Sr),nn=I.useUnit(I.pinia),{selectTitle:Ln,chooseTitle:vi}=I.storeToRefs(nn);a.ref();const Et=a.ref(!0),$n=a.ref(0),mi=a.ref([]);a.ref(!1);const wi=a.ref(!1),Ft=a.ref(),tc=a.ref(),oc=a.ref(),Kf=()=>{_r.setItemGridData([]),_r.setIsEdit("edit"),_r.setSubmitCurStructure(Sl.value!=="/平台管理/菜单管理")},Wf=()=>{_r.setIsEdit("view"),_r.setRefreshCurStructure(!0)},Yf=async l=>{var s;let r=Ln.value,n=r==null?void 0:r.findIndex(u=>(u==null?void 0:u.value)===(l==null?void 0:l.value)),t=r==null?void 0:r.filter((u,b)=>b<=n);nn.setSelectTitle(pl.safeClone(t)),t=(s=t==null?void 0:t.map(u=>u==null?void 0:u.value))==null?void 0:s.join("/"),Sr.setActiveMenuPath(null),Sr.setActiveMenuPath(t)},ni=async(l,r,n,t="contentConfig")=>{var s;try{if(!Array.isArray(l))return;let u,b;r==="create"?(u={dataList:l==null?void 0:l.map(v=>{var y;return{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:n!=null&&n.startsWith("/")?n==null?void 0:n.substring(1):n,type:"structure",structureBelong:t,parentTable:"",version:1},value:{pageData:{...v,compData:(y=v==null?void 0:v.compData)==null?void 0:y.filter(c=>(c==null?void 0:c.key)!=="tableContents")}}}})},b=yr.batchAddInsofDataApi):r==="update"?(u={dataList:l==null?void 0:l.map(v=>{var y;return{id:v==null?void 0:v.id,value:{pageData:{...v,compData:(y=v==null?void 0:v.compData)==null?void 0:y.filter(c=>(c==null?void 0:c.key)!=="tableContents")}}}})},b=yr.batchUpdateInsofDataApi):r==="delete"&&(u={ids:l},b=yr.batchDeleteInsofDataApi);const h=await b(u);if(((s=h==null?void 0:h.data)==null?void 0:s.code)===200)return h.data.result;throw ll.ElMessage.error("保存响应失败"),new Error("保存响应失败")}catch{ll.ElMessage.error("保存响应失败")}},ps=async(l,r,n,t)=>{var s,u,b,h,v,y,c,w,D,A,_;try{const H=(u=(s=l==null?void 0:l.results)==null?void 0:s.filter(z=>!(z!=null&&z.id)||typeof(z==null?void 0:z.id)=="string"))==null?void 0:u.map(z=>({key:{pageKey:l==null?void 0:l.pageKey,systemKey:sessionStorage.getItem("systemKey"),type:r,relatedInfo:n},value:{tableData:z}})),k=(h=(b=l==null?void 0:l.results)==null?void 0:b.filter(z=>(z==null?void 0:z.id)&&typeof(z==null?void 0:z.id)=="number"))==null?void 0:h.map(z=>({id:z==null?void 0:z.id,value:{tableData:z}})),T=JSON.parse(JSON.stringify(l)),J=(v=T==null?void 0:T.results)==null?void 0:v.map(z=>z.id);let S;n?S=(w=(c=(y=hi.value)==null?void 0:y[Sl.value])==null?void 0:c.filter(z=>{var x,g,F;return((x=z==null?void 0:z.key)==null?void 0:x.type)===r&&((F=(g=z==null?void 0:z.key)==null?void 0:g.relatedInfo)==null?void 0:F.target)===t}))==null?void 0:w.map(z=>z==null?void 0:z.id):S=(_=(A=(D=hi.value)==null?void 0:D[Sl.value])==null?void 0:A.filter(z=>{var x;return((x=z==null?void 0:z.key)==null?void 0:x.type)===r}))==null?void 0:_.map(z=>z==null?void 0:z.id);const V=S==null?void 0:S.filter(z=>!(J!=null&&J.includes(z))&&typeof z=="number");(H==null?void 0:H.length)>0&&await yr.batchAddInsofDataApi({dataList:H}),(k==null?void 0:k.length)>0&&await yr.batchUpdateInsofDataApi({dataList:k}),(V==null?void 0:V.length)>0&&await yr.batchDeleteInsofDataApi({ids:V})}catch(H){throw new Error(H)}},Gf=async l=>{var y,c,w,D,A,_,H,k,T,J;Sr.setContentLoading(!0);const r=JSON.parse(JSON.stringify(Pf.value));if(!Ff.value)return Sr.setCacheStructures({key:qf.value,data:r}),ll.ElMessage.success("已暂存");const n=r==null?void 0:r.map(S=>S.id),t=n.filter(S=>{var V;return!((V=us.value)!=null&&V.includes(S))}),s=(y=us.value)==null?void 0:y.filter(S=>!n.includes(S)),u=[...t,...s].filter(S=>typeof S!==null&&typeof S<"u"),b=r==null?void 0:r.filter(S=>!S.id),h=r==null?void 0:r.filter(S=>S.id);let v=[];if(u&&(u==null?void 0:u.length)>0&&v.push(ni(u,"delete",l)),b&&(b==null?void 0:b.length)>0&&v.push(ni(b,"create",l)),h&&(h==null?void 0:h.length)>0&&v.push(ni(h,"update",l)),Qn.value&&((c=Qn.value)!=null&&c.isDelete&&((D=(w=Qn.value)==null?void 0:w.results)==null?void 0:D.length)>0&&((_=(A=Qn.value)==null?void 0:A.results)!=null&&_.every(S=>typeof S=="number"))?await yr.batchDeleteInsofDataApi({ids:(H=Qn.value)==null?void 0:H.results}):(console.log("itemGridData.value",Qn.value),v.push(await ps(Qn.value,"gridLayout")))),po.value)for(const S in po.value)v.push(await ps((k=po.value)==null?void 0:k[S],"extend",{target:S,compId:(J=(T=po.value)==null?void 0:T[S])==null?void 0:J.compId},S));await Promise.all(v).then(()=>{ll.ElMessage.success("保存成功"),_r.setRefreshCurStructure(!0)}).catch(S=>{ll.ElMessage.success(S)}),Sr.setContentLoading(!1)},jt=l=>St(l),Jf=a.computed(()=>{var l;return(l=Xl.value)==null?void 0:l.filter(r=>(r==null?void 0:r.affix)&&(r==null?void 0:r.affix)!=="default")}),ic=a.computed(()=>{var l;return(l=Xl.value)==null?void 0:l.filter(r=>!(r!=null&&r.affix)||(r==null?void 0:r.affix)==="default")}),sc=a.ref(0),cc=a.ref(null),Xf="ocr_committed_temp_ids_v1",Zf=(l,r)=>`${Xf}:${String(l??"")}:${String(r??"")}`,Qf=(l,r,n)=>{try{const t=Zf(l,r),s=sessionStorage.getItem(t),u=s?JSON.parse(s):[],b=Array.isArray(u)?u:[],h=Array.from(new Set([...b,...n||[]].map(v=>String(v)))).slice(-200);sessionStorage.setItem(t,JSON.stringify(h))}catch{}},Eo=async(l,r="data",n)=>{var s,u,b,h,v,y,c,w,D,A,_,H,k,T,J,S,V,z,x,g,F,q,G,be,ze,De,ne,ke,X,pe,Ke,Sa,te,B,le,ye,se,Ne,ia,xa,Ha,ee,ea,Pe,ga,He,Ae,Re,Ge,Ka,Ia,R,P,Y,oe,ie,fa,ra,Ie,we,Ca,fe,Je,Ze,Fe,ka,$e,pa,re,Se,K,je,Be,za,Ea,Ye,ua,_e,Z,ya,We,La,ml,Aa,el,Ja,Pa;let t=((b=(u=(s=Ln.value)==null?void 0:s.filter(Te=>(Te==null?void 0:Te.condition)==="child"))==null?void 0:u[0])==null?void 0:b.value)??"";if((l==null?void 0:l.buttonName)==="新增"){let Te=(h=l==null?void 0:l.fixContent)==null?void 0:h.map(ue=>{let Fa={};for(let ja in ue)Array.isArray(ue==null?void 0:ue[ja])?Fa[ja]=JSON.stringify(ue==null?void 0:ue[ja]):Fa[ja]=ue==null?void 0:ue[ja];return Fa}),il=await I.quoteApi({platId:parseInt((v=kl==null?void 0:kl.value)==null?void 0:v.plat_id),type:"fatherSyncs",related:[{menus:t!==""?Sl.value+"/"+t:Sl.value,groups:l==null?void 0:l.name}]});il=(y=il==null?void 0:il.data)==null?void 0:y.result,il=il==null?void 0:il.filter(ue=>{var Fa,ja;return!((ue==null?void 0:ue.fatherPath)!==""&&((ja=(Fa=ue==null?void 0:ue.quote)==null?void 0:Fa[0])==null?void 0:ja.menus)===(Sl==null?void 0:Sl.value))});let ma=il==null?void 0:il.map(ue=>{var Ba,Ua;let Fa={},ja=Te==null?void 0:Te[0],Ee;return Array.isArray((Ba=ue==null?void 0:ue.struct)==null?void 0:Ba[0])?Ee=na.getColumnChild((Ua=ue==null?void 0:ue.struct)==null?void 0:Ua[0]):Ee=ue==null?void 0:ue.struct,Ee==null||Ee.forEach(ve=>{var fl,Xa;Fa[ve.prop]=((fl=ve==null?void 0:ve.words)!=null&&fl[0]?ja==null?void 0:ja[(Xa=ve==null?void 0:ve.words)==null?void 0:Xa[0]]:ja==null?void 0:ja[ve==null?void 0:ve.prop])??""}),Fa.id="1",Fa.relatedId=`[${Fa.id}]`,delete Fa.sort,{tableName:"content_"+(ue==null?void 0:ue.id),tableContents:[Fa]}}),wa=[{tableName:(c=l==null?void 0:l.relatedContents)==null?void 0:c.find(ue=>ue==null?void 0:ue.includes("content")),tableContents:Te}];wa=[...wa,...ma];let _a=await I.quoteApi({platId:parseInt((w=kl==null?void 0:kl.value)==null?void 0:w.plat_id),type:"sonSyncs",related:[{menus:t!==""?Sl.value+"/"+t:Sl.value,groups:l==null?void 0:l.name}]});_a=(A=(D=_a==null?void 0:_a.data)==null?void 0:D.result)==null?void 0:A.filter(ue=>!(wa!=null&&wa.find(Fa=>(Fa==null?void 0:Fa.tableName)==="content_"+(ue==null?void 0:ue.id)))),_a=_a==null?void 0:_a.filter(ue=>{var Fa,ja;return!((ue==null?void 0:ue.fatherPath)!==""&&((ja=(Fa=ue==null?void 0:ue.quote)==null?void 0:Fa[0])==null?void 0:ja.menus)===(Sl==null?void 0:Sl.value))});let oa=_a==null?void 0:_a.map(ue=>{var Ba,Ua,ve,fl,Xa,xl,qa;let Fa={},ja=Te==null?void 0:Te[0],Ee;return Array.isArray((Ba=ue==null?void 0:ue.struct)==null?void 0:Ba[0])?Ee=na.getColumnChild((Ua=ue==null?void 0:ue.struct)==null?void 0:Ua[0]):Ee=ue==null?void 0:ue.struct,((fl=(ve=Ee==null?void 0:Ee[0])==null?void 0:ve.words)!=null&&fl[0]?ja!=null&&ja[(xl=(Xa=Ee==null?void 0:Ee[0])==null?void 0:Xa.words)==null?void 0:xl[0]]:ja!=null&&ja[(qa=Ee==null?void 0:Ee[0])==null?void 0:qa.prop])?(Ee==null||Ee.forEach(ol=>{var al,cl;Fa[ol.prop]=((al=ol==null?void 0:ol.words)!=null&&al[0]?ja==null?void 0:ja[(cl=ol==null?void 0:ol.words)==null?void 0:cl[0]]:ja==null?void 0:ja[ol==null?void 0:ol.prop])??""}),Fa.id="1",Fa.relatedId=`[${Fa.id}]`,delete Fa.sort):Fa=void 0,{tableName:"content_"+(ue==null?void 0:ue.id),tableContents:[Fa]}});oa=oa==null?void 0:oa.filter(ue=>{var Fa;return!((Fa=ue==null?void 0:ue.tableContents)!=null&&Fa.every(ja=>ja===void 0))}),wa=[...wa,...oa],await I.pageBatchAddApi({platId:parseInt((_=kl==null?void 0:kl.value)==null?void 0:_.plat_id),changeContents:wa});let va=[];wa==null||wa.forEach(ue=>{var Fa;(Fa=ue==null?void 0:ue.tableContents)==null||Fa.forEach(ja=>{va.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(ja),request_result:"{}",is_delete:!1,request_table:ue==null?void 0:ue.tableName,request_type:"add"})})}),await I.pageBatchAddApi({platId:parseInt((H=kl==null?void 0:kl.value)==null?void 0:H.plat_id),changeContents:[{tableName:"log",tableContents:va}]})}if((l==null?void 0:l.buttonName)==="OCR批量新增"){const Te=((l==null?void 0:l.ocrRows)||[]).map(_a=>_a==null?void 0:_a.id).filter(_a=>_a!=null),il=((l==null?void 0:l.ocrRows)||[]).map(_a=>{const oa={..._a};return delete oa._isOCRRow,delete oa._ocrTableId,Object.keys(oa).forEach(va=>{/(^|\.)证书附件$/.test(va)&&Array.isArray(oa[va])&&(oa[va]=JSON.stringify(oa[va].map(ue=>({url:(ue==null?void 0:ue.url)||"",name:(ue==null?void 0:ue.name)||(ue==null?void 0:ue.fileName)||"",fileName:(ue==null?void 0:ue.fileName)||(ue==null?void 0:ue.name)||""})).filter(ue=>ue.url||ue.name)))}),oa});let ma=[{tableName:(k=l==null?void 0:l.relatedContents)==null?void 0:k.find(_a=>_a==null?void 0:_a.includes("content")),tableContents:il}];await I.pageBatchAddApi({platId:parseInt((T=kl==null?void 0:kl.value)==null?void 0:T.plat_id),changeContents:ma});let wa=[];ma==null||ma.forEach(_a=>{var oa;(oa=_a==null?void 0:_a.tableContents)==null||oa.forEach(va=>{wa.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(va),request_result:"{}",is_delete:!1,request_table:_a==null?void 0:_a.tableName,request_type:"ocrBatchAdd"})})}),await I.pageBatchAddApi({platId:parseInt((J=kl==null?void 0:kl.value)==null?void 0:J.plat_id),changeContents:[{tableName:"log",tableContents:wa}]}),Qf(l==null?void 0:l.parentTableId,l==null?void 0:l.index,Te)}if((l==null?void 0:l.buttonName)==="编辑"){const il=((l==null?void 0:l.fixContent)||(l==null?void 0:l.singleContent)||[]||[]).map(Ee=>{const Ba={...Ee};return delete Ba._isOCRRow,delete Ba._ocrTableId,delete Ba._isTemp,delete Ba.tableEditType,delete Ba.index,Ba});let ma=il==null?void 0:il.map(Ee=>{let Ba={};for(let Ua in Ee)Array.isArray(Ee==null?void 0:Ee[Ua])?Ba[Ua]=JSON.stringify(Ee==null?void 0:Ee[Ua]):Ba[Ua]=Ee==null?void 0:Ee[Ua];return Ba}),wa=await I.quoteApi({platId:parseInt((S=kl==null?void 0:kl.value)==null?void 0:S.plat_id),type:"fatherSyncs",related:[{menus:t!==""?Sl.value+"/"+t:Sl.value,groups:l==null?void 0:l.name}]});wa=(V=wa==null?void 0:wa.data)==null?void 0:V.result,wa=wa==null?void 0:wa.filter(Ee=>{var Ba,Ua;return!((Ee==null?void 0:Ee.fatherPath)!==""&&((Ua=(Ba=Ee==null?void 0:Ee.quote)==null?void 0:Ba[0])==null?void 0:Ua.menus)===(Sl==null?void 0:Sl.value))});let _a=(z=ma==null?void 0:ma[0])==null?void 0:z.id,oa=[{tableName:(x=l==null?void 0:l.relatedContents)==null?void 0:x.find(Ee=>Ee==null?void 0:Ee.includes("content")),tableContents:ma}],va=(g=wa==null?void 0:wa.map(Ee=>{var Ua,ve,fl,Xa,xl;let Ba=(Ua=Ee==null?void 0:Ee.contents)==null?void 0:Ua.filter(qa=>{var ol,al;return JSON.stringify(qa==null?void 0:qa.relatedId)!=="{}"&&(qa==null?void 0:qa.relatedId)!==""&&(qa!=null&&qa.relatedId)?(ol=qa==null?void 0:qa.relatedId)==null?void 0:ol.includes(parseInt(_a)):(qa==null?void 0:qa.sort)===((al=ma==null?void 0:ma[0])==null?void 0:al.sort)});if((Ba==null?void 0:Ba.length)>0){let qa=ma==null?void 0:ma[0];qa={...qa,id:(ve=Ba==null?void 0:Ba[0])==null?void 0:ve.id};let ol={},al=qa,cl;return Array.isArray((fl=Ee==null?void 0:Ee.struct)==null?void 0:fl[0])?cl=na.getColumnChild((Xa=Ee==null?void 0:Ee.struct)==null?void 0:Xa[0]):cl=Ee==null?void 0:Ee.struct,cl==null||cl.forEach(ul=>{var Wl,Kl;ol[ul.prop]=((Wl=ul==null?void 0:ul.words)!=null&&Wl[0]?al==null?void 0:al[(Kl=ul==null?void 0:ul.words)==null?void 0:Kl[0]]:al==null?void 0:al[ul==null?void 0:ul.prop])??""}),ol.id=(xl=Ba==null?void 0:Ba[0])==null?void 0:xl.id,delete ol.sort,delete ol.relatedId,{tableName:"content_"+(Ee==null?void 0:Ee.id),tableContents:[ol]}}else return}))==null?void 0:g.filter(Ee=>Ee);oa=[...oa,...va];let ue=await I.quoteApi({platId:parseInt((F=kl==null?void 0:kl.value)==null?void 0:F.plat_id),type:"sonSyncs",related:[{menus:t!==""?Sl.value+"/"+t:Sl.value,groups:l==null?void 0:l.name}]});ue=(G=(q=ue==null?void 0:ue.data)==null?void 0:q.result)==null?void 0:G.filter(Ee=>!(oa!=null&&oa.find(Ba=>(Ba==null?void 0:Ba.tableName)==="content_"+(Ee==null?void 0:Ee.id)))),ue=ue==null?void 0:ue.filter(Ee=>{var Ba,Ua;return!((Ee==null?void 0:Ee.fatherPath)!==""&&((Ua=(Ba=Ee==null?void 0:Ee.quote)==null?void 0:Ba[0])==null?void 0:Ua.menus)===(Sl==null?void 0:Sl.value))});let Fa=(be=ue==null?void 0:ue.map(Ee=>{var Ua,ve,fl,Xa,xl;let Ba=(Ua=Ee==null?void 0:Ee.contents)==null?void 0:Ua.filter(qa=>{var ol,al;return JSON.stringify(qa==null?void 0:qa.relatedId)!=="{}"&&(qa==null?void 0:qa.relatedId)!==""&&(qa!=null&&qa.relatedId)?(ol=qa==null?void 0:qa.relatedId)==null?void 0:ol.includes(parseInt(_a)):(qa==null?void 0:qa.sort)===((al=ma==null?void 0:ma[0])==null?void 0:al.sort)});if((Ba==null?void 0:Ba.length)>0){let qa=ma==null?void 0:ma[0];qa={...qa,id:(ve=Ba==null?void 0:Ba[0])==null?void 0:ve.id};let ol={},al=qa,cl;return Array.isArray((fl=Ee==null?void 0:Ee.struct)==null?void 0:fl[0])?cl=na.getColumnChild((Xa=Ee==null?void 0:Ee.struct)==null?void 0:Xa[0]):cl=Ee==null?void 0:Ee.struct,cl==null||cl.forEach(ul=>{var Wl,Kl;ol[ul.prop]=((Wl=ul==null?void 0:ul.words)!=null&&Wl[0]?al==null?void 0:al[(Kl=ul==null?void 0:ul.words)==null?void 0:Kl[0]]:al==null?void 0:al[ul==null?void 0:ul.prop])??""}),ol.id=(xl=Ba==null?void 0:Ba[0])==null?void 0:xl.id,delete ol.sort,delete ol.relatedId,{tableName:"content_"+(Ee==null?void 0:Ee.id),tableContents:[ol]}}else return}))==null?void 0:be.filter(Ee=>Ee);oa=[...oa,...Fa],await I.pageBatchUpdateApi({platId:parseInt((ze=kl==null?void 0:kl.value)==null?void 0:ze.plat_id),changeContents:oa});let ja=[];oa==null||oa.forEach(Ee=>{var Ba;(Ba=Ee==null?void 0:Ee.tableContents)==null||Ba.forEach(Ua=>{ja.push({id:"1",request_method:"Post",request_url:"/platform/page/update",request_param:JSON.stringify(Ua),request_result:"{}",is_delete:!1,request_table:Ee==null?void 0:Ee.tableName,request_type:"update"})})}),await I.pageBatchAddApi({platId:parseInt((De=kl==null?void 0:kl.value)==null?void 0:De.plat_id),changeContents:[{tableName:"log",tableContents:ja}]})}if((l==null?void 0:l.buttonName)==="删除"){let Te=[{tableName:(ne=l==null?void 0:l.relatedContents)==null?void 0:ne.find(ue=>ue==null?void 0:ue.includes("content")),tableContents:l==null?void 0:l.fixContent}],il=await I.quoteApi({platId:parseInt((ke=kl==null?void 0:kl.value)==null?void 0:ke.plat_id),type:"fatherSyncs",related:[{menus:t!==""?Sl.value+"/"+t:Sl.value,groups:l==null?void 0:l.name}]});il=(X=il==null?void 0:il.data)==null?void 0:X.result,il=il==null?void 0:il.filter(ue=>{var Fa,ja;return!((ue==null?void 0:ue.fatherPath)!==""&&((ja=(Fa=ue==null?void 0:ue.quote)==null?void 0:Fa[0])==null?void 0:ja.menus)===(Sl==null?void 0:Sl.value))});let ma=(Ke=(pe=l==null?void 0:l.fixContent)==null?void 0:pe[0])==null?void 0:Ke.id,wa=(Sa=il==null?void 0:il.map(ue=>{var ja,Ee,Ba,Ua,ve,fl;let Fa=(ja=ue==null?void 0:ue.contents)==null?void 0:ja.filter(Xa=>{var xl,qa,ol;return JSON.stringify(Xa==null?void 0:Xa.relatedId)!=="{}"&&(Xa==null?void 0:Xa.relatedId)!==""&&(Xa!=null&&Xa.relatedId)?(xl=Xa==null?void 0:Xa.relatedId)==null?void 0:xl.includes(parseInt(ma)):(Xa==null?void 0:Xa.sort)===((ol=(qa=l==null?void 0:l.fixContent)==null?void 0:qa[0])==null?void 0:ol.sort)});if((Fa==null?void 0:Fa.length)>0){let Xa=(Ee=l==null?void 0:l.fixContent)==null?void 0:Ee[0];Xa={...Xa,id:(Ba=Fa==null?void 0:Fa[0])==null?void 0:Ba.id};let xl={},qa=Xa,ol;return Array.isArray((Ua=ue==null?void 0:ue.struct)==null?void 0:Ua[0])?ol=na.getColumnChild((ve=ue==null?void 0:ue.struct)==null?void 0:ve[0]):ol=ue==null?void 0:ue.struct,ol==null||ol.forEach(al=>{var cl,ul;xl[al.prop]=((cl=al==null?void 0:al.words)!=null&&cl[0]?qa==null?void 0:qa[(ul=al==null?void 0:al.words)==null?void 0:ul[0]]:qa==null?void 0:qa[al==null?void 0:al.prop])??""}),xl.id=(fl=Fa==null?void 0:Fa[0])==null?void 0:fl.id,delete xl.sort,delete xl.relatedId,{tableName:"content_"+(ue==null?void 0:ue.id),tableContents:[xl]}}else return}))==null?void 0:Sa.filter(ue=>ue);Te=[...Te,...wa];let _a=await I.quoteApi({platId:parseInt((te=kl==null?void 0:kl.value)==null?void 0:te.plat_id),type:"sonSyncs",related:[{menus:t!==""?Sl.value+"/"+t:Sl.value,groups:l==null?void 0:l.name}]});_a=(le=(B=_a==null?void 0:_a.data)==null?void 0:B.result)==null?void 0:le.filter(ue=>!(Te!=null&&Te.find(Fa=>(Fa==null?void 0:Fa.tableName)==="content_"+(ue==null?void 0:ue.id)))),_a=_a==null?void 0:_a.filter(ue=>{var Fa,ja;return!((ue==null?void 0:ue.fatherPath)!==""&&((ja=(Fa=ue==null?void 0:ue.quote)==null?void 0:Fa[0])==null?void 0:ja.menus)===(Sl==null?void 0:Sl.value))});let oa=(ye=_a==null?void 0:_a.map(ue=>{var ja,Ee,Ba,Ua,ve,fl;let Fa=(ja=ue==null?void 0:ue.contents)==null?void 0:ja.filter(Xa=>{var xl,qa,ol;return JSON.stringify(Xa==null?void 0:Xa.relatedId)!=="{}"&&(Xa==null?void 0:Xa.relatedId)!==""&&(Xa!=null&&Xa.relatedId)?(xl=Xa==null?void 0:Xa.relatedId)==null?void 0:xl.includes(parseInt(ma)):(Xa==null?void 0:Xa.sort)===((ol=(qa=l==null?void 0:l.fixContent)==null?void 0:qa[0])==null?void 0:ol.sort)});if((Fa==null?void 0:Fa.length)>0){let Xa=(Ee=l==null?void 0:l.fixContent)==null?void 0:Ee[0];Xa={...Xa,id:(Ba=Fa==null?void 0:Fa[0])==null?void 0:Ba.id};let xl={},qa=Xa,ol;return Array.isArray((Ua=ue==null?void 0:ue.struct)==null?void 0:Ua[0])?ol=na.getColumnChild((ve=ue==null?void 0:ue.struct)==null?void 0:ve[0]):ol=ue==null?void 0:ue.struct,ol==null||ol.forEach(al=>{var cl,ul;xl[al.prop]=((cl=al==null?void 0:al.words)!=null&&cl[0]?qa==null?void 0:qa[(ul=al==null?void 0:al.words)==null?void 0:ul[0]]:qa==null?void 0:qa[al==null?void 0:al.prop])??""}),xl.id=(fl=Fa==null?void 0:Fa[0])==null?void 0:fl.id,delete xl.sort,delete xl.relatedId,{tableName:"content_"+(ue==null?void 0:ue.id),tableContents:[xl]}}else return}))==null?void 0:ye.filter(ue=>ue);Te=[...Te,...oa],await I.pageBatchDeleteApi({platId:parseInt((se=kl==null?void 0:kl.value)==null?void 0:se.plat_id),changeContents:Te});let va=[];Te==null||Te.forEach(ue=>{var Fa;(Fa=ue==null?void 0:ue.tableContents)==null||Fa.forEach(ja=>{va.push({id:"1",request_method:"Post",request_url:"/platform/page/delete",request_param:JSON.stringify(ja),request_result:"{}",is_delete:!1,request_table:ue==null?void 0:ue.tableName,request_type:"delete"})})}),await I.pageBatchAddApi({platId:parseInt((Ne=kl==null?void 0:kl.value)==null?void 0:Ne.plat_id),changeContents:[{tableName:"log",tableContents:va}]})}if((l==null?void 0:l.buttonName)==="复制新增"){let Te=await I.getPageDataApi({platId:parseInt((ia=kl==null?void 0:kl.value)==null?void 0:ia.plat_id),pageName:"menu"});if(Te=(xa=Te==null?void 0:Te.data)==null?void 0:xa.result,Te!=null&&Te.find(il=>(il==null?void 0:il.father_name)===Sl.value+"/")){oc.value=l,tc.value=Te==null?void 0:Te.filter(wa=>(wa==null?void 0:wa.father_name)===Sl.value+"/");let il=(ee=(Ha=l==null?void 0:l.columns)==null?void 0:Ha.find(wa=>wa==null?void 0:wa.mainKey))==null?void 0:ee.prop,ma=(Pe=(ea=l==null?void 0:l.fixContent)==null?void 0:ea[0])==null?void 0:Pe[il];wi.value=!0,Ft.value=[{prop:il,label:il,name:il,value:ma}]}else{let il=(ga=l==null?void 0:l.fixContent)==null?void 0:ga.map(_a=>{let oa={};for(let va in _a)Array.isArray(_a==null?void 0:_a[va])?oa[va]=JSON.stringify(_a==null?void 0:_a[va]):oa[va]=_a==null?void 0:_a[va];return oa.relatedId="",oa}),ma=[{tableName:(He=l==null?void 0:l.relatedContents)==null?void 0:He.find(_a=>_a==null?void 0:_a.includes("content")),tableContents:il}];await I.pageBatchAddApi({platId:parseInt((Ae=kl==null?void 0:kl.value)==null?void 0:Ae.plat_id),changeContents:ma});let wa=[];ma==null||ma.forEach(_a=>{var oa;(oa=_a==null?void 0:_a.tableContents)==null||oa.forEach(va=>{wa.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(va),request_result:"{}",is_delete:!1,request_table:_a==null?void 0:_a.tableName,request_type:"copyAdd"})})}),await I.pageBatchAddApi({platId:parseInt((Re=kl==null?void 0:kl.value)==null?void 0:Re.plat_id),changeContents:[{tableName:"log",tableContents:wa}]})}}if((l==null?void 0:l.buttonName)==="methodButton"){let Te=((Ia=(Ka=(Ge=l==null?void 0:l.columns)==null?void 0:Ge.map(Ee=>Ee==null?void 0:Ee.filter))==null?void 0:Ka.filter(Ee=>Ee!==""))==null?void 0:Ia[0])??"";Te=$a.analyzeSplitToContent(Te,","),Te=(Te==null?void 0:Te.find(Ee=>Ee==null?void 0:Ee.includes("@Filter")))??"";let il=(R=l==null?void 0:l.fixContent)==null?void 0:R.map(Ee=>{let Ba={};for(let Ua in Ee)Array.isArray(Ee==null?void 0:Ee[Ua])?Ba[Ua]=JSON.stringify(Ee==null?void 0:Ee[Ua]):Ba[Ua]=Ee==null?void 0:Ee[Ua];return Ba}),ma=await I.quoteApi({platId:parseInt((P=kl==null?void 0:kl.value)==null?void 0:P.plat_id),type:"fatherSyncs",related:[{menus:t!==""?Sl.value+"/"+t:Sl.value,groups:l==null?void 0:l.name}]});ma=(Y=ma==null?void 0:ma.data)==null?void 0:Y.result,ma=ma==null?void 0:ma.filter(Ee=>{var Ba,Ua;return!((Ee==null?void 0:Ee.fatherPath)!==""&&((Ua=(Ba=Ee==null?void 0:Ee.quote)==null?void 0:Ba[0])==null?void 0:Ua.menus)===(Sl==null?void 0:Sl.value))});let wa=(ie=(oe=l==null?void 0:l.columns)==null?void 0:oe[0])==null?void 0:ie.prop,_a=(fa=il==null?void 0:il[0])==null?void 0:fa[wa],oa=[{tableName:(ra=l==null?void 0:l.relatedContents)==null?void 0:ra.find(Ee=>Ee==null?void 0:Ee.includes("content")),tableContents:il}],va=(Ie=ma==null?void 0:ma.map(Ee=>{var Ua,ve,fl,Xa,xl;let Ba=(Ua=Ee==null?void 0:Ee.contents)==null?void 0:Ua.filter(qa=>{var ol;return(ol=Object.values(qa))==null?void 0:ol.find(al=>al===_a)});if((Ba==null?void 0:Ba.length)>0){let qa=il==null?void 0:il[0];qa={...qa,id:(ve=Ba==null?void 0:Ba[0])==null?void 0:ve.id};let ol={},al=qa,cl;return Array.isArray((fl=Ee==null?void 0:Ee.struct)==null?void 0:fl[0])?cl=na.getColumnChild((Xa=Ee==null?void 0:Ee.struct)==null?void 0:Xa[0]):cl=Ee==null?void 0:Ee.struct,cl==null||cl.forEach(ul=>{var Wl,Kl;ol[ul.prop]=((Wl=ul==null?void 0:ul.words)!=null&&Wl[0]?al==null?void 0:al[(Kl=ul==null?void 0:ul.words)==null?void 0:Kl[0]]:al==null?void 0:al[ul==null?void 0:ul.prop])??""}),ol.id=(xl=Ba==null?void 0:Ba[0])==null?void 0:xl.id,delete ol.sort,{tableName:"content_"+(Ee==null?void 0:Ee.id),tableContents:[ol]}}else return}))==null?void 0:Ie.filter(Ee=>Ee);oa=[...oa,...va];let ue=await I.quoteApi({platId:parseInt((we=kl==null?void 0:kl.value)==null?void 0:we.plat_id),type:"sonSyncs",related:[{menus:t!==""?Sl.value+"/"+t:Sl.value,groups:l==null?void 0:l.name}]});if(ue=(fe=(Ca=ue==null?void 0:ue.data)==null?void 0:Ca.result)==null?void 0:fe.filter(Ee=>!(oa!=null&&oa.find(Ba=>(Ba==null?void 0:Ba.tableName)==="content_"+(Ee==null?void 0:Ee.id)))),ue=ue==null?void 0:ue.filter(Ee=>{var Ba,Ua;return!((Ee==null?void 0:Ee.fatherPath)!==""&&((Ua=(Ba=Ee==null?void 0:Ee.quote)==null?void 0:Ba[0])==null?void 0:Ua.menus)===(Sl==null?void 0:Sl.value))}),Te&&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=(Ze=(Je=Te==null?void 0:Te.replace("(",uo))==null?void 0:Je.split(uo))==null?void 0:Ze[1],Te=Te==null?void 0:Te.slice(0,(Te==null?void 0:Te.length)-1),(Te==null?void 0:Te[0])==="*"&&(Te="{"+((ka=(Fe=Te==null?void 0:Te.replace("{",uo))==null?void 0:Fe.split(uo))==null?void 0:ka[1])),Te=($e=Te==null?void 0:Te.replaceAll("{",""))==null?void 0:$e.replaceAll("}","");let Ee=na.calculatorAndToOr(Te);Ee=Ee==null?void 0:Ee[0];let Ba;if((pa=Object.values(Ee))!=null&&pa.some(Ua=>(Ua==null?void 0:Ua[0])==="*")){let Ua=(Se=(re=Ln.value)==null?void 0:re.find(ve=>(ve==null?void 0:ve.condition)==="child"))!=null&&Se.value?(Gr==null?void 0:Gr.value)+"/"+((je=(K=Ln.value)==null?void 0:K.find(ve=>(ve==null?void 0:ve.condition)==="child"))==null?void 0:je.value):Gr==null?void 0:Gr.value;Ba=await Pr(Ua,!1)}for(let Ua in Ee)if(((Be=Ee==null?void 0:Ee[Ua])==null?void 0:Be[0])==="*"){let ve=(ua=(Ye=(Ea=Ee[Ua])==null?void 0:Ea.slice(1,(za=Ee[Ua])==null?void 0:za.length))==null?void 0:Ye.split(":"))==null?void 0:ua[0],fl=(Z=(_e=Ee[Ua])==null?void 0:_e.split(":"))==null?void 0:Z[1],Xa=(ya=Ba==null?void 0:Ba.filter(xl=>(xl==null?void 0:xl.name)===ve))==null?void 0:ya[0];Xa=(La=(We=Xa==null?void 0:Xa.compData)==null?void 0:We.find(xl=>(xl==null?void 0:xl.key)==="tableContents"))==null?void 0:La.contents,Xa=(ml=Xa==null?void 0:Xa[0])==null?void 0:ml[fl],Ee[Ua]=Xa}Te=((Aa=Object.values(Ee))==null?void 0:Aa[0])??""}let Fa=(el=ue==null?void 0:ue.map(Ee=>{var Ua,ve,fl,Xa,xl;let Ba=(Ua=Ee==null?void 0:Ee.contents)==null?void 0:Ua.filter(qa=>{var ol;return(ol=Object.values(qa))==null?void 0:ol.find(al=>al===(Te===""?_a:Te))});if((Ba==null?void 0:Ba.length)>0){let qa=il==null?void 0:il[0];qa={...qa,id:(ve=Ba==null?void 0:Ba[0])==null?void 0:ve.id};let ol={},al=qa,cl;return Array.isArray((fl=Ee==null?void 0:Ee.struct)==null?void 0:fl[0])?cl=na.getColumnChild((Xa=Ee==null?void 0:Ee.struct)==null?void 0:Xa[0]):cl=Ee==null?void 0:Ee.struct,cl==null||cl.forEach(ul=>{var Kl,Fl,Ul,gr;let Wl=(Kl=l==null?void 0:l.columns)==null?void 0:Kl.find(rr=>{var kr,wr,Er;return((wr=(kr=rr==null?void 0:rr.words)==null?void 0:kr[0])==null?void 0:wr.replaceAll("'",""))===(ul==null?void 0:ul.prop)&&((Er=rr==null?void 0:rr.functionRelatedWords)==null?void 0:Er.length)>0});Wl=(Fl=Wl==null?void 0:Wl.prop)==null?void 0:Fl.replaceAll("'",""),ol[ul.prop]=((Ul=ul==null?void 0:ul.words)!=null&&Ul[0]?al==null?void 0:al[(gr=ul==null?void 0:ul.words)==null?void 0:gr[0]]:(al==null?void 0:al[ul==null?void 0:ul.prop])??(al==null?void 0:al[Wl]))??void 0}),ol.id=(xl=Ba==null?void 0:Ba[0])==null?void 0:xl.id,delete ol.sort,{tableName:"content_"+(Ee==null?void 0:Ee.id),tableContents:[ol]}}else return}))==null?void 0:el.filter(Ee=>Ee);oa=[...oa,...Fa],await I.pageBatchUpdateApi({platId:parseInt((Ja=kl==null?void 0:kl.value)==null?void 0:Ja.plat_id),changeContents:oa});let ja=[];oa==null||oa.forEach(Ee=>{var Ba;(Ba=Ee==null?void 0:Ee.tableContents)==null||Ba.forEach(Ua=>{ja.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(Ua),request_result:"{}",is_delete:!1,request_table:Ee==null?void 0:Ee.tableName,request_type:"method"})})}),await I.pageBatchAddApi({platId:parseInt((Pa=kl==null?void 0:kl.value)==null?void 0:Pa.plat_id),changeContents:[{tableName:"log",tableContents:ja}]})}_r.setRefreshCurStructure(!0),await yi(l)},yi=async l=>{var u,b,h,v,y,c,w,D,A,_,H,k,T,J,S,V,z,x;let r=(u=l==null?void 0:l.relatedContents)==null?void 0:u.filter(g=>g==null?void 0:g.includes("content_")),n=await I.getAllTables({platId:parseInt((b=kl==null?void 0:kl.value)==null?void 0:b.plat_id),tableNames:r});if(n=(v=(h=n==null?void 0:n.data)==null?void 0:h.result)==null?void 0:v[0],!n||!Array.isArray(n))return;n=n==null?void 0:n.map(g=>{g==null||delete g.source_table;const F={};for(let q in g){const G=g==null?void 0:g[q],be=G&&Object.prototype.toString.call(G)==="[object Object]"&&Object.keys(G).length===0,ze=Array.isArray(G)&&G.length===0;G==null||G==="{}"||be||ze?F[q]="":F[q]=G}return F});let t=(c=(y=r==null?void 0:r[0])==null?void 0:y.split("_"))==null?void 0:c[1],s=(w=Xl.value)==null?void 0:w.find(g=>(g==null?void 0:g.id)===t);if(s&&(s==null?void 0:s.comp)!=="Tabs"){let g=(D=s.compData)==null?void 0:D.map(F=>{var q;if((F==null?void 0:F.key)==="tableContents"){let G={...F,contents:n};return G.contents=(q=(G==null?void 0:G.contents)??[])==null?void 0:q.map(be=>{let ze={};for(let De in be)JSON.stringify(be==null?void 0:be[De])==="{}"?ze[De]="":ze[De]=be==null?void 0:be[De];return ze}),G}return F});s.compData=await wo(g,{}),Xl.value=(A=Xl.value)==null?void 0:A.map(F=>((F==null?void 0:F.id)===(s==null?void 0:s.id)&&(F=s),F))}else{let g=(_=Xl.value)==null?void 0:_.filter(F=>(F==null?void 0:F.comp)==="Tabs"||(F==null?void 0:F.comp)==="ParentItem");if(g=(H=g==null?void 0:g.filter(F=>{var q,G;return((q=F==null?void 0:F.compData)==null?void 0:q.find(be=>(be==null?void 0:be.id)===t))||((G=F==null?void 0:F.children)==null?void 0:G.find(be=>(be==null?void 0:be.id)===t))}))==null?void 0:H[0],g){const F=((k=g==null?void 0:g.compData)==null?void 0:k.find(q=>(q==null?void 0:q.id)===t))??((T=g==null?void 0:g.children)==null?void 0:T.find(q=>(q==null?void 0:q.id)===t));if(F){let q;F!=null&&F.compData&&((J=F.compData)==null?void 0:J.length)>0?q=(S=F.compData)==null?void 0:S.map(G=>(G==null?void 0:G.key)==="tableContents"?{...G,contents:n}:G):q=(V=F.children)==null?void 0:V.map(G=>(G==null?void 0:G.key)==="tableContents"?{...G,contents:n}:G),F.compData=await wo(q,{}),g.compData=(z=g.compData)==null?void 0:z.map(G=>((G==null?void 0:G.id)===(F==null?void 0:F.id)&&(G=F),G)),Xl.value=(x=Xl.value)==null?void 0:x.map(G=>((g!=null&&g.tabInform?(G==null?void 0:G.tabInform)===(g==null?void 0:g.tabInform):(G==null?void 0:G.name)===(g==null?void 0:g.name))&&(G=g),G))}}}},e0=l=>{let r=Ft.value;Ft.value=r==null?void 0:r.map(n=>(n.value=l==null?void 0:l[n==null?void 0:n.prop],n))},a0=async()=>{var D,A,_,H,k,T,J,S,V,z;let l=oc.value,r=tc.value,n=(A=(D=l==null?void 0:l.columns)==null?void 0:D.find(x=>x==null?void 0:x.mainKey))==null?void 0:A.prop,t=(H=(_=Ft.value)==null?void 0:_[0])==null?void 0:H.value,s=(k=l==null?void 0:l.fixContent)==null?void 0:k.map(x=>{var F;let g={};for(let q in x)Array.isArray(x==null?void 0:x[q])?g[q]=JSON.stringify(x==null?void 0:x[q]):g[q]=x==null?void 0:x[q];return(F=l==null?void 0:l.columns)==null||F.forEach(q=>{(q==null?void 0:q.formType)==="Upload"&&(g==null?void 0:g[q==null?void 0:q.prop])===""&&(g[q==null?void 0:q.prop]="{}")}),g[n]=t,g}),u=[{tableName:(T=l==null?void 0:l.relatedContents)==null?void 0:T.find(x=>x==null?void 0:x.includes("content")),tableContents:s}];await I.pageBatchAddApi({platId:parseInt((J=kl==null?void 0:kl.value)==null?void 0:J.plat_id),changeContents:u}),r=r==null?void 0:r.filter(x=>{var g,F,q;return(q=x==null?void 0:x.object_name)==null?void 0:q.includes((F=(g=l==null?void 0:l.fixContent)==null?void 0:g[0])==null?void 0:F[n])});let b=[],h=new Map;r==null||r.forEach(x=>{b.push(`content_${x==null?void 0:x.object_id}`),b.push(`struct_${x==null?void 0:x.object_id}`),h.set(x==null?void 0:x.object_id,x)});let v=await I.getAllTables({platId:parseInt((S=kl==null?void 0:kl.value)==null?void 0:S.plat_id),tableNames:b});v=(V=v==null?void 0:v.data)==null?void 0:V.result;let y=[],c=[];v=$a.chunk(v,2),v==null||v.forEach(x=>{var q,G,be,ze,De,ne,ke,X,pe,Ke,Sa,te,B,le,ye,se,Ne,ia,xa,Ha,ee;let g=h.get((ze=(be=(G=(q=x==null?void 0:x[1])==null?void 0:q[0])==null?void 0:G.source_table)==null?void 0:be.split("_"))==null?void 0:ze[1]),F=(ke=(ne=(De=g==null?void 0:g.object_name)==null?void 0:De.split("/"))==null?void 0:ne.filter((ea,Pe)=>{var ga,He;return((He=(ga=g==null?void 0:g.object_name)==null?void 0:ga.split("/"))==null?void 0:He.length)-1!==Pe}))==null?void 0:ke.join("/");if(F=F+"/"+t,c!=null&&c.find(ea=>(ea==null?void 0:ea.path)===F)||c.push({fatherPath:g==null?void 0:g.father_name,isShow:g==null?void 0:g.is_show,path:F}),((pe=(X=x==null?void 0:x[1])==null?void 0:X[0])==null?void 0:pe.类型)==="Table"){let ea=((te=(Sa=(Ke=x==null?void 0:x[1])==null?void 0:Ke[0])==null?void 0:Sa.结构)==null?void 0:te.contents)??[],Pe=pl.safeClone(ea);Array.isArray(Pe==null?void 0:Pe[0])&&(Pe=na.getColumnChild(Pe==null?void 0:Pe[0]));let ga=[];if(((B=x==null?void 0:x[0])==null?void 0:B.length)>0&&(ga=(le=x==null?void 0:x[0])==null?void 0:le.map(He=>Pe==null?void 0:Pe.map(Re=>(Re=(He==null?void 0:He[Re==null?void 0:Re.prop])??"",Re)))),y!=null&&y.find(He=>(He==null?void 0:He.key)===F)){let He=(ye=y==null?void 0:y.find(Re=>(Re==null?void 0:Re.key)===F))==null?void 0:ye.contents;He.push({isShow:g==null?void 0:g.is_show,filter:((ia=(Ne=(se=x==null?void 0:x[1])==null?void 0:se[0])==null?void 0:Ne.引用)==null?void 0:ia.contents)??"",key:"Table",name:Object.values(g==null?void 0:g.name),tableColumns:ea,tableContents:ga});let Ae=y==null?void 0:y.findIndex(Re=>(Re==null?void 0:Re.key)===F);y[Ae].contents=He}else y.push({key:F,contents:[{isShow:g==null?void 0:g.is_show,filter:((ee=(Ha=(xa=x==null?void 0:x[1])==null?void 0:xa[0])==null?void 0:Ha.引用)==null?void 0:ee.contents)??"",key:"Table",name:Object.values(g==null?void 0:g.name),tableColumns:ea,tableContents:ga}]})}});let w=[];w.push({key:"menuPath",contents:c}),w=[...w,...y],await I.createPlatFormDataApi({platId:parseInt((z=kl==null?void 0:kl.value)==null?void 0:z.plat_id),changeData:w}),wi.value=!1,_r.setRefreshTable(!0)},So=async(l,r)=>{},Do=async l=>{Xl.value=await na.getDeepDiffItems(l),_r.setItemData(Xl.value),_r.setOriginalData(Xl.value)};a.ref();const l0=a.ref(null),r0=()=>{var l,r;console.log("倒计时结束时"),I.ElMessageBox.alert(`超时未提交,【${(r=(l=Sl.value)==null?void 0:l.split("/"))==null?void 0:r[0]}】失败`,"告警",{confirmButtonText:"确认",type:"error"})},uc=a.ref([]),n0=a.computed(()=>{var l,r;return(r=(l=hi.value)==null?void 0:l[Sl.value])==null?void 0:r.filter(n=>{var t;return((t=n==null?void 0:n.key)==null?void 0:t.type)==="gridLayout"})});a.watch(()=>[Uf.value],()=>{nn.setSelectTitle([]),nn.setChooseTitle([])},{deep:!0});a.watch(()=>vi.value,async(l,r)=>{var t,s,u,b,h,v;if(JSON.stringify(l)===JSON.stringify(r))return;let n=(t=vi.value)==null?void 0:t.filter(y=>(y==null?void 0:y.condition)==="child"&&(y==null?void 0:y.value)!==""&&(y==null?void 0:y.parentContent)!==Gr.value);if((n==null?void 0:n.length)>0){Sr.setContentLoading(!0);let y=((s=n==null?void 0:n[0])==null?void 0:s.relatedContent)??(Sl==null?void 0:Sl.value),c=y+"/"+((u=n==null?void 0:n[0])==null?void 0:u.value),w=!!((b=n==null?void 0:n[0])!=null&&b.parentContent),D=await Pr(c,w,{originPath:y});D=(h=D==null?void 0:D.filter(H=>H))==null?void 0:h.map(H=>(H.isShow=!0,H)),console.log(D,"loadingContents");let A=await na.getDeepDiffItems(D),_=A==null?void 0:A.filter(H=>H==null?void 0:H.choice);Ao.setSelectTab((v=_==null?void 0:_[0])==null?void 0:v.choiceName),A=A==null?void 0:A.filter(H=>{var k;return!(H!=null&&H.choiceName)||(H==null?void 0:H.choiceName)===((k=_==null?void 0:_[0])==null?void 0:k.choiceName)}),Xl.value=A,Sr.setContentLoading(!1)}});const t0=l=>{setTimeout(async()=>{var b,h,v;let r=(b=vi.value)==null?void 0:b.filter(y=>(y==null?void 0:y.condition)==="child"&&(y==null?void 0:y.value)!==""&&(y==null?void 0:y.parentContent)!==Gr.value),n=Sl==null?void 0:Sl.value,t=Sl==null?void 0:Sl.value;(r==null?void 0:r.length)>0&&(t=((h=r==null?void 0:r[0])==null?void 0:h.relatedContent)??(Sl==null?void 0:Sl.value),n=t+"/"+((v=r==null?void 0:r[0])==null?void 0:v.value));let s=await Pr(n,!1,{originPath:t});s=s==null?void 0:s.map(y=>(y.isShow=!0,y)),Ao.setSelectTab(l);let u=await na.getDeepDiffItems(s);Xl.value=u==null?void 0:u.filter(y=>!(y!=null&&y.choiceName)||(y==null?void 0:y.choiceName)===l)},10)};a.watch(()=>Hf.value,l=>{l!=null&&l.length||(Xl.value=[])},{immediate:!0});a.watch(()=>[Sl.value],async l=>{var u,b,h,v;if(!Sl.value)return;if(Sl.value==="/"){Xl.value=[];return}Sr.setCurrentMenuPath(Sl.value),_r.setLockingPage(""),Xl.value=[];let r=a.getCurrentInstance();(u=r==null?void 0:r.scope)==null||u.stop(),r=null,Et.value=!1,Sr.setContentLoading(!0),nc.value=!0;let n=l==null?void 0:l[0],t=n,s=(b=Ln.value)==null?void 0:b.filter(y=>(y==null?void 0:y.condition)==="child"&&(y==null?void 0:y.value)!==""&&(y==null?void 0:y.parentContent)!==Sl.value&&!(y!=null&&y.relatedContent));if((s==null?void 0:s.length)>0&&(n=n+"/"+((h=s==null?void 0:s[0])==null?void 0:h.value)),n==="系统管理/日志管理")Xl.value=await $f("log");else{let y=await Pr(n,!0,{originPath:t});y=y==null?void 0:y.map(D=>(D.isShow=!0,D));let c=await na.getDeepDiffItems(y),w=c==null?void 0:c.filter(D=>D==null?void 0:D.choice);Ao.setSelectTab((v=w==null?void 0:w[0])==null?void 0:v.choiceName),Xl.value=c==null?void 0:c.filter(D=>{var A;return!(D!=null&&D.choiceName)||(D==null?void 0:D.choiceName)===((A=w==null?void 0:w[0])==null?void 0:A.choiceName)})}Sr.setContentLoading(!1),_r.setExtraContents([]),nn.setSelectIndex(""),nn.setSelectMenu(""),_r.setItemData(Xl.value),_r.setOriginalData(Xl.value),_r.setRefreshTable(!1),a.nextTick(()=>{$n.value=$n.value++,Et.value=!0})},{immediate:!0});a.watch(()=>[ds.value],async()=>{var l,r,n,t;if(ds.value){Xl.value=[];let s=a.getCurrentInstance();(l=s==null?void 0:s.scope)==null||l.stop(),s=null,Et.value=!1,Sr.setContentLoading(!0),nc.value=!0;let u=Gr==null?void 0:Gr.value,b=u,h=(r=Ln.value)==null?void 0:r.filter(w=>(w==null?void 0:w.condition)==="child"&&(w==null?void 0:w.value)!==""&&(w==null?void 0:w.parentContent)!==(Gr==null?void 0:Gr.value));(h==null?void 0:h.length)>0&&(u=u+"/"+((n=h==null?void 0:h[0])==null?void 0:n.value));let v=await Pr(u,!0,{originPath:b});v=v==null?void 0:v.map(w=>(w.isShow=!0,w));let y=await na.getDeepDiffItems(v),c=y==null?void 0:y.filter(w=>w==null?void 0:w.choice);if(Ao.setSelectTab((t=c==null?void 0:c[0])==null?void 0:t.choiceName),Xl.value=y==null?void 0:y.filter(w=>{var D;return!(w!=null&&w.choiceName)||(w==null?void 0:w.choiceName)===((D=c==null?void 0:c[0])==null?void 0:D.choiceName)}),Sr.setContentLoading(!1),_r.setExtraContents([]),nn.setSelectIndex(""),nn.setSelectMenu(""),_r.setItemData(Xl.value),_r.setOriginalData(Xl.value),_r.setRefreshTable(!1),(h==null?void 0:h.length)>0){let w=[...Ln.value,...h];nn.setSelectTitle(w)}a.nextTick(()=>{$n.value=$n.value++,Et.value=!0})}},{immediate:!0,deep:!0});const o0=async()=>{Sr.setLinkMenuInfo(null),Sr.setActiveMenuPath(jf.value),Xl.value=null,_r.setRouteToChildPath(""),Sr.setChildMenu("")},i0=l=>new RegExp("button","i").test(l),s0=l=>/^[\u4e00-\u9fa5]+\/[\u4e00-\u9fa5]+\^(.+)$/.test(l),dc=l=>{if(s0(l)){const r=l==null?void 0:l.split("^");(r==null?void 0:r.length)>0&&(r!=null&&r[0])&&Sr.setLinkMenuInfo({path:r==null?void 0:r[0],data:r==null?void 0:r[1]})}},pc=async(l,r,n)=>{var D,A,_,H,k,T,J,S,V,z,x,g;let t="",s="";for(let F in r)(r==null?void 0:r[F])===l&&(s=F);n==null||n.forEach(F=>{(F==null?void 0:F.prop)===s&&(t=F==null?void 0:F.fatherPath)});let u=t===""?Sl.value:t;t!==""&&Sr.setCurrentMenuPath(u),Sr.setCurrentMenuPath(u+"/"+l),Sr.setContentLoading(!0),await Pr(u+"/"+l,!0,{originPath:u+"/",row:r});let b=await Pr(u,!1),h=(D=b==null?void 0:b.filter(F=>(F==null?void 0:F.comp)==="Table"))==null?void 0:D[0],v=((k=(H=(_=(A=h==null?void 0:h.compData)==null?void 0:A.find(F=>(F==null?void 0:F.key)==="header"))==null?void 0:_.contents)==null?void 0:H[0])==null?void 0:k.prop)??((z=(V=(S=(J=(T=h==null?void 0:h.compData)==null?void 0:T.find(F=>(F==null?void 0:F.key)==="header"))==null?void 0:J.contents)==null?void 0:S[0])==null?void 0:V[0])==null?void 0:z.prop),y=(g=(x=h==null?void 0:h.compData)==null?void 0:x.find(F=>(F==null?void 0:F.key)==="tableContents"))==null?void 0:g.contents;y=y==null?void 0:y.map(F=>({label:F==null?void 0:F[v],value:F==null?void 0:F[v]}));let c=Ln.value,w={value:l,condition:"child",options:y,relatedContent:u,isShow:!0};c.push(w),nn.setSelectTitle(c),nn.setChooseTitle([w]),Sr.setContentLoading(!1),_r.setExtraContents([]),nn.setSelectIndex(""),nn.setSelectMenu(""),_r.setItemData(Xl.value),_r.setOriginalData(Xl.value)},c0=l=>{sc.value=l},kt=a.reactive({index:0,comp:null}),u0=a.computed(()=>{var l;return(l=Xl.value)==null?void 0:l.map((r,n)=>({id:r.id,name:r.name,status:d0(r,n)}))}),fc=(l,r)=>{var v,y,c,w,D;const n=r?l:l-2,t=(v=Xl.value)==null?void 0:v[n],s=(c=(y=t==null?void 0:t.compData)==null?void 0:y.find(A=>(A==null?void 0:A.key)==="header"))==null?void 0:c.contents,u=s==null?void 0:s.findIndex(A=>(A==null?void 0:A.isMainKey)&&(A==null?void 0:A.label)!=="操作"),b=u===-1?0:u,h=(D=(w=t==null?void 0:t.compData)==null?void 0:w.find(A=>(A==null?void 0:A.key)==="tableContents"))==null?void 0:D.contents;return{valid:h==null?void 0:h.every(A=>A==null?void 0:A[b+1]),length:(h==null?void 0:h.length)||0}},d0=(l,r)=>{var t;let n="process";if(((t=l==null?void 0:l.comp)==null?void 0:t.toUpperCase())==="TABLE"){const{valid:s,length:u}=fc(r,!0);kt.index===r?n="process":u===0?n="wait":n=s?"success":"error"}return n},hc=l=>{var n,t,s,u,b;const r=l+1;if(r>1&&((s=(t=(n=Xl.value)==null?void 0:n[l])==null?void 0:t.comp)==null?void 0:s.toUpperCase())==="TABLE"){const{valid:h}=fc(r);h?(kt.index=r,kt.comp=(u=Xl.value)==null?void 0:u[l]):ll.ElMessage({showClose:!0,type:"warning",message:"当前流程有输入未完成"})}else kt.index=r,kt.comp=(b=Xl.value)==null?void 0:b[l]},vc=a.computed(()=>{var l,r;return(r=(l=ic.value)==null?void 0:l[0])==null?void 0:r.isStepLayout});a.watch(()=>vc.value,l=>{l&&hc(0)},{immediate:!0});const p0={class:"table-content"},f0={class:"menu-config-wrap"},h0=["onClick"],v0={key:0,class:"viewport-wrap"},m0=["onClick"],y0={title:"选择显示列信息"},g0={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},b0=["title"],k0={class:"col-operate-wrap"},x0={key:0,class:"col-operate-radio-wrapper"},_0={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},w0={key:0,style:{display:"flex","justify-content":"center","align-items":"center"}},C0={class:"pop-view"},E0={class:"pop-wrapper"},S0={class:"file-list-pop"},D0=["title","onClick"],B0=["onClick"],N0=["onClick"],T0={key:1,style:{display:"flex","justify-content":"flex-end",gap:"8px","margin-top":"8px"}},A0={class:"form-content"},z0={key:0,class:"dialog-footer"},M0={class:"dialog-footer"},O0={class:"ocr-dialog-content"},I0={class:"ocr-steps"},L0={key:0,class:"ocr-action-buttons"},V0={key:1,class:"ocr-preview-area"},$0={class:"ocr-file-grid"},R0={class:"file-thumbnail"},P0=["src"],F0={key:1,class:"thumbnail-placeholder"},j0={class:"progress-svg",viewBox:"0 0 36 36"},H0=["stroke","stroke-width","stroke-dasharray"],U0={key:0,class:"progress-icon"},q0={key:1,class:"progress-icon"},K0=["onClick"],W0={class:"file-name"},Y0={key:0,class:"ocr-recognize-button"},G0={key:2,class:"ocr-progress-section"},J0={key:3,class:"ocr-confirm-area"},X0={class:"ocr-preview-tip"},Z0={class:"ocr-preview-table"},Q0={style:{display:"flex","align-items":"center",gap:"8px"}},e3={key:0},a3={key:4,class:"ocr-success-area"},l3={key:0,class:"ocr-dialog-footer"},r3={class:"form-content"},n3={style:{display:"flex","justify-content":"space-between",gap:"8px"}},t3={style:{display:"flex"}},fs="ss-ocr-upload-history",o3="ss-ocr-cert-history-v1",i3={__name:"index",props:{pageLayout:{type:String,default:"vertical"},related:{type:Array,default:[]},level:{type:Number,default:1},compName:{type:String,default:"",required:!1},compNames:{type:Array,default:()=>[],required:!1},compItem:{type:Object,default:()=>{}},operatingForm:{type:Object,default:()=>{}},cacheNewData:{type:Object,default:()=>{}},config:Object,parentTableId:{type:Number,default:0},itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,isDevMode:Boolean,changedContent:{type:Object,default:()=>{}},showHeader:{type:Boolean,default:!0},allowSelect:{type:Boolean,default:!0},allowOperate:{type:Boolean,default:!0},allMapContents:{type:Object,default:()=>{}}},emits:["getSliceContLength","clickMainKey","change","contentChange","onButtonClick","contentClick","pageChange","rowClick","routeUrl"],setup(l,{emit:r}){var Ii;const n=a.ref([]),t=xi(I.pinia),s=a.ref(null),u=a.ref(new Set),b=a.ref(new Map),h=a.ref(new Map),v=new Map,y=a.ref(new Map),c=l,w=a.ref((c==null?void 0:c.allowSelect)??!0),D=a.ref(((Ii=c==null?void 0:c.config)==null?void 0:Ii.showIndex)??!0),A=a.ref(),_=a.ref(!0),H=a.ref(!1),k=a.ref([]),T={sortable:"switch",filterable:"switch",showSummary:"switch",operable:"switch",fixed:"radio"},J=a.ref([{label:"排序",value:"sortable",checked:!1},{label:"合计",value:"showSummary",checked:!1},{type:"radio",label:"固定",value:"fixed",checked:"",options:[{label:"无",value:!1},{label:"左",value:"left"},{label:"右",value:"right"}]}]),S=na.useOriginalState(I.pinia);let V="$R";const{originalPath:z}=I.storeToRefs(S),x=z.value,g=a.computed(()=>{var f;const p=(f=na.getAllLeafNodes(De.value)||[])==null?void 0:f.filter(M=>(M==null?void 0:M.type)!=="operate"&&(M==null?void 0:M.label)!=="操作"&&(M==null?void 0:M.prop)!=="operate");return p.length>0?p.every(M=>!!(M!=null&&M.sortable)):!1});a.computed(()=>{var f;return(f=De.value)==null?void 0:f.every(M=>M==null?void 0:M.filterable)}),a.computed(()=>{var f;return(f=De.value)==null?void 0:f.every(M=>M==null?void 0:M.operable)});const F=a.ref(!0),q=a.ref([]),G=a.reactive({column:{},status:!1,text:"合计"}),be=a.reactive({currentPage:1,pageSize:10,total:0,pageSizes:[5,10,20]}),ze=r,De=a.ref([]),ne=a.ref([]),ke=a.ref([]),X=a.reactive({prop:"",order:null}),pe=a.ref([]),Ke=a.ref(!1),Sa=a.ref(!1),te=a.ref(null),{isUseBackdrop:B,initTrackFileType:le,getFileExtension:ye,setData:se,getFileInfo:Ne,getFilesInfo:ia}=bo.useThreeSystem(),xa=a.ref([]),Ha=a.ref(!1),ee=a.ref(),ea=I.useMenuState(),{importLoading:Pe,activeMenuPath:ga,contentLoading:He,linkMenuInfo:Ae}=I.storeToRefs(ea),Re=na.useTableComp(I.pinia),Ge=I.useModelComp(I.pinia),Ka=rt(I.pinia),{extraContents:Ia,cacheUpdatingData:R,tableViewContents:P,tableLoading:Y,pageMapState:oe,lockingPage:ie}=I.storeToRefs(Ge),{selectTab:fa}=I.storeToRefs(Ka),{compType:ra,hasEditable:Ie}=Hs.useRole(),we=a.ref([]),Ca=a.ref([]),fe=a.ref(new Map);a.ref(!1);const Je=a.ref("");a.ref();const Ze=a.ref(!0),Fe=a.ref(0),ka=a.ref(!0),$e=a.ref(""),pa=a.ref(!1),re=a.ref(null);a.ref([]);const Se=a.ref({label:"查看三维模型"}),K=a.ref(!1),je=a.ref(),Be=a.ref([]),za=a.ref([]),Ea=a.ref(!1),Ye=a.ref([]),ua=a.ref([]),_e=a.ref([]),Z=a.ref([]),ya=a.ref([]),We=()=>{try{const p=localStorage.getItem(fs),f=p?JSON.parse(p):[];ya.value=Array.isArray(f)?f:[]}catch{ya.value=[]}},La=()=>{try{localStorage.setItem(fs,JSON.stringify(ya.value||[]))}catch{}},ml=p=>{var Q,ae,j;if(!p)return;const f=p.url||((Q=p==null?void 0:p.uploadResult)==null?void 0:Q.url)||"",M=p.name||((ae=p==null?void 0:p.uploadResult)==null?void 0:ae.name)||((j=p==null?void 0:p.uploadResult)==null?void 0:j.fileName)||"";if(!f&&!M)return;const O={name:M,url:f,ts:Date.now()},$=String(O.name||"").trim().toLowerCase(),N=(ya.value||[]).findIndex(me=>String((me==null?void 0:me.name)||"").trim().toLowerCase()===$);N>-1&&ya.value.splice(N,1),ya.value.unshift(O),ya.value.length>20&&(ya.value=ya.value.slice(0,20)),La()};We();const Aa=(p,f)=>`${o3}:${String(p??"")}:${String(f??"")}`,el=(p,f)=>{try{const M=sessionStorage.getItem(Aa(p,f)),O=M?JSON.parse(M):[];return Array.isArray(O)?O:[]}catch{return[]}},Ja=(p,f,M)=>{try{sessionStorage.setItem(Aa(p,f),JSON.stringify(Array.isArray(M)?M:[]))}catch{}},Pa=(p,f,M)=>{if(!f)return;const O=el(p,f),$=[M,...O||[]].filter(Boolean).slice(0,1);return Ja(p,f,$),$},Te=(p,f,M)=>{if(!f||!M)return;const O=Aa(p,f),$=Aa(p,M);try{const N=sessionStorage.getItem(O);if(!N)return;const Q=(()=>{try{const me=JSON.parse(N);return Array.isArray(me)?me:[]}catch{return[]}})(),ae=el(p,M),j=[...Q,...ae||[]].filter(Boolean).sort((me,Ce)=>Number((Ce==null?void 0:Ce.ts)||0)-Number((me==null?void 0:me.ts)||0)).slice(0,1);sessionStorage.setItem($,JSON.stringify(j)),sessionStorage.removeItem(O)}catch{}},il=a.ref(!1),ma=a.ref(!1),wa=a.ref([]),_a=a.ref(null);a.ref(!1),a.ref([]),a.ref(""),a.ref("");const oa=a.ref(!1),va=a.ref([]),ue=a.ref(1),Fa=a.ref(new Map),ja=a.ref(new Map),Ee=a.ref(0),Ba=a.ref(!1),Ua=a.ref([]),ve=a.ref([]),fl=p=>{var f;try{const M=(f=na.getAllLeafNodes(De.value)||[])==null?void 0:f.filter(O=>(O==null?void 0:O.type)!=="operate"&&(O==null?void 0:O.label)!=="操作"&&(O==null?void 0:O.prop)!=="operate");return(M==null?void 0:M.find(O=>(O==null?void 0:O.prop)===p||(O==null?void 0:O.label)===p))||null}catch{return null}},Xa=p=>{const f=fl(p),M=(f==null?void 0:f.formType)||(f==null?void 0:f.columnType)||"Input";return pl.getComponent(M)||pl.getComponent("Input")},xl=a.ref([]),qa=a.ref(null),ol=a.ref([]),al=a.ref(null),cl=a.ref(""),ul=a.ref(!1),Wl=a.ref([]),Kl=a.ref(""),Fl=a.ref(!1),Ul=a.ref([]),gr=a.ref([]),rr=a.ref([]),kr=a.ref(null),wr=a.ref([]),Er=a.ref("");a.computed(()=>{var p;try{const f=(p=na.getAllLeafNodes(De.value)||[])==null?void 0:p.filter(O=>(O==null?void 0:O.type)!=="operate"&&(O==null?void 0:O.label)!=="操作"&&(O==null?void 0:O.prop)!=="operate"),M=new Map;return f==null||f.forEach(O=>{O!=null&&O.label&&(O!=null&&O.prop)&&M.set(O.label,O.prop)}),M.get("编号")||""}catch{return""}});const un=a.computed(()=>{var p;try{const f=(p=na.getAllLeafNodes(De.value)||[])==null?void 0:p.filter(O=>(O==null?void 0:O.type)!=="operate"&&(O==null?void 0:O.label)!=="操作"&&(O==null?void 0:O.prop)!=="operate"),M=new Map;return f==null||f.forEach(O=>{O!=null&&O.label&&(O!=null&&O.prop)&&M.set(O.label,O.prop)}),M.get("名称")||""}catch{return""}}),Jr=a.computed(()=>{var p;try{const f=(p=na.getAllLeafNodes(De.value)||[])==null?void 0:p.filter(O=>(O==null?void 0:O.type)!=="operate"&&(O==null?void 0:O.label)!=="操作"&&(O==null?void 0:O.prop)!=="operate"),M=new Map;return f==null||f.forEach(O=>{O!=null&&O.label&&(O!=null&&O.prop)&&M.set(O.label,O.prop)}),M.get("制造厂")||""}catch{return""}}),dn=()=>{Fl.value=!1,Ul.value=[],gr.value=[],rr.value=[],kr.value=null,wr.value=[],Er.value=""},Xr=p=>p==null?!1:typeof p=="string"?p.trim()!=="":Array.isArray(p)?p.length>0:!0,Ur=(p,f)=>{const M=(p==null?void 0:p.ocrRow)||{};for(const $ of Object.keys(M))$==="id"||$==="_isOCRRow"||$==="_ocrTableId"||Xr(M[$])&&(f[$]=M[$]);const O=Ca.value.find($=>$.id===f.id);if(O)for(const $ of Object.keys(M))$==="id"||$==="_isOCRRow"||$==="_ocrTableId"||Xr(M[$])&&(O[$]=M[$]);fe.value&&fe.value.set(f.id,f),Pa(c==null?void 0:c.index,f.id,p==null?void 0:p.versionItem),gr.value=[...gr.value||[],JSON.parse(JSON.stringify(f))]},pn=async(p,f=null)=>{var M,O,$,N,Q,ae,j;try{const me=(M=na.getAllLeafNodes(De.value)||[])==null?void 0:M.filter(aa=>(aa==null?void 0:aa.type)!=="operate"&&(aa==null?void 0:aa.label)!=="操作"&&(aa==null?void 0:aa.prop)!=="operate"),Ce=new Map;me==null||me.forEach(aa=>{aa!=null&&aa.label&&(aa!=null&&aa.prop)&&Ce.set(aa.label,aa.prop)});const Le=Ce.get("系统编号")||Ce.get("编号");if(!Le){console.warn("未找到系统编号字段,跳过向检校记录表插入数据");return}const Me=f||kr.value;if((Array.isArray(Me==null?void 0:Me.result)?Me.result:[]).length===0){console.warn("OCR识别结果为空,跳过向检校记录表插入数据");return}for(let aa=0;aa<p.length;aa++){const Va=p[aa],Da=Va[Le];if(!Da){console.warn(`第 ${aa+1} 条匹配行缺少系统编号,跳过`);continue}const la=`设备管理/试验设备/${Da}`,Wa=await I.getPageDataApi({platId:parseInt((O=Vl.value)==null?void 0:O.plat_id),pageName:la});if(!(($=Wa==null?void 0:Wa.data)!=null&&$.result)||!Array.isArray(Wa.data.result)){console.warn(`未找到详情页数据: ${la}`);continue}const sa=Wa.data.result.find(Qe=>(Qe==null?void 0:Qe.property_name)==="校检记录");if(!sa){console.warn(`详情页 ${la} 中未找到校检记录表`);continue}const Ra=(N=sa.contents)==null?void 0:N.find(Qe=>(Qe==null?void 0:Qe.key)&&Qe.key.startsWith("content_"));if(!Ra||!Ra.key){console.warn("校检记录表中未找到 content item");continue}const Na=Ra.key,ge=Array.isArray(Ra.value)?Ra.value:[];if(ge.length>=5){const ca=[...ge].sort((ha,Oa)=>{const dl=Number((ha==null?void 0:ha.create_time)||0),Za=Number((Oa==null?void 0:Oa.create_time)||0);return dl-Za})[0];ca!=null&&ca.id&&await I.pageBatchDeleteApi({platId:parseInt((Q=Vl.value)==null?void 0:Q.plat_id),changeContents:[{tableName:Na,tableContents:[{id:ca.id}]}]})}const ba=(ae=me==null?void 0:me.find(Qe=>(Qe==null?void 0:Qe.label)==="证书附件"))==null?void 0:ae.prop,ta=String(Date.now()),ce={id:ta},E=ge[0]||{},Oe=new Date().toISOString().split("T")[0];if(Object.keys(E||{}).forEach(Qe=>{if(Qe!=="id"){if(Qe==="证书附件"){ce[Qe]="";return}if(Qe==="校检日期"||Qe==="检校日期"){ce[Qe]=Va[Qe]||Va.校检日期||Va.检校日期||Oe;return}if(["校检周期","检校周期","校检结果","检校结果","计量状态","依据文件","证书编号"].includes(Qe)){ce[Qe]=Va[Qe]??"";return}ce[Qe]=Va[Qe]??""}}),ba&&Va[ba]){const Qe=Va[ba];if(Array.isArray(Qe)&&Qe.length>0)ce.证书附件=JSON.stringify(Qe.map(ca=>({url:(ca==null?void 0:ca.url)||"",name:(ca==null?void 0:ca.name)||(ca==null?void 0:ca.fileName)||"",fileName:(ca==null?void 0:ca.fileName)||(ca==null?void 0:ca.name)||""})).filter(ca=>ca.url||ca.name));else if(typeof Qe=="string")try{const ca=JSON.parse(Qe);ce.证书附件=Qe}catch{ce.证书附件=JSON.stringify([{url:Qe,name:Qe,fileName:Qe}])}}console.log(Na,"tableName","inspectionRecordRow",ce),await I.pageBatchAddApi({platId:parseInt((j=Vl.value)==null?void 0:j.plat_id),changeContents:[{tableName:Na,tableContents:[ce]}]});const xe=sa==null?void 0:sa.object_id;if(xe&&ta){const Qe=ba&&Va[ba]?Va[ba]:null;let ca=[],ha="",Oa=!1;if(Array.isArray(Qe)&&Qe.length>0){ca=Qe.map(bl=>({name:(bl==null?void 0:bl.name)||(bl==null?void 0:bl.fileName)||"",url:(bl==null?void 0:bl.url)||""})).filter(bl=>bl.url||bl.name);const Za=Qe[0];ha=(Za==null?void 0:Za.url)||"";const gl=(Za==null?void 0:Za.name)||(Za==null?void 0:Za.fileName)||"";Oa=String(gl).toLowerCase().endsWith(".pdf")||String(ha).toLowerCase().endsWith(".pdf")}else if(typeof Qe=="string")try{const Za=JSON.parse(Qe);Array.isArray(Za)?(ca=Za.map(gl=>({name:(gl==null?void 0:gl.name)||(gl==null?void 0:gl.fileName)||"",url:(gl==null?void 0:gl.url)||""})).filter(gl=>gl.url||gl.name),ca.length>0&&(ha=ca[0].url||"",Oa=String(ca[0].name).toLowerCase().endsWith(".pdf")||String(ha).toLowerCase().endsWith(".pdf"))):(ha=Qe,Oa=String(Qe).toLowerCase().endsWith(".pdf"))}catch{ha=Qe,Oa=String(Qe).toLowerCase().endsWith(".pdf")}const dl={ts:Date.now(),versionId:String(Date.now())+"_"+String(aa),label:new Date().toLocaleString(),certType:Va.证书类型||"",certNo:Va.证书编号||"",fileType:Oa?"pdf":"image",sourceUrl:Oa?ha:"",images:ca};Pa(xe,ta,dl)}}}catch(me){console.error("向校检记录表插入OCR识别结果失败:",me),ll.ElMessage.error("向校检记录表插入数据失败,请查看控制台")}},tn=p=>{const f=Array.isArray(p)?p:Ul.value||[];if(f.length===0){dn();return}if(f.find(N=>(N==null?void 0:N.__decision)==="replace"&&!(N!=null&&N.selectedTargetId))){ll.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}f.forEach(N=>{var ae;const Q=N==null?void 0:N.__decision;if(!(!Q||Q==="skip")){if(Q==="add"){Pa(c==null?void 0:c.index,(ae=N==null?void 0:N.ocrRow)==null?void 0:ae.id,N==null?void 0:N.versionItem),rr.value=[...rr.value||[],N.ocrRow];return}if(Q==="replace"){const j=N==null?void 0:N.selectedTargetId,me=(we.value||[]).find(Ce=>String(Ce==null?void 0:Ce.id)===String(j));if(!me)return;Ur(N,me)}}}),(gr.value||[]).length>0&&(we.value=[...we.value||[]]),(rr.value||[]).length>0&&(we.value=[...we.value||[],...rr.value||[]],Ca.value=[...Ca.value||[],...rr.value||[]],(rr.value||[]).forEach(N=>{var Q,ae;return(ae=(Q=fe.value)==null?void 0:Q.set)==null?void 0:ae.call(Q,N.id,N)})),Nr.value=we.value;const O=gr.value||[],$=rr.value||[];if(O.length>0&&(ze("change",{buttonName:"编辑",singleContent:O,content:we.value,relatedContents:c==null?void 0:c.related,index:c==null?void 0:c.index,parentTableId:c==null?void 0:c.parentTableId,columns:De.value,name:c==null?void 0:c.compName}),pn(O)),$.length>0){const N=kr.value;ze("change",{buttonName:"OCR批量新增",content:we.value,index:c==null?void 0:c.index,parentTableId:c==null?void 0:c.parentTableId,column:De.value,ocrRows:$,relatedContents:c==null?void 0:c.related,uploadedFiles:(Array.isArray(N==null?void 0:N.result)?N.result:[]).map(Q=>(Array.isArray(Q==null?void 0:Q.图片信息)?Q.图片信息:[]).map(ae=>({url:(ae==null?void 0:ae.url)||"",name:(ae==null?void 0:ae.name)||"",fileName:(ae==null?void 0:ae.name)||""})).filter(ae=>ae.url)),ocrResult:N,matchedCount:(O||[]).length,newCount:($||[]).length})}ll.ElMessage.success("已提交候选处理结果"),dn()},Dr=rc(),Zr=a.computed(()=>Dr.getConfig()),Br=a.ref(),Il=a.ref(),qr=Zs(I.pinia),Nr=a.ref(),gn=a.ref(0),tt=I.useUnit(I.pinia),{selectIndex:Rn,selectMenu:An,selectTitle:bn}=I.storeToRefs(tt),{selectString:Zl}=I.storeToRefs(qr),xr=I.useLoginState(I.pinia),{loginUserInfo:Vl}=I.storeToRefs(xr),Hl=a.ref(720),Al=a.ref(!1),cr=a.ref(!1),ar=a.ref([]),Pl=a.ref(),Mr=a.ref(!0),Or=a.ref(!0),kn=a.ref([]),Cn=a.inject("contentRef");a.provide("contentRef",Cn),a.provide("getSuggestListForCell",uu),a.provide("getSuggestLoadingForCell",(p,f)=>{const M=`${p==null?void 0:p.id}:${(f==null?void 0:f.prop)||(f==null?void 0:f.property)}`;return y.value.get(M)||!1}),a.watch(()=>{var p;return(p=we.value)==null?void 0:p.length},p=>{be.total=p}),a.watch(()=>P.value,async()=>{var f,M,O,$,N,Q,ae,j,me,Ce,Le,Me,Ue,aa,Va,Da,la;if(((f=P.value)==null?void 0:f.length)===0||!((M=c==null?void 0:c.itemData)!=null&&M.find(Wa=>(Wa==null?void 0:Wa.key)==="columnPath"))||!((O=c==null?void 0:c.itemData)!=null&&O.find(Wa=>(Wa==null?void 0:Wa.key)==="pageColumn")))return;let p=(me=(j=(ae=(Q=(N=($=c==null?void 0:c.itemData)==null?void 0:$.find(Wa=>(Wa==null?void 0:Wa.key)==="pageColumn"))==null?void 0:N.contents)==null?void 0:Q.split("["))==null?void 0:ae[1])==null?void 0:j.split("]"))==null?void 0:me[0];((Ue=(Me=(Le=(Ce=c==null?void 0:c.itemData)==null?void 0:Ce.find(Wa=>(Wa==null?void 0:Wa.key)==="pageColumn"))==null?void 0:Le.contents)==null?void 0:Me.split("["))==null?void 0:Ue[0])+((Va=(aa=P.value)==null?void 0:aa.find(Wa=>(Wa==null?void 0:Wa.key)===p))==null?void 0:Va.value),(la=(Da=c==null?void 0:c.itemData)==null?void 0:Da.find(Wa=>(Wa==null?void 0:Wa.key)==="pageGroup"))==null||la.contents,Oi(compData,c.allMapContents)},{deep:!0});const fn=p=>{var M,O,$,N,Q;const f=(O=(M=De.value)==null?void 0:M.filter(ae=>ae==null?void 0:ae.mainKey))==null?void 0:O.map(ae=>ae==null?void 0:ae.prop);if(f.length===0){const ae=($=De.value)==null?void 0:$.map(j=>j==null?void 0:j.prop);return(N=ae==null?void 0:ae.map(j=>p==null?void 0:p[j]))==null?void 0:N.join("|")}return(Q=f==null?void 0:f.map(ae=>p==null?void 0:p[ae]))==null?void 0:Q.join("|")},Pn=p=>{var ae,j,me,Ce,Le;const f=(j=(ae=De.value)==null?void 0:ae.filter(Me=>Me==null?void 0:Me.required))==null?void 0:j.map(Me=>Me==null?void 0:Me.prop),M=[];if(p==null||p.forEach(Me=>{f==null||f.forEach(Ue=>{const aa=Me[Ue];(aa==null||aa==="")&&(M.includes(Ue)||M.push(Ue))})}),M.length>0)return ll.ElMessage.warning(`请填写必填项:${M.join("、")}`);const O=new Map,$=new Map;(me=we.value)==null||me.forEach(Me=>{const Ue=fn(Me);O.set(Ue,Me)}),p==null||p.forEach(Me=>{const Ue=fn(Me);$.set(Ue,Me)});const N=p==null?void 0:p.filter(Me=>O.has(fn(Me))),Q=(Ce=we.value)==null?void 0:Ce.filter(Me=>$.has(fn(Me)));return(N==null?void 0:N.length)>0&&(d.columns=(Le=De.value)==null?void 0:Le.filter(Me=>(Me==null?void 0:Me.label)!=="操作"),d.existRows=Q,d.tableData=N,d.show=!0),p==null?void 0:p.filter(Me=>{const Ue=fn(Me);return!O.has(Ue)})},zn=a.ref(""),hn=a.ref(null),En=async()=>{var p,f,M,O,$,N;try{const Q=await I.quoteApi({related:[{menus:ga.value,groups:c==null?void 0:c.compName}],platId:parseInt((p=Vl.value)==null?void 0:p.plat_id)});if(((f=Q==null?void 0:Q.data)==null?void 0:f.code)===200){hn.value=(M=Q==null?void 0:Q.data)==null?void 0:M.result;const ae=(O=De.value)==null?void 0:O.map(Ce=>(Ce==null?void 0:Ce.prop)||(Ce==null?void 0:Ce.label)),j=Mn(ae,($=Q==null?void 0:Q.data)==null?void 0:$.result),me=j==null?void 0:j.flatMap(Ce=>Ce==null?void 0:Ce.quote);(me==null?void 0:me.length)>0&&(zn.value=(N=me==null?void 0:me.map(Ce=>Ce==null?void 0:Ce.menus))==null?void 0:N.join("、"))}}catch(Q){throw new Error(Q)}};function Mn(p,f){var M;return(M=f.filter(O=>O.struct&&Array.isArray(O.struct)?O.struct.some($=>$.words&&Array.isArray($.words)?$.words.some(N=>p.includes(N)):!1):!1))==null?void 0:M.map(O=>{const $={...O};return $.struct&&Array.isArray($.struct)&&($.struct=$.struct.filter(N=>N.words&&Array.isArray(N.words)?N.words.some(Q=>p.includes(Q)):!1)),$})}const Kr=async(p,f)=>{var M,O,$,N,Q,ae,j,me,Ce,Le;try{hn.value||await En();const Me=f==null?void 0:f.map(Ra=>{const Na=Object.keys(Ra),ge={};return Na.forEach((ba,ta)=>{ge[p[ta]]=Ra[ba]}),ge}),Ue=Pn(Me);if(!Ue||(Ue==null?void 0:Ue.length)===0)return;const aa=[];let Va=(we.value||[]).slice();(Ue||[]).forEach(Ra=>{const Na={...Ra};try{Na.sort=Wn(0,Va)}catch{}aa.push(Na),Va.unshift(Na)});let Da=await I.quoteApi({platId:parseInt((M=Vl==null?void 0:Vl.value)==null?void 0:M.plat_id),type:"fatherSyncs",related:[{menus:ga.value,groups:""},{menus:ga.value,groups:c==null?void 0:c.compName}]});Da=(O=Da==null?void 0:Da.data)==null?void 0:O.result;let la=Da==null?void 0:Da.map(Ra=>({tableName:"content_"+(Ra==null?void 0:Ra.id),tableContents:aa==null?void 0:aa.map((Na,ge)=>({id:ge,...Na}))})),Wa=[{tableName:($=c==null?void 0:c.related)==null?void 0:$.find(Ra=>Ra==null?void 0:Ra.includes("content")),tableContents:aa==null?void 0:aa.map((Ra,Na)=>({id:Na,...Ra}))}];Wa=[...Wa,...la];const sa=await I.pageBatchAddApi({platId:parseInt((N=Vl.value)==null?void 0:N.plat_id),changeContents:Wa});if(((Q=sa==null?void 0:sa.data)==null?void 0:Q.code)===200){const Ra={buttonName:"新增",columns:De.value,fixContent:aa==null?void 0:aa.map((ge,ba)=>({id:ba,...ge})),relatedContents:c==null?void 0:c.related};await yi(Ra),((ae=d==null?void 0:d.existRows)==null?void 0:ae.length)>0?ll.ElMessage.success("部分数据导入成功"):ll.ElMessage.success("数据导入成功");let Na=[];Wa==null||Wa.forEach(ge=>{var ba;(ba=ge==null?void 0:ge.tableContents)==null||ba.forEach(ta=>{Na.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(ta),request_result:"{}",is_delete:!1,request_table:ge==null?void 0:ge.tableName,request_type:"export"})})}),await I.pageBatchAddApi({platId:parseInt((j=Vl==null?void 0:Vl.value)==null?void 0:j.plat_id),changeContents:[{tableName:"log",tableContents:Na}]})}else{let Ra=[];Wa==null||Wa.forEach(Na=>{var ge;(ge=Na==null?void 0:Na.tableContents)==null||ge.forEach(ba=>{Ra.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(ba),request_result:"{}",is_delete:!1,request_table:Na==null?void 0:Na.tableName,request_type:"error"})})}),await I.pageBatchAddApi({platId:parseInt((me=Vl==null?void 0:Vl.value)==null?void 0:me.plat_id),changeContents:[{tableName:"log",tableContents:Ra}]}),ll.ElMessage.error("数据导入响应失败")}}catch(Me){throw ll.ElMessage.error("数据导入处理失败"),await I.pageBatchAddApi({platId:parseInt((Ce=Vl==null?void 0:Vl.value)==null?void 0:Ce.plat_id),changeContents:[{tableName:"log",tableContents:[{id:"1",request_method:"Post",request_url:"",request_param:JSON.stringify(t1),request_result:JSON.stringify(Me),is_delete:!1,request_table:(Le=c==null?void 0:c.related)==null?void 0:Le.find(Ue=>Ue==null?void 0:Ue.includes("content")),request_type:"error"}]}]}),new Error(Me)}},Sn=async p=>{var N,Q,ae,j,me,Ce,Le;let f=ke.value;f!=null&&f.find(Me=>(p==null?void 0:p.key)===(Me==null?void 0:Me.key))&&(f=f==null?void 0:f.filter(Me=>(p==null?void 0:p.key)!==(Me==null?void 0:Me.key))),f.push({key:p==null?void 0:p.key,value:[(Q=p==null?void 0:p.value)==null?void 0:Q[((N=p==null?void 0:p.value)==null?void 0:N.length)-1]]});let M=Z.value;M=M==null?void 0:M.map(Me=>{var Ue,aa;return(Me==null?void 0:Me.type)==="Select"&&(p==null?void 0:p.key)===(Me==null?void 0:Me.prop)&&Array.isArray(Me.value)&&(Ue=Me.value)!=null&&Ue.every(Va=>typeof Va=="string")&&(Me.selectValue=(aa=f==null?void 0:f.find(Va=>(Va==null?void 0:Va.key)===(Me==null?void 0:Me.prop)))==null?void 0:aa.value),Me});let O=(j=(ae=M==null?void 0:M.find(Me=>(Me==null?void 0:Me.prop)===(p==null?void 0:p.key)))==null?void 0:ae.optionUrl)==null?void 0:j.menuId,$=M==null?void 0:M.find(Me=>(Me==null?void 0:Me.prop)===(p==null?void 0:p.key));if(O){let Me=await fi($==null?void 0:$.optionUrl,O),Ue,aa=q.value,Va=(Le=(Ce=(me=Z.value)==null?void 0:me.find(Da=>{var la;return(la=$==null?void 0:$.optionUrl)==null?void 0:la.menuId}))==null?void 0:Ce.selectValue)==null?void 0:Le[0];if(Me==null||Me.forEach(Da=>{var la,Wa,sa,Ra,Na,ge,ba,ta,ce,E;if(O){let Oe=(Wa=(la=Z.value)==null?void 0:la.find(Qe=>{var ca,ha;return((ca=$==null?void 0:$.optionUrl)==null?void 0:ca.menuId)===((ha=Qe==null?void 0:Qe.optionUrl)==null?void 0:ha.menuId)}))==null?void 0:Wa.prop,xe=(Ra=(sa=M==null?void 0:M.find(Qe=>(Qe==null?void 0:Qe.prop)===Oe))==null?void 0:sa.selectValue)==null?void 0:Ra[0];Oe!=null&&Oe.includes("·")&&(Oe=(Na=Oe==null?void 0:Oe.split("·"))==null?void 0:Na[0],xe=(ce=(ta=(ba=p==null?void 0:p.value)==null?void 0:ba[((ge=p==null?void 0:p.value)==null?void 0:ge.length)-1])==null?void 0:ta.split(" "))==null?void 0:ce[0]),aa!=null&&aa.find(Qe=>(Qe==null?void 0:Qe.value)===Va)?Ue=(E=aa==null?void 0:aa.find(Qe=>(Qe==null?void 0:Qe.value)===Va))==null?void 0:E.objectValue:Da[Oe]===xe&&(Ue=Da)}}),Ue){let Da=M;Da=Da==null?void 0:Da.map(la=>{var Wa,sa,Ra,Na,ge,ba;return O&&(Ue!=null&&Ue[la==null?void 0:la.prop])&&$e.value==="新增"&&(la==null?void 0:la.prop)!==($==null?void 0:$.prop)?la.value=(Ue==null?void 0:Ue[la==null?void 0:la.prop])||(Ue==null?void 0:Ue[(Na=(Ra=(sa=(Wa=la==null?void 0:la.optionUrl)==null?void 0:Wa.groupSelect)==null?void 0:sa[1])==null?void 0:Ra.replaceAll("[",""))==null?void 0:Na.replaceAll("]","")]):la.value=(ba=(ge=Z.value)==null?void 0:ge.find(ta=>(ta==null?void 0:ta.prop)===(la==null?void 0:la.prop)))==null?void 0:ba.value,la}),Z.value=Da}}ke.value=f},Fn=async p=>{var f,M,O,$,N;if((f=p==null?void 0:p.toString())!=null&&f.includes(".txt")||(M=p==null?void 0:p.toString())!=null&&M.includes(".cpt")||(O=p==null?void 0:p.toString())!=null&&O.includes(".cyd")){const Q=await ll.axios.get(p,{responseType:"blob",headers:{"Content-Type":"application/json"}}),ae=new Blob([Q.data],{type:"application/octet-stream;charset=UTF-8"});let j=URL.createObjectURL(ae);ee.value=[{name:(N=p==null?void 0:p.split("/"))==null?void 0:N[(($=p==null?void 0:p.split("/"))==null?void 0:$.length)-1],blobUrl:j}],Ha.value=!0}};a.onBeforeUnmount(()=>{Or.value=!1;let p=gn.value;gn.value=p+1});const Tr=a.reactive({prop:"",order:null}),jn=a.computed(()=>{const p=(we.value??[]).slice(),f=Tr.prop||X.prop,M=Tr.order||X.order;if(!f||!M)return p;const O=M==="ascending",$=Q=>{if(f)return Q&&Object.prototype.hasOwnProperty.call(Q,f)?Q[f]:f.includes(".")?f.split(".").reduce((ae,j)=>ae==null?ae:ae[j],Q):Q==null?void 0:Q[f]},N=Q=>{if(Q==null)return{ok:!1,value:NaN};if(typeof Q=="number")return{ok:Number.isFinite(Q),value:Q};const ae=String(Q).trim();if(ae==="")return{ok:!1,value:NaN};const j=ae.replace(/[,\s]/g,"");if(!/^[+-]?(\d+\.?\d*|\.\d+)$/.test(j))return{ok:!1,value:NaN};const me=Number(j);return{ok:Number.isFinite(me),value:me}};return p.sort((Q,ae)=>{const j=$(Q),me=$(ae);if(j==null&&me==null)return 0;if(j==null)return O?-1:1;if(me==null)return O?1:-1;const Ce=N(j),Le=N(me);if(Ce.ok&&Le.ok)return O?Ce.value-Le.value:Le.value-Ce.value;const Me=Na=>{if(Na==null)return{ok:!1,value:NaN};const ge=String(Na).trim();if(ge==="")return{ok:!1,value:NaN};const ba=ge.match(/^(-)?(\d+):(\d{1,2}):(\d{1,2})$/);if(!ba)return{ok:!1,value:NaN};const ta=ba[1]?-1:1,ce=Number(ba[2]),E=Number(ba[3]),Oe=Number(ba[4]);return[ce,E,Oe].some(xe=>Number.isNaN(xe))?{ok:!1,value:NaN}:E>=60||Oe>=60?{ok:!1,value:NaN}:{ok:!0,value:ta*(ce*3600+E*60+Oe)}},Ue=Me(j),aa=Me(me);if(Ue.ok&&aa.ok)return O?Ue.value-aa.value:aa.value-Ue.value;const Va=new Date(j).getTime(),Da=new Date(me).getTime(),la=!Number.isNaN(Va),Wa=!Number.isNaN(Da);if(la&&Wa)return O?Va-Da:Da-Va;const sa=String(j),Ra=String(me);return O?sa.localeCompare(Ra):Ra.localeCompare(sa)})}),on=a.computed(()=>{var M;const p=(be.currentPage-1)*be.pageSize,f=p+be.pageSize;return ze("getSliceContLength",be),(M=jn.value)==null?void 0:M.slice(p,f)}),Dt=p=>{be.currentPage=p,ze("getSliceContLength",be)},zo=p=>{var O;be.pageSize=p;const f=((O=we.value)==null?void 0:O.length)??0,M=p>0?Math.ceil(f/p):1;be.currentPage>M&&(be.currentPage=M||1,ll.ElMessage.warning("当前页超出范围,已自动跳转到最后一页")),ze("getSliceContLength",be)},Mo=({prop:p,order:f})=>{Tr.prop=p,Tr.order=f,be.currentPage=1};function xn(p){const f=[];function M(O,$=""){O.forEach(N=>{N.children&&N.children.length>0?M(N.children,N.prop):f.push(N.prop)})}return M(p),f}const Oo=(p,f)=>{var ae,j,me,Ce;let M=(j=(ae=De.value)==null?void 0:ae.map(Le=>Le==null?void 0:Le.prop))==null?void 0:j.filter(Le=>Le!=="operate");((me=De.value)==null?void 0:me.some(Le=>{var Me;return((Me=Le==null?void 0:Le.children)==null?void 0:Me.length)>0}))&&(M=xn((Ce=De.value)==null?void 0:Ce.filter(Le=>(Le==null?void 0:Le.prop)!=="operate")));let $;if($=(p==null?void 0:p.length)===(M==null?void 0:M.length)?p:p.slice(0,M==null?void 0:M.length),!($==null?void 0:$.every(Le=>M==null?void 0:M.find(Me=>Le===Me))))return ll.ElMessage.error("导入的数据表头不匹配");Kr($,f)},Io=(p,f)=>{var $;const M=p==null?void 0:p.filter(N=>N!=="序号"),O=f==null?void 0:f.map(N=>{const Q=Object.entries(N);return Q.shift(),Object.fromEntries(Q)});Ge.setRefreshCurStructure(!1),(($=De.value)==null?void 0:$.length)===0||Oo(M,O)},Lo=(p,f,M,O)=>{const $=[],N=[],Q=me=>Object.keys(me).length;for(const me in p)if(p[me]!==void 0){const Ce=p[me],Le=[];for(const[Me,Ue]of Object.entries(Ce))Le.push(Ue),N.length<Q(Ce)&&N.push(Me);$.push(Le)}$.unshift(N);const ae=na.utils.aoa_to_sheet($),j=na.utils.book_new();na.utils.book_append_sheet(j,ae,O),na.writeFileSync(j,`${f}.xlsx`),ar.value=[]},Bt=async(p,f,M,O=!1,$)=>{var N,Q,ae,j,me,Ce,Le,Me;try{Ge.setRefreshCurStructure(!1);const Ue=await yr.getInsofDataApi({id:c==null?void 0:c.index});if(((N=Ue==null?void 0:Ue.data)==null?void 0:N.code)===200){let aa=(me=(j=(ae=(Q=Ue==null?void 0:Ue.data)==null?void 0:Q.result)==null?void 0:ae[0])==null?void 0:j.value)==null?void 0:me.pageData;O?aa={...aa,compData:(Le=aa==null?void 0:aa.compData)==null?void 0:Le.map(Da=>{var la;return(Da==null?void 0:Da.key)==="header"?{...Da,contents:(la=Da==null?void 0:Da.contents)==null?void 0:la.map(Wa=>({...Wa,[p]:M}))}:Da})}:aa={...aa,compData:(Ce=aa==null?void 0:aa.compData)==null?void 0:Ce.map(Da=>{var la,Wa;return(Da==null?void 0:Da.key)==="header"?{...Da,contents:(la=Da==null?void 0:Da.contents)==null?void 0:la.map(sa=>{if(Array.isArray(sa))sa=sa==null?void 0:sa.map(Ra=>(Ra==null?void 0:Ra.prop)===(f==null?void 0:f.prop)?{...Ra,[p]:M}:Ra);else if((sa==null?void 0:sa.prop)===(f==null?void 0:f.prop))return{...sa,[p]:M};return sa})}:(Da==null?void 0:Da.key)==="tableToForm"&&$?{...Da,contents:(Wa=Da==null?void 0:Da.contents)==null?void 0:Wa.map(sa=>(sa==null?void 0:sa.prop)===(f==null?void 0:f.prop)?{...sa,[$]:M}:sa)}:Da})};const Va=await yr.updateInsofDataApi({id:c==null?void 0:c.index,value:{pageData:aa}});((Me=Va==null?void 0:Va.data)==null?void 0:Me.code)===200?(ll.ElMessage.success("编辑成功"),Ge.setRefreshCurStructure(!0)):ll.ElMessage.error("编辑响应失败")}}catch(Ue){ll.ElMessage.error(Ue)}},Ut=async(p,f)=>{await Bt("label",f,p)},Ir=async(p,f)=>{await Bt("columnType",f,p,!1,"type")},Vo=async({newRow:p,targetIndex:f})=>{var $;if(!Ie(c.config,{type:ra.TABLE}))return;const O=(be.currentPage-1)*be.pageSize+(f??0);p._isTemp=!0;try{(p.sort===void 0||p.sort===null||String(p.sort).trim()==="")&&(p.sort=Wn(O,we.value||[]))}catch{}we.value.splice(O,0,p),await a.nextTick(),b.value.has(p.id)||b.value.set(p.id,I.cloneDeep(p)),we.value=($=we.value)==null?void 0:$.map(N=>({...N,tableEditType:(N==null?void 0:N.id)===p.id?"edit":(N==null?void 0:N.tableEditType)??"text"})),u.value.add(p.id),Al.value=!0},$o=(p,f,M,O=[])=>(!Array.isArray(f)||f.length===0||f.forEach($=>{const N=$==null?void 0:$.prop;if(!N)return;let Q=p==null?void 0:p[N];if(Q==null||String(Q).trim()==="")return;Q=String(Q);const ae=new Set([...(Array.isArray(M)?M:[]).filter(Ce=>(Ce==null?void 0:Ce.id)!==(p==null?void 0:p.id)).map(Ce=>Ce==null?void 0:Ce[N]).filter(Ce=>Ce!=null).map(Ce=>String(Ce)),...(Array.isArray(O)?O:[]).map(Ce=>Ce==null?void 0:Ce[N]).filter(Ce=>Ce!=null).map(Ce=>String(Ce))]);if(!ae.has(Q))return;let j=1,me="";for(;me=`${Q}(${j})`,!!ae.has(me);)j++;p[N]=me}),p),Nt=async()=>{var $,N,Q,ae,j,me,Ce,Le;const p=Array.from(u.value||[]);if(p.length===0)return;const f=(N=na.getColumnChild(($=I.cloneDeep(De.value))==null?void 0:$.filter(Me=>(Me==null?void 0:Me.label)!=="操作")))==null?void 0:N.filter(Me=>(Me==null?void 0:Me.required)===!0);if((f==null?void 0:f.length)>0)for(let Me=0;Me<p.length;Me++){const Ue=p[Me],aa=(Q=we.value)==null?void 0:Q.find(Va=>(Va==null?void 0:Va.id)===Ue);if(aa)for(let Va=0;Va<f.length;Va++){const Da=f[Va],la=Da==null?void 0:Da.prop,Wa=(Da==null?void 0:Da.label)??la,sa=aa==null?void 0:aa[la];if(sa===""||sa===null||sa===void 0||Array.isArray(sa)&&sa.length===0){ll.ElMessage.error(`${Wa}不能为空`);return}}}const M=[],O=[];if(p.forEach(Me=>{var Wa;const Ue=(Wa=we.value)==null?void 0:Wa.find(sa=>(sa==null?void 0:sa.id)===Me);if(!Ue)return;if(Ue!=null&&Ue._isTemp){const Ra=(na.getAllLeafNodes(De.value)||[]).filter(E=>(E==null?void 0:E.mainKey)===!0||(E==null?void 0:E.isMainKey)===!0),Na=we.value.findIndex(E=>(E==null?void 0:E.id)===Me),ge=Na>=0?Na+1:we.value.length+1;$o(Ue,Ra,we.value,M);const ba={id:ge.toString()};(Ue==null?void 0:Ue.sort)!==void 0&&(Ue==null?void 0:Ue.sort)!==null&&String(Ue.sort).trim()!==""?ba.sort=String(Ue.sort):ba.sort=Wn(Na>=0?Na:we.value.length-1,we.value||[]),(na.getAllLeafNodes(De.value)||[]).filter(E=>(E==null?void 0:E.type)!=="operate"&&(E==null?void 0:E.label)!=="操作"&&(E==null?void 0:E.prop)!=="operate").forEach(E=>{const Oe=E==null?void 0:E.prop;if(Oe){const xe=Ue[Oe];xe!==void 0?ba[Oe]=xe??"":ba[Oe]=""}}),M.push(ba);return}const Va=(na.getAllLeafNodes(De.value)||[]).filter(sa=>(sa==null?void 0:sa.type)!=="operate"&&(sa==null?void 0:sa.label)!=="操作"&&(sa==null?void 0:sa.prop)!=="operate"),Da=new Set(Va.map(sa=>sa==null?void 0:sa.prop).filter(Boolean)),la={};for(const sa of Da)Object.prototype.hasOwnProperty.call(Ue,sa)&&(la[sa]=Ue[sa]);O.push({id:Ue.id,value:{tableData:la}})}),Ge.setTableLoading(c==null?void 0:c.index),O.length>0){const Me=O.map(aa=>{const Va={id:aa.id,...aa.value.tableData};return delete Va._isOCRRow,delete Va._ocrTableId,delete Va._isTemp,delete Va.tableEditType,delete Va.index,Va}),Ue=[{tableName:(ae=c==null?void 0:c.related)==null?void 0:ae.find(aa=>aa==null?void 0:aa.includes("content")),tableContents:Me}];try{await I.pageBatchUpdateApi({platId:parseInt((j=Vl.value)==null?void 0:j.plat_id),changeContents:Ue})}catch(aa){ll.ElMessage.error(((Ce=(me=aa==null?void 0:aa.response)==null?void 0:me.data)==null?void 0:Ce.message)||(aa==null?void 0:aa.message)||"保存失败"),Ge.setTableLoading(!1);return}}if(M.length>0){const Me={fixContent:M,buttonName:"新增",relatedContents:c==null?void 0:c.related,name:c==null?void 0:c.compName,columns:De.value};ze("change",Me)}ll.ElMessage.success("保存成功"),u.value.clear(),b.value.clear(),we.value=(Le=we.value)==null?void 0:Le.map(Me=>({...Me,tableEditType:"text"})),Al.value=!1,Ge.setRefreshCurStructure(!0)},Ro=()=>{var f;const p=Array.from(u.value||[]);if(p.length===0){Al.value=!1;return}p.forEach(M=>{var N,Q;const O=b.value.get(M),$=(N=we.value)==null?void 0:N.find(ae=>(ae==null?void 0:ae.id)===M);if($!=null&&$._isTemp){we.value=we.value.filter(ae=>(ae==null?void 0:ae.id)!==$.id);return}if(O){const ae=(Q=we.value)==null?void 0:Q.findIndex(j=>(j==null?void 0:j.id)===M);ae!==-1&&(we.value[ae]={...we.value[ae],...O})}}),u.value.clear(),b.value.clear(),we.value=(f=we.value)==null?void 0:f.map(M=>({...M,tableEditType:"text"})),Al.value=!1},Tt=a.ref(!1),qt=async p=>{var $,N,Q,ae;if(!Al.value||p!=null&&p.isComposing||(p==null?void 0:p.key)!=="Enter")return;const f=p==null?void 0:p.target;if(((N=($=f==null?void 0:f.tagName)==null?void 0:$.toLowerCase)==null?void 0:N.call($))==="textarea")return;const O=document.getElementById("excel-table");O&&!O.contains(f)||((Q=f==null?void 0:f.blur)==null||Q.call(f),(ae=p.preventDefault)==null||ae.call(p),await a.nextTick(),await Kt())},Kt=async()=>{if(R.value){Al.value=!1;return}if(!Tt.value){Tt.value=!0;try{Array.from(u.value||[]).length>0?await Nt():Al.value=!1}finally{Promise.resolve().then(()=>{Tt.value=!1})}}},Po=p=>{ar.value=p},Wt=(p,f)=>{Pl.value===f?Mr.value=!1:Mr.value=!0,Pl.value=f==null?void 0:f.changeProp},ot=p=>{if(!p)return;const{item:f,value:M}=p,O=Z.value.find($=>$.prop==f.prop);O&&O.contents.push({label:M,value:M})},Qr=a.computed(()=>{var M,O,$;const p=(M=De.value)==null?void 0:M.some(N=>N==null?void 0:N.filterable);return document.documentElement.style.setProperty("--ssTable-header-filter-display",p?"inline-block":"none"),($=(O=De.value)==null?void 0:O.filter(N=>(N==null?void 0:N.label)!=="操作"))==null?void 0:$.map(N=>({...N,filterable:!!(N!=null&&N.filterable),showSummary:!!(N!=null&&N.showSummary),operable:!!(N!=null&&N.operable),fixed:N==null?void 0:N.fixed}))}),Hn=async(p,f,M)=>{const O=I.cloneDeep(De.value);await a.nextTick();const $=O==null?void 0:O.map(Q=>(M==null?void 0:M.label)===(Q==null?void 0:Q.label)?{...Q,[f]:p}:Q),N=At($);await ss(c.index,N),De.value=$,ne.value=N},At=p=>{var $;const f=p||[];return(($=na.getAllLeafNodes(f)||[])==null?void 0:$.filter(N=>(N==null?void 0:N.prop)&&(N==null?void 0:N.type)!=="operate"&&(N==null?void 0:N.label)!=="操作"&&(N==null?void 0:N.prop)!=="operate")).map(N=>{const{prop:Q}=N;return Tf(Q,N)})},Yt=async p=>{let f=await zf(c.index);f||(f=At(p)),ne.value=f},Gt=async(p,f)=>{const M=I.cloneDeep(De.value),O=Q=>Array.isArray(Q)?Q.map(ae=>{const j=Array.isArray(ae==null?void 0:ae.children)&&ae.children.length>0,me={...ae};return(me==null?void 0:me.prop)==="operate"||(me==null?void 0:me.label)==="操作"||(me==null?void 0:me.type)==="operate"?(me.sortable=!1,me.filterable=!1,me.operable=!1):me.sortable=j?!1:!!p,j&&(me.children=O(me.children)),me}):Q,$=O(M),N=At($);await ss(c.index,N),De.value=$,ne.value=N,await a.nextTick(),gn.value=gn.value+1},Jt=()=>{pa.value=!1},Un=p=>{ze("clickTrigger",p)},Xt=async p=>{var N,Q,ae,j,me,Ce,Le,Me,Ue,aa,Va,Da,la,Wa,sa;const f=p==null?void 0:p.row,M=p==null?void 0:p.rowData,O=p==null?void 0:p.suffix;if((N=f==null?void 0:f.toString())!=null&&N.includes(".urdf")||p!=null&&p.isUrdf||O!=null&&O.includes(".urdf")){if(f.includes(",")){ll.ElMessage.error("当前版本仅允许单个urdf预览!");return}if(B(f)){const Na={files:[Ne(f)],data:{}};se(Na);return}Ye.value=[{url:f,extension:ye(f)}],Sa.value=!0,te.value={data:I.cloneDeep(M)},Ke.value=!0;return}let $=[];if((Q=f==null?void 0:f.toString())!=null&&Q.includes(".stl")||(ae=f==null?void 0:f.toString())!=null&&ae.includes(".STL")||(j=f==null?void 0:f.toString())!=null&&j.includes(".obj")||(me=f==null?void 0:f.toString())!=null&&me.includes(".mtl")){const Ra=(Ce=f==null?void 0:f.toString())==null?void 0:Ce.split(","),Na=ia(Ra),ge=Na==null?void 0:Na[0];if(B(ge==null?void 0:ge.extension)){se({files:Na,data:{}});return}Ye.value=Na,Sa.value=!1,Ke.value=!0;return}if((Le=f==null?void 0:f.toString())!=null&&Le.includes(".stl")||(Me=f==null?void 0:f.toString())!=null&&Me.includes(".STL")||(Ue=f==null?void 0:f.toString())!=null&&Ue.includes(".obj")||(aa=f==null?void 0:f.toString())!=null&&aa.includes(".mtl")||O!=null&&O.includes(".stl")||O!=null&&O.includes(".STL")||O!=null&&O.includes(".obj")||O!=null&&O.includes(".mtl")){let Ra,Na=[],ge={};if(Array.isArray(f)?Ra=f:Ra=f==null?void 0:f.split(","),Ra==null||Ra.forEach(ba=>{ba.includes(".mtl")?Na.push(ba):ge.blob=ge.blob?ge.blob+","+ba:ba}),(Na==null?void 0:Na.length)>0&&(ge.mtlBlobs=Na),O&&(ge.suffix=O),(Da=(Va=Object.values(ge))==null?void 0:Va[0])!=null&&Da.includes("http:"))$.push(ge);else{const ba=new Blob([ge.blob],{type:"application/octet-stream;charset=UTF-8"});let ta=URL.createObjectURL(ba),ce="";(la=f==null?void 0:f.split("/"))==null||la.forEach((E,Oe)=>{var xe;Oe===((xe=f==null?void 0:f.split("/"))==null?void 0:xe.length)-1&&(ce=E)}),(Wa=ge.blob)!=null&&Wa.includes(".stl")&&(ce=(ce==null?void 0:ce.replaceAll(">",""))+".urdf"),ee.value=[{name:ce,blobUrl:ta}],Ha.value=!0}}else{const Ra=await ll.axios.get(f,{responseType:"blob",headers:{"Content-Type":"application/json"}}),Na=new Blob([Ra.data],{type:"application/octet-stream;charset=UTF-8"});let ge=URL.createObjectURL(Na),ba="";if((sa=f==null?void 0:f.split("/"))==null||sa.forEach((ta,ce)=>{var E;ce===((E=f==null?void 0:f.split("/"))==null?void 0:E.length)-1&&(ba=ta)}),B(ba)){const ta=le(ba),ce=Ne(f);se({files:[ce],data:{trackFileType:ta}});return}ee.value=[{name:ba,blobUrl:ge}],Ha.value=!0}($==null?void 0:$.length)>0&&t.setBlobUrls($)},qn=p=>{var O,$,N,Q;if(p!=null&&p.downloadUrl)return p==null?void 0:p.name;const f=(Q=(O=p==null?void 0:p.url)==null?void 0:O.split("."))==null?void 0:Q[((N=($=p==null?void 0:p.url)==null?void 0:$.split("."))==null?void 0:N.length)-1];return(p==null?void 0:p.name)+"."+f},Zt=p=>{if(!p)return"未知文件";try{const O=qn(p);if(typeof O=="string"&&O.includes("."))return O}catch{}const f=(p==null?void 0:p.fileName)||(p==null?void 0:p.name)||"未知文件",M=(p==null?void 0:p.suffix)||"";return f.includes(".")?f:`${f}${M}`},Qt=p=>{if(p==null||typeof p=="number"||typeof p!="string")return p;const f=p.match(/^(\d+)\_(\d+)$/);if(!f)return p;const M=Number(f[1]),O=Number(f[2]);return!Number.isFinite(M)||!Number.isFinite(O)?p:String(M*1e3+O)},Kn=p=>{if(p==null)return null;const f=String(p).trim();if(!f)return null;const M=Number(f);return Number.isFinite(M)?M:null},Fo=p=>{if(p==null)return null;const f=String(p).trim();if(!f)return null;if(/^\d+$/.test(f)){const $=Number(f);return Number.isFinite($)?f.length<=10?$*1e3:$:null}const M=f.includes("T")?f:f.replace(" ","T"),O=Date.parse(M);return Number.isFinite(O)?O:null},it=(p,f=[])=>{const M=Array.isArray(p)?p.slice():[];if(M.length<=1)return M;const O=new Map((f||[]).map((Q,ae)=>[String(Q),ae])),$=M.some(Q=>Kn(Q==null?void 0:Q.sort)!==null),N=M.map((Q,ae)=>({r:Q,idx:ae,id:String((Q==null?void 0:Q.id)??""),sortVal:Kn(Q==null?void 0:Q.sort),createTimeMs:Fo(Q==null?void 0:Q.create_time),prevIdx:O.has(String(Q==null?void 0:Q.id))?O.get(String(Q==null?void 0:Q.id)):Number.POSITIVE_INFINITY}));return N.sort((Q,ae)=>{if($){const Ce=Q.sortVal,Le=ae.sortVal;if(Ce===null&&Le!==null)return 1;if(Ce!==null&&Le===null)return-1;if(Ce!==null&&Le!==null&&Ce!==Le)return Ce-Le}const j=Q.createTimeMs,me=ae.createTimeMs;return j!==null&&me!==null&&j!==me?me-j:j!==null&&me===null?-1:j===null&&me!==null?1:Q.prevIdx!==ae.prevIdx?Q.prevIdx-ae.prevIdx:Q.idx-ae.idx}),N.map(Q=>Q.r)},Wn=(p,f=[])=>{const M=f==null?void 0:f[p-1],O=f==null?void 0:f[p],$=Kn(M==null?void 0:M.sort),N=Kn(O==null?void 0:O.sort);let Q=null;$!==null&&N!==null&&N>$?Q=($+N)/2:$!==null?Q=$+1:N!==null?Q=Math.max(N-1,0):Q=(p??0)+1;const ae=Number(Q.toFixed(6));return String(Number.isFinite(ae)?ae:Q)},st=async p=>{let f=null,M=null;if(p!=null&&p.id){const $=I.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});try{const N=await I.platformDownloadFile(p);f=URL.createObjectURL(N.data),M=Zt(p)}finally{$.close()}}else if(p!=null&&p.downloadUrl){const $=await ct(),N=I.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),Q=await ll.axios.post(p==null?void 0:p.url,null,{responseType:"blob",headers:{Authorization:$,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}).finally(()=>{N.close()}),ae=new Blob([Q.data],{type:"application/octet-stream;charset=UTF-8"});f=URL.createObjectURL(ae),M=p==null?void 0:p.name}else{const $=await I.platformDownloadFile({url:p==null?void 0:p.url});!p.url.toUpperCase().includes(".OBJ")&&!p.url.toUpperCase().includes(".STL")&&!p.url.toUpperCase().includes(".MTL")&&!p.url.toUpperCase().includes(".URDF")?(f=URL.createObjectURL($.data),M=qn(p)):f=p==null?void 0:p.url}if(B(f)){const $={row:`${f}`,suffix:ye(M)};Xt($);return}const O={name:M,blobUrl:f};ee.value=[O],Ha.value=!0},jo=async p=>{let f=null,M=null;if(p!=null&&p.id){const N=await I.platformDownloadFile(p);f=URL.createObjectURL(N.data),M=Zt(p)}else if(p!=null&&p.downloadUrl){const N=await ct(),Q=await ll.axios.post(p==null?void 0:p.url,null,{responseType:"blob",headers:{Authorization:N,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}),ae=new Blob([Q.data],{type:"application/octet-stream;charset=UTF-8"});f=URL.createObjectURL(ae),M=p==null?void 0:p.name}else{const N=await I.platformDownloadFile({url:p==null?void 0:p.url});f=URL.createObjectURL(N.data),M=qn(p)}const O={name:M,blobUrl:f},$=document.createElement("a");$.href=O.blobUrl,$.download=O.name,$.style.display="none",document.body.appendChild($),$.click(),setTimeout(()=>{document.body.removeChild($)},100)},zt=(p,f)=>{var O;if(Object.values(f).length===0)return;let M=p;return Object.values(f).find($=>{var N,Q,ae;return((N=$==null?void 0:$.toString())==null?void 0:N.includes(".txt"))||((Q=$==null?void 0:$.toString())==null?void 0:Q.includes(".cpt"))||((ae=$==null?void 0:$.toString())==null?void 0:ae.includes(".obj"))})?M=[...p,Se.value]:(O=c==null?void 0:c.config)!=null&&O.allowMove&&(M=[...p,{label:"迁移"}]),M},Ho=()=>{H.value=!0},Uo=a.ref([]),eo=async(p,f,M=!1)=>{var Q,ae,j,me;if(!p)return;if(M){we.value=[...fe.value.values()].filter(Ce=>Object.values(Ce).some(Le=>typeof Le=="string"?Le==null?void 0:Le.toLowerCase().includes(f==null?void 0:f.toLowerCase()):!1));return}let O={};for(let Ce in p)(p==null?void 0:p[Ce])!==""&&(O[Ce]=p==null?void 0:p[Ce]);if(JSON.stringify(O)==="{}"){we.value=Array.from(((Q=fe.value)==null?void 0:Q.values())??[]);return}let $=(ae=c==null?void 0:c.related)==null?void 0:ae.find(Ce=>Ce==null?void 0:Ce.includes("content_")),N=await I.getFillFind({platId:parseInt((j=Vl==null?void 0:Vl.value)==null?void 0:j.plat_id),tableName:$,params:O});N=(me=N==null?void 0:N.data)==null?void 0:me.result,we.value=N,Ge.setTableLoading(!1)},Yn=async p=>{var M,O;if(!Ie(c.config,{type:ra.TABLE})||!p)return;((M=Array.from(u.value))==null?void 0:M.length)>0&&await Nt();const f=p==null?void 0:p.id;f!=null&&(u.value.clear(),b.value.clear(),b.value.has(f)||b.value.set(f,I.cloneDeep(p)),we.value=(O=we.value)==null?void 0:O.map($=>({...$,tableEditType:($==null?void 0:$.id)===f?"edit":"text"})),u.value.add(f),Al.value=!0)},vn=async(p,f,M,O)=>{O!=null&&O.isExistChild&&ze("clickMainKey",p,M,De.value)},ao=()=>{Ha.value=!1},Mt=p=>{ze("rowClick",p)};a.watch(()=>c.changedContent,()=>{var M,O;if(!c.changedContent)return;let p=(M=we.value)==null?void 0:M.map($=>{var N;return $.id===((N=c.changedContent)==null?void 0:N.id)&&($={...c.changedContent,id:c.changedContent.newId?c.changedContent.newId:c.changedContent.id},delete $.newId),$});const f=(O=c.itemData)==null?void 0:O.map($=>(($==null?void 0:$.key)==="tableContents"&&($.contents=p),$));we.value=p,ze("contentChange",{contents:f,index:c.index}),ze("change",{content:p,index:c==null?void 0:c.index,buttonName:"",id:c==null?void 0:c.index})},{deep:!0,immediate:!0});const qo=()=>{},Ko=async()=>{const p=ga.value,f=sessionStorage.getItem("systemKey"),M=await na.getItemData(p,f,""),O=(M==null?void 0:M.find(ae=>(ae==null?void 0:ae.name)==="方法明细"))||(M==null?void 0:M[0]),$=(O==null?void 0:O.compData)||[],N=$==null?void 0:$.find(ae=>{const j=ae==null?void 0:ae.key;return j==="formContent"||j==="tableContents"});return N==null?void 0:N.contents},ct=async()=>{const f=ll.Local.get("access-token");return f?`Bearer ${f}`:""},Wo=async(p,{token:f,inputData:M}={})=>await ll.axios.post(p,M,{headers:{Authorization:f}}).catch($=>(ea.setImportLoading(!1),Promise.reject($))),Yo=p=>{var O;let f={};const M=[];return f.form={},(O=I.cloneDeep(p))==null||O.forEach(($,N)=>{var Q,ae,j,me,Ce,Le,Me,Ue,aa,Va,Da,la,Wa,sa;if(($==null?void 0:$.comp)==="Table"){(ae=(Q=$==null?void 0:$.compData)==null?void 0:Q.find(ba=>(ba==null?void 0:ba.key)==="header"))==null||ae.contents;let Ra=(Ce=(me=(j=$==null?void 0:$.compData)==null?void 0:j.find(ba=>(ba==null?void 0:ba.key)==="tableContents"))==null?void 0:me.contents)==null?void 0:Ce.map(ba=>ba.slice(1));(Va=(aa=(Ue=(Me=(Le=$==null?void 0:$.compData)==null?void 0:Le.find(ba=>(ba==null?void 0:ba.key)==="header"))==null?void 0:Me.contents)==null?void 0:Ue[0])==null?void 0:aa[0])==null||Va.label;let Na=(la=(Da=$==null?void 0:$.compData)==null?void 0:Da.find(ba=>(ba==null?void 0:ba.key)==="header"))==null?void 0:la.contents,ge=[];Ra==null||Ra.forEach(ba=>{let ta=[];ba==null||ba.forEach((ce,E)=>{var xe;let Oe={};((xe=Na[E])==null?void 0:xe.label)!=="操作"&&(Oe[Na[E].label]=ce,ta.push(Oe))}),ge.push(ta)}),f[$.name]=ge}else{const Ra=(sa=(Wa=$.compData)==null?void 0:Wa.find(Na=>(Na==null?void 0:Na.key)==="formContent"))==null?void 0:sa.contents;Ra==null||Ra.forEach(Na=>{var ge,ba;if(Na.prop!==""){let ta=Na==null?void 0:Na.value;Array.isArray(ta)?ta=((ge=ta==null?void 0:ta[0])==null?void 0:ge.oldUrl)||"http://222.92.178.198:62001/"+((ba=ta==null?void 0:ta[0])==null?void 0:ba.url):ta=ta.toString(),Na={key:(Na==null?void 0:Na.prop)??(Na==null?void 0:Na.label),value:ta},M.push(Na)}})}}),f.form=na.getFormContents(M),f},Go=p=>{const f=[],M=O=>{O&&typeof O=="object"&&!Array.isArray(O)?Object.values(O).forEach(M):f.push(O)};return M(p),f},Jo=async(p,f,M)=>{var Na,ge,ba,ta,ce,E,Oe,xe,Qe,ca,ha,Oa,dl,Za,gl,bl,Rl;ea.setImportLoading(!0),Ge.setFreshContent(!1);let O=await Ko().catch(Ga=>(ea.setImportLoading(!1),Promise.reject(Ga)));O=O==null?void 0:O.filter(Ga=>{var El;return((El=Ga==null?void 0:Ga.find(Ya=>Ya==null?void 0:Ya.id))==null?void 0:El.id)===(f==null?void 0:f.id)});let $=na.getEqualChild([(Na=De.value)==null?void 0:Na.filter(Ga=>(Ga==null?void 0:Ga.label)!=="操作")]);const N=(ba=(ge=na.tableToForm(O,$))==null?void 0:ge[0])==null?void 0:ba.find(Ga=>{const El=Ga==null?void 0:Ga.key;return El==="Interface"||El==="方法体"}),Q=N==null?void 0:N.value;if(!Q){console.log("未搜索到isMain, 缺少算法执行接口"),ea.setImportLoading(!1);return}const ae=De.value?na.getEqualChild([De.value]):[],j=ae.find(Ga=>{const El=Ga==null?void 0:Ga.prop;return El==="Input1"||El==="输入数据.输入1"||El==="样本输入数据"}),me=j==null?void 0:j.prop;let Ce=f==null?void 0:f[me];const Le=await ct().catch(Ga=>(ea.setImportLoading(!1),Promise.reject(Ga)));let Me=!0,Ue="";(ta=De.value)==null||ta.forEach(Ga=>{(Ga==null?void 0:Ga.prop)===me&&(Me=!!(Ga!=null&&Ga.childPath),Ue=Ga==null?void 0:Ga.childPath)});let aa="";if(Me){let Ga=(E=(ce=De.value)==null?void 0:ce.find(vl=>(vl==null?void 0:vl.isMainKey)===!0))==null?void 0:E.prop;aa=f==null?void 0:f[Ga];let El=Ue==null?void 0:Ue.split(x),Ya=[];El==null||El.forEach((vl,Tl)=>{(El==null?void 0:El.length)-1===Tl&&Ya.push(aa),Ya.push(vl)}),Ya=Ya==null?void 0:Ya[0];let hl=await na.getItemData(Ya,sessionStorage.getItem("systemKey"),""),Qa=hl==null?void 0:hl.filter(vl=>(vl==null?void 0:vl.name)===me);Qa=Qa==null?void 0:Qa.map(vl=>{var Tl;return vl.compData=(Tl=vl==null?void 0:vl.compData)==null?void 0:Tl.map(Dl=>{var ur;return(Dl==null?void 0:Dl.key)==="tableContents"&&(Dl.contents=(ur=Dl==null?void 0:Dl.contents)==null?void 0:ur.filter(Ll=>(Ll==null?void 0:Ll[1])===(f==null?void 0:f[me]))),Dl}),vl}),(!Qa||(Qa==null?void 0:Qa.length)===0)&&(Qa=hl,Qa=Qa==null?void 0:Qa.map(vl=>{var Tl;return vl.compData=(Tl=vl==null?void 0:vl.compData)==null?void 0:Tl.map(Dl=>{var ur;return(Dl==null?void 0:Dl.key)==="tableContents"&&(Dl.contents=(ur=Dl==null?void 0:Dl.contents)==null?void 0:ur.filter(Ll=>{var wl,Nl;return(Ll==null?void 0:Ll[1])===(f==null?void 0:f[(Nl=(wl=De==null?void 0:De.value)==null?void 0:wl[0])==null?void 0:Nl.prop])})),Dl}),vl})),Ce=Yo(Qa)}const Va=await Wo(Q,{token:Le,inputData:Ce}).catch(Ga=>(ea.setImportLoading(!1),Promise.reject(Ga))),Da=(Oe=Va==null?void 0:Va.data)==null?void 0:Oe.data,la=ae.find(Ga=>(Ga==null?void 0:Ga.prop)==="Output1"),Wa=la==null?void 0:la.prop;let sa=[],Ra=[];if(Da&&((xe=Object.values(Da))==null?void 0:xe.length)>0){let Ga=[];const El=new FormData,Ya=(Qe=Go(Da))==null?void 0:Qe.map(async Qa=>{var vl,Tl;if(!Array.isArray(Qa)&&(Qa!=null&&Qa.includes("http"))){let Dl=await ll.axios.get(Qa,{responseType:"blob"}),ur=(Tl=Qa==null?void 0:Qa.split("/"))==null?void 0:Tl[((vl=Qa==null?void 0:Qa.split("/"))==null?void 0:vl.length)-1];El.append("files",Dl.data,ur)}else Ga.push(Qa)});if(await Promise.all(Ya),!na.isFormDataEmpty(El)){let Qa=await I.uploadAmountApi(El),vl=(ha=(ca=Qa==null?void 0:Qa.data)==null?void 0:ca.result)==null?void 0:ha.map(Tl=>{var Dl,ur,Ll,wl,Nl,Yl;return{name:(Yl=(Nl=(wl=(Dl=Tl==null?void 0:Tl.url)==null?void 0:Dl.split("/"))==null?void 0:wl[((Ll=(ur=Tl==null?void 0:Tl.url)==null?void 0:ur.split("/"))==null?void 0:Ll.length)-1])==null?void 0:Nl.split("."))==null?void 0:Yl[0],url:Tl==null?void 0:Tl.url}});Ga=[...Ga,...vl]}let hl={};for(let Qa in f)Qa!=="id"&&(hl[Qa]=f[Qa]);hl[Wa]=Ga,Ra.push({id:f==null?void 0:f.id,value:{tableData:hl}})}if((Ra==null?void 0:Ra.length)>0){const Ga=Ra.map(Ya=>{const hl={id:Ya.id,...Ya.value.tableData};return delete hl._isOCRRow,delete hl._ocrTableId,delete hl._isTemp,delete hl.tableEditType,delete hl.index,hl}),El=[{tableName:(Oa=c==null?void 0:c.related)==null?void 0:Oa.find(Ya=>Ya==null?void 0:Ya.includes("content")),tableContents:Ga}];await I.pageBatchUpdateApi({platId:parseInt((dl=Vl.value)==null?void 0:dl.plat_id),changeContents:El})}if((sa==null?void 0:sa.length)>0)try{await I.pageBatchAddApi({platId:parseInt((Za=Vl.value)==null?void 0:Za.plat_id),changeContents:[{tableName:(gl=c==null?void 0:c.related)==null?void 0:gl.find(Ga=>Ga==null?void 0:Ga.includes("content")),tableContents:sa.map(Ga=>{var Ya,hl,Qa;const El={id:((Ya=Ga==null?void 0:Ga.key)==null?void 0:Ya.id)??((hl=Ga==null?void 0:Ga.key)==null?void 0:hl.rowId)??(Ga==null?void 0:Ga.id),...((Qa=Ga==null?void 0:Ga.value)==null?void 0:Qa.tableData)||{}};return delete El._isOCRRow,delete El._ocrTableId,delete El._isTemp,delete El.tableEditType,delete El.index,Object.keys(El).forEach(vl=>{vl==="证书附件"&&Array.isArray(El[vl])&&(El[vl]=JSON.stringify(El[vl]))}),El})}]})}catch(Ga){ll.ElMessage.error(((Rl=(bl=Ga==null?void 0:Ga.response)==null?void 0:bl.data)==null?void 0:Rl.message)||(Ga==null?void 0:Ga.message)||"保存失败"),Ge.setTableLoading(!1);return}Lt(!0),ea.setImportLoading(!1),Ge.setFreshContent(!0)},lo=(p,f)=>(p=p==null?void 0:p.map(M=>{var O,$;return M!=null&&M.children&&((O=M.children)!=null&&O.find(N=>N.id===(f==null?void 0:f.id))?M.children=($=M.children)==null?void 0:$.filter(N=>(N==null?void 0:N.id)!==(f==null?void 0:f.id)):M.children=lo(M.children,f)),M}),p),ut=a.ref(!1),Xo=()=>{ut.value=!0},i=async p=>{var M,O,$,N;ut.value=!1;const f=Array.isArray(p)?p:p?[p]:[];if(f.length!==0)for(const Q of f){const ae={name:Q.name||`capture-${Date.now()}.jpg`,url:URL.createObjectURL(Q),raw:Q,uid:Date.now()+Math.random()};wa.value.push(ae),zl(ae,"uploading"),$l(ae,0);try{const j=new FormData;j.append("file",Q,ae.name);const me=await I.platformUploadFile(j);ae.uploadResult=((M=me==null?void 0:me.data)==null?void 0:M.result)||{name:ae.name,url:"",fileName:ae.name},ml({name:((O=ae.uploadResult)==null?void 0:O.name)||ae.name,url:(($=ae.uploadResult)==null?void 0:$.url)||"",id:(N=ae.uploadResult)==null?void 0:N.id}),zl(ae,"uploaded"),$l(ae,100)}catch(j){console.error("文件上传失败:",j),ll.ElMessage.error(`文件 ${ae.name} 上传失败,请重试`),zl(ae,"pending"),$l(ae,0);const me=wa.value.findIndex(Ce=>Ce.uid===ae.uid);me>-1&&wa.value.splice(me,1)}}},o=a.reactive({title:"迁移至",show:!1,width:"20%",selectRow:null,from:c==null?void 0:c.index,to:null,contents:[],formRules:{groupName:[{required:!0,message:"输入不能为空",trigger:"blur"},{validator:(p,f,M)=>{f===(c==null?void 0:c.index)?M(new Error("选择源不能和目标源一致")):M()}}]},buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"确认",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]}),d=a.reactive({title:"温馨提示:检测到导入的以下数据,系统中已存在,请选择操作",show:!1,width:"70%",columns:[],tableData:[],existRows:[],buttonValue:[{label:"取消",value:"cancel",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"覆盖",render:"popover",value:"replace",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}],result:""}),m=()=>{d.show=!1},C=async p=>{var f,M,O,$,N,Q,ae,j;try{if(p==="cancel"&&(d.show=!1),p==="replace"&&((f=d==null?void 0:d.existRows)==null?void 0:f.length)>0){await I.pageBatchDeleteApi({platId:parseInt((M=Vl.value)==null?void 0:M.plat_id),changeContents:[{tableName:((O=c==null?void 0:c.related)==null?void 0:O.find(Ce=>Ce==null?void 0:Ce.includes("content_")))||(($=c==null?void 0:c.related)==null?void 0:$.find(Ce=>Ce==null?void 0:Ce.includes("content"))),tableContents:d==null?void 0:d.existRows}]});const me=await I.pageBatchAddApi({platId:parseInt((N=Vl.value)==null?void 0:N.plat_id),changeContents:[{tableName:(Q=c==null?void 0:c.related)==null?void 0:Q.find(Ce=>Ce==null?void 0:Ce.includes("content")),tableContents:(()=>{const Ce=(we.value||[]).filter(aa=>!((d==null?void 0:d.existRows)||[]).some(Va=>String(Va==null?void 0:Va.id)===String(aa==null?void 0:aa.id))),Le=(d==null?void 0:d.tableData)||[],Me=[];let Ue=Ce.slice();return Le.forEach(aa=>{const Va={...aa};try{Va.sort=Wn(0,Ue)}catch{}Me.push(Va),Ue.unshift(Va)}),Me.map((aa,Va)=>({id:Va,...aa}))})()}]});((ae=me==null?void 0:me.data)==null?void 0:ae.code)===200&&(await yi({buttonName:"新增",columns:De.value,fixContent:(j=d==null?void 0:d.tableData)==null?void 0:j.map((Ce,Le)=>({id:Le,...Ce})),relatedContents:c==null?void 0:c.related}),ll.ElMessage.success("数据导入替换成功"))}}catch{throw new Error(e)}finally{d.show=!1,d.columns=[],d.tableData=[],d.existRows=[]}},L=()=>{o.show=!1},U=p=>{var f,M;if((p==null?void 0:p.buttonName)==="取消")return o.show=!1;o.to=p==null?void 0:p.content,!(!(c!=null&&c.index)||!((f=o.to)!=null&&f.groupName))&&(c==null?void 0:c.index)!==((M=o.to)==null?void 0:M.groupName)&&(ze("change",{buttonName:"迁移",value:{from:o.from,to:o.to,data:o.selectRow}}),o.show=!1)},W=async p=>{var f,M,O,$;if(p){if(!Dr.validateFileSize(p.raw)){ll.ElMessage.warning(`文件大小不能超过 ${Zr.value.maxSize}MB`);const N=wa.value.findIndex(Q=>Q.uid===p.uid);N>-1&&wa.value.splice(N,1),de();return}if(!Dr.validateFileType(p.raw)){ll.ElMessage.warning("请上传图片文件");const N=wa.value.findIndex(Q=>Q.uid===p.uid);N>-1&&wa.value.splice(N,1),de();return}zl(p,"uploading"),$l(p,0);try{const N=new FormData;N.append("file",p.raw,p.name);const Q=await I.platformUploadFile(N);p.uploadResult=((f=Q==null?void 0:Q.data)==null?void 0:f.result)||{name:p.name,url:"",fileName:p.name},ml({name:((M=p.uploadResult)==null?void 0:M.name)||p.name,url:((O=p.uploadResult)==null?void 0:O.url)||"",id:($=p.uploadResult)==null?void 0:$.id}),zl(p,"uploaded"),$l(p,100)}catch(N){console.error("文件上传失败:",N),ll.ElMessage.error(`文件 ${p.name} 上传失败,请重试`),zl(p,"pending"),$l(p,0);const Q=wa.value.findIndex(ae=>ae.uid===p.uid);Q>-1&&wa.value.splice(Q,1)}finally{de()}}},de=()=>{a.nextTick(()=>{const p=document.querySelector('.ocr-upload-input input[type="file"]');p&&(p.value="")})},Ve=async()=>{var M,O;if(sessionStorage.setItem("ocr_root_table_id",String((c==null?void 0:c.index)??"")),wa.value.length===0){ll.ElMessage.warning("请先选择要上传的图片");return}if(wa.value.filter($=>{const N=yl($);return N!=="uploaded"&&N!=="completed"&&N!=="failed"}).length>0){ll.ElMessage.warning("请等待所有文件上传完成后再开始识别");return}ma.value=!0,Ee.value=0;let f=null;try{wa.value.forEach(la=>{zl(la,"processing")});const $=Math.floor(Math.random()*10)+90;f=setInterval(()=>{Ee.value<$?Ee.value+=1:clearInterval(f)},50);const N=wa.value.map(la=>{var Wa,sa,Ra;return{name:((Wa=la.uploadResult)==null?void 0:Wa.name)||la.name,url:((sa=la.uploadResult)==null?void 0:sa.url)||"",fileName:((Ra=la.uploadResult)==null?void 0:Ra.fileName)||la.name}}),Q=Dr.extractTableHeaders(De.value),ae=N.map(la=>({name:(la==null?void 0:la.fileName)||(la==null?void 0:la.name),url:(la==null?void 0:la.url)||""})),j=await Dr.recognize(ae,Q);if(console.log(j,"ocrResult"),clearInterval(f),f=null,(j==null?void 0:j.code)===500||(j==null?void 0:j.type)==="error"||!(j!=null&&j.result)){Ee.value=0,wa.value.forEach(la=>{zl(la,"failed"),$l(la,0)}),ll.ElMessage.error((j==null?void 0:j.message)||"OCR识别失败,请重试"),ma.value=!1;return}Ee.value=$;const me=Array.isArray(j==null?void 0:j.result)?j.result:[];if(me.length===0){Ee.value=0,wa.value.forEach(la=>{zl(la,"failed"),$l(la,0)}),ll.ElMessage.warning("OCR识别未返回有效数据"),ma.value=!1;return}const Ce=new Set,Le=[];me.forEach((la,Wa)=>{const sa=la!=null&&la.数据&&typeof(la==null?void 0:la.数据)=="object"?la.数据:{},Ra=Array.isArray(la==null?void 0:la.图片信息)?la.图片信息:[],Na=new Map;Ra.forEach(ba=>{ba!=null&&ba.name&&Na.set(ba.name,ba.url||"")});const ge={_index:Wa,_certType:(la==null?void 0:la.证书类型)||"",_certNo:(la==null?void 0:la.证书编号)||"",_ocrImages:Ra,__ocrFieldMeta:{}};Object.entries(sa).forEach(([ba,ta])=>{let ce="",E=0,Oe=[],xe="";ta&&typeof ta=="object"&&!Array.isArray(ta)?(ce=(ta==null?void 0:ta.value)??"",E=(ta==null?void 0:ta.score)??0,Oe=Array.isArray(ta==null?void 0:ta.bboxNorm)?ta==null?void 0:ta.bboxNorm:[],xe=(ta==null?void 0:ta.imageName)||""):Array.isArray(ta)&&ta.length>=2?(ce=ta[0]??"",E=ta[1]??0):(ce=ta??"",E=0),ge[ba]=ce,ge[`${ba}_accuracy`]=E,Ce.add(ba),ge.__ocrFieldMeta[ba]={value:ce,score:E,bboxNorm:Oe,imageName:xe,imageUrl:xe&&Na.get(xe)||"",images:Ra}}),Le.push(ge)});const Me=[],Ue=new Set;Le.forEach(la=>{la&&Ce.forEach(Wa=>{const sa=la[`${Wa}_accuracy`];(typeof sa=="number"?sa>0:sa!=null&&String(sa).trim()!==""&&String(sa)!=="0")&&Ue.add(Wa)})}),Ce.forEach(la=>{Me.push({prop:la,label:la,editable:!0,minWidth:230}),Ue.has(la)&&Me.push({prop:`${la}_accuracy`,label:"准确率",editable:!1,minWidth:100,isAccuracy:!0})}),wa.value.forEach(la=>{zl(la,"completed")}),Ee.value=100,ve.value=Me,Ua.value=Le,xl.value=N,qa.value=j;const aa=["出厂编号","设备名称","制造厂"],Va=Me.filter(la=>la&&!la.isAccuracy&&typeof la.prop=="string").map(la=>la.prop),Da=["出厂编号","设备名称","制造厂"];ol.value=Va.filter(la=>Da.includes(la)),console.log("[OCR] 默认勾选字段 props:",ol.value),ue.value=2,ma.value=!1,Ba.value=!1}catch($){console.error("OCR处理失败:",$),f&&(clearInterval(f),f=null),ll.ElMessage.error(((O=(M=$==null?void 0:$.response)==null?void 0:M.data)==null?void 0:O.message)||"OCR识别失败,请重试"),ma.value=!1,Ee.value=0,wa.value.forEach(N=>{zl(N,"pending"),$l(N,0)})}},he=p=>{if(p==null)return"";let f=String(p);return f=f.replace(/\s+/g," ").trim(),f=f.replace(/[!-~]/g,M=>String.fromCharCode(M.charCodeAt(0)-65248)),f=f.replace(/ /g," "),f=f.replace(/^(编号|No\.?|NO\.?|no\.?|SN\.?|sn\.?|序列号)\s*[::]?\s*/i,""),f},Xe=()=>{var la,Wa;const p=xl.value,f=qa.value,M=Ua.value;if(!M||M.length===0){ll.ElMessage.warning("暂无数据可添加");return}const O=(la=na.getAllLeafNodes(De.value)||[])==null?void 0:la.filter(sa=>(sa==null?void 0:sa.type)!=="operate"&&(sa==null?void 0:sa.label)!=="操作"&&(sa==null?void 0:sa.prop)!=="operate"),$=new Map,N=new Map,Q=(Wa=O==null?void 0:O.find(sa=>(sa==null?void 0:sa.label)==="证书附件"))==null?void 0:Wa.prop;O==null||O.forEach(sa=>{sa!=null&&sa.label&&(sa!=null&&sa.prop)&&($.set(sa.label,sa.prop),N.set(sa.prop,sa.label))});const ae=Date.now(),j=sa=>String(ae*1e3+sa),me=[],Ce=[],Le=sa=>{const Ra=Co&&Co[sa]||[sa];for(const Na of Ra){const ge=$.get(Na);if(ge)return ge}return""},Me=Le("出厂编号"),Ue=Le("设备名称"),aa=Le("制造厂"),Va=[],Da=sa=>{var ce,E;if(!Q)return[];const Ra=(Array.isArray(p)?p[sa]:null)||null,Na=(Ra==null?void 0:Ra.url)||"",ge=(Ra==null?void 0:Ra.fileName)||(Ra==null?void 0:Ra.name)||"";return(String(ge).toLowerCase().endsWith(".pdf")||String(Na).toLowerCase().endsWith(".pdf"))&&Na?[{url:Na,name:ge,fileName:ge}]:(Array.isArray((E=(ce=f==null?void 0:f.result)==null?void 0:ce[sa])==null?void 0:E.图片信息)?f.result[sa].图片信息:[]).map(Oe=>({url:(Oe==null?void 0:Oe.url)||"",name:(Oe==null?void 0:Oe.name)||"",fileName:(Oe==null?void 0:Oe.name)||""})).filter(Oe=>Oe.url)};if(M.forEach((sa,Ra)=>{var dl;const Na={id:j(Ra),_isOCRRow:!0,_ocrTableId:c==null?void 0:c.index};for(const[Za,gl]of $.entries())Object.prototype.hasOwnProperty.call(sa,Za)&&(Na[gl]=sa[Za]);Q&&(Na[Q]=Da(Ra));const ge=(Array.isArray(f==null?void 0:f.result)?f.result[Ra]:null)||null,ba=(Array.isArray(p)?p[Ra]:null)||null,ta=(ba==null?void 0:ba.url)||"",ce=(ba==null?void 0:ba.fileName)||(ba==null?void 0:ba.name)||"",E=String(ce).toLowerCase().endsWith(".pdf")||String(ta).toLowerCase().endsWith(".pdf"),Oe={ts:Date.now(),versionId:String(Date.now())+"_"+String(Ra),label:new Date().toLocaleString(),certType:(ge==null?void 0:ge.证书类型)||"",certNo:(ge==null?void 0:ge.证书编号)||"",fileType:E?"pdf":"image",sourceUrl:E?ta:"",images:Array.isArray(ge==null?void 0:ge.图片信息)?ge.图片信息.map(Za=>({name:(Za==null?void 0:Za.name)||"",url:(Za==null?void 0:Za.url)||""})).filter(Za=>Za.url):[]},xe=Za=>he(Za?Na==null?void 0:Na[Za]:""),Qe=xe(Me),ca=xe(Ue),ha=xe(aa);if(!!(Me&&Ue&&aa&&Qe&&ca&&ha)){const Za=(we.value||[]).find(gl=>{const bl=he(Me?gl==null?void 0:gl[Me]:""),Rl=he(Ue?gl==null?void 0:gl[Ue]:""),Ga=he(aa?gl==null?void 0:gl[aa]:"");return bl&&Rl&&Ga&&bl===Qe&&Rl===ca&&Ga===ha});if(Za){Va.push({idx:Ra,ocrRow:Na,versionItem:Oe,ocrNo:Qe,candidates:[Za],selectedTargetId:String((Za==null?void 0:Za.id)??""),__decision:"replace",allowAdd:!1,allowReplace:!0});return}}if(Qe&&Me){const Za=(we.value||[]).filter(gl=>{const bl=he(Me?gl==null?void 0:gl[Me]:"");return bl&&bl===Qe});if(Za.length>0){Va.push({idx:Ra,ocrRow:Na,versionItem:Oe,ocrNo:Qe,candidates:Za,selectedTargetId:"",__decision:"",allowAdd:!0,allowReplace:!0});return}}try{if(Na.sort===void 0||Na.sort===null||String(Na.sort).trim()===""){const Za=(we.value||[]).map(bl=>Kn(bl==null?void 0:bl.sort)).filter(bl=>bl!==null),gl=Za.length>0?Math.max(...Za):((dl=we.value)==null?void 0:dl.length)??0;Na.sort=String(Number((gl+1).toFixed(6)))}}catch{}Pa(c==null?void 0:c.index,Na.id,Oe),Va.push({idx:Ra,ocrRow:Na,versionItem:Oe,ocrNo:Qe,candidates:[],selectedTargetId:"",__decision:"add",allowAdd:!0,allowReplace:!1})}),(Va||[]).length>0){Ul.value=(Va||[]).map(sa=>({...sa,selectedTargetId:(sa==null?void 0:sa.selectedTargetId)||""})),Fl.value=!0,gr.value=Ce,rr.value=me,kr.value=f,wr.value=p,Er.value=Q||"";return}},Ta=(p,f,M)=>{Ua.value[p]&&(Ua.value[p][f]=M)},tl=p=>p==null||p===0?"-":`${(Number(p)*100).toFixed(1)}%`,rl=p=>{if(p==null||p===0)return"#909399";const f=Number(p);return f>=.9?"#67c23a":f>=.7?"#e6a23c":"#f56c6c"},sl=p=>{var M,O,$,N;if(al.value===p){al.value=null,ul.value=!1,cl.value="";return}al.value=p,cl.value="";const f=(M=Ua.value)==null?void 0:M[p];if(f&&Array.isArray(f._ocrImages)&&f._ocrImages.length>0){Wl.value=f._ocrImages.map(j=>({name:(j==null?void 0:j.name)||"",url:(j==null?void 0:j.url)||""})).filter(j=>j.name||j.url);const Q=f.__ocrFieldMeta||{},ae=(O=Object.values(Q))==null?void 0:O.find(j=>j==null?void 0:j.imageName);Kl.value=(ae==null?void 0:ae.imageName)||((N=($=Wl.value)==null?void 0:$[0])==null?void 0:N.name)||"",ul.value=Wl.value.length>0}else Wl.value=[],ul.value=!1,Kl.value=""},Cl=()=>{il.value=!1,wa.value=[],_a.value=null,ue.value=1,Fa.value.clear(),ja.value.clear(),Ee.value=0,ul.value=!1},_l=p=>p.raw?URL.createObjectURL(p.raw):p.url?p.url:"",yl=p=>{const f=p.uid||p.name;return Fa.value.get(f)||"pending"},jl=p=>{const f=p.uid||p.name;return ja.value.get(f)||0},$l=(p,f)=>{const M=p.uid||p.name;ja.value.set(M,Math.min(100,Math.max(0,f)))},Ol=p=>{const f=yl(p),M=100.53;if(f==="completed"||f==="uploaded")return`${M} ${M}`;if(f==="failed")return`${M} ${M}`;if(f==="uploading"){const O=jl(p);return`${M*(O/100)} ${M}`}else if(f==="processing")return`${M*.5} ${M}`;return`0 ${M}`},zl=(p,f)=>{const M=p.uid||p.name;Fa.value.set(M,f),(f==="completed"||f==="uploaded")&&$l(p,100)},Lr=()=>{a.nextTick(()=>{const p=document.querySelector('.ocr-upload-input input[type="file"]');if(p)p.value="",p.click();else{const f=document.createElement("input");f.type="file",f.multiple=!0,f.accept="image/*,application/pdf",f.style.display="none",f.onchange=async M=>{const O=Array.from(M.target.files||[]);for(const $ of O){const N={name:$.name,raw:$,uid:Date.now()+Math.random()};wa.value.push(N),await W(N)}M.target.value="",document.body.removeChild(f)},document.body.appendChild(f),f.click()}})},mr=()=>{ue.value>1&&ue.value--},Fr=()=>{ue.value===1?wa.value.length>0&&!ma.value&&Ve():ue.value===2&&(Xe(),ue.value=3)},en=async p=>{await Gn(p==null?void 0:p.row)},mn=async({row:p,prop:f})=>{!p||!f||await Gn(p,f)},Gn=async(p,f)=>{var $,N;const M=p==null?void 0:p.id;if(!M){ll.ElMessage.warning("暂无可预览数据");return}let O=el(c==null?void 0:c.index,M);if(!O||O.length===0){const Q=sessionStorage.getItem("ocr_root_table_id"),ae=Q!==null?Number(Q):null;if(ae!=null&&ae!==""&&!Number.isNaN(ae)){const j=el(ae,M);Array.isArray(j)&&j.length>0&&(Ja(c==null?void 0:c.index,M,j),O=j)}}if(!O||O.length===0){const Q=($=na.getAllLeafNodes(De.value)||[])==null?void 0:$.filter(j=>(j==null?void 0:j.type)!=="operate"&&(j==null?void 0:j.label)!=="操作"&&(j==null?void 0:j.prop)!=="operate"),ae=f||((N=Q==null?void 0:Q.find(j=>(j==null?void 0:j.label)==="证书附件"))==null?void 0:N.prop);if(ae&&p[ae]){const j=p[ae];let me=[],Ce="",Le=!1;if(typeof j=="string")try{const Me=JSON.parse(j);Array.isArray(Me)&&(me=Me.map(Ue=>({name:(Ue==null?void 0:Ue.name)||(Ue==null?void 0:Ue.fileName)||"",url:(Ue==null?void 0:Ue.url)||""})).filter(Ue=>Ue.url||Ue.name),me.length>0&&(Ce=me[0].url||"",Le=String(me[0].name).toLowerCase().endsWith(".pdf")||String(Ce).toLowerCase().endsWith(".pdf")))}catch{Ce=j,Le=String(j).toLowerCase().endsWith(".pdf"),me=[{name:j,url:j}]}else Array.isArray(j)&&(me=j.map(Me=>({name:(Me==null?void 0:Me.name)||(Me==null?void 0:Me.fileName)||"",url:(Me==null?void 0:Me.url)||""})).filter(Me=>Me.url||Me.name),me.length>0&&(Ce=me[0].url||"",Le=String(me[0].name).toLowerCase().endsWith(".pdf")||String(Ce).toLowerCase().endsWith(".pdf")));if(me.length>0||Ce){const Me={ts:Date.now(),versionId:String(Date.now()),label:new Date().toLocaleString(),certType:p.证书类型||"",certNo:p.证书编号||"",fileType:Le?"pdf":"image",sourceUrl:Le?Ce:"",images:me};O=[Me],Pa(c==null?void 0:c.index,M,Me)}}}if(!O||O.length===0){ll.ElMessage.warning("暂无可预览数据");return}va.value=O,oa.value=!0},Jn=p=>{wa.value=wa.value.filter((f,M)=>M!==p)},Zo=async(p,f,M)=>{var O,$,N,Q,ae,j,me,Ce,Le,Me,Ue,aa,Va,Da,la,Wa,sa,Ra,Na,ge,ba;if(Ie(c.config,{type:ra.TABLE,tableOperate:p})){if(Je.value="",Ea.value=!0,Ze.value=!0,ze("onButtonClick",p,f),q.value=[],p==="删除")I.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var ta,ce,E,Oe;(ta=we.value)!=null&&ta.find(xe=>(xe==null?void 0:xe.id)===(f==null?void 0:f.id))?we.value=(ce=I.cloneDeep(we.value))==null?void 0:ce.filter(xe=>(xe==null?void 0:xe.id)!==(f==null?void 0:f.id)):we.value=lo(I.cloneDeep(we.value),f);try{f!=null&&f.id&&((Oe=(E=fe.value)==null?void 0:E.has)!=null&&Oe.call(E,f==null?void 0:f.id))&&fe.value.delete(f.id)}catch{}rf(Nr.value,An.value,f==null?void 0:f.id),Ge.setTableLoading(c==null?void 0:c.index),ze("change",{content:we.value,fixContent:[f],index:c==null?void 0:c.index,type:"delete",name:c==null?void 0:c.compName,buttonName:p,columns:De.value,relatedContents:c==null?void 0:c.related}),console.log(f,"item")});else if(p==="批量删除"){if(((O=ar.value)==null?void 0:O.length)===0)return ll.ElMessage.warning("请先勾选操作的数据");I.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(async()=>{var E,Oe,xe,Qe,ca;const ta=(E=ar.value)==null?void 0:E.map(ha=>ha.id);we.value=(Oe=I.cloneDeep(we.value))==null?void 0:Oe.filter(ha=>!(ta!=null&&ta.includes(ha.id))),Ge.setTableLoading(c==null?void 0:c.index),ze("change",{content:we.value,fixContent:ar.value,index:c==null?void 0:c.index,type:"delete",name:c==null?void 0:c.compName,buttonName:p,relatedContents:c==null?void 0:c.related,columns:De.value});const ce=(ta||[]).filter(Boolean);if(ce.length>0&&ce.every(ha=>ha!=null&&ha!=="")){const ha=(ar.value||[]).map(Oa=>{const dl={...Oa};return delete dl._isOCRRow,delete dl._ocrTableId,delete dl._isTemp,delete dl.tableEditType,delete dl.index,dl});await I.pageBatchDeleteApi({platId:parseInt((xe=Vl.value)==null?void 0:xe.plat_id),changeContents:[{tableName:((Qe=c==null?void 0:c.related)==null?void 0:Qe.find(Oa=>Oa==null?void 0:Oa.includes("content_")))||((ca=c==null?void 0:c.related)==null?void 0:ca.find(Oa=>Oa==null?void 0:Oa.includes("content"))),tableContents:ha}]})}})}else if(p==="复制新增"){$e.value="复制新增",I.cloneDeep(f);const ta=($=De.value)==null?void 0:$.find(ce=>ce==null?void 0:ce.isMainKey);ta||((N=De.value)==null||N[0]),Il.value=f,Lt(!0)}else if(p==="新增")$e.value="新增",Ot(""),pa.value=!0;else if(p==="编辑")$e.value="编辑",Ot(f),pa.value=!0;else if(p==="查看")$e.value="查看",Ot(f),Ea.value=!1,Ze.value=!1,pa.value=!0;else if(p==="查看三维模型"){const ta={};for(let E in f)E!=="id"&&(ta[E]=f[E]);let ce=(Q=Object.values(ta))==null?void 0:Q[1];Re.setTableShowThree(ce)}else if(p==="切换视图")nu();else if(((ae=M==null?void 0:M.extra)==null?void 0:ae.type)==="modelExample")$e.value=p,K.value=!0;else if(p==="新建"){let ta=oe.value,ce=[];for(let ca in ta)ca!=null&&ca.includes(`loading${((j=Vl.value)==null?void 0:j.account)||((me=Vl.value)==null?void 0:me.账号)}`)&&(ce=[...ce,...ca]);let E=[];for(let ca in ta)ca!=null&&ca.includes(`updateLoading${((Ce=Vl.value)==null?void 0:Ce.account)||((Le=Vl.value)==null?void 0:Le.账号)}`)&&(E=[...E,...ca]);let Oe=ce==null?void 0:ce.map(ca=>ca==null?void 0:ca.id);const xe=E==null?void 0:E.map(ca=>ca==null?void 0:ca.id);Oe=[...I.cloneDeep(Oe),...xe],(Oe==null?void 0:Oe.length)>0&&(Oe!=null&&Oe.every(ca=>ca!==null&&ca))&&await yr.batchDeleteInsofDataApi({ids:Oe});const Qe=(Me=_e.value)==null?void 0:Me.find(ca=>(ca==null?void 0:ca.label)==="新建");await Gc(!1,Qe)}else if(p==="修改模板"){let ta=I.cloneDeep(ga).value;Ge.setRouteToChildPath(ta),ea.setActiveMenuPath(ta+x)}else if(p==="执行")Jo(p,f);else if(p==="导出paraform"){const ta=I.ElLoading.service({lock:!0,text:"正在导出paraform...",background:"rgba(0, 0, 0, 0.7)"});try{const ce=["推力","真空","压力","温度","流量"],E=wl=>{var Nl,Yl,Ml;return wl?typeof(wl==null?void 0:wl.value)=="string"?wl.value:((Ml=(Yl=(Nl=wl==null?void 0:wl._custom)==null?void 0:Nl.value)==null?void 0:Yl.value)==null?void 0:Ml.value)||"":""},Oe=Array.isArray(bn.value)?bn.value:[],xe=E(Oe.find(wl=>(wl==null?void 0:wl.condition)==="child")),Qe=String(xe||"").slice(0,8),ca=wl=>{if(wl==null)return"";const Nl=String(wl).trim();if(!Nl)return"";if(/^\d{8}$/.test(Nl))return Nl;const Yl=Nl.match(/^(\d{4})[-\/.](\d{1,2})[-\/.](\d{1,2})$/);if(Yl){const dr=Yl[1],pr=Yl[2].padStart(2,"0"),Gl=Yl[3].padStart(2,"0");return`${dr}${pr}${Gl}`}const Ml=Nl.replace(/\D/g,"");return Ml.length>=8?Ml.slice(0,8):""},ha=async wl=>{var Nl,Yl;if(!wl)return"";try{const Ml=await Pr("试验任务/任务管理",!1),dr=(ir,lr=[])=>{if(!Array.isArray(ir))return lr;for(const nr of ir)(nr==null?void 0:nr.comp)==="Table"&&(nr!=null&&nr.name)&&lr.push(nr),Array.isArray(nr==null?void 0:nr.children)&&dr(nr.children,lr),Array.isArray(nr==null?void 0:nr.tab)&&dr(nr.tab,lr),Array.isArray(nr==null?void 0:nr.choice)&&dr(nr.choice,lr);return lr},Gl=dr(Ml||[]).find(ir=>(ir==null?void 0:ir.name)==="任务列表"),or=((Yl=(Nl=Gl==null?void 0:Gl.compData)==null?void 0:Nl.find(ir=>(ir==null?void 0:ir.key)==="tableContents"))==null?void 0:Yl.contents)||[];if(!Array.isArray(or)||or.length===0)return"";const $r=or.find(ir=>String((ir==null?void 0:ir["试验代号(名称)"])||"").slice(0,8)===wl);return ca($r==null?void 0:$r.计划试验时间)}catch(Ml){return console.warn("获取任务列表计划试验时间失败:",Ml),""}},Oa=(ga.value||"").replace(/\/+$/,""),dl=xe?`${Oa}/${xe}`:Oa,Za=await Pr(dl||ga.value,!1),gl=String(fa.value||"").trim(),bl=wl=>String(wl||"").trim(),Rl=(wl,Nl=[],Yl="")=>{if(!Array.isArray(wl))return Nl;for(const Ml of wl){const dr=bl((Ml==null?void 0:Ml.choiceName)||(Ml==null?void 0:Ml.name0)||Yl);(Ml==null?void 0:Ml.comp)==="Table"&&(Ml==null?void 0:Ml.name)&&ce.includes(Ml.name)&&(!gl||dr===gl)&&Nl.push(Ml),Array.isArray(Ml==null?void 0:Ml.children)&&Rl(Ml.children,Nl,dr),Array.isArray(Ml==null?void 0:Ml.tab)&&Rl(Ml.tab,Nl,dr),Array.isArray(Ml==null?void 0:Ml.choice)&&Rl(Ml.choice,Nl,dr)}return Nl},Ga=Rl(Za||[]),El=new Map;for(const wl of Ga)wl!=null&&wl.name&&!El.has(wl.name)&&El.set(wl.name,wl);const Ya=ce.map(wl=>El.get(wl)).filter(Boolean);if(!Ya||Ya.length===0)return ll.ElMessage.warning("未找到需要导出的表(推力、真空、压力、温度、流量)");const hl=wl=>{const Nl=new Map,Yl=(Ml,dr=[])=>{if(Array.isArray(Ml))for(const pr of Ml){const Gl=((pr==null?void 0:pr.label)??"").toString().trim(),or=Gl?[...dr,Gl]:[...dr];if(Array.isArray(pr==null?void 0:pr.children)&&pr.children.length>0)Yl(pr.children,or);else{const ir=((pr==null?void 0:pr.prop)??"").toString();if(!ir)continue;const lr=Gl||ir,nr=(or.length>0?[...dr,lr]:[lr]).join(".");Nl.set(ir,nr)}}};return Yl(wl,[]),Nl},Qa=(wl,Nl)=>{const Yl=hl(wl||[]),dr=(na.getAllLeafNodes(wl||[])||[]).filter(Gl=>(Gl==null?void 0:Gl.prop)&&(Gl==null?void 0:Gl.type)!=="operate"&&(Gl==null?void 0:Gl.label)!=="操作"&&(Gl==null?void 0:Gl.prop)!=="operate"),pr=Array.isArray(Nl)?Nl:[];return pr.length===0?[]:pr.map(Gl=>{const or={};return dr.forEach($r=>{const ir=String($r.prop),lr=Yl.get(ir)||String($r.label||$r.prop);or[lr]=(Gl==null?void 0:Gl[ir])??""}),or})},vl=Ya.map(wl=>{var pr,Gl;const Nl=(wl==null?void 0:wl.compData)||[];let Yl=(pr=Nl==null?void 0:Nl.find(or=>(or==null?void 0:or.key)==="header"))==null?void 0:pr.contents;Array.isArray(Yl==null?void 0:Yl[0])&&(Yl=Yl[0]);const Ml=((Gl=Nl==null?void 0:Nl.find(or=>(or==null?void 0:or.key)==="tableContents"))==null?void 0:Gl.contents)||[];if(!Array.isArray(Yl)||Yl.length===0||!Array.isArray(Ml)||Ml.length===0)return null;const dr=Qa(Yl||[],Ml||[]);return!Array.isArray(dr)||dr.length===0?null:{类型:wl==null?void 0:wl.name,数据:dr}}).filter(Boolean);if(!vl||vl.length===0)return ll.ElMessage.warning("没有可导出的数据(推力、真空、压力、温度、流量均为空)");const Tl=await ha(Qe),Dl={试验代号:Qe,试验日期:Tl,ParaForm:vl},ur=await ct().catch(()=>""),Ll=await I.exportParaformApi(Dl,ur);if(((Ue=Ll==null?void 0:Ll.data)==null?void 0:Ue.code)===200&&((Va=(aa=Ll==null?void 0:Ll.data)==null?void 0:aa.result)!=null&&Va.Excel文件)){const wl=Ll.data.result.Excel文件,Nl=await I.platformDownloadFile({url:wl}),Yl=new Blob([Nl.data],{type:"application/vnd.ms-excel"}),Ml=URL.createObjectURL(Yl),dr=I.dayjs().format("YYYYMMDD"),Gl=`${(Qe||"UNKNOWN").trim()||"UNKNOWN"}_${dr}_paraform.xls`,or=document.createElement("a");or.href=Ml,or.download=Gl,or.style.display="none",document.body.appendChild(or),or.click(),setTimeout(()=>{document.body.removeChild(or),URL.revokeObjectURL(Ml)},100);const $r=Array.isArray((la=(Da=Ll==null?void 0:Ll.data)==null?void 0:Da.result)==null?void 0:la.warnings)?Ll.data.result.warnings:[];if($r.length>0){const ir=$r.map((lr,nr)=>`${nr+1}. ${(lr==null?void 0:lr.field)||"未知字段"}:${(lr==null?void 0:lr.message)||""}`).join(`
24
24
  `);ll.ElMessage.warning({message:`导出成功,但存在以下提示:
25
- ${ir}`,duration:5e3,showClose:!0})}else ll.ElMessage.success("导出成功")}else ll.ElMessage.error(((Wa=Ll==null?void 0:Ll.data)==null?void 0:Wa.message)||"导出失败")}catch(ce){console.error("导出paraform失败:",ce),ll.ElMessage.error("导出失败:"+((ce==null?void 0:ce.message)||"未知错误"))}finally{ta.close()}}else if(p!=null&&p.includes("导出")&&p!=="导出paraform"){if(p==="导出选中"&&((sa=ar.value)==null?void 0:sa.length)===0)return ll.ElMessage.warning(`请先勾选${p}的数据`);if(p==="导出全部"&&((Ra=we.value)==null?void 0:Ra.length)===0)return ll.ElMessage.warning("暂无数据导出");let ta=["序号",...(ge=(Na=De.value)==null?void 0:Na.map(xe=>xe==null?void 0:xe.prop))==null?void 0:ge.filter(xe=>xe!=="操作")],ce=p==="导出全部"?we.value:ar.value;const E=["id","sort","tableEditType","create_time","update_time","source_table","create_user_id","update_user_id","department_id","relatedId"];ce=ce==null?void 0:ce.map(xe=>Object.fromEntries(Object.entries(xe).filter(([Qe])=>!E.includes(Qe)))),ta=["序号",...ta],ce=ce==null?void 0:ce.map((xe,Qe)=>({序号:Qe+1,...xe}));let Oe=(c==null?void 0:c.compName)||"表格信息";Lo(ce,Oe,ta,Oe)}else if(p==="OCR识别")il.value=!0,wa.value=[],ue.value=1,Fa.value.clear(),ja.value.clear(),Ee.value=0;else if(p==="迁移")o.selectRow=f,o.show=!0;else if(p==="生成方法"){let ta=await wf(f),ce;f!==""?ce=[f]:ce=I.cloneDeep(we.value),ce=ce==null?void 0:ce.map(Oe=>(Oe.输出值=ta,Oe));const E={fixContent:ce,buttonName:"编辑",relatedContents:c==null?void 0:c.related,columns:De.value,name:c==null?void 0:c.compName};ze("change",E)}else if(((ba=M==null?void 0:M.extra)==null?void 0:ba.type)==="methodButton"){let ta;f!==""?ta=[f]:ta=I.cloneDeep(we.value);const E={fixContent:await di(ta,De==null?void 0:De.value,"Manual",we.value),buttonName:"methodButton",relatedContents:c==null?void 0:c.related,columns:De.value,name:c==null?void 0:c.compName};ze("change",E)}}},Wc=async(p,f)=>{var M,O,V,N,Q,ae,j,me,Ce,Le,Me,Ue,aa,Va,Da,la,Wa,sa,Ra,Na;try{let ge,ba;const ta=(M=oe.value[ga.value+x])==null?void 0:M.filter(Oa=>{var dl;return((dl=Oa==null?void 0:Oa.key)==null?void 0:dl.type)==="structureMethod"}),ce=(O=oe.value[ga.value+x])==null?void 0:O.filter(Oa=>{var dl;return((dl=Oa==null?void 0:Oa.key)==null?void 0:dl.type)==="structure"}),E=ta==null?void 0:ta.find(Oa=>{var dl,Za;return((Za=(dl=Oa==null?void 0:Oa.value)==null?void 0:dl.pageData)==null?void 0:Za.method)==="保存"});if(!E)return;const Oe=(ae=(Q=oe.value[(N=(V=E==null?void 0:E.value)==null?void 0:V.pageData)==null?void 0:N.path])==null?void 0:Q.filter(Oa=>{var dl;return((dl=Oa==null?void 0:Oa.key)==null?void 0:dl.type)==="data"}))==null?void 0:ae.find(Oa=>{var dl,Za,gl,bl;return((Za=(dl=Oa==null?void 0:Oa.value)==null?void 0:dl.tableData)==null?void 0:Za.算法名称)===((bl=(gl=E==null?void 0:E.value)==null?void 0:gl.pageData)==null?void 0:bl.method)});if(!Oe)return;const xe={buttonName:(me=(j=E==null?void 0:E.value)==null?void 0:j.pageData)==null?void 0:me.method,api:(Le=(Ce=Oe==null?void 0:Oe.value)==null?void 0:Ce.tableData)==null?void 0:Le.算法体,content:ce==null?void 0:ce.map(Oa=>{var dl;return(dl=Oa==null?void 0:Oa.value)==null?void 0:dl.pageData}),extraContent:[],extraValues:(Ue=(Me=E==null?void 0:E.value)==null?void 0:Me.pageData)==null?void 0:Ue.data,methodName:(Va=(aa=E==null?void 0:E.value)==null?void 0:aa.pageData)==null?void 0:Va.path};if(!p)return;const Qe={...p,compData:(Da=p==null?void 0:p.compData)==null?void 0:Da.map(Oa=>{var dl;return(Oa==null?void 0:Oa.key)==="formContent"?{...Oa,contents:(dl=Oa==null?void 0:Oa.contents)==null?void 0:dl.map(Za=>(Za==null?void 0:Za.prop)===f?{...Za,value:""}:Za)}:Oa})},ca={key:{pageKey:ga.value+x,parentTable:"",systemKey:sessionStorage.getItem("systemKey"),type:"structure"},value:{pageData:Qe}},ha=await ll.axios.post(xe.api,ca,{headers:{"Content-Type":"application/json"}});return((la=ha==null?void 0:ha.data)==null?void 0:la.code)===200&&(ge=(sa=(Wa=ha==null?void 0:ha.data)==null?void 0:Wa.result)==null?void 0:sa.latestReportCode,ba=(Na=(Ra=ha==null?void 0:ha.data)==null?void 0:Ra.result)==null?void 0:Na.status),{newMainKeyValue:ge,newStatus:ba}}catch(ge){throw ll.ElMessage.error(ge),new Error(ge)}},Si=a.reactive({prop:"状态",value:""});a.ref(["系统自动生成信息","审批意见"]);const Yc=async(p,f,M)=>{var j,me;let O=p==null?void 0:p[f==null?void 0:f.prop],V=1,N,Q;const ae=I.cloneDeep(ga).value+x+O;if(ae){Si.value="",N=(j=oe.value[ae])==null?void 0:j.filter(Me=>{var Ue;return((Ue=Me==null?void 0:Me.key)==null?void 0:Ue.type)==="structure"});const Ce=N==null?void 0:N.find(Me=>{var Ue,aa,Va;return((Va=(aa=(Ue=Me==null?void 0:Me.value)==null?void 0:Ue.pageData)==null?void 0:aa.comp)==null?void 0:Va.toUpperCase())==="FORM"});Q={...(me=Ce==null?void 0:Ce.value)==null?void 0:me.pageData,id:Ce==null?void 0:Ce.id};const Le=await Wc(Q,f==null?void 0:f.prop);if(Si.value=Le==null?void 0:Le.newStatus,Le!=null&&Le.newMainKeyValue)return Le==null?void 0:Le.newMainKeyValue}if(we.value.some(Ce=>(Ce==null?void 0:Ce[f==null?void 0:f.prop])===O)){const Ce=O;for(;we.value.some(Le=>(Le==null?void 0:Le[f==null?void 0:f.prop])===`${Ce}(${V})`);)V++;O=`${Ce}(${V})`}return O},Gc=async(p,f,M)=>{var N,Q,ae,j;let O,V;if(await Yc(M==null?void 0:M.data,M==null?void 0:M.firstCol),O=I.cloneDeep(ga).value+x,V=I.cloneDeep(O)+`loading${((N=Vl.value)==null?void 0:N.account)||((Q=Vl.value)==null?void 0:Q.账号)}`,f){const me=(j=(ae=oe.value[V])==null?void 0:ae.filter(Ce=>{var Le;return((Le=Ce==null?void 0:Ce.key)==null?void 0:Le.parentTable)===""}))==null?void 0:j.map(Ce=>{var Le;return{id:Ce==null?void 0:Ce.id,...(Le=Ce==null?void 0:Ce.value)==null?void 0:Le.pageData}});(me==null?void 0:me.length)>0||await na.loadingConstruct(O,V,null,null,null),Ge.setRouteToChildPath(I.cloneDeep(ga).value),ea.setActiveMenuPath(V)}else Ge.setRouteToChildPath(I.cloneDeep(ga).value),ea.setActiveMenuPath(V)},Jc=()=>{Ke.value=!1,Ye.value=[],Sa.value=!1},Ot=p=>{var N,Q,ae,j,me,Ce,Le,Me,Ue,aa,Va,Da,la,Wa,sa,Ra,Na,ge,ba,ta,ce;const f=[];pe.value=I.cloneDeep(De.value),(Q=na.getColumnChild((N=I.cloneDeep(De.value))==null?void 0:N.filter(E=>(E==null?void 0:E.label)!=="操作")))==null||Q.forEach((E,Oe)=>{var xe,Qe,ca;E!=null&&E.formType&&((xe=E==null?void 0:E.formType)==null?void 0:xe.toUpperCase())==="SELECT"||E!=null&&E.menuId?f.push({label:(Qe=E==null?void 0:E.prop)!=null&&Qe.includes(".")?E==null?void 0:E.prop:(E==null?void 0:E.label)??(E==null?void 0:E.prop)??"",name:(E==null?void 0:E.prop)??"t"+Oe,prop:E==null?void 0:E.prop,type:"Select",value:(p==null?void 0:p[E==null?void 0:E.prop])??(E==null?void 0:E.value)??"",id:(E==null?void 0:E.id)??Oe,contents:(E==null?void 0:E.options)??[],width:1,isFormColHidden:E==null?void 0:E.isFormColHidden,relatedValueId:E==null?void 0:E.relatedValueId,disabled:E==null?void 0:E.disabled,menus:E==null?void 0:E.menus,groups:E==null?void 0:E.groups,words:E==null?void 0:E.words,allSelectionContents:(E==null?void 0:E.allSelectionContents)??[],filterContent:E==null?void 0:E.filterContent,disabled:(E==null?void 0:E.prop)==="disabled"?!0:E==null?void 0:E.disabled,filter:E==null?void 0:E.filter,bindMenus:E==null?void 0:E.bindMenus,isMainPath:E==null?void 0:E.isMainPath,required:(E==null?void 0:E.required)??!1,relatedContents:E==null?void 0:E.relatedContents,mainKey:E==null?void 0:E.mainKey,relatedContents:E==null?void 0:E.relatedContents,functionName:E==null?void 0:E.functionName,functionRelatedWords:E==null?void 0:E.functionRelatedWords,calculatorFilter:E==null?void 0:E.calculatorFilter}):f.push({label:(ca=E==null?void 0:E.prop)!=null&&ca.includes(".")?E==null?void 0:E.prop:(E==null?void 0:E.label)??(E==null?void 0:E.prop)??"",prop:E==null?void 0:E.prop,name:(E==null?void 0:E.prop)??"t"+Oe,type:!(E!=null&&E.formType)||(E==null?void 0:E.formType)===""?"Input":E==null?void 0:E.formType,value:(E==null?void 0:E.formType)==="Upload"?(p==null?void 0:p[E==null?void 0:E.prop])??"{}":(p==null?void 0:p[E==null?void 0:E.prop])??(E==null?void 0:E.value)??"",id:(E==null?void 0:E.id)??Oe,contents:(E==null?void 0:E.options)??[],width:1,isFormColHidden:E==null?void 0:E.isFormColHidden,disabled:(E==null?void 0:E.prop)==="disabled"?!0:E==null?void 0:E.disabled,relatedValueId:E==null?void 0:E.relatedValueId,menus:E==null?void 0:E.menus,groups:E==null?void 0:E.groups,words:E==null?void 0:E.words,filter:E==null?void 0:E.filter,bindMenus:E==null?void 0:E.bindMenus,isMainPath:E==null?void 0:E.isMainPath,required:(E==null?void 0:E.required)??!1,relatedContents:E==null?void 0:E.relatedContents,mainKey:E==null?void 0:E.mainKey,relatedContents:E==null?void 0:E.relatedContents,functionName:E==null?void 0:E.functionName,functionRelatedWords:E==null?void 0:E.functionRelatedWords,calculatorFilter:E==null?void 0:E.calculatorFilter})}),p===""||!p||(Je.value=(p==null?void 0:p.id)??"");let M=na.getColumnChild((ae=I.cloneDeep(De.value))==null?void 0:ae.filter(E=>(E==null?void 0:E.label)!=="操作"));Be.value&&((j=Be.value)==null?void 0:j.length)>0&&(Be.value=(me=I.cloneDeep(Be).value)==null?void 0:me.map(E=>{var xe;let Oe=(E==null?void 0:E.prop)||((xe=M==null?void 0:M.find(Qe=>(Qe==null?void 0:Qe.label)===(E==null?void 0:E.label)))==null?void 0:xe.prop);return Oe&&(E.value=p[Oe]),E})),Z.value=Be.value&&((Ce=Be.value)==null?void 0:Ce.length)>0?na.getTableFormToForm(Be.value):f,Z.value=((Le=Z.value)==null?void 0:Le.map(E=>({...E,disabled:(E==null?void 0:E.prop)==="disabled"?!0:E==null?void 0:E.disabled})))??Z.value;let O=[],V=((aa=(Ue=(Me=c.itemData)==null?void 0:Me.filter(E=>(E==null?void 0:E.key)==="filter"))==null?void 0:Ue[0])==null?void 0:aa.contents)??"";if(V=$a.analyzeSplitToContent(V,","),(V==null?void 0:V.length)>0&&(O=V.flat()),(O==null?void 0:O.length)>0){let E=O==null?void 0:O.filter(ha=>ha==null?void 0:ha.includes("@Type"));if(E=E==null?void 0:E[(E==null?void 0:E.length)-1],(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){let ha=(Da=(Va=E==null?void 0:E.replace("=",$))==null?void 0:Va.split($))==null?void 0:Da[1];((la=ha==null?void 0:ha.trim())==null?void 0:la.toUpperCase())==="MANUAL"&&(c==null||c.index,Z.value=(Wa=Z.value)==null?void 0:Wa.map((Oa,dl)=>Oa))}let Oe=(sa=Z.value)==null?void 0:sa.filter(ha=>ha==null?void 0:ha.mainKey),xe;Oe==null||Oe.forEach(ha=>{var dl;if(xe!==void 0)return;let Oa=ha==null?void 0:ha.menus;((dl=Oe==null?void 0:Oe.filter(Za=>Za==null?void 0:Za.mainKey))==null?void 0:dl.length)>1&&(xe=Oa,ha==null||ha.groups)});let Qe=[],ca=new Map;if(Oe==null||Oe.forEach(ha=>{var Oa,dl,Za,gl,bl,Rl,Ga,El,Ya,hl,Qa,vl,Tl;if((Oa=ha==null?void 0:ha.prop)!=null&&Oa.includes(".")){let Dl=[];ca.get(((Za=(dl=ha==null?void 0:ha.prop)==null?void 0:dl.split("."))==null?void 0:Za[0])+(ha!=null&&ha.isMainPath?0:1)+((gl=ha==null?void 0:ha.groups)==null?void 0:gl[0]))&&(Dl=ca.get(((Rl=(bl=ha==null?void 0:ha.prop)==null?void 0:bl.split("."))==null?void 0:Rl[0])+(ha!=null&&ha.isMainPath?0:1)+((Ga=ha==null?void 0:ha.groups)==null?void 0:Ga[0]))),Dl.push(ha),ca.set(((Ya=(El=ha==null?void 0:ha.prop)==null?void 0:El.split("."))==null?void 0:Ya[0])+(ha!=null&&ha.isMainPath?0:1)+((hl=ha==null?void 0:ha.groups)==null?void 0:hl[0]),Dl)}else{let Dl=[];ca.get("normal"+(ha!=null&&ha.isMainPath?0:1)+((Qa=ha==null?void 0:ha.groups)==null?void 0:Qa[0]))&&(Dl=ca.get("normal"+(ha!=null&&ha.isMainPath?0:1)+((vl=ha==null?void 0:ha.groups)==null?void 0:vl[0]))),Dl.push(ha),ca.set("normal"+(ha!=null&&ha.isMainPath?0:1)+((Tl=ha==null?void 0:ha.groups)==null?void 0:Tl[0]),Dl)}}),Qe=Array.from(ca.values()),(Qe==null?void 0:Qe.length)>0)for(let ha in Qe){let Oa=Qe==null?void 0:Qe[ha];if((Oa==null?void 0:Oa.length)!==1){if((Oa==null?void 0:Oa.length)>1){let dl=Oa==null?void 0:Oa.map(hl=>hl==null?void 0:hl.prop),Za=Oa==null?void 0:Oa.map(hl=>hl==null?void 0:hl.label),gl=Oa==null?void 0:Oa.map(hl=>hl==null?void 0:hl.value),bl=(Ra=I.cloneDeep(Oa))==null?void 0:Ra[0],Rl=(Na=Z.value)==null?void 0:Na.findIndex(hl=>(hl==null?void 0:hl.prop)===(bl==null?void 0:bl.prop)),Ga=(ge=Z.value)==null?void 0:ge.slice(0,Rl),El=(ta=Z.value)==null?void 0:ta.slice(Rl,(ba=Z.value)==null?void 0:ba.length);bl.label=Za==null?void 0:Za.join("·"),bl.value=gl==null?void 0:gl.join(" "),bl.value.trim()===""&&(bl.value=""),bl.prop=dl==null?void 0:dl.join("·");let Ya=Oa==null?void 0:Oa.map(hl=>{var Qa;return(Qa=hl==null?void 0:hl.words)==null?void 0:Qa.join(".")});bl.relatedWords=Ya,bl.usingType="parent",El.unshift(bl),Z.value=[...Ga,...El],Z.value=(ce=Z.value)==null?void 0:ce.map(hl=>(dl!=null&&dl.find(Qa=>Qa===(hl==null?void 0:hl.prop))&&(hl.isFormColHidden=!0,hl.relatedWords=Ya),hl))}}}}},Xc=()=>{var f;const p=(f=s.value)==null?void 0:f.$el;p&&$a.Sortable.create(p,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:M=>{var Q;const{oldIndex:O,newIndex:V}=M;if(O===V)return;const N=Qr.value.splice(O,1)[0];Qr.value.splice(V,0,N),De.value=(Q=De.value)==null?void 0:Q.slice().sort((ae,j)=>{if(ae.label==="操作")return 1;if(j.label==="操作")return-1;const me=Qr.value.findIndex(Le=>Le.label===ae.label),Ce=Qr.value.findIndex(Le=>Le.label===j.label);return me-Ce})}})};a.onMounted(()=>{je.value=window.innerWidth-240*2,window.addEventListener("keydown",qt)});const Zc=()=>{a.nextTick(()=>{Xc()})},Qo=(p,f)=>{var O;if(!p&&!(p!=null&&p.children))return{contents:p,currentSelectContents:void 0};let M;return p.children=(O=p.children)==null?void 0:O.map(V=>{var N,Q;if((V==null?void 0:V.id)===Je.value){let ae={};for(let j in V){let me=(N=f==null?void 0:f.find(Ce=>(Ce==null?void 0:Ce.prop)===j))==null?void 0:N.label;me?ae[j]=(Q=Il.value)==null?void 0:Q[me]:ae[j]=V[j]??""}V=Object.assign(ae,Il.value),M=V}else{let ae=Qo(V,f);V=ae==null?void 0:ae.contents,M=ae==null?void 0:ae.currentSelectContents}return V}),{contents:p,currentSelectContents:M}},Di=(p,f)=>{let M,O;return p!=null&&p.find(V=>(V==null?void 0:V.id)===Je.value)?M=p==null?void 0:p.map(V=>{var N,Q,ae;if((V==null?void 0:V.id)===Je.value){let j={};for(let Ce in V){let Le=(N=f==null?void 0:f.find(Me=>(Me==null?void 0:Me.prop)===Ce))==null?void 0:N.label;Le?j[Ce]=((Q=Il.value)==null?void 0:Q[Le])??"":j[Ce]=V[Ce]??""}let me=Il.value;for(let Ce in j)(ae=Il.value)!=null&&ae[Ce]||(me[Ce]=(j==null?void 0:j[Ce])??"");V=me,O=V}return V}):M=p==null?void 0:p.map(V=>{var N,Q,ae,j;if((V==null?void 0:V.id)===Je.value){let me={};for(let Ce in V){let Le=(N=f==null?void 0:f.find(Me=>(Me==null?void 0:Me.prop)===Ce))==null?void 0:N.label;Le?me[Ce]=(Q=Il.value)==null?void 0:Q[Le]:me[Ce]=V[Ce]??""}V=Object.assign(me,Il.value),O=V}else V=(ae=Qo(V,f))==null?void 0:ae.contents,O=(j=Qo(V,f))==null?void 0:j.currentSelectContents;return V}),{newContents:M,currentSelectContents:O}},Bi=(p,f,M)=>{var O,V;return p[f==null?void 0:f.prop]=M,typeof p.id=="number"&&(p.id=(O=p.id)==null?void 0:O.toString()),p.children&&((V=p.children)==null?void 0:V.length)>0&&(p.children=p.children.map(Bi)),p},Ni=p=>{var M;const f=[];return f.push({...p}),p!=null&&p.children&&Array.isArray(p.children)&&((M=p.children)==null||M.forEach(O=>{f.push(...Ni(O))})),(f==null?void 0:f.length)>0?f==null?void 0:f.map(O=>{const V={...O};return delete V.children,V}):[]},ro=["Pacific6000数据采集装置.通道号","通道号"],It=p=>{if(!p)return"";const f=ro.map(M=>p==null?void 0:p[M]).find(M=>M!=null&&String(M).trim()!=="");return f==null?"":String(f).trim()},ei=async(p,f=void 0)=>{if(!p)return!1;try{const M=Ue=>{var aa,Va,Da;return Ue?typeof(Ue==null?void 0:Ue.value)=="string"?Ue.value:((Da=(Va=(aa=Ue==null?void 0:Ue._custom)==null?void 0:aa.value)==null?void 0:Va.value)==null?void 0:Da.value)||"":""},O=Array.isArray(bn.value)?bn.value:[],V=M(O.find(Ue=>(Ue==null?void 0:Ue.condition)==="child")),N=(ga.value||"").replace(/\/+$/,""),Q=V?`${N}/${V}`:N,ae=await Pr(Q||ga.value,!1),j=String(fa.value||"").trim(),me=Ue=>String(Ue||"").trim(),Ce=(Ue,aa=[],Va="")=>{if(!Array.isArray(Ue))return aa;for(const Da of Ue){const la=me((Da==null?void 0:Da.choiceName)||(Da==null?void 0:Da.name0)||Va);(Da==null?void 0:Da.comp)==="Table"&&(!j||la===j)&&aa.push(Da),Array.isArray(Da==null?void 0:Da.children)&&Ce(Da.children,aa,la),Array.isArray(Da==null?void 0:Da.tab)&&Ce(Da.tab,aa,la),Array.isArray(Da==null?void 0:Da.choice)&&Ce(Da.choice,aa,la)}return aa},Le=Ce(ae||[]),Me=String((c==null?void 0:c.compName)||"");return Le.some(Ue=>{var Va,Da;const aa=((Da=(Va=Ue==null?void 0:Ue.compData)==null?void 0:Va.find(la=>(la==null?void 0:la.key)==="tableContents"))==null?void 0:Da.contents)||[];return!Array.isArray(aa)||aa.length===0?!1:aa.some(la=>{if(String((Ue==null?void 0:Ue.name)||"")===Me&&(la==null?void 0:la.id)===f)return!1;const sa=It(la);return!!sa&&sa===p})})}catch{return(we.value||[]).some(O=>{if((O==null?void 0:O.id)===f)return!1;const V=It(O);return!!V&&V===p})}},Lt=async(p=!0,f,M)=>{var me,Ce,Le,Me,Ue,aa,Va,Da,la,Wa,sa,Ra,Na,ge,ba,ta,ce,E,Oe,xe,Qe,ca,ha,Oa,dl,Za,gl,bl,Rl,Ga,El;if(Il.value){const Ya=(Ce=na.getColumnChild((me=I.cloneDeep(De.value))==null?void 0:me.filter(Qa=>(Qa==null?void 0:Qa.label)!=="操作")))==null?void 0:Ce.filter(Qa=>(Qa==null?void 0:Qa.required)===!0);for(let Qa=0;Qa<((Ya==null?void 0:Ya.length)??0);Qa++){const vl=Ya[Qa],Tl=vl==null?void 0:vl.prop,Dl=(vl==null?void 0:vl.label)??Tl,ur=(Le=Il.value)==null?void 0:Le[Tl];if(ur===""||ur===null||ur===void 0||Array.isArray(ur)&&ur.length===0){ll.ElMessage.error(`${Dl}不能为空`);return}}const hl=It(Il.value);if(hl&&await ei(hl,Je.value||void 0)){ll.ElMessage.warning("当前任务下通道号不能重复,请重新选择");return}}let O=na.getColumnChild((Me=I.cloneDeep(De.value))==null?void 0:Me.filter(Ya=>(Ya==null?void 0:Ya.label)!=="操作")),V,N=I.cloneDeep(we.value);if(!Il.value){pa.value=!1;return}if(Je.value===""){Fe.value++;let Ya;Ya={id:Fe.value.toString()};try{Ya.sort=Wn(0,we.value||[])}catch{}Ya!=null&&Ya.children&&(Ya={...Ya,children:(Ue=Ya.children)==null?void 0:Ue.map(Qa=>Bi(Qa,f,M))});const hl=Object.assign(Il.value,Ya);N.unshift(hl),V=hl}else N=(aa=Di(N,O))==null?void 0:aa.newContents,V=(Va=Di(N,O))==null?void 0:Va.currentSelectContents;const Q=(Da=c.itemData)==null?void 0:Da.filter(Ya=>(Ya==null?void 0:Ya.key)==="childTree")[0];if(((la=Q==null?void 0:Q.contents)==null?void 0:la.length)>0){$e.value="编辑";const Ya=[];N==null||N.forEach((vl,Tl)=>{var ur;let Dl={};if(Array.isArray(vl)){let Ll=[];vl==null||vl.filter(wl=>!(wl!=null&&wl.id)).forEach((wl,Nl)=>{var Yl,Ml,dr,pr,Gl,or,$r;if((Ml=(Yl=Br.value)==null?void 0:Yl[Nl])!=null&&Ml.prop&&!Array.isArray(wl)){let ir={};ir[Br.value[Nl].column]=wl,Ia!=null&&Ia.value&&((dr=Ia==null?void 0:Ia.value)==null?void 0:dr.length)>0&&((pr=Ia==null?void 0:Ia.value)!=null&&pr.find(lr=>JSON.stringify(lr==null?void 0:lr[0])===JSON.stringify(ir)))&&(Ll=(Gl=Ia==null?void 0:Ia.value)==null?void 0:Gl.find(lr=>JSON.stringify(lr==null?void 0:lr[0])===JSON.stringify(ir))),Ll&&Ll.length>0?Dl[Br.value[Nl].prop]=Ll!=null&&Ll.find(lr=>{var nr;return((nr=Object.keys(lr))==null?void 0:nr[0])===Br.value[Nl].column})?(or=Ll==null?void 0:Ll.find(lr=>{var nr;return((nr=Object.keys(lr))==null?void 0:nr[0])===Br.value[Nl].column}))==null?void 0:or[Br.value[Nl].column]:wl:Dl[Br.value[Nl].prop]=wl}else Array.isArray(wl)&&(($r=Br.value[Nl])!=null&&$r.prop?Dl[Br.value[Nl].prop]=wl:Dl.children=pi(wl,Br.value))})}else Dl=vl;if(Array.isArray(vl)&&vl.some(Ll=>Ll==null?void 0:Ll.id)){const Ll=(ur=vl==null?void 0:vl.find(wl=>wl.id))==null?void 0:ur.id;Ya.push(Object.assign(Dl,{id:Qt(Ll)}))}else Dl.id?Ya.push(Dl):Ya.push(Object.assign(Dl,{id:Tl.toString()}))});const hl=(we.value||[]).map(vl=>String(vl==null?void 0:vl.id)),Qa=it(Ya,hl);we.value=Mi(Qa,Q,De.value)}Ai(we.value),Nr.value=we.value;const ae=tf(Nr.value,An.value,N);let j=[];if(R.value?(j=(Wa=I.cloneDeep(R).value.singleContent)==null?void 0:Wa.filter(Ya=>(Ya==null?void 0:Ya.id)!==(V==null?void 0:V.id)),j.push(V)):j=[V],Al.value){const Ya={content:ae,singleContent:((sa=Q==null?void 0:Q.contents)==null?void 0:sa.length)>0?j==null?void 0:j.flatMap(Ni):j,index:c==null?void 0:c.index,buttonName:"编辑",column:De.value,parentTableId:c==null?void 0:c.parentTableId};Ge.setCacheUpdatingData(Ya)}if((Ra=De.value)==null||Ra.forEach(Ya=>{(Ya==null?void 0:Ya.formType)==="Upload"&&(V[Ya.prop]=V[Ya.prop]===""?"{}":typeof V[Ya.prop]!="string"?JSON.stringify(V[Ya.prop]):V[Ya.prop])}),p){(ta=(ba=(ge=(Na=c.itemData)==null?void 0:Na.find(Qa=>(Qa==null?void 0:Qa.key)==="filterAllType"))==null?void 0:ge.value)==null?void 0:ba.find(Qa=>(Qa==null?void 0:Qa.value)==="onConditionContents"))==null||ta.content;let Ya=(ce=c.itemData)==null?void 0:ce.filter(Qa=>(Qa==null?void 0:Qa.key)==="filterAllType");Ya=Array.from(new Map(Ya.filter(Boolean).map((Qa,vl)=>[Qa.value,{...Qa,_idx:vl}])).values()).sort((Qa,vl)=>Qa._idx-vl._idx).map(({_idx:Qa,...vl})=>vl),Ya=(E=Ya==null?void 0:Ya[(Ya==null?void 0:Ya.length)-1])==null?void 0:E.value;const hl={fixContent:[V],buttonName:$e.value,relatedContents:c==null?void 0:c.related,columns:De.value,name:c==null?void 0:c.compName};Ge.setTableLoading(c==null?void 0:c.index),pa.value=!1,Il.value=void 0,ze("change",hl)}if((Qe=(xe=(Oe=Z.value)==null?void 0:Oe[0])==null?void 0:xe.optionUrl)!=null&&Qe.menuId){pa.value=!1;let Ya=(ca=c.itemData)==null?void 0:ca.filter(hl=>(hl==null?void 0:hl.key)==="filterAllType");if((Ya==null?void 0:Ya.length)>0){let hl=Ya==null?void 0:Ya.map(Tl=>Tl==null?void 0:Tl.value),Qa=(dl=(Oa=(ha=hl.flat().find(Tl=>{var Dl;return(Dl=Tl==null?void 0:Tl.content)==null?void 0:Dl.includes("@Num")}))==null?void 0:ha.content)==null?void 0:Oa.split(":"))==null?void 0:dl[1];((bl=(gl=(Za=hl.flat().find(Tl=>{var Dl;return(Dl=Tl==null?void 0:Tl.content)==null?void 0:Dl.includes("@Type:")}))==null?void 0:Za.content)==null?void 0:gl.split(":"))==null?void 0:bl[1])!=="Manual"&&(Qa=parseInt(Qa),we.value=(El=we.value)==null?void 0:El.slice(((Rl=we.value)==null?void 0:Rl.length)-Qa,(Ga=we.value)==null?void 0:Ga.length))}}};a.onUnmounted(()=>{window.removeEventListener("keydown",qt),De.value=[],we.value=[],pe.value=[],xa.value=[],Be.value=[],za.value=[],Ye.value=[],ua.value=[],Z.value=[],ar.value=[],s.value=null,zn.value=""});const no=async(p,f,M)=>{var Ue,aa,Va,Da,la,Wa,sa,Ra,Na,ge,ba,ta,ce;Pl.value=(M==null?void 0:M.prop)??(M==null?void 0:M.property);const O=I.cloneDeep(c.itemData),V=((Ue=O==null?void 0:O.find(E=>(E==null?void 0:E.key)==="header"))==null?void 0:Ue.contents)??[];let N=V==null?void 0:V.find((E,Oe)=>{var xe,Qe,ca;return(E==null?void 0:E.prop)===Pl.value||(E==null?void 0:E.label)===Pl.value||(Oe==null?void 0:Oe.toString())===((ca=(Qe=(xe=Pl.value)==null?void 0:xe.split("a"))==null?void 0:Qe[1])==null?void 0:ca.toString())});const Q=na.getColumnChild((aa=I.cloneDeep(De.value))==null?void 0:aa.filter(E=>(E==null?void 0:E.label)!=="操作"));if(N||(N=Q==null?void 0:Q.find(E=>(E==null?void 0:E.prop)===Pl.value||(E==null?void 0:E.label)===Pl.value)),N&&!((Va=N==null?void 0:N.menus)!=null&&Va.length)&&!((Da=N==null?void 0:N.groups)!=null&&Da.length)&&!((la=N==null?void 0:N.words)!=null&&la.length)){const E=(Wa=Z.value)==null?void 0:Wa.find(Oe=>(Oe==null?void 0:Oe.prop)===Pl.value);E&&(N={...N,menus:(E==null?void 0:E.menus)??(N==null?void 0:N.menus),groups:(E==null?void 0:E.groups)??(N==null?void 0:N.groups),words:(E==null?void 0:E.words)??(N==null?void 0:N.words),bindMenus:(E==null?void 0:E.bindMenus)??(N==null?void 0:N.bindMenus),isMainPath:(E==null?void 0:E.isMainPath)??(N==null?void 0:N.isMainPath),relatedContents:(E==null?void 0:E.relatedContents)??(N==null?void 0:N.relatedContents),endChildMenu:(E==null?void 0:E.endChildMenu)??(N==null?void 0:N.endChildMenu)})}if(N&&((sa=Z==null?void 0:Z.value)==null||sa.forEach(E=>{var Oe,xe,Qe,ca,ha;(E==null?void 0:E.prop)===(N==null?void 0:N.prop)&&(E!=null&&E.endChildMenu)&&((Oe=N==null?void 0:N.prop)!=null&&Oe.includes(".")&&((Qe=(xe=N==null?void 0:N.prop)==null?void 0:xe.split("."))==null?void 0:Qe[0])!==((ha=(ca=E==null?void 0:E.prop)==null?void 0:ca.split("."))==null?void 0:ha[0])?N.endChildMenu=E==null?void 0:E.value:N.endChildMenu=E==null?void 0:E.endChildMenu)})),!N)return;const ae=Pl.value,j=(Ra=we.value)==null?void 0:Ra.findIndex(E=>(E==null?void 0:E.id)===(f==null?void 0:f.id));j!==-1&&ae&&(we.value[j]={...we.value[j],[ae]:p});const me=E=>{Array.isArray(E)&&E.forEach(Oe=>{Array.isArray(Oe==null?void 0:Oe.allSelectionContents)&&Oe.allSelectionContents.length>0&&(Oe.contactValue=we.value[j]??f),Array.isArray(Oe==null?void 0:Oe.children)&&Oe.children.length>0&&me(Oe.children)})};me(De.value),N.value=p,N.endChildMenu=N.endChildMenu||"";let Ce=N!=null&&N.isMainPath&&(N!=null&&N.mainKey)?N==null?void 0:N.value:"";const Le=E=>{Array.isArray(E)&&E.forEach(Oe=>{var Qe,ca;if(((Oe==null?void 0:Oe.type)==="Select"||(Oe==null?void 0:Oe.formType)&&Oe.formType.toUpperCase()==="SELECT"||(Oe==null?void 0:Oe.columnType)&&Oe.columnType.toUpperCase()==="SELECT")&&Array.isArray(Oe==null?void 0:Oe.menus)&&Oe.menus.length>0&&Oe.menus[Oe.menus.length-1]===""&&(N!=null&&N.isMainPath)&&(N!=null&&N.mainKey)){const ha=(Qe=Oe==null?void 0:Oe.prop)!=null&&Qe.includes(".")?Oe.prop.split(".")[0]:null,Oa=(ca=N==null?void 0:N.prop)!=null&&ca.includes(".")?N.prop.split(".")[0]:null;(!ha||!Oa||ha===Oa)&&(Oe.endChildMenu=Ce)}Array.isArray(Oe==null?void 0:Oe.children)&&Oe.children.length>0&&Le(Oe.children)})};if(Le(De.value),!!(N!=null&&N.mainKey)&&Array.isArray(N==null?void 0:N.menus)&&(N==null?void 0:N.menus.length)>0&&(N!=null&&N.value)&&(N==null?void 0:N.value)!==""){let E=N!=null&&N.relatedContents&&((Na=N==null?void 0:N.relatedContents)==null?void 0:Na.length)>0?(ge=N==null?void 0:N.relatedContents)==null?void 0:ge.find(Oe=>{var xe,Qe,ca,ha;return(Oe==null?void 0:Oe[(ha=(xe=N==null?void 0:N.prop)==null?void 0:xe.split("."))==null?void 0:ha[((ca=(Qe=N==null?void 0:N.prop)==null?void 0:Qe.split("."))==null?void 0:ca.length)-1]])===(N==null?void 0:N.value)}):await rs(N);if(E){const Oe={...f};Q==null||Q.forEach(xe=>{var Qe,ca,ha,Oa,dl,Za,gl,bl,Rl,Ga,El,Ya,hl,Qa,vl,Tl;(xe==null?void 0:xe.prop)!==(N==null?void 0:N.prop)&&(N!=null&&N.relatedContents&&((Qe=N==null?void 0:N.relatedContents)==null?void 0:Qe.length)>0?(ca=xe==null?void 0:xe.prop)!=null&&ca.includes(".")&&((Oa=(ha=xe==null?void 0:xe.prop)==null?void 0:ha.split("."))==null?void 0:Oa[0])===((Za=(dl=N==null?void 0:N.prop)==null?void 0:dl.split("."))==null?void 0:Za[0])?Oe[xe.prop]=E[(Ga=(gl=xe==null?void 0:xe.prop)==null?void 0:gl.split("."))==null?void 0:Ga[((Rl=(bl=xe==null?void 0:xe.prop)==null?void 0:bl.split("."))==null?void 0:Rl.length)-1]]??Oe[xe.prop]:Oe[xe.prop]=(E==null?void 0:E[xe.prop])??Oe[xe.prop]:$a.same((N==null?void 0:N.menus)??[],(xe==null?void 0:xe.menus)??[])&&$a.same((N==null?void 0:N.groups)??[],(xe==null?void 0:xe.groups)??[])&&!$a.same((N==null?void 0:N.words)??[],(xe==null?void 0:xe.words)??[])?(El=xe==null?void 0:xe.prop)!=null&&El.includes(".")&&((hl=(Ya=xe==null?void 0:xe.prop)==null?void 0:Ya.split("."))==null?void 0:hl[0])!==((vl=(Qa=N==null?void 0:N.prop)==null?void 0:Qa.split("."))==null?void 0:vl[0])||(Oe[xe.prop]=(E==null?void 0:E[(Tl=xe==null?void 0:xe.words)==null?void 0:Tl.join(".")])??(E==null?void 0:E[xe.prop])??Oe[xe.prop]):(!(xe!=null&&xe.isMainPath)&&$a.same((N==null?void 0:N.bindMenus)??[],(xe==null?void 0:xe.bindMenus)??[]),Oe[xe.prop]=(E==null?void 0:E[xe.prop])??Oe[xe.prop]))}),we.value=(ba=I.cloneDeep(we.value))==null?void 0:ba.map(xe=>(xe==null?void 0:xe.id)===(f==null?void 0:f.id)?{...Oe,id:xe==null?void 0:xe.id}:xe)}}if((ta=N==null?void 0:N.optionUrl)!=null&&ta.menuSelect){let E="";Q==null||Q.forEach(Qe=>{var ca,ha,Oa,dl,Za;E===""&&((Oa=(ha=(ca=Qe==null?void 0:Qe.optionUrl)==null?void 0:ca.groupSelect)==null?void 0:ha[1])!=null&&Oa.includes("["))&&(E=(Za=(dl=Qe==null?void 0:Qe.optionUrl)==null?void 0:dl.groupSelect)==null?void 0:Za[1])});let Oe=await fi(N),xe;if(Oe==null||Oe.forEach(Qe=>{var ca,ha,Oa,dl,Za,gl,bl,Rl,Ga,El;E===((ha=(ca=N==null?void 0:N.optionUrl)==null?void 0:ca.groupSelect)==null?void 0:ha[1])&&((Za=(dl=(Oa=N==null?void 0:N.optionUrl)==null?void 0:Oa.groupSelect)==null?void 0:dl[1])!=null&&Za.includes("["))&&((El=I.cloneDeep(Qe))==null?void 0:El[(Ga=(Rl=(bl=(gl=N==null?void 0:N.optionUrl)==null?void 0:gl.groupSelect)==null?void 0:bl[1])==null?void 0:Rl.replaceAll("[",""))==null?void 0:Ga.replaceAll("]","")])===(N==null?void 0:N.value)&&(xe=Qe)}),xe){const Qe={...f};Q==null||Q.forEach(ca=>{var ha,Oa,dl,Za,gl,bl,Rl,Ga,El,Ya,hl;(xe!=null&&xe[ca==null?void 0:ca.label]||xe!=null&&xe[(Za=(dl=(Oa=(ha=ca==null?void 0:ca.optionUrl)==null?void 0:ha.groupSelect)==null?void 0:Oa[1])==null?void 0:dl.replaceAll("[",""))==null?void 0:Za.replaceAll("]","")])&&((Rl=(bl=(gl=ca==null?void 0:ca.optionUrl)==null?void 0:gl.groupSelect)==null?void 0:bl[1])!=null&&Rl.includes("["))&&(Qe[ca.prop]=(xe==null?void 0:xe[ca==null?void 0:ca.label])||(xe==null?void 0:xe[(hl=(Ya=(El=(Ga=ca==null?void 0:ca.optionUrl)==null?void 0:Ga.groupSelect)==null?void 0:El[1])==null?void 0:Ya.replaceAll("[",""))==null?void 0:hl.replaceAll("]","")]))}),we.value=(ce=I.cloneDeep(we.value))==null?void 0:ce.map(ca=>(ca==null?void 0:ca.id)===(f==null?void 0:f.id)?{...Qe,id:ca==null?void 0:ca.id}:ca)}}},Qc=async p=>{var Ue,aa,Va,Da,la,Wa,sa,Ra,Na,ge,ba,ta;if(!p)return;const f=I.cloneDeep(Il.value||{});Il.value=p;const M=It(f),O=It(Il.value);if(O&&O!==M&&await ei(O,Je.value||void 0)){ll.ElMessage.warning("当前任务下通道号不能重复,请重新选择"),ro.forEach(E=>{if(Object.prototype.hasOwnProperty.call(Il.value||{},E)||Object.prototype.hasOwnProperty.call(f||{},E)){const Oe=(f==null?void 0:f[E])??"";Il.value[E]=Oe,p[E]=Oe}}),Z.value=(Z.value||[]).map(E=>{if(!(E!=null&&E.prop)||!ro.includes(E.prop))return E;const Oe=(f==null?void 0:f[E.prop])??"";return{...E,value:Oe,selectValue:Oe===""?[]:[Oe]}});return}let V=I.cloneDeep(c.itemData);V==null||V.map(ce=>{var E,Oe,xe,Qe;return(ce==null?void 0:ce.key)==="header"&&(Array.isArray((E=ce.contents)==null?void 0:E[0])?ce.contents=(xe=na.getColumnChild((Oe=ce.contents)==null?void 0:Oe[0]))==null?void 0:xe.map((ca,ha)=>{var Oa,dl,Za,gl,bl,Rl;return((Za=(dl=(Oa=Z.value)==null?void 0:Oa.find(Ga=>(Ga==null?void 0:Ga.prop)===(ca==null?void 0:ca.prop)))==null?void 0:dl.optionUrl)==null?void 0:Za.multiple)===!0&&!Array.isArray((gl=Object.values(p))==null?void 0:gl[ha])?ca.value=[(bl=Object.values(p))==null?void 0:bl[ha]]:ca.value=(Rl=Object.values(p))==null?void 0:Rl[ha],ca}):ce.contents=(Qe=ce.contents)==null?void 0:Qe.map((ca,ha)=>{var Oa,dl,Za,gl,bl,Rl;return((Za=(dl=(Oa=Z.value)==null?void 0:Oa.find(Ga=>(Ga==null?void 0:Ga.prop)===(ca==null?void 0:ca.prop)))==null?void 0:dl.optionUrl)==null?void 0:Za.multiple)===!0&&!Array.isArray((gl=Object.values(p))==null?void 0:gl[ha])?ca.value=[(bl=Object.values(p))==null?void 0:bl[ha]]:ca.value=(Rl=Object.values(p))==null?void 0:Rl[ha],ca})),ce});let N=Z.value,Q=(Ue=V==null?void 0:V.find(ce=>(ce==null?void 0:ce.key)==="header"))==null?void 0:Ue.contents;if(Pl.value||(N=N==null?void 0:N.map(ce=>{var E;return ce.value=ce.value??((E=Q==null?void 0:Q.find((Oe,xe)=>(Oe==null?void 0:Oe.prop)===(ce==null?void 0:ce.name)))==null?void 0:E.value),ce})),!Mr.value)return;let ae=I.cloneDeep(Pl.value);(aa=Pl.value)!=null&&aa.includes("·")&&(Pl.value=(Da=(Va=Pl.value)==null?void 0:Va.split("·"))==null?void 0:Da[0]);let j=(Wa=(la=V==null?void 0:V.find(ce=>(ce==null?void 0:ce.key)==="header"))==null?void 0:la.contents)==null?void 0:Wa.find((ce,E)=>(ce==null?void 0:ce.prop)===Pl.value);(sa=Z==null?void 0:Z.value)==null||sa.forEach(ce=>{var E,Oe,xe,Qe,ca,ha,Oa,dl,Za;(ce==null?void 0:ce.prop)===(j==null?void 0:j.prop)&&(ce!=null&&ce.endChildMenu)&&((E=j==null?void 0:j.prop)!=null&&E.includes(".")&&((xe=(Oe=j==null?void 0:j.prop)==null?void 0:Oe.split("."))==null?void 0:xe[0])!==((ca=(Qe=ce==null?void 0:ce.prop)==null?void 0:Qe.split("."))==null?void 0:ca[0])?j.endChildMenu=(Oa=(ha=ce==null?void 0:ce.value)==null?void 0:ha.split(" "))==null?void 0:Oa[0]:j.endChildMenu=(Za=(dl=ce==null?void 0:ce.endChildMenu)==null?void 0:dl.split(" "))==null?void 0:Za[0])});let me=j!=null&&j.isMainPath&&(j!=null&&j.mainKey)?j==null?void 0:j.value:"",Ce=N,Le=ke.value;if(Le!=null&&Le.find(ce=>(j==null?void 0:j.prop)===(ce==null?void 0:ce.key))&&(Le=Le==null?void 0:Le.filter(ce=>(j==null?void 0:j.prop)!==(ce==null?void 0:ce.key))),Le!=null&&Le.find(ce=>ae===(ce==null?void 0:ce.key))&&(Le=Le==null?void 0:Le.filter(ce=>ae!==(ce==null?void 0:ce.key))),(j==null?void 0:j.formType)==="Select"&&(Ce=Ce==null?void 0:Ce.map(ce=>{var E,Oe,xe,Qe,ca,ha,Oa,dl,Za,gl,bl,Rl,Ga,El,Ya,hl;return(ce==null?void 0:ce.type)==="Select"&&(((E=ce==null?void 0:ce.allSelectionContents)==null?void 0:E.length)>0&&(ce.contactValue=p),((j==null?void 0:j.prop)===(ce==null?void 0:ce.prop)||ae===(ce==null?void 0:ce.prop))&&j&&(Array.isArray(j.value)&&((Oe=j.value)==null?void 0:Oe.length)>0&&((xe=j.value)!=null&&xe.every(Qa=>typeof Qa=="string"))?(Le.push({key:ce==null?void 0:ce.prop,value:[(ca=j.value)==null?void 0:ca[((Qe=j.value)==null?void 0:Qe.length)-1]]}),ce.selectValue=(ha=Le==null?void 0:Le.find(Qa=>(Qa==null?void 0:Qa.key)===(ce==null?void 0:ce.prop)))==null?void 0:ha.value):Array.isArray(j.value)&&((Oa=j.value)==null?void 0:Oa.length)===0?(Le=[],ce.selectValue=[],p[ce==null?void 0:ce.prop]=""):Array.isArray(ce.value)&&Le.push({key:ce==null?void 0:ce.prop,value:[(dl=ce.value)==null?void 0:dl[(ce==null?void 0:ce.length)-1]]})),((gl=ce==null?void 0:ce.menus)==null?void 0:gl[((Za=ce==null?void 0:ce.menus)==null?void 0:Za.length)-1])===""&&(j!=null&&j.isMainPath)&&(j!=null&&j.mainKey)&&((bl=ce==null?void 0:ce.prop)!=null&&bl.includes(".")&&((Ga=(Rl=ce==null?void 0:ce.prop)==null?void 0:Rl.split("."))==null?void 0:Ga[0])!==((Ya=(El=j==null?void 0:j.prop)==null?void 0:El.split("."))==null?void 0:Ya[0])||(ce.endChildMenu=(hl=me==null?void 0:me.split(" "))==null?void 0:hl[0]))),ce.value=(p==null?void 0:p[ce==null?void 0:ce.prop])??(ce==null?void 0:ce.value),ce})),ke.value=Le,Ce!=null&&Ce.some(ce=>(ce==null?void 0:ce.functionName)&&(ce==null?void 0:ce.functionName)!=="")){let ce=await di([p],De==null?void 0:De.value,"Auto",we.value);Ce=Ce==null?void 0:Ce.map(E=>{var Oe;return E.value=((Oe=ce==null?void 0:ce[0])==null?void 0:Oe[E==null?void 0:E.prop])??E.value,E}),Il.value=ce==null?void 0:ce[0]}if(Z.value=Ce,j=Object.assign({},j??{},{relatedWords:(Na=(Ra=Z==null?void 0:Z.value)==null?void 0:Ra.find(ce=>(ce==null?void 0:ce.prop)===(j==null?void 0:j.prop)))==null?void 0:Na.relatedWords}),(j==null?void 0:j.mainKey)&&(j!=null&&j.value)&&(j==null?void 0:j.value)!==""){let ce=j!=null&&j.relatedContents&&((ge=j==null?void 0:j.relatedContents)==null?void 0:ge.length)>0?(ba=j==null?void 0:j.relatedContents)==null?void 0:ba.find(E=>{var Oe,xe,Qe,ca;return(E==null?void 0:E[(ca=(Oe=j==null?void 0:j.prop)==null?void 0:Oe.split("."))==null?void 0:ca[((Qe=(xe=j==null?void 0:j.prop)==null?void 0:xe.split("."))==null?void 0:Qe.length)-1]])===(j==null?void 0:j.value)}):await rs(j);if(ce&&JSON.stringify(ce)!=="{}"){let E=Ce;E=E==null?void 0:E.map(xe=>{var Qe,ca,ha,Oa,dl,Za,gl,bl,Rl,Ga,El,Ya,hl,Qa,vl,Tl,Dl,ur,Ll,wl,Nl;return(j==null?void 0:j.prop)===(xe==null?void 0:xe.prop)?xe.value=(ce==null?void 0:ce[(Qe=xe==null?void 0:xe.words)==null?void 0:Qe.join(".")])??(ce==null?void 0:ce[xe==null?void 0:xe.prop])??ce[(dl=(ca=xe==null?void 0:xe.prop)==null?void 0:ca.split("."))==null?void 0:dl[((Oa=(ha=xe==null?void 0:xe.prop)==null?void 0:ha.split("."))==null?void 0:Oa.length)-1]]:j!=null&&j.relatedContents&&((Za=j==null?void 0:j.relatedContents)==null?void 0:Za.length)>0?xe.value=(gl=xe==null?void 0:xe.prop)!=null&&gl.includes(".")&&((Rl=(bl=xe==null?void 0:xe.prop)==null?void 0:bl.split("."))==null?void 0:Rl[0])===((El=(Ga=j==null?void 0:j.prop)==null?void 0:Ga.split("."))==null?void 0:El[0])?ce[(vl=(Ya=xe==null?void 0:xe.prop)==null?void 0:Ya.split("."))==null?void 0:vl[((Qa=(hl=xe==null?void 0:xe.prop)==null?void 0:hl.split("."))==null?void 0:Qa.length)-1]]:(ce==null?void 0:ce[xe==null?void 0:xe.prop])??(xe==null?void 0:xe.value):$a.same((j==null?void 0:j.menus)??[],(xe==null?void 0:xe.menus)??[])&&$a.same((j==null?void 0:j.groups)??[],(xe==null?void 0:xe.groups)??[])&&!$a.same((j==null?void 0:j.words)??[],(xe==null?void 0:xe.words)??[])?(Tl=xe==null?void 0:xe.prop)!=null&&Tl.includes(".")&&((ur=(Dl=xe==null?void 0:xe.prop)==null?void 0:Dl.split("."))==null?void 0:ur[0])!==((wl=(Ll=j==null?void 0:j.prop)==null?void 0:Ll.split("."))==null?void 0:wl[0])||(xe.value=(ce==null?void 0:ce[(Nl=xe==null?void 0:xe.words)==null?void 0:Nl.join(".")])??(ce==null?void 0:ce[xe==null?void 0:xe.prop])??xe.value):(!(xe!=null&&xe.isMainPath)&&$a.same((j==null?void 0:j.bindMenus)??[],(xe==null?void 0:xe.bindMenus)??[]),xe.value=(ce==null?void 0:ce[xe==null?void 0:xe.prop])??xe.value),xe}),Z.value=E;let Oe={};(ta=Z.value)==null||ta.forEach(xe=>{Oe[xe.prop]=xe==null?void 0:xe.value}),Il.value=Oe}}Mr.value=!0,H.value=!1},eu=p=>p?(p==null?void 0:p.toUpperCase())==="INPUT"?"TEXTAREA":p:"TEXTAREA",au=p=>{var N,Q;const f=(Q=(N=Be.value)==null?void 0:N.find(ae=>(ae==null?void 0:ae.label)===(p==null?void 0:p.label)))==null?void 0:Q.multiple,M=p==null?void 0:p.prop;if((p==null?void 0:p.formType)!="Select")return;we.value.forEach(ae=>{const j=ae==null?void 0:ae[M];f&&ko.isString(j)&&(ae[M]=[j]),!f&&!ko.isString(j)&&(ae[M]="")})},Ti=(p,f)=>{var M;return f==null||f.forEach(O=>{p[O==null?void 0:O.prop]=O==null?void 0:O.value}),p.children&&((M=p.children)==null?void 0:M.length)>0&&(p.children=p.children.map(O=>Ti(O,f))),p},ai=p=>{var M,O,V,N,Q,ae;Ot("");const f=(M=Z.value)==null?void 0:M.reduce((j,me)=>(j[me.name]=me.value,j),{});if(((O=Object.keys(f))==null?void 0:O.length)>0){Il.value=f,Je.value="",Fe.value=(V=we.value)==null?void 0:V.length,ua.value=(N=_e.value)==null?void 0:N.filter(me=>(me==null?void 0:me.label)!=="新增");const j=(ae=(Q=pe.value)==null?void 0:Q.filter(me=>(me==null?void 0:me.label)!=="操作"))==null?void 0:ae.map(me=>{var Le,Me,Ue;const Ce=(Me=(Le=Be.value)==null?void 0:Le.find(aa=>(aa==null?void 0:aa.label)===(me==null?void 0:me.label)))==null?void 0:Me.multiple;return au(me),{...me,contents:(me==null?void 0:me.options)??[],optionUrl:me!=null&&me.formMenuSelect&&((Ue=me==null?void 0:me.formMenuSelect)==null?void 0:Ue.length)>0?{groupSelect:me==null?void 0:me.groupSelect,menuSelect:me==null?void 0:me.formMenuSelect,selectRelateType:"",type:me==null?void 0:me.formType,multiple:Ce}:null}});De.value=j==null?void 0:j.map(me=>Ti(me,[{prop:"type",value:"edit"},{prop:"columnType",value:eu(me==null?void 0:me.formType)||(me==null?void 0:me.columnType)}])),p==="createClick"&&($e.value="新增",Lt(!0))}},dt={START:"开始时间",END:"结束时间",HOURS:"工时"},lu=(p,f)=>Number(I.dayjs(f).diff(I.dayjs(p),"day",!0).toFixed(1)),Ai=p=>{var N;const f=c.itemData,M=(N=f==null?void 0:f.find(Q=>(Q==null?void 0:Q.key)==="header"))==null?void 0:N.contents,O=new Map;return M==null||M.forEach((Q,ae)=>{const{label:j}=Q;O.set(j,ae)}),!O.has(dt.START)||!O.has(dt.END)||!O.has(dt.HOURS)?p:p==null?void 0:p.map(Q=>{const ae=Q==null?void 0:Q[dt.START],j=Q==null?void 0:Q[dt.END],me=lu(ae,j);return ae&&j&&(Q[dt.HOURS]=`${me}天`),Q})},zi=(p,f,M=0)=>{if(M>((f==null?void 0:f.length)??""))return p;const O=f==null?void 0:f[M],V=new Map;for(const Q of p){const ae=Q[O];V.has(ae)||V.set(ae,[]),V.get(ae)&&V.get(ae).push(Q)}const N=[];for(const[Q,ae]of V){const[j,...me]=ae,Ce={...j};M+1===((f==null?void 0:f.length)??"")?Ce.children=ae==null?void 0:ae.map(Le=>(Le.level=I.cloneDeep(M)+1,Le)).filter((Le,Me)=>Me!==0):me.length>0&&(Ce.children=zi(me,f,M+1)),Ce.level=M,N.push(Ce)}return N},Mi=(p,f,M)=>{var V;if(!(f!=null&&f.contents)||((V=f==null?void 0:f.contents)==null?void 0:V.length)===0)return p;let O=[];return O=zi(p,f==null?void 0:f.contents,0),O},Oi=async(p,f)=>{var Da,la,Wa,sa,Ra,Na,ge,ba,ta,ce,E,Oe,xe,Qe,ca,ha,Oa,dl,Za,gl,bl,Rl,Ga,El,Ya,hl,Qa,vl,Tl,Dl,ur,Ll,wl,Nl,Yl,Ml,dr,pr,Gl,or,$r,ir,lr,nr,Li,Vi,$i;const M=p==null?void 0:p.filter(da=>(da==null?void 0:da.key)==="header");p==null||p.filter(da=>(da==null?void 0:da.key)==="tableIndexColumn")[0];const O=p==null?void 0:p.filter(da=>(da==null?void 0:da.key)==="childTree")[0];let V=!0;if((Wa=(la=(Da=p==null?void 0:p.find(da=>(da==null?void 0:da.key)==="filterAllType"))==null?void 0:Da.value)==null?void 0:la.find(da=>(da==null?void 0:da.value)==="onPamButtonContents"))!=null&&Wa.content){let da=(Na=(Ra=(sa=p==null?void 0:p.find(Bl=>(Bl==null?void 0:Bl.key)==="filterAllType"))==null?void 0:sa.value)==null?void 0:Ra.find(Bl=>(Bl==null?void 0:Bl.value)==="onPamButtonContents"))==null?void 0:Na.content;da=(ge=da==null?void 0:da.split(":"))==null?void 0:ge[1],da=(ba=da.slice(1,(da==null?void 0:da.length)-1))==null?void 0:ba.split(","),V=!!(da!=null&&da.find(Bl=>Bl==="操作"))}const N=p==null?void 0:p.find(da=>(da==null?void 0:da.key)==="page"),Q=p==null?void 0:p.find(da=>(da==null?void 0:da.key)==="rowButton"),ae=p==null?void 0:p.find(da=>(da==null?void 0:da.key)==="extraButton"),j=p==null?void 0:p.filter(da=>(da==null?void 0:da.key)==="tableContents"),me=p==null?void 0:p.filter(da=>(da==null?void 0:da.key)==="bottomButton"),Ce=p==null?void 0:p.filter(da=>(da==null?void 0:da.key)==="tableIndex");Be.value=(ce=(ta=p==null?void 0:p.filter(da=>(da==null?void 0:da.key)==="tableToForm"))==null?void 0:ta[0])==null?void 0:ce.contents,ka.value=(N==null?void 0:N.contents)??!0;let Le=[];Zl.value===""?Le=M==null?void 0:M[0]:Le=(M==null?void 0:M.find(da=>(da==null?void 0:da.selectLabel)==="("+Zl.value+")"))??(M==null?void 0:M.find(da=>!(da!=null&&da.selectLabel)));let Me=[];Zl.value===""?Me=Ce==null?void 0:Ce[0]:Me=(Ce==null?void 0:Ce.find(da=>(da==null?void 0:da.selectLabel)==="("+Zl.value+")"))??(Ce==null?void 0:Ce.find(da=>!(da!=null&&da.selectLabel)));let Ue=[],aa=[];if(((E=Le==null?void 0:Le.contents)==null?void 0:E.length)>0){let da=[],Bl=Le==null?void 0:Le.contents;if(Array.isArray(Bl==null?void 0:Bl[0])&&((Oe=Bl==null?void 0:Bl[0])!=null&&Oe.every(nl=>!(nl!=null&&nl.children)))&&(Bl=Bl==null?void 0:Bl[0]),Bl.some(nl=>Array.isArray(nl)&&(nl==null?void 0:nl.find(qe=>qe.children))))da=(xe=na.getGradeColumns(Bl,V))==null?void 0:xe[0],da!=null&&da.find(nl=>(nl==null?void 0:nl.label)==="操作")||da.push({label:"操作",prop:"operate",type:"operate"});else{let nl=Bl.some(qe=>Array.isArray(qe))?Bl==null?void 0:Bl[0]:Bl;nl!=null&&nl.find(qe=>(qe==null?void 0:qe.label)==="操作")||nl.push({label:"操作",prop:"operate",type:"operate"}),nl==null||nl.forEach((qe,Jl)=>{var Ar,Cr,zr,br,Zn,ht,vt,fr,yn,On,mt,Yr,In,ji,Hi,Ui,qi,Ki,Wi,Yi;if((Cr=(Ar=ga.value)==null?void 0:Ar.split("/"))==null||Cr.forEach(Ql=>{var sr,_n,Gi;Ql!==""&&((Gi=(_n=(sr=Ql==null?void 0:Ql.split(x+"updateLoading"))==null?void 0:sr[0])==null?void 0:_n.split(x+"loading"))==null||Gi[0])}),qe!=null&&qe.methodContent){let Ql=(Zn=(br=(zr=qe==null?void 0:qe.methodContent)==null?void 0:zr.replace("@","%%#"))==null?void 0:br.split("%%#"))==null?void 0:Zn[1];if(Ql=Ql==null?void 0:Ql.slice(0,(Ql==null?void 0:Ql.length)-1),Ql=na.contentTransArrayToAllNoExtra(Ql??"",","),(ht=Ql==null?void 0:Ql.find(sr=>sr==null?void 0:sr.includes("@Button")))!=null&&ht.includes("Prop")&&((vt=Ql==null?void 0:Ql.find(sr=>sr==null?void 0:sr.includes("Type")))!=null&&vt.includes("Manual"))){let sr=(yn=(fr=Ql==null?void 0:Ql.find(_n=>_n==null?void 0:_n.includes("@Button")))==null?void 0:fr.split(":"))==null?void 0:yn[1];sr=((Yr=(mt=(On=sr==null?void 0:sr.replaceAll("[",""))==null?void 0:On.replaceAll("]",""))==null?void 0:mt.split(","))==null?void 0:Yr[1])??"算法执行",Ue.push(sr)}else if((In=Ql==null?void 0:Ql.find(sr=>sr==null?void 0:sr.includes("@Button")))!=null&&In.includes("Row")&&((ji=Ql==null?void 0:Ql.find(sr=>sr==null?void 0:sr.includes("Type")))!=null&&ji.includes("Manual"))){let sr=(Ui=(Hi=Ql==null?void 0:Ql.find(_n=>_n==null?void 0:_n.includes("@Button")))==null?void 0:Hi.split(":"))==null?void 0:Ui[1];sr=((Wi=(Ki=(qi=sr==null?void 0:sr.replaceAll("[",""))==null?void 0:qi.replaceAll("]",""))==null?void 0:Ki.split(","))==null?void 0:Wi[1])??"算法执行",aa.push(sr)}}(Yi=Be.value)==null||Yi.find(Ql=>(Ql==null?void 0:Ql.prop)===(qe==null?void 0:qe.prop)),da.push({label:(qe==null?void 0:qe.label)==="操作"?V?"操作":"":(qe==null?void 0:qe.label)??"",prop:(qe==null?void 0:qe.label)==="操作"?"operate":(qe==null?void 0:qe.prop)??"a"+Jl,width:qe!=null&&qe.width?parseInt(qe.width):"",fixed:(qe==null?void 0:qe.fixed)??void 0,sortable:(qe==null?void 0:qe.sortable)??!1,filterable:(qe==null?void 0:qe.filterable)??!1,operable:(qe==null?void 0:qe.operable)??!1,showSummary:(qe==null?void 0:qe.showSummary)??!1,align:(qe==null?void 0:qe.align)??"left",showOverflowTooltip:(qe==null?void 0:qe.showOverflowTooltip)??!0,isNotDrag:(qe==null?void 0:qe.isNotDrag)??!1,isEditCol:(qe==null?void 0:qe.isEditCol)??!1,isOperate:(qe==null?void 0:qe.isOperate)??!1,id:(qe==null?void 0:qe.id)??Jl,type:(qe==null?void 0:qe.label)==="操作"?"operate":void 0,formType:(qe==null?void 0:qe.formType)??(qe!=null&&qe.groupSelect?"Select":""),disabled:qe==null?void 0:qe.disabled,options:(qe==null?void 0:qe.options)??[],value:(qe==null?void 0:qe.value)??"",isExistChild:(qe==null?void 0:qe.isExistChild)??!1,mainKey:(qe==null?void 0:qe.mainKey)??Jl===0,allSelectionContents:(qe==null?void 0:qe.allContents)??[],filterContent:qe==null?void 0:qe.filterContents,menus:qe==null?void 0:qe.menus,groups:qe==null?void 0:qe.groups,words:qe==null?void 0:qe.words,filter:qe==null?void 0:qe.filter,bindMenus:qe==null?void 0:qe.bindMenus,fatherPath:qe==null?void 0:qe.fatherPath,isMainPath:qe==null?void 0:qe.isMainPath,required:(qe==null?void 0:qe.required)??!1,relatedContents:qe==null?void 0:qe.relatedContents,functionName:qe==null?void 0:qe.functionName,functionRelatedWords:qe==null?void 0:qe.functionRelatedWords,calculatorFilter:qe==null?void 0:qe.calculatorFilter})})}k.value=(Qe=me==null?void 0:me[0])==null?void 0:Qe.contents;const an=na.getNewColumnChild(da),Ri=nl=>Array.isArray(nl)?nl.map(qe=>(Array.isArray(qe==null?void 0:qe.children)&&qe.children.length>0?(qe.sortable=!1,Ri(qe.children)):(qe==null?void 0:qe.prop)==="operate"||(qe==null?void 0:qe.label)==="操作"||(qe==null?void 0:qe.type)==="operate"||(qe.sortable=!1),qe)):nl;Ri(an),await Yt(an),Bf(ne.value,an),De.value=an,xa.value=an,n.value=(ca=De.value)==null?void 0:ca.map(nl=>nl==null?void 0:nl.label);let ln=(Oa=(ha=na.getAllLeafNodes(De.value))==null?void 0:ha.filter(nl=>(nl==null?void 0:nl.type)!=="operate"))==null?void 0:Oa.map((nl,qe)=>({prop:(nl==null?void 0:nl.prop)??"a"+qe,column:nl.label}));Br.value=ln;let Wr=[];Zl.value===""?Wr=j==null?void 0:j[0]:Wr=(j==null?void 0:j.find(nl=>(nl==null?void 0:nl.selectLabel)==="("+Zl.value+")"))??(j==null?void 0:j.find(nl=>!(nl!=null&&nl.selectLabel)));let Xn=Array.isArray((dl=Wr==null?void 0:Wr.contents)==null?void 0:dl[0])&&((Za=Wr==null?void 0:Wr.contents)!=null&&Za[0].every(nl=>Array.isArray(nl)))?(gl=Wr==null?void 0:Wr.contents)==null?void 0:gl[0]:Wr==null?void 0:Wr.contents;Me!=null&&Me.contents&&((bl=Me==null?void 0:Me.contents)==null?void 0:bl.length)!==0&&(Xn=(Rl=I.cloneDeep(Xn))==null?void 0:Rl.map((nl,qe)=>{if(!Array.isArray(nl)){let Jl={};for(let Ar in nl)Ar!=="id"&&Ar!=="index"&&(Jl[Ar]=nl[Ar]);nl=Object.values(Jl)}return nl}));const vu=!!((Ga=De.value)!=null&&Ga.find(nl=>nl.prop==="index"));Xn=Qs(Xn,Me==null?void 0:Me.contents,vu);const pt=[];Xn==null||Xn.forEach((nl,qe)=>{var Ar;let Jl={};if(Array.isArray(nl)){let Cr=[];nl==null||nl.filter(zr=>!(zr!=null&&zr.id)).forEach((zr,br)=>{var Zn,ht,vt,fr,yn,On;if((Zn=ln==null?void 0:ln[br])!=null&&Zn.prop&&!Array.isArray(zr)){let mt={};mt[ln[br].column]=zr,Ia!=null&&Ia.value&&((ht=Ia==null?void 0:Ia.value)==null?void 0:ht.length)>0&&((vt=Ia==null?void 0:Ia.value)!=null&&vt.find(Yr=>JSON.stringify(Yr==null?void 0:Yr[0])===JSON.stringify(mt)))&&(Cr=(fr=Ia==null?void 0:Ia.value)==null?void 0:fr.find(Yr=>JSON.stringify(Yr==null?void 0:Yr[0])===JSON.stringify(mt))),Cr&&Cr.length>0?Jl[ln[br].prop]=Cr!=null&&Cr.find(Yr=>{var In;return((In=Object.keys(Yr))==null?void 0:In[0])===ln[br].column})?(yn=Cr==null?void 0:Cr.find(Yr=>{var In;return((In=Object.keys(Yr))==null?void 0:In[0])===ln[br].column}))==null?void 0:yn[ln[br].column]:zr:Jl[ln[br].prop]=zr}else Array.isArray(zr)&&((On=ln[br])!=null&&On.prop?Jl[ln[br].prop]=zr:Jl.children=pi(zr,ln))})}else Jl=nl;if(Array.isArray(nl)&&nl.some(Cr=>Cr==null?void 0:Cr.id)){const Cr=(Ar=nl==null?void 0:nl.find(zr=>zr.id))==null?void 0:Ar.id;pt.push(Object.assign(Jl,{id:Qt(Cr)}))}else Jl.id?pt.push(Jl):pt.push(Object.assign(Jl,{id:qe.toString()}))});try{const nl=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),qe=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null"),Jl=nl==null?void 0:nl.tableId,Ar=nl==null?void 0:nl.compIndex;if(Jl&&Array.isArray(qe)&&qe.length>0&&String(Jl)===String(c==null?void 0:c.parentTableId)&&String(Ar)===String(c==null?void 0:c.index)){const Cr=new Set(pt.map(br=>String(br==null?void 0:br.id))),zr=qe.filter(br=>!Cr.has(String(br)));if(zr.length>0){const br=nl==null?void 0:nl.pageKey,Zn=br!=null&&br.startsWith("/")?br.substring(1):br;((f==null?void 0:f[br])||(f==null?void 0:f[Zn])||[]).filter(fr=>{var yn,On;return((yn=fr==null?void 0:fr.key)==null?void 0:yn.type)==="data"&&String((On=fr==null?void 0:fr.key)==null?void 0:On.tableId)===String(Jl)&&zr.includes(fr==null?void 0:fr.id)}).forEach(fr=>{var yn;Cr.has(String(fr==null?void 0:fr.id))||(pt.push({id:fr==null?void 0:fr.id,...((yn=fr==null?void 0:fr.value)==null?void 0:yn.tableData)||{}}),Cr.add(String(fr==null?void 0:fr.id)))})}}}catch{}let ft=null;try{const nl=`ocr_committed_temp_ids_v1:${String((c==null?void 0:c.parentTableId)??"")}:${String((c==null?void 0:c.index)??"")}`,qe=JSON.parse(sessionStorage.getItem(nl)||"null");Array.isArray(qe)&&qe.length>0&&(ft=new Set(qe.map(Jl=>String(Jl))))}catch{}const Pi=Array.from(((El=fe.value)==null?void 0:El.values())||[]).filter(nl=>!(!(nl!=null&&nl._isOCRRow&&(nl==null?void 0:nl._ocrTableId)===(c==null?void 0:c.index))||ft&&ft.has(String(nl==null?void 0:nl.id)))),mu=(we.value||[]).map(nl=>String(nl==null?void 0:nl.id)),Fi=it(pt,mu);if(we.value=Mi(Fi,O,De.value),Ca.value=Fi,(Ya=Ca.value)==null||Ya.forEach(nl=>{var qe;(qe=fe.value)==null||qe.set(nl.id,nl)}),ft&&ft.size>0)try{const nl=new Set(Array.from(ft.values()));we.value=(we.value||[]).filter(qe=>!nl.has(String(qe==null?void 0:qe.id))),Ca.value=(Ca.value||[]).filter(qe=>!nl.has(String(qe==null?void 0:qe.id))),nl.forEach(qe=>{var Jl,Ar;try{(Ar=(Jl=fe.value)==null?void 0:Jl.delete)==null||Ar.call(Jl,qe)}catch{}})}catch{}const to=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),li=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null");if(to&&Array.isArray(li)&&li.length>0&&String(to==null?void 0:to.compIndex)===String(c==null?void 0:c.index)){const nl=new Set((Ca.value||[]).map(qe=>String(qe==null?void 0:qe.id)));li.filter(qe=>!nl.has(String(qe)))}if(Pi.length>0){const nl=new Set((we.value||[]).map(Jl=>Jl==null?void 0:Jl.id)),qe=Pi.filter(Jl=>!nl.has(Jl.id));qe.length>0&&(we.value=[...we.value||[],...qe],Ca.value=[...Ca.value||[],...qe],qe.forEach(Jl=>{var Ar;return(Ar=fe.value)==null?void 0:Ar.set(Jl.id,Jl)}))}}else De.value=[],pe.value=[],we.value=[],Ca.value=[],fe.value=new Map;if(aa=[...new Set(aa)],aa=aa==null?void 0:aa.map(da=>({label:da,type:"methodButton"})),((hl=Q==null?void 0:Q.contents)==null?void 0:hl.length)>0?za.value=Q==null?void 0:Q.contents:za.value=[],za.value=[...za.value,...aa],Ue=[...new Set(Ue)],Ue=Ue==null?void 0:Ue.map(da=>({label:da,type:"methodButton"})),((Qa=ae==null?void 0:ae.contents)==null?void 0:Qa.length)>0)if((Dl=(Tl=(vl=p==null?void 0:p.find(da=>(da==null?void 0:da.key)==="filterAllType"))==null?void 0:vl.value)==null?void 0:Tl.find(da=>(da==null?void 0:da.value)==="onButtonContents"))!=null&&Dl.content){let da=(wl=(Ll=(ur=p==null?void 0:p.find(Bl=>(Bl==null?void 0:Bl.key)==="filterAllType"))==null?void 0:ur.value)==null?void 0:Ll.find(Bl=>(Bl==null?void 0:Bl.value)==="onButtonContents"))==null?void 0:wl.content;if(da=(Nl=da==null?void 0:da.split(":"))==null?void 0:Nl[1],da=(Yl=da.slice(1,(da==null?void 0:da.length)-1))==null?void 0:Yl.split(","),ua.value=(Ml=ae==null?void 0:ae.contents)==null?void 0:Ml.filter(Bl=>da==null?void 0:da.find(an=>an===(Bl==null?void 0:Bl.label))),_e.value=(dr=ae==null?void 0:ae.contents)==null?void 0:dr.filter(Bl=>da==null?void 0:da.find(an=>an===(Bl==null?void 0:Bl.label))),(pr=ae==null?void 0:ae.contents)!=null&&pr.some(Bl=>(Bl==null?void 0:Bl.label)==="OCR识别")&&!((Gl=ua.value)!=null&&Gl.some(Bl=>(Bl==null?void 0:Bl.label)==="OCR识别"))){const Bl=(or=ae==null?void 0:ae.contents)==null?void 0:or.find(an=>(an==null?void 0:an.label)==="OCR识别");ua.value=[...ua.value,Bl],_e.value=[..._e.value,Bl]}_.value=!!(da!=null&&da.find(Bl=>Bl==="搜索")),F.value=!!(da!=null&&da.find(Bl=>Bl==="块状显示"))}else ua.value=ae==null?void 0:ae.contents,_e.value=ae==null?void 0:ae.contents;else ua.value=[],_e.value=[];ua.value=[...ua.value,...Ue],_e.value=[..._e.value,...Ue],typeof ga.value=="string"&&ga.value==="设备管理/试验设备"&&(c==null?void 0:c.compName)==="设备列表"?(($r=ua.value)!=null&&$r.some(da=>(da==null?void 0:da.label)==="OCR识别")||(ua.value=[...ua.value||[],{label:"OCR识别"}]),(ir=_e.value)!=null&&ir.some(da=>(da==null?void 0:da.label)==="OCR识别")||(_e.value=[..._e.value||[],{label:"OCR识别"}])):(ua.value=(ua.value||[]).filter(da=>(da==null?void 0:da.label)!=="OCR识别"),_e.value=(_e.value||[]).filter(da=>(da==null?void 0:da.label)!=="OCR识别")),(lr=ua.value)!=null&&lr.some(da=>(da==null?void 0:da.label)==="切换视图")||(ua.value=[...ua.value||[],{label:"切换视图"}]),(nr=_e.value)!=null&&nr.some(da=>(da==null?void 0:da.label)==="切换视图")||(_e.value=[..._e.value||[],{label:"切换视图"}]),Fe.value=((Li=we==null?void 0:we.value)==null?void 0:Li.length)??0,Ai(we.value),Nr.value=we.value,Al.value&&(De.value=($i=(Vi=pe.value)==null?void 0:Vi.filter(da=>(da==null?void 0:da.label)!=="操作"))==null?void 0:$i.map(da=>{var Bl;return{...da,type:"edit",optionUrl:da!=null&&da.formMenuSelect&&((Bl=da==null?void 0:da.formMenuSelect)==null?void 0:Bl.length)>0?{groupSelect:da==null?void 0:da.groupSelect,menuSelect:da==null?void 0:da.formMenuSelect,selectRelateType:"",type:da==null?void 0:da.formType}:null}}),ai())};a.watch(()=>[c.itemData,Zl.value,Rn.value,An.value,Ia==null?void 0:Ia.value],async()=>{var p,f,M,O,V,N;if((p=c==null?void 0:c.itemData)!=null&&p.find(Q=>(Q==null?void 0:Q.key)==="columnPath")&&!((f=P.value)!=null&&f.find(Q=>{var ae,j;return(Q==null?void 0:Q.key)===((j=(ae=c==null?void 0:c.itemData)==null?void 0:ae.find(me=>(me==null?void 0:me.key)==="columnPath"))==null?void 0:j.contents)}))){let Q=P.value,ae={key:(O=(M=c==null?void 0:c.itemData)==null?void 0:M.find(j=>(j==null?void 0:j.key)==="columnPath"))==null?void 0:O.contents,value:(N=(V=c==null?void 0:c.itemData)==null?void 0:V.find(j=>(j==null?void 0:j.key)==="columnUsingPath"))==null?void 0:N.contents};Q!=null&&Q.find(j=>(j==null?void 0:j.key)===(ae==null?void 0:ae.key))?Q=Q==null?void 0:Q.map(j=>((j==null?void 0:j.key)===(ae==null?void 0:ae.key)&&(j.value=ae.value),j)):Q.push(ae),Ge.setTableViewContents(Q)}await Oi(c.itemData,c.allMapContents)},{deep:!0,immediate:!0}),a.watch(()=>c==null?void 0:c.operatingForm,p=>{p!=null&&p.form&&(Ot(p==null?void 0:p.form),$e.value=p==null?void 0:p.dialogTitle,Ea.value=!0,pa.value=!0)},{immediate:!0,deep:!0});const ru=()=>{var p;(p=A.value)!=null&&p.includes("read")&&(Al.value=!Al.value)},nu=()=>{cr.value=!cr.value};a.watch(()=>{var p;return(p=c==null?void 0:c.config)==null?void 0:p.viewport},p=>{var f;A.value=p,(p==null?void 0:p.length)===0?Al.value=!1:(p!=null&&p.includes("read")||(Al.value=!0),p!=null&&p.includes("edit")||(Al.value=!1)),S.value=((f=c==null?void 0:c.config)==null?void 0:f.showIndex)||Al.value},{immediate:!0}),a.watch(()=>Al.value,p=>{var f;p?(ai("viewChange"),Ge.setCacheUpdatingData(null)):(ua.value=_e.value,De.value=xa.value,R.value&&(Ge.setTableLoading(c==null?void 0:c.index),ze("change",R.value))),S.value=p||((f=c==null?void 0:c.config)==null?void 0:f.showIndex),ar.value=[]},{immediate:!0}),a.watch(()=>{var p;return(p=on.value)==null?void 0:p.length},p=>{p===0&&(be.currentPage=1)}),a.watch(()=>c==null?void 0:c.compNames,p=>{o.contents=[{label:"列表名",prop:"groupName",name:"列表名",type:"select",value:"",id:0,contents:p||[],width:1}]},{immediate:!0}),a.ref(!1);const tu=(p,f)=>{var M;ai("createClick"),f===be.pageSize&&(be.currentPage=Math.ceil(((M=we.value)==null?void 0:M.length)/be.pageSize))},ou=async(p,f,M)=>{var V,N,Q,ae,j;const O=(f==null?void 0:f.property)??(f==null?void 0:f.prop);if(O&&ro.includes(O)&&M!==void 0&&M!==null&&String(M).trim()!==""){const me=String(M).trim();if(await ei(me,p==null?void 0:p.id)){ll.ElMessage.warning("当前任务下通道号不能重复,请重新选择");const Le=(V=we.value)==null?void 0:V.findIndex(Ue=>(Ue==null?void 0:Ue.id)===(p==null?void 0:p.id)),Me=Le!==-1?(Q=(N=we.value)==null?void 0:N[Le])==null?void 0:Q[O]:void 0;O&&(p[O]=Me??"");return}}if(Al.value){const me=p==null?void 0:p.id;me!=null&&(b.value.has(me)||b.value.set(me,I.cloneDeep(p)),d.value.add(me));const Ce=(ae=we.value)==null?void 0:ae.findIndex(Le=>(Le==null?void 0:Le.id)===(p==null?void 0:p.id));Ce!==-1&&O&&(we.value[Ce]={...we.value[Ce],[O]:M}),no(M,p,f);return}no(M,p,f),Il.value=I.cloneDeep(p),Je.value=p==null?void 0:p.id,Fe.value=(j=we.value)==null?void 0:j.length,$e.value=p!=null&&p._isTemp?"新增":"编辑",Lt(!1)},iu=async()=>{var p,f;try{const M=[];if(c!=null&&c.related&&Array.isArray(c.related)&&(console.log("props.related",c.related),c.related.forEach(O=>{if(typeof O=="string"&&O.includes("content_")){const V=O.split("_")[1];V&&(M.push(`content_${V}`),M.push(`struct_${V}`))}})),M.length===0&&(c!=null&&c.itemData)){const O=(f=(p=c.itemData)==null?void 0:p.find(V=>(V==null?void 0:V.key)==="contentTableId"))==null?void 0:f.contents;O&&(M.push(`content_${O}`),M.push(`struct_${O}`))}return M}catch(M){return console.error("获取 tableNames 失败:",M),[]}},su=async(p,f,M)=>{var N,Q;if(!M||typeof M!="string"||M.trim()===""){const ae=(f==null?void 0:f.property)??(f==null?void 0:f.prop),j=`${p==null?void 0:p.id}:${ae}`;h.value.delete(j),y.value.set(j,!1);return}const O=(f==null?void 0:f.property)??(f==null?void 0:f.prop),V=`${p==null?void 0:p.id}:${O}`;y.value.set(V,!0);try{const ae=await iu();if(ae.length===0){console.warn("未找到同名表,跳过全局搜索"),h.value.delete(V),y.value.set(V,!1);return}const j=parseInt((N=Vl.value)==null?void 0:N.plat_id);if(!j){console.warn("platId 无效,跳过全局搜索"),h.value.delete(V),y.value.set(V,!1);return}const me=await I.getAllTables({platId:j,tableNames:ae}),Ce=((Q=me==null?void 0:me.data)==null?void 0:Q.result)||[],Le=[],Me=[];for(let Ue=0;Ue<Ce.length;Ue+=2)Ue+1<Ce.length&&Me.push([Ce[Ue],Ce[Ue+1]]);Me.forEach(([Ue,aa])=>{var Ra;if(!Array.isArray(Ue)||Ue.length===0||!Array.isArray(aa)||aa.length===0)return;const Va=aa[0];let Da=((Ra=Va==null?void 0:Va.结构)==null?void 0:Ra.contents)??[];if(!Array.isArray(Da)||Da.length===0)return;let la=I.cloneDeep(Da);if(Array.isArray(la==null?void 0:la[0])&&(la=na.getColumnChild(la[0])),!Array.isArray(la)||la.length===0||!la.some(Na=>(Na==null?void 0:Na.prop)===O))return;[...Ue].sort((Na,ge)=>{const ba=Number((Na==null?void 0:Na.update_time)??0);return Number((ge==null?void 0:ge.update_time)??0)-ba}).slice(0,20).forEach(Na=>{const ge=Na[O];if(ge!=null){const ba=String(ge);ba.toLowerCase().includes(M.toLowerCase())&&Le.findIndex(ce=>{var E;return Na.id&&((E=ce.rowData)==null?void 0:E.id)===Na.id?!0:ce.label===ba})===-1&&Le.push({label:ba,rowData:I.cloneDeep(Na),sourceTable:(Va==null?void 0:Va.source_table)||""})}})}),h.value.set(V,Le)}catch(ae){console.error("全局搜索建议失败:",ae),h.value.delete(V)}finally{y.value.set(V,!1)}},cu=(p,f,M)=>{if(!Al.value)return;const O=(f==null?void 0:f.property)??(f==null?void 0:f.prop),V=(f==null?void 0:f.formType)||(f==null?void 0:f.columnType)||"";if(V&&V.toUpperCase()!=="INPUT"&&V!=="")return;const N=`${p==null?void 0:p.id}:${O}`;if(v.has(N)&&clearTimeout(v.get(N)),!M||M.trim()===""){h.value.delete(N),y.value.set(N,!1);return}const Q=setTimeout(()=>{su(p,{prop:O,property:O},M),v.delete(N)},300);v.set(N,Q)};function uu(p,f){const M=`${p==null?void 0:p.id}:${(f==null?void 0:f.property)??(f==null?void 0:f.prop)}`;return h.value.get(M)||[]}const du=(p,f,M)=>{var Ce;if(!M||!M.rowData)return;const O=M.rowData,V=p==null?void 0:p.id,N=(f==null?void 0:f.property)??(f==null?void 0:f.prop),ae=(na.getAllLeafNodes(De.value)||[]).filter(Le=>(Le==null?void 0:Le.type)!=="operate"&&(Le==null?void 0:Le.label)!=="操作"&&(Le==null?void 0:Le.prop)!=="operate");ae.forEach(Le=>{const Me=Le==null?void 0:Le.prop;Me&&O[Me]!==void 0&&(p[Me]=O[Me])});const j=(Ce=we.value)==null?void 0:Ce.findIndex(Le=>(Le==null?void 0:Le.id)===V);j!==-1&&ae.forEach(Le=>{const Me=Le==null?void 0:Le.prop;Me&&O[Me]!==void 0&&(we.value[j][Me]=O[Me])}),V!=null&&(b.value.has(V)||b.value.set(V,I.cloneDeep(p)),d.value.add(V));const me=`${V}:${N}`;h.value.delete(me),y.value.set(me,!1),no(p[N],p,f)},Vr=p=>{var j,me,Ce,Le,Me,Ue,aa,Va,Da,la;const{row:f,column:M,item:O,slotData:V}=p;let N=f!=null&&f[M==null?void 0:M.prop]||(f==null?void 0:f[M==null?void 0:M.prop])===0?((me=(j=f==null?void 0:f[M==null?void 0:M.prop])==null?void 0:j[0])==null?void 0:me.contents)??((f==null?void 0:f[M==null?void 0:M.prop])===0?"0":f==null?void 0:f[M==null?void 0:M.prop]):((Le=(Ce=f==null?void 0:f[O==null?void 0:O.prop])==null?void 0:Ce[0])==null?void 0:Le.contents)??(f==null?void 0:f[O==null?void 0:O.prop])??((Ue=(Me=V==null?void 0:V[O==null?void 0:O.prop])==null?void 0:Me[0])==null?void 0:Ue.contents)??(V==null?void 0:V[O==null?void 0:O.prop])??((Da=(Va=f==null?void 0:f[(aa=O==null?void 0:O.child)==null?void 0:aa.prop])==null?void 0:Va[0])==null?void 0:Da.contents)??(f==null?void 0:f[(la=O==null?void 0:O.child)==null?void 0:la.prop]),ae=Array.isArray(N)&&!(N!=null&&N.every(Wa=>typeof Wa=="string"||typeof Wa=="number"))?"查看":N;if(ae=Array.isArray(ae)?ae.join(","):ae,(M==null?void 0:M.formType)==="Date")if(!ae||ae===""||ae===null||ae===void 0)ae="";else{const Wa=I.dayjs(ae,["YYYY-MM-DD","YYYY/MM/DD","YYYY年MM月DD日","YYYYMMDD"],!0);ae=Wa.isValid()?Wa.format("YYYYMMDD"):ae??""}return ae},pu=p=>{var me,Ce,Le,Me,Ue,aa,Va,Da,la,Wa;const{row:f,column:M,item:O,slotData:V}=p;let N=f!=null&&f[M==null?void 0:M.prop]?((Ce=(me=f==null?void 0:f[M==null?void 0:M.prop])==null?void 0:me[0])==null?void 0:Ce.contents)??(f==null?void 0:f[M==null?void 0:M.prop]):((Me=(Le=f==null?void 0:f[O==null?void 0:O.prop])==null?void 0:Le[0])==null?void 0:Me.contents)??(f==null?void 0:f[O==null?void 0:O.prop])??((aa=(Ue=V==null?void 0:V[O==null?void 0:O.prop])==null?void 0:Ue[0])==null?void 0:aa.contents)??(V==null?void 0:V[O==null?void 0:O.prop])??((la=(Da=f==null?void 0:f[(Va=O==null?void 0:O.child)==null?void 0:Va.prop])==null?void 0:Da[0])==null?void 0:la.contents)??(f==null?void 0:f[(Wa=O==null?void 0:O.child)==null?void 0:Wa.prop]);const ae=Array.isArray(N)&&!(N!=null&&N.every(sa=>typeof sa=="string"||typeof sa=="number")),j=Array.isArray(N)&&(N==null?void 0:N.find(sa=>sa==null?void 0:sa.url));return ae&&j},fu=p=>{var V,N;if(!(p!=null&&p.column))return!1;const f=ga.value==="试验任务/任务管理",M=(c==null?void 0:c.compName)==="任务列表",O=((V=p==null?void 0:p.column)==null?void 0:V.label)==="任务状态"||((N=p==null?void 0:p.column)==null?void 0:N.prop)==="任务状态";return f&&M&&O},hu=(p,f)=>p.find(M=>Object.values(M).some(O=>O===f));return a.watch(()=>Ae.value,async p=>{if(p){ea.setContentLoading(!0),await a.nextTick();const f=hu(we.value,p==null?void 0:p.data);if(!f)return ea.setContentLoading(!1);await vn(p==null?void 0:p.data,null,f,{data:p==null?void 0:p.data}),ea.setContentLoading(!1)}},{deep:!0,immediate:!0}),a.watch(()=>c==null?void 0:c.cacheNewData,p=>{var f;p&&(Array.isArray(p)?p.forEach(M=>{var O,V,N,Q,ae;if(换,String(M==null?void 0:M.compId)===String(c==null?void 0:c.index)&&(M!=null&&M.resId)&&((O=M==null?void 0:M.data)!=null&&O.id)){const j=(V=M==null?void 0:M.data)==null?void 0:V.id,me=M==null?void 0:M.resId;if(we.value=(N=we.value)==null?void 0:N.map(Ce=>{if((Ce==null?void 0:Ce.id)===j){const Le={...Ce,id:me};return delete Le._isOCRRow,delete Le._ocrTableId,Le}return Ce}),(ae=(Q=fe.value)==null?void 0:Q.has)!=null&&ae.call(Q,j)){const Le={...fe.value.get(j)||{},id:me};delete Le._isOCRRow,delete Le._ocrTableId,fe.value.delete(j),fe.value.set(me,Le)}Te(c==null?void 0:c.index,j,me)}}):String(p==null?void 0:p.compId)===String(c==null?void 0:c.index)&&(we.value=(f=we.value)==null?void 0:f.map(M=>{var O;if((M==null?void 0:M.id)===((O=p==null?void 0:p.data)==null?void 0:O.id)){const V={...M,id:p==null?void 0:p.resId};return delete V._isOCRRow,delete V._ocrTableId,V}return M})))},{immediate:!0,deep:!0}),(p,f)=>{var Wa,sa,Ra,Na;const M=a.resolveComponent("svg-icon"),O=a.resolveComponent("el-popover"),V=a.resolveComponent("el-switch"),N=a.resolveComponent("el-checkbox"),Q=a.resolveComponent("el-radio"),ae=a.resolveComponent("el-radio-group"),j=a.resolveComponent("el-checkbox-group"),me=a.resolveComponent("el-button"),Ce=a.resolveComponent("LookComponent"),Le=a.resolveComponent("el-icon"),Me=a.resolveComponent("el-progress"),Ue=a.resolveComponent("el-alert"),aa=a.resolveComponent("el-table-column"),Va=a.resolveComponent("el-table"),Da=a.resolveComponent("el-upload"),la=a.resolveComponent("el-text");return a.openBlock(),a.createElementBlock("div",p0,[Or.value?(a.openBlock(),a.createBlock(pl.ssTable,{id:"excel-table",pageObj:be,showIndex:S.value,isTree:(Wa=l.compItem)==null?void 0:Wa.isTree,summaryInfo:G,columns:De.value,defaultSort:X,isCardViewport:cr.value,checkedColumns:n.value,key:gn.value+De.value,tableData:on.value,isEditViewport:Al.value,isShowPagination:ka.value,isShowEdit:!1,isShowDelete:!1,allowSelect:w.value,onDbClickRow:Yn,extraButton:ua.value,rowButton:za.value,cacheExtraButtons:_e.value,isClearSelection:((sa=ar.value)==null?void 0:sa.length)===0,onDoCurrentChange:Dt,onDoSizeChange:zo,onSortChange:Mo,onContentClick:vn,onRowClick:Mt,onSelectChange:Po,onCellChange:ou,onCellInput:cu,onSelectSuggest:du,onChange:no,onPreview:Xt,onSubmitEditingTable:Kt,onHandleColEditChange:Ut,onHandleColTypeChange:Ir,onClickButton:Zo,onAddNewRow:Vo,bottomButton:k.value},a.createSlots({headerButton:a.withCtx(ge=>{var ba,ta;return[l.showHeader?(a.openBlock(),a.createBlock(Hp,{key:0,id:"tableHeaderButton",pageLayout:l.pageLayout,lockingPage:a.unref(ie)===a.unref(ga),filterValues:Uo.value,selectNums:(ba=ar.value)==null?void 0:ba.length,dataNums:(ta=we.value)==null?void 0:ta.length,compName:l.compName,isDevMode:l.isDevMode,buttons:ge.buttons,onButtonClick:f[1]||(f[1]=(ce,E,Oe)=>Zo(ce,E,{extra:Oe})),columns:De.value,onFilter:eo,onGetImportData:Io,level:l.level,filterShow:_.value},null,8,["pageLayout","lockingPage","filterValues","selectNums","dataNums","compName","isDevMode","buttons","columns","level","filterShow"])):a.createCommentVNode("",!0)]}),viewport:a.withCtx(()=>{var ge,ba,ta,ce;return[((ge=we.value)==null?void 0:ge.length)>0&&l.allowOperate&&F.value?(a.openBlock(),a.createElementBlock("div",v0,[(ba=A.value)!=null&&ba.includes("read")&&((ta=A.value)!=null&&ta.includes("edit"))&&((ce=za.value)!=null&&ce.some(E=>(E==null?void 0:E.label)==="编辑"))&&!cr.value&&a.unref(ie)!==a.unref(ga)?(a.openBlock(),a.createElementBlock("span",{key:0,title:"编辑表格",onClick:ru},[a.createVNode(M,{name:"editTable",class:"view-icon"})])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)]}),rowCreate:a.withCtx(({row:ge,index:ba})=>[a.createElementVNode("span",{title:"新增",class:"row-create-wrap",onClick:ta=>tu(ge,ba)},[a.createVNode(M,{name:"rowCreate",style:{width:"10px",height:"10px"}})],8,m0)]),operateCol:a.withCtx(()=>[a.createVNode(O,{title:"选择显示列信息",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:Zc},{reference:a.withCtx(()=>[a.createElementVNode("span",y0,[a.createVNode(M,{name:"operate",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),default:a.withCtx(()=>[a.createElementVNode("div",g0,[f[21]||(f[21]=a.createElementVNode("div",{class:"group-title"},"表格操作",-1)),a.createVNode(V,{"model-value":g.value,"active-text":"排序","inactive-text":"",style:{"margin-right":"8px"},onChange:f[2]||(f[2]=ge=>Gt(ge))},null,8,["model-value"]),f[22]||(f[22]=a.createElementVNode("div",{class:"group-title"},"表格列操作",-1)),a.createVNode(j,{modelValue:n.value,"onUpdate:modelValue":f[3]||(f[3]=ge=>n.value=ge),style:{height:"100%"},min:2,ref_key:"checkboxGroupRef",ref:s},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Qr.value,ge=>(a.openBlock(),a.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:ge.label},[a.createVNode(N,{value:ge.label,style:{width:"100%",marginRight:0}},{default:a.withCtx(()=>[a.createElementVNode("span",{title:ge.label,style:{display:"inline-block",width:"250px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},a.toDisplayString(ge.label),9,b0)]),_:2},1032,["value"]),a.createVNode(O,{"popper-class":"col-operate-popover",title:"列操作",placement:"left",teleported:!1,trigger:"hover"},{reference:a.withCtx(()=>[a.createVNode(M,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:a.withCtx(()=>{var ba;return[a.createElementVNode("div",k0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((ba=Object.keys(ge))==null?void 0:ba.filter(ta=>{var ce;return(ce=J.value)==null?void 0:ce.find(E=>(E==null?void 0:E.value)===ta)}),ta=>{var ce,E;return a.openBlock(),a.createElementBlock("div",{key:ta},[T[ta]=="radio"?(a.openBlock(),a.createElementBlock("div",x0,[f[20]||(f[20]=a.createElementVNode("div",null,"固定:",-1)),a.createVNode(ae,{"model-value":ge==null?void 0:ge[ta],onChange:Oe=>Hn(Oe,ta,ge)},{default:a.withCtx(()=>{var Oe,xe;return[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((xe=(Oe=J.value)==null?void 0:Oe.find(Qe=>(Qe==null?void 0:Qe.value)===ta))==null?void 0:xe.options,Qe=>(a.openBlock(),a.createBlock(Q,{key:Qe==null?void 0:Qe.value,label:Qe==null?void 0:Qe.value,value:Qe==null?void 0:Qe.value},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(Qe==null?void 0:Qe.label),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["model-value","onChange"])])):a.createCommentVNode("",!0),T[ta]=="switch"?(a.openBlock(),a.createBlock(V,{key:1,"model-value":ge==null?void 0:ge[ta],"active-text":(E=(ce=J.value)==null?void 0:ce.find(Oe=>(Oe==null?void 0:Oe.value)===ta))==null?void 0:E.label,onChange:Oe=>Hn(Oe,ta,ge)},null,8,["model-value","active-text","onChange"])):a.createCommentVNode("",!0)])}),128))])]}),_:2},1024),a.createElementVNode("span",_0,[a.createVNode(M,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:1},8,["modelValue"])])]),_:1})]),content:a.withCtx(ge=>{var ba,ta,ce,E,Oe,xe,Qe,ca,ha,Oa,dl,Za,gl,bl,Rl,Ga,El,Ya,hl,Qa;return[((ba=ge==null?void 0:ge.column)==null?void 0:ba.label)==="证书附件"||((ta=ge==null?void 0:ge.column)==null?void 0:ta.prop)==="证书附件"?(a.openBlock(),a.createElementBlock("div",w0,[a.createVNode(M,{name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:a.withModifiers(vl=>en(ge),["stop"]),title:"查看OCR图片"},null,8,["onClick"])])):pu(ge)?(a.openBlock(),a.createBlock(O,{key:1,"popper-class":"file-popover",placement:"right",trigger:"hover",effect:"light",width:"auto"},{reference:a.withCtx(()=>[a.createElementVNode("span",C0,a.toDisplayString(Vr(ge)),1)]),default:a.withCtx(()=>{var vl,Tl;return[a.createElementVNode("div",E0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((Tl=ge==null?void 0:ge.row)==null?void 0:Tl[(vl=ge==null?void 0:ge.column)==null?void 0:vl.prop],Dl=>(a.openBlock(),a.createElementBlock("div",S0,[a.createElementVNode("div",{class:"prop-url",title:qn(Dl),onClick:ur=>st(Dl)},a.toDisplayString(qn(Dl)),9,D0),a.createElementVNode("div",{class:"prop-download",onClick:ur=>jo(Dl)}," 下载 ",8,B0)]))),256))])]}),_:2},1024)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[fu(ge)?(a.openBlock(),a.createBlock(Su,{key:0,value:Vr(ge)},null,8,["value"])):(a.openBlock(),a.createElementBlock("div",{key:1,class:"table-cell-content",style:a.normalizeStyle({color:!Array.isArray(Vr(ge))&&((E=(ce=Vr(ge))==null?void 0:ce.toString())!=null&&E.includes(".txt")||(xe=(Oe=Vr(ge))==null?void 0:Oe.toString())!=null&&xe.includes(".cpt")||(ca=(Qe=Vr(ge))==null?void 0:Qe.toString())!=null&&ca.includes(".cyd"))?"var(--vertical-menuitem-active-bg)":"",textDecoration:!Array.isArray(Vr(ge))&&((Oa=(ha=Vr(ge))==null?void 0:ha.toString())!=null&&Oa.includes(".txt")||(Za=(dl=Vr(ge))==null?void 0:dl.toString())!=null&&Za.includes(".cpt")||(bl=(gl=Vr(ge))==null?void 0:gl.toString())!=null&&bl.includes(".cyd"))?"underline":"",cursor:!Array.isArray(Vr(ge))&&((Ga=(Rl=Vr(ge))==null?void 0:Rl.toString())!=null&&Ga.includes(".txt")||(Ya=(El=Vr(ge))==null?void 0:El.toString())!=null&&Ya.includes(".cpt")||(Qa=(hl=Vr(ge))==null?void 0:hl.toString())!=null&&Qa.includes(".cyd"))?"pointer":"",marginLeft:(ge==null?void 0:ge.colIndex)===0?`${((ge==null?void 0:ge.level)??0)*20}px`:0}),onClick:vl=>Fn(Vr(ge))},a.toDisplayString(Vr(ge)===0?"0":Vr(ge)),13,N0))],64))]}),_:2},[((Ra=za.value)==null?void 0:Ra.length)>0?{name:"actions",fn:a.withCtx(({item:ge,fIndex:ba})=>[a.createVNode(O,{title:"",placement:"left-start","popper-class":"menu-operate-popover"},{reference:a.withCtx(()=>[a.createVNode(M,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"},onClick:f[0]||(f[0]=a.withModifiers(()=>{},["stop"]))})]),default:a.withCtx(()=>[a.createElementVNode("div",f0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(zt(za.value,ge),(ta,ce)=>(a.openBlock(),a.createElementBlock("div",{class:"menu-config-item",key:ce,onClick:a.withModifiers(E=>Zo(ta==null?void 0:ta.label,ge,{extra:ta}),["stop"])},[a.createElementVNode("div",{style:a.normalizeStyle({color:ta==null?void 0:ta.textColor}),class:"extra-button-label"},a.toDisplayString(ta==null?void 0:ta.label),5)],8,h0))),128))])]),_:2},1024)]),key:"0"}:void 0]),1032,["pageObj","showIndex","isTree","summaryInfo","columns","defaultSort","isCardViewport","checkedColumns","tableData","isEditViewport","isShowPagination","allowSelect","extraButton","rowButton","cacheExtraButtons","isClearSelection","bottomButton"])):a.createCommentVNode("",!0),Al.value?(a.openBlock(),a.createElementBlock("div",T0,[a.createVNode(me,{id:"themeBorderButton",onClick:Ro},{default:a.withCtx(()=>f[23]||(f[23]=[a.createTextVNode("取消")])),_:1,__:[23]}),a.createVNode(me,{class:"ok-button",id:"themeButton",onClick:Nt},{default:a.withCtx(()=>f[24]||(f[24]=[a.createTextVNode("保存")])),_:1,__:[24]})])):a.createCommentVNode("",!0),a.createVNode(vr.ssDialog,{title:$e.value,visible:pa.value,width:Hl.value,onBeforeDestroy:Jt,style:{height:"74%"}},{default:a.withCtx(()=>[a.createElementVNode("div",A0,[a.createVNode(pl.ssForm,{ref_key:"formRef",ref:re,rowContents:Z.value,showOperator:!1,onChange:Qc,isEnableWrap:!1,onFixChangeValue:Ho,onClickTrigger:Un,isEdit:Ze.value,onBlurChange:Wt,onCreate:ot,onTagChange:Sn},null,8,["rowContents","isEdit"])])]),footer:a.withCtx(()=>[Ea.value?(a.openBlock(),a.createElementBlock("div",z0,[a.createVNode(me,{onClick:f[4]||(f[4]=ge=>pa.value=!1),id:"themeBorderButton"},{default:a.withCtx(()=>f[25]||(f[25]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[25]}),a.createVNode(me,{class:"ok-button",onClick:f[5]||(f[5]=ge=>Lt(!0)),id:"themeButton"},{default:a.withCtx(()=>f[26]||(f[26]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[26]})])):a.createCommentVNode("",!0)]),_:1},8,["title","visible","width"]),a.createVNode(vr.ssDialog,{title:$e.value,visible:K.value,width:je.value,onBeforeDestroy:f[7]||(f[7]=ge=>K.value=!1)},{default:a.withCtx(()=>[a.createVNode(lf)]),footer:a.withCtx(()=>[a.createElementVNode("div",M0,[a.createVNode(me,{onClick:f[6]||(f[6]=ge=>K.value=!1),class:"cancel-button",id:"themeBorderButton"},{default:a.withCtx(()=>f[27]||(f[27]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[27]}),a.createVNode(me,{class:"ok-button",onClick:qo,id:"themeButton"},{default:a.withCtx(()=>f[28]||(f[28]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[28]})])]),_:1},8,["title","visible","width"]),Ha.value?(a.openBlock(),a.createBlock(pl.ssFilePreview,{key:2,fileDataList:ee.value,onDestroy:ao},null,8,["fileDataList"])):a.createCommentVNode("",!0),Ke.value?(a.openBlock(),a.createBlock(vr.ssDialog,{key:3,visible:Ke.value,onBeforeDestroy:Jc,style:{height:"80vh",width:"80vw"},"body-class":"three-dialog-body","footer-class":"three-dialog-footer"},{default:a.withCtx(()=>[a.createVNode(bo.ThreeViewerHost,{files:Ye.value,threeData:te.value},null,8,["files","threeData"])]),_:1},8,["visible"])):a.createCommentVNode("",!0),a.createVNode(vr.ssDialog,{visible:p.componentVisible,onBeforeDestroy:f[8]||(f[8]=ge=>p.componentVisible=!1),width:je.value,style:{height:"70vh"}},{default:a.withCtx(()=>[a.createVNode(Ce,{dialogItem:kn.value},null,8,["dialogItem"])]),_:1},8,["visible","width"]),a.createVNode(vr.ssDialog,{title:"OCR扫描录入",visible:il.value,"close-on-click-modal":!1,onBeforeDestroy:Cl,width:"1000px",dialogHeight:700,minWidth:900,minHeight:600,class:"ocr-upload-dialog",resizable:!0},{default:a.withCtx(()=>[f[39]||(f[39]=a.createElementVNode("div",{class:"ocr-header-bg"},null,-1)),a.createElementVNode("div",O0,[a.createElementVNode("div",I0,[a.createElementVNode("div",{class:a.normalizeClass(["ocr-step-item",{active:ue.value===1}])},f[29]||(f[29]=[a.createElementVNode("div",{class:"step-circle"},"1",-1),a.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件识别",-1)]),2),f[32]||(f[32]=a.createElementVNode("div",{class:"ocr-step-connector"},null,-1)),a.createElementVNode("div",{class:a.normalizeClass(["ocr-step-item",{active:ue.value===2}])},f[30]||(f[30]=[a.createElementVNode("div",{class:"step-circle"},"2",-1),a.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件确认",-1)]),2),f[33]||(f[33]=a.createElementVNode("div",{class:"ocr-step-connector"},null,-1)),a.createElementVNode("div",{class:a.normalizeClass(["ocr-step-item",{active:ue.value===3}])},f[31]||(f[31]=[a.createElementVNode("div",{class:"step-circle"},"3",-1),a.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件提交",-1)]),2)]),ue.value===1?(a.openBlock(),a.createElementBlock("div",L0,[a.createVNode(me,{onClick:Xo,class:"ocr-action-btn",disabled:ma.value,size:"default"},{default:a.withCtx(()=>f[34]||(f[34]=[a.createTextVNode("扫描文件 ")])),_:1,__:[34]},8,["disabled"]),a.createVNode(me,{onClick:Lr,class:"ocr-action-btn",disabled:ma.value,size:"default"},{default:a.withCtx(()=>f[35]||(f[35]=[a.createTextVNode("上传文件 ")])),_:1,__:[35]},8,["disabled"])])):a.createCommentVNode("",!0),ue.value===1?(a.openBlock(),a.createElementBlock("div",V0,[a.createElementVNode("div",$0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(wa.value,(ge,ba)=>{var ta;return a.openBlock(),a.createElementBlock("div",{key:ba,class:"ocr-file-item"},[a.createElementVNode("div",R0,[ge.raw&&((ta=ge.raw.type)!=null&&ta.startsWith("image/"))?(a.openBlock(),a.createElementBlock("img",{key:0,src:_l(ge),alt:"预览",class:"thumbnail-image"},null,8,P0)):(a.openBlock(),a.createElementBlock("div",F0,[a.createVNode(Le,{size:40},{default:a.withCtx(()=>[a.createVNode(a.unref(ll.document_default))]),_:1})])),a.createElementVNode("div",{class:a.normalizeClass(["file-progress-ring",{uploading:yl(ge)==="uploading",processing:yl(ge)==="processing",completed:yl(ge)==="completed"||yl(ge)==="uploaded",failed:yl(ge)==="failed"}])},[(a.openBlock(),a.createElementBlock("svg",j0,[f[36]||(f[36]=a.createElementVNode("circle",{class:"progress-ring-bg",cx:"18",cy:"18",r:"16",fill:"none",stroke:"#e4e7ed","stroke-width":"2"},null,-1)),a.createElementVNode("circle",{class:a.normalizeClass(["progress-ring-fill",{completed:yl(ge)==="completed"||yl(ge)==="uploaded",uploading:yl(ge)==="uploading",processing:yl(ge)==="processing",failed:yl(ge)==="failed"}]),cx:"18",cy:"18",r:"16",fill:"none",stroke:yl(ge)==="failed"?"#f56c6c":yl(ge)==="completed"||yl(ge)==="uploaded"?"#67c23a":"#409eff","stroke-width":yl(ge)==="completed"||yl(ge)==="uploaded"||yl(ge)==="failed"?3:2,"stroke-dasharray":Ol(ge),"stroke-dashoffset":"0","stroke-linecap":"round",transform:"rotate(-90 18 18)"},null,10,H0)])),yl(ge)==="completed"||yl(ge)==="uploaded"?(a.openBlock(),a.createElementBlock("div",U0,[a.createVNode(Le,{class:"check-icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(ll.check_default))]),_:1})])):a.createCommentVNode("",!0),yl(ge)==="failed"?(a.openBlock(),a.createElementBlock("div",q0,[a.createVNode(Le,{class:"error-icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(ll.close_default))]),_:1})])):a.createCommentVNode("",!0)],2),a.createElementVNode("div",{class:"file-delete-btn",onClick:ce=>Jn(ba)},[a.createVNode(Le,null,{default:a.withCtx(()=>[a.createVNode(a.unref(ll.close_default))]),_:1})],8,K0)]),a.createElementVNode("div",W0,a.toDisplayString(ge.name||"文件名123"),1)])}),128))]),wa.value.length>0?(a.openBlock(),a.createElementBlock("div",Y0,[a.createVNode(me,{onClick:Ve,class:"ocr-start-recognize-btn",disabled:ma.value||wa.value.length===0,size:"default"},{default:a.withCtx(()=>f[37]||(f[37]=[a.createTextVNode("开始识别 ")])),_:1,__:[37]},8,["disabled"])])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),ue.value===1?(a.openBlock(),a.createElementBlock("div",G0,[a.createVNode(Me,{percentage:Ee.value,"stroke-width":8},null,8,["percentage"])])):a.createCommentVNode("",!0),ue.value===2?(a.openBlock(),a.createElementBlock("div",J0,[a.createElementVNode("div",X0,[a.createVNode(Ue,{title:"请核对识别结果。",type:"info",closable:!1,"show-icon":""})]),a.createElementVNode("div",Z0,[a.createVNode(Va,{data:Ua.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:a.withCtx(()=>[a.createVNode(aa,{type:"index",label:"序号",width:"60",fixed:""}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(ve.value,ge=>(a.openBlock(),a.createBlock(aa,{key:ge.prop,prop:ge.prop,"min-width":ge.minWidth||230,"class-name":ge.isAccuracy?"accuracy-column":""},{header:a.withCtx(()=>[a.createElementVNode("div",Q0,[a.createElementVNode("span",null,a.toDisplayString(ge.label),1)])]),default:a.withCtx(({row:ba,$index:ta})=>{var ce,E,Oe;return[ge.isAccuracy?(a.openBlock(),a.createElementBlock("span",{key:0,class:"accuracy-value",style:a.normalizeStyle({color:rl(ba[ge.prop]),fontWeight:500})},a.toDisplayString(tl(ba[ge.prop])),5)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[al.value!==ta?(a.openBlock(),a.createElementBlock("span",e3,a.toDisplayString(ba[ge.prop]),1)):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(Xa(ge.prop)),{key:1,modelValue:ba[ge.prop],"onUpdate:modelValue":xe=>ba[ge.prop]=xe,size:"small",placeholder:"请输入"+ge.label,content:((ce=fl(ge.prop))==null?void 0:ce.contents)??((E=fl(ge.prop))==null?void 0:E.options)??[],optionUrl:(Oe=fl(ge.prop))==null?void 0:Oe.optionUrl,onChange:xe=>Ta(ta,ge.prop,xe),onFocus:xe=>cl.value=ge.prop,onBlur:f[9]||(f[9]=xe=>cl.value="")},null,40,["modelValue","onUpdate:modelValue","placeholder","content","optionUrl","onChange","onFocus"]))],64))]}),_:2},1032,["prop","min-width","class-name"]))),128)),a.createVNode(aa,{label:"编辑",width:"80",fixed:"right"},{default:a.withCtx(({$index:ge})=>[al.value===ge?(a.openBlock(),a.createBlock(Le,{key:0,class:"ocr-edit-icon editing",style:{"margin-left":"12px"},onClick:a.withModifiers(ba=>sl(ge),["stop"])},{default:a.withCtx(()=>[a.createVNode(a.unref(ll.check_default))]),_:2},1032,["onClick"])):(a.openBlock(),a.createBlock(M,{key:1,name:"edit_101",class:"ocr-edit-icon",onClick:a.withModifiers(ba=>sl(ge),["stop"])},null,8,["onClick"]))]),_:1})]),_:1},8,["data"])])])):a.createCommentVNode("",!0),ue.value===3?(a.openBlock(),a.createElementBlock("div",a3,[a.createVNode(Le,{size:"32",class:"ocr-success-icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(ll.check_default))]),_:1}),f[38]||(f[38]=a.createElementVNode("div",{class:"ocr-success-text"},"文件提交成功",-1))])):a.createCommentVNode("",!0)]),a.createVNode(Da,{ref:"ocrUploadRef","file-list":wa.value,"onUpdate:fileList":f[10]||(f[10]=ge=>wa.value=ge),multiple:"",action:"","auto-upload":!1,limit:20,accept:"image/*,application/pdf","on-change":W,"show-file-list":!1,class:"ocr-upload-input",style:{display:"none"}},null,8,["file-list"])]),footer:a.withCtx(()=>[ue.value!==3?(a.openBlock(),a.createElementBlock("div",l3,[a.createVNode(me,{onClick:mr,class:"ocr-start-recognize-btn",disabled:ue.value===1||ma.value},{default:a.withCtx(()=>f[40]||(f[40]=[a.createTextVNode(" 上一步 ")])),_:1,__:[40]},8,["disabled"]),a.createVNode(me,{onClick:Fr,class:"ocr-start-recognize-btn",disabled:ma.value},{default:a.withCtx(()=>f[41]||(f[41]=[a.createTextVNode(" 下一步 ")])),_:1,__:[41]},8,["disabled"])])):a.createCommentVNode("",!0)]),_:1},8,["visible"]),a.createVNode(xf,{visible:ut.value,onConfirm:i,onCancel:f[11]||(f[11]=ge=>ut.value=!1)},null,8,["visible"]),a.createVNode(id,{visible:oa.value,"onUpdate:visible":f[12]||(f[12]=ge=>oa.value=ge),versions:va.value},null,8,["visible","versions"]),a.createVNode(Wu,{visible:ul.value,"onUpdate:visible":f[13]||(f[13]=ge=>ul.value=ge),images:Wl.value,"default-image-name":Kl.value,"field-meta":al.value!==null?((Na=Ua.value[al.value])==null?void 0:Na.__ocrFieldMeta)||{}:{},"focused-field-name":cl.value,onClose:f[14]||(f[14]=ge=>ul.value=!1),class:"ocr-img-preview-dialog"},null,8,["visible","images","default-image-name","field-meta","focused-field-name"]),a.createVNode(kd,{visible:Fl.value,"onUpdate:visible":f[15]||(f[15]=ge=>Fl.value=ge),candidates:Ul.value,"name-prop":un.value,"mfr-prop":Jr.value,columns:De.value,onSubmit:tn,onPreviewFile:mn},null,8,["visible","candidates","name-prop","mfr-prop","columns"]),a.createVNode(Dd,{visible:Ba.value,"onUpdate:visible":f[16]||(f[16]=ge=>Ba.value=ge),ocrPreviewData:Ua.value,"onUpdate:ocrPreviewData":f[17]||(f[17]=ge=>Ua.value=ge),ocrSelectedFields:ol.value,"onUpdate:ocrSelectedFields":f[18]||(f[18]=ge=>ol.value=ge),ocrPreviewColumns:ve.value,onConfirm:Xe,onFieldChange:f[19]||(f[19]=({rowIndex:ge,prop:ba,value:ta})=>Ta(ge,ba,ta))},null,8,["visible","ocrPreviewData","ocrSelectedFields","ocrPreviewColumns"]),a.createVNode(vr.ssDialog,{title:o.title,visible:o.show,width:o.width,onBeforeDestroy:L},{default:a.withCtx(()=>[a.createElementVNode("div",r3,[a.createVNode(pl.ssForm,{rowContents:o==null?void 0:o.contents,formRules:o==null?void 0:o.formRules,showOperator:!1,buttonValue:o.buttonValue,isEdit:Ze.value,isStartJustify:!1,onOnButtonClick:U},null,8,["rowContents","formRules","buttonValue","isEdit"])])]),_:1},8,["title","visible","width"]),a.createVNode(vr.ssDialog,{title:u.title,visible:u.show,width:u.width,alignCenter:!0,onBeforeDestroy:m},{header:a.withCtx(()=>[a.createVNode(la,{size:"small",type:"danger",style:{width:"100%"}},{default:a.withCtx(()=>f[42]||(f[42]=[a.createTextVNode("(选择【覆盖】,可能会影响到原数据的引用关系;选择【取消】将会放弃重复数据的导入。请谨慎操作!)")])),_:1,__:[42]})]),footer:a.withCtx(()=>[a.createElementVNode("div",n3,[a.createVNode(la,{size:"small",style:{width:"100%","text-align":"left"},type:"info"},{default:a.withCtx(()=>[a.createTextVNode("引用模块:"+a.toDisplayString(zn.value||"暂无"),1)]),_:1}),a.createElementVNode("div",t3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(u==null?void 0:u.buttonValue,ge=>(a.openBlock(),a.createBlock(me,{key:ge==null?void 0:ge.label,style:a.normalizeStyle({background:ge==null?void 0:ge.background,color:ge==null?void 0:ge.color}),onClick:ba=>C(ge==null?void 0:ge.value)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(ge==null?void 0:ge.label),1)]),_:2},1032,["style","onClick"]))),128))])])]),default:a.withCtx(()=>[a.createVNode(Up,{columns:u==null?void 0:u.columns,tableData:u==null?void 0:u.tableData},{content:a.withCtx(({row:ge,item:ba,slotData:ta,scope:ce,column:E,columnProp:Oe,$index:xe})=>[a.createTextVNode(a.toDisplayString((ge==null?void 0:ge[(E==null?void 0:E.prop)||(E==null?void 0:E.label)])||(ta==null?void 0:ta[E==null?void 0:E.property])),1)]),_:1},8,["columns","tableData"])]),_:1},8,["title","visible","width"])])}}},mc=ql._export_sfc(i3,[["__scopeId","data-v-4ea1373f"]]),s3={class:"static-form-card"},c3={key:0,class:"static-form-body"},u3=["onClick"],d3={key:1},p3=a.defineComponent({__name:"index",props:{itemData:{default:()=>[]},fields:{default:()=>[]},compName:{default:""},title:{default:""},disabled:{type:Boolean,default:!1},textSize:{default:void 0},textColor:{default:void 0}},setup(l){const r=l,n=S=>{switch(S){case"占用":return"warning";case"注销":return"info";case"损坏":return"danger";case"可用":return"success";default:return""}},t=a.computed(()=>{var H;const S=(H=r.itemData)==null?void 0:H.find(k=>(k==null?void 0:k.key)==="formContent"),A=(S==null?void 0:S.contents)||[];return(r.fields&&r.fields.length>0?r.fields:A).filter(k=>!(k!=null&&k.isFormColHidden)&&(k==null?void 0:k.label)).map(k=>{let T=k==null?void 0:k.value;Array.isArray(T)&&(T=T.map(z=>z==null?"":typeof z=="object"?z.label??z.value??z.name??JSON.stringify(z):String(z)).filter(Boolean).join(",")),T!=null&&typeof T=="object"&&(T=T.label??T.value??T.name??JSON.stringify(T));const J=k.label??"",D=T==null||T===""?"-":String(T),$=J==="使用状态";return{label:J,value:D,isStatus:$,tagType:$?n(D):"",width:k.width??1,field:k}})}),s=a.ref(null),d=S=>{if(Array.isArray(S)&&S.length>=3){const[A,_,H,k]=S;return k!==void 0?`rgba(${A}, ${_}, ${H}, ${k})`:`rgb(${A}, ${_}, ${H})`}if(typeof S=="string"){const A=S.trim();if(A.startsWith("[")&&A.endsWith("]")){const _=A.slice(1,-1).split(",").map(H=>Number(H.trim()));if(_.length>=3&&_.every(H=>!Number.isNaN(H))){const[H,k,T,J]=_;return J!==void 0?`rgba(${H}, ${k}, ${T}, ${J})`:`rgb(${H}, ${k}, ${T})`}}return A}},b=a.computed(()=>{const S=Number(r==null?void 0:r.textSize),A=d(r==null?void 0:r.textColor),_={},H={},k={},T={};return!Number.isNaN(S)&&S&&(_.fontSize=`${S}px`,H.fontSize=`${S+1}px`,k.fontSize=`${S}px`,T.fontSize=`${S}px`),A&&(H.color=A,k.color=A,T.color=A),{item:_,label:H,value:k,empty:T}}),h=S=>pl.getComponent(S),v=S=>{if(!S)return;const A=S.querySelector("input, textarea, .el-input__inner");A&&typeof A.focus=="function"&&A.focus()},y=(S,A,_)=>{r.disabled||(s.value=A,a.nextTick(()=>{v(_.currentTarget)}))},c=()=>{s.value=null},w=S=>{const A=S!=null&&S.width&&S.width>0?S.width:1,H=`calc((100% - ${(A-1)*48}px) / ${A})`;return{flex:`0 0 ${H}`,maxWidth:H,minWidth:"0",boxSizing:"border-box"}};return(S,A)=>{const _=a.resolveComponent("el-tag");return a.openBlock(),a.createElementBlock("div",s3,[t.value.length?(a.openBlock(),a.createElementBlock("div",c3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.value,(H,k)=>{var T,J,D,$,z,x,g,F;return a.openBlock(),a.createElementBlock("div",{key:k,class:"static-form-item",style:a.normalizeStyle({...w(H),...b.value.item})},[a.createElementVNode("div",{class:"static-form-label",style:a.normalizeStyle(b.value.label)},a.toDisplayString(H.label)+": ",5),a.createElementVNode("div",{class:"static-form-value",style:a.normalizeStyle(b.value.value),onClick:q=>y(H,k,q)},[s.value===k&&H.field?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(h(((T=H.field)==null?void 0:T.type)??"Input")),{key:0,modelValue:H.field.value,"onUpdate:modelValue":q=>H.field.value=q,isEdit:!0,disabled:(J=H.field)==null?void 0:J.disabled,content:((D=H.field)==null?void 0:D.contents)??[],optionUrl:H.field,originalValue:($=H.field)==null?void 0:$.value,config:(z=H.field)==null?void 0:z.config,configModel:((x=H.field)==null?void 0:x.prop)??((g=H.field)==null?void 0:g.name),selectedTagList:((F=H.field)==null?void 0:F.selectValue)??[],onBlur:c,onBlurChange:c},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[H.isStatus?(a.openBlock(),a.createBlock(_,{key:0,type:H.tagType,size:"Default",effect:"plain"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(H.value??"-"),1)]),_:2},1032,["type"])):(a.openBlock(),a.createElementBlock("span",d3,a.toDisplayString(H.value??"-"),1))],64))],12,u3)],4)}),128))])):(a.openBlock(),a.createElementBlock("div",{key:1,class:"static-form-empty",style:a.normalizeStyle(b.value.empty)}," 暂无数据 ",4))])}}}),yc=ql._export_sfc(p3,[["__scopeId","data-v-351e0bf9"]]),f3={class:"form-content"},h3={title:"选择标签"},v3={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},m3={class:"col-operate-wrap"},y3={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},g3={__name:"index",props:{formRules:Object,itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,compName:{type:String,default:""},allMapContents:{type:Object},config:{type:Object,default:()=>{}}},emits:["change","contentChange","routeUrl","clickTrigger"],setup(l,{emit:r}){const n=()=>{b.value=!1,h.value=!1,v.value=[]},t=l;a.computed(()=>{var Ze;const fe=(Ze=ye.value)==null?void 0:Ze.split("/");return(fe==null?void 0:fe.some(Fe=>(Fe==null?void 0:Fe.includes("updateLoading"))||(Fe==null?void 0:Fe.includes("loading"))))?!1:X.value==="view"});const s=r,d=a.ref([]),b=a.ref(!1),h=a.ref(!1),v=a.ref([]),{getFileExtension:y}=bo.useThreeSystem(),c=a.ref(),w=a.ref(!1),S=a.ref(!1),A=I.useUnit(I.pinia),{chooseTitle:_}=I.storeToRefs(A),H=a.ref([]),k=a.ref(),T=a.ref(!1),J=a.ref([]),D=Zs(I.pinia),$=xi(I.pinia),z=a.ref(!1),x=a.ref(),g=a.ref(),F=a.ref(),q=I.useLoginState(I.pinia),{loginUserInfo:G}=I.storeToRefs(q),be=a.ref(),ze=a.ref(!0),De=I.useModelComp(I.pinia),{tableViewContents:ne,itemData:ke,isEdit:X,routeToChildPath:pe,lockingPage:Ke}=I.storeToRefs(De),Sa=a.ref(null),te=a.ref(!1),B=a.ref(!1),le=I.useMenuState(),{activeMenuPath:ye}=I.storeToRefs(le),se=na.useOriginalState(I.pinia),{originalPath:Ne}=I.storeToRefs(se),{compType:ia,hasEditable:xa}=Hs.useRole(),Ha=()=>!xa(t.config,{type:ia.FORM});a.computed(()=>ye.value==="设备管理/试验设备"&&t.compName==="设备概要");const ee=a.ref([]),ea=a.ref([{label:"编辑",value:"operable",checked:!1},{label:"禁用",value:"disabled",checked:!1}]),Pe=async fe=>{B.value=fe,await Ia("disabled",null,fe,!0)},ga=async fe=>{await Ia("operable",null,fe,!0)};a.watch(()=>ye.value,async()=>{d.value=[],v.value=[]},{deep:!0,immediate:!0});const He=()=>{a.nextTick(()=>{Ka()})},Ae=fe=>{var Je;d.value=(Je=d.value)==null?void 0:Je.map(Ze=>({...Ze,isFormColHidden:!(fe!=null&&fe.includes(Ze.label))}))};a.onUnmounted(()=>{Sa.value=null});const Re=fe=>{s("clickTrigger",fe)},Ge=async fe=>{var Je,Ze,Fe,ka,$e,pa;if(fe===""){let re="";(Je=d.value)==null||Je.forEach(Be=>{Be!=null&&Be.isMain&&(re=Be==null?void 0:Be.value)});let Se=await na.getItemData(pe.value,sessionStorage.getItem("systemKey"),"");re=((pa=($e=(ka=(Fe=(Ze=Se==null?void 0:Se[0])==null?void 0:Ze.compData)==null?void 0:Fe.find(Be=>(Be==null?void 0:Be.key)==="mainRouters"))==null?void 0:ka.contents)==null?void 0:$e[0])==null?void 0:pa.routerContent)+Ne.value+re;let je=await na.getItemData(re,sessionStorage.getItem("systemKey"),"");T.value=!0,J.value=je==null?void 0:je.filter(Be=>(Be==null?void 0:Be.comp)!=="methodButton"),s("routeUrl",J.value)}},Ka=()=>{var Je;const fe=(Je=Sa.value)==null?void 0:Je.$el;fe&&$a.Sortable.create(fe,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:Ze=>{const{oldIndex:Fe,newIndex:ka}=Ze;if(Fe===ka)return;const $e=d.value.splice(Fe,1)[0];d.value.splice(ka,0,$e)}})},Ia=async(fe,Je,Ze,Fe=!1)=>{try{De.setRefreshCurStructure(!1)}catch{ll.ElMessage.error("编辑处理失败")}},R=async(fe,Je)=>{await Ia()},P=async(fe,Je)=>{fe&&await Ia()},Y=async(fe,Je,Ze)=>{await Ia(Je,Ze,fe,!1)},oe=(fe,Je)=>{be.value===Je?ze.value=!1:ze.value=!0,be.value=Je==null?void 0:Je.changeProp},ie=async fe=>{var Ze,Fe,ka,$e,pa,re,Se,K,je,Be,za,Ea,Ye,ua,_e;let Je=[];if((Ze=fe==null?void 0:fe.toString())!=null&&Ze.includes(".urdf")){if(fe.includes(",")){ll.ElMessage.error("当前版本仅允许单个urdf预览!");return}v.value=[{url:fe,extension:y(fe)}],h.value=!0,b.value=!0;return}if((Fe=fe==null?void 0:fe.toString())!=null&&Fe.includes(".stl")||(ka=fe==null?void 0:fe.toString())!=null&&ka.includes(".STL")||($e=fe==null?void 0:fe.toString())!=null&&$e.includes(".obj")||(pa=fe==null?void 0:fe.toString())!=null&&pa.includes(".mtl")){const ya=((re=fe==null?void 0:fe.toString())==null?void 0:re.split(",")).map(We=>({url:We,extension:y(We)}));v.value=ya,h.value=!1,b.value=!0;return}if((Se=fe==null?void 0:fe.toString())!=null&&Se.includes(".stl")||(K=fe==null?void 0:fe.toString())!=null&&K.includes(".STL")||(je=fe==null?void 0:fe.toString())!=null&&je.includes(".obj")||(Be=fe==null?void 0:fe.toString())!=null&&Be.includes(".mtl")){let Z,ya=[],We={};if(Array.isArray(fe)?Z=fe:Z=fe==null?void 0:fe.split(","),Z==null||Z.forEach(La=>{La.includes(".mtl")?ya.push(La):We.blob=We.blob?We.blob+","+La:La}),(ya==null?void 0:ya.length)>0&&(We.mtlBlobs=ya),(Ea=(za=Object.values(We))==null?void 0:za[0])!=null&&Ea.includes("http:"))Je.push(We);else{const La=new Blob([We.blob],{type:"application/octet-stream;charset=UTF-8"});let ml=URL.createObjectURL(La),Aa="";(Ye=fe==null?void 0:fe.split("/"))==null||Ye.forEach((el,Ja)=>{var Pa;Ja===((Pa=fe==null?void 0:fe.split("/"))==null?void 0:Pa.length)-1&&(Aa=el)}),(ua=We.blob)!=null&&ua.includes(".stl")&&(Aa=(Aa==null?void 0:Aa.replaceAll(">",""))+".urdf"),k.value=[{name:Aa,blobUrl:ml}],S.value=!0}}else{const Z=I.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),ya=await ll.axios.get(fe,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{Z.close()}),We=new Blob([ya.data],{type:"application/octet-stream;charset=UTF-8"});let La=URL.createObjectURL(We),ml="";(_e=fe==null?void 0:fe.split("/"))==null||_e.forEach((Aa,el)=>{var Ja;el===((Ja=fe==null?void 0:fe.split("/"))==null?void 0:Ja.length)-1&&(ml=Aa)}),k.value=[{name:ml,blobUrl:La}],S.value=!0}(Je==null?void 0:Je.length)>0&&$.setBlobUrls(Je)},fa=()=>{S.value=!1},ra=fe=>{var $e,pa,re,Se;const Je=(pa=($e=pl.safeClone(t.itemData))==null?void 0:$e.find(K=>(K==null?void 0:K.key)==="formContent"))==null?void 0:pa.contents,Ze=pl.safeClone(fe.content);let Fe={};Ze&&((re=Object.values(Ze))==null?void 0:re.length)>0&&((Se=Object.values(Ze))==null||Se.forEach((K,je)=>{Fe[Je[je].key]=K}));const ka={content:Fe,index:t==null?void 0:t.index,buttonName:fe==null?void 0:fe.buttonName};s("change",ka)};a.computed(()=>"http://222.92.178.198:62001");const Ie=async fe=>{var za,Ea,Ye,ua,_e,Z,ya,We,La,ml,Aa,el,Ja,Pa,Te,il;if(!fe)return;(Ea=(za=t==null?void 0:t.itemData)==null?void 0:za.find(ma=>(ma==null?void 0:ma.key)==="parentFormPath"))==null||Ea.contents;let Je=ne.value;(Je==null?void 0:Je.length)>0&&(Je=Je==null?void 0:Je.map(ma=>{var _a,oa,va,ue;let wa=(_a=ma==null?void 0:ma.key)==null?void 0:_a.split("/");return(t==null?void 0:t.compName)===(wa==null?void 0:wa[0])&&(oa=d.value)!=null&&oa.find(Fa=>(Fa==null?void 0:Fa.prop)===(wa==null?void 0:wa[1]))&&(ma.value=(ue=(va=d.value)==null?void 0:va.find(Fa=>(Fa==null?void 0:Fa.prop)===(wa==null?void 0:wa[1])))==null?void 0:ue.value),ma}),De.setTableViewContents(Je));const Ze=pl.safeClone(t.itemData);let Fe=Ze==null?void 0:Ze.map(ma=>{var wa;return(ma==null?void 0:ma.key)==="formContent"&&((wa=ma.contents)==null||wa.map((_a,oa)=>{var va,ue,Fa,ja,Ee,Ba,Ua,ve,fl,Xa,xl,qa,ol,al,cl,ul,Wl,Kl,Fl;return _a.type=(ue=(va=d.value)==null?void 0:va.find(Ul=>(Ul==null?void 0:Ul.prop)===(_a==null?void 0:_a.prop)))==null?void 0:ue.type,_a.options=_a!=null&&_a.options?_a.options:((Ee=(ja=(Fa=_a==null?void 0:_a.key)==null?void 0:Fa.split("$"))==null?void 0:ja[1])==null?void 0:Ee.length)>0?(fl=(ve=wu((Ua=(Ba=_a==null?void 0:_a.key)==null?void 0:Ba.split("$"))==null?void 0:Ua[1]))==null?void 0:ve.split(","))==null?void 0:fl.map(Ul=>({label:Ul,value:Ul})):[],(Xa=_a==null?void 0:_a.key)!=null&&Xa.includes("$")&&(_a.key=(qa=(xl=_a==null?void 0:_a.key)==null?void 0:xl.split("$"))==null?void 0:qa[0]),_a.signature=(al=(ol=d.value)==null?void 0:ol.find(Ul=>(Ul==null?void 0:Ul.prop)===(_a==null?void 0:_a.prop)))==null?void 0:al.signature,_a.isLoginUser=(ul=(cl=d.value)==null?void 0:cl.find(Ul=>(Ul==null?void 0:Ul.prop)===(_a==null?void 0:_a.prop)))==null?void 0:ul.isLoginUser,_a.value=(Wl=Object.values(fe))==null?void 0:Wl[oa],_a.isFormColHidden=(Fl=(Kl=d.value)==null?void 0:Kl.find(Ul=>(Ul==null?void 0:Ul.prop)===(_a==null?void 0:_a.prop)))==null?void 0:Fl.isFormColHidden,_a})),ma}),ka=d.value,$e=(ua=(Ye=pl.safeClone(Fe))==null?void 0:Ye.find(ma=>(ma==null?void 0:ma.key)==="formContent"))==null?void 0:ua.contents;if(ka=ka==null?void 0:ka.map(ma=>{var wa,_a;return(ma==null?void 0:ma.type)==="Select"&&((wa=ma==null?void 0:ma.allSelectionContents)==null?void 0:wa.length)>0&&(ma.contactValue=fe),ma.value=(_a=$e==null?void 0:$e.find((oa,va)=>((oa==null?void 0:oa.id)??va)===(ma==null?void 0:ma.id)))==null?void 0:_a.value,ma}),!ze.value){s("contentChange",{contents:Fe,index:t.index});return}let pa="",re=(ya=(Z=(_e=pl.safeClone(Fe))==null?void 0:_e.find(ma=>(ma==null?void 0:ma.key)==="formContent"))==null?void 0:Z.contents)==null?void 0:ya.find((ma,wa)=>{var _a,oa,va;return(ma==null?void 0:ma.label)===be.value||wa.toString()===((va=(oa=(_a=be.value)==null?void 0:_a.split("t"))==null?void 0:oa[1])==null?void 0:va.toString())}),Se=(We=re==null?void 0:re.optionUrl)==null?void 0:We.menuSelect,K=!0;if((Aa=(ml=(La=pl.safeClone(Fe))==null?void 0:La.find(ma=>(ma==null?void 0:ma.key)==="formContent"))==null?void 0:ml.contents)==null||Aa.forEach(ma=>{var wa,_a,oa,va,ue,Fa;K&&((oa=(_a=(wa=ma==null?void 0:ma.optionUrl)==null?void 0:wa.groupSelect)==null?void 0:_a[1])!=null&&oa.includes("["))&&(pa=(ue=(va=ma==null?void 0:ma.optionUrl)==null?void 0:va.groupSelect)==null?void 0:ue[1],JSON.stringify(Se)===JSON.stringify((Fa=ma==null?void 0:ma.optionUrl)==null?void 0:Fa.menuSelect)&&(K=!1))}),(el=re==null?void 0:re.optionUrl)!=null&&el.menuSelect&&ze.value){let ma=await fi(re),wa,_a=(Ja=re==null?void 0:re.optionUrl)==null?void 0:Ja.menuSelect;if(ma==null||ma.forEach(oa=>{var va,ue,Fa,ja,Ee,Ba,Ua,ve,fl,Xa;pa===((ue=(va=re==null?void 0:re.optionUrl)==null?void 0:va.groupSelect)==null?void 0:ue[1])&&((Ee=(ja=(Fa=re==null?void 0:re.optionUrl)==null?void 0:Fa.groupSelect)==null?void 0:ja[1])!=null&&Ee.includes("["))&&((Xa=pl.safeClone(oa))==null?void 0:Xa[(fl=(ve=(Ua=(Ba=re==null?void 0:re.optionUrl)==null?void 0:Ba.groupSelect)==null?void 0:Ua[1])==null?void 0:ve.replaceAll("[",""))==null?void 0:fl.replaceAll("]","")])===(re==null?void 0:re.value)&&(wa=oa)}),wa){let oa=pl.safeClone(ka);oa=oa==null?void 0:oa.map(ue=>{var Fa,ja,Ee,Ba,Ua,ve,fl,Xa,xl,qa,ol;return(wa!=null&&wa[ue==null?void 0:ue.label]||wa!=null&&wa[(Ba=(Ee=(ja=(Fa=ue==null?void 0:ue.optionUrl)==null?void 0:Fa.groupSelect)==null?void 0:ja[1])==null?void 0:Ee.replaceAll("[",""))==null?void 0:Ba.replaceAll("]","")])&&((fl=(ve=(Ua=ue==null?void 0:ue.optionUrl)==null?void 0:Ua.groupSelect)==null?void 0:ve[1])!=null&&fl.includes("["))&&_a!=null&&_a.every(al=>{var cl,ul;return(ul=(cl=ue==null?void 0:ue.optionUrl)==null?void 0:cl.menuSelect)==null?void 0:ul.includes(al)})&&(ue.value=(wa==null?void 0:wa[ue==null?void 0:ue.label])||(wa==null?void 0:wa[(ol=(qa=(xl=(Xa=ue==null?void 0:ue.optionUrl)==null?void 0:Xa.groupSelect)==null?void 0:xl[1])==null?void 0:qa.replaceAll("[",""))==null?void 0:ol.replaceAll("]","")]),Array.isArray(ue.value)&&ue.value.every(al=>(al==null?void 0:al.url)&&(al==null?void 0:al.name))&&(ue.type="Upload")),ue}),oa=oa==null?void 0:oa.map(ue=>{var Fa,ja,Ee;return(Fa=ue==null?void 0:ue.optionUrl)!=null&&Fa.oldMenuSelect&&(ue.optionUrl.menuSelect=(Ee=(ja=pl.safeClone(ue))==null?void 0:ja.optionUrl)==null?void 0:Ee.oldMenuSelect),ue}),d.value=pl.safeClone(oa);let va=pl.safeClone(oa);va=va==null?void 0:va.map(ue=>{var Fa,ja,Ee,Ba,Ua,ve;return(ja=(Fa=ue==null?void 0:ue.optionUrl)==null?void 0:Fa.menuSelect)!=null&&ja.some(fl=>fl==null?void 0:fl.includes("["))&&(ue.optionUrl.oldMenuSelect=(Ba=(Ee=pl.safeClone(ue))==null?void 0:Ee.optionUrl)==null?void 0:Ba.menuSelect,ue.optionUrl.menuSelect=(ve=(Ua=ue==null?void 0:ue.optionUrl)==null?void 0:Ua.menuSelect)==null?void 0:ve.map(fl=>{var Xa,xl,qa,ol;if(fl!=null&&fl.includes("[")){let al=(xl=(Xa=fl==null?void 0:fl.replaceAll("[","").replaceAll("]",""))==null?void 0:Xa.split(":"))==null?void 0:xl[1];fl=(ol=(qa=pl.safeClone(oa))==null?void 0:qa.find(cl=>(cl==null?void 0:cl.label)===al))==null?void 0:ol.value}return fl})),ue}),d.value=va}else d.value=ka;Fe=Fe==null?void 0:Fe.map(oa=>{var va;return(oa==null?void 0:oa.key)==="formContent"&&(oa.contents=(va=oa.contents)==null?void 0:va.map(ue=>{var Fa,ja,Ee,Ba;return ue.value=((ja=(Fa=d.value)==null?void 0:Fa.find(Ua=>(Ua==null?void 0:Ua.label)===(ue==null?void 0:ue.key)))==null?void 0:ja.value)??(ue==null?void 0:ue.value),ue.type=((Ba=(Ee=d.value)==null?void 0:Ee.find(Ua=>(Ua==null?void 0:Ua.prop)===(ue==null?void 0:ue.key)))==null?void 0:Ba.type)??(ue==null?void 0:ue.type),ue})),oa})}ze.value=!1,s("contentChange",{contents:Fe,index:t.index});let je=[],Be=[];if((Te=pl.safeClone((Pa=Fe==null?void 0:Fe.find(ma=>(ma==null?void 0:ma.key)==="formContent"))==null?void 0:Pa.contents))==null||Te.forEach(ma=>{var wa;Array.isArray(ma==null?void 0:ma.value)&&((wa=ma==null?void 0:ma.value)!=null&&wa.find(_a=>{var oa;return(oa=_a==null?void 0:_a.url)==null?void 0:oa.includes(".obj")}))&&(Be=ma==null?void 0:ma.value)}),(Be==null?void 0:Be.length)>0){const ma=(il=pl.safeClone(Be))==null?void 0:il.filter(wa=>{var _a;return(_a=wa==null?void 0:wa.url)==null?void 0:_a.includes(".obj")});ma==null||ma.forEach(wa=>{var oa,va,ue,Fa;const _a=(oa=Be==null?void 0:Be.filter(ja=>{var Ee;return(ja==null?void 0:ja.name)===(wa==null?void 0:wa.name)&&((Ee=ja==null?void 0:ja.url)==null?void 0:Ee.includes(".mtl"))}))==null?void 0:oa.map(ja=>ja==null?void 0:ja.url);je.push({objUrl:wa==null?void 0:wa.url,mtlUrls:((va=Be==null?void 0:Be.filter(ja=>{var Ee;return(ja==null?void 0:ja.name)===(wa==null?void 0:wa.name)&&((Ee=ja==null?void 0:ja.url)==null?void 0:Ee.includes(".mtl"))}))==null?void 0:va.length)===1?(Fa=(ue=Be==null?void 0:Be.filter(ja=>{var Ee;return(ja==null?void 0:ja.name)===(wa==null?void 0:wa.name)&&((Ee=ja==null?void 0:ja.url)==null?void 0:Ee.includes(".mtl"))}))==null?void 0:ue[0])==null?void 0:Fa.url:_a})}),$.setObjUrl(je)}},we=(fe,Je,Ze)=>{let Fe="";const ka=Je==null?void 0:Je.map($e=>{var pa;return(pa=$e==null?void 0:$e.value)==null?void 0:pa.pageData});return ka==null||ka.forEach($e=>{var pa;($e==null?void 0:$e.name)===(fe==null?void 0:fe[0])&&((pa=$e==null?void 0:$e.compData)==null||pa.forEach(re=>{var Se;(re==null?void 0:re.key)==="formContent"&&((Se=re==null?void 0:re.contents)==null||Se.forEach(K=>{var je;(K==null?void 0:K.prop)===(fe==null?void 0:fe[1])&&(Fe=(K==null?void 0:K.value)===""?na.judgeContents((je=pl.safeClone(K))==null?void 0:je.optionUrl,Ze):K==null?void 0:K.value)}))}))}),Fe},Ca=(fe,Je,Ze,Fe)=>{var re,Se;let ka="",$e="";(re=pl.safeClone(Je))==null||re.forEach((K,je)=>{K!=null&&K.includes("[")?$e=$e+Ne.value+fe[je]:$e=$e===""?$e+K:$e+"/"+K});let pa=(Se=Fe[$e])==null?void 0:Se.map(K=>{var je;return(je=K==null?void 0:K.value)==null?void 0:je.pageData});return pa==null||pa.forEach(K=>{var je;(K==null?void 0:K.name)===(Ze==null?void 0:Ze[0])&&((je=K==null?void 0:K.compData)==null||je.forEach(Be=>{var za;(Be==null?void 0:Be.key)==="formContent"&&((za=Be==null?void 0:Be.contents)==null||za.forEach(Ea=>{(Ea==null?void 0:Ea.prop)===(Ze==null?void 0:Ze[1])&&(ka=Ea==null?void 0:Ea.value)}))}))}),ka};return a.watch(()=>t.itemData,async()=>{var je,Be,za,Ea,Ye,ua,_e,Z,ya,We,La,ml,Aa,el,Ja,Pa,Te,il,ma,wa,_a;const fe=(je=t.itemData)==null?void 0:je.find(oa=>(oa==null?void 0:oa.key)==="formContent"),Je=(Be=pl.safeClone(t.itemData))==null?void 0:Be.find(oa=>(oa==null?void 0:oa.key)==="formButton"),Ze=(za=pl.safeClone(t.itemData))==null?void 0:za.find(oa=>(oa==null?void 0:oa.key)==="formFlex"),Fe=(Ea=pl.safeClone(t.itemData))==null?void 0:Ea.find(oa=>(oa==null?void 0:oa.key)==="formWrap"),ka=(Ye=pl.safeClone(t.itemData))==null?void 0:Ye.find(oa=>(oa==null?void 0:oa.key)==="enableWrap"),$e=(ua=pl.safeClone(t.itemData))==null?void 0:ua.find(oa=>(oa==null?void 0:oa.key)==="textSize"),pa=(_e=pl.safeClone(t.itemData))==null?void 0:_e.find(oa=>(oa==null?void 0:oa.key)==="textRGBA");(Fe==null?void 0:Fe.contents)==="纵向"?w.value=!1:w.value=!0;const re=Number($e==null?void 0:$e.contents);x.value=Number.isNaN(re)?void 0:re,g.value=pa==null?void 0:pa.contents;const Se=ka==null?void 0:ka.contents;if(Se===void 0?z.value=et.BLOCK:typeof Se=="boolean"?z.value=Se?et.ORDINARY:et.BLOCK:z.value=Se,F.value=typeof(Ze==null?void 0:Ze.contents)!="boolean"?!(!(Ze!=null&&Ze.contents)===""||((Z=Ze==null?void 0:Ze.contents)==null?void 0:Z.toUpperCase())==="VERTICAL"):Ze==null?void 0:Ze.contents,((ya=fe==null?void 0:fe.contents)==null?void 0:ya.length)>0&&Array.isArray(fe==null?void 0:fe.contents)){let oa=t.allMapContents;const va=(La=(We=pl.safeClone(fe))==null?void 0:We.contents)==null?void 0:La.map((ve,fl)=>{var kr,wr,Er,un,Jr,dn,Xr,Ur,pn,tn,Dr,Zr,Br;let Xa=(ve==null?void 0:ve.label)??(ve==null?void 0:ve.key)??"";ve==null||ve.type;let xl=(ve==null?void 0:ve.options)??[];if((kr=ve==null?void 0:ve.key)!=null&&kr.includes("$")&&(Xa=(wr=pl.safeClone(ve==null?void 0:ve.key).split("$"))==null?void 0:wr[0],((un=(Er=pl.safeClone(ve==null?void 0:ve.key).split("$"))==null?void 0:Er[1])==null?void 0:un.length)>0)){const[Il,qr]=(dn=(Jr=pl.safeClone(ve==null?void 0:ve.key).split("$"))==null?void 0:Jr[1])==null?void 0:dn.split(/[()]/);(Xr=na.FormType.find(Nr=>(Nr==null?void 0:Nr.key)===Il))==null||Xr.value,((Ur=qr==null?void 0:qr.split(","))==null?void 0:Ur.length)>0&&(xl=(pn=qr==null?void 0:qr.split(","))==null?void 0:pn.map(Nr=>({label:Nr,value:Nr})))}let qa=ve==null?void 0:ve.options;((tn=ve==null?void 0:ve.optionUrl)==null?void 0:tn.selectRelateType)==="自定义绑定"&&(qa=(Zr=(Dr=ve==null?void 0:ve.optionUrl)==null?void 0:Dr.defaultSelect)==null?void 0:Zr.map(Il=>({label:Il,value:Il})));let ol=(ve==null?void 0:ve.menuPath)??[],al=(ve==null?void 0:ve.groups)??[],cl=(ve==null?void 0:ve.columns)??[],ul=!1,Wl=(ve==null?void 0:ve.isFormColHidden)??!1,Kl="",Fl=ve!=null&&ve.value?ve.value:(qa==null?void 0:qa.length)>0?(Br=qa==null?void 0:qa[0])==null?void 0:Br.value:(ve==null?void 0:ve.value)??"",Ul=!1,gr="Input";return((qa==null?void 0:qa.length)>0||(ol==null?void 0:ol.length)>0)&&(gr="Select"),(Array.isArray(Kl)&&(Kl!=null&&Kl.every(Il=>(Il==null?void 0:Il.name)&&(Il==null?void 0:Il.url)))||Array.isArray(Fl)&&(Fl!=null&&Fl.every(Il=>(Il==null?void 0:Il.name)&&(Il==null?void 0:Il.url))))&&(gr="upload"),ve!=null&&ve.isMainUrl&&(gr="Url"),{label:Xa??"",name:Xa??"t"+fl,prop:Xa??pl.safeClone(ve==null?void 0:ve.key),type:(ve==null?void 0:ve.type)??gr,value:(ve==null?void 0:ve.type)==="Date"&&Fl===""?new Date:Fl,id:(ve==null?void 0:ve.id)??fl,contents:(qa==null?void 0:qa.length)>0?qa:xl??[],width:(ve==null?void 0:ve.width)??1,isLoginUser:ul,config:ve==null?void 0:ve.config,optionUrl:(ve==null?void 0:ve.optionUrl)??ve,isFormColHidden:Wl,signature:Ul,isMain:ve==null?void 0:ve.isMain,required:(ve==null?void 0:ve.required)??!1,isMainUrl:ve==null?void 0:ve.isMainUrl,operable:(ve==null?void 0:ve.operable)??!1,disabled:(ve==null?void 0:ve.disabled)??!1,isSync:ve==null?void 0:ve.isSync,menus:ol,groups:al,words:cl,allSelectionContents:ve==null?void 0:ve.allContents,filterContent:ve==null?void 0:ve.filterContents}}),ue=va==null?void 0:va.map(ve=>ve==null?void 0:ve.value);let Fa="";ue==null||ue.forEach(ve=>{ve!==""&&ve!==void 0&&(Fa=Fa===""?ve:Fa+"/"+ve)}),D.setSelectArray(ue),D.setSelectString(Fa);let ja=(ml=pl.safeClone(va))==null?void 0:ml.map(ve=>(ve!=null&&ve.value&&na.IsJson(ve==null?void 0:ve.value)&&Array.isArray(JSON.parse(ve==null?void 0:ve.value))&&(ve.value=JSON.parse(ve.value)),ve)),Ee={};ja==null||ja.forEach(ve=>{Ee[ve.label]=ve==null?void 0:ve.value}),ja=ja==null?void 0:ja.map(ve=>{var fl,Xa,xl,qa,ol,al,cl,ul,Wl;if((ve==null?void 0:ve.type)==="Select"&&((fl=ve==null?void 0:ve.allSelectionContents)==null?void 0:fl.length)>0&&(ve.contactValue=Ee),(xl=(Xa=ve==null?void 0:ve.optionUrl)==null?void 0:Xa.menuSelect)!=null&&xl.some(Kl=>Kl==null?void 0:Kl.includes("["))){let Kl="";ve.optionUrl.oldMenuSelect=(ol=(qa=pl.safeClone(ve))==null?void 0:qa.optionUrl)==null?void 0:ol.menuSelect,ve.optionUrl.menuSelect=(cl=(al=ve==null?void 0:ve.optionUrl)==null?void 0:al.menuSelect)==null?void 0:cl.map(Fl=>{var Ul,gr,rr,kr,wr,Er;if(Fl!=null&&Fl.includes("[")){let un=(gr=(Ul=Fl==null?void 0:Fl.replaceAll("[","").replaceAll("]",""))==null?void 0:Ul.split(":"))==null?void 0:gr[1];Kl=we((rr=Fl==null?void 0:Fl.replaceAll("[","").replaceAll("]",""))==null?void 0:rr.split(":"),oa==null?void 0:oa[ye.value],oa),Fl=((wr=(kr=pl.safeClone(ja))==null?void 0:kr.find(Jr=>(Jr==null?void 0:Jr.label)===un))==null?void 0:wr.value)||we((Er=Fl==null?void 0:Fl.replaceAll("[","").replaceAll("]",""))==null?void 0:Er.split(":"),oa==null?void 0:oa[ye.value],oa)}return Fl}),Kl!==""&&ve.value===""&&(ve.value=Ca(ve.optionUrl.menuSelect,ve.optionUrl.oldMenuSelect,(ul=ve==null?void 0:ve.optionUrl)==null?void 0:ul.groupSelect,oa),Array.isArray(ve.value)&&((Wl=ve.value)!=null&&Wl.every(Fl=>Fl==null?void 0:Fl.url))&&(ve.type="UPLOAD"))}return ve}),d.value=ja,B.value=((Aa=d.value)==null?void 0:Aa.every(ve=>ve==null?void 0:ve.disabled))||Ke.value===ye.value,te.value=(el=d.value)==null?void 0:el.every(ve=>ve==null?void 0:ve.operable),ee.value=(Ja=d.value)==null?void 0:Ja.map(ve=>ve==null?void 0:ve.label);let Ba=[],Ua=[];if((Pa=pl.safeClone(d.value))==null||Pa.forEach(ve=>{var fl;Array.isArray(ve==null?void 0:ve.value)&&((fl=ve==null?void 0:ve.value)!=null&&fl.find(Xa=>{var xl;return(xl=Xa==null?void 0:Xa.url)==null?void 0:xl.includes(".obj")}))&&(Ua=ve==null?void 0:ve.value)}),(Ua==null?void 0:Ua.length)>0){const ve=(Te=pl.safeClone(Ua))==null?void 0:Te.filter(fl=>{var Xa;return(Xa=fl==null?void 0:fl.url)==null?void 0:Xa.includes(".obj")});ve==null||ve.forEach(fl=>{var xl,qa,ol,al;const Xa=(xl=Ua==null?void 0:Ua.filter(cl=>{var ul;return(cl==null?void 0:cl.name)===(fl==null?void 0:fl.name)&&((ul=cl==null?void 0:cl.url)==null?void 0:ul.includes(".mtl"))}))==null?void 0:xl.map(cl=>cl==null?void 0:cl.url);Ba.push({objUrl:fl==null?void 0:fl.url,mtlUrls:((qa=Ua==null?void 0:Ua.filter(cl=>{var ul;return(cl==null?void 0:cl.name)===(fl==null?void 0:fl.name)&&((ul=cl==null?void 0:cl.url)==null?void 0:ul.includes(".mtl"))}))==null?void 0:qa.length)===1?(al=(ol=Ua==null?void 0:Ua.filter(cl=>{var ul;return(cl==null?void 0:cl.name)===(fl==null?void 0:fl.name)&&((ul=cl==null?void 0:cl.url)==null?void 0:ul.includes(".mtl"))}))==null?void 0:ol[0])==null?void 0:al.url:Xa})}),$.setObjUrl(Ba)}(il=pl.safeClone(d.value))==null||il.forEach(ve=>{var fl,Xa,xl,qa,ol,al,cl,ul,Wl,Kl,Fl,Ul,gr;if((Xa=(fl=ve==null?void 0:ve.value)==null?void 0:fl.toString())!=null&&Xa.includes(".stl")||(qa=(xl=ve==null?void 0:ve.value)==null?void 0:xl.toString())!=null&&qa.includes(".STL")||(al=(ol=ve==null?void 0:ve.value)==null?void 0:ol.toString())!=null&&al.includes(".obj")||(ul=(cl=ve==null?void 0:ve.value)==null?void 0:cl.toString())!=null&&ul.includes(".mtl")||(Kl=(Wl=ve==null?void 0:ve.value)==null?void 0:Wl.toString())!=null&&Kl.includes(".urdf")){let rr={},kr=[],wr;Array.isArray(ve==null?void 0:ve.value)?wr=ve==null?void 0:ve.value:wr=(Fl=ve==null?void 0:ve.value)==null?void 0:Fl.split(","),wr==null||wr.forEach(Er=>{Er.includes(".mtl")?kr.push(Er):rr.blob=rr.blob==="undefined"?Er:rr.blob+","+Er}),(kr==null?void 0:kr.length)>0&&(rr.mtlBlobs=kr),(gr=(Ul=Object.values(rr))==null?void 0:Ul[0])!=null&&gr.includes("http:")}})}else d.value=[];let K=ne.value;if((K==null?void 0:K.length)>0&&(K=K==null?void 0:K.map(oa=>{var ue,Fa,ja,Ee;let va=(ue=oa==null?void 0:oa.key)==null?void 0:ue.split("/");return(t==null?void 0:t.compName)===(va==null?void 0:va[0])&&(Fa=d.value)!=null&&Fa.find(Ba=>(Ba==null?void 0:Ba.prop)===(va==null?void 0:va[1]))&&(oa.value=(Ee=(ja=d.value)==null?void 0:ja.find(Ba=>(Ba==null?void 0:Ba.prop)===(va==null?void 0:va[1])))==null?void 0:Ee.value),oa}),De.setTableViewContents(K)),t!=null&&t.formRules)c.value=t==null?void 0:t.formRules;else{let oa={};(ma=pl.safeClone(d).value)==null||ma.forEach(va=>{((va==null?void 0:va.isMain)===!0||(va==null?void 0:va.required)===!0)&&(oa[(va==null?void 0:va.prop)??(va==null?void 0:va.name)]=[{required:!0,message:`${(va==null?void 0:va.label)||(va==null?void 0:va.prop)||(va==null?void 0:va.name)}不能为空`}])}),c.value=oa}if(((wa=Je==null?void 0:Je.contents)==null?void 0:wa.length)>0){const oa=[];(_a=Je==null?void 0:Je.contents)==null||_a.forEach((va,ue)=>{(va==null?void 0:va.label)!==""&&oa.push({label:(va==null?void 0:va.label)??"",id:(va==null?void 0:va.id)??ue,type:(va==null?void 0:va.type)??"",background:va==null?void 0:va.background})}),H.value=oa}else H.value=[]},{deep:!0,immediate:!0}),a.watch(()=>Ke.value,fe=>{B.value=fe===ye.value},{immediate:!0}),(fe,Je)=>{var re,Se;const Ze=a.resolveComponent("svg-icon"),Fe=a.resolveComponent("el-switch"),ka=a.resolveComponent("el-checkbox"),$e=a.resolveComponent("el-popover"),pa=a.resolveComponent("el-checkbox-group");return a.openBlock(),a.createElementBlock("div",f3,[z.value===a.unref(et).TEXT?(a.openBlock(),a.createBlock(yc,{key:0,itemData:l.itemData,compName:l.compName,fields:d.value,textSize:x.value,textColor:g.value,disabled:B.value||Ha()},null,8,["itemData","compName","fields","textSize","textColor","disabled"])):z.value===a.unref(et).BLOCK?(a.openBlock(),a.createBlock(Xp,{key:1,items:(Se=(re=d.value)==null?void 0:re.filter(K=>!(K!=null&&K.isFormColHidden)))==null?void 0:Se.map(K=>({label:K==null?void 0:K.label,value:K==null?void 0:K.value,width:(K==null?void 0:K.width)??1,field:K})),textSize:x.value,textColor:g.value,disabled:B.value||Ha()},null,8,["items","textSize","textColor","disabled"])):(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass({"form-shadow-box":z.value===a.unref(et).ORDINARY})},[a.createVNode(pl.ssForm,{rowContents:d.value,formRules:c.value,buttonValue:H.value,isRowFlex:!1,isEnableWrap:!0,textSize:x.value,textColor:g.value,onOnButtonClick:ra,onChange:Ie,formDisabled:B.value||Ha(),formLabelsOperable:te.value,isButtonRow:w.value,onPreview:ie,onBlurChange:oe,onHandleColEditChange:R,onHandleColTypeChange:P,onRouteUrl:Ge,onClickTrigger:Re},{operateCol:a.withCtx(({renderColumns:K,formDisabled:je,formLabelsOperable:Be})=>[a.createVNode($e,{title:"选择操作的标签",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:He},{reference:a.withCtx(()=>[a.createElementVNode("span",h3,[a.createVNode(Ze,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})])]),default:a.withCtx(()=>[a.createElementVNode("div",v3,[Je[1]||(Je[1]=a.createElementVNode("div",{class:"group-title"},"表单操作",-1)),a.createVNode(Fe,{"model-value":je,"active-text":"禁用","inactive-text":"",onChange:Pe,style:{"margin-right":"8px"}},null,8,["model-value"]),a.createVNode(Fe,{"model-value":Be,"active-text":"编辑所有标签","inactive-text":"",onChange:ga},null,8,["model-value"]),Je[2]||(Je[2]=a.createElementVNode("div",{class:"group-title"},"表单列操作",-1)),a.createVNode(pa,{modelValue:ee.value,"onUpdate:modelValue":Je[0]||(Je[0]=za=>ee.value=za),style:{height:"100%"},ref_key:"checkboxGroupRef",ref:Sa,onChange:Ae},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(K,za=>(a.openBlock(),a.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:za.label},[a.createVNode(ka,{value:za.label,style:{width:"100%",marginRight:0}},{default:a.withCtx(()=>[a.createElementVNode("span",null,a.toDisplayString(za.label),1)]),_:2},1032,["value"]),a.createVNode($e,{title:"标签操作",placement:"left",teleported:!1,trigger:"hover"},{reference:a.withCtx(()=>[a.createVNode(Ze,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:a.withCtx(()=>{var Ea;return[a.createElementVNode("div",m3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((Ea=Object.keys(za))==null?void 0:Ea.filter(Ye=>{var ua;return(ua=ea.value)==null?void 0:ua.find(_e=>(_e==null?void 0:_e.value)===Ye)}),Ye=>{var ua,_e;return a.openBlock(),a.createElementBlock("div",{key:Ye},[a.createVNode(pl._sfc_main$1,{value:za==null?void 0:za[Ye],"active-text":(_e=(ua=ea.value)==null?void 0:ua.find(Z=>(Z==null?void 0:Z.value)===Ye))==null?void 0:_e.label,inactiveText:"",onChange:Z=>Y(Z,Ye,za)},null,8,["value","active-text","onChange"])])}),128))])]}),_:2},1024),a.createElementVNode("span",y3,[a.createVNode(Ze,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:2},1032,["modelValue"])])]),_:2},1024)]),_:1},8,["rowContents","formRules","buttonValue","textSize","textColor","formDisabled","formLabelsOperable","isButtonRow"])],2)),S.value?(a.openBlock(),a.createBlock(pl.ssFilePreview,{key:3,fileDataList:k.value,onDestroy:fa},null,8,["fileDataList"])):a.createCommentVNode("",!0),b.value?(a.openBlock(),a.createBlock(vr.ssDialog,{key:4,visible:b.value,onBeforeDestroy:n,style:{height:"700px",width:"1000px"}},{default:a.withCtx(()=>[a.createVNode(bo.ThreeViewerHost,{files:v.value,onGetAnimationData:fe.onAnimationData},null,8,["files","onGetAnimationData"])]),_:1},8,["visible"])):a.createCommentVNode("",!0)])}}},hs=ql._export_sfc(g3,[["__scopeId","data-v-c4708f41"]]),Bo=a.ref(0),gc=l=>{var r;return!l||(l==null?void 0:l.length)===0?[]:(r=I.cloneDeep(l))==null?void 0:r.map(t=>(Bo.value++,t={label:(t==null?void 0:t.label)??"",prop:(t==null?void 0:t.label)==="操作"?"operate":t==null?void 0:t.prop,width:t!=null&&t.width?parseInt(t.width):"",fixed:(t==null?void 0:t.fixed)??void 0,sortable:(t==null?void 0:t.sortable)??!1,align:(t==null?void 0:t.align)??"left",showOverflowTooltip:(t==null?void 0:t.showOverflowTooltip)??!0,isNotDrag:(t==null?void 0:t.isNotDrag)??!1,isEditCol:(t==null?void 0:t.isEditCol)??!1,isOperate:(t==null?void 0:t.isOperate)??!1,id:(t==null?void 0:t.id)??Bo.value,children:gc(t==null?void 0:t.children)},t))},b3=l=>{var n;return(n=I.cloneDeep(l))==null?void 0:n.map(t=>(Bo.value++,t={label:(t==null?void 0:t.label)??"",prop:(t==null?void 0:t.label)==="操作"?"operate":t==null?void 0:t.prop,width:t!=null&&t.width?parseInt(t.width):"",fixed:(t==null?void 0:t.fixed)??void 0,sortable:(t==null?void 0:t.sortable)??!1,align:(t==null?void 0:t.align)??"left",showOverflowTooltip:(t==null?void 0:t.showOverflowTooltip)??!0,isNotDrag:(t==null?void 0:t.isNotDrag)??!1,isEditCol:(t==null?void 0:t.isEditCol)??!1,isOperate:(t==null?void 0:t.isOperate)??!1,id:(t==null?void 0:t.id)??Bo.value,children:gc(t==null?void 0:t.children)},t))},bc=(l,r)=>{var n;return l!=null&&l.find(t=>(t==null?void 0:t.id)===r)?(n=I.cloneDeep(l))==null?void 0:n.filter(s=>(s==null?void 0:s.id)!==r):(l=l==null?void 0:l.map(t=>(t.children=bc(t==null?void 0:t.children,r),t)),l)},kc=(l,r)=>{var n;return l!=null&&l.find(t=>(t==null?void 0:t.id)===(r==null?void 0:r.id))?(n=I.cloneDeep(l))==null?void 0:n.map(s=>((s==null?void 0:s.id)===(r==null?void 0:r.id)&&(s=r),s)):(l=l==null?void 0:l.map(t=>(t.children=kc(t==null?void 0:t.children,r),t)),l)},xc=(l,r)=>{var n;return l!=null&&l.find(t=>{var s;return(t==null?void 0:t.id)===((s=r==null?void 0:r.contents)==null?void 0:s.id)})?(n=I.cloneDeep(l))==null?void 0:n.map(s=>{var d;return(s==null?void 0:s.id)===((d=r==null?void 0:r.contents)==null?void 0:d.id)&&(s=r==null?void 0:r.contents),s}):(l=l==null?void 0:l.map(t=>(t.children=xc(t==null?void 0:t.children,r),t)),l)},_c=(l,r)=>{var n;return l!=null&&l.find(t=>(t==null?void 0:t.id)===(r==null?void 0:r.id))?(n=I.cloneDeep(l))==null?void 0:n.map(s=>((s==null?void 0:s.id)===(r==null?void 0:r.id)&&(s!=null&&s.children||(s.children=[]),s.children.push(r.contents)),s)):(l=l==null?void 0:l.map(t=>(t.children=_c(t==null?void 0:t.children,r),t)),l)},er=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"width",label:"宽度",type:"Input"},{key:"sortable",label:"是否支持排序",type:"Switch"},{key:"align",label:"文本所在位置",type:"Radio",options:[{label:"left",value:"左"},{label:"center",value:"中"},{label:"right",value:"右"}]},{key:"fixed",label:"是否固定列",type:"Switch"}],k3=[{label:"查看",value:"view"},{label:"修改",value:"fix"},{label:"删除",value:"delete"},{label:"三维算例",value:"modelExample"}],x3=[{label:"新增",value:"add"}],Bn=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:x3},{key:"background",label:"按钮背景色",type:"Color"}],Nn=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:k3},{key:"textColor",label:"按钮颜色",type:"Color"}],_3={class:"table-header-child"},w3={class:"table-header-child-main"},C3={class:"table-header-child-content"},E3={class:"table-header-child-content-item"},S3={class:"fix-button"},D3={key:0},B3={class:"form-content"},N3={__name:"tableNewChild",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(l,{emit:r}){const n=l,t=r,s=a.ref(!1),d=a.ref(""),b=na.useTableComp(I.pinia),{tableIndex:h}=I.storeToRefs(b);a.ref(0);const v=a.ref(""),y=a.ref([]),c=a.ref([]),w=D=>{var z;s.value=!0;let $=[];er==null||er.forEach(x=>{let g=I.cloneDeep(h.value)+1;b.setTableIndex(g),$.push({label:x==null?void 0:x.label,name:x==null?void 0:x.label,type:x.type,value:D[x.key],id:h.value,contents:x==null?void 0:x.options})}),D!=null&&D.children&&((z=D==null?void 0:D.children)==null?void 0:z.length)>0&&$.push({children:D==null?void 0:D.children,isFormColHidden:!0}),v.value=D==null?void 0:D.id,y.value=$,c.value=$},S=D=>{t("fixChange",I.cloneDeep(D))},A=D=>{t("deleteChange",I.cloneDeep(D))},_=D=>{s.value=!0;let $=[];er==null||er.forEach(z=>{let x=I.cloneDeep(h.value)+1;b.setTableIndex(x),$.push({label:z==null?void 0:z.label,name:z==null?void 0:z.label,type:z.type,value:"",id:h.value,contents:z==null?void 0:z.options})}),d.value=D==null?void 0:D.id,y.value=$,c.value=$},H=D=>{let $=I.cloneDeep(c.value);$=$==null?void 0:$.map(z=>(z.children||(z.value=D==null?void 0:D[z.name]),z)),c.value=$},k=()=>{var $,z;y.value=c.value;let D={};if(v.value!=="")D.id=v.value,($=y.value)==null||$.forEach(x=>{const g=er==null?void 0:er.find(F=>(F==null?void 0:F.label)===(x==null?void 0:x.label));g?D[g.key]=x.value:x!=null&&x.children&&x.children.length>0&&(D.children=x.children)}),s.value=!1,t("fixChange",{contents:I.cloneDeep(D),id:d.value,type:"fix"});else{let x=I.cloneDeep(h.value)+1;b.setTableIndex(x),D.id="id"+h.value,(z=y.value)==null||z.forEach(g=>{const F=er==null?void 0:er.find(q=>(q==null?void 0:q.label)===(g==null?void 0:g.label));F?D[F.key]=g.value:g!=null&&g.children&&g.children.length>0&&(D.children=g.children)}),s.value=!1,t("fixChange",{contents:I.cloneDeep(D),id:d.value,type:"add"})}v.value="",y.value=[],c.value=[]},T=()=>{s.value=!1,v.value="",d.value="",y.value=[],c.value=[]},J=D=>{I.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{t("deleteChange",D),ll.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(D,$)=>{const z=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",_3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n==null?void 0:n.tableChildContents,(x,g)=>(a.openBlock(),a.createElementBlock("div",w3,[a.createElementVNode("div",C3,[a.createElementVNode("div",E3,a.toDisplayString(x.label),1),a.createElementVNode("div",S3,[a.createVNode(z,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:F=>_(x)},null,8,["onClick"]),a.createVNode(z,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:F=>w(x)},null,8,["onClick"]),a.createVNode(z,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:F=>J(x)},null,8,["onClick"])])]),x!=null&&x.children&&x.children.length>0?(a.openBlock(),a.createElementBlock("div",D3,[a.createVNode(wc,{tableChildContents:x==null?void 0:x.children,onDeleteChange:A,onFixChange:S},null,8,["tableChildContents"])])):a.createCommentVNode("",!0)]))),256)),a.createVNode(vr.ssDialog,{visible:s.value,onBeforeDestroy:T,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",B3,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:H},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",{class:"dialog-footer"},[a.createElementVNode("div",{onClick:T,class:"cancel-button button"},a.toDisplayString("取消")),a.createElementVNode("div",{class:"ok-button button",onClick:k},a.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},T3=ql._export_sfc(N3,[["__scopeId","data-v-e0fef72d"]]),A3={class:"table-header-child"},z3={class:"table-header-child-main"},M3={class:"table-header-child-content"},O3={class:"table-header-child-content-item"},I3={class:"fix-button"},L3={key:0},V3={class:"form-content"},$3={class:"dialog-footer"},R3={__name:"tableChildren",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(l,{emit:r}){const n=l,t=r,s=a.ref(!1),d=a.ref(""),b=na.useTableComp(I.pinia),{tableIndex:h}=I.storeToRefs(b),v=a.ref(""),y=a.ref([]),c=a.ref([]),w=D=>{t("fixChange",I.cloneDeep(D))},S=D=>{var z;s.value=!0;let $=[];er==null||er.forEach(x=>{let g=I.cloneDeep(h.value)+1;b.setTableIndex(g),$.push({label:x==null?void 0:x.label,name:x==null?void 0:x.label,type:x.type,value:D[x.key],id:h.value,contents:x==null?void 0:x.options})}),D!=null&&D.children&&((z=D==null?void 0:D.children)==null?void 0:z.length)>0&&$.push({children:D==null?void 0:D.children,isFormColHidden:!0}),v.value=D==null?void 0:D.id,y.value=$,c.value=$},A=D=>{s.value=!0;let $=[];er==null||er.forEach(z=>{let x=I.cloneDeep(h.value)+1;b.setTableIndex(x),$.push({label:z==null?void 0:z.label,name:z==null?void 0:z.label,type:z.type,value:"",id:h.value,contents:z==null?void 0:z.options})}),d.value=D==null?void 0:D.id,y.value=$,c.value=$},_=D=>{let $=I.cloneDeep(c.value);$=$==null?void 0:$.map(z=>(z.children||(z.value=D==null?void 0:D[z.name]),z)),c.value=$},H=()=>{var $,z;y.value=c.value;let D={};if(v.value!=="")D.id=v.value,($=y.value)==null||$.forEach(x=>{const g=er==null?void 0:er.find(F=>(F==null?void 0:F.label)===(x==null?void 0:x.label));g?D[g.key]=x.value:x!=null&&x.children&&x.children.length>0&&(D.children=x.children)}),s.value=!1,t("fixChange",{contents:I.cloneDeep(D),id:d.value,type:"fix"});else{let x=I.cloneDeep(h.value)+1;b.setTableIndex(x),D.id="idChild"+h.value,(z=y.value)==null||z.forEach(g=>{const F=er==null?void 0:er.find(q=>(q==null?void 0:q.label)===(g==null?void 0:g.label));F?D[F.key]=g.value:g!=null&&g.children&&g.children.length>0&&(D.children=g.children)}),s.value=!1,t("fixChange",{contents:I.cloneDeep(D),id:d.value,type:"add"})}v.value="",y.value=[],c.value=[]},k=()=>{s.value=!1,v.value="",d.value="",y.value=[],c.value=[]},T=D=>{I.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{t("deleteChange",D),ll.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},J=D=>{t("deleteChange",D)};return(D,$)=>{const z=a.resolveComponent("svg-icon"),x=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",A3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n==null?void 0:n.tableChildContents,(g,F)=>(a.openBlock(),a.createElementBlock("div",z3,[a.createElementVNode("div",M3,[a.createElementVNode("div",O3,a.toDisplayString(g.label),1),a.createElementVNode("div",I3,[a.createVNode(z,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:q=>A(g)},null,8,["onClick"]),a.createVNode(z,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:q=>S(g)},null,8,["onClick"]),a.createVNode(z,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:q=>T(g)},null,8,["onClick"])])]),g!=null&&g.children&&g.children.length>0?(a.openBlock(),a.createElementBlock("div",L3,[a.createVNode(T3,{tableChildContents:g==null?void 0:g.children,onDeleteChange:J,onFixChange:w},null,8,["tableChildContents"])])):a.createCommentVNode("",!0)]))),256)),a.createVNode(vr.ssDialog,{visible:s.value,onBeforeDestroy:k,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",V3,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:_},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",$3,[a.createVNode(x,{onClick:k,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>$[0]||($[0]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[0]}),a.createVNode(x,{class:"ok-button button",onClick:H,id:"themeButton"},{default:a.withCtx(()=>$[1]||($[1]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},wc=ql._export_sfc(R3,[["__scopeId","data-v-ebd68fa1"]]),P3={class:"table-operate-content"},F3={class:"table-operate-item"},j3={class:"operate-title"},H3={class:"operate-content"},U3={class:"fix-content"},q3={class:"fix-content-label"},K3={class:"fix-button"},W3={key:0},Y3={class:"operate-title"},G3={class:"operate-content"},J3={class:"fix-content"},X3={class:"fix-content-label"},Z3={class:"fix-button"},Q3={class:"operate-title"},e1={class:"operate-content"},a1={class:"fix-content"},l1={class:"fix-content-label"},r1={class:"fix-button"},n1={class:"operate-title"},o1={class:"operate-content"},i1={class:"fix-content"},s1={class:"fix-content-label"},c1={class:"fix-button"},u1={class:"operate-content"},d1={style:{display:"flex","justify-content":"space-between"}},p1={class:"form-content"},f1={class:"dialog-footer"},h1={class:"form-content"},v1={class:"dialog-footer"},m1={class:"form-content"},y1={class:"dialog-footer"},g1={class:"form-content"},b1={class:"dialog-footer"},k1={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:r}){const n=l,t=r,s=a.ref([]),d=a.ref(!1),b=a.ref(!1),h=a.ref([]),v=a.ref(!1),y=a.ref([]),c=a.ref(!1),w=a.ref([]),S=a.ref(""),A=a.ref(""),_=a.ref([]),H=a.ref([]),k=a.ref([]),T=a.ref([]),J=a.ref(!1),D=a.ref([]),$=a.ref([]),z=a.ref(0),x=a.ref([]),g=a.ref([]),F=a.ref([]),q=()=>{J.value=!0;let R=[];Bn==null||Bn.forEach(P=>{z.value++,R.push({label:P==null?void 0:P.label,name:P==null?void 0:P.label,type:P.type,value:(P==null?void 0:P.key)==="background"?"var(--ssComponent-primary-color)":"",id:z.value,contents:P==null?void 0:P.options})}),D.value=R,$.value=R},G=()=>{var P,Y,oe;b.value=!0;let R=[];(oe=(Y=(P=na.FormContent)==null?void 0:P.find(ie=>(ie==null?void 0:ie.key)==="Input"))==null?void 0:Y.value)==null||oe.forEach(ie=>{z.value++,R.push({label:ie==null?void 0:ie.label,name:(ie==null?void 0:ie.name)||(ie==null?void 0:ie.label),type:ie.type,value:(ie==null?void 0:ie.label)==="类型"?"Input":"",id:z.value,contents:ie==null?void 0:ie.options})}),x.value=R,g.value=R},be=R=>{R||(x.value=g.value)},ze=async R=>{var P,Y,oe,ie,fa,ra,Ie,we,Ca,fe,Je,Ze;if((R==null?void 0:R.类型)!==((Y=(P=g.value)==null?void 0:P.find(Fe=>(Fe==null?void 0:Fe.label)==="类型"))==null?void 0:Y.value)){let Fe=[],ka=await((fa=(ie=(oe=na.FormContent)==null?void 0:oe.find($e=>($e==null?void 0:$e.key)===((R==null?void 0:R.类型)===""?"Input":R==null?void 0:R.类型)))==null?void 0:ie.value)==null?void 0:fa.value)?await((fe=(Ca=(we=na.FormContent)==null?void 0:we.find($e=>($e==null?void 0:$e.key)===((R==null?void 0:R.类型)===""?"Input":R==null?void 0:R.类型)))==null?void 0:Ca.value)==null?void 0:fe.value):(Ie=(ra=na.FormContent)==null?void 0:ra.find($e=>($e==null?void 0:$e.key)===((R==null?void 0:R.类型)===""?"Input":R==null?void 0:R.类型)))==null?void 0:Ie.value;if(ka==null||ka.forEach($e=>{z.value++,Fe.push({label:$e==null?void 0:$e.label,name:($e==null?void 0:$e.name)||($e==null?void 0:$e.label),type:$e.type,value:$e!=null&&$e.属性名?(R==null?void 0:R.prop)||(R==null?void 0:R.name)||(R==null?void 0:R.label):(R==null?void 0:R[$e.label])??"",id:z.value,contents:$e==null?void 0:$e.options,prop:($e==null?void 0:$e.prop)||($e==null?void 0:$e.name)||($e==null?void 0:$e.label)})}),R!=null&&R.菜单选项&&((Je=R==null?void 0:R.菜单选项)==null?void 0:Je.length)>0){const $e=await na.menuToContentType(R==null?void 0:R.菜单选项);Fe=Fe==null?void 0:Fe.map(pa=>((pa==null?void 0:pa.name)==="组信息选项"&&(pa.contents=$e),pa))}g.value=await na.selectToBase(I.cloneDeep(Fe)),x.value=await na.selectToBase(I.cloneDeep(Fe))}else{let Fe=I.cloneDeep(x.value);if(Fe=Fe==null?void 0:Fe.map(ka=>(ka.value=R==null?void 0:R[ka.name],ka)),R!=null&&R.菜单选项&&((Ze=R==null?void 0:R.菜单选项)==null?void 0:Ze.length)>0){const ka=await na.menuToContentType(R==null?void 0:R.菜单选项);Fe=Fe==null?void 0:Fe.map($e=>(($e==null?void 0:$e.name)==="组信息选项"&&($e.contents=ka),$e))}Fe=na.formToOptionsContents(Fe),g.value=await na.selectToBase(I.cloneDeep(Fe))}},De=async R=>{await ze(R),x.value=g.value},ne=(R,P)=>{if((P==null?void 0:P.type)=="Select"&&(R==null?void 0:R.key)==="selectRelateType"){const Y=P==null?void 0:P.optionUrl;return(Y==null?void 0:Y.selectRelateType)||P[R.key]}if((P==null?void 0:P.type)=="Select"&&(R==null?void 0:R.key)==="menuSelect"){const Y=P==null?void 0:P.optionUrl;return(Y==null?void 0:Y.menuSelect)||P[R.key]}if((P==null?void 0:P.type)=="Select"&&(R==null?void 0:R.key)==="groupSelect"){const Y=P==null?void 0:P.optionUrl;return(Y==null?void 0:Y.groupSelect)||P[R.key]}if((P==null?void 0:P.type)=="Select"&&(R==null?void 0:R.key)==="originalContent")return(P==null?void 0:P.value)||P[R.key];if((P==null?void 0:P.type)=="Select"&&(R==null?void 0:R.key)==="multiple"){const Y=P[R.key];return qs(Y)?Y:R.default}return(R==null?void 0:R.label)==="类型"&&P[R.key]===""?"Input":(R==null?void 0:R.key)==="isFormColHidden"&&!P[R.key]?!1:P[R.key]},ke=async R=>{var oe,ie,fa,ra,Ie,we,Ca,fe,Je;b.value=!0;let P=[];const Y=await((fa=(ie=(oe=na.FormContent)==null?void 0:oe.find(Ze=>(Ze==null?void 0:Ze.key)===((R==null?void 0:R.type)===""?"Input":R==null?void 0:R.type)))==null?void 0:ie.value)==null?void 0:fa.value)?await((fe=(Ca=(we=na.FormContent)==null?void 0:we.find(Ze=>(Ze==null?void 0:Ze.key)===((R==null?void 0:R.type)===""?"Input":R==null?void 0:R.type)))==null?void 0:Ca.value)==null?void 0:fe.value):(Ie=(ra=na.FormContent)==null?void 0:ra.find(Ze=>(Ze==null?void 0:Ze.key)===((R==null?void 0:R.type)===""?"Input":R==null?void 0:R.type)))==null?void 0:Ie.value;if(Y==null||Y.forEach(Ze=>{z.value++,P.push({label:Ze==null?void 0:Ze.label,name:(Ze==null?void 0:Ze.name)||(Ze==null?void 0:Ze.label),type:Ze.type,value:(Ze==null?void 0:Ze.label)==="属性名"?(R==null?void 0:R.prop)||(R==null?void 0:R.name)||(R==null?void 0:R.label):ne(Ze,R),id:z.value,contents:Ze==null?void 0:Ze.options})}),R!=null&&R.menuSelect&&((Je=R==null?void 0:R.menuSelect)==null?void 0:Je.length)>0){const Ze=await na.menuToContentType(R==null?void 0:R.menuSelect);P=P==null?void 0:P.map(Fe=>((Fe==null?void 0:Fe.name)==="组信息选项"&&(Fe.contents=Ze),Fe))}S.value=R==null?void 0:R.id,x.value=await na.selectToBase(na.formToOptionsContents(P)),g.value=await na.selectToBase(na.formToOptionsContents(P))},X=R=>{I.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var P,Y;F.value=(P=I.cloneDeep(F.value))==null?void 0:P.filter(oe=>(oe==null?void 0:oe.id)!==(R==null?void 0:R.id)),t("change",(Y=I.cloneDeep(n.originalItemContents))==null?void 0:Y.map(oe=>((oe==null?void 0:oe.key)==="tableToForm"&&(oe.contents=F.value),oe))),ll.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},pe=()=>{b.value=!1,x.value=[],S.value=""},Ke=async()=>{var oe,ie,fa,ra,Ie,we,Ca,fe,Je,Ze;x.value=g.value;let R={};S.value!==""?R.id=S.value:(z.value++,R.id="id"+z.value);let P=await((fa=(ie=(oe=na.FormContent)==null?void 0:oe.find(Fe=>{var ka,$e;return(Fe==null?void 0:Fe.key)===((($e=(ka=x.value)==null?void 0:ka.find(pa=>(pa==null?void 0:pa.label)==="类型"))==null?void 0:$e.value)??"label")}))==null?void 0:ie.value)==null?void 0:fa.value)??((Ie=(ra=na.FormContent)==null?void 0:ra.find(Fe=>{var ka,$e;return(Fe==null?void 0:Fe.key)===((($e=(ka=x.value)==null?void 0:ka.find(pa=>(pa==null?void 0:pa.label)==="类型"))==null?void 0:$e.value)??"label")}))==null?void 0:Ie.value);if((we=x.value)==null||we.forEach(Fe=>{const ka=P==null?void 0:P.find($e=>($e==null?void 0:$e.label)===(Fe==null?void 0:Fe.label));ka&&(R[ka.key]=Fe.value)}),R.name=R.label,(Ca=F.value)!=null&&Ca.find(Fe=>Fe.id===R.id))F.value=(fe=F.value)==null?void 0:fe.map(Fe=>(Fe.id===R.id&&(Fe=R),Fe));else{let Fe=I.cloneDeep(F.value);F.value||(F.value=[]),Fe.push(R),F.value=Fe}F.value=F.value.map(({id:Fe,...ka})=>ka),b.value=!1,S.value="";let Y=I.cloneDeep(n.originalItemContents);(Je=I.cloneDeep(n.originalItemContents))!=null&&Je.find(Fe=>(Fe==null?void 0:Fe.key)==="tableToForm")?Y=(Ze=I.cloneDeep(n.originalItemContents))==null?void 0:Ze.map(Fe=>((Fe==null?void 0:Fe.key)==="tableToForm"&&(Fe.contents=F.value),Fe)):Y.push({key:"tableToForm",contents:F.value}),t("change",Y)},Sa=R=>{J.value=!0;let P=[];Bn==null||Bn.forEach(Y=>{z.value++,P.push({label:Y==null?void 0:Y.label,name:Y==null?void 0:Y.label,type:Y.type,value:R[Y.key],id:z.value,contents:Y==null?void 0:Y.options})}),S.value=R==null?void 0:R.id,D.value=P,$.value=P};a.watch(()=>c.value,()=>{var P,Y;let R=I.cloneDeep(n.originalItemContents);(P=I.cloneDeep(n.originalItemContents))!=null&&P.find(oe=>(oe==null?void 0:oe.key)==="page")?R=(Y=I.cloneDeep(n.originalItemContents))==null?void 0:Y.map(oe=>((oe==null?void 0:oe.key)==="page"&&(oe.contents=c.value),oe)):R.push({key:"page",contents:c.value}),t("change",R)},{deep:!0});const te=R=>{I.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var P,Y;H.value=(P=I.cloneDeep(H.value))==null?void 0:P.filter(oe=>(oe==null?void 0:oe.id)!==(R==null?void 0:R.id)),t("change",(Y=I.cloneDeep(n.originalItemContents))==null?void 0:Y.map(oe=>((oe==null?void 0:oe.key)==="extraButton"&&(oe.contents=H.value),oe))),ll.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},B=()=>{var Y,oe,ie,fa,ra;D.value=$.value;let R={};if(S.value!==""?R.id=S.value:(z.value++,R.id="id"+z.value),(Y=D.value)==null||Y.forEach(Ie=>{const we=Bn==null?void 0:Bn.find(Ca=>(Ca==null?void 0:Ca.label)===(Ie==null?void 0:Ie.label));we?R[we.key]=Ie.value:Ie!=null&&Ie.children&&Ie.children.length>0&&(R.children=Ie.children)}),(oe=H.value)!=null&&oe.find(Ie=>Ie.id===R.id))H.value=(ie=H.value)==null?void 0:ie.map(Ie=>(Ie.id===R.id&&(Ie=R),Ie));else{let Ie=I.cloneDeep(H.value)??[];Ie.push(R),H.value=Ie}J.value=!1,S.value="";let P=I.cloneDeep(n.originalItemContents);(fa=I.cloneDeep(n.originalItemContents))!=null&&fa.find(Ie=>(Ie==null?void 0:Ie.key)==="extraButton")?P=(ra=I.cloneDeep(n.originalItemContents))==null?void 0:ra.map(Ie=>((Ie==null?void 0:Ie.key)==="extraButton"&&(Ie.contents=H.value),Ie)):P.push({key:"extraButton",contents:H.value}),t("change",P)},le=R=>{let P=I.cloneDeep($.value);P=P==null?void 0:P.map(Y=>(Y.children||(Y.value=R==null?void 0:R[Y.name]),Y)),$.value=P},ye=()=>{J.value=!1,D.value=[],S.value=""},se=R=>{v.value=!0;let P=[];Nn==null||Nn.forEach(Y=>{z.value++,P.push({label:Y==null?void 0:Y.label,name:Y==null?void 0:Y.label,type:Y.type,value:R[Y.key],id:z.value,contents:Y==null?void 0:Y.options})}),S.value=R==null?void 0:R.id,k.value=P,T.value=P},Ne=R=>{I.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var P,Y;_.value=(P=I.cloneDeep(_.value))==null?void 0:P.filter(oe=>(oe==null?void 0:oe.id)!==(R==null?void 0:R.id)),t("change",(Y=I.cloneDeep(n.originalItemContents))==null?void 0:Y.map(oe=>((oe==null?void 0:oe.key)==="rowButton"&&(oe.contents=_.value),oe))),ll.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},ia=()=>{d.value=!0;let R=[];er==null||er.forEach(P=>{z.value++,R.push({label:P==null?void 0:P.label,name:P==null?void 0:P.label,type:P.type,value:"",id:z.value,contents:P==null?void 0:P.options})}),y.value=R,w.value=R},xa=()=>{v.value=!0;let R=[];Nn==null||Nn.forEach(P=>{z.value++,R.push({label:P==null?void 0:P.label,name:P==null?void 0:P.label,type:P.type,value:"",id:z.value,contents:P==null?void 0:P.options})}),k.value=R,T.value=R},Ha=R=>{let P=I.cloneDeep(T.value);P=P==null?void 0:P.map(Y=>(Y.children||(Y.value=R==null?void 0:R[Y.name]),Y)),T.value=P},ee=()=>{var Y,oe,ie,fa,ra;k.value=T.value;let R={};if(S.value!==""?R.id=S.value:(z.value++,R.id="id"+z.value),(Y=k.value)==null||Y.forEach(Ie=>{const we=Nn==null?void 0:Nn.find(Ca=>(Ca==null?void 0:Ca.label)===(Ie==null?void 0:Ie.label));we?R[we.key]=Ie.value:Ie!=null&&Ie.children&&Ie.children.length>0&&(R.children=Ie.children)}),(oe=_.value)!=null&&oe.find(Ie=>Ie.id===R.id))_.value=(ie=_.value)==null?void 0:ie.map(Ie=>(Ie.id===R.id&&(Ie=R),Ie));else{let Ie=I.cloneDeep(_.value);Ie.push(R),_.value=Ie}v.value=!1,S.value="";let P=I.cloneDeep(n.originalItemContents);(fa=I.cloneDeep(n.originalItemContents))!=null&&fa.find(Ie=>(Ie==null?void 0:Ie.key)==="rowButton")?P=(ra=I.cloneDeep(n.originalItemContents))==null?void 0:ra.map(Ie=>((Ie==null?void 0:Ie.key)==="rowButton"&&(Ie.contents=_.value),Ie)):P.push({key:"rowButton",contents:_.value}),t("change",P)},ea=()=>{v.value=!1,S.value="",T.value=[],k.value=[]},Pe=R=>{d.value=!0;let P=[];er==null||er.forEach(Y=>{z.value++,P.push({label:Y==null?void 0:Y.label,name:Y==null?void 0:Y.label,type:Y.type,value:"",id:z.value,contents:Y==null?void 0:Y.options})}),y.value=P,A.value=R==null?void 0:R.id,w.value=P},ga=R=>{var P;h.value=bc(I.cloneDeep(h.value),R==null?void 0:R.id),t("change",(P=I.cloneDeep(n.originalItemContents))==null?void 0:P.map(Y=>{var oe;return(Y==null?void 0:Y.key)==="header"&&(Y.contents=(oe=h.value)!=null&&oe.some(ie=>ie==null?void 0:ie.children)?[h.value]:h.value),Y}))},He=R=>{var Y,oe,ie;R.type==="fix"?R.id!==""?h.value=xc(h.value,R):h.value=kc(h.value,R==null?void 0:R.contents):h.value=_c(h.value,R),h.value=(Y=h.value)!=null&&Y.some(fa=>fa==null?void 0:fa.children)?[h.value]:h.value,S.value="";let P=I.cloneDeep(n.originalItemContents);(oe=I.cloneDeep(n.originalItemContents))!=null&&oe.find(fa=>(fa==null?void 0:fa.key)==="header")?P=(ie=I.cloneDeep(n.originalItemContents))==null?void 0:ie.map(fa=>((fa==null?void 0:fa.key)==="header"&&(fa.contents=h.value),fa)):P.push({key:"header",contents:h.value}),t("change",P)},Ae=R=>{var Y;d.value=!0;let P=[];er==null||er.forEach(oe=>{z.value++,P.push({label:oe==null?void 0:oe.label,name:oe==null?void 0:oe.label,type:oe.type,value:R[oe.key],id:z.value,contents:oe==null?void 0:oe.options})}),R!=null&&R.children&&((Y=R==null?void 0:R.children)==null?void 0:Y.length)>0&&P.push({children:R==null?void 0:R.children,isFormColHidden:!0}),S.value=R==null?void 0:R.id,A.value="",y.value=P,w.value=P},Re=R=>{let P=I.cloneDeep(w.value);P=P==null?void 0:P.map(Y=>(Y.children||(Y.value=R==null?void 0:R[Y.name]),Y)),w.value=P},Ge=()=>{d.value=!1,S.value="",A.value="",w.value=[]},Ka=()=>{var Y,oe,ie,fa,ra,Ie;y.value=w.value;let R={};if(S.value!==""?R.id=S.value:(z.value++,R.id="id"+z.value),(Y=y.value)==null||Y.forEach(we=>{const Ca=er==null?void 0:er.find(fe=>(fe==null?void 0:fe.label)===(we==null?void 0:we.label));Ca?R[Ca.key]=we.value:we!=null&&we.children&&we.children.length>0&&(R.children=we.children)}),(oe=h.value)!=null&&oe.find(we=>we.id===R.id))h.value=(ie=h.value)==null?void 0:ie.map(we=>(we.id===R.id&&(we=R),we));else{let we=I.cloneDeep(h.value)??[];A.value===""?we.push(R):we=we==null?void 0:we.map(Ca=>(Ca.id===A.value&&(Ca.children||(Ca.children=[]),Ca.children.push(R)),Ca)),h.value=we}h.value=(fa=h.value)!=null&&fa.some(we=>we==null?void 0:we.children)?[h.value]:h.value,d.value=!1,S.value="",A.value="";let P=I.cloneDeep(n.originalItemContents);(ra=I.cloneDeep(n.originalItemContents))!=null&&ra.find(we=>(we==null?void 0:we.key)==="header")?P=(Ie=I.cloneDeep(n.originalItemContents))==null?void 0:Ie.map(we=>((we==null?void 0:we.key)==="header"&&(we.contents=h.value),we)):P.push({key:"header",contents:h.value}),t("change",P)},Ia=R=>{I.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var P,Y;h.value=(P=I.cloneDeep(h.value))==null?void 0:P.filter(oe=>(oe==null?void 0:oe.id)!==(R==null?void 0:R.id)),t("change",(Y=I.cloneDeep(n.originalItemContents))==null?void 0:Y.map(oe=>{var ie;return(oe==null?void 0:oe.key)==="header"&&(oe.contents=(ie=h.value)!=null&&ie.some(fa=>fa==null?void 0:fa.children)?[h.value]:h.value),oe})),ll.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return a.watch(()=>n.originalItemContents,()=>{var R,P,Y,oe,ie,fa,ra,Ie,we,Ca,fe,Je,Ze,Fe,ka,$e,pa,re,Se;if(!(!n.originalItemContents||n.originalItemContents.length===0))if(s.value=I.cloneDeep(n.originalItemContents),h.value=(P=(R=s.value)==null?void 0:R.find(K=>(K==null?void 0:K.key)==="header"))==null?void 0:P.contents,_.value=(oe=(Y=s.value)==null?void 0:Y.find(K=>(K==null?void 0:K.key)==="rowButton"))==null?void 0:oe.contents,H.value=(fa=(ie=s.value)==null?void 0:ie.find(K=>(K==null?void 0:K.key)==="extraButton"))==null?void 0:fa.contents,c.value=(Ie=(ra=s.value)==null?void 0:ra.find(K=>(K==null?void 0:K.key)==="page"))!=null&&Ie.contents?!!((Ca=(we=s.value)==null?void 0:we.find(K=>(K==null?void 0:K.key)==="page"))!=null&&Ca.contents):!1,F.value=(Je=(fe=s.value)==null?void 0:fe.find(K=>(K==null?void 0:K.key)==="tableToForm"))==null?void 0:Je.contents,h.value=(Ze=h.value)==null?void 0:Ze.map((K,je)=>(Array.isArray(K)?K=b3(K):K={label:(K==null?void 0:K.label)??"",prop:(K==null?void 0:K.label)==="操作"?"operate":K==null?void 0:K.prop,width:K!=null&&K.width?parseInt(K.width):"",fixed:(K==null?void 0:K.fixed)??void 0,sortable:(K==null?void 0:K.sortable)??!1,align:(K==null?void 0:K.align)??"left",showOverflowTooltip:(K==null?void 0:K.showOverflowTooltip)??!0,isNotDrag:(K==null?void 0:K.isNotDrag)??!1,isEditCol:(K==null?void 0:K.isEditCol)??!1,isOperate:(K==null?void 0:K.isOperate)??!1,id:(K==null?void 0:K.id)??je,formMenuSelect:(K==null?void 0:K.formMenuSelect)??void 0,groupSelect:(K==null?void 0:K.groupSelect)??void 0},K)),h.value=(Fe=h.value)!=null&&Fe.every(K=>Array.isArray(K))?(ka=h.value)==null?void 0:ka[0]:h.value,_.value=($e=_.value)==null?void 0:$e.map((K,je)=>K={label:(K==null?void 0:K.label)??"",type:(K==null?void 0:K.type)??"",textColor:(K==null?void 0:K.textColor)??"#000000",id:(K==null?void 0:K.id)??je}),H.value=(pa=H.value)==null?void 0:pa.map((K,je)=>K={label:(K==null?void 0:K.label)??"",type:(K==null?void 0:K.type)??"",background:(K==null?void 0:K.background)??"var(--ssComponent-primary-color)",id:(K==null?void 0:K.id)??je}),F.value)F.value=(Se=F.value)==null?void 0:Se.map(K=>{z.value++;let je=K;return je.id=z.value,je});else{let K=[];const je=(re=na.getColumnChild(I.cloneDeep(h.value)))==null?void 0:re.filter(Be=>(Be==null?void 0:Be.prop)!=="operate");je==null||je.forEach(Be=>{var za;z.value++,K.push({label:Be==null?void 0:Be.label,name:(Be==null?void 0:Be.prop)||(Be==null?void 0:Be.label),type:Be!=null&&Be.groupSelect?"Select":"Input",value:"",id:z.value,contents:Be==null?void 0:Be.options,menuSelect:Be==null?void 0:Be.formMenuSelect,groupSelect:(za=Be==null?void 0:Be.groupSelect)==null?void 0:za.split(":"),selectRelateType:"关联绑定列"})}),F.value=K}},{deep:!0,immediate:!0}),(R,P)=>{const Y=a.resolveComponent("svg-icon"),oe=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",P3,[a.createElementVNode("div",F3,[a.createElementVNode("div",j3,[P[2]||(P[2]=a.createElementVNode("div",null,a.toDisplayString("表头"),-1)),a.createVNode(oe,{class:"icon-content",onClick:ia,id:"themeButton"},{icon:a.withCtx(()=>[a.createVNode(Y,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[P[1]||(P[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",H3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.value,(ie,fa)=>(a.openBlock(),a.createElementBlock("div",{key:fa},[a.createElementVNode("div",U3,[a.createElementVNode("div",q3,a.toDisplayString(ie==null?void 0:ie.label),1),a.createElementVNode("div",K3,[a.createVNode(Y,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ra=>Pe(ie)},null,8,["onClick"]),a.createVNode(Y,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ra=>Ae(ie)},null,8,["onClick"]),a.createVNode(Y,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ra=>Ia(ie)},null,8,["onClick"])])]),ie!=null&&ie.children&&ie.children.length>0?(a.openBlock(),a.createElementBlock("div",W3,[a.createVNode(wc,{tableChildContents:ie==null?void 0:ie.children,onDeleteChange:ga,onFixChange:He},null,8,["tableChildContents"])])):a.createCommentVNode("",!0)]))),128))]),a.createElementVNode("div",Y3,[P[4]||(P[4]=a.createElementVNode("div",null,a.toDisplayString("行内按钮"),-1)),a.createVNode(oe,{class:"icon-content",id:"themeButton",onClick:xa},{icon:a.withCtx(()=>[a.createVNode(Y,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[P[3]||(P[3]=a.createTextVNode(" 新增 "))]),_:1,__:[3]})]),a.createElementVNode("div",G3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(_.value,(ie,fa)=>(a.openBlock(),a.createElementBlock("div",{key:fa},[a.createElementVNode("div",J3,[a.createElementVNode("div",X3,a.toDisplayString(ie==null?void 0:ie.label),1),a.createElementVNode("div",Z3,[a.createVNode(Y,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ra=>se(ie)},null,8,["onClick"]),a.createVNode(Y,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ra=>Ne(ie)},null,8,["onClick"])])])]))),128))]),a.createElementVNode("div",Q3,[P[6]||(P[6]=a.createElementVNode("div",null,a.toDisplayString("表外按钮"),-1)),a.createVNode(oe,{class:"icon-content",id:"themeButton",onClick:q},{icon:a.withCtx(()=>[a.createVNode(Y,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[P[5]||(P[5]=a.createTextVNode(" 新增 "))]),_:1,__:[5]})]),a.createElementVNode("div",e1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(H.value,(ie,fa)=>(a.openBlock(),a.createElementBlock("div",{key:fa},[a.createElementVNode("div",a1,[a.createElementVNode("div",l1,a.toDisplayString(ie==null?void 0:ie.label),1),a.createElementVNode("div",r1,[a.createVNode(Y,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ra=>Sa(ie)},null,8,["onClick"]),a.createVNode(Y,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ra=>te(ie)},null,8,["onClick"])])])]))),128))]),a.createElementVNode("div",n1,[P[8]||(P[8]=a.createElementVNode("div",null,a.toDisplayString("表格弹框字段设置"),-1)),a.createVNode(oe,{class:"icon-content",id:"themeButton",onClick:G},{icon:a.withCtx(()=>[a.createVNode(Y,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[P[7]||(P[7]=a.createTextVNode(" 新增 "))]),_:1,__:[7]})]),a.createElementVNode("div",o1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(F.value,(ie,fa)=>(a.openBlock(),a.createElementBlock("div",{key:fa},[a.createElementVNode("div",i1,[a.createElementVNode("div",s1,a.toDisplayString(ie==null?void 0:ie.label),1),a.createElementVNode("div",c1,[a.createVNode(Y,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ra=>ke(ie)},null,8,["onClick"]),a.createVNode(Y,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ra=>X(ie)},null,8,["onClick"])])])]))),128))]),P[10]||(P[10]=a.createElementVNode("div",{class:"operate-title"},[a.createElementVNode("div",null,a.toDisplayString("分页"))],-1)),a.createElementVNode("div",u1,[a.createElementVNode("div",d1,[P[9]||(P[9]=a.createElementVNode("div",{class:"operate-center-content"},a.toDisplayString("是否分页"),-1)),a.createVNode(pl._sfc_main$1,{modelValue:c.value,"onUpdate:modelValue":P[0]||(P[0]=ie=>c.value=ie)},null,8,["modelValue"])])])]),a.createVNode(vr.ssDialog,{visible:d.value,onBeforeDestroy:Ge,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",p1,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:Re},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",f1,[a.createVNode(oe,{onClick:Ge,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>P[11]||(P[11]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[11]}),a.createVNode(oe,{class:"ok-button button",onClick:Ka,id:"themeButton"},{default:a.withCtx(()=>P[12]||(P[12]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible"]),a.createVNode(vr.ssDialog,{visible:v.value,onBeforeDestroy:ea,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",h1,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:k.value,key:k.value,isEnableWrap:!0,onChange:Ha},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",v1,[a.createVNode(oe,{onClick:ea,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>P[13]||(P[13]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[13]}),a.createVNode(oe,{class:"ok-button button",onClick:ee,id:"themeButton"},{default:a.withCtx(()=>P[14]||(P[14]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible"]),a.createVNode(vr.ssDialog,{visible:J.value,onBeforeDestroy:ye,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",m1,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:D.value,key:D.value,isEnableWrap:!0,onChange:le},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",y1,[a.createVNode(oe,{onClick:ye,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>P[15]||(P[15]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[15]}),a.createVNode(oe,{class:"ok-button button",onClick:B,id:"themeButton"},{default:a.withCtx(()=>P[16]||(P[16]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[16]})])]),_:1},8,["visible"]),a.createVNode(vr.ssDialog,{visible:b.value,onBeforeDestroy:pe,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",g1,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:x.value,key:x.value,isEnableWrap:!0,onChange:ze,onChangeVisible:be,onBlurChange:De},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",b1,[a.createVNode(oe,{onClick:pe,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>P[17]||(P[17]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[17]}),a.createVNode(oe,{class:"ok-button button",onClick:Ke,id:"themeButton"},{default:a.withCtx(()=>P[18]||(P[18]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[18]})])]),_:1},8,["visible"])])}}},x1=ql._export_sfc(k1,[["__scopeId","data-v-7a6b87b5"]]),_1=I.useModelComp(I.pinia),{pageMapState:w1}=I.storeToRefs(_1),C1=I.useMenuState(I.pinia),{activeMenuPath:E1}=I.storeToRefs(C1),S1=a.ref(24),D1=a.ref(6),B1=a.ref(70),N1=a.ref(.18),T1=a.ref(45),A1=(l,r,n,t)=>{var s,d,b,h,v,y,c,w,S,A,_,H,k,T,J,D;return{x:((d=(s=l==null?void 0:l.value)==null?void 0:s.tableData)==null?void 0:d.x)||r%2*12,y:((h=(b=l==null?void 0:l.value)==null?void 0:b.tableData)==null?void 0:h.y)||r,w:((y=(v=l==null?void 0:l.value)==null?void 0:v.tableData)==null?void 0:y.w)||S1.value,h:((w=(c=l==null?void 0:l.value)==null?void 0:c.tableData)==null?void 0:w.h)||n,minW:((A=(S=l==null?void 0:l.value)==null?void 0:S.tableData)==null?void 0:A.minW)||D1.value,minH:((H=(_=l==null?void 0:l.value)==null?void 0:_.tableData)==null?void 0:H.minH)||N1.value,maxH:((T=(k=l==null?void 0:l.value)==null?void 0:k.tableData)==null?void 0:T.maxH)||T1.value,i:((D=(J=l==null?void 0:l.value)==null?void 0:J.tableData)==null?void 0:D.i)||r,id:(l==null?void 0:l.id)||r+"",component:t}},z1=(l,r)=>{var t,s,d,b,h,v,y,c;let n=1;if(l!=null&&l.compData&&Array.isArray(l==null?void 0:l.compData))if(((t=l==null?void 0:l.comp)==null?void 0:t.toUpperCase())==="TABLE"){if(((b=(d=(s=l==null?void 0:l.compData)==null?void 0:s.find(S=>(S==null?void 0:S.key)==="tableContents"))==null?void 0:d.contents)==null?void 0:b.length)===0)return 2}else((h=l==null?void 0:l.comp)==null?void 0:h.toUpperCase())==="FORM"&&(n=((c=(y=(v=l==null?void 0:l.compData)==null?void 0:v.find(S=>(S==null?void 0:S.key)==="formContent"))==null?void 0:y.contents)==null?void 0:c.length)/5);return n*2},Cc=(l,r,n)=>{var b,h;const t=(h=(b=w1.value)==null?void 0:b[E1.value])==null?void 0:h.filter(v=>{var y;return((y=v==null?void 0:v.key)==null?void 0:y.type)==="gridLayout"}),s=t==null?void 0:t.find(v=>{var y,c,w;return((w=(c=(y=v==null?void 0:v.value)==null?void 0:y.tableData)==null?void 0:c.component)==null?void 0:w.id)===l.id}),d=z1(l);return l!=null&&l.children&&(l==null?void 0:l.children.length)>0&&(l.children=l.children.map((v,y)=>Cc(v,y))),{...A1(s,r,d,l)}},M1=(l,r)=>{if((l==null?void 0:l.length)===0)return[];const n=I.cloneDeep(l);return Array.isArray(l)?n==null?void 0:n.map((t,s)=>Cc(t,s)):[]},O1=l=>({TABLE:{overall:[{label:"栅格布局",prop:"isGridLayout",type:"switch",value:!1,disabled:!1,activeText:"启用",inactiveText:"默认"},{label:"界面布局",prop:"layout",type:"radio",value:"vertical",options:[{label:"垂直",value:"vertical"},{label:"水平",value:"horizontal"}]},{label:"流程式布局",prop:"isStepLayout",type:"radio",value:!1,options:[{label:"启用",value:!0,disabled:!1},{label:"禁用",value:!1,disabled:!1}]}],alone:[{label:"默认显示序号",prop:"showIndex",type:"radio",value:!1,options:[{label:"是",value:!0},{label:"否",value:!1}]},{label:"浏览视图配置",prop:"viewport",type:"checkbox",value:["read"],options:[{label:"只读视图",value:"read"},{label:"编辑视图",value:"edit"}]},{label:"是否选择迁移",prop:"allowMove",type:"radio",value:!1,options:[{label:"是",value:!0},{label:"否",value:!1}]}]}}),I1=(l,r)=>l==null?void 0:l.map(n=>{for(const t in r)if(t===(n==null?void 0:n.prop))return{...n,value:r[t]};return n}),L1=a.defineComponent({__name:"index",props:{compType:String,comp:Object,target:{type:String,default:"alone"},optionItems:Array},emits:["change"],setup(l,{emit:r}){const n=l,t=r,s=a.ref([]);a.watch(()=>n.compType,h=>{var c;const v=O1(n==null?void 0:n.optionItems),y=h?(c=v[h==null?void 0:h.toUpperCase()])==null?void 0:c[n==null?void 0:n.target]:[];s.value=y==null?void 0:y.map(w=>{for(const[S,A]of Object.entries((n==null?void 0:n.comp)||{}))if((w==null?void 0:w.prop)===S)return{...w,value:A};return w})},{immediate:!0});const d=h=>pl.getComponent(h),b=h=>{var v,y;(h==null?void 0:h.prop)==="layout"&&(h==null?void 0:h.value)==="horizontal"?s.value=(v=s.value)==null?void 0:v.map(c=>{var w;return(c==null?void 0:c.prop)==="isStepLayout"?{...c,options:(w=c==null?void 0:c.options)==null?void 0:w.map(S=>({...S,disabled:!0}))}:(c==null?void 0:c.prop)==="isGridLayout"?{...c,disabled:!0}:c}):s.value=(y=s.value)==null?void 0:y.map(c=>{var w;return(c==null?void 0:c.prop)==="isStepLayout"?{...c,options:(w=c==null?void 0:c.options)==null?void 0:w.map(S=>({...S,disabled:!1}))}:(c==null?void 0:c.prop)==="isGridLayout"?{...c,disabled:!1}:c}),t("change",{target:n==null?void 0:n.target,styleConfigs:s.value,prop:h==null?void 0:h.prop})};return(h,v)=>{const y=a.resolveComponent("el-col"),c=a.resolveComponent("el-row");return a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,w=>(a.openBlock(),a.createBlock(c,{class:"style-row",key:w==null?void 0:w.prop},{default:a.withCtx(()=>[a.createVNode(y,{span:6,class:"style-row-title"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(w==null?void 0:w.label)+":",1)]),_:2},1024),a.createVNode(y,{span:18,style:{display:"flex"}},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(d(w.type)),{modelValue:w.value,"onUpdate:modelValue":S=>w.value=S,content:w==null?void 0:w.options,optionUrl:w==null?void 0:w.optionUrl,disabled:w==null?void 0:w.disabled,activeText:w==null?void 0:w.activeText,inactiveText:w==null?void 0:w.inactiveText,onChange:S=>b(w)},null,40,["modelValue","onUpdate:modelValue","content","optionUrl","disabled","activeText","inactiveText","onChange"]))]),_:2},1024)]),_:2},1024))),128)}}}),V1=ql._export_sfc(L1,[["__scopeId","data-v-6c233914"]]),$1=a.defineComponent({__name:"index",props:{compType:String,activeTabName:String,comp:Object,extendItem:{type:Object,default:{}},target:{type:String,default:"alone"},relatedData:Array},emits:["change","onButtonClick"],setup(l,{emit:r}){const n=l,t=r,s=[{required:!0,message:"输入不能为空",trigger:"blur"}],d=a.ref([]),b=T=>T==null?void 0:T.reduce((J,D)=>(J[D==null?void 0:D.prop]=D==null?void 0:D.rule,J),{}),h=a.computed(()=>({formRules:b(d.value),buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"保存",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]})),v=a.ref([]),y=a.ref(""),c=(T,J,D)=>{var x;let $=[];(n==null?void 0:n.activeTabName)==="任务配置"?($=[{label:"任务名称",prop:"任务名称",key:"任务名称",value:"",width:1,isFormColHidden:!1},{label:"任务关键词",prop:"任务关键词",key:"任务关键词",type:"cascader",value:[],width:1,isFormColHidden:!1,config:{checkOnClickNode:!0,showPrefix:!1},contents:[{label:"列名称",value:"列名称",children:T},{label:"按钮名称",value:"按钮名称",children:J}]},{label:"执行任务",prop:"执行任务",key:"执行任务",type:"cascader",value:[],width:1,isFormColHidden:!1,config:{checkOnClickNode:!0,showPrefix:!1},contents:[{label:"进度设置",value:"进度设置",children:[{label:"计时",value:"计时",children:[{label:"倒计时",value:"倒计时"},{label:"进行时",value:"进行时"}]},{label:"进度条",value:"进度条"}]},{label:"统计",value:"统计",children:[{label:"统计规则",value:"统计规则",children:[{label:"求和",value:"求和"},{label:"自定义",value:"自定义"}]}]}]},{label:"执行动作",prop:"执行动作",key:"执行动作",type:"select",value:[],width:1,isFormColHidden:!1,contents:[{label:"点击时",value:"点击时"},{label:"页面加载时",value:"页面加载时"}]},{label:"执行交互",prop:"执行交互",key:"执行交互",type:"cascader",value:[],width:1,isFormColHidden:!1,config:{checkOnClickNode:!0,showPrefix:!1},contents:[{label:"界面显示",value:"界面显示",children:[{label:"主页",value:"主页"},{label:"详情页",value:"详情页"}]},{label:"弹窗提示",value:"弹窗提示"},{label:"后台提交",value:"后台提交"}]},{label:"任务状态",prop:"任务状态",key:"任务状态",type:"radio",value:"启动",width:1,isFormColHidden:!1,contents:[{label:"启动",value:"启动"},{label:"暂停",value:"暂停"}]}],d.value=[{prop:"任务名称",rule:s},{prop:"任务关键词",rule:s},{prop:"执行任务",rule:s},{prop:"执行动作",rule:s},{prop:"执行交互",rule:s}]):(n==null?void 0:n.activeTabName)==="任务关联"&&($=[{prop:"关联名称",label:"关联名称",key:"关联名称",type:"input",value:"",isTableColHidden:!1,isFormColHidden:!1},{label:"关联形式",prop:"关联形式",key:"关联形式",type:"select",value:"流程式",width:1,isFormColHidden:!1,contents:[{label:"流程式",value:"流程式"}]},{label:"关联任务集合",prop:"关联任务集合",key:"关联任务集合",type:"tag",value:[],width:1,isFormColHidden:!1,contents:(x=n==null?void 0:n.relatedData)==null?void 0:x.map(g=>({label:g==null?void 0:g.任务名称,value:g==null?void 0:g.任务名称}))},{prop:"关联状态",label:"关联状态",key:"关联状态",type:"radio",value:"启动",isTableColHidden:!1,isFormColHidden:!1,contents:[{label:"启动",value:"启动"},{label:"暂停",value:"暂停"}]}],d.value=[{prop:"关联名称",rule:s},{prop:"关联状态",rule:s},{prop:"关联形式",rule:s},{prop:"关联任务集合",rule:s}]);let z;return D&&(D==null?void 0:D.length)>0?z=[...$,...w(T,J,D)]:z=$,z},w=(T,J,D)=>{const $=[{label:"进度关键词",prop:"进度关键词",key:"进度关键词",type:"input",value:"",width:2,isFormColHidden:!1,contents:[]},{label:"统计算法源",prop:"统计算法源",key:"统计算法源",type:"input",value:"",width:2,isFormColHidden:!1,contents:[]},{label:"统计是否获取错误集",prop:"统计是否获取错误集",key:"统计是否获取错误集",type:"radio",value:!1,width:2,isFormColHidden:!1,contents:[{label:"是",value:!0},{label:"否",value:!1}]}];return D?$==null?void 0:$.filter(z=>D==null?void 0:D.includes(z==null?void 0:z.prop)):$},S=(T,J)=>{var g,F,q,G,be,ze,De,ne,ke;const D=((be=(G=(q=(F=(g=n==null?void 0:n.comp)==null?void 0:g.compData)==null?void 0:F.find(X=>(X==null?void 0:X.key)==="header"))==null?void 0:q.contents)==null?void 0:G.filter(X=>(X==null?void 0:X.label)!=="操作"))==null?void 0:be.map(X=>({value:X==null?void 0:X.prop,label:X.label})))||[],$=/button/i,z=((ke=(ne=(De=(ze=n==null?void 0:n.comp)==null?void 0:ze.compData)==null?void 0:De.filter(X=>$.test(X==null?void 0:X.key)))==null?void 0:ne.flatMap(X=>X==null?void 0:X.contents))==null?void 0:ke.map(X=>({value:X==null?void 0:X.label,label:X.label})))||[],x=c(D,z,T);v.value=J?I1(x,J):x,T&&(T==null?void 0:T.length)>0&&d.value.push(...T==null?void 0:T.map(X=>({prop:X,rule:s})))};a.onMounted(()=>{S(null,n==null?void 0:n.extendItem)});const A=T=>{const J=T==null?void 0:T[y.value];if(y.value==="执行任务"){if(!(J!=null&&J.join("/")))return;const D=J==null?void 0:J.join("/");S(D==="统计/统计规则/自定义"?["统计算法源","统计是否获取错误集"]:D==="进度设置/进度条"?["进度关键词"]:null,T)}},_=T=>{t("change",{target:n==null?void 0:n.target,extendConfigs:T})},H=(T,J)=>{y.value=J==null?void 0:J.changeProp,A(T)},k=T=>{t("onButtonClick",T)};return(T,J)=>(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:v.value,key:v.value,isStartJustify:!1,isEnableWrap:!1,formRules:h.value.formRules,buttonValue:h.value.buttonValue,onChange:_,onBlurChange:H,onOnButtonClick:k},null,8,["rowContents","formRules","buttonValue"]))}}),R1=ql._export_sfc($1,[["__scopeId","data-v-7c660c1f"]]),P1={};function F1(l,r){return null}const j1=ql._export_sfc(P1,[["render",F1]]),H1={class:"form-operate-content"},U1={class:"form-operate-item"},q1={class:"operate-title"},K1={class:"operate-content"},W1={class:"fix-content"},Y1={class:"fix-button"},G1={class:"operate-title"},J1={class:"operate-content"},X1={class:"fix-content"},Z1={class:"fix-button"},Q1={style:{display:"flex","justify-content":"space-between"}},e2={class:"form-content"},a2={class:"dialog-footer"},l2={class:"form-content"},r2={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:r}){const n=l,t=r,s=a.ref(!1),d=a.ref([]),b=a.ref([]),h=a.ref(!1),v=a.ref([]),y=a.ref([]),c=a.ref(""),w=a.ref(!1),S=a.ref(0),A=a.ref([]),_=a.ref([]),H=(ne,ke)=>{if((ke==null?void 0:ke.type)=="Select"&&(ne==null?void 0:ne.key)==="selectRelateType"){const X=ke==null?void 0:ke.optionUrl;return(X==null?void 0:X.selectRelateType)||ke[ne.key]}if((ke==null?void 0:ke.type)=="Select"&&(ne==null?void 0:ne.key)==="menuSelect"){const X=ke==null?void 0:ke.optionUrl;return(X==null?void 0:X.menuSelect)||ke[ne.key]}if((ke==null?void 0:ke.type)=="Select"&&(ne==null?void 0:ne.key)==="groupSelect"){const X=ke==null?void 0:ke.optionUrl;return(X==null?void 0:X.groupSelect)||ke[ne.key]}if((ke==null?void 0:ke.type)=="Select"&&(ne==null?void 0:ne.key)==="originalContent")return(ke==null?void 0:ke.value)||ke[ne.key];if((ke==null?void 0:ke.type)=="Select"&&(ne==null?void 0:ne.key)==="multiple"){const X=ke[ne.key];return qs(X)?X:ne.default}return(ne==null?void 0:ne.label)==="类型"&&ke[ne.key]===""?"Input":(ne==null?void 0:ne.key)==="isFormColHidden"&&!ke[ne.key]?!1:ke[ne.key]},k=async ne=>{var pe,Ke,Sa,te,B,le;s.value=!0;let ke=[];const X=await((Sa=(Ke=(pe=na.FormContent)==null?void 0:pe.find(ye=>(ye==null?void 0:ye.key)===((ne==null?void 0:ne.type)===""?"Input":ne==null?void 0:ne.type)))==null?void 0:Ke.value)==null?void 0:Sa.value)??((B=(te=na.FormContent)==null?void 0:te.find(ye=>(ye==null?void 0:ye.key)===((ne==null?void 0:ne.type)===""?"Input":ne==null?void 0:ne.type)))==null?void 0:B.value);if(X==null||X.forEach(ye=>{S.value++,ke.push({label:ye==null?void 0:ye.label,name:ye==null?void 0:ye.label,type:ye.type,prop:ye==null?void 0:ye.prop,value:H(ye,ne),id:S.value,contents:ye==null?void 0:ye.options,width:(ne==null?void 0:ne.width)??1})}),ne!=null&&ne.menuSelect&&((le=ne==null?void 0:ne.menuSelect)==null?void 0:le.length)>0){const ye=await na.menuToContentType(ne==null?void 0:ne.menuSelect);ke=ke==null?void 0:ke.map(se=>((se==null?void 0:se.name)==="组信息选项"&&(se.contents=ye),se))}c.value=ne==null?void 0:ne.id,d.value=await na.selectToBase(na.formToOptionsContents(ke)),b.value=await na.selectToBase(na.formToOptionsContents(ke))},T=ne=>{var X;h.value=!0;let ke=[];(X=na.FormButton)==null||X.forEach(pe=>{S.value++,ke.push({label:pe==null?void 0:pe.label,name:pe==null?void 0:pe.label,type:pe.type,value:(pe==null?void 0:pe.label)==="类型"&&ne[pe.key]===""?"normal":ne[pe.key],id:S.value,contents:pe==null?void 0:pe.options})}),A.value=ke,_.value=ke,c.value=ne==null?void 0:ne.id};a.watch(()=>w.value,()=>{var ke,X;let ne=I.cloneDeep(n.originalItemContents);(ke=I.cloneDeep(n.originalItemContents))!=null&&ke.find(pe=>(pe==null?void 0:pe.key)==="enableWrap")?ne=(X=I.cloneDeep(n.originalItemContents))==null?void 0:X.map(pe=>((pe==null?void 0:pe.key)==="enableWrap"&&(pe.contents=!w.value),pe)):ne.push({key:"enableWrap",contents:!w.value}),t("change",ne)},{deep:!0});const J=()=>{var X,pe,Ke,Sa,te;A.value=_.value;let ne={};if(c.value!==""?ne.id=c.value:(S.value++,ne.id="id"+S.value),(X=A.value)==null||X.forEach(B=>{var ye;const le=(ye=na.FormButton)==null?void 0:ye.find(se=>(se==null?void 0:se.label)===(B==null?void 0:B.label));le&&(ne[le.key]=B.value)}),(pe=v.value)!=null&&pe.find(B=>B.id===ne.id))v.value=(Ke=v.value)==null?void 0:Ke.map(B=>(B.id===ne.id&&(B=ne),B));else{let B=I.cloneDeep(v.value);v.value||(v.value=[]),B.push(ne),v.value=B}h.value=!1,c.value="";let ke=I.cloneDeep(n.originalItemContents);(Sa=I.cloneDeep(n.originalItemContents))!=null&&Sa.find(B=>(B==null?void 0:B.key)==="formButton")?ke=(te=I.cloneDeep(n.originalItemContents))==null?void 0:te.map(B=>((B==null?void 0:B.key)==="formButton"&&(B.contents=v.value),B)):ke.push({key:"formButton",contents:v.value}),t("change",ke)},D=ne=>{I.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var ke,X;y.value=(ke=I.cloneDeep(y.value))==null?void 0:ke.filter(pe=>(pe==null?void 0:pe.id)!==(ne==null?void 0:ne.id)),t("change",(X=I.cloneDeep(n.originalItemContents))==null?void 0:X.map(pe=>((pe==null?void 0:pe.key)==="formContent"&&(pe.contents=y.value),pe))),ll.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},$=ne=>{I.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var ke,X;v.value=(ke=I.cloneDeep(v.value))==null?void 0:ke.filter(pe=>(pe==null?void 0:pe.id)!==(ne==null?void 0:ne.id)),t("change",(X=I.cloneDeep(n.originalItemContents))==null?void 0:X.map(pe=>((pe==null?void 0:pe.key)==="formButton"&&(pe.contents=v.value),pe))),ll.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},z=()=>{var ke;h.value=!0;let ne=[];(ke=na.FormButton)==null||ke.forEach(X=>{S.value++,ne.push({label:X==null?void 0:X.label,name:X==null?void 0:X.label,type:X.type,value:(X==null?void 0:X.label)==="类型"?"normal":"",id:S.value,contents:X==null?void 0:X.options})}),A.value=ne,_.value=ne},x=()=>{var ke,X,pe;s.value=!0;let ne=[];(pe=(X=(ke=na.FormContent)==null?void 0:ke.find(Ke=>(Ke==null?void 0:Ke.key)==="Input"))==null?void 0:X.value)==null||pe.forEach(Ke=>{S.value++,ne.push({label:Ke==null?void 0:Ke.label,name:Ke==null?void 0:Ke.label,type:Ke.type,value:(Ke==null?void 0:Ke.label)==="类型"?"Input":"",id:S.value,contents:Ke==null?void 0:Ke.options})}),d.value=ne,b.value=ne},g=ne=>{let ke=I.cloneDeep(_.value);ke=ke==null?void 0:ke.map(X=>(X.value=ne==null?void 0:ne[X.name],X)),_.value=ke},F=ne=>{const ke=ne.find(Ke=>(Ke==null?void 0:Ke.name)==="类型");if((ke==null?void 0:ke.value)!="Select")return;const X=ne.find(Ke=>(Ke==null?void 0:Ke.name)==="多选"),pe=ne.find(Ke=>(Ke==null?void 0:Ke.name)==="初始值");X!=null&&X.value&&ko.isString(pe.value)&&(pe.value=[pe.value]),!(X!=null&&X.value)&&!ko.isString(pe.value)&&(pe.value="")},q=async ne=>{var ke,X,pe,Ke,Sa,te,B,le,ye,se,Ne,ia;if((ne==null?void 0:ne.类型)!==((X=(ke=b.value)==null?void 0:ke.find(xa=>(xa==null?void 0:xa.label)==="类型"))==null?void 0:X.value)){let xa=[];const Ha=await((Sa=(Ke=(pe=na.FormContent)==null?void 0:pe.find(ee=>(ee==null?void 0:ee.key)===((ne==null?void 0:ne.类型)===""?"Input":ne==null?void 0:ne.类型)))==null?void 0:Ke.value)==null?void 0:Sa.value)?await((se=(ye=(le=na.FormContent)==null?void 0:le.find(ee=>(ee==null?void 0:ee.key)===((ne==null?void 0:ne.类型)===""?"Input":ne==null?void 0:ne.类型)))==null?void 0:ye.value)==null?void 0:se.value):(B=(te=na.FormContent)==null?void 0:te.find(ee=>(ee==null?void 0:ee.key)===((ne==null?void 0:ne.类型)===""?"Input":ne==null?void 0:ne.类型)))==null?void 0:B.value;if(Ha==null||Ha.forEach(ee=>{var Pe,ga;S.value++;const ea=_u(ee==null?void 0:ee.default)?(ne==null?void 0:ne[ee.label])??ee.value??"":ee==null?void 0:ee.default;xa.push({label:ee==null?void 0:ee.label,name:ee==null?void 0:ee.label,type:ee.type,value:ea,prop:ee==null?void 0:ee.prop,id:S.value,contents:ee==null?void 0:ee.options,width:((ga=(Pe=b.value)==null?void 0:Pe[0])==null?void 0:ga.width)??1})}),ne!=null&&ne.菜单选项&&((Ne=ne==null?void 0:ne.菜单选项)==null?void 0:Ne.length)>0){const ee=await na.menuToContentType(ne==null?void 0:ne.菜单选项);xa=xa==null?void 0:xa.map(ea=>((ea==null?void 0:ea.name)==="组信息选项"&&(ea.contents=ee),ea))}F(xa),b.value=await na.selectToBase(I.cloneDeep(xa)),d.value=await na.selectToBase(I.cloneDeep(xa))}else{let xa=I.cloneDeep(b.value);if(xa=xa==null?void 0:xa.map(Ha=>(Ha.value=ne==null?void 0:ne[Ha.name],Ha)),ne!=null&&ne.菜单选项&&((ia=ne==null?void 0:ne.菜单选项)==null?void 0:ia.length)>0){const Ha=await na.menuToContentType(ne==null?void 0:ne.菜单选项);xa=xa==null?void 0:xa.map(ee=>((ee==null?void 0:ee.name)==="组信息选项"&&(ee.contents=Ha),ee))}xa=na.formToOptionsContents(xa),F(xa),b.value=await na.selectToBase(I.cloneDeep(xa))}},G=ne=>{ne||(d.value=b.value)},be=async ne=>{await q(ne),d.value=b.value},ze=$a.debounce(async()=>{var pe,Ke,Sa,te,B,le,ye,se,Ne,ia,xa,Ha;d.value=b.value;let ne={};ne.width=((Ke=(pe=d.value)==null?void 0:pe[0])==null?void 0:Ke.width)??1,c.value!==""?ne.id=c.value:(S.value++,ne.id="id"+S.value);let ke=await((B=(te=(Sa=na.FormContent)==null?void 0:Sa.find(ee=>{var ea,Pe;return(ee==null?void 0:ee.key)===(((Pe=(ea=d.value)==null?void 0:ea.find(ga=>(ga==null?void 0:ga.label)==="类型"))==null?void 0:Pe.value)??"label")}))==null?void 0:te.value)==null?void 0:B.value)??((ye=(le=na.FormContent)==null?void 0:le.find(ee=>{var ea,Pe;return(ee==null?void 0:ee.key)===(((Pe=(ea=d.value)==null?void 0:ea.find(ga=>(ga==null?void 0:ga.label)==="类型"))==null?void 0:Pe.value)??"label")}))==null?void 0:ye.value);if((se=d.value)==null||se.forEach(ee=>{const ea=ke==null?void 0:ke.find(Pe=>(Pe==null?void 0:Pe.label)===(ee==null?void 0:ee.label));ea&&(ne[ea.key]=ee.value)}),ne.width=ne.width?ne.width:1,ne.key=ne==null?void 0:ne.label,ne.isFormColHidden=ne==null?void 0:ne.isFormColHidden,(Ne=y.value)!=null&&Ne.find(ee=>ee.id===ne.id))y.value=(ia=y.value)==null?void 0:ia.map(ee=>(ee.id===ne.id&&(ee=ne),ee));else{let ee=I.cloneDeep(y.value);ee.push(ne),y.value=ee}y.value=y.value.map(({id:ee,...ea})=>ea),s.value=!1,c.value="";let X=I.cloneDeep(n.originalItemContents);(xa=I.cloneDeep(n.originalItemContents))!=null&&xa.find(ee=>(ee==null?void 0:ee.key)==="formContent")?X=(Ha=I.cloneDeep(n.originalItemContents))==null?void 0:Ha.map(ee=>((ee==null?void 0:ee.key)==="formContent"&&(ee.contents=y.value),ee)):X.push({key:"formContent",contents:y.value}),t("change",X)},300),De=()=>{s.value=!1,h.value=!1,c.value="",b.value=[],_.value=[]};return a.watch(()=>n.originalItemContents,()=>{var ke,X,pe,Ke,Sa,te;if(!n.originalItemContents||n.originalItemContents.length===0)return;const ne=I.cloneDeep(n.originalItemContents);y.value=((ke=ne==null?void 0:ne.find(B=>(B==null?void 0:B.key)==="formContent"))==null?void 0:ke.contents)??[],v.value=((X=ne==null?void 0:ne.find(B=>(B==null?void 0:B.key)==="formButton"))==null?void 0:X.contents)??[],w.value=(pe=ne==null?void 0:ne.find(B=>(B==null?void 0:B.key)==="enableWrap"))!=null&&pe.contents?!((Ke=ne==null?void 0:ne.find(B=>(B==null?void 0:B.key)==="enableWrap"))!=null&&Ke.contents):!0,y.value=(Sa=I.cloneDeep(y.value))==null?void 0:Sa.map((B,le)=>{var se;let ye=B;return ye.id=(B==null?void 0:B.id)??le,B!=null&&B.label||(B.label=(B==null?void 0:B.key)??(B==null?void 0:B.label)??""),B!=null&&B.type||(B.type=(B==null?void 0:B.type)??""),B.contents=((se=B==null?void 0:B.options)==null?void 0:se.length)===0?(B==null?void 0:B.contents)??"":B==null?void 0:B.options,ye}),y.value=na.formToOptionsContents(y.value),v.value=(te=v.value)==null?void 0:te.map((B,le)=>B={label:(B==null?void 0:B.label)??"",type:(B==null?void 0:B.type)??"",background:(B==null?void 0:B.background)??"var(--ssComponent-primary-color)",id:le})},{deep:!0,immediate:!0}),(ne,ke)=>{const X=a.resolveComponent("svg-icon"),pe=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",H1,[a.createElementVNode("div",U1,[a.createElementVNode("div",q1,[ke[2]||(ke[2]=a.createElementVNode("div",null,a.toDisplayString("表单内容"),-1)),a.createVNode(pe,{class:"icon-content",id:"themeButton",onClick:x},{icon:a.withCtx(()=>[a.createVNode(X,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[ke[1]||(ke[1]=a.createElementVNode("div",null,a.toDisplayString("新增"),-1))]),_:1,__:[1]})]),a.createElementVNode("div",K1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(y.value,(Ke,Sa)=>(a.openBlock(),a.createElementBlock("div",{key:Sa},[a.createElementVNode("div",W1,[a.createElementVNode("div",null,a.toDisplayString(Ke.label),1),a.createElementVNode("div",Y1,[a.createVNode(X,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:te=>k(Ke)},null,8,["onClick"]),a.createVNode(X,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:te=>D(Ke)},null,8,["onClick"])])])]))),128))]),a.createElementVNode("div",G1,[ke[4]||(ke[4]=a.createElementVNode("div",null,a.toDisplayString("表单按钮"),-1)),a.createVNode(pe,{class:"icon-content",id:"themeButton",onClick:z},{icon:a.withCtx(()=>[a.createVNode(X,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[ke[3]||(ke[3]=a.createTextVNode(" 新增 "))]),_:1,__:[3]})]),a.createElementVNode("div",J1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(v.value,(Ke,Sa)=>(a.openBlock(),a.createElementBlock("div",{key:Sa},[a.createElementVNode("div",X1,[a.createElementVNode("div",null,a.toDisplayString(Ke.label),1),a.createElementVNode("div",Z1,[a.createVNode(X,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:te=>T(Ke)},null,8,["onClick"]),a.createVNode(X,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:te=>$(Ke)},null,8,["onClick"])])])]))),128))]),ke[6]||(ke[6]=a.createElementVNode("div",{class:"operate-title"},[a.createElementVNode("div",null,a.toDisplayString("表单布局"))],-1)),a.createElementVNode("div",Q1,[ke[5]||(ke[5]=a.createElementVNode("div",{class:"operate-center-content"},a.toDisplayString("是否自动撑宽"),-1)),a.createVNode(pl._sfc_main$1,{modelValue:w.value,"onUpdate:modelValue":ke[0]||(ke[0]=Ke=>w.value=Ke)},null,8,["modelValue"])])]),a.createVNode(vr.ssDialog,{visible:s.value,onBeforeDestroy:De,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",e2,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:d.value,key:d.value,isEnableWrap:!0,onChange:q,onChangeVisible:G,onBlurChange:be},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",a2,[a.createVNode(pe,{onClick:De,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>ke[7]||(ke[7]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[7]}),a.createVNode(pe,{class:"ok-button button",onClick:a.unref(ze),id:"themeButton"},{default:a.withCtx(()=>ke[8]||(ke[8]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[8]},8,["onClick"])])]),_:1},8,["visible"]),a.createVNode(vr.ssDialog,{visible:h.value,onBeforeDestroy:De,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",l2,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:A.value,key:A.value,isEnableWrap:!0,onChange:g},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",{class:"dialog-footer"},[a.createElementVNode("div",{onClick:De,class:"cancel-button button"},a.toDisplayString("取消")),a.createElementVNode("div",{class:"ok-button button",onClick:J},a.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},vs=ql._export_sfc(r2,[["__scopeId","data-v-20850524"]]),n2={class:"step-module content"},t2={class:"module-data"},o2={class:"step-module layout"},i2={class:"form-content"},s2=a.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:r}){const n=l,t=r,s=a.ref([{label:"方向:",prop:"direction",type:"RADIO",contents:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}],value:"horizontal"},{label:"是否居中:",prop:"alignCenter",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0},{label:"应用简洁风格",prop:"simple",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1}]),d=a.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"标题",prop:"title",type:"input",value:""},{label:"描述",prop:"description",type:"input",value:""}]),b=a.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),h=a.reactive({visible:!1,width:"40%",title:"步骤条"}),v=a.ref("create"),y=a.ref({}),c=a.ref([]),w=k=>{var T;y.value=k,t("change",(T=_())==null?void 0:T.compData)},S=(k,T)=>{var J,D;switch(k){case"create":(J=d.value)==null||J.forEach($=>{$.value=""}),v.value="create",h.visible=!0;break;case"update":(D=d.value)==null||D.forEach($=>{$.value=T[$==null?void 0:$.prop]}),v.value="update",h.visible=!0;break;case"delete":c.value.splice(T,1),v.value="delete";break}},A=k=>{var T,J,D;if((k==null?void 0:k.buttonName)==="确认"){const $=I.cloneDeep(k==null?void 0:k.content);switch(Object.keys($).forEach(z=>{$[z]===""&&delete $[z]}),v.value){case"create":c.value.push({...$,index:((T=c.value)==null?void 0:T.length)+1});break;case"update":c.value=(J=c.value)==null?void 0:J.map(z=>z.index===($==null?void 0:$.index)?{...z,title:$==null?void 0:$.title,description:$==null?void 0:$.description}:z);break}t("change",(D=_())==null?void 0:D.compData),h.visible=!1}else h.visible=!1},_=()=>({comp:"Step",compData:[{key:"stepList",contents:c.value},{key:"stepConfig",contents:y.value}]}),H=()=>{h.visible=!1};return a.watch(()=>n==null?void 0:n.itemContents,k=>{var T,J;k&&(y.value=((T=k==null?void 0:k.find(D=>D.key==="stepConfig"))==null?void 0:T.contents)??{},c.value=((J=k==null?void 0:k.find(D=>D.key==="stepList"))==null?void 0:J.contents)??[])},{immediate:!0}),(k,T)=>{const J=a.resolveComponent("svg-icon"),D=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",n2,[T[2]||(T[2]=a.createElementVNode("h4",{class:"module-title"},"内容",-1)),a.createVNode(D,{class:"module-icon",id:"themeButton",onClick:T[0]||(T[0]=$=>S("create"))},{icon:a.withCtx(()=>[a.createVNode(J,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[T[1]||(T[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",t2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.value,($,z)=>(a.openBlock(),a.createElementBlock("div",{class:"module-data-item",key:z},[a.createElementVNode("span",null,a.toDisplayString($==null?void 0:$.title),1),a.createElementVNode("div",null,[a.createVNode(D,{type:"primary",size:"small",onClick:x=>S("update",{...$,index:z+1})},{default:a.withCtx(()=>T[3]||(T[3]=[a.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),a.createVNode(D,{type:"danger",size:"small",onClick:x=>S("delete",z)},{default:a.withCtx(()=>T[4]||(T[4]=[a.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),a.createElementVNode("div",o2,[T[5]||(T[5]=a.createElementVNode("div",{class:"module-title"},"布局",-1)),a.createVNode(pl.ssForm,{rowContents:s.value,onChange:w},null,8,["rowContents"])])]),a.createVNode(vr.ssDialog,{visible:h.visible,title:h.title,onBeforeDestroy:H,width:h.width},{default:a.withCtx(()=>[a.createElementVNode("div",i2,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:d.value,key:d.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:b.value,onOnButtonClick:A},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),c2=ql._export_sfc(s2,[["__scopeId","data-v-7dbd17f2"]]),u2={class:"step-module content"},d2={class:"module-data"},p2={class:"step-module layout"},f2={class:"form-content"},h2=a.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:r}){const n=l,t=r,s=a.ref("create"),d=a.ref({}),b=a.ref([]),h=a.ref([{label:"方向:",prop:"placement",type:"radio",contents:[{label:"底部",value:"bottom"},{label:"顶部",value:"top"}],value:"bottom"},{label:"节点类型:",prop:"type",type:"select",contents:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}],value:"primary"},{label:"颜色:",prop:"color",type:"color",value:""},{label:"尺寸:",prop:"size",type:"radio",contents:[{label:"normal",value:"normal"},{label:"large",value:"large"}],value:"normal"},{label:"是否空心",prop:"isHollow",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0},{label:"是否居中",prop:"isCenter",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0}]),v=a.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"内容",prop:"content",type:"input",value:""},{label:"时间戳",prop:"timestamp",type:"datetime",value:""}]),y=a.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),c=a.reactive({visible:!1,width:"40%",title:"时间线"}),w=k=>{var T;d.value=k,t("change",(T=_())==null?void 0:T.compData)},S=(k,T)=>{var J,D;switch(k){case"create":(J=v.value)==null||J.forEach($=>{$.value=""}),s.value="create",c.visible=!0;break;case"update":(D=v.value)==null||D.forEach($=>{$.value=T[$==null?void 0:$.prop]}),s.value="update",c.visible=!0;break;case"delete":b.value.splice(T,1),s.value="delete";break}},A=k=>{var T,J,D,$;if((k==null?void 0:k.buttonName)==="确认"){const z=I.cloneDeep(k==null?void 0:k.content);switch(Object.keys(z).forEach(x=>{z[x]===""&&delete z[x]}),s.value){case"create":(J=b.value)==null||J.push({...z,index:((T=b.value)==null?void 0:T.length)+1});break;case"update":b.value=(D=b.value)==null?void 0:D.map(x=>x.index===(z==null?void 0:z.index)?{...x,content:z==null?void 0:z.content,timestamp:z==null?void 0:z.timestamp}:x);break}t("change",($=_())==null?void 0:$.compData),c.visible=!1}else c.visible=!1},_=()=>({comp:"TimeLine",compData:[{key:"timeLineList",contents:b.value},{key:"timeLineConfig",contents:d.value}]}),H=()=>{c.visible=!1};return a.watch(()=>n==null?void 0:n.itemContents,k=>{var T,J;k&&(d.value=((T=k==null?void 0:k.find(D=>D.key==="timeLineConfig"))==null?void 0:T.contents)??{},b.value=((J=k==null?void 0:k.find(D=>D.key==="timeLineList"))==null?void 0:J.contents)??[])},{immediate:!0}),(k,T)=>{const J=a.resolveComponent("svg-icon"),D=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",u2,[T[2]||(T[2]=a.createElementVNode("h4",{class:"module-title"},"内容",-1)),a.createVNode(D,{class:"module-icon",id:"themeButton",onClick:T[0]||(T[0]=$=>S("create"))},{icon:a.withCtx(()=>[a.createVNode(J,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[T[1]||(T[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",d2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(b.value,($,z)=>(a.openBlock(),a.createElementBlock("div",{class:"module-data-item",key:z},[a.createElementVNode("span",null,a.toDisplayString($==null?void 0:$.content),1),a.createElementVNode("div",null,[a.createVNode(D,{type:"primary",size:"small",onClick:x=>S("update",{...$,index:z+1})},{default:a.withCtx(()=>T[3]||(T[3]=[a.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),a.createVNode(D,{type:"danger",size:"small",onClick:x=>S("delete",z)},{default:a.withCtx(()=>T[4]||(T[4]=[a.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),a.createElementVNode("div",p2,[T[5]||(T[5]=a.createElementVNode("div",{class:"module-title"},"布局",-1)),a.createVNode(pl.ssForm,{rowContents:h.value,onChange:w},null,8,["rowContents"])])]),a.createVNode(vr.ssDialog,{visible:c.visible,title:c.title,onBeforeDestroy:H,width:c.width},{default:a.withCtx(()=>[a.createElementVNode("div",f2,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:v.value,key:v.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:y.value,onOnButtonClick:A},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),v2=ql._export_sfc(h2,[["__scopeId","data-v-39ffc861"]]),m2={};function y2(l,r){return a.openBlock(),a.createElementBlock("div")}const g2=ql._export_sfc(m2,[["render",y2]]),b2={class:"extra-content"},k2={key:0},x2={key:1},_2={class:"dialog-footer"},w2={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},emits:["change"],setup(l,{emit:r}){const n=l,t=a.ref(0),s=a.ref(),d=a.ref(),b=r,h=a.ref(!1),v=a.ref({}),y=a.ref({}),c=a.ref();a.watch(()=>[n.itemData],()=>{var $;const D=I.cloneDeep(n.itemData);s.value=($=I.cloneDeep(D))==null?void 0:$.map(z=>{var x;if(z.key==="extra"){let g=[];(x=z.value)==null||x.forEach(F=>{var q;g.push((q=Object.values(F))==null?void 0:q[0])}),z.value=g}return z})},{deep:!0,immediate:!0});const w=(D,$,z,x)=>{var F;let g={};((F=D==null?void 0:D[0])==null?void 0:F.contents)==="详情"&&(h.value=!0,g[$]=D,d.value=D==null?void 0:D.filter(q=>(q==null?void 0:q.key)!=="tableContentName"),v.value=g,y.value=z,c.value=x.id)},S=D=>{var q,G,be,ze;const $=(G=(q=Object.values(I.cloneDeep(v.value)))==null?void 0:q[0])==null?void 0:G.filter(De=>(De==null?void 0:De.key)==="tableContentName"),z=(ze=(be=Object.values(I.cloneDeep(v.value)))==null?void 0:be[0])==null?void 0:ze.filter(De=>(De==null?void 0:De.key)!=="tableContentName"),x=z==null?void 0:z.map((De,ne)=>{var ke;return ne===D.index&&(De==null?void 0:De.comp)==="Table"&&(De.compData=(ke=De.compData)==null?void 0:ke.map(X=>{var pe,Ke;return(X==null?void 0:X.key)==="tableContents"&&(X.contents=(Ke=(pe=D.content)==null?void 0:pe.map(Sa=>{let te={};for(let B in Sa)B!=="id"&&(te[B]=Sa[B]);return te}))==null?void 0:Ke.map(Sa=>Object.values(Sa))),X})),De});x.unshift($==null?void 0:$[0]);let g=I.cloneDeep(v.value),F={};for(let De in g)F[De]=x;v.value=F},A=()=>{h.value=!1,v.value={},y.value={},c.value=void 0,t.value++},_=D=>{var q,G,be,ze;const $=(G=(q=Object.values(I.cloneDeep(v.value)))==null?void 0:q[0])==null?void 0:G.filter(De=>(De==null?void 0:De.key)==="tableContentName"),z=(ze=(be=Object.values(I.cloneDeep(v.value)))==null?void 0:be[0])==null?void 0:ze.filter(De=>(De==null?void 0:De.key)!=="tableContentName"),x=z==null?void 0:z.map((De,ne)=>(ne===D.index&&(De.compData=D.contents),De));x.unshift($==null?void 0:$[0]);let g=I.cloneDeep(v.value),F={};for(let De in g)F[De]=x;v.value=F},H=()=>{var $,z;let D={};for(let x in y.value)x===(($=Object.keys(v.value))==null?void 0:$[0])?D[x]=(z=Object.values(v.value))==null?void 0:z[0]:D[x]=y.value[x];b("change",{buttonName:"编辑",index:c.value,singleContent:D},"methodData"),h.value=!1,v.value={},y.value={},c.value=void 0},k=()=>{h.value=!1,v.value={},y.value={},c.value=void 0},T=D=>{b("change",D,"methodData")},J=D=>St(D);return(D,$)=>{const z=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",b2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,(x,g)=>(a.openBlock(),a.createElementBlock("div",{key:t.value},[(x==null?void 0:x.key)==="extra"?(a.openBlock(),a.createElementBlock("div",k2)):(a.openBlock(),a.createElementBlock("div",x2,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(J(x.comp)),{itemData:x==null?void 0:x.compData,childItemData:x==null?void 0:x.itemChildData,key:g,index:(x==null?void 0:x.id)??g,onContentClick:w,onChange:T},null,40,["itemData","childItemData","index"]))]))]))),128)),a.createVNode(vr.ssDialog,{visible:h.value,onBeforeDestroy:k},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(d.value,(x,g)=>(a.openBlock(),a.createElementBlock("div",{key:g,class:"extra-dialog"},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(J(x.comp)),{itemData:x==null?void 0:x.compData,onChange:S,childItemData:x==null?void 0:x.itemChildData,key:g,onContentChange:_,index:(x==null?void 0:x.id)??g,class:"extra-component"},null,40,["itemData","childItemData","index"]))]))),128))]),footer:a.withCtx(()=>[a.createElementVNode("div",_2,[a.createVNode(z,{class:"cancel-button footer-button",onClick:A,id:"themeBorderButton"},{default:a.withCtx(()=>$[0]||($[0]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[0]}),a.createVNode(z,{class:"confirm-button footer-button",onClick:H,id:"themeButton"},{default:a.withCtx(()=>$[1]||($[1]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},C2=ql._export_sfc(w2,[["__scopeId","data-v-2d9c5ab2"]]),E2={key:0,class:"method-content"},S2={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},setup(l){const r=a.ref([]),n=na.useOriginalState(I.pinia),{originalPath:t}=I.storeToRefs(n),s=l,d=a.ref(!1),b=a.ref(),h=na.useTableComp(I.pinia),{multipleTableConst:v}=I.storeToRefs(h),y=I.useModelComp(I.pinia),c=a.ref(!1),w=I.useMenuState(I.pinia),S=I.useLoginState(I.pinia),{itemData:A,isEdit:_,routeToChildPath:H,tableViewContents:k,lockingPage:T,payloadTypes:J}=I.storeToRefs(y),{activeMenuPath:D,platform:$,childMenu:z}=I.storeToRefs(w),{loginUserInfo:x}=I.storeToRefs(S),g=a.ref(!1),F=async()=>{var te,B;(te=r.value)!=null&&te.find(le=>(le==null?void 0:le.buttonName)==="保存")&&await X((B=r.value)==null?void 0:B.find(le=>(le==null?void 0:le.buttonName)==="保存")),await na.onSaveBack()};a.watch(()=>A.value,async()=>{_.value==="view"&&!g.value&&await Sa(I.cloneDeep(s.itemData)),g.value=!1},{deep:!0});const q=()=>{d.value=!1,b.value=void 0},G=te=>te.map(B=>{const le={};for(const ye in B){const se=B[ye];if(ye.includes(v.value)){const Ne=ye.split(v.value);let ia=le;Ne.forEach((xa,Ha)=>{Ha===Ne.length-1?ia[xa]=se:(ia[xa]||(ia[xa]={}),ia=ia[xa])})}else le[ye]=se}return le}),be=async(te,B,le=[])=>{var se,Ne,ia,xa,Ha,ee,ea,Pe,ga,He,Ae,Re,Ge,Ka,Ia;let ye=(se=I.cloneDeep(B))==null?void 0:se.filter(R=>(R==null?void 0:R.comp)!=="methodButton");if(te!=null&&te.includes("[")){let R=(ee=(Ha=(xa=(ia=(Ne=I.cloneDeep(te))==null?void 0:Ne.split("["))==null?void 0:ia[1])==null?void 0:xa.split("]"))==null?void 0:Ha[0])==null?void 0:ee.split(":"),P="";if(R!=null&&R[0]){let Y=(ea=ye==null?void 0:ye.find(oe=>(oe==null?void 0:oe.name)===(R==null?void 0:R[0])))==null?void 0:ea.compData;if(!Y){let oe=(Pe=te==null?void 0:te.split("["))==null?void 0:Pe[0],ie=await na.getItemData(oe,sessionStorage.getItem("systemKey"),"",!1,"","",le);Y=(ga=ie==null?void 0:ie.find(fa=>(fa==null?void 0:fa.name)===(R==null?void 0:R[0])))==null?void 0:ga.compData}Y==null||Y.forEach(oe=>{var ie,fa,ra,Ie,we,Ca;if((oe==null?void 0:oe.key)==="formContent")(ie=oe==null?void 0:oe.contents)==null||ie.forEach(fe=>{var Je;(fe==null?void 0:fe.key)===(R==null?void 0:R[1])&&(Array.isArray(fe==null?void 0:fe.value)?P=fe==null?void 0:fe.value:P=(Je=fe==null?void 0:fe.value)==null?void 0:Je.toString())});else if((oe==null?void 0:oe.key)==="tableContents"){let fe=[],Je=(fa=Y==null?void 0:Y.find(Fe=>(Fe==null?void 0:Fe.key)==="header"))==null?void 0:fa.contents,Ze=(R==null?void 0:R[1])??"";if(Je!=null&&Je.every(Fe=>Array.isArray(Fe))){let Fe=na.getColumnChild((we=Je==null?void 0:Je[0])==null?void 0:we.filter(ka=>(ka==null?void 0:ka.label)!=="操作"));(Ca=oe.contents)==null||Ca.forEach(ka=>{let $e={};ka=ka==null?void 0:ka.filter(pa=>!(pa!=null&&pa.id)),Fe==null||Fe.forEach((pa,re)=>{let Se=ka[re];typeof ka[re]=="number"&&(Se=ka[re].toString()),(Ze===""||Ze===pa.prop)&&($e[pa.prop]=Se)}),fe.push($e)}),fe=G(fe)}else{let Fe=(ra=Je==null?void 0:Je.map(ka=>ka==null?void 0:ka.label))==null?void 0:ra.filter(ka=>ka!=="操作");(Ie=oe.contents)==null||Ie.forEach(ka=>{let $e={};ka=ka==null?void 0:ka.filter(pa=>!(pa!=null&&pa.id)),Fe==null||Fe.forEach((pa,re)=>{let Se=ka[re];typeof ka[re]=="number"&&(Se=ka[re].toString()),(Ze===""||Ze===pa)&&($e[pa]=Se)}),fe.push($e)})}P=fe}})}return P}else if(te!=null&&te.includes("/")){let R={};return(He=I.cloneDeep(ye))==null||He.forEach((P,Y)=>{var oe,ie,fa,ra,Ie,we,Ca,fe,Je,Ze,Fe,ka,$e,pa,re,Se,K,je,Be;if((P==null?void 0:P.comp)==="Table"){let za=Array.isArray((fa=(ie=(oe=P==null?void 0:P.compData)==null?void 0:oe.find(_e=>(_e==null?void 0:_e.key)==="header"))==null?void 0:ie.contents)==null?void 0:fa[0])?(Ca=(we=(Ie=(ra=P==null?void 0:P.compData)==null?void 0:ra.find(_e=>(_e==null?void 0:_e.key)==="header"))==null?void 0:Ie.contents)==null?void 0:we[0])==null?void 0:Ca.some(_e=>_e==null?void 0:_e.children):[],Ea=(Ze=(Je=(fe=P==null?void 0:P.compData)==null?void 0:fe.find(_e=>(_e==null?void 0:_e.key)==="tableContents"))==null?void 0:Je.contents)==null?void 0:Ze.map(_e=>(_e!=null&&_e.find(Z=>Z==null?void 0:Z.id)&&(_e=_e.slice(1)),_e)),Ye=(re=(pa=($e=(ka=(Fe=P==null?void 0:P.compData)==null?void 0:Fe.find(_e=>(_e==null?void 0:_e.key)==="header"))==null?void 0:ka.contents)==null?void 0:$e[0])==null?void 0:pa[0])==null?void 0:re.label,ua=(K=(Se=P==null?void 0:P.compData)==null?void 0:Se.find(_e=>(_e==null?void 0:_e.key)==="header"))==null?void 0:K.contents;if(za)(za==null?void 0:za.length)===0?R[P.name]=R!=null&&R[P.name]?R[P.name]:na.tableToForm(Ea,ua):R[Ye]=na.tableToForm(Ea,ua);else{const _e=[];ua=ua.slice(1,ua.length-1),ua==null||ua.forEach((Z,ya)=>{Ea==null||Ea.forEach(We=>{_e.push({key:Z.label+We[0],value:We[ya+1]})})}),R["form"+Y]=_e}}else{const za=(Be=(je=P.compData)==null?void 0:je.find(Ye=>(Ye==null?void 0:Ye.key)==="formContent"))==null?void 0:Be.contents;R!=null&&R.form||(R.form=[]);const Ea=[];za==null||za.forEach(Ye=>{Ye.key!==""&&(Ye={key:(Ye==null?void 0:Ye.key)??(Ye==null?void 0:Ye.label),value:Ye==null?void 0:Ye.value},Ea.push(Ye))}),R.form=[...Ea,...I.cloneDeep(R==null?void 0:R.form)]}}),R}else{if(te==="createInsofDataApi"){let R=(Ae=I.cloneDeep(B))==null?void 0:Ae[0];return R={comp:(Re=I.cloneDeep(R))==null?void 0:Re.comp,compData:(Ge=I.cloneDeep(R))==null?void 0:Ge.compData,name:(Ka=I.cloneDeep(R))==null?void 0:Ka.name,isShow:(Ia=I.cloneDeep(R))==null?void 0:Ia.isShow},{key:{type:"structure",systemKey:sessionStorage.getItem("systemKey"),parentTable:"",pageKey:D.value},value:{pageData:R}}}return te}},ze=async(te,B,le)=>{var Ne,ia,xa;let ye=await na.getItemData(B,sessionStorage.getItem("systemKey"),""),se=ye==null?void 0:ye.find(Ha=>(Ha==null?void 0:Ha.name)===(le==null?void 0:le[0]));if(se){if((se==null?void 0:se.comp)==="Table"){let Ha={};for(let Re in I.cloneDeep(te))I.cloneDeep(te)[Re]!=="loginUser"?Ha[Re]=I.cloneDeep(te)[Re]:Ha[Re]=((Ne=x.value)==null?void 0:Ne.account)||((ia=x.value)==null?void 0:ia.账号);let ee=[],ea=Ha;Array.isArray(te)||(ea=[Ha]),ea==null||ea.forEach(Re=>{ee.push({[Re[le[1]]]:Re})});let Pe=[],ga=ee==null?void 0:ee.map(Re=>{var Ge;return(Ge=Object.keys(Re))==null?void 0:Ge[0]});ye==null||ye.forEach(Re=>{var Ge;(Re==null?void 0:Re.name)===(le==null?void 0:le[0])&&((Ge=Re==null?void 0:Re.compData)==null||Ge.forEach(Ka=>{var Ia;(Ka==null?void 0:Ka.key)==="tableContents"&&((Ia=Ka==null?void 0:Ka.contents)==null||Ia.forEach(R=>{R!=null&&R.some(P=>ga.includes(P))&&Pe.push({[R.find(P=>P.id).id]:R.find(P=>ga.includes(P))})}))}))});let He=Pe==null?void 0:Pe.map(Re=>{var Ge;return(Ge=Object.keys(Re))==null?void 0:Ge[0]}),Ae=[];if(He==null||He.forEach(Re=>{var Ia;let Ge=(Ia=Pe==null?void 0:Pe.find(R=>{var P;return((P=Object.keys(R))==null?void 0:P[0].toString())===Re.toString()}))==null?void 0:Ia[Re],Ka=ee==null?void 0:ee.find(R=>{var P;return((P=Object.keys(R))==null?void 0:P[0])===Ge});Ae.push({id:parseInt(Re),value:{tableData:Ka[Ge]}})}),(Ae==null?void 0:Ae.length)>0)return Ae}else if((se==null?void 0:se.comp)==="Form"){let Ha=I.cloneDeep(se);Ha.compData=(xa=Ha.compData)==null?void 0:xa.map(Pe=>{var ga;return(Pe==null?void 0:Pe.key)==="formContent"&&(Pe.contents=(ga=Pe.contents)==null?void 0:ga.map(He=>((He==null?void 0:He.key)===(le==null?void 0:le[1])&&(He.value=(te==null?void 0:te[He==null?void 0:He.prop])||te),He))),Pe});let ee={};for(let Pe in Ha)Pe!=="id"&&(ee[Pe]=Ha[Pe]);let ea=[];if(ea.push({id:se==null?void 0:se.id,keyType:le==null?void 0:le[1],value:{pageData:ee}}),(ea==null?void 0:ea.length)>0)return ea}}},De=async(te,B,le)=>{var Ne,ia,xa,Ha,ee,ea,Pe,ga,He,Ae;let ye=await na.getItemData(B,sessionStorage.getItem("systemKey"),""),se=ye==null?void 0:ye.find(Re=>(Re==null?void 0:Re.name)===(le==null?void 0:le[0]));if(se){if((se==null?void 0:se.comp)==="Table"){let Re={};for(let Ge in I.cloneDeep(te))I.cloneDeep(te)[Ge]!=="loginUser"?Re[Ge]=I.cloneDeep(te)[Ge]:Re[Ge]=((Ne=x.value)==null?void 0:Ne.account)||((ia=x.value)==null?void 0:ia.账号);await yr.createInsofDataApi({key:{type:"data",pageKey:B,tableId:se==null?void 0:se.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:Re}})}else if((se==null?void 0:se.comp)==="Form"){let Re=I.cloneDeep(se),Ge=Object.keys(te),Ka="";(Ha=(xa=I.cloneDeep(Re))==null?void 0:xa.compData)==null||Ha.forEach(ie=>{var fa,ra;(ie==null?void 0:ie.key)==="formContent"&&((ra=(fa=I.cloneDeep(ie))==null?void 0:fa.contents)==null||ra.forEach(Ie=>{var we;Ge.includes(Ie==null?void 0:Ie.key)&&(Ie==null?void 0:Ie.value)===((we=x.value)==null?void 0:we.姓名)&&(Ka=Ie==null?void 0:Ie.key)}))});let Ia=[];(ee=Object.values(te[Ka]))==null||ee.forEach(ie=>{ie!=null&&ie.includes("(")&&Ia.push(ie)}),Ia=[...new Set(Ia)];const R=Ia==null?void 0:Ia.map(async ie=>{var Ca,fe,Je,Ze,Fe,ka,$e,pa,re,Se,K,je;let fa="";(ka=(Fe=(Ze=(Je=(fe=(Ca=I.cloneDeep(ie))==null?void 0:Ca.split("("))==null?void 0:fe[1])==null?void 0:Je.split(")"))==null?void 0:Ze[0])==null?void 0:Fe.split(":"))==null||ka.forEach(Be=>{fa=fa===""?fa+Be.replaceAll("'",""):fa+"/"+Be.replaceAll("'","")});let ra=[];(je=(K=(Se=(re=(pa=($e=I.cloneDeep(ie))==null?void 0:$e.split("<"))==null?void 0:pa[1])==null?void 0:re.split(">"))==null?void 0:Se[0])==null?void 0:K.split(":"))==null||je.forEach(Be=>{ra.push(Be.replaceAll("'",""))});const Ie=await na.getItemData(fa,sessionStorage.getItem("systemKey"),"");let we="";return Ie==null||Ie.forEach(Be=>{var za;Be.name===(ra==null?void 0:ra[0])&&((za=Be==null?void 0:Be.compData)==null||za.forEach(Ea=>{var Ye;(Ea==null?void 0:Ea.key)==="formContent"&&((Ye=Ea.contents)==null||Ye.forEach(ua=>{(ua==null?void 0:ua.key)===(ra==null?void 0:ra[1])&&(we=ua==null?void 0:ua.value)}))}))}),{[ie]:we}}),P=await Promise.all(R);Re.compData=(Pe=(ea=I.cloneDeep(Re))==null?void 0:ea.compData)==null?void 0:Pe.map(ie=>{var fa,ra;return(ie==null?void 0:ie.key)==="formContent"&&(ie.contents=(ra=(fa=I.cloneDeep(ie))==null?void 0:fa.contents)==null?void 0:ra.map(Ie=>{var we,Ca,fe,Je;return(we=te[Ka])!=null&&we[Ie==null?void 0:Ie.key]&&(te[Ka][Ie==null?void 0:Ie.key].includes("(")?Ie.value=(Ca=P==null?void 0:P.find(Ze=>{var Fe;return((Fe=Object.keys(Ze))==null?void 0:Fe[0])===te[Ka][Ie==null?void 0:Ie.key]}))==null?void 0:Ca[te[Ka][Ie==null?void 0:Ie.key]]:Ie.value=(Je=(fe=I.cloneDeep(te))==null?void 0:fe[Ka])==null?void 0:Je[Ie==null?void 0:Ie.key]),Ie})),ie});const Y=await yr.getInsofDataApi({key:{type:"structure",pageKey:B,systemKey:sessionStorage.getItem("systemKey")}});let oe="";((ga=Y==null?void 0:Y.data)==null?void 0:ga.type)==="success"&&((Ae=(He=Y==null?void 0:Y.data)==null?void 0:He.result)==null||Ae.forEach(ie=>{var fa,ra;((ra=(fa=ie==null?void 0:ie.value)==null?void 0:fa.pageData)==null?void 0:ra.name)===(le==null?void 0:le[0])&&(oe=ie.id)}),await yr.updateInsofDataApi({id:oe,value:{pageData:Re}}))}}},ne=(te,B="",le={})=>{for(const[ye,se]of Object.entries(te)){const Ne=B?`${B}.${ye}`:ye;se!==null&&typeof se=="object"&&!Array.isArray(se)&&Object.prototype.toString.call(se)!=="[object Date]"?ne(se,Ne,le):le[Ne]=se}return le},ke=async(te,B,le,ye)=>{var ia,xa,Ha,ee,ea,Pe,ga,He,Ae,Re,Ge,Ka,Ia,R,P,Y,oe,ie,fa,ra,Ie,we,Ca,fe,Je;let se=await na.getItemData(B,sessionStorage.getItem("systemKey"),""),Ne=se==null?void 0:se.find(Ze=>(Ze==null?void 0:Ze.name)===(le==null?void 0:le[0]));if(Ne){if(!(le!=null&&le[1])&&(Ne==null?void 0:Ne.comp)==="Table"){let Ze={},Fe=[],ka=(xa=(ia=Ne==null?void 0:Ne.compData)==null?void 0:ia.find(re=>(re==null?void 0:re.key)==="header"))==null?void 0:xa.contents;ka!=null&&ka.every(re=>Array.isArray(re))?Fe=(ee=na.getColumnChild((Ha=ka==null?void 0:ka[0])==null?void 0:Ha.filter(re=>(re==null?void 0:re.label)!=="操作")))==null?void 0:ee.map(re=>re==null?void 0:re.prop):Fe=ka==null?void 0:ka.map(re=>re==null?void 0:re.label);for(let re in I.cloneDeep(te))if(I.cloneDeep(te)[re]!=="loginUser"){let Se=ne(I.cloneDeep(te)[re]),K={};for(let je in Se)if(Fe!=null&&Fe.find(Be=>Be===je))K[je]=Se[je];else if(Fe!=null&&Fe.find(Be=>(Be==null?void 0:Be.toUpperCase())===(je==null?void 0:je.toUpperCase()))){let Be=Fe==null?void 0:Fe.find(za=>(za==null?void 0:za.toUpperCase())===(je==null?void 0:je.toUpperCase()));K[Be]=Se[je]}Ze[re]=K}else Ze[re]=((ea=x.value)==null?void 0:ea.account)||((Pe=x.value)==null?void 0:Pe.账号);let $e=await yr.getInsofDataApi({keyLikes:{tableId:Ne==null?void 0:Ne.id}});if(((He=(ga=$e==null?void 0:$e.data)==null?void 0:ga.result)==null?void 0:He.length)>0){let re=(Re=(Ae=$e==null?void 0:$e.data)==null?void 0:Ae.result)==null?void 0:Re.map(Se=>Se==null?void 0:Se.id);(re==null?void 0:re.length)>0&&await yr.batchDeleteInsofDataApi({ids:re})}let pa=[];if((Ge=Ne==null?void 0:Ne.compData)!=null&&Ge.find(re=>(re==null?void 0:re.key)==="pageColumn")&&((R=(Ia=(Ka=Ne==null?void 0:Ne.compData)==null?void 0:Ka.find(re=>(re==null?void 0:re.key)==="pageColumn"))==null?void 0:Ia.contents)!=null&&R.includes("["))){const re=await yr.getInsofDataApi({id:Ne==null?void 0:Ne.tableId});let Se=((ie=(oe=(Y=(P=re==null?void 0:re.data)==null?void 0:P.result)==null?void 0:Y[0])==null?void 0:oe.key)==null?void 0:ie.pageKey)??"";(fa=Object.values(Ze))==null||fa.forEach(K=>{pa.push({key:{type:"data",pageKey:Se,tableId:Ne==null?void 0:Ne.tableId,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:K}})})}else(ra=Object.values(Ze))==null||ra.forEach(re=>{pa.push({key:{type:"data",pageKey:B,tableId:Ne==null?void 0:Ne.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:re}})});(pa==null?void 0:pa.length)>0&&await yr.batchAddInsofDataApi({dataList:pa})}else if(!(le!=null&&le[1])&&(Ne==null?void 0:Ne.comp)==="Form"){let Ze=I.cloneDeep(Ne);Ze.compData=(we=(Ie=I.cloneDeep(Ze))==null?void 0:Ie.compData)==null?void 0:we.map($e=>{var pa,re;return($e==null?void 0:$e.key)==="formContent"&&($e.contents=(re=(pa=I.cloneDeep($e))==null?void 0:pa.contents)==null?void 0:re.map(Se=>{var K,je;return(K=I.cloneDeep(te))!=null&&K[Se==null?void 0:Se.key]&&(Se.value=(je=I.cloneDeep(te))==null?void 0:je[Se==null?void 0:Se.key]),Se})),$e});const Fe=await yr.getInsofDataApi({key:{type:"structure",pageKey:B,systemKey:sessionStorage.getItem("systemKey")}});let ka="";((Ca=Fe==null?void 0:Fe.data)==null?void 0:Ca.type)==="success"&&((Je=(fe=Fe==null?void 0:Fe.data)==null?void 0:fe.result)==null||Je.forEach($e=>{var pa,re;((re=(pa=$e==null?void 0:$e.value)==null?void 0:pa.pageData)==null?void 0:re.name)===(le==null?void 0:le[0])&&(ka=$e.id)}),await yr.updateInsofDataApi({id:ka,value:{pageData:Ze}}))}}},X=async te=>{var B,le,ye,se,Ne,ia,xa,Ha,ee,ea,Pe,ga,He,Ae;w.setImportLoading(!0);try{if(te.api){let Re=new WeakMap,Ge=await na.getItemData((z==null?void 0:z.value)===""?D.value:z==null?void 0:z.value,sessionStorage.getItem("systemKey"),"",!1,"","",Re),Ka="";if(Ge=Ge==null?void 0:Ge.map(ra=>{var Ie,we,Ca,fe,Je,Ze,Fe,ka,$e,pa,re,Se;if((ra==null?void 0:ra.comp)==="Form")ra.compData=(Ie=ra.compData)==null?void 0:Ie.map(K=>{var je;return(K==null?void 0:K.key)==="formContent"&&(K.contents=(je=K.contents)==null?void 0:je.map(Be=>{var za;if((Be==null?void 0:Be.value)===""&&(Be==null?void 0:Be.type)==="Select"){let Ea=na.judgeContents((za=I.cloneDeep(Be))==null?void 0:za.optionUrl,Re);Be.value=Be.value||Ea}return Be})),K});else if((ra==null?void 0:ra.comp)==="Table"&&(we=ra.compData)!=null&&we.find(K=>(K==null?void 0:K.key)==="pageColumn")){let K=(fe=(Ca=ra.compData)==null?void 0:Ca.find(Ea=>(Ea==null?void 0:Ea.key)==="pageColumn"))==null?void 0:fe.contents,je=((Ze=(Je=ra.compData)==null?void 0:Je.find(Ea=>(Ea==null?void 0:Ea.key)==="pageGroup"))==null?void 0:Ze.contents)??"",Be=($e=(ka=(Fe=K==null?void 0:K.split("["))==null?void 0:Fe[1])==null?void 0:ka.split("]"))==null?void 0:$e[0];Ka=((pa=K==null?void 0:K.split("["))==null?void 0:pa[0])+((Se=(re=k.value)==null?void 0:re.find(Ea=>(Ea==null?void 0:Ea.key)===Be))==null?void 0:Se.value)}return ra}),!(Ka===""||Ka==="")){const ra=await na.getItemData(Ka,sessionStorage.getItem("systemKey"),"",!1,"","",Re);Ge=Ge==null?void 0:Ge.map(Ie=>{var we,Ca,fe,Je,Ze,Fe,ka,$e,pa,re,Se,K,je;if((Ie==null?void 0:Ie.comp)==="Table"&&(we=Ie.compData)!=null&&we.find(Be=>(Be==null?void 0:Be.key)==="pageColumn")){let Be=(fe=(Ca=Ie.compData)==null?void 0:Ca.find(_e=>(_e==null?void 0:_e.key)==="pageColumn"))==null?void 0:fe.contents,za=((Ze=(Je=Ie.compData)==null?void 0:Je.find(_e=>(_e==null?void 0:_e.key)==="pageGroup"))==null?void 0:Ze.contents)??"",Ea=($e=(ka=(Fe=Be==null?void 0:Be.split("["))==null?void 0:Fe[1])==null?void 0:ka.split("]"))==null?void 0:$e[0],Ye=((pa=Be==null?void 0:Be.split("["))==null?void 0:pa[0])+((Se=(re=k.value)==null?void 0:re.find(_e=>(_e==null?void 0:_e.key)===Ea))==null?void 0:Se.value),ua=(K=ra==null?void 0:ra.find(_e=>(_e==null?void 0:_e.name)===(za===""?s==null?void 0:s.compName:za)))==null?void 0:K.compData;Ie.compData=(je=Ie.compData)==null?void 0:je.map(_e=>{var Z;return(_e==null?void 0:_e.key)==="tableContents"&&(_e.contents=(Z=ua==null?void 0:ua.find(ya=>(ya==null?void 0:ya.key)==="tableContents"))==null?void 0:Z.contents),_e})}return Ie})}let Ia={};if(((le=(B=te==null?void 0:te.extraValues)==null?void 0:B.input)==null?void 0:le.length)>0){const ra=(se=(ye=te==null?void 0:te.extraValues)==null?void 0:ye.input)==null?void 0:se.map(async Ie=>{var we;pe!=null&&pe.find(Ca=>Ca===Ie)?Ia=await be(Ie,Ge):Ia[Object.keys(Ie)[0]]=await be((we=Object.values(Ie))==null?void 0:we[0],Ge,Re)});await Promise.all(ra)}else Ia=await be("/",Ge);let R=!1;(ia=(Ne=te==null?void 0:te.extraValues)==null?void 0:Ne.output)==null||ia.forEach(ra=>{var Ie,we;(we=(Ie=Object.values(ra))==null?void 0:Ie[0])!=null&&we.includes(".doc")&&(R=!0)});let P;if(R){const ra=I.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});P=await ll.axios.post(te.api,Ia,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{ra.close()})}else P=await ll.axios.post(te.api,Ia,{headers:{"Content-Type":"application/json"}});let Y=(ea=(ee=(Ha=(xa=I.cloneDeep(te))==null?void 0:xa.extraValues)==null?void 0:Ha.output)==null?void 0:ee.map(ra=>{var Ie,we,Ca,fe,Je,Ze,Fe,ka,$e,pa,re,Se,K,je,Be,za;if(!((we=(Ie=Object.values(ra))==null?void 0:Ie[0])!=null&&we.includes(".doc"))){let Ea=(pa=($e=(ka=(fe=I.cloneDeep((Ca=Object.values(ra))==null?void 0:Ca[0]))==null?void 0:fe.split("["))==null?void 0:ka[((Fe=(Ze=I.cloneDeep((Je=Object.values(ra))==null?void 0:Je[0]))==null?void 0:Ze.split("["))==null?void 0:Fe.length)-1])==null?void 0:$e.split("]"))==null?void 0:pa[0],Ye=Ea==null?void 0:Ea.split(":"),ua=(K=I.cloneDeep((re=Object.values(ra))==null?void 0:re[0]))==null?void 0:K.substring(0,I.cloneDeep((Se=Object.values(ra))==null?void 0:Se[0]).lastIndexOf("["));if(ua=(Be=I.cloneDeep(ua))==null?void 0:Be.slice(0,((je=I.cloneDeep(ua))==null?void 0:je.length)-1),ua!=null&&ua.includes("[")){let _e="";if((za=na.contentTransArrayToAll(ua,"/"))==null||za.forEach(Z=>{var ya,We,La,ml,Aa,el,Ja;if(!(Z!=null&&Z.includes("[")))_e=_e===""?_e+Z.replaceAll("/",""):_e+"/"+Z.replaceAll("/","");else{let Pa=I.cloneDeep(Z).slice(1,((ya=I.cloneDeep(Z))==null?void 0:ya.length)-1),Te=(el=(Aa=(ml=(La=(We=I.cloneDeep(Pa))==null?void 0:We.split("["))==null?void 0:La[1])==null?void 0:ml.split("]"))==null?void 0:Aa[0])==null?void 0:el.split(":"),il="",ma=(Ja=Ge==null?void 0:Ge.find(wa=>(wa==null?void 0:wa.name)===(Te==null?void 0:Te[0])))==null?void 0:Ja.compData;ma==null||ma.forEach(wa=>{var _a;(wa==null?void 0:wa.key)==="formContent"&&((_a=wa==null?void 0:wa.contents)==null||_a.forEach(oa=>{(oa==null?void 0:oa.key)===(Te==null?void 0:Te[1])&&(il=oa==null?void 0:oa.value)}))}),_e=_e===""?_e+il.replaceAll("/",""):_e+"/"+il.replaceAll("/","")}}),ua=_e,ua[(ua==null?void 0:ua.length)-1]!=="/")return ua}}}))==null?void 0:ea.filter(ra=>ra);Y=[...new Set(I.cloneDeep(Y))];let oe=Y==null?void 0:Y.map(async ra=>{let Ie=await na.getItemData(ra,sessionStorage.getItem("systemKey"),"",!1,"","",Re);if((Ie==null?void 0:Ie.length)===0)return await na.getParentContents(ra)});await Promise.all(oe);let ie=[],fa=(He=(ga=(Pe=I.cloneDeep(te))==null?void 0:Pe.extraValues)==null?void 0:ga.output)==null?void 0:He.map(async ra=>{var ka,$e,pa,re,Se,K,je,Be,za,Ea,Ye,ua,_e,Z,ya,We,La,ml,Aa,el,Ja,Pa,Te,il,ma,wa,_a,oa,va,ue,Fa,ja,Ee,Ba,Ua,ve,fl,Xa,xl,qa,ol,al,cl,ul,Wl,Kl,Fl,Ul,gr,rr,kr,wr,Er,un,Jr,dn,Xr,Ur,pn,tn,Dr,Zr,Br,Il,qr,Nr,gn,tt,Rn,An;if(($e=(ka=Object.values(ra))==null?void 0:ka[0])!=null&&$e.includes(".doc")){var Ie=new Blob([P.data],{type:"application/octet-stream;charset=UTF-8"}),we=P.headers["content-disposition"],Ca=new RegExp("filename=([^;]+\\.[^\\.;]+);*"),fe=Ca.exec(we),Je=fe==null?void 0:fe[1],Ze=document.createElement("a"),Fe=window.URL.createObjectURL(Ie);b.value=[{name:Je,blobUrl:Fe}],d.value=!0}else{let bn=(Ea=(za=(Be=(re=I.cloneDeep((pa=Object.values(ra))==null?void 0:pa[0]))==null?void 0:re.split("["))==null?void 0:Be[((je=(K=I.cloneDeep((Se=Object.values(ra))==null?void 0:Se[0]))==null?void 0:K.split("["))==null?void 0:je.length)-1])==null?void 0:za.split("]"))==null?void 0:Ea[0],Zl=bn==null?void 0:bn.split(":"),xr=(_e=I.cloneDeep((Ye=Object.values(ra))==null?void 0:Ye[0]))==null?void 0:_e.substring(0,I.cloneDeep((ua=Object.values(ra))==null?void 0:ua[0]).lastIndexOf("["));if(xr!=null&&xr.includes("[")?xr=(ya=I.cloneDeep(xr))==null?void 0:ya.slice(0,((Z=I.cloneDeep(xr))==null?void 0:Z.length)-1):xr===""&&(xr=D.value),xr=xr.replaceAll("<","[").replaceAll(">","]"),xr!=null&&xr.includes("[")){let Hl="";(We=na.contentTransArrayToAll(xr,"/"))==null||We.forEach((Al,cr)=>{var ar,Pl,Mr,Or,kn,Cn,fn,Pn,zn,hn,En;if(!(Al!=null&&Al.includes("[")))Hl=Hl===""?Hl+Al.replaceAll("/",""):Hl+"/"+Al.replaceAll("/","");else{let Mn="",Kr="";(ar=I.cloneDeep(Al))!=null&&ar.includes("]")?(Mn=I.cloneDeep(Al).slice(1,((Pl=I.cloneDeep(Al))==null?void 0:Pl.length)-1),Kr=(fn=(Cn=(kn=(Or=(Mr=I.cloneDeep(Mn))==null?void 0:Mr.split("["))==null?void 0:Or[1])==null?void 0:kn.split("]"))==null?void 0:Cn[0])==null?void 0:fn.split(":")):(Mn=I.cloneDeep(Al).slice(1,(Pn=I.cloneDeep(Al))==null?void 0:Pn.length),Kr=(zn=I.cloneDeep(Mn))==null?void 0:zn.split("/"));let Sn="",Fn=(hn=Ge==null?void 0:Ge.find(Tr=>(Tr==null?void 0:Tr.name)===(Kr==null?void 0:Kr[0])))==null?void 0:hn.compData;Fn==null||Fn.forEach(Tr=>{var jn;(Tr==null?void 0:Tr.key)==="formContent"&&((jn=Tr==null?void 0:Tr.contents)==null||jn.forEach(on=>{(on==null?void 0:on.key)===(Kr==null?void 0:Kr[1])&&(Sn=on==null?void 0:on.value)}))}),((En=na.contentTransArrayToAll(xr,"/"))==null?void 0:En.length)-1!==cr?Hl=Hl===""?Hl+Sn.replaceAll("/",""):Hl+"/"+Sn.replaceAll("/",""):Hl=Hl+t.value+Sn.replaceAll("/","")}}),(La=D.value)!=null&&La.includes(Hl)?xr=D.value:xr=Hl}let Vl=I.cloneDeep((ml=Object.keys(ra))==null?void 0:ml[0]);if(((Aa=P==null?void 0:P.data)==null?void 0:Aa.statusCode)===200||((el=P==null?void 0:P.data)==null?void 0:el.code)===200){if(((Pa=(Ja=P==null?void 0:P.data)==null?void 0:Ja.data)!=null&&Pa[Vl]||(il=(Te=P==null?void 0:P.data)==null?void 0:Te.result)!=null&&il[Vl])&&(Zl==null?void 0:Zl.length)===1)return await ke(((wa=(ma=P==null?void 0:P.data)==null?void 0:ma.data)==null?void 0:wa[Vl])||((oa=(_a=P==null?void 0:P.data)==null?void 0:_a.result)==null?void 0:oa[Vl]),I.cloneDeep(xr),Zl,Ka);if((ue=(va=P==null?void 0:P.data)==null?void 0:va.data)!=null&&ue[Vl]||(ja=(Fa=P==null?void 0:P.data)==null?void 0:Fa.result)!=null&&ja[Vl]){let Hl=await ze(((Ba=(Ee=P==null?void 0:P.data)==null?void 0:Ee.data)==null?void 0:Ba[Vl])||((ve=(Ua=P==null?void 0:P.data)==null?void 0:Ua.result)==null?void 0:ve[Vl]),I.cloneDeep(xr),Zl);return Hl&&(ie=[...ie,...Hl]),Hl}else{if(!((fl=P==null?void 0:P.data)!=null&&fl.data)){let Hl=await na.getItemData(D.value,sessionStorage.getItem("systemKey"),"",!1,"","",Re);Hl=Hl==null?void 0:Hl.map(cr=>{var ar;return(cr==null?void 0:cr.name)===(Zl==null?void 0:Zl[0])&&(cr.compData=(ar=cr.compData)==null?void 0:ar.map(Pl=>{var Mr;return(Pl==null?void 0:Pl.key)==="formContent"&&(Pl.contents=(Mr=Pl.contents)==null?void 0:Mr.map(Or=>{var kn,Cn;return(Or==null?void 0:Or.key)===(Zl==null?void 0:Zl[1])&&(Or.value=(Cn=(kn=P==null?void 0:P.data)==null?void 0:kn.result)==null?void 0:Cn[Vl==null?void 0:Vl.replaceAll(":","")]),Or})),Pl})),cr});let Al=[];(Xa=Hl==null?void 0:Hl.filter(cr=>(cr==null?void 0:cr.comp)==="Form"))==null||Xa.forEach(async cr=>{let ar={};for(let Pl in cr)Pl!=="id"&&(ar[Pl]=cr[Pl]);Al.push({id:cr==null?void 0:cr.id,value:{pageData:ar}})}),(Al==null?void 0:Al.length)>0&&await yr.batchUpdateInsofDataApi({dataList:Al});return}if((Zl==null?void 0:Zl.length)===1){const Hl=(ol=(qa=(xl=P==null?void 0:P.data)==null?void 0:xl.data)==null?void 0:qa.path)==null?void 0:ol.path;let Al="";(Kl=(Wl=(ul=(cl=(al=Hl==null?void 0:Hl.split("("))==null?void 0:al[1])==null?void 0:cl.split(")"))==null?void 0:ul[0])==null?void 0:Wl.split(":"))==null||Kl.forEach(Pl=>{var Mr,Or;Al=Al===""?Al+((Mr=Pl==null?void 0:Pl.replaceAll("'",""))==null?void 0:Mr.trim()):Al+"/"+((Or=Pl==null?void 0:Pl.replaceAll("'",""))==null?void 0:Or.trim())});let cr=[(kr=(rr=(gr=(Ul=(Fl=Hl==null?void 0:Hl.split("<"))==null?void 0:Fl[1])==null?void 0:Ul.split(">"))==null?void 0:gr[0])==null?void 0:rr.replaceAll("'",""))==null?void 0:kr.trim()],ar;return(un=(Er=(wr=P==null?void 0:P.data)==null?void 0:wr.data)==null?void 0:Er.data)!=null&&un[Zl==null?void 0:Zl[0]]?ar=await ke((Xr=(dn=(Jr=P==null?void 0:P.data)==null?void 0:Jr.data)==null?void 0:dn.data)==null?void 0:Xr[Zl==null?void 0:Zl[0]],Al,Zl,Ka):ar=await De((pn=(Ur=P==null?void 0:P.data)==null?void 0:Ur.data)==null?void 0:pn.data,Al,cr,Re),ar}else{const Hl=(Zr=(Dr=(tn=P==null?void 0:P.data)==null?void 0:tn.data)==null?void 0:Dr.path)==null?void 0:Zr.path;let Al="";return(gn=(Nr=(qr=(Il=(Br=Hl==null?void 0:Hl.split("("))==null?void 0:Br[1])==null?void 0:Il.split(")"))==null?void 0:qr[0])==null?void 0:Nr.split(":"))==null||gn.forEach(ar=>{var Pl,Mr;Al=Al===""?Al+((Pl=ar==null?void 0:ar.replaceAll("'",""))==null?void 0:Pl.trim()):Al+"/"+((Mr=ar==null?void 0:ar.replaceAll("'",""))==null?void 0:Mr.trim())}),await ze((An=(Rn=(tt=P==null?void 0:P.data)==null?void 0:tt.data)==null?void 0:Rn.data)==null?void 0:An[Zl==null?void 0:Zl[0]],Al,Zl)}}}}});if(await Promise.all(fa),(ie==null?void 0:ie.length)>0){let ra=[];ie==null||ie.forEach(Ca=>{ra!=null&&ra.find(fe=>{var Je,Ze,Fe,ka;return((Ze=(Je=fe==null?void 0:fe.value)==null?void 0:Je.pageData)==null?void 0:Ze.name)===((ka=(Fe=Ca==null?void 0:Ca.value)==null?void 0:Fe.pageData)==null?void 0:ka.name)})||ra.push(Ca)});let Ie=[];ra==null||ra.forEach(Ca=>{var Ze,Fe,ka,$e;let fe=I.cloneDeep(Ca);fe.value.pageData.compData=(Ze=fe.value.pageData.compData)==null?void 0:Ze.map(pa=>{var re;return(pa==null?void 0:pa.key)==="formContent"&&(pa.contents=(re=pa.contents)==null?void 0:re.map(Se=>{var je,Be,za,Ea;let K=(je=I.cloneDeep(ie))==null?void 0:je.find(Ye=>(Ye==null?void 0:Ye.keyType)===(Se==null?void 0:Se.key));if(K){let Ye=(Ea=(za=(Be=K.value.pageData.compData)==null?void 0:Be.find(ua=>(ua==null?void 0:ua.key)==="formContent"))==null?void 0:za.contents)==null?void 0:Ea.find(ua=>(ua==null?void 0:ua.key)===(Se==null?void 0:Se.key));Se.value=Ye==null?void 0:Ye.value}return Se})),pa}),Ie.push({id:fe==null?void 0:fe.id,value:fe==null?void 0:fe.value});let Je=[];($e=(ka=(Fe=fe==null?void 0:fe.value)==null?void 0:Fe.pageData)==null?void 0:ka.compData)==null||$e.forEach(pa=>{var re;(pa==null?void 0:pa.key)==="formContent"&&((re=pa==null?void 0:pa.contents)==null||re.forEach(Se=>{var K,je,Be,za,Ea,Ye;if((je=(K=Se==null?void 0:Se.optionUrl)==null?void 0:K.menuSelect)!=null&&je.find(ua=>ua==null?void 0:ua.includes("[")))if(Je!=null&&Je.find(ua=>{var _e,Z,ya;return((_e=ua==null?void 0:ua.key)==null?void 0:_e.join(","))===((ya=(Z=Se==null?void 0:Se.optionUrl)==null?void 0:Z.menuSelect)==null?void 0:ya.join(","))})){let ua=(Be=Je==null?void 0:Je.find(_e=>{var Z,ya,We;return((Z=_e==null?void 0:_e.key)==null?void 0:Z.join(","))===((We=(ya=Se==null?void 0:Se.optionUrl)==null?void 0:ya.menuSelect)==null?void 0:We.join(","))}))==null?void 0:Be.value;ua.push({key:Se==null?void 0:Se.prop,groups:(za=Se==null?void 0:Se.optionUrl)==null?void 0:za.groupSelect,value:Se==null?void 0:Se.value}),Je=Je==null?void 0:Je.map(_e=>{var Z,ya,We;return((Z=_e==null?void 0:_e.key)==null?void 0:Z.join(","))===((We=(ya=Se==null?void 0:Se.optionUrl)==null?void 0:ya.menuSelect)==null?void 0:We.join(","))&&(_e.value=ua),_e})}else Je.push({key:(Ea=Se==null?void 0:Se.optionUrl)==null?void 0:Ea.menuSelect,value:[{key:Se==null?void 0:Se.prop,groups:(Ye=Se==null?void 0:Se.optionUrl)==null?void 0:Ye.groupSelect,value:Se==null?void 0:Se.value}]})}))}),(Je==null?void 0:Je.length)>0&&(Je=Je==null?void 0:Je.map(pa=>{var Se;let re="";return(Se=pa==null?void 0:pa.key)==null||Se.forEach(K=>{var je;if(!(K!=null&&K.includes("[")))re=re===""?re+K:re+"/"+K;else{let Be="",za=(je=K==null?void 0:K.replaceAll("[","").replaceAll("]",""))==null?void 0:je.split(":");Ge==null||Ge.forEach(Ea=>{var Ye;(Ea==null?void 0:Ea.name)===(za==null?void 0:za[0])&&((Ye=Ea==null?void 0:Ea.compData)==null||Ye.forEach(ua=>{var _e;(ua==null?void 0:ua.key)==="formContent"&&((_e=ua==null?void 0:ua.contents)==null||_e.forEach(Z=>{(Z==null?void 0:Z.prop)===(za==null?void 0:za[1])&&(Be=Z==null?void 0:Z.value)}))}))}),re=re+t.value+Be}}),pa.key=re,pa})),Je==null||Je.forEach(pa=>{var je,Be,za;let re=(je=Re[pa.key])==null?void 0:je.find(Ea=>{var Ye,ua,_e,Z,ya,We,La;return((ua=(Ye=Ea==null?void 0:Ea.value)==null?void 0:Ye.pageData)==null?void 0:ua.name)===((ya=(Z=(_e=pa==null?void 0:pa.value)==null?void 0:_e[0])==null?void 0:Z.groups)==null?void 0:ya[0])&&((La=(We=Ea==null?void 0:Ea.value)==null?void 0:We.pageData)==null?void 0:La.name)!==void 0}),Se=re==null?void 0:re.id,K=(Be=re==null?void 0:re.value)==null?void 0:Be.pageData;K.compData=(za=K.compData)==null?void 0:za.map(Ea=>{var Ye;return(Ea==null?void 0:Ea.key)==="formContent"&&(Ea.contents=(Ye=Ea.contents)==null?void 0:Ye.map(ua=>{var Z;let _e=(Z=pa.value)==null?void 0:Z.find(ya=>(ya==null?void 0:ya.key)===(ua==null?void 0:ua.prop));return _e&&(ua.value=_e.value),ua})),Ea}),Ie.push({id:Se,value:{pageData:K}})})});let we=(Ae=I.cloneDeep(ie))==null?void 0:Ae[0];(Ie==null?void 0:Ie.length)>0&&await yr.batchUpdateInsofDataApi({dataList:Ie})}y.setFreshContent(!0)}w.setImportLoading(!1)}catch{ll.ElMessage.error("方法执行错误,请查看方法!"),w.setImportLoading(!1)}g.value=!0},pe=["createInsofDataApi"],Ke=$a.debounce(async te=>{X(te)},100),Sa=async te=>{var ia,xa,Ha;const B=I.cloneDeep(te);let le,ye=new WeakMap;te!=null&&te[0].path&&(le=await(B==null?void 0:B.map(async(ee,ea)=>{var Ia,R,P,Y,oe,ie,fa,ra,Ie,we,Ca,fe,Je,Ze,Fe,ka;const ga=(Ia=ye[ee==null?void 0:ee.path])==null?void 0:Ia.filter($e=>{var pa;return((pa=$e==null?void 0:$e.key)==null?void 0:pa.type)==="data"});let He="";const Ae=await na.getItemData(D.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,ye);ga==null||ga.forEach($e=>{var pa,re,Se,K,je;((re=(pa=$e==null?void 0:$e.value)==null?void 0:pa.tableData)==null?void 0:re.算法名称)===((Se=B==null?void 0:B[ea])==null?void 0:Se.method)&&(He=(je=(K=$e==null?void 0:$e.value)==null?void 0:K.tableData)==null?void 0:je.算法体)});const Re=await na.getItemData(ee==null?void 0:ee.path,sessionStorage.getItem("systemKey"),"",!1,[],!1,ye);let Ge="",Ka=(oe=(Y=(P=(R=Re==null?void 0:Re[0])==null?void 0:R.compData)==null?void 0:P.find($e=>($e==null?void 0:$e.key)==="header"))==null?void 0:Y.contents)==null?void 0:oe.findIndex($e=>($e==null?void 0:$e.prop)==="算法体");return(fa=(ie=Re==null?void 0:Re[0])==null?void 0:ie.compData)==null||fa.forEach($e=>{var pa;($e==null?void 0:$e.key)==="tableContents"&&((pa=$e==null?void 0:$e.contents)==null||pa.forEach(re=>{re!=null&&re.find(Se=>Se===(ee==null?void 0:ee.method))&&(Ge=re[Ka])}))}),{buttonName:((ra=B==null?void 0:B[ea])==null?void 0:ra.method)||((Ca=(we=(Ie=ga==null?void 0:ga[0])==null?void 0:Ie.value)==null?void 0:we.tableData)==null?void 0:Ca.算法名称),api:(He===""?(Ze=(Je=(fe=ga==null?void 0:ga[0])==null?void 0:fe.value)==null?void 0:Je.tableData)==null?void 0:Ze.算法体:He)||Ge,content:Ae==null?void 0:Ae.filter($e=>$e.comp!=="methodButton"),extraContent:(Fe=I.cloneDeep(ee.value))==null?void 0:Fe.slice(1),methodName:(ee==null?void 0:ee.path)??"",extraValues:(ka=B==null?void 0:B[ea])==null?void 0:ka.data}})));const se=B==null?void 0:B.map(async ee=>{var Re,Ge,Ka,Ia,R,P;const ea=(Re=resAll.data.result)==null?void 0:Re.filter(Y=>{var oe,ie,fa;return((oe=Y==null?void 0:Y.key)==null?void 0:oe.parentTable)===""&&((ie=Y==null?void 0:Y.key)==null?void 0:ie.type)==="method"&&((fa=Y==null?void 0:Y.key)==null?void 0:fa.methodName)===Y.method}),Pe=ea==null?void 0:ea[0],ga=(Ge=resAll.data.result)==null?void 0:Ge.filter(Y=>{var oe,ie;return((oe=Y==null?void 0:Y.key)==null?void 0:oe.type)==="methodData"&&((ie=Y==null?void 0:Y.key)==null?void 0:ie.tableId)===(Pe==null?void 0:Pe.id)}),He=await na.getItemData(D.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,ye),Ae=ga==null?void 0:ga[0];return{buttonName:(Ka=Pe==null?void 0:Pe.key)==null?void 0:Ka.methodKey,api:(R=(Ia=Ae==null?void 0:Ae.value)==null?void 0:Ia.tableData)==null?void 0:R[0],content:He==null?void 0:He.filter(Y=>Y.comp!=="methodButton"),extraContent:(P=I.cloneDeep(ee.value))==null?void 0:P.slice(1),methodName:(ee==null?void 0:ee.method)??""}}),Ne=(ia=te==null?void 0:te[0])!=null&&ia.path&&((xa=te==null?void 0:te[0])==null?void 0:xa.path)!==""?await Promise.all(le):await Promise.all(se);r.value=Ne==null?void 0:Ne.filter(ee=>ee==null?void 0:ee.extraContent),(Ha=r.value)==null||Ha.forEach(ee=>{var ea;ee.api===""&&((ea=ee.content)==null||ea.forEach(Pe=>{var ga;Pe.comp=="Table"&&y.setExtraContents(na.methodTableToContent(Pe.compData,(ga=ee.extraContent)==null?void 0:ga[0]))}))})};return a.watch(()=>s.itemData,async()=>{_.value=="view"&&!g.value&&await Sa(I.cloneDeep(s.itemData)),g.value=!1},{immediate:!0,deep:!0}),(te,B)=>{var le,ye,se;return a.unref(_)!=="edit"?(a.openBlock(),a.createElementBlock("div",E2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((le=r.value)==null?void 0:le.filter(Ne=>(Ne==null?void 0:Ne.buttonName)!=="保存"),Ne=>{var ia;return a.openBlock(),a.createElementBlock("div",null,[Ne.api!==""?(a.openBlock(),a.createBlock(a.unref(Xi._sfc_main),{key:0,disabled:a.unref(T)===a.unref(D)&&!((ia=Ne==null?void 0:Ne.buttonName)!=null&&ia.includes("预览")),class:"calculator-content",modelValue:Ne.buttonName,onClickTrigger:xa=>a.unref(Ke)(Ne),loading:c.value},null,8,["disabled","modelValue","onClickTrigger","loading"])):a.createCommentVNode("",!0)])}),256)),a.createElementVNode("div",null,[a.unref(H)!==""&&((se=a.unref(D))==null?void 0:se[((ye=a.unref(D))==null?void 0:ye.length)-1])!==a.unref(t)?(a.openBlock(),a.createBlock(a.unref(Xi._sfc_main),{key:0,class:"calculator-content",onClickTrigger:F,modelValue:"保存"})):a.createCommentVNode("",!0)]),d.value?(a.openBlock(),a.createBlock(pl.ssFilePreview,{key:0,fileDataList:b.value,onDestroy:q},null,8,["fileDataList"])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)}}},D2=ql._export_sfc(S2,[["__scopeId","data-v-063aa9af"]]),B2={};function N2(l,r){return" 567 "}const T2=ql._export_sfc(B2,[["render",N2]]),A2={class:"module content"},z2={class:"module data"},M2={class:"module layout"},O2={class:"form-content"},I2=a.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:r}){const n=l,t=r,s=a.reactive({visible:!1,width:"40%",title:"签名配置"}),d=a.ref("create"),b=a.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),h=a.ref([{label:"宽度(%):",prop:"signPadWidth",type:"number",value:"30"},{label:"弹窗名称:",prop:"dialogTitle",type:"input",value:""},{label:"弹窗宽度(%):",prop:"dialogWidth",type:"number",value:"30"},{label:"弹窗显示:",prop:"dialogShow",type:"radio",contents:[{label:"显示",value:!0},{label:"隐藏",value:!1}],value:!1,isFormColHidden:!0},{label:"路径:",prop:"url",type:"input",value:"",isFormColHidden:!0}]),v=a.computed(()=>[{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"类型:",prop:"label",type:"select",contents:[{label:"电子签名",value:"电子签名"},{label:"签字版",value:"签字版"},{label:"上传签名",value:"上传签名"}],value:""},{label:"图标",prop:"icon",type:"inputPopover",value:""}]),y=a.ref({}),c=a.ref([]),w=()=>({comp:"Signature",compData:[{key:"signTypeList",contents:c.value},{key:"signConfig",contents:y.value}]}),S=k=>{var T;y.value=I.cloneDeep(k),t("change",(T=w())==null?void 0:T.compData)},A=k=>{var T,J;if((k==null?void 0:k.buttonName)==="确认"){const D=I.cloneDeep(k==null?void 0:k.content);switch(d.value){case"create":c.value.push({...D,index:((T=c.value)==null?void 0:T.length)+1});break}t("change",(J=w())==null?void 0:J.compData),s.visible=!1}else s.visible=!1},_=(k,T)=>{var J,D;switch(k){case"create":(J=v.value)==null||J.forEach($=>{$.value=""}),d.value="create",s.visible=!0;break;case"update":(D=v.value)==null||D.forEach($=>{$.value=T[$==null?void 0:$.prop]}),d.value="update",s.visible=!0;break;case"delete":c.value.splice(T,1),d.value="delete";break}},H=()=>{s.visible=!1};return a.watch(()=>n==null?void 0:n.itemContents,k=>{var T,J;k&&(y.value=((T=k==null?void 0:k.find(D=>D.key==="signConfig"))==null?void 0:T.contents)??{},c.value=((J=k==null?void 0:k.find(D=>D.key==="signTypeList"))==null?void 0:J.contents)??[])},{immediate:!0}),(k,T)=>{const J=a.resolveComponent("svg-icon"),D=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",A2,[T[2]||(T[2]=a.createElementVNode("h4",{class:"module-title"},"签名类型",-1)),a.createVNode(D,{class:"module-icon",id:"themeButton",onClick:T[0]||(T[0]=$=>_("create"))},{icon:a.withCtx(()=>[a.createVNode(J,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[T[1]||(T[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",z2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.value,($,z)=>(a.openBlock(),a.createElementBlock("div",{class:"module-data-item",key:z},[a.createElementVNode("span",null,a.toDisplayString($==null?void 0:$.label),1),a.createElementVNode("div",null,[a.createVNode(D,{type:"primary",size:"small",onClick:x=>_("update",{...$,index:z+1})},{default:a.withCtx(()=>T[3]||(T[3]=[a.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),a.createVNode(D,{type:"danger",size:"small",onClick:x=>_("delete",z)},{default:a.withCtx(()=>T[4]||(T[4]=[a.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),a.createElementVNode("div",M2,[a.createVNode(pl.ssForm,{rowContents:h.value,onChange:S},null,8,["rowContents"])])]),a.createVNode(vr.ssDialog,{visible:s.visible,title:s.title,onBeforeDestroy:H,width:s.width},{default:a.withCtx(()=>[a.createElementVNode("div",O2,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:v.value,key:v.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:b.value,onOnButtonClick:A},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),L2=ql._export_sfc(I2,[["__scopeId","data-v-487e0536"]]),V2=a.defineComponent({__name:"index",props:{stepConfig:{type:Object,default:{}},stepList:{type:Array,default:()=>[]}},emits:["clickStep","clickTrigger","changeTrigger"],setup(l,{emit:r}){const n=l,t=r,s=a.ref(1),d=a.computed(()=>{var w,S;return(w=n==null?void 0:n.stepConfig)!=null&&w.allowTrigger?s.value:(S=n==null?void 0:n.stepConfig)==null?void 0:S.active}),b=(w,S)=>{s.value=S,t("clickStep",w,S)},h=w=>pl.getComponent(w),v=()=>{var S;const w=(S=n==null?void 0:n.stepList)==null?void 0:S.find((A,_)=>_+1===d.value);return console.log("findStep",w),w?w==null?void 0:w.children:[]},y=w=>{t("clickTrigger",w)},c=w=>{t("changeTrigger",w)};return(w,S)=>{var H,k,T,J,D;const A=a.resolveComponent("el-step"),_=a.resolveComponent("el-steps");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(_,{direction:(H=l.stepConfig)==null?void 0:H.direction,active:d.value,"finish-status":"success",simple:(k=l.stepConfig)==null?void 0:k.simple,"align-center":((T=l.stepConfig)==null?void 0:T.alignCenter)??!0},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.stepList,($,z)=>(a.openBlock(),a.createBlock(A,{key:z,class:"step-item",onClick:x=>b($,z+1)},{title:a.withCtx(()=>[a.renderSlot(w.$slots,"title",{title:$==null?void 0:$.title},void 0,!0)]),description:a.withCtx(()=>[a.renderSlot(w.$slots,"description",{description:$==null?void 0:$.description},void 0,!0)]),_:2},1032,["onClick"]))),128))]),_:3},8,["direction","active","simple","align-center"]),(J=l.stepConfig)!=null&&J.allowTrigger&&((D=l.stepConfig)!=null&&D.active)?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(v(),($,z)=>(a.openBlock(),a.createElementBlock("div",{key:z,class:"step-cont-wrap"},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(h($==null?void 0:$.type)),{modelValue:$.value,"onUpdate:modelValue":x=>$.value=x,onClickTrigger:y,onChangeTrigger:c,content:$==null?void 0:$.content},a.createSlots({_:2},[a.renderList(w.$slots,(x,g)=>({name:g,fn:a.withCtx(F=>[a.renderSlot(w.$slots,g,a.mergeProps({ref_for:!0},F||{}),void 0,!0)])}))]),1064,["modelValue","onUpdate:modelValue","content"]))]))),128)):a.createCommentVNode("",!0)],64)}}}),$2=ql._export_sfc(V2,[["__scopeId","data-v-d7c99969"]]),R2=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]}},emits:["clickStep"],setup(l,{emit:r}){const n=l,t=r,s=a.ref({}),d=a.ref([]),b=(h,v)=>{t("clickStep",h,v)};return a.watch(()=>n==null?void 0:n.itemData,h=>{var v,y;d.value=(v=h==null?void 0:h.find(c=>(c==null?void 0:c.key)==="stepList"))==null?void 0:v.contents,s.value=(y=h==null?void 0:h.find(c=>(c==null?void 0:c.key)==="stepConfig"))==null?void 0:y.contents},{immediate:!0,deep:!0}),(h,v)=>{const y=a.resolveComponent("svg-icon");return a.openBlock(),a.createBlock($2,{stepConfig:s.value,stepList:d.value,onClickStep:b},{icon:a.withCtx(()=>[a.createVNode(y,{name:"import"})]),title:a.withCtx(({title:c})=>[a.createTextVNode(a.toDisplayString(c),1)]),description:a.withCtx(({description:c})=>[a.createTextVNode(a.toDisplayString(c),1)]),_:1},8,["stepConfig","stepList"])}}}),P2=a.defineComponent({__name:"index",props:{activities:{type:Array,default:()=>[]},timeLineConfig:{type:Object,default:()=>{}}},setup(l){return(r,n)=>{const t=a.resolveComponent("el-timeline-item"),s=a.resolveComponent("el-timeline");return a.openBlock(),a.createBlock(s,null,{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.activities,(d,b)=>(a.openBlock(),a.createBlock(t,{key:b,timestamp:d.timestamp,placement:l.timeLineConfig.placement,center:l.timeLineConfig.isCenter,"hide-timestamp":!0,type:l.timeLineConfig.type,color:l.timeLineConfig.color,size:l.timeLineConfig.size,icon:l.timeLineConfig.icon,hollow:l.timeLineConfig.isHollow},{default:a.withCtx(()=>[a.renderSlot(r.$slots,"content",{content:d==null?void 0:d.content,timestamp:d==null?void 0:d.timestamp},void 0,!0)]),_:2},1032,["timestamp","placement","center","type","color","size","icon","hollow"]))),128))]),_:3})}}}),F2=ql._export_sfc(P2,[["__scopeId","data-v-4172a886"]]),j2={class:"line-content"},H2={class:"line-time"},U2=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},setup(l){const r=l,n=a.ref({}),t=a.ref([]);return a.watch(()=>r==null?void 0:r.itemData,s=>{var d,b;t.value=(d=s==null?void 0:s.find(h=>(h==null?void 0:h.key)==="timeLineList"))==null?void 0:d.contents,n.value=(b=s==null?void 0:s.find(h=>(h==null?void 0:h.key)==="timeLineConfig"))==null?void 0:b.contents},{immediate:!0}),(s,d)=>(a.openBlock(),a.createBlock(F2,{activities:t.value,timeLineConfig:n.value},{content:a.withCtx(({content:b,timestamp:h})=>[a.createElementVNode("span",j2,a.toDisplayString(b),1),a.createElementVNode("span",H2,a.toDisplayString(h),1)]),_:1},8,["activities","timeLineConfig"]))}}),q2=ql._export_sfc(U2,[["__scopeId","data-v-b4d9deed"]]),K2={class:"tabs-content"},W2=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},tabsData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,compNames:{type:String,default:""},cacheNewData:{type:Object},isDevMode:{type:Boolean},allMapContents:{type:Array,default:()=>[]}},emits:["change","contentChange","pageChange","rowClick","routeUrl","clickTrigger","clickMainKey"],setup(l,{emit:r}){const n=l,t=r,s=a.ref();a.watch(()=>n==null?void 0:n.itemData,()=>{s.value=n==null?void 0:n.itemData},{immediate:!0,deep:!0});const d=S=>{t("change",S)},b=(S,A)=>{t("contentChange",S,A)},h=S=>{t("pageChange",S)},v=S=>{t("rowClick",S)},y=(S,A)=>{t("routeUrl",S,A)},c=S=>{t("clickTrigger",S)},w=(S,A)=>{t("clickMainKey",S,A)};return(S,A)=>{var _,H;return a.openBlock(),a.createElementBlock("div",K2,[(_=s.value)!=null&&_.length?(a.openBlock(),a.createBlock(pl.ssTab,{tabsContents:s.value,key:(H=s.value)==null?void 0:H.length},{pane:a.withCtx(({tab:k,index:T})=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(jt)(k==null?void 0:k.comp)),{related:k==null?void 0:k.relatedTables,compNames:n==null?void 0:n.compNames,compName:k==null?void 0:k.name,cacheNewData:n==null?void 0:n.cacheNewData,isDevMode:l.isDevMode,itemData:k==null?void 0:k.compData,childItemData:k==null?void 0:k.itemChildData,onChange:d,index:(k==null?void 0:k.id)??T,config:{showIndex:k==null?void 0:k.showIndex,allowMove:k==null?void 0:k.allowMove,viewport:k==null?void 0:k.viewport},onContentChange:b,onPageChange:h,onRowClick:v,onRouteUrl:y,parentTableId:k==null?void 0:k.tableId,allMapContents:l.allMapContents,children:k==null?void 0:k.children,level:1,onClickTrigger:c,onClickMainKey:w},null,40,["related","compNames","compName","cacheNewData","isDevMode","itemData","childItemData","index","config","parentTableId","allMapContents","children"]))]),_:1},8,["tabsContents"])):a.createCommentVNode("",!0)])}}}),Y2=ql._export_sfc(W2,[["__scopeId","data-v-ded4e0d9"]]),G2={class:"type-select"},J2=["onClick"],X2={class:"list-icon"},Z2={__name:"modelSelect",setup(l){const r=rt(I.pinia),{itemData:n}=I.storeToRefs(r),t=s=>{const d=I.cloneDeep(n.value);d.push({comp:s.comp,name:s.name,compData:[]}),r.setItemData(d)};return(s,d)=>{const b=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",G2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(Kc),(h,v)=>(a.openBlock(),a.createElementBlock("div",{class:"type-list",key:v},[a.createElementVNode("div",{class:"list-content",onClick:y=>t(h)},[a.createElementVNode("div",X2,[a.createVNode(b,{name:h.icon},null,8,["name"])]),a.createElementVNode("div",null,a.toDisplayString(h.name),1)],8,J2)]))),128))])}}},Q2=ql._export_sfc(Z2,[["__scopeId","data-v-91799bf8"]]),eh={class:"fill-content"},ah={class:"operate-content"},lh={class:"collapse-title-content"},rh={class:"collapse-title-item"},nh={key:1},th=["onClick"],oh={class:"icon-content"},ih={key:0,class:"edit-content"},sh=["onClick"],ch={class:"comp-child"},uh={__name:"modelFill",setup(l){const r=rt(I.pinia),{itemData:n,originalData:t}=I.storeToRefs(r),s=a.ref([]);a.ref([]);const d=a.ref([]),b=a.ref([]),h=A=>{var H;let _=(H=I.cloneDeep(b.value))==null?void 0:H.map((k,T)=>(A===T&&(k.content=!0),k));b.value=_},v=A=>{var H;let _=(H=I.cloneDeep(b.value))==null?void 0:H.map((k,T)=>(A===T&&(k.content=!1),k));b.value=_,s.value=I.cloneDeep(n.value)},y=(A,_)=>{var J;let H=(J=I.cloneDeep(b.value))==null?void 0:J.map((D,$)=>(A===$&&(D.content=!1),D));b.value=H;const k=I.cloneDeep(n.value),T=k==null?void 0:k.filter((D,$)=>($===A&&(D.name=_),D));r.setOriginalData(T),r.setItemData(T)};a.watch(()=>n.value,()=>{var A,_,H;!n.value||((A=n.value)==null?void 0:A.length)===0?s.value=[]:s.value=(_=I.cloneDeep(n.value))==null?void 0:_.filter(k=>(k==null?void 0:k.comp)!=="methodButton"),d.value=s.value,b.value=(H=I.cloneDeep(d.value))==null?void 0:H.map((k,T)=>({id:T,content:!1}))},{deep:!0,immediate:!0});const c=A=>St(A),w=(A,_,H)=>{var T,J;if(!A)return;let k=I.cloneDeep(n.value);k=(T=k==null?void 0:k.map((D,$)=>($===H&&(D.compData=A),D)))==null?void 0:T.filter(D=>(D==null?void 0:D.comp)!=="methodButton"),b.value=(J=I.cloneDeep(k))==null?void 0:J.map((D,$)=>({id:$,content:!1})),r.setOriginalData(k),r.setItemData(k)},S=A=>{I.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const _=I.cloneDeep(n.value),H=_==null?void 0:_.filter((k,T)=>T!==A);r.setOriginalData(H),r.setItemData(H),ll.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(A,_)=>{const H=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",eh,[_[1]||(_[1]=a.createElementVNode("div",{class:"fill-operate"},a.toDisplayString("操作栏"),-1)),a.createElementVNode("div",ah,[a.createVNode(Us.default,{class:"collapse-content",collapseContents:s.value},{title:a.withCtx(({item:k,index:T})=>{var J,D,$,z,x,g,F,q,G,be;return[a.createElementVNode("div",lh,[a.createElementVNode("div",rh,[(D=(J=b.value)==null?void 0:J.find(ze=>ze.id===T))!=null&&D.content?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:"collapse-title",style:a.normalizeStyle({marginRight:k.name&&k.name!==""?"8px":"0px"})},a.toDisplayString(k.name),5)),(z=($=b.value)==null?void 0:$.find(ze=>ze.id===T))!=null&&z.content?(a.openBlock(),a.createElementBlock("div",nh,[a.createVNode(pl.ssInput,{modelValue:k.name,"onUpdate:modelValue":ze=>k.name=ze,onClick:_[0]||(_[0]=a.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):a.createCommentVNode("",!0),(g=(x=b.value)==null?void 0:x.find(ze=>ze.id===T))!=null&&g.content?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:2,onClick:a.withModifiers(ze=>h(T),["stop"]),class:"icon-content"},[a.createVNode(H,{name:"Edit",style:{width:"16px",height:"16px"}})],8,th))]),a.createElementVNode("div",oh,[(q=(F=b.value)==null?void 0:F.find(ze=>ze.id===T))!=null&&q.content?(a.openBlock(),a.createElementBlock("div",ih,[a.createVNode(H,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:a.withModifiers(ze=>v(T),["stop"])},null,8,["onClick"]),a.createVNode(H,{name:"Save",onClick:a.withModifiers(ze=>y(T,k.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):a.createCommentVNode("",!0),(be=(G=b.value)==null?void 0:G.find(ze=>ze.id===T))!=null&&be.content?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:1,onClick:a.withModifiers(ze=>S(T),["stop"]),class:"icon-content"},[a.createVNode(H,{name:"Delete",style:{width:"16px",height:"16px"}})],8,sh))])])]}),content:a.withCtx(({item:k,index:T})=>{var J,D;return[a.createElementVNode("div",ch,[a.createTextVNode(a.toDisplayString(c(k.comp+"Operate"))+" ",1),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c(k.comp+"Operate")),{itemContents:k==null?void 0:k.compData,originalItemContents:(D=(J=d.value)==null?void 0:J.find(($,z)=>z===T))==null?void 0:D.compData,onChange:$=>w($,k,T)},null,40,["itemContents","originalItemContents","onChange"]))])]}),_:1},8,["collapseContents"])])])}}},dh=ql._export_sfc(uh,[["__scopeId","data-v-a46a44b9"]]),ph={key:0,class:"show-content"},fh={style:{display:"flex"}},hh={__name:"modelShow",setup(l){const r=rt(I.pinia),{itemData:n}=I.storeToRefs(r),t=a.ref([]);a.watch(()=>n.value,()=>{var d;!n.value||((d=n.value)==null?void 0:d.length)===0?t.value=[]:t.value=I.cloneDeep(n.value)},{deep:!0,immediate:!0});const s=d=>St(d);return(d,b)=>{var h;return((h=t.value)==null?void 0:h.length)>0?(a.openBlock(),a.createElementBlock("div",ph,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.value,(v,y)=>(a.openBlock(),a.createElementBlock("div",{class:"item-content",key:y},[a.createElementVNode("div",fh,a.toDisplayString(v.name),1),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s(v.comp)),{itemData:v==null?void 0:v.compData,childItemData:v==null?void 0:v.itemChildData,key:y},null,8,["itemData","childItemData"]))]))),128))])):a.createCommentVNode("",!0)}}},vh=ql._export_sfc(hh,[["__scopeId","data-v-3f3e863e"]]),mh={class:"tabs-header"},yh={class:"tabs-list"},gh={class:"tab-name"},bh={class:"tab-actions"},kh=["onClick"],xh=["onClick"],_h=["onClick"],wh={class:"model-operate"},Ch={class:"model-select",style:{display:"unset"}},Eh={class:"existing-components"},Sh={class:"component-list"},Dh=["onClick"],Bh={class:"component-info"},Nh={class:"component-type"},Th={class:"component-name"},Ah={class:"model-fill"},zh={__name:"operate",props:{itemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:r}){const n=l,t=r,s=a.ref([]),d=a.ref(!1),b=a.ref(""),h=a.ref({title:""}),v=a.ref(-1),y=a.ref(!1),c=a.ref(-1),w=a.ref(new WeakMap),S=a.ref(null),A=rt(I.pinia),{itemData:_}=I.storeToRefs(A),H=()=>{b.value="新增标签页",h.value.title="",v.value=-1,d.value=!0},k=te=>{b.value="修改标签页",h.value.title=s.value[te].title,v.value=te,d.value=!0},T=te=>{const B=$(te);w.value.delete(B),s.value.splice(te,1),Sa()},J=()=>{if(h.value.title.trim()){if(v.value===-1){const te={title:h.value.title,value:h.value.title,label:h.value.title,children:[],id:D()};s.value.push(te)}else s.value[v.value].title=h.value.title,s.value[v.value].value=h.value.title,s.value[v.value].label=h.value.title;d.value=!1,Sa()}},D=()=>`tab_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,$=te=>{const B=s.value[te];return B.id||(B.id=D()),B.id},z=te=>{var ye;c.value=te;const B=$(te);S.value=I.cloneDeep(_.value);let le=w.value.get(B);!le&&((ye=s.value[te].children)==null?void 0:ye.length)>0&&(le=q(s.value[te].children)),le?A.setItemData(I.cloneDeep(le)):A.setItemData([]),y.value=!0},x=a.computed(()=>{const te=I.useModelComp(I.pinia),B=I.storeToRefs(te).itemData.value;return console.log("可用组件数据",B),!B||!Array.isArray(B)?[]:B.filter(le=>{var ye;if(le.comp==="Tabs"&&c.value>=0){const se=$(c.value);if((ye=le.compData)==null?void 0:ye.some(ia=>{var xa;return ia.key==="stepList"&&((xa=ia.contents)==null?void 0:xa.some(Ha=>Ha.id===se))}))return!1}return!0})}),g=te=>({Table:"表格",Form:"表单",Tabs:"标签页",Chart:"图表",Card:"卡片"})[te]||te,F=te=>{var B;try{const le=I.cloneDeep(te);le.id=Date.now()+Math.random(),le.comp==="Tabs"&&((B=le.compData)==null||B.forEach(se=>{se.key==="stepList"&&se.contents&&se.contents.forEach(Ne=>{Ne.id=D()})}));const ye=I.cloneDeep(_.value);ye.push(le),A.setItemData(ye)}catch(le){console.error("添加组件失败:",le)}},q=te=>te.map(B=>{var le;switch(B.type){case"form":return{comp:"Form",name:B.value||"表单",compData:G(B.content)};case"table":return{comp:"Table",name:B.value||"表格",compData:be(B.content)};default:return{comp:"Unknown",name:B.value||"",compData:((le=B.content)==null?void 0:le.originalData)||[]}}}),G=te=>{if(!te)return[];const B=[];return te.rowContents&&B.push({key:"formContent",contents:te.rowContents}),te.buttonValue&&B.push({key:"formButton",contents:te.buttonValue}),typeof te.isEnableWrap<"u"&&B.push({key:"enableWrap",contents:te.isEnableWrap}),B},be=te=>[],ze=()=>{if(c.value>=0&&c.value<s.value.length){const te=$(c.value);w.value.set(te,I.cloneDeep(_.value)),s.value[c.value].children=ke(_.value),console.log("保存后的数据",ke(_.value))}y.value=!1,c.value=-1,S.value=null,Sa()},De=()=>{S.value&&A.setItemData(I.cloneDeep(S.value)),y.value=!1,c.value=-1,S.value=null},ne=()=>{y.value&&De()},ke=te=>{if(!Array.isArray(te))throw new Error("sourceData must be an array");return te.map((B,le)=>{if(!B||typeof B!="object")return B;const{comp:ye,name:se,compData:Ne}=B;switch(ye){case"Form":return{type:"form",content:X(Ne||[]),value:"表单"};case"Table":return{type:"table",content:pe(Ne||[]),value:"表格"};default:return{type:"xxx",content:Ke(Ne||[]),value:""}}})},X=te=>{const B={formRules:{},rowContents:[],buttonValue:[],rowValues:[],isEnableWrap:!0,isRowFlex:!0,isButtonRow:!0,isEdit:!0,isStartJustify:!0},le={formContent:"rowContents",enableWrap:"isEnableWrap",formButton:"buttonValue"};return te.forEach((ye,se)=>{if(!ye||typeof ye!="object"){console.warn(`Invalid config at index ${se}:`,ye);return}const{key:Ne,contents:ia}=ye,xa=le[Ne];if(!xa){console.warn(`Unknown Form config key: ${Ne}`);return}Ne==="enableWrap"?B[xa]=!!ia:B[xa]=Array.isArray(ia)?ia:[]}),B},pe=te=>{const B={columns:[],tableData:[],extraButton:[],rowButton:[],currentPage:0,total:0,pageSize:0,isShowPagination:!0,isShowEdit:!0,isMoveColumn:!0,isShowDelete:!0},le={header:"columns",tableContents:"tableData"};return te.forEach((ye,se)=>{if(!ye||typeof ye!="object"){console.warn(`Invalid config at index ${se}:`,ye);return}const{key:Ne,contents:ia}=ye,xa=le[Ne];if(!xa){console.warn(`Unknown Table config key: ${Ne}`);return}B[xa]=Array.isArray(ia)?ia:[]}),B},Ke=te=>(console.log("Default conversion logic - to be implemented"),{originalData:te,processed:!1,componentType:"unknown"}),Sa=()=>{const te=[{key:"stepList",contents:s.value}];t("change",te)};return a.watch(()=>n.itemContents,te=>{if(te&&te.length>0){const B=te.find(le=>le.key==="stepList");B&&B.contents&&(s.value=B.contents.map(le=>({title:le.title||"",value:le.value||le.title||"",label:le.label||le.title||"",children:le.children||[],id:le.id||D()})))}},{immediate:!0,deep:!0}),(te,B)=>{const le=a.resolveComponent("svg-icon"),ye=a.resolveComponent("el-input"),se=a.resolveComponent("el-form-item"),Ne=a.resolveComponent("el-form");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",mh,[B[6]||(B[6]=a.createElementVNode("h4",null,"标签页管理",-1)),a.createElementVNode("button",{onClick:H},[a.createVNode(le,{name:"Plus",style:{width:"14px",height:"14px","margin-right":"4px"}}),B[5]||(B[5]=a.createTextVNode(" 新增标签页 "))])]),a.createElementVNode("div",yh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,(ia,xa)=>(a.openBlock(),a.createElementBlock("div",{class:"tab-item",key:xa},[a.createElementVNode("span",gh,a.toDisplayString(ia.title),1),a.createElementVNode("div",bh,[a.createElementVNode("button",{onClick:Ha=>k(xa)},"修改标题",8,kh),a.createElementVNode("button",{onClick:Ha=>z(xa)},"布局调整",8,xh),a.createElementVNode("button",{onClick:Ha=>T(xa)},"删除",8,_h)])]))),128))]),a.createVNode(vr.ssDialog,{modelValue:d.value,"onUpdate:modelValue":B[2]||(B[2]=ia=>d.value=ia),title:b.value,onBeforeDestroy:B[3]||(B[3]=ia=>d.value=!1)},{footer:a.withCtx(()=>[a.createElementVNode("button",{onClick:B[1]||(B[1]=ia=>d.value=!1)},"取消"),a.createElementVNode("button",{type:"primary",onClick:J},"确定")]),default:a.withCtx(()=>[a.createVNode(Ne,{model:h.value,"label-width":"80px"},{default:a.withCtx(()=>[a.createVNode(se,{label:"标签名称",required:""},{default:a.withCtx(()=>[a.createVNode(ye,{modelValue:h.value.title,"onUpdate:modelValue":B[0]||(B[0]=ia=>h.value.title=ia),placeholder:"请输入标签页名称"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),a.createVNode(vr.ssDialog,{modelValue:y.value,"onUpdate:modelValue":B[4]||(B[4]=ia=>y.value=ia),title:"布局调整",fullScreen:"",onBeforeDestroy:ne},{footer:a.withCtx(()=>[a.createElementVNode("button",{onClick:De},"取消"),a.createElementVNode("button",{onClick:ze},"确定")]),default:a.withCtx(()=>[a.createElementVNode("div",wh,[a.createElementVNode("div",Ch,[a.createVNode(Q2),a.createElementVNode("div",Eh,[B[8]||(B[8]=a.createElementVNode("h5",null,"添加已有组件",-1)),a.createElementVNode("div",Sh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(x.value,ia=>(a.openBlock(),a.createElementBlock("div",{key:ia.id,class:"component-item",onClick:xa=>F(ia)},[a.createElementVNode("div",Bh,[a.createElementVNode("span",Nh,a.toDisplayString(g(ia.comp)),1),a.createElementVNode("span",Th,a.toDisplayString(ia.name),1)]),B[7]||(B[7]=a.createElementVNode("button",{class:"add-btn"},"添加",-1))],8,Dh))),128))])])]),(a.openBlock(),a.createElementBlock("div",{class:"model-show",key:te.innerWidth},[a.createVNode(vh)])),a.createElementVNode("div",Ah,[a.createVNode(dh)])])]),_:1},8,["modelValue"])])}}},Mh=ql._export_sfc(zh,[["__scopeId","data-v-9096ed0d"]]);function Oh(){return{title:{text:"",left:"center",top:10,textStyle:{color:"#333",fontSize:18,fontWeight:"bold"}},tooltip:{trigger:"axis"},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",axisLabel:{interval:0},data:[]},yAxis:{type:"value"},series:[]}}function Ih(l){return{type:"line",...l}}function Lh(){return{title:{text:"",left:"center",top:10,textStyle:{color:"#333",fontSize:18,fontWeight:"bold"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:[{type:"value"}],series:[]}}function Vh(l){return{type:"bar",barWidth:"60%",...l}}function $h(){return{title:{text:"",left:"center"},tooltip:{trigger:"item"},series:[]}}function Rh(l){return{type:"pie",radius:"50%",emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},...l}}const Tn={line:{initBaseoptions:Oh,initSeries:Ih},bar:{initBaseoptions:Lh,initSeries:Vh},pie:{initBaseoptions:$h,initSeries:Rh}},ms=I.useMenuState(I.pinia),Ec=(l,r)=>{var c;const n=[],t=[],{group:s,nameCol:d,valueCol:b}=r||{},h=l==null?void 0:l.find(w=>{const{name:S}=w;return S===s});if(!h)return{names:n,values:t};const v=(c=h==null?void 0:h.compData)==null?void 0:c.find(w=>{const{key:S}=w;return S==="tableContents"});return((v==null?void 0:v.contents)||[]).forEach(w=>{const S=w==null?void 0:w[0];let A=!1;ll.isObject(S)&&(S!=null&&S.id)&&(A=!0);let _=d,H=b;A&&(_=_+1,H=H+1);const k=w==null?void 0:w[_],T=w==null?void 0:w[H];n.push(k),t.push(T)}),{names:n,values:t}},Ph=async l=>{const{menu:r,mainKey:n,detailGroup:t,detailNameCol:s,detailValueCol:d,isSelfDetail:b}=l||{};let h=null;const v=sessionStorage.getItem("systemKey");if(b&&ms.activeMenuPath&&(h=await na.getItemData(`${ms.activeMenuPath}`,v,"")),!b){const y=r==null?void 0:r.join("/");h=await na.getItemData(`${y}^${n}`,v,"")}return Ec(h,{group:t,nameCol:s,valueCol:d})},Fh=async l=>{const{menu:r,group:n,nameCol:t,valueCol:s}=l||{},d=r==null?void 0:r.join("/"),b=sessionStorage.getItem("systemKey"),h=await na.getItemData(d,b,"");return Ec(h,{group:n,nameCol:t,valueCol:s})},Ci=async(l,r)=>{const n={names:[],values:[]},{menu:t,group:s,nameCol:d,valueCol:b}=l||{};if(!t.length||!s)return n;const{mainKey:h,group:v,nameCol:y,valueCol:c,isSelfDetail:w}=r||{};return h&&v&&pl.isNumber(y)&&pl.isNumber(c)?await Ph({menu:t,mainKey:h,detailGroup:v,detailNameCol:y,detailValueCol:c,isSelfDetail:w}):pl.isNumber(d)&&pl.isNumber(b)?await Fh({menu:t,group:s,nameCol:d,valueCol:b}):n},jh=async({chartBaseConfig:l,chartDataConfig:r,chartDetailConfig:n})=>{const{type:t,title:s}=l||{},d=Tn==null?void 0:Tn[t];if(!d)return;const{initBaseoptions:b,initSeries:h}=d,v=b();v.title.text=s??"";const{names:y,values:c}=await Ci(r,n);if(!y||!c)return v;v.xAxis.data=y;const w=h({data:c});return v.series.push(w),v},Hh=async({chartBaseConfig:l,chartDataConfig:r,chartDetailConfig:n})=>{const{type:t,title:s}=l||{},d=Tn==null?void 0:Tn[t];if(!d)return;const{initBaseoptions:b,initSeries:h}=d,v=b();v.title.text=s??"";const{names:y,values:c}=await Ci(r,n);if(!y||!c)return v;v.xAxis.data=y;const w=h({data:c});return v.series.push(w),v},Uh=async({chartBaseConfig:l,chartDataConfig:r,chartDetailConfig:n})=>{const{type:t,title:s}=l||{},d=Tn==null?void 0:Tn[t];if(!d)return;const{initBaseoptions:b,initSeries:h}=d,v=b();v.title.text=s??"";const{names:y,values:c}=await Ci(r,n);if(!y||!c)return v;const w=[];for(let A=0;A<y.length;A++){const _=y[A],H=c[A];w.push({name:_,value:H})}const S=h({data:w});return v.series.push(S),v},qh=async(l=[])=>{var b,h,v;const r=((b=l==null?void 0:l.find(y=>y.key==="chartBaseConfig"))==null?void 0:b.contents)??{},n=((h=l==null?void 0:l.find(y=>y.key==="chartDataConfig"))==null?void 0:h.contents)??{},t=((v=l==null?void 0:l.find(y=>y.key==="chartDetailConfig"))==null?void 0:v.contents)??{},{type:s}=r;let d={};return s==="line"&&(d=await jh({chartBaseConfig:r,chartDataConfig:n,chartDetailConfig:t})),s==="bar"&&(d=await Hh({chartBaseConfig:r,chartDataConfig:n,chartDetailConfig:t})),s==="pie"&&(d=await Uh({chartBaseConfig:r,chartDataConfig:n,chartDetailConfig:t})),d},Kh=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}},height:{type:String,default:"300px"}},setup(l){const r=l,n=a.ref({});a.onMounted(async()=>{const s=r==null?void 0:r.itemData;n.value=await qh(s)});const t=a.computed(()=>(r==null?void 0:r.height)||"300px");return(s,d)=>(a.openBlock(),a.createElementBlock("div",{class:"eCharts",style:a.normalizeStyle({height:t.value})},[a.createVNode(bu.ssChart,{optionContents:n.value},null,8,["optionContents"])],4))}}),Wh=ql._export_sfc(Kh,[["__scopeId","data-v-d4c081e8"]]),Yh={class:"chart-module layout"},Gh={class:"chart-module content"},Jh={class:"chart-module content"},Xh={class:"form-content"},Zh={class:"dialog-footer"},Qh={class:"form-content"},e4={class:"dialog-footer"},a4={class:"form-content"},l4={class:"dialog-footer"},r4=a.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:r}){const n=l,t=r,s=a.reactive({visible:!1,width:"840",title:"基础配置"}),d=a.ref([]),b=()=>[{label:"类型",prop:"type",type:"select",contents:[{label:"柱状图",value:"bar"},{label:"饼图",value:"pie"},{label:"折线图",value:"line"}],value:""},{label:"标题",prop:"title",type:"input",value:""}],h=a.ref({}),v=()=>{var He;d.value=b(),(He=d.value)==null||He.forEach(Ae=>{var Ge;const Re=Ae==null?void 0:Ae.prop;Ae.value=(Ge=h==null?void 0:h.value)==null?void 0:Ge[Re]}),s.visible=!0},y=He=>{h.value=He},c=()=>{var He;s.visible=!1,t("change",(He=Pe())==null?void 0:He.compData)},w=a.reactive({visible:!1,width:"840",title:"数据配置"}),S=a.ref([]),A=()=>[{label:"菜单选项",prop:"menu",type:"cascader",contents:[]},{label:"组信息选项",prop:"group",type:"select",contents:[]},{label:"名称列",prop:"nameCol",type:"select",contents:[]},{label:"取值列",prop:"valueCol",type:"select",contents:[]}],_=a.ref({}),H=()=>{const He=S.value,Ae=I.cloneDeep(He);return Ae==null||Ae.forEach(Re=>{var Ka;const Ge=Re==null?void 0:Re.prop;Re.value=(Ka=_.value)==null?void 0:Ka[Ge]}),Ae},k=He=>{var Re;_.value=He;const Ae=H();S.value=Ae,t("change",(Re=Pe())==null?void 0:Re.compData)},T=async()=>{const He=await na.getMenusContent(),Ae=H();Ae==null||Ae.forEach(Re=>{(Re==null?void 0:Re.prop)==="menu"&&(Re.contents=He)}),S.value=Ae,w.visible=!0,await ia(_.value.menu),await ee(_.value.group)},J=a.reactive({visible:!1,width:"840",title:"详情页配置"}),D=a.ref([]),$=()=>[{label:"详情页主键",prop:"mainKey",type:"select",contents:[]},{label:"使用当前详情页内容",prop:"isSelfDetail",type:"switch"},{label:"组信息选项",prop:"group",type:"select",contents:[]},{label:"名称列",prop:"nameCol",type:"select",contents:[]},{label:"取值列",prop:"valueCol",type:"select",contents:[]}],z=a.ref({}),x=()=>{const He=D.value,Ae=I.cloneDeep(He);return Ae==null||Ae.forEach(Re=>{var Ka;const Ge=Re==null?void 0:Re.prop;Re.value=(Ka=z.value)==null?void 0:Ka[Ge]}),Ae},g=He=>{var Re;z.value=He;const Ae=x();D.value=Ae,t("change",(Re=Pe())==null?void 0:Re.compData)},F=async()=>{await ne();const He=I.cloneDeep(q.value),Ae=x();Ae==null||Ae.forEach(Re=>{var Ka;const Ge=Re==null?void 0:Re.prop;Re.value=(Ka=z==null?void 0:z.value)==null?void 0:Ka[Ge],Ge==="mainKey"&&(Re.contents=He)}),D.value=Ae,J.visible=!0},q=a.ref([]),G=a.ref([]),be=a.ref({}),ze=a.ref({}),De=()=>{const{compData:He}=ye.value||{},Ae=He==null?void 0:He.find(Y=>{const{key:oe}=Y;return oe==="header"}),Re=(Ae==null?void 0:Ae.contents)||[],Ge=Re==null?void 0:Re.filter((Y,oe)=>{const{label:ie}=Y;return ie!=="操作"}),Ka=Ge==null?void 0:Ge.findIndex((Y,oe)=>{const{isMainKey:ie}=Y;return ie});if(Ka<0)return[];const Ia=He==null?void 0:He.find(Y=>{const{key:oe}=Y;return oe==="tableContents"}),R=(Ia==null?void 0:Ia.contents)||[];return R==null?void 0:R.map(Y=>{const oe=Y==null?void 0:Y[0];let ie=Ka;ll.isObject(oe)&&(oe!=null&&oe.id)&&(ie=ie+1);const fa=Y==null?void 0:Y[ie];return{label:fa,value:fa}})},ne=async()=>{const He=await De();q.value=He},ke=async He=>{const Ae=sessionStorage.getItem("systemKey");return await na.getItemData(He,Ae,"")},X=async He=>{const Ae=He;G.value=Ae==null?void 0:Ae.map(Re=>{const{name:Ge}=Re;return be.value[Ge]=Re,{label:Ge,value:Ge}})},pe=He=>{const{comp:Ae,compData:Re}=ze.value||{};if(Ae==="Table"){let Ge=x();Ge=Ge.filter(Ka=>{const{prop:Ia}=Ka;return Ia!=="formItems"}),xa(Ge,Re),D.value=Ge}},Ke=async()=>{var Re,Ge;const He=(Re=z==null?void 0:z.value)==null?void 0:Re.mainKey,Ae=(Ge=_==null?void 0:_.value)==null?void 0:Ge.menu;if(He){const Ia=`${Ae==null?void 0:Ae.join("/")}^${He}`,R=await ke(Ia);await X(R);const P=x();P==null||P.forEach(Y=>{(Y==null?void 0:Y.prop)==="group"&&(Y.contents=G.value)}),D.value=P}};a.watch(()=>{var He;return(He=z==null?void 0:z.value)==null?void 0:He.mainKey},async(He,Ae)=>{He!=Ae&&He&&await Ke()});const Sa=async He=>{const Ae=be.value[He];ze.value=Ae,await pe()};a.watch(()=>{var He;return(He=z==null?void 0:z.value)==null?void 0:He.group},async(He,Ae)=>{He!=Ae&&He&&Sa(He)});const te=async()=>{var Ae;await Ke();const He=(Ae=z.value)==null?void 0:Ae.group;await Sa(He)},B=a.ref([]),le=a.ref({}),ye=a.ref({}),se=async He=>{const Ae=He==null?void 0:He.join("/"),Re=sessionStorage.getItem("systemKey");return await na.getItemData(Ae,Re,"")},Ne=async He=>{const Ae=await se(He);B.value=Ae==null?void 0:Ae.map(Re=>{const{name:Ge}=Re;return le.value[Ge]=Re,{label:Ge,value:Ge}})},ia=async(He,Ae)=>{await Ne(He);const Re=H();Re==null||Re.forEach(Ge=>{(Ge==null?void 0:Ge.prop)==="group"&&(Ge.contents=B.value)}),S.value=Re};a.watch(()=>{var He;return(He=_==null?void 0:_.value)==null?void 0:He.menu},async(He,Ae)=>{const Re=He==null?void 0:He.join("/"),Ge=Ae==null?void 0:Ae.join("/");Re!=Ge&&await ia(He)});const xa=(He,Ae)=>{const Re=Ae==null?void 0:Ae.find(R=>{const{key:P}=R;return P==="header"}),Ge=(Re==null?void 0:Re.contents)||[],Ka=Ge==null?void 0:Ge.filter((R,P)=>{const{label:Y}=R;return Y!=="操作"}),Ia=Ka==null?void 0:Ka.map((R,P)=>{const{label:Y}=R;return{label:Y,value:P}});He==null||He.forEach(R=>{const P=R==null?void 0:R.prop;(P==="nameCol"||P==="valueCol")&&(R.contents=Ia)})},Ha=He=>{const{comp:Ae,compData:Re}=ye.value||{};if(Ae==="Table"){_.value.formItems=[];let Ge=H();Ge=Ge.filter(Ka=>{const{prop:Ia}=Ka;return Ia!=="formItems"}),xa(Ge,Re),S.value=Ge}},ee=async He=>{const Ae=le.value[He];ye.value=Ae,await Ha()};a.watch(()=>{var He;return(He=_==null?void 0:_.value)==null?void 0:He.group},async(He,Ae)=>{He!=Ae&&ee(He)});const ea=async()=>{var Re,Ge;const He=(Re=_.value)==null?void 0:Re.menu;await ia(He);const Ae=(Ge=_.value)==null?void 0:Ge.group;await ee(Ae)},Pe=()=>({comp:"chart",compData:[{key:"chartBaseConfig",contents:h.value},{key:"chartDataConfig",contents:_.value},{key:"chartDetailConfig",contents:z.value}]}),ga=()=>{s.visible=!1,w.visible=!1,J.visible=!1};return a.onMounted(async()=>{var Ae,Re,Ge;S.value=A(),D.value=$();const He=n==null?void 0:n.itemContents;h.value=((Ae=He==null?void 0:He.find(Ka=>Ka.key==="chartBaseConfig"))==null?void 0:Ae.contents)??{},_.value=((Re=He==null?void 0:He.find(Ka=>Ka.key==="chartDataConfig"))==null?void 0:Re.contents)??{},await ea(),z.value=((Ge=He==null?void 0:He.find(Ka=>Ka.key==="chartDetailConfig"))==null?void 0:Ge.contents)??{},await te()}),(He,Ae)=>{const Re=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",Yh,[Ae[4]||(Ae[4]=a.createElementVNode("div",{class:"module-title"},"基础配置",-1)),a.createVNode(Re,{id:"themeButton",onClick:Ae[0]||(Ae[0]=Ge=>v())},{default:a.withCtx(()=>Ae[3]||(Ae[3]=[a.createTextVNode(" 修改 ")])),_:1,__:[3]})]),a.createElementVNode("div",Gh,[Ae[6]||(Ae[6]=a.createElementVNode("h4",{class:"module-title"},"数据配置",-1)),a.createVNode(Re,{id:"themeButton",onClick:Ae[1]||(Ae[1]=Ge=>T())},{default:a.withCtx(()=>Ae[5]||(Ae[5]=[a.createTextVNode(" 修改 ")])),_:1,__:[5]})]),a.createElementVNode("div",Jh,[Ae[8]||(Ae[8]=a.createElementVNode("h4",{class:"module-title"},"详情数据配置",-1)),a.createVNode(Re,{id:"themeButton",onClick:Ae[2]||(Ae[2]=Ge=>F())},{default:a.withCtx(()=>Ae[7]||(Ae[7]=[a.createTextVNode(" 修改 ")])),_:1,__:[7]})])]),a.createVNode(vr.ssDialog,{visible:s.visible,title:s.title,onBeforeDestroy:ga,width:s.width},{default:a.withCtx(()=>[a.createElementVNode("div",Xh,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:d.value,key:d.value,isEnableWrap:!0,onChange:y},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",Zh,[a.createVNode(Re,{class:"cancel-button button",onClick:ga,id:"themeBorderButton"},{default:a.withCtx(()=>Ae[9]||(Ae[9]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[9]}),a.createVNode(Re,{class:"ok-button button",onClick:c,id:"themeButton"},{default:a.withCtx(()=>Ae[10]||(Ae[10]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[10]})])]),_:1},8,["visible","title","width"]),a.createVNode(vr.ssDialog,{visible:w.visible,title:w.title,onBeforeDestroy:ga,width:w.width},{default:a.withCtx(()=>[a.createElementVNode("div",Qh,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:S.value,key:S.value,isEnableWrap:!0,onChange:k},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",e4,[a.createVNode(Re,{class:"cancel-button button",onClick:ga,id:"themeBorderButton"},{default:a.withCtx(()=>Ae[11]||(Ae[11]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[11]}),a.createVNode(Re,{class:"ok-button button",onClick:ga,id:"themeButton"},{default:a.withCtx(()=>Ae[12]||(Ae[12]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible","title","width"]),a.createVNode(vr.ssDialog,{visible:J.visible,title:J.title,onBeforeDestroy:ga,width:J.width},{default:a.withCtx(()=>[a.createElementVNode("div",a4,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:D.value,key:D.value,isEnableWrap:!0,onChange:g},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",l4,[a.createVNode(Re,{class:"cancel-button button",onClick:ga,id:"themeBorderButton"},{default:a.withCtx(()=>Ae[13]||(Ae[13]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[13]}),a.createVNode(Re,{class:"ok-button button",onClick:ga,id:"themeButton"},{default:a.withCtx(()=>Ae[14]||(Ae[14]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible","title","width"])],64)}}}),n4=ql._export_sfc(r4,[["__scopeId","data-v-fe119645"]]),t4={class:"layout"},o4=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["rowClick"],setup(l,{emit:r}){const n=r,t=l;a.onMounted(async()=>{});const s=a.computed(()=>I.cloneDeep(t==null?void 0:t.itemData)||[]),d=a.computed(()=>{var c;const y=(c=s==null?void 0:s.value)==null?void 0:c.find(w=>{const{key:S}=w;return S==="baseConfig"});return y==null?void 0:y.contents}),b=a.computed(()=>{var c;const y=(c=s==null?void 0:s.value)==null?void 0:c.find(w=>{const{key:S}=w;return S==="children"});return y==null?void 0:y.contents}),h=a.computed(()=>{let y=I.cloneDeep(b.value)||[];const c=y.length;let w=0;const S=[];if(y=y.map(A=>{const _=A.span;return _?(A.span=Number(_),w=w+A.span):S.push(A),A}),w<24){const A=Math.floor((24-w)/c);S.forEach(_=>{_.span=A})}return y}),v=y=>{n("rowClick",y)};return(y,c)=>{var A;const w=a.resolveComponent("el-col"),S=a.resolveComponent("el-row");return a.openBlock(),a.createElementBlock("div",t4,[a.createVNode(S,{style:a.normalizeStyle({height:(A=d.value)==null?void 0:A.height})},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.value,(_,H)=>(a.openBlock(),a.createBlock(w,{span:_==null?void 0:_.span},{default:a.withCtx(()=>{var k;return[a.unref(Et)?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(jt)(_.comp)),{key:a.unref($n),compName:_.name,index:(_==null?void 0:_.id)??H,height:(k=d.value)==null?void 0:k.height,itemData:_==null?void 0:_.compData,childItemData:_==null?void 0:_.itemChildData,onChange:a.unref(Eo),onContentChange:a.unref(So),onPageChange:a.unref(Do),onRowClick:v},null,40,["compName","index","height","itemData","childItemData","onChange","onContentChange","onPageChange"])):a.createCommentVNode("",!0)]}),_:2},1032,["span"]))),256))]),_:1},8,["style"])])}}}),i4=ql._export_sfc(o4,[["__scopeId","data-v-ab9a36ed"]]),s4={class:"layout-operate"},c4={class:"layout-module"},u4={class:"collapse-title-item"},d4={class:"collapse-title"},p4={class:"icon-content"},f4=["onClick"],h4={class:"comp-child"},v4=a.defineComponent({__name:"operate",props:{itemContents:{type:Object,default:()=>{}},originalItemContents:{type:Array,default:()=>[]},itemChildData:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:r}){const n=l,t=r;a.onMounted(()=>{H()});const s=a.ref({}),d=a.ref({}),b=a.ref([]),h=z=>[{label:"高度",prop:"height",type:"input",value:z==null?void 0:z.height}],v=z=>{d.value=z,t("change",$(),!0)},y=a.ref([]),c=a.ref([]),w=z=>[{label:"占比",prop:"span",type:"input",value:z==null?void 0:z.span}],S=a.computed(()=>{const z=n==null?void 0:n.itemContents;return I.cloneDeep(z)}),A=a.computed(()=>{const z=S==null?void 0:S.value,x=z==null?void 0:z.find(g=>{const{key:F}=g;return F==="baseConfig"});return x==null?void 0:x.contents}),_=a.computed(()=>{const z=S==null?void 0:S.value,x=z==null?void 0:z.find(g=>{const{key:F}=g;return F==="children"});return x==null?void 0:x.contents}),H=()=>{var z;s.value=S.value||{},y.value=(_==null?void 0:_.value)||[],b.value=h(),b.value=(z=b.value)==null?void 0:z.map(x=>{var F;const{prop:g}=x;return x.value=(F=A.value)==null?void 0:F[g],x})};a.watch(()=>{var z;return(z=_==null?void 0:_.value)==null?void 0:z.length},()=>{var z;y.value=(_==null?void 0:_.value)||[],c.value=(z=_.value)==null?void 0:z.map(x=>w(x))},{immediate:!0});const k=(z,x)=>{const g=I.cloneDeep(_==null?void 0:_.value);g[x].span=z.span,y.value=g,t("change",$(),!0)},T=z=>St(z),J=(z,x,g)=>{if(!z)return;const F=I.cloneDeep(_==null?void 0:_.value);F[g]&&(F[g].compData=z,y.value=F,t("change",$(),!0))},D=z=>{I.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{let x=I.cloneDeep(_==null?void 0:_.value);x=x==null?void 0:x.filter((g,F)=>z!==F),y.value=x,t("change",$(),!0),ll.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},$=()=>({compData:[{key:"baseConfig",contents:d.value},{key:"children",contents:y==null?void 0:y.value}]});return(z,x)=>{const g=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",s4,[a.createElementVNode("div",c4,[x[1]||(x[1]=a.createElementVNode("div",{class:"module-title"},"基础配置",-1)),a.createElementVNode("div",null,[a.createVNode(pl.ssForm,{rowContents:b.value,isEnableWrap:!0,onChange:x[0]||(x[0]=F=>v(F))},null,8,["rowContents"])])]),a.createVNode(Us.default,{class:"collapse-content",collapseContents:_.value},{title:a.withCtx(({item:F,index:q})=>[a.createElementVNode("div",u4,[a.createElementVNode("div",d4,a.toDisplayString(F.name),1),a.createElementVNode("div",p4,[a.createElementVNode("div",{onClick:a.withModifiers(G=>D(q),["stop"]),class:"icon-content"},[a.createVNode(g,{name:"Delete",style:{width:"16px",height:"16px"}})],8,f4)])])]),content:a.withCtx(({item:F,index:q})=>[a.createElementVNode("div",h4,[a.createElementVNode("div",null,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:c.value[q],key:q,isEnableWrap:!0,onChange:G=>k(G,q)},null,8,["rowContents","onChange"]))]),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(T(F.comp+"Operate")),{itemContents:F==null?void 0:F.compData,originalItemContents:F.compData,onChange:G=>J(G,F,q)},null,40,["itemContents","originalItemContents","onChange"]))])]),_:1},8,["collapseContents"])])}}}),m4=ql._export_sfc(v4,[["__scopeId","data-v-ba05456e"]]),y4=typeof window<"u";var ys;y4&&((ys=window==null?void 0:window.navigator)!=null&&ys.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function rn(l){return l==null}function Sc(){}const g4=Object.freeze({aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"});Object.freeze(new Set(Object.keys(g4)));function b4(){const l=new Map;return{on(r,n){const t=l.get(r);t!=null&&t.add(n)||l.set(r,new Set([n]))},off(r,n){const t=l.get(r);t&&t.delete(n)},clear(r){const n=l.get(r);n&&n.clear()},clearAll(){l.clear()},emit(r,...n){const t=l.get(r);t&&t.forEach(s=>{s(...n)})}}}function gs(l,r=16){if(typeof l!="function")return Sc;const n=(...d)=>{l(...d)};if(r<=0)return Dc(n);let t=0,s;return function(...d){const b=Date.now(),h=b-t;clearTimeout(s),h>=r?(t=b,n(...d)):s=setTimeout(()=>{t=Date.now(),n(...d)},Math.max(0,r-h))}}function k4(l,r=100){if(typeof l!="function")return Sc;const n=(...s)=>{l(...s)};if(r<=0)return Dc(n);let t;return function(...s){clearTimeout(t),t=setTimeout(()=>{n(...s)},r)}}function Dc(l){if(typeof l!="function")return l;let r=!1,n,t;return function(...s){return n=s,r||(r=!0,t=Promise.resolve().then(()=>(r=!1,t=void 0,l(...n)))),t}}const $t=new Set,Bc=new WeakMap;function x4(){$t.forEach(l=>{l(...Bc.get(l))}),$t.clear()}function jr(l,...r){if(typeof l!="function")return l;Bc.set(l,r),!$t.has(l)&&($t.add(l),$t.size===1&&Promise.resolve().then(x4))}const Nc=Symbol("LAYOUT_KEY"),Tc=Symbol("EMITTER_KEY");function _4(l){let r=0,n;for(let t=0,s=l.length;t<s;t++)n=l[t].y+l[t].h,n>r&&(r=n);return r}function gi(l){const r=Array(l.length);for(let n=0,t=l.length;n<t;n++)r[n]=w4(l[n]);return r}function w4(l){return{...l}}function Ac(l,r){return!(l===r||l.x+l.w<=r.x||l.x>=r.x+r.w||l.y+l.h<=r.y||l.y>=r.y+r.h)}function bt(l,r,n){const t=Mc(l),s=Oc(l),d=Array(l.length);for(let b=0,h=s.length;b<h;b++){let v=s[b];v.static||(v=C4(t,v,r,n),t.push(v)),d[l.findIndex(y=>y.i===v.i)]=v,v.moved=!1}return d}function C4(l,r,n,t){if(n)for(;r.y>0&&!Rt(l,r);)r.y--;else if(t){const d=t[r.i].y;for(;r.y>d&&!Rt(l,r);)r.y--}let s;for(;s=Rt(l,r);)r.y=s.y+s.h;return r}function E4(l,r){const n=Mc(l);for(let t=0,s=l.length;t<s;t++){const d=l[t];if(d.x+d.w>r.cols&&(d.x=r.cols-d.w),d.x<0&&(d.x=0,d.w=r.cols),!d.static)n.push(d);else for(;Rt(n,d);)d.y++}return l}function bs(l,r){for(let n=0,t=l.length;n<t;n++)if(l[n].i===r)return l[n]}function Rt(l,r){for(let n=0,t=l.length;n<t;n++)if(Ac(l[n],r))return l[n]}function zc(l,r){return l.filter(n=>Ac(n,r))}function Mc(l){return l.filter(r=>r.static)}function bi(l,r,n,t,s=!1,d=!1){if(r.static)return l;const b=r.x,h=r.y,v=t&&r.y>t;typeof n=="number"&&(r.x=n),typeof t=="number"&&(r.y=t),r.moved=!0;let y=Oc(l);v&&(y=y.reverse());const c=zc(y,r);if(d&&c.length)return r.x=b,r.y=h,r.moved=!1,l;for(let w=0,S=c.length;w<S;w++){const A=c[w];A.moved||r.y>A.y&&r.y-A.y>A.h/4||(A.static?l=ks(l,A,r,s):l=ks(l,r,A,s))}return l}function ks(l,r,n,t){if(t){const s={x:n.x,y:n.y,w:n.w,h:n.h};if(s.y=Math.max(r.y-n.h,0),!Rt(l,s))return bi(l,n,void 0,s.y,!1)}return bi(l,n,void 0,n.y+1,!1)}function S4(l,r,n,t){const s="translate3d("+r+"px,"+l+"px, 0)";return{transform:s,WebkitTransform:s,MozTransform:s,msTransform:s,OTransform:s,width:n+"px",height:t+"px",position:"absolute"}}function D4(l,r,n,t){const s="translate3d("+r*-1+"px,"+l+"px, 0)";return{transform:s,WebkitTransform:s,MozTransform:s,msTransform:s,OTransform:s,width:n+"px",height:t+"px",position:"absolute"}}function B4(l,r,n,t){return{top:l+"px",left:r+"px",width:n+"px",height:t+"px",position:"absolute"}}function N4(l,r,n,t){return{top:l+"px",right:r+"px",width:n+"px",height:t+"px",position:"absolute"}}function Oc(l){return Array.from(l).sort(function(r,n){return r.y===n.y&&r.x===n.x?0:r.y>n.y||r.y===n.y&&r.x>n.x?1:-1})}function T4(l,r){r=r||"Layout";const n=["x","y","w","h"],t=[];if(!Array.isArray(l))throw new Error(r+" must be an array!");for(let s=0,d=l.length;s<d;s++){const b=l[s];for(let h=0;h<n.length;h++)if(typeof b[n[h]]!="number")throw new Error("VueGridLayout: "+r+"["+s+"]."+n[h]+" must be a number!");if(b.i===void 0||b.i===null)throw new Error("VueGridLayout: "+r+"["+s+"].i cannot be null!");if(typeof b.i!="number"&&typeof b.i!="string")throw new Error("VueGridLayout: "+r+"["+s+"].i must be a string or number!");if(t.indexOf(b.i)>=0)throw new Error("VueGridLayout: "+r+"["+s+"].i must be unique!");if(t.push(b.i),b.static!==void 0&&typeof b.static!="boolean")throw new Error("VueGridLayout: "+r+"["+s+"].static must be a boolean!")}}function A4(l,r="vgl"){const n=()=>`${r}-${l}`;return{b:n,be:t=>`${n()}__${t}`,bm:t=>`${n()}--${t}`,bem:(t,s)=>`${n()}__${t}--${s}`}}function xs(l){return z4(l)}function z4(l){var r;const n=((r=l.target)==null?void 0:r.offsetParent)||document.body,t=l.offsetParent===document.body?{left:0,top:0}:n.getBoundingClientRect(),s=l.clientX+n.scrollLeft-t.left,d=l.clientY+n.scrollTop-t.top;return{x:s,y:d}}function _s(l,r,n,t){return M4(l)?{deltaX:n-l,deltaY:t-r,lastX:l,lastY:r,x:n,y:t}:{deltaX:0,deltaY:0,lastX:n,lastY:t,x:n,y:t}}function M4(l){return typeof l=="number"&&!Number.isNaN(l)}function O4(l,r){const n=Lc(l);let t=n[0];for(let s=1,d=n.length;s<d;s++){const b=n[s];r>l[b]&&(t=b)}return t}function Ic(l,r){if(!r[l])throw new Error("ResponsiveGridLayout: `cols` entry for breakpoint "+l+" is missing!");return r[l]}function I4(l,r,n,t,s,d,b){if(r[t])return gi(r[t]);let h=l;const v=Lc(n),y=v.slice(v.indexOf(t));for(let c=0,w=y.length;c<w;c++){const S=y[c];if(r[S]){h=r[S];break}}return h=gi(h||[]),bt(E4(h,{cols:d}),b)}function Lc(l){return Object.keys(l).sort((r,n)=>l[r]-l[n])}let L4="auto";function V4(){return typeof document<"u"}function ws(){return V4()?typeof document.dir<"u"?document.dir:document.getElementsByTagName("html")[0].getAttribute("dir"):L4}var Vt={exports:{}},$4=Vt.exports,Cs;function R4(){return Cs||(Cs=1,function(l,r){(function(n,t){l.exports=t()})($4,function(){function n(i,o){var u=Object.keys(i);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(i);o&&(m=m.filter(function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable})),u.push.apply(u,m)}return u}function t(i){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?n(Object(u),!0).forEach(function(m){v(i,m,u[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(u)):n(Object(u)).forEach(function(m){Object.defineProperty(i,m,Object.getOwnPropertyDescriptor(u,m))})}return i}function s(i){return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},s(i)}function d(i,o){if(!(i instanceof o))throw new TypeError("Cannot call a class as a function")}function b(i,o){for(var u=0;u<o.length;u++){var m=o[u];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(i,H(m.key),m)}}function h(i,o,u){return o&&b(i.prototype,o),Object.defineProperty(i,"prototype",{writable:!1}),i}function v(i,o,u){return(o=H(o))in i?Object.defineProperty(i,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):i[o]=u,i}function y(i,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(o&&o.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),o&&w(i,o)}function c(i){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},c(i)}function w(i,o){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,m){return u.__proto__=m,u},w(i,o)}function S(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function A(i){var o=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var u,m=c(i);if(o){var C=c(this).constructor;u=Reflect.construct(m,arguments,C)}else u=m.apply(this,arguments);return function(L,U){if(U&&(typeof U=="object"||typeof U=="function"))return U;if(U!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S(L)}(this,u)}}function _(){return _=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(i,o,u){var m=function(L,U){for(;!Object.prototype.hasOwnProperty.call(L,U)&&(L=c(L))!==null;);return L}(i,o);if(m){var C=Object.getOwnPropertyDescriptor(m,o);return C.get?C.get.call(arguments.length<3?i:u):C.value}},_.apply(this,arguments)}function H(i){var o=function(u,m){if(typeof u!="object"||u===null)return u;var C=u[Symbol.toPrimitive];if(C!==void 0){var L=C.call(u,m);if(typeof L!="object")return L;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(u)}(i,"string");return typeof o=="symbol"?o:o+""}var k=function(i){return!(!i||!i.Window)&&i instanceof i.Window},T=void 0,J=void 0;function D(i){T=i;var o=i.document.createTextNode("");o.ownerDocument!==i.document&&typeof i.wrap=="function"&&i.wrap(o)===o&&(i=i.wrap(i)),J=i}function $(i){return k(i)?i:(i.ownerDocument||i).defaultView||J.window}typeof window<"u"&&window&&D(window);var z=function(i){return!!i&&s(i)==="object"},x=function(i){return typeof i=="function"},g={window:function(i){return i===J||k(i)},docFrag:function(i){return z(i)&&i.nodeType===11},object:z,func:x,number:function(i){return typeof i=="number"},bool:function(i){return typeof i=="boolean"},string:function(i){return typeof i=="string"},element:function(i){if(!i||s(i)!=="object")return!1;var o=$(i)||J;return/object|function/.test(typeof Element>"u"?"undefined":s(Element))?i instanceof Element||i instanceof o.Element:i.nodeType===1&&typeof i.nodeName=="string"},plainObject:function(i){return z(i)&&!!i.constructor&&/function Object\b/.test(i.constructor.toString())},array:function(i){return z(i)&&i.length!==void 0&&x(i.splice)}};function F(i){var o=i.interaction;if(o.prepared.name==="drag"){var u=o.prepared.axis;u==="x"?(o.coords.cur.page.y=o.coords.start.page.y,o.coords.cur.client.y=o.coords.start.client.y,o.coords.velocity.client.y=0,o.coords.velocity.page.y=0):u==="y"&&(o.coords.cur.page.x=o.coords.start.page.x,o.coords.cur.client.x=o.coords.start.client.x,o.coords.velocity.client.x=0,o.coords.velocity.page.x=0)}}function q(i){var o=i.iEvent,u=i.interaction;if(u.prepared.name==="drag"){var m=u.prepared.axis;if(m==="x"||m==="y"){var C=m==="x"?"y":"x";o.page[C]=u.coords.start.page[C],o.client[C]=u.coords.start.client[C],o.delta[C]=0}}}var G={id:"actions/drag",install:function(i){var o=i.actions,u=i.Interactable,m=i.defaults;u.prototype.draggable=G.draggable,o.map.drag=G,o.methodDict.drag="draggable",m.actions.drag=G.defaults},listeners:{"interactions:before-action-move":F,"interactions:action-resume":F,"interactions:action-move":q,"auto-start:check":function(i){var o=i.interaction,u=i.interactable,m=i.buttons,C=u.options.drag;if(C&&C.enabled&&(!o.pointerIsDown||!/mouse|pointer/.test(o.pointerType)||(m&u.options.drag.mouseButtons)!=0))return i.action={name:"drag",axis:C.lockAxis==="start"?C.startAxis:C.lockAxis},!1}},draggable:function(i){return g.object(i)?(this.options.drag.enabled=i.enabled!==!1,this.setPerAction("drag",i),this.setOnEvents("drag",i),/^(xy|x|y|start)$/.test(i.lockAxis)&&(this.options.drag.lockAxis=i.lockAxis),/^(xy|x|y)$/.test(i.startAxis)&&(this.options.drag.startAxis=i.startAxis),this):g.bool(i)?(this.options.drag.enabled=i,this):this.options.drag},beforeMove:F,move:q,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(i){return i.search("drag")===0}},be=G,ze={init:function(i){var o=i;ze.document=o.document,ze.DocumentFragment=o.DocumentFragment||De,ze.SVGElement=o.SVGElement||De,ze.SVGSVGElement=o.SVGSVGElement||De,ze.SVGElementInstance=o.SVGElementInstance||De,ze.Element=o.Element||De,ze.HTMLElement=o.HTMLElement||ze.Element,ze.Event=o.Event,ze.Touch=o.Touch||De,ze.PointerEvent=o.PointerEvent||o.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function De(){}var ne=ze,ke={init:function(i){var o=ne.Element,u=i.navigator||{};ke.supportsTouch="ontouchstart"in i||g.func(i.DocumentTouch)&&ne.document instanceof i.DocumentTouch,ke.supportsPointerEvent=u.pointerEnabled!==!1&&!!ne.PointerEvent,ke.isIOS=/iP(hone|od|ad)/.test(u.platform),ke.isIOS7=/iP(hone|od|ad)/.test(u.platform)&&/OS 7[^\d]/.test(u.appVersion),ke.isIe9=/MSIE 9/.test(u.userAgent),ke.isOperaMobile=u.appName==="Opera"&&ke.supportsTouch&&/Presto/.test(u.userAgent),ke.prefixedMatchesSelector="matches"in o.prototype?"matches":"webkitMatchesSelector"in o.prototype?"webkitMatchesSelector":"mozMatchesSelector"in o.prototype?"mozMatchesSelector":"oMatchesSelector"in o.prototype?"oMatchesSelector":"msMatchesSelector",ke.pEventTypes=ke.supportsPointerEvent?ne.PointerEvent===i.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,ke.wheelEvent=ne.document&&"onmousewheel"in ne.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},X=ke;function pe(i,o){if(i.contains)return i.contains(o);for(;o;){if(o===i)return!0;o=o.parentNode}return!1}function Ke(i,o){for(;g.element(i);){if(te(i,o))return i;i=Sa(i)}return null}function Sa(i){var o=i.parentNode;if(g.docFrag(o)){for(;(o=o.host)&&g.docFrag(o););return o}return o}function te(i,o){return J!==T&&(o=o.replace(/\/deep\//g," ")),i[X.prefixedMatchesSelector](o)}var B=function(i){return i.parentNode||i.host};function le(i,o){for(var u,m=[],C=i;(u=B(C))&&C!==o&&u!==C.ownerDocument;)m.unshift(C),C=u;return m}function ye(i,o,u){for(;g.element(i);){if(te(i,o))return!0;if((i=Sa(i))===u)return te(i,o)}return!1}function se(i){return i.correspondingUseElement||i}function Ne(i){var o=i instanceof ne.SVGElement?i.getBoundingClientRect():i.getClientRects()[0];return o&&{left:o.left,right:o.right,top:o.top,bottom:o.bottom,width:o.width||o.right-o.left,height:o.height||o.bottom-o.top}}function ia(i){var o,u=Ne(i);if(!X.isIOS7&&u){var m={x:(o=(o=$(i))||J).scrollX||o.document.documentElement.scrollLeft,y:o.scrollY||o.document.documentElement.scrollTop};u.left+=m.x,u.right+=m.x,u.top+=m.y,u.bottom+=m.y}return u}function xa(i){for(var o=[];i;)o.push(i),i=Sa(i);return o}function Ha(i){return!!g.string(i)&&(ne.document.querySelector(i),!0)}function ee(i,o){for(var u in o)i[u]=o[u];return i}function ea(i,o,u){return i==="parent"?Sa(u):i==="self"?o.getRect(u):Ke(u,i)}function Pe(i,o,u,m){var C=i;return g.string(C)?C=ea(C,o,u):g.func(C)&&(C=C.apply(void 0,m)),g.element(C)&&(C=ia(C)),C}function ga(i){return i&&{x:"x"in i?i.x:i.left,y:"y"in i?i.y:i.top}}function He(i){return!i||"x"in i&&"y"in i||((i=ee({},i)).x=i.left||0,i.y=i.top||0,i.width=i.width||(i.right||0)-i.x,i.height=i.height||(i.bottom||0)-i.y),i}function Ae(i,o,u){i.left&&(o.left+=u.x),i.right&&(o.right+=u.x),i.top&&(o.top+=u.y),i.bottom&&(o.bottom+=u.y),o.width=o.right-o.left,o.height=o.bottom-o.top}function Re(i,o,u){var m=u&&i.options[u];return ga(Pe(m&&m.origin||i.options.origin,i,o,[i&&o]))||{x:0,y:0}}function Ge(i,o){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(de){return!0},m=arguments.length>3?arguments[3]:void 0;if(m=m||{},g.string(i)&&i.search(" ")!==-1&&(i=Ka(i)),g.array(i))return i.forEach(function(de){return Ge(de,o,u,m)}),m;if(g.object(i)&&(o=i,i=""),g.func(o)&&u(i))m[i]=m[i]||[],m[i].push(o);else if(g.array(o))for(var C=0,L=o;C<L.length;C++){var U=L[C];Ge(i,U,u,m)}else if(g.object(o))for(var W in o)Ge(Ka(W).map(function(de){return"".concat(i).concat(de)}),o[W],u,m);return m}function Ka(i){return i.trim().split(/ +/)}var Ia=function(i,o){return Math.sqrt(i*i+o*o)},R=["webkit","moz"];function P(i,o){i.__set||(i.__set={});var u=function(C){if(R.some(function(L){return C.indexOf(L)===0}))return 1;typeof i[C]!="function"&&C!=="__set"&&Object.defineProperty(i,C,{get:function(){return C in i.__set?i.__set[C]:i.__set[C]=o[C]},set:function(L){i.__set[C]=L},configurable:!0})};for(var m in o)u(m);return i}function Y(i,o){i.page=i.page||{},i.page.x=o.page.x,i.page.y=o.page.y,i.client=i.client||{},i.client.x=o.client.x,i.client.y=o.client.y,i.timeStamp=o.timeStamp}function oe(i){i.page.x=0,i.page.y=0,i.client.x=0,i.client.y=0}function ie(i){return i instanceof ne.Event||i instanceof ne.Touch}function fa(i,o,u){return i=i||"page",(u=u||{}).x=o[i+"X"],u.y=o[i+"Y"],u}function ra(i,o){return o=o||{x:0,y:0},X.isOperaMobile&&ie(i)?(fa("screen",i,o),o.x+=window.scrollX,o.y+=window.scrollY):fa("page",i,o),o}function Ie(i){return g.number(i.pointerId)?i.pointerId:i.identifier}function we(i,o,u){var m=o.length>1?fe(o):o[0];ra(m,i.page),function(C,L){L=L||{},X.isOperaMobile&&ie(C)?fa("screen",C,L):fa("client",C,L)}(m,i.client),i.timeStamp=u}function Ca(i){var o=[];return g.array(i)?(o[0]=i[0],o[1]=i[1]):i.type==="touchend"?i.touches.length===1?(o[0]=i.touches[0],o[1]=i.changedTouches[0]):i.touches.length===0&&(o[0]=i.changedTouches[0],o[1]=i.changedTouches[1]):(o[0]=i.touches[0],o[1]=i.touches[1]),o}function fe(i){for(var o={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},u=0;u<i.length;u++){var m=i[u];for(var C in o)o[C]+=m[C]}for(var L in o)o[L]/=i.length;return o}function Je(i){if(!i.length)return null;var o=Ca(i),u=Math.min(o[0].pageX,o[1].pageX),m=Math.min(o[0].pageY,o[1].pageY),C=Math.max(o[0].pageX,o[1].pageX),L=Math.max(o[0].pageY,o[1].pageY);return{x:u,y:m,left:u,top:m,right:C,bottom:L,width:C-u,height:L-m}}function Ze(i,o){var u=o+"X",m=o+"Y",C=Ca(i),L=C[0][u]-C[1][u],U=C[0][m]-C[1][m];return Ia(L,U)}function Fe(i,o){var u=o+"X",m=o+"Y",C=Ca(i),L=C[1][u]-C[0][u],U=C[1][m]-C[0][m];return 180*Math.atan2(U,L)/Math.PI}function ka(i){return g.string(i.pointerType)?i.pointerType:g.number(i.pointerType)?[void 0,void 0,"touch","pen","mouse"][i.pointerType]:/touch/.test(i.type||"")||i instanceof ne.Touch?"touch":"mouse"}function $e(i){var o=g.func(i.composedPath)?i.composedPath():i.path;return[se(o?o[0]:i.target),se(i.currentTarget)]}var pa=function(){function i(o){d(this,i),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=o}return h(i,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),i}();Object.defineProperty(pa.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var re=function(i,o){for(var u=0;u<o.length;u++){var m=o[u];i.push(m)}return i},Se=function(i){return re([],i)},K=function(i,o){for(var u=0;u<i.length;u++)if(o(i[u],u,i))return u;return-1},je=function(i,o){return i[K(i,o)]},Be=function(i){y(u,i);var o=A(u);function u(m,C,L){var U;d(this,u),(U=o.call(this,C._interaction)).dropzone=void 0,U.dragEvent=void 0,U.relatedTarget=void 0,U.draggable=void 0,U.propagationStopped=!1,U.immediatePropagationStopped=!1;var W=L==="dragleave"?m.prev:m.cur,de=W.element,Ve=W.dropzone;return U.type=L,U.target=de,U.currentTarget=de,U.dropzone=Ve,U.dragEvent=C,U.relatedTarget=C.target,U.draggable=C.interactable,U.timeStamp=C.timeStamp,U}return h(u,[{key:"reject",value:function(){var m=this,C=this._interaction.dropState;if(this.type==="dropactivate"||this.dropzone&&C.cur.dropzone===this.dropzone&&C.cur.element===this.target)if(C.prev.dropzone=this.dropzone,C.prev.element=this.target,C.rejected=!0,C.events.enter=null,this.stopImmediatePropagation(),this.type==="dropactivate"){var L=C.activeDrops,U=K(L,function(de){var Ve=de.dropzone,he=de.element;return Ve===m.dropzone&&he===m.target});C.activeDrops.splice(U,1);var W=new u(C,this.dragEvent,"dropdeactivate");W.dropzone=this.dropzone,W.target=this.target,this.dropzone.fire(W)}else this.dropzone.fire(new u(C,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),u}(pa);function za(i,o){for(var u=0,m=i.slice();u<m.length;u++){var C=m[u],L=C.dropzone,U=C.element;o.dropzone=L,o.target=U,L.fire(o),o.propagationStopped=o.immediatePropagationStopped=!1}}function Ea(i,o){for(var u=function(L,U){for(var W=[],de=0,Ve=L.interactables.list;de<Ve.length;de++){var he=Ve[de];if(he.options.drop.enabled){var Xe=he.options.drop.accept;if(!(g.element(Xe)&&Xe!==U||g.string(Xe)&&!te(U,Xe)||g.func(Xe)&&!Xe({dropzone:he,draggableElement:U})))for(var Ta=0,tl=he.getAllElements();Ta<tl.length;Ta++){var rl=tl[Ta];rl!==U&&W.push({dropzone:he,element:rl,rect:he.getRect(rl)})}}}return W}(i,o),m=0;m<u.length;m++){var C=u[m];C.rect=C.dropzone.getRect(C.element)}return u}function Ye(i,o,u){for(var m=i.dropState,C=i.interactable,L=i.element,U=[],W=0,de=m.activeDrops;W<de.length;W++){var Ve=de[W],he=Ve.dropzone,Xe=Ve.element,Ta=Ve.rect,tl=he.dropCheck(o,u,C,L,Xe,Ta);U.push(tl?Xe:null)}var rl=function(sl){for(var Cl,_l,yl,jl=[],$l=0;$l<sl.length;$l++){var Ol=sl[$l],zl=sl[Cl];if(Ol&&$l!==Cl)if(zl){var Lr=B(Ol),mr=B(zl);if(Lr!==Ol.ownerDocument)if(mr!==Ol.ownerDocument)if(Lr!==mr){jl=jl.length?jl:le(zl);var Fr=void 0;if(zl instanceof ne.HTMLElement&&Ol instanceof ne.SVGElement&&!(Ol instanceof ne.SVGSVGElement)){if(Ol===mr)continue;Fr=Ol.ownerSVGElement}else Fr=Ol;for(var en=le(Fr,zl.ownerDocument),mn=0;en[mn]&&en[mn]===jl[mn];)mn++;var Gn=[en[mn-1],en[mn],jl[mn]];if(Gn[0])for(var Jn=Gn[0].lastChild;Jn;){if(Jn===Gn[1]){Cl=$l,jl=en;break}if(Jn===Gn[2])break;Jn=Jn.previousSibling}}else yl=zl,(parseInt($(_l=Ol).getComputedStyle(_l).zIndex,10)||0)>=(parseInt($(yl).getComputedStyle(yl).zIndex,10)||0)&&(Cl=$l);else Cl=$l}else Cl=$l}return Cl}(U);return m.activeDrops[rl]||null}function ua(i,o,u){var m=i.dropState,C={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return u.type==="dragstart"&&(C.activate=new Be(m,u,"dropactivate"),C.activate.target=null,C.activate.dropzone=null),u.type==="dragend"&&(C.deactivate=new Be(m,u,"dropdeactivate"),C.deactivate.target=null,C.deactivate.dropzone=null),m.rejected||(m.cur.element!==m.prev.element&&(m.prev.dropzone&&(C.leave=new Be(m,u,"dragleave"),u.dragLeave=C.leave.target=m.prev.element,u.prevDropzone=C.leave.dropzone=m.prev.dropzone),m.cur.dropzone&&(C.enter=new Be(m,u,"dragenter"),u.dragEnter=m.cur.element,u.dropzone=m.cur.dropzone)),u.type==="dragend"&&m.cur.dropzone&&(C.drop=new Be(m,u,"drop"),u.dropzone=m.cur.dropzone,u.relatedTarget=m.cur.element),u.type==="dragmove"&&m.cur.dropzone&&(C.move=new Be(m,u,"dropmove"),u.dropzone=m.cur.dropzone)),C}function _e(i,o){var u=i.dropState,m=u.activeDrops,C=u.cur,L=u.prev;o.leave&&L.dropzone.fire(o.leave),o.enter&&C.dropzone.fire(o.enter),o.move&&C.dropzone.fire(o.move),o.drop&&C.dropzone.fire(o.drop),o.deactivate&&za(m,o.deactivate),u.prev.dropzone=C.dropzone,u.prev.element=C.element}function Z(i,o){var u=i.interaction,m=i.iEvent,C=i.event;if(m.type==="dragmove"||m.type==="dragend"){var L=u.dropState;o.dynamicDrop&&(L.activeDrops=Ea(o,u.element));var U=m,W=Ye(u,U,C);L.rejected=L.rejected&&!!W&&W.dropzone===L.cur.dropzone&&W.element===L.cur.element,L.cur.dropzone=W&&W.dropzone,L.cur.element=W&&W.element,L.events=ua(u,0,U)}}var ya={id:"actions/drop",install:function(i){var o=i.actions,u=i.interactStatic,m=i.Interactable,C=i.defaults;i.usePlugin(be),m.prototype.dropzone=function(L){return function(U,W){if(g.object(W)){if(U.options.drop.enabled=W.enabled!==!1,W.listeners){var de=Ge(W.listeners),Ve=Object.keys(de).reduce(function(Xe,Ta){return Xe[/^(enter|leave)/.test(Ta)?"drag".concat(Ta):/^(activate|deactivate|move)/.test(Ta)?"drop".concat(Ta):Ta]=de[Ta],Xe},{}),he=U.options.drop.listeners;he&&U.off(he),U.on(Ve),U.options.drop.listeners=Ve}return g.func(W.ondrop)&&U.on("drop",W.ondrop),g.func(W.ondropactivate)&&U.on("dropactivate",W.ondropactivate),g.func(W.ondropdeactivate)&&U.on("dropdeactivate",W.ondropdeactivate),g.func(W.ondragenter)&&U.on("dragenter",W.ondragenter),g.func(W.ondragleave)&&U.on("dragleave",W.ondragleave),g.func(W.ondropmove)&&U.on("dropmove",W.ondropmove),/^(pointer|center)$/.test(W.overlap)?U.options.drop.overlap=W.overlap:g.number(W.overlap)&&(U.options.drop.overlap=Math.max(Math.min(1,W.overlap),0)),"accept"in W&&(U.options.drop.accept=W.accept),"checker"in W&&(U.options.drop.checker=W.checker),U}return g.bool(W)?(U.options.drop.enabled=W,U):U.options.drop}(this,L)},m.prototype.dropCheck=function(L,U,W,de,Ve,he){return function(Xe,Ta,tl,rl,sl,Cl,_l){var yl=!1;if(!(_l=_l||Xe.getRect(Cl)))return!!Xe.options.drop.checker&&Xe.options.drop.checker(Ta,tl,yl,Xe,Cl,rl,sl);var jl=Xe.options.drop.overlap;if(jl==="pointer"){var $l=Re(rl,sl,"drag"),Ol=ra(Ta);Ol.x+=$l.x,Ol.y+=$l.y;var zl=Ol.x>_l.left&&Ol.x<_l.right,Lr=Ol.y>_l.top&&Ol.y<_l.bottom;yl=zl&&Lr}var mr=rl.getRect(sl);if(mr&&jl==="center"){var Fr=mr.left+mr.width/2,en=mr.top+mr.height/2;yl=Fr>=_l.left&&Fr<=_l.right&&en>=_l.top&&en<=_l.bottom}return mr&&g.number(jl)&&(yl=Math.max(0,Math.min(_l.right,mr.right)-Math.max(_l.left,mr.left))*Math.max(0,Math.min(_l.bottom,mr.bottom)-Math.max(_l.top,mr.top))/(mr.width*mr.height)>=jl),Xe.options.drop.checker&&(yl=Xe.options.drop.checker(Ta,tl,yl,Xe,Cl,rl,sl)),yl}(this,L,U,W,de,Ve,he)},u.dynamicDrop=function(L){return g.bool(L)?(i.dynamicDrop=L,u):i.dynamicDrop},ee(o.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),o.methodDict.drop="dropzone",i.dynamicDrop=!1,C.actions.drop=ya.defaults},listeners:{"interactions:before-action-start":function(i){var o=i.interaction;o.prepared.name==="drag"&&(o.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(i,o){var u=i.interaction,m=(i.event,i.iEvent);if(u.prepared.name==="drag"){var C=u.dropState;C.activeDrops=[],C.events={},C.activeDrops=Ea(o,u.element),C.events=ua(u,0,m),C.events.activate&&(za(C.activeDrops,C.events.activate),o.fire("actions/drop:start",{interaction:u,dragEvent:m}))}},"interactions:action-move":Z,"interactions:after-action-move":function(i,o){var u=i.interaction,m=i.iEvent;if(u.prepared.name==="drag"){var C=u.dropState;_e(u,C.events),o.fire("actions/drop:move",{interaction:u,dragEvent:m}),C.events={}}},"interactions:action-end":function(i,o){if(i.interaction.prepared.name==="drag"){var u=i.interaction,m=i.iEvent;Z(i,o),_e(u,u.dropState.events),o.fire("actions/drop:end",{interaction:u,dragEvent:m})}},"interactions:stop":function(i){var o=i.interaction;if(o.prepared.name==="drag"){var u=o.dropState;u&&(u.activeDrops=null,u.events=null,u.cur.dropzone=null,u.cur.element=null,u.prev.dropzone=null,u.prev.element=null,u.rejected=!1)}}},getActiveDrops:Ea,getDrop:Ye,getDropEvents:ua,fireDropEvents:_e,filterEventType:function(i){return i.search("drag")===0||i.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},We=ya;function La(i){var o=i.interaction,u=i.iEvent,m=i.phase;if(o.prepared.name==="gesture"){var C=o.pointers.map(function(Ve){return Ve.pointer}),L=m==="start",U=m==="end",W=o.interactable.options.deltaSource;if(u.touches=[C[0],C[1]],L)u.distance=Ze(C,W),u.box=Je(C),u.scale=1,u.ds=0,u.angle=Fe(C,W),u.da=0,o.gesture.startDistance=u.distance,o.gesture.startAngle=u.angle;else if(U||o.pointers.length<2){var de=o.prevEvent;u.distance=de.distance,u.box=de.box,u.scale=de.scale,u.ds=0,u.angle=de.angle,u.da=0}else u.distance=Ze(C,W),u.box=Je(C),u.scale=u.distance/o.gesture.startDistance,u.angle=Fe(C,W),u.ds=u.scale-o.gesture.scale,u.da=u.angle-o.gesture.angle;o.gesture.distance=u.distance,o.gesture.angle=u.angle,g.number(u.scale)&&u.scale!==1/0&&!isNaN(u.scale)&&(o.gesture.scale=u.scale)}}var ml={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(i){var o=i.actions,u=i.Interactable,m=i.defaults;u.prototype.gesturable=function(C){return g.object(C)?(this.options.gesture.enabled=C.enabled!==!1,this.setPerAction("gesture",C),this.setOnEvents("gesture",C),this):g.bool(C)?(this.options.gesture.enabled=C,this):this.options.gesture},o.map.gesture=ml,o.methodDict.gesture="gesturable",m.actions.gesture=ml.defaults},listeners:{"interactions:action-start":La,"interactions:action-move":La,"interactions:action-end":La,"interactions:new":function(i){i.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(i){if(!(i.interaction.pointers.length<2)){var o=i.interactable.options.gesture;if(o&&o.enabled)return i.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(i){return i.search("gesture")===0}},Aa=ml;function el(i,o,u,m,C,L,U){if(!o)return!1;if(o===!0){var W=g.number(L.width)?L.width:L.right-L.left,de=g.number(L.height)?L.height:L.bottom-L.top;if(U=Math.min(U,Math.abs((i==="left"||i==="right"?W:de)/2)),W<0&&(i==="left"?i="right":i==="right"&&(i="left")),de<0&&(i==="top"?i="bottom":i==="bottom"&&(i="top")),i==="left"){var Ve=W>=0?L.left:L.right;return u.x<Ve+U}if(i==="top"){var he=de>=0?L.top:L.bottom;return u.y<he+U}if(i==="right")return u.x>(W>=0?L.right:L.left)-U;if(i==="bottom")return u.y>(de>=0?L.bottom:L.top)-U}return!!g.element(m)&&(g.element(o)?o===m:ye(m,o,C))}function Ja(i){var o=i.iEvent,u=i.interaction;if(u.prepared.name==="resize"&&u.resizeAxes){var m=o;u.interactable.options.resize.square?(u.resizeAxes==="y"?m.delta.x=m.delta.y:m.delta.y=m.delta.x,m.axes="xy"):(m.axes=u.resizeAxes,u.resizeAxes==="x"?m.delta.y=0:u.resizeAxes==="y"&&(m.delta.x=0))}}var Pa,Te,il={id:"actions/resize",before:["actions/drag"],install:function(i){var o=i.actions,u=i.browser,m=i.Interactable,C=i.defaults;il.cursors=function(L){return L.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(u),il.defaultMargin=u.supportsTouch||u.supportsPointerEvent?20:10,m.prototype.resizable=function(L){return function(U,W,de){return g.object(W)?(U.options.resize.enabled=W.enabled!==!1,U.setPerAction("resize",W),U.setOnEvents("resize",W),g.string(W.axis)&&/^x$|^y$|^xy$/.test(W.axis)?U.options.resize.axis=W.axis:W.axis===null&&(U.options.resize.axis=de.defaults.actions.resize.axis),g.bool(W.preserveAspectRatio)?U.options.resize.preserveAspectRatio=W.preserveAspectRatio:g.bool(W.square)&&(U.options.resize.square=W.square),U):g.bool(W)?(U.options.resize.enabled=W,U):U.options.resize}(this,L,i)},o.map.resize=il,o.methodDict.resize="resizable",C.actions.resize=il.defaults},listeners:{"interactions:new":function(i){i.interaction.resizeAxes="xy"},"interactions:action-start":function(i){(function(o){var u=o.iEvent,m=o.interaction;if(m.prepared.name==="resize"&&m.prepared.edges){var C=u,L=m.rect;m._rects={start:ee({},L),corrected:ee({},L),previous:ee({},L),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},C.edges=m.prepared.edges,C.rect=m._rects.corrected,C.deltaRect=m._rects.delta}})(i),Ja(i)},"interactions:action-move":function(i){(function(o){var u=o.iEvent,m=o.interaction;if(m.prepared.name==="resize"&&m.prepared.edges){var C=u,L=m.interactable.options.resize.invert,U=L==="reposition"||L==="negate",W=m.rect,de=m._rects,Ve=de.start,he=de.corrected,Xe=de.delta,Ta=de.previous;if(ee(Ta,he),U){if(ee(he,W),L==="reposition"){if(he.top>he.bottom){var tl=he.top;he.top=he.bottom,he.bottom=tl}if(he.left>he.right){var rl=he.left;he.left=he.right,he.right=rl}}}else he.top=Math.min(W.top,Ve.bottom),he.bottom=Math.max(W.bottom,Ve.top),he.left=Math.min(W.left,Ve.right),he.right=Math.max(W.right,Ve.left);for(var sl in he.width=he.right-he.left,he.height=he.bottom-he.top,he)Xe[sl]=he[sl]-Ta[sl];C.edges=m.prepared.edges,C.rect=he,C.deltaRect=Xe}})(i),Ja(i)},"interactions:action-end":function(i){var o=i.iEvent,u=i.interaction;if(u.prepared.name==="resize"&&u.prepared.edges){var m=o;m.edges=u.prepared.edges,m.rect=u._rects.corrected,m.deltaRect=u._rects.delta}},"auto-start:check":function(i){var o=i.interaction,u=i.interactable,m=i.element,C=i.rect,L=i.buttons;if(C){var U=ee({},o.coords.cur.page),W=u.options.resize;if(W&&W.enabled&&(!o.pointerIsDown||!/mouse|pointer/.test(o.pointerType)||(L&W.mouseButtons)!=0)){if(g.object(W.edges)){var de={left:!1,right:!1,top:!1,bottom:!1};for(var Ve in de)de[Ve]=el(Ve,W.edges[Ve],U,o._latestPointer.eventTarget,m,C,W.margin||il.defaultMargin);de.left=de.left&&!de.right,de.top=de.top&&!de.bottom,(de.left||de.right||de.top||de.bottom)&&(i.action={name:"resize",edges:de})}else{var he=W.axis!=="y"&&U.x>C.right-il.defaultMargin,Xe=W.axis!=="x"&&U.y>C.bottom-il.defaultMargin;(he||Xe)&&(i.action={name:"resize",axes:(he?"x":"")+(Xe?"y":"")})}return!i.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(i){var o=i.edges,u=i.axis,m=i.name,C=il.cursors,L=null;if(u)L=C[m+u];else if(o){for(var U="",W=0,de=["top","bottom","left","right"];W<de.length;W++){var Ve=de[W];o[Ve]&&(U+=Ve)}L=C[U]}return L},filterEventType:function(i){return i.search("resize")===0},defaultMargin:null},ma=il,wa={id:"actions",install:function(i){i.usePlugin(Aa),i.usePlugin(ma),i.usePlugin(be),i.usePlugin(We)}},_a=0,oa={request:function(i){return Pa(i)},cancel:function(i){return Te(i)},init:function(i){if(Pa=i.requestAnimationFrame,Te=i.cancelAnimationFrame,!Pa)for(var o=["ms","moz","webkit","o"],u=0;u<o.length;u++){var m=o[u];Pa=i["".concat(m,"RequestAnimationFrame")],Te=i["".concat(m,"CancelAnimationFrame")]||i["".concat(m,"CancelRequestAnimationFrame")]}Pa=Pa&&Pa.bind(i),Te=Te&&Te.bind(i),Pa||(Pa=function(C){var L=Date.now(),U=Math.max(0,16-(L-_a)),W=i.setTimeout(function(){C(L+U)},U);return _a=L+U,W},Te=function(C){return clearTimeout(C)})}},va={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(i){va.isScrolling=!0,oa.cancel(va.i),i.autoScroll=va,va.interaction=i,va.prevTime=va.now(),va.i=oa.request(va.scroll)},stop:function(){va.isScrolling=!1,va.interaction&&(va.interaction.autoScroll=null),oa.cancel(va.i)},scroll:function(){var i=va.interaction,o=i.interactable,u=i.element,m=i.prepared.name,C=o.options[m].autoScroll,L=ue(C.container,o,u),U=va.now(),W=(U-va.prevTime)/1e3,de=C.speed*W;if(de>=1){var Ve={x:va.x*de,y:va.y*de};if(Ve.x||Ve.y){var he=Fa(L);g.window(L)?L.scrollBy(Ve.x,Ve.y):L&&(L.scrollLeft+=Ve.x,L.scrollTop+=Ve.y);var Xe=Fa(L),Ta={x:Xe.x-he.x,y:Xe.y-he.y};(Ta.x||Ta.y)&&o.fire({type:"autoscroll",target:u,interactable:o,delta:Ta,interaction:i,container:L})}va.prevTime=U}va.isScrolling&&(oa.cancel(va.i),va.i=oa.request(va.scroll))},check:function(i,o){var u;return(u=i.options[o].autoScroll)==null?void 0:u.enabled},onInteractionMove:function(i){var o=i.interaction,u=i.pointer;if(o.interacting()&&va.check(o.interactable,o.prepared.name))if(o.simulation)va.x=va.y=0;else{var m,C,L,U,W=o.interactable,de=o.element,Ve=o.prepared.name,he=W.options[Ve].autoScroll,Xe=ue(he.container,W,de);if(g.window(Xe))U=u.clientX<va.margin,m=u.clientY<va.margin,C=u.clientX>Xe.innerWidth-va.margin,L=u.clientY>Xe.innerHeight-va.margin;else{var Ta=Ne(Xe);U=u.clientX<Ta.left+va.margin,m=u.clientY<Ta.top+va.margin,C=u.clientX>Ta.right-va.margin,L=u.clientY>Ta.bottom-va.margin}va.x=C?1:U?-1:0,va.y=L?1:m?-1:0,va.isScrolling||(va.margin=he.margin,va.speed=he.speed,va.start(o))}}};function ue(i,o,u){return(g.string(i)?ea(i,o,u):i)||$(u)}function Fa(i){return g.window(i)&&(i=window.document.body),{x:i.scrollLeft,y:i.scrollTop}}var ja={id:"auto-scroll",install:function(i){var o=i.defaults,u=i.actions;i.autoScroll=va,va.now=function(){return i.now()},u.phaselessTypes.autoscroll=!0,o.perAction.autoScroll=va.defaults},listeners:{"interactions:new":function(i){i.interaction.autoScroll=null},"interactions:destroy":function(i){i.interaction.autoScroll=null,va.stop(),va.interaction&&(va.interaction=null)},"interactions:stop":va.stop,"interactions:action-move":function(i){return va.onInteractionMove(i)}}},Ee=ja;function Ba(i,o){var u=!1;return function(){return u||(J.console.warn(o),u=!0),i.apply(this,arguments)}}function Ua(i,o){return i.name=o.name,i.axis=o.axis,i.edges=o.edges,i}function ve(i){return g.bool(i)?(this.options.styleCursor=i,this):i===null?(delete this.options.styleCursor,this):this.options.styleCursor}function fl(i){return g.func(i)?(this.options.actionChecker=i,this):i===null?(delete this.options.actionChecker,this):this.options.actionChecker}var Xa={id:"auto-start/interactableMethods",install:function(i){var o=i.Interactable;o.prototype.getAction=function(u,m,C,L){var U=function(W,de,Ve,he,Xe){var Ta=W.getRect(he),tl=de.buttons||{0:1,1:4,3:8,4:16}[de.button],rl={action:null,interactable:W,interaction:Ve,element:he,rect:Ta,buttons:tl};return Xe.fire("auto-start:check",rl),rl.action}(this,m,C,L,i);return this.options.actionChecker?this.options.actionChecker(u,m,U,this,L,C):U},o.prototype.ignoreFrom=Ba(function(u){return this._backCompatOption("ignoreFrom",u)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),o.prototype.allowFrom=Ba(function(u){return this._backCompatOption("allowFrom",u)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),o.prototype.actionChecker=fl,o.prototype.styleCursor=ve}};function xl(i,o,u,m,C){return o.testIgnoreAllow(o.options[i.name],u,m)&&o.options[i.name].enabled&&cl(o,u,i,C)?i:null}function qa(i,o,u,m,C,L,U){for(var W=0,de=m.length;W<de;W++){var Ve=m[W],he=C[W],Xe=Ve.getAction(o,u,i,he);if(Xe){var Ta=xl(Xe,Ve,he,L,U);if(Ta)return{action:Ta,interactable:Ve,element:he}}}return{action:null,interactable:null,element:null}}function ol(i,o,u,m,C){var L=[],U=[],W=m;function de(he){L.push(he),U.push(W)}for(;g.element(W);){L=[],U=[],C.interactables.forEachMatch(W,de);var Ve=qa(i,o,u,L,U,m,C);if(Ve.action&&!Ve.interactable.options[Ve.action.name].manualStart)return Ve;W=Sa(W)}return{action:null,interactable:null,element:null}}function al(i,o,u){var m=o.action,C=o.interactable,L=o.element;m=m||{name:null},i.interactable=C,i.element=L,Ua(i.prepared,m),i.rect=C&&m.name?C.getRect(L):null,Kl(i,u),u.fire("autoStart:prepared",{interaction:i})}function cl(i,o,u,m){var C=i.options,L=C[u.name].max,U=C[u.name].maxPerElement,W=m.autoStart.maxInteractions,de=0,Ve=0,he=0;if(!(L&&U&&W))return!1;for(var Xe=0,Ta=m.interactions.list;Xe<Ta.length;Xe++){var tl=Ta[Xe],rl=tl.prepared.name;if(tl.interacting()&&(++de>=W||tl.interactable===i&&((Ve+=rl===u.name?1:0)>=L||tl.element===o&&(he++,rl===u.name&&he>=U))))return!1}return W>0}function ul(i,o){return g.number(i)?(o.autoStart.maxInteractions=i,this):o.autoStart.maxInteractions}function Wl(i,o,u){var m=u.autoStart.cursorElement;m&&m!==i&&(m.style.cursor=""),i.ownerDocument.documentElement.style.cursor=o,i.style.cursor=o,u.autoStart.cursorElement=o?i:null}function Kl(i,o){var u=i.interactable,m=i.element,C=i.prepared;if(i.pointerType==="mouse"&&u&&u.options.styleCursor){var L="";if(C.name){var U=u.options[C.name].cursorChecker;L=g.func(U)?U(C,u,m,i._interacting):o.actions.map[C.name].getCursor(C)}Wl(i.element,L||"",o)}else o.autoStart.cursorElement&&Wl(o.autoStart.cursorElement,"",o)}var Fl={id:"auto-start/base",before:["actions"],install:function(i){var o=i.interactStatic,u=i.defaults;i.usePlugin(Xa),u.base.actionChecker=null,u.base.styleCursor=!0,ee(u.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),o.maxInteractions=function(m){return ul(m,i)},i.autoStart={maxInteractions:1/0,withinInteractionLimit:cl,cursorElement:null}},listeners:{"interactions:down":function(i,o){var u=i.interaction,m=i.pointer,C=i.event,L=i.eventTarget;u.interacting()||al(u,ol(u,m,C,L,o),o)},"interactions:move":function(i,o){(function(u,m){var C=u.interaction,L=u.pointer,U=u.event,W=u.eventTarget;C.pointerType!=="mouse"||C.pointerIsDown||C.interacting()||al(C,ol(C,L,U,W,m),m)})(i,o),function(u,m){var C=u.interaction;if(C.pointerIsDown&&!C.interacting()&&C.pointerWasMoved&&C.prepared.name){m.fire("autoStart:before-start",u);var L=C.interactable,U=C.prepared.name;U&&L&&(L.options[U].manualStart||!cl(L,C.element,C.prepared,m)?C.stop():(C.start(C.prepared,L,C.element),Kl(C,m)))}}(i,o)},"interactions:stop":function(i,o){var u=i.interaction,m=u.interactable;m&&m.options.styleCursor&&Wl(u.element,"",o)}},maxInteractions:ul,withinInteractionLimit:cl,validateAction:xl},Ul=Fl,gr={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(i,o){var u=i.interaction,m=i.eventTarget,C=i.dx,L=i.dy;if(u.prepared.name==="drag"){var U=Math.abs(C),W=Math.abs(L),de=u.interactable.options.drag,Ve=de.startAxis,he=U>W?"x":U<W?"y":"xy";if(u.prepared.axis=de.lockAxis==="start"?he[0]:de.lockAxis,he!=="xy"&&Ve!=="xy"&&Ve!==he){u.prepared.name=null;for(var Xe=m,Ta=function(rl){if(rl!==u.interactable){var sl=u.interactable.options.drag;if(!sl.manualStart&&rl.testIgnoreAllow(sl,Xe,m)){var Cl=rl.getAction(u.downPointer,u.downEvent,u,Xe);if(Cl&&Cl.name==="drag"&&function(_l,yl){if(!yl)return!1;var jl=yl.options.drag.startAxis;return _l==="xy"||jl==="xy"||jl===_l}(he,rl)&&Ul.validateAction(Cl,rl,Xe,m,o))return rl}}};g.element(Xe);){var tl=o.interactables.forEachMatch(Xe,Ta);if(tl){u.prepared.name="drag",u.interactable=tl,u.element=Xe;break}Xe=Sa(Xe)}}}}}};function rr(i){var o=i.prepared&&i.prepared.name;if(!o)return null;var u=i.interactable.options;return u[o].hold||u[o].delay}var kr={id:"auto-start/hold",install:function(i){var o=i.defaults;i.usePlugin(Ul),o.perAction.hold=0,o.perAction.delay=0},listeners:{"interactions:new":function(i){i.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(i){var o=i.interaction,u=rr(o);u>0&&(o.autoStartHoldTimer=setTimeout(function(){o.start(o.prepared,o.interactable,o.element)},u))},"interactions:move":function(i){var o=i.interaction,u=i.duplicate;o.autoStartHoldTimer&&o.pointerWasMoved&&!u&&(clearTimeout(o.autoStartHoldTimer),o.autoStartHoldTimer=null)},"autoStart:before-start":function(i){var o=i.interaction;rr(o)>0&&(o.prepared.name=null)}},getHoldDuration:rr},wr=kr,Er={id:"auto-start",install:function(i){i.usePlugin(Ul),i.usePlugin(wr),i.usePlugin(gr)}},un=function(i){return/^(always|never|auto)$/.test(i)?(this.options.preventDefault=i,this):g.bool(i)?(this.options.preventDefault=i?"always":"never",this):this.options.preventDefault};function Jr(i){var o=i.interaction,u=i.event;o.interactable&&o.interactable.checkAndPreventDefault(u)}var dn={id:"core/interactablePreventDefault",install:function(i){var o=i.Interactable;o.prototype.preventDefault=un,o.prototype.checkAndPreventDefault=function(u){return function(m,C,L){var U=m.options.preventDefault;if(U!=="never")if(U!=="always"){if(C.events.supportsPassive&&/^touch(start|move)$/.test(L.type)){var W=$(L.target).document,de=C.getDocOptions(W);if(!de||!de.events||de.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(L.type)||g.element(L.target)&&te(L.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||L.preventDefault()}else L.preventDefault()}(this,i,u)},i.interactions.docEvents.push({type:"dragstart",listener:function(u){for(var m=0,C=i.interactions.list;m<C.length;m++){var L=C[m];if(L.element&&(L.element===u.target||pe(L.element,u.target)))return void L.interactable.checkAndPreventDefault(u)}}})},listeners:["down","move","up","cancel"].reduce(function(i,o){return i["interactions:".concat(o)]=Jr,i},{})};function Xr(i,o){if(o.phaselessTypes[i])return!0;for(var u in o.map)if(i.indexOf(u)===0&&i.substr(u.length)in o.phases)return!0;return!1}function Ur(i){var o={};for(var u in i){var m=i[u];g.plainObject(m)?o[u]=Ur(m):g.array(m)?o[u]=Se(m):o[u]=m}return o}var pn=function(){function i(o){d(this,i),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=o,this.result=tn(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return h(i,[{key:"start",value:function(o,u){var m,C,L=o.phase,U=this.interaction,W=function(Ve){var he=Ve.interactable.options[Ve.prepared.name],Xe=he.modifiers;return Xe&&Xe.length?Xe:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(Ta){var tl=he[Ta];return tl&&tl.enabled&&{options:tl,methods:tl._methods}}).filter(function(Ta){return!!Ta})}(U);this.prepareStates(W),this.startEdges=ee({},U.edges),this.edges=ee({},this.startEdges),this.startOffset=(m=U.rect,C=u,m?{left:C.x-m.left,top:C.y-m.top,right:m.right-C.x,bottom:m.bottom-C.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var de=this.fillArg({phase:L,pageCoords:u,preEnd:!1});return this.result=tn(),this.startAll(de),this.result=this.setAll(de)}},{key:"fillArg",value:function(o){var u=this.interaction;return o.interaction=u,o.interactable=u.interactable,o.element=u.element,o.rect||(o.rect=u.rect),o.edges||(o.edges=this.startEdges),o.startOffset=this.startOffset,o}},{key:"startAll",value:function(o){for(var u=0,m=this.states;u<m.length;u++){var C=m[u];C.methods.start&&(o.state=C,C.methods.start(o))}}},{key:"setAll",value:function(o){var u=o.phase,m=o.preEnd,C=o.skipModifiers,L=o.rect,U=o.edges;o.coords=ee({},o.pageCoords),o.rect=ee({},L),o.edges=ee({},U);for(var W=C?this.states.slice(C):this.states,de=tn(o.coords,o.rect),Ve=0;Ve<W.length;Ve++){var he,Xe=W[Ve],Ta=Xe.options,tl=ee({},o.coords),rl=null;(he=Xe.methods)!=null&&he.set&&this.shouldDo(Ta,m,u)&&(o.state=Xe,rl=Xe.methods.set(o),Ae(o.edges,o.rect,{x:o.coords.x-tl.x,y:o.coords.y-tl.y})),de.eventProps.push(rl)}ee(this.edges,o.edges),de.delta.x=o.coords.x-o.pageCoords.x,de.delta.y=o.coords.y-o.pageCoords.y,de.rectDelta.left=o.rect.left-L.left,de.rectDelta.right=o.rect.right-L.right,de.rectDelta.top=o.rect.top-L.top,de.rectDelta.bottom=o.rect.bottom-L.bottom;var sl=this.result.coords,Cl=this.result.rect;if(sl&&Cl){var _l=de.rect.left!==Cl.left||de.rect.right!==Cl.right||de.rect.top!==Cl.top||de.rect.bottom!==Cl.bottom;de.changed=_l||sl.x!==de.coords.x||sl.y!==de.coords.y}return de}},{key:"applyToInteraction",value:function(o){var u=this.interaction,m=o.phase,C=u.coords.cur,L=u.coords.start,U=this.result,W=this.startDelta,de=U.delta;m==="start"&&ee(this.startDelta,U.delta);for(var Ve=0,he=[[L,W],[C,de]];Ve<he.length;Ve++){var Xe=he[Ve],Ta=Xe[0],tl=Xe[1];Ta.page.x+=tl.x,Ta.page.y+=tl.y,Ta.client.x+=tl.x,Ta.client.y+=tl.y}var rl=this.result.rectDelta,sl=o.rect||u.rect;sl.left+=rl.left,sl.right+=rl.right,sl.top+=rl.top,sl.bottom+=rl.bottom,sl.width=sl.right-sl.left,sl.height=sl.bottom-sl.top}},{key:"setAndApply",value:function(o){var u=this.interaction,m=o.phase,C=o.preEnd,L=o.skipModifiers,U=this.setAll(this.fillArg({preEnd:C,phase:m,pageCoords:o.modifiedCoords||u.coords.cur.page}));if(this.result=U,!U.changed&&(!L||L<this.states.length)&&u.interacting())return!1;if(o.modifiedCoords){var W=u.coords.cur.page,de={x:o.modifiedCoords.x-W.x,y:o.modifiedCoords.y-W.y};U.coords.x+=de.x,U.coords.y+=de.y,U.delta.x+=de.x,U.delta.y+=de.y}this.applyToInteraction(o)}},{key:"beforeEnd",value:function(o){var u=o.interaction,m=o.event,C=this.states;if(C&&C.length){for(var L=!1,U=0;U<C.length;U++){var W=C[U];o.state=W;var de=W.options,Ve=W.methods,he=Ve.beforeEnd&&Ve.beforeEnd(o);if(he)return this.endResult=he,!1;L=L||!L&&this.shouldDo(de,!0,o.phase,!0)}L&&u.move({event:m,preEnd:!0})}}},{key:"stop",value:function(o){var u=o.interaction;if(this.states&&this.states.length){var m=ee({states:this.states,interactable:u.interactable,element:u.element,rect:null},o);this.fillArg(m);for(var C=0,L=this.states;C<L.length;C++){var U=L[C];m.state=U,U.methods.stop&&U.methods.stop(m)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(o){this.states=[];for(var u=0;u<o.length;u++){var m=o[u],C=m.options,L=m.methods,U=m.name;this.states.push({options:C,methods:L,index:u,name:U})}return this.states}},{key:"restoreInteractionCoords",value:function(o){var u=o.interaction,m=u.coords,C=u.rect,L=u.modification;if(L.result){for(var U=L.startDelta,W=L.result,de=W.delta,Ve=W.rectDelta,he=0,Xe=[[m.start,U],[m.cur,de]];he<Xe.length;he++){var Ta=Xe[he],tl=Ta[0],rl=Ta[1];tl.page.x-=rl.x,tl.page.y-=rl.y,tl.client.x-=rl.x,tl.client.y-=rl.y}C.left-=Ve.left,C.right-=Ve.right,C.top-=Ve.top,C.bottom-=Ve.bottom}}},{key:"shouldDo",value:function(o,u,m,C){return!(!o||o.enabled===!1||C&&!o.endOnly||o.endOnly&&!u||m==="start"&&!o.setStart)}},{key:"copyFrom",value:function(o){this.startOffset=o.startOffset,this.startDelta=o.startDelta,this.startEdges=o.startEdges,this.edges=o.edges,this.states=o.states.map(function(u){return Ur(u)}),this.result=tn(ee({},o.result.coords),ee({},o.result.rect))}},{key:"destroy",value:function(){for(var o in this)this[o]=null}}]),i}();function tn(i,o){return{rect:o,coords:i,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function Dr(i,o){var u=i.defaults,m={start:i.start,set:i.set,beforeEnd:i.beforeEnd,stop:i.stop},C=function(L){var U=L||{};for(var W in U.enabled=U.enabled!==!1,u)W in U||(U[W]=u[W]);var de={options:U,methods:m,name:o,enable:function(){return U.enabled=!0,de},disable:function(){return U.enabled=!1,de}};return de};return o&&typeof o=="string"&&(C._defaults=u,C._methods=m),C}function Zr(i){var o=i.iEvent,u=i.interaction.modification.result;u&&(o.modifiers=u.eventProps)}var Br={id:"modifiers/base",before:["actions"],install:function(i){i.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(i){var o=i.interaction;o.modification=new pn(o)},"interactions:before-action-start":function(i){var o=i.interaction,u=i.interaction.modification;u.start(i,o.coords.start.page),o.edges=u.edges,u.applyToInteraction(i)},"interactions:before-action-move":function(i){var o=i.interaction,u=o.modification,m=u.setAndApply(i);return o.edges=u.edges,m},"interactions:before-action-end":function(i){var o=i.interaction,u=o.modification,m=u.beforeEnd(i);return o.edges=u.startEdges,m},"interactions:action-start":Zr,"interactions:action-move":Zr,"interactions:action-end":Zr,"interactions:after-action-start":function(i){return i.interaction.modification.restoreInteractionCoords(i)},"interactions:after-action-move":function(i){return i.interaction.modification.restoreInteractionCoords(i)},"interactions:stop":function(i){return i.interaction.modification.stop(i)}}},Il=Br,qr={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Nr=function(i){y(u,i);var o=A(u);function u(m,C,L,U,W,de,Ve){var he;d(this,u),(he=o.call(this,m)).relatedTarget=null,he.screenX=void 0,he.screenY=void 0,he.button=void 0,he.buttons=void 0,he.ctrlKey=void 0,he.shiftKey=void 0,he.altKey=void 0,he.metaKey=void 0,he.page=void 0,he.client=void 0,he.delta=void 0,he.rect=void 0,he.x0=void 0,he.y0=void 0,he.t0=void 0,he.dt=void 0,he.duration=void 0,he.clientX0=void 0,he.clientY0=void 0,he.velocity=void 0,he.speed=void 0,he.swipe=void 0,he.axes=void 0,he.preEnd=void 0,W=W||m.element;var Xe=m.interactable,Ta=(Xe&&Xe.options||qr).deltaSource,tl=Re(Xe,W,L),rl=U==="start",sl=U==="end",Cl=rl?S(he):m.prevEvent,_l=rl?m.coords.start:sl?{page:Cl.page,client:Cl.client,timeStamp:m.coords.cur.timeStamp}:m.coords.cur;return he.page=ee({},_l.page),he.client=ee({},_l.client),he.rect=ee({},m.rect),he.timeStamp=_l.timeStamp,sl||(he.page.x-=tl.x,he.page.y-=tl.y,he.client.x-=tl.x,he.client.y-=tl.y),he.ctrlKey=C.ctrlKey,he.altKey=C.altKey,he.shiftKey=C.shiftKey,he.metaKey=C.metaKey,he.button=C.button,he.buttons=C.buttons,he.target=W,he.currentTarget=W,he.preEnd=de,he.type=Ve||L+(U||""),he.interactable=Xe,he.t0=rl?m.pointers[m.pointers.length-1].downTime:Cl.t0,he.x0=m.coords.start.page.x-tl.x,he.y0=m.coords.start.page.y-tl.y,he.clientX0=m.coords.start.client.x-tl.x,he.clientY0=m.coords.start.client.y-tl.y,he.delta=rl||sl?{x:0,y:0}:{x:he[Ta].x-Cl[Ta].x,y:he[Ta].y-Cl[Ta].y},he.dt=m.coords.delta.timeStamp,he.duration=he.timeStamp-he.t0,he.velocity=ee({},m.coords.velocity[Ta]),he.speed=Ia(he.velocity.x,he.velocity.y),he.swipe=sl||U==="inertiastart"?he.getSwipe():null,he}return h(u,[{key:"getSwipe",value:function(){var m=this._interaction;if(m.prevEvent.speed<600||this.timeStamp-m.prevEvent.timeStamp>150)return null;var C=180*Math.atan2(m.prevEvent.velocityY,m.prevEvent.velocityX)/Math.PI;C<0&&(C+=360);var L=112.5<=C&&C<247.5,U=202.5<=C&&C<337.5;return{up:U,down:!U&&22.5<=C&&C<157.5,left:L,right:!L&&(292.5<=C||C<67.5),angle:C,speed:m.prevEvent.speed,velocity:{x:m.prevEvent.velocityX,y:m.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),u}(pa);Object.defineProperties(Nr.prototype,{pageX:{get:function(){return this.page.x},set:function(i){this.page.x=i}},pageY:{get:function(){return this.page.y},set:function(i){this.page.y=i}},clientX:{get:function(){return this.client.x},set:function(i){this.client.x=i}},clientY:{get:function(){return this.client.y},set:function(i){this.client.y=i}},dx:{get:function(){return this.delta.x},set:function(i){this.delta.x=i}},dy:{get:function(){return this.delta.y},set:function(i){this.delta.y=i}},velocityX:{get:function(){return this.velocity.x},set:function(i){this.velocity.x=i}},velocityY:{get:function(){return this.velocity.y},set:function(i){this.velocity.y=i}}});var gn=h(function i(o,u,m,C,L){d(this,i),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=o,this.pointer=u,this.event=m,this.downTime=C,this.downTarget=L}),tt=function(i){return i.interactable="",i.element="",i.prepared="",i.pointerIsDown="",i.pointerWasMoved="",i._proxy="",i}({}),Rn=function(i){return i.start="",i.move="",i.end="",i.stop="",i.interacting="",i}({}),An=0,bn=function(){function i(o){var u=this,m=o.pointerType,C=o.scopeFire;d(this,i),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=Ba(function(he){this.move(he)},"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=An++,this._scopeFire=C,this.pointerType=m;var L=this;this._proxy={};var U=function(he){Object.defineProperty(u._proxy,he,{get:function(){return L[he]}})};for(var W in tt)U(W);var de=function(he){Object.defineProperty(u._proxy,he,{value:function(){return L[he].apply(L,arguments)}})};for(var Ve in Rn)de(Ve);this._scopeFire("interactions:new",{interaction:this})}return h(i,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(o,u,m){var C=this.updatePointer(o,u,m,!0),L=this.pointers[C];this._scopeFire("interactions:down",{pointer:o,event:u,eventTarget:m,pointerIndex:C,pointerInfo:L,type:"down",interaction:this})}},{key:"start",value:function(o,u,m){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(o.name==="gesture"?2:1)||!u.options[o.name].enabled)&&(Ua(this.prepared,o),this.interactable=u,this.element=m,this.rect=u.getRect(m),this.edges=this.prepared.edges?ee({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(o,u,m){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(o,u,m,!1);var C,L,U=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(C=this.coords.cur.client.x-this.coords.start.client.x,L=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=Ia(C,L)>this.pointerMoveTolerance);var W,de,Ve,he=this.getPointerIndex(o),Xe={pointer:o,pointerIndex:he,pointerInfo:this.pointers[he],event:u,type:"move",eventTarget:m,dx:C,dy:L,duplicate:U,interaction:this};U||(W=this.coords.velocity,de=this.coords.delta,Ve=Math.max(de.timeStamp/1e3,.001),W.page.x=de.page.x/Ve,W.page.y=de.page.y/Ve,W.client.x=de.client.x/Ve,W.client.y=de.client.y/Ve,W.timeStamp=Ve),this._scopeFire("interactions:move",Xe),U||this.simulation||(this.interacting()&&(Xe.type=null,this.move(Xe)),this.pointerWasMoved&&Y(this.coords.prev,this.coords.cur))}},{key:"move",value:function(o){o&&o.event||oe(this.coords.delta),(o=ee({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},o||{})).phase="move",this._doPhase(o)}},{key:"pointerUp",value:function(o,u,m,C){var L=this.getPointerIndex(o);L===-1&&(L=this.updatePointer(o,u,m,!1));var U=/cancel$/i.test(u.type)?"cancel":"up";this._scopeFire("interactions:".concat(U),{pointer:o,pointerIndex:L,pointerInfo:this.pointers[L],event:u,eventTarget:m,type:U,curEventTarget:C,interaction:this}),this.simulation||this.end(u),this.removePointer(o,u)}},{key:"documentBlur",value:function(o){this.end(o),this._scopeFire("interactions:blur",{event:o,type:"blur",interaction:this})}},{key:"end",value:function(o){var u;this._ending=!0,o=o||this._latestPointer.event,this.interacting()&&(u=this._doPhase({event:o,interaction:this,phase:"end"})),this._ending=!1,u===!0&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(o){var u=Ie(o);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:K(this.pointers,function(m){return m.id===u})}},{key:"getPointerInfo",value:function(o){return this.pointers[this.getPointerIndex(o)]}},{key:"updatePointer",value:function(o,u,m,C){var L,U,W,de=Ie(o),Ve=this.getPointerIndex(o),he=this.pointers[Ve];return C=C!==!1&&(C||/(down|start)$/i.test(u.type)),he?he.pointer=o:(he=new gn(de,o,u,null,null),Ve=this.pointers.length,this.pointers.push(he)),we(this.coords.cur,this.pointers.map(function(Xe){return Xe.pointer}),this._now()),L=this.coords.delta,U=this.coords.prev,W=this.coords.cur,L.page.x=W.page.x-U.page.x,L.page.y=W.page.y-U.page.y,L.client.x=W.client.x-U.client.x,L.client.y=W.client.y-U.client.y,L.timeStamp=W.timeStamp-U.timeStamp,C&&(this.pointerIsDown=!0,he.downTime=this.coords.cur.timeStamp,he.downTarget=m,P(this.downPointer,o),this.interacting()||(Y(this.coords.start,this.coords.cur),Y(this.coords.prev,this.coords.cur),this.downEvent=u,this.pointerWasMoved=!1)),this._updateLatestPointer(o,u,m),this._scopeFire("interactions:update-pointer",{pointer:o,event:u,eventTarget:m,down:C,pointerInfo:he,pointerIndex:Ve,interaction:this}),Ve}},{key:"removePointer",value:function(o,u){var m=this.getPointerIndex(o);if(m!==-1){var C=this.pointers[m];this._scopeFire("interactions:remove-pointer",{pointer:o,event:u,eventTarget:null,pointerIndex:m,pointerInfo:C,interaction:this}),this.pointers.splice(m,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(o,u,m){this._latestPointer.pointer=o,this._latestPointer.event=u,this._latestPointer.eventTarget=m}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(o,u,m,C){return new Nr(this,o,this.prepared.name,u,this.element,m,C)}},{key:"_fireEvent",value:function(o){var u;(u=this.interactable)==null||u.fire(o),(!this.prevEvent||o.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=o)}},{key:"_doPhase",value:function(o){var u=o.event,m=o.phase,C=o.preEnd,L=o.type,U=this.rect;if(U&&m==="move"&&(Ae(this.edges,U,this.coords.delta[this.interactable.options.deltaSource]),U.width=U.right-U.left,U.height=U.bottom-U.top),this._scopeFire("interactions:before-action-".concat(m),o)===!1)return!1;var W=o.iEvent=this._createPreparedEvent(u,m,C,L);return this._scopeFire("interactions:action-".concat(m),o),m==="start"&&(this.prevEvent=W),this._fireEvent(W),this._scopeFire("interactions:after-action-".concat(m),o),!0}},{key:"_now",value:function(){return Date.now()}}]),i}();function Zl(i){xr(i.interaction)}function xr(i){if(!function(u){return!(!u.offset.pending.x&&!u.offset.pending.y)}(i))return!1;var o=i.offset.pending;return Hl(i.coords.cur,o),Hl(i.coords.delta,o),Ae(i.edges,i.rect,o),o.x=0,o.y=0,!0}function Vl(i){var o=i.x,u=i.y;this.offset.pending.x+=o,this.offset.pending.y+=u,this.offset.total.x+=o,this.offset.total.y+=u}function Hl(i,o){var u=i.page,m=i.client,C=o.x,L=o.y;u.x+=C,u.y+=L,m.x+=C,m.y+=L}Rn.offsetBy="";var Al={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(i){i.Interaction.prototype.offsetBy=Vl},listeners:{"interactions:new":function(i){i.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(i){return function(o){o.pointerIsDown&&(Hl(o.coords.cur,o.offset.total),o.offset.pending.x=0,o.offset.pending.y=0)}(i.interaction)},"interactions:before-action-start":Zl,"interactions:before-action-move":Zl,"interactions:before-action-end":function(i){var o=i.interaction;if(xr(o))return o.move({offset:!0}),o.end(),!1},"interactions:stop":function(i){var o=i.interaction;o.offset.total.x=0,o.offset.total.y=0,o.offset.pending.x=0,o.offset.pending.y=0}}},cr=Al,ar=function(){function i(o){d(this,i),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=o}return h(i,[{key:"start",value:function(o){var u=this.interaction,m=Pl(u);if(!m||!m.enabled)return!1;var C=u.coords.velocity.client,L=Ia(C.x,C.y),U=this.modification||(this.modification=new pn(u));if(U.copyFrom(u.modification),this.t0=u._now(),this.allowResume=m.allowResume,this.v0=L,this.currentOffset={x:0,y:0},this.startCoords=u.coords.cur.page,this.modifierArg=U.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-u.coords.cur.timeStamp<50&&L>m.minSpeed&&L>m.endSpeed)this.startInertia();else{if(U.result=U.setAll(this.modifierArg),!U.result.changed)return!1;this.startSmoothEnd()}return u.modification.result.rect=null,u.offsetBy(this.targetOffset),u._doPhase({interaction:u,event:o,phase:"inertiastart"}),u.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),u.modification.result.rect=null,this.active=!0,u.simulation=this,!0}},{key:"startInertia",value:function(){var o=this,u=this.interaction.coords.velocity.client,m=Pl(this.interaction),C=m.resistance,L=-Math.log(m.endSpeed/this.v0)/C;this.targetOffset={x:(u.x-L)/C,y:(u.y-L)/C},this.te=L,this.lambda_v0=C/this.v0,this.one_ve_v0=1-m.endSpeed/this.v0;var U=this.modification,W=this.modifierArg;W.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},U.result=U.setAll(W),U.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+U.result.delta.x,y:this.targetOffset.y+U.result.delta.y}),this.onNextFrame(function(){return o.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var o=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame(function(){return o.smoothEndTick()})}},{key:"onNextFrame",value:function(o){var u=this;this.timeout=oa.request(function(){u.active&&o()})}},{key:"inertiaTick",value:function(){var o,u,m,C,L,U,W,de=this,Ve=this.interaction,he=Pl(Ve).resistance,Xe=(Ve._now()-this.t0)/1e3;if(Xe<this.te){var Ta,tl=1-(Math.exp(-he*Xe)-this.lambda_v0)/this.one_ve_v0;this.isModified?(o=0,u=0,m=this.targetOffset.x,C=this.targetOffset.y,L=this.modifiedOffset.x,U=this.modifiedOffset.y,Ta={x:Or(W=tl,o,m,L),y:Or(W,u,C,U)}):Ta={x:this.targetOffset.x*tl,y:this.targetOffset.y*tl};var rl={x:Ta.x-this.currentOffset.x,y:Ta.y-this.currentOffset.y};this.currentOffset.x+=rl.x,this.currentOffset.y+=rl.y,Ve.offsetBy(rl),Ve.move(),this.onNextFrame(function(){return de.inertiaTick()})}else Ve.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var o=this,u=this.interaction,m=u._now()-this.t0,C=Pl(u).smoothEndDuration;if(m<C){var L={x:kn(m,0,this.targetOffset.x,C),y:kn(m,0,this.targetOffset.y,C)},U={x:L.x-this.currentOffset.x,y:L.y-this.currentOffset.y};this.currentOffset.x+=U.x,this.currentOffset.y+=U.y,u.offsetBy(U),u.move({skipModifiers:this.modifierCount}),this.onNextFrame(function(){return o.smoothEndTick()})}else u.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(o){var u=o.pointer,m=o.event,C=o.eventTarget,L=this.interaction;L.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),L.updatePointer(u,m,C,!0),L._doPhase({interaction:L,event:m,phase:"resume"}),Y(L.coords.prev,L.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,oa.cancel(this.timeout)}}]),i}();function Pl(i){var o=i.interactable,u=i.prepared;return o&&o.options&&u.name&&o.options[u.name].inertia}var Mr={id:"inertia",before:["modifiers","actions"],install:function(i){var o=i.defaults;i.usePlugin(cr),i.usePlugin(Il),i.actions.phases.inertiastart=!0,i.actions.phases.resume=!0,o.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(i){var o=i.interaction;o.inertia=new ar(o)},"interactions:before-action-end":function(i){var o=i.interaction,u=i.event;return(!o._interacting||o.simulation||!o.inertia.start(u))&&null},"interactions:down":function(i){var o=i.interaction,u=i.eventTarget,m=o.inertia;if(m.active)for(var C=u;g.element(C);){if(C===o.element){m.resume(i);break}C=Sa(C)}},"interactions:stop":function(i){var o=i.interaction.inertia;o.active&&o.stop()},"interactions:before-action-resume":function(i){var o=i.interaction.modification;o.stop(i),o.start(i,i.interaction.coords.cur.page),o.applyToInteraction(i)},"interactions:before-action-inertiastart":function(i){return i.interaction.modification.setAndApply(i)},"interactions:action-resume":Zr,"interactions:action-inertiastart":Zr,"interactions:after-action-inertiastart":function(i){return i.interaction.modification.restoreInteractionCoords(i)},"interactions:after-action-resume":function(i){return i.interaction.modification.restoreInteractionCoords(i)}}};function Or(i,o,u,m){var C=1-i;return C*C*o+2*C*i*u+i*i*m}function kn(i,o,u,m){return-u*(i/=m)*(i-2)+o}var Cn=Mr;function fn(i,o){for(var u=0;u<o.length;u++){var m=o[u];if(i.immediatePropagationStopped)break;m(i)}}var Pn=function(){function i(o){d(this,i),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=ee({},o||{})}return h(i,[{key:"fire",value:function(o){var u,m=this.global;(u=this.types[o.type])&&fn(o,u),!o.propagationStopped&&m&&(u=m[o.type])&&fn(o,u)}},{key:"on",value:function(o,u){var m=Ge(o,u);for(o in m)this.types[o]=re(this.types[o]||[],m[o])}},{key:"off",value:function(o,u){var m=Ge(o,u);for(o in m){var C=this.types[o];if(C&&C.length)for(var L=0,U=m[o];L<U.length;L++){var W=U[L],de=C.indexOf(W);de!==-1&&C.splice(de,1)}}}},{key:"getRect",value:function(o){return null}}]),i}(),zn=function(){function i(o){d(this,i),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=o,P(this,o)}return h(i,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),i}();function hn(i){return g.object(i)?{capture:!!i.capture,passive:!!i.passive}:{capture:!!i,passive:!1}}function En(i,o){return i===o||(typeof i=="boolean"?!!o.capture===i&&!o.passive:!!i.capture==!!o.capture&&!!i.passive==!!o.passive)}var Mn={id:"events",install:function(i){var o,u=[],m={},C=[],L={add:U,remove:W,addDelegate:function(he,Xe,Ta,tl,rl){var sl=hn(rl);if(!m[Ta]){m[Ta]=[];for(var Cl=0;Cl<C.length;Cl++){var _l=C[Cl];U(_l,Ta,de),U(_l,Ta,Ve,!0)}}var yl=m[Ta],jl=je(yl,function($l){return $l.selector===he&&$l.context===Xe});jl||(jl={selector:he,context:Xe,listeners:[]},yl.push(jl)),jl.listeners.push({func:tl,options:sl})},removeDelegate:function(he,Xe,Ta,tl,rl){var sl,Cl=hn(rl),_l=m[Ta],yl=!1;if(_l)for(sl=_l.length-1;sl>=0;sl--){var jl=_l[sl];if(jl.selector===he&&jl.context===Xe){for(var $l=jl.listeners,Ol=$l.length-1;Ol>=0;Ol--){var zl=$l[Ol];if(zl.func===tl&&En(zl.options,Cl)){$l.splice(Ol,1),$l.length||(_l.splice(sl,1),W(Xe,Ta,de),W(Xe,Ta,Ve,!0)),yl=!0;break}}if(yl)break}}},delegateListener:de,delegateUseCapture:Ve,delegatedEvents:m,documents:C,targets:u,supportsOptions:!1,supportsPassive:!1};function U(he,Xe,Ta,tl){if(he.addEventListener){var rl=hn(tl),sl=je(u,function(Cl){return Cl.eventTarget===he});sl||(sl={eventTarget:he,events:{}},u.push(sl)),sl.events[Xe]||(sl.events[Xe]=[]),je(sl.events[Xe],function(Cl){return Cl.func===Ta&&En(Cl.options,rl)})||(he.addEventListener(Xe,Ta,L.supportsOptions?rl:rl.capture),sl.events[Xe].push({func:Ta,options:rl}))}}function W(he,Xe,Ta,tl){if(he.addEventListener&&he.removeEventListener){var rl=K(u,function(Lr){return Lr.eventTarget===he}),sl=u[rl];if(sl&&sl.events)if(Xe!=="all"){var Cl=!1,_l=sl.events[Xe];if(_l){if(Ta==="all"){for(var yl=_l.length-1;yl>=0;yl--){var jl=_l[yl];W(he,Xe,jl.func,jl.options)}return}for(var $l=hn(tl),Ol=0;Ol<_l.length;Ol++){var zl=_l[Ol];if(zl.func===Ta&&En(zl.options,$l)){he.removeEventListener(Xe,Ta,L.supportsOptions?$l:$l.capture),_l.splice(Ol,1),_l.length===0&&(delete sl.events[Xe],Cl=!0);break}}}Cl&&!Object.keys(sl.events).length&&u.splice(rl,1)}else for(Xe in sl.events)sl.events.hasOwnProperty(Xe)&&W(he,Xe,"all")}}function de(he,Xe){for(var Ta=hn(Xe),tl=new zn(he),rl=m[he.type],sl=$e(he)[0],Cl=sl;g.element(Cl);){for(var _l=0;_l<rl.length;_l++){var yl=rl[_l],jl=yl.selector,$l=yl.context;if(te(Cl,jl)&&pe($l,sl)&&pe($l,Cl)){var Ol=yl.listeners;tl.currentTarget=Cl;for(var zl=0;zl<Ol.length;zl++){var Lr=Ol[zl];En(Lr.options,Ta)&&Lr.func(tl)}}}Cl=Sa(Cl)}}function Ve(he){return de(he,!0)}return(o=i.document)==null||o.createElement("div").addEventListener("test",null,{get capture(){return L.supportsOptions=!0},get passive(){return L.supportsPassive=!0}}),i.events=L,L}},Kr={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(i){for(var o=0,u=Kr.methodOrder;o<u.length;o++){var m=u[o],C=Kr[m](i);if(C)return C}return null},simulationResume:function(i){var o=i.pointerType,u=i.eventType,m=i.eventTarget,C=i.scope;if(!/down|start/i.test(u))return null;for(var L=0,U=C.interactions.list;L<U.length;L++){var W=U[L],de=m;if(W.simulation&&W.simulation.allowResume&&W.pointerType===o)for(;de;){if(de===W.element)return W;de=Sa(de)}}return null},mouseOrPen:function(i){var o,u=i.pointerId,m=i.pointerType,C=i.eventType,L=i.scope;if(m!=="mouse"&&m!=="pen")return null;for(var U=0,W=L.interactions.list;U<W.length;U++){var de=W[U];if(de.pointerType===m){if(de.simulation&&!Sn(de,u))continue;if(de.interacting())return de;o||(o=de)}}if(o)return o;for(var Ve=0,he=L.interactions.list;Ve<he.length;Ve++){var Xe=he[Ve];if(!(Xe.pointerType!==m||/down/i.test(C)&&Xe.simulation))return Xe}return null},hasPointer:function(i){for(var o=i.pointerId,u=0,m=i.scope.interactions.list;u<m.length;u++){var C=m[u];if(Sn(C,o))return C}return null},idle:function(i){for(var o=i.pointerType,u=0,m=i.scope.interactions.list;u<m.length;u++){var C=m[u];if(C.pointers.length===1){var L=C.interactable;if(L&&(!L.options.gesture||!L.options.gesture.enabled))continue}else if(C.pointers.length>=2)continue;if(!C.interacting()&&o===C.pointerType)return C}return null}};function Sn(i,o){return i.pointers.some(function(u){return u.id===o})}var Fn=Kr,Tr=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function jn(i,o){return function(u){var m=o.interactions.list,C=ka(u),L=$e(u),U=L[0],W=L[1],de=[];if(/^touch/.test(u.type)){o.prevTouchTime=o.now();for(var Ve=0,he=u.changedTouches;Ve<he.length;Ve++){var Xe=he[Ve],Ta={pointer:Xe,pointerId:Ie(Xe),pointerType:C,eventType:u.type,eventTarget:U,curEventTarget:W,scope:o},tl=on(Ta);de.push([Ta.pointer,Ta.eventTarget,Ta.curEventTarget,tl])}}else{var rl=!1;if(!X.supportsPointerEvent&&/mouse/.test(u.type)){for(var sl=0;sl<m.length&&!rl;sl++)rl=m[sl].pointerType!=="mouse"&&m[sl].pointerIsDown;rl=rl||o.now()-o.prevTouchTime<500||u.timeStamp===0}if(!rl){var Cl={pointer:u,pointerId:Ie(u),pointerType:C,eventType:u.type,curEventTarget:W,eventTarget:U,scope:o},_l=on(Cl);de.push([Cl.pointer,Cl.eventTarget,Cl.curEventTarget,_l])}}for(var yl=0;yl<de.length;yl++){var jl=de[yl],$l=jl[0],Ol=jl[1],zl=jl[2];jl[3][i]($l,u,Ol,zl)}}}function on(i){var o=i.pointerType,u=i.scope,m={interaction:Fn.search(i),searchDetails:i};return u.fire("interactions:find",m),m.interaction||u.interactions.new({pointerType:o})}function Dt(i,o){var u=i.doc,m=i.scope,C=i.options,L=m.interactions.docEvents,U=m.events,W=U[o];for(var de in m.browser.isIOS&&!C.events&&(C.events={passive:!1}),U.delegatedEvents)W(u,de,U.delegateListener),W(u,de,U.delegateUseCapture,!0);for(var Ve=C&&C.events,he=0;he<L.length;he++){var Xe=L[he];W(u,Xe.type,Xe.listener,Ve)}}var zo={id:"core/interactions",install:function(i){for(var o={},u=0;u<Tr.length;u++){var m=Tr[u];o[m]=jn(m,i)}var C,L=X.pEventTypes;function U(){for(var W=0,de=i.interactions.list;W<de.length;W++){var Ve=de[W];if(Ve.pointerIsDown&&Ve.pointerType==="touch"&&!Ve._interacting)for(var he=function(){var tl=Ta[Xe];i.documents.some(function(rl){return pe(rl.doc,tl.downTarget)})||Ve.removePointer(tl.pointer,tl.event)},Xe=0,Ta=Ve.pointers;Xe<Ta.length;Xe++)he()}}(C=ne.PointerEvent?[{type:L.down,listener:U},{type:L.down,listener:o.pointerDown},{type:L.move,listener:o.pointerMove},{type:L.up,listener:o.pointerUp},{type:L.cancel,listener:o.pointerUp}]:[{type:"mousedown",listener:o.pointerDown},{type:"mousemove",listener:o.pointerMove},{type:"mouseup",listener:o.pointerUp},{type:"touchstart",listener:U},{type:"touchstart",listener:o.pointerDown},{type:"touchmove",listener:o.pointerMove},{type:"touchend",listener:o.pointerUp},{type:"touchcancel",listener:o.pointerUp}]).push({type:"blur",listener:function(W){for(var de=0,Ve=i.interactions.list;de<Ve.length;de++)Ve[de].documentBlur(W)}}),i.prevTouchTime=0,i.Interaction=function(W){y(Ve,W);var de=A(Ve);function Ve(){return d(this,Ve),de.apply(this,arguments)}return h(Ve,[{key:"pointerMoveTolerance",get:function(){return i.interactions.pointerMoveTolerance},set:function(he){i.interactions.pointerMoveTolerance=he}},{key:"_now",value:function(){return i.now()}}]),Ve}(bn),i.interactions={list:[],new:function(W){W.scopeFire=function(Ve,he){return i.fire(Ve,he)};var de=new i.Interaction(W);return i.interactions.list.push(de),de},listeners:o,docEvents:C,pointerMoveTolerance:1},i.usePlugin(dn)},listeners:{"scope:add-document":function(i){return Dt(i,"add")},"scope:remove-document":function(i){return Dt(i,"remove")},"interactable:unset":function(i,o){for(var u=i.interactable,m=o.interactions.list.length-1;m>=0;m--){var C=o.interactions.list[m];C.interactable===u&&(C.stop(),o.fire("interactions:destroy",{interaction:C}),C.destroy(),o.interactions.list.length>2&&o.interactions.list.splice(m,1))}}},onDocSignal:Dt,doOnInteractions:jn,methodNames:Tr},Mo=zo,xn=function(i){return i[i.On=0]="On",i[i.Off=1]="Off",i}(xn||{}),Oo=function(){function i(o,u,m,C){d(this,i),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new Pn,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=u.actions,this.target=o,this._context=u.context||m,this._win=$(Ha(o)?this._context:o),this._doc=this._win.document,this._scopeEvents=C,this.set(u)}return h(i,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(o,u){return g.func(u.onstart)&&this.on("".concat(o,"start"),u.onstart),g.func(u.onmove)&&this.on("".concat(o,"move"),u.onmove),g.func(u.onend)&&this.on("".concat(o,"end"),u.onend),g.func(u.oninertiastart)&&this.on("".concat(o,"inertiastart"),u.oninertiastart),this}},{key:"updatePerActionListeners",value:function(o,u,m){var C,L=this,U=(C=this._actions.map[o])==null?void 0:C.filterEventType,W=function(de){return(U==null||U(de))&&Xr(de,L._actions)};(g.array(u)||g.object(u))&&this._onOff(xn.Off,o,u,void 0,W),(g.array(m)||g.object(m))&&this._onOff(xn.On,o,m,void 0,W)}},{key:"setPerAction",value:function(o,u){var m=this._defaults;for(var C in u){var L=C,U=this.options[o],W=u[L];L==="listeners"&&this.updatePerActionListeners(o,U.listeners,W),g.array(W)?U[L]=Se(W):g.plainObject(W)?(U[L]=ee(U[L]||{},Ur(W)),g.object(m.perAction[L])&&"enabled"in m.perAction[L]&&(U[L].enabled=W.enabled!==!1)):g.bool(W)&&g.object(m.perAction[L])?U[L].enabled=W:U[L]=W}}},{key:"getRect",value:function(o){return o=o||(g.element(this.target)?this.target:null),g.string(this.target)&&(o=o||this._context.querySelector(this.target)),ia(o)}},{key:"rectChecker",value:function(o){var u=this;return g.func(o)?(this.getRect=function(m){var C=ee({},o.apply(u,m));return"width"in C||(C.width=C.right-C.left,C.height=C.bottom-C.top),C},this):o===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(o,u){if(Ha(u)||g.object(u)){for(var m in this.options[o]=u,this._actions.map)this.options[m][o]=u;return this}return this.options[o]}},{key:"origin",value:function(o){return this._backCompatOption("origin",o)}},{key:"deltaSource",value:function(o){return o==="page"||o==="client"?(this.options.deltaSource=o,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var o=this.target;return g.string(o)?Array.from(this._context.querySelectorAll(o)):g.func(o)&&o.getAllElements?o.getAllElements():g.element(o)?[o]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(o){return this._context===o.ownerDocument||pe(this._context,o)}},{key:"testIgnoreAllow",value:function(o,u,m){return!this.testIgnore(o.ignoreFrom,u,m)&&this.testAllow(o.allowFrom,u,m)}},{key:"testAllow",value:function(o,u,m){return!o||!!g.element(m)&&(g.string(o)?ye(m,o,u):!!g.element(o)&&pe(o,m))}},{key:"testIgnore",value:function(o,u,m){return!(!o||!g.element(m))&&(g.string(o)?ye(m,o,u):!!g.element(o)&&pe(o,m))}},{key:"fire",value:function(o){return this.events.fire(o),this}},{key:"_onOff",value:function(o,u,m,C,L){g.object(u)&&!g.array(u)&&(C=m,m=null);var U=Ge(u,m,L);for(var W in U){W==="wheel"&&(W=X.wheelEvent);for(var de=0,Ve=U[W];de<Ve.length;de++){var he=Ve[de];Xr(W,this._actions)?this.events[o===xn.On?"on":"off"](W,he):g.string(this.target)?this._scopeEvents[o===xn.On?"addDelegate":"removeDelegate"](this.target,this._context,W,he,C):this._scopeEvents[o===xn.On?"add":"remove"](this.target,W,he,C)}}return this}},{key:"on",value:function(o,u,m){return this._onOff(xn.On,o,u,m)}},{key:"off",value:function(o,u,m){return this._onOff(xn.Off,o,u,m)}},{key:"set",value:function(o){var u=this._defaults;for(var m in g.object(o)||(o={}),this.options=Ur(u.base),this._actions.methodDict){var C=m,L=this._actions.methodDict[C];this.options[C]={},this.setPerAction(C,ee(ee({},u.perAction),u.actions[C])),this[L](o[C])}for(var U in o)U!=="getRect"?g.func(this[U])&&this[U](o[U]):this.rectChecker(o.getRect);return this}},{key:"unset",value:function(){if(g.string(this.target))for(var o in this._scopeEvents.delegatedEvents)for(var u=this._scopeEvents.delegatedEvents[o],m=u.length-1;m>=0;m--){var C=u[m],L=C.selector,U=C.context,W=C.listeners;L===this.target&&U===this._context&&u.splice(m,1);for(var de=W.length-1;de>=0;de--)this._scopeEvents.removeDelegate(this.target,this._context,o,W[de][0],W[de][1])}else this._scopeEvents.remove(this.target,"all")}}]),i}(),Io=function(){function i(o){var u=this;d(this,i),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=o,o.addListeners({"interactable:unset":function(m){var C=m.interactable,L=C.target,U=g.string(L)?u.selectorMap[L]:L[u.scope.id],W=K(U,function(de){return de===C});U.splice(W,1)}})}return h(i,[{key:"new",value:function(o,u){u=ee(u||{},{actions:this.scope.actions});var m=new this.scope.Interactable(o,u,this.scope.document,this.scope.events);return this.scope.addDocument(m._doc),this.list.push(m),g.string(o)?(this.selectorMap[o]||(this.selectorMap[o]=[]),this.selectorMap[o].push(m)):(m.target[this.scope.id]||Object.defineProperty(o,this.scope.id,{value:[],configurable:!0}),o[this.scope.id].push(m)),this.scope.fire("interactable:new",{target:o,options:u,interactable:m,win:this.scope._win}),m}},{key:"getExisting",value:function(o,u){var m=u&&u.context||this.scope.document,C=g.string(o),L=C?this.selectorMap[o]:o[this.scope.id];if(L)return je(L,function(U){return U._context===m&&(C||U.inContext(o))})}},{key:"forEachMatch",value:function(o,u){for(var m=0,C=this.list;m<C.length;m++){var L=C[m],U=void 0;if((g.string(L.target)?g.element(o)&&te(o,L.target):o===L.target)&&L.inContext(o)&&(U=u(L)),U!==void 0)return U}}}]),i}(),Lo=function(){function i(){var o=this;d(this,i),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=X,this.defaults=Ur(qr),this.Eventable=Pn,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(m){var C=function L(U,W){var de=m.interactables.getExisting(U,W);return de||((de=m.interactables.new(U,W)).events.global=L.globalEvents),de};return C.getPointerAverage=fe,C.getTouchBBox=Je,C.getTouchDistance=Ze,C.getTouchAngle=Fe,C.getElementRect=ia,C.getElementClientRect=Ne,C.matchesSelector=te,C.closest=Ke,C.globalEvents={},C.version="1.10.27",C.scope=m,C.use=function(L,U){return this.scope.usePlugin(L,U),this},C.isSet=function(L,U){return!!this.scope.interactables.get(L,U&&U.context)},C.on=Ba(function(L,U,W){if(g.string(L)&&L.search(" ")!==-1&&(L=L.trim().split(/ +/)),g.array(L)){for(var de=0,Ve=L;de<Ve.length;de++){var he=Ve[de];this.on(he,U,W)}return this}if(g.object(L)){for(var Xe in L)this.on(Xe,L[Xe],U);return this}return Xr(L,this.scope.actions)?this.globalEvents[L]?this.globalEvents[L].push(U):this.globalEvents[L]=[U]:this.scope.events.add(this.scope.document,L,U,{options:W}),this},"The interact.on() method is being deprecated"),C.off=Ba(function(L,U,W){if(g.string(L)&&L.search(" ")!==-1&&(L=L.trim().split(/ +/)),g.array(L)){for(var de=0,Ve=L;de<Ve.length;de++){var he=Ve[de];this.off(he,U,W)}return this}if(g.object(L)){for(var Xe in L)this.off(Xe,L[Xe],U);return this}var Ta;return Xr(L,this.scope.actions)?L in this.globalEvents&&(Ta=this.globalEvents[L].indexOf(U))!==-1&&this.globalEvents[L].splice(Ta,1):this.scope.events.remove(this.scope.document,L,U,W),this},"The interact.off() method is being deprecated"),C.debug=function(){return this.scope},C.supportsTouch=function(){return X.supportsTouch},C.supportsPointerEvent=function(){return X.supportsPointerEvent},C.stop=function(){for(var L=0,U=this.scope.interactions.list;L<U.length;L++)U[L].stop();return this},C.pointerMoveTolerance=function(L){return g.number(L)?(this.scope.interactions.pointerMoveTolerance=L,this):this.scope.interactions.pointerMoveTolerance},C.addDocument=function(L,U){this.scope.addDocument(L,U)},C.removeDocument=function(L){this.scope.removeDocument(L)},C}(this),this.InteractEvent=Nr,this.Interactable=void 0,this.interactables=new Io(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(m){return o.removeDocument(m.target)};var u=this;this.Interactable=function(m){y(L,m);var C=A(L);function L(){return d(this,L),C.apply(this,arguments)}return h(L,[{key:"_defaults",get:function(){return u.defaults}},{key:"set",value:function(U){return _(c(L.prototype),"set",this).call(this,U),u.fire("interactable:set",{options:U,interactable:this}),this}},{key:"unset",value:function(){_(c(L.prototype),"unset",this).call(this);var U=u.interactables.list.indexOf(this);U<0||(u.interactables.list.splice(U,1),u.fire("interactable:unset",{interactable:this}))}}]),L}(Oo)}return h(i,[{key:"addListeners",value:function(o,u){this.listenerMaps.push({id:u,map:o})}},{key:"fire",value:function(o,u){for(var m=0,C=this.listenerMaps;m<C.length;m++){var L=C[m].map[o];if(L&&L(u,this,o)===!1)return!1}}},{key:"init",value:function(o){return this.isInitialized?this:function(u,m){return u.isInitialized=!0,g.window(m)&&D(m),ne.init(m),X.init(m),oa.init(m),u.window=m,u.document=m.document,u.usePlugin(Mo),u.usePlugin(Mn),u}(this,o)}},{key:"pluginIsInstalled",value:function(o){var u=o.id;return u?!!this._plugins.map[u]:this._plugins.list.indexOf(o)!==-1}},{key:"usePlugin",value:function(o,u){if(!this.isInitialized)return this;if(this.pluginIsInstalled(o))return this;if(o.id&&(this._plugins.map[o.id]=o),this._plugins.list.push(o),o.install&&o.install(this,u),o.listeners&&o.before){for(var m=0,C=this.listenerMaps.length,L=o.before.reduce(function(W,de){return W[de]=!0,W[Bt(de)]=!0,W},{});m<C;m++){var U=this.listenerMaps[m].id;if(U&&(L[U]||L[Bt(U)]))break}this.listenerMaps.splice(m,0,{id:o.id,map:o.listeners})}else o.listeners&&this.listenerMaps.push({id:o.id,map:o.listeners});return this}},{key:"addDocument",value:function(o,u){if(this.getDocIndex(o)!==-1)return!1;var m=$(o);u=u?ee({},u):{},this.documents.push({doc:o,options:u}),this.events.documents.push(o),o!==this.document&&this.events.add(m,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:o,window:m,scope:this,options:u})}},{key:"removeDocument",value:function(o){var u=this.getDocIndex(o),m=$(o),C=this.documents[u].options;this.events.remove(m,"unload",this.onWindowUnload),this.documents.splice(u,1),this.events.documents.splice(u,1),this.fire("scope:remove-document",{doc:o,window:m,scope:this,options:C})}},{key:"getDocIndex",value:function(o){for(var u=0;u<this.documents.length;u++)if(this.documents[u].doc===o)return u;return-1}},{key:"getDocOptions",value:function(o){var u=this.getDocIndex(o);return u===-1?null:this.documents[u].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),i}();function Bt(i){return i&&i.replace(/\/.*$/,"")}var Ut=new Lo,Ir=Ut.interactStatic,Vo=typeof globalThis<"u"?globalThis:window;Ut.init(Vo);var $o=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(i){var o=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(m){var C=m[0],L=m[1];return C in i||L in i}),u=function(m,C){for(var L=i.range,U=i.limits,W=U===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:U,de=i.offset,Ve=de===void 0?{x:0,y:0}:de,he={range:L,grid:i,x:null,y:null},Xe=0;Xe<o.length;Xe++){var Ta=o[Xe],tl=Ta[0],rl=Ta[1],sl=Math.round((m-Ve.x)/i[tl]),Cl=Math.round((C-Ve.y)/i[rl]);he[tl]=Math.max(W.left,Math.min(W.right,sl*i[tl]+Ve.x)),he[rl]=Math.max(W.top,Math.min(W.bottom,Cl*i[rl]+Ve.y))}return he};return u.grid=i,u.coordFields=o,u}}),Nt={id:"snappers",install:function(i){var o=i.interactStatic;o.snappers=ee(o.snappers||{},$o),o.createSnapGrid=o.snappers.grid}},Ro=Nt,Tt={start:function(i){var o=i.state,u=i.rect,m=i.edges,C=i.pageCoords,L=o.options,U=L.ratio,W=L.enabled,de=o.options,Ve=de.equalDelta,he=de.modifiers;U==="preserve"&&(U=u.width/u.height),o.startCoords=ee({},C),o.startRect=ee({},u),o.ratio=U,o.equalDelta=Ve;var Xe=o.linkedEdges={top:m.top||m.left&&!m.bottom,left:m.left||m.top&&!m.right,bottom:m.bottom||m.right&&!m.top,right:m.right||m.bottom&&!m.left};if(o.xIsPrimaryAxis=!(!m.left&&!m.right),o.equalDelta){var Ta=(Xe.left?1:-1)*(Xe.top?1:-1);o.edgeSign={x:Ta,y:Ta}}else o.edgeSign={x:Xe.left?-1:1,y:Xe.top?-1:1};if(W!==!1&&ee(m,Xe),he!=null&&he.length){var tl=new pn(i.interaction);tl.copyFrom(i.interaction.modification),tl.prepareStates(he),o.subModification=tl,tl.startAll(t({},i))}},set:function(i){var o=i.state,u=i.rect,m=i.coords,C=o.linkedEdges,L=ee({},m),U=o.equalDelta?qt:Kt;if(ee(i.edges,C),U(o,o.xIsPrimaryAxis,m,u),!o.subModification)return null;var W=ee({},u);Ae(C,W,{x:m.x-L.x,y:m.y-L.y});var de=o.subModification.setAll(t(t({},i),{},{rect:W,edges:C,pageCoords:m,prevCoords:m,prevRect:W})),Ve=de.delta;return de.changed&&(U(o,Math.abs(Ve.x)>Math.abs(Ve.y),de.coords,de.rect),ee(m,de.coords)),de.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function qt(i,o,u){var m=i.startCoords,C=i.edgeSign;o?u.y=m.y+(u.x-m.x)*C.y:u.x=m.x+(u.y-m.y)*C.x}function Kt(i,o,u,m){var C=i.startRect,L=i.startCoords,U=i.ratio,W=i.edgeSign;if(o){var de=m.width/U;u.y=L.y+(de-C.height)*W.y}else{var Ve=m.height*U;u.x=L.x+(Ve-C.width)*W.x}}var Po=Dr(Tt,"aspectRatio"),Wt=function(){};Wt._defaults={};var ot=Wt;function Qr(i,o,u){return g.func(i)?Pe(i,o.interactable,o.element,[u.x,u.y,o]):Pe(i,o.interactable,o.element)}var Hn={start:function(i){var o=i.rect,u=i.startOffset,m=i.state,C=i.interaction,L=i.pageCoords,U=m.options,W=U.elementRect,de=ee({left:0,top:0,right:0,bottom:0},U.offset||{});if(o&&W){var Ve=Qr(U.restriction,C,L);if(Ve){var he=Ve.right-Ve.left-o.width,Xe=Ve.bottom-Ve.top-o.height;he<0&&(de.left+=he,de.right+=he),Xe<0&&(de.top+=Xe,de.bottom+=Xe)}de.left+=u.left-o.width*W.left,de.top+=u.top-o.height*W.top,de.right+=u.right-o.width*(1-W.right),de.bottom+=u.bottom-o.height*(1-W.bottom)}m.offset=de},set:function(i){var o=i.coords,u=i.interaction,m=i.state,C=m.options,L=m.offset,U=Qr(C.restriction,u,o);if(U){var W=function(de){return!de||"left"in de&&"top"in de||((de=ee({},de)).left=de.x||0,de.top=de.y||0,de.right=de.right||de.left+de.width,de.bottom=de.bottom||de.top+de.height),de}(U);o.x=Math.max(Math.min(W.right-L.right,o.x),W.left+L.left),o.y=Math.max(Math.min(W.bottom-L.bottom,o.y),W.top+L.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},At=Dr(Hn,"restrict"),Yt={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Gt={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function Jt(i,o){for(var u=0,m=["top","left","bottom","right"];u<m.length;u++){var C=m[u];C in i||(i[C]=o[C])}return i}var Un={noInner:Yt,noOuter:Gt,start:function(i){var o,u=i.interaction,m=i.startOffset,C=i.state,L=C.options;L&&(o=ga(Qr(L.offset,u,u.coords.start.page))),o=o||{x:0,y:0},C.offset={top:o.y+m.top,left:o.x+m.left,bottom:o.y-m.bottom,right:o.x-m.right}},set:function(i){var o=i.coords,u=i.edges,m=i.interaction,C=i.state,L=C.offset,U=C.options;if(u){var W=ee({},o),de=Qr(U.inner,m,W)||{},Ve=Qr(U.outer,m,W)||{};Jt(de,Yt),Jt(Ve,Gt),u.top?o.y=Math.min(Math.max(Ve.top+L.top,W.y),de.top+L.top):u.bottom&&(o.y=Math.max(Math.min(Ve.bottom+L.bottom,W.y),de.bottom+L.bottom)),u.left?o.x=Math.min(Math.max(Ve.left+L.left,W.x),de.left+L.left):u.right&&(o.x=Math.max(Math.min(Ve.right+L.right,W.x),de.right+L.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},Xt=Dr(Un,"restrictEdges"),qn=ee({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(i){}},Hn.defaults),Zt=Dr({start:Hn.start,set:Hn.set,defaults:qn},"restrictRect"),Qt={width:-1/0,height:-1/0},Kn={width:1/0,height:1/0},Fo=Dr({start:function(i){return Un.start(i)},set:function(i){var o=i.interaction,u=i.state,m=i.rect,C=i.edges,L=u.options;if(C){var U=He(Qr(L.min,o,i.coords))||Qt,W=He(Qr(L.max,o,i.coords))||Kn;u.options={endOnly:L.endOnly,inner:ee({},Un.noInner),outer:ee({},Un.noOuter)},C.top?(u.options.inner.top=m.bottom-U.height,u.options.outer.top=m.bottom-W.height):C.bottom&&(u.options.inner.bottom=m.top+U.height,u.options.outer.bottom=m.top+W.height),C.left?(u.options.inner.left=m.right-U.width,u.options.outer.left=m.right-W.width):C.right&&(u.options.inner.right=m.left+U.width,u.options.outer.right=m.left+W.width),Un.set(i),u.options=L}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),it={start:function(i){var o,u=i.interaction,m=i.interactable,C=i.element,L=i.rect,U=i.state,W=i.startOffset,de=U.options,Ve=de.offsetWithOrigin?function(Ta){var tl=Ta.interaction.element,rl=ga(Pe(Ta.state.options.origin,null,null,[tl])),sl=rl||Re(Ta.interactable,tl,Ta.interaction.prepared.name);return sl}(i):{x:0,y:0};if(de.offset==="startCoords")o={x:u.coords.start.page.x,y:u.coords.start.page.y};else{var he=Pe(de.offset,m,C,[u]);(o=ga(he)||{x:0,y:0}).x+=Ve.x,o.y+=Ve.y}var Xe=de.relativePoints;U.offsets=L&&Xe&&Xe.length?Xe.map(function(Ta,tl){return{index:tl,relativePoint:Ta,x:W.left-L.width*Ta.x+o.x,y:W.top-L.height*Ta.y+o.y}}):[{index:0,relativePoint:null,x:o.x,y:o.y}]},set:function(i){var o=i.interaction,u=i.coords,m=i.state,C=m.options,L=m.offsets,U=Re(o.interactable,o.element,o.prepared.name),W=ee({},u),de=[];C.offsetWithOrigin||(W.x-=U.x,W.y-=U.y);for(var Ve=0,he=L;Ve<he.length;Ve++)for(var Xe=he[Ve],Ta=W.x-Xe.x,tl=W.y-Xe.y,rl=0,sl=C.targets.length;rl<sl;rl++){var Cl=C.targets[rl],_l=void 0;(_l=g.func(Cl)?Cl(Ta,tl,o._proxy,Xe,rl):Cl)&&de.push({x:(g.number(_l.x)?_l.x:Ta)+Xe.x,y:(g.number(_l.y)?_l.y:tl)+Xe.y,range:g.number(_l.range)?_l.range:C.range,source:Cl,index:rl,offset:Xe})}for(var yl={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},jl=0;jl<de.length;jl++){var $l=de[jl],Ol=$l.range,zl=$l.x-W.x,Lr=$l.y-W.y,mr=Ia(zl,Lr),Fr=mr<=Ol;Ol===1/0&&yl.inRange&&yl.range!==1/0&&(Fr=!1),yl.target&&!(Fr?yl.inRange&&Ol!==1/0?mr/Ol<yl.distance/yl.range:Ol===1/0&&yl.range!==1/0||mr<yl.distance:!yl.inRange&&mr<yl.distance)||(yl.target=$l,yl.distance=mr,yl.range=Ol,yl.inRange=Fr,yl.delta.x=zl,yl.delta.y=Lr)}return yl.inRange&&(u.x=yl.target.x,u.y=yl.target.y),m.closest=yl,yl},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},Wn=Dr(it,"snap"),st={start:function(i){var o=i.state,u=i.edges,m=o.options;if(!u)return null;i.state={options:{targets:null,relativePoints:[{x:u.left?0:1,y:u.top?0:1}],offset:m.offset||"self",origin:{x:0,y:0},range:m.range}},o.targetFields=o.targetFields||[["width","height"],["x","y"]],it.start(i),o.offsets=i.state.offsets,i.state=o},set:function(i){var o=i.interaction,u=i.state,m=i.coords,C=u.options,L=u.offsets,U={x:m.x-L[0].x,y:m.y-L[0].y};u.options=ee({},C),u.options.targets=[];for(var W=0,de=C.targets||[];W<de.length;W++){var Ve=de[W],he=void 0;if(he=g.func(Ve)?Ve(U.x,U.y,o):Ve){for(var Xe=0,Ta=u.targetFields;Xe<Ta.length;Xe++){var tl=Ta[Xe],rl=tl[0],sl=tl[1];if(rl in he||sl in he){he.x=he[rl],he.y=he[sl];break}}u.options.targets.push(he)}}var Cl=it.set(i);return u.options=C,Cl},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},jo=Dr(st,"snapSize"),zt={aspectRatio:Po,restrictEdges:Xt,restrict:At,restrictRect:Zt,restrictSize:Fo,snapEdges:Dr({start:function(i){var o=i.edges;return o?(i.state.targetFields=i.state.targetFields||[[o.left?"left":"right",o.top?"top":"bottom"]],st.start(i)):null},set:st.set,defaults:ee(Ur(st.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:Wn,snapSize:jo,spring:ot,avoid:ot,transform:ot,rubberband:ot},Ho={id:"modifiers",install:function(i){var o=i.interactStatic;for(var u in i.usePlugin(Il),i.usePlugin(Ro),o.modifiers=zt,zt){var m=zt[u],C=m._defaults,L=m._methods;C._methods=L,i.defaults.perAction[u]=C}}},Uo=Ho,eo=function(i){y(u,i);var o=A(u);function u(m,C,L,U,W,de){var Ve;if(d(this,u),P(S(Ve=o.call(this,W)),L),L!==C&&P(S(Ve),C),Ve.timeStamp=de,Ve.originalEvent=L,Ve.type=m,Ve.pointerId=Ie(C),Ve.pointerType=ka(C),Ve.target=U,Ve.currentTarget=null,m==="tap"){var he=W.getPointerIndex(C);Ve.dt=Ve.timeStamp-W.pointers[he].downTime;var Xe=Ve.timeStamp-W.tapTime;Ve.double=!!W.prevTap&&W.prevTap.type!=="doubletap"&&W.prevTap.target===Ve.target&&Xe<500}else m==="doubletap"&&(Ve.dt=C.timeStamp-W.tapTime,Ve.double=!0);return Ve}return h(u,[{key:"_subtractOrigin",value:function(m){var C=m.x,L=m.y;return this.pageX-=C,this.pageY-=L,this.clientX-=C,this.clientY-=L,this}},{key:"_addOrigin",value:function(m){var C=m.x,L=m.y;return this.pageX+=C,this.pageY+=L,this.clientX+=C,this.clientY+=L,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),u}(pa),Yn={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(i){i.pointerEvents=Yn,i.defaults.actions.pointerEvents=Yn.defaults,ee(i.actions.phaselessTypes,Yn.types)},listeners:{"interactions:new":function(i){var o=i.interaction;o.prevTap=null,o.tapTime=0},"interactions:update-pointer":function(i){var o=i.down,u=i.pointerInfo;!o&&u.hold||(u.hold={duration:1/0,timeout:null})},"interactions:move":function(i,o){var u=i.interaction,m=i.pointer,C=i.event,L=i.eventTarget;i.duplicate||u.pointerIsDown&&!u.pointerWasMoved||(u.pointerIsDown&&Mt(i),vn({interaction:u,pointer:m,event:C,eventTarget:L,type:"move"},o))},"interactions:down":function(i,o){(function(u,m){for(var C=u.interaction,L=u.pointer,U=u.event,W=u.eventTarget,de=u.pointerIndex,Ve=C.pointers[de].hold,he=xa(W),Xe={interaction:C,pointer:L,event:U,eventTarget:W,type:"hold",targets:[],path:he,node:null},Ta=0;Ta<he.length;Ta++){var tl=he[Ta];Xe.node=tl,m.fire("pointerEvents:collect-targets",Xe)}if(Xe.targets.length){for(var rl=1/0,sl=0,Cl=Xe.targets;sl<Cl.length;sl++){var _l=Cl[sl].eventable.options.holdDuration;_l<rl&&(rl=_l)}Ve.duration=rl,Ve.timeout=setTimeout(function(){vn({interaction:C,eventTarget:W,pointer:L,event:U,type:"hold"},m)},rl)}})(i,o),vn(i,o)},"interactions:up":function(i,o){Mt(i),vn(i,o),function(u,m){var C=u.interaction,L=u.pointer,U=u.event,W=u.eventTarget;C.pointerWasMoved||vn({interaction:C,eventTarget:W,pointer:L,event:U,type:"tap"},m)}(i,o)},"interactions:cancel":function(i,o){Mt(i),vn(i,o)}},PointerEvent:eo,fire:vn,collectEventTargets:ao,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function vn(i,o){var u=i.interaction,m=i.pointer,C=i.event,L=i.eventTarget,U=i.type,W=i.targets,de=W===void 0?ao(i,o):W,Ve=new eo(U,m,C,L,u,o.now());o.fire("pointerEvents:new",{pointerEvent:Ve});for(var he={interaction:u,pointer:m,event:C,eventTarget:L,targets:de,type:U,pointerEvent:Ve},Xe=0;Xe<de.length;Xe++){var Ta=de[Xe];for(var tl in Ta.props||{})Ve[tl]=Ta.props[tl];var rl=Re(Ta.eventable,Ta.node);if(Ve._subtractOrigin(rl),Ve.eventable=Ta.eventable,Ve.currentTarget=Ta.node,Ta.eventable.fire(Ve),Ve._addOrigin(rl),Ve.immediatePropagationStopped||Ve.propagationStopped&&Xe+1<de.length&&de[Xe+1].node!==Ve.currentTarget)break}if(o.fire("pointerEvents:fired",he),U==="tap"){var sl=Ve.double?vn({interaction:u,pointer:m,event:C,eventTarget:L,type:"doubletap"},o):Ve;u.prevTap=sl,u.tapTime=sl.timeStamp}return Ve}function ao(i,o){var u=i.interaction,m=i.pointer,C=i.event,L=i.eventTarget,U=i.type,W=u.getPointerIndex(m),de=u.pointers[W];if(U==="tap"&&(u.pointerWasMoved||!de||de.downTarget!==L))return[];for(var Ve=xa(L),he={interaction:u,pointer:m,event:C,eventTarget:L,type:U,path:Ve,targets:[],node:null},Xe=0;Xe<Ve.length;Xe++){var Ta=Ve[Xe];he.node=Ta,o.fire("pointerEvents:collect-targets",he)}return U==="hold"&&(he.targets=he.targets.filter(function(tl){var rl,sl;return tl.eventable.options.holdDuration===((rl=u.pointers[W])==null||(sl=rl.hold)==null?void 0:sl.duration)})),he.targets}function Mt(i){var o=i.interaction,u=i.pointerIndex,m=o.pointers[u].hold;m&&m.timeout&&(clearTimeout(m.timeout),m.timeout=null)}var qo=Object.freeze({__proto__:null,default:Yn});function Ko(i){var o=i.interaction;o.holdIntervalHandle&&(clearInterval(o.holdIntervalHandle),o.holdIntervalHandle=null)}var ct={id:"pointer-events/holdRepeat",install:function(i){i.usePlugin(Yn);var o=i.pointerEvents;o.defaults.holdRepeatInterval=0,o.types.holdrepeat=i.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce(function(i,o){return i["pointerEvents:".concat(o)]=Ko,i},{"pointerEvents:new":function(i){var o=i.pointerEvent;o.type==="hold"&&(o.count=(o.count||0)+1)},"pointerEvents:fired":function(i,o){var u=i.interaction,m=i.pointerEvent,C=i.eventTarget,L=i.targets;if(m.type==="hold"&&L.length){var U=L[0].eventable.options.holdRepeatInterval;U<=0||(u.holdIntervalHandle=setTimeout(function(){o.pointerEvents.fire({interaction:u,eventTarget:C,type:"hold",pointer:m,event:m},o)},U))}}})},Wo=ct,Yo={id:"pointer-events/interactableTargets",install:function(i){var o=i.Interactable;o.prototype.pointerEvents=function(m){return ee(this.events.options,m),this};var u=o.prototype._backCompatOption;o.prototype._backCompatOption=function(m,C){var L=u.call(this,m,C);return L===this&&(this.events.options[m]=C),L}},listeners:{"pointerEvents:collect-targets":function(i,o){var u=i.targets,m=i.node,C=i.type,L=i.eventTarget;o.interactables.forEachMatch(m,function(U){var W=U.events,de=W.options;W.types[C]&&W.types[C].length&&U.testIgnoreAllow(de,m,L)&&u.push({node:m,eventable:W,props:{interactable:U}})})},"interactable:new":function(i){var o=i.interactable;o.events.getRect=function(u){return o.getRect(u)}},"interactable:set":function(i,o){var u=i.interactable,m=i.options;ee(u.events.options,o.pointerEvents.defaults),ee(u.events.options,m.pointerEvents||{})}}},Go=Yo,Jo={id:"pointer-events",install:function(i){i.usePlugin(qo),i.usePlugin(Wo),i.usePlugin(Go)}},lo=Jo,ut={id:"reflow",install:function(i){var o=i.Interactable;i.actions.phases.reflow=!0,o.prototype.reflow=function(u){return function(m,C,L){for(var U=m.getAllElements(),W=L.window.Promise,de=W?[]:null,Ve=function(){var Xe=U[he],Ta=m.getRect(Xe);if(!Ta)return 1;var tl,rl=je(L.interactions.list,function(_l){return _l.interacting()&&_l.interactable===m&&_l.element===Xe&&_l.prepared.name===C.name});if(rl)rl.move(),de&&(tl=rl._reflowPromise||new W(function(_l){rl._reflowResolve=_l}));else{var sl=He(Ta),Cl=function(_l){return{coords:_l,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}}({page:{x:sl.x,y:sl.y},client:{x:sl.x,y:sl.y},timeStamp:L.now()});tl=function(_l,yl,jl,$l,Ol){var zl=_l.interactions.new({pointerType:"reflow"}),Lr={interaction:zl,event:Ol,pointer:Ol,eventTarget:jl,phase:"reflow"};zl.interactable=yl,zl.element=jl,zl.prevEvent=Ol,zl.updatePointer(Ol,Ol,jl,!0),oe(zl.coords.delta),Ua(zl.prepared,$l),zl._doPhase(Lr);var mr=_l.window,Fr=mr.Promise,en=Fr?new Fr(function(mn){zl._reflowResolve=mn}):void 0;return zl._reflowPromise=en,zl.start($l,yl,jl),zl._interacting?(zl.move(Lr),zl.end(Ol)):(zl.stop(),zl._reflowResolve()),zl.removePointer(Ol,Ol),en}(L,m,Xe,C,Cl)}de&&de.push(tl)},he=0;he<U.length&&!Ve();he++);return de&&W.all(de).then(function(){return m})}(this,u,i)}},listeners:{"interactions:stop":function(i,o){var u=i.interaction;u.pointerType==="reflow"&&(u._reflowResolve&&u._reflowResolve(),function(m,C){m.splice(m.indexOf(C),1)}(o.interactions.list,u))}}},Xo=ut;if(Ir.use(dn),Ir.use(cr),Ir.use(lo),Ir.use(Cn),Ir.use(Uo),Ir.use(Er),Ir.use(wa),Ir.use(Ee),Ir.use(Xo),Ir.default=Ir,s(l)==="object"&&l)try{l.exports=Ir}catch{}return Ir.default=Ir,Ir})}(Vt,Vt.exports)),Vt.exports}var P4=R4();const Es=I.getDefaultExportFromCjs(P4),No=a.defineComponent({__name:"grid-item",props:{isDraggable:{type:Boolean,default:void 0},isResizable:{type:Boolean,default:void 0},isBounded:{type:Boolean,default:void 0},static:{type:Boolean,default:!1},minH:{default:1},minW:{default:1},maxH:{default:1/0},maxW:{default:1/0},x:{},y:{},w:{},h:{},i:{},dragIgnoreFrom:{default:"a, button"},dragAllowFrom:{default:void 0},resizeIgnoreFrom:{default:"a, button"},preserveAspectRatio:{type:Boolean,default:!1},dragOption:{default:()=>({})},resizeOption:{default:()=>({})}},emits:["container-resized","resize","resized","move","moved"],setup(l,{expose:r,emit:n}){const t=l,s=n,d=a.inject(Nc),b=a.inject(Tc);if(!d)throw new Error("[grid-layout-plus]: missing layout store, GridItem must under a GridLayout.");const h=a.shallowRef(null),v=a.reactive({cols:1,containerWidth:100,rowHeight:30,margin:[10,10],maxRows:1/0,draggable:void 0,resizable:void 0,bounded:void 0,transformScale:1,useCssTransforms:!0,useStyleCursor:!0,isDragging:!1,dragging:{top:-1,left:-1},isResizing:!1,resizing:{width:-1,height:-1},style:{},rtl:!1});let y=!1,c=!1,w=NaN,S=NaN,A=NaN,_=NaN,H=-1,k=-1,T=-1,J=-1,D=t.x,$=t.y,z=t.w,x=t.h;const g=a.ref(),F=a.reactive({i:a.toRef(t,"i"),state:v,wrapper:g,calcXY:Pe});function q(ie){Ge(ie)}function G(){Ka()}function be(ie){rn(t.isDraggable)&&(v.draggable=ie)}function ze(ie){rn(t.isResizable)&&(v.resizable=ie)}function De(ie){rn(t.isBounded)&&(v.bounded=ie)}function ne(ie){v.transformScale=ie}function ke(ie){v.rowHeight=ie}function X(ie){v.maxRows=ie}function pe(){v.rtl=ws()==="rtl",Ka()}function Ke(ie){v.cols=Math.floor(ie)}d.increaseItem(F),a.onBeforeMount(()=>{v.rtl=ws()==="rtl"}),a.onMounted(()=>{d.responsive&&d.lastBreakpoint?v.cols=Ic(d.lastBreakpoint,d.cols):v.cols=d.colNum,v.rowHeight=d.rowHeight,v.containerWidth=d.width!==null?d.width:100,v.margin=d.margin!==void 0?d.margin.map(Number):[10,10],v.maxRows=d.maxRows,rn(t.isDraggable)?v.draggable=d.isDraggable:v.draggable=t.isDraggable,rn(t.isResizable)?v.resizable=d.isResizable:v.resizable=t.isResizable,rn(t.isBounded)?v.bounded=d.isBounded:v.bounded=t.isBounded,v.transformScale=d.transformScale,v.useCssTransforms=d.useCssTransforms,v.useStyleCursor=d.useStyleCursor,a.watchEffect(()=>{D=t.x,$=t.y,x=t.h,z=t.w,jr(ia)}),b.on("updateWidth",q),b.on("compact",G),b.on("setDraggable",be),b.on("setResizable",ze),b.on("setBounded",De),b.on("setTransformScale",ne),b.on("setRowHeight",ke),b.on("setMaxRows",X),b.on("directionchange",pe),b.on("setColNum",Ke)}),a.onBeforeUnmount(()=>{b.off("updateWidth",q),b.off("compact",G),b.off("setDraggable",be),b.off("setResizable",ze),b.off("setBounded",De),b.off("setTransformScale",ne),b.off("setRowHeight",ke),b.off("setMaxRows",X),b.off("directionchange",pe),b.off("setColNum",Ke),h.value&&(h.value.unset(),h.value=null),d.decreaseItem(F)}),r({state:v,wrapper:g});const Sa=typeof navigator<"u"?navigator.userAgent.toLowerCase().includes("android"):!1,te=a.computed(()=>v.resizable&&!t.static),B=a.computed(()=>d.isMirrored?!v.rtl:v.rtl),le=a.computed(()=>(v.draggable||v.resizable)&&!t.static),ye=A4("item"),se=a.computed(()=>({[ye.b()]:!0,[ye.bm("resizable")]:te.value,[ye.bm("static")]:t.static,[ye.bm("resizing")]:v.isResizing,[ye.bm("dragging")]:v.isDragging,[ye.bm("transform")]:v.useCssTransforms,[ye.bm("rtl")]:B.value,[ye.bm("no-touch")]:Sa&&le.value})),Ne=a.computed(()=>[ye.be("resizer"),B.value&&ye.bem("resizer","rtl")].filter(Boolean));a.watch(()=>t.isDraggable,ie=>{v.draggable=ie}),a.watch(()=>t.static,()=>{jr(P),jr(oe)}),a.watch(()=>v.draggable,()=>{jr(P)}),a.watch(()=>t.isResizable,ie=>{v.resizable=ie}),a.watch(()=>t.isBounded,ie=>{v.bounded=ie}),a.watch(()=>v.resizable,()=>{jr(oe)}),a.watch(()=>v.rowHeight,()=>{jr(ia),jr(xa)}),a.watch([()=>v.cols,()=>v.containerWidth],()=>{jr(oe),jr(ia),jr(xa)}),a.watch([()=>t.minH,()=>t.maxH,()=>t.minW,()=>t.maxW],()=>{jr(oe)}),a.watch(B,()=>{jr(oe),jr(ia)}),a.watch([()=>d.margin,()=>d.margin[0],()=>d.margin[1]],()=>{const ie=d.margin;!ie||ie[0]===v.margin[0]&&ie[1]===v.margin[1]||(v.margin=ie.map(Number),jr(ia),jr(xa))});function ia(){t.x+t.w>v.cols?(D=0,z=t.w>v.cols?v.cols:t.w):(D=t.x,z=t.w);const ie=ea(D,$,z,x);v.isDragging&&(ie.top=v.dragging.top,B.value?ie.right=v.dragging.left:ie.left=v.dragging.left),v.isResizing&&(ie.width=v.resizing.width,ie.height=v.resizing.height);let fa;v.useCssTransforms?B.value?fa=D4(ie.top,ie.right,ie.width,ie.height):fa=S4(ie.top,ie.left,ie.width,ie.height):B.value?fa=N4(ie.top,ie.right,ie.width,ie.height):fa=B4(ie.top,ie.left,ie.width,ie.height),v.style=fa}function xa(){const ie={};for(const fa of["width","height"]){const ra=v.style[fa].match(/^(\d+)px$/);if(!ra)return;ie[fa]=ra[1]}s("container-resized",t.i,t.h,t.w,ie.height,ie.width)}function Ha(ie){if(t.static)return;const fa=ie.type;if(fa==="resizestart"&&v.isResizing||fa!=="resizestart"&&!v.isResizing)return;const ra=xs(ie);if(rn(ra))return;const{x:Ie,y:we}=ra,Ca={width:0,height:0};let fe;switch(fa){case"resizestart":{oe(),H=z,k=x,fe=ea(D,$,z,x),Ca.width=fe.width,Ca.height=fe.height,v.resizing=Ca,v.isResizing=!0;break}case"resizemove":{!ie.edges.right&&!ie.edges.left&&(A=Ie),!ie.edges.top&&!ie.edges.bottom&&(_=we);const Je=_s(A,_,Ie,we);B.value?Ca.width=v.resizing.width-Je.deltaX/v.transformScale:Ca.width=v.resizing.width+Je.deltaX/v.transformScale,Ca.height=v.resizing.height+Je.deltaY/v.transformScale,v.resizing=Ca;break}case"resizeend":{fe=ea(D,$,z,x),Ca.width=fe.width,Ca.height=fe.height,v.resizing={width:-1,height:-1},v.isResizing=!1;break}}fe=Re(Ca.height,Ca.width),fe.w<t.minW&&(fe.w=t.minW),fe.w>t.maxW&&(fe.w=t.maxW),fe.h<t.minH&&(fe.h=t.minH),fe.h>t.maxH&&(fe.h=t.maxH),fe.h<1&&(fe.h=1),fe.w<1&&(fe.w=1),A=Ie,_=we,(z!==fe.w||x!==fe.h)&&s("resize",t.i,fe.h,fe.w,Ca.height,Ca.width),ie.type==="resizeend"&&(H!==z||k!==x)&&s("resized",t.i,fe.h,fe.w,Ca.height,Ca.width),b.emit("resizeEvent",ie.type,t.i,D,$,fe.h,fe.w)}function ee(ie){if(t.static||v.isResizing)return;const fa=ie.type;if(fa==="dragstart"&&v.isDragging||fa!=="dragstart"&&!v.isDragging)return;const ra=xs(ie);if(rn(ra))return;const{x:Ie,y:we}=ra,Ca=ie.target;if(!Ca.offsetParent)return;const fe={top:0,left:0};switch(fa){case"dragstart":{T=D,J=$;const Ze=Ca.offsetParent.getBoundingClientRect(),Fe=Ca.getBoundingClientRect(),ka=Fe.left/v.transformScale,$e=Ze.left/v.transformScale,pa=Fe.right/v.transformScale,re=Ze.right/v.transformScale,Se=Fe.top/v.transformScale,K=Ze.top/v.transformScale;B.value?fe.left=(pa-re)*-1:fe.left=ka-$e,fe.top=Se-K,v.dragging=fe,v.isDragging=!0;break}case"dragmove":{const Ze=_s(w,S,Ie,we);if(B.value?fe.left=v.dragging.left-Ze.deltaX/v.transformScale:fe.left=v.dragging.left+Ze.deltaX/v.transformScale,fe.top=v.dragging.top+Ze.deltaY/v.transformScale,v.bounded){const Fe=Ca.offsetParent.clientHeight-He(t.h,v.rowHeight,v.margin[1]);fe.top=Ae(fe.top,0,Fe);const ka=ga(),$e=v.containerWidth-He(t.w,ka,v.margin[0]);fe.left=Ae(fe.left,0,$e)}v.dragging=fe;break}case"dragend":{const Ze=Ca.offsetParent.getBoundingClientRect(),Fe=Ca.getBoundingClientRect(),ka=Fe.left/v.transformScale,$e=Ze.left/v.transformScale,pa=Fe.right/v.transformScale,re=Ze.right/v.transformScale,Se=Fe.top/v.transformScale,K=Ze.top/v.transformScale;B.value?fe.left=(pa-re)*-1:fe.left=ka-$e,fe.top=Se-K,v.dragging={top:-1,left:-1},v.isDragging=!1;break}}let Je;B.value,Je=Pe(fe.top,fe.left),w=Ie,S=we,(D!==Je.x||$!==Je.y)&&s("move",t.i,Je.x,Je.y),ie.type==="dragend"&&(T!==D||J!==$)&&s("moved",t.i,Je.x,Je.y),b.emit("dragEvent",ie.type,t.i,Je.x,Je.y,x,z)}function ea(ie,fa,ra,Ie){const we=ga();let Ca;return B.value?Ca={right:Math.round(we*ie+(ie+1)*v.margin[0]),top:Math.round(v.rowHeight*fa+(fa+1)*v.margin[1]),width:ra===1/0?ra:Math.round(we*ra+Math.max(0,ra-1)*v.margin[0]),height:Ie===1/0?Ie:Math.round(v.rowHeight*Ie+Math.max(0,Ie-1)*v.margin[1])}:Ca={left:Math.round(we*ie+(ie+1)*v.margin[0]),top:Math.round(v.rowHeight*fa+(fa+1)*v.margin[1]),width:ra===1/0?ra:Math.round(we*ra+Math.max(0,ra-1)*v.margin[0]),height:Ie===1/0?Ie:Math.round(v.rowHeight*Ie+Math.max(0,Ie-1)*v.margin[1])},Ca}function Pe(ie,fa){const ra=ga();let Ie=Math.round((fa-v.margin[0])/(ra+v.margin[0])),we=Math.round((ie-v.margin[1])/(v.rowHeight+v.margin[1]));return Ie=Math.max(Math.min(Ie,v.cols-z),0),we=Math.max(Math.min(we,v.maxRows-x),0),{x:Ie,y:we}}function ga(){return(v.containerWidth-v.margin[0]*(v.cols+1))/v.cols}function He(ie,fa,ra){return Number.isFinite(ie)?Math.round(fa*ie+Math.max(0,ie-1)*ra):ie}function Ae(ie,fa,ra){return Math.max(Math.min(ie,ra),fa)}function Re(ie,fa,ra=!1){const Ie=ga();let we=Math.round((fa+v.margin[0])/(Ie+v.margin[0])),Ca=0;return ra?Ca=Math.ceil((ie+v.margin[1])/(v.rowHeight+v.margin[1])):Ca=Math.round((ie+v.margin[1])/(v.rowHeight+v.margin[1])),we=Math.max(Math.min(we,v.cols-D),0),Ca=Math.max(Math.min(Ca,v.maxRows-$),0),{w:we,h:Ca}}function Ge(ie,fa){v.containerWidth=ie}function Ka(){ia()}function Ia(){!h.value&&g.value&&(h.value=Es(g.value),v.useStyleCursor||h.value.styleCursor(!1))}const R=gs(ee);function P(){if(Ia(),!!h.value)if(v.draggable&&!t.static){const ie={ignoreFrom:t.dragIgnoreFrom,allowFrom:t.dragAllowFrom,...t.dragOption};h.value.draggable(ie),y||(y=!0,h.value.on("dragstart dragmove dragend",fa=>{fa.type==="dragmove"?R(fa):ee(fa)}))}else h.value.draggable({enabled:!1})}const Y=gs(Ha);function oe(){if(Ia(),!!h.value)if(v.resizable&&!t.static){const ie=ea(0,0,t.maxW,t.maxH),fa=ea(0,0,t.minW,t.minH),ra={edges:{left:B.value?`.${Ne.value[0]}`:!1,right:B.value?!1:`.${Ne.value[0]}`,bottom:`.${Ne.value[0]}`,top:!1},ignoreFrom:t.resizeIgnoreFrom,restrictSize:{min:{height:fa.height*v.transformScale,width:fa.width*v.transformScale},max:{height:ie.height*v.transformScale,width:ie.width*v.transformScale}},...t.resizeOption};t.preserveAspectRatio&&(ra.modifiers=[Es.modifiers.aspectRatio({ratio:"preserve"})]),h.value.resizable(ra),c||(c=!0,h.value.on("resizestart resizemove resizeend",Ie=>{Ie.type==="resizemove"?Y(Ie):Ha(Ie)}))}else h.value.resizable({enabled:!1})}return(ie,fa)=>(a.openBlock(),a.createElementBlock("section",{ref_key:"wrapper",ref:g,class:a.normalizeClass(se.value),style:a.normalizeStyle(v.style)},[a.renderSlot(ie.$slots,"default"),te.value?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(Ne.value)},null,2)):a.createCommentVNode("",!0)],6))}}),nt=typeof window<"u";var Ss;nt&&(Ss=window==null?void 0:window.navigator)!=null&&Ss.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Ds(l){return l!=null}function Bs(){}const F4=Object.freeze({aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"});Object.freeze(new Set(Object.keys(F4)));const j4=nt&&("ontouchstart"in window||U4()>0),H4=j4?"pointerdown":"click";function U4(){return typeof navigator<"u"&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)||0}function q4(l,r,n=window.Event){const{type:t,bubbles:s=!1,cancelable:d=!1,...b}=r;if(!Ds(t)||t==="")return!1;let h;return Ds(n)?h=new n(t,{bubbles:s,cancelable:d}):(h=document.createEvent("HTMLEvents"),h.initEvent(t,s,d)),Object.assign(h,b),l.dispatchEvent(h)}const K4="clickoutside",W4=new Set;nt&&document.addEventListener(H4,l=>{const r=l.target,n=l.composedPath&&l.composedPath();W4.forEach(t=>{t!==r&&(n?!n.includes(t):!t.contains(r))&&(!t.__transferElement||t.__transferElement!==r&&!t.__transferElement.contains(r))&&q4(t,{type:K4})})},!0);const Y4=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];let yo;if(nt){for(const l of Y4)if(l[1]in document){yo=l;break}}a.computed(()=>!1);const G4=new Set,J4=new WeakMap;if(nt&&yo){const l=yo[2],r=yo[4];document.addEventListener(r,()=>{if(G4.forEach(n=>{n.value=!1}),document[l]){const n=J4.get(document[l]);n&&(n.value=!0)}},!1)}const Vc=new Map;Vc.set("x",0);Vc.set("y",0);var at=[],X4=function(){return at.some(function(l){return l.activeTargets.length>0})},Z4=function(){return at.some(function(l){return l.skippedTargets.length>0})},Ns="ResizeObserver loop completed with undelivered notifications.",Q4=function(){var l;typeof ErrorEvent=="function"?l=new ErrorEvent("error",{message:Ns}):(l=document.createEvent("Event"),l.initEvent("error",!1,!1),l.message=Ns),window.dispatchEvent(l)},Ht;(function(l){l.BORDER_BOX="border-box",l.CONTENT_BOX="content-box",l.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Ht||(Ht={}));var lt=function(l){return Object.freeze(l)},e6=function(){function l(r,n){this.inlineSize=r,this.blockSize=n,lt(this)}return l}(),$c=function(){function l(r,n,t,s){return this.x=r,this.y=n,this.width=t,this.height=s,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,lt(this)}return l.prototype.toJSON=function(){var r=this,n=r.x,t=r.y,s=r.top,d=r.right,b=r.bottom,h=r.left,v=r.width,y=r.height;return{x:n,y:t,top:s,right:d,bottom:b,left:h,width:v,height:y}},l.fromRect=function(r){return new l(r.x,r.y,r.width,r.height)},l}(),Ei=function(l){return l instanceof SVGElement&&"getBBox"in l},Rc=function(l){if(Ei(l)){var r=l.getBBox(),n=r.width,t=r.height;return!n&&!t}var s=l,d=s.offsetWidth,b=s.offsetHeight;return!(d||b||l.getClientRects().length)},Ts=function(l){var r;if(l instanceof Element)return!0;var n=(r=l==null?void 0:l.ownerDocument)===null||r===void 0?void 0:r.defaultView;return!!(n&&l instanceof n.Element)},a6=function(l){switch(l.tagName){case"INPUT":if(l.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Pt=typeof window<"u"?window:{},fo=new WeakMap,As=/auto|scroll/,l6=/^tb|vertical/,r6=/msie|trident/i.test(Pt.navigator&&Pt.navigator.userAgent),wn=function(l){return parseFloat(l||"0")},wt=function(l,r,n){return l===void 0&&(l=0),r===void 0&&(r=0),n===void 0&&(n=!1),new e6((n?r:l)||0,(n?l:r)||0)},zs=lt({devicePixelContentBoxSize:wt(),borderBoxSize:wt(),contentBoxSize:wt(),contentRect:new $c(0,0,0,0)}),Pc=function(l,r){if(r===void 0&&(r=!1),fo.has(l)&&!r)return fo.get(l);if(Rc(l))return fo.set(l,zs),zs;var n=getComputedStyle(l),t=Ei(l)&&l.ownerSVGElement&&l.getBBox(),s=!r6&&n.boxSizing==="border-box",d=l6.test(n.writingMode||""),b=!t&&As.test(n.overflowY||""),h=!t&&As.test(n.overflowX||""),v=t?0:wn(n.paddingTop),y=t?0:wn(n.paddingRight),c=t?0:wn(n.paddingBottom),w=t?0:wn(n.paddingLeft),S=t?0:wn(n.borderTopWidth),A=t?0:wn(n.borderRightWidth),_=t?0:wn(n.borderBottomWidth),H=t?0:wn(n.borderLeftWidth),k=w+y,T=v+c,J=H+A,D=S+_,$=h?l.offsetHeight-D-l.clientHeight:0,z=b?l.offsetWidth-J-l.clientWidth:0,x=s?k+J:0,g=s?T+D:0,F=t?t.width:wn(n.width)-x-z,q=t?t.height:wn(n.height)-g-$,G=F+k+z+J,be=q+T+$+D,ze=lt({devicePixelContentBoxSize:wt(Math.round(F*devicePixelRatio),Math.round(q*devicePixelRatio),d),borderBoxSize:wt(G,be,d),contentBoxSize:wt(F,q,d),contentRect:new $c(w,v,F,q)});return fo.set(l,ze),ze},Fc=function(l,r,n){var t=Pc(l,n),s=t.borderBoxSize,d=t.contentBoxSize,b=t.devicePixelContentBoxSize;switch(r){case Ht.DEVICE_PIXEL_CONTENT_BOX:return b;case Ht.BORDER_BOX:return s;default:return d}},n6=function(){function l(r){var n=Pc(r);this.target=r,this.contentRect=n.contentRect,this.borderBoxSize=lt([n.borderBoxSize]),this.contentBoxSize=lt([n.contentBoxSize]),this.devicePixelContentBoxSize=lt([n.devicePixelContentBoxSize])}return l}(),jc=function(l){if(Rc(l))return 1/0;for(var r=0,n=l.parentNode;n;)r+=1,n=n.parentNode;return r},t6=function(){var l=1/0,r=[];at.forEach(function(d){if(d.activeTargets.length!==0){var b=[];d.activeTargets.forEach(function(h){var v=new n6(h.target),y=jc(h.target);b.push(v),h.lastReportedSize=Fc(h.target,h.observedBox),y<l&&(l=y)}),r.push(function(){d.callback.call(d.observer,b,d.observer)}),d.activeTargets.splice(0,d.activeTargets.length)}});for(var n=0,t=r;n<t.length;n++){var s=t[n];s()}return l},Ms=function(l){at.forEach(function(r){r.activeTargets.splice(0,r.activeTargets.length),r.skippedTargets.splice(0,r.skippedTargets.length),r.observationTargets.forEach(function(n){n.isActive()&&(jc(n.target)>l?r.activeTargets.push(n):r.skippedTargets.push(n))})})},o6=function(){var l=0;for(Ms(l);X4();)l=t6(),Ms(l);return Z4()&&Q4(),l>0},ti,Hc=[],i6=function(){return Hc.splice(0).forEach(function(l){return l()})},s6=function(l){if(!ti){var r=0,n=document.createTextNode(""),t={characterData:!0};new MutationObserver(function(){return i6()}).observe(n,t),ti=function(){n.textContent="".concat(r?r--:r++)}}Hc.push(l),ti()},c6=function(l){s6(function(){requestAnimationFrame(l)})},go=0,u6=function(){return!!go},d6=250,p6={attributes:!0,characterData:!0,childList:!0,subtree:!0},Os=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Is=function(l){return l===void 0&&(l=0),Date.now()+l},oi=!1,f6=function(){function l(){var r=this;this.stopped=!0,this.listener=function(){return r.schedule()}}return l.prototype.run=function(r){var n=this;if(r===void 0&&(r=d6),!oi){oi=!0;var t=Is(r);c6(function(){var s=!1;try{s=o6()}finally{if(oi=!1,r=t-Is(),!u6())return;s?n.run(1e3):r>0?n.run(r):n.start()}})}},l.prototype.schedule=function(){this.stop(),this.run()},l.prototype.observe=function(){var r=this,n=function(){return r.observer&&r.observer.observe(document.body,p6)};document.body?n():Pt.addEventListener("DOMContentLoaded",n)},l.prototype.start=function(){var r=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Os.forEach(function(n){return Pt.addEventListener(n,r.listener,!0)}))},l.prototype.stop=function(){var r=this;this.stopped||(this.observer&&this.observer.disconnect(),Os.forEach(function(n){return Pt.removeEventListener(n,r.listener,!0)}),this.stopped=!0)},l}(),ki=new f6,Ls=function(l){!go&&l>0&&ki.start(),go+=l,!go&&ki.stop()},h6=function(l){return!Ei(l)&&!a6(l)&&getComputedStyle(l).display==="inline"},v6=function(){function l(r,n){this.target=r,this.observedBox=n||Ht.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return l.prototype.isActive=function(){var r=Fc(this.target,this.observedBox,!0);return h6(this.target)&&(this.lastReportedSize=r),this.lastReportedSize.inlineSize!==r.inlineSize||this.lastReportedSize.blockSize!==r.blockSize},l}(),m6=function(){function l(r,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=r,this.callback=n}return l}(),ho=new WeakMap,Vs=function(l,r){for(var n=0;n<l.length;n+=1)if(l[n].target===r)return n;return-1},vo=function(){function l(){}return l.connect=function(r,n){var t=new m6(r,n);ho.set(r,t)},l.observe=function(r,n,t){var s=ho.get(r),d=s.observationTargets.length===0;Vs(s.observationTargets,n)<0&&(d&&at.push(s),s.observationTargets.push(new v6(n,t&&t.box)),Ls(1),ki.schedule())},l.unobserve=function(r,n){var t=ho.get(r),s=Vs(t.observationTargets,n),d=t.observationTargets.length===1;s>=0&&(d&&at.splice(at.indexOf(t),1),t.observationTargets.splice(s,1),Ls(-1))},l.disconnect=function(r){var n=this,t=ho.get(r);t.observationTargets.slice().forEach(function(s){return n.unobserve(r,s.target)}),t.activeTargets.splice(0,t.activeTargets.length)},l}(),y6=function(){function l(r){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof r!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");vo.connect(this,r)}return l.prototype.observe=function(r,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ts(r))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");vo.observe(this,r,n)},l.prototype.unobserve=function(r){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ts(r))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");vo.unobserve(this,r)},l.prototype.disconnect=function(){vo.disconnect(this)},l.toString=function(){return"function ResizeObserver () { [polyfill code] }"},l}();const To=new WeakMap;function g6(l){var r;for(let n=0,t=l.length;n<t;++n){const s=l[n],d=To.get(s.target);if(typeof d=="function"){const{inlineSize:b,blockSize:h}=((r=s.borderBoxSize)==null?void 0:r[0])??{},{offsetWidth:v,offsetHeight:y}=s.target;d(Object.assign(s,{offsetWidth:v,offsetHeight:y,width:b??v,height:h??y}))}}}const Uc=new(nt&&window.ResizeObserver||y6)(g6);function $s(l,r){To.set(l,r),Uc.observe(l)}function Rs(l){To.has(l)&&(Uc.unobserve(l),To.delete(l))}function b6(l={}){let r=Bs;const n=a.watch(()=>a.unref(l.target),s=>{r(),!(!s||typeof l.onResize!="function")&&($s(s,l.onResize),r=()=>{Rs(s),r=Bs})},{immediate:!0}),t=()=>{n(),r()};return a.getCurrentScope()&&a.onScopeDispose(t),{observeResize:$s,unobserveResize:Rs,unobserve:t}}const k6=a.ref(!1);a.computed(()=>k6.value);const Ps="__theme_style__",ii="__theme_observer__",Fs=a.reactive(new Map),js=new Map;a.watch(Fs,()=>{if(!nt)return;js.clear();const l=document.head.querySelector(`#${Ps}`);l&&document.head.removeChild(l);const r=document.createElement("style");let n=`.${ii} { width: 1px }`,t=1;for(const[s,[d,b]]of Fs.entries())n+=` html.${d} .${ii}, .${b} .${ii} { width: ${++t}px }`,js.set(t,s);r.textContent=n,r.id=Ps,document.head.appendChild(r)});const qc=a.defineComponent({__name:"grid-layout",props:{autoSize:{type:Boolean,default:!0},colNum:{default:12},rowHeight:{default:150},maxRows:{default:1/0},margin:{default:()=>[10,10]},isDraggable:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!0},isMirrored:{type:Boolean,default:!1},isBounded:{type:Boolean,default:!1},useCssTransforms:{type:Boolean,default:!0},verticalCompact:{type:Boolean,default:!0},restoreOnDrag:{type:Boolean,default:!1},layout:{},responsive:{type:Boolean,default:!1},responsiveLayouts:{default:()=>({})},transformScale:{default:1},breakpoints:{default:()=>({lg:1200,md:996,sm:768,xs:480,xxs:0})},cols:{default:()=>({lg:12,md:10,sm:6,xs:4,xxs:2})},preventCollision:{type:Boolean,default:!1},useStyleCursor:{type:Boolean,default:!0}},emits:["layout-before-mount","layout-mounted","layout-updated","breakpoint-changed","update:layout","layout-ready"],setup(l,{expose:r,emit:n}){const t=l,s=n,d=a.reactive({width:-1,mergedStyle:{},lastLayoutLength:0,isDragging:!1,placeholder:{x:0,y:0,w:0,h:0,i:""},layouts:{},lastBreakpoint:null,originalLayout:null}),b=new Map,h=a.ref(t.layout),v=a.ref(),{observeResize:y,unobserveResize:c}=b6(),w=b4();w.on("resizeEvent",S),w.on("dragEvent",A),a.onBeforeMount(()=>{s("layout-before-mount",h.value)}),a.onMounted(()=>{s("layout-mounted",h.value),a.nextTick(()=>{T4(h.value),d.originalLayout=h.value,a.nextTick(()=>{q(),v.value&&y(v.value,k4(D,16)),bt(h.value,t.verticalCompact),s("layout-updated",h.value),J(),D()})})}),a.onBeforeUnmount(()=>{w.clearAll(),v.value&&c(v.value)});function S(be,ze,De,ne,ke,X){g(be,ze,De,ne,ke,X)}function A(be,ze,De,ne,ke,X){x(be,ze,De,ne,ke,X)}a.watch(()=>d.width,(be,ze)=>{a.nextTick(()=>{w.emit("updateWidth",be),ze===-1&&a.nextTick(()=>{s("layout-ready",h.value)}),J()})}),a.watch(()=>[t.layout,t.layout.length],()=>{h.value=t.layout,T()}),a.watch(()=>t.colNum,be=>{w.emit("setColNum",be)}),a.watch(()=>t.rowHeight,be=>{w.emit("setRowHeight",be)}),a.watch(()=>t.isDraggable,be=>{w.emit("setDraggable",be)}),a.watch(()=>t.isResizable,be=>{w.emit("setResizable",be)}),a.watch(()=>t.isBounded,be=>{w.emit("setBounded",be)}),a.watch(()=>t.transformScale,be=>{w.emit("setTransformScale",be)}),a.watch(()=>t.responsive,be=>{be||(s("update:layout",d.originalLayout),w.emit("setColNum",t.colNum)),D()}),a.watch(()=>t.maxRows,be=>{w.emit("setMaxRows",be)}),a.watch([()=>t.margin,()=>t.margin[1]],J),a.provide(Nc,a.reactive({...a.toRefs(t),...a.toRefs(d),increaseItem:_,decreaseItem:H})),a.provide(Tc,w),r({state:d,getItem:k,resizeEvent:g,dragEvent:x,layoutUpdate:T});function _(be){b.set(be.i,be)}function H(be){b.delete(be.i)}function k(be){return b.get(be)}function T(){if(!rn(h.value)&&!rn(d.originalLayout)){if(h.value.length!==d.originalLayout.length){const be=G(h.value,d.originalLayout);if(be.length>0)if(h.value.length>d.originalLayout.length)d.originalLayout=d.originalLayout.concat(be);else{const ze=new Set(be.map(De=>De.i));d.originalLayout=d.originalLayout.filter(De=>!ze.has(De.i))}d.lastLayoutLength=h.value.length,q()}bt(h.value,t.verticalCompact),w.emit("updateWidth",d.width),J(),s("layout-updated",h.value)}}function J(){d.mergedStyle={height:$()}}function D(){v.value&&(d.width=v.value.offsetWidth),w.emit("resizeEvent")}function $(){if(!t.autoSize)return;const be=parseFloat(t.margin[1]);return _4(h.value)*(t.rowHeight+be)+be+"px"}let z;function x(be,ze,De,ne,ke,X){let pe=bs(h.value,ze);rn(pe)&&(pe={h:0,w:0,x:0,y:0,i:""}),be==="dragstart"&&!t.verticalCompact&&(z=h.value.reduce((Ke,{i:Sa,x:te,y:B})=>({...Ke,[Sa]:{x:te,y:B}}),{})),be==="dragmove"||be==="dragstart"?(d.placeholder.i=ze,d.placeholder.x=pe.x,d.placeholder.y=pe.y,d.placeholder.w=X,d.placeholder.h=ke,a.nextTick(()=>{d.isDragging=!0}),w.emit("updateWidth",d.width)):a.nextTick(()=>{d.isDragging=!1}),h.value=bi(h.value,pe,De,ne,!0,t.preventCollision),t.restoreOnDrag?(pe.static=!0,bt(h.value,t.verticalCompact,z),pe.static=!1):bt(h.value,t.verticalCompact),w.emit("compact"),J(),be==="dragend"&&(z=void 0,s("layout-updated",h.value))}function g(be,ze,De,ne,ke,X){let pe=bs(h.value,ze);rn(pe)&&(pe={h:0,w:0,x:0,y:0,i:""});let Ke;if(t.preventCollision){const Sa=zc(h.value,{...pe,w:X,h:ke}).filter(te=>te.i!==pe.i);if(Ke=Sa.length>0,Ke){let te=1/0,B=1/0;Sa.forEach(le=>{le.x>pe.x&&(te=Math.min(te,le.x)),le.y>pe.y&&(B=Math.min(B,le.y))}),Number.isFinite(te)&&(pe.w=te-pe.x),Number.isFinite(B)&&(pe.h=B-pe.y)}}Ke||(pe.w=X,pe.h=ke),be==="resizestart"||be==="resizemove"?(d.placeholder.i=ze,d.placeholder.x=De,d.placeholder.y=ne,d.placeholder.w=pe.w,d.placeholder.h=pe.h,a.nextTick(()=>{d.isDragging=!0}),w.emit("updateWidth",d.width)):be&&a.nextTick(()=>{d.isDragging=!1}),t.responsive&&F(),bt(h.value,t.verticalCompact),w.emit("compact"),J(),be==="resizeend"&&s("layout-updated",h.value)}function F(){const be=O4(t.breakpoints,d.width);if(be===d.lastBreakpoint)return;const ze=Ic(be,t.cols);!rn(d.lastBreakpoint)&&!d.layouts[d.lastBreakpoint]&&(d.layouts[d.lastBreakpoint]=gi(h.value));const De=I4(d.originalLayout,d.layouts,t.breakpoints,be,d.lastBreakpoint,ze,t.verticalCompact);d.layouts[be]=De,d.lastBreakpoint!==be&&s("breakpoint-changed",be,De),h.value=De,s("update:layout",De),d.lastBreakpoint=be,w.emit("setColNum",ze)}function q(){d.layouts=Object.assign({},t.responsiveLayouts)}function G(be,ze){const De=new Set(ze.map(pe=>pe.i)),ne=new Set(be.map(pe=>pe.i)),ke=be.filter(pe=>!De.has(pe.i)),X=ze.filter(pe=>!ne.has(pe.i));return ke.concat(X)}return(be,ze)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"wrapper",ref:v,class:"vgl-layout",style:a.normalizeStyle(d.mergedStyle)},[be.$slots.default?a.renderSlot(be.$slots,"default",{key:0}):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(h.value,De=>(a.openBlock(),a.createBlock(No,a.mergeProps({key:De.i,ref_for:!0},De),{default:a.withCtx(()=>[a.renderSlot(be.$slots,"item",{item:De})]),_:2},1040))),128)),a.withDirectives(a.createVNode(No,{class:"vgl-item--placeholder",x:d.placeholder.x,y:d.placeholder.y,w:d.placeholder.w,h:d.placeholder.h,i:d.placeholder.i},null,8,["x","y","w","h","i"]),[[a.vShow,d.isDragging]])],4))}});(function(){try{if(typeof document<"u"){var l=document.createElement("style");l.appendChild(document.createTextNode('.vgl-layout{--vgl-placeholder-bg: red;--vgl-placeholder-opacity: 20%;--vgl-placeholder-z-index: 2;--vgl-item-resizing-z-index: 3;--vgl-item-resizing-opacity: 60%;--vgl-item-dragging-z-index: 3;--vgl-item-dragging-opacity: 100%;--vgl-resizer-size: 10px;--vgl-resizer-border-color: #444;--vgl-resizer-border-width: 2px;position:relative;box-sizing:border-box;transition:height .2s ease}.vgl-item{position:absolute;box-sizing:border-box;transition:.2s ease;transition-property:left,top,right}.vgl-item--placeholder{z-index:var(--vgl-placeholder-z-index, 2);-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:var(--vgl-placeholder-bg, red);opacity:var(--vgl-placeholder-opacity, 20%);transition-duration:.1s}.vgl-item--no-touch{touch-action:none}.vgl-item--transform{right:auto;left:0;transition-property:transform}.vgl-item--transform.vgl-item--rtl{right:0;left:auto}.vgl-item--resizing{z-index:var(--vgl-item-resizing-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-resizing-opacity, 60%)}.vgl-item--dragging{z-index:var(--vgl-item-dragging-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-dragging-opacity, 100%);transition:none}.vgl-item__resizer{position:absolute;right:0;bottom:0;box-sizing:border-box;width:var(--vgl-resizer-size);height:var(--vgl-resizer-size);cursor:se-resize}.vgl-item__resizer:before{position:absolute;top:0;right:3px;bottom:3px;left:0;content:"";border:0 solid var(--vgl-resizer-border-color);border-right-width:var(--vgl-resizer-border-width);border-bottom-width:var(--vgl-resizer-border-width)}.vgl-item__resizer--rtl{right:auto;left:0;cursor:sw-resize}.vgl-item__resizer--rtl:before{top:0;right:0;bottom:3px;left:3px;border-right-width:0;border-bottom-width:var(--vgl-resizer-border-width);border-left-width:var(--vgl-resizer-border-width)}')),document.head.appendChild(l)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();const x6={key:0,class:"item-view-group"},_6={key:0,class:"item-view-group"},w6=a.defineComponent({__name:"index",props:{children:{type:Object,default:()=>{}},level:{type:Number,default:1}},emits:["rowClick","routeUrl","radioChange"],setup(l,{emit:r}){const n=I.useModelComp(I.pinia),{isEdit:t}=I.storeToRefs(n),s=r,d=l,b=a.computed(()=>d==null?void 0:d.children),h=a.computed(()=>{var _,H,k,T;return((_=d==null?void 0:d.children)==null?void 0:_.length)>0&&((H=d==null?void 0:d.children)!=null&&H.every(J=>J==null?void 0:J.layout))?(T=(k=d==null?void 0:d.children)==null?void 0:k[0])==null?void 0:T.layout:"vertical"}),v=_=>{s("radioChange",_)},y=a.computed(()=>{var _,H;return((H=(_=d==null?void 0:d.children)==null?void 0:_[0])==null?void 0:H.isGridLayout)||!1}),c=a.ref((d==null?void 0:d.level)+1),w=a.computed(()=>{if(!(d!=null&&d.children)||!Array.isArray(d.children)||d.children.length<2)return!1;const _=d.children.some(k=>(k==null?void 0:k.name)==="测量系统配置表"&&(k==null?void 0:k.comp)==="ParentItem"),H=d.children.some(k=>(k==null?void 0:k.name)==="测量系统传递表"&&(k==null?void 0:k.comp)==="ParentItem");return _&&H});a.watch(()=>d==null?void 0:d.children,()=>{w.value},{deep:!0});const S=_=>{s("rowClick",_)},A=(_,H)=>{s("routeUrl",_,H)};return(_,H)=>y.value?(a.openBlock(),a.createBlock(a.unref(qc),{key:0,layout:b.value,"onUpdate:layout":H[0]||(H[0]=k=>b.value=k),"is-draggable":a.unref(t)==="edit","is-resizable":a.unref(t)==="edit","col-num":24,margin:[8,16]},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(b.value,(k,T)=>(a.openBlock(),a.createBlock(a.unref(No),{key:k.i,x:k.x,y:k.y,"min-h":k.minH,"max-h":k.maxH,"min-w":k.minW,w:k.w,h:k.h,i:k.i},{default:a.withCtx(()=>{var J,D,$,z,x,g,F,q,G,be,ze,De,ne,ke;return[a.createElementVNode("div",{style:a.normalizeStyle({gap:"16px",display:"flex",flexDirection:"column",paddingBottom:T===((J=d==null?void 0:d.children)==null?void 0:J.length)-1?"0px":"24px"})},[(($=(D=k==null?void 0:k.component)==null?void 0:D.comp)==null?void 0:$.toUpperCase())!=="TABLE"&&((z=k==null?void 0:k.component)!=null&&z.name)?(a.openBlock(),a.createElementBlock("div",x6,[a.createElementVNode("div",{class:"group-name-wrap",style:a.normalizeStyle({paddingLeft:(parseInt(c.value.toString())-1)*12+"px",fontWeight:600-(c.value-1)*100>=400?600-(c.value-1)*100:400,fontSize:17-c.value>=14?17-c.value+"px":"14px"})},a.toDisplayString((x=k==null?void 0:k.component)==null?void 0:x.name),5)])):a.createCommentVNode("",!0),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(jt)((g=k==null?void 0:k.component)==null?void 0:g.comp)),{pageLayout:h.value,config:{showIndex:(F=a.unref(Xl)[T])==null?void 0:F.showIndex,allowMove:(q=a.unref(Xl)[T])==null?void 0:q.allowMove,viewport:(G=a.unref(Xl)[T])==null?void 0:G.viewport,status:(be=a.unref(Xl)[T])==null?void 0:be.status},related:k==null?void 0:k.relatedTables,compName:k==null?void 0:k.component.name,compNames:a.unref(uc),itemData:(ze=k==null?void 0:k.component)==null?void 0:ze.compData,childItemData:(De=k==null?void 0:k.component)==null?void 0:De.itemChildData,key:a.unref($n),cacheNewData:a.unref(cc),onChange:a.unref(Eo),index:(k==null?void 0:k.id)??T,onContentChange:a.unref(So),onPageChange:a.unref(Do),parentTableId:(ne=k==null?void 0:k.component)==null?void 0:ne.tableId,allMapContents:a.unref(mi),children:(ke=k==null?void 0:k.component)==null?void 0:ke.children,level:c.value,onRowClick:S,onRouteUrl:A,onClickTrigger:a.unref(dc),onClickMainKey:a.unref(pc)},null,40,["pageLayout","config","related","compName","compNames","itemData","childItemData","cacheNewData","onChange","index","onContentChange","onPageChange","parentTableId","allMapContents","children","level","onClickTrigger","onClickMainKey"]))],4)]}),_:2},1032,["x","y","min-h","max-h","min-w","w","h","i"]))),128))]),_:1},8,["layout","is-draggable","is-resizable"])):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(d==null?void 0:d.children,(k,T)=>{var J,D;return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle({gap:"16px",display:(k==null?void 0:k.isShow)===!1?"none":"flex",flexDirection:"column",paddingBottom:parseInt(T)===((J=d==null?void 0:d.children)==null?void 0:J.length)-1?"0px":"24px"})},[((D=k==null?void 0:k.comp)==null?void 0:D.toUpperCase())!=="TABLE"&&k.name?(a.openBlock(),a.createElementBlock("div",_6,[a.createElementVNode("div",{class:"group-name-wrap",style:a.normalizeStyle({paddingLeft:parseInt(c.value.toString())>1?"12px":"0px",fontWeight:600-(c.value-1)*100>=400?600-(c.value-1)*100:400,fontSize:17-c.value>=14?17-c.value+"px":"14px"})},a.toDisplayString(k.name),5)])):a.createCommentVNode("",!0),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(jt)(k.comp)),{compName:k.name,config:{showIndex:k==null?void 0:k.showIndex,allowMove:k==null?void 0:k.allowMove,viewport:k==null?void 0:k.viewport,status:k==null?void 0:k.status},itemData:k==null?void 0:k.compData,related:k==null?void 0:k.relatedTables,childItemData:k==null?void 0:k.itemChildData,key:a.unref($n),onChange:a.unref(Eo),index:(k==null?void 0:k.id)??T,onContentChange:a.unref(So),onPageChange:a.unref(Do),parentTableId:k==null?void 0:k.tableId,allMapContents:a.unref(mi),children:k==null?void 0:k.children,level:c.value,onRowClick:S,onRouteUrl:A,onRadioChange:v},null,40,["compName","config","itemData","related","childItemData","onChange","index","onContentChange","onPageChange","parentTableId","allMapContents","children","level"]))],4)}),256))}}),C6=ql._export_sfc(w6,[["__scopeId","data-v-ed72c7ff"]]),E6={class:"radio-group-container"},S6=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},emits:["radioChange"],setup(l,{emit:r}){const n=l,t=r,s=a.ref(),d=rt(I.pinia),{selectTab:b}=I.storeToRefs(d);a.watch(()=>n==null?void 0:n.itemData,()=>{s.value=b.value},{immediate:!0,deep:!0});const h=v=>{s.value=v,t("radioChange",s.value)};return(v,y)=>(a.openBlock(),a.createElementBlock("div",E6,[a.createVNode(pl.ssRadio,{modelValue:s.value,"onUpdate:modelValue":y[0]||(y[0]=c=>s.value=c),content:n==null?void 0:n.itemData,onChange:h},null,8,["modelValue","content"])]))}}),D6=ql._export_sfc(S6,[["__scopeId","data-v-ed48c2f8"]]),Kc=a.ref([{name:"表格",type:"table",comp:"Table",icon:"Table"},{name:"表单",type:"form",comp:"Form",icon:"Form"},{name:"折叠",type:"fold",comp:"Fold",icon:"Fold"},{name:"头像",type:"avatar",comp:"AvatarUpload",icon:"Avatar"},{name:"签名",type:"signature",comp:"Signature",icon:"Signature"},{name:"步骤条",type:"step",comp:"Step",icon:"Step"},{name:"时间线",type:"timeLine",comp:"TimeLine",icon:"TimeLine"},{name:"标签页",type:"tabs",comp:"Tabs",icon:"Tabs"},{name:"图表",type:"chart",comp:"Chart",icon:"chart-new"},{name:"行内布局",type:"layout",comp:"Layout",icon:"ai13"}]),B6={TABLE:mc,FORM:hs,STATICFORM:yc,TABLEOPERATE:x1,TABLESTYLE:V1,TABLEEXTEND:R1,TABLEINTERACTION:j1,FORMOPERATE:vs,FOLD:g2,CALCULATOR:C2,METHODBUTTON:D2,AVATARUPLOAD:Ji.ssAvatar,SIGNATURE:Ji.ssSignature,FORMTOP:hs,STEP:R2,STEPOPERATE:c2,TIMELINE:q2,TIMELINEOPERATE:v2,FORMTOPOPERATE:vs,SIGNATUREOPERATE:L2,AVATARUPLOADOPERATE:T2,TABS:Y2,TABSOPERATE:Mh,CHART:Wh,CHARTOPERATE:n4,LAYOUT:i4,LAYOUTOPERATE:m4,PARENTITEM:C6,RADIO:D6};function St(l){return B6[l==null?void 0:l.toUpperCase()]||null}exports.De=qc;exports.activeStepInfo=kt;exports.addContents=Ft;exports.addVisibleDialog=wi;exports.affixItems=Jf;exports.allMapContents=mi;exports.analyzeFilter=xt;exports.analyzeForm=Nd;exports.analyzeQuoteForm=Bd;exports.analyzeTable=Ad;exports.cacheNewData=cc;exports.clickMainKey=pc;exports.clickSavePage=Gf;exports.clickStep=hc;exports.clickTrigger=dc;exports.compId=$n;exports.compNames=uc;exports.compShow=Et;exports.createRobotContent=lc;exports.existLayouts=n0;exports.fixChangeValue=wo;exports.generateLayouts=M1;exports.getComponent=St;exports.getComponents=jt;exports.getPageData=Pr;exports.getSliceContLength=c0;exports.gridRowHeight=B1;exports.isStepLayout=vc;exports.onBack=Wf;exports.onButtonChange=e0;exports.onChange=Eo;exports.onClick=Yf;exports.onContentChange=So;exports.onExtendTaskEnd=r0;exports.onOk=a0;exports.onPageBack=o0;exports.onPageChange=Do;exports.onSelectFixContent=Kf;exports.renderShowItems=ic;exports.robotFile=_f;exports.showItems=Xl;exports.sliceTableLength=sc;exports.slotContent=Kc;exports.ssTable=mc;exports.st=No;exports.stepItems=u0;exports.tabChange=t0;exports.toolBar=l0;exports.useFormComp=xi;exports.useModelLoader=Wp;exports.verifyButton=i0;
25
+ ${ir}`,duration:5e3,showClose:!0})}else ll.ElMessage.success("导出成功")}else ll.ElMessage.error(((Wa=Ll==null?void 0:Ll.data)==null?void 0:Wa.message)||"导出失败")}catch(ce){console.error("导出paraform失败:",ce),ll.ElMessage.error("导出失败:"+((ce==null?void 0:ce.message)||"未知错误"))}finally{ta.close()}}else if(p!=null&&p.includes("导出")&&p!=="导出paraform"){if(p==="导出选中"&&((sa=ar.value)==null?void 0:sa.length)===0)return ll.ElMessage.warning(`请先勾选${p}的数据`);if(p==="导出全部"&&((Ra=we.value)==null?void 0:Ra.length)===0)return ll.ElMessage.warning("暂无数据导出");let ta=["序号",...(ge=(Na=De.value)==null?void 0:Na.map(xe=>xe==null?void 0:xe.prop))==null?void 0:ge.filter(xe=>xe!=="操作")],ce=p==="导出全部"?we.value:ar.value;const E=["id","sort","tableEditType","create_time","update_time","source_table","create_user_id","update_user_id","department_id","relatedId"];ce=ce==null?void 0:ce.map(xe=>Object.fromEntries(Object.entries(xe).filter(([Qe])=>!E.includes(Qe)))),ta=["序号",...ta],ce=ce==null?void 0:ce.map((xe,Qe)=>({序号:Qe+1,...xe}));let Oe=(c==null?void 0:c.compName)||"表格信息";Lo(ce,Oe,ta,Oe)}else if(p==="OCR识别")il.value=!0,wa.value=[],ue.value=1,Fa.value.clear(),ja.value.clear(),Ee.value=0;else if(p==="迁移")o.selectRow=f,o.show=!0;else if(p==="生成方法"){let ta=await wf(f),ce;f!==""?ce=[f]:ce=I.cloneDeep(we.value),ce=ce==null?void 0:ce.map(Oe=>(Oe.输出值=ta,Oe));const E={fixContent:ce,buttonName:"编辑",relatedContents:c==null?void 0:c.related,columns:De.value,name:c==null?void 0:c.compName};ze("change",E)}else if(((ba=M==null?void 0:M.extra)==null?void 0:ba.type)==="methodButton"){let ta;f!==""?ta=[f]:ta=I.cloneDeep(we.value);const E={fixContent:await di(ta,De==null?void 0:De.value,"Manual",we.value),buttonName:"methodButton",relatedContents:c==null?void 0:c.related,columns:De.value,name:c==null?void 0:c.compName};ze("change",E)}}},Wc=async(p,f)=>{var M,O,$,N,Q,ae,j,me,Ce,Le,Me,Ue,aa,Va,Da,la,Wa,sa,Ra,Na;try{let ge,ba;const ta=(M=oe.value[ga.value+x])==null?void 0:M.filter(Oa=>{var dl;return((dl=Oa==null?void 0:Oa.key)==null?void 0:dl.type)==="structureMethod"}),ce=(O=oe.value[ga.value+x])==null?void 0:O.filter(Oa=>{var dl;return((dl=Oa==null?void 0:Oa.key)==null?void 0:dl.type)==="structure"}),E=ta==null?void 0:ta.find(Oa=>{var dl,Za;return((Za=(dl=Oa==null?void 0:Oa.value)==null?void 0:dl.pageData)==null?void 0:Za.method)==="保存"});if(!E)return;const Oe=(ae=(Q=oe.value[(N=($=E==null?void 0:E.value)==null?void 0:$.pageData)==null?void 0:N.path])==null?void 0:Q.filter(Oa=>{var dl;return((dl=Oa==null?void 0:Oa.key)==null?void 0:dl.type)==="data"}))==null?void 0:ae.find(Oa=>{var dl,Za,gl,bl;return((Za=(dl=Oa==null?void 0:Oa.value)==null?void 0:dl.tableData)==null?void 0:Za.算法名称)===((bl=(gl=E==null?void 0:E.value)==null?void 0:gl.pageData)==null?void 0:bl.method)});if(!Oe)return;const xe={buttonName:(me=(j=E==null?void 0:E.value)==null?void 0:j.pageData)==null?void 0:me.method,api:(Le=(Ce=Oe==null?void 0:Oe.value)==null?void 0:Ce.tableData)==null?void 0:Le.算法体,content:ce==null?void 0:ce.map(Oa=>{var dl;return(dl=Oa==null?void 0:Oa.value)==null?void 0:dl.pageData}),extraContent:[],extraValues:(Ue=(Me=E==null?void 0:E.value)==null?void 0:Me.pageData)==null?void 0:Ue.data,methodName:(Va=(aa=E==null?void 0:E.value)==null?void 0:aa.pageData)==null?void 0:Va.path};if(!p)return;const Qe={...p,compData:(Da=p==null?void 0:p.compData)==null?void 0:Da.map(Oa=>{var dl;return(Oa==null?void 0:Oa.key)==="formContent"?{...Oa,contents:(dl=Oa==null?void 0:Oa.contents)==null?void 0:dl.map(Za=>(Za==null?void 0:Za.prop)===f?{...Za,value:""}:Za)}:Oa})},ca={key:{pageKey:ga.value+x,parentTable:"",systemKey:sessionStorage.getItem("systemKey"),type:"structure"},value:{pageData:Qe}},ha=await ll.axios.post(xe.api,ca,{headers:{"Content-Type":"application/json"}});return((la=ha==null?void 0:ha.data)==null?void 0:la.code)===200&&(ge=(sa=(Wa=ha==null?void 0:ha.data)==null?void 0:Wa.result)==null?void 0:sa.latestReportCode,ba=(Na=(Ra=ha==null?void 0:ha.data)==null?void 0:Ra.result)==null?void 0:Na.status),{newMainKeyValue:ge,newStatus:ba}}catch(ge){throw ll.ElMessage.error(ge),new Error(ge)}},Si=a.reactive({prop:"状态",value:""});a.ref(["系统自动生成信息","审批意见"]);const Yc=async(p,f,M)=>{var j,me;let O=p==null?void 0:p[f==null?void 0:f.prop],$=1,N,Q;const ae=I.cloneDeep(ga).value+x+O;if(ae){Si.value="",N=(j=oe.value[ae])==null?void 0:j.filter(Me=>{var Ue;return((Ue=Me==null?void 0:Me.key)==null?void 0:Ue.type)==="structure"});const Ce=N==null?void 0:N.find(Me=>{var Ue,aa,Va;return((Va=(aa=(Ue=Me==null?void 0:Me.value)==null?void 0:Ue.pageData)==null?void 0:aa.comp)==null?void 0:Va.toUpperCase())==="FORM"});Q={...(me=Ce==null?void 0:Ce.value)==null?void 0:me.pageData,id:Ce==null?void 0:Ce.id};const Le=await Wc(Q,f==null?void 0:f.prop);if(Si.value=Le==null?void 0:Le.newStatus,Le!=null&&Le.newMainKeyValue)return Le==null?void 0:Le.newMainKeyValue}if(we.value.some(Ce=>(Ce==null?void 0:Ce[f==null?void 0:f.prop])===O)){const Ce=O;for(;we.value.some(Le=>(Le==null?void 0:Le[f==null?void 0:f.prop])===`${Ce}(${$})`);)$++;O=`${Ce}(${$})`}return O},Gc=async(p,f,M)=>{var N,Q,ae,j;let O,$;if(await Yc(M==null?void 0:M.data,M==null?void 0:M.firstCol),O=I.cloneDeep(ga).value+x,$=I.cloneDeep(O)+`loading${((N=Vl.value)==null?void 0:N.account)||((Q=Vl.value)==null?void 0:Q.账号)}`,f){const me=(j=(ae=oe.value[$])==null?void 0:ae.filter(Ce=>{var Le;return((Le=Ce==null?void 0:Ce.key)==null?void 0:Le.parentTable)===""}))==null?void 0:j.map(Ce=>{var Le;return{id:Ce==null?void 0:Ce.id,...(Le=Ce==null?void 0:Ce.value)==null?void 0:Le.pageData}});(me==null?void 0:me.length)>0||await na.loadingConstruct(O,$,null,null,null),Ge.setRouteToChildPath(I.cloneDeep(ga).value),ea.setActiveMenuPath($)}else Ge.setRouteToChildPath(I.cloneDeep(ga).value),ea.setActiveMenuPath($)},Jc=()=>{Ke.value=!1,Ye.value=[],Sa.value=!1},Ot=p=>{var N,Q,ae,j,me,Ce,Le,Me,Ue,aa,Va,Da,la,Wa,sa,Ra,Na,ge,ba,ta,ce;const f=[];pe.value=I.cloneDeep(De.value),(Q=na.getColumnChild((N=I.cloneDeep(De.value))==null?void 0:N.filter(E=>(E==null?void 0:E.label)!=="操作")))==null||Q.forEach((E,Oe)=>{var xe,Qe,ca;E!=null&&E.formType&&((xe=E==null?void 0:E.formType)==null?void 0:xe.toUpperCase())==="SELECT"||E!=null&&E.menuId?f.push({label:(Qe=E==null?void 0:E.prop)!=null&&Qe.includes(".")?E==null?void 0:E.prop:(E==null?void 0:E.label)??(E==null?void 0:E.prop)??"",name:(E==null?void 0:E.prop)??"t"+Oe,prop:E==null?void 0:E.prop,type:"Select",value:(p==null?void 0:p[E==null?void 0:E.prop])??(E==null?void 0:E.value)??"",id:(E==null?void 0:E.id)??Oe,contents:(E==null?void 0:E.options)??[],width:1,isFormColHidden:E==null?void 0:E.isFormColHidden,relatedValueId:E==null?void 0:E.relatedValueId,disabled:E==null?void 0:E.disabled,menus:E==null?void 0:E.menus,groups:E==null?void 0:E.groups,words:E==null?void 0:E.words,allSelectionContents:(E==null?void 0:E.allSelectionContents)??[],filterContent:E==null?void 0:E.filterContent,disabled:(E==null?void 0:E.prop)==="disabled"?!0:E==null?void 0:E.disabled,filter:E==null?void 0:E.filter,bindMenus:E==null?void 0:E.bindMenus,isMainPath:E==null?void 0:E.isMainPath,required:(E==null?void 0:E.required)??!1,relatedContents:E==null?void 0:E.relatedContents,mainKey:E==null?void 0:E.mainKey,relatedContents:E==null?void 0:E.relatedContents,functionName:E==null?void 0:E.functionName,functionRelatedWords:E==null?void 0:E.functionRelatedWords,calculatorFilter:E==null?void 0:E.calculatorFilter}):f.push({label:(ca=E==null?void 0:E.prop)!=null&&ca.includes(".")?E==null?void 0:E.prop:(E==null?void 0:E.label)??(E==null?void 0:E.prop)??"",prop:E==null?void 0:E.prop,name:(E==null?void 0:E.prop)??"t"+Oe,type:!(E!=null&&E.formType)||(E==null?void 0:E.formType)===""?"Input":E==null?void 0:E.formType,value:(E==null?void 0:E.formType)==="Upload"?(p==null?void 0:p[E==null?void 0:E.prop])??"{}":(p==null?void 0:p[E==null?void 0:E.prop])??(E==null?void 0:E.value)??"",id:(E==null?void 0:E.id)??Oe,contents:(E==null?void 0:E.options)??[],width:1,isFormColHidden:E==null?void 0:E.isFormColHidden,disabled:(E==null?void 0:E.prop)==="disabled"?!0:E==null?void 0:E.disabled,relatedValueId:E==null?void 0:E.relatedValueId,menus:E==null?void 0:E.menus,groups:E==null?void 0:E.groups,words:E==null?void 0:E.words,filter:E==null?void 0:E.filter,bindMenus:E==null?void 0:E.bindMenus,isMainPath:E==null?void 0:E.isMainPath,required:(E==null?void 0:E.required)??!1,relatedContents:E==null?void 0:E.relatedContents,mainKey:E==null?void 0:E.mainKey,relatedContents:E==null?void 0:E.relatedContents,functionName:E==null?void 0:E.functionName,functionRelatedWords:E==null?void 0:E.functionRelatedWords,calculatorFilter:E==null?void 0:E.calculatorFilter})}),p===""||!p||(Je.value=(p==null?void 0:p.id)??"");let M=na.getColumnChild((ae=I.cloneDeep(De.value))==null?void 0:ae.filter(E=>(E==null?void 0:E.label)!=="操作"));Be.value&&((j=Be.value)==null?void 0:j.length)>0&&(Be.value=(me=I.cloneDeep(Be).value)==null?void 0:me.map(E=>{var xe;let Oe=(E==null?void 0:E.prop)||((xe=M==null?void 0:M.find(Qe=>(Qe==null?void 0:Qe.label)===(E==null?void 0:E.label)))==null?void 0:xe.prop);return Oe&&(E.value=p[Oe]),E})),Z.value=Be.value&&((Ce=Be.value)==null?void 0:Ce.length)>0?na.getTableFormToForm(Be.value):f,Z.value=((Le=Z.value)==null?void 0:Le.map(E=>({...E,disabled:(E==null?void 0:E.prop)==="disabled"?!0:E==null?void 0:E.disabled})))??Z.value;let O=[],$=((aa=(Ue=(Me=c.itemData)==null?void 0:Me.filter(E=>(E==null?void 0:E.key)==="filter"))==null?void 0:Ue[0])==null?void 0:aa.contents)??"";if($=$a.analyzeSplitToContent($,","),($==null?void 0:$.length)>0&&(O=$.flat()),(O==null?void 0:O.length)>0){let E=O==null?void 0:O.filter(ha=>ha==null?void 0:ha.includes("@Type"));if(E=E==null?void 0:E[(E==null?void 0:E.length)-1],(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){let ha=(Da=(Va=E==null?void 0:E.replace("=",V))==null?void 0:Va.split(V))==null?void 0:Da[1];((la=ha==null?void 0:ha.trim())==null?void 0:la.toUpperCase())==="MANUAL"&&(c==null||c.index,Z.value=(Wa=Z.value)==null?void 0:Wa.map((Oa,dl)=>Oa))}let Oe=(sa=Z.value)==null?void 0:sa.filter(ha=>ha==null?void 0:ha.mainKey),xe;Oe==null||Oe.forEach(ha=>{var dl;if(xe!==void 0)return;let Oa=ha==null?void 0:ha.menus;((dl=Oe==null?void 0:Oe.filter(Za=>Za==null?void 0:Za.mainKey))==null?void 0:dl.length)>1&&(xe=Oa,ha==null||ha.groups)});let Qe=[],ca=new Map;if(Oe==null||Oe.forEach(ha=>{var Oa,dl,Za,gl,bl,Rl,Ga,El,Ya,hl,Qa,vl,Tl;if((Oa=ha==null?void 0:ha.prop)!=null&&Oa.includes(".")){let Dl=[];ca.get(((Za=(dl=ha==null?void 0:ha.prop)==null?void 0:dl.split("."))==null?void 0:Za[0])+(ha!=null&&ha.isMainPath?0:1)+((gl=ha==null?void 0:ha.groups)==null?void 0:gl[0]))&&(Dl=ca.get(((Rl=(bl=ha==null?void 0:ha.prop)==null?void 0:bl.split("."))==null?void 0:Rl[0])+(ha!=null&&ha.isMainPath?0:1)+((Ga=ha==null?void 0:ha.groups)==null?void 0:Ga[0]))),Dl.push(ha),ca.set(((Ya=(El=ha==null?void 0:ha.prop)==null?void 0:El.split("."))==null?void 0:Ya[0])+(ha!=null&&ha.isMainPath?0:1)+((hl=ha==null?void 0:ha.groups)==null?void 0:hl[0]),Dl)}else{let Dl=[];ca.get("normal"+(ha!=null&&ha.isMainPath?0:1)+((Qa=ha==null?void 0:ha.groups)==null?void 0:Qa[0]))&&(Dl=ca.get("normal"+(ha!=null&&ha.isMainPath?0:1)+((vl=ha==null?void 0:ha.groups)==null?void 0:vl[0]))),Dl.push(ha),ca.set("normal"+(ha!=null&&ha.isMainPath?0:1)+((Tl=ha==null?void 0:ha.groups)==null?void 0:Tl[0]),Dl)}}),Qe=Array.from(ca.values()),(Qe==null?void 0:Qe.length)>0)for(let ha in Qe){let Oa=Qe==null?void 0:Qe[ha];if((Oa==null?void 0:Oa.length)!==1){if((Oa==null?void 0:Oa.length)>1){let dl=Oa==null?void 0:Oa.map(hl=>hl==null?void 0:hl.prop),Za=Oa==null?void 0:Oa.map(hl=>hl==null?void 0:hl.label),gl=Oa==null?void 0:Oa.map(hl=>hl==null?void 0:hl.value),bl=(Ra=I.cloneDeep(Oa))==null?void 0:Ra[0],Rl=(Na=Z.value)==null?void 0:Na.findIndex(hl=>(hl==null?void 0:hl.prop)===(bl==null?void 0:bl.prop)),Ga=(ge=Z.value)==null?void 0:ge.slice(0,Rl),El=(ta=Z.value)==null?void 0:ta.slice(Rl,(ba=Z.value)==null?void 0:ba.length);bl.label=Za==null?void 0:Za.join("·"),bl.value=gl==null?void 0:gl.join(" "),bl.value.trim()===""&&(bl.value=""),bl.prop=dl==null?void 0:dl.join("·");let Ya=Oa==null?void 0:Oa.map(hl=>{var Qa;return(Qa=hl==null?void 0:hl.words)==null?void 0:Qa.join(".")});bl.relatedWords=Ya,bl.usingType="parent",El.unshift(bl),Z.value=[...Ga,...El],Z.value=(ce=Z.value)==null?void 0:ce.map(hl=>(dl!=null&&dl.find(Qa=>Qa===(hl==null?void 0:hl.prop))&&(hl.isFormColHidden=!0,hl.relatedWords=Ya),hl))}}}}},Xc=()=>{var f;const p=(f=s.value)==null?void 0:f.$el;p&&$a.Sortable.create(p,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:M=>{var Q;const{oldIndex:O,newIndex:$}=M;if(O===$)return;const N=Qr.value.splice(O,1)[0];Qr.value.splice($,0,N),De.value=(Q=De.value)==null?void 0:Q.slice().sort((ae,j)=>{if(ae.label==="操作")return 1;if(j.label==="操作")return-1;const me=Qr.value.findIndex(Le=>Le.label===ae.label),Ce=Qr.value.findIndex(Le=>Le.label===j.label);return me-Ce})}})};a.onMounted(()=>{je.value=window.innerWidth-240*2,window.addEventListener("keydown",qt)});const Zc=()=>{a.nextTick(()=>{Xc()})},Qo=(p,f)=>{var O;if(!p&&!(p!=null&&p.children))return{contents:p,currentSelectContents:void 0};let M;return p.children=(O=p.children)==null?void 0:O.map($=>{var N,Q;if(($==null?void 0:$.id)===Je.value){let ae={};for(let j in $){let me=(N=f==null?void 0:f.find(Ce=>(Ce==null?void 0:Ce.prop)===j))==null?void 0:N.label;me?ae[j]=(Q=Il.value)==null?void 0:Q[me]:ae[j]=$[j]??""}$=Object.assign(ae,Il.value),M=$}else{let ae=Qo($,f);$=ae==null?void 0:ae.contents,M=ae==null?void 0:ae.currentSelectContents}return $}),{contents:p,currentSelectContents:M}},Di=(p,f)=>{let M,O;return p!=null&&p.find($=>($==null?void 0:$.id)===Je.value)?M=p==null?void 0:p.map($=>{var N,Q,ae;if(($==null?void 0:$.id)===Je.value){let j={};for(let Ce in $){let Le=(N=f==null?void 0:f.find(Me=>(Me==null?void 0:Me.prop)===Ce))==null?void 0:N.label;Le?j[Ce]=((Q=Il.value)==null?void 0:Q[Le])??"":j[Ce]=$[Ce]??""}let me=Il.value;for(let Ce in j)(ae=Il.value)!=null&&ae[Ce]||(me[Ce]=(j==null?void 0:j[Ce])??"");$=me,O=$}return $}):M=p==null?void 0:p.map($=>{var N,Q,ae,j;if(($==null?void 0:$.id)===Je.value){let me={};for(let Ce in $){let Le=(N=f==null?void 0:f.find(Me=>(Me==null?void 0:Me.prop)===Ce))==null?void 0:N.label;Le?me[Ce]=(Q=Il.value)==null?void 0:Q[Le]:me[Ce]=$[Ce]??""}$=Object.assign(me,Il.value),O=$}else $=(ae=Qo($,f))==null?void 0:ae.contents,O=(j=Qo($,f))==null?void 0:j.currentSelectContents;return $}),{newContents:M,currentSelectContents:O}},Bi=(p,f,M)=>{var O,$;return p[f==null?void 0:f.prop]=M,typeof p.id=="number"&&(p.id=(O=p.id)==null?void 0:O.toString()),p.children&&(($=p.children)==null?void 0:$.length)>0&&(p.children=p.children.map(Bi)),p},Ni=p=>{var M;const f=[];return f.push({...p}),p!=null&&p.children&&Array.isArray(p.children)&&((M=p.children)==null||M.forEach(O=>{f.push(...Ni(O))})),(f==null?void 0:f.length)>0?f==null?void 0:f.map(O=>{const $={...O};return delete $.children,$}):[]},ro=["Pacific6000数据采集装置.通道号","通道号"],It=p=>{if(!p)return"";const f=ro.map(M=>p==null?void 0:p[M]).find(M=>M!=null&&String(M).trim()!=="");return f==null?"":String(f).trim()},ei=async(p,f=void 0)=>{if(!p)return!1;try{const M=Ue=>{var aa,Va,Da;return Ue?typeof(Ue==null?void 0:Ue.value)=="string"?Ue.value:((Da=(Va=(aa=Ue==null?void 0:Ue._custom)==null?void 0:aa.value)==null?void 0:Va.value)==null?void 0:Da.value)||"":""},O=Array.isArray(bn.value)?bn.value:[],$=M(O.find(Ue=>(Ue==null?void 0:Ue.condition)==="child")),N=(ga.value||"").replace(/\/+$/,""),Q=$?`${N}/${$}`:N,ae=await Pr(Q||ga.value,!1),j=String(fa.value||"").trim(),me=Ue=>String(Ue||"").trim(),Ce=(Ue,aa=[],Va="")=>{if(!Array.isArray(Ue))return aa;for(const Da of Ue){const la=me((Da==null?void 0:Da.choiceName)||(Da==null?void 0:Da.name0)||Va);(Da==null?void 0:Da.comp)==="Table"&&(!j||la===j)&&aa.push(Da),Array.isArray(Da==null?void 0:Da.children)&&Ce(Da.children,aa,la),Array.isArray(Da==null?void 0:Da.tab)&&Ce(Da.tab,aa,la),Array.isArray(Da==null?void 0:Da.choice)&&Ce(Da.choice,aa,la)}return aa},Le=Ce(ae||[]),Me=String((c==null?void 0:c.compName)||"");return Le.some(Ue=>{var Va,Da;const aa=((Da=(Va=Ue==null?void 0:Ue.compData)==null?void 0:Va.find(la=>(la==null?void 0:la.key)==="tableContents"))==null?void 0:Da.contents)||[];return!Array.isArray(aa)||aa.length===0?!1:aa.some(la=>{if(String((Ue==null?void 0:Ue.name)||"")===Me&&(la==null?void 0:la.id)===f)return!1;const sa=It(la);return!!sa&&sa===p})})}catch{return(we.value||[]).some(O=>{if((O==null?void 0:O.id)===f)return!1;const $=It(O);return!!$&&$===p})}},Lt=async(p=!0,f,M)=>{var me,Ce,Le,Me,Ue,aa,Va,Da,la,Wa,sa,Ra,Na,ge,ba,ta,ce,E,Oe,xe,Qe,ca,ha,Oa,dl,Za,gl,bl,Rl,Ga,El;if(Il.value){const Ya=(Ce=na.getColumnChild((me=I.cloneDeep(De.value))==null?void 0:me.filter(Qa=>(Qa==null?void 0:Qa.label)!=="操作")))==null?void 0:Ce.filter(Qa=>(Qa==null?void 0:Qa.required)===!0);for(let Qa=0;Qa<((Ya==null?void 0:Ya.length)??0);Qa++){const vl=Ya[Qa],Tl=vl==null?void 0:vl.prop,Dl=(vl==null?void 0:vl.label)??Tl,ur=(Le=Il.value)==null?void 0:Le[Tl];if(ur===""||ur===null||ur===void 0||Array.isArray(ur)&&ur.length===0){ll.ElMessage.error(`${Dl}不能为空`);return}}const hl=It(Il.value);if(hl&&await ei(hl,Je.value||void 0)){ll.ElMessage.warning("当前任务下通道号不能重复,请重新选择");return}}let O=na.getColumnChild((Me=I.cloneDeep(De.value))==null?void 0:Me.filter(Ya=>(Ya==null?void 0:Ya.label)!=="操作")),$,N=I.cloneDeep(we.value);if(!Il.value){pa.value=!1;return}if(Je.value===""){Fe.value++;let Ya;Ya={id:Fe.value.toString()};try{Ya.sort=Wn(0,we.value||[])}catch{}Ya!=null&&Ya.children&&(Ya={...Ya,children:(Ue=Ya.children)==null?void 0:Ue.map(Qa=>Bi(Qa,f,M))});const hl=Object.assign(Il.value,Ya);N.unshift(hl),$=hl}else N=(aa=Di(N,O))==null?void 0:aa.newContents,$=(Va=Di(N,O))==null?void 0:Va.currentSelectContents;const Q=(Da=c.itemData)==null?void 0:Da.filter(Ya=>(Ya==null?void 0:Ya.key)==="childTree")[0];if(((la=Q==null?void 0:Q.contents)==null?void 0:la.length)>0){$e.value="编辑";const Ya=[];N==null||N.forEach((vl,Tl)=>{var ur;let Dl={};if(Array.isArray(vl)){let Ll=[];vl==null||vl.filter(wl=>!(wl!=null&&wl.id)).forEach((wl,Nl)=>{var Yl,Ml,dr,pr,Gl,or,$r;if((Ml=(Yl=Br.value)==null?void 0:Yl[Nl])!=null&&Ml.prop&&!Array.isArray(wl)){let ir={};ir[Br.value[Nl].column]=wl,Ia!=null&&Ia.value&&((dr=Ia==null?void 0:Ia.value)==null?void 0:dr.length)>0&&((pr=Ia==null?void 0:Ia.value)!=null&&pr.find(lr=>JSON.stringify(lr==null?void 0:lr[0])===JSON.stringify(ir)))&&(Ll=(Gl=Ia==null?void 0:Ia.value)==null?void 0:Gl.find(lr=>JSON.stringify(lr==null?void 0:lr[0])===JSON.stringify(ir))),Ll&&Ll.length>0?Dl[Br.value[Nl].prop]=Ll!=null&&Ll.find(lr=>{var nr;return((nr=Object.keys(lr))==null?void 0:nr[0])===Br.value[Nl].column})?(or=Ll==null?void 0:Ll.find(lr=>{var nr;return((nr=Object.keys(lr))==null?void 0:nr[0])===Br.value[Nl].column}))==null?void 0:or[Br.value[Nl].column]:wl:Dl[Br.value[Nl].prop]=wl}else Array.isArray(wl)&&(($r=Br.value[Nl])!=null&&$r.prop?Dl[Br.value[Nl].prop]=wl:Dl.children=pi(wl,Br.value))})}else Dl=vl;if(Array.isArray(vl)&&vl.some(Ll=>Ll==null?void 0:Ll.id)){const Ll=(ur=vl==null?void 0:vl.find(wl=>wl.id))==null?void 0:ur.id;Ya.push(Object.assign(Dl,{id:Qt(Ll)}))}else Dl.id?Ya.push(Dl):Ya.push(Object.assign(Dl,{id:Tl.toString()}))});const hl=(we.value||[]).map(vl=>String(vl==null?void 0:vl.id)),Qa=it(Ya,hl);we.value=Mi(Qa,Q,De.value)}Ai(we.value),Nr.value=we.value;const ae=tf(Nr.value,An.value,N);let j=[];if(R.value?(j=(Wa=I.cloneDeep(R).value.singleContent)==null?void 0:Wa.filter(Ya=>(Ya==null?void 0:Ya.id)!==($==null?void 0:$.id)),j.push($)):j=[$],Al.value){const Ya={content:ae,singleContent:((sa=Q==null?void 0:Q.contents)==null?void 0:sa.length)>0?j==null?void 0:j.flatMap(Ni):j,index:c==null?void 0:c.index,buttonName:"编辑",column:De.value,parentTableId:c==null?void 0:c.parentTableId};Ge.setCacheUpdatingData(Ya)}if((Ra=De.value)==null||Ra.forEach(Ya=>{(Ya==null?void 0:Ya.formType)==="Upload"&&($[Ya.prop]=$[Ya.prop]===""?"{}":typeof $[Ya.prop]!="string"?JSON.stringify($[Ya.prop]):$[Ya.prop])}),p){(ta=(ba=(ge=(Na=c.itemData)==null?void 0:Na.find(Qa=>(Qa==null?void 0:Qa.key)==="filterAllType"))==null?void 0:ge.value)==null?void 0:ba.find(Qa=>(Qa==null?void 0:Qa.value)==="onConditionContents"))==null||ta.content;let Ya=(ce=c.itemData)==null?void 0:ce.filter(Qa=>(Qa==null?void 0:Qa.key)==="filterAllType");Ya=Array.from(new Map(Ya.filter(Boolean).map((Qa,vl)=>[Qa.value,{...Qa,_idx:vl}])).values()).sort((Qa,vl)=>Qa._idx-vl._idx).map(({_idx:Qa,...vl})=>vl),Ya=(E=Ya==null?void 0:Ya[(Ya==null?void 0:Ya.length)-1])==null?void 0:E.value;const hl={fixContent:[$],buttonName:$e.value,relatedContents:c==null?void 0:c.related,columns:De.value,name:c==null?void 0:c.compName};Ge.setTableLoading(c==null?void 0:c.index),pa.value=!1,Il.value=void 0,ze("change",hl)}if((Qe=(xe=(Oe=Z.value)==null?void 0:Oe[0])==null?void 0:xe.optionUrl)!=null&&Qe.menuId){pa.value=!1;let Ya=(ca=c.itemData)==null?void 0:ca.filter(hl=>(hl==null?void 0:hl.key)==="filterAllType");if((Ya==null?void 0:Ya.length)>0){let hl=Ya==null?void 0:Ya.map(Tl=>Tl==null?void 0:Tl.value),Qa=(dl=(Oa=(ha=hl.flat().find(Tl=>{var Dl;return(Dl=Tl==null?void 0:Tl.content)==null?void 0:Dl.includes("@Num")}))==null?void 0:ha.content)==null?void 0:Oa.split(":"))==null?void 0:dl[1];((bl=(gl=(Za=hl.flat().find(Tl=>{var Dl;return(Dl=Tl==null?void 0:Tl.content)==null?void 0:Dl.includes("@Type:")}))==null?void 0:Za.content)==null?void 0:gl.split(":"))==null?void 0:bl[1])!=="Manual"&&(Qa=parseInt(Qa),we.value=(El=we.value)==null?void 0:El.slice(((Rl=we.value)==null?void 0:Rl.length)-Qa,(Ga=we.value)==null?void 0:Ga.length))}}};a.onUnmounted(()=>{window.removeEventListener("keydown",qt),De.value=[],we.value=[],pe.value=[],xa.value=[],Be.value=[],za.value=[],Ye.value=[],ua.value=[],Z.value=[],ar.value=[],s.value=null,zn.value=""});const no=async(p,f,M)=>{var Ue,aa,Va,Da,la,Wa,sa,Ra,Na,ge,ba,ta,ce;Pl.value=(M==null?void 0:M.prop)??(M==null?void 0:M.property);const O=I.cloneDeep(c.itemData),$=((Ue=O==null?void 0:O.find(E=>(E==null?void 0:E.key)==="header"))==null?void 0:Ue.contents)??[];let N=$==null?void 0:$.find((E,Oe)=>{var xe,Qe,ca;return(E==null?void 0:E.prop)===Pl.value||(E==null?void 0:E.label)===Pl.value||(Oe==null?void 0:Oe.toString())===((ca=(Qe=(xe=Pl.value)==null?void 0:xe.split("a"))==null?void 0:Qe[1])==null?void 0:ca.toString())});const Q=na.getColumnChild((aa=I.cloneDeep(De.value))==null?void 0:aa.filter(E=>(E==null?void 0:E.label)!=="操作"));if(N||(N=Q==null?void 0:Q.find(E=>(E==null?void 0:E.prop)===Pl.value||(E==null?void 0:E.label)===Pl.value)),N&&!((Va=N==null?void 0:N.menus)!=null&&Va.length)&&!((Da=N==null?void 0:N.groups)!=null&&Da.length)&&!((la=N==null?void 0:N.words)!=null&&la.length)){const E=(Wa=Z.value)==null?void 0:Wa.find(Oe=>(Oe==null?void 0:Oe.prop)===Pl.value);E&&(N={...N,menus:(E==null?void 0:E.menus)??(N==null?void 0:N.menus),groups:(E==null?void 0:E.groups)??(N==null?void 0:N.groups),words:(E==null?void 0:E.words)??(N==null?void 0:N.words),bindMenus:(E==null?void 0:E.bindMenus)??(N==null?void 0:N.bindMenus),isMainPath:(E==null?void 0:E.isMainPath)??(N==null?void 0:N.isMainPath),relatedContents:(E==null?void 0:E.relatedContents)??(N==null?void 0:N.relatedContents),endChildMenu:(E==null?void 0:E.endChildMenu)??(N==null?void 0:N.endChildMenu)})}if(N&&((sa=Z==null?void 0:Z.value)==null||sa.forEach(E=>{var Oe,xe,Qe,ca,ha;(E==null?void 0:E.prop)===(N==null?void 0:N.prop)&&(E!=null&&E.endChildMenu)&&((Oe=N==null?void 0:N.prop)!=null&&Oe.includes(".")&&((Qe=(xe=N==null?void 0:N.prop)==null?void 0:xe.split("."))==null?void 0:Qe[0])!==((ha=(ca=E==null?void 0:E.prop)==null?void 0:ca.split("."))==null?void 0:ha[0])?N.endChildMenu=E==null?void 0:E.value:N.endChildMenu=E==null?void 0:E.endChildMenu)})),!N)return;const ae=Pl.value,j=(Ra=we.value)==null?void 0:Ra.findIndex(E=>(E==null?void 0:E.id)===(f==null?void 0:f.id));j!==-1&&ae&&(we.value[j]={...we.value[j],[ae]:p});const me=E=>{Array.isArray(E)&&E.forEach(Oe=>{Array.isArray(Oe==null?void 0:Oe.allSelectionContents)&&Oe.allSelectionContents.length>0&&(Oe.contactValue=we.value[j]??f),Array.isArray(Oe==null?void 0:Oe.children)&&Oe.children.length>0&&me(Oe.children)})};me(De.value),N.value=p,N.endChildMenu=N.endChildMenu||"";let Ce=N!=null&&N.isMainPath&&(N!=null&&N.mainKey)?N==null?void 0:N.value:"";const Le=E=>{Array.isArray(E)&&E.forEach(Oe=>{var Qe,ca;if(((Oe==null?void 0:Oe.type)==="Select"||(Oe==null?void 0:Oe.formType)&&Oe.formType.toUpperCase()==="SELECT"||(Oe==null?void 0:Oe.columnType)&&Oe.columnType.toUpperCase()==="SELECT")&&Array.isArray(Oe==null?void 0:Oe.menus)&&Oe.menus.length>0&&Oe.menus[Oe.menus.length-1]===""&&(N!=null&&N.isMainPath)&&(N!=null&&N.mainKey)){const ha=(Qe=Oe==null?void 0:Oe.prop)!=null&&Qe.includes(".")?Oe.prop.split(".")[0]:null,Oa=(ca=N==null?void 0:N.prop)!=null&&ca.includes(".")?N.prop.split(".")[0]:null;(!ha||!Oa||ha===Oa)&&(Oe.endChildMenu=Ce)}Array.isArray(Oe==null?void 0:Oe.children)&&Oe.children.length>0&&Le(Oe.children)})};if(Le(De.value),!!(N!=null&&N.mainKey)&&Array.isArray(N==null?void 0:N.menus)&&(N==null?void 0:N.menus.length)>0&&(N!=null&&N.value)&&(N==null?void 0:N.value)!==""){let E=N!=null&&N.relatedContents&&((Na=N==null?void 0:N.relatedContents)==null?void 0:Na.length)>0?(ge=N==null?void 0:N.relatedContents)==null?void 0:ge.find(Oe=>{var xe,Qe,ca,ha;return(Oe==null?void 0:Oe[(ha=(xe=N==null?void 0:N.prop)==null?void 0:xe.split("."))==null?void 0:ha[((ca=(Qe=N==null?void 0:N.prop)==null?void 0:Qe.split("."))==null?void 0:ca.length)-1]])===(N==null?void 0:N.value)}):await rs(N);if(E){const Oe={...f};Q==null||Q.forEach(xe=>{var Qe,ca,ha,Oa,dl,Za,gl,bl,Rl,Ga,El,Ya,hl,Qa,vl,Tl;(xe==null?void 0:xe.prop)!==(N==null?void 0:N.prop)&&(N!=null&&N.relatedContents&&((Qe=N==null?void 0:N.relatedContents)==null?void 0:Qe.length)>0?(ca=xe==null?void 0:xe.prop)!=null&&ca.includes(".")&&((Oa=(ha=xe==null?void 0:xe.prop)==null?void 0:ha.split("."))==null?void 0:Oa[0])===((Za=(dl=N==null?void 0:N.prop)==null?void 0:dl.split("."))==null?void 0:Za[0])?Oe[xe.prop]=E[(Ga=(gl=xe==null?void 0:xe.prop)==null?void 0:gl.split("."))==null?void 0:Ga[((Rl=(bl=xe==null?void 0:xe.prop)==null?void 0:bl.split("."))==null?void 0:Rl.length)-1]]??Oe[xe.prop]:Oe[xe.prop]=(E==null?void 0:E[xe.prop])??Oe[xe.prop]:$a.same((N==null?void 0:N.menus)??[],(xe==null?void 0:xe.menus)??[])&&$a.same((N==null?void 0:N.groups)??[],(xe==null?void 0:xe.groups)??[])&&!$a.same((N==null?void 0:N.words)??[],(xe==null?void 0:xe.words)??[])?(El=xe==null?void 0:xe.prop)!=null&&El.includes(".")&&((hl=(Ya=xe==null?void 0:xe.prop)==null?void 0:Ya.split("."))==null?void 0:hl[0])!==((vl=(Qa=N==null?void 0:N.prop)==null?void 0:Qa.split("."))==null?void 0:vl[0])||(Oe[xe.prop]=(E==null?void 0:E[(Tl=xe==null?void 0:xe.words)==null?void 0:Tl.join(".")])??(E==null?void 0:E[xe.prop])??Oe[xe.prop]):(!(xe!=null&&xe.isMainPath)&&$a.same((N==null?void 0:N.bindMenus)??[],(xe==null?void 0:xe.bindMenus)??[]),Oe[xe.prop]=(E==null?void 0:E[xe.prop])??Oe[xe.prop]))}),we.value=(ba=I.cloneDeep(we.value))==null?void 0:ba.map(xe=>(xe==null?void 0:xe.id)===(f==null?void 0:f.id)?{...Oe,id:xe==null?void 0:xe.id}:xe)}}if((ta=N==null?void 0:N.optionUrl)!=null&&ta.menuSelect){let E="";Q==null||Q.forEach(Qe=>{var ca,ha,Oa,dl,Za;E===""&&((Oa=(ha=(ca=Qe==null?void 0:Qe.optionUrl)==null?void 0:ca.groupSelect)==null?void 0:ha[1])!=null&&Oa.includes("["))&&(E=(Za=(dl=Qe==null?void 0:Qe.optionUrl)==null?void 0:dl.groupSelect)==null?void 0:Za[1])});let Oe=await fi(N),xe;if(Oe==null||Oe.forEach(Qe=>{var ca,ha,Oa,dl,Za,gl,bl,Rl,Ga,El;E===((ha=(ca=N==null?void 0:N.optionUrl)==null?void 0:ca.groupSelect)==null?void 0:ha[1])&&((Za=(dl=(Oa=N==null?void 0:N.optionUrl)==null?void 0:Oa.groupSelect)==null?void 0:dl[1])!=null&&Za.includes("["))&&((El=I.cloneDeep(Qe))==null?void 0:El[(Ga=(Rl=(bl=(gl=N==null?void 0:N.optionUrl)==null?void 0:gl.groupSelect)==null?void 0:bl[1])==null?void 0:Rl.replaceAll("[",""))==null?void 0:Ga.replaceAll("]","")])===(N==null?void 0:N.value)&&(xe=Qe)}),xe){const Qe={...f};Q==null||Q.forEach(ca=>{var ha,Oa,dl,Za,gl,bl,Rl,Ga,El,Ya,hl;(xe!=null&&xe[ca==null?void 0:ca.label]||xe!=null&&xe[(Za=(dl=(Oa=(ha=ca==null?void 0:ca.optionUrl)==null?void 0:ha.groupSelect)==null?void 0:Oa[1])==null?void 0:dl.replaceAll("[",""))==null?void 0:Za.replaceAll("]","")])&&((Rl=(bl=(gl=ca==null?void 0:ca.optionUrl)==null?void 0:gl.groupSelect)==null?void 0:bl[1])!=null&&Rl.includes("["))&&(Qe[ca.prop]=(xe==null?void 0:xe[ca==null?void 0:ca.label])||(xe==null?void 0:xe[(hl=(Ya=(El=(Ga=ca==null?void 0:ca.optionUrl)==null?void 0:Ga.groupSelect)==null?void 0:El[1])==null?void 0:Ya.replaceAll("[",""))==null?void 0:hl.replaceAll("]","")]))}),we.value=(ce=I.cloneDeep(we.value))==null?void 0:ce.map(ca=>(ca==null?void 0:ca.id)===(f==null?void 0:f.id)?{...Qe,id:ca==null?void 0:ca.id}:ca)}}},Qc=async p=>{var Ue,aa,Va,Da,la,Wa,sa,Ra,Na,ge,ba,ta;if(!p)return;const f=I.cloneDeep(Il.value||{});Il.value=p;const M=It(f),O=It(Il.value);if(O&&O!==M&&await ei(O,Je.value||void 0)){ll.ElMessage.warning("当前任务下通道号不能重复,请重新选择"),ro.forEach(E=>{if(Object.prototype.hasOwnProperty.call(Il.value||{},E)||Object.prototype.hasOwnProperty.call(f||{},E)){const Oe=(f==null?void 0:f[E])??"";Il.value[E]=Oe,p[E]=Oe}}),Z.value=(Z.value||[]).map(E=>{if(!(E!=null&&E.prop)||!ro.includes(E.prop))return E;const Oe=(f==null?void 0:f[E.prop])??"";return{...E,value:Oe,selectValue:Oe===""?[]:[Oe]}});return}let $=I.cloneDeep(c.itemData);$==null||$.map(ce=>{var E,Oe,xe,Qe;return(ce==null?void 0:ce.key)==="header"&&(Array.isArray((E=ce.contents)==null?void 0:E[0])?ce.contents=(xe=na.getColumnChild((Oe=ce.contents)==null?void 0:Oe[0]))==null?void 0:xe.map((ca,ha)=>{var Oa,dl,Za,gl,bl,Rl;return((Za=(dl=(Oa=Z.value)==null?void 0:Oa.find(Ga=>(Ga==null?void 0:Ga.prop)===(ca==null?void 0:ca.prop)))==null?void 0:dl.optionUrl)==null?void 0:Za.multiple)===!0&&!Array.isArray((gl=Object.values(p))==null?void 0:gl[ha])?ca.value=[(bl=Object.values(p))==null?void 0:bl[ha]]:ca.value=(Rl=Object.values(p))==null?void 0:Rl[ha],ca}):ce.contents=(Qe=ce.contents)==null?void 0:Qe.map((ca,ha)=>{var Oa,dl,Za,gl,bl,Rl;return((Za=(dl=(Oa=Z.value)==null?void 0:Oa.find(Ga=>(Ga==null?void 0:Ga.prop)===(ca==null?void 0:ca.prop)))==null?void 0:dl.optionUrl)==null?void 0:Za.multiple)===!0&&!Array.isArray((gl=Object.values(p))==null?void 0:gl[ha])?ca.value=[(bl=Object.values(p))==null?void 0:bl[ha]]:ca.value=(Rl=Object.values(p))==null?void 0:Rl[ha],ca})),ce});let N=Z.value,Q=(Ue=$==null?void 0:$.find(ce=>(ce==null?void 0:ce.key)==="header"))==null?void 0:Ue.contents;if(Pl.value||(N=N==null?void 0:N.map(ce=>{var E;return ce.value=ce.value??((E=Q==null?void 0:Q.find((Oe,xe)=>(Oe==null?void 0:Oe.prop)===(ce==null?void 0:ce.name)))==null?void 0:E.value),ce})),!Mr.value)return;let ae=I.cloneDeep(Pl.value);(aa=Pl.value)!=null&&aa.includes("·")&&(Pl.value=(Da=(Va=Pl.value)==null?void 0:Va.split("·"))==null?void 0:Da[0]);let j=(Wa=(la=$==null?void 0:$.find(ce=>(ce==null?void 0:ce.key)==="header"))==null?void 0:la.contents)==null?void 0:Wa.find((ce,E)=>(ce==null?void 0:ce.prop)===Pl.value);(sa=Z==null?void 0:Z.value)==null||sa.forEach(ce=>{var E,Oe,xe,Qe,ca,ha,Oa,dl,Za;(ce==null?void 0:ce.prop)===(j==null?void 0:j.prop)&&(ce!=null&&ce.endChildMenu)&&((E=j==null?void 0:j.prop)!=null&&E.includes(".")&&((xe=(Oe=j==null?void 0:j.prop)==null?void 0:Oe.split("."))==null?void 0:xe[0])!==((ca=(Qe=ce==null?void 0:ce.prop)==null?void 0:Qe.split("."))==null?void 0:ca[0])?j.endChildMenu=(Oa=(ha=ce==null?void 0:ce.value)==null?void 0:ha.split(" "))==null?void 0:Oa[0]:j.endChildMenu=(Za=(dl=ce==null?void 0:ce.endChildMenu)==null?void 0:dl.split(" "))==null?void 0:Za[0])});let me=j!=null&&j.isMainPath&&(j!=null&&j.mainKey)?j==null?void 0:j.value:"",Ce=N,Le=ke.value;if(Le!=null&&Le.find(ce=>(j==null?void 0:j.prop)===(ce==null?void 0:ce.key))&&(Le=Le==null?void 0:Le.filter(ce=>(j==null?void 0:j.prop)!==(ce==null?void 0:ce.key))),Le!=null&&Le.find(ce=>ae===(ce==null?void 0:ce.key))&&(Le=Le==null?void 0:Le.filter(ce=>ae!==(ce==null?void 0:ce.key))),(j==null?void 0:j.formType)==="Select"&&(Ce=Ce==null?void 0:Ce.map(ce=>{var E,Oe,xe,Qe,ca,ha,Oa,dl,Za,gl,bl,Rl,Ga,El,Ya,hl;return(ce==null?void 0:ce.type)==="Select"&&(((E=ce==null?void 0:ce.allSelectionContents)==null?void 0:E.length)>0&&(ce.contactValue=p),((j==null?void 0:j.prop)===(ce==null?void 0:ce.prop)||ae===(ce==null?void 0:ce.prop))&&j&&(Array.isArray(j.value)&&((Oe=j.value)==null?void 0:Oe.length)>0&&((xe=j.value)!=null&&xe.every(Qa=>typeof Qa=="string"))?(Le.push({key:ce==null?void 0:ce.prop,value:[(ca=j.value)==null?void 0:ca[((Qe=j.value)==null?void 0:Qe.length)-1]]}),ce.selectValue=(ha=Le==null?void 0:Le.find(Qa=>(Qa==null?void 0:Qa.key)===(ce==null?void 0:ce.prop)))==null?void 0:ha.value):Array.isArray(j.value)&&((Oa=j.value)==null?void 0:Oa.length)===0?(Le=[],ce.selectValue=[],p[ce==null?void 0:ce.prop]=""):Array.isArray(ce.value)&&Le.push({key:ce==null?void 0:ce.prop,value:[(dl=ce.value)==null?void 0:dl[(ce==null?void 0:ce.length)-1]]})),((gl=ce==null?void 0:ce.menus)==null?void 0:gl[((Za=ce==null?void 0:ce.menus)==null?void 0:Za.length)-1])===""&&(j!=null&&j.isMainPath)&&(j!=null&&j.mainKey)&&((bl=ce==null?void 0:ce.prop)!=null&&bl.includes(".")&&((Ga=(Rl=ce==null?void 0:ce.prop)==null?void 0:Rl.split("."))==null?void 0:Ga[0])!==((Ya=(El=j==null?void 0:j.prop)==null?void 0:El.split("."))==null?void 0:Ya[0])||(ce.endChildMenu=(hl=me==null?void 0:me.split(" "))==null?void 0:hl[0]))),ce.value=(p==null?void 0:p[ce==null?void 0:ce.prop])??(ce==null?void 0:ce.value),ce})),ke.value=Le,Ce!=null&&Ce.some(ce=>(ce==null?void 0:ce.functionName)&&(ce==null?void 0:ce.functionName)!=="")){let ce=await di([p],De==null?void 0:De.value,"Auto",we.value);Ce=Ce==null?void 0:Ce.map(E=>{var Oe;return E.value=((Oe=ce==null?void 0:ce[0])==null?void 0:Oe[E==null?void 0:E.prop])??E.value,E}),Il.value=ce==null?void 0:ce[0]}if(Z.value=Ce,j=Object.assign({},j??{},{relatedWords:(Na=(Ra=Z==null?void 0:Z.value)==null?void 0:Ra.find(ce=>(ce==null?void 0:ce.prop)===(j==null?void 0:j.prop)))==null?void 0:Na.relatedWords}),(j==null?void 0:j.mainKey)&&(j!=null&&j.value)&&(j==null?void 0:j.value)!==""){let ce=j!=null&&j.relatedContents&&((ge=j==null?void 0:j.relatedContents)==null?void 0:ge.length)>0?(ba=j==null?void 0:j.relatedContents)==null?void 0:ba.find(E=>{var Oe,xe,Qe,ca;return(E==null?void 0:E[(ca=(Oe=j==null?void 0:j.prop)==null?void 0:Oe.split("."))==null?void 0:ca[((Qe=(xe=j==null?void 0:j.prop)==null?void 0:xe.split("."))==null?void 0:Qe.length)-1]])===(j==null?void 0:j.value)}):await rs(j);if(ce&&JSON.stringify(ce)!=="{}"){let E=Ce;E=E==null?void 0:E.map(xe=>{var Qe,ca,ha,Oa,dl,Za,gl,bl,Rl,Ga,El,Ya,hl,Qa,vl,Tl,Dl,ur,Ll,wl,Nl;return(j==null?void 0:j.prop)===(xe==null?void 0:xe.prop)?xe.value=(ce==null?void 0:ce[(Qe=xe==null?void 0:xe.words)==null?void 0:Qe.join(".")])??(ce==null?void 0:ce[xe==null?void 0:xe.prop])??ce[(dl=(ca=xe==null?void 0:xe.prop)==null?void 0:ca.split("."))==null?void 0:dl[((Oa=(ha=xe==null?void 0:xe.prop)==null?void 0:ha.split("."))==null?void 0:Oa.length)-1]]:j!=null&&j.relatedContents&&((Za=j==null?void 0:j.relatedContents)==null?void 0:Za.length)>0?xe.value=(gl=xe==null?void 0:xe.prop)!=null&&gl.includes(".")&&((Rl=(bl=xe==null?void 0:xe.prop)==null?void 0:bl.split("."))==null?void 0:Rl[0])===((El=(Ga=j==null?void 0:j.prop)==null?void 0:Ga.split("."))==null?void 0:El[0])?ce[(vl=(Ya=xe==null?void 0:xe.prop)==null?void 0:Ya.split("."))==null?void 0:vl[((Qa=(hl=xe==null?void 0:xe.prop)==null?void 0:hl.split("."))==null?void 0:Qa.length)-1]]:(ce==null?void 0:ce[xe==null?void 0:xe.prop])??(xe==null?void 0:xe.value):$a.same((j==null?void 0:j.menus)??[],(xe==null?void 0:xe.menus)??[])&&$a.same((j==null?void 0:j.groups)??[],(xe==null?void 0:xe.groups)??[])&&!$a.same((j==null?void 0:j.words)??[],(xe==null?void 0:xe.words)??[])?(Tl=xe==null?void 0:xe.prop)!=null&&Tl.includes(".")&&((ur=(Dl=xe==null?void 0:xe.prop)==null?void 0:Dl.split("."))==null?void 0:ur[0])!==((wl=(Ll=j==null?void 0:j.prop)==null?void 0:Ll.split("."))==null?void 0:wl[0])||(xe.value=(ce==null?void 0:ce[(Nl=xe==null?void 0:xe.words)==null?void 0:Nl.join(".")])??(ce==null?void 0:ce[xe==null?void 0:xe.prop])??xe.value):(!(xe!=null&&xe.isMainPath)&&$a.same((j==null?void 0:j.bindMenus)??[],(xe==null?void 0:xe.bindMenus)??[]),xe.value=(ce==null?void 0:ce[xe==null?void 0:xe.prop])??xe.value),xe}),Z.value=E;let Oe={};(ta=Z.value)==null||ta.forEach(xe=>{Oe[xe.prop]=xe==null?void 0:xe.value}),Il.value=Oe}}Mr.value=!0,H.value=!1},eu=p=>p?(p==null?void 0:p.toUpperCase())==="INPUT"?"TEXTAREA":p:"TEXTAREA",au=p=>{var N,Q;const f=(Q=(N=Be.value)==null?void 0:N.find(ae=>(ae==null?void 0:ae.label)===(p==null?void 0:p.label)))==null?void 0:Q.multiple,M=p==null?void 0:p.prop;if((p==null?void 0:p.formType)!="Select")return;we.value.forEach(ae=>{const j=ae==null?void 0:ae[M];f&&ko.isString(j)&&(ae[M]=[j]),!f&&!ko.isString(j)&&(ae[M]="")})},Ti=(p,f)=>{var M;return f==null||f.forEach(O=>{p[O==null?void 0:O.prop]=O==null?void 0:O.value}),p.children&&((M=p.children)==null?void 0:M.length)>0&&(p.children=p.children.map(O=>Ti(O,f))),p},ai=p=>{var M,O,$,N,Q,ae;Ot("");const f=(M=Z.value)==null?void 0:M.reduce((j,me)=>(j[me.name]=me.value,j),{});if(((O=Object.keys(f))==null?void 0:O.length)>0){Il.value=f,Je.value="",Fe.value=($=we.value)==null?void 0:$.length,ua.value=(N=_e.value)==null?void 0:N.filter(me=>(me==null?void 0:me.label)!=="新增");const j=(ae=(Q=pe.value)==null?void 0:Q.filter(me=>(me==null?void 0:me.label)!=="操作"))==null?void 0:ae.map(me=>{var Le,Me,Ue;const Ce=(Me=(Le=Be.value)==null?void 0:Le.find(aa=>(aa==null?void 0:aa.label)===(me==null?void 0:me.label)))==null?void 0:Me.multiple;return au(me),{...me,contents:(me==null?void 0:me.options)??[],optionUrl:me!=null&&me.formMenuSelect&&((Ue=me==null?void 0:me.formMenuSelect)==null?void 0:Ue.length)>0?{groupSelect:me==null?void 0:me.groupSelect,menuSelect:me==null?void 0:me.formMenuSelect,selectRelateType:"",type:me==null?void 0:me.formType,multiple:Ce}:null}});De.value=j==null?void 0:j.map(me=>Ti(me,[{prop:"type",value:"edit"},{prop:"columnType",value:eu(me==null?void 0:me.formType)||(me==null?void 0:me.columnType)}])),p==="createClick"&&($e.value="新增",Lt(!0))}},dt={START:"开始时间",END:"结束时间",HOURS:"工时"},lu=(p,f)=>Number(I.dayjs(f).diff(I.dayjs(p),"day",!0).toFixed(1)),Ai=p=>{var N;const f=c.itemData,M=(N=f==null?void 0:f.find(Q=>(Q==null?void 0:Q.key)==="header"))==null?void 0:N.contents,O=new Map;return M==null||M.forEach((Q,ae)=>{const{label:j}=Q;O.set(j,ae)}),!O.has(dt.START)||!O.has(dt.END)||!O.has(dt.HOURS)?p:p==null?void 0:p.map(Q=>{const ae=Q==null?void 0:Q[dt.START],j=Q==null?void 0:Q[dt.END],me=lu(ae,j);return ae&&j&&(Q[dt.HOURS]=`${me}天`),Q})},zi=(p,f,M=0)=>{if(M>((f==null?void 0:f.length)??""))return p;const O=f==null?void 0:f[M],$=new Map;for(const Q of p){const ae=Q[O];$.has(ae)||$.set(ae,[]),$.get(ae)&&$.get(ae).push(Q)}const N=[];for(const[Q,ae]of $){const[j,...me]=ae,Ce={...j};M+1===((f==null?void 0:f.length)??"")?Ce.children=ae==null?void 0:ae.map(Le=>(Le.level=I.cloneDeep(M)+1,Le)).filter((Le,Me)=>Me!==0):me.length>0&&(Ce.children=zi(me,f,M+1)),Ce.level=M,N.push(Ce)}return N},Mi=(p,f,M)=>{var $;if(!(f!=null&&f.contents)||(($=f==null?void 0:f.contents)==null?void 0:$.length)===0)return p;let O=[];return O=zi(p,f==null?void 0:f.contents,0),O},Oi=async(p,f)=>{var Da,la,Wa,sa,Ra,Na,ge,ba,ta,ce,E,Oe,xe,Qe,ca,ha,Oa,dl,Za,gl,bl,Rl,Ga,El,Ya,hl,Qa,vl,Tl,Dl,ur,Ll,wl,Nl,Yl,Ml,dr,pr,Gl,or,$r,ir,lr,nr,Li,Vi,$i;const M=p==null?void 0:p.filter(da=>(da==null?void 0:da.key)==="header");p==null||p.filter(da=>(da==null?void 0:da.key)==="tableIndexColumn")[0];const O=p==null?void 0:p.filter(da=>(da==null?void 0:da.key)==="childTree")[0];let $=!0;if((Wa=(la=(Da=p==null?void 0:p.find(da=>(da==null?void 0:da.key)==="filterAllType"))==null?void 0:Da.value)==null?void 0:la.find(da=>(da==null?void 0:da.value)==="onPamButtonContents"))!=null&&Wa.content){let da=(Na=(Ra=(sa=p==null?void 0:p.find(Bl=>(Bl==null?void 0:Bl.key)==="filterAllType"))==null?void 0:sa.value)==null?void 0:Ra.find(Bl=>(Bl==null?void 0:Bl.value)==="onPamButtonContents"))==null?void 0:Na.content;da=(ge=da==null?void 0:da.split(":"))==null?void 0:ge[1],da=(ba=da.slice(1,(da==null?void 0:da.length)-1))==null?void 0:ba.split(","),$=!!(da!=null&&da.find(Bl=>Bl==="操作"))}const N=p==null?void 0:p.find(da=>(da==null?void 0:da.key)==="page"),Q=p==null?void 0:p.find(da=>(da==null?void 0:da.key)==="rowButton"),ae=p==null?void 0:p.find(da=>(da==null?void 0:da.key)==="extraButton"),j=p==null?void 0:p.filter(da=>(da==null?void 0:da.key)==="tableContents"),me=p==null?void 0:p.filter(da=>(da==null?void 0:da.key)==="bottomButton"),Ce=p==null?void 0:p.filter(da=>(da==null?void 0:da.key)==="tableIndex");Be.value=(ce=(ta=p==null?void 0:p.filter(da=>(da==null?void 0:da.key)==="tableToForm"))==null?void 0:ta[0])==null?void 0:ce.contents,ka.value=(N==null?void 0:N.contents)??!0;let Le=[];Zl.value===""?Le=M==null?void 0:M[0]:Le=(M==null?void 0:M.find(da=>(da==null?void 0:da.selectLabel)==="("+Zl.value+")"))??(M==null?void 0:M.find(da=>!(da!=null&&da.selectLabel)));let Me=[];Zl.value===""?Me=Ce==null?void 0:Ce[0]:Me=(Ce==null?void 0:Ce.find(da=>(da==null?void 0:da.selectLabel)==="("+Zl.value+")"))??(Ce==null?void 0:Ce.find(da=>!(da!=null&&da.selectLabel)));let Ue=[],aa=[];if(((E=Le==null?void 0:Le.contents)==null?void 0:E.length)>0){let da=[],Bl=Le==null?void 0:Le.contents;if(Array.isArray(Bl==null?void 0:Bl[0])&&((Oe=Bl==null?void 0:Bl[0])!=null&&Oe.every(nl=>!(nl!=null&&nl.children)))&&(Bl=Bl==null?void 0:Bl[0]),Bl.some(nl=>Array.isArray(nl)&&(nl==null?void 0:nl.find(qe=>qe.children))))da=(xe=na.getGradeColumns(Bl,$))==null?void 0:xe[0],da!=null&&da.find(nl=>(nl==null?void 0:nl.label)==="操作")||da.push({label:"操作",prop:"operate",type:"operate"});else{let nl=Bl.some(qe=>Array.isArray(qe))?Bl==null?void 0:Bl[0]:Bl;nl!=null&&nl.find(qe=>(qe==null?void 0:qe.label)==="操作")||nl.push({label:"操作",prop:"operate",type:"operate"}),nl==null||nl.forEach((qe,Jl)=>{var Ar,Cr,zr,br,Zn,ht,vt,fr,yn,On,mt,Yr,In,ji,Hi,Ui,qi,Ki,Wi,Yi;if((Cr=(Ar=ga.value)==null?void 0:Ar.split("/"))==null||Cr.forEach(Ql=>{var sr,_n,Gi;Ql!==""&&((Gi=(_n=(sr=Ql==null?void 0:Ql.split(x+"updateLoading"))==null?void 0:sr[0])==null?void 0:_n.split(x+"loading"))==null||Gi[0])}),qe!=null&&qe.methodContent){let Ql=(Zn=(br=(zr=qe==null?void 0:qe.methodContent)==null?void 0:zr.replace("@","%%#"))==null?void 0:br.split("%%#"))==null?void 0:Zn[1];if(Ql=Ql==null?void 0:Ql.slice(0,(Ql==null?void 0:Ql.length)-1),Ql=na.contentTransArrayToAllNoExtra(Ql??"",","),(ht=Ql==null?void 0:Ql.find(sr=>sr==null?void 0:sr.includes("@Button")))!=null&&ht.includes("Prop")&&((vt=Ql==null?void 0:Ql.find(sr=>sr==null?void 0:sr.includes("Type")))!=null&&vt.includes("Manual"))){let sr=(yn=(fr=Ql==null?void 0:Ql.find(_n=>_n==null?void 0:_n.includes("@Button")))==null?void 0:fr.split(":"))==null?void 0:yn[1];sr=((Yr=(mt=(On=sr==null?void 0:sr.replaceAll("[",""))==null?void 0:On.replaceAll("]",""))==null?void 0:mt.split(","))==null?void 0:Yr[1])??"算法执行",Ue.push(sr)}else if((In=Ql==null?void 0:Ql.find(sr=>sr==null?void 0:sr.includes("@Button")))!=null&&In.includes("Row")&&((ji=Ql==null?void 0:Ql.find(sr=>sr==null?void 0:sr.includes("Type")))!=null&&ji.includes("Manual"))){let sr=(Ui=(Hi=Ql==null?void 0:Ql.find(_n=>_n==null?void 0:_n.includes("@Button")))==null?void 0:Hi.split(":"))==null?void 0:Ui[1];sr=((Wi=(Ki=(qi=sr==null?void 0:sr.replaceAll("[",""))==null?void 0:qi.replaceAll("]",""))==null?void 0:Ki.split(","))==null?void 0:Wi[1])??"算法执行",aa.push(sr)}}(Yi=Be.value)==null||Yi.find(Ql=>(Ql==null?void 0:Ql.prop)===(qe==null?void 0:qe.prop)),da.push({label:(qe==null?void 0:qe.label)==="操作"?$?"操作":"":(qe==null?void 0:qe.label)??"",prop:(qe==null?void 0:qe.label)==="操作"?"operate":(qe==null?void 0:qe.prop)??"a"+Jl,width:qe!=null&&qe.width?parseInt(qe.width):"",fixed:(qe==null?void 0:qe.fixed)??void 0,sortable:(qe==null?void 0:qe.sortable)??!1,filterable:(qe==null?void 0:qe.filterable)??!1,operable:(qe==null?void 0:qe.operable)??!1,showSummary:(qe==null?void 0:qe.showSummary)??!1,align:(qe==null?void 0:qe.align)??"left",showOverflowTooltip:(qe==null?void 0:qe.showOverflowTooltip)??!0,isNotDrag:(qe==null?void 0:qe.isNotDrag)??!1,isEditCol:(qe==null?void 0:qe.isEditCol)??!1,isOperate:(qe==null?void 0:qe.isOperate)??!1,id:(qe==null?void 0:qe.id)??Jl,type:(qe==null?void 0:qe.label)==="操作"?"operate":void 0,formType:(qe==null?void 0:qe.formType)??(qe!=null&&qe.groupSelect?"Select":""),disabled:qe==null?void 0:qe.disabled,options:(qe==null?void 0:qe.options)??[],value:(qe==null?void 0:qe.value)??"",isExistChild:(qe==null?void 0:qe.isExistChild)??!1,mainKey:(qe==null?void 0:qe.mainKey)??Jl===0,allSelectionContents:(qe==null?void 0:qe.allContents)??[],filterContent:qe==null?void 0:qe.filterContents,menus:qe==null?void 0:qe.menus,groups:qe==null?void 0:qe.groups,words:qe==null?void 0:qe.words,filter:qe==null?void 0:qe.filter,bindMenus:qe==null?void 0:qe.bindMenus,fatherPath:qe==null?void 0:qe.fatherPath,isMainPath:qe==null?void 0:qe.isMainPath,required:(qe==null?void 0:qe.required)??!1,relatedContents:qe==null?void 0:qe.relatedContents,functionName:qe==null?void 0:qe.functionName,functionRelatedWords:qe==null?void 0:qe.functionRelatedWords,calculatorFilter:qe==null?void 0:qe.calculatorFilter})})}k.value=(Qe=me==null?void 0:me[0])==null?void 0:Qe.contents;const an=na.getNewColumnChild(da),Ri=nl=>Array.isArray(nl)?nl.map(qe=>(Array.isArray(qe==null?void 0:qe.children)&&qe.children.length>0?(qe.sortable=!1,Ri(qe.children)):(qe==null?void 0:qe.prop)==="operate"||(qe==null?void 0:qe.label)==="操作"||(qe==null?void 0:qe.type)==="operate"||(qe.sortable=!1),qe)):nl;Ri(an),await Yt(an),Bf(ne.value,an),De.value=an,xa.value=an,n.value=(ca=De.value)==null?void 0:ca.map(nl=>nl==null?void 0:nl.label);let ln=(Oa=(ha=na.getAllLeafNodes(De.value))==null?void 0:ha.filter(nl=>(nl==null?void 0:nl.type)!=="operate"))==null?void 0:Oa.map((nl,qe)=>({prop:(nl==null?void 0:nl.prop)??"a"+qe,column:nl.label}));Br.value=ln;let Wr=[];Zl.value===""?Wr=j==null?void 0:j[0]:Wr=(j==null?void 0:j.find(nl=>(nl==null?void 0:nl.selectLabel)==="("+Zl.value+")"))??(j==null?void 0:j.find(nl=>!(nl!=null&&nl.selectLabel)));let Xn=Array.isArray((dl=Wr==null?void 0:Wr.contents)==null?void 0:dl[0])&&((Za=Wr==null?void 0:Wr.contents)!=null&&Za[0].every(nl=>Array.isArray(nl)))?(gl=Wr==null?void 0:Wr.contents)==null?void 0:gl[0]:Wr==null?void 0:Wr.contents;Me!=null&&Me.contents&&((bl=Me==null?void 0:Me.contents)==null?void 0:bl.length)!==0&&(Xn=(Rl=I.cloneDeep(Xn))==null?void 0:Rl.map((nl,qe)=>{if(!Array.isArray(nl)){let Jl={};for(let Ar in nl)Ar!=="id"&&Ar!=="index"&&(Jl[Ar]=nl[Ar]);nl=Object.values(Jl)}return nl}));const vu=!!((Ga=De.value)!=null&&Ga.find(nl=>nl.prop==="index"));Xn=Qs(Xn,Me==null?void 0:Me.contents,vu);const pt=[];Xn==null||Xn.forEach((nl,qe)=>{var Ar;let Jl={};if(Array.isArray(nl)){let Cr=[];nl==null||nl.filter(zr=>!(zr!=null&&zr.id)).forEach((zr,br)=>{var Zn,ht,vt,fr,yn,On;if((Zn=ln==null?void 0:ln[br])!=null&&Zn.prop&&!Array.isArray(zr)){let mt={};mt[ln[br].column]=zr,Ia!=null&&Ia.value&&((ht=Ia==null?void 0:Ia.value)==null?void 0:ht.length)>0&&((vt=Ia==null?void 0:Ia.value)!=null&&vt.find(Yr=>JSON.stringify(Yr==null?void 0:Yr[0])===JSON.stringify(mt)))&&(Cr=(fr=Ia==null?void 0:Ia.value)==null?void 0:fr.find(Yr=>JSON.stringify(Yr==null?void 0:Yr[0])===JSON.stringify(mt))),Cr&&Cr.length>0?Jl[ln[br].prop]=Cr!=null&&Cr.find(Yr=>{var In;return((In=Object.keys(Yr))==null?void 0:In[0])===ln[br].column})?(yn=Cr==null?void 0:Cr.find(Yr=>{var In;return((In=Object.keys(Yr))==null?void 0:In[0])===ln[br].column}))==null?void 0:yn[ln[br].column]:zr:Jl[ln[br].prop]=zr}else Array.isArray(zr)&&((On=ln[br])!=null&&On.prop?Jl[ln[br].prop]=zr:Jl.children=pi(zr,ln))})}else Jl=nl;if(Array.isArray(nl)&&nl.some(Cr=>Cr==null?void 0:Cr.id)){const Cr=(Ar=nl==null?void 0:nl.find(zr=>zr.id))==null?void 0:Ar.id;pt.push(Object.assign(Jl,{id:Qt(Cr)}))}else Jl.id?pt.push(Jl):pt.push(Object.assign(Jl,{id:qe.toString()}))});try{const nl=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),qe=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null"),Jl=nl==null?void 0:nl.tableId,Ar=nl==null?void 0:nl.compIndex;if(Jl&&Array.isArray(qe)&&qe.length>0&&String(Jl)===String(c==null?void 0:c.parentTableId)&&String(Ar)===String(c==null?void 0:c.index)){const Cr=new Set(pt.map(br=>String(br==null?void 0:br.id))),zr=qe.filter(br=>!Cr.has(String(br)));if(zr.length>0){const br=nl==null?void 0:nl.pageKey,Zn=br!=null&&br.startsWith("/")?br.substring(1):br;((f==null?void 0:f[br])||(f==null?void 0:f[Zn])||[]).filter(fr=>{var yn,On;return((yn=fr==null?void 0:fr.key)==null?void 0:yn.type)==="data"&&String((On=fr==null?void 0:fr.key)==null?void 0:On.tableId)===String(Jl)&&zr.includes(fr==null?void 0:fr.id)}).forEach(fr=>{var yn;Cr.has(String(fr==null?void 0:fr.id))||(pt.push({id:fr==null?void 0:fr.id,...((yn=fr==null?void 0:fr.value)==null?void 0:yn.tableData)||{}}),Cr.add(String(fr==null?void 0:fr.id)))})}}}catch{}let ft=null;try{const nl=`ocr_committed_temp_ids_v1:${String((c==null?void 0:c.parentTableId)??"")}:${String((c==null?void 0:c.index)??"")}`,qe=JSON.parse(sessionStorage.getItem(nl)||"null");Array.isArray(qe)&&qe.length>0&&(ft=new Set(qe.map(Jl=>String(Jl))))}catch{}const Pi=Array.from(((El=fe.value)==null?void 0:El.values())||[]).filter(nl=>!(!(nl!=null&&nl._isOCRRow&&(nl==null?void 0:nl._ocrTableId)===(c==null?void 0:c.index))||ft&&ft.has(String(nl==null?void 0:nl.id)))),mu=(we.value||[]).map(nl=>String(nl==null?void 0:nl.id)),Fi=it(pt,mu);if(we.value=Mi(Fi,O,De.value),Ca.value=Fi,(Ya=Ca.value)==null||Ya.forEach(nl=>{var qe;(qe=fe.value)==null||qe.set(nl.id,nl)}),ft&&ft.size>0)try{const nl=new Set(Array.from(ft.values()));we.value=(we.value||[]).filter(qe=>!nl.has(String(qe==null?void 0:qe.id))),Ca.value=(Ca.value||[]).filter(qe=>!nl.has(String(qe==null?void 0:qe.id))),nl.forEach(qe=>{var Jl,Ar;try{(Ar=(Jl=fe.value)==null?void 0:Jl.delete)==null||Ar.call(Jl,qe)}catch{}})}catch{}const to=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),li=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null");if(to&&Array.isArray(li)&&li.length>0&&String(to==null?void 0:to.compIndex)===String(c==null?void 0:c.index)){const nl=new Set((Ca.value||[]).map(qe=>String(qe==null?void 0:qe.id)));li.filter(qe=>!nl.has(String(qe)))}if(Pi.length>0){const nl=new Set((we.value||[]).map(Jl=>Jl==null?void 0:Jl.id)),qe=Pi.filter(Jl=>!nl.has(Jl.id));qe.length>0&&(we.value=[...we.value||[],...qe],Ca.value=[...Ca.value||[],...qe],qe.forEach(Jl=>{var Ar;return(Ar=fe.value)==null?void 0:Ar.set(Jl.id,Jl)}))}}else De.value=[],pe.value=[],we.value=[],Ca.value=[],fe.value=new Map;if(aa=[...new Set(aa)],aa=aa==null?void 0:aa.map(da=>({label:da,type:"methodButton"})),((hl=Q==null?void 0:Q.contents)==null?void 0:hl.length)>0?za.value=Q==null?void 0:Q.contents:za.value=[],za.value=[...za.value,...aa],Ue=[...new Set(Ue)],Ue=Ue==null?void 0:Ue.map(da=>({label:da,type:"methodButton"})),((Qa=ae==null?void 0:ae.contents)==null?void 0:Qa.length)>0)if((Dl=(Tl=(vl=p==null?void 0:p.find(da=>(da==null?void 0:da.key)==="filterAllType"))==null?void 0:vl.value)==null?void 0:Tl.find(da=>(da==null?void 0:da.value)==="onButtonContents"))!=null&&Dl.content){let da=(wl=(Ll=(ur=p==null?void 0:p.find(Bl=>(Bl==null?void 0:Bl.key)==="filterAllType"))==null?void 0:ur.value)==null?void 0:Ll.find(Bl=>(Bl==null?void 0:Bl.value)==="onButtonContents"))==null?void 0:wl.content;if(da=(Nl=da==null?void 0:da.split(":"))==null?void 0:Nl[1],da=(Yl=da.slice(1,(da==null?void 0:da.length)-1))==null?void 0:Yl.split(","),ua.value=(Ml=ae==null?void 0:ae.contents)==null?void 0:Ml.filter(Bl=>da==null?void 0:da.find(an=>an===(Bl==null?void 0:Bl.label))),_e.value=(dr=ae==null?void 0:ae.contents)==null?void 0:dr.filter(Bl=>da==null?void 0:da.find(an=>an===(Bl==null?void 0:Bl.label))),(pr=ae==null?void 0:ae.contents)!=null&&pr.some(Bl=>(Bl==null?void 0:Bl.label)==="OCR识别")&&!((Gl=ua.value)!=null&&Gl.some(Bl=>(Bl==null?void 0:Bl.label)==="OCR识别"))){const Bl=(or=ae==null?void 0:ae.contents)==null?void 0:or.find(an=>(an==null?void 0:an.label)==="OCR识别");ua.value=[...ua.value,Bl],_e.value=[..._e.value,Bl]}_.value=!!(da!=null&&da.find(Bl=>Bl==="搜索")),F.value=!!(da!=null&&da.find(Bl=>Bl==="块状显示"))}else ua.value=ae==null?void 0:ae.contents,_e.value=ae==null?void 0:ae.contents;else ua.value=[],_e.value=[];ua.value=[...ua.value,...Ue],_e.value=[..._e.value,...Ue],typeof ga.value=="string"&&ga.value==="设备管理/试验设备"&&(c==null?void 0:c.compName)==="设备列表"?(($r=ua.value)!=null&&$r.some(da=>(da==null?void 0:da.label)==="OCR识别")||(ua.value=[...ua.value||[],{label:"OCR识别"}]),(ir=_e.value)!=null&&ir.some(da=>(da==null?void 0:da.label)==="OCR识别")||(_e.value=[..._e.value||[],{label:"OCR识别"}])):(ua.value=(ua.value||[]).filter(da=>(da==null?void 0:da.label)!=="OCR识别"),_e.value=(_e.value||[]).filter(da=>(da==null?void 0:da.label)!=="OCR识别")),(lr=ua.value)!=null&&lr.some(da=>(da==null?void 0:da.label)==="切换视图")||(ua.value=[...ua.value||[],{label:"切换视图"}]),(nr=_e.value)!=null&&nr.some(da=>(da==null?void 0:da.label)==="切换视图")||(_e.value=[..._e.value||[],{label:"切换视图"}]),Fe.value=((Li=we==null?void 0:we.value)==null?void 0:Li.length)??0,Ai(we.value),Nr.value=we.value,Al.value&&(De.value=($i=(Vi=pe.value)==null?void 0:Vi.filter(da=>(da==null?void 0:da.label)!=="操作"))==null?void 0:$i.map(da=>{var Bl;return{...da,type:"edit",optionUrl:da!=null&&da.formMenuSelect&&((Bl=da==null?void 0:da.formMenuSelect)==null?void 0:Bl.length)>0?{groupSelect:da==null?void 0:da.groupSelect,menuSelect:da==null?void 0:da.formMenuSelect,selectRelateType:"",type:da==null?void 0:da.formType}:null}}),ai())};a.watch(()=>[c.itemData,Zl.value,Rn.value,An.value,Ia==null?void 0:Ia.value],async()=>{var p,f,M,O,$,N;if((p=c==null?void 0:c.itemData)!=null&&p.find(Q=>(Q==null?void 0:Q.key)==="columnPath")&&!((f=P.value)!=null&&f.find(Q=>{var ae,j;return(Q==null?void 0:Q.key)===((j=(ae=c==null?void 0:c.itemData)==null?void 0:ae.find(me=>(me==null?void 0:me.key)==="columnPath"))==null?void 0:j.contents)}))){let Q=P.value,ae={key:(O=(M=c==null?void 0:c.itemData)==null?void 0:M.find(j=>(j==null?void 0:j.key)==="columnPath"))==null?void 0:O.contents,value:(N=($=c==null?void 0:c.itemData)==null?void 0:$.find(j=>(j==null?void 0:j.key)==="columnUsingPath"))==null?void 0:N.contents};Q!=null&&Q.find(j=>(j==null?void 0:j.key)===(ae==null?void 0:ae.key))?Q=Q==null?void 0:Q.map(j=>((j==null?void 0:j.key)===(ae==null?void 0:ae.key)&&(j.value=ae.value),j)):Q.push(ae),Ge.setTableViewContents(Q)}await Oi(c.itemData,c.allMapContents)},{deep:!0,immediate:!0}),a.watch(()=>c==null?void 0:c.operatingForm,p=>{p!=null&&p.form&&(Ot(p==null?void 0:p.form),$e.value=p==null?void 0:p.dialogTitle,Ea.value=!0,pa.value=!0)},{immediate:!0,deep:!0});const ru=()=>{var p;(p=A.value)!=null&&p.includes("read")&&(Al.value=!Al.value)},nu=()=>{cr.value=!cr.value};a.watch(()=>{var p;return(p=c==null?void 0:c.config)==null?void 0:p.viewport},p=>{var f;A.value=p,(p==null?void 0:p.length)===0?Al.value=!1:(p!=null&&p.includes("read")||(Al.value=!0),p!=null&&p.includes("edit")||(Al.value=!1)),D.value=((f=c==null?void 0:c.config)==null?void 0:f.showIndex)||Al.value},{immediate:!0}),a.watch(()=>Al.value,p=>{var f;p?(ai("viewChange"),Ge.setCacheUpdatingData(null)):(ua.value=_e.value,De.value=xa.value,R.value&&(Ge.setTableLoading(c==null?void 0:c.index),ze("change",R.value))),D.value=p||((f=c==null?void 0:c.config)==null?void 0:f.showIndex),ar.value=[]},{immediate:!0}),a.watch(()=>{var p;return(p=on.value)==null?void 0:p.length},p=>{p===0&&(be.currentPage=1)}),a.watch(()=>c==null?void 0:c.compNames,p=>{o.contents=[{label:"列表名",prop:"groupName",name:"列表名",type:"select",value:"",id:0,contents:p||[],width:1}]},{immediate:!0}),a.ref(!1);const tu=(p,f)=>{var M;ai("createClick"),f===be.pageSize&&(be.currentPage=Math.ceil(((M=we.value)==null?void 0:M.length)/be.pageSize))},ou=async(p,f,M)=>{var $,N,Q,ae,j;const O=(f==null?void 0:f.property)??(f==null?void 0:f.prop);if(O&&ro.includes(O)&&M!==void 0&&M!==null&&String(M).trim()!==""){const me=String(M).trim();if(await ei(me,p==null?void 0:p.id)){ll.ElMessage.warning("当前任务下通道号不能重复,请重新选择");const Le=($=we.value)==null?void 0:$.findIndex(Ue=>(Ue==null?void 0:Ue.id)===(p==null?void 0:p.id)),Me=Le!==-1?(Q=(N=we.value)==null?void 0:N[Le])==null?void 0:Q[O]:void 0;O&&(p[O]=Me??"");return}}if(Al.value){const me=p==null?void 0:p.id;me!=null&&(b.value.has(me)||b.value.set(me,I.cloneDeep(p)),u.value.add(me));const Ce=(ae=we.value)==null?void 0:ae.findIndex(Le=>(Le==null?void 0:Le.id)===(p==null?void 0:p.id));Ce!==-1&&O&&(we.value[Ce]={...we.value[Ce],[O]:M}),no(M,p,f);return}no(M,p,f),Il.value=I.cloneDeep(p),Je.value=p==null?void 0:p.id,Fe.value=(j=we.value)==null?void 0:j.length,$e.value=p!=null&&p._isTemp?"新增":"编辑",Lt(!1)},iu=async()=>{var p,f;try{const M=[];if(c!=null&&c.related&&Array.isArray(c.related)&&(console.log("props.related",c.related),c.related.forEach(O=>{if(typeof O=="string"&&O.includes("content_")){const $=O.split("_")[1];$&&(M.push(`content_${$}`),M.push(`struct_${$}`))}})),M.length===0&&(c!=null&&c.itemData)){const O=(f=(p=c.itemData)==null?void 0:p.find($=>($==null?void 0:$.key)==="contentTableId"))==null?void 0:f.contents;O&&(M.push(`content_${O}`),M.push(`struct_${O}`))}return M}catch(M){return console.error("获取 tableNames 失败:",M),[]}},su=async(p,f,M)=>{var N,Q;if(!M||typeof M!="string"||M.trim()===""){const ae=(f==null?void 0:f.property)??(f==null?void 0:f.prop),j=`${p==null?void 0:p.id}:${ae}`;h.value.delete(j),y.value.set(j,!1);return}const O=(f==null?void 0:f.property)??(f==null?void 0:f.prop),$=`${p==null?void 0:p.id}:${O}`;y.value.set($,!0);try{const ae=await iu();if(ae.length===0){console.warn("未找到同名表,跳过全局搜索"),h.value.delete($),y.value.set($,!1);return}const j=parseInt((N=Vl.value)==null?void 0:N.plat_id);if(!j){console.warn("platId 无效,跳过全局搜索"),h.value.delete($),y.value.set($,!1);return}const me=await I.getAllTables({platId:j,tableNames:ae}),Ce=((Q=me==null?void 0:me.data)==null?void 0:Q.result)||[],Le=[],Me=[];for(let Ue=0;Ue<Ce.length;Ue+=2)Ue+1<Ce.length&&Me.push([Ce[Ue],Ce[Ue+1]]);Me.forEach(([Ue,aa])=>{var Ra;if(!Array.isArray(Ue)||Ue.length===0||!Array.isArray(aa)||aa.length===0)return;const Va=aa[0];let Da=((Ra=Va==null?void 0:Va.结构)==null?void 0:Ra.contents)??[];if(!Array.isArray(Da)||Da.length===0)return;let la=I.cloneDeep(Da);if(Array.isArray(la==null?void 0:la[0])&&(la=na.getColumnChild(la[0])),!Array.isArray(la)||la.length===0||!la.some(Na=>(Na==null?void 0:Na.prop)===O))return;[...Ue].sort((Na,ge)=>{const ba=Number((Na==null?void 0:Na.update_time)??0);return Number((ge==null?void 0:ge.update_time)??0)-ba}).slice(0,20).forEach(Na=>{const ge=Na[O];if(ge!=null){const ba=String(ge);ba.toLowerCase().includes(M.toLowerCase())&&Le.findIndex(ce=>{var E;return Na.id&&((E=ce.rowData)==null?void 0:E.id)===Na.id?!0:ce.label===ba})===-1&&Le.push({label:ba,rowData:I.cloneDeep(Na),sourceTable:(Va==null?void 0:Va.source_table)||""})}})}),h.value.set($,Le)}catch(ae){console.error("全局搜索建议失败:",ae),h.value.delete($)}finally{y.value.set($,!1)}},cu=(p,f,M)=>{if(!Al.value)return;const O=(f==null?void 0:f.property)??(f==null?void 0:f.prop),$=(f==null?void 0:f.formType)||(f==null?void 0:f.columnType)||"";if($&&$.toUpperCase()!=="INPUT"&&$!=="")return;const N=`${p==null?void 0:p.id}:${O}`;if(v.has(N)&&clearTimeout(v.get(N)),!M||M.trim()===""){h.value.delete(N),y.value.set(N,!1);return}const Q=setTimeout(()=>{su(p,{prop:O,property:O},M),v.delete(N)},300);v.set(N,Q)};function uu(p,f){const M=`${p==null?void 0:p.id}:${(f==null?void 0:f.property)??(f==null?void 0:f.prop)}`;return h.value.get(M)||[]}const du=(p,f,M)=>{var Ce;if(!M||!M.rowData)return;const O=M.rowData,$=p==null?void 0:p.id,N=(f==null?void 0:f.property)??(f==null?void 0:f.prop),ae=(na.getAllLeafNodes(De.value)||[]).filter(Le=>(Le==null?void 0:Le.type)!=="operate"&&(Le==null?void 0:Le.label)!=="操作"&&(Le==null?void 0:Le.prop)!=="operate");ae.forEach(Le=>{const Me=Le==null?void 0:Le.prop;Me&&O[Me]!==void 0&&(p[Me]=O[Me])});const j=(Ce=we.value)==null?void 0:Ce.findIndex(Le=>(Le==null?void 0:Le.id)===$);j!==-1&&ae.forEach(Le=>{const Me=Le==null?void 0:Le.prop;Me&&O[Me]!==void 0&&(we.value[j][Me]=O[Me])}),$!=null&&(b.value.has($)||b.value.set($,I.cloneDeep(p)),u.value.add($));const me=`${$}:${N}`;h.value.delete(me),y.value.set(me,!1),no(p[N],p,f)},Vr=p=>{var j,me,Ce,Le,Me,Ue,aa,Va,Da,la;const{row:f,column:M,item:O,slotData:$}=p;let N=f!=null&&f[M==null?void 0:M.prop]||(f==null?void 0:f[M==null?void 0:M.prop])===0?((me=(j=f==null?void 0:f[M==null?void 0:M.prop])==null?void 0:j[0])==null?void 0:me.contents)??((f==null?void 0:f[M==null?void 0:M.prop])===0?"0":f==null?void 0:f[M==null?void 0:M.prop]):((Le=(Ce=f==null?void 0:f[O==null?void 0:O.prop])==null?void 0:Ce[0])==null?void 0:Le.contents)??(f==null?void 0:f[O==null?void 0:O.prop])??((Ue=(Me=$==null?void 0:$[O==null?void 0:O.prop])==null?void 0:Me[0])==null?void 0:Ue.contents)??($==null?void 0:$[O==null?void 0:O.prop])??((Da=(Va=f==null?void 0:f[(aa=O==null?void 0:O.child)==null?void 0:aa.prop])==null?void 0:Va[0])==null?void 0:Da.contents)??(f==null?void 0:f[(la=O==null?void 0:O.child)==null?void 0:la.prop]),ae=Array.isArray(N)&&!(N!=null&&N.every(Wa=>typeof Wa=="string"||typeof Wa=="number"))?"查看":N;if(ae=Array.isArray(ae)?ae.join(","):ae,(M==null?void 0:M.formType)==="Date")if(!ae||ae===""||ae===null||ae===void 0)ae="";else{const Wa=I.dayjs(ae,["YYYY-MM-DD","YYYY/MM/DD","YYYY年MM月DD日","YYYYMMDD"],!0);ae=Wa.isValid()?Wa.format("YYYYMMDD"):ae??""}return ae},pu=p=>{var me,Ce,Le,Me,Ue,aa,Va,Da,la,Wa;const{row:f,column:M,item:O,slotData:$}=p;let N=f!=null&&f[M==null?void 0:M.prop]?((Ce=(me=f==null?void 0:f[M==null?void 0:M.prop])==null?void 0:me[0])==null?void 0:Ce.contents)??(f==null?void 0:f[M==null?void 0:M.prop]):((Me=(Le=f==null?void 0:f[O==null?void 0:O.prop])==null?void 0:Le[0])==null?void 0:Me.contents)??(f==null?void 0:f[O==null?void 0:O.prop])??((aa=(Ue=$==null?void 0:$[O==null?void 0:O.prop])==null?void 0:Ue[0])==null?void 0:aa.contents)??($==null?void 0:$[O==null?void 0:O.prop])??((la=(Da=f==null?void 0:f[(Va=O==null?void 0:O.child)==null?void 0:Va.prop])==null?void 0:Da[0])==null?void 0:la.contents)??(f==null?void 0:f[(Wa=O==null?void 0:O.child)==null?void 0:Wa.prop]);const ae=Array.isArray(N)&&!(N!=null&&N.every(sa=>typeof sa=="string"||typeof sa=="number")),j=Array.isArray(N)&&(N==null?void 0:N.find(sa=>sa==null?void 0:sa.url));return ae&&j},fu=p=>{var $,N;if(!(p!=null&&p.column))return!1;const f=ga.value==="试验任务/任务管理",M=(c==null?void 0:c.compName)==="任务列表",O=(($=p==null?void 0:p.column)==null?void 0:$.label)==="任务状态"||((N=p==null?void 0:p.column)==null?void 0:N.prop)==="任务状态";return f&&M&&O},hu=(p,f)=>p.find(M=>Object.values(M).some(O=>O===f));return a.watch(()=>Ae.value,async p=>{if(p){ea.setContentLoading(!0),await a.nextTick();const f=hu(we.value,p==null?void 0:p.data);if(!f)return ea.setContentLoading(!1);await vn(p==null?void 0:p.data,null,f,{data:p==null?void 0:p.data}),ea.setContentLoading(!1)}},{deep:!0,immediate:!0}),a.watch(()=>c==null?void 0:c.cacheNewData,p=>{var f;p&&(Array.isArray(p)?p.forEach(M=>{var O,$,N,Q,ae;if(换,String(M==null?void 0:M.compId)===String(c==null?void 0:c.index)&&(M!=null&&M.resId)&&((O=M==null?void 0:M.data)!=null&&O.id)){const j=($=M==null?void 0:M.data)==null?void 0:$.id,me=M==null?void 0:M.resId;if(we.value=(N=we.value)==null?void 0:N.map(Ce=>{if((Ce==null?void 0:Ce.id)===j){const Le={...Ce,id:me};return delete Le._isOCRRow,delete Le._ocrTableId,Le}return Ce}),(ae=(Q=fe.value)==null?void 0:Q.has)!=null&&ae.call(Q,j)){const Le={...fe.value.get(j)||{},id:me};delete Le._isOCRRow,delete Le._ocrTableId,fe.value.delete(j),fe.value.set(me,Le)}Te(c==null?void 0:c.index,j,me)}}):String(p==null?void 0:p.compId)===String(c==null?void 0:c.index)&&(we.value=(f=we.value)==null?void 0:f.map(M=>{var O;if((M==null?void 0:M.id)===((O=p==null?void 0:p.data)==null?void 0:O.id)){const $={...M,id:p==null?void 0:p.resId};return delete $._isOCRRow,delete $._ocrTableId,$}return M})))},{immediate:!0,deep:!0}),(p,f)=>{var Wa,sa,Ra,Na;const M=a.resolveComponent("svg-icon"),O=a.resolveComponent("el-popover"),$=a.resolveComponent("el-switch"),N=a.resolveComponent("el-checkbox"),Q=a.resolveComponent("el-radio"),ae=a.resolveComponent("el-radio-group"),j=a.resolveComponent("el-checkbox-group"),me=a.resolveComponent("el-button"),Ce=a.resolveComponent("LookComponent"),Le=a.resolveComponent("el-icon"),Me=a.resolveComponent("el-progress"),Ue=a.resolveComponent("el-alert"),aa=a.resolveComponent("el-table-column"),Va=a.resolveComponent("el-table"),Da=a.resolveComponent("el-upload"),la=a.resolveComponent("el-text");return a.openBlock(),a.createElementBlock("div",p0,[Or.value?(a.openBlock(),a.createBlock(pl.ssTable,{id:"excel-table",pageObj:be,showIndex:D.value,isTree:(Wa=l.compItem)==null?void 0:Wa.isTree,summaryInfo:G,columns:De.value,defaultSort:X,isCardViewport:cr.value,checkedColumns:n.value,key:gn.value+De.value,tableData:on.value,isEditViewport:Al.value,isShowPagination:ka.value,isShowEdit:!1,isShowDelete:!1,allowSelect:w.value,onDbClickRow:Yn,extraButton:ua.value,rowButton:za.value,cacheExtraButtons:_e.value,isClearSelection:((sa=ar.value)==null?void 0:sa.length)===0,onDoCurrentChange:Dt,onDoSizeChange:zo,onSortChange:Mo,onContentClick:vn,onRowClick:Mt,onSelectChange:Po,onCellChange:ou,onCellInput:cu,onSelectSuggest:du,onChange:no,onPreview:Xt,onSubmitEditingTable:Kt,onHandleColEditChange:Ut,onHandleColTypeChange:Ir,onClickButton:Zo,onAddNewRow:Vo,bottomButton:k.value},a.createSlots({headerButton:a.withCtx(ge=>{var ba,ta;return[l.showHeader?(a.openBlock(),a.createBlock(Hp,{key:0,id:"tableHeaderButton",pageLayout:l.pageLayout,lockingPage:a.unref(ie)===a.unref(ga),filterValues:Uo.value,selectNums:(ba=ar.value)==null?void 0:ba.length,dataNums:(ta=we.value)==null?void 0:ta.length,compName:l.compName,isDevMode:l.isDevMode,buttons:ge.buttons,onButtonClick:f[1]||(f[1]=(ce,E,Oe)=>Zo(ce,E,{extra:Oe})),columns:De.value,onFilter:eo,onGetImportData:Io,level:l.level,filterShow:_.value},null,8,["pageLayout","lockingPage","filterValues","selectNums","dataNums","compName","isDevMode","buttons","columns","level","filterShow"])):a.createCommentVNode("",!0)]}),viewport:a.withCtx(()=>{var ge,ba,ta,ce;return[((ge=we.value)==null?void 0:ge.length)>0&&l.allowOperate&&F.value?(a.openBlock(),a.createElementBlock("div",v0,[(ba=A.value)!=null&&ba.includes("read")&&((ta=A.value)!=null&&ta.includes("edit"))&&((ce=za.value)!=null&&ce.some(E=>(E==null?void 0:E.label)==="编辑"))&&!cr.value&&a.unref(ie)!==a.unref(ga)?(a.openBlock(),a.createElementBlock("span",{key:0,title:"编辑表格",onClick:ru},[a.createVNode(M,{name:"editTable",class:"view-icon"})])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)]}),rowCreate:a.withCtx(({row:ge,index:ba})=>[a.createElementVNode("span",{title:"新增",class:"row-create-wrap",onClick:ta=>tu(ge,ba)},[a.createVNode(M,{name:"rowCreate",style:{width:"10px",height:"10px"}})],8,m0)]),operateCol:a.withCtx(()=>[a.createVNode(O,{title:"选择显示列信息",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:Zc},{reference:a.withCtx(()=>[a.createElementVNode("span",y0,[a.createVNode(M,{name:"operate",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),default:a.withCtx(()=>[a.createElementVNode("div",g0,[f[21]||(f[21]=a.createElementVNode("div",{class:"group-title"},"表格操作",-1)),a.createVNode($,{"model-value":g.value,"active-text":"排序","inactive-text":"",style:{"margin-right":"8px"},onChange:f[2]||(f[2]=ge=>Gt(ge))},null,8,["model-value"]),f[22]||(f[22]=a.createElementVNode("div",{class:"group-title"},"表格列操作",-1)),a.createVNode(j,{modelValue:n.value,"onUpdate:modelValue":f[3]||(f[3]=ge=>n.value=ge),style:{height:"100%"},min:2,ref_key:"checkboxGroupRef",ref:s},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Qr.value,ge=>(a.openBlock(),a.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:ge.label},[a.createVNode(N,{value:ge.label,style:{width:"100%",marginRight:0}},{default:a.withCtx(()=>[a.createElementVNode("span",{title:ge.label,style:{display:"inline-block",width:"250px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},a.toDisplayString(ge.label),9,b0)]),_:2},1032,["value"]),a.createVNode(O,{"popper-class":"col-operate-popover",title:"列操作",placement:"left",teleported:!1,trigger:"hover"},{reference:a.withCtx(()=>[a.createVNode(M,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:a.withCtx(()=>{var ba;return[a.createElementVNode("div",k0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((ba=Object.keys(ge))==null?void 0:ba.filter(ta=>{var ce;return(ce=J.value)==null?void 0:ce.find(E=>(E==null?void 0:E.value)===ta)}),ta=>{var ce,E;return a.openBlock(),a.createElementBlock("div",{key:ta},[T[ta]=="radio"?(a.openBlock(),a.createElementBlock("div",x0,[f[20]||(f[20]=a.createElementVNode("div",null,"固定:",-1)),a.createVNode(ae,{"model-value":ge==null?void 0:ge[ta],onChange:Oe=>Hn(Oe,ta,ge)},{default:a.withCtx(()=>{var Oe,xe;return[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((xe=(Oe=J.value)==null?void 0:Oe.find(Qe=>(Qe==null?void 0:Qe.value)===ta))==null?void 0:xe.options,Qe=>(a.openBlock(),a.createBlock(Q,{key:Qe==null?void 0:Qe.value,label:Qe==null?void 0:Qe.value,value:Qe==null?void 0:Qe.value},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(Qe==null?void 0:Qe.label),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["model-value","onChange"])])):a.createCommentVNode("",!0),T[ta]=="switch"?(a.openBlock(),a.createBlock($,{key:1,"model-value":ge==null?void 0:ge[ta],"active-text":(E=(ce=J.value)==null?void 0:ce.find(Oe=>(Oe==null?void 0:Oe.value)===ta))==null?void 0:E.label,onChange:Oe=>Hn(Oe,ta,ge)},null,8,["model-value","active-text","onChange"])):a.createCommentVNode("",!0)])}),128))])]}),_:2},1024),a.createElementVNode("span",_0,[a.createVNode(M,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:1},8,["modelValue"])])]),_:1})]),content:a.withCtx(ge=>{var ba,ta,ce,E,Oe,xe,Qe,ca,ha,Oa,dl,Za,gl,bl,Rl,Ga,El,Ya,hl,Qa;return[((ba=ge==null?void 0:ge.column)==null?void 0:ba.label)==="证书附件"||((ta=ge==null?void 0:ge.column)==null?void 0:ta.prop)==="证书附件"?(a.openBlock(),a.createElementBlock("div",w0,[a.createVNode(M,{name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:a.withModifiers(vl=>en(ge),["stop"]),title:"查看OCR图片"},null,8,["onClick"])])):pu(ge)?(a.openBlock(),a.createBlock(O,{key:1,"popper-class":"file-popover",placement:"right",trigger:"hover",effect:"light",width:"auto"},{reference:a.withCtx(()=>[a.createElementVNode("span",C0,a.toDisplayString(Vr(ge)),1)]),default:a.withCtx(()=>{var vl,Tl;return[a.createElementVNode("div",E0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((Tl=ge==null?void 0:ge.row)==null?void 0:Tl[(vl=ge==null?void 0:ge.column)==null?void 0:vl.prop],Dl=>(a.openBlock(),a.createElementBlock("div",S0,[a.createElementVNode("div",{class:"prop-url",title:qn(Dl),onClick:ur=>st(Dl)},a.toDisplayString(qn(Dl)),9,D0),a.createElementVNode("div",{class:"prop-download",onClick:ur=>jo(Dl)}," 下载 ",8,B0)]))),256))])]}),_:2},1024)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[fu(ge)?(a.openBlock(),a.createBlock(Su,{key:0,value:Vr(ge)},null,8,["value"])):(a.openBlock(),a.createElementBlock("div",{key:1,class:"table-cell-content",style:a.normalizeStyle({color:!Array.isArray(Vr(ge))&&((E=(ce=Vr(ge))==null?void 0:ce.toString())!=null&&E.includes(".txt")||(xe=(Oe=Vr(ge))==null?void 0:Oe.toString())!=null&&xe.includes(".cpt")||(ca=(Qe=Vr(ge))==null?void 0:Qe.toString())!=null&&ca.includes(".cyd"))?"var(--vertical-menuitem-active-bg)":"",textDecoration:!Array.isArray(Vr(ge))&&((Oa=(ha=Vr(ge))==null?void 0:ha.toString())!=null&&Oa.includes(".txt")||(Za=(dl=Vr(ge))==null?void 0:dl.toString())!=null&&Za.includes(".cpt")||(bl=(gl=Vr(ge))==null?void 0:gl.toString())!=null&&bl.includes(".cyd"))?"underline":"",cursor:!Array.isArray(Vr(ge))&&((Ga=(Rl=Vr(ge))==null?void 0:Rl.toString())!=null&&Ga.includes(".txt")||(Ya=(El=Vr(ge))==null?void 0:El.toString())!=null&&Ya.includes(".cpt")||(Qa=(hl=Vr(ge))==null?void 0:hl.toString())!=null&&Qa.includes(".cyd"))?"pointer":"",marginLeft:(ge==null?void 0:ge.colIndex)===0?`${((ge==null?void 0:ge.level)??0)*20}px`:0}),onClick:vl=>Fn(Vr(ge))},a.toDisplayString(Vr(ge)===0?"0":Vr(ge)),13,N0))],64))]}),_:2},[((Ra=za.value)==null?void 0:Ra.length)>0?{name:"actions",fn:a.withCtx(({item:ge,fIndex:ba})=>[a.createVNode(O,{title:"",placement:"left-start","popper-class":"menu-operate-popover"},{reference:a.withCtx(()=>[a.createVNode(M,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"},onClick:f[0]||(f[0]=a.withModifiers(()=>{},["stop"]))})]),default:a.withCtx(()=>[a.createElementVNode("div",f0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(zt(za.value,ge),(ta,ce)=>(a.openBlock(),a.createElementBlock("div",{class:"menu-config-item",key:ce,onClick:a.withModifiers(E=>Zo(ta==null?void 0:ta.label,ge,{extra:ta}),["stop"])},[a.createElementVNode("div",{style:a.normalizeStyle({color:ta==null?void 0:ta.textColor}),class:"extra-button-label"},a.toDisplayString(ta==null?void 0:ta.label),5)],8,h0))),128))])]),_:2},1024)]),key:"0"}:void 0]),1032,["pageObj","showIndex","isTree","summaryInfo","columns","defaultSort","isCardViewport","checkedColumns","tableData","isEditViewport","isShowPagination","allowSelect","extraButton","rowButton","cacheExtraButtons","isClearSelection","bottomButton"])):a.createCommentVNode("",!0),Al.value?(a.openBlock(),a.createElementBlock("div",T0,[a.createVNode(me,{id:"themeBorderButton",onClick:Ro},{default:a.withCtx(()=>f[23]||(f[23]=[a.createTextVNode("取消")])),_:1,__:[23]}),a.createVNode(me,{class:"ok-button",id:"themeButton",onClick:Nt},{default:a.withCtx(()=>f[24]||(f[24]=[a.createTextVNode("保存")])),_:1,__:[24]})])):a.createCommentVNode("",!0),a.createVNode(vr.ssDialog,{title:$e.value,visible:pa.value,width:Hl.value,onBeforeDestroy:Jt,style:{height:"74%"}},{default:a.withCtx(()=>[a.createElementVNode("div",A0,[a.createVNode(pl.ssForm,{ref_key:"formRef",ref:re,rowContents:Z.value,showOperator:!1,onChange:Qc,isEnableWrap:!1,onFixChangeValue:Ho,onClickTrigger:Un,isEdit:Ze.value,onBlurChange:Wt,onCreate:ot,onTagChange:Sn},null,8,["rowContents","isEdit"])])]),footer:a.withCtx(()=>[Ea.value?(a.openBlock(),a.createElementBlock("div",z0,[a.createVNode(me,{onClick:f[4]||(f[4]=ge=>pa.value=!1),id:"themeBorderButton"},{default:a.withCtx(()=>f[25]||(f[25]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[25]}),a.createVNode(me,{class:"ok-button",onClick:f[5]||(f[5]=ge=>Lt(!0)),id:"themeButton"},{default:a.withCtx(()=>f[26]||(f[26]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[26]})])):a.createCommentVNode("",!0)]),_:1},8,["title","visible","width"]),a.createVNode(vr.ssDialog,{title:$e.value,visible:K.value,width:je.value,onBeforeDestroy:f[7]||(f[7]=ge=>K.value=!1)},{default:a.withCtx(()=>[a.createVNode(lf)]),footer:a.withCtx(()=>[a.createElementVNode("div",M0,[a.createVNode(me,{onClick:f[6]||(f[6]=ge=>K.value=!1),class:"cancel-button",id:"themeBorderButton"},{default:a.withCtx(()=>f[27]||(f[27]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[27]}),a.createVNode(me,{class:"ok-button",onClick:qo,id:"themeButton"},{default:a.withCtx(()=>f[28]||(f[28]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[28]})])]),_:1},8,["title","visible","width"]),Ha.value?(a.openBlock(),a.createBlock(pl.ssFilePreview,{key:2,fileDataList:ee.value,onDestroy:ao},null,8,["fileDataList"])):a.createCommentVNode("",!0),Ke.value?(a.openBlock(),a.createBlock(vr.ssDialog,{key:3,visible:Ke.value,onBeforeDestroy:Jc,style:{height:"80vh",width:"80vw"},"body-class":"three-dialog-body","footer-class":"three-dialog-footer"},{default:a.withCtx(()=>[a.createVNode(bo.ThreeViewerHost,{files:Ye.value,threeData:te.value},null,8,["files","threeData"])]),_:1},8,["visible"])):a.createCommentVNode("",!0),a.createVNode(vr.ssDialog,{visible:p.componentVisible,onBeforeDestroy:f[8]||(f[8]=ge=>p.componentVisible=!1),width:je.value,style:{height:"70vh"}},{default:a.withCtx(()=>[a.createVNode(Ce,{dialogItem:kn.value},null,8,["dialogItem"])]),_:1},8,["visible","width"]),a.createVNode(vr.ssDialog,{title:"OCR扫描录入",visible:il.value,"close-on-click-modal":!1,onBeforeDestroy:Cl,width:"1000px",dialogHeight:700,minWidth:900,minHeight:600,class:"ocr-upload-dialog",resizable:!0},{default:a.withCtx(()=>[f[39]||(f[39]=a.createElementVNode("div",{class:"ocr-header-bg"},null,-1)),a.createElementVNode("div",O0,[a.createElementVNode("div",I0,[a.createElementVNode("div",{class:a.normalizeClass(["ocr-step-item",{active:ue.value===1}])},f[29]||(f[29]=[a.createElementVNode("div",{class:"step-circle"},"1",-1),a.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件识别",-1)]),2),f[32]||(f[32]=a.createElementVNode("div",{class:"ocr-step-connector"},null,-1)),a.createElementVNode("div",{class:a.normalizeClass(["ocr-step-item",{active:ue.value===2}])},f[30]||(f[30]=[a.createElementVNode("div",{class:"step-circle"},"2",-1),a.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件确认",-1)]),2),f[33]||(f[33]=a.createElementVNode("div",{class:"ocr-step-connector"},null,-1)),a.createElementVNode("div",{class:a.normalizeClass(["ocr-step-item",{active:ue.value===3}])},f[31]||(f[31]=[a.createElementVNode("div",{class:"step-circle"},"3",-1),a.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件提交",-1)]),2)]),ue.value===1?(a.openBlock(),a.createElementBlock("div",L0,[a.createVNode(me,{onClick:Xo,class:"ocr-action-btn",disabled:ma.value,size:"default"},{default:a.withCtx(()=>f[34]||(f[34]=[a.createTextVNode("扫描文件 ")])),_:1,__:[34]},8,["disabled"]),a.createVNode(me,{onClick:Lr,class:"ocr-action-btn",disabled:ma.value,size:"default"},{default:a.withCtx(()=>f[35]||(f[35]=[a.createTextVNode("上传文件 ")])),_:1,__:[35]},8,["disabled"])])):a.createCommentVNode("",!0),ue.value===1?(a.openBlock(),a.createElementBlock("div",V0,[a.createElementVNode("div",$0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(wa.value,(ge,ba)=>{var ta;return a.openBlock(),a.createElementBlock("div",{key:ba,class:"ocr-file-item"},[a.createElementVNode("div",R0,[ge.raw&&((ta=ge.raw.type)!=null&&ta.startsWith("image/"))?(a.openBlock(),a.createElementBlock("img",{key:0,src:_l(ge),alt:"预览",class:"thumbnail-image"},null,8,P0)):(a.openBlock(),a.createElementBlock("div",F0,[a.createVNode(Le,{size:40},{default:a.withCtx(()=>[a.createVNode(a.unref(ll.document_default))]),_:1})])),a.createElementVNode("div",{class:a.normalizeClass(["file-progress-ring",{uploading:yl(ge)==="uploading",processing:yl(ge)==="processing",completed:yl(ge)==="completed"||yl(ge)==="uploaded",failed:yl(ge)==="failed"}])},[(a.openBlock(),a.createElementBlock("svg",j0,[f[36]||(f[36]=a.createElementVNode("circle",{class:"progress-ring-bg",cx:"18",cy:"18",r:"16",fill:"none",stroke:"#e4e7ed","stroke-width":"2"},null,-1)),a.createElementVNode("circle",{class:a.normalizeClass(["progress-ring-fill",{completed:yl(ge)==="completed"||yl(ge)==="uploaded",uploading:yl(ge)==="uploading",processing:yl(ge)==="processing",failed:yl(ge)==="failed"}]),cx:"18",cy:"18",r:"16",fill:"none",stroke:yl(ge)==="failed"?"#f56c6c":yl(ge)==="completed"||yl(ge)==="uploaded"?"#67c23a":"#409eff","stroke-width":yl(ge)==="completed"||yl(ge)==="uploaded"||yl(ge)==="failed"?3:2,"stroke-dasharray":Ol(ge),"stroke-dashoffset":"0","stroke-linecap":"round",transform:"rotate(-90 18 18)"},null,10,H0)])),yl(ge)==="completed"||yl(ge)==="uploaded"?(a.openBlock(),a.createElementBlock("div",U0,[a.createVNode(Le,{class:"check-icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(ll.check_default))]),_:1})])):a.createCommentVNode("",!0),yl(ge)==="failed"?(a.openBlock(),a.createElementBlock("div",q0,[a.createVNode(Le,{class:"error-icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(ll.close_default))]),_:1})])):a.createCommentVNode("",!0)],2),a.createElementVNode("div",{class:"file-delete-btn",onClick:ce=>Jn(ba)},[a.createVNode(Le,null,{default:a.withCtx(()=>[a.createVNode(a.unref(ll.close_default))]),_:1})],8,K0)]),a.createElementVNode("div",W0,a.toDisplayString(ge.name||"文件名123"),1)])}),128))]),wa.value.length>0?(a.openBlock(),a.createElementBlock("div",Y0,[a.createVNode(me,{onClick:Ve,class:"ocr-start-recognize-btn",disabled:ma.value||wa.value.length===0,size:"default"},{default:a.withCtx(()=>f[37]||(f[37]=[a.createTextVNode("开始识别 ")])),_:1,__:[37]},8,["disabled"])])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),ue.value===1?(a.openBlock(),a.createElementBlock("div",G0,[a.createVNode(Me,{percentage:Ee.value,"stroke-width":8},null,8,["percentage"])])):a.createCommentVNode("",!0),ue.value===2?(a.openBlock(),a.createElementBlock("div",J0,[a.createElementVNode("div",X0,[a.createVNode(Ue,{title:"请核对识别结果。",type:"info",closable:!1,"show-icon":""})]),a.createElementVNode("div",Z0,[a.createVNode(Va,{data:Ua.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:a.withCtx(()=>[a.createVNode(aa,{type:"index",label:"序号",width:"60",fixed:""}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(ve.value,ge=>(a.openBlock(),a.createBlock(aa,{key:ge.prop,prop:ge.prop,"min-width":ge.minWidth||230,"class-name":ge.isAccuracy?"accuracy-column":""},{header:a.withCtx(()=>[a.createElementVNode("div",Q0,[a.createElementVNode("span",null,a.toDisplayString(ge.label),1)])]),default:a.withCtx(({row:ba,$index:ta})=>{var ce,E,Oe;return[ge.isAccuracy?(a.openBlock(),a.createElementBlock("span",{key:0,class:"accuracy-value",style:a.normalizeStyle({color:rl(ba[ge.prop]),fontWeight:500})},a.toDisplayString(tl(ba[ge.prop])),5)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[al.value!==ta?(a.openBlock(),a.createElementBlock("span",e3,a.toDisplayString(ba[ge.prop]),1)):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(Xa(ge.prop)),{key:1,modelValue:ba[ge.prop],"onUpdate:modelValue":xe=>ba[ge.prop]=xe,size:"small",placeholder:"请输入"+ge.label,content:((ce=fl(ge.prop))==null?void 0:ce.contents)??((E=fl(ge.prop))==null?void 0:E.options)??[],optionUrl:(Oe=fl(ge.prop))==null?void 0:Oe.optionUrl,onChange:xe=>Ta(ta,ge.prop,xe),onFocus:xe=>cl.value=ge.prop,onBlur:f[9]||(f[9]=xe=>cl.value="")},null,40,["modelValue","onUpdate:modelValue","placeholder","content","optionUrl","onChange","onFocus"]))],64))]}),_:2},1032,["prop","min-width","class-name"]))),128)),a.createVNode(aa,{label:"编辑",width:"80",fixed:"right"},{default:a.withCtx(({$index:ge})=>[al.value===ge?(a.openBlock(),a.createBlock(Le,{key:0,class:"ocr-edit-icon editing",style:{"margin-left":"12px"},onClick:a.withModifiers(ba=>sl(ge),["stop"])},{default:a.withCtx(()=>[a.createVNode(a.unref(ll.check_default))]),_:2},1032,["onClick"])):(a.openBlock(),a.createBlock(M,{key:1,name:"edit_101",class:"ocr-edit-icon",onClick:a.withModifiers(ba=>sl(ge),["stop"])},null,8,["onClick"]))]),_:1})]),_:1},8,["data"])])])):a.createCommentVNode("",!0),ue.value===3?(a.openBlock(),a.createElementBlock("div",a3,[a.createVNode(Le,{size:"32",class:"ocr-success-icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(ll.check_default))]),_:1}),f[38]||(f[38]=a.createElementVNode("div",{class:"ocr-success-text"},"文件提交成功",-1))])):a.createCommentVNode("",!0)]),a.createVNode(Da,{ref:"ocrUploadRef","file-list":wa.value,"onUpdate:fileList":f[10]||(f[10]=ge=>wa.value=ge),multiple:"",action:"","auto-upload":!1,limit:20,accept:"image/*,application/pdf","on-change":W,"show-file-list":!1,class:"ocr-upload-input",style:{display:"none"}},null,8,["file-list"])]),footer:a.withCtx(()=>[ue.value!==3?(a.openBlock(),a.createElementBlock("div",l3,[a.createVNode(me,{onClick:mr,class:"ocr-start-recognize-btn",disabled:ue.value===1||ma.value},{default:a.withCtx(()=>f[40]||(f[40]=[a.createTextVNode(" 上一步 ")])),_:1,__:[40]},8,["disabled"]),a.createVNode(me,{onClick:Fr,class:"ocr-start-recognize-btn",disabled:ma.value},{default:a.withCtx(()=>f[41]||(f[41]=[a.createTextVNode(" 下一步 ")])),_:1,__:[41]},8,["disabled"])])):a.createCommentVNode("",!0)]),_:1},8,["visible"]),a.createVNode(xf,{visible:ut.value,onConfirm:i,onCancel:f[11]||(f[11]=ge=>ut.value=!1)},null,8,["visible"]),a.createVNode(id,{visible:oa.value,"onUpdate:visible":f[12]||(f[12]=ge=>oa.value=ge),versions:va.value},null,8,["visible","versions"]),a.createVNode(Wu,{visible:ul.value,"onUpdate:visible":f[13]||(f[13]=ge=>ul.value=ge),images:Wl.value,"default-image-name":Kl.value,"field-meta":al.value!==null?((Na=Ua.value[al.value])==null?void 0:Na.__ocrFieldMeta)||{}:{},"focused-field-name":cl.value,onClose:f[14]||(f[14]=ge=>ul.value=!1),class:"ocr-img-preview-dialog"},null,8,["visible","images","default-image-name","field-meta","focused-field-name"]),a.createVNode(kd,{visible:Fl.value,"onUpdate:visible":f[15]||(f[15]=ge=>Fl.value=ge),candidates:Ul.value,"name-prop":un.value,"mfr-prop":Jr.value,columns:De.value,onSubmit:tn,onPreviewFile:mn},null,8,["visible","candidates","name-prop","mfr-prop","columns"]),a.createVNode(Dd,{visible:Ba.value,"onUpdate:visible":f[16]||(f[16]=ge=>Ba.value=ge),ocrPreviewData:Ua.value,"onUpdate:ocrPreviewData":f[17]||(f[17]=ge=>Ua.value=ge),ocrSelectedFields:ol.value,"onUpdate:ocrSelectedFields":f[18]||(f[18]=ge=>ol.value=ge),ocrPreviewColumns:ve.value,onConfirm:Xe,onFieldChange:f[19]||(f[19]=({rowIndex:ge,prop:ba,value:ta})=>Ta(ge,ba,ta))},null,8,["visible","ocrPreviewData","ocrSelectedFields","ocrPreviewColumns"]),a.createVNode(vr.ssDialog,{title:o.title,visible:o.show,width:o.width,onBeforeDestroy:L},{default:a.withCtx(()=>[a.createElementVNode("div",r3,[a.createVNode(pl.ssForm,{rowContents:o==null?void 0:o.contents,formRules:o==null?void 0:o.formRules,showOperator:!1,buttonValue:o.buttonValue,isEdit:Ze.value,isStartJustify:!1,onOnButtonClick:U},null,8,["rowContents","formRules","buttonValue","isEdit"])])]),_:1},8,["title","visible","width"]),a.createVNode(vr.ssDialog,{title:d.title,visible:d.show,width:d.width,alignCenter:!0,onBeforeDestroy:m},{header:a.withCtx(()=>[a.createVNode(la,{size:"small",type:"danger",style:{width:"100%"}},{default:a.withCtx(()=>f[42]||(f[42]=[a.createTextVNode("(选择【覆盖】,可能会影响到原数据的引用关系;选择【取消】将会放弃重复数据的导入。请谨慎操作!)")])),_:1,__:[42]})]),footer:a.withCtx(()=>[a.createElementVNode("div",n3,[a.createVNode(la,{size:"small",style:{width:"100%","text-align":"left"},type:"info"},{default:a.withCtx(()=>[a.createTextVNode("引用模块:"+a.toDisplayString(zn.value||"暂无"),1)]),_:1}),a.createElementVNode("div",t3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(d==null?void 0:d.buttonValue,ge=>(a.openBlock(),a.createBlock(me,{key:ge==null?void 0:ge.label,style:a.normalizeStyle({background:ge==null?void 0:ge.background,color:ge==null?void 0:ge.color}),onClick:ba=>C(ge==null?void 0:ge.value)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(ge==null?void 0:ge.label),1)]),_:2},1032,["style","onClick"]))),128))])])]),default:a.withCtx(()=>[a.createVNode(Up,{columns:d==null?void 0:d.columns,tableData:d==null?void 0:d.tableData},{content:a.withCtx(({row:ge,item:ba,slotData:ta,scope:ce,column:E,columnProp:Oe,$index:xe})=>[a.createTextVNode(a.toDisplayString((ge==null?void 0:ge[(E==null?void 0:E.prop)||(E==null?void 0:E.label)])||(ta==null?void 0:ta[E==null?void 0:E.property])),1)]),_:1},8,["columns","tableData"])]),_:1},8,["title","visible","width"])])}}},mc=ql._export_sfc(i3,[["__scopeId","data-v-4ea1373f"]]),s3={class:"static-form-card"},c3={key:0,class:"static-form-body"},u3=["onClick"],d3={key:1},p3=a.defineComponent({__name:"index",props:{itemData:{default:()=>[]},fields:{default:()=>[]},compName:{default:""},title:{default:""},disabled:{type:Boolean,default:!1},textSize:{default:void 0},textColor:{default:void 0}},setup(l){const r=l,n=D=>{switch(D){case"占用":return"warning";case"注销":return"info";case"损坏":return"danger";case"可用":return"success";default:return""}},t=a.computed(()=>{var H;const D=(H=r.itemData)==null?void 0:H.find(k=>(k==null?void 0:k.key)==="formContent"),A=(D==null?void 0:D.contents)||[];return(r.fields&&r.fields.length>0?r.fields:A).filter(k=>!(k!=null&&k.isFormColHidden)&&(k==null?void 0:k.label)).map(k=>{let T=k==null?void 0:k.value;Array.isArray(T)&&(T=T.map(z=>z==null?"":typeof z=="object"?z.label??z.value??z.name??JSON.stringify(z):String(z)).filter(Boolean).join(",")),T!=null&&typeof T=="object"&&(T=T.label??T.value??T.name??JSON.stringify(T));const J=k.label??"",S=T==null||T===""?"-":String(T),V=J==="使用状态";return{label:J,value:S,isStatus:V,tagType:V?n(S):"",width:k.width??1,field:k}})}),s=a.ref(null),u=D=>{if(Array.isArray(D)&&D.length>=3){const[A,_,H,k]=D;return k!==void 0?`rgba(${A}, ${_}, ${H}, ${k})`:`rgb(${A}, ${_}, ${H})`}if(typeof D=="string"){const A=D.trim();if(A.startsWith("[")&&A.endsWith("]")){const _=A.slice(1,-1).split(",").map(H=>Number(H.trim()));if(_.length>=3&&_.every(H=>!Number.isNaN(H))){const[H,k,T,J]=_;return J!==void 0?`rgba(${H}, ${k}, ${T}, ${J})`:`rgb(${H}, ${k}, ${T})`}}return A}},b=a.computed(()=>{const D=Number(r==null?void 0:r.textSize),A=u(r==null?void 0:r.textColor),_={},H={},k={},T={};return!Number.isNaN(D)&&D&&(_.fontSize=`${D}px`,H.fontSize=`${D+1}px`,k.fontSize=`${D}px`,T.fontSize=`${D}px`),A&&(H.color=A,k.color=A,T.color=A),{item:_,label:H,value:k,empty:T}}),h=D=>pl.getComponent(D),v=D=>{if(!D)return;const A=D.querySelector("input, textarea, .el-input__inner");A&&typeof A.focus=="function"&&A.focus()},y=(D,A,_)=>{r.disabled||(s.value=A,a.nextTick(()=>{v(_.currentTarget)}))},c=()=>{s.value=null},w=D=>{const A=D!=null&&D.width&&D.width>0?D.width:1,H=`calc((100% - ${(A-1)*48}px) / ${A})`;return{flex:`0 0 ${H}`,maxWidth:H,minWidth:"0",boxSizing:"border-box"}};return(D,A)=>{const _=a.resolveComponent("el-tag");return a.openBlock(),a.createElementBlock("div",s3,[t.value.length?(a.openBlock(),a.createElementBlock("div",c3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.value,(H,k)=>{var T,J,S,V,z,x,g,F;return a.openBlock(),a.createElementBlock("div",{key:k,class:"static-form-item",style:a.normalizeStyle({...w(H),...b.value.item})},[a.createElementVNode("div",{class:"static-form-label",style:a.normalizeStyle(b.value.label)},a.toDisplayString(H.label)+": ",5),a.createElementVNode("div",{class:"static-form-value",style:a.normalizeStyle(b.value.value),onClick:q=>y(H,k,q)},[s.value===k&&H.field?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(h(((T=H.field)==null?void 0:T.type)??"Input")),{key:0,modelValue:H.field.value,"onUpdate:modelValue":q=>H.field.value=q,isEdit:!0,disabled:(J=H.field)==null?void 0:J.disabled,content:((S=H.field)==null?void 0:S.contents)??[],optionUrl:H.field,originalValue:(V=H.field)==null?void 0:V.value,config:(z=H.field)==null?void 0:z.config,configModel:((x=H.field)==null?void 0:x.prop)??((g=H.field)==null?void 0:g.name),selectedTagList:((F=H.field)==null?void 0:F.selectValue)??[],onBlur:c,onBlurChange:c},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[H.isStatus?(a.openBlock(),a.createBlock(_,{key:0,type:H.tagType,size:"Default",effect:"plain"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(H.value??"-"),1)]),_:2},1032,["type"])):(a.openBlock(),a.createElementBlock("span",d3,a.toDisplayString(H.value??"-"),1))],64))],12,u3)],4)}),128))])):(a.openBlock(),a.createElementBlock("div",{key:1,class:"static-form-empty",style:a.normalizeStyle(b.value.empty)}," 暂无数据 ",4))])}}}),yc=ql._export_sfc(p3,[["__scopeId","data-v-351e0bf9"]]),f3={class:"form-content"},h3={title:"选择标签"},v3={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},m3={class:"col-operate-wrap"},y3={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},g3={__name:"index",props:{formRules:Object,itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,compName:{type:String,default:""},allMapContents:{type:Object},config:{type:Object,default:()=>{}}},emits:["change","contentChange","routeUrl","clickTrigger"],setup(l,{emit:r}){const n=()=>{b.value=!1,h.value=!1,v.value=[]},t=l;a.computed(()=>{var Ze;const fe=(Ze=ye.value)==null?void 0:Ze.split("/");return(fe==null?void 0:fe.some(Fe=>(Fe==null?void 0:Fe.includes("updateLoading"))||(Fe==null?void 0:Fe.includes("loading"))))?!1:X.value==="view"});const s=r,u=a.ref([]),b=a.ref(!1),h=a.ref(!1),v=a.ref([]),{getFileExtension:y}=bo.useThreeSystem(),c=a.ref(),w=a.ref(!1),D=a.ref(!1),A=I.useUnit(I.pinia),{chooseTitle:_}=I.storeToRefs(A),H=a.ref([]),k=a.ref(),T=a.ref(!1),J=a.ref([]),S=Zs(I.pinia),V=xi(I.pinia),z=a.ref(!1),x=a.ref(),g=a.ref(),F=a.ref(),q=I.useLoginState(I.pinia),{loginUserInfo:G}=I.storeToRefs(q),be=a.ref(),ze=a.ref(!0),De=I.useModelComp(I.pinia),{tableViewContents:ne,itemData:ke,isEdit:X,routeToChildPath:pe,lockingPage:Ke}=I.storeToRefs(De),Sa=a.ref(null),te=a.ref(!1),B=a.ref(!1),le=I.useMenuState(),{activeMenuPath:ye}=I.storeToRefs(le),se=na.useOriginalState(I.pinia),{originalPath:Ne}=I.storeToRefs(se),{compType:ia,hasEditable:xa}=Hs.useRole(),Ha=()=>!xa(t.config,{type:ia.FORM});a.computed(()=>ye.value==="设备管理/试验设备"&&t.compName==="设备概要");const ee=a.ref([]),ea=a.ref([{label:"编辑",value:"operable",checked:!1},{label:"禁用",value:"disabled",checked:!1}]),Pe=async fe=>{B.value=fe,await Ia("disabled",null,fe,!0)},ga=async fe=>{await Ia("operable",null,fe,!0)};a.watch(()=>ye.value,async()=>{u.value=[],v.value=[]},{deep:!0,immediate:!0});const He=()=>{a.nextTick(()=>{Ka()})},Ae=fe=>{var Je;u.value=(Je=u.value)==null?void 0:Je.map(Ze=>({...Ze,isFormColHidden:!(fe!=null&&fe.includes(Ze.label))}))};a.onUnmounted(()=>{Sa.value=null});const Re=fe=>{s("clickTrigger",fe)},Ge=async fe=>{var Je,Ze,Fe,ka,$e,pa;if(fe===""){let re="";(Je=u.value)==null||Je.forEach(Be=>{Be!=null&&Be.isMain&&(re=Be==null?void 0:Be.value)});let Se=await na.getItemData(pe.value,sessionStorage.getItem("systemKey"),"");re=((pa=($e=(ka=(Fe=(Ze=Se==null?void 0:Se[0])==null?void 0:Ze.compData)==null?void 0:Fe.find(Be=>(Be==null?void 0:Be.key)==="mainRouters"))==null?void 0:ka.contents)==null?void 0:$e[0])==null?void 0:pa.routerContent)+Ne.value+re;let je=await na.getItemData(re,sessionStorage.getItem("systemKey"),"");T.value=!0,J.value=je==null?void 0:je.filter(Be=>(Be==null?void 0:Be.comp)!=="methodButton"),s("routeUrl",J.value)}},Ka=()=>{var Je;const fe=(Je=Sa.value)==null?void 0:Je.$el;fe&&$a.Sortable.create(fe,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:Ze=>{const{oldIndex:Fe,newIndex:ka}=Ze;if(Fe===ka)return;const $e=u.value.splice(Fe,1)[0];u.value.splice(ka,0,$e)}})},Ia=async(fe,Je,Ze,Fe=!1)=>{try{De.setRefreshCurStructure(!1)}catch{ll.ElMessage.error("编辑处理失败")}},R=async(fe,Je)=>{await Ia()},P=async(fe,Je)=>{fe&&await Ia()},Y=async(fe,Je,Ze)=>{await Ia(Je,Ze,fe,!1)},oe=(fe,Je)=>{be.value===Je?ze.value=!1:ze.value=!0,be.value=Je==null?void 0:Je.changeProp},ie=async fe=>{var Ze,Fe,ka,$e,pa,re,Se,K,je,Be,za,Ea,Ye,ua,_e;let Je=[];if((Ze=fe==null?void 0:fe.toString())!=null&&Ze.includes(".urdf")){if(fe.includes(",")){ll.ElMessage.error("当前版本仅允许单个urdf预览!");return}v.value=[{url:fe,extension:y(fe)}],h.value=!0,b.value=!0;return}if((Fe=fe==null?void 0:fe.toString())!=null&&Fe.includes(".stl")||(ka=fe==null?void 0:fe.toString())!=null&&ka.includes(".STL")||($e=fe==null?void 0:fe.toString())!=null&&$e.includes(".obj")||(pa=fe==null?void 0:fe.toString())!=null&&pa.includes(".mtl")){const ya=((re=fe==null?void 0:fe.toString())==null?void 0:re.split(",")).map(We=>({url:We,extension:y(We)}));v.value=ya,h.value=!1,b.value=!0;return}if((Se=fe==null?void 0:fe.toString())!=null&&Se.includes(".stl")||(K=fe==null?void 0:fe.toString())!=null&&K.includes(".STL")||(je=fe==null?void 0:fe.toString())!=null&&je.includes(".obj")||(Be=fe==null?void 0:fe.toString())!=null&&Be.includes(".mtl")){let Z,ya=[],We={};if(Array.isArray(fe)?Z=fe:Z=fe==null?void 0:fe.split(","),Z==null||Z.forEach(La=>{La.includes(".mtl")?ya.push(La):We.blob=We.blob?We.blob+","+La:La}),(ya==null?void 0:ya.length)>0&&(We.mtlBlobs=ya),(Ea=(za=Object.values(We))==null?void 0:za[0])!=null&&Ea.includes("http:"))Je.push(We);else{const La=new Blob([We.blob],{type:"application/octet-stream;charset=UTF-8"});let ml=URL.createObjectURL(La),Aa="";(Ye=fe==null?void 0:fe.split("/"))==null||Ye.forEach((el,Ja)=>{var Pa;Ja===((Pa=fe==null?void 0:fe.split("/"))==null?void 0:Pa.length)-1&&(Aa=el)}),(ua=We.blob)!=null&&ua.includes(".stl")&&(Aa=(Aa==null?void 0:Aa.replaceAll(">",""))+".urdf"),k.value=[{name:Aa,blobUrl:ml}],D.value=!0}}else{const Z=I.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),ya=await ll.axios.get(fe,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{Z.close()}),We=new Blob([ya.data],{type:"application/octet-stream;charset=UTF-8"});let La=URL.createObjectURL(We),ml="";(_e=fe==null?void 0:fe.split("/"))==null||_e.forEach((Aa,el)=>{var Ja;el===((Ja=fe==null?void 0:fe.split("/"))==null?void 0:Ja.length)-1&&(ml=Aa)}),k.value=[{name:ml,blobUrl:La}],D.value=!0}(Je==null?void 0:Je.length)>0&&V.setBlobUrls(Je)},fa=()=>{D.value=!1},ra=fe=>{var $e,pa,re,Se;const Je=(pa=($e=pl.safeClone(t.itemData))==null?void 0:$e.find(K=>(K==null?void 0:K.key)==="formContent"))==null?void 0:pa.contents,Ze=pl.safeClone(fe.content);let Fe={};Ze&&((re=Object.values(Ze))==null?void 0:re.length)>0&&((Se=Object.values(Ze))==null||Se.forEach((K,je)=>{Fe[Je[je].key]=K}));const ka={content:Fe,index:t==null?void 0:t.index,buttonName:fe==null?void 0:fe.buttonName};s("change",ka)};a.computed(()=>"http://222.92.178.198:62001");const Ie=async fe=>{var za,Ea,Ye,ua,_e,Z,ya,We,La,ml,Aa,el,Ja,Pa,Te,il;if(!fe)return;(Ea=(za=t==null?void 0:t.itemData)==null?void 0:za.find(ma=>(ma==null?void 0:ma.key)==="parentFormPath"))==null||Ea.contents;let Je=ne.value;(Je==null?void 0:Je.length)>0&&(Je=Je==null?void 0:Je.map(ma=>{var _a,oa,va,ue;let wa=(_a=ma==null?void 0:ma.key)==null?void 0:_a.split("/");return(t==null?void 0:t.compName)===(wa==null?void 0:wa[0])&&(oa=u.value)!=null&&oa.find(Fa=>(Fa==null?void 0:Fa.prop)===(wa==null?void 0:wa[1]))&&(ma.value=(ue=(va=u.value)==null?void 0:va.find(Fa=>(Fa==null?void 0:Fa.prop)===(wa==null?void 0:wa[1])))==null?void 0:ue.value),ma}),De.setTableViewContents(Je));const Ze=pl.safeClone(t.itemData);let Fe=Ze==null?void 0:Ze.map(ma=>{var wa;return(ma==null?void 0:ma.key)==="formContent"&&((wa=ma.contents)==null||wa.map((_a,oa)=>{var va,ue,Fa,ja,Ee,Ba,Ua,ve,fl,Xa,xl,qa,ol,al,cl,ul,Wl,Kl,Fl;return _a.type=(ue=(va=u.value)==null?void 0:va.find(Ul=>(Ul==null?void 0:Ul.prop)===(_a==null?void 0:_a.prop)))==null?void 0:ue.type,_a.options=_a!=null&&_a.options?_a.options:((Ee=(ja=(Fa=_a==null?void 0:_a.key)==null?void 0:Fa.split("$"))==null?void 0:ja[1])==null?void 0:Ee.length)>0?(fl=(ve=wu((Ua=(Ba=_a==null?void 0:_a.key)==null?void 0:Ba.split("$"))==null?void 0:Ua[1]))==null?void 0:ve.split(","))==null?void 0:fl.map(Ul=>({label:Ul,value:Ul})):[],(Xa=_a==null?void 0:_a.key)!=null&&Xa.includes("$")&&(_a.key=(qa=(xl=_a==null?void 0:_a.key)==null?void 0:xl.split("$"))==null?void 0:qa[0]),_a.signature=(al=(ol=u.value)==null?void 0:ol.find(Ul=>(Ul==null?void 0:Ul.prop)===(_a==null?void 0:_a.prop)))==null?void 0:al.signature,_a.isLoginUser=(ul=(cl=u.value)==null?void 0:cl.find(Ul=>(Ul==null?void 0:Ul.prop)===(_a==null?void 0:_a.prop)))==null?void 0:ul.isLoginUser,_a.value=(Wl=Object.values(fe))==null?void 0:Wl[oa],_a.isFormColHidden=(Fl=(Kl=u.value)==null?void 0:Kl.find(Ul=>(Ul==null?void 0:Ul.prop)===(_a==null?void 0:_a.prop)))==null?void 0:Fl.isFormColHidden,_a})),ma}),ka=u.value,$e=(ua=(Ye=pl.safeClone(Fe))==null?void 0:Ye.find(ma=>(ma==null?void 0:ma.key)==="formContent"))==null?void 0:ua.contents;if(ka=ka==null?void 0:ka.map(ma=>{var wa,_a;return(ma==null?void 0:ma.type)==="Select"&&((wa=ma==null?void 0:ma.allSelectionContents)==null?void 0:wa.length)>0&&(ma.contactValue=fe),ma.value=(_a=$e==null?void 0:$e.find((oa,va)=>((oa==null?void 0:oa.id)??va)===(ma==null?void 0:ma.id)))==null?void 0:_a.value,ma}),!ze.value){s("contentChange",{contents:Fe,index:t.index});return}let pa="",re=(ya=(Z=(_e=pl.safeClone(Fe))==null?void 0:_e.find(ma=>(ma==null?void 0:ma.key)==="formContent"))==null?void 0:Z.contents)==null?void 0:ya.find((ma,wa)=>{var _a,oa,va;return(ma==null?void 0:ma.label)===be.value||wa.toString()===((va=(oa=(_a=be.value)==null?void 0:_a.split("t"))==null?void 0:oa[1])==null?void 0:va.toString())}),Se=(We=re==null?void 0:re.optionUrl)==null?void 0:We.menuSelect,K=!0;if((Aa=(ml=(La=pl.safeClone(Fe))==null?void 0:La.find(ma=>(ma==null?void 0:ma.key)==="formContent"))==null?void 0:ml.contents)==null||Aa.forEach(ma=>{var wa,_a,oa,va,ue,Fa;K&&((oa=(_a=(wa=ma==null?void 0:ma.optionUrl)==null?void 0:wa.groupSelect)==null?void 0:_a[1])!=null&&oa.includes("["))&&(pa=(ue=(va=ma==null?void 0:ma.optionUrl)==null?void 0:va.groupSelect)==null?void 0:ue[1],JSON.stringify(Se)===JSON.stringify((Fa=ma==null?void 0:ma.optionUrl)==null?void 0:Fa.menuSelect)&&(K=!1))}),(el=re==null?void 0:re.optionUrl)!=null&&el.menuSelect&&ze.value){let ma=await fi(re),wa,_a=(Ja=re==null?void 0:re.optionUrl)==null?void 0:Ja.menuSelect;if(ma==null||ma.forEach(oa=>{var va,ue,Fa,ja,Ee,Ba,Ua,ve,fl,Xa;pa===((ue=(va=re==null?void 0:re.optionUrl)==null?void 0:va.groupSelect)==null?void 0:ue[1])&&((Ee=(ja=(Fa=re==null?void 0:re.optionUrl)==null?void 0:Fa.groupSelect)==null?void 0:ja[1])!=null&&Ee.includes("["))&&((Xa=pl.safeClone(oa))==null?void 0:Xa[(fl=(ve=(Ua=(Ba=re==null?void 0:re.optionUrl)==null?void 0:Ba.groupSelect)==null?void 0:Ua[1])==null?void 0:ve.replaceAll("[",""))==null?void 0:fl.replaceAll("]","")])===(re==null?void 0:re.value)&&(wa=oa)}),wa){let oa=pl.safeClone(ka);oa=oa==null?void 0:oa.map(ue=>{var Fa,ja,Ee,Ba,Ua,ve,fl,Xa,xl,qa,ol;return(wa!=null&&wa[ue==null?void 0:ue.label]||wa!=null&&wa[(Ba=(Ee=(ja=(Fa=ue==null?void 0:ue.optionUrl)==null?void 0:Fa.groupSelect)==null?void 0:ja[1])==null?void 0:Ee.replaceAll("[",""))==null?void 0:Ba.replaceAll("]","")])&&((fl=(ve=(Ua=ue==null?void 0:ue.optionUrl)==null?void 0:Ua.groupSelect)==null?void 0:ve[1])!=null&&fl.includes("["))&&_a!=null&&_a.every(al=>{var cl,ul;return(ul=(cl=ue==null?void 0:ue.optionUrl)==null?void 0:cl.menuSelect)==null?void 0:ul.includes(al)})&&(ue.value=(wa==null?void 0:wa[ue==null?void 0:ue.label])||(wa==null?void 0:wa[(ol=(qa=(xl=(Xa=ue==null?void 0:ue.optionUrl)==null?void 0:Xa.groupSelect)==null?void 0:xl[1])==null?void 0:qa.replaceAll("[",""))==null?void 0:ol.replaceAll("]","")]),Array.isArray(ue.value)&&ue.value.every(al=>(al==null?void 0:al.url)&&(al==null?void 0:al.name))&&(ue.type="Upload")),ue}),oa=oa==null?void 0:oa.map(ue=>{var Fa,ja,Ee;return(Fa=ue==null?void 0:ue.optionUrl)!=null&&Fa.oldMenuSelect&&(ue.optionUrl.menuSelect=(Ee=(ja=pl.safeClone(ue))==null?void 0:ja.optionUrl)==null?void 0:Ee.oldMenuSelect),ue}),u.value=pl.safeClone(oa);let va=pl.safeClone(oa);va=va==null?void 0:va.map(ue=>{var Fa,ja,Ee,Ba,Ua,ve;return(ja=(Fa=ue==null?void 0:ue.optionUrl)==null?void 0:Fa.menuSelect)!=null&&ja.some(fl=>fl==null?void 0:fl.includes("["))&&(ue.optionUrl.oldMenuSelect=(Ba=(Ee=pl.safeClone(ue))==null?void 0:Ee.optionUrl)==null?void 0:Ba.menuSelect,ue.optionUrl.menuSelect=(ve=(Ua=ue==null?void 0:ue.optionUrl)==null?void 0:Ua.menuSelect)==null?void 0:ve.map(fl=>{var Xa,xl,qa,ol;if(fl!=null&&fl.includes("[")){let al=(xl=(Xa=fl==null?void 0:fl.replaceAll("[","").replaceAll("]",""))==null?void 0:Xa.split(":"))==null?void 0:xl[1];fl=(ol=(qa=pl.safeClone(oa))==null?void 0:qa.find(cl=>(cl==null?void 0:cl.label)===al))==null?void 0:ol.value}return fl})),ue}),u.value=va}else u.value=ka;Fe=Fe==null?void 0:Fe.map(oa=>{var va;return(oa==null?void 0:oa.key)==="formContent"&&(oa.contents=(va=oa.contents)==null?void 0:va.map(ue=>{var Fa,ja,Ee,Ba;return ue.value=((ja=(Fa=u.value)==null?void 0:Fa.find(Ua=>(Ua==null?void 0:Ua.label)===(ue==null?void 0:ue.key)))==null?void 0:ja.value)??(ue==null?void 0:ue.value),ue.type=((Ba=(Ee=u.value)==null?void 0:Ee.find(Ua=>(Ua==null?void 0:Ua.prop)===(ue==null?void 0:ue.key)))==null?void 0:Ba.type)??(ue==null?void 0:ue.type),ue})),oa})}ze.value=!1,s("contentChange",{contents:Fe,index:t.index});let je=[],Be=[];if((Te=pl.safeClone((Pa=Fe==null?void 0:Fe.find(ma=>(ma==null?void 0:ma.key)==="formContent"))==null?void 0:Pa.contents))==null||Te.forEach(ma=>{var wa;Array.isArray(ma==null?void 0:ma.value)&&((wa=ma==null?void 0:ma.value)!=null&&wa.find(_a=>{var oa;return(oa=_a==null?void 0:_a.url)==null?void 0:oa.includes(".obj")}))&&(Be=ma==null?void 0:ma.value)}),(Be==null?void 0:Be.length)>0){const ma=(il=pl.safeClone(Be))==null?void 0:il.filter(wa=>{var _a;return(_a=wa==null?void 0:wa.url)==null?void 0:_a.includes(".obj")});ma==null||ma.forEach(wa=>{var oa,va,ue,Fa;const _a=(oa=Be==null?void 0:Be.filter(ja=>{var Ee;return(ja==null?void 0:ja.name)===(wa==null?void 0:wa.name)&&((Ee=ja==null?void 0:ja.url)==null?void 0:Ee.includes(".mtl"))}))==null?void 0:oa.map(ja=>ja==null?void 0:ja.url);je.push({objUrl:wa==null?void 0:wa.url,mtlUrls:((va=Be==null?void 0:Be.filter(ja=>{var Ee;return(ja==null?void 0:ja.name)===(wa==null?void 0:wa.name)&&((Ee=ja==null?void 0:ja.url)==null?void 0:Ee.includes(".mtl"))}))==null?void 0:va.length)===1?(Fa=(ue=Be==null?void 0:Be.filter(ja=>{var Ee;return(ja==null?void 0:ja.name)===(wa==null?void 0:wa.name)&&((Ee=ja==null?void 0:ja.url)==null?void 0:Ee.includes(".mtl"))}))==null?void 0:ue[0])==null?void 0:Fa.url:_a})}),V.setObjUrl(je)}},we=(fe,Je,Ze)=>{let Fe="";const ka=Je==null?void 0:Je.map($e=>{var pa;return(pa=$e==null?void 0:$e.value)==null?void 0:pa.pageData});return ka==null||ka.forEach($e=>{var pa;($e==null?void 0:$e.name)===(fe==null?void 0:fe[0])&&((pa=$e==null?void 0:$e.compData)==null||pa.forEach(re=>{var Se;(re==null?void 0:re.key)==="formContent"&&((Se=re==null?void 0:re.contents)==null||Se.forEach(K=>{var je;(K==null?void 0:K.prop)===(fe==null?void 0:fe[1])&&(Fe=(K==null?void 0:K.value)===""?na.judgeContents((je=pl.safeClone(K))==null?void 0:je.optionUrl,Ze):K==null?void 0:K.value)}))}))}),Fe},Ca=(fe,Je,Ze,Fe)=>{var re,Se;let ka="",$e="";(re=pl.safeClone(Je))==null||re.forEach((K,je)=>{K!=null&&K.includes("[")?$e=$e+Ne.value+fe[je]:$e=$e===""?$e+K:$e+"/"+K});let pa=(Se=Fe[$e])==null?void 0:Se.map(K=>{var je;return(je=K==null?void 0:K.value)==null?void 0:je.pageData});return pa==null||pa.forEach(K=>{var je;(K==null?void 0:K.name)===(Ze==null?void 0:Ze[0])&&((je=K==null?void 0:K.compData)==null||je.forEach(Be=>{var za;(Be==null?void 0:Be.key)==="formContent"&&((za=Be==null?void 0:Be.contents)==null||za.forEach(Ea=>{(Ea==null?void 0:Ea.prop)===(Ze==null?void 0:Ze[1])&&(ka=Ea==null?void 0:Ea.value)}))}))}),ka};return a.watch(()=>t.itemData,async()=>{var je,Be,za,Ea,Ye,ua,_e,Z,ya,We,La,ml,Aa,el,Ja,Pa,Te,il,ma,wa,_a;const fe=(je=t.itemData)==null?void 0:je.find(oa=>(oa==null?void 0:oa.key)==="formContent"),Je=(Be=pl.safeClone(t.itemData))==null?void 0:Be.find(oa=>(oa==null?void 0:oa.key)==="formButton"),Ze=(za=pl.safeClone(t.itemData))==null?void 0:za.find(oa=>(oa==null?void 0:oa.key)==="formFlex"),Fe=(Ea=pl.safeClone(t.itemData))==null?void 0:Ea.find(oa=>(oa==null?void 0:oa.key)==="formWrap"),ka=(Ye=pl.safeClone(t.itemData))==null?void 0:Ye.find(oa=>(oa==null?void 0:oa.key)==="enableWrap"),$e=(ua=pl.safeClone(t.itemData))==null?void 0:ua.find(oa=>(oa==null?void 0:oa.key)==="textSize"),pa=(_e=pl.safeClone(t.itemData))==null?void 0:_e.find(oa=>(oa==null?void 0:oa.key)==="textRGBA");(Fe==null?void 0:Fe.contents)==="纵向"?w.value=!1:w.value=!0;const re=Number($e==null?void 0:$e.contents);x.value=Number.isNaN(re)?void 0:re,g.value=pa==null?void 0:pa.contents;const Se=ka==null?void 0:ka.contents;if(Se===void 0?z.value=et.BLOCK:typeof Se=="boolean"?z.value=Se?et.ORDINARY:et.BLOCK:z.value=Se,F.value=typeof(Ze==null?void 0:Ze.contents)!="boolean"?!(!(Ze!=null&&Ze.contents)===""||((Z=Ze==null?void 0:Ze.contents)==null?void 0:Z.toUpperCase())==="VERTICAL"):Ze==null?void 0:Ze.contents,((ya=fe==null?void 0:fe.contents)==null?void 0:ya.length)>0&&Array.isArray(fe==null?void 0:fe.contents)){let oa=t.allMapContents;const va=(La=(We=pl.safeClone(fe))==null?void 0:We.contents)==null?void 0:La.map((ve,fl)=>{var kr,wr,Er,un,Jr,dn,Xr,Ur,pn,tn,Dr,Zr,Br;let Xa=(ve==null?void 0:ve.label)??(ve==null?void 0:ve.key)??"";ve==null||ve.type;let xl=(ve==null?void 0:ve.options)??[];if((kr=ve==null?void 0:ve.key)!=null&&kr.includes("$")&&(Xa=(wr=pl.safeClone(ve==null?void 0:ve.key).split("$"))==null?void 0:wr[0],((un=(Er=pl.safeClone(ve==null?void 0:ve.key).split("$"))==null?void 0:Er[1])==null?void 0:un.length)>0)){const[Il,qr]=(dn=(Jr=pl.safeClone(ve==null?void 0:ve.key).split("$"))==null?void 0:Jr[1])==null?void 0:dn.split(/[()]/);(Xr=na.FormType.find(Nr=>(Nr==null?void 0:Nr.key)===Il))==null||Xr.value,((Ur=qr==null?void 0:qr.split(","))==null?void 0:Ur.length)>0&&(xl=(pn=qr==null?void 0:qr.split(","))==null?void 0:pn.map(Nr=>({label:Nr,value:Nr})))}let qa=ve==null?void 0:ve.options;((tn=ve==null?void 0:ve.optionUrl)==null?void 0:tn.selectRelateType)==="自定义绑定"&&(qa=(Zr=(Dr=ve==null?void 0:ve.optionUrl)==null?void 0:Dr.defaultSelect)==null?void 0:Zr.map(Il=>({label:Il,value:Il})));let ol=(ve==null?void 0:ve.menuPath)??[],al=(ve==null?void 0:ve.groups)??[],cl=(ve==null?void 0:ve.columns)??[],ul=!1,Wl=(ve==null?void 0:ve.isFormColHidden)??!1,Kl="",Fl=ve!=null&&ve.value?ve.value:(qa==null?void 0:qa.length)>0?(Br=qa==null?void 0:qa[0])==null?void 0:Br.value:(ve==null?void 0:ve.value)??"",Ul=!1,gr="Input";return((qa==null?void 0:qa.length)>0||(ol==null?void 0:ol.length)>0)&&(gr="Select"),(Array.isArray(Kl)&&(Kl!=null&&Kl.every(Il=>(Il==null?void 0:Il.name)&&(Il==null?void 0:Il.url)))||Array.isArray(Fl)&&(Fl!=null&&Fl.every(Il=>(Il==null?void 0:Il.name)&&(Il==null?void 0:Il.url))))&&(gr="upload"),ve!=null&&ve.isMainUrl&&(gr="Url"),{label:Xa??"",name:Xa??"t"+fl,prop:Xa??pl.safeClone(ve==null?void 0:ve.key),type:(ve==null?void 0:ve.type)??gr,value:(ve==null?void 0:ve.type)==="Date"&&Fl===""?new Date:Fl,id:(ve==null?void 0:ve.id)??fl,contents:(qa==null?void 0:qa.length)>0?qa:xl??[],width:(ve==null?void 0:ve.width)??1,isLoginUser:ul,config:ve==null?void 0:ve.config,optionUrl:(ve==null?void 0:ve.optionUrl)??ve,isFormColHidden:Wl,signature:Ul,isMain:ve==null?void 0:ve.isMain,required:(ve==null?void 0:ve.required)??!1,isMainUrl:ve==null?void 0:ve.isMainUrl,operable:(ve==null?void 0:ve.operable)??!1,disabled:(ve==null?void 0:ve.disabled)??!1,isSync:ve==null?void 0:ve.isSync,menus:ol,groups:al,words:cl,allSelectionContents:ve==null?void 0:ve.allContents,filterContent:ve==null?void 0:ve.filterContents}}),ue=va==null?void 0:va.map(ve=>ve==null?void 0:ve.value);let Fa="";ue==null||ue.forEach(ve=>{ve!==""&&ve!==void 0&&(Fa=Fa===""?ve:Fa+"/"+ve)}),S.setSelectArray(ue),S.setSelectString(Fa);let ja=(ml=pl.safeClone(va))==null?void 0:ml.map(ve=>(ve!=null&&ve.value&&na.IsJson(ve==null?void 0:ve.value)&&Array.isArray(JSON.parse(ve==null?void 0:ve.value))&&(ve.value=JSON.parse(ve.value)),ve)),Ee={};ja==null||ja.forEach(ve=>{Ee[ve.label]=ve==null?void 0:ve.value}),ja=ja==null?void 0:ja.map(ve=>{var fl,Xa,xl,qa,ol,al,cl,ul,Wl;if((ve==null?void 0:ve.type)==="Select"&&((fl=ve==null?void 0:ve.allSelectionContents)==null?void 0:fl.length)>0&&(ve.contactValue=Ee),(xl=(Xa=ve==null?void 0:ve.optionUrl)==null?void 0:Xa.menuSelect)!=null&&xl.some(Kl=>Kl==null?void 0:Kl.includes("["))){let Kl="";ve.optionUrl.oldMenuSelect=(ol=(qa=pl.safeClone(ve))==null?void 0:qa.optionUrl)==null?void 0:ol.menuSelect,ve.optionUrl.menuSelect=(cl=(al=ve==null?void 0:ve.optionUrl)==null?void 0:al.menuSelect)==null?void 0:cl.map(Fl=>{var Ul,gr,rr,kr,wr,Er;if(Fl!=null&&Fl.includes("[")){let un=(gr=(Ul=Fl==null?void 0:Fl.replaceAll("[","").replaceAll("]",""))==null?void 0:Ul.split(":"))==null?void 0:gr[1];Kl=we((rr=Fl==null?void 0:Fl.replaceAll("[","").replaceAll("]",""))==null?void 0:rr.split(":"),oa==null?void 0:oa[ye.value],oa),Fl=((wr=(kr=pl.safeClone(ja))==null?void 0:kr.find(Jr=>(Jr==null?void 0:Jr.label)===un))==null?void 0:wr.value)||we((Er=Fl==null?void 0:Fl.replaceAll("[","").replaceAll("]",""))==null?void 0:Er.split(":"),oa==null?void 0:oa[ye.value],oa)}return Fl}),Kl!==""&&ve.value===""&&(ve.value=Ca(ve.optionUrl.menuSelect,ve.optionUrl.oldMenuSelect,(ul=ve==null?void 0:ve.optionUrl)==null?void 0:ul.groupSelect,oa),Array.isArray(ve.value)&&((Wl=ve.value)!=null&&Wl.every(Fl=>Fl==null?void 0:Fl.url))&&(ve.type="UPLOAD"))}return ve}),u.value=ja,B.value=((Aa=u.value)==null?void 0:Aa.every(ve=>ve==null?void 0:ve.disabled))||Ke.value===ye.value,te.value=(el=u.value)==null?void 0:el.every(ve=>ve==null?void 0:ve.operable),ee.value=(Ja=u.value)==null?void 0:Ja.map(ve=>ve==null?void 0:ve.label);let Ba=[],Ua=[];if((Pa=pl.safeClone(u.value))==null||Pa.forEach(ve=>{var fl;Array.isArray(ve==null?void 0:ve.value)&&((fl=ve==null?void 0:ve.value)!=null&&fl.find(Xa=>{var xl;return(xl=Xa==null?void 0:Xa.url)==null?void 0:xl.includes(".obj")}))&&(Ua=ve==null?void 0:ve.value)}),(Ua==null?void 0:Ua.length)>0){const ve=(Te=pl.safeClone(Ua))==null?void 0:Te.filter(fl=>{var Xa;return(Xa=fl==null?void 0:fl.url)==null?void 0:Xa.includes(".obj")});ve==null||ve.forEach(fl=>{var xl,qa,ol,al;const Xa=(xl=Ua==null?void 0:Ua.filter(cl=>{var ul;return(cl==null?void 0:cl.name)===(fl==null?void 0:fl.name)&&((ul=cl==null?void 0:cl.url)==null?void 0:ul.includes(".mtl"))}))==null?void 0:xl.map(cl=>cl==null?void 0:cl.url);Ba.push({objUrl:fl==null?void 0:fl.url,mtlUrls:((qa=Ua==null?void 0:Ua.filter(cl=>{var ul;return(cl==null?void 0:cl.name)===(fl==null?void 0:fl.name)&&((ul=cl==null?void 0:cl.url)==null?void 0:ul.includes(".mtl"))}))==null?void 0:qa.length)===1?(al=(ol=Ua==null?void 0:Ua.filter(cl=>{var ul;return(cl==null?void 0:cl.name)===(fl==null?void 0:fl.name)&&((ul=cl==null?void 0:cl.url)==null?void 0:ul.includes(".mtl"))}))==null?void 0:ol[0])==null?void 0:al.url:Xa})}),V.setObjUrl(Ba)}(il=pl.safeClone(u.value))==null||il.forEach(ve=>{var fl,Xa,xl,qa,ol,al,cl,ul,Wl,Kl,Fl,Ul,gr;if((Xa=(fl=ve==null?void 0:ve.value)==null?void 0:fl.toString())!=null&&Xa.includes(".stl")||(qa=(xl=ve==null?void 0:ve.value)==null?void 0:xl.toString())!=null&&qa.includes(".STL")||(al=(ol=ve==null?void 0:ve.value)==null?void 0:ol.toString())!=null&&al.includes(".obj")||(ul=(cl=ve==null?void 0:ve.value)==null?void 0:cl.toString())!=null&&ul.includes(".mtl")||(Kl=(Wl=ve==null?void 0:ve.value)==null?void 0:Wl.toString())!=null&&Kl.includes(".urdf")){let rr={},kr=[],wr;Array.isArray(ve==null?void 0:ve.value)?wr=ve==null?void 0:ve.value:wr=(Fl=ve==null?void 0:ve.value)==null?void 0:Fl.split(","),wr==null||wr.forEach(Er=>{Er.includes(".mtl")?kr.push(Er):rr.blob=rr.blob==="undefined"?Er:rr.blob+","+Er}),(kr==null?void 0:kr.length)>0&&(rr.mtlBlobs=kr),(gr=(Ul=Object.values(rr))==null?void 0:Ul[0])!=null&&gr.includes("http:")}})}else u.value=[];let K=ne.value;if((K==null?void 0:K.length)>0&&(K=K==null?void 0:K.map(oa=>{var ue,Fa,ja,Ee;let va=(ue=oa==null?void 0:oa.key)==null?void 0:ue.split("/");return(t==null?void 0:t.compName)===(va==null?void 0:va[0])&&(Fa=u.value)!=null&&Fa.find(Ba=>(Ba==null?void 0:Ba.prop)===(va==null?void 0:va[1]))&&(oa.value=(Ee=(ja=u.value)==null?void 0:ja.find(Ba=>(Ba==null?void 0:Ba.prop)===(va==null?void 0:va[1])))==null?void 0:Ee.value),oa}),De.setTableViewContents(K)),t!=null&&t.formRules)c.value=t==null?void 0:t.formRules;else{let oa={};(ma=pl.safeClone(u).value)==null||ma.forEach(va=>{((va==null?void 0:va.isMain)===!0||(va==null?void 0:va.required)===!0)&&(oa[(va==null?void 0:va.prop)??(va==null?void 0:va.name)]=[{required:!0,message:`${(va==null?void 0:va.label)||(va==null?void 0:va.prop)||(va==null?void 0:va.name)}不能为空`}])}),c.value=oa}if(((wa=Je==null?void 0:Je.contents)==null?void 0:wa.length)>0){const oa=[];(_a=Je==null?void 0:Je.contents)==null||_a.forEach((va,ue)=>{(va==null?void 0:va.label)!==""&&oa.push({label:(va==null?void 0:va.label)??"",id:(va==null?void 0:va.id)??ue,type:(va==null?void 0:va.type)??"",background:va==null?void 0:va.background})}),H.value=oa}else H.value=[]},{deep:!0,immediate:!0}),a.watch(()=>Ke.value,fe=>{B.value=fe===ye.value},{immediate:!0}),(fe,Je)=>{var re,Se;const Ze=a.resolveComponent("svg-icon"),Fe=a.resolveComponent("el-switch"),ka=a.resolveComponent("el-checkbox"),$e=a.resolveComponent("el-popover"),pa=a.resolveComponent("el-checkbox-group");return a.openBlock(),a.createElementBlock("div",f3,[z.value===a.unref(et).TEXT?(a.openBlock(),a.createBlock(yc,{key:0,itemData:l.itemData,compName:l.compName,fields:u.value,textSize:x.value,textColor:g.value,disabled:B.value||Ha()},null,8,["itemData","compName","fields","textSize","textColor","disabled"])):z.value===a.unref(et).BLOCK?(a.openBlock(),a.createBlock(Xp,{key:1,items:(Se=(re=u.value)==null?void 0:re.filter(K=>!(K!=null&&K.isFormColHidden)))==null?void 0:Se.map(K=>({label:K==null?void 0:K.label,value:K==null?void 0:K.value,width:(K==null?void 0:K.width)??1,field:K})),textSize:x.value,textColor:g.value,disabled:B.value||Ha()},null,8,["items","textSize","textColor","disabled"])):(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass({"form-shadow-box":z.value===a.unref(et).ORDINARY})},[a.createVNode(pl.ssForm,{rowContents:u.value,formRules:c.value,buttonValue:H.value,isRowFlex:!1,isEnableWrap:!0,textSize:x.value,textColor:g.value,onOnButtonClick:ra,onChange:Ie,formDisabled:B.value||Ha(),formLabelsOperable:te.value,isButtonRow:w.value,onPreview:ie,onBlurChange:oe,onHandleColEditChange:R,onHandleColTypeChange:P,onRouteUrl:Ge,onClickTrigger:Re},{operateCol:a.withCtx(({renderColumns:K,formDisabled:je,formLabelsOperable:Be})=>[a.createVNode($e,{title:"选择操作的标签",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:He},{reference:a.withCtx(()=>[a.createElementVNode("span",h3,[a.createVNode(Ze,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})])]),default:a.withCtx(()=>[a.createElementVNode("div",v3,[Je[1]||(Je[1]=a.createElementVNode("div",{class:"group-title"},"表单操作",-1)),a.createVNode(Fe,{"model-value":je,"active-text":"禁用","inactive-text":"",onChange:Pe,style:{"margin-right":"8px"}},null,8,["model-value"]),a.createVNode(Fe,{"model-value":Be,"active-text":"编辑所有标签","inactive-text":"",onChange:ga},null,8,["model-value"]),Je[2]||(Je[2]=a.createElementVNode("div",{class:"group-title"},"表单列操作",-1)),a.createVNode(pa,{modelValue:ee.value,"onUpdate:modelValue":Je[0]||(Je[0]=za=>ee.value=za),style:{height:"100%"},ref_key:"checkboxGroupRef",ref:Sa,onChange:Ae},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(K,za=>(a.openBlock(),a.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:za.label},[a.createVNode(ka,{value:za.label,style:{width:"100%",marginRight:0}},{default:a.withCtx(()=>[a.createElementVNode("span",null,a.toDisplayString(za.label),1)]),_:2},1032,["value"]),a.createVNode($e,{title:"标签操作",placement:"left",teleported:!1,trigger:"hover"},{reference:a.withCtx(()=>[a.createVNode(Ze,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:a.withCtx(()=>{var Ea;return[a.createElementVNode("div",m3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((Ea=Object.keys(za))==null?void 0:Ea.filter(Ye=>{var ua;return(ua=ea.value)==null?void 0:ua.find(_e=>(_e==null?void 0:_e.value)===Ye)}),Ye=>{var ua,_e;return a.openBlock(),a.createElementBlock("div",{key:Ye},[a.createVNode(pl._sfc_main$1,{value:za==null?void 0:za[Ye],"active-text":(_e=(ua=ea.value)==null?void 0:ua.find(Z=>(Z==null?void 0:Z.value)===Ye))==null?void 0:_e.label,inactiveText:"",onChange:Z=>Y(Z,Ye,za)},null,8,["value","active-text","onChange"])])}),128))])]}),_:2},1024),a.createElementVNode("span",y3,[a.createVNode(Ze,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:2},1032,["modelValue"])])]),_:2},1024)]),_:1},8,["rowContents","formRules","buttonValue","textSize","textColor","formDisabled","formLabelsOperable","isButtonRow"])],2)),D.value?(a.openBlock(),a.createBlock(pl.ssFilePreview,{key:3,fileDataList:k.value,onDestroy:fa},null,8,["fileDataList"])):a.createCommentVNode("",!0),b.value?(a.openBlock(),a.createBlock(vr.ssDialog,{key:4,visible:b.value,onBeforeDestroy:n,style:{height:"700px",width:"1000px"}},{default:a.withCtx(()=>[a.createVNode(bo.ThreeViewerHost,{files:v.value,onGetAnimationData:fe.onAnimationData},null,8,["files","onGetAnimationData"])]),_:1},8,["visible"])):a.createCommentVNode("",!0)])}}},hs=ql._export_sfc(g3,[["__scopeId","data-v-c4708f41"]]),Bo=a.ref(0),gc=l=>{var r;return!l||(l==null?void 0:l.length)===0?[]:(r=I.cloneDeep(l))==null?void 0:r.map(t=>(Bo.value++,t={label:(t==null?void 0:t.label)??"",prop:(t==null?void 0:t.label)==="操作"?"operate":t==null?void 0:t.prop,width:t!=null&&t.width?parseInt(t.width):"",fixed:(t==null?void 0:t.fixed)??void 0,sortable:(t==null?void 0:t.sortable)??!1,align:(t==null?void 0:t.align)??"left",showOverflowTooltip:(t==null?void 0:t.showOverflowTooltip)??!0,isNotDrag:(t==null?void 0:t.isNotDrag)??!1,isEditCol:(t==null?void 0:t.isEditCol)??!1,isOperate:(t==null?void 0:t.isOperate)??!1,id:(t==null?void 0:t.id)??Bo.value,children:gc(t==null?void 0:t.children)},t))},b3=l=>{var n;return(n=I.cloneDeep(l))==null?void 0:n.map(t=>(Bo.value++,t={label:(t==null?void 0:t.label)??"",prop:(t==null?void 0:t.label)==="操作"?"operate":t==null?void 0:t.prop,width:t!=null&&t.width?parseInt(t.width):"",fixed:(t==null?void 0:t.fixed)??void 0,sortable:(t==null?void 0:t.sortable)??!1,align:(t==null?void 0:t.align)??"left",showOverflowTooltip:(t==null?void 0:t.showOverflowTooltip)??!0,isNotDrag:(t==null?void 0:t.isNotDrag)??!1,isEditCol:(t==null?void 0:t.isEditCol)??!1,isOperate:(t==null?void 0:t.isOperate)??!1,id:(t==null?void 0:t.id)??Bo.value,children:gc(t==null?void 0:t.children)},t))},bc=(l,r)=>{var n;return l!=null&&l.find(t=>(t==null?void 0:t.id)===r)?(n=I.cloneDeep(l))==null?void 0:n.filter(s=>(s==null?void 0:s.id)!==r):(l=l==null?void 0:l.map(t=>(t.children=bc(t==null?void 0:t.children,r),t)),l)},kc=(l,r)=>{var n;return l!=null&&l.find(t=>(t==null?void 0:t.id)===(r==null?void 0:r.id))?(n=I.cloneDeep(l))==null?void 0:n.map(s=>((s==null?void 0:s.id)===(r==null?void 0:r.id)&&(s=r),s)):(l=l==null?void 0:l.map(t=>(t.children=kc(t==null?void 0:t.children,r),t)),l)},xc=(l,r)=>{var n;return l!=null&&l.find(t=>{var s;return(t==null?void 0:t.id)===((s=r==null?void 0:r.contents)==null?void 0:s.id)})?(n=I.cloneDeep(l))==null?void 0:n.map(s=>{var u;return(s==null?void 0:s.id)===((u=r==null?void 0:r.contents)==null?void 0:u.id)&&(s=r==null?void 0:r.contents),s}):(l=l==null?void 0:l.map(t=>(t.children=xc(t==null?void 0:t.children,r),t)),l)},_c=(l,r)=>{var n;return l!=null&&l.find(t=>(t==null?void 0:t.id)===(r==null?void 0:r.id))?(n=I.cloneDeep(l))==null?void 0:n.map(s=>((s==null?void 0:s.id)===(r==null?void 0:r.id)&&(s!=null&&s.children||(s.children=[]),s.children.push(r.contents)),s)):(l=l==null?void 0:l.map(t=>(t.children=_c(t==null?void 0:t.children,r),t)),l)},er=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"width",label:"宽度",type:"Input"},{key:"sortable",label:"是否支持排序",type:"Switch"},{key:"align",label:"文本所在位置",type:"Radio",options:[{label:"left",value:"左"},{label:"center",value:"中"},{label:"right",value:"右"}]},{key:"fixed",label:"是否固定列",type:"Switch"}],k3=[{label:"查看",value:"view"},{label:"修改",value:"fix"},{label:"删除",value:"delete"},{label:"三维算例",value:"modelExample"}],x3=[{label:"新增",value:"add"}],Bn=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:x3},{key:"background",label:"按钮背景色",type:"Color"}],Nn=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:k3},{key:"textColor",label:"按钮颜色",type:"Color"}],_3={class:"table-header-child"},w3={class:"table-header-child-main"},C3={class:"table-header-child-content"},E3={class:"table-header-child-content-item"},S3={class:"fix-button"},D3={key:0},B3={class:"form-content"},N3={__name:"tableNewChild",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(l,{emit:r}){const n=l,t=r,s=a.ref(!1),u=a.ref(""),b=na.useTableComp(I.pinia),{tableIndex:h}=I.storeToRefs(b);a.ref(0);const v=a.ref(""),y=a.ref([]),c=a.ref([]),w=S=>{var z;s.value=!0;let V=[];er==null||er.forEach(x=>{let g=I.cloneDeep(h.value)+1;b.setTableIndex(g),V.push({label:x==null?void 0:x.label,name:x==null?void 0:x.label,type:x.type,value:S[x.key],id:h.value,contents:x==null?void 0:x.options})}),S!=null&&S.children&&((z=S==null?void 0:S.children)==null?void 0:z.length)>0&&V.push({children:S==null?void 0:S.children,isFormColHidden:!0}),v.value=S==null?void 0:S.id,y.value=V,c.value=V},D=S=>{t("fixChange",I.cloneDeep(S))},A=S=>{t("deleteChange",I.cloneDeep(S))},_=S=>{s.value=!0;let V=[];er==null||er.forEach(z=>{let x=I.cloneDeep(h.value)+1;b.setTableIndex(x),V.push({label:z==null?void 0:z.label,name:z==null?void 0:z.label,type:z.type,value:"",id:h.value,contents:z==null?void 0:z.options})}),u.value=S==null?void 0:S.id,y.value=V,c.value=V},H=S=>{let V=I.cloneDeep(c.value);V=V==null?void 0:V.map(z=>(z.children||(z.value=S==null?void 0:S[z.name]),z)),c.value=V},k=()=>{var V,z;y.value=c.value;let S={};if(v.value!=="")S.id=v.value,(V=y.value)==null||V.forEach(x=>{const g=er==null?void 0:er.find(F=>(F==null?void 0:F.label)===(x==null?void 0:x.label));g?S[g.key]=x.value:x!=null&&x.children&&x.children.length>0&&(S.children=x.children)}),s.value=!1,t("fixChange",{contents:I.cloneDeep(S),id:u.value,type:"fix"});else{let x=I.cloneDeep(h.value)+1;b.setTableIndex(x),S.id="id"+h.value,(z=y.value)==null||z.forEach(g=>{const F=er==null?void 0:er.find(q=>(q==null?void 0:q.label)===(g==null?void 0:g.label));F?S[F.key]=g.value:g!=null&&g.children&&g.children.length>0&&(S.children=g.children)}),s.value=!1,t("fixChange",{contents:I.cloneDeep(S),id:u.value,type:"add"})}v.value="",y.value=[],c.value=[]},T=()=>{s.value=!1,v.value="",u.value="",y.value=[],c.value=[]},J=S=>{I.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{t("deleteChange",S),ll.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(S,V)=>{const z=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",_3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n==null?void 0:n.tableChildContents,(x,g)=>(a.openBlock(),a.createElementBlock("div",w3,[a.createElementVNode("div",C3,[a.createElementVNode("div",E3,a.toDisplayString(x.label),1),a.createElementVNode("div",S3,[a.createVNode(z,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:F=>_(x)},null,8,["onClick"]),a.createVNode(z,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:F=>w(x)},null,8,["onClick"]),a.createVNode(z,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:F=>J(x)},null,8,["onClick"])])]),x!=null&&x.children&&x.children.length>0?(a.openBlock(),a.createElementBlock("div",D3,[a.createVNode(wc,{tableChildContents:x==null?void 0:x.children,onDeleteChange:A,onFixChange:D},null,8,["tableChildContents"])])):a.createCommentVNode("",!0)]))),256)),a.createVNode(vr.ssDialog,{visible:s.value,onBeforeDestroy:T,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",B3,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:H},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",{class:"dialog-footer"},[a.createElementVNode("div",{onClick:T,class:"cancel-button button"},a.toDisplayString("取消")),a.createElementVNode("div",{class:"ok-button button",onClick:k},a.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},T3=ql._export_sfc(N3,[["__scopeId","data-v-e0fef72d"]]),A3={class:"table-header-child"},z3={class:"table-header-child-main"},M3={class:"table-header-child-content"},O3={class:"table-header-child-content-item"},I3={class:"fix-button"},L3={key:0},V3={class:"form-content"},$3={class:"dialog-footer"},R3={__name:"tableChildren",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(l,{emit:r}){const n=l,t=r,s=a.ref(!1),u=a.ref(""),b=na.useTableComp(I.pinia),{tableIndex:h}=I.storeToRefs(b),v=a.ref(""),y=a.ref([]),c=a.ref([]),w=S=>{t("fixChange",I.cloneDeep(S))},D=S=>{var z;s.value=!0;let V=[];er==null||er.forEach(x=>{let g=I.cloneDeep(h.value)+1;b.setTableIndex(g),V.push({label:x==null?void 0:x.label,name:x==null?void 0:x.label,type:x.type,value:S[x.key],id:h.value,contents:x==null?void 0:x.options})}),S!=null&&S.children&&((z=S==null?void 0:S.children)==null?void 0:z.length)>0&&V.push({children:S==null?void 0:S.children,isFormColHidden:!0}),v.value=S==null?void 0:S.id,y.value=V,c.value=V},A=S=>{s.value=!0;let V=[];er==null||er.forEach(z=>{let x=I.cloneDeep(h.value)+1;b.setTableIndex(x),V.push({label:z==null?void 0:z.label,name:z==null?void 0:z.label,type:z.type,value:"",id:h.value,contents:z==null?void 0:z.options})}),u.value=S==null?void 0:S.id,y.value=V,c.value=V},_=S=>{let V=I.cloneDeep(c.value);V=V==null?void 0:V.map(z=>(z.children||(z.value=S==null?void 0:S[z.name]),z)),c.value=V},H=()=>{var V,z;y.value=c.value;let S={};if(v.value!=="")S.id=v.value,(V=y.value)==null||V.forEach(x=>{const g=er==null?void 0:er.find(F=>(F==null?void 0:F.label)===(x==null?void 0:x.label));g?S[g.key]=x.value:x!=null&&x.children&&x.children.length>0&&(S.children=x.children)}),s.value=!1,t("fixChange",{contents:I.cloneDeep(S),id:u.value,type:"fix"});else{let x=I.cloneDeep(h.value)+1;b.setTableIndex(x),S.id="idChild"+h.value,(z=y.value)==null||z.forEach(g=>{const F=er==null?void 0:er.find(q=>(q==null?void 0:q.label)===(g==null?void 0:g.label));F?S[F.key]=g.value:g!=null&&g.children&&g.children.length>0&&(S.children=g.children)}),s.value=!1,t("fixChange",{contents:I.cloneDeep(S),id:u.value,type:"add"})}v.value="",y.value=[],c.value=[]},k=()=>{s.value=!1,v.value="",u.value="",y.value=[],c.value=[]},T=S=>{I.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{t("deleteChange",S),ll.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},J=S=>{t("deleteChange",S)};return(S,V)=>{const z=a.resolveComponent("svg-icon"),x=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",A3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n==null?void 0:n.tableChildContents,(g,F)=>(a.openBlock(),a.createElementBlock("div",z3,[a.createElementVNode("div",M3,[a.createElementVNode("div",O3,a.toDisplayString(g.label),1),a.createElementVNode("div",I3,[a.createVNode(z,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:q=>A(g)},null,8,["onClick"]),a.createVNode(z,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:q=>D(g)},null,8,["onClick"]),a.createVNode(z,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:q=>T(g)},null,8,["onClick"])])]),g!=null&&g.children&&g.children.length>0?(a.openBlock(),a.createElementBlock("div",L3,[a.createVNode(T3,{tableChildContents:g==null?void 0:g.children,onDeleteChange:J,onFixChange:w},null,8,["tableChildContents"])])):a.createCommentVNode("",!0)]))),256)),a.createVNode(vr.ssDialog,{visible:s.value,onBeforeDestroy:k,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",V3,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:_},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",$3,[a.createVNode(x,{onClick:k,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>V[0]||(V[0]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[0]}),a.createVNode(x,{class:"ok-button button",onClick:H,id:"themeButton"},{default:a.withCtx(()=>V[1]||(V[1]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},wc=ql._export_sfc(R3,[["__scopeId","data-v-ebd68fa1"]]),P3={class:"table-operate-content"},F3={class:"table-operate-item"},j3={class:"operate-title"},H3={class:"operate-content"},U3={class:"fix-content"},q3={class:"fix-content-label"},K3={class:"fix-button"},W3={key:0},Y3={class:"operate-title"},G3={class:"operate-content"},J3={class:"fix-content"},X3={class:"fix-content-label"},Z3={class:"fix-button"},Q3={class:"operate-title"},e1={class:"operate-content"},a1={class:"fix-content"},l1={class:"fix-content-label"},r1={class:"fix-button"},n1={class:"operate-title"},o1={class:"operate-content"},i1={class:"fix-content"},s1={class:"fix-content-label"},c1={class:"fix-button"},u1={class:"operate-content"},d1={style:{display:"flex","justify-content":"space-between"}},p1={class:"form-content"},f1={class:"dialog-footer"},h1={class:"form-content"},v1={class:"dialog-footer"},m1={class:"form-content"},y1={class:"dialog-footer"},g1={class:"form-content"},b1={class:"dialog-footer"},k1={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:r}){const n=l,t=r,s=a.ref([]),u=a.ref(!1),b=a.ref(!1),h=a.ref([]),v=a.ref(!1),y=a.ref([]),c=a.ref(!1),w=a.ref([]),D=a.ref(""),A=a.ref(""),_=a.ref([]),H=a.ref([]),k=a.ref([]),T=a.ref([]),J=a.ref(!1),S=a.ref([]),V=a.ref([]),z=a.ref(0),x=a.ref([]),g=a.ref([]),F=a.ref([]),q=()=>{J.value=!0;let R=[];Bn==null||Bn.forEach(P=>{z.value++,R.push({label:P==null?void 0:P.label,name:P==null?void 0:P.label,type:P.type,value:(P==null?void 0:P.key)==="background"?"var(--ssComponent-primary-color)":"",id:z.value,contents:P==null?void 0:P.options})}),S.value=R,V.value=R},G=()=>{var P,Y,oe;b.value=!0;let R=[];(oe=(Y=(P=na.FormContent)==null?void 0:P.find(ie=>(ie==null?void 0:ie.key)==="Input"))==null?void 0:Y.value)==null||oe.forEach(ie=>{z.value++,R.push({label:ie==null?void 0:ie.label,name:(ie==null?void 0:ie.name)||(ie==null?void 0:ie.label),type:ie.type,value:(ie==null?void 0:ie.label)==="类型"?"Input":"",id:z.value,contents:ie==null?void 0:ie.options})}),x.value=R,g.value=R},be=R=>{R||(x.value=g.value)},ze=async R=>{var P,Y,oe,ie,fa,ra,Ie,we,Ca,fe,Je,Ze;if((R==null?void 0:R.类型)!==((Y=(P=g.value)==null?void 0:P.find(Fe=>(Fe==null?void 0:Fe.label)==="类型"))==null?void 0:Y.value)){let Fe=[],ka=await((fa=(ie=(oe=na.FormContent)==null?void 0:oe.find($e=>($e==null?void 0:$e.key)===((R==null?void 0:R.类型)===""?"Input":R==null?void 0:R.类型)))==null?void 0:ie.value)==null?void 0:fa.value)?await((fe=(Ca=(we=na.FormContent)==null?void 0:we.find($e=>($e==null?void 0:$e.key)===((R==null?void 0:R.类型)===""?"Input":R==null?void 0:R.类型)))==null?void 0:Ca.value)==null?void 0:fe.value):(Ie=(ra=na.FormContent)==null?void 0:ra.find($e=>($e==null?void 0:$e.key)===((R==null?void 0:R.类型)===""?"Input":R==null?void 0:R.类型)))==null?void 0:Ie.value;if(ka==null||ka.forEach($e=>{z.value++,Fe.push({label:$e==null?void 0:$e.label,name:($e==null?void 0:$e.name)||($e==null?void 0:$e.label),type:$e.type,value:$e!=null&&$e.属性名?(R==null?void 0:R.prop)||(R==null?void 0:R.name)||(R==null?void 0:R.label):(R==null?void 0:R[$e.label])??"",id:z.value,contents:$e==null?void 0:$e.options,prop:($e==null?void 0:$e.prop)||($e==null?void 0:$e.name)||($e==null?void 0:$e.label)})}),R!=null&&R.菜单选项&&((Je=R==null?void 0:R.菜单选项)==null?void 0:Je.length)>0){const $e=await na.menuToContentType(R==null?void 0:R.菜单选项);Fe=Fe==null?void 0:Fe.map(pa=>((pa==null?void 0:pa.name)==="组信息选项"&&(pa.contents=$e),pa))}g.value=await na.selectToBase(I.cloneDeep(Fe)),x.value=await na.selectToBase(I.cloneDeep(Fe))}else{let Fe=I.cloneDeep(x.value);if(Fe=Fe==null?void 0:Fe.map(ka=>(ka.value=R==null?void 0:R[ka.name],ka)),R!=null&&R.菜单选项&&((Ze=R==null?void 0:R.菜单选项)==null?void 0:Ze.length)>0){const ka=await na.menuToContentType(R==null?void 0:R.菜单选项);Fe=Fe==null?void 0:Fe.map($e=>(($e==null?void 0:$e.name)==="组信息选项"&&($e.contents=ka),$e))}Fe=na.formToOptionsContents(Fe),g.value=await na.selectToBase(I.cloneDeep(Fe))}},De=async R=>{await ze(R),x.value=g.value},ne=(R,P)=>{if((P==null?void 0:P.type)=="Select"&&(R==null?void 0:R.key)==="selectRelateType"){const Y=P==null?void 0:P.optionUrl;return(Y==null?void 0:Y.selectRelateType)||P[R.key]}if((P==null?void 0:P.type)=="Select"&&(R==null?void 0:R.key)==="menuSelect"){const Y=P==null?void 0:P.optionUrl;return(Y==null?void 0:Y.menuSelect)||P[R.key]}if((P==null?void 0:P.type)=="Select"&&(R==null?void 0:R.key)==="groupSelect"){const Y=P==null?void 0:P.optionUrl;return(Y==null?void 0:Y.groupSelect)||P[R.key]}if((P==null?void 0:P.type)=="Select"&&(R==null?void 0:R.key)==="originalContent")return(P==null?void 0:P.value)||P[R.key];if((P==null?void 0:P.type)=="Select"&&(R==null?void 0:R.key)==="multiple"){const Y=P[R.key];return qs(Y)?Y:R.default}return(R==null?void 0:R.label)==="类型"&&P[R.key]===""?"Input":(R==null?void 0:R.key)==="isFormColHidden"&&!P[R.key]?!1:P[R.key]},ke=async R=>{var oe,ie,fa,ra,Ie,we,Ca,fe,Je;b.value=!0;let P=[];const Y=await((fa=(ie=(oe=na.FormContent)==null?void 0:oe.find(Ze=>(Ze==null?void 0:Ze.key)===((R==null?void 0:R.type)===""?"Input":R==null?void 0:R.type)))==null?void 0:ie.value)==null?void 0:fa.value)?await((fe=(Ca=(we=na.FormContent)==null?void 0:we.find(Ze=>(Ze==null?void 0:Ze.key)===((R==null?void 0:R.type)===""?"Input":R==null?void 0:R.type)))==null?void 0:Ca.value)==null?void 0:fe.value):(Ie=(ra=na.FormContent)==null?void 0:ra.find(Ze=>(Ze==null?void 0:Ze.key)===((R==null?void 0:R.type)===""?"Input":R==null?void 0:R.type)))==null?void 0:Ie.value;if(Y==null||Y.forEach(Ze=>{z.value++,P.push({label:Ze==null?void 0:Ze.label,name:(Ze==null?void 0:Ze.name)||(Ze==null?void 0:Ze.label),type:Ze.type,value:(Ze==null?void 0:Ze.label)==="属性名"?(R==null?void 0:R.prop)||(R==null?void 0:R.name)||(R==null?void 0:R.label):ne(Ze,R),id:z.value,contents:Ze==null?void 0:Ze.options})}),R!=null&&R.menuSelect&&((Je=R==null?void 0:R.menuSelect)==null?void 0:Je.length)>0){const Ze=await na.menuToContentType(R==null?void 0:R.menuSelect);P=P==null?void 0:P.map(Fe=>((Fe==null?void 0:Fe.name)==="组信息选项"&&(Fe.contents=Ze),Fe))}D.value=R==null?void 0:R.id,x.value=await na.selectToBase(na.formToOptionsContents(P)),g.value=await na.selectToBase(na.formToOptionsContents(P))},X=R=>{I.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var P,Y;F.value=(P=I.cloneDeep(F.value))==null?void 0:P.filter(oe=>(oe==null?void 0:oe.id)!==(R==null?void 0:R.id)),t("change",(Y=I.cloneDeep(n.originalItemContents))==null?void 0:Y.map(oe=>((oe==null?void 0:oe.key)==="tableToForm"&&(oe.contents=F.value),oe))),ll.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},pe=()=>{b.value=!1,x.value=[],D.value=""},Ke=async()=>{var oe,ie,fa,ra,Ie,we,Ca,fe,Je,Ze;x.value=g.value;let R={};D.value!==""?R.id=D.value:(z.value++,R.id="id"+z.value);let P=await((fa=(ie=(oe=na.FormContent)==null?void 0:oe.find(Fe=>{var ka,$e;return(Fe==null?void 0:Fe.key)===((($e=(ka=x.value)==null?void 0:ka.find(pa=>(pa==null?void 0:pa.label)==="类型"))==null?void 0:$e.value)??"label")}))==null?void 0:ie.value)==null?void 0:fa.value)??((Ie=(ra=na.FormContent)==null?void 0:ra.find(Fe=>{var ka,$e;return(Fe==null?void 0:Fe.key)===((($e=(ka=x.value)==null?void 0:ka.find(pa=>(pa==null?void 0:pa.label)==="类型"))==null?void 0:$e.value)??"label")}))==null?void 0:Ie.value);if((we=x.value)==null||we.forEach(Fe=>{const ka=P==null?void 0:P.find($e=>($e==null?void 0:$e.label)===(Fe==null?void 0:Fe.label));ka&&(R[ka.key]=Fe.value)}),R.name=R.label,(Ca=F.value)!=null&&Ca.find(Fe=>Fe.id===R.id))F.value=(fe=F.value)==null?void 0:fe.map(Fe=>(Fe.id===R.id&&(Fe=R),Fe));else{let Fe=I.cloneDeep(F.value);F.value||(F.value=[]),Fe.push(R),F.value=Fe}F.value=F.value.map(({id:Fe,...ka})=>ka),b.value=!1,D.value="";let Y=I.cloneDeep(n.originalItemContents);(Je=I.cloneDeep(n.originalItemContents))!=null&&Je.find(Fe=>(Fe==null?void 0:Fe.key)==="tableToForm")?Y=(Ze=I.cloneDeep(n.originalItemContents))==null?void 0:Ze.map(Fe=>((Fe==null?void 0:Fe.key)==="tableToForm"&&(Fe.contents=F.value),Fe)):Y.push({key:"tableToForm",contents:F.value}),t("change",Y)},Sa=R=>{J.value=!0;let P=[];Bn==null||Bn.forEach(Y=>{z.value++,P.push({label:Y==null?void 0:Y.label,name:Y==null?void 0:Y.label,type:Y.type,value:R[Y.key],id:z.value,contents:Y==null?void 0:Y.options})}),D.value=R==null?void 0:R.id,S.value=P,V.value=P};a.watch(()=>c.value,()=>{var P,Y;let R=I.cloneDeep(n.originalItemContents);(P=I.cloneDeep(n.originalItemContents))!=null&&P.find(oe=>(oe==null?void 0:oe.key)==="page")?R=(Y=I.cloneDeep(n.originalItemContents))==null?void 0:Y.map(oe=>((oe==null?void 0:oe.key)==="page"&&(oe.contents=c.value),oe)):R.push({key:"page",contents:c.value}),t("change",R)},{deep:!0});const te=R=>{I.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var P,Y;H.value=(P=I.cloneDeep(H.value))==null?void 0:P.filter(oe=>(oe==null?void 0:oe.id)!==(R==null?void 0:R.id)),t("change",(Y=I.cloneDeep(n.originalItemContents))==null?void 0:Y.map(oe=>((oe==null?void 0:oe.key)==="extraButton"&&(oe.contents=H.value),oe))),ll.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},B=()=>{var Y,oe,ie,fa,ra;S.value=V.value;let R={};if(D.value!==""?R.id=D.value:(z.value++,R.id="id"+z.value),(Y=S.value)==null||Y.forEach(Ie=>{const we=Bn==null?void 0:Bn.find(Ca=>(Ca==null?void 0:Ca.label)===(Ie==null?void 0:Ie.label));we?R[we.key]=Ie.value:Ie!=null&&Ie.children&&Ie.children.length>0&&(R.children=Ie.children)}),(oe=H.value)!=null&&oe.find(Ie=>Ie.id===R.id))H.value=(ie=H.value)==null?void 0:ie.map(Ie=>(Ie.id===R.id&&(Ie=R),Ie));else{let Ie=I.cloneDeep(H.value)??[];Ie.push(R),H.value=Ie}J.value=!1,D.value="";let P=I.cloneDeep(n.originalItemContents);(fa=I.cloneDeep(n.originalItemContents))!=null&&fa.find(Ie=>(Ie==null?void 0:Ie.key)==="extraButton")?P=(ra=I.cloneDeep(n.originalItemContents))==null?void 0:ra.map(Ie=>((Ie==null?void 0:Ie.key)==="extraButton"&&(Ie.contents=H.value),Ie)):P.push({key:"extraButton",contents:H.value}),t("change",P)},le=R=>{let P=I.cloneDeep(V.value);P=P==null?void 0:P.map(Y=>(Y.children||(Y.value=R==null?void 0:R[Y.name]),Y)),V.value=P},ye=()=>{J.value=!1,S.value=[],D.value=""},se=R=>{v.value=!0;let P=[];Nn==null||Nn.forEach(Y=>{z.value++,P.push({label:Y==null?void 0:Y.label,name:Y==null?void 0:Y.label,type:Y.type,value:R[Y.key],id:z.value,contents:Y==null?void 0:Y.options})}),D.value=R==null?void 0:R.id,k.value=P,T.value=P},Ne=R=>{I.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var P,Y;_.value=(P=I.cloneDeep(_.value))==null?void 0:P.filter(oe=>(oe==null?void 0:oe.id)!==(R==null?void 0:R.id)),t("change",(Y=I.cloneDeep(n.originalItemContents))==null?void 0:Y.map(oe=>((oe==null?void 0:oe.key)==="rowButton"&&(oe.contents=_.value),oe))),ll.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},ia=()=>{u.value=!0;let R=[];er==null||er.forEach(P=>{z.value++,R.push({label:P==null?void 0:P.label,name:P==null?void 0:P.label,type:P.type,value:"",id:z.value,contents:P==null?void 0:P.options})}),y.value=R,w.value=R},xa=()=>{v.value=!0;let R=[];Nn==null||Nn.forEach(P=>{z.value++,R.push({label:P==null?void 0:P.label,name:P==null?void 0:P.label,type:P.type,value:"",id:z.value,contents:P==null?void 0:P.options})}),k.value=R,T.value=R},Ha=R=>{let P=I.cloneDeep(T.value);P=P==null?void 0:P.map(Y=>(Y.children||(Y.value=R==null?void 0:R[Y.name]),Y)),T.value=P},ee=()=>{var Y,oe,ie,fa,ra;k.value=T.value;let R={};if(D.value!==""?R.id=D.value:(z.value++,R.id="id"+z.value),(Y=k.value)==null||Y.forEach(Ie=>{const we=Nn==null?void 0:Nn.find(Ca=>(Ca==null?void 0:Ca.label)===(Ie==null?void 0:Ie.label));we?R[we.key]=Ie.value:Ie!=null&&Ie.children&&Ie.children.length>0&&(R.children=Ie.children)}),(oe=_.value)!=null&&oe.find(Ie=>Ie.id===R.id))_.value=(ie=_.value)==null?void 0:ie.map(Ie=>(Ie.id===R.id&&(Ie=R),Ie));else{let Ie=I.cloneDeep(_.value);Ie.push(R),_.value=Ie}v.value=!1,D.value="";let P=I.cloneDeep(n.originalItemContents);(fa=I.cloneDeep(n.originalItemContents))!=null&&fa.find(Ie=>(Ie==null?void 0:Ie.key)==="rowButton")?P=(ra=I.cloneDeep(n.originalItemContents))==null?void 0:ra.map(Ie=>((Ie==null?void 0:Ie.key)==="rowButton"&&(Ie.contents=_.value),Ie)):P.push({key:"rowButton",contents:_.value}),t("change",P)},ea=()=>{v.value=!1,D.value="",T.value=[],k.value=[]},Pe=R=>{u.value=!0;let P=[];er==null||er.forEach(Y=>{z.value++,P.push({label:Y==null?void 0:Y.label,name:Y==null?void 0:Y.label,type:Y.type,value:"",id:z.value,contents:Y==null?void 0:Y.options})}),y.value=P,A.value=R==null?void 0:R.id,w.value=P},ga=R=>{var P;h.value=bc(I.cloneDeep(h.value),R==null?void 0:R.id),t("change",(P=I.cloneDeep(n.originalItemContents))==null?void 0:P.map(Y=>{var oe;return(Y==null?void 0:Y.key)==="header"&&(Y.contents=(oe=h.value)!=null&&oe.some(ie=>ie==null?void 0:ie.children)?[h.value]:h.value),Y}))},He=R=>{var Y,oe,ie;R.type==="fix"?R.id!==""?h.value=xc(h.value,R):h.value=kc(h.value,R==null?void 0:R.contents):h.value=_c(h.value,R),h.value=(Y=h.value)!=null&&Y.some(fa=>fa==null?void 0:fa.children)?[h.value]:h.value,D.value="";let P=I.cloneDeep(n.originalItemContents);(oe=I.cloneDeep(n.originalItemContents))!=null&&oe.find(fa=>(fa==null?void 0:fa.key)==="header")?P=(ie=I.cloneDeep(n.originalItemContents))==null?void 0:ie.map(fa=>((fa==null?void 0:fa.key)==="header"&&(fa.contents=h.value),fa)):P.push({key:"header",contents:h.value}),t("change",P)},Ae=R=>{var Y;u.value=!0;let P=[];er==null||er.forEach(oe=>{z.value++,P.push({label:oe==null?void 0:oe.label,name:oe==null?void 0:oe.label,type:oe.type,value:R[oe.key],id:z.value,contents:oe==null?void 0:oe.options})}),R!=null&&R.children&&((Y=R==null?void 0:R.children)==null?void 0:Y.length)>0&&P.push({children:R==null?void 0:R.children,isFormColHidden:!0}),D.value=R==null?void 0:R.id,A.value="",y.value=P,w.value=P},Re=R=>{let P=I.cloneDeep(w.value);P=P==null?void 0:P.map(Y=>(Y.children||(Y.value=R==null?void 0:R[Y.name]),Y)),w.value=P},Ge=()=>{u.value=!1,D.value="",A.value="",w.value=[]},Ka=()=>{var Y,oe,ie,fa,ra,Ie;y.value=w.value;let R={};if(D.value!==""?R.id=D.value:(z.value++,R.id="id"+z.value),(Y=y.value)==null||Y.forEach(we=>{const Ca=er==null?void 0:er.find(fe=>(fe==null?void 0:fe.label)===(we==null?void 0:we.label));Ca?R[Ca.key]=we.value:we!=null&&we.children&&we.children.length>0&&(R.children=we.children)}),(oe=h.value)!=null&&oe.find(we=>we.id===R.id))h.value=(ie=h.value)==null?void 0:ie.map(we=>(we.id===R.id&&(we=R),we));else{let we=I.cloneDeep(h.value)??[];A.value===""?we.push(R):we=we==null?void 0:we.map(Ca=>(Ca.id===A.value&&(Ca.children||(Ca.children=[]),Ca.children.push(R)),Ca)),h.value=we}h.value=(fa=h.value)!=null&&fa.some(we=>we==null?void 0:we.children)?[h.value]:h.value,u.value=!1,D.value="",A.value="";let P=I.cloneDeep(n.originalItemContents);(ra=I.cloneDeep(n.originalItemContents))!=null&&ra.find(we=>(we==null?void 0:we.key)==="header")?P=(Ie=I.cloneDeep(n.originalItemContents))==null?void 0:Ie.map(we=>((we==null?void 0:we.key)==="header"&&(we.contents=h.value),we)):P.push({key:"header",contents:h.value}),t("change",P)},Ia=R=>{I.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var P,Y;h.value=(P=I.cloneDeep(h.value))==null?void 0:P.filter(oe=>(oe==null?void 0:oe.id)!==(R==null?void 0:R.id)),t("change",(Y=I.cloneDeep(n.originalItemContents))==null?void 0:Y.map(oe=>{var ie;return(oe==null?void 0:oe.key)==="header"&&(oe.contents=(ie=h.value)!=null&&ie.some(fa=>fa==null?void 0:fa.children)?[h.value]:h.value),oe})),ll.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return a.watch(()=>n.originalItemContents,()=>{var R,P,Y,oe,ie,fa,ra,Ie,we,Ca,fe,Je,Ze,Fe,ka,$e,pa,re,Se;if(!(!n.originalItemContents||n.originalItemContents.length===0))if(s.value=I.cloneDeep(n.originalItemContents),h.value=(P=(R=s.value)==null?void 0:R.find(K=>(K==null?void 0:K.key)==="header"))==null?void 0:P.contents,_.value=(oe=(Y=s.value)==null?void 0:Y.find(K=>(K==null?void 0:K.key)==="rowButton"))==null?void 0:oe.contents,H.value=(fa=(ie=s.value)==null?void 0:ie.find(K=>(K==null?void 0:K.key)==="extraButton"))==null?void 0:fa.contents,c.value=(Ie=(ra=s.value)==null?void 0:ra.find(K=>(K==null?void 0:K.key)==="page"))!=null&&Ie.contents?!!((Ca=(we=s.value)==null?void 0:we.find(K=>(K==null?void 0:K.key)==="page"))!=null&&Ca.contents):!1,F.value=(Je=(fe=s.value)==null?void 0:fe.find(K=>(K==null?void 0:K.key)==="tableToForm"))==null?void 0:Je.contents,h.value=(Ze=h.value)==null?void 0:Ze.map((K,je)=>(Array.isArray(K)?K=b3(K):K={label:(K==null?void 0:K.label)??"",prop:(K==null?void 0:K.label)==="操作"?"operate":K==null?void 0:K.prop,width:K!=null&&K.width?parseInt(K.width):"",fixed:(K==null?void 0:K.fixed)??void 0,sortable:(K==null?void 0:K.sortable)??!1,align:(K==null?void 0:K.align)??"left",showOverflowTooltip:(K==null?void 0:K.showOverflowTooltip)??!0,isNotDrag:(K==null?void 0:K.isNotDrag)??!1,isEditCol:(K==null?void 0:K.isEditCol)??!1,isOperate:(K==null?void 0:K.isOperate)??!1,id:(K==null?void 0:K.id)??je,formMenuSelect:(K==null?void 0:K.formMenuSelect)??void 0,groupSelect:(K==null?void 0:K.groupSelect)??void 0},K)),h.value=(Fe=h.value)!=null&&Fe.every(K=>Array.isArray(K))?(ka=h.value)==null?void 0:ka[0]:h.value,_.value=($e=_.value)==null?void 0:$e.map((K,je)=>K={label:(K==null?void 0:K.label)??"",type:(K==null?void 0:K.type)??"",textColor:(K==null?void 0:K.textColor)??"#000000",id:(K==null?void 0:K.id)??je}),H.value=(pa=H.value)==null?void 0:pa.map((K,je)=>K={label:(K==null?void 0:K.label)??"",type:(K==null?void 0:K.type)??"",background:(K==null?void 0:K.background)??"var(--ssComponent-primary-color)",id:(K==null?void 0:K.id)??je}),F.value)F.value=(Se=F.value)==null?void 0:Se.map(K=>{z.value++;let je=K;return je.id=z.value,je});else{let K=[];const je=(re=na.getColumnChild(I.cloneDeep(h.value)))==null?void 0:re.filter(Be=>(Be==null?void 0:Be.prop)!=="operate");je==null||je.forEach(Be=>{var za;z.value++,K.push({label:Be==null?void 0:Be.label,name:(Be==null?void 0:Be.prop)||(Be==null?void 0:Be.label),type:Be!=null&&Be.groupSelect?"Select":"Input",value:"",id:z.value,contents:Be==null?void 0:Be.options,menuSelect:Be==null?void 0:Be.formMenuSelect,groupSelect:(za=Be==null?void 0:Be.groupSelect)==null?void 0:za.split(":"),selectRelateType:"关联绑定列"})}),F.value=K}},{deep:!0,immediate:!0}),(R,P)=>{const Y=a.resolveComponent("svg-icon"),oe=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",P3,[a.createElementVNode("div",F3,[a.createElementVNode("div",j3,[P[2]||(P[2]=a.createElementVNode("div",null,a.toDisplayString("表头"),-1)),a.createVNode(oe,{class:"icon-content",onClick:ia,id:"themeButton"},{icon:a.withCtx(()=>[a.createVNode(Y,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[P[1]||(P[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",H3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.value,(ie,fa)=>(a.openBlock(),a.createElementBlock("div",{key:fa},[a.createElementVNode("div",U3,[a.createElementVNode("div",q3,a.toDisplayString(ie==null?void 0:ie.label),1),a.createElementVNode("div",K3,[a.createVNode(Y,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ra=>Pe(ie)},null,8,["onClick"]),a.createVNode(Y,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ra=>Ae(ie)},null,8,["onClick"]),a.createVNode(Y,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ra=>Ia(ie)},null,8,["onClick"])])]),ie!=null&&ie.children&&ie.children.length>0?(a.openBlock(),a.createElementBlock("div",W3,[a.createVNode(wc,{tableChildContents:ie==null?void 0:ie.children,onDeleteChange:ga,onFixChange:He},null,8,["tableChildContents"])])):a.createCommentVNode("",!0)]))),128))]),a.createElementVNode("div",Y3,[P[4]||(P[4]=a.createElementVNode("div",null,a.toDisplayString("行内按钮"),-1)),a.createVNode(oe,{class:"icon-content",id:"themeButton",onClick:xa},{icon:a.withCtx(()=>[a.createVNode(Y,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[P[3]||(P[3]=a.createTextVNode(" 新增 "))]),_:1,__:[3]})]),a.createElementVNode("div",G3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(_.value,(ie,fa)=>(a.openBlock(),a.createElementBlock("div",{key:fa},[a.createElementVNode("div",J3,[a.createElementVNode("div",X3,a.toDisplayString(ie==null?void 0:ie.label),1),a.createElementVNode("div",Z3,[a.createVNode(Y,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ra=>se(ie)},null,8,["onClick"]),a.createVNode(Y,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ra=>Ne(ie)},null,8,["onClick"])])])]))),128))]),a.createElementVNode("div",Q3,[P[6]||(P[6]=a.createElementVNode("div",null,a.toDisplayString("表外按钮"),-1)),a.createVNode(oe,{class:"icon-content",id:"themeButton",onClick:q},{icon:a.withCtx(()=>[a.createVNode(Y,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[P[5]||(P[5]=a.createTextVNode(" 新增 "))]),_:1,__:[5]})]),a.createElementVNode("div",e1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(H.value,(ie,fa)=>(a.openBlock(),a.createElementBlock("div",{key:fa},[a.createElementVNode("div",a1,[a.createElementVNode("div",l1,a.toDisplayString(ie==null?void 0:ie.label),1),a.createElementVNode("div",r1,[a.createVNode(Y,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ra=>Sa(ie)},null,8,["onClick"]),a.createVNode(Y,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ra=>te(ie)},null,8,["onClick"])])])]))),128))]),a.createElementVNode("div",n1,[P[8]||(P[8]=a.createElementVNode("div",null,a.toDisplayString("表格弹框字段设置"),-1)),a.createVNode(oe,{class:"icon-content",id:"themeButton",onClick:G},{icon:a.withCtx(()=>[a.createVNode(Y,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[P[7]||(P[7]=a.createTextVNode(" 新增 "))]),_:1,__:[7]})]),a.createElementVNode("div",o1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(F.value,(ie,fa)=>(a.openBlock(),a.createElementBlock("div",{key:fa},[a.createElementVNode("div",i1,[a.createElementVNode("div",s1,a.toDisplayString(ie==null?void 0:ie.label),1),a.createElementVNode("div",c1,[a.createVNode(Y,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ra=>ke(ie)},null,8,["onClick"]),a.createVNode(Y,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ra=>X(ie)},null,8,["onClick"])])])]))),128))]),P[10]||(P[10]=a.createElementVNode("div",{class:"operate-title"},[a.createElementVNode("div",null,a.toDisplayString("分页"))],-1)),a.createElementVNode("div",u1,[a.createElementVNode("div",d1,[P[9]||(P[9]=a.createElementVNode("div",{class:"operate-center-content"},a.toDisplayString("是否分页"),-1)),a.createVNode(pl._sfc_main$1,{modelValue:c.value,"onUpdate:modelValue":P[0]||(P[0]=ie=>c.value=ie)},null,8,["modelValue"])])])]),a.createVNode(vr.ssDialog,{visible:u.value,onBeforeDestroy:Ge,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",p1,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:Re},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",f1,[a.createVNode(oe,{onClick:Ge,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>P[11]||(P[11]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[11]}),a.createVNode(oe,{class:"ok-button button",onClick:Ka,id:"themeButton"},{default:a.withCtx(()=>P[12]||(P[12]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible"]),a.createVNode(vr.ssDialog,{visible:v.value,onBeforeDestroy:ea,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",h1,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:k.value,key:k.value,isEnableWrap:!0,onChange:Ha},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",v1,[a.createVNode(oe,{onClick:ea,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>P[13]||(P[13]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[13]}),a.createVNode(oe,{class:"ok-button button",onClick:ee,id:"themeButton"},{default:a.withCtx(()=>P[14]||(P[14]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible"]),a.createVNode(vr.ssDialog,{visible:J.value,onBeforeDestroy:ye,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",m1,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:S.value,key:S.value,isEnableWrap:!0,onChange:le},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",y1,[a.createVNode(oe,{onClick:ye,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>P[15]||(P[15]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[15]}),a.createVNode(oe,{class:"ok-button button",onClick:B,id:"themeButton"},{default:a.withCtx(()=>P[16]||(P[16]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[16]})])]),_:1},8,["visible"]),a.createVNode(vr.ssDialog,{visible:b.value,onBeforeDestroy:pe,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",g1,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:x.value,key:x.value,isEnableWrap:!0,onChange:ze,onChangeVisible:be,onBlurChange:De},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",b1,[a.createVNode(oe,{onClick:pe,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>P[17]||(P[17]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[17]}),a.createVNode(oe,{class:"ok-button button",onClick:Ke,id:"themeButton"},{default:a.withCtx(()=>P[18]||(P[18]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[18]})])]),_:1},8,["visible"])])}}},x1=ql._export_sfc(k1,[["__scopeId","data-v-7a6b87b5"]]),_1=I.useModelComp(I.pinia),{pageMapState:w1}=I.storeToRefs(_1),C1=I.useMenuState(I.pinia),{activeMenuPath:E1}=I.storeToRefs(C1),S1=a.ref(24),D1=a.ref(6),B1=a.ref(70),N1=a.ref(.18),T1=a.ref(45),A1=(l,r,n,t)=>{var s,u,b,h,v,y,c,w,D,A,_,H,k,T,J,S;return{x:((u=(s=l==null?void 0:l.value)==null?void 0:s.tableData)==null?void 0:u.x)||r%2*12,y:((h=(b=l==null?void 0:l.value)==null?void 0:b.tableData)==null?void 0:h.y)||r,w:((y=(v=l==null?void 0:l.value)==null?void 0:v.tableData)==null?void 0:y.w)||S1.value,h:((w=(c=l==null?void 0:l.value)==null?void 0:c.tableData)==null?void 0:w.h)||n,minW:((A=(D=l==null?void 0:l.value)==null?void 0:D.tableData)==null?void 0:A.minW)||D1.value,minH:((H=(_=l==null?void 0:l.value)==null?void 0:_.tableData)==null?void 0:H.minH)||N1.value,maxH:((T=(k=l==null?void 0:l.value)==null?void 0:k.tableData)==null?void 0:T.maxH)||T1.value,i:((S=(J=l==null?void 0:l.value)==null?void 0:J.tableData)==null?void 0:S.i)||r,id:(l==null?void 0:l.id)||r+"",component:t}},z1=(l,r)=>{var t,s,u,b,h,v,y,c;let n=1;if(l!=null&&l.compData&&Array.isArray(l==null?void 0:l.compData))if(((t=l==null?void 0:l.comp)==null?void 0:t.toUpperCase())==="TABLE"){if(((b=(u=(s=l==null?void 0:l.compData)==null?void 0:s.find(D=>(D==null?void 0:D.key)==="tableContents"))==null?void 0:u.contents)==null?void 0:b.length)===0)return 2}else((h=l==null?void 0:l.comp)==null?void 0:h.toUpperCase())==="FORM"&&(n=((c=(y=(v=l==null?void 0:l.compData)==null?void 0:v.find(D=>(D==null?void 0:D.key)==="formContent"))==null?void 0:y.contents)==null?void 0:c.length)/5);return n*2},Cc=(l,r,n)=>{var b,h;const t=(h=(b=w1.value)==null?void 0:b[E1.value])==null?void 0:h.filter(v=>{var y;return((y=v==null?void 0:v.key)==null?void 0:y.type)==="gridLayout"}),s=t==null?void 0:t.find(v=>{var y,c,w;return((w=(c=(y=v==null?void 0:v.value)==null?void 0:y.tableData)==null?void 0:c.component)==null?void 0:w.id)===l.id}),u=z1(l);return l!=null&&l.children&&(l==null?void 0:l.children.length)>0&&(l.children=l.children.map((v,y)=>Cc(v,y))),{...A1(s,r,u,l)}},M1=(l,r)=>{if((l==null?void 0:l.length)===0)return[];const n=I.cloneDeep(l);return Array.isArray(l)?n==null?void 0:n.map((t,s)=>Cc(t,s)):[]},O1=l=>({TABLE:{overall:[{label:"栅格布局",prop:"isGridLayout",type:"switch",value:!1,disabled:!1,activeText:"启用",inactiveText:"默认"},{label:"界面布局",prop:"layout",type:"radio",value:"vertical",options:[{label:"垂直",value:"vertical"},{label:"水平",value:"horizontal"}]},{label:"流程式布局",prop:"isStepLayout",type:"radio",value:!1,options:[{label:"启用",value:!0,disabled:!1},{label:"禁用",value:!1,disabled:!1}]}],alone:[{label:"默认显示序号",prop:"showIndex",type:"radio",value:!1,options:[{label:"是",value:!0},{label:"否",value:!1}]},{label:"浏览视图配置",prop:"viewport",type:"checkbox",value:["read"],options:[{label:"只读视图",value:"read"},{label:"编辑视图",value:"edit"}]},{label:"是否选择迁移",prop:"allowMove",type:"radio",value:!1,options:[{label:"是",value:!0},{label:"否",value:!1}]}]}}),I1=(l,r)=>l==null?void 0:l.map(n=>{for(const t in r)if(t===(n==null?void 0:n.prop))return{...n,value:r[t]};return n}),L1=a.defineComponent({__name:"index",props:{compType:String,comp:Object,target:{type:String,default:"alone"},optionItems:Array},emits:["change"],setup(l,{emit:r}){const n=l,t=r,s=a.ref([]);a.watch(()=>n.compType,h=>{var c;const v=O1(n==null?void 0:n.optionItems),y=h?(c=v[h==null?void 0:h.toUpperCase()])==null?void 0:c[n==null?void 0:n.target]:[];s.value=y==null?void 0:y.map(w=>{for(const[D,A]of Object.entries((n==null?void 0:n.comp)||{}))if((w==null?void 0:w.prop)===D)return{...w,value:A};return w})},{immediate:!0});const u=h=>pl.getComponent(h),b=h=>{var v,y;(h==null?void 0:h.prop)==="layout"&&(h==null?void 0:h.value)==="horizontal"?s.value=(v=s.value)==null?void 0:v.map(c=>{var w;return(c==null?void 0:c.prop)==="isStepLayout"?{...c,options:(w=c==null?void 0:c.options)==null?void 0:w.map(D=>({...D,disabled:!0}))}:(c==null?void 0:c.prop)==="isGridLayout"?{...c,disabled:!0}:c}):s.value=(y=s.value)==null?void 0:y.map(c=>{var w;return(c==null?void 0:c.prop)==="isStepLayout"?{...c,options:(w=c==null?void 0:c.options)==null?void 0:w.map(D=>({...D,disabled:!1}))}:(c==null?void 0:c.prop)==="isGridLayout"?{...c,disabled:!1}:c}),t("change",{target:n==null?void 0:n.target,styleConfigs:s.value,prop:h==null?void 0:h.prop})};return(h,v)=>{const y=a.resolveComponent("el-col"),c=a.resolveComponent("el-row");return a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,w=>(a.openBlock(),a.createBlock(c,{class:"style-row",key:w==null?void 0:w.prop},{default:a.withCtx(()=>[a.createVNode(y,{span:6,class:"style-row-title"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(w==null?void 0:w.label)+":",1)]),_:2},1024),a.createVNode(y,{span:18,style:{display:"flex"}},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u(w.type)),{modelValue:w.value,"onUpdate:modelValue":D=>w.value=D,content:w==null?void 0:w.options,optionUrl:w==null?void 0:w.optionUrl,disabled:w==null?void 0:w.disabled,activeText:w==null?void 0:w.activeText,inactiveText:w==null?void 0:w.inactiveText,onChange:D=>b(w)},null,40,["modelValue","onUpdate:modelValue","content","optionUrl","disabled","activeText","inactiveText","onChange"]))]),_:2},1024)]),_:2},1024))),128)}}}),V1=ql._export_sfc(L1,[["__scopeId","data-v-6c233914"]]),$1=a.defineComponent({__name:"index",props:{compType:String,activeTabName:String,comp:Object,extendItem:{type:Object,default:{}},target:{type:String,default:"alone"},relatedData:Array},emits:["change","onButtonClick"],setup(l,{emit:r}){const n=l,t=r,s=[{required:!0,message:"输入不能为空",trigger:"blur"}],u=a.ref([]),b=T=>T==null?void 0:T.reduce((J,S)=>(J[S==null?void 0:S.prop]=S==null?void 0:S.rule,J),{}),h=a.computed(()=>({formRules:b(u.value),buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"保存",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]})),v=a.ref([]),y=a.ref(""),c=(T,J,S)=>{var x;let V=[];(n==null?void 0:n.activeTabName)==="任务配置"?(V=[{label:"任务名称",prop:"任务名称",key:"任务名称",value:"",width:1,isFormColHidden:!1},{label:"任务关键词",prop:"任务关键词",key:"任务关键词",type:"cascader",value:[],width:1,isFormColHidden:!1,config:{checkOnClickNode:!0,showPrefix:!1},contents:[{label:"列名称",value:"列名称",children:T},{label:"按钮名称",value:"按钮名称",children:J}]},{label:"执行任务",prop:"执行任务",key:"执行任务",type:"cascader",value:[],width:1,isFormColHidden:!1,config:{checkOnClickNode:!0,showPrefix:!1},contents:[{label:"进度设置",value:"进度设置",children:[{label:"计时",value:"计时",children:[{label:"倒计时",value:"倒计时"},{label:"进行时",value:"进行时"}]},{label:"进度条",value:"进度条"}]},{label:"统计",value:"统计",children:[{label:"统计规则",value:"统计规则",children:[{label:"求和",value:"求和"},{label:"自定义",value:"自定义"}]}]}]},{label:"执行动作",prop:"执行动作",key:"执行动作",type:"select",value:[],width:1,isFormColHidden:!1,contents:[{label:"点击时",value:"点击时"},{label:"页面加载时",value:"页面加载时"}]},{label:"执行交互",prop:"执行交互",key:"执行交互",type:"cascader",value:[],width:1,isFormColHidden:!1,config:{checkOnClickNode:!0,showPrefix:!1},contents:[{label:"界面显示",value:"界面显示",children:[{label:"主页",value:"主页"},{label:"详情页",value:"详情页"}]},{label:"弹窗提示",value:"弹窗提示"},{label:"后台提交",value:"后台提交"}]},{label:"任务状态",prop:"任务状态",key:"任务状态",type:"radio",value:"启动",width:1,isFormColHidden:!1,contents:[{label:"启动",value:"启动"},{label:"暂停",value:"暂停"}]}],u.value=[{prop:"任务名称",rule:s},{prop:"任务关键词",rule:s},{prop:"执行任务",rule:s},{prop:"执行动作",rule:s},{prop:"执行交互",rule:s}]):(n==null?void 0:n.activeTabName)==="任务关联"&&(V=[{prop:"关联名称",label:"关联名称",key:"关联名称",type:"input",value:"",isTableColHidden:!1,isFormColHidden:!1},{label:"关联形式",prop:"关联形式",key:"关联形式",type:"select",value:"流程式",width:1,isFormColHidden:!1,contents:[{label:"流程式",value:"流程式"}]},{label:"关联任务集合",prop:"关联任务集合",key:"关联任务集合",type:"tag",value:[],width:1,isFormColHidden:!1,contents:(x=n==null?void 0:n.relatedData)==null?void 0:x.map(g=>({label:g==null?void 0:g.任务名称,value:g==null?void 0:g.任务名称}))},{prop:"关联状态",label:"关联状态",key:"关联状态",type:"radio",value:"启动",isTableColHidden:!1,isFormColHidden:!1,contents:[{label:"启动",value:"启动"},{label:"暂停",value:"暂停"}]}],u.value=[{prop:"关联名称",rule:s},{prop:"关联状态",rule:s},{prop:"关联形式",rule:s},{prop:"关联任务集合",rule:s}]);let z;return S&&(S==null?void 0:S.length)>0?z=[...V,...w(T,J,S)]:z=V,z},w=(T,J,S)=>{const V=[{label:"进度关键词",prop:"进度关键词",key:"进度关键词",type:"input",value:"",width:2,isFormColHidden:!1,contents:[]},{label:"统计算法源",prop:"统计算法源",key:"统计算法源",type:"input",value:"",width:2,isFormColHidden:!1,contents:[]},{label:"统计是否获取错误集",prop:"统计是否获取错误集",key:"统计是否获取错误集",type:"radio",value:!1,width:2,isFormColHidden:!1,contents:[{label:"是",value:!0},{label:"否",value:!1}]}];return S?V==null?void 0:V.filter(z=>S==null?void 0:S.includes(z==null?void 0:z.prop)):V},D=(T,J)=>{var g,F,q,G,be,ze,De,ne,ke;const S=((be=(G=(q=(F=(g=n==null?void 0:n.comp)==null?void 0:g.compData)==null?void 0:F.find(X=>(X==null?void 0:X.key)==="header"))==null?void 0:q.contents)==null?void 0:G.filter(X=>(X==null?void 0:X.label)!=="操作"))==null?void 0:be.map(X=>({value:X==null?void 0:X.prop,label:X.label})))||[],V=/button/i,z=((ke=(ne=(De=(ze=n==null?void 0:n.comp)==null?void 0:ze.compData)==null?void 0:De.filter(X=>V.test(X==null?void 0:X.key)))==null?void 0:ne.flatMap(X=>X==null?void 0:X.contents))==null?void 0:ke.map(X=>({value:X==null?void 0:X.label,label:X.label})))||[],x=c(S,z,T);v.value=J?I1(x,J):x,T&&(T==null?void 0:T.length)>0&&u.value.push(...T==null?void 0:T.map(X=>({prop:X,rule:s})))};a.onMounted(()=>{D(null,n==null?void 0:n.extendItem)});const A=T=>{const J=T==null?void 0:T[y.value];if(y.value==="执行任务"){if(!(J!=null&&J.join("/")))return;const S=J==null?void 0:J.join("/");D(S==="统计/统计规则/自定义"?["统计算法源","统计是否获取错误集"]:S==="进度设置/进度条"?["进度关键词"]:null,T)}},_=T=>{t("change",{target:n==null?void 0:n.target,extendConfigs:T})},H=(T,J)=>{y.value=J==null?void 0:J.changeProp,A(T)},k=T=>{t("onButtonClick",T)};return(T,J)=>(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:v.value,key:v.value,isStartJustify:!1,isEnableWrap:!1,formRules:h.value.formRules,buttonValue:h.value.buttonValue,onChange:_,onBlurChange:H,onOnButtonClick:k},null,8,["rowContents","formRules","buttonValue"]))}}),R1=ql._export_sfc($1,[["__scopeId","data-v-7c660c1f"]]),P1={};function F1(l,r){return null}const j1=ql._export_sfc(P1,[["render",F1]]),H1={class:"form-operate-content"},U1={class:"form-operate-item"},q1={class:"operate-title"},K1={class:"operate-content"},W1={class:"fix-content"},Y1={class:"fix-button"},G1={class:"operate-title"},J1={class:"operate-content"},X1={class:"fix-content"},Z1={class:"fix-button"},Q1={style:{display:"flex","justify-content":"space-between"}},e2={class:"form-content"},a2={class:"dialog-footer"},l2={class:"form-content"},r2={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:r}){const n=l,t=r,s=a.ref(!1),u=a.ref([]),b=a.ref([]),h=a.ref(!1),v=a.ref([]),y=a.ref([]),c=a.ref(""),w=a.ref(!1),D=a.ref(0),A=a.ref([]),_=a.ref([]),H=(ne,ke)=>{if((ke==null?void 0:ke.type)=="Select"&&(ne==null?void 0:ne.key)==="selectRelateType"){const X=ke==null?void 0:ke.optionUrl;return(X==null?void 0:X.selectRelateType)||ke[ne.key]}if((ke==null?void 0:ke.type)=="Select"&&(ne==null?void 0:ne.key)==="menuSelect"){const X=ke==null?void 0:ke.optionUrl;return(X==null?void 0:X.menuSelect)||ke[ne.key]}if((ke==null?void 0:ke.type)=="Select"&&(ne==null?void 0:ne.key)==="groupSelect"){const X=ke==null?void 0:ke.optionUrl;return(X==null?void 0:X.groupSelect)||ke[ne.key]}if((ke==null?void 0:ke.type)=="Select"&&(ne==null?void 0:ne.key)==="originalContent")return(ke==null?void 0:ke.value)||ke[ne.key];if((ke==null?void 0:ke.type)=="Select"&&(ne==null?void 0:ne.key)==="multiple"){const X=ke[ne.key];return qs(X)?X:ne.default}return(ne==null?void 0:ne.label)==="类型"&&ke[ne.key]===""?"Input":(ne==null?void 0:ne.key)==="isFormColHidden"&&!ke[ne.key]?!1:ke[ne.key]},k=async ne=>{var pe,Ke,Sa,te,B,le;s.value=!0;let ke=[];const X=await((Sa=(Ke=(pe=na.FormContent)==null?void 0:pe.find(ye=>(ye==null?void 0:ye.key)===((ne==null?void 0:ne.type)===""?"Input":ne==null?void 0:ne.type)))==null?void 0:Ke.value)==null?void 0:Sa.value)??((B=(te=na.FormContent)==null?void 0:te.find(ye=>(ye==null?void 0:ye.key)===((ne==null?void 0:ne.type)===""?"Input":ne==null?void 0:ne.type)))==null?void 0:B.value);if(X==null||X.forEach(ye=>{D.value++,ke.push({label:ye==null?void 0:ye.label,name:ye==null?void 0:ye.label,type:ye.type,prop:ye==null?void 0:ye.prop,value:H(ye,ne),id:D.value,contents:ye==null?void 0:ye.options,width:(ne==null?void 0:ne.width)??1})}),ne!=null&&ne.menuSelect&&((le=ne==null?void 0:ne.menuSelect)==null?void 0:le.length)>0){const ye=await na.menuToContentType(ne==null?void 0:ne.menuSelect);ke=ke==null?void 0:ke.map(se=>((se==null?void 0:se.name)==="组信息选项"&&(se.contents=ye),se))}c.value=ne==null?void 0:ne.id,u.value=await na.selectToBase(na.formToOptionsContents(ke)),b.value=await na.selectToBase(na.formToOptionsContents(ke))},T=ne=>{var X;h.value=!0;let ke=[];(X=na.FormButton)==null||X.forEach(pe=>{D.value++,ke.push({label:pe==null?void 0:pe.label,name:pe==null?void 0:pe.label,type:pe.type,value:(pe==null?void 0:pe.label)==="类型"&&ne[pe.key]===""?"normal":ne[pe.key],id:D.value,contents:pe==null?void 0:pe.options})}),A.value=ke,_.value=ke,c.value=ne==null?void 0:ne.id};a.watch(()=>w.value,()=>{var ke,X;let ne=I.cloneDeep(n.originalItemContents);(ke=I.cloneDeep(n.originalItemContents))!=null&&ke.find(pe=>(pe==null?void 0:pe.key)==="enableWrap")?ne=(X=I.cloneDeep(n.originalItemContents))==null?void 0:X.map(pe=>((pe==null?void 0:pe.key)==="enableWrap"&&(pe.contents=!w.value),pe)):ne.push({key:"enableWrap",contents:!w.value}),t("change",ne)},{deep:!0});const J=()=>{var X,pe,Ke,Sa,te;A.value=_.value;let ne={};if(c.value!==""?ne.id=c.value:(D.value++,ne.id="id"+D.value),(X=A.value)==null||X.forEach(B=>{var ye;const le=(ye=na.FormButton)==null?void 0:ye.find(se=>(se==null?void 0:se.label)===(B==null?void 0:B.label));le&&(ne[le.key]=B.value)}),(pe=v.value)!=null&&pe.find(B=>B.id===ne.id))v.value=(Ke=v.value)==null?void 0:Ke.map(B=>(B.id===ne.id&&(B=ne),B));else{let B=I.cloneDeep(v.value);v.value||(v.value=[]),B.push(ne),v.value=B}h.value=!1,c.value="";let ke=I.cloneDeep(n.originalItemContents);(Sa=I.cloneDeep(n.originalItemContents))!=null&&Sa.find(B=>(B==null?void 0:B.key)==="formButton")?ke=(te=I.cloneDeep(n.originalItemContents))==null?void 0:te.map(B=>((B==null?void 0:B.key)==="formButton"&&(B.contents=v.value),B)):ke.push({key:"formButton",contents:v.value}),t("change",ke)},S=ne=>{I.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var ke,X;y.value=(ke=I.cloneDeep(y.value))==null?void 0:ke.filter(pe=>(pe==null?void 0:pe.id)!==(ne==null?void 0:ne.id)),t("change",(X=I.cloneDeep(n.originalItemContents))==null?void 0:X.map(pe=>((pe==null?void 0:pe.key)==="formContent"&&(pe.contents=y.value),pe))),ll.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},V=ne=>{I.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var ke,X;v.value=(ke=I.cloneDeep(v.value))==null?void 0:ke.filter(pe=>(pe==null?void 0:pe.id)!==(ne==null?void 0:ne.id)),t("change",(X=I.cloneDeep(n.originalItemContents))==null?void 0:X.map(pe=>((pe==null?void 0:pe.key)==="formButton"&&(pe.contents=v.value),pe))),ll.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},z=()=>{var ke;h.value=!0;let ne=[];(ke=na.FormButton)==null||ke.forEach(X=>{D.value++,ne.push({label:X==null?void 0:X.label,name:X==null?void 0:X.label,type:X.type,value:(X==null?void 0:X.label)==="类型"?"normal":"",id:D.value,contents:X==null?void 0:X.options})}),A.value=ne,_.value=ne},x=()=>{var ke,X,pe;s.value=!0;let ne=[];(pe=(X=(ke=na.FormContent)==null?void 0:ke.find(Ke=>(Ke==null?void 0:Ke.key)==="Input"))==null?void 0:X.value)==null||pe.forEach(Ke=>{D.value++,ne.push({label:Ke==null?void 0:Ke.label,name:Ke==null?void 0:Ke.label,type:Ke.type,value:(Ke==null?void 0:Ke.label)==="类型"?"Input":"",id:D.value,contents:Ke==null?void 0:Ke.options})}),u.value=ne,b.value=ne},g=ne=>{let ke=I.cloneDeep(_.value);ke=ke==null?void 0:ke.map(X=>(X.value=ne==null?void 0:ne[X.name],X)),_.value=ke},F=ne=>{const ke=ne.find(Ke=>(Ke==null?void 0:Ke.name)==="类型");if((ke==null?void 0:ke.value)!="Select")return;const X=ne.find(Ke=>(Ke==null?void 0:Ke.name)==="多选"),pe=ne.find(Ke=>(Ke==null?void 0:Ke.name)==="初始值");X!=null&&X.value&&ko.isString(pe.value)&&(pe.value=[pe.value]),!(X!=null&&X.value)&&!ko.isString(pe.value)&&(pe.value="")},q=async ne=>{var ke,X,pe,Ke,Sa,te,B,le,ye,se,Ne,ia;if((ne==null?void 0:ne.类型)!==((X=(ke=b.value)==null?void 0:ke.find(xa=>(xa==null?void 0:xa.label)==="类型"))==null?void 0:X.value)){let xa=[];const Ha=await((Sa=(Ke=(pe=na.FormContent)==null?void 0:pe.find(ee=>(ee==null?void 0:ee.key)===((ne==null?void 0:ne.类型)===""?"Input":ne==null?void 0:ne.类型)))==null?void 0:Ke.value)==null?void 0:Sa.value)?await((se=(ye=(le=na.FormContent)==null?void 0:le.find(ee=>(ee==null?void 0:ee.key)===((ne==null?void 0:ne.类型)===""?"Input":ne==null?void 0:ne.类型)))==null?void 0:ye.value)==null?void 0:se.value):(B=(te=na.FormContent)==null?void 0:te.find(ee=>(ee==null?void 0:ee.key)===((ne==null?void 0:ne.类型)===""?"Input":ne==null?void 0:ne.类型)))==null?void 0:B.value;if(Ha==null||Ha.forEach(ee=>{var Pe,ga;D.value++;const ea=_u(ee==null?void 0:ee.default)?(ne==null?void 0:ne[ee.label])??ee.value??"":ee==null?void 0:ee.default;xa.push({label:ee==null?void 0:ee.label,name:ee==null?void 0:ee.label,type:ee.type,value:ea,prop:ee==null?void 0:ee.prop,id:D.value,contents:ee==null?void 0:ee.options,width:((ga=(Pe=b.value)==null?void 0:Pe[0])==null?void 0:ga.width)??1})}),ne!=null&&ne.菜单选项&&((Ne=ne==null?void 0:ne.菜单选项)==null?void 0:Ne.length)>0){const ee=await na.menuToContentType(ne==null?void 0:ne.菜单选项);xa=xa==null?void 0:xa.map(ea=>((ea==null?void 0:ea.name)==="组信息选项"&&(ea.contents=ee),ea))}F(xa),b.value=await na.selectToBase(I.cloneDeep(xa)),u.value=await na.selectToBase(I.cloneDeep(xa))}else{let xa=I.cloneDeep(b.value);if(xa=xa==null?void 0:xa.map(Ha=>(Ha.value=ne==null?void 0:ne[Ha.name],Ha)),ne!=null&&ne.菜单选项&&((ia=ne==null?void 0:ne.菜单选项)==null?void 0:ia.length)>0){const Ha=await na.menuToContentType(ne==null?void 0:ne.菜单选项);xa=xa==null?void 0:xa.map(ee=>((ee==null?void 0:ee.name)==="组信息选项"&&(ee.contents=Ha),ee))}xa=na.formToOptionsContents(xa),F(xa),b.value=await na.selectToBase(I.cloneDeep(xa))}},G=ne=>{ne||(u.value=b.value)},be=async ne=>{await q(ne),u.value=b.value},ze=$a.debounce(async()=>{var pe,Ke,Sa,te,B,le,ye,se,Ne,ia,xa,Ha;u.value=b.value;let ne={};ne.width=((Ke=(pe=u.value)==null?void 0:pe[0])==null?void 0:Ke.width)??1,c.value!==""?ne.id=c.value:(D.value++,ne.id="id"+D.value);let ke=await((B=(te=(Sa=na.FormContent)==null?void 0:Sa.find(ee=>{var ea,Pe;return(ee==null?void 0:ee.key)===(((Pe=(ea=u.value)==null?void 0:ea.find(ga=>(ga==null?void 0:ga.label)==="类型"))==null?void 0:Pe.value)??"label")}))==null?void 0:te.value)==null?void 0:B.value)??((ye=(le=na.FormContent)==null?void 0:le.find(ee=>{var ea,Pe;return(ee==null?void 0:ee.key)===(((Pe=(ea=u.value)==null?void 0:ea.find(ga=>(ga==null?void 0:ga.label)==="类型"))==null?void 0:Pe.value)??"label")}))==null?void 0:ye.value);if((se=u.value)==null||se.forEach(ee=>{const ea=ke==null?void 0:ke.find(Pe=>(Pe==null?void 0:Pe.label)===(ee==null?void 0:ee.label));ea&&(ne[ea.key]=ee.value)}),ne.width=ne.width?ne.width:1,ne.key=ne==null?void 0:ne.label,ne.isFormColHidden=ne==null?void 0:ne.isFormColHidden,(Ne=y.value)!=null&&Ne.find(ee=>ee.id===ne.id))y.value=(ia=y.value)==null?void 0:ia.map(ee=>(ee.id===ne.id&&(ee=ne),ee));else{let ee=I.cloneDeep(y.value);ee.push(ne),y.value=ee}y.value=y.value.map(({id:ee,...ea})=>ea),s.value=!1,c.value="";let X=I.cloneDeep(n.originalItemContents);(xa=I.cloneDeep(n.originalItemContents))!=null&&xa.find(ee=>(ee==null?void 0:ee.key)==="formContent")?X=(Ha=I.cloneDeep(n.originalItemContents))==null?void 0:Ha.map(ee=>((ee==null?void 0:ee.key)==="formContent"&&(ee.contents=y.value),ee)):X.push({key:"formContent",contents:y.value}),t("change",X)},300),De=()=>{s.value=!1,h.value=!1,c.value="",b.value=[],_.value=[]};return a.watch(()=>n.originalItemContents,()=>{var ke,X,pe,Ke,Sa,te;if(!n.originalItemContents||n.originalItemContents.length===0)return;const ne=I.cloneDeep(n.originalItemContents);y.value=((ke=ne==null?void 0:ne.find(B=>(B==null?void 0:B.key)==="formContent"))==null?void 0:ke.contents)??[],v.value=((X=ne==null?void 0:ne.find(B=>(B==null?void 0:B.key)==="formButton"))==null?void 0:X.contents)??[],w.value=(pe=ne==null?void 0:ne.find(B=>(B==null?void 0:B.key)==="enableWrap"))!=null&&pe.contents?!((Ke=ne==null?void 0:ne.find(B=>(B==null?void 0:B.key)==="enableWrap"))!=null&&Ke.contents):!0,y.value=(Sa=I.cloneDeep(y.value))==null?void 0:Sa.map((B,le)=>{var se;let ye=B;return ye.id=(B==null?void 0:B.id)??le,B!=null&&B.label||(B.label=(B==null?void 0:B.key)??(B==null?void 0:B.label)??""),B!=null&&B.type||(B.type=(B==null?void 0:B.type)??""),B.contents=((se=B==null?void 0:B.options)==null?void 0:se.length)===0?(B==null?void 0:B.contents)??"":B==null?void 0:B.options,ye}),y.value=na.formToOptionsContents(y.value),v.value=(te=v.value)==null?void 0:te.map((B,le)=>B={label:(B==null?void 0:B.label)??"",type:(B==null?void 0:B.type)??"",background:(B==null?void 0:B.background)??"var(--ssComponent-primary-color)",id:le})},{deep:!0,immediate:!0}),(ne,ke)=>{const X=a.resolveComponent("svg-icon"),pe=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",H1,[a.createElementVNode("div",U1,[a.createElementVNode("div",q1,[ke[2]||(ke[2]=a.createElementVNode("div",null,a.toDisplayString("表单内容"),-1)),a.createVNode(pe,{class:"icon-content",id:"themeButton",onClick:x},{icon:a.withCtx(()=>[a.createVNode(X,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[ke[1]||(ke[1]=a.createElementVNode("div",null,a.toDisplayString("新增"),-1))]),_:1,__:[1]})]),a.createElementVNode("div",K1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(y.value,(Ke,Sa)=>(a.openBlock(),a.createElementBlock("div",{key:Sa},[a.createElementVNode("div",W1,[a.createElementVNode("div",null,a.toDisplayString(Ke.label),1),a.createElementVNode("div",Y1,[a.createVNode(X,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:te=>k(Ke)},null,8,["onClick"]),a.createVNode(X,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:te=>S(Ke)},null,8,["onClick"])])])]))),128))]),a.createElementVNode("div",G1,[ke[4]||(ke[4]=a.createElementVNode("div",null,a.toDisplayString("表单按钮"),-1)),a.createVNode(pe,{class:"icon-content",id:"themeButton",onClick:z},{icon:a.withCtx(()=>[a.createVNode(X,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[ke[3]||(ke[3]=a.createTextVNode(" 新增 "))]),_:1,__:[3]})]),a.createElementVNode("div",J1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(v.value,(Ke,Sa)=>(a.openBlock(),a.createElementBlock("div",{key:Sa},[a.createElementVNode("div",X1,[a.createElementVNode("div",null,a.toDisplayString(Ke.label),1),a.createElementVNode("div",Z1,[a.createVNode(X,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:te=>T(Ke)},null,8,["onClick"]),a.createVNode(X,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:te=>V(Ke)},null,8,["onClick"])])])]))),128))]),ke[6]||(ke[6]=a.createElementVNode("div",{class:"operate-title"},[a.createElementVNode("div",null,a.toDisplayString("表单布局"))],-1)),a.createElementVNode("div",Q1,[ke[5]||(ke[5]=a.createElementVNode("div",{class:"operate-center-content"},a.toDisplayString("是否自动撑宽"),-1)),a.createVNode(pl._sfc_main$1,{modelValue:w.value,"onUpdate:modelValue":ke[0]||(ke[0]=Ke=>w.value=Ke)},null,8,["modelValue"])])]),a.createVNode(vr.ssDialog,{visible:s.value,onBeforeDestroy:De,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",e2,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:u.value,key:u.value,isEnableWrap:!0,onChange:q,onChangeVisible:G,onBlurChange:be},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",a2,[a.createVNode(pe,{onClick:De,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>ke[7]||(ke[7]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[7]}),a.createVNode(pe,{class:"ok-button button",onClick:a.unref(ze),id:"themeButton"},{default:a.withCtx(()=>ke[8]||(ke[8]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[8]},8,["onClick"])])]),_:1},8,["visible"]),a.createVNode(vr.ssDialog,{visible:h.value,onBeforeDestroy:De,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",l2,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:A.value,key:A.value,isEnableWrap:!0,onChange:g},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",{class:"dialog-footer"},[a.createElementVNode("div",{onClick:De,class:"cancel-button button"},a.toDisplayString("取消")),a.createElementVNode("div",{class:"ok-button button",onClick:J},a.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},vs=ql._export_sfc(r2,[["__scopeId","data-v-20850524"]]),n2={class:"step-module content"},t2={class:"module-data"},o2={class:"step-module layout"},i2={class:"form-content"},s2=a.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:r}){const n=l,t=r,s=a.ref([{label:"方向:",prop:"direction",type:"RADIO",contents:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}],value:"horizontal"},{label:"是否居中:",prop:"alignCenter",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0},{label:"应用简洁风格",prop:"simple",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1}]),u=a.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"标题",prop:"title",type:"input",value:""},{label:"描述",prop:"description",type:"input",value:""}]),b=a.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),h=a.reactive({visible:!1,width:"40%",title:"步骤条"}),v=a.ref("create"),y=a.ref({}),c=a.ref([]),w=k=>{var T;y.value=k,t("change",(T=_())==null?void 0:T.compData)},D=(k,T)=>{var J,S;switch(k){case"create":(J=u.value)==null||J.forEach(V=>{V.value=""}),v.value="create",h.visible=!0;break;case"update":(S=u.value)==null||S.forEach(V=>{V.value=T[V==null?void 0:V.prop]}),v.value="update",h.visible=!0;break;case"delete":c.value.splice(T,1),v.value="delete";break}},A=k=>{var T,J,S;if((k==null?void 0:k.buttonName)==="确认"){const V=I.cloneDeep(k==null?void 0:k.content);switch(Object.keys(V).forEach(z=>{V[z]===""&&delete V[z]}),v.value){case"create":c.value.push({...V,index:((T=c.value)==null?void 0:T.length)+1});break;case"update":c.value=(J=c.value)==null?void 0:J.map(z=>z.index===(V==null?void 0:V.index)?{...z,title:V==null?void 0:V.title,description:V==null?void 0:V.description}:z);break}t("change",(S=_())==null?void 0:S.compData),h.visible=!1}else h.visible=!1},_=()=>({comp:"Step",compData:[{key:"stepList",contents:c.value},{key:"stepConfig",contents:y.value}]}),H=()=>{h.visible=!1};return a.watch(()=>n==null?void 0:n.itemContents,k=>{var T,J;k&&(y.value=((T=k==null?void 0:k.find(S=>S.key==="stepConfig"))==null?void 0:T.contents)??{},c.value=((J=k==null?void 0:k.find(S=>S.key==="stepList"))==null?void 0:J.contents)??[])},{immediate:!0}),(k,T)=>{const J=a.resolveComponent("svg-icon"),S=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",n2,[T[2]||(T[2]=a.createElementVNode("h4",{class:"module-title"},"内容",-1)),a.createVNode(S,{class:"module-icon",id:"themeButton",onClick:T[0]||(T[0]=V=>D("create"))},{icon:a.withCtx(()=>[a.createVNode(J,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[T[1]||(T[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",t2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.value,(V,z)=>(a.openBlock(),a.createElementBlock("div",{class:"module-data-item",key:z},[a.createElementVNode("span",null,a.toDisplayString(V==null?void 0:V.title),1),a.createElementVNode("div",null,[a.createVNode(S,{type:"primary",size:"small",onClick:x=>D("update",{...V,index:z+1})},{default:a.withCtx(()=>T[3]||(T[3]=[a.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),a.createVNode(S,{type:"danger",size:"small",onClick:x=>D("delete",z)},{default:a.withCtx(()=>T[4]||(T[4]=[a.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),a.createElementVNode("div",o2,[T[5]||(T[5]=a.createElementVNode("div",{class:"module-title"},"布局",-1)),a.createVNode(pl.ssForm,{rowContents:s.value,onChange:w},null,8,["rowContents"])])]),a.createVNode(vr.ssDialog,{visible:h.visible,title:h.title,onBeforeDestroy:H,width:h.width},{default:a.withCtx(()=>[a.createElementVNode("div",i2,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:u.value,key:u.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:b.value,onOnButtonClick:A},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),c2=ql._export_sfc(s2,[["__scopeId","data-v-7dbd17f2"]]),u2={class:"step-module content"},d2={class:"module-data"},p2={class:"step-module layout"},f2={class:"form-content"},h2=a.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:r}){const n=l,t=r,s=a.ref("create"),u=a.ref({}),b=a.ref([]),h=a.ref([{label:"方向:",prop:"placement",type:"radio",contents:[{label:"底部",value:"bottom"},{label:"顶部",value:"top"}],value:"bottom"},{label:"节点类型:",prop:"type",type:"select",contents:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}],value:"primary"},{label:"颜色:",prop:"color",type:"color",value:""},{label:"尺寸:",prop:"size",type:"radio",contents:[{label:"normal",value:"normal"},{label:"large",value:"large"}],value:"normal"},{label:"是否空心",prop:"isHollow",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0},{label:"是否居中",prop:"isCenter",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0}]),v=a.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"内容",prop:"content",type:"input",value:""},{label:"时间戳",prop:"timestamp",type:"datetime",value:""}]),y=a.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),c=a.reactive({visible:!1,width:"40%",title:"时间线"}),w=k=>{var T;u.value=k,t("change",(T=_())==null?void 0:T.compData)},D=(k,T)=>{var J,S;switch(k){case"create":(J=v.value)==null||J.forEach(V=>{V.value=""}),s.value="create",c.visible=!0;break;case"update":(S=v.value)==null||S.forEach(V=>{V.value=T[V==null?void 0:V.prop]}),s.value="update",c.visible=!0;break;case"delete":b.value.splice(T,1),s.value="delete";break}},A=k=>{var T,J,S,V;if((k==null?void 0:k.buttonName)==="确认"){const z=I.cloneDeep(k==null?void 0:k.content);switch(Object.keys(z).forEach(x=>{z[x]===""&&delete z[x]}),s.value){case"create":(J=b.value)==null||J.push({...z,index:((T=b.value)==null?void 0:T.length)+1});break;case"update":b.value=(S=b.value)==null?void 0:S.map(x=>x.index===(z==null?void 0:z.index)?{...x,content:z==null?void 0:z.content,timestamp:z==null?void 0:z.timestamp}:x);break}t("change",(V=_())==null?void 0:V.compData),c.visible=!1}else c.visible=!1},_=()=>({comp:"TimeLine",compData:[{key:"timeLineList",contents:b.value},{key:"timeLineConfig",contents:u.value}]}),H=()=>{c.visible=!1};return a.watch(()=>n==null?void 0:n.itemContents,k=>{var T,J;k&&(u.value=((T=k==null?void 0:k.find(S=>S.key==="timeLineConfig"))==null?void 0:T.contents)??{},b.value=((J=k==null?void 0:k.find(S=>S.key==="timeLineList"))==null?void 0:J.contents)??[])},{immediate:!0}),(k,T)=>{const J=a.resolveComponent("svg-icon"),S=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",u2,[T[2]||(T[2]=a.createElementVNode("h4",{class:"module-title"},"内容",-1)),a.createVNode(S,{class:"module-icon",id:"themeButton",onClick:T[0]||(T[0]=V=>D("create"))},{icon:a.withCtx(()=>[a.createVNode(J,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[T[1]||(T[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",d2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(b.value,(V,z)=>(a.openBlock(),a.createElementBlock("div",{class:"module-data-item",key:z},[a.createElementVNode("span",null,a.toDisplayString(V==null?void 0:V.content),1),a.createElementVNode("div",null,[a.createVNode(S,{type:"primary",size:"small",onClick:x=>D("update",{...V,index:z+1})},{default:a.withCtx(()=>T[3]||(T[3]=[a.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),a.createVNode(S,{type:"danger",size:"small",onClick:x=>D("delete",z)},{default:a.withCtx(()=>T[4]||(T[4]=[a.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),a.createElementVNode("div",p2,[T[5]||(T[5]=a.createElementVNode("div",{class:"module-title"},"布局",-1)),a.createVNode(pl.ssForm,{rowContents:h.value,onChange:w},null,8,["rowContents"])])]),a.createVNode(vr.ssDialog,{visible:c.visible,title:c.title,onBeforeDestroy:H,width:c.width},{default:a.withCtx(()=>[a.createElementVNode("div",f2,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:v.value,key:v.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:y.value,onOnButtonClick:A},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),v2=ql._export_sfc(h2,[["__scopeId","data-v-39ffc861"]]),m2={};function y2(l,r){return a.openBlock(),a.createElementBlock("div")}const g2=ql._export_sfc(m2,[["render",y2]]),b2={class:"extra-content"},k2={key:0},x2={key:1},_2={class:"dialog-footer"},w2={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},emits:["change"],setup(l,{emit:r}){const n=l,t=a.ref(0),s=a.ref(),u=a.ref(),b=r,h=a.ref(!1),v=a.ref({}),y=a.ref({}),c=a.ref();a.watch(()=>[n.itemData],()=>{var V;const S=I.cloneDeep(n.itemData);s.value=(V=I.cloneDeep(S))==null?void 0:V.map(z=>{var x;if(z.key==="extra"){let g=[];(x=z.value)==null||x.forEach(F=>{var q;g.push((q=Object.values(F))==null?void 0:q[0])}),z.value=g}return z})},{deep:!0,immediate:!0});const w=(S,V,z,x)=>{var F;let g={};((F=S==null?void 0:S[0])==null?void 0:F.contents)==="详情"&&(h.value=!0,g[V]=S,u.value=S==null?void 0:S.filter(q=>(q==null?void 0:q.key)!=="tableContentName"),v.value=g,y.value=z,c.value=x.id)},D=S=>{var q,G,be,ze;const V=(G=(q=Object.values(I.cloneDeep(v.value)))==null?void 0:q[0])==null?void 0:G.filter(De=>(De==null?void 0:De.key)==="tableContentName"),z=(ze=(be=Object.values(I.cloneDeep(v.value)))==null?void 0:be[0])==null?void 0:ze.filter(De=>(De==null?void 0:De.key)!=="tableContentName"),x=z==null?void 0:z.map((De,ne)=>{var ke;return ne===S.index&&(De==null?void 0:De.comp)==="Table"&&(De.compData=(ke=De.compData)==null?void 0:ke.map(X=>{var pe,Ke;return(X==null?void 0:X.key)==="tableContents"&&(X.contents=(Ke=(pe=S.content)==null?void 0:pe.map(Sa=>{let te={};for(let B in Sa)B!=="id"&&(te[B]=Sa[B]);return te}))==null?void 0:Ke.map(Sa=>Object.values(Sa))),X})),De});x.unshift(V==null?void 0:V[0]);let g=I.cloneDeep(v.value),F={};for(let De in g)F[De]=x;v.value=F},A=()=>{h.value=!1,v.value={},y.value={},c.value=void 0,t.value++},_=S=>{var q,G,be,ze;const V=(G=(q=Object.values(I.cloneDeep(v.value)))==null?void 0:q[0])==null?void 0:G.filter(De=>(De==null?void 0:De.key)==="tableContentName"),z=(ze=(be=Object.values(I.cloneDeep(v.value)))==null?void 0:be[0])==null?void 0:ze.filter(De=>(De==null?void 0:De.key)!=="tableContentName"),x=z==null?void 0:z.map((De,ne)=>(ne===S.index&&(De.compData=S.contents),De));x.unshift(V==null?void 0:V[0]);let g=I.cloneDeep(v.value),F={};for(let De in g)F[De]=x;v.value=F},H=()=>{var V,z;let S={};for(let x in y.value)x===((V=Object.keys(v.value))==null?void 0:V[0])?S[x]=(z=Object.values(v.value))==null?void 0:z[0]:S[x]=y.value[x];b("change",{buttonName:"编辑",index:c.value,singleContent:S},"methodData"),h.value=!1,v.value={},y.value={},c.value=void 0},k=()=>{h.value=!1,v.value={},y.value={},c.value=void 0},T=S=>{b("change",S,"methodData")},J=S=>St(S);return(S,V)=>{const z=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",b2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,(x,g)=>(a.openBlock(),a.createElementBlock("div",{key:t.value},[(x==null?void 0:x.key)==="extra"?(a.openBlock(),a.createElementBlock("div",k2)):(a.openBlock(),a.createElementBlock("div",x2,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(J(x.comp)),{itemData:x==null?void 0:x.compData,childItemData:x==null?void 0:x.itemChildData,key:g,index:(x==null?void 0:x.id)??g,onContentClick:w,onChange:T},null,40,["itemData","childItemData","index"]))]))]))),128)),a.createVNode(vr.ssDialog,{visible:h.value,onBeforeDestroy:k},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(u.value,(x,g)=>(a.openBlock(),a.createElementBlock("div",{key:g,class:"extra-dialog"},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(J(x.comp)),{itemData:x==null?void 0:x.compData,onChange:D,childItemData:x==null?void 0:x.itemChildData,key:g,onContentChange:_,index:(x==null?void 0:x.id)??g,class:"extra-component"},null,40,["itemData","childItemData","index"]))]))),128))]),footer:a.withCtx(()=>[a.createElementVNode("div",_2,[a.createVNode(z,{class:"cancel-button footer-button",onClick:A,id:"themeBorderButton"},{default:a.withCtx(()=>V[0]||(V[0]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[0]}),a.createVNode(z,{class:"confirm-button footer-button",onClick:H,id:"themeButton"},{default:a.withCtx(()=>V[1]||(V[1]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},C2=ql._export_sfc(w2,[["__scopeId","data-v-2d9c5ab2"]]),E2={key:0,class:"method-content"},S2={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},setup(l){const r=a.ref([]),n=na.useOriginalState(I.pinia),{originalPath:t}=I.storeToRefs(n),s=l,u=a.ref(!1),b=a.ref(),h=na.useTableComp(I.pinia),{multipleTableConst:v}=I.storeToRefs(h),y=I.useModelComp(I.pinia),c=a.ref(!1),w=I.useMenuState(I.pinia),D=I.useLoginState(I.pinia),{itemData:A,isEdit:_,routeToChildPath:H,tableViewContents:k,lockingPage:T,payloadTypes:J}=I.storeToRefs(y),{activeMenuPath:S,platform:V,childMenu:z}=I.storeToRefs(w),{loginUserInfo:x}=I.storeToRefs(D),g=a.ref(!1),F=async()=>{var te,B;(te=r.value)!=null&&te.find(le=>(le==null?void 0:le.buttonName)==="保存")&&await X((B=r.value)==null?void 0:B.find(le=>(le==null?void 0:le.buttonName)==="保存")),await na.onSaveBack()};a.watch(()=>A.value,async()=>{_.value==="view"&&!g.value&&await Sa(I.cloneDeep(s.itemData)),g.value=!1},{deep:!0});const q=()=>{u.value=!1,b.value=void 0},G=te=>te.map(B=>{const le={};for(const ye in B){const se=B[ye];if(ye.includes(v.value)){const Ne=ye.split(v.value);let ia=le;Ne.forEach((xa,Ha)=>{Ha===Ne.length-1?ia[xa]=se:(ia[xa]||(ia[xa]={}),ia=ia[xa])})}else le[ye]=se}return le}),be=async(te,B,le=[])=>{var se,Ne,ia,xa,Ha,ee,ea,Pe,ga,He,Ae,Re,Ge,Ka,Ia;let ye=(se=I.cloneDeep(B))==null?void 0:se.filter(R=>(R==null?void 0:R.comp)!=="methodButton");if(te!=null&&te.includes("[")){let R=(ee=(Ha=(xa=(ia=(Ne=I.cloneDeep(te))==null?void 0:Ne.split("["))==null?void 0:ia[1])==null?void 0:xa.split("]"))==null?void 0:Ha[0])==null?void 0:ee.split(":"),P="";if(R!=null&&R[0]){let Y=(ea=ye==null?void 0:ye.find(oe=>(oe==null?void 0:oe.name)===(R==null?void 0:R[0])))==null?void 0:ea.compData;if(!Y){let oe=(Pe=te==null?void 0:te.split("["))==null?void 0:Pe[0],ie=await na.getItemData(oe,sessionStorage.getItem("systemKey"),"",!1,"","",le);Y=(ga=ie==null?void 0:ie.find(fa=>(fa==null?void 0:fa.name)===(R==null?void 0:R[0])))==null?void 0:ga.compData}Y==null||Y.forEach(oe=>{var ie,fa,ra,Ie,we,Ca;if((oe==null?void 0:oe.key)==="formContent")(ie=oe==null?void 0:oe.contents)==null||ie.forEach(fe=>{var Je;(fe==null?void 0:fe.key)===(R==null?void 0:R[1])&&(Array.isArray(fe==null?void 0:fe.value)?P=fe==null?void 0:fe.value:P=(Je=fe==null?void 0:fe.value)==null?void 0:Je.toString())});else if((oe==null?void 0:oe.key)==="tableContents"){let fe=[],Je=(fa=Y==null?void 0:Y.find(Fe=>(Fe==null?void 0:Fe.key)==="header"))==null?void 0:fa.contents,Ze=(R==null?void 0:R[1])??"";if(Je!=null&&Je.every(Fe=>Array.isArray(Fe))){let Fe=na.getColumnChild((we=Je==null?void 0:Je[0])==null?void 0:we.filter(ka=>(ka==null?void 0:ka.label)!=="操作"));(Ca=oe.contents)==null||Ca.forEach(ka=>{let $e={};ka=ka==null?void 0:ka.filter(pa=>!(pa!=null&&pa.id)),Fe==null||Fe.forEach((pa,re)=>{let Se=ka[re];typeof ka[re]=="number"&&(Se=ka[re].toString()),(Ze===""||Ze===pa.prop)&&($e[pa.prop]=Se)}),fe.push($e)}),fe=G(fe)}else{let Fe=(ra=Je==null?void 0:Je.map(ka=>ka==null?void 0:ka.label))==null?void 0:ra.filter(ka=>ka!=="操作");(Ie=oe.contents)==null||Ie.forEach(ka=>{let $e={};ka=ka==null?void 0:ka.filter(pa=>!(pa!=null&&pa.id)),Fe==null||Fe.forEach((pa,re)=>{let Se=ka[re];typeof ka[re]=="number"&&(Se=ka[re].toString()),(Ze===""||Ze===pa)&&($e[pa]=Se)}),fe.push($e)})}P=fe}})}return P}else if(te!=null&&te.includes("/")){let R={};return(He=I.cloneDeep(ye))==null||He.forEach((P,Y)=>{var oe,ie,fa,ra,Ie,we,Ca,fe,Je,Ze,Fe,ka,$e,pa,re,Se,K,je,Be;if((P==null?void 0:P.comp)==="Table"){let za=Array.isArray((fa=(ie=(oe=P==null?void 0:P.compData)==null?void 0:oe.find(_e=>(_e==null?void 0:_e.key)==="header"))==null?void 0:ie.contents)==null?void 0:fa[0])?(Ca=(we=(Ie=(ra=P==null?void 0:P.compData)==null?void 0:ra.find(_e=>(_e==null?void 0:_e.key)==="header"))==null?void 0:Ie.contents)==null?void 0:we[0])==null?void 0:Ca.some(_e=>_e==null?void 0:_e.children):[],Ea=(Ze=(Je=(fe=P==null?void 0:P.compData)==null?void 0:fe.find(_e=>(_e==null?void 0:_e.key)==="tableContents"))==null?void 0:Je.contents)==null?void 0:Ze.map(_e=>(_e!=null&&_e.find(Z=>Z==null?void 0:Z.id)&&(_e=_e.slice(1)),_e)),Ye=(re=(pa=($e=(ka=(Fe=P==null?void 0:P.compData)==null?void 0:Fe.find(_e=>(_e==null?void 0:_e.key)==="header"))==null?void 0:ka.contents)==null?void 0:$e[0])==null?void 0:pa[0])==null?void 0:re.label,ua=(K=(Se=P==null?void 0:P.compData)==null?void 0:Se.find(_e=>(_e==null?void 0:_e.key)==="header"))==null?void 0:K.contents;if(za)(za==null?void 0:za.length)===0?R[P.name]=R!=null&&R[P.name]?R[P.name]:na.tableToForm(Ea,ua):R[Ye]=na.tableToForm(Ea,ua);else{const _e=[];ua=ua.slice(1,ua.length-1),ua==null||ua.forEach((Z,ya)=>{Ea==null||Ea.forEach(We=>{_e.push({key:Z.label+We[0],value:We[ya+1]})})}),R["form"+Y]=_e}}else{const za=(Be=(je=P.compData)==null?void 0:je.find(Ye=>(Ye==null?void 0:Ye.key)==="formContent"))==null?void 0:Be.contents;R!=null&&R.form||(R.form=[]);const Ea=[];za==null||za.forEach(Ye=>{Ye.key!==""&&(Ye={key:(Ye==null?void 0:Ye.key)??(Ye==null?void 0:Ye.label),value:Ye==null?void 0:Ye.value},Ea.push(Ye))}),R.form=[...Ea,...I.cloneDeep(R==null?void 0:R.form)]}}),R}else{if(te==="createInsofDataApi"){let R=(Ae=I.cloneDeep(B))==null?void 0:Ae[0];return R={comp:(Re=I.cloneDeep(R))==null?void 0:Re.comp,compData:(Ge=I.cloneDeep(R))==null?void 0:Ge.compData,name:(Ka=I.cloneDeep(R))==null?void 0:Ka.name,isShow:(Ia=I.cloneDeep(R))==null?void 0:Ia.isShow},{key:{type:"structure",systemKey:sessionStorage.getItem("systemKey"),parentTable:"",pageKey:S.value},value:{pageData:R}}}return te}},ze=async(te,B,le)=>{var Ne,ia,xa;let ye=await na.getItemData(B,sessionStorage.getItem("systemKey"),""),se=ye==null?void 0:ye.find(Ha=>(Ha==null?void 0:Ha.name)===(le==null?void 0:le[0]));if(se){if((se==null?void 0:se.comp)==="Table"){let Ha={};for(let Re in I.cloneDeep(te))I.cloneDeep(te)[Re]!=="loginUser"?Ha[Re]=I.cloneDeep(te)[Re]:Ha[Re]=((Ne=x.value)==null?void 0:Ne.account)||((ia=x.value)==null?void 0:ia.账号);let ee=[],ea=Ha;Array.isArray(te)||(ea=[Ha]),ea==null||ea.forEach(Re=>{ee.push({[Re[le[1]]]:Re})});let Pe=[],ga=ee==null?void 0:ee.map(Re=>{var Ge;return(Ge=Object.keys(Re))==null?void 0:Ge[0]});ye==null||ye.forEach(Re=>{var Ge;(Re==null?void 0:Re.name)===(le==null?void 0:le[0])&&((Ge=Re==null?void 0:Re.compData)==null||Ge.forEach(Ka=>{var Ia;(Ka==null?void 0:Ka.key)==="tableContents"&&((Ia=Ka==null?void 0:Ka.contents)==null||Ia.forEach(R=>{R!=null&&R.some(P=>ga.includes(P))&&Pe.push({[R.find(P=>P.id).id]:R.find(P=>ga.includes(P))})}))}))});let He=Pe==null?void 0:Pe.map(Re=>{var Ge;return(Ge=Object.keys(Re))==null?void 0:Ge[0]}),Ae=[];if(He==null||He.forEach(Re=>{var Ia;let Ge=(Ia=Pe==null?void 0:Pe.find(R=>{var P;return((P=Object.keys(R))==null?void 0:P[0].toString())===Re.toString()}))==null?void 0:Ia[Re],Ka=ee==null?void 0:ee.find(R=>{var P;return((P=Object.keys(R))==null?void 0:P[0])===Ge});Ae.push({id:parseInt(Re),value:{tableData:Ka[Ge]}})}),(Ae==null?void 0:Ae.length)>0)return Ae}else if((se==null?void 0:se.comp)==="Form"){let Ha=I.cloneDeep(se);Ha.compData=(xa=Ha.compData)==null?void 0:xa.map(Pe=>{var ga;return(Pe==null?void 0:Pe.key)==="formContent"&&(Pe.contents=(ga=Pe.contents)==null?void 0:ga.map(He=>((He==null?void 0:He.key)===(le==null?void 0:le[1])&&(He.value=(te==null?void 0:te[He==null?void 0:He.prop])||te),He))),Pe});let ee={};for(let Pe in Ha)Pe!=="id"&&(ee[Pe]=Ha[Pe]);let ea=[];if(ea.push({id:se==null?void 0:se.id,keyType:le==null?void 0:le[1],value:{pageData:ee}}),(ea==null?void 0:ea.length)>0)return ea}}},De=async(te,B,le)=>{var Ne,ia,xa,Ha,ee,ea,Pe,ga,He,Ae;let ye=await na.getItemData(B,sessionStorage.getItem("systemKey"),""),se=ye==null?void 0:ye.find(Re=>(Re==null?void 0:Re.name)===(le==null?void 0:le[0]));if(se){if((se==null?void 0:se.comp)==="Table"){let Re={};for(let Ge in I.cloneDeep(te))I.cloneDeep(te)[Ge]!=="loginUser"?Re[Ge]=I.cloneDeep(te)[Ge]:Re[Ge]=((Ne=x.value)==null?void 0:Ne.account)||((ia=x.value)==null?void 0:ia.账号);await yr.createInsofDataApi({key:{type:"data",pageKey:B,tableId:se==null?void 0:se.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:Re}})}else if((se==null?void 0:se.comp)==="Form"){let Re=I.cloneDeep(se),Ge=Object.keys(te),Ka="";(Ha=(xa=I.cloneDeep(Re))==null?void 0:xa.compData)==null||Ha.forEach(ie=>{var fa,ra;(ie==null?void 0:ie.key)==="formContent"&&((ra=(fa=I.cloneDeep(ie))==null?void 0:fa.contents)==null||ra.forEach(Ie=>{var we;Ge.includes(Ie==null?void 0:Ie.key)&&(Ie==null?void 0:Ie.value)===((we=x.value)==null?void 0:we.姓名)&&(Ka=Ie==null?void 0:Ie.key)}))});let Ia=[];(ee=Object.values(te[Ka]))==null||ee.forEach(ie=>{ie!=null&&ie.includes("(")&&Ia.push(ie)}),Ia=[...new Set(Ia)];const R=Ia==null?void 0:Ia.map(async ie=>{var Ca,fe,Je,Ze,Fe,ka,$e,pa,re,Se,K,je;let fa="";(ka=(Fe=(Ze=(Je=(fe=(Ca=I.cloneDeep(ie))==null?void 0:Ca.split("("))==null?void 0:fe[1])==null?void 0:Je.split(")"))==null?void 0:Ze[0])==null?void 0:Fe.split(":"))==null||ka.forEach(Be=>{fa=fa===""?fa+Be.replaceAll("'",""):fa+"/"+Be.replaceAll("'","")});let ra=[];(je=(K=(Se=(re=(pa=($e=I.cloneDeep(ie))==null?void 0:$e.split("<"))==null?void 0:pa[1])==null?void 0:re.split(">"))==null?void 0:Se[0])==null?void 0:K.split(":"))==null||je.forEach(Be=>{ra.push(Be.replaceAll("'",""))});const Ie=await na.getItemData(fa,sessionStorage.getItem("systemKey"),"");let we="";return Ie==null||Ie.forEach(Be=>{var za;Be.name===(ra==null?void 0:ra[0])&&((za=Be==null?void 0:Be.compData)==null||za.forEach(Ea=>{var Ye;(Ea==null?void 0:Ea.key)==="formContent"&&((Ye=Ea.contents)==null||Ye.forEach(ua=>{(ua==null?void 0:ua.key)===(ra==null?void 0:ra[1])&&(we=ua==null?void 0:ua.value)}))}))}),{[ie]:we}}),P=await Promise.all(R);Re.compData=(Pe=(ea=I.cloneDeep(Re))==null?void 0:ea.compData)==null?void 0:Pe.map(ie=>{var fa,ra;return(ie==null?void 0:ie.key)==="formContent"&&(ie.contents=(ra=(fa=I.cloneDeep(ie))==null?void 0:fa.contents)==null?void 0:ra.map(Ie=>{var we,Ca,fe,Je;return(we=te[Ka])!=null&&we[Ie==null?void 0:Ie.key]&&(te[Ka][Ie==null?void 0:Ie.key].includes("(")?Ie.value=(Ca=P==null?void 0:P.find(Ze=>{var Fe;return((Fe=Object.keys(Ze))==null?void 0:Fe[0])===te[Ka][Ie==null?void 0:Ie.key]}))==null?void 0:Ca[te[Ka][Ie==null?void 0:Ie.key]]:Ie.value=(Je=(fe=I.cloneDeep(te))==null?void 0:fe[Ka])==null?void 0:Je[Ie==null?void 0:Ie.key]),Ie})),ie});const Y=await yr.getInsofDataApi({key:{type:"structure",pageKey:B,systemKey:sessionStorage.getItem("systemKey")}});let oe="";((ga=Y==null?void 0:Y.data)==null?void 0:ga.type)==="success"&&((Ae=(He=Y==null?void 0:Y.data)==null?void 0:He.result)==null||Ae.forEach(ie=>{var fa,ra;((ra=(fa=ie==null?void 0:ie.value)==null?void 0:fa.pageData)==null?void 0:ra.name)===(le==null?void 0:le[0])&&(oe=ie.id)}),await yr.updateInsofDataApi({id:oe,value:{pageData:Re}}))}}},ne=(te,B="",le={})=>{for(const[ye,se]of Object.entries(te)){const Ne=B?`${B}.${ye}`:ye;se!==null&&typeof se=="object"&&!Array.isArray(se)&&Object.prototype.toString.call(se)!=="[object Date]"?ne(se,Ne,le):le[Ne]=se}return le},ke=async(te,B,le,ye)=>{var ia,xa,Ha,ee,ea,Pe,ga,He,Ae,Re,Ge,Ka,Ia,R,P,Y,oe,ie,fa,ra,Ie,we,Ca,fe,Je;let se=await na.getItemData(B,sessionStorage.getItem("systemKey"),""),Ne=se==null?void 0:se.find(Ze=>(Ze==null?void 0:Ze.name)===(le==null?void 0:le[0]));if(Ne){if(!(le!=null&&le[1])&&(Ne==null?void 0:Ne.comp)==="Table"){let Ze={},Fe=[],ka=(xa=(ia=Ne==null?void 0:Ne.compData)==null?void 0:ia.find(re=>(re==null?void 0:re.key)==="header"))==null?void 0:xa.contents;ka!=null&&ka.every(re=>Array.isArray(re))?Fe=(ee=na.getColumnChild((Ha=ka==null?void 0:ka[0])==null?void 0:Ha.filter(re=>(re==null?void 0:re.label)!=="操作")))==null?void 0:ee.map(re=>re==null?void 0:re.prop):Fe=ka==null?void 0:ka.map(re=>re==null?void 0:re.label);for(let re in I.cloneDeep(te))if(I.cloneDeep(te)[re]!=="loginUser"){let Se=ne(I.cloneDeep(te)[re]),K={};for(let je in Se)if(Fe!=null&&Fe.find(Be=>Be===je))K[je]=Se[je];else if(Fe!=null&&Fe.find(Be=>(Be==null?void 0:Be.toUpperCase())===(je==null?void 0:je.toUpperCase()))){let Be=Fe==null?void 0:Fe.find(za=>(za==null?void 0:za.toUpperCase())===(je==null?void 0:je.toUpperCase()));K[Be]=Se[je]}Ze[re]=K}else Ze[re]=((ea=x.value)==null?void 0:ea.account)||((Pe=x.value)==null?void 0:Pe.账号);let $e=await yr.getInsofDataApi({keyLikes:{tableId:Ne==null?void 0:Ne.id}});if(((He=(ga=$e==null?void 0:$e.data)==null?void 0:ga.result)==null?void 0:He.length)>0){let re=(Re=(Ae=$e==null?void 0:$e.data)==null?void 0:Ae.result)==null?void 0:Re.map(Se=>Se==null?void 0:Se.id);(re==null?void 0:re.length)>0&&await yr.batchDeleteInsofDataApi({ids:re})}let pa=[];if((Ge=Ne==null?void 0:Ne.compData)!=null&&Ge.find(re=>(re==null?void 0:re.key)==="pageColumn")&&((R=(Ia=(Ka=Ne==null?void 0:Ne.compData)==null?void 0:Ka.find(re=>(re==null?void 0:re.key)==="pageColumn"))==null?void 0:Ia.contents)!=null&&R.includes("["))){const re=await yr.getInsofDataApi({id:Ne==null?void 0:Ne.tableId});let Se=((ie=(oe=(Y=(P=re==null?void 0:re.data)==null?void 0:P.result)==null?void 0:Y[0])==null?void 0:oe.key)==null?void 0:ie.pageKey)??"";(fa=Object.values(Ze))==null||fa.forEach(K=>{pa.push({key:{type:"data",pageKey:Se,tableId:Ne==null?void 0:Ne.tableId,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:K}})})}else(ra=Object.values(Ze))==null||ra.forEach(re=>{pa.push({key:{type:"data",pageKey:B,tableId:Ne==null?void 0:Ne.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:re}})});(pa==null?void 0:pa.length)>0&&await yr.batchAddInsofDataApi({dataList:pa})}else if(!(le!=null&&le[1])&&(Ne==null?void 0:Ne.comp)==="Form"){let Ze=I.cloneDeep(Ne);Ze.compData=(we=(Ie=I.cloneDeep(Ze))==null?void 0:Ie.compData)==null?void 0:we.map($e=>{var pa,re;return($e==null?void 0:$e.key)==="formContent"&&($e.contents=(re=(pa=I.cloneDeep($e))==null?void 0:pa.contents)==null?void 0:re.map(Se=>{var K,je;return(K=I.cloneDeep(te))!=null&&K[Se==null?void 0:Se.key]&&(Se.value=(je=I.cloneDeep(te))==null?void 0:je[Se==null?void 0:Se.key]),Se})),$e});const Fe=await yr.getInsofDataApi({key:{type:"structure",pageKey:B,systemKey:sessionStorage.getItem("systemKey")}});let ka="";((Ca=Fe==null?void 0:Fe.data)==null?void 0:Ca.type)==="success"&&((Je=(fe=Fe==null?void 0:Fe.data)==null?void 0:fe.result)==null||Je.forEach($e=>{var pa,re;((re=(pa=$e==null?void 0:$e.value)==null?void 0:pa.pageData)==null?void 0:re.name)===(le==null?void 0:le[0])&&(ka=$e.id)}),await yr.updateInsofDataApi({id:ka,value:{pageData:Ze}}))}}},X=async te=>{var B,le,ye,se,Ne,ia,xa,Ha,ee,ea,Pe,ga,He,Ae;w.setImportLoading(!0);try{if(te.api){let Re=new WeakMap,Ge=await na.getItemData((z==null?void 0:z.value)===""?S.value:z==null?void 0:z.value,sessionStorage.getItem("systemKey"),"",!1,"","",Re),Ka="";if(Ge=Ge==null?void 0:Ge.map(ra=>{var Ie,we,Ca,fe,Je,Ze,Fe,ka,$e,pa,re,Se;if((ra==null?void 0:ra.comp)==="Form")ra.compData=(Ie=ra.compData)==null?void 0:Ie.map(K=>{var je;return(K==null?void 0:K.key)==="formContent"&&(K.contents=(je=K.contents)==null?void 0:je.map(Be=>{var za;if((Be==null?void 0:Be.value)===""&&(Be==null?void 0:Be.type)==="Select"){let Ea=na.judgeContents((za=I.cloneDeep(Be))==null?void 0:za.optionUrl,Re);Be.value=Be.value||Ea}return Be})),K});else if((ra==null?void 0:ra.comp)==="Table"&&(we=ra.compData)!=null&&we.find(K=>(K==null?void 0:K.key)==="pageColumn")){let K=(fe=(Ca=ra.compData)==null?void 0:Ca.find(Ea=>(Ea==null?void 0:Ea.key)==="pageColumn"))==null?void 0:fe.contents,je=((Ze=(Je=ra.compData)==null?void 0:Je.find(Ea=>(Ea==null?void 0:Ea.key)==="pageGroup"))==null?void 0:Ze.contents)??"",Be=($e=(ka=(Fe=K==null?void 0:K.split("["))==null?void 0:Fe[1])==null?void 0:ka.split("]"))==null?void 0:$e[0];Ka=((pa=K==null?void 0:K.split("["))==null?void 0:pa[0])+((Se=(re=k.value)==null?void 0:re.find(Ea=>(Ea==null?void 0:Ea.key)===Be))==null?void 0:Se.value)}return ra}),!(Ka===""||Ka==="")){const ra=await na.getItemData(Ka,sessionStorage.getItem("systemKey"),"",!1,"","",Re);Ge=Ge==null?void 0:Ge.map(Ie=>{var we,Ca,fe,Je,Ze,Fe,ka,$e,pa,re,Se,K,je;if((Ie==null?void 0:Ie.comp)==="Table"&&(we=Ie.compData)!=null&&we.find(Be=>(Be==null?void 0:Be.key)==="pageColumn")){let Be=(fe=(Ca=Ie.compData)==null?void 0:Ca.find(_e=>(_e==null?void 0:_e.key)==="pageColumn"))==null?void 0:fe.contents,za=((Ze=(Je=Ie.compData)==null?void 0:Je.find(_e=>(_e==null?void 0:_e.key)==="pageGroup"))==null?void 0:Ze.contents)??"",Ea=($e=(ka=(Fe=Be==null?void 0:Be.split("["))==null?void 0:Fe[1])==null?void 0:ka.split("]"))==null?void 0:$e[0],Ye=((pa=Be==null?void 0:Be.split("["))==null?void 0:pa[0])+((Se=(re=k.value)==null?void 0:re.find(_e=>(_e==null?void 0:_e.key)===Ea))==null?void 0:Se.value),ua=(K=ra==null?void 0:ra.find(_e=>(_e==null?void 0:_e.name)===(za===""?s==null?void 0:s.compName:za)))==null?void 0:K.compData;Ie.compData=(je=Ie.compData)==null?void 0:je.map(_e=>{var Z;return(_e==null?void 0:_e.key)==="tableContents"&&(_e.contents=(Z=ua==null?void 0:ua.find(ya=>(ya==null?void 0:ya.key)==="tableContents"))==null?void 0:Z.contents),_e})}return Ie})}let Ia={};if(((le=(B=te==null?void 0:te.extraValues)==null?void 0:B.input)==null?void 0:le.length)>0){const ra=(se=(ye=te==null?void 0:te.extraValues)==null?void 0:ye.input)==null?void 0:se.map(async Ie=>{var we;pe!=null&&pe.find(Ca=>Ca===Ie)?Ia=await be(Ie,Ge):Ia[Object.keys(Ie)[0]]=await be((we=Object.values(Ie))==null?void 0:we[0],Ge,Re)});await Promise.all(ra)}else Ia=await be("/",Ge);let R=!1;(ia=(Ne=te==null?void 0:te.extraValues)==null?void 0:Ne.output)==null||ia.forEach(ra=>{var Ie,we;(we=(Ie=Object.values(ra))==null?void 0:Ie[0])!=null&&we.includes(".doc")&&(R=!0)});let P;if(R){const ra=I.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});P=await ll.axios.post(te.api,Ia,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{ra.close()})}else P=await ll.axios.post(te.api,Ia,{headers:{"Content-Type":"application/json"}});let Y=(ea=(ee=(Ha=(xa=I.cloneDeep(te))==null?void 0:xa.extraValues)==null?void 0:Ha.output)==null?void 0:ee.map(ra=>{var Ie,we,Ca,fe,Je,Ze,Fe,ka,$e,pa,re,Se,K,je,Be,za;if(!((we=(Ie=Object.values(ra))==null?void 0:Ie[0])!=null&&we.includes(".doc"))){let Ea=(pa=($e=(ka=(fe=I.cloneDeep((Ca=Object.values(ra))==null?void 0:Ca[0]))==null?void 0:fe.split("["))==null?void 0:ka[((Fe=(Ze=I.cloneDeep((Je=Object.values(ra))==null?void 0:Je[0]))==null?void 0:Ze.split("["))==null?void 0:Fe.length)-1])==null?void 0:$e.split("]"))==null?void 0:pa[0],Ye=Ea==null?void 0:Ea.split(":"),ua=(K=I.cloneDeep((re=Object.values(ra))==null?void 0:re[0]))==null?void 0:K.substring(0,I.cloneDeep((Se=Object.values(ra))==null?void 0:Se[0]).lastIndexOf("["));if(ua=(Be=I.cloneDeep(ua))==null?void 0:Be.slice(0,((je=I.cloneDeep(ua))==null?void 0:je.length)-1),ua!=null&&ua.includes("[")){let _e="";if((za=na.contentTransArrayToAll(ua,"/"))==null||za.forEach(Z=>{var ya,We,La,ml,Aa,el,Ja;if(!(Z!=null&&Z.includes("[")))_e=_e===""?_e+Z.replaceAll("/",""):_e+"/"+Z.replaceAll("/","");else{let Pa=I.cloneDeep(Z).slice(1,((ya=I.cloneDeep(Z))==null?void 0:ya.length)-1),Te=(el=(Aa=(ml=(La=(We=I.cloneDeep(Pa))==null?void 0:We.split("["))==null?void 0:La[1])==null?void 0:ml.split("]"))==null?void 0:Aa[0])==null?void 0:el.split(":"),il="",ma=(Ja=Ge==null?void 0:Ge.find(wa=>(wa==null?void 0:wa.name)===(Te==null?void 0:Te[0])))==null?void 0:Ja.compData;ma==null||ma.forEach(wa=>{var _a;(wa==null?void 0:wa.key)==="formContent"&&((_a=wa==null?void 0:wa.contents)==null||_a.forEach(oa=>{(oa==null?void 0:oa.key)===(Te==null?void 0:Te[1])&&(il=oa==null?void 0:oa.value)}))}),_e=_e===""?_e+il.replaceAll("/",""):_e+"/"+il.replaceAll("/","")}}),ua=_e,ua[(ua==null?void 0:ua.length)-1]!=="/")return ua}}}))==null?void 0:ea.filter(ra=>ra);Y=[...new Set(I.cloneDeep(Y))];let oe=Y==null?void 0:Y.map(async ra=>{let Ie=await na.getItemData(ra,sessionStorage.getItem("systemKey"),"",!1,"","",Re);if((Ie==null?void 0:Ie.length)===0)return await na.getParentContents(ra)});await Promise.all(oe);let ie=[],fa=(He=(ga=(Pe=I.cloneDeep(te))==null?void 0:Pe.extraValues)==null?void 0:ga.output)==null?void 0:He.map(async ra=>{var ka,$e,pa,re,Se,K,je,Be,za,Ea,Ye,ua,_e,Z,ya,We,La,ml,Aa,el,Ja,Pa,Te,il,ma,wa,_a,oa,va,ue,Fa,ja,Ee,Ba,Ua,ve,fl,Xa,xl,qa,ol,al,cl,ul,Wl,Kl,Fl,Ul,gr,rr,kr,wr,Er,un,Jr,dn,Xr,Ur,pn,tn,Dr,Zr,Br,Il,qr,Nr,gn,tt,Rn,An;if(($e=(ka=Object.values(ra))==null?void 0:ka[0])!=null&&$e.includes(".doc")){var Ie=new Blob([P.data],{type:"application/octet-stream;charset=UTF-8"}),we=P.headers["content-disposition"],Ca=new RegExp("filename=([^;]+\\.[^\\.;]+);*"),fe=Ca.exec(we),Je=fe==null?void 0:fe[1],Ze=document.createElement("a"),Fe=window.URL.createObjectURL(Ie);b.value=[{name:Je,blobUrl:Fe}],u.value=!0}else{let bn=(Ea=(za=(Be=(re=I.cloneDeep((pa=Object.values(ra))==null?void 0:pa[0]))==null?void 0:re.split("["))==null?void 0:Be[((je=(K=I.cloneDeep((Se=Object.values(ra))==null?void 0:Se[0]))==null?void 0:K.split("["))==null?void 0:je.length)-1])==null?void 0:za.split("]"))==null?void 0:Ea[0],Zl=bn==null?void 0:bn.split(":"),xr=(_e=I.cloneDeep((Ye=Object.values(ra))==null?void 0:Ye[0]))==null?void 0:_e.substring(0,I.cloneDeep((ua=Object.values(ra))==null?void 0:ua[0]).lastIndexOf("["));if(xr!=null&&xr.includes("[")?xr=(ya=I.cloneDeep(xr))==null?void 0:ya.slice(0,((Z=I.cloneDeep(xr))==null?void 0:Z.length)-1):xr===""&&(xr=S.value),xr=xr.replaceAll("<","[").replaceAll(">","]"),xr!=null&&xr.includes("[")){let Hl="";(We=na.contentTransArrayToAll(xr,"/"))==null||We.forEach((Al,cr)=>{var ar,Pl,Mr,Or,kn,Cn,fn,Pn,zn,hn,En;if(!(Al!=null&&Al.includes("[")))Hl=Hl===""?Hl+Al.replaceAll("/",""):Hl+"/"+Al.replaceAll("/","");else{let Mn="",Kr="";(ar=I.cloneDeep(Al))!=null&&ar.includes("]")?(Mn=I.cloneDeep(Al).slice(1,((Pl=I.cloneDeep(Al))==null?void 0:Pl.length)-1),Kr=(fn=(Cn=(kn=(Or=(Mr=I.cloneDeep(Mn))==null?void 0:Mr.split("["))==null?void 0:Or[1])==null?void 0:kn.split("]"))==null?void 0:Cn[0])==null?void 0:fn.split(":")):(Mn=I.cloneDeep(Al).slice(1,(Pn=I.cloneDeep(Al))==null?void 0:Pn.length),Kr=(zn=I.cloneDeep(Mn))==null?void 0:zn.split("/"));let Sn="",Fn=(hn=Ge==null?void 0:Ge.find(Tr=>(Tr==null?void 0:Tr.name)===(Kr==null?void 0:Kr[0])))==null?void 0:hn.compData;Fn==null||Fn.forEach(Tr=>{var jn;(Tr==null?void 0:Tr.key)==="formContent"&&((jn=Tr==null?void 0:Tr.contents)==null||jn.forEach(on=>{(on==null?void 0:on.key)===(Kr==null?void 0:Kr[1])&&(Sn=on==null?void 0:on.value)}))}),((En=na.contentTransArrayToAll(xr,"/"))==null?void 0:En.length)-1!==cr?Hl=Hl===""?Hl+Sn.replaceAll("/",""):Hl+"/"+Sn.replaceAll("/",""):Hl=Hl+t.value+Sn.replaceAll("/","")}}),(La=S.value)!=null&&La.includes(Hl)?xr=S.value:xr=Hl}let Vl=I.cloneDeep((ml=Object.keys(ra))==null?void 0:ml[0]);if(((Aa=P==null?void 0:P.data)==null?void 0:Aa.statusCode)===200||((el=P==null?void 0:P.data)==null?void 0:el.code)===200){if(((Pa=(Ja=P==null?void 0:P.data)==null?void 0:Ja.data)!=null&&Pa[Vl]||(il=(Te=P==null?void 0:P.data)==null?void 0:Te.result)!=null&&il[Vl])&&(Zl==null?void 0:Zl.length)===1)return await ke(((wa=(ma=P==null?void 0:P.data)==null?void 0:ma.data)==null?void 0:wa[Vl])||((oa=(_a=P==null?void 0:P.data)==null?void 0:_a.result)==null?void 0:oa[Vl]),I.cloneDeep(xr),Zl,Ka);if((ue=(va=P==null?void 0:P.data)==null?void 0:va.data)!=null&&ue[Vl]||(ja=(Fa=P==null?void 0:P.data)==null?void 0:Fa.result)!=null&&ja[Vl]){let Hl=await ze(((Ba=(Ee=P==null?void 0:P.data)==null?void 0:Ee.data)==null?void 0:Ba[Vl])||((ve=(Ua=P==null?void 0:P.data)==null?void 0:Ua.result)==null?void 0:ve[Vl]),I.cloneDeep(xr),Zl);return Hl&&(ie=[...ie,...Hl]),Hl}else{if(!((fl=P==null?void 0:P.data)!=null&&fl.data)){let Hl=await na.getItemData(S.value,sessionStorage.getItem("systemKey"),"",!1,"","",Re);Hl=Hl==null?void 0:Hl.map(cr=>{var ar;return(cr==null?void 0:cr.name)===(Zl==null?void 0:Zl[0])&&(cr.compData=(ar=cr.compData)==null?void 0:ar.map(Pl=>{var Mr;return(Pl==null?void 0:Pl.key)==="formContent"&&(Pl.contents=(Mr=Pl.contents)==null?void 0:Mr.map(Or=>{var kn,Cn;return(Or==null?void 0:Or.key)===(Zl==null?void 0:Zl[1])&&(Or.value=(Cn=(kn=P==null?void 0:P.data)==null?void 0:kn.result)==null?void 0:Cn[Vl==null?void 0:Vl.replaceAll(":","")]),Or})),Pl})),cr});let Al=[];(Xa=Hl==null?void 0:Hl.filter(cr=>(cr==null?void 0:cr.comp)==="Form"))==null||Xa.forEach(async cr=>{let ar={};for(let Pl in cr)Pl!=="id"&&(ar[Pl]=cr[Pl]);Al.push({id:cr==null?void 0:cr.id,value:{pageData:ar}})}),(Al==null?void 0:Al.length)>0&&await yr.batchUpdateInsofDataApi({dataList:Al});return}if((Zl==null?void 0:Zl.length)===1){const Hl=(ol=(qa=(xl=P==null?void 0:P.data)==null?void 0:xl.data)==null?void 0:qa.path)==null?void 0:ol.path;let Al="";(Kl=(Wl=(ul=(cl=(al=Hl==null?void 0:Hl.split("("))==null?void 0:al[1])==null?void 0:cl.split(")"))==null?void 0:ul[0])==null?void 0:Wl.split(":"))==null||Kl.forEach(Pl=>{var Mr,Or;Al=Al===""?Al+((Mr=Pl==null?void 0:Pl.replaceAll("'",""))==null?void 0:Mr.trim()):Al+"/"+((Or=Pl==null?void 0:Pl.replaceAll("'",""))==null?void 0:Or.trim())});let cr=[(kr=(rr=(gr=(Ul=(Fl=Hl==null?void 0:Hl.split("<"))==null?void 0:Fl[1])==null?void 0:Ul.split(">"))==null?void 0:gr[0])==null?void 0:rr.replaceAll("'",""))==null?void 0:kr.trim()],ar;return(un=(Er=(wr=P==null?void 0:P.data)==null?void 0:wr.data)==null?void 0:Er.data)!=null&&un[Zl==null?void 0:Zl[0]]?ar=await ke((Xr=(dn=(Jr=P==null?void 0:P.data)==null?void 0:Jr.data)==null?void 0:dn.data)==null?void 0:Xr[Zl==null?void 0:Zl[0]],Al,Zl,Ka):ar=await De((pn=(Ur=P==null?void 0:P.data)==null?void 0:Ur.data)==null?void 0:pn.data,Al,cr,Re),ar}else{const Hl=(Zr=(Dr=(tn=P==null?void 0:P.data)==null?void 0:tn.data)==null?void 0:Dr.path)==null?void 0:Zr.path;let Al="";return(gn=(Nr=(qr=(Il=(Br=Hl==null?void 0:Hl.split("("))==null?void 0:Br[1])==null?void 0:Il.split(")"))==null?void 0:qr[0])==null?void 0:Nr.split(":"))==null||gn.forEach(ar=>{var Pl,Mr;Al=Al===""?Al+((Pl=ar==null?void 0:ar.replaceAll("'",""))==null?void 0:Pl.trim()):Al+"/"+((Mr=ar==null?void 0:ar.replaceAll("'",""))==null?void 0:Mr.trim())}),await ze((An=(Rn=(tt=P==null?void 0:P.data)==null?void 0:tt.data)==null?void 0:Rn.data)==null?void 0:An[Zl==null?void 0:Zl[0]],Al,Zl)}}}}});if(await Promise.all(fa),(ie==null?void 0:ie.length)>0){let ra=[];ie==null||ie.forEach(Ca=>{ra!=null&&ra.find(fe=>{var Je,Ze,Fe,ka;return((Ze=(Je=fe==null?void 0:fe.value)==null?void 0:Je.pageData)==null?void 0:Ze.name)===((ka=(Fe=Ca==null?void 0:Ca.value)==null?void 0:Fe.pageData)==null?void 0:ka.name)})||ra.push(Ca)});let Ie=[];ra==null||ra.forEach(Ca=>{var Ze,Fe,ka,$e;let fe=I.cloneDeep(Ca);fe.value.pageData.compData=(Ze=fe.value.pageData.compData)==null?void 0:Ze.map(pa=>{var re;return(pa==null?void 0:pa.key)==="formContent"&&(pa.contents=(re=pa.contents)==null?void 0:re.map(Se=>{var je,Be,za,Ea;let K=(je=I.cloneDeep(ie))==null?void 0:je.find(Ye=>(Ye==null?void 0:Ye.keyType)===(Se==null?void 0:Se.key));if(K){let Ye=(Ea=(za=(Be=K.value.pageData.compData)==null?void 0:Be.find(ua=>(ua==null?void 0:ua.key)==="formContent"))==null?void 0:za.contents)==null?void 0:Ea.find(ua=>(ua==null?void 0:ua.key)===(Se==null?void 0:Se.key));Se.value=Ye==null?void 0:Ye.value}return Se})),pa}),Ie.push({id:fe==null?void 0:fe.id,value:fe==null?void 0:fe.value});let Je=[];($e=(ka=(Fe=fe==null?void 0:fe.value)==null?void 0:Fe.pageData)==null?void 0:ka.compData)==null||$e.forEach(pa=>{var re;(pa==null?void 0:pa.key)==="formContent"&&((re=pa==null?void 0:pa.contents)==null||re.forEach(Se=>{var K,je,Be,za,Ea,Ye;if((je=(K=Se==null?void 0:Se.optionUrl)==null?void 0:K.menuSelect)!=null&&je.find(ua=>ua==null?void 0:ua.includes("[")))if(Je!=null&&Je.find(ua=>{var _e,Z,ya;return((_e=ua==null?void 0:ua.key)==null?void 0:_e.join(","))===((ya=(Z=Se==null?void 0:Se.optionUrl)==null?void 0:Z.menuSelect)==null?void 0:ya.join(","))})){let ua=(Be=Je==null?void 0:Je.find(_e=>{var Z,ya,We;return((Z=_e==null?void 0:_e.key)==null?void 0:Z.join(","))===((We=(ya=Se==null?void 0:Se.optionUrl)==null?void 0:ya.menuSelect)==null?void 0:We.join(","))}))==null?void 0:Be.value;ua.push({key:Se==null?void 0:Se.prop,groups:(za=Se==null?void 0:Se.optionUrl)==null?void 0:za.groupSelect,value:Se==null?void 0:Se.value}),Je=Je==null?void 0:Je.map(_e=>{var Z,ya,We;return((Z=_e==null?void 0:_e.key)==null?void 0:Z.join(","))===((We=(ya=Se==null?void 0:Se.optionUrl)==null?void 0:ya.menuSelect)==null?void 0:We.join(","))&&(_e.value=ua),_e})}else Je.push({key:(Ea=Se==null?void 0:Se.optionUrl)==null?void 0:Ea.menuSelect,value:[{key:Se==null?void 0:Se.prop,groups:(Ye=Se==null?void 0:Se.optionUrl)==null?void 0:Ye.groupSelect,value:Se==null?void 0:Se.value}]})}))}),(Je==null?void 0:Je.length)>0&&(Je=Je==null?void 0:Je.map(pa=>{var Se;let re="";return(Se=pa==null?void 0:pa.key)==null||Se.forEach(K=>{var je;if(!(K!=null&&K.includes("[")))re=re===""?re+K:re+"/"+K;else{let Be="",za=(je=K==null?void 0:K.replaceAll("[","").replaceAll("]",""))==null?void 0:je.split(":");Ge==null||Ge.forEach(Ea=>{var Ye;(Ea==null?void 0:Ea.name)===(za==null?void 0:za[0])&&((Ye=Ea==null?void 0:Ea.compData)==null||Ye.forEach(ua=>{var _e;(ua==null?void 0:ua.key)==="formContent"&&((_e=ua==null?void 0:ua.contents)==null||_e.forEach(Z=>{(Z==null?void 0:Z.prop)===(za==null?void 0:za[1])&&(Be=Z==null?void 0:Z.value)}))}))}),re=re+t.value+Be}}),pa.key=re,pa})),Je==null||Je.forEach(pa=>{var je,Be,za;let re=(je=Re[pa.key])==null?void 0:je.find(Ea=>{var Ye,ua,_e,Z,ya,We,La;return((ua=(Ye=Ea==null?void 0:Ea.value)==null?void 0:Ye.pageData)==null?void 0:ua.name)===((ya=(Z=(_e=pa==null?void 0:pa.value)==null?void 0:_e[0])==null?void 0:Z.groups)==null?void 0:ya[0])&&((La=(We=Ea==null?void 0:Ea.value)==null?void 0:We.pageData)==null?void 0:La.name)!==void 0}),Se=re==null?void 0:re.id,K=(Be=re==null?void 0:re.value)==null?void 0:Be.pageData;K.compData=(za=K.compData)==null?void 0:za.map(Ea=>{var Ye;return(Ea==null?void 0:Ea.key)==="formContent"&&(Ea.contents=(Ye=Ea.contents)==null?void 0:Ye.map(ua=>{var Z;let _e=(Z=pa.value)==null?void 0:Z.find(ya=>(ya==null?void 0:ya.key)===(ua==null?void 0:ua.prop));return _e&&(ua.value=_e.value),ua})),Ea}),Ie.push({id:Se,value:{pageData:K}})})});let we=(Ae=I.cloneDeep(ie))==null?void 0:Ae[0];(Ie==null?void 0:Ie.length)>0&&await yr.batchUpdateInsofDataApi({dataList:Ie})}y.setFreshContent(!0)}w.setImportLoading(!1)}catch{ll.ElMessage.error("方法执行错误,请查看方法!"),w.setImportLoading(!1)}g.value=!0},pe=["createInsofDataApi"],Ke=$a.debounce(async te=>{X(te)},100),Sa=async te=>{var ia,xa,Ha;const B=I.cloneDeep(te);let le,ye=new WeakMap;te!=null&&te[0].path&&(le=await(B==null?void 0:B.map(async(ee,ea)=>{var Ia,R,P,Y,oe,ie,fa,ra,Ie,we,Ca,fe,Je,Ze,Fe,ka;const ga=(Ia=ye[ee==null?void 0:ee.path])==null?void 0:Ia.filter($e=>{var pa;return((pa=$e==null?void 0:$e.key)==null?void 0:pa.type)==="data"});let He="";const Ae=await na.getItemData(S.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,ye);ga==null||ga.forEach($e=>{var pa,re,Se,K,je;((re=(pa=$e==null?void 0:$e.value)==null?void 0:pa.tableData)==null?void 0:re.算法名称)===((Se=B==null?void 0:B[ea])==null?void 0:Se.method)&&(He=(je=(K=$e==null?void 0:$e.value)==null?void 0:K.tableData)==null?void 0:je.算法体)});const Re=await na.getItemData(ee==null?void 0:ee.path,sessionStorage.getItem("systemKey"),"",!1,[],!1,ye);let Ge="",Ka=(oe=(Y=(P=(R=Re==null?void 0:Re[0])==null?void 0:R.compData)==null?void 0:P.find($e=>($e==null?void 0:$e.key)==="header"))==null?void 0:Y.contents)==null?void 0:oe.findIndex($e=>($e==null?void 0:$e.prop)==="算法体");return(fa=(ie=Re==null?void 0:Re[0])==null?void 0:ie.compData)==null||fa.forEach($e=>{var pa;($e==null?void 0:$e.key)==="tableContents"&&((pa=$e==null?void 0:$e.contents)==null||pa.forEach(re=>{re!=null&&re.find(Se=>Se===(ee==null?void 0:ee.method))&&(Ge=re[Ka])}))}),{buttonName:((ra=B==null?void 0:B[ea])==null?void 0:ra.method)||((Ca=(we=(Ie=ga==null?void 0:ga[0])==null?void 0:Ie.value)==null?void 0:we.tableData)==null?void 0:Ca.算法名称),api:(He===""?(Ze=(Je=(fe=ga==null?void 0:ga[0])==null?void 0:fe.value)==null?void 0:Je.tableData)==null?void 0:Ze.算法体:He)||Ge,content:Ae==null?void 0:Ae.filter($e=>$e.comp!=="methodButton"),extraContent:(Fe=I.cloneDeep(ee.value))==null?void 0:Fe.slice(1),methodName:(ee==null?void 0:ee.path)??"",extraValues:(ka=B==null?void 0:B[ea])==null?void 0:ka.data}})));const se=B==null?void 0:B.map(async ee=>{var Re,Ge,Ka,Ia,R,P;const ea=(Re=resAll.data.result)==null?void 0:Re.filter(Y=>{var oe,ie,fa;return((oe=Y==null?void 0:Y.key)==null?void 0:oe.parentTable)===""&&((ie=Y==null?void 0:Y.key)==null?void 0:ie.type)==="method"&&((fa=Y==null?void 0:Y.key)==null?void 0:fa.methodName)===Y.method}),Pe=ea==null?void 0:ea[0],ga=(Ge=resAll.data.result)==null?void 0:Ge.filter(Y=>{var oe,ie;return((oe=Y==null?void 0:Y.key)==null?void 0:oe.type)==="methodData"&&((ie=Y==null?void 0:Y.key)==null?void 0:ie.tableId)===(Pe==null?void 0:Pe.id)}),He=await na.getItemData(S.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,ye),Ae=ga==null?void 0:ga[0];return{buttonName:(Ka=Pe==null?void 0:Pe.key)==null?void 0:Ka.methodKey,api:(R=(Ia=Ae==null?void 0:Ae.value)==null?void 0:Ia.tableData)==null?void 0:R[0],content:He==null?void 0:He.filter(Y=>Y.comp!=="methodButton"),extraContent:(P=I.cloneDeep(ee.value))==null?void 0:P.slice(1),methodName:(ee==null?void 0:ee.method)??""}}),Ne=(ia=te==null?void 0:te[0])!=null&&ia.path&&((xa=te==null?void 0:te[0])==null?void 0:xa.path)!==""?await Promise.all(le):await Promise.all(se);r.value=Ne==null?void 0:Ne.filter(ee=>ee==null?void 0:ee.extraContent),(Ha=r.value)==null||Ha.forEach(ee=>{var ea;ee.api===""&&((ea=ee.content)==null||ea.forEach(Pe=>{var ga;Pe.comp=="Table"&&y.setExtraContents(na.methodTableToContent(Pe.compData,(ga=ee.extraContent)==null?void 0:ga[0]))}))})};return a.watch(()=>s.itemData,async()=>{_.value=="view"&&!g.value&&await Sa(I.cloneDeep(s.itemData)),g.value=!1},{immediate:!0,deep:!0}),(te,B)=>{var le,ye,se;return a.unref(_)!=="edit"?(a.openBlock(),a.createElementBlock("div",E2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((le=r.value)==null?void 0:le.filter(Ne=>(Ne==null?void 0:Ne.buttonName)!=="保存"),Ne=>{var ia;return a.openBlock(),a.createElementBlock("div",null,[Ne.api!==""?(a.openBlock(),a.createBlock(a.unref(Xi._sfc_main),{key:0,disabled:a.unref(T)===a.unref(S)&&!((ia=Ne==null?void 0:Ne.buttonName)!=null&&ia.includes("预览")),class:"calculator-content",modelValue:Ne.buttonName,onClickTrigger:xa=>a.unref(Ke)(Ne),loading:c.value},null,8,["disabled","modelValue","onClickTrigger","loading"])):a.createCommentVNode("",!0)])}),256)),a.createElementVNode("div",null,[a.unref(H)!==""&&((se=a.unref(S))==null?void 0:se[((ye=a.unref(S))==null?void 0:ye.length)-1])!==a.unref(t)?(a.openBlock(),a.createBlock(a.unref(Xi._sfc_main),{key:0,class:"calculator-content",onClickTrigger:F,modelValue:"保存"})):a.createCommentVNode("",!0)]),u.value?(a.openBlock(),a.createBlock(pl.ssFilePreview,{key:0,fileDataList:b.value,onDestroy:q},null,8,["fileDataList"])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)}}},D2=ql._export_sfc(S2,[["__scopeId","data-v-063aa9af"]]),B2={};function N2(l,r){return" 567 "}const T2=ql._export_sfc(B2,[["render",N2]]),A2={class:"module content"},z2={class:"module data"},M2={class:"module layout"},O2={class:"form-content"},I2=a.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:r}){const n=l,t=r,s=a.reactive({visible:!1,width:"40%",title:"签名配置"}),u=a.ref("create"),b=a.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),h=a.ref([{label:"宽度(%):",prop:"signPadWidth",type:"number",value:"30"},{label:"弹窗名称:",prop:"dialogTitle",type:"input",value:""},{label:"弹窗宽度(%):",prop:"dialogWidth",type:"number",value:"30"},{label:"弹窗显示:",prop:"dialogShow",type:"radio",contents:[{label:"显示",value:!0},{label:"隐藏",value:!1}],value:!1,isFormColHidden:!0},{label:"路径:",prop:"url",type:"input",value:"",isFormColHidden:!0}]),v=a.computed(()=>[{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"类型:",prop:"label",type:"select",contents:[{label:"电子签名",value:"电子签名"},{label:"签字版",value:"签字版"},{label:"上传签名",value:"上传签名"}],value:""},{label:"图标",prop:"icon",type:"inputPopover",value:""}]),y=a.ref({}),c=a.ref([]),w=()=>({comp:"Signature",compData:[{key:"signTypeList",contents:c.value},{key:"signConfig",contents:y.value}]}),D=k=>{var T;y.value=I.cloneDeep(k),t("change",(T=w())==null?void 0:T.compData)},A=k=>{var T,J;if((k==null?void 0:k.buttonName)==="确认"){const S=I.cloneDeep(k==null?void 0:k.content);switch(u.value){case"create":c.value.push({...S,index:((T=c.value)==null?void 0:T.length)+1});break}t("change",(J=w())==null?void 0:J.compData),s.visible=!1}else s.visible=!1},_=(k,T)=>{var J,S;switch(k){case"create":(J=v.value)==null||J.forEach(V=>{V.value=""}),u.value="create",s.visible=!0;break;case"update":(S=v.value)==null||S.forEach(V=>{V.value=T[V==null?void 0:V.prop]}),u.value="update",s.visible=!0;break;case"delete":c.value.splice(T,1),u.value="delete";break}},H=()=>{s.visible=!1};return a.watch(()=>n==null?void 0:n.itemContents,k=>{var T,J;k&&(y.value=((T=k==null?void 0:k.find(S=>S.key==="signConfig"))==null?void 0:T.contents)??{},c.value=((J=k==null?void 0:k.find(S=>S.key==="signTypeList"))==null?void 0:J.contents)??[])},{immediate:!0}),(k,T)=>{const J=a.resolveComponent("svg-icon"),S=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",A2,[T[2]||(T[2]=a.createElementVNode("h4",{class:"module-title"},"签名类型",-1)),a.createVNode(S,{class:"module-icon",id:"themeButton",onClick:T[0]||(T[0]=V=>_("create"))},{icon:a.withCtx(()=>[a.createVNode(J,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[T[1]||(T[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",z2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.value,(V,z)=>(a.openBlock(),a.createElementBlock("div",{class:"module-data-item",key:z},[a.createElementVNode("span",null,a.toDisplayString(V==null?void 0:V.label),1),a.createElementVNode("div",null,[a.createVNode(S,{type:"primary",size:"small",onClick:x=>_("update",{...V,index:z+1})},{default:a.withCtx(()=>T[3]||(T[3]=[a.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),a.createVNode(S,{type:"danger",size:"small",onClick:x=>_("delete",z)},{default:a.withCtx(()=>T[4]||(T[4]=[a.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),a.createElementVNode("div",M2,[a.createVNode(pl.ssForm,{rowContents:h.value,onChange:D},null,8,["rowContents"])])]),a.createVNode(vr.ssDialog,{visible:s.visible,title:s.title,onBeforeDestroy:H,width:s.width},{default:a.withCtx(()=>[a.createElementVNode("div",O2,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:v.value,key:v.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:b.value,onOnButtonClick:A},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),L2=ql._export_sfc(I2,[["__scopeId","data-v-487e0536"]]),V2=a.defineComponent({__name:"index",props:{stepConfig:{type:Object,default:{}},stepList:{type:Array,default:()=>[]}},emits:["clickStep","clickTrigger","changeTrigger"],setup(l,{emit:r}){const n=l,t=r,s=a.ref(1),u=a.computed(()=>{var w,D;return(w=n==null?void 0:n.stepConfig)!=null&&w.allowTrigger?s.value:(D=n==null?void 0:n.stepConfig)==null?void 0:D.active}),b=(w,D)=>{s.value=D,t("clickStep",w,D)},h=w=>pl.getComponent(w),v=()=>{var D;const w=(D=n==null?void 0:n.stepList)==null?void 0:D.find((A,_)=>_+1===u.value);return console.log("findStep",w),w?w==null?void 0:w.children:[]},y=w=>{t("clickTrigger",w)},c=w=>{t("changeTrigger",w)};return(w,D)=>{var H,k,T,J,S;const A=a.resolveComponent("el-step"),_=a.resolveComponent("el-steps");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(_,{direction:(H=l.stepConfig)==null?void 0:H.direction,active:u.value,"finish-status":"success",simple:(k=l.stepConfig)==null?void 0:k.simple,"align-center":((T=l.stepConfig)==null?void 0:T.alignCenter)??!0},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.stepList,(V,z)=>(a.openBlock(),a.createBlock(A,{key:z,class:"step-item",onClick:x=>b(V,z+1)},{title:a.withCtx(()=>[a.renderSlot(w.$slots,"title",{title:V==null?void 0:V.title},void 0,!0)]),description:a.withCtx(()=>[a.renderSlot(w.$slots,"description",{description:V==null?void 0:V.description},void 0,!0)]),_:2},1032,["onClick"]))),128))]),_:3},8,["direction","active","simple","align-center"]),(J=l.stepConfig)!=null&&J.allowTrigger&&((S=l.stepConfig)!=null&&S.active)?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(v(),(V,z)=>(a.openBlock(),a.createElementBlock("div",{key:z,class:"step-cont-wrap"},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(h(V==null?void 0:V.type)),{modelValue:V.value,"onUpdate:modelValue":x=>V.value=x,onClickTrigger:y,onChangeTrigger:c,content:V==null?void 0:V.content},a.createSlots({_:2},[a.renderList(w.$slots,(x,g)=>({name:g,fn:a.withCtx(F=>[a.renderSlot(w.$slots,g,a.mergeProps({ref_for:!0},F||{}),void 0,!0)])}))]),1064,["modelValue","onUpdate:modelValue","content"]))]))),128)):a.createCommentVNode("",!0)],64)}}}),$2=ql._export_sfc(V2,[["__scopeId","data-v-d7c99969"]]),R2=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]}},emits:["clickStep"],setup(l,{emit:r}){const n=l,t=r,s=a.ref({}),u=a.ref([]),b=(h,v)=>{t("clickStep",h,v)};return a.watch(()=>n==null?void 0:n.itemData,h=>{var v,y;u.value=(v=h==null?void 0:h.find(c=>(c==null?void 0:c.key)==="stepList"))==null?void 0:v.contents,s.value=(y=h==null?void 0:h.find(c=>(c==null?void 0:c.key)==="stepConfig"))==null?void 0:y.contents},{immediate:!0,deep:!0}),(h,v)=>{const y=a.resolveComponent("svg-icon");return a.openBlock(),a.createBlock($2,{stepConfig:s.value,stepList:u.value,onClickStep:b},{icon:a.withCtx(()=>[a.createVNode(y,{name:"import"})]),title:a.withCtx(({title:c})=>[a.createTextVNode(a.toDisplayString(c),1)]),description:a.withCtx(({description:c})=>[a.createTextVNode(a.toDisplayString(c),1)]),_:1},8,["stepConfig","stepList"])}}}),P2=a.defineComponent({__name:"index",props:{activities:{type:Array,default:()=>[]},timeLineConfig:{type:Object,default:()=>{}}},setup(l){return(r,n)=>{const t=a.resolveComponent("el-timeline-item"),s=a.resolveComponent("el-timeline");return a.openBlock(),a.createBlock(s,null,{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.activities,(u,b)=>(a.openBlock(),a.createBlock(t,{key:b,timestamp:u.timestamp,placement:l.timeLineConfig.placement,center:l.timeLineConfig.isCenter,"hide-timestamp":!0,type:l.timeLineConfig.type,color:l.timeLineConfig.color,size:l.timeLineConfig.size,icon:l.timeLineConfig.icon,hollow:l.timeLineConfig.isHollow},{default:a.withCtx(()=>[a.renderSlot(r.$slots,"content",{content:u==null?void 0:u.content,timestamp:u==null?void 0:u.timestamp},void 0,!0)]),_:2},1032,["timestamp","placement","center","type","color","size","icon","hollow"]))),128))]),_:3})}}}),F2=ql._export_sfc(P2,[["__scopeId","data-v-4172a886"]]),j2={class:"line-content"},H2={class:"line-time"},U2=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},setup(l){const r=l,n=a.ref({}),t=a.ref([]);return a.watch(()=>r==null?void 0:r.itemData,s=>{var u,b;t.value=(u=s==null?void 0:s.find(h=>(h==null?void 0:h.key)==="timeLineList"))==null?void 0:u.contents,n.value=(b=s==null?void 0:s.find(h=>(h==null?void 0:h.key)==="timeLineConfig"))==null?void 0:b.contents},{immediate:!0}),(s,u)=>(a.openBlock(),a.createBlock(F2,{activities:t.value,timeLineConfig:n.value},{content:a.withCtx(({content:b,timestamp:h})=>[a.createElementVNode("span",j2,a.toDisplayString(b),1),a.createElementVNode("span",H2,a.toDisplayString(h),1)]),_:1},8,["activities","timeLineConfig"]))}}),q2=ql._export_sfc(U2,[["__scopeId","data-v-b4d9deed"]]),K2={class:"tabs-content"},W2=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},tabsData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,compNames:{type:String,default:""},cacheNewData:{type:Object},isDevMode:{type:Boolean},allMapContents:{type:Array,default:()=>[]}},emits:["change","contentChange","pageChange","rowClick","routeUrl","clickTrigger","clickMainKey"],setup(l,{emit:r}){const n=l,t=r,s=a.ref();a.watch(()=>n==null?void 0:n.itemData,()=>{s.value=n==null?void 0:n.itemData},{immediate:!0,deep:!0});const u=D=>{t("change",D)},b=(D,A)=>{t("contentChange",D,A)},h=D=>{t("pageChange",D)},v=D=>{t("rowClick",D)},y=(D,A)=>{t("routeUrl",D,A)},c=D=>{t("clickTrigger",D)},w=(D,A)=>{t("clickMainKey",D,A)};return(D,A)=>{var _,H;return a.openBlock(),a.createElementBlock("div",K2,[(_=s.value)!=null&&_.length?(a.openBlock(),a.createBlock(pl.ssTab,{tabsContents:s.value,key:(H=s.value)==null?void 0:H.length},{pane:a.withCtx(({tab:k,index:T})=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(jt)(k==null?void 0:k.comp)),{related:k==null?void 0:k.relatedTables,compNames:n==null?void 0:n.compNames,compName:k==null?void 0:k.name,cacheNewData:n==null?void 0:n.cacheNewData,isDevMode:l.isDevMode,itemData:k==null?void 0:k.compData,childItemData:k==null?void 0:k.itemChildData,onChange:u,index:(k==null?void 0:k.id)??T,config:{showIndex:k==null?void 0:k.showIndex,allowMove:k==null?void 0:k.allowMove,viewport:k==null?void 0:k.viewport},onContentChange:b,onPageChange:h,onRowClick:v,onRouteUrl:y,parentTableId:k==null?void 0:k.tableId,allMapContents:l.allMapContents,children:k==null?void 0:k.children,level:1,onClickTrigger:c,onClickMainKey:w},null,40,["related","compNames","compName","cacheNewData","isDevMode","itemData","childItemData","index","config","parentTableId","allMapContents","children"]))]),_:1},8,["tabsContents"])):a.createCommentVNode("",!0)])}}}),Y2=ql._export_sfc(W2,[["__scopeId","data-v-ded4e0d9"]]),G2={class:"type-select"},J2=["onClick"],X2={class:"list-icon"},Z2={__name:"modelSelect",setup(l){const r=rt(I.pinia),{itemData:n}=I.storeToRefs(r),t=s=>{const u=I.cloneDeep(n.value);u.push({comp:s.comp,name:s.name,compData:[]}),r.setItemData(u)};return(s,u)=>{const b=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",G2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(Kc),(h,v)=>(a.openBlock(),a.createElementBlock("div",{class:"type-list",key:v},[a.createElementVNode("div",{class:"list-content",onClick:y=>t(h)},[a.createElementVNode("div",X2,[a.createVNode(b,{name:h.icon},null,8,["name"])]),a.createElementVNode("div",null,a.toDisplayString(h.name),1)],8,J2)]))),128))])}}},Q2=ql._export_sfc(Z2,[["__scopeId","data-v-91799bf8"]]),eh={class:"fill-content"},ah={class:"operate-content"},lh={class:"collapse-title-content"},rh={class:"collapse-title-item"},nh={key:1},th=["onClick"],oh={class:"icon-content"},ih={key:0,class:"edit-content"},sh=["onClick"],ch={class:"comp-child"},uh={__name:"modelFill",setup(l){const r=rt(I.pinia),{itemData:n,originalData:t}=I.storeToRefs(r),s=a.ref([]);a.ref([]);const u=a.ref([]),b=a.ref([]),h=A=>{var H;let _=(H=I.cloneDeep(b.value))==null?void 0:H.map((k,T)=>(A===T&&(k.content=!0),k));b.value=_},v=A=>{var H;let _=(H=I.cloneDeep(b.value))==null?void 0:H.map((k,T)=>(A===T&&(k.content=!1),k));b.value=_,s.value=I.cloneDeep(n.value)},y=(A,_)=>{var J;let H=(J=I.cloneDeep(b.value))==null?void 0:J.map((S,V)=>(A===V&&(S.content=!1),S));b.value=H;const k=I.cloneDeep(n.value),T=k==null?void 0:k.filter((S,V)=>(V===A&&(S.name=_),S));r.setOriginalData(T),r.setItemData(T)};a.watch(()=>n.value,()=>{var A,_,H;!n.value||((A=n.value)==null?void 0:A.length)===0?s.value=[]:s.value=(_=I.cloneDeep(n.value))==null?void 0:_.filter(k=>(k==null?void 0:k.comp)!=="methodButton"),u.value=s.value,b.value=(H=I.cloneDeep(u.value))==null?void 0:H.map((k,T)=>({id:T,content:!1}))},{deep:!0,immediate:!0});const c=A=>St(A),w=(A,_,H)=>{var T,J;if(!A)return;let k=I.cloneDeep(n.value);k=(T=k==null?void 0:k.map((S,V)=>(V===H&&(S.compData=A),S)))==null?void 0:T.filter(S=>(S==null?void 0:S.comp)!=="methodButton"),b.value=(J=I.cloneDeep(k))==null?void 0:J.map((S,V)=>({id:V,content:!1})),r.setOriginalData(k),r.setItemData(k)},D=A=>{I.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const _=I.cloneDeep(n.value),H=_==null?void 0:_.filter((k,T)=>T!==A);r.setOriginalData(H),r.setItemData(H),ll.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(A,_)=>{const H=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",eh,[_[1]||(_[1]=a.createElementVNode("div",{class:"fill-operate"},a.toDisplayString("操作栏"),-1)),a.createElementVNode("div",ah,[a.createVNode(Us.default,{class:"collapse-content",collapseContents:s.value},{title:a.withCtx(({item:k,index:T})=>{var J,S,V,z,x,g,F,q,G,be;return[a.createElementVNode("div",lh,[a.createElementVNode("div",rh,[(S=(J=b.value)==null?void 0:J.find(ze=>ze.id===T))!=null&&S.content?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:"collapse-title",style:a.normalizeStyle({marginRight:k.name&&k.name!==""?"8px":"0px"})},a.toDisplayString(k.name),5)),(z=(V=b.value)==null?void 0:V.find(ze=>ze.id===T))!=null&&z.content?(a.openBlock(),a.createElementBlock("div",nh,[a.createVNode(pl.ssInput,{modelValue:k.name,"onUpdate:modelValue":ze=>k.name=ze,onClick:_[0]||(_[0]=a.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):a.createCommentVNode("",!0),(g=(x=b.value)==null?void 0:x.find(ze=>ze.id===T))!=null&&g.content?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:2,onClick:a.withModifiers(ze=>h(T),["stop"]),class:"icon-content"},[a.createVNode(H,{name:"Edit",style:{width:"16px",height:"16px"}})],8,th))]),a.createElementVNode("div",oh,[(q=(F=b.value)==null?void 0:F.find(ze=>ze.id===T))!=null&&q.content?(a.openBlock(),a.createElementBlock("div",ih,[a.createVNode(H,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:a.withModifiers(ze=>v(T),["stop"])},null,8,["onClick"]),a.createVNode(H,{name:"Save",onClick:a.withModifiers(ze=>y(T,k.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):a.createCommentVNode("",!0),(be=(G=b.value)==null?void 0:G.find(ze=>ze.id===T))!=null&&be.content?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:1,onClick:a.withModifiers(ze=>D(T),["stop"]),class:"icon-content"},[a.createVNode(H,{name:"Delete",style:{width:"16px",height:"16px"}})],8,sh))])])]}),content:a.withCtx(({item:k,index:T})=>{var J,S;return[a.createElementVNode("div",ch,[a.createTextVNode(a.toDisplayString(c(k.comp+"Operate"))+" ",1),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c(k.comp+"Operate")),{itemContents:k==null?void 0:k.compData,originalItemContents:(S=(J=u.value)==null?void 0:J.find((V,z)=>z===T))==null?void 0:S.compData,onChange:V=>w(V,k,T)},null,40,["itemContents","originalItemContents","onChange"]))])]}),_:1},8,["collapseContents"])])])}}},dh=ql._export_sfc(uh,[["__scopeId","data-v-a46a44b9"]]),ph={key:0,class:"show-content"},fh={style:{display:"flex"}},hh={__name:"modelShow",setup(l){const r=rt(I.pinia),{itemData:n}=I.storeToRefs(r),t=a.ref([]);a.watch(()=>n.value,()=>{var u;!n.value||((u=n.value)==null?void 0:u.length)===0?t.value=[]:t.value=I.cloneDeep(n.value)},{deep:!0,immediate:!0});const s=u=>St(u);return(u,b)=>{var h;return((h=t.value)==null?void 0:h.length)>0?(a.openBlock(),a.createElementBlock("div",ph,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.value,(v,y)=>(a.openBlock(),a.createElementBlock("div",{class:"item-content",key:y},[a.createElementVNode("div",fh,a.toDisplayString(v.name),1),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s(v.comp)),{itemData:v==null?void 0:v.compData,childItemData:v==null?void 0:v.itemChildData,key:y},null,8,["itemData","childItemData"]))]))),128))])):a.createCommentVNode("",!0)}}},vh=ql._export_sfc(hh,[["__scopeId","data-v-3f3e863e"]]),mh={class:"tabs-header"},yh={class:"tabs-list"},gh={class:"tab-name"},bh={class:"tab-actions"},kh=["onClick"],xh=["onClick"],_h=["onClick"],wh={class:"model-operate"},Ch={class:"model-select",style:{display:"unset"}},Eh={class:"existing-components"},Sh={class:"component-list"},Dh=["onClick"],Bh={class:"component-info"},Nh={class:"component-type"},Th={class:"component-name"},Ah={class:"model-fill"},zh={__name:"operate",props:{itemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:r}){const n=l,t=r,s=a.ref([]),u=a.ref(!1),b=a.ref(""),h=a.ref({title:""}),v=a.ref(-1),y=a.ref(!1),c=a.ref(-1),w=a.ref(new WeakMap),D=a.ref(null),A=rt(I.pinia),{itemData:_}=I.storeToRefs(A),H=()=>{b.value="新增标签页",h.value.title="",v.value=-1,u.value=!0},k=te=>{b.value="修改标签页",h.value.title=s.value[te].title,v.value=te,u.value=!0},T=te=>{const B=V(te);w.value.delete(B),s.value.splice(te,1),Sa()},J=()=>{if(h.value.title.trim()){if(v.value===-1){const te={title:h.value.title,value:h.value.title,label:h.value.title,children:[],id:S()};s.value.push(te)}else s.value[v.value].title=h.value.title,s.value[v.value].value=h.value.title,s.value[v.value].label=h.value.title;u.value=!1,Sa()}},S=()=>`tab_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,V=te=>{const B=s.value[te];return B.id||(B.id=S()),B.id},z=te=>{var ye;c.value=te;const B=V(te);D.value=I.cloneDeep(_.value);let le=w.value.get(B);!le&&((ye=s.value[te].children)==null?void 0:ye.length)>0&&(le=q(s.value[te].children)),le?A.setItemData(I.cloneDeep(le)):A.setItemData([]),y.value=!0},x=a.computed(()=>{const te=I.useModelComp(I.pinia),B=I.storeToRefs(te).itemData.value;return console.log("可用组件数据",B),!B||!Array.isArray(B)?[]:B.filter(le=>{var ye;if(le.comp==="Tabs"&&c.value>=0){const se=V(c.value);if((ye=le.compData)==null?void 0:ye.some(ia=>{var xa;return ia.key==="stepList"&&((xa=ia.contents)==null?void 0:xa.some(Ha=>Ha.id===se))}))return!1}return!0})}),g=te=>({Table:"表格",Form:"表单",Tabs:"标签页",Chart:"图表",Card:"卡片"})[te]||te,F=te=>{var B;try{const le=I.cloneDeep(te);le.id=Date.now()+Math.random(),le.comp==="Tabs"&&((B=le.compData)==null||B.forEach(se=>{se.key==="stepList"&&se.contents&&se.contents.forEach(Ne=>{Ne.id=S()})}));const ye=I.cloneDeep(_.value);ye.push(le),A.setItemData(ye)}catch(le){console.error("添加组件失败:",le)}},q=te=>te.map(B=>{var le;switch(B.type){case"form":return{comp:"Form",name:B.value||"表单",compData:G(B.content)};case"table":return{comp:"Table",name:B.value||"表格",compData:be(B.content)};default:return{comp:"Unknown",name:B.value||"",compData:((le=B.content)==null?void 0:le.originalData)||[]}}}),G=te=>{if(!te)return[];const B=[];return te.rowContents&&B.push({key:"formContent",contents:te.rowContents}),te.buttonValue&&B.push({key:"formButton",contents:te.buttonValue}),typeof te.isEnableWrap<"u"&&B.push({key:"enableWrap",contents:te.isEnableWrap}),B},be=te=>[],ze=()=>{if(c.value>=0&&c.value<s.value.length){const te=V(c.value);w.value.set(te,I.cloneDeep(_.value)),s.value[c.value].children=ke(_.value),console.log("保存后的数据",ke(_.value))}y.value=!1,c.value=-1,D.value=null,Sa()},De=()=>{D.value&&A.setItemData(I.cloneDeep(D.value)),y.value=!1,c.value=-1,D.value=null},ne=()=>{y.value&&De()},ke=te=>{if(!Array.isArray(te))throw new Error("sourceData must be an array");return te.map((B,le)=>{if(!B||typeof B!="object")return B;const{comp:ye,name:se,compData:Ne}=B;switch(ye){case"Form":return{type:"form",content:X(Ne||[]),value:"表单"};case"Table":return{type:"table",content:pe(Ne||[]),value:"表格"};default:return{type:"xxx",content:Ke(Ne||[]),value:""}}})},X=te=>{const B={formRules:{},rowContents:[],buttonValue:[],rowValues:[],isEnableWrap:!0,isRowFlex:!0,isButtonRow:!0,isEdit:!0,isStartJustify:!0},le={formContent:"rowContents",enableWrap:"isEnableWrap",formButton:"buttonValue"};return te.forEach((ye,se)=>{if(!ye||typeof ye!="object"){console.warn(`Invalid config at index ${se}:`,ye);return}const{key:Ne,contents:ia}=ye,xa=le[Ne];if(!xa){console.warn(`Unknown Form config key: ${Ne}`);return}Ne==="enableWrap"?B[xa]=!!ia:B[xa]=Array.isArray(ia)?ia:[]}),B},pe=te=>{const B={columns:[],tableData:[],extraButton:[],rowButton:[],currentPage:0,total:0,pageSize:0,isShowPagination:!0,isShowEdit:!0,isMoveColumn:!0,isShowDelete:!0},le={header:"columns",tableContents:"tableData"};return te.forEach((ye,se)=>{if(!ye||typeof ye!="object"){console.warn(`Invalid config at index ${se}:`,ye);return}const{key:Ne,contents:ia}=ye,xa=le[Ne];if(!xa){console.warn(`Unknown Table config key: ${Ne}`);return}B[xa]=Array.isArray(ia)?ia:[]}),B},Ke=te=>(console.log("Default conversion logic - to be implemented"),{originalData:te,processed:!1,componentType:"unknown"}),Sa=()=>{const te=[{key:"stepList",contents:s.value}];t("change",te)};return a.watch(()=>n.itemContents,te=>{if(te&&te.length>0){const B=te.find(le=>le.key==="stepList");B&&B.contents&&(s.value=B.contents.map(le=>({title:le.title||"",value:le.value||le.title||"",label:le.label||le.title||"",children:le.children||[],id:le.id||S()})))}},{immediate:!0,deep:!0}),(te,B)=>{const le=a.resolveComponent("svg-icon"),ye=a.resolveComponent("el-input"),se=a.resolveComponent("el-form-item"),Ne=a.resolveComponent("el-form");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",mh,[B[6]||(B[6]=a.createElementVNode("h4",null,"标签页管理",-1)),a.createElementVNode("button",{onClick:H},[a.createVNode(le,{name:"Plus",style:{width:"14px",height:"14px","margin-right":"4px"}}),B[5]||(B[5]=a.createTextVNode(" 新增标签页 "))])]),a.createElementVNode("div",yh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,(ia,xa)=>(a.openBlock(),a.createElementBlock("div",{class:"tab-item",key:xa},[a.createElementVNode("span",gh,a.toDisplayString(ia.title),1),a.createElementVNode("div",bh,[a.createElementVNode("button",{onClick:Ha=>k(xa)},"修改标题",8,kh),a.createElementVNode("button",{onClick:Ha=>z(xa)},"布局调整",8,xh),a.createElementVNode("button",{onClick:Ha=>T(xa)},"删除",8,_h)])]))),128))]),a.createVNode(vr.ssDialog,{modelValue:u.value,"onUpdate:modelValue":B[2]||(B[2]=ia=>u.value=ia),title:b.value,onBeforeDestroy:B[3]||(B[3]=ia=>u.value=!1)},{footer:a.withCtx(()=>[a.createElementVNode("button",{onClick:B[1]||(B[1]=ia=>u.value=!1)},"取消"),a.createElementVNode("button",{type:"primary",onClick:J},"确定")]),default:a.withCtx(()=>[a.createVNode(Ne,{model:h.value,"label-width":"80px"},{default:a.withCtx(()=>[a.createVNode(se,{label:"标签名称",required:""},{default:a.withCtx(()=>[a.createVNode(ye,{modelValue:h.value.title,"onUpdate:modelValue":B[0]||(B[0]=ia=>h.value.title=ia),placeholder:"请输入标签页名称"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),a.createVNode(vr.ssDialog,{modelValue:y.value,"onUpdate:modelValue":B[4]||(B[4]=ia=>y.value=ia),title:"布局调整",fullScreen:"",onBeforeDestroy:ne},{footer:a.withCtx(()=>[a.createElementVNode("button",{onClick:De},"取消"),a.createElementVNode("button",{onClick:ze},"确定")]),default:a.withCtx(()=>[a.createElementVNode("div",wh,[a.createElementVNode("div",Ch,[a.createVNode(Q2),a.createElementVNode("div",Eh,[B[8]||(B[8]=a.createElementVNode("h5",null,"添加已有组件",-1)),a.createElementVNode("div",Sh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(x.value,ia=>(a.openBlock(),a.createElementBlock("div",{key:ia.id,class:"component-item",onClick:xa=>F(ia)},[a.createElementVNode("div",Bh,[a.createElementVNode("span",Nh,a.toDisplayString(g(ia.comp)),1),a.createElementVNode("span",Th,a.toDisplayString(ia.name),1)]),B[7]||(B[7]=a.createElementVNode("button",{class:"add-btn"},"添加",-1))],8,Dh))),128))])])]),(a.openBlock(),a.createElementBlock("div",{class:"model-show",key:te.innerWidth},[a.createVNode(vh)])),a.createElementVNode("div",Ah,[a.createVNode(dh)])])]),_:1},8,["modelValue"])])}}},Mh=ql._export_sfc(zh,[["__scopeId","data-v-9096ed0d"]]);function Oh(){return{title:{text:"",left:"center",top:10,textStyle:{color:"#333",fontSize:18,fontWeight:"bold"}},tooltip:{trigger:"axis"},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",axisLabel:{interval:0},data:[]},yAxis:{type:"value"},series:[]}}function Ih(l){return{type:"line",...l}}function Lh(){return{title:{text:"",left:"center",top:10,textStyle:{color:"#333",fontSize:18,fontWeight:"bold"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:[{type:"value"}],series:[]}}function Vh(l){return{type:"bar",barWidth:"60%",...l}}function $h(){return{title:{text:"",left:"center"},tooltip:{trigger:"item"},series:[]}}function Rh(l){return{type:"pie",radius:"50%",emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},...l}}const Tn={line:{initBaseoptions:Oh,initSeries:Ih},bar:{initBaseoptions:Lh,initSeries:Vh},pie:{initBaseoptions:$h,initSeries:Rh}},ms=I.useMenuState(I.pinia),Ec=(l,r)=>{var c;const n=[],t=[],{group:s,nameCol:u,valueCol:b}=r||{},h=l==null?void 0:l.find(w=>{const{name:D}=w;return D===s});if(!h)return{names:n,values:t};const v=(c=h==null?void 0:h.compData)==null?void 0:c.find(w=>{const{key:D}=w;return D==="tableContents"});return((v==null?void 0:v.contents)||[]).forEach(w=>{const D=w==null?void 0:w[0];let A=!1;ll.isObject(D)&&(D!=null&&D.id)&&(A=!0);let _=u,H=b;A&&(_=_+1,H=H+1);const k=w==null?void 0:w[_],T=w==null?void 0:w[H];n.push(k),t.push(T)}),{names:n,values:t}},Ph=async l=>{const{menu:r,mainKey:n,detailGroup:t,detailNameCol:s,detailValueCol:u,isSelfDetail:b}=l||{};let h=null;const v=sessionStorage.getItem("systemKey");if(b&&ms.activeMenuPath&&(h=await na.getItemData(`${ms.activeMenuPath}`,v,"")),!b){const y=r==null?void 0:r.join("/");h=await na.getItemData(`${y}^${n}`,v,"")}return Ec(h,{group:t,nameCol:s,valueCol:u})},Fh=async l=>{const{menu:r,group:n,nameCol:t,valueCol:s}=l||{},u=r==null?void 0:r.join("/"),b=sessionStorage.getItem("systemKey"),h=await na.getItemData(u,b,"");return Ec(h,{group:n,nameCol:t,valueCol:s})},Ci=async(l,r)=>{const n={names:[],values:[]},{menu:t,group:s,nameCol:u,valueCol:b}=l||{};if(!t.length||!s)return n;const{mainKey:h,group:v,nameCol:y,valueCol:c,isSelfDetail:w}=r||{};return h&&v&&pl.isNumber(y)&&pl.isNumber(c)?await Ph({menu:t,mainKey:h,detailGroup:v,detailNameCol:y,detailValueCol:c,isSelfDetail:w}):pl.isNumber(u)&&pl.isNumber(b)?await Fh({menu:t,group:s,nameCol:u,valueCol:b}):n},jh=async({chartBaseConfig:l,chartDataConfig:r,chartDetailConfig:n})=>{const{type:t,title:s}=l||{},u=Tn==null?void 0:Tn[t];if(!u)return;const{initBaseoptions:b,initSeries:h}=u,v=b();v.title.text=s??"";const{names:y,values:c}=await Ci(r,n);if(!y||!c)return v;v.xAxis.data=y;const w=h({data:c});return v.series.push(w),v},Hh=async({chartBaseConfig:l,chartDataConfig:r,chartDetailConfig:n})=>{const{type:t,title:s}=l||{},u=Tn==null?void 0:Tn[t];if(!u)return;const{initBaseoptions:b,initSeries:h}=u,v=b();v.title.text=s??"";const{names:y,values:c}=await Ci(r,n);if(!y||!c)return v;v.xAxis.data=y;const w=h({data:c});return v.series.push(w),v},Uh=async({chartBaseConfig:l,chartDataConfig:r,chartDetailConfig:n})=>{const{type:t,title:s}=l||{},u=Tn==null?void 0:Tn[t];if(!u)return;const{initBaseoptions:b,initSeries:h}=u,v=b();v.title.text=s??"";const{names:y,values:c}=await Ci(r,n);if(!y||!c)return v;const w=[];for(let A=0;A<y.length;A++){const _=y[A],H=c[A];w.push({name:_,value:H})}const D=h({data:w});return v.series.push(D),v},qh=async(l=[])=>{var b,h,v;const r=((b=l==null?void 0:l.find(y=>y.key==="chartBaseConfig"))==null?void 0:b.contents)??{},n=((h=l==null?void 0:l.find(y=>y.key==="chartDataConfig"))==null?void 0:h.contents)??{},t=((v=l==null?void 0:l.find(y=>y.key==="chartDetailConfig"))==null?void 0:v.contents)??{},{type:s}=r;let u={};return s==="line"&&(u=await jh({chartBaseConfig:r,chartDataConfig:n,chartDetailConfig:t})),s==="bar"&&(u=await Hh({chartBaseConfig:r,chartDataConfig:n,chartDetailConfig:t})),s==="pie"&&(u=await Uh({chartBaseConfig:r,chartDataConfig:n,chartDetailConfig:t})),u},Kh=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}},height:{type:String,default:"300px"}},setup(l){const r=l,n=a.ref({});a.onMounted(async()=>{const s=r==null?void 0:r.itemData;n.value=await qh(s)});const t=a.computed(()=>(r==null?void 0:r.height)||"300px");return(s,u)=>(a.openBlock(),a.createElementBlock("div",{class:"eCharts",style:a.normalizeStyle({height:t.value})},[a.createVNode(bu.ssChart,{optionContents:n.value},null,8,["optionContents"])],4))}}),Wh=ql._export_sfc(Kh,[["__scopeId","data-v-d4c081e8"]]),Yh={class:"chart-module layout"},Gh={class:"chart-module content"},Jh={class:"chart-module content"},Xh={class:"form-content"},Zh={class:"dialog-footer"},Qh={class:"form-content"},e4={class:"dialog-footer"},a4={class:"form-content"},l4={class:"dialog-footer"},r4=a.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:r}){const n=l,t=r,s=a.reactive({visible:!1,width:"840",title:"基础配置"}),u=a.ref([]),b=()=>[{label:"类型",prop:"type",type:"select",contents:[{label:"柱状图",value:"bar"},{label:"饼图",value:"pie"},{label:"折线图",value:"line"}],value:""},{label:"标题",prop:"title",type:"input",value:""}],h=a.ref({}),v=()=>{var He;u.value=b(),(He=u.value)==null||He.forEach(Ae=>{var Ge;const Re=Ae==null?void 0:Ae.prop;Ae.value=(Ge=h==null?void 0:h.value)==null?void 0:Ge[Re]}),s.visible=!0},y=He=>{h.value=He},c=()=>{var He;s.visible=!1,t("change",(He=Pe())==null?void 0:He.compData)},w=a.reactive({visible:!1,width:"840",title:"数据配置"}),D=a.ref([]),A=()=>[{label:"菜单选项",prop:"menu",type:"cascader",contents:[]},{label:"组信息选项",prop:"group",type:"select",contents:[]},{label:"名称列",prop:"nameCol",type:"select",contents:[]},{label:"取值列",prop:"valueCol",type:"select",contents:[]}],_=a.ref({}),H=()=>{const He=D.value,Ae=I.cloneDeep(He);return Ae==null||Ae.forEach(Re=>{var Ka;const Ge=Re==null?void 0:Re.prop;Re.value=(Ka=_.value)==null?void 0:Ka[Ge]}),Ae},k=He=>{var Re;_.value=He;const Ae=H();D.value=Ae,t("change",(Re=Pe())==null?void 0:Re.compData)},T=async()=>{const He=await na.getMenusContent(),Ae=H();Ae==null||Ae.forEach(Re=>{(Re==null?void 0:Re.prop)==="menu"&&(Re.contents=He)}),D.value=Ae,w.visible=!0,await ia(_.value.menu),await ee(_.value.group)},J=a.reactive({visible:!1,width:"840",title:"详情页配置"}),S=a.ref([]),V=()=>[{label:"详情页主键",prop:"mainKey",type:"select",contents:[]},{label:"使用当前详情页内容",prop:"isSelfDetail",type:"switch"},{label:"组信息选项",prop:"group",type:"select",contents:[]},{label:"名称列",prop:"nameCol",type:"select",contents:[]},{label:"取值列",prop:"valueCol",type:"select",contents:[]}],z=a.ref({}),x=()=>{const He=S.value,Ae=I.cloneDeep(He);return Ae==null||Ae.forEach(Re=>{var Ka;const Ge=Re==null?void 0:Re.prop;Re.value=(Ka=z.value)==null?void 0:Ka[Ge]}),Ae},g=He=>{var Re;z.value=He;const Ae=x();S.value=Ae,t("change",(Re=Pe())==null?void 0:Re.compData)},F=async()=>{await ne();const He=I.cloneDeep(q.value),Ae=x();Ae==null||Ae.forEach(Re=>{var Ka;const Ge=Re==null?void 0:Re.prop;Re.value=(Ka=z==null?void 0:z.value)==null?void 0:Ka[Ge],Ge==="mainKey"&&(Re.contents=He)}),S.value=Ae,J.visible=!0},q=a.ref([]),G=a.ref([]),be=a.ref({}),ze=a.ref({}),De=()=>{const{compData:He}=ye.value||{},Ae=He==null?void 0:He.find(Y=>{const{key:oe}=Y;return oe==="header"}),Re=(Ae==null?void 0:Ae.contents)||[],Ge=Re==null?void 0:Re.filter((Y,oe)=>{const{label:ie}=Y;return ie!=="操作"}),Ka=Ge==null?void 0:Ge.findIndex((Y,oe)=>{const{isMainKey:ie}=Y;return ie});if(Ka<0)return[];const Ia=He==null?void 0:He.find(Y=>{const{key:oe}=Y;return oe==="tableContents"}),R=(Ia==null?void 0:Ia.contents)||[];return R==null?void 0:R.map(Y=>{const oe=Y==null?void 0:Y[0];let ie=Ka;ll.isObject(oe)&&(oe!=null&&oe.id)&&(ie=ie+1);const fa=Y==null?void 0:Y[ie];return{label:fa,value:fa}})},ne=async()=>{const He=await De();q.value=He},ke=async He=>{const Ae=sessionStorage.getItem("systemKey");return await na.getItemData(He,Ae,"")},X=async He=>{const Ae=He;G.value=Ae==null?void 0:Ae.map(Re=>{const{name:Ge}=Re;return be.value[Ge]=Re,{label:Ge,value:Ge}})},pe=He=>{const{comp:Ae,compData:Re}=ze.value||{};if(Ae==="Table"){let Ge=x();Ge=Ge.filter(Ka=>{const{prop:Ia}=Ka;return Ia!=="formItems"}),xa(Ge,Re),S.value=Ge}},Ke=async()=>{var Re,Ge;const He=(Re=z==null?void 0:z.value)==null?void 0:Re.mainKey,Ae=(Ge=_==null?void 0:_.value)==null?void 0:Ge.menu;if(He){const Ia=`${Ae==null?void 0:Ae.join("/")}^${He}`,R=await ke(Ia);await X(R);const P=x();P==null||P.forEach(Y=>{(Y==null?void 0:Y.prop)==="group"&&(Y.contents=G.value)}),S.value=P}};a.watch(()=>{var He;return(He=z==null?void 0:z.value)==null?void 0:He.mainKey},async(He,Ae)=>{He!=Ae&&He&&await Ke()});const Sa=async He=>{const Ae=be.value[He];ze.value=Ae,await pe()};a.watch(()=>{var He;return(He=z==null?void 0:z.value)==null?void 0:He.group},async(He,Ae)=>{He!=Ae&&He&&Sa(He)});const te=async()=>{var Ae;await Ke();const He=(Ae=z.value)==null?void 0:Ae.group;await Sa(He)},B=a.ref([]),le=a.ref({}),ye=a.ref({}),se=async He=>{const Ae=He==null?void 0:He.join("/"),Re=sessionStorage.getItem("systemKey");return await na.getItemData(Ae,Re,"")},Ne=async He=>{const Ae=await se(He);B.value=Ae==null?void 0:Ae.map(Re=>{const{name:Ge}=Re;return le.value[Ge]=Re,{label:Ge,value:Ge}})},ia=async(He,Ae)=>{await Ne(He);const Re=H();Re==null||Re.forEach(Ge=>{(Ge==null?void 0:Ge.prop)==="group"&&(Ge.contents=B.value)}),D.value=Re};a.watch(()=>{var He;return(He=_==null?void 0:_.value)==null?void 0:He.menu},async(He,Ae)=>{const Re=He==null?void 0:He.join("/"),Ge=Ae==null?void 0:Ae.join("/");Re!=Ge&&await ia(He)});const xa=(He,Ae)=>{const Re=Ae==null?void 0:Ae.find(R=>{const{key:P}=R;return P==="header"}),Ge=(Re==null?void 0:Re.contents)||[],Ka=Ge==null?void 0:Ge.filter((R,P)=>{const{label:Y}=R;return Y!=="操作"}),Ia=Ka==null?void 0:Ka.map((R,P)=>{const{label:Y}=R;return{label:Y,value:P}});He==null||He.forEach(R=>{const P=R==null?void 0:R.prop;(P==="nameCol"||P==="valueCol")&&(R.contents=Ia)})},Ha=He=>{const{comp:Ae,compData:Re}=ye.value||{};if(Ae==="Table"){_.value.formItems=[];let Ge=H();Ge=Ge.filter(Ka=>{const{prop:Ia}=Ka;return Ia!=="formItems"}),xa(Ge,Re),D.value=Ge}},ee=async He=>{const Ae=le.value[He];ye.value=Ae,await Ha()};a.watch(()=>{var He;return(He=_==null?void 0:_.value)==null?void 0:He.group},async(He,Ae)=>{He!=Ae&&ee(He)});const ea=async()=>{var Re,Ge;const He=(Re=_.value)==null?void 0:Re.menu;await ia(He);const Ae=(Ge=_.value)==null?void 0:Ge.group;await ee(Ae)},Pe=()=>({comp:"chart",compData:[{key:"chartBaseConfig",contents:h.value},{key:"chartDataConfig",contents:_.value},{key:"chartDetailConfig",contents:z.value}]}),ga=()=>{s.visible=!1,w.visible=!1,J.visible=!1};return a.onMounted(async()=>{var Ae,Re,Ge;D.value=A(),S.value=V();const He=n==null?void 0:n.itemContents;h.value=((Ae=He==null?void 0:He.find(Ka=>Ka.key==="chartBaseConfig"))==null?void 0:Ae.contents)??{},_.value=((Re=He==null?void 0:He.find(Ka=>Ka.key==="chartDataConfig"))==null?void 0:Re.contents)??{},await ea(),z.value=((Ge=He==null?void 0:He.find(Ka=>Ka.key==="chartDetailConfig"))==null?void 0:Ge.contents)??{},await te()}),(He,Ae)=>{const Re=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",Yh,[Ae[4]||(Ae[4]=a.createElementVNode("div",{class:"module-title"},"基础配置",-1)),a.createVNode(Re,{id:"themeButton",onClick:Ae[0]||(Ae[0]=Ge=>v())},{default:a.withCtx(()=>Ae[3]||(Ae[3]=[a.createTextVNode(" 修改 ")])),_:1,__:[3]})]),a.createElementVNode("div",Gh,[Ae[6]||(Ae[6]=a.createElementVNode("h4",{class:"module-title"},"数据配置",-1)),a.createVNode(Re,{id:"themeButton",onClick:Ae[1]||(Ae[1]=Ge=>T())},{default:a.withCtx(()=>Ae[5]||(Ae[5]=[a.createTextVNode(" 修改 ")])),_:1,__:[5]})]),a.createElementVNode("div",Jh,[Ae[8]||(Ae[8]=a.createElementVNode("h4",{class:"module-title"},"详情数据配置",-1)),a.createVNode(Re,{id:"themeButton",onClick:Ae[2]||(Ae[2]=Ge=>F())},{default:a.withCtx(()=>Ae[7]||(Ae[7]=[a.createTextVNode(" 修改 ")])),_:1,__:[7]})])]),a.createVNode(vr.ssDialog,{visible:s.visible,title:s.title,onBeforeDestroy:ga,width:s.width},{default:a.withCtx(()=>[a.createElementVNode("div",Xh,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:u.value,key:u.value,isEnableWrap:!0,onChange:y},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",Zh,[a.createVNode(Re,{class:"cancel-button button",onClick:ga,id:"themeBorderButton"},{default:a.withCtx(()=>Ae[9]||(Ae[9]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[9]}),a.createVNode(Re,{class:"ok-button button",onClick:c,id:"themeButton"},{default:a.withCtx(()=>Ae[10]||(Ae[10]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[10]})])]),_:1},8,["visible","title","width"]),a.createVNode(vr.ssDialog,{visible:w.visible,title:w.title,onBeforeDestroy:ga,width:w.width},{default:a.withCtx(()=>[a.createElementVNode("div",Qh,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:D.value,key:D.value,isEnableWrap:!0,onChange:k},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",e4,[a.createVNode(Re,{class:"cancel-button button",onClick:ga,id:"themeBorderButton"},{default:a.withCtx(()=>Ae[11]||(Ae[11]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[11]}),a.createVNode(Re,{class:"ok-button button",onClick:ga,id:"themeButton"},{default:a.withCtx(()=>Ae[12]||(Ae[12]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible","title","width"]),a.createVNode(vr.ssDialog,{visible:J.visible,title:J.title,onBeforeDestroy:ga,width:J.width},{default:a.withCtx(()=>[a.createElementVNode("div",a4,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:S.value,key:S.value,isEnableWrap:!0,onChange:g},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",l4,[a.createVNode(Re,{class:"cancel-button button",onClick:ga,id:"themeBorderButton"},{default:a.withCtx(()=>Ae[13]||(Ae[13]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[13]}),a.createVNode(Re,{class:"ok-button button",onClick:ga,id:"themeButton"},{default:a.withCtx(()=>Ae[14]||(Ae[14]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible","title","width"])],64)}}}),n4=ql._export_sfc(r4,[["__scopeId","data-v-fe119645"]]),t4={class:"layout"},o4=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["rowClick"],setup(l,{emit:r}){const n=r,t=l;a.onMounted(async()=>{});const s=a.computed(()=>I.cloneDeep(t==null?void 0:t.itemData)||[]),u=a.computed(()=>{var c;const y=(c=s==null?void 0:s.value)==null?void 0:c.find(w=>{const{key:D}=w;return D==="baseConfig"});return y==null?void 0:y.contents}),b=a.computed(()=>{var c;const y=(c=s==null?void 0:s.value)==null?void 0:c.find(w=>{const{key:D}=w;return D==="children"});return y==null?void 0:y.contents}),h=a.computed(()=>{let y=I.cloneDeep(b.value)||[];const c=y.length;let w=0;const D=[];if(y=y.map(A=>{const _=A.span;return _?(A.span=Number(_),w=w+A.span):D.push(A),A}),w<24){const A=Math.floor((24-w)/c);D.forEach(_=>{_.span=A})}return y}),v=y=>{n("rowClick",y)};return(y,c)=>{var A;const w=a.resolveComponent("el-col"),D=a.resolveComponent("el-row");return a.openBlock(),a.createElementBlock("div",t4,[a.createVNode(D,{style:a.normalizeStyle({height:(A=u.value)==null?void 0:A.height})},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.value,(_,H)=>(a.openBlock(),a.createBlock(w,{span:_==null?void 0:_.span},{default:a.withCtx(()=>{var k;return[a.unref(Et)?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(jt)(_.comp)),{key:a.unref($n),compName:_.name,index:(_==null?void 0:_.id)??H,height:(k=u.value)==null?void 0:k.height,itemData:_==null?void 0:_.compData,childItemData:_==null?void 0:_.itemChildData,onChange:a.unref(Eo),onContentChange:a.unref(So),onPageChange:a.unref(Do),onRowClick:v},null,40,["compName","index","height","itemData","childItemData","onChange","onContentChange","onPageChange"])):a.createCommentVNode("",!0)]}),_:2},1032,["span"]))),256))]),_:1},8,["style"])])}}}),i4=ql._export_sfc(o4,[["__scopeId","data-v-ab9a36ed"]]),s4={class:"layout-operate"},c4={class:"layout-module"},u4={class:"collapse-title-item"},d4={class:"collapse-title"},p4={class:"icon-content"},f4=["onClick"],h4={class:"comp-child"},v4=a.defineComponent({__name:"operate",props:{itemContents:{type:Object,default:()=>{}},originalItemContents:{type:Array,default:()=>[]},itemChildData:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:r}){const n=l,t=r;a.onMounted(()=>{H()});const s=a.ref({}),u=a.ref({}),b=a.ref([]),h=z=>[{label:"高度",prop:"height",type:"input",value:z==null?void 0:z.height}],v=z=>{u.value=z,t("change",V(),!0)},y=a.ref([]),c=a.ref([]),w=z=>[{label:"占比",prop:"span",type:"input",value:z==null?void 0:z.span}],D=a.computed(()=>{const z=n==null?void 0:n.itemContents;return I.cloneDeep(z)}),A=a.computed(()=>{const z=D==null?void 0:D.value,x=z==null?void 0:z.find(g=>{const{key:F}=g;return F==="baseConfig"});return x==null?void 0:x.contents}),_=a.computed(()=>{const z=D==null?void 0:D.value,x=z==null?void 0:z.find(g=>{const{key:F}=g;return F==="children"});return x==null?void 0:x.contents}),H=()=>{var z;s.value=D.value||{},y.value=(_==null?void 0:_.value)||[],b.value=h(),b.value=(z=b.value)==null?void 0:z.map(x=>{var F;const{prop:g}=x;return x.value=(F=A.value)==null?void 0:F[g],x})};a.watch(()=>{var z;return(z=_==null?void 0:_.value)==null?void 0:z.length},()=>{var z;y.value=(_==null?void 0:_.value)||[],c.value=(z=_.value)==null?void 0:z.map(x=>w(x))},{immediate:!0});const k=(z,x)=>{const g=I.cloneDeep(_==null?void 0:_.value);g[x].span=z.span,y.value=g,t("change",V(),!0)},T=z=>St(z),J=(z,x,g)=>{if(!z)return;const F=I.cloneDeep(_==null?void 0:_.value);F[g]&&(F[g].compData=z,y.value=F,t("change",V(),!0))},S=z=>{I.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{let x=I.cloneDeep(_==null?void 0:_.value);x=x==null?void 0:x.filter((g,F)=>z!==F),y.value=x,t("change",V(),!0),ll.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},V=()=>({compData:[{key:"baseConfig",contents:u.value},{key:"children",contents:y==null?void 0:y.value}]});return(z,x)=>{const g=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",s4,[a.createElementVNode("div",c4,[x[1]||(x[1]=a.createElementVNode("div",{class:"module-title"},"基础配置",-1)),a.createElementVNode("div",null,[a.createVNode(pl.ssForm,{rowContents:b.value,isEnableWrap:!0,onChange:x[0]||(x[0]=F=>v(F))},null,8,["rowContents"])])]),a.createVNode(Us.default,{class:"collapse-content",collapseContents:_.value},{title:a.withCtx(({item:F,index:q})=>[a.createElementVNode("div",u4,[a.createElementVNode("div",d4,a.toDisplayString(F.name),1),a.createElementVNode("div",p4,[a.createElementVNode("div",{onClick:a.withModifiers(G=>S(q),["stop"]),class:"icon-content"},[a.createVNode(g,{name:"Delete",style:{width:"16px",height:"16px"}})],8,f4)])])]),content:a.withCtx(({item:F,index:q})=>[a.createElementVNode("div",h4,[a.createElementVNode("div",null,[(a.openBlock(),a.createBlock(pl.ssForm,{rowContents:c.value[q],key:q,isEnableWrap:!0,onChange:G=>k(G,q)},null,8,["rowContents","onChange"]))]),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(T(F.comp+"Operate")),{itemContents:F==null?void 0:F.compData,originalItemContents:F.compData,onChange:G=>J(G,F,q)},null,40,["itemContents","originalItemContents","onChange"]))])]),_:1},8,["collapseContents"])])}}}),m4=ql._export_sfc(v4,[["__scopeId","data-v-ba05456e"]]),y4=typeof window<"u";var ys;y4&&((ys=window==null?void 0:window.navigator)!=null&&ys.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function rn(l){return l==null}function Sc(){}const g4=Object.freeze({aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"});Object.freeze(new Set(Object.keys(g4)));function b4(){const l=new Map;return{on(r,n){const t=l.get(r);t!=null&&t.add(n)||l.set(r,new Set([n]))},off(r,n){const t=l.get(r);t&&t.delete(n)},clear(r){const n=l.get(r);n&&n.clear()},clearAll(){l.clear()},emit(r,...n){const t=l.get(r);t&&t.forEach(s=>{s(...n)})}}}function gs(l,r=16){if(typeof l!="function")return Sc;const n=(...u)=>{l(...u)};if(r<=0)return Dc(n);let t=0,s;return function(...u){const b=Date.now(),h=b-t;clearTimeout(s),h>=r?(t=b,n(...u)):s=setTimeout(()=>{t=Date.now(),n(...u)},Math.max(0,r-h))}}function k4(l,r=100){if(typeof l!="function")return Sc;const n=(...s)=>{l(...s)};if(r<=0)return Dc(n);let t;return function(...s){clearTimeout(t),t=setTimeout(()=>{n(...s)},r)}}function Dc(l){if(typeof l!="function")return l;let r=!1,n,t;return function(...s){return n=s,r||(r=!0,t=Promise.resolve().then(()=>(r=!1,t=void 0,l(...n)))),t}}const $t=new Set,Bc=new WeakMap;function x4(){$t.forEach(l=>{l(...Bc.get(l))}),$t.clear()}function jr(l,...r){if(typeof l!="function")return l;Bc.set(l,r),!$t.has(l)&&($t.add(l),$t.size===1&&Promise.resolve().then(x4))}const Nc=Symbol("LAYOUT_KEY"),Tc=Symbol("EMITTER_KEY");function _4(l){let r=0,n;for(let t=0,s=l.length;t<s;t++)n=l[t].y+l[t].h,n>r&&(r=n);return r}function gi(l){const r=Array(l.length);for(let n=0,t=l.length;n<t;n++)r[n]=w4(l[n]);return r}function w4(l){return{...l}}function Ac(l,r){return!(l===r||l.x+l.w<=r.x||l.x>=r.x+r.w||l.y+l.h<=r.y||l.y>=r.y+r.h)}function bt(l,r,n){const t=Mc(l),s=Oc(l),u=Array(l.length);for(let b=0,h=s.length;b<h;b++){let v=s[b];v.static||(v=C4(t,v,r,n),t.push(v)),u[l.findIndex(y=>y.i===v.i)]=v,v.moved=!1}return u}function C4(l,r,n,t){if(n)for(;r.y>0&&!Rt(l,r);)r.y--;else if(t){const u=t[r.i].y;for(;r.y>u&&!Rt(l,r);)r.y--}let s;for(;s=Rt(l,r);)r.y=s.y+s.h;return r}function E4(l,r){const n=Mc(l);for(let t=0,s=l.length;t<s;t++){const u=l[t];if(u.x+u.w>r.cols&&(u.x=r.cols-u.w),u.x<0&&(u.x=0,u.w=r.cols),!u.static)n.push(u);else for(;Rt(n,u);)u.y++}return l}function bs(l,r){for(let n=0,t=l.length;n<t;n++)if(l[n].i===r)return l[n]}function Rt(l,r){for(let n=0,t=l.length;n<t;n++)if(Ac(l[n],r))return l[n]}function zc(l,r){return l.filter(n=>Ac(n,r))}function Mc(l){return l.filter(r=>r.static)}function bi(l,r,n,t,s=!1,u=!1){if(r.static)return l;const b=r.x,h=r.y,v=t&&r.y>t;typeof n=="number"&&(r.x=n),typeof t=="number"&&(r.y=t),r.moved=!0;let y=Oc(l);v&&(y=y.reverse());const c=zc(y,r);if(u&&c.length)return r.x=b,r.y=h,r.moved=!1,l;for(let w=0,D=c.length;w<D;w++){const A=c[w];A.moved||r.y>A.y&&r.y-A.y>A.h/4||(A.static?l=ks(l,A,r,s):l=ks(l,r,A,s))}return l}function ks(l,r,n,t){if(t){const s={x:n.x,y:n.y,w:n.w,h:n.h};if(s.y=Math.max(r.y-n.h,0),!Rt(l,s))return bi(l,n,void 0,s.y,!1)}return bi(l,n,void 0,n.y+1,!1)}function S4(l,r,n,t){const s="translate3d("+r+"px,"+l+"px, 0)";return{transform:s,WebkitTransform:s,MozTransform:s,msTransform:s,OTransform:s,width:n+"px",height:t+"px",position:"absolute"}}function D4(l,r,n,t){const s="translate3d("+r*-1+"px,"+l+"px, 0)";return{transform:s,WebkitTransform:s,MozTransform:s,msTransform:s,OTransform:s,width:n+"px",height:t+"px",position:"absolute"}}function B4(l,r,n,t){return{top:l+"px",left:r+"px",width:n+"px",height:t+"px",position:"absolute"}}function N4(l,r,n,t){return{top:l+"px",right:r+"px",width:n+"px",height:t+"px",position:"absolute"}}function Oc(l){return Array.from(l).sort(function(r,n){return r.y===n.y&&r.x===n.x?0:r.y>n.y||r.y===n.y&&r.x>n.x?1:-1})}function T4(l,r){r=r||"Layout";const n=["x","y","w","h"],t=[];if(!Array.isArray(l))throw new Error(r+" must be an array!");for(let s=0,u=l.length;s<u;s++){const b=l[s];for(let h=0;h<n.length;h++)if(typeof b[n[h]]!="number")throw new Error("VueGridLayout: "+r+"["+s+"]."+n[h]+" must be a number!");if(b.i===void 0||b.i===null)throw new Error("VueGridLayout: "+r+"["+s+"].i cannot be null!");if(typeof b.i!="number"&&typeof b.i!="string")throw new Error("VueGridLayout: "+r+"["+s+"].i must be a string or number!");if(t.indexOf(b.i)>=0)throw new Error("VueGridLayout: "+r+"["+s+"].i must be unique!");if(t.push(b.i),b.static!==void 0&&typeof b.static!="boolean")throw new Error("VueGridLayout: "+r+"["+s+"].static must be a boolean!")}}function A4(l,r="vgl"){const n=()=>`${r}-${l}`;return{b:n,be:t=>`${n()}__${t}`,bm:t=>`${n()}--${t}`,bem:(t,s)=>`${n()}__${t}--${s}`}}function xs(l){return z4(l)}function z4(l){var r;const n=((r=l.target)==null?void 0:r.offsetParent)||document.body,t=l.offsetParent===document.body?{left:0,top:0}:n.getBoundingClientRect(),s=l.clientX+n.scrollLeft-t.left,u=l.clientY+n.scrollTop-t.top;return{x:s,y:u}}function _s(l,r,n,t){return M4(l)?{deltaX:n-l,deltaY:t-r,lastX:l,lastY:r,x:n,y:t}:{deltaX:0,deltaY:0,lastX:n,lastY:t,x:n,y:t}}function M4(l){return typeof l=="number"&&!Number.isNaN(l)}function O4(l,r){const n=Lc(l);let t=n[0];for(let s=1,u=n.length;s<u;s++){const b=n[s];r>l[b]&&(t=b)}return t}function Ic(l,r){if(!r[l])throw new Error("ResponsiveGridLayout: `cols` entry for breakpoint "+l+" is missing!");return r[l]}function I4(l,r,n,t,s,u,b){if(r[t])return gi(r[t]);let h=l;const v=Lc(n),y=v.slice(v.indexOf(t));for(let c=0,w=y.length;c<w;c++){const D=y[c];if(r[D]){h=r[D];break}}return h=gi(h||[]),bt(E4(h,{cols:u}),b)}function Lc(l){return Object.keys(l).sort((r,n)=>l[r]-l[n])}let L4="auto";function V4(){return typeof document<"u"}function ws(){return V4()?typeof document.dir<"u"?document.dir:document.getElementsByTagName("html")[0].getAttribute("dir"):L4}var Vt={exports:{}},$4=Vt.exports,Cs;function R4(){return Cs||(Cs=1,function(l,r){(function(n,t){l.exports=t()})($4,function(){function n(i,o){var d=Object.keys(i);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(i);o&&(m=m.filter(function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable})),d.push.apply(d,m)}return d}function t(i){for(var o=1;o<arguments.length;o++){var d=arguments[o]!=null?arguments[o]:{};o%2?n(Object(d),!0).forEach(function(m){v(i,m,d[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(d)):n(Object(d)).forEach(function(m){Object.defineProperty(i,m,Object.getOwnPropertyDescriptor(d,m))})}return i}function s(i){return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},s(i)}function u(i,o){if(!(i instanceof o))throw new TypeError("Cannot call a class as a function")}function b(i,o){for(var d=0;d<o.length;d++){var m=o[d];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(i,H(m.key),m)}}function h(i,o,d){return o&&b(i.prototype,o),Object.defineProperty(i,"prototype",{writable:!1}),i}function v(i,o,d){return(o=H(o))in i?Object.defineProperty(i,o,{value:d,enumerable:!0,configurable:!0,writable:!0}):i[o]=d,i}function y(i,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(o&&o.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),o&&w(i,o)}function c(i){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},c(i)}function w(i,o){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,m){return d.__proto__=m,d},w(i,o)}function D(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function A(i){var o=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var d,m=c(i);if(o){var C=c(this).constructor;d=Reflect.construct(m,arguments,C)}else d=m.apply(this,arguments);return function(L,U){if(U&&(typeof U=="object"||typeof U=="function"))return U;if(U!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return D(L)}(this,d)}}function _(){return _=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(i,o,d){var m=function(L,U){for(;!Object.prototype.hasOwnProperty.call(L,U)&&(L=c(L))!==null;);return L}(i,o);if(m){var C=Object.getOwnPropertyDescriptor(m,o);return C.get?C.get.call(arguments.length<3?i:d):C.value}},_.apply(this,arguments)}function H(i){var o=function(d,m){if(typeof d!="object"||d===null)return d;var C=d[Symbol.toPrimitive];if(C!==void 0){var L=C.call(d,m);if(typeof L!="object")return L;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(d)}(i,"string");return typeof o=="symbol"?o:o+""}var k=function(i){return!(!i||!i.Window)&&i instanceof i.Window},T=void 0,J=void 0;function S(i){T=i;var o=i.document.createTextNode("");o.ownerDocument!==i.document&&typeof i.wrap=="function"&&i.wrap(o)===o&&(i=i.wrap(i)),J=i}function V(i){return k(i)?i:(i.ownerDocument||i).defaultView||J.window}typeof window<"u"&&window&&S(window);var z=function(i){return!!i&&s(i)==="object"},x=function(i){return typeof i=="function"},g={window:function(i){return i===J||k(i)},docFrag:function(i){return z(i)&&i.nodeType===11},object:z,func:x,number:function(i){return typeof i=="number"},bool:function(i){return typeof i=="boolean"},string:function(i){return typeof i=="string"},element:function(i){if(!i||s(i)!=="object")return!1;var o=V(i)||J;return/object|function/.test(typeof Element>"u"?"undefined":s(Element))?i instanceof Element||i instanceof o.Element:i.nodeType===1&&typeof i.nodeName=="string"},plainObject:function(i){return z(i)&&!!i.constructor&&/function Object\b/.test(i.constructor.toString())},array:function(i){return z(i)&&i.length!==void 0&&x(i.splice)}};function F(i){var o=i.interaction;if(o.prepared.name==="drag"){var d=o.prepared.axis;d==="x"?(o.coords.cur.page.y=o.coords.start.page.y,o.coords.cur.client.y=o.coords.start.client.y,o.coords.velocity.client.y=0,o.coords.velocity.page.y=0):d==="y"&&(o.coords.cur.page.x=o.coords.start.page.x,o.coords.cur.client.x=o.coords.start.client.x,o.coords.velocity.client.x=0,o.coords.velocity.page.x=0)}}function q(i){var o=i.iEvent,d=i.interaction;if(d.prepared.name==="drag"){var m=d.prepared.axis;if(m==="x"||m==="y"){var C=m==="x"?"y":"x";o.page[C]=d.coords.start.page[C],o.client[C]=d.coords.start.client[C],o.delta[C]=0}}}var G={id:"actions/drag",install:function(i){var o=i.actions,d=i.Interactable,m=i.defaults;d.prototype.draggable=G.draggable,o.map.drag=G,o.methodDict.drag="draggable",m.actions.drag=G.defaults},listeners:{"interactions:before-action-move":F,"interactions:action-resume":F,"interactions:action-move":q,"auto-start:check":function(i){var o=i.interaction,d=i.interactable,m=i.buttons,C=d.options.drag;if(C&&C.enabled&&(!o.pointerIsDown||!/mouse|pointer/.test(o.pointerType)||(m&d.options.drag.mouseButtons)!=0))return i.action={name:"drag",axis:C.lockAxis==="start"?C.startAxis:C.lockAxis},!1}},draggable:function(i){return g.object(i)?(this.options.drag.enabled=i.enabled!==!1,this.setPerAction("drag",i),this.setOnEvents("drag",i),/^(xy|x|y|start)$/.test(i.lockAxis)&&(this.options.drag.lockAxis=i.lockAxis),/^(xy|x|y)$/.test(i.startAxis)&&(this.options.drag.startAxis=i.startAxis),this):g.bool(i)?(this.options.drag.enabled=i,this):this.options.drag},beforeMove:F,move:q,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(i){return i.search("drag")===0}},be=G,ze={init:function(i){var o=i;ze.document=o.document,ze.DocumentFragment=o.DocumentFragment||De,ze.SVGElement=o.SVGElement||De,ze.SVGSVGElement=o.SVGSVGElement||De,ze.SVGElementInstance=o.SVGElementInstance||De,ze.Element=o.Element||De,ze.HTMLElement=o.HTMLElement||ze.Element,ze.Event=o.Event,ze.Touch=o.Touch||De,ze.PointerEvent=o.PointerEvent||o.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function De(){}var ne=ze,ke={init:function(i){var o=ne.Element,d=i.navigator||{};ke.supportsTouch="ontouchstart"in i||g.func(i.DocumentTouch)&&ne.document instanceof i.DocumentTouch,ke.supportsPointerEvent=d.pointerEnabled!==!1&&!!ne.PointerEvent,ke.isIOS=/iP(hone|od|ad)/.test(d.platform),ke.isIOS7=/iP(hone|od|ad)/.test(d.platform)&&/OS 7[^\d]/.test(d.appVersion),ke.isIe9=/MSIE 9/.test(d.userAgent),ke.isOperaMobile=d.appName==="Opera"&&ke.supportsTouch&&/Presto/.test(d.userAgent),ke.prefixedMatchesSelector="matches"in o.prototype?"matches":"webkitMatchesSelector"in o.prototype?"webkitMatchesSelector":"mozMatchesSelector"in o.prototype?"mozMatchesSelector":"oMatchesSelector"in o.prototype?"oMatchesSelector":"msMatchesSelector",ke.pEventTypes=ke.supportsPointerEvent?ne.PointerEvent===i.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,ke.wheelEvent=ne.document&&"onmousewheel"in ne.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},X=ke;function pe(i,o){if(i.contains)return i.contains(o);for(;o;){if(o===i)return!0;o=o.parentNode}return!1}function Ke(i,o){for(;g.element(i);){if(te(i,o))return i;i=Sa(i)}return null}function Sa(i){var o=i.parentNode;if(g.docFrag(o)){for(;(o=o.host)&&g.docFrag(o););return o}return o}function te(i,o){return J!==T&&(o=o.replace(/\/deep\//g," ")),i[X.prefixedMatchesSelector](o)}var B=function(i){return i.parentNode||i.host};function le(i,o){for(var d,m=[],C=i;(d=B(C))&&C!==o&&d!==C.ownerDocument;)m.unshift(C),C=d;return m}function ye(i,o,d){for(;g.element(i);){if(te(i,o))return!0;if((i=Sa(i))===d)return te(i,o)}return!1}function se(i){return i.correspondingUseElement||i}function Ne(i){var o=i instanceof ne.SVGElement?i.getBoundingClientRect():i.getClientRects()[0];return o&&{left:o.left,right:o.right,top:o.top,bottom:o.bottom,width:o.width||o.right-o.left,height:o.height||o.bottom-o.top}}function ia(i){var o,d=Ne(i);if(!X.isIOS7&&d){var m={x:(o=(o=V(i))||J).scrollX||o.document.documentElement.scrollLeft,y:o.scrollY||o.document.documentElement.scrollTop};d.left+=m.x,d.right+=m.x,d.top+=m.y,d.bottom+=m.y}return d}function xa(i){for(var o=[];i;)o.push(i),i=Sa(i);return o}function Ha(i){return!!g.string(i)&&(ne.document.querySelector(i),!0)}function ee(i,o){for(var d in o)i[d]=o[d];return i}function ea(i,o,d){return i==="parent"?Sa(d):i==="self"?o.getRect(d):Ke(d,i)}function Pe(i,o,d,m){var C=i;return g.string(C)?C=ea(C,o,d):g.func(C)&&(C=C.apply(void 0,m)),g.element(C)&&(C=ia(C)),C}function ga(i){return i&&{x:"x"in i?i.x:i.left,y:"y"in i?i.y:i.top}}function He(i){return!i||"x"in i&&"y"in i||((i=ee({},i)).x=i.left||0,i.y=i.top||0,i.width=i.width||(i.right||0)-i.x,i.height=i.height||(i.bottom||0)-i.y),i}function Ae(i,o,d){i.left&&(o.left+=d.x),i.right&&(o.right+=d.x),i.top&&(o.top+=d.y),i.bottom&&(o.bottom+=d.y),o.width=o.right-o.left,o.height=o.bottom-o.top}function Re(i,o,d){var m=d&&i.options[d];return ga(Pe(m&&m.origin||i.options.origin,i,o,[i&&o]))||{x:0,y:0}}function Ge(i,o){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(de){return!0},m=arguments.length>3?arguments[3]:void 0;if(m=m||{},g.string(i)&&i.search(" ")!==-1&&(i=Ka(i)),g.array(i))return i.forEach(function(de){return Ge(de,o,d,m)}),m;if(g.object(i)&&(o=i,i=""),g.func(o)&&d(i))m[i]=m[i]||[],m[i].push(o);else if(g.array(o))for(var C=0,L=o;C<L.length;C++){var U=L[C];Ge(i,U,d,m)}else if(g.object(o))for(var W in o)Ge(Ka(W).map(function(de){return"".concat(i).concat(de)}),o[W],d,m);return m}function Ka(i){return i.trim().split(/ +/)}var Ia=function(i,o){return Math.sqrt(i*i+o*o)},R=["webkit","moz"];function P(i,o){i.__set||(i.__set={});var d=function(C){if(R.some(function(L){return C.indexOf(L)===0}))return 1;typeof i[C]!="function"&&C!=="__set"&&Object.defineProperty(i,C,{get:function(){return C in i.__set?i.__set[C]:i.__set[C]=o[C]},set:function(L){i.__set[C]=L},configurable:!0})};for(var m in o)d(m);return i}function Y(i,o){i.page=i.page||{},i.page.x=o.page.x,i.page.y=o.page.y,i.client=i.client||{},i.client.x=o.client.x,i.client.y=o.client.y,i.timeStamp=o.timeStamp}function oe(i){i.page.x=0,i.page.y=0,i.client.x=0,i.client.y=0}function ie(i){return i instanceof ne.Event||i instanceof ne.Touch}function fa(i,o,d){return i=i||"page",(d=d||{}).x=o[i+"X"],d.y=o[i+"Y"],d}function ra(i,o){return o=o||{x:0,y:0},X.isOperaMobile&&ie(i)?(fa("screen",i,o),o.x+=window.scrollX,o.y+=window.scrollY):fa("page",i,o),o}function Ie(i){return g.number(i.pointerId)?i.pointerId:i.identifier}function we(i,o,d){var m=o.length>1?fe(o):o[0];ra(m,i.page),function(C,L){L=L||{},X.isOperaMobile&&ie(C)?fa("screen",C,L):fa("client",C,L)}(m,i.client),i.timeStamp=d}function Ca(i){var o=[];return g.array(i)?(o[0]=i[0],o[1]=i[1]):i.type==="touchend"?i.touches.length===1?(o[0]=i.touches[0],o[1]=i.changedTouches[0]):i.touches.length===0&&(o[0]=i.changedTouches[0],o[1]=i.changedTouches[1]):(o[0]=i.touches[0],o[1]=i.touches[1]),o}function fe(i){for(var o={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},d=0;d<i.length;d++){var m=i[d];for(var C in o)o[C]+=m[C]}for(var L in o)o[L]/=i.length;return o}function Je(i){if(!i.length)return null;var o=Ca(i),d=Math.min(o[0].pageX,o[1].pageX),m=Math.min(o[0].pageY,o[1].pageY),C=Math.max(o[0].pageX,o[1].pageX),L=Math.max(o[0].pageY,o[1].pageY);return{x:d,y:m,left:d,top:m,right:C,bottom:L,width:C-d,height:L-m}}function Ze(i,o){var d=o+"X",m=o+"Y",C=Ca(i),L=C[0][d]-C[1][d],U=C[0][m]-C[1][m];return Ia(L,U)}function Fe(i,o){var d=o+"X",m=o+"Y",C=Ca(i),L=C[1][d]-C[0][d],U=C[1][m]-C[0][m];return 180*Math.atan2(U,L)/Math.PI}function ka(i){return g.string(i.pointerType)?i.pointerType:g.number(i.pointerType)?[void 0,void 0,"touch","pen","mouse"][i.pointerType]:/touch/.test(i.type||"")||i instanceof ne.Touch?"touch":"mouse"}function $e(i){var o=g.func(i.composedPath)?i.composedPath():i.path;return[se(o?o[0]:i.target),se(i.currentTarget)]}var pa=function(){function i(o){u(this,i),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=o}return h(i,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),i}();Object.defineProperty(pa.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var re=function(i,o){for(var d=0;d<o.length;d++){var m=o[d];i.push(m)}return i},Se=function(i){return re([],i)},K=function(i,o){for(var d=0;d<i.length;d++)if(o(i[d],d,i))return d;return-1},je=function(i,o){return i[K(i,o)]},Be=function(i){y(d,i);var o=A(d);function d(m,C,L){var U;u(this,d),(U=o.call(this,C._interaction)).dropzone=void 0,U.dragEvent=void 0,U.relatedTarget=void 0,U.draggable=void 0,U.propagationStopped=!1,U.immediatePropagationStopped=!1;var W=L==="dragleave"?m.prev:m.cur,de=W.element,Ve=W.dropzone;return U.type=L,U.target=de,U.currentTarget=de,U.dropzone=Ve,U.dragEvent=C,U.relatedTarget=C.target,U.draggable=C.interactable,U.timeStamp=C.timeStamp,U}return h(d,[{key:"reject",value:function(){var m=this,C=this._interaction.dropState;if(this.type==="dropactivate"||this.dropzone&&C.cur.dropzone===this.dropzone&&C.cur.element===this.target)if(C.prev.dropzone=this.dropzone,C.prev.element=this.target,C.rejected=!0,C.events.enter=null,this.stopImmediatePropagation(),this.type==="dropactivate"){var L=C.activeDrops,U=K(L,function(de){var Ve=de.dropzone,he=de.element;return Ve===m.dropzone&&he===m.target});C.activeDrops.splice(U,1);var W=new d(C,this.dragEvent,"dropdeactivate");W.dropzone=this.dropzone,W.target=this.target,this.dropzone.fire(W)}else this.dropzone.fire(new d(C,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),d}(pa);function za(i,o){for(var d=0,m=i.slice();d<m.length;d++){var C=m[d],L=C.dropzone,U=C.element;o.dropzone=L,o.target=U,L.fire(o),o.propagationStopped=o.immediatePropagationStopped=!1}}function Ea(i,o){for(var d=function(L,U){for(var W=[],de=0,Ve=L.interactables.list;de<Ve.length;de++){var he=Ve[de];if(he.options.drop.enabled){var Xe=he.options.drop.accept;if(!(g.element(Xe)&&Xe!==U||g.string(Xe)&&!te(U,Xe)||g.func(Xe)&&!Xe({dropzone:he,draggableElement:U})))for(var Ta=0,tl=he.getAllElements();Ta<tl.length;Ta++){var rl=tl[Ta];rl!==U&&W.push({dropzone:he,element:rl,rect:he.getRect(rl)})}}}return W}(i,o),m=0;m<d.length;m++){var C=d[m];C.rect=C.dropzone.getRect(C.element)}return d}function Ye(i,o,d){for(var m=i.dropState,C=i.interactable,L=i.element,U=[],W=0,de=m.activeDrops;W<de.length;W++){var Ve=de[W],he=Ve.dropzone,Xe=Ve.element,Ta=Ve.rect,tl=he.dropCheck(o,d,C,L,Xe,Ta);U.push(tl?Xe:null)}var rl=function(sl){for(var Cl,_l,yl,jl=[],$l=0;$l<sl.length;$l++){var Ol=sl[$l],zl=sl[Cl];if(Ol&&$l!==Cl)if(zl){var Lr=B(Ol),mr=B(zl);if(Lr!==Ol.ownerDocument)if(mr!==Ol.ownerDocument)if(Lr!==mr){jl=jl.length?jl:le(zl);var Fr=void 0;if(zl instanceof ne.HTMLElement&&Ol instanceof ne.SVGElement&&!(Ol instanceof ne.SVGSVGElement)){if(Ol===mr)continue;Fr=Ol.ownerSVGElement}else Fr=Ol;for(var en=le(Fr,zl.ownerDocument),mn=0;en[mn]&&en[mn]===jl[mn];)mn++;var Gn=[en[mn-1],en[mn],jl[mn]];if(Gn[0])for(var Jn=Gn[0].lastChild;Jn;){if(Jn===Gn[1]){Cl=$l,jl=en;break}if(Jn===Gn[2])break;Jn=Jn.previousSibling}}else yl=zl,(parseInt(V(_l=Ol).getComputedStyle(_l).zIndex,10)||0)>=(parseInt(V(yl).getComputedStyle(yl).zIndex,10)||0)&&(Cl=$l);else Cl=$l}else Cl=$l}return Cl}(U);return m.activeDrops[rl]||null}function ua(i,o,d){var m=i.dropState,C={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return d.type==="dragstart"&&(C.activate=new Be(m,d,"dropactivate"),C.activate.target=null,C.activate.dropzone=null),d.type==="dragend"&&(C.deactivate=new Be(m,d,"dropdeactivate"),C.deactivate.target=null,C.deactivate.dropzone=null),m.rejected||(m.cur.element!==m.prev.element&&(m.prev.dropzone&&(C.leave=new Be(m,d,"dragleave"),d.dragLeave=C.leave.target=m.prev.element,d.prevDropzone=C.leave.dropzone=m.prev.dropzone),m.cur.dropzone&&(C.enter=new Be(m,d,"dragenter"),d.dragEnter=m.cur.element,d.dropzone=m.cur.dropzone)),d.type==="dragend"&&m.cur.dropzone&&(C.drop=new Be(m,d,"drop"),d.dropzone=m.cur.dropzone,d.relatedTarget=m.cur.element),d.type==="dragmove"&&m.cur.dropzone&&(C.move=new Be(m,d,"dropmove"),d.dropzone=m.cur.dropzone)),C}function _e(i,o){var d=i.dropState,m=d.activeDrops,C=d.cur,L=d.prev;o.leave&&L.dropzone.fire(o.leave),o.enter&&C.dropzone.fire(o.enter),o.move&&C.dropzone.fire(o.move),o.drop&&C.dropzone.fire(o.drop),o.deactivate&&za(m,o.deactivate),d.prev.dropzone=C.dropzone,d.prev.element=C.element}function Z(i,o){var d=i.interaction,m=i.iEvent,C=i.event;if(m.type==="dragmove"||m.type==="dragend"){var L=d.dropState;o.dynamicDrop&&(L.activeDrops=Ea(o,d.element));var U=m,W=Ye(d,U,C);L.rejected=L.rejected&&!!W&&W.dropzone===L.cur.dropzone&&W.element===L.cur.element,L.cur.dropzone=W&&W.dropzone,L.cur.element=W&&W.element,L.events=ua(d,0,U)}}var ya={id:"actions/drop",install:function(i){var o=i.actions,d=i.interactStatic,m=i.Interactable,C=i.defaults;i.usePlugin(be),m.prototype.dropzone=function(L){return function(U,W){if(g.object(W)){if(U.options.drop.enabled=W.enabled!==!1,W.listeners){var de=Ge(W.listeners),Ve=Object.keys(de).reduce(function(Xe,Ta){return Xe[/^(enter|leave)/.test(Ta)?"drag".concat(Ta):/^(activate|deactivate|move)/.test(Ta)?"drop".concat(Ta):Ta]=de[Ta],Xe},{}),he=U.options.drop.listeners;he&&U.off(he),U.on(Ve),U.options.drop.listeners=Ve}return g.func(W.ondrop)&&U.on("drop",W.ondrop),g.func(W.ondropactivate)&&U.on("dropactivate",W.ondropactivate),g.func(W.ondropdeactivate)&&U.on("dropdeactivate",W.ondropdeactivate),g.func(W.ondragenter)&&U.on("dragenter",W.ondragenter),g.func(W.ondragleave)&&U.on("dragleave",W.ondragleave),g.func(W.ondropmove)&&U.on("dropmove",W.ondropmove),/^(pointer|center)$/.test(W.overlap)?U.options.drop.overlap=W.overlap:g.number(W.overlap)&&(U.options.drop.overlap=Math.max(Math.min(1,W.overlap),0)),"accept"in W&&(U.options.drop.accept=W.accept),"checker"in W&&(U.options.drop.checker=W.checker),U}return g.bool(W)?(U.options.drop.enabled=W,U):U.options.drop}(this,L)},m.prototype.dropCheck=function(L,U,W,de,Ve,he){return function(Xe,Ta,tl,rl,sl,Cl,_l){var yl=!1;if(!(_l=_l||Xe.getRect(Cl)))return!!Xe.options.drop.checker&&Xe.options.drop.checker(Ta,tl,yl,Xe,Cl,rl,sl);var jl=Xe.options.drop.overlap;if(jl==="pointer"){var $l=Re(rl,sl,"drag"),Ol=ra(Ta);Ol.x+=$l.x,Ol.y+=$l.y;var zl=Ol.x>_l.left&&Ol.x<_l.right,Lr=Ol.y>_l.top&&Ol.y<_l.bottom;yl=zl&&Lr}var mr=rl.getRect(sl);if(mr&&jl==="center"){var Fr=mr.left+mr.width/2,en=mr.top+mr.height/2;yl=Fr>=_l.left&&Fr<=_l.right&&en>=_l.top&&en<=_l.bottom}return mr&&g.number(jl)&&(yl=Math.max(0,Math.min(_l.right,mr.right)-Math.max(_l.left,mr.left))*Math.max(0,Math.min(_l.bottom,mr.bottom)-Math.max(_l.top,mr.top))/(mr.width*mr.height)>=jl),Xe.options.drop.checker&&(yl=Xe.options.drop.checker(Ta,tl,yl,Xe,Cl,rl,sl)),yl}(this,L,U,W,de,Ve,he)},d.dynamicDrop=function(L){return g.bool(L)?(i.dynamicDrop=L,d):i.dynamicDrop},ee(o.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),o.methodDict.drop="dropzone",i.dynamicDrop=!1,C.actions.drop=ya.defaults},listeners:{"interactions:before-action-start":function(i){var o=i.interaction;o.prepared.name==="drag"&&(o.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(i,o){var d=i.interaction,m=(i.event,i.iEvent);if(d.prepared.name==="drag"){var C=d.dropState;C.activeDrops=[],C.events={},C.activeDrops=Ea(o,d.element),C.events=ua(d,0,m),C.events.activate&&(za(C.activeDrops,C.events.activate),o.fire("actions/drop:start",{interaction:d,dragEvent:m}))}},"interactions:action-move":Z,"interactions:after-action-move":function(i,o){var d=i.interaction,m=i.iEvent;if(d.prepared.name==="drag"){var C=d.dropState;_e(d,C.events),o.fire("actions/drop:move",{interaction:d,dragEvent:m}),C.events={}}},"interactions:action-end":function(i,o){if(i.interaction.prepared.name==="drag"){var d=i.interaction,m=i.iEvent;Z(i,o),_e(d,d.dropState.events),o.fire("actions/drop:end",{interaction:d,dragEvent:m})}},"interactions:stop":function(i){var o=i.interaction;if(o.prepared.name==="drag"){var d=o.dropState;d&&(d.activeDrops=null,d.events=null,d.cur.dropzone=null,d.cur.element=null,d.prev.dropzone=null,d.prev.element=null,d.rejected=!1)}}},getActiveDrops:Ea,getDrop:Ye,getDropEvents:ua,fireDropEvents:_e,filterEventType:function(i){return i.search("drag")===0||i.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},We=ya;function La(i){var o=i.interaction,d=i.iEvent,m=i.phase;if(o.prepared.name==="gesture"){var C=o.pointers.map(function(Ve){return Ve.pointer}),L=m==="start",U=m==="end",W=o.interactable.options.deltaSource;if(d.touches=[C[0],C[1]],L)d.distance=Ze(C,W),d.box=Je(C),d.scale=1,d.ds=0,d.angle=Fe(C,W),d.da=0,o.gesture.startDistance=d.distance,o.gesture.startAngle=d.angle;else if(U||o.pointers.length<2){var de=o.prevEvent;d.distance=de.distance,d.box=de.box,d.scale=de.scale,d.ds=0,d.angle=de.angle,d.da=0}else d.distance=Ze(C,W),d.box=Je(C),d.scale=d.distance/o.gesture.startDistance,d.angle=Fe(C,W),d.ds=d.scale-o.gesture.scale,d.da=d.angle-o.gesture.angle;o.gesture.distance=d.distance,o.gesture.angle=d.angle,g.number(d.scale)&&d.scale!==1/0&&!isNaN(d.scale)&&(o.gesture.scale=d.scale)}}var ml={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(i){var o=i.actions,d=i.Interactable,m=i.defaults;d.prototype.gesturable=function(C){return g.object(C)?(this.options.gesture.enabled=C.enabled!==!1,this.setPerAction("gesture",C),this.setOnEvents("gesture",C),this):g.bool(C)?(this.options.gesture.enabled=C,this):this.options.gesture},o.map.gesture=ml,o.methodDict.gesture="gesturable",m.actions.gesture=ml.defaults},listeners:{"interactions:action-start":La,"interactions:action-move":La,"interactions:action-end":La,"interactions:new":function(i){i.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(i){if(!(i.interaction.pointers.length<2)){var o=i.interactable.options.gesture;if(o&&o.enabled)return i.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(i){return i.search("gesture")===0}},Aa=ml;function el(i,o,d,m,C,L,U){if(!o)return!1;if(o===!0){var W=g.number(L.width)?L.width:L.right-L.left,de=g.number(L.height)?L.height:L.bottom-L.top;if(U=Math.min(U,Math.abs((i==="left"||i==="right"?W:de)/2)),W<0&&(i==="left"?i="right":i==="right"&&(i="left")),de<0&&(i==="top"?i="bottom":i==="bottom"&&(i="top")),i==="left"){var Ve=W>=0?L.left:L.right;return d.x<Ve+U}if(i==="top"){var he=de>=0?L.top:L.bottom;return d.y<he+U}if(i==="right")return d.x>(W>=0?L.right:L.left)-U;if(i==="bottom")return d.y>(de>=0?L.bottom:L.top)-U}return!!g.element(m)&&(g.element(o)?o===m:ye(m,o,C))}function Ja(i){var o=i.iEvent,d=i.interaction;if(d.prepared.name==="resize"&&d.resizeAxes){var m=o;d.interactable.options.resize.square?(d.resizeAxes==="y"?m.delta.x=m.delta.y:m.delta.y=m.delta.x,m.axes="xy"):(m.axes=d.resizeAxes,d.resizeAxes==="x"?m.delta.y=0:d.resizeAxes==="y"&&(m.delta.x=0))}}var Pa,Te,il={id:"actions/resize",before:["actions/drag"],install:function(i){var o=i.actions,d=i.browser,m=i.Interactable,C=i.defaults;il.cursors=function(L){return L.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(d),il.defaultMargin=d.supportsTouch||d.supportsPointerEvent?20:10,m.prototype.resizable=function(L){return function(U,W,de){return g.object(W)?(U.options.resize.enabled=W.enabled!==!1,U.setPerAction("resize",W),U.setOnEvents("resize",W),g.string(W.axis)&&/^x$|^y$|^xy$/.test(W.axis)?U.options.resize.axis=W.axis:W.axis===null&&(U.options.resize.axis=de.defaults.actions.resize.axis),g.bool(W.preserveAspectRatio)?U.options.resize.preserveAspectRatio=W.preserveAspectRatio:g.bool(W.square)&&(U.options.resize.square=W.square),U):g.bool(W)?(U.options.resize.enabled=W,U):U.options.resize}(this,L,i)},o.map.resize=il,o.methodDict.resize="resizable",C.actions.resize=il.defaults},listeners:{"interactions:new":function(i){i.interaction.resizeAxes="xy"},"interactions:action-start":function(i){(function(o){var d=o.iEvent,m=o.interaction;if(m.prepared.name==="resize"&&m.prepared.edges){var C=d,L=m.rect;m._rects={start:ee({},L),corrected:ee({},L),previous:ee({},L),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},C.edges=m.prepared.edges,C.rect=m._rects.corrected,C.deltaRect=m._rects.delta}})(i),Ja(i)},"interactions:action-move":function(i){(function(o){var d=o.iEvent,m=o.interaction;if(m.prepared.name==="resize"&&m.prepared.edges){var C=d,L=m.interactable.options.resize.invert,U=L==="reposition"||L==="negate",W=m.rect,de=m._rects,Ve=de.start,he=de.corrected,Xe=de.delta,Ta=de.previous;if(ee(Ta,he),U){if(ee(he,W),L==="reposition"){if(he.top>he.bottom){var tl=he.top;he.top=he.bottom,he.bottom=tl}if(he.left>he.right){var rl=he.left;he.left=he.right,he.right=rl}}}else he.top=Math.min(W.top,Ve.bottom),he.bottom=Math.max(W.bottom,Ve.top),he.left=Math.min(W.left,Ve.right),he.right=Math.max(W.right,Ve.left);for(var sl in he.width=he.right-he.left,he.height=he.bottom-he.top,he)Xe[sl]=he[sl]-Ta[sl];C.edges=m.prepared.edges,C.rect=he,C.deltaRect=Xe}})(i),Ja(i)},"interactions:action-end":function(i){var o=i.iEvent,d=i.interaction;if(d.prepared.name==="resize"&&d.prepared.edges){var m=o;m.edges=d.prepared.edges,m.rect=d._rects.corrected,m.deltaRect=d._rects.delta}},"auto-start:check":function(i){var o=i.interaction,d=i.interactable,m=i.element,C=i.rect,L=i.buttons;if(C){var U=ee({},o.coords.cur.page),W=d.options.resize;if(W&&W.enabled&&(!o.pointerIsDown||!/mouse|pointer/.test(o.pointerType)||(L&W.mouseButtons)!=0)){if(g.object(W.edges)){var de={left:!1,right:!1,top:!1,bottom:!1};for(var Ve in de)de[Ve]=el(Ve,W.edges[Ve],U,o._latestPointer.eventTarget,m,C,W.margin||il.defaultMargin);de.left=de.left&&!de.right,de.top=de.top&&!de.bottom,(de.left||de.right||de.top||de.bottom)&&(i.action={name:"resize",edges:de})}else{var he=W.axis!=="y"&&U.x>C.right-il.defaultMargin,Xe=W.axis!=="x"&&U.y>C.bottom-il.defaultMargin;(he||Xe)&&(i.action={name:"resize",axes:(he?"x":"")+(Xe?"y":"")})}return!i.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(i){var o=i.edges,d=i.axis,m=i.name,C=il.cursors,L=null;if(d)L=C[m+d];else if(o){for(var U="",W=0,de=["top","bottom","left","right"];W<de.length;W++){var Ve=de[W];o[Ve]&&(U+=Ve)}L=C[U]}return L},filterEventType:function(i){return i.search("resize")===0},defaultMargin:null},ma=il,wa={id:"actions",install:function(i){i.usePlugin(Aa),i.usePlugin(ma),i.usePlugin(be),i.usePlugin(We)}},_a=0,oa={request:function(i){return Pa(i)},cancel:function(i){return Te(i)},init:function(i){if(Pa=i.requestAnimationFrame,Te=i.cancelAnimationFrame,!Pa)for(var o=["ms","moz","webkit","o"],d=0;d<o.length;d++){var m=o[d];Pa=i["".concat(m,"RequestAnimationFrame")],Te=i["".concat(m,"CancelAnimationFrame")]||i["".concat(m,"CancelRequestAnimationFrame")]}Pa=Pa&&Pa.bind(i),Te=Te&&Te.bind(i),Pa||(Pa=function(C){var L=Date.now(),U=Math.max(0,16-(L-_a)),W=i.setTimeout(function(){C(L+U)},U);return _a=L+U,W},Te=function(C){return clearTimeout(C)})}},va={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(i){va.isScrolling=!0,oa.cancel(va.i),i.autoScroll=va,va.interaction=i,va.prevTime=va.now(),va.i=oa.request(va.scroll)},stop:function(){va.isScrolling=!1,va.interaction&&(va.interaction.autoScroll=null),oa.cancel(va.i)},scroll:function(){var i=va.interaction,o=i.interactable,d=i.element,m=i.prepared.name,C=o.options[m].autoScroll,L=ue(C.container,o,d),U=va.now(),W=(U-va.prevTime)/1e3,de=C.speed*W;if(de>=1){var Ve={x:va.x*de,y:va.y*de};if(Ve.x||Ve.y){var he=Fa(L);g.window(L)?L.scrollBy(Ve.x,Ve.y):L&&(L.scrollLeft+=Ve.x,L.scrollTop+=Ve.y);var Xe=Fa(L),Ta={x:Xe.x-he.x,y:Xe.y-he.y};(Ta.x||Ta.y)&&o.fire({type:"autoscroll",target:d,interactable:o,delta:Ta,interaction:i,container:L})}va.prevTime=U}va.isScrolling&&(oa.cancel(va.i),va.i=oa.request(va.scroll))},check:function(i,o){var d;return(d=i.options[o].autoScroll)==null?void 0:d.enabled},onInteractionMove:function(i){var o=i.interaction,d=i.pointer;if(o.interacting()&&va.check(o.interactable,o.prepared.name))if(o.simulation)va.x=va.y=0;else{var m,C,L,U,W=o.interactable,de=o.element,Ve=o.prepared.name,he=W.options[Ve].autoScroll,Xe=ue(he.container,W,de);if(g.window(Xe))U=d.clientX<va.margin,m=d.clientY<va.margin,C=d.clientX>Xe.innerWidth-va.margin,L=d.clientY>Xe.innerHeight-va.margin;else{var Ta=Ne(Xe);U=d.clientX<Ta.left+va.margin,m=d.clientY<Ta.top+va.margin,C=d.clientX>Ta.right-va.margin,L=d.clientY>Ta.bottom-va.margin}va.x=C?1:U?-1:0,va.y=L?1:m?-1:0,va.isScrolling||(va.margin=he.margin,va.speed=he.speed,va.start(o))}}};function ue(i,o,d){return(g.string(i)?ea(i,o,d):i)||V(d)}function Fa(i){return g.window(i)&&(i=window.document.body),{x:i.scrollLeft,y:i.scrollTop}}var ja={id:"auto-scroll",install:function(i){var o=i.defaults,d=i.actions;i.autoScroll=va,va.now=function(){return i.now()},d.phaselessTypes.autoscroll=!0,o.perAction.autoScroll=va.defaults},listeners:{"interactions:new":function(i){i.interaction.autoScroll=null},"interactions:destroy":function(i){i.interaction.autoScroll=null,va.stop(),va.interaction&&(va.interaction=null)},"interactions:stop":va.stop,"interactions:action-move":function(i){return va.onInteractionMove(i)}}},Ee=ja;function Ba(i,o){var d=!1;return function(){return d||(J.console.warn(o),d=!0),i.apply(this,arguments)}}function Ua(i,o){return i.name=o.name,i.axis=o.axis,i.edges=o.edges,i}function ve(i){return g.bool(i)?(this.options.styleCursor=i,this):i===null?(delete this.options.styleCursor,this):this.options.styleCursor}function fl(i){return g.func(i)?(this.options.actionChecker=i,this):i===null?(delete this.options.actionChecker,this):this.options.actionChecker}var Xa={id:"auto-start/interactableMethods",install:function(i){var o=i.Interactable;o.prototype.getAction=function(d,m,C,L){var U=function(W,de,Ve,he,Xe){var Ta=W.getRect(he),tl=de.buttons||{0:1,1:4,3:8,4:16}[de.button],rl={action:null,interactable:W,interaction:Ve,element:he,rect:Ta,buttons:tl};return Xe.fire("auto-start:check",rl),rl.action}(this,m,C,L,i);return this.options.actionChecker?this.options.actionChecker(d,m,U,this,L,C):U},o.prototype.ignoreFrom=Ba(function(d){return this._backCompatOption("ignoreFrom",d)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),o.prototype.allowFrom=Ba(function(d){return this._backCompatOption("allowFrom",d)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),o.prototype.actionChecker=fl,o.prototype.styleCursor=ve}};function xl(i,o,d,m,C){return o.testIgnoreAllow(o.options[i.name],d,m)&&o.options[i.name].enabled&&cl(o,d,i,C)?i:null}function qa(i,o,d,m,C,L,U){for(var W=0,de=m.length;W<de;W++){var Ve=m[W],he=C[W],Xe=Ve.getAction(o,d,i,he);if(Xe){var Ta=xl(Xe,Ve,he,L,U);if(Ta)return{action:Ta,interactable:Ve,element:he}}}return{action:null,interactable:null,element:null}}function ol(i,o,d,m,C){var L=[],U=[],W=m;function de(he){L.push(he),U.push(W)}for(;g.element(W);){L=[],U=[],C.interactables.forEachMatch(W,de);var Ve=qa(i,o,d,L,U,m,C);if(Ve.action&&!Ve.interactable.options[Ve.action.name].manualStart)return Ve;W=Sa(W)}return{action:null,interactable:null,element:null}}function al(i,o,d){var m=o.action,C=o.interactable,L=o.element;m=m||{name:null},i.interactable=C,i.element=L,Ua(i.prepared,m),i.rect=C&&m.name?C.getRect(L):null,Kl(i,d),d.fire("autoStart:prepared",{interaction:i})}function cl(i,o,d,m){var C=i.options,L=C[d.name].max,U=C[d.name].maxPerElement,W=m.autoStart.maxInteractions,de=0,Ve=0,he=0;if(!(L&&U&&W))return!1;for(var Xe=0,Ta=m.interactions.list;Xe<Ta.length;Xe++){var tl=Ta[Xe],rl=tl.prepared.name;if(tl.interacting()&&(++de>=W||tl.interactable===i&&((Ve+=rl===d.name?1:0)>=L||tl.element===o&&(he++,rl===d.name&&he>=U))))return!1}return W>0}function ul(i,o){return g.number(i)?(o.autoStart.maxInteractions=i,this):o.autoStart.maxInteractions}function Wl(i,o,d){var m=d.autoStart.cursorElement;m&&m!==i&&(m.style.cursor=""),i.ownerDocument.documentElement.style.cursor=o,i.style.cursor=o,d.autoStart.cursorElement=o?i:null}function Kl(i,o){var d=i.interactable,m=i.element,C=i.prepared;if(i.pointerType==="mouse"&&d&&d.options.styleCursor){var L="";if(C.name){var U=d.options[C.name].cursorChecker;L=g.func(U)?U(C,d,m,i._interacting):o.actions.map[C.name].getCursor(C)}Wl(i.element,L||"",o)}else o.autoStart.cursorElement&&Wl(o.autoStart.cursorElement,"",o)}var Fl={id:"auto-start/base",before:["actions"],install:function(i){var o=i.interactStatic,d=i.defaults;i.usePlugin(Xa),d.base.actionChecker=null,d.base.styleCursor=!0,ee(d.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),o.maxInteractions=function(m){return ul(m,i)},i.autoStart={maxInteractions:1/0,withinInteractionLimit:cl,cursorElement:null}},listeners:{"interactions:down":function(i,o){var d=i.interaction,m=i.pointer,C=i.event,L=i.eventTarget;d.interacting()||al(d,ol(d,m,C,L,o),o)},"interactions:move":function(i,o){(function(d,m){var C=d.interaction,L=d.pointer,U=d.event,W=d.eventTarget;C.pointerType!=="mouse"||C.pointerIsDown||C.interacting()||al(C,ol(C,L,U,W,m),m)})(i,o),function(d,m){var C=d.interaction;if(C.pointerIsDown&&!C.interacting()&&C.pointerWasMoved&&C.prepared.name){m.fire("autoStart:before-start",d);var L=C.interactable,U=C.prepared.name;U&&L&&(L.options[U].manualStart||!cl(L,C.element,C.prepared,m)?C.stop():(C.start(C.prepared,L,C.element),Kl(C,m)))}}(i,o)},"interactions:stop":function(i,o){var d=i.interaction,m=d.interactable;m&&m.options.styleCursor&&Wl(d.element,"",o)}},maxInteractions:ul,withinInteractionLimit:cl,validateAction:xl},Ul=Fl,gr={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(i,o){var d=i.interaction,m=i.eventTarget,C=i.dx,L=i.dy;if(d.prepared.name==="drag"){var U=Math.abs(C),W=Math.abs(L),de=d.interactable.options.drag,Ve=de.startAxis,he=U>W?"x":U<W?"y":"xy";if(d.prepared.axis=de.lockAxis==="start"?he[0]:de.lockAxis,he!=="xy"&&Ve!=="xy"&&Ve!==he){d.prepared.name=null;for(var Xe=m,Ta=function(rl){if(rl!==d.interactable){var sl=d.interactable.options.drag;if(!sl.manualStart&&rl.testIgnoreAllow(sl,Xe,m)){var Cl=rl.getAction(d.downPointer,d.downEvent,d,Xe);if(Cl&&Cl.name==="drag"&&function(_l,yl){if(!yl)return!1;var jl=yl.options.drag.startAxis;return _l==="xy"||jl==="xy"||jl===_l}(he,rl)&&Ul.validateAction(Cl,rl,Xe,m,o))return rl}}};g.element(Xe);){var tl=o.interactables.forEachMatch(Xe,Ta);if(tl){d.prepared.name="drag",d.interactable=tl,d.element=Xe;break}Xe=Sa(Xe)}}}}}};function rr(i){var o=i.prepared&&i.prepared.name;if(!o)return null;var d=i.interactable.options;return d[o].hold||d[o].delay}var kr={id:"auto-start/hold",install:function(i){var o=i.defaults;i.usePlugin(Ul),o.perAction.hold=0,o.perAction.delay=0},listeners:{"interactions:new":function(i){i.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(i){var o=i.interaction,d=rr(o);d>0&&(o.autoStartHoldTimer=setTimeout(function(){o.start(o.prepared,o.interactable,o.element)},d))},"interactions:move":function(i){var o=i.interaction,d=i.duplicate;o.autoStartHoldTimer&&o.pointerWasMoved&&!d&&(clearTimeout(o.autoStartHoldTimer),o.autoStartHoldTimer=null)},"autoStart:before-start":function(i){var o=i.interaction;rr(o)>0&&(o.prepared.name=null)}},getHoldDuration:rr},wr=kr,Er={id:"auto-start",install:function(i){i.usePlugin(Ul),i.usePlugin(wr),i.usePlugin(gr)}},un=function(i){return/^(always|never|auto)$/.test(i)?(this.options.preventDefault=i,this):g.bool(i)?(this.options.preventDefault=i?"always":"never",this):this.options.preventDefault};function Jr(i){var o=i.interaction,d=i.event;o.interactable&&o.interactable.checkAndPreventDefault(d)}var dn={id:"core/interactablePreventDefault",install:function(i){var o=i.Interactable;o.prototype.preventDefault=un,o.prototype.checkAndPreventDefault=function(d){return function(m,C,L){var U=m.options.preventDefault;if(U!=="never")if(U!=="always"){if(C.events.supportsPassive&&/^touch(start|move)$/.test(L.type)){var W=V(L.target).document,de=C.getDocOptions(W);if(!de||!de.events||de.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(L.type)||g.element(L.target)&&te(L.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||L.preventDefault()}else L.preventDefault()}(this,i,d)},i.interactions.docEvents.push({type:"dragstart",listener:function(d){for(var m=0,C=i.interactions.list;m<C.length;m++){var L=C[m];if(L.element&&(L.element===d.target||pe(L.element,d.target)))return void L.interactable.checkAndPreventDefault(d)}}})},listeners:["down","move","up","cancel"].reduce(function(i,o){return i["interactions:".concat(o)]=Jr,i},{})};function Xr(i,o){if(o.phaselessTypes[i])return!0;for(var d in o.map)if(i.indexOf(d)===0&&i.substr(d.length)in o.phases)return!0;return!1}function Ur(i){var o={};for(var d in i){var m=i[d];g.plainObject(m)?o[d]=Ur(m):g.array(m)?o[d]=Se(m):o[d]=m}return o}var pn=function(){function i(o){u(this,i),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=o,this.result=tn(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return h(i,[{key:"start",value:function(o,d){var m,C,L=o.phase,U=this.interaction,W=function(Ve){var he=Ve.interactable.options[Ve.prepared.name],Xe=he.modifiers;return Xe&&Xe.length?Xe:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(Ta){var tl=he[Ta];return tl&&tl.enabled&&{options:tl,methods:tl._methods}}).filter(function(Ta){return!!Ta})}(U);this.prepareStates(W),this.startEdges=ee({},U.edges),this.edges=ee({},this.startEdges),this.startOffset=(m=U.rect,C=d,m?{left:C.x-m.left,top:C.y-m.top,right:m.right-C.x,bottom:m.bottom-C.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var de=this.fillArg({phase:L,pageCoords:d,preEnd:!1});return this.result=tn(),this.startAll(de),this.result=this.setAll(de)}},{key:"fillArg",value:function(o){var d=this.interaction;return o.interaction=d,o.interactable=d.interactable,o.element=d.element,o.rect||(o.rect=d.rect),o.edges||(o.edges=this.startEdges),o.startOffset=this.startOffset,o}},{key:"startAll",value:function(o){for(var d=0,m=this.states;d<m.length;d++){var C=m[d];C.methods.start&&(o.state=C,C.methods.start(o))}}},{key:"setAll",value:function(o){var d=o.phase,m=o.preEnd,C=o.skipModifiers,L=o.rect,U=o.edges;o.coords=ee({},o.pageCoords),o.rect=ee({},L),o.edges=ee({},U);for(var W=C?this.states.slice(C):this.states,de=tn(o.coords,o.rect),Ve=0;Ve<W.length;Ve++){var he,Xe=W[Ve],Ta=Xe.options,tl=ee({},o.coords),rl=null;(he=Xe.methods)!=null&&he.set&&this.shouldDo(Ta,m,d)&&(o.state=Xe,rl=Xe.methods.set(o),Ae(o.edges,o.rect,{x:o.coords.x-tl.x,y:o.coords.y-tl.y})),de.eventProps.push(rl)}ee(this.edges,o.edges),de.delta.x=o.coords.x-o.pageCoords.x,de.delta.y=o.coords.y-o.pageCoords.y,de.rectDelta.left=o.rect.left-L.left,de.rectDelta.right=o.rect.right-L.right,de.rectDelta.top=o.rect.top-L.top,de.rectDelta.bottom=o.rect.bottom-L.bottom;var sl=this.result.coords,Cl=this.result.rect;if(sl&&Cl){var _l=de.rect.left!==Cl.left||de.rect.right!==Cl.right||de.rect.top!==Cl.top||de.rect.bottom!==Cl.bottom;de.changed=_l||sl.x!==de.coords.x||sl.y!==de.coords.y}return de}},{key:"applyToInteraction",value:function(o){var d=this.interaction,m=o.phase,C=d.coords.cur,L=d.coords.start,U=this.result,W=this.startDelta,de=U.delta;m==="start"&&ee(this.startDelta,U.delta);for(var Ve=0,he=[[L,W],[C,de]];Ve<he.length;Ve++){var Xe=he[Ve],Ta=Xe[0],tl=Xe[1];Ta.page.x+=tl.x,Ta.page.y+=tl.y,Ta.client.x+=tl.x,Ta.client.y+=tl.y}var rl=this.result.rectDelta,sl=o.rect||d.rect;sl.left+=rl.left,sl.right+=rl.right,sl.top+=rl.top,sl.bottom+=rl.bottom,sl.width=sl.right-sl.left,sl.height=sl.bottom-sl.top}},{key:"setAndApply",value:function(o){var d=this.interaction,m=o.phase,C=o.preEnd,L=o.skipModifiers,U=this.setAll(this.fillArg({preEnd:C,phase:m,pageCoords:o.modifiedCoords||d.coords.cur.page}));if(this.result=U,!U.changed&&(!L||L<this.states.length)&&d.interacting())return!1;if(o.modifiedCoords){var W=d.coords.cur.page,de={x:o.modifiedCoords.x-W.x,y:o.modifiedCoords.y-W.y};U.coords.x+=de.x,U.coords.y+=de.y,U.delta.x+=de.x,U.delta.y+=de.y}this.applyToInteraction(o)}},{key:"beforeEnd",value:function(o){var d=o.interaction,m=o.event,C=this.states;if(C&&C.length){for(var L=!1,U=0;U<C.length;U++){var W=C[U];o.state=W;var de=W.options,Ve=W.methods,he=Ve.beforeEnd&&Ve.beforeEnd(o);if(he)return this.endResult=he,!1;L=L||!L&&this.shouldDo(de,!0,o.phase,!0)}L&&d.move({event:m,preEnd:!0})}}},{key:"stop",value:function(o){var d=o.interaction;if(this.states&&this.states.length){var m=ee({states:this.states,interactable:d.interactable,element:d.element,rect:null},o);this.fillArg(m);for(var C=0,L=this.states;C<L.length;C++){var U=L[C];m.state=U,U.methods.stop&&U.methods.stop(m)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(o){this.states=[];for(var d=0;d<o.length;d++){var m=o[d],C=m.options,L=m.methods,U=m.name;this.states.push({options:C,methods:L,index:d,name:U})}return this.states}},{key:"restoreInteractionCoords",value:function(o){var d=o.interaction,m=d.coords,C=d.rect,L=d.modification;if(L.result){for(var U=L.startDelta,W=L.result,de=W.delta,Ve=W.rectDelta,he=0,Xe=[[m.start,U],[m.cur,de]];he<Xe.length;he++){var Ta=Xe[he],tl=Ta[0],rl=Ta[1];tl.page.x-=rl.x,tl.page.y-=rl.y,tl.client.x-=rl.x,tl.client.y-=rl.y}C.left-=Ve.left,C.right-=Ve.right,C.top-=Ve.top,C.bottom-=Ve.bottom}}},{key:"shouldDo",value:function(o,d,m,C){return!(!o||o.enabled===!1||C&&!o.endOnly||o.endOnly&&!d||m==="start"&&!o.setStart)}},{key:"copyFrom",value:function(o){this.startOffset=o.startOffset,this.startDelta=o.startDelta,this.startEdges=o.startEdges,this.edges=o.edges,this.states=o.states.map(function(d){return Ur(d)}),this.result=tn(ee({},o.result.coords),ee({},o.result.rect))}},{key:"destroy",value:function(){for(var o in this)this[o]=null}}]),i}();function tn(i,o){return{rect:o,coords:i,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function Dr(i,o){var d=i.defaults,m={start:i.start,set:i.set,beforeEnd:i.beforeEnd,stop:i.stop},C=function(L){var U=L||{};for(var W in U.enabled=U.enabled!==!1,d)W in U||(U[W]=d[W]);var de={options:U,methods:m,name:o,enable:function(){return U.enabled=!0,de},disable:function(){return U.enabled=!1,de}};return de};return o&&typeof o=="string"&&(C._defaults=d,C._methods=m),C}function Zr(i){var o=i.iEvent,d=i.interaction.modification.result;d&&(o.modifiers=d.eventProps)}var Br={id:"modifiers/base",before:["actions"],install:function(i){i.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(i){var o=i.interaction;o.modification=new pn(o)},"interactions:before-action-start":function(i){var o=i.interaction,d=i.interaction.modification;d.start(i,o.coords.start.page),o.edges=d.edges,d.applyToInteraction(i)},"interactions:before-action-move":function(i){var o=i.interaction,d=o.modification,m=d.setAndApply(i);return o.edges=d.edges,m},"interactions:before-action-end":function(i){var o=i.interaction,d=o.modification,m=d.beforeEnd(i);return o.edges=d.startEdges,m},"interactions:action-start":Zr,"interactions:action-move":Zr,"interactions:action-end":Zr,"interactions:after-action-start":function(i){return i.interaction.modification.restoreInteractionCoords(i)},"interactions:after-action-move":function(i){return i.interaction.modification.restoreInteractionCoords(i)},"interactions:stop":function(i){return i.interaction.modification.stop(i)}}},Il=Br,qr={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Nr=function(i){y(d,i);var o=A(d);function d(m,C,L,U,W,de,Ve){var he;u(this,d),(he=o.call(this,m)).relatedTarget=null,he.screenX=void 0,he.screenY=void 0,he.button=void 0,he.buttons=void 0,he.ctrlKey=void 0,he.shiftKey=void 0,he.altKey=void 0,he.metaKey=void 0,he.page=void 0,he.client=void 0,he.delta=void 0,he.rect=void 0,he.x0=void 0,he.y0=void 0,he.t0=void 0,he.dt=void 0,he.duration=void 0,he.clientX0=void 0,he.clientY0=void 0,he.velocity=void 0,he.speed=void 0,he.swipe=void 0,he.axes=void 0,he.preEnd=void 0,W=W||m.element;var Xe=m.interactable,Ta=(Xe&&Xe.options||qr).deltaSource,tl=Re(Xe,W,L),rl=U==="start",sl=U==="end",Cl=rl?D(he):m.prevEvent,_l=rl?m.coords.start:sl?{page:Cl.page,client:Cl.client,timeStamp:m.coords.cur.timeStamp}:m.coords.cur;return he.page=ee({},_l.page),he.client=ee({},_l.client),he.rect=ee({},m.rect),he.timeStamp=_l.timeStamp,sl||(he.page.x-=tl.x,he.page.y-=tl.y,he.client.x-=tl.x,he.client.y-=tl.y),he.ctrlKey=C.ctrlKey,he.altKey=C.altKey,he.shiftKey=C.shiftKey,he.metaKey=C.metaKey,he.button=C.button,he.buttons=C.buttons,he.target=W,he.currentTarget=W,he.preEnd=de,he.type=Ve||L+(U||""),he.interactable=Xe,he.t0=rl?m.pointers[m.pointers.length-1].downTime:Cl.t0,he.x0=m.coords.start.page.x-tl.x,he.y0=m.coords.start.page.y-tl.y,he.clientX0=m.coords.start.client.x-tl.x,he.clientY0=m.coords.start.client.y-tl.y,he.delta=rl||sl?{x:0,y:0}:{x:he[Ta].x-Cl[Ta].x,y:he[Ta].y-Cl[Ta].y},he.dt=m.coords.delta.timeStamp,he.duration=he.timeStamp-he.t0,he.velocity=ee({},m.coords.velocity[Ta]),he.speed=Ia(he.velocity.x,he.velocity.y),he.swipe=sl||U==="inertiastart"?he.getSwipe():null,he}return h(d,[{key:"getSwipe",value:function(){var m=this._interaction;if(m.prevEvent.speed<600||this.timeStamp-m.prevEvent.timeStamp>150)return null;var C=180*Math.atan2(m.prevEvent.velocityY,m.prevEvent.velocityX)/Math.PI;C<0&&(C+=360);var L=112.5<=C&&C<247.5,U=202.5<=C&&C<337.5;return{up:U,down:!U&&22.5<=C&&C<157.5,left:L,right:!L&&(292.5<=C||C<67.5),angle:C,speed:m.prevEvent.speed,velocity:{x:m.prevEvent.velocityX,y:m.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),d}(pa);Object.defineProperties(Nr.prototype,{pageX:{get:function(){return this.page.x},set:function(i){this.page.x=i}},pageY:{get:function(){return this.page.y},set:function(i){this.page.y=i}},clientX:{get:function(){return this.client.x},set:function(i){this.client.x=i}},clientY:{get:function(){return this.client.y},set:function(i){this.client.y=i}},dx:{get:function(){return this.delta.x},set:function(i){this.delta.x=i}},dy:{get:function(){return this.delta.y},set:function(i){this.delta.y=i}},velocityX:{get:function(){return this.velocity.x},set:function(i){this.velocity.x=i}},velocityY:{get:function(){return this.velocity.y},set:function(i){this.velocity.y=i}}});var gn=h(function i(o,d,m,C,L){u(this,i),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=o,this.pointer=d,this.event=m,this.downTime=C,this.downTarget=L}),tt=function(i){return i.interactable="",i.element="",i.prepared="",i.pointerIsDown="",i.pointerWasMoved="",i._proxy="",i}({}),Rn=function(i){return i.start="",i.move="",i.end="",i.stop="",i.interacting="",i}({}),An=0,bn=function(){function i(o){var d=this,m=o.pointerType,C=o.scopeFire;u(this,i),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=Ba(function(he){this.move(he)},"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=An++,this._scopeFire=C,this.pointerType=m;var L=this;this._proxy={};var U=function(he){Object.defineProperty(d._proxy,he,{get:function(){return L[he]}})};for(var W in tt)U(W);var de=function(he){Object.defineProperty(d._proxy,he,{value:function(){return L[he].apply(L,arguments)}})};for(var Ve in Rn)de(Ve);this._scopeFire("interactions:new",{interaction:this})}return h(i,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(o,d,m){var C=this.updatePointer(o,d,m,!0),L=this.pointers[C];this._scopeFire("interactions:down",{pointer:o,event:d,eventTarget:m,pointerIndex:C,pointerInfo:L,type:"down",interaction:this})}},{key:"start",value:function(o,d,m){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(o.name==="gesture"?2:1)||!d.options[o.name].enabled)&&(Ua(this.prepared,o),this.interactable=d,this.element=m,this.rect=d.getRect(m),this.edges=this.prepared.edges?ee({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(o,d,m){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(o,d,m,!1);var C,L,U=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(C=this.coords.cur.client.x-this.coords.start.client.x,L=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=Ia(C,L)>this.pointerMoveTolerance);var W,de,Ve,he=this.getPointerIndex(o),Xe={pointer:o,pointerIndex:he,pointerInfo:this.pointers[he],event:d,type:"move",eventTarget:m,dx:C,dy:L,duplicate:U,interaction:this};U||(W=this.coords.velocity,de=this.coords.delta,Ve=Math.max(de.timeStamp/1e3,.001),W.page.x=de.page.x/Ve,W.page.y=de.page.y/Ve,W.client.x=de.client.x/Ve,W.client.y=de.client.y/Ve,W.timeStamp=Ve),this._scopeFire("interactions:move",Xe),U||this.simulation||(this.interacting()&&(Xe.type=null,this.move(Xe)),this.pointerWasMoved&&Y(this.coords.prev,this.coords.cur))}},{key:"move",value:function(o){o&&o.event||oe(this.coords.delta),(o=ee({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},o||{})).phase="move",this._doPhase(o)}},{key:"pointerUp",value:function(o,d,m,C){var L=this.getPointerIndex(o);L===-1&&(L=this.updatePointer(o,d,m,!1));var U=/cancel$/i.test(d.type)?"cancel":"up";this._scopeFire("interactions:".concat(U),{pointer:o,pointerIndex:L,pointerInfo:this.pointers[L],event:d,eventTarget:m,type:U,curEventTarget:C,interaction:this}),this.simulation||this.end(d),this.removePointer(o,d)}},{key:"documentBlur",value:function(o){this.end(o),this._scopeFire("interactions:blur",{event:o,type:"blur",interaction:this})}},{key:"end",value:function(o){var d;this._ending=!0,o=o||this._latestPointer.event,this.interacting()&&(d=this._doPhase({event:o,interaction:this,phase:"end"})),this._ending=!1,d===!0&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(o){var d=Ie(o);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:K(this.pointers,function(m){return m.id===d})}},{key:"getPointerInfo",value:function(o){return this.pointers[this.getPointerIndex(o)]}},{key:"updatePointer",value:function(o,d,m,C){var L,U,W,de=Ie(o),Ve=this.getPointerIndex(o),he=this.pointers[Ve];return C=C!==!1&&(C||/(down|start)$/i.test(d.type)),he?he.pointer=o:(he=new gn(de,o,d,null,null),Ve=this.pointers.length,this.pointers.push(he)),we(this.coords.cur,this.pointers.map(function(Xe){return Xe.pointer}),this._now()),L=this.coords.delta,U=this.coords.prev,W=this.coords.cur,L.page.x=W.page.x-U.page.x,L.page.y=W.page.y-U.page.y,L.client.x=W.client.x-U.client.x,L.client.y=W.client.y-U.client.y,L.timeStamp=W.timeStamp-U.timeStamp,C&&(this.pointerIsDown=!0,he.downTime=this.coords.cur.timeStamp,he.downTarget=m,P(this.downPointer,o),this.interacting()||(Y(this.coords.start,this.coords.cur),Y(this.coords.prev,this.coords.cur),this.downEvent=d,this.pointerWasMoved=!1)),this._updateLatestPointer(o,d,m),this._scopeFire("interactions:update-pointer",{pointer:o,event:d,eventTarget:m,down:C,pointerInfo:he,pointerIndex:Ve,interaction:this}),Ve}},{key:"removePointer",value:function(o,d){var m=this.getPointerIndex(o);if(m!==-1){var C=this.pointers[m];this._scopeFire("interactions:remove-pointer",{pointer:o,event:d,eventTarget:null,pointerIndex:m,pointerInfo:C,interaction:this}),this.pointers.splice(m,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(o,d,m){this._latestPointer.pointer=o,this._latestPointer.event=d,this._latestPointer.eventTarget=m}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(o,d,m,C){return new Nr(this,o,this.prepared.name,d,this.element,m,C)}},{key:"_fireEvent",value:function(o){var d;(d=this.interactable)==null||d.fire(o),(!this.prevEvent||o.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=o)}},{key:"_doPhase",value:function(o){var d=o.event,m=o.phase,C=o.preEnd,L=o.type,U=this.rect;if(U&&m==="move"&&(Ae(this.edges,U,this.coords.delta[this.interactable.options.deltaSource]),U.width=U.right-U.left,U.height=U.bottom-U.top),this._scopeFire("interactions:before-action-".concat(m),o)===!1)return!1;var W=o.iEvent=this._createPreparedEvent(d,m,C,L);return this._scopeFire("interactions:action-".concat(m),o),m==="start"&&(this.prevEvent=W),this._fireEvent(W),this._scopeFire("interactions:after-action-".concat(m),o),!0}},{key:"_now",value:function(){return Date.now()}}]),i}();function Zl(i){xr(i.interaction)}function xr(i){if(!function(d){return!(!d.offset.pending.x&&!d.offset.pending.y)}(i))return!1;var o=i.offset.pending;return Hl(i.coords.cur,o),Hl(i.coords.delta,o),Ae(i.edges,i.rect,o),o.x=0,o.y=0,!0}function Vl(i){var o=i.x,d=i.y;this.offset.pending.x+=o,this.offset.pending.y+=d,this.offset.total.x+=o,this.offset.total.y+=d}function Hl(i,o){var d=i.page,m=i.client,C=o.x,L=o.y;d.x+=C,d.y+=L,m.x+=C,m.y+=L}Rn.offsetBy="";var Al={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(i){i.Interaction.prototype.offsetBy=Vl},listeners:{"interactions:new":function(i){i.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(i){return function(o){o.pointerIsDown&&(Hl(o.coords.cur,o.offset.total),o.offset.pending.x=0,o.offset.pending.y=0)}(i.interaction)},"interactions:before-action-start":Zl,"interactions:before-action-move":Zl,"interactions:before-action-end":function(i){var o=i.interaction;if(xr(o))return o.move({offset:!0}),o.end(),!1},"interactions:stop":function(i){var o=i.interaction;o.offset.total.x=0,o.offset.total.y=0,o.offset.pending.x=0,o.offset.pending.y=0}}},cr=Al,ar=function(){function i(o){u(this,i),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=o}return h(i,[{key:"start",value:function(o){var d=this.interaction,m=Pl(d);if(!m||!m.enabled)return!1;var C=d.coords.velocity.client,L=Ia(C.x,C.y),U=this.modification||(this.modification=new pn(d));if(U.copyFrom(d.modification),this.t0=d._now(),this.allowResume=m.allowResume,this.v0=L,this.currentOffset={x:0,y:0},this.startCoords=d.coords.cur.page,this.modifierArg=U.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-d.coords.cur.timeStamp<50&&L>m.minSpeed&&L>m.endSpeed)this.startInertia();else{if(U.result=U.setAll(this.modifierArg),!U.result.changed)return!1;this.startSmoothEnd()}return d.modification.result.rect=null,d.offsetBy(this.targetOffset),d._doPhase({interaction:d,event:o,phase:"inertiastart"}),d.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),d.modification.result.rect=null,this.active=!0,d.simulation=this,!0}},{key:"startInertia",value:function(){var o=this,d=this.interaction.coords.velocity.client,m=Pl(this.interaction),C=m.resistance,L=-Math.log(m.endSpeed/this.v0)/C;this.targetOffset={x:(d.x-L)/C,y:(d.y-L)/C},this.te=L,this.lambda_v0=C/this.v0,this.one_ve_v0=1-m.endSpeed/this.v0;var U=this.modification,W=this.modifierArg;W.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},U.result=U.setAll(W),U.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+U.result.delta.x,y:this.targetOffset.y+U.result.delta.y}),this.onNextFrame(function(){return o.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var o=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame(function(){return o.smoothEndTick()})}},{key:"onNextFrame",value:function(o){var d=this;this.timeout=oa.request(function(){d.active&&o()})}},{key:"inertiaTick",value:function(){var o,d,m,C,L,U,W,de=this,Ve=this.interaction,he=Pl(Ve).resistance,Xe=(Ve._now()-this.t0)/1e3;if(Xe<this.te){var Ta,tl=1-(Math.exp(-he*Xe)-this.lambda_v0)/this.one_ve_v0;this.isModified?(o=0,d=0,m=this.targetOffset.x,C=this.targetOffset.y,L=this.modifiedOffset.x,U=this.modifiedOffset.y,Ta={x:Or(W=tl,o,m,L),y:Or(W,d,C,U)}):Ta={x:this.targetOffset.x*tl,y:this.targetOffset.y*tl};var rl={x:Ta.x-this.currentOffset.x,y:Ta.y-this.currentOffset.y};this.currentOffset.x+=rl.x,this.currentOffset.y+=rl.y,Ve.offsetBy(rl),Ve.move(),this.onNextFrame(function(){return de.inertiaTick()})}else Ve.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var o=this,d=this.interaction,m=d._now()-this.t0,C=Pl(d).smoothEndDuration;if(m<C){var L={x:kn(m,0,this.targetOffset.x,C),y:kn(m,0,this.targetOffset.y,C)},U={x:L.x-this.currentOffset.x,y:L.y-this.currentOffset.y};this.currentOffset.x+=U.x,this.currentOffset.y+=U.y,d.offsetBy(U),d.move({skipModifiers:this.modifierCount}),this.onNextFrame(function(){return o.smoothEndTick()})}else d.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(o){var d=o.pointer,m=o.event,C=o.eventTarget,L=this.interaction;L.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),L.updatePointer(d,m,C,!0),L._doPhase({interaction:L,event:m,phase:"resume"}),Y(L.coords.prev,L.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,oa.cancel(this.timeout)}}]),i}();function Pl(i){var o=i.interactable,d=i.prepared;return o&&o.options&&d.name&&o.options[d.name].inertia}var Mr={id:"inertia",before:["modifiers","actions"],install:function(i){var o=i.defaults;i.usePlugin(cr),i.usePlugin(Il),i.actions.phases.inertiastart=!0,i.actions.phases.resume=!0,o.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(i){var o=i.interaction;o.inertia=new ar(o)},"interactions:before-action-end":function(i){var o=i.interaction,d=i.event;return(!o._interacting||o.simulation||!o.inertia.start(d))&&null},"interactions:down":function(i){var o=i.interaction,d=i.eventTarget,m=o.inertia;if(m.active)for(var C=d;g.element(C);){if(C===o.element){m.resume(i);break}C=Sa(C)}},"interactions:stop":function(i){var o=i.interaction.inertia;o.active&&o.stop()},"interactions:before-action-resume":function(i){var o=i.interaction.modification;o.stop(i),o.start(i,i.interaction.coords.cur.page),o.applyToInteraction(i)},"interactions:before-action-inertiastart":function(i){return i.interaction.modification.setAndApply(i)},"interactions:action-resume":Zr,"interactions:action-inertiastart":Zr,"interactions:after-action-inertiastart":function(i){return i.interaction.modification.restoreInteractionCoords(i)},"interactions:after-action-resume":function(i){return i.interaction.modification.restoreInteractionCoords(i)}}};function Or(i,o,d,m){var C=1-i;return C*C*o+2*C*i*d+i*i*m}function kn(i,o,d,m){return-d*(i/=m)*(i-2)+o}var Cn=Mr;function fn(i,o){for(var d=0;d<o.length;d++){var m=o[d];if(i.immediatePropagationStopped)break;m(i)}}var Pn=function(){function i(o){u(this,i),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=ee({},o||{})}return h(i,[{key:"fire",value:function(o){var d,m=this.global;(d=this.types[o.type])&&fn(o,d),!o.propagationStopped&&m&&(d=m[o.type])&&fn(o,d)}},{key:"on",value:function(o,d){var m=Ge(o,d);for(o in m)this.types[o]=re(this.types[o]||[],m[o])}},{key:"off",value:function(o,d){var m=Ge(o,d);for(o in m){var C=this.types[o];if(C&&C.length)for(var L=0,U=m[o];L<U.length;L++){var W=U[L],de=C.indexOf(W);de!==-1&&C.splice(de,1)}}}},{key:"getRect",value:function(o){return null}}]),i}(),zn=function(){function i(o){u(this,i),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=o,P(this,o)}return h(i,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),i}();function hn(i){return g.object(i)?{capture:!!i.capture,passive:!!i.passive}:{capture:!!i,passive:!1}}function En(i,o){return i===o||(typeof i=="boolean"?!!o.capture===i&&!o.passive:!!i.capture==!!o.capture&&!!i.passive==!!o.passive)}var Mn={id:"events",install:function(i){var o,d=[],m={},C=[],L={add:U,remove:W,addDelegate:function(he,Xe,Ta,tl,rl){var sl=hn(rl);if(!m[Ta]){m[Ta]=[];for(var Cl=0;Cl<C.length;Cl++){var _l=C[Cl];U(_l,Ta,de),U(_l,Ta,Ve,!0)}}var yl=m[Ta],jl=je(yl,function($l){return $l.selector===he&&$l.context===Xe});jl||(jl={selector:he,context:Xe,listeners:[]},yl.push(jl)),jl.listeners.push({func:tl,options:sl})},removeDelegate:function(he,Xe,Ta,tl,rl){var sl,Cl=hn(rl),_l=m[Ta],yl=!1;if(_l)for(sl=_l.length-1;sl>=0;sl--){var jl=_l[sl];if(jl.selector===he&&jl.context===Xe){for(var $l=jl.listeners,Ol=$l.length-1;Ol>=0;Ol--){var zl=$l[Ol];if(zl.func===tl&&En(zl.options,Cl)){$l.splice(Ol,1),$l.length||(_l.splice(sl,1),W(Xe,Ta,de),W(Xe,Ta,Ve,!0)),yl=!0;break}}if(yl)break}}},delegateListener:de,delegateUseCapture:Ve,delegatedEvents:m,documents:C,targets:d,supportsOptions:!1,supportsPassive:!1};function U(he,Xe,Ta,tl){if(he.addEventListener){var rl=hn(tl),sl=je(d,function(Cl){return Cl.eventTarget===he});sl||(sl={eventTarget:he,events:{}},d.push(sl)),sl.events[Xe]||(sl.events[Xe]=[]),je(sl.events[Xe],function(Cl){return Cl.func===Ta&&En(Cl.options,rl)})||(he.addEventListener(Xe,Ta,L.supportsOptions?rl:rl.capture),sl.events[Xe].push({func:Ta,options:rl}))}}function W(he,Xe,Ta,tl){if(he.addEventListener&&he.removeEventListener){var rl=K(d,function(Lr){return Lr.eventTarget===he}),sl=d[rl];if(sl&&sl.events)if(Xe!=="all"){var Cl=!1,_l=sl.events[Xe];if(_l){if(Ta==="all"){for(var yl=_l.length-1;yl>=0;yl--){var jl=_l[yl];W(he,Xe,jl.func,jl.options)}return}for(var $l=hn(tl),Ol=0;Ol<_l.length;Ol++){var zl=_l[Ol];if(zl.func===Ta&&En(zl.options,$l)){he.removeEventListener(Xe,Ta,L.supportsOptions?$l:$l.capture),_l.splice(Ol,1),_l.length===0&&(delete sl.events[Xe],Cl=!0);break}}}Cl&&!Object.keys(sl.events).length&&d.splice(rl,1)}else for(Xe in sl.events)sl.events.hasOwnProperty(Xe)&&W(he,Xe,"all")}}function de(he,Xe){for(var Ta=hn(Xe),tl=new zn(he),rl=m[he.type],sl=$e(he)[0],Cl=sl;g.element(Cl);){for(var _l=0;_l<rl.length;_l++){var yl=rl[_l],jl=yl.selector,$l=yl.context;if(te(Cl,jl)&&pe($l,sl)&&pe($l,Cl)){var Ol=yl.listeners;tl.currentTarget=Cl;for(var zl=0;zl<Ol.length;zl++){var Lr=Ol[zl];En(Lr.options,Ta)&&Lr.func(tl)}}}Cl=Sa(Cl)}}function Ve(he){return de(he,!0)}return(o=i.document)==null||o.createElement("div").addEventListener("test",null,{get capture(){return L.supportsOptions=!0},get passive(){return L.supportsPassive=!0}}),i.events=L,L}},Kr={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(i){for(var o=0,d=Kr.methodOrder;o<d.length;o++){var m=d[o],C=Kr[m](i);if(C)return C}return null},simulationResume:function(i){var o=i.pointerType,d=i.eventType,m=i.eventTarget,C=i.scope;if(!/down|start/i.test(d))return null;for(var L=0,U=C.interactions.list;L<U.length;L++){var W=U[L],de=m;if(W.simulation&&W.simulation.allowResume&&W.pointerType===o)for(;de;){if(de===W.element)return W;de=Sa(de)}}return null},mouseOrPen:function(i){var o,d=i.pointerId,m=i.pointerType,C=i.eventType,L=i.scope;if(m!=="mouse"&&m!=="pen")return null;for(var U=0,W=L.interactions.list;U<W.length;U++){var de=W[U];if(de.pointerType===m){if(de.simulation&&!Sn(de,d))continue;if(de.interacting())return de;o||(o=de)}}if(o)return o;for(var Ve=0,he=L.interactions.list;Ve<he.length;Ve++){var Xe=he[Ve];if(!(Xe.pointerType!==m||/down/i.test(C)&&Xe.simulation))return Xe}return null},hasPointer:function(i){for(var o=i.pointerId,d=0,m=i.scope.interactions.list;d<m.length;d++){var C=m[d];if(Sn(C,o))return C}return null},idle:function(i){for(var o=i.pointerType,d=0,m=i.scope.interactions.list;d<m.length;d++){var C=m[d];if(C.pointers.length===1){var L=C.interactable;if(L&&(!L.options.gesture||!L.options.gesture.enabled))continue}else if(C.pointers.length>=2)continue;if(!C.interacting()&&o===C.pointerType)return C}return null}};function Sn(i,o){return i.pointers.some(function(d){return d.id===o})}var Fn=Kr,Tr=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function jn(i,o){return function(d){var m=o.interactions.list,C=ka(d),L=$e(d),U=L[0],W=L[1],de=[];if(/^touch/.test(d.type)){o.prevTouchTime=o.now();for(var Ve=0,he=d.changedTouches;Ve<he.length;Ve++){var Xe=he[Ve],Ta={pointer:Xe,pointerId:Ie(Xe),pointerType:C,eventType:d.type,eventTarget:U,curEventTarget:W,scope:o},tl=on(Ta);de.push([Ta.pointer,Ta.eventTarget,Ta.curEventTarget,tl])}}else{var rl=!1;if(!X.supportsPointerEvent&&/mouse/.test(d.type)){for(var sl=0;sl<m.length&&!rl;sl++)rl=m[sl].pointerType!=="mouse"&&m[sl].pointerIsDown;rl=rl||o.now()-o.prevTouchTime<500||d.timeStamp===0}if(!rl){var Cl={pointer:d,pointerId:Ie(d),pointerType:C,eventType:d.type,curEventTarget:W,eventTarget:U,scope:o},_l=on(Cl);de.push([Cl.pointer,Cl.eventTarget,Cl.curEventTarget,_l])}}for(var yl=0;yl<de.length;yl++){var jl=de[yl],$l=jl[0],Ol=jl[1],zl=jl[2];jl[3][i]($l,d,Ol,zl)}}}function on(i){var o=i.pointerType,d=i.scope,m={interaction:Fn.search(i),searchDetails:i};return d.fire("interactions:find",m),m.interaction||d.interactions.new({pointerType:o})}function Dt(i,o){var d=i.doc,m=i.scope,C=i.options,L=m.interactions.docEvents,U=m.events,W=U[o];for(var de in m.browser.isIOS&&!C.events&&(C.events={passive:!1}),U.delegatedEvents)W(d,de,U.delegateListener),W(d,de,U.delegateUseCapture,!0);for(var Ve=C&&C.events,he=0;he<L.length;he++){var Xe=L[he];W(d,Xe.type,Xe.listener,Ve)}}var zo={id:"core/interactions",install:function(i){for(var o={},d=0;d<Tr.length;d++){var m=Tr[d];o[m]=jn(m,i)}var C,L=X.pEventTypes;function U(){for(var W=0,de=i.interactions.list;W<de.length;W++){var Ve=de[W];if(Ve.pointerIsDown&&Ve.pointerType==="touch"&&!Ve._interacting)for(var he=function(){var tl=Ta[Xe];i.documents.some(function(rl){return pe(rl.doc,tl.downTarget)})||Ve.removePointer(tl.pointer,tl.event)},Xe=0,Ta=Ve.pointers;Xe<Ta.length;Xe++)he()}}(C=ne.PointerEvent?[{type:L.down,listener:U},{type:L.down,listener:o.pointerDown},{type:L.move,listener:o.pointerMove},{type:L.up,listener:o.pointerUp},{type:L.cancel,listener:o.pointerUp}]:[{type:"mousedown",listener:o.pointerDown},{type:"mousemove",listener:o.pointerMove},{type:"mouseup",listener:o.pointerUp},{type:"touchstart",listener:U},{type:"touchstart",listener:o.pointerDown},{type:"touchmove",listener:o.pointerMove},{type:"touchend",listener:o.pointerUp},{type:"touchcancel",listener:o.pointerUp}]).push({type:"blur",listener:function(W){for(var de=0,Ve=i.interactions.list;de<Ve.length;de++)Ve[de].documentBlur(W)}}),i.prevTouchTime=0,i.Interaction=function(W){y(Ve,W);var de=A(Ve);function Ve(){return u(this,Ve),de.apply(this,arguments)}return h(Ve,[{key:"pointerMoveTolerance",get:function(){return i.interactions.pointerMoveTolerance},set:function(he){i.interactions.pointerMoveTolerance=he}},{key:"_now",value:function(){return i.now()}}]),Ve}(bn),i.interactions={list:[],new:function(W){W.scopeFire=function(Ve,he){return i.fire(Ve,he)};var de=new i.Interaction(W);return i.interactions.list.push(de),de},listeners:o,docEvents:C,pointerMoveTolerance:1},i.usePlugin(dn)},listeners:{"scope:add-document":function(i){return Dt(i,"add")},"scope:remove-document":function(i){return Dt(i,"remove")},"interactable:unset":function(i,o){for(var d=i.interactable,m=o.interactions.list.length-1;m>=0;m--){var C=o.interactions.list[m];C.interactable===d&&(C.stop(),o.fire("interactions:destroy",{interaction:C}),C.destroy(),o.interactions.list.length>2&&o.interactions.list.splice(m,1))}}},onDocSignal:Dt,doOnInteractions:jn,methodNames:Tr},Mo=zo,xn=function(i){return i[i.On=0]="On",i[i.Off=1]="Off",i}(xn||{}),Oo=function(){function i(o,d,m,C){u(this,i),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new Pn,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=d.actions,this.target=o,this._context=d.context||m,this._win=V(Ha(o)?this._context:o),this._doc=this._win.document,this._scopeEvents=C,this.set(d)}return h(i,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(o,d){return g.func(d.onstart)&&this.on("".concat(o,"start"),d.onstart),g.func(d.onmove)&&this.on("".concat(o,"move"),d.onmove),g.func(d.onend)&&this.on("".concat(o,"end"),d.onend),g.func(d.oninertiastart)&&this.on("".concat(o,"inertiastart"),d.oninertiastart),this}},{key:"updatePerActionListeners",value:function(o,d,m){var C,L=this,U=(C=this._actions.map[o])==null?void 0:C.filterEventType,W=function(de){return(U==null||U(de))&&Xr(de,L._actions)};(g.array(d)||g.object(d))&&this._onOff(xn.Off,o,d,void 0,W),(g.array(m)||g.object(m))&&this._onOff(xn.On,o,m,void 0,W)}},{key:"setPerAction",value:function(o,d){var m=this._defaults;for(var C in d){var L=C,U=this.options[o],W=d[L];L==="listeners"&&this.updatePerActionListeners(o,U.listeners,W),g.array(W)?U[L]=Se(W):g.plainObject(W)?(U[L]=ee(U[L]||{},Ur(W)),g.object(m.perAction[L])&&"enabled"in m.perAction[L]&&(U[L].enabled=W.enabled!==!1)):g.bool(W)&&g.object(m.perAction[L])?U[L].enabled=W:U[L]=W}}},{key:"getRect",value:function(o){return o=o||(g.element(this.target)?this.target:null),g.string(this.target)&&(o=o||this._context.querySelector(this.target)),ia(o)}},{key:"rectChecker",value:function(o){var d=this;return g.func(o)?(this.getRect=function(m){var C=ee({},o.apply(d,m));return"width"in C||(C.width=C.right-C.left,C.height=C.bottom-C.top),C},this):o===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(o,d){if(Ha(d)||g.object(d)){for(var m in this.options[o]=d,this._actions.map)this.options[m][o]=d;return this}return this.options[o]}},{key:"origin",value:function(o){return this._backCompatOption("origin",o)}},{key:"deltaSource",value:function(o){return o==="page"||o==="client"?(this.options.deltaSource=o,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var o=this.target;return g.string(o)?Array.from(this._context.querySelectorAll(o)):g.func(o)&&o.getAllElements?o.getAllElements():g.element(o)?[o]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(o){return this._context===o.ownerDocument||pe(this._context,o)}},{key:"testIgnoreAllow",value:function(o,d,m){return!this.testIgnore(o.ignoreFrom,d,m)&&this.testAllow(o.allowFrom,d,m)}},{key:"testAllow",value:function(o,d,m){return!o||!!g.element(m)&&(g.string(o)?ye(m,o,d):!!g.element(o)&&pe(o,m))}},{key:"testIgnore",value:function(o,d,m){return!(!o||!g.element(m))&&(g.string(o)?ye(m,o,d):!!g.element(o)&&pe(o,m))}},{key:"fire",value:function(o){return this.events.fire(o),this}},{key:"_onOff",value:function(o,d,m,C,L){g.object(d)&&!g.array(d)&&(C=m,m=null);var U=Ge(d,m,L);for(var W in U){W==="wheel"&&(W=X.wheelEvent);for(var de=0,Ve=U[W];de<Ve.length;de++){var he=Ve[de];Xr(W,this._actions)?this.events[o===xn.On?"on":"off"](W,he):g.string(this.target)?this._scopeEvents[o===xn.On?"addDelegate":"removeDelegate"](this.target,this._context,W,he,C):this._scopeEvents[o===xn.On?"add":"remove"](this.target,W,he,C)}}return this}},{key:"on",value:function(o,d,m){return this._onOff(xn.On,o,d,m)}},{key:"off",value:function(o,d,m){return this._onOff(xn.Off,o,d,m)}},{key:"set",value:function(o){var d=this._defaults;for(var m in g.object(o)||(o={}),this.options=Ur(d.base),this._actions.methodDict){var C=m,L=this._actions.methodDict[C];this.options[C]={},this.setPerAction(C,ee(ee({},d.perAction),d.actions[C])),this[L](o[C])}for(var U in o)U!=="getRect"?g.func(this[U])&&this[U](o[U]):this.rectChecker(o.getRect);return this}},{key:"unset",value:function(){if(g.string(this.target))for(var o in this._scopeEvents.delegatedEvents)for(var d=this._scopeEvents.delegatedEvents[o],m=d.length-1;m>=0;m--){var C=d[m],L=C.selector,U=C.context,W=C.listeners;L===this.target&&U===this._context&&d.splice(m,1);for(var de=W.length-1;de>=0;de--)this._scopeEvents.removeDelegate(this.target,this._context,o,W[de][0],W[de][1])}else this._scopeEvents.remove(this.target,"all")}}]),i}(),Io=function(){function i(o){var d=this;u(this,i),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=o,o.addListeners({"interactable:unset":function(m){var C=m.interactable,L=C.target,U=g.string(L)?d.selectorMap[L]:L[d.scope.id],W=K(U,function(de){return de===C});U.splice(W,1)}})}return h(i,[{key:"new",value:function(o,d){d=ee(d||{},{actions:this.scope.actions});var m=new this.scope.Interactable(o,d,this.scope.document,this.scope.events);return this.scope.addDocument(m._doc),this.list.push(m),g.string(o)?(this.selectorMap[o]||(this.selectorMap[o]=[]),this.selectorMap[o].push(m)):(m.target[this.scope.id]||Object.defineProperty(o,this.scope.id,{value:[],configurable:!0}),o[this.scope.id].push(m)),this.scope.fire("interactable:new",{target:o,options:d,interactable:m,win:this.scope._win}),m}},{key:"getExisting",value:function(o,d){var m=d&&d.context||this.scope.document,C=g.string(o),L=C?this.selectorMap[o]:o[this.scope.id];if(L)return je(L,function(U){return U._context===m&&(C||U.inContext(o))})}},{key:"forEachMatch",value:function(o,d){for(var m=0,C=this.list;m<C.length;m++){var L=C[m],U=void 0;if((g.string(L.target)?g.element(o)&&te(o,L.target):o===L.target)&&L.inContext(o)&&(U=d(L)),U!==void 0)return U}}}]),i}(),Lo=function(){function i(){var o=this;u(this,i),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=X,this.defaults=Ur(qr),this.Eventable=Pn,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(m){var C=function L(U,W){var de=m.interactables.getExisting(U,W);return de||((de=m.interactables.new(U,W)).events.global=L.globalEvents),de};return C.getPointerAverage=fe,C.getTouchBBox=Je,C.getTouchDistance=Ze,C.getTouchAngle=Fe,C.getElementRect=ia,C.getElementClientRect=Ne,C.matchesSelector=te,C.closest=Ke,C.globalEvents={},C.version="1.10.27",C.scope=m,C.use=function(L,U){return this.scope.usePlugin(L,U),this},C.isSet=function(L,U){return!!this.scope.interactables.get(L,U&&U.context)},C.on=Ba(function(L,U,W){if(g.string(L)&&L.search(" ")!==-1&&(L=L.trim().split(/ +/)),g.array(L)){for(var de=0,Ve=L;de<Ve.length;de++){var he=Ve[de];this.on(he,U,W)}return this}if(g.object(L)){for(var Xe in L)this.on(Xe,L[Xe],U);return this}return Xr(L,this.scope.actions)?this.globalEvents[L]?this.globalEvents[L].push(U):this.globalEvents[L]=[U]:this.scope.events.add(this.scope.document,L,U,{options:W}),this},"The interact.on() method is being deprecated"),C.off=Ba(function(L,U,W){if(g.string(L)&&L.search(" ")!==-1&&(L=L.trim().split(/ +/)),g.array(L)){for(var de=0,Ve=L;de<Ve.length;de++){var he=Ve[de];this.off(he,U,W)}return this}if(g.object(L)){for(var Xe in L)this.off(Xe,L[Xe],U);return this}var Ta;return Xr(L,this.scope.actions)?L in this.globalEvents&&(Ta=this.globalEvents[L].indexOf(U))!==-1&&this.globalEvents[L].splice(Ta,1):this.scope.events.remove(this.scope.document,L,U,W),this},"The interact.off() method is being deprecated"),C.debug=function(){return this.scope},C.supportsTouch=function(){return X.supportsTouch},C.supportsPointerEvent=function(){return X.supportsPointerEvent},C.stop=function(){for(var L=0,U=this.scope.interactions.list;L<U.length;L++)U[L].stop();return this},C.pointerMoveTolerance=function(L){return g.number(L)?(this.scope.interactions.pointerMoveTolerance=L,this):this.scope.interactions.pointerMoveTolerance},C.addDocument=function(L,U){this.scope.addDocument(L,U)},C.removeDocument=function(L){this.scope.removeDocument(L)},C}(this),this.InteractEvent=Nr,this.Interactable=void 0,this.interactables=new Io(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(m){return o.removeDocument(m.target)};var d=this;this.Interactable=function(m){y(L,m);var C=A(L);function L(){return u(this,L),C.apply(this,arguments)}return h(L,[{key:"_defaults",get:function(){return d.defaults}},{key:"set",value:function(U){return _(c(L.prototype),"set",this).call(this,U),d.fire("interactable:set",{options:U,interactable:this}),this}},{key:"unset",value:function(){_(c(L.prototype),"unset",this).call(this);var U=d.interactables.list.indexOf(this);U<0||(d.interactables.list.splice(U,1),d.fire("interactable:unset",{interactable:this}))}}]),L}(Oo)}return h(i,[{key:"addListeners",value:function(o,d){this.listenerMaps.push({id:d,map:o})}},{key:"fire",value:function(o,d){for(var m=0,C=this.listenerMaps;m<C.length;m++){var L=C[m].map[o];if(L&&L(d,this,o)===!1)return!1}}},{key:"init",value:function(o){return this.isInitialized?this:function(d,m){return d.isInitialized=!0,g.window(m)&&S(m),ne.init(m),X.init(m),oa.init(m),d.window=m,d.document=m.document,d.usePlugin(Mo),d.usePlugin(Mn),d}(this,o)}},{key:"pluginIsInstalled",value:function(o){var d=o.id;return d?!!this._plugins.map[d]:this._plugins.list.indexOf(o)!==-1}},{key:"usePlugin",value:function(o,d){if(!this.isInitialized)return this;if(this.pluginIsInstalled(o))return this;if(o.id&&(this._plugins.map[o.id]=o),this._plugins.list.push(o),o.install&&o.install(this,d),o.listeners&&o.before){for(var m=0,C=this.listenerMaps.length,L=o.before.reduce(function(W,de){return W[de]=!0,W[Bt(de)]=!0,W},{});m<C;m++){var U=this.listenerMaps[m].id;if(U&&(L[U]||L[Bt(U)]))break}this.listenerMaps.splice(m,0,{id:o.id,map:o.listeners})}else o.listeners&&this.listenerMaps.push({id:o.id,map:o.listeners});return this}},{key:"addDocument",value:function(o,d){if(this.getDocIndex(o)!==-1)return!1;var m=V(o);d=d?ee({},d):{},this.documents.push({doc:o,options:d}),this.events.documents.push(o),o!==this.document&&this.events.add(m,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:o,window:m,scope:this,options:d})}},{key:"removeDocument",value:function(o){var d=this.getDocIndex(o),m=V(o),C=this.documents[d].options;this.events.remove(m,"unload",this.onWindowUnload),this.documents.splice(d,1),this.events.documents.splice(d,1),this.fire("scope:remove-document",{doc:o,window:m,scope:this,options:C})}},{key:"getDocIndex",value:function(o){for(var d=0;d<this.documents.length;d++)if(this.documents[d].doc===o)return d;return-1}},{key:"getDocOptions",value:function(o){var d=this.getDocIndex(o);return d===-1?null:this.documents[d].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),i}();function Bt(i){return i&&i.replace(/\/.*$/,"")}var Ut=new Lo,Ir=Ut.interactStatic,Vo=typeof globalThis<"u"?globalThis:window;Ut.init(Vo);var $o=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(i){var o=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(m){var C=m[0],L=m[1];return C in i||L in i}),d=function(m,C){for(var L=i.range,U=i.limits,W=U===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:U,de=i.offset,Ve=de===void 0?{x:0,y:0}:de,he={range:L,grid:i,x:null,y:null},Xe=0;Xe<o.length;Xe++){var Ta=o[Xe],tl=Ta[0],rl=Ta[1],sl=Math.round((m-Ve.x)/i[tl]),Cl=Math.round((C-Ve.y)/i[rl]);he[tl]=Math.max(W.left,Math.min(W.right,sl*i[tl]+Ve.x)),he[rl]=Math.max(W.top,Math.min(W.bottom,Cl*i[rl]+Ve.y))}return he};return d.grid=i,d.coordFields=o,d}}),Nt={id:"snappers",install:function(i){var o=i.interactStatic;o.snappers=ee(o.snappers||{},$o),o.createSnapGrid=o.snappers.grid}},Ro=Nt,Tt={start:function(i){var o=i.state,d=i.rect,m=i.edges,C=i.pageCoords,L=o.options,U=L.ratio,W=L.enabled,de=o.options,Ve=de.equalDelta,he=de.modifiers;U==="preserve"&&(U=d.width/d.height),o.startCoords=ee({},C),o.startRect=ee({},d),o.ratio=U,o.equalDelta=Ve;var Xe=o.linkedEdges={top:m.top||m.left&&!m.bottom,left:m.left||m.top&&!m.right,bottom:m.bottom||m.right&&!m.top,right:m.right||m.bottom&&!m.left};if(o.xIsPrimaryAxis=!(!m.left&&!m.right),o.equalDelta){var Ta=(Xe.left?1:-1)*(Xe.top?1:-1);o.edgeSign={x:Ta,y:Ta}}else o.edgeSign={x:Xe.left?-1:1,y:Xe.top?-1:1};if(W!==!1&&ee(m,Xe),he!=null&&he.length){var tl=new pn(i.interaction);tl.copyFrom(i.interaction.modification),tl.prepareStates(he),o.subModification=tl,tl.startAll(t({},i))}},set:function(i){var o=i.state,d=i.rect,m=i.coords,C=o.linkedEdges,L=ee({},m),U=o.equalDelta?qt:Kt;if(ee(i.edges,C),U(o,o.xIsPrimaryAxis,m,d),!o.subModification)return null;var W=ee({},d);Ae(C,W,{x:m.x-L.x,y:m.y-L.y});var de=o.subModification.setAll(t(t({},i),{},{rect:W,edges:C,pageCoords:m,prevCoords:m,prevRect:W})),Ve=de.delta;return de.changed&&(U(o,Math.abs(Ve.x)>Math.abs(Ve.y),de.coords,de.rect),ee(m,de.coords)),de.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function qt(i,o,d){var m=i.startCoords,C=i.edgeSign;o?d.y=m.y+(d.x-m.x)*C.y:d.x=m.x+(d.y-m.y)*C.x}function Kt(i,o,d,m){var C=i.startRect,L=i.startCoords,U=i.ratio,W=i.edgeSign;if(o){var de=m.width/U;d.y=L.y+(de-C.height)*W.y}else{var Ve=m.height*U;d.x=L.x+(Ve-C.width)*W.x}}var Po=Dr(Tt,"aspectRatio"),Wt=function(){};Wt._defaults={};var ot=Wt;function Qr(i,o,d){return g.func(i)?Pe(i,o.interactable,o.element,[d.x,d.y,o]):Pe(i,o.interactable,o.element)}var Hn={start:function(i){var o=i.rect,d=i.startOffset,m=i.state,C=i.interaction,L=i.pageCoords,U=m.options,W=U.elementRect,de=ee({left:0,top:0,right:0,bottom:0},U.offset||{});if(o&&W){var Ve=Qr(U.restriction,C,L);if(Ve){var he=Ve.right-Ve.left-o.width,Xe=Ve.bottom-Ve.top-o.height;he<0&&(de.left+=he,de.right+=he),Xe<0&&(de.top+=Xe,de.bottom+=Xe)}de.left+=d.left-o.width*W.left,de.top+=d.top-o.height*W.top,de.right+=d.right-o.width*(1-W.right),de.bottom+=d.bottom-o.height*(1-W.bottom)}m.offset=de},set:function(i){var o=i.coords,d=i.interaction,m=i.state,C=m.options,L=m.offset,U=Qr(C.restriction,d,o);if(U){var W=function(de){return!de||"left"in de&&"top"in de||((de=ee({},de)).left=de.x||0,de.top=de.y||0,de.right=de.right||de.left+de.width,de.bottom=de.bottom||de.top+de.height),de}(U);o.x=Math.max(Math.min(W.right-L.right,o.x),W.left+L.left),o.y=Math.max(Math.min(W.bottom-L.bottom,o.y),W.top+L.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},At=Dr(Hn,"restrict"),Yt={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Gt={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function Jt(i,o){for(var d=0,m=["top","left","bottom","right"];d<m.length;d++){var C=m[d];C in i||(i[C]=o[C])}return i}var Un={noInner:Yt,noOuter:Gt,start:function(i){var o,d=i.interaction,m=i.startOffset,C=i.state,L=C.options;L&&(o=ga(Qr(L.offset,d,d.coords.start.page))),o=o||{x:0,y:0},C.offset={top:o.y+m.top,left:o.x+m.left,bottom:o.y-m.bottom,right:o.x-m.right}},set:function(i){var o=i.coords,d=i.edges,m=i.interaction,C=i.state,L=C.offset,U=C.options;if(d){var W=ee({},o),de=Qr(U.inner,m,W)||{},Ve=Qr(U.outer,m,W)||{};Jt(de,Yt),Jt(Ve,Gt),d.top?o.y=Math.min(Math.max(Ve.top+L.top,W.y),de.top+L.top):d.bottom&&(o.y=Math.max(Math.min(Ve.bottom+L.bottom,W.y),de.bottom+L.bottom)),d.left?o.x=Math.min(Math.max(Ve.left+L.left,W.x),de.left+L.left):d.right&&(o.x=Math.max(Math.min(Ve.right+L.right,W.x),de.right+L.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},Xt=Dr(Un,"restrictEdges"),qn=ee({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(i){}},Hn.defaults),Zt=Dr({start:Hn.start,set:Hn.set,defaults:qn},"restrictRect"),Qt={width:-1/0,height:-1/0},Kn={width:1/0,height:1/0},Fo=Dr({start:function(i){return Un.start(i)},set:function(i){var o=i.interaction,d=i.state,m=i.rect,C=i.edges,L=d.options;if(C){var U=He(Qr(L.min,o,i.coords))||Qt,W=He(Qr(L.max,o,i.coords))||Kn;d.options={endOnly:L.endOnly,inner:ee({},Un.noInner),outer:ee({},Un.noOuter)},C.top?(d.options.inner.top=m.bottom-U.height,d.options.outer.top=m.bottom-W.height):C.bottom&&(d.options.inner.bottom=m.top+U.height,d.options.outer.bottom=m.top+W.height),C.left?(d.options.inner.left=m.right-U.width,d.options.outer.left=m.right-W.width):C.right&&(d.options.inner.right=m.left+U.width,d.options.outer.right=m.left+W.width),Un.set(i),d.options=L}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),it={start:function(i){var o,d=i.interaction,m=i.interactable,C=i.element,L=i.rect,U=i.state,W=i.startOffset,de=U.options,Ve=de.offsetWithOrigin?function(Ta){var tl=Ta.interaction.element,rl=ga(Pe(Ta.state.options.origin,null,null,[tl])),sl=rl||Re(Ta.interactable,tl,Ta.interaction.prepared.name);return sl}(i):{x:0,y:0};if(de.offset==="startCoords")o={x:d.coords.start.page.x,y:d.coords.start.page.y};else{var he=Pe(de.offset,m,C,[d]);(o=ga(he)||{x:0,y:0}).x+=Ve.x,o.y+=Ve.y}var Xe=de.relativePoints;U.offsets=L&&Xe&&Xe.length?Xe.map(function(Ta,tl){return{index:tl,relativePoint:Ta,x:W.left-L.width*Ta.x+o.x,y:W.top-L.height*Ta.y+o.y}}):[{index:0,relativePoint:null,x:o.x,y:o.y}]},set:function(i){var o=i.interaction,d=i.coords,m=i.state,C=m.options,L=m.offsets,U=Re(o.interactable,o.element,o.prepared.name),W=ee({},d),de=[];C.offsetWithOrigin||(W.x-=U.x,W.y-=U.y);for(var Ve=0,he=L;Ve<he.length;Ve++)for(var Xe=he[Ve],Ta=W.x-Xe.x,tl=W.y-Xe.y,rl=0,sl=C.targets.length;rl<sl;rl++){var Cl=C.targets[rl],_l=void 0;(_l=g.func(Cl)?Cl(Ta,tl,o._proxy,Xe,rl):Cl)&&de.push({x:(g.number(_l.x)?_l.x:Ta)+Xe.x,y:(g.number(_l.y)?_l.y:tl)+Xe.y,range:g.number(_l.range)?_l.range:C.range,source:Cl,index:rl,offset:Xe})}for(var yl={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},jl=0;jl<de.length;jl++){var $l=de[jl],Ol=$l.range,zl=$l.x-W.x,Lr=$l.y-W.y,mr=Ia(zl,Lr),Fr=mr<=Ol;Ol===1/0&&yl.inRange&&yl.range!==1/0&&(Fr=!1),yl.target&&!(Fr?yl.inRange&&Ol!==1/0?mr/Ol<yl.distance/yl.range:Ol===1/0&&yl.range!==1/0||mr<yl.distance:!yl.inRange&&mr<yl.distance)||(yl.target=$l,yl.distance=mr,yl.range=Ol,yl.inRange=Fr,yl.delta.x=zl,yl.delta.y=Lr)}return yl.inRange&&(d.x=yl.target.x,d.y=yl.target.y),m.closest=yl,yl},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},Wn=Dr(it,"snap"),st={start:function(i){var o=i.state,d=i.edges,m=o.options;if(!d)return null;i.state={options:{targets:null,relativePoints:[{x:d.left?0:1,y:d.top?0:1}],offset:m.offset||"self",origin:{x:0,y:0},range:m.range}},o.targetFields=o.targetFields||[["width","height"],["x","y"]],it.start(i),o.offsets=i.state.offsets,i.state=o},set:function(i){var o=i.interaction,d=i.state,m=i.coords,C=d.options,L=d.offsets,U={x:m.x-L[0].x,y:m.y-L[0].y};d.options=ee({},C),d.options.targets=[];for(var W=0,de=C.targets||[];W<de.length;W++){var Ve=de[W],he=void 0;if(he=g.func(Ve)?Ve(U.x,U.y,o):Ve){for(var Xe=0,Ta=d.targetFields;Xe<Ta.length;Xe++){var tl=Ta[Xe],rl=tl[0],sl=tl[1];if(rl in he||sl in he){he.x=he[rl],he.y=he[sl];break}}d.options.targets.push(he)}}var Cl=it.set(i);return d.options=C,Cl},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},jo=Dr(st,"snapSize"),zt={aspectRatio:Po,restrictEdges:Xt,restrict:At,restrictRect:Zt,restrictSize:Fo,snapEdges:Dr({start:function(i){var o=i.edges;return o?(i.state.targetFields=i.state.targetFields||[[o.left?"left":"right",o.top?"top":"bottom"]],st.start(i)):null},set:st.set,defaults:ee(Ur(st.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:Wn,snapSize:jo,spring:ot,avoid:ot,transform:ot,rubberband:ot},Ho={id:"modifiers",install:function(i){var o=i.interactStatic;for(var d in i.usePlugin(Il),i.usePlugin(Ro),o.modifiers=zt,zt){var m=zt[d],C=m._defaults,L=m._methods;C._methods=L,i.defaults.perAction[d]=C}}},Uo=Ho,eo=function(i){y(d,i);var o=A(d);function d(m,C,L,U,W,de){var Ve;if(u(this,d),P(D(Ve=o.call(this,W)),L),L!==C&&P(D(Ve),C),Ve.timeStamp=de,Ve.originalEvent=L,Ve.type=m,Ve.pointerId=Ie(C),Ve.pointerType=ka(C),Ve.target=U,Ve.currentTarget=null,m==="tap"){var he=W.getPointerIndex(C);Ve.dt=Ve.timeStamp-W.pointers[he].downTime;var Xe=Ve.timeStamp-W.tapTime;Ve.double=!!W.prevTap&&W.prevTap.type!=="doubletap"&&W.prevTap.target===Ve.target&&Xe<500}else m==="doubletap"&&(Ve.dt=C.timeStamp-W.tapTime,Ve.double=!0);return Ve}return h(d,[{key:"_subtractOrigin",value:function(m){var C=m.x,L=m.y;return this.pageX-=C,this.pageY-=L,this.clientX-=C,this.clientY-=L,this}},{key:"_addOrigin",value:function(m){var C=m.x,L=m.y;return this.pageX+=C,this.pageY+=L,this.clientX+=C,this.clientY+=L,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),d}(pa),Yn={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(i){i.pointerEvents=Yn,i.defaults.actions.pointerEvents=Yn.defaults,ee(i.actions.phaselessTypes,Yn.types)},listeners:{"interactions:new":function(i){var o=i.interaction;o.prevTap=null,o.tapTime=0},"interactions:update-pointer":function(i){var o=i.down,d=i.pointerInfo;!o&&d.hold||(d.hold={duration:1/0,timeout:null})},"interactions:move":function(i,o){var d=i.interaction,m=i.pointer,C=i.event,L=i.eventTarget;i.duplicate||d.pointerIsDown&&!d.pointerWasMoved||(d.pointerIsDown&&Mt(i),vn({interaction:d,pointer:m,event:C,eventTarget:L,type:"move"},o))},"interactions:down":function(i,o){(function(d,m){for(var C=d.interaction,L=d.pointer,U=d.event,W=d.eventTarget,de=d.pointerIndex,Ve=C.pointers[de].hold,he=xa(W),Xe={interaction:C,pointer:L,event:U,eventTarget:W,type:"hold",targets:[],path:he,node:null},Ta=0;Ta<he.length;Ta++){var tl=he[Ta];Xe.node=tl,m.fire("pointerEvents:collect-targets",Xe)}if(Xe.targets.length){for(var rl=1/0,sl=0,Cl=Xe.targets;sl<Cl.length;sl++){var _l=Cl[sl].eventable.options.holdDuration;_l<rl&&(rl=_l)}Ve.duration=rl,Ve.timeout=setTimeout(function(){vn({interaction:C,eventTarget:W,pointer:L,event:U,type:"hold"},m)},rl)}})(i,o),vn(i,o)},"interactions:up":function(i,o){Mt(i),vn(i,o),function(d,m){var C=d.interaction,L=d.pointer,U=d.event,W=d.eventTarget;C.pointerWasMoved||vn({interaction:C,eventTarget:W,pointer:L,event:U,type:"tap"},m)}(i,o)},"interactions:cancel":function(i,o){Mt(i),vn(i,o)}},PointerEvent:eo,fire:vn,collectEventTargets:ao,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function vn(i,o){var d=i.interaction,m=i.pointer,C=i.event,L=i.eventTarget,U=i.type,W=i.targets,de=W===void 0?ao(i,o):W,Ve=new eo(U,m,C,L,d,o.now());o.fire("pointerEvents:new",{pointerEvent:Ve});for(var he={interaction:d,pointer:m,event:C,eventTarget:L,targets:de,type:U,pointerEvent:Ve},Xe=0;Xe<de.length;Xe++){var Ta=de[Xe];for(var tl in Ta.props||{})Ve[tl]=Ta.props[tl];var rl=Re(Ta.eventable,Ta.node);if(Ve._subtractOrigin(rl),Ve.eventable=Ta.eventable,Ve.currentTarget=Ta.node,Ta.eventable.fire(Ve),Ve._addOrigin(rl),Ve.immediatePropagationStopped||Ve.propagationStopped&&Xe+1<de.length&&de[Xe+1].node!==Ve.currentTarget)break}if(o.fire("pointerEvents:fired",he),U==="tap"){var sl=Ve.double?vn({interaction:d,pointer:m,event:C,eventTarget:L,type:"doubletap"},o):Ve;d.prevTap=sl,d.tapTime=sl.timeStamp}return Ve}function ao(i,o){var d=i.interaction,m=i.pointer,C=i.event,L=i.eventTarget,U=i.type,W=d.getPointerIndex(m),de=d.pointers[W];if(U==="tap"&&(d.pointerWasMoved||!de||de.downTarget!==L))return[];for(var Ve=xa(L),he={interaction:d,pointer:m,event:C,eventTarget:L,type:U,path:Ve,targets:[],node:null},Xe=0;Xe<Ve.length;Xe++){var Ta=Ve[Xe];he.node=Ta,o.fire("pointerEvents:collect-targets",he)}return U==="hold"&&(he.targets=he.targets.filter(function(tl){var rl,sl;return tl.eventable.options.holdDuration===((rl=d.pointers[W])==null||(sl=rl.hold)==null?void 0:sl.duration)})),he.targets}function Mt(i){var o=i.interaction,d=i.pointerIndex,m=o.pointers[d].hold;m&&m.timeout&&(clearTimeout(m.timeout),m.timeout=null)}var qo=Object.freeze({__proto__:null,default:Yn});function Ko(i){var o=i.interaction;o.holdIntervalHandle&&(clearInterval(o.holdIntervalHandle),o.holdIntervalHandle=null)}var ct={id:"pointer-events/holdRepeat",install:function(i){i.usePlugin(Yn);var o=i.pointerEvents;o.defaults.holdRepeatInterval=0,o.types.holdrepeat=i.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce(function(i,o){return i["pointerEvents:".concat(o)]=Ko,i},{"pointerEvents:new":function(i){var o=i.pointerEvent;o.type==="hold"&&(o.count=(o.count||0)+1)},"pointerEvents:fired":function(i,o){var d=i.interaction,m=i.pointerEvent,C=i.eventTarget,L=i.targets;if(m.type==="hold"&&L.length){var U=L[0].eventable.options.holdRepeatInterval;U<=0||(d.holdIntervalHandle=setTimeout(function(){o.pointerEvents.fire({interaction:d,eventTarget:C,type:"hold",pointer:m,event:m},o)},U))}}})},Wo=ct,Yo={id:"pointer-events/interactableTargets",install:function(i){var o=i.Interactable;o.prototype.pointerEvents=function(m){return ee(this.events.options,m),this};var d=o.prototype._backCompatOption;o.prototype._backCompatOption=function(m,C){var L=d.call(this,m,C);return L===this&&(this.events.options[m]=C),L}},listeners:{"pointerEvents:collect-targets":function(i,o){var d=i.targets,m=i.node,C=i.type,L=i.eventTarget;o.interactables.forEachMatch(m,function(U){var W=U.events,de=W.options;W.types[C]&&W.types[C].length&&U.testIgnoreAllow(de,m,L)&&d.push({node:m,eventable:W,props:{interactable:U}})})},"interactable:new":function(i){var o=i.interactable;o.events.getRect=function(d){return o.getRect(d)}},"interactable:set":function(i,o){var d=i.interactable,m=i.options;ee(d.events.options,o.pointerEvents.defaults),ee(d.events.options,m.pointerEvents||{})}}},Go=Yo,Jo={id:"pointer-events",install:function(i){i.usePlugin(qo),i.usePlugin(Wo),i.usePlugin(Go)}},lo=Jo,ut={id:"reflow",install:function(i){var o=i.Interactable;i.actions.phases.reflow=!0,o.prototype.reflow=function(d){return function(m,C,L){for(var U=m.getAllElements(),W=L.window.Promise,de=W?[]:null,Ve=function(){var Xe=U[he],Ta=m.getRect(Xe);if(!Ta)return 1;var tl,rl=je(L.interactions.list,function(_l){return _l.interacting()&&_l.interactable===m&&_l.element===Xe&&_l.prepared.name===C.name});if(rl)rl.move(),de&&(tl=rl._reflowPromise||new W(function(_l){rl._reflowResolve=_l}));else{var sl=He(Ta),Cl=function(_l){return{coords:_l,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}}({page:{x:sl.x,y:sl.y},client:{x:sl.x,y:sl.y},timeStamp:L.now()});tl=function(_l,yl,jl,$l,Ol){var zl=_l.interactions.new({pointerType:"reflow"}),Lr={interaction:zl,event:Ol,pointer:Ol,eventTarget:jl,phase:"reflow"};zl.interactable=yl,zl.element=jl,zl.prevEvent=Ol,zl.updatePointer(Ol,Ol,jl,!0),oe(zl.coords.delta),Ua(zl.prepared,$l),zl._doPhase(Lr);var mr=_l.window,Fr=mr.Promise,en=Fr?new Fr(function(mn){zl._reflowResolve=mn}):void 0;return zl._reflowPromise=en,zl.start($l,yl,jl),zl._interacting?(zl.move(Lr),zl.end(Ol)):(zl.stop(),zl._reflowResolve()),zl.removePointer(Ol,Ol),en}(L,m,Xe,C,Cl)}de&&de.push(tl)},he=0;he<U.length&&!Ve();he++);return de&&W.all(de).then(function(){return m})}(this,d,i)}},listeners:{"interactions:stop":function(i,o){var d=i.interaction;d.pointerType==="reflow"&&(d._reflowResolve&&d._reflowResolve(),function(m,C){m.splice(m.indexOf(C),1)}(o.interactions.list,d))}}},Xo=ut;if(Ir.use(dn),Ir.use(cr),Ir.use(lo),Ir.use(Cn),Ir.use(Uo),Ir.use(Er),Ir.use(wa),Ir.use(Ee),Ir.use(Xo),Ir.default=Ir,s(l)==="object"&&l)try{l.exports=Ir}catch{}return Ir.default=Ir,Ir})}(Vt,Vt.exports)),Vt.exports}var P4=R4();const Es=I.getDefaultExportFromCjs(P4),No=a.defineComponent({__name:"grid-item",props:{isDraggable:{type:Boolean,default:void 0},isResizable:{type:Boolean,default:void 0},isBounded:{type:Boolean,default:void 0},static:{type:Boolean,default:!1},minH:{default:1},minW:{default:1},maxH:{default:1/0},maxW:{default:1/0},x:{},y:{},w:{},h:{},i:{},dragIgnoreFrom:{default:"a, button"},dragAllowFrom:{default:void 0},resizeIgnoreFrom:{default:"a, button"},preserveAspectRatio:{type:Boolean,default:!1},dragOption:{default:()=>({})},resizeOption:{default:()=>({})}},emits:["container-resized","resize","resized","move","moved"],setup(l,{expose:r,emit:n}){const t=l,s=n,u=a.inject(Nc),b=a.inject(Tc);if(!u)throw new Error("[grid-layout-plus]: missing layout store, GridItem must under a GridLayout.");const h=a.shallowRef(null),v=a.reactive({cols:1,containerWidth:100,rowHeight:30,margin:[10,10],maxRows:1/0,draggable:void 0,resizable:void 0,bounded:void 0,transformScale:1,useCssTransforms:!0,useStyleCursor:!0,isDragging:!1,dragging:{top:-1,left:-1},isResizing:!1,resizing:{width:-1,height:-1},style:{},rtl:!1});let y=!1,c=!1,w=NaN,D=NaN,A=NaN,_=NaN,H=-1,k=-1,T=-1,J=-1,S=t.x,V=t.y,z=t.w,x=t.h;const g=a.ref(),F=a.reactive({i:a.toRef(t,"i"),state:v,wrapper:g,calcXY:Pe});function q(ie){Ge(ie)}function G(){Ka()}function be(ie){rn(t.isDraggable)&&(v.draggable=ie)}function ze(ie){rn(t.isResizable)&&(v.resizable=ie)}function De(ie){rn(t.isBounded)&&(v.bounded=ie)}function ne(ie){v.transformScale=ie}function ke(ie){v.rowHeight=ie}function X(ie){v.maxRows=ie}function pe(){v.rtl=ws()==="rtl",Ka()}function Ke(ie){v.cols=Math.floor(ie)}u.increaseItem(F),a.onBeforeMount(()=>{v.rtl=ws()==="rtl"}),a.onMounted(()=>{u.responsive&&u.lastBreakpoint?v.cols=Ic(u.lastBreakpoint,u.cols):v.cols=u.colNum,v.rowHeight=u.rowHeight,v.containerWidth=u.width!==null?u.width:100,v.margin=u.margin!==void 0?u.margin.map(Number):[10,10],v.maxRows=u.maxRows,rn(t.isDraggable)?v.draggable=u.isDraggable:v.draggable=t.isDraggable,rn(t.isResizable)?v.resizable=u.isResizable:v.resizable=t.isResizable,rn(t.isBounded)?v.bounded=u.isBounded:v.bounded=t.isBounded,v.transformScale=u.transformScale,v.useCssTransforms=u.useCssTransforms,v.useStyleCursor=u.useStyleCursor,a.watchEffect(()=>{S=t.x,V=t.y,x=t.h,z=t.w,jr(ia)}),b.on("updateWidth",q),b.on("compact",G),b.on("setDraggable",be),b.on("setResizable",ze),b.on("setBounded",De),b.on("setTransformScale",ne),b.on("setRowHeight",ke),b.on("setMaxRows",X),b.on("directionchange",pe),b.on("setColNum",Ke)}),a.onBeforeUnmount(()=>{b.off("updateWidth",q),b.off("compact",G),b.off("setDraggable",be),b.off("setResizable",ze),b.off("setBounded",De),b.off("setTransformScale",ne),b.off("setRowHeight",ke),b.off("setMaxRows",X),b.off("directionchange",pe),b.off("setColNum",Ke),h.value&&(h.value.unset(),h.value=null),u.decreaseItem(F)}),r({state:v,wrapper:g});const Sa=typeof navigator<"u"?navigator.userAgent.toLowerCase().includes("android"):!1,te=a.computed(()=>v.resizable&&!t.static),B=a.computed(()=>u.isMirrored?!v.rtl:v.rtl),le=a.computed(()=>(v.draggable||v.resizable)&&!t.static),ye=A4("item"),se=a.computed(()=>({[ye.b()]:!0,[ye.bm("resizable")]:te.value,[ye.bm("static")]:t.static,[ye.bm("resizing")]:v.isResizing,[ye.bm("dragging")]:v.isDragging,[ye.bm("transform")]:v.useCssTransforms,[ye.bm("rtl")]:B.value,[ye.bm("no-touch")]:Sa&&le.value})),Ne=a.computed(()=>[ye.be("resizer"),B.value&&ye.bem("resizer","rtl")].filter(Boolean));a.watch(()=>t.isDraggable,ie=>{v.draggable=ie}),a.watch(()=>t.static,()=>{jr(P),jr(oe)}),a.watch(()=>v.draggable,()=>{jr(P)}),a.watch(()=>t.isResizable,ie=>{v.resizable=ie}),a.watch(()=>t.isBounded,ie=>{v.bounded=ie}),a.watch(()=>v.resizable,()=>{jr(oe)}),a.watch(()=>v.rowHeight,()=>{jr(ia),jr(xa)}),a.watch([()=>v.cols,()=>v.containerWidth],()=>{jr(oe),jr(ia),jr(xa)}),a.watch([()=>t.minH,()=>t.maxH,()=>t.minW,()=>t.maxW],()=>{jr(oe)}),a.watch(B,()=>{jr(oe),jr(ia)}),a.watch([()=>u.margin,()=>u.margin[0],()=>u.margin[1]],()=>{const ie=u.margin;!ie||ie[0]===v.margin[0]&&ie[1]===v.margin[1]||(v.margin=ie.map(Number),jr(ia),jr(xa))});function ia(){t.x+t.w>v.cols?(S=0,z=t.w>v.cols?v.cols:t.w):(S=t.x,z=t.w);const ie=ea(S,V,z,x);v.isDragging&&(ie.top=v.dragging.top,B.value?ie.right=v.dragging.left:ie.left=v.dragging.left),v.isResizing&&(ie.width=v.resizing.width,ie.height=v.resizing.height);let fa;v.useCssTransforms?B.value?fa=D4(ie.top,ie.right,ie.width,ie.height):fa=S4(ie.top,ie.left,ie.width,ie.height):B.value?fa=N4(ie.top,ie.right,ie.width,ie.height):fa=B4(ie.top,ie.left,ie.width,ie.height),v.style=fa}function xa(){const ie={};for(const fa of["width","height"]){const ra=v.style[fa].match(/^(\d+)px$/);if(!ra)return;ie[fa]=ra[1]}s("container-resized",t.i,t.h,t.w,ie.height,ie.width)}function Ha(ie){if(t.static)return;const fa=ie.type;if(fa==="resizestart"&&v.isResizing||fa!=="resizestart"&&!v.isResizing)return;const ra=xs(ie);if(rn(ra))return;const{x:Ie,y:we}=ra,Ca={width:0,height:0};let fe;switch(fa){case"resizestart":{oe(),H=z,k=x,fe=ea(S,V,z,x),Ca.width=fe.width,Ca.height=fe.height,v.resizing=Ca,v.isResizing=!0;break}case"resizemove":{!ie.edges.right&&!ie.edges.left&&(A=Ie),!ie.edges.top&&!ie.edges.bottom&&(_=we);const Je=_s(A,_,Ie,we);B.value?Ca.width=v.resizing.width-Je.deltaX/v.transformScale:Ca.width=v.resizing.width+Je.deltaX/v.transformScale,Ca.height=v.resizing.height+Je.deltaY/v.transformScale,v.resizing=Ca;break}case"resizeend":{fe=ea(S,V,z,x),Ca.width=fe.width,Ca.height=fe.height,v.resizing={width:-1,height:-1},v.isResizing=!1;break}}fe=Re(Ca.height,Ca.width),fe.w<t.minW&&(fe.w=t.minW),fe.w>t.maxW&&(fe.w=t.maxW),fe.h<t.minH&&(fe.h=t.minH),fe.h>t.maxH&&(fe.h=t.maxH),fe.h<1&&(fe.h=1),fe.w<1&&(fe.w=1),A=Ie,_=we,(z!==fe.w||x!==fe.h)&&s("resize",t.i,fe.h,fe.w,Ca.height,Ca.width),ie.type==="resizeend"&&(H!==z||k!==x)&&s("resized",t.i,fe.h,fe.w,Ca.height,Ca.width),b.emit("resizeEvent",ie.type,t.i,S,V,fe.h,fe.w)}function ee(ie){if(t.static||v.isResizing)return;const fa=ie.type;if(fa==="dragstart"&&v.isDragging||fa!=="dragstart"&&!v.isDragging)return;const ra=xs(ie);if(rn(ra))return;const{x:Ie,y:we}=ra,Ca=ie.target;if(!Ca.offsetParent)return;const fe={top:0,left:0};switch(fa){case"dragstart":{T=S,J=V;const Ze=Ca.offsetParent.getBoundingClientRect(),Fe=Ca.getBoundingClientRect(),ka=Fe.left/v.transformScale,$e=Ze.left/v.transformScale,pa=Fe.right/v.transformScale,re=Ze.right/v.transformScale,Se=Fe.top/v.transformScale,K=Ze.top/v.transformScale;B.value?fe.left=(pa-re)*-1:fe.left=ka-$e,fe.top=Se-K,v.dragging=fe,v.isDragging=!0;break}case"dragmove":{const Ze=_s(w,D,Ie,we);if(B.value?fe.left=v.dragging.left-Ze.deltaX/v.transformScale:fe.left=v.dragging.left+Ze.deltaX/v.transformScale,fe.top=v.dragging.top+Ze.deltaY/v.transformScale,v.bounded){const Fe=Ca.offsetParent.clientHeight-He(t.h,v.rowHeight,v.margin[1]);fe.top=Ae(fe.top,0,Fe);const ka=ga(),$e=v.containerWidth-He(t.w,ka,v.margin[0]);fe.left=Ae(fe.left,0,$e)}v.dragging=fe;break}case"dragend":{const Ze=Ca.offsetParent.getBoundingClientRect(),Fe=Ca.getBoundingClientRect(),ka=Fe.left/v.transformScale,$e=Ze.left/v.transformScale,pa=Fe.right/v.transformScale,re=Ze.right/v.transformScale,Se=Fe.top/v.transformScale,K=Ze.top/v.transformScale;B.value?fe.left=(pa-re)*-1:fe.left=ka-$e,fe.top=Se-K,v.dragging={top:-1,left:-1},v.isDragging=!1;break}}let Je;B.value,Je=Pe(fe.top,fe.left),w=Ie,D=we,(S!==Je.x||V!==Je.y)&&s("move",t.i,Je.x,Je.y),ie.type==="dragend"&&(T!==S||J!==V)&&s("moved",t.i,Je.x,Je.y),b.emit("dragEvent",ie.type,t.i,Je.x,Je.y,x,z)}function ea(ie,fa,ra,Ie){const we=ga();let Ca;return B.value?Ca={right:Math.round(we*ie+(ie+1)*v.margin[0]),top:Math.round(v.rowHeight*fa+(fa+1)*v.margin[1]),width:ra===1/0?ra:Math.round(we*ra+Math.max(0,ra-1)*v.margin[0]),height:Ie===1/0?Ie:Math.round(v.rowHeight*Ie+Math.max(0,Ie-1)*v.margin[1])}:Ca={left:Math.round(we*ie+(ie+1)*v.margin[0]),top:Math.round(v.rowHeight*fa+(fa+1)*v.margin[1]),width:ra===1/0?ra:Math.round(we*ra+Math.max(0,ra-1)*v.margin[0]),height:Ie===1/0?Ie:Math.round(v.rowHeight*Ie+Math.max(0,Ie-1)*v.margin[1])},Ca}function Pe(ie,fa){const ra=ga();let Ie=Math.round((fa-v.margin[0])/(ra+v.margin[0])),we=Math.round((ie-v.margin[1])/(v.rowHeight+v.margin[1]));return Ie=Math.max(Math.min(Ie,v.cols-z),0),we=Math.max(Math.min(we,v.maxRows-x),0),{x:Ie,y:we}}function ga(){return(v.containerWidth-v.margin[0]*(v.cols+1))/v.cols}function He(ie,fa,ra){return Number.isFinite(ie)?Math.round(fa*ie+Math.max(0,ie-1)*ra):ie}function Ae(ie,fa,ra){return Math.max(Math.min(ie,ra),fa)}function Re(ie,fa,ra=!1){const Ie=ga();let we=Math.round((fa+v.margin[0])/(Ie+v.margin[0])),Ca=0;return ra?Ca=Math.ceil((ie+v.margin[1])/(v.rowHeight+v.margin[1])):Ca=Math.round((ie+v.margin[1])/(v.rowHeight+v.margin[1])),we=Math.max(Math.min(we,v.cols-S),0),Ca=Math.max(Math.min(Ca,v.maxRows-V),0),{w:we,h:Ca}}function Ge(ie,fa){v.containerWidth=ie}function Ka(){ia()}function Ia(){!h.value&&g.value&&(h.value=Es(g.value),v.useStyleCursor||h.value.styleCursor(!1))}const R=gs(ee);function P(){if(Ia(),!!h.value)if(v.draggable&&!t.static){const ie={ignoreFrom:t.dragIgnoreFrom,allowFrom:t.dragAllowFrom,...t.dragOption};h.value.draggable(ie),y||(y=!0,h.value.on("dragstart dragmove dragend",fa=>{fa.type==="dragmove"?R(fa):ee(fa)}))}else h.value.draggable({enabled:!1})}const Y=gs(Ha);function oe(){if(Ia(),!!h.value)if(v.resizable&&!t.static){const ie=ea(0,0,t.maxW,t.maxH),fa=ea(0,0,t.minW,t.minH),ra={edges:{left:B.value?`.${Ne.value[0]}`:!1,right:B.value?!1:`.${Ne.value[0]}`,bottom:`.${Ne.value[0]}`,top:!1},ignoreFrom:t.resizeIgnoreFrom,restrictSize:{min:{height:fa.height*v.transformScale,width:fa.width*v.transformScale},max:{height:ie.height*v.transformScale,width:ie.width*v.transformScale}},...t.resizeOption};t.preserveAspectRatio&&(ra.modifiers=[Es.modifiers.aspectRatio({ratio:"preserve"})]),h.value.resizable(ra),c||(c=!0,h.value.on("resizestart resizemove resizeend",Ie=>{Ie.type==="resizemove"?Y(Ie):Ha(Ie)}))}else h.value.resizable({enabled:!1})}return(ie,fa)=>(a.openBlock(),a.createElementBlock("section",{ref_key:"wrapper",ref:g,class:a.normalizeClass(se.value),style:a.normalizeStyle(v.style)},[a.renderSlot(ie.$slots,"default"),te.value?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(Ne.value)},null,2)):a.createCommentVNode("",!0)],6))}}),nt=typeof window<"u";var Ss;nt&&(Ss=window==null?void 0:window.navigator)!=null&&Ss.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Ds(l){return l!=null}function Bs(){}const F4=Object.freeze({aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"});Object.freeze(new Set(Object.keys(F4)));const j4=nt&&("ontouchstart"in window||U4()>0),H4=j4?"pointerdown":"click";function U4(){return typeof navigator<"u"&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)||0}function q4(l,r,n=window.Event){const{type:t,bubbles:s=!1,cancelable:u=!1,...b}=r;if(!Ds(t)||t==="")return!1;let h;return Ds(n)?h=new n(t,{bubbles:s,cancelable:u}):(h=document.createEvent("HTMLEvents"),h.initEvent(t,s,u)),Object.assign(h,b),l.dispatchEvent(h)}const K4="clickoutside",W4=new Set;nt&&document.addEventListener(H4,l=>{const r=l.target,n=l.composedPath&&l.composedPath();W4.forEach(t=>{t!==r&&(n?!n.includes(t):!t.contains(r))&&(!t.__transferElement||t.__transferElement!==r&&!t.__transferElement.contains(r))&&q4(t,{type:K4})})},!0);const Y4=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];let yo;if(nt){for(const l of Y4)if(l[1]in document){yo=l;break}}a.computed(()=>!1);const G4=new Set,J4=new WeakMap;if(nt&&yo){const l=yo[2],r=yo[4];document.addEventListener(r,()=>{if(G4.forEach(n=>{n.value=!1}),document[l]){const n=J4.get(document[l]);n&&(n.value=!0)}},!1)}const Vc=new Map;Vc.set("x",0);Vc.set("y",0);var at=[],X4=function(){return at.some(function(l){return l.activeTargets.length>0})},Z4=function(){return at.some(function(l){return l.skippedTargets.length>0})},Ns="ResizeObserver loop completed with undelivered notifications.",Q4=function(){var l;typeof ErrorEvent=="function"?l=new ErrorEvent("error",{message:Ns}):(l=document.createEvent("Event"),l.initEvent("error",!1,!1),l.message=Ns),window.dispatchEvent(l)},Ht;(function(l){l.BORDER_BOX="border-box",l.CONTENT_BOX="content-box",l.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Ht||(Ht={}));var lt=function(l){return Object.freeze(l)},e6=function(){function l(r,n){this.inlineSize=r,this.blockSize=n,lt(this)}return l}(),$c=function(){function l(r,n,t,s){return this.x=r,this.y=n,this.width=t,this.height=s,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,lt(this)}return l.prototype.toJSON=function(){var r=this,n=r.x,t=r.y,s=r.top,u=r.right,b=r.bottom,h=r.left,v=r.width,y=r.height;return{x:n,y:t,top:s,right:u,bottom:b,left:h,width:v,height:y}},l.fromRect=function(r){return new l(r.x,r.y,r.width,r.height)},l}(),Ei=function(l){return l instanceof SVGElement&&"getBBox"in l},Rc=function(l){if(Ei(l)){var r=l.getBBox(),n=r.width,t=r.height;return!n&&!t}var s=l,u=s.offsetWidth,b=s.offsetHeight;return!(u||b||l.getClientRects().length)},Ts=function(l){var r;if(l instanceof Element)return!0;var n=(r=l==null?void 0:l.ownerDocument)===null||r===void 0?void 0:r.defaultView;return!!(n&&l instanceof n.Element)},a6=function(l){switch(l.tagName){case"INPUT":if(l.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Pt=typeof window<"u"?window:{},fo=new WeakMap,As=/auto|scroll/,l6=/^tb|vertical/,r6=/msie|trident/i.test(Pt.navigator&&Pt.navigator.userAgent),wn=function(l){return parseFloat(l||"0")},wt=function(l,r,n){return l===void 0&&(l=0),r===void 0&&(r=0),n===void 0&&(n=!1),new e6((n?r:l)||0,(n?l:r)||0)},zs=lt({devicePixelContentBoxSize:wt(),borderBoxSize:wt(),contentBoxSize:wt(),contentRect:new $c(0,0,0,0)}),Pc=function(l,r){if(r===void 0&&(r=!1),fo.has(l)&&!r)return fo.get(l);if(Rc(l))return fo.set(l,zs),zs;var n=getComputedStyle(l),t=Ei(l)&&l.ownerSVGElement&&l.getBBox(),s=!r6&&n.boxSizing==="border-box",u=l6.test(n.writingMode||""),b=!t&&As.test(n.overflowY||""),h=!t&&As.test(n.overflowX||""),v=t?0:wn(n.paddingTop),y=t?0:wn(n.paddingRight),c=t?0:wn(n.paddingBottom),w=t?0:wn(n.paddingLeft),D=t?0:wn(n.borderTopWidth),A=t?0:wn(n.borderRightWidth),_=t?0:wn(n.borderBottomWidth),H=t?0:wn(n.borderLeftWidth),k=w+y,T=v+c,J=H+A,S=D+_,V=h?l.offsetHeight-S-l.clientHeight:0,z=b?l.offsetWidth-J-l.clientWidth:0,x=s?k+J:0,g=s?T+S:0,F=t?t.width:wn(n.width)-x-z,q=t?t.height:wn(n.height)-g-V,G=F+k+z+J,be=q+T+V+S,ze=lt({devicePixelContentBoxSize:wt(Math.round(F*devicePixelRatio),Math.round(q*devicePixelRatio),u),borderBoxSize:wt(G,be,u),contentBoxSize:wt(F,q,u),contentRect:new $c(w,v,F,q)});return fo.set(l,ze),ze},Fc=function(l,r,n){var t=Pc(l,n),s=t.borderBoxSize,u=t.contentBoxSize,b=t.devicePixelContentBoxSize;switch(r){case Ht.DEVICE_PIXEL_CONTENT_BOX:return b;case Ht.BORDER_BOX:return s;default:return u}},n6=function(){function l(r){var n=Pc(r);this.target=r,this.contentRect=n.contentRect,this.borderBoxSize=lt([n.borderBoxSize]),this.contentBoxSize=lt([n.contentBoxSize]),this.devicePixelContentBoxSize=lt([n.devicePixelContentBoxSize])}return l}(),jc=function(l){if(Rc(l))return 1/0;for(var r=0,n=l.parentNode;n;)r+=1,n=n.parentNode;return r},t6=function(){var l=1/0,r=[];at.forEach(function(u){if(u.activeTargets.length!==0){var b=[];u.activeTargets.forEach(function(h){var v=new n6(h.target),y=jc(h.target);b.push(v),h.lastReportedSize=Fc(h.target,h.observedBox),y<l&&(l=y)}),r.push(function(){u.callback.call(u.observer,b,u.observer)}),u.activeTargets.splice(0,u.activeTargets.length)}});for(var n=0,t=r;n<t.length;n++){var s=t[n];s()}return l},Ms=function(l){at.forEach(function(r){r.activeTargets.splice(0,r.activeTargets.length),r.skippedTargets.splice(0,r.skippedTargets.length),r.observationTargets.forEach(function(n){n.isActive()&&(jc(n.target)>l?r.activeTargets.push(n):r.skippedTargets.push(n))})})},o6=function(){var l=0;for(Ms(l);X4();)l=t6(),Ms(l);return Z4()&&Q4(),l>0},ti,Hc=[],i6=function(){return Hc.splice(0).forEach(function(l){return l()})},s6=function(l){if(!ti){var r=0,n=document.createTextNode(""),t={characterData:!0};new MutationObserver(function(){return i6()}).observe(n,t),ti=function(){n.textContent="".concat(r?r--:r++)}}Hc.push(l),ti()},c6=function(l){s6(function(){requestAnimationFrame(l)})},go=0,u6=function(){return!!go},d6=250,p6={attributes:!0,characterData:!0,childList:!0,subtree:!0},Os=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Is=function(l){return l===void 0&&(l=0),Date.now()+l},oi=!1,f6=function(){function l(){var r=this;this.stopped=!0,this.listener=function(){return r.schedule()}}return l.prototype.run=function(r){var n=this;if(r===void 0&&(r=d6),!oi){oi=!0;var t=Is(r);c6(function(){var s=!1;try{s=o6()}finally{if(oi=!1,r=t-Is(),!u6())return;s?n.run(1e3):r>0?n.run(r):n.start()}})}},l.prototype.schedule=function(){this.stop(),this.run()},l.prototype.observe=function(){var r=this,n=function(){return r.observer&&r.observer.observe(document.body,p6)};document.body?n():Pt.addEventListener("DOMContentLoaded",n)},l.prototype.start=function(){var r=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Os.forEach(function(n){return Pt.addEventListener(n,r.listener,!0)}))},l.prototype.stop=function(){var r=this;this.stopped||(this.observer&&this.observer.disconnect(),Os.forEach(function(n){return Pt.removeEventListener(n,r.listener,!0)}),this.stopped=!0)},l}(),ki=new f6,Ls=function(l){!go&&l>0&&ki.start(),go+=l,!go&&ki.stop()},h6=function(l){return!Ei(l)&&!a6(l)&&getComputedStyle(l).display==="inline"},v6=function(){function l(r,n){this.target=r,this.observedBox=n||Ht.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return l.prototype.isActive=function(){var r=Fc(this.target,this.observedBox,!0);return h6(this.target)&&(this.lastReportedSize=r),this.lastReportedSize.inlineSize!==r.inlineSize||this.lastReportedSize.blockSize!==r.blockSize},l}(),m6=function(){function l(r,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=r,this.callback=n}return l}(),ho=new WeakMap,Vs=function(l,r){for(var n=0;n<l.length;n+=1)if(l[n].target===r)return n;return-1},vo=function(){function l(){}return l.connect=function(r,n){var t=new m6(r,n);ho.set(r,t)},l.observe=function(r,n,t){var s=ho.get(r),u=s.observationTargets.length===0;Vs(s.observationTargets,n)<0&&(u&&at.push(s),s.observationTargets.push(new v6(n,t&&t.box)),Ls(1),ki.schedule())},l.unobserve=function(r,n){var t=ho.get(r),s=Vs(t.observationTargets,n),u=t.observationTargets.length===1;s>=0&&(u&&at.splice(at.indexOf(t),1),t.observationTargets.splice(s,1),Ls(-1))},l.disconnect=function(r){var n=this,t=ho.get(r);t.observationTargets.slice().forEach(function(s){return n.unobserve(r,s.target)}),t.activeTargets.splice(0,t.activeTargets.length)},l}(),y6=function(){function l(r){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof r!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");vo.connect(this,r)}return l.prototype.observe=function(r,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ts(r))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");vo.observe(this,r,n)},l.prototype.unobserve=function(r){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ts(r))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");vo.unobserve(this,r)},l.prototype.disconnect=function(){vo.disconnect(this)},l.toString=function(){return"function ResizeObserver () { [polyfill code] }"},l}();const To=new WeakMap;function g6(l){var r;for(let n=0,t=l.length;n<t;++n){const s=l[n],u=To.get(s.target);if(typeof u=="function"){const{inlineSize:b,blockSize:h}=((r=s.borderBoxSize)==null?void 0:r[0])??{},{offsetWidth:v,offsetHeight:y}=s.target;u(Object.assign(s,{offsetWidth:v,offsetHeight:y,width:b??v,height:h??y}))}}}const Uc=new(nt&&window.ResizeObserver||y6)(g6);function $s(l,r){To.set(l,r),Uc.observe(l)}function Rs(l){To.has(l)&&(Uc.unobserve(l),To.delete(l))}function b6(l={}){let r=Bs;const n=a.watch(()=>a.unref(l.target),s=>{r(),!(!s||typeof l.onResize!="function")&&($s(s,l.onResize),r=()=>{Rs(s),r=Bs})},{immediate:!0}),t=()=>{n(),r()};return a.getCurrentScope()&&a.onScopeDispose(t),{observeResize:$s,unobserveResize:Rs,unobserve:t}}const k6=a.ref(!1);a.computed(()=>k6.value);const Ps="__theme_style__",ii="__theme_observer__",Fs=a.reactive(new Map),js=new Map;a.watch(Fs,()=>{if(!nt)return;js.clear();const l=document.head.querySelector(`#${Ps}`);l&&document.head.removeChild(l);const r=document.createElement("style");let n=`.${ii} { width: 1px }`,t=1;for(const[s,[u,b]]of Fs.entries())n+=` html.${u} .${ii}, .${b} .${ii} { width: ${++t}px }`,js.set(t,s);r.textContent=n,r.id=Ps,document.head.appendChild(r)});const qc=a.defineComponent({__name:"grid-layout",props:{autoSize:{type:Boolean,default:!0},colNum:{default:12},rowHeight:{default:150},maxRows:{default:1/0},margin:{default:()=>[10,10]},isDraggable:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!0},isMirrored:{type:Boolean,default:!1},isBounded:{type:Boolean,default:!1},useCssTransforms:{type:Boolean,default:!0},verticalCompact:{type:Boolean,default:!0},restoreOnDrag:{type:Boolean,default:!1},layout:{},responsive:{type:Boolean,default:!1},responsiveLayouts:{default:()=>({})},transformScale:{default:1},breakpoints:{default:()=>({lg:1200,md:996,sm:768,xs:480,xxs:0})},cols:{default:()=>({lg:12,md:10,sm:6,xs:4,xxs:2})},preventCollision:{type:Boolean,default:!1},useStyleCursor:{type:Boolean,default:!0}},emits:["layout-before-mount","layout-mounted","layout-updated","breakpoint-changed","update:layout","layout-ready"],setup(l,{expose:r,emit:n}){const t=l,s=n,u=a.reactive({width:-1,mergedStyle:{},lastLayoutLength:0,isDragging:!1,placeholder:{x:0,y:0,w:0,h:0,i:""},layouts:{},lastBreakpoint:null,originalLayout:null}),b=new Map,h=a.ref(t.layout),v=a.ref(),{observeResize:y,unobserveResize:c}=b6(),w=b4();w.on("resizeEvent",D),w.on("dragEvent",A),a.onBeforeMount(()=>{s("layout-before-mount",h.value)}),a.onMounted(()=>{s("layout-mounted",h.value),a.nextTick(()=>{T4(h.value),u.originalLayout=h.value,a.nextTick(()=>{q(),v.value&&y(v.value,k4(S,16)),bt(h.value,t.verticalCompact),s("layout-updated",h.value),J(),S()})})}),a.onBeforeUnmount(()=>{w.clearAll(),v.value&&c(v.value)});function D(be,ze,De,ne,ke,X){g(be,ze,De,ne,ke,X)}function A(be,ze,De,ne,ke,X){x(be,ze,De,ne,ke,X)}a.watch(()=>u.width,(be,ze)=>{a.nextTick(()=>{w.emit("updateWidth",be),ze===-1&&a.nextTick(()=>{s("layout-ready",h.value)}),J()})}),a.watch(()=>[t.layout,t.layout.length],()=>{h.value=t.layout,T()}),a.watch(()=>t.colNum,be=>{w.emit("setColNum",be)}),a.watch(()=>t.rowHeight,be=>{w.emit("setRowHeight",be)}),a.watch(()=>t.isDraggable,be=>{w.emit("setDraggable",be)}),a.watch(()=>t.isResizable,be=>{w.emit("setResizable",be)}),a.watch(()=>t.isBounded,be=>{w.emit("setBounded",be)}),a.watch(()=>t.transformScale,be=>{w.emit("setTransformScale",be)}),a.watch(()=>t.responsive,be=>{be||(s("update:layout",u.originalLayout),w.emit("setColNum",t.colNum)),S()}),a.watch(()=>t.maxRows,be=>{w.emit("setMaxRows",be)}),a.watch([()=>t.margin,()=>t.margin[1]],J),a.provide(Nc,a.reactive({...a.toRefs(t),...a.toRefs(u),increaseItem:_,decreaseItem:H})),a.provide(Tc,w),r({state:u,getItem:k,resizeEvent:g,dragEvent:x,layoutUpdate:T});function _(be){b.set(be.i,be)}function H(be){b.delete(be.i)}function k(be){return b.get(be)}function T(){if(!rn(h.value)&&!rn(u.originalLayout)){if(h.value.length!==u.originalLayout.length){const be=G(h.value,u.originalLayout);if(be.length>0)if(h.value.length>u.originalLayout.length)u.originalLayout=u.originalLayout.concat(be);else{const ze=new Set(be.map(De=>De.i));u.originalLayout=u.originalLayout.filter(De=>!ze.has(De.i))}u.lastLayoutLength=h.value.length,q()}bt(h.value,t.verticalCompact),w.emit("updateWidth",u.width),J(),s("layout-updated",h.value)}}function J(){u.mergedStyle={height:V()}}function S(){v.value&&(u.width=v.value.offsetWidth),w.emit("resizeEvent")}function V(){if(!t.autoSize)return;const be=parseFloat(t.margin[1]);return _4(h.value)*(t.rowHeight+be)+be+"px"}let z;function x(be,ze,De,ne,ke,X){let pe=bs(h.value,ze);rn(pe)&&(pe={h:0,w:0,x:0,y:0,i:""}),be==="dragstart"&&!t.verticalCompact&&(z=h.value.reduce((Ke,{i:Sa,x:te,y:B})=>({...Ke,[Sa]:{x:te,y:B}}),{})),be==="dragmove"||be==="dragstart"?(u.placeholder.i=ze,u.placeholder.x=pe.x,u.placeholder.y=pe.y,u.placeholder.w=X,u.placeholder.h=ke,a.nextTick(()=>{u.isDragging=!0}),w.emit("updateWidth",u.width)):a.nextTick(()=>{u.isDragging=!1}),h.value=bi(h.value,pe,De,ne,!0,t.preventCollision),t.restoreOnDrag?(pe.static=!0,bt(h.value,t.verticalCompact,z),pe.static=!1):bt(h.value,t.verticalCompact),w.emit("compact"),J(),be==="dragend"&&(z=void 0,s("layout-updated",h.value))}function g(be,ze,De,ne,ke,X){let pe=bs(h.value,ze);rn(pe)&&(pe={h:0,w:0,x:0,y:0,i:""});let Ke;if(t.preventCollision){const Sa=zc(h.value,{...pe,w:X,h:ke}).filter(te=>te.i!==pe.i);if(Ke=Sa.length>0,Ke){let te=1/0,B=1/0;Sa.forEach(le=>{le.x>pe.x&&(te=Math.min(te,le.x)),le.y>pe.y&&(B=Math.min(B,le.y))}),Number.isFinite(te)&&(pe.w=te-pe.x),Number.isFinite(B)&&(pe.h=B-pe.y)}}Ke||(pe.w=X,pe.h=ke),be==="resizestart"||be==="resizemove"?(u.placeholder.i=ze,u.placeholder.x=De,u.placeholder.y=ne,u.placeholder.w=pe.w,u.placeholder.h=pe.h,a.nextTick(()=>{u.isDragging=!0}),w.emit("updateWidth",u.width)):be&&a.nextTick(()=>{u.isDragging=!1}),t.responsive&&F(),bt(h.value,t.verticalCompact),w.emit("compact"),J(),be==="resizeend"&&s("layout-updated",h.value)}function F(){const be=O4(t.breakpoints,u.width);if(be===u.lastBreakpoint)return;const ze=Ic(be,t.cols);!rn(u.lastBreakpoint)&&!u.layouts[u.lastBreakpoint]&&(u.layouts[u.lastBreakpoint]=gi(h.value));const De=I4(u.originalLayout,u.layouts,t.breakpoints,be,u.lastBreakpoint,ze,t.verticalCompact);u.layouts[be]=De,u.lastBreakpoint!==be&&s("breakpoint-changed",be,De),h.value=De,s("update:layout",De),u.lastBreakpoint=be,w.emit("setColNum",ze)}function q(){u.layouts=Object.assign({},t.responsiveLayouts)}function G(be,ze){const De=new Set(ze.map(pe=>pe.i)),ne=new Set(be.map(pe=>pe.i)),ke=be.filter(pe=>!De.has(pe.i)),X=ze.filter(pe=>!ne.has(pe.i));return ke.concat(X)}return(be,ze)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"wrapper",ref:v,class:"vgl-layout",style:a.normalizeStyle(u.mergedStyle)},[be.$slots.default?a.renderSlot(be.$slots,"default",{key:0}):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(h.value,De=>(a.openBlock(),a.createBlock(No,a.mergeProps({key:De.i,ref_for:!0},De),{default:a.withCtx(()=>[a.renderSlot(be.$slots,"item",{item:De})]),_:2},1040))),128)),a.withDirectives(a.createVNode(No,{class:"vgl-item--placeholder",x:u.placeholder.x,y:u.placeholder.y,w:u.placeholder.w,h:u.placeholder.h,i:u.placeholder.i},null,8,["x","y","w","h","i"]),[[a.vShow,u.isDragging]])],4))}});(function(){try{if(typeof document<"u"){var l=document.createElement("style");l.appendChild(document.createTextNode('.vgl-layout{--vgl-placeholder-bg: red;--vgl-placeholder-opacity: 20%;--vgl-placeholder-z-index: 2;--vgl-item-resizing-z-index: 3;--vgl-item-resizing-opacity: 60%;--vgl-item-dragging-z-index: 3;--vgl-item-dragging-opacity: 100%;--vgl-resizer-size: 10px;--vgl-resizer-border-color: #444;--vgl-resizer-border-width: 2px;position:relative;box-sizing:border-box;transition:height .2s ease}.vgl-item{position:absolute;box-sizing:border-box;transition:.2s ease;transition-property:left,top,right}.vgl-item--placeholder{z-index:var(--vgl-placeholder-z-index, 2);-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:var(--vgl-placeholder-bg, red);opacity:var(--vgl-placeholder-opacity, 20%);transition-duration:.1s}.vgl-item--no-touch{touch-action:none}.vgl-item--transform{right:auto;left:0;transition-property:transform}.vgl-item--transform.vgl-item--rtl{right:0;left:auto}.vgl-item--resizing{z-index:var(--vgl-item-resizing-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-resizing-opacity, 60%)}.vgl-item--dragging{z-index:var(--vgl-item-dragging-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-dragging-opacity, 100%);transition:none}.vgl-item__resizer{position:absolute;right:0;bottom:0;box-sizing:border-box;width:var(--vgl-resizer-size);height:var(--vgl-resizer-size);cursor:se-resize}.vgl-item__resizer:before{position:absolute;top:0;right:3px;bottom:3px;left:0;content:"";border:0 solid var(--vgl-resizer-border-color);border-right-width:var(--vgl-resizer-border-width);border-bottom-width:var(--vgl-resizer-border-width)}.vgl-item__resizer--rtl{right:auto;left:0;cursor:sw-resize}.vgl-item__resizer--rtl:before{top:0;right:0;bottom:3px;left:3px;border-right-width:0;border-bottom-width:var(--vgl-resizer-border-width);border-left-width:var(--vgl-resizer-border-width)}')),document.head.appendChild(l)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();const x6={key:0,class:"item-view-group"},_6={key:0,class:"item-view-group"},w6=a.defineComponent({__name:"index",props:{children:{type:Object,default:()=>{}},level:{type:Number,default:1}},emits:["rowClick","routeUrl","radioChange"],setup(l,{emit:r}){const n=I.useModelComp(I.pinia),{isEdit:t}=I.storeToRefs(n),s=r,u=l,b=a.computed(()=>u==null?void 0:u.children),h=a.computed(()=>{var _,H,k,T;return((_=u==null?void 0:u.children)==null?void 0:_.length)>0&&((H=u==null?void 0:u.children)!=null&&H.every(J=>J==null?void 0:J.layout))?(T=(k=u==null?void 0:u.children)==null?void 0:k[0])==null?void 0:T.layout:"vertical"}),v=_=>{s("radioChange",_)},y=a.computed(()=>{var _,H;return((H=(_=u==null?void 0:u.children)==null?void 0:_[0])==null?void 0:H.isGridLayout)||!1}),c=a.ref((u==null?void 0:u.level)+1),w=a.computed(()=>{if(!(u!=null&&u.children)||!Array.isArray(u.children)||u.children.length<2)return!1;const _=u.children.some(k=>(k==null?void 0:k.name)==="测量系统配置表"&&(k==null?void 0:k.comp)==="ParentItem"),H=u.children.some(k=>(k==null?void 0:k.name)==="测量系统传递表"&&(k==null?void 0:k.comp)==="ParentItem");return _&&H});a.watch(()=>u==null?void 0:u.children,()=>{w.value},{deep:!0});const D=_=>{s("rowClick",_)},A=(_,H)=>{s("routeUrl",_,H)};return(_,H)=>y.value?(a.openBlock(),a.createBlock(a.unref(qc),{key:0,layout:b.value,"onUpdate:layout":H[0]||(H[0]=k=>b.value=k),"is-draggable":a.unref(t)==="edit","is-resizable":a.unref(t)==="edit","col-num":24,margin:[8,16]},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(b.value,(k,T)=>(a.openBlock(),a.createBlock(a.unref(No),{key:k.i,x:k.x,y:k.y,"min-h":k.minH,"max-h":k.maxH,"min-w":k.minW,w:k.w,h:k.h,i:k.i},{default:a.withCtx(()=>{var J,S,V,z,x,g,F,q,G,be,ze,De,ne,ke;return[a.createElementVNode("div",{style:a.normalizeStyle({gap:"16px",display:"flex",flexDirection:"column",paddingBottom:T===((J=u==null?void 0:u.children)==null?void 0:J.length)-1?"0px":"24px"})},[((V=(S=k==null?void 0:k.component)==null?void 0:S.comp)==null?void 0:V.toUpperCase())!=="TABLE"&&((z=k==null?void 0:k.component)!=null&&z.name)?(a.openBlock(),a.createElementBlock("div",x6,[a.createElementVNode("div",{class:"group-name-wrap",style:a.normalizeStyle({paddingLeft:(parseInt(c.value.toString())-1)*12+"px",fontWeight:600-(c.value-1)*100>=400?600-(c.value-1)*100:400,fontSize:17-c.value>=14?17-c.value+"px":"14px"})},a.toDisplayString((x=k==null?void 0:k.component)==null?void 0:x.name),5)])):a.createCommentVNode("",!0),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(jt)((g=k==null?void 0:k.component)==null?void 0:g.comp)),{pageLayout:h.value,config:{showIndex:(F=a.unref(Xl)[T])==null?void 0:F.showIndex,allowMove:(q=a.unref(Xl)[T])==null?void 0:q.allowMove,viewport:(G=a.unref(Xl)[T])==null?void 0:G.viewport,status:(be=a.unref(Xl)[T])==null?void 0:be.status},related:k==null?void 0:k.relatedTables,compName:k==null?void 0:k.component.name,compNames:a.unref(uc),itemData:(ze=k==null?void 0:k.component)==null?void 0:ze.compData,childItemData:(De=k==null?void 0:k.component)==null?void 0:De.itemChildData,key:a.unref($n),cacheNewData:a.unref(cc),onChange:a.unref(Eo),index:(k==null?void 0:k.id)??T,onContentChange:a.unref(So),onPageChange:a.unref(Do),parentTableId:(ne=k==null?void 0:k.component)==null?void 0:ne.tableId,allMapContents:a.unref(mi),children:(ke=k==null?void 0:k.component)==null?void 0:ke.children,level:c.value,onRowClick:D,onRouteUrl:A,onClickTrigger:a.unref(dc),onClickMainKey:a.unref(pc)},null,40,["pageLayout","config","related","compName","compNames","itemData","childItemData","cacheNewData","onChange","index","onContentChange","onPageChange","parentTableId","allMapContents","children","level","onClickTrigger","onClickMainKey"]))],4)]}),_:2},1032,["x","y","min-h","max-h","min-w","w","h","i"]))),128))]),_:1},8,["layout","is-draggable","is-resizable"])):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(u==null?void 0:u.children,(k,T)=>{var J,S;return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle({gap:"16px",display:(k==null?void 0:k.isShow)===!1?"none":"flex",flexDirection:"column",paddingBottom:parseInt(T)===((J=u==null?void 0:u.children)==null?void 0:J.length)-1?"0px":"24px"})},[((S=k==null?void 0:k.comp)==null?void 0:S.toUpperCase())!=="TABLE"&&k.name?(a.openBlock(),a.createElementBlock("div",_6,[a.createElementVNode("div",{class:"group-name-wrap",style:a.normalizeStyle({paddingLeft:parseInt(c.value.toString())>1?"12px":"0px",fontWeight:600-(c.value-1)*100>=400?600-(c.value-1)*100:400,fontSize:17-c.value>=14?17-c.value+"px":"14px"})},a.toDisplayString(k.name),5)])):a.createCommentVNode("",!0),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(jt)(k.comp)),{compName:k.name,config:{showIndex:k==null?void 0:k.showIndex,allowMove:k==null?void 0:k.allowMove,viewport:k==null?void 0:k.viewport,status:k==null?void 0:k.status},itemData:k==null?void 0:k.compData,related:k==null?void 0:k.relatedTables,childItemData:k==null?void 0:k.itemChildData,key:a.unref($n),onChange:a.unref(Eo),index:(k==null?void 0:k.id)??T,onContentChange:a.unref(So),onPageChange:a.unref(Do),parentTableId:k==null?void 0:k.tableId,allMapContents:a.unref(mi),children:k==null?void 0:k.children,level:c.value,onRowClick:D,onRouteUrl:A,onRadioChange:v},null,40,["compName","config","itemData","related","childItemData","onChange","index","onContentChange","onPageChange","parentTableId","allMapContents","children","level"]))],4)}),256))}}),C6=ql._export_sfc(w6,[["__scopeId","data-v-ed72c7ff"]]),E6={class:"radio-group-container"},S6=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},emits:["radioChange"],setup(l,{emit:r}){const n=l,t=r,s=a.ref(),u=rt(I.pinia),{selectTab:b}=I.storeToRefs(u);a.watch(()=>n==null?void 0:n.itemData,()=>{s.value=b.value},{immediate:!0,deep:!0});const h=v=>{s.value=v,t("radioChange",s.value)};return(v,y)=>(a.openBlock(),a.createElementBlock("div",E6,[a.createVNode(pl.ssRadio,{modelValue:s.value,"onUpdate:modelValue":y[0]||(y[0]=c=>s.value=c),content:n==null?void 0:n.itemData,onChange:h},null,8,["modelValue","content"])]))}}),D6=ql._export_sfc(S6,[["__scopeId","data-v-ed48c2f8"]]),Kc=a.ref([{name:"表格",type:"table",comp:"Table",icon:"Table"},{name:"表单",type:"form",comp:"Form",icon:"Form"},{name:"折叠",type:"fold",comp:"Fold",icon:"Fold"},{name:"头像",type:"avatar",comp:"AvatarUpload",icon:"Avatar"},{name:"签名",type:"signature",comp:"Signature",icon:"Signature"},{name:"步骤条",type:"step",comp:"Step",icon:"Step"},{name:"时间线",type:"timeLine",comp:"TimeLine",icon:"TimeLine"},{name:"标签页",type:"tabs",comp:"Tabs",icon:"Tabs"},{name:"图表",type:"chart",comp:"Chart",icon:"chart-new"},{name:"行内布局",type:"layout",comp:"Layout",icon:"ai13"}]),B6={TABLE:mc,FORM:hs,STATICFORM:yc,TABLEOPERATE:x1,TABLESTYLE:V1,TABLEEXTEND:R1,TABLEINTERACTION:j1,FORMOPERATE:vs,FOLD:g2,CALCULATOR:C2,METHODBUTTON:D2,AVATARUPLOAD:Ji.ssAvatar,SIGNATURE:Ji.ssSignature,FORMTOP:hs,STEP:R2,STEPOPERATE:c2,TIMELINE:q2,TIMELINEOPERATE:v2,FORMTOPOPERATE:vs,SIGNATUREOPERATE:L2,AVATARUPLOADOPERATE:T2,TABS:Y2,TABSOPERATE:Mh,CHART:Wh,CHARTOPERATE:n4,LAYOUT:i4,LAYOUTOPERATE:m4,PARENTITEM:C6,RADIO:D6};function St(l){return B6[l==null?void 0:l.toUpperCase()]||null}exports.De=qc;exports.activeStepInfo=kt;exports.addContents=Ft;exports.addVisibleDialog=wi;exports.affixItems=Jf;exports.allMapContents=mi;exports.analyzeFilter=xt;exports.analyzeForm=Nd;exports.analyzeQuoteForm=Bd;exports.analyzeTable=Ad;exports.cacheNewData=cc;exports.clickMainKey=pc;exports.clickSavePage=Gf;exports.clickStep=hc;exports.clickTrigger=dc;exports.compId=$n;exports.compNames=uc;exports.compShow=Et;exports.createRobotContent=lc;exports.existLayouts=n0;exports.fixChangeValue=wo;exports.generateLayouts=M1;exports.getComponent=St;exports.getComponents=jt;exports.getPageData=Pr;exports.getSliceContLength=c0;exports.gridRowHeight=B1;exports.isStepLayout=vc;exports.onBack=Wf;exports.onButtonChange=e0;exports.onChange=Eo;exports.onClick=Yf;exports.onContentChange=So;exports.onExtendTaskEnd=r0;exports.onOk=a0;exports.onPageBack=o0;exports.onPageChange=Do;exports.onSelectFixContent=Kf;exports.renderShowItems=ic;exports.robotFile=_f;exports.showItems=Xl;exports.sliceTableLength=sc;exports.slotContent=Kc;exports.ssTable=mc;exports.st=No;exports.stepItems=u0;exports.tabChange=t0;exports.toolBar=l0;exports.useFormComp=xi;exports.useModelLoader=Wp;exports.verifyButton=i0;