ss-component-new 1.3.293 → 1.3.294

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 (112) hide show
  1. package/dist/{MTLLoader-BOBkrSfe.js → MTLLoader-BrEAUYmm.js} +1 -1
  2. package/dist/{MTLLoader-C6rfxQ-U.cjs → MTLLoader-DqRiQxtb.cjs} +1 -1
  3. package/dist/{OrbitControls-stRsVWeF.cjs → OrbitControls-DjWgA8Ek.cjs} +1 -1
  4. package/dist/{OrbitControls-Dv9oFyLz.js → OrbitControls-Xm3TiWSm.js} +1 -1
  5. package/dist/{URDFLoader-C51mjCMr.cjs → URDFLoader-BG8UBoRV.cjs} +1 -1
  6. package/dist/{URDFLoader-CkLxRSym.js → URDFLoader-BVq4-_nm.js} +2 -2
  7. package/dist/{animationData-B4mCFW0Z.js → animationData-CKnGxrwv.js} +3 -3
  8. package/dist/{animationData-2Gchlfns.cjs → animationData-CvSQOLjD.cjs} +1 -1
  9. package/dist/{array-BZGJgmUx.cjs → array-BIFwfUgy.cjs} +1 -1
  10. package/dist/{array-BVedBC4J.js → array-h9qrV9Ml.js} +4 -4
  11. package/dist/clone-BkXJ1f6m.cjs +1 -0
  12. package/dist/{clone-DlNyA_zn.js → clone-DXbbt8Hm.js} +1 -1
  13. package/dist/{dayjs.min-73fIR1V_.cjs → dayjs.min-C_98bw1w.cjs} +1 -1
  14. package/dist/{dayjs.min-E1ZLJ-8j.js → dayjs.min-DuspkzAg.js} +1 -1
  15. package/dist/{iconfont-B3tjmizt.cjs → iconfont-Bh5e2p75.cjs} +1 -1
  16. package/dist/{iconfont-Dd30Cjr5.js → iconfont-CI2ln_lz.js} +2 -2
  17. package/dist/{index-Co-U8J6E.cjs → index-1hSToJw_.cjs} +1 -1
  18. package/dist/{index-DefvWUXW.js → index-7LnDFIOi.js} +6 -6
  19. package/dist/{index-DsopYGEs.js → index-8_DPJ72l.js} +9 -9
  20. package/dist/{index-CQY6ageG.cjs → index-92G6p6-P.cjs} +1 -1
  21. package/dist/{index-BK2xjtjO.js → index-B0Os7fXW.js} +4 -4
  22. package/dist/{index-D-RquVVU.cjs → index-B42t_3aO.cjs} +1 -1
  23. package/dist/{index-fAnqtn_m.cjs → index-B6OWlCN4.cjs} +1 -1
  24. package/dist/{index-0hpStIBH.js → index-B7B9vl_S.js} +4 -4
  25. package/dist/{index-Bsk8vIdB.cjs → index-BF-N-Qth.cjs} +1 -1
  26. package/dist/{index-BpzCJnoT.js → index-BMj0wGQ5.js} +1 -1
  27. package/dist/{index-BwyBfUCz.cjs → index-BSSGdoZ8.cjs} +1 -1
  28. package/dist/{index-CwOB279v.cjs → index-BVbA0cHb.cjs} +1 -1
  29. package/dist/{index-C_rNGRpL.js → index-BX5zltQ3.js} +2 -2
  30. package/dist/{index-B846yqBS.js → index-BbRiCABC.js} +2 -2
  31. package/dist/{index-BkOJA3nu.cjs → index-BcTkU3nu.cjs} +1 -1
  32. package/dist/{index-BKPi9246.js → index-BwLsaB2x.js} +7042 -7075
  33. package/dist/{index-CEwg_zdl.js → index-Bwv7RY5s.js} +1 -1
  34. package/dist/{index-CuxsdavJ.js → index-Bzw_ww-W.js} +4 -4
  35. package/dist/{index-B83PV1ft.cjs → index-C2939x9u.cjs} +1 -1
  36. package/dist/{index-BEEOZ_LN.js → index-CDVaGIeb.js} +1 -1
  37. package/dist/index-CLPhoWCk.js +9640 -0
  38. package/dist/{index-cC0isUDx.cjs → index-CNFkoqud.cjs} +1 -1
  39. package/dist/{index-B5_JD9Zr.js → index-CPlrxGTO.js} +2 -2
  40. package/dist/{index-CvAN1H22.js → index-CWCyvGjm.js} +9 -9
  41. package/dist/{index-DR_J3sca.js → index-CX9Re9vz.js} +2 -2
  42. package/dist/index-Co49Xwzc.cjs +25 -0
  43. package/dist/{index-C4MRQylF.cjs → index-D-514Msd.cjs} +1 -1
  44. package/dist/{index-CkXAOjdK.js → index-D4rNc1Ug.js} +2 -2
  45. package/dist/{index-sqfOcL_Q.cjs → index-D6rBwYFi.cjs} +1 -1
  46. package/dist/{index-DG_ZoAwM.cjs → index-D9VN9VwZ.cjs} +1 -1
  47. package/dist/{index-BJQ12PRZ.cjs → index-DIgF229o.cjs} +1 -1
  48. package/dist/{index-6egNZH3a.js → index-DPbLX2EM.js} +3 -3
  49. package/dist/{index-CEuh0_6n.js → index-DRSO21bq.js} +1 -1
  50. package/dist/index-DbnYm_qF.cjs +2 -0
  51. package/dist/{index-tT9c2s2F.js → index-Ddd5C1wv.js} +2 -2
  52. package/dist/{index-Cw3Mzxsu.cjs → index-Dfkxf6i6.cjs} +1 -1
  53. package/dist/{index-wW51rQ0m.js → index-Diu2CNkR.js} +6 -6
  54. package/dist/{index-DCL0uKEy.cjs → index-DjNtEs7b.cjs} +1 -1
  55. package/dist/{index-CBb-zQHx.cjs → index-DliVCzLT.cjs} +1 -1
  56. package/dist/{index-C4Dlzm7P.js → index-DmmlczJa.js} +4 -4
  57. package/dist/{index-OVAb_o-R.cjs → index-Dnm0jw7y.cjs} +1 -1
  58. package/dist/{index-DLJBDAUp.js → index-DnqpKHUZ.js} +1 -1
  59. package/dist/{index-B5V-oUOc.js → index-Do1JEQ8b.js} +1 -1
  60. package/dist/{index-WsYVHGnw.cjs → index-DtT8Y2gZ.cjs} +1 -1
  61. package/dist/{index-Ba_o-vqP.cjs → index-DzS8TUJx.cjs} +1 -1
  62. package/dist/{index-BMOdyP-6.cjs → index-DzvNguHf.cjs} +1 -1
  63. package/dist/{index-CsBViUVV.js → index-MM7KiUTF.js} +3 -3
  64. package/dist/{index-BxEBUPI0.cjs → index-R66yOvAG.cjs} +1 -1
  65. package/dist/{index-CAIY8beW.js → index-SQ7v5v4-.js} +3 -3
  66. package/dist/{index-CkTFRGxB.js → index-WrlsRfB9.js} +1 -1
  67. package/dist/{index-D-RfdXBa.cjs → index-XMnT8VKx.cjs} +1 -1
  68. package/dist/{index-CqiskI7e.js → index-Y6ou98p7.js} +1 -1
  69. package/dist/{index-DenEnDJU.cjs → index-apX7jShx.cjs} +1 -1
  70. package/dist/{index-Cxujb_7E.js → index-ehuQSQgp.js} +4 -4
  71. package/dist/{index-CUyRzcId.js → index-fChGNUaV.js} +2 -2
  72. package/dist/{index-Cq0IbX2g.cjs → index-g7Wgp9gu.cjs} +1 -1
  73. package/dist/{index-Cck4n4WY.cjs → index-ucDLs-jz.cjs} +1 -1
  74. package/dist/{index-BGXlt0Bk.cjs → index-zoVL0zIS.cjs} +1 -1
  75. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-6F-e2GJs.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CA4D5g5S.cjs} +62 -62
  76. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-C92zyRB7.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Ct_Gif7C.js} +1845 -1850
  77. package/dist/{main-Bj5s2YI8.cjs → main-BTE6x0vf.cjs} +1 -1
  78. package/dist/{main-B5W7D5YD.js → main-bSQJ_0uW.js} +4 -4
  79. package/dist/{menu-BMAZOS2j.js → menu-BzDsNPVM.js} +648 -560
  80. package/dist/{menu-DopnPfbG.cjs → menu-DUkDo01b.cjs} +5 -6
  81. package/dist/{menuIndex-DhpobxSC.cjs → menuIndex-BkBrPObt.cjs} +1 -1
  82. package/dist/{menuIndex-DuWSagQ-.js → menuIndex-yuvNAovT.js} +1 -1
  83. package/dist/ss-component.cjs +1 -1
  84. package/dist/ss-component.css +1 -1
  85. package/dist/ss-component.js +12 -12
  86. package/dist/ss-component2.cjs +1 -1
  87. package/dist/ss-component2.js +12 -12
  88. package/dist/{threeModel-C87-hoqY.js → threeModel-CTNYjx5D.js} +4 -4
  89. package/dist/{threeModel-DTxQtp2f.cjs → threeModel-DvlIbUeU.cjs} +1 -1
  90. package/dist/{threePreview-BfNy0TQL.js → threePreview-EMOU8ESj.js} +4 -4
  91. package/dist/{threePreview-DQX5gazP.cjs → threePreview-T5JQIpIE.cjs} +1 -1
  92. package/dist/{threeSceneView-Br8jbvLM.cjs → threeSceneView-APtKdbqq.cjs} +1 -1
  93. package/dist/{threeSceneView-jNmK6OkL.js → threeSceneView-DtyttwpI.js} +14 -14
  94. package/dist/{threeSceneViewForCPMPIP-B3ZnBCj6.cjs → threeSceneViewForCPMPIP-COQwY-59.cjs} +1 -1
  95. package/dist/{threeSceneViewForCPMPIP-DB1dWZmp.js → threeSceneViewForCPMPIP-jf5pOP0k.js} +8 -8
  96. package/dist/{threeTrackPathView-yar3btno.cjs → threeTrackPathView-ewxBf_AV.cjs} +1 -1
  97. package/dist/{threeTrackPathView-DaPoMzkC.js → threeTrackPathView-jXEBNcpF.js} +4 -4
  98. package/dist/{threeViewerHost-pVaZ-5d1.js → threeViewerHost-CDxym2iV.js} +3 -3
  99. package/dist/{threeViewerHost-CJ4fhhdJ.cjs → threeViewerHost-CgyOy9_V.cjs} +1 -1
  100. package/dist/{urdfTree-dQ-2fOQE.js → urdfTree-BRwS94Xs.js} +1 -1
  101. package/dist/{urdfTree-D7WPM5fm.cjs → urdfTree-BVYJZhPX.cjs} +1 -1
  102. package/dist/{workpieceTreePanel-Di20N5y6.js → workpieceTreePanel-D29Boj5S.js} +4 -4
  103. package/dist/{workpieceTreePanel-rK0hhgpD.cjs → workpieceTreePanel-FDRKfo7x.cjs} +1 -1
  104. package/package.json +1 -1
  105. package/dist/clone-DZsVSfvJ.cjs +0 -1
  106. package/dist/index-C73PF4P6.cjs +0 -25
  107. package/dist/index-efltJzM6.js +0 -9611
  108. package/dist/index-iyPg8SID.cjs +0 -2
  109. package/dist/obj/model.mtl +0 -42
  110. package/dist/obj/model.obj +0 -26110
  111. package/public/obj/model.mtl +0 -42
  112. package/public/obj/model.obj +0 -26110
@@ -0,0 +1,25 @@
1
+ "use strict";var ku=Object.defineProperty;var xu=(l,n,r)=>n in l?ku(l,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):l[n]=r;var qr=(l,n,r)=>xu(l,typeof n!="symbol"?n+"":n,r);const a=require("vue"),Qa=require("./request-BC2w2vGr.cjs"),Rn=require("./dayjs.min-C_98bw1w.cjs"),L=require("./menu-DUkDo01b.cjs"),dl=require("./index-D-514Msd.cjs"),Kl=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ja=require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CA4D5g5S.cjs"),xr=require("./index-CUw6nGTo.cjs"),wi=require("./threeViewerHost-CgyOy9_V.cjs"),sa=require("./index-BcTkU3nu.cjs"),wu=require("./index-DsNHJYr-.cjs"),_r=require("./index-CW4qJdP8.cjs"),Qt=require("./index-DzvNguHf.cjs");require("./index-BVbA0cHb.cjs");const Ws=require("./index-g7Wgp9gu.cjs"),Vo=require("./index-W8p89C7t.cjs"),un=require("./index-92G6p6-P.cjs");;/* empty css */const _i=require("./isString-DNBlKLZH.cjs"),es=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),Ks=require("./index-BVaHwt5f.cjs"),_u=require("./index-D9VN9VwZ.cjs"),On=require("./MTLLoader-DqRiQxtb.cjs"),Eu=require("./URDFLoader-BG8UBoRV.cjs");var Su="[object Boolean]";function Gs(l){return l===!0||l===!1||Qa.isObjectLike(l)&&Qa.baseGetTag(l)==Su}function Cu(l){return l===void 0}const Du=l=>l.match(/\((.*)\)/)[1],Bu={__name:"index",props:{isVisible:{type:Boolean,default:!1},title:{type:String,default:""},placement:{type:String,default:"bottom"},width:{type:Number,default:200},trigger:{type:String,default:"click"}},setup(l){const n=l,r=a.ref(null),o=a.ref(!1),s=a.ref(null);return a.watch(()=>n==null?void 0:n.isVisible,()=>{o.value=n==null?void 0:n.isVisible},{deep:!0,immediate:!0}),a.watch(()=>s.value,()=>{a.nextTick(()=>{var c,b;(b=(c=r.value)==null?void 0:c.updatePopper)==null||b.call(c)})},{deep:!0,immediate:!0}),(c,b)=>{const p=a.resolveComponent("el-popover");return a.openBlock(),a.createBlock(p,{visible:o.value,"onUpdate:visible":b[0]||(b[0]=v=>o.value=v),trigger:n.trigger,title:n==null?void 0:n.title,placement:n==null?void 0:n.placement,width:n==null?void 0:n.width,ref_key:"popOverRef",ref:r,"trigger-keys":"[]"},{reference:a.withCtx(()=>[a.createElementVNode("div",null,[a.renderSlot(c.$slots,"reference",{ref_key:"referenceRef",ref:s})])]),default:a.withCtx(()=>[a.createElementVNode("div",null,[a.renderSlot(c.$slots,"content")])]),_:3},8,["visible","trigger","title","placement","width"])}}},Nu={__name:"index",props:{value:{type:[String,Number],default:""}},setup(l){const n=l,r=a.computed(()=>{const o=String(n.value??"");return o==="已完成"?"task-status-completed":o==="进行中"?"task-status-running":o==="终止"||o==="暂停"?"task-status-stopped":""});return(o,s)=>l.value!==void 0&&l.value!==null?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(["task-status-tag",r.value])},a.toDisplayString(l.value===0?"0":l.value),3)):a.createCommentVNode("",!0)}},Tu=Kl._export_sfc(Nu,[["__scopeId","data-v-d81f59b4"]]);function Au(l,n,r,o={}){if(!l||!n||!r||r.length!==4)return;const s=l.getContext("2d");if(!s)return;const{color:c="rgba(255, 235, 59, 0.3)",strokeWidth:b=2,fillOpacity:p=.2}=o,v=l.getBoundingClientRect(),y=n.getBoundingClientRect(),u=n.naturalWidth,_=n.naturalHeight,N=y.width/u,$=y.height/_,S=Math.min(N,$),q=u*S,O=_*S,M=(v.width-q)/2,Z=(v.height-O)/2,C=r.map(([E,m])=>{const g=M+E*q,j=Z+m*O;return{x:g,y:j}});s.clearRect(0,0,l.width,l.height),s.beginPath(),s.moveTo(C[0].x,C[0].y);for(let E=1;E<C.length;E++)s.lineTo(C[E].x,C[E].y);s.closePath();const w=c.replace(/[\d.]+\)$/,`${p})`);s.fillStyle=w,s.fill(),s.strokeStyle=c.replace(/[\d.]+\)$/,"1)"),s.lineWidth=b,s.stroke()}function ko(l){if(!l)return;const n=l.getContext("2d");n&&n.clearRect(0,0,l.width,l.height)}function as(l,n){if(!l||!n)return null;const r=l[n];return!r||!r.bboxNorm||!Array.isArray(r.bboxNorm)||r.bboxNorm.length!==4?null:{bboxNorm:r.bboxNorm,imageName:r.imageName||""}}const zu={key:0,class:"ocr-img-preview-root"},Mu={class:"ocr-img-preview-window"},Iu={key:0,class:"img-preview-body"},Ou={class:"img-preview-header"},Lu={class:"img-header-left"},$u={class:"img-name"},Ru={key:0,class:"img-header-right"},Vu={class:"img-index"},Pu={key:0,class:"img-thumb-list"},Fu=["onClick"],ju={key:1,class:"thumb-placeholder"},Hu={class:"thumb-name"},Uu={class:"img-preview-container"},qu={key:0,class:"img-placeholder"},Wu={key:2,class:"img-placeholder"},Ku={key:0},Gu={key:1},Yu={key:1,class:"img-placeholder"},Ju=a.defineComponent({__name:"imgPreview",props:{visible:{type:Boolean,default:!1},images:{type:Array,default:()=>[]},defaultImageName:{type:String,default:""},fieldMeta:{type:Object,default:()=>({})},focusedFieldName:{type:String,default:""}},emits:["update:visible","close"],setup(l,{emit:n}){const r=l,o=n,s=a.computed({get:()=>r.visible,set:D=>o("update:visible",D)});let c=!1,b="",p=0,v=0,y=0,u=0,_=0,N=0,$=null;const S=D=>{var be,ue;const re=(ue=(be=D==null?void 0:D.target)==null?void 0:be.closest)==null?void 0:ue.call(be,".ocr-img-preview-window");return re||document.querySelector(".ocr-img-preview-window")},q=D=>{if(!D||D==="none")return{tx:0,ty:0};let re=D.match(/matrix\(([^)]+)\)/);if(re){const be=re[1].split(",").map(ue=>Number(ue.trim()));return{tx:(be==null?void 0:be[4])||0,ty:(be==null?void 0:be[5])||0}}if(re=D.match(/matrix3d\(([^)]+)\)/),re){const be=re[1].split(",").map(ue=>Number(ue.trim()));return{tx:(be==null?void 0:be[12])||0,ty:(be==null?void 0:be[13])||0}}return re=D.match(/translate\(\s*([-\d.]+)px\s*,\s*([-\d.]+)px\s*\)/),re?{tx:Number(re[1])||0,ty:Number(re[2])||0}:{tx:0,ty:0}},O=(D,re,be)=>{D.style.transform=`translate(${re}px, ${be}px)`},M=D=>{const re=S(D);if(!re)return;c=!0,$=re,b="move",p=D.clientX,v=D.clientY;const be=window.getComputedStyle(re),{tx:ue,ty:De}=q(be.transform);_=ue,N=De,document.addEventListener("mousemove",C),document.addEventListener("mouseup",w)},Z=(D,re)=>{const be=S(D);if(!be)return;c=!0,$=be,b=re,p=D.clientX,v=D.clientY;const ue=be.getBoundingClientRect();y=ue.width,u=ue.height;const De=window.getComputedStyle(be),{tx:pa,ty:_a}=q(De.transform);_=pa,N=_a,document.addEventListener("mousemove",C),document.addEventListener("mouseup",w)},C=D=>{if(!c||!$)return;const re=D.clientX-p,be=D.clientY-v,ue=360,De=420;let pa=y,_a=u,Ga=_,le=N;if(b==="move"){Ga=_+re,le=N+be,O($,Ga,le);return}if(b.includes("right")&&(pa=Math.max(ue,y+re)),b.includes("bottom")&&(_a=Math.max(De,u+be)),b.includes("left")){const la=y-re;la<ue?(pa=ue,Ga=_+(y-ue)):(pa=la,Ga=_+re)}if(b.includes("top")){const la=u-be;la<De?(_a=De,le=N+(u-De)):(_a=la,le=N+be)}$.style.width=`${pa}px`,$.style.height=`${_a}px`,O($,Ga,le)},w=()=>{c=!1,b="",$=null,document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",w)},E=a.ref([]),m=a.ref(!1);a.watch(()=>r.images,async D=>{if(!Array.isArray(D)||D.length===0){E.value=[];return}m.value=!0;const re=[];for(const be of D)if(be.url&&!be.url.startsWith("blob:")&&!be.url.startsWith("http"))try{const ue=await ja.downloadFile(be.url),De=URL.createObjectURL(ue);re.push({...be,blobUrl:De})}catch(ue){console.error(`Failed to load image for preview: ${be.url}`,ue),re.push({...be,blobUrl:""})}else re.push({...be,blobUrl:be.url});E.value=re,m.value=!1},{deep:!0,immediate:!0});const g=a.ref(0),j=a.ref(null),V=a.ref(null),G=a.computed(()=>E.value[g.value]||null),he=()=>{if(!E.value.length){g.value=0;return}if(r.defaultImageName){const D=E.value.findIndex(re=>(re==null?void 0:re.name)===r.defaultImageName);g.value=D>=0?D:0}else g.value=0},Te=D=>{if(!E.value.length)return;const re=Math.max(0,Math.min(D,E.value.length-1));g.value=re},Se=()=>Te(g.value-1),Q=()=>Te(g.value+1),fe=D=>{if(!D)return;const re=E.value.findIndex(be=>(be==null?void 0:be.name)===D);re>=0&&(g.value=re)},J=()=>{if(!V.value)return;const D=V.value.parentElement;if(!D)return;const re=D.getBoundingClientRect();V.value.width=re.width,V.value.height=re.height},ce=()=>{var ue,De;if(!V.value||!j.value||!r.focusedFieldName){V.value&&ko(V.value);return}const D=(ue=j.value.$el)==null?void 0:ue.querySelector("img");if(!D)return;if(!D.complete||D.naturalWidth===0){D.onload=()=>{a.nextTick(()=>{ce()})};return}const re=((De=G.value)==null?void 0:De.name)||"",be=as(r.fieldMeta,r.focusedFieldName);if(!be){ko(V.value);return}if(be.imageName!==re){ko(V.value);return}J(),Au(V.value,D,be.bboxNorm)},He=()=>{a.nextTick(()=>{J(),ce()})};a.watch(()=>r.focusedFieldName,()=>{if(!s.value)return;const D=as(r.fieldMeta,r.focusedFieldName);D!=null&&D.imageName&&fe(D.imageName),a.nextTick(()=>{ce()})}),a.watch(()=>{var D;return(D=G.value)==null?void 0:D.name},()=>{s.value&&a.nextTick(()=>{V.value&&ko(V.value),ce()})}),a.watch(()=>r.visible,D=>{D?(he(),a.nextTick(()=>{J(),ce()})):V.value&&ko(V.value)}),a.watch(()=>r.defaultImageName,()=>{s.value&&he()});let Ca=null;a.onMounted(()=>{var D;typeof ResizeObserver<"u"&&(Ca=new ResizeObserver(()=>{J(),a.nextTick(()=>{ce()})}),(D=V.value)!=null&&D.parentElement&&Ca.observe(V.value.parentElement))}),a.onUnmounted(()=>{Ca&&(Ca.disconnect(),Ca=null),document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",w)});const ne=()=>{V.value&&ko(V.value),o("update:visible",!1),o("close")};return(D,re)=>{var _a,Ga;const be=a.resolveComponent("el-button"),ue=a.resolveComponent("el-image"),De=a.resolveComponent("Loading"),pa=a.resolveComponent("el-icon");return s.value?(a.openBlock(),a.createElementBlock("div",zu,[re[12]||(re[12]=a.createElementVNode("div",{class:"ocr-img-preview-backdrop"},null,-1)),a.createElementVNode("div",Mu,[a.createElementVNode("div",{class:"ocr-img-preview-header",onMousedown:a.withModifiers(M,["stop"])},[re[8]||(re[8]=a.createElementVNode("span",{class:"ocr-img-preview-title"},"文件预览",-1)),a.createElementVNode("button",{type:"button",class:"ocr-img-preview-close",onClick:ne},"×")],32),a.createElementVNode("div",{class:"resizable-handle top",onMousedown:re[0]||(re[0]=a.withModifiers(le=>Z(le,"top"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle right",onMousedown:re[1]||(re[1]=a.withModifiers(le=>Z(le,"right"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom",onMousedown:re[2]||(re[2]=a.withModifiers(le=>Z(le,"bottom"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle left",onMousedown:re[3]||(re[3]=a.withModifiers(le=>Z(le,"left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle top-left",onMousedown:re[4]||(re[4]=a.withModifiers(le=>Z(le,"top-left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle top-right",onMousedown:re[5]||(re[5]=a.withModifiers(le=>Z(le,"top-right"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom-left",onMousedown:re[6]||(re[6]=a.withModifiers(le=>Z(le,"bottom-left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom-right",onMousedown:re[7]||(re[7]=a.withModifiers(le=>Z(le,"bottom-right"),["stop"]))},null,32),G.value?(a.openBlock(),a.createElementBlock("div",Iu,[a.createElementVNode("div",Ou,[a.createElementVNode("div",Lu,[a.createElementVNode("span",$u,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)]),E.value.length>1?(a.openBlock(),a.createElementBlock("div",Ru,[a.createVNode(be,{size:"small",disabled:g.value===0,onClick:Se},{default:a.withCtx(()=>re[9]||(re[9]=[a.createTextVNode("上一张")])),_:1,__:[9]},8,["disabled"]),a.createElementVNode("span",Vu,a.toDisplayString(g.value+1)+" / "+a.toDisplayString(E.value.length),1),a.createVNode(be,{size:"small",disabled:g.value===E.value.length-1,onClick:Q},{default:a.withCtx(()=>re[10]||(re[10]=[a.createTextVNode("下一张")])),_:1,__:[10]},8,["disabled"])])):a.createCommentVNode("",!0)]),E.value.length>1?(a.openBlock(),a.createElementBlock("div",Pu,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(E.value,(le,la)=>(a.openBlock(),a.createElementBlock("div",{key:(le.name||"")+"-"+la,class:a.normalizeClass(["img-thumb-item",{active:la===g.value}]),onClick:Ve=>Te(la)},[le!=null&&le.blobUrl?(a.openBlock(),a.createBlock(ue,{key:0,src:le.blobUrl,fit:"cover",class:"thumb-image","preview-src-list":[le.blobUrl],"initial-index":0},null,8,["src","preview-src-list"])):(a.openBlock(),a.createElementBlock("div",ju,"加载失败")),a.createElementVNode("div",Hu,a.toDisplayString(le.name||"-"),1)],10,Fu))),128))])):a.createCommentVNode("",!0),a.createElementVNode("div",Uu,[m.value?(a.openBlock(),a.createElementBlock("div",qu,[a.createVNode(pa,{class:"is-loading"},{default:a.withCtx(()=>[a.createVNode(De)]),_:1}),re[11]||(re[11]=a.createElementVNode("span",null,"图片加载中...",-1))])):(_a=G.value)!=null&&_a.blobUrl?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createVNode(ue,{ref_key:"imageRef",ref:j,src:G.value.blobUrl,fit:"contain",class:"preview-image","preview-src-list":[G.value.blobUrl],onLoad:He},null,8,["src","preview-src-list"]),a.createElementVNode("canvas",{ref_key:"canvasRef",ref:V,class:"highlight-canvas"},null,512)],64)):(a.openBlock(),a.createElementBlock("div",Wu,[(Ga=G.value)!=null&&Ga.url?(a.openBlock(),a.createElementBlock("span",Ku,"图片加载失败")):(a.openBlock(),a.createElementBlock("span",Gu,"暂无图片"))]))])])):(a.openBlock(),a.createElementBlock("div",Yu,"暂无图片"))])])):a.createCommentVNode("",!0)}}}),Xu=Kl._export_sfc(Ju,[["__scopeId","data-v-48a4ecb1"]]),Zu={class:"cert-preview-body"},Qu={key:0,class:"pdf-preview-container"},ed={class:"thumbs"},ad=["onClick"],ld={class:"thumb-img"},rd=["src"],nd={key:1,class:"thumb-loading"},od={class:"thumb-title"},id={class:"viewer"},td={key:0,class:"viewer-img-wrap"},sd=["src"],cd={key:1,class:"viewer-loading"},ud=a.defineComponent({__name:"CertificatePreview",props:{visible:{type:Boolean},versions:{}},emits:["update:visible"],setup(l,{emit:n}){const r=l,o=n,s=a.ref(""),c=a.ref(""),b=a.computed(()=>(r.versions||[]).find(S=>String(S.versionId)===String(s.value))),p=a.ref({}),v=a.ref(""),y=a.ref("证书附件.pdf"),u=()=>{try{Object.values(p.value||{}).forEach(S=>{S&&URL.revokeObjectURL(S)}),v.value&&URL.revokeObjectURL(v.value)}catch{}p.value={},v.value=""},_=async S=>{if(!S||S.fileType==="pdf")return;const q=Array.isArray(S.images)?S.images:[];for(const O of q){const M=O==null?void 0:O.url;if(!(!M||p.value[M]))try{const Z=await L.platformDownloadFile({url:M}),C=URL.createObjectURL(Z.data);p.value={...p.value,[M]:C}}catch{}}},N=async S=>{var O;if(!S||S.fileType!=="pdf"){v.value="";return}const q=S.sourceUrl||"";if(!q){v.value="";return}if(v.value){try{URL.revokeObjectURL(v.value)}catch{}v.value=""}try{console.log("[CertificatePreview] 下载PDF附件:",{url:q,versionId:S==null?void 0:S.versionId,certNo:S==null?void 0:S.certNo});const M=await L.platformDownloadFile({url:q});console.log("[CertificatePreview] PDF响应:",{url:q,status:M==null?void 0:M.status,size:(O=M==null?void 0:M.data)==null?void 0:O.size});const Z=URL.createObjectURL(M.data);v.value=Z;const C=S.certNo?String(S.certNo):"";y.value=C?`${C}.pdf`:"证书附件.pdf"}catch(M){console.error("[CertificatePreview] PDF加载失败:",{url:q,error:M}),v.value=""}};a.watch(()=>r.visible,async S=>{var O;if(!S){u();return}const q=(O=r.versions)==null?void 0:O[0];s.value=(q==null?void 0:q.versionId)||"",await _(q),await N(q)},{immediate:!0}),a.watch(()=>s.value,async()=>{var q,O;const S=b.value;if(!S){c.value="",v.value="";return}if(S.fileType==="pdf"){c.value="",await N(S);return}v.value="",c.value=((O=(q=S.images)==null?void 0:q[0])==null?void 0:O.url)||"",await _(S)},{immediate:!0});const $=()=>{o("update:visible",!1),u()};return a.onBeforeUnmount(()=>{u()}),(S,q)=>{const O=a.resolveComponent("el-empty"),M=a.resolveComponent("el-tab-pane"),Z=a.resolveComponent("el-tabs"),C=a.resolveComponent("el-button"),w=a.resolveComponent("el-dialog");return a.openBlock(),a.createBlock(w,{"model-value":S.visible,title:"证书附件预览",width:"1100px","close-on-click-modal":!1,onClose:$},{footer:a.withCtx(()=>[a.createVNode(C,{id:"themeBorderButton",onClick:$},{default:a.withCtx(()=>q[1]||(q[1]=[a.createTextVNode("关闭")])),_:1,__:[1]})]),default:a.withCtx(()=>[S.versions&&S.versions.length>0?(a.openBlock(),a.createBlock(Z,{key:0,modelValue:s.value,"onUpdate:modelValue":q[0]||(q[0]=E=>s.value=E),type:"card",class:"cert-version-tabs"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(S.versions,E=>(a.openBlock(),a.createBlock(M,{key:E.versionId,name:E.versionId,label:E.label},{default:a.withCtx(()=>[a.createElementVNode("div",Zu,[E.fileType==="pdf"?(a.openBlock(),a.createElementBlock("div",Qu,[v.value?(a.openBlock(),a.createBlock(dl.SsFilePreview,{key:1,fileName:y.value,blobUrl:v.value},null,8,["fileName","blobUrl"])):(a.openBlock(),a.createBlock(O,{key:0,description:"加载中"}))])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("div",ed,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(E.images||[],m=>(a.openBlock(),a.createElementBlock("div",{key:m.url,class:a.normalizeClass(["thumb",{active:m.url===c.value}]),onClick:g=>c.value=m.url},[a.createElementVNode("div",ld,[p.value[m.url]?(a.openBlock(),a.createElementBlock("img",{key:0,src:p.value[m.url]},null,8,rd)):(a.openBlock(),a.createElementBlock("div",nd,"加载中"))]),a.createElementVNode("div",od,a.toDisplayString(m.name),1)],10,ad))),128))]),a.createElementVNode("div",id,[c.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[p.value[c.value]?(a.openBlock(),a.createElementBlock("div",td,[a.createElementVNode("img",{class:"viewer-img",src:p.value[c.value]},null,8,sd)])):(a.openBlock(),a.createElementBlock("div",cd,"加载中"))],64)):(a.openBlock(),a.createBlock(O,{key:0,description:"暂无图片"}))])],64))])]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue"])):(a.openBlock(),a.createBlock(O,{key:1,description:"暂无可预览的证书附件"}))]),_:1},8,["model-value"])}}}),dd=Kl._export_sfc(ud,[["__scopeId","data-v-220703c0"]]),pd={class:"ocr-candidate-wrap"},fd={class:"ocr-candidate-left"},hd={key:1},vd={key:0},md={key:1},yd={key:2},gd={key:3},bd={key:0,class:"ocr-candidate-right"},kd={class:"ocr-candidate-actions"},xd={key:1},wd={class:"dialog-footer"},_d={__name:"OCRCandidateDialog",props:{visible:{type:Boolean,default:!1},candidates:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},nameProp:{type:String,default:""},mfrProp:{type:String,default:""}},emits:["update:visible","submit","preview-file"],setup(l,{emit:n}){const r=(g=[])=>{const j=[],V=G=>{(G||[]).forEach(he=>{if(!he)return;const Te=he.children||he.childrens||he.columns;Array.isArray(Te)&&Te.length>0?V(Te):j.push(he)})};return V(g),j},o=l,s=n,c=a.computed(()=>{var g;return((g=N.value)==null?void 0:g.allowAdd)!==!1}),b=a.computed(()=>{var g;return((g=N.value)==null?void 0:g.allowReplace)!==!1}),p=g=>{if(!g)return[];if(Array.isArray(g))return g;if(typeof g=="string")try{const j=JSON.parse(g);return Array.isArray(j)?j:[]}catch{return[]}return[]},v=g=>{s("preview-file",g)},y=a.ref([]),u=a.ref(0),_=a.ref("");a.watch(()=>o.candidates,g=>{var j,V;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})),u.value=0,_.value=((V=(j=y.value)==null?void 0:j[0])==null?void 0:V.selectedTargetId)||""},{immediate:!0,deep:!0}),a.watch(()=>o.visible,g=>{var j,V;g&&(u.value=0,_.value=((V=(j=y.value)==null?void 0:j[0])==null?void 0:V.selectedTargetId)||"")});const N=a.computed(()=>{var j;const g=Number(u.value||0);return((j=y.value||[])==null?void 0:j[g])||null}),$=a.computed(()=>(r(o.columns||[])||[]).filter(V=>V&&V.prop).filter(V=>V.type!=="operate"&&V.label!=="操作"&&V.prop!=="operate")),S=a.computed(()=>$.value.filter(g=>g.label!=="证书附件"&&g.prop!=="证书附件")),q=g=>{if(!g)return;const j=(y.value||[]).findIndex(V=>(V==null?void 0:V.idx)===(g==null?void 0:g.idx));j>-1&&(u.value=j,_.value=(g==null?void 0:g.selectedTargetId)||"")},O=g=>{if(!g){_.value="";return}_.value=String((g==null?void 0:g.id)??"")},M=(g,j="")=>{const V=Number(u.value||0),G=y.value||[],he=G[V];he&&(he.__decision=g,he.selectedTargetId=j,_.value=j,y.value=[...G])},Z=()=>M("skip",""),C=()=>M("add",""),w=()=>{if(!_.value){Qa.ElMessage.warning("请先选择要替换的目标记录");return}M("replace",_.value)},E=()=>{s("update:visible",!1)},m=()=>{const g=y.value||[];if(g.find(V=>(V==null?void 0:V.__decision)==="replace"&&!(V!=null&&V.selectedTargetId))){Qa.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}s("submit",g),s("update:visible",!1)};return(g,j)=>{const V=a.resolveComponent("el-table-column"),G=a.resolveComponent("svg-icon"),he=a.resolveComponent("el-table"),Te=a.resolveComponent("el-button"),Se=a.resolveComponent("el-alert");return a.openBlock(),a.createBlock(xr.ssDialog,{title:"OCR候选匹配",visible:l.visible,"close-on-click-modal":!1,width:"90%",style:{maxWidth:"1200px"},onBeforeDestroy:E},{default:a.withCtx(()=>{var Q,fe;return[a.createElementVNode("div",pd,[a.createElementVNode("div",fd,[j[0]||(j[0]=a.createElementVNode("div",{class:"ocr-candidate-title"},"待处理OCR行(可跳过)",-1)),a.createVNode(he,{data:y.value,border:"",stripe:"","max-height":"300",style:{width:"100%"},"highlight-current-row":"",onCurrentChange:q},{default:a.withCtx(()=>[a.createVNode(V,{type:"index",label:"序号",width:"60"}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(S.value,J=>(a.openBlock(),a.createBlock(V,{key:J.prop,label:J.label,prop:J.prop,"min-width":J.minWidth||160},{default:a.withCtx(({row:ce})=>[J.label==="证书附件"||J.prop==="证书附件"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[p(ce==null?void 0:ce[J.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(He=>v({row:ce,prop:J.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(a.openBlock(),a.createElementBlock("span",hd,"-"))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString((ce==null?void 0:ce[J.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128)),a.createVNode(V,{label:"候选数",width:"90",fixed:"right"},{default:a.withCtx(({row:J})=>[a.createTextVNode(a.toDisplayString(((J==null?void 0:J.candidates)||[]).length),1)]),_:1}),a.createVNode(V,{label:"处理状态",width:"120",fixed:"right"},{default:a.withCtx(({row:J})=>[(J==null?void 0:J.__decision)==="replace"?(a.openBlock(),a.createElementBlock("span",vd,"替换")):(J==null?void 0:J.__decision)==="add"?(a.openBlock(),a.createElementBlock("span",md,"新增")):(J==null?void 0:J.__decision)==="skip"?(a.openBlock(),a.createElementBlock("span",yd,"跳过")):(a.openBlock(),a.createElementBlock("span",gd,"未处理"))]),_:1})]),_:1},8,["data"])]),y.value&&y.value.length>0?(a.openBlock(),a.createElementBlock("div",bd,[j[4]||(j[4]=a.createElementVNode("div",{class:"ocr-candidate-title"},"当前行候选记录(同编号)",-1)),a.createElementVNode("div",kd,[a.createVNode(Te,{id:"themeBorderButton",onClick:Z},{default:a.withCtx(()=>j[1]||(j[1]=[a.createTextVNode("跳过本行")])),_:1,__:[1]}),a.createVNode(Te,{id:"themeBorderButton",onClick:C,disabled:!c.value},{default:a.withCtx(()=>j[2]||(j[2]=[a.createTextVNode("新增本行")])),_:1,__:[2]},8,["disabled"]),a.createVNode(Te,{class:"ok-button",id:"themeButton",onClick:w,disabled:!b.value||!_.value},{default:a.withCtx(()=>j[3]||(j[3]=[a.createTextVNode("替换选中记录")])),_:1,__:[3]},8,["disabled"])]),(((Q=N.value)==null?void 0:Q.candidates)||[]).length===0?(a.openBlock(),a.createBlock(Se,{key:0,title:"该编号暂无候选记录,可选择“新增本行”或“跳过本行”。",type:"info",closable:!1,"show-icon":"",style:{margin:"8px 0"}})):a.createCommentVNode("",!0),a.createVNode(he,{data:((fe=N.value)==null?void 0:fe.candidates)||[],border:"",stripe:"","max-height":"300",style:{width:"100%"},onCurrentChange:O,"highlight-current-row":""},{default:a.withCtx(()=>[a.createVNode(V,{type:"index",label:"序号",width:"60"}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList($.value,J=>(a.openBlock(),a.createBlock(V,{key:J.prop,label:J.label,prop:J.prop,"min-width":J.minWidth||160},{default:a.withCtx(({row:ce})=>[J.label==="证书附件"||J.prop==="证书附件"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[p(ce==null?void 0:ce[J.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(He=>v({row:ce,prop:J.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(a.openBlock(),a.createElementBlock("span",xd,"-"))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString((ce==null?void 0:ce[J.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128))]),_:1},8,["data"])])):a.createCommentVNode("",!0)])]}),footer:a.withCtx(()=>[a.createElementVNode("div",wd,[a.createVNode(Te,{id:"themeBorderButton",onClick:E},{default:a.withCtx(()=>j[5]||(j[5]=[a.createTextVNode("取消")])),_:1,__:[5]}),a.createVNode(Te,{class:"ok-button",id:"themeButton",onClick:m},{default:a.withCtx(()=>j[6]||(j[6]=[a.createTextVNode("提交已处理")])),_:1,__:[6]})])]),_:1},8,["visible"])}}},Ed=Kl._export_sfc(_d,[["__scopeId","data-v-89e0489c"]]),Sd={class:"ocr-preview-content"},Cd={class:"ocr-preview-tip"},Dd={class:"ocr-preview-table"},Bd={style:{display:"flex","align-items":"center",gap:"8px"}},Nd={class:"dialog-footer"},Td={__name:"OCRResultPreviewDialog",props:{visible:{type:Boolean,default:!1},ocrPreviewData:{type:Array,default:()=>[]},ocrPreviewColumns:{type:Array,default:()=>[]},ocrSelectedFields:{type:Array,default:()=>[]}},emits:["update:visible","update:ocrPreviewData","update:ocrSelectedFields","confirm","fieldChange"],setup(l,{emit:n}){const r=l,o=n,s=a.ref([]),c=a.ref([]),b=a.ref([]);a.watch(()=>r.visible,$=>{$&&(s.value=JSON.parse(JSON.stringify(r.ocrPreviewData)),c.value=JSON.parse(JSON.stringify(r.ocrPreviewColumns)),b.value=[...r.ocrSelectedFields])});const p=($,S)=>{const q=[...b.value];if(S)q.includes($)||q.push($);else{const O=q.indexOf($);O>-1&&q.splice(O,1)}b.value=q,o("update:ocrSelectedFields",q)},v=($,S,q)=>{o("fieldChange",{rowIndex:$,prop:S,value:q})},y=()=>{o("update:ocrPreviewData",s.value),o("confirm",s.value),o("update:visible",!1)},u=()=>{o("update:visible",!1)},_=$=>typeof $!="number"?"-":`${($*100).toFixed(1)}%`,N=$=>typeof $!="number"?"#606266":$>=.9?"#67c23a":$>=.7?"#e6a23c":"#f56c6c";return($,S)=>{const q=a.resolveComponent("el-alert"),O=a.resolveComponent("el-table-column"),M=a.resolveComponent("el-checkbox"),Z=a.resolveComponent("el-input"),C=a.resolveComponent("el-table"),w=a.resolveComponent("el-button");return a.openBlock(),a.createBlock(xr.ssDialog,{title:"OCR识别结果预览",visible:l.visible,onBeforeDestroy:u,width:"90%",style:{maxWidth:"1200px"}},{default:a.withCtx(()=>[a.createElementVNode("div",Sd,[a.createElementVNode("div",Cd,[a.createVNode(q,{title:"请核对识别结果。系统将按 编号+名称+制造厂 规则匹配并替换;未唯一命中但有编号的,将进入候选选择;无编号则直接新增。",type:"info",closable:!1,"show-icon":""})]),a.createElementVNode("div",Dd,[a.createVNode(C,{data:s.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:a.withCtx(()=>[a.createVNode(O,{type:"index",label:"序号",width:"60",fixed:""}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.value,E=>(a.openBlock(),a.createBlock(O,{key:E.prop,prop:E.prop,"min-width":E.minWidth||230,"class-name":E.isAccuracy?"accuracy-column":""},{header:a.withCtx(()=>[a.createElementVNode("div",Bd,[E.isAccuracy?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(M,{key:0,"model-value":b.value.includes(E.prop),onChange:m=>p(E.prop,m),onClick:S[0]||(S[0]=a.withModifiers(()=>{},["stop"]))},null,8,["model-value","onChange"])),a.createElementVNode("span",null,a.toDisplayString(E.label),1)])]),default:a.withCtx(({row:m,$index:g})=>[E.isAccuracy?(a.openBlock(),a.createElementBlock("span",{key:0,class:"accuracy-value",style:a.normalizeStyle({color:N(m[E.prop]),fontWeight:500})},a.toDisplayString(_(m[E.prop])),5)):(a.openBlock(),a.createBlock(Z,{key:1,modelValue:m[E.prop],"onUpdate:modelValue":j=>m[E.prop]=j,size:"small",placeholder:"请输入"+E.label,onChange:j=>v(g,E.prop,j)},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"]))]),_:2},1032,["prop","min-width","class-name"]))),128))]),_:1},8,["data"])])])]),footer:a.withCtx(()=>[a.createElementVNode("div",Nd,[a.createVNode(w,{onClick:u,id:"themeBorderButton"},{default:a.withCtx(()=>S[1]||(S[1]=[a.createTextVNode("取消")])),_:1,__:[1]}),a.createVNode(w,{class:"ok-button",onClick:y,id:"themeButton"},{default:a.withCtx(()=>S[2]||(S[2]=[a.createTextVNode("确认")])),_:1,__:[2]})])]),_:1},8,["visible"])}}},Ad=Kl._export_sfc(Td,[["__scopeId","data-v-df66eb1f"]]),Eo=l=>{var o;let n=l;(n==null?void 0:n[0])==="("&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1));let r=(o=ja.analyzeSplitToContent(n,","))==null?void 0:o.map(s=>((s==null?void 0:s[(s==null?void 0:s.length)-1])===","&&(s=s==null?void 0:s.slice(0,(s==null?void 0:s.length)-1)),dt(s)));return r=r==null?void 0:r.join(","),r};let Ra="$R",oo="[Any]";const zd=l=>{var b,p,v,y;let n={},r=l==null?void 0:l[0],o=(p=(b=r==null?void 0:r.replace("{",Ra))==null?void 0:b.split(Ra))==null?void 0:p[0];(o==null?void 0:o[0])==="*"&&(o=o==null?void 0:o.slice(1,o==null?void 0:o.length)),o=o==null?void 0:o.split(":"),n.group=o;let s=l==null?void 0:l[1],c;return s!=null&&s.includes("{")?c=(y=(v=s==null?void 0:s.replaceAll("{",""))==null?void 0:v.replaceAll("}",":"))==null?void 0:y.replaceAll(oo,""):c=s==null?void 0:s.replaceAll(oo,""),(c==null?void 0:c[0])==="$"&&(c=c==null?void 0:c.slice(1,c==null?void 0:c.length)),n.filter=c,n},Md=l=>{var _,N,$,S,q,O;let n=[],r=[],o=l==null?void 0:l.map(M=>{let Z=M==null?void 0:M.indexOf("@Form(");return Z>0?M==null?void 0:M.substring(0,Z):M}),s="",c=ja.analyzeSplitToContent(o==null?void 0:o[0],":");r=(_=c==null?void 0:c.filter(M=>!(M!=null&&M.includes("{"))&&!(M!=null&&M.includes("["))))==null?void 0:_.join(""),(r==null?void 0:r[(r==null?void 0:r.length)-1])===":"&&(r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1)),(r==null?void 0:r[0])==="*"&&(r=r==null?void 0:r.slice(1,r==null?void 0:r.length)),r=r==null?void 0:r.split(":");let b=c==null?void 0:c.filter(M=>(M==null?void 0:M.includes("{"))||(M==null?void 0:M.includes("["))),p=(b==null?void 0:b[0])??"";p!=null&&p.includes("}@Form(")&&(p=((N=p==null?void 0:p.split("}@Form("))==null?void 0:N[0])+"}");let v=p==null?void 0:p.slice(1,(p==null?void 0:p.length)-1);v=($=ja.analyzeSplitToContent(v,","))==null?void 0:$.map(M=>((M==null?void 0:M[(M==null?void 0:M.length)-1])===","&&(M=M==null?void 0:M.slice(0,(M==null?void 0:M.length)-1)),M));let y="@"+(((S=ja.analyzeSplitToContent(l==null?void 0:l[0],"@"))==null?void 0:S.find(M=>M==null?void 0:M.startsWith("Form(")))??"");((q=ja.analyzeSplitToContent(y,":"))==null?void 0:q.length)>1&&(n=Do((O=ja.analyzeSplitToContent(y,":"))==null?void 0:O[1]),n=[n]);let u=[];return v==null||v.forEach((M,Z)=>{var Te,Se,Q,fe,J,ce,He,Ca,ne,D,re,be,ue,De,pa,_a,Ga,le,la,Ve,wa,Fe,ze,Re,Ze,Ja,qa,F,P,X,ie,se,ga,ra,Le,Ee,Ea,va,Va,Pa,me,Je,Ae,Xe,oe,_e,de,We,ea;let C=(Te=M==null?void 0:M.split("=="))==null?void 0:Te[0],w=(Se=M==null?void 0:M.split("=="))==null?void 0:Se[1],E=[],m=[],g=[],j=[],V="Input",G=[],he=[];if((M==null?void 0:M[0])!=="{"){if((w==null?void 0:w[0])==="$")w=w==null?void 0:w.slice(1,w==null?void 0:w.length),E=(fe=(Q=w==null?void 0:w.split("*"))==null?void 0:Q[0])==null?void 0:fe.split(":"),m=(D=(ne=(Ca=(He=(ce=(J=w==null?void 0:w.split("*"))==null?void 0:J[1])==null?void 0:ce.replace("{",Ra))==null?void 0:He.split(Ra))==null?void 0:Ca[0])==null?void 0:ne.split(":"))==null?void 0:D.filter(ka=>ka!==""),g=(be=(re=w==null?void 0:w.replace("{",Ra))==null?void 0:re.split(Ra))==null?void 0:be[1],g=g==null?void 0:g.replaceAll("}",""),g=g==null?void 0:g.split(":"),V="Select";else if(((ue=ja.analyzeSplitToContent(M,"="))==null?void 0:ue.length)>1){let ka=(De=C==null?void 0:C.split("="))==null?void 0:De[1];if(C=(pa=C==null?void 0:C.split("="))==null?void 0:pa[0],V="Select",!(M!=null&&M.includes("||")))ka=(_a=ka==null?void 0:ka.split("/"))==null?void 0:_a.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)),j=ka==null?void 0:ka.map(Pe=>({label:Pe==null?void 0:Pe.replaceAll("'",""),value:Pe==null?void 0:Pe.replaceAll("'","")}));else{let Pe=[];(Ve=(la=(le=(Ga=M==null?void 0:M.replace("=",Ra))==null?void 0:Ga.split(Ra))==null?void 0:le[1])==null?void 0:la.split("||"))==null||Ve.forEach(ba=>{var xa,fa,Ha;G.push((fa=(xa=ba==null?void 0:ba.split("@Filter"))==null?void 0:xa[0])==null?void 0:fa.split("/")),Pe.push((Ha=ba==null?void 0:ba.split("@Filter"))==null?void 0:Ha[1])}),he=Pe==null?void 0:Pe.map(ba=>(ba=ba==null?void 0:ba.slice(1,(ba==null?void 0:ba.length)-1),ba))}}else if(M!=null&&M.includes("@")&&!(M!=null&&M.includes("||"))){C=(Ze=(Re=(ze=(Fe=(wa=C==null?void 0:C.replace("(@",Ra))==null?void 0:wa.split(Ra))==null?void 0:Fe[0])==null?void 0:ze.replace("@",Ra))==null?void 0:Re.split(Ra))==null?void 0:Ze[0];let ka=M!=null&&M.includes("(@")?"(@"+((qa=(Ja=M==null?void 0:M.replace("(@",Ra))==null?void 0:Ja.split(Ra))==null?void 0:qa[1]):"@"+((P=(F=M==null?void 0:M.replace("@",Ra))==null?void 0:F.split(Ra))==null?void 0:P[1]);if(ka=(X=Eo(ka))==null?void 0:X.split(","),ka!=null&&ka.find(Pe=>Pe==null?void 0:Pe.includes("@Type"))){let Pe=(ie=ka==null?void 0:ka.find(ba=>ba==null?void 0:ba.includes("@Type")))==null?void 0:ie.split("=");Pe!=null&&Pe.includes("File")&&(V="Upload"),Pe!=null&&Pe.includes("Date")&&(V="Date"),Pe!=null&&Pe.includes("DateTime")&&(V="DateTime"),Pe!=null&&Pe.includes("Time")&&(V="Time")}}u.push({prop:C,label:C,value:"",menuPath:E,groups:m,columns:g,width:v==null?void 0:v.length,options:j,type:V,allContents:G,filterContents:he})}else{s=s+"@"+((se=ja.analyzeSplitToContent(M,"@"))==null?void 0:se[1]);let ka=(ga=ja.analyzeSplitToContent(M,"@"))==null?void 0:ga[0];(ka==null?void 0:ka[(ka==null?void 0:ka.length)-1])==="@"&&(ka=ka==null?void 0:ka.slice(0,(ka==null?void 0:ka.length)-1));let Pe=(ra=ka==null?void 0:ka.split("=="))==null?void 0:ra[0],ba=(Le=ka==null?void 0:ka.split("=="))==null?void 0:Le[1],xa=(Ea=(Ee=ba==null?void 0:ba.split("*"))==null?void 0:Ee[0])==null?void 0:Ea.replace(oo,"");(xa==null?void 0:xa[0])==="$"&&(xa=xa==null?void 0:xa.slice(1,xa==null?void 0:xa.length)),xa=ja.analyzeSplitToContent(xa,"$"),xa=(va=xa==null?void 0:xa.map((fa,Ha)=>{var Ba;return Ha===0&&(xa==null?void 0:xa.length)>1&&(fa=(Ba=fa==null?void 0:fa.split(":"))==null?void 0:Ba[0]),(xa==null?void 0:xa.length)>1&&Ha===(xa==null?void 0:xa.length)-1&&(fa=fa+":"),fa}))==null?void 0:va.join(":"),E=(Pa=(Va=xa==null?void 0:xa.replaceAll("{",""))==null?void 0:Va.replaceAll("}",""))==null?void 0:Pa.split(":"),m=(_e=(oe=(Xe=(Ae=(Je=(me=ba==null?void 0:ba.split("*"))==null?void 0:me[1])==null?void 0:Je.replace("{",Ra))==null?void 0:Ae.split(Ra))==null?void 0:Xe[0])==null?void 0:oe.split(":"))==null?void 0:_e.filter(fa=>fa!==""),g=(We=(de=ba==null?void 0:ba.replace("{",Ra))==null?void 0:de.split(Ra))==null?void 0:We[1],g=g==null?void 0:g.replaceAll("}",""),Pe=Pe==null?void 0:Pe.slice(1,(Pe==null?void 0:Pe.length)-1),g=g==null?void 0:g.split(","),V="Select",(ea=Pe==null?void 0:Pe.split(","))==null||ea.forEach((fa,Ha)=>{var Ba,Ia;u.push({prop:fa,label:fa,value:"",menuPath:E,groups:m,columns:(Ba=g==null?void 0:g[Ha])==null?void 0:Ba.split(":"),width:(Ia=Pe==null?void 0:Pe.split(","))==null?void 0:Ia.length,type:V})})}}),{groupName:r,formContents:u,contents:n,filter:s,formColumn:v}},Do=l=>{var o,s;if(!l||typeof l!="string")return[];let n=[],r=l.slice(1,(l==null?void 0:l.length)-1);if((r==null?void 0:r[0])!=="[")(o=ja.analyzeSplitToContent(r,","))==null||o.forEach(c=>{(c==null?void 0:c[(c==null?void 0:c.length)-1])===","&&(c=c.slice(0,(c==null?void 0:c.length)-1)),n.push(c??"")});else{let c=[];(s=ja.analyzeSplitToContent(r,","))==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)),c.push(Do(b))}),n=c}return n},ut=(l,n)=>{var O,M,Z,C,w,E,m,g,j,V,G,he,Te,Se,Q,fe,J,ce,He,Ca,ne,D,re,be,ue,De,pa,_a,Ga,le,la,Ve,wa,Fe,ze,Re,Ze,Ja,qa,F,P,X,ie,se,ga,ra,Le,Ee,Ea,va,Va,Pa,me,Je,Ae,Xe,oe,_e,de,We,ea,ka,Pe,ba,xa,fa,Ha;let r,o=[],s=[],c=[],b=[],p=[],v=[],y=[],u="Input",_,N="",$="",S=[],q="";if(l!=null&&l.includes("@Pam")||l!=null&&l.includes("==")||l!=null&&l.includes("="))if(l!=null&&l.includes("@Pam")){let Ba=ja.analyzeSplitToContent(l,"=");if((Ba==null?void 0:Ba.length)>1){l=Ba==null?void 0:Ba[0],l=l==null?void 0:l.slice(0,(l==null?void 0:l.length)-1);let Ne=Ba==null?void 0:Ba[(Ba==null?void 0:Ba.length)-1];(Ne==null?void 0:Ne[0])==="&"&&(Ne=Ne==null?void 0:Ne.slice(1,Ne==null?void 0:Ne.length)),$=(M=(O=Ne==null?void 0:Ne.replace("(",Ra))==null?void 0:O.split(Ra))==null?void 0:M[0];let sl=(C=(Z=Ne==null?void 0:Ne.replace(")",Ra))==null?void 0:Z.split(Ra))==null?void 0:C[0];sl=(E=(w=sl==null?void 0:sl.replace("(",Ra))==null?void 0:w.split(Ra))==null?void 0:E[1],(sl==null?void 0:sl[0])==="{"&&(sl=sl==null?void 0:sl.slice(1,sl==null?void 0:sl.length)),(sl==null?void 0:sl[(sl==null?void 0:sl.length)-1])==="}"&&(sl=sl==null?void 0:sl.slice(0,(sl==null?void 0:sl.length)-1)),S=sl==null?void 0:sl.split(",");let yl=(g=(m=Ne==null?void 0:Ne.replace(")",Ra))==null?void 0:m.split(Ra))==null?void 0:g[1];yl&&yl!==""&&(q=Eo(yl))}r=(V=(j=l==null?void 0:l.replace("@Pam",Ra))==null?void 0:j.split(Ra))==null?void 0:V[0];let Ia=(he=(G=l==null?void 0:l.replace("@Pam",Ra))==null?void 0:G.split(Ra))==null?void 0:he[1];Ia=Ia==null?void 0:Ia.slice(1,(Ia==null?void 0:Ia.length)-1),Ia=(Te=ja.analyzeSplitToContent(Ia,","))==null?void 0:Te.map(Ne=>(Ne="@"+Ne,Ne));let $a=Ia==null?void 0:Ia.find(Ne=>Ne==null?void 0:Ne.includes("@Type"));$a!=null&&$a.includes("File")&&(u="Upload"),$a!=null&&$a.includes("Date")&&(u="Date"),$a!=null&&$a.includes("DateTime")&&(u="DateTime"),$a!=null&&$a.includes("Time")&&(u="Time"),_=Ia==null?void 0:Ia.find(Ne=>Ne==null?void 0:Ne.includes("@IdentName")),_=_?(Q=(Se=_==null?void 0:_.replace("=",Ra))==null?void 0:Se.split(Ra))==null?void 0:Q[1]:r}else{if(r=(fe=l==null?void 0:l.split("=="))==null?void 0:fe[0],_=(J=l==null?void 0:l.split("=="))==null?void 0:J[0],l!=null&&l.includes("=")&&!(l!=null&&l.includes("=="))&&!((Ca=(He=(ce=l==null?void 0:l.replace("=",Ra))==null?void 0:ce.split(Ra))==null?void 0:He[1])!=null&&Ca.includes("||")))if(r=(ne=l==null?void 0:l.split("="))==null?void 0:ne[0],_=r,l!=null&&l.includes("(@")||l!=null&&l.includes("@")){if(l!=null&&l.includes("(@")){let Ia=(D=l==null?void 0:l.split("(@"))==null?void 0:D[1];Ia=Ia==null?void 0:Ia.slice(0,(Ia==null?void 0:Ia.length)-1),Ia=(be=(re=Ia==null?void 0:Ia.replace("(",Ra))==null?void 0:re.split(Ra))==null?void 0:be[1],Ia=Ia==null?void 0:Ia.slice(0,(Ia==null?void 0:Ia.length)-1),c==null||c.push(Ia),l=(ue=l==null?void 0:l.split("(@"))==null?void 0:ue[0]}else{let Ia=(De=l==null?void 0:l.split("@"))==null?void 0:De[1];Ia=Ia==null?void 0:Ia.slice(0,(Ia==null?void 0:Ia.length)-1),Ia=(_a=(pa=Ia==null?void 0:Ia.replace("(",Ra))==null?void 0:pa.split(Ra))==null?void 0:_a[1],Ia=Ia==null?void 0:Ia.slice(0,(Ia==null?void 0:Ia.length)-1),c==null||c.push(Ia),l=(Ga=l==null?void 0:l.split("@"))==null?void 0:Ga[0]}let Ba=(la=(le=l==null?void 0:l.split("="))==null?void 0:le[1])==null?void 0:la.split("/");s.push(Ba)}else o=(wa=ja.analyzeSplitToContent((Ve=l==null?void 0:l.split("="))==null?void 0:Ve[1],"/"))==null?void 0:wa.map(Ba=>((Ba==null?void 0:Ba[(Ba==null?void 0:Ba.length)-1])==="/"&&(Ba=Ba==null?void 0:Ba.slice(0,(Ba==null?void 0:Ba.length)-1)),Ba)),o=o==null?void 0:o.map(Ba=>({label:Ba==null?void 0:Ba.replaceAll("'",""),value:Ba==null?void 0:Ba.replaceAll("'","")}));else if((Re=(ze=(Fe=l==null?void 0:l.replace("=",Ra))==null?void 0:Fe.split(Ra))==null?void 0:ze[1])!=null&&Re.includes("||")){r=(Ze=l==null?void 0:l.split("="))==null?void 0:Ze[0],_=(Ja=l==null?void 0:l.split("="))==null?void 0:Ja[0];let Ba=[];(X=(P=(F=(qa=l==null?void 0:l.replace("=",Ra))==null?void 0:qa.split(Ra))==null?void 0:F[1])==null?void 0:P.split("||"))==null||X.forEach(Ia=>{var $a,Ne,sl;s.push((Ne=($a=Ia==null?void 0:Ia.split("@Filter"))==null?void 0:$a[0])==null?void 0:Ne.split("/")),Ba.push((sl=Ia==null?void 0:Ia.split("@Filter"))==null?void 0:sl[1])}),c=Ba==null?void 0:Ba.map(Ia=>(Ia=Ia==null?void 0:Ia.slice(1,(Ia==null?void 0:Ia.length)-1),Ia))}else{let Ba=l==null?void 0:l.split("=="),Ia=(ie=Ba==null?void 0:Ba.filter($a=>($a==null?void 0:$a[0])==="$"))==null?void 0:ie[0];if(Ia&&!(Ia!=null&&Ia.includes("&"))){let $a=(se=Ia==null?void 0:Ia.replace("*",Ra))==null?void 0:se.split(Ra),Ne=($a==null?void 0:$a[0])===""?n==null?void 0:n.value:$a==null?void 0:$a[0];Ne=(ra=(ga=Ne==null?void 0:Ne.replaceAll("{",""))==null?void 0:ga.replaceAll("}",":"))==null?void 0:ra.replaceAll(oo,""),(Ne==null?void 0:Ne[0])==="$"&&(Ne=(Le=Ne==null?void 0:Ne.slice(1,Ne==null?void 0:Ne.length))==null?void 0:Le.replaceAll(":","/")),b=Ne==null?void 0:Ne.split("/");let sl=(Ea=(Ee=$a==null?void 0:$a[1])==null?void 0:Ee.replace("{",Ra))==null?void 0:Ea.split(Ra),yl=sl==null?void 0:sl[0];(yl==null?void 0:yl[(yl==null?void 0:yl.length)-1])===":"&&(yl=yl==null?void 0:yl.slice(0,(yl==null?void 0:yl.length)-1)),p=yl==null?void 0:yl.split(":"),v=(me=(Pa=(Va=(va=sl==null?void 0:sl[1])==null?void 0:va.replace("}",Ra))==null?void 0:Va.split(Ra))==null?void 0:Pa[0])==null?void 0:me.split(":");let Gl=(Xe=(Ae=(Je=sl==null?void 0:sl[(sl==null?void 0:sl.length)-1])==null?void 0:Je.replace("}",Ra))==null?void 0:Ae.split(Ra))==null?void 0:Xe[1];Gl&&Gl!==""&&(N=Eo(Gl))}if(Ba!=null&&Ba.some($a=>($a==null?void 0:$a[0])==="&")){let $a=(oe=Ba==null?void 0:Ba.filter(yl=>(yl==null?void 0:yl[0])==="&"))==null?void 0:oe[0];($a==null?void 0:$a[0])==="&"&&($a=$a==null?void 0:$a.slice(1,$a==null?void 0:$a.length)),$=(de=(_e=$a==null?void 0:$a.replace("(",Ra))==null?void 0:_e.split(Ra))==null?void 0:de[0];let Ne=(ea=(We=$a==null?void 0:$a.replace(")",Ra))==null?void 0:We.split(Ra))==null?void 0:ea[0];Ne=(Pe=(ka=Ne==null?void 0:Ne.replace("(",Ra))==null?void 0:ka.split(Ra))==null?void 0:Pe[1],(Ne==null?void 0:Ne[0])==="{"&&(Ne=Ne==null?void 0:Ne.slice(1,Ne==null?void 0:Ne.length)),(Ne==null?void 0:Ne[(Ne==null?void 0:Ne.length)-1])==="}"&&(Ne=Ne==null?void 0:Ne.slice(0,(Ne==null?void 0:Ne.length)-1)),S=Ne==null?void 0:Ne.split(",");let sl=(xa=(ba=$a==null?void 0:$a.replace(")",Ra))==null?void 0:ba.split(Ra))==null?void 0:xa[1];sl&&sl!==""&&(q=Eo(sl))}else if(!Ia){let $a=Ba==null?void 0:Ba[(Ba==null?void 0:Ba.length)-1];$a=$a==null?void 0:$a.slice(1,($a==null?void 0:$a.length)-1),$a=ja.analyzeSplitToContent($a,","),$a=$a==null?void 0:$a.map(Ne=>((Ne==null?void 0:Ne[(Ne==null?void 0:Ne.length)-1])===","&&(Ne=Ne==null?void 0:Ne.slice(0,(Ne==null?void 0:Ne.length)-1)),Ne)),$a=$a==null?void 0:$a.map(Ne=>{var sl,yl,Gl,Ya;if(Ne=Ne==null?void 0:Ne.replaceAll("$",""),Ne!=null&&Ne.includes("{")){let da="";Ne=Ne==null?void 0:Ne.replaceAll("{","");let ha=Ne==null?void 0:Ne.split("}");da=((yl=(sl=ha==null?void 0:ha[0])==null?void 0:sl.split(":"))==null?void 0:yl[0])+":"+(ha==null?void 0:ha[1]),Ne=da,Ne=Ne+":"}if(Ne!=null&&Ne.includes(oo)){let da="",ha=Ne==null?void 0:Ne.split(oo);da=((Ya=(Gl=ha==null?void 0:ha[0])==null?void 0:Gl.split(":"))==null?void 0:Ya[0])+":"+(ha==null?void 0:ha[1]),Ne=da,Ne=Ne+":"}return Ne=Ne==null?void 0:Ne.replaceAll(":","/"),Ne}),y=$a}}u="Select"}else r=l,_=l;return r!=null&&r.includes("@Pam")&&(r=(Ha=(fa=l==null?void 0:l.replace("@Pam",Ra))==null?void 0:fa.split(Ra))==null?void 0:Ha[0],_=r),{label:r,prop:_,options:o,allContents:s,filterContents:c,menus:b,groups:p,words:v,align:"center",formType:u,filter:N,functionName:$,functionRelatedWords:S,calculatorFilter:q,relatedPages:y}},Ei=(l,n)=>{var o,s,c,b,p,v,y,u,_,N,$,S,q,O,M,Z,C,w,E,m,g,j,V,G,he,Te,Se,Q,fe;let r=[];if((l==null?void 0:l[0])==="{"&&(l==null?void 0:l[(l==null?void 0:l.length)-1])==="}"&&!((b=(c=(s=(o=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1))==null?void 0:o.replace(":",Ra))==null?void 0:s.split(Ra))==null?void 0:c[0])!=null&&b.includes(","))){let J=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1),ce=(p=J==null?void 0:J.replace(":",Ra))==null?void 0:p.split(Ra);if(((v=ja.analyzeSplitToContent(ce==null?void 0:ce[1],"="))==null?void 0:v.length)===1){let He=ce==null?void 0:ce[0],Ca=[];(_=ja.analyzeSplitToContent((u=ce==null?void 0:ce[1])==null?void 0:u.slice(1,((y=ce==null?void 0:ce[1])==null?void 0:y.length)-1),","))==null||_.forEach(ne=>{var D,re;((D=ja.analyzeSplitToContent(ne,"="))==null?void 0:D.length)>1?((ne==null?void 0:ne[(ne==null?void 0:ne.length)-1])===","&&(ne=ne==null?void 0:ne.slice(0,(ne==null?void 0:ne.length)-1)),Ca=[...Ca,...Ei(ne,n)]):((ne==null?void 0:ne[(ne==null?void 0:ne.length)-1])===","&&(ne=ne==null?void 0:ne.slice(0,(ne==null?void 0:ne.length)-1)),Ca.push((re=Ei(ne,n))==null?void 0:re[0]))}),r==null||r.push({label:He,prop:He,children:Ca,align:"center"})}else{let He=[];if(((N=ja.analyzeSplitToContent(J,"="))==null?void 0:N.length)>=2){let ne=($=ja.analyzeSplitToContent(J,"="))==null?void 0:$[1],D=(S=ja.analyzeSplitToContent(ne,"/"))==null?void 0:S.map(re=>((re==null?void 0:re[(re==null?void 0:re.length)-1])==="/"&&(re=re==null?void 0:re.slice(0,(re==null?void 0:re.length)-1)),re));He=D==null?void 0:D.map(re=>(re=Do(re),re))}let Ca=(w=(C=(Z=(M=(O=(q=J==null?void 0:J.replace("{",Ra))==null?void 0:q.split(Ra))==null?void 0:O[1])==null?void 0:M.replace("}",Ra))==null?void 0:Z.split(Ra))==null?void 0:C[0])==null?void 0:w.split(",");Ca==null||Ca.forEach((ne,D)=>{(He==null?void 0:He.length)>0&&D===0?r==null||r.push({label:ne,prop:ne,align:"center",formType:"Select",relatedContents:He==null?void 0:He.map(re=>{let be={};return Ca==null||Ca.forEach((ue,De)=>{be[ue]=re==null?void 0:re[De]}),be}),options:He==null?void 0:He.map(re=>({label:re==null?void 0:re[0],value:re==null?void 0:re[0]})),mainKey:!0}):r==null||r.push({label:ne,prop:ne,align:"center"})})}}else if((l==null?void 0:l[0])==="{")if(((E=ja.analyzeSplitToContent(l,"="))==null?void 0:E.length)===2&&((g=(m=ja.analyzeSplitToContent(l,"="))==null?void 0:m[1])==null?void 0:g[0])==="["){let J=[];if(((j=ja.analyzeSplitToContent(l,"="))==null?void 0:j.length)>=2){let He=(V=ja.analyzeSplitToContent(l,"="))==null?void 0:V[1],Ca=(G=ja.analyzeSplitToContent(He,"/"))==null?void 0:G.map(ne=>((ne==null?void 0:ne[(ne==null?void 0:ne.length)-1])==="/"&&(ne=ne==null?void 0:ne.slice(0,(ne==null?void 0:ne.length)-1)),ne));J=Ca==null?void 0:Ca.map(ne=>(ne=Do(ne),ne))}let ce=(Te=(he=l==null?void 0:l.replace("}",Ra))==null?void 0:he.split(Ra))==null?void 0:Te[0];ce=(Se=ce==null?void 0:ce.slice(1,ce==null?void 0:ce.length))==null?void 0:Se.split(","),ce==null||ce.forEach((He,Ca)=>{(J==null?void 0:J.length)>0&&Ca===0?r==null||r.push({label:He,prop:He,align:"center",formType:"Select",relatedContents:J==null?void 0:J.map(ne=>{let D={};return ce==null||ce.forEach((re,be)=>{D[re]=ne==null?void 0:ne[be]}),D}),options:J==null?void 0:J.map(ne=>({label:ne==null?void 0:ne[0],value:ne==null?void 0:ne[0]})),mainKey:!0}):r==null||r.push({label:He,prop:He,align:"center"})})}else(Q=ja.analyzeSplitToContent(l,","))==null||Q.forEach(J=>{var ce,He,Ca,ne,D,re,be,ue,De,pa,_a,Ga,le,la,Ve,wa,Fe,ze,Re,Ze,Ja,qa,F,P,X,ie,se,ga,ra,Le,Ee,Ea,va,Va,Pa,me,Je,Ae,Xe,oe,_e,de,We,ea,ka;if((J==null?void 0:J[(J==null?void 0:J.length)-1])===","&&(J=J==null?void 0:J.slice(0,(J==null?void 0:J.length)-1)),(J==null?void 0:J[0])==="{"){let Pe=ja.analyzeSplitToContent(J,"="),ba=Pe==null?void 0:Pe[(Pe==null?void 0:Pe.length)-1],xa=[],fa=[],Ha=[],Ba=[],Ia=[],$a=(ce=ba==null?void 0:ba.replace("*",Ra))==null?void 0:ce.split(Ra),Ne=($a==null?void 0:$a[0])===""?n==null?void 0:n.value:$a==null?void 0:$a[0];if((Ne==null?void 0:Ne[0])==="$"&&((ne=(Ca=(He=Ne==null?void 0:Ne.replace("@",Ra))==null?void 0:He.split(Ra))==null?void 0:Ca[0])!=null&&ne.includes("{"))&&(Ne=(D=Ne==null?void 0:Ne.replace("{",""))==null?void 0:D.replace("}",":")),Ne=Ne==null?void 0:Ne.replaceAll(oo,""),(Ne==null?void 0:Ne[(Ne==null?void 0:Ne.length)-1])===":"&&(Ne=Ne!=null&&Ne.includes("(@")?((re=Ne==null?void 0:Ne.split("(@"))==null?void 0:re[0])+":":((be=Ne==null?void 0:Ne.split("@"))==null?void 0:be[0])+":"),(Ne==null?void 0:Ne[0])==="$"&&(Ne=(ue=Ne==null?void 0:Ne.slice(1,Ne==null?void 0:Ne.length))==null?void 0:ue.replaceAll(":","/")),Ne!=null&&Ne.includes("$")){let ha=(De=Ne==null?void 0:Ne.split("$"))==null?void 0:De[0];ha=(pa=ha==null?void 0:ha.split("/"))==null?void 0:pa[0],Ne=ha+"/"+((_a=Ne==null?void 0:Ne.split("$"))==null?void 0:_a[1])+"/"}(Ne==null?void 0:Ne[(Ne==null?void 0:Ne.length)-1])==="/"&&(Ne==null?void 0:Ne[(Ne==null?void 0:Ne.length)-2])==="/"&&(Ne=Ne==null?void 0:Ne.slice(0,(Ne==null?void 0:Ne.length)-1)),xa=Ne==null?void 0:Ne.split("/");let sl=(le=(Ga=$a==null?void 0:$a[1])==null?void 0:Ga.replace("{",Ra))==null?void 0:le.split(Ra);if((wa=(Ve=(la=$a==null?void 0:$a[1])==null?void 0:la.split("(@"))==null?void 0:Ve[0])!=null&&wa.includes("&&")||(Re=(ze=(Fe=$a==null?void 0:$a[1])==null?void 0:Fe.split("@"))==null?void 0:ze[0])!=null&&Re.includes("&&")){let ha=(Ze=$a==null?void 0:$a[1])!=null&&Ze.includes("(@")?(F=(qa=(Ja=$a==null?void 0:$a[1])==null?void 0:Ja.split("(@"))==null?void 0:qa[0])==null?void 0:F.split("&&"):(ie=(X=(P=$a==null?void 0:$a[1])==null?void 0:P.split("@"))==null?void 0:X[0])==null?void 0:ie.split("&&");Ba=ha==null?void 0:ha.map(Ye=>{var Xa,Ce;return(Ye==null?void 0:Ye[0])==="*"&&(Ye=Ye==null?void 0:Ye.slice(1,Ye==null?void 0:Ye.length)),Ye=(Ce=(Xa=Ye==null?void 0:Ye.replace("{",Ra))==null?void 0:Xa.split(Ra))==null?void 0:Ce[0],(Ye==null?void 0:Ye[(Ye==null?void 0:Ye.length)-1])===":"&&(Ye=Ye==null?void 0:Ye.slice(0,(Ye==null?void 0:Ye.length)-1)),Ye=Ye==null?void 0:Ye.split(":"),Ye});let ma=[];ha==null||ha.forEach((Ye,Xa)=>{var Ce,Ke;(Ye==null?void 0:Ye[0])==="*"&&(Ye=Ye==null?void 0:Ye.slice(1,Ye==null?void 0:Ye.length)),Ye=(Ke=(Ce=Ye==null?void 0:Ye.replace("{",Ra))==null?void 0:Ce.split(Ra))==null?void 0:Ke[1],(Ye==null?void 0:Ye[(Ye==null?void 0:Ye.length)-1])==="}"&&(Ye=Ye==null?void 0:Ye.slice(0,(Ye==null?void 0:Ye.length)-1)),Ye=Ye==null?void 0:Ye.split(","),ma.push(Xa===0?(Ye==null?void 0:Ye.length)-1:Ye==null?void 0:Ye.length),Ia=[...Ia,...Ye]}),ma=(se=ja.prefixSum(ma))==null?void 0:se.map(Ye=>Ye==null?void 0:Ye.total),Ba=Ba==null?void 0:Ba.map((Ye,Xa)=>({number:ma==null?void 0:ma[Xa],contents:Ye}))}let yl=sl==null?void 0:sl[0];(yl==null?void 0:yl[(yl==null?void 0:yl.length)-1])===":"&&(yl=yl==null?void 0:yl.slice(0,(yl==null?void 0:yl.length)-1)),fa=yl==null?void 0:yl.split(":"),Ha=(Ee=(Le=(ra=(ga=sl==null?void 0:sl[1])==null?void 0:ga.replace("}",Ra))==null?void 0:ra.split(Ra))==null?void 0:Le[0])==null?void 0:Ee.split(",");let Gl=(va=Pe==null?void 0:Pe[0])==null?void 0:va.slice(1,((Ea=Pe==null?void 0:Pe[0])==null?void 0:Ea.length)-2),Ya="",da="";if((Va=Pe==null?void 0:Pe[(Pe==null?void 0:Pe.length)-1])!=null&&Va.includes("(@")?(da=(Je=(me=(Pa=Pe==null?void 0:Pe[(Pe==null?void 0:Pe.length)-1])==null?void 0:Pa.replace("(@",Ra))==null?void 0:me.split(Ra))==null?void 0:Je[1],da="(@"+da):(Ae=Pe==null?void 0:Pe[(Pe==null?void 0:Pe.length)-1])!=null&&Ae.includes("@")&&(da=(_e=(oe=(Xe=Pe==null?void 0:Pe[(Pe==null?void 0:Pe.length)-1])==null?void 0:Xe.replace("@",Ra))==null?void 0:oe.split(Ra))==null?void 0:_e[1],da="@"+da),((de=ja.analyzeSplitToContent(da,"&"))==null?void 0:de.length)>1){let ha=(ea=(We=ja.analyzeSplitToContent(da,"}"))==null?void 0:We.map(ma=>{var Ye;return ma!=null&&ma.includes("@")||(ma=""),ma!=null&&ma.includes("@")&&(ma=(Ye=ja.analyzeSplitToContent(ma,":"))==null?void 0:Ye[0],(ma==null?void 0:ma[(ma==null?void 0:ma.length)-1])===":"&&(ma=ma==null?void 0:ma.slice(0,(ma==null?void 0:ma.length)-1)),(ma==null?void 0:ma[0])==="("&&(ma=ma==null?void 0:ma.slice(1,(ma==null?void 0:ma.length)-1))),ma}))==null?void 0:ea.filter(ma=>ma!=="");da=(da==null?void 0:da.length)===1?ha:"("+(ha==null?void 0:ha.join(","))+")"}da&&da!==""&&(Ya=Eo(da)),(ka=Gl==null?void 0:Gl.split(","))==null||ka.forEach((ha,ma)=>{var Ye,Xa,Ce;r.push({label:ha,prop:ha,align:"center",menus:xa,groups:(Ba==null?void 0:Ba.length)===0?fa:(Ye=Ba==null?void 0:Ba.find(Ke=>(Ke==null?void 0:Ke.number)>=ma))==null?void 0:Ye.contents,words:(Ia==null?void 0:Ia.length)===0?(Xa=Ha==null?void 0:Ha[ma])==null?void 0:Xa.split(":"):(Ce=Ia==null?void 0:Ia[ma])==null?void 0:Ce.split(":"),formType:(xa==null?void 0:xa.length)>0?"Select":"Input",mainKey:ma===0,filter:Ya,isMainPath:(Ba==null?void 0:Ba.findIndex(Ke=>(Ke==null?void 0:Ke.number)>=ma))===0})})}else r.push({label:J,prop:J,align:"center"})});else{let J=(fe=ja.analyzeSplitToContent(l,","))==null?void 0:fe.map(ce=>((ce==null?void 0:ce[(ce==null?void 0:ce.length)-1])===","&&(ce=ce==null?void 0:ce.slice(0,(ce==null?void 0:ce.length)-1)),ce));J==null||J.forEach(ce=>{r.push(ut(ce,n))})}return r},Id=(l,n)=>{var b,p,v,y,u;let r=l;if(!l)return;let o="";((b=ja.analyzeSplitToContent(l,"}"))==null?void 0:b.length)>1&&(r=(p=ja.analyzeSplitToContent(l,"}"))==null?void 0:p[0],o=(v=ja.analyzeSplitToContent(l,"}"))==null?void 0:v[1]),(l==null?void 0:l[0])==="{"&&(l==null?void 0:l[(l==null?void 0:l.length)-1])==="}"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1));let s=[],c=[];return s.push({label:"排序",prop:"sort"}),s.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(y=ja.analyzeSplitToContent(r,","))==null||y.forEach(_=>{var N;(_==null?void 0:_[(_==null?void 0:_.length)-1])===","&&(_=_==null?void 0:_.slice(0,(_==null?void 0:_.length)-1)),(_==null?void 0:_[0])==="{"?(N=Ei(_,n))==null||N.forEach($=>{s.push($)}):s.push(ut(_,n))}),o!==""&&((o==null?void 0:o[0])=="{"&&(o=o==null?void 0:o.slice(1,(o==null?void 0:o.length)-1)),(u=ja.analyzeSplitToContent(o,","))==null||u.forEach(_=>{var N;(_==null?void 0:_[(_==null?void 0:_.length)-1])===","&&(_=_==null?void 0:_.slice(0,(_==null?void 0:_.length)-1)),(_==null?void 0:_[0])==="{"?(N=Ei(_,n))==null||N.forEach($=>{c.push($)}):c.push(ut(_,n))})),{columns:s,secondColumns:c}},dt=l=>{var n,r,o;if(l!=null&&l.includes("@Filter")||l!=null&&l.includes("@Condition"))return l;{let s=(r=(n=l==null?void 0:l.replace("(",Ra))==null?void 0:n.split(Ra))==null?void 0:r[1];return s=s==null?void 0:s.slice(0,(s==null?void 0:s.length)-1),s=(o=ja.analyzeSplitToContent(s,","))==null?void 0:o.map(c=>((c==null?void 0:c[(c==null?void 0:c.length)-1])===","&&(c=c==null?void 0:c.slice(0,(c==null?void 0:c.length)-1)),"@"+c)),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}},ls=l=>{let n=l==null?void 0:l.map(r=>{var o,s;return{menus:r==null?void 0:r.menus,content:((o=r==null?void 0:r.menus)==null?void 0:o.join("/"))+Ra+((s=r==null?void 0:r.groups)==null?void 0:s.join("/"))}});return n=n==null?void 0:n.filter(r=>{var o;return(r==null?void 0:r.menus)&&((o=r==null?void 0:r.menus)==null?void 0:o.length)>0}),n=n==null?void 0:n.map(r=>r==null?void 0:r.content),n=[...new Set(n)],n=n==null?void 0:n.map(r=>{var o,s;return{menus:(o=r==null?void 0:r.split(Ra))==null?void 0:o[0],groups:((s=r==null?void 0:r.split(Ra))==null?void 0:s[1])??[]}}),n},Od=(l,n,r="")=>{var M,Z,C,w,E,m,g,j,V,G,he,Te,Se,Q,fe,J,ce,He,Ca,ne,D,re,be,ue,De,pa,_a,Ga,le,la,Ve,wa,Fe,ze,Re,Ze,Ja,qa,F,P,X,ie,se,ga,ra,Le,Ee,Ea,va,Va,Pa,me,Je,Ae,Xe;let o=[];if(((M=l==null?void 0:l[0])==null?void 0:M[0])!=="*"&&((Z=l==null?void 0:l[0])==null?void 0:Z[0])!=="$")return;let s=ja.analyzeSplitToContent(l==null?void 0:l[0],":"),c=s==null?void 0:s.filter(oe=>!((oe==null?void 0:oe[0])!=="{"&&(oe==null?void 0:oe[0])!=="["));o=(C=s==null?void 0:s.filter(oe=>(oe==null?void 0:oe[0])!=="{"&&(oe==null?void 0:oe[0])!=="["))==null?void 0:C.join("");let b="",p="";if((o==null?void 0:o[(o==null?void 0:o.length)-1])===":"&&(o=o==null?void 0:o.slice(0,(o==null?void 0:o.length)-1)),o!=null&&o.includes("(@")&&(o==null?void 0:o[0])==="*"&&(b="(@"+((w=o==null?void 0:o.split("(@"))==null?void 0:w[1]),o=(E=o==null?void 0:o.split("(@"))==null?void 0:E[0]),o!=null&&o.includes("@")&&(o==null?void 0:o[0])==="*"&&(b="@"+((g=(m=o==null?void 0:o.replace("@",Ra))==null?void 0:m.split(Ra))==null?void 0:g[1]),o=(V=(j=o==null?void 0:o.replace("@",Ra))==null?void 0:j.split(Ra))==null?void 0:V[0]),(o==null?void 0:o[0])==="*"?(o=o==null?void 0:o.slice(1,o==null?void 0:o.length),o=o==null?void 0:o.split(":")):(p=L.cloneDeep(o)+":",o=[]),p=p+((c==null?void 0:c[0])??""),(p==null?void 0:p[(p==null?void 0:p.length)-1])===":"&&(p=p==null?void 0:p.slice(0,(p==null?void 0:p.length)-1)),b!==""&&p!=="")if((p==null?void 0:p[(p==null?void 0:p.length)-1])===")")if(p!=null&&p.includes("(@")){let oe=(G=p==null?void 0:p.split("(@"))==null?void 0:G[0],_e=(he=p==null?void 0:p.split("(@"))==null?void 0:he[1];_e="(@"+(_e==null?void 0:_e.slice(0,(_e==null?void 0:_e.length)-1))+b,p=oe+_e}else{let oe=(Se=(Te=p==null?void 0:p.replace("@",Ra))==null?void 0:Te.split(Ra))==null?void 0:Se[0],_e=(fe=(Q=p==null?void 0:p.replace("@",Ra))==null?void 0:Q.split(Ra))==null?void 0:fe[1];_e="(@"+_e+b,p=oe+_e}else p=p+b;let v=c==null?void 0:c[1];(p==null?void 0:p[0])==="["&&(v=L.cloneDeep(p)+(v??""),p="");let y=v?Do(v):[];!(y!=null&&y.every(oe=>Array.isArray(oe)))&&(y==null?void 0:y.length)>0&&(y=[y]);let u=(J=ja.analyzeSplitToContent(p,"@"))!=null&&J[1]?"@"+((ce=ja.analyzeSplitToContent(p,"@"))==null?void 0:ce[1]):"";if(p=(He=ja.analyzeSplitToContent(p,"@"))==null?void 0:He[0],(p==null?void 0:p[0])==="$"&&(u=L.cloneDeep(p)+(u??""),p=""),r!=="")if(b!=="")u=(r==null?void 0:r[(r==null?void 0:r.length)-1])!==")"?r+b:(r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1))+","+b;else{let oe="";if(r!=null&&r.includes("(@")){let _e=(be=(re=(D=(ne=(Ca=r==null?void 0:r.replace("(@",Ra))==null?void 0:Ca.split(Ra))==null?void 0:ne[0])==null?void 0:D.replace("{",Ra))==null?void 0:re.split(Ra))==null?void 0:be[0];oe=((_e==null?void 0:_e[(_e==null?void 0:_e.length)-1])===":"?_e==null?void 0:_e.slice(0,(_e==null?void 0:_e.length)-1):_e)+"(@"+((De=(ue=r==null?void 0:r.replace("(@",Ra))==null?void 0:ue.split(Ra))==null?void 0:De[1])}else if(r!=null&&r.includes("@")){let _e=(la=(le=(Ga=(_a=(pa=r==null?void 0:r.replace("@",Ra))==null?void 0:pa.split(Ra))==null?void 0:_a[0])==null?void 0:Ga.replace("{",Ra))==null?void 0:le.split(Ra))==null?void 0:la[0];oe=((_e==null?void 0:_e[(_e==null?void 0:_e.length)-1])===":"?_e==null?void 0:_e.slice(0,(_e==null?void 0:_e.length)-1):_e)+"@"+((wa=(Ve=r==null?void 0:r.replace("@",Ra))==null?void 0:Ve.split(Ra))==null?void 0:wa[1])}u=oe===""?r:oe}if(u!==""){(u==null?void 0:u[0])==="$"&&(u=u==null?void 0:u.slice(1,u==null?void 0:u.length)),(u==null?void 0:u[(u==null?void 0:u.length)-1])===":"&&(u=u==null?void 0:u.slice(0,(u==null?void 0:u.length)-1));let oe="";if(u!=null&&u.includes("(@")){oe=(ze=(Fe=u==null?void 0:u.replace("(@",Ra))==null?void 0:Fe.split(Ra))==null?void 0:ze[0];let _e=(Ze=(Re=u==null?void 0:u.replace("(@",Ra))==null?void 0:Re.split(Ra))==null?void 0:Ze[1];_e="@"+(_e==null?void 0:_e.slice(0,(_e==null?void 0:_e.length)-1));let de=(Ja=ja.analyzeSplitToContent(_e,","))==null?void 0:Ja.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==null?void 0:We[(We==null?void 0:We.length)-1])!==")"&&(We=We+")"),dt(We)));u=oe+"("+(de==null?void 0:de.join(","))+")"}else{oe=(F=(qa=u==null?void 0:u.replace("@",Ra))==null?void 0:qa.split(Ra))==null?void 0:F[0];let _e=(X=(P=u==null?void 0:u.replace("@",Ra))==null?void 0:P.split(Ra))==null?void 0:X[1];if(_e){_e="@"+_e;let de=(ie=ja.analyzeSplitToContent(_e,","))==null?void 0:ie.map(We=>((We==null?void 0:We[(We==null?void 0:We.length)-1])!==")"&&(We=We+")"),dt(We)));u=oe+"("+(de==null?void 0:de.join(","))+")"}else u=oe}}(p==null?void 0:p[(p==null?void 0:p.length)-1])==="@"&&(p=p==null?void 0:p.slice(0,(p==null?void 0:p.length)-1));let _=Id(p,n),N=p===""?[]:(_==null?void 0:_.columns)??[],$=sa.getColumnChild(N),S=$;S=S==null?void 0:S.filter(oe=>{var _e,de;return(oe==null?void 0:oe.filter)&&(oe==null?void 0:oe.filter)!==""&&(((_e=oe==null?void 0:oe.filter)==null?void 0:_e.includes("@SonSync"))||((de=oe==null?void 0:oe.filter)==null?void 0:de.includes("@FatherSync")))});let q=S==null?void 0:S.filter(oe=>{var _e,de,We;return((_e=oe==null?void 0:oe.filter)==null?void 0:_e.includes("@SonSync"))&&((We=(de=oe==null?void 0:oe.filter)==null?void 0:de.split(","))==null?void 0:We.find(ea=>(ea==null?void 0:ea.includes("@SonSync"))&&(ea==null?void 0:ea.includes("Yes"))))}),O=S==null?void 0:S.filter(oe=>{var _e,de,We;return((_e=oe==null?void 0:oe.filter)==null?void 0:_e.includes("@FatherSync"))&&((We=(de=oe==null?void 0:oe.filter)==null?void 0:de.split(","))==null?void 0:We.find(ea=>(ea==null?void 0:ea.includes("@FatherSync"))&&(ea==null?void 0:ea.includes("Yes"))))});if($=$==null?void 0:$.map(oe=>{var _e,de;return{menus:oe==null?void 0:oe.menus,content:((_e=oe==null?void 0:oe.menus)==null?void 0:_e.join("/"))+Ra+((de=oe==null?void 0:oe.groups)==null?void 0:de.join("/"))}}),O=ls(O),q=ls(q),$=$==null?void 0:$.filter(oe=>{var _e;return(oe==null?void 0:oe.menus)&&((_e=oe==null?void 0:oe.menus)==null?void 0:_e.length)>0}),$=$==null?void 0:$.map(oe=>oe==null?void 0:oe.content),$=[...new Set($)],$=$==null?void 0:$.map(oe=>{var _e,de;return{menus:(_e=oe==null?void 0:oe.split(Ra))==null?void 0:_e[0],groups:((de=oe==null?void 0:oe.split(Ra))==null?void 0:de[1])??[]}}),N!=null&&N.some(oe=>{var _e;return Array.isArray(oe==null?void 0:oe.children)&&((_e=oe==null?void 0:oe.children)==null?void 0:_e.length)>0})&&(N=[N]),(y==null?void 0:y.length)>0&&(Array.isArray(y==null?void 0:y[0])&&((se=y==null?void 0:y[0])!=null&&se.every(oe=>Array.isArray(oe)))?y=y==null?void 0:y.map((oe,_e)=>(oe=oe.map((de,We)=>(de.unshift("{}"),de.unshift((We+1).toString()),de)),oe)):y=y==null?void 0:y.map((oe,_e)=>(oe.unshift("{}"),oe.unshift((_e+1).toString()),oe))),_!=null&&_.secondColumns&&((ga=_==null?void 0:_.secondColumns)==null?void 0:ga.length)>0&&((y==null?void 0:y.length)>0?y=y==null?void 0:y.map((oe,_e)=>{var de,We;return Array.isArray(oe==null?void 0:oe[0])?oe=oe==null?void 0:oe.map((ea,ka)=>{var Pe,ba;return ea.unshift((ba=(Pe=_==null?void 0:_.secondColumns)==null?void 0:Pe[ka])==null?void 0:ba.prop),ea}):oe.unshift((We=(de=_==null?void 0:_.secondColumns)==null?void 0:de[_e])==null?void 0:We.prop),oe}):y=(ra=_==null?void 0:_.secondColumns)==null?void 0:ra.map((oe,_e)=>(oe=[oe==null?void 0:oe.label],oe.push(_e),oe)),N.unshift({label:"",prop:"disabled",sortable:!1})),(N==null?void 0:N.length)>0){let oe=L.cloneDeep(N);Array.isArray(oe==null?void 0:oe[0])&&(oe=oe==null?void 0:oe[0]);let _e=sa.getColumnChild(oe);_e=_e==null?void 0:_e.map(de=>de==null?void 0:de.filter),_e=_e==null?void 0:_e.filter(de=>de&&de!==""),_e=[...new Set(_e)],(_e==null?void 0:_e.length)>0&&(u=Ra+(u==null?void 0:u.slice(1,(u==null?void 0:u.length)-1))+(u!=null&&u.slice(1,(u==null?void 0:u.length)-1)?",":"")+((Le=L.cloneDeep(_e))==null?void 0:Le.join(";")))}if((u==null?void 0:u[0])!=="("&&(u!=null&&u.includes("(@"))){let oe=(Ea=(Ee=u==null?void 0:u.replace("(",Ra))==null?void 0:Ee.split(Ra))==null?void 0:Ea[0],_e=[{menus:(Va=(va=oe==null?void 0:oe.split("*"))==null?void 0:va[0])==null?void 0:Va.replaceAll(":","/"),groups:(Pa=oe==null?void 0:oe.split("*"))==null?void 0:Pa[1]}],de=(Je=(me=u==null?void 0:u.replace("(",Ra))==null?void 0:me.split(Ra))==null?void 0:Je[1];(de==null?void 0:de[(de==null?void 0:de.length)-1])===")"&&(de=de==null?void 0:de.slice(0,(de==null?void 0:de.length)-1)),de=ja.analyzeSplitToContent(de,","),(Ae=de==null?void 0:de.find(We=>We==null?void 0:We.includes("@FatherSync")))!=null&&Ae.includes("Yes")&&(O=[...O,..._e]),(Xe=de==null?void 0:de.find(We=>We==null?void 0:We.includes("@SonSync")))!=null&&Xe.includes("Yes")&&(q=[...q,..._e])}return{groupName:o,tableColumns:N,tableFilter:u,tableContents:y,columns:(_==null?void 0:_.secondColumns)??[],relatedQuotes:$,fatherSyncContents:O,sonSyncContents:q}},Ys=(l,n)=>(l=l==null?void 0:l.map((r,o)=>{var s,c,b,p;if(Array.isArray(r))r=r==null?void 0:r.map(v=>{var y,u,_,N;return v!=null&&v.isMainPath||(((y=v==null?void 0:v.children)==null?void 0:y.length)>0?v.children=Ys(v.children,n):((u=v==null?void 0:v.menus)==null?void 0:u.length)>0&&!((_=r==null?void 0:r[0])!=null&&_.isMainPath)&&(v.menus=(N=v.menus)==null?void 0:N.map(($,S)=>{var q,O;return((q=v.menus)==null?void 0:q.length)-1===S&&$===""&&(n==null?void 0:n.parentContent)+"/"!==((O=v.menus)==null?void 0:O.join("/"))&&($=n==null?void 0:n.value),v}),v.bindMenus=v.menus)),v});else{if(o===0&&((s=r.menus)==null?void 0:s.length)>0&&(r.mainKey=!0),r!=null&&r.isMainPath)return r;((c=r.menus)==null?void 0:c.length)>0&&!((b=l==null?void 0:l[0])!=null&&b.isMainPath)&&(r.menus=(p=r.menus)==null?void 0:p.map((v,y)=>{var u,_;return((u=r.menus)==null?void 0:u.length)-1===y&&v===""&&(n==null?void 0:n.parentContent)+"/"!==((_=r.menus)==null?void 0:_.join("/"))&&(v=n==null?void 0:n.value),v}),r.bindMenus=r.menus)}return r}),l),Ld=(l,n)=>(l=l==null?void 0:l.map(r=>((r==null?void 0:r.key)==="header"&&(r.contents=Ys(r.contents,n)),r)),l),pt=(l,n)=>{let r=l;return Array.isArray(r==null?void 0:r[0])?r=r==null?void 0:r.map(o=>(o=pt(o,n),o)):r=r==null?void 0:r.map(o=>{var s,c;return o!=null&&o.children&&((s=o==null?void 0:o.children)==null?void 0:s.length)>0?o.children=pt(o==null?void 0:o.children,n):o!=null&&o.words&&((c=o==null?void 0:o.words)==null?void 0:c.length)>0&&(n!=null&&n.find(b=>{var p,v,y,u;return((u=(p=o==null?void 0:o.prop)==null?void 0:p.split("."))==null?void 0:u[((y=(v=o==null?void 0:o.prop)==null?void 0:v.split("."))==null?void 0:y.length)-1])===b}))&&(o.mainKey=!0),o}),r};let sr="$R";const $d=L.useUnit(L.pinia),{selectTitle:fn}=L.storeToRefs($d),hn=[{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},{key:"@ShowType",value:"onShowType",order:1},{key:"@StepName",value:"onStepName",order:1},{key:"@Step",value:"onStep",order:1},{key:"@BackGround",value:"onBackGround",order:1}];var no=(l=>(l[l.ORDINARY=1]="ORDINARY",l[l.BLOCK=2]="BLOCK",l[l.TEXT=3]="TEXT",l))(no||{});const Rd=l=>{if((l==null?void 0:l.filter)!==void 0&&(l==null?void 0:l.filter)!==null&&(l==null?void 0:l.filter)!==""){let n=l==null?void 0:l.contents;return n.push({key:"backGround",contents:l==null?void 0:l.filter}),n}return l==null?void 0:l.contents},Vd=l=>{const n=Xs(l==null?void 0:l.filter);return n?Zs(l==null?void 0:l.contents,{position:n}):l==null?void 0:l.contents},Pd=l=>{const n=Xs(l==null?void 0:l.filter);return n?Zs(l==null?void 0:l.contents,{size:n}):l==null?void 0:l.contents},Fd=l=>{if((l==null?void 0:l.filter)!==void 0&&(l==null?void 0:l.filter)!==null&&(l==null?void 0:l.filter)!==""){let n=l==null?void 0:l.contents;const r=Number(l==null?void 0:l.filter);return n.push({key:"textSize",contents:Number.isNaN(r)?l==null?void 0:l.filter:r}),n}return l==null?void 0:l.contents},jd=l=>{if((l==null?void 0:l.filter)!==void 0&&(l==null?void 0:l.filter)!==null&&(l==null?void 0:l.filter)!==""){let n=l==null?void 0:l.contents;return n.push({key:"textRGBA",contents:l==null?void 0:l.filter}),n}return l==null?void 0:l.contents},Hd=l=>{var r;return(l==null?void 0:l.filter.toUpperCase())==="ALL"||(l==null?void 0:l.filter.toUpperCase())==="NONE"?l==null?void 0:l.contents:(r=l==null?void 0:l.contents)==null?void 0:r.map(o=>{var s;return(o==null?void 0:o.key)==="tableContents"&&(o.contents=(s=o.contents)==null?void 0:s.slice(0,parseInt(l==null?void 0:l.filter))),o})},Ud=async l=>{var n,r,o,s,c,b,p,v,y,u,_,N,$,S,q,O,M,Z,C,w,E,m,g,j,V,G,he,Te,Se,Q;if((l==null?void 0:l.filter)==="Random")return(n=l==null?void 0:l.contents)==null?void 0:n.map(J=>((J==null?void 0:J.key)==="tableContents"&&(J.contents=ja.shuffle(J.contents)),J));if((l==null?void 0:l.filter)==="Ordin"){let fe=l==null?void 0:l.contents;return fe.push({key:"enableWrap",contents:1}),fe}if((l==null?void 0:l.filter)==="Block"){let fe=l==null?void 0:l.contents;return fe.push({key:"enableWrap",contents:2}),fe}if((l==null?void 0:l.filter)==="Auto"){let fe=(o=(r=l==null?void 0:l.contents)==null?void 0:r.find(ue=>(ue==null?void 0:ue.key)==="header"))==null?void 0:o.contents;Array.isArray(fe==null?void 0:fe[0])&&(fe=fe==null?void 0:fe[0]),fe=sa.getColumnChild(fe);let J=fe==null?void 0:fe.filter(ue=>(ue==null?void 0:ue.filter)&&(ue==null?void 0:ue.filter)!==""),ce=new Map,He=[];J==null||J.forEach(ue=>{var De,pa;ce.get((De=ue==null?void 0:ue.menus)==null?void 0:De.join("/"))||(ce.set((pa=ue==null?void 0:ue.menus)==null?void 0:pa.join("/"),ue),He.push(ue))});let Ca=(c=(s=fn==null?void 0:fn.value)==null?void 0:s.find(ue=>(ue==null?void 0:ue.condition)==="child"))==null?void 0:c.value,ne=He==null?void 0:He.map(ue=>{var De,pa,_a;return ue=(De=ue==null?void 0:ue.menus)==null?void 0:De.join("/"),(ue==null?void 0:ue[(ue==null?void 0:ue.length)-1])==="/"&&((_a=(pa=fn==null?void 0:fn.value)==null?void 0:pa.find(Ga=>(Ga==null?void 0:Ga.condition)==="child"))==null?void 0:_a.parentContent)+"/"!==ue?ue=ue+Ca:(ue==null?void 0:ue[(ue==null?void 0:ue.length)-1])==="/"&&(ue=ue==null?void 0:ue.slice(0,(ue==null?void 0:ue.length)-1)),ue}),D=He==null?void 0:He.map(ue=>ue==null?void 0:ue.groups),re=ne==null?void 0:ne.map(async ue=>{let De=await Wr(ue,!1);return{path:ue,contents:De}});re=await Promise.all(re);let be=re==null?void 0:re.map((ue,De)=>{var _a,Ga,le,la,Ve,wa,Fe;let pa=(_a=ue==null?void 0:ue.contents)==null?void 0:_a.filter(ze=>{var Re,Ze;return(ze==null?void 0:ze.name)===((Ze=D==null?void 0:D[De])==null?void 0:Ze[((Re=D==null?void 0:D[De])==null?void 0:Re.length)-1])});return pa=(la=(le=(Ga=pa==null?void 0:pa[0])==null?void 0:Ga.compData)==null?void 0:le.find(ze=>(ze==null?void 0:ze.key)==="tableContents"))==null?void 0:la.contents,(ue==null?void 0:ue.path)===((wa=(Ve=fn==null?void 0:fn.value)==null?void 0:Ve.find(ze=>(ze==null?void 0:ze.condition)==="child"))==null?void 0:wa.parentContent)&&(pa=((Fe=pa==null?void 0:pa.map(ze=>{for(let Re in ze)if(ze[Re]===Ca)return ze}))==null?void 0:Fe.filter(ze=>ze))??[]),pa??[]});if(be=be==null?void 0:be.map(ue=>(ue=ue==null?void 0:ue.map(De=>{var _a;let pa={};for(let Ga in De)if(J!=null&&J.find(le=>{var la,Ve;return((Ve=(la=le==null?void 0:le.words)==null?void 0:la[0])==null?void 0:Ve.replaceAll("'",""))===Ga})){let le=(_a=J==null?void 0:J.find(la=>{var Ve,wa;return((wa=(Ve=la==null?void 0:la.words)==null?void 0:Ve[0])==null?void 0:wa.replaceAll("'",""))===Ga}))==null?void 0:_a.prop;pa[le]=De==null?void 0:De[Ga]}return pa}),ue)),be=ja.cartesianProduct(be),Array.isArray(be==null?void 0:be[0])&&(be=be==null?void 0:be[0]),(be==null?void 0:be.length)>0&&((_=(p=(b=J==null?void 0:J[0])==null?void 0:b.menus)==null?void 0:p.join("/"))==null?void 0:_[((u=(y=(v=J==null?void 0:J[0])==null?void 0:v.menus)==null?void 0:y.join("/"))==null?void 0:u.length)-1])==="/")return(N=l==null?void 0:l.contents)==null?void 0:N.map(De=>{var pa;return(De==null?void 0:De.key)==="tableContents"&&(be==null?void 0:be.length)>0&&(De.contents=((pa=De.contents)==null?void 0:pa.length)>0?De.contents:be),De})}if((l==null?void 0:l.filter)==="Text"){let fe=l==null?void 0:l.contents;return fe.push({key:"enableWrap",contents:3}),fe}if((l==null?void 0:l.filter)==="Manual"){let fe=[],J=[],ce=(S=($=l==null?void 0:l.contents)==null?void 0:$.find(D=>(D==null?void 0:D.key)==="filter"))==null?void 0:S.contents;(ce==null?void 0:ce[(ce==null?void 0:ce.length)-1])===")"?ce=(O=(q=ce==null?void 0:ce.replace("(",sr))==null?void 0:q.split(sr))==null?void 0:O[0]:ce="",ce!==""&&(fe=((Z=(M=ce==null?void 0:ce.split("*"))==null?void 0:M[0])==null?void 0:Z.split(":"))??[],J=((g=(m=(E=(w=(C=ce==null?void 0:ce.split("*"))==null?void 0:C[1])==null?void 0:w.replace("{",sr))==null?void 0:E.split(sr))==null?void 0:m[0])==null?void 0:g.split(":"))??[]);let He=(V=(j=l==null?void 0:l.contents)==null?void 0:j.find(D=>(D==null?void 0:D.key)==="filter"))==null?void 0:V.contents;He=(he=(G=He==null?void 0:He.replace("(",sr))==null?void 0:G.split(sr))==null?void 0:he[1],He=He==null?void 0:He.slice(0,(He==null?void 0:He.length)-1);let Ca=(Te=l==null?void 0:l.contents)==null?void 0:Te.map(D=>{var re,be,ue,De,pa,_a,Ga,le,la;return(D==null?void 0:D.key)==="header"&&((re=D==null?void 0:D.contents)!=null&&re.every(Ve=>(Ve==null?void 0:Ve.mainKey)!==!0)&&Array.isArray(D==null?void 0:D.contents)&&!Array.isArray((be=D==null?void 0:D.contents)==null?void 0:be[0])?D.contents=(ue=D==null?void 0:D.contents)==null?void 0:ue.map((Ve,wa)=>{var Fe,ze,Re;return Ve!=null&&Ve.isMainPath||(wa===0?(Ve.mainKey=!0,Ve.formType="Select",Ve.bindMenus=fe,Ve.groups=((Fe=Ve.groups)==null?void 0:Fe.length)===0?J:Ve.groups,Ve.words=((ze=Ve.words)==null?void 0:ze.length)===0?[Ve==null?void 0:Ve.prop]:Ve.words,Ve.filter=He,(!(Ve!=null&&Ve.menus)||((Re=Ve==null?void 0:Ve.menus)==null?void 0:Re.length)===0)&&(Ve.menus=fe)):(Ve.mainKey=!1,Ve.bindMenus=fe)),Ve}):Array.isArray((De=D==null?void 0:D.contents)==null?void 0:De[0])&&((Ga=(_a=(pa=D==null?void 0:D.contents)==null?void 0:pa[0])==null?void 0:_a.filter(()=>(fe==null?void 0:fe.length)>0))==null?void 0:Ga.length)>0&&(D.contents[0]=(la=(le=D==null?void 0:D.contents)==null?void 0:le[0])==null?void 0:la.map((Ve,wa)=>{var Fe,ze,Re;return Ve!=null&&Ve.isMainPath||(wa===0?(Ve.mainKey=!0,Ve.formType="Select",Ve.bindMenus=fe,Ve.groups=((Fe=Ve.groups)==null?void 0:Fe.length)===0?J:Ve.groups,Ve.words=((ze=Ve.words)==null?void 0:ze.length)===0?[Ve==null?void 0:Ve.prop]:Ve.words,Ve.filter=He,(!(Ve!=null&&Ve.menus)||Array.isArray(Ve==null?void 0:Ve.menus)&&((Re=Ve==null?void 0:Ve.menus)==null?void 0:Re.length)===0)&&(fe==null?void 0:fe.length)>0&&(Ve.menus=fe)):(Ve.mainKey=!1,Ve.bindMenus=fe)),Ve}))),D}),ne=(Se=Ca==null?void 0:Ca.find(D=>(D==null?void 0:D.key)==="header"))==null?void 0:Se.contents;if(Array.isArray(ne==null?void 0:ne[0])&&(ne=ne==null?void 0:ne[0]),ne=sa.getColumnChild(ne),ne!=null&&ne.some(D=>{var re,be;return((be=D==null?void 0:D.menus)==null?void 0:be[((re=D==null?void 0:D.menus)==null?void 0:re.length)-1])===""})){let D=(Q=fn==null?void 0:fn.value)==null?void 0:Q.find(re=>(re==null?void 0:re.condition)==="child");Ca=Ld(Ca,D)}return Ca}return l==null?void 0:l.contents},qd=l=>{var o,s,c,b;let n=l==null?void 0:l.filter;if(n!=null&&n.includes("*")&&(n="({"+((s=(o=n==null?void 0:n.replace("{",sr))==null?void 0:o.split(sr))==null?void 0:s[1])),n=(c=n==null?void 0:n.replaceAll("{",""))==null?void 0:c.replaceAll("}",""),(n==null?void 0:n[0])!=="("&&(n="("+n+")"),n.slice(1,(n==null?void 0:n.length)-1)==="undefined")return l==null?void 0:l.contents;let r=sa.calculatorAndToOr(n);if((r==null?void 0:r.length)>0){let p=[];return r==null||r.forEach(y=>{let u={};for(let _ in y){let N=_;N!=null&&N.includes("[")||(u[N]=y[_])}p.push(u)}),(b=l==null?void 0:l.contents)==null?void 0:b.map(y=>{var _,N,$;let u=(N=(_=l==null?void 0:l.contents)==null?void 0:_.find(S=>(S==null?void 0:S.key)==="header"))==null?void 0:N.contents;if(u=($=sa.getEqualChild(u))==null?void 0:$.filter(S=>(S==null?void 0:S.label)!=="操作"),(y==null?void 0:y.key)==="tableContents"){let q=sa.tableToForm(y==null?void 0:y.contents,u);p==null||p.forEach(O=>{var M,Z;for(let C in O)!((M=q==null?void 0:q[0])!=null&&M.find(w=>{var E;return(w==null?void 0:w.key)===C||((E=w==null?void 0:w.key)==null?void 0:E.includes(C))}))&&!(q!=null&&q.find(w=>{var E;return(w==null?void 0:w.key)===C||((E=w==null?void 0:w.key)==null?void 0:E.includes(C))}))||(((Z=O[C])==null?void 0:Z[0])!=="!"?q=q==null?void 0:q.filter(w=>{var E,m;return((E=w==null?void 0:w.find(g=>{var j;return(g==null?void 0:g.key)===C||((j=g==null?void 0:g.key)==null?void 0:j.includes(C))}))==null?void 0:E.value)===O[C]||Array.isArray(O==null?void 0:O[C])&&((m=O==null?void 0:O[C])==null?void 0:m.find(g=>{var j;return((j=w==null?void 0:w.find(V=>{var G;return(V==null?void 0:V.key)===C||((G=V==null?void 0:V.key)==null?void 0:G.includes(C))}))==null?void 0:j.value)===g}))}):q=q==null?void 0:q.filter(w=>{var E;return((E=w==null?void 0:w.find(m=>{var g;return(m==null?void 0:m.key)===C||((g=m==null?void 0:m.key)==null?void 0:g.includes(C))}))==null?void 0:E.value)!==O[C]}))}),(q==null?void 0:q.length)===0?y.contents=[]:y.contents=q==null?void 0:q.map(O=>{let M={};return O==null||O.forEach(Z=>{M[Z==null?void 0:Z.key]=Z==null?void 0:Z.value}),M})}return y})}return l==null?void 0:l.contents},Wd=l=>l==null?void 0:l.contents,Kd=l=>l==null?void 0:l.contents,Gd=l=>{var n,r,o,s;if((l==null?void 0:l.filter)!==""&&(l!=null&&l.filter)){let c=(o=(r=l==null?void 0:l.filter)==null?void 0:r.slice(1,((n=l==null?void 0:l.filter)==null?void 0:n.length)-1))==null?void 0:o.split(",");return(s=l==null?void 0:l.contents)==null?void 0:s.map(p=>((p==null?void 0:p.key)==="header"&&(p.contents=pt(p.contents,c)),p))}return l==null?void 0:l.contents},Yd=l=>{var r;let n=(l==null?void 0:l.filter)??"";return(n==null?void 0:n[0])==="{"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n!==""?(r=l==null?void 0:l.contents)==null?void 0:r.map(s=>{var c;return(s==null?void 0:s.key)==="extraButton"&&(s.contents=(c=n==null?void 0:n.split(","))==null?void 0:c.map(b=>({label:b,prop:b}))),s}):l==null?void 0:l.contents},Jd=l=>l==null?void 0:l.contents,Xd=l=>{var r;let n=(l==null?void 0:l.filter)??"";return(n==null?void 0:n[0])==="{"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n!==""?(r=l==null?void 0:l.contents)==null?void 0:r.map(s=>{var c;return(s==null?void 0:s.key)==="rowButton"&&(s.contents=(c=n==null?void 0:n.split(","))==null?void 0:c.map(b=>({label:b,prop:b}))),s}):l==null?void 0:l.contents},Zd=l=>{var r;let n=(l==null?void 0:l.filter)??"";if((n==null?void 0:n[0])==="{"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n!==""){let o=l==null?void 0:l.contents,s=(r=n==null?void 0:n.split(","))==null?void 0:r.map(c=>({label:c,prop:c}));return o.push({key:"bottomButton",contents:s}),o}return l==null?void 0:l.contents},Qd=l=>{var n,r,o,s;if(((n=l==null?void 0:l.filter)==null?void 0:n[0])!=="["){const c=parseInt(l==null?void 0:l.filter);return!c||Number.isNaN(c)?l==null?void 0:l.contents:(r=l==null?void 0:l.contents)==null?void 0:r.map(p=>{var v;return(p==null?void 0:p.key)==="formContent"&&(p.contents=(v=p.contents)==null?void 0:v.map(y=>(y.width=c,y))),p})}if(((o=l==null?void 0:l.filter)==null?void 0:o[0])==="["){let c=Do(l==null?void 0:l.filter),b=Array.isArray(c)?c.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((u,_)=>{const N=_+1;let $=0,S=0;for(let O=0;O<b.length;O++){if(S+=b[O],N<=S){$=O;break}O===b.length-1&&($=b.length-1)}const q=b[$]||b[b.length-1]||1;return u.width=q,u})}return v}):l==null?void 0:l.contents}return l==null?void 0:l.contents},ep=l=>{var n;if((l==null?void 0:l.filter)!==""){let r=l==null?void 0:l.filter;return(r==null?void 0:r[0])==="{"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),r=r==null?void 0:r.split(","),(n=l==null?void 0:l.contents)==null?void 0:n.map(s=>{var c,b,p;return(s==null?void 0:s.key)==="header"&&(Array.isArray((c=s==null?void 0:s.contents)==null?void 0:c[0])?s.contents[0]=(p=s.contents[0])==null?void 0:p.map(v=>(r!=null&&r.find(y=>y===(v==null?void 0:v.prop))&&(v.fixed="left"),v)):s.contents=(b=s.contents)==null?void 0:b.map(v=>(r!=null&&r.find(y=>y===(v==null?void 0:v.prop))&&(v.fixed="left"),v))),s})}return l==null?void 0:l.contents},ap=l=>{var n;if((l==null?void 0:l.filter)!==""){let r=l==null?void 0:l.filter;(r==null?void 0:r[0])==="{"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),r=r==null?void 0:r.split(",");const o=c=>(r!=null&&r.find(b=>b===(c==null?void 0:c.prop))&&(c.required=!0),c!=null&&c.children&&Array.isArray(c.children)&&(c.children=c.children.map(b=>o(b))),c);return(n=l==null?void 0:l.contents)==null?void 0:n.map(c=>{var b,p,v;return(c==null?void 0:c.key)==="header"&&(Array.isArray((b=c==null?void 0:c.contents)==null?void 0:b[0])?c.contents[0]=(v=c.contents[0])==null?void 0:v.map(y=>o(y)):c.contents=(p=c.contents)==null?void 0:p.map(y=>o(y))),c})}return l==null?void 0:l.contents},lp=async l=>{var o,s,c,b,p,v,y,u,_,N,$,S,q,O,M,Z,C;const n=L.useUnit(L.pinia),{chooseTitle:r}=L.storeToRefs(n);if((l==null?void 0:l.filter)==="true"){let w=await Wr(((s=(o=r==null?void 0:r.value)==null?void 0:o[0])==null?void 0:s.parentContent)??((b=(c=r==null?void 0:r.value)==null?void 0:c[0])==null?void 0:b.relatedContent),!1),E=(v=(p=r==null?void 0:r.value)==null?void 0:p[0])==null?void 0:v.value;(u=(y=w==null?void 0:w[0])==null?void 0:y.compData)!=null&&u.find(V=>(V==null?void 0:V.key)==="header")?w=(_=w==null?void 0:w[0])==null?void 0:_.compData:w=($=(N=w==null?void 0:w.filter(V=>{var G;return(G=V==null?void 0:V.compData)==null?void 0:G.find(he=>(he==null?void 0:he.key)==="header")}))==null?void 0:N[0])==null?void 0:$.compData;let m=(S=w==null?void 0:w.find(V=>(V==null?void 0:V.key)==="header"))==null?void 0:S.contents;Array.isArray(m==null?void 0:m[0])&&(m=m==null?void 0:m[0]),m=((q=m==null?void 0:m.find(V=>V==null?void 0:V.isMainKey))==null?void 0:q.prop)??((O=m==null?void 0:m[0])==null?void 0:O.prop);let g=(Z=(M=w==null?void 0:w.find(V=>(V==null?void 0:V.key)==="tableContents"))==null?void 0:M.contents)==null?void 0:Z.find(V=>(V==null?void 0:V[m])===E);return(C=l==null?void 0:l.contents)==null?void 0:C.map(V=>{var G;return(V==null?void 0:V.key)==="formContent"&&(V.contents=(G=V.contents)==null?void 0:G.map(he=>(he.value=g==null?void 0:g[he==null?void 0:he.prop],he))),V})}return l==null?void 0:l.contents},rp=l=>{var n,r,o,s,c;if((n=l==null?void 0:l.extra)!=null&&n.row){let b=l==null?void 0:l.filter;if(b!=null&&b.includes("*")&&(b="({"+((o=(r=b==null?void 0:b.replace("{",sr))==null?void 0:r.split(sr))==null?void 0:o[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 p=sa.calculatorAndToOr(b),v=p==null?void 0:p[0],y=(c=l==null?void 0:l.extra)==null?void 0:c.row,u=[];for(let _ in v)(v==null?void 0:v[_])===(y==null?void 0:y[_])?u.push(!0):u.push(!1);return u!=null&&u.every(_=>_===!0)?l==null?void 0:l.contents:[]}else return l==null?void 0:l.contents},np=l=>{if(l!=null&&l.filter){let n=l==null?void 0:l.contents;return n.push({key:"tab",contents:l==null?void 0:l.filter}),n}return l==null?void 0:l.contents},op=l=>{if(l!=null&&l.filter){let n=l==null?void 0:l.contents;return n.push({key:"choice",contents:l==null?void 0:l.filter}),n}return l==null?void 0:l.contents},ip=l=>{if(l!=null&&l.filter){let n=l==null?void 0:l.contents;return n.push({key:"fixType",contents:l==null?void 0:l.filter}),n}return l==null?void 0:l.contents},tp=l=>{var n;if(l!=null&&l.filter){let r=l==null?void 0:l.contents,o=l==null?void 0:l.filter;return(o==null?void 0:o[0])==="{"&&(o=o==null?void 0:o.slice(1,(o==null?void 0:o.length)-1)),o=(n=ja.analyzeSplitToContent(o,","))==null?void 0:n.map(s=>((s==null?void 0:s[(s==null?void 0:s.length)-1])===","&&(s=s==null?void 0:s.slice(0,(s==null?void 0:s.length)-1)),s)),r.push({key:"stepName",contents:o}),r}return l==null?void 0:l.contents},sp=l=>{if(l!=null&&l.filter){let n=l==null?void 0:l.contents;return n.push({key:"step",contents:l==null?void 0:l.filter}),n}return l==null?void 0:l.contents},Js={onNumSlice:Hd,onRandomContents:Ud,onConditionContents:qd,onFatherPaceContents:Wd,onPaceContents:Kd,onMainTagContents:Gd,onButtonContents:Yd,onPamButtonContents:Jd,onRowButtonContents:Xd,onRelated:lp,onRowNum:Qd,onFixRow:ep,onReqItem:ap,onBottomButtonContents:Zd,onConditionContent:rp,onTabs:np,onSinChoice:op,onTextSize:Fd,onTextRGBA:jd,onPosition:Vd,onSize:Pd,onShowType:ip,onStepName:tp,onStep:sp,onBackGround:Rd},cp=async(l,n)=>{var c,b,p,v,y,u,_,N,$,S,q,O,M,Z,C,w,E,m,g;let r="";if(((c=l==null?void 0:l.find(j=>(j==null?void 0:j.key)==="filter"))==null?void 0:c.contents)!==""&&(r=(b=l==null?void 0:l.find(j=>(j==null?void 0:j.key)==="filter"))==null?void 0:b.contents),r===""||!r)return l;(r==null?void 0:r[0])==="("?r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1):(r=(v=(p=r==null?void 0:r.replace("(",sr))==null?void 0:p.split(sr))==null?void 0:v[1],r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1));let o=(y=ja.analyzeSplitToContent(r,","))==null?void 0:y.map(j=>((j==null?void 0:j[(j==null?void 0:j.length)-1])===","&&(j=j==null?void 0:j.slice(0,(j==null?void 0:j.length)-1)),j!=null&&j.includes("(")||(j=j==null?void 0:j.replaceAll(":","=")),j)),s=l;for(let j in o){let V,G="";(u=o==null?void 0:o[j])!=null&&u.includes("(")?(V=($=(N=(_=o==null?void 0:o[j])==null?void 0:_.replace("(",sr))==null?void 0:N.split(sr))==null?void 0:$[0],G="("+((O=(q=(S=o==null?void 0:o[j])==null?void 0:S.replace("(",sr))==null?void 0:q.split(sr))==null?void 0:O[1])):(V=(C=(Z=(M=o==null?void 0:o[j])==null?void 0:M.replace("=",sr))==null?void 0:Z.split(sr))==null?void 0:C[0],G=(m=(E=(w=o==null?void 0:o[j])==null?void 0:w.replace("=",sr))==null?void 0:E.split(sr))==null?void 0:m[1]);let he=(g=hn==null?void 0:hn.find(Te=>(Te==null?void 0:Te.key)===V))==null?void 0:g.value;if(he){const Te=Js[he];s=await Te({contents:s,filter:G})}}return s},_t=async(l,n)=>{var b,p,v,y,u,_,N,$,S,q,O,M,Z,C,w,E,m,g,j,V;let r="";if(((b=l==null?void 0:l.find(G=>(G==null?void 0:G.key)==="filter"))==null?void 0:b.contents)!==""&&(r=(p=l==null?void 0:l.find(G=>(G==null?void 0:G.key)==="filter"))==null?void 0:p.contents),r===""||!r)return l;(r==null?void 0:r[0])===","&&(r=r==null?void 0:r.slice(1,r==null?void 0:r.length)),(r==null?void 0:r[0])==="("?r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1):(r==null?void 0:r[0])==="@"||(r=(y=(v=r==null?void 0:r.replace("(",sr))==null?void 0:v.split(sr))==null?void 0:y[1],r=r==null?void 0:r.slice(0,(r==null?void 0:r.length)-1));let o=(u=ja.analyzeSplitToContent(r,","))==null?void 0:u.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,c=new Map;o==null||o.forEach(G=>{var Te,Se,Q;let he=(Te=G==null?void 0:G.split("="))==null?void 0:Te[0];if(he==="@MainPam"&&c.get(he)){let fe=c.get(he);fe=fe==null?void 0:fe.slice(0,(fe==null?void 0:fe.length)-1);let J=(Q=(Se=G==null?void 0:G.replace("{",sr))==null?void 0:Se.split(sr))==null?void 0:Q[1];J=fe+","+J,c.set(he,J)}else c.set(he,G)}),o=Array.from(c.values()),o=o==null?void 0:o.sort((G,he)=>{var Te,Se;return((Te=hn==null?void 0:hn.find(Q=>he==null?void 0:he.includes(Q==null?void 0:Q.key)))==null?void 0:Te.order)-((Se=hn==null?void 0:hn.find(Q=>G==null?void 0:G.includes(Q==null?void 0:Q.key)))==null?void 0:Se.order)});for(let G in o){let he,Te="";(_=o==null?void 0:o[G])!=null&&_.includes("(")&&((N=o==null?void 0:o[G])!=null&&N.includes("@Filter"))?(he=(q=(S=($=o==null?void 0:o[G])==null?void 0:$.replace("(",sr))==null?void 0:S.split(sr))==null?void 0:q[0],Te="("+((Z=(M=(O=o==null?void 0:o[G])==null?void 0:O.replace("(",sr))==null?void 0:M.split(sr))==null?void 0:Z[1])):(he=(E=(w=(C=o==null?void 0:o[G])==null?void 0:C.replace("=",sr))==null?void 0:w.split(sr))==null?void 0:E[0],Te=(j=(g=(m=o==null?void 0:o[G])==null?void 0:m.replace("=",sr))==null?void 0:g.split(sr))==null?void 0:j[1]);let Se=(V=hn==null?void 0:hn.find(Q=>(Q==null?void 0:Q.key)===he))==null?void 0:V.value;if(Se){const Q=Js[Se];s=await Q({contents:s,filter:Te,extra:n})}}return s},Xs=l=>{if(l==null)return null;const n=String(l).trim();if(!n.startsWith("[")||!n.endsWith("]"))return null;const r=n.slice(1,-1).split(",").map(o=>Number(o.trim()));return r.length<2||r.some(o=>Number.isNaN(o))?null:[r[0],r[1]]},Zs=(l,n)=>{var q,O,M,Z,C;const r=Array.isArray(l)?l:[],o=r.find(w=>(w==null?void 0:w.key)==="formContent"),s=Array.isArray(o==null?void 0:o.contents)?o.contents:[],c=((q=r.find(w=>(w==null?void 0:w.key)==="_gridLayoutMeta"))==null?void 0:q.contents)??{},b=(s==null?void 0:s[0])??{};let p=((O=n==null?void 0:n.position)==null?void 0:O[0])??(c==null?void 0:c._positionStartRow)??(b==null?void 0:b._positionStartRow),v=((M=n==null?void 0:n.position)==null?void 0:M[1])??(c==null?void 0:c._positionRowSpan)??(b==null?void 0:b._positionRowSpan);(!p||Number.isNaN(p)||p<1)&&(p=1),(!v||Number.isNaN(v)||v<1)&&(v=1);let y=((Z=n==null?void 0:n.size)==null?void 0:Z[0])??(c==null?void 0:c._sizeStart)??(b==null?void 0:b._sizeStart),u=((C=n==null?void 0:n.size)==null?void 0:C[1])??(c==null?void 0:c._sizeEnd)??(b==null?void 0:b._sizeEnd);(y===void 0||Number.isNaN(y))&&(y=0),(u===void 0||Number.isNaN(u))&&(u=1),y=Math.max(0,Math.min(1,y)),u=Math.max(0,Math.min(1,u)),u<=y&&(y=0,u=1);const _=u-y,N=Math.max(1,Math.round(1/_));let $=r.map(w=>{if((w==null?void 0:w.key)!=="formContent")return w;const E=Array.isArray(w==null?void 0:w.contents)?w.contents:[];return{...w,contents:E.map(m=>({...m,width:N,_positionStartRow:p,_positionRowSpan:v,_sizeStart:y,_sizeEnd:u}))}});const S={_positionStartRow:p,_positionRowSpan:v,_sizeStart:y,_sizeEnd:u};return $.some(w=>(w==null?void 0:w.key)==="_gridLayoutMeta")?$=$.map(w=>(w==null?void 0:w.key)==="_gridLayoutMeta"?{...w,contents:S}:w):$.push({key:"_gridLayoutMeta",contents:S}),$};let ui="$R";const up=L.useUnit(L.pinia),{selectTitle:dp}=L.storeToRefs(up);let pp=[{label:"新增",prop:"新增"},{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],fp=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"},{label:"复制新增",prop:"复制新增"},{label:"删除",prop:"删除"}],hp=[{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],vp=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"}];const rs=async(l,n,r=!0)=>{let o=[],s=l==null?void 0:l.map(async c=>{var _,N,$,S,q,O,M,Z,C,w,E,m,g,j,V,G,he,Te,Se,Q,fe,J,ce,He,Ca,ne,D,re,be,ue,De,pa,_a,Ga,le,la,Ve,wa,Fe,ze,Re,Ze,Ja,qa,F,P,X,ie,se,ga,ra,Le,Ee,Ea,va,Va,Pa,me,Je,Ae,Xe,oe,_e,de,We,ea,ka,Pe,ba,xa,fa,Ha,Ba,Ia,$a,Ne,sl,yl,Gl;let b=(S=($=(N=(_=c==null?void 0:c.contents)==null?void 0:_.find(Ya=>{var da;return(da=Ya==null?void 0:Ya.key)==null?void 0:da.includes("struct")}))==null?void 0:N.value)==null?void 0:$[0])==null?void 0:S.类型,p=Object.values(c==null?void 0:c.name);p=p==null?void 0:p.reverse();let v=(q=c==null?void 0:c.contents)==null?void 0:q.map(Ya=>Ya==null?void 0:Ya.key),y={comp:b,isShow:c==null?void 0:c.is_show,name:p==null?void 0:p[0],id:c==null?void 0:c.object_id,relatedTables:v,menuFilter:(O=c==null?void 0:c.filter)==null?void 0:O.menuFilter,status:c==null?void 0:c.status,fatherSyncContents:(M=c==null?void 0:c.filter)==null?void 0:M.fatherSyncs,relatedQuotes:(Z=c==null?void 0:c.filter)==null?void 0:Z.quotes,sonSyncContents:(C=c==null?void 0:c.filter)==null?void 0:C.sonSyncs,nameContents:(w=L.cloneDeep(p))==null?void 0:w.reverse()};for(let Ya in p)parseInt(Ya)>=1&&(y[`name${parseInt(Ya)-1}`]=p[Ya]);let u=Array.isArray((E=c==null?void 0:c.filter)==null?void 0:E.menuFilter)?(m=c==null?void 0:c.filter)==null?void 0:m.menuFilter:[];if(((g=u==null?void 0:u.filter(Ya=>Ya==null?void 0:Ya.includes("@Filter")))==null?void 0:g.length)>0){let Ya=u==null?void 0:u.filter(Ce=>Ce==null?void 0:Ce.includes("@Filter"));Ya=Ya==null?void 0:Ya[0],Ya=(V=(j=Ya==null?void 0:Ya.replace("(",ui))==null?void 0:j.split(ui))==null?void 0:V[1],Ya=Ya==null?void 0:Ya.slice(0,(Ya==null?void 0:Ya.length)-1),Ya!=null&&Ya.includes("*")&&(Ya=(he=(G=Ya==null?void 0:Ya.replace("{",ui))==null?void 0:G.split(ui))==null?void 0:he[1],Ya=Ya==null?void 0:Ya.replace("}","")),Ya=sa.calculatorAndToOr(Ya);let da=(n==null?void 0:n.originPath)??"";(da==null?void 0:da[(da==null?void 0:da.length)-1])==="/"&&(da=da==null?void 0:da.slice(0,(da==null?void 0:da.length)-1));let ha=await Wr(da,!1),ma=(Te=ha==null?void 0:ha.filter(Ce=>(Ce==null?void 0:Ce.comp)==="Table"))==null?void 0:Te[0];ma=(Q=(Se=ma==null?void 0:ma.compData)==null?void 0:Se.find(Ce=>(Ce==null?void 0:Ce.key)==="tableContents"))==null?void 0:Q.contents;let Ye=(J=(fe=dp.value)==null?void 0:fe.find(Ce=>(Ce==null?void 0:Ce.condition)==="child"))==null?void 0:J.value;ma=(ce=ma==null?void 0:ma.map(Ce=>{for(let Ke in Ce)if((Ce==null?void 0:Ce[Ke])===Ye)return Ce}))==null?void 0:ce.filter(Ce=>Ce),ma=ma==null?void 0:ma[0],Ya=Ya==null?void 0:Ya[0];let Xa=[];for(let Ce in Ya){let Ke="";Qa.isObject(ma)&&(Ke=(Ca=(He=Object.keys(ma))==null?void 0:He.filter(ye=>ye==null?void 0:ye.includes("."+Ce)))==null?void 0:Ca[0]),Ke!==""&&(ma!=null&&ma[Ke])&&(Ya==null?void 0:Ya[Ce])===(ma==null?void 0:ma[Ke])||ma!=null&&ma[Ce]&&(Ya==null?void 0:Ya[Ce])===(ma==null?void 0:ma[Ce])?Xa.push(!0):Xa.push(!1)}if(Xa!=null&&Xa.some(Ce=>Ce===!1)&&((D=n==null?void 0:n.originPath)==null?void 0:D[((ne=n==null?void 0:n.originPath)==null?void 0:ne.length)-1])!=="/")return}if(b==="Table"||b==="Method"){let Ya=((re=c==null?void 0:c.contents)==null?void 0:re.find(Ue=>{var W;return(W=Ue==null?void 0:Ue.key)==null?void 0:W.includes("content")}))||[],da=[];y.comp="Table",Ya.value=(be=Ya==null?void 0:Ya.value)==null?void 0:be.sort((Ue,W)=>parseInt(Ue==null?void 0:Ue.id)-parseInt(W==null?void 0:W.id)),Ya.value=(ue=Ya==null?void 0:Ya.value)==null?void 0:ue.map(Ue=>{let W={};for(let aa in Ue)JSON.stringify(Ue==null?void 0:Ue[aa])==="{}"?W[aa]="":W[aa]=Ue==null?void 0:Ue[aa];return W}),da.push({key:"tableContents",contents:Ya==null?void 0:Ya.value});let ha=(le=(Ga=(_a=(pa=(De=c==null?void 0:c.contents)==null?void 0:De.find(Ue=>{var W;return(W=Ue==null?void 0:Ue.key)==null?void 0:W.includes("struct")}))==null?void 0:pa.value)==null?void 0:_a[0])==null?void 0:Ga.结构)==null?void 0:le.contents;Array.isArray(ha==null?void 0:ha[0])?ha[0]=(la=ha==null?void 0:ha[0])==null?void 0:la.filter(Ue=>(Ue==null?void 0:Ue.prop)!=="sort"&&(Ue==null?void 0:Ue.prop)!=="relatedId"):ha=ha==null?void 0:ha.filter(Ue=>(Ue==null?void 0:Ue.prop)!=="sort"&&(Ue==null?void 0:Ue.prop)!=="relatedId"),da.push({key:"header",contents:ha}),da.push({key:"filter",contents:(Re=(ze=(Fe=(wa=(Ve=c==null?void 0:c.contents)==null?void 0:Ve.find(Ue=>{var W;return(W=Ue==null?void 0:Ue.key)==null?void 0:W.includes("struct")}))==null?void 0:wa.value)==null?void 0:Fe[0])==null?void 0:ze.引用)==null?void 0:Re.contents});let ma=pp,Ye=L.cloneDeep(fp);b==="Method"&&Ye.push({label:"生成方法",prop:"生成方法"}),!Array.isArray(ha==null?void 0:ha[0])&&((Ze=ha==null?void 0:ha[0])==null?void 0:Ze.prop)==="disabled"&&(ma=hp,Ye=vp);const Xa=["推力","真空","压力","温度","流量"],Ce=y.name;Ce&&Xa.includes(Ce)&&(ma=[...ma],ma.push({label:"导出paraform",prop:"导出paraform",type:"methodButton"}));let Ke=[];if(!Array.isArray(ha==null?void 0:ha[0])&&(ha!=null&&ha.some(Ue=>{var W;return(Ue==null?void 0:Ue.calculatorFilter)&&((W=Ue==null?void 0:Ue.calculatorFilter)==null?void 0:W.includes("Manual"))}))){let Ue=(Ja=ha==null?void 0:ha.map(W=>W==null?void 0:W.calculatorFilter))==null?void 0:Ja.filter(W=>W&&(W==null?void 0:W.includes("Manual")));Ue==null||Ue.forEach(W=>{var Ge;let aa=ja.analyzeSplitToContent(W,",");if(aa=aa==null?void 0:aa.map(Be=>((Be==null?void 0:Be[(Be==null?void 0:Be.length)-1])===","&&(Be=Be==null?void 0:Be.slice(0,(Be==null?void 0:Be.length)-1)),Be)),aa!=null&&aa.find(Be=>(Be==null?void 0:Be.includes("Extent"))&&(Be==null?void 0:Be.includes("Row")))&&(aa!=null&&aa.find(Be=>(Be==null?void 0:Be.includes("Button"))&&(Be==null?void 0:Be.includes(","))))){let Be=aa==null?void 0:aa.find(El=>El==null?void 0:El.includes("@Button"));Be=(Ge=Be==null?void 0:Be.split("="))==null?void 0:Ge[1],Be=Be==null?void 0:Be.slice(1,(Be==null?void 0:Be.length)-1),Be=Be==null?void 0:Be.split(","),Be=Be==null?void 0:Be[(Be==null?void 0:Be.length)-1],Ke.push(Be)}}),Ke=[...new Set(Ke)],Ke=Ke==null?void 0:Ke.map(W=>({label:W,prop:W,type:"methodButton"}))}else if(Array.isArray(ha==null?void 0:ha[0])&&((qa=sa.getColumnChild(ha==null?void 0:ha[0]))!=null&&qa.some(Ue=>{var W;return(Ue==null?void 0:Ue.calculatorFilter)&&((W=Ue==null?void 0:Ue.calculatorFilter)==null?void 0:W.includes("Manual"))}))){let Ue=(P=(F=sa.getColumnChild(ha==null?void 0:ha[0]))==null?void 0:F.map(W=>W==null?void 0:W.calculatorFilter))==null?void 0:P.filter(W=>W&&(W==null?void 0:W.includes("Manual")));Ue==null||Ue.forEach(W=>{var Ge;let aa=ja.analyzeSplitToContent(W,",");if(aa=aa==null?void 0:aa.map(Be=>((Be==null?void 0:Be[(Be==null?void 0:Be.length)-1])===","&&(Be=Be==null?void 0:Be.slice(0,(Be==null?void 0:Be.length)-1)),Be)),aa!=null&&aa.find(Be=>(Be==null?void 0:Be.includes("Extent"))&&(Be==null?void 0:Be.includes("Row")))&&(aa!=null&&aa.find(Be=>(Be==null?void 0:Be.includes("Button"))&&(Be==null?void 0:Be.includes(","))))){let Be=aa==null?void 0:aa.find(El=>El==null?void 0:El.includes("@Button"));Be=(Ge=Be==null?void 0:Be.split("="))==null?void 0:Ge[1],Be=Be==null?void 0:Be.slice(1,(Be==null?void 0:Be.length)-1),Be=Be==null?void 0:Be.split(","),Be=Be==null?void 0:Be[(Be==null?void 0:Be.length)-1],Ke.push(Be)}}),Ke=[...new Set(Ke)],Ke=Ke==null?void 0:Ke.map(W=>({label:W,prop:W,type:"methodButton"}))}da.push({key:"extraButton",contents:ma}),da.push({key:"rowButton",contents:[...Ye,...Ke]}),y.compData=await _t(da,n),(X=y.compData)!=null&&X.find(Ue=>(Ue==null?void 0:Ue.key)==="tab")&&(y.tab=(se=(ie=y.compData)==null?void 0:ie.find(Ue=>(Ue==null?void 0:Ue.key)==="tab"))==null?void 0:se.contents),(ga=y.compData)!=null&&ga.find(Ue=>(Ue==null?void 0:Ue.key)==="step")&&(y.step=(Le=(ra=y.compData)==null?void 0:ra.find(Ue=>(Ue==null?void 0:Ue.key)==="step"))==null?void 0:Le.contents),(Ee=y.compData)!=null&&Ee.find(Ue=>(Ue==null?void 0:Ue.key)==="choice")&&(y.choice=(va=(Ea=y.compData)==null?void 0:Ea.find(Ue=>(Ue==null?void 0:Ue.key)==="choice"))==null?void 0:va.contents);let ye="",Oa=(Va=y==null?void 0:y.compData)==null?void 0:Va.filter(Ue=>(Ue==null?void 0:Ue.key)==="fixType");(Oa==null?void 0:Oa.length)>0&&r&&(ye=(Pa=Oa==null?void 0:Oa[0])==null?void 0:Pa.contents,y.comp=ye)}else if(b==="Form"){let Ya=[],da=(Ae=(Je=(me=c==null?void 0:c.contents)==null?void 0:me.find(Ce=>{var Ke;return(Ke=Ce==null?void 0:Ce.key)==null?void 0:Ke.includes("content")}))==null?void 0:Je.value)==null?void 0:Ae[0],ha=[],ma=Array.isArray((Xe=c==null?void 0:c.filter)==null?void 0:Xe.menuFilter)?(oe=c==null?void 0:c.filter)==null?void 0:oe.menuFilter:[];ma==null||ma.forEach(Ce=>{if(Ce!=null&&Ce.includes("@Param(Hide=Yes, prop=")){const Ke=Ce==null?void 0:Ce.match(/prop=([^,)]+)/);Ke!=null&&Ke[1]&&ha.push(Ke==null?void 0:Ke[1])}});let Ye=(ka=(ea=(We=(de=(_e=c==null?void 0:c.contents)==null?void 0:_e.find(Ce=>{var Ke;return(Ke=Ce==null?void 0:Ce.key)==null?void 0:Ke.includes("struct")}))==null?void 0:de.value)==null?void 0:We[0])==null?void 0:ea.结构)==null?void 0:ka.contents,Xa=(Pe=Ye==null?void 0:Ye.map(Ce=>(Ce.value=da==null?void 0:da[Ce==null?void 0:Ce.prop],Ce)))==null?void 0:Pe.filter(Ce=>(Ce==null?void 0:Ce.prop)!=="sort"&&(Ce==null?void 0:Ce.prop)!=="relatedId");Xa=Xa==null?void 0:Xa.map(Ce=>(ha!=null&&ha.includes(Ce==null?void 0:Ce.prop)&&(Ce.isHideInForm=!0),Ce)),Ya.push({key:"filter",contents:(Ba=(Ha=(fa=(xa=(ba=c==null?void 0:c.contents)==null?void 0:ba.find(Ce=>{var Ke;return(Ke=Ce==null?void 0:Ce.key)==null?void 0:Ke.includes("struct")}))==null?void 0:xa.value)==null?void 0:fa[0])==null?void 0:Ha.引用)==null?void 0:Ba.contents}),Ya.push({key:"formContent",contents:Xa}),Ya.push({key:"paramHideProps",contents:ha}),y.compData=await cp(Ya),(Ia=y.compData)!=null&&Ia.find(Ce=>(Ce==null?void 0:Ce.key)==="tab")&&(y.tab=(Ne=($a=y.compData)==null?void 0:$a.find(Ce=>(Ce==null?void 0:Ce.key)==="tab"))==null?void 0:Ne.contents),(sl=y.compData)!=null&&sl.find(Ce=>(Ce==null?void 0:Ce.key)==="step")&&(y.step=(Gl=(yl=y.compData)==null?void 0:yl.find(Ce=>(Ce==null?void 0:Ce.key)==="step"))==null?void 0:Gl.contents)}return y});return o=await Promise.all(s),o},mp=L.useLoginState(L.pinia),{loginUserInfo:xo}=L.storeToRefs(mp),ft=async(l,n,r="Manual",o=[])=>{var v;let s=l,c;Array.isArray(n==null?void 0:n[0])?c=sa.getColumnChild(n==null?void 0:n[0]):c=n;let b=(v=c==null?void 0:c.filter(y=>{var u;return(y==null?void 0:y.calculatorFilter)&&((u=y==null?void 0:y.calculatorFilter)==null?void 0:u.includes(r))||(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})),p=s==null?void 0:s.map(async y=>(y=await wp(y,b,c,r,s,o),y));return p=await Promise.all(p),p},yp=l=>{let n=l==null?void 0:l.contents,r=l==null?void 0:l.valueString,o=l==null?void 0:l.prop,s=l==null?void 0:l.headers,c;return Array.isArray(n)&&(n==null?void 0:n.length)!==1&&(n=sa.getValueToObjectValue(n,sa.getColumnContents(s))),r==null||r.forEach(b=>{var p;if(n!=null&&n[b]){let v=n==null?void 0:n[b];c=c?v?ja.isEqual(v.toString(),c.toString()):void 0:v}else{let v=(p=s==null?void 0:s.find(u=>(u==null?void 0:u.label)===b))==null?void 0:p.prop,y=(n==null?void 0:n[v])??0;c=c?y?ja.isEqual(y.toString(),c.toString()):void 0:y}}),n[o]=c===void 0?void 0:c?1:0,n},br=l=>{const[n,r,o]=L.cloneDeep(l).split(":").map(Number);let s=+l;return!l||!(l!=null&&l.includes(":"))?s:(n??0)*3600+(r??0)*60+(o??0)},Gn=l=>{const n=c=>c.toString().padStart(2,"0"),r=Math.floor(l/3600),o=Math.floor(l%3600/60),s=l%60;return`${n(r)}:${n(o)}:${parseInt(n(s))}`},gp=l=>{let n=l==null?void 0:l.contents,r=l==null?void 0:l.valueString,o=l==null?void 0:l.prop,s=l==null?void 0:l.headers,c=l==null?void 0:l.typeString,b=l==null?void 0:l.allContents,p=0;if(Array.isArray(n)&&(n==null?void 0:n.length)!==1&&(n=sa.getValueToObjectValue(n,sa.getColumnContents(s))),r==null||r.forEach(v=>{var y,u,_,N,$,S,q,O,M;if(n!=null&&n[v]){if(c==="Row")if(!((u=((y=n==null?void 0:n[v])==null?void 0:y.toString())??"")!=null&&u.includes(":"))&&!((_=p==null?void 0:p.toString())!=null&&_.includes(":"))){let Z=+(n==null?void 0:n[v]);p=p+Z}else p=br(p.toString())+br((N=n==null?void 0:n[v])==null?void 0:N.toString()),p=Gn(p)}else if(c==="Row"){let Z=($=s==null?void 0:s.find(C=>(C==null?void 0:C.label)===v))==null?void 0:$.prop;if(!((q=Number.isNaN(n==null?void 0:n[Z])?"":(S=n==null?void 0:n[Z])==null?void 0:S.toString())!=null&&q.includes(":"))&&!((O=p==null?void 0:p.toString())!=null&&O.includes(":"))){let C=+((n==null?void 0:n[Z])??0);p=p+C}else p=br(p==null?void 0:p.toString())+br((M=(n==null?void 0:n[Z])??0)==null?void 0:M.toString()),p=Gn(p)}}),c==="Column"){let v=[];r==null||r.forEach(y=>{let u=b==null?void 0:b.map(_=>{var N;return(_==null?void 0:_[y])??(_==null?void 0:_[(N=s==null?void 0:s.find($=>($==null?void 0:$.label)===y))==null?void 0:N.prop])});v=[...v,...u]}),p=v.reduce((y,u)=>{let _=0;Number.isNaN(y)||(_=+y);let N=0;return Number.isNaN(u)||(N=+u),_+N},0)}return n[o]=p,n},bp=l=>{let n=l==null?void 0:l.contents,r=l==null?void 0:l.valueString,o=l==null?void 0:l.prop,s=l==null?void 0:l.headers,c=l==null?void 0:l.typeString,b=l==null?void 0:l.allContents,p=0;if(Array.isArray(n)&&(n==null?void 0:n.length)!==1&&(n=sa.getValueToObjectValue(n,sa.getColumnContents(s))),r==null||r.forEach(v=>{var y,u,_,N,$,S,q;if(n!=null&&n[v]){if(c==="Row")if(!((u=(y=n==null?void 0:n[v])==null?void 0:y.toString())!=null&&u.includes(":"))&&!((_=p==null?void 0:p.toString())!=null&&_.includes(":"))){let O=+(n==null?void 0:n[v]);p=p===0?p+O:p-O}else p=p===0?br(p.toString())+br(n==null?void 0:n[v].toString()):br(p.toString())-br(n==null?void 0:n[v].toString()),p=Gn(p)}else if(c==="Row"){let O=(N=s==null?void 0:s.find(M=>(M==null?void 0:M.label)===v))==null?void 0:N.prop;if(!((S=Number.isNaN(n==null?void 0:n[O])?"":($=n==null?void 0:n[O])==null?void 0:$.toString())!=null&&S.includes(":"))&&!((q=p==null?void 0:p.toString())!=null&&q.includes(":"))){let M=+((n==null?void 0:n[O])??0);p=p===0?p+M:p-M}else p=p===0?br(p.toString())+br(((n==null?void 0:n[O])??0).toString()):br(p.toString())-br(((n==null?void 0:n[O])??0).toString()),p=Gn(p)}}),c==="Column"){let v=[];r==null||r.forEach(y=>{let u=b==null?void 0:b.map(_=>{var N;return(_==null?void 0:_[y])??(_==null?void 0:_[(N=s==null?void 0:s.find($=>($==null?void 0:$.label)===y))==null?void 0:N.prop])});v=[...v,...u]}),p=v.reduce((y,u)=>{let _=0;Number.isNaN(y)||(_=+y);let N=0;return Number.isNaN(u)||(N=+u),_-N},0)}return n[o]=p,n},kp=l=>{let n=l==null?void 0:l.contents,r=l==null?void 0:l.valueString,o=l==null?void 0:l.prop,s=l==null?void 0:l.headers,c=l==null?void 0:l.typeString,b=l==null?void 0:l.allContents,p=0;if(Array.isArray(n)&&(n==null?void 0:n.length)!==1&&(n=sa.getValueToObjectValue(n,sa.getColumnContents(s))),r==null||r.forEach(v=>{var y,u,_,N,$,S,q;if(n!=null&&n[v]){if(c==="Row")if(!((u=(y=n==null?void 0:n[v])==null?void 0:y.toString())!=null&&u.includes(":"))&&!((_=p==null?void 0:p.toString())!=null&&_.includes(":"))){let O=+(n==null?void 0:n[v]);p=p===0?p+O:p*O}else p=p===0?br(p.toString())+br(n==null?void 0:n[v].toString()):br(p.toString())*br(n==null?void 0:n[v].toString()),p=Gn(p)}else if(c==="Row"){let O=(N=s==null?void 0:s.find(M=>(M==null?void 0:M.label)===v))==null?void 0:N.prop;if(!(n!=null&&n[O]))p=void 0;else if(!((S=Number.isNaN(n==null?void 0:n[O])?"":($=n==null?void 0:n[O])==null?void 0:$.toString())!=null&&S.includes(":"))&&!((q=p==null?void 0:p.toString())!=null&&q.includes(":"))){let M=+((n==null?void 0:n[O])??0);p=p===0?p+M:p*M}else p=p===0?br(p.toString())+br(((n==null?void 0:n[O])??0).toString()):br(p.toString())*br(((n==null?void 0:n[O])??0).toString()),p=Gn(p)}}),c==="Column"){let v=[];r==null||r.forEach(y=>{let u=b==null?void 0:b.map(_=>{var N;return(_==null?void 0:_[y])??(_==null?void 0:_[(N=s==null?void 0:s.find($=>($==null?void 0:$.label)===y))==null?void 0:N.prop])});v=[...v,...u]}),p=v.reduce((y,u)=>{let _=0;Number.isNaN(y)||(_=+y);let N=0;return Number.isNaN(u)||(N=+u),_*N},0)}return n[o]=p,n},xp=l=>{let n=l==null?void 0:l.contents,r=l==null?void 0:l.valueString,o=l==null?void 0:l.prop,s=l==null?void 0:l.headers,c=l==null?void 0:l.typeString,b=l==null?void 0:l.allContents,p=0;if(Array.isArray(n)&&(n==null?void 0:n.length)!==1&&(n=sa.getValueToObjectValue(n,sa.getColumnContents(s))),r==null||r.forEach(v=>{var y,u,_,N,$,S,q;if(n!=null&&n[v]){if(c==="Row")if(!((u=(y=n==null?void 0:n[v])==null?void 0:y.toString())!=null&&u.includes(":"))&&!((_=p==null?void 0:p.toString())!=null&&_.includes(":"))){let O=+(n==null?void 0:n[v]);p=p===0?p+O:p/O}else p=p===0?br(p.toString())+br(n==null?void 0:n[v].toString()):br(p.toString())/br(n==null?void 0:n[v].toString()),p=Gn(p)}else if(c==="Row"){let O=(N=s==null?void 0:s.find(M=>(M==null?void 0:M.label)===v))==null?void 0:N.prop;if(!((S=Number.isNaN(n==null?void 0:n[O])?"":($=n==null?void 0:n[O])==null?void 0:$.toString())!=null&&S.includes(":"))&&!((q=p==null?void 0:p.toString())!=null&&q.includes(":"))){let M=+((n==null?void 0:n[O])??0);p=p===0?p+M:p/M}else p=p===0?br(p.toString())+br(((n==null?void 0:n[O])??0).toString()):br(p.toString())/br(((n==null?void 0:n[O])??0).toString()),p=Gn(p)}}),c==="Column"){let v=[];r==null||r.forEach(y=>{let u=b==null?void 0:b.map(_=>{var N;return(_==null?void 0:_[y])??(_==null?void 0:_[(N=s==null?void 0:s.find($=>($==null?void 0:$.label)===y))==null?void 0:N.prop])});v=[...v,...u]}),p=v.reduce((y,u)=>{let _=0;Number.isNaN(y)||(_=+y);let N=0;return Number.isNaN(u)||(N=+u),_/N},0)}return n[o]=p.toFixed(2),n},di={Sum:gp,Substract:bp,Multiple:kp,Divide:xp,Compare:yp},wp=async(l,n,r,o="Auto",s,c=[])=>{var u,_,N,$,S,q,O,M,Z,C,w,E,m,g,j,V,G,he,Te,Se,Q;let b=l,p=[],v=await L.getPageDataApi({platId:parseInt((u=xo==null?void 0:xo.value)==null?void 0:u.plat_id),pageName:"menu"});v=($=(N=(_=v==null?void 0:v.data)==null?void 0:_.result)==null?void 0:N.filter(fe=>(fe==null?void 0:fe.property_name)===""))==null?void 0:$[0];let y=[];if(v!=null&&v.object_name){v=v==null?void 0:v.object_name;let fe=await L.getPageDataApi({platId:parseInt((S=xo==null?void 0:xo.value)==null?void 0:S.plat_id),pageName:v});fe=(C=(Z=(M=(O=(q=fe==null?void 0:fe.data)==null?void 0:q.result)==null?void 0:O[0])==null?void 0:M.contents)==null?void 0:Z.find(J=>{var ce;return(ce=J==null?void 0:J.key)==null?void 0:ce.includes("content")}))==null?void 0:C.value,p=(w=fe==null?void 0:fe.map(J=>({functionName:J==null?void 0:J.函数名称,functionContent:J==null?void 0:J.输出值})))==null?void 0:w.filter(J=>(J==null?void 0:J.functionContent)!==""),p==null||p.forEach(J=>{y.push(J.functionName),di[J.functionName]=new Function("return "+J.functionContent)()})}if((n==null?void 0:n.length)===0)return b;for(let fe in n){let J=(E=n==null?void 0:n[fe])==null?void 0:E.functionName;const ce=di==null?void 0:di[J];let He=(m=n==null?void 0:n[fe])==null?void 0:m.methods;if(He=ja.analyzeSplitToContent(He,","),(g=He==null?void 0:He.find(Ca=>Ca==null?void 0:Ca.includes("@Type")))!=null&&g.includes(o)||(He==null?void 0:He.length)===0){let Ca=((G=(V=(j=He==null?void 0:He.find(ne=>ne==null?void 0:ne.includes("@Extent")))==null?void 0:j.replace(":","="))==null?void 0:V.split("="))==null?void 0:G[1])??[];if(await new Function("return ")(),(y==null?void 0:y.length)>0&&y.find(ne=>ne===J)){let ne="";try{let re=(he=n==null?void 0:n[fe])==null?void 0:he.functionRelatedWords,be=(c==null?void 0:c.length)>0?c==null?void 0:c.map(De=>{var pa;return De==null?void 0:De[(pa=n==null?void 0:n[fe])==null?void 0:pa.prop]}):["0"];be=be==null?void 0:be.map(De=>De==null?void 0:De.slice((De==null?void 0:De.length)-5,De==null?void 0:De.length)),be=be==null?void 0:be.map(De=>ja.isNumber(parseInt(De))&&parseInt(De)?parseInt(De):0);let ue=Math.max(...be);re=re==null?void 0:re.map(De=>{if(De!=null&&De.includes("'"))return De==null?void 0:De.replaceAll("'","");if(De!=null&&De.includes("@"))return ue+1;{let pa=Object.keys(b);return De=(b==null?void 0:b[De])??(b==null?void 0:b[pa==null?void 0:pa.find(_a=>_a==null?void 0:_a.includes("."+De))]),De}}),ne=ce(...re)}catch(re){Qa.ElMessage.warning("关联数据出现错误,"+re.message)}let D=(Te=n==null?void 0:n[fe])==null?void 0:Te.prop;b[D]=ne}else b=ce({contents:b,valueString:(Se=n==null?void 0:n[fe])==null?void 0:Se.functionRelatedWords,prop:(Q=n==null?void 0:n[fe])==null?void 0:Q.prop,headers:r,typeString:Ca,allContents:s})}}return b},_p=L.useLoginState(L.pinia),{loginUserInfo:Xr}=L.storeToRefs(_p),Ep=L.useMenuState(L.pinia),{activeMenuPath:ns,currentMenuPath:pi}=L.storeToRefs(Ep),Qs=L.useUnit(L.pinia);let os="$R";const{selectTitle:So}=L.storeToRefs(Qs),ec=async(l,n)=>{var b,p,v,y,u,_,N,$,S,q,O,M,Z;let r=ns.value,o="",s=((b=So==null?void 0:So.value)==null?void 0:b.find(C=>(C==null?void 0:C.condition)==="child"&&!(C!=null&&C.relatedContent)))??void 0;(l==null?void 0:l.length)===0||(r=n?r:(p=l==null?void 0:l[0])==null?void 0:p.object_name,o=(v=l==null?void 0:l[0])==null?void 0:v.father_name);let c=[];if(o!==""){let C=o;(C==null?void 0:C[(C==null?void 0:C.length)-1])==="/"&&(C=C==null?void 0:C.slice(0,(C==null?void 0:C.length)-1));let w=await Wr(C,!1);w=(y=w==null?void 0:w[0])==null?void 0:y.compData;let E=(u=w==null?void 0:w.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:u.contents;E=((_=E==null?void 0:E.find(g=>g==null?void 0:g.isMainKey))==null?void 0:_.prop)??((N=E==null?void 0:E[0])==null?void 0:N.prop);let m=(S=($=w==null?void 0:w.find(g=>(g==null?void 0:g.key)==="tableContents"))==null?void 0:$.contents)==null?void 0:S.map(g=>({label:g==null?void 0:g[E],value:g==null?void 0:g[E]}));c=(q=o==null?void 0:o.split("/"))==null?void 0:q.map(g=>(g===""?s?(s.isShow=!0,g=s):g={value:g,condition:"child",options:m,parentContent:(o==null?void 0:o[(o==null?void 0:o.length)-1])==="/"?o==null?void 0:o.slice(0,(o==null?void 0:o.length)-1):o,isShow:!0}:g={condition:"parent",value:g.trim(),isShow:!0},g))}if(r!==""){let C=(O=r==null?void 0:r.split("/"))==null?void 0:O.map(w=>(w={condition:"normal",value:w.trim(),isShow:!0},w));((M=C==null?void 0:C[0])==null?void 0:M.value)===((Z=c==null?void 0:c[0])==null?void 0:Z.value)&&(C=C==null?void 0:C.filter((w,E)=>E!==0)),c=[...c??[],...C??[]]}o===""&&s&&((s==null?void 0:s.parentContent)!==ns.value&&(s.isShow=!1),(s==null?void 0:s.value)!==""&&c.push(s)),Qs.setSelectTitle(c)},Sp=async l=>{var c,b,p,v,y,u,_,N,$;let n=await L.getPageDataApi({platId:parseInt((c=Xr==null?void 0:Xr.value)==null?void 0:c.plat_id),pageName:"menu"}),r=(b=n==null?void 0:n.data)==null?void 0:b.result,o=(u=(y=(v=(p=l==null?void 0:l.filter(S=>(S==null?void 0:S.comp)==="Table"))==null?void 0:p[0])==null?void 0:v.compData)==null?void 0:y.find(S=>(S==null?void 0:S.key)==="filter"))==null?void 0:u.contents;o=($=(N=(_=o==null?void 0:o.replace("(",os))==null?void 0:_.split(os))==null?void 0:N[0])==null?void 0:$.replaceAll(":","/");let s=r==null?void 0:r.filter(S=>{var q;return(S==null?void 0:S.object_name)===pi.value+"/"||((q=pi.value)==null?void 0:q.includes(o))&&o+"/"===(S==null?void 0:S.object_name)});return(s==null?void 0:s.length)>0&&(l=l==null?void 0:l.map(S=>{var q;return(S==null?void 0:S.comp)==="Table"&&(S.compData=(q=S==null?void 0:S.compData)==null?void 0:q.map(O=>{var M,Z,C;return(O==null?void 0:O.key)==="header"&&(Array.isArray((M=O.contents)==null?void 0:M[0])?O.contents[0]=(C=O.contents[0])==null?void 0:C.map((w,E)=>{var m;return E===0&&(w.isExistChild=!0,(m=pi.value)!=null&&m.includes(o)&&(w.fatherPath=o)),w}):O.contents=(Z=O.contents)==null?void 0:Z.map((w,E)=>{var m;return E===0&&(w.isExistChild=!0,(m=pi.value)!=null&&m.includes(o)&&(w.fatherPath=o)),w})),O})),S})),l},Wr=async(l,n,r={})=>{var b,p,v,y,u,_,N,$,S,q,O,M;let o=await L.getPageDataApi({platId:parseInt((b=Xr==null?void 0:Xr.value)==null?void 0:b.plat_id),pageName:l}),s=(p=o==null?void 0:o.data)==null?void 0:p.result;if((s==null?void 0:s.length)===0&&(r!=null&&r.originPath)&&(r==null?void 0:r.originPath)!==l){let Z=await L.getPageDataApi({platId:parseInt((v=Xr==null?void 0:Xr.value)==null?void 0:v.plat_id),pageName:r==null?void 0:r.originPath});if(((u=(y=Z==null?void 0:Z.data)==null?void 0:y.result)==null?void 0:u.length)>0){let C=await rs((_=Z==null?void 0:Z.data)==null?void 0:_.result,r,!1);C=C==null?void 0:C.map(async m=>{var V,G,he,Te,Se,Q,fe,J,ce,He,Ca,ne,D,re,be,ue,De,pa,_a,Ga,le,la,Ve,wa,Fe,ze,Re,Ze,Ja,qa;let g=[],j=(V=Object.keys(m))==null?void 0:V.filter(F=>F==null?void 0:F.includes("name"));for(let F in m)j!=null&&j.find(P=>P===F)&&g.push(m==null?void 0:m[F]);if(g=g.reverse(),(m==null?void 0:m.comp)==="Table"){let F=(Te=(he=(G=m==null?void 0:m.compData)==null?void 0:G.find(X=>(X==null?void 0:X.key)==="tableContents"))==null?void 0:he.contents)==null?void 0:Te.map(X=>{let ie={};for(let se in X)se!=="id"&&se!=="create_time"&&se!=="update_time"&&se!=="sort"&&se!=="create_user_id"&&se!=="update_user_id"&&se!=="department_id"&&se!=="relatedId"&&(ie[se]=X==null?void 0:X[se]);return X=Object.values(ie),X}),P=(Q=(Se=m==null?void 0:m.compData)==null?void 0:Se.find(X=>(X==null?void 0:X.key)==="header"))==null?void 0:Q.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"}),(fe=P[0])!=null&&fe.find(X=>(X==null?void 0:X.prop)==="disabled")&&(P[0]=(J=P[0])==null?void 0:J.filter(X=>(X==null?void 0:X.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(X=>(X==null?void 0:X.prop)==="disabled")&&(P=P==null?void 0:P.filter(X=>(X==null?void 0:X.prop)!=="disabled"),P.unshift({label:"",prop:"disabled",sortable:!1}))),P!=null&&P.some(X=>{var ie;return(X==null?void 0:X.calculatorFilter)&&((ie=X==null?void 0:X.calculatorFilter)==null?void 0:ie.includes("Auto"))})&&(F=await ft(F,P,"Auto"),F=F==null?void 0:F.map(X=>Object.values(X))),m!=null&&m.fatherSyncContents){Array.isArray((ce=m==null?void 0:m.fatherSyncContents)==null?void 0:ce[0])&&(m.fatherSyncContents=(He=m==null?void 0:m.fatherSyncContents)==null?void 0:He[0]);let X=(Ca=So.value)==null?void 0:Ca.find(ie=>(ie==null?void 0:ie.condition)==="child");m.fatherSyncContents=(ne=m==null?void 0:m.fatherSyncContents)==null?void 0:ne.map(ie=>{var se,ga,ra,Le,Ee,Ea;return((ga=ie==null?void 0:ie.menus)==null?void 0:ga[((se=ie==null?void 0:ie.menus)==null?void 0:se.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"!==(ie==null?void 0:ie.menus)?ie.menus=(ie==null?void 0:ie.menus)+(X==null?void 0:X.value):((Le=ie==null?void 0:ie.menus)==null?void 0:Le[((ra=ie==null?void 0:ie.menus)==null?void 0:ra.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"===(ie==null?void 0:ie.menus)&&(ie.menus=(Ea=ie.menus)==null?void 0:Ea.slice(0,((Ee=ie.menus)==null?void 0:Ee.length)-1)),ie})}if(m!=null&&m.sonSyncContents){Array.isArray((D=m==null?void 0:m.sonSyncContents)==null?void 0:D[0])&&(m.sonSyncContents=(re=m==null?void 0:m.sonSyncContents)==null?void 0:re[0]);let X=(be=So.value)==null?void 0:be.find(ie=>(ie==null?void 0:ie.condition)==="child");m.sonSyncContents=(ue=m==null?void 0:m.sonSyncContents)==null?void 0:ue.map(ie=>{var se,ga,ra,Le,Ee,Ea;return((ga=ie==null?void 0:ie.menus)==null?void 0:ga[((se=ie==null?void 0:ie.menus)==null?void 0:se.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"!==(ie==null?void 0:ie.menus)?ie.menus=(ie==null?void 0:ie.menus)+(X==null?void 0:X.value):((Le=ie==null?void 0:ie.menus)==null?void 0:Le[((ra=ie==null?void 0:ie.menus)==null?void 0:ra.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"===(ie==null?void 0:ie.menus)&&(ie.menus=(Ea=ie.menus)==null?void 0:Ea.slice(0,((Ee=ie.menus)==null?void 0:Ee.length)-1)),ie})}if(m!=null&&m.relatedQuotes){Array.isArray((De=m==null?void 0:m.relatedQuotes)==null?void 0:De[0])&&(m.relatedQuotes=(pa=m==null?void 0:m.relatedQuotes)==null?void 0:pa[0]);let X=(_a=So.value)==null?void 0:_a.find(ie=>(ie==null?void 0:ie.condition)==="child");m.relatedQuotes=(Ga=m==null?void 0:m.relatedQuotes)==null?void 0:Ga.map(ie=>{var se,ga,ra,Le,Ee,Ea;return((ga=ie==null?void 0:ie.menus)==null?void 0:ga[((se=ie==null?void 0:ie.menus)==null?void 0:se.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"!==(ie==null?void 0:ie.menus)?ie.menus=(ie==null?void 0:ie.menus)+(X==null?void 0:X.value):((Le=ie==null?void 0:ie.menus)==null?void 0:Le[((ra=ie==null?void 0:ie.menus)==null?void 0:ra.length)-1])==="/"&&(X==null?void 0:X.parentContent)+"/"===(ie==null?void 0:ie.menus)&&(ie.menus=(Ea=ie.menus)==null?void 0:Ea.slice(0,((Ee=ie.menus)==null?void 0:Ee.length)-1)),ie})}m={filter:(la=(le=m==null?void 0:m.compData)==null?void 0:le.find(X=>(X==null?void 0:X.key)==="filter"))==null?void 0:la.contents,key:m==null?void 0:m.comp,name:g,tableColumns:P,tableContents:F,menuFilter:m==null?void 0:m.menuFilter,fatherSyncContents:m==null?void 0:m.fatherSyncContents,relatedQuotes:m==null?void 0:m.relatedQuotes,sonSyncContents:m==null?void 0:m.sonSyncContents}}else{let F=(Fe=(wa=(Ve=m==null?void 0:m.compData)==null?void 0:Ve.find(X=>(X==null?void 0:X.key)==="formContent"))==null?void 0:wa.contents)==null?void 0:Fe.map(X=>(X==null?void 0:X.value)??"");F=[F];let P=(Ze=(Re=(ze=m==null?void 0:m.compData)==null?void 0:ze.find(X=>(X==null?void 0:X.key)==="formContent"))==null?void 0:Re.contents)==null?void 0:Ze.map(X=>(X.value="",X));m={contents:F,filter:(qa=(Ja=m==null?void 0:m.compData)==null?void 0:Ja.find(X=>(X==null?void 0:X.key)==="filter"))==null?void 0:qa.contents,key:m==null?void 0:m.comp,name:g,value:P,fatherSyncContents:m==null?void 0:m.fatherSyncContents,relatedQuotes:m==null?void 0:m.relatedQuotes,sonSyncContents:m==null?void 0:m.sonSyncContents}}return m.isShow=!1,m}),C=await Promise.all(C);let w=[{key:"menuPath",contents:[{path:l,fatherPath:(S=($=(N=Z==null?void 0:Z.data)==null?void 0:N.result)==null?void 0:$[0])==null?void 0:S.father_name,isShow:!1}]},{key:l,contents:C}];await L.createPlatFormDataApi({platId:parseInt((q=Xr==null?void 0:Xr.value)==null?void 0:q.plat_id),changeData:w});let E=await L.getPageDataApi({platId:parseInt((O=Xr==null?void 0:Xr.value)==null?void 0:O.plat_id),pageName:l});s=(M=E==null?void 0:E.data)==null?void 0:M.result}}n&&await ec(s,!!(r!=null&&r.originPath));let c=await rs(s,r);return n&&(c=await Sp(c)),c==null?void 0:c.filter(Z=>Z)},is=async l=>{var o,s,c,b,p,v,y,u,_,N,$;let n=(o=l==null?void 0:l.menus)==null?void 0:o.join("/");l!=null&&l.endChildMenu&&(l==null?void 0:l.endChildMenu)!==""&&(n==null?void 0:n[(n==null?void 0:n.length)-1])==="/"&&(n=n+(l==null?void 0:l.endChildMenu)),(n==null?void 0:n[(n==null?void 0:n.length)-1])==="/"&&(n=n+((c=(s=l.value)==null?void 0:s.split(" "))==null?void 0:c[0]));let r=await Wr(n,!1);if(r=(b=r==null?void 0:r.filter(S=>{var q,O;return(S==null?void 0:S.name)===((O=l==null?void 0:l.groups)==null?void 0:O[((q=l==null?void 0:l.groups)==null?void 0:q.length)-1])}))==null?void 0:b[0],(v=(p=r==null?void 0:r.compData)==null?void 0:p.find(S=>(S==null?void 0:S.key)==="tableContents"))!=null&&v.contents){r=(u=(y=r==null?void 0:r.compData)==null?void 0:y.find(q=>(q==null?void 0:q.key)==="tableContents"))==null?void 0:u.contents;let S=((_=l==null?void 0:l.words)==null?void 0:_[0])??(l==null?void 0:l.prop);return r=r==null?void 0:r.filter(q=>{var O,M,Z,C;return(q==null?void 0:q[l!=null&&l.endChildMenu?S:(O=l==null?void 0:l.words)==null?void 0:O[0]])===(l!=null&&l.relatedWords&&((M=l==null?void 0:l.relatedWords)==null?void 0:M.length)>0?(C=(Z=l.value)==null?void 0:Z.split(" "))==null?void 0:C[0]:l.value)}),r==null?void 0:r[0]}else{let S=($=(N=r==null?void 0:r.compData)==null?void 0:N.find(O=>(O==null?void 0:O.key)==="formContent"))==null?void 0:$.contents,q={};return S==null||S.forEach(O=>{q[O.prop]=O.value}),q}},Cp={key:0,class:"extra-button-content"},Dp={class:"table-operator-wrap"},Bp={key:0,class:"extra-button-filter"},Np={key:1,class:"extra-header"},Tp=["onClick"],Ap={class:"table-op-text"},zp={class:"table-op-text"},Mp={class:"drop-menu",style:{width:"120px"}},Ip=["onClick"],Op={key:0},Lp={key:1},$p=["onClick"],Rp={class:"table-op-text"},Vp={key:1,class:"extra-button-content tabs-button-wrapper"},Pp={class:"table-operator-wrap"},Fp={class:"extra-button-filter"},jp={key:0,class:"extra-header"},Hp={class:"table-op-action"},Up={class:"table-op-text"},qp={class:"drop-menu",style:{width:"120px"}},Wp={key:0},Kp={key:1},Gp=["onClick"],Yp={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:n}){const r=n,o=l,s=a.ref(""),c=a.ref(!1),b=a.ref([]),p=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(m,g){return m.map(j=>{const V={...j};return g.forEach(G=>{delete V[G]}),V})}function u(m){if(!m||m.t!=="n")return(m==null?void 0:m.v)??"";const g=m.v;if(m.z){const j=String(m.z).toLowerCase(),V=["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 Te of V)if(j.includes(Te))return _(g);const G=/[ymdhms]/.test(j),he=/^[0#\.\,\s]+$/.test(j.replace(/[\\\/\-:]/g,""));if(G&&!he)return _(g)}if(g>=1&&g<=73050){if(g<5e3)return g;if(g>=5e3&&g<4e4){const j=Math.floor((g-25569)/365.25)+1970;return j>=1970&&j<=2e3&&m.z&&/[ymd]/.test(String(m.z).toLowerCase())?_(g):g}if(g>=4e4)return _(g)}return g}function _(m){if(typeof m!="number")return m;try{const g=new Date((m-25569)*86400*1e3);if(isNaN(g.getTime()))return m;const j=g.getFullYear(),V=String(g.getMonth()+1).padStart(2,"0"),G=String(g.getDate()).padStart(2,"0");return`${j}-${V}-${G}`}catch{return m}}const N=m=>{const g=m.raw;if(!g)return;const j=new FileReader;j.onload=V=>{try{const G=new Uint8Array(V.target.result),he=sa.readSync(G,{type:"array"}),Te=he.SheetNames[0],Se=he.Sheets[Te],fe=sa.utils.decode_range(Se["!ref"]).e.c+1,J=new Array(fe).fill(""),ce=[];for(const re in Se){if(re[0]==="!")continue;const{r:be,c:ue}=sa.utils.decode_cell(re),De=Se[re];let pa=u(De);if((pa==null||pa==="")&&(pa=""),be===0)J[ue]=pa;else{if(!ce[be-1]){ce[be-1]={};for(let _a=0;_a<fe;_a++)ce[be-1][`col_${_a}`]=""}ce[be-1][`col_${ue}`]=pa}}for(let re=0;re<fe;re++)J[re]===void 0&&(J[re]="");const He=[];for(let re=0;re<J.length;re++)(!J[re]||J[re].toString().trim()==="")&&He.push(re);let Ca,ne;(He==null?void 0:He.length)>0?(Qa.ElMessage.warning("存在键为空的列,已自动过滤,请检查补充"),Ca=J.filter((re,be)=>!He.includes(be)),ne=y(ce,He==null?void 0:He.map(re=>`col_${re}`))):(Ca=J,ne=ce);const D=ce==null?void 0:ce[0];if(!(D!=null&&D.hasOwnProperty("col_0")))return Qa.ElMessage.error("导入的数据列不匹配,请检查是否错位");r("getImportData",Ca,ne)}catch(G){throw Qa.ElMessage.error(G.message),new Error(G.message)}},j.readAsArrayBuffer(g)},$=m=>{var j;const g=(j=b.value)==null?void 0:j.reduce((V,G,he)=>(he===0?V[G.label]=m:V[G.label]=G==null?void 0:G.value,V),{});r("filter",g,m,!0)},S=(m,g={})=>{r("buttonClick",m,"",g)},q=m=>{var g,j;b.value=(j=(g=sa.getColumnChild(L.cloneDeep(m)))==null?void 0:g.filter(V=>(V==null?void 0:V.label)!==""&&(V==null?void 0:V.label)!=="操作"))==null?void 0:j.map(V=>({label:(V==null?void 0:V.label)??"",value:"",name:(V==null?void 0:V.prop)??"",isFormColHidden:V==null?void 0:V.isTableColHidden,width:2,prop:(V==null?void 0:V.prop)??""}))},O=a.ref(!1),M=m=>{var g;if((m==null?void 0:m.buttonName)==="确认"&&(r("filter",m==null?void 0:m.content),O.value=(m==null?void 0:m.content)&&Object.values(m==null?void 0:m.content).length>0),(m==null?void 0:m.buttonName)==="清空"){const j=L.cloneDeep(m==null?void 0:m.content);for(const V in j)j[V]="";b.value=(g=b.value)==null?void 0:g.map(V=>({...V,value:""})),r("filter",j),O.value=!1}c.value=!1},Z=()=>{c.value=!c.value},C=()=>{var g,j;b.value=(g=b.value)==null?void 0:g.map(V=>({...V,value:""}));const m=(j=b.value)==null?void 0:j.reduce((V,G)=>(V[G.label]=G.value,V),{});r("filter",m)},w=a.ref(null);let E;return E=m=>{var G;if(!c.value)return;const g=(G=w==null?void 0:w.value)==null?void 0:G.$el,j=g==null?void 0:g.contains(m.target);let V=!1;document.querySelectorAll(".el-popover, .el-popper").forEach(he=>{he.contains(m.target)&&(V=!0)}),!j&&!V&&(c.value=!1)},a.onMounted(()=>{document.addEventListener("click",E),q(o.columns)}),a.onBeforeUnmount(()=>{document.removeEventListener("click",E)}),a.watch(()=>o.columns,()=>{q(o.columns)},{deep:!0,immediate:!0}),(m,g)=>{var Se,Q,fe,J,ce,He,Ca,ne;const j=a.resolveComponent("el-icon"),V=a.resolveComponent("svg-icon"),G=a.resolveComponent("el-input"),he=a.resolveComponent("el-upload"),Te=a.resolveComponent("el-button");return l.pageLayout==="vertical"?(a.openBlock(),a.createElementBlock("div",Cp,[a.createElementVNode("div",{class:a.normalizeClass(l.compName?"table-name-wrap":""),style:a.normalizeStyle({background:(o==null?void 0:o.level)>1?"transparent":"var(--ssgroup-background)",paddingLeft:((o==null?void 0:o.level)-1)*12+"px",fontWeight:600-((o==null?void 0:o.level)-1)*100>=400?600-((o==null?void 0:o.level)-1)*100:400,fontSize:17-(o==null?void 0:o.level)>=14?17-(o==null?void 0:o.level)+"px":"14px"})},a.toDisplayString(l.compName),7),a.createElementVNode("div",Dp,[o!=null&&o.filterShow?(a.openBlock(),a.createElementBlock("div",Bp,[a.createVNode(Bu,{trigger:"contextmenu",ref_key:"popOverRef",ref:w,title:"",width:800,placement:"bottom-start",isVisible:c.value,"onUpdate:isVisible":g[4]||(g[4]=D=>c.value=D)},{reference:a.withCtx(()=>{var D,re,be,ue;return[a.createVNode(G,{modelValue:s.value,"onUpdate:modelValue":g[0]||(g[0]=De=>s.value=De),style:{"min-width":"80px"},placeholder:O.value?(be=(re=(D=l.filterValues)==null?void 0:D.filter(De=>De))==null?void 0:re.slice(0,3))==null?void 0:be.join("/"):"搜索","prefix-icon":a.unref(Qa.search_default),clearable:"",onInput:$,disabled:((ue=b.value)==null?void 0:ue.length)===0},{suffix:a.withCtx(()=>{var De,pa;return[!s.value&&((pa=(De=l.filterValues)==null?void 0:De.filter(_a=>_a))!=null&&pa.join("/"))?(a.openBlock(),a.createBlock(j,{key:0,style:{cursor:"pointer"},onClick:C},{default:a.withCtx(()=>[a.createVNode(a.unref(Qa.circle_close_default))]),_:1})):a.createCommentVNode("",!0)]}),append:a.withCtx(()=>[a.createElementVNode("span",{title:"条件查询",onClick:a.withModifiers(Z,["stop"])},[a.createVNode(V,{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(dl.ssForm,{rowContents:b.value,buttonValue:p.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:p.value,isStartJustify:!1,onOnButtonClick:M},null,8,["rowContents","buttonValue"]))],32)]),_:1},8,["isVisible"])])):a.createCommentVNode("",!0),l.buttons&&((Se=l.buttons)==null?void 0:Se.length)>0?(a.openBlock(),a.createElementBlock("div",Np,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((Q=l.buttons)==null?void 0:Q.filter(D=>l.isDevMode||(D==null?void 0:D.label)!=="修改模板"),(D,re)=>{var be;return a.openBlock(),a.createElementBlock("div",{class:"extra-contents",key:re},[(D==null?void 0:D.type)==="upload"?(a.openBlock(),a.createBlock(he,{key:0,class:"upload-button-wrap","on-change":N,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1,disabled:!!l.lockingPage},{default:a.withCtx(()=>{var ue;return[a.createElementVNode("div",{class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}]),onClick:De=>S(D==null?void 0:D.label)},[a.createVNode(V,{class:"table-op-icon",name:(ue=v==null?void 0:v.find(De=>(De==null?void 0:De.label)===(D==null?void 0:D.label)))==null?void 0:ue.icon},null,8,["name"]),a.createElementVNode("span",Ap,a.toDisplayString(D==null?void 0:D.label),1)],10,Tp)]}),_:2},1032,["disabled"])):a.createCommentVNode("",!0),(D==null?void 0:D.type)==="popover"?(a.openBlock(),a.createBlock(dl._sfc_main,{key:1},{dropTitle:a.withCtx(()=>{var ue;return[a.createElementVNode("div",{class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}])},[a.createVNode(V,{class:"table-op-icon",name:(ue=v==null?void 0:v.find(De=>(De==null?void 0:De.label)===(D==null?void 0:D.label)))==null?void 0:ue.icon},null,8,["name"]),a.createElementVNode("span",zp,a.toDisplayString(D==null?void 0:D.label),1)],2)]}),dropMenu:a.withCtx(()=>[a.createElementVNode("div",Mp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(D==null?void 0:D.contents,ue=>{var De,pa;return a.openBlock(),a.createElementBlock("div",{key:ue==null?void 0:ue.label,class:a.normalizeClass(["table-op-drop-item",{"is-disabled":!!l.lockingPage}]),onClick:_a=>!l.lockingPage&&S(ue==null?void 0:ue.label)},[a.createTextVNode(a.toDisplayString(ue==null?void 0:ue.label),1),(De=ue==null?void 0:ue.label)!=null&&De.includes("选中")?(a.openBlock(),a.createElementBlock("span",Op,"("+a.toDisplayString(l.selectNums)+")",1)):a.createCommentVNode("",!0),(pa=ue==null?void 0:ue.label)!=null&&pa.includes("全部")?(a.openBlock(),a.createElementBlock("span",Lp,"("+a.toDisplayString(l.dataNums)+")",1)):a.createCommentVNode("",!0)],10,Ip)}),128))])]),_:2},1024)):a.createCommentVNode("",!0),!(D!=null&&D.type)||(D==null?void 0:D.type)==="methodButton"?(a.openBlock(),a.createElementBlock("div",{key:2,id:"themeButton",class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}]),onClick:ue=>!l.lockingPage&&S(D==null?void 0:D.label,D)},[a.createVNode(V,{class:"table-op-icon",name:(be=v==null?void 0:v.find(ue=>(ue==null?void 0:ue.label)===(D==null?void 0:D.label)))==null?void 0:be.icon},null,8,["name"]),a.createElementVNode("span",Rp,a.toDisplayString(D==null?void 0:D.label),1)],10,$p)):a.createCommentVNode("",!0)])}),128))])):a.createCommentVNode("",!0)])])):(a.openBlock(),a.createElementBlock("div",Vp,[a.createElementVNode("div",Pp,[a.createElementVNode("div",Fp,[a.createVNode(G,{modelValue:s.value,"onUpdate:modelValue":g[5]||(g[5]=D=>s.value=D),style:{"min-width":"80px"},placeholder:O.value?(ce=(J=(fe=l.filterValues)==null?void 0:fe.filter(D=>D))==null?void 0:J.slice(0,3))==null?void 0:ce.join("/"):"搜索","prefix-icon":a.unref(Qa.search_default),clearable:"",onInput:$,disabled:((He=b.value)==null?void 0:He.length)===0},{suffix:a.withCtx(()=>{var D,re;return[!s.value&&((re=(D=l.filterValues)==null?void 0:D.filter(be=>be))!=null&&re.join("/"))?(a.openBlock(),a.createBlock(j,{key:0,style:{cursor:"pointer"},onClick:C},{default:a.withCtx(()=>[a.createVNode(a.unref(Qa.circle_close_default))]),_:1})):a.createCommentVNode("",!0)]}),append:a.withCtx(()=>[a.createElementVNode("span",{title:"条件查询",onClick:a.withModifiers(Z,["stop"])},[a.createVNode(V,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]),l.buttons&&((Ca=l.buttons)==null?void 0:Ca.length)>0?(a.openBlock(),a.createElementBlock("div",jp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((ne=l.buttons)==null?void 0:ne.filter(D=>l.isDevMode||(D==null?void 0:D.label)!=="修改模板"),(D,re)=>{var be;return a.openBlock(),a.createElementBlock("div",{class:"extra-contents",key:re},[(D==null?void 0:D.type)==="upload"?(a.openBlock(),a.createBlock(he,{key:0,class:"upload-button-wrap","on-change":N,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1},{default:a.withCtx(()=>{var ue;return[a.createElementVNode("div",Hp,[a.createVNode(V,{class:"table-op-icon",name:(ue=v==null?void 0:v.find(De=>(De==null?void 0:De.label)===(D==null?void 0:D.label)))==null?void 0:ue.icon},null,8,["name"]),a.createElementVNode("span",Up,a.toDisplayString(D==null?void 0:D.label),1)])]}),_:2},1024)):a.createCommentVNode("",!0),(D==null?void 0:D.type)==="popover"?(a.openBlock(),a.createBlock(dl._sfc_main,{key:1},{dropTitle:a.withCtx(()=>[(D==null?void 0:D.type)==="popover"?(a.openBlock(),a.createBlock(Te,{key:0,style:{background:"transparent",color:"#000000"}},{icon:a.withCtx(()=>{var ue;return[a.createVNode(V,{class:"table-op-icon",name:(ue=v==null?void 0:v.find(De=>(De==null?void 0:De.label)===(D==null?void 0:D.label)))==null?void 0:ue.icon},null,8,["name"])]}),default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(D==null?void 0:D.label),1)]),_:2},1024)):a.createCommentVNode("",!0)]),dropMenu:a.withCtx(()=>[a.createElementVNode("div",qp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(D==null?void 0:D.contents,ue=>(a.openBlock(),a.createBlock(Te,{key:ue==null?void 0:ue.label,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:De=>S(ue==null?void 0:ue.label)},{default:a.withCtx(()=>{var De,pa;return[a.createTextVNode(a.toDisplayString(ue==null?void 0:ue.label),1),(De=ue==null?void 0:ue.label)!=null&&De.includes("选中")?(a.openBlock(),a.createElementBlock("span",Wp,"("+a.toDisplayString(l.selectNums)+")",1)):a.createCommentVNode("",!0),(pa=ue==null?void 0:ue.label)!=null&&pa.includes("全部")?(a.openBlock(),a.createElementBlock("span",Kp,"("+a.toDisplayString(l.dataNums)+")",1)):a.createCommentVNode("",!0)]}),_:2},1032,["onClick"]))),128))])]),_:2},1024)):a.createCommentVNode("",!0),!(D!=null&&D.type)||(D==null?void 0:D.type)==="methodButton"?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}]),id:"themeButton",onClick:ue=>!l.lockingPage&&S(D==null?void 0:D.label,D)},[a.createVNode(V,{class:"table-op-icon",name:(be=v==null?void 0:v.find(ue=>(ue==null?void 0:ue.label)===(D==null?void 0:D.label)))==null?void 0:be.icon},null,8,["name"]),a.createElementVNode("span",Yp,a.toDisplayString(D==null?void 0:D.label),1)],10,Gp)):a.createCommentVNode("",!0)])}),128))])):a.createCommentVNode("",!0)])]))}}},Xp=Kl._export_sfc(Jp,[["__scopeId","data-v-3a44c010"]]),Zp={__name:"index",props:{columns:Array,tableData:Array},setup(l){return(n,r)=>{const o=a.resolveComponent("el-table-column"),s=a.resolveComponent("el-table");return a.openBlock(),a.createBlock(s,{data:l.tableData,style:{width:"100%"},stripe:"","max-height":"500"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.columns,c=>{var b;return a.openBlock(),a.createBlock(o,{key:c==null?void 0:c.prop,label:c==null?void 0:c.label,prop:c==null?void 0:c.prop,fixed:(c==null?void 0:c.prop)==="operate"?"right":c==null?void 0:c.fixed,align:(c==null?void 0:c.align)??"left","show-overflow-tooltip":(c==null?void 0:c.showOverflowTooltip)??!0,width:c==null?void 0:c.width,"min-width":(c==null?void 0:c.minWidth)||((c==null?void 0:c.prop)==="operate"?80:(((b=c==null?void 0:c.label)==null?void 0:b.length)*2||4)*27)},{default:a.withCtx(p=>[a.renderSlot(n.$slots,"content",{row:p.row,column:p.column,$index:p.$index,scope:p}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.children,(v,y)=>(a.openBlock(),a.createBlock(dl._sfc_main$2,{key:y,column:v,tableData:l.tableData},a.createSlots({_:2},[a.renderList(n.$slots,(u,_)=>({name:_,fn:a.withCtx(({row:N,slotData:$,item:S,column:q})=>[a.renderSlot(n.$slots,_,a.mergeProps({ref_for:!0},$??N,{item:S??v,slotData:$??N,row:N,column:q,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 ja.Loader{constructor(n){super(n),this.littleEndian=!0}load(n,r,o,s){const c=this,b=new ja.FileLoader(c.manager);b.setPath(c.path),b.setResponseType("arraybuffer"),b.setRequestHeader(c.requestHeader),b.setWithCredentials(c.withCredentials),b.load(n,function(p){try{r(c.parse(p))}catch(v){s?s(v):console.error(v),c.manager.itemError(n)}},o,s)}_getDataView(n,r,o,s){switch(o){case"F":return s===8?n.getFloat64(r,this.littleEndian):n.getFloat32(r,this.littleEndian);case"I":return s===1?n.getInt8(r):s===2?n.getInt16(r,this.littleEndian):n.getInt32(r,this.littleEndian);case"U":return s===1?n.getUint8(r):s===2?n.getUint16(r,this.littleEndian):n.getUint32(r,this.littleEndian)}}parse(n){function r($,S){const q=$.length,O=new Uint8Array(S);let M=0,Z=0,C,w,E;do if(C=$[M++],C<32){if(C++,Z+C>S)throw new Error("Output buffer is not large enough");if(M+C>q)throw new Error("Invalid compressed data");do O[Z++]=$[M++];while(--C)}else{if(w=C>>5,E=Z-((C&31)<<8)-1,M>=q)throw new Error("Invalid compressed data");if(w===7&&(w+=$[M++],M>=q))throw new Error("Invalid compressed data");if(E-=$[M++],Z+w+2>S)throw new Error("Output buffer is not large enough");if(E<0)throw new Error("Invalid compressed data");if(E>=Z)throw new Error("Invalid compressed data");do O[Z++]=O[E++];while(--w+2)}while(M<q);return O}function o($){const S={},q=new Uint8Array($);let O="",M="",Z=0,C=!1;const w=q.length;for(;Z<w&&C===!1;){const j=String.fromCharCode(q[Z++]);j===`
2
+ `||j==="\r"?(M.trim().toLowerCase().startsWith("data")&&(C=!0),M=""):M+=j,O+=j}const E=O.search(/[\r\n]DATA\s(\S*)\s/i),m=/[\r\n]DATA\s(\S*)\s/i.exec(O.slice(E-1));if(S.data=m[1],S.headerLen=m[0].length+E,S.str=O.slice(0,S.headerLen),S.str=S.str.replace(/#.*/gi,""),S.version=/^VERSION (.*)/im.exec(S.str),S.fields=/^FIELDS (.*)/im.exec(S.str),S.size=/^SIZE (.*)/im.exec(S.str),S.type=/^TYPE (.*)/im.exec(S.str),S.count=/^COUNT (.*)/im.exec(S.str),S.width=/^WIDTH (.*)/im.exec(S.str),S.height=/^HEIGHT (.*)/im.exec(S.str),S.viewpoint=/^VIEWPOINT (.*)/im.exec(S.str),S.points=/^POINTS (.*)/im.exec(S.str),S.version!==null&&(S.version=parseFloat(S.version[1])),S.fields=S.fields!==null?S.fields[1].split(" "):[],S.type!==null&&(S.type=S.type[1].split(" ")),S.width!==null&&(S.width=parseInt(S.width[1])),S.height!==null&&(S.height=parseInt(S.height[1])),S.viewpoint!==null&&(S.viewpoint=S.viewpoint[1]),S.points!==null&&(S.points=parseInt(S.points[1],10)),S.points===null&&(S.points=S.width*S.height),S.size!==null&&(S.size=S.size[1].split(" ").map(function(j){return parseInt(j,10)})),S.count!==null)S.count=S.count[1].split(" ").map(function(j){return parseInt(j,10)});else{S.count=[];for(let j=0,V=S.fields.length;j<V;j++)S.count.push(1)}S.offset={};let g=0;for(let j=0,V=S.fields.length;j<V;j++)S.data==="ascii"?S.offset[S.fields[j]]=j:(S.offset[S.fields[j]]=g,g+=S.size[j]*S.count[j]);return S.rowSize=g,S}const s=o(n),c=[],b=[],p=[],v=[],y=[],u=new ja.Color;if(s.data==="ascii"){const $=s.offset,O=new TextDecoder().decode(n).slice(s.headerLen).split(`
3
+ `);for(let M=0,Z=O.length;M<Z;M++){if(O[M]==="")continue;const C=O[M].split(" ");if($.x!==void 0&&(c.push(parseFloat(C[$.x])),c.push(parseFloat(C[$.y])),c.push(parseFloat(C[$.z]))),$.rgb!==void 0){const w=s.fields.findIndex(he=>he==="rgb"),E=s.type[w],m=parseFloat(C[$.rgb]);let g=m;if(E==="F"){const he=new Float32Array(1);he[0]=m,g=new Int32Array(he.buffer)[0]}const j=(g>>16&255)/255,V=(g>>8&255)/255,G=(g>>0&255)/255;u.setRGB(j,V,G,ja.SRGBColorSpace),p.push(u.r,u.g,u.b)}$.normal_x!==void 0&&(b.push(parseFloat(C[$.normal_x])),b.push(parseFloat(C[$.normal_y])),b.push(parseFloat(C[$.normal_z]))),$.intensity!==void 0&&v.push(parseFloat(C[$.intensity])),$.label!==void 0&&y.push(parseInt(C[$.label]))}}if(s.data==="binary_compressed"){const $=new Uint32Array(n.slice(s.headerLen,s.headerLen+8)),S=$[0],q=$[1],O=r(new Uint8Array(n,s.headerLen+8,S),q),M=new DataView(O.buffer),Z=s.offset;for(let C=0;C<s.points;C++){if(Z.x!==void 0){const w=s.fields.indexOf("x"),E=s.fields.indexOf("y"),m=s.fields.indexOf("z");c.push(this._getDataView(M,s.points*Z.x+s.size[w]*C,s.type[w],s.size[w])),c.push(this._getDataView(M,s.points*Z.y+s.size[E]*C,s.type[E],s.size[E])),c.push(this._getDataView(M,s.points*Z.z+s.size[m]*C,s.type[m],s.size[m]))}if(Z.rgb!==void 0){const w=s.fields.indexOf("rgb"),E=M.getUint8(s.points*Z.rgb+s.size[w]*C+2)/255,m=M.getUint8(s.points*Z.rgb+s.size[w]*C+1)/255,g=M.getUint8(s.points*Z.rgb+s.size[w]*C+0)/255;u.setRGB(E,m,g,ja.SRGBColorSpace),p.push(u.r,u.g,u.b)}if(Z.normal_x!==void 0){const w=s.fields.indexOf("normal_x"),E=s.fields.indexOf("normal_y"),m=s.fields.indexOf("normal_z");b.push(this._getDataView(M,s.points*Z.normal_x+s.size[w]*C,s.type[w],s.size[w])),b.push(this._getDataView(M,s.points*Z.normal_y+s.size[E]*C,s.type[E],s.size[E])),b.push(this._getDataView(M,s.points*Z.normal_z+s.size[m]*C,s.type[m],s.size[m]))}if(Z.intensity!==void 0){const w=s.fields.indexOf("intensity");v.push(this._getDataView(M,s.points*Z.intensity+s.size[w]*C,s.type[w],s.size[w]))}if(Z.label!==void 0){const w=s.fields.indexOf("label");y.push(M.getInt32(s.points*Z.label+s.size[w]*C,this.littleEndian))}}}if(s.data==="binary"){const $=new DataView(n,s.headerLen),S=s.offset;for(let q=0,O=0;q<s.points;q++,O+=s.rowSize){if(S.x!==void 0){const M=s.fields.indexOf("x"),Z=s.fields.indexOf("y"),C=s.fields.indexOf("z");c.push(this._getDataView($,O+S.x,s.type[M],s.size[M])),c.push(this._getDataView($,O+S.y,s.type[Z],s.size[Z])),c.push(this._getDataView($,O+S.z,s.type[C],s.size[C]))}if(S.rgb!==void 0){const M=$.getUint8(O+S.rgb+2)/255,Z=$.getUint8(O+S.rgb+1)/255,C=$.getUint8(O+S.rgb+0)/255;u.setRGB(M,Z,C,ja.SRGBColorSpace),p.push(u.r,u.g,u.b)}if(S.normal_x!==void 0){const M=s.fields.indexOf("normal_x"),Z=s.fields.indexOf("normal_y"),C=s.fields.indexOf("normal_z");b.push(this._getDataView($,O+S.normal_x,s.type[M],s.size[M])),b.push(this._getDataView($,O+S.normal_y,s.type[Z],s.size[Z])),b.push(this._getDataView($,O+S.normal_z,s.type[C],s.size[C]))}if(S.intensity!==void 0){const M=s.fields.indexOf("intensity");v.push(this._getDataView($,O+S.intensity,s.type[M],s.size[M]))}S.label!==void 0&&y.push($.getInt32(O+S.label,this.littleEndian))}}const _=new ja.BufferGeometry;c.length>0&&_.setAttribute("position",new ja.Float32BufferAttribute(c,3)),b.length>0&&_.setAttribute("normal",new ja.Float32BufferAttribute(b,3)),p.length>0&&_.setAttribute("color",new ja.Float32BufferAttribute(p,3)),v.length>0&&_.setAttribute("intensity",new ja.Float32BufferAttribute(v,1)),y.length>0&&_.setAttribute("label",new ja.Int32BufferAttribute(y,1)),_.computeBoundingSphere();const N=new ja.PointsMaterial({size:.005});return p.length>0&&(N.vertexColors=!0),new ja.Points(_,N)}}const ef=L.useModelComp(L.pinia),{systemPath:ts}=L.storeToRefs(ef),fi=a.ref(),ss=new WeakMap;function af(l,n,r,o,s){const c=async N=>{try{const $=await L.platformDownloadFile({url:N});if($.status!==200)throw new Error(`下载失败: ${$.status}`);return $.data}catch($){throw console.error("addModelFromUrl失败:",$),$}},b=N=>new Promise(($,S)=>{const q=new FileReader;q.onload=O=>{try{const M=O.target.result,C=new On.MTLLoader().parse(M);C.preload(),$(C)}catch(M){S(M)}},q.onerror=()=>{S(new Error("MTL文件读取失败"))},q.readAsText(N)}),p=async N=>{const $={materials:{},create:function(S){return this.materials[S]?this.materials[S]:(console.warn(`Material '${S}' not found, using default material`),new ja.MeshPhongMaterial({color:8947848,side:ja.DoubleSide}))},getAsArray:function(){const S=[];for(const q in this.materials)S.push(this.materials[q]);return S},preload:function(){for(const S in this.materials)this.materials[S].map&&(this.materials[S].map.needsUpdate=!0)}};for(const S of N){const q=await b(S);Object.assign($.materials,q.materials)}return $.preload(),$},v=async(N,$=[])=>new Promise((S,q)=>{const O=new FileReader;O.onload=async M=>{try{const Z=M.target.result;let C=null;$&&$.length>0&&($.length===1?C=await b($[0]):C=await p($));const w=new On.OBJLoader;C&&w.setMaterials(C);const E=w.parse(Z);C||E.traverse(m=>{m.isMesh&&(m.material=new ja.MeshPhongMaterial({color:8947848,side:ja.DoubleSide}))}),S(E)}catch(Z){q(Z)}},O.onerror=()=>{q(new Error("OBJ文件读取失败"))},O.readAsText(N)}),y=async N=>{var $;try{r.value=!0;const{scene:S}=l();if(!S)throw new Error("Scene not initialized");s();const q=[];for(let O=0;O<N.length;O++){const M=N[O];o.value=`正在加载模型 ${O+1}/${N.length}...`;const Z=await c(M.objUrl),C=(($=M.objUrl)==null?void 0:$.split("/").pop())||`model_${O}.obj`,w=new File([Z],C,{type:Z.type});let E=[];if(M.mtlUrls){const g=Array.isArray(M.mtlUrls)?M.mtlUrls:[M.mtlUrls];for(let j=0;j<g.length;j++){const V=g[j],G=await c(V),he=(V==null?void 0:V.split("/").pop())||`material_${O}_${j}.mtl`,Te=new File([G],he,{type:G.type});E.push(Te)}}const m=await v(w,E);S.add(m),n.value.push(m),q.push(m)}return r.value=!1,q}catch(S){throw console.error("加载模型失败:",S),r.value=!1,S}},u=async(N,$,S=[],q=[])=>{let O;const M=N.toLowerCase();switch(M){case".txt":case".cpt":case".obj":const Z=await $.text();if(M===".txt"||M===".cpt"){const le=/^(?!.*\bf\b)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?$/gm,Ve=[...Z.matchAll(le)].map(ze=>({x:parseFloat(ze[1]),y:parseFloat(ze[2]),z:parseFloat(ze[3])})),wa=new ja.BufferGeometry,Fe=Ve.flatMap(ze=>[ze.x,ze.y,ze.z]);if(wa.setAttribute("position",new ja.Float32BufferAttribute(Fe,3)),M===".txt"){const ze=new ja.PointsMaterial({color:"#5B5C99",size:1,sizeAttenuation:!1});O=new ja.Points(wa,ze)}else if(M===".cpt"){const ze=new ja.LineBasicMaterial({color:"#5B5C99",linewidth:100});O=new ja.Line(wa,ze)}}else if(M===".obj"){const le=new On.OBJLoader;if(S&&S.length>0){const la=new On.MTLLoader;for(const Ve of S){const wa=await Ve.text(),Fe=la.parse(wa);Fe.preload(),le.setMaterials(Fe);break}}O=le.parse(Z),(!S||S.length===0)&&O.traverse(la=>{la.isMesh&&(la.material=new ja.MeshPhongMaterial({color:"#B3B3D4"})),la instanceof ja.Mesh&&(la.material.side=ja.DoubleSide)})}break;case".stl":const C=await $.arrayBuffer(),E=new On.STLLoader().parse(C),m=new ja.MeshPhongMaterial({color:"#B3B3D4",side:ja.DoubleSide});O=new ja.Mesh(E,m);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"],j={"Mach_Y_Axis_0.STL":"rgb(128,118,152)","Mach_B_Axis_0.STL":"rgb(204,143,89)","Mach_C_Axis_0.STL":"rgb(145,245,251)","Mach_X_Axis_0.STL":"rgb(125,158,192)","Mach_Z_Axis_0.STL":"rgb(248,228,118)","Mach_Spindle_0.STL":"rgb(145,145,145)"},V=new ja.Group,G=g.map(le=>new Promise((la,Ve)=>{new On.STLLoader().load(ts.value===""?`/model/${le}`:`${ts.value}\\${le}`,Fe=>{const ze=new ja.MeshPhongMaterial({color:j[le]||"#B3B3D4",side:ja.DoubleSide}),Re=new ja.Mesh(Fe,ze);la(Re)},void 0,Ve)}));try{(await Promise.all(G)).forEach(la=>V.add(la)),O=V}catch(le){throw console.error("加载NC文件对应的STL文件失败:",le),new Error("无法加载.NC文件对应的STL文件")}break;case".pcd":const he=new Qp,Te=new ja.Group;try{const le=await Qa.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/target.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),la=new Blob([le.data],{type:"application/octet-stream;charset=UTF-8"}),Ve=await Qa.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/final.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),wa=new Blob([Ve.data],{type:"application/octet-stream;charset=UTF-8"}),Fe=await new Promise((Re,Ze)=>{const Ja=URL.createObjectURL(la);he.load(Ja,qa=>{const F=new Float32Array(qa.geometry.attributes.position.count*3);for(let P=0;P<qa.geometry.attributes.position.count;P++)F[P*3]=1,F[P*3+1]=0,F[P*3+2]=0;qa.geometry.setAttribute("color",new ja.BufferAttribute(F,3)),qa.material.vertexColors=!0,qa.scale.set(.3,.3,.3),URL.revokeObjectURL(Ja),Re(qa)},void 0,Ze)}),ze=await new Promise((Re,Ze)=>{const Ja=URL.createObjectURL(wa);he.load(Ja,qa=>{const F=new Float32Array(qa.geometry.attributes.position.count*3);for(let P=0;P<qa.geometry.attributes.position.count;P++)F[P*3]=0,F[P*3+1]=1,F[P*3+2]=0;qa.geometry.setAttribute("color",new ja.BufferAttribute(F,3)),qa.material.vertexColors=!0,qa.scale.set(.3,.3,.3),URL.revokeObjectURL(Ja),Re(qa)},void 0,Ze)});Te.add(Fe),Te.add(ze),O=Te}catch(le){throw console.error("PCD文件加载失败:",le),new Error("无法加载PCD文件")}break;case".urdf":const Se=URL.createObjectURL($),Q=new Eu.URDFLoader,fe="http://139.196.154.85:20026/chfs/shared/机器人/urdf/SmallBender_R-2000iC-165F/meshes",J={maxConcurrentLoads:4,enableCache:!0,enableLOD:!0,simplifyGeometry:!0,shareMaterials:!0,enableInstancing:!0},ce=new WeakMap,He=new WeakMap,Ca=new WeakMap,ne=async le=>{if(ce.has(le))return console.log(`从缓存加载: ${le}`),ce.get(le);try{const la=await Qa.axios.get(`${fe}/${le}`,{responseType:"blob",headers:{"Content-Type":"application/json"},timeout:6e5}),Ve=new Blob([la.data],{type:"application/octet-stream;charset=UTF-8"});return J.enableCache&&ce.set(le,Ve),Ve}catch(la){throw console.error(`加载文件失败: ${le}`,la),new Error(`无法加载文件: ${le}`)}},D=(le="default")=>{if(He.has(le))return He.get(le);const la=new ja.MeshPhongMaterial({color:12303291,shininess:30,transparent:!1,alphaTest:.1,side:ja.FrontSide});return He.set(le,la),la},re=le=>{try{le.isBufferGeometry&&le.mergeVertices&&le.mergeVertices(),le.computeVertexNormals&&le.computeVertexNormals(),le.computeBoundingSphere&&le.computeBoundingSphere(),le.deleteAttribute&&le.deleteAttribute("uv2")}catch(la){console.warn("几何体优化失败,使用原始几何体:",la)}return le},be=async(le,la,Ve)=>{const wa=`stl_${la}`;if(Ca.has(wa)){const Ze=Ca.get(wa);return new ja.Mesh(Ze,D())}const Fe=await le.arrayBuffer();let Re=new On.STLLoader(Ve).parse(Fe);return Re=re(Re),Ca.set(wa,Re),new ja.Mesh(Re,D())},ue=async(le,la,Ve)=>{const wa=`obj_${la}`;if(ce.has(wa))return ce.get(wa).clone();const Fe=await le.text(),ze=new On.OBJLoader(Ve),Re=la.replace(".obj",".mtl");try{const qa=await(await ne(Re)).text(),P=new On.MTLLoader(Ve).parse(qa);P.preload(),ze.setMaterials(P)}catch{console.warn(`MTL文件加载失败,使用默认材质: ${Re}`)}const Ze=ze.parse(Fe);return Ze.traverse(Ja=>{Ja.isMesh&&(Ja.geometry=re(Ja.geometry),Ja.castShadow=!0,Ja.receiveShadow=!0,Ja.renderOrder=1)}),ce.set(wa,Ze),Ze},De=(le,la)=>{const Ve=new ja.LOD;if(Ve.addLevel(le,0),le.geometry){const wa=le.geometry.clone(),Fe=new ja.Mesh(wa,le.material);Ve.addLevel(Fe,50)}return Ve};let pa=0,_a=0;const Ga=[];Q.loadMeshCb=async(le,la,Ve,wa,Fe)=>{const ze=le.split("/").pop(),Re=Ve||(()=>{});pa++;const Ze=new Promise(async(Ja,qa)=>{try{const F=await ne(ze);if(!F||F.size===0)throw new Error(`文件为空: ${ze}`);const P=ze.split(".").pop().toLowerCase();let X;switch(P){case"stl":X=await be(F,ze,la);break;case"obj":X=await ue(F,ze,la);break;default:throw new Error(`不支持的文件格式: ${P}`)}J.enableLOD&&X.isMesh&&(X=De(X,ze)),Re(X),_a++,wa&&wa({loaded:_a,total:pa,progress:_a/pa}),Ja(X)}catch(F){console.error(`mesh文件加载失败: ${ze}`,F);const P=new ja.Group;Re(P),Ja(P);const X=new ja.BoxGeometry(.1,.1,.1),ie=new ja.MeshStandardMaterial({color:16711680,wireframe:!0});return new ja.Mesh(X,ie)}});Ga.push(Ze)};try{if(!Se){fi.value=void 0;break}if(O=await Q.loadAsync(Se),console.log(`URDF文件加载完成,等待${pa}个mesh文件加载...`),Ga.length>0)try{await Promise.allSettled(Ga),console.log(`所有mesh文件处理完成,成功加载: ${_a}/${pa}`)}catch(Ve){console.warn("部分mesh文件加载失败,但继续显示模型",Ve)}O.traverse(Ve=>{Ve.isMesh&&(Ve.castShadow=!0,Ve.receiveShadow=!0,Ve.renderOrder=1,Ve.material&&(Ve.material.needsUpdate=!0))}),console.time("计算包围盒");const le=new ja.Box3;le.expandByObject(O);const la=`urdf_${Date.now()}`;O.userData.boundingBox=le.clone(),O.userData.modelId=la,ss.set(la,{box:le.clone(),center:le.getCenter(new ja.Vector3),size:le.getSize(new ja.Vector3),maxSize:Math.max(...le.getSize(new ja.Vector3).toArray())}),fi.value=O,console.log("URDF模型加载完成并优化")}catch(le){console.error("URDF加载失败:",le),fi.value=void 0}finally{Se&&URL.revokeObjectURL(Se)}break;default:throw new Error(`不支持的文件格式: ${N}`)}return O};return{addModelsFromUrls:y,loadModelByDefaultPath:async N=>{console.log(N);try{r.value=!0,o.value="正在加载模型...";const{scene:$}=l();if(!$)throw new Error("Scene not initialized");s(),await new Promise(q=>setTimeout(q,100));const S=[];for(let q=0;q<N.length;q++){const O=N[q],M=await u(O.suffix,O.blob,O.mtlBlobs||[],O.meshFiles||[]);M&&($.add(M),n.value.push(M),S.push(M))}return r.value=!1,o.value="",S}catch($){throw console.error("加载模型失败:",$),r.value=!1,o.value="",$}},urdfModel:fi,modelBoundingBoxes:ss}}window._iconfont_svg_string_4827314='<svg><symbol id="icon-chart-new" viewBox="0 0 1024 1024"><path d="M960 768V448h-64v320h-64v64H192v-64h-64V256h64v-64h256v-64H192V64H0v192h64v512H0v192h192v-64h640v64h192V768h-64zM64 128h64v64H64v-64z m0 768v-64h64v64H64z m896 0h-64v-64h64v64zM256 768V256h128v512H256z m192-320h128v320H448V448z m192 192h128v128H640V640zM512 288c0-17.664 14.336-32 32-32h160V96c0-17.664 14.336-32 32-32s32 14.336 32 32v160h160c17.664 0 32 14.336 32 32s-14.336 32-32 32H768v160c0 17.664-14.336 32-32 32s-32-14.336-32-32V320H544c-17.664 0-32-14.336-32-32z" ></path></symbol><symbol id="icon-ai13" viewBox="0 0 1024 1024"><path d="M863.719038 159.366637l-705.295378 0c-48.443315 0-88.129176 39.690978-88.129176 88.161922l0 528.943904c0 48.474015 39.685861 88.161922 88.129176 88.161922l705.295378 0c48.443315 0 88.134293-39.687908 88.134293-88.161922l0-528.943904C951.853331 199.056592 912.162354 159.366637 863.719038 159.366637M643.272277 776.472464l-484.84964 0 0-176.324868 484.84964 0L643.272277 776.472464zM643.272277 556.053332l-484.84964 0 0-176.296215 484.84964 0L643.272277 556.053332zM863.719038 776.472464 687.394171 776.472464l0-396.659065 176.324868 0L863.719038 776.472464z" ></path></symbol><symbol id="icon-qiehuanwenjianjia" viewBox="0 0 1024 1024"><path d="M409.6 102.4L512 204.8h307.2a102.4 102.4 0 0 1 102.144 94.72l0.256 7.68v512a102.4 102.4 0 0 1-94.72 102.144l-7.68 0.256H512v-76.8h281.6a51.2 51.2 0 0 0 50.842-45.21l0.358-5.99V332.8a51.2 51.2 0 0 0-45.21-50.842l-5.99-0.358H486.4L384 179.2H230.4a51.2 51.2 0 0 0-50.842 45.21l-0.358 5.99v179.2h-76.8V204.8a102.4 102.4 0 0 1 94.72-102.144l7.68-0.256h204.8z m217.6 588.8a38.4 38.4 0 1 1 0 76.8H358.4v99.584a25.6 25.6 0 0 1-41.83 19.814L132.3 736.614a25.6 25.6 0 0 1 16.231-45.414zM447.59 389.99l3.84 2.612L635.7 543.386a25.6 25.6 0 0 1-11.623 45.004l-4.608 0.41H140.8a38.4 38.4 0 0 1-5.222-76.442L140.8 512h268.8v-99.584a25.6 25.6 0 0 1 37.99-22.426z" ></path></symbol><symbol id="icon-baogao" viewBox="0 0 1104 1024"><path d="M265.401 1024a174.066 174.066 0 0 1-173.56-173.56V315.3a4.194 4.194 0 0 0-4.338-4.34H41.22A39.63 39.63 0 0 1 0 273.356V123.66C0 55.684 59.3 0 132.339 0h648.678a132.411 132.411 0 0 1 132.339 132.339v553.22a4.194 4.194 0 0 0 4.339 4.34h146.079a40.714 40.714 0 0 1 41.22 41.22v159.819a132.411 132.411 0 0 1-132.339 132.339l-707.254 0.723z m653.017-260.339A4.194 4.194 0 0 0 914.08 768v123.661a59.3 59.3 0 0 0 118.599 0V768a4.194 4.194 0 0 0-4.339-4.339z m-749.198-452.7a4.194 4.194 0 0 0-4.339 4.338v534.419a100.737 100.737 0 0 0 100.52 100.52h582.147a3.977 3.977 0 0 0 3.616-2.17 4.628 4.628 0 0 0 0-4.34 132.7 132.7 0 0 1-10.848-52.79V133.062a59.3 59.3 0 0 0-118.598 0v140.294a39.195 39.195 0 0 1-41.22 37.604zM132.34 73.762c-32.542 0-59.3 22.418-59.3 49.898v109.92a4.194 4.194 0 0 0 4.34 4.34h566.237a4.194 4.194 0 0 0 4.339-4.34V133.063a132.7 132.7 0 0 1 10.847-52.79c0.723-1.447 0-2.893 0-4.34a3.977 3.977 0 0 0-3.616-2.17z m169.22 692.068a36.881 36.881 0 0 1 0-73.763h402.08a36.881 36.881 0 0 1 0 73.763z m0-196.701a36.881 36.881 0 1 1 0-73.763h402.08a36.881 36.881 0 1 1 0 73.763z" ></path></symbol><symbol id="icon-xinghao" viewBox="0 0 1024 1024"><path d="M580.583 425.004c52.988-24.574 104.44-49.276 152.82-73.594 48.381-24.703 87.034-42.877 115.704-54.268 28.67-11.136 51.58-17.023 69.115-17.023a104.952 104.952 0 0 1 74.235 28.798 93.177 93.177 0 0 1 31.485 71.802c0 16.383-5.12 33.534-15.358 51.069-10.24 17.534-21.247 28.926-32.638 33.79-105.976 41.468-222.832 72.058-350.054 90.872 23.038 20.99 51.452 49.405 85.113 84.474 33.79 35.582 51.453 54.268 52.86 56.7 12.416 17.023 29.566 38.397 51.837 63.74 22.142 25.597 37.501 45.18 46.076 59.643a99.833 99.833 0 0 1 13.055 52.092 93.817 93.817 0 0 1-29.693 68.731 103.16 103.16 0 0 1-76.41 29.694c-31.23 0-66.172-24.318-105.337-72.443-39.037-48.124-89.465-135.158-151.029-260.46A12540.003 12540.003 0 0 1 386.677 862.22a387.3 387.3 0 0 1-61.563 81.53 96.889 96.889 0 0 1-67.835 27.774 101.625 101.625 0 0 1-76.026-31.358c-19.711-20.862-30.078-43.517-30.078-66.939 0-22.142 4.095-38.909 12.287-50.172 75.514-102.393 154.356-191.602 236.782-266.605a2401.103 2401.103 0 0 1-184.818-35.709 1163.818 1163.818 0 0 1-172.531-57.724c-9.984-5.12-19.583-16.382-29.054-33.917A104.696 104.696 0 0 1 0.018 380.72a93.433 93.433 0 0 1 31.358-71.675 102.648 102.648 0 0 1 72.186-28.926c19.839 0 44.285 5.887 73.979 17.79 29.438 11.904 67.067 29.054 112.632 51.453 45.564 22.526 97.656 47.74 155.892 75.514a1833.849 1833.849 0 0 1-26.494-177.267 1574.54 1574.54 0 0 1-10.367-137.078c0-30.205 9.599-56.06 28.798-78.074A95.481 95.481 0 0 1 512.62 0.076c29.822 0 54.012 10.75 73.339 32.51 19.454 21.886 29.054 50.683 29.054 86.649 0 9.855-1.664 29.182-4.48 58.491-2.56 29.182-7.04 64.252-12.16 105.465-5.375 41.34-11.39 88.697-17.79 141.813z" fill="#FF4444" ></path></symbol><symbol id="icon-mima" viewBox="0 0 1024 1024"><path d="M776.86 376.04c-22.05 0-40.16-16.24-43.91-37.98-18.08-104.98-109.79-185.1-219.84-185.1s-201.76 80.13-219.84 185.1c-3.74 21.73-21.85 37.98-43.91 37.98-27.05 0-48.82-24.04-44.44-50.73 24.3-148.16 153.25-261.58 308.19-261.58S796.99 177.15 821.3 325.31c4.38 26.69-17.39 50.73-44.44 50.73zM850.18 418.32H180.33c-37.98 0-68.76 30.79-68.76 68.76v403.71c0 37.98 30.79 68.76 68.76 68.76h665.36c37.97 0 68.75-30.77 68.77-68.74l0.19-408c0.02-35.61-28.85-64.49-64.47-64.49zM557.73 762.56c0 24.64-19.97 44.62-44.62 44.62-24.64 0-44.62-19.97-44.62-44.62v-89.23c0-24.64 19.97-44.62 44.62-44.62 24.64 0 44.62 19.98 44.62 44.62v89.23z" ></path></symbol><symbol id="icon-zhanghao" viewBox="0 0 1024 1024"><path d="M407.61 578.87c-174.46 0-304.73 113.04-304.73 277.2v17.69c0 85.81 139.6 85.81 316.37 85.81h187.73c169.75 0 316.37 0 316.37-85.81v-17.69c0-164.16-130.28-277.2-304.73-277.2H407.61zM503.71 535.67c138.19 0 250.63-105.81 250.63-235.94 0-130.06-112.44-235.86-250.63-235.86-138.11 0-250.56 105.81-250.56 235.86 0 130.13 112.45 235.94 250.56 235.94z" ></path></symbol><symbol id="icon-xiangqingye-37" viewBox="0 0 1024 1024"><path d="M368.64 34.133333H112.64C68.266667 34.133333 34.133333 68.266667 34.133333 112.64v256c0 23.893333 17.066667 40.96 40.96 40.96s40.96-17.066667 40.96-40.96V116.053333h252.586667c23.893333 0 40.96-17.066667 40.96-40.96S389.12 34.133333 368.64 34.133333zM911.36 34.133333h-256c-23.893333 0-40.96 17.066667-40.96 40.96s17.066667 40.96 40.96 40.96h252.586667v252.586667c0 23.893333 17.066667 40.96 40.96 40.96s40.96-17.066667 40.96-40.96V112.64C989.866667 68.266667 955.733333 34.133333 911.36 34.133333zM368.64 907.946667H116.053333v-252.586667c0-23.893333-17.066667-40.96-40.96-40.96S34.133333 634.88 34.133333 655.36v256C34.133333 955.733333 68.266667 989.866667 112.64 989.866667h256c23.893333 0 40.96-17.066667 40.96-40.96s-20.48-40.96-40.96-40.96zM948.906667 617.813333c-23.893333 0-40.96 17.066667-40.96 40.96v252.586667h-252.586667c-23.893333 0-40.96 17.066667-40.96 40.96s17.066667 40.96 40.96 40.96h256c40.96 0 78.506667-34.133333 78.506667-78.506667v-256c0-23.893333-17.066667-40.96-40.96-40.96z" fill="#3366CC" ></path><path d="M416.426667 488.106667L307.2 344.746667c-13.653333-17.066667-34.133333-20.48-51.2-6.826667-17.066667 13.653333-20.48 34.133333-6.826667 51.2L337.92 512l-95.573333 126.293333c-13.653333 17.066667-10.24 37.546667 6.826666 51.2 6.826667 3.413333 13.653333 6.826667 20.48 6.826667 10.24 0 23.893333-6.826667 30.72-13.653333l112.64-146.773334c10.24-17.066667 10.24-34.133333 3.413334-47.786666z" fill="#F4A914" ></path><path d="M597.333333 488.106667L488.106667 341.333333c-13.653333-17.066667-34.133333-20.48-51.2-6.826666-17.066667 13.653333-20.48 34.133333-6.826667 51.2l92.16 122.88-95.573333 126.293333c-13.653333 17.066667-10.24 37.546667 6.826666 51.2 6.826667 3.413333 13.653333 6.826667 20.48 6.826667 10.24 0 23.893333-6.826667 30.72-13.653334l112.64-146.773333c10.24-13.653333 10.24-30.72 0-44.373333z" fill="#F4A914" ></path><path d="M778.24 488.106667L669.013333 341.333333c-13.653333-17.066667-34.133333-20.48-51.2-6.826666-17.066667 13.653333-20.48 34.133333-6.826666 51.2l92.16 122.88-95.573334 126.293333c-6.826667 6.826667-6.826667 17.066667-6.826666 27.306667 0 10.24 6.826667 17.066667 13.653333 23.893333 6.826667 3.413333 13.653333 6.826667 23.893333 6.826667 10.24 0 23.893333-6.826667 30.72-13.653334l112.64-146.773333c6.826667-13.653333 6.826667-30.72-3.413333-44.373333z" fill="#F4A914" ></path></symbol><symbol id="icon-gongzhuangmoju" viewBox="0 0 1024 1024"><path d="M192 170.666667A106.965333 106.965333 0 0 0 85.333333 277.333333V426.666667h256l42.666667 85.333333h256l42.666667-85.333333h256V277.333333A106.965333 106.965333 0 0 0 832 170.666667z" fill="#3B709C" ></path><path d="M384 512l-42.666667-85.333333h341.333334l-42.666667 85.333333z m-298.666667-85.333333V256a85.333333 85.333333 0 0 1 85.333334-85.333333h682.666666a85.333333 85.333333 0 0 1 85.333334 85.333333v170.666667zM853.333333 853.333333H170.666667a85.333333 85.333333 0 0 1-85.333334-85.333333v-256h213.333334l42.666666 85.333333h341.333334l42.666666-85.333333h213.333334v256a85.333333 85.333333 0 0 1-85.333334 85.333333z" fill="#2C6798" ></path></symbol><symbol id="icon-jiagongguochengxinxi" viewBox="0 0 1024 1024"><path d="M345.216 664.192a315.84 315.84 0 0 1 93.12-224.64 315.84 315.84 0 0 1 100.992-68.16 315.392 315.392 0 0 1 123.648-24.96 315.392 315.392 0 0 1 158.72 42.368v-264a24.768 24.768 0 0 0-24.768-24.768H559.296a32.64 32.64 0 0 1 0.704 6.976v133.184c0 19.2-15.616 34.816-34.816 34.816H395.072a34.816 34.816 0 0 1-34.752-34.816v-133.12a32.64 32.64 0 0 1 0.64-6.976H123.456a24.768 24.768 0 0 0-24.768 24.832v676.544c0 13.76 11.072 24.832 24.768 24.832h266.24a316.224 316.224 0 0 1-44.416-162.112zM662.976 406.4a257.792 257.792 0 1 0 0 515.52 257.792 257.792 0 0 0 0-515.52z m112.256 293.376a104.704 104.704 0 0 1-107.328 25.216l-68.48 68.48a46.528 46.528 0 0 1-65.728-65.664l68.48-68.48a104.512 104.512 0 0 1 140.8-129.28l-67.072 67.072 10.88 42.88 43.328 11.328 67.072-67.136c16.64 38.336 9.216 84.416-21.952 115.584z m-220.16 51.456a20.928 20.928 0 1 0 41.856 0 20.928 20.928 0 0 0-41.856 0z" ></path></symbol><symbol id="icon-pingtaiguanli" viewBox="0 0 1024 1024"><path d="M1024 806.4V25.6c0-12.8-12.8-25.6-25.6-25.6H25.6C12.8 0 0 12.8 0 25.6v780.8h435.2v166.4H236.8v51.2h556.8v-51.2H588.8v-166.4H1024zM320 281.6c-12.8-12.8-19.2-25.6-32-32l44.8-76.8c44.8 25.6 96 12.8 121.6-32 12.8-12.8 12.8-32 12.8-44.8h89.6c0 51.2 38.4 83.2 89.6 83.2 12.8 0 32-6.4 44.8-12.8l44.8 76.8c-44.8 25.6-57.6 76.8-32 115.2 12.8 12.8 19.2 25.6 32 32l-44.8 76.8c-44.8-19.2-96-6.4-121.6 38.4-12.8 12.8-12.8 25.6-12.8 44.8H467.2c0-44.8-38.4-83.2-89.6-83.2-12.8 0-32 6.4-44.8 12.8l-44.8-83.2c38.4-25.6 51.2-76.8 32-115.2zM102.4 704v-51.2h825.6v51.2H102.4zM512 416c51.2 0 96-38.4 96-89.6S569.6 236.8 512 236.8c-51.2 0-96 38.4-96 89.6 0 51.2 44.8 89.6 96 89.6z" ></path></symbol><symbol id="icon-zhucaidanguanli" viewBox="0 0 1169 1024"><path d="M787.333831 588.946093a75.189984 75.189984 0 0 0-75.093984 75.092984 75.189984 75.189984 0 0 0 75.093984 75.093984 75.165984 75.165984 0 0 0 75.067984-75.093984 75.165984 75.165984 0 0 0-75.067984-75.092984m0 222.841953a147.919968 147.919968 0 0 1-147.748968-147.748969c0-81.455982 66.291986-147.747968 147.748968-147.747968 81.431983 0 147.747968 66.291986 147.747968 147.747968 0 81.480982-66.315986 147.748968-147.747968 147.748969m89.452981 102.106978c0.342 0.244 1.317 0.585 2.315999 0.585h0.122l71.484985-39.496992c-1.706-4.022999-9.605998-23.478995-9.605998-43.739991a113.858976 113.858976 0 0 1 107.739977-113.613975c0.853-4.729999 5.557999-31.524993 5.557998-51.639989s-4.704999-46.88399-5.558998-51.637989a113.858976 113.858976 0 0 1-107.738977-113.565976c0-20.357996 7.923998-39.813991 9.605998-43.81299l-70.313985-39.057992-0.293-0.025a5.339999 5.339999 0 0 0-2.706 0.732 196.753958 196.753958 0 0 1-26.014994 21.819995c-21.698995 15.238997-42.153991 22.967995-60.951987 22.967995-18.919996 0-39.594991-7.874998-61.390987-23.405995a194.705958 194.705958 0 0 1-26.160994-22.283995 5.777999 5.777999 0 0 0-2.729999-0.707h-0.245l-72.824985 40.032992c1.706 4.046999 9.580998 23.479995 9.580998 43.73999A113.858976 113.858976 0 0 1 528.895886 614.350088c-0.854 4.729999-5.509999 31.524993-5.509998 51.638989s4.655999 46.90899 5.533998 51.662989a113.858976 113.858976 0 0 1 107.763977 113.589975c0 20.334996-7.972998 39.863991-9.679998 43.788991l68.973985 38.545992h0.146c1.024 0 1.95-0.365 2.317-0.585a200.849957 200.849957 0 0 1 26.428994-23.161995c22.088995-16.188997 43.079991-24.429995 62.414987-24.429995 19.552996 0 40.715991 8.387998 62.950986 24.917995 14.920997 11.068998 25.258995 22.185995 26.550995 23.575995m22.673995 108.397976c-13.774997-0.025-27.135994-5.704999-35.765993-15.213996-11.775997-12.896997-49.005989-46.44599-79.530982-46.44599-30.280993 0-68.119985 33.767993-78.993984 45.54399-8.606998 9.386998-21.869995 14.969997-35.498992 14.969997-6.484999 0-12.604997-1.243-18.187996-3.706l-0.975-0.414-92.69698-51.833988-0.926-0.683a44.46999 44.46999 0 0 1-14.920996-53.735989c0.049-0.146 8.532998-19.699996 8.532998-37.594992a98.376979 98.376979 0 0 0-98.254979-98.254978h-3.900999c-15.505997 0-28.159994-13.799997-32.182993-35.108993-0.341-1.706-7.923998-42.178991-7.923999-74.044984 0-31.913993 7.557998-72.361984 7.899999-74.117984 4.119999-21.576995 16.992996-35.449992 32.816993-35.083993h3.266999a98.400979 98.400979 0 0 0 98.279979-98.303978c0-17.846996-8.484998-37.399992-8.558998-37.619992a44.34899 44.34899 0 0 1 15.067996-53.661989l0.95-0.658 97.840979-53.759988 1.024-0.415c5.485999-2.364999 11.507998-3.534999 17.895996-3.534999 13.604997 0 26.891994 5.436999 35.595992 14.628997 11.580998 12.116997 48.17699 43.641991 77.774984 43.64199 29.354994 0 65.755986-30.914993 77.287983-42.812991 8.654998-8.996998 21.844995-14.335997 35.302992-14.335997 6.509999 0 12.653997 1.219 18.285997 3.657l0.974999 0.414 94.47698 52.516988 0.95 0.658c16.895996 11.751997 23.332995 34.889993 14.945997 53.735989-0.049 0.146-8.532998 19.699996-8.532999 37.545992a98.400979 98.400979 0 0 0 98.254979 98.279978h3.291c15.774997-0.341 28.719994 13.506997 32.816993 35.107993 0.317 1.707 7.899998 42.203991 7.899998 74.069984 0 31.889993-7.582998 72.410984-7.948998 74.117984-4.046999 21.551995-16.992996 35.424992-32.767993 35.059993h-3.291a98.400979 98.400979 0 0 0-98.254979 98.278978c0 17.846996 8.483998 37.449992 8.556999 37.619992a44.42199 44.42199 0 0 1-15.017997 53.710989l-0.927 0.683-96.133979 53.100988-0.975 0.415a44.88499 44.88499 0 0 1-17.846996 3.583999z m222.061952-705.339848a48.76199 48.76199 0 1 1-97.523979 0V121.977194c0-13.457997-10.873998-24.453995-24.307995-24.453995h-877.859811c-13.262997 0-24.306995 10.970998-24.306995 24.453995v584.995874c0 13.457997 10.873998 24.453995 24.307995 24.453995h219.500953a48.76199 48.76199 0 1 1 0 97.523979H48.907989A48.76199 48.76199 0 0 1 0 780.190052V48.76221C0 21.822215 21.893995 0.00022 48.907989 0.00022h1023.706781a48.76199 48.76199 0 0 1 48.907989 48.76199v268.189942zM219.427953 975.23701c0-26.940994 21.991995-48.76199 48.981989-48.761989h194.607959a48.76199 48.76199 0 1 1 0 97.523979H268.433942a48.76199 48.76199 0 0 1-49.005989-48.76199z" ></path></symbol><symbol id="icon-caidanguanli" viewBox="0 0 1024 1024"><path d="M414.2 78H158.6c-41.5 0-75.3 33.8-75.3 75.3v255.5c0 41.5 33.8 75.3 75.3 75.3h255.5c41.5 0 75.3-33.8 75.3-75.3V153.3c0-41.5-33.7-75.3-75.2-75.3z m5.2 330.8c0 2.9-2.4 5.3-5.3 5.3H158.6c-2.9 0-5.3-2.4-5.3-5.3V153.3c0-2.9 2.4-5.3 5.3-5.3h255.5c2.9 0 5.3 2.4 5.3 5.3v255.5zM414.2 544.8H158.6c-41.5 0-75.3 33.8-75.3 75.3v255.5c0 41.5 33.8 75.3 75.3 75.3h255.5c41.5 0 75.3-33.8 75.3-75.3V620.1c0-41.5-33.7-75.3-75.2-75.3z m5.2 330.8c0 2.9-2.4 5.3-5.3 5.3H158.6c-2.9 0-5.3-2.4-5.3-5.3V620.1c0-2.9 2.4-5.3 5.3-5.3h255.5c2.9 0 5.3 2.4 5.3 5.3v255.5zM908.8 119.3H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 343.8H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 568.3H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 792.8H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35z" ></path></symbol><symbol id="icon-jueseguanli" viewBox="0 0 1024 1024"><path d="M874.9 577.3c-26.1-27.2-56.8-48.9-90.3-64.1 5.4-4.6 10.6-9.6 15.5-14.8 32.3-34.7 50.1-79.8 50.1-127.2 0-102.9-83.7-186.7-186.7-186.7-11 0-21.8 0.9-32.5 2.8-7.1-9.6-14.9-18.7-23.4-27.2-44.6-44.6-103.9-69.2-167-69.2s-122.4 24.6-167 69.2-69.2 103.9-69.2 167 24.6 122.4 69.2 167c10.8 10.8 22.4 20.4 34.8 28.7-4.9 1.8-9.7 3.8-14.5 5.8-44.9 19-85.2 46.2-119.9 80.8-34.6 34.6-61.8 75-80.8 119.9-19.7 46.5-29.6 95.9-29.6 146.8 0 17.7 1.2 35.5 3.7 52.9l69.3-9.7c-2-14.2-3-28.7-3-43.1 0-169.4 137.8-307.1 307.1-307.1s307.1 137.8 307.1 307.1c0 14.4-1 28.9-3 43.1l69.3 9.7c2.4-17.4 3.7-35.2 3.7-52.9 0-50.9-10-100.3-29.6-146.8-19-44.9-46.2-85.2-80.8-119.9-34.6-34.6-74.9-61.8-119.9-80.8-4.8-2-9.7-4-14.6-5.8 12.3-8.4 24-18 34.8-28.7 44.6-44.6 69.2-103.9 69.2-167 0-25-3.9-49.4-11.3-72.6 63.4 1.1 114.7 53 114.7 116.6 0 45.5-26.6 85.6-65.3 104.7-16.3 8.1-26.8 24.4-26.8 42.6v1c0 21.2 14.1 40 34.6 45.5 94.9 25.8 163.8 112.4 163.8 215 0 10.5-0.7 21-2.2 31.3l69.3 9.7c1.9-13.5 2.9-27.3 2.9-41-0.1-75.8-29.1-147.8-81.7-202.6z m-434.3-84c-91.6 0-166.2-74.6-166.2-166.2S349 160.9 440.6 160.9s166.2 74.6 166.2 166.2-74.5 166.2-166.2 166.2z" ></path></symbol><symbol id="icon-zhiweiguanli" viewBox="0 0 1024 1024"><path d="M878.4 243.5h-91.2v-41.2c0-58.6-47.7-106.2-106.2-106.2H354.2c-58.6 0-106.2 47.7-106.2 106.2v41.2h-91.2c-43.2 0-78.4 35.1-78.4 78.4V856c0 43.2 35.1 78.4 78.4 78.4h721.5c43.2 0 78.4-35.1 78.4-78.4V321.8c0-43.2-35.1-78.3-78.3-78.3zM318 202.3c0-20 16.2-36.2 36.2-36.2H681c20 0 36.2 16.3 36.2 36.2v41.2H318v-41.2zM156.8 313.5h721.5c4.6 0 8.4 3.7 8.4 8.4V554H692.4c-14.8-45.3-57.4-78.2-107.6-78.2H450.4c-50.2 0-92.9 32.9-107.6 78.2H148.5V321.8c0-4.6 3.7-8.3 8.3-8.3zM628 588.9c0 23.8-19.4 43.2-43.2 43.2H450.4c-23.8 0-43.2-19.4-43.2-43.2 0-23.8 19.4-43.2 43.2-43.2h134.3c23.9 0 43.3 19.4 43.3 43.2z m250.4 275.5H156.8c-4.6 0-8.4-3.7-8.4-8.4V623.9h194.3c14.8 45.3 57.4 78.2 107.6 78.2h134.3c50.2 0 92.9-32.9 107.6-78.2h194.3V856c0.2 4.6-3.5 8.4-8.1 8.4z" ></path></symbol><symbol id="icon-bumenguanli" viewBox="0 0 1024 1024"><path d="M322.5 62h384.6v70H322.5z" ></path><path d="M870.2 62h-59.3v70h59.3c7.2 0 13 5.8 13 13v733.9c0 7.2-5.8 13-13 13h-720c-7.2 0-13-5.8-13-13V145c0-7.2 5.8-13 13-13h68.6V62h-68.6c-45.8 0-83 37.2-83 83v733.9c0 45.8 37.2 83 83 83h720c45.8 0 83-37.2 83-83V145c0-45.8-37.3-83-83-83z" ></path><path d="M295 806.2c-0.5-5.7-0.7-11.6-0.7-17.3 0-119 96.8-215.8 215.8-215.8S726 669.8 726 788.8c0 5.8-0.2 11.6-0.7 17.3l69.8 5.6c0.6-7.6 0.9-15.3 0.9-22.9 0-76.4-29.7-148.1-83.7-202.1-29.7-29.8-64.9-52.1-103.3-66.2 45.6-31.5 75.5-84.1 75.5-143.5 0-96.1-78.2-174.4-174.4-174.4-96.1 0-174.4 78.2-174.4 174.4 0 59.5 29.9 112 75.5 143.5C373 534.6 337.8 557 308 586.7c-54 54-83.7 125.8-83.7 202.1 0 7.6 0.3 15.3 0.9 22.9l69.8-5.5z m215.2-533.6c57.5 0 104.4 46.8 104.4 104.4 0 57.5-46.8 104.4-104.4 104.4-57.5 0-104.4-46.8-104.4-104.4 0-57.6 46.8-104.4 104.4-104.4z" ></path></symbol><symbol id="icon-gerenzhongxin" viewBox="0 0 1024 1024"><path d="M930.4 337.3c-22.7-53.7-55.2-101.9-96.6-143.3-41.4-41.4-89.6-73.9-143.3-96.6C634.9 73.9 575.9 62 515.1 62c-60.8 0-119.9 11.9-175.5 35.4-53.7 22.7-101.9 55.2-143.3 96.6-41.4 41.4-73.9 89.6-96.6 143.3-23.5 55.6-35.4 114.6-35.4 175.5 0 50.5 8.3 100.1 24.7 147.4l66.1-22.9c-13.8-39.9-20.8-81.8-20.8-124.5 0-209.9 170.8-380.7 380.7-380.7 209.9 0 380.8 170.8 380.8 380.7 0 41.6-6.7 82.5-19.8 121.5l66.3 22.3c15.6-46.2 23.5-94.7 23.5-143.9 0-60.8-11.9-119.8-35.4-175.4z" ></path><path d="M656.9 422.2c0-76.9-62.6-139.5-139.5-139.5s-139.5 62.6-139.5 139.5 62.6 139.5 139.5 139.5 139.5-62.6 139.5-139.5z m-209 0c0-38.3 31.2-69.5 69.5-69.5s69.5 31.2 69.5 69.5-31.2 69.5-69.5 69.5-69.5-31.2-69.5-69.5zM713.8 627.8c-62-27.2-128.1-40.9-196.4-40.9-69 0-135.7 14-198.2 41.7-60.4 26.7-114.1 64.9-159.5 113.3l-20.3 21.7 18.1 23.6c41.2 53.6 94.8 98 155 128.3 63.2 31.8 131.3 48 202.6 48 71.9 0 140.6-16.4 204.2-48.8 60.7-30.9 114.5-76 155.6-130.4l17.9-23.7-20.5-21.6c-45.3-47.6-98.6-85-158.5-111.2zM515.1 893.5c-109 0-210.3-45.3-282.5-125.4 77.7-71.9 177.7-111.2 284.8-111.2 105.8 0 204.9 38.4 282.2 108.8-72.2 81.6-174.3 127.8-284.5 127.8z" ></path></symbol><symbol id="icon-yonghuguanli" viewBox="0 0 1024 1024"><path d="M751.4 553.2c-42.5-38.5-92.1-67.1-145.5-84.6 53.2-38.9 87.8-101.8 87.8-172.7C693.7 178 597.7 82 479.8 82c-57.1 0-110.8 22.2-151.2 62.6C288.2 185 266 238.7 266 295.8s22.2 110.8 62.6 151.2c7.8 7.8 16.2 15 25 21.4-10.5 3.5-20.9 7.3-31.2 11.7-48.2 20.4-91.4 49.5-128.5 86.7s-66.3 80.4-86.7 128.5c-21.1 49.9-31.8 102.9-31.8 157.4 0 24.8 2.3 49.7 6.8 73.9l68.8-12.7c-3.7-20-5.6-40.6-5.6-61.2 0-184.4 150-334.4 334.4-334.4 83.2 0 163 30.8 224.5 86.6l47.1-51.7zM479.8 152c79.3 0 143.9 64.5 143.9 143.9s-64.5 143.9-143.9 143.9S336 375.2 336 295.9 400.5 152 479.8 152zM726.3 665.3h213.8v70H726.3zM503 831.6h437.1v70H503z" ></path></symbol><symbol id="icon-app" viewBox="0 0 1024 1024"><path d="M363.485867 865.117867h305.5616c21.6576 0 39.2192-17.194667 39.2192-38.4s-17.5616-38.4-39.2192-38.4H363.485867c-21.6576 0-39.2192 17.194667-39.2192 38.4s17.5616 38.4 39.2192 38.4z" fill="#A6ADB4" ></path><path d="M945.288533 699.835733a40.448 40.448 0 0 0-43.195733 43.1872v147.037867a46.865067 46.865067 0 0 1-45.960533 48.708267H166.766933a46.882133 46.882133 0 0 1-45.038933-48.708267v-147.029333a40.439467 40.439467 0 1 0-80.887467 0v147.029333a125.883733 125.883733 0 0 0 125.9264 128.657067h693.0432c70.203733-1.006933 126.4384-58.461867 125.9264-128.657067v-147.029333a40.430933 40.430933 0 0 0-40.448-43.195734zM40.840533 127.735467v147.959466a39.517867 39.517867 0 0 0 79.044267 0V127.735467a45.943467 45.943467 0 0 1 46.882133-47.786667h693.0432a46.882133 46.882133 0 0 1 45.960534 47.786667v147.959466a39.509333 39.509333 0 0 0 39.517866 39.509334 40.448 40.448 0 0 0 40.448-39.509334V127.735467C986.248533 58.052267 930.423467 1.024 860.7232 0H166.775467A125.934933 125.934933 0 0 0 40.840533 127.744z m168.4992 427.972266H326.229333L357.316267 640H418.133333L295.150933 315.733333h-52.701866L119.466667 640h60.817066l29.056-84.292267zM269.124267 392.533333L307.2 503.466667h-76.8l38.724267-110.933334z m231.552 131.959467h32.631466a123.246933 123.246933 0 0 0 88.192-28.535467c23.389867-19.959467 36.394667-49.134933 35.413334-79.488 1.6384-28.245333-9.838933-55.722667-31.249067-74.743466a127.573333 127.573333 0 0 0-84.0192-25.813334H443.733333V640h56.942934V524.4928zM503.466667 366.933333h32.136533c42.180267 0 61.602133 17.493333 61.602133 53.162667 1.092267 16.0256-4.8128 31.701333-16.068266 42.666667a71.364267 71.364267 0 0 1-51.5584 14.677333H503.466667V366.933333z m286.293333-51.0976H691.2V640h57.3184V524.4672h32.853333c31.837867 1.928533 63.189333-8.311467 87.381334-28.544 23.543467-19.959467 36.625067-49.152 35.643733-79.505067 1.536-28.100267-9.710933-55.441067-30.754133-74.752a131.84 131.84 0 0 0-83.882667-25.8304z m39.4752 147.131734a73.813333 73.813333 0 0 1-49.527467 14.72H750.933333V366.933333h32.119467c42.1632 0 61.576533 17.527467 61.576533 53.2736 1.262933 15.957333-4.394667 31.650133-15.394133 42.752z" fill="#A6ADB4" ></path></symbol><symbol id="icon-yepian" viewBox="0 0 1024 1024"><path d="M807.936 99.328c-17.408 0-32.256 9.216-40.448 23.552h-348.16L284.672 355.84l35.84 35.84 126.976-219.648h321.536c8.192 12.8 22.528 20.992 38.912 20.992 25.6 0 46.592-20.992 46.592-46.592s-20.992-47.104-46.592-47.104z" ></path><path d="M301.056 50.688c-8.704 14.848-7.68 32.768 0 46.592L127.488 399.36l134.656 232.448 48.64-13.312L183.808 399.36l160.256-279.04c15.36-1.024 29.696-9.216 37.888-23.04 12.8-22.528 5.12-50.688-17.408-63.488s-50.688-5.632-63.488 16.896z" ></path><path d="M15.872 467.456c8.704 14.848 24.064 23.552 40.448 23.552L228.352 793.6l268.8 1.536 13.312-48.64-253.44-1.536-159.232-279.552c6.656-13.312 7.168-30.208-1.024-44.032-12.8-22.528-40.96-30.208-63.488-17.408-22.528 12.8-30.208 40.96-17.408 63.488z" ></path><path d="M216.064 924.672c17.408 0 32.256-9.216 40.448-23.552h348.16l134.144-232.448-35.84-35.84-126.976 219.648H254.976c-8.192-12.8-22.528-20.992-38.912-20.992-25.6 0-46.592 20.992-46.592 46.592s20.992 46.592 46.592 46.592z" ></path><path d="M722.944 973.312c8.704-14.848 7.68-32.768 0-46.592l173.568-302.08-134.656-232.448-48.64 13.312 127.488 219.136-160.256 279.04c-15.36 1.024-29.696 9.216-37.888 23.04-12.8 22.528-5.12 50.688 17.408 63.488 22.016 13.312 50.176 5.632 62.976-16.896z" ></path><path d="M1008.128 556.544c-8.704-14.848-24.064-23.552-40.448-23.552L795.648 230.4l-268.8-1.536-13.312 48.64 253.44 1.536 159.232 279.552c-6.656 13.312-7.168 30.208 1.024 44.032 12.8 22.528 40.96 30.208 63.488 17.408 22.528-12.8 30.208-40.96 17.408-63.488zM512 391.168C445.44 391.168 391.168 445.44 391.168 512S445.44 632.832 512 632.832s120.832-54.272 120.832-120.832S578.56 391.168 512 391.168z m0 196.096c-41.472 0-75.264-33.792-75.264-75.264s33.792-75.264 75.264-75.264 75.264 33.792 75.264 75.264-33.792 75.264-75.264 75.264z" ></path></symbol><symbol id="icon-left-circle-fill" viewBox="0 0 1024 1024"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m104 316.9c0 10.2-4.9 19.9-13.2 25.9L457.4 512l145.4 105.2c8.3 6 13.2 15.6 13.2 25.9V690c0 6.5-7.4 10.3-12.7 6.5l-246-178c-4.4-3.2-4.4-9.7 0-12.9l246-178c5.3-3.8 12.7-0.1 12.7 6.5v46.8z" ></path></symbol><symbol id="icon-right-circle-fill" viewBox="0 0 1024 1024"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m154.7 454.5l-246 178c-5.3 3.8-12.7 0-12.7-6.5v-46.9c0-10.2 4.9-19.9 13.2-25.9L566.6 512 421.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.8 0 13z" ></path></symbol><symbol id="icon-xitongguanli" viewBox="0 0 1026 1024"><path d="M400.896 67.072H140.8c-24.064 0-46.592 11.264-59.392 29.696-9.216 12.8-14.848 27.648-14.848 44.544v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24V141.312c0.512-40.96-33.28-74.24-73.728-74.24z m0 361.984v9.216-9.216z m335.872 83.456c18.432 0 35.328-7.168 48.128-20.48L939.008 337.92c12.8-12.8 20.48-29.696 20.48-48.128s-7.168-35.328-20.48-48.128l-154.112-155.648c-26.112-26.112-70.656-26.112-96.256 0l-154.112 154.112c-12.8 12.8-20.48 29.696-20.48 48.128 0 18.432 7.168 35.328 20.48 48.128l154.112 154.112c12.8 14.336 29.184 22.016 48.128 22.016z m0-369.152l146.432 146.432-146.432 146.432-144.896-146.432L736.768 143.36z m-335.872 406.016H140.8c-40.96 0-74.24 33.28-74.24 74.24v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24v-259.584c0.512-40.448-33.28-74.24-73.728-74.24z m0 352.768v18.432-18.432z m484.352-352.768h-259.584c-40.96 0-74.24 33.28-74.24 74.24v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24v-259.584c0-40.448-33.792-74.24-74.24-74.24z" ></path></symbol><symbol id="icon-gongjianku" viewBox="0 0 1024 1024"><path d="M798.72 320v446.976H223.232V320H63.488v532.48c0 41.472 33.792 75.264 75.264 75.264h745.472c41.472 0 75.264-33.792 75.264-75.264v-532.48H798.72z" ></path><path d="M608.256 494.592z m-10.24-4.608z" ></path><path d="M819.2 96.256H203.776c-41.472 0-75.264 33.792-75.264 75.264V286.72h128v448h510.464V286.72h128V171.008c-0.512-41.472-34.304-74.752-75.776-74.752z m-154.112 493.056l-12.8 12.8c-12.8 12.8-33.28 12.8-46.08 0L477.184 473.088c-33.792 11.776-72.704 4.608-99.328-22.528-27.136-27.136-34.304-66.048-22.528-99.84l38.4 38.4c12.8 12.8 33.28 12.8 46.08 0l12.8-12.8c12.8-12.8 12.8-33.28 0-46.08L414.208 291.84c33.792-11.776 72.704-4.096 99.84 22.528 27.136 27.136 34.304 66.048 22.528 99.84l128.512 128.512c12.288 13.312 12.288 33.792 0 46.592z" ></path></symbol><symbol id="icon-fangfaku" viewBox="0 0 1024 1024"><path d="M256 170.496v170.496h512V170.496h85.504c23.552 0 42.496 18.944 42.496 42.496V896c0 23.552-18.944 42.496-42.496 42.496H170.496c-23.552 0-42.496-18.944-42.496-42.496V212.992c0-23.552 18.944-42.496 42.496-42.496H256z m256 513.024H256v83.456h256v-83.456zM768 491.52H256v83.456h512V491.52zM341.504 85.504h341.504V256H341.504V85.504z" ></path></symbol><symbol id="icon-shebeiku" viewBox="0 0 1024 1024"><path d="M960 491.52v380.416c0 26.112-23.04 47.616-52.224 47.616H116.224c-29.184 0-52.224-21.504-52.224-47.616V491.52c0-26.112 23.04-47.616 52.224-47.616h791.552c28.672 0 52.224 21.504 52.224 47.616z m-149.504 156.16H213.504V783.36h596.992v-135.68z m149.504-500.736v186.88c0 23.04-20.992 42.496-46.592 42.496H110.592c-25.6 0-46.592-18.944-46.592-42.496V146.944c0-23.04 20.992-42.496 46.592-42.496h802.304c26.112 0 47.104 18.944 47.104 42.496z m-671.744 25.6c-41.472 0-74.752 30.208-74.752 68.096s33.792 68.096 74.752 68.096S363.008 278.528 363.008 240.64s-33.792-68.096-74.752-68.096z m224.256 0c-41.472 0-74.752 30.208-74.752 68.096s33.792 68.096 74.752 68.096 74.752-30.208 74.752-68.096-33.792-68.096-74.752-68.096z" ></path></symbol><symbol id="icon-wenjian" viewBox="0 0 1024 1024"><path d="M273.54647 325.996013h476.395357c19.444708-2.046811 36.842605 11.769166 39.40112 30.702171 2.046811 19.444708-11.769166 36.330903-31.213874 38.377714-2.558514 0.511703-5.117029 0.511703-7.675543 0H273.54647c-10.234057-0.511703-19.956411-4.605326-26.608548-11.257463-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737 0.511703-19.956411 17.397897-35.307497 37.866011-34.284091v1.023406z m0 209.286467h476.395357c19.444708-2.046811 36.842605 11.769166 39.40112 30.702171 2.046811 19.444708-11.769166 36.330903-31.213874 38.377714-2.558514 0.511703-5.117029 0.511703-7.675543 0H273.54647c-9.722354 0-19.444708-3.58192-26.608548-10.234057-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737 0.511703-19.444708 17.397897-35.307497 37.354308-34.284091z m0 185.748136h324.931312c19.444708 0 35.307497 15.862788 35.307497 34.795794 0 19.444708-15.862788 34.795794-35.307497 34.795794H273.54647c-9.722354-0.511703-19.444708-4.093623-26.608548-10.74576-6.652137-6.140434-10.74576-14.839383-10.74576-24.050034 0.511703-19.444708 17.397897-35.307497 37.354308-34.795794zM135.898402 0.041294h96.71184c17.397897-0.511703 33.772388 8.187246 43.494742 22.514926l53.217097 82.38416c4.605326 7.16384 12.792571 11.769166 20.979817 11.257462h322.884501c8.698949 0 16.886194-4.093623 21.49152-11.257462l53.217097-82.38416c9.722354-14.32768 26.096846-23.026628 43.494742-22.514926h97.223543c53.7288-1.535109 98.246948 39.912823 100.293759 93.12992v837.657572c-2.046811 52.705394-46.56496 94.153325-100.293759 93.12992h-752.203196c-53.7288 1.535109-98.758651-39.912823-100.293759-92.618217V93.171214C37.139751 39.954117 82.169603-1.493814 135.898402 0.041294z m82.895863 70.103291H135.898402c-6.652137 0-13.304274 2.558514-18.421303 6.652138-4.605326 4.093623-7.16384 10.234057-7.16384 16.374491v837.657572c0.511703 13.304274 11.769166 23.538331 25.07344 23.026629h752.203196c6.652137 0 13.304274-2.558514 18.421303-6.652138 4.605326-4.093623 7.16384-10.234057 7.16384-16.374491V93.171214c0.511703-6.140434-2.046811-12.280868-7.16384-16.374491-5.117029-4.605326-11.257463-6.652137-18.421303-6.652138h-82.895862l-46.053257 70.614994c-18.933006 28.65536-51.681988 45.541554-86.477783 45.029851H350.813601c-34.795794 0.511703-67.544777-16.374491-86.477782-45.029851l-45.541554-70.614994zM399.425372 0.041294h225.149256c19.956411-0.511703 36.842605 15.351086 37.866011 34.795795-0.511703 19.956411-17.397897 35.307497-37.866011 34.795794H399.425372c-10.234057-0.511703-19.956411-4.093623-27.120251-10.74576-6.652137-6.140434-10.74576-15.351086-10.234057-24.050034C362.582767 15.39238 378.957258-0.470408 399.425372 0.041294z" ></path></symbol><symbol id="icon-bianjimoban" viewBox="0 0 1025 1024"><path d="M127.110228 701.648461q0 26.438928 18.812314 45.251241t46.268123 18.812314l253.203575 0 0 128.12711-318.284012 0q-26.438928 0-49.82721-9.660377t-40.675273-26.947368-26.947368-40.675273-9.660377-50.844091l0-637.584906q0-26.438928 9.660377-49.82721t26.947368-40.675273 40.675273-27.455809 49.82721-10.168818l766.728898 0q26.438928 0 49.82721 10.168818t40.675273 27.455809 27.455809 40.675273 10.168818 49.82721l0 187.106256-128.12711 1.016882q-2.033764-25.422046-19.829196-43.217478t-44.234359-17.795432l-637.584906 0q-27.455809 0-46.268123 18.812314t-18.812314 45.251241l0 382.347567zM1016.881827 501.322741q6.101291 9.151936 7.626614 23.388282t-10.677259 28.472691q-11.1857 14.236346-18.303873 21.354518l-8.135055 8.135055-105.75571-95.586892q5.084409-6.101291 14.236346-14.744786t14.236346-13.727905q14.236346-14.236346 30.506455-12.711023t27.455809 6.609732q12.202582 5.084409 26.438928 18.812314t22.3714 29.998014zM613.179742 789.100298q3.050645-3.050645 14.236346-16.270109t27.96425-32.540218 37.116187-42.200596 40.675273-46.268123q48.810328-54.911619 108.806356-122.025819l107.789474 95.586892q-59.996028 68.131082-108.806356 123.042701-20.337637 23.388282-40.675273 46.268123t-37.116187 41.183714-27.455809 29.998014-12.711023 13.727905q-9.151936 12.202582-25.422046 20.337637-7.118173 5.084409-21.354518 11.1857t-29.998014 12.202582-29.489573 10.677259-20.846077 5.59285q-26.438928 5.084409-23.388282-22.3714 1.016882-7.118173 4.067527-21.862959t6.609732-30.506455 7.118173-28.981132 5.59285-18.303873q5.084409-13.219464 17.286991-28.472691z" ></path></symbol><symbol id="icon-shanchu1" viewBox="0 0 1024 1024"><path d="M78.768011 168.230165c0-30.999918 24.230644-56.076722 54.15419-56.076722L403.692131 112.153443 403.692131 56.076722c0-30.999918 24.230644-56.076722 54.15419-56.076722l108.306335 0c29.923546 0 54.155214 25.076803 54.155214 56.076722l0 56.077745 270.768906 0c29.923546 0 54.15419 25.076803 54.15419 56.076722l0 56.076722L78.768011 224.307909 78.768011 168.230165zM891.076776 336.461352l0 112.153443 0 519.30746c0 30.923181-24.231667 56.077745-54.153167 56.077745L187.076392 1024c-29.923546 0-54.15419-25.154564-54.15419-56.077745L132.922201 448.614796 132.922201 336.461352l0-56.077745 758.154574 0L891.076776 336.461352zM349.53794 448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523 0-54.153167 25.153541-54.153167 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.153167 56.077745 29.923546 0 54.15419-25.154564 54.15419-56.077745L349.53794 448.614796zM566.153679 448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523 0-54.153167 25.153541-54.153167 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.153167 56.077745 29.923546 0 54.15419-25.154564 54.15419-56.077745L566.153679 448.614796zM782.770441 448.614796c0-30.923181-24.231667-56.076722-54.155214-56.076722s-54.15419 25.153541-54.15419 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.15419 56.077745s54.155214-25.154564 54.155214-56.077745L782.770441 448.614796z" ></path></symbol><symbol id="icon-edit" viewBox="0 0 1024 1024"><path d="M923.9 335.8c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.8-35.2-174.3-35.2S392.2 74.1 337 97.5c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3C75.3 391 63.5 449.7 63.5 510.1c0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c35.9-15.2 69.3-34.8 99.8-58.5l-0.1-0.1c9.1-7.4 14.8-18.6 14.8-31.2 0-22.3-18-40.3-40.3-40.3-9.2 0-17.7 3.1-24.5 8.3l-0.2-0.3c-62 47.9-139.7 76.4-223.9 76.4-202.3 0-366.9-164.6-366.9-366.9s164.7-366.9 367-366.9 366.9 164.6 366.9 366.9c0 66.2-17.6 128.3-48.4 182l0.4 0.2c-4.4 6.5-7 14.2-7 22.6 0 22.3 18 40.3 40.3 40.3 16 0 29.8-9.3 36.3-22.8l0.2 0.1c8.9-15.5 16.8-31.5 23.8-48.1 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.7-119.1-35.1-174.3z" ></path><path d="M693.7 626.5H507.6l-57.1 66.1h243.2zM663.2 411.4c7.5-7.6 7.5-23.5 0-31.3l-45.4-46.8c-7.7-7.6-22.9-7.6-30.4 0l-45.7 46.8 76.1 78.1 45.4-46.8zM328.8 614.5v78.1h76.1l197.5-218.7-76-77.9z" ></path></symbol><symbol id="icon-new" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M695.7 469.2h-139v-139c0-23.6-19.3-43-43-43-23.6 0-43 19.3-43 43v139h-139c-23.6 0-43 19.3-43 43s19.3 43 43 43h139v139c0 23.7 19.3 43 43 43 23.6 0 43-19.3 43-43v-139h139c23.6 0 43-19.3 43-43s-19.4-43-43-43z" ></path></symbol><symbol id="icon-biaoqianye1" viewBox="0 0 1024 1024"><path d="M345.557333 128l110.677334 168.405333H938.666667V896H85.333333V128h260.224zM299.52 213.333333H170.666667v597.333334h682.666666V381.738667H410.197333L299.52 213.333333z" fill="#222222" ></path><path d="M597.333333 136.533333c0-4.693333 3.541333-8.533333 7.893334-8.533333h325.546666c4.352 0 7.893333 3.84 7.893334 8.533333v68.266667c0 4.693333-3.541333 8.533333-7.893334 8.533333h-325.546666C600.874667 213.333333 597.333333 209.493333 597.333333 204.8V136.533333z" fill="#222222" ></path></symbol><symbol id="icon-biaoqianye" viewBox="0 0 1024 1024"><path d="M376.6 494.8c5.1 4.8 7.9 11.7 7.6 18.7 0.4 7.1-2.5 14-7.6 18.7-5.3 4.7-12.3 7.2-19.3 6.9h-69.6v235.1c0.2 7.4-2.9 14.4-8.4 19.1-5.5 5.4-12.9 8.3-20.5 8.1-7.6 0.3-15.1-2.7-20.5-8.1-5.3-4.9-8.2-11.9-8.1-19.1v-235H161c-7.2 0.3-14.2-2.3-19.3-7.3-5.2-4.8-8-11.7-7.6-18.7-0.3-7 2.5-13.7 7.6-18.3 5.3-4.8 12.2-7.3 19.3-7h198.4c6.3 0 12.4 2.5 17.2 6.9z m215.7 70.1c5.2 5.1 8 12.2 7.7 19.6v189.9c0.3 7.2-2.5 14.2-7.7 19.1-4.8 5.3-11.7 8.3-18.9 8.1-7.1 0.1-13.9-2.7-18.9-7.7-4.8-5.2-7.6-12-7.6-19.1-18 19.5-42.9 30.8-69.2 31.4-19.7 0.3-38.9-5.3-55.5-15.9-17.2-10.7-31.2-26.1-40.3-44.4-19.3-40.4-19.3-87.6 0-128 8.9-18.4 22.9-33.8 40.3-44.4 16-10.5 34.8-16.1 53.9-15.9 26.3-0.1 51.8 9.8 71.2 27.7-0.2-7.3 2.6-14.4 7.7-19.6 10.6-10.2 27.2-10.2 37.8 0l-0.5-0.8z m-61.2 168.7c24.1-31.6 24.1-75.6 0-107.2-11.5-14.3-28.9-22.3-47.1-21.6-17.9-0.5-35.1 7.4-46.3 21.6-12.1 15-18.5 34-18.1 53.4-0.6 19.5 5.7 38.6 17.7 53.8 11.6 13.9 28.8 21.7 46.7 21.2 18.1 0.4 35.3-7.4 47.1-21.2zM835.4 573c17.1 10.7 31 25.9 40.3 44 9.9 19.8 14.9 41.8 14.5 64 0.4 22.3-4.6 44.4-14.5 64.4-9 18.3-23 33.7-40.3 44.4-16 10.6-34.8 16.1-53.9 15.9-13.9 0.2-27.7-2.9-40.3-9-11.6-5-22.1-12.2-31-21.2v2.8c0.2 7.2-2.5 14.2-7.5 19.4-5 5.1-11.9 8-19.1 7.9-7.1 0.3-14-2.5-18.9-7.7-5.2-5.1-8-12.2-7.6-19.6V497.2c-0.2-7.3 2.5-14.4 7.6-19.6 10.6-10.3 27.2-10.3 37.8 0 5.1 5.2 7.9 12.2 7.6 19.6v93.3c8-9.8 18-17.7 29.4-23.2 12.4-6.8 26.2-10.3 40.3-10.2 19.7-0.2 39 5.3 55.6 15.9z m-15.7 163c12.2-15.1 18.6-34.3 18.1-53.8 0.6-19.4-5.7-38.3-17.7-53.4-12-13.4-29-21.1-46.9-21.1s-34.9 7.7-46.9 21.1c-24.1 31.6-24.1 75.6 0 107.2 11.6 14.1 29 22.1 47.1 21.6 18.3-0.2 35.4-9.1 46.3-24v2.4zM708.1 253.5c-15.5 0-28-12.5-28-28V113.4c-0.1-8 0-15.9 0-23.8V77.9c0-15.5 12.5-28 28-28H886c17 0 32.9 6.6 45 18.6 11.3 11.3 17.8 26 18.6 41.8 0.1 0.7 0.1 1.4 0.1 2.1v113.2c0 15.5-12.5 28-28 28H708.1z m28-56h157.4v-84.1c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.4-2.2-5.4-2.2H736.1v91.7zM371.9 254.6c-15.5 0-28-12.5-28-28V78.9c0-15.4 12.5-27.9 27.9-28l213.4-1.1h0.1c17 0 32.9 6.6 45 18.6 12 12.1 18.6 28 18.6 45v113.2c0 15.5-12.5 28-28 28h-249z m28-56.1h193v-85.2c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.3-2.2-5.3-2.2l-185.5 0.9v91.9z" fill="#595959" ></path><path d="M72.4 974.2c-17.3 0-33.5-6.7-45.7-18.7-12.2-12.1-18.9-28.1-18.9-45.1V113.6c0-35.2 29-63.8 64.6-63.8h169c17.3 0 33.5 6.6 45.7 18.7 12.2 12 18.9 28.1 18.9 45.1V283c0 2 0.8 3.9 2.3 5.4 1.5 1.4 3.4 2.2 5.4 2.2h637.9c17.3 0 33.5 6.6 45.7 18.7 12.2 12 18.9 28 18.9 45.1v556c0 17.1-6.7 33.1-18.9 45.1s-28.4 18.7-45.7 18.7H72.4z m7.7-860.6c-4.3 0-7.7 3.4-7.7 7.6v788.7c0 2 0.8 4 2.3 5.4 1.4 1.4 3.4 2.2 5.4 2.2h871.5c2.1 0 4-0.8 5.4-2.2 1.5-1.4 2.3-3.3 2.3-5.4V350.6c0-2-0.8-3.9-2.2-5.3-1.5-1.5-3.4-2.3-5.4-2.3h-638c-17.3 0-33.5-6.7-45.7-18.7-12.2-12-18.9-28.1-18.9-45.1V121.1c0-2-0.8-3.9-2.3-5.4-1.4-1.4-3.4-2.2-5.4-2.2H80.1z" fill="#595959" ></path></symbol><symbol id="icon-buzhou" viewBox="0 0 1024 1024"><path d="M488.106667 792.462222h257.137777a28.444444 28.444444 0 0 0 28.444445-28.444444 28.444444 28.444444 0 0 0-28.444445-28.444445H488.106667a28.444444 28.444444 0 0 0-28.444445 28.444445 28.444444 28.444444 0 0 0 28.444445 28.444444zM242.346667 764.017778A80.782222 80.782222 0 1 0 341.333333 686.08v-96.142222a80.213333 80.213333 0 0 0 0-155.875556V337.92a80.782222 80.782222 0 1 0-39.822222 0v96.142222a80.213333 80.213333 0 0 0 0 155.875556v96.142222a80.782222 80.782222 0 0 0-59.164444 77.937778zM284.444444 259.982222a40.96 40.96 0 0 1 81.92 0 40.391111 40.391111 0 0 1-40.391111 40.96 40.391111 40.391111 0 0 1-41.528889-40.96zM284.444444 512a40.96 40.96 0 1 1 40.96 40.96A40.96 40.96 0 0 1 284.444444 512z m40.391112 211.057778a40.391111 40.391111 0 0 1 40.391111 40.96 40.96 40.96 0 0 1-81.92 0 40.391111 40.391111 0 0 1 39.253333-40.96zM488.106667 540.444444h257.137777a28.444444 28.444444 0 1 0 0-56.888888H488.106667a28.444444 28.444444 0 1 0 0 56.888888zM488.106667 288.426667h257.137777a28.444444 28.444444 0 0 0 28.444445-28.444445 28.444444 28.444444 0 0 0-28.444445-28.444444H488.106667a28.444444 28.444444 0 0 0-28.444445 28.444444 28.444444 28.444444 0 0 0 28.444445 28.444445z" fill="#151515" ></path><path d="M859.022222 79.644444H164.977778a22.755556 22.755556 0 0 0-22.755556 22.755556v819.2a22.755556 22.755556 0 0 0 22.755556 22.755556h694.044444a22.755556 22.755556 0 0 0 22.755556-22.755556V102.4a22.755556 22.755556 0 0 0-22.755556-22.755556z m-22.755555 819.2H187.733333V125.155556h648.533334z" fill="#151515" ></path></symbol><symbol id="icon-ok" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M715.6 371.6c-15.7-15.7-41.4-15.7-57 0l-196 196-95.9-95.9c-15.7-15.7-41.4-15.7-57 0-15.7 15.7-15.7 41.4 0 57l124.5 124.5c15.7 15.7 41.4 15.7 57 0l224.5-224.5c15.6-15.7 15.6-41.4-0.1-57.1z" ></path></symbol><symbol id="icon-cancel" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M697.9 329.1c-15.6-15.6-41-15.6-56.6 0L513 457.4 384.7 329.1c-15.6-15.6-41-15.6-56.6 0-15.6 15.6-15.6 41 0 56.6L456.4 514 328.1 642.3c-15.6 15.6-15.6 41 0 56.6 15.6 15.6 41 15.6 56.6 0L513 570.6l128.3 128.3c15.6 15.6 41 15.6 56.6 0 15.6-15.6 15.6-41 0-56.6L569.6 514l128.3-128.3c15.6-15.6 15.6-41.1 0-56.6z" ></path></symbol><symbol id="icon-savebaocun" viewBox="0 0 1024 1024"><path d="M778.7 97.2H247.3C165 97.2 98 164.3 98 246.7v532.2c0 82.4 67 149.4 149.3 149.4h531.5c82.3 0 149.3-67 149.3-149.4V246.7C928 164.3 861 97.2 778.7 97.2z m-452.2 79.9h373.1v83.7H331.9c-2.9 0-5.5-2.6-5.5-5.5v-78.2z m373 671.3h-373v-225h373.1v225z m148.7-69.6c0 38.1-30.8 69.2-68.8 69.5V612.9c0-38.3-31.1-69.4-69.3-69.4H316c-38.2 0-69.3 31.1-69.3 69.4v235.4c-38-0.3-68.8-31.4-68.8-69.5V246.7c0-38.1 30.8-69.2 68.8-69.5v78.2c0 47.1 38.3 85.4 85.3 85.4h378c38.2 0 69.3-31.1 69.3-69.4v-94.2c38 0.3 68.8 31.4 68.8 69.5v532.1z" ></path></symbol><symbol id="icon-shijianxian2" viewBox="0 0 1024 1024"><path d="M171.52 924.16v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z m0-322.56v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z m0-394.24v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z" ></path><path d="M350.72 350.72c0 79.36-64 143.36-143.36 143.36s-143.36-64-143.36-143.36 64-143.36 143.36-143.36 143.36 64 143.36 143.36z m-143.36-71.68c-39.424 0-71.68 32.256-71.68 71.68s32.256 71.68 71.68 71.68 71.68-32.256 71.68-71.68-32.256-71.68-71.68-71.68z m143.36 430.08c0 79.36-64 143.36-143.36 143.36s-143.36-64-143.36-143.36 64-143.36 143.36-143.36 143.36 64 143.36 143.36z m-143.36-71.68c-39.424 0-71.68 32.256-71.68 71.68s32.256 71.68 71.68 71.68 71.68-32.256 71.68-71.68-32.256-71.68-71.68-71.68z m716.8-286.72h-501.76c-19.968 0-35.84-15.872-35.84-35.84s15.872-35.84 35.84-35.84h501.76c19.968 0 35.84 15.872 35.84 35.84s-15.872 35.84-35.84 35.84z m-284.672 107.52H420.352c-18.432 0-33.792-15.36-33.792-33.792v-4.096c0-18.432 15.36-33.792 33.792-33.792h219.136c18.432 0 33.792 15.36 33.792 33.792v4.096c0 18.432-15.36 33.792-33.792 33.792z m284.672 250.88h-501.76c-19.968 0-35.84-15.872-35.84-35.84s15.872-35.84 35.84-35.84h501.76c19.968 0 35.84 15.872 35.84 35.84s-15.872 35.84-35.84 35.84z m-284.672 107.52H420.352c-18.432 0-33.792-15.36-33.792-33.792v-4.096c0-18.432 15.36-33.792 33.792-33.792h219.136c18.432 0 33.792 15.36 33.792 33.792v4.096c0 18.432-15.36 33.792-33.792 33.792z" ></path></symbol><symbol id="icon-buzhoutiao" viewBox="0 0 1024 1024"><path d="M0 0h1024v1024H0z" fill="#FFFFFF" fill-opacity="0" ></path><path d="M204 372c66.31 0 121.852 46.1 136.326 108h137.53c12.901-33.907 45.71-58 84.144-58 38.435 0 71.243 24.093 84.145 58h139.71c12.902-33.907 45.71-58 84.145-58 49.706 0 90 40.294 90 90s-40.294 90-90 90c-38.434 0-71.242-24.092-84.144-57.998H646.144C633.242 577.908 600.434 602 562 602c-38.434 0-71.242-24.092-84.144-57.998h-137.53C325.852 605.9 270.309 652 204 652c-77.32 0-140-62.68-140-140s62.68-140 140-140z m0 64c-41.974 0-76 34.026-76 76s34.026 76 76 76 76-34.026 76-76-34.026-76-76-76z m358 50c-14.36 0-26 11.64-26 26s11.64 26 26 26 26-11.64 26-26-11.64-26-26-26z m308 0c-14.36 0-26 11.64-26 26s11.64 26 26 26 26-11.64 26-26-11.64-26-26-26z" fill="#666666" ></path></symbol><symbol id="icon-m-qianming" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M573.44 646.656l-3.072 6.144c-8.192 12.288-14.336 25.088-19.456 38.912-6.656 18.944-3.072 36.352 16.896 43.008 34.816 11.264 72.704 9.216 106.496-4.608 9.216-3.072 11.264-4.096 34.304-12.8 16.384-6.656 33.792-12.8 51.2-17.408 1.024 0 2.048-0.512 3.072-1.024 10.24-2.048 6.656-5.632 16.896 1.024 3.584 3.072 8.704 4.096 13.312 3.072 4.608-1.024 5.632-3.072 8.192-7.68 5.632-8.192 3.584-19.456-4.608-25.088-18.944-12.8-22.528-10.24-41.472-6.144-1.536 0.512-3.072 0.512-4.096 1.024-18.944 5.12-37.376 11.264-55.808 18.432-22.016 8.704-24.064 9.728-32.768 12.288-24.576 10.24-52.224 12.8-78.336 6.144 4.608-11.264 10.24-22.016 16.896-32.256 1.536-2.048 2.56-4.096 3.584-6.144 8.704-13.824 15.36-29.184 18.432-45.056 4.096-19.456-7.68-38.4-27.136-42.496-0.512 0-1.536-0.512-2.048-0.512-27.648-6.656-59.392 3.072-148.992 37.888-81.92 32.256-117.76 41.984-129.024 35.84-4.096-2.56-8.704-3.072-13.312-1.536-9.728 2.56-15.36 12.8-12.8 22.016 1.024 4.608 4.096 8.192 8.192 10.752 23.04 8.704 48.64 7.68 71.168-2.048 29.696-9.216 59.392-19.456 88.064-32.256 77.824-30.72 111.104-40.448 126.976-36.352 3.072 1.024 3.072 0 2.56 3.072-2.56 12.288-7.168 23.552-13.312 33.792zM665.088 235.52c-19.456-17.92-49.664-17.408-68.608 1.024L312.32 519.68c-2.048 2.048-3.584 4.608-4.608 7.68l-22.528 80.896c-2.56 9.728 3.072 19.456 12.8 21.504 3.584 1.024 7.68 0.512 11.264-0.512l71.168-29.696c5.632-2.56 10.752-5.632 15.36-10.24l283.648-269.824 2.56-2.56c18.432-19.456 17.92-50.176-2.048-68.608l-1.024-1.024-13.824-11.776z" ></path></symbol><symbol id="icon-touxiang_avatar" viewBox="0 0 1024 1024"><path d="M925.866667 797.866667c-12.8-25.6-34.133333-46.933333-64-64-29.866667-21.333333-68.266667-34.133333-119.466667-42.666667-4.266667 0-29.866667-4.266667-59.733333-12.8-21.333333-4.266667-34.133333-8.533333-38.4-12.8v-17.066667c4.266667-51.2 29.866667-76.8 55.466666-106.666666 8.533333-8.533333 17.066667-21.333333 25.6-29.866667 29.866667-42.666667 34.133333-89.6 34.133334-98.133333 0-8.533333 0-17.066667-4.266667-21.333334-4.266667-8.533333-8.533333-12.8-12.8-21.333333 0-12.8 4.266667-21.333333 4.266667-29.866667 0-21.333333 4.266667-55.466667-4.266667-89.6 0-8.533333-4.266667-12.8-4.266667-21.333333-8.533333-25.6-17.066667-46.933333-34.133333-68.266667-4.266667-12.8-64-72.533333-234.666667-85.333333H401.066667c-4.266667 0-17.066667 0-25.6 4.266667-21.333333 4.266667-38.4 21.333333-42.666667 42.666666v21.333334c-8.533333 8.533333-55.466667 51.2-55.466667 102.4-4.266667 34.133333-4.266667 85.333333 0 123.733333-8.533333 8.533333-17.066667 21.333333-12.8 42.666667 0 12.8 4.266667 55.466667 34.133334 98.133333 8.533333 8.533333 17.066667 17.066667 25.6 29.866667 25.6 29.866667 51.2 55.466667 55.466666 106.666666v17.066667c-4.266667 4.266667-17.066667 8.533333-38.4 12.8-29.866667 8.533333-59.733333 12.8-64 12.8-46.933333 8.533333-85.333333 21.333333-115.2 42.666667-25.6 17.066667-46.933333 38.4-64 64-25.6 38.4-25.6 76.8-25.6 85.333333v21.333333c0 25.6 21.333333 46.933333 46.933334 46.933334H896c25.6 0 46.933333-21.333333 46.933333-46.933334v-17.066666c8.533333-12.8 8.533333-51.2-17.066666-89.6z m-546.133334-128c0 4.266667 0 4.266667 0 0v4.266666c-4.266667 0-4.266667 0 0-4.266666z m503.466667 213.333333l-742.4 4.266667v-4.266667s0-25.6 12.8-51.2c8.533333-17.066667 25.6-29.866667 42.666667-42.666667 25.6-17.066667 55.466667-25.6 89.6-34.133333 4.266667 0 34.133333-4.266667 68.266666-12.8 51.2-12.8 76.8-29.866667 85.333334-46.933333 0-4.266667 0-4.266667 4.266666-8.533334v-42.666666c-8.533333-72.533333-42.666667-115.2-72.533333-145.066667-8.533333-8.533333-12.8-17.066667-21.333333-21.333333-21.333333-29.866667-21.333333-59.733333-21.333334-64l4.266667-4.266667 8.533333-8.533333c4.266667-17.066667 0-25.6 0-29.866667-4.266667-34.133333-4.266667-81.066667 0-119.466667 0-29.866667 29.866667-55.466667 29.866667-55.466666 8.533333-4.266667 17.066667-12.8 21.333333-21.333334 0-4.266667 4.266667-4.266667 4.266667-8.533333v-25.6H465.066667c140.8 8.533333 192 59.733333 192 59.733333 8.533333 12.8 17.066667 25.6 21.333333 42.666667 4.266667 4.266667 4.266667 8.533333 4.266667 12.8 4.266667 29.866667 4.266667 55.466667 4.266666 76.8 0 12.8 0 21.333333-4.266666 38.4 0 12.8 0 25.6 8.533333 29.866667l4.266667 4.266666 4.266666 4.266667s0 34.133333-21.333333 64c-4.266667 8.533333-12.8 12.8-21.333333 21.333333-29.866667 29.866667-64 72.533333-72.533334 145.066667v42.666667c0 4.266667 0 4.266667 4.266667 8.533333 8.533333 21.333333 34.133333 34.133333 85.333333 46.933333 34.133333 8.533333 64 12.8 68.266667 12.8 38.4 8.533333 68.266667 17.066667 93.866667 34.133334 17.066667 12.8 34.133333 25.6 42.666666 42.666666 8.533333 25.6 8.533333 51.2 4.266667 55.466667z" ></path></symbol><symbol id="icon-m-mianban" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M884.15744 348.01152v49.152h-745.984v-49.152z" ></path><path d="M356.43392 846.99136h-49.152v-450.048h49.152z" ></path></symbol><symbol id="icon-m-xialakuang" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M510.464 639.488l207.872-254.976H302.08z" ></path></symbol><symbol id="icon-m-biaodan" viewBox="0 0 1024 1024"><path d="M122.88 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384H122.88c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H137.216c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M244.224 279.04h142.848v49.152H244.224zM244.224 425.472h142.848v49.152H244.224zM436.736 279.04h342.528v49.152H436.736zM436.736 425.472h342.528v49.152H436.736zM244.224 572.416h142.848v49.152H244.224zM436.736 572.416h342.528v172.544H436.736z" ></path></symbol><symbol id="icon-m-biaoge" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M249.344 347.648h49.152v499.2h-49.152zM584.704 347.648h49.152v499.2h-49.152zM137.728 165.888h746.496v181.76H137.728z" ></path><path d="M137.728 481.792h746.496v49.152H137.728zM137.728 664.576h746.496v49.152H137.728z" ></path></symbol><symbol id="icon-dashboard-o" viewBox="0 0 1024 1024"><path d="M880 622c17.673 0 32 14.327 32 32v226c0 17.673-14.327 32-32 32H582c-17.673 0-32-14.327-32-32V654c0-17.673 14.327-32 32-32h298zM442 476c17.673 0 32 14.327 32 32v372c0 17.673-14.327 32-32 32H144c-17.673 0-32-14.327-32-32V508c0-17.673 14.327-32 32-32h298z m406 210H614v162h234V686zM410 540H176v308h234V540z m470-428c17.673 0 32 14.327 32 32v372c0 17.673-14.327 32-32 32H582c-17.673 0-32-14.327-32-32V144c0-17.673 14.327-32 32-32h298z m-32 64H614v308h234V176z m-406-64c17.673 0 32 14.327 32 32v226c0 17.673-14.327 32-32 32H144c-17.673 0-32-14.327-32-32V144c0-17.673 14.327-32 32-32h298z m-32 64H176v162h234V176z" fill="#000000" fill-opacity=".65" ></path></symbol><symbol id="icon-line-layoutmasonryfensanbuju" viewBox="0 0 1024 1024"><path d="M896 128H128c-25.6 0-42.666667 17.066667-42.666667 42.666667v682.666666c0 25.6 17.066667 42.666667 42.666667 42.666667h768c25.6 0 42.666667-17.066667 42.666667-42.666667V170.666667c0-25.6-17.066667-42.666667-42.666667-42.666667zM170.666667 213.333333h298.666666v341.333334H170.666667V213.333333z m0 597.333334v-170.666667h298.666666v170.666667H170.666667z m682.666666 0h-298.666666v-341.333334h298.666666v341.333334z m0-426.666667h-298.666666V213.333333h298.666666v170.666667z" fill="#09121F" ></path></symbol><symbol id="icon-zidingyibuju" viewBox="0 0 1024 1024"><path d="M0 0v256h1024V0z m960 192H64V64h896zM0 1024h512V320H0z m64-640h384v576H64zM576 576h448v-256H576z m64-192h320v128H640zM576 1024h448V640H576z m64-320h320v256H640z" fill="#575869" ></path></symbol><symbol id="icon-daochu" viewBox="0 0 1024 1024"><path d="M394.6 689.8c-13.2 3.2-27.4-9.5-31.7-23.2-8.4-28.5-12.7-58.6-12.7-88.1 0-159.4 151.5-325.1 314.1-352.1v-5.3c0-1.6 0-3.7 0.5-5.3l0.5-2.1c1.6-11.6 5.8-38.5 32.2-55.4 10.6-6.9 22.2-10 34.3-10 14.8 0 26.9 5.3 34.3 9.5 1.6 0.5 2.6 1.6 4.2 2.6L929.2 286c17.4 13.2 28 34.8 28 57 0 22.7-10.6 44.3-28.5 57.5L770.5 525.7c-11.6 9-25.3 13.7-39.1 13.7-12.1 0-23.8-3.7-34.8-10.6-21.1-13.7-31.7-34.8-31.7-64.4v-1.1C559.3 475 442.2 569 416.3 657.6c-4.8 14.3-13.7 32.2-21.7 32.2z m335.7-466.6V256c0 17.4-13.7 31.7-31.1 32.7-125.6 6.9-257.6 131.4-279.7 254.4C486 458.7 595.2 390 699.7 397.4c17.4 1.1 30.6 15.3 30.6 32.7V465c0 4.7 0.5 6.9 0.5 7.9l157.3-124.6c2.1-1.6 2.6-3.2 2.6-5.3 0-2.1-1.1-4.2-2.6-5.3L731.9 214.3c-1.1 1.6-1.6 5.8-2.1 8.4l0.5 0.5z m0 0" ></path><path d="M715.6 916.3H188.3c-67 0-121.9-54.9-121.9-121.9v-568c0-67 54.9-121.9 121.9-121.9h436.5v69.7H188.3c-28.5 0-52.3 23.2-52.3 52.3V795c0 28.5 23.2 52.3 52.3 52.3h527.3c28.5 0 52.3-23.2 52.3-52.3V593.2H837v201.6c0 66.6-54.4 121.5-121.4 121.5z m0 0" ></path><path d="M183 566.9h112.4V626H183v-59.1z m0 154.1h296.1v59.1H183V721z m0-425.4h237v59.1H183v-59.1z m0 140.9h112.4v59.1H183v-59.1z m0 0" ></path></symbol><symbol id="icon-daoru" viewBox="0 0 1024 1024"><path d="M111.6 148.8c7.9 0 16.9 17.9 21.6 32.2 25.9 88.7 143 182.6 248.6 194.2v-1.1c0-29.6 10.6-50.7 31.7-64.4 11.1-6.9 22.7-10.6 34.8-10.6 13.7 0 27.4 4.8 39.1 13.7L645.8 438c17.9 13.2 28.5 34.8 28.5 57.5 0 22.2-10.6 43.8-28 57L487.4 678.2c-1.6 1.1-2.6 2.1-4.2 2.6-7.4 4.2-19.5 9.5-34.3 9.5-12.1 0-23.7-3.2-34.3-10-26.4-16.9-30.6-43.8-32.2-55.4l-0.5-2.1c-0.5-1.6-0.5-3.7-0.5-5.3v-5.3c-162.6-26.9-314.1-192.6-314.1-352 0-29.6 4.2-59.6 12.7-88.1 4.2-13.8 18.4-26.5 31.6-23.3z m335.2 467.1c0.5 2.6 1.1 6.9 2.1 8.4l156.2-123.5c1.6-1.1 2.6-3.2 2.6-5.3 0-2.1-0.5-3.7-2.6-5.3L447.8 365.7c0 1.1-0.5 3.2-0.5 7.9v34.8c0 17.4-13.2 31.7-30.6 32.7-104.5 7.4-213.8-61.2-280.3-145.7 22.2 123 154.1 247.5 279.7 254.4 17.4 1.1 31.1 15.3 31.1 32.7v32.7l-0.4 0.7z m0.5-0.5" ></path><path d="M309 916.3c-67 0-121.4-54.9-121.4-121.4V593.2h69.1v201.6c0 29 23.8 52.3 52.3 52.3h527.3c29 0 52.3-23.8 52.3-52.3V226.4c0-29-23.8-52.3-52.3-52.3H399.8v-69.7h436.5c67 0 121.9 54.9 121.9 121.9v567.9c0 67-54.9 121.9-121.9 121.9H309v0.2z m0 0" ></path><path d="M841.6 626H729.1v-59.1h112.4V626z m0 154.1H545.5V721h296.1v59.1z m0-425.4h-237v-59.1h237v59.1z m0 140.9H729.1v-59.1h112.4v59.1z m0-59.1" ></path></symbol><symbol id="icon-a-juxing1851" viewBox="0 0 1024 1024"><path d="M0 0h438.857143v1024H0V0z m512 0h512v438.857143H512V0z m0 512h219.428571v219.428571H512V512z m292.571429 0h219.428571v219.428571h-219.428571V512z m-292.571429 292.571429h73.142857v73.142857H512v-73.142857z m146.285714 0h73.142857v73.142857H658.285714v-73.142857z m-146.285714 146.285714h73.142857v73.142857H512v-73.142857z m146.285714 0h73.142857v73.142857H658.285714v-73.142857z m146.285715 0h73.142857v73.142857h-73.142857v-73.142857z m146.285714 0h73.142857v73.142857h-73.142857v-73.142857z m-146.285714-146.285714h73.142857v73.142857h-73.142857v-73.142857z m146.285714 0h73.142857v73.142857h-73.142857v-73.142857z" ></path></symbol><symbol id="icon-sxsz" viewBox="0 0 1024 1024"><path d="M304.5 152.6h415L927 512 719.5 871.4h-415L97 512z" fill="#386BF3" ></path><path d="M512 512m-145.25 0a145.25 145.25 0 1 0 290.5 0 145.25 145.25 0 1 0-290.5 0Z" fill="#3D4265" ></path></symbol><symbol id="icon-mx" viewBox="0 0 1024 1024"><path d="M511.9 325.12v248.55L727.15 449.4l-0.01-248.55z" fill="#C3D2FB" ></path><path d="M296.65 200.85L511.9 325.12v248.56L296.65 449.4z" fill="#3D4265" ></path><path d="M511.9 325.12l215.25-124.27L511.9 76.57 296.65 200.85z" fill="#386BF3" ></path><path d="M296.62 698.02v248.55L511.87 822.3l-0.01-248.56z" fill="#C3D2FB" ></path><path d="M81.37 573.74l215.25 124.28v248.55L81.37 822.3z" fill="#3D4265" ></path><path d="M296.62 698.02l215.25-124.28-215.25-124.27L81.37 573.74z" fill="#386BF3" ></path><path d="M727.03 698.02v248.55L942.28 822.3l-0.01-248.56z" fill="#C3D2FB" ></path><path d="M511.78 573.74l215.25 124.28v248.55L511.78 822.3z" fill="#3D4265" ></path><path d="M727.03 698.02l215.25-124.28-215.25-124.27-215.25 124.27z" fill="#386BF3" ></path></symbol><symbol id="icon-al" viewBox="0 0 1024 1024"><path d="M192 132h440v640H192z" fill="#386BF3" ></path><path d="M632 260h200v512H632z" fill="#C3D2FB" ></path><path d="M398.86 612L512 725.14 625.14 612H912v280H112V612z" fill="#3D4265" ></path></symbol><symbol id="icon-sf" viewBox="0 0 1024 1024"><path d="M511.82 512.5v435L888.54 730l-0.02-435z" fill="#C3D2FB" ></path><path d="M135.1 295l376.72 217.5v435L135.1 730z" fill="#3D4265" ></path><path d="M511.82 512.5L888.54 295 511.82 77.5 135.1 295z" fill="#386BF3" ></path></symbol><symbol id="icon-moxing" viewBox="0 0 1061 1024"><path d="M447.122 467.332L49.24 268.162A33.501 33.501 0 0 0 0.136 300.745v441.02a33.042 33.042 0 0 0 16.062 27.994l396.965 248.275a33.96 33.96 0 0 0 17.438 5.507 33.042 33.042 0 0 0 33.043-33.042V497.162a33.042 33.042 0 0 0-16.522-29.83z m598.889-203.76a33.042 33.042 0 0 0-31.666 0l-463.507 203.76a33.042 33.042 0 0 0-19.733 30.289v493.337a33.042 33.042 0 0 0 49.563 28.453l463.048-265.255a33.042 33.042 0 0 0 16.521-28.453V291.566a33.042 33.042 0 0 0-14.226-27.994z m-54.611-84.9a33.042 33.042 0 0 0-22.487-29.83L550.838 1.53a32.583 32.583 0 0 0-19.733 0L83.659 158.021a33.042 33.042 0 0 0-4.13 61.036l397.882 199.17a33.501 33.501 0 0 0 14.685 3.213 33.96 33.96 0 0 0 13.31 0L969.37 215.845a33.042 33.042 0 0 0 22.029-37.173z" fill="#5E5C5C" ></path></symbol><symbol id="icon-yanzhengyanzhengma" viewBox="0 0 1024 1024"><path d="M943.1 172c-2.4-0.2-245.1-25.3-413.8-147.8-5.1-3.7-11-5.6-17.3-5.6-6.2 0-12.2 1.9-17.3 5.6C326.9 146 83.3 171.8 80.9 172c-15.2 1.4-26.6 14.1-26.6 29.3 0 6.7 0.6 165.8 54.8 344.4 32.1 105.8 76.4 196.4 131.9 269.2 70.3 92.3 158.5 156 262 189.2 2.9 0.9 5.9 1.4 9 1.4s6.1-0.5 8.9-1.4c103.6-33.2 191.7-96.8 262-189.2 55.4-72.7 99.8-163.2 131.9-269.2 54.1-178.6 54.8-337.7 54.8-344.4C969.7 186.1 958.3 173.5 943.1 172zM910.1 227.2l-0.1 1.6c-2.9 58.1-13.4 174.4-51.4 299.9-66.7 220.1-183.1 360.1-346 416.1L512 945l-0.6-0.2C349 888.9 232.7 749.4 165.8 530.1c-39.8-130.5-49.4-254.2-51.8-301.4l-0.1-1.6 1.5-0.2c70.6-10.3 250.5-44.8 395.5-142.4l0.9-0.7 1 0.7C658 182.1 837.9 216.6 908.5 227L910.1 227.2z" ></path><path d="M641.8 351 467 580.3l-89-76.1c-5.3-4.5-12.1-7-19.1-7-8.6 0-16.8 3.7-22.4 10.3-10.5 12.3-9.1 31 3.3 41.5l112.7 96.4c5.2 4.4 12.4 7 19.6 7 0.9 0 1.8 0 2.7-0.1 8-0.8 15.4-5 20.3-11.4l193.7-254c4.8-6.3 6.8-14 5.7-21.8-1-7.8-5.1-14.7-11.3-19.5C670.1 335.6 651.6 338.1 641.8 351z" ></path></symbol><symbol id="icon-verify" viewBox="0 0 1024 1024"><path d="M713.856 93.44c44.672 9.344 79.36 15.488 105.024 18.944a332.8 332.8 0 0 0 28.864 3.008A110.08 110.08 0 0 1 944 223.36v348.672c0 71.232-36.288 168.32-80.704 219.328a737.216 737.216 0 0 1-100.672 106.496C683.264 966.208 599.232 1008 512 1008s-171.328-41.792-250.624-110.144c-26.88-23.168-51.2-47.808-72.832-72.512a409.152 409.152 0 0 1-24.768-30.208c-47.68-52.928-83.776-150.4-83.776-223.104V223.36c0-54.72 42.752-102.528 99.264-108.096 5.76-0.32 17.536-1.408 34.432-3.648a953.6 953.6 0 0 0 95.168-17.92c19.392-4.608 34.944-12.16 65.92-30.4l9.984-5.888C434.048 28.416 466.432 16 512 16c39.296 0 68.288 11.84 127.488 43.968l2.304 1.28c38.784 21.056 55.296 28.672 72.064 32.192z m-19.712 93.952c-29.376-6.144-50.688-16-98.176-41.856l-2.304-1.216C549.312 120.32 529.088 112 512 112c-24.192 0-42.88 7.168-78.656 28.16-4.736 2.88-4.736 2.88-9.728 5.76-38.784 22.912-61.12 33.664-92.48 41.216-37.76 8.96-72.96 15.36-104.768 19.648a556.8 556.8 0 0 1-39.68 4.16c-5.12 0.512-10.688 6.784-10.688 12.416v348.672c0 49.344 27.52 123.84 62.08 162.56a642.176 642.176 0 0 0 85.952 90.56c63.552 54.72 128.192 86.848 187.968 86.848 59.776 0 124.416-32.128 187.968-86.848a642.176 642.176 0 0 0 88.32-93.632c31.808-36.608 59.712-111.36 59.712-159.488V223.36c0-5.44-5.888-12.032-6.656-12.288-20.288-0.448-66.112-6.72-147.2-23.68zM400.128 488.704L487.68 576.256l185.088-185.088a48 48 0 0 1 67.84 67.84L521.6 678.144a48 48 0 0 1-67.84 0l-121.6-121.536a48 48 0 1 1 67.968-67.84z" fill="#768893" ></path></symbol><symbol id="icon-preview" viewBox="0 0 1024 1024"><path d="M854.36155804 32.02835121a114.60838884 114.60838884 0 0 1 114.21544637 105.17775738l0.39294247 9.43063278v170.60277392a49.1178817 49.1178817 0 0 1-97.77732893 6.68003145l-0.45843311-6.68003145V146.63674137a16.37262679 16.37262679 0 0 0-12.63966726-15.9796843l-3.73295954-0.39294246H130.1675186a16.37262679 16.37262679 0 0 0-15.91419368 12.57417659l-0.45843312 3.79845017v732.18388095a16.37262679 16.37262679 0 0 0 12.63966859 15.91419369l3.73295821 0.4584331h275.4530781a49.1178817 49.1178817 0 0 1 6.68003143 97.77732894l-6.68003143 0.4584331H130.1675186a114.60838884 114.60838884 0 0 1-114.21544639-105.24324667l-0.39294246-9.36514216V146.63674137a114.60838884 114.60838884 0 0 1 105.24324669-114.28093698l9.36514216-0.32745318h724.19403944z m-286.32450218 495.1082417a235.76582919 235.76582919 0 0 1 358.88798459 303.35203402l80.61881587 80.55332523a39.29430509 39.29430509 0 0 1-55.53595059 55.66693187l-80.61881589-80.61881587a235.83131983 235.83131983 0 0 1-303.35203398-358.88798459z m277.87622625 55.60144257a157.17721902 157.17721902 0 1 0-222.27478502 222.2747837 157.17721902 157.17721902 0 0 0 222.27478502-222.2747837z m-450.70567639-33.26917864a42.56883017 42.56883017 0 1 1 0 85.13766035H210.39339064a42.56883017 42.56883017 0 1 1 0-85.13766035h184.81421508z m0-158.68350096a42.56883017 42.56883017 0 1 1 0 85.13766036H210.39339064a42.56883017 42.56883017 0 1 1 0-85.13766036h184.81421508z m233.67013285-158.68350095a42.56883017 42.56883017 0 1 1 0 85.13766036h-418.48434793a42.56883017 42.56883017 0 1 1 0-85.13766036h418.48434793z" fill="#7f7f7f" ></path></symbol><symbol id="icon-yunshangchuan-xian" viewBox="0 0 1039 1024"><path d="M711.40656 345.248C667.88656 248.448 594.91056 208 481.83856 208c-118.848 0-219.328 96.512-256.736 267.76l-4.96 22.752-23.2 2.256c-83.744 8.192-120.176 54.176-131.36 144.4C54.30256 736.528 103.18256 816 193.85456 816h190.672a32 32 0 1 1 0 64H193.83856C58.68656 880-13.44144 762.72 2.07856 637.296 15.61456 528 65.80656 458.416 167.75856 440.224 215.27856 254.704 335.99856 144 481.83856 144c143.072 0 241.184 58.72 294.24 189.808 3.328-0.176 6.576-0.272 9.76-0.272 125.184 0 223.68 93.696 239.84 252.768 0.896 8.96 1.36 17.952 1.36 26.96C1027.03856 760.576 907.61456 880 760.30256 880h-120.064a32 32 0 1 1 0-64h120.064c111.968 0 202.72-90.768 202.72-202.736 0-6.848-0.32-13.68-1.024-20.48-12.912-127.088-84.544-195.248-176.16-195.248-23.136 0-55.68 7.232-96.928 22.032a32 32 0 1 1-21.616-60.224c15.584-5.6 30.288-10.304 44.112-14.08zM544.23856 598.512V848a32 32 0 0 1-64 0V598.512l-39.712 46.32a32 32 0 1 1-48.592-41.664l95.632-111.552a32.032 32.032 0 0 1 49.344 0l95.616 111.552a32 32 0 0 1-48.592 41.664l-39.696-46.32z" ></path></symbol><symbol id="icon-yulan" viewBox="0 0 1024 1024"><path d="M897.28 85.333333h-750.933333c-28.16 0-51.2 23.04-51.2 51.2v750.933334c0 28.16 23.04 51.2 51.2 51.2h276.906666c18.773333 0 34.133333-15.36 34.133334-34.133334s-15.36-34.133333-34.133334-34.133333H163.413333V153.6h716.8v275.626667c0 18.773333 15.36 34.133333 34.133334 34.133333s34.133333-15.36 34.133333-34.133333V136.533333c0-28.16-22.613333-51.2-51.2-51.2z" fill="#4C4C4C" ></path><path d="M649.813333 315.733333h-324.266666c-18.773333 0-34.133333-15.36-34.133334-34.133333s15.36-34.133333 34.133334-34.133333h324.266666c18.773333 0 34.133333 15.36 34.133334 34.133333s-14.933333 34.133333-34.133334 34.133333zM564.48 452.266667h-238.933333c-18.773333 0-34.133333-15.36-34.133334-34.133334s15.36-34.133333 34.133334-34.133333h238.933333c18.773333 0 34.133333 15.36 34.133333 34.133333s-14.933333 34.133333-34.133333 34.133334zM479.146667 588.8h-153.6c-18.773333 0-34.133333-15.36-34.133334-34.133333s15.36-34.133333 34.133334-34.133334h153.6c18.773333 0 34.133333 15.36 34.133333 34.133334s-14.933333 34.133333-34.133333 34.133333zM724.48 544c-94.293333 0-170.666667 76.373333-170.666667 170.666667s76.373333 170.666667 170.666667 170.666666 170.666667-76.373333 170.666667-170.666666-76.373333-170.666667-170.666667-170.666667z m0 273.066667c-56.32 0-102.4-46.08-102.4-102.4s46.08-102.4 102.4-102.4 102.4 46.08 102.4 102.4-45.653333 102.4-102.4 102.4z" fill="#4C4C4C" ></path><path d="M938.666667 928.853333c-13.226667 13.226667-34.986667 13.226667-48.213334 0l-72.533333-72.533333c-13.226667-13.226667-13.226667-34.986667 0-48.213333 13.226667-13.226667 34.986667-13.226667 48.213333 0l72.533334 72.533333c13.226667 13.226667 13.226667 34.56 0 48.213333z" fill="#4C4C4C" ></path></symbol><symbol id="icon-sousuo" viewBox="0 0 1024 1024"><path d="M1004.8 915.2l-243.2-243.2c0 0-6.4-6.4-6.4-6.4C800 595.2 832 505.6 832 416 832 185.6 646.4 0 416 0S0 185.6 0 416 185.6 832 416 832c89.6 0 179.2-32 243.2-83.2 0 6.4 6.4 6.4 6.4 6.4l243.2 243.2c25.6 25.6 70.4 25.6 96 6.4C1030.4 979.2 1030.4 940.8 1004.8 915.2zM64 416C64 224 224 64 416 64S768 224 768 416 608 768 416 768 64 608 64 416z" fill="#231815" ></path></symbol><symbol id="icon-ziliucheng" viewBox="0 0 1024 1024"><path d="M212.992 526.336 212.992 526.336 212.992 526.336 215.04 526.336 212.992 526.336Z" ></path><path d="M813.056 768l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912l0-38.912-18.432 0c-53.248 0-96.256-43.008-96.256-96.256L659.456 614.4l-96.256 0 0 192.512c0 20.48-16.384 38.912-38.912 38.912L120.832 845.824c-20.48 0-38.912-16.384-38.912-38.912L81.92 401.408c0-20.48 16.384-38.912 38.912-38.912l192.512 0L313.344 190.464 120.832 190.464C98.304 190.464 81.92 174.08 81.92 151.552L81.92 112.64c0-20.48 16.384-38.912 38.912-38.912l788.48 0c20.48 0 38.912 16.384 38.912 38.912l0 38.912c0 20.48-16.384 38.912-38.912 38.912L331.776 190.464l0 174.08 192.512 0c20.48 0 38.912 16.384 38.912 38.912L563.2 593.92l96.256 0 0-153.6c0-53.248 43.008-96.256 96.256-96.256l18.432 0 0-38.912c0-20.48 16.384-38.912 38.912-38.912l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912l0-38.912-18.432 0c-43.008 0-77.824 34.816-77.824 77.824L677.888 593.92l96.256 0 0-38.912c0-20.48 16.384-38.912 38.912-38.912l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912L774.144 614.4l-96.256 0 0 153.6c0 43.008 34.816 77.824 77.824 77.824l18.432 0 0-38.912C774.144 784.384 792.576 768 813.056 768z" ></path></symbol><symbol id="icon-danyuange" viewBox="0 0 1024 1024"><path d="M467.970999 661.248453h-184.831769a70.655912 70.655912 0 0 0-54.527932 25.599968A82.431897 82.431897 0 0 0 204.803328 744.19235v196.607754A82.687897 82.687897 0 0 0 228.611298 998.400032a71.423911 71.423911 0 0 0 54.527932 25.599968h184.831769a73.727908 73.727908 0 0 0 55.039931-25.599968 81.919898 81.919898 0 0 0 23.551971-58.623927v-195.583755a81.919898 81.919898 0 0 0-23.551971-58.367927 72.959909 72.959909 0 0 0-55.039931-25.599968z m5.887993-84.991893A118.015852 118.015852 0 0 0 512.002944 549.376593 127.99984 127.99984 0 0 0 545.538902 460.800704V126.465122A133.119834 133.119834 0 0 0 537.602912 76.801184a123.391846 123.391846 0 0 0-25.599968-40.447949 118.015852 118.015852 0 0 0-37.119954-25.599968A104.703869 104.703869 0 0 0 428.547048 0.00128H116.995438A105.471868 105.471868 0 0 0 71.683494 9.985268a121.087849 121.087849 0 0 0-37.119953 25.599968A127.99984 127.99984 0 0 0 9.219572 76.801184 133.119834 133.119834 0 0 0 0.003584 126.465122V460.800704a127.99984 127.99984 0 0 0 34.559957 88.31989 121.087849 121.087849 0 0 0 37.119953 27.135966 105.471868 105.471868 0 0 0 45.311944 9.983987h311.55161a106.239867 106.239867 0 0 0 45.311944-9.983987z m527.35934-329.215589a71.67991 71.67991 0 0 0-54.783931-25.599968h-184.575769a72.959909 72.959909 0 0 0-55.295931 25.599968 81.919898 81.919898 0 0 0-23.551971 58.367927v195.583756a83.199896 83.199896 0 0 0 23.551971 59.647925 73.983908 73.983908 0 0 0 55.295931 25.599968H947.2024a72.447909 72.447909 0 0 0 54.783932-25.599968 84.991894 84.991894 0 0 0 22.015972-59.647925v-195.583756a82.943896 82.943896 0 0 0-22.783972-58.367927zM947.2024 661.248453h-185.343768a72.959909 72.959909 0 0 0-55.295931 25.599968 81.919898 81.919898 0 0 0-23.551971 58.367927v196.607755A81.919898 81.919898 0 0 0 706.562701 998.400032a73.983908 73.983908 0 0 0 55.295931 25.599968H947.2024a72.447909 72.447909 0 0 0 54.783932-25.599968 83.455896 83.455896 0 0 0 22.015972-57.599928v-196.607754a83.199896 83.199896 0 0 0-22.783972-58.367927 71.67991 71.67991 0 0 0-54.783931-25.599968z m0 0" ></path></symbol><symbol id="icon-rengongzhineng_filledbeifen" viewBox="0 0 1024 1024"><path d="M913.678222 374.556444c0-175.431111-160.782222-317.653333-359.139555-317.653333a382.577778 382.577778 0 0 0-254.663111 93.767111 270.108444 270.108444 0 0 0-91.335112 118.840889 318.350222 318.350222 0 0 0-20.849777 98.773333c-0.597333 38.840889 18.389333 76.871111 1.664 114.688-11.633778 26.453333-41.870222 48.824889-61.312 69.916445 0 0-54.442667 36.224 49.436444 41.173333 2.929778 0.142222 16.071111 62.222222 19.342222 76.430222a16.753778 16.753778 0 0 0-3.271111 10.752c0 11.904 15.004444 21.617778 33.450667 21.617778h11.278222c-24.362667 3.313778-41.955556 12.8-41.955555 26.026667 0 9.102222 11.562667 21.105778 28.842666 28.302222 0 0-21.333333 66.744889 10.296889 81.962667a36.977778 36.977778 0 0 0 21.333333 1.564444c44.856889 2.446222 125.155556-0.739556 169.784889-0.739555 0-0.810667 23.466667 127.146667 23.466667 127.146666h403.299556c0 0.64-38.769778-289.265778-38.769778-289.265777 70.968889-101.632 95.544889-192.611556 96.881778-268.643556 1.422222-11.491556 2.161778-23.068444 2.176-34.659556h0.042666zM701.155556 320.711111a72.632889 72.632889 0 0 1-65.706667-42.055111l-54.471111 31.544889a108.344889 108.344889 0 0 1-7.509334 107.975111l102.172445 59.192889a36.508444 36.508444 0 1 1-10.894222 25.984 35.555556 35.555556 0 0 1 2.019555-10.026667L561.777778 432.512a109.511111 109.511111 0 1 1 10.168889-138.154667l57.728-33.422222a72.718222 72.718222 0 1 1 71.466666 59.733333v0.042667z" fill="#323233" ></path></symbol><symbol id="icon-fuhao-huizhi" viewBox="0 0 1024 1024"><path d="M254.4 82.624L82.624 254.4a60.704 60.704 0 0 0 0 85.92L254.4 512l128.8-128.8-42.88-42.88-85.92 85.888-42.88-42.88 85.888-85.92-42.88-42.88-85.92 85.888-42.88-42.88 171.776-171.84 171.584 171.616L512 254.4l-171.776-171.84a60.576 60.576 0 0 0-85.76 0z m644.096 644.064l-171.808 171.808-42.88-42.912 85.888-85.888-42.88-42.88-85.92 85.856-42.88-42.88 85.888-85.888-42.912-42.912L512 769.6l171.776 171.776a60.704 60.704 0 0 0 85.92 0l171.776-171.776a60.704 60.704 0 0 0 0-85.92L769.6 512l-42.912 42.88 171.808 171.808zM680.8 211.328l131.968 131.872-43.968 44L636.8 255.2l44-43.872zM240.96 650.976l131.968 131.872-44 44-131.968-131.872 44-44zM680.704 123.424a124.544 124.544 0 0 1 176.288 0.096l43.584 43.52a124.704 124.704 0 0 1 0.096 176.16L355.264 888.416l-268.352 48.384 48.384-268.288L680.704 123.424zM334.4 821.344L857.472 298.656c23.84-23.872 23.552-63.264-0.8-87.52L813.12 167.616c-24.544-24.544-63.552-24.832-87.584-0.8L202.432 689.6l-27.52 159.424 159.52-27.616z" fill="#0A8CF0" ></path></symbol><symbol id="icon-shanchu" viewBox="0 0 1024 1024"><path d="M799.2 874.4c0 34.4-28.001 62.4-62.4 62.4H287.2c-34.4 0-62.4-28-62.4-62.4V212h574.4v662.4zM349.6 100c0-7.2 5.6-12.8 12.8-12.8h300c7.2 0 12.8 5.6 12.8 12.8v37.6H349.6V100z m636.8 37.6H749.6V100c0-48.001-39.2-87.2-87.2-87.2h-300c-48 0-87.2 39.199-87.2 87.2v37.6H37.6C16.8 137.6 0 154.4 0 175.2s16.8 37.6 37.6 37.6h112v661.6c0 76 61.6 137.6 137.6 137.6h449.6c76 0 137.6-61.6 137.6-137.6V212h112c20.8 0 37.6-16.8 37.6-37.6s-16.8-36.8-37.6-36.8zM512 824c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0 20.8 16.8 37.6 37.6 37.6m-175.2 0c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0.8 20.8 17.6 37.6 37.6 37.6m350.4 0c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0 20.8 16.8 37.6 37.6 37.6" fill="#8A8A8A" ></path></symbol><symbol id="icon-jurassic_import-form" viewBox="0 0 1024 1024"><path d="M764.9 64H225.4l1.4 224.2 64-0.4-1-159.8h383.6v224H896v544H289.8l1-159.8-64-0.4-1.4 224.2H960V277.7L764.9 64z m-27.6 64.7L882.8 288H737.3V128.7z" fill="#707070" ></path><path d="M356.5 224h255.9v64H356.5z" fill="#707070" ></path><path d="M576.4 416h255.9v64H576.4zM512.5 576h319.8v64H512.5zM384.5 736h447.8v64H384.5z" fill="#707070" ></path><path d="M336.9 349H198.6l98.9 98.9H64v128.2h233.5L198.6 675h138.3l162.9-163z" fill="#707070" ></path></symbol><symbol id="icon-kaoheweidufenxi" viewBox="0 0 1024 1024"><path d="M815.542857 212.943238l118.296381 68.266667v168.033524l-201.532952 116.345904-0.487619-163.352381-125.366857-72.46019 209.091047-116.833524z m-89.673143-51.736381L519.314286 279.454476 305.785905 156.233143 511.561143 37.449143l214.308571 123.757714zM294.619429 887.466667L89.234286 768.877714V546.133333l205.677714 118.00381-0.292571 223.329524z m85.333333 49.249523l-0.097524-223.914666 133.607619 76.653714 132.632381-76.604952-1.024 222.744381-133.558857 77.043809-131.510857-75.922286zM434.468571 328.021333L295.253333 407.747048l-0.195047 156.672L89.234286 444.318476V281.258667l132.047238-76.263619 213.089524 123.026285z m86.113524 49.737143l126.780953 73.191619-0.780191 164.08381-133.12 76.897524-133.656381-78.019048-0.097524-157.403429 140.921905-78.750476z m413.257143 169.008762v222.110476l-200.655238 115.809524-0.633905-221.769143 201.289143-116.150857z" fill="#82529d" ></path></symbol><symbol id="icon-wenjianjia" viewBox="0 0 1024 1024"><path d="M855.04 385.024q19.456 2.048 38.912 10.24t33.792 23.04 21.504 37.376 2.048 54.272q-2.048 8.192-8.192 40.448t-14.336 74.24-18.432 86.528-19.456 76.288q-5.12 18.432-14.848 37.888t-25.088 35.328-36.864 26.112-51.2 10.24l-567.296 0q-21.504 0-44.544-9.216t-42.496-26.112-31.744-40.96-12.288-53.76l0-439.296q0-62.464 33.792-97.792t95.232-35.328l503.808 0q22.528 0 46.592 8.704t43.52 24.064 31.744 35.84 12.288 44.032l0 11.264-53.248 0q-40.96 0-95.744-0.512t-116.736-0.512-115.712-0.512-92.672-0.512l-47.104 0q-26.624 0-41.472 16.896t-23.04 44.544q-8.192 29.696-18.432 62.976t-18.432 61.952q-10.24 33.792-20.48 65.536-2.048 8.192-2.048 13.312 0 17.408 11.776 29.184t29.184 11.776q31.744 0 43.008-39.936l54.272-198.656q133.12 1.024 243.712 1.024l286.72 0z" ></path></symbol><symbol id="icon-biaoqian" viewBox="0 0 1024 1024"><path d="M934.912 516.096q23.552 26.624 19.456 49.664t-26.624 46.592l-324.608 327.68q-8.192 7.168-19.456 11.264t-23.04 4.608-23.04-2.56-18.432-10.24q-121.856-122.88-218.112-220.16l-80.896-80.896q-39.936-39.936-71.168-71.68t-51.2-51.2-20.992-21.504q-3.072-4.096-10.752-14.848t-6.656-25.088l0-19.456 0-40.96q0-23.552 0.512-52.736t0.512-58.88q1.024-70.656 2.048-156.672 2.048-13.312 6.144-24.064t15.36-22.016q10.24-11.264 22.016-16.384t22.016-5.12l329.728 0q2.048 0 9.216 0.512t10.24 1.536q6.144 2.048 11.264 5.12t10.24 8.192zM217.088 317.44q40.96 0 69.12-28.672t28.16-69.632-28.16-69.632-69.12-28.672q-20.48 0-37.888 7.68t-30.72 20.992-20.992 31.232-7.68 38.4 7.68 38.4 20.992 31.232 30.72 20.992 37.888 7.68z" fill="#ea9518" ></path></symbol><symbol id="icon-wenben" viewBox="0 0 1024 1024"><path d="M823.296 60.416q65.536 0 99.328 38.4t33.792 93.696l0 543.744q0 25.6-21.504 46.08l-171.008 163.84q-13.312 11.264-22.528 14.336t-23.552 3.072l-459.776 0q-23.552 0-47.104-9.728t-41.984-27.648-30.208-43.008-11.776-55.808l0-634.88q0-60.416 33.28-96.256t94.72-35.84l568.32 0zM608.256 702.464q13.312 0 22.528-9.216t9.216-22.528q0-14.336-9.216-23.04t-22.528-8.704l-320.512 0q-13.312 0-22.528 8.704t-9.216 23.04q0 13.312 9.216 22.528t22.528 9.216l320.512 0zM736.256 509.952q13.312 0 22.528-9.216t9.216-22.528-9.216-22.528-22.528-9.216l-448.512 0q-13.312 0-22.528 9.216t-9.216 22.528 9.216 22.528 22.528 9.216l448.512 0zM799.744 318.464q13.312 0 22.528-9.216t9.216-23.552q0-13.312-9.216-22.528t-22.528-9.216l-512 0q-13.312 0-22.528 9.216t-9.216 22.528q0 14.336 9.216 23.552t22.528 9.216l512 0z" fill="#db639b" ></path></symbol><symbol id="icon-yingyong" viewBox="0 0 1026 1024"><path d="M371.732817 94.172314q25.773475 0 44.112294 17.843175t18.338819 43.616651l0 247.821878q0 25.773475-18.338819 44.112294t-44.112294 18.338819l-247.821878 0q-25.773475 0-43.616651-18.338819t-17.843175-44.112294l0-247.821878q0-25.773475 17.843175-43.616651t43.616651-17.843175l247.821878 0zM371.732817 589.81607q25.773475 0 44.112294 17.843175t18.338819 43.616651l0 248.813166q0 25.773475-18.338819 43.616651t-44.112294 17.843175l-247.821878 0q-25.773475 0-43.616651-17.843175t-17.843175-43.616651l0-248.813166q0-25.773475 17.843175-43.616651t43.616651-17.843175l247.821878 0zM868.367861 589.81607q25.773475 0 43.616651 17.843175t17.843175 43.616651l0 248.813166q0 25.773475-17.843175 43.616651t-43.616651 17.843175l-247.821878 0q-25.773475 0-44.112294-17.843175t-18.338819-43.616651l0-248.813166q0-25.773475 18.338819-43.616651t44.112294-17.843175l247.821878 0zM1006.156825 203.21394q19.82575 19.82575 19.82575 46.590513t-19.82575 45.599226l-184.379477 184.379477q-19.82575 19.82575-46.094869 19.82575t-46.094869-19.82575l-184.379477-184.379477q-18.834463-18.834463-18.834463-45.599226t18.834463-46.590513l184.379477-184.379477q19.82575-18.834463 46.094869-18.834463t46.094869 18.834463z" fill="#0061b2" ></path></symbol><symbol id="icon-wenjianjia-copy" viewBox="0 0 1024 1024"><path d="M855.04 385.024q19.456 2.048 38.912 10.24t33.792 23.04 21.504 37.376 2.048 54.272q-2.048 8.192-8.192 40.448t-14.336 74.24-18.432 86.528-19.456 76.288q-5.12 18.432-14.848 37.888t-25.088 35.328-36.864 26.112-51.2 10.24l-567.296 0q-21.504 0-44.544-9.216t-42.496-26.112-31.744-40.96-12.288-53.76l0-439.296q0-62.464 33.792-97.792t95.232-35.328l503.808 0q22.528 0 46.592 8.704t43.52 24.064 31.744 35.84 12.288 44.032l0 11.264-53.248 0q-40.96 0-95.744-0.512t-116.736-0.512-115.712-0.512-92.672-0.512l-47.104 0q-26.624 0-41.472 16.896t-23.04 44.544q-8.192 29.696-18.432 62.976t-18.432 61.952q-10.24 33.792-20.48 65.536-2.048 8.192-2.048 13.312 0 17.408 11.776 29.184t29.184 11.776q31.744 0 43.008-39.936l54.272-198.656q133.12 1.024 243.712 1.024l286.72 0z" ></path></symbol></svg>',(l=>{var n=(r=(r=document.getElementsByTagName("script"))[r.length-1]).getAttribute("data-injectcss"),r=r.getAttribute("data-disable-injectsvg");if(!r){var o,s,c,b,p,v=function(_,N){N.parentNode.insertBefore(_,N)};if(n&&!l.__iconfont__svg__cssinject__){l.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(_){console&&console.log(_)}}o=function(){var _,N=document.createElement("div");N.innerHTML=l._iconfont_svg_string_4827314,(N=N.getElementsByTagName("svg")[0])&&(N.setAttribute("aria-hidden","true"),N.style.position="absolute",N.style.width=0,N.style.height=0,N.style.overflow="hidden",N=N,(_=document.body).firstChild?v(N,_.firstChild):_.appendChild(N))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(o,0):(s=function(){document.removeEventListener("DOMContentLoaded",s,!1),o()},document.addEventListener("DOMContentLoaded",s,!1)):document.attachEvent&&(c=o,b=l.document,p=!1,u(),b.onreadystatechange=function(){b.readyState=="complete"&&(b.onreadystatechange=null,y())})}function y(){p||(p=!0,c())}function u(){try{b.documentElement.doScroll("left")}catch{return void setTimeout(u,50)}y()}})(window);const lf=["onClick"],rf=a.defineComponent({__name:"index",props:{items:{default:()=>[]},disabled:{type:Boolean,default:!1},textSize:{default:void 0},textColor:{default:void 0},backGround:{default:void 0},backGroundImage:{default:void 0}},emits:["update:backGroundImage"],setup(l,{emit:n}){const r=l,o=n,s=a.ref(null),c=a.ref(null),b=E=>{if(Array.isArray(E)&&E.length>=3){const[m,g,j,V]=E;return V!==void 0?`rgba(${m}, ${g}, ${j}, ${V})`:`rgb(${m}, ${g}, ${j})`}if(typeof E=="string"){const m=E.trim();if(m.startsWith("[")&&m.endsWith("]")){const g=m.slice(1,-1).split(",").map(j=>Number(j.trim()));if(g.length>=3&&g.every(j=>!Number.isNaN(j))){const[j,V,G,he]=g;return he!==void 0?`rgba(${j}, ${V}, ${G}, ${he})`:`rgb(${j}, ${V}, ${G})`}}return m}},p=a.computed(()=>{const E=Number(r==null?void 0:r.textSize),m=b(r==null?void 0:r.textColor),g={},j={};return!Number.isNaN(E)&&E&&(g.fontSize=`${E}px`,j.fontSize=`${E}px`),m&&(g.color=m,j.color=m),{label:g,value:j}}),v=a.ref(""),y=a.ref(""),u=a.ref(!1),_=async E=>{if(E){y.value&&(URL.revokeObjectURL(y.value),y.value="");try{const m=await L.platformDownloadFile({url:E}),g=new Blob([m==null?void 0:m.data],{type:(m==null?void 0:m.headers["content-type"])||"image/*"});y.value=URL.createObjectURL(g)}catch{y.value=""}}};a.watch(()=>r==null?void 0:r.backGroundImage,E=>{E&&(v.value=E)},{immediate:!0}),a.watch(v,E=>{_(E)},{immediate:!0});const N=()=>{var E;(E=c.value)==null||E.click()},$=async E=>{var j,V,G;const m=E.target,g=(j=m==null?void 0:m.files)==null?void 0:j[0];if(!g){m.value="";return}u.value=!0;try{const he=new FormData;he.append("file",g);const Te=await L.platformUploadFile(he),Se=(G=(V=Te==null?void 0:Te.data)==null?void 0:V.result)==null?void 0:G.url;Se?(v.value=Se,o("update:backGroundImage",Se),_(Se),Qa.ElMessage.success("背景图片上传成功")):Qa.ElMessage.error("背景图片上传失败")}catch{Qa.ElMessage.error("背景图片上传失败")}finally{u.value=!1,m.value=""}},S=a.computed(()=>y.value?{backgroundImage:`url(${y.value})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{}),q=E=>dl.getComponent(E),O=E=>{if(!E)return;const m=E.querySelector("input, textarea, .el-input__inner");m&&typeof m.focus=="function"&&m.focus()},M=(E,m,g)=>{r.disabled||E.field&&(s.value=m,a.nextTick(()=>{O(g.currentTarget)}))},Z=()=>{s.value=null},C=E=>{var g;const m=((g=E==null?void 0:E.field)==null?void 0:g.value)??(E==null?void 0:E.value);return m==null||m===""?"-":m},w=E=>{const m=E!=null&&E.width&&E.width>0?E.width:1,j=`calc((100% - ${(m-1)*16}px) / ${m})`;return{flex:`0 0 ${j}`,maxWidth:j,minWidth:"140px",boxSizing:"border-box"}};return(E,m)=>(a.openBlock(),a.createElementBlock("div",{class:"statistics-cards-container",style:a.normalizeStyle(S.value),onClick:m[2]||(m[2]=g=>(r==null?void 0:r.backGround)==="Yes"&&N())},[(r==null?void 0:r.backGround)==="Yes"?(a.openBlock(),a.createElementBlock("div",{key:0,class:"form-backGround-upload",onClick:m[0]||(m[0]=a.withModifiers(g=>N(),["stop"]))},[a.createElementVNode("input",{ref_key:"bgUploadRef",ref:c,type:"file",accept:"image/*",style:{display:"none"},onChange:$},null,544),m[3]||(m[3]=a.createElementVNode("img",{src:dl._imports_0,class:"bg-upload-icon",alt:"上传背景"},null,-1))])):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(E.items,(g,j)=>{var V,G,he,Te,Se,Q,fe,J;return a.openBlock(),a.createElementBlock("div",{class:"statistics-card",key:j,style:a.normalizeStyle(w(g)),onClick:m[1]||(m[1]=a.withModifiers(()=>{},["stop"]))},[a.createElementVNode("div",{class:"statistics-label",style:a.normalizeStyle(p.value.label)},a.toDisplayString(g==null?void 0:g.label),5),a.createElementVNode("div",{class:"statistics-value",style:a.normalizeStyle(p.value.value),onClick:ce=>M(g,j,ce)},[s.value===j&&g.field?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(q(((V=g.field)==null?void 0:V.type)??"Input")),{key:0,modelValue:g.field.value,"onUpdate:modelValue":ce=>g.field.value=ce,isEdit:!0,disabled:(G=g.field)==null?void 0:G.disabled,content:((he=g.field)==null?void 0:he.contents)??[],optionUrl:g.field,originalValue:(Te=g.field)==null?void 0:Te.value,config:(Se=g.field)==null?void 0:Se.config,configModel:((Q=g.field)==null?void 0:Q.prop)??((fe=g.field)==null?void 0:fe.name),selectedTagList:((J=g.field)==null?void 0:J.selectValue)??[],onBlur:Z,onBlurChange:Z},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(C(g)),1)],64))],12,lf)],4)}),128))],4))}}),nf=Kl._export_sfc(rf,[["__scopeId","data-v-423d9eb1"]]),ac=L.defineStore("formToTableComp",{state:()=>({selectArray:[],selectString:""}),actions:{setSelectArray(l){this.selectArray=l},setSelectString(l){this.selectString=l}}}),of={class:"calculator-content"},tf={class:"calculator-child"},sf={class:"calculator-child"},cf=a.defineComponent({__name:"calculator",setup(l){const n=a.ref(),r=a.ref();return a.onMounted(()=>{n.value=[{type:"Upload",label:"输入",name:"input"}],r.value=[{type:"Upload",label:"输出",name:"output"}]}),(o,s)=>(a.openBlock(),a.createElementBlock("div",of,[a.createElementVNode("div",tf,[a.createVNode(dl.ssForm,{rowContents:n.value,isRowFlex:!0},null,8,["rowContents"])]),a.createElementVNode("div",sf,[a.createVNode(dl.ssForm,{rowContents:r.value,isEdit:!1,isRowFlex:!0},null,8,["rowContents"])])]))}}),uf=Kl._export_sfc(cf,[["__scopeId","data-v-73db0fe7"]]),ht=(l,n)=>{let r=l,o=n;return Array.isArray(r)&&(r=r==null?void 0:r.map((s,c)=>{if(Array.isArray(s)){let b={};return s=s==null?void 0:s.forEach((p,v)=>{var y;(y=o==null?void 0:o[v])!=null&&y.prop?b[o[v].prop]=p:Array.isArray(p)&&(b.children=ht(p,o))}),Object.assign(b,{id:c})}else return s})),r},lc=(l,n,r)=>{let o=l,s=n;return o=o==null?void 0:o.map((c,b)=>{var p,v;return!Array.isArray(c)||!((p=s==null?void 0:s[b])!=null&&p.label)&&!r||(c.unshift(((v=s==null?void 0:s[b])==null?void 0:v.label)??""),c.some(y=>Array.isArray(y))&&(c=c==null?void 0:c.map(y=>{var u;return Array.isArray(y)&&(y=lc(y,(u=s==null?void 0:s[b])==null?void 0:u.children,r)),y}))),c}),o},df=(l,n,r)=>{if(n==="")return l==null?void 0:l.filter(o=>(o==null?void 0:o.id)!==r);{const o=n.split("-");return pf(l,o,r)}},pf=(l,n,r)=>{let o=l,s=n;return(s==null?void 0:s.length)===0?o=o==null?void 0:o.filter(c=>c.id!==r):o=o==null?void 0:o.map(c=>(c.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),c=rc(c,s,r)),c)),o},rc=(l,n,r)=>{var c,b;let o=l,s=n;return(s==null?void 0:s.length)===0?o.children=(c=o.children)==null?void 0:c.filter(p=>p.id!==r):o.children=(b=o.children)==null?void 0:b.map(p=>(p.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),p=rc(p,s,r)),p)),o},ff=(l,n,r)=>{if(n==="")return r;{const o=n.split("-");return hf(l,o,r)}},hf=(l,n,r)=>{let o=l,s=n;return(s==null?void 0:s.length)===0?o=r:o=o==null?void 0:o.map(c=>(c.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),c=nc(c,s,r)),c)),o},nc=(l,n,r)=>{var c;let o=l,s=n;return(s==null?void 0:s.length)===0?o.children=r:o.children=(c=o.children)==null?void 0:c.map(b=>(b.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),b=nc(b,s,r)),b)),o};class vf{constructor(n={}){qr(this,"url");qr(this,"heartbeatInterval");qr(this,"socket",null);qr(this,"isConnected",!1);qr(this,"heartTimer",null);qr(this,"canvas",null);qr(this,"ctx",null);qr(this,"mainCamCutMode",0);qr(this,"pMainShowStartX",0);qr(this,"pMainShowStartY",0);qr(this,"onLog");qr(this,"onDevCount");qr(this,"onResolution");qr(this,"onCameraStatus");qr(this,"onPhoto");this.url=n.url??"ws://127.0.0.1:22225",this.heartbeatInterval=n.heartbeatInterval??3e3}init(n,r,o){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=r,s.height=o;const c=s.getContext("2d");if(!c)throw new Error("无法获取 CanvasRenderingContext2D");n.appendChild(s),this.canvas=s,this.ctx=c}async connect(){this.socket&&(this.socket.readyState===WebSocket.OPEN||this.socket.readyState===WebSocket.CONNECTING)||await new Promise((n,r)=>{const o=new WebSocket(this.url);o.binaryType="arraybuffer",o.onopen=()=>{this.socket=o,this.isConnected=!0,this.startHeartbeat(),this.log("socket.onopen"),n()},o.onerror=s=>{this.isConnected=!1,this.log("socket.onerror"),r(s)},o.onclose=()=>{this.isConnected=!1,this.stopHeartbeat(),this.log("socket.onclose")},o.onmessage=s=>{this.handleMessage(s)}})}destroy(){var n;this.stopHeartbeat();try{this.closeCamera()}catch{}if(this.socket){try{this.socket.onmessage=null}catch{}try{this.socket.onopen=null}catch{}try{this.socket.onerror=null}catch{}try{this.socket.onclose=null}catch{}try{this.socket.close()}catch{}this.socket=null}this.isConnected=!1,(n=this.canvas)!=null&&n.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.canvas=null,this.ctx=null}getDevCount(){this.sendBytes(new Uint8Array([119,136,80]))}getResolution(n=0){this.sendBytes(new Uint8Array([119,136,81,n]))}chooseResolution(n){if(!Array.isArray(n)||n.length===0)return null;const r=n.find(s=>s.width===2592&&s.height===1944);return r||[...n].sort((s,c)=>c.width*c.height-s.width*s.height)[0]||null}openCamera(n=0,r=1280,o=720){if(!this.canvas)throw new Error("请先 init() 传入容器并创建 canvas");const s=new Uint8Array(12);s[0]=119,s[1]=136,s[2]=1,s[3]=n,s[4]=this.canvas.width>>8&255,s[5]=this.canvas.width&255,s[6]=this.canvas.height>>8&255,s[7]=this.canvas.height&255,s[8]=r>>8&255,s[9]=r&255,s[10]=o>>8&255,s[11]=o&255,this.sendBytes(s)}closeCamera(){this.sendBytes(new Uint8Array([119,136,2,0]))}photo(){const s=new Uint8Array(12);s[0]=119,s[1]=136,s[2]=16,s[3]=0,s[4]=0,s[5]=0,s[6]=0,s[7]=0,s[8]=1,s[9]=0,s[10]=0,s[11]=0,this.sendBytes(s)}bestSize(){this.sendBytes(new Uint8Array([119,136,5,0]))}rotateLeft(){this.sendBytes(new Uint8Array([119,136,7,0]))}rotateRight(){this.sendBytes(new Uint8Array([119,136,8,0]))}focus(){this.sendBytes(new Uint8Array([119,136,48,0]))}log(n){var r;(r=this.onLog)==null||r.call(this,n)}sendBytes(n){if(!this.socket||this.socket.readyState!==WebSocket.OPEN||!this.isConnected)throw new Error("socket 未连接");this.socket.send(n.buffer)}startHeartbeat(){this.stopHeartbeat(),this.heartTimer=window.setInterval(()=>{this.log("heartCheck...........")},this.heartbeatInterval)}stopHeartbeat(){this.heartTimer&&(clearInterval(this.heartTimer),this.heartTimer=null)}handleMessage(n){var s,c,b,p,v,y;const r=new Uint8Array(n.data);if(r.length<=0)return;if(r[0]===17&&r[1]===17&&r[2]===17){this.log("heart socket!!!!");return}if(r[0]!==85||r[1]!==102)return;const o=r[2];if(o===80){const u=r[3],_=r.length-4,N=new Uint8Array(_);for(let q=0;q<_;q++)N[q]=r[4+q];const S=decodeURIComponent(this.byteToString(N)).split("|");(s=this.onDevCount)==null||s.call(this,u,S);return}if(o===81){const u=r[3]||0,_=[];for(let N=0;N<u;N++){const $=(r[4+N*4+0]||0)*256+(r[4+N*4+1]||0),S=(r[4+N*4+2]||0)*256+(r[4+N*4+3]||0);_.push({width:$,height:S,text:`${$}*${S}`})}(c=this.onResolution)==null||c.call(this,u,_);return}if(o===1){r[3]===1&&((b=this.onCameraStatus)==null||b.call(this,"opened")),r[3]===3&&((p=this.onCameraStatus)==null||p.call(this,"closed"));return}if(o===16){if(r[3]===1){const _=r[4]*256+r[5],N=r[6]*65536+r[7]*256+r[8];let $="";if(_>0){const O=new Uint8Array(_);for(let M=0;M<_;M++)O[M]=r[9+M];$=decodeURIComponent(this.byteToString(O))}const S=new Uint8Array(N);for(let O=0;O<N;O++)S[O]=r[9+_+O];const q=this.uint8ArrayToString(S);(v=this.onPhoto)==null||v.call(this,{flag:0,imgPath:$,base64:q})}r[3]===2&&((y=this.onPhoto)==null||y.call(this,{flag:2,imgPath:"",base64:""}));return}if(o===204){if(!this.canvas||!this.ctx)return;const u=r[3]*256+r[4],_=r[5]*256+r[6];this.pMainShowStartX=r[7]*256+r[8],this.pMainShowStartY=r[9]*256+r[10],this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height);const N=this.ctx.createImageData(u,_);let $=11;for(let S=0;S<N.data.length;S+=4)N.data[S+0]=r[$],N.data[S+1]=r[$+1],N.data[S+2]=r[$+2],N.data[S+3]=255,$+=3;this.ctx.putImageData(N,this.pMainShowStartX,this.pMainShowStartY),this.mainCamCutMode;return}}uint8ArrayToString(n){let r="";for(let o=0;o<n.length;o++)r+=String.fromCharCode(n[o]);return r}byteToString(n){let r="";for(let o=0;o<n.length;o++)r+=String.fromCharCode(n[o]);return r}}const mf={style:{display:"flex",gap:"16px",height:"100%"}},yf={key:0,style:{color:"var(--el-text-color-secondary)"}},gf={style:{width:"420px",display:"flex","flex-direction":"column",gap:"16px"}},bf={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px"}},kf={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"}},xf={key:0,style:{height:"100%",display:"flex","align-items":"center","justify-content":"center",color:"var(--el-text-color-secondary)"}},wf={key:1,style:{display:"grid","grid-template-columns":"repeat(2, minmax(0, 1fr))",gap:"8px"}},_f=["src","onClick"],Ef=["onClick"],Sf={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px",flex:"1","min-height":"0",display:"flex","flex-direction":"column"}},Cf={class:"dialog-footer"},Df=a.defineComponent({__name:"index",props:{visible:{type:Boolean,default:!1}},emits:["confirm","cancel"],setup(l,{emit:n}){const r=l,o=n,s=a.ref(null),c=a.ref(!1),b=a.ref([]),p=a.ref(""),v=a.ref(!1),y=a.ref([]),u=new vf({url:"ws://127.0.0.1:22225"});function _(V,G){var J;const he=V.split(","),Te=((J=he[0].match(/:(.*?);/))==null?void 0:J[1])??"image/jpeg",Se=atob(he[1]);let Q=Se.length;const fe=new Uint8Array(Q);for(;Q--;)fe[Q]=Se.charCodeAt(Q);return new File([fe],G,{type:Te})}function N(){u.onLog=V=>{console.log("[GPY]",V)},u.onDevCount=(V,G)=>{if(p.value+=`设备数量=${V},设备=${G.join(",")}
4
+ `,V>0){p.value+=`检测到设备,正在获取分辨率...
5
+ `;try{u.getResolution(0)}catch(he){p.value+=`获取分辨率失败:${(he==null?void 0:he.message)??he}
6
+ `}}else p.value+=`未检测到高拍仪设备!
7
+ `},u.onResolution=(V,G)=>{if(V<=0||!Array.isArray(G)||G.length===0){p.value+=`未获取到可用分辨率,回退使用 1280*720 打开...
8
+ `;try{u.openCamera(0,1280,720)}catch(Te){p.value+=`打开摄像头失败:${(Te==null?void 0:Te.message)??Te}
9
+ `}return}const he=u.chooseResolution(G);if(!he){p.value+=`分辨率选择失败,回退使用 1280*720 打开...
10
+ `;try{u.openCamera(0,1280,720)}catch(Te){p.value+=`打开摄像头失败:${(Te==null?void 0:Te.message)??Te}
11
+ `}return}p.value+=`获取分辨率 ${he.text}成功,打开摄像头...
12
+ `;try{u.closeCamera(),setTimeout(()=>{try{u.openCamera(0,he.width,he.height)}catch(Te){p.value+=`打开摄像头失败:${(Te==null?void 0:Te.message)??Te}
13
+ `}},100)}catch{try{u.openCamera(0,he.width,he.height)}catch(Te){p.value+=`打开摄像头失败:${(Te==null?void 0:Te.message)??Te}
14
+ `}}},u.onCameraStatus=V=>{V==="opened"?(c.value=!0,p.value+=`摄像头已打开
15
+ `):(c.value=!1,p.value+=`摄像头已关闭
16
+ `)},u.onPhoto=V=>{if(V.flag===0&&V.base64){const G=`data:image/jpeg;base64,${V.base64}`,he=_(G,`gpy-capture-${Date.now()}.jpg`);b.value.push({uid:`${Date.now()}_${Math.random().toString(16).slice(2)}`,url:G,file:he}),p.value+=`拍照完成,已接收图片(当前 ${b.value.length} 张)
17
+ `}else p.value+=`拍照失败 flag=${V.flag}
18
+ `}}const $=async()=>{if(await a.nextTick(),!s.value)return;S(),N();const V=s.value.getBoundingClientRect();u.init(s.value,Math.floor(V.width),Math.floor(V.height)),p.value+=`正在连接设备服务...
19
+ `,await u.connect(),p.value+=`正在获取设备数量...
20
+ `,u.getDevCount()},S=()=>{try{u.destroy()}catch(V){console.error(V)}c.value=!1,b.value=[],p.value="",v.value=!1,y.value=[]};a.watch(()=>r.visible,V=>{V?$():S()});const q=()=>{try{u.bestSize()}catch(V){console.error(V)}},O=()=>{try{u.rotateLeft()}catch(V){console.error(V)}},M=()=>{try{u.rotateRight()}catch(V){console.error(V)}},Z=()=>{try{u.focus()}catch(V){console.error(V)}},C=()=>{p.value+=`正在拍照...
21
+ `;try{u.photo()}catch(V){p.value+=`拍照调用失败:${(V==null?void 0:V.message)??V}
22
+ `}},w=()=>{b.value.length>0?o("confirm",b.value.map(V=>V.file)):o("confirm",[])},E=V=>{V<0||V>=b.value.length||(b.value.splice(V,1),p.value+=`已删除一张图片(剩余 ${b.value.length} 张)
23
+ `)},m=V=>{if(!V)return;const G=`gpy-preview-${Date.now()}.jpg`;y.value=[{name:G,blobUrl:V}],v.value=!0},g=()=>{v.value=!1},j=()=>{S(),o("cancel")};return(V,G)=>{const he=a.resolveComponent("el-input"),Te=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(xr.ssDialog,{title:"扫描录入",visible:r.visible,onBeforeDestroy:j,width:"1200px",style:{height:"80%"}},{default:a.withCtx(()=>[a.createElementVNode("div",mf,[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)"}},[c.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",yf,"初始化摄像头..."))],512),a.createElementVNode("div",gf,[a.createElementVNode("div",bf,[G[0]||(G[0]=a.createElementVNode("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"拍照图片",-1)),a.createElementVNode("div",kf,[b.value.length===0?(a.openBlock(),a.createElementBlock("div",xf,"暂无图片")):(a.openBlock(),a.createElementBlock("div",wf,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(b.value,(Se,Q)=>(a.openBlock(),a.createElementBlock("div",{key:Se.uid,style:{position:"relative",border:"1px solid var(--el-border-color)","border-radius":"4px",overflow:"hidden",background:"#fafafa"}},[a.createElementVNode("img",{src:Se.url,onClick:fe=>m(Se.url),style:{width:"100%",height:"94px","object-fit":"contain",display:"block",background:"#fafafa",cursor:"zoom-in"},alt:"captured image",title:"点击放大"},null,8,_f),a.createElementVNode("div",{onClick:fe=>E(Q),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,Ef)]))),128))]))],512)]),a.createElementVNode("div",Sf,[G[1]||(G[1]=a.createElementVNode("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"操作记录",-1)),a.createVNode(he,{type:"textarea",value:p.value,readonly:"",rows:10,placeholder:"设备操作记录...",style:{flex:"1"}},null,8,["value"])])])])]),footer:a.withCtx(()=>[a.createElementVNode("div",Cf,[a.createVNode(Te,{onClick:q,disabled:!c.value,id:"themeBorderButton"},{default:a.withCtx(()=>G[2]||(G[2]=[a.createTextVNode("适屏")])),_:1,__:[2]},8,["disabled"]),a.createVNode(Te,{onClick:O,disabled:!c.value,id:"themeBorderButton"},{default:a.withCtx(()=>G[3]||(G[3]=[a.createTextVNode("左旋")])),_:1,__:[3]},8,["disabled"]),a.createVNode(Te,{onClick:M,disabled:!c.value,id:"themeBorderButton"},{default:a.withCtx(()=>G[4]||(G[4]=[a.createTextVNode("右旋")])),_:1,__:[4]},8,["disabled"]),a.createVNode(Te,{onClick:Z,disabled:!c.value,id:"themeBorderButton"},{default:a.withCtx(()=>G[5]||(G[5]=[a.createTextVNode("对焦")])),_:1,__:[5]},8,["disabled"]),a.createVNode(Te,{onClick:C,disabled:!c.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(Te,{onClick:w,disabled:b.value.length===0,id:"themeButton"},{default:a.withCtx(()=>G[7]||(G[7]=[a.createTextVNode("确认")])),_:1,__:[7]},8,["disabled"]),a.createVNode(Te,{onClick:j,id:"themeBorderButton"},{default:a.withCtx(()=>G[8]||(G[8]=[a.createTextVNode("取消")])),_:1,__:[8]})])]),_:1},8,["visible"]),v.value?(a.openBlock(),a.createBlock(dl.ssFilePreview,{key:0,fileDataList:y.value,onDestroy:g},null,8,["fileDataList"])):a.createCommentVNode("",!0)],64)}}}),Bf=Kl._export_sfc(Df,[["__scopeId","data-v-24a2050a"]]);function oc(l){return Qa.axios.post("http://222.92.178.198:8000/api/v1/excel-chat",l)}function Nf(l){return Qa.axios.get(l,{responseType:"blob"})}const cs=L.useMenuState(L.pinia),Tf=async l=>{var c,b,p,v,y,u;let n=l==null?void 0:l.导入文件,r=l==null?void 0:l.函数参数,o=(c=n==null?void 0:n[0])==null?void 0:c.url,s="";if(!(o!=null&&o.includes("http"))||!(o!=null&&o.includes("https"))){cs.setContentLoading(!0);const _=await L.platformDownloadFile({url:o});let N=_==null?void 0:_.data;const $=new FormData;$.append("file",N,((b=n==null?void 0:n[0])==null?void 0:b.name)+"."+((p=o==null?void 0:o.split("."))==null?void 0:p[1])),$.append("query",r);let S=await oc($);S=(u=(y=(v=S==null?void 0:S.data)==null?void 0:v.data)==null?void 0:y.response)==null?void 0:u.replace("generateResult",l==null?void 0:l.函数名称),s=S,cs.setContentLoading(!1)}return s},Et=L.defineStore("formComp",{state:()=>({objUrl:[],blobUrls:[]}),actions:{setObjUrl(l){this.objUrl=l},setBlobUrls(l){this.blobUrls=l}}}),Si={检校类型:["检校类型","证书类别"],证书编号:["证书编号"],设备名称:["设备名称","器具名称","样品名称","仪器名称","被校设备"],型号规格:["型号规格","型号/规格","型号"],出厂编号:["出厂编号","器具/管理编号","器具编号","管理编号","仪器编号"],制造厂:["制造厂","制造单位","制造厂商","制造商"],检校结果:["检校结果","检定结论","校准结果","校准/检定结果","检定结果"],依据文件:["依据文件","检定依据","检定所依据的技术文件","所依据/参照技术文件(代号/名称)","检定所依据的技术文件(编号/名称)","检定方法说明"],检校日期:["检校日期","校准日期","校验日期","检定日期","发证日期","发布日期","接收日期","签证日期"],有效日期:["有效日期","有效期","有效期至"]},us={columnName:"OCR图片",acceptTypes:"image/*",maxSize:10,maxFiles:20,apiUrl:"http://139.196.154.85:20015/api/public/paddleOCR"};class Af{constructor(n){qr(this,"config");this.config={...us,...n}}updateConfig(n){this.config={...this.config,...n}}getConfig(){return{...this.config}}validateFileSize(n){const r=this.config.maxSize*1024*1024;return n.size<=r}validateFileType(n){return n.type.startsWith("image/")||n.type==="application/pdf"}getAuthorizationToken(){const n=Qa.Local.get(Qa.accessTokenKey);return n?`Bearer ${n}`:""}buildOCRRequest(n,r){return{title:r,form:{OCR图片文件:n}}}async recognize(n,r){const o=this.getAuthorizationToken(),s=this.buildOCRRequest(n,r),c=this.config.apiUrl||us.apiUrl;return(await Qa.axios.post(c,s,{headers:{"Content-Type":"application/json",Authorization:o}})).data}getFieldAliases(n){return Si[n]?Si[n]:[n]}extractTableHeaders(n){const r=[],o=new Set,s=b=>{const p=b==null?void 0:b.label;return!(!p||p==="操作"||p===this.config.columnName||(b==null?void 0:b.type)==="operate"||(b==null?void 0:b.prop)==="operate")},c=b=>{(b||[]).forEach(p=>{if(!p)return;const v=(p==null?void 0:p.children)||(p==null?void 0:p.child)||(p==null?void 0:p.columns);if(Array.isArray(v)&&v.length>0){c(v);return}if(s(p)){const y=p.label;if(!o.has(y)){o.add(y);const u=this.getFieldAliases(y);r.push(u)}}})};return c(n||[]),r}}function ic(l){return new Af(l)}ic();const vt=async(l,n)=>{var b,p,v,y,u,_,N,$,S,q,O,M,Z,C,w,E,m;let r=(p=(b=L.cloneDeep(l))==null?void 0:b.optionUrl)==null?void 0:p.menuSelect,o=[];r==null||r.forEach(g=>{});let s="",c=await sa.menuToParent(r);if(c==null||c.forEach(g=>{var j,V,G,he;(g==null?void 0:g.name)===(((he=(G=(V=(j=L.cloneDeep(l))==null?void 0:j.optionUrl)==null?void 0:V.groupSelect)==null?void 0:G[0])==null?void 0:he.replaceAll("'",""))??"")&&(s=g==null?void 0:g.id)}),n){s=n;const g=await _r.getInsofDataApi({id:s}),j=(_=(u=(y=(v=g==null?void 0:g.data)==null?void 0:v.result)==null?void 0:y[0])==null?void 0:u.key)==null?void 0:_.pageKey;c=await sa.getItemData(j,sessionStorage.getItem("systemKey"),"")}if(s!==""){let g;n?g=(N=c==null?void 0:c.find(G=>(G==null?void 0:G.id)===n))==null?void 0:N.compData:g=($=c==null?void 0:c.find(G=>{var he,Te,Se,Q;return(G==null?void 0:G.name)===(((Te=(he=l==null?void 0:l.groupSelect)==null?void 0:he.split(":"))==null?void 0:Te[0])||((Q=(Se=l==null?void 0:l.optionUrl)==null?void 0:Se.groupSelect)==null?void 0:Q[0]))}))==null?void 0:$.compData;let j=(q=(S=g==null?void 0:g.find(G=>(G==null?void 0:G.key)==="header"))==null?void 0:S.contents)==null?void 0:q.map(G=>G==null?void 0:G.label);(M=(O=g==null?void 0:g.find(G=>(G==null?void 0:G.key)==="header"))==null?void 0:O.contents)!=null&&M.every(G=>Array.isArray(G))&&(j=(w=sa.getColumnChild((C=(Z=g==null?void 0:g.find(G=>(G==null?void 0:G.key)==="header"))==null?void 0:Z.contents)==null?void 0:C[0]))==null?void 0:w.map(G=>G==null?void 0:G.prop));let V=(m=(E=g==null?void 0:g.find(G=>(G==null?void 0:G.key)==="tableContents"))==null?void 0:E.contents)==null?void 0:m.map(G=>{if(Array.isArray(G))G=G==null?void 0:G.filter(he=>!(he!=null&&he.id));else{let he={};for(let Te in G)Te!=="id"&&(he[Te]=G==null?void 0:G[Te]);G=he}return G});V==null||V.forEach(G=>{Array.isArray(G)?o.push(sa.getValueToObjectValue(G,j)):o.push(G)})}return o},zf=L.useMenuState(L.pinia),{activeMenuPath:$6}=L.storeToRefs(zf),Mf=L.useUnit(L.pinia),{chooseTitle:R6}=L.storeToRefs(Mf),If="col-operate",St=l=>`${If}-${l}`,Of=(l,n)=>{const r=new Map;l.forEach(s=>{const{prop:c}=s;r.set(c,s)});const o=s=>{Array.isArray(s)&&s.forEach(c=>{const{prop:b}=c||{},p=r.get(b);Lf(p,c),Array.isArray(c==null?void 0:c.children)&&c.children.length>0&&o(c.children)})};return o(n),n},Lf=(l,n)=>(l&&(n.sortable=l==null?void 0:l.sortable,n.filterable=l==null?void 0:l.filterable,n.showSummary=l==null?void 0:l.showSummary,n.operable=l==null?void 0:l.operable,n.fixed=l==null?void 0:l.fixed),n),$f=(l,n)=>{const{sortable:r=!1,filterable:o=!1,showSummary:s=!1,operable:c=!1,fixed:b=!1}=n||{};return{prop:l,sortable:r,filterable:o,showSummary:s,operable:c,fixed:b}},Rf=async l=>{var c,b;if(!l)return;const n=St(l),r=await _r.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:n}}),o=(c=r==null?void 0:r.data)==null?void 0:c.code,s=(b=r==null?void 0:r.data)==null?void 0:b.result;if(o==200)return s==null?void 0:s[0]},Vf=async l=>{var c,b,p,v;if(!l)return;const n=St(l),r=await _r.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:n}}),o=(c=r==null?void 0:r.data)==null?void 0:c.code,s=(b=r==null?void 0:r.data)==null?void 0:b.result;return o==200?(v=(p=s==null?void 0:s[0])==null?void 0:p.value)==null?void 0:v.columns:[]},Pf=async(l,n)=>{if(!l||!n)return;const r=St(l);return await _r.createInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:r},value:{columns:n}})},Ff=async(l,n)=>!l||!n?void 0:await _r.updateInsofDataApi({id:l,value:{columns:n}}),ds=async(l,n)=>{const r=sessionStorage.getItem("systemKey");if(!l||!n||!r)return;const o=await Rf(l);return o?await Ff(o==null?void 0:o.id,n):await Pf(l,n)};var bi={exports:{}},jf=bi.exports,ps;function Hf(){return ps||(ps=1,function(l,n){(function(r,o){o()})(jf,function(){function r(y,u){return typeof u>"u"?u={autoBom:!1}:typeof u!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),u={autoBom:!u}),u.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 o(y,u,_){var N=new XMLHttpRequest;N.open("GET",y),N.responseType="blob",N.onload=function(){v(N.response,u,_)},N.onerror=function(){console.error("could not download file")},N.send()}function s(y){var u=new XMLHttpRequest;u.open("HEAD",y,!1);try{u.send()}catch{}return 200<=u.status&&299>=u.status}function c(y){try{y.dispatchEvent(new MouseEvent("click"))}catch{var u=document.createEvent("MouseEvents");u.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),y.dispatchEvent(u)}}var b=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Rn.commonjsGlobal=="object"&&Rn.commonjsGlobal.global===Rn.commonjsGlobal?Rn.commonjsGlobal:void 0,p=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&&!p?function(y,u,_){var N=b.URL||b.webkitURL,$=document.createElement("a");u=u||y.name||"download",$.download=u,$.rel="noopener",typeof y=="string"?($.href=y,$.origin===location.origin?c($):s($.href)?o(y,u,_):c($,$.target="_blank")):($.href=N.createObjectURL(y),setTimeout(function(){N.revokeObjectURL($.href)},4e4),setTimeout(function(){c($)},0))}:"msSaveOrOpenBlob"in navigator?function(y,u,_){if(u=u||y.name||"download",typeof y!="string")navigator.msSaveOrOpenBlob(r(y,_),u);else if(s(y))o(y,u,_);else{var N=document.createElement("a");N.href=y,N.target="_blank",setTimeout(function(){c(N)})}}:function(y,u,_,N){if(N=N||open("","_blank"),N&&(N.document.title=N.document.body.innerText="downloading..."),typeof y=="string")return o(y,u,_);var $=y.type==="application/octet-stream",S=/constructor/i.test(b.HTMLElement)||b.safari,q=/CriOS\/[\d]+/.test(navigator.userAgent);if((q||$&&S||p)&&typeof FileReader<"u"){var O=new FileReader;O.onloadend=function(){var C=O.result;C=q?C:C.replace(/^data:[^;]*;/,"data:attachment/file;"),N?N.location.href=C:location=C,N=null},O.readAsDataURL(y)}else{var M=b.URL||b.webkitURL,Z=M.createObjectURL(y);N?N.location=Z:location.href=Z,N=null,setTimeout(function(){M.revokeObjectURL(Z)},4e4)}});b.saveAs=v.saveAs=v,l.exports=v})}(bi)),bi.exports}Hf();const Jn=L.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}}}),Uf=L.useLoginState(L.pinia),{loginUserInfo:ot}=L.storeToRefs(Uf),qf=async l=>{var o,s,c;let n=await L.getAllTables({platId:parseInt((o=ot==null?void 0:ot.value)==null?void 0:o.plat_id),tableNames:[l]});return n=(c=(s=n==null?void 0:n.data)==null?void 0:s.result)==null?void 0:c[0],await ec(n,!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:n}]}]},Wf=L.useLoginState(),{loginUserInfo:gl}=L.storeToRefs(Wf);let hi="$R";const Sr=L.useModelComp(L.pinia),tc=a.ref(!1),{itemData:Kf,itemGridData:ro,curStructureCompIds:fs,isSubmitCurStructure:Gf,routeToChildPath:Yf,pageMapState:mt,itemExtendData:vi,refreshTable:hs}=L.storeToRefs(Sr),Mi=Jn(L.pinia),Tr=L.useMenuState(L.pinia),ar=a.shallowRef([]),{asideMenus:Jf,activeTopMenuPath:Xf,activeMenuPath:xl,platform:V6,buttonTriggerType:Zf,currentMenuPath:Zr}=L.storeToRefs(Tr),dn=L.useUnit(L.pinia),{selectTitle:Kn,chooseTitle:Ci}=L.storeToRefs(dn);a.ref();const Bo=a.ref(!0),Yn=a.ref(0),yt=a.ref([]);a.ref(!1);const Ct=a.ref(!1),Ho=a.ref(),sc=a.ref(),cc=a.ref(),Qf=()=>{Sr.setItemGridData([]),Sr.setIsEdit("edit"),Sr.setSubmitCurStructure(xl.value!=="/平台管理/菜单管理")},e0=()=>{Sr.setIsEdit("view"),Sr.setRefreshCurStructure(!0)},a0=async l=>{var s;let n=Kn.value,r=n==null?void 0:n.findIndex(c=>(c==null?void 0:c.value)===(l==null?void 0:l.value)),o=n==null?void 0:n.filter((c,b)=>b<=r);dn.setSelectTitle(dl.safeClone(o)),o=(s=o==null?void 0:o.map(c=>c==null?void 0:c.value))==null?void 0:s.join("/"),Tr.setActiveMenuPath(null),Tr.setActiveMenuPath(o)},it=async(l,n,r,o="contentConfig")=>{var s;try{if(!Array.isArray(l))return;let c,b;n==="create"?(c={dataList:l==null?void 0:l.map(v=>{var y;return{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:r!=null&&r.startsWith("/")?r==null?void 0:r.substring(1):r,type:"structure",structureBelong:o,parentTable:"",version:1},value:{pageData:{...v,compData:(y=v==null?void 0:v.compData)==null?void 0:y.filter(u=>(u==null?void 0:u.key)!=="tableContents")}}}})},b=_r.batchAddInsofDataApi):n==="update"?(c={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(u=>(u==null?void 0:u.key)!=="tableContents")}}}})},b=_r.batchUpdateInsofDataApi):n==="delete"&&(c={ids:l},b=_r.batchDeleteInsofDataApi);const p=await b(c);if(((s=p==null?void 0:p.data)==null?void 0:s.code)===200)return p.data.result;throw Qa.ElMessage.error("保存响应失败"),new Error("保存响应失败")}catch{Qa.ElMessage.error("保存响应失败")}},vs=async(l,n,r,o)=>{var s,c,b,p,v,y,u,_,N,$,S;try{const q=(c=(s=l==null?void 0:l.results)==null?void 0:s.filter(E=>!(E!=null&&E.id)||typeof(E==null?void 0:E.id)=="string"))==null?void 0:c.map(E=>({key:{pageKey:l==null?void 0:l.pageKey,systemKey:sessionStorage.getItem("systemKey"),type:n,relatedInfo:r},value:{tableData:E}})),O=(p=(b=l==null?void 0:l.results)==null?void 0:b.filter(E=>(E==null?void 0:E.id)&&typeof(E==null?void 0:E.id)=="number"))==null?void 0:p.map(E=>({id:E==null?void 0:E.id,value:{tableData:E}})),M=JSON.parse(JSON.stringify(l)),Z=(v=M==null?void 0:M.results)==null?void 0:v.map(E=>E.id);let C;r?C=(_=(u=(y=mt.value)==null?void 0:y[xl.value])==null?void 0:u.filter(E=>{var m,g,j;return((m=E==null?void 0:E.key)==null?void 0:m.type)===n&&((j=(g=E==null?void 0:E.key)==null?void 0:g.relatedInfo)==null?void 0:j.target)===o}))==null?void 0:_.map(E=>E==null?void 0:E.id):C=(S=($=(N=mt.value)==null?void 0:N[xl.value])==null?void 0:$.filter(E=>{var m;return((m=E==null?void 0:E.key)==null?void 0:m.type)===n}))==null?void 0:S.map(E=>E==null?void 0:E.id);const w=C==null?void 0:C.filter(E=>!(Z!=null&&Z.includes(E))&&typeof E=="number");(q==null?void 0:q.length)>0&&await _r.batchAddInsofDataApi({dataList:q}),(O==null?void 0:O.length)>0&&await _r.batchUpdateInsofDataApi({dataList:O}),(w==null?void 0:w.length)>0&&await _r.batchDeleteInsofDataApi({ids:w})}catch(q){throw new Error(q)}},l0=async l=>{var y,u,_,N,$,S,q,O,M,Z;Tr.setContentLoading(!0);const n=JSON.parse(JSON.stringify(Kf.value));if(!Gf.value)return Tr.setCacheStructures({key:Zf.value,data:n}),Qa.ElMessage.success("已暂存");const r=n==null?void 0:n.map(C=>C.id),o=r.filter(C=>{var w;return!((w=fs.value)!=null&&w.includes(C))}),s=(y=fs.value)==null?void 0:y.filter(C=>!r.includes(C)),c=[...o,...s].filter(C=>typeof C!==null&&typeof C<"u"),b=n==null?void 0:n.filter(C=>!C.id),p=n==null?void 0:n.filter(C=>C.id);let v=[];if(c&&(c==null?void 0:c.length)>0&&v.push(it(c,"delete",l)),b&&(b==null?void 0:b.length)>0&&v.push(it(b,"create",l)),p&&(p==null?void 0:p.length)>0&&v.push(it(p,"update",l)),ro.value&&((u=ro.value)!=null&&u.isDelete&&((N=(_=ro.value)==null?void 0:_.results)==null?void 0:N.length)>0&&((S=($=ro.value)==null?void 0:$.results)!=null&&S.every(C=>typeof C=="number"))?await _r.batchDeleteInsofDataApi({ids:(q=ro.value)==null?void 0:q.results}):(console.log("itemGridData.value",ro.value),v.push(await vs(ro.value,"gridLayout")))),vi.value)for(const C in vi.value)v.push(await vs((O=vi.value)==null?void 0:O[C],"extend",{target:C,compId:(Z=(M=vi.value)==null?void 0:M[C])==null?void 0:Z.compId},C));await Promise.all(v).then(()=>{Qa.ElMessage.success("保存成功"),Sr.setRefreshCurStructure(!0)}).catch(C=>{Qa.ElMessage.success(C)}),Tr.setContentLoading(!1)},Uo=l=>No(l),r0=a.computed(()=>{var l;return(l=ar.value)==null?void 0:l.filter(n=>(n==null?void 0:n.affix)&&(n==null?void 0:n.affix)!=="default")}),uc=a.computed(()=>{var l;return(l=ar.value)==null?void 0:l.filter(n=>!(n!=null&&n.affix&&(n==null?void 0:n.affix)!=="default"))}),dc=a.ref(0),pc=a.ref(null),n0="ocr_committed_temp_ids_v1",o0=(l,n)=>`${n0}:${String(l??"")}:${String(n??"")}`,i0=(l,n,r)=>{try{const o=o0(l,n),s=sessionStorage.getItem(o),c=s?JSON.parse(s):[],b=Array.isArray(c)?c:[],p=Array.from(new Set([...b,...r||[]].map(v=>String(v)))).slice(-200);sessionStorage.setItem(o,JSON.stringify(p))}catch{}},Di=async(l,n="data",r)=>{var s,c,b,p,v,y,u,_,N,$,S,q,O,M,Z,C,w,E,m,g,j,V,G,he,Te,Se,Q,fe,J,ce,He,Ca,ne,D,re,be,ue,De,pa,_a,Ga,le,la,Ve,wa,Fe,ze,Re,Ze,Ja,qa,F,P,X,ie,se,ga,ra,Le,Ee,Ea,va,Va,Pa,me,Je,Ae,Xe,oe,_e,de,We,ea,ka,Pe,ba,xa,fa,Ha,Ba,Ia,$a,Ne,sl,yl,Gl,Ya;let o=((b=(c=(s=Kn.value)==null?void 0:s.filter(da=>(da==null?void 0:da.condition)==="child"))==null?void 0:c[0])==null?void 0:b.value)??"";if((l==null?void 0:l.buttonName)==="新增"){let da=(p=l==null?void 0:l.fixContent)==null?void 0:p.map(ye=>{let Oa={};for(let Ue in ye)Array.isArray(ye==null?void 0:ye[Ue])?Oa[Ue]=JSON.stringify(ye==null?void 0:ye[Ue]):Oa[Ue]=ye==null?void 0:ye[Ue];return Oa}),ha=await L.quoteApi({platId:parseInt((v=gl==null?void 0:gl.value)==null?void 0:v.plat_id),type:"fatherSyncs",related:[{menus:o!==""?xl.value+"/"+o:xl.value,groups:l==null?void 0:l.name}]});ha=(y=ha==null?void 0:ha.data)==null?void 0:y.result,ha=ha==null?void 0:ha.filter(ye=>{var Oa,Ue;return!((ye==null?void 0:ye.fatherPath)!==""&&((Ue=(Oa=ye==null?void 0:ye.quote)==null?void 0:Oa[0])==null?void 0:Ue.menus)===(xl==null?void 0:xl.value))});let ma=ha==null?void 0:ha.map(ye=>{var aa,Ge;let Oa={},Ue=da==null?void 0:da[0],W;return Array.isArray((aa=ye==null?void 0:ye.struct)==null?void 0:aa[0])?W=sa.getColumnChild((Ge=ye==null?void 0:ye.struct)==null?void 0:Ge[0]):W=ye==null?void 0:ye.struct,W=W==null?void 0:W.filter(Be=>(Be==null?void 0:Be.prop)!=="relatedId"),W==null||W.forEach(Be=>{var El,il;Oa[Be.prop]=((El=Be==null?void 0:Be.words)!=null&&El[0]?(Ue==null?void 0:Ue[(il=Be==null?void 0:Be.words)==null?void 0:il[0]])??(Ue==null?void 0:Ue[Be==null?void 0:Be.prop]):Ue==null?void 0:Ue[Be==null?void 0:Be.prop])??""}),Oa.id="1",Oa.relatedId=`[${Oa.id}]`,delete Oa.sort,{tableName:"content_"+(ye==null?void 0:ye.id),tableContents:[Oa]}}),Ye=[{tableName:(u=l==null?void 0:l.relatedContents)==null?void 0:u.find(ye=>ye==null?void 0:ye.includes("content")),tableContents:da}];Ye=[...Ye,...ma];let Xa=await L.quoteApi({platId:parseInt((_=gl==null?void 0:gl.value)==null?void 0:_.plat_id),type:"sonSyncs",related:[{menus:o!==""?xl.value+"/"+o:xl.value,groups:l==null?void 0:l.name}]});Xa=($=(N=Xa==null?void 0:Xa.data)==null?void 0:N.result)==null?void 0:$.filter(ye=>!(Ye!=null&&Ye.find(Oa=>(Oa==null?void 0:Oa.tableName)==="content_"+(ye==null?void 0:ye.id)))),Xa=Xa==null?void 0:Xa.filter(ye=>{var Oa,Ue;return!((ye==null?void 0:ye.fatherPath)!==""&&((Ue=(Oa=ye==null?void 0:ye.quote)==null?void 0:Oa[0])==null?void 0:Ue.menus)===(xl==null?void 0:xl.value))});let Ce=Xa==null?void 0:Xa.map(ye=>{var aa,Ge,Be,El,il,bl,Wa;let Oa={},Ue=da==null?void 0:da[0],W;return Array.isArray((aa=ye==null?void 0:ye.struct)==null?void 0:aa[0])?W=sa.getColumnChild((Ge=ye==null?void 0:ye.struct)==null?void 0:Ge[0]):W=ye==null?void 0:ye.struct,W=W==null?void 0:W.filter(Za=>(Za==null?void 0:Za.prop)!=="relatedId"),((El=(Be=W==null?void 0:W[0])==null?void 0:Be.words)!=null&&El[0]?Ue!=null&&Ue[(bl=(il=W==null?void 0:W[0])==null?void 0:il.words)==null?void 0:bl[0]]:Ue!=null&&Ue[(Wa=W==null?void 0:W[0])==null?void 0:Wa.prop])?(W==null||W.forEach(Za=>{var Na,pe;Oa[Za.prop]=((Na=Za==null?void 0:Za.words)!=null&&Na[0]?(Ue==null?void 0:Ue[(pe=Za==null?void 0:Za.words)==null?void 0:pe[0]])??(Ue==null?void 0:Ue[Za==null?void 0:Za.prop]):Ue==null?void 0:Ue[Za==null?void 0:Za.prop])??""}),Oa.id="1",Oa.relatedId=`[${Oa.id}]`,delete Oa.sort):Oa=void 0,{tableName:"content_"+(ye==null?void 0:ye.id),tableContents:[Oa]}});Ce=Ce==null?void 0:Ce.filter(ye=>{var Oa;return!((Oa=ye==null?void 0:ye.tableContents)!=null&&Oa.every(Ue=>Ue===void 0))}),Ye=[...Ye,...Ce],await L.pageBatchAddApi({platId:parseInt((S=gl==null?void 0:gl.value)==null?void 0:S.plat_id),changeContents:Ye});let Ke=[];Ye==null||Ye.forEach(ye=>{var Oa;(Oa=ye==null?void 0:ye.tableContents)==null||Oa.forEach(Ue=>{Ke.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(Ue),request_result:"{}",is_delete:!1,request_table:ye==null?void 0:ye.tableName,request_type:"add"})})}),await L.pageBatchAddApi({platId:parseInt((q=gl==null?void 0:gl.value)==null?void 0:q.plat_id),changeContents:[{tableName:"log",tableContents:Ke}]})}if((l==null?void 0:l.buttonName)==="OCR批量新增"){const da=((l==null?void 0:l.ocrRows)||[]).map(Xa=>Xa==null?void 0:Xa.id).filter(Xa=>Xa!=null),ha=((l==null?void 0:l.ocrRows)||[]).map(Xa=>{const Ce={...Xa};return delete Ce._isOCRRow,delete Ce._ocrTableId,Object.keys(Ce).forEach(Ke=>{/(^|\.)证书附件$/.test(Ke)&&Array.isArray(Ce[Ke])&&(Ce[Ke]=JSON.stringify(Ce[Ke].map(ye=>({url:(ye==null?void 0:ye.url)||"",name:(ye==null?void 0:ye.name)||(ye==null?void 0:ye.fileName)||"",fileName:(ye==null?void 0:ye.fileName)||(ye==null?void 0:ye.name)||""})).filter(ye=>ye.url||ye.name)))}),Ce});let ma=[{tableName:(O=l==null?void 0:l.relatedContents)==null?void 0:O.find(Xa=>Xa==null?void 0:Xa.includes("content")),tableContents:ha}];await L.pageBatchAddApi({platId:parseInt((M=gl==null?void 0:gl.value)==null?void 0:M.plat_id),changeContents:ma});let Ye=[];ma==null||ma.forEach(Xa=>{var Ce;(Ce=Xa==null?void 0:Xa.tableContents)==null||Ce.forEach(Ke=>{Ye.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(Ke),request_result:"{}",is_delete:!1,request_table:Xa==null?void 0:Xa.tableName,request_type:"ocrBatchAdd"})})}),await L.pageBatchAddApi({platId:parseInt((Z=gl==null?void 0:gl.value)==null?void 0:Z.plat_id),changeContents:[{tableName:"log",tableContents:Ye}]}),i0(l==null?void 0:l.parentTableId,l==null?void 0:l.index,da)}if((l==null?void 0:l.buttonName)==="编辑"){const ha=((l==null?void 0:l.fixContent)||(l==null?void 0:l.singleContent)||[]||[]).map(W=>{const aa={...W};return delete aa._isOCRRow,delete aa._ocrTableId,delete aa._isTemp,delete aa.tableEditType,delete aa.index,aa});let ma=ha==null?void 0:ha.map(W=>{let aa={};for(let Ge in W)Array.isArray(W==null?void 0:W[Ge])?aa[Ge]=JSON.stringify(W==null?void 0:W[Ge]):aa[Ge]=W==null?void 0:W[Ge];return aa}),Ye=await L.quoteApi({platId:parseInt((C=gl==null?void 0:gl.value)==null?void 0:C.plat_id),type:"fatherSyncs",related:[{menus:o!==""?xl.value+"/"+o:xl.value,groups:l==null?void 0:l.name}]});Ye=(w=Ye==null?void 0:Ye.data)==null?void 0:w.result,Ye=Ye==null?void 0:Ye.filter(W=>{var aa,Ge;return!((W==null?void 0:W.fatherPath)!==""&&((Ge=(aa=W==null?void 0:W.quote)==null?void 0:aa[0])==null?void 0:Ge.menus)===(xl==null?void 0:xl.value))});let Xa=(E=ma==null?void 0:ma[0])==null?void 0:E.id,Ce=[{tableName:(m=l==null?void 0:l.relatedContents)==null?void 0:m.find(W=>W==null?void 0:W.includes("content")),tableContents:ma}],Ke=(g=Ye==null?void 0:Ye.map(W=>{var Ge,Be,El,il,bl;let aa=(Ge=W==null?void 0:W.contents)==null?void 0:Ge.filter(Wa=>{var Za,Na;return JSON.stringify(Wa==null?void 0:Wa.relatedId)!=="{}"&&(Wa==null?void 0:Wa.relatedId)!==""&&(Wa!=null&&Wa.relatedId)?(Za=Wa==null?void 0:Wa.relatedId)==null?void 0:Za.includes(parseInt(Xa)):(Wa==null?void 0:Wa.sort)===((Na=ma==null?void 0:ma[0])==null?void 0:Na.sort)});if((aa==null?void 0:aa.length)>0){let Wa=ma==null?void 0:ma[0];Wa={...Wa,id:(Be=aa==null?void 0:aa[0])==null?void 0:Be.id};let Za={},Na=Wa,pe;return Array.isArray((El=W==null?void 0:W.struct)==null?void 0:El[0])?pe=sa.getColumnChild((il=W==null?void 0:W.struct)==null?void 0:il[0]):pe=W==null?void 0:W.struct,pe=pe==null?void 0:pe.filter(Sa=>(Sa==null?void 0:Sa.prop)!=="relatedId"),pe==null||pe.forEach(Sa=>{var Sl,Vl;Za[Sa.prop]=((Sl=Sa==null?void 0:Sa.words)!=null&&Sl[0]?(Na==null?void 0:Na[(Vl=Sa==null?void 0:Sa.words)==null?void 0:Vl[0]])??(Na==null?void 0:Na[Sa==null?void 0:Sa.prop]):Na==null?void 0:Na[Sa==null?void 0:Sa.prop])??""}),Za.id=(bl=aa==null?void 0:aa[0])==null?void 0:bl.id,delete Za.sort,delete Za.relatedId,{tableName:"content_"+(W==null?void 0:W.id),tableContents:[Za]}}else return}))==null?void 0:g.filter(W=>W);Ce=[...Ce,...Ke];let ye=await L.quoteApi({platId:parseInt((j=gl==null?void 0:gl.value)==null?void 0:j.plat_id),type:"sonSyncs",related:[{menus:o!==""?xl.value+"/"+o:xl.value,groups:l==null?void 0:l.name}]});ye=(G=(V=ye==null?void 0:ye.data)==null?void 0:V.result)==null?void 0:G.filter(W=>!(Ce!=null&&Ce.find(aa=>(aa==null?void 0:aa.tableName)==="content_"+(W==null?void 0:W.id)))),ye=ye==null?void 0:ye.filter(W=>{var aa,Ge;return!((W==null?void 0:W.fatherPath)!==""&&((Ge=(aa=W==null?void 0:W.quote)==null?void 0:aa[0])==null?void 0:Ge.menus)===(xl==null?void 0:xl.value))});let Oa=(he=ye==null?void 0:ye.map(W=>{var Ge,Be,El,il,bl;let aa=(Ge=W==null?void 0:W.contents)==null?void 0:Ge.filter(Wa=>{var Za,Na,pe;return JSON.stringify(Wa==null?void 0:Wa.relatedId)!=="{}"&&(Wa==null?void 0:Wa.relatedId)!==""&&(Wa!=null&&Wa.relatedId)?(Za=Wa==null?void 0:Wa.relatedId)==null?void 0:Za.includes(parseInt(Xa)):(Wa==null?void 0:Wa.sort)===((Na=ma==null?void 0:ma[0])==null?void 0:Na.sort)||(Wa==null?void 0:Wa.sort)===(parseInt(((pe=ma==null?void 0:ma[0])==null?void 0:pe.sort)??"0")+1).toString()});if((aa==null?void 0:aa.length)>0){let Wa=ma==null?void 0:ma[0];Wa={...Wa,id:(Be=aa==null?void 0:aa[0])==null?void 0:Be.id};let Za={},Na=Wa,pe;return Array.isArray((El=W==null?void 0:W.struct)==null?void 0:El[0])?pe=sa.getColumnChild((il=W==null?void 0:W.struct)==null?void 0:il[0]):pe=W==null?void 0:W.struct,pe=pe==null?void 0:pe.filter(Sa=>(Sa==null?void 0:Sa.prop)!=="relatedId"),pe==null||pe.forEach(Sa=>{var Sl,Vl,Fl,lr;((Sl=Sa==null?void 0:Sa.words)!=null&&Sl[0]?(Na==null?void 0:Na[(Vl=Sa==null?void 0:Sa.words)==null?void 0:Vl[0]])??(Na==null?void 0:Na[Sa==null?void 0:Sa.prop]):Na!=null&&Na[Sa==null?void 0:Sa.prop])&&(Za[Sa.prop]=((Fl=Sa==null?void 0:Sa.words)!=null&&Fl[0]?(Na==null?void 0:Na[(lr=Sa==null?void 0:Sa.words)==null?void 0:lr[0]])??(Na==null?void 0:Na[Sa==null?void 0:Sa.prop]):Na==null?void 0:Na[Sa==null?void 0:Sa.prop])??"")}),Za.id=(bl=aa==null?void 0:aa[0])==null?void 0:bl.id,delete Za.sort,delete Za.relatedId,{tableName:"content_"+(W==null?void 0:W.id),tableContents:[Za]}}else return}))==null?void 0:he.filter(W=>W);Ce=[...Ce,...Oa],await L.pageBatchUpdateApi({platId:parseInt((Te=gl==null?void 0:gl.value)==null?void 0:Te.plat_id),changeContents:Ce});let Ue=[];Ce==null||Ce.forEach(W=>{var aa;(aa=W==null?void 0:W.tableContents)==null||aa.forEach(Ge=>{Ue.push({id:"1",request_method:"Post",request_url:"/platform/page/update",request_param:JSON.stringify(Ge),request_result:"{}",is_delete:!1,request_table:W==null?void 0:W.tableName,request_type:"update"})})}),await L.pageBatchAddApi({platId:parseInt((Se=gl==null?void 0:gl.value)==null?void 0:Se.plat_id),changeContents:[{tableName:"log",tableContents:Ue}]})}if((l==null?void 0:l.buttonName)==="删除"){let da=[{tableName:(Q=l==null?void 0:l.relatedContents)==null?void 0:Q.find(ye=>ye==null?void 0:ye.includes("content")),tableContents:l==null?void 0:l.fixContent}],ha=await L.quoteApi({platId:parseInt((fe=gl==null?void 0:gl.value)==null?void 0:fe.plat_id),type:"fatherSyncs",related:[{menus:o!==""?xl.value+"/"+o:xl.value,groups:l==null?void 0:l.name}]});ha=(J=ha==null?void 0:ha.data)==null?void 0:J.result,ha=ha==null?void 0:ha.filter(ye=>{var Oa,Ue;return!((ye==null?void 0:ye.fatherPath)!==""&&((Ue=(Oa=ye==null?void 0:ye.quote)==null?void 0:Oa[0])==null?void 0:Ue.menus)===(xl==null?void 0:xl.value))});let ma=(He=(ce=l==null?void 0:l.fixContent)==null?void 0:ce[0])==null?void 0:He.id,Ye=(Ca=ha==null?void 0:ha.map(ye=>{var Ue,W,aa,Ge,Be,El;let Oa=(Ue=ye==null?void 0:ye.contents)==null?void 0:Ue.filter(il=>{var bl,Wa,Za;return JSON.stringify(il==null?void 0:il.relatedId)!=="{}"&&(il==null?void 0:il.relatedId)!==""&&(il!=null&&il.relatedId)?(bl=il==null?void 0:il.relatedId)==null?void 0:bl.includes(parseInt(ma)):(il==null?void 0:il.sort)===((Za=(Wa=l==null?void 0:l.fixContent)==null?void 0:Wa[0])==null?void 0:Za.sort)});if((Oa==null?void 0:Oa.length)>0){let il=(W=l==null?void 0:l.fixContent)==null?void 0:W[0];il={...il,id:(aa=Oa==null?void 0:Oa[0])==null?void 0:aa.id};let bl={},Wa=il,Za;return Array.isArray((Ge=ye==null?void 0:ye.struct)==null?void 0:Ge[0])?Za=sa.getColumnChild((Be=ye==null?void 0:ye.struct)==null?void 0:Be[0]):Za=ye==null?void 0:ye.struct,Za=Za==null?void 0:Za.filter(Na=>(Na==null?void 0:Na.prop)!=="relatedId"),Za==null||Za.forEach(Na=>{var pe,Sa;bl[Na.prop]=((pe=Na==null?void 0:Na.words)!=null&&pe[0]?(Wa==null?void 0:Wa[(Sa=Na==null?void 0:Na.words)==null?void 0:Sa[0]])??(Wa==null?void 0:Wa[Na==null?void 0:Na.prop]):Wa==null?void 0:Wa[Na==null?void 0:Na.prop])??""}),bl.id=(El=Oa==null?void 0:Oa[0])==null?void 0:El.id,delete bl.sort,delete bl.relatedId,{tableName:"content_"+(ye==null?void 0:ye.id),tableContents:[bl]}}else return}))==null?void 0:Ca.filter(ye=>ye);da=[...da,...Ye];let Xa=await L.quoteApi({platId:parseInt((ne=gl==null?void 0:gl.value)==null?void 0:ne.plat_id),type:"sonSyncs",related:[{menus:o!==""?xl.value+"/"+o:xl.value,groups:l==null?void 0:l.name}]});Xa=(re=(D=Xa==null?void 0:Xa.data)==null?void 0:D.result)==null?void 0:re.filter(ye=>!(da!=null&&da.find(Oa=>(Oa==null?void 0:Oa.tableName)==="content_"+(ye==null?void 0:ye.id)))),Xa=Xa==null?void 0:Xa.filter(ye=>{var Oa,Ue;return!((ye==null?void 0:ye.fatherPath)!==""&&((Ue=(Oa=ye==null?void 0:ye.quote)==null?void 0:Oa[0])==null?void 0:Ue.menus)===(xl==null?void 0:xl.value))});let Ce=(be=Xa==null?void 0:Xa.map(ye=>{var Ue,W,aa,Ge,Be,El;let Oa=(Ue=ye==null?void 0:ye.contents)==null?void 0:Ue.filter(il=>{var bl,Wa,Za;return JSON.stringify(il==null?void 0:il.relatedId)!=="{}"&&(il==null?void 0:il.relatedId)!==""&&(il!=null&&il.relatedId)?(bl=il==null?void 0:il.relatedId)==null?void 0:bl.includes(parseInt(ma)):(il==null?void 0:il.sort)===((Za=(Wa=l==null?void 0:l.fixContent)==null?void 0:Wa[0])==null?void 0:Za.sort)});if((Oa==null?void 0:Oa.length)>0){let il=(W=l==null?void 0:l.fixContent)==null?void 0:W[0];il={...il,id:(aa=Oa==null?void 0:Oa[0])==null?void 0:aa.id};let bl={},Wa=il,Za;return Array.isArray((Ge=ye==null?void 0:ye.struct)==null?void 0:Ge[0])?Za=sa.getColumnChild((Be=ye==null?void 0:ye.struct)==null?void 0:Be[0]):Za=ye==null?void 0:ye.struct,Za=Za==null?void 0:Za.filter(Na=>(Na==null?void 0:Na.prop)!=="relatedId"),Za==null||Za.forEach(Na=>{var pe,Sa;bl[Na.prop]=((pe=Na==null?void 0:Na.words)!=null&&pe[0]?(Wa==null?void 0:Wa[(Sa=Na==null?void 0:Na.words)==null?void 0:Sa[0]])??(Wa==null?void 0:Wa[Na==null?void 0:Na.prop]):Wa==null?void 0:Wa[Na==null?void 0:Na.prop])??""}),bl.id=(El=Oa==null?void 0:Oa[0])==null?void 0:El.id,delete bl.sort,delete bl.relatedId,{tableName:"content_"+(ye==null?void 0:ye.id),tableContents:[bl]}}else return}))==null?void 0:be.filter(ye=>ye);da=[...da,...Ce],await L.pageBatchDeleteApi({platId:parseInt((ue=gl==null?void 0:gl.value)==null?void 0:ue.plat_id),changeContents:da});let Ke=[];da==null||da.forEach(ye=>{var Oa;(Oa=ye==null?void 0:ye.tableContents)==null||Oa.forEach(Ue=>{Ke.push({id:"1",request_method:"Post",request_url:"/platform/page/delete",request_param:JSON.stringify(Ue),request_result:"{}",is_delete:!1,request_table:ye==null?void 0:ye.tableName,request_type:"delete"})})}),await L.pageBatchAddApi({platId:parseInt((De=gl==null?void 0:gl.value)==null?void 0:De.plat_id),changeContents:[{tableName:"log",tableContents:Ke}]})}if((l==null?void 0:l.buttonName)==="复制新增"){let da=await L.getPageDataApi({platId:parseInt((pa=gl==null?void 0:gl.value)==null?void 0:pa.plat_id),pageName:"menu"});if(da=(_a=da==null?void 0:da.data)==null?void 0:_a.result,da!=null&&da.find(ha=>(ha==null?void 0:ha.father_name)===xl.value+"/")){cc.value=l,sc.value=da==null?void 0:da.filter(Ye=>(Ye==null?void 0:Ye.father_name)===xl.value+"/");let ha=(le=(Ga=l==null?void 0:l.columns)==null?void 0:Ga.find(Ye=>Ye==null?void 0:Ye.mainKey))==null?void 0:le.prop,ma=(Ve=(la=l==null?void 0:l.fixContent)==null?void 0:la[0])==null?void 0:Ve[ha];Ct.value=!0,Ho.value=[{prop:ha,label:ha,name:ha,value:ma}]}else{let ha=(wa=l==null?void 0:l.fixContent)==null?void 0:wa.map(Xa=>{let Ce={};for(let Ke in Xa)Array.isArray(Xa==null?void 0:Xa[Ke])?Ce[Ke]=JSON.stringify(Xa==null?void 0:Xa[Ke]):Ce[Ke]=Xa==null?void 0:Xa[Ke];return Ce.relatedId="",Ce}),ma=[{tableName:(Fe=l==null?void 0:l.relatedContents)==null?void 0:Fe.find(Xa=>Xa==null?void 0:Xa.includes("content")),tableContents:ha}];await L.pageBatchAddApi({platId:parseInt((ze=gl==null?void 0:gl.value)==null?void 0:ze.plat_id),changeContents:ma});let Ye=[];ma==null||ma.forEach(Xa=>{var Ce;(Ce=Xa==null?void 0:Xa.tableContents)==null||Ce.forEach(Ke=>{Ye.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(Ke),request_result:"{}",is_delete:!1,request_table:Xa==null?void 0:Xa.tableName,request_type:"copyAdd"})})}),await L.pageBatchAddApi({platId:parseInt((Re=gl==null?void 0:gl.value)==null?void 0:Re.plat_id),changeContents:[{tableName:"log",tableContents:Ye}]})}}if((l==null?void 0:l.buttonName)==="methodButton"){let da=((qa=(Ja=(Ze=l==null?void 0:l.columns)==null?void 0:Ze.map(W=>W==null?void 0:W.filter))==null?void 0:Ja.filter(W=>W!==""))==null?void 0:qa[0])??"";da=ja.analyzeSplitToContent(da,","),da=(da==null?void 0:da.find(W=>W==null?void 0:W.includes("@Filter")))??"";let ha=(F=l==null?void 0:l.fixContent)==null?void 0:F.map(W=>{let aa={};for(let Ge in W)Array.isArray(W==null?void 0:W[Ge])?aa[Ge]=JSON.stringify(W==null?void 0:W[Ge]):aa[Ge]=W==null?void 0:W[Ge];return aa}),ma=await L.quoteApi({platId:parseInt((P=gl==null?void 0:gl.value)==null?void 0:P.plat_id),type:"fatherSyncs",related:[{menus:o!==""?xl.value+"/"+o:xl.value,groups:l==null?void 0:l.name}]});ma=(X=ma==null?void 0:ma.data)==null?void 0:X.result,ma=ma==null?void 0:ma.filter(W=>{var aa,Ge;return!((W==null?void 0:W.fatherPath)!==""&&((Ge=(aa=W==null?void 0:W.quote)==null?void 0:aa[0])==null?void 0:Ge.menus)===(xl==null?void 0:xl.value))});let Ye=(se=(ie=l==null?void 0:l.columns)==null?void 0:ie[0])==null?void 0:se.prop,Xa=(ga=ha==null?void 0:ha[0])==null?void 0:ga[Ye],Ce=[{tableName:(ra=l==null?void 0:l.relatedContents)==null?void 0:ra.find(W=>W==null?void 0:W.includes("content")),tableContents:ha}],Ke=(Le=ma==null?void 0:ma.map(W=>{var Ge,Be,El,il,bl;let aa=(Ge=W==null?void 0:W.contents)==null?void 0:Ge.filter(Wa=>{var Za;return(Za=Object.values(Wa))==null?void 0:Za.find(Na=>Na===Xa)});if((aa==null?void 0:aa.length)>0){let Wa=ha==null?void 0:ha[0];Wa={...Wa,id:(Be=aa==null?void 0:aa[0])==null?void 0:Be.id};let Za={},Na=Wa,pe;return Array.isArray((El=W==null?void 0:W.struct)==null?void 0:El[0])?pe=sa.getColumnChild((il=W==null?void 0:W.struct)==null?void 0:il[0]):pe=W==null?void 0:W.struct,pe=pe==null?void 0:pe.filter(Sa=>(Sa==null?void 0:Sa.prop)!=="relatedId"),pe==null||pe.forEach(Sa=>{var Sl,Vl;Za[Sa.prop]=((Sl=Sa==null?void 0:Sa.words)!=null&&Sl[0]?(Na==null?void 0:Na[(Vl=Sa==null?void 0:Sa.words)==null?void 0:Vl[0]])??(Na==null?void 0:Na[Sa==null?void 0:Sa.prop]):Na==null?void 0:Na[Sa==null?void 0:Sa.prop])??""}),Za.id=(bl=aa==null?void 0:aa[0])==null?void 0:bl.id,delete Za.sort,{tableName:"content_"+(W==null?void 0:W.id),tableContents:[Za]}}else return}))==null?void 0:Le.filter(W=>W);Ce=[...Ce,...Ke];let ye=await L.quoteApi({platId:parseInt((Ee=gl==null?void 0:gl.value)==null?void 0:Ee.plat_id),type:"sonSyncs",related:[{menus:o!==""?xl.value+"/"+o:xl.value,groups:l==null?void 0:l.name}]});if(ye=(va=(Ea=ye==null?void 0:ye.data)==null?void 0:Ea.result)==null?void 0:va.filter(W=>!(Ce!=null&&Ce.find(aa=>(aa==null?void 0:aa.tableName)==="content_"+(W==null?void 0:W.id)))),ye=ye==null?void 0:ye.filter(W=>{var aa,Ge;return!((W==null?void 0:W.fatherPath)!==""&&((Ge=(aa=W==null?void 0:W.quote)==null?void 0:aa[0])==null?void 0:Ge.menus)===(xl==null?void 0:xl.value))}),da&&da!==""){(da==null?void 0:da[(da==null?void 0:da.length)-1])===","&&(da=da==null?void 0:da.slice(0,(da==null?void 0:da.length)-1)),da=(Pa=(Va=da==null?void 0:da.replace("(",hi))==null?void 0:Va.split(hi))==null?void 0:Pa[1],da=da==null?void 0:da.slice(0,(da==null?void 0:da.length)-1),(da==null?void 0:da[0])==="*"&&(da="{"+((Je=(me=da==null?void 0:da.replace("{",hi))==null?void 0:me.split(hi))==null?void 0:Je[1])),da=(Ae=da==null?void 0:da.replaceAll("{",""))==null?void 0:Ae.replaceAll("}","");let W=sa.calculatorAndToOr(da);W=W==null?void 0:W[0];let aa;if((Xe=Object.values(W))!=null&&Xe.some(Ge=>(Ge==null?void 0:Ge[0])==="*")){let Ge=(_e=(oe=Kn.value)==null?void 0:oe.find(Be=>(Be==null?void 0:Be.condition)==="child"))!=null&&_e.value?(Zr==null?void 0:Zr.value)+"/"+((We=(de=Kn.value)==null?void 0:de.find(Be=>(Be==null?void 0:Be.condition)==="child"))==null?void 0:We.value):Zr==null?void 0:Zr.value;aa=await Wr(Ge,!1)}for(let Ge in W)if(((ea=W==null?void 0:W[Ge])==null?void 0:ea[0])==="*"){let Be=(xa=(ba=(Pe=W[Ge])==null?void 0:Pe.slice(1,(ka=W[Ge])==null?void 0:ka.length))==null?void 0:ba.split(":"))==null?void 0:xa[0],El=(Ha=(fa=W[Ge])==null?void 0:fa.split(":"))==null?void 0:Ha[1],il=(Ba=aa==null?void 0:aa.filter(bl=>(bl==null?void 0:bl.name)===Be))==null?void 0:Ba[0];il=($a=(Ia=il==null?void 0:il.compData)==null?void 0:Ia.find(bl=>(bl==null?void 0:bl.key)==="tableContents"))==null?void 0:$a.contents,il=(Ne=il==null?void 0:il[0])==null?void 0:Ne[El],W[Ge]=il}da=((sl=Object.values(W))==null?void 0:sl[0])??""}let Oa=(yl=ye==null?void 0:ye.map(W=>{var Ge,Be,El,il,bl;let aa=(Ge=W==null?void 0:W.contents)==null?void 0:Ge.filter(Wa=>{var Za;return(Za=Object.values(Wa))==null?void 0:Za.find(Na=>Na===(da===""?Xa:da))});if((aa==null?void 0:aa.length)>0){let Wa=ha==null?void 0:ha[0];Wa={...Wa,id:(Be=aa==null?void 0:aa[0])==null?void 0:Be.id};let Za={},Na=Wa,pe;return Array.isArray((El=W==null?void 0:W.struct)==null?void 0:El[0])?pe=sa.getColumnChild((il=W==null?void 0:W.struct)==null?void 0:il[0]):pe=W==null?void 0:W.struct,pe=pe==null?void 0:pe.filter(Sa=>(Sa==null?void 0:Sa.prop)!=="relatedId"),pe==null||pe.forEach(Sa=>{var Vl,Fl,lr,mr;let Sl=(Vl=l==null?void 0:l.columns)==null?void 0:Vl.find(Nl=>{var or,Nr,Ll;return((Nr=(or=Nl==null?void 0:Nl.words)==null?void 0:or[0])==null?void 0:Nr.replaceAll("'",""))===(Sa==null?void 0:Sa.prop)&&((Ll=Nl==null?void 0:Nl.functionRelatedWords)==null?void 0:Ll.length)>0});Sl=(Fl=Sl==null?void 0:Sl.prop)==null?void 0:Fl.replaceAll("'",""),Za[Sa.prop]=((lr=Sa==null?void 0:Sa.words)!=null&&lr[0]?(Na==null?void 0:Na[(mr=Sa==null?void 0:Sa.words)==null?void 0:mr[0]])??(Na==null?void 0:Na[Sa==null?void 0:Sa.prop])??(Na==null?void 0:Na[Sl]):(Na==null?void 0:Na[Sa==null?void 0:Sa.prop])??(Na==null?void 0:Na[Sl]))??void 0}),Za.id=(bl=aa==null?void 0:aa[0])==null?void 0:bl.id,delete Za.sort,{tableName:"content_"+(W==null?void 0:W.id),tableContents:[Za]}}else return}))==null?void 0:yl.filter(W=>W);Ce=[...Ce,...Oa],await L.pageBatchUpdateApi({platId:parseInt((Gl=gl==null?void 0:gl.value)==null?void 0:Gl.plat_id),changeContents:Ce});let Ue=[];Ce==null||Ce.forEach(W=>{var aa;(aa=W==null?void 0:W.tableContents)==null||aa.forEach(Ge=>{Ue.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(Ge),request_result:"{}",is_delete:!1,request_table:W==null?void 0:W.tableName,request_type:"method"})})}),await L.pageBatchAddApi({platId:parseInt((Ya=gl==null?void 0:gl.value)==null?void 0:Ya.plat_id),changeContents:[{tableName:"log",tableContents:Ue}]})}Sr.setRefreshCurStructure(!0),await bt(l)},gt=async(l,n,r)=>{var s;let o=l==null?void 0:l.find(c=>(c==null?void 0:c.id)===n);if(o){let c=(s=o.compData)==null?void 0:s.map(b=>{var p;if((b==null?void 0:b.key)==="tableContents"){let v={...b,contents:r};return v.contents=(p=(v==null?void 0:v.contents)??[])==null?void 0:p.map(y=>{let u={};for(let _ in y)JSON.stringify(y==null?void 0:y[_])==="{}"?u[_]="":u[_]=y==null?void 0:y[_];return u}),v}return b});return o.compData=await _t(c,{}),l=l==null?void 0:l.map(b=>((b==null?void 0:b.id)===(o==null?void 0:o.id)&&(b=o),b)),l}else{let c=l==null?void 0:l.filter(p=>{var v;return(p==null?void 0:p.children)&&((v=p==null?void 0:p.children)==null?void 0:v.length)>0||(p==null?void 0:p.comp)==="Tabs"}),b=c==null?void 0:c.map(async p=>{var v;return p!=null&&p.children&&((v=p==null?void 0:p.children)==null?void 0:v.length)>0?p.children=await gt(p==null?void 0:p.children,n,r):p.compData=await gt(p==null?void 0:p.compData,n,r),p});return c=await Promise.all(b),c}},bt=async l=>{var c,b,p,v,y,u,_;let n=(c=l==null?void 0:l.relatedContents)==null?void 0:c.filter(N=>N==null?void 0:N.includes("content_")),r=await L.getAllTables({platId:parseInt((b=gl==null?void 0:gl.value)==null?void 0:b.plat_id),tableNames:n});if(r=(v=(p=r==null?void 0:r.data)==null?void 0:p.result)==null?void 0:v[0],!r||!Array.isArray(r))return;r=r==null?void 0:r.map(N=>{N==null||delete N.source_table;const $={};for(let S in N){const q=N==null?void 0:N[S],O=q&&Object.prototype.toString.call(q)==="[object Object]"&&Object.keys(q).length===0,M=Array.isArray(q)&&q.length===0;q==null||q==="{}"||O||M?$[S]="":$[S]=q}return $});let o=(u=(y=n==null?void 0:n[0])==null?void 0:y.split("_"))==null?void 0:u[1],s=await gt(ar.value,o,r);ar.value=(_=ar.value)==null?void 0:_.map(N=>{var $,S;return($=s==null?void 0:s[0])!=null&&$.tabInform&&((S=s==null?void 0:s[0])==null?void 0:S.tabInform)===(N==null?void 0:N.tabInform)?N=s==null?void 0:s[0]:(N!=null&&N.name?(N==null?void 0:N.name)===(s==null?void 0:s.name):(N==null?void 0:N.id)===(s==null?void 0:s.id))&&(N=s),N})},t0=l=>{let n=Ho.value;Ho.value=n==null?void 0:n.map(r=>(r.value=l==null?void 0:l[r==null?void 0:r.prop],r))},s0=async()=>{var N,$,S,q,O,M,Z,C,w,E;let l=cc.value,n=sc.value,r=($=(N=l==null?void 0:l.columns)==null?void 0:N.find(m=>m==null?void 0:m.mainKey))==null?void 0:$.prop,o=(q=(S=Ho.value)==null?void 0:S[0])==null?void 0:q.value,s=(O=l==null?void 0:l.fixContent)==null?void 0:O.map(m=>{var j;let g={};for(let V in m)Array.isArray(m==null?void 0:m[V])?g[V]=JSON.stringify(m==null?void 0:m[V]):g[V]=m==null?void 0:m[V];return(j=l==null?void 0:l.columns)==null||j.forEach(V=>{(V==null?void 0:V.formType)==="Upload"&&(g==null?void 0:g[V==null?void 0:V.prop])===""&&(g[V==null?void 0:V.prop]="{}")}),g[r]=o,g}),c=[{tableName:(M=l==null?void 0:l.relatedContents)==null?void 0:M.find(m=>m==null?void 0:m.includes("content")),tableContents:s}];await L.pageBatchAddApi({platId:parseInt((Z=gl==null?void 0:gl.value)==null?void 0:Z.plat_id),changeContents:c}),n=n==null?void 0:n.filter(m=>{var g,j,V;return(V=m==null?void 0:m.object_name)==null?void 0:V.includes((j=(g=l==null?void 0:l.fixContent)==null?void 0:g[0])==null?void 0:j[r])});let b=[],p=new Map;n==null||n.forEach(m=>{b.push(`content_${m==null?void 0:m.object_id}`),b.push(`struct_${m==null?void 0:m.object_id}`),p.set(m==null?void 0:m.object_id,m)});let v=await L.getAllTables({platId:parseInt((C=gl==null?void 0:gl.value)==null?void 0:C.plat_id),tableNames:b});v=(w=v==null?void 0:v.data)==null?void 0:w.result;let y=[],u=[];v=ja.chunk(v,2),v==null||v.forEach(m=>{var V,G,he,Te,Se,Q,fe,J,ce,He,Ca,ne,D,re,be,ue,De,pa,_a,Ga,le;let g=p.get((Te=(he=(G=(V=m==null?void 0:m[1])==null?void 0:V[0])==null?void 0:G.source_table)==null?void 0:he.split("_"))==null?void 0:Te[1]),j=(fe=(Q=(Se=g==null?void 0:g.object_name)==null?void 0:Se.split("/"))==null?void 0:Q.filter((la,Ve)=>{var wa,Fe;return((Fe=(wa=g==null?void 0:g.object_name)==null?void 0:wa.split("/"))==null?void 0:Fe.length)-1!==Ve}))==null?void 0:fe.join("/");if(j=j+"/"+o,u!=null&&u.find(la=>(la==null?void 0:la.path)===j)||u.push({fatherPath:g==null?void 0:g.father_name,isShow:g==null?void 0:g.is_show,path:j}),((ce=(J=m==null?void 0:m[1])==null?void 0:J[0])==null?void 0:ce.类型)==="Table"){let la=((ne=(Ca=(He=m==null?void 0:m[1])==null?void 0:He[0])==null?void 0:Ca.结构)==null?void 0:ne.contents)??[],Ve=dl.safeClone(la);Array.isArray(Ve==null?void 0:Ve[0])&&(Ve=sa.getColumnChild(Ve==null?void 0:Ve[0]));let wa=[];if(((D=m==null?void 0:m[0])==null?void 0:D.length)>0&&(wa=(re=m==null?void 0:m[0])==null?void 0:re.map(Fe=>Ve==null?void 0:Ve.map(Re=>(Re=(Fe==null?void 0:Fe[Re==null?void 0:Re.prop])??"",Re)))),y!=null&&y.find(Fe=>(Fe==null?void 0:Fe.key)===j)){let Fe=(be=y==null?void 0:y.find(Re=>(Re==null?void 0:Re.key)===j))==null?void 0:be.contents;Fe.push({isShow:g==null?void 0:g.is_show,filter:((pa=(De=(ue=m==null?void 0:m[1])==null?void 0:ue[0])==null?void 0:De.引用)==null?void 0:pa.contents)??"",key:"Table",name:Object.values(g==null?void 0:g.name),tableColumns:la,tableContents:wa});let ze=y==null?void 0:y.findIndex(Re=>(Re==null?void 0:Re.key)===j);y[ze].contents=Fe}else y.push({key:j,contents:[{isShow:g==null?void 0:g.is_show,filter:((le=(Ga=(_a=m==null?void 0:m[1])==null?void 0:_a[0])==null?void 0:Ga.引用)==null?void 0:le.contents)??"",key:"Table",name:Object.values(g==null?void 0:g.name),tableColumns:la,tableContents:wa}]})}});let _=[];_.push({key:"menuPath",contents:u}),_=[..._,...y],await L.createPlatFormDataApi({platId:parseInt((E=gl==null?void 0:gl.value)==null?void 0:E.plat_id),changeData:_}),Ct.value=!1,Sr.setRefreshTable(!0)},Bi=async(l,n)=>{},Ni=async l=>{ar.value=await sa.getDeepDiffItems(l),Sr.setItemData(ar.value),Sr.setOriginalData(ar.value)};a.ref();const c0=a.ref(null),u0=()=>{var l,n;console.log("倒计时结束时"),un.ElMessageBox.alert(`超时未提交,【${(n=(l=xl.value)==null?void 0:l.split("/"))==null?void 0:n[0]}】失败`,"告警",{confirmButtonText:"确认",type:"error"})},fc=a.ref([]),d0=a.computed(()=>{var l,n;return(n=(l=mt.value)==null?void 0:l[xl.value])==null?void 0:n.filter(r=>{var o;return((o=r==null?void 0:r.key)==null?void 0:o.type)==="gridLayout"})});a.watch(()=>[Xf.value],()=>{dn.setSelectTitle([]),dn.setChooseTitle([])},{deep:!0});a.watch(()=>Ci.value,async(l,n)=>{var o,s,c,b,p,v;if(JSON.stringify(l)===JSON.stringify(n))return;let r=(o=Ci.value)==null?void 0:o.filter(y=>(y==null?void 0:y.condition)==="child"&&(y==null?void 0:y.value)!==""&&(y==null?void 0:y.parentContent)!==Zr.value);if((r==null?void 0:r.length)>0){Tr.setContentLoading(!0);let y=((s=r==null?void 0:r[0])==null?void 0:s.relatedContent)??(xl==null?void 0:xl.value),u=y+"/"+((c=r==null?void 0:r[0])==null?void 0:c.value),_=!!((b=r==null?void 0:r[0])!=null&&b.parentContent),N=await Wr(u,_,{originPath:y});N=(p=N==null?void 0:N.filter(q=>q))==null?void 0:p.map(q=>(q.isShow=!0,q)),console.log(N,"loadingContents");let $=await sa.getDeepDiffItems(N),S=$==null?void 0:$.filter(q=>q==null?void 0:q.choice);Mi.setSelectTab((v=S==null?void 0:S[0])==null?void 0:v.choiceName),$=$==null?void 0:$.filter(q=>{var O;return!(q!=null&&q.choiceName)||(q==null?void 0:q.choiceName)===((O=S==null?void 0:S[0])==null?void 0:O.choiceName)}),ar.value=$,Tr.setContentLoading(!1)}});const p0=(l,n)=>{setTimeout(async()=>{var p,v,y;let r=(p=Ci.value)==null?void 0:p.filter(u=>(u==null?void 0:u.condition)==="child"&&(u==null?void 0:u.value)!==""&&(u==null?void 0:u.parentContent)!==Zr.value),o=xl==null?void 0:xl.value,s=xl==null?void 0:xl.value;(r==null?void 0:r.length)>0&&(s=((v=r==null?void 0:r[0])==null?void 0:v.relatedContent)??(xl==null?void 0:xl.value),o=s+"/"+((y=r==null?void 0:r[0])==null?void 0:y.value));let c=await Wr(o,!1,{originPath:s});c=c==null?void 0:c.map(u=>(u.isShow=!0,u));let b=await sa.getDeepDiffItems(c);ar.value=b==null?void 0:b.filter(u=>!(u!=null&&u.step)||(u==null?void 0:u.step)===(l==null?void 0:l.title))},10)},f0=l=>{setTimeout(async()=>{var b,p,v;let n=(b=Ci.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)!==Zr.value),r=xl==null?void 0:xl.value,o=xl==null?void 0:xl.value;(n==null?void 0:n.length)>0&&(o=((p=n==null?void 0:n[0])==null?void 0:p.relatedContent)??(xl==null?void 0:xl.value),r=o+"/"+((v=n==null?void 0:n[0])==null?void 0:v.value));let s=await Wr(r,!1,{originPath:o});s=s==null?void 0:s.map(y=>(y.isShow=!0,y)),Mi.setSelectTab(l);let c=await sa.getDeepDiffItems(s);ar.value=c==null?void 0:c.filter(y=>!(y!=null&&y.choiceName)||(y==null?void 0:y.choiceName)===l)},10)};a.watch(()=>Jf.value,l=>{l!=null&&l.length||(ar.value=[])},{immediate:!0});a.watch(()=>[xl.value],async l=>{var c,b,p,v;if(!xl.value)return;if(xl.value==="/"){ar.value=[];return}Tr.setCurrentMenuPath(xl.value),Sr.setLockingPage(""),ar.value=[];let n=a.getCurrentInstance();(c=n==null?void 0:n.scope)==null||c.stop(),n=null,Bo.value=!1,Tr.setContentLoading(!0),tc.value=!0;let r=l==null?void 0:l[0],o=r,s=(b=Kn.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)!==xl.value&&!(y!=null&&y.relatedContent));if((s==null?void 0:s.length)>0&&(r=r+"/"+((p=s==null?void 0:s[0])==null?void 0:p.value)),r==="系统管理/日志管理")ar.value=await qf("log");else{let y=await Wr(r,!0,{originPath:o});y=y==null?void 0:y.map(N=>(N.isShow=!0,N));let u=await sa.getDeepDiffItems(y),_=u==null?void 0:u.filter(N=>N==null?void 0:N.choice);Mi.setSelectTab((v=_==null?void 0:_[0])==null?void 0:v.choiceName),ar.value=u==null?void 0:u.filter(N=>{var $;return!(N!=null&&N.choiceName)||(N==null?void 0:N.choiceName)===(($=_==null?void 0:_[0])==null?void 0:$.choiceName)})}Tr.setContentLoading(!1),Sr.setExtraContents([]),dn.setSelectIndex(""),dn.setSelectMenu(""),Sr.setItemData(ar.value),Sr.setOriginalData(ar.value),Sr.setRefreshTable(!1),a.nextTick(()=>{Yn.value=Yn.value++,Bo.value=!0})},{immediate:!0});a.watch(()=>[hs.value],async()=>{var l,n,r,o;if(hs.value){ar.value=[];let s=a.getCurrentInstance();(l=s==null?void 0:s.scope)==null||l.stop(),s=null,Bo.value=!1,Tr.setContentLoading(!0),tc.value=!0;let c=Zr==null?void 0:Zr.value,b=c,p=(n=Kn.value)==null?void 0:n.filter(_=>(_==null?void 0:_.condition)==="child"&&(_==null?void 0:_.value)!==""&&(_==null?void 0:_.parentContent)!==(Zr==null?void 0:Zr.value));(p==null?void 0:p.length)>0&&(c=c+"/"+((r=p==null?void 0:p[0])==null?void 0:r.value));let v=await Wr(c,!0,{originPath:b});v=v==null?void 0:v.map(_=>(_.isShow=!0,_));let y=await sa.getDeepDiffItems(v),u=y==null?void 0:y.filter(_=>_==null?void 0:_.choice);if(Mi.setSelectTab((o=u==null?void 0:u[0])==null?void 0:o.choiceName),ar.value=y==null?void 0:y.filter(_=>{var N;return!(_!=null&&_.choiceName)||(_==null?void 0:_.choiceName)===((N=u==null?void 0:u[0])==null?void 0:N.choiceName)}),Tr.setContentLoading(!1),Sr.setExtraContents([]),dn.setSelectIndex(""),dn.setSelectMenu(""),Sr.setItemData(ar.value),Sr.setOriginalData(ar.value),Sr.setRefreshTable(!1),(p==null?void 0:p.length)>0){let _=[...Kn.value,...p];dn.setSelectTitle(_)}a.nextTick(()=>{Yn.value=Yn.value++,Bo.value=!0})}},{immediate:!0,deep:!0});const h0=async()=>{Tr.setLinkMenuInfo(null),Tr.setActiveMenuPath(Yf.value),ar.value=null,Sr.setRouteToChildPath(""),Tr.setChildMenu("")},v0=l=>new RegExp("button","i").test(l),m0=l=>/^[\u4e00-\u9fa5]+\/[\u4e00-\u9fa5]+\^(.+)$/.test(l),hc=l=>{if(m0(l)){const n=l==null?void 0:l.split("^");(n==null?void 0:n.length)>0&&(n!=null&&n[0])&&Tr.setLinkMenuInfo({path:n==null?void 0:n[0],data:n==null?void 0:n[1]})}},vc=async(l,n,r)=>{var N,$,S,q,O,M,Z,C,w,E,m,g;let o="",s="";for(let j in n)(n==null?void 0:n[j])===l&&(s=j);r==null||r.forEach(j=>{(j==null?void 0:j.prop)===s&&(o=j==null?void 0:j.fatherPath)});let c=o===""?xl.value:o;o!==""&&Tr.setCurrentMenuPath(c),Tr.setCurrentMenuPath(c+"/"+l),Tr.setContentLoading(!0),await Wr(c+"/"+l,!0,{originPath:c+"/",row:n});let b=await Wr(c,!1),p=(N=b==null?void 0:b.filter(j=>(j==null?void 0:j.comp)==="Table"))==null?void 0:N[0],v=((O=(q=(S=($=p==null?void 0:p.compData)==null?void 0:$.find(j=>(j==null?void 0:j.key)==="header"))==null?void 0:S.contents)==null?void 0:q[0])==null?void 0:O.prop)??((E=(w=(C=(Z=(M=p==null?void 0:p.compData)==null?void 0:M.find(j=>(j==null?void 0:j.key)==="header"))==null?void 0:Z.contents)==null?void 0:C[0])==null?void 0:w[0])==null?void 0:E.prop),y=(g=(m=p==null?void 0:p.compData)==null?void 0:m.find(j=>(j==null?void 0:j.key)==="tableContents"))==null?void 0:g.contents;y=y==null?void 0:y.map(j=>({label:j==null?void 0:j[v],value:j==null?void 0:j[v]}));let u=Kn.value,_={value:l,condition:"child",options:y,relatedContent:c,isShow:!0};u.push(_),dn.setSelectTitle(u),dn.setChooseTitle([_]),Tr.setContentLoading(!1),Sr.setExtraContents([]),dn.setSelectIndex(""),dn.setSelectMenu(""),Sr.setItemData(ar.value),Sr.setOriginalData(ar.value)},y0=l=>{dc.value=l},_o=a.reactive({index:0,comp:null}),g0=a.computed(()=>{var l;return(l=ar.value)==null?void 0:l.map((n,r)=>({id:n.id,name:n.name,status:b0(n,r)}))}),mc=(l,n)=>{var v,y,u,_,N;const r=n?l:l-2,o=(v=ar.value)==null?void 0:v[r],s=(u=(y=o==null?void 0:o.compData)==null?void 0:y.find($=>($==null?void 0:$.key)==="header"))==null?void 0:u.contents,c=s==null?void 0:s.findIndex($=>($==null?void 0:$.isMainKey)&&($==null?void 0:$.label)!=="操作"),b=c===-1?0:c,p=(N=(_=o==null?void 0:o.compData)==null?void 0:_.find($=>($==null?void 0:$.key)==="tableContents"))==null?void 0:N.contents;return{valid:p==null?void 0:p.every($=>$==null?void 0:$[b+1]),length:(p==null?void 0:p.length)||0}},b0=(l,n)=>{var o;let r="process";if(((o=l==null?void 0:l.comp)==null?void 0:o.toUpperCase())==="TABLE"){const{valid:s,length:c}=mc(n,!0);_o.index===n?r="process":c===0?r="wait":r=s?"success":"error"}return r},yc=l=>{var r,o,s,c,b;const n=l+1;if(n>1&&((s=(o=(r=ar.value)==null?void 0:r[l])==null?void 0:o.comp)==null?void 0:s.toUpperCase())==="TABLE"){const{valid:p}=mc(n);p?(_o.index=n,_o.comp=(c=ar.value)==null?void 0:c[l]):Qa.ElMessage({showClose:!0,type:"warning",message:"当前流程有输入未完成"})}else _o.index=n,_o.comp=(b=ar.value)==null?void 0:b[l]},gc=a.computed(()=>{var l,n;return(n=(l=uc.value)==null?void 0:l[0])==null?void 0:n.isStepLayout});a.watch(()=>gc.value,l=>{l&&yc(0)},{immediate:!0});const k0={class:"table-content"},x0={class:"menu-config-wrap"},w0=["onClick"],_0={key:0,class:"viewport-wrap"},E0=["onClick"],S0={title:"选择显示列信息"},C0={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},D0=["title"],B0={class:"col-operate-wrap"},N0={key:0,class:"col-operate-radio-wrapper"},T0={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},A0={key:0,style:{display:"flex","justify-content":"center","align-items":"center"}},z0={class:"pop-view"},M0={class:"pop-wrapper"},I0={class:"file-list-pop"},O0=["title","onClick"],L0=["onClick"],$0=["onClick"],R0={key:1,style:{display:"flex","justify-content":"flex-end",gap:"8px","margin-top":"8px"}},V0={class:"form-content"},P0={key:0,class:"dialog-footer"},F0={class:"dialog-footer"},j0={class:"ocr-dialog-content"},H0={class:"ocr-steps"},U0={key:0,class:"ocr-action-buttons"},q0={key:1,class:"ocr-preview-area"},W0={class:"ocr-file-grid"},K0={class:"file-thumbnail"},G0=["src"],Y0={key:1,class:"thumbnail-placeholder"},J0={class:"progress-svg",viewBox:"0 0 36 36"},X0=["stroke","stroke-width","stroke-dasharray"],Z0={key:0,class:"progress-icon"},Q0={key:1,class:"progress-icon"},e3=["onClick"],a3={class:"file-name"},l3={key:0,class:"ocr-recognize-button"},r3={key:2,class:"ocr-progress-section"},n3={key:3,class:"ocr-confirm-area"},o3={class:"ocr-preview-tip"},i3={class:"ocr-preview-table"},t3={style:{display:"flex","align-items":"center",gap:"8px"}},s3={key:0},c3={key:4,class:"ocr-success-area"},u3={key:0,class:"ocr-dialog-footer"},d3={class:"form-content"},p3={style:{display:"flex","justify-content":"space-between",gap:"8px"}},f3={style:{display:"flex"}},ms="ss-ocr-upload-history",h3="ss-ocr-cert-history-v1",v3={__name:"index",props:{pageLayout:{type:String,default:"vertical"},related:{type:Array,default:[]},level:{type:Number,default:1},compName:{type:String,default:"",required:!1},compNames:{type:Array,default:()=>[],required:!1},groupNames:{type:Array,default:()=>[],required:!1},compItem:{type:Object,default:()=>{}},operatingForm:{type:Object,default:()=>{}},cacheNewData:{type:Object,default:()=>{}},config:Object,parentTableId:{type:Number,default:0},itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,isDevMode:Boolean,changedContent:{type:Object,default:()=>{}},showHeader:{type:Boolean,default:!0},allowSelect:{type:Boolean,default:!0},allowOperate:{type:Boolean,default:!0},allMapContents:{type:Object,default:()=>{}}},emits:["getSliceContLength","clickMainKey","change","contentChange","onButtonClick","contentClick","pageChange","rowClick","routeUrl"],setup(l,{emit:n}){var Rt;const r=a.ref([]),o=Et(L.pinia),s=a.ref(null),c=a.ref(new Set),b=a.ref(new Map),p=a.ref(new Map),v=new Map,y=a.ref(new Map),u=l,_=a.ref((u==null?void 0:u.allowSelect)??!0),N=a.ref(((Rt=u==null?void 0:u.config)==null?void 0:Rt.showIndex)??!0),$=a.ref(),S=a.ref(!0),q=a.ref(!1),O=a.ref([]),M={sortable:"switch",filterable:"switch",showSummary:"switch",operable:"switch",fixed:"radio"},Z=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"}]}]),C=sa.useOriginalState(L.pinia);let w="$R";const{originalPath:E}=L.storeToRefs(C),m=E.value,g=a.computed(()=>{var h;const d=(h=sa.getAllLeafNodes(Se.value)||[])==null?void 0:h.filter(T=>(T==null?void 0:T.type)!=="operate"&&(T==null?void 0:T.label)!=="操作"&&(T==null?void 0:T.prop)!=="operate");return d.length>0?d.every(T=>!!(T!=null&&T.sortable)):!1});a.computed(()=>{var h;return(h=Se.value)==null?void 0:h.every(T=>T==null?void 0:T.filterable)}),a.computed(()=>{var h;return(h=Se.value)==null?void 0:h.every(T=>T==null?void 0:T.operable)});const j=a.ref(!0),V=a.ref([]),G=a.reactive({column:{},status:!1,text:"合计"}),he=a.reactive({currentPage:1,pageSize:10,total:0,pageSizes:[5,10,20]}),Te=n,Se=a.ref([]),Q=a.ref([]),fe=a.ref([]),J=a.reactive({prop:"",order:null}),ce=a.ref([]),He=a.ref(!1),Ca=a.ref(!1),ne=a.ref(null),{isUseBackdrop:D,initTrackFileType:re,getFileExtension:be,setData:ue,getFileInfo:De,getFilesInfo:pa}=wi.useThreeSystem(),_a=a.ref([]),Ga=a.ref(!1),le=a.ref(),la=L.useMenuState(),{importLoading:Ve,activeMenuPath:wa,contentLoading:Fe,linkMenuInfo:ze}=L.storeToRefs(la),Re=sa.useTableComp(L.pinia),Ze=L.useModelComp(L.pinia),Ja=Jn(L.pinia),{extraContents:qa,cacheUpdatingData:F,tableViewContents:P,tableLoading:X,pageMapState:ie,lockingPage:se}=L.storeToRefs(Ze),{selectTab:ga}=L.storeToRefs(Ja),{compType:ra,hasEditable:Le}=Ws.useRole(),Ee=a.ref([]),Ea=a.ref([]),va=a.ref(new Map);a.ref(!1);const Va=a.ref("");a.ref();const Pa=a.ref(!0),me=a.ref(0),Je=a.ref(!0),Ae=a.ref(""),Xe=a.ref(!1),oe=a.ref(null);a.ref([]);const _e=a.ref({label:"查看三维模型"}),de=a.ref(!1),We=a.ref(),ea=a.ref([]),ka=a.ref([]),Pe=a.ref(!1),ba=a.ref([]),xa=a.ref([]),fa=a.ref([]),Ha=a.ref([]),Ba=a.ref([]),Ia=()=>{try{const d=localStorage.getItem(ms),h=d?JSON.parse(d):[];Ba.value=Array.isArray(h)?h:[]}catch{Ba.value=[]}},$a=()=>{try{localStorage.setItem(ms,JSON.stringify(Ba.value||[]))}catch{}},Ne=d=>{var ee,ae,H;if(!d)return;const h=d.url||((ee=d==null?void 0:d.uploadResult)==null?void 0:ee.url)||"",T=d.name||((ae=d==null?void 0:d.uploadResult)==null?void 0:ae.name)||((H=d==null?void 0:d.uploadResult)==null?void 0:H.fileName)||"";if(!h&&!T)return;const z={name:T,url:h,ts:Date.now()},R=String(z.name||"").trim().toLowerCase(),B=(Ba.value||[]).findIndex(ge=>String((ge==null?void 0:ge.name)||"").trim().toLowerCase()===R);B>-1&&Ba.value.splice(B,1),Ba.value.unshift(z),Ba.value.length>20&&(Ba.value=Ba.value.slice(0,20)),$a()};Ia();const sl=(d,h)=>`${h3}:${String(d??"")}:${String(h??"")}`,yl=(d,h)=>{try{const T=sessionStorage.getItem(sl(d,h)),z=T?JSON.parse(T):[];return Array.isArray(z)?z:[]}catch{return[]}},Gl=(d,h,T)=>{try{sessionStorage.setItem(sl(d,h),JSON.stringify(Array.isArray(T)?T:[]))}catch{}},Ya=(d,h,T)=>{if(!h)return;const z=yl(d,h),R=[T,...z||[]].filter(Boolean).slice(0,1);return Gl(d,h,R),R},da=(d,h,T)=>{if(!h||!T)return;const z=sl(d,h),R=sl(d,T);try{const B=sessionStorage.getItem(z);if(!B)return;const ee=(()=>{try{const ge=JSON.parse(B);return Array.isArray(ge)?ge:[]}catch{return[]}})(),ae=yl(d,T),H=[...ee,...ae||[]].filter(Boolean).sort((ge,xe)=>Number((xe==null?void 0:xe.ts)||0)-Number((ge==null?void 0:ge.ts)||0)).slice(0,1);sessionStorage.setItem(R,JSON.stringify(H)),sessionStorage.removeItem(z)}catch{}},ha=a.ref(!1),ma=a.ref(!1),Ye=a.ref([]),Xa=a.ref(null);a.ref(!1),a.ref([]),a.ref(""),a.ref("");const Ce=a.ref(!1),Ke=a.ref([]),ye=a.ref(1),Oa=a.ref(new Map),Ue=a.ref(new Map),W=a.ref(0),aa=a.ref(!1),Ge=a.ref([]),Be=a.ref([]),El=d=>{var h;try{const T=(h=sa.getAllLeafNodes(Se.value)||[])==null?void 0:h.filter(z=>(z==null?void 0:z.type)!=="operate"&&(z==null?void 0:z.label)!=="操作"&&(z==null?void 0:z.prop)!=="operate");return(T==null?void 0:T.find(z=>(z==null?void 0:z.prop)===d||(z==null?void 0:z.label)===d))||null}catch{return null}},il=d=>{const h=El(d),T=(h==null?void 0:h.formType)||(h==null?void 0:h.columnType)||"Input";return dl.getComponent(T)||dl.getComponent("Input")},bl=a.ref([]),Wa=a.ref(null),Za=a.ref([]),Na=a.ref(null),pe=a.ref(""),Sa=a.ref(!1),Sl=a.ref([]),Vl=a.ref(""),Fl=a.ref(!1),lr=a.ref([]),mr=a.ref([]),Nl=a.ref([]),or=a.ref(null),Nr=a.ref([]),Ll=a.ref("");a.computed(()=>{var d;try{const h=(d=sa.getAllLeafNodes(Se.value)||[])==null?void 0:d.filter(z=>(z==null?void 0:z.type)!=="operate"&&(z==null?void 0:z.label)!=="操作"&&(z==null?void 0:z.prop)!=="operate"),T=new Map;return h==null||h.forEach(z=>{z!=null&&z.label&&(z!=null&&z.prop)&&T.set(z.label,z.prop)}),T.get("编号")||""}catch{return""}});const er=a.computed(()=>{var d;try{const h=(d=sa.getAllLeafNodes(Se.value)||[])==null?void 0:d.filter(z=>(z==null?void 0:z.type)!=="operate"&&(z==null?void 0:z.label)!=="操作"&&(z==null?void 0:z.prop)!=="operate"),T=new Map;return h==null||h.forEach(z=>{z!=null&&z.label&&(z!=null&&z.prop)&&T.set(z.label,z.prop)}),T.get("名称")||""}catch{return""}}),Qr=a.computed(()=>{var d;try{const h=(d=sa.getAllLeafNodes(Se.value)||[])==null?void 0:d.filter(z=>(z==null?void 0:z.type)!=="operate"&&(z==null?void 0:z.label)!=="操作"&&(z==null?void 0:z.prop)!=="operate"),T=new Map;return h==null||h.forEach(z=>{z!=null&&z.label&&(z!=null&&z.prop)&&T.set(z.label,z.prop)}),T.get("制造厂")||""}catch{return""}}),Ir=()=>{Fl.value=!1,lr.value=[],mr.value=[],Nl.value=[],or.value=null,Nr.value=[],Ll.value=""},Ar=d=>d==null?!1:typeof d=="string"?d.trim()!=="":Array.isArray(d)?d.length>0:!0,Cr=(d,h)=>{const T=(d==null?void 0:d.ocrRow)||{};for(const R of Object.keys(T))R==="id"||R==="_isOCRRow"||R==="_ocrTableId"||Ar(T[R])&&(h[R]=T[R]);const z=Ea.value.find(R=>R.id===h.id);if(z)for(const R of Object.keys(T))R==="id"||R==="_isOCRRow"||R==="_ocrTableId"||Ar(T[R])&&(z[R]=T[R]);va.value&&va.value.set(h.id,h),Ya(u==null?void 0:u.index,h.id,d==null?void 0:d.versionItem),mr.value=[...mr.value||[],JSON.parse(JSON.stringify(h))]},zr=async(d,h=null)=>{var T,z,R,B,ee,ae,H;try{const ge=(T=sa.getAllLeafNodes(Se.value)||[])==null?void 0:T.filter(oa=>(oa==null?void 0:oa.type)!=="operate"&&(oa==null?void 0:oa.label)!=="操作"&&(oa==null?void 0:oa.prop)!=="operate"),xe=new Map;ge==null||ge.forEach(oa=>{oa!=null&&oa.label&&(oa!=null&&oa.prop)&&xe.set(oa.label,oa.prop)});const $e=xe.get("系统编号")||xe.get("编号");if(!$e){console.warn("未找到系统编号字段,跳过向检校记录表插入数据");return}const Ie=h||or.value;if((Array.isArray(Ie==null?void 0:Ie.result)?Ie.result:[]).length===0){console.warn("OCR识别结果为空,跳过向检校记录表插入数据");return}for(let oa=0;oa<d.length;oa++){const Fa=d[oa],za=Fa[$e];if(!za){console.warn(`第 ${oa+1} 条匹配行缺少系统编号,跳过`);continue}const na=`设备管理/试验设备/${za}`,el=await L.getPageDataApi({platId:parseInt((z=Rl.value)==null?void 0:z.plat_id),pageName:na});if(!((R=el==null?void 0:el.data)!=null&&R.result)||!Array.isArray(el.data.result)){console.warn(`未找到详情页数据: ${na}`);continue}const ta=el.data.result.find(ia=>(ia==null?void 0:ia.property_name)==="校检记录");if(!ta){console.warn(`详情页 ${na} 中未找到校检记录表`);continue}const Ua=(B=ta.contents)==null?void 0:B.find(ia=>(ia==null?void 0:ia.key)&&ia.key.startsWith("content_"));if(!Ua||!Ua.key){console.warn("校检记录表中未找到 content item");continue}const te=Ua.key,Ta=Array.isArray(Ua.value)?Ua.value:[];if(Ta.length>=5){const we=[...Ta].sort((ca,Ma)=>{const pl=Number((ca==null?void 0:ca.create_time)||0),ll=Number((Ma==null?void 0:Ma.create_time)||0);return pl-ll})[0];we!=null&&we.id&&await L.pageBatchDeleteApi({platId:parseInt((ee=Rl.value)==null?void 0:ee.plat_id),changeContents:[{tableName:te,tableContents:[{id:we.id}]}]})}const ua=(ae=ge==null?void 0:ge.find(ia=>(ia==null?void 0:ia.label)==="证书附件"))==null?void 0:ae.prop,Da=String(Date.now()),Aa={id:Da},A=Ta[0]||{},K=new Date().toISOString().split("T")[0];if(Object.keys(A||{}).forEach(ia=>{if(ia!=="id"){if(ia==="证书附件"){Aa[ia]="";return}if(ia==="校检日期"||ia==="检校日期"){Aa[ia]=Fa[ia]||Fa.校检日期||Fa.检校日期||K;return}if(["校检周期","检校周期","校检结果","检校结果","计量状态","依据文件","证书编号"].includes(ia)){Aa[ia]=Fa[ia]??"";return}Aa[ia]=Fa[ia]??""}}),ua&&Fa[ua]){const ia=Fa[ua];if(Array.isArray(ia)&&ia.length>0)Aa.证书附件=JSON.stringify(ia.map(we=>({url:(we==null?void 0:we.url)||"",name:(we==null?void 0:we.name)||(we==null?void 0:we.fileName)||"",fileName:(we==null?void 0:we.fileName)||(we==null?void 0:we.name)||""})).filter(we=>we.url||we.name));else if(typeof ia=="string")try{const we=JSON.parse(ia);Aa.证书附件=ia}catch{Aa.证书附件=JSON.stringify([{url:ia,name:ia,fileName:ia}])}}console.log(te,"tableName","inspectionRecordRow",Aa),await L.pageBatchAddApi({platId:parseInt((H=Rl.value)==null?void 0:H.plat_id),changeContents:[{tableName:te,tableContents:[Aa]}]});const Me=ta==null?void 0:ta.object_id;if(Me&&Da){const ia=ua&&Fa[ua]?Fa[ua]:null;let we=[],ca="",Ma=!1;if(Array.isArray(ia)&&ia.length>0){we=ia.map(ml=>({name:(ml==null?void 0:ml.name)||(ml==null?void 0:ml.fileName)||"",url:(ml==null?void 0:ml.url)||""})).filter(ml=>ml.url||ml.name);const ll=ia[0];ca=(ll==null?void 0:ll.url)||"";const vl=(ll==null?void 0:ll.name)||(ll==null?void 0:ll.fileName)||"";Ma=String(vl).toLowerCase().endsWith(".pdf")||String(ca).toLowerCase().endsWith(".pdf")}else if(typeof ia=="string")try{const ll=JSON.parse(ia);Array.isArray(ll)?(we=ll.map(vl=>({name:(vl==null?void 0:vl.name)||(vl==null?void 0:vl.fileName)||"",url:(vl==null?void 0:vl.url)||""})).filter(vl=>vl.url||vl.name),we.length>0&&(ca=we[0].url||"",Ma=String(we[0].name).toLowerCase().endsWith(".pdf")||String(ca).toLowerCase().endsWith(".pdf"))):(ca=ia,Ma=String(ia).toLowerCase().endsWith(".pdf"))}catch{ca=ia,Ma=String(ia).toLowerCase().endsWith(".pdf")}const pl={ts:Date.now(),versionId:String(Date.now())+"_"+String(oa),label:new Date().toLocaleString(),certType:Fa.证书类型||"",certNo:Fa.证书编号||"",fileType:Ma?"pdf":"image",sourceUrl:Ma?ca:"",images:we};Ya(Me,Da,pl)}}}catch(ge){console.error("向校检记录表插入OCR识别结果失败:",ge),Qa.ElMessage.error("向校检记录表插入数据失败,请查看控制台")}},Mr=d=>{const h=Array.isArray(d)?d:lr.value||[];if(h.length===0){Ir();return}if(h.find(B=>(B==null?void 0:B.__decision)==="replace"&&!(B!=null&&B.selectedTargetId))){Qa.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}h.forEach(B=>{var ae;const ee=B==null?void 0:B.__decision;if(!(!ee||ee==="skip")){if(ee==="add"){Ya(u==null?void 0:u.index,(ae=B==null?void 0:B.ocrRow)==null?void 0:ae.id,B==null?void 0:B.versionItem),Nl.value=[...Nl.value||[],B.ocrRow];return}if(ee==="replace"){const H=B==null?void 0:B.selectedTargetId,ge=(Ee.value||[]).find(xe=>String(xe==null?void 0:xe.id)===String(H));if(!ge)return;Cr(B,ge)}}}),(mr.value||[]).length>0&&(Ee.value=[...Ee.value||[]]),(Nl.value||[]).length>0&&(Ee.value=[...Ee.value||[],...Nl.value||[]],Ea.value=[...Ea.value||[],...Nl.value||[]],(Nl.value||[]).forEach(B=>{var ee,ae;return(ae=(ee=va.value)==null?void 0:ee.set)==null?void 0:ae.call(ee,B.id,B)})),Gr.value=Ee.value;const z=mr.value||[],R=Nl.value||[];if(z.length>0&&(Te("change",{buttonName:"编辑",singleContent:z,content:Ee.value,relatedContents:u==null?void 0:u.related,index:u==null?void 0:u.index,parentTableId:u==null?void 0:u.parentTableId,columns:Se.value,name:u==null?void 0:u.compName}),zr(z)),R.length>0){const B=or.value;Te("change",{buttonName:"OCR批量新增",content:Ee.value,index:u==null?void 0:u.index,parentTableId:u==null?void 0:u.parentTableId,column:Se.value,ocrRows:R,relatedContents:u==null?void 0:u.related,uploadedFiles:(Array.isArray(B==null?void 0:B.result)?B.result:[]).map(ee=>(Array.isArray(ee==null?void 0:ee.图片信息)?ee.图片信息:[]).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:B,matchedCount:(z||[]).length,newCount:(R||[]).length})}Qa.ElMessage.success("已提交候选处理结果"),Ir()},Dr=ic(),Vr=a.computed(()=>Dr.getConfig()),Or=a.ref(),ir=a.ref(),gn=ac(L.pinia),Gr=a.ref(),rn=a.ref(0),Nn=L.useUnit(L.pinia),{selectIndex:bn,selectMenu:vn,selectTitle:fr}=L.storeToRefs(Nn),{selectString:Hl}=L.storeToRefs(gn),cr=L.useLoginState(L.pinia),{loginUserInfo:Rl}=L.storeToRefs(cr),ql=a.ref(720),Il=a.ref(!1),hr=a.ref(!1),rr=a.ref([]),jl=a.ref(),Rr=a.ref(!0),Pr=a.ref(!0);a.ref([]);const kn=a.inject("contentRef");a.provide("contentRef",kn),a.provide("getSuggestListForCell",fu),a.provide("getSuggestLoadingForCell",(d,h)=>{const T=`${d==null?void 0:d.id}:${(h==null?void 0:h.prop)||(h==null?void 0:h.property)}`;return y.value.get(T)||!1}),a.watch(()=>{var d;return(d=Ee.value)==null?void 0:d.length},d=>{he.total=d}),a.watch(()=>P.value,async()=>{var h,T,z,R,B,ee,ae,H,ge,xe,$e,Ie,je,oa,Fa,za,na;if(((h=P.value)==null?void 0:h.length)===0||!((T=u==null?void 0:u.itemData)!=null&&T.find(el=>(el==null?void 0:el.key)==="columnPath"))||!((z=u==null?void 0:u.itemData)!=null&&z.find(el=>(el==null?void 0:el.key)==="pageColumn")))return;let d=(ge=(H=(ae=(ee=(B=(R=u==null?void 0:u.itemData)==null?void 0:R.find(el=>(el==null?void 0:el.key)==="pageColumn"))==null?void 0:B.contents)==null?void 0:ee.split("["))==null?void 0:ae[1])==null?void 0:H.split("]"))==null?void 0:ge[0];((je=(Ie=($e=(xe=u==null?void 0:u.itemData)==null?void 0:xe.find(el=>(el==null?void 0:el.key)==="pageColumn"))==null?void 0:$e.contents)==null?void 0:Ie.split("["))==null?void 0:je[0])+((Fa=(oa=P.value)==null?void 0:oa.find(el=>(el==null?void 0:el.key)===d))==null?void 0:Fa.value),(na=(za=u==null?void 0:u.itemData)==null?void 0:za.find(el=>(el==null?void 0:el.key)==="pageGroup"))==null||na.contents,$t(compData,u.allMapContents)},{deep:!0});const nn=d=>{var T,z,R,B,ee;const h=(z=(T=Se.value)==null?void 0:T.filter(ae=>ae==null?void 0:ae.mainKey))==null?void 0:z.map(ae=>ae==null?void 0:ae.prop);if(h.length===0){const ae=(R=Se.value)==null?void 0:R.map(H=>H==null?void 0:H.prop);return(B=ae==null?void 0:ae.map(H=>d==null?void 0:d[H]))==null?void 0:B.join("|")}return(ee=h==null?void 0:h.map(ae=>d==null?void 0:d[ae]))==null?void 0:ee.join("|")},Xn=d=>{var ae,H,ge,xe,$e;const h=(H=(ae=Se.value)==null?void 0:ae.filter(Ie=>Ie==null?void 0:Ie.required))==null?void 0:H.map(Ie=>Ie==null?void 0:Ie.prop),T=[];if(d==null||d.forEach(Ie=>{h==null||h.forEach(je=>{const oa=Ie[je];(oa==null||oa==="")&&(T.includes(je)||T.push(je))})}),T.length>0)return Qa.ElMessage.warning(`请填写必填项:${T.join("、")}`);const z=new Map,R=new Map;(ge=Ee.value)==null||ge.forEach(Ie=>{const je=nn(Ie);z.set(je,Ie)}),d==null||d.forEach(Ie=>{const je=nn(Ie);R.set(je,Ie)});const B=d==null?void 0:d.filter(Ie=>z.has(nn(Ie))),ee=(xe=Ee.value)==null?void 0:xe.filter(Ie=>R.has(nn(Ie)));return(B==null?void 0:B.length)>0&&(i.columns=($e=Se.value)==null?void 0:$e.filter(Ie=>(Ie==null?void 0:Ie.label)!=="操作"),i.existRows=ee,i.tableData=B,i.show=!0),d==null?void 0:d.filter(Ie=>{const je=nn(Ie);return!z.has(je)})},Tn=a.ref(""),Zn=a.ref(null),xn=async()=>{var d,h,T,z,R,B;try{const ee=await L.quoteApi({related:[{menus:wa.value,groups:u==null?void 0:u.compName}],platId:parseInt((d=Rl.value)==null?void 0:d.plat_id)});if(((h=ee==null?void 0:ee.data)==null?void 0:h.code)===200){Zn.value=(T=ee==null?void 0:ee.data)==null?void 0:T.result;const ae=(z=Se.value)==null?void 0:z.map(xe=>(xe==null?void 0:xe.prop)||(xe==null?void 0:xe.label)),H=An(ae,(R=ee==null?void 0:ee.data)==null?void 0:R.result),ge=H==null?void 0:H.flatMap(xe=>xe==null?void 0:xe.quote);(ge==null?void 0:ge.length)>0&&(Tn.value=(B=ge==null?void 0:ge.map(xe=>xe==null?void 0:xe.menus))==null?void 0:B.join("、"))}}catch(ee){throw new Error(ee)}};function An(d,h){var T;return(T=h.filter(z=>z.struct&&Array.isArray(z.struct)?z.struct.some(R=>R.words&&Array.isArray(R.words)?R.words.some(B=>d.includes(B)):!1):!1))==null?void 0:T.map(z=>{const R={...z};return R.struct&&Array.isArray(R.struct)&&(R.struct=R.struct.filter(B=>B.words&&Array.isArray(B.words)?B.words.some(ee=>d.includes(ee)):!1)),R})}const Pn=async(d,h)=>{var T,z,R,B,ee,ae,H,ge,xe,$e;try{Zn.value||await xn();const Ie=h==null?void 0:h.map(Ua=>{const te=Object.keys(Ua),Ta={};return te.forEach((ua,Da)=>{Ta[d[Da]]=Ua[ua]}),Ta}),je=Xn(Ie);if(!je||(je==null?void 0:je.length)===0)return;const oa=[];let Fa=(Ee.value||[]).slice();(je||[]).forEach(Ua=>{const te={...Ua};try{te.sort=Mn(0,Fa)}catch{}oa.push(te),Fa.unshift(te)});let za=await L.quoteApi({platId:parseInt((T=Rl==null?void 0:Rl.value)==null?void 0:T.plat_id),type:"fatherSyncs",related:[{menus:wa.value,groups:""},{menus:wa.value,groups:u==null?void 0:u.compName}]});za=(z=za==null?void 0:za.data)==null?void 0:z.result;let na=za==null?void 0:za.map(Ua=>({tableName:"content_"+(Ua==null?void 0:Ua.id),tableContents:oa==null?void 0:oa.map((te,Ta)=>({id:Ta,...te}))})),el=[{tableName:(R=u==null?void 0:u.related)==null?void 0:R.find(Ua=>Ua==null?void 0:Ua.includes("content")),tableContents:oa==null?void 0:oa.map((Ua,te)=>({id:te,...Ua}))}];el=[...el,...na];const ta=await L.pageBatchAddApi({platId:parseInt((B=Rl.value)==null?void 0:B.plat_id),changeContents:el});if(((ee=ta==null?void 0:ta.data)==null?void 0:ee.code)===200){const Ua={buttonName:"新增",columns:Se.value,fixContent:oa==null?void 0:oa.map((Ta,ua)=>({id:ua,...Ta})),relatedContents:u==null?void 0:u.related};await bt(Ua),((ae=i==null?void 0:i.existRows)==null?void 0:ae.length)>0?Qa.ElMessage.success("部分数据导入成功"):Qa.ElMessage.success("数据导入成功");let te=[];el==null||el.forEach(Ta=>{var ua;(ua=Ta==null?void 0:Ta.tableContents)==null||ua.forEach(Da=>{te.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(Da),request_result:"{}",is_delete:!1,request_table:Ta==null?void 0:Ta.tableName,request_type:"export"})})}),await L.pageBatchAddApi({platId:parseInt((H=Rl==null?void 0:Rl.value)==null?void 0:H.plat_id),changeContents:[{tableName:"log",tableContents:te}]})}else{let Ua=[];el==null||el.forEach(te=>{var Ta;(Ta=te==null?void 0:te.tableContents)==null||Ta.forEach(ua=>{Ua.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(ua),request_result:"{}",is_delete:!1,request_table:te==null?void 0:te.tableName,request_type:"error"})})}),await L.pageBatchAddApi({platId:parseInt((ge=Rl==null?void 0:Rl.value)==null?void 0:ge.plat_id),changeContents:[{tableName:"log",tableContents:Ua}]}),Qa.ElMessage.error("数据导入响应失败")}}catch(Ie){throw Qa.ElMessage.error("数据导入处理失败"),await L.pageBatchAddApi({platId:parseInt((xe=Rl==null?void 0:Rl.value)==null?void 0:xe.plat_id),changeContents:[{tableName:"log",tableContents:[{id:"1",request_method:"Post",request_url:"",request_param:JSON.stringify(t1),request_result:JSON.stringify(Ie),is_delete:!1,request_table:($e=u==null?void 0:u.related)==null?void 0:$e.find(je=>je==null?void 0:je.includes("content")),request_type:"error"}]}]}),new Error(Ie)}},en=async d=>{var B,ee,ae,H,ge,xe,$e;let h=fe.value;h!=null&&h.find(Ie=>(d==null?void 0:d.key)===(Ie==null?void 0:Ie.key))&&(h=h==null?void 0:h.filter(Ie=>(d==null?void 0:d.key)!==(Ie==null?void 0:Ie.key))),h.push({key:d==null?void 0:d.key,value:[(ee=d==null?void 0:d.value)==null?void 0:ee[((B=d==null?void 0:d.value)==null?void 0:B.length)-1]]});let T=Ha.value;T=T==null?void 0:T.map(Ie=>{var je,oa;return(Ie==null?void 0:Ie.type)==="Select"&&(d==null?void 0:d.key)===(Ie==null?void 0:Ie.prop)&&Array.isArray(Ie.value)&&(je=Ie.value)!=null&&je.every(Fa=>typeof Fa=="string")&&(Ie.selectValue=(oa=h==null?void 0:h.find(Fa=>(Fa==null?void 0:Fa.key)===(Ie==null?void 0:Ie.prop)))==null?void 0:oa.value),Ie});let z=(H=(ae=T==null?void 0:T.find(Ie=>(Ie==null?void 0:Ie.prop)===(d==null?void 0:d.key)))==null?void 0:ae.optionUrl)==null?void 0:H.menuId,R=T==null?void 0:T.find(Ie=>(Ie==null?void 0:Ie.prop)===(d==null?void 0:d.key));if(z){let Ie=await vt(R==null?void 0:R.optionUrl,z),je,oa=V.value,Fa=($e=(xe=(ge=Ha.value)==null?void 0:ge.find(za=>{var na;return(na=R==null?void 0:R.optionUrl)==null?void 0:na.menuId}))==null?void 0:xe.selectValue)==null?void 0:$e[0];if(Ie==null||Ie.forEach(za=>{var na,el,ta,Ua,te,Ta,ua,Da,Aa,A;if(z){let K=(el=(na=Ha.value)==null?void 0:na.find(ia=>{var we,ca;return((we=R==null?void 0:R.optionUrl)==null?void 0:we.menuId)===((ca=ia==null?void 0:ia.optionUrl)==null?void 0:ca.menuId)}))==null?void 0:el.prop,Me=(Ua=(ta=T==null?void 0:T.find(ia=>(ia==null?void 0:ia.prop)===K))==null?void 0:ta.selectValue)==null?void 0:Ua[0];K!=null&&K.includes("·")&&(K=(te=K==null?void 0:K.split("·"))==null?void 0:te[0],Me=(Aa=(Da=(ua=d==null?void 0:d.value)==null?void 0:ua[((Ta=d==null?void 0:d.value)==null?void 0:Ta.length)-1])==null?void 0:Da.split(" "))==null?void 0:Aa[0]),oa!=null&&oa.find(ia=>(ia==null?void 0:ia.value)===Fa)?je=(A=oa==null?void 0:oa.find(ia=>(ia==null?void 0:ia.value)===Fa))==null?void 0:A.objectValue:za[K]===Me&&(je=za)}}),je){let za=T;za=za==null?void 0:za.map(na=>{var el,ta,Ua,te,Ta,ua;return z&&(je!=null&&je[na==null?void 0:na.prop])&&Ae.value==="新增"&&(na==null?void 0:na.prop)!==(R==null?void 0:R.prop)?na.value=(je==null?void 0:je[na==null?void 0:na.prop])||(je==null?void 0:je[(te=(Ua=(ta=(el=na==null?void 0:na.optionUrl)==null?void 0:el.groupSelect)==null?void 0:ta[1])==null?void 0:Ua.replaceAll("[",""))==null?void 0:te.replaceAll("]","")]):na.value=(ua=(Ta=Ha.value)==null?void 0:Ta.find(Da=>(Da==null?void 0:Da.prop)===(na==null?void 0:na.prop)))==null?void 0:ua.value,na}),Ha.value=za}}fe.value=h},zn=async(d,h)=>{var T,z,R,B,ee;if((T=d==null?void 0:d.toString())!=null&&T.includes(".txt")||(z=d==null?void 0:d.toString())!=null&&z.includes(".cpt")||(R=d==null?void 0:d.toString())!=null&&R.includes(".cyd")){const ae=await Qa.axios.get(d,{responseType:"blob",headers:{"Content-Type":"application/json"}}),H=new Blob([ae.data],{type:"application/octet-stream;charset=UTF-8"});let ge=URL.createObjectURL(H);le.value=[{name:(ee=d==null?void 0:d.split("/"))==null?void 0:ee[((B=d==null?void 0:d.split("/"))==null?void 0:B.length)-1],blobUrl:ge}],Ga.value=!0}else Array.isArray(h)&&(h==null?void 0:h.length)>0&&Te("routeUrl",{isEdit:!1,routerUrl:h})};a.onBeforeUnmount(()=>{Pr.value=!1;let d=rn.value;rn.value=d+1});const wn=a.reactive({prop:"",order:null}),Kr=a.computed(()=>{const d=(Ee.value??[]).slice(),h=wn.prop||J.prop,T=wn.order||J.order;if(!h||!T)return d;const z=T==="ascending",R=ee=>{if(h)return ee&&Object.prototype.hasOwnProperty.call(ee,h)?ee[h]:h.includes(".")?h.split(".").reduce((ae,H)=>ae==null?ae:ae[H],ee):ee==null?void 0:ee[h]},B=ee=>{if(ee==null)return{ok:!1,value:NaN};if(typeof ee=="number")return{ok:Number.isFinite(ee),value:ee};const ae=String(ee).trim();if(ae==="")return{ok:!1,value:NaN};const H=ae.replace(/[,\s]/g,"");if(!/^[+-]?(\d+\.?\d*|\.\d+)$/.test(H))return{ok:!1,value:NaN};const ge=Number(H);return{ok:Number.isFinite(ge),value:ge}};return d.sort((ee,ae)=>{const H=R(ee),ge=R(ae);if(H==null&&ge==null)return 0;if(H==null)return z?-1:1;if(ge==null)return z?1:-1;const xe=B(H),$e=B(ge);if(xe.ok&&$e.ok)return z?xe.value-$e.value:$e.value-xe.value;const Ie=te=>{if(te==null)return{ok:!1,value:NaN};const Ta=String(te).trim();if(Ta==="")return{ok:!1,value:NaN};const ua=Ta.match(/^(-)?(\d+):(\d{1,2}):(\d{1,2})$/);if(!ua)return{ok:!1,value:NaN};const Da=ua[1]?-1:1,Aa=Number(ua[2]),A=Number(ua[3]),K=Number(ua[4]);return[Aa,A,K].some(Me=>Number.isNaN(Me))?{ok:!1,value:NaN}:A>=60||K>=60?{ok:!1,value:NaN}:{ok:!0,value:Da*(Aa*3600+A*60+K)}},je=Ie(H),oa=Ie(ge);if(je.ok&&oa.ok)return z?je.value-oa.value:oa.value-je.value;const Fa=new Date(H).getTime(),za=new Date(ge).getTime(),na=!Number.isNaN(Fa),el=!Number.isNaN(za);if(na&&el)return z?Fa-za:za-Fa;const ta=String(H),Ua=String(ge);return z?ta.localeCompare(Ua):Ua.localeCompare(ta)})}),Fn=a.computed(()=>{var T;const d=(he.currentPage-1)*he.pageSize,h=d+he.pageSize;return Te("getSliceContLength",he),(T=Kr.value)==null?void 0:T.slice(d,h)}),mn=d=>{he.currentPage=d,Te("getSliceContLength",he)},To=d=>{var z;he.pageSize=d;const h=((z=Ee.value)==null?void 0:z.length)??0,T=d>0?Math.ceil(h/d):1;he.currentPage>T&&(he.currentPage=T||1,Qa.ElMessage.warning("当前页超出范围,已自动跳转到最后一页")),Te("getSliceContLength",he)},Ii=({prop:d,order:h})=>{wn.prop=d,wn.order=h,he.currentPage=1};function Oi(d){const h=[];function T(z,R=""){z.forEach(B=>{B.children&&B.children.length>0?T(B.children,B.prop):h.push(B.prop)})}return T(d),h}const _n=(d,h)=>{var ae,H,ge,xe;let T=(H=(ae=Se.value)==null?void 0:ae.map($e=>$e==null?void 0:$e.prop))==null?void 0:H.filter($e=>$e!=="operate");((ge=Se.value)==null?void 0:ge.some($e=>{var Ie;return((Ie=$e==null?void 0:$e.children)==null?void 0:Ie.length)>0}))&&(T=Oi((xe=Se.value)==null?void 0:xe.filter($e=>($e==null?void 0:$e.prop)!=="operate")));let R;if(R=(d==null?void 0:d.length)===(T==null?void 0:T.length)?d:d.slice(0,T==null?void 0:T.length),!(R==null?void 0:R.every($e=>T==null?void 0:T.find(Ie=>$e===Ie))))return Qa.ElMessage.error("导入的数据表头不匹配");Pn(R,h)},Li=(d,h)=>{var R;const T=d==null?void 0:d.filter(B=>B!=="序号"),z=h==null?void 0:h.map(B=>{const ee=Object.entries(B);return ee.shift(),Object.fromEntries(ee)});Ze.setRefreshCurStructure(!1),((R=Se.value)==null?void 0:R.length)===0||_n(T,z)},$i=(d,h,T,z)=>{const R=[],B=[],ee=ge=>Object.keys(ge).length;for(const ge in d)if(d[ge]!==void 0){const xe=d[ge],$e=[];for(const[Ie,je]of Object.entries(xe))$e.push(je),B.length<ee(xe)&&B.push(Ie);R.push($e)}R.unshift(B);const ae=sa.utils.aoa_to_sheet(R),H=sa.utils.book_new();sa.utils.book_append_sheet(H,ae,z),sa.writeFileSync(H,`${h}.xlsx`),rr.value=[]},Wo=async(d,h,T,z=!1,R)=>{var B,ee,ae,H,ge,xe,$e,Ie;try{Ze.setRefreshCurStructure(!1);const je=await _r.getInsofDataApi({id:u==null?void 0:u.index});if(((B=je==null?void 0:je.data)==null?void 0:B.code)===200){let oa=(ge=(H=(ae=(ee=je==null?void 0:je.data)==null?void 0:ee.result)==null?void 0:ae[0])==null?void 0:H.value)==null?void 0:ge.pageData;z?oa={...oa,compData:($e=oa==null?void 0:oa.compData)==null?void 0:$e.map(za=>{var na;return(za==null?void 0:za.key)==="header"?{...za,contents:(na=za==null?void 0:za.contents)==null?void 0:na.map(el=>({...el,[d]:T}))}:za})}:oa={...oa,compData:(xe=oa==null?void 0:oa.compData)==null?void 0:xe.map(za=>{var na,el;return(za==null?void 0:za.key)==="header"?{...za,contents:(na=za==null?void 0:za.contents)==null?void 0:na.map(ta=>{if(Array.isArray(ta))ta=ta==null?void 0:ta.map(Ua=>(Ua==null?void 0:Ua.prop)===(h==null?void 0:h.prop)?{...Ua,[d]:T}:Ua);else if((ta==null?void 0:ta.prop)===(h==null?void 0:h.prop))return{...ta,[d]:T};return ta})}:(za==null?void 0:za.key)==="tableToForm"&&R?{...za,contents:(el=za==null?void 0:za.contents)==null?void 0:el.map(ta=>(ta==null?void 0:ta.prop)===(h==null?void 0:h.prop)?{...ta,[R]:T}:ta)}:za})};const Fa=await _r.updateInsofDataApi({id:u==null?void 0:u.index,value:{pageData:oa}});((Ie=Fa==null?void 0:Fa.data)==null?void 0:Ie.code)===200?(Qa.ElMessage.success("编辑成功"),Ze.setRefreshCurStructure(!0)):Qa.ElMessage.error("编辑响应失败")}}catch(je){Qa.ElMessage.error(je)}},Ko=async(d,h)=>{await Wo("label",h,d)},Go=async(d,h)=>{await Wo("columnType",h,d,!1,"type")},Fr=async({newRow:d,targetIndex:h})=>{var R;if(!Le(u.config,{type:ra.TABLE}))return;const z=(he.currentPage-1)*he.pageSize+(h??0);d._isTemp=!0;try{(d.sort===void 0||d.sort===null||String(d.sort).trim()==="")&&(d.sort=Mn(z,Ee.value||[]))}catch{}Ee.value.splice(z,0,d),await a.nextTick(),b.value.has(d.id)||b.value.set(d.id,L.cloneDeep(d)),Ee.value=(R=Ee.value)==null?void 0:R.map(B=>({...B,tableEditType:(B==null?void 0:B.id)===d.id?"edit":(B==null?void 0:B.tableEditType)??"text"})),c.value.add(d.id),Il.value=!0},Ri=(d,h,T,z=[])=>(!Array.isArray(h)||h.length===0||h.forEach(R=>{const B=R==null?void 0:R.prop;if(!B)return;let ee=d==null?void 0:d[B];if(ee==null||String(ee).trim()==="")return;ee=String(ee);const ae=new Set([...(Array.isArray(T)?T:[]).filter(xe=>(xe==null?void 0:xe.id)!==(d==null?void 0:d.id)).map(xe=>xe==null?void 0:xe[B]).filter(xe=>xe!=null).map(xe=>String(xe)),...(Array.isArray(z)?z:[]).map(xe=>xe==null?void 0:xe[B]).filter(xe=>xe!=null).map(xe=>String(xe))]);if(!ae.has(ee))return;let H=1,ge="";for(;ge=`${ee}(${H})`,!!ae.has(ge);)H++;d[B]=ge}),d),Ao=async()=>{var R,B,ee,ae,H,ge,xe,$e;const d=Array.from(c.value||[]);if(d.length===0)return;const h=(B=sa.getColumnChild((R=L.cloneDeep(Se.value))==null?void 0:R.filter(Ie=>(Ie==null?void 0:Ie.label)!=="操作")))==null?void 0:B.filter(Ie=>(Ie==null?void 0:Ie.required)===!0);if((h==null?void 0:h.length)>0)for(let Ie=0;Ie<d.length;Ie++){const je=d[Ie],oa=(ee=Ee.value)==null?void 0:ee.find(Fa=>(Fa==null?void 0:Fa.id)===je);if(oa)for(let Fa=0;Fa<h.length;Fa++){const za=h[Fa],na=za==null?void 0:za.prop,el=(za==null?void 0:za.label)??na,ta=oa==null?void 0:oa[na];if(ta===""||ta===null||ta===void 0||Array.isArray(ta)&&ta.length===0){Qa.ElMessage.error(`${el}不能为空`);return}}}const T=[],z=[];if(d.forEach(Ie=>{var el;const je=(el=Ee.value)==null?void 0:el.find(ta=>(ta==null?void 0:ta.id)===Ie);if(!je)return;if(je!=null&&je._isTemp){const Ua=(sa.getAllLeafNodes(Se.value)||[]).filter(A=>(A==null?void 0:A.mainKey)===!0||(A==null?void 0:A.isMainKey)===!0),te=Ee.value.findIndex(A=>(A==null?void 0:A.id)===Ie),Ta=te>=0?te+1:Ee.value.length+1;Ri(je,Ua,Ee.value,T);const ua={id:Ta.toString()};(je==null?void 0:je.sort)!==void 0&&(je==null?void 0:je.sort)!==null&&String(je.sort).trim()!==""?ua.sort=String(je.sort):ua.sort=Mn(te>=0?te:Ee.value.length-1,Ee.value||[]),(sa.getAllLeafNodes(Se.value)||[]).filter(A=>(A==null?void 0:A.type)!=="operate"&&(A==null?void 0:A.label)!=="操作"&&(A==null?void 0:A.prop)!=="operate").forEach(A=>{const K=A==null?void 0:A.prop;if(K){const Me=je[K];Me!==void 0?ua[K]=Me??"":ua[K]=""}}),T.push(ua);return}const Fa=(sa.getAllLeafNodes(Se.value)||[]).filter(ta=>(ta==null?void 0:ta.type)!=="operate"&&(ta==null?void 0:ta.label)!=="操作"&&(ta==null?void 0:ta.prop)!=="operate"),za=new Set(Fa.map(ta=>ta==null?void 0:ta.prop).filter(Boolean)),na={};for(const ta of za)Object.prototype.hasOwnProperty.call(je,ta)&&(na[ta]=je[ta]);z.push({id:je.id,value:{tableData:na}})}),Ze.setTableLoading(u==null?void 0:u.index),z.length>0){const Ie=z.map(oa=>{const Fa={id:oa.id,...oa.value.tableData};return delete Fa._isOCRRow,delete Fa._ocrTableId,delete Fa._isTemp,delete Fa.tableEditType,delete Fa.index,Fa}),je=[{tableName:(ae=u==null?void 0:u.related)==null?void 0:ae.find(oa=>oa==null?void 0:oa.includes("content")),tableContents:Ie}];try{await L.pageBatchUpdateApi({platId:parseInt((H=Rl.value)==null?void 0:H.plat_id),changeContents:je})}catch(oa){Qa.ElMessage.error(((xe=(ge=oa==null?void 0:oa.response)==null?void 0:ge.data)==null?void 0:xe.message)||(oa==null?void 0:oa.message)||"保存失败"),Ze.setTableLoading(!1);return}}if(T.length>0){const Ie={fixContent:T,buttonName:"新增",relatedContents:u==null?void 0:u.related,name:u==null?void 0:u.compName,columns:Se.value};Te("change",Ie)}Qa.ElMessage.success("保存成功"),c.value.clear(),b.value.clear(),Ee.value=($e=Ee.value)==null?void 0:$e.map(Ie=>({...Ie,tableEditType:"text"})),Il.value=!1,Ze.setRefreshCurStructure(!0)},Vi=()=>{var h;const d=Array.from(c.value||[]);if(d.length===0){Il.value=!1;return}d.forEach(T=>{var B,ee;const z=b.value.get(T),R=(B=Ee.value)==null?void 0:B.find(ae=>(ae==null?void 0:ae.id)===T);if(R!=null&&R._isTemp){Ee.value=Ee.value.filter(ae=>(ae==null?void 0:ae.id)!==R.id);return}if(z){const ae=(ee=Ee.value)==null?void 0:ee.findIndex(H=>(H==null?void 0:H.id)===T);ae!==-1&&(Ee.value[ae]={...Ee.value[ae],...z})}}),c.value.clear(),b.value.clear(),Ee.value=(h=Ee.value)==null?void 0:h.map(T=>({...T,tableEditType:"text"})),Il.value=!1},zo=a.ref(!1),Yo=async d=>{var R,B,ee,ae;if(!Il.value||d!=null&&d.isComposing||(d==null?void 0:d.key)!=="Enter")return;const h=d==null?void 0:d.target;if(((B=(R=h==null?void 0:h.tagName)==null?void 0:R.toLowerCase)==null?void 0:B.call(R))==="textarea")return;const z=document.getElementById("excel-table");z&&!z.contains(h)||((ee=h==null?void 0:h.blur)==null||ee.call(h),(ae=d.preventDefault)==null||ae.call(d),await a.nextTick(),await Jo())},Jo=async()=>{if(F.value){Il.value=!1;return}if(!zo.value){zo.value=!0;try{Array.from(c.value||[]).length>0?await Ao():Il.value=!1}finally{Promise.resolve().then(()=>{zo.value=!1})}}},Pi=d=>{rr.value=d},Fi=(d,h)=>{jl.value===h?Rr.value=!1:Rr.value=!0,jl.value=h==null?void 0:h.changeProp},Xo=d=>{if(!d)return;const{item:h,value:T}=d,z=Ha.value.find(R=>R.prop==h.prop);z&&z.contents.push({label:T,value:T})},En=a.computed(()=>{var T,z,R;const d=(T=Se.value)==null?void 0:T.some(B=>B==null?void 0:B.filterable);return document.documentElement.style.setProperty("--ssTable-header-filter-display",d?"inline-block":"none"),(R=(z=Se.value)==null?void 0:z.filter(B=>(B==null?void 0:B.label)!=="操作"))==null?void 0:R.map(B=>({...B,filterable:!!(B!=null&&B.filterable),showSummary:!!(B!=null&&B.showSummary),operable:!!(B!=null&&B.operable),fixed:B==null?void 0:B.fixed}))}),Sn=async(d,h,T)=>{const z=L.cloneDeep(Se.value);await a.nextTick();const R=z==null?void 0:z.map(ee=>(T==null?void 0:T.label)===(ee==null?void 0:ee.label)?{...ee,[h]:d}:ee),B=jn(R);await ds(u.index,B),Se.value=R,Q.value=B},jn=d=>{var R;const h=d||[];return((R=sa.getAllLeafNodes(h)||[])==null?void 0:R.filter(B=>(B==null?void 0:B.prop)&&(B==null?void 0:B.type)!=="operate"&&(B==null?void 0:B.label)!=="操作"&&(B==null?void 0:B.prop)!=="operate")).map(B=>{const{prop:ee}=B;return $f(ee,B)})},ji=async d=>{let h=await Vf(u.index);h||(h=jn(d)),Q.value=h},Zo=async(d,h)=>{const T=L.cloneDeep(Se.value),z=ee=>Array.isArray(ee)?ee.map(ae=>{const H=Array.isArray(ae==null?void 0:ae.children)&&ae.children.length>0,ge={...ae};return(ge==null?void 0:ge.prop)==="operate"||(ge==null?void 0:ge.label)==="操作"||(ge==null?void 0:ge.type)==="operate"?(ge.sortable=!1,ge.filterable=!1,ge.operable=!1):ge.sortable=H?!1:!!d,H&&(ge.children=z(ge.children)),ge}):ee,R=z(T),B=jn(R);await ds(u.index,B),Se.value=R,Q.value=B,await a.nextTick(),rn.value=rn.value+1},Qo=()=>{Xe.value=!1},ei=d=>{Te("clickTrigger",d)},Hn=async d=>{var B,ee,ae,H,ge,xe,$e,Ie,je,oa,Fa,za,na,el,ta;const h=d==null?void 0:d.row,T=d==null?void 0:d.rowData,z=d==null?void 0:d.suffix;if((B=h==null?void 0:h.toString())!=null&&B.includes(".urdf")||d!=null&&d.isUrdf||z!=null&&z.includes(".urdf")){if(h.includes(",")){Qa.ElMessage.error("当前版本仅允许单个urdf预览!");return}if(D(h)){const te={files:[De(h)],data:{}};ue(te);return}ba.value=[{url:h,extension:be(h)}],Ca.value=!0,ne.value={data:L.cloneDeep(T)},He.value=!0;return}let R=[];if((ee=h==null?void 0:h.toString())!=null&&ee.includes(".stl")||(ae=h==null?void 0:h.toString())!=null&&ae.includes(".STL")||(H=h==null?void 0:h.toString())!=null&&H.includes(".obj")||(ge=h==null?void 0:h.toString())!=null&&ge.includes(".mtl")){const Ua=(xe=h==null?void 0:h.toString())==null?void 0:xe.split(","),te=pa(Ua),Ta=te==null?void 0:te[0];if(D(Ta==null?void 0:Ta.extension)){ue({files:te,data:{}});return}ba.value=te,Ca.value=!1,He.value=!0;return}if(($e=h==null?void 0:h.toString())!=null&&$e.includes(".stl")||(Ie=h==null?void 0:h.toString())!=null&&Ie.includes(".STL")||(je=h==null?void 0:h.toString())!=null&&je.includes(".obj")||(oa=h==null?void 0:h.toString())!=null&&oa.includes(".mtl")||z!=null&&z.includes(".stl")||z!=null&&z.includes(".STL")||z!=null&&z.includes(".obj")||z!=null&&z.includes(".mtl")){let Ua,te=[],Ta={};if(Array.isArray(h)?Ua=h:Ua=h==null?void 0:h.split(","),Ua==null||Ua.forEach(ua=>{ua.includes(".mtl")?te.push(ua):Ta.blob=Ta.blob?Ta.blob+","+ua:ua}),(te==null?void 0:te.length)>0&&(Ta.mtlBlobs=te),z&&(Ta.suffix=z),(za=(Fa=Object.values(Ta))==null?void 0:Fa[0])!=null&&za.includes("http:"))R.push(Ta);else{const ua=new Blob([Ta.blob],{type:"application/octet-stream;charset=UTF-8"});let Da=URL.createObjectURL(ua),Aa="";(na=h==null?void 0:h.split("/"))==null||na.forEach((A,K)=>{var Me;K===((Me=h==null?void 0:h.split("/"))==null?void 0:Me.length)-1&&(Aa=A)}),(el=Ta.blob)!=null&&el.includes(".stl")&&(Aa=(Aa==null?void 0:Aa.replaceAll(">",""))+".urdf"),le.value=[{name:Aa,blobUrl:Da}],Ga.value=!0}}else{const Ua=await Qa.axios.get(h,{responseType:"blob",headers:{"Content-Type":"application/json"}}),te=new Blob([Ua.data],{type:"application/octet-stream;charset=UTF-8"});let Ta=URL.createObjectURL(te),ua="";if((ta=h==null?void 0:h.split("/"))==null||ta.forEach((Da,Aa)=>{var A;Aa===((A=h==null?void 0:h.split("/"))==null?void 0:A.length)-1&&(ua=Da)}),D(ua)){const Da=re(ua),Aa=De(h);ue({files:[Aa],data:{trackFileType:Da}});return}le.value=[{name:ua,blobUrl:Ta}],Ga.value=!0}(R==null?void 0:R.length)>0&&o.setBlobUrls(R)},Qn=d=>{var z,R,B,ee;if(d!=null&&d.downloadUrl)return d==null?void 0:d.name;const h=(ee=(z=d==null?void 0:d.url)==null?void 0:z.split("."))==null?void 0:ee[((B=(R=d==null?void 0:d.url)==null?void 0:R.split("."))==null?void 0:B.length)-1];return(d==null?void 0:d.name)+"."+h},ai=d=>{if(!d)return"未知文件";try{const z=Qn(d);if(typeof z=="string"&&z.includes("."))return z}catch{}const h=(d==null?void 0:d.fileName)||(d==null?void 0:d.name)||"未知文件",T=(d==null?void 0:d.suffix)||"";return h.includes(".")?h:`${h}${T}`},li=d=>{if(d==null||typeof d=="number"||typeof d!="string")return d;const h=d.match(/^(\d+)\_(\d+)$/);if(!h)return d;const T=Number(h[1]),z=Number(h[2]);return!Number.isFinite(T)||!Number.isFinite(z)?d:String(T*1e3+z)},eo=d=>{if(d==null)return null;const h=String(d).trim();if(!h)return null;const T=Number(h);return Number.isFinite(T)?T:null},Hi=d=>{if(d==null)return null;const h=String(d).trim();if(!h)return null;if(/^\d+$/.test(h)){const R=Number(h);return Number.isFinite(R)?h.length<=10?R*1e3:R:null}const T=h.includes("T")?h:h.replace(" ","T"),z=Date.parse(T);return Number.isFinite(z)?z:null},ri=(d,h=[])=>{const T=Array.isArray(d)?d.slice():[];if(T.length<=1)return T;const z=new Map((h||[]).map((ee,ae)=>[String(ee),ae])),R=T.some(ee=>eo(ee==null?void 0:ee.sort)!==null),B=T.map((ee,ae)=>({r:ee,idx:ae,id:String((ee==null?void 0:ee.id)??""),sortVal:eo(ee==null?void 0:ee.sort),createTimeMs:Hi(ee==null?void 0:ee.create_time),prevIdx:z.has(String(ee==null?void 0:ee.id))?z.get(String(ee==null?void 0:ee.id)):Number.POSITIVE_INFINITY}));return B.sort((ee,ae)=>{if(R){const xe=ee.sortVal,$e=ae.sortVal;if(xe===null&&$e!==null)return 1;if(xe!==null&&$e===null)return-1;if(xe!==null&&$e!==null&&xe!==$e)return xe-$e}const H=ee.createTimeMs,ge=ae.createTimeMs;return H!==null&&ge!==null&&H!==ge?ge-H:H!==null&&ge===null?-1:H===null&&ge!==null?1:ee.prevIdx!==ae.prevIdx?ee.prevIdx-ae.prevIdx:ee.idx-ae.idx}),B.map(ee=>ee.r)},Mn=(d,h=[])=>{const T=h==null?void 0:h[d-1],z=h==null?void 0:h[d],R=eo(T==null?void 0:T.sort),B=eo(z==null?void 0:z.sort);let ee=null;R!==null&&B!==null&&B>R?ee=(R+B)/2:R!==null?ee=R+1:B!==null?ee=Math.max(B-1,0):ee=(d??0)+1;const ae=Number(ee.toFixed(6));return String(Number.isFinite(ae)?ae:ee)},Ui=async d=>{let h=null,T=null;if(d!=null&&d.id){const R=Vo.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});try{const B=await L.platformDownloadFile(d);h=URL.createObjectURL(B.data),T=ai(d)}finally{R.close()}}else if(d!=null&&d.downloadUrl){const R=await uo(),B=Vo.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),ee=await Qa.axios.post(d==null?void 0:d.url,null,{responseType:"blob",headers:{Authorization:R,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}).finally(()=>{B.close()}),ae=new Blob([ee.data],{type:"application/octet-stream;charset=UTF-8"});h=URL.createObjectURL(ae),T=d==null?void 0:d.name}else{const R=await L.platformDownloadFile({url:d==null?void 0:d.url});!d.url.toUpperCase().includes(".OBJ")&&!d.url.toUpperCase().includes(".STL")&&!d.url.toUpperCase().includes(".MTL")&&!d.url.toUpperCase().includes(".URDF")?(h=URL.createObjectURL(R.data),T=Qn(d)):h=d==null?void 0:d.url}if(D(h)){const R={row:`${h}`,suffix:be(T)};Hn(R);return}const z={name:T,blobUrl:h};le.value=[z],Ga.value=!0},co=async d=>{let h=null,T=null;if(d!=null&&d.id){const B=await L.platformDownloadFile(d);h=URL.createObjectURL(B.data),T=ai(d)}else if(d!=null&&d.downloadUrl){const B=await uo(),ee=await Qa.axios.post(d==null?void 0:d.url,null,{responseType:"blob",headers:{Authorization:B,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}),ae=new Blob([ee.data],{type:"application/octet-stream;charset=UTF-8"});h=URL.createObjectURL(ae),T=d==null?void 0:d.name}else{const B=await L.platformDownloadFile({url:d==null?void 0:d.url});h=URL.createObjectURL(B.data),T=Qn(d)}const z={name:T,blobUrl:h},R=document.createElement("a");R.href=z.blobUrl,R.download=z.name,R.style.display="none",document.body.appendChild(R),R.click(),setTimeout(()=>{document.body.removeChild(R)},100)},qi=(d,h)=>{var z;if(Object.values(h).length===0)return;let T=d;return Object.values(h).find(R=>{var B,ee,ae;return((B=R==null?void 0:R.toString())==null?void 0:B.includes(".txt"))||((ee=R==null?void 0:R.toString())==null?void 0:ee.includes(".cpt"))||((ae=R==null?void 0:R.toString())==null?void 0:ae.includes(".obj"))})?T=[...d,_e.value]:(z=u==null?void 0:u.config)!=null&&z.allowMove&&(T=[...d,{label:"迁移"}]),T},Mo=()=>{q.value=!0},Wi=a.ref([]),Ki=async(d,h,T=!1)=>{var ee,ae,H,ge;if(!d)return;if(T){Ee.value=[...va.value.values()].filter(xe=>Object.values(xe).some($e=>typeof $e=="string"?$e==null?void 0:$e.toLowerCase().includes(h==null?void 0:h.toLowerCase()):!1));return}let z={};for(let xe in d)(d==null?void 0:d[xe])!==""&&(z[xe]=d==null?void 0:d[xe]);if(JSON.stringify(z)==="{}"){Ee.value=Array.from(((ee=va.value)==null?void 0:ee.values())??[]);return}let R=(ae=u==null?void 0:u.related)==null?void 0:ae.find(xe=>xe==null?void 0:xe.includes("content_")),B=await L.getFillFind({platId:parseInt((H=Rl==null?void 0:Rl.value)==null?void 0:H.plat_id),tableName:R,params:z});B=(ge=B==null?void 0:B.data)==null?void 0:ge.result,Ee.value=B,Ze.setTableLoading(!1)},ni=async d=>{var T,z;if(!Le(u.config,{type:ra.TABLE})||!d)return;((T=Array.from(c.value))==null?void 0:T.length)>0&&await Ao();const h=d==null?void 0:d.id;h!=null&&(c.value.clear(),b.value.clear(),b.value.has(h)||b.value.set(h,L.cloneDeep(d)),Ee.value=(z=Ee.value)==null?void 0:z.map(R=>({...R,tableEditType:(R==null?void 0:R.id)===h?"edit":"text"})),c.value.add(h),Il.value=!0)},Un=async(d,h,T,z)=>{z!=null&&z.isExistChild&&Te("clickMainKey",d,T,Se.value)},Cn=()=>{Ga.value=!1},oi=d=>{Te("rowClick",d)};a.watch(()=>u.changedContent,()=>{var T,z;if(!u.changedContent)return;let d=(T=Ee.value)==null?void 0:T.map(R=>{var B;return R.id===((B=u.changedContent)==null?void 0:B.id)&&(R={...u.changedContent,id:u.changedContent.newId?u.changedContent.newId:u.changedContent.id},delete R.newId),R});const h=(z=u.itemData)==null?void 0:z.map(R=>((R==null?void 0:R.key)==="tableContents"&&(R.contents=d),R));Ee.value=d,Te("contentChange",{contents:h,index:u.index}),Te("change",{content:d,index:u==null?void 0:u.index,buttonName:"",id:u==null?void 0:u.index})},{deep:!0,immediate:!0});const Io=()=>{},Gi=async()=>{const d=wa.value,h=sessionStorage.getItem("systemKey"),T=await sa.getItemData(d,h,""),z=(T==null?void 0:T.find(ae=>(ae==null?void 0:ae.name)==="方法明细"))||(T==null?void 0:T[0]),R=(z==null?void 0:z.compData)||[],B=R==null?void 0:R.find(ae=>{const H=ae==null?void 0:ae.key;return H==="formContent"||H==="tableContents"});return B==null?void 0:B.contents},uo=async()=>{const h=Qa.Local.get("access-token");return h?`Bearer ${h}`:""},Yi=async(d,{token:h,inputData:T}={})=>await Qa.axios.post(d,T,{headers:{Authorization:h}}).catch(R=>(la.setImportLoading(!1),Promise.reject(R))),Ji=d=>{var z;let h={};const T=[];return h.form={},(z=L.cloneDeep(d))==null||z.forEach((R,B)=>{var ee,ae,H,ge,xe,$e,Ie,je,oa,Fa,za,na,el,ta;if((R==null?void 0:R.comp)==="Table"){(ae=(ee=R==null?void 0:R.compData)==null?void 0:ee.find(ua=>(ua==null?void 0:ua.key)==="header"))==null||ae.contents;let Ua=(xe=(ge=(H=R==null?void 0:R.compData)==null?void 0:H.find(ua=>(ua==null?void 0:ua.key)==="tableContents"))==null?void 0:ge.contents)==null?void 0:xe.map(ua=>ua.slice(1));(Fa=(oa=(je=(Ie=($e=R==null?void 0:R.compData)==null?void 0:$e.find(ua=>(ua==null?void 0:ua.key)==="header"))==null?void 0:Ie.contents)==null?void 0:je[0])==null?void 0:oa[0])==null||Fa.label;let te=(na=(za=R==null?void 0:R.compData)==null?void 0:za.find(ua=>(ua==null?void 0:ua.key)==="header"))==null?void 0:na.contents,Ta=[];Ua==null||Ua.forEach(ua=>{let Da=[];ua==null||ua.forEach((Aa,A)=>{var Me;let K={};((Me=te[A])==null?void 0:Me.label)!=="操作"&&(K[te[A].label]=Aa,Da.push(K))}),Ta.push(Da)}),h[R.name]=Ta}else{const Ua=(ta=(el=R.compData)==null?void 0:el.find(te=>(te==null?void 0:te.key)==="formContent"))==null?void 0:ta.contents;Ua==null||Ua.forEach(te=>{var Ta,ua;if(te.prop!==""){let Da=te==null?void 0:te.value;Array.isArray(Da)?Da=((Ta=Da==null?void 0:Da[0])==null?void 0:Ta.oldUrl)||"http://222.92.178.198:62001/"+((ua=Da==null?void 0:Da[0])==null?void 0:ua.url):Da=Da.toString(),te={key:(te==null?void 0:te.prop)??(te==null?void 0:te.label),value:Da},T.push(te)}})}}),h.form=sa.getFormContents(T),h},Xi=d=>{const h=[],T=z=>{z&&typeof z=="object"&&!Array.isArray(z)?Object.values(z).forEach(T):h.push(z)};return T(d),h},Zi=async(d,h,T)=>{var te,Ta,ua,Da,Aa,A,K,Me,ia,we,ca,Ma,pl,ll,vl,ml,Pl;la.setImportLoading(!0),Ze.setFreshContent(!1);let z=await Gi().catch(al=>(la.setImportLoading(!1),Promise.reject(al)));z=z==null?void 0:z.filter(al=>{var kl;return((kl=al==null?void 0:al.find(Ka=>Ka==null?void 0:Ka.id))==null?void 0:kl.id)===(h==null?void 0:h.id)});let R=sa.getEqualChild([(te=Se.value)==null?void 0:te.filter(al=>(al==null?void 0:al.label)!=="操作")]);const B=(ua=(Ta=sa.tableToForm(z,R))==null?void 0:Ta[0])==null?void 0:ua.find(al=>{const kl=al==null?void 0:al.key;return kl==="Interface"||kl==="方法体"}),ee=B==null?void 0:B.value;if(!ee){console.log("未搜索到isMain, 缺少算法执行接口"),la.setImportLoading(!1);return}const ae=Se.value?sa.getEqualChild([Se.value]):[],H=ae.find(al=>{const kl=al==null?void 0:al.prop;return kl==="Input1"||kl==="输入数据.输入1"||kl==="样本输入数据"}),ge=H==null?void 0:H.prop;let xe=h==null?void 0:h[ge];const $e=await uo().catch(al=>(la.setImportLoading(!1),Promise.reject(al)));let Ie=!0,je="";(Da=Se.value)==null||Da.forEach(al=>{(al==null?void 0:al.prop)===ge&&(Ie=!!(al!=null&&al.childPath),je=al==null?void 0:al.childPath)});let oa="";if(Ie){let al=(A=(Aa=Se.value)==null?void 0:Aa.find(hl=>(hl==null?void 0:hl.isMainKey)===!0))==null?void 0:A.prop;oa=h==null?void 0:h[al];let kl=je==null?void 0:je.split(m),Ka=[];kl==null||kl.forEach((hl,Cl)=>{(kl==null?void 0:kl.length)-1===Cl&&Ka.push(oa),Ka.push(hl)}),Ka=Ka==null?void 0:Ka[0];let fl=await sa.getItemData(Ka,sessionStorage.getItem("systemKey"),""),nl=fl==null?void 0:fl.filter(hl=>(hl==null?void 0:hl.name)===ge);nl=nl==null?void 0:nl.map(hl=>{var Cl;return hl.compData=(Cl=hl==null?void 0:hl.compData)==null?void 0:Cl.map(Al=>{var kr;return(Al==null?void 0:Al.key)==="tableContents"&&(Al.contents=(kr=Al==null?void 0:Al.contents)==null?void 0:kr.filter($l=>($l==null?void 0:$l[1])===(h==null?void 0:h[ge]))),Al}),hl}),(!nl||(nl==null?void 0:nl.length)===0)&&(nl=fl,nl=nl==null?void 0:nl.map(hl=>{var Cl;return hl.compData=(Cl=hl==null?void 0:hl.compData)==null?void 0:Cl.map(Al=>{var kr;return(Al==null?void 0:Al.key)==="tableContents"&&(Al.contents=(kr=Al==null?void 0:Al.contents)==null?void 0:kr.filter($l=>{var wl,Ml;return($l==null?void 0:$l[1])===(h==null?void 0:h[(Ml=(wl=Se==null?void 0:Se.value)==null?void 0:wl[0])==null?void 0:Ml.prop])})),Al}),hl})),xe=Ji(nl)}const Fa=await Yi(ee,{token:$e,inputData:xe}).catch(al=>(la.setImportLoading(!1),Promise.reject(al))),za=(K=Fa==null?void 0:Fa.data)==null?void 0:K.data,na=ae.find(al=>(al==null?void 0:al.prop)==="Output1"),el=na==null?void 0:na.prop;let ta=[],Ua=[];if(za&&((Me=Object.values(za))==null?void 0:Me.length)>0){let al=[];const kl=new FormData,Ka=(ia=Xi(za))==null?void 0:ia.map(async nl=>{var hl,Cl;if(!Array.isArray(nl)&&(nl!=null&&nl.includes("http"))){let Al=await Qa.axios.get(nl,{responseType:"blob"}),kr=(Cl=nl==null?void 0:nl.split("/"))==null?void 0:Cl[((hl=nl==null?void 0:nl.split("/"))==null?void 0:hl.length)-1];kl.append("files",Al.data,kr)}else al.push(nl)});if(await Promise.all(Ka),!sa.isFormDataEmpty(kl)){let nl=await wu.uploadAmountApi(kl),hl=(ca=(we=nl==null?void 0:nl.data)==null?void 0:we.result)==null?void 0:ca.map(Cl=>{var Al,kr,$l,wl,Ml,Wl;return{name:(Wl=(Ml=(wl=(Al=Cl==null?void 0:Cl.url)==null?void 0:Al.split("/"))==null?void 0:wl[(($l=(kr=Cl==null?void 0:Cl.url)==null?void 0:kr.split("/"))==null?void 0:$l.length)-1])==null?void 0:Ml.split("."))==null?void 0:Wl[0],url:Cl==null?void 0:Cl.url}});al=[...al,...hl]}let fl={};for(let nl in h)nl!=="id"&&(fl[nl]=h[nl]);fl[el]=al,Ua.push({id:h==null?void 0:h.id,value:{tableData:fl}})}if((Ua==null?void 0:Ua.length)>0){const al=Ua.map(Ka=>{const fl={id:Ka.id,...Ka.value.tableData};return delete fl._isOCRRow,delete fl._ocrTableId,delete fl._isTemp,delete fl.tableEditType,delete fl.index,fl}),kl=[{tableName:(Ma=u==null?void 0:u.related)==null?void 0:Ma.find(Ka=>Ka==null?void 0:Ka.includes("content")),tableContents:al}];await L.pageBatchUpdateApi({platId:parseInt((pl=Rl.value)==null?void 0:pl.plat_id),changeContents:kl})}if((ta==null?void 0:ta.length)>0)try{await L.pageBatchAddApi({platId:parseInt((ll=Rl.value)==null?void 0:ll.plat_id),changeContents:[{tableName:(vl=u==null?void 0:u.related)==null?void 0:vl.find(al=>al==null?void 0:al.includes("content")),tableContents:ta.map(al=>{var Ka,fl,nl;const kl={id:((Ka=al==null?void 0:al.key)==null?void 0:Ka.id)??((fl=al==null?void 0:al.key)==null?void 0:fl.rowId)??(al==null?void 0:al.id),...((nl=al==null?void 0:al.value)==null?void 0:nl.tableData)||{}};return delete kl._isOCRRow,delete kl._ocrTableId,delete kl._isTemp,delete kl.tableEditType,delete kl.index,Object.keys(kl).forEach(hl=>{hl==="证书附件"&&Array.isArray(kl[hl])&&(kl[hl]=JSON.stringify(kl[hl]))}),kl})}]})}catch(al){Qa.ElMessage.error(((Pl=(ml=al==null?void 0:al.response)==null?void 0:ml.data)==null?void 0:Pl.message)||(al==null?void 0:al.message)||"保存失败"),Ze.setTableLoading(!1);return}$o(!0),la.setImportLoading(!1),Ze.setFreshContent(!0)},ii=(d,h)=>(d=d==null?void 0:d.map(T=>{var z,R;return T!=null&&T.children&&((z=T.children)!=null&&z.find(B=>B.id===(h==null?void 0:h.id))?T.children=(R=T.children)==null?void 0:R.filter(B=>(B==null?void 0:B.id)!==(h==null?void 0:h.id)):T.children=ii(T.children,h)),T}),d),po=a.ref(!1),Qi=()=>{po.value=!0},et=async d=>{var T,z,R,B;po.value=!1;const h=Array.isArray(d)?d:d?[d]:[];if(h.length!==0)for(const ee of h){const ae={name:ee.name||`capture-${Date.now()}.jpg`,url:URL.createObjectURL(ee),raw:ee,uid:Date.now()+Math.random()};Ye.value.push(ae),Bl(ae,"uploading"),Ol(ae,0);try{const H=new FormData;H.append("file",ee,ae.name);const ge=await L.platformUploadFile(H);ae.uploadResult=((T=ge==null?void 0:ge.data)==null?void 0:T.result)||{name:ae.name,url:"",fileName:ae.name},Ne({name:((z=ae.uploadResult)==null?void 0:z.name)||ae.name,url:((R=ae.uploadResult)==null?void 0:R.url)||"",id:(B=ae.uploadResult)==null?void 0:B.id}),Bl(ae,"uploaded"),Ol(ae,100)}catch(H){console.error("文件上传失败:",H),Qa.ElMessage.error(`文件 ${ae.name} 上传失败,请重试`),Bl(ae,"pending"),Ol(ae,0);const ge=Ye.value.findIndex(xe=>xe.uid===ae.uid);ge>-1&&Ye.value.splice(ge,1)}}},t=a.reactive({title:"迁移至",show:!1,width:"20%",selectRow:null,from:u==null?void 0:u.index,to:null,contents:[],formRules:{groupName:[{required:!0,message:"输入不能为空",trigger:"blur"},{validator:(d,h,T)=>{h===(u==null?void 0:u.index)?T(new Error("选择源不能和目标源一致")):T()}}]},buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"确认",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]}),i=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:""}),f=()=>{i.show=!1},k=async d=>{var h,T,z,R,B,ee,ae,H;try{if(d==="cancel"&&(i.show=!1),d==="replace"&&((h=i==null?void 0:i.existRows)==null?void 0:h.length)>0){await L.pageBatchDeleteApi({platId:parseInt((T=Rl.value)==null?void 0:T.plat_id),changeContents:[{tableName:((z=u==null?void 0:u.related)==null?void 0:z.find(xe=>xe==null?void 0:xe.includes("content_")))||((R=u==null?void 0:u.related)==null?void 0:R.find(xe=>xe==null?void 0:xe.includes("content"))),tableContents:i==null?void 0:i.existRows}]});const ge=await L.pageBatchAddApi({platId:parseInt((B=Rl.value)==null?void 0:B.plat_id),changeContents:[{tableName:(ee=u==null?void 0:u.related)==null?void 0:ee.find(xe=>xe==null?void 0:xe.includes("content")),tableContents:(()=>{const xe=(Ee.value||[]).filter(oa=>!((i==null?void 0:i.existRows)||[]).some(Fa=>String(Fa==null?void 0:Fa.id)===String(oa==null?void 0:oa.id))),$e=(i==null?void 0:i.tableData)||[],Ie=[];let je=xe.slice();return $e.forEach(oa=>{const Fa={...oa};try{Fa.sort=Mn(0,je)}catch{}Ie.push(Fa),je.unshift(Fa)}),Ie.map((oa,Fa)=>({id:Fa,...oa}))})()}]});((ae=ge==null?void 0:ge.data)==null?void 0:ae.code)===200&&(await bt({buttonName:"新增",columns:Se.value,fixContent:(H=i==null?void 0:i.tableData)==null?void 0:H.map((xe,$e)=>({id:$e,...xe})),relatedContents:u==null?void 0:u.related}),Qa.ElMessage.success("数据导入替换成功"))}}catch{throw new Error(e)}finally{i.show=!1,i.columns=[],i.tableData=[],i.existRows=[]}},x=()=>{t.show=!1},I=d=>{var h,T;if((d==null?void 0:d.buttonName)==="取消")return t.show=!1;t.to=d==null?void 0:d.content,!(!(u!=null&&u.index)||!((h=t.to)!=null&&h.groupName))&&(u==null?void 0:u.index)!==((T=t.to)==null?void 0:T.groupName)&&(Te("change",{buttonName:"迁移",value:{from:t.from,to:t.to,data:t.selectRow}}),t.show=!1)},U=async d=>{var h,T,z,R;if(d){if(!Dr.validateFileSize(d.raw)){Qa.ElMessage.warning(`文件大小不能超过 ${Vr.value.maxSize}MB`);const B=Ye.value.findIndex(ee=>ee.uid===d.uid);B>-1&&Ye.value.splice(B,1),Y();return}if(!Dr.validateFileType(d.raw)){Qa.ElMessage.warning("请上传图片文件");const B=Ye.value.findIndex(ee=>ee.uid===d.uid);B>-1&&Ye.value.splice(B,1),Y();return}Bl(d,"uploading"),Ol(d,0);try{const B=new FormData;B.append("file",d.raw,d.name);const ee=await L.platformUploadFile(B);d.uploadResult=((h=ee==null?void 0:ee.data)==null?void 0:h.result)||{name:d.name,url:"",fileName:d.name},Ne({name:((T=d.uploadResult)==null?void 0:T.name)||d.name,url:((z=d.uploadResult)==null?void 0:z.url)||"",id:(R=d.uploadResult)==null?void 0:R.id}),Bl(d,"uploaded"),Ol(d,100)}catch(B){console.error("文件上传失败:",B),Qa.ElMessage.error(`文件 ${d.name} 上传失败,请重试`),Bl(d,"pending"),Ol(d,0);const ee=Ye.value.findIndex(ae=>ae.uid===d.uid);ee>-1&&Ye.value.splice(ee,1)}finally{Y()}}},Y=()=>{a.nextTick(()=>{const d=document.querySelector('.ocr-upload-input input[type="file"]');d&&(d.value="")})},ve=async()=>{var T,z;if(sessionStorage.setItem("ocr_root_table_id",String((u==null?void 0:u.index)??"")),Ye.value.length===0){Qa.ElMessage.warning("请先选择要上传的图片");return}if(Ye.value.filter(R=>{const B=ul(R);return B!=="uploaded"&&B!=="completed"&&B!=="failed"}).length>0){Qa.ElMessage.warning("请等待所有文件上传完成后再开始识别");return}ma.value=!0,W.value=0;let h=null;try{Ye.value.forEach(na=>{Bl(na,"processing")});const R=Math.floor(Math.random()*10)+90;h=setInterval(()=>{W.value<R?W.value+=1:clearInterval(h)},50);const B=Ye.value.map(na=>{var el,ta,Ua;return{name:((el=na.uploadResult)==null?void 0:el.name)||na.name,url:((ta=na.uploadResult)==null?void 0:ta.url)||"",fileName:((Ua=na.uploadResult)==null?void 0:Ua.fileName)||na.name}}),ee=Dr.extractTableHeaders(Se.value),ae=B.map(na=>({name:(na==null?void 0:na.fileName)||(na==null?void 0:na.name),url:(na==null?void 0:na.url)||""})),H=await Dr.recognize(ae,ee);if(console.log(H,"ocrResult"),clearInterval(h),h=null,(H==null?void 0:H.code)===500||(H==null?void 0:H.type)==="error"||!(H!=null&&H.result)){W.value=0,Ye.value.forEach(na=>{Bl(na,"failed"),Ol(na,0)}),Qa.ElMessage.error((H==null?void 0:H.message)||"OCR识别失败,请重试"),ma.value=!1;return}W.value=R;const ge=Array.isArray(H==null?void 0:H.result)?H.result:[];if(ge.length===0){W.value=0,Ye.value.forEach(na=>{Bl(na,"failed"),Ol(na,0)}),Qa.ElMessage.warning("OCR识别未返回有效数据"),ma.value=!1;return}const xe=new Set,$e=[];ge.forEach((na,el)=>{const ta=na!=null&&na.数据&&typeof(na==null?void 0:na.数据)=="object"?na.数据:{},Ua=Array.isArray(na==null?void 0:na.图片信息)?na.图片信息:[],te=new Map;Ua.forEach(ua=>{ua!=null&&ua.name&&te.set(ua.name,ua.url||"")});const Ta={_index:el,_certType:(na==null?void 0:na.证书类型)||"",_certNo:(na==null?void 0:na.证书编号)||"",_ocrImages:Ua,__ocrFieldMeta:{}};Object.entries(ta).forEach(([ua,Da])=>{let Aa="",A=0,K=[],Me="";Da&&typeof Da=="object"&&!Array.isArray(Da)?(Aa=(Da==null?void 0:Da.value)??"",A=(Da==null?void 0:Da.score)??0,K=Array.isArray(Da==null?void 0:Da.bboxNorm)?Da==null?void 0:Da.bboxNorm:[],Me=(Da==null?void 0:Da.imageName)||""):Array.isArray(Da)&&Da.length>=2?(Aa=Da[0]??"",A=Da[1]??0):(Aa=Da??"",A=0),Ta[ua]=Aa,Ta[`${ua}_accuracy`]=A,xe.add(ua),Ta.__ocrFieldMeta[ua]={value:Aa,score:A,bboxNorm:K,imageName:Me,imageUrl:Me&&te.get(Me)||"",images:Ua}}),$e.push(Ta)});const Ie=[],je=new Set;$e.forEach(na=>{na&&xe.forEach(el=>{const ta=na[`${el}_accuracy`];(typeof ta=="number"?ta>0:ta!=null&&String(ta).trim()!==""&&String(ta)!=="0")&&je.add(el)})}),xe.forEach(na=>{Ie.push({prop:na,label:na,editable:!0,minWidth:230}),je.has(na)&&Ie.push({prop:`${na}_accuracy`,label:"准确率",editable:!1,minWidth:100,isAccuracy:!0})}),Ye.value.forEach(na=>{Bl(na,"completed")}),W.value=100,Be.value=Ie,Ge.value=$e,bl.value=B,Wa.value=H;const oa=["出厂编号","设备名称","制造厂"],Fa=Ie.filter(na=>na&&!na.isAccuracy&&typeof na.prop=="string").map(na=>na.prop),za=["出厂编号","设备名称","制造厂"];Za.value=Fa.filter(na=>za.includes(na)),console.log("[OCR] 默认勾选字段 props:",Za.value),ye.value=2,ma.value=!1,aa.value=!1}catch(R){console.error("OCR处理失败:",R),h&&(clearInterval(h),h=null),Qa.ElMessage.error(((z=(T=R==null?void 0:R.response)==null?void 0:T.data)==null?void 0:z.message)||"OCR识别失败,请重试"),ma.value=!1,W.value=0,Ye.value.forEach(B=>{Bl(B,"pending"),Ol(B,0)})}},Oe=d=>{if(d==null)return"";let h=String(d);return h=h.replace(/\s+/g," ").trim(),h=h.replace(/[!-~]/g,T=>String.fromCharCode(T.charCodeAt(0)-65248)),h=h.replace(/ /g," "),h=h.replace(/^(编号|No\.?|NO\.?|no\.?|SN\.?|sn\.?|序列号)\s*[::]?\s*/i,""),h},ke=()=>{var na,el;const d=bl.value,h=Wa.value,T=Ge.value;if(!T||T.length===0){Qa.ElMessage.warning("暂无数据可添加");return}const z=(na=sa.getAllLeafNodes(Se.value)||[])==null?void 0:na.filter(ta=>(ta==null?void 0:ta.type)!=="operate"&&(ta==null?void 0:ta.label)!=="操作"&&(ta==null?void 0:ta.prop)!=="operate"),R=new Map,B=new Map,ee=(el=z==null?void 0:z.find(ta=>(ta==null?void 0:ta.label)==="证书附件"))==null?void 0:el.prop;z==null||z.forEach(ta=>{ta!=null&&ta.label&&(ta!=null&&ta.prop)&&(R.set(ta.label,ta.prop),B.set(ta.prop,ta.label))});const ae=Date.now(),H=ta=>String(ae*1e3+ta),ge=[],xe=[],$e=ta=>{const Ua=Si&&Si[ta]||[ta];for(const te of Ua){const Ta=R.get(te);if(Ta)return Ta}return""},Ie=$e("出厂编号"),je=$e("设备名称"),oa=$e("制造厂"),Fa=[],za=ta=>{var Aa,A;if(!ee)return[];const Ua=(Array.isArray(d)?d[ta]:null)||null,te=(Ua==null?void 0:Ua.url)||"",Ta=(Ua==null?void 0:Ua.fileName)||(Ua==null?void 0:Ua.name)||"";return(String(Ta).toLowerCase().endsWith(".pdf")||String(te).toLowerCase().endsWith(".pdf"))&&te?[{url:te,name:Ta,fileName:Ta}]:(Array.isArray((A=(Aa=h==null?void 0:h.result)==null?void 0:Aa[ta])==null?void 0:A.图片信息)?h.result[ta].图片信息:[]).map(K=>({url:(K==null?void 0:K.url)||"",name:(K==null?void 0:K.name)||"",fileName:(K==null?void 0:K.name)||""})).filter(K=>K.url)};if(T.forEach((ta,Ua)=>{var pl;const te={id:H(Ua),_isOCRRow:!0,_ocrTableId:u==null?void 0:u.index};for(const[ll,vl]of R.entries())Object.prototype.hasOwnProperty.call(ta,ll)&&(te[vl]=ta[ll]);ee&&(te[ee]=za(Ua));const Ta=(Array.isArray(h==null?void 0:h.result)?h.result[Ua]:null)||null,ua=(Array.isArray(d)?d[Ua]:null)||null,Da=(ua==null?void 0:ua.url)||"",Aa=(ua==null?void 0:ua.fileName)||(ua==null?void 0:ua.name)||"",A=String(Aa).toLowerCase().endsWith(".pdf")||String(Da).toLowerCase().endsWith(".pdf"),K={ts:Date.now(),versionId:String(Date.now())+"_"+String(Ua),label:new Date().toLocaleString(),certType:(Ta==null?void 0:Ta.证书类型)||"",certNo:(Ta==null?void 0:Ta.证书编号)||"",fileType:A?"pdf":"image",sourceUrl:A?Da:"",images:Array.isArray(Ta==null?void 0:Ta.图片信息)?Ta.图片信息.map(ll=>({name:(ll==null?void 0:ll.name)||"",url:(ll==null?void 0:ll.url)||""})).filter(ll=>ll.url):[]},Me=ll=>Oe(ll?te==null?void 0:te[ll]:""),ia=Me(Ie),we=Me(je),ca=Me(oa);if(!!(Ie&&je&&oa&&ia&&we&&ca)){const ll=(Ee.value||[]).find(vl=>{const ml=Oe(Ie?vl==null?void 0:vl[Ie]:""),Pl=Oe(je?vl==null?void 0:vl[je]:""),al=Oe(oa?vl==null?void 0:vl[oa]:"");return ml&&Pl&&al&&ml===ia&&Pl===we&&al===ca});if(ll){Fa.push({idx:Ua,ocrRow:te,versionItem:K,ocrNo:ia,candidates:[ll],selectedTargetId:String((ll==null?void 0:ll.id)??""),__decision:"replace",allowAdd:!1,allowReplace:!0});return}}if(ia&&Ie){const ll=(Ee.value||[]).filter(vl=>{const ml=Oe(Ie?vl==null?void 0:vl[Ie]:"");return ml&&ml===ia});if(ll.length>0){Fa.push({idx:Ua,ocrRow:te,versionItem:K,ocrNo:ia,candidates:ll,selectedTargetId:"",__decision:"",allowAdd:!0,allowReplace:!0});return}}try{if(te.sort===void 0||te.sort===null||String(te.sort).trim()===""){const ll=(Ee.value||[]).map(ml=>eo(ml==null?void 0:ml.sort)).filter(ml=>ml!==null),vl=ll.length>0?Math.max(...ll):((pl=Ee.value)==null?void 0:pl.length)??0;te.sort=String(Number((vl+1).toFixed(6)))}}catch{}Ya(u==null?void 0:u.index,te.id,K),Fa.push({idx:Ua,ocrRow:te,versionItem:K,ocrNo:ia,candidates:[],selectedTargetId:"",__decision:"add",allowAdd:!0,allowReplace:!1})}),(Fa||[]).length>0){lr.value=(Fa||[]).map(ta=>({...ta,selectedTargetId:(ta==null?void 0:ta.selectedTargetId)||""})),Fl.value=!0,mr.value=xe,Nl.value=ge,or.value=h,Nr.value=d,Ll.value=ee||"";return}},Qe=(d,h,T)=>{Ge.value[d]&&(Ge.value[d][h]=T)},La=d=>d==null||d===0?"-":`${(Number(d)*100).toFixed(1)}%`,tl=d=>{if(d==null||d===0)return"#909399";const h=Number(d);return h>=.9?"#67c23a":h>=.7?"#e6a23c":"#f56c6c"},rl=d=>{var T,z,R,B;if(Na.value===d){Na.value=null,Sa.value=!1,pe.value="";return}Na.value=d,pe.value="";const h=(T=Ge.value)==null?void 0:T[d];if(h&&Array.isArray(h._ocrImages)&&h._ocrImages.length>0){Sl.value=h._ocrImages.map(H=>({name:(H==null?void 0:H.name)||"",url:(H==null?void 0:H.url)||""})).filter(H=>H.name||H.url);const ee=h.__ocrFieldMeta||{},ae=(z=Object.values(ee))==null?void 0:z.find(H=>H==null?void 0:H.imageName);Vl.value=(ae==null?void 0:ae.imageName)||((B=(R=Sl.value)==null?void 0:R[0])==null?void 0:B.name)||"",Sa.value=Sl.value.length>0}else Sl.value=[],Sa.value=!1,Vl.value=""},cl=()=>{ha.value=!1,Ye.value=[],Xa.value=null,ye.value=1,Oa.value.clear(),Ue.value.clear(),W.value=0,Sa.value=!1},_l=d=>d.raw?URL.createObjectURL(d.raw):d.url?d.url:"",ul=d=>{const h=d.uid||d.name;return Oa.value.get(h)||"pending"},Tl=d=>{const h=d.uid||d.name;return Ue.value.get(h)||0},Ol=(d,h)=>{const T=d.uid||d.name;Ue.value.set(T,Math.min(100,Math.max(0,h)))},Yl=d=>{const h=ul(d),T=100.53;if(h==="completed"||h==="uploaded")return`${T} ${T}`;if(h==="failed")return`${T} ${T}`;if(h==="uploading"){const z=Tl(d);return`${T*(z/100)} ${T}`}else if(h==="processing")return`${T*.5} ${T}`;return`0 ${T}`},Bl=(d,h)=>{const T=d.uid||d.name;Oa.value.set(T,h),(h==="completed"||h==="uploaded")&&Ol(d,100)},Ul=()=>{a.nextTick(()=>{const d=document.querySelector('.ocr-upload-input input[type="file"]');if(d)d.value="",d.click();else{const h=document.createElement("input");h.type="file",h.multiple=!0,h.accept="image/*,application/pdf",h.style.display="none",h.onchange=async T=>{const z=Array.from(T.target.files||[]);for(const R of z){const B={name:R.name,raw:R,uid:Date.now()+Math.random()};Ye.value.push(B),await U(B)}T.target.value="",document.body.removeChild(h)},document.body.appendChild(h),h.click()}})},jr=()=>{ye.value>1&&ye.value--},wr=()=>{ye.value===1?Ye.value.length>0&&!ma.value&&ve():ye.value===2&&(ke(),ye.value=3)},Yr=async d=>{await pn(d==null?void 0:d.row)},on=async({row:d,prop:h})=>{!d||!h||await pn(d,h)},pn=async(d,h)=>{var R,B;const T=d==null?void 0:d.id;if(!T){Qa.ElMessage.warning("暂无可预览数据");return}let z=yl(u==null?void 0:u.index,T);if(!z||z.length===0){const ee=sessionStorage.getItem("ocr_root_table_id"),ae=ee!==null?Number(ee):null;if(ae!=null&&ae!==""&&!Number.isNaN(ae)){const H=yl(ae,T);Array.isArray(H)&&H.length>0&&(Gl(u==null?void 0:u.index,T,H),z=H)}}if(!z||z.length===0){const ee=(R=sa.getAllLeafNodes(Se.value)||[])==null?void 0:R.filter(H=>(H==null?void 0:H.type)!=="operate"&&(H==null?void 0:H.label)!=="操作"&&(H==null?void 0:H.prop)!=="operate"),ae=h||((B=ee==null?void 0:ee.find(H=>(H==null?void 0:H.label)==="证书附件"))==null?void 0:B.prop);if(ae&&d[ae]){const H=d[ae];let ge=[],xe="",$e=!1;if(typeof H=="string")try{const Ie=JSON.parse(H);Array.isArray(Ie)&&(ge=Ie.map(je=>({name:(je==null?void 0:je.name)||(je==null?void 0:je.fileName)||"",url:(je==null?void 0:je.url)||""})).filter(je=>je.url||je.name),ge.length>0&&(xe=ge[0].url||"",$e=String(ge[0].name).toLowerCase().endsWith(".pdf")||String(xe).toLowerCase().endsWith(".pdf")))}catch{xe=H,$e=String(H).toLowerCase().endsWith(".pdf"),ge=[{name:H,url:H}]}else Array.isArray(H)&&(ge=H.map(Ie=>({name:(Ie==null?void 0:Ie.name)||(Ie==null?void 0:Ie.fileName)||"",url:(Ie==null?void 0:Ie.url)||""})).filter(Ie=>Ie.url||Ie.name),ge.length>0&&(xe=ge[0].url||"",$e=String(ge[0].name).toLowerCase().endsWith(".pdf")||String(xe).toLowerCase().endsWith(".pdf")));if(ge.length>0||xe){const Ie={ts:Date.now(),versionId:String(Date.now()),label:new Date().toLocaleString(),certType:d.证书类型||"",certNo:d.证书编号||"",fileType:$e?"pdf":"image",sourceUrl:$e?xe:"",images:ge};z=[Ie],Ya(u==null?void 0:u.index,T,Ie)}}}if(!z||z.length===0){Qa.ElMessage.warning("暂无可预览数据");return}Ke.value=z,Ce.value=!0},fo=d=>{Ye.value=Ye.value.filter((h,T)=>T!==d)},In=async(d,h,T)=>{var z,R,B,ee,ae,H,ge,xe,$e,Ie,je,oa,Fa,za,na,el,ta,Ua,te,Ta,ua;if(Le(u.config,{type:ra.TABLE,tableOperate:d})){if(Va.value="",Pe.value=!0,Pa.value=!0,Te("onButtonClick",d,h),V.value=[],d==="删除")un.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var Da,Aa,A,K;(Da=Ee.value)!=null&&Da.find(Me=>(Me==null?void 0:Me.id)===(h==null?void 0:h.id))?Ee.value=(Aa=L.cloneDeep(Ee.value))==null?void 0:Aa.filter(Me=>(Me==null?void 0:Me.id)!==(h==null?void 0:h.id)):Ee.value=ii(L.cloneDeep(Ee.value),h);try{h!=null&&h.id&&((K=(A=va.value)==null?void 0:A.has)!=null&&K.call(A,h==null?void 0:h.id))&&va.value.delete(h.id)}catch{}df(Gr.value,vn.value,h==null?void 0:h.id),Ze.setTableLoading(u==null?void 0:u.index),Te("change",{content:Ee.value,fixContent:[h],index:u==null?void 0:u.index,type:"delete",name:u==null?void 0:u.groupNames,buttonName:d,columns:Se.value,relatedContents:u==null?void 0:u.related}),console.log(h,"item")});else if(d==="批量删除"){if(((z=rr.value)==null?void 0:z.length)===0)return Qa.ElMessage.warning("请先勾选操作的数据");un.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(async()=>{var A,K,Me,ia,we;const Da=(A=rr.value)==null?void 0:A.map(ca=>ca.id);Ee.value=(K=L.cloneDeep(Ee.value))==null?void 0:K.filter(ca=>!(Da!=null&&Da.includes(ca.id))),Ze.setTableLoading(u==null?void 0:u.index),Te("change",{content:Ee.value,fixContent:rr.value,index:u==null?void 0:u.index,type:"delete",name:u==null?void 0:u.compName,buttonName:d,relatedContents:u==null?void 0:u.related,columns:Se.value});const Aa=(Da||[]).filter(Boolean);if(Aa.length>0&&Aa.every(ca=>ca!=null&&ca!=="")){const ca=(rr.value||[]).map(Ma=>{const pl={...Ma};return delete pl._isOCRRow,delete pl._ocrTableId,delete pl._isTemp,delete pl.tableEditType,delete pl.index,pl});await L.pageBatchDeleteApi({platId:parseInt((Me=Rl.value)==null?void 0:Me.plat_id),changeContents:[{tableName:((ia=u==null?void 0:u.related)==null?void 0:ia.find(Ma=>Ma==null?void 0:Ma.includes("content_")))||((we=u==null?void 0:u.related)==null?void 0:we.find(Ma=>Ma==null?void 0:Ma.includes("content"))),tableContents:ca}]})}})}else if(d==="复制新增"){Ae.value="复制新增",L.cloneDeep(h);const Da=(R=Se.value)==null?void 0:R.find(Aa=>Aa==null?void 0:Aa.isMainKey);Da||((B=Se.value)==null||B[0]),ir.value=h,$o(!0)}else if(d==="新增")Ae.value="新增",Oo(""),Xe.value=!0;else if(d==="编辑")Ae.value="编辑",Oo(h),Xe.value=!0;else if(d==="查看")Ae.value="查看",Oo(h),Pe.value=!1,Pa.value=!1,Xe.value=!0;else if(d==="查看三维模型"){const Da={};for(let A in h)A!=="id"&&(Da[A]=h[A]);let Aa=(ee=Object.values(Da))==null?void 0:ee[1];Re.setTableShowThree(Aa)}else if(d==="切换视图")tu();else if(((ae=T==null?void 0:T.extra)==null?void 0:ae.type)==="modelExample")Ae.value=d,de.value=!0;else if(d==="新建"){let Da=ie.value,Aa=[];for(let we in Da)we!=null&&we.includes(`loading${((H=Rl.value)==null?void 0:H.account)||((ge=Rl.value)==null?void 0:ge.账号)}`)&&(Aa=[...Aa,...we]);let A=[];for(let we in Da)we!=null&&we.includes(`updateLoading${((xe=Rl.value)==null?void 0:xe.account)||(($e=Rl.value)==null?void 0:$e.账号)}`)&&(A=[...A,...we]);let K=Aa==null?void 0:Aa.map(we=>we==null?void 0:we.id);const Me=A==null?void 0:A.map(we=>we==null?void 0:we.id);K=[...L.cloneDeep(K),...Me],(K==null?void 0:K.length)>0&&(K!=null&&K.every(we=>we!==null&&we))&&await _r.batchDeleteInsofDataApi({ids:K});const ia=(Ie=fa.value)==null?void 0:Ie.find(we=>(we==null?void 0:we.label)==="新建");await Zc(!1,ia)}else if(d==="修改模板"){let Da=L.cloneDeep(wa).value;Ze.setRouteToChildPath(Da),la.setActiveMenuPath(Da+m)}else if(d==="执行")Zi(d,h);else if(d==="导出paraform"){const Da=Vo.ElLoading.service({lock:!0,text:"正在导出paraform...",background:"rgba(0, 0, 0, 0.7)"});try{const Aa=["推力","真空","压力","温度","流量"],A=wl=>{var Ml,Wl,zl;return wl?typeof(wl==null?void 0:wl.value)=="string"?wl.value:((zl=(Wl=(Ml=wl==null?void 0:wl._custom)==null?void 0:Ml.value)==null?void 0:Wl.value)==null?void 0:zl.value)||"":""},K=Array.isArray(fr.value)?fr.value:[],Me=A(K.find(wl=>(wl==null?void 0:wl.condition)==="child")),ia=String(Me||"").slice(0,8),we=wl=>{if(wl==null)return"";const Ml=String(wl).trim();if(!Ml)return"";if(/^\d{8}$/.test(Ml))return Ml;const Wl=Ml.match(/^(\d{4})[-\/.](\d{1,2})[-\/.](\d{1,2})$/);if(Wl){const vr=Wl[1],yr=Wl[2].padStart(2,"0"),Jl=Wl[3].padStart(2,"0");return`${vr}${yr}${Jl}`}const zl=Ml.replace(/\D/g,"");return zl.length>=8?zl.slice(0,8):""},ca=async wl=>{var Ml,Wl;if(!wl)return"";try{const zl=await Wr("试验任务/任务管理",!1),vr=(dr,nr=[])=>{if(!Array.isArray(dr))return nr;for(const tr of dr)(tr==null?void 0:tr.comp)==="Table"&&(tr!=null&&tr.name)&&nr.push(tr),Array.isArray(tr==null?void 0:tr.children)&&vr(tr.children,nr),Array.isArray(tr==null?void 0:tr.tab)&&vr(tr.tab,nr),Array.isArray(tr==null?void 0:tr.choice)&&vr(tr.choice,nr);return nr},Jl=vr(zl||[]).find(dr=>(dr==null?void 0:dr.name)==="任务列表"),ur=((Wl=(Ml=Jl==null?void 0:Jl.compData)==null?void 0:Ml.find(dr=>(dr==null?void 0:dr.key)==="tableContents"))==null?void 0:Wl.contents)||[];if(!Array.isArray(ur)||ur.length===0)return"";const Ur=ur.find(dr=>String((dr==null?void 0:dr["试验代号(名称)"])||"").slice(0,8)===wl);return we(Ur==null?void 0:Ur.计划试验时间)}catch(zl){return console.warn("获取任务列表计划试验时间失败:",zl),""}},Ma=(wa.value||"").replace(/\/+$/,""),pl=Me?`${Ma}/${Me}`:Ma,ll=await Wr(pl||wa.value,!1),vl=String(ga.value||"").trim(),ml=wl=>String(wl||"").trim(),Pl=(wl,Ml=[],Wl="")=>{if(!Array.isArray(wl))return Ml;for(const zl of wl){const vr=ml((zl==null?void 0:zl.choiceName)||(zl==null?void 0:zl.name0)||Wl);(zl==null?void 0:zl.comp)==="Table"&&(zl==null?void 0:zl.name)&&Aa.includes(zl.name)&&(!vl||vr===vl)&&Ml.push(zl),Array.isArray(zl==null?void 0:zl.children)&&Pl(zl.children,Ml,vr),Array.isArray(zl==null?void 0:zl.tab)&&Pl(zl.tab,Ml,vr),Array.isArray(zl==null?void 0:zl.choice)&&Pl(zl.choice,Ml,vr)}return Ml},al=Pl(ll||[]),kl=new Map;for(const wl of al)wl!=null&&wl.name&&!kl.has(wl.name)&&kl.set(wl.name,wl);const Ka=Aa.map(wl=>kl.get(wl)).filter(Boolean);if(!Ka||Ka.length===0)return Qa.ElMessage.warning("未找到需要导出的表(推力、真空、压力、温度、流量)");const fl=wl=>{const Ml=new Map,Wl=(zl,vr=[])=>{if(Array.isArray(zl))for(const yr of zl){const Jl=((yr==null?void 0:yr.label)??"").toString().trim(),ur=Jl?[...vr,Jl]:[...vr];if(Array.isArray(yr==null?void 0:yr.children)&&yr.children.length>0)Wl(yr.children,ur);else{const dr=((yr==null?void 0:yr.prop)??"").toString();if(!dr)continue;const nr=Jl||dr,tr=(ur.length>0?[...vr,nr]:[nr]).join(".");Ml.set(dr,tr)}}};return Wl(wl,[]),Ml},nl=(wl,Ml)=>{const Wl=fl(wl||[]),vr=(sa.getAllLeafNodes(wl||[])||[]).filter(Jl=>(Jl==null?void 0:Jl.prop)&&(Jl==null?void 0:Jl.type)!=="operate"&&(Jl==null?void 0:Jl.label)!=="操作"&&(Jl==null?void 0:Jl.prop)!=="operate"),yr=Array.isArray(Ml)?Ml:[];return yr.length===0?[]:yr.map(Jl=>{const ur={};return vr.forEach(Ur=>{const dr=String(Ur.prop),nr=Wl.get(dr)||String(Ur.label||Ur.prop);ur[nr]=(Jl==null?void 0:Jl[dr])??""}),ur})},hl=Ka.map(wl=>{var yr,Jl;const Ml=(wl==null?void 0:wl.compData)||[];let Wl=(yr=Ml==null?void 0:Ml.find(ur=>(ur==null?void 0:ur.key)==="header"))==null?void 0:yr.contents;Array.isArray(Wl==null?void 0:Wl[0])&&(Wl=Wl[0]);const zl=((Jl=Ml==null?void 0:Ml.find(ur=>(ur==null?void 0:ur.key)==="tableContents"))==null?void 0:Jl.contents)||[];if(!Array.isArray(Wl)||Wl.length===0||!Array.isArray(zl)||zl.length===0)return null;const vr=nl(Wl||[],zl||[]);return!Array.isArray(vr)||vr.length===0?null:{类型:wl==null?void 0:wl.name,数据:vr}}).filter(Boolean);if(!hl||hl.length===0)return Qa.ElMessage.warning("没有可导出的数据(推力、真空、压力、温度、流量均为空)");const Cl=await ca(ia),Al={试验代号:ia,试验日期:Cl,ParaForm:hl},kr=await uo().catch(()=>""),$l=await L.exportParaformApi(Al,kr);if(((je=$l==null?void 0:$l.data)==null?void 0:je.code)===200&&((Fa=(oa=$l==null?void 0:$l.data)==null?void 0:oa.result)!=null&&Fa.Excel文件)){const wl=$l.data.result.Excel文件,Ml=await L.platformDownloadFile({url:wl}),Wl=new Blob([Ml.data],{type:"application/vnd.ms-excel"}),zl=URL.createObjectURL(Wl),vr=Rn.dayjs().format("YYYYMMDD"),Jl=`${(ia||"UNKNOWN").trim()||"UNKNOWN"}_${vr}_paraform.xls`,ur=document.createElement("a");ur.href=zl,ur.download=Jl,ur.style.display="none",document.body.appendChild(ur),ur.click(),setTimeout(()=>{document.body.removeChild(ur),URL.revokeObjectURL(zl)},100);const Ur=Array.isArray((na=(za=$l==null?void 0:$l.data)==null?void 0:za.result)==null?void 0:na.warnings)?$l.data.result.warnings:[];if(Ur.length>0){const dr=Ur.map((nr,tr)=>`${tr+1}. ${(nr==null?void 0:nr.field)||"未知字段"}:${(nr==null?void 0:nr.message)||""}`).join(`
24
+ `);Qa.ElMessage.warning({message:`导出成功,但存在以下提示:
25
+ ${dr}`,duration:5e3,showClose:!0})}else Qa.ElMessage.success("导出成功")}else Qa.ElMessage.error(((el=$l==null?void 0:$l.data)==null?void 0:el.message)||"导出失败")}catch(Aa){console.error("导出paraform失败:",Aa),Qa.ElMessage.error("导出失败:"+((Aa==null?void 0:Aa.message)||"未知错误"))}finally{Da.close()}}else if(d!=null&&d.includes("导出")&&d!=="导出paraform"){if(d==="导出选中"&&((ta=rr.value)==null?void 0:ta.length)===0)return Qa.ElMessage.warning(`请先勾选${d}的数据`);if(d==="导出全部"&&((Ua=Ee.value)==null?void 0:Ua.length)===0)return Qa.ElMessage.warning("暂无数据导出");let Da=["序号",...(Ta=(te=Se.value)==null?void 0:te.map(Me=>Me==null?void 0:Me.prop))==null?void 0:Ta.filter(Me=>Me!=="操作")],Aa=d==="导出全部"?Ee.value:rr.value;const A=["id","sort","tableEditType","create_time","update_time","source_table","create_user_id","update_user_id","department_id","relatedId"];Aa=Aa==null?void 0:Aa.map(Me=>Object.fromEntries(Object.entries(Me).filter(([ia])=>!A.includes(ia)))),Da=["序号",...Da],Aa=Aa==null?void 0:Aa.map((Me,ia)=>({序号:ia+1,...Me}));let K=(u==null?void 0:u.compName)||"表格信息";$i(Aa,K,Da,K)}else if(d==="OCR识别")ha.value=!0,Ye.value=[],ye.value=1,Oa.value.clear(),Ue.value.clear(),W.value=0;else if(d==="迁移")t.selectRow=h,t.show=!0;else if(d==="生成方法"){let Da=await Tf(h),Aa;h!==""?Aa=[h]:Aa=L.cloneDeep(Ee.value),Aa=Aa==null?void 0:Aa.map(K=>(K.输出值=Da,K));const A={fixContent:Aa,buttonName:"编辑",relatedContents:u==null?void 0:u.related,columns:Se.value,name:u==null?void 0:u.groupNames};Te("change",A)}else if(((ua=T==null?void 0:T.extra)==null?void 0:ua.type)==="methodButton"){let Da;h!==""?Da=[h]:Da=L.cloneDeep(Ee.value);const A={fixContent:await ft(Da,Se==null?void 0:Se.value,"Manual",Ee.value),buttonName:"methodButton",relatedContents:u==null?void 0:u.related,columns:Se.value,name:u==null?void 0:u.groupNames};Te("change",A)}}},Jc=async(d,h)=>{var T,z,R,B,ee,ae,H,ge,xe,$e,Ie,je,oa,Fa,za,na,el,ta,Ua,te;try{let Ta,ua;const Da=(T=ie.value[wa.value+m])==null?void 0:T.filter(Ma=>{var pl;return((pl=Ma==null?void 0:Ma.key)==null?void 0:pl.type)==="structureMethod"}),Aa=(z=ie.value[wa.value+m])==null?void 0:z.filter(Ma=>{var pl;return((pl=Ma==null?void 0:Ma.key)==null?void 0:pl.type)==="structure"}),A=Da==null?void 0:Da.find(Ma=>{var pl,ll;return((ll=(pl=Ma==null?void 0:Ma.value)==null?void 0:pl.pageData)==null?void 0:ll.method)==="保存"});if(!A)return;const K=(ae=(ee=ie.value[(B=(R=A==null?void 0:A.value)==null?void 0:R.pageData)==null?void 0:B.path])==null?void 0:ee.filter(Ma=>{var pl;return((pl=Ma==null?void 0:Ma.key)==null?void 0:pl.type)==="data"}))==null?void 0:ae.find(Ma=>{var pl,ll,vl,ml;return((ll=(pl=Ma==null?void 0:Ma.value)==null?void 0:pl.tableData)==null?void 0:ll.算法名称)===((ml=(vl=A==null?void 0:A.value)==null?void 0:vl.pageData)==null?void 0:ml.method)});if(!K)return;const Me={buttonName:(ge=(H=A==null?void 0:A.value)==null?void 0:H.pageData)==null?void 0:ge.method,api:($e=(xe=K==null?void 0:K.value)==null?void 0:xe.tableData)==null?void 0:$e.算法体,content:Aa==null?void 0:Aa.map(Ma=>{var pl;return(pl=Ma==null?void 0:Ma.value)==null?void 0:pl.pageData}),extraContent:[],extraValues:(je=(Ie=A==null?void 0:A.value)==null?void 0:Ie.pageData)==null?void 0:je.data,methodName:(Fa=(oa=A==null?void 0:A.value)==null?void 0:oa.pageData)==null?void 0:Fa.path};if(!d)return;const ia={...d,compData:(za=d==null?void 0:d.compData)==null?void 0:za.map(Ma=>{var pl;return(Ma==null?void 0:Ma.key)==="formContent"?{...Ma,contents:(pl=Ma==null?void 0:Ma.contents)==null?void 0:pl.map(ll=>(ll==null?void 0:ll.prop)===h?{...ll,value:""}:ll)}:Ma})},we={key:{pageKey:wa.value+m,parentTable:"",systemKey:sessionStorage.getItem("systemKey"),type:"structure"},value:{pageData:ia}},ca=await Qa.axios.post(Me.api,we,{headers:{"Content-Type":"application/json"}});return((na=ca==null?void 0:ca.data)==null?void 0:na.code)===200&&(Ta=(ta=(el=ca==null?void 0:ca.data)==null?void 0:el.result)==null?void 0:ta.latestReportCode,ua=(te=(Ua=ca==null?void 0:ca.data)==null?void 0:Ua.result)==null?void 0:te.status),{newMainKeyValue:Ta,newStatus:ua}}catch(Ta){throw Qa.ElMessage.error(Ta),new Error(Ta)}},Nt=a.reactive({prop:"状态",value:""});a.ref(["系统自动生成信息","审批意见"]);const Xc=async(d,h,T)=>{var H,ge;let z=d==null?void 0:d[h==null?void 0:h.prop],R=1,B,ee;const ae=L.cloneDeep(wa).value+m+z;if(ae){Nt.value="",B=(H=ie.value[ae])==null?void 0:H.filter(Ie=>{var je;return((je=Ie==null?void 0:Ie.key)==null?void 0:je.type)==="structure"});const xe=B==null?void 0:B.find(Ie=>{var je,oa,Fa;return((Fa=(oa=(je=Ie==null?void 0:Ie.value)==null?void 0:je.pageData)==null?void 0:oa.comp)==null?void 0:Fa.toUpperCase())==="FORM"});ee={...(ge=xe==null?void 0:xe.value)==null?void 0:ge.pageData,id:xe==null?void 0:xe.id};const $e=await Jc(ee,h==null?void 0:h.prop);if(Nt.value=$e==null?void 0:$e.newStatus,$e!=null&&$e.newMainKeyValue)return $e==null?void 0:$e.newMainKeyValue}if(Ee.value.some(xe=>(xe==null?void 0:xe[h==null?void 0:h.prop])===z)){const xe=z;for(;Ee.value.some($e=>($e==null?void 0:$e[h==null?void 0:h.prop])===`${xe}(${R})`);)R++;z=`${xe}(${R})`}return z},Zc=async(d,h,T)=>{var B,ee,ae,H;let z,R;if(await Xc(T==null?void 0:T.data,T==null?void 0:T.firstCol),z=L.cloneDeep(wa).value+m,R=L.cloneDeep(z)+`loading${((B=Rl.value)==null?void 0:B.account)||((ee=Rl.value)==null?void 0:ee.账号)}`,h){const ge=(H=(ae=ie.value[R])==null?void 0:ae.filter(xe=>{var $e;return(($e=xe==null?void 0:xe.key)==null?void 0:$e.parentTable)===""}))==null?void 0:H.map(xe=>{var $e;return{id:xe==null?void 0:xe.id,...($e=xe==null?void 0:xe.value)==null?void 0:$e.pageData}});(ge==null?void 0:ge.length)>0||await sa.loadingConstruct(z,R,null,null,null),Ze.setRouteToChildPath(L.cloneDeep(wa).value),la.setActiveMenuPath(R)}else Ze.setRouteToChildPath(L.cloneDeep(wa).value),la.setActiveMenuPath(R)},Qc=()=>{He.value=!1,ba.value=[],Ca.value=!1},Oo=d=>{var B,ee,ae,H,ge,xe,$e,Ie,je,oa,Fa,za,na,el,ta,Ua,te,Ta,ua,Da,Aa;const h=[];ce.value=L.cloneDeep(Se.value),(ee=sa.getColumnChild((B=L.cloneDeep(Se.value))==null?void 0:B.filter(A=>(A==null?void 0:A.label)!=="操作")))==null||ee.forEach((A,K)=>{var Me,ia,we;A!=null&&A.formType&&((Me=A==null?void 0:A.formType)==null?void 0:Me.toUpperCase())==="SELECT"||A!=null&&A.menuId?h.push({label:(ia=A==null?void 0:A.prop)!=null&&ia.includes(".")?A==null?void 0:A.prop:(A==null?void 0:A.label)??(A==null?void 0:A.prop)??"",name:(A==null?void 0:A.prop)??"t"+K,prop:A==null?void 0:A.prop,type:"Select",value:(d==null?void 0:d[A==null?void 0:A.prop])??(A==null?void 0:A.value)??"",id:(A==null?void 0:A.id)??K,contents:(A==null?void 0:A.options)??[],width:1,isFormColHidden:A==null?void 0:A.isFormColHidden,relatedValueId:A==null?void 0:A.relatedValueId,disabled:A==null?void 0:A.disabled,menus:A==null?void 0:A.menus,groups:A==null?void 0:A.groups,words:A==null?void 0:A.words,allSelectionContents:(A==null?void 0:A.allSelectionContents)??[],filterContent:A==null?void 0:A.filterContent,disabled:(A==null?void 0:A.prop)==="disabled"?!0:A==null?void 0:A.disabled,filter:A==null?void 0:A.filter,bindMenus:A==null?void 0:A.bindMenus,isMainPath:A==null?void 0:A.isMainPath,required:(A==null?void 0:A.required)??!1,relatedContents:A==null?void 0:A.relatedContents,mainKey:A==null?void 0:A.mainKey,relatedContents:A==null?void 0:A.relatedContents,functionName:A==null?void 0:A.functionName,functionRelatedWords:A==null?void 0:A.functionRelatedWords,calculatorFilter:A==null?void 0:A.calculatorFilter}):h.push({label:(we=A==null?void 0:A.prop)!=null&&we.includes(".")?A==null?void 0:A.prop:(A==null?void 0:A.label)??(A==null?void 0:A.prop)??"",prop:A==null?void 0:A.prop,name:(A==null?void 0:A.prop)??"t"+K,type:!(A!=null&&A.formType)||(A==null?void 0:A.formType)===""?"Input":A==null?void 0:A.formType,value:(A==null?void 0:A.formType)==="Upload"?(d==null?void 0:d[A==null?void 0:A.prop])??"{}":(d==null?void 0:d[A==null?void 0:A.prop])??(A==null?void 0:A.value)??"",id:(A==null?void 0:A.id)??K,contents:(A==null?void 0:A.options)??[],width:1,isFormColHidden:A==null?void 0:A.isFormColHidden,disabled:(A==null?void 0:A.prop)==="disabled"?!0:A==null?void 0:A.disabled,relatedValueId:A==null?void 0:A.relatedValueId,menus:A==null?void 0:A.menus,groups:A==null?void 0:A.groups,words:A==null?void 0:A.words,filter:A==null?void 0:A.filter,bindMenus:A==null?void 0:A.bindMenus,isMainPath:A==null?void 0:A.isMainPath,required:(A==null?void 0:A.required)??!1,relatedContents:A==null?void 0:A.relatedContents,mainKey:A==null?void 0:A.mainKey,relatedContents:A==null?void 0:A.relatedContents,functionName:A==null?void 0:A.functionName,functionRelatedWords:A==null?void 0:A.functionRelatedWords,calculatorFilter:A==null?void 0:A.calculatorFilter})}),d===""||!d||(Va.value=(d==null?void 0:d.id)??"");let T=sa.getColumnChild((ae=L.cloneDeep(Se.value))==null?void 0:ae.filter(A=>(A==null?void 0:A.label)!=="操作"));ea.value&&((H=ea.value)==null?void 0:H.length)>0&&(ea.value=(ge=L.cloneDeep(ea).value)==null?void 0:ge.map(A=>{var Me;let K=(A==null?void 0:A.prop)||((Me=T==null?void 0:T.find(ia=>(ia==null?void 0:ia.label)===(A==null?void 0:A.label)))==null?void 0:Me.prop);return K&&(A.value=d[K]),A})),Ha.value=ea.value&&((xe=ea.value)==null?void 0:xe.length)>0?sa.getTableFormToForm(ea.value):h,Ha.value=(($e=Ha.value)==null?void 0:$e.map(A=>({...A,disabled:(A==null?void 0:A.prop)==="disabled"?!0:A==null?void 0:A.disabled})))??Ha.value;let z=[],R=((oa=(je=(Ie=u.itemData)==null?void 0:Ie.filter(A=>(A==null?void 0:A.key)==="filter"))==null?void 0:je[0])==null?void 0:oa.contents)??"";if(R=ja.analyzeSplitToContent(R,","),(R==null?void 0:R.length)>0&&(z=R.flat()),(z==null?void 0:z.length)>0){let A=z==null?void 0:z.filter(ca=>ca==null?void 0:ca.includes("@Type"));if(A=A==null?void 0:A[(A==null?void 0:A.length)-1],(A==null?void 0:A[(A==null?void 0:A.length)-1])===","&&(A=A==null?void 0:A.slice(0,(A==null?void 0:A.length)-1)),A){let ca=(za=(Fa=A==null?void 0:A.replace("=",w))==null?void 0:Fa.split(w))==null?void 0:za[1];((na=ca==null?void 0:ca.trim())==null?void 0:na.toUpperCase())==="MANUAL"&&(u==null||u.index,Ha.value=(el=Ha.value)==null?void 0:el.map((Ma,pl)=>Ma))}let K=(ta=Ha.value)==null?void 0:ta.filter(ca=>ca==null?void 0:ca.mainKey),Me;K==null||K.forEach(ca=>{var pl;if(Me!==void 0)return;let Ma=ca==null?void 0:ca.menus;((pl=K==null?void 0:K.filter(ll=>ll==null?void 0:ll.mainKey))==null?void 0:pl.length)>1&&(Me=Ma,ca==null||ca.groups)});let ia=[],we=new Map;if(K==null||K.forEach(ca=>{var Ma,pl,ll,vl,ml,Pl,al,kl,Ka,fl,nl,hl,Cl;if((Ma=ca==null?void 0:ca.prop)!=null&&Ma.includes(".")){let Al=[];we.get(((ll=(pl=ca==null?void 0:ca.prop)==null?void 0:pl.split("."))==null?void 0:ll[0])+(ca!=null&&ca.isMainPath?0:1)+((vl=ca==null?void 0:ca.groups)==null?void 0:vl[0]))&&(Al=we.get(((Pl=(ml=ca==null?void 0:ca.prop)==null?void 0:ml.split("."))==null?void 0:Pl[0])+(ca!=null&&ca.isMainPath?0:1)+((al=ca==null?void 0:ca.groups)==null?void 0:al[0]))),Al.push(ca),we.set(((Ka=(kl=ca==null?void 0:ca.prop)==null?void 0:kl.split("."))==null?void 0:Ka[0])+(ca!=null&&ca.isMainPath?0:1)+((fl=ca==null?void 0:ca.groups)==null?void 0:fl[0]),Al)}else{let Al=[];we.get("normal"+(ca!=null&&ca.isMainPath?0:1)+((nl=ca==null?void 0:ca.groups)==null?void 0:nl[0]))&&(Al=we.get("normal"+(ca!=null&&ca.isMainPath?0:1)+((hl=ca==null?void 0:ca.groups)==null?void 0:hl[0]))),Al.push(ca),we.set("normal"+(ca!=null&&ca.isMainPath?0:1)+((Cl=ca==null?void 0:ca.groups)==null?void 0:Cl[0]),Al)}}),ia=Array.from(we.values()),(ia==null?void 0:ia.length)>0)for(let ca in ia){let Ma=ia==null?void 0:ia[ca];if((Ma==null?void 0:Ma.length)!==1){if((Ma==null?void 0:Ma.length)>1){let pl=Ma==null?void 0:Ma.map(fl=>fl==null?void 0:fl.prop),ll=Ma==null?void 0:Ma.map(fl=>fl==null?void 0:fl.label),vl=Ma==null?void 0:Ma.map(fl=>fl==null?void 0:fl.value),ml=(Ua=L.cloneDeep(Ma))==null?void 0:Ua[0],Pl=(te=Ha.value)==null?void 0:te.findIndex(fl=>(fl==null?void 0:fl.prop)===(ml==null?void 0:ml.prop)),al=(Ta=Ha.value)==null?void 0:Ta.slice(0,Pl),kl=(Da=Ha.value)==null?void 0:Da.slice(Pl,(ua=Ha.value)==null?void 0:ua.length);ml.label=ll==null?void 0:ll.join("·"),ml.value=vl==null?void 0:vl.join(" "),ml.value.trim()===""&&(ml.value=""),ml.prop=pl==null?void 0:pl.join("·");let Ka=Ma==null?void 0:Ma.map(fl=>{var nl;return(nl=fl==null?void 0:fl.words)==null?void 0:nl.join(".")});ml.relatedWords=Ka,ml.usingType="parent",kl.unshift(ml),Ha.value=[...al,...kl],Ha.value=(Aa=Ha.value)==null?void 0:Aa.map(fl=>(pl!=null&&pl.find(nl=>nl===(fl==null?void 0:fl.prop))&&(fl.isFormColHidden=!0,fl.relatedWords=Ka),fl))}}}}},eu=()=>{var h;const d=(h=s.value)==null?void 0:h.$el;d&&ja.Sortable.create(d,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:T=>{var ee;const{oldIndex:z,newIndex:R}=T;if(z===R)return;const B=En.value.splice(z,1)[0];En.value.splice(R,0,B),Se.value=(ee=Se.value)==null?void 0:ee.slice().sort((ae,H)=>{if(ae.label==="操作")return 1;if(H.label==="操作")return-1;const ge=En.value.findIndex($e=>$e.label===ae.label),xe=En.value.findIndex($e=>$e.label===H.label);return ge-xe})}})};a.onMounted(()=>{We.value=window.innerWidth-240*2,window.addEventListener("keydown",Yo)});const au=()=>{a.nextTick(()=>{eu()})},at=(d,h)=>{var z;if(!d&&!(d!=null&&d.children))return{contents:d,currentSelectContents:void 0};let T;return d.children=(z=d.children)==null?void 0:z.map(R=>{var B,ee;if((R==null?void 0:R.id)===Va.value){let ae={};for(let H in R){let ge=(B=h==null?void 0:h.find(xe=>(xe==null?void 0:xe.prop)===H))==null?void 0:B.label;ge?ae[H]=(ee=ir.value)==null?void 0:ee[ge]:ae[H]=R[H]??""}R=Object.assign(ae,ir.value),T=R}else{let ae=at(R,h);R=ae==null?void 0:ae.contents,T=ae==null?void 0:ae.currentSelectContents}return R}),{contents:d,currentSelectContents:T}},Tt=(d,h)=>{let T,z;return d!=null&&d.find(R=>(R==null?void 0:R.id)===Va.value)?T=d==null?void 0:d.map(R=>{var B,ee,ae;if((R==null?void 0:R.id)===Va.value){let H={};for(let xe in R){let $e=(B=h==null?void 0:h.find(Ie=>(Ie==null?void 0:Ie.prop)===xe))==null?void 0:B.label;$e?H[xe]=((ee=ir.value)==null?void 0:ee[$e])??"":H[xe]=R[xe]??""}let ge=ir.value;for(let xe in H)(ae=ir.value)!=null&&ae[xe]||(ge[xe]=(H==null?void 0:H[xe])??"");R=ge,z=R}return R}):T=d==null?void 0:d.map(R=>{var B,ee,ae,H;if((R==null?void 0:R.id)===Va.value){let ge={};for(let xe in R){let $e=(B=h==null?void 0:h.find(Ie=>(Ie==null?void 0:Ie.prop)===xe))==null?void 0:B.label;$e?ge[xe]=(ee=ir.value)==null?void 0:ee[$e]:ge[xe]=R[xe]??""}R=Object.assign(ge,ir.value),z=R}else R=(ae=at(R,h))==null?void 0:ae.contents,z=(H=at(R,h))==null?void 0:H.currentSelectContents;return R}),{newContents:T,currentSelectContents:z}},At=(d,h,T)=>{var z,R;return d[h==null?void 0:h.prop]=T,typeof d.id=="number"&&(d.id=(z=d.id)==null?void 0:z.toString()),d.children&&((R=d.children)==null?void 0:R.length)>0&&(d.children=d.children.map(At)),d},zt=d=>{var T;const h=[];return h.push({...d}),d!=null&&d.children&&Array.isArray(d.children)&&((T=d.children)==null||T.forEach(z=>{h.push(...zt(z))})),(h==null?void 0:h.length)>0?h==null?void 0:h.map(z=>{const R={...z};return delete R.children,R}):[]},ti=["Pacific6000数据采集装置.通道号","通道号"],Lo=d=>{if(!d)return"";const h=ti.map(T=>d==null?void 0:d[T]).find(T=>T!=null&&String(T).trim()!=="");return h==null?"":String(h).trim()},lt=async(d,h=void 0)=>{if(!d)return!1;try{const T=je=>{var oa,Fa,za;return je?typeof(je==null?void 0:je.value)=="string"?je.value:((za=(Fa=(oa=je==null?void 0:je._custom)==null?void 0:oa.value)==null?void 0:Fa.value)==null?void 0:za.value)||"":""},z=Array.isArray(fr.value)?fr.value:[],R=T(z.find(je=>(je==null?void 0:je.condition)==="child")),B=(wa.value||"").replace(/\/+$/,""),ee=R?`${B}/${R}`:B,ae=await Wr(ee||wa.value,!1),H=String(ga.value||"").trim(),ge=je=>String(je||"").trim(),xe=(je,oa=[],Fa="")=>{if(!Array.isArray(je))return oa;for(const za of je){const na=ge((za==null?void 0:za.choiceName)||(za==null?void 0:za.name0)||Fa);(za==null?void 0:za.comp)==="Table"&&(!H||na===H)&&oa.push(za),Array.isArray(za==null?void 0:za.children)&&xe(za.children,oa,na),Array.isArray(za==null?void 0:za.tab)&&xe(za.tab,oa,na),Array.isArray(za==null?void 0:za.choice)&&xe(za.choice,oa,na)}return oa},$e=xe(ae||[]),Ie=String((u==null?void 0:u.compName)||"");return $e.some(je=>{var Fa,za;const oa=((za=(Fa=je==null?void 0:je.compData)==null?void 0:Fa.find(na=>(na==null?void 0:na.key)==="tableContents"))==null?void 0:za.contents)||[];return!Array.isArray(oa)||oa.length===0?!1:oa.some(na=>{if(String((je==null?void 0:je.name)||"")===Ie&&(na==null?void 0:na.id)===h)return!1;const ta=Lo(na);return!!ta&&ta===d})})}catch{return(Ee.value||[]).some(z=>{if((z==null?void 0:z.id)===h)return!1;const R=Lo(z);return!!R&&R===d})}},$o=async(d=!0,h,T)=>{var ge,xe,$e,Ie,je,oa,Fa,za,na,el,ta,Ua,te,Ta,ua,Da,Aa,A,K,Me,ia,we,ca,Ma,pl,ll,vl,ml,Pl,al,kl;if(ir.value){const Ka=(xe=sa.getColumnChild((ge=L.cloneDeep(Se.value))==null?void 0:ge.filter(nl=>(nl==null?void 0:nl.label)!=="操作")))==null?void 0:xe.filter(nl=>(nl==null?void 0:nl.required)===!0);for(let nl=0;nl<((Ka==null?void 0:Ka.length)??0);nl++){const hl=Ka[nl],Cl=hl==null?void 0:hl.prop,Al=(hl==null?void 0:hl.label)??Cl,kr=($e=ir.value)==null?void 0:$e[Cl];if(kr===""||kr===null||kr===void 0||Array.isArray(kr)&&kr.length===0){Qa.ElMessage.error(`${Al}不能为空`);return}}const fl=Lo(ir.value);if(fl&&await lt(fl,Va.value||void 0)){Qa.ElMessage.warning("当前任务下通道号不能重复,请重新选择");return}}let z=sa.getColumnChild((Ie=L.cloneDeep(Se.value))==null?void 0:Ie.filter(Ka=>(Ka==null?void 0:Ka.label)!=="操作")),R,B=L.cloneDeep(Ee.value);if(!ir.value){Xe.value=!1;return}if(Va.value===""){me.value++;let Ka;Ka={id:me.value.toString()};try{Ka.sort=Mn(0,Ee.value||[])}catch{}Ka!=null&&Ka.children&&(Ka={...Ka,children:(je=Ka.children)==null?void 0:je.map(nl=>At(nl,h,T))});const fl=Object.assign(ir.value,Ka);B.unshift(fl),R=fl}else B=(oa=Tt(B,z))==null?void 0:oa.newContents,R=(Fa=Tt(B,z))==null?void 0:Fa.currentSelectContents;const ee=(za=u.itemData)==null?void 0:za.filter(Ka=>(Ka==null?void 0:Ka.key)==="childTree")[0];if(((na=ee==null?void 0:ee.contents)==null?void 0:na.length)>0){Ae.value="编辑";const Ka=[];B==null||B.forEach((hl,Cl)=>{var kr;let Al={};if(Array.isArray(hl)){let $l=[];hl==null||hl.filter(wl=>!(wl!=null&&wl.id)).forEach((wl,Ml)=>{var Wl,zl,vr,yr,Jl,ur,Ur;if((zl=(Wl=Or.value)==null?void 0:Wl[Ml])!=null&&zl.prop&&!Array.isArray(wl)){let dr={};dr[Or.value[Ml].column]=wl,qa!=null&&qa.value&&((vr=qa==null?void 0:qa.value)==null?void 0:vr.length)>0&&((yr=qa==null?void 0:qa.value)!=null&&yr.find(nr=>JSON.stringify(nr==null?void 0:nr[0])===JSON.stringify(dr)))&&($l=(Jl=qa==null?void 0:qa.value)==null?void 0:Jl.find(nr=>JSON.stringify(nr==null?void 0:nr[0])===JSON.stringify(dr))),$l&&$l.length>0?Al[Or.value[Ml].prop]=$l!=null&&$l.find(nr=>{var tr;return((tr=Object.keys(nr))==null?void 0:tr[0])===Or.value[Ml].column})?(ur=$l==null?void 0:$l.find(nr=>{var tr;return((tr=Object.keys(nr))==null?void 0:tr[0])===Or.value[Ml].column}))==null?void 0:ur[Or.value[Ml].column]:wl:Al[Or.value[Ml].prop]=wl}else Array.isArray(wl)&&((Ur=Or.value[Ml])!=null&&Ur.prop?Al[Or.value[Ml].prop]=wl:Al.children=ht(wl,Or.value))})}else Al=hl;if(Array.isArray(hl)&&hl.some($l=>$l==null?void 0:$l.id)){const $l=(kr=hl==null?void 0:hl.find(wl=>wl.id))==null?void 0:kr.id;Ka.push(Object.assign(Al,{id:li($l)}))}else Al.id?Ka.push(Al):Ka.push(Object.assign(Al,{id:Cl.toString()}))});const fl=(Ee.value||[]).map(hl=>String(hl==null?void 0:hl.id)),nl=ri(Ka,fl);Ee.value=Lt(nl,ee,Se.value)}It(Ee.value),Gr.value=Ee.value;const ae=ff(Gr.value,vn.value,B);let H=[];if(F.value?(H=(el=L.cloneDeep(F).value.singleContent)==null?void 0:el.filter(Ka=>(Ka==null?void 0:Ka.id)!==(R==null?void 0:R.id)),H.push(R)):H=[R],Il.value){const Ka={content:ae,singleContent:((ta=ee==null?void 0:ee.contents)==null?void 0:ta.length)>0?H==null?void 0:H.flatMap(zt):H,index:u==null?void 0:u.index,buttonName:"编辑",column:Se.value,parentTableId:u==null?void 0:u.parentTableId};Ze.setCacheUpdatingData(Ka)}if((Ua=Se.value)==null||Ua.forEach(Ka=>{(Ka==null?void 0:Ka.formType)==="Upload"&&(R[Ka.prop]=R[Ka.prop]===""?"{}":typeof R[Ka.prop]!="string"?JSON.stringify(R[Ka.prop]):R[Ka.prop])}),d){(Da=(ua=(Ta=(te=u.itemData)==null?void 0:te.find(nl=>(nl==null?void 0:nl.key)==="filterAllType"))==null?void 0:Ta.value)==null?void 0:ua.find(nl=>(nl==null?void 0:nl.value)==="onConditionContents"))==null||Da.content;let Ka=(Aa=u.itemData)==null?void 0:Aa.filter(nl=>(nl==null?void 0:nl.key)==="filterAllType");Ka=Array.from(new Map(Ka.filter(Boolean).map((nl,hl)=>[nl.value,{...nl,_idx:hl}])).values()).sort((nl,hl)=>nl._idx-hl._idx).map(({_idx:nl,...hl})=>hl),Ka=(A=Ka==null?void 0:Ka[(Ka==null?void 0:Ka.length)-1])==null?void 0:A.value;const fl={fixContent:[R],buttonName:Ae.value,relatedContents:u==null?void 0:u.related,columns:Se.value,name:u==null?void 0:u.groupNames};Ze.setTableLoading(u==null?void 0:u.index),Xe.value=!1,ir.value=void 0,Te("change",fl)}if((ia=(Me=(K=Ha.value)==null?void 0:K[0])==null?void 0:Me.optionUrl)!=null&&ia.menuId){Xe.value=!1;let Ka=(we=u.itemData)==null?void 0:we.filter(fl=>(fl==null?void 0:fl.key)==="filterAllType");if((Ka==null?void 0:Ka.length)>0){let fl=Ka==null?void 0:Ka.map(Cl=>Cl==null?void 0:Cl.value),nl=(pl=(Ma=(ca=fl.flat().find(Cl=>{var Al;return(Al=Cl==null?void 0:Cl.content)==null?void 0:Al.includes("@Num")}))==null?void 0:ca.content)==null?void 0:Ma.split(":"))==null?void 0:pl[1];((ml=(vl=(ll=fl.flat().find(Cl=>{var Al;return(Al=Cl==null?void 0:Cl.content)==null?void 0:Al.includes("@Type:")}))==null?void 0:ll.content)==null?void 0:vl.split(":"))==null?void 0:ml[1])!=="Manual"&&(nl=parseInt(nl),Ee.value=(kl=Ee.value)==null?void 0:kl.slice(((Pl=Ee.value)==null?void 0:Pl.length)-nl,(al=Ee.value)==null?void 0:al.length))}}};a.onUnmounted(()=>{window.removeEventListener("keydown",Yo),Se.value=[],Ee.value=[],ce.value=[],_a.value=[],ea.value=[],ka.value=[],ba.value=[],xa.value=[],Ha.value=[],rr.value=[],s.value=null,Tn.value=""});const si=async(d,h,T)=>{var je,oa,Fa,za,na,el,ta,Ua,te,Ta,ua,Da,Aa;jl.value=(T==null?void 0:T.prop)??(T==null?void 0:T.property);const z=L.cloneDeep(u.itemData),R=((je=z==null?void 0:z.find(A=>(A==null?void 0:A.key)==="header"))==null?void 0:je.contents)??[];let B=R==null?void 0:R.find((A,K)=>{var Me,ia,we;return(A==null?void 0:A.prop)===jl.value||(A==null?void 0:A.label)===jl.value||(K==null?void 0:K.toString())===((we=(ia=(Me=jl.value)==null?void 0:Me.split("a"))==null?void 0:ia[1])==null?void 0:we.toString())});const ee=sa.getColumnChild((oa=L.cloneDeep(Se.value))==null?void 0:oa.filter(A=>(A==null?void 0:A.label)!=="操作"));if(B||(B=ee==null?void 0:ee.find(A=>(A==null?void 0:A.prop)===jl.value||(A==null?void 0:A.label)===jl.value)),B&&!((Fa=B==null?void 0:B.menus)!=null&&Fa.length)&&!((za=B==null?void 0:B.groups)!=null&&za.length)&&!((na=B==null?void 0:B.words)!=null&&na.length)){const A=(el=Ha.value)==null?void 0:el.find(K=>(K==null?void 0:K.prop)===jl.value);A&&(B={...B,menus:(A==null?void 0:A.menus)??(B==null?void 0:B.menus),groups:(A==null?void 0:A.groups)??(B==null?void 0:B.groups),words:(A==null?void 0:A.words)??(B==null?void 0:B.words),bindMenus:(A==null?void 0:A.bindMenus)??(B==null?void 0:B.bindMenus),isMainPath:(A==null?void 0:A.isMainPath)??(B==null?void 0:B.isMainPath),relatedContents:(A==null?void 0:A.relatedContents)??(B==null?void 0:B.relatedContents),endChildMenu:(A==null?void 0:A.endChildMenu)??(B==null?void 0:B.endChildMenu)})}if(B&&((ta=Ha==null?void 0:Ha.value)==null||ta.forEach(A=>{var K,Me,ia,we,ca;(A==null?void 0:A.prop)===(B==null?void 0:B.prop)&&(A!=null&&A.endChildMenu)&&((K=B==null?void 0:B.prop)!=null&&K.includes(".")&&((ia=(Me=B==null?void 0:B.prop)==null?void 0:Me.split("."))==null?void 0:ia[0])!==((ca=(we=A==null?void 0:A.prop)==null?void 0:we.split("."))==null?void 0:ca[0])?B.endChildMenu=A==null?void 0:A.value:B.endChildMenu=A==null?void 0:A.endChildMenu)})),!B)return;const ae=jl.value,H=(Ua=Ee.value)==null?void 0:Ua.findIndex(A=>(A==null?void 0:A.id)===(h==null?void 0:h.id));H!==-1&&ae&&(Ee.value[H]={...Ee.value[H],[ae]:d});const ge=A=>{Array.isArray(A)&&A.forEach(K=>{Array.isArray(K==null?void 0:K.allSelectionContents)&&K.allSelectionContents.length>0&&(K.contactValue=Ee.value[H]??h),Array.isArray(K==null?void 0:K.children)&&K.children.length>0&&ge(K.children)})};ge(Se.value),B.value=d,B.endChildMenu=B.endChildMenu||"";let xe=B!=null&&B.isMainPath&&(B!=null&&B.mainKey)?B==null?void 0:B.value:"";const $e=A=>{Array.isArray(A)&&A.forEach(K=>{var ia,we;if(((K==null?void 0:K.type)==="Select"||(K==null?void 0:K.formType)&&K.formType.toUpperCase()==="SELECT"||(K==null?void 0:K.columnType)&&K.columnType.toUpperCase()==="SELECT")&&Array.isArray(K==null?void 0:K.menus)&&K.menus.length>0&&K.menus[K.menus.length-1]===""&&(B!=null&&B.isMainPath)&&(B!=null&&B.mainKey)){const ca=(ia=K==null?void 0:K.prop)!=null&&ia.includes(".")?K.prop.split(".")[0]:null,Ma=(we=B==null?void 0:B.prop)!=null&&we.includes(".")?B.prop.split(".")[0]:null;(!ca||!Ma||ca===Ma)&&(K.endChildMenu=xe)}Array.isArray(K==null?void 0:K.children)&&K.children.length>0&&$e(K.children)})};if($e(Se.value),!!(B!=null&&B.mainKey)&&Array.isArray(B==null?void 0:B.menus)&&(B==null?void 0:B.menus.length)>0&&(B!=null&&B.value)&&(B==null?void 0:B.value)!==""){let A=B!=null&&B.relatedContents&&((te=B==null?void 0:B.relatedContents)==null?void 0:te.length)>0?(Ta=B==null?void 0:B.relatedContents)==null?void 0:Ta.find(K=>{var Me,ia,we,ca;return(K==null?void 0:K[(ca=(Me=B==null?void 0:B.prop)==null?void 0:Me.split("."))==null?void 0:ca[((we=(ia=B==null?void 0:B.prop)==null?void 0:ia.split("."))==null?void 0:we.length)-1]])===(B==null?void 0:B.value)}):await is(B);if(A){const K={...h};ee==null||ee.forEach(Me=>{var ia,we,ca,Ma,pl,ll,vl,ml,Pl,al,kl,Ka,fl,nl,hl,Cl;(Me==null?void 0:Me.prop)!==(B==null?void 0:B.prop)&&(B!=null&&B.relatedContents&&((ia=B==null?void 0:B.relatedContents)==null?void 0:ia.length)>0?(we=Me==null?void 0:Me.prop)!=null&&we.includes(".")&&((Ma=(ca=Me==null?void 0:Me.prop)==null?void 0:ca.split("."))==null?void 0:Ma[0])===((ll=(pl=B==null?void 0:B.prop)==null?void 0:pl.split("."))==null?void 0:ll[0])?K[Me.prop]=A[(al=(vl=Me==null?void 0:Me.prop)==null?void 0:vl.split("."))==null?void 0:al[((Pl=(ml=Me==null?void 0:Me.prop)==null?void 0:ml.split("."))==null?void 0:Pl.length)-1]]??K[Me.prop]:K[Me.prop]=(A==null?void 0:A[Me.prop])??K[Me.prop]:ja.same((B==null?void 0:B.menus)??[],(Me==null?void 0:Me.menus)??[])&&ja.same((B==null?void 0:B.groups)??[],(Me==null?void 0:Me.groups)??[])&&!ja.same((B==null?void 0:B.words)??[],(Me==null?void 0:Me.words)??[])?(kl=Me==null?void 0:Me.prop)!=null&&kl.includes(".")&&((fl=(Ka=Me==null?void 0:Me.prop)==null?void 0:Ka.split("."))==null?void 0:fl[0])!==((hl=(nl=B==null?void 0:B.prop)==null?void 0:nl.split("."))==null?void 0:hl[0])||(K[Me.prop]=(A==null?void 0:A[(Cl=Me==null?void 0:Me.words)==null?void 0:Cl.join(".")])??(A==null?void 0:A[Me.prop])??K[Me.prop]):(!(Me!=null&&Me.isMainPath)&&ja.same((B==null?void 0:B.bindMenus)??[],(Me==null?void 0:Me.bindMenus)??[]),K[Me.prop]=(A==null?void 0:A[Me.prop])??K[Me.prop]))}),Ee.value=(ua=L.cloneDeep(Ee.value))==null?void 0:ua.map(Me=>(Me==null?void 0:Me.id)===(h==null?void 0:h.id)?{...K,id:Me==null?void 0:Me.id}:Me)}}if((Da=B==null?void 0:B.optionUrl)!=null&&Da.menuSelect){let A="";ee==null||ee.forEach(ia=>{var we,ca,Ma,pl,ll;A===""&&((Ma=(ca=(we=ia==null?void 0:ia.optionUrl)==null?void 0:we.groupSelect)==null?void 0:ca[1])!=null&&Ma.includes("["))&&(A=(ll=(pl=ia==null?void 0:ia.optionUrl)==null?void 0:pl.groupSelect)==null?void 0:ll[1])});let K=await vt(B),Me;if(K==null||K.forEach(ia=>{var we,ca,Ma,pl,ll,vl,ml,Pl,al,kl;A===((ca=(we=B==null?void 0:B.optionUrl)==null?void 0:we.groupSelect)==null?void 0:ca[1])&&((ll=(pl=(Ma=B==null?void 0:B.optionUrl)==null?void 0:Ma.groupSelect)==null?void 0:pl[1])!=null&&ll.includes("["))&&((kl=L.cloneDeep(ia))==null?void 0:kl[(al=(Pl=(ml=(vl=B==null?void 0:B.optionUrl)==null?void 0:vl.groupSelect)==null?void 0:ml[1])==null?void 0:Pl.replaceAll("[",""))==null?void 0:al.replaceAll("]","")])===(B==null?void 0:B.value)&&(Me=ia)}),Me){const ia={...h};ee==null||ee.forEach(we=>{var ca,Ma,pl,ll,vl,ml,Pl,al,kl,Ka,fl;(Me!=null&&Me[we==null?void 0:we.label]||Me!=null&&Me[(ll=(pl=(Ma=(ca=we==null?void 0:we.optionUrl)==null?void 0:ca.groupSelect)==null?void 0:Ma[1])==null?void 0:pl.replaceAll("[",""))==null?void 0:ll.replaceAll("]","")])&&((Pl=(ml=(vl=we==null?void 0:we.optionUrl)==null?void 0:vl.groupSelect)==null?void 0:ml[1])!=null&&Pl.includes("["))&&(ia[we.prop]=(Me==null?void 0:Me[we==null?void 0:we.label])||(Me==null?void 0:Me[(fl=(Ka=(kl=(al=we==null?void 0:we.optionUrl)==null?void 0:al.groupSelect)==null?void 0:kl[1])==null?void 0:Ka.replaceAll("[",""))==null?void 0:fl.replaceAll("]","")]))}),Ee.value=(Aa=L.cloneDeep(Ee.value))==null?void 0:Aa.map(we=>(we==null?void 0:we.id)===(h==null?void 0:h.id)?{...ia,id:we==null?void 0:we.id}:we)}}},lu=async d=>{var je,oa,Fa,za,na,el,ta,Ua,te,Ta,ua,Da,Aa,A;if(!d)return;const h=L.cloneDeep(ir.value||{});ir.value=d;const T=Lo(h),z=Lo(ir.value);if(z&&z!==T&&await lt(z,Va.value||void 0)){Qa.ElMessage.warning("当前任务下通道号不能重复,请重新选择"),ti.forEach(Me=>{if(Object.prototype.hasOwnProperty.call(ir.value||{},Me)||Object.prototype.hasOwnProperty.call(h||{},Me)){const ia=(h==null?void 0:h[Me])??"";ir.value[Me]=ia,d[Me]=ia}}),Ha.value=(Ha.value||[]).map(Me=>{if(!(Me!=null&&Me.prop)||!ti.includes(Me.prop))return Me;const ia=(h==null?void 0:h[Me.prop])??"";return{...Me,value:ia,selectValue:ia===""?[]:[ia]}});return}let R=L.cloneDeep(u.itemData);R==null||R.map(K=>{var Me,ia,we,ca;return(K==null?void 0:K.key)==="header"&&(Array.isArray((Me=K.contents)==null?void 0:Me[0])?K.contents=(we=sa.getColumnChild((ia=K.contents)==null?void 0:ia[0]))==null?void 0:we.map((Ma,pl)=>{var ll,vl,ml,Pl,al,kl;return((ml=(vl=(ll=Ha.value)==null?void 0:ll.find(Ka=>(Ka==null?void 0:Ka.prop)===(Ma==null?void 0:Ma.prop)))==null?void 0:vl.optionUrl)==null?void 0:ml.multiple)===!0&&!Array.isArray((Pl=Object.values(d))==null?void 0:Pl[pl])?Ma.value=[(al=Object.values(d))==null?void 0:al[pl]]:Ma.value=(kl=Object.values(d))==null?void 0:kl[pl],Ma}):K.contents=(ca=K.contents)==null?void 0:ca.map((Ma,pl)=>{var ll,vl,ml,Pl,al,kl;return((ml=(vl=(ll=Ha.value)==null?void 0:ll.find(Ka=>(Ka==null?void 0:Ka.prop)===(Ma==null?void 0:Ma.prop)))==null?void 0:vl.optionUrl)==null?void 0:ml.multiple)===!0&&!Array.isArray((Pl=Object.values(d))==null?void 0:Pl[pl])?Ma.value=[(al=Object.values(d))==null?void 0:al[pl]]:Ma.value=(kl=Object.values(d))==null?void 0:kl[pl],Ma})),K});let B=Ha.value,ee=(je=R==null?void 0:R.find(K=>(K==null?void 0:K.key)==="header"))==null?void 0:je.contents;if(jl.value||(B=B==null?void 0:B.map(K=>{var Me;return K.value=K.value??((Me=ee==null?void 0:ee.find((ia,we)=>(ia==null?void 0:ia.prop)===(K==null?void 0:K.name)))==null?void 0:Me.value),K})),!Rr.value)return;let ae=L.cloneDeep(jl.value);(oa=jl.value)!=null&&oa.includes("·")&&(jl.value=(za=(Fa=jl.value)==null?void 0:Fa.split("·"))==null?void 0:za[0]);let H=(el=(na=R==null?void 0:R.find(K=>(K==null?void 0:K.key)==="header"))==null?void 0:na.contents)==null?void 0:el.find((K,Me)=>(K==null?void 0:K.prop)===jl.value);(ta=Ha==null?void 0:Ha.value)==null||ta.forEach(K=>{var Me,ia,we,ca,Ma,pl,ll,vl,ml;(K==null?void 0:K.prop)===(H==null?void 0:H.prop)&&(K!=null&&K.endChildMenu)&&((Me=H==null?void 0:H.prop)!=null&&Me.includes(".")&&((we=(ia=H==null?void 0:H.prop)==null?void 0:ia.split("."))==null?void 0:we[0])!==((Ma=(ca=K==null?void 0:K.prop)==null?void 0:ca.split("."))==null?void 0:Ma[0])?H.endChildMenu=(ll=(pl=K==null?void 0:K.value)==null?void 0:pl.split(" "))==null?void 0:ll[0]:H.endChildMenu=(ml=(vl=K==null?void 0:K.endChildMenu)==null?void 0:vl.split(" "))==null?void 0:ml[0])});let ge=H!=null&&H.isMainPath&&(H!=null&&H.mainKey)?H==null?void 0:H.value:"",xe=B,$e=fe.value;if($e!=null&&$e.find(K=>(H==null?void 0:H.prop)===(K==null?void 0:K.key))&&($e=$e==null?void 0:$e.filter(K=>(H==null?void 0:H.prop)!==(K==null?void 0:K.key))),$e!=null&&$e.find(K=>ae===(K==null?void 0:K.key))&&($e=$e==null?void 0:$e.filter(K=>ae!==(K==null?void 0:K.key))),(H==null?void 0:H.formType)==="Select"&&(xe=xe==null?void 0:xe.map(K=>{var Me,ia,we,ca,Ma,pl,ll,vl,ml,Pl,al,kl,Ka,fl,nl,hl;return(K==null?void 0:K.type)==="Select"&&(((Me=K==null?void 0:K.allSelectionContents)==null?void 0:Me.length)>0&&(K.contactValue=d),((H==null?void 0:H.prop)===(K==null?void 0:K.prop)||ae===(K==null?void 0:K.prop))&&H&&(Array.isArray(H.value)&&((ia=H.value)==null?void 0:ia.length)>0&&((we=H.value)!=null&&we.every(Cl=>typeof Cl=="string"))?($e.push({key:K==null?void 0:K.prop,value:[(Ma=H.value)==null?void 0:Ma[((ca=H.value)==null?void 0:ca.length)-1]]}),K.selectValue=(pl=$e==null?void 0:$e.find(Cl=>(Cl==null?void 0:Cl.key)===(K==null?void 0:K.prop)))==null?void 0:pl.value):Array.isArray(H.value)&&((ll=H.value)==null?void 0:ll.length)===0?($e=[],K.selectValue=[],d[K==null?void 0:K.prop]=""):Array.isArray(K.value)&&$e.push({key:K==null?void 0:K.prop,value:[(vl=K.value)==null?void 0:vl[(K==null?void 0:K.length)-1]]})),((Pl=K==null?void 0:K.menus)==null?void 0:Pl[((ml=K==null?void 0:K.menus)==null?void 0:ml.length)-1])===""&&(H!=null&&H.isMainPath)&&(H!=null&&H.mainKey)&&((al=K==null?void 0:K.prop)!=null&&al.includes(".")&&((Ka=(kl=K==null?void 0:K.prop)==null?void 0:kl.split("."))==null?void 0:Ka[0])!==((nl=(fl=H==null?void 0:H.prop)==null?void 0:fl.split("."))==null?void 0:nl[0])||(K.endChildMenu=(hl=ge==null?void 0:ge.split(" "))==null?void 0:hl[0]))),K.value=(d==null?void 0:d[K==null?void 0:K.prop])??(K==null?void 0:K.value),K})),fe.value=$e,xe!=null&&xe.some(K=>(K==null?void 0:K.functionName)&&(K==null?void 0:K.functionName)!=="")){let K=await ft([d],Se==null?void 0:Se.value,"Auto",Ee.value),Me=[];(Ua=xe==null?void 0:xe.filter(we=>(we==null?void 0:we.functionName)&&(we==null?void 0:we.functionName)!==""))==null||Ua.forEach(we=>{var ca;((ca=we==null?void 0:we.functionRelatedWords)==null?void 0:ca.length)>0&&(Me=[...Me,...we==null?void 0:we.functionRelatedWords])}),Me=Me==null?void 0:Me.filter(we=>(we==null?void 0:we[0])!=="@");let ia=[];for(let we in K==null?void 0:K[0])Me!=null&&Me.find(ca=>we===ca||(we==null?void 0:we.includes("."+ca)))&&ia.push(((te=K==null?void 0:K[0])==null?void 0:te[we])!=="");(K==null?void 0:K.length)>0&&ia.every(we=>we)&&(xe=xe==null?void 0:xe.map(we=>{var ca;return we.value=((ca=K==null?void 0:K[0])==null?void 0:ca[we==null?void 0:we.prop])??we.value,we})),ir.value=K==null?void 0:K[0]}if(Ha.value=xe,H=Object.assign({},H??{},{relatedWords:(ua=(Ta=Ha==null?void 0:Ha.value)==null?void 0:Ta.find(K=>(K==null?void 0:K.prop)===(H==null?void 0:H.prop)))==null?void 0:ua.relatedWords}),(H==null?void 0:H.mainKey)&&(H!=null&&H.value)&&(H==null?void 0:H.value)!==""){let K=H!=null&&H.relatedContents&&((Da=H==null?void 0:H.relatedContents)==null?void 0:Da.length)>0?(Aa=H==null?void 0:H.relatedContents)==null?void 0:Aa.find(Me=>{var ia,we,ca,Ma;return(Me==null?void 0:Me[(Ma=(ia=H==null?void 0:H.prop)==null?void 0:ia.split("."))==null?void 0:Ma[((ca=(we=H==null?void 0:H.prop)==null?void 0:we.split("."))==null?void 0:ca.length)-1]])===(H==null?void 0:H.value)}):await is(H);if(K&&JSON.stringify(K)!=="{}"){let Me=xe;Me=Me==null?void 0:Me.map(we=>{var ca,Ma,pl,ll,vl,ml,Pl,al,kl,Ka,fl,nl,hl,Cl,Al,kr,$l,wl,Ml,Wl,zl;return(H==null?void 0:H.prop)===(we==null?void 0:we.prop)?we.value=(K==null?void 0:K[(ca=we==null?void 0:we.words)==null?void 0:ca.join(".")])??(K==null?void 0:K[we==null?void 0:we.prop])??K[(vl=(Ma=we==null?void 0:we.prop)==null?void 0:Ma.split("."))==null?void 0:vl[((ll=(pl=we==null?void 0:we.prop)==null?void 0:pl.split("."))==null?void 0:ll.length)-1]]:H!=null&&H.relatedContents&&((ml=H==null?void 0:H.relatedContents)==null?void 0:ml.length)>0?we.value=(Pl=we==null?void 0:we.prop)!=null&&Pl.includes(".")&&((kl=(al=we==null?void 0:we.prop)==null?void 0:al.split("."))==null?void 0:kl[0])===((fl=(Ka=H==null?void 0:H.prop)==null?void 0:Ka.split("."))==null?void 0:fl[0])?K[(Al=(nl=we==null?void 0:we.prop)==null?void 0:nl.split("."))==null?void 0:Al[((Cl=(hl=we==null?void 0:we.prop)==null?void 0:hl.split("."))==null?void 0:Cl.length)-1]]:(K==null?void 0:K[we==null?void 0:we.prop])??(we==null?void 0:we.value):ja.same((H==null?void 0:H.menus)??[],(we==null?void 0:we.menus)??[])&&ja.same((H==null?void 0:H.groups)??[],(we==null?void 0:we.groups)??[])&&!ja.same((H==null?void 0:H.words)??[],(we==null?void 0:we.words)??[])?(kr=we==null?void 0:we.prop)!=null&&kr.includes(".")&&((wl=($l=we==null?void 0:we.prop)==null?void 0:$l.split("."))==null?void 0:wl[0])!==((Wl=(Ml=H==null?void 0:H.prop)==null?void 0:Ml.split("."))==null?void 0:Wl[0])||(we.value=(K==null?void 0:K[(zl=we==null?void 0:we.words)==null?void 0:zl.join(".")])??(K==null?void 0:K[we==null?void 0:we.prop])??we.value):(!(we!=null&&we.isMainPath)&&ja.same((H==null?void 0:H.bindMenus)??[],(we==null?void 0:we.bindMenus)??[]),we.value=(K==null?void 0:K[we==null?void 0:we.prop])??we.value),we}),Ha.value=Me;let ia={};(A=Ha.value)==null||A.forEach(we=>{ia[we.prop]=we==null?void 0:we.value}),ir.value=ia}}Rr.value=!0,q.value=!1},ru=d=>d?(d==null?void 0:d.toUpperCase())==="INPUT"?"TEXTAREA":d:"TEXTAREA",nu=d=>{var B,ee;const h=(ee=(B=ea.value)==null?void 0:B.find(ae=>(ae==null?void 0:ae.label)===(d==null?void 0:d.label)))==null?void 0:ee.multiple,T=d==null?void 0:d.prop;if((d==null?void 0:d.formType)!="Select")return;Ee.value.forEach(ae=>{const H=ae==null?void 0:ae[T];h&&_i.isString(H)&&(ae[T]=[H]),!h&&!_i.isString(H)&&(ae[T]="")})},Mt=(d,h)=>{var T;return h==null||h.forEach(z=>{d[z==null?void 0:z.prop]=z==null?void 0:z.value}),d.children&&((T=d.children)==null?void 0:T.length)>0&&(d.children=d.children.map(z=>Mt(z,h))),d},rt=d=>{var T,z,R,B,ee,ae;Oo("");const h=(T=Ha.value)==null?void 0:T.reduce((H,ge)=>(H[ge.name]=ge.value,H),{});if(((z=Object.keys(h))==null?void 0:z.length)>0){ir.value=h,Va.value="",me.value=(R=Ee.value)==null?void 0:R.length,xa.value=(B=fa.value)==null?void 0:B.filter(ge=>(ge==null?void 0:ge.label)!=="新增");const H=(ae=(ee=ce.value)==null?void 0:ee.filter(ge=>(ge==null?void 0:ge.label)!=="操作"))==null?void 0:ae.map(ge=>{var $e,Ie,je;const xe=(Ie=($e=ea.value)==null?void 0:$e.find(oa=>(oa==null?void 0:oa.label)===(ge==null?void 0:ge.label)))==null?void 0:Ie.multiple;return nu(ge),{...ge,contents:(ge==null?void 0:ge.options)??[],optionUrl:ge!=null&&ge.formMenuSelect&&((je=ge==null?void 0:ge.formMenuSelect)==null?void 0:je.length)>0?{groupSelect:ge==null?void 0:ge.groupSelect,menuSelect:ge==null?void 0:ge.formMenuSelect,selectRelateType:"",type:ge==null?void 0:ge.formType,multiple:xe}:null}});Se.value=H==null?void 0:H.map(ge=>Mt(ge,[{prop:"type",value:"edit"},{prop:"columnType",value:ru(ge==null?void 0:ge.formType)||(ge==null?void 0:ge.columnType)}])),d==="createClick"&&(Ae.value="新增",$o(!0))}},ho={START:"开始时间",END:"结束时间",HOURS:"工时"},ou=(d,h)=>Number(Rn.dayjs(h).diff(Rn.dayjs(d),"day",!0).toFixed(1)),It=d=>{var B;const h=u.itemData,T=(B=h==null?void 0:h.find(ee=>(ee==null?void 0:ee.key)==="header"))==null?void 0:B.contents,z=new Map;return T==null||T.forEach((ee,ae)=>{const{label:H}=ee;z.set(H,ae)}),!z.has(ho.START)||!z.has(ho.END)||!z.has(ho.HOURS)?d:d==null?void 0:d.map(ee=>{const ae=ee==null?void 0:ee[ho.START],H=ee==null?void 0:ee[ho.END],ge=ou(ae,H);return ae&&H&&(ee[ho.HOURS]=`${ge}天`),ee})},Ot=(d,h,T=0)=>{if(T>((h==null?void 0:h.length)??""))return d;const z=h==null?void 0:h[T],R=new Map;for(const ee of d){const ae=ee[z];R.has(ae)||R.set(ae,[]),R.get(ae)&&R.get(ae).push(ee)}const B=[];for(const[ee,ae]of R){const[H,...ge]=ae,xe={...H};T+1===((h==null?void 0:h.length)??"")?xe.children=ae==null?void 0:ae.map($e=>($e.level=L.cloneDeep(T)+1,$e)).filter(($e,Ie)=>Ie!==0):ge.length>0&&(xe.children=Ot(ge,h,T+1)),xe.level=T,B.push(xe)}return B},Lt=(d,h,T)=>{var R;if(!(h!=null&&h.contents)||((R=h==null?void 0:h.contents)==null?void 0:R.length)===0)return d;let z=[];return z=Ot(d,h==null?void 0:h.contents,0),z},$t=async(d,h)=>{var za,na,el,ta,Ua,te,Ta,ua,Da,Aa,A,K,Me,ia,we,ca,Ma,pl,ll,vl,ml,Pl,al,kl,Ka,fl,nl,hl,Cl,Al,kr,$l,wl,Ml,Wl,zl,vr,yr,Jl,ur,Ur,dr,nr,tr,Vt,Pt,Ft;const T=d==null?void 0:d.filter(ya=>(ya==null?void 0:ya.key)==="header");d==null||d.filter(ya=>(ya==null?void 0:ya.key)==="tableIndexColumn")[0];const z=d==null?void 0:d.filter(ya=>(ya==null?void 0:ya.key)==="childTree")[0];let R=!0;if((el=(na=(za=d==null?void 0:d.find(ya=>(ya==null?void 0:ya.key)==="filterAllType"))==null?void 0:za.value)==null?void 0:na.find(ya=>(ya==null?void 0:ya.value)==="onPamButtonContents"))!=null&&el.content){let ya=(te=(Ua=(ta=d==null?void 0:d.find(Dl=>(Dl==null?void 0:Dl.key)==="filterAllType"))==null?void 0:ta.value)==null?void 0:Ua.find(Dl=>(Dl==null?void 0:Dl.value)==="onPamButtonContents"))==null?void 0:te.content;ya=(Ta=ya==null?void 0:ya.split(":"))==null?void 0:Ta[1],ya=(ua=ya.slice(1,(ya==null?void 0:ya.length)-1))==null?void 0:ua.split(","),R=!!(ya!=null&&ya.find(Dl=>Dl==="操作"))}const B=d==null?void 0:d.find(ya=>(ya==null?void 0:ya.key)==="page"),ee=d==null?void 0:d.find(ya=>(ya==null?void 0:ya.key)==="rowButton"),ae=d==null?void 0:d.find(ya=>(ya==null?void 0:ya.key)==="extraButton"),H=d==null?void 0:d.filter(ya=>(ya==null?void 0:ya.key)==="tableContents"),ge=d==null?void 0:d.filter(ya=>(ya==null?void 0:ya.key)==="bottomButton"),xe=d==null?void 0:d.filter(ya=>(ya==null?void 0:ya.key)==="tableIndex");ea.value=(Aa=(Da=d==null?void 0:d.filter(ya=>(ya==null?void 0:ya.key)==="tableToForm"))==null?void 0:Da[0])==null?void 0:Aa.contents,Je.value=(B==null?void 0:B.contents)??!0;let $e=[];Hl.value===""?$e=T==null?void 0:T[0]:$e=(T==null?void 0:T.find(ya=>(ya==null?void 0:ya.selectLabel)==="("+Hl.value+")"))??(T==null?void 0:T.find(ya=>!(ya!=null&&ya.selectLabel)));let Ie=[];Hl.value===""?Ie=xe==null?void 0:xe[0]:Ie=(xe==null?void 0:xe.find(ya=>(ya==null?void 0:ya.selectLabel)==="("+Hl.value+")"))??(xe==null?void 0:xe.find(ya=>!(ya!=null&&ya.selectLabel)));let je=[],oa=[];if(((A=$e==null?void 0:$e.contents)==null?void 0:A.length)>0){let ya=[],Dl=$e==null?void 0:$e.contents;if(Array.isArray(Dl==null?void 0:Dl[0])&&((K=Dl==null?void 0:Dl[0])!=null&&K.every(ol=>!(ol!=null&&ol.children)))&&(Dl=Dl==null?void 0:Dl[0]),Dl.some(ol=>Array.isArray(ol)&&(ol==null?void 0:ol.find(qe=>qe.children))))ya=(Me=sa.getGradeColumns(Dl,R))==null?void 0:Me[0],ya!=null&&ya.find(ol=>(ol==null?void 0:ol.label)==="操作")||ya.push({label:"操作",prop:"operate",type:"operate"});else{let ol=Dl.some(qe=>Array.isArray(qe))?Dl==null?void 0:Dl[0]:Dl;ol!=null&&ol.find(qe=>(qe==null?void 0:qe.label)==="操作")||ol.push({label:"操作",prop:"operate",type:"operate"}),ol==null||ol.forEach((qe,Xl)=>{var Lr,Br,$r,Er,lo,yo,go,gr,yn,qn,bo,ln,Wn,qt,Wt,Kt,Gt,Yt,Jt,Xt;if((Br=(Lr=wa.value)==null?void 0:Lr.split("/"))==null||Br.forEach(Zl=>{var pr,Dn,Zt;Zl!==""&&((Zt=(Dn=(pr=Zl==null?void 0:Zl.split(m+"updateLoading"))==null?void 0:pr[0])==null?void 0:Dn.split(m+"loading"))==null||Zt[0])}),qe!=null&&qe.methodContent){let Zl=(lo=(Er=($r=qe==null?void 0:qe.methodContent)==null?void 0:$r.replace("@","%%#"))==null?void 0:Er.split("%%#"))==null?void 0:lo[1];if(Zl=Zl==null?void 0:Zl.slice(0,(Zl==null?void 0:Zl.length)-1),Zl=sa.contentTransArrayToAllNoExtra(Zl??"",","),(yo=Zl==null?void 0:Zl.find(pr=>pr==null?void 0:pr.includes("@Button")))!=null&&yo.includes("Prop")&&((go=Zl==null?void 0:Zl.find(pr=>pr==null?void 0:pr.includes("Type")))!=null&&go.includes("Manual"))){let pr=(yn=(gr=Zl==null?void 0:Zl.find(Dn=>Dn==null?void 0:Dn.includes("@Button")))==null?void 0:gr.split(":"))==null?void 0:yn[1];pr=((ln=(bo=(qn=pr==null?void 0:pr.replaceAll("[",""))==null?void 0:qn.replaceAll("]",""))==null?void 0:bo.split(","))==null?void 0:ln[1])??"算法执行",je.push(pr)}else if((Wn=Zl==null?void 0:Zl.find(pr=>pr==null?void 0:pr.includes("@Button")))!=null&&Wn.includes("Row")&&((qt=Zl==null?void 0:Zl.find(pr=>pr==null?void 0:pr.includes("Type")))!=null&&qt.includes("Manual"))){let pr=(Kt=(Wt=Zl==null?void 0:Zl.find(Dn=>Dn==null?void 0:Dn.includes("@Button")))==null?void 0:Wt.split(":"))==null?void 0:Kt[1];pr=((Jt=(Yt=(Gt=pr==null?void 0:pr.replaceAll("[",""))==null?void 0:Gt.replaceAll("]",""))==null?void 0:Yt.split(","))==null?void 0:Jt[1])??"算法执行",oa.push(pr)}}(Xt=ea.value)==null||Xt.find(Zl=>(Zl==null?void 0:Zl.prop)===(qe==null?void 0:qe.prop)),ya.push({label:(qe==null?void 0:qe.label)==="操作"?R?"操作":"":(qe==null?void 0:qe.label)??"",prop:(qe==null?void 0:qe.label)==="操作"?"operate":(qe==null?void 0:qe.prop)??"a"+Xl,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)??Xl,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)??Xl===0,allSelectionContents:(qe==null?void 0:qe.allContents)??[],filterContent:qe==null?void 0:qe.filterContents,menus:qe==null?void 0:qe.menus,groups:qe==null?void 0:qe.groups,words:qe==null?void 0:qe.words,filter:qe==null?void 0:qe.filter,bindMenus:qe==null?void 0:qe.bindMenus,fatherPath:qe==null?void 0:qe.fatherPath,isMainPath:qe==null?void 0:qe.isMainPath,required:(qe==null?void 0:qe.required)??!1,relatedContents:qe==null?void 0:qe.relatedContents,functionName:qe==null?void 0:qe.functionName,functionRelatedWords:qe==null?void 0:qe.functionRelatedWords,calculatorFilter:qe==null?void 0:qe.calculatorFilter,relatedPages:qe==null?void 0:qe.relatedPages})})}O.value=(ia=ge==null?void 0:ge[0])==null?void 0:ia.contents;const tn=sa.getNewColumnChild(ya),jt=ol=>Array.isArray(ol)?ol.map(qe=>(Array.isArray(qe==null?void 0:qe.children)&&qe.children.length>0?(qe.sortable=!1,jt(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)):ol;jt(tn),await ji(tn),Of(Q.value,tn),Se.value=tn,_a.value=tn,r.value=(we=Se.value)==null?void 0:we.map(ol=>ol==null?void 0:ol.label);let sn=(Ma=(ca=sa.getAllLeafNodes(Se.value))==null?void 0:ca.filter(ol=>(ol==null?void 0:ol.type)!=="operate"))==null?void 0:Ma.map((ol,qe)=>({prop:(ol==null?void 0:ol.prop)??"a"+qe,column:ol.label}));Or.value=sn;let an=[];Hl.value===""?an=H==null?void 0:H[0]:an=(H==null?void 0:H.find(ol=>(ol==null?void 0:ol.selectLabel)==="("+Hl.value+")"))??(H==null?void 0:H.find(ol=>!(ol!=null&&ol.selectLabel)));let ao=Array.isArray((pl=an==null?void 0:an.contents)==null?void 0:pl[0])&&((ll=an==null?void 0:an.contents)!=null&&ll[0].every(ol=>Array.isArray(ol)))?(vl=an==null?void 0:an.contents)==null?void 0:vl[0]:an==null?void 0:an.contents;Ie!=null&&Ie.contents&&((ml=Ie==null?void 0:Ie.contents)==null?void 0:ml.length)!==0&&(ao=(Pl=L.cloneDeep(ao))==null?void 0:Pl.map((ol,qe)=>{if(!Array.isArray(ol)){let Xl={};for(let Lr in ol)Lr!=="id"&&Lr!=="index"&&(Xl[Lr]=ol[Lr]);ol=Object.values(Xl)}return ol}));const gu=!!((al=Se.value)!=null&&al.find(ol=>ol.prop==="index"));ao=lc(ao,Ie==null?void 0:Ie.contents,gu);const vo=[];ao==null||ao.forEach((ol,qe)=>{var Lr;let Xl={};if(Array.isArray(ol)){let Br=[];ol==null||ol.filter($r=>!($r!=null&&$r.id)).forEach(($r,Er)=>{var lo,yo,go,gr,yn,qn;if((lo=sn==null?void 0:sn[Er])!=null&&lo.prop&&!Array.isArray($r)){let bo={};bo[sn[Er].column]=$r,qa!=null&&qa.value&&((yo=qa==null?void 0:qa.value)==null?void 0:yo.length)>0&&((go=qa==null?void 0:qa.value)!=null&&go.find(ln=>JSON.stringify(ln==null?void 0:ln[0])===JSON.stringify(bo)))&&(Br=(gr=qa==null?void 0:qa.value)==null?void 0:gr.find(ln=>JSON.stringify(ln==null?void 0:ln[0])===JSON.stringify(bo))),Br&&Br.length>0?Xl[sn[Er].prop]=Br!=null&&Br.find(ln=>{var Wn;return((Wn=Object.keys(ln))==null?void 0:Wn[0])===sn[Er].column})?(yn=Br==null?void 0:Br.find(ln=>{var Wn;return((Wn=Object.keys(ln))==null?void 0:Wn[0])===sn[Er].column}))==null?void 0:yn[sn[Er].column]:$r:Xl[sn[Er].prop]=$r}else Array.isArray($r)&&((qn=sn[Er])!=null&&qn.prop?Xl[sn[Er].prop]=$r:Xl.children=ht($r,sn))})}else Xl=ol;if(Array.isArray(ol)&&ol.some(Br=>Br==null?void 0:Br.id)){const Br=(Lr=ol==null?void 0:ol.find($r=>$r.id))==null?void 0:Lr.id;vo.push(Object.assign(Xl,{id:li(Br)}))}else Xl.id?vo.push(Xl):vo.push(Object.assign(Xl,{id:qe.toString()}))});try{const ol=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),qe=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null"),Xl=ol==null?void 0:ol.tableId,Lr=ol==null?void 0:ol.compIndex;if(Xl&&Array.isArray(qe)&&qe.length>0&&String(Xl)===String(u==null?void 0:u.parentTableId)&&String(Lr)===String(u==null?void 0:u.index)){const Br=new Set(vo.map(Er=>String(Er==null?void 0:Er.id))),$r=qe.filter(Er=>!Br.has(String(Er)));if($r.length>0){const Er=ol==null?void 0:ol.pageKey,lo=Er!=null&&Er.startsWith("/")?Er.substring(1):Er;((h==null?void 0:h[Er])||(h==null?void 0:h[lo])||[]).filter(gr=>{var yn,qn;return((yn=gr==null?void 0:gr.key)==null?void 0:yn.type)==="data"&&String((qn=gr==null?void 0:gr.key)==null?void 0:qn.tableId)===String(Xl)&&$r.includes(gr==null?void 0:gr.id)}).forEach(gr=>{var yn;Br.has(String(gr==null?void 0:gr.id))||(vo.push({id:gr==null?void 0:gr.id,...((yn=gr==null?void 0:gr.value)==null?void 0:yn.tableData)||{}}),Br.add(String(gr==null?void 0:gr.id)))})}}}catch{}let mo=null;try{const ol=`ocr_committed_temp_ids_v1:${String((u==null?void 0:u.parentTableId)??"")}:${String((u==null?void 0:u.index)??"")}`,qe=JSON.parse(sessionStorage.getItem(ol)||"null");Array.isArray(qe)&&qe.length>0&&(mo=new Set(qe.map(Xl=>String(Xl))))}catch{}const Ht=Array.from(((kl=va.value)==null?void 0:kl.values())||[]).filter(ol=>!(!(ol!=null&&ol._isOCRRow&&(ol==null?void 0:ol._ocrTableId)===(u==null?void 0:u.index))||mo&&mo.has(String(ol==null?void 0:ol.id)))),bu=(Ee.value||[]).map(ol=>String(ol==null?void 0:ol.id)),Ut=ri(vo,bu);if(Ee.value=Lt(Ut,z,Se.value),Ea.value=Ut,(Ka=Ea.value)==null||Ka.forEach(ol=>{var qe;(qe=va.value)==null||qe.set(ol.id,ol)}),mo&&mo.size>0)try{const ol=new Set(Array.from(mo.values()));Ee.value=(Ee.value||[]).filter(qe=>!ol.has(String(qe==null?void 0:qe.id))),Ea.value=(Ea.value||[]).filter(qe=>!ol.has(String(qe==null?void 0:qe.id))),ol.forEach(qe=>{var Xl,Lr;try{(Lr=(Xl=va.value)==null?void 0:Xl.delete)==null||Lr.call(Xl,qe)}catch{}})}catch{}const ci=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),nt=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null");if(ci&&Array.isArray(nt)&&nt.length>0&&String(ci==null?void 0:ci.compIndex)===String(u==null?void 0:u.index)){const ol=new Set((Ea.value||[]).map(qe=>String(qe==null?void 0:qe.id)));nt.filter(qe=>!ol.has(String(qe)))}if(Ht.length>0){const ol=new Set((Ee.value||[]).map(Xl=>Xl==null?void 0:Xl.id)),qe=Ht.filter(Xl=>!ol.has(Xl.id));qe.length>0&&(Ee.value=[...Ee.value||[],...qe],Ea.value=[...Ea.value||[],...qe],qe.forEach(Xl=>{var Lr;return(Lr=va.value)==null?void 0:Lr.set(Xl.id,Xl)}))}}else Se.value=[],ce.value=[],Ee.value=[],Ea.value=[],va.value=new Map;if(oa=[...new Set(oa)],oa=oa==null?void 0:oa.map(ya=>({label:ya,type:"methodButton"})),((fl=ee==null?void 0:ee.contents)==null?void 0:fl.length)>0?ka.value=ee==null?void 0:ee.contents:ka.value=[],ka.value=[...ka.value,...oa],je=[...new Set(je)],je=je==null?void 0:je.map(ya=>({label:ya,type:"methodButton"})),((nl=ae==null?void 0:ae.contents)==null?void 0:nl.length)>0)if((Al=(Cl=(hl=d==null?void 0:d.find(ya=>(ya==null?void 0:ya.key)==="filterAllType"))==null?void 0:hl.value)==null?void 0:Cl.find(ya=>(ya==null?void 0:ya.value)==="onButtonContents"))!=null&&Al.content){let ya=(wl=($l=(kr=d==null?void 0:d.find(Dl=>(Dl==null?void 0:Dl.key)==="filterAllType"))==null?void 0:kr.value)==null?void 0:$l.find(Dl=>(Dl==null?void 0:Dl.value)==="onButtonContents"))==null?void 0:wl.content;if(ya=(Ml=ya==null?void 0:ya.split(":"))==null?void 0:Ml[1],ya=(Wl=ya.slice(1,(ya==null?void 0:ya.length)-1))==null?void 0:Wl.split(","),xa.value=(zl=ae==null?void 0:ae.contents)==null?void 0:zl.filter(Dl=>ya==null?void 0:ya.find(tn=>tn===(Dl==null?void 0:Dl.label))),fa.value=(vr=ae==null?void 0:ae.contents)==null?void 0:vr.filter(Dl=>ya==null?void 0:ya.find(tn=>tn===(Dl==null?void 0:Dl.label))),(yr=ae==null?void 0:ae.contents)!=null&&yr.some(Dl=>(Dl==null?void 0:Dl.label)==="OCR识别")&&!((Jl=xa.value)!=null&&Jl.some(Dl=>(Dl==null?void 0:Dl.label)==="OCR识别"))){const Dl=(ur=ae==null?void 0:ae.contents)==null?void 0:ur.find(tn=>(tn==null?void 0:tn.label)==="OCR识别");xa.value=[...xa.value,Dl],fa.value=[...fa.value,Dl]}S.value=!!(ya!=null&&ya.find(Dl=>Dl==="搜索")),j.value=!!(ya!=null&&ya.find(Dl=>Dl==="块状显示"))}else xa.value=ae==null?void 0:ae.contents,fa.value=ae==null?void 0:ae.contents;else xa.value=[],fa.value=[];xa.value=[...xa.value,...je],fa.value=[...fa.value,...je],typeof wa.value=="string"&&wa.value==="设备管理/试验设备"&&(u==null?void 0:u.compName)==="设备列表"?((Ur=xa.value)!=null&&Ur.some(ya=>(ya==null?void 0:ya.label)==="OCR识别")||(xa.value=[...xa.value||[],{label:"OCR识别"}]),(dr=fa.value)!=null&&dr.some(ya=>(ya==null?void 0:ya.label)==="OCR识别")||(fa.value=[...fa.value||[],{label:"OCR识别"}])):(xa.value=(xa.value||[]).filter(ya=>(ya==null?void 0:ya.label)!=="OCR识别"),fa.value=(fa.value||[]).filter(ya=>(ya==null?void 0:ya.label)!=="OCR识别")),(nr=xa.value)!=null&&nr.some(ya=>(ya==null?void 0:ya.label)==="切换视图")||(xa.value=[...xa.value||[],{label:"切换视图"}]),(tr=fa.value)!=null&&tr.some(ya=>(ya==null?void 0:ya.label)==="切换视图")||(fa.value=[...fa.value||[],{label:"切换视图"}]),me.value=((Vt=Ee==null?void 0:Ee.value)==null?void 0:Vt.length)??0,It(Ee.value),Gr.value=Ee.value,Il.value&&(Se.value=(Ft=(Pt=ce.value)==null?void 0:Pt.filter(ya=>(ya==null?void 0:ya.label)!=="操作"))==null?void 0:Ft.map(ya=>{var Dl;return{...ya,type:"edit",optionUrl:ya!=null&&ya.formMenuSelect&&((Dl=ya==null?void 0:ya.formMenuSelect)==null?void 0:Dl.length)>0?{groupSelect:ya==null?void 0:ya.groupSelect,menuSelect:ya==null?void 0:ya.formMenuSelect,selectRelateType:"",type:ya==null?void 0:ya.formType}:null}}),rt())};a.watch(()=>[u.itemData,Hl.value,bn.value,vn.value,qa==null?void 0:qa.value],async()=>{var d,h,T,z,R,B;if((d=u==null?void 0:u.itemData)!=null&&d.find(ee=>(ee==null?void 0:ee.key)==="columnPath")&&!((h=P.value)!=null&&h.find(ee=>{var ae,H;return(ee==null?void 0:ee.key)===((H=(ae=u==null?void 0:u.itemData)==null?void 0:ae.find(ge=>(ge==null?void 0:ge.key)==="columnPath"))==null?void 0:H.contents)}))){let ee=P.value,ae={key:(z=(T=u==null?void 0:u.itemData)==null?void 0:T.find(H=>(H==null?void 0:H.key)==="columnPath"))==null?void 0:z.contents,value:(B=(R=u==null?void 0:u.itemData)==null?void 0:R.find(H=>(H==null?void 0:H.key)==="columnUsingPath"))==null?void 0:B.contents};ee!=null&&ee.find(H=>(H==null?void 0:H.key)===(ae==null?void 0:ae.key))?ee=ee==null?void 0:ee.map(H=>((H==null?void 0:H.key)===(ae==null?void 0:ae.key)&&(H.value=ae.value),H)):ee.push(ae),Ze.setTableViewContents(ee)}await $t(u.itemData,u.allMapContents)},{deep:!0,immediate:!0}),a.watch(()=>u==null?void 0:u.operatingForm,d=>{d!=null&&d.form&&(Oo(d==null?void 0:d.form),Ae.value=d==null?void 0:d.dialogTitle,Pe.value=!0,Xe.value=!0)},{immediate:!0,deep:!0});const iu=()=>{var d;(d=$.value)!=null&&d.includes("read")&&(Il.value=!Il.value)},tu=()=>{hr.value=!hr.value};a.watch(()=>{var d;return(d=u==null?void 0:u.config)==null?void 0:d.viewport},d=>{var h;$.value=d,(d==null?void 0:d.length)===0?Il.value=!1:(d!=null&&d.includes("read")||(Il.value=!0),d!=null&&d.includes("edit")||(Il.value=!1)),N.value=((h=u==null?void 0:u.config)==null?void 0:h.showIndex)||Il.value},{immediate:!0}),a.watch(()=>Il.value,d=>{var h;d?(rt("viewChange"),Ze.setCacheUpdatingData(null)):(xa.value=fa.value,Se.value=_a.value,F.value&&(Ze.setTableLoading(u==null?void 0:u.index),Te("change",F.value))),N.value=d||((h=u==null?void 0:u.config)==null?void 0:h.showIndex),rr.value=[]},{immediate:!0}),a.watch(()=>{var d;return(d=Fn.value)==null?void 0:d.length},d=>{d===0&&(he.currentPage=1)}),a.watch(()=>u==null?void 0:u.compNames,d=>{t.contents=[{label:"列表名",prop:"groupName",name:"列表名",type:"select",value:"",id:0,contents:d||[],width:1}]},{immediate:!0}),a.ref(!1);const su=(d,h)=>{var T;rt("createClick"),h===he.pageSize&&(he.currentPage=Math.ceil(((T=Ee.value)==null?void 0:T.length)/he.pageSize))},cu=async(d,h,T)=>{var R,B,ee,ae,H;const z=(h==null?void 0:h.property)??(h==null?void 0:h.prop);if(z&&ti.includes(z)&&T!==void 0&&T!==null&&String(T).trim()!==""){const ge=String(T).trim();if(await lt(ge,d==null?void 0:d.id)){Qa.ElMessage.warning("当前任务下通道号不能重复,请重新选择");const $e=(R=Ee.value)==null?void 0:R.findIndex(je=>(je==null?void 0:je.id)===(d==null?void 0:d.id)),Ie=$e!==-1?(ee=(B=Ee.value)==null?void 0:B[$e])==null?void 0:ee[z]:void 0;z&&(d[z]=Ie??"");return}}if(Il.value){const ge=d==null?void 0:d.id;ge!=null&&(b.value.has(ge)||b.value.set(ge,L.cloneDeep(d)),c.value.add(ge));const xe=(ae=Ee.value)==null?void 0:ae.findIndex($e=>($e==null?void 0:$e.id)===(d==null?void 0:d.id));xe!==-1&&z&&(Ee.value[xe]={...Ee.value[xe],[z]:T}),si(T,d,h);return}si(T,d,h),ir.value=L.cloneDeep(d),Va.value=d==null?void 0:d.id,me.value=(H=Ee.value)==null?void 0:H.length,Ae.value=d!=null&&d._isTemp?"新增":"编辑",$o(!1)},uu=async()=>{var d,h;try{const T=[];if(u!=null&&u.related&&Array.isArray(u.related)&&(console.log("props.related",u.related),u.related.forEach(z=>{if(typeof z=="string"&&z.includes("content_")){const R=z.split("_")[1];R&&(T.push(`content_${R}`),T.push(`struct_${R}`))}})),T.length===0&&(u!=null&&u.itemData)){const z=(h=(d=u.itemData)==null?void 0:d.find(R=>(R==null?void 0:R.key)==="contentTableId"))==null?void 0:h.contents;z&&(T.push(`content_${z}`),T.push(`struct_${z}`))}return T}catch(T){return console.error("获取 tableNames 失败:",T),[]}},du=async(d,h,T)=>{var B,ee;if(!T||typeof T!="string"||T.trim()===""){const ae=(h==null?void 0:h.property)??(h==null?void 0:h.prop),H=`${d==null?void 0:d.id}:${ae}`;p.value.delete(H),y.value.set(H,!1);return}const z=(h==null?void 0:h.property)??(h==null?void 0:h.prop),R=`${d==null?void 0:d.id}:${z}`;y.value.set(R,!0);try{const ae=await uu();if(ae.length===0){console.warn("未找到同名表,跳过全局搜索"),p.value.delete(R),y.value.set(R,!1);return}const H=parseInt((B=Rl.value)==null?void 0:B.plat_id);if(!H){console.warn("platId 无效,跳过全局搜索"),p.value.delete(R),y.value.set(R,!1);return}const ge=await L.getAllTables({platId:H,tableNames:ae}),xe=((ee=ge==null?void 0:ge.data)==null?void 0:ee.result)||[],$e=[],Ie=[];for(let je=0;je<xe.length;je+=2)je+1<xe.length&&Ie.push([xe[je],xe[je+1]]);Ie.forEach(([je,oa])=>{var Ua;if(!Array.isArray(je)||je.length===0||!Array.isArray(oa)||oa.length===0)return;const Fa=oa[0];let za=((Ua=Fa==null?void 0:Fa.结构)==null?void 0:Ua.contents)??[];if(!Array.isArray(za)||za.length===0)return;let na=L.cloneDeep(za);if(Array.isArray(na==null?void 0:na[0])&&(na=sa.getColumnChild(na[0])),!Array.isArray(na)||na.length===0||!na.some(te=>(te==null?void 0:te.prop)===z))return;[...je].sort((te,Ta)=>{const ua=Number((te==null?void 0:te.update_time)??0);return Number((Ta==null?void 0:Ta.update_time)??0)-ua}).slice(0,20).forEach(te=>{const Ta=te[z];if(Ta!=null){const ua=String(Ta);ua.toLowerCase().includes(T.toLowerCase())&&$e.findIndex(Aa=>{var A;return te.id&&((A=Aa.rowData)==null?void 0:A.id)===te.id?!0:Aa.label===ua})===-1&&$e.push({label:ua,rowData:L.cloneDeep(te),sourceTable:(Fa==null?void 0:Fa.source_table)||""})}})}),p.value.set(R,$e)}catch(ae){console.error("全局搜索建议失败:",ae),p.value.delete(R)}finally{y.value.set(R,!1)}},pu=(d,h,T)=>{if(!Il.value)return;const z=(h==null?void 0:h.property)??(h==null?void 0:h.prop),R=(h==null?void 0:h.formType)||(h==null?void 0:h.columnType)||"";if(R&&R.toUpperCase()!=="INPUT"&&R!=="")return;const B=`${d==null?void 0:d.id}:${z}`;if(v.has(B)&&clearTimeout(v.get(B)),!T||T.trim()===""){p.value.delete(B),y.value.set(B,!1);return}const ee=setTimeout(()=>{du(d,{prop:z,property:z},T),v.delete(B)},300);v.set(B,ee)};function fu(d,h){const T=`${d==null?void 0:d.id}:${(h==null?void 0:h.property)??(h==null?void 0:h.prop)}`;return p.value.get(T)||[]}const hu=(d,h,T)=>{var xe;if(!T||!T.rowData)return;const z=T.rowData,R=d==null?void 0:d.id,B=(h==null?void 0:h.property)??(h==null?void 0:h.prop),ae=(sa.getAllLeafNodes(Se.value)||[]).filter($e=>($e==null?void 0:$e.type)!=="operate"&&($e==null?void 0:$e.label)!=="操作"&&($e==null?void 0:$e.prop)!=="operate");ae.forEach($e=>{const Ie=$e==null?void 0:$e.prop;Ie&&z[Ie]!==void 0&&(d[Ie]=z[Ie])});const H=(xe=Ee.value)==null?void 0:xe.findIndex($e=>($e==null?void 0:$e.id)===R);H!==-1&&ae.forEach($e=>{const Ie=$e==null?void 0:$e.prop;Ie&&z[Ie]!==void 0&&(Ee.value[H][Ie]=z[Ie])}),R!=null&&(b.value.has(R)||b.value.set(R,L.cloneDeep(d)),c.value.add(R));const ge=`${R}:${B}`;p.value.delete(ge),y.value.set(ge,!1),si(d[B],d,h)},Hr=d=>{var H,ge,xe,$e,Ie,je,oa,Fa,za,na,el;const{row:h,column:T,item:z,slotData:R}=d;let B=h!=null&&h[T==null?void 0:T.prop]||(h==null?void 0:h[T==null?void 0:T.prop])===0?((ge=(H=h==null?void 0:h[T==null?void 0:T.prop])==null?void 0:H[0])==null?void 0:ge.contents)??((h==null?void 0:h[T==null?void 0:T.prop])===0?"0":h==null?void 0:h[T==null?void 0:T.prop]):(($e=(xe=h==null?void 0:h[z==null?void 0:z.prop])==null?void 0:xe[0])==null?void 0:$e.contents)??(h==null?void 0:h[z==null?void 0:z.prop])??((je=(Ie=R==null?void 0:R[z==null?void 0:z.prop])==null?void 0:Ie[0])==null?void 0:je.contents)??(R==null?void 0:R[z==null?void 0:z.prop])??((za=(Fa=h==null?void 0:h[(oa=z==null?void 0:z.child)==null?void 0:oa.prop])==null?void 0:Fa[0])==null?void 0:za.contents)??(h==null?void 0:h[(na=z==null?void 0:z.child)==null?void 0:na.prop]),ae=Array.isArray(B)&&!(B!=null&&B.every(ta=>typeof ta=="string"||typeof ta=="number"))?"查看":B;if(ae=Array.isArray(ae)?ae.join(","):ae,(T==null?void 0:T.formType)==="Date")if(!ae||ae===""||ae===null||ae===void 0)ae="";else{const ta=Rn.dayjs(ae,["YYYY-MM-DD","YYYY/MM/DD","YYYY年MM月DD日","YYYYMMDD"],!0);ae=ta.isValid()?ta.format("YYYYMMDD"):ae??""}return Array.isArray(T==null?void 0:T.relatedPages)&&((el=T==null?void 0:T.relatedPages)==null?void 0:el.length)>0&&(ae="详情页"),ae},vu=d=>{var ge,xe,$e,Ie,je,oa,Fa,za,na,el;const{row:h,column:T,item:z,slotData:R}=d;let B=h!=null&&h[T==null?void 0:T.prop]?((xe=(ge=h==null?void 0:h[T==null?void 0:T.prop])==null?void 0:ge[0])==null?void 0:xe.contents)??(h==null?void 0:h[T==null?void 0:T.prop]):((Ie=($e=h==null?void 0:h[z==null?void 0:z.prop])==null?void 0:$e[0])==null?void 0:Ie.contents)??(h==null?void 0:h[z==null?void 0:z.prop])??((oa=(je=R==null?void 0:R[z==null?void 0:z.prop])==null?void 0:je[0])==null?void 0:oa.contents)??(R==null?void 0:R[z==null?void 0:z.prop])??((na=(za=h==null?void 0:h[(Fa=z==null?void 0:z.child)==null?void 0:Fa.prop])==null?void 0:za[0])==null?void 0:na.contents)??(h==null?void 0:h[(el=z==null?void 0:z.child)==null?void 0:el.prop]);const ae=Array.isArray(B)&&!(B!=null&&B.every(ta=>typeof ta=="string"||typeof ta=="number")),H=Array.isArray(B)&&(B==null?void 0:B.find(ta=>ta==null?void 0:ta.url));return ae&&H},mu=d=>{var R,B;if(!(d!=null&&d.column))return!1;const h=wa.value==="试验任务/任务管理",T=(u==null?void 0:u.compName)==="任务列表",z=((R=d==null?void 0:d.column)==null?void 0:R.label)==="任务状态"||((B=d==null?void 0:d.column)==null?void 0:B.prop)==="任务状态";return h&&T&&z},yu=(d,h)=>d.find(T=>Object.values(T).some(z=>z===h));return a.watch(()=>ze.value,async d=>{if(d){la.setContentLoading(!0),await a.nextTick();const h=yu(Ee.value,d==null?void 0:d.data);if(!h)return la.setContentLoading(!1);await Un(d==null?void 0:d.data,null,h,{data:d==null?void 0:d.data}),la.setContentLoading(!1)}},{deep:!0,immediate:!0}),a.watch(()=>u==null?void 0:u.cacheNewData,d=>{var h;d&&(Array.isArray(d)?d.forEach(T=>{var z,R,B,ee,ae;if(换,String(T==null?void 0:T.compId)===String(u==null?void 0:u.index)&&(T!=null&&T.resId)&&((z=T==null?void 0:T.data)!=null&&z.id)){const H=(R=T==null?void 0:T.data)==null?void 0:R.id,ge=T==null?void 0:T.resId;if(Ee.value=(B=Ee.value)==null?void 0:B.map(xe=>{if((xe==null?void 0:xe.id)===H){const $e={...xe,id:ge};return delete $e._isOCRRow,delete $e._ocrTableId,$e}return xe}),(ae=(ee=va.value)==null?void 0:ee.has)!=null&&ae.call(ee,H)){const $e={...va.value.get(H)||{},id:ge};delete $e._isOCRRow,delete $e._ocrTableId,va.value.delete(H),va.value.set(ge,$e)}da(u==null?void 0:u.index,H,ge)}}):String(d==null?void 0:d.compId)===String(u==null?void 0:u.index)&&(Ee.value=(h=Ee.value)==null?void 0:h.map(T=>{var z;if((T==null?void 0:T.id)===((z=d==null?void 0:d.data)==null?void 0:z.id)){const R={...T,id:d==null?void 0:d.resId};return delete R._isOCRRow,delete R._ocrTableId,R}return T})))},{immediate:!0,deep:!0}),(d,h)=>{var na,el,ta,Ua;const T=a.resolveComponent("svg-icon"),z=a.resolveComponent("el-popover"),R=a.resolveComponent("el-switch"),B=a.resolveComponent("el-checkbox"),ee=a.resolveComponent("el-radio"),ae=a.resolveComponent("el-radio-group"),H=a.resolveComponent("el-checkbox-group"),ge=a.resolveComponent("el-button"),xe=a.resolveComponent("el-icon"),$e=a.resolveComponent("el-progress"),Ie=a.resolveComponent("el-alert"),je=a.resolveComponent("el-table-column"),oa=a.resolveComponent("el-table"),Fa=a.resolveComponent("el-upload"),za=a.resolveComponent("el-text");return a.openBlock(),a.createElementBlock("div",k0,[Pr.value?(a.openBlock(),a.createBlock(dl.ssTable,{id:"excel-table",pageObj:he,showIndex:N.value,isTree:(na=l.compItem)==null?void 0:na.isTree,summaryInfo:G,columns:Se.value,defaultSort:J,isCardViewport:hr.value,checkedColumns:r.value,key:rn.value+Se.value,tableData:Fn.value,isEditViewport:Il.value,isShowPagination:Je.value,isShowEdit:!1,isShowDelete:!1,allowSelect:_.value,onDbClickRow:ni,extraButton:xa.value,rowButton:ka.value,cacheExtraButtons:fa.value,isClearSelection:((el=rr.value)==null?void 0:el.length)===0,onDoCurrentChange:mn,onDoSizeChange:To,onSortChange:Ii,onContentClick:Un,onRowClick:oi,onSelectChange:Pi,onCellChange:cu,onCellInput:pu,onSelectSuggest:hu,onChange:si,onPreview:Hn,onSubmitEditingTable:Jo,onHandleColEditChange:Ko,onHandleColTypeChange:Go,onClickButton:In,onAddNewRow:Fr,bottomButton:O.value},a.createSlots({headerButton:a.withCtx(te=>{var Ta,ua;return[l.showHeader?(a.openBlock(),a.createBlock(Xp,{key:0,id:"tableHeaderButton",pageLayout:l.pageLayout,lockingPage:a.unref(se)===a.unref(wa),filterValues:Wi.value,selectNums:(Ta=rr.value)==null?void 0:Ta.length,dataNums:(ua=Ee.value)==null?void 0:ua.length,compName:l.compName,isDevMode:l.isDevMode,buttons:te.buttons,onButtonClick:h[1]||(h[1]=(Da,Aa,A)=>In(Da,Aa,{extra:A})),columns:Se.value,onFilter:Ki,onGetImportData:Li,level:l.level,filterShow:S.value},null,8,["pageLayout","lockingPage","filterValues","selectNums","dataNums","compName","isDevMode","buttons","columns","level","filterShow"])):a.createCommentVNode("",!0)]}),viewport:a.withCtx(()=>{var te,Ta,ua,Da;return[((te=Ee.value)==null?void 0:te.length)>0&&l.allowOperate&&j.value?(a.openBlock(),a.createElementBlock("div",_0,[(Ta=$.value)!=null&&Ta.includes("read")&&((ua=$.value)!=null&&ua.includes("edit"))&&((Da=ka.value)!=null&&Da.some(Aa=>(Aa==null?void 0:Aa.label)==="编辑"))&&!hr.value&&a.unref(se)!==a.unref(wa)?(a.openBlock(),a.createElementBlock("span",{key:0,title:"编辑表格",onClick:iu},[a.createVNode(T,{name:"editTable",class:"view-icon"})])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)]}),rowCreate:a.withCtx(({row:te,index:Ta})=>[a.createElementVNode("span",{title:"新增",class:"row-create-wrap",onClick:ua=>su(te,Ta)},[a.createVNode(T,{name:"rowCreate",style:{width:"10px",height:"10px"}})],8,E0)]),operateCol:a.withCtx(()=>[a.createVNode(z,{title:"选择显示列信息",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:au},{reference:a.withCtx(()=>[a.createElementVNode("span",S0,[a.createVNode(T,{name:"operate",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),default:a.withCtx(()=>[a.createElementVNode("div",C0,[h[20]||(h[20]=a.createElementVNode("div",{class:"group-title"},"表格操作",-1)),a.createVNode(R,{"model-value":g.value,"active-text":"排序","inactive-text":"",style:{"margin-right":"8px"},onChange:h[2]||(h[2]=te=>Zo(te))},null,8,["model-value"]),h[21]||(h[21]=a.createElementVNode("div",{class:"group-title"},"表格列操作",-1)),a.createVNode(H,{modelValue:r.value,"onUpdate:modelValue":h[3]||(h[3]=te=>r.value=te),style:{height:"100%"},min:2,ref_key:"checkboxGroupRef",ref:s},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(En.value,te=>(a.openBlock(),a.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:te.label},[a.createVNode(B,{value:te.label,style:{width:"100%",marginRight:0}},{default:a.withCtx(()=>[a.createElementVNode("span",{title:te.label,style:{display:"inline-block",width:"250px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},a.toDisplayString(te.label),9,D0)]),_:2},1032,["value"]),a.createVNode(z,{"popper-class":"col-operate-popover",title:"列操作",placement:"left",teleported:!1,trigger:"hover"},{reference:a.withCtx(()=>[a.createVNode(T,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:a.withCtx(()=>{var Ta;return[a.createElementVNode("div",B0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((Ta=Object.keys(te))==null?void 0:Ta.filter(ua=>{var Da;return(Da=Z.value)==null?void 0:Da.find(Aa=>(Aa==null?void 0:Aa.value)===ua)}),ua=>{var Da,Aa;return a.openBlock(),a.createElementBlock("div",{key:ua},[M[ua]=="radio"?(a.openBlock(),a.createElementBlock("div",N0,[h[19]||(h[19]=a.createElementVNode("div",null,"固定:",-1)),a.createVNode(ae,{"model-value":te==null?void 0:te[ua],onChange:A=>Sn(A,ua,te)},{default:a.withCtx(()=>{var A,K;return[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((K=(A=Z.value)==null?void 0:A.find(Me=>(Me==null?void 0:Me.value)===ua))==null?void 0:K.options,Me=>(a.openBlock(),a.createBlock(ee,{key:Me==null?void 0:Me.value,label:Me==null?void 0:Me.value,value:Me==null?void 0:Me.value},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(Me==null?void 0:Me.label),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["model-value","onChange"])])):a.createCommentVNode("",!0),M[ua]=="switch"?(a.openBlock(),a.createBlock(R,{key:1,"model-value":te==null?void 0:te[ua],"active-text":(Aa=(Da=Z.value)==null?void 0:Da.find(A=>(A==null?void 0:A.value)===ua))==null?void 0:Aa.label,onChange:A=>Sn(A,ua,te)},null,8,["model-value","active-text","onChange"])):a.createCommentVNode("",!0)])}),128))])]}),_:2},1024),a.createElementVNode("span",T0,[a.createVNode(T,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:1},8,["modelValue"])])]),_:1})]),content:a.withCtx(te=>{var Ta,ua,Da,Aa,A,K,Me,ia,we,ca,Ma,pl,ll,vl,ml,Pl,al,kl,Ka,fl;return[((Ta=te==null?void 0:te.column)==null?void 0:Ta.label)==="证书附件"||((ua=te==null?void 0:te.column)==null?void 0:ua.prop)==="证书附件"?(a.openBlock(),a.createElementBlock("div",A0,[a.createVNode(T,{name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:a.withModifiers(nl=>Yr(te),["stop"]),title:"查看OCR图片"},null,8,["onClick"])])):vu(te)?(a.openBlock(),a.createBlock(z,{key:1,"popper-class":"file-popover",placement:"right",trigger:"hover",effect:"light",width:"auto"},{reference:a.withCtx(()=>[a.createElementVNode("span",z0,a.toDisplayString(Hr(te)),1)]),default:a.withCtx(()=>{var nl,hl;return[a.createElementVNode("div",M0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((hl=te==null?void 0:te.row)==null?void 0:hl[(nl=te==null?void 0:te.column)==null?void 0:nl.prop],Cl=>(a.openBlock(),a.createElementBlock("div",I0,[a.createElementVNode("div",{class:"prop-url",title:Qn(Cl),onClick:Al=>Ui(Cl)},a.toDisplayString(Qn(Cl)),9,O0),a.createElementVNode("div",{class:"prop-download",onClick:Al=>co(Cl)}," 下载 ",8,L0)]))),256))])]}),_:2},1024)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[mu(te)?(a.openBlock(),a.createBlock(Tu,{key:0,value:Hr(te)},null,8,["value"])):(a.openBlock(),a.createElementBlock("div",{key:1,class:"table-cell-content",style:a.normalizeStyle({color:!Array.isArray(Hr(te))&&((Aa=(Da=Hr(te))==null?void 0:Da.toString())!=null&&Aa.includes(".txt")||(K=(A=Hr(te))==null?void 0:A.toString())!=null&&K.includes(".cpt")||(ia=(Me=Hr(te))==null?void 0:Me.toString())!=null&&ia.includes(".cyd"))?"var(--vertical-menuitem-active-bg)":"",textDecoration:!Array.isArray(Hr(te))&&((ca=(we=Hr(te))==null?void 0:we.toString())!=null&&ca.includes(".txt")||(pl=(Ma=Hr(te))==null?void 0:Ma.toString())!=null&&pl.includes(".cpt")||(vl=(ll=Hr(te))==null?void 0:ll.toString())!=null&&vl.includes(".cyd"))?"underline":"",cursor:!Array.isArray(Hr(te))&&((Pl=(ml=Hr(te))==null?void 0:ml.toString())!=null&&Pl.includes(".txt")||(kl=(al=Hr(te))==null?void 0:al.toString())!=null&&kl.includes(".cpt")||(fl=(Ka=Hr(te))==null?void 0:Ka.toString())!=null&&fl.includes(".cyd"))?"pointer":"",marginLeft:(te==null?void 0:te.colIndex)===0?`${((te==null?void 0:te.level)??0)*20}px`:0}),onClick:nl=>{var hl;return zn(Hr(te),((hl=te==null?void 0:te.column)==null?void 0:hl.relatedPages)??[])}},a.toDisplayString(Hr(te)===0?"0":Hr(te)),13,$0))],64))]}),_:2},[((ta=ka.value)==null?void 0:ta.length)>0?{name:"actions",fn:a.withCtx(({item:te,fIndex:Ta})=>[a.createVNode(z,{title:"",placement:"left-start","popper-class":"menu-operate-popover"},{reference:a.withCtx(()=>[a.createVNode(T,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"},onClick:h[0]||(h[0]=a.withModifiers(()=>{},["stop"]))})]),default:a.withCtx(()=>[a.createElementVNode("div",x0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(qi(ka.value,te),(ua,Da)=>(a.openBlock(),a.createElementBlock("div",{class:"menu-config-item",key:Da,onClick:a.withModifiers(Aa=>In(ua==null?void 0:ua.label,te,{extra:ua}),["stop"])},[a.createElementVNode("div",{style:a.normalizeStyle({color:ua==null?void 0:ua.textColor}),class:"extra-button-label"},a.toDisplayString(ua==null?void 0:ua.label),5)],8,w0))),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),Il.value?(a.openBlock(),a.createElementBlock("div",R0,[a.createVNode(ge,{id:"themeBorderButton",onClick:Vi},{default:a.withCtx(()=>h[22]||(h[22]=[a.createTextVNode("取消")])),_:1,__:[22]}),a.createVNode(ge,{class:"ok-button",id:"themeButton",onClick:Ao},{default:a.withCtx(()=>h[23]||(h[23]=[a.createTextVNode("保存")])),_:1,__:[23]})])):a.createCommentVNode("",!0),a.createVNode(xr.ssDialog,{title:Ae.value,visible:Xe.value,width:ql.value,onBeforeDestroy:Qo,style:{height:"74%"}},{default:a.withCtx(()=>[a.createElementVNode("div",V0,[a.createVNode(dl.ssForm,{ref_key:"formRef",ref:oe,rowContents:Ha.value,showOperator:!1,onChange:lu,isEnableWrap:!1,onFixChangeValue:Mo,onClickTrigger:ei,isEdit:Pa.value,onBlurChange:Fi,onCreate:Xo,onTagChange:en},null,8,["rowContents","isEdit"])])]),footer:a.withCtx(()=>[Pe.value?(a.openBlock(),a.createElementBlock("div",P0,[a.createVNode(ge,{onClick:h[4]||(h[4]=te=>Xe.value=!1),id:"themeBorderButton"},{default:a.withCtx(()=>h[24]||(h[24]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[24]}),a.createVNode(ge,{class:"ok-button",onClick:h[5]||(h[5]=te=>$o(!0)),id:"themeButton"},{default:a.withCtx(()=>h[25]||(h[25]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[25]})])):a.createCommentVNode("",!0)]),_:1},8,["title","visible","width"]),a.createVNode(xr.ssDialog,{title:Ae.value,visible:de.value,width:We.value,onBeforeDestroy:h[7]||(h[7]=te=>de.value=!1)},{default:a.withCtx(()=>[a.createVNode(uf)]),footer:a.withCtx(()=>[a.createElementVNode("div",F0,[a.createVNode(ge,{onClick:h[6]||(h[6]=te=>de.value=!1),class:"cancel-button",id:"themeBorderButton"},{default:a.withCtx(()=>h[26]||(h[26]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[26]}),a.createVNode(ge,{class:"ok-button",onClick:Io,id:"themeButton"},{default:a.withCtx(()=>h[27]||(h[27]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[27]})])]),_:1},8,["title","visible","width"]),Ga.value?(a.openBlock(),a.createBlock(dl.ssFilePreview,{key:2,fileDataList:le.value,onDestroy:Cn},null,8,["fileDataList"])):a.createCommentVNode("",!0),He.value?(a.openBlock(),a.createBlock(xr.ssDialog,{key:3,visible:He.value,onBeforeDestroy:Qc,style:{height:"80vh",width:"80vw"},"body-class":"three-dialog-body","footer-class":"three-dialog-footer"},{default:a.withCtx(()=>[a.createVNode(wi.ThreeViewerHost,{files:ba.value,threeData:ne.value},null,8,["files","threeData"])]),_:1},8,["visible"])):a.createCommentVNode("",!0),a.createVNode(xr.ssDialog,{title:"OCR扫描录入",visible:ha.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(()=>[h[38]||(h[38]=a.createElementVNode("div",{class:"ocr-header-bg"},null,-1)),a.createElementVNode("div",j0,[a.createElementVNode("div",H0,[a.createElementVNode("div",{class:a.normalizeClass(["ocr-step-item",{active:ye.value===1}])},h[28]||(h[28]=[a.createElementVNode("div",{class:"step-circle"},"1",-1),a.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件识别",-1)]),2),h[31]||(h[31]=a.createElementVNode("div",{class:"ocr-step-connector"},null,-1)),a.createElementVNode("div",{class:a.normalizeClass(["ocr-step-item",{active:ye.value===2}])},h[29]||(h[29]=[a.createElementVNode("div",{class:"step-circle"},"2",-1),a.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件确认",-1)]),2),h[32]||(h[32]=a.createElementVNode("div",{class:"ocr-step-connector"},null,-1)),a.createElementVNode("div",{class:a.normalizeClass(["ocr-step-item",{active:ye.value===3}])},h[30]||(h[30]=[a.createElementVNode("div",{class:"step-circle"},"3",-1),a.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件提交",-1)]),2)]),ye.value===1?(a.openBlock(),a.createElementBlock("div",U0,[a.createVNode(ge,{onClick:Qi,class:"ocr-action-btn",disabled:ma.value,size:"default"},{default:a.withCtx(()=>h[33]||(h[33]=[a.createTextVNode("扫描文件 ")])),_:1,__:[33]},8,["disabled"]),a.createVNode(ge,{onClick:Ul,class:"ocr-action-btn",disabled:ma.value,size:"default"},{default:a.withCtx(()=>h[34]||(h[34]=[a.createTextVNode("上传文件 ")])),_:1,__:[34]},8,["disabled"])])):a.createCommentVNode("",!0),ye.value===1?(a.openBlock(),a.createElementBlock("div",q0,[a.createElementVNode("div",W0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Ye.value,(te,Ta)=>{var ua;return a.openBlock(),a.createElementBlock("div",{key:Ta,class:"ocr-file-item"},[a.createElementVNode("div",K0,[te.raw&&((ua=te.raw.type)!=null&&ua.startsWith("image/"))?(a.openBlock(),a.createElementBlock("img",{key:0,src:_l(te),alt:"预览",class:"thumbnail-image"},null,8,G0)):(a.openBlock(),a.createElementBlock("div",Y0,[a.createVNode(xe,{size:40},{default:a.withCtx(()=>[a.createVNode(a.unref(Qa.document_default))]),_:1})])),a.createElementVNode("div",{class:a.normalizeClass(["file-progress-ring",{uploading:ul(te)==="uploading",processing:ul(te)==="processing",completed:ul(te)==="completed"||ul(te)==="uploaded",failed:ul(te)==="failed"}])},[(a.openBlock(),a.createElementBlock("svg",J0,[h[35]||(h[35]=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:ul(te)==="completed"||ul(te)==="uploaded",uploading:ul(te)==="uploading",processing:ul(te)==="processing",failed:ul(te)==="failed"}]),cx:"18",cy:"18",r:"16",fill:"none",stroke:ul(te)==="failed"?"#f56c6c":ul(te)==="completed"||ul(te)==="uploaded"?"#67c23a":"#409eff","stroke-width":ul(te)==="completed"||ul(te)==="uploaded"||ul(te)==="failed"?3:2,"stroke-dasharray":Yl(te),"stroke-dashoffset":"0","stroke-linecap":"round",transform:"rotate(-90 18 18)"},null,10,X0)])),ul(te)==="completed"||ul(te)==="uploaded"?(a.openBlock(),a.createElementBlock("div",Z0,[a.createVNode(xe,{class:"check-icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(Qa.check_default))]),_:1})])):a.createCommentVNode("",!0),ul(te)==="failed"?(a.openBlock(),a.createElementBlock("div",Q0,[a.createVNode(xe,{class:"error-icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(Qa.close_default))]),_:1})])):a.createCommentVNode("",!0)],2),a.createElementVNode("div",{class:"file-delete-btn",onClick:Da=>fo(Ta)},[a.createVNode(xe,null,{default:a.withCtx(()=>[a.createVNode(a.unref(Qa.close_default))]),_:1})],8,e3)]),a.createElementVNode("div",a3,a.toDisplayString(te.name||"文件名123"),1)])}),128))]),Ye.value.length>0?(a.openBlock(),a.createElementBlock("div",l3,[a.createVNode(ge,{onClick:ve,class:"ocr-start-recognize-btn",disabled:ma.value||Ye.value.length===0,size:"default"},{default:a.withCtx(()=>h[36]||(h[36]=[a.createTextVNode("开始识别 ")])),_:1,__:[36]},8,["disabled"])])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),ye.value===1?(a.openBlock(),a.createElementBlock("div",r3,[a.createVNode($e,{percentage:W.value,"stroke-width":8},null,8,["percentage"])])):a.createCommentVNode("",!0),ye.value===2?(a.openBlock(),a.createElementBlock("div",n3,[a.createElementVNode("div",o3,[a.createVNode(Ie,{title:"请核对识别结果。",type:"info",closable:!1,"show-icon":""})]),a.createElementVNode("div",i3,[a.createVNode(oa,{data:Ge.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:a.withCtx(()=>[a.createVNode(je,{type:"index",label:"序号",width:"60",fixed:""}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Be.value,te=>(a.openBlock(),a.createBlock(je,{key:te.prop,prop:te.prop,"min-width":te.minWidth||230,"class-name":te.isAccuracy?"accuracy-column":""},{header:a.withCtx(()=>[a.createElementVNode("div",t3,[a.createElementVNode("span",null,a.toDisplayString(te.label),1)])]),default:a.withCtx(({row:Ta,$index:ua})=>{var Da,Aa,A;return[te.isAccuracy?(a.openBlock(),a.createElementBlock("span",{key:0,class:"accuracy-value",style:a.normalizeStyle({color:tl(Ta[te.prop]),fontWeight:500})},a.toDisplayString(La(Ta[te.prop])),5)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[Na.value!==ua?(a.openBlock(),a.createElementBlock("span",s3,a.toDisplayString(Ta[te.prop]),1)):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(il(te.prop)),{key:1,modelValue:Ta[te.prop],"onUpdate:modelValue":K=>Ta[te.prop]=K,size:"small",placeholder:"请输入"+te.label,content:((Da=El(te.prop))==null?void 0:Da.contents)??((Aa=El(te.prop))==null?void 0:Aa.options)??[],optionUrl:(A=El(te.prop))==null?void 0:A.optionUrl,onChange:K=>Qe(ua,te.prop,K),onFocus:K=>pe.value=te.prop,onBlur:h[8]||(h[8]=K=>pe.value="")},null,40,["modelValue","onUpdate:modelValue","placeholder","content","optionUrl","onChange","onFocus"]))],64))]}),_:2},1032,["prop","min-width","class-name"]))),128)),a.createVNode(je,{label:"编辑",width:"80",fixed:"right"},{default:a.withCtx(({$index:te})=>[Na.value===te?(a.openBlock(),a.createBlock(xe,{key:0,class:"ocr-edit-icon editing",style:{"margin-left":"12px"},onClick:a.withModifiers(Ta=>rl(te),["stop"])},{default:a.withCtx(()=>[a.createVNode(a.unref(Qa.check_default))]),_:2},1032,["onClick"])):(a.openBlock(),a.createBlock(T,{key:1,name:"edit_101",class:"ocr-edit-icon",onClick:a.withModifiers(Ta=>rl(te),["stop"])},null,8,["onClick"]))]),_:1})]),_:1},8,["data"])])])):a.createCommentVNode("",!0),ye.value===3?(a.openBlock(),a.createElementBlock("div",c3,[a.createVNode(xe,{size:"32",class:"ocr-success-icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(Qa.check_default))]),_:1}),h[37]||(h[37]=a.createElementVNode("div",{class:"ocr-success-text"},"文件提交成功",-1))])):a.createCommentVNode("",!0)]),a.createVNode(Fa,{ref:"ocrUploadRef","file-list":Ye.value,"onUpdate:fileList":h[9]||(h[9]=te=>Ye.value=te),multiple:"",action:"","auto-upload":!1,limit:20,accept:"image/*,application/pdf","on-change":U,"show-file-list":!1,class:"ocr-upload-input",style:{display:"none"}},null,8,["file-list"])]),footer:a.withCtx(()=>[ye.value!==3?(a.openBlock(),a.createElementBlock("div",u3,[a.createVNode(ge,{onClick:jr,class:"ocr-start-recognize-btn",disabled:ye.value===1||ma.value},{default:a.withCtx(()=>h[39]||(h[39]=[a.createTextVNode(" 上一步 ")])),_:1,__:[39]},8,["disabled"]),a.createVNode(ge,{onClick:wr,class:"ocr-start-recognize-btn",disabled:ma.value},{default:a.withCtx(()=>h[40]||(h[40]=[a.createTextVNode(" 下一步 ")])),_:1,__:[40]},8,["disabled"])])):a.createCommentVNode("",!0)]),_:1},8,["visible"]),a.createVNode(Bf,{visible:po.value,onConfirm:et,onCancel:h[10]||(h[10]=te=>po.value=!1)},null,8,["visible"]),a.createVNode(dd,{visible:Ce.value,"onUpdate:visible":h[11]||(h[11]=te=>Ce.value=te),versions:Ke.value},null,8,["visible","versions"]),a.createVNode(Xu,{visible:Sa.value,"onUpdate:visible":h[12]||(h[12]=te=>Sa.value=te),images:Sl.value,"default-image-name":Vl.value,"field-meta":Na.value!==null?((Ua=Ge.value[Na.value])==null?void 0:Ua.__ocrFieldMeta)||{}:{},"focused-field-name":pe.value,onClose:h[13]||(h[13]=te=>Sa.value=!1),class:"ocr-img-preview-dialog"},null,8,["visible","images","default-image-name","field-meta","focused-field-name"]),a.createVNode(Ed,{visible:Fl.value,"onUpdate:visible":h[14]||(h[14]=te=>Fl.value=te),candidates:lr.value,"name-prop":er.value,"mfr-prop":Qr.value,columns:Se.value,onSubmit:Mr,onPreviewFile:on},null,8,["visible","candidates","name-prop","mfr-prop","columns"]),a.createVNode(Ad,{visible:aa.value,"onUpdate:visible":h[15]||(h[15]=te=>aa.value=te),ocrPreviewData:Ge.value,"onUpdate:ocrPreviewData":h[16]||(h[16]=te=>Ge.value=te),ocrSelectedFields:Za.value,"onUpdate:ocrSelectedFields":h[17]||(h[17]=te=>Za.value=te),ocrPreviewColumns:Be.value,onConfirm:ke,onFieldChange:h[18]||(h[18]=({rowIndex:te,prop:Ta,value:ua})=>Qe(te,Ta,ua))},null,8,["visible","ocrPreviewData","ocrSelectedFields","ocrPreviewColumns"]),a.createVNode(xr.ssDialog,{title:t.title,visible:t.show,width:t.width,onBeforeDestroy:x},{default:a.withCtx(()=>[a.createElementVNode("div",d3,[a.createVNode(dl.ssForm,{rowContents:t==null?void 0:t.contents,formRules:t==null?void 0:t.formRules,showOperator:!1,buttonValue:t.buttonValue,isEdit:Pa.value,isStartJustify:!1,onOnButtonClick:I},null,8,["rowContents","formRules","buttonValue","isEdit"])])]),_:1},8,["title","visible","width"]),a.createVNode(xr.ssDialog,{title:i.title,visible:i.show,width:i.width,alignCenter:!0,onBeforeDestroy:f},{header:a.withCtx(()=>[a.createVNode(za,{size:"small",type:"danger",style:{width:"100%"}},{default:a.withCtx(()=>h[41]||(h[41]=[a.createTextVNode("(选择【覆盖】,可能会影响到原数据的引用关系;选择【取消】将会放弃重复数据的导入。请谨慎操作!)")])),_:1,__:[41]})]),footer:a.withCtx(()=>[a.createElementVNode("div",p3,[a.createVNode(za,{size:"small",style:{width:"100%","text-align":"left"},type:"info"},{default:a.withCtx(()=>[a.createTextVNode("引用模块:"+a.toDisplayString(Tn.value||"暂无"),1)]),_:1}),a.createElementVNode("div",f3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i==null?void 0:i.buttonValue,te=>(a.openBlock(),a.createBlock(ge,{key:te==null?void 0:te.label,style:a.normalizeStyle({background:te==null?void 0:te.background,color:te==null?void 0:te.color}),onClick:Ta=>k(te==null?void 0:te.value)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(te==null?void 0:te.label),1)]),_:2},1032,["style","onClick"]))),128))])])]),default:a.withCtx(()=>[a.createVNode(Zp,{columns:i==null?void 0:i.columns,tableData:i==null?void 0:i.tableData},{content:a.withCtx(({row:te,item:Ta,slotData:ua,scope:Da,column:Aa,columnProp:A,$index:K})=>[a.createTextVNode(a.toDisplayString((te==null?void 0:te[(Aa==null?void 0:Aa.prop)||(Aa==null?void 0:Aa.label)])||(ua==null?void 0:ua[Aa==null?void 0:Aa.property])),1)]),_:1},8,["columns","tableData"])]),_:1},8,["title","visible","width"])])}}},bc=Kl._export_sfc(v3,[["__scopeId","data-v-c8b69b28"]]),m3={key:1,class:"static-form-body"},y3=["onClick"],g3={key:1},b3=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},backGround:{default:void 0},backGroundImage:{default:void 0}},emits:["update:backGroundImage"],setup(l,{emit:n}){const r=l,o=n,s=m=>{switch(m){case"占用":return"warning";case"注销":return"info";case"损坏":return"danger";case"可用":return"success";default:return""}},c=a.computed(()=>{var V;const m=(V=r.itemData)==null?void 0:V.find(G=>(G==null?void 0:G.key)==="formContent"),g=(m==null?void 0:m.contents)||[];return(r.fields&&r.fields.length>0?r.fields:g).filter(G=>(G==null?void 0:G.label)||(G==null?void 0:G.isHideInForm)).map(G=>{let he=G==null?void 0:G.value;Array.isArray(he)&&(he=he.map(fe=>fe==null?"":typeof fe=="object"?fe.label??fe.value??fe.name??JSON.stringify(fe):String(fe)).filter(Boolean).join(",")),he!=null&&typeof he=="object"&&(he=he.label??he.value??he.name??JSON.stringify(he));const Te=G.isHideInForm?"":G.label??"",Se=he==null||he===""?"-":String(he),Q=Te==="使用状态";return{label:Te,value:Se,isStatus:Q,tagType:Q?s(Se):"",width:G.width??1,field:G}})}),b=a.ref(null),p=a.ref(null),v=m=>{if(Array.isArray(m)&&m.length>=3){const[g,j,V,G]=m;return G!==void 0?`rgba(${g}, ${j}, ${V}, ${G})`:`rgb(${g}, ${j}, ${V})`}if(typeof m=="string"){const g=m.trim();if(g.startsWith("[")&&g.endsWith("]")){const j=g.slice(1,-1).split(",").map(V=>Number(V.trim()));if(j.length>=3&&j.every(V=>!Number.isNaN(V))){const[V,G,he,Te]=j;return Te!==void 0?`rgba(${V}, ${G}, ${he}, ${Te})`:`rgb(${V}, ${G}, ${he})`}}return g}},y=a.computed(()=>{const m=Number(r==null?void 0:r.textSize),g=v(r==null?void 0:r.textColor),j={},V={},G={},he={};return!Number.isNaN(m)&&m&&(j.fontSize=`${m}px`,V.fontSize=`${m+1}px`,G.fontSize=`${m}px`,he.fontSize=`${m}px`),g&&(V.color=g,G.color=g,he.color=g),{item:j,label:V,value:G,empty:he}}),u=a.ref(""),_=a.ref(""),N=a.ref(!1),$=async m=>{if(m){_.value&&(URL.revokeObjectURL(_.value),_.value="");try{const g=await L.platformDownloadFile({url:m}),j=new Blob([g==null?void 0:g.data],{type:(g==null?void 0:g.headers["content-type"])||"image/*"});_.value=URL.createObjectURL(j)}catch{_.value=""}}};a.watch(()=>r==null?void 0:r.backGroundImage,m=>{m&&(u.value=m)},{immediate:!0}),a.watch(u,m=>{$(m)},{immediate:!0});const S=()=>{var m;(m=p.value)==null||m.click()},q=async m=>{var V,G,he;const g=m.target,j=(V=g==null?void 0:g.files)==null?void 0:V[0];if(!j){g.value="";return}N.value=!0;try{const Te=new FormData;Te.append("file",j);const Se=await L.platformUploadFile(Te),Q=(he=(G=Se==null?void 0:Se.data)==null?void 0:G.result)==null?void 0:he.url;Q?(u.value=Q,o("update:backGroundImage",Q),$(Q),Qa.ElMessage.success("背景图片上传成功")):Qa.ElMessage.error("背景图片上传失败")}catch{Qa.ElMessage.error("背景图片上传失败")}finally{N.value=!1,g.value=""}},O=a.computed(()=>_.value?{backgroundImage:`url(${_.value})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{}),M=m=>dl.getComponent(m),Z=m=>{if(!m)return;const g=m.querySelector("input, textarea, .el-input__inner");g&&typeof g.focus=="function"&&g.focus()},C=(m,g,j)=>{r.disabled||(b.value=g,a.nextTick(()=>{Z(j.currentTarget)}))},w=()=>{b.value=null},E=m=>{const g=m!=null&&m.width&&m.width>0?m.width:1,V=`calc((100% - ${(g-1)*48}px) / ${g})`;return{flex:`0 0 ${V}`,maxWidth:V,minWidth:"0",boxSizing:"border-box"}};return(m,g)=>{const j=a.resolveComponent("el-tag");return a.openBlock(),a.createElementBlock("div",{class:"static-form-card",style:a.normalizeStyle(O.value),onClick:g[2]||(g[2]=V=>(r==null?void 0:r.backGround)==="Yes"&&S())},[(r==null?void 0:r.backGround)==="Yes"?(a.openBlock(),a.createElementBlock("div",{key:0,class:"form-backGround-upload",onClick:g[0]||(g[0]=a.withModifiers(V=>S(),["stop"]))},[a.createElementVNode("input",{ref_key:"bgUploadRef",ref:p,type:"file",accept:"image/*",style:{display:"none"},onChange:q},null,544),g[3]||(g[3]=a.createElementVNode("img",{src:dl._imports_0,class:"bg-upload-icon",alt:"上传背景"},null,-1))])):a.createCommentVNode("",!0),c.value.length?(a.openBlock(),a.createElementBlock("div",m3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.value,(V,G)=>{var he,Te,Se,Q,fe,J,ce,He;return a.openBlock(),a.createElementBlock("div",{key:G,class:"static-form-item",style:a.normalizeStyle({...E(V),...y.value.item}),onClick:g[1]||(g[1]=a.withModifiers(()=>{},["stop"]))},[V.label?(a.openBlock(),a.createElementBlock("div",{key:0,class:"static-form-label",style:a.normalizeStyle(y.value.label)},a.toDisplayString(V.label)+": ",5)):a.createCommentVNode("",!0),a.createElementVNode("div",{class:"static-form-value",style:a.normalizeStyle(y.value.value),onClick:Ca=>C(V,G,Ca)},[b.value===G&&V.field?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(M(((he=V.field)==null?void 0:he.type)??"Input")),{key:0,modelValue:V.field.value,"onUpdate:modelValue":Ca=>V.field.value=Ca,isEdit:!0,disabled:(Te=V.field)==null?void 0:Te.disabled,content:((Se=V.field)==null?void 0:Se.contents)??[],optionUrl:V.field,originalValue:(Q=V.field)==null?void 0:Q.value,config:(fe=V.field)==null?void 0:fe.config,configModel:((J=V.field)==null?void 0:J.prop)??((ce=V.field)==null?void 0:ce.name),selectedTagList:((He=V.field)==null?void 0:He.selectValue)??[],onBlur:w,onBlurChange:w},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[V.isStatus?(a.openBlock(),a.createBlock(j,{key:0,type:V.tagType,size:"Default",effect:"plain"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(V.value??"-"),1)]),_:2},1032,["type"])):(a.openBlock(),a.createElementBlock("span",g3,a.toDisplayString(V.value??"-"),1))],64))],12,y3)],4)}),128))])):(a.openBlock(),a.createElementBlock("div",{key:2,class:"static-form-empty",style:a.normalizeStyle(y.value.empty)}," 暂无数据 ",4))],4)}}}),kc=Kl._export_sfc(b3,[["__scopeId","data-v-f2084144"]]),k3={class:"form-content"},x3={title:"选择标签"},w3={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},_3={class:"col-operate-wrap"},E3={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},S3={__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:n}){const r=()=>{b.value=!1,p.value=!1,v.value=[]},o=l;a.computed(()=>{var Ae;const me=(Ae=De.value)==null?void 0:Ae.split("/");return(me==null?void 0:me.some(Xe=>(Xe==null?void 0:Xe.includes("updateLoading"))||(Xe==null?void 0:Xe.includes("loading"))))?!1:He.value==="view"});const s=n,c=a.ref([]),b=a.ref(!1),p=a.ref(!1),v=a.ref([]),{getFileExtension:y}=wi.useThreeSystem(),u=a.ref(),_=a.ref(!1),N=a.ref(!1),$=L.useUnit(L.pinia),{chooseTitle:S}=L.storeToRefs($),q=a.ref([]),O=a.ref(),M=a.ref(!1),Z=a.ref([]),C=ac(L.pinia),w=Et(L.pinia),E=a.ref(!1),m=a.ref(),g=a.ref(),j=a.ref(),V=a.ref(),G=a.ref(),he=L.useLoginState(L.pinia),{loginUserInfo:Te}=L.storeToRefs(he),Se=a.ref(),Q=a.ref(!0),fe=L.useModelComp(L.pinia),{tableViewContents:J,itemData:ce,isEdit:He,routeToChildPath:Ca,lockingPage:ne}=L.storeToRefs(fe),D=a.ref(null),re=a.ref(!1),be=a.ref(!1),ue=L.useMenuState(),{activeMenuPath:De}=L.storeToRefs(ue),pa=sa.useOriginalState(L.pinia),{originalPath:_a}=L.storeToRefs(pa),{compType:Ga,hasEditable:le}=Ws.useRole(),la=()=>!le(o.config,{type:Ga.FORM});a.computed(()=>De.value==="设备管理/试验设备"&&o.compName==="设备概要");const Ve=a.ref([]),wa=a.ref([{label:"编辑",value:"operable",checked:!1},{label:"禁用",value:"disabled",checked:!1}]),Fe=async me=>{be.value=me,await P("disabled",null,me,!0)},ze=async me=>{await P("operable",null,me,!0)};a.watch(()=>De.value,async()=>{c.value=[],v.value=[]},{deep:!0,immediate:!0});const Re=()=>{a.nextTick(()=>{F()})},Ze=me=>{var Je;c.value=(Je=c.value)==null?void 0:Je.map(Ae=>({...Ae,isFormColHidden:!(me!=null&&me.includes(Ae.label))}))};a.onUnmounted(()=>{D.value=null});const Ja=me=>{s("clickTrigger",me)},qa=async me=>{var Je,Ae,Xe,oe,_e,de;if(me===""){let We="";(Je=c.value)==null||Je.forEach(ba=>{ba!=null&&ba.isMain&&(We=ba==null?void 0:ba.value)});let ea=await sa.getItemData(Ca.value,sessionStorage.getItem("systemKey"),"");We=((de=(_e=(oe=(Xe=(Ae=ea==null?void 0:ea[0])==null?void 0:Ae.compData)==null?void 0:Xe.find(ba=>(ba==null?void 0:ba.key)==="mainRouters"))==null?void 0:oe.contents)==null?void 0:_e[0])==null?void 0:de.routerContent)+_a.value+We;let Pe=await sa.getItemData(We,sessionStorage.getItem("systemKey"),"");M.value=!0,Z.value=Pe==null?void 0:Pe.filter(ba=>(ba==null?void 0:ba.comp)!=="methodButton"),s("routeUrl",Z.value)}},F=()=>{var Je;const me=(Je=D.value)==null?void 0:Je.$el;me&&ja.Sortable.create(me,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:Ae=>{const{oldIndex:Xe,newIndex:oe}=Ae;if(Xe===oe)return;const _e=c.value.splice(Xe,1)[0];c.value.splice(oe,0,_e)}})},P=async(me,Je,Ae,Xe=!1)=>{try{fe.setRefreshCurStructure(!1)}catch{Qa.ElMessage.error("编辑处理失败")}},X=async(me,Je)=>{await P()},ie=async(me,Je)=>{me&&await P()},se=async(me,Je,Ae)=>{await P(Je,Ae,me,!1)},ga=(me,Je)=>{Se.value===Je?Q.value=!1:Q.value=!0,Se.value=Je==null?void 0:Je.changeProp},ra=me=>{V.value=me;const Je=o.itemData,Ae=Je==null?void 0:Je.find(Xe=>(Xe==null?void 0:Xe.key)==="backGroundImage");Ae?Ae.contents=me:Je==null||Je.push({key:"backGroundImage",contents:me}),s("change",{key:"backGroundImage",contents:me})},Le=async me=>{var Ae,Xe,oe,_e,de,We,ea,ka,Pe,ba,xa,fa,Ha,Ba,Ia;let Je=[];if((Ae=me==null?void 0:me.toString())!=null&&Ae.includes(".urdf")){if(me.includes(",")){Qa.ElMessage.error("当前版本仅允许单个urdf预览!");return}v.value=[{url:me,extension:y(me)}],p.value=!0,b.value=!0;return}if((Xe=me==null?void 0:me.toString())!=null&&Xe.includes(".stl")||(oe=me==null?void 0:me.toString())!=null&&oe.includes(".STL")||(_e=me==null?void 0:me.toString())!=null&&_e.includes(".obj")||(de=me==null?void 0:me.toString())!=null&&de.includes(".mtl")){const Ne=((We=me==null?void 0:me.toString())==null?void 0:We.split(",")).map(sl=>({url:sl,extension:y(sl)}));v.value=Ne,p.value=!1,b.value=!0;return}if((ea=me==null?void 0:me.toString())!=null&&ea.includes(".stl")||(ka=me==null?void 0:me.toString())!=null&&ka.includes(".STL")||(Pe=me==null?void 0:me.toString())!=null&&Pe.includes(".obj")||(ba=me==null?void 0:me.toString())!=null&&ba.includes(".mtl")){let $a,Ne=[],sl={};if(Array.isArray(me)?$a=me:$a=me==null?void 0:me.split(","),$a==null||$a.forEach(yl=>{yl.includes(".mtl")?Ne.push(yl):sl.blob=sl.blob?sl.blob+","+yl:yl}),(Ne==null?void 0:Ne.length)>0&&(sl.mtlBlobs=Ne),(fa=(xa=Object.values(sl))==null?void 0:xa[0])!=null&&fa.includes("http:"))Je.push(sl);else{const yl=new Blob([sl.blob],{type:"application/octet-stream;charset=UTF-8"});let Gl=URL.createObjectURL(yl),Ya="";(Ha=me==null?void 0:me.split("/"))==null||Ha.forEach((da,ha)=>{var ma;ha===((ma=me==null?void 0:me.split("/"))==null?void 0:ma.length)-1&&(Ya=da)}),(Ba=sl.blob)!=null&&Ba.includes(".stl")&&(Ya=(Ya==null?void 0:Ya.replaceAll(">",""))+".urdf"),O.value=[{name:Ya,blobUrl:Gl}],N.value=!0}}else{const $a=Vo.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),Ne=await Qa.axios.get(me,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{$a.close()}),sl=new Blob([Ne.data],{type:"application/octet-stream;charset=UTF-8"});let yl=URL.createObjectURL(sl),Gl="";(Ia=me==null?void 0:me.split("/"))==null||Ia.forEach((Ya,da)=>{var ha;da===((ha=me==null?void 0:me.split("/"))==null?void 0:ha.length)-1&&(Gl=Ya)}),O.value=[{name:Gl,blobUrl:yl}],N.value=!0}(Je==null?void 0:Je.length)>0&&w.setBlobUrls(Je)},Ee=()=>{N.value=!1},Ea=me=>{var _e,de,We,ea;const Je=(de=(_e=dl.safeClone(o.itemData))==null?void 0:_e.find(ka=>(ka==null?void 0:ka.key)==="formContent"))==null?void 0:de.contents,Ae=dl.safeClone(me.content);let Xe={};Ae&&((We=Object.values(Ae))==null?void 0:We.length)>0&&((ea=Object.values(Ae))==null||ea.forEach((ka,Pe)=>{Xe[Je[Pe].key]=ka}));const oe={content:Xe,index:o==null?void 0:o.index,buttonName:me==null?void 0:me.buttonName};s("change",oe)};a.computed(()=>"http://222.92.178.198:62001");const va=async me=>{var xa,fa,Ha,Ba,Ia,$a,Ne,sl,yl,Gl,Ya,da,ha,ma,Ye,Xa;if(!me)return;(fa=(xa=o==null?void 0:o.itemData)==null?void 0:xa.find(Ce=>(Ce==null?void 0:Ce.key)==="parentFormPath"))==null||fa.contents;let Je=J.value;(Je==null?void 0:Je.length)>0&&(Je=Je==null?void 0:Je.map(Ce=>{var ye,Oa,Ue,W;let Ke=(ye=Ce==null?void 0:Ce.key)==null?void 0:ye.split("/");return(o==null?void 0:o.compName)===(Ke==null?void 0:Ke[0])&&(Oa=c.value)!=null&&Oa.find(aa=>(aa==null?void 0:aa.prop)===(Ke==null?void 0:Ke[1]))&&(Ce.value=(W=(Ue=c.value)==null?void 0:Ue.find(aa=>(aa==null?void 0:aa.prop)===(Ke==null?void 0:Ke[1])))==null?void 0:W.value),Ce}),fe.setTableViewContents(Je));const Ae=dl.safeClone(o.itemData);let Xe=Ae==null?void 0:Ae.map(Ce=>{var Ke;return(Ce==null?void 0:Ce.key)==="formContent"&&((Ke=Ce.contents)==null||Ke.map((ye,Oa)=>{var Ue,W,aa,Ge,Be,El,il,bl,Wa,Za,Na,pe,Sa,Sl,Vl,Fl,lr,mr,Nl,or,Nr;return ye.type=(W=(Ue=c.value)==null?void 0:Ue.find(Ll=>(Ll==null?void 0:Ll.prop)===(ye==null?void 0:ye.prop)))==null?void 0:W.type,ye.options=ye!=null&&ye.options?ye.options:((Be=(Ge=(aa=ye==null?void 0:ye.key)==null?void 0:aa.split("$"))==null?void 0:Ge[1])==null?void 0:Be.length)>0?(Wa=(bl=Du((il=(El=ye==null?void 0:ye.key)==null?void 0:El.split("$"))==null?void 0:il[1]))==null?void 0:bl.split(","))==null?void 0:Wa.map(Ll=>({label:Ll,value:Ll})):[],(Za=ye==null?void 0:ye.key)!=null&&Za.includes("$")&&(ye.key=(pe=(Na=ye==null?void 0:ye.key)==null?void 0:Na.split("$"))==null?void 0:pe[0]),ye.signature=(Sl=(Sa=c.value)==null?void 0:Sa.find(Ll=>(Ll==null?void 0:Ll.prop)===(ye==null?void 0:ye.prop)))==null?void 0:Sl.signature,ye.isLoginUser=(Fl=(Vl=c.value)==null?void 0:Vl.find(Ll=>(Ll==null?void 0:Ll.prop)===(ye==null?void 0:ye.prop)))==null?void 0:Fl.isLoginUser,ye.value=(lr=Object.values(me))==null?void 0:lr[Oa],ye.isFormColHidden=(Nl=(mr=c.value)==null?void 0:mr.find(Ll=>(Ll==null?void 0:Ll.prop)===(ye==null?void 0:ye.prop)))==null?void 0:Nl.isFormColHidden,ye.isHideInForm=(Nr=(or=c.value)==null?void 0:or.find(Ll=>(Ll==null?void 0:Ll.prop)===(ye==null?void 0:ye.prop)))==null?void 0:Nr.isHideInForm,ye})),Ce}),oe=c.value,_e=(Ba=(Ha=dl.safeClone(Xe))==null?void 0:Ha.find(Ce=>(Ce==null?void 0:Ce.key)==="formContent"))==null?void 0:Ba.contents;if(oe=oe==null?void 0:oe.map(Ce=>{var Ke,ye;return(Ce==null?void 0:Ce.type)==="Select"&&((Ke=Ce==null?void 0:Ce.allSelectionContents)==null?void 0:Ke.length)>0&&(Ce.contactValue=me),Ce.value=(ye=_e==null?void 0:_e.find((Oa,Ue)=>((Oa==null?void 0:Oa.id)??Ue)===(Ce==null?void 0:Ce.id)))==null?void 0:ye.value,Ce}),!Q.value){s("contentChange",{contents:Xe,index:o.index});return}let de="",We=(Ne=($a=(Ia=dl.safeClone(Xe))==null?void 0:Ia.find(Ce=>(Ce==null?void 0:Ce.key)==="formContent"))==null?void 0:$a.contents)==null?void 0:Ne.find((Ce,Ke)=>{var ye,Oa,Ue;return(Ce==null?void 0:Ce.label)===Se.value||Ke.toString()===((Ue=(Oa=(ye=Se.value)==null?void 0:ye.split("t"))==null?void 0:Oa[1])==null?void 0:Ue.toString())}),ea=(sl=We==null?void 0:We.optionUrl)==null?void 0:sl.menuSelect,ka=!0;if((Ya=(Gl=(yl=dl.safeClone(Xe))==null?void 0:yl.find(Ce=>(Ce==null?void 0:Ce.key)==="formContent"))==null?void 0:Gl.contents)==null||Ya.forEach(Ce=>{var Ke,ye,Oa,Ue,W,aa;ka&&((Oa=(ye=(Ke=Ce==null?void 0:Ce.optionUrl)==null?void 0:Ke.groupSelect)==null?void 0:ye[1])!=null&&Oa.includes("["))&&(de=(W=(Ue=Ce==null?void 0:Ce.optionUrl)==null?void 0:Ue.groupSelect)==null?void 0:W[1],JSON.stringify(ea)===JSON.stringify((aa=Ce==null?void 0:Ce.optionUrl)==null?void 0:aa.menuSelect)&&(ka=!1))}),(da=We==null?void 0:We.optionUrl)!=null&&da.menuSelect&&Q.value){let Ce=await vt(We),Ke,ye=(ha=We==null?void 0:We.optionUrl)==null?void 0:ha.menuSelect;if(Ce==null||Ce.forEach(Oa=>{var Ue,W,aa,Ge,Be,El,il,bl,Wa,Za;de===((W=(Ue=We==null?void 0:We.optionUrl)==null?void 0:Ue.groupSelect)==null?void 0:W[1])&&((Be=(Ge=(aa=We==null?void 0:We.optionUrl)==null?void 0:aa.groupSelect)==null?void 0:Ge[1])!=null&&Be.includes("["))&&((Za=dl.safeClone(Oa))==null?void 0:Za[(Wa=(bl=(il=(El=We==null?void 0:We.optionUrl)==null?void 0:El.groupSelect)==null?void 0:il[1])==null?void 0:bl.replaceAll("[",""))==null?void 0:Wa.replaceAll("]","")])===(We==null?void 0:We.value)&&(Ke=Oa)}),Ke){let Oa=dl.safeClone(oe);Oa=Oa==null?void 0:Oa.map(W=>{var aa,Ge,Be,El,il,bl,Wa,Za,Na,pe,Sa;return(Ke!=null&&Ke[W==null?void 0:W.label]||Ke!=null&&Ke[(El=(Be=(Ge=(aa=W==null?void 0:W.optionUrl)==null?void 0:aa.groupSelect)==null?void 0:Ge[1])==null?void 0:Be.replaceAll("[",""))==null?void 0:El.replaceAll("]","")])&&((Wa=(bl=(il=W==null?void 0:W.optionUrl)==null?void 0:il.groupSelect)==null?void 0:bl[1])!=null&&Wa.includes("["))&&ye!=null&&ye.every(Sl=>{var Vl,Fl;return(Fl=(Vl=W==null?void 0:W.optionUrl)==null?void 0:Vl.menuSelect)==null?void 0:Fl.includes(Sl)})&&(W.value=(Ke==null?void 0:Ke[W==null?void 0:W.label])||(Ke==null?void 0:Ke[(Sa=(pe=(Na=(Za=W==null?void 0:W.optionUrl)==null?void 0:Za.groupSelect)==null?void 0:Na[1])==null?void 0:pe.replaceAll("[",""))==null?void 0:Sa.replaceAll("]","")]),Array.isArray(W.value)&&W.value.every(Sl=>(Sl==null?void 0:Sl.url)&&(Sl==null?void 0:Sl.name))&&(W.type="Upload")),W}),Oa=Oa==null?void 0:Oa.map(W=>{var aa,Ge,Be;return(aa=W==null?void 0:W.optionUrl)!=null&&aa.oldMenuSelect&&(W.optionUrl.menuSelect=(Be=(Ge=dl.safeClone(W))==null?void 0:Ge.optionUrl)==null?void 0:Be.oldMenuSelect),W}),c.value=dl.safeClone(Oa);let Ue=dl.safeClone(Oa);Ue=Ue==null?void 0:Ue.map(W=>{var aa,Ge,Be,El,il,bl;return(Ge=(aa=W==null?void 0:W.optionUrl)==null?void 0:aa.menuSelect)!=null&&Ge.some(Wa=>Wa==null?void 0:Wa.includes("["))&&(W.optionUrl.oldMenuSelect=(El=(Be=dl.safeClone(W))==null?void 0:Be.optionUrl)==null?void 0:El.menuSelect,W.optionUrl.menuSelect=(bl=(il=W==null?void 0:W.optionUrl)==null?void 0:il.menuSelect)==null?void 0:bl.map(Wa=>{var Za,Na,pe,Sa;if(Wa!=null&&Wa.includes("[")){let Sl=(Na=(Za=Wa==null?void 0:Wa.replaceAll("[","").replaceAll("]",""))==null?void 0:Za.split(":"))==null?void 0:Na[1];Wa=(Sa=(pe=dl.safeClone(Oa))==null?void 0:pe.find(Vl=>(Vl==null?void 0:Vl.label)===Sl))==null?void 0:Sa.value}return Wa})),W}),c.value=Ue}else c.value=oe;Xe=Xe==null?void 0:Xe.map(Oa=>{var Ue;return(Oa==null?void 0:Oa.key)==="formContent"&&(Oa.contents=(Ue=Oa.contents)==null?void 0:Ue.map(W=>{var aa,Ge,Be,El;return W.value=((Ge=(aa=c.value)==null?void 0:aa.find(il=>(il==null?void 0:il.label)===(W==null?void 0:W.key)))==null?void 0:Ge.value)??(W==null?void 0:W.value),W.type=((El=(Be=c.value)==null?void 0:Be.find(il=>(il==null?void 0:il.prop)===(W==null?void 0:W.key)))==null?void 0:El.type)??(W==null?void 0:W.type),W})),Oa})}Q.value=!1,s("contentChange",{contents:Xe,index:o.index});let Pe=[],ba=[];if((Ye=dl.safeClone((ma=Xe==null?void 0:Xe.find(Ce=>(Ce==null?void 0:Ce.key)==="formContent"))==null?void 0:ma.contents))==null||Ye.forEach(Ce=>{var Ke;Array.isArray(Ce==null?void 0:Ce.value)&&((Ke=Ce==null?void 0:Ce.value)!=null&&Ke.find(ye=>{var Oa;return(Oa=ye==null?void 0:ye.url)==null?void 0:Oa.includes(".obj")}))&&(ba=Ce==null?void 0:Ce.value)}),(ba==null?void 0:ba.length)>0){const Ce=(Xa=dl.safeClone(ba))==null?void 0:Xa.filter(Ke=>{var ye;return(ye=Ke==null?void 0:Ke.url)==null?void 0:ye.includes(".obj")});Ce==null||Ce.forEach(Ke=>{var Oa,Ue,W,aa;const ye=(Oa=ba==null?void 0:ba.filter(Ge=>{var Be;return(Ge==null?void 0:Ge.name)===(Ke==null?void 0:Ke.name)&&((Be=Ge==null?void 0:Ge.url)==null?void 0:Be.includes(".mtl"))}))==null?void 0:Oa.map(Ge=>Ge==null?void 0:Ge.url);Pe.push({objUrl:Ke==null?void 0:Ke.url,mtlUrls:((Ue=ba==null?void 0:ba.filter(Ge=>{var Be;return(Ge==null?void 0:Ge.name)===(Ke==null?void 0:Ke.name)&&((Be=Ge==null?void 0:Ge.url)==null?void 0:Be.includes(".mtl"))}))==null?void 0:Ue.length)===1?(aa=(W=ba==null?void 0:ba.filter(Ge=>{var Be;return(Ge==null?void 0:Ge.name)===(Ke==null?void 0:Ke.name)&&((Be=Ge==null?void 0:Ge.url)==null?void 0:Be.includes(".mtl"))}))==null?void 0:W[0])==null?void 0:aa.url:ye})}),w.setObjUrl(Pe)}},Va=(me,Je,Ae)=>{let Xe="";const oe=Je==null?void 0:Je.map(_e=>{var de;return(de=_e==null?void 0:_e.value)==null?void 0:de.pageData});return oe==null||oe.forEach(_e=>{var de;(_e==null?void 0:_e.name)===(me==null?void 0:me[0])&&((de=_e==null?void 0:_e.compData)==null||de.forEach(We=>{var ea;(We==null?void 0:We.key)==="formContent"&&((ea=We==null?void 0:We.contents)==null||ea.forEach(ka=>{var Pe;(ka==null?void 0:ka.prop)===(me==null?void 0:me[1])&&(Xe=(ka==null?void 0:ka.value)===""?sa.judgeContents((Pe=dl.safeClone(ka))==null?void 0:Pe.optionUrl,Ae):ka==null?void 0:ka.value)}))}))}),Xe},Pa=(me,Je,Ae,Xe)=>{var We,ea;let oe="",_e="";(We=dl.safeClone(Je))==null||We.forEach((ka,Pe)=>{ka!=null&&ka.includes("[")?_e=_e+_a.value+me[Pe]:_e=_e===""?_e+ka:_e+"/"+ka});let de=(ea=Xe[_e])==null?void 0:ea.map(ka=>{var Pe;return(Pe=ka==null?void 0:ka.value)==null?void 0:Pe.pageData});return de==null||de.forEach(ka=>{var Pe;(ka==null?void 0:ka.name)===(Ae==null?void 0:Ae[0])&&((Pe=ka==null?void 0:ka.compData)==null||Pe.forEach(ba=>{var xa;(ba==null?void 0:ba.key)==="formContent"&&((xa=ba==null?void 0:ba.contents)==null||xa.forEach(fa=>{(fa==null?void 0:fa.prop)===(Ae==null?void 0:Ae[1])&&(oe=fa==null?void 0:fa.value)}))}))}),oe};return a.watch(()=>o.itemData,async()=>{var xa,fa,Ha,Ba,Ia,$a,Ne,sl,yl,Gl,Ya,da,ha,ma,Ye,Xa,Ce,Ke,ye,Oa,Ue,W,aa;const me=(xa=o.itemData)==null?void 0:xa.find(Ge=>(Ge==null?void 0:Ge.key)==="formContent"),Je=(fa=dl.safeClone(o.itemData))==null?void 0:fa.find(Ge=>(Ge==null?void 0:Ge.key)==="formButton"),Ae=(Ha=dl.safeClone(o.itemData))==null?void 0:Ha.find(Ge=>(Ge==null?void 0:Ge.key)==="formFlex"),Xe=(Ba=dl.safeClone(o.itemData))==null?void 0:Ba.find(Ge=>(Ge==null?void 0:Ge.key)==="formWrap"),oe=(Ia=dl.safeClone(o.itemData))==null?void 0:Ia.find(Ge=>(Ge==null?void 0:Ge.key)==="enableWrap"),_e=($a=dl.safeClone(o.itemData))==null?void 0:$a.find(Ge=>(Ge==null?void 0:Ge.key)==="textSize"),de=(Ne=dl.safeClone(o.itemData))==null?void 0:Ne.find(Ge=>(Ge==null?void 0:Ge.key)==="textRGBA"),We=(sl=dl.safeClone(o.itemData))==null?void 0:sl.find(Ge=>(Ge==null?void 0:Ge.key)==="backGround"),ea=(yl=dl.safeClone(o.itemData))==null?void 0:yl.find(Ge=>(Ge==null?void 0:Ge.key)==="backGroundImage");(Xe==null?void 0:Xe.contents)==="纵向"?_.value=!1:_.value=!0;const ka=Number(_e==null?void 0:_e.contents);m.value=Number.isNaN(ka)?void 0:ka,g.value=de==null?void 0:de.contents,j.value=We==null?void 0:We.contents,V.value=ea==null?void 0:ea.contents;const Pe=oe==null?void 0:oe.contents;if(Pe===void 0?E.value=no.BLOCK:typeof Pe=="boolean"?E.value=Pe?no.ORDINARY:no.BLOCK:E.value=Pe,G.value=typeof(Ae==null?void 0:Ae.contents)!="boolean"?!(!(Ae!=null&&Ae.contents)===""||((Gl=Ae==null?void 0:Ae.contents)==null?void 0:Gl.toUpperCase())==="VERTICAL"):Ae==null?void 0:Ae.contents,((Ya=me==null?void 0:me.contents)==null?void 0:Ya.length)>0&&Array.isArray(me==null?void 0:me.contents)){let Ge=o.allMapContents;const Be=(ha=(da=dl.safeClone(me))==null?void 0:da.contents)==null?void 0:ha.map((pe,Sa)=>{var Cr,zr,Mr,Dr,Vr,Or,ir,gn,Gr,rn,Nn,bn,vn;let Sl=(pe==null?void 0:pe.label)??(pe==null?void 0:pe.key)??"";pe==null||pe.type;let Vl=(pe==null?void 0:pe.options)??[];if((Cr=pe==null?void 0:pe.key)!=null&&Cr.includes("$")&&(Sl=(zr=dl.safeClone(pe==null?void 0:pe.key).split("$"))==null?void 0:zr[0],((Dr=(Mr=dl.safeClone(pe==null?void 0:pe.key).split("$"))==null?void 0:Mr[1])==null?void 0:Dr.length)>0)){const[fr,Hl]=(Or=(Vr=dl.safeClone(pe==null?void 0:pe.key).split("$"))==null?void 0:Vr[1])==null?void 0:Or.split(/[()]/);(ir=sa.FormType.find(cr=>(cr==null?void 0:cr.key)===fr))==null||ir.value,((gn=Hl==null?void 0:Hl.split(","))==null?void 0:gn.length)>0&&(Vl=(Gr=Hl==null?void 0:Hl.split(","))==null?void 0:Gr.map(cr=>({label:cr,value:cr})))}let Fl=pe==null?void 0:pe.options;((rn=pe==null?void 0:pe.optionUrl)==null?void 0:rn.selectRelateType)==="自定义绑定"&&(Fl=(bn=(Nn=pe==null?void 0:pe.optionUrl)==null?void 0:Nn.defaultSelect)==null?void 0:bn.map(fr=>({label:fr,value:fr})));let lr=(pe==null?void 0:pe.menuPath)??[],mr=(pe==null?void 0:pe.groups)??[],Nl=(pe==null?void 0:pe.columns)??[],or=!1,Nr=(pe==null?void 0:pe.isFormColHidden)??!1,Ll="",er=pe!=null&&pe.value?pe.value:(Fl==null?void 0:Fl.length)>0?(vn=Fl==null?void 0:Fl[0])==null?void 0:vn.value:(pe==null?void 0:pe.value)??"",Qr=!1,Ir="Input";return((Fl==null?void 0:Fl.length)>0||(lr==null?void 0:lr.length)>0)&&(Ir="Select"),(Array.isArray(Ll)&&(Ll!=null&&Ll.every(fr=>(fr==null?void 0:fr.name)&&(fr==null?void 0:fr.url)))||Array.isArray(er)&&(er!=null&&er.every(fr=>(fr==null?void 0:fr.name)&&(fr==null?void 0:fr.url))))&&(Ir="upload"),pe!=null&&pe.isMainUrl&&(Ir="Url"),{label:Sl??"",name:Sl??"t"+Sa,prop:Sl??dl.safeClone(pe==null?void 0:pe.key),type:(pe==null?void 0:pe.type)??Ir,value:(pe==null?void 0:pe.type)==="Date"&&er===""?new Date:er,id:(pe==null?void 0:pe.id)??Sa,contents:(Fl==null?void 0:Fl.length)>0?Fl:Vl??[],width:(pe==null?void 0:pe.width)??1,isLoginUser:or,config:pe==null?void 0:pe.config,optionUrl:(pe==null?void 0:pe.optionUrl)??pe,isFormColHidden:Nr,isHideInForm:(pe==null?void 0:pe.isHideInForm)??!1,signature:Qr,isMain:pe==null?void 0:pe.isMain,required:(pe==null?void 0:pe.required)??!1,isMainUrl:pe==null?void 0:pe.isMainUrl,operable:(pe==null?void 0:pe.operable)??!1,disabled:(pe==null?void 0:pe.disabled)??!1,isSync:pe==null?void 0:pe.isSync,menus:lr,groups:mr,words:Nl,allSelectionContents:pe==null?void 0:pe.allContents,filterContent:pe==null?void 0:pe.filterContents}}),El=Be==null?void 0:Be.map(pe=>pe==null?void 0:pe.value);let il="";El==null||El.forEach(pe=>{pe!==""&&pe!==void 0&&(il=il===""?pe:il+"/"+pe)}),C.setSelectArray(El),C.setSelectString(il);let bl=(ma=dl.safeClone(Be))==null?void 0:ma.map(pe=>(pe!=null&&pe.value&&sa.IsJson(pe==null?void 0:pe.value)&&Array.isArray(JSON.parse(pe==null?void 0:pe.value))&&(pe.value=JSON.parse(pe.value)),pe)),Wa={};bl==null||bl.forEach(pe=>{Wa[pe.label]=pe==null?void 0:pe.value}),bl=bl==null?void 0:bl.map(pe=>{var Sa,Sl,Vl,Fl,lr,mr,Nl,or,Nr;if((pe==null?void 0:pe.type)==="Select"&&((Sa=pe==null?void 0:pe.allSelectionContents)==null?void 0:Sa.length)>0&&(pe.contactValue=Wa),(Vl=(Sl=pe==null?void 0:pe.optionUrl)==null?void 0:Sl.menuSelect)!=null&&Vl.some(Ll=>Ll==null?void 0:Ll.includes("["))){let Ll="";pe.optionUrl.oldMenuSelect=(lr=(Fl=dl.safeClone(pe))==null?void 0:Fl.optionUrl)==null?void 0:lr.menuSelect,pe.optionUrl.menuSelect=(Nl=(mr=pe==null?void 0:pe.optionUrl)==null?void 0:mr.menuSelect)==null?void 0:Nl.map(er=>{var Qr,Ir,Ar,Cr,zr,Mr;if(er!=null&&er.includes("[")){let Dr=(Ir=(Qr=er==null?void 0:er.replaceAll("[","").replaceAll("]",""))==null?void 0:Qr.split(":"))==null?void 0:Ir[1];Ll=Va((Ar=er==null?void 0:er.replaceAll("[","").replaceAll("]",""))==null?void 0:Ar.split(":"),Ge==null?void 0:Ge[De.value],Ge),er=((zr=(Cr=dl.safeClone(bl))==null?void 0:Cr.find(Vr=>(Vr==null?void 0:Vr.label)===Dr))==null?void 0:zr.value)||Va((Mr=er==null?void 0:er.replaceAll("[","").replaceAll("]",""))==null?void 0:Mr.split(":"),Ge==null?void 0:Ge[De.value],Ge)}return er}),Ll!==""&&pe.value===""&&(pe.value=Pa(pe.optionUrl.menuSelect,pe.optionUrl.oldMenuSelect,(or=pe==null?void 0:pe.optionUrl)==null?void 0:or.groupSelect,Ge),Array.isArray(pe.value)&&((Nr=pe.value)!=null&&Nr.every(er=>er==null?void 0:er.url))&&(pe.type="UPLOAD"))}return pe}),c.value=bl,be.value=((Ye=c.value)==null?void 0:Ye.every(pe=>pe==null?void 0:pe.disabled))||ne.value===De.value,re.value=(Xa=c.value)==null?void 0:Xa.every(pe=>pe==null?void 0:pe.operable),Ve.value=(Ce=c.value)==null?void 0:Ce.map(pe=>pe==null?void 0:pe.label);let Za=[],Na=[];if((Ke=dl.safeClone(c.value))==null||Ke.forEach(pe=>{var Sa;Array.isArray(pe==null?void 0:pe.value)&&((Sa=pe==null?void 0:pe.value)!=null&&Sa.find(Sl=>{var Vl;return(Vl=Sl==null?void 0:Sl.url)==null?void 0:Vl.includes(".obj")}))&&(Na=pe==null?void 0:pe.value)}),(Na==null?void 0:Na.length)>0){const pe=(ye=dl.safeClone(Na))==null?void 0:ye.filter(Sa=>{var Sl;return(Sl=Sa==null?void 0:Sa.url)==null?void 0:Sl.includes(".obj")});pe==null||pe.forEach(Sa=>{var Vl,Fl,lr,mr;const Sl=(Vl=Na==null?void 0:Na.filter(Nl=>{var or;return(Nl==null?void 0:Nl.name)===(Sa==null?void 0:Sa.name)&&((or=Nl==null?void 0:Nl.url)==null?void 0:or.includes(".mtl"))}))==null?void 0:Vl.map(Nl=>Nl==null?void 0:Nl.url);Za.push({objUrl:Sa==null?void 0:Sa.url,mtlUrls:((Fl=Na==null?void 0:Na.filter(Nl=>{var or;return(Nl==null?void 0:Nl.name)===(Sa==null?void 0:Sa.name)&&((or=Nl==null?void 0:Nl.url)==null?void 0:or.includes(".mtl"))}))==null?void 0:Fl.length)===1?(mr=(lr=Na==null?void 0:Na.filter(Nl=>{var or;return(Nl==null?void 0:Nl.name)===(Sa==null?void 0:Sa.name)&&((or=Nl==null?void 0:Nl.url)==null?void 0:or.includes(".mtl"))}))==null?void 0:lr[0])==null?void 0:mr.url:Sl})}),w.setObjUrl(Za)}(Oa=dl.safeClone(c.value))==null||Oa.forEach(pe=>{var Sa,Sl,Vl,Fl,lr,mr,Nl,or,Nr,Ll,er,Qr,Ir;if((Sl=(Sa=pe==null?void 0:pe.value)==null?void 0:Sa.toString())!=null&&Sl.includes(".stl")||(Fl=(Vl=pe==null?void 0:pe.value)==null?void 0:Vl.toString())!=null&&Fl.includes(".STL")||(mr=(lr=pe==null?void 0:pe.value)==null?void 0:lr.toString())!=null&&mr.includes(".obj")||(or=(Nl=pe==null?void 0:pe.value)==null?void 0:Nl.toString())!=null&&or.includes(".mtl")||(Ll=(Nr=pe==null?void 0:pe.value)==null?void 0:Nr.toString())!=null&&Ll.includes(".urdf")){let Ar={},Cr=[],zr;Array.isArray(pe==null?void 0:pe.value)?zr=pe==null?void 0:pe.value:zr=(er=pe==null?void 0:pe.value)==null?void 0:er.split(","),zr==null||zr.forEach(Mr=>{Mr.includes(".mtl")?Cr.push(Mr):Ar.blob=Ar.blob==="undefined"?Mr:Ar.blob+","+Mr}),(Cr==null?void 0:Cr.length)>0&&(Ar.mtlBlobs=Cr),(Ir=(Qr=Object.values(Ar))==null?void 0:Qr[0])!=null&&Ir.includes("http:")}})}else c.value=[];let ba=J.value;if((ba==null?void 0:ba.length)>0&&(ba=ba==null?void 0:ba.map(Ge=>{var El,il,bl,Wa;let Be=(El=Ge==null?void 0:Ge.key)==null?void 0:El.split("/");return(o==null?void 0:o.compName)===(Be==null?void 0:Be[0])&&(il=c.value)!=null&&il.find(Za=>(Za==null?void 0:Za.prop)===(Be==null?void 0:Be[1]))&&(Ge.value=(Wa=(bl=c.value)==null?void 0:bl.find(Za=>(Za==null?void 0:Za.prop)===(Be==null?void 0:Be[1])))==null?void 0:Wa.value),Ge}),fe.setTableViewContents(ba)),o!=null&&o.formRules)u.value=o==null?void 0:o.formRules;else{let Ge={};(Ue=dl.safeClone(c).value)==null||Ue.forEach(Be=>{((Be==null?void 0:Be.isMain)===!0||(Be==null?void 0:Be.required)===!0)&&(Ge[(Be==null?void 0:Be.prop)??(Be==null?void 0:Be.name)]=[{required:!0,message:`${(Be==null?void 0:Be.label)||(Be==null?void 0:Be.prop)||(Be==null?void 0:Be.name)}不能为空`}])}),u.value=Ge}if(((W=Je==null?void 0:Je.contents)==null?void 0:W.length)>0){const Ge=[];(aa=Je==null?void 0:Je.contents)==null||aa.forEach((Be,El)=>{(Be==null?void 0:Be.label)!==""&&Ge.push({label:(Be==null?void 0:Be.label)??"",id:(Be==null?void 0:Be.id)??El,type:(Be==null?void 0:Be.type)??"",background:Be==null?void 0:Be.background})}),q.value=Ge}else q.value=[]},{deep:!0,immediate:!0}),a.watch(()=>ne.value,me=>{be.value=me===De.value},{immediate:!0}),(me,Je)=>{var We;const Ae=a.resolveComponent("svg-icon"),Xe=a.resolveComponent("el-switch"),oe=a.resolveComponent("el-checkbox"),_e=a.resolveComponent("el-popover"),de=a.resolveComponent("el-checkbox-group");return a.openBlock(),a.createElementBlock("div",k3,[E.value===a.unref(no).TEXT?(a.openBlock(),a.createBlock(kc,{key:0,itemData:l.itemData,compName:l.compName,fields:c.value,textSize:m.value,textColor:g.value,backGround:j.value,backGroundImage:V.value,disabled:be.value||la(),"onUpdate:backGroundImage":ra},null,8,["itemData","compName","fields","textSize","textColor","backGround","backGroundImage","disabled"])):E.value===a.unref(no).BLOCK?(a.openBlock(),a.createBlock(nf,{key:1,items:(We=c.value)==null?void 0:We.map(ea=>({label:ea!=null&&ea.isHideInForm?"":ea==null?void 0:ea.label,value:ea==null?void 0:ea.value,width:(ea==null?void 0:ea.width)??1,field:ea})),textSize:m.value,textColor:g.value,backGround:j.value,backGroundImage:V.value,disabled:be.value||la(),"onUpdate:backGroundImage":ra},null,8,["items","textSize","textColor","backGround","backGroundImage","disabled"])):(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass({"form-shadow-box":E.value===a.unref(no).ORDINARY})},[a.createVNode(dl.ssForm,{rowContents:c.value,formRules:u.value,buttonValue:q.value,isRowFlex:!1,isEnableWrap:!0,textSize:m.value,textColor:g.value,backGround:j.value,backGroundImage:V.value,onOnButtonClick:Ea,onChange:va,formDisabled:be.value||la(),formLabelsOperable:re.value,isButtonRow:_.value,onPreview:Le,onBlurChange:ga,onHandleColEditChange:X,onHandleColTypeChange:ie,onRouteUrl:qa,onClickTrigger:Ja,"onUpdate:backGroundImage":ra},{operateCol:a.withCtx(({renderColumns:ea,formDisabled:ka,formLabelsOperable:Pe})=>[a.createVNode(_e,{title:"选择操作的标签",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:Re},{reference:a.withCtx(()=>[a.createElementVNode("span",x3,[a.createVNode(Ae,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})])]),default:a.withCtx(()=>[a.createElementVNode("div",w3,[Je[1]||(Je[1]=a.createElementVNode("div",{class:"group-title"},"表单操作",-1)),a.createVNode(Xe,{"model-value":ka,"active-text":"禁用","inactive-text":"",onChange:Fe,style:{"margin-right":"8px"}},null,8,["model-value"]),a.createVNode(Xe,{"model-value":Pe,"active-text":"编辑所有标签","inactive-text":"",onChange:ze},null,8,["model-value"]),Je[2]||(Je[2]=a.createElementVNode("div",{class:"group-title"},"表单列操作",-1)),a.createVNode(de,{modelValue:Ve.value,"onUpdate:modelValue":Je[0]||(Je[0]=ba=>Ve.value=ba),style:{height:"100%"},ref_key:"checkboxGroupRef",ref:D,onChange:Ze},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(ea,ba=>(a.openBlock(),a.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:ba.label},[a.createVNode(oe,{value:ba.label,style:{width:"100%",marginRight:0}},{default:a.withCtx(()=>[a.createElementVNode("span",null,a.toDisplayString(ba.label),1)]),_:2},1032,["value"]),a.createVNode(_e,{title:"标签操作",placement:"left",teleported:!1,trigger:"hover"},{reference:a.withCtx(()=>[a.createVNode(Ae,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:a.withCtx(()=>{var xa;return[a.createElementVNode("div",_3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((xa=Object.keys(ba))==null?void 0:xa.filter(fa=>{var Ha;return(Ha=wa.value)==null?void 0:Ha.find(Ba=>(Ba==null?void 0:Ba.value)===fa)}),fa=>{var Ha,Ba;return a.openBlock(),a.createElementBlock("div",{key:fa},[a.createVNode(dl._sfc_main$1,{value:ba==null?void 0:ba[fa],"active-text":(Ba=(Ha=wa.value)==null?void 0:Ha.find(Ia=>(Ia==null?void 0:Ia.value)===fa))==null?void 0:Ba.label,inactiveText:"",onChange:Ia=>se(Ia,fa,ba)},null,8,["value","active-text","onChange"])])}),128))])]}),_:2},1024),a.createElementVNode("span",E3,[a.createVNode(Ae,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:2},1032,["modelValue"])])]),_:2},1024)]),_:1},8,["rowContents","formRules","buttonValue","textSize","textColor","backGround","backGroundImage","formDisabled","formLabelsOperable","isButtonRow"])],2)),N.value?(a.openBlock(),a.createBlock(dl.ssFilePreview,{key:3,fileDataList:O.value,onDestroy:Ee},null,8,["fileDataList"])):a.createCommentVNode("",!0),b.value?(a.openBlock(),a.createBlock(xr.ssDialog,{key:4,visible:b.value,onBeforeDestroy:r,style:{height:"700px",width:"1000px"}},{default:a.withCtx(()=>[a.createVNode(wi.ThreeViewerHost,{files:v.value,onGetAnimationData:me.onAnimationData},null,8,["files","onGetAnimationData"])]),_:1},8,["visible"])):a.createCommentVNode("",!0)])}}},ys=Kl._export_sfc(S3,[["__scopeId","data-v-14c62655"]]),Ti=a.ref(0),xc=l=>{var n;return!l||(l==null?void 0:l.length)===0?[]:(n=L.cloneDeep(l))==null?void 0:n.map(o=>(Ti.value++,o={label:(o==null?void 0:o.label)??"",prop:(o==null?void 0:o.label)==="操作"?"operate":o==null?void 0:o.prop,width:o!=null&&o.width?parseInt(o.width):"",fixed:(o==null?void 0:o.fixed)??void 0,sortable:(o==null?void 0:o.sortable)??!1,align:(o==null?void 0:o.align)??"left",showOverflowTooltip:(o==null?void 0:o.showOverflowTooltip)??!0,isNotDrag:(o==null?void 0:o.isNotDrag)??!1,isEditCol:(o==null?void 0:o.isEditCol)??!1,isOperate:(o==null?void 0:o.isOperate)??!1,id:(o==null?void 0:o.id)??Ti.value,children:xc(o==null?void 0:o.children)},o))},C3=l=>{var r;return(r=L.cloneDeep(l))==null?void 0:r.map(o=>(Ti.value++,o={label:(o==null?void 0:o.label)??"",prop:(o==null?void 0:o.label)==="操作"?"operate":o==null?void 0:o.prop,width:o!=null&&o.width?parseInt(o.width):"",fixed:(o==null?void 0:o.fixed)??void 0,sortable:(o==null?void 0:o.sortable)??!1,align:(o==null?void 0:o.align)??"left",showOverflowTooltip:(o==null?void 0:o.showOverflowTooltip)??!0,isNotDrag:(o==null?void 0:o.isNotDrag)??!1,isEditCol:(o==null?void 0:o.isEditCol)??!1,isOperate:(o==null?void 0:o.isOperate)??!1,id:(o==null?void 0:o.id)??Ti.value,children:xc(o==null?void 0:o.children)},o))},wc=(l,n)=>{var r;return l!=null&&l.find(o=>(o==null?void 0:o.id)===n)?(r=L.cloneDeep(l))==null?void 0:r.filter(s=>(s==null?void 0:s.id)!==n):(l=l==null?void 0:l.map(o=>(o.children=wc(o==null?void 0:o.children,n),o)),l)},_c=(l,n)=>{var r;return l!=null&&l.find(o=>(o==null?void 0:o.id)===(n==null?void 0:n.id))?(r=L.cloneDeep(l))==null?void 0:r.map(s=>((s==null?void 0:s.id)===(n==null?void 0:n.id)&&(s=n),s)):(l=l==null?void 0:l.map(o=>(o.children=_c(o==null?void 0:o.children,n),o)),l)},Ec=(l,n)=>{var r;return l!=null&&l.find(o=>{var s;return(o==null?void 0:o.id)===((s=n==null?void 0:n.contents)==null?void 0:s.id)})?(r=L.cloneDeep(l))==null?void 0:r.map(s=>{var c;return(s==null?void 0:s.id)===((c=n==null?void 0:n.contents)==null?void 0:c.id)&&(s=n==null?void 0:n.contents),s}):(l=l==null?void 0:l.map(o=>(o.children=Ec(o==null?void 0:o.children,n),o)),l)},Sc=(l,n)=>{var r;return l!=null&&l.find(o=>(o==null?void 0:o.id)===(n==null?void 0:n.id))?(r=L.cloneDeep(l))==null?void 0:r.map(s=>((s==null?void 0:s.id)===(n==null?void 0:n.id)&&(s!=null&&s.children||(s.children=[]),s.children.push(n.contents)),s)):(l=l==null?void 0:l.map(o=>(o.children=Sc(o==null?void 0:o.children,n),o)),l)},Ql=[{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"}],D3=[{label:"查看",value:"view"},{label:"修改",value:"fix"},{label:"删除",value:"delete"},{label:"三维算例",value:"modelExample"}],B3=[{label:"新增",value:"add"}],Ln=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:B3},{key:"background",label:"按钮背景色",type:"Color"}],$n=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:D3},{key:"textColor",label:"按钮颜色",type:"Color"}],N3={class:"table-header-child"},T3={class:"table-header-child-main"},A3={class:"table-header-child-content"},z3={class:"table-header-child-content-item"},M3={class:"fix-button"},I3={key:0},O3={class:"form-content"},L3={__name:"tableNewChild",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(l,{emit:n}){const r=l,o=n,s=a.ref(!1),c=a.ref(""),b=sa.useTableComp(L.pinia),{tableIndex:p}=L.storeToRefs(b);a.ref(0);const v=a.ref(""),y=a.ref([]),u=a.ref([]),_=C=>{var E;s.value=!0;let w=[];Ql==null||Ql.forEach(m=>{let g=L.cloneDeep(p.value)+1;b.setTableIndex(g),w.push({label:m==null?void 0:m.label,name:m==null?void 0:m.label,type:m.type,value:C[m.key],id:p.value,contents:m==null?void 0:m.options})}),C!=null&&C.children&&((E=C==null?void 0:C.children)==null?void 0:E.length)>0&&w.push({children:C==null?void 0:C.children,isFormColHidden:!0}),v.value=C==null?void 0:C.id,y.value=w,u.value=w},N=C=>{o("fixChange",L.cloneDeep(C))},$=C=>{o("deleteChange",L.cloneDeep(C))},S=C=>{s.value=!0;let w=[];Ql==null||Ql.forEach(E=>{let m=L.cloneDeep(p.value)+1;b.setTableIndex(m),w.push({label:E==null?void 0:E.label,name:E==null?void 0:E.label,type:E.type,value:"",id:p.value,contents:E==null?void 0:E.options})}),c.value=C==null?void 0:C.id,y.value=w,u.value=w},q=C=>{let w=L.cloneDeep(u.value);w=w==null?void 0:w.map(E=>(E.children||(E.value=C==null?void 0:C[E.name]),E)),u.value=w},O=()=>{var w,E;y.value=u.value;let C={};if(v.value!=="")C.id=v.value,(w=y.value)==null||w.forEach(m=>{const g=Ql==null?void 0:Ql.find(j=>(j==null?void 0:j.label)===(m==null?void 0:m.label));g?C[g.key]=m.value:m!=null&&m.children&&m.children.length>0&&(C.children=m.children)}),s.value=!1,o("fixChange",{contents:L.cloneDeep(C),id:c.value,type:"fix"});else{let m=L.cloneDeep(p.value)+1;b.setTableIndex(m),C.id="id"+p.value,(E=y.value)==null||E.forEach(g=>{const j=Ql==null?void 0:Ql.find(V=>(V==null?void 0:V.label)===(g==null?void 0:g.label));j?C[j.key]=g.value:g!=null&&g.children&&g.children.length>0&&(C.children=g.children)}),s.value=!1,o("fixChange",{contents:L.cloneDeep(C),id:c.value,type:"add"})}v.value="",y.value=[],u.value=[]},M=()=>{s.value=!1,v.value="",c.value="",y.value=[],u.value=[]},Z=C=>{un.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{o("deleteChange",C),Qa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(C,w)=>{const E=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",N3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r==null?void 0:r.tableChildContents,(m,g)=>(a.openBlock(),a.createElementBlock("div",T3,[a.createElementVNode("div",A3,[a.createElementVNode("div",z3,a.toDisplayString(m.label),1),a.createElementVNode("div",M3,[a.createVNode(E,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:j=>S(m)},null,8,["onClick"]),a.createVNode(E,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:j=>_(m)},null,8,["onClick"]),a.createVNode(E,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:j=>Z(m)},null,8,["onClick"])])]),m!=null&&m.children&&m.children.length>0?(a.openBlock(),a.createElementBlock("div",I3,[a.createVNode(Cc,{tableChildContents:m==null?void 0:m.children,onDeleteChange:$,onFixChange:N},null,8,["tableChildContents"])])):a.createCommentVNode("",!0)]))),256)),a.createVNode(xr.ssDialog,{visible:s.value,onBeforeDestroy:M,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",O3,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:q},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",{class:"dialog-footer"},[a.createElementVNode("div",{onClick:M,class:"cancel-button button"},a.toDisplayString("取消")),a.createElementVNode("div",{class:"ok-button button",onClick:O},a.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},$3=Kl._export_sfc(L3,[["__scopeId","data-v-e0fef72d"]]),R3={class:"table-header-child"},V3={class:"table-header-child-main"},P3={class:"table-header-child-content"},F3={class:"table-header-child-content-item"},j3={class:"fix-button"},H3={key:0},U3={class:"form-content"},q3={class:"dialog-footer"},W3={__name:"tableChildren",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(l,{emit:n}){const r=l,o=n,s=a.ref(!1),c=a.ref(""),b=sa.useTableComp(L.pinia),{tableIndex:p}=L.storeToRefs(b),v=a.ref(""),y=a.ref([]),u=a.ref([]),_=C=>{o("fixChange",L.cloneDeep(C))},N=C=>{var E;s.value=!0;let w=[];Ql==null||Ql.forEach(m=>{let g=L.cloneDeep(p.value)+1;b.setTableIndex(g),w.push({label:m==null?void 0:m.label,name:m==null?void 0:m.label,type:m.type,value:C[m.key],id:p.value,contents:m==null?void 0:m.options})}),C!=null&&C.children&&((E=C==null?void 0:C.children)==null?void 0:E.length)>0&&w.push({children:C==null?void 0:C.children,isFormColHidden:!0}),v.value=C==null?void 0:C.id,y.value=w,u.value=w},$=C=>{s.value=!0;let w=[];Ql==null||Ql.forEach(E=>{let m=L.cloneDeep(p.value)+1;b.setTableIndex(m),w.push({label:E==null?void 0:E.label,name:E==null?void 0:E.label,type:E.type,value:"",id:p.value,contents:E==null?void 0:E.options})}),c.value=C==null?void 0:C.id,y.value=w,u.value=w},S=C=>{let w=L.cloneDeep(u.value);w=w==null?void 0:w.map(E=>(E.children||(E.value=C==null?void 0:C[E.name]),E)),u.value=w},q=()=>{var w,E;y.value=u.value;let C={};if(v.value!=="")C.id=v.value,(w=y.value)==null||w.forEach(m=>{const g=Ql==null?void 0:Ql.find(j=>(j==null?void 0:j.label)===(m==null?void 0:m.label));g?C[g.key]=m.value:m!=null&&m.children&&m.children.length>0&&(C.children=m.children)}),s.value=!1,o("fixChange",{contents:L.cloneDeep(C),id:c.value,type:"fix"});else{let m=L.cloneDeep(p.value)+1;b.setTableIndex(m),C.id="idChild"+p.value,(E=y.value)==null||E.forEach(g=>{const j=Ql==null?void 0:Ql.find(V=>(V==null?void 0:V.label)===(g==null?void 0:g.label));j?C[j.key]=g.value:g!=null&&g.children&&g.children.length>0&&(C.children=g.children)}),s.value=!1,o("fixChange",{contents:L.cloneDeep(C),id:c.value,type:"add"})}v.value="",y.value=[],u.value=[]},O=()=>{s.value=!1,v.value="",c.value="",y.value=[],u.value=[]},M=C=>{un.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{o("deleteChange",C),Qa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},Z=C=>{o("deleteChange",C)};return(C,w)=>{const E=a.resolveComponent("svg-icon"),m=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",R3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r==null?void 0:r.tableChildContents,(g,j)=>(a.openBlock(),a.createElementBlock("div",V3,[a.createElementVNode("div",P3,[a.createElementVNode("div",F3,a.toDisplayString(g.label),1),a.createElementVNode("div",j3,[a.createVNode(E,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:V=>$(g)},null,8,["onClick"]),a.createVNode(E,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:V=>N(g)},null,8,["onClick"]),a.createVNode(E,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:V=>M(g)},null,8,["onClick"])])]),g!=null&&g.children&&g.children.length>0?(a.openBlock(),a.createElementBlock("div",H3,[a.createVNode($3,{tableChildContents:g==null?void 0:g.children,onDeleteChange:Z,onFixChange:_},null,8,["tableChildContents"])])):a.createCommentVNode("",!0)]))),256)),a.createVNode(xr.ssDialog,{visible:s.value,onBeforeDestroy:O,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",U3,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:S},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",q3,[a.createVNode(m,{onClick:O,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>w[0]||(w[0]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[0]}),a.createVNode(m,{class:"ok-button button",onClick:q,id:"themeButton"},{default:a.withCtx(()=>w[1]||(w[1]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},Cc=Kl._export_sfc(W3,[["__scopeId","data-v-ebd68fa1"]]),K3={class:"table-operate-content"},G3={class:"table-operate-item"},Y3={class:"operate-title"},J3={class:"operate-content"},X3={class:"fix-content"},Z3={class:"fix-content-label"},Q3={class:"fix-button"},e1={key:0},a1={class:"operate-title"},l1={class:"operate-content"},r1={class:"fix-content"},n1={class:"fix-content-label"},o1={class:"fix-button"},i1={class:"operate-title"},s1={class:"operate-content"},c1={class:"fix-content"},u1={class:"fix-content-label"},d1={class:"fix-button"},p1={class:"operate-title"},f1={class:"operate-content"},h1={class:"fix-content"},v1={class:"fix-content-label"},m1={class:"fix-button"},y1={class:"operate-content"},g1={style:{display:"flex","justify-content":"space-between"}},b1={class:"form-content"},k1={class:"dialog-footer"},x1={class:"form-content"},w1={class:"dialog-footer"},_1={class:"form-content"},E1={class:"dialog-footer"},S1={class:"form-content"},C1={class:"dialog-footer"},D1={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,o=n,s=a.ref([]),c=a.ref(!1),b=a.ref(!1),p=a.ref([]),v=a.ref(!1),y=a.ref([]),u=a.ref(!1),_=a.ref([]),N=a.ref(""),$=a.ref(""),S=a.ref([]),q=a.ref([]),O=a.ref([]),M=a.ref([]),Z=a.ref(!1),C=a.ref([]),w=a.ref([]),E=a.ref(0),m=a.ref([]),g=a.ref([]),j=a.ref([]),V=()=>{Z.value=!0;let F=[];Ln==null||Ln.forEach(P=>{E.value++,F.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:E.value,contents:P==null?void 0:P.options})}),C.value=F,w.value=F},G=()=>{var P,X,ie;b.value=!0;let F=[];(ie=(X=(P=sa.FormContent)==null?void 0:P.find(se=>(se==null?void 0:se.key)==="Input"))==null?void 0:X.value)==null||ie.forEach(se=>{E.value++,F.push({label:se==null?void 0:se.label,name:(se==null?void 0:se.name)||(se==null?void 0:se.label),type:se.type,value:(se==null?void 0:se.label)==="类型"?"Input":"",id:E.value,contents:se==null?void 0:se.options})}),m.value=F,g.value=F},he=F=>{F||(m.value=g.value)},Te=async F=>{var P,X,ie,se,ga,ra,Le,Ee,Ea,va,Va,Pa;if((F==null?void 0:F.类型)!==((X=(P=g.value)==null?void 0:P.find(me=>(me==null?void 0:me.label)==="类型"))==null?void 0:X.value)){let me=[],Je=await((ga=(se=(ie=sa.FormContent)==null?void 0:ie.find(Ae=>(Ae==null?void 0:Ae.key)===((F==null?void 0:F.类型)===""?"Input":F==null?void 0:F.类型)))==null?void 0:se.value)==null?void 0:ga.value)?await((va=(Ea=(Ee=sa.FormContent)==null?void 0:Ee.find(Ae=>(Ae==null?void 0:Ae.key)===((F==null?void 0:F.类型)===""?"Input":F==null?void 0:F.类型)))==null?void 0:Ea.value)==null?void 0:va.value):(Le=(ra=sa.FormContent)==null?void 0:ra.find(Ae=>(Ae==null?void 0:Ae.key)===((F==null?void 0:F.类型)===""?"Input":F==null?void 0:F.类型)))==null?void 0:Le.value;if(Je==null||Je.forEach(Ae=>{E.value++,me.push({label:Ae==null?void 0:Ae.label,name:(Ae==null?void 0:Ae.name)||(Ae==null?void 0:Ae.label),type:Ae.type,value:Ae!=null&&Ae.属性名?(F==null?void 0:F.prop)||(F==null?void 0:F.name)||(F==null?void 0:F.label):(F==null?void 0:F[Ae.label])??"",id:E.value,contents:Ae==null?void 0:Ae.options,prop:(Ae==null?void 0:Ae.prop)||(Ae==null?void 0:Ae.name)||(Ae==null?void 0:Ae.label)})}),F!=null&&F.菜单选项&&((Va=F==null?void 0:F.菜单选项)==null?void 0:Va.length)>0){const Ae=await sa.menuToContentType(F==null?void 0:F.菜单选项);me=me==null?void 0:me.map(Xe=>((Xe==null?void 0:Xe.name)==="组信息选项"&&(Xe.contents=Ae),Xe))}g.value=await sa.selectToBase(L.cloneDeep(me)),m.value=await sa.selectToBase(L.cloneDeep(me))}else{let me=L.cloneDeep(m.value);if(me=me==null?void 0:me.map(Je=>(Je.value=F==null?void 0:F[Je.name],Je)),F!=null&&F.菜单选项&&((Pa=F==null?void 0:F.菜单选项)==null?void 0:Pa.length)>0){const Je=await sa.menuToContentType(F==null?void 0:F.菜单选项);me=me==null?void 0:me.map(Ae=>((Ae==null?void 0:Ae.name)==="组信息选项"&&(Ae.contents=Je),Ae))}me=sa.formToOptionsContents(me),g.value=await sa.selectToBase(L.cloneDeep(me))}},Se=async F=>{await Te(F),m.value=g.value},Q=(F,P)=>{if((P==null?void 0:P.type)=="Select"&&(F==null?void 0:F.key)==="selectRelateType"){const X=P==null?void 0:P.optionUrl;return(X==null?void 0:X.selectRelateType)||P[F.key]}if((P==null?void 0:P.type)=="Select"&&(F==null?void 0:F.key)==="menuSelect"){const X=P==null?void 0:P.optionUrl;return(X==null?void 0:X.menuSelect)||P[F.key]}if((P==null?void 0:P.type)=="Select"&&(F==null?void 0:F.key)==="groupSelect"){const X=P==null?void 0:P.optionUrl;return(X==null?void 0:X.groupSelect)||P[F.key]}if((P==null?void 0:P.type)=="Select"&&(F==null?void 0:F.key)==="originalContent")return(P==null?void 0:P.value)||P[F.key];if((P==null?void 0:P.type)=="Select"&&(F==null?void 0:F.key)==="multiple"){const X=P[F.key];return Gs(X)?X:F.default}return(F==null?void 0:F.label)==="类型"&&P[F.key]===""?"Input":(F==null?void 0:F.key)==="isFormColHidden"&&!P[F.key]?!1:P[F.key]},fe=async F=>{var ie,se,ga,ra,Le,Ee,Ea,va,Va;b.value=!0;let P=[];const X=await((ga=(se=(ie=sa.FormContent)==null?void 0:ie.find(Pa=>(Pa==null?void 0:Pa.key)===((F==null?void 0:F.type)===""?"Input":F==null?void 0:F.type)))==null?void 0:se.value)==null?void 0:ga.value)?await((va=(Ea=(Ee=sa.FormContent)==null?void 0:Ee.find(Pa=>(Pa==null?void 0:Pa.key)===((F==null?void 0:F.type)===""?"Input":F==null?void 0:F.type)))==null?void 0:Ea.value)==null?void 0:va.value):(Le=(ra=sa.FormContent)==null?void 0:ra.find(Pa=>(Pa==null?void 0:Pa.key)===((F==null?void 0:F.type)===""?"Input":F==null?void 0:F.type)))==null?void 0:Le.value;if(X==null||X.forEach(Pa=>{E.value++,P.push({label:Pa==null?void 0:Pa.label,name:(Pa==null?void 0:Pa.name)||(Pa==null?void 0:Pa.label),type:Pa.type,value:(Pa==null?void 0:Pa.label)==="属性名"?(F==null?void 0:F.prop)||(F==null?void 0:F.name)||(F==null?void 0:F.label):Q(Pa,F),id:E.value,contents:Pa==null?void 0:Pa.options})}),F!=null&&F.menuSelect&&((Va=F==null?void 0:F.menuSelect)==null?void 0:Va.length)>0){const Pa=await sa.menuToContentType(F==null?void 0:F.menuSelect);P=P==null?void 0:P.map(me=>((me==null?void 0:me.name)==="组信息选项"&&(me.contents=Pa),me))}N.value=F==null?void 0:F.id,m.value=await sa.selectToBase(sa.formToOptionsContents(P)),g.value=await sa.selectToBase(sa.formToOptionsContents(P))},J=F=>{un.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var P,X;j.value=(P=L.cloneDeep(j.value))==null?void 0:P.filter(ie=>(ie==null?void 0:ie.id)!==(F==null?void 0:F.id)),o("change",(X=L.cloneDeep(r.originalItemContents))==null?void 0:X.map(ie=>((ie==null?void 0:ie.key)==="tableToForm"&&(ie.contents=j.value),ie))),Qa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},ce=()=>{b.value=!1,m.value=[],N.value=""},He=async()=>{var ie,se,ga,ra,Le,Ee,Ea,va,Va,Pa;m.value=g.value;let F={};N.value!==""?F.id=N.value:(E.value++,F.id="id"+E.value);let P=await((ga=(se=(ie=sa.FormContent)==null?void 0:ie.find(me=>{var Je,Ae;return(me==null?void 0:me.key)===(((Ae=(Je=m.value)==null?void 0:Je.find(Xe=>(Xe==null?void 0:Xe.label)==="类型"))==null?void 0:Ae.value)??"label")}))==null?void 0:se.value)==null?void 0:ga.value)??((Le=(ra=sa.FormContent)==null?void 0:ra.find(me=>{var Je,Ae;return(me==null?void 0:me.key)===(((Ae=(Je=m.value)==null?void 0:Je.find(Xe=>(Xe==null?void 0:Xe.label)==="类型"))==null?void 0:Ae.value)??"label")}))==null?void 0:Le.value);if((Ee=m.value)==null||Ee.forEach(me=>{const Je=P==null?void 0:P.find(Ae=>(Ae==null?void 0:Ae.label)===(me==null?void 0:me.label));Je&&(F[Je.key]=me.value)}),F.name=F.label,(Ea=j.value)!=null&&Ea.find(me=>me.id===F.id))j.value=(va=j.value)==null?void 0:va.map(me=>(me.id===F.id&&(me=F),me));else{let me=L.cloneDeep(j.value);j.value||(j.value=[]),me.push(F),j.value=me}j.value=j.value.map(({id:me,...Je})=>Je),b.value=!1,N.value="";let X=L.cloneDeep(r.originalItemContents);(Va=L.cloneDeep(r.originalItemContents))!=null&&Va.find(me=>(me==null?void 0:me.key)==="tableToForm")?X=(Pa=L.cloneDeep(r.originalItemContents))==null?void 0:Pa.map(me=>((me==null?void 0:me.key)==="tableToForm"&&(me.contents=j.value),me)):X.push({key:"tableToForm",contents:j.value}),o("change",X)},Ca=F=>{Z.value=!0;let P=[];Ln==null||Ln.forEach(X=>{E.value++,P.push({label:X==null?void 0:X.label,name:X==null?void 0:X.label,type:X.type,value:F[X.key],id:E.value,contents:X==null?void 0:X.options})}),N.value=F==null?void 0:F.id,C.value=P,w.value=P};a.watch(()=>u.value,()=>{var P,X;let F=L.cloneDeep(r.originalItemContents);(P=L.cloneDeep(r.originalItemContents))!=null&&P.find(ie=>(ie==null?void 0:ie.key)==="page")?F=(X=L.cloneDeep(r.originalItemContents))==null?void 0:X.map(ie=>((ie==null?void 0:ie.key)==="page"&&(ie.contents=u.value),ie)):F.push({key:"page",contents:u.value}),o("change",F)},{deep:!0});const ne=F=>{un.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var P,X;q.value=(P=L.cloneDeep(q.value))==null?void 0:P.filter(ie=>(ie==null?void 0:ie.id)!==(F==null?void 0:F.id)),o("change",(X=L.cloneDeep(r.originalItemContents))==null?void 0:X.map(ie=>((ie==null?void 0:ie.key)==="extraButton"&&(ie.contents=q.value),ie))),Qa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},D=()=>{var X,ie,se,ga,ra;C.value=w.value;let F={};if(N.value!==""?F.id=N.value:(E.value++,F.id="id"+E.value),(X=C.value)==null||X.forEach(Le=>{const Ee=Ln==null?void 0:Ln.find(Ea=>(Ea==null?void 0:Ea.label)===(Le==null?void 0:Le.label));Ee?F[Ee.key]=Le.value:Le!=null&&Le.children&&Le.children.length>0&&(F.children=Le.children)}),(ie=q.value)!=null&&ie.find(Le=>Le.id===F.id))q.value=(se=q.value)==null?void 0:se.map(Le=>(Le.id===F.id&&(Le=F),Le));else{let Le=L.cloneDeep(q.value)??[];Le.push(F),q.value=Le}Z.value=!1,N.value="";let P=L.cloneDeep(r.originalItemContents);(ga=L.cloneDeep(r.originalItemContents))!=null&&ga.find(Le=>(Le==null?void 0:Le.key)==="extraButton")?P=(ra=L.cloneDeep(r.originalItemContents))==null?void 0:ra.map(Le=>((Le==null?void 0:Le.key)==="extraButton"&&(Le.contents=q.value),Le)):P.push({key:"extraButton",contents:q.value}),o("change",P)},re=F=>{let P=L.cloneDeep(w.value);P=P==null?void 0:P.map(X=>(X.children||(X.value=F==null?void 0:F[X.name]),X)),w.value=P},be=()=>{Z.value=!1,C.value=[],N.value=""},ue=F=>{v.value=!0;let P=[];$n==null||$n.forEach(X=>{E.value++,P.push({label:X==null?void 0:X.label,name:X==null?void 0:X.label,type:X.type,value:F[X.key],id:E.value,contents:X==null?void 0:X.options})}),N.value=F==null?void 0:F.id,O.value=P,M.value=P},De=F=>{un.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var P,X;S.value=(P=L.cloneDeep(S.value))==null?void 0:P.filter(ie=>(ie==null?void 0:ie.id)!==(F==null?void 0:F.id)),o("change",(X=L.cloneDeep(r.originalItemContents))==null?void 0:X.map(ie=>((ie==null?void 0:ie.key)==="rowButton"&&(ie.contents=S.value),ie))),Qa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},pa=()=>{c.value=!0;let F=[];Ql==null||Ql.forEach(P=>{E.value++,F.push({label:P==null?void 0:P.label,name:P==null?void 0:P.label,type:P.type,value:"",id:E.value,contents:P==null?void 0:P.options})}),y.value=F,_.value=F},_a=()=>{v.value=!0;let F=[];$n==null||$n.forEach(P=>{E.value++,F.push({label:P==null?void 0:P.label,name:P==null?void 0:P.label,type:P.type,value:"",id:E.value,contents:P==null?void 0:P.options})}),O.value=F,M.value=F},Ga=F=>{let P=L.cloneDeep(M.value);P=P==null?void 0:P.map(X=>(X.children||(X.value=F==null?void 0:F[X.name]),X)),M.value=P},le=()=>{var X,ie,se,ga,ra;O.value=M.value;let F={};if(N.value!==""?F.id=N.value:(E.value++,F.id="id"+E.value),(X=O.value)==null||X.forEach(Le=>{const Ee=$n==null?void 0:$n.find(Ea=>(Ea==null?void 0:Ea.label)===(Le==null?void 0:Le.label));Ee?F[Ee.key]=Le.value:Le!=null&&Le.children&&Le.children.length>0&&(F.children=Le.children)}),(ie=S.value)!=null&&ie.find(Le=>Le.id===F.id))S.value=(se=S.value)==null?void 0:se.map(Le=>(Le.id===F.id&&(Le=F),Le));else{let Le=L.cloneDeep(S.value);Le.push(F),S.value=Le}v.value=!1,N.value="";let P=L.cloneDeep(r.originalItemContents);(ga=L.cloneDeep(r.originalItemContents))!=null&&ga.find(Le=>(Le==null?void 0:Le.key)==="rowButton")?P=(ra=L.cloneDeep(r.originalItemContents))==null?void 0:ra.map(Le=>((Le==null?void 0:Le.key)==="rowButton"&&(Le.contents=S.value),Le)):P.push({key:"rowButton",contents:S.value}),o("change",P)},la=()=>{v.value=!1,N.value="",M.value=[],O.value=[]},Ve=F=>{c.value=!0;let P=[];Ql==null||Ql.forEach(X=>{E.value++,P.push({label:X==null?void 0:X.label,name:X==null?void 0:X.label,type:X.type,value:"",id:E.value,contents:X==null?void 0:X.options})}),y.value=P,$.value=F==null?void 0:F.id,_.value=P},wa=F=>{var P;p.value=wc(L.cloneDeep(p.value),F==null?void 0:F.id),o("change",(P=L.cloneDeep(r.originalItemContents))==null?void 0:P.map(X=>{var ie;return(X==null?void 0:X.key)==="header"&&(X.contents=(ie=p.value)!=null&&ie.some(se=>se==null?void 0:se.children)?[p.value]:p.value),X}))},Fe=F=>{var X,ie,se;F.type==="fix"?F.id!==""?p.value=Ec(p.value,F):p.value=_c(p.value,F==null?void 0:F.contents):p.value=Sc(p.value,F),p.value=(X=p.value)!=null&&X.some(ga=>ga==null?void 0:ga.children)?[p.value]:p.value,N.value="";let P=L.cloneDeep(r.originalItemContents);(ie=L.cloneDeep(r.originalItemContents))!=null&&ie.find(ga=>(ga==null?void 0:ga.key)==="header")?P=(se=L.cloneDeep(r.originalItemContents))==null?void 0:se.map(ga=>((ga==null?void 0:ga.key)==="header"&&(ga.contents=p.value),ga)):P.push({key:"header",contents:p.value}),o("change",P)},ze=F=>{var X;c.value=!0;let P=[];Ql==null||Ql.forEach(ie=>{E.value++,P.push({label:ie==null?void 0:ie.label,name:ie==null?void 0:ie.label,type:ie.type,value:F[ie.key],id:E.value,contents:ie==null?void 0:ie.options})}),F!=null&&F.children&&((X=F==null?void 0:F.children)==null?void 0:X.length)>0&&P.push({children:F==null?void 0:F.children,isFormColHidden:!0}),N.value=F==null?void 0:F.id,$.value="",y.value=P,_.value=P},Re=F=>{let P=L.cloneDeep(_.value);P=P==null?void 0:P.map(X=>(X.children||(X.value=F==null?void 0:F[X.name]),X)),_.value=P},Ze=()=>{c.value=!1,N.value="",$.value="",_.value=[]},Ja=()=>{var X,ie,se,ga,ra,Le;y.value=_.value;let F={};if(N.value!==""?F.id=N.value:(E.value++,F.id="id"+E.value),(X=y.value)==null||X.forEach(Ee=>{const Ea=Ql==null?void 0:Ql.find(va=>(va==null?void 0:va.label)===(Ee==null?void 0:Ee.label));Ea?F[Ea.key]=Ee.value:Ee!=null&&Ee.children&&Ee.children.length>0&&(F.children=Ee.children)}),(ie=p.value)!=null&&ie.find(Ee=>Ee.id===F.id))p.value=(se=p.value)==null?void 0:se.map(Ee=>(Ee.id===F.id&&(Ee=F),Ee));else{let Ee=L.cloneDeep(p.value)??[];$.value===""?Ee.push(F):Ee=Ee==null?void 0:Ee.map(Ea=>(Ea.id===$.value&&(Ea.children||(Ea.children=[]),Ea.children.push(F)),Ea)),p.value=Ee}p.value=(ga=p.value)!=null&&ga.some(Ee=>Ee==null?void 0:Ee.children)?[p.value]:p.value,c.value=!1,N.value="",$.value="";let P=L.cloneDeep(r.originalItemContents);(ra=L.cloneDeep(r.originalItemContents))!=null&&ra.find(Ee=>(Ee==null?void 0:Ee.key)==="header")?P=(Le=L.cloneDeep(r.originalItemContents))==null?void 0:Le.map(Ee=>((Ee==null?void 0:Ee.key)==="header"&&(Ee.contents=p.value),Ee)):P.push({key:"header",contents:p.value}),o("change",P)},qa=F=>{un.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var P,X;p.value=(P=L.cloneDeep(p.value))==null?void 0:P.filter(ie=>(ie==null?void 0:ie.id)!==(F==null?void 0:F.id)),o("change",(X=L.cloneDeep(r.originalItemContents))==null?void 0:X.map(ie=>{var se;return(ie==null?void 0:ie.key)==="header"&&(ie.contents=(se=p.value)!=null&&se.some(ga=>ga==null?void 0:ga.children)?[p.value]:p.value),ie})),Qa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return a.watch(()=>r.originalItemContents,()=>{var F,P,X,ie,se,ga,ra,Le,Ee,Ea,va,Va,Pa,me,Je,Ae,Xe,oe,_e;if(!(!r.originalItemContents||r.originalItemContents.length===0))if(s.value=L.cloneDeep(r.originalItemContents),p.value=(P=(F=s.value)==null?void 0:F.find(de=>(de==null?void 0:de.key)==="header"))==null?void 0:P.contents,S.value=(ie=(X=s.value)==null?void 0:X.find(de=>(de==null?void 0:de.key)==="rowButton"))==null?void 0:ie.contents,q.value=(ga=(se=s.value)==null?void 0:se.find(de=>(de==null?void 0:de.key)==="extraButton"))==null?void 0:ga.contents,u.value=(Le=(ra=s.value)==null?void 0:ra.find(de=>(de==null?void 0:de.key)==="page"))!=null&&Le.contents?!!((Ea=(Ee=s.value)==null?void 0:Ee.find(de=>(de==null?void 0:de.key)==="page"))!=null&&Ea.contents):!1,j.value=(Va=(va=s.value)==null?void 0:va.find(de=>(de==null?void 0:de.key)==="tableToForm"))==null?void 0:Va.contents,p.value=(Pa=p.value)==null?void 0:Pa.map((de,We)=>(Array.isArray(de)?de=C3(de):de={label:(de==null?void 0:de.label)??"",prop:(de==null?void 0:de.label)==="操作"?"operate":de==null?void 0:de.prop,width:de!=null&&de.width?parseInt(de.width):"",fixed:(de==null?void 0:de.fixed)??void 0,sortable:(de==null?void 0:de.sortable)??!1,align:(de==null?void 0:de.align)??"left",showOverflowTooltip:(de==null?void 0:de.showOverflowTooltip)??!0,isNotDrag:(de==null?void 0:de.isNotDrag)??!1,isEditCol:(de==null?void 0:de.isEditCol)??!1,isOperate:(de==null?void 0:de.isOperate)??!1,id:(de==null?void 0:de.id)??We,formMenuSelect:(de==null?void 0:de.formMenuSelect)??void 0,groupSelect:(de==null?void 0:de.groupSelect)??void 0},de)),p.value=(me=p.value)!=null&&me.every(de=>Array.isArray(de))?(Je=p.value)==null?void 0:Je[0]:p.value,S.value=(Ae=S.value)==null?void 0:Ae.map((de,We)=>de={label:(de==null?void 0:de.label)??"",type:(de==null?void 0:de.type)??"",textColor:(de==null?void 0:de.textColor)??"#000000",id:(de==null?void 0:de.id)??We}),q.value=(Xe=q.value)==null?void 0:Xe.map((de,We)=>de={label:(de==null?void 0:de.label)??"",type:(de==null?void 0:de.type)??"",background:(de==null?void 0:de.background)??"var(--ssComponent-primary-color)",id:(de==null?void 0:de.id)??We}),j.value)j.value=(_e=j.value)==null?void 0:_e.map(de=>{E.value++;let We=de;return We.id=E.value,We});else{let de=[];const We=(oe=sa.getColumnChild(L.cloneDeep(p.value)))==null?void 0:oe.filter(ea=>(ea==null?void 0:ea.prop)!=="operate");We==null||We.forEach(ea=>{var ka;E.value++,de.push({label:ea==null?void 0:ea.label,name:(ea==null?void 0:ea.prop)||(ea==null?void 0:ea.label),type:ea!=null&&ea.groupSelect?"Select":"Input",value:"",id:E.value,contents:ea==null?void 0:ea.options,menuSelect:ea==null?void 0:ea.formMenuSelect,groupSelect:(ka=ea==null?void 0:ea.groupSelect)==null?void 0:ka.split(":"),selectRelateType:"关联绑定列"})}),j.value=de}},{deep:!0,immediate:!0}),(F,P)=>{const X=a.resolveComponent("svg-icon"),ie=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",K3,[a.createElementVNode("div",G3,[a.createElementVNode("div",Y3,[P[2]||(P[2]=a.createElementVNode("div",null,a.toDisplayString("表头"),-1)),a.createVNode(ie,{class:"icon-content",onClick:pa,id:"themeButton"},{icon:a.withCtx(()=>[a.createVNode(X,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[P[1]||(P[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",J3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(p.value,(se,ga)=>(a.openBlock(),a.createElementBlock("div",{key:ga},[a.createElementVNode("div",X3,[a.createElementVNode("div",Z3,a.toDisplayString(se==null?void 0:se.label),1),a.createElementVNode("div",Q3,[a.createVNode(X,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ra=>Ve(se)},null,8,["onClick"]),a.createVNode(X,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ra=>ze(se)},null,8,["onClick"]),a.createVNode(X,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ra=>qa(se)},null,8,["onClick"])])]),se!=null&&se.children&&se.children.length>0?(a.openBlock(),a.createElementBlock("div",e1,[a.createVNode(Cc,{tableChildContents:se==null?void 0:se.children,onDeleteChange:wa,onFixChange:Fe},null,8,["tableChildContents"])])):a.createCommentVNode("",!0)]))),128))]),a.createElementVNode("div",a1,[P[4]||(P[4]=a.createElementVNode("div",null,a.toDisplayString("行内按钮"),-1)),a.createVNode(ie,{class:"icon-content",id:"themeButton",onClick:_a},{icon:a.withCtx(()=>[a.createVNode(X,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[P[3]||(P[3]=a.createTextVNode(" 新增 "))]),_:1,__:[3]})]),a.createElementVNode("div",l1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(S.value,(se,ga)=>(a.openBlock(),a.createElementBlock("div",{key:ga},[a.createElementVNode("div",r1,[a.createElementVNode("div",n1,a.toDisplayString(se==null?void 0:se.label),1),a.createElementVNode("div",o1,[a.createVNode(X,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ra=>ue(se)},null,8,["onClick"]),a.createVNode(X,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ra=>De(se)},null,8,["onClick"])])])]))),128))]),a.createElementVNode("div",i1,[P[6]||(P[6]=a.createElementVNode("div",null,a.toDisplayString("表外按钮"),-1)),a.createVNode(ie,{class:"icon-content",id:"themeButton",onClick:V},{icon:a.withCtx(()=>[a.createVNode(X,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[P[5]||(P[5]=a.createTextVNode(" 新增 "))]),_:1,__:[5]})]),a.createElementVNode("div",s1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(q.value,(se,ga)=>(a.openBlock(),a.createElementBlock("div",{key:ga},[a.createElementVNode("div",c1,[a.createElementVNode("div",u1,a.toDisplayString(se==null?void 0:se.label),1),a.createElementVNode("div",d1,[a.createVNode(X,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ra=>Ca(se)},null,8,["onClick"]),a.createVNode(X,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ra=>ne(se)},null,8,["onClick"])])])]))),128))]),a.createElementVNode("div",p1,[P[8]||(P[8]=a.createElementVNode("div",null,a.toDisplayString("表格弹框字段设置"),-1)),a.createVNode(ie,{class:"icon-content",id:"themeButton",onClick:G},{icon:a.withCtx(()=>[a.createVNode(X,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[P[7]||(P[7]=a.createTextVNode(" 新增 "))]),_:1,__:[7]})]),a.createElementVNode("div",f1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(j.value,(se,ga)=>(a.openBlock(),a.createElementBlock("div",{key:ga},[a.createElementVNode("div",h1,[a.createElementVNode("div",v1,a.toDisplayString(se==null?void 0:se.label),1),a.createElementVNode("div",m1,[a.createVNode(X,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:ra=>fe(se)},null,8,["onClick"]),a.createVNode(X,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ra=>J(se)},null,8,["onClick"])])])]))),128))]),P[10]||(P[10]=a.createElementVNode("div",{class:"operate-title"},[a.createElementVNode("div",null,a.toDisplayString("分页"))],-1)),a.createElementVNode("div",y1,[a.createElementVNode("div",g1,[P[9]||(P[9]=a.createElementVNode("div",{class:"operate-center-content"},a.toDisplayString("是否分页"),-1)),a.createVNode(dl._sfc_main$1,{modelValue:u.value,"onUpdate:modelValue":P[0]||(P[0]=se=>u.value=se)},null,8,["modelValue"])])])]),a.createVNode(xr.ssDialog,{visible:c.value,onBeforeDestroy:Ze,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",b1,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:Re},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",k1,[a.createVNode(ie,{onClick:Ze,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>P[11]||(P[11]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[11]}),a.createVNode(ie,{class:"ok-button button",onClick:Ja,id:"themeButton"},{default:a.withCtx(()=>P[12]||(P[12]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible"]),a.createVNode(xr.ssDialog,{visible:v.value,onBeforeDestroy:la,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",x1,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:O.value,key:O.value,isEnableWrap:!0,onChange:Ga},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",w1,[a.createVNode(ie,{onClick:la,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>P[13]||(P[13]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[13]}),a.createVNode(ie,{class:"ok-button button",onClick:le,id:"themeButton"},{default:a.withCtx(()=>P[14]||(P[14]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible"]),a.createVNode(xr.ssDialog,{visible:Z.value,onBeforeDestroy:be,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",_1,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:C.value,key:C.value,isEnableWrap:!0,onChange:re},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",E1,[a.createVNode(ie,{onClick:be,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>P[15]||(P[15]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[15]}),a.createVNode(ie,{class:"ok-button button",onClick:D,id:"themeButton"},{default:a.withCtx(()=>P[16]||(P[16]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[16]})])]),_:1},8,["visible"]),a.createVNode(xr.ssDialog,{visible:b.value,onBeforeDestroy:ce,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",S1,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:m.value,key:m.value,isEnableWrap:!0,onChange:Te,onChangeVisible:he,onBlurChange:Se},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",C1,[a.createVNode(ie,{onClick:ce,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>P[17]||(P[17]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[17]}),a.createVNode(ie,{class:"ok-button button",onClick:He,id:"themeButton"},{default:a.withCtx(()=>P[18]||(P[18]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[18]})])]),_:1},8,["visible"])])}}},B1=Kl._export_sfc(D1,[["__scopeId","data-v-7a6b87b5"]]),N1=L.useModelComp(L.pinia),{pageMapState:T1}=L.storeToRefs(N1),A1=L.useMenuState(L.pinia),{activeMenuPath:z1}=L.storeToRefs(A1),M1=a.ref(24),I1=a.ref(6),O1=a.ref(70),L1=a.ref(.18),$1=a.ref(45),R1=(l,n,r,o)=>{var s,c,b,p,v,y,u,_,N,$,S,q,O,M,Z,C;return{x:((c=(s=l==null?void 0:l.value)==null?void 0:s.tableData)==null?void 0:c.x)||n%2*12,y:((p=(b=l==null?void 0:l.value)==null?void 0:b.tableData)==null?void 0:p.y)||n,w:((y=(v=l==null?void 0:l.value)==null?void 0:v.tableData)==null?void 0:y.w)||M1.value,h:((_=(u=l==null?void 0:l.value)==null?void 0:u.tableData)==null?void 0:_.h)||r,minW:(($=(N=l==null?void 0:l.value)==null?void 0:N.tableData)==null?void 0:$.minW)||I1.value,minH:((q=(S=l==null?void 0:l.value)==null?void 0:S.tableData)==null?void 0:q.minH)||L1.value,maxH:((M=(O=l==null?void 0:l.value)==null?void 0:O.tableData)==null?void 0:M.maxH)||$1.value,i:((C=(Z=l==null?void 0:l.value)==null?void 0:Z.tableData)==null?void 0:C.i)||n,id:(l==null?void 0:l.id)||n+"",component:o}},V1=(l,n)=>{var o,s,c,b,p,v,y,u;let r=1;if(l!=null&&l.compData&&Array.isArray(l==null?void 0:l.compData))if(((o=l==null?void 0:l.comp)==null?void 0:o.toUpperCase())==="TABLE"){if(((b=(c=(s=l==null?void 0:l.compData)==null?void 0:s.find(N=>(N==null?void 0:N.key)==="tableContents"))==null?void 0:c.contents)==null?void 0:b.length)===0)return 2}else((p=l==null?void 0:l.comp)==null?void 0:p.toUpperCase())==="FORM"&&(r=((u=(y=(v=l==null?void 0:l.compData)==null?void 0:v.find(N=>(N==null?void 0:N.key)==="formContent"))==null?void 0:y.contents)==null?void 0:u.length)/5);return r*2},Dc=(l,n,r)=>{var b,p;const o=(p=(b=T1.value)==null?void 0:b[z1.value])==null?void 0:p.filter(v=>{var y;return((y=v==null?void 0:v.key)==null?void 0:y.type)==="gridLayout"}),s=o==null?void 0:o.find(v=>{var y,u,_;return((_=(u=(y=v==null?void 0:v.value)==null?void 0:y.tableData)==null?void 0:u.component)==null?void 0:_.id)===l.id}),c=V1(l);return l!=null&&l.children&&(l==null?void 0:l.children.length)>0&&(l.children=l.children.map((v,y)=>Dc(v,y))),{...R1(s,n,c,l)}},P1=(l,n)=>{if((l==null?void 0:l.length)===0)return[];const r=L.cloneDeep(l);return Array.isArray(l)?r==null?void 0:r.map((o,s)=>Dc(o,s)):[]},F1=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}]}]}}),j1=(l,n)=>l==null?void 0:l.map(r=>{for(const o in n)if(o===(r==null?void 0:r.prop))return{...r,value:n[o]};return r}),H1=a.defineComponent({__name:"index",props:{compType:String,comp:Object,target:{type:String,default:"alone"},optionItems:Array},emits:["change"],setup(l,{emit:n}){const r=l,o=n,s=a.ref([]);a.watch(()=>r.compType,p=>{var u;const v=F1(r==null?void 0:r.optionItems),y=p?(u=v[p==null?void 0:p.toUpperCase()])==null?void 0:u[r==null?void 0:r.target]:[];s.value=y==null?void 0:y.map(_=>{for(const[N,$]of Object.entries((r==null?void 0:r.comp)||{}))if((_==null?void 0:_.prop)===N)return{..._,value:$};return _})},{immediate:!0});const c=p=>dl.getComponent(p),b=p=>{var v,y;(p==null?void 0:p.prop)==="layout"&&(p==null?void 0:p.value)==="horizontal"?s.value=(v=s.value)==null?void 0:v.map(u=>{var _;return(u==null?void 0:u.prop)==="isStepLayout"?{...u,options:(_=u==null?void 0:u.options)==null?void 0:_.map(N=>({...N,disabled:!0}))}:(u==null?void 0:u.prop)==="isGridLayout"?{...u,disabled:!0}:u}):s.value=(y=s.value)==null?void 0:y.map(u=>{var _;return(u==null?void 0:u.prop)==="isStepLayout"?{...u,options:(_=u==null?void 0:u.options)==null?void 0:_.map(N=>({...N,disabled:!1}))}:(u==null?void 0:u.prop)==="isGridLayout"?{...u,disabled:!1}:u}),o("change",{target:r==null?void 0:r.target,styleConfigs:s.value,prop:p==null?void 0:p.prop})};return(p,v)=>{const y=a.resolveComponent("el-col"),u=a.resolveComponent("el-row");return a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,_=>(a.openBlock(),a.createBlock(u,{class:"style-row",key:_==null?void 0:_.prop},{default:a.withCtx(()=>[a.createVNode(y,{span:6,class:"style-row-title"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(_==null?void 0:_.label)+":",1)]),_:2},1024),a.createVNode(y,{span:18,style:{display:"flex"}},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c(_.type)),{modelValue:_.value,"onUpdate:modelValue":N=>_.value=N,content:_==null?void 0:_.options,optionUrl:_==null?void 0:_.optionUrl,disabled:_==null?void 0:_.disabled,activeText:_==null?void 0:_.activeText,inactiveText:_==null?void 0:_.inactiveText,onChange:N=>b(_)},null,40,["modelValue","onUpdate:modelValue","content","optionUrl","disabled","activeText","inactiveText","onChange"]))]),_:2},1024)]),_:2},1024))),128)}}}),U1=Kl._export_sfc(H1,[["__scopeId","data-v-6c233914"]]),q1=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:n}){const r=l,o=n,s=[{required:!0,message:"输入不能为空",trigger:"blur"}],c=a.ref([]),b=M=>M==null?void 0:M.reduce((Z,C)=>(Z[C==null?void 0:C.prop]=C==null?void 0:C.rule,Z),{}),p=a.computed(()=>({formRules:b(c.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(""),u=(M,Z,C)=>{var m;let w=[];(r==null?void 0:r.activeTabName)==="任务配置"?(w=[{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:M},{label:"按钮名称",value:"按钮名称",children:Z}]},{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:"暂停"}]}],c.value=[{prop:"任务名称",rule:s},{prop:"任务关键词",rule:s},{prop:"执行任务",rule:s},{prop:"执行动作",rule:s},{prop:"执行交互",rule:s}]):(r==null?void 0:r.activeTabName)==="任务关联"&&(w=[{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:(m=r==null?void 0:r.relatedData)==null?void 0:m.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:"暂停"}]}],c.value=[{prop:"关联名称",rule:s},{prop:"关联状态",rule:s},{prop:"关联形式",rule:s},{prop:"关联任务集合",rule:s}]);let E;return C&&(C==null?void 0:C.length)>0?E=[...w,..._(M,Z,C)]:E=w,E},_=(M,Z,C)=>{const w=[{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 C?w==null?void 0:w.filter(E=>C==null?void 0:C.includes(E==null?void 0:E.prop)):w},N=(M,Z)=>{var g,j,V,G,he,Te,Se,Q,fe;const C=((he=(G=(V=(j=(g=r==null?void 0:r.comp)==null?void 0:g.compData)==null?void 0:j.find(J=>(J==null?void 0:J.key)==="header"))==null?void 0:V.contents)==null?void 0:G.filter(J=>(J==null?void 0:J.label)!=="操作"))==null?void 0:he.map(J=>({value:J==null?void 0:J.prop,label:J.label})))||[],w=/button/i,E=((fe=(Q=(Se=(Te=r==null?void 0:r.comp)==null?void 0:Te.compData)==null?void 0:Se.filter(J=>w.test(J==null?void 0:J.key)))==null?void 0:Q.flatMap(J=>J==null?void 0:J.contents))==null?void 0:fe.map(J=>({value:J==null?void 0:J.label,label:J.label})))||[],m=u(C,E,M);v.value=Z?j1(m,Z):m,M&&(M==null?void 0:M.length)>0&&c.value.push(...M==null?void 0:M.map(J=>({prop:J,rule:s})))};a.onMounted(()=>{N(null,r==null?void 0:r.extendItem)});const $=M=>{const Z=M==null?void 0:M[y.value];if(y.value==="执行任务"){if(!(Z!=null&&Z.join("/")))return;const C=Z==null?void 0:Z.join("/");N(C==="统计/统计规则/自定义"?["统计算法源","统计是否获取错误集"]:C==="进度设置/进度条"?["进度关键词"]:null,M)}},S=M=>{o("change",{target:r==null?void 0:r.target,extendConfigs:M})},q=(M,Z)=>{y.value=Z==null?void 0:Z.changeProp,$(M)},O=M=>{o("onButtonClick",M)};return(M,Z)=>(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:v.value,key:v.value,isStartJustify:!1,isEnableWrap:!1,formRules:p.value.formRules,buttonValue:p.value.buttonValue,onChange:S,onBlurChange:q,onOnButtonClick:O},null,8,["rowContents","formRules","buttonValue"]))}}),W1=Kl._export_sfc(q1,[["__scopeId","data-v-7c660c1f"]]),K1={};function G1(l,n){return null}const Y1=Kl._export_sfc(K1,[["render",G1]]),J1={class:"form-operate-content"},X1={class:"form-operate-item"},Z1={class:"operate-title"},Q1={class:"operate-content"},e2={class:"fix-content"},a2={class:"fix-button"},l2={class:"operate-title"},r2={class:"operate-content"},n2={class:"fix-content"},o2={class:"fix-button"},i2={style:{display:"flex","justify-content":"space-between"}},t2={class:"form-content"},s2={class:"dialog-footer"},c2={class:"form-content"},u2={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,o=n,s=a.ref(!1),c=a.ref([]),b=a.ref([]),p=a.ref(!1),v=a.ref([]),y=a.ref([]),u=a.ref(""),_=a.ref(!1),N=a.ref(0),$=a.ref([]),S=a.ref([]),q=(Q,fe)=>{if((fe==null?void 0:fe.type)=="Select"&&(Q==null?void 0:Q.key)==="selectRelateType"){const J=fe==null?void 0:fe.optionUrl;return(J==null?void 0:J.selectRelateType)||fe[Q.key]}if((fe==null?void 0:fe.type)=="Select"&&(Q==null?void 0:Q.key)==="menuSelect"){const J=fe==null?void 0:fe.optionUrl;return(J==null?void 0:J.menuSelect)||fe[Q.key]}if((fe==null?void 0:fe.type)=="Select"&&(Q==null?void 0:Q.key)==="groupSelect"){const J=fe==null?void 0:fe.optionUrl;return(J==null?void 0:J.groupSelect)||fe[Q.key]}if((fe==null?void 0:fe.type)=="Select"&&(Q==null?void 0:Q.key)==="originalContent")return(fe==null?void 0:fe.value)||fe[Q.key];if((fe==null?void 0:fe.type)=="Select"&&(Q==null?void 0:Q.key)==="multiple"){const J=fe[Q.key];return Gs(J)?J:Q.default}return(Q==null?void 0:Q.label)==="类型"&&fe[Q.key]===""?"Input":(Q==null?void 0:Q.key)==="isFormColHidden"&&!fe[Q.key]?!1:fe[Q.key]},O=async Q=>{var ce,He,Ca,ne,D,re;s.value=!0;let fe=[];const J=await((Ca=(He=(ce=sa.FormContent)==null?void 0:ce.find(be=>(be==null?void 0:be.key)===((Q==null?void 0:Q.type)===""?"Input":Q==null?void 0:Q.type)))==null?void 0:He.value)==null?void 0:Ca.value)??((D=(ne=sa.FormContent)==null?void 0:ne.find(be=>(be==null?void 0:be.key)===((Q==null?void 0:Q.type)===""?"Input":Q==null?void 0:Q.type)))==null?void 0:D.value);if(J==null||J.forEach(be=>{N.value++,fe.push({label:be==null?void 0:be.label,name:be==null?void 0:be.label,type:be.type,prop:be==null?void 0:be.prop,value:q(be,Q),id:N.value,contents:be==null?void 0:be.options,width:(Q==null?void 0:Q.width)??1})}),Q!=null&&Q.menuSelect&&((re=Q==null?void 0:Q.menuSelect)==null?void 0:re.length)>0){const be=await sa.menuToContentType(Q==null?void 0:Q.menuSelect);fe=fe==null?void 0:fe.map(ue=>((ue==null?void 0:ue.name)==="组信息选项"&&(ue.contents=be),ue))}u.value=Q==null?void 0:Q.id,c.value=await sa.selectToBase(sa.formToOptionsContents(fe)),b.value=await sa.selectToBase(sa.formToOptionsContents(fe))},M=Q=>{var J;p.value=!0;let fe=[];(J=sa.FormButton)==null||J.forEach(ce=>{N.value++,fe.push({label:ce==null?void 0:ce.label,name:ce==null?void 0:ce.label,type:ce.type,value:(ce==null?void 0:ce.label)==="类型"&&Q[ce.key]===""?"normal":Q[ce.key],id:N.value,contents:ce==null?void 0:ce.options})}),$.value=fe,S.value=fe,u.value=Q==null?void 0:Q.id};a.watch(()=>_.value,()=>{var fe,J;let Q=L.cloneDeep(r.originalItemContents);(fe=L.cloneDeep(r.originalItemContents))!=null&&fe.find(ce=>(ce==null?void 0:ce.key)==="enableWrap")?Q=(J=L.cloneDeep(r.originalItemContents))==null?void 0:J.map(ce=>((ce==null?void 0:ce.key)==="enableWrap"&&(ce.contents=!_.value),ce)):Q.push({key:"enableWrap",contents:!_.value}),o("change",Q)},{deep:!0});const Z=()=>{var J,ce,He,Ca,ne;$.value=S.value;let Q={};if(u.value!==""?Q.id=u.value:(N.value++,Q.id="id"+N.value),(J=$.value)==null||J.forEach(D=>{var be;const re=(be=sa.FormButton)==null?void 0:be.find(ue=>(ue==null?void 0:ue.label)===(D==null?void 0:D.label));re&&(Q[re.key]=D.value)}),(ce=v.value)!=null&&ce.find(D=>D.id===Q.id))v.value=(He=v.value)==null?void 0:He.map(D=>(D.id===Q.id&&(D=Q),D));else{let D=L.cloneDeep(v.value);v.value||(v.value=[]),D.push(Q),v.value=D}p.value=!1,u.value="";let fe=L.cloneDeep(r.originalItemContents);(Ca=L.cloneDeep(r.originalItemContents))!=null&&Ca.find(D=>(D==null?void 0:D.key)==="formButton")?fe=(ne=L.cloneDeep(r.originalItemContents))==null?void 0:ne.map(D=>((D==null?void 0:D.key)==="formButton"&&(D.contents=v.value),D)):fe.push({key:"formButton",contents:v.value}),o("change",fe)},C=Q=>{un.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var fe,J;y.value=(fe=L.cloneDeep(y.value))==null?void 0:fe.filter(ce=>(ce==null?void 0:ce.id)!==(Q==null?void 0:Q.id)),o("change",(J=L.cloneDeep(r.originalItemContents))==null?void 0:J.map(ce=>((ce==null?void 0:ce.key)==="formContent"&&(ce.contents=y.value),ce))),Qa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},w=Q=>{un.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var fe,J;v.value=(fe=L.cloneDeep(v.value))==null?void 0:fe.filter(ce=>(ce==null?void 0:ce.id)!==(Q==null?void 0:Q.id)),o("change",(J=L.cloneDeep(r.originalItemContents))==null?void 0:J.map(ce=>((ce==null?void 0:ce.key)==="formButton"&&(ce.contents=v.value),ce))),Qa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},E=()=>{var fe;p.value=!0;let Q=[];(fe=sa.FormButton)==null||fe.forEach(J=>{N.value++,Q.push({label:J==null?void 0:J.label,name:J==null?void 0:J.label,type:J.type,value:(J==null?void 0:J.label)==="类型"?"normal":"",id:N.value,contents:J==null?void 0:J.options})}),$.value=Q,S.value=Q},m=()=>{var fe,J,ce;s.value=!0;let Q=[];(ce=(J=(fe=sa.FormContent)==null?void 0:fe.find(He=>(He==null?void 0:He.key)==="Input"))==null?void 0:J.value)==null||ce.forEach(He=>{N.value++,Q.push({label:He==null?void 0:He.label,name:He==null?void 0:He.label,type:He.type,value:(He==null?void 0:He.label)==="类型"?"Input":"",id:N.value,contents:He==null?void 0:He.options})}),c.value=Q,b.value=Q},g=Q=>{let fe=L.cloneDeep(S.value);fe=fe==null?void 0:fe.map(J=>(J.value=Q==null?void 0:Q[J.name],J)),S.value=fe},j=Q=>{const fe=Q.find(He=>(He==null?void 0:He.name)==="类型");if((fe==null?void 0:fe.value)!="Select")return;const J=Q.find(He=>(He==null?void 0:He.name)==="多选"),ce=Q.find(He=>(He==null?void 0:He.name)==="初始值");J!=null&&J.value&&_i.isString(ce.value)&&(ce.value=[ce.value]),!(J!=null&&J.value)&&!_i.isString(ce.value)&&(ce.value="")},V=async Q=>{var fe,J,ce,He,Ca,ne,D,re,be,ue,De,pa;if((Q==null?void 0:Q.类型)!==((J=(fe=b.value)==null?void 0:fe.find(_a=>(_a==null?void 0:_a.label)==="类型"))==null?void 0:J.value)){let _a=[];const Ga=await((Ca=(He=(ce=sa.FormContent)==null?void 0:ce.find(le=>(le==null?void 0:le.key)===((Q==null?void 0:Q.类型)===""?"Input":Q==null?void 0:Q.类型)))==null?void 0:He.value)==null?void 0:Ca.value)?await((ue=(be=(re=sa.FormContent)==null?void 0:re.find(le=>(le==null?void 0:le.key)===((Q==null?void 0:Q.类型)===""?"Input":Q==null?void 0:Q.类型)))==null?void 0:be.value)==null?void 0:ue.value):(D=(ne=sa.FormContent)==null?void 0:ne.find(le=>(le==null?void 0:le.key)===((Q==null?void 0:Q.类型)===""?"Input":Q==null?void 0:Q.类型)))==null?void 0:D.value;if(Ga==null||Ga.forEach(le=>{var Ve,wa;N.value++;const la=Cu(le==null?void 0:le.default)?(Q==null?void 0:Q[le.label])??le.value??"":le==null?void 0:le.default;_a.push({label:le==null?void 0:le.label,name:le==null?void 0:le.label,type:le.type,value:la,prop:le==null?void 0:le.prop,id:N.value,contents:le==null?void 0:le.options,width:((wa=(Ve=b.value)==null?void 0:Ve[0])==null?void 0:wa.width)??1})}),Q!=null&&Q.菜单选项&&((De=Q==null?void 0:Q.菜单选项)==null?void 0:De.length)>0){const le=await sa.menuToContentType(Q==null?void 0:Q.菜单选项);_a=_a==null?void 0:_a.map(la=>((la==null?void 0:la.name)==="组信息选项"&&(la.contents=le),la))}j(_a),b.value=await sa.selectToBase(L.cloneDeep(_a)),c.value=await sa.selectToBase(L.cloneDeep(_a))}else{let _a=L.cloneDeep(b.value);if(_a=_a==null?void 0:_a.map(Ga=>(Ga.value=Q==null?void 0:Q[Ga.name],Ga)),Q!=null&&Q.菜单选项&&((pa=Q==null?void 0:Q.菜单选项)==null?void 0:pa.length)>0){const Ga=await sa.menuToContentType(Q==null?void 0:Q.菜单选项);_a=_a==null?void 0:_a.map(le=>((le==null?void 0:le.name)==="组信息选项"&&(le.contents=Ga),le))}_a=sa.formToOptionsContents(_a),j(_a),b.value=await sa.selectToBase(L.cloneDeep(_a))}},G=Q=>{Q||(c.value=b.value)},he=async Q=>{await V(Q),c.value=b.value},Te=ja.debounce(async()=>{var ce,He,Ca,ne,D,re,be,ue,De,pa,_a,Ga;c.value=b.value;let Q={};Q.width=((He=(ce=c.value)==null?void 0:ce[0])==null?void 0:He.width)??1,u.value!==""?Q.id=u.value:(N.value++,Q.id="id"+N.value);let fe=await((D=(ne=(Ca=sa.FormContent)==null?void 0:Ca.find(le=>{var la,Ve;return(le==null?void 0:le.key)===(((Ve=(la=c.value)==null?void 0:la.find(wa=>(wa==null?void 0:wa.label)==="类型"))==null?void 0:Ve.value)??"label")}))==null?void 0:ne.value)==null?void 0:D.value)??((be=(re=sa.FormContent)==null?void 0:re.find(le=>{var la,Ve;return(le==null?void 0:le.key)===(((Ve=(la=c.value)==null?void 0:la.find(wa=>(wa==null?void 0:wa.label)==="类型"))==null?void 0:Ve.value)??"label")}))==null?void 0:be.value);if((ue=c.value)==null||ue.forEach(le=>{const la=fe==null?void 0:fe.find(Ve=>(Ve==null?void 0:Ve.label)===(le==null?void 0:le.label));la&&(Q[la.key]=le.value)}),Q.width=Q.width?Q.width:1,Q.key=Q==null?void 0:Q.label,Q.isFormColHidden=Q==null?void 0:Q.isFormColHidden,(De=y.value)!=null&&De.find(le=>le.id===Q.id))y.value=(pa=y.value)==null?void 0:pa.map(le=>(le.id===Q.id&&(le=Q),le));else{let le=L.cloneDeep(y.value);le.push(Q),y.value=le}y.value=y.value.map(({id:le,...la})=>la),s.value=!1,u.value="";let J=L.cloneDeep(r.originalItemContents);(_a=L.cloneDeep(r.originalItemContents))!=null&&_a.find(le=>(le==null?void 0:le.key)==="formContent")?J=(Ga=L.cloneDeep(r.originalItemContents))==null?void 0:Ga.map(le=>((le==null?void 0:le.key)==="formContent"&&(le.contents=y.value),le)):J.push({key:"formContent",contents:y.value}),o("change",J)},300),Se=()=>{s.value=!1,p.value=!1,u.value="",b.value=[],S.value=[]};return a.watch(()=>r.originalItemContents,()=>{var fe,J,ce,He,Ca,ne;if(!r.originalItemContents||r.originalItemContents.length===0)return;const Q=L.cloneDeep(r.originalItemContents);y.value=((fe=Q==null?void 0:Q.find(D=>(D==null?void 0:D.key)==="formContent"))==null?void 0:fe.contents)??[],v.value=((J=Q==null?void 0:Q.find(D=>(D==null?void 0:D.key)==="formButton"))==null?void 0:J.contents)??[],_.value=(ce=Q==null?void 0:Q.find(D=>(D==null?void 0:D.key)==="enableWrap"))!=null&&ce.contents?!((He=Q==null?void 0:Q.find(D=>(D==null?void 0:D.key)==="enableWrap"))!=null&&He.contents):!0,y.value=(Ca=L.cloneDeep(y.value))==null?void 0:Ca.map((D,re)=>{var ue;let be=D;return be.id=(D==null?void 0:D.id)??re,D!=null&&D.label||(D.label=(D==null?void 0:D.key)??(D==null?void 0:D.label)??""),D!=null&&D.type||(D.type=(D==null?void 0:D.type)??""),D.contents=((ue=D==null?void 0:D.options)==null?void 0:ue.length)===0?(D==null?void 0:D.contents)??"":D==null?void 0:D.options,be}),y.value=sa.formToOptionsContents(y.value),v.value=(ne=v.value)==null?void 0:ne.map((D,re)=>D={label:(D==null?void 0:D.label)??"",type:(D==null?void 0:D.type)??"",background:(D==null?void 0:D.background)??"var(--ssComponent-primary-color)",id:re})},{deep:!0,immediate:!0}),(Q,fe)=>{const J=a.resolveComponent("svg-icon"),ce=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",J1,[a.createElementVNode("div",X1,[a.createElementVNode("div",Z1,[fe[2]||(fe[2]=a.createElementVNode("div",null,a.toDisplayString("表单内容"),-1)),a.createVNode(ce,{class:"icon-content",id:"themeButton",onClick:m},{icon:a.withCtx(()=>[a.createVNode(J,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[fe[1]||(fe[1]=a.createElementVNode("div",null,a.toDisplayString("新增"),-1))]),_:1,__:[1]})]),a.createElementVNode("div",Q1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(y.value,(He,Ca)=>(a.openBlock(),a.createElementBlock("div",{key:Ca},[a.createElementVNode("div",e2,[a.createElementVNode("div",null,a.toDisplayString(He.label),1),a.createElementVNode("div",a2,[a.createVNode(J,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ne=>O(He)},null,8,["onClick"]),a.createVNode(J,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ne=>C(He)},null,8,["onClick"])])])]))),128))]),a.createElementVNode("div",l2,[fe[4]||(fe[4]=a.createElementVNode("div",null,a.toDisplayString("表单按钮"),-1)),a.createVNode(ce,{class:"icon-content",id:"themeButton",onClick:E},{icon:a.withCtx(()=>[a.createVNode(J,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[fe[3]||(fe[3]=a.createTextVNode(" 新增 "))]),_:1,__:[3]})]),a.createElementVNode("div",r2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(v.value,(He,Ca)=>(a.openBlock(),a.createElementBlock("div",{key:Ca},[a.createElementVNode("div",n2,[a.createElementVNode("div",null,a.toDisplayString(He.label),1),a.createElementVNode("div",o2,[a.createVNode(J,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ne=>M(He)},null,8,["onClick"]),a.createVNode(J,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:ne=>w(He)},null,8,["onClick"])])])]))),128))]),fe[6]||(fe[6]=a.createElementVNode("div",{class:"operate-title"},[a.createElementVNode("div",null,a.toDisplayString("表单布局"))],-1)),a.createElementVNode("div",i2,[fe[5]||(fe[5]=a.createElementVNode("div",{class:"operate-center-content"},a.toDisplayString("是否自动撑宽"),-1)),a.createVNode(dl._sfc_main$1,{modelValue:_.value,"onUpdate:modelValue":fe[0]||(fe[0]=He=>_.value=He)},null,8,["modelValue"])])]),a.createVNode(xr.ssDialog,{visible:s.value,onBeforeDestroy:Se,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",t2,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:c.value,key:c.value,isEnableWrap:!0,onChange:V,onChangeVisible:G,onBlurChange:he},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",s2,[a.createVNode(ce,{onClick:Se,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>fe[7]||(fe[7]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[7]}),a.createVNode(ce,{class:"ok-button button",onClick:a.unref(Te),id:"themeButton"},{default:a.withCtx(()=>fe[8]||(fe[8]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[8]},8,["onClick"])])]),_:1},8,["visible"]),a.createVNode(xr.ssDialog,{visible:p.value,onBeforeDestroy:Se,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",c2,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:$.value,key:$.value,isEnableWrap:!0,onChange:g},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",{class:"dialog-footer"},[a.createElementVNode("div",{onClick:Se,class:"cancel-button button"},a.toDisplayString("取消")),a.createElementVNode("div",{class:"ok-button button",onClick:Z},a.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},gs=Kl._export_sfc(u2,[["__scopeId","data-v-20850524"]]),d2={class:"step-module content"},p2={class:"module-data"},f2={class:"step-module layout"},h2={class:"form-content"},v2=a.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,o=n,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}]),c=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"}]),p=a.reactive({visible:!1,width:"40%",title:"步骤条"}),v=a.ref("create"),y=a.ref({}),u=a.ref([]),_=O=>{var M;y.value=O,o("change",(M=S())==null?void 0:M.compData)},N=(O,M)=>{var Z,C;switch(O){case"create":(Z=c.value)==null||Z.forEach(w=>{w.value=""}),v.value="create",p.visible=!0;break;case"update":(C=c.value)==null||C.forEach(w=>{w.value=M[w==null?void 0:w.prop]}),v.value="update",p.visible=!0;break;case"delete":u.value.splice(M,1),v.value="delete";break}},$=O=>{var M,Z,C;if((O==null?void 0:O.buttonName)==="确认"){const w=L.cloneDeep(O==null?void 0:O.content);switch(Object.keys(w).forEach(E=>{w[E]===""&&delete w[E]}),v.value){case"create":u.value.push({...w,index:((M=u.value)==null?void 0:M.length)+1});break;case"update":u.value=(Z=u.value)==null?void 0:Z.map(E=>E.index===(w==null?void 0:w.index)?{...E,title:w==null?void 0:w.title,description:w==null?void 0:w.description}:E);break}o("change",(C=S())==null?void 0:C.compData),p.visible=!1}else p.visible=!1},S=()=>({comp:"Step",compData:[{key:"stepList",contents:u.value},{key:"stepConfig",contents:y.value}]}),q=()=>{p.visible=!1};return a.watch(()=>r==null?void 0:r.itemContents,O=>{var M,Z;O&&(y.value=((M=O==null?void 0:O.find(C=>C.key==="stepConfig"))==null?void 0:M.contents)??{},u.value=((Z=O==null?void 0:O.find(C=>C.key==="stepList"))==null?void 0:Z.contents)??[])},{immediate:!0}),(O,M)=>{const Z=a.resolveComponent("svg-icon"),C=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",d2,[M[2]||(M[2]=a.createElementVNode("h4",{class:"module-title"},"内容",-1)),a.createVNode(C,{class:"module-icon",id:"themeButton",onClick:M[0]||(M[0]=w=>N("create"))},{icon:a.withCtx(()=>[a.createVNode(Z,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[M[1]||(M[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",p2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(u.value,(w,E)=>(a.openBlock(),a.createElementBlock("div",{class:"module-data-item",key:E},[a.createElementVNode("span",null,a.toDisplayString(w==null?void 0:w.title),1),a.createElementVNode("div",null,[a.createVNode(C,{type:"primary",size:"small",onClick:m=>N("update",{...w,index:E+1})},{default:a.withCtx(()=>M[3]||(M[3]=[a.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),a.createVNode(C,{type:"danger",size:"small",onClick:m=>N("delete",E)},{default:a.withCtx(()=>M[4]||(M[4]=[a.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),a.createElementVNode("div",f2,[M[5]||(M[5]=a.createElementVNode("div",{class:"module-title"},"布局",-1)),a.createVNode(dl.ssForm,{rowContents:s.value,onChange:_},null,8,["rowContents"])])]),a.createVNode(xr.ssDialog,{visible:p.visible,title:p.title,onBeforeDestroy:q,width:p.width},{default:a.withCtx(()=>[a.createElementVNode("div",h2,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:c.value,key:c.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:b.value,onOnButtonClick:$},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),m2=Kl._export_sfc(v2,[["__scopeId","data-v-7dbd17f2"]]),y2={class:"step-module content"},g2={class:"module-data"},b2={class:"step-module layout"},k2={class:"form-content"},x2=a.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,o=n,s=a.ref("create"),c=a.ref({}),b=a.ref([]),p=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"}]),u=a.reactive({visible:!1,width:"40%",title:"时间线"}),_=O=>{var M;c.value=O,o("change",(M=S())==null?void 0:M.compData)},N=(O,M)=>{var Z,C;switch(O){case"create":(Z=v.value)==null||Z.forEach(w=>{w.value=""}),s.value="create",u.visible=!0;break;case"update":(C=v.value)==null||C.forEach(w=>{w.value=M[w==null?void 0:w.prop]}),s.value="update",u.visible=!0;break;case"delete":b.value.splice(M,1),s.value="delete";break}},$=O=>{var M,Z,C,w;if((O==null?void 0:O.buttonName)==="确认"){const E=L.cloneDeep(O==null?void 0:O.content);switch(Object.keys(E).forEach(m=>{E[m]===""&&delete E[m]}),s.value){case"create":(Z=b.value)==null||Z.push({...E,index:((M=b.value)==null?void 0:M.length)+1});break;case"update":b.value=(C=b.value)==null?void 0:C.map(m=>m.index===(E==null?void 0:E.index)?{...m,content:E==null?void 0:E.content,timestamp:E==null?void 0:E.timestamp}:m);break}o("change",(w=S())==null?void 0:w.compData),u.visible=!1}else u.visible=!1},S=()=>({comp:"TimeLine",compData:[{key:"timeLineList",contents:b.value},{key:"timeLineConfig",contents:c.value}]}),q=()=>{u.visible=!1};return a.watch(()=>r==null?void 0:r.itemContents,O=>{var M,Z;O&&(c.value=((M=O==null?void 0:O.find(C=>C.key==="timeLineConfig"))==null?void 0:M.contents)??{},b.value=((Z=O==null?void 0:O.find(C=>C.key==="timeLineList"))==null?void 0:Z.contents)??[])},{immediate:!0}),(O,M)=>{const Z=a.resolveComponent("svg-icon"),C=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",y2,[M[2]||(M[2]=a.createElementVNode("h4",{class:"module-title"},"内容",-1)),a.createVNode(C,{class:"module-icon",id:"themeButton",onClick:M[0]||(M[0]=w=>N("create"))},{icon:a.withCtx(()=>[a.createVNode(Z,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[M[1]||(M[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",g2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(b.value,(w,E)=>(a.openBlock(),a.createElementBlock("div",{class:"module-data-item",key:E},[a.createElementVNode("span",null,a.toDisplayString(w==null?void 0:w.content),1),a.createElementVNode("div",null,[a.createVNode(C,{type:"primary",size:"small",onClick:m=>N("update",{...w,index:E+1})},{default:a.withCtx(()=>M[3]||(M[3]=[a.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),a.createVNode(C,{type:"danger",size:"small",onClick:m=>N("delete",E)},{default:a.withCtx(()=>M[4]||(M[4]=[a.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),a.createElementVNode("div",b2,[M[5]||(M[5]=a.createElementVNode("div",{class:"module-title"},"布局",-1)),a.createVNode(dl.ssForm,{rowContents:p.value,onChange:_},null,8,["rowContents"])])]),a.createVNode(xr.ssDialog,{visible:u.visible,title:u.title,onBeforeDestroy:q,width:u.width},{default:a.withCtx(()=>[a.createElementVNode("div",k2,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:v.value,key:v.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:y.value,onOnButtonClick:$},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),w2=Kl._export_sfc(x2,[["__scopeId","data-v-39ffc861"]]),_2={};function E2(l,n){return a.openBlock(),a.createElementBlock("div")}const S2=Kl._export_sfc(_2,[["render",E2]]),C2={class:"extra-content"},D2={key:0},B2={key:1},N2={class:"dialog-footer"},T2={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},emits:["change"],setup(l,{emit:n}){const r=l,o=a.ref(0),s=a.ref(),c=a.ref(),b=n,p=a.ref(!1),v=a.ref({}),y=a.ref({}),u=a.ref();a.watch(()=>[r.itemData],()=>{var w;const C=L.cloneDeep(r.itemData);s.value=(w=L.cloneDeep(C))==null?void 0:w.map(E=>{var m;if(E.key==="extra"){let g=[];(m=E.value)==null||m.forEach(j=>{var V;g.push((V=Object.values(j))==null?void 0:V[0])}),E.value=g}return E})},{deep:!0,immediate:!0});const _=(C,w,E,m)=>{var j;let g={};((j=C==null?void 0:C[0])==null?void 0:j.contents)==="详情"&&(p.value=!0,g[w]=C,c.value=C==null?void 0:C.filter(V=>(V==null?void 0:V.key)!=="tableContentName"),v.value=g,y.value=E,u.value=m.id)},N=C=>{var V,G,he,Te;const w=(G=(V=Object.values(L.cloneDeep(v.value)))==null?void 0:V[0])==null?void 0:G.filter(Se=>(Se==null?void 0:Se.key)==="tableContentName"),E=(Te=(he=Object.values(L.cloneDeep(v.value)))==null?void 0:he[0])==null?void 0:Te.filter(Se=>(Se==null?void 0:Se.key)!=="tableContentName"),m=E==null?void 0:E.map((Se,Q)=>{var fe;return Q===C.index&&(Se==null?void 0:Se.comp)==="Table"&&(Se.compData=(fe=Se.compData)==null?void 0:fe.map(J=>{var ce,He;return(J==null?void 0:J.key)==="tableContents"&&(J.contents=(He=(ce=C.content)==null?void 0:ce.map(Ca=>{let ne={};for(let D in Ca)D!=="id"&&(ne[D]=Ca[D]);return ne}))==null?void 0:He.map(Ca=>Object.values(Ca))),J})),Se});m.unshift(w==null?void 0:w[0]);let g=L.cloneDeep(v.value),j={};for(let Se in g)j[Se]=m;v.value=j},$=()=>{p.value=!1,v.value={},y.value={},u.value=void 0,o.value++},S=C=>{var V,G,he,Te;const w=(G=(V=Object.values(L.cloneDeep(v.value)))==null?void 0:V[0])==null?void 0:G.filter(Se=>(Se==null?void 0:Se.key)==="tableContentName"),E=(Te=(he=Object.values(L.cloneDeep(v.value)))==null?void 0:he[0])==null?void 0:Te.filter(Se=>(Se==null?void 0:Se.key)!=="tableContentName"),m=E==null?void 0:E.map((Se,Q)=>(Q===C.index&&(Se.compData=C.contents),Se));m.unshift(w==null?void 0:w[0]);let g=L.cloneDeep(v.value),j={};for(let Se in g)j[Se]=m;v.value=j},q=()=>{var w,E;let C={};for(let m in y.value)m===((w=Object.keys(v.value))==null?void 0:w[0])?C[m]=(E=Object.values(v.value))==null?void 0:E[0]:C[m]=y.value[m];b("change",{buttonName:"编辑",index:u.value,singleContent:C},"methodData"),p.value=!1,v.value={},y.value={},u.value=void 0},O=()=>{p.value=!1,v.value={},y.value={},u.value=void 0},M=C=>{b("change",C,"methodData")},Z=C=>No(C);return(C,w)=>{const E=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",C2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,(m,g)=>(a.openBlock(),a.createElementBlock("div",{key:o.value},[(m==null?void 0:m.key)==="extra"?(a.openBlock(),a.createElementBlock("div",D2)):(a.openBlock(),a.createElementBlock("div",B2,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(Z(m.comp)),{itemData:m==null?void 0:m.compData,childItemData:m==null?void 0:m.itemChildData,key:g,index:(m==null?void 0:m.id)??g,onContentClick:_,onChange:M},null,40,["itemData","childItemData","index"]))]))]))),128)),a.createVNode(xr.ssDialog,{visible:p.value,onBeforeDestroy:O},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.value,(m,g)=>(a.openBlock(),a.createElementBlock("div",{key:g,class:"extra-dialog"},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(Z(m.comp)),{itemData:m==null?void 0:m.compData,onChange:N,childItemData:m==null?void 0:m.itemChildData,key:g,onContentChange:S,index:(m==null?void 0:m.id)??g,class:"extra-component"},null,40,["itemData","childItemData","index"]))]))),128))]),footer:a.withCtx(()=>[a.createElementVNode("div",N2,[a.createVNode(E,{class:"cancel-button footer-button",onClick:$,id:"themeBorderButton"},{default:a.withCtx(()=>w[0]||(w[0]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[0]}),a.createVNode(E,{class:"confirm-button footer-button",onClick:q,id:"themeButton"},{default:a.withCtx(()=>w[1]||(w[1]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},A2=Kl._export_sfc(T2,[["__scopeId","data-v-2d9c5ab2"]]),z2={key:0,class:"method-content"},M2={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},setup(l){const n=a.ref([]),r=sa.useOriginalState(L.pinia),{originalPath:o}=L.storeToRefs(r),s=l,c=a.ref(!1),b=a.ref(),p=sa.useTableComp(L.pinia),{multipleTableConst:v}=L.storeToRefs(p),y=L.useModelComp(L.pinia),u=a.ref(!1),_=L.useMenuState(L.pinia),N=L.useLoginState(L.pinia),{itemData:$,isEdit:S,routeToChildPath:q,tableViewContents:O,lockingPage:M,payloadTypes:Z}=L.storeToRefs(y),{activeMenuPath:C,platform:w,childMenu:E}=L.storeToRefs(_),{loginUserInfo:m}=L.storeToRefs(N),g=a.ref(!1),j=async()=>{var ne,D;(ne=n.value)!=null&&ne.find(re=>(re==null?void 0:re.buttonName)==="保存")&&await J((D=n.value)==null?void 0:D.find(re=>(re==null?void 0:re.buttonName)==="保存")),await sa.onSaveBack()};a.watch(()=>$.value,async()=>{S.value==="view"&&!g.value&&await Ca(L.cloneDeep(s.itemData)),g.value=!1},{deep:!0});const V=()=>{c.value=!1,b.value=void 0},G=ne=>ne.map(D=>{const re={};for(const be in D){const ue=D[be];if(be.includes(v.value)){const De=be.split(v.value);let pa=re;De.forEach((_a,Ga)=>{Ga===De.length-1?pa[_a]=ue:(pa[_a]||(pa[_a]={}),pa=pa[_a])})}else re[be]=ue}return re}),he=async(ne,D,re=[])=>{var ue,De,pa,_a,Ga,le,la,Ve,wa,Fe,ze,Re,Ze,Ja,qa;let be=(ue=L.cloneDeep(D))==null?void 0:ue.filter(F=>(F==null?void 0:F.comp)!=="methodButton");if(ne!=null&&ne.includes("[")){let F=(le=(Ga=(_a=(pa=(De=L.cloneDeep(ne))==null?void 0:De.split("["))==null?void 0:pa[1])==null?void 0:_a.split("]"))==null?void 0:Ga[0])==null?void 0:le.split(":"),P="";if(F!=null&&F[0]){let X=(la=be==null?void 0:be.find(ie=>(ie==null?void 0:ie.name)===(F==null?void 0:F[0])))==null?void 0:la.compData;if(!X){let ie=(Ve=ne==null?void 0:ne.split("["))==null?void 0:Ve[0],se=await sa.getItemData(ie,sessionStorage.getItem("systemKey"),"",!1,"","",re);X=(wa=se==null?void 0:se.find(ga=>(ga==null?void 0:ga.name)===(F==null?void 0:F[0])))==null?void 0:wa.compData}X==null||X.forEach(ie=>{var se,ga,ra,Le,Ee,Ea;if((ie==null?void 0:ie.key)==="formContent")(se=ie==null?void 0:ie.contents)==null||se.forEach(va=>{var Va;(va==null?void 0:va.key)===(F==null?void 0:F[1])&&(Array.isArray(va==null?void 0:va.value)?P=va==null?void 0:va.value:P=(Va=va==null?void 0:va.value)==null?void 0:Va.toString())});else if((ie==null?void 0:ie.key)==="tableContents"){let va=[],Va=(ga=X==null?void 0:X.find(me=>(me==null?void 0:me.key)==="header"))==null?void 0:ga.contents,Pa=(F==null?void 0:F[1])??"";if(Va!=null&&Va.every(me=>Array.isArray(me))){let me=sa.getColumnChild((Ee=Va==null?void 0:Va[0])==null?void 0:Ee.filter(Je=>(Je==null?void 0:Je.label)!=="操作"));(Ea=ie.contents)==null||Ea.forEach(Je=>{let Ae={};Je=Je==null?void 0:Je.filter(Xe=>!(Xe!=null&&Xe.id)),me==null||me.forEach((Xe,oe)=>{let _e=Je[oe];typeof Je[oe]=="number"&&(_e=Je[oe].toString()),(Pa===""||Pa===Xe.prop)&&(Ae[Xe.prop]=_e)}),va.push(Ae)}),va=G(va)}else{let me=(ra=Va==null?void 0:Va.map(Je=>Je==null?void 0:Je.label))==null?void 0:ra.filter(Je=>Je!=="操作");(Le=ie.contents)==null||Le.forEach(Je=>{let Ae={};Je=Je==null?void 0:Je.filter(Xe=>!(Xe!=null&&Xe.id)),me==null||me.forEach((Xe,oe)=>{let _e=Je[oe];typeof Je[oe]=="number"&&(_e=Je[oe].toString()),(Pa===""||Pa===Xe)&&(Ae[Xe]=_e)}),va.push(Ae)})}P=va}})}return P}else if(ne!=null&&ne.includes("/")){let F={};return(Fe=L.cloneDeep(be))==null||Fe.forEach((P,X)=>{var ie,se,ga,ra,Le,Ee,Ea,va,Va,Pa,me,Je,Ae,Xe,oe,_e,de,We,ea;if((P==null?void 0:P.comp)==="Table"){let ka=Array.isArray((ga=(se=(ie=P==null?void 0:P.compData)==null?void 0:ie.find(fa=>(fa==null?void 0:fa.key)==="header"))==null?void 0:se.contents)==null?void 0:ga[0])?(Ea=(Ee=(Le=(ra=P==null?void 0:P.compData)==null?void 0:ra.find(fa=>(fa==null?void 0:fa.key)==="header"))==null?void 0:Le.contents)==null?void 0:Ee[0])==null?void 0:Ea.some(fa=>fa==null?void 0:fa.children):[],Pe=(Pa=(Va=(va=P==null?void 0:P.compData)==null?void 0:va.find(fa=>(fa==null?void 0:fa.key)==="tableContents"))==null?void 0:Va.contents)==null?void 0:Pa.map(fa=>(fa!=null&&fa.find(Ha=>Ha==null?void 0:Ha.id)&&(fa=fa.slice(1)),fa)),ba=(oe=(Xe=(Ae=(Je=(me=P==null?void 0:P.compData)==null?void 0:me.find(fa=>(fa==null?void 0:fa.key)==="header"))==null?void 0:Je.contents)==null?void 0:Ae[0])==null?void 0:Xe[0])==null?void 0:oe.label,xa=(de=(_e=P==null?void 0:P.compData)==null?void 0:_e.find(fa=>(fa==null?void 0:fa.key)==="header"))==null?void 0:de.contents;if(ka)(ka==null?void 0:ka.length)===0?F[P.name]=F!=null&&F[P.name]?F[P.name]:sa.tableToForm(Pe,xa):F[ba]=sa.tableToForm(Pe,xa);else{const fa=[];xa=xa.slice(1,xa.length-1),xa==null||xa.forEach((Ha,Ba)=>{Pe==null||Pe.forEach(Ia=>{fa.push({key:Ha.label+Ia[0],value:Ia[Ba+1]})})}),F["form"+X]=fa}}else{const ka=(ea=(We=P.compData)==null?void 0:We.find(ba=>(ba==null?void 0:ba.key)==="formContent"))==null?void 0:ea.contents;F!=null&&F.form||(F.form=[]);const Pe=[];ka==null||ka.forEach(ba=>{ba.key!==""&&(ba={key:(ba==null?void 0:ba.key)??(ba==null?void 0:ba.label),value:ba==null?void 0:ba.value},Pe.push(ba))}),F.form=[...Pe,...L.cloneDeep(F==null?void 0:F.form)]}}),F}else{if(ne==="createInsofDataApi"){let F=(ze=L.cloneDeep(D))==null?void 0:ze[0];return F={comp:(Re=L.cloneDeep(F))==null?void 0:Re.comp,compData:(Ze=L.cloneDeep(F))==null?void 0:Ze.compData,name:(Ja=L.cloneDeep(F))==null?void 0:Ja.name,isShow:(qa=L.cloneDeep(F))==null?void 0:qa.isShow},{key:{type:"structure",systemKey:sessionStorage.getItem("systemKey"),parentTable:"",pageKey:C.value},value:{pageData:F}}}return ne}},Te=async(ne,D,re)=>{var De,pa,_a;let be=await sa.getItemData(D,sessionStorage.getItem("systemKey"),""),ue=be==null?void 0:be.find(Ga=>(Ga==null?void 0:Ga.name)===(re==null?void 0:re[0]));if(ue){if((ue==null?void 0:ue.comp)==="Table"){let Ga={};for(let Re in L.cloneDeep(ne))L.cloneDeep(ne)[Re]!=="loginUser"?Ga[Re]=L.cloneDeep(ne)[Re]:Ga[Re]=((De=m.value)==null?void 0:De.account)||((pa=m.value)==null?void 0:pa.账号);let le=[],la=Ga;Array.isArray(ne)||(la=[Ga]),la==null||la.forEach(Re=>{le.push({[Re[re[1]]]:Re})});let Ve=[],wa=le==null?void 0:le.map(Re=>{var Ze;return(Ze=Object.keys(Re))==null?void 0:Ze[0]});be==null||be.forEach(Re=>{var Ze;(Re==null?void 0:Re.name)===(re==null?void 0:re[0])&&((Ze=Re==null?void 0:Re.compData)==null||Ze.forEach(Ja=>{var qa;(Ja==null?void 0:Ja.key)==="tableContents"&&((qa=Ja==null?void 0:Ja.contents)==null||qa.forEach(F=>{F!=null&&F.some(P=>wa.includes(P))&&Ve.push({[F.find(P=>P.id).id]:F.find(P=>wa.includes(P))})}))}))});let Fe=Ve==null?void 0:Ve.map(Re=>{var Ze;return(Ze=Object.keys(Re))==null?void 0:Ze[0]}),ze=[];if(Fe==null||Fe.forEach(Re=>{var qa;let Ze=(qa=Ve==null?void 0:Ve.find(F=>{var P;return((P=Object.keys(F))==null?void 0:P[0].toString())===Re.toString()}))==null?void 0:qa[Re],Ja=le==null?void 0:le.find(F=>{var P;return((P=Object.keys(F))==null?void 0:P[0])===Ze});ze.push({id:parseInt(Re),value:{tableData:Ja[Ze]}})}),(ze==null?void 0:ze.length)>0)return ze}else if((ue==null?void 0:ue.comp)==="Form"){let Ga=L.cloneDeep(ue);Ga.compData=(_a=Ga.compData)==null?void 0:_a.map(Ve=>{var wa;return(Ve==null?void 0:Ve.key)==="formContent"&&(Ve.contents=(wa=Ve.contents)==null?void 0:wa.map(Fe=>((Fe==null?void 0:Fe.key)===(re==null?void 0:re[1])&&(Fe.value=(ne==null?void 0:ne[Fe==null?void 0:Fe.prop])||ne),Fe))),Ve});let le={};for(let Ve in Ga)Ve!=="id"&&(le[Ve]=Ga[Ve]);let la=[];if(la.push({id:ue==null?void 0:ue.id,keyType:re==null?void 0:re[1],value:{pageData:le}}),(la==null?void 0:la.length)>0)return la}}},Se=async(ne,D,re)=>{var De,pa,_a,Ga,le,la,Ve,wa,Fe,ze;let be=await sa.getItemData(D,sessionStorage.getItem("systemKey"),""),ue=be==null?void 0:be.find(Re=>(Re==null?void 0:Re.name)===(re==null?void 0:re[0]));if(ue){if((ue==null?void 0:ue.comp)==="Table"){let Re={};for(let Ze in L.cloneDeep(ne))L.cloneDeep(ne)[Ze]!=="loginUser"?Re[Ze]=L.cloneDeep(ne)[Ze]:Re[Ze]=((De=m.value)==null?void 0:De.account)||((pa=m.value)==null?void 0:pa.账号);await _r.createInsofDataApi({key:{type:"data",pageKey:D,tableId:ue==null?void 0:ue.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:Re}})}else if((ue==null?void 0:ue.comp)==="Form"){let Re=L.cloneDeep(ue),Ze=Object.keys(ne),Ja="";(Ga=(_a=L.cloneDeep(Re))==null?void 0:_a.compData)==null||Ga.forEach(se=>{var ga,ra;(se==null?void 0:se.key)==="formContent"&&((ra=(ga=L.cloneDeep(se))==null?void 0:ga.contents)==null||ra.forEach(Le=>{var Ee;Ze.includes(Le==null?void 0:Le.key)&&(Le==null?void 0:Le.value)===((Ee=m.value)==null?void 0:Ee.姓名)&&(Ja=Le==null?void 0:Le.key)}))});let qa=[];(le=Object.values(ne[Ja]))==null||le.forEach(se=>{se!=null&&se.includes("(")&&qa.push(se)}),qa=[...new Set(qa)];const F=qa==null?void 0:qa.map(async se=>{var Ea,va,Va,Pa,me,Je,Ae,Xe,oe,_e,de,We;let ga="";(Je=(me=(Pa=(Va=(va=(Ea=L.cloneDeep(se))==null?void 0:Ea.split("("))==null?void 0:va[1])==null?void 0:Va.split(")"))==null?void 0:Pa[0])==null?void 0:me.split(":"))==null||Je.forEach(ea=>{ga=ga===""?ga+ea.replaceAll("'",""):ga+"/"+ea.replaceAll("'","")});let ra=[];(We=(de=(_e=(oe=(Xe=(Ae=L.cloneDeep(se))==null?void 0:Ae.split("<"))==null?void 0:Xe[1])==null?void 0:oe.split(">"))==null?void 0:_e[0])==null?void 0:de.split(":"))==null||We.forEach(ea=>{ra.push(ea.replaceAll("'",""))});const Le=await sa.getItemData(ga,sessionStorage.getItem("systemKey"),"");let Ee="";return Le==null||Le.forEach(ea=>{var ka;ea.name===(ra==null?void 0:ra[0])&&((ka=ea==null?void 0:ea.compData)==null||ka.forEach(Pe=>{var ba;(Pe==null?void 0:Pe.key)==="formContent"&&((ba=Pe.contents)==null||ba.forEach(xa=>{(xa==null?void 0:xa.key)===(ra==null?void 0:ra[1])&&(Ee=xa==null?void 0:xa.value)}))}))}),{[se]:Ee}}),P=await Promise.all(F);Re.compData=(Ve=(la=L.cloneDeep(Re))==null?void 0:la.compData)==null?void 0:Ve.map(se=>{var ga,ra;return(se==null?void 0:se.key)==="formContent"&&(se.contents=(ra=(ga=L.cloneDeep(se))==null?void 0:ga.contents)==null?void 0:ra.map(Le=>{var Ee,Ea,va,Va;return(Ee=ne[Ja])!=null&&Ee[Le==null?void 0:Le.key]&&(ne[Ja][Le==null?void 0:Le.key].includes("(")?Le.value=(Ea=P==null?void 0:P.find(Pa=>{var me;return((me=Object.keys(Pa))==null?void 0:me[0])===ne[Ja][Le==null?void 0:Le.key]}))==null?void 0:Ea[ne[Ja][Le==null?void 0:Le.key]]:Le.value=(Va=(va=L.cloneDeep(ne))==null?void 0:va[Ja])==null?void 0:Va[Le==null?void 0:Le.key]),Le})),se});const X=await _r.getInsofDataApi({key:{type:"structure",pageKey:D,systemKey:sessionStorage.getItem("systemKey")}});let ie="";((wa=X==null?void 0:X.data)==null?void 0:wa.type)==="success"&&((ze=(Fe=X==null?void 0:X.data)==null?void 0:Fe.result)==null||ze.forEach(se=>{var ga,ra;((ra=(ga=se==null?void 0:se.value)==null?void 0:ga.pageData)==null?void 0:ra.name)===(re==null?void 0:re[0])&&(ie=se.id)}),await _r.updateInsofDataApi({id:ie,value:{pageData:Re}}))}}},Q=(ne,D="",re={})=>{for(const[be,ue]of Object.entries(ne)){const De=D?`${D}.${be}`:be;ue!==null&&typeof ue=="object"&&!Array.isArray(ue)&&Object.prototype.toString.call(ue)!=="[object Date]"?Q(ue,De,re):re[De]=ue}return re},fe=async(ne,D,re,be)=>{var pa,_a,Ga,le,la,Ve,wa,Fe,ze,Re,Ze,Ja,qa,F,P,X,ie,se,ga,ra,Le,Ee,Ea,va,Va;let ue=await sa.getItemData(D,sessionStorage.getItem("systemKey"),""),De=ue==null?void 0:ue.find(Pa=>(Pa==null?void 0:Pa.name)===(re==null?void 0:re[0]));if(De){if(!(re!=null&&re[1])&&(De==null?void 0:De.comp)==="Table"){let Pa={},me=[],Je=(_a=(pa=De==null?void 0:De.compData)==null?void 0:pa.find(oe=>(oe==null?void 0:oe.key)==="header"))==null?void 0:_a.contents;Je!=null&&Je.every(oe=>Array.isArray(oe))?me=(le=sa.getColumnChild((Ga=Je==null?void 0:Je[0])==null?void 0:Ga.filter(oe=>(oe==null?void 0:oe.label)!=="操作")))==null?void 0:le.map(oe=>oe==null?void 0:oe.prop):me=Je==null?void 0:Je.map(oe=>oe==null?void 0:oe.label);for(let oe in L.cloneDeep(ne))if(L.cloneDeep(ne)[oe]!=="loginUser"){let _e=Q(L.cloneDeep(ne)[oe]),de={};for(let We in _e)if(me!=null&&me.find(ea=>ea===We))de[We]=_e[We];else if(me!=null&&me.find(ea=>(ea==null?void 0:ea.toUpperCase())===(We==null?void 0:We.toUpperCase()))){let ea=me==null?void 0:me.find(ka=>(ka==null?void 0:ka.toUpperCase())===(We==null?void 0:We.toUpperCase()));de[ea]=_e[We]}Pa[oe]=de}else Pa[oe]=((la=m.value)==null?void 0:la.account)||((Ve=m.value)==null?void 0:Ve.账号);let Ae=await _r.getInsofDataApi({keyLikes:{tableId:De==null?void 0:De.id}});if(((Fe=(wa=Ae==null?void 0:Ae.data)==null?void 0:wa.result)==null?void 0:Fe.length)>0){let oe=(Re=(ze=Ae==null?void 0:Ae.data)==null?void 0:ze.result)==null?void 0:Re.map(_e=>_e==null?void 0:_e.id);(oe==null?void 0:oe.length)>0&&await _r.batchDeleteInsofDataApi({ids:oe})}let Xe=[];if((Ze=De==null?void 0:De.compData)!=null&&Ze.find(oe=>(oe==null?void 0:oe.key)==="pageColumn")&&((F=(qa=(Ja=De==null?void 0:De.compData)==null?void 0:Ja.find(oe=>(oe==null?void 0:oe.key)==="pageColumn"))==null?void 0:qa.contents)!=null&&F.includes("["))){const oe=await _r.getInsofDataApi({id:De==null?void 0:De.tableId});let _e=((se=(ie=(X=(P=oe==null?void 0:oe.data)==null?void 0:P.result)==null?void 0:X[0])==null?void 0:ie.key)==null?void 0:se.pageKey)??"";(ga=Object.values(Pa))==null||ga.forEach(de=>{Xe.push({key:{type:"data",pageKey:_e,tableId:De==null?void 0:De.tableId,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:de}})})}else(ra=Object.values(Pa))==null||ra.forEach(oe=>{Xe.push({key:{type:"data",pageKey:D,tableId:De==null?void 0:De.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:oe}})});(Xe==null?void 0:Xe.length)>0&&await _r.batchAddInsofDataApi({dataList:Xe})}else if(!(re!=null&&re[1])&&(De==null?void 0:De.comp)==="Form"){let Pa=L.cloneDeep(De);Pa.compData=(Ee=(Le=L.cloneDeep(Pa))==null?void 0:Le.compData)==null?void 0:Ee.map(Ae=>{var Xe,oe;return(Ae==null?void 0:Ae.key)==="formContent"&&(Ae.contents=(oe=(Xe=L.cloneDeep(Ae))==null?void 0:Xe.contents)==null?void 0:oe.map(_e=>{var de,We;return(de=L.cloneDeep(ne))!=null&&de[_e==null?void 0:_e.key]&&(_e.value=(We=L.cloneDeep(ne))==null?void 0:We[_e==null?void 0:_e.key]),_e})),Ae});const me=await _r.getInsofDataApi({key:{type:"structure",pageKey:D,systemKey:sessionStorage.getItem("systemKey")}});let Je="";((Ea=me==null?void 0:me.data)==null?void 0:Ea.type)==="success"&&((Va=(va=me==null?void 0:me.data)==null?void 0:va.result)==null||Va.forEach(Ae=>{var Xe,oe;((oe=(Xe=Ae==null?void 0:Ae.value)==null?void 0:Xe.pageData)==null?void 0:oe.name)===(re==null?void 0:re[0])&&(Je=Ae.id)}),await _r.updateInsofDataApi({id:Je,value:{pageData:Pa}}))}}},J=async ne=>{var D,re,be,ue,De,pa,_a,Ga,le,la,Ve,wa,Fe,ze;_.setImportLoading(!0);try{if(ne.api){let Re=new WeakMap,Ze=await sa.getItemData((E==null?void 0:E.value)===""?C.value:E==null?void 0:E.value,sessionStorage.getItem("systemKey"),"",!1,"","",Re),Ja="";if(Ze=Ze==null?void 0:Ze.map(ra=>{var Le,Ee,Ea,va,Va,Pa,me,Je,Ae,Xe,oe,_e;if((ra==null?void 0:ra.comp)==="Form")ra.compData=(Le=ra.compData)==null?void 0:Le.map(de=>{var We;return(de==null?void 0:de.key)==="formContent"&&(de.contents=(We=de.contents)==null?void 0:We.map(ea=>{var ka;if((ea==null?void 0:ea.value)===""&&(ea==null?void 0:ea.type)==="Select"){let Pe=sa.judgeContents((ka=L.cloneDeep(ea))==null?void 0:ka.optionUrl,Re);ea.value=ea.value||Pe}return ea})),de});else if((ra==null?void 0:ra.comp)==="Table"&&(Ee=ra.compData)!=null&&Ee.find(de=>(de==null?void 0:de.key)==="pageColumn")){let de=(va=(Ea=ra.compData)==null?void 0:Ea.find(Pe=>(Pe==null?void 0:Pe.key)==="pageColumn"))==null?void 0:va.contents,We=((Pa=(Va=ra.compData)==null?void 0:Va.find(Pe=>(Pe==null?void 0:Pe.key)==="pageGroup"))==null?void 0:Pa.contents)??"",ea=(Ae=(Je=(me=de==null?void 0:de.split("["))==null?void 0:me[1])==null?void 0:Je.split("]"))==null?void 0:Ae[0];Ja=((Xe=de==null?void 0:de.split("["))==null?void 0:Xe[0])+((_e=(oe=O.value)==null?void 0:oe.find(Pe=>(Pe==null?void 0:Pe.key)===ea))==null?void 0:_e.value)}return ra}),!(Ja===""||Ja==="")){const ra=await sa.getItemData(Ja,sessionStorage.getItem("systemKey"),"",!1,"","",Re);Ze=Ze==null?void 0:Ze.map(Le=>{var Ee,Ea,va,Va,Pa,me,Je,Ae,Xe,oe,_e,de,We;if((Le==null?void 0:Le.comp)==="Table"&&(Ee=Le.compData)!=null&&Ee.find(ea=>(ea==null?void 0:ea.key)==="pageColumn")){let ea=(va=(Ea=Le.compData)==null?void 0:Ea.find(fa=>(fa==null?void 0:fa.key)==="pageColumn"))==null?void 0:va.contents,ka=((Pa=(Va=Le.compData)==null?void 0:Va.find(fa=>(fa==null?void 0:fa.key)==="pageGroup"))==null?void 0:Pa.contents)??"",Pe=(Ae=(Je=(me=ea==null?void 0:ea.split("["))==null?void 0:me[1])==null?void 0:Je.split("]"))==null?void 0:Ae[0],ba=((Xe=ea==null?void 0:ea.split("["))==null?void 0:Xe[0])+((_e=(oe=O.value)==null?void 0:oe.find(fa=>(fa==null?void 0:fa.key)===Pe))==null?void 0:_e.value),xa=(de=ra==null?void 0:ra.find(fa=>(fa==null?void 0:fa.name)===(ka===""?s==null?void 0:s.compName:ka)))==null?void 0:de.compData;Le.compData=(We=Le.compData)==null?void 0:We.map(fa=>{var Ha;return(fa==null?void 0:fa.key)==="tableContents"&&(fa.contents=(Ha=xa==null?void 0:xa.find(Ba=>(Ba==null?void 0:Ba.key)==="tableContents"))==null?void 0:Ha.contents),fa})}return Le})}let qa={};if(((re=(D=ne==null?void 0:ne.extraValues)==null?void 0:D.input)==null?void 0:re.length)>0){const ra=(ue=(be=ne==null?void 0:ne.extraValues)==null?void 0:be.input)==null?void 0:ue.map(async Le=>{var Ee;ce!=null&&ce.find(Ea=>Ea===Le)?qa=await he(Le,Ze):qa[Object.keys(Le)[0]]=await he((Ee=Object.values(Le))==null?void 0:Ee[0],Ze,Re)});await Promise.all(ra)}else qa=await he("/",Ze);let F=!1;(pa=(De=ne==null?void 0:ne.extraValues)==null?void 0:De.output)==null||pa.forEach(ra=>{var Le,Ee;(Ee=(Le=Object.values(ra))==null?void 0:Le[0])!=null&&Ee.includes(".doc")&&(F=!0)});let P;if(F){const ra=Vo.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});P=await Qa.axios.post(ne.api,qa,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{ra.close()})}else P=await Qa.axios.post(ne.api,qa,{headers:{"Content-Type":"application/json"}});let X=(la=(le=(Ga=(_a=L.cloneDeep(ne))==null?void 0:_a.extraValues)==null?void 0:Ga.output)==null?void 0:le.map(ra=>{var Le,Ee,Ea,va,Va,Pa,me,Je,Ae,Xe,oe,_e,de,We,ea,ka;if(!((Ee=(Le=Object.values(ra))==null?void 0:Le[0])!=null&&Ee.includes(".doc"))){let Pe=(Xe=(Ae=(Je=(va=L.cloneDeep((Ea=Object.values(ra))==null?void 0:Ea[0]))==null?void 0:va.split("["))==null?void 0:Je[((me=(Pa=L.cloneDeep((Va=Object.values(ra))==null?void 0:Va[0]))==null?void 0:Pa.split("["))==null?void 0:me.length)-1])==null?void 0:Ae.split("]"))==null?void 0:Xe[0],ba=Pe==null?void 0:Pe.split(":"),xa=(de=L.cloneDeep((oe=Object.values(ra))==null?void 0:oe[0]))==null?void 0:de.substring(0,L.cloneDeep((_e=Object.values(ra))==null?void 0:_e[0]).lastIndexOf("["));if(xa=(ea=L.cloneDeep(xa))==null?void 0:ea.slice(0,((We=L.cloneDeep(xa))==null?void 0:We.length)-1),xa!=null&&xa.includes("[")){let fa="";if((ka=sa.contentTransArrayToAll(xa,"/"))==null||ka.forEach(Ha=>{var Ba,Ia,$a,Ne,sl,yl,Gl;if(!(Ha!=null&&Ha.includes("[")))fa=fa===""?fa+Ha.replaceAll("/",""):fa+"/"+Ha.replaceAll("/","");else{let Ya=L.cloneDeep(Ha).slice(1,((Ba=L.cloneDeep(Ha))==null?void 0:Ba.length)-1),da=(yl=(sl=(Ne=($a=(Ia=L.cloneDeep(Ya))==null?void 0:Ia.split("["))==null?void 0:$a[1])==null?void 0:Ne.split("]"))==null?void 0:sl[0])==null?void 0:yl.split(":"),ha="",ma=(Gl=Ze==null?void 0:Ze.find(Ye=>(Ye==null?void 0:Ye.name)===(da==null?void 0:da[0])))==null?void 0:Gl.compData;ma==null||ma.forEach(Ye=>{var Xa;(Ye==null?void 0:Ye.key)==="formContent"&&((Xa=Ye==null?void 0:Ye.contents)==null||Xa.forEach(Ce=>{(Ce==null?void 0:Ce.key)===(da==null?void 0:da[1])&&(ha=Ce==null?void 0:Ce.value)}))}),fa=fa===""?fa+ha.replaceAll("/",""):fa+"/"+ha.replaceAll("/","")}}),xa=fa,xa[(xa==null?void 0:xa.length)-1]!=="/")return xa}}}))==null?void 0:la.filter(ra=>ra);X=[...new Set(L.cloneDeep(X))];let ie=X==null?void 0:X.map(async ra=>{let Le=await sa.getItemData(ra,sessionStorage.getItem("systemKey"),"",!1,"","",Re);if((Le==null?void 0:Le.length)===0)return await sa.getParentContents(ra)});await Promise.all(ie);let se=[],ga=(Fe=(wa=(Ve=L.cloneDeep(ne))==null?void 0:Ve.extraValues)==null?void 0:wa.output)==null?void 0:Fe.map(async ra=>{var Je,Ae,Xe,oe,_e,de,We,ea,ka,Pe,ba,xa,fa,Ha,Ba,Ia,$a,Ne,sl,yl,Gl,Ya,da,ha,ma,Ye,Xa,Ce,Ke,ye,Oa,Ue,W,aa,Ge,Be,El,il,bl,Wa,Za,Na,pe,Sa,Sl,Vl,Fl,lr,mr,Nl,or,Nr,Ll,er,Qr,Ir,Ar,Cr,zr,Mr,Dr,Vr,Or,ir,gn,Gr,rn,Nn,bn,vn;if((Ae=(Je=Object.values(ra))==null?void 0:Je[0])!=null&&Ae.includes(".doc")){var Le=new Blob([P.data],{type:"application/octet-stream;charset=UTF-8"}),Ee=P.headers["content-disposition"],Ea=new RegExp("filename=([^;]+\\.[^\\.;]+);*"),va=Ea.exec(Ee),Va=va==null?void 0:va[1],Pa=document.createElement("a"),me=window.URL.createObjectURL(Le);b.value=[{name:Va,blobUrl:me}],c.value=!0}else{let fr=(Pe=(ka=(ea=(oe=L.cloneDeep((Xe=Object.values(ra))==null?void 0:Xe[0]))==null?void 0:oe.split("["))==null?void 0:ea[((We=(de=L.cloneDeep((_e=Object.values(ra))==null?void 0:_e[0]))==null?void 0:de.split("["))==null?void 0:We.length)-1])==null?void 0:ka.split("]"))==null?void 0:Pe[0],Hl=fr==null?void 0:fr.split(":"),cr=(fa=L.cloneDeep((ba=Object.values(ra))==null?void 0:ba[0]))==null?void 0:fa.substring(0,L.cloneDeep((xa=Object.values(ra))==null?void 0:xa[0]).lastIndexOf("["));if(cr!=null&&cr.includes("[")?cr=(Ba=L.cloneDeep(cr))==null?void 0:Ba.slice(0,((Ha=L.cloneDeep(cr))==null?void 0:Ha.length)-1):cr===""&&(cr=C.value),cr=cr.replaceAll("<","[").replaceAll(">","]"),cr!=null&&cr.includes("[")){let ql="";(Ia=sa.contentTransArrayToAll(cr,"/"))==null||Ia.forEach((Il,hr)=>{var rr,jl,Rr,Pr,kn,nn,Xn,Tn,Zn,xn,An;if(!(Il!=null&&Il.includes("[")))ql=ql===""?ql+Il.replaceAll("/",""):ql+"/"+Il.replaceAll("/","");else{let Pn="",en="";(rr=L.cloneDeep(Il))!=null&&rr.includes("]")?(Pn=L.cloneDeep(Il).slice(1,((jl=L.cloneDeep(Il))==null?void 0:jl.length)-1),en=(Xn=(nn=(kn=(Pr=(Rr=L.cloneDeep(Pn))==null?void 0:Rr.split("["))==null?void 0:Pr[1])==null?void 0:kn.split("]"))==null?void 0:nn[0])==null?void 0:Xn.split(":")):(Pn=L.cloneDeep(Il).slice(1,(Tn=L.cloneDeep(Il))==null?void 0:Tn.length),en=(Zn=L.cloneDeep(Pn))==null?void 0:Zn.split("/"));let zn="",wn=(xn=Ze==null?void 0:Ze.find(Kr=>(Kr==null?void 0:Kr.name)===(en==null?void 0:en[0])))==null?void 0:xn.compData;wn==null||wn.forEach(Kr=>{var Fn;(Kr==null?void 0:Kr.key)==="formContent"&&((Fn=Kr==null?void 0:Kr.contents)==null||Fn.forEach(mn=>{(mn==null?void 0:mn.key)===(en==null?void 0:en[1])&&(zn=mn==null?void 0:mn.value)}))}),((An=sa.contentTransArrayToAll(cr,"/"))==null?void 0:An.length)-1!==hr?ql=ql===""?ql+zn.replaceAll("/",""):ql+"/"+zn.replaceAll("/",""):ql=ql+o.value+zn.replaceAll("/","")}}),($a=C.value)!=null&&$a.includes(ql)?cr=C.value:cr=ql}let Rl=L.cloneDeep((Ne=Object.keys(ra))==null?void 0:Ne[0]);if(((sl=P==null?void 0:P.data)==null?void 0:sl.statusCode)===200||((yl=P==null?void 0:P.data)==null?void 0:yl.code)===200){if(((Ya=(Gl=P==null?void 0:P.data)==null?void 0:Gl.data)!=null&&Ya[Rl]||(ha=(da=P==null?void 0:P.data)==null?void 0:da.result)!=null&&ha[Rl])&&(Hl==null?void 0:Hl.length)===1)return await fe(((Ye=(ma=P==null?void 0:P.data)==null?void 0:ma.data)==null?void 0:Ye[Rl])||((Ce=(Xa=P==null?void 0:P.data)==null?void 0:Xa.result)==null?void 0:Ce[Rl]),L.cloneDeep(cr),Hl,Ja);if((ye=(Ke=P==null?void 0:P.data)==null?void 0:Ke.data)!=null&&ye[Rl]||(Ue=(Oa=P==null?void 0:P.data)==null?void 0:Oa.result)!=null&&Ue[Rl]){let ql=await Te(((aa=(W=P==null?void 0:P.data)==null?void 0:W.data)==null?void 0:aa[Rl])||((Be=(Ge=P==null?void 0:P.data)==null?void 0:Ge.result)==null?void 0:Be[Rl]),L.cloneDeep(cr),Hl);return ql&&(se=[...se,...ql]),ql}else{if(!((El=P==null?void 0:P.data)!=null&&El.data)){let ql=await sa.getItemData(C.value,sessionStorage.getItem("systemKey"),"",!1,"","",Re);ql=ql==null?void 0:ql.map(hr=>{var rr;return(hr==null?void 0:hr.name)===(Hl==null?void 0:Hl[0])&&(hr.compData=(rr=hr.compData)==null?void 0:rr.map(jl=>{var Rr;return(jl==null?void 0:jl.key)==="formContent"&&(jl.contents=(Rr=jl.contents)==null?void 0:Rr.map(Pr=>{var kn,nn;return(Pr==null?void 0:Pr.key)===(Hl==null?void 0:Hl[1])&&(Pr.value=(nn=(kn=P==null?void 0:P.data)==null?void 0:kn.result)==null?void 0:nn[Rl==null?void 0:Rl.replaceAll(":","")]),Pr})),jl})),hr});let Il=[];(il=ql==null?void 0:ql.filter(hr=>(hr==null?void 0:hr.comp)==="Form"))==null||il.forEach(async hr=>{let rr={};for(let jl in hr)jl!=="id"&&(rr[jl]=hr[jl]);Il.push({id:hr==null?void 0:hr.id,value:{pageData:rr}})}),(Il==null?void 0:Il.length)>0&&await _r.batchUpdateInsofDataApi({dataList:Il});return}if((Hl==null?void 0:Hl.length)===1){const ql=(Za=(Wa=(bl=P==null?void 0:P.data)==null?void 0:bl.data)==null?void 0:Wa.path)==null?void 0:Za.path;let Il="";(Vl=(Sl=(Sa=(pe=(Na=ql==null?void 0:ql.split("("))==null?void 0:Na[1])==null?void 0:pe.split(")"))==null?void 0:Sa[0])==null?void 0:Sl.split(":"))==null||Vl.forEach(jl=>{var Rr,Pr;Il=Il===""?Il+((Rr=jl==null?void 0:jl.replaceAll("'",""))==null?void 0:Rr.trim()):Il+"/"+((Pr=jl==null?void 0:jl.replaceAll("'",""))==null?void 0:Pr.trim())});let hr=[(or=(Nl=(mr=(lr=(Fl=ql==null?void 0:ql.split("<"))==null?void 0:Fl[1])==null?void 0:lr.split(">"))==null?void 0:mr[0])==null?void 0:Nl.replaceAll("'",""))==null?void 0:or.trim()],rr;return(er=(Ll=(Nr=P==null?void 0:P.data)==null?void 0:Nr.data)==null?void 0:Ll.data)!=null&&er[Hl==null?void 0:Hl[0]]?rr=await fe((Ar=(Ir=(Qr=P==null?void 0:P.data)==null?void 0:Qr.data)==null?void 0:Ir.data)==null?void 0:Ar[Hl==null?void 0:Hl[0]],Il,Hl,Ja):rr=await Se((zr=(Cr=P==null?void 0:P.data)==null?void 0:Cr.data)==null?void 0:zr.data,Il,hr,Re),rr}else{const ql=(Vr=(Dr=(Mr=P==null?void 0:P.data)==null?void 0:Mr.data)==null?void 0:Dr.path)==null?void 0:Vr.path;let Il="";return(rn=(Gr=(gn=(ir=(Or=ql==null?void 0:ql.split("("))==null?void 0:Or[1])==null?void 0:ir.split(")"))==null?void 0:gn[0])==null?void 0:Gr.split(":"))==null||rn.forEach(rr=>{var jl,Rr;Il=Il===""?Il+((jl=rr==null?void 0:rr.replaceAll("'",""))==null?void 0:jl.trim()):Il+"/"+((Rr=rr==null?void 0:rr.replaceAll("'",""))==null?void 0:Rr.trim())}),await Te((vn=(bn=(Nn=P==null?void 0:P.data)==null?void 0:Nn.data)==null?void 0:bn.data)==null?void 0:vn[Hl==null?void 0:Hl[0]],Il,Hl)}}}}});if(await Promise.all(ga),(se==null?void 0:se.length)>0){let ra=[];se==null||se.forEach(Ea=>{ra!=null&&ra.find(va=>{var Va,Pa,me,Je;return((Pa=(Va=va==null?void 0:va.value)==null?void 0:Va.pageData)==null?void 0:Pa.name)===((Je=(me=Ea==null?void 0:Ea.value)==null?void 0:me.pageData)==null?void 0:Je.name)})||ra.push(Ea)});let Le=[];ra==null||ra.forEach(Ea=>{var Pa,me,Je,Ae;let va=L.cloneDeep(Ea);va.value.pageData.compData=(Pa=va.value.pageData.compData)==null?void 0:Pa.map(Xe=>{var oe;return(Xe==null?void 0:Xe.key)==="formContent"&&(Xe.contents=(oe=Xe.contents)==null?void 0:oe.map(_e=>{var We,ea,ka,Pe;let de=(We=L.cloneDeep(se))==null?void 0:We.find(ba=>(ba==null?void 0:ba.keyType)===(_e==null?void 0:_e.key));if(de){let ba=(Pe=(ka=(ea=de.value.pageData.compData)==null?void 0:ea.find(xa=>(xa==null?void 0:xa.key)==="formContent"))==null?void 0:ka.contents)==null?void 0:Pe.find(xa=>(xa==null?void 0:xa.key)===(_e==null?void 0:_e.key));_e.value=ba==null?void 0:ba.value}return _e})),Xe}),Le.push({id:va==null?void 0:va.id,value:va==null?void 0:va.value});let Va=[];(Ae=(Je=(me=va==null?void 0:va.value)==null?void 0:me.pageData)==null?void 0:Je.compData)==null||Ae.forEach(Xe=>{var oe;(Xe==null?void 0:Xe.key)==="formContent"&&((oe=Xe==null?void 0:Xe.contents)==null||oe.forEach(_e=>{var de,We,ea,ka,Pe,ba;if((We=(de=_e==null?void 0:_e.optionUrl)==null?void 0:de.menuSelect)!=null&&We.find(xa=>xa==null?void 0:xa.includes("[")))if(Va!=null&&Va.find(xa=>{var fa,Ha,Ba;return((fa=xa==null?void 0:xa.key)==null?void 0:fa.join(","))===((Ba=(Ha=_e==null?void 0:_e.optionUrl)==null?void 0:Ha.menuSelect)==null?void 0:Ba.join(","))})){let xa=(ea=Va==null?void 0:Va.find(fa=>{var Ha,Ba,Ia;return((Ha=fa==null?void 0:fa.key)==null?void 0:Ha.join(","))===((Ia=(Ba=_e==null?void 0:_e.optionUrl)==null?void 0:Ba.menuSelect)==null?void 0:Ia.join(","))}))==null?void 0:ea.value;xa.push({key:_e==null?void 0:_e.prop,groups:(ka=_e==null?void 0:_e.optionUrl)==null?void 0:ka.groupSelect,value:_e==null?void 0:_e.value}),Va=Va==null?void 0:Va.map(fa=>{var Ha,Ba,Ia;return((Ha=fa==null?void 0:fa.key)==null?void 0:Ha.join(","))===((Ia=(Ba=_e==null?void 0:_e.optionUrl)==null?void 0:Ba.menuSelect)==null?void 0:Ia.join(","))&&(fa.value=xa),fa})}else Va.push({key:(Pe=_e==null?void 0:_e.optionUrl)==null?void 0:Pe.menuSelect,value:[{key:_e==null?void 0:_e.prop,groups:(ba=_e==null?void 0:_e.optionUrl)==null?void 0:ba.groupSelect,value:_e==null?void 0:_e.value}]})}))}),(Va==null?void 0:Va.length)>0&&(Va=Va==null?void 0:Va.map(Xe=>{var _e;let oe="";return(_e=Xe==null?void 0:Xe.key)==null||_e.forEach(de=>{var We;if(!(de!=null&&de.includes("[")))oe=oe===""?oe+de:oe+"/"+de;else{let ea="",ka=(We=de==null?void 0:de.replaceAll("[","").replaceAll("]",""))==null?void 0:We.split(":");Ze==null||Ze.forEach(Pe=>{var ba;(Pe==null?void 0:Pe.name)===(ka==null?void 0:ka[0])&&((ba=Pe==null?void 0:Pe.compData)==null||ba.forEach(xa=>{var fa;(xa==null?void 0:xa.key)==="formContent"&&((fa=xa==null?void 0:xa.contents)==null||fa.forEach(Ha=>{(Ha==null?void 0:Ha.prop)===(ka==null?void 0:ka[1])&&(ea=Ha==null?void 0:Ha.value)}))}))}),oe=oe+o.value+ea}}),Xe.key=oe,Xe})),Va==null||Va.forEach(Xe=>{var We,ea,ka;let oe=(We=Re[Xe.key])==null?void 0:We.find(Pe=>{var ba,xa,fa,Ha,Ba,Ia,$a;return((xa=(ba=Pe==null?void 0:Pe.value)==null?void 0:ba.pageData)==null?void 0:xa.name)===((Ba=(Ha=(fa=Xe==null?void 0:Xe.value)==null?void 0:fa[0])==null?void 0:Ha.groups)==null?void 0:Ba[0])&&(($a=(Ia=Pe==null?void 0:Pe.value)==null?void 0:Ia.pageData)==null?void 0:$a.name)!==void 0}),_e=oe==null?void 0:oe.id,de=(ea=oe==null?void 0:oe.value)==null?void 0:ea.pageData;de.compData=(ka=de.compData)==null?void 0:ka.map(Pe=>{var ba;return(Pe==null?void 0:Pe.key)==="formContent"&&(Pe.contents=(ba=Pe.contents)==null?void 0:ba.map(xa=>{var Ha;let fa=(Ha=Xe.value)==null?void 0:Ha.find(Ba=>(Ba==null?void 0:Ba.key)===(xa==null?void 0:xa.prop));return fa&&(xa.value=fa.value),xa})),Pe}),Le.push({id:_e,value:{pageData:de}})})});let Ee=(ze=L.cloneDeep(se))==null?void 0:ze[0];(Le==null?void 0:Le.length)>0&&await _r.batchUpdateInsofDataApi({dataList:Le})}y.setFreshContent(!0)}_.setImportLoading(!1)}catch{Qa.ElMessage.error("方法执行错误,请查看方法!"),_.setImportLoading(!1)}g.value=!0},ce=["createInsofDataApi"],He=ja.debounce(async ne=>{J(ne)},100),Ca=async ne=>{var pa,_a,Ga;const D=L.cloneDeep(ne);let re,be=new WeakMap;ne!=null&&ne[0].path&&(re=await(D==null?void 0:D.map(async(le,la)=>{var qa,F,P,X,ie,se,ga,ra,Le,Ee,Ea,va,Va,Pa,me,Je;const wa=(qa=be[le==null?void 0:le.path])==null?void 0:qa.filter(Ae=>{var Xe;return((Xe=Ae==null?void 0:Ae.key)==null?void 0:Xe.type)==="data"});let Fe="";const ze=await sa.getItemData(C.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,be);wa==null||wa.forEach(Ae=>{var Xe,oe,_e,de,We;((oe=(Xe=Ae==null?void 0:Ae.value)==null?void 0:Xe.tableData)==null?void 0:oe.算法名称)===((_e=D==null?void 0:D[la])==null?void 0:_e.method)&&(Fe=(We=(de=Ae==null?void 0:Ae.value)==null?void 0:de.tableData)==null?void 0:We.算法体)});const Re=await sa.getItemData(le==null?void 0:le.path,sessionStorage.getItem("systemKey"),"",!1,[],!1,be);let Ze="",Ja=(ie=(X=(P=(F=Re==null?void 0:Re[0])==null?void 0:F.compData)==null?void 0:P.find(Ae=>(Ae==null?void 0:Ae.key)==="header"))==null?void 0:X.contents)==null?void 0:ie.findIndex(Ae=>(Ae==null?void 0:Ae.prop)==="算法体");return(ga=(se=Re==null?void 0:Re[0])==null?void 0:se.compData)==null||ga.forEach(Ae=>{var Xe;(Ae==null?void 0:Ae.key)==="tableContents"&&((Xe=Ae==null?void 0:Ae.contents)==null||Xe.forEach(oe=>{oe!=null&&oe.find(_e=>_e===(le==null?void 0:le.method))&&(Ze=oe[Ja])}))}),{buttonName:((ra=D==null?void 0:D[la])==null?void 0:ra.method)||((Ea=(Ee=(Le=wa==null?void 0:wa[0])==null?void 0:Le.value)==null?void 0:Ee.tableData)==null?void 0:Ea.算法名称),api:(Fe===""?(Pa=(Va=(va=wa==null?void 0:wa[0])==null?void 0:va.value)==null?void 0:Va.tableData)==null?void 0:Pa.算法体:Fe)||Ze,content:ze==null?void 0:ze.filter(Ae=>Ae.comp!=="methodButton"),extraContent:(me=L.cloneDeep(le.value))==null?void 0:me.slice(1),methodName:(le==null?void 0:le.path)??"",extraValues:(Je=D==null?void 0:D[la])==null?void 0:Je.data}})));const ue=D==null?void 0:D.map(async le=>{var Re,Ze,Ja,qa,F,P;const la=(Re=resAll.data.result)==null?void 0:Re.filter(X=>{var ie,se,ga;return((ie=X==null?void 0:X.key)==null?void 0:ie.parentTable)===""&&((se=X==null?void 0:X.key)==null?void 0:se.type)==="method"&&((ga=X==null?void 0:X.key)==null?void 0:ga.methodName)===X.method}),Ve=la==null?void 0:la[0],wa=(Ze=resAll.data.result)==null?void 0:Ze.filter(X=>{var ie,se;return((ie=X==null?void 0:X.key)==null?void 0:ie.type)==="methodData"&&((se=X==null?void 0:X.key)==null?void 0:se.tableId)===(Ve==null?void 0:Ve.id)}),Fe=await sa.getItemData(C.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,be),ze=wa==null?void 0:wa[0];return{buttonName:(Ja=Ve==null?void 0:Ve.key)==null?void 0:Ja.methodKey,api:(F=(qa=ze==null?void 0:ze.value)==null?void 0:qa.tableData)==null?void 0:F[0],content:Fe==null?void 0:Fe.filter(X=>X.comp!=="methodButton"),extraContent:(P=L.cloneDeep(le.value))==null?void 0:P.slice(1),methodName:(le==null?void 0:le.method)??""}}),De=(pa=ne==null?void 0:ne[0])!=null&&pa.path&&((_a=ne==null?void 0:ne[0])==null?void 0:_a.path)!==""?await Promise.all(re):await Promise.all(ue);n.value=De==null?void 0:De.filter(le=>le==null?void 0:le.extraContent),(Ga=n.value)==null||Ga.forEach(le=>{var la;le.api===""&&((la=le.content)==null||la.forEach(Ve=>{var wa;Ve.comp=="Table"&&y.setExtraContents(sa.methodTableToContent(Ve.compData,(wa=le.extraContent)==null?void 0:wa[0]))}))})};return a.watch(()=>s.itemData,async()=>{S.value=="view"&&!g.value&&await Ca(L.cloneDeep(s.itemData)),g.value=!1},{immediate:!0,deep:!0}),(ne,D)=>{var re,be,ue;return a.unref(S)!=="edit"?(a.openBlock(),a.createElementBlock("div",z2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((re=n.value)==null?void 0:re.filter(De=>(De==null?void 0:De.buttonName)!=="保存"),De=>{var pa;return a.openBlock(),a.createElementBlock("div",null,[De.api!==""?(a.openBlock(),a.createBlock(a.unref(es._sfc_main),{key:0,disabled:a.unref(M)===a.unref(C)&&!((pa=De==null?void 0:De.buttonName)!=null&&pa.includes("预览")),class:"calculator-content",modelValue:De.buttonName,onClickTrigger:_a=>a.unref(He)(De),loading:u.value},null,8,["disabled","modelValue","onClickTrigger","loading"])):a.createCommentVNode("",!0)])}),256)),a.createElementVNode("div",null,[a.unref(q)!==""&&((ue=a.unref(C))==null?void 0:ue[((be=a.unref(C))==null?void 0:be.length)-1])!==a.unref(o)?(a.openBlock(),a.createBlock(a.unref(es._sfc_main),{key:0,class:"calculator-content",onClickTrigger:j,modelValue:"保存"})):a.createCommentVNode("",!0)]),c.value?(a.openBlock(),a.createBlock(dl.ssFilePreview,{key:0,fileDataList:b.value,onDestroy:V},null,8,["fileDataList"])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)}}},I2=Kl._export_sfc(M2,[["__scopeId","data-v-063aa9af"]]),O2={};function L2(l,n){return" 567 "}const $2=Kl._export_sfc(O2,[["render",L2]]),R2={class:"module content"},V2={class:"module data"},P2={class:"module layout"},F2={class:"form-content"},j2=a.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,o=n,s=a.reactive({visible:!1,width:"40%",title:"签名配置"}),c=a.ref("create"),b=a.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),p=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({}),u=a.ref([]),_=()=>({comp:"Signature",compData:[{key:"signTypeList",contents:u.value},{key:"signConfig",contents:y.value}]}),N=O=>{var M;y.value=L.cloneDeep(O),o("change",(M=_())==null?void 0:M.compData)},$=O=>{var M,Z;if((O==null?void 0:O.buttonName)==="确认"){const C=L.cloneDeep(O==null?void 0:O.content);switch(c.value){case"create":u.value.push({...C,index:((M=u.value)==null?void 0:M.length)+1});break}o("change",(Z=_())==null?void 0:Z.compData),s.visible=!1}else s.visible=!1},S=(O,M)=>{var Z,C;switch(O){case"create":(Z=v.value)==null||Z.forEach(w=>{w.value=""}),c.value="create",s.visible=!0;break;case"update":(C=v.value)==null||C.forEach(w=>{w.value=M[w==null?void 0:w.prop]}),c.value="update",s.visible=!0;break;case"delete":u.value.splice(M,1),c.value="delete";break}},q=()=>{s.visible=!1};return a.watch(()=>r==null?void 0:r.itemContents,O=>{var M,Z;O&&(y.value=((M=O==null?void 0:O.find(C=>C.key==="signConfig"))==null?void 0:M.contents)??{},u.value=((Z=O==null?void 0:O.find(C=>C.key==="signTypeList"))==null?void 0:Z.contents)??[])},{immediate:!0}),(O,M)=>{const Z=a.resolveComponent("svg-icon"),C=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",R2,[M[2]||(M[2]=a.createElementVNode("h4",{class:"module-title"},"签名类型",-1)),a.createVNode(C,{class:"module-icon",id:"themeButton",onClick:M[0]||(M[0]=w=>S("create"))},{icon:a.withCtx(()=>[a.createVNode(Z,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[M[1]||(M[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",V2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(u.value,(w,E)=>(a.openBlock(),a.createElementBlock("div",{class:"module-data-item",key:E},[a.createElementVNode("span",null,a.toDisplayString(w==null?void 0:w.label),1),a.createElementVNode("div",null,[a.createVNode(C,{type:"primary",size:"small",onClick:m=>S("update",{...w,index:E+1})},{default:a.withCtx(()=>M[3]||(M[3]=[a.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),a.createVNode(C,{type:"danger",size:"small",onClick:m=>S("delete",E)},{default:a.withCtx(()=>M[4]||(M[4]=[a.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),a.createElementVNode("div",P2,[a.createVNode(dl.ssForm,{rowContents:p.value,onChange:N},null,8,["rowContents"])])]),a.createVNode(xr.ssDialog,{visible:s.visible,title:s.title,onBeforeDestroy:q,width:s.width},{default:a.withCtx(()=>[a.createElementVNode("div",F2,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:v.value,key:v.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:b.value,onOnButtonClick:$},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),H2=Kl._export_sfc(j2,[["__scopeId","data-v-487e0536"]]),U2=a.defineComponent({__name:"index",props:{stepConfig:{type:Object,default:{}},stepList:{type:Array,default:()=>[]}},emits:["clickStep","clickTrigger","changeTrigger"],setup(l,{emit:n}){const r=l,o=n,s=a.ref(0),c=a.computed(()=>{var _,N;return(_=r==null?void 0:r.stepConfig)!=null&&_.allowTrigger?s.value:(N=r==null?void 0:r.stepConfig)==null?void 0:N.active}),b=(_,N)=>{s.value=N-1,o("clickStep",_,N)};a.onMounted(()=>{var _;o("clickStep",(_=r==null?void 0:r.stepList)==null?void 0:_[0],0)});const p=_=>dl.getComponent(_),v=()=>{var N;const _=(N=r==null?void 0:r.stepList)==null?void 0:N.find(($,S)=>S+1===c.value);return console.log("findStep",_),_?_==null?void 0:_.children:[]},y=_=>{o("clickTrigger",_)},u=_=>{o("changeTrigger",_)};return(_,N)=>{var q,O,M,Z,C;const $=a.resolveComponent("el-step"),S=a.resolveComponent("el-steps");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(S,{direction:(q=l.stepConfig)==null?void 0:q.direction,active:c.value,"finish-status":"success",simple:(O=l.stepConfig)==null?void 0:O.simple,"align-center":((M=l.stepConfig)==null?void 0:M.alignCenter)??!0},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.stepList,(w,E)=>(a.openBlock(),a.createBlock($,{key:E,class:"step-item",onClick:m=>b(w,E+1)},{title:a.withCtx(()=>[a.renderSlot(_.$slots,"title",{title:w==null?void 0:w.title},void 0,!0)]),description:a.withCtx(()=>[a.renderSlot(_.$slots,"description",{descriptions:w==null?void 0:w.description},void 0,!0)]),_:2},1032,["onClick"]))),128))]),_:3},8,["direction","active","simple","align-center"]),(Z=l.stepConfig)!=null&&Z.allowTrigger&&((C=l.stepConfig)!=null&&C.active)?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(v(),(w,E)=>(a.openBlock(),a.createElementBlock("div",{key:E,class:"step-cont-wrap"},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(p(w==null?void 0:w.type)),{modelValue:w.value,"onUpdate:modelValue":m=>w.value=m,onClickTrigger:y,onChangeTrigger:u,content:w==null?void 0:w.content},a.createSlots({_:2},[a.renderList(_.$slots,(m,g)=>({name:g,fn:a.withCtx(j=>[a.renderSlot(_.$slots,g,a.mergeProps({ref_for:!0},j||{}),void 0,!0)])}))]),1064,["modelValue","onUpdate:modelValue","content"]))]))),128)):a.createCommentVNode("",!0)],64)}}}),q2=Kl._export_sfc(U2,[["__scopeId","data-v-fdbd6832"]]),W2=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]}},emits:["clickStep"],setup(l,{emit:n}){const r=l,o=n,s=a.ref({}),c=a.ref([]),b=(p,v)=>{o("clickStep",p,v)};return a.watch(()=>r==null?void 0:r.itemData,p=>{var _,N,$,S;s.value={direction:"horizontal",simple:!1,alignCenter:!0,allowTrigger:!0};let v=((_=p==null?void 0:p.find(q=>(q==null?void 0:q.key)==="stepName"))==null?void 0:_.contents)??[],y=[];($=(N=p==null?void 0:p.find(q=>(q==null?void 0:q.key)==="header"))==null?void 0:N.contents)==null||$.forEach(q=>{y.push({label:q==null?void 0:q.label,prop:q==null?void 0:q.prop,name:q==null?void 0:q.prop,type:"text",disabled:!0})});let u=((S=p==null?void 0:p.find(q=>(q==null?void 0:q.key)==="tableContents"))==null?void 0:S.contents)??[];v=v==null?void 0:v.map((q,O)=>{let M=y==null?void 0:y.map(Z=>{var C;return{...Z,value:(C=u==null?void 0:u[O])==null?void 0:C[Z==null?void 0:Z.prop]}});return{title:q,description:M}}),c.value=v},{immediate:!0,deep:!0}),(p,v)=>{const y=a.resolveComponent("svg-icon");return a.openBlock(),a.createBlock(q2,{stepConfig:s.value,stepList:c.value,onClickStep:b},{icon:a.withCtx(()=>[a.createVNode(y,{name:"import"})]),title:a.withCtx(({title:u})=>[a.createTextVNode(a.toDisplayString(u),1)]),description:a.withCtx(({descriptions:u})=>[a.createVNode(dl.ssForm,{ref:"formRef",rowContents:u,showOperator:!0,isEnableWrap:!1,isEdit:!1},null,8,["rowContents"])]),_:1},8,["stepConfig","stepList"])}}}),K2=a.defineComponent({__name:"index",props:{activities:{type:Array,default:()=>[]},timeLineConfig:{type:Object,default:()=>{}}},setup(l){return(n,r)=>{const o=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,(c,b)=>(a.openBlock(),a.createBlock(o,{key:b,timestamp:c.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(n.$slots,"content",{content:c==null?void 0:c.content,timestamp:c==null?void 0:c.timestamp},void 0,!0)]),_:2},1032,["timestamp","placement","center","type","color","size","icon","hollow"]))),128))]),_:3})}}}),G2=Kl._export_sfc(K2,[["__scopeId","data-v-4172a886"]]),Y2={class:"line-content"},J2={class:"line-time"},X2=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},setup(l){const n=l,r=a.ref({}),o=a.ref([]);return a.watch(()=>n==null?void 0:n.itemData,s=>{var c,b;o.value=(c=s==null?void 0:s.find(p=>(p==null?void 0:p.key)==="timeLineList"))==null?void 0:c.contents,r.value=(b=s==null?void 0:s.find(p=>(p==null?void 0:p.key)==="timeLineConfig"))==null?void 0:b.contents},{immediate:!0}),(s,c)=>(a.openBlock(),a.createBlock(G2,{activities:o.value,timeLineConfig:r.value},{content:a.withCtx(({content:b,timestamp:p})=>[a.createElementVNode("span",Y2,a.toDisplayString(b),1),a.createElementVNode("span",J2,a.toDisplayString(p),1)]),_:1},8,["activities","timeLineConfig"]))}}),Z2=Kl._export_sfc(X2,[["__scopeId","data-v-b4d9deed"]]),Q2={class:"tabs-content"},eh=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:n}){const r=l,o=n,s=a.ref();a.watch(()=>r==null?void 0:r.itemData,()=>{s.value=r==null?void 0:r.itemData},{immediate:!0,deep:!0});const c=N=>{o("change",N)},b=(N,$)=>{o("contentChange",N,$)},p=N=>{o("pageChange",N)},v=N=>{o("rowClick",N)},y=(N,$)=>{o("routeUrl",N,$)},u=N=>{o("clickTrigger",N)},_=(N,$)=>{o("clickMainKey",N,$)};return(N,$)=>{var S,q;return a.openBlock(),a.createElementBlock("div",Q2,[(S=s.value)!=null&&S.length?(a.openBlock(),a.createBlock(dl.ssTab,{tabsContents:s.value,key:(q=s.value)==null?void 0:q.length},{pane:a.withCtx(({tab:O,index:M})=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Uo)(O==null?void 0:O.comp)),{related:O==null?void 0:O.relatedTables,compNames:r==null?void 0:r.compNames,compName:O==null?void 0:O.name,cacheNewData:r==null?void 0:r.cacheNewData,isDevMode:l.isDevMode,itemData:O==null?void 0:O.compData,childItemData:O==null?void 0:O.itemChildData,onChange:c,index:(O==null?void 0:O.id)??M,config:{showIndex:O==null?void 0:O.showIndex,allowMove:O==null?void 0:O.allowMove,viewport:O==null?void 0:O.viewport},onContentChange:b,onPageChange:p,onRowClick:v,onRouteUrl:y,parentTableId:O==null?void 0:O.tableId,allMapContents:l.allMapContents,children:O==null?void 0:O.children,level:1,onClickTrigger:u,onClickMainKey:_},null,40,["related","compNames","compName","cacheNewData","isDevMode","itemData","childItemData","index","config","parentTableId","allMapContents","children"]))]),_:1},8,["tabsContents"])):a.createCommentVNode("",!0)])}}}),ah=Kl._export_sfc(eh,[["__scopeId","data-v-ded4e0d9"]]),lh={class:"type-select"},rh=["onClick"],nh={class:"list-icon"},oh={__name:"modelSelect",setup(l){const n=Jn(L.pinia),{itemData:r}=L.storeToRefs(n),o=s=>{const c=L.cloneDeep(r.value);c.push({comp:s.comp,name:s.name,compData:[]}),n.setItemData(c)};return(s,c)=>{const b=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",lh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(Yc),(p,v)=>(a.openBlock(),a.createElementBlock("div",{class:"type-list",key:v},[a.createElementVNode("div",{class:"list-content",onClick:y=>o(p)},[a.createElementVNode("div",nh,[a.createVNode(b,{name:p.icon},null,8,["name"])]),a.createElementVNode("div",null,a.toDisplayString(p.name),1)],8,rh)]))),128))])}}},ih=Kl._export_sfc(oh,[["__scopeId","data-v-91799bf8"]]),th={class:"fill-content"},sh={class:"operate-content"},ch={class:"collapse-title-content"},uh={class:"collapse-title-item"},dh={key:1},ph=["onClick"],fh={class:"icon-content"},hh={key:0,class:"edit-content"},vh=["onClick"],mh={class:"comp-child"},yh={__name:"modelFill",setup(l){const n=Jn(L.pinia),{itemData:r,originalData:o}=L.storeToRefs(n),s=a.ref([]);a.ref([]);const c=a.ref([]),b=a.ref([]),p=$=>{var q;let S=(q=L.cloneDeep(b.value))==null?void 0:q.map((O,M)=>($===M&&(O.content=!0),O));b.value=S},v=$=>{var q;let S=(q=L.cloneDeep(b.value))==null?void 0:q.map((O,M)=>($===M&&(O.content=!1),O));b.value=S,s.value=L.cloneDeep(r.value)},y=($,S)=>{var Z;let q=(Z=L.cloneDeep(b.value))==null?void 0:Z.map((C,w)=>($===w&&(C.content=!1),C));b.value=q;const O=L.cloneDeep(r.value),M=O==null?void 0:O.filter((C,w)=>(w===$&&(C.name=S),C));n.setOriginalData(M),n.setItemData(M)};a.watch(()=>r.value,()=>{var $,S,q;!r.value||(($=r.value)==null?void 0:$.length)===0?s.value=[]:s.value=(S=L.cloneDeep(r.value))==null?void 0:S.filter(O=>(O==null?void 0:O.comp)!=="methodButton"),c.value=s.value,b.value=(q=L.cloneDeep(c.value))==null?void 0:q.map((O,M)=>({id:M,content:!1}))},{deep:!0,immediate:!0});const u=$=>No($),_=($,S,q)=>{var M,Z;if(!$)return;let O=L.cloneDeep(r.value);O=(M=O==null?void 0:O.map((C,w)=>(w===q&&(C.compData=$),C)))==null?void 0:M.filter(C=>(C==null?void 0:C.comp)!=="methodButton"),b.value=(Z=L.cloneDeep(O))==null?void 0:Z.map((C,w)=>({id:w,content:!1})),n.setOriginalData(O),n.setItemData(O)},N=$=>{un.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const S=L.cloneDeep(r.value),q=S==null?void 0:S.filter((O,M)=>M!==$);n.setOriginalData(q),n.setItemData(q),Qa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return($,S)=>{const q=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",th,[S[1]||(S[1]=a.createElementVNode("div",{class:"fill-operate"},a.toDisplayString("操作栏"),-1)),a.createElementVNode("div",sh,[a.createVNode(Ks.default,{class:"collapse-content",collapseContents:s.value},{title:a.withCtx(({item:O,index:M})=>{var Z,C,w,E,m,g,j,V,G,he;return[a.createElementVNode("div",ch,[a.createElementVNode("div",uh,[(C=(Z=b.value)==null?void 0:Z.find(Te=>Te.id===M))!=null&&C.content?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:"collapse-title",style:a.normalizeStyle({marginRight:O.name&&O.name!==""?"8px":"0px"})},a.toDisplayString(O.name),5)),(E=(w=b.value)==null?void 0:w.find(Te=>Te.id===M))!=null&&E.content?(a.openBlock(),a.createElementBlock("div",dh,[a.createVNode(dl.ssInput,{modelValue:O.name,"onUpdate:modelValue":Te=>O.name=Te,onClick:S[0]||(S[0]=a.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):a.createCommentVNode("",!0),(g=(m=b.value)==null?void 0:m.find(Te=>Te.id===M))!=null&&g.content?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:2,onClick:a.withModifiers(Te=>p(M),["stop"]),class:"icon-content"},[a.createVNode(q,{name:"Edit",style:{width:"16px",height:"16px"}})],8,ph))]),a.createElementVNode("div",fh,[(V=(j=b.value)==null?void 0:j.find(Te=>Te.id===M))!=null&&V.content?(a.openBlock(),a.createElementBlock("div",hh,[a.createVNode(q,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:a.withModifiers(Te=>v(M),["stop"])},null,8,["onClick"]),a.createVNode(q,{name:"Save",onClick:a.withModifiers(Te=>y(M,O.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):a.createCommentVNode("",!0),(he=(G=b.value)==null?void 0:G.find(Te=>Te.id===M))!=null&&he.content?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:1,onClick:a.withModifiers(Te=>N(M),["stop"]),class:"icon-content"},[a.createVNode(q,{name:"Delete",style:{width:"16px",height:"16px"}})],8,vh))])])]}),content:a.withCtx(({item:O,index:M})=>{var Z,C;return[a.createElementVNode("div",mh,[a.createTextVNode(a.toDisplayString(u(O.comp+"Operate"))+" ",1),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u(O.comp+"Operate")),{itemContents:O==null?void 0:O.compData,originalItemContents:(C=(Z=c.value)==null?void 0:Z.find((w,E)=>E===M))==null?void 0:C.compData,onChange:w=>_(w,O,M)},null,40,["itemContents","originalItemContents","onChange"]))])]}),_:1},8,["collapseContents"])])])}}},gh=Kl._export_sfc(yh,[["__scopeId","data-v-a46a44b9"]]),bh={key:0,class:"show-content"},kh={style:{display:"flex"}},xh={__name:"modelShow",setup(l){const n=Jn(L.pinia),{itemData:r}=L.storeToRefs(n),o=a.ref([]);a.watch(()=>r.value,()=>{var c;!r.value||((c=r.value)==null?void 0:c.length)===0?o.value=[]:o.value=L.cloneDeep(r.value)},{deep:!0,immediate:!0});const s=c=>No(c);return(c,b)=>{var p;return((p=o.value)==null?void 0:p.length)>0?(a.openBlock(),a.createElementBlock("div",bh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.value,(v,y)=>(a.openBlock(),a.createElementBlock("div",{class:"item-content",key:y},[a.createElementVNode("div",kh,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)}}},wh=Kl._export_sfc(xh,[["__scopeId","data-v-3f3e863e"]]),_h={class:"tabs-header"},Eh={class:"tabs-list"},Sh={class:"tab-name"},Ch={class:"tab-actions"},Dh=["onClick"],Bh=["onClick"],Nh=["onClick"],Th={class:"model-operate"},Ah={class:"model-select",style:{display:"unset"}},zh={class:"existing-components"},Mh={class:"component-list"},Ih=["onClick"],Oh={class:"component-info"},Lh={class:"component-type"},$h={class:"component-name"},Rh={class:"model-fill"},Vh={__name:"operate",props:{itemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,o=n,s=a.ref([]),c=a.ref(!1),b=a.ref(""),p=a.ref({title:""}),v=a.ref(-1),y=a.ref(!1),u=a.ref(-1),_=a.ref(new WeakMap),N=a.ref(null),$=Jn(L.pinia),{itemData:S}=L.storeToRefs($),q=()=>{b.value="新增标签页",p.value.title="",v.value=-1,c.value=!0},O=ne=>{b.value="修改标签页",p.value.title=s.value[ne].title,v.value=ne,c.value=!0},M=ne=>{const D=w(ne);_.value.delete(D),s.value.splice(ne,1),Ca()},Z=()=>{if(p.value.title.trim()){if(v.value===-1){const ne={title:p.value.title,value:p.value.title,label:p.value.title,children:[],id:C()};s.value.push(ne)}else s.value[v.value].title=p.value.title,s.value[v.value].value=p.value.title,s.value[v.value].label=p.value.title;c.value=!1,Ca()}},C=()=>`tab_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,w=ne=>{const D=s.value[ne];return D.id||(D.id=C()),D.id},E=ne=>{var be;u.value=ne;const D=w(ne);N.value=L.cloneDeep(S.value);let re=_.value.get(D);!re&&((be=s.value[ne].children)==null?void 0:be.length)>0&&(re=V(s.value[ne].children)),re?$.setItemData(L.cloneDeep(re)):$.setItemData([]),y.value=!0},m=a.computed(()=>{const ne=L.useModelComp(L.pinia),D=L.storeToRefs(ne).itemData.value;return console.log("可用组件数据",D),!D||!Array.isArray(D)?[]:D.filter(re=>{var be;if(re.comp==="Tabs"&&u.value>=0){const ue=w(u.value);if((be=re.compData)==null?void 0:be.some(pa=>{var _a;return pa.key==="stepList"&&((_a=pa.contents)==null?void 0:_a.some(Ga=>Ga.id===ue))}))return!1}return!0})}),g=ne=>({Table:"表格",Form:"表单",Tabs:"标签页",Chart:"图表",Card:"卡片"})[ne]||ne,j=ne=>{var D;try{const re=L.cloneDeep(ne);re.id=Date.now()+Math.random(),re.comp==="Tabs"&&((D=re.compData)==null||D.forEach(ue=>{ue.key==="stepList"&&ue.contents&&ue.contents.forEach(De=>{De.id=C()})}));const be=L.cloneDeep(S.value);be.push(re),$.setItemData(be)}catch(re){console.error("添加组件失败:",re)}},V=ne=>ne.map(D=>{var re;switch(D.type){case"form":return{comp:"Form",name:D.value||"表单",compData:G(D.content)};case"table":return{comp:"Table",name:D.value||"表格",compData:he(D.content)};default:return{comp:"Unknown",name:D.value||"",compData:((re=D.content)==null?void 0:re.originalData)||[]}}}),G=ne=>{if(!ne)return[];const D=[];return ne.rowContents&&D.push({key:"formContent",contents:ne.rowContents}),ne.buttonValue&&D.push({key:"formButton",contents:ne.buttonValue}),typeof ne.isEnableWrap<"u"&&D.push({key:"enableWrap",contents:ne.isEnableWrap}),D},he=ne=>[],Te=()=>{if(u.value>=0&&u.value<s.value.length){const ne=w(u.value);_.value.set(ne,L.cloneDeep(S.value)),s.value[u.value].children=fe(S.value),console.log("保存后的数据",fe(S.value))}y.value=!1,u.value=-1,N.value=null,Ca()},Se=()=>{N.value&&$.setItemData(L.cloneDeep(N.value)),y.value=!1,u.value=-1,N.value=null},Q=()=>{y.value&&Se()},fe=ne=>{if(!Array.isArray(ne))throw new Error("sourceData must be an array");return ne.map((D,re)=>{if(!D||typeof D!="object")return D;const{comp:be,name:ue,compData:De}=D;switch(be){case"Form":return{type:"form",content:J(De||[]),value:"表单"};case"Table":return{type:"table",content:ce(De||[]),value:"表格"};default:return{type:"xxx",content:He(De||[]),value:""}}})},J=ne=>{const D={formRules:{},rowContents:[],buttonValue:[],rowValues:[],isEnableWrap:!0,isRowFlex:!0,isButtonRow:!0,isEdit:!0,isStartJustify:!0},re={formContent:"rowContents",enableWrap:"isEnableWrap",formButton:"buttonValue"};return ne.forEach((be,ue)=>{if(!be||typeof be!="object"){console.warn(`Invalid config at index ${ue}:`,be);return}const{key:De,contents:pa}=be,_a=re[De];if(!_a){console.warn(`Unknown Form config key: ${De}`);return}De==="enableWrap"?D[_a]=!!pa:D[_a]=Array.isArray(pa)?pa:[]}),D},ce=ne=>{const D={columns:[],tableData:[],extraButton:[],rowButton:[],currentPage:0,total:0,pageSize:0,isShowPagination:!0,isShowEdit:!0,isMoveColumn:!0,isShowDelete:!0},re={header:"columns",tableContents:"tableData"};return ne.forEach((be,ue)=>{if(!be||typeof be!="object"){console.warn(`Invalid config at index ${ue}:`,be);return}const{key:De,contents:pa}=be,_a=re[De];if(!_a){console.warn(`Unknown Table config key: ${De}`);return}D[_a]=Array.isArray(pa)?pa:[]}),D},He=ne=>(console.log("Default conversion logic - to be implemented"),{originalData:ne,processed:!1,componentType:"unknown"}),Ca=()=>{const ne=[{key:"stepList",contents:s.value}];o("change",ne)};return a.watch(()=>r.itemContents,ne=>{if(ne&&ne.length>0){const D=ne.find(re=>re.key==="stepList");D&&D.contents&&(s.value=D.contents.map(re=>({title:re.title||"",value:re.value||re.title||"",label:re.label||re.title||"",children:re.children||[],id:re.id||C()})))}},{immediate:!0,deep:!0}),(ne,D)=>{const re=a.resolveComponent("svg-icon"),be=a.resolveComponent("el-input"),ue=a.resolveComponent("el-form-item"),De=a.resolveComponent("el-form");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",_h,[D[6]||(D[6]=a.createElementVNode("h4",null,"标签页管理",-1)),a.createElementVNode("button",{onClick:q},[a.createVNode(re,{name:"Plus",style:{width:"14px",height:"14px","margin-right":"4px"}}),D[5]||(D[5]=a.createTextVNode(" 新增标签页 "))])]),a.createElementVNode("div",Eh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,(pa,_a)=>(a.openBlock(),a.createElementBlock("div",{class:"tab-item",key:_a},[a.createElementVNode("span",Sh,a.toDisplayString(pa.title),1),a.createElementVNode("div",Ch,[a.createElementVNode("button",{onClick:Ga=>O(_a)},"修改标题",8,Dh),a.createElementVNode("button",{onClick:Ga=>E(_a)},"布局调整",8,Bh),a.createElementVNode("button",{onClick:Ga=>M(_a)},"删除",8,Nh)])]))),128))]),a.createVNode(xr.ssDialog,{modelValue:c.value,"onUpdate:modelValue":D[2]||(D[2]=pa=>c.value=pa),title:b.value,onBeforeDestroy:D[3]||(D[3]=pa=>c.value=!1)},{footer:a.withCtx(()=>[a.createElementVNode("button",{onClick:D[1]||(D[1]=pa=>c.value=!1)},"取消"),a.createElementVNode("button",{type:"primary",onClick:Z},"确定")]),default:a.withCtx(()=>[a.createVNode(De,{model:p.value,"label-width":"80px"},{default:a.withCtx(()=>[a.createVNode(ue,{label:"标签名称",required:""},{default:a.withCtx(()=>[a.createVNode(be,{modelValue:p.value.title,"onUpdate:modelValue":D[0]||(D[0]=pa=>p.value.title=pa),placeholder:"请输入标签页名称"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),a.createVNode(xr.ssDialog,{modelValue:y.value,"onUpdate:modelValue":D[4]||(D[4]=pa=>y.value=pa),title:"布局调整",fullScreen:"",onBeforeDestroy:Q},{footer:a.withCtx(()=>[a.createElementVNode("button",{onClick:Se},"取消"),a.createElementVNode("button",{onClick:Te},"确定")]),default:a.withCtx(()=>[a.createElementVNode("div",Th,[a.createElementVNode("div",Ah,[a.createVNode(ih),a.createElementVNode("div",zh,[D[8]||(D[8]=a.createElementVNode("h5",null,"添加已有组件",-1)),a.createElementVNode("div",Mh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(m.value,pa=>(a.openBlock(),a.createElementBlock("div",{key:pa.id,class:"component-item",onClick:_a=>j(pa)},[a.createElementVNode("div",Oh,[a.createElementVNode("span",Lh,a.toDisplayString(g(pa.comp)),1),a.createElementVNode("span",$h,a.toDisplayString(pa.name),1)]),D[7]||(D[7]=a.createElementVNode("button",{class:"add-btn"},"添加",-1))],8,Ih))),128))])])]),(a.openBlock(),a.createElementBlock("div",{class:"model-show",key:ne.innerWidth},[a.createVNode(wh)])),a.createElementVNode("div",Rh,[a.createVNode(gh)])])]),_:1},8,["modelValue"])])}}},Ph=Kl._export_sfc(Vh,[["__scopeId","data-v-9096ed0d"]]);function Fh(){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 jh(l){return{type:"line",...l}}function Hh(){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 Uh(l){return{type:"bar",barWidth:"60%",...l}}function qh(){return{title:{text:"",left:"center"},tooltip:{trigger:"item"},series:[]}}function Wh(l){return{type:"pie",radius:"50%",emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},...l}}const Vn={line:{initBaseoptions:Fh,initSeries:jh},bar:{initBaseoptions:Hh,initSeries:Uh},pie:{initBaseoptions:qh,initSeries:Wh}},bs=L.useMenuState(L.pinia),Bc=(l,n)=>{var u;const r=[],o=[],{group:s,nameCol:c,valueCol:b}=n||{},p=l==null?void 0:l.find(_=>{const{name:N}=_;return N===s});if(!p)return{names:r,values:o};const v=(u=p==null?void 0:p.compData)==null?void 0:u.find(_=>{const{key:N}=_;return N==="tableContents"});return((v==null?void 0:v.contents)||[]).forEach(_=>{const N=_==null?void 0:_[0];let $=!1;Qa.isObject(N)&&(N!=null&&N.id)&&($=!0);let S=c,q=b;$&&(S=S+1,q=q+1);const O=_==null?void 0:_[S],M=_==null?void 0:_[q];r.push(O),o.push(M)}),{names:r,values:o}},Kh=async l=>{const{menu:n,mainKey:r,detailGroup:o,detailNameCol:s,detailValueCol:c,isSelfDetail:b}=l||{};let p=null;const v=sessionStorage.getItem("systemKey");if(b&&bs.activeMenuPath&&(p=await sa.getItemData(`${bs.activeMenuPath}`,v,"")),!b){const y=n==null?void 0:n.join("/");p=await sa.getItemData(`${y}^${r}`,v,"")}return Bc(p,{group:o,nameCol:s,valueCol:c})},Gh=async l=>{const{menu:n,group:r,nameCol:o,valueCol:s}=l||{},c=n==null?void 0:n.join("/"),b=sessionStorage.getItem("systemKey"),p=await sa.getItemData(c,b,"");return Bc(p,{group:r,nameCol:o,valueCol:s})},Dt=async(l,n)=>{const r={names:[],values:[]},{menu:o,group:s,nameCol:c,valueCol:b}=l||{};if(!o.length||!s)return r;const{mainKey:p,group:v,nameCol:y,valueCol:u,isSelfDetail:_}=n||{};return p&&v&&dl.isNumber(y)&&dl.isNumber(u)?await Kh({menu:o,mainKey:p,detailGroup:v,detailNameCol:y,detailValueCol:u,isSelfDetail:_}):dl.isNumber(c)&&dl.isNumber(b)?await Gh({menu:o,group:s,nameCol:c,valueCol:b}):r},Yh=async({chartBaseConfig:l,chartDataConfig:n,chartDetailConfig:r})=>{const{type:o,title:s}=l||{},c=Vn==null?void 0:Vn[o];if(!c)return;const{initBaseoptions:b,initSeries:p}=c,v=b();v.title.text=s??"";const{names:y,values:u}=await Dt(n,r);if(!y||!u)return v;v.xAxis.data=y;const _=p({data:u});return v.series.push(_),v},Jh=async({chartBaseConfig:l,chartDataConfig:n,chartDetailConfig:r})=>{const{type:o,title:s}=l||{},c=Vn==null?void 0:Vn[o];if(!c)return;const{initBaseoptions:b,initSeries:p}=c,v=b();v.title.text=s??"";const{names:y,values:u}=await Dt(n,r);if(!y||!u)return v;v.xAxis.data=y;const _=p({data:u});return v.series.push(_),v},Xh=async({chartBaseConfig:l,chartDataConfig:n,chartDetailConfig:r})=>{const{type:o,title:s}=l||{},c=Vn==null?void 0:Vn[o];if(!c)return;const{initBaseoptions:b,initSeries:p}=c,v=b();v.title.text=s??"";const{names:y,values:u}=await Dt(n,r);if(!y||!u)return v;const _=[];for(let $=0;$<y.length;$++){const S=y[$],q=u[$];_.push({name:S,value:q})}const N=p({data:_});return v.series.push(N),v},Zh=async(l=[])=>{var b,p,v;const n=((b=l==null?void 0:l.find(y=>y.key==="chartBaseConfig"))==null?void 0:b.contents)??{},r=((p=l==null?void 0:l.find(y=>y.key==="chartDataConfig"))==null?void 0:p.contents)??{},o=((v=l==null?void 0:l.find(y=>y.key==="chartDetailConfig"))==null?void 0:v.contents)??{},{type:s}=n;let c={};return s==="line"&&(c=await Yh({chartBaseConfig:n,chartDataConfig:r,chartDetailConfig:o})),s==="bar"&&(c=await Jh({chartBaseConfig:n,chartDataConfig:r,chartDetailConfig:o})),s==="pie"&&(c=await Xh({chartBaseConfig:n,chartDataConfig:r,chartDetailConfig:o})),c},Qh=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 n=l,r=a.ref({});a.onMounted(async()=>{const s=n==null?void 0:n.itemData;r.value=await Zh(s)});const o=a.computed(()=>(n==null?void 0:n.height)||"300px");return(s,c)=>(a.openBlock(),a.createElementBlock("div",{class:"eCharts",style:a.normalizeStyle({height:o.value})},[a.createVNode(_u.ssChart,{optionContents:r.value},null,8,["optionContents"])],4))}}),e4=Kl._export_sfc(Qh,[["__scopeId","data-v-d4c081e8"]]),a4={class:"chart-module layout"},l4={class:"chart-module content"},r4={class:"chart-module content"},n4={class:"form-content"},o4={class:"dialog-footer"},i4={class:"form-content"},t4={class:"dialog-footer"},s4={class:"form-content"},c4={class:"dialog-footer"},u4=a.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,o=n,s=a.reactive({visible:!1,width:"840",title:"基础配置"}),c=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:""}],p=a.ref({}),v=()=>{var Fe;c.value=b(),(Fe=c.value)==null||Fe.forEach(ze=>{var Ze;const Re=ze==null?void 0:ze.prop;ze.value=(Ze=p==null?void 0:p.value)==null?void 0:Ze[Re]}),s.visible=!0},y=Fe=>{p.value=Fe},u=()=>{var Fe;s.visible=!1,o("change",(Fe=Ve())==null?void 0:Fe.compData)},_=a.reactive({visible:!1,width:"840",title:"数据配置"}),N=a.ref([]),$=()=>[{label:"菜单选项",prop:"menu",type:"cascader",contents:[]},{label:"组信息选项",prop:"group",type:"select",contents:[]},{label:"名称列",prop:"nameCol",type:"select",contents:[]},{label:"取值列",prop:"valueCol",type:"select",contents:[]}],S=a.ref({}),q=()=>{const Fe=N.value,ze=L.cloneDeep(Fe);return ze==null||ze.forEach(Re=>{var Ja;const Ze=Re==null?void 0:Re.prop;Re.value=(Ja=S.value)==null?void 0:Ja[Ze]}),ze},O=Fe=>{var Re;S.value=Fe;const ze=q();N.value=ze,o("change",(Re=Ve())==null?void 0:Re.compData)},M=async()=>{const Fe=await sa.getMenusContent(),ze=q();ze==null||ze.forEach(Re=>{(Re==null?void 0:Re.prop)==="menu"&&(Re.contents=Fe)}),N.value=ze,_.visible=!0,await pa(S.value.menu),await le(S.value.group)},Z=a.reactive({visible:!1,width:"840",title:"详情页配置"}),C=a.ref([]),w=()=>[{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:[]}],E=a.ref({}),m=()=>{const Fe=C.value,ze=L.cloneDeep(Fe);return ze==null||ze.forEach(Re=>{var Ja;const Ze=Re==null?void 0:Re.prop;Re.value=(Ja=E.value)==null?void 0:Ja[Ze]}),ze},g=Fe=>{var Re;E.value=Fe;const ze=m();C.value=ze,o("change",(Re=Ve())==null?void 0:Re.compData)},j=async()=>{await Q();const Fe=L.cloneDeep(V.value),ze=m();ze==null||ze.forEach(Re=>{var Ja;const Ze=Re==null?void 0:Re.prop;Re.value=(Ja=E==null?void 0:E.value)==null?void 0:Ja[Ze],Ze==="mainKey"&&(Re.contents=Fe)}),C.value=ze,Z.visible=!0},V=a.ref([]),G=a.ref([]),he=a.ref({}),Te=a.ref({}),Se=()=>{const{compData:Fe}=be.value||{},ze=Fe==null?void 0:Fe.find(X=>{const{key:ie}=X;return ie==="header"}),Re=(ze==null?void 0:ze.contents)||[],Ze=Re==null?void 0:Re.filter((X,ie)=>{const{label:se}=X;return se!=="操作"}),Ja=Ze==null?void 0:Ze.findIndex((X,ie)=>{const{isMainKey:se}=X;return se});if(Ja<0)return[];const qa=Fe==null?void 0:Fe.find(X=>{const{key:ie}=X;return ie==="tableContents"}),F=(qa==null?void 0:qa.contents)||[];return F==null?void 0:F.map(X=>{const ie=X==null?void 0:X[0];let se=Ja;Qa.isObject(ie)&&(ie!=null&&ie.id)&&(se=se+1);const ga=X==null?void 0:X[se];return{label:ga,value:ga}})},Q=async()=>{const Fe=await Se();V.value=Fe},fe=async Fe=>{const ze=sessionStorage.getItem("systemKey");return await sa.getItemData(Fe,ze,"")},J=async Fe=>{const ze=Fe;G.value=ze==null?void 0:ze.map(Re=>{const{name:Ze}=Re;return he.value[Ze]=Re,{label:Ze,value:Ze}})},ce=Fe=>{const{comp:ze,compData:Re}=Te.value||{};if(ze==="Table"){let Ze=m();Ze=Ze.filter(Ja=>{const{prop:qa}=Ja;return qa!=="formItems"}),_a(Ze,Re),C.value=Ze}},He=async()=>{var Re,Ze;const Fe=(Re=E==null?void 0:E.value)==null?void 0:Re.mainKey,ze=(Ze=S==null?void 0:S.value)==null?void 0:Ze.menu;if(Fe){const qa=`${ze==null?void 0:ze.join("/")}^${Fe}`,F=await fe(qa);await J(F);const P=m();P==null||P.forEach(X=>{(X==null?void 0:X.prop)==="group"&&(X.contents=G.value)}),C.value=P}};a.watch(()=>{var Fe;return(Fe=E==null?void 0:E.value)==null?void 0:Fe.mainKey},async(Fe,ze)=>{Fe!=ze&&Fe&&await He()});const Ca=async Fe=>{const ze=he.value[Fe];Te.value=ze,await ce()};a.watch(()=>{var Fe;return(Fe=E==null?void 0:E.value)==null?void 0:Fe.group},async(Fe,ze)=>{Fe!=ze&&Fe&&Ca(Fe)});const ne=async()=>{var ze;await He();const Fe=(ze=E.value)==null?void 0:ze.group;await Ca(Fe)},D=a.ref([]),re=a.ref({}),be=a.ref({}),ue=async Fe=>{const ze=Fe==null?void 0:Fe.join("/"),Re=sessionStorage.getItem("systemKey");return await sa.getItemData(ze,Re,"")},De=async Fe=>{const ze=await ue(Fe);D.value=ze==null?void 0:ze.map(Re=>{const{name:Ze}=Re;return re.value[Ze]=Re,{label:Ze,value:Ze}})},pa=async(Fe,ze)=>{await De(Fe);const Re=q();Re==null||Re.forEach(Ze=>{(Ze==null?void 0:Ze.prop)==="group"&&(Ze.contents=D.value)}),N.value=Re};a.watch(()=>{var Fe;return(Fe=S==null?void 0:S.value)==null?void 0:Fe.menu},async(Fe,ze)=>{const Re=Fe==null?void 0:Fe.join("/"),Ze=ze==null?void 0:ze.join("/");Re!=Ze&&await pa(Fe)});const _a=(Fe,ze)=>{const Re=ze==null?void 0:ze.find(F=>{const{key:P}=F;return P==="header"}),Ze=(Re==null?void 0:Re.contents)||[],Ja=Ze==null?void 0:Ze.filter((F,P)=>{const{label:X}=F;return X!=="操作"}),qa=Ja==null?void 0:Ja.map((F,P)=>{const{label:X}=F;return{label:X,value:P}});Fe==null||Fe.forEach(F=>{const P=F==null?void 0:F.prop;(P==="nameCol"||P==="valueCol")&&(F.contents=qa)})},Ga=Fe=>{const{comp:ze,compData:Re}=be.value||{};if(ze==="Table"){S.value.formItems=[];let Ze=q();Ze=Ze.filter(Ja=>{const{prop:qa}=Ja;return qa!=="formItems"}),_a(Ze,Re),N.value=Ze}},le=async Fe=>{const ze=re.value[Fe];be.value=ze,await Ga()};a.watch(()=>{var Fe;return(Fe=S==null?void 0:S.value)==null?void 0:Fe.group},async(Fe,ze)=>{Fe!=ze&&le(Fe)});const la=async()=>{var Re,Ze;const Fe=(Re=S.value)==null?void 0:Re.menu;await pa(Fe);const ze=(Ze=S.value)==null?void 0:Ze.group;await le(ze)},Ve=()=>({comp:"chart",compData:[{key:"chartBaseConfig",contents:p.value},{key:"chartDataConfig",contents:S.value},{key:"chartDetailConfig",contents:E.value}]}),wa=()=>{s.visible=!1,_.visible=!1,Z.visible=!1};return a.onMounted(async()=>{var ze,Re,Ze;N.value=$(),C.value=w();const Fe=r==null?void 0:r.itemContents;p.value=((ze=Fe==null?void 0:Fe.find(Ja=>Ja.key==="chartBaseConfig"))==null?void 0:ze.contents)??{},S.value=((Re=Fe==null?void 0:Fe.find(Ja=>Ja.key==="chartDataConfig"))==null?void 0:Re.contents)??{},await la(),E.value=((Ze=Fe==null?void 0:Fe.find(Ja=>Ja.key==="chartDetailConfig"))==null?void 0:Ze.contents)??{},await ne()}),(Fe,ze)=>{const Re=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",a4,[ze[4]||(ze[4]=a.createElementVNode("div",{class:"module-title"},"基础配置",-1)),a.createVNode(Re,{id:"themeButton",onClick:ze[0]||(ze[0]=Ze=>v())},{default:a.withCtx(()=>ze[3]||(ze[3]=[a.createTextVNode(" 修改 ")])),_:1,__:[3]})]),a.createElementVNode("div",l4,[ze[6]||(ze[6]=a.createElementVNode("h4",{class:"module-title"},"数据配置",-1)),a.createVNode(Re,{id:"themeButton",onClick:ze[1]||(ze[1]=Ze=>M())},{default:a.withCtx(()=>ze[5]||(ze[5]=[a.createTextVNode(" 修改 ")])),_:1,__:[5]})]),a.createElementVNode("div",r4,[ze[8]||(ze[8]=a.createElementVNode("h4",{class:"module-title"},"详情数据配置",-1)),a.createVNode(Re,{id:"themeButton",onClick:ze[2]||(ze[2]=Ze=>j())},{default:a.withCtx(()=>ze[7]||(ze[7]=[a.createTextVNode(" 修改 ")])),_:1,__:[7]})])]),a.createVNode(xr.ssDialog,{visible:s.visible,title:s.title,onBeforeDestroy:wa,width:s.width},{default:a.withCtx(()=>[a.createElementVNode("div",n4,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:c.value,key:c.value,isEnableWrap:!0,onChange:y},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",o4,[a.createVNode(Re,{class:"cancel-button button",onClick:wa,id:"themeBorderButton"},{default:a.withCtx(()=>ze[9]||(ze[9]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[9]}),a.createVNode(Re,{class:"ok-button button",onClick:u,id:"themeButton"},{default:a.withCtx(()=>ze[10]||(ze[10]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[10]})])]),_:1},8,["visible","title","width"]),a.createVNode(xr.ssDialog,{visible:_.visible,title:_.title,onBeforeDestroy:wa,width:_.width},{default:a.withCtx(()=>[a.createElementVNode("div",i4,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:N.value,key:N.value,isEnableWrap:!0,onChange:O},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",t4,[a.createVNode(Re,{class:"cancel-button button",onClick:wa,id:"themeBorderButton"},{default:a.withCtx(()=>ze[11]||(ze[11]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[11]}),a.createVNode(Re,{class:"ok-button button",onClick:wa,id:"themeButton"},{default:a.withCtx(()=>ze[12]||(ze[12]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible","title","width"]),a.createVNode(xr.ssDialog,{visible:Z.visible,title:Z.title,onBeforeDestroy:wa,width:Z.width},{default:a.withCtx(()=>[a.createElementVNode("div",s4,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:C.value,key:C.value,isEnableWrap:!0,onChange:g},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",c4,[a.createVNode(Re,{class:"cancel-button button",onClick:wa,id:"themeBorderButton"},{default:a.withCtx(()=>ze[13]||(ze[13]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[13]}),a.createVNode(Re,{class:"ok-button button",onClick:wa,id:"themeButton"},{default:a.withCtx(()=>ze[14]||(ze[14]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible","title","width"])],64)}}}),d4=Kl._export_sfc(u4,[["__scopeId","data-v-fe119645"]]),p4={class:"layout"},f4=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["rowClick"],setup(l,{emit:n}){const r=n,o=l;a.onMounted(async()=>{});const s=a.computed(()=>L.cloneDeep(o==null?void 0:o.itemData)||[]),c=a.computed(()=>{var u;const y=(u=s==null?void 0:s.value)==null?void 0:u.find(_=>{const{key:N}=_;return N==="baseConfig"});return y==null?void 0:y.contents}),b=a.computed(()=>{var u;const y=(u=s==null?void 0:s.value)==null?void 0:u.find(_=>{const{key:N}=_;return N==="children"});return y==null?void 0:y.contents}),p=a.computed(()=>{let y=L.cloneDeep(b.value)||[];const u=y.length;let _=0;const N=[];if(y=y.map($=>{const S=$.span;return S?($.span=Number(S),_=_+$.span):N.push($),$}),_<24){const $=Math.floor((24-_)/u);N.forEach(S=>{S.span=$})}return y}),v=y=>{r("rowClick",y)};return(y,u)=>{var $;const _=a.resolveComponent("el-col"),N=a.resolveComponent("el-row");return a.openBlock(),a.createElementBlock("div",p4,[a.createVNode(N,{style:a.normalizeStyle({height:($=c.value)==null?void 0:$.height})},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(p.value,(S,q)=>(a.openBlock(),a.createBlock(_,{span:S==null?void 0:S.span},{default:a.withCtx(()=>{var O;return[a.unref(Bo)?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Uo)(S.comp)),{key:a.unref(Yn),compName:S.name,index:(S==null?void 0:S.id)??q,height:(O=c.value)==null?void 0:O.height,itemData:S==null?void 0:S.compData,childItemData:S==null?void 0:S.itemChildData,onChange:a.unref(Di),onContentChange:a.unref(Bi),onPageChange:a.unref(Ni),onRowClick:v},null,40,["compName","index","height","itemData","childItemData","onChange","onContentChange","onPageChange"])):a.createCommentVNode("",!0)]}),_:2},1032,["span"]))),256))]),_:1},8,["style"])])}}}),h4=Kl._export_sfc(f4,[["__scopeId","data-v-ab9a36ed"]]),v4={class:"layout-operate"},m4={class:"layout-module"},y4={class:"collapse-title-item"},g4={class:"collapse-title"},b4={class:"icon-content"},k4=["onClick"],x4={class:"comp-child"},w4=a.defineComponent({__name:"operate",props:{itemContents:{type:Object,default:()=>{}},originalItemContents:{type:Array,default:()=>[]},itemChildData:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:n}){const r=l,o=n;a.onMounted(()=>{q()});const s=a.ref({}),c=a.ref({}),b=a.ref([]),p=E=>[{label:"高度",prop:"height",type:"input",value:E==null?void 0:E.height}],v=E=>{c.value=E,o("change",w(),!0)},y=a.ref([]),u=a.ref([]),_=E=>[{label:"占比",prop:"span",type:"input",value:E==null?void 0:E.span}],N=a.computed(()=>{const E=r==null?void 0:r.itemContents;return L.cloneDeep(E)}),$=a.computed(()=>{const E=N==null?void 0:N.value,m=E==null?void 0:E.find(g=>{const{key:j}=g;return j==="baseConfig"});return m==null?void 0:m.contents}),S=a.computed(()=>{const E=N==null?void 0:N.value,m=E==null?void 0:E.find(g=>{const{key:j}=g;return j==="children"});return m==null?void 0:m.contents}),q=()=>{var E;s.value=N.value||{},y.value=(S==null?void 0:S.value)||[],b.value=p(),b.value=(E=b.value)==null?void 0:E.map(m=>{var j;const{prop:g}=m;return m.value=(j=$.value)==null?void 0:j[g],m})};a.watch(()=>{var E;return(E=S==null?void 0:S.value)==null?void 0:E.length},()=>{var E;y.value=(S==null?void 0:S.value)||[],u.value=(E=S.value)==null?void 0:E.map(m=>_(m))},{immediate:!0});const O=(E,m)=>{const g=L.cloneDeep(S==null?void 0:S.value);g[m].span=E.span,y.value=g,o("change",w(),!0)},M=E=>No(E),Z=(E,m,g)=>{if(!E)return;const j=L.cloneDeep(S==null?void 0:S.value);j[g]&&(j[g].compData=E,y.value=j,o("change",w(),!0))},C=E=>{un.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{let m=L.cloneDeep(S==null?void 0:S.value);m=m==null?void 0:m.filter((g,j)=>E!==j),y.value=m,o("change",w(),!0),Qa.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},w=()=>({compData:[{key:"baseConfig",contents:c.value},{key:"children",contents:y==null?void 0:y.value}]});return(E,m)=>{const g=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",v4,[a.createElementVNode("div",m4,[m[1]||(m[1]=a.createElementVNode("div",{class:"module-title"},"基础配置",-1)),a.createElementVNode("div",null,[a.createVNode(dl.ssForm,{rowContents:b.value,isEnableWrap:!0,onChange:m[0]||(m[0]=j=>v(j))},null,8,["rowContents"])])]),a.createVNode(Ks.default,{class:"collapse-content",collapseContents:S.value},{title:a.withCtx(({item:j,index:V})=>[a.createElementVNode("div",y4,[a.createElementVNode("div",g4,a.toDisplayString(j.name),1),a.createElementVNode("div",b4,[a.createElementVNode("div",{onClick:a.withModifiers(G=>C(V),["stop"]),class:"icon-content"},[a.createVNode(g,{name:"Delete",style:{width:"16px",height:"16px"}})],8,k4)])])]),content:a.withCtx(({item:j,index:V})=>[a.createElementVNode("div",x4,[a.createElementVNode("div",null,[(a.openBlock(),a.createBlock(dl.ssForm,{rowContents:u.value[V],key:V,isEnableWrap:!0,onChange:G=>O(G,V)},null,8,["rowContents","onChange"]))]),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(M(j.comp+"Operate")),{itemContents:j==null?void 0:j.compData,originalItemContents:j.compData,onChange:G=>Z(G,j,V)},null,40,["itemContents","originalItemContents","onChange"]))])]),_:1},8,["collapseContents"])])}}}),_4=Kl._export_sfc(w4,[["__scopeId","data-v-ba05456e"]]),E4=typeof window<"u";var ks;E4&&((ks=window==null?void 0:window.navigator)!=null&&ks.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function cn(l){return l==null}function Nc(){}const S4=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(S4)));function C4(){const l=new Map;return{on(n,r){const o=l.get(n);o!=null&&o.add(r)||l.set(n,new Set([r]))},off(n,r){const o=l.get(n);o&&o.delete(r)},clear(n){const r=l.get(n);r&&r.clear()},clearAll(){l.clear()},emit(n,...r){const o=l.get(n);o&&o.forEach(s=>{s(...r)})}}}function xs(l,n=16){if(typeof l!="function")return Nc;const r=(...c)=>{l(...c)};if(n<=0)return Tc(r);let o=0,s;return function(...c){const b=Date.now(),p=b-o;clearTimeout(s),p>=n?(o=b,r(...c)):s=setTimeout(()=>{o=Date.now(),r(...c)},Math.max(0,n-p))}}function D4(l,n=100){if(typeof l!="function")return Nc;const r=(...s)=>{l(...s)};if(n<=0)return Tc(r);let o;return function(...s){clearTimeout(o),o=setTimeout(()=>{r(...s)},n)}}function Tc(l){if(typeof l!="function")return l;let n=!1,r,o;return function(...s){return r=s,n||(n=!0,o=Promise.resolve().then(()=>(n=!1,o=void 0,l(...r)))),o}}const Po=new Set,Ac=new WeakMap;function B4(){Po.forEach(l=>{l(...Ac.get(l))}),Po.clear()}function Jr(l,...n){if(typeof l!="function")return l;Ac.set(l,n),!Po.has(l)&&(Po.add(l),Po.size===1&&Promise.resolve().then(B4))}const zc=Symbol("LAYOUT_KEY"),Mc=Symbol("EMITTER_KEY");function N4(l){let n=0,r;for(let o=0,s=l.length;o<s;o++)r=l[o].y+l[o].h,r>n&&(n=r);return n}function kt(l){const n=Array(l.length);for(let r=0,o=l.length;r<o;r++)n[r]=T4(l[r]);return n}function T4(l){return{...l}}function Ic(l,n){return!(l===n||l.x+l.w<=n.x||l.x>=n.x+n.w||l.y+l.h<=n.y||l.y>=n.y+n.h)}function wo(l,n,r){const o=Lc(l),s=$c(l),c=Array(l.length);for(let b=0,p=s.length;b<p;b++){let v=s[b];v.static||(v=A4(o,v,n,r),o.push(v)),c[l.findIndex(y=>y.i===v.i)]=v,v.moved=!1}return c}function A4(l,n,r,o){if(r)for(;n.y>0&&!Fo(l,n);)n.y--;else if(o){const c=o[n.i].y;for(;n.y>c&&!Fo(l,n);)n.y--}let s;for(;s=Fo(l,n);)n.y=s.y+s.h;return n}function z4(l,n){const r=Lc(l);for(let o=0,s=l.length;o<s;o++){const c=l[o];if(c.x+c.w>n.cols&&(c.x=n.cols-c.w),c.x<0&&(c.x=0,c.w=n.cols),!c.static)r.push(c);else for(;Fo(r,c);)c.y++}return l}function ws(l,n){for(let r=0,o=l.length;r<o;r++)if(l[r].i===n)return l[r]}function Fo(l,n){for(let r=0,o=l.length;r<o;r++)if(Ic(l[r],n))return l[r]}function Oc(l,n){return l.filter(r=>Ic(r,n))}function Lc(l){return l.filter(n=>n.static)}function xt(l,n,r,o,s=!1,c=!1){if(n.static)return l;const b=n.x,p=n.y,v=o&&n.y>o;typeof r=="number"&&(n.x=r),typeof o=="number"&&(n.y=o),n.moved=!0;let y=$c(l);v&&(y=y.reverse());const u=Oc(y,n);if(c&&u.length)return n.x=b,n.y=p,n.moved=!1,l;for(let _=0,N=u.length;_<N;_++){const $=u[_];$.moved||n.y>$.y&&n.y-$.y>$.h/4||($.static?l=_s(l,$,n,s):l=_s(l,n,$,s))}return l}function _s(l,n,r,o){if(o){const s={x:r.x,y:r.y,w:r.w,h:r.h};if(s.y=Math.max(n.y-r.h,0),!Fo(l,s))return xt(l,r,void 0,s.y,!1)}return xt(l,r,void 0,r.y+1,!1)}function M4(l,n,r,o){const s="translate3d("+n+"px,"+l+"px, 0)";return{transform:s,WebkitTransform:s,MozTransform:s,msTransform:s,OTransform:s,width:r+"px",height:o+"px",position:"absolute"}}function I4(l,n,r,o){const s="translate3d("+n*-1+"px,"+l+"px, 0)";return{transform:s,WebkitTransform:s,MozTransform:s,msTransform:s,OTransform:s,width:r+"px",height:o+"px",position:"absolute"}}function O4(l,n,r,o){return{top:l+"px",left:n+"px",width:r+"px",height:o+"px",position:"absolute"}}function L4(l,n,r,o){return{top:l+"px",right:n+"px",width:r+"px",height:o+"px",position:"absolute"}}function $c(l){return Array.from(l).sort(function(n,r){return n.y===r.y&&n.x===r.x?0:n.y>r.y||n.y===r.y&&n.x>r.x?1:-1})}function $4(l,n){n=n||"Layout";const r=["x","y","w","h"],o=[];if(!Array.isArray(l))throw new Error(n+" must be an array!");for(let s=0,c=l.length;s<c;s++){const b=l[s];for(let p=0;p<r.length;p++)if(typeof b[r[p]]!="number")throw new Error("VueGridLayout: "+n+"["+s+"]."+r[p]+" must be a number!");if(b.i===void 0||b.i===null)throw new Error("VueGridLayout: "+n+"["+s+"].i cannot be null!");if(typeof b.i!="number"&&typeof b.i!="string")throw new Error("VueGridLayout: "+n+"["+s+"].i must be a string or number!");if(o.indexOf(b.i)>=0)throw new Error("VueGridLayout: "+n+"["+s+"].i must be unique!");if(o.push(b.i),b.static!==void 0&&typeof b.static!="boolean")throw new Error("VueGridLayout: "+n+"["+s+"].static must be a boolean!")}}function R4(l,n="vgl"){const r=()=>`${n}-${l}`;return{b:r,be:o=>`${r()}__${o}`,bm:o=>`${r()}--${o}`,bem:(o,s)=>`${r()}__${o}--${s}`}}function Es(l){return V4(l)}function V4(l){var n;const r=((n=l.target)==null?void 0:n.offsetParent)||document.body,o=l.offsetParent===document.body?{left:0,top:0}:r.getBoundingClientRect(),s=l.clientX+r.scrollLeft-o.left,c=l.clientY+r.scrollTop-o.top;return{x:s,y:c}}function Ss(l,n,r,o){return P4(l)?{deltaX:r-l,deltaY:o-n,lastX:l,lastY:n,x:r,y:o}:{deltaX:0,deltaY:0,lastX:r,lastY:o,x:r,y:o}}function P4(l){return typeof l=="number"&&!Number.isNaN(l)}function F4(l,n){const r=Vc(l);let o=r[0];for(let s=1,c=r.length;s<c;s++){const b=r[s];n>l[b]&&(o=b)}return o}function Rc(l,n){if(!n[l])throw new Error("ResponsiveGridLayout: `cols` entry for breakpoint "+l+" is missing!");return n[l]}function j4(l,n,r,o,s,c,b){if(n[o])return kt(n[o]);let p=l;const v=Vc(r),y=v.slice(v.indexOf(o));for(let u=0,_=y.length;u<_;u++){const N=y[u];if(n[N]){p=n[N];break}}return p=kt(p||[]),wo(z4(p,{cols:c}),b)}function Vc(l){return Object.keys(l).sort((n,r)=>l[n]-l[r])}let H4="auto";function U4(){return typeof document<"u"}function Cs(){return U4()?typeof document.dir<"u"?document.dir:document.getElementsByTagName("html")[0].getAttribute("dir"):H4}var Ro={exports:{}},q4=Ro.exports,Ds;function W4(){return Ds||(Ds=1,function(l,n){(function(r,o){l.exports=o()})(q4,function(){function r(t,i){var f=Object.keys(t);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(t);i&&(k=k.filter(function(x){return Object.getOwnPropertyDescriptor(t,x).enumerable})),f.push.apply(f,k)}return f}function o(t){for(var i=1;i<arguments.length;i++){var f=arguments[i]!=null?arguments[i]:{};i%2?r(Object(f),!0).forEach(function(k){v(t,k,f[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(f)):r(Object(f)).forEach(function(k){Object.defineProperty(t,k,Object.getOwnPropertyDescriptor(f,k))})}return t}function s(t){return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},s(t)}function c(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}function b(t,i){for(var f=0;f<i.length;f++){var k=i[f];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(t,q(k.key),k)}}function p(t,i,f){return i&&b(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function v(t,i,f){return(i=q(i))in t?Object.defineProperty(t,i,{value:f,enumerable:!0,configurable:!0,writable:!0}):t[i]=f,t}function y(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),i&&_(t,i)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},u(t)}function _(t,i){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,k){return f.__proto__=k,f},_(t,i)}function N(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $(t){var i=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var f,k=u(t);if(i){var x=u(this).constructor;f=Reflect.construct(k,arguments,x)}else f=k.apply(this,arguments);return function(I,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 N(I)}(this,f)}}function S(){return S=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(t,i,f){var k=function(I,U){for(;!Object.prototype.hasOwnProperty.call(I,U)&&(I=u(I))!==null;);return I}(t,i);if(k){var x=Object.getOwnPropertyDescriptor(k,i);return x.get?x.get.call(arguments.length<3?t:f):x.value}},S.apply(this,arguments)}function q(t){var i=function(f,k){if(typeof f!="object"||f===null)return f;var x=f[Symbol.toPrimitive];if(x!==void 0){var I=x.call(f,k);if(typeof I!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(f)}(t,"string");return typeof i=="symbol"?i:i+""}var O=function(t){return!(!t||!t.Window)&&t instanceof t.Window},M=void 0,Z=void 0;function C(t){M=t;var i=t.document.createTextNode("");i.ownerDocument!==t.document&&typeof t.wrap=="function"&&t.wrap(i)===i&&(t=t.wrap(t)),Z=t}function w(t){return O(t)?t:(t.ownerDocument||t).defaultView||Z.window}typeof window<"u"&&window&&C(window);var E=function(t){return!!t&&s(t)==="object"},m=function(t){return typeof t=="function"},g={window:function(t){return t===Z||O(t)},docFrag:function(t){return E(t)&&t.nodeType===11},object:E,func:m,number:function(t){return typeof t=="number"},bool:function(t){return typeof t=="boolean"},string:function(t){return typeof t=="string"},element:function(t){if(!t||s(t)!=="object")return!1;var i=w(t)||Z;return/object|function/.test(typeof Element>"u"?"undefined":s(Element))?t instanceof Element||t instanceof i.Element:t.nodeType===1&&typeof t.nodeName=="string"},plainObject:function(t){return E(t)&&!!t.constructor&&/function Object\b/.test(t.constructor.toString())},array:function(t){return E(t)&&t.length!==void 0&&m(t.splice)}};function j(t){var i=t.interaction;if(i.prepared.name==="drag"){var f=i.prepared.axis;f==="x"?(i.coords.cur.page.y=i.coords.start.page.y,i.coords.cur.client.y=i.coords.start.client.y,i.coords.velocity.client.y=0,i.coords.velocity.page.y=0):f==="y"&&(i.coords.cur.page.x=i.coords.start.page.x,i.coords.cur.client.x=i.coords.start.client.x,i.coords.velocity.client.x=0,i.coords.velocity.page.x=0)}}function V(t){var i=t.iEvent,f=t.interaction;if(f.prepared.name==="drag"){var k=f.prepared.axis;if(k==="x"||k==="y"){var x=k==="x"?"y":"x";i.page[x]=f.coords.start.page[x],i.client[x]=f.coords.start.client[x],i.delta[x]=0}}}var G={id:"actions/drag",install:function(t){var i=t.actions,f=t.Interactable,k=t.defaults;f.prototype.draggable=G.draggable,i.map.drag=G,i.methodDict.drag="draggable",k.actions.drag=G.defaults},listeners:{"interactions:before-action-move":j,"interactions:action-resume":j,"interactions:action-move":V,"auto-start:check":function(t){var i=t.interaction,f=t.interactable,k=t.buttons,x=f.options.drag;if(x&&x.enabled&&(!i.pointerIsDown||!/mouse|pointer/.test(i.pointerType)||(k&f.options.drag.mouseButtons)!=0))return t.action={name:"drag",axis:x.lockAxis==="start"?x.startAxis:x.lockAxis},!1}},draggable:function(t){return g.object(t)?(this.options.drag.enabled=t.enabled!==!1,this.setPerAction("drag",t),this.setOnEvents("drag",t),/^(xy|x|y|start)$/.test(t.lockAxis)&&(this.options.drag.lockAxis=t.lockAxis),/^(xy|x|y)$/.test(t.startAxis)&&(this.options.drag.startAxis=t.startAxis),this):g.bool(t)?(this.options.drag.enabled=t,this):this.options.drag},beforeMove:j,move:V,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(t){return t.search("drag")===0}},he=G,Te={init:function(t){var i=t;Te.document=i.document,Te.DocumentFragment=i.DocumentFragment||Se,Te.SVGElement=i.SVGElement||Se,Te.SVGSVGElement=i.SVGSVGElement||Se,Te.SVGElementInstance=i.SVGElementInstance||Se,Te.Element=i.Element||Se,Te.HTMLElement=i.HTMLElement||Te.Element,Te.Event=i.Event,Te.Touch=i.Touch||Se,Te.PointerEvent=i.PointerEvent||i.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function Se(){}var Q=Te,fe={init:function(t){var i=Q.Element,f=t.navigator||{};fe.supportsTouch="ontouchstart"in t||g.func(t.DocumentTouch)&&Q.document instanceof t.DocumentTouch,fe.supportsPointerEvent=f.pointerEnabled!==!1&&!!Q.PointerEvent,fe.isIOS=/iP(hone|od|ad)/.test(f.platform),fe.isIOS7=/iP(hone|od|ad)/.test(f.platform)&&/OS 7[^\d]/.test(f.appVersion),fe.isIe9=/MSIE 9/.test(f.userAgent),fe.isOperaMobile=f.appName==="Opera"&&fe.supportsTouch&&/Presto/.test(f.userAgent),fe.prefixedMatchesSelector="matches"in i.prototype?"matches":"webkitMatchesSelector"in i.prototype?"webkitMatchesSelector":"mozMatchesSelector"in i.prototype?"mozMatchesSelector":"oMatchesSelector"in i.prototype?"oMatchesSelector":"msMatchesSelector",fe.pEventTypes=fe.supportsPointerEvent?Q.PointerEvent===t.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,fe.wheelEvent=Q.document&&"onmousewheel"in Q.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},J=fe;function ce(t,i){if(t.contains)return t.contains(i);for(;i;){if(i===t)return!0;i=i.parentNode}return!1}function He(t,i){for(;g.element(t);){if(ne(t,i))return t;t=Ca(t)}return null}function Ca(t){var i=t.parentNode;if(g.docFrag(i)){for(;(i=i.host)&&g.docFrag(i););return i}return i}function ne(t,i){return Z!==M&&(i=i.replace(/\/deep\//g," ")),t[J.prefixedMatchesSelector](i)}var D=function(t){return t.parentNode||t.host};function re(t,i){for(var f,k=[],x=t;(f=D(x))&&x!==i&&f!==x.ownerDocument;)k.unshift(x),x=f;return k}function be(t,i,f){for(;g.element(t);){if(ne(t,i))return!0;if((t=Ca(t))===f)return ne(t,i)}return!1}function ue(t){return t.correspondingUseElement||t}function De(t){var i=t instanceof Q.SVGElement?t.getBoundingClientRect():t.getClientRects()[0];return i&&{left:i.left,right:i.right,top:i.top,bottom:i.bottom,width:i.width||i.right-i.left,height:i.height||i.bottom-i.top}}function pa(t){var i,f=De(t);if(!J.isIOS7&&f){var k={x:(i=(i=w(t))||Z).scrollX||i.document.documentElement.scrollLeft,y:i.scrollY||i.document.documentElement.scrollTop};f.left+=k.x,f.right+=k.x,f.top+=k.y,f.bottom+=k.y}return f}function _a(t){for(var i=[];t;)i.push(t),t=Ca(t);return i}function Ga(t){return!!g.string(t)&&(Q.document.querySelector(t),!0)}function le(t,i){for(var f in i)t[f]=i[f];return t}function la(t,i,f){return t==="parent"?Ca(f):t==="self"?i.getRect(f):He(f,t)}function Ve(t,i,f,k){var x=t;return g.string(x)?x=la(x,i,f):g.func(x)&&(x=x.apply(void 0,k)),g.element(x)&&(x=pa(x)),x}function wa(t){return t&&{x:"x"in t?t.x:t.left,y:"y"in t?t.y:t.top}}function Fe(t){return!t||"x"in t&&"y"in t||((t=le({},t)).x=t.left||0,t.y=t.top||0,t.width=t.width||(t.right||0)-t.x,t.height=t.height||(t.bottom||0)-t.y),t}function ze(t,i,f){t.left&&(i.left+=f.x),t.right&&(i.right+=f.x),t.top&&(i.top+=f.y),t.bottom&&(i.bottom+=f.y),i.width=i.right-i.left,i.height=i.bottom-i.top}function Re(t,i,f){var k=f&&t.options[f];return wa(Ve(k&&k.origin||t.options.origin,t,i,[t&&i]))||{x:0,y:0}}function Ze(t,i){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(ve){return!0},k=arguments.length>3?arguments[3]:void 0;if(k=k||{},g.string(t)&&t.search(" ")!==-1&&(t=Ja(t)),g.array(t))return t.forEach(function(ve){return Ze(ve,i,f,k)}),k;if(g.object(t)&&(i=t,t=""),g.func(i)&&f(t))k[t]=k[t]||[],k[t].push(i);else if(g.array(i))for(var x=0,I=i;x<I.length;x++){var U=I[x];Ze(t,U,f,k)}else if(g.object(i))for(var Y in i)Ze(Ja(Y).map(function(ve){return"".concat(t).concat(ve)}),i[Y],f,k);return k}function Ja(t){return t.trim().split(/ +/)}var qa=function(t,i){return Math.sqrt(t*t+i*i)},F=["webkit","moz"];function P(t,i){t.__set||(t.__set={});var f=function(x){if(F.some(function(I){return x.indexOf(I)===0}))return 1;typeof t[x]!="function"&&x!=="__set"&&Object.defineProperty(t,x,{get:function(){return x in t.__set?t.__set[x]:t.__set[x]=i[x]},set:function(I){t.__set[x]=I},configurable:!0})};for(var k in i)f(k);return t}function X(t,i){t.page=t.page||{},t.page.x=i.page.x,t.page.y=i.page.y,t.client=t.client||{},t.client.x=i.client.x,t.client.y=i.client.y,t.timeStamp=i.timeStamp}function ie(t){t.page.x=0,t.page.y=0,t.client.x=0,t.client.y=0}function se(t){return t instanceof Q.Event||t instanceof Q.Touch}function ga(t,i,f){return t=t||"page",(f=f||{}).x=i[t+"X"],f.y=i[t+"Y"],f}function ra(t,i){return i=i||{x:0,y:0},J.isOperaMobile&&se(t)?(ga("screen",t,i),i.x+=window.scrollX,i.y+=window.scrollY):ga("page",t,i),i}function Le(t){return g.number(t.pointerId)?t.pointerId:t.identifier}function Ee(t,i,f){var k=i.length>1?va(i):i[0];ra(k,t.page),function(x,I){I=I||{},J.isOperaMobile&&se(x)?ga("screen",x,I):ga("client",x,I)}(k,t.client),t.timeStamp=f}function Ea(t){var i=[];return g.array(t)?(i[0]=t[0],i[1]=t[1]):t.type==="touchend"?t.touches.length===1?(i[0]=t.touches[0],i[1]=t.changedTouches[0]):t.touches.length===0&&(i[0]=t.changedTouches[0],i[1]=t.changedTouches[1]):(i[0]=t.touches[0],i[1]=t.touches[1]),i}function va(t){for(var i={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},f=0;f<t.length;f++){var k=t[f];for(var x in i)i[x]+=k[x]}for(var I in i)i[I]/=t.length;return i}function Va(t){if(!t.length)return null;var i=Ea(t),f=Math.min(i[0].pageX,i[1].pageX),k=Math.min(i[0].pageY,i[1].pageY),x=Math.max(i[0].pageX,i[1].pageX),I=Math.max(i[0].pageY,i[1].pageY);return{x:f,y:k,left:f,top:k,right:x,bottom:I,width:x-f,height:I-k}}function Pa(t,i){var f=i+"X",k=i+"Y",x=Ea(t),I=x[0][f]-x[1][f],U=x[0][k]-x[1][k];return qa(I,U)}function me(t,i){var f=i+"X",k=i+"Y",x=Ea(t),I=x[1][f]-x[0][f],U=x[1][k]-x[0][k];return 180*Math.atan2(U,I)/Math.PI}function Je(t){return g.string(t.pointerType)?t.pointerType:g.number(t.pointerType)?[void 0,void 0,"touch","pen","mouse"][t.pointerType]:/touch/.test(t.type||"")||t instanceof Q.Touch?"touch":"mouse"}function Ae(t){var i=g.func(t.composedPath)?t.composedPath():t.path;return[ue(i?i[0]:t.target),ue(t.currentTarget)]}var Xe=function(){function t(i){c(this,t),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=i}return p(t,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),t}();Object.defineProperty(Xe.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var oe=function(t,i){for(var f=0;f<i.length;f++){var k=i[f];t.push(k)}return t},_e=function(t){return oe([],t)},de=function(t,i){for(var f=0;f<t.length;f++)if(i(t[f],f,t))return f;return-1},We=function(t,i){return t[de(t,i)]},ea=function(t){y(f,t);var i=$(f);function f(k,x,I){var U;c(this,f),(U=i.call(this,x._interaction)).dropzone=void 0,U.dragEvent=void 0,U.relatedTarget=void 0,U.draggable=void 0,U.propagationStopped=!1,U.immediatePropagationStopped=!1;var Y=I==="dragleave"?k.prev:k.cur,ve=Y.element,Oe=Y.dropzone;return U.type=I,U.target=ve,U.currentTarget=ve,U.dropzone=Oe,U.dragEvent=x,U.relatedTarget=x.target,U.draggable=x.interactable,U.timeStamp=x.timeStamp,U}return p(f,[{key:"reject",value:function(){var k=this,x=this._interaction.dropState;if(this.type==="dropactivate"||this.dropzone&&x.cur.dropzone===this.dropzone&&x.cur.element===this.target)if(x.prev.dropzone=this.dropzone,x.prev.element=this.target,x.rejected=!0,x.events.enter=null,this.stopImmediatePropagation(),this.type==="dropactivate"){var I=x.activeDrops,U=de(I,function(ve){var Oe=ve.dropzone,ke=ve.element;return Oe===k.dropzone&&ke===k.target});x.activeDrops.splice(U,1);var Y=new f(x,this.dragEvent,"dropdeactivate");Y.dropzone=this.dropzone,Y.target=this.target,this.dropzone.fire(Y)}else this.dropzone.fire(new f(x,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),f}(Xe);function ka(t,i){for(var f=0,k=t.slice();f<k.length;f++){var x=k[f],I=x.dropzone,U=x.element;i.dropzone=I,i.target=U,I.fire(i),i.propagationStopped=i.immediatePropagationStopped=!1}}function Pe(t,i){for(var f=function(I,U){for(var Y=[],ve=0,Oe=I.interactables.list;ve<Oe.length;ve++){var ke=Oe[ve];if(ke.options.drop.enabled){var Qe=ke.options.drop.accept;if(!(g.element(Qe)&&Qe!==U||g.string(Qe)&&!ne(U,Qe)||g.func(Qe)&&!Qe({dropzone:ke,draggableElement:U})))for(var La=0,tl=ke.getAllElements();La<tl.length;La++){var rl=tl[La];rl!==U&&Y.push({dropzone:ke,element:rl,rect:ke.getRect(rl)})}}}return Y}(t,i),k=0;k<f.length;k++){var x=f[k];x.rect=x.dropzone.getRect(x.element)}return f}function ba(t,i,f){for(var k=t.dropState,x=t.interactable,I=t.element,U=[],Y=0,ve=k.activeDrops;Y<ve.length;Y++){var Oe=ve[Y],ke=Oe.dropzone,Qe=Oe.element,La=Oe.rect,tl=ke.dropCheck(i,f,x,I,Qe,La);U.push(tl?Qe:null)}var rl=function(cl){for(var _l,ul,Tl,Ol=[],Yl=0;Yl<cl.length;Yl++){var Bl=cl[Yl],Ul=cl[_l];if(Bl&&Yl!==_l)if(Ul){var jr=D(Bl),wr=D(Ul);if(jr!==Bl.ownerDocument)if(wr!==Bl.ownerDocument)if(jr!==wr){Ol=Ol.length?Ol:re(Ul);var Yr=void 0;if(Ul instanceof Q.HTMLElement&&Bl instanceof Q.SVGElement&&!(Bl instanceof Q.SVGSVGElement)){if(Bl===wr)continue;Yr=Bl.ownerSVGElement}else Yr=Bl;for(var on=re(Yr,Ul.ownerDocument),pn=0;on[pn]&&on[pn]===Ol[pn];)pn++;var fo=[on[pn-1],on[pn],Ol[pn]];if(fo[0])for(var In=fo[0].lastChild;In;){if(In===fo[1]){_l=Yl,Ol=on;break}if(In===fo[2])break;In=In.previousSibling}}else Tl=Ul,(parseInt(w(ul=Bl).getComputedStyle(ul).zIndex,10)||0)>=(parseInt(w(Tl).getComputedStyle(Tl).zIndex,10)||0)&&(_l=Yl);else _l=Yl}else _l=Yl}return _l}(U);return k.activeDrops[rl]||null}function xa(t,i,f){var k=t.dropState,x={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return f.type==="dragstart"&&(x.activate=new ea(k,f,"dropactivate"),x.activate.target=null,x.activate.dropzone=null),f.type==="dragend"&&(x.deactivate=new ea(k,f,"dropdeactivate"),x.deactivate.target=null,x.deactivate.dropzone=null),k.rejected||(k.cur.element!==k.prev.element&&(k.prev.dropzone&&(x.leave=new ea(k,f,"dragleave"),f.dragLeave=x.leave.target=k.prev.element,f.prevDropzone=x.leave.dropzone=k.prev.dropzone),k.cur.dropzone&&(x.enter=new ea(k,f,"dragenter"),f.dragEnter=k.cur.element,f.dropzone=k.cur.dropzone)),f.type==="dragend"&&k.cur.dropzone&&(x.drop=new ea(k,f,"drop"),f.dropzone=k.cur.dropzone,f.relatedTarget=k.cur.element),f.type==="dragmove"&&k.cur.dropzone&&(x.move=new ea(k,f,"dropmove"),f.dropzone=k.cur.dropzone)),x}function fa(t,i){var f=t.dropState,k=f.activeDrops,x=f.cur,I=f.prev;i.leave&&I.dropzone.fire(i.leave),i.enter&&x.dropzone.fire(i.enter),i.move&&x.dropzone.fire(i.move),i.drop&&x.dropzone.fire(i.drop),i.deactivate&&ka(k,i.deactivate),f.prev.dropzone=x.dropzone,f.prev.element=x.element}function Ha(t,i){var f=t.interaction,k=t.iEvent,x=t.event;if(k.type==="dragmove"||k.type==="dragend"){var I=f.dropState;i.dynamicDrop&&(I.activeDrops=Pe(i,f.element));var U=k,Y=ba(f,U,x);I.rejected=I.rejected&&!!Y&&Y.dropzone===I.cur.dropzone&&Y.element===I.cur.element,I.cur.dropzone=Y&&Y.dropzone,I.cur.element=Y&&Y.element,I.events=xa(f,0,U)}}var Ba={id:"actions/drop",install:function(t){var i=t.actions,f=t.interactStatic,k=t.Interactable,x=t.defaults;t.usePlugin(he),k.prototype.dropzone=function(I){return function(U,Y){if(g.object(Y)){if(U.options.drop.enabled=Y.enabled!==!1,Y.listeners){var ve=Ze(Y.listeners),Oe=Object.keys(ve).reduce(function(Qe,La){return Qe[/^(enter|leave)/.test(La)?"drag".concat(La):/^(activate|deactivate|move)/.test(La)?"drop".concat(La):La]=ve[La],Qe},{}),ke=U.options.drop.listeners;ke&&U.off(ke),U.on(Oe),U.options.drop.listeners=Oe}return g.func(Y.ondrop)&&U.on("drop",Y.ondrop),g.func(Y.ondropactivate)&&U.on("dropactivate",Y.ondropactivate),g.func(Y.ondropdeactivate)&&U.on("dropdeactivate",Y.ondropdeactivate),g.func(Y.ondragenter)&&U.on("dragenter",Y.ondragenter),g.func(Y.ondragleave)&&U.on("dragleave",Y.ondragleave),g.func(Y.ondropmove)&&U.on("dropmove",Y.ondropmove),/^(pointer|center)$/.test(Y.overlap)?U.options.drop.overlap=Y.overlap:g.number(Y.overlap)&&(U.options.drop.overlap=Math.max(Math.min(1,Y.overlap),0)),"accept"in Y&&(U.options.drop.accept=Y.accept),"checker"in Y&&(U.options.drop.checker=Y.checker),U}return g.bool(Y)?(U.options.drop.enabled=Y,U):U.options.drop}(this,I)},k.prototype.dropCheck=function(I,U,Y,ve,Oe,ke){return function(Qe,La,tl,rl,cl,_l,ul){var Tl=!1;if(!(ul=ul||Qe.getRect(_l)))return!!Qe.options.drop.checker&&Qe.options.drop.checker(La,tl,Tl,Qe,_l,rl,cl);var Ol=Qe.options.drop.overlap;if(Ol==="pointer"){var Yl=Re(rl,cl,"drag"),Bl=ra(La);Bl.x+=Yl.x,Bl.y+=Yl.y;var Ul=Bl.x>ul.left&&Bl.x<ul.right,jr=Bl.y>ul.top&&Bl.y<ul.bottom;Tl=Ul&&jr}var wr=rl.getRect(cl);if(wr&&Ol==="center"){var Yr=wr.left+wr.width/2,on=wr.top+wr.height/2;Tl=Yr>=ul.left&&Yr<=ul.right&&on>=ul.top&&on<=ul.bottom}return wr&&g.number(Ol)&&(Tl=Math.max(0,Math.min(ul.right,wr.right)-Math.max(ul.left,wr.left))*Math.max(0,Math.min(ul.bottom,wr.bottom)-Math.max(ul.top,wr.top))/(wr.width*wr.height)>=Ol),Qe.options.drop.checker&&(Tl=Qe.options.drop.checker(La,tl,Tl,Qe,_l,rl,cl)),Tl}(this,I,U,Y,ve,Oe,ke)},f.dynamicDrop=function(I){return g.bool(I)?(t.dynamicDrop=I,f):t.dynamicDrop},le(i.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),i.methodDict.drop="dropzone",t.dynamicDrop=!1,x.actions.drop=Ba.defaults},listeners:{"interactions:before-action-start":function(t){var i=t.interaction;i.prepared.name==="drag"&&(i.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(t,i){var f=t.interaction,k=(t.event,t.iEvent);if(f.prepared.name==="drag"){var x=f.dropState;x.activeDrops=[],x.events={},x.activeDrops=Pe(i,f.element),x.events=xa(f,0,k),x.events.activate&&(ka(x.activeDrops,x.events.activate),i.fire("actions/drop:start",{interaction:f,dragEvent:k}))}},"interactions:action-move":Ha,"interactions:after-action-move":function(t,i){var f=t.interaction,k=t.iEvent;if(f.prepared.name==="drag"){var x=f.dropState;fa(f,x.events),i.fire("actions/drop:move",{interaction:f,dragEvent:k}),x.events={}}},"interactions:action-end":function(t,i){if(t.interaction.prepared.name==="drag"){var f=t.interaction,k=t.iEvent;Ha(t,i),fa(f,f.dropState.events),i.fire("actions/drop:end",{interaction:f,dragEvent:k})}},"interactions:stop":function(t){var i=t.interaction;if(i.prepared.name==="drag"){var f=i.dropState;f&&(f.activeDrops=null,f.events=null,f.cur.dropzone=null,f.cur.element=null,f.prev.dropzone=null,f.prev.element=null,f.rejected=!1)}}},getActiveDrops:Pe,getDrop:ba,getDropEvents:xa,fireDropEvents:fa,filterEventType:function(t){return t.search("drag")===0||t.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},Ia=Ba;function $a(t){var i=t.interaction,f=t.iEvent,k=t.phase;if(i.prepared.name==="gesture"){var x=i.pointers.map(function(Oe){return Oe.pointer}),I=k==="start",U=k==="end",Y=i.interactable.options.deltaSource;if(f.touches=[x[0],x[1]],I)f.distance=Pa(x,Y),f.box=Va(x),f.scale=1,f.ds=0,f.angle=me(x,Y),f.da=0,i.gesture.startDistance=f.distance,i.gesture.startAngle=f.angle;else if(U||i.pointers.length<2){var ve=i.prevEvent;f.distance=ve.distance,f.box=ve.box,f.scale=ve.scale,f.ds=0,f.angle=ve.angle,f.da=0}else f.distance=Pa(x,Y),f.box=Va(x),f.scale=f.distance/i.gesture.startDistance,f.angle=me(x,Y),f.ds=f.scale-i.gesture.scale,f.da=f.angle-i.gesture.angle;i.gesture.distance=f.distance,i.gesture.angle=f.angle,g.number(f.scale)&&f.scale!==1/0&&!isNaN(f.scale)&&(i.gesture.scale=f.scale)}}var Ne={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(t){var i=t.actions,f=t.Interactable,k=t.defaults;f.prototype.gesturable=function(x){return g.object(x)?(this.options.gesture.enabled=x.enabled!==!1,this.setPerAction("gesture",x),this.setOnEvents("gesture",x),this):g.bool(x)?(this.options.gesture.enabled=x,this):this.options.gesture},i.map.gesture=Ne,i.methodDict.gesture="gesturable",k.actions.gesture=Ne.defaults},listeners:{"interactions:action-start":$a,"interactions:action-move":$a,"interactions:action-end":$a,"interactions:new":function(t){t.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(t){if(!(t.interaction.pointers.length<2)){var i=t.interactable.options.gesture;if(i&&i.enabled)return t.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(t){return t.search("gesture")===0}},sl=Ne;function yl(t,i,f,k,x,I,U){if(!i)return!1;if(i===!0){var Y=g.number(I.width)?I.width:I.right-I.left,ve=g.number(I.height)?I.height:I.bottom-I.top;if(U=Math.min(U,Math.abs((t==="left"||t==="right"?Y:ve)/2)),Y<0&&(t==="left"?t="right":t==="right"&&(t="left")),ve<0&&(t==="top"?t="bottom":t==="bottom"&&(t="top")),t==="left"){var Oe=Y>=0?I.left:I.right;return f.x<Oe+U}if(t==="top"){var ke=ve>=0?I.top:I.bottom;return f.y<ke+U}if(t==="right")return f.x>(Y>=0?I.right:I.left)-U;if(t==="bottom")return f.y>(ve>=0?I.bottom:I.top)-U}return!!g.element(k)&&(g.element(i)?i===k:be(k,i,x))}function Gl(t){var i=t.iEvent,f=t.interaction;if(f.prepared.name==="resize"&&f.resizeAxes){var k=i;f.interactable.options.resize.square?(f.resizeAxes==="y"?k.delta.x=k.delta.y:k.delta.y=k.delta.x,k.axes="xy"):(k.axes=f.resizeAxes,f.resizeAxes==="x"?k.delta.y=0:f.resizeAxes==="y"&&(k.delta.x=0))}}var Ya,da,ha={id:"actions/resize",before:["actions/drag"],install:function(t){var i=t.actions,f=t.browser,k=t.Interactable,x=t.defaults;ha.cursors=function(I){return I.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"}}(f),ha.defaultMargin=f.supportsTouch||f.supportsPointerEvent?20:10,k.prototype.resizable=function(I){return function(U,Y,ve){return g.object(Y)?(U.options.resize.enabled=Y.enabled!==!1,U.setPerAction("resize",Y),U.setOnEvents("resize",Y),g.string(Y.axis)&&/^x$|^y$|^xy$/.test(Y.axis)?U.options.resize.axis=Y.axis:Y.axis===null&&(U.options.resize.axis=ve.defaults.actions.resize.axis),g.bool(Y.preserveAspectRatio)?U.options.resize.preserveAspectRatio=Y.preserveAspectRatio:g.bool(Y.square)&&(U.options.resize.square=Y.square),U):g.bool(Y)?(U.options.resize.enabled=Y,U):U.options.resize}(this,I,t)},i.map.resize=ha,i.methodDict.resize="resizable",x.actions.resize=ha.defaults},listeners:{"interactions:new":function(t){t.interaction.resizeAxes="xy"},"interactions:action-start":function(t){(function(i){var f=i.iEvent,k=i.interaction;if(k.prepared.name==="resize"&&k.prepared.edges){var x=f,I=k.rect;k._rects={start:le({},I),corrected:le({},I),previous:le({},I),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},x.edges=k.prepared.edges,x.rect=k._rects.corrected,x.deltaRect=k._rects.delta}})(t),Gl(t)},"interactions:action-move":function(t){(function(i){var f=i.iEvent,k=i.interaction;if(k.prepared.name==="resize"&&k.prepared.edges){var x=f,I=k.interactable.options.resize.invert,U=I==="reposition"||I==="negate",Y=k.rect,ve=k._rects,Oe=ve.start,ke=ve.corrected,Qe=ve.delta,La=ve.previous;if(le(La,ke),U){if(le(ke,Y),I==="reposition"){if(ke.top>ke.bottom){var tl=ke.top;ke.top=ke.bottom,ke.bottom=tl}if(ke.left>ke.right){var rl=ke.left;ke.left=ke.right,ke.right=rl}}}else ke.top=Math.min(Y.top,Oe.bottom),ke.bottom=Math.max(Y.bottom,Oe.top),ke.left=Math.min(Y.left,Oe.right),ke.right=Math.max(Y.right,Oe.left);for(var cl in ke.width=ke.right-ke.left,ke.height=ke.bottom-ke.top,ke)Qe[cl]=ke[cl]-La[cl];x.edges=k.prepared.edges,x.rect=ke,x.deltaRect=Qe}})(t),Gl(t)},"interactions:action-end":function(t){var i=t.iEvent,f=t.interaction;if(f.prepared.name==="resize"&&f.prepared.edges){var k=i;k.edges=f.prepared.edges,k.rect=f._rects.corrected,k.deltaRect=f._rects.delta}},"auto-start:check":function(t){var i=t.interaction,f=t.interactable,k=t.element,x=t.rect,I=t.buttons;if(x){var U=le({},i.coords.cur.page),Y=f.options.resize;if(Y&&Y.enabled&&(!i.pointerIsDown||!/mouse|pointer/.test(i.pointerType)||(I&Y.mouseButtons)!=0)){if(g.object(Y.edges)){var ve={left:!1,right:!1,top:!1,bottom:!1};for(var Oe in ve)ve[Oe]=yl(Oe,Y.edges[Oe],U,i._latestPointer.eventTarget,k,x,Y.margin||ha.defaultMargin);ve.left=ve.left&&!ve.right,ve.top=ve.top&&!ve.bottom,(ve.left||ve.right||ve.top||ve.bottom)&&(t.action={name:"resize",edges:ve})}else{var ke=Y.axis!=="y"&&U.x>x.right-ha.defaultMargin,Qe=Y.axis!=="x"&&U.y>x.bottom-ha.defaultMargin;(ke||Qe)&&(t.action={name:"resize",axes:(ke?"x":"")+(Qe?"y":"")})}return!t.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(t){var i=t.edges,f=t.axis,k=t.name,x=ha.cursors,I=null;if(f)I=x[k+f];else if(i){for(var U="",Y=0,ve=["top","bottom","left","right"];Y<ve.length;Y++){var Oe=ve[Y];i[Oe]&&(U+=Oe)}I=x[U]}return I},filterEventType:function(t){return t.search("resize")===0},defaultMargin:null},ma=ha,Ye={id:"actions",install:function(t){t.usePlugin(sl),t.usePlugin(ma),t.usePlugin(he),t.usePlugin(Ia)}},Xa=0,Ce={request:function(t){return Ya(t)},cancel:function(t){return da(t)},init:function(t){if(Ya=t.requestAnimationFrame,da=t.cancelAnimationFrame,!Ya)for(var i=["ms","moz","webkit","o"],f=0;f<i.length;f++){var k=i[f];Ya=t["".concat(k,"RequestAnimationFrame")],da=t["".concat(k,"CancelAnimationFrame")]||t["".concat(k,"CancelRequestAnimationFrame")]}Ya=Ya&&Ya.bind(t),da=da&&da.bind(t),Ya||(Ya=function(x){var I=Date.now(),U=Math.max(0,16-(I-Xa)),Y=t.setTimeout(function(){x(I+U)},U);return Xa=I+U,Y},da=function(x){return clearTimeout(x)})}},Ke={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(t){Ke.isScrolling=!0,Ce.cancel(Ke.i),t.autoScroll=Ke,Ke.interaction=t,Ke.prevTime=Ke.now(),Ke.i=Ce.request(Ke.scroll)},stop:function(){Ke.isScrolling=!1,Ke.interaction&&(Ke.interaction.autoScroll=null),Ce.cancel(Ke.i)},scroll:function(){var t=Ke.interaction,i=t.interactable,f=t.element,k=t.prepared.name,x=i.options[k].autoScroll,I=ye(x.container,i,f),U=Ke.now(),Y=(U-Ke.prevTime)/1e3,ve=x.speed*Y;if(ve>=1){var Oe={x:Ke.x*ve,y:Ke.y*ve};if(Oe.x||Oe.y){var ke=Oa(I);g.window(I)?I.scrollBy(Oe.x,Oe.y):I&&(I.scrollLeft+=Oe.x,I.scrollTop+=Oe.y);var Qe=Oa(I),La={x:Qe.x-ke.x,y:Qe.y-ke.y};(La.x||La.y)&&i.fire({type:"autoscroll",target:f,interactable:i,delta:La,interaction:t,container:I})}Ke.prevTime=U}Ke.isScrolling&&(Ce.cancel(Ke.i),Ke.i=Ce.request(Ke.scroll))},check:function(t,i){var f;return(f=t.options[i].autoScroll)==null?void 0:f.enabled},onInteractionMove:function(t){var i=t.interaction,f=t.pointer;if(i.interacting()&&Ke.check(i.interactable,i.prepared.name))if(i.simulation)Ke.x=Ke.y=0;else{var k,x,I,U,Y=i.interactable,ve=i.element,Oe=i.prepared.name,ke=Y.options[Oe].autoScroll,Qe=ye(ke.container,Y,ve);if(g.window(Qe))U=f.clientX<Ke.margin,k=f.clientY<Ke.margin,x=f.clientX>Qe.innerWidth-Ke.margin,I=f.clientY>Qe.innerHeight-Ke.margin;else{var La=De(Qe);U=f.clientX<La.left+Ke.margin,k=f.clientY<La.top+Ke.margin,x=f.clientX>La.right-Ke.margin,I=f.clientY>La.bottom-Ke.margin}Ke.x=x?1:U?-1:0,Ke.y=I?1:k?-1:0,Ke.isScrolling||(Ke.margin=ke.margin,Ke.speed=ke.speed,Ke.start(i))}}};function ye(t,i,f){return(g.string(t)?la(t,i,f):t)||w(f)}function Oa(t){return g.window(t)&&(t=window.document.body),{x:t.scrollLeft,y:t.scrollTop}}var Ue={id:"auto-scroll",install:function(t){var i=t.defaults,f=t.actions;t.autoScroll=Ke,Ke.now=function(){return t.now()},f.phaselessTypes.autoscroll=!0,i.perAction.autoScroll=Ke.defaults},listeners:{"interactions:new":function(t){t.interaction.autoScroll=null},"interactions:destroy":function(t){t.interaction.autoScroll=null,Ke.stop(),Ke.interaction&&(Ke.interaction=null)},"interactions:stop":Ke.stop,"interactions:action-move":function(t){return Ke.onInteractionMove(t)}}},W=Ue;function aa(t,i){var f=!1;return function(){return f||(Z.console.warn(i),f=!0),t.apply(this,arguments)}}function Ge(t,i){return t.name=i.name,t.axis=i.axis,t.edges=i.edges,t}function Be(t){return g.bool(t)?(this.options.styleCursor=t,this):t===null?(delete this.options.styleCursor,this):this.options.styleCursor}function El(t){return g.func(t)?(this.options.actionChecker=t,this):t===null?(delete this.options.actionChecker,this):this.options.actionChecker}var il={id:"auto-start/interactableMethods",install:function(t){var i=t.Interactable;i.prototype.getAction=function(f,k,x,I){var U=function(Y,ve,Oe,ke,Qe){var La=Y.getRect(ke),tl=ve.buttons||{0:1,1:4,3:8,4:16}[ve.button],rl={action:null,interactable:Y,interaction:Oe,element:ke,rect:La,buttons:tl};return Qe.fire("auto-start:check",rl),rl.action}(this,k,x,I,t);return this.options.actionChecker?this.options.actionChecker(f,k,U,this,I,x):U},i.prototype.ignoreFrom=aa(function(f){return this._backCompatOption("ignoreFrom",f)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),i.prototype.allowFrom=aa(function(f){return this._backCompatOption("allowFrom",f)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),i.prototype.actionChecker=El,i.prototype.styleCursor=Be}};function bl(t,i,f,k,x){return i.testIgnoreAllow(i.options[t.name],f,k)&&i.options[t.name].enabled&&pe(i,f,t,x)?t:null}function Wa(t,i,f,k,x,I,U){for(var Y=0,ve=k.length;Y<ve;Y++){var Oe=k[Y],ke=x[Y],Qe=Oe.getAction(i,f,t,ke);if(Qe){var La=bl(Qe,Oe,ke,I,U);if(La)return{action:La,interactable:Oe,element:ke}}}return{action:null,interactable:null,element:null}}function Za(t,i,f,k,x){var I=[],U=[],Y=k;function ve(ke){I.push(ke),U.push(Y)}for(;g.element(Y);){I=[],U=[],x.interactables.forEachMatch(Y,ve);var Oe=Wa(t,i,f,I,U,k,x);if(Oe.action&&!Oe.interactable.options[Oe.action.name].manualStart)return Oe;Y=Ca(Y)}return{action:null,interactable:null,element:null}}function Na(t,i,f){var k=i.action,x=i.interactable,I=i.element;k=k||{name:null},t.interactable=x,t.element=I,Ge(t.prepared,k),t.rect=x&&k.name?x.getRect(I):null,Vl(t,f),f.fire("autoStart:prepared",{interaction:t})}function pe(t,i,f,k){var x=t.options,I=x[f.name].max,U=x[f.name].maxPerElement,Y=k.autoStart.maxInteractions,ve=0,Oe=0,ke=0;if(!(I&&U&&Y))return!1;for(var Qe=0,La=k.interactions.list;Qe<La.length;Qe++){var tl=La[Qe],rl=tl.prepared.name;if(tl.interacting()&&(++ve>=Y||tl.interactable===t&&((Oe+=rl===f.name?1:0)>=I||tl.element===i&&(ke++,rl===f.name&&ke>=U))))return!1}return Y>0}function Sa(t,i){return g.number(t)?(i.autoStart.maxInteractions=t,this):i.autoStart.maxInteractions}function Sl(t,i,f){var k=f.autoStart.cursorElement;k&&k!==t&&(k.style.cursor=""),t.ownerDocument.documentElement.style.cursor=i,t.style.cursor=i,f.autoStart.cursorElement=i?t:null}function Vl(t,i){var f=t.interactable,k=t.element,x=t.prepared;if(t.pointerType==="mouse"&&f&&f.options.styleCursor){var I="";if(x.name){var U=f.options[x.name].cursorChecker;I=g.func(U)?U(x,f,k,t._interacting):i.actions.map[x.name].getCursor(x)}Sl(t.element,I||"",i)}else i.autoStart.cursorElement&&Sl(i.autoStart.cursorElement,"",i)}var Fl={id:"auto-start/base",before:["actions"],install:function(t){var i=t.interactStatic,f=t.defaults;t.usePlugin(il),f.base.actionChecker=null,f.base.styleCursor=!0,le(f.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),i.maxInteractions=function(k){return Sa(k,t)},t.autoStart={maxInteractions:1/0,withinInteractionLimit:pe,cursorElement:null}},listeners:{"interactions:down":function(t,i){var f=t.interaction,k=t.pointer,x=t.event,I=t.eventTarget;f.interacting()||Na(f,Za(f,k,x,I,i),i)},"interactions:move":function(t,i){(function(f,k){var x=f.interaction,I=f.pointer,U=f.event,Y=f.eventTarget;x.pointerType!=="mouse"||x.pointerIsDown||x.interacting()||Na(x,Za(x,I,U,Y,k),k)})(t,i),function(f,k){var x=f.interaction;if(x.pointerIsDown&&!x.interacting()&&x.pointerWasMoved&&x.prepared.name){k.fire("autoStart:before-start",f);var I=x.interactable,U=x.prepared.name;U&&I&&(I.options[U].manualStart||!pe(I,x.element,x.prepared,k)?x.stop():(x.start(x.prepared,I,x.element),Vl(x,k)))}}(t,i)},"interactions:stop":function(t,i){var f=t.interaction,k=f.interactable;k&&k.options.styleCursor&&Sl(f.element,"",i)}},maxInteractions:Sa,withinInteractionLimit:pe,validateAction:bl},lr=Fl,mr={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(t,i){var f=t.interaction,k=t.eventTarget,x=t.dx,I=t.dy;if(f.prepared.name==="drag"){var U=Math.abs(x),Y=Math.abs(I),ve=f.interactable.options.drag,Oe=ve.startAxis,ke=U>Y?"x":U<Y?"y":"xy";if(f.prepared.axis=ve.lockAxis==="start"?ke[0]:ve.lockAxis,ke!=="xy"&&Oe!=="xy"&&Oe!==ke){f.prepared.name=null;for(var Qe=k,La=function(rl){if(rl!==f.interactable){var cl=f.interactable.options.drag;if(!cl.manualStart&&rl.testIgnoreAllow(cl,Qe,k)){var _l=rl.getAction(f.downPointer,f.downEvent,f,Qe);if(_l&&_l.name==="drag"&&function(ul,Tl){if(!Tl)return!1;var Ol=Tl.options.drag.startAxis;return ul==="xy"||Ol==="xy"||Ol===ul}(ke,rl)&&lr.validateAction(_l,rl,Qe,k,i))return rl}}};g.element(Qe);){var tl=i.interactables.forEachMatch(Qe,La);if(tl){f.prepared.name="drag",f.interactable=tl,f.element=Qe;break}Qe=Ca(Qe)}}}}}};function Nl(t){var i=t.prepared&&t.prepared.name;if(!i)return null;var f=t.interactable.options;return f[i].hold||f[i].delay}var or={id:"auto-start/hold",install:function(t){var i=t.defaults;t.usePlugin(lr),i.perAction.hold=0,i.perAction.delay=0},listeners:{"interactions:new":function(t){t.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(t){var i=t.interaction,f=Nl(i);f>0&&(i.autoStartHoldTimer=setTimeout(function(){i.start(i.prepared,i.interactable,i.element)},f))},"interactions:move":function(t){var i=t.interaction,f=t.duplicate;i.autoStartHoldTimer&&i.pointerWasMoved&&!f&&(clearTimeout(i.autoStartHoldTimer),i.autoStartHoldTimer=null)},"autoStart:before-start":function(t){var i=t.interaction;Nl(i)>0&&(i.prepared.name=null)}},getHoldDuration:Nl},Nr=or,Ll={id:"auto-start",install:function(t){t.usePlugin(lr),t.usePlugin(Nr),t.usePlugin(mr)}},er=function(t){return/^(always|never|auto)$/.test(t)?(this.options.preventDefault=t,this):g.bool(t)?(this.options.preventDefault=t?"always":"never",this):this.options.preventDefault};function Qr(t){var i=t.interaction,f=t.event;i.interactable&&i.interactable.checkAndPreventDefault(f)}var Ir={id:"core/interactablePreventDefault",install:function(t){var i=t.Interactable;i.prototype.preventDefault=er,i.prototype.checkAndPreventDefault=function(f){return function(k,x,I){var U=k.options.preventDefault;if(U!=="never")if(U!=="always"){if(x.events.supportsPassive&&/^touch(start|move)$/.test(I.type)){var Y=w(I.target).document,ve=x.getDocOptions(Y);if(!ve||!ve.events||ve.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(I.type)||g.element(I.target)&&ne(I.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||I.preventDefault()}else I.preventDefault()}(this,t,f)},t.interactions.docEvents.push({type:"dragstart",listener:function(f){for(var k=0,x=t.interactions.list;k<x.length;k++){var I=x[k];if(I.element&&(I.element===f.target||ce(I.element,f.target)))return void I.interactable.checkAndPreventDefault(f)}}})},listeners:["down","move","up","cancel"].reduce(function(t,i){return t["interactions:".concat(i)]=Qr,t},{})};function Ar(t,i){if(i.phaselessTypes[t])return!0;for(var f in i.map)if(t.indexOf(f)===0&&t.substr(f.length)in i.phases)return!0;return!1}function Cr(t){var i={};for(var f in t){var k=t[f];g.plainObject(k)?i[f]=Cr(k):g.array(k)?i[f]=_e(k):i[f]=k}return i}var zr=function(){function t(i){c(this,t),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=i,this.result=Mr(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return p(t,[{key:"start",value:function(i,f){var k,x,I=i.phase,U=this.interaction,Y=function(Oe){var ke=Oe.interactable.options[Oe.prepared.name],Qe=ke.modifiers;return Qe&&Qe.length?Qe:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(La){var tl=ke[La];return tl&&tl.enabled&&{options:tl,methods:tl._methods}}).filter(function(La){return!!La})}(U);this.prepareStates(Y),this.startEdges=le({},U.edges),this.edges=le({},this.startEdges),this.startOffset=(k=U.rect,x=f,k?{left:x.x-k.left,top:x.y-k.top,right:k.right-x.x,bottom:k.bottom-x.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var ve=this.fillArg({phase:I,pageCoords:f,preEnd:!1});return this.result=Mr(),this.startAll(ve),this.result=this.setAll(ve)}},{key:"fillArg",value:function(i){var f=this.interaction;return i.interaction=f,i.interactable=f.interactable,i.element=f.element,i.rect||(i.rect=f.rect),i.edges||(i.edges=this.startEdges),i.startOffset=this.startOffset,i}},{key:"startAll",value:function(i){for(var f=0,k=this.states;f<k.length;f++){var x=k[f];x.methods.start&&(i.state=x,x.methods.start(i))}}},{key:"setAll",value:function(i){var f=i.phase,k=i.preEnd,x=i.skipModifiers,I=i.rect,U=i.edges;i.coords=le({},i.pageCoords),i.rect=le({},I),i.edges=le({},U);for(var Y=x?this.states.slice(x):this.states,ve=Mr(i.coords,i.rect),Oe=0;Oe<Y.length;Oe++){var ke,Qe=Y[Oe],La=Qe.options,tl=le({},i.coords),rl=null;(ke=Qe.methods)!=null&&ke.set&&this.shouldDo(La,k,f)&&(i.state=Qe,rl=Qe.methods.set(i),ze(i.edges,i.rect,{x:i.coords.x-tl.x,y:i.coords.y-tl.y})),ve.eventProps.push(rl)}le(this.edges,i.edges),ve.delta.x=i.coords.x-i.pageCoords.x,ve.delta.y=i.coords.y-i.pageCoords.y,ve.rectDelta.left=i.rect.left-I.left,ve.rectDelta.right=i.rect.right-I.right,ve.rectDelta.top=i.rect.top-I.top,ve.rectDelta.bottom=i.rect.bottom-I.bottom;var cl=this.result.coords,_l=this.result.rect;if(cl&&_l){var ul=ve.rect.left!==_l.left||ve.rect.right!==_l.right||ve.rect.top!==_l.top||ve.rect.bottom!==_l.bottom;ve.changed=ul||cl.x!==ve.coords.x||cl.y!==ve.coords.y}return ve}},{key:"applyToInteraction",value:function(i){var f=this.interaction,k=i.phase,x=f.coords.cur,I=f.coords.start,U=this.result,Y=this.startDelta,ve=U.delta;k==="start"&&le(this.startDelta,U.delta);for(var Oe=0,ke=[[I,Y],[x,ve]];Oe<ke.length;Oe++){var Qe=ke[Oe],La=Qe[0],tl=Qe[1];La.page.x+=tl.x,La.page.y+=tl.y,La.client.x+=tl.x,La.client.y+=tl.y}var rl=this.result.rectDelta,cl=i.rect||f.rect;cl.left+=rl.left,cl.right+=rl.right,cl.top+=rl.top,cl.bottom+=rl.bottom,cl.width=cl.right-cl.left,cl.height=cl.bottom-cl.top}},{key:"setAndApply",value:function(i){var f=this.interaction,k=i.phase,x=i.preEnd,I=i.skipModifiers,U=this.setAll(this.fillArg({preEnd:x,phase:k,pageCoords:i.modifiedCoords||f.coords.cur.page}));if(this.result=U,!U.changed&&(!I||I<this.states.length)&&f.interacting())return!1;if(i.modifiedCoords){var Y=f.coords.cur.page,ve={x:i.modifiedCoords.x-Y.x,y:i.modifiedCoords.y-Y.y};U.coords.x+=ve.x,U.coords.y+=ve.y,U.delta.x+=ve.x,U.delta.y+=ve.y}this.applyToInteraction(i)}},{key:"beforeEnd",value:function(i){var f=i.interaction,k=i.event,x=this.states;if(x&&x.length){for(var I=!1,U=0;U<x.length;U++){var Y=x[U];i.state=Y;var ve=Y.options,Oe=Y.methods,ke=Oe.beforeEnd&&Oe.beforeEnd(i);if(ke)return this.endResult=ke,!1;I=I||!I&&this.shouldDo(ve,!0,i.phase,!0)}I&&f.move({event:k,preEnd:!0})}}},{key:"stop",value:function(i){var f=i.interaction;if(this.states&&this.states.length){var k=le({states:this.states,interactable:f.interactable,element:f.element,rect:null},i);this.fillArg(k);for(var x=0,I=this.states;x<I.length;x++){var U=I[x];k.state=U,U.methods.stop&&U.methods.stop(k)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(i){this.states=[];for(var f=0;f<i.length;f++){var k=i[f],x=k.options,I=k.methods,U=k.name;this.states.push({options:x,methods:I,index:f,name:U})}return this.states}},{key:"restoreInteractionCoords",value:function(i){var f=i.interaction,k=f.coords,x=f.rect,I=f.modification;if(I.result){for(var U=I.startDelta,Y=I.result,ve=Y.delta,Oe=Y.rectDelta,ke=0,Qe=[[k.start,U],[k.cur,ve]];ke<Qe.length;ke++){var La=Qe[ke],tl=La[0],rl=La[1];tl.page.x-=rl.x,tl.page.y-=rl.y,tl.client.x-=rl.x,tl.client.y-=rl.y}x.left-=Oe.left,x.right-=Oe.right,x.top-=Oe.top,x.bottom-=Oe.bottom}}},{key:"shouldDo",value:function(i,f,k,x){return!(!i||i.enabled===!1||x&&!i.endOnly||i.endOnly&&!f||k==="start"&&!i.setStart)}},{key:"copyFrom",value:function(i){this.startOffset=i.startOffset,this.startDelta=i.startDelta,this.startEdges=i.startEdges,this.edges=i.edges,this.states=i.states.map(function(f){return Cr(f)}),this.result=Mr(le({},i.result.coords),le({},i.result.rect))}},{key:"destroy",value:function(){for(var i in this)this[i]=null}}]),t}();function Mr(t,i){return{rect:i,coords:t,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function Dr(t,i){var f=t.defaults,k={start:t.start,set:t.set,beforeEnd:t.beforeEnd,stop:t.stop},x=function(I){var U=I||{};for(var Y in U.enabled=U.enabled!==!1,f)Y in U||(U[Y]=f[Y]);var ve={options:U,methods:k,name:i,enable:function(){return U.enabled=!0,ve},disable:function(){return U.enabled=!1,ve}};return ve};return i&&typeof i=="string"&&(x._defaults=f,x._methods=k),x}function Vr(t){var i=t.iEvent,f=t.interaction.modification.result;f&&(i.modifiers=f.eventProps)}var Or={id:"modifiers/base",before:["actions"],install:function(t){t.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(t){var i=t.interaction;i.modification=new zr(i)},"interactions:before-action-start":function(t){var i=t.interaction,f=t.interaction.modification;f.start(t,i.coords.start.page),i.edges=f.edges,f.applyToInteraction(t)},"interactions:before-action-move":function(t){var i=t.interaction,f=i.modification,k=f.setAndApply(t);return i.edges=f.edges,k},"interactions:before-action-end":function(t){var i=t.interaction,f=i.modification,k=f.beforeEnd(t);return i.edges=f.startEdges,k},"interactions:action-start":Vr,"interactions:action-move":Vr,"interactions:action-end":Vr,"interactions:after-action-start":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:after-action-move":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:stop":function(t){return t.interaction.modification.stop(t)}}},ir=Or,gn={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Gr=function(t){y(f,t);var i=$(f);function f(k,x,I,U,Y,ve,Oe){var ke;c(this,f),(ke=i.call(this,k)).relatedTarget=null,ke.screenX=void 0,ke.screenY=void 0,ke.button=void 0,ke.buttons=void 0,ke.ctrlKey=void 0,ke.shiftKey=void 0,ke.altKey=void 0,ke.metaKey=void 0,ke.page=void 0,ke.client=void 0,ke.delta=void 0,ke.rect=void 0,ke.x0=void 0,ke.y0=void 0,ke.t0=void 0,ke.dt=void 0,ke.duration=void 0,ke.clientX0=void 0,ke.clientY0=void 0,ke.velocity=void 0,ke.speed=void 0,ke.swipe=void 0,ke.axes=void 0,ke.preEnd=void 0,Y=Y||k.element;var Qe=k.interactable,La=(Qe&&Qe.options||gn).deltaSource,tl=Re(Qe,Y,I),rl=U==="start",cl=U==="end",_l=rl?N(ke):k.prevEvent,ul=rl?k.coords.start:cl?{page:_l.page,client:_l.client,timeStamp:k.coords.cur.timeStamp}:k.coords.cur;return ke.page=le({},ul.page),ke.client=le({},ul.client),ke.rect=le({},k.rect),ke.timeStamp=ul.timeStamp,cl||(ke.page.x-=tl.x,ke.page.y-=tl.y,ke.client.x-=tl.x,ke.client.y-=tl.y),ke.ctrlKey=x.ctrlKey,ke.altKey=x.altKey,ke.shiftKey=x.shiftKey,ke.metaKey=x.metaKey,ke.button=x.button,ke.buttons=x.buttons,ke.target=Y,ke.currentTarget=Y,ke.preEnd=ve,ke.type=Oe||I+(U||""),ke.interactable=Qe,ke.t0=rl?k.pointers[k.pointers.length-1].downTime:_l.t0,ke.x0=k.coords.start.page.x-tl.x,ke.y0=k.coords.start.page.y-tl.y,ke.clientX0=k.coords.start.client.x-tl.x,ke.clientY0=k.coords.start.client.y-tl.y,ke.delta=rl||cl?{x:0,y:0}:{x:ke[La].x-_l[La].x,y:ke[La].y-_l[La].y},ke.dt=k.coords.delta.timeStamp,ke.duration=ke.timeStamp-ke.t0,ke.velocity=le({},k.coords.velocity[La]),ke.speed=qa(ke.velocity.x,ke.velocity.y),ke.swipe=cl||U==="inertiastart"?ke.getSwipe():null,ke}return p(f,[{key:"getSwipe",value:function(){var k=this._interaction;if(k.prevEvent.speed<600||this.timeStamp-k.prevEvent.timeStamp>150)return null;var x=180*Math.atan2(k.prevEvent.velocityY,k.prevEvent.velocityX)/Math.PI;x<0&&(x+=360);var I=112.5<=x&&x<247.5,U=202.5<=x&&x<337.5;return{up:U,down:!U&&22.5<=x&&x<157.5,left:I,right:!I&&(292.5<=x||x<67.5),angle:x,speed:k.prevEvent.speed,velocity:{x:k.prevEvent.velocityX,y:k.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),f}(Xe);Object.defineProperties(Gr.prototype,{pageX:{get:function(){return this.page.x},set:function(t){this.page.x=t}},pageY:{get:function(){return this.page.y},set:function(t){this.page.y=t}},clientX:{get:function(){return this.client.x},set:function(t){this.client.x=t}},clientY:{get:function(){return this.client.y},set:function(t){this.client.y=t}},dx:{get:function(){return this.delta.x},set:function(t){this.delta.x=t}},dy:{get:function(){return this.delta.y},set:function(t){this.delta.y=t}},velocityX:{get:function(){return this.velocity.x},set:function(t){this.velocity.x=t}},velocityY:{get:function(){return this.velocity.y},set:function(t){this.velocity.y=t}}});var rn=p(function t(i,f,k,x,I){c(this,t),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=i,this.pointer=f,this.event=k,this.downTime=x,this.downTarget=I}),Nn=function(t){return t.interactable="",t.element="",t.prepared="",t.pointerIsDown="",t.pointerWasMoved="",t._proxy="",t}({}),bn=function(t){return t.start="",t.move="",t.end="",t.stop="",t.interacting="",t}({}),vn=0,fr=function(){function t(i){var f=this,k=i.pointerType,x=i.scopeFire;c(this,t),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=aa(function(ke){this.move(ke)},"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=vn++,this._scopeFire=x,this.pointerType=k;var I=this;this._proxy={};var U=function(ke){Object.defineProperty(f._proxy,ke,{get:function(){return I[ke]}})};for(var Y in Nn)U(Y);var ve=function(ke){Object.defineProperty(f._proxy,ke,{value:function(){return I[ke].apply(I,arguments)}})};for(var Oe in bn)ve(Oe);this._scopeFire("interactions:new",{interaction:this})}return p(t,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(i,f,k){var x=this.updatePointer(i,f,k,!0),I=this.pointers[x];this._scopeFire("interactions:down",{pointer:i,event:f,eventTarget:k,pointerIndex:x,pointerInfo:I,type:"down",interaction:this})}},{key:"start",value:function(i,f,k){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(i.name==="gesture"?2:1)||!f.options[i.name].enabled)&&(Ge(this.prepared,i),this.interactable=f,this.element=k,this.rect=f.getRect(k),this.edges=this.prepared.edges?le({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(i,f,k){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(i,f,k,!1);var x,I,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&&(x=this.coords.cur.client.x-this.coords.start.client.x,I=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=qa(x,I)>this.pointerMoveTolerance);var Y,ve,Oe,ke=this.getPointerIndex(i),Qe={pointer:i,pointerIndex:ke,pointerInfo:this.pointers[ke],event:f,type:"move",eventTarget:k,dx:x,dy:I,duplicate:U,interaction:this};U||(Y=this.coords.velocity,ve=this.coords.delta,Oe=Math.max(ve.timeStamp/1e3,.001),Y.page.x=ve.page.x/Oe,Y.page.y=ve.page.y/Oe,Y.client.x=ve.client.x/Oe,Y.client.y=ve.client.y/Oe,Y.timeStamp=Oe),this._scopeFire("interactions:move",Qe),U||this.simulation||(this.interacting()&&(Qe.type=null,this.move(Qe)),this.pointerWasMoved&&X(this.coords.prev,this.coords.cur))}},{key:"move",value:function(i){i&&i.event||ie(this.coords.delta),(i=le({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},i||{})).phase="move",this._doPhase(i)}},{key:"pointerUp",value:function(i,f,k,x){var I=this.getPointerIndex(i);I===-1&&(I=this.updatePointer(i,f,k,!1));var U=/cancel$/i.test(f.type)?"cancel":"up";this._scopeFire("interactions:".concat(U),{pointer:i,pointerIndex:I,pointerInfo:this.pointers[I],event:f,eventTarget:k,type:U,curEventTarget:x,interaction:this}),this.simulation||this.end(f),this.removePointer(i,f)}},{key:"documentBlur",value:function(i){this.end(i),this._scopeFire("interactions:blur",{event:i,type:"blur",interaction:this})}},{key:"end",value:function(i){var f;this._ending=!0,i=i||this._latestPointer.event,this.interacting()&&(f=this._doPhase({event:i,interaction:this,phase:"end"})),this._ending=!1,f===!0&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(i){var f=Le(i);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:de(this.pointers,function(k){return k.id===f})}},{key:"getPointerInfo",value:function(i){return this.pointers[this.getPointerIndex(i)]}},{key:"updatePointer",value:function(i,f,k,x){var I,U,Y,ve=Le(i),Oe=this.getPointerIndex(i),ke=this.pointers[Oe];return x=x!==!1&&(x||/(down|start)$/i.test(f.type)),ke?ke.pointer=i:(ke=new rn(ve,i,f,null,null),Oe=this.pointers.length,this.pointers.push(ke)),Ee(this.coords.cur,this.pointers.map(function(Qe){return Qe.pointer}),this._now()),I=this.coords.delta,U=this.coords.prev,Y=this.coords.cur,I.page.x=Y.page.x-U.page.x,I.page.y=Y.page.y-U.page.y,I.client.x=Y.client.x-U.client.x,I.client.y=Y.client.y-U.client.y,I.timeStamp=Y.timeStamp-U.timeStamp,x&&(this.pointerIsDown=!0,ke.downTime=this.coords.cur.timeStamp,ke.downTarget=k,P(this.downPointer,i),this.interacting()||(X(this.coords.start,this.coords.cur),X(this.coords.prev,this.coords.cur),this.downEvent=f,this.pointerWasMoved=!1)),this._updateLatestPointer(i,f,k),this._scopeFire("interactions:update-pointer",{pointer:i,event:f,eventTarget:k,down:x,pointerInfo:ke,pointerIndex:Oe,interaction:this}),Oe}},{key:"removePointer",value:function(i,f){var k=this.getPointerIndex(i);if(k!==-1){var x=this.pointers[k];this._scopeFire("interactions:remove-pointer",{pointer:i,event:f,eventTarget:null,pointerIndex:k,pointerInfo:x,interaction:this}),this.pointers.splice(k,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(i,f,k){this._latestPointer.pointer=i,this._latestPointer.event=f,this._latestPointer.eventTarget=k}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(i,f,k,x){return new Gr(this,i,this.prepared.name,f,this.element,k,x)}},{key:"_fireEvent",value:function(i){var f;(f=this.interactable)==null||f.fire(i),(!this.prevEvent||i.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=i)}},{key:"_doPhase",value:function(i){var f=i.event,k=i.phase,x=i.preEnd,I=i.type,U=this.rect;if(U&&k==="move"&&(ze(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(k),i)===!1)return!1;var Y=i.iEvent=this._createPreparedEvent(f,k,x,I);return this._scopeFire("interactions:action-".concat(k),i),k==="start"&&(this.prevEvent=Y),this._fireEvent(Y),this._scopeFire("interactions:after-action-".concat(k),i),!0}},{key:"_now",value:function(){return Date.now()}}]),t}();function Hl(t){cr(t.interaction)}function cr(t){if(!function(f){return!(!f.offset.pending.x&&!f.offset.pending.y)}(t))return!1;var i=t.offset.pending;return ql(t.coords.cur,i),ql(t.coords.delta,i),ze(t.edges,t.rect,i),i.x=0,i.y=0,!0}function Rl(t){var i=t.x,f=t.y;this.offset.pending.x+=i,this.offset.pending.y+=f,this.offset.total.x+=i,this.offset.total.y+=f}function ql(t,i){var f=t.page,k=t.client,x=i.x,I=i.y;f.x+=x,f.y+=I,k.x+=x,k.y+=I}bn.offsetBy="";var Il={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(t){t.Interaction.prototype.offsetBy=Rl},listeners:{"interactions:new":function(t){t.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(t){return function(i){i.pointerIsDown&&(ql(i.coords.cur,i.offset.total),i.offset.pending.x=0,i.offset.pending.y=0)}(t.interaction)},"interactions:before-action-start":Hl,"interactions:before-action-move":Hl,"interactions:before-action-end":function(t){var i=t.interaction;if(cr(i))return i.move({offset:!0}),i.end(),!1},"interactions:stop":function(t){var i=t.interaction;i.offset.total.x=0,i.offset.total.y=0,i.offset.pending.x=0,i.offset.pending.y=0}}},hr=Il,rr=function(){function t(i){c(this,t),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=i}return p(t,[{key:"start",value:function(i){var f=this.interaction,k=jl(f);if(!k||!k.enabled)return!1;var x=f.coords.velocity.client,I=qa(x.x,x.y),U=this.modification||(this.modification=new zr(f));if(U.copyFrom(f.modification),this.t0=f._now(),this.allowResume=k.allowResume,this.v0=I,this.currentOffset={x:0,y:0},this.startCoords=f.coords.cur.page,this.modifierArg=U.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-f.coords.cur.timeStamp<50&&I>k.minSpeed&&I>k.endSpeed)this.startInertia();else{if(U.result=U.setAll(this.modifierArg),!U.result.changed)return!1;this.startSmoothEnd()}return f.modification.result.rect=null,f.offsetBy(this.targetOffset),f._doPhase({interaction:f,event:i,phase:"inertiastart"}),f.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),f.modification.result.rect=null,this.active=!0,f.simulation=this,!0}},{key:"startInertia",value:function(){var i=this,f=this.interaction.coords.velocity.client,k=jl(this.interaction),x=k.resistance,I=-Math.log(k.endSpeed/this.v0)/x;this.targetOffset={x:(f.x-I)/x,y:(f.y-I)/x},this.te=I,this.lambda_v0=x/this.v0,this.one_ve_v0=1-k.endSpeed/this.v0;var U=this.modification,Y=this.modifierArg;Y.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},U.result=U.setAll(Y),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 i.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var i=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame(function(){return i.smoothEndTick()})}},{key:"onNextFrame",value:function(i){var f=this;this.timeout=Ce.request(function(){f.active&&i()})}},{key:"inertiaTick",value:function(){var i,f,k,x,I,U,Y,ve=this,Oe=this.interaction,ke=jl(Oe).resistance,Qe=(Oe._now()-this.t0)/1e3;if(Qe<this.te){var La,tl=1-(Math.exp(-ke*Qe)-this.lambda_v0)/this.one_ve_v0;this.isModified?(i=0,f=0,k=this.targetOffset.x,x=this.targetOffset.y,I=this.modifiedOffset.x,U=this.modifiedOffset.y,La={x:Pr(Y=tl,i,k,I),y:Pr(Y,f,x,U)}):La={x:this.targetOffset.x*tl,y:this.targetOffset.y*tl};var rl={x:La.x-this.currentOffset.x,y:La.y-this.currentOffset.y};this.currentOffset.x+=rl.x,this.currentOffset.y+=rl.y,Oe.offsetBy(rl),Oe.move(),this.onNextFrame(function(){return ve.inertiaTick()})}else Oe.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var i=this,f=this.interaction,k=f._now()-this.t0,x=jl(f).smoothEndDuration;if(k<x){var I={x:kn(k,0,this.targetOffset.x,x),y:kn(k,0,this.targetOffset.y,x)},U={x:I.x-this.currentOffset.x,y:I.y-this.currentOffset.y};this.currentOffset.x+=U.x,this.currentOffset.y+=U.y,f.offsetBy(U),f.move({skipModifiers:this.modifierCount}),this.onNextFrame(function(){return i.smoothEndTick()})}else f.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(i){var f=i.pointer,k=i.event,x=i.eventTarget,I=this.interaction;I.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),I.updatePointer(f,k,x,!0),I._doPhase({interaction:I,event:k,phase:"resume"}),X(I.coords.prev,I.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,Ce.cancel(this.timeout)}}]),t}();function jl(t){var i=t.interactable,f=t.prepared;return i&&i.options&&f.name&&i.options[f.name].inertia}var Rr={id:"inertia",before:["modifiers","actions"],install:function(t){var i=t.defaults;t.usePlugin(hr),t.usePlugin(ir),t.actions.phases.inertiastart=!0,t.actions.phases.resume=!0,i.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(t){var i=t.interaction;i.inertia=new rr(i)},"interactions:before-action-end":function(t){var i=t.interaction,f=t.event;return(!i._interacting||i.simulation||!i.inertia.start(f))&&null},"interactions:down":function(t){var i=t.interaction,f=t.eventTarget,k=i.inertia;if(k.active)for(var x=f;g.element(x);){if(x===i.element){k.resume(t);break}x=Ca(x)}},"interactions:stop":function(t){var i=t.interaction.inertia;i.active&&i.stop()},"interactions:before-action-resume":function(t){var i=t.interaction.modification;i.stop(t),i.start(t,t.interaction.coords.cur.page),i.applyToInteraction(t)},"interactions:before-action-inertiastart":function(t){return t.interaction.modification.setAndApply(t)},"interactions:action-resume":Vr,"interactions:action-inertiastart":Vr,"interactions:after-action-inertiastart":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:after-action-resume":function(t){return t.interaction.modification.restoreInteractionCoords(t)}}};function Pr(t,i,f,k){var x=1-t;return x*x*i+2*x*t*f+t*t*k}function kn(t,i,f,k){return-f*(t/=k)*(t-2)+i}var nn=Rr;function Xn(t,i){for(var f=0;f<i.length;f++){var k=i[f];if(t.immediatePropagationStopped)break;k(t)}}var Tn=function(){function t(i){c(this,t),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=le({},i||{})}return p(t,[{key:"fire",value:function(i){var f,k=this.global;(f=this.types[i.type])&&Xn(i,f),!i.propagationStopped&&k&&(f=k[i.type])&&Xn(i,f)}},{key:"on",value:function(i,f){var k=Ze(i,f);for(i in k)this.types[i]=oe(this.types[i]||[],k[i])}},{key:"off",value:function(i,f){var k=Ze(i,f);for(i in k){var x=this.types[i];if(x&&x.length)for(var I=0,U=k[i];I<U.length;I++){var Y=U[I],ve=x.indexOf(Y);ve!==-1&&x.splice(ve,1)}}}},{key:"getRect",value:function(i){return null}}]),t}(),Zn=function(){function t(i){c(this,t),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=i,P(this,i)}return p(t,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),t}();function xn(t){return g.object(t)?{capture:!!t.capture,passive:!!t.passive}:{capture:!!t,passive:!1}}function An(t,i){return t===i||(typeof t=="boolean"?!!i.capture===t&&!i.passive:!!t.capture==!!i.capture&&!!t.passive==!!i.passive)}var Pn={id:"events",install:function(t){var i,f=[],k={},x=[],I={add:U,remove:Y,addDelegate:function(ke,Qe,La,tl,rl){var cl=xn(rl);if(!k[La]){k[La]=[];for(var _l=0;_l<x.length;_l++){var ul=x[_l];U(ul,La,ve),U(ul,La,Oe,!0)}}var Tl=k[La],Ol=We(Tl,function(Yl){return Yl.selector===ke&&Yl.context===Qe});Ol||(Ol={selector:ke,context:Qe,listeners:[]},Tl.push(Ol)),Ol.listeners.push({func:tl,options:cl})},removeDelegate:function(ke,Qe,La,tl,rl){var cl,_l=xn(rl),ul=k[La],Tl=!1;if(ul)for(cl=ul.length-1;cl>=0;cl--){var Ol=ul[cl];if(Ol.selector===ke&&Ol.context===Qe){for(var Yl=Ol.listeners,Bl=Yl.length-1;Bl>=0;Bl--){var Ul=Yl[Bl];if(Ul.func===tl&&An(Ul.options,_l)){Yl.splice(Bl,1),Yl.length||(ul.splice(cl,1),Y(Qe,La,ve),Y(Qe,La,Oe,!0)),Tl=!0;break}}if(Tl)break}}},delegateListener:ve,delegateUseCapture:Oe,delegatedEvents:k,documents:x,targets:f,supportsOptions:!1,supportsPassive:!1};function U(ke,Qe,La,tl){if(ke.addEventListener){var rl=xn(tl),cl=We(f,function(_l){return _l.eventTarget===ke});cl||(cl={eventTarget:ke,events:{}},f.push(cl)),cl.events[Qe]||(cl.events[Qe]=[]),We(cl.events[Qe],function(_l){return _l.func===La&&An(_l.options,rl)})||(ke.addEventListener(Qe,La,I.supportsOptions?rl:rl.capture),cl.events[Qe].push({func:La,options:rl}))}}function Y(ke,Qe,La,tl){if(ke.addEventListener&&ke.removeEventListener){var rl=de(f,function(jr){return jr.eventTarget===ke}),cl=f[rl];if(cl&&cl.events)if(Qe!=="all"){var _l=!1,ul=cl.events[Qe];if(ul){if(La==="all"){for(var Tl=ul.length-1;Tl>=0;Tl--){var Ol=ul[Tl];Y(ke,Qe,Ol.func,Ol.options)}return}for(var Yl=xn(tl),Bl=0;Bl<ul.length;Bl++){var Ul=ul[Bl];if(Ul.func===La&&An(Ul.options,Yl)){ke.removeEventListener(Qe,La,I.supportsOptions?Yl:Yl.capture),ul.splice(Bl,1),ul.length===0&&(delete cl.events[Qe],_l=!0);break}}}_l&&!Object.keys(cl.events).length&&f.splice(rl,1)}else for(Qe in cl.events)cl.events.hasOwnProperty(Qe)&&Y(ke,Qe,"all")}}function ve(ke,Qe){for(var La=xn(Qe),tl=new Zn(ke),rl=k[ke.type],cl=Ae(ke)[0],_l=cl;g.element(_l);){for(var ul=0;ul<rl.length;ul++){var Tl=rl[ul],Ol=Tl.selector,Yl=Tl.context;if(ne(_l,Ol)&&ce(Yl,cl)&&ce(Yl,_l)){var Bl=Tl.listeners;tl.currentTarget=_l;for(var Ul=0;Ul<Bl.length;Ul++){var jr=Bl[Ul];An(jr.options,La)&&jr.func(tl)}}}_l=Ca(_l)}}function Oe(ke){return ve(ke,!0)}return(i=t.document)==null||i.createElement("div").addEventListener("test",null,{get capture(){return I.supportsOptions=!0},get passive(){return I.supportsPassive=!0}}),t.events=I,I}},en={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(t){for(var i=0,f=en.methodOrder;i<f.length;i++){var k=f[i],x=en[k](t);if(x)return x}return null},simulationResume:function(t){var i=t.pointerType,f=t.eventType,k=t.eventTarget,x=t.scope;if(!/down|start/i.test(f))return null;for(var I=0,U=x.interactions.list;I<U.length;I++){var Y=U[I],ve=k;if(Y.simulation&&Y.simulation.allowResume&&Y.pointerType===i)for(;ve;){if(ve===Y.element)return Y;ve=Ca(ve)}}return null},mouseOrPen:function(t){var i,f=t.pointerId,k=t.pointerType,x=t.eventType,I=t.scope;if(k!=="mouse"&&k!=="pen")return null;for(var U=0,Y=I.interactions.list;U<Y.length;U++){var ve=Y[U];if(ve.pointerType===k){if(ve.simulation&&!zn(ve,f))continue;if(ve.interacting())return ve;i||(i=ve)}}if(i)return i;for(var Oe=0,ke=I.interactions.list;Oe<ke.length;Oe++){var Qe=ke[Oe];if(!(Qe.pointerType!==k||/down/i.test(x)&&Qe.simulation))return Qe}return null},hasPointer:function(t){for(var i=t.pointerId,f=0,k=t.scope.interactions.list;f<k.length;f++){var x=k[f];if(zn(x,i))return x}return null},idle:function(t){for(var i=t.pointerType,f=0,k=t.scope.interactions.list;f<k.length;f++){var x=k[f];if(x.pointers.length===1){var I=x.interactable;if(I&&(!I.options.gesture||!I.options.gesture.enabled))continue}else if(x.pointers.length>=2)continue;if(!x.interacting()&&i===x.pointerType)return x}return null}};function zn(t,i){return t.pointers.some(function(f){return f.id===i})}var wn=en,Kr=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function Fn(t,i){return function(f){var k=i.interactions.list,x=Je(f),I=Ae(f),U=I[0],Y=I[1],ve=[];if(/^touch/.test(f.type)){i.prevTouchTime=i.now();for(var Oe=0,ke=f.changedTouches;Oe<ke.length;Oe++){var Qe=ke[Oe],La={pointer:Qe,pointerId:Le(Qe),pointerType:x,eventType:f.type,eventTarget:U,curEventTarget:Y,scope:i},tl=mn(La);ve.push([La.pointer,La.eventTarget,La.curEventTarget,tl])}}else{var rl=!1;if(!J.supportsPointerEvent&&/mouse/.test(f.type)){for(var cl=0;cl<k.length&&!rl;cl++)rl=k[cl].pointerType!=="mouse"&&k[cl].pointerIsDown;rl=rl||i.now()-i.prevTouchTime<500||f.timeStamp===0}if(!rl){var _l={pointer:f,pointerId:Le(f),pointerType:x,eventType:f.type,curEventTarget:Y,eventTarget:U,scope:i},ul=mn(_l);ve.push([_l.pointer,_l.eventTarget,_l.curEventTarget,ul])}}for(var Tl=0;Tl<ve.length;Tl++){var Ol=ve[Tl],Yl=Ol[0],Bl=Ol[1],Ul=Ol[2];Ol[3][t](Yl,f,Bl,Ul)}}}function mn(t){var i=t.pointerType,f=t.scope,k={interaction:wn.search(t),searchDetails:t};return f.fire("interactions:find",k),k.interaction||f.interactions.new({pointerType:i})}function To(t,i){var f=t.doc,k=t.scope,x=t.options,I=k.interactions.docEvents,U=k.events,Y=U[i];for(var ve in k.browser.isIOS&&!x.events&&(x.events={passive:!1}),U.delegatedEvents)Y(f,ve,U.delegateListener),Y(f,ve,U.delegateUseCapture,!0);for(var Oe=x&&x.events,ke=0;ke<I.length;ke++){var Qe=I[ke];Y(f,Qe.type,Qe.listener,Oe)}}var Ii={id:"core/interactions",install:function(t){for(var i={},f=0;f<Kr.length;f++){var k=Kr[f];i[k]=Fn(k,t)}var x,I=J.pEventTypes;function U(){for(var Y=0,ve=t.interactions.list;Y<ve.length;Y++){var Oe=ve[Y];if(Oe.pointerIsDown&&Oe.pointerType==="touch"&&!Oe._interacting)for(var ke=function(){var tl=La[Qe];t.documents.some(function(rl){return ce(rl.doc,tl.downTarget)})||Oe.removePointer(tl.pointer,tl.event)},Qe=0,La=Oe.pointers;Qe<La.length;Qe++)ke()}}(x=Q.PointerEvent?[{type:I.down,listener:U},{type:I.down,listener:i.pointerDown},{type:I.move,listener:i.pointerMove},{type:I.up,listener:i.pointerUp},{type:I.cancel,listener:i.pointerUp}]:[{type:"mousedown",listener:i.pointerDown},{type:"mousemove",listener:i.pointerMove},{type:"mouseup",listener:i.pointerUp},{type:"touchstart",listener:U},{type:"touchstart",listener:i.pointerDown},{type:"touchmove",listener:i.pointerMove},{type:"touchend",listener:i.pointerUp},{type:"touchcancel",listener:i.pointerUp}]).push({type:"blur",listener:function(Y){for(var ve=0,Oe=t.interactions.list;ve<Oe.length;ve++)Oe[ve].documentBlur(Y)}}),t.prevTouchTime=0,t.Interaction=function(Y){y(Oe,Y);var ve=$(Oe);function Oe(){return c(this,Oe),ve.apply(this,arguments)}return p(Oe,[{key:"pointerMoveTolerance",get:function(){return t.interactions.pointerMoveTolerance},set:function(ke){t.interactions.pointerMoveTolerance=ke}},{key:"_now",value:function(){return t.now()}}]),Oe}(fr),t.interactions={list:[],new:function(Y){Y.scopeFire=function(Oe,ke){return t.fire(Oe,ke)};var ve=new t.Interaction(Y);return t.interactions.list.push(ve),ve},listeners:i,docEvents:x,pointerMoveTolerance:1},t.usePlugin(Ir)},listeners:{"scope:add-document":function(t){return To(t,"add")},"scope:remove-document":function(t){return To(t,"remove")},"interactable:unset":function(t,i){for(var f=t.interactable,k=i.interactions.list.length-1;k>=0;k--){var x=i.interactions.list[k];x.interactable===f&&(x.stop(),i.fire("interactions:destroy",{interaction:x}),x.destroy(),i.interactions.list.length>2&&i.interactions.list.splice(k,1))}}},onDocSignal:To,doOnInteractions:Fn,methodNames:Kr},Oi=Ii,_n=function(t){return t[t.On=0]="On",t[t.Off=1]="Off",t}(_n||{}),Li=function(){function t(i,f,k,x){c(this,t),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new Tn,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=f.actions,this.target=i,this._context=f.context||k,this._win=w(Ga(i)?this._context:i),this._doc=this._win.document,this._scopeEvents=x,this.set(f)}return p(t,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(i,f){return g.func(f.onstart)&&this.on("".concat(i,"start"),f.onstart),g.func(f.onmove)&&this.on("".concat(i,"move"),f.onmove),g.func(f.onend)&&this.on("".concat(i,"end"),f.onend),g.func(f.oninertiastart)&&this.on("".concat(i,"inertiastart"),f.oninertiastart),this}},{key:"updatePerActionListeners",value:function(i,f,k){var x,I=this,U=(x=this._actions.map[i])==null?void 0:x.filterEventType,Y=function(ve){return(U==null||U(ve))&&Ar(ve,I._actions)};(g.array(f)||g.object(f))&&this._onOff(_n.Off,i,f,void 0,Y),(g.array(k)||g.object(k))&&this._onOff(_n.On,i,k,void 0,Y)}},{key:"setPerAction",value:function(i,f){var k=this._defaults;for(var x in f){var I=x,U=this.options[i],Y=f[I];I==="listeners"&&this.updatePerActionListeners(i,U.listeners,Y),g.array(Y)?U[I]=_e(Y):g.plainObject(Y)?(U[I]=le(U[I]||{},Cr(Y)),g.object(k.perAction[I])&&"enabled"in k.perAction[I]&&(U[I].enabled=Y.enabled!==!1)):g.bool(Y)&&g.object(k.perAction[I])?U[I].enabled=Y:U[I]=Y}}},{key:"getRect",value:function(i){return i=i||(g.element(this.target)?this.target:null),g.string(this.target)&&(i=i||this._context.querySelector(this.target)),pa(i)}},{key:"rectChecker",value:function(i){var f=this;return g.func(i)?(this.getRect=function(k){var x=le({},i.apply(f,k));return"width"in x||(x.width=x.right-x.left,x.height=x.bottom-x.top),x},this):i===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(i,f){if(Ga(f)||g.object(f)){for(var k in this.options[i]=f,this._actions.map)this.options[k][i]=f;return this}return this.options[i]}},{key:"origin",value:function(i){return this._backCompatOption("origin",i)}},{key:"deltaSource",value:function(i){return i==="page"||i==="client"?(this.options.deltaSource=i,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var i=this.target;return g.string(i)?Array.from(this._context.querySelectorAll(i)):g.func(i)&&i.getAllElements?i.getAllElements():g.element(i)?[i]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(i){return this._context===i.ownerDocument||ce(this._context,i)}},{key:"testIgnoreAllow",value:function(i,f,k){return!this.testIgnore(i.ignoreFrom,f,k)&&this.testAllow(i.allowFrom,f,k)}},{key:"testAllow",value:function(i,f,k){return!i||!!g.element(k)&&(g.string(i)?be(k,i,f):!!g.element(i)&&ce(i,k))}},{key:"testIgnore",value:function(i,f,k){return!(!i||!g.element(k))&&(g.string(i)?be(k,i,f):!!g.element(i)&&ce(i,k))}},{key:"fire",value:function(i){return this.events.fire(i),this}},{key:"_onOff",value:function(i,f,k,x,I){g.object(f)&&!g.array(f)&&(x=k,k=null);var U=Ze(f,k,I);for(var Y in U){Y==="wheel"&&(Y=J.wheelEvent);for(var ve=0,Oe=U[Y];ve<Oe.length;ve++){var ke=Oe[ve];Ar(Y,this._actions)?this.events[i===_n.On?"on":"off"](Y,ke):g.string(this.target)?this._scopeEvents[i===_n.On?"addDelegate":"removeDelegate"](this.target,this._context,Y,ke,x):this._scopeEvents[i===_n.On?"add":"remove"](this.target,Y,ke,x)}}return this}},{key:"on",value:function(i,f,k){return this._onOff(_n.On,i,f,k)}},{key:"off",value:function(i,f,k){return this._onOff(_n.Off,i,f,k)}},{key:"set",value:function(i){var f=this._defaults;for(var k in g.object(i)||(i={}),this.options=Cr(f.base),this._actions.methodDict){var x=k,I=this._actions.methodDict[x];this.options[x]={},this.setPerAction(x,le(le({},f.perAction),f.actions[x])),this[I](i[x])}for(var U in i)U!=="getRect"?g.func(this[U])&&this[U](i[U]):this.rectChecker(i.getRect);return this}},{key:"unset",value:function(){if(g.string(this.target))for(var i in this._scopeEvents.delegatedEvents)for(var f=this._scopeEvents.delegatedEvents[i],k=f.length-1;k>=0;k--){var x=f[k],I=x.selector,U=x.context,Y=x.listeners;I===this.target&&U===this._context&&f.splice(k,1);for(var ve=Y.length-1;ve>=0;ve--)this._scopeEvents.removeDelegate(this.target,this._context,i,Y[ve][0],Y[ve][1])}else this._scopeEvents.remove(this.target,"all")}}]),t}(),$i=function(){function t(i){var f=this;c(this,t),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=i,i.addListeners({"interactable:unset":function(k){var x=k.interactable,I=x.target,U=g.string(I)?f.selectorMap[I]:I[f.scope.id],Y=de(U,function(ve){return ve===x});U.splice(Y,1)}})}return p(t,[{key:"new",value:function(i,f){f=le(f||{},{actions:this.scope.actions});var k=new this.scope.Interactable(i,f,this.scope.document,this.scope.events);return this.scope.addDocument(k._doc),this.list.push(k),g.string(i)?(this.selectorMap[i]||(this.selectorMap[i]=[]),this.selectorMap[i].push(k)):(k.target[this.scope.id]||Object.defineProperty(i,this.scope.id,{value:[],configurable:!0}),i[this.scope.id].push(k)),this.scope.fire("interactable:new",{target:i,options:f,interactable:k,win:this.scope._win}),k}},{key:"getExisting",value:function(i,f){var k=f&&f.context||this.scope.document,x=g.string(i),I=x?this.selectorMap[i]:i[this.scope.id];if(I)return We(I,function(U){return U._context===k&&(x||U.inContext(i))})}},{key:"forEachMatch",value:function(i,f){for(var k=0,x=this.list;k<x.length;k++){var I=x[k],U=void 0;if((g.string(I.target)?g.element(i)&&ne(i,I.target):i===I.target)&&I.inContext(i)&&(U=f(I)),U!==void 0)return U}}}]),t}(),Wo=function(){function t(){var i=this;c(this,t),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=J,this.defaults=Cr(gn),this.Eventable=Tn,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(k){var x=function I(U,Y){var ve=k.interactables.getExisting(U,Y);return ve||((ve=k.interactables.new(U,Y)).events.global=I.globalEvents),ve};return x.getPointerAverage=va,x.getTouchBBox=Va,x.getTouchDistance=Pa,x.getTouchAngle=me,x.getElementRect=pa,x.getElementClientRect=De,x.matchesSelector=ne,x.closest=He,x.globalEvents={},x.version="1.10.27",x.scope=k,x.use=function(I,U){return this.scope.usePlugin(I,U),this},x.isSet=function(I,U){return!!this.scope.interactables.get(I,U&&U.context)},x.on=aa(function(I,U,Y){if(g.string(I)&&I.search(" ")!==-1&&(I=I.trim().split(/ +/)),g.array(I)){for(var ve=0,Oe=I;ve<Oe.length;ve++){var ke=Oe[ve];this.on(ke,U,Y)}return this}if(g.object(I)){for(var Qe in I)this.on(Qe,I[Qe],U);return this}return Ar(I,this.scope.actions)?this.globalEvents[I]?this.globalEvents[I].push(U):this.globalEvents[I]=[U]:this.scope.events.add(this.scope.document,I,U,{options:Y}),this},"The interact.on() method is being deprecated"),x.off=aa(function(I,U,Y){if(g.string(I)&&I.search(" ")!==-1&&(I=I.trim().split(/ +/)),g.array(I)){for(var ve=0,Oe=I;ve<Oe.length;ve++){var ke=Oe[ve];this.off(ke,U,Y)}return this}if(g.object(I)){for(var Qe in I)this.off(Qe,I[Qe],U);return this}var La;return Ar(I,this.scope.actions)?I in this.globalEvents&&(La=this.globalEvents[I].indexOf(U))!==-1&&this.globalEvents[I].splice(La,1):this.scope.events.remove(this.scope.document,I,U,Y),this},"The interact.off() method is being deprecated"),x.debug=function(){return this.scope},x.supportsTouch=function(){return J.supportsTouch},x.supportsPointerEvent=function(){return J.supportsPointerEvent},x.stop=function(){for(var I=0,U=this.scope.interactions.list;I<U.length;I++)U[I].stop();return this},x.pointerMoveTolerance=function(I){return g.number(I)?(this.scope.interactions.pointerMoveTolerance=I,this):this.scope.interactions.pointerMoveTolerance},x.addDocument=function(I,U){this.scope.addDocument(I,U)},x.removeDocument=function(I){this.scope.removeDocument(I)},x}(this),this.InteractEvent=Gr,this.Interactable=void 0,this.interactables=new $i(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(k){return i.removeDocument(k.target)};var f=this;this.Interactable=function(k){y(I,k);var x=$(I);function I(){return c(this,I),x.apply(this,arguments)}return p(I,[{key:"_defaults",get:function(){return f.defaults}},{key:"set",value:function(U){return S(u(I.prototype),"set",this).call(this,U),f.fire("interactable:set",{options:U,interactable:this}),this}},{key:"unset",value:function(){S(u(I.prototype),"unset",this).call(this);var U=f.interactables.list.indexOf(this);U<0||(f.interactables.list.splice(U,1),f.fire("interactable:unset",{interactable:this}))}}]),I}(Li)}return p(t,[{key:"addListeners",value:function(i,f){this.listenerMaps.push({id:f,map:i})}},{key:"fire",value:function(i,f){for(var k=0,x=this.listenerMaps;k<x.length;k++){var I=x[k].map[i];if(I&&I(f,this,i)===!1)return!1}}},{key:"init",value:function(i){return this.isInitialized?this:function(f,k){return f.isInitialized=!0,g.window(k)&&C(k),Q.init(k),J.init(k),Ce.init(k),f.window=k,f.document=k.document,f.usePlugin(Oi),f.usePlugin(Pn),f}(this,i)}},{key:"pluginIsInstalled",value:function(i){var f=i.id;return f?!!this._plugins.map[f]:this._plugins.list.indexOf(i)!==-1}},{key:"usePlugin",value:function(i,f){if(!this.isInitialized)return this;if(this.pluginIsInstalled(i))return this;if(i.id&&(this._plugins.map[i.id]=i),this._plugins.list.push(i),i.install&&i.install(this,f),i.listeners&&i.before){for(var k=0,x=this.listenerMaps.length,I=i.before.reduce(function(Y,ve){return Y[ve]=!0,Y[Ko(ve)]=!0,Y},{});k<x;k++){var U=this.listenerMaps[k].id;if(U&&(I[U]||I[Ko(U)]))break}this.listenerMaps.splice(k,0,{id:i.id,map:i.listeners})}else i.listeners&&this.listenerMaps.push({id:i.id,map:i.listeners});return this}},{key:"addDocument",value:function(i,f){if(this.getDocIndex(i)!==-1)return!1;var k=w(i);f=f?le({},f):{},this.documents.push({doc:i,options:f}),this.events.documents.push(i),i!==this.document&&this.events.add(k,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:i,window:k,scope:this,options:f})}},{key:"removeDocument",value:function(i){var f=this.getDocIndex(i),k=w(i),x=this.documents[f].options;this.events.remove(k,"unload",this.onWindowUnload),this.documents.splice(f,1),this.events.documents.splice(f,1),this.fire("scope:remove-document",{doc:i,window:k,scope:this,options:x})}},{key:"getDocIndex",value:function(i){for(var f=0;f<this.documents.length;f++)if(this.documents[f].doc===i)return f;return-1}},{key:"getDocOptions",value:function(i){var f=this.getDocIndex(i);return f===-1?null:this.documents[f].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),t}();function Ko(t){return t&&t.replace(/\/.*$/,"")}var Go=new Wo,Fr=Go.interactStatic,Ri=typeof globalThis<"u"?globalThis:window;Go.init(Ri);var Ao=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(t){var i=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(k){var x=k[0],I=k[1];return x in t||I in t}),f=function(k,x){for(var I=t.range,U=t.limits,Y=U===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:U,ve=t.offset,Oe=ve===void 0?{x:0,y:0}:ve,ke={range:I,grid:t,x:null,y:null},Qe=0;Qe<i.length;Qe++){var La=i[Qe],tl=La[0],rl=La[1],cl=Math.round((k-Oe.x)/t[tl]),_l=Math.round((x-Oe.y)/t[rl]);ke[tl]=Math.max(Y.left,Math.min(Y.right,cl*t[tl]+Oe.x)),ke[rl]=Math.max(Y.top,Math.min(Y.bottom,_l*t[rl]+Oe.y))}return ke};return f.grid=t,f.coordFields=i,f}}),Vi={id:"snappers",install:function(t){var i=t.interactStatic;i.snappers=le(i.snappers||{},Ao),i.createSnapGrid=i.snappers.grid}},zo=Vi,Yo={start:function(t){var i=t.state,f=t.rect,k=t.edges,x=t.pageCoords,I=i.options,U=I.ratio,Y=I.enabled,ve=i.options,Oe=ve.equalDelta,ke=ve.modifiers;U==="preserve"&&(U=f.width/f.height),i.startCoords=le({},x),i.startRect=le({},f),i.ratio=U,i.equalDelta=Oe;var Qe=i.linkedEdges={top:k.top||k.left&&!k.bottom,left:k.left||k.top&&!k.right,bottom:k.bottom||k.right&&!k.top,right:k.right||k.bottom&&!k.left};if(i.xIsPrimaryAxis=!(!k.left&&!k.right),i.equalDelta){var La=(Qe.left?1:-1)*(Qe.top?1:-1);i.edgeSign={x:La,y:La}}else i.edgeSign={x:Qe.left?-1:1,y:Qe.top?-1:1};if(Y!==!1&&le(k,Qe),ke!=null&&ke.length){var tl=new zr(t.interaction);tl.copyFrom(t.interaction.modification),tl.prepareStates(ke),i.subModification=tl,tl.startAll(o({},t))}},set:function(t){var i=t.state,f=t.rect,k=t.coords,x=i.linkedEdges,I=le({},k),U=i.equalDelta?Jo:Pi;if(le(t.edges,x),U(i,i.xIsPrimaryAxis,k,f),!i.subModification)return null;var Y=le({},f);ze(x,Y,{x:k.x-I.x,y:k.y-I.y});var ve=i.subModification.setAll(o(o({},t),{},{rect:Y,edges:x,pageCoords:k,prevCoords:k,prevRect:Y})),Oe=ve.delta;return ve.changed&&(U(i,Math.abs(Oe.x)>Math.abs(Oe.y),ve.coords,ve.rect),le(k,ve.coords)),ve.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function Jo(t,i,f){var k=t.startCoords,x=t.edgeSign;i?f.y=k.y+(f.x-k.x)*x.y:f.x=k.x+(f.y-k.y)*x.x}function Pi(t,i,f,k){var x=t.startRect,I=t.startCoords,U=t.ratio,Y=t.edgeSign;if(i){var ve=k.width/U;f.y=I.y+(ve-x.height)*Y.y}else{var Oe=k.height*U;f.x=I.x+(Oe-x.width)*Y.x}}var Fi=Dr(Yo,"aspectRatio"),Xo=function(){};Xo._defaults={};var En=Xo;function Sn(t,i,f){return g.func(t)?Ve(t,i.interactable,i.element,[f.x,f.y,i]):Ve(t,i.interactable,i.element)}var jn={start:function(t){var i=t.rect,f=t.startOffset,k=t.state,x=t.interaction,I=t.pageCoords,U=k.options,Y=U.elementRect,ve=le({left:0,top:0,right:0,bottom:0},U.offset||{});if(i&&Y){var Oe=Sn(U.restriction,x,I);if(Oe){var ke=Oe.right-Oe.left-i.width,Qe=Oe.bottom-Oe.top-i.height;ke<0&&(ve.left+=ke,ve.right+=ke),Qe<0&&(ve.top+=Qe,ve.bottom+=Qe)}ve.left+=f.left-i.width*Y.left,ve.top+=f.top-i.height*Y.top,ve.right+=f.right-i.width*(1-Y.right),ve.bottom+=f.bottom-i.height*(1-Y.bottom)}k.offset=ve},set:function(t){var i=t.coords,f=t.interaction,k=t.state,x=k.options,I=k.offset,U=Sn(x.restriction,f,i);if(U){var Y=function(ve){return!ve||"left"in ve&&"top"in ve||((ve=le({},ve)).left=ve.x||0,ve.top=ve.y||0,ve.right=ve.right||ve.left+ve.width,ve.bottom=ve.bottom||ve.top+ve.height),ve}(U);i.x=Math.max(Math.min(Y.right-I.right,i.x),Y.left+I.left),i.y=Math.max(Math.min(Y.bottom-I.bottom,i.y),Y.top+I.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},ji=Dr(jn,"restrict"),Zo={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Qo={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function ei(t,i){for(var f=0,k=["top","left","bottom","right"];f<k.length;f++){var x=k[f];x in t||(t[x]=i[x])}return t}var Hn={noInner:Zo,noOuter:Qo,start:function(t){var i,f=t.interaction,k=t.startOffset,x=t.state,I=x.options;I&&(i=wa(Sn(I.offset,f,f.coords.start.page))),i=i||{x:0,y:0},x.offset={top:i.y+k.top,left:i.x+k.left,bottom:i.y-k.bottom,right:i.x-k.right}},set:function(t){var i=t.coords,f=t.edges,k=t.interaction,x=t.state,I=x.offset,U=x.options;if(f){var Y=le({},i),ve=Sn(U.inner,k,Y)||{},Oe=Sn(U.outer,k,Y)||{};ei(ve,Zo),ei(Oe,Qo),f.top?i.y=Math.min(Math.max(Oe.top+I.top,Y.y),ve.top+I.top):f.bottom&&(i.y=Math.max(Math.min(Oe.bottom+I.bottom,Y.y),ve.bottom+I.bottom)),f.left?i.x=Math.min(Math.max(Oe.left+I.left,Y.x),ve.left+I.left):f.right&&(i.x=Math.max(Math.min(Oe.right+I.right,Y.x),ve.right+I.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},Qn=Dr(Hn,"restrictEdges"),ai=le({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(t){}},jn.defaults),li=Dr({start:jn.start,set:jn.set,defaults:ai},"restrictRect"),eo={width:-1/0,height:-1/0},Hi={width:1/0,height:1/0},ri=Dr({start:function(t){return Hn.start(t)},set:function(t){var i=t.interaction,f=t.state,k=t.rect,x=t.edges,I=f.options;if(x){var U=Fe(Sn(I.min,i,t.coords))||eo,Y=Fe(Sn(I.max,i,t.coords))||Hi;f.options={endOnly:I.endOnly,inner:le({},Hn.noInner),outer:le({},Hn.noOuter)},x.top?(f.options.inner.top=k.bottom-U.height,f.options.outer.top=k.bottom-Y.height):x.bottom&&(f.options.inner.bottom=k.top+U.height,f.options.outer.bottom=k.top+Y.height),x.left?(f.options.inner.left=k.right-U.width,f.options.outer.left=k.right-Y.width):x.right&&(f.options.inner.right=k.left+U.width,f.options.outer.right=k.left+Y.width),Hn.set(t),f.options=I}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),Mn={start:function(t){var i,f=t.interaction,k=t.interactable,x=t.element,I=t.rect,U=t.state,Y=t.startOffset,ve=U.options,Oe=ve.offsetWithOrigin?function(La){var tl=La.interaction.element,rl=wa(Ve(La.state.options.origin,null,null,[tl])),cl=rl||Re(La.interactable,tl,La.interaction.prepared.name);return cl}(t):{x:0,y:0};if(ve.offset==="startCoords")i={x:f.coords.start.page.x,y:f.coords.start.page.y};else{var ke=Ve(ve.offset,k,x,[f]);(i=wa(ke)||{x:0,y:0}).x+=Oe.x,i.y+=Oe.y}var Qe=ve.relativePoints;U.offsets=I&&Qe&&Qe.length?Qe.map(function(La,tl){return{index:tl,relativePoint:La,x:Y.left-I.width*La.x+i.x,y:Y.top-I.height*La.y+i.y}}):[{index:0,relativePoint:null,x:i.x,y:i.y}]},set:function(t){var i=t.interaction,f=t.coords,k=t.state,x=k.options,I=k.offsets,U=Re(i.interactable,i.element,i.prepared.name),Y=le({},f),ve=[];x.offsetWithOrigin||(Y.x-=U.x,Y.y-=U.y);for(var Oe=0,ke=I;Oe<ke.length;Oe++)for(var Qe=ke[Oe],La=Y.x-Qe.x,tl=Y.y-Qe.y,rl=0,cl=x.targets.length;rl<cl;rl++){var _l=x.targets[rl],ul=void 0;(ul=g.func(_l)?_l(La,tl,i._proxy,Qe,rl):_l)&&ve.push({x:(g.number(ul.x)?ul.x:La)+Qe.x,y:(g.number(ul.y)?ul.y:tl)+Qe.y,range:g.number(ul.range)?ul.range:x.range,source:_l,index:rl,offset:Qe})}for(var Tl={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},Ol=0;Ol<ve.length;Ol++){var Yl=ve[Ol],Bl=Yl.range,Ul=Yl.x-Y.x,jr=Yl.y-Y.y,wr=qa(Ul,jr),Yr=wr<=Bl;Bl===1/0&&Tl.inRange&&Tl.range!==1/0&&(Yr=!1),Tl.target&&!(Yr?Tl.inRange&&Bl!==1/0?wr/Bl<Tl.distance/Tl.range:Bl===1/0&&Tl.range!==1/0||wr<Tl.distance:!Tl.inRange&&wr<Tl.distance)||(Tl.target=Yl,Tl.distance=wr,Tl.range=Bl,Tl.inRange=Yr,Tl.delta.x=Ul,Tl.delta.y=jr)}return Tl.inRange&&(f.x=Tl.target.x,f.y=Tl.target.y),k.closest=Tl,Tl},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},Ui=Dr(Mn,"snap"),co={start:function(t){var i=t.state,f=t.edges,k=i.options;if(!f)return null;t.state={options:{targets:null,relativePoints:[{x:f.left?0:1,y:f.top?0:1}],offset:k.offset||"self",origin:{x:0,y:0},range:k.range}},i.targetFields=i.targetFields||[["width","height"],["x","y"]],Mn.start(t),i.offsets=t.state.offsets,t.state=i},set:function(t){var i=t.interaction,f=t.state,k=t.coords,x=f.options,I=f.offsets,U={x:k.x-I[0].x,y:k.y-I[0].y};f.options=le({},x),f.options.targets=[];for(var Y=0,ve=x.targets||[];Y<ve.length;Y++){var Oe=ve[Y],ke=void 0;if(ke=g.func(Oe)?Oe(U.x,U.y,i):Oe){for(var Qe=0,La=f.targetFields;Qe<La.length;Qe++){var tl=La[Qe],rl=tl[0],cl=tl[1];if(rl in ke||cl in ke){ke.x=ke[rl],ke.y=ke[cl];break}}f.options.targets.push(ke)}}var _l=Mn.set(t);return f.options=x,_l},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},qi=Dr(co,"snapSize"),Mo={aspectRatio:Fi,restrictEdges:Qn,restrict:ji,restrictRect:li,restrictSize:ri,snapEdges:Dr({start:function(t){var i=t.edges;return i?(t.state.targetFields=t.state.targetFields||[[i.left?"left":"right",i.top?"top":"bottom"]],co.start(t)):null},set:co.set,defaults:le(Cr(co.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:Ui,snapSize:qi,spring:En,avoid:En,transform:En,rubberband:En},Wi={id:"modifiers",install:function(t){var i=t.interactStatic;for(var f in t.usePlugin(ir),t.usePlugin(zo),i.modifiers=Mo,Mo){var k=Mo[f],x=k._defaults,I=k._methods;x._methods=I,t.defaults.perAction[f]=x}}},Ki=Wi,ni=function(t){y(f,t);var i=$(f);function f(k,x,I,U,Y,ve){var Oe;if(c(this,f),P(N(Oe=i.call(this,Y)),I),I!==x&&P(N(Oe),x),Oe.timeStamp=ve,Oe.originalEvent=I,Oe.type=k,Oe.pointerId=Le(x),Oe.pointerType=Je(x),Oe.target=U,Oe.currentTarget=null,k==="tap"){var ke=Y.getPointerIndex(x);Oe.dt=Oe.timeStamp-Y.pointers[ke].downTime;var Qe=Oe.timeStamp-Y.tapTime;Oe.double=!!Y.prevTap&&Y.prevTap.type!=="doubletap"&&Y.prevTap.target===Oe.target&&Qe<500}else k==="doubletap"&&(Oe.dt=x.timeStamp-Y.tapTime,Oe.double=!0);return Oe}return p(f,[{key:"_subtractOrigin",value:function(k){var x=k.x,I=k.y;return this.pageX-=x,this.pageY-=I,this.clientX-=x,this.clientY-=I,this}},{key:"_addOrigin",value:function(k){var x=k.x,I=k.y;return this.pageX+=x,this.pageY+=I,this.clientX+=x,this.clientY+=I,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),f}(Xe),Un={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(t){t.pointerEvents=Un,t.defaults.actions.pointerEvents=Un.defaults,le(t.actions.phaselessTypes,Un.types)},listeners:{"interactions:new":function(t){var i=t.interaction;i.prevTap=null,i.tapTime=0},"interactions:update-pointer":function(t){var i=t.down,f=t.pointerInfo;!i&&f.hold||(f.hold={duration:1/0,timeout:null})},"interactions:move":function(t,i){var f=t.interaction,k=t.pointer,x=t.event,I=t.eventTarget;t.duplicate||f.pointerIsDown&&!f.pointerWasMoved||(f.pointerIsDown&&Io(t),Cn({interaction:f,pointer:k,event:x,eventTarget:I,type:"move"},i))},"interactions:down":function(t,i){(function(f,k){for(var x=f.interaction,I=f.pointer,U=f.event,Y=f.eventTarget,ve=f.pointerIndex,Oe=x.pointers[ve].hold,ke=_a(Y),Qe={interaction:x,pointer:I,event:U,eventTarget:Y,type:"hold",targets:[],path:ke,node:null},La=0;La<ke.length;La++){var tl=ke[La];Qe.node=tl,k.fire("pointerEvents:collect-targets",Qe)}if(Qe.targets.length){for(var rl=1/0,cl=0,_l=Qe.targets;cl<_l.length;cl++){var ul=_l[cl].eventable.options.holdDuration;ul<rl&&(rl=ul)}Oe.duration=rl,Oe.timeout=setTimeout(function(){Cn({interaction:x,eventTarget:Y,pointer:I,event:U,type:"hold"},k)},rl)}})(t,i),Cn(t,i)},"interactions:up":function(t,i){Io(t),Cn(t,i),function(f,k){var x=f.interaction,I=f.pointer,U=f.event,Y=f.eventTarget;x.pointerWasMoved||Cn({interaction:x,eventTarget:Y,pointer:I,event:U,type:"tap"},k)}(t,i)},"interactions:cancel":function(t,i){Io(t),Cn(t,i)}},PointerEvent:ni,fire:Cn,collectEventTargets:oi,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 Cn(t,i){var f=t.interaction,k=t.pointer,x=t.event,I=t.eventTarget,U=t.type,Y=t.targets,ve=Y===void 0?oi(t,i):Y,Oe=new ni(U,k,x,I,f,i.now());i.fire("pointerEvents:new",{pointerEvent:Oe});for(var ke={interaction:f,pointer:k,event:x,eventTarget:I,targets:ve,type:U,pointerEvent:Oe},Qe=0;Qe<ve.length;Qe++){var La=ve[Qe];for(var tl in La.props||{})Oe[tl]=La.props[tl];var rl=Re(La.eventable,La.node);if(Oe._subtractOrigin(rl),Oe.eventable=La.eventable,Oe.currentTarget=La.node,La.eventable.fire(Oe),Oe._addOrigin(rl),Oe.immediatePropagationStopped||Oe.propagationStopped&&Qe+1<ve.length&&ve[Qe+1].node!==Oe.currentTarget)break}if(i.fire("pointerEvents:fired",ke),U==="tap"){var cl=Oe.double?Cn({interaction:f,pointer:k,event:x,eventTarget:I,type:"doubletap"},i):Oe;f.prevTap=cl,f.tapTime=cl.timeStamp}return Oe}function oi(t,i){var f=t.interaction,k=t.pointer,x=t.event,I=t.eventTarget,U=t.type,Y=f.getPointerIndex(k),ve=f.pointers[Y];if(U==="tap"&&(f.pointerWasMoved||!ve||ve.downTarget!==I))return[];for(var Oe=_a(I),ke={interaction:f,pointer:k,event:x,eventTarget:I,type:U,path:Oe,targets:[],node:null},Qe=0;Qe<Oe.length;Qe++){var La=Oe[Qe];ke.node=La,i.fire("pointerEvents:collect-targets",ke)}return U==="hold"&&(ke.targets=ke.targets.filter(function(tl){var rl,cl;return tl.eventable.options.holdDuration===((rl=f.pointers[Y])==null||(cl=rl.hold)==null?void 0:cl.duration)})),ke.targets}function Io(t){var i=t.interaction,f=t.pointerIndex,k=i.pointers[f].hold;k&&k.timeout&&(clearTimeout(k.timeout),k.timeout=null)}var Gi=Object.freeze({__proto__:null,default:Un});function uo(t){var i=t.interaction;i.holdIntervalHandle&&(clearInterval(i.holdIntervalHandle),i.holdIntervalHandle=null)}var Yi={id:"pointer-events/holdRepeat",install:function(t){t.usePlugin(Un);var i=t.pointerEvents;i.defaults.holdRepeatInterval=0,i.types.holdrepeat=t.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce(function(t,i){return t["pointerEvents:".concat(i)]=uo,t},{"pointerEvents:new":function(t){var i=t.pointerEvent;i.type==="hold"&&(i.count=(i.count||0)+1)},"pointerEvents:fired":function(t,i){var f=t.interaction,k=t.pointerEvent,x=t.eventTarget,I=t.targets;if(k.type==="hold"&&I.length){var U=I[0].eventable.options.holdRepeatInterval;U<=0||(f.holdIntervalHandle=setTimeout(function(){i.pointerEvents.fire({interaction:f,eventTarget:x,type:"hold",pointer:k,event:k},i)},U))}}})},Ji=Yi,Xi={id:"pointer-events/interactableTargets",install:function(t){var i=t.Interactable;i.prototype.pointerEvents=function(k){return le(this.events.options,k),this};var f=i.prototype._backCompatOption;i.prototype._backCompatOption=function(k,x){var I=f.call(this,k,x);return I===this&&(this.events.options[k]=x),I}},listeners:{"pointerEvents:collect-targets":function(t,i){var f=t.targets,k=t.node,x=t.type,I=t.eventTarget;i.interactables.forEachMatch(k,function(U){var Y=U.events,ve=Y.options;Y.types[x]&&Y.types[x].length&&U.testIgnoreAllow(ve,k,I)&&f.push({node:k,eventable:Y,props:{interactable:U}})})},"interactable:new":function(t){var i=t.interactable;i.events.getRect=function(f){return i.getRect(f)}},"interactable:set":function(t,i){var f=t.interactable,k=t.options;le(f.events.options,i.pointerEvents.defaults),le(f.events.options,k.pointerEvents||{})}}},Zi=Xi,ii={id:"pointer-events",install:function(t){t.usePlugin(Gi),t.usePlugin(Ji),t.usePlugin(Zi)}},po=ii,Qi={id:"reflow",install:function(t){var i=t.Interactable;t.actions.phases.reflow=!0,i.prototype.reflow=function(f){return function(k,x,I){for(var U=k.getAllElements(),Y=I.window.Promise,ve=Y?[]:null,Oe=function(){var Qe=U[ke],La=k.getRect(Qe);if(!La)return 1;var tl,rl=We(I.interactions.list,function(ul){return ul.interacting()&&ul.interactable===k&&ul.element===Qe&&ul.prepared.name===x.name});if(rl)rl.move(),ve&&(tl=rl._reflowPromise||new Y(function(ul){rl._reflowResolve=ul}));else{var cl=Fe(La),_l=function(ul){return{coords:ul,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:cl.x,y:cl.y},client:{x:cl.x,y:cl.y},timeStamp:I.now()});tl=function(ul,Tl,Ol,Yl,Bl){var Ul=ul.interactions.new({pointerType:"reflow"}),jr={interaction:Ul,event:Bl,pointer:Bl,eventTarget:Ol,phase:"reflow"};Ul.interactable=Tl,Ul.element=Ol,Ul.prevEvent=Bl,Ul.updatePointer(Bl,Bl,Ol,!0),ie(Ul.coords.delta),Ge(Ul.prepared,Yl),Ul._doPhase(jr);var wr=ul.window,Yr=wr.Promise,on=Yr?new Yr(function(pn){Ul._reflowResolve=pn}):void 0;return Ul._reflowPromise=on,Ul.start(Yl,Tl,Ol),Ul._interacting?(Ul.move(jr),Ul.end(Bl)):(Ul.stop(),Ul._reflowResolve()),Ul.removePointer(Bl,Bl),on}(I,k,Qe,x,_l)}ve&&ve.push(tl)},ke=0;ke<U.length&&!Oe();ke++);return ve&&Y.all(ve).then(function(){return k})}(this,f,t)}},listeners:{"interactions:stop":function(t,i){var f=t.interaction;f.pointerType==="reflow"&&(f._reflowResolve&&f._reflowResolve(),function(k,x){k.splice(k.indexOf(x),1)}(i.interactions.list,f))}}},et=Qi;if(Fr.use(Ir),Fr.use(hr),Fr.use(po),Fr.use(nn),Fr.use(Ki),Fr.use(Ll),Fr.use(Ye),Fr.use(W),Fr.use(et),Fr.default=Fr,s(l)==="object"&&l)try{l.exports=Fr}catch{}return Fr.default=Fr,Fr})}(Ro,Ro.exports)),Ro.exports}var K4=W4();const Bs=Rn.getDefaultExportFromCjs(K4),Ai=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:n,emit:r}){const o=l,s=r,c=a.inject(zc),b=a.inject(Mc);if(!c)throw new Error("[grid-layout-plus]: missing layout store, GridItem must under a GridLayout.");const p=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,u=!1,_=NaN,N=NaN,$=NaN,S=NaN,q=-1,O=-1,M=-1,Z=-1,C=o.x,w=o.y,E=o.w,m=o.h;const g=a.ref(),j=a.reactive({i:a.toRef(o,"i"),state:v,wrapper:g,calcXY:Ve});function V(se){Ze(se)}function G(){Ja()}function he(se){cn(o.isDraggable)&&(v.draggable=se)}function Te(se){cn(o.isResizable)&&(v.resizable=se)}function Se(se){cn(o.isBounded)&&(v.bounded=se)}function Q(se){v.transformScale=se}function fe(se){v.rowHeight=se}function J(se){v.maxRows=se}function ce(){v.rtl=Cs()==="rtl",Ja()}function He(se){v.cols=Math.floor(se)}c.increaseItem(j),a.onBeforeMount(()=>{v.rtl=Cs()==="rtl"}),a.onMounted(()=>{c.responsive&&c.lastBreakpoint?v.cols=Rc(c.lastBreakpoint,c.cols):v.cols=c.colNum,v.rowHeight=c.rowHeight,v.containerWidth=c.width!==null?c.width:100,v.margin=c.margin!==void 0?c.margin.map(Number):[10,10],v.maxRows=c.maxRows,cn(o.isDraggable)?v.draggable=c.isDraggable:v.draggable=o.isDraggable,cn(o.isResizable)?v.resizable=c.isResizable:v.resizable=o.isResizable,cn(o.isBounded)?v.bounded=c.isBounded:v.bounded=o.isBounded,v.transformScale=c.transformScale,v.useCssTransforms=c.useCssTransforms,v.useStyleCursor=c.useStyleCursor,a.watchEffect(()=>{C=o.x,w=o.y,m=o.h,E=o.w,Jr(pa)}),b.on("updateWidth",V),b.on("compact",G),b.on("setDraggable",he),b.on("setResizable",Te),b.on("setBounded",Se),b.on("setTransformScale",Q),b.on("setRowHeight",fe),b.on("setMaxRows",J),b.on("directionchange",ce),b.on("setColNum",He)}),a.onBeforeUnmount(()=>{b.off("updateWidth",V),b.off("compact",G),b.off("setDraggable",he),b.off("setResizable",Te),b.off("setBounded",Se),b.off("setTransformScale",Q),b.off("setRowHeight",fe),b.off("setMaxRows",J),b.off("directionchange",ce),b.off("setColNum",He),p.value&&(p.value.unset(),p.value=null),c.decreaseItem(j)}),n({state:v,wrapper:g});const Ca=typeof navigator<"u"?navigator.userAgent.toLowerCase().includes("android"):!1,ne=a.computed(()=>v.resizable&&!o.static),D=a.computed(()=>c.isMirrored?!v.rtl:v.rtl),re=a.computed(()=>(v.draggable||v.resizable)&&!o.static),be=R4("item"),ue=a.computed(()=>({[be.b()]:!0,[be.bm("resizable")]:ne.value,[be.bm("static")]:o.static,[be.bm("resizing")]:v.isResizing,[be.bm("dragging")]:v.isDragging,[be.bm("transform")]:v.useCssTransforms,[be.bm("rtl")]:D.value,[be.bm("no-touch")]:Ca&&re.value})),De=a.computed(()=>[be.be("resizer"),D.value&&be.bem("resizer","rtl")].filter(Boolean));a.watch(()=>o.isDraggable,se=>{v.draggable=se}),a.watch(()=>o.static,()=>{Jr(P),Jr(ie)}),a.watch(()=>v.draggable,()=>{Jr(P)}),a.watch(()=>o.isResizable,se=>{v.resizable=se}),a.watch(()=>o.isBounded,se=>{v.bounded=se}),a.watch(()=>v.resizable,()=>{Jr(ie)}),a.watch(()=>v.rowHeight,()=>{Jr(pa),Jr(_a)}),a.watch([()=>v.cols,()=>v.containerWidth],()=>{Jr(ie),Jr(pa),Jr(_a)}),a.watch([()=>o.minH,()=>o.maxH,()=>o.minW,()=>o.maxW],()=>{Jr(ie)}),a.watch(D,()=>{Jr(ie),Jr(pa)}),a.watch([()=>c.margin,()=>c.margin[0],()=>c.margin[1]],()=>{const se=c.margin;!se||se[0]===v.margin[0]&&se[1]===v.margin[1]||(v.margin=se.map(Number),Jr(pa),Jr(_a))});function pa(){o.x+o.w>v.cols?(C=0,E=o.w>v.cols?v.cols:o.w):(C=o.x,E=o.w);const se=la(C,w,E,m);v.isDragging&&(se.top=v.dragging.top,D.value?se.right=v.dragging.left:se.left=v.dragging.left),v.isResizing&&(se.width=v.resizing.width,se.height=v.resizing.height);let ga;v.useCssTransforms?D.value?ga=I4(se.top,se.right,se.width,se.height):ga=M4(se.top,se.left,se.width,se.height):D.value?ga=L4(se.top,se.right,se.width,se.height):ga=O4(se.top,se.left,se.width,se.height),v.style=ga}function _a(){const se={};for(const ga of["width","height"]){const ra=v.style[ga].match(/^(\d+)px$/);if(!ra)return;se[ga]=ra[1]}s("container-resized",o.i,o.h,o.w,se.height,se.width)}function Ga(se){if(o.static)return;const ga=se.type;if(ga==="resizestart"&&v.isResizing||ga!=="resizestart"&&!v.isResizing)return;const ra=Es(se);if(cn(ra))return;const{x:Le,y:Ee}=ra,Ea={width:0,height:0};let va;switch(ga){case"resizestart":{ie(),q=E,O=m,va=la(C,w,E,m),Ea.width=va.width,Ea.height=va.height,v.resizing=Ea,v.isResizing=!0;break}case"resizemove":{!se.edges.right&&!se.edges.left&&($=Le),!se.edges.top&&!se.edges.bottom&&(S=Ee);const Va=Ss($,S,Le,Ee);D.value?Ea.width=v.resizing.width-Va.deltaX/v.transformScale:Ea.width=v.resizing.width+Va.deltaX/v.transformScale,Ea.height=v.resizing.height+Va.deltaY/v.transformScale,v.resizing=Ea;break}case"resizeend":{va=la(C,w,E,m),Ea.width=va.width,Ea.height=va.height,v.resizing={width:-1,height:-1},v.isResizing=!1;break}}va=Re(Ea.height,Ea.width),va.w<o.minW&&(va.w=o.minW),va.w>o.maxW&&(va.w=o.maxW),va.h<o.minH&&(va.h=o.minH),va.h>o.maxH&&(va.h=o.maxH),va.h<1&&(va.h=1),va.w<1&&(va.w=1),$=Le,S=Ee,(E!==va.w||m!==va.h)&&s("resize",o.i,va.h,va.w,Ea.height,Ea.width),se.type==="resizeend"&&(q!==E||O!==m)&&s("resized",o.i,va.h,va.w,Ea.height,Ea.width),b.emit("resizeEvent",se.type,o.i,C,w,va.h,va.w)}function le(se){if(o.static||v.isResizing)return;const ga=se.type;if(ga==="dragstart"&&v.isDragging||ga!=="dragstart"&&!v.isDragging)return;const ra=Es(se);if(cn(ra))return;const{x:Le,y:Ee}=ra,Ea=se.target;if(!Ea.offsetParent)return;const va={top:0,left:0};switch(ga){case"dragstart":{M=C,Z=w;const Pa=Ea.offsetParent.getBoundingClientRect(),me=Ea.getBoundingClientRect(),Je=me.left/v.transformScale,Ae=Pa.left/v.transformScale,Xe=me.right/v.transformScale,oe=Pa.right/v.transformScale,_e=me.top/v.transformScale,de=Pa.top/v.transformScale;D.value?va.left=(Xe-oe)*-1:va.left=Je-Ae,va.top=_e-de,v.dragging=va,v.isDragging=!0;break}case"dragmove":{const Pa=Ss(_,N,Le,Ee);if(D.value?va.left=v.dragging.left-Pa.deltaX/v.transformScale:va.left=v.dragging.left+Pa.deltaX/v.transformScale,va.top=v.dragging.top+Pa.deltaY/v.transformScale,v.bounded){const me=Ea.offsetParent.clientHeight-Fe(o.h,v.rowHeight,v.margin[1]);va.top=ze(va.top,0,me);const Je=wa(),Ae=v.containerWidth-Fe(o.w,Je,v.margin[0]);va.left=ze(va.left,0,Ae)}v.dragging=va;break}case"dragend":{const Pa=Ea.offsetParent.getBoundingClientRect(),me=Ea.getBoundingClientRect(),Je=me.left/v.transformScale,Ae=Pa.left/v.transformScale,Xe=me.right/v.transformScale,oe=Pa.right/v.transformScale,_e=me.top/v.transformScale,de=Pa.top/v.transformScale;D.value?va.left=(Xe-oe)*-1:va.left=Je-Ae,va.top=_e-de,v.dragging={top:-1,left:-1},v.isDragging=!1;break}}let Va;D.value,Va=Ve(va.top,va.left),_=Le,N=Ee,(C!==Va.x||w!==Va.y)&&s("move",o.i,Va.x,Va.y),se.type==="dragend"&&(M!==C||Z!==w)&&s("moved",o.i,Va.x,Va.y),b.emit("dragEvent",se.type,o.i,Va.x,Va.y,m,E)}function la(se,ga,ra,Le){const Ee=wa();let Ea;return D.value?Ea={right:Math.round(Ee*se+(se+1)*v.margin[0]),top:Math.round(v.rowHeight*ga+(ga+1)*v.margin[1]),width:ra===1/0?ra:Math.round(Ee*ra+Math.max(0,ra-1)*v.margin[0]),height:Le===1/0?Le:Math.round(v.rowHeight*Le+Math.max(0,Le-1)*v.margin[1])}:Ea={left:Math.round(Ee*se+(se+1)*v.margin[0]),top:Math.round(v.rowHeight*ga+(ga+1)*v.margin[1]),width:ra===1/0?ra:Math.round(Ee*ra+Math.max(0,ra-1)*v.margin[0]),height:Le===1/0?Le:Math.round(v.rowHeight*Le+Math.max(0,Le-1)*v.margin[1])},Ea}function Ve(se,ga){const ra=wa();let Le=Math.round((ga-v.margin[0])/(ra+v.margin[0])),Ee=Math.round((se-v.margin[1])/(v.rowHeight+v.margin[1]));return Le=Math.max(Math.min(Le,v.cols-E),0),Ee=Math.max(Math.min(Ee,v.maxRows-m),0),{x:Le,y:Ee}}function wa(){return(v.containerWidth-v.margin[0]*(v.cols+1))/v.cols}function Fe(se,ga,ra){return Number.isFinite(se)?Math.round(ga*se+Math.max(0,se-1)*ra):se}function ze(se,ga,ra){return Math.max(Math.min(se,ra),ga)}function Re(se,ga,ra=!1){const Le=wa();let Ee=Math.round((ga+v.margin[0])/(Le+v.margin[0])),Ea=0;return ra?Ea=Math.ceil((se+v.margin[1])/(v.rowHeight+v.margin[1])):Ea=Math.round((se+v.margin[1])/(v.rowHeight+v.margin[1])),Ee=Math.max(Math.min(Ee,v.cols-C),0),Ea=Math.max(Math.min(Ea,v.maxRows-w),0),{w:Ee,h:Ea}}function Ze(se,ga){v.containerWidth=se}function Ja(){pa()}function qa(){!p.value&&g.value&&(p.value=Bs(g.value),v.useStyleCursor||p.value.styleCursor(!1))}const F=xs(le);function P(){if(qa(),!!p.value)if(v.draggable&&!o.static){const se={ignoreFrom:o.dragIgnoreFrom,allowFrom:o.dragAllowFrom,...o.dragOption};p.value.draggable(se),y||(y=!0,p.value.on("dragstart dragmove dragend",ga=>{ga.type==="dragmove"?F(ga):le(ga)}))}else p.value.draggable({enabled:!1})}const X=xs(Ga);function ie(){if(qa(),!!p.value)if(v.resizable&&!o.static){const se=la(0,0,o.maxW,o.maxH),ga=la(0,0,o.minW,o.minH),ra={edges:{left:D.value?`.${De.value[0]}`:!1,right:D.value?!1:`.${De.value[0]}`,bottom:`.${De.value[0]}`,top:!1},ignoreFrom:o.resizeIgnoreFrom,restrictSize:{min:{height:ga.height*v.transformScale,width:ga.width*v.transformScale},max:{height:se.height*v.transformScale,width:se.width*v.transformScale}},...o.resizeOption};o.preserveAspectRatio&&(ra.modifiers=[Bs.modifiers.aspectRatio({ratio:"preserve"})]),p.value.resizable(ra),u||(u=!0,p.value.on("resizestart resizemove resizeend",Le=>{Le.type==="resizemove"?X(Le):Ga(Le)}))}else p.value.resizable({enabled:!1})}return(se,ga)=>(a.openBlock(),a.createElementBlock("section",{ref_key:"wrapper",ref:g,class:a.normalizeClass(ue.value),style:a.normalizeStyle(v.style)},[a.renderSlot(se.$slots,"default"),ne.value?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(De.value)},null,2)):a.createCommentVNode("",!0)],6))}}),so=typeof window<"u";var Ns;so&&(Ns=window==null?void 0:window.navigator)!=null&&Ns.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Ts(l){return l!=null}function As(){}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)));const Y4=so&&("ontouchstart"in window||X4()>0),J4=Y4?"pointerdown":"click";function X4(){return typeof navigator<"u"&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)||0}function Z4(l,n,r=window.Event){const{type:o,bubbles:s=!1,cancelable:c=!1,...b}=n;if(!Ts(o)||o==="")return!1;let p;return Ts(r)?p=new r(o,{bubbles:s,cancelable:c}):(p=document.createEvent("HTMLEvents"),p.initEvent(o,s,c)),Object.assign(p,b),l.dispatchEvent(p)}const Q4="clickoutside",e6=new Set;so&&document.addEventListener(J4,l=>{const n=l.target,r=l.composedPath&&l.composedPath();e6.forEach(o=>{o!==n&&(r?!r.includes(o):!o.contains(n))&&(!o.__transferElement||o.__transferElement!==n&&!o.__transferElement.contains(n))&&Z4(o,{type:Q4})})},!0);const a6=[["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 ki;if(so){for(const l of a6)if(l[1]in document){ki=l;break}}a.computed(()=>!1);const l6=new Set,r6=new WeakMap;if(so&&ki){const l=ki[2],n=ki[4];document.addEventListener(n,()=>{if(l6.forEach(r=>{r.value=!1}),document[l]){const r=r6.get(document[l]);r&&(r.value=!0)}},!1)}const Pc=new Map;Pc.set("x",0);Pc.set("y",0);var io=[],n6=function(){return io.some(function(l){return l.activeTargets.length>0})},o6=function(){return io.some(function(l){return l.skippedTargets.length>0})},zs="ResizeObserver loop completed with undelivered notifications.",i6=function(){var l;typeof ErrorEvent=="function"?l=new ErrorEvent("error",{message:zs}):(l=document.createEvent("Event"),l.initEvent("error",!1,!1),l.message=zs),window.dispatchEvent(l)},qo;(function(l){l.BORDER_BOX="border-box",l.CONTENT_BOX="content-box",l.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(qo||(qo={}));var to=function(l){return Object.freeze(l)},t6=function(){function l(n,r){this.inlineSize=n,this.blockSize=r,to(this)}return l}(),Fc=function(){function l(n,r,o,s){return this.x=n,this.y=r,this.width=o,this.height=s,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,to(this)}return l.prototype.toJSON=function(){var n=this,r=n.x,o=n.y,s=n.top,c=n.right,b=n.bottom,p=n.left,v=n.width,y=n.height;return{x:r,y:o,top:s,right:c,bottom:b,left:p,width:v,height:y}},l.fromRect=function(n){return new l(n.x,n.y,n.width,n.height)},l}(),Bt=function(l){return l instanceof SVGElement&&"getBBox"in l},jc=function(l){if(Bt(l)){var n=l.getBBox(),r=n.width,o=n.height;return!r&&!o}var s=l,c=s.offsetWidth,b=s.offsetHeight;return!(c||b||l.getClientRects().length)},Ms=function(l){var n;if(l instanceof Element)return!0;var r=(n=l==null?void 0:l.ownerDocument)===null||n===void 0?void 0:n.defaultView;return!!(r&&l instanceof r.Element)},s6=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},jo=typeof window<"u"?window:{},mi=new WeakMap,Is=/auto|scroll/,c6=/^tb|vertical/,u6=/msie|trident/i.test(jo.navigator&&jo.navigator.userAgent),Bn=function(l){return parseFloat(l||"0")},Co=function(l,n,r){return l===void 0&&(l=0),n===void 0&&(n=0),r===void 0&&(r=!1),new t6((r?n:l)||0,(r?l:n)||0)},Os=to({devicePixelContentBoxSize:Co(),borderBoxSize:Co(),contentBoxSize:Co(),contentRect:new Fc(0,0,0,0)}),Hc=function(l,n){if(n===void 0&&(n=!1),mi.has(l)&&!n)return mi.get(l);if(jc(l))return mi.set(l,Os),Os;var r=getComputedStyle(l),o=Bt(l)&&l.ownerSVGElement&&l.getBBox(),s=!u6&&r.boxSizing==="border-box",c=c6.test(r.writingMode||""),b=!o&&Is.test(r.overflowY||""),p=!o&&Is.test(r.overflowX||""),v=o?0:Bn(r.paddingTop),y=o?0:Bn(r.paddingRight),u=o?0:Bn(r.paddingBottom),_=o?0:Bn(r.paddingLeft),N=o?0:Bn(r.borderTopWidth),$=o?0:Bn(r.borderRightWidth),S=o?0:Bn(r.borderBottomWidth),q=o?0:Bn(r.borderLeftWidth),O=_+y,M=v+u,Z=q+$,C=N+S,w=p?l.offsetHeight-C-l.clientHeight:0,E=b?l.offsetWidth-Z-l.clientWidth:0,m=s?O+Z:0,g=s?M+C:0,j=o?o.width:Bn(r.width)-m-E,V=o?o.height:Bn(r.height)-g-w,G=j+O+E+Z,he=V+M+w+C,Te=to({devicePixelContentBoxSize:Co(Math.round(j*devicePixelRatio),Math.round(V*devicePixelRatio),c),borderBoxSize:Co(G,he,c),contentBoxSize:Co(j,V,c),contentRect:new Fc(_,v,j,V)});return mi.set(l,Te),Te},Uc=function(l,n,r){var o=Hc(l,r),s=o.borderBoxSize,c=o.contentBoxSize,b=o.devicePixelContentBoxSize;switch(n){case qo.DEVICE_PIXEL_CONTENT_BOX:return b;case qo.BORDER_BOX:return s;default:return c}},d6=function(){function l(n){var r=Hc(n);this.target=n,this.contentRect=r.contentRect,this.borderBoxSize=to([r.borderBoxSize]),this.contentBoxSize=to([r.contentBoxSize]),this.devicePixelContentBoxSize=to([r.devicePixelContentBoxSize])}return l}(),qc=function(l){if(jc(l))return 1/0;for(var n=0,r=l.parentNode;r;)n+=1,r=r.parentNode;return n},p6=function(){var l=1/0,n=[];io.forEach(function(c){if(c.activeTargets.length!==0){var b=[];c.activeTargets.forEach(function(p){var v=new d6(p.target),y=qc(p.target);b.push(v),p.lastReportedSize=Uc(p.target,p.observedBox),y<l&&(l=y)}),n.push(function(){c.callback.call(c.observer,b,c.observer)}),c.activeTargets.splice(0,c.activeTargets.length)}});for(var r=0,o=n;r<o.length;r++){var s=o[r];s()}return l},Ls=function(l){io.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(r){r.isActive()&&(qc(r.target)>l?n.activeTargets.push(r):n.skippedTargets.push(r))})})},f6=function(){var l=0;for(Ls(l);n6();)l=p6(),Ls(l);return o6()&&i6(),l>0},tt,Wc=[],h6=function(){return Wc.splice(0).forEach(function(l){return l()})},v6=function(l){if(!tt){var n=0,r=document.createTextNode(""),o={characterData:!0};new MutationObserver(function(){return h6()}).observe(r,o),tt=function(){r.textContent="".concat(n?n--:n++)}}Wc.push(l),tt()},m6=function(l){v6(function(){requestAnimationFrame(l)})},xi=0,y6=function(){return!!xi},g6=250,b6={attributes:!0,characterData:!0,childList:!0,subtree:!0},$s=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Rs=function(l){return l===void 0&&(l=0),Date.now()+l},st=!1,k6=function(){function l(){var n=this;this.stopped=!0,this.listener=function(){return n.schedule()}}return l.prototype.run=function(n){var r=this;if(n===void 0&&(n=g6),!st){st=!0;var o=Rs(n);m6(function(){var s=!1;try{s=f6()}finally{if(st=!1,n=o-Rs(),!y6())return;s?r.run(1e3):n>0?r.run(n):r.start()}})}},l.prototype.schedule=function(){this.stop(),this.run()},l.prototype.observe=function(){var n=this,r=function(){return n.observer&&n.observer.observe(document.body,b6)};document.body?r():jo.addEventListener("DOMContentLoaded",r)},l.prototype.start=function(){var n=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),$s.forEach(function(r){return jo.addEventListener(r,n.listener,!0)}))},l.prototype.stop=function(){var n=this;this.stopped||(this.observer&&this.observer.disconnect(),$s.forEach(function(r){return jo.removeEventListener(r,n.listener,!0)}),this.stopped=!0)},l}(),wt=new k6,Vs=function(l){!xi&&l>0&&wt.start(),xi+=l,!xi&&wt.stop()},x6=function(l){return!Bt(l)&&!s6(l)&&getComputedStyle(l).display==="inline"},w6=function(){function l(n,r){this.target=n,this.observedBox=r||qo.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return l.prototype.isActive=function(){var n=Uc(this.target,this.observedBox,!0);return x6(this.target)&&(this.lastReportedSize=n),this.lastReportedSize.inlineSize!==n.inlineSize||this.lastReportedSize.blockSize!==n.blockSize},l}(),_6=function(){function l(n,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=n,this.callback=r}return l}(),yi=new WeakMap,Ps=function(l,n){for(var r=0;r<l.length;r+=1)if(l[r].target===n)return r;return-1},gi=function(){function l(){}return l.connect=function(n,r){var o=new _6(n,r);yi.set(n,o)},l.observe=function(n,r,o){var s=yi.get(n),c=s.observationTargets.length===0;Ps(s.observationTargets,r)<0&&(c&&io.push(s),s.observationTargets.push(new w6(r,o&&o.box)),Vs(1),wt.schedule())},l.unobserve=function(n,r){var o=yi.get(n),s=Ps(o.observationTargets,r),c=o.observationTargets.length===1;s>=0&&(c&&io.splice(io.indexOf(o),1),o.observationTargets.splice(s,1),Vs(-1))},l.disconnect=function(n){var r=this,o=yi.get(n);o.observationTargets.slice().forEach(function(s){return r.unobserve(n,s.target)}),o.activeTargets.splice(0,o.activeTargets.length)},l}(),E6=function(){function l(n){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof n!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");gi.connect(this,n)}return l.prototype.observe=function(n,r){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ms(n))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");gi.observe(this,n,r)},l.prototype.unobserve=function(n){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ms(n))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");gi.unobserve(this,n)},l.prototype.disconnect=function(){gi.disconnect(this)},l.toString=function(){return"function ResizeObserver () { [polyfill code] }"},l}();const zi=new WeakMap;function S6(l){var n;for(let r=0,o=l.length;r<o;++r){const s=l[r],c=zi.get(s.target);if(typeof c=="function"){const{inlineSize:b,blockSize:p}=((n=s.borderBoxSize)==null?void 0:n[0])??{},{offsetWidth:v,offsetHeight:y}=s.target;c(Object.assign(s,{offsetWidth:v,offsetHeight:y,width:b??v,height:p??y}))}}}const Kc=new(so&&window.ResizeObserver||E6)(S6);function Fs(l,n){zi.set(l,n),Kc.observe(l)}function js(l){zi.has(l)&&(Kc.unobserve(l),zi.delete(l))}function C6(l={}){let n=As;const r=a.watch(()=>a.unref(l.target),s=>{n(),!(!s||typeof l.onResize!="function")&&(Fs(s,l.onResize),n=()=>{js(s),n=As})},{immediate:!0}),o=()=>{r(),n()};return a.getCurrentScope()&&a.onScopeDispose(o),{observeResize:Fs,unobserveResize:js,unobserve:o}}const D6=a.ref(!1);a.computed(()=>D6.value);const Hs="__theme_style__",ct="__theme_observer__",Us=a.reactive(new Map),qs=new Map;a.watch(Us,()=>{if(!so)return;qs.clear();const l=document.head.querySelector(`#${Hs}`);l&&document.head.removeChild(l);const n=document.createElement("style");let r=`.${ct} { width: 1px }`,o=1;for(const[s,[c,b]]of Us.entries())r+=` html.${c} .${ct}, .${b} .${ct} { width: ${++o}px }`,qs.set(o,s);n.textContent=r,n.id=Hs,document.head.appendChild(n)});const Gc=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:n,emit:r}){const o=l,s=r,c=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,p=a.ref(o.layout),v=a.ref(),{observeResize:y,unobserveResize:u}=C6(),_=C4();_.on("resizeEvent",N),_.on("dragEvent",$),a.onBeforeMount(()=>{s("layout-before-mount",p.value)}),a.onMounted(()=>{s("layout-mounted",p.value),a.nextTick(()=>{$4(p.value),c.originalLayout=p.value,a.nextTick(()=>{V(),v.value&&y(v.value,D4(C,16)),wo(p.value,o.verticalCompact),s("layout-updated",p.value),Z(),C()})})}),a.onBeforeUnmount(()=>{_.clearAll(),v.value&&u(v.value)});function N(he,Te,Se,Q,fe,J){g(he,Te,Se,Q,fe,J)}function $(he,Te,Se,Q,fe,J){m(he,Te,Se,Q,fe,J)}a.watch(()=>c.width,(he,Te)=>{a.nextTick(()=>{_.emit("updateWidth",he),Te===-1&&a.nextTick(()=>{s("layout-ready",p.value)}),Z()})}),a.watch(()=>[o.layout,o.layout.length],()=>{p.value=o.layout,M()}),a.watch(()=>o.colNum,he=>{_.emit("setColNum",he)}),a.watch(()=>o.rowHeight,he=>{_.emit("setRowHeight",he)}),a.watch(()=>o.isDraggable,he=>{_.emit("setDraggable",he)}),a.watch(()=>o.isResizable,he=>{_.emit("setResizable",he)}),a.watch(()=>o.isBounded,he=>{_.emit("setBounded",he)}),a.watch(()=>o.transformScale,he=>{_.emit("setTransformScale",he)}),a.watch(()=>o.responsive,he=>{he||(s("update:layout",c.originalLayout),_.emit("setColNum",o.colNum)),C()}),a.watch(()=>o.maxRows,he=>{_.emit("setMaxRows",he)}),a.watch([()=>o.margin,()=>o.margin[1]],Z),a.provide(zc,a.reactive({...a.toRefs(o),...a.toRefs(c),increaseItem:S,decreaseItem:q})),a.provide(Mc,_),n({state:c,getItem:O,resizeEvent:g,dragEvent:m,layoutUpdate:M});function S(he){b.set(he.i,he)}function q(he){b.delete(he.i)}function O(he){return b.get(he)}function M(){if(!cn(p.value)&&!cn(c.originalLayout)){if(p.value.length!==c.originalLayout.length){const he=G(p.value,c.originalLayout);if(he.length>0)if(p.value.length>c.originalLayout.length)c.originalLayout=c.originalLayout.concat(he);else{const Te=new Set(he.map(Se=>Se.i));c.originalLayout=c.originalLayout.filter(Se=>!Te.has(Se.i))}c.lastLayoutLength=p.value.length,V()}wo(p.value,o.verticalCompact),_.emit("updateWidth",c.width),Z(),s("layout-updated",p.value)}}function Z(){c.mergedStyle={height:w()}}function C(){v.value&&(c.width=v.value.offsetWidth),_.emit("resizeEvent")}function w(){if(!o.autoSize)return;const he=parseFloat(o.margin[1]);return N4(p.value)*(o.rowHeight+he)+he+"px"}let E;function m(he,Te,Se,Q,fe,J){let ce=ws(p.value,Te);cn(ce)&&(ce={h:0,w:0,x:0,y:0,i:""}),he==="dragstart"&&!o.verticalCompact&&(E=p.value.reduce((He,{i:Ca,x:ne,y:D})=>({...He,[Ca]:{x:ne,y:D}}),{})),he==="dragmove"||he==="dragstart"?(c.placeholder.i=Te,c.placeholder.x=ce.x,c.placeholder.y=ce.y,c.placeholder.w=J,c.placeholder.h=fe,a.nextTick(()=>{c.isDragging=!0}),_.emit("updateWidth",c.width)):a.nextTick(()=>{c.isDragging=!1}),p.value=xt(p.value,ce,Se,Q,!0,o.preventCollision),o.restoreOnDrag?(ce.static=!0,wo(p.value,o.verticalCompact,E),ce.static=!1):wo(p.value,o.verticalCompact),_.emit("compact"),Z(),he==="dragend"&&(E=void 0,s("layout-updated",p.value))}function g(he,Te,Se,Q,fe,J){let ce=ws(p.value,Te);cn(ce)&&(ce={h:0,w:0,x:0,y:0,i:""});let He;if(o.preventCollision){const Ca=Oc(p.value,{...ce,w:J,h:fe}).filter(ne=>ne.i!==ce.i);if(He=Ca.length>0,He){let ne=1/0,D=1/0;Ca.forEach(re=>{re.x>ce.x&&(ne=Math.min(ne,re.x)),re.y>ce.y&&(D=Math.min(D,re.y))}),Number.isFinite(ne)&&(ce.w=ne-ce.x),Number.isFinite(D)&&(ce.h=D-ce.y)}}He||(ce.w=J,ce.h=fe),he==="resizestart"||he==="resizemove"?(c.placeholder.i=Te,c.placeholder.x=Se,c.placeholder.y=Q,c.placeholder.w=ce.w,c.placeholder.h=ce.h,a.nextTick(()=>{c.isDragging=!0}),_.emit("updateWidth",c.width)):he&&a.nextTick(()=>{c.isDragging=!1}),o.responsive&&j(),wo(p.value,o.verticalCompact),_.emit("compact"),Z(),he==="resizeend"&&s("layout-updated",p.value)}function j(){const he=F4(o.breakpoints,c.width);if(he===c.lastBreakpoint)return;const Te=Rc(he,o.cols);!cn(c.lastBreakpoint)&&!c.layouts[c.lastBreakpoint]&&(c.layouts[c.lastBreakpoint]=kt(p.value));const Se=j4(c.originalLayout,c.layouts,o.breakpoints,he,c.lastBreakpoint,Te,o.verticalCompact);c.layouts[he]=Se,c.lastBreakpoint!==he&&s("breakpoint-changed",he,Se),p.value=Se,s("update:layout",Se),c.lastBreakpoint=he,_.emit("setColNum",Te)}function V(){c.layouts=Object.assign({},o.responsiveLayouts)}function G(he,Te){const Se=new Set(Te.map(ce=>ce.i)),Q=new Set(he.map(ce=>ce.i)),fe=he.filter(ce=>!Se.has(ce.i)),J=Te.filter(ce=>!Q.has(ce.i));return fe.concat(J)}return(he,Te)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"wrapper",ref:v,class:"vgl-layout",style:a.normalizeStyle(c.mergedStyle)},[he.$slots.default?a.renderSlot(he.$slots,"default",{key:0}):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(p.value,Se=>(a.openBlock(),a.createBlock(Ai,a.mergeProps({key:Se.i,ref_for:!0},Se),{default:a.withCtx(()=>[a.renderSlot(he.$slots,"item",{item:Se})]),_:2},1040))),128)),a.withDirectives(a.createVNode(Ai,{class:"vgl-item--placeholder",x:c.placeholder.x,y:c.placeholder.y,w:c.placeholder.w,h:c.placeholder.h,i:c.placeholder.i},null,8,["x","y","w","h","i"]),[[a.vShow,c.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(n){console.error("vite-plugin-css-injected-by-js",n)}})();const B6={key:0,class:"item-view-group"},N6={key:0,class:"item-view-group"},T6=a.defineComponent({__name:"index",props:{children:{type:Object,default:()=>{}},level:{type:Number,default:1}},emits:["rowClick","routeUrl","radioChange"],setup(l,{emit:n}){const r=L.useModelComp(L.pinia),{isEdit:o}=L.storeToRefs(r),s=Jn(L.pinia),c=n,b=l,p=a.ref(""),v=a.computed(()=>b==null?void 0:b.children),y=a.computed(()=>{var Z,C,w,E;return((Z=b==null?void 0:b.children)==null?void 0:Z.length)>0&&((C=b==null?void 0:b.children)!=null&&C.every(m=>m==null?void 0:m.layout))?(E=(w=b==null?void 0:b.children)==null?void 0:w[0])==null?void 0:E.layout:"vertical"}),u=Z=>{p.value=Z,c("radioChange",Z)},_=a.computed(()=>{var Z,C;return((C=(Z=b==null?void 0:b.children)==null?void 0:Z[0])==null?void 0:C.isGridLayout)||!1}),N=a.ref((b==null?void 0:b.level)+1),$=a.computed(()=>{if(!(b!=null&&b.children)||!Array.isArray(b.children)||b.children.length<2)return!1;const Z=b.children.some(w=>(w==null?void 0:w.name)==="测量系统配置表"&&(w==null?void 0:w.comp)==="ParentItem"),C=b.children.some(w=>(w==null?void 0:w.name)==="测量系统传递表"&&(w==null?void 0:w.comp)==="ParentItem");return Z&&C}),S=a.computed(()=>{var C,w,E,m,g,j;let Z=(C=b==null?void 0:b.children)==null?void 0:C.filter(V=>V==null?void 0:V.choice);if(s.setSelectTab((w=Z==null?void 0:Z[0])==null?void 0:w.choiceName),(p==null?void 0:p.value)!=="")return(E=b==null?void 0:b.children)==null?void 0:E.filter(V=>!(V!=null&&V.choiceName)||(V==null?void 0:V.choiceName)===(p==null?void 0:p.value));{let V=(g=(m=b==null?void 0:b.children)==null?void 0:m.find(G=>G==null?void 0:G.choice))==null?void 0:g.choiceName;return(j=b==null?void 0:b.children)==null?void 0:j.filter(G=>!(G!=null&&G.choiceName)||(G==null?void 0:G.choiceName)===V)}}),q=Z=>{const C=(Z==null?void 0:Z.menuFilter)||[];return Array.isArray(C)&&(C==null?void 0:C.some(w=>{const E=typeof w=="string"?w:JSON.stringify(w);return E==null?void 0:E.includes("@Prop(Hide=Yes)")}))};a.watch(()=>b==null?void 0:b.children,()=>{$.value},{deep:!0});const O=Z=>{c("rowClick",Z)},M=(Z,C)=>{c("routeUrl",Z,C)};return(Z,C)=>_.value?(a.openBlock(),a.createBlock(a.unref(Gc),{key:0,layout:v.value,"onUpdate:layout":C[0]||(C[0]=w=>v.value=w),"is-draggable":a.unref(o)==="edit","is-resizable":a.unref(o)==="edit","col-num":24,margin:[8,16]},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(v.value,(w,E)=>(a.openBlock(),a.createBlock(a.unref(Ai),{key:w.i,x:w.x,y:w.y,"min-h":w.minH,"max-h":w.maxH,"min-w":w.minW,w:w.w,h:w.h,i:w.i},{default:a.withCtx(()=>{var m,g,j,V,G,he,Te,Se,Q,fe,J,ce,He,Ca;return[a.createElementVNode("div",{style:a.normalizeStyle({gap:"16px",display:"flex",flexDirection:"column",paddingBottom:E===((m=b==null?void 0:b.children)==null?void 0:m.length)-1?"0px":"24px"})},[((j=(g=w==null?void 0:w.component)==null?void 0:g.comp)==null?void 0:j.toUpperCase())!=="TABLE"&&((V=w==null?void 0:w.component)!=null&&V.name)?(a.openBlock(),a.createElementBlock("div",B6,[a.createElementVNode("div",{class:"group-name-wrap",style:a.normalizeStyle({paddingLeft:(parseInt(N.value.toString())-1)*12+"px",fontWeight:600-(N.value-1)*100>=400?600-(N.value-1)*100:400,fontSize:17-N.value>=14?17-N.value+"px":"14px"})},a.toDisplayString((G=w==null?void 0:w.component)==null?void 0:G.name),5)])):a.createCommentVNode("",!0),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Uo)((he=w==null?void 0:w.component)==null?void 0:he.comp)),{pageLayout:y.value,config:{showIndex:(Te=a.unref(ar)[E])==null?void 0:Te.showIndex,allowMove:(Se=a.unref(ar)[E])==null?void 0:Se.allowMove,viewport:(Q=a.unref(ar)[E])==null?void 0:Q.viewport,status:(fe=a.unref(ar)[E])==null?void 0:fe.status},related:w==null?void 0:w.relatedTables,compName:w==null?void 0:w.component.name,compNames:a.unref(fc),itemData:(J=w==null?void 0:w.component)==null?void 0:J.compData,childItemData:(ce=w==null?void 0:w.component)==null?void 0:ce.itemChildData,key:a.unref(Yn),cacheNewData:a.unref(pc),onChange:a.unref(Di),index:(w==null?void 0:w.id)??E,onContentChange:a.unref(Bi),onPageChange:a.unref(Ni),parentTableId:(He=w==null?void 0:w.component)==null?void 0:He.tableId,allMapContents:a.unref(yt),children:(Ca=w==null?void 0:w.component)==null?void 0:Ca.children,level:N.value,onRowClick:O,onRouteUrl:M,onClickTrigger:a.unref(hc),onClickMainKey:a.unref(vc),onRadioChange:u},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(S.value,(w,E)=>{var m,g;return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle({gap:"16px",display:(w==null?void 0:w.isShow)===!1?"none":"flex",flexDirection:"column",paddingBottom:parseInt(E)===((m=b==null?void 0:b.children)==null?void 0:m.length)-1?"0px":"24px"})},[((g=w==null?void 0:w.comp)==null?void 0:g.toUpperCase())!=="TABLE"&&w.name?(a.openBlock(),a.createElementBlock("div",N6,[q(w)?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:"group-name-wrap",style:a.normalizeStyle({paddingLeft:parseInt(N.value.toString())>1?"12px":"0px",fontWeight:600-(N.value-1)*100>=400?600-(N.value-1)*100:400,fontSize:17-N.value>=14?17-N.value+"px":"14px"})},a.toDisplayString(w.name),5))])):a.createCommentVNode("",!0),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Uo)(w.comp)),{compName:w.name,groupNames:w==null?void 0:w.nameContents,config:{showIndex:w==null?void 0:w.showIndex,allowMove:w==null?void 0:w.allowMove,viewport:w==null?void 0:w.viewport,status:w==null?void 0:w.status},itemData:w==null?void 0:w.compData,related:w==null?void 0:w.relatedTables,childItemData:w==null?void 0:w.itemChildData,key:a.unref(Yn),onChange:a.unref(Di),index:(w==null?void 0:w.id)??E,onContentChange:a.unref(Bi),onPageChange:a.unref(Ni),parentTableId:w==null?void 0:w.tableId,allMapContents:a.unref(yt),children:w==null?void 0:w.children,level:N.value,onRowClick:O,onRouteUrl:M,onRadioChange:u},null,40,["compName","groupNames","config","itemData","related","childItemData","onChange","index","onContentChange","onPageChange","parentTableId","allMapContents","children","level"]))],4)}),256))}}),A6=Kl._export_sfc(T6,[["__scopeId","data-v-3546a109"]]),z6={class:"radio-group-container"},M6=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},emits:["radioChange"],setup(l,{emit:n}){const r=l,o=n,s=a.ref(),c=Jn(L.pinia),{selectTab:b}=L.storeToRefs(c);a.watch(()=>r==null?void 0:r.itemData,()=>{s.value=b.value},{immediate:!0,deep:!0});const p=v=>{s.value=v,o("radioChange",s.value)};return(v,y)=>(a.openBlock(),a.createElementBlock("div",z6,[a.createVNode(dl.ssRadio,{modelValue:s.value,"onUpdate:modelValue":y[0]||(y[0]=u=>s.value=u),content:r==null?void 0:r.itemData,onChange:p},null,8,["modelValue","content"])]))}}),I6=Kl._export_sfc(M6,[["__scopeId","data-v-ed48c2f8"]]),Yc=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"}]),O6={TABLE:bc,FORM:ys,STATICFORM:kc,TABLEOPERATE:B1,TABLESTYLE:U1,TABLEEXTEND:W1,TABLEINTERACTION:Y1,FORMOPERATE:gs,FOLD:S2,CALCULATOR:A2,METHODBUTTON:I2,AVATARUPLOAD:Qt.ssAvatar,SIGNATURE:Qt.ssSignature,FORMTOP:ys,STEP:W2,STEPOPERATE:m2,TIMELINE:Z2,TIMELINEOPERATE:w2,FORMTOPOPERATE:gs,SIGNATUREOPERATE:H2,AVATARUPLOADOPERATE:$2,TABS:ah,TABSOPERATE:Ph,CHART:e4,CHARTOPERATE:d4,LAYOUT:h4,LAYOUTOPERATE:_4,PARENTITEM:A6,RADIO:I6};function No(l){return O6[l==null?void 0:l.toUpperCase()]||null}exports.De=Gc;exports.activeStepInfo=_o;exports.addContents=Ho;exports.addVisibleDialog=Ct;exports.affixItems=r0;exports.allMapContents=yt;exports.analyzeFilter=Eo;exports.analyzeForm=Md;exports.analyzeQuoteForm=zd;exports.analyzeTable=Od;exports.cacheNewData=pc;exports.clickMainKey=vc;exports.clickSavePage=l0;exports.clickStep=yc;exports.clickTrigger=hc;exports.compId=Yn;exports.compNames=fc;exports.compShow=Bo;exports.createRobotContent=oc;exports.existLayouts=d0;exports.fixChangeValue=_t;exports.generateLayouts=P1;exports.getComponent=No;exports.getComponents=Uo;exports.getPageData=Wr;exports.getSliceContLength=y0;exports.gridRowHeight=O1;exports.isStepLayout=gc;exports.onBack=e0;exports.onButtonChange=t0;exports.onChange=Di;exports.onClick=a0;exports.onClickStep=p0;exports.onContentChange=Bi;exports.onExtendTaskEnd=u0;exports.onOk=s0;exports.onPageBack=h0;exports.onPageChange=Ni;exports.onSelectFixContent=Qf;exports.renderShowItems=uc;exports.robotFile=Nf;exports.showItems=ar;exports.sliceTableLength=dc;exports.slotContent=Yc;exports.ssTable=bc;exports.st=Ai;exports.stepItems=g0;exports.tabChange=f0;exports.toolBar=c0;exports.useFormComp=Et;exports.useModelLoader=af;exports.verifyButton=v0;